diff --git a/394.0a930ff2a44527ee.js b/394.0a930ff2a44527ee.js deleted file mode 100644 index e723f30..0000000 --- a/394.0a930ff2a44527ee.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkangor=self.webpackChunkangor||[]).push([[394],{5394:(Ee,h,r)=>{r.r(h),r.d(h,{default:()=>ke});var l=r(3014),j=r(7785),v=r(708),m=r(4460),y=r(936),p=r(9471),b=r(7702),P=r(2835),k=r(6071),_=r(3904),x=r(6389),u=r(7818),I=r(1054),U=r(5785),F=r(1371),E=r(7712),d=r(9893),R=r(1556),G=r(5727),C=r(1211),$=r(9363),S=r(8447),e=r(3107),w=r(8078),Y=r(3149),T=r(6388),B=r(7859),M=r(7544),X=r(1109),A=r(7153),N=r(5616),L=r(5506),V=r(4160),D=r(9207),K=r(7112);const z=["eventInput"],Z=["commentInput"],W=i=>["/chat",i],O=()=>["hex","npub"],J=(i,a)=>({height:i,overflow:a}),H=(i,a)=>({"white-space":i,"max-height":a,overflow:"hidden"}),Q=i=>({"large-font":i});function q(i,a){if(1&i&&(e.qex(0),e.nrm(1,"img",23),e.bVm()),2&i){const t=e.XpG();e.R7$(),e.FS9("alt",(null==t.profileUser?null:t.profileUser.display_name)||(null==t.profileUser?null:t.profileUser.name)||""),e.Y8G("src",t.getSafeUrl(null==t.profileUser?null:t.profileUser.picture),e.B4B)}}function ee(i,a){if(1&i&&e.nrm(0,"img",24),2&i){const t=e.XpG();e.FS9("alt",(null==t.profileUser?null:t.profileUser.display_name)||(null==t.profileUser?null:t.profileUser.name)||"")}}function te(i,a){if(1&i){const t=e.RV6();e.j41(0,"button",35),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.openZapDialog())}),e.j41(1,"span",36),e.nrm(2,"mat-icon",37),e.j41(3,"span"),e.EFF(4),e.k0s()()()}if(2&i){const t=e.XpG(2);e.R7$(2),e.Y8G("svgIcon",t.isCurrentUserProfile?"heroicons_outline:qr-code":"feather:zap"),e.R7$(2),e.JRh(t.isCurrentUserProfile?"Receive Zap":"Send Zap")}}function oe(i,a){if(1&i){const t=e.RV6();e.qex(0),e.j41(1,"button",35),e.bIt("click",function(){const o=e.eBV(t).$implicit,s=e.XpG(2);return e.Njj(s.copyKey(o))}),e.j41(2,"span",36),e.nrm(3,"mat-icon",37),e.j41(4,"span"),e.EFF(5),e.k0s()()(),e.bVm()}if(2&i){const t=a.$implicit;e.R7$(3),e.Y8G("svgIcon","heroicons_outline:clipboard-document"),e.R7$(2),e.SpI("Copy Public key (",t,")")}}function ne(i,a){1&i&&(e.j41(0,"button",38)(1,"span",36),e.nrm(2,"mat-icon",37),e.j41(3,"span"),e.EFF(4,"Edit your profile"),e.k0s()()()),2&i&&(e.Y8G("routerLink","/settings/profile"),e.R7$(2),e.Y8G("svgIcon","heroicons_outline:pencil-square"))}function ie(i,a){1&i&&(e.qex(0),e.j41(1,"button",39)(2,"span",36),e.nrm(3,"mat-icon",37),e.j41(4,"span"),e.EFF(5,"Report"),e.k0s()()(),e.j41(6,"button",39)(7,"span",36),e.nrm(8,"mat-icon",37),e.j41(9,"span"),e.EFF(10,"Turn on notifications"),e.k0s()()(),e.bVm()),2&i&&(e.R7$(3),e.Y8G("svgIcon","heroicons_solid:exclamation-triangle"),e.R7$(5),e.Y8G("svgIcon","heroicons_solid:bell"))}function re(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",25)(1,"button",26),e.nrm(2,"mat-icon",27),e.k0s()(),e.j41(3,"div",25)(4,"button",28),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.toggleBookmark(o.routePubKey))}),e.nrm(5,"mat-icon",27),e.nI1(6,"async"),e.k0s()(),e.j41(7,"div")(8,"button",29),e.nrm(9,"mat-icon",27),e.k0s(),e.j41(10,"mat-menu",null,1),e.DNE(12,te,5,2,"button",30)(13,oe,6,2,"ng-container",31),e.nrm(14,"mat-divider",32),e.DNE(15,ne,5,2,"button",33)(16,ie,11,2,"ng-container",34),e.k0s()()}if(2&i){let t;const n=e.sdS(11),o=e.XpG();e.R7$(),e.Y8G("routerLink",e.eq3(11,W,o.routePubKey)),e.R7$(),e.Y8G("svgIcon","heroicons_outline:chat-bubble-left-right"),e.R7$(3),e.Y8G("svgIcon",null!=(t=e.bMT(6,9,o.bookmarks$))&&t.includes(o.routePubKey)?"heroicons_solid:bookmark":"heroicons_outline:bookmark"),e.R7$(3),e.Y8G("matMenuTriggerFor",n),e.R7$(),e.Y8G("svgIcon","heroicons_solid:ellipsis-vertical"),e.R7$(3),e.Y8G("ngIf",!o.isCurrentUserProfile||o.isCurrentUserProfile),e.R7$(),e.Y8G("ngForOf",e.lJ4(13,O)),e.R7$(2),e.Y8G("ngIf",o.isCurrentUserProfile),e.R7$(),e.Y8G("ngIf",!o.isCurrentUserProfile)}}function se(i,a){1&i&&(e.j41(0,"span",47),e.EFF(1,"..."),e.k0s())}function ae(i,a){if(1&i){const t=e.RV6();e.j41(0,"angor-card",40)(1,"div",41)(2,"div",42),e.EFF(3," About "),e.k0s(),e.j41(4,"button",43),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.toggleAbout())}),e.nrm(5,"mat-icon",44),e.k0s()(),e.j41(6,"div",45),e.EFF(7),e.DNE(8,se,2,0,"span",46),e.k0s()()}if(2&i){const t=e.XpG();e.Y8G("ngStyle",e.l_i(5,J,t.aboutExpanded?"auto":"80px",t.aboutExpanded?"visible":"hidden")),e.R7$(5),e.Y8G("svgIcon",t.aboutExpanded?"heroicons_outline:chevron-up":"heroicons_outline:chevron-down"),e.R7$(),e.Y8G("ngStyle",e.l_i(8,H,t.aboutExpanded?"normal":"nowrap",t.aboutExpanded?"none":"1.5em")),e.R7$(),e.SpI(" ",(null==t.profileUser?null:t.profileUser.about)||""," "),e.R7$(),e.Y8G("ngIf",!t.aboutExpanded)}}function le(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",63)(1,"emoji-mart",64),e.bIt("emojiClick",function(o){e.eBV(t);const s=e.XpG(2);return e.Njj(s.addEmoji(o))}),e.k0s()()}if(2&i){const t=e.XpG(2);e.R7$(),e.Y8G("darkMode",t.darkMode)}}function ce(i,a){if(1&i){const t=e.RV6();e.j41(0,"angor-card",48)(1,"div",49)(2,"div",50),e.EFF(3,"Create Post"),e.k0s(),e.j41(4,"mat-slide-toggle",51),e.bIt("change",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.togglePreview())}),e.EFF(5," Preview "),e.k0s()(),e.j41(6,"div",52)(7,"mat-form-field",53),e.nrm(8,"textarea",54,2),e.k0s()(),e.j41(10,"div",55)(11,"div",36)(12,"button",56),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.toggleEmojiPicker())}),e.nrm(13,"mat-icon",27),e.j41(14,"span",57),e.EFF(15,"Feeling"),e.k0s()(),e.DNE(16,le,2,1,"div",58),e.j41(17,"button",59),e.nrm(18,"mat-icon",27),e.j41(19,"span",57),e.EFF(20,"Media"),e.k0s()(),e.j41(21,"button",59),e.nrm(22,"mat-icon",27),e.j41(23,"span",57),e.EFF(24,"Tag"),e.k0s()(),e.j41(25,"button",60),e.nrm(26,"mat-icon",27),e.k0s(),e.j41(27,"mat-menu",null,3)(29,"button",61)(30,"span",36),e.nrm(31,"mat-icon",37),e.j41(32,"span"),e.EFF(33,"Tag"),e.k0s()()(),e.j41(34,"button",61)(35,"span",36),e.nrm(36,"mat-icon",37),e.j41(37,"span"),e.EFF(38,"Feeling"),e.k0s()()(),e.j41(39,"button",39)(40,"span",36),e.nrm(41,"mat-icon",37),e.j41(42,"span"),e.EFF(43,"Live"),e.k0s()()(),e.j41(44,"button",39)(45,"span",36),e.nrm(46,"mat-icon",37),e.j41(47,"span"),e.EFF(48,"Gif"),e.k0s()()(),e.j41(49,"button",39)(50,"span",36),e.nrm(51,"mat-icon",37),e.j41(52,"span"),e.EFF(53,"Check in"),e.k0s()()()()(),e.j41(54,"button",62),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.sendEvent())}),e.nrm(55,"mat-icon",27),e.j41(56,"span",57),e.EFF(57,"Send"),e.k0s()()()()}if(2&i){const t=e.sdS(28),n=e.XpG();e.R7$(4),e.Y8G("color","primary"),e.R7$(3),e.Y8G("subscriptSizing","dynamic"),e.R7$(),e.Y8G("placeholder","What's on your mind?")("rows",3),e.R7$(5),e.Y8G("svgIcon","heroicons_solid:face-smile"),e.R7$(3),e.Y8G("ngIf",n.showEmojiPicker),e.R7$(2),e.Y8G("svgIcon","heroicons_solid:photo"),e.R7$(4),e.Y8G("svgIcon","heroicons_solid:user-circle"),e.R7$(3),e.Y8G("matMenuTriggerFor",t),e.R7$(),e.Y8G("svgIcon","heroicons_solid:ellipsis-horizontal"),e.R7$(5),e.Y8G("svgIcon","heroicons_solid:user-circle"),e.R7$(5),e.Y8G("svgIcon","heroicons_solid:face-smile"),e.R7$(5),e.Y8G("svgIcon","heroicons_solid:play"),e.R7$(5),e.Y8G("svgIcon","heroicons_solid:sparkles"),e.R7$(5),e.Y8G("svgIcon","heroicons_solid:map-pin"),e.R7$(4),e.Y8G("svgIcon","heroicons_solid:paper-airplane")}}function me(i,a){if(1&i&&(e.qex(0),e.j41(1,"div",87),e.nrm(2,"img",88),e.k0s(),e.bVm()),2&i){const t=e.XpG().$implicit;e.R7$(2),e.Y8G("src",t.safeWord,e.B4B)}}function ue(i,a){if(1&i&&(e.qex(0),e.j41(1,"div",87)(2,"video",89),e.nrm(3,"source",90),e.EFF(4," Your browser does not support the video tag. "),e.k0s()(),e.bVm()),2&i){const t=e.XpG().$implicit;e.R7$(3),e.Y8G("src",t.safeWord,e.B4B)}}function pe(i,a){if(1&i&&(e.qex(0),e.j41(1,"div",87)(2,"audio",91),e.nrm(3,"source",92),e.EFF(4," Your browser does not support the audio element. "),e.k0s()(),e.bVm()),2&i){const t=e.XpG().$implicit;e.R7$(3),e.Y8G("src",t.safeWord,e.B4B)}}function de(i,a){if(1&i&&(e.qex(0),e.j41(1,"div",93)(2,"a",94)(3,"span",95),e.EFF(4),e.k0s()()(),e.bVm()),2&i){const t=e.XpG().$implicit;e.R7$(2),e.Y8G("href",t.word,e.B4B),e.R7$(2),e.JRh(t.word)}}function fe(i,a){if(1&i&&(e.qex(0),e.j41(1,"div",93)(2,"span",96),e.EFF(3),e.k0s()(),e.bVm()),2&i){const t=e.XpG().$implicit,n=e.XpG(2);e.R7$(2),e.Y8G("ngClass",e.eq3(2,Q,n.isSingleEmojiOrWord(t))),e.R7$(),e.SpI(" ",t.trim()," ")}}function ge(i,a){if(1&i&&(e.j41(0,"div",86),e.DNE(1,me,3,1,"ng-container",34)(2,ue,5,1,"ng-container",34)(3,pe,5,1,"ng-container",34)(4,de,5,2,"ng-container",34)(5,fe,4,4,"ng-container",34),e.k0s()),2&i){const t=a.$implicit;e.R7$(),e.Y8G("ngIf","image"===t.token),e.R7$(),e.Y8G("ngIf","video"===t.token),e.R7$(),e.Y8G("ngIf","audio"===t.token),e.R7$(),e.Y8G("ngIf","link"===t.token),e.R7$(),e.Y8G("ngIf",!t.token)}}function he(i,a){if(1&i&&(e.j41(0,"angor-card",65,4)(2,"div",66),e.nrm(3,"img",67),e.j41(4,"div",68)(5,"span",69),e.EFF(6),e.k0s(),e.j41(7,"span",70),e.EFF(8,"1 minutes ago"),e.k0s()()(),e.DNE(9,ge,6,5,"div",71),e.j41(10,"div",72)(11,"button",73),e.nrm(12,"mat-icon",74),e.j41(13,"span",57),e.EFF(14,"Unlike"),e.k0s()(),e.j41(15,"button",73),e.nrm(16,"mat-icon",75),e.j41(17,"span",57),e.EFF(18,"Comment"),e.k0s()(),e.j41(19,"button",73),e.nrm(20,"mat-icon",76),e.j41(21,"span",57),e.EFF(22,"Share"),e.k0s()(),e.j41(23,"button",73),e.nrm(24,"mat-icon",77),e.j41(25,"span",57),e.EFF(26,"Zap"),e.k0s()()(),e.nrm(27,"hr",78),e.j41(28,"div",79)(29,"div",36)(30,"div",80),e.EFF(31,"0 Zap"),e.k0s()(),e.nrm(32,"div",81),e.j41(33,"div",82)(34,"button",83),e.EFF(35," 0 Like "),e.k0s(),e.j41(36,"button",83),e.EFF(37," 0 shares "),e.k0s(),e.j41(38,"button",84)(39,"span",85),e.EFF(40,"0 Comments"),e.k0s()()()()()),2&i){const t=e.XpG();e.R7$(3),e.FS9("alt",(null==t.profileUser?null:t.profileUser.display_name)||(null==t.profileUser?null:t.profileUser.name)||""),e.Y8G("src",t.getSafeUrl(null==t.profileUser?null:t.profileUser.picture),e.B4B),e.R7$(3),e.JRh((null==t.profileUser?null:t.profileUser.display_name)||(null==t.profileUser?null:t.profileUser.name)||""),e.R7$(3),e.Y8G("ngForOf",t.parseContent.parseContent(t.eventInput.nativeElement.value))("ngForTrackBy",t.trackByFn),e.R7$(3),e.Y8G("svgIcon","heroicons_solid:heart"),e.R7$(4),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 ve(i,a){1&i&&e.nrm(0,"app-post",21),2&i&&e.Y8G("item",a.$implicit)}function be(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",22)(1,"button",97),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.loadNextPage())}),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 Posts"," ")}}const ke=[{path:"",component:(()=>{class i{constructor(t,n,o,s,c,f,g,_e,xe,je,ye,Pe,Ie,Ue,Fe){this._changeDetectorRef=t,this._signerService=n,this._storageService=o,this._sanitizer=s,this._route=c,this._router=f,this._snackBar=g,this._dialog=_e,this._angorConfigService=xe,this._angorConfirmationService=je,this._eventService=ye,this._subscriptionService=Pe,this._clipboard=Ie,this.parseContent=Ue,this._bookmarkService=Fe,this.darkMode=!1,this.isLoading=!0,this.errorMessage=null,this._unsubscribeAll=new S.B,this.allPublicKeys=[],this.isCurrentUserProfile=!1,this.isFollowing=!1,this.showEmojiPicker=!1,this.showCommentEmojiPicker=!1,this.paymentInvoice="",this.invoiceAmount="?",this.isLiked=!1,this.isPreview=!1,this.posts=[],this.currentPage=1,this.loading=!1,this.myLikes=[],this.myLikedNoteIds=[],this.isLoadingPosts=!0,this.noEventsMessage="",this.hasMorePosts=!0,this.followersList=[],this.followingList=[],this.aboutExpanded=!0,this.bookmarkedProjectNpubs=[],this.projectIdentifier="",this.bookmarks$=this._bookmarkService.bookmarks$}ngOnInit(){var t=this;return(0,l.A)(function*(){t.initializeTheme(),t.processRouteParams(),t.loadInitialPosts(),t.subscribeToNewPosts()})()}initializeTheme(){this._angorConfigService.config$.subscribe(t=>{"auto"===t.scheme?this.detectSystemTheme():this.darkMode="dark"===t.scheme})}trackByFn(t,n){return t}checkIfRoutePubKeyIsFollowing(){this.isFollowing=!(!this.routePubKey||!this.followersList)&&this.followersList.some(t=>t.pubkey===this.routePubKey)}processRouteParams(){this._route.paramMap.subscribe(t=>{const n=t.get("project")||"";n.startsWith("angor")?this.projectIdentifier=n:(console.error('Invalid project identifier. It must start with "angor".'),this.projectIdentifier="");const o=t.get("pubkey")||"";if(o){const s=this._signerService.processKey(o);s?(this.routePubKey=s,this.isCurrentUserProfile=!1):(this.errorMessage="Public key is invalid. Please check your input.",this.setCurrentUserProfile())}else this.setCurrentUserProfile();this.loadUserProfileData(this.routePubKey)})}setCurrentUserProfile(){this.isCurrentUserProfile=!0,this.routePubKey=this._signerService.getPublicKey()}loadUserProfileData(t){this.loadUserProfile(t)}isValidHexPubkey(t){return/^[a-fA-F0-9]{64}$/.test(t)}loadInitialPosts(){var t=this;return(0,l.A)(function*(){t.loading=!0;let n=0;try{for(;n<5;){const c=yield t._storageService.getPostsByPubKeysWithPagination([t.routePubKey],t.currentPage,10);if(c.length>0){t.posts=[...t.posts,...c],t.posts.sort((f,g)=>g.created_at-f.created_at);break}n++,n<5&&(yield t.delay(3e3))}t.hasMorePosts=t.posts.length>0,t.hasMorePosts||console.log("This user has no posts.")}catch(c){console.error("Error loading posts:",c)}finally{t.loading=!1}t.refreshUI()})()}delay(t){return new Promise(n=>setTimeout(n,t))}subscribeToNewPosts(){var t=this;this.isCurrentUserProfile?this._storageService.posts$.subscribe(n=>{n&&n.pubkey===this.routePubKey&&(this.posts.unshift(n),this.posts.sort((o,s)=>s.created_at-o.created_at),this.refreshUI())}):this.postsSubscriptionId=this._subscriptionService.addSubscriptions([{authors:[this.routePubKey],kinds:[1]}],function(){var o=(0,l.A)(function*(s){t.isReply(s)||t._storageService.savePost(s)});return function(s){return o.apply(this,arguments)}}())}isReply(t){return t.tags.filter(o=>"e"===o[0]||"p"===o[0]).length>0}loadNextPage(){this.loading||(this.currentPage++,this.loadInitialPosts())}toggleAbout(){this.aboutExpanded=!this.aboutExpanded}ngOnDestroy(){this.subscriptionId&&this._subscriptionService.removeSubscriptionById(this.subscriptionId),this.postsSubscriptionId&&this._subscriptionService.removeSubscriptionById(this.postsSubscriptionId),this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}loadUserProfile(t){var n=this;return(0,l.A)(function*(){if(n.isLoading=!0,n.errorMessage=null,n.profileUser=null,n.refreshUI(),!t)return n.errorMessage="No public key found. Please log in again.",n.isLoading=!1,void n.refreshUI();try{const o=yield n._storageService.getProfile(t);o&&(n.profileUser=o,n.refreshUI()),console.log("cachedMetadata: ",o),n.subscribeToUserProfileAndContacts(t)}catch(o){console.error("Error loading user profile:",o)}})()}subscribeToUserProfileAndContacts(t){var n=this;return(0,l.A)(function*(){n.subscriptionId=n._subscriptionService.addSubscriptions([{authors:[t],kinds:[0],limit:1}],function(){var s=(0,l.A)(function*(c){yield n.processProfileMetadata(c,t)});return function(c){return s.apply(this,arguments)}}())})()}processProfileMetadata(t,n){var o=this;return(0,l.A)(function*(){try{const s=JSON.parse(t.content);o.profileUser=s,yield o._storageService.saveProfile(n,s),o._changeDetectorRef.markForCheck()}catch(s){console.error("Error processing metadata event:",s)}})()}getSafeUrl(t){return this._sanitizer.bypassSecurityTrustUrl(t)}refreshUI(){this._changeDetectorRef.detectChanges()}openSnackBar(t,n="dismiss"){this._snackBar.open(t,n,{duration:3e3})}canUseZap(){var t=this;return(0,l.A)(function*(){return!(!t.profileUser||!t.profileUser.lud06&&!t.profileUser.lud16)||(t.openSnackBar("Using Zap is not possible. Please complete your profile to include lud06 or lud16."),!1)})()}openZapDialog(t=""){var n=this;return(0,l.A)(function*(){(yield n.canUseZap())&&n._dialog.open(C.r,{width:"405px",maxHeight:"90vh",data:{lud16:n.profileUser.lud16,lud06:n.profileUser.lud06,pubkey:n.profileUser.pubkey,eventId:t}})})()}toggleLike(){this.isLiked=!this.isLiked,this.isLiked&&setTimeout(()=>{this.isLiked=!1,this.isLiked=!0},300)}addEmoji(t){this.eventInput.nativeElement.value+=t.emoji.native,this.showEmojiPicker=!1}toggleEmojiPicker(){this.showCommentEmojiPicker=!1,this.showEmojiPicker=!this.showEmojiPicker}addEmojiTocomment(t){this.commentInput.nativeElement.value+=t.emoji.native,this.showCommentEmojiPicker=!1}detectSystemTheme(){const t=window.matchMedia("(prefers-color-scheme: dark)");this.darkMode=t.matches,t.addEventListener("change",n=>{this.darkMode=n.matches})}togglePreview(){this.isPreview=!this.isPreview}sendEvent(){""!=this.eventInput.nativeElement.value&&this._eventService.sendTextEvent(this.eventInput.nativeElement.value).then(()=>{this.eventInput.nativeElement.value="",this._changeDetectorRef.markForCheck()}).catch(t=>{console.error("Failed to send Event:",t)})}copyHex(){this._clipboard.copy(this.routePubKey),this.openSnackBar("hex public key copied","dismiss")}copyNpub(){var t=this._signerService.getNpubFromPubkey(this.routePubKey);this._clipboard.copy(t),this.openSnackBar("npub public key copied","dismiss")}copyKey(t){if("hex"===t)this._clipboard.copy(this.routePubKey),this.openSnackBar("hex public key copied","dismiss");else if("npub"===t){const n=this._signerService.getNpubFromPubkey(this.routePubKey);this._clipboard.copy(n),this.openSnackBar("npub public key copied","dismiss")}}isSingleEmojiOrWord(t){const n=t.trim(),o=/^\w+$/.test(n),s=/^[\p{Emoji}]+$/u.test(n);return o||s}openPost(t){this._router.navigate(["/post",t])}toggleBookmark(t){var n=this;return(0,l.A)(function*(){(yield n._bookmarkService.isBookmarked(t))?yield n._bookmarkService.removeBookmark(t):yield n._bookmarkService.addBookmark(t)})()}isProjectBookmarked(t){var n=this;return(0,l.A)(function*(){return yield n._bookmarkService.isBookmarked(t)})()}static{this.\u0275fac=function(n){return new(n||i)(e.rXU(e.gRc),e.rXU(w.A),e.rXU(Y.n),e.rXU(T.up),e.rXU(d.nX),e.rXU(d.Ix),e.rXU(B.UG),e.rXU(M.bZ),e.rXU(X.P),e.rXU(A.m),e.rXU(N.U),e.rXU(L.n),e.rXU(V.B0),e.rXU(D.m),e.rXU(K.U))}}static{this.\u0275cmp=e.VBU({type:i,selectors:[["profile"]],viewQuery:function(n,o){if(1&n&&(e.GBs(z,5),e.GBs(Z,5)),2&n){let s;e.mGM(s=e.lsd())&&(o.eventInput=s.first),e.mGM(s=e.lsd())&&(o.commentInput=s.first)}},decls:25,vars:11,consts:[["defaultAvatar",""],["profileMenu","matMenu"],["eventInput",""],["postCardMenu01","matMenu"],["expandableComments","angorCard"],[1,"flex","min-w-0","flex-auto","flex-col"],[1,"bg-card","flex","flex-col","shadow"],["onerror","this.onerror=null; this.src='/images/pages/profile/cover.jpg';",1,"h-40","object-cover","lg:h-80",3,"src","alt"],[1,"bg-card","mx-auto","flex","w-full","max-w-5xl","flex-0","flex-col","items-center","px-8","lg:h-18","lg:flex-row"],[1,"-mt-26","flex-shrink-0","rounded-full","lg:-mt-22"],[4,"ngIf","ngIfElse"],[1,"mt-4","flex","flex-grow","flex-col","items-center","lg:ml-8","lg:mt-0","lg:items-start"],[1,"max-w-full","truncate","text-lg","font-bold","leading-tight","lg:max-w-[25rem]",2,"white-space","nowrap","overflow","hidden","text-overflow","ellipsis"],[1,"text-secondary","max-w-full","truncate","leading-tight","lg:max-w-[25rem]",2,"white-space","nowrap","overflow","hidden","text-overflow","ellipsis"],[1,"flex","flex-shrink-0","items-center","space-x-6","lg:mt-0"],[1,"mb-4","mt-8","flex","flex-shrink-0","items-center","space-x-6","lg:m-0","lg:ml-auto"],[1,"mx-auto","w-full","max-w-5xl","p-6","sm:p-8"],[1,"m-auto","flex","w-full","max-w-140","flex-col","items-start"],["class","about-section mb-8 flex w-full flex-col items-start p-6 pb-6 transition-all duration-300 sm:p-8","style","position: relative",3,"ngStyle",4,"ngIf"],["class","mb-8 flex w-full flex-col p-6 pb-6 sm:p-8",4,"ngIf"],["class","mb-8 flex w-full flex-col bg-primary-50 dark:bg-primary-800",4,"ngIf"],[1,"mb-8","flex","w-full","flex-col",3,"item"],[1,"m-auto","mt-4","flex","justify-center"],["onerror","this.onerror=null; this.src='/images/avatars/avatar-placeholder.png';",1,"ring-bg-card","h-32","min-h-32","w-32","min-w-32","max-w-fit","rounded-full","object-cover","ring-4",3,"src","alt"],["src","/images/avatars/avatar-placeholder.png","onerror","this.onerror=null; this.src='/images/avatars/avatar-placeholder.png';",1,"ring-bg-card","h-32","min-h-32","w-32","min-w-32","rounded-full","object-cover","ring-4",3,"alt"],[1,"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"],["mat-icon-button","",3,"matMenuTriggerFor"],["mat-menu-item","",3,"click",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"my-2"],["mat-menu-item","",3,"routerLink",4,"ngIf"],[4,"ngIf"],["mat-menu-item","",3,"click"],[1,"flex","items-center"],[1,"mr-3","icon-size-5",3,"svgIcon"],["mat-menu-item","",3,"routerLink"],["mat-menu-item",""],[1,"about-section","mb-8","flex","w-full","flex-col","items-start","p-6","pb-6","transition-all","duration-300","sm:p-8",2,"position","relative",3,"ngStyle"],[1,"mb-2","flex","w-full","items-center","justify-between"],[1,"text-2xl","font-semibold","leading-tight"],["mat-icon-button","","color","primary","aria-label","Toggle about section",2,"position","absolute","top","16px","right","16px",3,"click"],[3,"svgIcon"],[1,"about-content","text-base","text-gray-700","dark:text-gray-50","transition-all","duration-300",3,"ngStyle"],["class","text-gray-500",4,"ngIf"],[1,"text-gray-500"],[1,"mb-8","flex","w-full","flex-col","p-6","pb-6","sm:p-8"],[1,"flex","justify-between"],[1,"text-xl","font-semibold"],[1,"-mr-4","ml-auto",3,"change","color"],[1,"mt-8","flex","flex-col","items-start","sm:flex-row"],[1,"w-full",3,"subscriptSizing"],["matInput","","cdkTextareaAutosize","",3,"placeholder","rows"],[1,"-mx-3","mt-6","flex","items-center","justify-between","sm:mt-8"],["mat-button","",1,"mr-1","px-3",3,"click"],[1,"ml-2"],["class","emoji-picker-container-global",4,"ngIf"],["mat-button","",1,"mr-1","hidden","px-3","sm:inline-flex"],["mat-button","",1,"px-3",3,"matMenuTriggerFor"],["mat-menu-item","",1,"sm:hidden"],["mat-button","",1,"mr-1","flex","px-3",3,"click"],[1,"emoji-picker-container-global"],[3,"emojiClick","darkMode"],[1,"mb-8","flex","w-full","flex-col","bg-primary-50","dark:bg-primary-800"],[1,"mx-6","mb-4","mt-6","flex","items-center","sm:mx-8"],["onerror","this.onerror=null; this.src='/images/avatars/avatar-placeholder.png';",1,"mr-4","h-10","w-10","rounded-full","object-cover",3,"src","alt"],[1,"flex","flex-col"],[1,"font-semibold","leading-none"],[1,"text-secondary","mt-1","text-sm","leading-none"],["class","inline-block whitespace-pre-wrap break-words",4,"ngFor","ngForOf","ngForTrackBy"],[1,"mx-3","flex","items-center","sm:mx-5"],["mat-button","",1,"mr-1","px-3"],[1,"text-red-500","icon-size-5",3,"svgIcon"],[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,"ml-3","text-md","tracking-tight"],[1,"hidden","flex-auto","sm:flex"],[1,"mt-4","flex","items-center","sm:mt-0"],["mat-button","",1,"-ml-2","mr-1","px-3","sm:ml-0"],["mat-button","",1,"px-3","sm:-mr-4"],[1,"mr-1"],[1,"inline-block","whitespace-pre-wrap","break-words"],[1,"relative","mb-4","block"],["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"],[1,"mx-6","mb-6","mt-2","sm:mx-8"],["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-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(n,o){if(1&n&&(e.j41(0,"div",5)(1,"div",6)(2,"div"),e.nrm(3,"img",7),e.k0s(),e.j41(4,"div",8)(5,"div",9),e.DNE(6,q,2,2,"ng-container",10)(7,ee,1,1,"ng-template",null,0,e.C5r),e.k0s(),e.j41(9,"div",11)(10,"div",12),e.EFF(11),e.k0s(),e.j41(12,"div",13),e.EFF(13),e.k0s()(),e.j41(14,"div",14)(15,"div",15),e.DNE(16,re,17,14),e.k0s()()()(),e.j41(17,"div",16)(18,"div",17),e.DNE(19,ae,9,11,"angor-card",18)(20,ce,58,16,"angor-card",19)(21,he,41,9,"angor-card",20),e.Z7z(22,ve,1,1,"app-post",21,e.Vm6),e.DNE(24,be,3,2,"div",22),e.k0s()()()),2&n){const s=e.sdS(8);e.R7$(3),e.FS9("alt",(null==o.profileUser?null:o.profileUser.display_name)||(null==o.profileUser?null:o.profileUser.name)||"Banner"),e.Y8G("src",(null==o.profileUser?null:o.profileUser.banner)||"/images/pages/profile/cover.jpg",e.B4B),e.R7$(3),e.Y8G("ngIf",null==o.profileUser?null:o.profileUser.picture)("ngIfElse",s),e.R7$(5),e.SpI(" ",(null==o.profileUser?null:o.profileUser.display_name)||(null==o.profileUser?null:o.profileUser.name)||"Unknown User"," "),e.R7$(2),e.SpI(" ",(null==o.profileUser?null:o.profileUser.username)||(null==o.profileUser?null:o.profileUser.name)," "),e.R7$(3),e.vxM(o.projectIdentifier?16:-1),e.R7$(3),e.Y8G("ngIf",(null==o.profileUser?null:o.profileUser.about)&&""!==o.profileUser.about.trim()),e.R7$(),e.Y8G("ngIf",o.isCurrentUserProfile),e.R7$(),e.Y8G("ngIf",o.isPreview),e.R7$(),e.Dyx(o.posts),e.R7$(2),e.vxM(o.hasMorePosts?24:-1)}},dependencies:[d.Wk,j.n,_.m_,_.An,p.Hl,p.$z,p.iY,u.Cn,u.kk,u.fb,u.Cp,k.RG,k.rl,x.fS,x.fg,v.xb,v.EE,b.w,b.q,E.uc,m.YU,m.MD,m.Sq,m.bT,m.B3,m.Jj,y.YN,R.Ic,F.sG,I.D6,$.e,P.MY,U.vg,G.q],styles:[".emoji-picker-container-global{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);z-index:9999;width:350px;max-width:100%}.heart-beat{animation:heartBeatAnimation .3s ease-in-out}@keyframes heartBeatAnimation{0%{transform:scale(1)}30%{transform:scale(2)}60%{transform:scale(1)}to{transform:scale(1)}}.loading-spinner{display:flex;justify-content:center;align-items:center;margin:20px 0}.loading-spinner .spinner{border:4px solid rgba(0,0,0,.1);border-left-color:#009fb5;border-radius:50%;width:30px;height:30px;animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.about-section{overflow:hidden;transition:height .3s ease}.c-img,.c-video{max-width:100%;border-radius:10px}\n"],encapsulation:2,changeDetection:0})}}return i})()}]}}]); \ No newline at end of file diff --git a/394.ae17eb3bca571aad.js b/394.ae17eb3bca571aad.js new file mode 100644 index 0000000..6d503f8 --- /dev/null +++ b/394.ae17eb3bca571aad.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkangor=self.webpackChunkangor||[]).push([[394],{5394:(Fe,h,r)=>{r.r(h),r.d(h,{default:()=>be});var l=r(3014),j=r(7785),v=r(708),m=r(4460),y=r(936),p=r(9471),b=r(7702),P=r(2835),k=r(6071),_=r(3904),x=r(6389),u=r(7818),I=r(1054),F=r(5785),U=r(1371),E=r(7712),d=r(9893),R=r(1556),G=r(5727),C=r(1211),$=r(9363),S=r(8447),e=r(3107),w=r(8078),Y=r(3149),T=r(6388),B=r(7859),M=r(7544),X=r(1109),A=r(5616),N=r(5506),L=r(4160),V=r(9207),D=r(7112);const K=["eventInput"],z=["commentInput"],Z=i=>["/chat",i],W=()=>["hex","npub"],O=(i,a)=>({height:i,overflow:a}),J=(i,a)=>({"white-space":i,"max-height":a,overflow:"hidden"}),H=i=>({"large-font":i});function Q(i,a){if(1&i&&(e.qex(0),e.nrm(1,"img",23),e.bVm()),2&i){const t=e.XpG();e.R7$(),e.FS9("alt",(null==t.profileUser?null:t.profileUser.display_name)||(null==t.profileUser?null:t.profileUser.name)||""),e.Y8G("src",t.getSafeUrl(null==t.profileUser?null:t.profileUser.picture),e.B4B)}}function q(i,a){if(1&i&&e.nrm(0,"img",24),2&i){const t=e.XpG();e.FS9("alt",(null==t.profileUser?null:t.profileUser.display_name)||(null==t.profileUser?null:t.profileUser.name)||"")}}function ee(i,a){if(1&i){const t=e.RV6();e.j41(0,"button",35),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.openZapDialog())}),e.j41(1,"span",36),e.nrm(2,"mat-icon",37),e.j41(3,"span"),e.EFF(4),e.k0s()()()}if(2&i){const t=e.XpG(2);e.R7$(2),e.Y8G("svgIcon",t.isCurrentUserProfile?"heroicons_outline:qr-code":"feather:zap"),e.R7$(2),e.JRh(t.isCurrentUserProfile?"Receive Zap":"Send Zap")}}function te(i,a){if(1&i){const t=e.RV6();e.qex(0),e.j41(1,"button",35),e.bIt("click",function(){const o=e.eBV(t).$implicit,s=e.XpG(2);return e.Njj(s.copyKey(o))}),e.j41(2,"span",36),e.nrm(3,"mat-icon",37),e.j41(4,"span"),e.EFF(5),e.k0s()()(),e.bVm()}if(2&i){const t=a.$implicit;e.R7$(3),e.Y8G("svgIcon","heroicons_outline:clipboard-document"),e.R7$(2),e.SpI("Copy Public key (",t,")")}}function oe(i,a){1&i&&(e.j41(0,"button",38)(1,"span",36),e.nrm(2,"mat-icon",37),e.j41(3,"span"),e.EFF(4,"Edit your profile"),e.k0s()()()),2&i&&(e.Y8G("routerLink","/settings/profile"),e.R7$(2),e.Y8G("svgIcon","heroicons_outline:pencil-square"))}function ne(i,a){1&i&&(e.qex(0),e.j41(1,"button",39)(2,"span",36),e.nrm(3,"mat-icon",37),e.j41(4,"span"),e.EFF(5,"Report"),e.k0s()()(),e.j41(6,"button",39)(7,"span",36),e.nrm(8,"mat-icon",37),e.j41(9,"span"),e.EFF(10,"Turn on notifications"),e.k0s()()(),e.bVm()),2&i&&(e.R7$(3),e.Y8G("svgIcon","heroicons_solid:exclamation-triangle"),e.R7$(5),e.Y8G("svgIcon","heroicons_solid:bell"))}function ie(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",25)(1,"button",26),e.nrm(2,"mat-icon",27),e.k0s()(),e.j41(3,"div",25)(4,"button",28),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.toggleBookmark(o.routePubKey))}),e.nrm(5,"mat-icon",27),e.nI1(6,"async"),e.k0s()(),e.j41(7,"div")(8,"button",29),e.nrm(9,"mat-icon",27),e.k0s(),e.j41(10,"mat-menu",null,1),e.DNE(12,ee,5,2,"button",30)(13,te,6,2,"ng-container",31),e.nrm(14,"mat-divider",32),e.DNE(15,oe,5,2,"button",33)(16,ne,11,2,"ng-container",34),e.k0s()()}if(2&i){let t;const n=e.sdS(11),o=e.XpG();e.R7$(),e.Y8G("routerLink",e.eq3(11,Z,o.routePubKey)),e.R7$(),e.Y8G("svgIcon","heroicons_outline:chat-bubble-left-right"),e.R7$(3),e.Y8G("svgIcon",null!=(t=e.bMT(6,9,o.bookmarks$))&&t.includes(o.routePubKey)?"heroicons_solid:bookmark":"heroicons_outline:bookmark"),e.R7$(3),e.Y8G("matMenuTriggerFor",n),e.R7$(),e.Y8G("svgIcon","heroicons_solid:ellipsis-vertical"),e.R7$(3),e.Y8G("ngIf",!o.isCurrentUserProfile||o.isCurrentUserProfile),e.R7$(),e.Y8G("ngForOf",e.lJ4(13,W)),e.R7$(2),e.Y8G("ngIf",o.isCurrentUserProfile),e.R7$(),e.Y8G("ngIf",!o.isCurrentUserProfile)}}function re(i,a){1&i&&(e.j41(0,"span",47),e.EFF(1,"..."),e.k0s())}function se(i,a){if(1&i){const t=e.RV6();e.j41(0,"angor-card",40)(1,"div",41)(2,"div",42),e.EFF(3," About "),e.k0s(),e.j41(4,"button",43),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.toggleAbout())}),e.nrm(5,"mat-icon",44),e.k0s()(),e.j41(6,"div",45),e.EFF(7),e.DNE(8,re,2,0,"span",46),e.k0s()()}if(2&i){const t=e.XpG();e.Y8G("ngStyle",e.l_i(5,O,t.aboutExpanded?"auto":"80px",t.aboutExpanded?"visible":"hidden")),e.R7$(5),e.Y8G("svgIcon",t.aboutExpanded?"heroicons_outline:chevron-up":"heroicons_outline:chevron-down"),e.R7$(),e.Y8G("ngStyle",e.l_i(8,J,t.aboutExpanded?"normal":"nowrap",t.aboutExpanded?"none":"1.5em")),e.R7$(),e.SpI(" ",(null==t.profileUser?null:t.profileUser.about)||""," "),e.R7$(),e.Y8G("ngIf",!t.aboutExpanded)}}function ae(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",63)(1,"emoji-mart",64),e.bIt("emojiClick",function(o){e.eBV(t);const s=e.XpG(2);return e.Njj(s.addEmoji(o))}),e.k0s()()}if(2&i){const t=e.XpG(2);e.R7$(),e.Y8G("darkMode",t.darkMode)}}function le(i,a){if(1&i){const t=e.RV6();e.j41(0,"angor-card",48)(1,"div",49)(2,"div",50),e.EFF(3,"Create Post"),e.k0s(),e.j41(4,"mat-slide-toggle",51),e.bIt("change",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.togglePreview())}),e.EFF(5," Preview "),e.k0s()(),e.j41(6,"div",52)(7,"mat-form-field",53),e.nrm(8,"textarea",54,2),e.k0s()(),e.j41(10,"div",55)(11,"div",36)(12,"button",56),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.toggleEmojiPicker())}),e.nrm(13,"mat-icon",27),e.j41(14,"span",57),e.EFF(15,"Feeling"),e.k0s()(),e.DNE(16,ae,2,1,"div",58),e.j41(17,"button",59),e.nrm(18,"mat-icon",27),e.j41(19,"span",57),e.EFF(20,"Media"),e.k0s()(),e.j41(21,"button",59),e.nrm(22,"mat-icon",27),e.j41(23,"span",57),e.EFF(24,"Tag"),e.k0s()(),e.j41(25,"button",60),e.nrm(26,"mat-icon",27),e.k0s(),e.j41(27,"mat-menu",null,3)(29,"button",61)(30,"span",36),e.nrm(31,"mat-icon",37),e.j41(32,"span"),e.EFF(33,"Tag"),e.k0s()()(),e.j41(34,"button",61)(35,"span",36),e.nrm(36,"mat-icon",37),e.j41(37,"span"),e.EFF(38,"Feeling"),e.k0s()()(),e.j41(39,"button",39)(40,"span",36),e.nrm(41,"mat-icon",37),e.j41(42,"span"),e.EFF(43,"Live"),e.k0s()()(),e.j41(44,"button",39)(45,"span",36),e.nrm(46,"mat-icon",37),e.j41(47,"span"),e.EFF(48,"Gif"),e.k0s()()(),e.j41(49,"button",39)(50,"span",36),e.nrm(51,"mat-icon",37),e.j41(52,"span"),e.EFF(53,"Check in"),e.k0s()()()()(),e.j41(54,"button",62),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.sendEvent())}),e.nrm(55,"mat-icon",27),e.j41(56,"span",57),e.EFF(57,"Send"),e.k0s()()()()}if(2&i){const t=e.sdS(28),n=e.XpG();e.R7$(4),e.Y8G("color","primary"),e.R7$(3),e.Y8G("subscriptSizing","dynamic"),e.R7$(),e.Y8G("placeholder","What's on your mind?")("rows",3),e.R7$(5),e.Y8G("svgIcon","heroicons_solid:face-smile"),e.R7$(3),e.Y8G("ngIf",n.showEmojiPicker),e.R7$(2),e.Y8G("svgIcon","heroicons_solid:photo"),e.R7$(4),e.Y8G("svgIcon","heroicons_solid:user-circle"),e.R7$(3),e.Y8G("matMenuTriggerFor",t),e.R7$(),e.Y8G("svgIcon","heroicons_solid:ellipsis-horizontal"),e.R7$(5),e.Y8G("svgIcon","heroicons_solid:user-circle"),e.R7$(5),e.Y8G("svgIcon","heroicons_solid:face-smile"),e.R7$(5),e.Y8G("svgIcon","heroicons_solid:play"),e.R7$(5),e.Y8G("svgIcon","heroicons_solid:sparkles"),e.R7$(5),e.Y8G("svgIcon","heroicons_solid:map-pin"),e.R7$(4),e.Y8G("svgIcon","heroicons_solid:paper-airplane")}}function ce(i,a){if(1&i&&(e.qex(0),e.j41(1,"div",87),e.nrm(2,"img",88),e.k0s(),e.bVm()),2&i){const t=e.XpG().$implicit;e.R7$(2),e.Y8G("src",t.safeWord,e.B4B)}}function me(i,a){if(1&i&&(e.qex(0),e.j41(1,"div",87)(2,"video",89),e.nrm(3,"source",90),e.EFF(4," Your browser does not support the video tag. "),e.k0s()(),e.bVm()),2&i){const t=e.XpG().$implicit;e.R7$(3),e.Y8G("src",t.safeWord,e.B4B)}}function ue(i,a){if(1&i&&(e.qex(0),e.j41(1,"div",87)(2,"audio",91),e.nrm(3,"source",92),e.EFF(4," Your browser does not support the audio element. "),e.k0s()(),e.bVm()),2&i){const t=e.XpG().$implicit;e.R7$(3),e.Y8G("src",t.safeWord,e.B4B)}}function pe(i,a){if(1&i&&(e.qex(0),e.j41(1,"div",93)(2,"a",94)(3,"span",95),e.EFF(4),e.k0s()()(),e.bVm()),2&i){const t=e.XpG().$implicit;e.R7$(2),e.Y8G("href",t.word,e.B4B),e.R7$(2),e.JRh(t.word)}}function de(i,a){if(1&i&&(e.qex(0),e.j41(1,"div",93)(2,"span",96),e.EFF(3),e.k0s()(),e.bVm()),2&i){const t=e.XpG().$implicit,n=e.XpG(2);e.R7$(2),e.Y8G("ngClass",e.eq3(2,H,n.isSingleEmojiOrWord(t))),e.R7$(),e.SpI(" ",t.trim()," ")}}function fe(i,a){if(1&i&&(e.j41(0,"div",86),e.DNE(1,ce,3,1,"ng-container",34)(2,me,5,1,"ng-container",34)(3,ue,5,1,"ng-container",34)(4,pe,5,2,"ng-container",34)(5,de,4,4,"ng-container",34),e.k0s()),2&i){const t=a.$implicit;e.R7$(),e.Y8G("ngIf","image"===t.token),e.R7$(),e.Y8G("ngIf","video"===t.token),e.R7$(),e.Y8G("ngIf","audio"===t.token),e.R7$(),e.Y8G("ngIf","link"===t.token),e.R7$(),e.Y8G("ngIf",!t.token)}}function ge(i,a){if(1&i&&(e.j41(0,"angor-card",65,4)(2,"div",66),e.nrm(3,"img",67),e.j41(4,"div",68)(5,"span",69),e.EFF(6),e.k0s(),e.j41(7,"span",70),e.EFF(8,"1 minutes ago"),e.k0s()()(),e.DNE(9,fe,6,5,"div",71),e.j41(10,"div",72)(11,"button",73),e.nrm(12,"mat-icon",74),e.j41(13,"span",57),e.EFF(14,"Unlike"),e.k0s()(),e.j41(15,"button",73),e.nrm(16,"mat-icon",75),e.j41(17,"span",57),e.EFF(18,"Comment"),e.k0s()(),e.j41(19,"button",73),e.nrm(20,"mat-icon",76),e.j41(21,"span",57),e.EFF(22,"Share"),e.k0s()(),e.j41(23,"button",73),e.nrm(24,"mat-icon",77),e.j41(25,"span",57),e.EFF(26,"Zap"),e.k0s()()(),e.nrm(27,"hr",78),e.j41(28,"div",79)(29,"div",36)(30,"div",80),e.EFF(31,"0 Zap"),e.k0s()(),e.nrm(32,"div",81),e.j41(33,"div",82)(34,"button",83),e.EFF(35," 0 Like "),e.k0s(),e.j41(36,"button",83),e.EFF(37," 0 shares "),e.k0s(),e.j41(38,"button",84)(39,"span",85),e.EFF(40,"0 Comments"),e.k0s()()()()()),2&i){const t=e.XpG();e.R7$(3),e.FS9("alt",(null==t.profileUser?null:t.profileUser.display_name)||(null==t.profileUser?null:t.profileUser.name)||""),e.Y8G("src",t.getSafeUrl(null==t.profileUser?null:t.profileUser.picture),e.B4B),e.R7$(3),e.JRh((null==t.profileUser?null:t.profileUser.display_name)||(null==t.profileUser?null:t.profileUser.name)||""),e.R7$(3),e.Y8G("ngForOf",t.parseContent.parseContent(t.eventInput.nativeElement.value))("ngForTrackBy",t.trackByFn),e.R7$(3),e.Y8G("svgIcon","heroicons_solid:heart"),e.R7$(4),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 he(i,a){1&i&&e.nrm(0,"app-post",21),2&i&&e.Y8G("item",a.$implicit)}function ve(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",22)(1,"button",97),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.loadNextPage())}),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 Posts"," ")}}const be=[{path:"",component:(()=>{class i{constructor(t,n,o,s,c,f,g,ke,_e,xe,je,ye,Pe,Ie){this._changeDetectorRef=t,this._signerService=n,this._storageService=o,this._sanitizer=s,this._route=c,this._router=f,this._snackBar=g,this._dialog=ke,this._angorConfigService=_e,this._eventService=xe,this._subscriptionService=je,this._clipboard=ye,this.parseContent=Pe,this._bookmarkService=Ie,this.darkMode=!1,this.isLoading=!0,this.errorMessage=null,this._unsubscribeAll=new S.B,this.allPublicKeys=[],this.isCurrentUserProfile=!1,this.isFollowing=!1,this.showEmojiPicker=!1,this.showCommentEmojiPicker=!1,this.paymentInvoice="",this.invoiceAmount="?",this.isLiked=!1,this.isPreview=!1,this.posts=[],this.currentPage=1,this.loading=!1,this.myLikes=[],this.myLikedNoteIds=[],this.isLoadingPosts=!0,this.noEventsMessage="",this.hasMorePosts=!0,this.followersList=[],this.followingList=[],this.aboutExpanded=!0,this.bookmarkedProjectNpubs=[],this.projectIdentifier="",this.bookmarks$=this._bookmarkService.bookmarks$}ngOnInit(){var t=this;return(0,l.A)(function*(){t.initializeTheme(),t.processRouteParams(),t.loadInitialPosts(),t.subscribeToNewPosts()})()}initializeTheme(){this._angorConfigService.config$.subscribe(t=>{"auto"===t.scheme?this.detectSystemTheme():this.darkMode="dark"===t.scheme})}trackByFn(t,n){return t}checkIfRoutePubKeyIsFollowing(){this.isFollowing=!(!this.routePubKey||!this.followersList)&&this.followersList.some(t=>t.pubkey===this.routePubKey)}processRouteParams(){this._route.paramMap.subscribe(t=>{const n=t.get("project")||"";n.startsWith("angor")?this.projectIdentifier=n:(console.error('Invalid project identifier. It must start with "angor".'),this.projectIdentifier="");const o=t.get("pubkey")||"";if(o){const s=this._signerService.processKey(o);s?(this.routePubKey=s,this.isCurrentUserProfile=!1):(this.errorMessage="Public key is invalid. Please check your input.",this.setCurrentUserProfile())}else this.setCurrentUserProfile();this.loadUserProfileData(this.routePubKey)})}setCurrentUserProfile(){this.isCurrentUserProfile=!0,this.routePubKey=this._signerService.getPublicKey()}loadUserProfileData(t){this.loadUserProfile(t)}isValidHexPubkey(t){return/^[a-fA-F0-9]{64}$/.test(t)}loadInitialPosts(){var t=this;return(0,l.A)(function*(){t.loading=!0;let n=0;try{for(;n<5;){const c=yield t._storageService.getPostsByPubKeysWithPagination([t.routePubKey],t.currentPage,10);if(c.length>0){t.posts=[...t.posts,...c],t.posts.sort((f,g)=>g.created_at-f.created_at);break}n++,n<5&&(yield t.delay(3e3))}t.hasMorePosts=t.posts.length>0,t.hasMorePosts||console.log("This user has no posts.")}catch(c){console.error("Error loading posts:",c)}finally{t.loading=!1}t.refreshUI()})()}delay(t){return new Promise(n=>setTimeout(n,t))}subscribeToNewPosts(){var t=this;this.isCurrentUserProfile?this._storageService.posts$.subscribe(n=>{n&&n.pubkey===this.routePubKey&&(this.posts.unshift(n),this.posts.sort((o,s)=>s.created_at-o.created_at),this.refreshUI())}):this.postsSubscriptionId=this._subscriptionService.addSubscriptions([{authors:[this.routePubKey],kinds:[1]}],function(){var o=(0,l.A)(function*(s){t.isReply(s)||t._storageService.savePost(s)});return function(s){return o.apply(this,arguments)}}())}isReply(t){return t.tags.filter(o=>"e"===o[0]||"p"===o[0]).length>0}loadNextPage(){this.loading||(this.currentPage++,this.loadInitialPosts())}toggleAbout(){this.aboutExpanded=!this.aboutExpanded}ngOnDestroy(){this.subscriptionId&&this._subscriptionService.removeSubscriptionById(this.subscriptionId),this.postsSubscriptionId&&this._subscriptionService.removeSubscriptionById(this.postsSubscriptionId),this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}loadUserProfile(t){var n=this;return(0,l.A)(function*(){if(n.isLoading=!0,n.errorMessage=null,n.profileUser=null,n.refreshUI(),!t)return n.errorMessage="No public key found. Please log in again.",n.isLoading=!1,void n.refreshUI();try{const o=yield n._storageService.getProfile(t);o&&(n.profileUser=o,n.refreshUI()),console.log("cachedMetadata: ",o),n.subscribeToUserProfileAndContacts(t)}catch(o){console.error("Error loading user profile:",o)}})()}subscribeToUserProfileAndContacts(t){var n=this;return(0,l.A)(function*(){n.subscriptionId=n._subscriptionService.addSubscriptions([{authors:[t],kinds:[0],limit:1}],function(){var s=(0,l.A)(function*(c){yield n.processProfileMetadata(c,t)});return function(c){return s.apply(this,arguments)}}())})()}processProfileMetadata(t,n){var o=this;return(0,l.A)(function*(){try{const s=JSON.parse(t.content);o.profileUser=s,yield o._storageService.saveProfile(n,s),o._changeDetectorRef.markForCheck()}catch(s){console.error("Error processing metadata event:",s)}})()}getSafeUrl(t){return this._sanitizer.bypassSecurityTrustUrl(t)}refreshUI(){this._changeDetectorRef.detectChanges()}openSnackBar(t,n="dismiss"){this._snackBar.open(t,n,{duration:3e3})}canUseZap(){var t=this;return(0,l.A)(function*(){return!(!t.profileUser||!t.profileUser.lud06&&!t.profileUser.lud16)||(t.openSnackBar("Using Zap is not possible. Please complete your profile to include lud06 or lud16."),!1)})()}openZapDialog(t=""){var n=this;return(0,l.A)(function*(){(yield n.canUseZap())&&n._dialog.open(C.r,{width:"405px",maxHeight:"90vh",data:{lud16:n.profileUser.lud16,lud06:n.profileUser.lud06,pubkey:n.profileUser.pubkey,eventId:t}})})()}toggleLike(){this.isLiked=!this.isLiked,this.isLiked&&setTimeout(()=>{this.isLiked=!1,this.isLiked=!0},300)}addEmoji(t){this.eventInput.nativeElement.value+=t.emoji.native,this.showEmojiPicker=!1}toggleEmojiPicker(){this.showCommentEmojiPicker=!1,this.showEmojiPicker=!this.showEmojiPicker}addEmojiTocomment(t){this.commentInput.nativeElement.value+=t.emoji.native,this.showCommentEmojiPicker=!1}detectSystemTheme(){const t=window.matchMedia("(prefers-color-scheme: dark)");this.darkMode=t.matches,t.addEventListener("change",n=>{this.darkMode=n.matches})}togglePreview(){this.isPreview=!this.isPreview}sendEvent(){""!=this.eventInput.nativeElement.value&&this._eventService.sendTextEvent(this.eventInput.nativeElement.value).then(()=>{this.eventInput.nativeElement.value="",this._changeDetectorRef.markForCheck()}).catch(t=>{console.error("Failed to send Event:",t)})}copyHex(){this._clipboard.copy(this.routePubKey),this.openSnackBar("hex public key copied","dismiss")}copyNpub(){var t=this._signerService.getNpubFromPubkey(this.routePubKey);this._clipboard.copy(t),this.openSnackBar("npub public key copied","dismiss")}copyKey(t){if("hex"===t)this._clipboard.copy(this.routePubKey),this.openSnackBar("hex public key copied","dismiss");else if("npub"===t){const n=this._signerService.getNpubFromPubkey(this.routePubKey);this._clipboard.copy(n),this.openSnackBar("npub public key copied","dismiss")}}isSingleEmojiOrWord(t){const n=t.trim(),o=/^\w+$/.test(n),s=/^[\p{Emoji}]+$/u.test(n);return o||s}openPost(t){this._router.navigate(["/post",t])}toggleBookmark(t){var n=this;return(0,l.A)(function*(){(yield n._bookmarkService.isBookmarked(t))?yield n._bookmarkService.removeBookmark(t):yield n._bookmarkService.addBookmark(t)})()}isProjectBookmarked(t){var n=this;return(0,l.A)(function*(){return yield n._bookmarkService.isBookmarked(t)})()}static{this.\u0275fac=function(n){return new(n||i)(e.rXU(e.gRc),e.rXU(w.A),e.rXU(Y.n),e.rXU(T.up),e.rXU(d.nX),e.rXU(d.Ix),e.rXU(B.UG),e.rXU(M.bZ),e.rXU(X.P),e.rXU(A.U),e.rXU(N.n),e.rXU(L.B0),e.rXU(V.m),e.rXU(D.U))}}static{this.\u0275cmp=e.VBU({type:i,selectors:[["profile"]],viewQuery:function(n,o){if(1&n&&(e.GBs(K,5),e.GBs(z,5)),2&n){let s;e.mGM(s=e.lsd())&&(o.eventInput=s.first),e.mGM(s=e.lsd())&&(o.commentInput=s.first)}},decls:25,vars:11,consts:[["defaultAvatar",""],["profileMenu","matMenu"],["eventInput",""],["postCardMenu01","matMenu"],["expandableComments","angorCard"],[1,"flex","min-w-0","flex-auto","flex-col"],[1,"bg-card","flex","flex-col","shadow"],["onerror","this.onerror=null; this.src='/images/pages/profile/cover.jpg';",1,"h-40","object-cover","lg:h-80",3,"src","alt"],[1,"bg-card","mx-auto","flex","w-full","max-w-5xl","flex-0","flex-col","items-center","px-8","lg:h-18","lg:flex-row"],[1,"-mt-26","flex-shrink-0","rounded-full","lg:-mt-22"],[4,"ngIf","ngIfElse"],[1,"mt-4","flex","flex-grow","flex-col","items-center","lg:ml-8","lg:mt-0","lg:items-start"],[1,"max-w-full","truncate","text-lg","font-bold","leading-tight","lg:max-w-[25rem]",2,"white-space","nowrap","overflow","hidden","text-overflow","ellipsis"],[1,"text-secondary","max-w-full","truncate","leading-tight","lg:max-w-[25rem]",2,"white-space","nowrap","overflow","hidden","text-overflow","ellipsis"],[1,"flex","flex-shrink-0","items-center","space-x-6","lg:mt-0"],[1,"mb-4","mt-8","flex","flex-shrink-0","items-center","space-x-6","lg:m-0","lg:ml-auto"],[1,"mx-auto","w-full","max-w-5xl","p-6","sm:p-8"],[1,"m-auto","flex","w-full","max-w-140","flex-col","items-start"],["class","about-section mb-8 flex w-full flex-col items-start p-6 pb-6 transition-all duration-300 sm:p-8","style","position: relative",3,"ngStyle",4,"ngIf"],["class","mb-8 flex w-full flex-col p-6 pb-6 sm:p-8",4,"ngIf"],["class","mb-8 flex w-full flex-col bg-primary-50 dark:bg-primary-800",4,"ngIf"],[1,"mb-8","flex","w-full","flex-col",3,"item"],[1,"m-auto","mt-4","flex","justify-center"],["onerror","this.onerror=null; this.src='/images/avatars/avatar-placeholder.png';",1,"ring-bg-card","h-32","min-h-32","w-32","min-w-32","max-w-fit","rounded-full","object-cover","ring-4",3,"src","alt"],["src","/images/avatars/avatar-placeholder.png","onerror","this.onerror=null; this.src='/images/avatars/avatar-placeholder.png';",1,"ring-bg-card","h-32","min-h-32","w-32","min-w-32","rounded-full","object-cover","ring-4",3,"alt"],[1,"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"],["mat-icon-button","",3,"matMenuTriggerFor"],["mat-menu-item","",3,"click",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"my-2"],["mat-menu-item","",3,"routerLink",4,"ngIf"],[4,"ngIf"],["mat-menu-item","",3,"click"],[1,"flex","items-center"],[1,"mr-3","icon-size-5",3,"svgIcon"],["mat-menu-item","",3,"routerLink"],["mat-menu-item",""],[1,"about-section","mb-8","flex","w-full","flex-col","items-start","p-6","pb-6","transition-all","duration-300","sm:p-8",2,"position","relative",3,"ngStyle"],[1,"mb-2","flex","w-full","items-center","justify-between"],[1,"text-2xl","font-semibold","leading-tight"],["mat-icon-button","","color","primary","aria-label","Toggle about section",2,"position","absolute","top","16px","right","16px",3,"click"],[3,"svgIcon"],[1,"about-content","text-base","text-gray-700","dark:text-gray-50","transition-all","duration-300",3,"ngStyle"],["class","text-gray-500",4,"ngIf"],[1,"text-gray-500"],[1,"mb-8","flex","w-full","flex-col","p-6","pb-6","sm:p-8"],[1,"flex","justify-between"],[1,"text-xl","font-semibold"],[1,"-mr-4","ml-auto",3,"change","color"],[1,"mt-8","flex","flex-col","items-start","sm:flex-row"],[1,"w-full",3,"subscriptSizing"],["matInput","","cdkTextareaAutosize","",3,"placeholder","rows"],[1,"-mx-3","mt-6","flex","items-center","justify-between","sm:mt-8"],["mat-button","",1,"mr-1","px-3",3,"click"],[1,"ml-2"],["class","emoji-picker-container-global",4,"ngIf"],["mat-button","",1,"mr-1","hidden","px-3","sm:inline-flex"],["mat-button","",1,"px-3",3,"matMenuTriggerFor"],["mat-menu-item","",1,"sm:hidden"],["mat-button","",1,"mr-1","flex","px-3",3,"click"],[1,"emoji-picker-container-global"],[3,"emojiClick","darkMode"],[1,"mb-8","flex","w-full","flex-col","bg-primary-50","dark:bg-primary-800"],[1,"mx-6","mb-4","mt-6","flex","items-center","sm:mx-8"],["onerror","this.onerror=null; this.src='/images/avatars/avatar-placeholder.png';",1,"mr-4","h-10","w-10","rounded-full","object-cover",3,"src","alt"],[1,"flex","flex-col"],[1,"font-semibold","leading-none"],[1,"text-secondary","mt-1","text-sm","leading-none"],["class","inline-block whitespace-pre-wrap break-words",4,"ngFor","ngForOf","ngForTrackBy"],[1,"mx-3","flex","items-center","sm:mx-5"],["mat-button","",1,"mr-1","px-3"],[1,"text-red-500","icon-size-5",3,"svgIcon"],[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,"ml-3","text-md","tracking-tight"],[1,"hidden","flex-auto","sm:flex"],[1,"mt-4","flex","items-center","sm:mt-0"],["mat-button","",1,"-ml-2","mr-1","px-3","sm:ml-0"],["mat-button","",1,"px-3","sm:-mr-4"],[1,"mr-1"],[1,"inline-block","whitespace-pre-wrap","break-words"],[1,"relative","mb-4","block"],["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"],[1,"mx-6","mb-6","mt-2","sm:mx-8"],["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-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(n,o){if(1&n&&(e.j41(0,"div",5)(1,"div",6)(2,"div"),e.nrm(3,"img",7),e.k0s(),e.j41(4,"div",8)(5,"div",9),e.DNE(6,Q,2,2,"ng-container",10)(7,q,1,1,"ng-template",null,0,e.C5r),e.k0s(),e.j41(9,"div",11)(10,"div",12),e.EFF(11),e.k0s(),e.j41(12,"div",13),e.EFF(13),e.k0s()(),e.j41(14,"div",14)(15,"div",15),e.DNE(16,ie,17,14),e.k0s()()()(),e.j41(17,"div",16)(18,"div",17),e.DNE(19,se,9,11,"angor-card",18)(20,le,58,16,"angor-card",19)(21,ge,41,9,"angor-card",20),e.Z7z(22,he,1,1,"app-post",21,e.Vm6),e.DNE(24,ve,3,2,"div",22),e.k0s()()()),2&n){const s=e.sdS(8);e.R7$(3),e.FS9("alt",(null==o.profileUser?null:o.profileUser.display_name)||(null==o.profileUser?null:o.profileUser.name)||"Banner"),e.Y8G("src",(null==o.profileUser?null:o.profileUser.banner)||"/images/pages/profile/cover.jpg",e.B4B),e.R7$(3),e.Y8G("ngIf",null==o.profileUser?null:o.profileUser.picture)("ngIfElse",s),e.R7$(5),e.SpI(" ",(null==o.profileUser?null:o.profileUser.display_name)||(null==o.profileUser?null:o.profileUser.name)||"Unknown User"," "),e.R7$(2),e.SpI(" ",(null==o.profileUser?null:o.profileUser.username)||(null==o.profileUser?null:o.profileUser.name)," "),e.R7$(3),e.vxM(o.projectIdentifier?16:-1),e.R7$(3),e.Y8G("ngIf",(null==o.profileUser?null:o.profileUser.about)&&""!==o.profileUser.about.trim()),e.R7$(),e.Y8G("ngIf",o.isCurrentUserProfile),e.R7$(),e.Y8G("ngIf",o.isPreview),e.R7$(),e.Dyx(o.posts),e.R7$(2),e.vxM(o.hasMorePosts?24:-1)}},dependencies:[d.Wk,j.n,_.m_,_.An,p.Hl,p.$z,p.iY,u.Cn,u.kk,u.fb,u.Cp,k.RG,k.rl,x.fS,x.fg,v.xb,v.EE,b.w,b.q,E.uc,m.YU,m.MD,m.Sq,m.bT,m.B3,m.Jj,y.YN,R.Ic,U.sG,I.D6,$.e,P.MY,F.vg,G.q],styles:[".emoji-picker-container-global{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);z-index:9999;width:350px;max-width:100%}.heart-beat{animation:heartBeatAnimation .3s ease-in-out}@keyframes heartBeatAnimation{0%{transform:scale(1)}30%{transform:scale(2)}60%{transform:scale(1)}to{transform:scale(1)}}.loading-spinner{display:flex;justify-content:center;align-items:center;margin:20px 0}.loading-spinner .spinner{border:4px solid rgba(0,0,0,.1);border-left-color:#009fb5;border-radius:50%;width:30px;height:30px;animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.about-section{overflow:hidden;transition:height .3s ease}.c-img,.c-video{max-width:100%;border-radius:10px}\n"],encapsulation:2,changeDetection:0})}}return i})()}]}}]); \ No newline at end of file diff --git a/404.html b/404.html index e8af9fc..1ea3655 100644 --- a/404.html +++ b/404.html @@ -26,7 +26,7 @@ - + @@ -41,5 +41,5 @@ - + diff --git a/index.html b/index.html index e8af9fc..1ea3655 100644 --- a/index.html +++ b/index.html @@ -26,7 +26,7 @@ - + @@ -41,5 +41,5 @@ - + diff --git a/main.466b939d5689d585.js b/main.466b939d5689d585.js deleted file mode 100644 index 0c6d69a..0000000 --- a/main.466b939d5689d585.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkangor=self.webpackChunkangor||[]).push([[792],{7618:(o,s,r)=>{"use strict";r.d(s,{F:()=>st});let i=(()=>{class ft{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 ft})(),a=(()=>{class ft{static{this.complex="375ms"}static{this.entering="225ms"}static{this.exiting="195ms"}}return ft})();var c=r(1204);const le=(ft,_t,ot,Yt,un=`${a.entering} ${i.deceleration}`,wn=`${a.exiting} ${i.acceleration}`)=>(0,c.hZ)(ft,[(0,c.wk)("void",(0,c.iF)(_t)),(0,c.wk)("*",(0,c.iF)(ot)),(0,c.kY)("void => false, * => false",[]),(0,c.kY)("void => *",(0,c.i0)(Yt||un),{params:{timings:un}}),(0,c.kY)("* => void",(0,c.i0)(Yt||wn),{params:{timings:wn}})]),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}`}})]),le("zoomIn",{opacity:0,transform:"scale(0.5)"},{opacity:1,transform:"scale(1)"},""),le("zoomOut",{opacity:1,transform:"scale(1)"},{opacity:0,transform:"scale(0.5)"},"")]},3871:(o,s,r)=>{"use strict";r.d(s,{$w:()=>Mt,lX:()=>c,Tv:()=>Ya});var i=r(7618),a=r(3107);let c=(()=>{class Y{constructor(){this._componentRegistry=new Map,this._navigationStore=new Map}registerComponent(re,Qe){this._componentRegistry.set(re,Qe)}deregisterComponent(re){this._componentRegistry.delete(re)}getComponent(re){return this._componentRegistry.get(re)}storeNavigation(re,Qe){this._navigationStore.set(re,Qe)}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,Qe=[]){for(const Et of re)"basic"===Et.type?Qe.push(Et):Et.children&&this.getFlatNavigation(Et.children,Qe);return Qe}getItem(re,Qe){for(const Et of Qe){if(Et.id===re)return Et;if(Et.children){const Fn=this.getItem(re,Et.children);if(Fn)return Fn}}return null}getItemParent(re,Qe,Et){for(const Fn of Qe){if(Fn.id===re)return Et;if(Fn.children){const fn=this.getItemParent(re,Fn.children,Fn);if(fn)return fn}}return null}static{this.\u0275fac=function(Qe){return new(Qe||Y)}}static{this.\u0275prov=a.jDH({token:Y,factory:Y.\u0275fac,providedIn:"root"})}}return Y})();var y=r(3939),w=r(7838),C=r(8447),A=r(4460),S=r(3904),T=r(7818),k=r(7712),R=r(9893),G=r(5424);const Z=Y=>({"angor-horizontal-navigation-item-active-forced":Y}),te=Y=>[Y];function be(Y,Ve){1&Y&&a.eu8(0)}function _e(Y,Ve){if(1&Y&&(a.j41(0,"div",2),a.DNE(1,be,1,0,"ng-container",7),a.k0s()),2&Y){let re,Qe,Et,Fn;const fn=a.XpG(),cr=a.sdS(9);a.Y8G("ngClass",a.eq3(10,Z,fn.item.active))("routerLink",a.eq3(12,te,fn.item.link))("fragment",null!==(re=fn.item.fragment)&&void 0!==re?re:null)("preserveFragment",null!==(Qe=fn.item.preserveFragment)&&void 0!==Qe&&Qe)("queryParams",null!==(Et=fn.item.queryParams)&&void 0!==Et?Et:null)("queryParamsHandling",null!==(Fn=fn.item.queryParamsHandling)&&void 0!==Fn?Fn:null)("routerLinkActive","angor-horizontal-navigation-item-active")("routerLinkActiveOptions",fn.isActiveMatchOptions)("matTooltip",fn.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",cr)}}function pe(Y,Ve){1&Y&&a.eu8(0)}function Te(Y,Ve){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(),Qe=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",Qe)}}function Ce(Y,Ve){1&Y&&a.eu8(0)}function Ne(Y,Ve){if(1&Y){const re=a.RV6();a.j41(0,"div",8),a.bIt("click",function(){a.eBV(re);const Et=a.XpG();return a.Njj(Et.item.function(Et.item))}),a.DNE(1,Ce,1,0,"ng-container",7),a.k0s()}if(2&Y){const re=a.XpG(),Qe=a.sdS(9);a.Y8G("ngClass",a.eq3(3,Z,re.item.active))("matTooltip",re.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",Qe)}}function Se(Y,Ve){1&Y&&a.eu8(0)}function xe(Y,Ve){if(1&Y){const re=a.RV6();a.j41(0,"div",9),a.bIt("click",function(){a.eBV(re);const Et=a.XpG();return a.Njj(Et.item.function(Et.item))}),a.DNE(1,Se,1,0,"ng-container",7),a.k0s()}if(2&Y){let re,Qe,Et,Fn;const fn=a.XpG(),cr=a.sdS(9);a.Y8G("ngClass",a.eq3(10,Z,fn.item.active))("routerLink",a.eq3(12,te,fn.item.link))("fragment",null!==(re=fn.item.fragment)&&void 0!==re?re:null)("preserveFragment",null!==(Qe=fn.item.preserveFragment)&&void 0!==Qe&&Qe)("queryParams",null!==(Et=fn.item.queryParams)&&void 0!==Et?Et:null)("queryParamsHandling",null!==(Fn=fn.item.queryParamsHandling)&&void 0!==Fn?Fn:null)("routerLinkActive","angor-horizontal-navigation-item-active")("routerLinkActiveOptions",fn.isActiveMatchOptions)("matTooltip",fn.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",cr)}}function ae(Y,Ve){1&Y&&a.eu8(0)}function le(Y,Ve){if(1&Y){const re=a.RV6();a.j41(0,"a",10),a.bIt("click",function(){a.eBV(re);const Et=a.XpG();return a.Njj(Et.item.function(Et.item))}),a.DNE(1,ae,1,0,"ng-container",7),a.k0s()}if(2&Y){const re=a.XpG(),Qe=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",Qe)}}function ke(Y,Ve){1&Y&&a.eu8(0)}function Ue(Y,Ve){if(1&Y&&(a.j41(0,"div",4),a.DNE(1,ke,1,0,"ng-container",7),a.k0s()),2&Y){const re=a.XpG(),Qe=a.sdS(9);a.Y8G("ngClass",a.eq3(3,Z,re.item.active))("matTooltip",re.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",Qe)}}function st(Y,Ve){1&Y&&a.eu8(0)}function ft(Y,Ve){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 _t(Y,Ve){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 ot(Y,Ve){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 Yt(Y,Ve){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 un(Y,Ve){if(1&Y&&(a.DNE(0,_t,1,2,"mat-icon",11),a.j41(1,"div",12)(2,"div",13)(3,"span",14),a.EFF(4),a.k0s()(),a.DNE(5,ot,3,2,"div",15),a.k0s(),a.DNE(6,Yt,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 wn=(()=>{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(Qe){return new(Qe||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(Qe,Et){1&Qe&&(a.j41(0,"div",1),a.DNE(1,_e,2,14,"div",2)(2,Te,2,4,"a",3)(3,Ne,2,5,"div",4)(4,xe,2,14,"div",2)(5,le,2,4,"a",5)(6,Ue,2,5,"div",4)(7,ft,2,1,"div",6),a.k0s(),a.DNE(8,un,7,5,"ng-template",null,0,a.C5r)),2&Qe&&(a.AVh("angor-horizontal-navigation-item-has-subtitle",!!Et.item.subtitle),a.Y8G("ngClass",null==Et.item.classes?null:Et.item.classes.wrapper),a.R7$(),a.vxM(!Et.item.link||Et.item.externalLink||Et.item.function||Et.item.disabled?-1:1),a.R7$(),a.vxM(Et.item.link&&Et.item.externalLink&&!Et.item.function&&!Et.item.disabled?2:-1),a.R7$(),a.vxM(Et.item.link||!Et.item.function||Et.item.disabled?-1:3),a.R7$(),a.vxM(Et.item.link&&!Et.item.externalLink&&Et.item.function&&!Et.item.disabled?4:-1),a.R7$(),a.vxM(Et.item.link&&Et.item.externalLink&&Et.item.function&&!Et.item.disabled?5:-1),a.R7$(),a.vxM(Et.item.link||Et.item.function||Et.item.disabled?-1:6),a.R7$(),a.vxM(Et.item.disabled?7:-1))},dependencies:[A.YU,R.Wk,R.wQ,k.uc,k.oV,A.T3,T.Cn,T.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(Qe){return new(Qe||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(Qe,Et){1&Qe&&a.nrm(0,"div",0),2&Qe&&a.Y8G("ngClass",null==Et.item.classes?null:Et.item.classes.wrapper)},dependencies:[A.YU],encapsulation:2,changeDetection:0})}}return Y})();const En=["matMenu"],Ze=(Y,Ve)=>({"angor-horizontal-navigation-menu-active":Y,"angor-horizontal-navigation-menu-active-forced":Ve}),wt=Y=>({$implicit:Y}),ze=(Y,Ve)=>({"angor-horizontal-navigation-item-disabled":Y,"angor-horizontal-navigation-item-active-forced":Ve});function Be(Y,Ve){1&Y&&a.eu8(0)}function Ut(Y,Ve){if(1&Y){const re=a.RV6();a.j41(0,"div",6,2),a.bIt("onMenuOpen",function(){a.eBV(re);const Et=a.XpG();return a.Njj(Et.triggerChangeDetection())})("onMenuClose",function(){a.eBV(re);const Et=a.XpG();return a.Njj(Et.triggerChangeDetection())}),a.DNE(2,Be,1,0,"ng-container",7),a.k0s()}if(2&Y){const re=a.sdS(1),Qe=a.XpG(),Et=a.sdS(2),Fn=a.sdS(6);a.Y8G("ngClass",a.l_i(4,Ze,re.menuOpen,Qe.item.active))("matMenuTriggerFor",Et),a.R7$(2),a.Y8G("ngTemplateOutlet",Fn)("ngTemplateOutletContext",a.eq3(7,wt,Qe.item))}}function Ke(Y,Ve){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,Qe=a.XpG();a.Y8G("disabled",re.disabled),a.R7$(),a.Y8G("item",re)("name",Qe.name)}}function lt(Y,Ve){1&Y&&a.eu8(0)}function Xe(Y,Ve){if(1&Y&&(a.j41(0,"div",9),a.DNE(1,lt,1,0,"ng-container",7),a.nrm(2,"angor-horizontal-navigation-branch-item",12,3),a.k0s()),2&Y){const re=a.sdS(3),Qe=a.XpG(2).$implicit,Et=a.XpG(),Fn=a.sdS(6);a.Y8G("disabled",Qe.disabled)("matMenuTriggerFor",re.matMenu),a.R7$(),a.Y8G("ngTemplateOutlet",Fn)("ngTemplateOutletContext",a.eq3(7,wt,Qe)),a.R7$(),a.Y8G("child",!0)("item",Qe)("name",Et.name)}}function Ge(Y,Ve){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,Qe=a.XpG();a.R7$(),a.Y8G("item",re)("name",Qe.name)}}function pt(Y,Ve){if(1&Y&&a.DNE(0,Ke,2,3,"div",8)(1,Xe,4,9,"div",9)(2,Ge,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,Ve){if(1&Y&&a.DNE(0,pt,3,3),2&Y){const re=Ve.$implicit;a.vxM(re.hidden&&!re.hidden(re)||!re.hidden?0:-1)}}function qe(Y,Ve){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 Nt(Y,Ve){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 tn(Y,Ve){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 pn(Y,Ve){if(1&Y&&(a.j41(0,"div",13)(1,"div",14),a.DNE(2,qe,1,2,"mat-icon",15),a.j41(3,"div",16)(4,"div",17)(5,"span",18),a.EFF(6),a.k0s()(),a.DNE(7,Nt,3,2,"div",19),a.k0s(),a.DNE(8,tn,3,2,"div",20),a.k0s()()),2&Y){const re=Ve.$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 Wn=(()=>{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,Qe){return Qe.id||re}static{this.\u0275fac=function(Qe){return new(Qe||Y)}}static{this.\u0275cmp=a.VBU({type:Y,selectors:[["angor-horizontal-navigation-branch-item"]],viewQuery:function(Qe,Et){if(1&Qe&&a.GBs(En,7),2&Qe){let Fn;a.mGM(Fn=a.lsd())&&(Et.matMenu=Fn.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(Qe,Et){1&Qe&&(a.DNE(0,Ut,3,9,"div",4),a.j41(1,"mat-menu",5,0),a.Z7z(3,se,1,1,null,null,Et.trackByFn,!0),a.k0s(),a.DNE(5,pn,9,13,"ng-template",null,1,a.C5r)),2&Qe&&(a.vxM(Et.child?-1:0),a.R7$(),a.Y8G("overlapTrigger",!1),a.R7$(2),a.Dyx(Et.item.children))},dependencies:()=>[Y,A.YU,T.Cn,T.kk,T.fb,T.Cp,A.T3,wn,$n,k.uc,k.oV,S.m_,S.An],encapsulation:2,changeDetection:0})}}return Y})(),Pt=(()=>{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(Qe){return new(Qe||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(Qe,Et){1&Qe&&a.nrm(0,"div",0),2&Qe&&a.Y8G("ngClass",null==Et.item.classes?null:Et.item.classes.wrapper)},dependencies:[A.YU],encapsulation:2,changeDetection:0})}}return Y})();function en(Y,Ve){if(1&Y&&a.nrm(0,"angor-horizontal-navigation-basic-item",1),2&Y){const re=a.XpG(2).$implicit,Qe=a.XpG();a.Y8G("item",re)("name",Qe.name)}}function an(Y,Ve){if(1&Y&&a.nrm(0,"angor-horizontal-navigation-branch-item",1),2&Y){const re=a.XpG(2).$implicit,Qe=a.XpG();a.Y8G("item",re)("name",Qe.name)}}function Yn(Y,Ve){if(1&Y&&a.nrm(0,"angor-horizontal-navigation-spacer-item",1),2&Y){const re=a.XpG(2).$implicit,Qe=a.XpG();a.Y8G("item",re)("name",Qe.name)}}function Sn(Y,Ve){if(1&Y&&a.DNE(0,en,1,2,"angor-horizontal-navigation-basic-item",1)(1,an,1,2,"angor-horizontal-navigation-branch-item",1)(2,Yn,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 Xt(Y,Ve){if(1&Y&&a.DNE(0,Sn,3,3),2&Y){const re=Ve.$implicit;a.vxM(re.hidden&&!re.hidden(re)||!re.hidden?0:-1)}}let Mt=(()=>{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,Qe){return Qe.id||re}static{this.\u0275fac=function(Qe){return new(Qe||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(Qe,Et){1&Qe&&(a.j41(0,"div",0),a.Z7z(1,Xt,1,1,null,null,Et.trackByFn,!0),a.k0s()),2&Qe&&(a.R7$(),a.Dyx(Et.navigation))},dependencies:[wn,Wn,Pt],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 Gt=Y=>({"angor-vertical-navigation-item-active-forced":Y}),Ot=Y=>[Y];function Ie(Y,Ve){1&Y&&a.eu8(0)}function Me(Y,Ve){if(1&Y&&(a.j41(0,"a",2),a.DNE(1,Ie,1,0,"ng-container",6),a.k0s()),2&Y){let re,Qe,Et,Fn;const fn=a.XpG(),cr=a.sdS(9);a.Y8G("ngClass",a.eq3(10,Gt,fn.item.active))("routerLink",a.eq3(12,Ot,fn.item.link))("fragment",null!==(re=fn.item.fragment)&&void 0!==re?re:null)("preserveFragment",null!==(Qe=fn.item.preserveFragment)&&void 0!==Qe&&Qe)("queryParams",null!==(Et=fn.item.queryParams)&&void 0!==Et?Et:null)("queryParamsHandling",null!==(Fn=fn.item.queryParamsHandling)&&void 0!==Fn?Fn:null)("routerLinkActive","angor-vertical-navigation-item-active")("routerLinkActiveOptions",fn.isActiveMatchOptions)("matTooltip",fn.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",cr)}}function nt(Y,Ve){1&Y&&a.eu8(0)}function W(Y,Ve){if(1&Y&&(a.j41(0,"a",3),a.DNE(1,nt,1,0,"ng-container",6),a.k0s()),2&Y){const re=a.XpG(),Qe=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",Qe)}}function L(Y,Ve){1&Y&&a.eu8(0)}function V(Y,Ve){if(1&Y){const re=a.RV6();a.j41(0,"div",7),a.bIt("click",function(){a.eBV(re);const Et=a.XpG();return a.Njj(Et.item.function(Et.item))}),a.DNE(1,L,1,0,"ng-container",6),a.k0s()}if(2&Y){const re=a.XpG(),Qe=a.sdS(9);a.Y8G("ngClass",a.eq3(3,Gt,re.item.active))("matTooltip",re.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",Qe)}}function Re(Y,Ve){1&Y&&a.eu8(0)}function bt(Y,Ve){if(1&Y){const re=a.RV6();a.j41(0,"a",8),a.bIt("click",function(){a.eBV(re);const Et=a.XpG();return a.Njj(Et.item.function(Et.item))}),a.DNE(1,Re,1,0,"ng-container",6),a.k0s()}if(2&Y){let re,Qe,Et,Fn;const fn=a.XpG(),cr=a.sdS(9);a.Y8G("ngClass",a.eq3(10,Gt,fn.item.active))("routerLink",a.eq3(12,Ot,fn.item.link))("fragment",null!==(re=fn.item.fragment)&&void 0!==re?re:null)("preserveFragment",null!==(Qe=fn.item.preserveFragment)&&void 0!==Qe&&Qe)("queryParams",null!==(Et=fn.item.queryParams)&&void 0!==Et?Et:null)("queryParamsHandling",null!==(Fn=fn.item.queryParamsHandling)&&void 0!==Fn?Fn:null)("routerLinkActive","angor-vertical-navigation-item-active")("routerLinkActiveOptions",fn.isActiveMatchOptions)("matTooltip",fn.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",cr)}}function mt(Y,Ve){1&Y&&a.eu8(0)}function At(Y,Ve){if(1&Y){const re=a.RV6();a.j41(0,"a",9),a.bIt("click",function(){a.eBV(re);const Et=a.XpG();return a.Njj(Et.item.function(Et.item))}),a.DNE(1,mt,1,0,"ng-container",6),a.k0s()}if(2&Y){const re=a.XpG(),Qe=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",Qe)}}function Ln(Y,Ve){1&Y&&a.eu8(0)}function Zt(Y,Ve){if(1&Y&&(a.j41(0,"div",4),a.DNE(1,Ln,1,0,"ng-container",6),a.k0s()),2&Y){const re=a.XpG(),Qe=a.sdS(9);a.Y8G("ngClass",a.eq3(3,Gt,re.item.active))("matTooltip",re.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",Qe)}}function mn(Y,Ve){1&Y&&a.eu8(0)}function In(Y,Ve){if(1&Y&&(a.j41(0,"div",5),a.DNE(1,mn,1,0,"ng-container",6),a.k0s()),2&Y){const re=a.XpG(),Qe=a.sdS(9);a.Y8G("matTooltip",re.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",Qe)}}function Bn(Y,Ve){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 Hn(Y,Ve){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 xr(Y,Ve){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 ti(Y,Ve){if(1&Y&&(a.DNE(0,Bn,1,2,"mat-icon",10),a.j41(1,"div",11)(2,"div",12)(3,"span",13),a.EFF(4),a.k0s()(),a.DNE(5,Hn,3,2,"div",14),a.k0s(),a.DNE(6,xr,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(Qe){return new(Qe||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(Qe,Et){1&Qe&&(a.j41(0,"div",1),a.DNE(1,Me,2,14,"a",2)(2,W,2,4,"a",3)(3,V,2,5,"div",4)(4,bt,2,14,"a",2)(5,At,2,4,"a",3)(6,Zt,2,5,"div",4)(7,In,2,2,"div",5),a.k0s(),a.DNE(8,ti,7,5,"ng-template",null,0,a.C5r)),2&Qe&&(a.AVh("angor-vertical-navigation-item-has-subtitle",!!Et.item.subtitle),a.Y8G("ngClass",null==Et.item.classes?null:Et.item.classes.wrapper),a.R7$(),a.vxM(!Et.item.link||Et.item.externalLink||Et.item.function||Et.item.disabled?-1:1),a.R7$(),a.vxM(Et.item.link&&Et.item.externalLink&&!Et.item.function&&!Et.item.disabled?2:-1),a.R7$(),a.vxM(Et.item.link||!Et.item.function||Et.item.disabled?-1:3),a.R7$(),a.vxM(Et.item.link&&!Et.item.externalLink&&Et.item.function&&!Et.item.disabled?4:-1),a.R7$(),a.vxM(Et.item.link&&Et.item.externalLink&&Et.item.function&&!Et.item.disabled?5:-1),a.R7$(),a.vxM(Et.item.link||Et.item.function||Et.item.disabled?-1:6),a.R7$(),a.vxM(Et.item.disabled?7:-1))},dependencies:[A.YU,R.Wk,R.wQ,k.uc,k.oV,A.T3,S.m_,S.An],encapsulation:2,changeDetection:0})}}return Y})(),vt=(()=>{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(Qe){return new(Qe||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(Qe,Et){1&Qe&&a.nrm(0,"div",0),2&Qe&&a.Y8G("ngClass",null==Et.item.classes?null:Et.item.classes.wrapper)},dependencies:[A.YU],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(Qe){return new(Qe||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(Qe,Et){1&Qe&&a.nrm(0,"div",0),2&Qe&&a.Y8G("ngClass",null==Et.item.classes?null:Et.item.classes.wrapper)},dependencies:[A.YU],encapsulation:2,changeDetection:0})}}return Y})();function Ee(Y,Ve){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 at(Y,Ve){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 Fe(Y,Ve){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 Rt(Y,Ve){if(1&Y&&a.nrm(0,"angor-vertical-navigation-basic-item",9),2&Y){const re=a.XpG(2).$implicit,Qe=a.XpG();a.Y8G("item",re)("name",Qe.name)}}function dt(Y,Ve){if(1&Y&&a.nrm(0,"angor-vertical-navigation-collapsable-item",10),2&Y){const re=a.XpG(2).$implicit,Qe=a.XpG();a.Y8G("item",re)("name",Qe.name)("autoCollapse",Qe.autoCollapse)}}function Bt(Y,Ve){if(1&Y&&a.nrm(0,"angor-vertical-navigation-divider-item",9),2&Y){const re=a.XpG(2).$implicit,Qe=a.XpG();a.Y8G("item",re)("name",Qe.name)}}function _n(Y,Ve){if(1&Y&&a.nrm(0,"angor-vertical-navigation-group-item",9),2&Y){const re=a.XpG(2).$implicit,Qe=a.XpG();a.Y8G("item",re)("name",Qe.name)}}function or(Y,Ve){if(1&Y&&a.nrm(0,"angor-vertical-navigation-spacer-item",9),2&Y){const re=a.XpG(2).$implicit,Qe=a.XpG();a.Y8G("item",re)("name",Qe.name)}}function Mr(Y,Ve){if(1&Y&&a.DNE(0,Rt,1,2,"angor-vertical-navigation-basic-item",9)(1,dt,1,3,"angor-vertical-navigation-collapsable-item",10)(2,Bt,1,2,"angor-vertical-navigation-divider-item",9)(3,_n,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,Ve){if(1&Y&&a.DNE(0,Mr,5,5),2&Y){const re=Ve.$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,Qe){return Qe.id||re}static{this.\u0275fac=function(Qe){return new(Qe||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(Qe,Et){1&Qe&&(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,at,3,2,"div",6),a.k0s(),a.DNE(8,Fe,3,2,"div",7),a.k0s()(),a.Z7z(9,ii,1,1,null,null,Et.trackByFn,!0)),2&Qe&&(a.AVh("angor-vertical-navigation-item-has-subtitle",!!Et.item.subtitle),a.Y8G("ngClass",null==Et.item.classes?null:Et.item.classes.wrapper),a.R7$(2),a.vxM(Et.item.icon?2:-1),a.R7$(3),a.Y8G("ngClass",null==Et.item.classes?null:Et.item.classes.title),a.R7$(),a.SpI(" ",Et.item.title," "),a.R7$(),a.vxM(Et.item.subtitle?7:-1),a.R7$(),a.vxM(Et.item.badge?8:-1),a.R7$(),a.Dyx(Et.item.children))},dependencies:()=>[Y,A.YU,S.m_,S.An,Xr,so,vt,$t],encapsulation:2,changeDetection:0})}}return Y})();var Ai=r(1483);const sn=Y=>({"angor-vertical-navigation-item-disabled":Y});function Tt(Y,Ve){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 Je(Y,Ve){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 St(Y,Ve){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 zt(Y,Ve){if(1&Y&&a.nrm(0,"angor-vertical-navigation-basic-item",11),2&Y){const re=a.XpG(2).$implicit,Qe=a.XpG(2);a.Y8G("item",re)("name",Qe.name)}}function zn(Y,Ve){if(1&Y&&a.nrm(0,"angor-vertical-navigation-collapsable-item",12),2&Y){const re=a.XpG(2).$implicit,Qe=a.XpG(2);a.Y8G("item",re)("name",Qe.name)("autoCollapse",Qe.autoCollapse)}}function hr(Y,Ve){if(1&Y&&a.nrm(0,"angor-vertical-navigation-divider-item",11),2&Y){const re=a.XpG(2).$implicit,Qe=a.XpG(2);a.Y8G("item",re)("name",Qe.name)}}function uo(Y,Ve){if(1&Y&&a.nrm(0,"angor-vertical-navigation-group-item",11),2&Y){const re=a.XpG(2).$implicit,Qe=a.XpG(2);a.Y8G("item",re)("name",Qe.name)}}function Oi(Y,Ve){if(1&Y&&a.nrm(0,"angor-vertical-navigation-spacer-item",11),2&Y){const re=a.XpG(2).$implicit,Qe=a.XpG(2);a.Y8G("item",re)("name",Qe.name)}}function Uo(Y,Ve){if(1&Y&&a.DNE(0,zt,1,2,"angor-vertical-navigation-basic-item",11)(1,zn,1,3,"angor-vertical-navigation-collapsable-item",12)(2,hr,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,Ve){if(1&Y&&a.DNE(0,Uo,5,5),2&Y){const re=Ve.$implicit;a.vxM(re.hidden&&!re.hidden(re)||!re.hidden?0:-1)}}function ts(Y,Ve){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)(R.Ix),this._angorNavigationService=(0,a.WQX)(c),this.isCollapsed=!0,this.isExpanded=!1,this._unsubscribeAll=new C.B}get classList(){return{"angor-vertical-navigation-item-collapsed":this.isCollapsed,"angor-vertical-navigation-item-expanded":this.isExpanded}}ngOnInit(){this._angorVerticalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._hasActiveChild(this.item,this._router.url)?this.expand():this.autoCollapse&&this.collapse(),this._angorVerticalNavigationComponent.onCollapsableItemCollapsed.pipe((0,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 R.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,Qe){return Qe.id||re}_hasActiveChild(re,Qe){const Et=re.children;if(!Et)return!1;for(const Fn of Et)if(Fn.children&&this._hasActiveChild(Fn,Qe)||Fn.link&&this._router.isActive(Fn.link,Fn.exactMatch||!1))return!0;return!1}_isChildrenOf(re,Qe){const Et=re.children;if(!Et)return!1;if(Et.indexOf(Qe)>-1)return!0;for(const Fn of Et)if(Fn.children&&this._isChildrenOf(Fn,Qe))return!0;return!1}static{this.\u0275fac=function(Qe){return new(Qe||Y)}}static{this.\u0275cmp=a.VBU({type:Y,selectors:[["angor-vertical-navigation-collapsable-item"]],hostVars:2,hostBindings:function(Qe,Et){2&Qe&&a.HbH(Et.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(Qe,Et){1&Qe&&(a.j41(0,"div",0)(1,"div",1),a.bIt("click",function(){return Et.toggleCollapsable()}),a.DNE(2,Tt,1,2,"mat-icon",2),a.j41(3,"div",3)(4,"div",4)(5,"span",5),a.EFF(6),a.k0s()(),a.DNE(7,Je,3,2,"div",6),a.k0s(),a.DNE(8,St,3,2,"div",7),a.nrm(9,"mat-icon",8),a.k0s()(),a.DNE(10,ts,3,1,"div",9)),2&Qe&&(a.AVh("angor-vertical-navigation-item-has-subtitle",!!Et.item.subtitle),a.Y8G("ngClass",null==Et.item.classes?null:Et.item.classes.wrapper),a.R7$(),a.Y8G("ngClass",a.eq3(12,sn,Et.item.disabled))("matTooltip",Et.item.tooltip||""),a.R7$(),a.vxM(Et.item.icon?2:-1),a.R7$(3),a.Y8G("ngClass",null==Et.item.classes?null:Et.item.classes.title),a.R7$(),a.SpI(" ",Et.item.title," "),a.R7$(),a.vxM(Et.item.subtitle?7:-1),a.R7$(),a.vxM(Et.item.badge?8:-1),a.R7$(),a.Y8G("svgIcon","heroicons_solid:chevron-right"),a.R7$(),a.vxM(Et.isCollapsed?-1:10))},dependencies:()=>[Y,A.YU,k.uc,k.oV,S.m_,S.An,Xr,vt,ci,$t],encapsulation:2,data:{animation:i.F},changeDetection:0})}}return Y})();const bo=(Y,Ve,re)=>({"angor-vertical-navigation-item-active":Y,"angor-vertical-navigation-item-disabled":Ve,"angor-vertical-navigation-item-active-forced":re});function Xo(Y,Ve){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,Ve){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 ks(Y,Ve){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,Ve){if(1&Y&&a.nrm(0,"angor-vertical-navigation-basic-item",10),2&Y){const re=a.XpG(2).$implicit,Qe=a.XpG(2);a.Y8G("item",re)("name",Qe.name)}}function oo(Y,Ve){if(1&Y&&a.nrm(0,"angor-vertical-navigation-collapsable-item",11),2&Y){const re=a.XpG(2).$implicit,Qe=a.XpG(2);a.Y8G("item",re)("name",Qe.name)("autoCollapse",Qe.autoCollapse)}}function Bi(Y,Ve){if(1&Y&&a.nrm(0,"angor-vertical-navigation-divider-item",10),2&Y){const re=a.XpG(2).$implicit,Qe=a.XpG(2);a.Y8G("item",re)("name",Qe.name)}}function Mo(Y,Ve){if(1&Y&&a.nrm(0,"angor-vertical-navigation-group-item",10),2&Y){const re=a.XpG(2).$implicit,Qe=a.XpG(2);a.Y8G("item",re)("name",Qe.name)}}function et(Y,Ve){if(1&Y&&a.nrm(0,"angor-vertical-navigation-spacer-item",10),2&Y){const re=a.XpG(2).$implicit,Qe=a.XpG(2);a.Y8G("item",re)("name",Qe.name)}}function ct(Y,Ve){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,et,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 xt(Y,Ve){if(1&Y&&a.DNE(0,ct,5,5),2&Y){const re=Ve.$implicit;a.vxM(re.hidden&&!re.hidden(re)||!re.hidden?0:-1)}}function me(Y,Ve){if(1&Y&&(a.j41(0,"div",8),a.Z7z(1,xt,1,1,null,null,a.BUC().trackByFn,!0),a.k0s()),2&Y){const re=a.XpG();a.R7$(),a.Dyx(re.item.children)}}let tt=(()=>{class Y{constructor(){this._changeDetectorRef=(0,a.WQX)(a.gRc),this._router=(0,a.WQX)(R.Ix),this._angorNavigationService=(0,a.WQX)(c),this.active=!1,this._unsubscribeAll=new C.B}ngOnChanges(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 R.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,Qe){return Qe.id||re}_hasActiveChild(re,Qe){const Et=re.children;if(!Et)return!1;for(const Fn of Et){if(Fn.children&&this._hasActiveChild(Fn,Qe))return!0;if("basic"===Fn.type&&Fn.link&&this._router.isActive(Fn.link,Fn.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(Qe){return new(Qe||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(Qe,Et){1&Qe&&(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,ks,3,2,"div",7),a.k0s()(),a.DNE(9,me,3,0,"div",8)),2&Qe&&(a.AVh("angor-vertical-navigation-item-has-subtitle",!!Et.item.subtitle),a.Y8G("ngClass",null==Et.item.classes?null:Et.item.classes.wrapper),a.R7$(),a.Y8G("ngClass",a.sMw(11,bo,Et.active,Et.item.disabled,Et.item.active))("matTooltip",Et.item.tooltip||""),a.R7$(),a.vxM(Et.item.icon?2:-1),a.R7$(3),a.Y8G("ngClass",null==Et.item.classes?null:Et.item.classes.title),a.R7$(),a.SpI(" ",Et.item.title," "),a.R7$(),a.vxM(Et.item.subtitle?7:-1),a.R7$(),a.vxM(Et.item.badge?8:-1),a.R7$(),a.vxM(Et.skipChildren?-1:9))},dependencies:[A.YU,k.uc,k.oV,S.m_,S.An,Xr,so,vt,ci,$t],encapsulation:2,changeDetection:0})}}return Y})();class Oe{constructor(Ve,re,Qe,Et){this.x=Ve,this.y=re,this.w=Qe,this.h=Et}}class ht{constructor(Ve,re){this.x=Ve,this.y=re}}var Vt=r(3022),kt=r(2147),hn=r(4819);function Cn(Y){return getComputedStyle(Y)}function An(Y,Ve){for(var re in Ve){var Qe=Ve[re];"number"==typeof Qe&&(Qe+="px"),Y.style[re]=Qe}return Y}function On(Y){var Ve=document.createElement("div");return Ve.className=Y,Ve}var Un=typeof Element<"u"&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function Jn(Y,Ve){if(!Un)throw new Error("No element matching method supported");return Un.call(Y,Ve)}function sr(Y){Y.remove?Y.remove():Y.parentNode&&Y.parentNode.removeChild(Y)}function Ir(Y,Ve){return Array.prototype.filter.call(Y.children,function(re){return Jn(re,Ve)})}var pr={main:"ps",rtl:"ps__rtl",element:{thumb:function(Y){return"ps__thumb-"+Y},rail:function(Y){return"ps__rail-"+Y},consuming:"ps__child--consume"},state:{focus:"ps--focus",clicking:"ps--clicking",active:function(Y){return"ps--active-"+Y},scrolling:function(Y){return"ps--scrolling-"+Y}}},bi={x:null,y:null};function si(Y,Ve){var re=Y.element.classList,Qe=pr.state.scrolling(Ve);re.contains(Qe)?clearTimeout(bi[Ve]):re.add(Qe)}function mr(Y,Ve){bi[Ve]=setTimeout(function(){return Y.isAlive&&Y.element.classList.remove(pr.state.scrolling(Ve))},Y.settings.scrollingThreshold)}var _o=function(Ve){this.element=Ve,this.handlers={}},$r={isEmpty:{configurable:!0}};_o.prototype.bind=function(Ve,re){typeof this.handlers[Ve]>"u"&&(this.handlers[Ve]=[]),this.handlers[Ve].push(re),this.element.addEventListener(Ve,re,!1)},_o.prototype.unbind=function(Ve,re){var Qe=this;this.handlers[Ve]=this.handlers[Ve].filter(function(Et){return!(!re||Et===re)||(Qe.element.removeEventListener(Ve,Et,!1),!1)})},_o.prototype.unbindAll=function(){for(var Ve in this.handlers)this.unbind(Ve)},$r.isEmpty.get=function(){var Y=this;return Object.keys(this.handlers).every(function(Ve){return 0===Y.handlers[Ve].length})},Object.defineProperties(_o.prototype,$r);var Gi=function(){this.eventElements=[]};function ls(Y){if("function"==typeof window.CustomEvent)return new CustomEvent(Y);var Ve=document.createEvent("CustomEvent");return Ve.initCustomEvent(Y,!1,!1,void 0),Ve}function ws(Y,Ve,re,Qe,Et){var Fn;if(void 0===Qe&&(Qe=!0),void 0===Et&&(Et=!1),"top"===Ve)Fn=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==Ve)throw new Error("A proper axis should be provided");Fn=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function ia(Y,Ve,re,Qe,Et){var Fn=re[0],fn=re[1],cr=re[2],dr=re[3],Gr=re[4],Ki=re[5];void 0===Qe&&(Qe=!0),void 0===Et&&(Et=!1);var Or=Y.element;Y.reach[dr]=null,Or[cr]<1&&(Y.reach[dr]="start"),Or[cr]>Y[Fn]-Y[fn]-1&&(Y.reach[dr]="end"),Ve&&(Or.dispatchEvent(ls("ps-scroll-"+dr)),Ve<0?Or.dispatchEvent(ls("ps-scroll-"+Gr)):Ve>0&&Or.dispatchEvent(ls("ps-scroll-"+Ki)),Qe&&function ai(Y,Ve){si(Y,Ve),mr(Y,Ve)}(Y,dr)),Y.reach[dr]&&(Ve||Et)&&Or.dispatchEvent(ls("ps-"+dr+"-reach-"+Y.reach[dr]))}(Y,re,Fn,Qe,Et)}function Sr(Y){return parseInt(Y,10)||0}Gi.prototype.eventElement=function(Ve){var re=this.eventElements.filter(function(Qe){return Qe.element===Ve})[0];return re||(re=new _o(Ve),this.eventElements.push(re)),re},Gi.prototype.bind=function(Ve,re,Qe){this.eventElement(Ve).bind(re,Qe)},Gi.prototype.unbind=function(Ve,re,Qe){var Et=this.eventElement(Ve);Et.unbind(re,Qe),Et.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(Et),1)},Gi.prototype.unbindAll=function(){this.eventElements.forEach(function(Ve){return Ve.unbindAll()}),this.eventElements=[]},Gi.prototype.once=function(Ve,re,Qe){var Et=this.eventElement(Ve),Fn=function(fn){Et.unbind(re,Fn),Qe(fn)};Et.bind(re,Fn)};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 Ve=Y.element,re=Math.floor(Ve.scrollTop),Qe=Ve.getBoundingClientRect();Y.containerWidth=Math.floor(Qe.width),Y.containerHeight=Math.floor(Qe.height),Y.contentWidth=Ve.scrollWidth,Y.contentHeight=Ve.scrollHeight,Ve.contains(Y.scrollbarXRail)||(Ir(Ve,pr.element.rail("x")).forEach(function(Et){return sr(Et)}),Ve.appendChild(Y.scrollbarXRail)),Ve.contains(Y.scrollbarYRail)||(Ir(Ve,pr.element.rail("y")).forEach(function(Et){return sr(Et)}),Ve.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,Ve){var re={width:Ve.railXWidth},Qe=Math.floor(Y.scrollTop);re.left=Ve.isRtl?Ve.negativeScrollAdjustment+Y.scrollLeft+Ve.containerWidth-Ve.contentWidth:Y.scrollLeft,Ve.isScrollbarXUsingBottom?re.bottom=Ve.scrollbarXBottom-Qe:re.top=Ve.scrollbarXTop+Qe,An(Ve.scrollbarXRail,re);var Et={top:Qe,height:Ve.railYHeight};Ve.isScrollbarYUsingRight?Et.right=Ve.isRtl?Ve.contentWidth-(Ve.negativeScrollAdjustment+Y.scrollLeft)-Ve.scrollbarYRight-Ve.scrollbarYOuterWidth-9:Ve.scrollbarYRight-Y.scrollLeft:Et.left=Ve.isRtl?Ve.negativeScrollAdjustment+Y.scrollLeft+2*Ve.containerWidth-Ve.contentWidth-Ve.scrollbarYLeft-Ve.scrollbarYOuterWidth:Ve.scrollbarYLeft+Y.scrollLeft,An(Ve.scrollbarYRail,Et),An(Ve.scrollbarX,{left:Ve.scrollbarXLeft,width:Ve.scrollbarXWidth-Ve.railBorderXWidth}),An(Ve.scrollbarY,{top:Ve.scrollbarYTop,height:Ve.scrollbarYHeight-Ve.railBorderYWidth})}(Ve,Y),Y.scrollbarXActive?Ve.classList.add(pr.state.active("x")):(Ve.classList.remove(pr.state.active("x")),Y.scrollbarXWidth=0,Y.scrollbarXLeft=0,Ve.scrollLeft=!0===Y.isRtl?Y.contentWidth:0),Y.scrollbarYActive?Ve.classList.add(pr.state.active("y")):(Ve.classList.remove(pr.state.active("y")),Y.scrollbarYHeight=0,Y.scrollbarYTop=0,Ve.scrollTop=0)}function Ps(Y,Ve){return Y.settings.minScrollbarLength&&(Ve=Math.max(Ve,Y.settings.minScrollbarLength)),Y.settings.maxScrollbarLength&&(Ve=Math.min(Ve,Y.settings.maxScrollbarLength)),Ve}var Ys=null;function Fs(Y,Ve){var re=Ve[0],Qe=Ve[1],Et=Ve[2],Fn=Ve[3],fn=Ve[4],cr=Ve[5],dr=Ve[6],Gr=Ve[7],Ki=Ve[8],Or=Y.element,Dr=null,Ei=null,ui=null;function ho(Oo){Oo.touches&&Oo.touches[0]&&(Oo[Et]=Oo.touches[0]["page"+Gr.toUpperCase()]),Ys===fn&&(Or[dr]=Dr+ui*(Oo[Et]-Ei),si(Y,Gr),Ls(Y),Oo.stopPropagation(),Oo.preventDefault())}function lo(){mr(Y,Gr),Y[Ki].classList.remove(pr.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=fn,Dr=Or[dr],Oo.touches&&(Oo[Et]=Oo.touches[0]["page"+Gr.toUpperCase()]),Ei=Oo[Et],ui=(Y[Qe]-Y[re])/(Y[Fn]-Y[cr]),Oo.touches?(document.addEventListener("touchmove",ho,{passive:!1}),document.addEventListener("touchend",lo)):(document.addEventListener("mousemove",ho),document.addEventListener("mouseup",lo)),Y[Ki].classList.add(pr.state.clicking)),Oo.stopPropagation(),Oo.cancelable&&Oo.preventDefault()}Y[fn].addEventListener("mousedown",Ho),Y[fn].addEventListener("touchstart",Ho)}var to={"click-rail":function Wi(Y){Y.event.bind(Y.scrollbarY,"mousedown",function(Ve){return Ve.stopPropagation()}),Y.event.bind(Y.scrollbarYRail,"mousedown",function(Ve){var re=Ve.pageY-window.pageYOffset-Y.scrollbarYRail.getBoundingClientRect().top;Y.element.scrollTop+=(re>Y.scrollbarYTop?1:-1)*Y.containerHeight,Ls(Y),Ve.stopPropagation()}),Y.event.bind(Y.scrollbarX,"mousedown",function(Ve){return Ve.stopPropagation()}),Y.event.bind(Y.scrollbarXRail,"mousedown",function(Ve){var re=Ve.pageX-window.pageXOffset-Y.scrollbarXRail.getBoundingClientRect().left;Y.element.scrollLeft+=(re>Y.scrollbarXLeft?1:-1)*Y.containerWidth,Ls(Y),Ve.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 Ve=Y.element;Y.event.bind(Y.ownerDocument,"keydown",function(Fn){if(!(Fn.isDefaultPrevented&&Fn.isDefaultPrevented()||Fn.defaultPrevented)&&(Jn(Ve,":hover")||Jn(Y.scrollbarX,":focus")||Jn(Y.scrollbarY,":focus"))){var fn=document.activeElement?document.activeElement:Y.ownerDocument.activeElement;if(fn){if("IFRAME"===fn.tagName)fn=fn.contentDocument.activeElement;else for(;fn.shadowRoot;)fn=fn.shadowRoot.activeElement;if(function oa(Y){return Jn(Y,"input,[contenteditable]")||Jn(Y,"select,[contenteditable]")||Jn(Y,"textarea,[contenteditable]")||Jn(Y,"button,[contenteditable]")}(fn))return}var cr=0,dr=0;switch(Fn.which){case 37:cr=Fn.metaKey?-Y.contentWidth:Fn.altKey?-Y.containerWidth:-30;break;case 38:dr=Fn.metaKey?Y.contentHeight:Fn.altKey?Y.containerHeight:30;break;case 39:cr=Fn.metaKey?Y.contentWidth:Fn.altKey?Y.containerWidth:30;break;case 40:dr=Fn.metaKey?-Y.contentHeight:Fn.altKey?-Y.containerHeight:-30;break;case 32:dr=Fn.shiftKey?Y.containerHeight:-Y.containerHeight;break;case 33:dr=Y.containerHeight;break;case 34:dr=-Y.containerHeight;break;case 36:dr=Y.contentHeight;break;case 35:dr=-Y.contentHeight;break;default:return}Y.settings.suppressScrollX&&0!==cr||Y.settings.suppressScrollY&&0!==dr||(Ve.scrollTop-=dr,Ve.scrollLeft+=cr,Ls(Y),function Et(Fn,fn){var cr=Math.floor(Ve.scrollTop);if(0===Fn){if(!Y.scrollbarYActive)return!1;if(0===cr&&fn>0||cr>=Y.contentHeight-Y.containerHeight&&fn<0)return!Y.settings.wheelPropagation}var dr=Ve.scrollLeft;if(0===fn){if(!Y.scrollbarXActive)return!1;if(0===dr&&Fn<0||dr>=Y.contentWidth-Y.containerWidth&&Fn>0)return!Y.settings.wheelPropagation}return!0}(cr,dr)&&Fn.preventDefault())}})},wheel:function qr(Y){var Ve=Y.element;function Fn(fn){var cr=function Qe(fn){var cr=fn.deltaX,dr=-1*fn.deltaY;return(typeof cr>"u"||typeof dr>"u")&&(cr=-1*fn.wheelDeltaX/6,dr=fn.wheelDeltaY/6),fn.deltaMode&&1===fn.deltaMode&&(cr*=10,dr*=10),cr!=cr&&dr!=dr&&(cr=0,dr=fn.wheelDelta),fn.shiftKey?[-dr,-cr]:[cr,dr]}(fn),dr=cr[0],Gr=cr[1];if(!function Et(fn,cr,dr){if(!wo.isWebKit&&Ve.querySelector("select:focus"))return!0;if(!Ve.contains(fn))return!1;for(var Gr=fn;Gr&&Gr!==Ve;){if(Gr.classList.contains(pr.element.consuming))return!0;var Ki=Cn(Gr);if(dr&&Ki.overflowY.match(/(scroll|auto)/)){var Or=Gr.scrollHeight-Gr.clientHeight;if(Or>0&&(Gr.scrollTop>0&&dr<0||Gr.scrollTop0))return!0}if(cr&&Ki.overflowX.match(/(scroll|auto)/)){var Dr=Gr.scrollWidth-Gr.clientWidth;if(Dr>0&&(Gr.scrollLeft>0&&cr<0||Gr.scrollLeft0))return!0}Gr=Gr.parentNode}return!1}(fn.target,dr,Gr)){var Ki=!1;Y.settings.useBothWheelAxes?Y.scrollbarYActive&&!Y.scrollbarXActive?(Gr?Ve.scrollTop-=Gr*Y.settings.wheelSpeed:Ve.scrollTop+=dr*Y.settings.wheelSpeed,Ki=!0):Y.scrollbarXActive&&!Y.scrollbarYActive&&(dr?Ve.scrollLeft+=dr*Y.settings.wheelSpeed:Ve.scrollLeft-=Gr*Y.settings.wheelSpeed,Ki=!0):(Ve.scrollTop-=Gr*Y.settings.wheelSpeed,Ve.scrollLeft+=dr*Y.settings.wheelSpeed),Ls(Y),Ki=Ki||function re(fn,cr){var dr=Math.floor(Ve.scrollTop),Gr=0===Ve.scrollTop,Ki=dr+Ve.offsetHeight===Ve.scrollHeight,Or=0===Ve.scrollLeft,Dr=Ve.scrollLeft+Ve.offsetWidth===Ve.scrollWidth;return!(Math.abs(cr)>Math.abs(fn)?Gr||Ki:Or||Dr)||!Y.settings.wheelPropagation}(dr,Gr),Ki&&!fn.ctrlKey&&(fn.stopPropagation(),fn.preventDefault())}}typeof window.onwheel<"u"?Y.event.bind(Ve,"wheel",Fn):typeof window.onmousewheel<"u"&&Y.event.bind(Ve,"mousewheel",Fn)},touch:function cs(Y){if(wo.supportsTouch||wo.supportsIePointer){var Ve=Y.element,re={startOffset:{},startTime:0,speed:{},easingLoop:null};wo.supportsTouch?(Y.event.bind(Ve,"touchstart",cr),Y.event.bind(Ve,"touchmove",Gr),Y.event.bind(Ve,"touchend",Ki)):wo.supportsIePointer&&(window.PointerEvent?(Y.event.bind(Ve,"pointerdown",cr),Y.event.bind(Ve,"pointermove",Gr),Y.event.bind(Ve,"pointerup",Ki)):window.MSPointerEvent&&(Y.event.bind(Ve,"MSPointerDown",cr),Y.event.bind(Ve,"MSPointerMove",Gr),Y.event.bind(Ve,"MSPointerUp",Ki)))}function Et(Or,Dr){Ve.scrollTop-=Dr,Ve.scrollLeft-=Or,Ls(Y)}function Fn(Or){return Or.targetTouches?Or.targetTouches[0]:Or}function fn(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 cr(Or){if(fn(Or)){var Dr=Fn(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(fn(Or)){var Dr=Fn(Or),Ei={pageX:Dr.pageX,pageY:Dr.pageY},ui=Ei.pageX-re.startOffset.pageX,ho=Ei.pageY-re.startOffset.pageY;if(function dr(Or,Dr,Ei){if(!Ve.contains(Or))return!1;for(var ui=Or;ui&&ui!==Ve;){if(ui.classList.contains(pr.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;Et(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 Qe(Or,Dr){var Ei=Math.floor(Ve.scrollTop),ui=Ve.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 Ki(){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):(Et(30*re.speed.x,30*re.speed.y),re.speed.x*=.8,re.speed.y*=.8):clearInterval(re.easingLoop)},10))}}},zi=function(Ve,re){var Qe=this;if(void 0===re&&(re={}),"string"==typeof Ve&&(Ve=document.querySelector(Ve)),!Ve||!Ve.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var Et in this.element=Ve,Ve.classList.add(pr.main),this.settings={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1},re)this.settings[Et]=re[Et];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var Ki,Gr,Fn=function(){return Ve.classList.add(pr.state.focus)},fn=function(){return Ve.classList.remove(pr.state.focus)};this.isRtl="rtl"===Cn(Ve).direction,!0===this.isRtl&&Ve.classList.add(pr.rtl),this.isNegativeScroll=(Gr=Ve.scrollLeft,Ve.scrollLeft=-1,Ki=Ve.scrollLeft<0,Ve.scrollLeft=Gr,Ki),this.negativeScrollAdjustment=this.isNegativeScroll?Ve.scrollWidth-Ve.clientWidth:0,this.event=new Gi,this.ownerDocument=Ve.ownerDocument||document,this.scrollbarXRail=On(pr.element.rail("x")),Ve.appendChild(this.scrollbarXRail),this.scrollbarX=On(pr.element.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",Fn),this.event.bind(this.scrollbarX,"blur",fn),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var cr=Cn(this.scrollbarXRail);this.scrollbarXBottom=parseInt(cr.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=Sr(cr.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=Sr(cr.borderLeftWidth)+Sr(cr.borderRightWidth),An(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=Sr(cr.marginLeft)+Sr(cr.marginRight),An(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=On(pr.element.rail("y")),Ve.appendChild(this.scrollbarYRail),this.scrollbarY=On(pr.element.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",Fn),this.event.bind(this.scrollbarY,"blur",fn),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var dr=Cn(this.scrollbarYRail);this.scrollbarYRight=parseInt(dr.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=Sr(dr.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function ma(Y){var Ve=Cn(Y);return Sr(Ve.width)+Sr(Ve.paddingLeft)+Sr(Ve.paddingRight)+Sr(Ve.borderLeftWidth)+Sr(Ve.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=Sr(dr.borderTopWidth)+Sr(dr.borderBottomWidth),An(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=Sr(dr.marginTop)+Sr(dr.marginBottom),An(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:Ve.scrollLeft<=0?"start":Ve.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:Ve.scrollTop<=0?"start":Ve.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(Gr){return to[Gr](Qe)}),this.lastScrollTop=Math.floor(Ve.scrollTop),this.lastScrollLeft=Ve.scrollLeft,this.event.bind(this.element,"scroll",function(Gr){return Qe.onScroll(Gr)}),Ls(this)};zi.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,An(this.scrollbarXRail,{display:"block"}),An(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=Sr(Cn(this.scrollbarXRail).marginLeft)+Sr(Cn(this.scrollbarXRail).marginRight),this.railYMarginHeight=Sr(Cn(this.scrollbarYRail).marginTop)+Sr(Cn(this.scrollbarYRail).marginBottom),An(this.scrollbarXRail,{display:"none"}),An(this.scrollbarYRail,{display:"none"}),Ls(this),ws(this,"top",0,!1,!0),ws(this,"left",0,!1,!0),An(this.scrollbarXRail,{display:""}),An(this.scrollbarYRail,{display:""}))},zi.prototype.onScroll=function(Ve){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)},zi.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)},zi.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(Ve){return!Ve.match(/^ps([-_].+|)$/)}).join(" ")};const Es=zi;var ko=r(909),ga=r(8627);let tr=(()=>{class Y{constructor(){this._elementRef=(0,a.WQX)(a.aKT),this._platform=(0,a.WQX)(kt.OD),this.angorScrollbar=!0,this._ps=null,this._unsubscribeAll=new C.B}get elementRef(){return this._elementRef}get ps(){return this._ps}ngOnChanges(re){"angorScrollbar"in re&&(this.angorScrollbar=(0,Vt.he)(re.angorScrollbar.currentValue),this.angorScrollbar?this._initScrollbar():this._destroyScrollbar()),"angorScrollbarOptions"in re&&(this._options=(0,hn.A)({},this._options,re.angorScrollbarOptions.currentValue),this._reinitializeScrollbar())}ngOnInit(){(0,ko.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 ht(this._ps.reach.x||0,this._ps.reach.y||0):new ht(this._elementRef.nativeElement.scrollLeft,this._elementRef.nativeElement.scrollTop)}scrollTo(re,Qe,Et){null==Qe&&null==Et?this.animateScrolling("scrollTop",re,Et):(null!=re&&this.scrollToX(re,Et),null!=Qe&&this.scrollToY(Qe,Et))}scrollToX(re,Qe){this.animateScrolling("scrollLeft",re,Qe)}scrollToY(re,Qe){this.animateScrolling("scrollTop",re,Qe)}scrollToTop(re=0,Qe){this.animateScrolling("scrollTop",re,Qe)}scrollToBottom(re=0,Qe){this.animateScrolling("scrollTop",this._elementRef.nativeElement.scrollHeight-this._elementRef.nativeElement.clientHeight-re,Qe)}scrollToLeft(re=0,Qe){this.animateScrolling("scrollLeft",re,Qe)}scrollToRight(re=0,Qe){this.animateScrolling("scrollLeft",this._elementRef.nativeElement.scrollWidth-this._elementRef.nativeElement.clientWidth-re,Qe)}scrollToElement(re,Qe=0,Et=!1,Fn){const fn=this._elementRef.nativeElement.querySelector(re);if(!fn)return;const cr=fn.getBoundingClientRect(),dr=this._elementRef.nativeElement.getBoundingClientRect();this._elementRef.nativeElement.classList.contains("ps--active-x")&&this._scrollToInAxis(cr.left,dr.left,"scrollLeft",Qe,Et,Fn),this._elementRef.nativeElement.classList.contains("ps--active-y")&&this._scrollToInAxis(cr.top,dr.top,"scrollTop",Qe,Et,Fn)}animateScrolling(re,Qe,Et){this._animation&&window.cancelAnimationFrame(this._animation),!Et||typeof window>"u"?this._elementRef.nativeElement[re]=Qe:Qe!==this._elementRef.nativeElement[re]&&this._smoothScroll(re,Qe,Et)}_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,Qe,Et,Fn,fn,cr){fn&&re<=Qe-Math.abs(Fn)||this.animateScrolling(Et,re-Qe+this._elementRef.nativeElement[Et]+Fn,cr)}_smoothScroll(re,Qe,Et){let Fn=0,fn=this._elementRef.nativeElement[re];const cr=(fn-Qe)/2;let dr=performance.now();const Gr=Ki=>{Fn+=Math.PI/(Et/(Ki-dr));const Or=Math.round(Qe+cr+cr*Math.cos(Fn));this._elementRef.nativeElement[re]===fn&&(Fn>=Math.PI?this.animateScrolling(re,Qe,0):(this._elementRef.nativeElement[re]=Or,fn=this._elementRef.nativeElement[re],dr=Ki,this._animation=window.requestAnimationFrame(Gr)))};window.requestAnimationFrame(Gr)}static{this.\u0275fac=function(Qe){return new(Qe||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(1204),is=r(9666),Is=r(7509),Bs=r(8136);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,Ve){if(1&Y){const re=a.RV6();a.j41(0,"angor-vertical-navigation-aside-item",10),a.bIt("click",function(){a.eBV(re);const Et=a.XpG(2).$implicit,Fn=a.XpG();return a.Njj(Fn.toggleAside(Et))}),a.k0s()}if(2&Y){const re=a.XpG(2).$implicit,Qe=a.XpG();a.Y8G("item",re)("name",Qe.name)("activeItemId",Qe.activeAsideItemId)("autoCollapse",Qe.autoCollapse)("skipChildren",!0)}}function aa(Y,Ve){if(1&Y&&a.nrm(0,"angor-vertical-navigation-basic-item",8),2&Y){const re=a.XpG(2).$implicit,Qe=a.XpG();a.Y8G("item",re)("name",Qe.name)}}function ao(Y,Ve){if(1&Y&&a.nrm(0,"angor-vertical-navigation-collapsable-item",9),2&Y){const re=a.XpG(2).$implicit,Qe=a.XpG();a.Y8G("item",re)("name",Qe.name)("autoCollapse",Qe.autoCollapse)}}function os(Y,Ve){if(1&Y&&a.nrm(0,"angor-vertical-navigation-divider-item",8),2&Y){const re=a.XpG(2).$implicit,Qe=a.XpG();a.Y8G("item",re)("name",Qe.name)}}function vo(Y,Ve){if(1&Y&&a.nrm(0,"angor-vertical-navigation-group-item",9),2&Y){const re=a.XpG(2).$implicit,Qe=a.XpG();a.Y8G("item",re)("name",Qe.name)("autoCollapse",Qe.autoCollapse)}}function Zo(Y,Ve){if(1&Y&&a.nrm(0,"angor-vertical-navigation-spacer-item",8),2&Y){const re=a.XpG(2).$implicit,Qe=a.XpG();a.Y8G("item",re)("name",Qe.name)}}function vi(Y,Ve){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,os,1,2,"angor-vertical-navigation-divider-item",8)(4,vo,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,Ve){if(1&Y&&a.DNE(0,vi,6,6),2&Y){const re=Ve.$implicit;a.vxM(re.hidden&&!re.hidden(re)||!re.hidden?0:-1)}}function Io(Y,Ve){if(1&Y&&a.nrm(0,"angor-vertical-navigation-aside-item",9),2&Y){const re=a.XpG(2).$implicit,Qe=a.XpG(2);a.Y8G("item",re)("name",Qe.name)("autoCollapse",Qe.autoCollapse)}}function Qs(Y,Ve){if(1&Y&&a.DNE(0,Io,1,3,"angor-vertical-navigation-aside-item",9),2&Y){const re=a.XpG().$implicit,Qe=a.XpG(2);a.vxM("aside"===re.type&&re.id===Qe.activeAsideItemId?0:-1)}}function bl(Y,Ve){if(1&Y&&a.DNE(0,Qs,1,1),2&Y){const re=Ve.$implicit;a.vxM(re.hidden&&!re.hidden(re)||!re.hidden?0:-1)}}function Xa(Y,Ve){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)(A.qQ),this._elementRef=(0,a.WQX)(a.aKT),this._renderer2=(0,a.WQX)(a.sFG),this._router=(0,a.WQX)(R.Ix),this._scrollStrategyOptions=(0,a.WQX)(is.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,Is.h)(this.onCollapsableItemCollapsed,this.onCollapsableItemExpanded).pipe((0,G.Q)(this._unsubscribeAll),(0,Bs.c)(250)).subscribe(()=>{re.forEach(Qe=>{Qe.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,Vt.he)(re.inner.currentValue)),"mode"in re){const Qe=re.mode.currentValue,Et=re.mode.previousValue;this._disableAnimations(),"over"===Et&&"side"===Qe&&this._hideOverlay(),"side"===Et&&"over"===Qe&&(this.closeAside(),this.opened&&this._showOverlay()),this.modeChanged.next(Qe),setTimeout(()=>{this._enableAnimations()},500)}"navigation"in re&&this._changeDetectorRef.markForCheck(),"opened"in re&&(this.opened=(0,Vt.he)(re.opened.currentValue),this._toggleOpened(this.opened)),"position"in re&&this.positionChanged.next(re.position.currentValue),"transparentOverlay"in re&&(this.transparentOverlay=(0,Vt.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 R.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(Qe=>{const Et=Qe.target;if("class"===Qe.attributeName)if(Et.classList.contains("cdk-global-scrollblock")){const Fn=parseInt(Et.style.top,10);this._renderer2.setStyle(this._elementRef.nativeElement,"margin-top",`${Math.abs(Fn)}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,Qe){return Qe.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(Qe){return new(Qe||Y)}}static{this.\u0275cmp=a.VBU({type:Y,selectors:[["angor-vertical-navigation"]],viewQuery:function(Qe,Et){if(1&Qe&&(a.GBs(va,5),a.GBs(tr,5)),2&Qe){let Fn;a.mGM(Fn=a.lsd())&&(Et._navigationContentEl=Fn.first),a.mGM(Fn=a.lsd())&&(Et.angorScrollbarDirectives=Fn)}},hostVars:4,hostBindings:function(Qe,Et){1&Qe&&a.bIt("mouseenter",function(){return Et._onMouseenter()})("mouseleave",function(){return Et._onMouseleave()}),2&Qe&&(a.Aen(Et.styleList),a.HbH(Et.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(Qe,Et){1&Qe&&(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,Et.trackByFn,!0),a.k0s(),a.j41(9,"div",5),a.SdG(10,2),a.k0s()(),a.DNE(11,Xa,3,6,"div",6)),2&Qe&&(a.R7$(3),a.Y8G("angorScrollbarOptions",a.eq3(2,sa,Et.inner)),a.R7$(4),a.Dyx(Et.navigation),a.R7$(4),a.vxM(Et.activeAsideItemId?11:-1))},dependencies:[tr,tt,Xr,so,vt,ci,$t],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})()},7891:(o,s,r)=>{"use strict";r.d(s,{t:()=>a});const a=new(r(3107).nKC)("ANGOR_APP_CONFIG")},1109:(o,s,r)=>{"use strict";r.d(s,{P:()=>w});var i=r(7891),a=r(3107),c=r(4819),y=r(1217);let w=(()=>{class C{constructor(){this._defaultConfig=(0,a.WQX)(i.t),this._configSubject=new y.t(this._defaultConfig)}get config$(){return this._configSubject.asObservable()}set config(S){const T=(0,c.A)({},this._configSubject.getValue(),S);this._configSubject.next(T)}reset(){this._configSubject.next(this._defaultConfig)}static{this.\u0275fac=function(T){return new(T||C)}}static{this.\u0275prov=a.jDH({token:C,factory:C.\u0275fac,providedIn:"root"})}}return C})()},7153:(o,s,r)=>{"use strict";r.d(s,{m:()=>pe});var i=r(4460),a=r(3107),c=r(9471),y=r(7544),w=r(3904);const C=(Te,Ce,Ne,Se,xe,ae,le,ke)=>({"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":Ce,"bg-warn-100 text-warn-600 dark:bg-warn-600 dark:text-warn-50":Ne,"bg-gray-100 text-gray-600 dark:bg-gray-600 dark:text-gray-50":Se,"bg-blue-100 text-blue-600 dark:bg-blue-600 dark:text-blue-50":xe,"bg-green-100 text-green-500 dark:bg-green-500 dark:text-green-50":ae,"bg-amber-100 text-amber-500 dark:bg-amber-500 dark:text-amber-50":le,"bg-red-100 text-red-600 dark:bg-red-600 dark:text-red-50":ke});function A(Te,Ce){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,Ce){if(1&Te&&(a.j41(0,"div",3),a.nrm(1,"mat-icon",8),a.k0s()),2&Te){const Ne=a.XpG();a.Y8G("ngClass",a.lV(2,C,"primary"===Ne.data.icon.color,"accent"===Ne.data.icon.color,"warn"===Ne.data.icon.color,"basic"===Ne.data.icon.color,"info"===Ne.data.icon.color,"success"===Ne.data.icon.color,"warning"===Ne.data.icon.color,"error"===Ne.data.icon.color)),a.R7$(),a.Y8G("svgIcon",Ne.data.icon.name)}}function T(Te,Ce){if(1&Te&&a.nrm(0,"div",9),2&Te){const Ne=a.XpG(2);a.Y8G("innerHTML",Ne.data.title,a.npT)}}function k(Te,Ce){if(1&Te&&a.nrm(0,"div",10),2&Te){const Ne=a.XpG(2);a.Y8G("innerHTML",Ne.data.message,a.npT)}}function R(Te,Ce){if(1&Te&&(a.j41(0,"div",4),a.DNE(1,T,1,1,"div",9)(2,k,1,1,"div",10),a.k0s()),2&Te){const Ne=a.XpG();a.R7$(),a.vxM(Ne.data.title?1:-1),a.R7$(),a.vxM(Ne.data.message?2:-1)}}function G(Te,Ce){if(1&Te&&(a.j41(0,"button",11),a.EFF(1),a.k0s()),2&Te){const Ne=a.XpG(2);a.Y8G("matDialogClose","cancelled"),a.R7$(),a.SpI(" ",Ne.data.actions.cancel.label," ")}}function Z(Te,Ce){if(1&Te&&(a.j41(0,"button",12),a.EFF(1),a.k0s()),2&Te){const Ne=a.XpG(2);a.Y8G("color",Ne.data.actions.confirm.color)("matDialogClose","confirmed"),a.R7$(),a.SpI(" ",Ne.data.actions.confirm.label," ")}}function te(Te,Ce){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 Ne=a.XpG();a.R7$(),a.vxM(Ne.data.actions.cancel.show?1:-1),a.R7$(),a.vxM(Ne.data.actions.confirm.show?2:-1)}}let be=(()=>{class Te{constructor(){this.data=(0,a.WQX)(y.Vh)}static{this.\u0275fac=function(Se){return new(Se||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(Se,xe){1&Se&&(a.j41(0,"div",0),a.DNE(1,A,3,2,"div",1),a.j41(2,"div",2),a.DNE(3,S,2,11,"div",3)(4,R,3,2,"div",4),a.k0s(),a.DNE(5,te,3,2,"div",5),a.k0s()),2&Se&&(a.R7$(),a.vxM(xe.data.dismissible?1:-1),a.R7$(2),a.vxM(xe.data.icon.show?3:-1),a.R7$(),a.vxM(xe.data.title||xe.data.message?4:-1),a.R7$(),a.vxM(xe.data.actions.confirm.show||xe.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 _e=r(4819);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(Ne={}){const Se=(0,_e.A)({},this._defaultConfig,Ne);return this._matDialog.open(be,{autoFocus:!1,disableClose:!Se.dismissible,data:Se,panelClass:"angor-confirmation-dialog-panel"})}static{this.\u0275fac=function(Se){return new(Se||Te)}}static{this.\u0275prov=a.jDH({token:Te,factory:Te.\u0275fac,providedIn:"root"})}}return Te})()},2012:(o,s,r)=>{"use strict";r.d(s,{l:()=>S});var i=r(1109),a=r(6520),c=r(3107),y=r(6143),w=r(7838),C=r(7947),A=r(2867);let S=(()=>{class T{constructor(){this._breakpointObserver=(0,c.WQX)(a.QP),this._angorConfigService=(0,c.WQX)(i.P),this._onMediaChange=new w.m(1),this._angorConfigService.config$.pipe((0,C.T)(R=>(0,y.A)(Object.entries(R.screens).map(([G,Z])=>[G,`(min-width: ${Z})`]))),(0,A.n)(R=>this._breakpointObserver.observe(Object.values(R)).pipe((0,C.T)(G=>{const Z=[],te={},be=Object.entries(G.breakpoints).filter(([_e,pe])=>pe)??[];for(const[_e]of be){const pe=Object.entries(R).find(([Te,Ce])=>Ce===_e)[0];pe&&(Z.push(pe),te[pe]=_e)}this._onMediaChange.next({matchingAliases:Z,matchingQueries:te})})))).subscribe()}get onMediaChange$(){return this._onMediaChange.asObservable()}onMediaQueryChange$(R){return this._breakpointObserver.observe(R)}static{this.\u0275fac=function(G){return new(G||T)}}static{this.\u0275prov=c.jDH({token:T,factory:T.\u0275fac,providedIn:"root"})}}return T})()},3939:(o,s,r)=>{"use strict";r.d(s,{Q:()=>a});var i=r(3107);let a=(()=>{class c{get exactMatchOptions(){return{paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"}}get subsetMatchOptions(){return{paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"}}randomId(w=10){let A="";for(let S=0;S<10;S++)A+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".charAt(Math.floor(62*Math.random()));return A}static{this.\u0275fac=function(C){return new(C||c)}}static{this.\u0275prov=i.jDH({token:c,factory:c.\u0275fac,providedIn:"root"})}}return c})()},4482:(o,s,r)=>{"use strict";r.d(s,{v:()=>y});var i=r(3024),a=r(8447),c=r(3107);let y=(()=>{class w{constructor(){this.publicKeySubject=new a.B,this.previousPublicKey=null,this.initializeNostrLogin(),this.setupEventListeners()}initializeNostrLogin(){(0,i.Ts)({theme:"ocean",noBanner:!0,title:"Angor Hub",onAuth:(A,S)=>{this.handleAuthSuccess(A,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(A){const{type:S,pubkey:T,options:k}=A.detail;switch(S){case"login":console.log("User logged in:",T),this.handleAuthSuccess(T,k);break;case"signup":console.log("User signed up:",T),this.handleSignupSuccess(T,k);break;case"logout":console.log("User logged out"),this.handleLogout();break;case"switch-account":console.log("User switched account:",T),this.handleAccountSwitch(T,k);break;default:console.warn("Unknown nlAuth event type:",S)}this.previousPublicKey&&this.previousPublicKey!==T&&(console.log("Account switched to:",T),this.handleAccountSwitch(T,k)),this.previousPublicKey=T}handleAuthSuccess(A,S){console.log("Authenticated successfully with public key:",A),this.publicKeySubject.next(A)}handleSignupSuccess(A,S){console.log("Signup successful with public key:",A),this.publicKeySubject.next(A)}handleAccountSwitch(A,S){console.log("Account switched to:",A),this.publicKeySubject.next(A),window.location.reload()}handleLogout(){console.log("Logged out"),this.publicKeySubject.next("")}handleNlDarkModeEvent(A){const S=A.detail;console.log("Dark mode changed to:",S?"enabled":"disabled"),this.updateDarkMode(S)}handleNlLaunchEvent(A){const S=A.detail||"welcome";console.log(`Launching Nostr login screen: ${S}`),this.launchScreen(S)}launchScreen(A){(0,i.ql)(A)}updateDarkMode(A){document.body.classList.toggle("dark-mode",A),console.log("Dark mode is now "+(A?"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(A){document.dispatchEvent(new CustomEvent("nlDarkMode",{detail:A}))}static{this.\u0275fac=function(S){return new(S||w)}}static{this.\u0275prov=c.jDH({token:w,factory:w.\u0275fac,providedIn:"root"})}}return w})()},3125:(o,s,r)=>{"use strict";r.d(s,{b:()=>A});var i=r(3014),a=r(3107),c=r(720),y=r(1217),w=r(8447),C=r(4460);let A=(()=>{class S{constructor(k,R){this.document=k,this.platformId=R,this.pool=new c.lo,this.relays=[],this.maxRetries=10,this.retryDelay=15e3,this.eventSubject=new y.t(null),this.relaysSubject=new y.t([]),this.destroy$=new w.B,this.initializeRelays(),this.setupVisibilityHandling()}initializeRelays(){this.relays=this.loadRelaysFromLocalStorage(),this.connectToRelays(),this.relaysSubject.next(this.relays)}loadRelaysFromLocalStorage(){const k=JSON.parse(localStorage.getItem("nostrRelays")||"[]");return k.length>0?k.map(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 k=this.relays.map(R=>({url:R.url,accessType:R.accessType,connected:R.connected,retries:R.retries,retryTimeout:R.retryTimeout}));localStorage.setItem("nostrRelays",JSON.stringify(k)),this.relaysSubject.next(this.relays)}connectToRelay(k){k.connected||(k.ws=new WebSocket(k.url),k.ws.onopen=()=>{k.connected=!0,k.retries=0,clearTimeout(k.retryTimeout),this.saveRelaysToLocalStorage()},k.ws.onerror=()=>this.handleRelayError(k),k.ws.onclose=()=>{k.connected=!1,this.handleRelayError(k)},k.ws.onmessage=({data:R})=>{try{const G=JSON.parse("string"==typeof R?R:R.toString("utf-8"));this.eventSubject.next(G)}catch(G){console.warn("Error parsing WebSocket message:",G)}})}handleRelayError(k){k.retries>=this.maxRetries?console.warn(`Max retries reached for relay: ${k.url}. No further attempts will be made.`):(k.retries++,k.retryTimeout=setTimeout(()=>this.connectToRelay(k),this.retryDelay*k.retries))}connectToRelays(){this.relays.forEach(k=>!k.connected&&this.connectToRelay(k))}ensureConnectedRelays(){var k=this;return(0,i.A)(function*(){return k.connectToRelays(),new Promise(R=>{const G=setInterval(()=>{k.getConnectedRelays().length>0&&(clearInterval(G),R())},1e3)})})()}setupVisibilityHandling(){(0,C.UE)(this.platformId)&&(this.document.addEventListener("visibilitychange",()=>{"visible"===this.document.visibilityState&&this.connectToRelays()}),window.addEventListener("beforeunload",()=>{this.relays.forEach(k=>k.ws?.close())}))}getConnectedRelays(){return this.relays.filter(k=>k.connected).map(k=>k.url)}getRelays(){return this.relaysSubject.asObservable()}publishEventToWriteRelays(k){var R=this;return(0,i.A)(function*(){const G=R.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=>R.pool.publish([Z.url],k))),R.eventSubject.next(k),k}catch(Z){throw console.error("Failed to publish event to relays:",Z),Z}})()}addRelay(k,R="read-write"){if(!this.relays.some(G=>G.url===k)){const G={url:k,connected:!1,retries:0,retryTimeout:null,accessType:R};this.relays.push(G),this.connectToRelay(G),this.saveRelaysToLocalStorage()}}removeRelay(k){const R=this.relays.find(G=>G.url===k);R&&(R.ws?.close(),clearTimeout(R.retryTimeout)),this.relays=this.relays.filter(G=>G.url!==k),this.saveRelaysToLocalStorage()}removeAllCustomRelays(){const k=["wss://relay.angor.io","wss://relay2.angor.io"];this.relays.forEach(R=>{k.includes(R.url)||(R.ws?.close(),clearTimeout(R.retryTimeout))}),this.relays=this.relays.filter(R=>k.includes(R.url)),this.saveRelaysToLocalStorage()}updateRelayAccessType(k,R){const G=this.relays.find(Z=>Z.url===k);G&&(G.accessType=R,this.saveRelaysToLocalStorage())}getPool(){return this.pool}getEventStream(){return this.eventSubject.asObservable()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.relays.forEach(k=>k.ws?.close())}static{this.\u0275fac=function(R){return new(R||S)(a.KVO(C.qQ,8),a.KVO(a.Agw))}}static{this.\u0275prov=a.jDH({token:S,factory:S.\u0275fac,providedIn:"root"})}}return S})()},8078:(o,s,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(3014),c=r(8378),y=r(2226),w=r(871),C=r(720);function T(O){if(!Number.isSafeInteger(O)||O<0)throw new Error(`Wrong positive integer: ${O}`)}function G(O,...B){if(!function R(O){return O instanceof Uint8Array||null!=O&&"object"==typeof O&&"Uint8Array"===O.constructor.name}(O))throw new Error("Expected Uint8Array");if(B.length>0&&!B.includes(O.length))throw new Error(`Expected Uint8Array of length ${B}, not of length=${O.length}`)}function Z(O){if("function"!=typeof O||"function"!=typeof O.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");T(O.outputLen),T(O.blockLen)}function te(O,B=!0){if(O.destroyed)throw new Error("Hash instance has been destroyed");if(B&&O.finished)throw new Error("Hash#digest() has already been called")}r(4704),"abandon\nability\nable\nabout\nabove\nabsent\nabsorb\nabstract\nabsurd\nabuse\naccess\naccident\naccount\naccuse\nachieve\nacid\nacoustic\nacquire\nacross\nact\naction\nactor\nactress\nactual\nadapt\nadd\naddict\naddress\nadjust\nadmit\nadult\nadvance\nadvice\naerobic\naffair\nafford\nafraid\nagain\nage\nagent\nagree\nahead\naim\nair\nairport\naisle\nalarm\nalbum\nalcohol\nalert\nalien\nall\nalley\nallow\nalmost\nalone\nalpha\nalready\nalso\nalter\nalways\namateur\namazing\namong\namount\namused\nanalyst\nanchor\nancient\nanger\nangle\nangry\nanimal\nankle\nannounce\nannual\nanother\nanswer\nantenna\nantique\nanxiety\nany\napart\napology\nappear\napple\napprove\napril\narch\narctic\narea\narena\nargue\narm\narmed\narmor\narmy\naround\narrange\narrest\narrive\narrow\nart\nartefact\nartist\nartwork\nask\naspect\nassault\nasset\nassist\nassume\nasthma\nathlete\natom\nattack\nattend\nattitude\nattract\nauction\naudit\naugust\naunt\nauthor\nauto\nautumn\naverage\navocado\navoid\nawake\naware\naway\nawesome\nawful\nawkward\naxis\nbaby\nbachelor\nbacon\nbadge\nbag\nbalance\nbalcony\nball\nbamboo\nbanana\nbanner\nbar\nbarely\nbargain\nbarrel\nbase\nbasic\nbasket\nbattle\nbeach\nbean\nbeauty\nbecause\nbecome\nbeef\nbefore\nbegin\nbehave\nbehind\nbelieve\nbelow\nbelt\nbench\nbenefit\nbest\nbetray\nbetter\nbetween\nbeyond\nbicycle\nbid\nbike\nbind\nbiology\nbird\nbirth\nbitter\nblack\nblade\nblame\nblanket\nblast\nbleak\nbless\nblind\nblood\nblossom\nblouse\nblue\nblur\nblush\nboard\nboat\nbody\nboil\nbomb\nbone\nbonus\nbook\nboost\nborder\nboring\nborrow\nboss\nbottom\nbounce\nbox\nboy\nbracket\nbrain\nbrand\nbrass\nbrave\nbread\nbreeze\nbrick\nbridge\nbrief\nbright\nbring\nbrisk\nbroccoli\nbroken\nbronze\nbroom\nbrother\nbrown\nbrush\nbubble\nbuddy\nbudget\nbuffalo\nbuild\nbulb\nbulk\nbullet\nbundle\nbunker\nburden\nburger\nburst\nbus\nbusiness\nbusy\nbutter\nbuyer\nbuzz\ncabbage\ncabin\ncable\ncactus\ncage\ncake\ncall\ncalm\ncamera\ncamp\ncan\ncanal\ncancel\ncandy\ncannon\ncanoe\ncanvas\ncanyon\ncapable\ncapital\ncaptain\ncar\ncarbon\ncard\ncargo\ncarpet\ncarry\ncart\ncase\ncash\ncasino\ncastle\ncasual\ncat\ncatalog\ncatch\ncategory\ncattle\ncaught\ncause\ncaution\ncave\nceiling\ncelery\ncement\ncensus\ncentury\ncereal\ncertain\nchair\nchalk\nchampion\nchange\nchaos\nchapter\ncharge\nchase\nchat\ncheap\ncheck\ncheese\nchef\ncherry\nchest\nchicken\nchief\nchild\nchimney\nchoice\nchoose\nchronic\nchuckle\nchunk\nchurn\ncigar\ncinnamon\ncircle\ncitizen\ncity\ncivil\nclaim\nclap\nclarify\nclaw\nclay\nclean\nclerk\nclever\nclick\nclient\ncliff\nclimb\nclinic\nclip\nclock\nclog\nclose\ncloth\ncloud\nclown\nclub\nclump\ncluster\nclutch\ncoach\ncoast\ncoconut\ncode\ncoffee\ncoil\ncoin\ncollect\ncolor\ncolumn\ncombine\ncome\ncomfort\ncomic\ncommon\ncompany\nconcert\nconduct\nconfirm\ncongress\nconnect\nconsider\ncontrol\nconvince\ncook\ncool\ncopper\ncopy\ncoral\ncore\ncorn\ncorrect\ncost\ncotton\ncouch\ncountry\ncouple\ncourse\ncousin\ncover\ncoyote\ncrack\ncradle\ncraft\ncram\ncrane\ncrash\ncrater\ncrawl\ncrazy\ncream\ncredit\ncreek\ncrew\ncricket\ncrime\ncrisp\ncritic\ncrop\ncross\ncrouch\ncrowd\ncrucial\ncruel\ncruise\ncrumble\ncrunch\ncrush\ncry\ncrystal\ncube\nculture\ncup\ncupboard\ncurious\ncurrent\ncurtain\ncurve\ncushion\ncustom\ncute\ncycle\ndad\ndamage\ndamp\ndance\ndanger\ndaring\ndash\ndaughter\ndawn\nday\ndeal\ndebate\ndebris\ndecade\ndecember\ndecide\ndecline\ndecorate\ndecrease\ndeer\ndefense\ndefine\ndefy\ndegree\ndelay\ndeliver\ndemand\ndemise\ndenial\ndentist\ndeny\ndepart\ndepend\ndeposit\ndepth\ndeputy\nderive\ndescribe\ndesert\ndesign\ndesk\ndespair\ndestroy\ndetail\ndetect\ndevelop\ndevice\ndevote\ndiagram\ndial\ndiamond\ndiary\ndice\ndiesel\ndiet\ndiffer\ndigital\ndignity\ndilemma\ndinner\ndinosaur\ndirect\ndirt\ndisagree\ndiscover\ndisease\ndish\ndismiss\ndisorder\ndisplay\ndistance\ndivert\ndivide\ndivorce\ndizzy\ndoctor\ndocument\ndog\ndoll\ndolphin\ndomain\ndonate\ndonkey\ndonor\ndoor\ndose\ndouble\ndove\ndraft\ndragon\ndrama\ndrastic\ndraw\ndream\ndress\ndrift\ndrill\ndrink\ndrip\ndrive\ndrop\ndrum\ndry\nduck\ndumb\ndune\nduring\ndust\ndutch\nduty\ndwarf\ndynamic\neager\neagle\nearly\nearn\nearth\neasily\neast\neasy\necho\necology\neconomy\nedge\nedit\neducate\neffort\negg\neight\neither\nelbow\nelder\nelectric\nelegant\nelement\nelephant\nelevator\nelite\nelse\nembark\nembody\nembrace\nemerge\nemotion\nemploy\nempower\nempty\nenable\nenact\nend\nendless\nendorse\nenemy\nenergy\nenforce\nengage\nengine\nenhance\nenjoy\nenlist\nenough\nenrich\nenroll\nensure\nenter\nentire\nentry\nenvelope\nepisode\nequal\nequip\nera\nerase\nerode\nerosion\nerror\nerupt\nescape\nessay\nessence\nestate\neternal\nethics\nevidence\nevil\nevoke\nevolve\nexact\nexample\nexcess\nexchange\nexcite\nexclude\nexcuse\nexecute\nexercise\nexhaust\nexhibit\nexile\nexist\nexit\nexotic\nexpand\nexpect\nexpire\nexplain\nexpose\nexpress\nextend\nextra\neye\neyebrow\nfabric\nface\nfaculty\nfade\nfaint\nfaith\nfall\nfalse\nfame\nfamily\nfamous\nfan\nfancy\nfantasy\nfarm\nfashion\nfat\nfatal\nfather\nfatigue\nfault\nfavorite\nfeature\nfebruary\nfederal\nfee\nfeed\nfeel\nfemale\nfence\nfestival\nfetch\nfever\nfew\nfiber\nfiction\nfield\nfigure\nfile\nfilm\nfilter\nfinal\nfind\nfine\nfinger\nfinish\nfire\nfirm\nfirst\nfiscal\nfish\nfit\nfitness\nfix\nflag\nflame\nflash\nflat\nflavor\nflee\nflight\nflip\nfloat\nflock\nfloor\nflower\nfluid\nflush\nfly\nfoam\nfocus\nfog\nfoil\nfold\nfollow\nfood\nfoot\nforce\nforest\nforget\nfork\nfortune\nforum\nforward\nfossil\nfoster\nfound\nfox\nfragile\nframe\nfrequent\nfresh\nfriend\nfringe\nfrog\nfront\nfrost\nfrown\nfrozen\nfruit\nfuel\nfun\nfunny\nfurnace\nfury\nfuture\ngadget\ngain\ngalaxy\ngallery\ngame\ngap\ngarage\ngarbage\ngarden\ngarlic\ngarment\ngas\ngasp\ngate\ngather\ngauge\ngaze\ngeneral\ngenius\ngenre\ngentle\ngenuine\ngesture\nghost\ngiant\ngift\ngiggle\nginger\ngiraffe\ngirl\ngive\nglad\nglance\nglare\nglass\nglide\nglimpse\nglobe\ngloom\nglory\nglove\nglow\nglue\ngoat\ngoddess\ngold\ngood\ngoose\ngorilla\ngospel\ngossip\ngovern\ngown\ngrab\ngrace\ngrain\ngrant\ngrape\ngrass\ngravity\ngreat\ngreen\ngrid\ngrief\ngrit\ngrocery\ngroup\ngrow\ngrunt\nguard\nguess\nguide\nguilt\nguitar\ngun\ngym\nhabit\nhair\nhalf\nhammer\nhamster\nhand\nhappy\nharbor\nhard\nharsh\nharvest\nhat\nhave\nhawk\nhazard\nhead\nhealth\nheart\nheavy\nhedgehog\nheight\nhello\nhelmet\nhelp\nhen\nhero\nhidden\nhigh\nhill\nhint\nhip\nhire\nhistory\nhobby\nhockey\nhold\nhole\nholiday\nhollow\nhome\nhoney\nhood\nhope\nhorn\nhorror\nhorse\nhospital\nhost\nhotel\nhour\nhover\nhub\nhuge\nhuman\nhumble\nhumor\nhundred\nhungry\nhunt\nhurdle\nhurry\nhurt\nhusband\nhybrid\nice\nicon\nidea\nidentify\nidle\nignore\nill\nillegal\nillness\nimage\nimitate\nimmense\nimmune\nimpact\nimpose\nimprove\nimpulse\ninch\ninclude\nincome\nincrease\nindex\nindicate\nindoor\nindustry\ninfant\ninflict\ninform\ninhale\ninherit\ninitial\ninject\ninjury\ninmate\ninner\ninnocent\ninput\ninquiry\ninsane\ninsect\ninside\ninspire\ninstall\nintact\ninterest\ninto\ninvest\ninvite\ninvolve\niron\nisland\nisolate\nissue\nitem\nivory\njacket\njaguar\njar\njazz\njealous\njeans\njelly\njewel\njob\njoin\njoke\njourney\njoy\njudge\njuice\njump\njungle\njunior\njunk\njust\nkangaroo\nkeen\nkeep\nketchup\nkey\nkick\nkid\nkidney\nkind\nkingdom\nkiss\nkit\nkitchen\nkite\nkitten\nkiwi\nknee\nknife\nknock\nknow\nlab\nlabel\nlabor\nladder\nlady\nlake\nlamp\nlanguage\nlaptop\nlarge\nlater\nlatin\nlaugh\nlaundry\nlava\nlaw\nlawn\nlawsuit\nlayer\nlazy\nleader\nleaf\nlearn\nleave\nlecture\nleft\nleg\nlegal\nlegend\nleisure\nlemon\nlend\nlength\nlens\nleopard\nlesson\nletter\nlevel\nliar\nliberty\nlibrary\nlicense\nlife\nlift\nlight\nlike\nlimb\nlimit\nlink\nlion\nliquid\nlist\nlittle\nlive\nlizard\nload\nloan\nlobster\nlocal\nlock\nlogic\nlonely\nlong\nloop\nlottery\nloud\nlounge\nlove\nloyal\nlucky\nluggage\nlumber\nlunar\nlunch\nluxury\nlyrics\nmachine\nmad\nmagic\nmagnet\nmaid\nmail\nmain\nmajor\nmake\nmammal\nman\nmanage\nmandate\nmango\nmansion\nmanual\nmaple\nmarble\nmarch\nmargin\nmarine\nmarket\nmarriage\nmask\nmass\nmaster\nmatch\nmaterial\nmath\nmatrix\nmatter\nmaximum\nmaze\nmeadow\nmean\nmeasure\nmeat\nmechanic\nmedal\nmedia\nmelody\nmelt\nmember\nmemory\nmention\nmenu\nmercy\nmerge\nmerit\nmerry\nmesh\nmessage\nmetal\nmethod\nmiddle\nmidnight\nmilk\nmillion\nmimic\nmind\nminimum\nminor\nminute\nmiracle\nmirror\nmisery\nmiss\nmistake\nmix\nmixed\nmixture\nmobile\nmodel\nmodify\nmom\nmoment\nmonitor\nmonkey\nmonster\nmonth\nmoon\nmoral\nmore\nmorning\nmosquito\nmother\nmotion\nmotor\nmountain\nmouse\nmove\nmovie\nmuch\nmuffin\nmule\nmultiply\nmuscle\nmuseum\nmushroom\nmusic\nmust\nmutual\nmyself\nmystery\nmyth\nnaive\nname\nnapkin\nnarrow\nnasty\nnation\nnature\nnear\nneck\nneed\nnegative\nneglect\nneither\nnephew\nnerve\nnest\nnet\nnetwork\nneutral\nnever\nnews\nnext\nnice\nnight\nnoble\nnoise\nnominee\nnoodle\nnormal\nnorth\nnose\nnotable\nnote\nnothing\nnotice\nnovel\nnow\nnuclear\nnumber\nnurse\nnut\noak\nobey\nobject\noblige\nobscure\nobserve\nobtain\nobvious\noccur\nocean\noctober\nodor\noff\noffer\noffice\noften\noil\nokay\nold\nolive\nolympic\nomit\nonce\none\nonion\nonline\nonly\nopen\nopera\nopinion\noppose\noption\norange\norbit\norchard\norder\nordinary\norgan\norient\noriginal\norphan\nostrich\nother\noutdoor\nouter\noutput\noutside\noval\noven\nover\nown\nowner\noxygen\noyster\nozone\npact\npaddle\npage\npair\npalace\npalm\npanda\npanel\npanic\npanther\npaper\nparade\nparent\npark\nparrot\nparty\npass\npatch\npath\npatient\npatrol\npattern\npause\npave\npayment\npeace\npeanut\npear\npeasant\npelican\npen\npenalty\npencil\npeople\npepper\nperfect\npermit\nperson\npet\nphone\nphoto\nphrase\nphysical\npiano\npicnic\npicture\npiece\npig\npigeon\npill\npilot\npink\npioneer\npipe\npistol\npitch\npizza\nplace\nplanet\nplastic\nplate\nplay\nplease\npledge\npluck\nplug\nplunge\npoem\npoet\npoint\npolar\npole\npolice\npond\npony\npool\npopular\nportion\nposition\npossible\npost\npotato\npottery\npoverty\npowder\npower\npractice\npraise\npredict\nprefer\nprepare\npresent\npretty\nprevent\nprice\npride\nprimary\nprint\npriority\nprison\nprivate\nprize\nproblem\nprocess\nproduce\nprofit\nprogram\nproject\npromote\nproof\nproperty\nprosper\nprotect\nproud\nprovide\npublic\npudding\npull\npulp\npulse\npumpkin\npunch\npupil\npuppy\npurchase\npurity\npurpose\npurse\npush\nput\npuzzle\npyramid\nquality\nquantum\nquarter\nquestion\nquick\nquit\nquiz\nquote\nrabbit\nraccoon\nrace\nrack\nradar\nradio\nrail\nrain\nraise\nrally\nramp\nranch\nrandom\nrange\nrapid\nrare\nrate\nrather\nraven\nraw\nrazor\nready\nreal\nreason\nrebel\nrebuild\nrecall\nreceive\nrecipe\nrecord\nrecycle\nreduce\nreflect\nreform\nrefuse\nregion\nregret\nregular\nreject\nrelax\nrelease\nrelief\nrely\nremain\nremember\nremind\nremove\nrender\nrenew\nrent\nreopen\nrepair\nrepeat\nreplace\nreport\nrequire\nrescue\nresemble\nresist\nresource\nresponse\nresult\nretire\nretreat\nreturn\nreunion\nreveal\nreview\nreward\nrhythm\nrib\nribbon\nrice\nrich\nride\nridge\nrifle\nright\nrigid\nring\nriot\nripple\nrisk\nritual\nrival\nriver\nroad\nroast\nrobot\nrobust\nrocket\nromance\nroof\nrookie\nroom\nrose\nrotate\nrough\nround\nroute\nroyal\nrubber\nrude\nrug\nrule\nrun\nrunway\nrural\nsad\nsaddle\nsadness\nsafe\nsail\nsalad\nsalmon\nsalon\nsalt\nsalute\nsame\nsample\nsand\nsatisfy\nsatoshi\nsauce\nsausage\nsave\nsay\nscale\nscan\nscare\nscatter\nscene\nscheme\nschool\nscience\nscissors\nscorpion\nscout\nscrap\nscreen\nscript\nscrub\nsea\nsearch\nseason\nseat\nsecond\nsecret\nsection\nsecurity\nseed\nseek\nsegment\nselect\nsell\nseminar\nsenior\nsense\nsentence\nseries\nservice\nsession\nsettle\nsetup\nseven\nshadow\nshaft\nshallow\nshare\nshed\nshell\nsheriff\nshield\nshift\nshine\nship\nshiver\nshock\nshoe\nshoot\nshop\nshort\nshoulder\nshove\nshrimp\nshrug\nshuffle\nshy\nsibling\nsick\nside\nsiege\nsight\nsign\nsilent\nsilk\nsilly\nsilver\nsimilar\nsimple\nsince\nsing\nsiren\nsister\nsituate\nsix\nsize\nskate\nsketch\nski\nskill\nskin\nskirt\nskull\nslab\nslam\nsleep\nslender\nslice\nslide\nslight\nslim\nslogan\nslot\nslow\nslush\nsmall\nsmart\nsmile\nsmoke\nsmooth\nsnack\nsnake\nsnap\nsniff\nsnow\nsoap\nsoccer\nsocial\nsock\nsoda\nsoft\nsolar\nsoldier\nsolid\nsolution\nsolve\nsomeone\nsong\nsoon\nsorry\nsort\nsoul\nsound\nsoup\nsource\nsouth\nspace\nspare\nspatial\nspawn\nspeak\nspecial\nspeed\nspell\nspend\nsphere\nspice\nspider\nspike\nspin\nspirit\nsplit\nspoil\nsponsor\nspoon\nsport\nspot\nspray\nspread\nspring\nspy\nsquare\nsqueeze\nsquirrel\nstable\nstadium\nstaff\nstage\nstairs\nstamp\nstand\nstart\nstate\nstay\nsteak\nsteel\nstem\nstep\nstereo\nstick\nstill\nsting\nstock\nstomach\nstone\nstool\nstory\nstove\nstrategy\nstreet\nstrike\nstrong\nstruggle\nstudent\nstuff\nstumble\nstyle\nsubject\nsubmit\nsubway\nsuccess\nsuch\nsudden\nsuffer\nsugar\nsuggest\nsuit\nsummer\nsun\nsunny\nsunset\nsuper\nsupply\nsupreme\nsure\nsurface\nsurge\nsurprise\nsurround\nsurvey\nsuspect\nsustain\nswallow\nswamp\nswap\nswarm\nswear\nsweet\nswift\nswim\nswing\nswitch\nsword\nsymbol\nsymptom\nsyrup\nsystem\ntable\ntackle\ntag\ntail\ntalent\ntalk\ntank\ntape\ntarget\ntask\ntaste\ntattoo\ntaxi\nteach\nteam\ntell\nten\ntenant\ntennis\ntent\nterm\ntest\ntext\nthank\nthat\ntheme\nthen\ntheory\nthere\nthey\nthing\nthis\nthought\nthree\nthrive\nthrow\nthumb\nthunder\nticket\ntide\ntiger\ntilt\ntimber\ntime\ntiny\ntip\ntired\ntissue\ntitle\ntoast\ntobacco\ntoday\ntoddler\ntoe\ntogether\ntoilet\ntoken\ntomato\ntomorrow\ntone\ntongue\ntonight\ntool\ntooth\ntop\ntopic\ntopple\ntorch\ntornado\ntortoise\ntoss\ntotal\ntourist\ntoward\ntower\ntown\ntoy\ntrack\ntrade\ntraffic\ntragic\ntrain\ntransfer\ntrap\ntrash\ntravel\ntray\ntreat\ntree\ntrend\ntrial\ntribe\ntrick\ntrigger\ntrim\ntrip\ntrophy\ntrouble\ntruck\ntrue\ntruly\ntrumpet\ntrust\ntruth\ntry\ntube\ntuition\ntumble\ntuna\ntunnel\nturkey\nturn\nturtle\ntwelve\ntwenty\ntwice\ntwin\ntwist\ntwo\ntype\ntypical\nugly\numbrella\nunable\nunaware\nuncle\nuncover\nunder\nundo\nunfair\nunfold\nunhappy\nuniform\nunique\nunit\nuniverse\nunknown\nunlock\nuntil\nunusual\nunveil\nupdate\nupgrade\nuphold\nupon\nupper\nupset\nurban\nurge\nusage\nuse\nused\nuseful\nuseless\nusual\nutility\nvacant\nvacuum\nvague\nvalid\nvalley\nvalve\nvan\nvanish\nvapor\nvarious\nvast\nvault\nvehicle\nvelvet\nvendor\nventure\nvenue\nverb\nverify\nversion\nvery\nvessel\nveteran\nviable\nvibrant\nvicious\nvictory\nvideo\nview\nvillage\nvintage\nviolin\nvirtual\nvirus\nvisa\nvisit\nvisual\nvital\nvivid\nvocal\nvoice\nvoid\nvolcano\nvolume\nvote\nvoyage\nwage\nwagon\nwait\nwalk\nwall\nwalnut\nwant\nwarfare\nwarm\nwarrior\nwash\nwasp\nwaste\nwater\nwave\nway\nwealth\nweapon\nwear\nweasel\nweather\nweb\nwedding\nweekend\nweird\nwelcome\nwest\nwet\nwhale\nwhat\nwheat\nwheel\nwhen\nwhere\nwhip\nwhisper\nwide\nwidth\nwife\nwild\nwill\nwin\nwindow\nwine\nwing\nwink\nwinner\nwinter\nwire\nwisdom\nwise\nwish\nwitness\nwolf\nwoman\nwonder\nwood\nwool\nword\nwork\nworld\nworry\nworth\nwrap\nwreck\nwrestle\nwrist\nwrite\nwrong\nyard\nyear\nyellow\nyou\nyoung\nyouth\nzebra\nzero\nzone\nzoo".split("\n");const Se=O=>new DataView(O.buffer,O.byteOffset,O.byteLength);if(68!==new Uint8Array(new Uint32Array([287454020]).buffer)[0])throw new Error("Non little-endian hardware is not supported");function wn(O){if("string"==typeof O&&(O=function un(O){if("string"!=typeof O)throw new Error("utf8ToBytes expected string, got "+typeof O);return new Uint8Array((new TextEncoder).encode(O))}(O)),!function Ne(O){return O instanceof Uint8Array||null!=O&&"object"==typeof O&&"Uint8Array"===O.constructor.name}(O))throw new Error("expected Uint8Array, got "+typeof O);return O}class En{clone(){return this._cloneInto()}}const Ze={}.toString;function ze(O){const B=oe=>O().update(wn(oe)).digest(),$=O();return B.outputLen=$.outputLen,B.blockLen=$.blockLen,B.create=()=>O(),B}class lt extends En{constructor(B,$){super(),this.finished=!1,this.destroyed=!1,Z(B);const oe=wn($);if(this.iHash=B.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,$e=new Uint8Array(Ae);$e.set(oe.length>Ae?B.create().update(oe).digest():oe);for(let gt=0;gt<$e.length;gt++)$e[gt]^=54;this.iHash.update($e),this.oHash=B.create();for(let gt=0;gt<$e.length;gt++)$e[gt]^=106;this.oHash.update($e),$e.fill(0)}update(B){return te(this),this.iHash.update(B),this}digestInto(B){te(this),G(B,this.outputLen),this.finished=!0,this.iHash.digestInto(B),this.oHash.update(B),this.oHash.digestInto(B),this.destroy()}digest(){const B=new Uint8Array(this.oHash.outputLen);return this.digestInto(B),B}_cloneInto(B){B||(B=Object.create(Object.getPrototypeOf(this),{}));const{oHash:$,iHash:oe,finished:Ae,destroyed:$e,blockLen:gt,outputLen:It}=this;return B.finished=Ae,B.destroyed=$e,B.blockLen=gt,B.outputLen=It,B.oHash=$._cloneInto(B.oHash),B.iHash=oe._cloneInto(B.iHash),B}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const Xe=(O,B,$)=>new lt(O,B).update($).digest();Xe.create=(O,B)=>new lt(O,B);class pn extends En{constructor(B,$,oe,Ae){super(),this.blockLen=B,this.outputLen=$,this.padOffset=oe,this.isLE=Ae,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(B),this.view=Se(this.buffer)}update(B){te(this);const{view:$,buffer:oe,blockLen:Ae}=this,$e=(B=wn(B)).length;for(let gt=0;gt<$e;){const It=Math.min(Ae-this.pos,$e-gt);if(It!==Ae)oe.set(B.subarray(gt,gt+It),this.pos),this.pos+=It,gt+=It,this.pos===Ae&&(this.process($,0),this.pos=0);else{const Wt=Se(B);for(;Ae<=$e-gt;gt+=Ae)this.process(Wt,gt)}}return this.length+=B.length,this.roundClean(),this}digestInto(B){te(this),function be(O,B){G(O);const $=B.outputLen;if(O.length<$)throw new Error(`digestInto() expects output buffer of length at least ${$}`)}(B,this),this.finished=!0;const{buffer:$,view:oe,blockLen:Ae,isLE:$e}=this;let{pos:gt}=this;$[gt++]=128,this.buffer.subarray(gt).fill(0),this.padOffset>Ae-gt&&(this.process(oe,0),gt=0);for(let qt=gt;qt>Ae&$e),It=Number($&$e),ln=oe?0:4;O.setUint32(B+(oe?4:0),gt,oe),O.setUint32(B+ln,It,oe)})(oe,Ae-8,BigInt(8*this.length),$e),this.process(oe,0);const It=Se(B),Wt=this.outputLen;if(Wt%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const ln=Wt/4,Tn=this.get();if(ln>Tn.length)throw new Error("_sha2: outputLen bigger than state");for(let qt=0;qt>Pt&Wn)}:{h:0|Number(O>>Pt&Wn),l:0|Number(O&Wn)}}const Hn_split=function an(O,B=!1){let $=new Uint32Array(O.length),oe=new Uint32Array(O.length);for(let Ae=0;AeO>>>$,Hn_shrSL=(O,B,$)=>O<<32-$|B>>>$,Hn_rotrSH=(O,B,$)=>O>>>$|B<<32-$,Hn_rotrSL=(O,B,$)=>O<<32-$|B>>>$,Hn_rotrBH=(O,B,$)=>O<<64-$|B>>>$-32,Hn_rotrBL=(O,B,$)=>O>>>$-32|B<<64-$,Hn_add=function bt(O,B,$,oe){const Ae=(B>>>0)+(oe>>>0);return{h:O+$+(Ae/2**32|0)|0,l:0|Ae}},Hn_add3L=(O,B,$)=>(O>>>0)+(B>>>0)+($>>>0),Hn_add3H=(O,B,$,oe)=>B+$+oe+(O/2**32|0)|0,Hn_add4L=(O,B,$,oe)=>(O>>>0)+(B>>>0)+($>>>0)+(oe>>>0),Hn_add4H=(O,B,$,oe,Ae)=>B+$+oe+Ae+(O/2**32|0)|0,Hn_add5H=(O,B,$,oe,Ae,$e)=>B+$+oe+Ae+$e+(O/2**32|0)|0,Hn_add5L=(O,B,$,oe,Ae)=>(O>>>0)+(B>>>0)+($>>>0)+(oe>>>0)+(Ae>>>0),[xr,ti]=Hn_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))),Xr=new Uint32Array(80),vt=new Uint32Array(80);class $t extends pn{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:B,Al:$,Bh:oe,Bl:Ae,Ch:$e,Cl:gt,Dh:It,Dl:Wt,Eh:ln,El:Tn,Fh:qt,Fl:Xn,Gh:Kn,Gl:nr,Hh:kn,Hl:jn}=this;return[B,$,oe,Ae,$e,gt,It,Wt,ln,Tn,qt,Xn,Kn,nr,kn,jn]}set(B,$,oe,Ae,$e,gt,It,Wt,ln,Tn,qt,Xn,Kn,nr,kn,jn){this.Ah=0|B,this.Al=0|$,this.Bh=0|oe,this.Bl=0|Ae,this.Ch=0|$e,this.Cl=0|gt,this.Dh=0|It,this.Dl=0|Wt,this.Eh=0|ln,this.El=0|Tn,this.Fh=0|qt,this.Fl=0|Xn,this.Gh=0|Kn,this.Gl=0|nr,this.Hh=0|kn,this.Hl=0|jn}process(B,$){for(let Vn=0;Vn<16;Vn++,$+=4)Xr[Vn]=B.getUint32($),vt[Vn]=B.getUint32($+=4);for(let Vn=16;Vn<80;Vn++){const ur=0|Xr[Vn-15],Pr=0|vt[Vn-15],kr=Hn_rotrSH(ur,Pr,1)^Hn_rotrSH(ur,Pr,8)^Hn_shrSH(ur,Pr,7),zr=Hn_rotrSL(ur,Pr,1)^Hn_rotrSL(ur,Pr,8)^Hn_shrSL(ur,Pr,7),Ur=0|Xr[Vn-2],Yi=0|vt[Vn-2],Qi=Hn_rotrSH(Ur,Yi,19)^Hn_rotrBH(Ur,Yi,61)^Hn_shrSH(Ur,Yi,6),ki=Hn_rotrSL(Ur,Yi,19)^Hn_rotrBL(Ur,Yi,61)^Hn_shrSL(Ur,Yi,6),Zi=Hn_add4L(zr,ki,vt[Vn-7],vt[Vn-16]),Bo=Hn_add4H(Zi,kr,Qi,Xr[Vn-7],Xr[Vn-16]);Xr[Vn]=0|Bo,vt[Vn]=0|Zi}let{Ah:oe,Al:Ae,Bh:$e,Bl:gt,Ch:It,Cl:Wt,Dh:ln,Dl:Tn,Eh:qt,El:Xn,Fh:Kn,Fl:nr,Gh:kn,Gl:jn,Hh:Qn,Hl:ir}=this;for(let Vn=0;Vn<80;Vn++){const ur=Hn_rotrSH(qt,Xn,14)^Hn_rotrSH(qt,Xn,18)^Hn_rotrBH(qt,Xn,41),Pr=Hn_rotrSL(qt,Xn,14)^Hn_rotrSL(qt,Xn,18)^Hn_rotrBL(qt,Xn,41),kr=qt&Kn^~qt&kn,Ur=Hn_add5L(ir,Pr,Xn&nr^~Xn&jn,ti[Vn],vt[Vn]),Yi=Hn_add5H(Ur,Qn,ur,kr,xr[Vn],Xr[Vn]),Qi=0|Ur,ki=Hn_rotrSH(oe,Ae,28)^Hn_rotrBH(oe,Ae,34)^Hn_rotrBH(oe,Ae,39),Zi=Hn_rotrSL(oe,Ae,28)^Hn_rotrBL(oe,Ae,34)^Hn_rotrBL(oe,Ae,39),Bo=oe&$e^oe&It^$e&It,Ds=Ae>^Ae&Wt^gt&Wt;Qn=0|kn,ir=0|jn,kn=0|Kn,jn=0|nr,Kn=0|qt,nr=0|Xn,({h:qt,l:Xn}=Hn_add(0|ln,0|Tn,0|Yi,0|Qi)),ln=0|It,Tn=0|Wt,It=0|$e,Wt=0|gt,$e=0|oe,gt=0|Ae;const vr=Hn_add3L(Qi,Zi,Ds);oe=Hn_add3H(vr,Yi,ki,Bo),Ae=0|vr}({h:oe,l:Ae}=Hn_add(0|this.Ah,0|this.Al,0|oe,0|Ae)),({h:$e,l:gt}=Hn_add(0|this.Bh,0|this.Bl,0|$e,0|gt)),({h:It,l:Wt}=Hn_add(0|this.Ch,0|this.Cl,0|It,0|Wt)),({h:ln,l:Tn}=Hn_add(0|this.Dh,0|this.Dl,0|ln,0|Tn)),({h:qt,l:Xn}=Hn_add(0|this.Eh,0|this.El,0|qt,0|Xn)),({h:Kn,l:nr}=Hn_add(0|this.Fh,0|this.Fl,0|Kn,0|nr)),({h:kn,l:jn}=Hn_add(0|this.Gh,0|this.Gl,0|kn,0|jn)),({h:Qn,l:ir}=Hn_add(0|this.Hh,0|this.Hl,0|Qn,0|ir)),this.set(oe,Ae,$e,gt,It,Wt,ln,Tn,qt,Xn,Kn,nr,kn,jn,Qn,ir)}roundClean(){Xr.fill(0),vt.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}const Rt=ze(()=>new $t);var or=r(1998);function ii(O){if("string"!=typeof O)throw new TypeError("Invalid mnemonic type: "+typeof O);return O.normalize("NFKD")}function Oi(O,B=""){return function se(O,B,$,oe){const{c:Ae,dkLen:$e,DK:gt,PRF:It,PRFSalt:Wt}=function Ge(O,B,$,oe){Z(O);const Ae=function wt(O,B){if(void 0!==B&&"[object Object]"!==Ze.call(B))throw new Error("Options should be object or undefined");return Object.assign(O,B)}({dkLen:32,asyncTick:10},oe),{c:$e,dkLen:gt,asyncTick:It}=Ae;if(T($e),T(gt),T(It),$e<1)throw new Error("PBKDF2: iterations (c) should be >= 1");const Wt=wn(B),ln=wn($),Tn=new Uint8Array(gt),qt=Xe.create(O,Wt),Xn=qt._cloneInto().update(ln);return{c:$e,dkLen:gt,asyncTick:It,DK:Tn,PRF:qt,PRFSalt:Xn}}(O,B,$,oe);let ln;const Tn=new Uint8Array(4),qt=Se(Tn),Xn=new Uint8Array(It.outputLen);for(let Kn=1,nr=0;nr<$e;Kn++,nr+=It.outputLen){const kn=gt.subarray(nr,nr+It.outputLen);qt.setInt32(0,Kn,!1),(ln=Wt._cloneInto(ln)).update(Tn).digestInto(Xn),kn.set(Xn.subarray(0,kn.length));for(let jn=1;jnii(`mnemonic${O}`))(B),{c:2048,dkLen:64})}function Uo(O){if(!Number.isSafeInteger(O)||O<0)throw new Error(`Wrong positive integer: ${O}`)}function so(O,...B){if(!function ts(O){return O instanceof Uint8Array||null!=O&&"object"==typeof O&&"Uint8Array"===O.constructor.name}(O))throw new Error("Expected Uint8Array");if(B.length>0&&!B.includes(O.length))throw new Error(`Expected Uint8Array of length ${B}, not of length=${O.length}`)}function Xo(O,B=!0){if(O.destroyed)throw new Error("Hash instance has been destroyed");if(B&&O.finished)throw new Error("Hash#digest() has already been called")}function Mo(O){return O instanceof Uint8Array||null!=O&&"object"==typeof O&&"Uint8Array"===O.constructor.name}const et=O=>new DataView(O.buffer,O.byteOffset,O.byteLength),ct=(O,B)=>O<<32-B|O>>>B;if(68!==new Uint8Array(new Uint32Array([287454020]).buffer)[0])throw new Error("Non little-endian hardware is not supported");const me=Array.from({length:256},(O,B)=>B.toString(16).padStart(2,"0")),Oe={_0:48,_9:57,_A:65,_F:70,_a:97,_f:102};function ht(O){return O>=Oe._0&&O<=Oe._9?O-Oe._0:O>=Oe._A&&O<=Oe._F?O-(Oe._A-10):O>=Oe._a&&O<=Oe._f?O-(Oe._a-10):void 0}function An(O){if("string"!=typeof O)throw new Error("utf8ToBytes expected string, got "+typeof O);return new Uint8Array((new TextEncoder).encode(O))}function On(O){if("string"==typeof O&&(O=An(O)),!Mo(O))throw new Error("expected Uint8Array, got "+typeof O);return O}function Un(...O){let B=0;for(let oe=0;oeO().update(On(oe)).digest(),$=O();return B.outputLen=$.outputLen,B.blockLen=$.blockLen,B.create=()=>O(),B}class ai extends Jn{constructor(B,$){super(),this.finished=!1,this.destroyed=!1,function bo(O){if("function"!=typeof O||"function"!=typeof O.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");Uo(O.outputLen),Uo(O.blockLen)}(B);const oe=On($);if(this.iHash=B.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,$e=new Uint8Array(Ae);$e.set(oe.length>Ae?B.create().update(oe).digest():oe);for(let gt=0;gt<$e.length;gt++)$e[gt]^=54;this.iHash.update($e),this.oHash=B.create();for(let gt=0;gt<$e.length;gt++)$e[gt]^=106;this.oHash.update($e),$e.fill(0)}update(B){return Xo(this),this.iHash.update(B),this}digestInto(B){Xo(this),so(B,this.outputLen),this.finished=!0,this.iHash.digestInto(B),this.oHash.update(B),this.oHash.digestInto(B),this.destroy()}digest(){const B=new Uint8Array(this.oHash.outputLen);return this.digestInto(B),B}_cloneInto(B){B||(B=Object.create(Object.getPrototypeOf(this),{}));const{oHash:$,iHash:oe,finished:Ae,destroyed:$e,blockLen:gt,outputLen:It}=this;return B.finished=Ae,B.destroyed=$e,B.blockLen=gt,B.outputLen=It,B.oHash=$._cloneInto(B.oHash),B.iHash=oe._cloneInto(B.iHash),B}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const _o=(O,B,$)=>new ai(O,B).update($).digest();_o.create=(O,B)=>new ai(O,B);class Gi extends Jn{constructor(B,$,oe,Ae){super(),this.blockLen=B,this.outputLen=$,this.padOffset=oe,this.isLE=Ae,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(B),this.view=et(this.buffer)}update(B){Xo(this);const{view:$,buffer:oe,blockLen:Ae}=this,$e=(B=On(B)).length;for(let gt=0;gt<$e;){const It=Math.min(Ae-this.pos,$e-gt);if(It!==Ae)oe.set(B.subarray(gt,gt+It),this.pos),this.pos+=It,gt+=It,this.pos===Ae&&(this.process($,0),this.pos=0);else{const Wt=et(B);for(;Ae<=$e-gt;gt+=Ae)this.process(Wt,gt)}}return this.length+=B.length,this.roundClean(),this}digestInto(B){Xo(this),function Co(O,B){so(O);const $=B.outputLen;if(O.length<$)throw new Error(`digestInto() expects output buffer of length at least ${$}`)}(B,this),this.finished=!0;const{buffer:$,view:oe,blockLen:Ae,isLE:$e}=this;let{pos:gt}=this;$[gt++]=128,this.buffer.subarray(gt).fill(0),this.padOffset>Ae-gt&&(this.process(oe,0),gt=0);for(let qt=gt;qt>Ae&$e),It=Number($&$e),ln=oe?0:4;O.setUint32(B+(oe?4:0),gt,oe),O.setUint32(B+ln,It,oe)})(oe,Ae-8,BigInt(8*this.length),$e),this.process(oe,0);const It=et(B),Wt=this.outputLen;if(Wt%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const ln=Wt/4,Tn=this.get();if(ln>Tn.length)throw new Error("_sha2: outputLen bigger than state");for(let qt=0;qtB);let Sr=[ws],oa=[ws.map(O=>(9*O+5)%16)];for(let O=0;O<4;O++)for(let B of[Sr,oa])B.push(B[O].map($=>ls[$]));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(O=>new Uint8Array(O)),wo=Sr.map((O,B)=>O.map($=>ma[B][$])),Ls=oa.map((O,B)=>O.map($=>ma[B][$])),Ps=new Uint32Array([0,1518500249,1859775393,2400959708,2840853838]),Xs=new Uint32Array([1352829926,1548603684,1836072691,2053994217,0]),Wi=(O,B)=>O<>>32-B;function Ys(O,B,$,oe){return 0===O?B^$^oe:1===O?B&$|~B&oe:2===O?(B|~$)^oe:3===O?B&oe|$&~oe:B^($|~oe)}const Ni=new Uint32Array(16);class Fs extends Gi{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:B,h1:$,h2:oe,h3:Ae,h4:$e}=this;return[B,$,oe,Ae,$e]}set(B,$,oe,Ae,$e){this.h0=0|B,this.h1=0|$,this.h2=0|oe,this.h3=0|Ae,this.h4=0|$e}process(B,$){for(let Kn=0;Kn<16;Kn++,$+=4)Ni[Kn]=B.getUint32($,!0);let oe=0|this.h0,Ae=oe,$e=0|this.h1,gt=$e,It=0|this.h2,Wt=It,ln=0|this.h3,Tn=ln,qt=0|this.h4,Xn=qt;for(let Kn=0;Kn<5;Kn++){const nr=4-Kn,kn=Ps[Kn],jn=Xs[Kn],Qn=Sr[Kn],ir=oa[Kn],Vn=wo[Kn],ur=Ls[Kn];for(let Pr=0;Pr<16;Pr++){const kr=Wi(oe+Ys(Kn,$e,It,ln)+Ni[Qn[Pr]]+kn,Vn[Pr])+qt|0;oe=qt,qt=ln,ln=0|Wi(It,10),It=$e,$e=kr}for(let Pr=0;Pr<16;Pr++){const kr=Wi(Ae+Ys(nr,gt,Wt,Tn)+Ni[ir[Pr]]+jn,ur[Pr])+Xn|0;Ae=Xn,Xn=Tn,Tn=0|Wi(Wt,10),Wt=gt,gt=kr}}this.set(this.h1+It+Tn|0,this.h2+ln+Xn|0,this.h3+qt+Ae|0,this.h4+oe+gt|0,this.h0+$e+Wt|0)}roundClean(){Ni.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}}const ns=pr(()=>new Fs),qr=(O,B,$)=>O&B^~O&$,cs=(O,B,$)=>O&B^O&$^B&$,rs=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]),zi=new Uint32Array(64);class Es extends Gi{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:B,B:$,C:oe,D:Ae,E:$e,F:gt,G:It,H:Wt}=this;return[B,$,oe,Ae,$e,gt,It,Wt]}set(B,$,oe,Ae,$e,gt,It,Wt){this.A=0|B,this.B=0|$,this.C=0|oe,this.D=0|Ae,this.E=0|$e,this.F=0|gt,this.G=0|It,this.H=0|Wt}process(B,$){for(let qt=0;qt<16;qt++,$+=4)zi[qt]=B.getUint32($,!1);for(let qt=16;qt<64;qt++){const Xn=zi[qt-15],Kn=zi[qt-2],nr=ct(Xn,7)^ct(Xn,18)^Xn>>>3,kn=ct(Kn,17)^ct(Kn,19)^Kn>>>10;zi[qt]=kn+zi[qt-7]+nr+zi[qt-16]|0}let{A:oe,B:Ae,C:$e,D:gt,E:It,F:Wt,G:ln,H:Tn}=this;for(let qt=0;qt<64;qt++){const Kn=Tn+(ct(It,6)^ct(It,11)^ct(It,25))+qr(It,Wt,ln)+rs[qt]+zi[qt]|0,kn=(ct(oe,2)^ct(oe,13)^ct(oe,22))+cs(oe,Ae,$e)|0;Tn=ln,ln=Wt,Wt=It,It=gt+Kn|0,gt=$e,$e=Ae,Ae=oe,oe=Kn+kn|0}oe=oe+this.A|0,Ae=Ae+this.B|0,$e=$e+this.C|0,gt=gt+this.D|0,It=It+this.E|0,Wt=Wt+this.F|0,ln=ln+this.G|0,Tn=Tn+this.H|0,this.set(oe,Ae,$e,gt,It,Wt,ln,Tn)}roundClean(){zi.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const ga=pr(()=>new Es),Eo=BigInt(2**32-1),is=BigInt(32);function Is(O,B=!1){return B?{h:Number(O&Eo),l:Number(O>>is&Eo)}:{h:0|Number(O>>is&Eo),l:0|Number(O&Eo)}}const Qe_split=function Bs(O,B=!1){let $=new Uint32Array(O.length),oe=new Uint32Array(O.length);for(let Ae=0;AeO>>>$,Qe_shrSL=(O,B,$)=>O<<32-$|B>>>$,Qe_rotrSH=(O,B,$)=>O>>>$|B<<32-$,Qe_rotrSL=(O,B,$)=>O<<32-$|B>>>$,Qe_rotrBH=(O,B,$)=>O<<64-$|B>>>$-32,Qe_rotrBL=(O,B,$)=>O>>>$-32|B<<64-$,Qe_add=function Io(O,B,$,oe){const Ae=(B>>>0)+(oe>>>0);return{h:O+$+(Ae/2**32|0)|0,l:0|Ae}},Qe_add3L=(O,B,$)=>(O>>>0)+(B>>>0)+($>>>0),Qe_add3H=(O,B,$,oe)=>B+$+oe+(O/2**32|0)|0,Qe_add4L=(O,B,$,oe)=>(O>>>0)+(B>>>0)+($>>>0)+(oe>>>0),Qe_add4H=(O,B,$,oe,Ae)=>B+$+oe+Ae+(O/2**32|0)|0,Qe_add5H=(O,B,$,oe,Ae,$e)=>B+$+oe+Ae+$e+(O/2**32|0)|0,Qe_add5L=(O,B,$,oe,Ae)=>(O>>>0)+(B>>>0)+($>>>0)+(oe>>>0)+(Ae>>>0),[Et,Fn]=Qe_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))),fn=new Uint32Array(80),cr=new Uint32Array(80);class dr extends Gi{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:B,Al:$,Bh:oe,Bl:Ae,Ch:$e,Cl:gt,Dh:It,Dl:Wt,Eh:ln,El:Tn,Fh:qt,Fl:Xn,Gh:Kn,Gl:nr,Hh:kn,Hl:jn}=this;return[B,$,oe,Ae,$e,gt,It,Wt,ln,Tn,qt,Xn,Kn,nr,kn,jn]}set(B,$,oe,Ae,$e,gt,It,Wt,ln,Tn,qt,Xn,Kn,nr,kn,jn){this.Ah=0|B,this.Al=0|$,this.Bh=0|oe,this.Bl=0|Ae,this.Ch=0|$e,this.Cl=0|gt,this.Dh=0|It,this.Dl=0|Wt,this.Eh=0|ln,this.El=0|Tn,this.Fh=0|qt,this.Fl=0|Xn,this.Gh=0|Kn,this.Gl=0|nr,this.Hh=0|kn,this.Hl=0|jn}process(B,$){for(let Vn=0;Vn<16;Vn++,$+=4)fn[Vn]=B.getUint32($),cr[Vn]=B.getUint32($+=4);for(let Vn=16;Vn<80;Vn++){const ur=0|fn[Vn-15],Pr=0|cr[Vn-15],kr=Qe_rotrSH(ur,Pr,1)^Qe_rotrSH(ur,Pr,8)^Qe_shrSH(ur,Pr,7),zr=Qe_rotrSL(ur,Pr,1)^Qe_rotrSL(ur,Pr,8)^Qe_shrSL(ur,Pr,7),Ur=0|fn[Vn-2],Yi=0|cr[Vn-2],Qi=Qe_rotrSH(Ur,Yi,19)^Qe_rotrBH(Ur,Yi,61)^Qe_shrSH(Ur,Yi,6),ki=Qe_rotrSL(Ur,Yi,19)^Qe_rotrBL(Ur,Yi,61)^Qe_shrSL(Ur,Yi,6),Zi=Qe_add4L(zr,ki,cr[Vn-7],cr[Vn-16]),Bo=Qe_add4H(Zi,kr,Qi,fn[Vn-7],fn[Vn-16]);fn[Vn]=0|Bo,cr[Vn]=0|Zi}let{Ah:oe,Al:Ae,Bh:$e,Bl:gt,Ch:It,Cl:Wt,Dh:ln,Dl:Tn,Eh:qt,El:Xn,Fh:Kn,Fl:nr,Gh:kn,Gl:jn,Hh:Qn,Hl:ir}=this;for(let Vn=0;Vn<80;Vn++){const ur=Qe_rotrSH(qt,Xn,14)^Qe_rotrSH(qt,Xn,18)^Qe_rotrBH(qt,Xn,41),Pr=Qe_rotrSL(qt,Xn,14)^Qe_rotrSL(qt,Xn,18)^Qe_rotrBL(qt,Xn,41),kr=qt&Kn^~qt&kn,Ur=Qe_add5L(ir,Pr,Xn&nr^~Xn&jn,Fn[Vn],cr[Vn]),Yi=Qe_add5H(Ur,Qn,ur,kr,Et[Vn],fn[Vn]),Qi=0|Ur,ki=Qe_rotrSH(oe,Ae,28)^Qe_rotrBH(oe,Ae,34)^Qe_rotrBH(oe,Ae,39),Zi=Qe_rotrSL(oe,Ae,28)^Qe_rotrBL(oe,Ae,34)^Qe_rotrBL(oe,Ae,39),Bo=oe&$e^oe&It^$e&It,Ds=Ae>^Ae&Wt^gt&Wt;Qn=0|kn,ir=0|jn,kn=0|Kn,jn=0|nr,Kn=0|qt,nr=0|Xn,({h:qt,l:Xn}=Qe_add(0|ln,0|Tn,0|Yi,0|Qi)),ln=0|It,Tn=0|Wt,It=0|$e,Wt=0|gt,$e=0|oe,gt=0|Ae;const vr=Qe_add3L(Qi,Zi,Ds);oe=Qe_add3H(vr,Yi,ki,Bo),Ae=0|vr}({h:oe,l:Ae}=Qe_add(0|this.Ah,0|this.Al,0|oe,0|Ae)),({h:$e,l:gt}=Qe_add(0|this.Bh,0|this.Bl,0|$e,0|gt)),({h:It,l:Wt}=Qe_add(0|this.Ch,0|this.Cl,0|It,0|Wt)),({h:ln,l:Tn}=Qe_add(0|this.Dh,0|this.Dl,0|ln,0|Tn)),({h:qt,l:Xn}=Qe_add(0|this.Eh,0|this.El,0|qt,0|Xn)),({h:Kn,l:nr}=Qe_add(0|this.Fh,0|this.Fl,0|Kn,0|nr)),({h:kn,l:jn}=Qe_add(0|this.Gh,0|this.Gl,0|kn,0|jn)),({h:Qn,l:ir}=Qe_add(0|this.Hh,0|this.Hl,0|Qn,0|ir)),this.set(oe,Ae,$e,gt,It,Wt,ln,Tn,qt,Xn,Kn,nr,kn,jn,Qn,ir)}roundClean(){fn.fill(0),cr.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=pr(()=>new dr);function lo(O){if(!Number.isSafeInteger(O)||O<0)throw new Error(`Wrong positive integer: ${O}`)}function Oo(O,...B){if(!(O instanceof Uint8Array))throw new Error("Expected Uint8Array");if(B.length>0&&!B.includes(O.length))throw new Error(`Expected Uint8Array of length ${B}, not of length=${O.length}`)}const ce={number:lo,bool:function Ho(O){if("boolean"!=typeof O)throw new Error(`Expected boolean, not ${O}`)},bytes:Oo,hash:function Wl(O){if("function"!=typeof O||"function"!=typeof O.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");lo(O.outputLen),lo(O.blockLen)},exists:function Qa(O,B=!0){if(O.destroyed)throw new Error("Hash instance has been destroyed");if(B&&O.finished)throw new Error("Hash#digest() has already been called")},output:function ya(O,B){Oo(O);const $=B.outputLen;if(O.length<$)throw new Error(`digestInto() expects output buffer of length at least ${$}`)}},Q="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0,Pe=O=>O instanceof Uint8Array,ni=O=>new DataView(O.buffer,O.byteOffset,O.byteLength),Do=(O,B)=>O<<32-B|O>>>B;if(68!==new Uint8Array(new Uint32Array([287454020]).buffer)[0])throw new Error("Non little-endian hardware is not supported");function Lo(O){if("string"==typeof O&&(O=function Ua(O){if("string"!=typeof O)throw new Error("utf8ToBytes expected string, got "+typeof O);return new Uint8Array((new TextEncoder).encode(O))}(O)),!Pe(O))throw new Error("expected Uint8Array, got "+typeof O);return O}Array.from({length:256},(O,B)=>B.toString(16).padStart(2,"0"));class El{clone(){return this._cloneInto()}}function $a(O){const B=oe=>O().update(Lo(oe)).digest(),$=O();return B.outputLen=$.outputLen,B.blockLen=$.blockLen,B.create=()=>O(),B}function rc(O=32){if(Q&&"function"==typeof Q.getRandomValues)return Q.getRandomValues(new Uint8Array(O));throw new Error("crypto.getRandomValues must be defined")}class zl extends El{constructor(B,$,oe,Ae){super(),this.blockLen=B,this.outputLen=$,this.padOffset=oe,this.isLE=Ae,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(B),this.view=ni(this.buffer)}update(B){ce.exists(this);const{view:$,buffer:oe,blockLen:Ae}=this,$e=(B=Lo(B)).length;for(let gt=0;gt<$e;){const It=Math.min(Ae-this.pos,$e-gt);if(It!==Ae)oe.set(B.subarray(gt,gt+It),this.pos),this.pos+=It,gt+=It,this.pos===Ae&&(this.process($,0),this.pos=0);else{const Wt=ni(B);for(;Ae<=$e-gt;gt+=Ae)this.process(Wt,gt)}}return this.length+=B.length,this.roundClean(),this}digestInto(B){ce.exists(this),ce.output(B,this),this.finished=!0;const{buffer:$,view:oe,blockLen:Ae,isLE:$e}=this;let{pos:gt}=this;$[gt++]=128,this.buffer.subarray(gt).fill(0),this.padOffset>Ae-gt&&(this.process(oe,0),gt=0);for(let qt=gt;qt>Ae&$e),It=Number($&$e),ln=oe?0:4;O.setUint32(B+(oe?4:0),gt,oe),O.setUint32(B+ln,It,oe)})(oe,Ae-8,BigInt(8*this.length),$e),this.process(oe,0);const It=ni(B),Wt=this.outputLen;if(Wt%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const ln=Wt/4,Tn=this.get();if(ln>Tn.length)throw new Error("_sha2: outputLen bigger than state");for(let qt=0;qtO&B^~O&$,qa=(O,B,$)=>O&B^O&$^B&$,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 zl{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:B,B:$,C:oe,D:Ae,E:$e,F:gt,G:It,H:Wt}=this;return[B,$,oe,Ae,$e,gt,It,Wt]}set(B,$,oe,Ae,$e,gt,It,Wt){this.A=0|B,this.B=0|$,this.C=0|oe,this.D=0|Ae,this.E=0|$e,this.F=0|gt,this.G=0|It,this.H=0|Wt}process(B,$){for(let qt=0;qt<16;qt++,$+=4)co[qt]=B.getUint32($,!1);for(let qt=16;qt<64;qt++){const Xn=co[qt-15],Kn=co[qt-2],nr=Do(Xn,7)^Do(Xn,18)^Xn>>>3,kn=Do(Kn,17)^Do(Kn,19)^Kn>>>10;co[qt]=kn+co[qt-7]+nr+co[qt-16]|0}let{A:oe,B:Ae,C:$e,D:gt,E:It,F:Wt,G:ln,H:Tn}=this;for(let qt=0;qt<64;qt++){const Kn=Tn+(Do(It,6)^Do(It,11)^Do(It,25))+ba(It,Wt,ln)+Cl[qt]+co[qt]|0,kn=(Do(oe,2)^Do(oe,13)^Do(oe,22))+qa(oe,Ae,$e)|0;Tn=ln,ln=Wt,Wt=It,It=gt+Kn|0,gt=$e,$e=Ae,Ae=oe,oe=Kn+kn|0}oe=oe+this.A|0,Ae=Ae+this.B|0,$e=$e+this.C|0,gt=gt+this.D|0,It=It+this.E|0,Wt=Wt+this.F|0,ln=ln+this.G|0,Tn=Tn+this.H|0,this.set(oe,Ae,$e,gt,It,Wt,ln,Tn)}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=O=>O instanceof Uint8Array,Xl=Array.from({length:256},(O,B)=>B.toString(16).padStart(2,"0"));function xa(O){if(!Sl(O))throw new Error("Uint8Array expected");let B="";for(let $=0;$oe+Ae.length,0));let $=0;return O.forEach(oe=>{if(!Sl(oe))throw new Error("Uint8Array expected");B.set(oe,$),$+=oe.length}),B}const Va=O=>(Gl<new Uint8Array(O),Ha=O=>Uint8Array.from(O);function Di(O,B,$){if("number"!=typeof O||O<2)throw new Error("hashLen must be a number");if("number"!=typeof B||B<2)throw new Error("qByteLen must be a number");if("function"!=typeof $)throw new Error("hmacFn must be a function");let oe=ro(O),Ae=ro(O),$e=0;const gt=()=>{oe.fill(1),Ae.fill(0),$e=0},It=(...qt)=>$(Ae,oe,...qt),Wt=(qt=ro())=>{Ae=It(Ha([0]),qt),oe=It(),0!==qt.length&&(Ae=It(Ha([1]),qt),oe=It())},ln=()=>{if($e++>=1e3)throw new Error("drbg: tried 1000 values");let qt=0;const Xn=[];for(;qt{let Kn;for(gt(),Wt(qt);!(Kn=Xn(ln()));)Wt();return gt(),Kn}}const $s={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,B)=>B.Fp.isValid(O),hash:O=>"function"==typeof O&&Number.isSafeInteger(O.outputLen)};function ca(O,B,$={}){const oe=(Ae,$e,gt)=>{const It=$s[$e];if("function"!=typeof It)throw new Error(`Invalid validator "${$e}", expected function`);const Wt=O[Ae];if(!(gt&&void 0===Wt||It(Wt,O)))throw new Error(`Invalid param ${String(Ae)}=${Wt} (${typeof Wt}), expected ${$e}`)};for(const[Ae,$e]of Object.entries(B))oe(Ae,$e,!1);for(const[Ae,$e]of Object.entries($))oe(Ae,$e,!0);return O}const No=BigInt(0),U=BigInt(1),de=BigInt(2),q=BigInt(3),ve=BigInt(4),rt=BigInt(5),bn=BigInt(8);function Yr(O,B){const $=O%B;return $>=No?$:B+$}function Li(O,B,$){if($<=No||B 0");if($===U)return No;let oe=U;for(;B>No;)B&U&&(oe=oe*O%$),O=O*O%$,B>>=U;return oe}function Hr(O,B,$){let oe=O;for(;B-- >No;)oe*=oe,oe%=$;return oe}function xi(O,B){if(O===No||B<=No)throw new Error(`invert: expected positive integers, got n=${O} mod=${B}`);let $=Yr(O,B),oe=B,Ae=No,$e=U,gt=U,It=No;for(;$!==No;){const ln=oe/$,Tn=oe%$,qt=Ae-gt*ln,Xn=$e-It*ln;oe=$,$=Tn,Ae=gt,$e=It,gt=qt,It=Xn}if(oe!==U)throw new Error("invert: does not exist");return Yr(Ae,B)}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(O,B){const $=void 0!==B?B:O.toString(2).length;return{nBitLength:$,nByteLength:Math.ceil($/8)}}const ua=BigInt(0),Yl=BigInt(1);function ud(O){return function hs(O){ca(O,Wo.reduce((oe,Ae)=>(oe[Ae]="function",oe),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"}))}(O.Fp),ca(O,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...Zs(O.n,O.nBitLength),...O,p:O.Fp.ORDER})}const{Ph:Ao,aT:Ja}=i,el={Err:class extends Error{constructor(B=""){super(B)}},_parseInt(O){const{Err:B}=el;if(O.length<2||2!==O[0])throw new B("Invalid signature integer tag");const $=O[1],oe=O.subarray(2,$+2);if(!$||oe.length!==$)throw new B("Invalid signature integer: wrong length");if(128&oe[0])throw new B("Invalid signature integer: negative");if(0===oe[0]&&!(128&oe[1]))throw new B("Invalid signature integer: unnecessary leading zero");return{d:Ao(oe),l:O.subarray($+2)}},toSig(O){const{Err:B}=el,$="string"==typeof O?Ja(O):O;if(!($ instanceof Uint8Array))throw new Error("ui8a expected");let oe=$.length;if(oe<2||48!=$[0])throw new B("Invalid signature tag");if($[1]!==oe-2)throw new B("Invalid signature: incorrect length");const{d:Ae,l:$e}=el._parseInt($.subarray(2)),{d:gt,l:It}=el._parseInt($e);if(It.length)throw new B("Invalid signature: left bytes after parsing");return{r:Ae,s:gt}},hexFromSig(O){const B=ln=>8&Number.parseInt(ln[0],16)?"00"+ln:ln,$=ln=>{const Tn=ln.toString(16);return 1&Tn.length?`0${Tn}`:Tn},oe=B($(O.s)),Ae=B($(O.r)),$e=oe.length/2,gt=Ae.length/2,It=$($e),Wt=$(gt);return`30${$(gt+$e+4)}02${Wt}${Ae}02${It}${oe}`}},qs=BigInt(0),zo=BigInt(1),Ns=(BigInt(2),BigInt(3));function dd(O){const B=function nh(O){const B=ud(O);return ca(B,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...B})}(O),{Fp:$,n:oe}=B,Ae=$.BYTES+1,$e=2*$.BYTES+1;function It(vr){return Yr(vr,oe)}function Wt(vr){return xi(vr,oe)}const{ProjectivePoint:ln,normPrivateKeyToScalar:Tn,weierstrassEquation:qt,isWithinCurveOrder:Xn}=function vc(O){const B=function oc(O){const B=ud(O);ca(B,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:$,Fp:oe,a:Ae}=B;if($){if(!oe.eql(Ae,oe.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if("object"!=typeof $||"bigint"!=typeof $.beta||"function"!=typeof $.splitScalar)throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...B})}(O),{Fp:$}=B,oe=B.toBytes||((nr,kn,jn)=>{const Qn=kn.toAffine();return Fr(Uint8Array.from([4]),$.toBytes(Qn.x),$.toBytes(Qn.y))}),Ae=B.fromBytes||(nr=>{const kn=nr.subarray(1);return{x:$.fromBytes(kn.subarray(0,$.BYTES)),y:$.fromBytes(kn.subarray($.BYTES,2*$.BYTES))}});function $e(nr){const{a:kn,b:jn}=B,Qn=$.sqr(nr),ir=$.mul(Qn,nr);return $.add($.add(ir,$.mul(nr,kn)),jn)}if(!$.eql($.sqr(B.Gy),$e(B.Gx)))throw new Error("bad generator point: equation left != right");function gt(nr){return"bigint"==typeof nr&&qs$.eql(Vn,$.ZERO);return ir(jn)&&ir(Qn)?qt.ZERO:new qt(jn,Qn,$.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(kn){const jn=$.invertBatch(kn.map(Qn=>Qn.pz));return kn.map((Qn,ir)=>Qn.toAffine(jn[ir])).map(qt.fromAffine)}static fromHex(kn){const jn=qt.fromAffine(Ae(Po("pointHex",kn)));return jn.assertValidity(),jn}static fromPrivateKey(kn){return qt.BASE.multiply(Wt(kn))}_setWindowSize(kn){this._WINDOW_SIZE=kn,ln.delete(this)}assertValidity(){if(this.is0()){if(B.allowInfinityPoint)return;throw new Error("bad point: ZERO")}const{x:kn,y:jn}=this.toAffine();if(!$.isValid(kn)||!$.isValid(jn))throw new Error("bad point: x or y not FE");const Qn=$.sqr(jn),ir=$e(kn);if(!$.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:kn}=this.toAffine();if($.isOdd)return!$.isOdd(kn);throw new Error("Field doesn't support isOdd")}equals(kn){Tn(kn);const{px:jn,py:Qn,pz:ir}=this,{px:Vn,py:ur,pz:Pr}=kn,kr=$.eql($.mul(jn,Pr),$.mul(Vn,ir)),zr=$.eql($.mul(Qn,Pr),$.mul(ur,ir));return kr&&zr}negate(){return new qt(this.px,$.neg(this.py),this.pz)}double(){const{a:kn,b:jn}=B,Qn=$.mul(jn,Ns),{px:ir,py:Vn,pz:ur}=this;let Pr=$.ZERO,kr=$.ZERO,zr=$.ZERO,Ur=$.mul(ir,ir),Yi=$.mul(Vn,Vn),Qi=$.mul(ur,ur),ki=$.mul(ir,Vn);return ki=$.add(ki,ki),zr=$.mul(ir,ur),zr=$.add(zr,zr),Pr=$.mul(kn,zr),kr=$.mul(Qn,Qi),kr=$.add(Pr,kr),Pr=$.sub(Yi,kr),kr=$.add(Yi,kr),kr=$.mul(Pr,kr),Pr=$.mul(ki,Pr),zr=$.mul(Qn,zr),Qi=$.mul(kn,Qi),ki=$.sub(Ur,Qi),ki=$.mul(kn,ki),ki=$.add(ki,zr),zr=$.add(Ur,Ur),Ur=$.add(zr,Ur),Ur=$.add(Ur,Qi),Ur=$.mul(Ur,ki),kr=$.add(kr,Ur),Qi=$.mul(Vn,ur),Qi=$.add(Qi,Qi),Ur=$.mul(Qi,ki),Pr=$.sub(Pr,Ur),zr=$.mul(Qi,Yi),zr=$.add(zr,zr),zr=$.add(zr,zr),new qt(Pr,kr,zr)}add(kn){Tn(kn);const{px:jn,py:Qn,pz:ir}=this,{px:Vn,py:ur,pz:Pr}=kn;let kr=$.ZERO,zr=$.ZERO,Ur=$.ZERO;const Yi=B.a,Qi=$.mul(B.b,Ns);let ki=$.mul(jn,Vn),Zi=$.mul(Qn,ur),Bo=$.mul(ir,Pr),Ds=$.add(jn,Qn),vr=$.add(Vn,ur);Ds=$.mul(Ds,vr),vr=$.add(ki,Zi),Ds=$.sub(Ds,vr),vr=$.add(jn,ir);let jr=$.add(Vn,Pr);return vr=$.mul(vr,jr),jr=$.add(ki,Bo),vr=$.sub(vr,jr),jr=$.add(Qn,ir),kr=$.add(ur,Pr),jr=$.mul(jr,kr),kr=$.add(Zi,Bo),jr=$.sub(jr,kr),Ur=$.mul(Yi,vr),kr=$.mul(Qi,Bo),Ur=$.add(kr,Ur),kr=$.sub(Zi,Ur),Ur=$.add(Zi,Ur),zr=$.mul(kr,Ur),Zi=$.add(ki,ki),Zi=$.add(Zi,ki),Bo=$.mul(Yi,Bo),vr=$.mul(Qi,vr),Zi=$.add(Zi,Bo),Bo=$.sub(ki,Bo),Bo=$.mul(Yi,Bo),vr=$.add(vr,Bo),ki=$.mul(Zi,vr),zr=$.add(zr,ki),ki=$.mul(jr,vr),kr=$.mul(Ds,kr),kr=$.sub(kr,ki),ki=$.mul(Ds,Zi),Ur=$.mul(jr,Ur),Ur=$.add(Ur,ki),new qt(kr,zr,Ur)}subtract(kn){return this.add(kn.negate())}is0(){return this.equals(qt.ZERO)}wNAF(kn){return Kn.wNAFCached(this,ln,kn,jn=>{const Qn=$.invertBatch(jn.map(ir=>ir.pz));return jn.map((ir,Vn)=>ir.toAffine(Qn[Vn])).map(qt.fromAffine)})}multiplyUnsafe(kn){const jn=qt.ZERO;if(kn===qs)return jn;if(It(kn),kn===zo)return this;const{endo:Qn}=B;if(!Qn)return Kn.unsafeLadder(this,kn);let{k1neg:ir,k1:Vn,k2neg:ur,k2:Pr}=Qn.splitScalar(kn),kr=jn,zr=jn,Ur=this;for(;Vn>qs||Pr>qs;)Vn&zo&&(kr=kr.add(Ur)),Pr&zo&&(zr=zr.add(Ur)),Ur=Ur.double(),Vn>>=zo,Pr>>=zo;return ir&&(kr=kr.negate()),ur&&(zr=zr.negate()),zr=new qt($.mul(zr.px,Qn.beta),zr.py,zr.pz),kr.add(zr)}multiply(kn){It(kn);let Qn,ir,jn=kn;const{endo:Vn}=B;if(Vn){const{k1neg:ur,k1:Pr,k2neg:kr,k2:zr}=Vn.splitScalar(jn);let{p:Ur,f:Yi}=this.wNAF(Pr),{p:Qi,f:ki}=this.wNAF(zr);Ur=Kn.constTimeNegate(ur,Ur),Qi=Kn.constTimeNegate(kr,Qi),Qi=new qt($.mul(Qi.px,Vn.beta),Qi.py,Qi.pz),Qn=Ur.add(Qi),ir=Yi.add(ki)}else{const{p:ur,f:Pr}=this.wNAF(jn);Qn=ur,ir=Pr}return qt.normalizeZ([Qn,ir])[0]}multiplyAndAddUnsafe(kn,jn,Qn){const ir=qt.BASE,Vn=(Pr,kr)=>kr!==qs&&kr!==zo&&Pr.equals(ir)?Pr.multiply(kr):Pr.multiplyUnsafe(kr),ur=Vn(this,jn).add(Vn(kn,Qn));return ur.is0()?void 0:ur}toAffine(kn){const{px:jn,py:Qn,pz:ir}=this,Vn=this.is0();null==kn&&(kn=Vn?$.ONE:$.inv(ir));const ur=$.mul(jn,kn),Pr=$.mul(Qn,kn),kr=$.mul(ir,kn);if(Vn)return{x:$.ZERO,y:$.ZERO};if(!$.eql(kr,$.ONE))throw new Error("invZ was invalid");return{x:ur,y:Pr}}isTorsionFree(){const{h:kn,isTorsionFree:jn}=B;if(kn===zo)return!0;if(jn)return jn(qt,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:kn,clearCofactor:jn}=B;return kn===zo?this:jn?jn(qt,this):this.multiplyUnsafe(B.h)}toRawBytes(kn=!0){return this.assertValidity(),oe(qt,this,kn)}toHex(kn=!0){return xa(this.toRawBytes(kn))}}qt.BASE=new qt(B.Gx,B.Gy,$.ONE),qt.ZERO=new qt($.ZERO,$.ONE,$.ZERO);const Xn=B.nBitLength,Kn=function Fc(O,B){const $=(Ae,$e)=>{const gt=$e.negate();return Ae?gt:$e},oe=Ae=>({windows:Math.ceil(B/Ae)+1,windowSize:2**(Ae-1)});return{constTimeNegate:$,unsafeLadder(Ae,$e){let gt=O.ZERO,It=Ae;for(;$e>ua;)$e&Yl&&(gt=gt.add(It)),It=It.double(),$e>>=Yl;return gt},precomputeWindow(Ae,$e){const{windows:gt,windowSize:It}=oe($e),Wt=[];let ln=Ae,Tn=ln;for(let qt=0;qt>=Kn,jn>Wt&&(jn-=Xn,gt+=Yl);const Qn=kn,ir=kn+Math.abs(jn)-1,ur=jn<0;0===jn?Tn=Tn.add($(nr%2!=0,$e[Qn])):ln=ln.add($(ur,$e[ir]))}return{p:ln,f:Tn}},wNAFCached(Ae,$e,gt,It){const Wt=Ae._WINDOW_SIZE||1;let ln=$e.get(Ae);return ln||(ln=this.precomputeWindow(Ae,Wt),1!==Wt&&$e.set(Ae,It(ln))),this.wNAF(Wt,ln,gt)}}}(qt,B.endo?Math.ceil(Xn/2):Xn);return{CURVE:B,ProjectivePoint:qt,normPrivateKeyToScalar:Wt,weierstrassEquation:$e,isWithinCurveOrder:gt}}({...B,toBytes(vr,jr,Fi){const $i=jr.toAffine(),mo=$.toBytes($i.x),ps=Fr;return Fi?ps(Uint8Array.from([jr.hasEvenY()?2:3]),mo):ps(Uint8Array.from([4]),mo,$.toBytes($i.y))},fromBytes(vr){const jr=vr.length,Fi=vr[0],$i=vr.subarray(1);if(jr!==Ae||2!==Fi&&3!==Fi){if(jr===$e&&4===Fi)return{x:$.fromBytes($i.subarray(0,$.BYTES)),y:$.fromBytes($i.subarray($.BYTES,2*$.BYTES))};throw new Error(`Point of length ${jr} was invalid. Expected ${Ae} compressed bytes or ${$e} uncompressed bytes`)}{const mo=Ar($i);if(!function gt(vr){return qsxa(no(vr,B.nByteLength));function nr(vr){return vr>oe>>zo}const jn=(vr,jr,Fi)=>Ar(vr.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=B.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(!Xn(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!Xn(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+B.n:Fi;if(gs>=$.ORDER)throw new Error("recovery id 2 or 3 invalid");const lc=ln.fromHex((1&mo?"03":"02")+Kn(gs)),nl=Wt(gs),cc=It(-ps*nl),Vc=It($i*nl),uc=ln.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 Kn(this.r)+Kn(this.s)}}const ir={isValidPrivateKey(vr){try{return Tn(vr),!0}catch{return!1}},normPrivateKeyToScalar:Tn,randomPrivateKey:()=>{const jr=function cl(O,B,$=!1){const oe=(O=Po("privateHash",O)).length,Ae=Zs(B).nByteLength+8;if(Ae<24||oe1024)throw new Error(`hashToPrivateScalar: expected ${Ae}-1024 bytes of input, got ${oe}`);return Yr($?So(O):Ar(O),B-U)+U}(B.randomBytes($.BYTES+8),oe);return no(jr,B.nByteLength)},precompute:(vr=8,jr=ln.BASE)=>(jr._setWindowSize(vr),jr.multiply(BigInt(3)),jr)};function ur(vr){const jr=vr instanceof Uint8Array,Fi="string"==typeof vr,$i=(jr||Fi)&&vr.length;return jr?$i===Ae||$i===$e:Fi?$i===2*Ae||$i===2*$e:vr instanceof ln}const kr=B.bits2int||function(vr){const jr=Ar(vr),Fi=8*vr.length-B.nBitLength;return Fi>0?jr>>BigInt(Fi):jr},zr=B.bits2int_modN||function(vr){return It(kr(vr))},Ur=Va(B.nBitLength);function Yi(vr){if("bigint"!=typeof vr)throw new Error("bigint expected");if(!(qs<=vr&&vrdc in Fi))throw new Error("sign() legacy options not supported");const{hash:$i,randomBytes:mo}=B;let{lowS:ps,prehash:gs,extraEntropy:Ss}=Fi;null==ps&&(ps=!0),vr=Po("msgHash",vr),gs&&(vr=Po("prehashed msgHash",$i(vr)));const lc=zr(vr),nl=Tn(jr),cc=[Yi(nl),Yi(lc)];if(null!=Ss){const dc=!0===Ss?mo($.BYTES):Ss;cc.push(Po("extraEntropy",dc,$.BYTES))}const Vc=Fr(...cc),uc=lc;return{seed:Vc,k2sig:function xc(dc){const Hc=kr(dc);if(!Xn(Hc))return;const Wc=Wt(Hc),fa=ln.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),Zl=fl;return ps&&nr(fl)&&(Zl=function kn(vr){return nr(vr)?It(-vr):vr}(fl),cu^=1),new Qn(za,Zl,cu)}}}(vr,jr,Fi);return Di(B.hash.outputLen,B.nByteLength,B.hmac)($i,mo)},verify:function Ds(vr,jr,Fi,$i=Zi){const mo=vr;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=ln.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=B.hash(jr));const{r:nl,s:cc}=Ss,Vc=zr(jr),uc=Wt(cc),xc=It(Vc*uc),dc=It(nl*uc),Hc=ln.BASE.multiplyAndAddUnsafe(lc,xc,dc)?.toAffine();return!!Hc&&It(Hc.x)===nl},ProjectivePoint:ln,Signature:Qn,utils:ir}}BigInt(4);class bc extends El{constructor(B,$){super(),this.finished=!1,this.destroyed=!1,ce.hash(B);const oe=Lo($);if(this.iHash=B.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,$e=new Uint8Array(Ae);$e.set(oe.length>Ae?B.create().update(oe).digest():oe);for(let gt=0;gt<$e.length;gt++)$e[gt]^=54;this.iHash.update($e),this.oHash=B.create();for(let gt=0;gt<$e.length;gt++)$e[gt]^=106;this.oHash.update($e),$e.fill(0)}update(B){return ce.exists(this),this.iHash.update(B),this}digestInto(B){ce.exists(this),ce.bytes(B,this.outputLen),this.finished=!0,this.iHash.digestInto(B),this.oHash.update(B),this.oHash.digestInto(B),this.destroy()}digest(){const B=new Uint8Array(this.oHash.outputLen);return this.digestInto(B),B}_cloneInto(B){B||(B=Object.create(Object.getPrototypeOf(this),{}));const{oHash:$,iHash:oe,finished:Ae,destroyed:$e,blockLen:gt,outputLen:It}=this;return B.finished=Ae,B.destroyed=$e,B.blockLen=gt,B.outputLen=It,B.oHash=$._cloneInto(B.oHash),B.iHash=oe._cloneInto(B.iHash),B}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const su=(O,B,$)=>new bc(O,B).update($).digest();function Xi(O){return{hash:O,hmac:(B,...$)=>su(O,B,function Za(...O){const B=new Uint8Array(O.reduce((oe,Ae)=>oe+Ae.length,0));let $=0;return O.forEach(oe=>{if(!Pe(oe))throw new Error("Uint8Array expected");B.set(oe,$),$+=oe.length}),B}(...$)),randomBytes:rc}}su.create=(O,B)=>new bc(O,B);const Tr=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),xs=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),$c=BigInt(1),N=BigInt(2),K=(O,B)=>(O+B/N)/B;const X=function Da(O,B,$=!1,oe={}){if(O<=No)throw new Error(`Expected Fp ORDER > 0, got ${O}`);const{nBitLength:Ae,nByteLength:$e}=Zs(O,B);if($e>2048)throw new Error("Field lengths over 2048 bytes are not supported");const gt=function di(O){if(O%ve===q){const B=(O+U)/ve;return function(oe,Ae){const $e=oe.pow(Ae,B);if(!oe.eql(oe.sqr($e),Ae))throw new Error("Cannot find square root");return $e}}if(O%bn===rt){const B=(O-rt)/bn;return function(oe,Ae){const $e=oe.mul(Ae,de),gt=oe.pow($e,B),It=oe.mul(Ae,gt),Wt=oe.mul(oe.mul(It,de),gt),ln=oe.mul(It,oe.sub(Wt,oe.ONE));if(!oe.eql(oe.sqr(ln),Ae))throw new Error("Cannot find square root");return ln}}return function Qr(O){const B=(O-U)/de;let $,oe,Ae;for($=O-U,oe=0;$%de===No;$/=de,oe++);for(Ae=de;AeYr(Wt,O),isValid:Wt=>{if("bigint"!=typeof Wt)throw new Error("Invalid field element: expected bigint, got "+typeof Wt);return No<=Wt&&WtWt===No,isOdd:Wt=>(Wt&U)===U,neg:Wt=>Yr(-Wt,O),eql:(Wt,ln)=>Wt===ln,sqr:Wt=>Yr(Wt*Wt,O),add:(Wt,ln)=>Yr(Wt+ln,O),sub:(Wt,ln)=>Yr(Wt-ln,O),mul:(Wt,ln)=>Yr(Wt*ln,O),pow:(Wt,ln)=>function jo(O,B,$){if($ 0");if($===No)return O.ONE;if($===U)return B;let oe=O.ONE,Ae=B;for(;$>No;)$&U&&(oe=O.mul(oe,Ae)),Ae=O.sqr(Ae),$>>=U;return oe}(It,Wt,ln),div:(Wt,ln)=>Yr(Wt*xi(ln,O),O),sqrN:Wt=>Wt*Wt,addN:(Wt,ln)=>Wt+ln,subN:(Wt,ln)=>Wt-ln,mulN:(Wt,ln)=>Wt*ln,inv:Wt=>xi(Wt,O),sqrt:oe.sqrt||(Wt=>gt(It,Wt)),invertBatch:Wt=>function Rs(O,B){const $=new Array(B.length),oe=B.reduce(($e,gt,It)=>O.is0(gt)?$e:($[It]=$e,O.mul($e,gt)),O.ONE),Ae=O.inv(oe);return B.reduceRight(($e,gt,It)=>O.is0(gt)?$e:($[It]=O.mul($e,$[It]),O.mul($e,gt)),Ae),$}(It,Wt),cmov:(Wt,ln,Tn)=>Tn?ln:Wt,toBytes:Wt=>$?$o(Wt,$e):no(Wt,$e),fromBytes:Wt=>{if(Wt.length!==$e)throw new Error(`Fp.fromBytes: expected ${$e}, got ${Wt.length}`);return $?So(Wt):Ar(Wt)}});return Object.freeze(It)}(Tr,void 0,void 0,{sqrt:function P(O){const B=Tr,$=BigInt(3),oe=BigInt(6),Ae=BigInt(11),$e=BigInt(22),gt=BigInt(23),It=BigInt(44),Wt=BigInt(88),ln=O*O*O%B,Tn=ln*ln*O%B,qt=Hr(Tn,$,B)*Tn%B,Xn=Hr(qt,$,B)*Tn%B,Kn=Hr(Xn,N,B)*ln%B,nr=Hr(Kn,Ae,B)*Kn%B,kn=Hr(nr,$e,B)*nr%B,jn=Hr(kn,It,B)*kn%B,Qn=Hr(jn,Wt,B)*jn%B,ir=Hr(Qn,It,B)*kn%B,Vn=Hr(ir,$,B)*Tn%B,ur=Hr(Vn,gt,B)*nr%B,Pr=Hr(ur,oe,B)*ln%B,kr=Hr(Pr,N,B);if(!X.eql(X.sqr(kr),O))throw new Error("Cannot find square root");return kr}}),he=function Pu(O,B){const $=oe=>dd({...O,...Xi(oe)});return Object.freeze({...$(B),create:$})}({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:O=>{const B=xs,$=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),oe=-$c*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),Ae=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),$e=$,gt=BigInt("0x100000000000000000000000000000000"),It=K($e*O,B),Wt=K(-oe*O,B);let ln=Yr(O-It*$-Wt*Ae,B),Tn=Yr(-It*oe-Wt*$e,B);const qt=ln>gt,Xn=Tn>gt;if(qt&&(ln=B-ln),Xn&&(Tn=B-Tn),ln>gt||Tn>gt)throw new Error("splitScalar: Endomorphism failed, k="+O);return{k1neg:qt,k1:ln,k2neg:Xn,k2:Tn}}}},Jo);BigInt(0);const au=he.ProjectivePoint,Fu=(0,or.Tq)(ga);function hd(O){return BigInt(`0x${function tt(O){if(!Mo(O))throw new Error("Uint8Array expected");let B="";for(let $=0;${if(!Number.isSafeInteger(O)||O<0||O>2**32-1)throw new Error(`Invalid number=${O}. Should be from 0 to 2 ** 32 - 1`);const B=new Uint8Array(4);return et(B).setUint32(0,O,!1),B};class fs{get fingerprint(){if(!this.pubHash)throw new Error("No publicKey set!");return et(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 B=this.privateKey;if(!B)throw new Error("No private key");return Fu.encode(this.serialize(this.versions.private,Un(new Uint8Array([0]),B)))}get publicExtendedKey(){if(!this.pubKey)throw new Error("No public key");return Fu.encode(this.serialize(this.versions.public,this.pubKey))}static fromMasterSeed(B,$=Bu){if(so(B),8*B.length<128||8*B.length>512)throw new Error(`HDKey: wrong seed length=${B.length}. Should be between 128 and 512 bits; 256 bits is advised)`);const oe=_o(Dr,gi,B);return new fs({versions:$,chainCode:oe.slice(32),privateKey:oe.slice(0,32)})}static fromExtendedKey(B,$=Bu){const oe=Fu.decode(B),Ae=et(oe),$e=Ae.getUint32(0,!1),gt={versions:$,depth:oe[4],parentFingerprint:Ae.getUint32(5,!1),index:Ae.getUint32(9,!1),chainCode:oe.slice(13,45)},It=oe.slice(45),Wt=0===It[0];if($e!==$[Wt?"private":"public"])throw new Error("Version mismatch");return new fs(Wt?{...gt,privateKey:It.slice(1)}:{...gt,publicKey:It})}static fromJSON(B){return fs.fromExtendedKey(B.xpriv)}constructor(B){if(this.depth=0,this.index=0,this.chainCode=null,this.parentFingerprint=0,!B||"object"!=typeof B)throw new Error("HDKey.constructor must not be called directly");if(this.versions=B.versions||Bu,this.depth=B.depth||0,this.chainCode=B.chainCode,this.index=B.index||0,this.parentFingerprint=B.parentFingerprint||0,!this.depth&&(this.parentFingerprint||this.index))throw new Error("HDKey: zero depth with non-zero index/parent fingerprint");if(B.publicKey&&B.privateKey)throw new Error("HDKey: publicKey and privateKey at same time.");if(B.privateKey){if(!he.utils.isValidPrivateKey(B.privateKey))throw new Error("Invalid private key");this.privKey="bigint"==typeof B.privateKey?B.privateKey:hd(B.privateKey),this.privKeyBytes=function xn(O){return function Vt(O){if("string"!=typeof O)throw new Error("hex string expected, got "+typeof O);const B=O.length,$=B/2;if(B%2)throw new Error("padded hex string expected, got unpadded hex of length "+B);const oe=new Uint8Array($);for(let Ae=0,$e=0;Ae<$;Ae++,$e+=2){const gt=ht(O.charCodeAt($e)),It=ht(O.charCodeAt($e+1));if(void 0===gt||void 0===It)throw new Error('hex string expected, got non-hex character "'+(O[$e]+O[$e+1])+'" at index '+$e);oe[Ae]=16*gt+It}return oe}(O.toString(16).padStart(64,"0"))}(this.privKey),this.pubKey=he.getPublicKey(B.privateKey,!0)}else{if(!B.publicKey)throw new Error("HDKey: no public or private key provided");this.pubKey=au.fromHex(B.publicKey).toRawBytes(!0)}this.pubHash=ns(ga(this.pubKey))}derive(B){if(!/^[mM]'?/.test(B))throw new Error('Path must start with "m" or "M"');if(/^[mM]'?$/.test(B))return this;const $=B.replace(/^[mM]'?\//,"").split("/");let oe=this;for(const Ae of $){const $e=/^(\d+)('?)$/.exec(Ae);if(!$e||3!==$e.length)throw new Error(`Invalid child index: ${Ae}`);let gt=+$e[1];if(!Number.isSafeInteger(gt)||gt>=lu)throw new Error("Invalid index");"'"===$e[2]&&(gt+=lu),oe=oe.deriveChild(gt)}return oe}deriveChild(B){if(!this.pubKey||!this.chainCode)throw new Error("No publicKey or chainCode set");let $=kl(B);if(B>=lu){const It=this.privateKey;if(!It)throw new Error("Could not derive hardened child key");$=Un(new Uint8Array([0]),It,$)}else $=Un(this.pubKey,$);const oe=_o(Dr,this.chainCode,$),Ae=hd(oe.slice(0,32)),$e=oe.slice(32);if(!he.utils.isValidPrivateKey(Ae))throw new Error("Tweak bigger than curve order");const gt={versions:this.versions,chainCode:$e,depth:this.depth+1,parentFingerprint:this.fingerprint,index:B};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(B+1)}}sign(B){if(!this.privateKey)throw new Error("No privateKey set!");return so(B,32),he.sign(B,this.privKey).toCompactRawBytes()}verify(B,$){if(so(B,32),so($,64),!this.publicKey)throw new Error("No publicKey set!");let oe;try{oe=he.Signature.fromCompact($)}catch{return!1}return he.verify(oe,B,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(B,$){if(!this.chainCode)throw new Error("No chainCode set");return so($,33),Un(kl(B),new Uint8Array([this.depth]),kl(this.parentFingerprint),kl(this.index),this.chainCode,$)}}var ea=r(3107);let js=(()=>{class O{constructor(){this.encoder=new TextEncoder,this.decoder=new TextDecoder}getPasswordKey($){var oe=this;return(0,a.A)(function*(){return window.crypto.subtle.importKey("raw",oe.encoder.encode($),"PBKDF2",!1,["deriveKey"])})()}deriveKey($,oe,Ae){return(0,a.A)(function*(){return window.crypto.subtle.deriveKey({name:"PBKDF2",salt:oe,iterations:25e4,hash:"SHA-256"},$,{name:"AES-GCM",length:256},!1,Ae)})()}encryptData($,oe){var Ae=this;return(0,a.A)(function*(){try{const $e=window.crypto.getRandomValues(new Uint8Array(16)),gt=window.crypto.getRandomValues(new Uint8Array(12)),It=yield Ae.getPasswordKey(oe),Wt=yield Ae.deriveKey(It,$e,["encrypt"]),ln=new Uint8Array(yield window.crypto.subtle.encrypt({name:"AES-GCM",iv:gt},Wt,Ae.encoder.encode($))),Tn=new Uint8Array($e.length+gt.length+ln.length);return Tn.set($e,0),Tn.set(gt,$e.length),Tn.set(ln,$e.length+gt.length),or.K3.encode(Tn)}catch($e){throw console.error("Encryption failed:",$e),new Error("Failed to encrypt data.")}})()}decryptData($,oe){var Ae=this;return(0,a.A)(function*(){try{const $e=or.K3.decode($),gt=$e.slice(0,16),It=$e.slice(16,28),Wt=$e.slice(28),ln=yield Ae.getPasswordKey(oe),Tn=yield Ae.deriveKey(ln,gt,["decrypt"]),qt=yield window.crypto.subtle.decrypt({name:"AES-GCM",iv:It},Tn,Wt);return Ae.decoder.decode(qt)}catch($e){throw console.error("Decryption failed:",$e),new Error("Failed to decrypt data.")}})()}static{this.\u0275fac=function(oe){return new(oe||O)}}static{this.\u0275prov=ea.jDH({token:O,factory:O.\u0275fac,providedIn:"root"})}}return O})();var Il=r(7544),$u=r(4482);let Wa=(()=>{class O{constructor($,oe,Ae){this.securityService=$,this.dialog=oe,this._nostrLoginService=Ae,this.localStorageSecretKeyName="secretKey",this.localStoragePublicKeyName="publicKey",this.localStorageNpubName="npub",this.localStorageNsecName="nsec",this.storageKey="userPassword"}savePassword($,oe){const Ae=Date.now()+60*oe*1e3;sessionStorage.setItem(this.storageKey,JSON.stringify({password:$,expirationTime:Ae}))}getPassword(){const $=sessionStorage.getItem(this.storageKey);if(!$)return null;const{password:oe,expirationTime:Ae}=JSON.parse($);return Date.now()>Ae?(this.clearPassword(),null):oe}clearPassword(){sessionStorage.removeItem(this.storageKey)}changePassword($,oe,Ae){var $e=this;return(0,a.A)(function*(){try{const gt=yield $e.getSecretKey($);if(!gt)throw new Error("Incorrect current password.");yield $e.setSecretKey(gt,oe);const It=yield $e.getNsec($);return It&&(yield $e.setNsec(It,oe)),$e.clearPassword(),Ae&&$e.savePassword(oe,60),!0}catch(gt){return console.error("Failed to change password: ",gt),!1}})()}getUsername($){return $.startsWith("npub")&&($=C.Qe.decode($).data.toString()),`@${localStorage.getItem(`${$}`)||C.Qe.npubEncode($)}`}npub(){let $=this.getPublicKey();return C.Qe.npubEncode($)}requestPassword(){var $=this;return(0,a.A)(function*(){return $.dialog.open(y.b,{width:"300px",disableClose:!0}).afterClosed().toPromise()})()}nsec($){var oe=this;return(0,a.A)(function*(){if(oe.usingSecretKey()){let Ae=yield oe.getSecretKey($);const $e=Uint8Array.from(w.hp.from(Ae,"hex"));return C.Qe.nsecEncode($e)}return""})()}pubkey($){return C.Qe.decode($).data.toString()}setPublicKey($){const oe=C.Qe.npubEncode($);window.localStorage.setItem(this.localStoragePublicKeyName,$),window.localStorage.setItem(this.localStorageNpubName,oe)}getPublicKey(){const $=localStorage.getItem("__nostrlogin_nip46");if($)try{return JSON.parse($).pubkey||""}catch(oe){console.error("Error parsing nostr login data:",oe)}return localStorage.getItem(this.localStoragePublicKeyName)||""}setNpub($){localStorage.setItem(this.localStorageNpubName,$)}getNpub(){return window.localStorage.getItem(this.localStorageNpubName)||""}setSecretKey($,oe=""){var Ae=this;return(0,a.A)(function*(){if(""===oe)localStorage.setItem(Ae.localStorageSecretKeyName,$),localStorage.setItem("usePassword","false");else{const $e=yield Ae.securityService.encryptData($,oe);localStorage.setItem(Ae.localStorageSecretKeyName,$e),localStorage.setItem("usePassword","true")}})()}getSecretKey($=""){var oe=this;return(0,a.A)(function*(){const Ae=localStorage.getItem(oe.localStorageSecretKeyName),$e="true"===localStorage.getItem("usePassword");return Ae?$e?yield oe.securityService.decryptData(Ae,$):Ae:null})()}getDecryptedSecretKey(){var $=this;return(0,a.A)(function*(){try{if("true"!==localStorage.getItem("usePassword"))return $.getSecretKey();const Ae=$.getPassword();if(Ae)return yield $.getSecretKey(Ae);const $e=yield $.requestPassword();if($e?.password){const gt=yield $.getSecretKey($e.password);return 0!==$e.duration&&$.savePassword($e.password,$e.duration),gt}return console.error("Password not provided"),null}catch(oe){return console.error("Error decrypting private key:",oe),null}})()}setNsec($,oe=""){var Ae=this;return(0,a.A)(function*(){if(""===oe)localStorage.setItem(Ae.localStorageNsecName,$),localStorage.setItem("usePassword","false");else{const $e=yield Ae.securityService.encryptData($,oe);localStorage.setItem(Ae.localStorageNsecName,$e),localStorage.setItem("usePassword","true")}})()}getNsec($=""){var oe=this;return(0,a.A)(function*(){const Ae=localStorage.getItem(oe.localStorageNsecName),$e="true"===localStorage.getItem("usePassword");return Ae?$e?yield oe.securityService.decryptData(Ae,$):Ae:null})()}setPublicKeyFromExtension($){this.setPublicKey($)}handleLoginWithKey($,oe=""){let Ae,$e,gt,It;try{if($.startsWith(this.localStorageNsecName)){const ln=C.Qe.decode($);if(ln.type!==this.localStorageNsecName)throw new Error("Invalid nsec key.");Ae=w.hp.from(ln.data).toString("hex")}else{if(!/^[0-9a-fA-F]{64}$/.test($))throw new Error("Invalid key format. Must be either nsec or hex.");Ae=$}const Wt=new Uint8Array(w.hp.from(Ae,"hex"));return $e=(0,C.lG)(Wt),It=C.Qe.npubEncode($e),gt=C.Qe.nsecEncode(Wt),this.setSecretKey(Ae,oe),this.setNsec(It,oe),this.setPublicKey($e),this.setNpub(It),!0}catch(Wt){return console.error("Error during key handling: ",Wt),!1}}handleLoginWithMnemonic($,oe="",Ae=""){try{const gt=function jc(O,B,$=0){let Ae=fs.fromMasterSeed(Oi(O,B)).derive(`m/44'/1237'/${$}'/0/0`).privateKey;if(!Ae)throw new Error("could not derive private key");return Ae}($,oe,0),It=(0,c.My)(gt),Wt=(0,C.lG)(gt),ln=C.Qe.npubEncode(Wt),Tn=C.Qe.nsecEncode(gt);return this.setSecretKey(It,Ae),this.setNsec(Tn,Ae),this.setPublicKey(Wt),this.setNpub(ln),window.localStorage.setItem(this.localStorageNsecName,Tn),!0}catch($e){return console.error("Error during login with mnemonic:",$e),!1}}logout(){window.localStorage.removeItem(this.localStorageSecretKeyName),window.localStorage.removeItem(this.localStoragePublicKeyName),window.localStorage.removeItem(this.localStorageNpubName),window.localStorage.removeItem(this.localStorageNsecName),this._nostrLoginService.logout()}usingNostrBrowserExtension(){return!this.usingSecretKey()&&!!globalThis.nostr}usingSecretKey(){return!!localStorage.getItem(this.localStorageSecretKeyName)}generateAndStoreKeys($=""){try{const oe=(0,C.Bq)(),Ae=w.hp.from(oe).toString("hex"),$e=(0,C.lG)(oe),gt=C.Qe.npubEncode($e),It=C.Qe.nsecEncode(oe);return this.setSecretKey(Ae,$),this.setNsec(It,$),this.setPublicKey($e),this.setNpub(gt),{secretKey:Ae,pubkey:$e,npub:gt,nsec:It}}catch(oe){return console.error("Error during key generation:",oe),null}}handleLoginWithExtension(){var $=this;return(0,a.A)(function*(){const oe=globalThis;if(!oe.nostr)return!1;try{const Ae=yield oe.nostr.getPublicKey();if(!Ae)throw new Error("Public key not available from Nostr extension.");return $.setPublicKeyFromExtension(Ae),!0}catch(Ae){return console.error("Failed to connect to Nostr extension:",Ae),!1}})()}encryptMessage($,oe,Ae){return(0,a.A)(function*(){console.log(Ae);try{return yield C.sh.encrypt($,oe,Ae)}catch($e){throw console.error("Error encrypting message:",$e),$e}})()}encryptMessageWithExtension($,oe){return(0,a.A)(function*(){return yield globalThis.nostr.nip04.encrypt(oe,$)})()}decryptMessageWithExtension($,oe){return(0,a.A)(function*(){const Ae=globalThis;if(Ae.nostr&&"function"==typeof Ae.nostr.nip04?.decrypt)try{return yield Ae.nostr.nip04.decrypt($,oe)}catch($e){return console.error("Decryption failed:",$e),"*Failed to decrypt content: "+$e.message+"*"}return console.warn("Nostr extension or decrypt method is unavailable"),"Attempted Nostr Window decryption and failed."})()}decryptMessage($,oe,Ae){return(0,a.A)(function*(){try{if(!$||!oe||!Ae)throw new Error("Private key, public key, or encrypted message is missing or undefined.");const $e=yield C.sh.decrypt($,oe,Ae);if(!$e)throw new Error("Decryption returned an empty message.");return $e}catch($e){throw $e}})()}getUnsignedEvent($,oe,Ae){return{kind:$,pubkey:this.getPublicKey(),tags:oe,content:Ae,created_at:Math.floor(Date.now()/1e3)}}getSignedEvent($,oe){const Ae=(0,c.aT)(oe);return(0,C.pC)($,Ae)}getMuteList(){return(localStorage.getItem("muteList")||"").split(",")}setMuteListFromTags($){let oe=[];$.forEach(Ae=>{oe.push(Ae[1])}),this.setMuteList(oe)}setMuteList($){if(0===$.length)localStorage.setItem("muteList","");else{let oe=Array.from(new Set($));localStorage.setItem("muteList",oe.filter(Ae=>Ae).join(","))}}signEventWithExtension($){return(0,a.A)(function*(){const oe=globalThis;if(oe.nostr)return yield oe.nostr.signEvent($);throw new Error("Tried to sign event with extension but failed")})()}signDMWithExtension($,oe){return(0,a.A)(function*(){const Ae=globalThis;if(Ae.nostr&&Ae.nostr.nip04?.encrypt)return yield Ae.nostr.nip04.encrypt($,oe);throw new Error("Failed to Sign with extension")})()}isUsingExtension(){var $=this;return(0,a.A)(function*(){const oe=globalThis;if(oe.nostr&&oe.nostr.getPublicKey)try{return!localStorage.getItem($.localStorageSecretKeyName)}catch(Ae){return console.error("Failed to check Nostr extension:",Ae),!1}return!1})()}isUsingSecretKey(){return!!localStorage.getItem(this.localStorageSecretKeyName)}getNpubFromPubkey($){try{return C.Qe.npubEncode($)}catch(oe){return console.error("Error converting hex to npub:",oe),""}}getNsecFromSeckey($){try{const oe=Uint8Array.from(w.hp.from($,"hex"));return C.Qe.nsecEncode(oe)}catch(oe){return console.error("Error converting hex to nsec:",oe),""}}getHexFromNpub($){try{const oe=C.Qe.decode($);if("npub"!==oe.type)throw new Error("Invalid npub format.");return oe.data.toString()}catch(oe){return console.error("Error converting npub to hex:",oe),""}}processKey($){try{if($.startsWith("npub")){const oe=this.getHexFromNpub($);if(!oe)throw new Error("Failed to convert npub to hex.");return oe}if(/^[0-9a-fA-F]{64}$/.test($))return $;throw new Error("Invalid key format. Must be either hex or npub.")}catch(oe){return console.error("Error processing key:",oe),""}}static{this.\u0275fac=function(oe){return new(oe||O)(ea.KVO(js),ea.KVO(Il.bZ),ea.KVO($u.v))}}static{this.\u0275prov=ea.jDH({token:O,factory:O.\u0275fac,providedIn:"root"})}}return O})()},6433:(o,s,r)=>{"use strict";r.d(s,{d:()=>C});var i=r(3014),a=r(3797),c=r(3107),y=r(5506),w=r(3149);let C=(()=>{class A{constructor(T,k){this.subscriptionService=T,this.storageService=k,this.isProfileLoaded=!1}loadUserProfile(T){var k=this;return(0,i.A)(function*(){k.isProfileLoaded||(yield k.subscribeToUserProfile(T),yield k.subscribeToUserChats(T),yield k.subscribeToUserPosts(T),yield k.subscribeToMyLikes(T),k.isProfileLoaded=!0)})()}subscribeToUserProfile(T){var k=this;return(0,i.A)(function*(){const R=yield k.storageService.getLastUpdateDate("users"),G={kinds:[0],authors:[T],limit:1};R&&(G.since=parseInt(R,10)),k.subscriptionService.addSubscriptions([G],Z=>{const te=k.parseMetadataEvent(Z);k.storageService.saveProfile(T,te)})})()}subscribeToUserChats(T){var k=this;return(0,i.A)(function*(){const R=yield k.storageService.getLastUpdateDate("chats"),G=[{kinds:[a.rV],authors:[T],limit:300},{kinds:[a.rV],"#p":[T],limit:300}];if(R){const Z=parseInt(R,10);G.forEach(te=>te.since=Z)}else k.storageService.removeAllChats();k.subscriptionService.addSubscriptions(G,Z=>{const te=k.parseChatEvent(Z);k.storageService.saveChatEvent(te)})})()}subscribeToUserPosts(T){var k=this;return(0,i.A)(function*(){const R=yield k.storageService.getLastUpdateDate("posts"),G={kinds:[a.av],authors:[T]};R&&(G.since=parseInt(R,10)),k.subscriptionService.addSubscriptions([G],Z=>{k.isReply(Z)||k.storageService.savePost(Z)})})()}isReply(T){return T.tags.filter(R=>"e"===R[0]||"p"===R[0]).length>0}subscribeToMyLikes(T){var k=this;return(0,i.A)(function*(){const R=yield k.storageService.getLastUpdateDate("myLikes"),G={kinds:[a.qT],authors:[T]};R&&(G.since=parseInt(R,10)),k.subscriptionService.addSubscriptions([G],Z=>{k.storageService.saveLike(Z)})})()}parseMetadataEvent(T){try{return JSON.parse(T.content)}catch(k){return console.error("Error parsing metadata event:",k),null}}parseChatEvent(T){try{const k=T.content.split("?iv=");return{id:T.id,kind:T.kind,pubkey:T.pubkey,created_at:T.created_at,tags:T.tags,content:k[0],iv:k[1],IsRead:!1}}catch(k){return console.error("Error parsing chat event:",k),null}}static{this.\u0275fac=function(k){return new(k||A)(c.KVO(y.n),c.KVO(w.n))}}static{this.\u0275prov=c.jDH({token:A,factory:A.\u0275fac,providedIn:"root"})}}return A})()},3149:(o,s,r)=>{"use strict";r.d(s,{n:()=>C});var i=r(3014),a=r(230),c=r.n(a),y=r(1217),w=r(3107);let C=(()=>{class A{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(T){return c().createInstance({driver:c().INDEXEDDB,name:"angor-hub",version:1,storeName:T})}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(T){var k=this;return(0,i.A)(function*(){try{const R=`${T.projectIdentifier}-${T.investorPublicKey}`;yield k.investorsStore.setItem(R,T);const Z=[...k.investorsSubject.value.filter(te=>te.projectIdentifier!==T.projectIdentifier||te.investorPublicKey!==T.investorPublicKey),T];k.investorsSubject.next(Z),console.log("Investor saved successfully:",T)}catch(R){console.error("Error saving investor:",R)}})()}getInvestor(T,k){var R=this;return(0,i.A)(function*(){try{const G=`${T}-${k}`;return(yield R.investorsStore.getItem(G))||null}catch(G){return console.error("Error retrieving investor:",G),null}})()}getAllInvestors(){var T=this;return(0,i.A)(function*(){try{const k=[];return yield T.investorsStore.iterate(R=>{k.push(R)}),console.log("Retrieved all investors:",k),k}catch(k){return console.error("Error retrieving all investors:",k),[]}})()}saveProjectDetails(T){var k=this;return(0,i.A)(function*(){try{const R=T.projectIdentifier;yield k.projectDetailsStore.setItem(R,T);const Z=[...k.projectDetailsSubject.value.filter(te=>te.projectIdentifier!==T.projectIdentifier),T];k.projectDetailsSubject.next(Z),console.log("Project details saved successfully:",T)}catch(R){console.error("Error saving project details:",R)}})()}getProjectDetails(T){var k=this;return(0,i.A)(function*(){try{return(yield k.projectDetailsStore.getItem(T))||null}catch(R){return console.error("Error retrieving project details:",R),null}})()}getAllProjectDetails(){var T=this;return(0,i.A)(function*(){try{const k=[];return yield T.projectDetailsStore.iterate(R=>{k.push(R)}),console.log("Retrieved all project details:",k),k}catch(k){return console.error("Error retrieving all project details:",k),[]}})()}saveContacts(T,k){var R=this;return(0,i.A)(function*(){try{const G=[];for(const Z of k){const te=`${T}:${Z.id}`;yield R.contactsStore.setItem(te,Z),G.push(Z)}R.contactsSubject.next({pubKey:T,contacts:G}),yield R.calculateAndStoreAllContactStats(),yield R.setUpdateHistory("contacts")}catch(G){console.error("Error saving contacts:",G)}})()}calculateAndStoreAllContactStats(){var T=this;return(0,i.A)(function*(){try{const k={};yield T.contactsStore.iterate((R,G)=>{const[Z]=G.split(":");k[Z]||(k[Z]={totalContacts:0,followersCount:0,followingCount:0}),k[Z].totalContacts++,R.isFollower?k[Z].followersCount++:k[Z].followingCount++});for(const R in k)T.contactStatsMap[R]||(T.contactStatsMap[R]=new y.t({pubKey:R,totalContacts:0,followersCount:0,followingCount:0})),T.contactStatsMap[R].next({pubKey:R,totalContacts:k[R].totalContacts,followersCount:k[R].followersCount,followingCount:k[R].followingCount})}catch(k){console.error("Error calculating and storing contact stats:",k)}})()}getContactStats$(T){return this.contactStatsMap[T]||(this.contactStatsMap[T]=new y.t({pubKey:T,totalContacts:0,followersCount:0,followingCount:0}),this.calculateAndStoreAllContactStats()),this.contactStatsMap[T].asObservable()}getAllContactsPaginated(T,k,R){var G=this;return(0,i.A)(function*(){try{const Z=[];yield G.contactsStore.iterate((pe,Te)=>{const[Ce]=Te.split(":");Ce===T&&Z.push(pe)});const te=Z.length,be=(k-1)*R;return{contacts:Z.slice(be,be+R),totalCount:te}}catch(Z){return console.error("Error retrieving paginated contacts for pubKey:",Z),{contacts:[],totalCount:0}}})()}getAllContacts(T=""){var k=this;return(0,i.A)(function*(){try{const R=[];return yield k.contactsStore.iterate((G,Z)=>{const[te,be]=Z.split(":");(""===T||te===T)&&R.push({pubKey:te,contact:G})}),R}catch(R){return console.error("Error retrieving contacts:",R),[]}})()}getContactStats(T){var k=this;return(0,i.A)(function*(){try{let R=0,G=0,Z=0;return yield k.contactsStore.iterate((te,be)=>{const[_e,pe]=be.split(":");_e===T&&(R++,te.isFollower?G++:Z++)}),{totalContacts:R,followersCount:G,followingCount:Z}}catch(R){return console.error("Error retrieving contact stats for pubKey:",R),{totalContacts:0,followersCount:0,followingCount:0}}})()}removeAllContacts(T){var k=this;return(0,i.A)(function*(){try{const R=[];yield k.contactsStore.iterate((G,Z)=>{const[te]=Z.split(":");te===T&&R.push(Z)});for(const G of R)yield k.contactsStore.removeItem(G);yield k.contactsStore.clear(),k.contactStatsSubject.next({totalContacts:0,followersCount:0,followingCount:0}),k.contactsSubject.next({pubKey:T,contacts:[]}),yield k.setUpdateHistory("contacts")}catch(R){console.error("Error removing all contacts for pubKey:",R)}})()}saveProfile(T,k){var R=this;return(0,i.A)(function*(){try{if(!T||!k)return void console.error("Invalid pubKey or metadata:",T,k);k.pubKey=T,yield R.profileStore.setItem(T,k),R.profileSubject.next({pubKey:T,metadata:k}),yield R.setUpdateHistory("profiles")}catch(G){console.error("Error saving profile",G)}})()}getProfile(T){var k=this;return(0,i.A)(function*(){try{return(yield k.profileStore.getItem(T))||null}catch(R){return console.error("Error retrieving profile metadata:",R),null}})()}getAllProfiles(){var T=this;return(0,i.A)(function*(){try{const k=[];return yield T.profileStore.iterate(R=>{k.push(R)}),k}catch(k){return console.error("Error retrieving all Profile:",k),[]}})()}searchProfile(T){var k=this;return(0,i.A)(function*(){try{const R=[],G=T.toLowerCase();return yield k.profileStore.iterate((Z,te)=>{JSON.stringify(Z).toLowerCase().includes(G)&&R.push({pubKey:te,profile:Z})}),R}catch(R){return console.error("Error searching profiles by metadata:",R),[]}})()}getLastUpdateDate(T){var k=this;return(0,i.A)(function*(){try{return(yield k.updateHistoryStore.getItem(T))||null}catch(R){return console.error("Error retrieving last update date:",R),null}})()}saveProject(T){var k=this;return(0,i.A)(function*(){try{yield k.projectsStore.setItem(T.projectIdentifier,T);const R=yield k.getAllProjects();k.projectsSubject.next(R),yield k.setUpdateHistory("projects")}catch(R){console.error("Error saving project:",R)}})()}getProjectsByNostrPubKeys(T){var k=this;return(0,i.A)(function*(){if(!T||0===T.length)return[];const R=[],G=yield k.projectDetailsStore.keys();for(const Z of G){const te=yield k.projectDetailsStore.getItem(Z);te&&T.includes(te.nostrPubKey)&&R.push(te)}return R})()}getAllProjects(){var T=this;return(0,i.A)(function*(){try{const k=[];return yield T.projectsStore.iterate(R=>{k.push(R)}),k}catch(k){return console.error("Error retrieving all projects:",k),[]}})()}getProjectStats(T){var k=this;return(0,i.A)(function*(){try{return(yield k.projectStatsStore.getItem(T))||null}catch(R){return console.error("Error retrieving project stats:",R),null}})()}saveProjectStats(T,k){var R=this;return(0,i.A)(function*(){try{yield R.projectStatsStore.setItem(T,k);const G=yield R.getAllProjectStats();R.projectStatsSubject.next(G),yield R.setUpdateHistory("projectStats")}catch(G){console.error("Error saving project stats:",G)}})()}getAllProjectStats(){var T=this;return(0,i.A)(function*(){try{const k={};return yield T.projectStatsStore.iterate((R,G)=>{k[G]=R}),k}catch(k){return console.error("Error retrieving all project stats:",k),{}}})()}savePost(T){var k=this;return(0,i.A)(function*(){try{yield k.postsStore.setItem(T.id,T),yield k.setUpdateHistory("posts"),k.postsSubject.next(T)}catch(R){console.error("Error saving event type 1 and sending it to clients:",R)}})()}getPostsByPubKey(T){var k=this;return(0,i.A)(function*(){try{const R=[];return yield k.postsStore.iterate(G=>{G.pubkey===T&&1===G.kind&&R.push(G)}),R.sort((G,Z)=>Z.createdAt-G.createdAt)}catch(R){return console.error("Error retrieving events for pubKey:",R),[]}})()}getPostById(T){var k=this;return(0,i.A)(function*(){try{let R=null;return yield k.postsStore.iterate(G=>{if(G.id===T&&1===G.kind)return R=G,R}),R}catch(R){return console.error("Error retrieving post by ID:",R),null}})()}getAllPostsWithPagination(T,k=10){var R=this;return(0,i.A)(function*(){try{const G=[],Z=(T-1)*k;return yield R.postsStore.iterate(te=>{1===te.kind&&G.push(te)}),G.sort((te,be)=>be.created_at-te.created_at).slice(Z,Z+k)}catch(G){return console.error("Error retrieving all posts with pagination:",G),[]}})()}getPostsByPubKeysWithPagination(T,k,R=10){var G=this;return(0,i.A)(function*(){try{const Z=[],te=(k-1)*R;return yield G.postsStore.iterate(be=>{T.includes(be.pubkey)&&1===be.kind&&Z.push(be)}),Z.sort((be,_e)=>_e.created_at-be.created_at).slice(te,te+R)}catch(Z){return console.error("Error retrieving events for pubKeys with pagination:",Z),[]}})()}saveLike(T){var k=this;return(0,i.A)(function*(){try{yield k.myLikesStore.setItem(T.id,T);const R=yield k.getAllMyLikes();k.myLikesSubject.next(R),yield k.setUpdateHistory("myLikes")}catch(R){console.error("Error saving like:",R)}})()}getAllMyLikes(){var T=this;return(0,i.A)(function*(){try{const k=[];return yield T.myLikesStore.iterate(R=>{try{const G=R.tags.find(Z=>"e"===Z[0]);G&&k.push(G[1])}catch(G){console.warn("Error parsing like:",R,G)}}),k}catch(k){return console.error("Error retrieving all likes:",k),[]}})()}saveNotification(T){var k=this;return(0,i.A)(function*(){try{yield k.notificationsStore.setItem(T.id,T);const R=yield k.getAllNotifications();k.notificationsSubject.next(R),yield k.setUpdateHistory("notifications")}catch(R){console.error("Error saving notification:",R)}})()}getAllNotifications(){var T=this;return(0,i.A)(function*(){try{const k=[];return yield T.notificationsStore.iterate(R=>{k.push(R)}),k}catch(k){return console.error("Error retrieving all notifications:",k),[]}})()}saveChatEvent(T){var k=this;return(0,i.A)(function*(){try{yield k.chatsStore.setItem(T.id,T),yield k.setUpdateHistory("chats");const R=yield k.getAllChatEvents();k.chatEventsSubject.next(R),k.updateUnreadChatCount(R)}catch(R){console.error("Error saving chat event:",R)}})()}getAllChatEvents(){var T=this;return(0,i.A)(function*(){try{const k=[];return yield T.chatsStore.iterate(R=>{k.push(R)}),k}catch(k){return console.error("Error retrieving all chat events:",k),[]}})()}getChatEventsByPubKey(T){var k=this;return(0,i.A)(function*(){try{const R=[];return yield k.chatsStore.iterate(G=>{const Z=k.getReceiverPubKeyFromTags(G.tags);(G.pubkey===T||Z===T)&&R.push(G)}),R}catch(R){return console.error("Error retrieving chat events by pubkey:",R),[]}})()}updateChatEventReadStatus(T,k){var R=this;return(0,i.A)(function*(){try{const G=yield R.chatsStore.getItem(T);if(G){G.IsRead=k,yield R.chatsStore.setItem(T,G);const Z=yield R.getAllChatEvents();R.chatEventsSubject.next(Z),R.updateUnreadChatCount(Z)}}catch(G){console.error("Error updating chat event read status:",G)}})()}markAllChatEventsAsRead(T){var k=this;return(0,i.A)(function*(){try{yield k.chatsStore.iterate(function(){var G=(0,i.A)(function*(Z,te){const be=k.getReceiverPubKeyFromTags(Z.tags);(Z.pubkey===T||be===T)&&!Z.IsRead&&(Z.IsRead=!0,yield k.chatsStore.setItem(te,Z))});return function(Z,te){return G.apply(this,arguments)}}());const R=yield k.getAllChatEvents();k.chatEventsSubject.next(R),k.updateUnreadChatCount(R)}catch(R){console.error("Error marking all chat events as read:",R)}})()}getReceiverPubKeyFromTags(T){for(const k of T)if("p"===k[0]&&k[1])return k[1];return null}updateUnreadChatCount(T){const k=T.filter(R=>!R.IsRead).length;this.unreadChatCountSubject.next(k)}removeAllChats(){var T=this;return(0,i.A)(function*(){try{yield T.chatsStore.clear(),T.chatEventsSubject.next([]),T.unreadChatCountSubject.next(0),console.log("All chat events have been removed successfully.")}catch(k){console.error("Error removing all chat events:",k)}})()}setUpdateHistory(T){var k=this;return(0,i.A)(function*(){try{const R=Math.floor(Date.now()/1e3);yield k.updateHistoryStore.setItem(T,R)}catch(R){console.error("Error updating history:",R)}})()}loadAllProjectsFromDB(){var T=this;return(0,i.A)(function*(){try{const k=yield T.getAllProjects();T.projectsSubject.next(k)}catch(k){console.error("Error loading projects from DB:",k)}})()}loadAllProjectStatsFromDB(){var T=this;return(0,i.A)(function*(){try{const k=yield T.getAllProjectStats();T.projectStatsSubject.next(k)}catch(k){console.error("Error loading project stats from DB:",k)}})()}loadAllContactsFromDB(T=""){var k=this;return(0,i.A)(function*(){try{const R=yield k.getAllContacts(T);if(R.length>0){const G={};for(const Z of R)G[Z.pubKey]||(G[Z.pubKey]=[]),G[Z.pubKey].push(Z.contact);for(const Z in G)k.contactsSubject.next({pubKey:Z,contacts:G[Z]})}}catch(R){console.error("Error loading contacts from DB:",R)}})()}loadAllChatEventsFromDB(){var T=this;return(0,i.A)(function*(){try{const k=yield T.getAllChatEvents();T.chatEventsSubject.next(k)}catch(k){console.error("Error loading chat events from DB:",k)}})()}loadPostsFromDB(T,k=10,R=0){var G=this;return(0,i.A)(function*(){try{const Z=[];return yield G.postsStore.iterate(te=>{T.includes(te.pubkey)&&Z.push(te)}),Z.sort((te,be)=>be.created_at-te.created_at).slice(R,R+k)}catch(Z){return console.error("Error retrieving events from DB:",Z),[]}})()}loadPosts(T,k){var R=this;return(0,i.A)(function*(){const Z=10*(k-1),te=yield R.loadPostsFromDB(T,10,Z);te.length>0&&te.forEach(be=>{R.postsSubject.next(be)})})()}loadAllMyLikesFromDB(){var T=this;return(0,i.A)(function*(){try{const k=yield T.getAllMyLikes();T.myLikesSubject.next(k)}catch(k){console.error("Error loading likes from DB:",k)}})()}loadAllNotificationsFromDB(){var T=this;return(0,i.A)(function*(){try{const k=yield T.getAllNotifications();T.notificationsSubject.next(k)}catch(k){console.error("Error loading notifications from DB:",k)}})()}loadContactStatsFromDB(){var T=this;return(0,i.A)(function*(){try{let k=0,R=0,G=0;yield T.contactsStore.iterate((Z,te)=>{const[be]=te.split(":");k++,Z.isFollower?R++:G++}),T.contactStatsSubject.next({totalContacts:k,followersCount:R,followingCount:G})}catch(k){console.error("Error loading contact stats from DB:",k)}})()}loadAllInvestorsFromDB(){var T=this;return(0,i.A)(function*(){try{const k=[];yield T.investorsStore.iterate(R=>{k.push(R)}),console.log("Loaded Investors:",k),T.investorsSubject.next(k)}catch(k){console.error("Error loading investors from DB:",k)}})()}loadAllProjectDetailsFromDB(){var T=this;return(0,i.A)(function*(){try{const k=[];yield T.projectDetailsStore.iterate(R=>{k.push(R)}),console.log("Loaded Project Details:",k),T.projectDetailsSubject.next(k)}catch(k){console.error("Error loading project details from DB:",k)}})()}static{this.\u0275fac=function(k){return new(k||A)}}static{this.\u0275prov=w.jDH({token:A,factory:A.\u0275fac,providedIn:"root"})}}return A})()},5506:(o,s,r)=>{"use strict";r.d(s,{n:()=>_e});var a,i=r(1217),c=new Uint8Array(16);function y(){if(!a&&!(a=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return a(c)}const w=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var S=[],T=0;T<256;++T)S.push((T+256).toString(16).substr(1));const R=function k(pe){var Te=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,Ce=(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)}(Ce))throw TypeError("Stringified UUID is invalid");return Ce},Z=function G(pe,Te,Ce){var Ne=(pe=pe||{}).random||(pe.rng||y)();if(Ne[6]=15&Ne[6]|64,Ne[8]=63&Ne[8]|128,Te){Ce=Ce||0;for(var Se=0;Se<16;++Se)Te[Ce+Se]=Ne[Se];return Te}return R(Ne)};var te=r(3107),be=r(3125);let _e=(()=>{class pe{constructor(Ce){this.relayService=Ce,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(Ce,Ne,Se){const xe=this.findExistingSubscription(Ce);if(xe)return xe.callbacks.push(Ne),xe.id;const ae=Z();this.lastActionTimestamp.set(ae,Date.now());const le={filter:Ce,callbacks:[Ne],id:ae};return this.subscriptions.set(le.id,le),this.subscriptionsSubject.next(this.subscriptions),this.addToQueue(le),le.id}findExistingSubscription(Ce){return Array.from(this.subscriptions.values()).find(Ne=>JSON.stringify(Ne.filter)===JSON.stringify(Ce))}removeSubscriptionById(Ce){const Ne=Date.now(),Se=this.lastActionTimestamp.get(Ce);Se&&Ne-Se{this.subscriptionQueue.length>0&&this.subscriptionQueue.splice(0,this.maxSubscriptionsPerBatch).forEach(Se=>this.subscribeToRelays(Se.filter,Se))},this.queueInterval))}subscribeToRelays(Ce,Ne){0!==this.activeRelays.length?this.relayService.ensureConnectedRelays().then(()=>{const Se=this.relayService.getConnectedRelays();this.relayService.getPool().subscribeMany(Se,Ce,{onevent:xe=>{Ne.callbacks.forEach(ae=>ae(xe))},onclose:()=>console.log("Subscription closed")})}).catch(Se=>{console.error("Error subscribing to relays:",Se)}):this.pendingSubscriptions.set(Ne.id,Ne)}subscribeToAllRelays(){this.pendingSubscriptions.forEach(Ce=>{this.subscribeToRelays(Ce.filter,Ce)}),this.pendingSubscriptions.clear()}connectToAllRelays(){this.relayService.ensureConnectedRelays().then(()=>{this.activeRelays=this.relayService.getConnectedRelays(),this.subscribeToAllRelays()}).catch(Ce=>{console.error("Error connecting to relays:",Ce)})}clearAllSubscriptions(){this.subscriptions.clear(),this.pendingSubscriptions.clear(),this.subscriptionsSubject.next(new Map)}getSubscriptions(){return Array.from(this.subscriptions.values())}static{this.\u0275fac=function(Ne){return new(Ne||pe)(te.KVO(be.b))}}static{this.\u0275prov=te.jDH({token:pe,factory:pe.\u0275fac,providedIn:"root"})}}return pe})()},2226:(o,s,r)=>{"use strict";r.d(s,{b:()=>Z});var i=r(4460),a=r(936),c=r(9471),y=r(2902),w=r(7544),C=r(6071),A=r(3904),S=r(6389),T=r(2675),k=r(5785),R=r(3107);function G(te,be){1&te&&(R.j41(0,"mat-error"),R.EFF(1," Password is required "),R.k0s())}let Z=(()=>{class te{constructor(_e,pe,Te){this.fb=_e,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||te)(R.rXU(a.ok),R.rXU(w.CP),R.rXU(w.Vh))}}static{this.\u0275cmp=R.VBU({type:te,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&&(R.j41(0,"h1",0),R.EFF(1,"Enter Password"),R.k0s(),R.j41(2,"div",1)(3,"form",2)(4,"mat-form-field",3)(5,"mat-label"),R.EFF(6,"Password"),R.k0s(),R.j41(7,"mat-icon",4),R.EFF(8,"lock"),R.k0s(),R.nrm(9,"input",5),R.DNE(10,G,2,0,"mat-error",6),R.k0s(),R.j41(11,"mat-form-field",7)(12,"mat-label"),R.EFF(13,"Duration"),R.k0s(),R.j41(14,"mat-select",8)(15,"mat-option",9),R.EFF(16,"0 Minute"),R.k0s(),R.j41(17,"mat-option",10),R.EFF(18,"1 Minute"),R.k0s(),R.j41(19,"mat-option",11),R.EFF(20,"5 Minutes"),R.k0s(),R.j41(21,"mat-option",12),R.EFF(22,"10 Minutes"),R.k0s(),R.j41(23,"mat-option",13),R.EFF(24,"1 Hour"),R.k0s()()()()(),R.j41(25,"div",14)(26,"button",15),R.bIt("click",function(){return Te.onCancel()}),R.EFF(27,"Cancel"),R.k0s(),R.j41(28,"button",16),R.bIt("click",function(){return Te.onSubmit()}),R.EFF(29," Submit "),R.k0s()()),2&pe&&(R.R7$(3),R.Y8G("formGroup",Te.passwordForm),R.R7$(),R.Y8G("subscriptSizing","dynamic"),R.R7$(5),R.Y8G("formControlName","password"),R.R7$(),R.Y8G("ngIf",Te.passwordForm.get("password").hasError("required")),R.R7$(18),R.Y8G("disabled",Te.passwordForm.invalid))},dependencies:[k.vg,c.Hl,c.$z,A.m_,A.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,T.Ve,C.TL,C.JW,T.VO,C.RG,S.fS,S.fg],styles:[".full-width[_ngcontent-%COMP%]{width:100%}"],changeDetection:0})}}return te})()},770:(o,s,r)=>{"use strict";var i=r(6388),a=r(9893),c=r(3107);let y=(()=>{class v{constructor(){}static{this.\u0275fac=function(_){return new(_||v)}}static{this.\u0275cmp=c.VBU({type:v,selectors:[["app-root"]],decls:1,vars:0,template:function(_,D){1&_&&c.nrm(0,"router-outlet")},dependencies:[a.n3],styles:["[_nghost-%COMP%]{display:flex;flex:1 1 auto;width:100%;height:100%}"]})}}return v})();var w=r(3014);const C=new c.nKC("ANGOR_MOCK_API_DEFAULT_DELAY");var A=r(8915),S=r(1698),T=r(7610),k=r(3016);class R{constructor(m,d){this.url=m,this.delay=d,this._replyCount=0,this._replied=0}get response(){if(this._replyCount>0&&this._replyCount<=this._replied)return(0,A.$)(()=>new Error("Execution limit has been reached!"));if(!this._reply)return(0,A.$)(()=>new Error("Response callback function does not exist!"));if(!this.request)return(0,A.$)(()=>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,T.s)(1)):(0,k.of)(m).pipe((0,T.s)(1))}reply(m){this._reply=m}replyCount(m){this._replyCount=m}}var G=r(6143);let Z=(()=>{class v{constructor(){this._handlers={get:new Map,post:new Map,patch:new Map,delete:new Map,put:new Map,head:new Map,jsonp:new Map,options:new Map}}findHandler(d,_){const D={handler:void 0,urlParams:{}},j=_.split("/"),ne=this._handlers[d.toLowerCase()];for(const[we,Ye]of ne){const yt=we.split("/");if(j.length===yt.length&&yt.every((gn,wr)=>gn.startsWith(":")||gn===j[wr])){D.handler=Ye,D.urlParams=(0,G.A)(yt.map((gn,wr)=>gn.startsWith(":")?[gn.substring(1),j[wr]]:void 0).filter(Boolean));break}}return D}onGet(d,_){return this._registerHandler("get",d,_)}onPost(d,_){return this._registerHandler("post",d,_)}onPatch(d,_){return this._registerHandler("patch",d,_)}onDelete(d,_){return this._registerHandler("delete",d,_)}onPut(d,_){return this._registerHandler("put",d,_)}onHead(d,_){return this._registerHandler("head",d,_)}onJsonp(d,_){return this._registerHandler("jsonp",d,_)}onOptions(d,_){return this._registerHandler("options",d,_)}_registerHandler(d,_,D){const j=new R(_,D);return this._handlers[d].set(_,j),j}static{this.\u0275fac=function(_){return new(_||v)}}static{this.\u0275prov=c.jDH({token:v,factory:v.\u0275fac,providedIn:"root"})}}return v})();var te=r(7691),be=r(8136),_e=r(2867);const pe=(v,m)=>{const d=(0,c.WQX)(C),_=(0,c.WQX)(Z),{handler:D,urlParams:j}=_.findHandler(v.method.toUpperCase(),v.url);return D?(D.request=v,D.urlParams=j,D.response.pipe((0,be.c)(D.delay??d??0),(0,_e.n)(ne=>{if(!ne)return(0,A.$)(()=>new te.yz({error:"NOT FOUND",status:404,statusText:"NOT FOUND"}));const we={status:ne[0],body:ne[1]};return we.status>=200&&we.status<300?(0,k.of)(new te.cS({body:we.body,status:we.status,statusText:"OK"})):(0,A.$)(()=>new te.yz({error:we.body?.error,status:we.status,statusText:"ERROR"}))}))):m(v)};var Te=r(7891),Ce=r(7153),Ne=r(1217);let Se=(()=>{class v{constructor(){this._auto$=new Ne.t(!0),this._mode$=new Ne.t("indeterminate"),this._progress$=new Ne.t(0),this._show$=new Ne.t(!1),this._urlMap=new Map}get auto$(){return this._auto$.asObservable()}get mode$(){return this._mode$.asObservable()}get progress$(){return this._progress$.asObservable()}get show$(){return this._show$.asObservable()}show(){this._show$.next(!0)}hide(){this._show$.next(!1)}setAutoMode(d){this._auto$.next(d)}setMode(d){this._mode$.next(d)}setProgress(d){d<0||d>100?console.error("Progress value must be between 0 and 100!"):this._progress$.next(d)}_setLoadingStatus(d,_){_?(!0===d?(this._urlMap.set(_,d),this._show$.next(!0)):!1===d&&this._urlMap.has(_)&&this._urlMap.delete(_),0===this._urlMap.size&&this._show$.next(!1)):console.error("The request URL must be provided!")}static{this.\u0275fac=function(_){return new(_||v)}}static{this.\u0275prov=c.jDH({token:v,factory:v.\u0275fac,providedIn:"root"})}}return v})();var xe=r(4447);const ae=(v,m)=>{const d=(0,c.WQX)(Se);let _=!1;return d.auto$.pipe((0,T.s)(1)).subscribe(D=>{_=D}),_?(d._setLoadingStatus(!0,v.url),m(v).pipe((0,xe.j)(()=>{d._setLoadingStatus(!1,v.url)}))):m(v)};var le=r(2012),ke=r(2147);let Ue=(()=>{class v{constructor(){this._platform=(0,c.WQX)(ke.OD),this.osName="os-unknown",this._platform.isBrowser&&(navigator.userAgent.includes("Win")&&(this.osName="os-windows"),navigator.userAgent.includes("Mac")&&(this.osName="os-mac"),navigator.userAgent.includes("X11")&&(this.osName="os-unix"),navigator.userAgent.includes("Linux")&&(this.osName="os-linux"),this._platform.IOS&&(this.osName="os-ios"),this._platform.ANDROID&&(this.osName="os-android"))}static{this.\u0275fac=function(_){return new(_||v)}}static{this.\u0275prov=c.jDH({token:v,factory:v.\u0275fac,providedIn:"root"})}}return v})();var st=r(4460),ft=r(1483);let _t=(()=>{class v{constructor(){this._document=(0,c.WQX)(st.qQ),this._router=(0,c.WQX)(a.Ix),this._router.events.pipe((0,ft.p)(d=>d instanceof a.wF),(0,T.s)(1)).subscribe(()=>{this.hide()})}show(){this._document.body.classList.remove("angor-splash-screen-hidden")}hide(){this._document.body.classList.add("angor-splash-screen-hidden")}static{this.\u0275fac=function(_){return new(_||v)}}static{this.\u0275prov=c.jDH({token:v,factory:v.\u0275fac,providedIn:"root"})}}return v})();var ot=r(3939),Yt=r(2902),un=r(7544),wn=r(6071);class En extends Error{}class Ze extends En{constructor(m){super(`Invalid DateTime: ${m.toMessage()}`)}}class wt extends En{constructor(m){super(`Invalid Interval: ${m.toMessage()}`)}}class ze extends En{constructor(m){super(`Invalid Duration: ${m.toMessage()}`)}}class Be extends En{}class Ut extends En{constructor(m){super(`Invalid unit ${m}`)}}class Ke extends En{}class lt extends En{constructor(){super("Zone is an abstract class")}}const Xe="numeric",Ge="short",pt="long",se={year:Xe,month:Xe,day:Xe},qe={year:Xe,month:Ge,day:Xe},Nt={year:Xe,month:Ge,day:Xe,weekday:Ge},tn={year:Xe,month:pt,day:Xe},pn={year:Xe,month:pt,day:Xe,weekday:pt},Wn={hour:Xe,minute:Xe},Pt={hour:Xe,minute:Xe,second:Xe},en={hour:Xe,minute:Xe,second:Xe,timeZoneName:Ge},an={hour:Xe,minute:Xe,second:Xe,timeZoneName:pt},Yn={hour:Xe,minute:Xe,hourCycle:"h23"},Sn={hour:Xe,minute:Xe,second:Xe,hourCycle:"h23"},Xt={hour:Xe,minute:Xe,second:Xe,hourCycle:"h23",timeZoneName:Ge},Mt={hour:Xe,minute:Xe,second:Xe,hourCycle:"h23",timeZoneName:pt},Gt={year:Xe,month:Xe,day:Xe,hour:Xe,minute:Xe},Ot={year:Xe,month:Xe,day:Xe,hour:Xe,minute:Xe,second:Xe},Ie={year:Xe,month:Ge,day:Xe,hour:Xe,minute:Xe},Me={year:Xe,month:Ge,day:Xe,hour:Xe,minute:Xe,second:Xe},nt={year:Xe,month:Ge,day:Xe,weekday:Ge,hour:Xe,minute:Xe},W={year:Xe,month:pt,day:Xe,hour:Xe,minute:Xe,timeZoneName:Ge},L={year:Xe,month:pt,day:Xe,hour:Xe,minute:Xe,second:Xe,timeZoneName:Ge},V={year:Xe,month:pt,day:Xe,weekday:pt,hour:Xe,minute:Xe,timeZoneName:pt},Re={year:Xe,month:pt,day:Xe,weekday:pt,hour:Xe,minute:Xe,second:Xe,timeZoneName:pt};class bt{get type(){throw new lt}get name(){throw new lt}get ianaName(){return this.name}get isUniversal(){throw new lt}offsetName(m,d){throw new lt}formatOffset(m,d){throw new lt}offset(m){throw new lt}equals(m){throw new lt}get isValid(){throw new lt}}let mt=null;class At extends bt{static get instance(){return null===mt&&(mt=new At),mt}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(m,{format:d,locale:_}){return Eo(m,d,_)}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 Ln={};const mn={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};let Hn={};class xr extends bt{static create(m){return Hn[m]||(Hn[m]=new xr(m)),Hn[m]}static resetCache(){Hn={},Ln={}}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=xr.isValidZone(m)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(m,{format:d,locale:_}){return Eo(m,d,_,this.name)}formatOffset(m,d){return va(this.offset(m),d)}offset(m){const d=new Date(m);if(isNaN(d))return NaN;const _=function Zt(v){return Ln[v]||(Ln[v]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:v,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),Ln[v]}(this.name);let[D,j,ne,we,Ye,yt,cn]=_.formatToParts?function Bn(v,m){const d=v.formatToParts(m),_=[];for(let D=0;D=0?_r:1e3+_r,(Es({year:D,month:j,day:ne,hour:24===Ye?0:Ye,minute:yt,second:cn,millisecond:0})-Zn)/6e4}equals(m){return"iana"===m.type&&m.name===this.name}get isValid(){return this.valid}}let ti={},vt={};function $t(v,m={}){const d=JSON.stringify([v,m]);let _=vt[d];return _||(_=new Intl.DateTimeFormat(v,m),vt[d]=_),_}let Ee={},Fe={},dt=null,_n={};function sn(v,m,d,_){const D=v.listingMode();return"error"===D?null:"en"===D?d(m):_(m)}class Je{constructor(m,d,_){this.padTo=_.padTo||0,this.floor=_.floor||!1;const{padTo:D,floor:j,...ne}=_;if(!d||Object.keys(ne).length>0){const we={useGrouping:!1,..._};_.padTo>0&&(we.minimumIntegerDigits=_.padTo),this.inf=function at(v,m={}){const d=JSON.stringify([v,m]);let _=Ee[d];return _||(_=new Intl.NumberFormat(v,m),Ee[d]=_),_}(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):cs(m,3),this.padTo)}}class St{constructor(m,d,_){let D;if(this.opts=_,this.originalZone=void 0,this.opts.timeZone)this.dt=m;else if("fixed"===m.zone.type){const ne=m.offset/60*-1,we=ne>=0?`Etc/GMT+${ne}`:`Etc/GMT${ne}`;0!==m.offset&&xr.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 j={...this.opts};j.timeZone=j.timeZone||D,this.dtf=$t(d,j)}format(){return this.originalZone?this.formatToParts().map(({value:m})=>m).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const m=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?m.map(d=>{if("timeZoneName"===d.type){const _=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...d,value:_}}return d}):m}resolvedOptions(){return this.dtf.resolvedOptions()}}class zt{constructor(m,d,_){this.opts={style:"long",..._},!d&&Sr()&&(this.rtf=function Rt(v,m={}){const{base:d,..._}=m,D=JSON.stringify([v,_]);let j=Fe[D];return j||(j=new Intl.RelativeTimeFormat(v,m),Fe[D]=j),j}(m,_))}format(m,d){return this.rtf?this.rtf.format(m,d):function re(v,m,d="always",_=!1){const D={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},j=-1===["hours","minutes","seconds"].indexOf(v);if("auto"===d&&j){const gn="days"===v;switch(m){case 1:return gn?"tomorrow":`next ${D[v][0]}`;case-1:return gn?"yesterday":`last ${D[v][0]}`;case 0:return gn?"today":`this ${D[v][0]}`}}const ne=Object.is(m,-0)||m<0,we=Math.abs(m),Ye=1===we,yt=D[v],cn=_?Ye?yt[1]:yt[2]||yt[1]:Ye?D[v][0]:v;return ne?`${we} ${cn} ago`:`in ${we} ${cn}`}(d,m,this.opts.numeric,"long"!==this.opts.style)}formatToParts(m,d){return this.rtf?this.rtf.formatToParts(m,d):[]}}const zn={firstDay:1,minimalDays:4,weekend:[6,7]};class hr{static fromOpts(m){return hr.create(m.locale,m.numberingSystem,m.outputCalendar,m.weekSettings,m.defaultToEN)}static create(m,d,_,D,j=!1){const ne=m||Oe.defaultLocale,we=ne||(j?"en-US":function Bt(){return dt||(dt=(new Intl.DateTimeFormat).resolvedOptions().locale,dt)}()),Ye=d||Oe.defaultNumberingSystem,yt=_||Oe.defaultOutputCalendar,cn=Xs(D)||Oe.defaultWeekSettings;return new hr(we,Ye,yt,cn,ne)}static resetCache(){dt=null,vt={},Ee={},Fe={}}static fromObject({locale:m,numberingSystem:d,outputCalendar:_,weekSettings:D}={}){return hr.create(m,d,_,D)}constructor(m,d,_,D,j){const[ne,we,Ye]=function Mr(v){const m=v.indexOf("-x-");-1!==m&&(v=v.substring(0,m));const d=v.indexOf("-u-");if(-1===d)return[v];{let _,D;try{_=$t(v).resolvedOptions(),D=v}catch{const Ye=v.substring(0,d);_=$t(Ye).resolvedOptions(),D=Ye}const{numberingSystem:j,calendar:ne}=_;return[D,j,ne]}}(m);this.locale=ne,this.numberingSystem=d||we||null,this.outputCalendar=_||Ye||null,this.weekSettings=D,this.intl=function ii(v,m,d){return(d||m)&&(v.includes("-u-")||(v+="-u"),d&&(v+=`-ca-${d}`),m&&(v+=`-nu-${m}`)),v}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=j,this.fastNumbersCached=null}get fastNumbers(){return null==this.fastNumbersCached&&(this.fastNumbersCached=function Tt(v){return(!v.numberingSystem||"latn"===v.numberingSystem)&&("latn"===v.numberingSystem||!v.locale||v.locale.startsWith("en")||"latn"===new Intl.DateTimeFormat(v.intl).resolvedOptions().numberingSystem)}(this)),this.fastNumbersCached}listingMode(){return this.isEnglish()&&!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar)?"en":"intl"}clone(m){return m&&0!==Object.getOwnPropertyNames(m).length?hr.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 sn(this,m,aa,()=>{const _=d?{month:m,day:"numeric"}:{month:m},D=d?"format":"standalone";return this.monthsCache[D][m]||(this.monthsCache[D][m]=function ci(v){const m=[];for(let d=1;d<=12;d++){const _=Lr.utc(2009,d,1);m.push(v(_))}return m}(j=>this.extract(j,_,"month"))),this.monthsCache[D][m]})}weekdays(m,d=!1){return sn(this,m,Zo,()=>{const _=d?{weekday:m,year:"numeric",month:"long",day:"numeric"}:{weekday:m},D=d?"format":"standalone";return this.weekdaysCache[D][m]||(this.weekdaysCache[D][m]=function Ai(v){const m=[];for(let d=1;d<=7;d++){const _=Lr.utc(2016,11,13+d);m.push(v(_))}return m}(j=>this.extract(j,_,"weekday"))),this.weekdaysCache[D][m]})}meridiems(){return sn(this,void 0,()=>vi,()=>{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 sn(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(_=>this.extract(_,d,"era"))),this.eraCache[m]})}extract(m,d,_){const ne=this.dtFormatter(m,d).formatToParts().find(we=>we.type.toLowerCase()===_);return ne?ne.value:null}numberFormatter(m={}){return new Je(this.intl,m.forceSimple||this.fastNumbers,m)}dtFormatter(m,d={}){return new St(m,this.intl,d)}relFormatter(m={}){return new zt(this.intl,this.isEnglish(),m)}listFormatter(m={}){return function Xr(v,m={}){const d=JSON.stringify([v,m]);let _=ti[d];return _||(_=new Intl.ListFormat(v,m),ti[d]=_),_}(this.intl,m)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:oa()?function or(v){let m=_n[v];if(!m){const d=new Intl.Locale(v);m="getWeekInfo"in d?d.getWeekInfo():d.weekInfo,_n[v]=m}return m}(this.locale):zn}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 bt{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(is(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 bt{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(v,m){if($r(v)||null===v)return m;if(v instanceof bt)return v;if(function ws(v){return"string"==typeof v}(v)){const _=v.toLowerCase();return"default"===_?m:"local"===_||"system"===_?At.instance:"utc"===_||"gmt"===_?Oi.utcInstance:Oi.parseSpecifier(_)||xr.create(v)}return Gi(v)?Oi.instance(v):"object"==typeof v&&"offset"in v&&"function"==typeof v.offset?v:new Uo(v)}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:v},m=""){const d=v||"latn";return Co[d]||(Co[d]={}),Co[d][m]||(Co[d][m]=new RegExp(`${ts[d]}${m}`)),Co[d][m]}let me,oo=()=>Date.now(),Bi="system",Mo=null,et=null,ct=null,xt=60,tt=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,At.instance)}static get defaultLocale(){return Mo}static set defaultLocale(m){Mo=m}static get defaultNumberingSystem(){return et}static set defaultNumberingSystem(m){et=m}static get defaultOutputCalendar(){return ct}static set defaultOutputCalendar(m){ct=m}static get defaultWeekSettings(){return tt}static set defaultWeekSettings(m){tt=Xs(m)}static get twoDigitCutoffYear(){return xt}static set twoDigitCutoffYear(m){xt=m%100}static get throwOnInvalid(){return me}static set throwOnInvalid(m){me=m}static resetCaches(){hr.resetCache(),xr.resetCache(),Lr.resetCache(),function ks(){Co={}}()}}class ht{constructor(m,d){this.reason=m,this.explanation=d}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const Vt=[0,31,59,90,120,151,181,212,243,273,304,334],kt=[0,31,60,91,121,152,182,213,244,274,305,335];function hn(v,m){return new ht("unit out of range",`you specified ${m} (of type ${typeof m}) as a ${v}, which is invalid`)}function Cn(v,m,d){const _=new Date(Date.UTC(v,m-1,d));v<100&&v>=0&&_.setUTCFullYear(_.getUTCFullYear()-1900);const D=_.getUTCDay();return 0===D?7:D}function An(v,m,d){return d+(rs(v)?kt:Vt)[m-1]}function On(v,m){const d=rs(v)?kt:Vt,_=d.findIndex(j=>jga(_,m,d)?(yt=_+1,Ye=1):yt=_,{weekYear:yt,weekNumber:Ye,weekday:we,...Yo(v)}}function sr(v,m=4,d=1){const{weekYear:_,weekNumber:D,weekday:j}=v,ne=Un(Cn(_,1,m),d),we=to(_);let yt,Ye=7*D+j-ne-7+m;Ye<1?(yt=_-1,Ye+=to(yt)):Ye>we?(yt=_+1,Ye-=to(_)):yt=_;const{month:cn,day:gn}=On(yt,Ye);return{year:yt,month:cn,day:gn,...Yo(v)}}function Ir(v){const{year:m,month:d,day:_}=v;return{year:m,ordinal:An(m,d,_),...Yo(v)}}function pr(v){const{year:m,ordinal:d}=v,{month:_,day:D}=On(m,d);return{year:m,month:_,day:D,...Yo(v)}}function bi(v,m){if($r(v.localWeekday)&&$r(v.localWeekNumber)&&$r(v.localWeekYear))return{minDaysInFirstWeek:4,startOfWeek:1};if(!$r(v.weekday)||!$r(v.weekNumber)||!$r(v.weekYear))throw new Be("Cannot mix locale-based week fields with ISO-based week fields");return $r(v.localWeekday)||(v.weekday=v.localWeekday),$r(v.localWeekNumber)||(v.weekNumber=v.localWeekNumber),$r(v.localWeekYear)||(v.weekYear=v.localWeekYear),delete v.localWeekday,delete v.localWeekNumber,delete v.localWeekYear,{minDaysInFirstWeek:m.getMinDaysInFirstWeek(),startOfWeek:m.getStartOfWeek()}}function ai(v){const m=ls(v.year),d=Wi(v.month,1,12),_=Wi(v.day,1,zi(v.year,v.month));return m?d?!_&&hn("day",v.day):hn("month",v.month):hn("year",v.year)}function _o(v){const{hour:m,minute:d,second:_,millisecond:D}=v,j=Wi(m,0,23)||24===m&&0===d&&0===_&&0===D,ne=Wi(d,0,59),we=Wi(_,0,59),Ye=Wi(D,0,999);return j?ne?we?!Ye&&hn("millisecond",D):hn("second",_):hn("minute",d):hn("hour",m)}function $r(v){return typeof v>"u"}function Gi(v){return"number"==typeof v}function ls(v){return"number"==typeof v&&v%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(v,m,d){if(0!==v.length)return v.reduce((_,D)=>{const j=[m(D),D];return _&&d(_[0],j[0])===_[0]?_:j},null)[1]}function Ps(v,m){return Object.prototype.hasOwnProperty.call(v,m)}function Xs(v){if(null==v)return null;if("object"!=typeof v)throw new Ke("Week settings must be an object");if(!Wi(v.firstDay,1,7)||!Wi(v.minimalDays,1,7)||!Array.isArray(v.weekend)||v.weekend.some(m=>!Wi(m,1,7)))throw new Ke("Invalid week settings");return{firstDay:v.firstDay,minimalDays:v.minimalDays,weekend:Array.from(v.weekend)}}function Wi(v,m,d){return ls(v)&&v>=m&&v<=d}function Ni(v,m=2){let _;return _=v<0?"-"+(""+-v).padStart(m,"0"):(""+v).padStart(m,"0"),_}function Fs(v){if(!$r(v)&&null!==v&&""!==v)return parseInt(v,10)}function ns(v){if(!$r(v)&&null!==v&&""!==v)return parseFloat(v)}function qr(v){if(!$r(v)&&null!==v&&""!==v){const m=1e3*parseFloat("0."+v);return Math.floor(m)}}function cs(v,m,d=!1){const _=10**m;return(d?Math.trunc:Math.round)(v*_)/_}function rs(v){return v%4==0&&(v%100!=0||v%400==0)}function to(v){return rs(v)?366:365}function zi(v,m){const d=function Ys(v,m){return v-m*Math.floor(v/m)}(m-1,12)+1;return 2===d?rs(v+(m-d)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][d-1]}function Es(v){let m=Date.UTC(v.year,v.month-1,v.day,v.hour,v.minute,v.second,v.millisecond);return v.year<100&&v.year>=0&&(m=new Date(m),m.setUTCFullYear(v.year,v.month-1,v.day)),+m}function ko(v,m,d){return-Un(Cn(v,1,m),d)+m-1}function ga(v,m=4,d=1){const _=ko(v,m,d),D=ko(v+1,m,d);return(to(v)-_+D)/7}function tr(v){return v>99?v:v>Oe.twoDigitCutoffYear?1900+v:2e3+v}function Eo(v,m,d,_=null){const D=new Date(v),j={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};_&&(j.timeZone=_);const ne={timeZoneName:m,...j},we=new Intl.DateTimeFormat(d,ne).formatToParts(D).find(Ye=>"timezonename"===Ye.type.toLowerCase());return we?we.value:null}function is(v,m){let d=parseInt(v,10);Number.isNaN(d)&&(d=0);const _=parseInt(m,10)||0;return 60*d+(d<0||Object.is(d,-0)?-_:_)}function Is(v){const m=Number(v);if("boolean"==typeof v||""===v||Number.isNaN(m))throw new Ke(`Invalid unit value ${v}`);return m}function Bs(v,m){const d={};for(const _ in v)if(Ps(v,_)){const D=v[_];if(null==D)continue;d[m(_)]=Is(D)}return d}function va(v,m){const d=Math.trunc(Math.abs(v/60)),_=Math.trunc(Math.abs(v%60)),D=v>=0?"+":"-";switch(m){case"short":return`${D}${Ni(d,2)}:${Ni(_,2)}`;case"narrow":return`${D}${d}${_>0?`:${_}`:""}`;case"techie":return`${D}${Ni(d,2)}${Ni(_,2)}`;default:throw new RangeError(`Value format ${m} is out of range for property format`)}}function Yo(v){return function Ls(v,m){return m.reduce((d,_)=>(d[_]=v[_],d),{})}(v,["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(v){switch(v){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"],os=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],vo=["M","T","W","T","F","S","S"];function Zo(v){switch(v){case"narrow":return[...vo];case"short":return[...os];case"long":return[...ao];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const vi=["AM","PM"],Fa=["Before Christ","Anno Domini"],Io=["BC","AD"],Qs=["B","A"];function bl(v){switch(v){case"narrow":return[...Qs];case"short":return[...Io];case"long":return[...Fa];default:return null}}function Et(v,m){let d="";for(const _ of v)d+=_.literal?_.val:m(_.val);return d}const Fn={D:se,DD:qe,DDD:tn,DDDD:pn,t:Wn,tt:Pt,ttt:en,tttt:an,T:Yn,TT:Sn,TTT:Xt,TTTT:Mt,f:Gt,ff:Ie,fff:W,ffff:V,F:Ot,FF:Me,FFF:L,FFFF:Re};class fn{static create(m,d={}){return new fn(m,d)}static parseFormat(m){let d=null,_="",D=!1;const j=[];for(let ne=0;ne0&&j.push({literal:D||/^\s+$/.test(_),val:_}),d=null,_="",D=!D):D||we===d?_+=we:(_.length>0&&j.push({literal:/^\s+$/.test(_),val:_}),_=we,d=we)}return _.length>0&&j.push({literal:D||/^\s+$/.test(_),val:_}),j}static macroTokenToFormatOpts(m){return Fn[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 _={...this.opts};return d>0&&(_.padTo=d),this.loc.numberFormatter(_).format(m)}formatDateTimeFromString(m,d){const _="en"===this.loc.listingMode(),D=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,j=(Zn,_r)=>this.loc.extract(m,Zn,_r),ne=Zn=>m.isOffsetFixed&&0===m.offset&&Zn.allowZ?"Z":m.isValid?m.zone.formatOffset(m.ts,Zn.format):"",Ye=(Zn,_r)=>_?function Y(v,m){return aa(m)[v.month-1]}(m,Zn):j(_r?{month:Zn}:{month:Zn,day:"numeric"},"month"),yt=(Zn,_r)=>_?function Ya(v,m){return Zo(m)[v.weekday-1]}(m,Zn):j(_r?{weekday:Zn}:{weekday:Zn,month:"long",day:"numeric"},"weekday"),cn=Zn=>{const _r=fn.macroTokenToFormatOpts(Zn);return _r?this.formatWithSystemDefault(m,_r):Zn},gn=Zn=>_?function Ve(v,m){return bl(m)[v.year<0?0:1]}(m,Zn):j({era:Zn},"era");return Et(fn.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 ne({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return ne({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return ne({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return m.zone.offsetName(m.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return m.zone.offsetName(m.ts,{format:"long",locale:this.loc.locale});case"z":return m.zoneName;case"a":return _?function Xa(v){return vi[v.hour<12?0:1]}(m):j({hour:"numeric",hourCycle:"h12"},"dayperiod");case"d":return D?j({day:"numeric"},"day"):this.num(m.day);case"dd":return D?j({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?j({month:"numeric",day:"numeric"},"month"):this.num(m.month);case"LL":return D?j({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?j({month:"numeric"},"month"):this.num(m.month);case"MM":return D?j({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?j({year:"numeric"},"year"):this.num(m.year);case"yy":return D?j({year:"2-digit"},"year"):this.num(m.year.toString().slice(-2),2);case"yyyy":return D?j({year:"numeric"},"year"):this.num(m.year,4);case"yyyyyy":return D?j({year:"numeric"},"year"):this.num(m.year,6);case"G":return gn("short");case"GG":return gn("long");case"GGGGG":return gn("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 cn(Zn)}})}formatDurationFromString(m,d){const _=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}},j=fn.parseFormat(d),ne=j.reduce((Ye,{literal:yt,val:cn})=>yt?Ye:Ye.concat(cn),[]);return Et(j,(Ye=>yt=>{const cn=_(yt);return cn?this.num(Ye.get(cn),yt.length):yt})(m.shiftTo(...ne.map(_).filter(Ye=>Ye))))}}const cr=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function dr(...v){const m=v.reduce((d,_)=>d+_.source,"");return RegExp(`^${m}$`)}function Gr(...v){return m=>v.reduce(([d,_,D],j)=>{const[ne,we,Ye]=j(m,D);return[{...d,...ne},we||_,Ye]},[{},null,1]).slice(0,2)}function Ki(v,...m){if(null==v)return[null,null];for(const[d,_]of m){const D=d.exec(v);if(D)return _(D)}return[null,null]}function Or(...v){return(m,d)=>{const _={};let D;for(D=0;Dvoid 0!==Zn&&(_r||Zn&&cn)?-Zn:Zn;return[{years:wr(ns(d)),months:wr(ns(_)),weeks:wr(ns(D)),days:wr(ns(j)),hours:wr(ns(ne)),minutes:wr(ns(we)),seconds:wr(ns(Ye),"-0"===Ye),milliseconds:wr(qr(yt),gn)}]}const nc={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function wl(v,m,d,_,D,j,ne){const we={year:2===m.length?tr(Fs(m)):Fs(m),month:yl.indexOf(d)+1,day:Fs(_),hour:Fs(D),minute:Fs(j)};return ne&&(we.second=Fs(ne)),v&&(we.weekday=v.length>3?ao.indexOf(v)+1:os.indexOf(v)+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(v){const[,m,d,_,D,j,ne,we,Ye,yt,cn,gn]=v,wr=wl(m,D,_,d,j,ne,we);let Zn;return Zn=Ye?nc[Ye]:yt?0:is(cn,gn),[wr,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(v){const[,m,d,_,D,j,ne,we]=v;return[wl(m,D,_,d,j,ne,we),Oi.utcInstance]}function la(v){const[,m,d,_,D,j,ne,we]=v;return[wl(m,we,d,_,D,j,ne),Oi.utcInstance]}const $a=dr(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,lo),gc=dr(/(\d{4})-?W(\d\d)(?:-?(\d))?/,lo),Nu=dr(/(\d{4})-?(\d{3})/,lo),rc=dr(ho),ja=Gr(function jt(v,m){return[{year:Pe(v,m),month:Pe(v,m+1,1),day:Pe(v,m+2,1)},null,m+3]},gr,ni,Do),zl=Gr(Qa,gr,ni,Do),ba=Gr(ya,gr,ni,Do),qa=Gr(gr,ni,Do),Ea=Gr(gr),_c=dr(/(\d{4})-(\d\d)-(\d\d)/,Q),al=dr(ce),Dl=Gr(gr,ni,Do),Sl="Invalid Duration",Xl={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},...Xl},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},...Xl},Ar=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],So=Ar.slice(0).reverse();function no(v,m,d=!1){const _={values:d?m.values:{...v.values,...m.values||{}},loc:v.loc.clone(m.loc),conversionAccuracy:m.conversionAccuracy||v.conversionAccuracy,matrix:m.matrix||v.matrix};return new Fr(_)}function $o(v,m){let d=m.milliseconds??0;for(const _ of So.slice(1))m[_]&&(d+=m[_]*v[_].milliseconds);return d}function es(v,m){const d=$o(v,m)<0?-1:1;Ar.reduceRight((_,D)=>{if($r(m[D]))return _;if(_){const ne=v[D][_],we=Math.floor(m[_]*d/ne);m[D]+=we*d,m[_]-=we*ne*d}return D},null),Ar.reduce((_,D)=>{if($r(m[D]))return _;if(_){const j=m[_]%1;m[_]-=j,m[D]+=j*v[_][D]}return D},null)}class Fr{constructor(m){const d="longterm"===m.conversionAccuracy||!1;let _=d?Gn:xa;m.matrix&&(_=m.matrix),this.values=m.values,this.loc=m.loc||hr.create(),this.conversionAccuracy=d?"longterm":"casual",this.invalid=m.invalid||null,this.matrix=_,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:hr.fromObject(d),conversionAccuracy:d.conversionAccuracy,matrix:d.matrix})}static fromDurationLike(m){if(Gi(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[_]=function wa(v){return Ki(v,[Ba,Ru])}(m);return _?Fr.fromObject(_,d):Fr.invalid("unparsable",`the input "${m}" can't be parsed as ISO 8601`)}static fromISOTime(m,d){const[_]=function Jo(v){return Ki(v,[qo,Ea])}(m);return _?Fr.fromObject(_,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 _=m instanceof ht?m:new ht(m,d);if(Oe.throwOnInvalid)throw new ze(_);return new Fr({invalid:_})}static normalizeUnit(m){const d={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[m&&m.toLowerCase()];if(!d)throw new Ut(m);return d}static isDuration(m){return m&&m.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(m,d={}){const _={...d,floor:!1!==d.round&&!1!==d.floor};return this.isValid?fn.create(this.loc,_).formatDurationFromString(this,m):Sl}toHuman(m={}){if(!this.isValid)return Sl;const d=Ar.map(_=>{const D=this.values[_];return $r(D)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...m,unit:_.slice(0,-1)}).format(D)}).filter(_=>_);return this.loc.listFormatter({type:"conjunction",style:m.listStyle||"narrow",...m}).format(d)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let m="P";return 0!==this.years&&(m+=this.years+"Y"),(0!==this.months||0!==this.quarters)&&(m+=this.months+3*this.quarters+"M"),0!==this.weeks&&(m+=this.weeks+"W"),0!==this.days&&(m+=this.days+"D"),(0!==this.hours||0!==this.minutes||0!==this.seconds||0!==this.milliseconds)&&(m+="T"),0!==this.hours&&(m+=this.hours+"H"),0!==this.minutes&&(m+=this.minutes+"M"),(0!==this.seconds||0!==this.milliseconds)&&(m+=cs(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),_={};for(const D of Ar)(Ps(d.values,D)||Ps(this.values,D))&&(_[D]=d.get(D)+this.get(D));return no(this,{values:_},!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 _ of Object.keys(this.values))d[_]=Is(m(this.values[_],_));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:_,matrix:D}={}){return no(this,{loc:this.loc.clone({locale:m,numberingSystem:d}),matrix:D,conversionAccuracy:_})}as(m){return this.isValid?this.shiftTo(m).get(m):NaN}normalize(){if(!this.isValid)return this;const m=this.toObject();return es(this.matrix,m),no(this,{values:m},!0)}rescale(){return this.isValid?no(this,{values:function Po(v){const m={};for(const[d,_]of Object.entries(v))0!==_&&(m[d]=_);return m}(this.normalize().shiftToAll().toObject())},!0):this}shiftTo(...m){if(!this.isValid)return this;if(0===m.length)return this;m=m.map(ne=>Fr.normalizeUnit(ne));const d={},_={},D=this.toObject();let j;for(const ne of Ar)if(m.indexOf(ne)>=0){j=ne;let we=0;for(const yt in _)we+=this.matrix[yt][ne]*_[yt],_[yt]=0;Gi(D[ne])&&(we+=D[ne]);const Ye=Math.trunc(we);d[ne]=Ye,_[ne]=(1e3*we-1e3*Ye)/1e3}else Gi(D[ne])&&(_[ne]=D[ne]);for(const ne in _)0!==_[ne]&&(d[j]+=ne===j?_[ne]:_[ne]/this.matrix[j][ne]);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(_,D){return void 0===_||0===_?void 0===D||0===D:_===D}for(const _ of Ar)if(!d(this.values[_],m.values[_]))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 _=m instanceof ht?m:new ht(m,d);if(Oe.throwOnInvalid)throw new wt(_);return new Rr({invalid:_})}static fromDateTimes(m,d){const _=tl(m),D=tl(d),j=function Os(v,m){return v&&v.isValid?m&&m.isValid?mm}isBefore(m){return!!this.isValid&&this.e<=m}contains(m){return!!this.isValid&&this.s<=m&&this.e>m}set({start:m,end:d}={}){return this.isValid?Rr.fromDateTimes(m||this.s,d||this.e):this}splitAt(...m){if(!this.isValid)return[];const d=m.map(tl).filter(ne=>this.contains(ne)).sort((ne,we)=>ne.toMillis()-we.toMillis()),_=[];let{s:D}=this,j=0;for(;D+this.e?this.e:ne;_.push(Rr.fromDateTimes(D,we)),D=we,j+=1}return _}splitBy(m){const d=Fr.fromDurationLike(m);if(!this.isValid||!d.isValid||0===d.as("milliseconds"))return[];let j,{s:_}=this,D=1;const ne=[];for(;_Ye*D));j=+we>+this.e?this.e:we,ne.push(Rr.fromDateTimes(_,j)),_=j,D+=1}return ne}divideEqually(m){return this.isValid?this.splitBy(this.length()/m).slice(0,m):[]}overlaps(m){return this.e>m.s&&this.s=m.e}equals(m){return!(!this.isValid||!m.isValid)&&this.s.equals(m.s)&&this.e.equals(m.e)}intersection(m){if(!this.isValid)return this;const d=this.s>m.s?this.s:m.s,_=this.e=_?null:Rr.fromDateTimes(d,_)}union(m){return this.isValid?Rr.fromDateTimes(this.sm.e?this.e:m.e):this}static merge(m){const[d,_]=m.sort((D,j)=>D.s-j.s).reduce(([D,j],ne)=>j?j.overlaps(ne)||j.abutsStart(ne)?[D,j.union(ne)]:[D.concat([j]),ne]:[D,ne],[[],null]);return _&&d.push(_),d}static xor(m){let d=null,_=0;const D=[],j=m.map(Ye=>[{time:Ye.s,type:"s"},{time:Ye.e,type:"e"}]),we=Array.prototype.concat(...j).sort((Ye,yt)=>Ye.time-yt.time);for(const Ye of we)_+="s"===Ye.type?1:-1,1===_?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?fn.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 xr.isValidZone(m)}static normalizeZone(m){return oi(m,Oe.defaultZone)}static getStartOfWeek({locale:m=null,locObj:d=null}={}){return(d||hr.create(m)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:m=null,locObj:d=null}={}){return(d||hr.create(m)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:m=null,locObj:d=null}={}){return(d||hr.create(m)).getWeekendDays().slice()}static months(m="long",{locale:d=null,numberingSystem:_=null,locObj:D=null,outputCalendar:j="gregory"}={}){return(D||hr.create(d,_,j)).months(m)}static monthsFormat(m="long",{locale:d=null,numberingSystem:_=null,locObj:D=null,outputCalendar:j="gregory"}={}){return(D||hr.create(d,_,j)).months(m,!0)}static weekdays(m="long",{locale:d=null,numberingSystem:_=null,locObj:D=null}={}){return(D||hr.create(d,_,null)).weekdays(m)}static weekdaysFormat(m="long",{locale:d=null,numberingSystem:_=null,locObj:D=null}={}){return(D||hr.create(d,_,null)).weekdays(m,!0)}static meridiems({locale:m=null}={}){return hr.create(m).meridiems()}static eras(m="short",{locale:d=null}={}){return hr.create(d,null,"gregory").eras(m)}static features(){return{relative:Sr(),localeWeek:oa()}}}function ic(v,m){const d=D=>D.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),_=d(m)-d(v);return Math.floor(Fr.fromMillis(_).as("days"))}function Di(v,m=d=>d){return{regex:v,deser:([d])=>m(function Xo(v){let m=parseInt(v,10);if(isNaN(m)){m="";for(let d=0;d=j&&_<=ne&&(m+=_-j)}}return parseInt(m,10)}return m}(d))}}const ca="[ \xa0]",No=new RegExp(ca,"g");function U(v){return v.replace(/\./g,"\\.?").replace(No,ca)}function de(v){return v.replace(/\./g,"").replace(No," ").toLowerCase()}function q(v,m){return null===v?null:{regex:RegExp(v.map(U).join("|")),deser:([d])=>v.findIndex(_=>de(d)===de(_))+m}}function ve(v,m){return{regex:v,deser:([,d,_])=>is(d,_),groups:m}}function rt(v){return{regex:v,deser:([m])=>m}}function bn(v){return v.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(v,m){return Array.prototype.concat(...v.map(d=>function Fo(v,m){if(v.literal)return v;const _=Al(fn.macroTokenToFormatOpts(v.val),m);return null==_||_.includes(void 0)?v:_}(d,m)))}class hs{constructor(m,d){if(this.locale=m,this.format=d,this.tokens=Wo(fn.parseFormat(d),m),this.units=this.tokens.map(_=>function Rn(v,m){const d=eo(m),_=eo(m,"{2}"),D=eo(m,"{3}"),j=eo(m,"{4}"),ne=eo(m,"{6}"),we=eo(m,"{1,2}"),Ye=eo(m,"{1,3}"),yt=eo(m,"{1,6}"),cn=eo(m,"{1,9}"),gn=eo(m,"{2,4}"),wr=eo(m,"{4,6}"),Zn=yi=>({regex:RegExp(bn(yi.val)),deser:([go])=>go,literal:!0}),ei=(yi=>{if(v.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(gn,tr);case"yyyy":case"kkkk":return Di(j);case"yyyyy":return Di(wr);case"yyyyyy":return Di(ne);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(_);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 rt(cn);case"uu":return rt(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 ve(new RegExp(`([+-]${we.source})(?::(${_.source}))?`),2);case"ZZZ":return ve(new RegExp(`([+-]${we.source})(${_.source})?`),2);case"z":return rt(/[a-z_+-/]{1,256}?/i);case" ":return rt(/[^\S\n\r]/);default:return Zn(yi)}})(v)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"};return ei.token=v,ei}(_,m)),this.disqualifyingUnit=this.units.find(_=>_.invalidReason),!this.disqualifyingUnit){const[_,D]=function Li(v){return[`^${v.map(d=>d.regex).reduce((d,_)=>`${d}(${_.source})`,"")}$`,v]}(this.units);this.regex=RegExp(_,"i"),this.handlers=D}}explainFromTokens(m){if(this.isValid){const[d,_]=function Hr(v,m,d){const _=v.match(m);if(_){const D={};let j=1;for(const ne in d)if(Ps(d,ne)){const we=d[ne],Ye=we.groups?we.groups+1:1;!we.literal&&we.token&&(D[we.token.val[0]]=we.deser(_.slice(j,j+Ye))),j+=Ye}return[_,D]}return[_,{}]}(m,this.regex,this.handlers),[D,j,ne]=_?function xi(v){let _,d=null;return $r(v.z)||(d=xr.create(v.z)),$r(v.Z)||(d||(d=new Oi(v.Z)),_=v.Z),$r(v.q)||(v.M=3*(v.q-1)+1),$r(v.h)||(v.h<12&&1===v.a?v.h+=12:12===v.h&&0===v.a&&(v.h=0)),0===v.G&&v.y&&(v.y=-v.y),$r(v.u)||(v.S=qr(v.u)),[Object.keys(v).reduce((j,ne)=>{const we=(j=>{switch(j){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}})(ne);return we&&(j[we]=v[ne]),j},{}),d,_]}(_):[null,null,void 0];if(Ps(_,"a")&&Ps(_,"H"))throw new Be("Can't include meridiem when specifying 24-hour format");return{input:m,tokens:this.tokens,regex:this.regex,rawMatches:d,matches:_,result:D,zone:j,specificOffset:ne}}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(v,m,d){return new hs(v,d).explainFromTokens(m)}function Al(v,m){if(!v)return null;const _=fn.create(m,v).dtFormatter(function di(){return Qr||(Qr=Lr.fromMillis(1555555555555)),Qr}()),D=_.formatToParts(),j=_.resolvedOptions();return D.map(ne=>function Yr(v,m,d){const{type:_,value:D}=v;if("literal"===_){const Ye=/^\s+$/.test(D);return{literal:!Ye,val:Ye?" ":D}}let ne=_;"hour"===_&&(ne=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[ne];if("object"==typeof we&&(we=we[m[_]]),we)return{literal:!1,val:we}}(ne,v,j))}const Ca="Invalid DateTime",Zs=864e13;function Da(v){return new ht("unsupported zone",`the zone "${v.name}" is not supported`)}function ll(v){return null===v.weekData&&(v.weekData=Jn(v.c)),v.weekData}function Tl(v){return null===v.localWeekData&&(v.localWeekData=Jn(v.c,v.loc.getMinDaysInFirstWeek(),v.loc.getStartOfWeek())),v.localWeekData}function cl(v,m){const d={ts:v.ts,zone:v.zone,c:v.c,o:v.o,loc:v.loc,invalid:v.invalid};return new Lr({...d,...m,old:d})}function ua(v,m,d){let _=v-60*m*1e3;const D=d.offset(_);if(m===D)return[_,m];_-=60*(D-m)*1e3;const j=d.offset(_);return D===j?[_,D]:[v-60*Math.min(D,j)*1e3,Math.max(D,j)]}function Yl(v,m){const d=new Date(v+=60*m*1e3);return{year:d.getUTCFullYear(),month:d.getUTCMonth()+1,day:d.getUTCDate(),hour:d.getUTCHours(),minute:d.getUTCMinutes(),second:d.getUTCSeconds(),millisecond:d.getUTCMilliseconds()}}function Fc(v,m,d){return ua(Es(v),m,d)}function ud(v,m){const d=v.o,_=v.c.year+Math.trunc(m.years),D=v.c.month+Math.trunc(m.months)+3*Math.trunc(m.quarters),j={...v.c,year:_,month:D,day:Math.min(v.c.day,zi(_,D))+Math.trunc(m.days)+7*Math.trunc(m.weeks)},ne=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(j);let[Ye,yt]=ua(we,d,v.zone);return 0!==ne&&(Ye+=ne,yt=v.zone.offset(Ye)),{ts:Ye,o:yt}}function oc(v,m,d,_,D,j){const{setZone:ne,zone:we}=d;if(v&&0!==Object.keys(v).length||m){const Ye=m||we,yt=Lr.fromObject(v,{...d,zone:Ye,specificOffset:j});return ne?yt:yt.setZone(we)}return Lr.invalid(new ht("unparsable",`the input "${D}" can't be parsed as ${_}`))}function Ao(v,m,d=!0){return v.isValid?fn.create(hr.create("en-US"),{allowZ:d,forceSimple:!0}).formatDateTimeFromString(v,m):null}function Ja(v,m){const d=v.c.year>9999||v.c.year<0;let _="";return d&&v.c.year>=0&&(_+="+"),_+=Ni(v.c.year,d?6:4),m?(_+="-",_+=Ni(v.c.month),_+="-",_+=Ni(v.c.day)):(_+=Ni(v.c.month),_+=Ni(v.c.day)),_}function el(v,m,d,_,D,j){let ne=Ni(v.c.hour);return m?(ne+=":",ne+=Ni(v.c.minute),(0!==v.c.millisecond||0!==v.c.second||!d)&&(ne+=":")):ne+=Ni(v.c.minute),(0!==v.c.millisecond||0!==v.c.second||!d)&&(ne+=Ni(v.c.second),(0!==v.c.millisecond||!_)&&(ne+=".",ne+=Ni(v.c.millisecond,3))),D&&(v.isOffsetFixed&&0===v.offset&&!j?ne+="Z":v.o<0?(ne+="-",ne+=Ni(Math.trunc(-v.o/60)),ne+=":",ne+=Ni(Math.trunc(-v.o%60))):(ne+="+",ne+=Ni(Math.trunc(v.o/60)),ne+=":",ne+=Ni(Math.trunc(v.o%60)))),j&&(ne+="["+v.zone.ianaName+"]"),ne}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},Ql={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"],vc=["year","ordinal","hour","minute","second","millisecond"];function dd(v){switch(v.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return function nh(v){const m={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[v.toLowerCase()];if(!m)throw new Ut(v);return m}(v)}}function ou(v,m){const d=oi(m.zone,Oe.defaultZone);if(!d.isValid)return Lr.invalid(Da(d));const _=hr.fromObject(m);let D,j;if($r(v.year))D=Oe.now();else{for(const Ye of Ns)$r(v[Ye])&&(v[Ye]=qs[Ye]);const ne=ai(v)||_o(v);if(ne)return Lr.invalid(ne);const we=function iu(v){return ul[v]||(void 0===da&&(da=Oe.now()),ul[v]=v.offset(da)),ul[v]}(d);[D,j]=Fc(v,we,d)}return new Lr({ts:D,zone:d,loc:_,o:j})}function Bc(v,m,d){const _=!!$r(d.round)||d.round,D=(ne,we)=>(ne=cs(ne,_||d.calendary?0:2,!0),m.loc.clone(d).relFormatter(d).format(ne,we)),j=ne=>d.calendary?m.hasSame(v,ne)?0:m.startOf(ne).diff(v.startOf(ne),ne).get(ne):m.diff(v,ne).get(ne);if(d.unit)return D(j(d.unit),d.unit);for(const ne of d.units){const we=j(ne);if(Math.abs(we)>=1)return D(we,ne)}return D(v>m?-0:0,d.units[d.units.length-1])}function yc(v){let d,m={};return v.length>0&&"object"==typeof v[v.length-1]?(m=v[v.length-1],d=Array.from(v).slice(0,v.length-1)):d=Array.from(v),[m,d]}let da,ul={};class Lr{constructor(m){const d=m.zone||Oe.defaultZone;let _=m.invalid||(Number.isNaN(m.ts)?new ht("invalid input"):null)||(d.isValid?null:Da(d));this.ts=$r(m.ts)?Oe.now():m.ts;let D=null,j=null;if(!_)if(m.old&&m.old.ts===this.ts&&m.old.zone.equals(d))[D,j]=[m.old.c,m.old.o];else{const we=Gi(m.o)&&!m.old?m.o:d.offset(this.ts);D=Yl(this.ts,we),_=Number.isNaN(D.year)?new ht("invalid input"):null,D=_?null:D,j=_?null:we}this._zone=d,this.loc=m.loc||hr.create(),this.invalid=_,this.weekData=null,this.localWeekData=null,this.c=D,this.o=j,this.isLuxonDateTime=!0}static now(){return new Lr({})}static local(){const[m,d]=yc(arguments),[_,D,j,ne,we,Ye,yt]=d;return ou({year:_,month:D,day:j,hour:ne,minute:we,second:Ye,millisecond:yt},m)}static utc(){const[m,d]=yc(arguments),[_,D,j,ne,we,Ye,yt]=d;return m.zone=Oi.utcInstance,ou({year:_,month:D,day:j,hour:ne,minute:we,second:Ye,millisecond:yt},m)}static fromJSDate(m,d={}){const _=function ia(v){return"[object Date]"===Object.prototype.toString.call(v)}(m)?m.valueOf():NaN;if(Number.isNaN(_))return Lr.invalid("invalid input");const D=oi(d.zone,Oe.defaultZone);return D.isValid?new Lr({ts:_,zone:D,loc:hr.fromObject(d)}):Lr.invalid(Da(D))}static fromMillis(m,d={}){if(Gi(m))return m<-Zs||m>Zs?Lr.invalid("Timestamp out of range"):new Lr({ts:m,zone:oi(d.zone,Oe.defaultZone),loc:hr.fromObject(d)});throw new Ke(`fromMillis requires a numerical input, but received a ${typeof m} with value ${m}`)}static fromSeconds(m,d={}){if(Gi(m))return new Lr({ts:1e3*m,zone:oi(d.zone,Oe.defaultZone),loc:hr.fromObject(d)});throw new Ke("fromSeconds requires a numerical input")}static fromObject(m,d={}){m=m||{};const _=oi(d.zone,Oe.defaultZone);if(!_.isValid)return Lr.invalid(Da(_));const D=hr.fromObject(d),j=Bs(m,dd),{minDaysInFirstWeek:ne,startOfWeek:we}=bi(j,D),Ye=Oe.now(),yt=$r(d.specificOffset)?_.offset(Ye):d.specificOffset,cn=!$r(j.ordinal),gn=!$r(j.year),wr=!$r(j.month)||!$r(j.day),Zn=gn||wr,_r=j.weekYear||j.weekNumber;if((Zn||cn)&&_r)throw new Be("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(wr&&cn)throw new Be("Can't mix ordinal dates with month/day");const ei=_r||j.weekday&&!Zn;let yi,go,as=Yl(Ye,yt);ei?(yi=Js,go=zo,as=Jn(as,ne,we)):cn?(yi=vc,go=Ql,as=Ir(as)):(yi=Ns,go=qs);let To=!1;for(const Jl of yi)$r(j[Jl])?j[Jl]=To?go[Jl]:as[Jl]:To=!0;const ta=ei?function si(v,m=4,d=1){const _=ls(v.weekYear),D=Wi(v.weekNumber,1,ga(v.weekYear,m,d)),j=Wi(v.weekday,1,7);return _?D?!j&&hn("weekday",v.weekday):hn("week",v.weekNumber):hn("weekYear",v.weekYear)}(j,ne,we):cn?function mr(v){const m=ls(v.year),d=Wi(v.ordinal,1,to(v.year));return m?!d&&hn("ordinal",v.ordinal):hn("year",v.year)}(j):ai(j),eu=ta||_o(j);if(eu)return Lr.invalid(eu);const mc=ei?sr(j,ne,we):cn?pr(j):j,[na,Ra]=Fc(mc,yt,_),jl=new Lr({ts:na,zone:_,o:Ra,loc:D});return j.weekday&&Zn&&m.weekday!==jl.weekday?Lr.invalid("mismatched weekday",`you can't specify both a weekday of ${j.weekday} and a date of ${jl.toISO()}`):jl.isValid?jl:Lr.invalid(jl.invalid)}static fromISO(m,d={}){const[_,D]=function Cl(v){return Ki(v,[$a,ja],[gc,zl],[Nu,ba],[rc,qa])}(m);return oc(_,D,d,"ISO 8601",m)}static fromRFC2822(m,d={}){const[_,D]=function Ro(v){return Ki(function Ua(v){return v.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(v),[us,Us])}(m);return oc(_,D,d,"RFC 2822",m)}static fromHTTP(m,d={}){const[_,D]=function co(v){return Ki(v,[Lo,xl],[Za,xl],[El,la])}(m);return oc(_,D,d,"HTTP",d)}static fromFormat(m,d,_={}){if($r(m)||$r(d))throw new Ke("fromFormat requires an input string and a format");const{locale:D=null,numberingSystem:j=null}=_,ne=hr.fromOpts({locale:D,numberingSystem:j,defaultToEN:!0}),[we,Ye,yt,cn]=function Rs(v,m,d){const{result:_,zone:D,specificOffset:j,invalidReason:ne}=jo(v,m,d);return[_,D,j,ne]}(ne,m,d);return cn?Lr.invalid(cn):oc(we,Ye,_,`format ${d}`,m,yt)}static fromString(m,d,_={}){return Lr.fromFormat(m,d,_)}static fromSQL(m,d={}){const[_,D]=function Gl(v){return Ki(v,[_c,ja],[al,Dl])}(m);return oc(_,D,d,"SQL",m)}static invalid(m,d=null){if(!m)throw new Ke("need to specify a reason the DateTime is invalid");const _=m instanceof ht?m:new ht(m,d);if(Oe.throwOnInvalid)throw new Ze(_);return new Lr({invalid:_})}static isDateTime(m){return m&&m.isLuxonDateTime||!1}static parseFormatForOpts(m,d={}){const _=Al(m,hr.fromObject(d));return _?_.map(D=>D?D.val:null).join(""):null}static expandFormat(m,d={}){return Wo(fn.parseFormat(m),hr.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?Ir(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,_=Es(this.c),D=this.zone.offset(_-m),j=this.zone.offset(_+m),ne=this.zone.offset(_-D*d),we=this.zone.offset(_-j*d);if(ne===we)return[this];const Ye=_-ne*d,yt=_-we*d,cn=Yl(Ye,ne),gn=Yl(yt,we);return cn.hour===gn.hour&&cn.minute===gn.minute&&cn.second===gn.second&&cn.millisecond===gn.millisecond?[cl(this,{ts:Ye}),cl(this,{ts:yt})]:[this]}get isInLeapYear(){return rs(this.year)}get daysInMonth(){return zi(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:_,calendar:D}=fn.create(this.loc.clone(m),m).resolvedOptions(this);return{locale:d,numberingSystem:_,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:_=!1}={}){if((m=oi(m,Oe.defaultZone)).equals(this.zone))return this;if(m.isValid){let D=this.ts;if(d||_){const j=m.offset(this.ts),ne=this.toObject();[D]=Fc(ne,j,m)}return cl(this,{ts:D,zone:m})}return Lr.invalid(Da(m))}reconfigure({locale:m,numberingSystem:d,outputCalendar:_}={}){return cl(this,{loc:this.loc.clone({locale:m,numberingSystem:d,outputCalendar:_})})}setLocale(m){return this.reconfigure({locale:m})}set(m){if(!this.isValid)return this;const d=Bs(m,dd),{minDaysInFirstWeek:_,startOfWeek:D}=bi(d,this.loc),j=!$r(d.weekYear)||!$r(d.weekNumber)||!$r(d.weekday),ne=!$r(d.ordinal),we=!$r(d.year),Ye=!$r(d.month)||!$r(d.day);if((we||Ye||ne)&&(d.weekYear||d.weekNumber))throw new Be("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(Ye&&ne)throw new Be("Can't mix ordinal dates with month/day");let gn;j?gn=sr({...Jn(this.c,_,D),...d},_,D):$r(d.ordinal)?(gn={...this.toObject(),...d},$r(d.day)&&(gn.day=Math.min(zi(gn.year,gn.month),gn.day))):gn=pr({...Ir(this.c),...d});const[wr,Zn]=Fc(gn,this.o,this.zone);return cl(this,{ts:wr,o:Zn})}plus(m){return this.isValid?cl(this,ud(this,Fr.fromDurationLike(m))):this}minus(m){return this.isValid?cl(this,ud(this,Fr.fromDurationLike(m).negate())):this}startOf(m,{useLocaleWeeks:d=!1}={}){if(!this.isValid)return this;const _={},D=Fr.normalizeUnit(m);switch(D){case"years":_.month=1;case"quarters":case"months":_.day=1;case"weeks":case"days":_.hour=0;case"hours":_.minute=0;case"minutes":_.second=0;case"seconds":_.millisecond=0}if("weeks"===D)if(d){const j=this.loc.getStartOfWeek(),{weekday:ne}=this;nethis.valueOf(),yt=function ro(v,m,d,_){let[D,j,ne,we]=function Va(v,m,d){const _=[["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 cn=ic(Ye,yt);return(cn-cn%7)/7}],["days",ic]],D={},j=v;let ne,we;for(const[Ye,yt]of _)d.indexOf(Ye)>=0&&(ne=Ye,D[Ye]=yt(v,m),we=j.plus(D),we>m?(D[Ye]--,(v=j.plus(D))>m&&(we=v,D[Ye]--,v=j.plus(D))):v=we);return[v,D,we,ne]}(v,m,d);const Ye=m-D,yt=d.filter(gn=>["hours","minutes","seconds","milliseconds"].indexOf(gn)>=0);0===yt.length&&(ne0?Fr.fromMillis(Ye,_).shiftTo(...yt).plus(cn):cn}(ne?this:m,ne?m:this,j,D);return ne?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,_){if(!this.isValid)return!1;const D=m.valueOf(),j=this.setZone(m.zone,{keepLocalTime:!0});return j.startOf(d,_)<=D&&D<=j.endOf(d,_)}equals(m){return this.isValid&&m.isValid&&this.valueOf()===m.valueOf()&&this.zone.equals(m.zone)&&this.loc.equals(m.loc)}toRelative(m={}){if(!this.isValid)return null;const d=m.base||Lr.fromObject({},{zone:this.zone}),_=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,_={}){const{locale:D=null,numberingSystem:j=null}=_;return jo(hr.fromOpts({locale:D,numberingSystem:j,defaultToEN:!0}),m,d)}static fromStringExplain(m,d,_={}){return Lr.fromFormatExplain(m,d,_)}static buildFormatParser(m,d={}){const{locale:_=null,numberingSystem:D=null}=d,j=hr.fromOpts({locale:_,numberingSystem:D,defaultToEN:!0});return new hs(j,m)}static fromFormatParser(m,d,_={}){if($r(m)||$r(d))throw new Ke("fromFormatParser requires an input string and a format parser");const{locale:D=null,numberingSystem:j=null}=_,ne=hr.fromOpts({locale:D,numberingSystem:j,defaultToEN:!0});if(!ne.equals(d.locale))throw new Ke(`fromFormatParser called with a locale of ${ne}, but the format parser was created for ${d.locale}`);const{result:we,zone:Ye,specificOffset:yt,invalidReason:cn}=d.explainFromTokens(m);return cn?Lr.invalid(cn):oc(we,Ye,_,`format ${d.format}`,m,yt)}static get DATE_SHORT(){return se}static get DATE_MED(){return qe}static get DATE_MED_WITH_WEEKDAY(){return Nt}static get DATE_FULL(){return tn}static get DATE_HUGE(){return pn}static get TIME_SIMPLE(){return Wn}static get TIME_WITH_SECONDS(){return Pt}static get TIME_WITH_SHORT_OFFSET(){return en}static get TIME_WITH_LONG_OFFSET(){return an}static get TIME_24_SIMPLE(){return Yn}static get TIME_24_WITH_SECONDS(){return Sn}static get TIME_24_WITH_SHORT_OFFSET(){return Xt}static get TIME_24_WITH_LONG_OFFSET(){return Mt}static get DATETIME_SHORT(){return Gt}static get DATETIME_SHORT_WITH_SECONDS(){return Ot}static get DATETIME_MED(){return Ie}static get DATETIME_MED_WITH_SECONDS(){return Me}static get DATETIME_MED_WITH_WEEKDAY(){return nt}static get DATETIME_FULL(){return W}static get DATETIME_FULL_WITH_SECONDS(){return L}static get DATETIME_HUGE(){return V}static get DATETIME_HUGE_WITH_SECONDS(){return Re}}function tl(v){if(Lr.isDateTime(v))return v;if(v&&v.valueOf&&Gi(v.valueOf()))return Lr.fromJSDate(v);if(v&&"object"==typeof v)return Lr.fromObject(v);throw new Ke(`Unknown datetime argument: ${v}, of type ${typeof v}`)}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 v extends Yt.MJ{_useUTC;_firstDayOfWeek;_defaultOutputCalendar;constructor(){super();const d=(0,c.WQX)(Yt.Ju,{optional:!0}),_=(0,c.WQX)(ha,{optional:!0});this._useUTC=!!_?.useUtc,this._firstDayOfWeek=_?.firstDayOfWeek||0,this._defaultOutputCalendar=_?.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 Lu(v,m){const d=Array(v);for(let _=0;_d.format(Lr.utc(2017,1,_+1).toJSDate()))}getDayOfWeekNames(d){const _=po.weekdays(d,{locale:this.locale});return _.unshift(_.pop()),_}getYearName(d){return d.toFormat("yyyy",this._getOptions())}getFirstDayOfWeek(){return this._firstDayOfWeek}getNumDaysInMonth(d){return d.daysInMonth}clone(d){return Lr.fromObject(d.toObject(),this._getOptions())}createDate(d,_,D){const j=this._getOptions();if(_<0||_>11)throw Error(`Invalid month index "${_}". Month index has to be between 0 and 11.`);if(D<1)throw Error(`Invalid date "${D}". Date has to be greater than 0.`);const ne=this._useUTC?Lr.utc(d,_+1,D,j):Lr.local(d,_+1,D,j);if(!this.isValid(ne))throw Error(`Invalid date "${D}". Reason: "${ne.invalidReason}".`);return ne}today(){const d=this._getOptions();return this._useUTC?Lr.utc(d):Lr.local(d)}parse(d,_){const D=this._getOptions();if("string"==typeof d&&d.length>0){const j=Lr.fromISO(d,D);if(this.isValid(j))return j;const ne=Array.isArray(_)?_:[_];if(!_.length)throw Error("Formats array must not be empty.");for(const we of ne){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,_){if(!this.isValid(d))throw Error("LuxonDateAdapter: Cannot format invalid date.");return this._useUTC?d.setLocale(this.locale).setZone("utc").toFormat(_):d.setLocale(this.locale).toFormat(_)}addCalendarYears(d,_){return d.reconfigure(this._getOptions()).plus({years:_})}addCalendarMonths(d,_){return d.reconfigure(this._getOptions()).plus({months:_})}addCalendarDays(d,_){return d.reconfigure(this._getOptions()).plus({days:_})}toIso8601(d){return d.toISO()}deserialize(d){const _=this._getOptions();let D;if(d instanceof Date&&(D=Lr.fromJSDate(d,_)),"string"==typeof d){if(!d)return null;D=Lr.fromISO(d,_)}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,_,D,j){return this.clone(d).set({hour:_,minute:D,second:j,millisecond:0})}getHours(d){return d.hour}getMinutes(d){return d.minute}getSeconds(d){return d.second}parseTime(d,_){const D=this.parse(d,_);return(!D||!this.isValid(D))&&"string"==typeof d&&this.parse(d.replace(/[^0-9:(AM|PM)]/gi,""),_)||D}addSeconds(d,_){return d.reconfigure(this._getOptions()).plus({seconds:_})}_getOptions(){return{zone:this._useUTC?"utc":void 0,locale:this.locale,outputCalendar:this._defaultOutputCalendar}}static \u0275fac=function(_){return new(_||v)};static \u0275prov=c.jDH({token:v,factory:v.\u0275fac})}return v})();var Tr=r(1204);function $c(v){return new c.wOt(3e3,!1)}function Ml(v){switch(v.length){case 0:return new Tr.sf;case 1:return v[0];default:return new Tr.ui(v)}}function kl(v,m,d=new Map,_=new Map){const D=[],j=[];let ne=-1,we=null;if(m.forEach(Ye=>{const yt=Ye.get("offset"),cn=yt==ne,gn=cn&&we||new Map;Ye.forEach((wr,Zn)=>{let _r=Zn,ei=wr;if("offset"!==Zn)switch(_r=v.normalizePropertyName(_r,D),ei){case Tr.FX:ei=d.get(Zn);break;case Tr.kp:ei=_.get(Zn);break;default:ei=v.normalizeStyleValue(Zn,_r,ei,D)}gn.set(_r,ei)}),cn||j.push(gn),we=gn,ne=yt}),D.length)throw function uf(){return new c.wOt(3502,!1)}();return j}function fs(v,m,d,_){switch(m){case"start":v.onStart(()=>_(d&&ac(d,"start",v)));break;case"done":v.onDone(()=>_(d&&ac(d,"done",v)));break;case"destroy":v.onDestroy(()=>_(d&&ac(d,"destroy",v)))}}function ac(v,m,d){const j=jc(v.element,v.triggerName,v.fromState,v.toState,m||v.phaseName,d.totalTime??v.totalTime,!!d.disabled),ne=v._data;return null!=ne&&(j._data=ne),j}function jc(v,m,d,_,D="",j=0,ne){return{element:v,triggerName:m,fromState:d,toState:_,phaseName:D,totalTime:j,disabled:!!ne}}function Aa(v,m,d){let _=v.get(m);return _||v.set(m,_=d),_}function ff(v){const m=v.indexOf(":");return[v.substring(1,m),v.slice(m+1)]}const Op=typeof document>"u"?null:document.documentElement;function Uu(v){const m=v.parentNode||v.host||null;return m===Op?null:m}let ea=null,js=!1;function O(v,m){for(;m;){if(m===v)return!0;m=Uu(m)}return!1}function B(v,m,d){if(d)return Array.from(v.querySelectorAll(m));const _=v.querySelector(m);return _?[_]:[]}let oe=(()=>{class v{validateStyleProperty(d){return function Il(v){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 fd(v){return"ebkit"==v.substring(1,6)}(v)&&(m=v in ea.style,!m&&js&&(m="Webkit"+v.charAt(0).toUpperCase()+v.slice(1)in ea.style)),m}(d)}containsElement(d,_){return O(d,_)}getParentElement(d){return Uu(d)}query(d,_,D){return B(d,_,D)}computeStyle(d,_,D){return D||""}animate(d,_,D,j,ne,we=[],Ye){return new Tr.sf(D,j)}static \u0275fac=function(_){return new(_||v)};static \u0275prov=c.jDH({token:v,factory:v.\u0275fac})}return v})();class Ae{static NOOP=new oe}class $e{}const It=1e3,Tn="ng-enter",qt="ng-leave",Xn="ng-trigger",Kn=".ng-trigger",nr="ng-animating",kn=".ng-animating";function jn(v){if("number"==typeof v)return v;const m=v.match(/^(-?[\.\d]+)(m?s)/);return!m||m.length<2?0:Qn(parseFloat(m[1]),m[2])}function Qn(v,m){return"s"===m?v*It:v}function ir(v,m,d){return v.hasOwnProperty("duration")?v:function Vn(v,m,d){let D,j=0,ne="";if("string"==typeof v){const we=v.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&&(j=Qn(parseFloat(Ye),we[4]));const yt=we[5];yt&&(ne=yt)}else D=v;if(!d){let we=!1,Ye=m.length;D<0&&(m.push(function N(){return new c.wOt(3100,!1)}()),we=!0),j<0&&(m.push(function K(){return new c.wOt(3101,!1)}()),we=!0),we&&m.splice(Ye,0,$c())}return{duration:D,delay:j,easing:ne}}(v,m,d)}function kr(v,m,d){m.forEach((_,D)=>{const j=Ds(D);d&&!d.has(D)&&d.set(D,v.style[j]),v.style[j]=_})}function zr(v,m){m.forEach((d,_)=>{const D=Ds(_);v.style[D]=""})}function Ur(v){return Array.isArray(v)?1==v.length?v[0]:(0,Tr.K2)(v):v}const Qi=new RegExp("{{\\s*(.+?)\\s*}}","g");function ki(v){let m=[];if("string"==typeof v){let d;for(;d=Qi.exec(v);)m.push(d[1]);Qi.lastIndex=0}return m}function Zi(v,m,d){const _=`${v}`,D=_.replace(Qi,(j,ne)=>{let we=m[ne];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(v){return v.replace(Bo,(...m)=>m[1].toUpperCase())}function $i(v,m,d){switch(m.type){case Tr.If.Trigger:return v.visitTrigger(m,d);case Tr.If.State:return v.visitState(m,d);case Tr.If.Transition:return v.visitTransition(m,d);case Tr.If.Sequence:return v.visitSequence(m,d);case Tr.If.Group:return v.visitGroup(m,d);case Tr.If.Animate:return v.visitAnimate(m,d);case Tr.If.Keyframes:return v.visitKeyframes(m,d);case Tr.If.Style:return v.visitStyle(m,d);case Tr.If.Reference:return v.visitReference(m,d);case Tr.If.AnimateChild:return v.visitAnimateChild(m,d);case Tr.If.AnimateRef:return v.visitAnimateRef(m,d);case Tr.If.Query:return v.visitQuery(m,d);case Tr.If.Stagger:return v.visitStagger(m,d);default:throw function he(){return new c.wOt(3004,!1)}()}}function mo(v,m){return window.getComputedStyle(v)[m]}const 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 $e{normalizePropertyName(m,d){return Ds(m)}normalizeStyleValue(m,d,_,D){let j="";const ne=_.toString().trim();if(ps.has(d)&&0!==_&&"0"!==_)if("number"==typeof _)j="px";else{const we=_.match(/^[+-]?[\d\.]+([a-z]*)$/);we&&0==we[1].length&&D.push(function We(){return new c.wOt(3005,!1)}())}return ne+j}}const xc="*";const fa=new Set(["true","1"]),za=new Set(["false","0"]);function fl(v,m){const d=fa.has(v)||za.has(v),_=fa.has(m)||za.has(m);return(D,j)=>{let ne=v==xc||v==D,we=m==xc||m==j;return!ne&&d&&"boolean"==typeof D&&(ne=D?fa.has(v):za.has(v)),!we&&_&&"boolean"==typeof j&&(we=j?fa.has(m):za.has(m)),ne&&we}}const Zl=new RegExp("s*:selfs*,?","g");function Ol(v,m,d,_){return new ju(v).build(m,d,_)}class ju{_driver;constructor(m){this._driver=m}build(m,d,_){const D=new md(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 _=d.queryCount=0,D=d.depCount=0;const j=[],ne=[];return"@"==m.name.charAt(0)&&d.errors.push(function Dt(){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(cn=>{Ye.name=cn,j.push(this.visitState(Ye,d))}),Ye.name=yt}else if(we.type==Tr.If.Transition){const Ye=this.visitTransition(we,d);_+=Ye.queryCount,D+=Ye.depCount,ne.push(Ye)}else d.errors.push(function yn(){return new c.wOt(3007,!1)}())}),{type:Tr.If.Trigger,name:m.name,states:j,transitions:ne,queryCount:_,depCount:D,options:null}}visitState(m,d){const _=this.visitStyle(m.styles,d),D=m.options&&m.options.params||null;if(_.containsDynamicStyles){const j=new Set,ne=D||{};_.styles.forEach(we=>{we instanceof Map&&we.forEach(Ye=>{ki(Ye).forEach(yt=>{ne.hasOwnProperty(yt)||j.add(yt)})})}),j.size&&d.errors.push(function on(){return new c.wOt(3008,!1)}(0,j.values()))}return{type:Tr.If.State,name:m.name,style:_,options:D?{params:D}:null}}visitTransition(m,d){d.queryCount=0,d.depCount=0;const _=$i(this,Ur(m.animation),d),D=function dc(v,m){const d=[];return"string"==typeof v?v.split(/\s*,\s*/).forEach(_=>function Hc(v,m,d){if(":"==v[0]){const Ye=function Wc(v,m){switch(v){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(d,_)=>parseFloat(_)>parseFloat(d);case":decrement":return(d,_)=>parseFloat(_) *"}}(v,d);if("function"==typeof Ye)return void m.push(Ye);v=Ye}const _=v.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==_||_.length<4)return d.push(function wc(){return new c.wOt(3015,!1)}()),m;const D=_[1],j=_[2],ne=_[3];m.push(fl(D,ne)),"<"==j[0]&&(D!=xc||ne!=xc)&&m.push(fl(ne,D))}(_,d,m)):d.push(v),d}(m.expr,d.errors);return{type:Tr.If.Transition,matchers:D,animation:_,queryCount:d.queryCount,depCount:d.depCount,options:uu(m.options)}}visitSequence(m,d){return{type:Tr.If.Sequence,steps:m.steps.map(_=>$i(this,_,d)),options:uu(m.options)}}visitGroup(m,d){const _=d.currentTime;let D=0;const j=m.steps.map(ne=>{d.currentTime=_;const we=$i(this,ne,d);return D=Math.max(D,d.currentTime),we});return d.currentTime=D,{type:Tr.If.Group,steps:j,options:uu(m.options)}}visitAnimate(m,d){const _=function gd(v,m){if(v.hasOwnProperty("duration"))return v;if("number"==typeof v)return du(ir(v,m).duration,0,"");const d=v;if(d.split(/\s+/).some(j=>"{"==j.charAt(0)&&"{"==j.charAt(1))){const j=du(0,0,"");return j.dynamic=!0,j.strValue=d,j}const D=ir(d,m);return du(D.duration,D.delay,D.easing)}(m.timings,d.errors);d.currentAnimateTimings=_;let D,j=m.styles?m.styles:(0,Tr.iF)({});if(j.type==Tr.If.Keyframes)D=this.visitKeyframes(j,d);else{let ne=m.styles,we=!1;if(!ne){we=!0;const yt={};_.easing&&(yt.easing=_.easing),ne=(0,Tr.iF)(yt)}d.currentTime+=_.duration+_.delay;const Ye=this.visitStyle(ne,d);Ye.isEmptyStep=we,D=Ye}return d.currentAnimateTimings=null,{type:Tr.If.Animate,timings:_,style:D,options:null}}visitStyle(m,d){const _=this._makeStyleAst(m,d);return this._validateStyleAst(_,d),_}_makeStyleAst(m,d){const _=[],D=Array.isArray(m.styles)?m.styles:[m.styles];for(let we of D)"string"==typeof we?we===Tr.kp?_.push(we):d.errors.push(new c.wOt(3002,!1)):_.push(new Map(Object.entries(we)));let j=!1,ne=null;return _.forEach(we=>{if(we instanceof Map&&(we.has("easing")&&(ne=we.get("easing"),we.delete("easing")),!j))for(let Ye of we.values())if(Ye.toString().indexOf("{{")>=0){j=!0;break}}),{type:Tr.If.Style,styles:_,easing:ne,offset:m.offset,containsDynamicStyles:j,options:null}}_validateStyleAst(m,d){const _=d.currentAnimateTimings;let D=d.currentTime,j=d.currentTime;_&&j>0&&(j-=_.duration+_.delay),m.styles.forEach(ne=>{"string"!=typeof ne&&ne.forEach((we,Ye)=>{const yt=d.collectedStyles.get(d.currentQuerySelector),cn=yt.get(Ye);let gn=!0;cn&&(j!=D&&j>=cn.startTime&&D<=cn.endTime&&(d.errors.push(function hi(){return new c.wOt(3010,!1)}()),gn=!1),j=cn.startTime),gn&&yt.set(Ye,{startTime:j,endTime:D}),d.options&&function Yi(v,m,d){const _=m.params||{},D=ki(v);D.length&&D.forEach(j=>{_.hasOwnProperty(j)||d.push(function P(){return new c.wOt(3001,!1)}())})}(we,d.options,d.errors)})})}visitKeyframes(m,d){const _={type:Tr.If.Keyframes,styles:[],options:null};if(!d.currentAnimateTimings)return d.errors.push(function io(){return new c.wOt(3011,!1)}()),_;let j=0;const ne=[];let we=!1,Ye=!1,yt=0;const cn=m.steps.map(go=>{const as=this._makeStyleAst(go,d);let To=null!=as.offset?as.offset:function oh(v){if("string"==typeof v)return null;let m=null;if(Array.isArray(v))v.forEach(d=>{if(d instanceof Map&&d.has("offset")){const _=d;m=parseFloat(_.get("offset")),_.delete("offset")}});else if(v instanceof Map&&v.has("offset")){const d=v;m=parseFloat(d.get("offset")),d.delete("offset")}return m}(as.styles),ta=0;return null!=To&&(j++,ta=as.offset=To),Ye=Ye||ta<0||ta>1,we=we||ta0&&j{const To=wr>0?as==Zn?1:wr*as:ne[as],ta=To*yi;d.currentTime=_r+ei.delay+ta,ei.duration=ta,this._validateStyleAst(go,d),go.offset=To,_.styles.push(go)}),_}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 _=d.currentQuerySelector,D=m.options||{};d.queryCount++,d.currentQuery=m;const[j,ne]=function Rp(v){const m=!!v.split(/\s*,\s*/).find(d=>":self"==d);return m&&(v=v.replace(Zl,"")),v=v.replace(/@\*/g,Kn).replace(/@\w+/g,d=>Kn+"-"+d.slice(1)).replace(/:animating/g,kn),[v,m]}(m.selector);d.currentQuerySelector=_.length?_+" "+j:j,Aa(d.collectedStyles,d.currentQuerySelector,new Map);const we=$i(this,Ur(m.animation),d);return d.currentQuery=null,d.currentQuerySelector=_,{type:Tr.If.Query,selector:j,limit:D.limit||0,optional:!!D.optional,includeSelf:ne,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 _="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:_,options:null}}}class md{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(v){return v?(v={...v}).params&&(v.params=function Cc(v){return v?{...v}:null}(v.params)):v={},v}function du(v,m,d){return{duration:v,delay:m,easing:d}}function _d(v,m,d,_,D,j,ne=null,we=!1){return{type:1,element:v,keyframes:m,preStyleProps:d,postStyleProps:_,duration:D,delay:j,totalTime:D+j,easing:ne,subTimeline:we}}class sh{_map=new Map;get(m){return this._map.get(m)||[]}append(m,d){let _=this._map.get(m);_||this._map.set(m,_=[]),_.push(...d)}has(m){return this._map.has(m)}clear(){this._map.clear()}}const hu=new RegExp(":enter","g"),vd=new RegExp(":leave","g");function zc(v,m,d,_,D,j=new Map,ne=new Map,we,Ye,yt=[]){return(new lh).buildKeyframes(v,m,d,_,D,j,ne,we,Ye,yt)}class lh{buildKeyframes(m,d,_,D,j,ne,we,Ye,yt,cn=[]){yt=yt||new sh;const gn=new yd(m,d,yt,D,j,cn,[]);gn.options=Ye;const wr=Ye.delay?jn(Ye.delay):0;gn.currentTimeline.delayNextStep(wr),gn.currentTimeline.setStyles([ne],null,gn.errors,Ye),$i(this,_,gn);const Zn=gn.timelines.filter(_r=>_r.containsAnimation());if(Zn.length&&we.size){let _r;for(let ei=Zn.length-1;ei>=0;ei--){const yi=Zn[ei];if(yi.element===d){_r=yi;break}}_r&&!_r.allowOnlyTimelineStyles()&&_r.setStyles([we],null,gn.errors,Ye)}return Zn.length?Zn.map(_r=>_r.buildKeyframes()):[_d(d,[],[],[],0,wr,"",!1)]}visitTrigger(m,d){}visitState(m,d){}visitTransition(m,d){}visitAnimateChild(m,d){const _=d.subInstructions.get(d.element);if(_){const D=d.createSubContext(m.options),j=d.currentTimeline.currentTime,ne=this._visitSubInstructions(_,D,D.options);j!=ne&&d.transformIntoNewTimeline(ne)}d.previousNode=m}visitAnimateRef(m,d){const _=d.createSubContext(m.options);_.transformIntoNewTimeline(),this._applyAnimationRefDelays([m.options,m.animation.options],d,_),this.visitReference(m.animation,_),d.transformIntoNewTimeline(_.currentTimeline.currentTime),d.previousNode=m}_applyAnimationRefDelays(m,d,_){for(const D of m){const j=D?.delay;if(j){const ne="number"==typeof j?j:jn(Zi(j,D?.params??{},d.errors));_.delayNextStep(ne)}}}_visitSubInstructions(m,d,_){let j=d.currentTimeline.currentTime;const ne=null!=_.duration?jn(_.duration):null,we=null!=_.delay?jn(_.delay):null;return 0!==ne&&m.forEach(Ye=>{const yt=d.appendInstructionToTimeline(Ye,ne,we);j=Math.max(j,yt.duration+yt.delay)}),j}visitReference(m,d){d.updateOptions(m.options,!0),$i(this,m.animation,d),d.previousNode=m}visitSequence(m,d){const _=d.subContextCount;let D=d;const j=m.options;if(j&&(j.params||j.delay)&&(D=d.createSubContext(j),D.transformIntoNewTimeline(),null!=j.delay)){D.previousNode.type==Tr.If.Style&&(D.currentTimeline.snapshotCurrentStyles(),D.previousNode=fu);const ne=jn(j.delay);D.delayNextStep(ne)}m.steps.length&&(m.steps.forEach(ne=>$i(this,ne,D)),D.currentTimeline.applyStylesToKeyframe(),D.subContextCount>_&&D.transformIntoNewTimeline()),d.previousNode=m}visitGroup(m,d){const _=[];let D=d.currentTimeline.currentTime;const j=m.options&&m.options.delay?jn(m.options.delay):0;m.steps.forEach(ne=>{const we=d.createSubContext(m.options);j&&we.delayNextStep(j),$i(this,ne,we),D=Math.max(D,we.currentTimeline.currentTime),_.push(we.currentTimeline)}),_.forEach(ne=>d.currentTimeline.mergeTimelineCollectedStyles(ne)),d.transformIntoNewTimeline(D),d.previousNode=m}_visitTiming(m,d){if(m.dynamic){const _=m.strValue;return ir(d.params?Zi(_,d.params,d.errors):_,d.errors)}return{duration:m.duration,delay:m.delay,easing:m.easing}}visitAnimate(m,d){const _=d.currentAnimateTimings=this._visitTiming(m.timings,d),D=d.currentTimeline;_.delay&&(d.incrementTime(_.delay),D.snapshotCurrentStyles());const j=m.style;j.type==Tr.If.Keyframes?this.visitKeyframes(j,d):(d.incrementTime(_.duration),this.visitStyle(j,d),D.applyStylesToKeyframe()),d.currentAnimateTimings=null,d.previousNode=m}visitStyle(m,d){const _=d.currentTimeline,D=d.currentAnimateTimings;!D&&_.hasCurrentStyleProperties()&&_.forwardFrame();const j=D&&D.easing||m.easing;m.isEmptyStep?_.applyEmptyStep(j):_.setStyles(m.styles,j,d.errors,d.options),d.previousNode=m}visitKeyframes(m,d){const _=d.currentAnimateTimings,D=d.currentTimeline.duration,j=_.duration,we=d.createSubContext().currentTimeline;we.easing=_.easing,m.styles.forEach(Ye=>{we.forwardTime((Ye.offset||0)*j),we.setStyles(Ye.styles,Ye.easing,d.errors,d.options),we.applyStylesToKeyframe()}),d.currentTimeline.mergeTimelineCollectedStyles(we),d.transformIntoNewTimeline(D+j),d.previousNode=m}visitQuery(m,d){const _=d.currentTimeline.currentTime,D=m.options||{},j=D.delay?jn(D.delay):0;j&&(d.previousNode.type===Tr.If.Style||0==_&&d.currentTimeline.hasCurrentStyleProperties())&&(d.currentTimeline.snapshotCurrentStyles(),d.previousNode=fu);let ne=_;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,cn)=>{d.currentQueryIndex=cn;const gn=d.createSubContext(m.options,yt);j&&gn.delayNextStep(j),yt===d.element&&(Ye=gn.currentTimeline),$i(this,m.animation,gn),gn.currentTimeline.applyStylesToKeyframe(),ne=Math.max(ne,gn.currentTimeline.currentTime)}),d.currentQueryIndex=0,d.currentQueryTotal=0,d.transformIntoNewTimeline(ne),Ye&&(d.currentTimeline.mergeTimelineCollectedStyles(Ye),d.currentTimeline.snapshotCurrentStyles()),d.previousNode=m}visitStagger(m,d){const _=d.parentContext,D=d.currentTimeline,j=m.timings,ne=Math.abs(j.duration),we=ne*(d.currentQueryTotal-1);let Ye=ne*d.currentQueryIndex;switch(j.duration<0?"reverse":j.easing){case"reverse":Ye=we-Ye;break;case"full":Ye=_.currentStaggerTime}const cn=d.currentTimeline;Ye&&cn.delayNextStep(Ye);const gn=cn.currentTime;$i(this,m.animation,d),d.previousNode=m,_.currentStaggerTime=D.currentTime-gn+(D.startTime-_.currentTimeline.startTime)}}const fu={};class yd{_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,_,D,j,ne,we,Ye){this._driver=m,this.element=d,this.subInstructions=_,this._enterClassName=D,this._leaveClassName=j,this.errors=ne,this.timelines=we,this.currentTimeline=Ye||new Dc(this._driver,d,0),we.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(m,d){if(!m)return;const _=m;let D=this.options;null!=_.duration&&(D.duration=jn(_.duration)),null!=_.delay&&(D.delay=jn(_.delay));const j=_.params;if(j){let ne=D.params;ne||(ne=this.options.params={}),Object.keys(j).forEach(we=>{(!d||!ne.hasOwnProperty(we))&&(ne[we]=Zi(j[we],ne,this.errors))})}}_copyOptions(){const m={};if(this.options){const d=this.options.params;if(d){const _=m.params={};Object.keys(d).forEach(D=>{_[D]=d[D]})}}return m}createSubContext(m=null,d,_){const D=d||this.element,j=new yd(this._driver,D,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(D,_||0));return j.previousNode=this.previousNode,j.currentAnimateTimings=this.currentAnimateTimings,j.options=this._copyOptions(),j.updateOptions(m),j.currentQueryIndex=this.currentQueryIndex,j.currentQueryTotal=this.currentQueryTotal,j.parentContext=this,this.subContextCount++,j}transformIntoNewTimeline(m){return this.previousNode=fu,this.currentTimeline=this.currentTimeline.fork(this.element,m),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(m,d,_){const D={duration:d??m.duration,delay:this.currentTimeline.currentTime+(_??0)+m.delay,easing:""},j=new mf(this._driver,m.element,m.keyframes,m.preStyleProps,m.postStyleProps,D,m.stretchStartingKeyframe);return this.timelines.push(j),D}incrementTime(m){this.currentTimeline.forwardTime(this.currentTimeline.duration+m)}delayNextStep(m){m>0&&this.currentTimeline.delayNextStep(m)}invokeQuery(m,d,_,D,j,ne){let we=[];if(D&&we.push(this.element),m.length>0){m=(m=m.replace(hu,"."+this._enterClassName)).replace(vd,"."+this._leaveClassName);let yt=this._driver.query(this.element,m,1!=_);0!==_&&(yt=_<0?yt.slice(yt.length+_,yt.length):yt.slice(0,_)),we.push(...yt)}return!j&&0==we.length&&ne.push(function hl(){return new c.wOt(3014,!1)}()),we}}class Dc{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(m,d,_,D){this._driver=m,this.element=d,this.startTime=_,this._elementTimelineStylesLookup=D,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(d),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(d,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(m){const d=1===this._keyframes.size&&this._pendingStyles.size;this.duration||d?(this.forwardTime(this.currentTime+m),d&&this.snapshotCurrentStyles()):this.startTime+=m}fork(m,d){return this.applyStylesToKeyframe(),new Dc(this._driver,m,d||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(m){this.applyStylesToKeyframe(),this.duration=m,this._loadKeyframe()}_updateStyle(m,d){this._localTimelineStyles.set(m,d),this._globalTimelineStyles.set(m,d),this._styleSummary.set(m,{time:this.currentTime,value:d})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(m){m&&this._previousKeyframe.set("easing",m);for(let[d,_]of this._globalTimelineStyles)this._backFill.set(d,_||Tr.kp),this._currentKeyframe.set(d,Tr.kp);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(m,d,_,D){d&&this._previousKeyframe.set("easing",d);const j=D&&D.params||{},ne=function uh(v,m){const d=new Map;let _;return v.forEach(D=>{if("*"===D){_??=m.keys();for(let j of _)d.set(j,Tr.kp)}else for(let[j,ne]of D)d.set(j,ne)}),d}(m,this._globalTimelineStyles);for(let[we,Ye]of ne){const yt=Zi(Ye,j,_);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,_)=>{const D=this._styleSummary.get(_);(!D||d.time>D.time)&&this._updateStyle(_,d.value)})}buildKeyframes(){this.applyStylesToKeyframe();const m=new Set,d=new Set,_=1===this._keyframes.size&&0===this.duration;let D=[];this._keyframes.forEach((we,Ye)=>{const yt=new Map([...this._backFill,...we]);yt.forEach((cn,gn)=>{cn===Tr.FX?m.add(gn):cn===Tr.kp&&d.add(gn)}),_||yt.set("offset",Ye/this.duration),D.push(yt)});const j=[...m.values()],ne=[...d.values()];if(_){const we=D[0],Ye=new Map(we);we.set("offset",0),Ye.set("offset",1),D=[we,Ye]}return _d(this.element,D,j,ne,this.duration,this.startTime,this.easing,!1)}}class mf extends Dc{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(m,d,_,D,j,ne,we=!1){super(m,d,ne.delay),this.keyframes=_,this.preStyleProps=D,this.postStyleProps=j,this._stretchStartingKeyframe=we,this.timings={duration:ne.duration,delay:ne.delay,easing:ne.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let m=this.keyframes,{delay:d,duration:_,easing:D}=this.timings;if(this._stretchStartingKeyframe&&d){const j=[],ne=_+d,we=d/ne,Ye=new Map(m[0]);Ye.set("offset",0),j.push(Ye);const yt=new Map(m[0]);yt.set("offset",ch(we)),j.push(yt);const cn=m.length-1;for(let gn=1;gn<=cn;gn++){let wr=new Map(m[gn]);const Zn=wr.get("offset");wr.set("offset",ch((d+Zn*_)/ne)),j.push(wr)}_=ne,d=0,D="",m=j}return _d(this.element,m,this.preStyleProps,this.postStyleProps,_,d,D,!0)}}function ch(v,m=3){const d=Math.pow(10,m-1);return Math.round(v*d)/d}function pu(v,m,d,_,D,j,ne,we,Ye,yt,cn,gn,wr){return{type:0,element:v,triggerName:m,isRemovalTransition:D,fromState:d,fromStyles:j,toState:_,toStyles:ne,timelines:we,queriedElements:Ye,preStyleProps:yt,postStyleProps:cn,totalTime:gn,errors:wr}}const Nl={};class gf{_triggerName;ast;_stateStyles;constructor(m,d,_){this._triggerName=m,this.ast=d,this._stateStyles=_}match(m,d,_,D){return function _f(v,m,d,_,D){return v.some(j=>j(m,d,_,D))}(this.ast.matchers,m,d,_,D)}buildStyles(m,d,_){let D=this._stateStyles.get("*");return void 0!==m&&(D=this._stateStyles.get(m?.toString())||D),D?D.buildStyles(d,_):new Map}build(m,d,_,D,j,ne,we,Ye,yt,cn){const gn=[],wr=this.ast.options&&this.ast.options.params||Nl,_r=this.buildStyles(_,we&&we.params||Nl,gn),ei=Ye&&Ye.params||Nl,yi=this.buildStyles(D,ei,gn),go=new Set,as=new Map,To=new Map,ta="void"===D,eu={params:Kc(ei,wr),delay:this.ast.options?.delay},mc=cn?[]:zc(m,d,this.ast.animation,j,ne,_r,yi,eu,yt,gn);let na=0;return mc.forEach(Ra=>{na=Math.max(Ra.duration+Ra.delay,na)}),gn.length?pu(d,this._triggerName,_,D,ta,_r,yi,[],[],as,To,na,gn):(mc.forEach(Ra=>{const jl=Ra.element,Jl=Aa(as,jl,new Set);Ra.preStyleProps.forEach(ku=>Jl.add(ku));const ip=Aa(To,jl,new Set);Ra.postStyleProps.forEach(ku=>ip.add(ku)),jl!==d&&go.add(jl)}),pu(d,this._triggerName,_,D,ta,_r,yi,mc,[...go.values()],as,To,na))}}function Kc(v,m){const d={...m};return Object.entries(v).forEach(([_,D])=>{null!=D&&(d[_]=D)}),d}class mu{styles;defaultParams;normalizer;constructor(m,d,_){this.styles=m,this.defaultParams=d,this.normalizer=_}buildStyles(m,d){const _=new Map,D=Kc(m,this.defaultParams);return this.styles.styles.forEach(j=>{"string"!=typeof j&&j.forEach((ne,we)=>{ne&&(ne=Zi(ne,D,d));const Ye=this.normalizer.normalizePropertyName(we,d);ne=this.normalizer.normalizeStyleValue(we,Ye,ne,d),_.set(we,ne)})}),_}}class Np{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(m,d,_){this.name=m,this.ast=d,this._normalizer=_,d.states.forEach(D=>{this.states.set(D.name,new mu(D.style,D.options&&D.options.params||{},_))}),gu(this.states,"true","1"),gu(this.states,"false","0"),d.transitions.forEach(D=>{this.transitionFactories.push(new gf(m,D,this.states))}),this.fallbackTransition=function vf(v,m){return new gf(v,{type:Tr.If.Transition,animation:{type:Tr.If.Sequence,steps:[],options:null},matchers:[(ne,we)=>!0],options:null,queryCount:0,depCount:0},m)}(m,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(m,d,_,D){return this.transitionFactories.find(ne=>ne.match(m,d,_,D))||null}matchStyles(m,d,_){return this.fallbackTransition.buildStyles(m,d,_)}}function gu(v,m,d){v.has(m)?v.has(d)||v.set(d,v.get(m)):v.has(d)&&v.set(m,v.get(d))}const Lp=new sh;class hh{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(m,d,_){this.bodyNode=m,this._driver=d,this._normalizer=_}register(m,d){const _=[],j=Ol(this._driver,d,_,[]);if(_.length)throw function ih(){return new c.wOt(3503,!1)}();this._animations.set(m,j)}_buildPlayer(m,d,_){const D=m.element,j=kl(this._normalizer,m.keyframes,d,_);return this._driver.animate(D,j,m.duration,m.delay,m.easing,[],!0)}create(m,d,_={}){const D=[],j=this._animations.get(m);let ne;const we=new Map;if(j?(ne=zc(this._driver,d,j,Tn,qt,new Map,new Map,_,Lp,D),ne.forEach(cn=>{const gn=Aa(we,cn.element,new Map);cn.postStyleProps.forEach(wr=>gn.set(wr,null))})):(D.push(function Ec(){return new c.wOt(3300,!1)}()),ne=[]),D.length)throw function df(){return new c.wOt(3504,!1)}();we.forEach((cn,gn)=>{cn.forEach((wr,Zn)=>{cn.set(Zn,this._driver.computeStyle(gn,Zn,Tr.kp))})});const yt=Ml(ne.map(cn=>{const gn=we.get(cn.element);return this._buildPlayer(cn,new Map,gn)}));return this._playersById.set(m,yt),yt.onDestroy(()=>this.destroy(m)),this.players.push(yt),yt}destroy(m){const d=this._getPlayer(m);d.destroy(),this._playersById.delete(m);const _=this.players.indexOf(d);_>=0&&this.players.splice(_,1)}_getPlayer(m){const d=this._playersById.get(m);if(!d)throw function hf(){return new c.wOt(3301,!1)}();return d}listen(m,d,_,D){const j=jc(d,"","","");return fs(this._getPlayer(m),_,j,D),()=>{}}command(m,d,_,D){if("register"==_)return void this.register(m,D[0]);if("create"==_)return void this.create(m,d,D[0]||{});const j=this._getPlayer(m);switch(_){case"play":j.play();break;case"pause":j.pause();break;case"reset":j.reset();break;case"restart":j.restart();break;case"finish":j.finish();break;case"init":j.init();break;case"setPosition":j.setPosition(parseFloat(D[0]));break;case"destroy":this.destroy(m)}}}const Vu="ng-animate-queued",bd="ng-animate-disabled",Pp=[],Wu={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Bp={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},pl="__ng_removed";class ph{namespaceId;value;options;get params(){return this.options.params}constructor(m,d=""){this.namespaceId=d;const _=m&&m.hasOwnProperty("value");if(this.value=function Ts(v){return v??null}(_?m.value:m),_){const{value:j,...ne}=m;this.options=ne}else this.options={};this.options.params||(this.options.params={})}absorbOptions(m){const d=m.params;if(d){const _=this.options.params;Object.keys(d).forEach(D=>{null==_[D]&&(_[D]=d[D])})}}}const _u="void",mh=new ph(_u);class Up{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(m,d,_){this.id=m,this.hostElement=d,this._engine=_,this._hostClassName="ng-tns-"+m,rl(d,this._hostClassName)}listen(m,d,_,D){if(!this._triggers.has(d))throw function au(){return new c.wOt(3302,!1)}();if(null==_||0==_.length)throw function Fu(){return new c.wOt(3303,!1)}();if(!function $p(v){return"start"==v||"done"==v}(_))throw function hd(){return new c.wOt(3400,!1)}();const j=Aa(this._elementListeners,m,[]),ne={name:d,phase:_,callback:D};j.push(ne);const we=Aa(this._engine.statesByElement,m,new Map);return we.has(d)||(rl(m,Xn),rl(m,Xn+"-"+d),we.set(d,mh)),()=>{this._engine.afterFlush(()=>{const Ye=j.indexOf(ne);Ye>=0&&j.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 xn(){return new c.wOt(3401,!1)}();return d}trigger(m,d,_,D=!0){const j=this._getTrigger(d),ne=new wd(this.id,d,m);let we=this._engine.statesByElement.get(m);we||(rl(m,Xn),rl(m,Xn+"-"+d),this._engine.statesByElement.set(m,we=new Map));let Ye=we.get(d);const yt=new ph(_,this.id);if(!(_&&_.hasOwnProperty("value"))&&Ye&&yt.absorbOptions(Ye.options),we.set(d,yt),Ye||(Ye=mh),yt.value!==_u&&Ye.value===yt.value){if(!function xf(v,m){const d=Object.keys(v),_=Object.keys(m);if(d.length!=_.length)return!1;for(let D=0;D{zr(m,yi),kr(m,go)})}return}const wr=Aa(this._engine.playersByElement,m,[]);wr.forEach(ei=>{ei.namespaceId==this.id&&ei.triggerName==d&&ei.queued&&ei.destroy()});let Zn=j.matchTransition(Ye.value,yt.value,m,yt.params),_r=!1;if(!Zn){if(!D)return;Zn=j.fallbackTransition,_r=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:m,triggerName:d,transition:Zn,fromState:Ye,toState:yt,player:ne,isFallbackTransition:_r}),_r||(rl(m,Vu),ne.onStart(()=>{Gc(m,Vu)})),ne.onDone(()=>{let ei=this.players.indexOf(ne);ei>=0&&this.players.splice(ei,1);const yi=this._engine.playersByElement.get(m);if(yi){let go=yi.indexOf(ne);go>=0&&yi.splice(go,1)}}),this.players.push(ne),wr.push(ne),ne}deregister(m){this._triggers.delete(m),this._engine.statesByElement.forEach(d=>d.delete(m)),this._elementListeners.forEach((d,_)=>{this._elementListeners.set(_,d.filter(D=>D.name!=m))})}clearElementCache(m){this._engine.statesByElement.delete(m),this._elementListeners.delete(m);const d=this._engine.playersByElement.get(m);d&&(d.forEach(_=>_.destroy()),this._engine.playersByElement.delete(m))}_signalRemovalForInnerTriggers(m,d){const _=this._engine.driver.query(m,Kn,!0);_.forEach(D=>{if(D[pl])return;const j=this._engine.fetchNamespacesByElement(D);j.size?j.forEach(ne=>ne.triggerLeaveAnimation(D,d,!1,!0)):this.clearElementCache(D)}),this._engine.afterFlushAnimationsDone(()=>_.forEach(D=>this.clearElementCache(D)))}triggerLeaveAnimation(m,d,_,D){const j=this._engine.statesByElement.get(m),ne=new Map;if(j){const we=[];if(j.forEach((Ye,yt)=>{if(ne.set(yt,Ye.value),this._triggers.has(yt)){const cn=this.trigger(m,yt,_u,D);cn&&we.push(cn)}}),we.length)return this._engine.markElementAsRemoved(this.id,m,!0,d,ne),_&&Ml(we).onDone(()=>this._engine.processLeaveNode(m)),!0}return!1}prepareLeaveAnimationListeners(m){const d=this._elementListeners.get(m),_=this._engine.statesByElement.get(m);if(d&&_){const D=new Set;d.forEach(j=>{const ne=j.name;if(D.has(ne))return;D.add(ne);const Ye=this._triggers.get(ne).fallbackTransition,yt=_.get(ne)||mh,cn=new ph(_u),gn=new wd(this.id,ne,m);this._engine.totalQueuedPlayers++,this._queue.push({element:m,triggerName:ne,transition:Ye,fromState:yt,toState:cn,player:gn,isFallbackTransition:!0})})}}removeNode(m,d){const _=this._engine;if(m.childElementCount&&this._signalRemovalForInnerTriggers(m,d),this.triggerLeaveAnimation(m,d,!0))return;let D=!1;if(_.totalAnimations){const j=_.players.length?_.playersByQueriedElement.get(m):[];if(j&&j.length)D=!0;else{let ne=m;for(;ne=ne.parentNode;)if(_.statesByElement.get(ne)){D=!0;break}}}if(this.prepareLeaveAnimationListeners(m),D)_.markElementAsRemoved(this.id,m,!1,d);else{const j=m[pl];(!j||j===Wu)&&(_.afterFlush(()=>this.clearElementCache(m)),_.destroyInnerAnimations(m),_._onRemovalComplete(m,d))}}insertNode(m,d){rl(m,this._hostClassName)}drainQueuedTransitions(m){const d=[];return this._queue.forEach(_=>{const D=_.player;if(D.destroyed)return;const j=_.element,ne=this._elementListeners.get(j);ne&&ne.forEach(we=>{if(we.name==_.triggerName){const Ye=jc(j,_.triggerName,_.fromState.value,_.toState.value);Ye._data=m,fs(_.player,we.phase,Ye,we.callback)}}),D.markedForDestroy?this._engine.afterFlush(()=>{D.destroy()}):d.push(_)}),this._queue=[],d.sort((_,D)=>{const j=_.transition.ast.depCount,ne=D.transition.ast.depCount;return 0==j||0==ne?j-ne:this._engine.driver.containsElement(_.element,D.element)?1:-1})}destroy(m){this.players.forEach(d=>d.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,m)}}class wf{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(m,d)=>{};_onRemovalComplete(m,d){this.onRemovalComplete(m,d)}constructor(m,d,_){this.bodyNode=m,this.driver=d,this._normalizer=_}get queuedPlayers(){const m=[];return this._namespaceList.forEach(d=>{d.players.forEach(_=>{_.queued&&m.push(_)})}),m}createNamespace(m,d){const _=new Up(m,d,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,d)?this._balanceNamespaceList(_,d):(this.newHostElements.set(d,_),this.collectEnterElement(d)),this._namespaceLookup[m]=_}_balanceNamespaceList(m,d){const _=this._namespaceList,D=this.namespacesByHostElement;if(_.length-1>=0){let ne=!1,we=this.driver.getParentElement(d);for(;we;){const Ye=D.get(we);if(Ye){const yt=_.indexOf(Ye);_.splice(yt+1,0,m),ne=!0;break}we=this.driver.getParentElement(we)}ne||_.unshift(m)}else _.push(m);return D.set(d,m),m}register(m,d){let _=this._namespaceLookup[m];return _||(_=this.createNamespace(m,d)),_}registerTrigger(m,d,_){let D=this._namespaceLookup[m];D&&D.register(d,_)&&this.totalAnimations++}destroy(m,d){m&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const _=this._fetchNamespace(m);this.namespacesByHostElement.delete(_.hostElement);const D=this._namespaceList.indexOf(_);D>=0&&this._namespaceList.splice(D,1),_.destroy(d),delete this._namespaceLookup[m]}))}_fetchNamespace(m){return this._namespaceLookup[m]}fetchNamespacesByElement(m){const d=new Set,_=this.statesByElement.get(m);if(_)for(let D of _.values())if(D.namespaceId){const j=this._fetchNamespace(D.namespaceId);j&&d.add(j)}return d}trigger(m,d,_,D){if(Ed(d)){const j=this._fetchNamespace(m);if(j)return j.trigger(d,_,D),!0}return!1}insertNode(m,d,_,D){if(!Ed(d))return;const j=d[pl];if(j&&j.setForRemoval){j.setForRemoval=!1,j.setForMove=!0;const ne=this.collectedLeaveElements.indexOf(d);ne>=0&&this.collectedLeaveElements.splice(ne,1)}if(m){const ne=this._fetchNamespace(m);ne&&ne.insertNode(d,_)}D&&this.collectEnterElement(d)}collectEnterElement(m){this.collectedEnterElements.push(m)}markElementAsDisabled(m,d){d?this.disabledNodes.has(m)||(this.disabledNodes.add(m),rl(m,bd)):this.disabledNodes.has(m)&&(this.disabledNodes.delete(m),Gc(m,bd))}removeNode(m,d,_){if(Ed(d)){const D=m?this._fetchNamespace(m):null;D?D.removeNode(d,_):this.markElementAsRemoved(m,d,!1,_);const j=this.namespacesByHostElement.get(d);j&&j.id!==m&&j.removeNode(d,_)}else this._onRemovalComplete(d,_)}markElementAsRemoved(m,d,_,D,j){this.collectedLeaveElements.push(d),d[pl]={namespaceId:m,setForRemoval:D,hasAnimation:_,removedBeforeQueried:!1,previousTriggersValues:j}}listen(m,d,_,D,j){return Ed(d)?this._fetchNamespace(m).listen(d,_,D,j):()=>{}}_buildInstruction(m,d,_,D,j){return m.transition.build(this.driver,m.element,m.fromState.value,m.toState.value,_,D,m.fromState.options,m.toState.options,d,j)}destroyInnerAnimations(m){let d=this.driver.query(m,Kn,!0);d.forEach(_=>this.destroyActiveAnimationsForElement(_)),0!=this.playersByQueriedElement.size&&(d=this.driver.query(m,kn,!0),d.forEach(_=>this.finishActiveQueriedAnimationOnElement(_)))}destroyActiveAnimationsForElement(m){const d=this.playersByElement.get(m);d&&d.forEach(_=>{_.queued?_.markedForDestroy=!0:_.destroy()})}finishActiveQueriedAnimationOnElement(m){const d=this.playersByQueriedElement.get(m);d&&d.forEach(_=>_.finish())}whenRenderingDone(){return new Promise(m=>{if(this.players.length)return Ml(this.players).onDone(()=>m());m()})}processLeaveNode(m){const d=m[pl];if(d&&d.setForRemoval){if(m[pl]=Wu,d.namespaceId){this.destroyInnerAnimations(m);const _=this._fetchNamespace(d.namespaceId);_&&_.clearElementCache(m)}this._onRemovalComplete(m,d.setForRemoval)}m.classList?.contains(bd)&&this.markElementAsDisabled(m,!1),this.driver.query(m,".ng-animate-disabled",!0).forEach(_=>{this.markElementAsDisabled(_,!1)})}flush(m=-1){let d=[];if(this.newHostElements.size&&(this.newHostElements.forEach((_,D)=>this._balanceNamespaceList(_,D)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let _=0;__()),this._flushFns=[],this._whenQuietFns.length){const _=this._whenQuietFns;this._whenQuietFns=[],d.length?Ml(d).onDone(()=>{_.forEach(D=>D())}):_.forEach(D=>D())}}reportError(m){throw function gi(){return new c.wOt(3402,!1)}()}_flushAnimations(m,d){const _=new sh,D=[],j=new Map,ne=[],we=new Map,Ye=new Map,yt=new Map,cn=new Set;this.disabledNodes.forEach(Jr=>{cn.add(Jr);const mi=this.driver.query(Jr,".ng-animate-queued",!0);for(let wi=0;wi{const wi=Tn+ei++;_r.set(mi,wi),Jr.forEach(yo=>rl(yo,wi))});const yi=[],go=new Set,as=new Set;for(let Jr=0;Jrgo.add(yo)):as.add(mi))}const To=new Map,ta=hc(wr,Array.from(go));ta.forEach((Jr,mi)=>{const wi=qt+ei++;To.set(mi,wi),Jr.forEach(yo=>rl(yo,wi))}),m.push(()=>{Zn.forEach((Jr,mi)=>{const wi=_r.get(mi);Jr.forEach(yo=>Gc(yo,wi))}),ta.forEach((Jr,mi)=>{const wi=To.get(mi);Jr.forEach(yo=>Gc(yo,wi))}),yi.forEach(Jr=>{this.processLeaveNode(Jr)})});const eu=[],mc=[];for(let Jr=this._namespaceList.length-1;Jr>=0;Jr--)this._namespaceList[Jr].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),vl=this.statesByElement.get(wi.element);if(vl&&vl.has(wi.triggerName)){const jm=vl.get(wi.triggerName);jm.value=Nc,vl.set(wi.triggerName,jm)}}return void yo.destroy()}}const Oc=!gn||!this.driver.containsElement(gn,zs),Ms=To.get(zs),Rc=_r.get(zs),bs=this._buildInstruction(wi,_,Rc,Ms,Oc);if(bs.errors&&bs.errors.length)return void mc.push(bs);if(Oc)return yo.onStart(()=>zr(zs,bs.fromStyles)),yo.onDestroy(()=>kr(zs,bs.toStyles)),void D.push(yo);if(wi.isFallbackTransition)return yo.onStart(()=>zr(zs,bs.fromStyles)),yo.onDestroy(()=>kr(zs,bs.toStyles)),void D.push(yo);const z_=[];bs.timelines.forEach(Na=>{Na.stretchStartingKeyframe=!0,this.disabledNodes.has(Na.element)||z_.push(Na)}),bs.timelines=z_,_.append(zs,bs.timelines),ne.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 vl=Ye.get(Nc);vl||Ye.set(Nc,vl=new Set),Na.forEach((jm,sp)=>vl.add(sp))}}),bs.postStyleProps.forEach((Na,Nc)=>{let vl=yt.get(Nc);vl||yt.set(Nc,vl=new Set),Na.forEach((jm,sp)=>vl.add(sp))})});if(mc.length){const Jr=[];mc.forEach(mi=>{Jr.push(function lu(){return new c.wOt(3505,!1)}())}),eu.forEach(mi=>mi.destroy()),this.reportError(Jr)}const na=new Map,Ra=new Map;ne.forEach(Jr=>{const mi=Jr.element;_.has(mi)&&(Ra.set(mi,mi),this._beforeAnimationBuild(Jr.player.namespaceId,Jr.instruction,na))}),D.forEach(Jr=>{const mi=Jr.element;this._getPreviousPlayers(mi,!1,Jr.namespaceId,Jr.triggerName,null).forEach(yo=>{Aa(na,mi,[]).push(yo),yo.destroy()})});const jl=yi.filter(Jr=>vu(Jr,Ye,yt)),Jl=new Map;gh(Jl,this.driver,as,yt,Tr.kp).forEach(Jr=>{vu(Jr,Ye,yt)&&jl.push(Jr)});const ku=new Map;Zn.forEach((Jr,mi)=>{gh(ku,this.driver,new Set(Jr),Ye,Tr.FX)}),jl.forEach(Jr=>{const mi=Jl.get(Jr),wi=ku.get(Jr);Jl.set(Jr,new Map([...mi?.entries()??[],...wi?.entries()??[]]))});const $m=[],W_=[],op={};ne.forEach(Jr=>{const{element:mi,player:wi,instruction:yo}=Jr;if(_.has(mi)){if(cn.has(mi))return wi.onDestroy(()=>kr(mi,yo.toStyles)),wi.disabled=!0,wi.overrideTotalTime(yo.totalTime),void D.push(wi);let zs=op;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,j,ku,Jl);if(wi.setRealPlayer(Oc),zs===op)$m.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(()=>kr(mi,yo.toStyles)),W_.push(wi),cn.has(mi)&&D.push(wi)}),W_.forEach(Jr=>{const mi=j.get(Jr.element);if(mi&&mi.length){const wi=Ml(mi);Jr.setRealPlayer(wi)}}),D.forEach(Jr=>{Jr.parentPlayer?Jr.syncPlayerEvents(Jr.parentPlayer):Jr.destroy()});for(let Jr=0;Jr!Oc.destroyed);zs.length?Ll(this,mi,zs):this.processLeaveNode(mi)}return yi.length=0,$m.forEach(Jr=>{this.players.push(Jr),Jr.onDone(()=>{Jr.destroy();const mi=this.players.indexOf(Jr);this.players.splice(mi,1)}),Jr.play()}),$m}afterFlush(m){this._flushFns.push(m)}afterFlushAnimationsDone(m){this._whenQuietFns.push(m)}_getPreviousPlayers(m,d,_,D,j){let ne=[];if(d){const we=this.playersByQueriedElement.get(m);we&&(ne=we)}else{const we=this.playersByElement.get(m);if(we){const Ye=!j||j==_u;we.forEach(yt=>{yt.queued||!Ye&&yt.triggerName!=D||ne.push(yt)})}}return(_||D)&&(ne=ne.filter(we=>!(_&&_!=we.namespaceId||D&&D!=we.triggerName))),ne}_beforeAnimationBuild(m,d,_){const j=d.element,ne=d.isRemovalTransition?void 0:m,we=d.isRemovalTransition?void 0:d.triggerName;for(const Ye of d.timelines){const yt=Ye.element,cn=yt!==j,gn=Aa(_,yt,[]);this._getPreviousPlayers(yt,cn,ne,we,d.toState).forEach(Zn=>{const _r=Zn.getRealPlayer();_r.beforeDestroy&&_r.beforeDestroy(),Zn.destroy(),gn.push(Zn)})}zr(j,d.fromStyles)}_buildAnimation(m,d,_,D,j,ne){const we=d.triggerName,Ye=d.element,yt=[],cn=new Set,gn=new Set,wr=d.timelines.map(_r=>{const ei=_r.element;cn.add(ei);const yi=ei[pl];if(yi&&yi.removedBeforeQueried)return new Tr.sf(_r.duration,_r.delay);const go=ei!==Ye,as=function zu(v){const m=[];return Vp(v,m),m}((_.get(ei)||Pp).map(na=>na.getRealPlayer())).filter(na=>!!na.element&&na.element===ei),To=j.get(ei),ta=ne.get(ei),eu=kl(this._normalizer,_r.keyframes,To,ta),mc=this._buildPlayer(_r,eu,as);if(_r.subTimeline&&D&&gn.add(ei),go){const na=new wd(m,we,ei);na.setRealPlayer(mc),yt.push(na)}return mc});yt.forEach(_r=>{Aa(this.playersByQueriedElement,_r.element,[]).push(_r),_r.onDone(()=>function Ef(v,m,d){let _=v.get(m);if(_){if(_.length){const D=_.indexOf(d);_.splice(D,1)}0==_.length&&v.delete(m)}return _}(this.playersByQueriedElement,_r.element,_r))}),cn.forEach(_r=>rl(_r,nr));const Zn=Ml(wr);return Zn.onDestroy(()=>{cn.forEach(_r=>Gc(_r,nr)),kr(Ye,d.toStyles)}),gn.forEach(_r=>{Aa(D,_r,[]).push(Zn)}),Zn}_buildPlayer(m,d,_){return d.length>0?this.driver.animate(m.element,d,m.duration,m.delay,m.easing,_):new Tr.sf(m.duration,m.delay)}}class wd{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,_){this.namespaceId=m,this.triggerName=d,this.element=_}setRealPlayer(m){this._containsRealPlayer||(this._player=m,this._queuedCallbacks.forEach((d,_)=>{d.forEach(D=>fs(m,_,void 0,D))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(m.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(m){this.totalTime=m}syncPlayerEvents(m){const d=this._player;d.triggerCallback&&m.onStart(()=>d.triggerCallback("start")),m.onDone(()=>this.finish()),m.onDestroy(()=>this.destroy())}_queueEvent(m,d){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 Ed(v){return v&&1===v.nodeType}function jp(v,m){const d=v.style.display;return v.style.display=m??"none",d}function gh(v,m,d,_,D){const j=[];d.forEach(Ye=>j.push(jp(Ye)));const ne=[];_.forEach((Ye,yt)=>{const cn=new Map;Ye.forEach(gn=>{const wr=m.computeStyle(yt,gn,D);cn.set(gn,wr),(!wr||0==wr.length)&&(yt[pl]=Bp,ne.push(yt))}),v.set(yt,cn)});let we=0;return d.forEach(Ye=>jp(Ye,j[we++])),ne}function hc(v,m){const d=new Map;if(v.forEach(we=>d.set(we,[])),0==m.length)return d;const D=new Set(m),j=new Map;function ne(we){if(!we)return 1;let Ye=j.get(we);if(Ye)return Ye;const yt=we.parentNode;return Ye=d.has(yt)?yt:D.has(yt)?1:ne(yt),j.set(we,Ye),Ye}return m.forEach(we=>{const Ye=ne(we);1!==Ye&&d.get(Ye).push(we)}),d}function rl(v,m){v.classList?.add(m)}function Gc(v,m){v.classList?.remove(m)}function Ll(v,m,d){Ml(d).onDone(()=>v.processLeaveNode(m))}function Vp(v,m){for(let d=0;dD.add(j)):m.set(v,_),d.delete(v),!0}class il{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(m,d)=>{};constructor(m,d,_){this._driver=d,this._normalizer=_,this._transitionEngine=new wf(m.body,d,_),this._timelineEngine=new hh(m.body,d,_),this._transitionEngine.onRemovalComplete=(D,j)=>this.onRemovalComplete(D,j)}registerTrigger(m,d,_,D,j){const ne=m+"-"+D;let we=this._triggerCache[ne];if(!we){const Ye=[],cn=Ol(this._driver,j,Ye,[]);if(Ye.length)throw function cf(){return new c.wOt(3404,!1)}();we=function As(v,m,d){return new Np(v,m,d)}(D,cn,this._normalizer),this._triggerCache[ne]=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,_,D){this._transitionEngine.insertNode(m,d,_,D)}onRemove(m,d,_){this._transitionEngine.removeNode(m,d,_)}disableAnimations(m,d){this._transitionEngine.markElementAsDisabled(m,d)}process(m,d,_,D){if("@"==_.charAt(0)){const[j,ne]=ff(_);this._timelineEngine.command(j,d,ne,D)}else this._transitionEngine.trigger(m,d,_,D)}listen(m,d,_,D,j){if("@"==_.charAt(0)){const[ne,we]=ff(_);return this._timelineEngine.listen(ne,d,we,j)}return this._transitionEngine.listen(m,d,_,D,j)}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 _h=(()=>{class v{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(d,_,D){this._element=d,this._startStyles=_,this._endStyles=D;let j=v.initialStylesByElement.get(d);j||v.initialStylesByElement.set(d,j=new Map),this._initialStyles=j}start(){this._state<1&&(this._startStyles&&kr(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(kr(this._element,this._initialStyles),this._endStyles&&(kr(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(v.initialStylesByElement.delete(this._element),this._startStyles&&(zr(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(zr(this._element,this._endStyles),this._endStyles=null),kr(this._element,this._initialStyles),this._state=3)}}return v})();function Pl(v){let m=null;return v.forEach((d,_)=>{(function yu(v){return"display"===v||"position"===v})(_)&&(m=m||new Map,m.set(_,d))}),m}class xd{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=!1;_finished=!1;_started=!1;_destroyed=!1;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(m,d,_,D){this.element=m,this.keyframes=d,this.options=_,this._specialStyles=D,this._duration=_.duration,this._delay=_.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(m=>m()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const m=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,m,this.options),this._finalKeyframe=m.length?m[m.length-1]:new Map;const d=()=>this._onFinish();this.domPlayer.addEventListener("finish",d),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",d)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(m){const d=[];return m.forEach(_=>{d.push(Object.fromEntries(_))}),d}_triggerWebAnimation(m,d,_){return m.animate(this._convertKeyframesToObject(d),_)}onStart(m){this._originalOnStartFns.push(m),this._onStartFns.push(m)}onDone(m){this._originalOnDoneFns.push(m),this._onDoneFns.push(m)}onDestroy(m){this._onDestroyFns.push(m)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(m=>m()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(m=>m()),this._onDestroyFns=[])}setPosition(m){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=m*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const m=new Map;this.hasStarted()&&this._finalKeyframe.forEach((_,D)=>{"offset"!==D&&m.set(D,this._finished?_:mo(this.element,D))}),this.currentSnapshot=m}triggerCallback(m){const d="start"===m?this._onStartFns:this._onDoneFns;d.forEach(_=>_()),d.length=0}}class Ku{validateStyleProperty(m){return!0}validateAnimatableStyleProperty(m){return!0}containsElement(m,d){return O(m,d)}getParentElement(m){return Uu(m)}query(m,d,_){return B(m,d,_)}computeStyle(m,d,_){return mo(m,d)}animate(m,d,_,D,j,ne=[]){const Ye={duration:_,delay:D,fill:0==D?"both":"forwards"};j&&(Ye.easing=j);const yt=new Map,cn=ne.filter(Zn=>Zn instanceof xd);(function jr(v,m){return 0===v||0===m})(_,D)&&cn.forEach(Zn=>{Zn.currentSnapshot.forEach((_r,ei)=>yt.set(ei,_r))});let gn=function ur(v){return v.length?v[0]instanceof Map?v:v.map(m=>new Map(Object.entries(m))):[]}(d).map(Zn=>new Map(Zn));gn=function Fi(v,m,d){if(d.size&&m.length){let _=m[0],D=[];if(d.forEach((j,ne)=>{_.has(ne)||D.push(ne),_.set(ne,j)}),D.length)for(let j=1;jne.set(we,mo(v,we)))}}return m}(m,gn,yt);const wr=function Hp(v,m){let d=null,_=null;return Array.isArray(m)&&m.length?(d=Pl(m[0]),m.length>1&&(_=Pl(m[m.length-1]))):m instanceof Map&&(d=Pl(m)),d||_?new _h(v,d,_):null}(m,gn);return new xd(m,gn,Ye,wr)}}const Cf="@.disabled";class Vo{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(m,d,_,D){this.namespaceId=m,this.delegate=d,this.engine=_,this._onDestroy=D}get data(){return this.delegate.data}destroyNode(m){this.delegate.destroyNode?.(m)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(m,d){return this.delegate.createElement(m,d)}createComment(m){return this.delegate.createComment(m)}createText(m){return this.delegate.createText(m)}appendChild(m,d){this.delegate.appendChild(m,d),this.engine.onInsert(this.namespaceId,d,m,!1)}insertBefore(m,d,_,D=!0){this.delegate.insertBefore(m,d,_),this.engine.onInsert(this.namespaceId,d,m,D)}removeChild(m,d,_){this.parentNode(d)&&this.engine.onRemove(this.namespaceId,d,this.delegate)}selectRootElement(m,d){return this.delegate.selectRootElement(m,d)}parentNode(m){return this.delegate.parentNode(m)}nextSibling(m){return this.delegate.nextSibling(m)}setAttribute(m,d,_,D){this.delegate.setAttribute(m,d,_,D)}removeAttribute(m,d,_){this.delegate.removeAttribute(m,d,_)}addClass(m,d){this.delegate.addClass(m,d)}removeClass(m,d){this.delegate.removeClass(m,d)}setStyle(m,d,_,D){this.delegate.setStyle(m,d,_,D)}removeStyle(m,d,_){this.delegate.removeStyle(m,d,_)}setProperty(m,d,_){"@"==d.charAt(0)&&d==Cf?this.disableAnimations(m,!!_):this.delegate.setProperty(m,d,_)}setValue(m,d){this.delegate.setValue(m,d)}listen(m,d,_){return this.delegate.listen(m,d,_)}disableAnimations(m,d){this.engine.disableAnimations(m,d)}}class Df extends Vo{factory;constructor(m,d,_,D,j){super(d,_,D,j),this.factory=m,this.namespaceId=d}setProperty(m,d,_){"@"==d.charAt(0)?"."==d.charAt(1)&&d==Cf?this.disableAnimations(m,_=void 0===_||!!_):this.engine.process(this.namespaceId,m,d.slice(1),_):this.delegate.setProperty(m,d,_)}listen(m,d,_){if("@"==d.charAt(0)){const D=function vh(v){switch(v){case"body":return document.body;case"document":return document;case"window":return window;default:return v}}(m);let j=d.slice(1),ne="";return"@"!=j.charAt(0)&&([j,ne]=function yh(v){const m=v.indexOf(".");return[v.substring(0,m),v.slice(m+1)]}(j)),this.engine.listen(this.namespaceId,D,j,ne,we=>{this.factory.scheduleListenerCallback(we._data||-1,_,we)})}return this.delegate.listen(m,d,_)}}class bh{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(m,d,_){this.delegate=m,this.engine=d,this._zone=_,d.onRemovalComplete=(D,j)=>{j?.removeChild(null,D)}}createRenderer(m,d){const D=this.delegate.createRenderer(m,d);if(!m||!d?.data?.animation){const yt=this._rendererCache;let cn=yt.get(D);return cn||(cn=new Vo("",D,this.engine,()=>yt.delete(D)),yt.set(D,cn)),cn}const j=d.id,ne=d.id+"-"+this._currentId;this._currentId++,this.engine.register(ne,m);const we=yt=>{Array.isArray(yt)?yt.forEach(we):this.engine.registerTrigger(j,ne,m,yt.name,yt)};return d.data.animation.forEach(we),new Df(this,ne,D,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(m,d,_){if(m>=0&&md(_));const D=this._animationCallbacksBuffer;0==D.length&&queueMicrotask(()=>{this._zone.run(()=>{D.forEach(j=>{const[ne,we]=j;ne(we)}),this._animationCallbacksBuffer=[]})}),D.push([d,_])}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}const Dd=[{provide:$e,useFactory:function Sf(){return new gs}},{provide:il,useClass:(()=>{class v extends il{constructor(d,_,D){super(d,_,D)}ngOnDestroy(){this.flush()}static \u0275fac=function(_){return new(_||v)(c.KVO(st.qQ),c.KVO(Ae),c.KVO($e))};static \u0275prov=c.jDH({token:v,factory:v.\u0275fac})}return v})()},{provide:c._9s,useFactory:function Af(v,m,d){return new bh(v,m,d)},deps:[i.B7,il,c.SKi]}],Eh=[{provide:Ae,useFactory:()=>new Ku},{provide:c.bc$,useValue:"BrowserAnimations"},...Dd];var Sd=r(6381),Ad=r(909),Eg=r(3569),Ka=r(8447),Kp=r(850);const Yc=new S.c(Kp.l);var ml=r(7509),Ac=r(1787),Vs=r(7947),Mf=r(1642),Td=r(1126),bu=r(7225),Ch=r(5351);const Sh={connector:()=>new Ka.B};function wu(v,m=Sh){const{connector:d}=m;return(0,Ch.N)((_,D)=>{const j=d();(0,bu.Tg)(v(function Dh(v){return new S.c(m=>v.subscribe(m))}(j))).subscribe(D),D.add(_.subscribe(j))})}var Tc=r(2040);const ql="Service workers are disabled or not supported by this browser";class Eu{serviceWorker;worker;registration;events;constructor(m){if(this.serviceWorker=m,m){const _=(0,Ad.R)(m,"controllerchange").pipe((0,Vs.T)(()=>m.controller)),D=(0,Sd.v)(()=>(0,k.of)(m.controller)),j=(0,Eg.x)(D,_);this.worker=j.pipe((0,ft.p)(cn=>!!cn)),this.registration=this.worker.pipe((0,_e.n)(()=>m.getRegistration()));const yt=(0,Ad.R)(m,"message").pipe((0,Vs.T)(cn=>cn.data)).pipe((0,ft.p)(cn=>cn&&cn.type)).pipe(function Ah(v){return v?m=>wu(v)(m):m=>function Gu(v,m){const d=(0,Td.T)(v)?v:()=>v;return(0,Td.T)(m)?wu(m,{connector:d}):_=>new Mf.G(_,d)}(new Ka.B)(m)}());yt.connect(),this.events=yt}else this.worker=this.events=this.registration=function Xp(v){return(0,Sd.v)(()=>(0,A.$)(new Error(v)))}(ql)}postMessage(m,d){return this.worker.pipe((0,T.s)(1),(0,Tc.M)(_=>{_.postMessage({action:m,...d})})).toPromise().then(()=>{})}postMessageWithOperation(m,d,_){const D=this.waitForOperationCompleted(_),j=this.postMessage(m,d);return Promise.all([j,D]).then(([,ne])=>ne)}generateNonce(){return Math.round(1e7*Math.random())}eventsOfType(m){let d;return d="string"==typeof m?_=>_.type===m:_=>m.includes(_.type),this.events.pipe((0,ft.p)(d))}nextEventOfType(m){return this.eventsOfType(m).pipe((0,T.s)(1))}waitForOperationCompleted(m){return this.eventsOfType("OPERATION_COMPLETED").pipe((0,ft.p)(d=>d.nonce===m),(0,T.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 kf=(()=>{class v{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 _=this.pushManager.pipe((0,_e.n)(D=>D.getSubscription()));this.subscription=(0,ml.h)(_,this.subscriptionChanges)}requestSubscription(d){if(!this.sw.isEnabled||null===this.pushManager)return Promise.reject(new Error(ql));const _={userVisibleOnly:!0};let D=this.decodeBase64(d.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),j=new Uint8Array(new ArrayBuffer(D.length));for(let ne=0;nene.subscribe(_)),(0,T.s)(1)).toPromise().then(ne=>(this.subscriptionChanges.next(ne),ne))}unsubscribe(){return this.sw.isEnabled?this.subscription.pipe((0,T.s)(1),(0,_e.n)(_=>{if(null===_)throw new Error("Not subscribed to push notifications.");return _.unsubscribe().then(D=>{if(!D)throw new Error("Unsubscribe failed!");this.subscriptionChanges.next(null)})})).toPromise():Promise.reject(new Error(ql))}decodeBase64(d){return atob(d)}static \u0275fac=function(_){return new(_||v)(c.KVO(Eu))};static \u0275prov=c.jDH({token:v,factory:v.\u0275fac})}return v})(),Xu=(()=>{class v{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(ql));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(ql));const d=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce:d},d)}static \u0275fac=function(_){return new(_||v)(c.KVO(Eu))};static \u0275prov=c.jDH({token:v,factory:v.\u0275fac})}return v})();const Yu=new c.nKC("");function If(v,m,d,_){return()=>{if(!(0,st.UE)(_)||!("serviceWorker"in navigator)||!1===d.enabled)return;const D=v.get(c.SKi),j=v.get(c.o8S);let ne;if(D.runOutsideAngular(()=>{const we=navigator.serviceWorker,Ye=()=>we.controller?.postMessage({action:"INITIALIZE"});we.addEventListener("controllerchange",Ye),j.onDestroy(()=>{we.removeEventListener("controllerchange",Ye)})}),"function"==typeof d.registrationStrategy)ne=d.registrationStrategy();else{const[we,...Ye]=(d.registrationStrategy||"registerWhenStable:30000").split(":");switch(we){case"registerImmediately":ne=(0,k.of)(null);break;case"registerWithDelay":ne=Th(+Ye[0]||0);break;case"registerWhenStable":const yt=(0,Ac.H)(v.get(c.o8S).whenStable());ne=Ye[0]?(0,ml.h)(yt,Th(+Ye[0])):yt;break;default:throw new Error(`Unknown ServiceWorker registration strategy: ${d.registrationStrategy}`)}}D.runOutsideAngular(()=>ne.pipe((0,T.s)(1)).subscribe(()=>navigator.serviceWorker.register(m,{scope:d.scope}).catch(we=>console.error("Service worker registration failed with:",we))))}}function Th(v){return(0,k.of)(null).pipe((0,be.c)(v))}function Ta(v,m){return new Eu((0,st.UE)(m)&&!1!==v.enabled?navigator.serviceWorker:void 0)}class Qc{enabled;scope;registrationStrategy}var Qu=r(2653),b=r(5903),x=r(7178),M=r(8249),z=r(6627),J=r(6564);function ye(v){return v&&v.constructor&&"function"==typeof v.constructor.isBuffer&&v.constructor.isBuffer(v)}function Le(v){return v}function je(v,m){const d=(m=m||{}).delimiter||".",_=m.maxDepth,D=m.transformKey||Le,j={};return function ne(we,Ye,yt){yt=yt||1,Object.keys(we).forEach(function(cn){const gn=we[cn],wr=m.safe&&Array.isArray(gn),Zn=Object.prototype.toString.call(gn),_r=ye(gn),ei="[object Object]"===Zn||"[object Array]"===Zn,yi=Ye?Ye+d+D(cn):D(cn);if(!wr&&!_r&&ei&&Object.keys(gn).length&&(!m.maxDepth||yt<_))return ne(gn,yi,yt+1);j[yi]=gn})}(v),j}function it(v,m){const d=(m=m||{}).delimiter||".",_=m.overwrite||!1,D=m.transformKey||Le,j={};if(ye(v)||"[object Object]"!==Object.prototype.toString.call(v))return v;function we(cn){const gn=Number(cn);return isNaN(gn)||-1!==cn.indexOf(".")||m.object?cn:gn}return v=Object.keys(v).reduce(function(cn,gn){const wr=Object.prototype.toString.call(v[gn]);return"[object Object]"!==wr&&"[object Array]"!==wr||function yt(cn){const gn=Object.prototype.toString.call(cn);return!cn||("[object Array]"===gn?!cn.length:"[object Object]"===gn?!Object.keys(cn).length:void 0)}(v[gn])?(cn[gn]=v[gn],cn):function Ye(cn,gn,wr){return Object.keys(wr).reduce(function(Zn,_r){return Zn[cn+d+_r]=wr[_r],Zn},gn)}(gn,cn,je(v[gn],m))},{}),Object.keys(v).forEach(function(cn){const gn=cn.split(d).map(D);let wr=we(gn.shift()),Zn=we(gn[0]),_r=j;for(;void 0!==Zn;){if("__proto__"===wr)return;const ei=Object.prototype.toString.call(_r[wr]),yi="[object Object]"===ei||"[object Array]"===ei;if(!_&&!yi&&typeof _r[wr]<"u")return;(_&&!yi||!_&&null==_r[wr])&&(_r[wr]="number"!=typeof Zn||m.object?{}:[]),_r=_r[wr],gn.length>0&&(wr=we(gn.shift()),Zn=we(gn[0]))}_r[wr]=it(v[cn],m)}),j}class Ct{translations;constructor(m){this.translations=m}getTranslation(m){return(0,k.of)(this.translations.get(m)||{})}}const Kt=new c.nKC("TRANSLOCO_LOADER");function Ht(v,m){return v&&(Object.prototype.hasOwnProperty.call(v,m)?v[m]:m.split(".").reduce((d,_)=>d?.[_],v))}function vn(v){return v?Array.isArray(v)?v.length:Mn(v)?Object.keys(v).length:v?v.length:0:0}function Jt(v){return"string"==typeof v}function Mn(v){return!!v&&"object"==typeof v&&!Array.isArray(v)}function yr(v){return null==v}function Nr(v){return!1===yr(v)}function Ci(v){return v&&"string"==typeof v.scope}function ji(v){return je(v,{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 br(v={}){return{...er,...v,missingHandler:{...er.missingHandler,...v.missingHandler},flatten:{...er.flatten,...v.flatten}}}const Zr=new c.nKC("TRANSLOCO_TRANSPILER");let pi=(()=>{class v{interpolationMatcher;constructor(d){this.interpolationMatcher=function Er(v){const[m,d]=v.interpolation;return new RegExp(`${m}(.*?)${d}`,"g")}(d??er)}transpile(d,_={},D,j){return Jt(d)?d.replace(this.interpolationMatcher,(ne,we)=>(we=we.trim(),Nr(_[we])?_[we]:Nr(D[we])?this.transpile(D[we],_,D,j):"")):(_&&(Mn(d)?d=this.handleObject(d,_,D,j):Array.isArray(d)&&(d=this.handleArray(d,_,D,j))),d)}handleObject(d,_={},D,j){let ne=d;return Object.keys(_).forEach(we=>{const Ye=Ht(ne,we),yt=Ht(_,we),cn=this.transpile(Ye,yt,D,j);ne=function dn(v,m,d){v={...v};const _=m.split("."),D=_.length-1;return _.reduce((j,ne,we)=>(j[ne]=we===D?d:Array.isArray(j[ne])?j[ne].slice():{...j[ne]},j&&j[ne]),v),v}(ne,we,cn)}),ne}handleArray(d,_={},D,j){return d.map(ne=>this.transpile(ne,_,D,j))}static \u0275fac=function(_){return new(_||v)(c.KVO(qi,8))};static \u0275prov=c.jDH({token:v,factory:v.\u0275fac})}return v})();const Ri=new c.nKC("TRANSLOCO_MISSING_HANDLER");let Hs=(()=>{class v{handle(d,_){return _.missingHandler.logMissingKey&&!_.prodMode&&console.warn(`%c Missing translation for '${d}'`,"font-size: 12px; color: red"),d}static \u0275fac=function(_){return new(_||v)};static \u0275prov=c.jDH({token:v,factory:v.\u0275fac})}return v})();const Ws=new c.nKC("TRANSLOCO_INTERCEPTOR");let Ma=(()=>{class v{preSaveTranslation(d){return d}preSaveTranslationKey(d,_){return _}static \u0275fac=function(_){return new(_||v)};static \u0275prov=c.jDH({token:v,factory:v.\u0275fac})}return v})();const gl=new c.nKC("TRANSLOCO_FALLBACK_STRATEGY");let Od,ka=(()=>{class v{userConfig;constructor(d){this.userConfig=d}getNextLangs(){const d=this.userConfig.fallbackLang;if(!d)throw new Error("When using the default fallback, a fallback language must be provided in the config!");return Array.isArray(d)?d:[d]}static \u0275fac=function(_){return new(_||v)(c.KVO(qi))};static \u0275prov=c.jDH({token:v,factory:v.\u0275fac})}return v})();function Ga(v){if(!v)return"";const m=v.split("/");return m.pop(),m.join("/")}function _s(v){return v?v.split("/").pop():""}function Cu(v){return{scope:Ga(v)||null,langName:_s(v)}}function Zu(v){const{path:m,inlineLoader:d,mainLoader:_,data:D}=v;if(d){if(!1===function Qt(v){return"function"==typeof v}(d[m]))throw`You're using an inline loader but didn't provide a loader for ${m}`;return d[m]().then(ne=>ne.default?ne.default:ne)}return _.getTranslation(m,D)}let Rd=(()=>{class v{loader;parser;missingHandler;interceptor;fallbackStrategy;langChanges$;subscription=null;translations=new Map;cache=new Map;firstFallbackLang;defaultLang="";availableLangs=[];isResolvedMissingOnce=!1;lang;failedLangs=new Set;events=new Ka.B;events$=this.events.asObservable();config;constructor(d,_,D,j,ne,we){this.loader=d,this.parser=_,this.missingHandler=D,this.interceptor=j,this.fallbackStrategy=we,this.loader||(this.loader=new Ct(this.translations)),Od=this,this.config=JSON.parse(JSON.stringify(ne)),this.setAvailableLangs(this.config.availableLangs||[]),this.setFallbackLangForMissingTranslation(this.config),this.setDefaultLang(this.config.defaultLang),this.lang=new Ne.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,_={}){const D=this.cache.get(d);if(D)return D;let j;const ne=this._isLangScoped(d);let we;ne&&(we=Ga(d));const Ye={path:d,mainLoader:this.loader,inlineLoader:_.inlineLoader,data:ne?{scope:we}:void 0};if(this.useFallbackTranslation(d)){const cn=ne?`${we}/${this.firstFallbackLang}`:this.firstFallbackLang,gn=function kd({mainLoader:v,path:m,data:d,fallbackPath:_,inlineLoader:D}){return(_?[m,_]:[m]).map(ne=>{const we=Zu({path:ne,mainLoader:v,inlineLoader:D,data:d});return(0,Ac.H)(we).pipe((0,Vs.T)(Ye=>({translation:Ye,lang:ne})))})}({...Ye,fallbackPath:cn});j=(0,Qu.p)(gn)}else{const cn=Zu(Ye);j=(0,Ac.H)(cn)}const yt=j.pipe((0,b.L)(this.config.failedRetries),(0,Tc.M)(cn=>{Array.isArray(cn)?cn.forEach(gn=>{this.handleSuccess(gn.lang,gn.translation),gn.lang!==d&&this.cache.set(gn.lang,(0,k.of)({}))}):this.handleSuccess(d,cn)}),(0,x.W)(cn=>(this.config.prodMode||console.error(`Error while trying to load "${d}"`,cn),this.handleFailure(d,_))),(0,M.t)(1));return this.cache.set(d,yt),yt}translate(d,_={},D=this.getActiveLang()){if(!d)return d;const{scope:j,resolveLang:ne}=this.resolveLangAndScope(D);if(Array.isArray(d))return d.map(yt=>this.translate(j?`${j}.${yt}`:yt,_,ne));d=j?`${j}.${d}`:d;const we=this.getTranslation(ne),Ye=we[d];return Ye?this.parser.transpile(Ye,_,we,d):this._handleMissingKey(d,Ye,_)}selectTranslate(d,_,D,j=!1){let ne;const we=(yt,cn)=>this.load(yt,cn).pipe((0,Vs.T)(()=>j?this.translateObject(d,_,yt):this.translate(d,_,yt)));if(yr(D))return this.langChanges$.pipe((0,_e.n)(yt=>we(yt)));if(function fi(v){return Array.isArray(v)&&v.every(Ci)}(D)||Ci(D)){const yt=Array.isArray(D)?D[0]:D;D=yt.scope,ne=function xu(v,m){return function li(v){return v&&Mn(v.loader)}(v)?function Bl(v,m){return Object.keys(v).reduce((d,_)=>(d[`${m}/${_}`]=v[_],d),{})}(v.loader,m):void 0}(yt,yt.scope)}if(this.isLang(D)||this.isScopeWithLang(D))return we(D);const Ye=D;return this.langChanges$.pipe((0,_e.n)(yt=>we(`${Ye}/${yt}`,{inlineLoader:ne})))}isScopeWithLang(d){return this.isLang(_s(d))}translateObject(d,_={},D=this.getActiveLang()){if(Jt(d)||Array.isArray(d)){const{resolveLang:ne,scope:we}=this.resolveLangAndScope(D);if(Array.isArray(d))return d.map(cn=>this.translateObject(we?`${we}.${cn}`:cn,_,ne));const Ye=this.getTranslation(ne),yt=function Ji(v){return it(v)}(this.getObjectByKey(Ye,d=we?`${we}.${d}`:d));return function rn(v){return 0===vn(v)}(yt)?this.translate(d,_,D):this.parser.transpile(yt,_,Ye,d)}const j=[];for(const[ne,we]of this.getEntries(d))j.push(this.translateObject(ne,we,D));return j}selectTranslateObject(d,_,D){if(Jt(d)||Array.isArray(d))return this.selectTranslate(d,_,D,!0);const[[j,ne],...we]=this.getEntries(d);return this.selectTranslateObject(j,ne,D).pipe((0,Vs.T)(Ye=>{const yt=[Ye];for(const[cn,gn]of we)yt.push(this.translateObject(cn,gn,D));return yt}))}getTranslation(d){if(d){if(this.isLang(d))return this.translations.get(d)||{};{const{scope:_,resolveLang:D}=this.resolveLangAndScope(d),j=this.translations.get(D)||{};return this.getObjectByKey(j,_)}}return this.translations}selectTranslation(d){let _=this.langChanges$;if(d){const D=_s(d)!==d;_=this.isLang(d)||D?(0,k.of)(d):this.langChanges$.pipe((0,Vs.T)(j=>`${d}/${j}`))}return _.pipe((0,_e.n)(D=>this.load(D).pipe((0,Vs.T)(()=>this.getTranslation(D)))))}setTranslation(d,_=this.getActiveLang(),D={}){const ne={merge:!0,emitChange:!0,...D},we=Ga(_);let Ye=d;if(we){const Zn=this.getMappedScope(we);Ye=ji({[Zn]:d})}const yt=we?_s(_):_,cn={...ne.merge&&this.getTranslation(yt),...Ye},gn=this.config.flatten.aot?cn:ji(cn),wr=this.interceptor.preSaveTranslation(gn,yt);this.translations.set(yt,wr),ne.emitChange&&this.setActiveLang(this.getActiveLang())}setTranslationKey(d,_,D=this.getActiveLang(),j={}){const ne=this.interceptor.preSaveTranslationKey(d,_,D);this.setTranslation({[d]:ne},D,{...j,merge:!0})}setFallbackLangForMissingTranslation({fallbackLang:d}){const _=Array.isArray(d)?d[0]:d;d&&this.useFallbackTranslation(_)&&(this.firstFallbackLang=_)}_handleMissingKey(d,_,D){if(this.config.missingHandler.allowEmpty&&""===_)return"";if(!this.isResolvedMissingOnce&&this.useFallbackTranslation()){this.isResolvedMissingOnce=!0;const j=this.translate(d,D,this.firstFallbackLang);return this.isResolvedMissingOnce=!1,j}return this.missingHandler.handle(d,this.getMissingHandlerData(),D)}_isLangScoped(d){return-1===this.getAvailableLangsIds().indexOf(d)}isLang(d){return-1!==this.getAvailableLangsIds().indexOf(d)}_loadDependencies(d,_){const D=_s(d);return this._isLangScoped(d)&&!this.isLoadedTranslation(D)?(0,z.z)([this.load(D),this.load(d,{inlineLoader:_})]):this.load(d,{inlineLoader:_})}_completeScopeWithLang(d){return this._isLangScoped(d)&&!this.isLang(_s(d))?`${d}/${this.getActiveLang()}`:d}_setScopeAlias(d,_){this.config.scopeMapping||(this.config.scopeMapping={}),this.config.scopeMapping[d]=_}ngOnDestroy(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null),this.cache.clear()}isLoadedTranslation(d){return vn(this.getTranslation(d))}getAvailableLangsIds(){return Jt(this.getAvailableLangs()[0])?this.getAvailableLangs():this.getAvailableLangs().map(_=>_.id)}getMissingHandlerData(){return{...this.config,activeLang:this.getActiveLang(),availableLangs:this.availableLangs,defaultLang:this.defaultLang}}useFallbackTranslation(d){return this.config.missingHandler.useFallbackTranslation&&d!==this.firstFallbackLang}handleSuccess(d,_){this.setTranslation(_,d,{emitChange:!1}),this.events.next({wasFailure:!!this.failedLangs.size,type:"translationLoadSuccess",payload:Cu(d)}),this.failedLangs.forEach(D=>this.cache.delete(D)),this.failedLangs.clear()}handleFailure(d,_){yr(_.failedCounter)&&(_.failedCounter=0,_.fallbackLangs||(_.fallbackLangs=this.fallbackStrategy.getNextLangs(d)));const D=d.split("/"),ne=_.fallbackLangs[_.failedCounter];if(this.failedLangs.add(d),this.cache.has(ne))return this.handleSuccess(ne,this.getTranslation(ne)),J.w;if(!ne||ne===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=ne;return D.length>1&&(D[D.length-1]=ne,Ye=D.join("/")),_.failedCounter++,this.events.next({type:"translationLoadFailure",payload:Cu(d)}),this.load(Ye,_)}getMappedScope(d){const{scopeMapping:_={}}=this.config;return _[d]||function ar(v){return v.replace(/(?:^\w|[A-Z]|\b\w)/g,(m,d)=>0==d?m.toLowerCase():m.toUpperCase()).replace(/\s+|_|-|\//g,"")}(d)}resolveLangAndScope(d){let D,_=d;if(this._isLangScoped(d)){const j=_s(d),ne=this.isLang(j);_=ne?j:this.getActiveLang(),D=this.getMappedScope(ne?Ga(d):d)}return{scope:D,resolveLang:_}}getObjectByKey(d,_){const D={},j=`${_}.`;for(const ne in d)ne.startsWith(j)&&(D[ne.replace(j,"")]=d[ne]);return D}getEntries(d){return d instanceof Map?d.entries():Object.entries(d)}static \u0275fac=function(_){return new(_||v)(c.KVO(Kt,8),c.KVO(Zr),c.KVO(Ri),c.KVO(Ws),c.KVO(qi),c.KVO(gl))};static \u0275prov=c.jDH({token:v,factory:v.\u0275fac,providedIn:"root"})}return v})();function Mg(v){return(0,c.EmA)([{provide:Zr,useClass:v,deps:[qi]}])}function Qp(v){return(0,c.EmA)([{provide:gl,useClass:v,deps:[qi]}])}function Zp(v){return(0,c.EmA)([{provide:Ri,useClass:v}])}function Rh(v){return(0,c.EmA)([{provide:Ws,useClass:v}])}new c.nKC("TRANSLOCO_LANG"),new c.nKC("TRANSLOCO_LOADING_TEMPLATE"),new c.nKC("TRANSLOCO_SCOPE"),new c.nKC("TRANSLOCO_TEST_LANGS - Available testing languages"),new c.nKC("TRANSLOCO_TEST_OPTIONS - Testing options");var Og=r(7838);let qu=(()=>{class v{constructor(){this._httpClient=(0,c.WQX)(te.Qq),this._navigation=new Og.m(1)}get navigation$(){return this._navigation.asObservable()}get(){return this._httpClient.get("api/navigation").pipe((0,Tc.M)(d=>{this._navigation.next(d)}))}static{this.\u0275fac=function(_){return new(_||v)}}static{this.\u0275prov=c.jDH({token:v,factory:v.\u0275fac,providedIn:"root"})}}return v})(),Xv=(()=>{class v{constructor(d){this._httpClient=d,this._chat=new Ne.t(null),this._chats=new Ne.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,Tc.M)(d=>{this._chats.next(d)}))}getChatById(d){return this._httpClient.get("api/apps/chat/chat",{params:{id:d}}).pipe((0,Vs.T)(_=>(this._chat.next(_),_)),(0,_e.n)(_=>_?(0,k.of)(_):(0,A.$)("Could not found chat with id of "+d+"!")))}static{this.\u0275fac=function(_){return new(_||v)(c.KVO(te.Qq))}}static{this.\u0275prov=c.jDH({token:v,factory:v.\u0275fac,providedIn:"root"})}}return v})();const vs=new class qp{constructor(m){this.version=m,this.full=m,this.major=m.split(".")[0],this.minor=m.split(".")[1],this.patch=m.split(".").slice(2).join(".")}}("0.0.12").full;var _l=r(5424),Yv=r(3022),ys=r(2322);function Nh(v,m){if(1&v&&c.nrm(0,"mat-progress-bar",0),2&v){const d=c.XpG();c.Y8G("mode",d.mode)("value",d.progress)}}let Su=(()=>{class v{constructor(){this._angorLoadingService=(0,c.WQX)(Se),this.autoMode=!0,this.progress=0,this.show=!1,this._unsubscribeAll=new Ka.B}ngOnChanges(d){"autoMode"in d&&this._angorLoadingService.setAutoMode((0,Yv.he)(d.autoMode.currentValue))}ngOnInit(){this._angorLoadingService.mode$.pipe((0,_l.Q)(this._unsubscribeAll)).subscribe(d=>{this.mode=d}),this._angorLoadingService.progress$.pipe((0,_l.Q)(this._unsubscribeAll)).subscribe(d=>{this.progress=d}),this._angorLoadingService.show$.pipe((0,_l.Q)(this._unsubscribeAll)).subscribe(d=>{this.show=d})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}static{this.\u0275fac=function(_){return new(_||v)}}static{this.\u0275cmp=c.VBU({type:v,selectors:[["angor-loading-bar"]],inputs:{autoMode:"autoMode"},exportAs:["angorLoadingBar"],features:[c.OA$],decls:1,vars:1,consts:[[3,"mode","value"]],template:function(_,D){1&_&&c.DNE(0,Nh,1,2,"mat-progress-bar",0),2&_&&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 v})();function Ju(v,m){1&v&&c.nrm(0,"router-outlet")}let Lh=(()=>{class v{constructor(){this._unsubscribeAll=new Ka.B}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}static{this.\u0275fac=function(_){return new(_||v)}}static{this.\u0275cmp=c.VBU({type:v,selectors:[["empty-layout"]],decls:4,vars:1,consts:[[1,"flex","w-full","flex-auto","flex-col"],[1,"flex","flex-auto","flex-col"]],template:function(_,D){1&_&&(c.nrm(0,"angor-loading-bar"),c.j41(1,"div",0)(2,"div",1),c.DNE(3,Ju,1,0,"router-outlet"),c.k0s()()),2&_&&(c.R7$(3),c.vxM(3))},dependencies:[Su,a.n3],encapsulation:2})}}return v})();var Ia=r(9471),ol=r(3904),Fd=r(7712);function Lf(v,m){1&v&&c.nrm(0,"mat-icon",3)}let Ng=(()=>{class v{constructor(){this._document=(0,c.WQX)(st.qQ)}toggleFullscreen(){this._document.fullscreenEnabled?this._document.fullscreenElement?this._document.exitFullscreen():this._document.documentElement.requestFullscreen().catch(()=>{console.error("Entering fullscreen mode failed.")}):console.log("Fullscreen is not available in this browser.")}static{this.\u0275fac=function(_){return new(_||v)}}static{this.\u0275cmp=c.VBU({type:v,selectors:[["angor-fullscreen"]],inputs:{iconTpl:"iconTpl",tooltip:"tooltip"},exportAs:["angorFullscreen"],decls:4,vars:2,consts:[["defaultIconTpl",""],["mat-icon-button","",3,"click","matTooltip"],[3,"ngTemplateOutlet"],["svgIcon","heroicons_outline:arrows-pointing-out"]],template:function(_,D){if(1&_){const j=c.RV6();c.j41(0,"button",1),c.bIt("click",function(){return c.eBV(j),c.Njj(D.toggleFullscreen())}),c.eu8(1,2),c.k0s(),c.DNE(2,Lf,1,0,"ng-template",null,0,c.C5r)}if(2&_){const j=c.sdS(3);c.Y8G("matTooltip",D.tooltip||"Toggle Fullscreen"),c.R7$(),c.Y8G("ngTemplateOutlet",D.iconTpl||j)}},dependencies:[Ia.Hl,Ia.iY,Fd.uc,Fd.oV,st.T3,ol.m_,ol.An],encapsulation:2,changeDetection:0})}}return v})();var kc=r(3871),Lg=r(6192),Pg=r(3125);let Ph=(()=>{class v{constructor(d){this.relayService=d,this.notificationSubject=new Ne.t([]),this.notificationCount=new Ne.t(0),this.lastNotificationTimestamp=null,this.initializeNotificationData()}initializeNotificationData(){this.notificationCount.next(this.loadCountFromLocalStorage()),this.lastNotificationTimestamp=this.loadTimestampFromLocalStorage()}loadCountFromLocalStorage(){const d=localStorage.getItem("notificationCount");return d?parseInt(d,10):0}loadTimestampFromLocalStorage(){const d=localStorage.getItem("lastNotificationTimestamp");return d?parseInt(d,10):null}saveNotificationData(d,_){localStorage.setItem("notificationCount",d.toString()),localStorage.setItem("lastNotificationTimestamp",_.toString())}getNotificationObservable(){return this.notificationSubject.asObservable()}getNotificationCount(){return this.notificationCount.asObservable()}loadFilterPreferences(){const d=localStorage.getItem("notificationSettings");return d?JSON.parse(d):[1,3,4,7,9735]}subscribeToNotifications(d){var _=this;return(0,w.A)(function*(){yield _.relayService.ensureConnectedRelays();const D=_.relayService.getPool(),j=_.relayService.getConnectedRelays();if(0===j.length)throw new Error("No connected relays");const ne=_.loadTimestampFromLocalStorage(),we=_.loadFilterPreferences();0===we.length&&we.push(1,3,4,7,9735);const Ye={kinds:we,"#p":[d],limit:50,since:ne||void 0};return new Promise(yt=>{D.subscribeMany(j,[Ye],{onevent:gn=>_.handleNotificationEvent(gn,d),oneose(){yt()}})})})()}handleNotificationEvent(d,_){if(this.isNotificationEvent(d,_)){const j=new Date(1e3*d.created_at);let ne="",we="",Ye="";switch(d.kind){case 1:ne="Mention",we="Mentioned you in an event.",Ye="heroicons_outline:at-symbol";break;case 4:ne="Private Message",we="Sent a private message.",Ye="heroicons_outline:envelope-open";break;case 9735:ne="Zap",we="Received a zap event.",Ye="feather:zap";break;case 3:ne="New Follower",we="You have a new follower.",Ye="heroicons_outline:user-plus";break;case 7:ne="New Like",we="You have a new Like.",Ye="heroicons_outline:hand-thumb-up";break;default:ne="Notification",Ye="heroicons_outline:bell"}const gn=[{id:d.id,icon:Ye,title:ne,description:we,time:j,kind:d.kind,read:!1},...this.notificationSubject.value].slice(0,50);this.notificationSubject.next(gn),this.incrementNotificationCount(d.created_at)}}incrementNotificationCount(d){const _=this.notificationCount.value+1;this.notificationCount.next(_),this.saveNotificationData(_,d)}markAllAsRead(){const d=this.notificationSubject.value.map(D=>({...D,read:!0}));this.notificationSubject.next(d),this.notificationCount.next(0);const _=Math.floor(Date.now()/1e3);this.saveNotificationData(0,_)}isNotificationEvent(d,_){return d.tags.some(D=>"p"===D[0]&&D[1]===_)}static{this.\u0275fac=function(_){return new(_||v)(c.KVO(Pg.b))}}static{this.\u0275prov=c.jDH({token:v,factory:v.\u0275fac,providedIn:"root"})}}return v})();var Zc=r(9666),Bd=r(8078);const Fg=["notificationsOrigin"],Fh=["notificationsPanel"],Ul=v=>({unread:v}),Qv=(v,m)=>({"bg-gray-400 dark:bg-gray-500 sm:opacity-0 sm:group-hover:opacity-100":v,"bg-primary":m});function Oa(v,m){if(1&v&&(c.j41(0,"span",4)(1,"span",6),c.EFF(2),c.k0s()()),2&v){const d=c.XpG();c.R7$(2),c.SpI(" ",d.unreadCount," ")}}function Zv(v,m){1&v&&c.eu8(0)}function qv(v,m){if(1&v&&(c.j41(0,"a",23),c.DNE(1,Zv,1,0,"ng-container",25),c.k0s()),2&v){const d=c.XpG(2).$implicit,_=c.sdS(9);c.Y8G("href",d.link,c.B4B),c.R7$(),c.Y8G("ngTemplateOutlet",_)}}function Jp(v,m){1&v&&c.eu8(0)}function Bg(v,m){if(1&v&&(c.j41(0,"a",24),c.DNE(1,Jp,1,0,"ng-container",25),c.k0s()),2&v){const d=c.XpG(2).$implicit,_=c.sdS(9);c.Y8G("routerLink",d.link),c.R7$(),c.Y8G("ngTemplateOutlet",_)}}function Ug(v,m){if(1&v&&c.DNE(0,qv,2,2,"a",23)(1,Bg,2,2,"a",24),2&v){const d=c.XpG().$implicit;c.vxM(d.useRouter?-1:0),c.R7$(),c.vxM(d.useRouter?1:-1)}}function Jv(v,m){1&v&&c.eu8(0)}function mw(v,m){if(1&v&&(c.j41(0,"div",17),c.DNE(1,Jv,1,0,"ng-container",25),c.k0s()),2&v){c.XpG();const d=c.sdS(9);c.R7$(),c.Y8G("ngTemplateOutlet",d)}}function $g(v,m){if(1&v&&(c.j41(0,"div",26),c.nrm(1,"mat-icon",32),c.k0s()),2&v){const d=c.XpG(2).$implicit;c.R7$(),c.Y8G("svgIcon",d.icon)}}function ey(v,m){if(1&v&&c.nrm(0,"img",27),2&v){const d=c.XpG(2).$implicit;c.Y8G("src",d.image,c.B4B)("alt","Notification image")}}function Pf(v,m){if(1&v&&c.nrm(0,"div",29),2&v){const d=c.XpG(2).$implicit;c.Y8G("innerHTML",d.title,c.npT)}}function em(v,m){if(1&v&&c.nrm(0,"div",30),2&v){const d=c.XpG(2).$implicit;c.Y8G("innerHTML",d.description,c.npT)}}function tm(v,m){if(1&v&&(c.DNE(0,$g,2,1,"div",26)(1,ey,1,2,"img",27),c.j41(2,"div",28),c.DNE(3,Pf,1,1,"div",29)(4,em,1,1,"div",30),c.j41(5,"div",31),c.EFF(6),c.nI1(7,"date"),c.k0s()()),2&v){const d=c.XpG().$implicit;c.vxM(d.icon&&!d.image?0:-1),c.R7$(),c.vxM(d.image?1:-1),c.R7$(2),c.vxM(d.title?3:-1),c.R7$(),c.vxM(d.description?4:-1),c.R7$(2),c.SpI(" ",c.i5U(7,5,d.time,"MMM dd, h:mm a")," ")}}function Ud(v,m){if(1&v){const d=c.RV6();c.j41(0,"div",16),c.DNE(1,Ug,2,2)(2,mw,2,1,"div",17),c.j41(3,"div",18)(4,"button",19),c.bIt("click",function(){const D=c.eBV(d).$implicit,j=c.XpG(2);return c.Njj(j.toggleRead(D))}),c.nrm(5,"span",20),c.k0s(),c.j41(6,"button",21),c.bIt("click",function(){const D=c.eBV(d).$implicit,j=c.XpG(2);return c.Njj(j.deleteNotification(D))}),c.nrm(7,"mat-icon",22),c.k0s()()(),c.DNE(8,tm,8,8,"ng-template",null,2,c.C5r)}if(2&v){const d=m.$implicit;c.Y8G("ngClass",c.eq3(7,Ul,!d.read)),c.R7$(),c.vxM(d.link?1:-1),c.R7$(),c.vxM(d.link?-1:2),c.R7$(2),c.Y8G("matTooltip",d.read?"Mark as unread":"Mark as read"),c.R7$(),c.Y8G("ngClass",c.l_i(9,Qv,d.read,!d.read)),c.R7$(),c.Y8G("matTooltip","Remove"),c.R7$(),c.Y8G("svgIcon","heroicons_solid:x-mark")}}function Ff(v,m){1&v&&(c.j41(0,"div",15)(1,"div",33),c.nrm(2,"mat-icon",34),c.k0s(),c.j41(3,"div",35),c.EFF(4," No notifications "),c.k0s(),c.j41(5,"div",36),c.EFF(6," When you have notifications, they will appear here. "),c.k0s()()),2&v&&(c.R7$(2),c.Y8G("svgIcon","heroicons_outline:bell"))}function Bf(v,m){if(1&v){const d=c.RV6();c.j41(0,"div",7)(1,"div",8)(2,"div",9)(3,"button",3),c.bIt("click",function(){c.eBV(d);const D=c.XpG();return c.Njj(D.closePanel())}),c.nrm(4,"mat-icon",10),c.k0s()(),c.j41(5,"div",11),c.EFF(6,"Notifications"),c.k0s(),c.j41(7,"div",12)(8,"button",13),c.bIt("click",function(){c.eBV(d);const D=c.XpG();return c.Njj(D.markAllAsRead())}),c.nrm(9,"mat-icon",10),c.k0s()()(),c.j41(10,"div",14),c.Z7z(11,Ud,10,12,null,null,c.BUC().trackByFn,!0),c.DNE(13,Ff,7,1,"div",15),c.k0s()()}if(2&v){const d=c.XpG();c.R7$(4),c.Y8G("svgIcon","heroicons_solid:x-mark"),c.R7$(4),c.Y8G("matTooltip","Mark all as read")("disabled",0===d.unreadCount),c.R7$(),c.Y8G("svgIcon","heroicons_solid:envelope-open"),c.R7$(2),c.Dyx(d.notifications),c.R7$(2),c.vxM(d.notifications&&d.notifications.length?-1:13)}}let ed=(()=>{class v{constructor(d,_,D,j,ne){this._notificationService=d,this._changeDetectorRef=_,this._overlay=D,this._viewContainerRef=j,this._signerService=ne,this.notifications=[],this.unreadCount=0,this._unsubscribeAll=new Ka.B}ngOnInit(){const d=this._signerService.getPublicKey();this._notificationService.subscribeToNotifications(d).then(()=>{this._notificationService.getNotificationObservable().pipe((0,_l.Q)(this._unsubscribeAll)).subscribe(_=>{this.notifications=_,this._changeDetectorRef.markForCheck()}),this._notificationService.getNotificationCount().pipe((0,_l.Q)(this._unsubscribeAll)).subscribe(_=>{this.unreadCount=_,this._changeDetectorRef.markForCheck()})})}deleteNotification(d){throw new Error("Method not implemented.")}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}openPanel(){!this._notificationsPanel||!this._notificationsOrigin||(this._overlayRef||this._createOverlay(),this._overlayRef.attach(new Lg.VA(this._notificationsPanel,this._viewContainerRef)))}closePanel(){this._overlayRef&&this._overlayRef.detach()}markAllAsRead(){this._notificationService.markAllAsRead()}toggleRead(d){d.read=!d.read}trackByFn(d,_){return _.id}_createOverlay(){this._overlayRef=this._overlay.create({hasBackdrop:!0,backdropClass:"angor-backdrop-on-mobile",scrollStrategy:this._overlay.scrollStrategies.block(),positionStrategy:this._overlay.position().flexibleConnectedTo(this._notificationsOrigin._elementRef.nativeElement).withLockedPosition(!0).withPush(!0).withPositions([{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"}])}),this._overlayRef.backdropClick().subscribe(()=>{this._overlayRef.detach()})}static{this.\u0275fac=function(_){return new(_||v)(c.rXU(Ph),c.rXU(c.gRc),c.rXU(Zc.hJ),c.rXU(c.c1b),c.rXU(Bd.A))}}static{this.\u0275cmp=c.VBU({type:v,selectors:[["notifications"]],viewQuery:function(_,D){if(1&_&&(c.GBs(Fg,5),c.GBs(Fh,5)),2&_){let j;c.mGM(j=c.lsd())&&(D._notificationsOrigin=j.first),c.mGM(j=c.lsd())&&(D._notificationsPanel=j.first)}},exportAs:["notifications"],decls:6,vars:2,consts:[["notificationsOrigin",""],["notificationsPanel",""],["notificationContent",""],["mat-icon-button","",3,"click"],[1,"absolute","left-0","right-0","top-0","flex","h-3","items-center","justify-center"],[3,"svgIcon"],[1,"ml-4","mt-2.5","flex","h-4","min-w-4","shrink-0","items-center","justify-center","rounded-full","bg-teal-600","px-1","text-xs","font-medium","text-indigo-50"],[1,"fixed","inset-0","flex","flex-col","overflow-hidden","shadow-lg","sm:static","sm:inset-auto","sm:w-90","sm:min-w-90","sm:rounded-2xl"],[1,"flex","shrink-0","items-center","bg-primary","py-4","pl-6","pr-4","text-on-primary"],[1,"-ml-1","mr-3","sm:hidden"],[1,"text-current","icon-size-5",3,"svgIcon"],[1,"text-lg","font-medium","leading-10"],[1,"ml-auto"],["mat-icon-button","",1,"dark:text-white",3,"click","matTooltip","disabled"],[1,"bg-card","relative","flex","flex-auto","flex-col","divide-y","overflow-y-auto","sm:max-h-120"],[1,"flex","flex-auto","flex-col","items-center","justify-center","px-8","py-12","sm:justify-start"],[1,"group","flex","hover:bg-gray-50","dark:hover:bg-black","dark:hover:bg-opacity-5",3,"ngClass"],[1,"flex","flex-auto","py-5","pl-6"],[1,"relative","my-5","ml-2","mr-6","flex","flex-col"],["mat-icon-button","",1,"h-6","min-h-6","w-6",3,"click","matTooltip"],[1,"h-2","w-2","rounded-full",3,"ngClass"],["mat-icon-button","",1,"h-6","min-h-6","w-6","sm:opacity-0","sm:group-hover:opacity-100",3,"click","matTooltip"],[1,"icon-size-4",3,"svgIcon"],[1,"flex","flex-auto","cursor-pointer","py-5","pl-6",3,"href"],[1,"flex","flex-auto","cursor-pointer","py-5","pl-6",3,"routerLink"],[4,"ngTemplateOutlet"],[1,"mr-4","flex","h-8","w-8","shrink-0","items-center","justify-center","rounded-full","bg-gray-100","dark:bg-gray-700"],[1,"mr-4","h-8","w-8","shrink-0","overflow-hidden","rounded-full","object-cover","object-center",3,"src","alt"],[1,"flex","flex-auto","flex-col"],[1,"line-clamp-1","font-semibold",3,"innerHTML"],[1,"line-clamp-2",3,"innerHTML"],[1,"text-secondary","mt-2","text-sm","leading-none"],[1,"icon-size-5",3,"svgIcon"],[1,"flex","h-14","w-14","flex-0","items-center","justify-center","rounded-full","bg-primary-100","dark:bg-primary-600"],[1,"text-primary-700","dark:text-primary-50",3,"svgIcon"],[1,"mt-5","text-2xl","font-semibold","tracking-tight"],[1,"text-secondary","mt-1","w-full","max-w-60","text-center","text-md"]],template:function(_,D){if(1&_){const j=c.RV6();c.j41(0,"button",3,0),c.bIt("click",function(){return c.eBV(j),c.Njj(D.openPanel())}),c.DNE(2,Oa,3,1,"span",4),c.nrm(3,"mat-icon",5),c.k0s(),c.DNE(4,Bf,14,5,"ng-template",null,1,c.C5r)}2&_&&(c.R7$(2),c.vxM(D.unreadCount>0?2:-1),c.R7$(),c.Y8G("svgIcon","heroicons_outline:bell"))},dependencies:[Ia.Hl,Ia.iY,ol.m_,ol.An,Fd.uc,Fd.oV,st.YU,st.T3,a.Wk,st.vh],encapsulation:2,changeDetection:0})}}return v})();var Au=r(936),Uf=r(8108),Tu=r(8559),$f=r(5710),nm=r(2944),Ic=r(5919),jg=r(6520),$d=r(593);const Bh=["panel"],gw=["*"];function Vg(v,m){if(1&v){const d=c.RV6();c.j41(0,"div",1,0),c.bIt("@panelAnimation.done",function(D){c.eBV(d);const j=c.XpG();return c.Njj(j._animationDone.next(D))}),c.SdG(2),c.k0s()}if(2&v){const d=m.id,_=c.XpG();c.HbH(_._classList),c.AVh("mat-mdc-autocomplete-visible",_.showPanel)("mat-mdc-autocomplete-hidden",!_.showPanel)("mat-primary","primary"===_._color)("mat-accent","accent"===_._color)("mat-warn","warn"===_._color),c.Y8G("id",_.id)("@panelAnimation",_.isOpen?"visible":"hidden"),c.BMQ("aria-label",_.ariaLabel||null)("aria-labelledby",_._getPanelAriaLabelledby(d))}}const ty=(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 Hg{source;option;constructor(m,d){this.source=m,this.option=d}}const ny=new c.nKC("mat-autocomplete-default-options",{providedIn:"root",factory:function Wg(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1}}});let ry=(()=>{class v{_changeDetectorRef=(0,c.WQX)(c.gRc);_elementRef=(0,c.WQX)(c.aKT);_defaults=(0,c.WQX)(ny);_activeOptionChanges=$f.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)(Tu.g7).getId("mat-autocomplete-");inertGroups;constructor(){const d=(0,c.WQX)(ke.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 Tu.Au(this.options).withWrap().skipPredicate(this._skipPredicate),this._activeOptionChanges=this._keyManager.change.subscribe(d=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[d]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe(),this._animationDone.complete()}_setScrollTop(d){this.panel&&(this.panel.nativeElement.scrollTop=d)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._changeDetectorRef.markForCheck()}_emitSelectEvent(d){const _=new Hg(this,d);this.optionSelected.emit(_)}_getPanelAriaLabelledby(d){return this.ariaLabel?null:this.ariaLabelledby?(d?d+" ":"")+this.ariaLabelledby:d}_skipPredicate(){return!1}static \u0275fac=function(_){return new(_||v)};static \u0275cmp=c.VBU({type:v,selectors:[["mat-autocomplete"]],contentQueries:function(_,D,j){if(1&_&&(c.wni(j,Yt.wT,5),c.wni(j,Yt.QC,5)),2&_){let ne;c.mGM(ne=c.lsd())&&(D.options=ne),c.mGM(ne=c.lsd())&&(D.optionGroups=ne)}},viewQuery:function(_,D){if(1&_&&(c.GBs(c.C4Q,7),c.GBs(Bh,5)),2&_){let j;c.mGM(j=c.lsd())&&(D.template=j.first),c.mGM(j=c.lsd())&&(D.panel=j.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:Yt.is,useExisting:v}]),c.GFd],ngContentSelectors:gw,decls:1,vars:0,consts:[["panel",""],["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id"]],template:function(_,D){1&_&&(c.NAR(),c.DNE(0,Vg,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:[ty]},changeDetection:0})}return v})();const td={provide:Au.kq,useExisting:(0,c.Rfq)(()=>Uh),multi:!0},oy=new c.nKC("mat-autocomplete-scroll-strategy",{providedIn:"root",factory:()=>{const v=(0,c.WQX)(Zc.hJ);return()=>v.scrollStrategies.reposition()}}),vw={provide:oy,deps:[Zc.hJ],useFactory:function rm(v){return()=>v.scrollStrategies.reposition()}};let Uh=(()=>{class v{_element=(0,c.WQX)(c.aKT);_overlay=(0,c.WQX)(Zc.hJ);_viewContainerRef=(0,c.WQX)(c.c1b);_zone=(0,c.WQX)(c.SKi);_changeDetectorRef=(0,c.WQX)(c.gRc);_dir=(0,c.WQX)(nm.dS,{optional:!0});_formField=(0,c.WQX)(wn.xb,{optional:!0,host:!0});_document=(0,c.WQX)(st.qQ);_viewportRuler=(0,c.WQX)(Uf.Xj);_defaults=(0,c.WQX)(ny,{optional:!0});_overlayRef;_portal;_componentDestroyed=!1;_scrollStrategy=(0,c.WQX)(oy);_keydownSubscription;_outsideClickSubscription;_previousValue;_valueOnAttach;_valueOnLastKeydown;_positionStrategy;_manuallyFloatingLabel=!1;_closingActionsSubscription;_viewportSubscription=$f.yU.EMPTY;_breakpointObserver=(0,c.WQX)(jg.QP);_handsetLandscapeSubscription=$f.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,Tu.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,ft.p)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,ft.p)(()=>this._overlayAttached)):(0,k.of)()).pipe((0,Vs.T)(d=>d instanceof Yt.MI?d:null))}optionSelections=(0,Sd.v)(()=>{const d=this.autocomplete?this.autocomplete.options:null;return d?d.changes.pipe((0,$d.Z)(d),(0,_e.n)(()=>(0,ml.h)(...d.map(_=>_.onSelectionChange)))):this._initialized.pipe((0,_e.n)(()=>this.optionSelections))});get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,ml.h)((0,Ad.R)(this._document,"click"),(0,Ad.R)(this._document,"auxclick"),(0,Ad.R)(this._document,"touchend")).pipe((0,ft.p)(d=>{const _=(0,ke.Fb)(d),D=this._formField?this._formField.getConnectedOverlayOrigin().nativeElement:null,j=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&_!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!D||!D.contains(_))&&(!j||!j.contains(_))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(_)}))}writeValue(d){Promise.resolve(null).then(()=>this._assignOptionValue(d))}registerOnChange(d){this._onChange=d}registerOnTouched(d){this._onTouched=d}setDisabledState(d){this._element.nativeElement.disabled=d}_handleKeydown(d){const _=d.keyCode,D=(0,Ic.rp)(d);if(_===Ic._f&&!D&&d.preventDefault(),this._valueOnLastKeydown=this._element.nativeElement.value,this.activeOption&&_===Ic.Fm&&this.panelOpen&&!D)this.activeOption._selectViaInteraction(),this._resetActiveItem(),d.preventDefault();else if(this.autocomplete){const j=this.autocomplete._keyManager.activeItem,ne=_===Ic.i7||_===Ic.n6;_===Ic.wn||ne&&!D&&this.panelOpen?this.autocomplete._keyManager.onKeydown(d):ne&&this._canOpen()&&this._openPanelInternal(this._valueOnLastKeydown),(ne||this.autocomplete._keyManager.activeItem!==j)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._valueOnLastKeydown),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(d){let _=d.target,D=_.value;if("number"===_.type&&(D=""==D?null:parseFloat(D)),this._previousValue!==D){if(this._previousValue=D,this._pendingAutoselectedOption=null,(!this.autocomplete||!this.autocomplete.requireSelection)&&this._onChange(D),D){if(this.panelOpen&&!this.autocomplete.requireSelection){const j=this.autocomplete.options?.find(ne=>ne.selected);j&&D!==this._getDisplayValue(j.value)&&j.deselect(!1)}}else this._clearPreviousSelectedOption(null,!1);if(this._canOpen()&&this._document.activeElement===d.target){const j=this._valueOnLastKeydown??this._element.nativeElement.value;this._valueOnLastKeydown=null,this._openPanelInternal(j)}}}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(this._previousValue),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this._openPanelInternal()}_floatLabel(d=!1){this._formField&&"auto"===this._formField.floatLabel&&(d?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const d=new S.c(D=>{(0,c.mal)(()=>{D.next()},{injector:this._injector})}),_=this.autocomplete.options.changes.pipe((0,Tc.M)(()=>this._positionStrategy.reapplyLastPosition()),(0,be.c)(0));return(0,ml.h)(d,_).pipe((0,_e.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,T.s)(1)).subscribe(D=>this._setValueAndClose(D))}_emitOpened(){this.autocomplete.opened.emit()}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_getDisplayValue(d){const _=this.autocomplete;return _&&_.displayWith?_.displayWith(d):d}_assignOptionValue(d){const _=this._getDisplayValue(d);null==d&&this._clearPreviousSelectedOption(null,!1),this._updateNativeInputValue(_??"")}_updateNativeInputValue(d){this._formField?this._formField._control.value=d:this._element.nativeElement.value=d,this._previousValue=d}_setValueAndClose(d){const _=this.autocomplete,D=d?d.source:this._pendingAutoselectedOption;D?(this._clearPreviousSelectedOption(D),this._assignOptionValue(D.value),this._onChange(D.value),_._emitSelectEvent(D),this._element.nativeElement.focus()):_.requireSelection&&this._element.nativeElement.value!==this._valueOnAttach&&(this._clearPreviousSelectedOption(null),this._assignOptionValue(null),_._animationDone?_._animationDone.pipe((0,T.s)(1)).subscribe(()=>this._onChange(null)):this._onChange(null)),this.closePanel()}_clearPreviousSelectedOption(d,_){this.autocomplete?.options?.forEach(D=>{D!==d&&D.selected&&D.deselect(_)})}_openPanelInternal(d=this._element.nativeElement.value){this._attachOverlay(d),this._floatLabel(),this._trackedModal&&(0,Tu.px)(this._trackedModal,"aria-owns",this.autocomplete.id)}_attachOverlay(d){let _=this._overlayRef;_?(this._positionStrategy.setOrigin(this._getConnectedElement()),_.updateSize({width:this._getPanelWidth()})):(this._portal=new Lg.VA(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),_=this._overlay.create(this._getOverlayConfig()),this._overlayRef=_,this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&_&&_.updateSize({width:this._getPanelWidth()})}),this._handsetLandscapeSubscription=this._breakpointObserver.observe(jg.Rp.HandsetLandscape).subscribe(j=>{j.matches?this._positionStrategy.withFlexibleDimensions(!0).withGrowAfterOpen(!0).withViewportMargin(8):this._positionStrategy.withFlexibleDimensions(!1).withGrowAfterOpen(!1).withViewportMargin(0)})),_&&!_.hasAttached()&&(_.attach(this._portal),this._valueOnAttach=d,this._valueOnLastKeydown=null,this._closingActionsSubscription=this._subscribeToClosingActions());const D=this.panelOpen;this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._latestOpeningTrigger=this,this.autocomplete._setColor(this._formField?.color),this._updatePanelState(),this._applyModalPanelOwnership(),this.panelOpen&&D!==this.panelOpen&&this._emitOpened()}_handlePanelKeydown=d=>{(d.keyCode===Ic._f&&!(0,Ic.rp)(d)||d.keyCode===Ic.i7&&(0,Ic.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 Zc.rR({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,panelClass:this._defaults?.overlayPanelClass})}_getOverlayPosition(){const d=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(d),this._positionStrategy=d,d}_setStrategyPositions(d){const _=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],D=this._aboveClass,j=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:D},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:D}];let ne;ne="above"===this.position?j:"below"===this.position?_:[..._,...j],d.withPositions(ne)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const d=this.autocomplete;if(d.autoActiveFirstOption){let _=-1;for(let D=0;D .cdk-overlay-container [aria-modal="true"]');if(!d)return;const _=this.autocomplete.id;this._trackedModal&&(0,Tu.Ae)(this._trackedModal,"aria-owns",_),(0,Tu.px)(d,"aria-owns",_),this._trackedModal=d}_clearFromModal(){this._trackedModal&&((0,Tu.Ae)(this._trackedModal,"aria-owns",this.autocomplete.id),this._trackedModal=null)}static \u0275fac=function(_){return new(_||v)};static \u0275dir=c.FsC({type:v,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(_,D){1&_&&c.bIt("focusin",function(){return D._handleFocus()})("blur",function(){return D._onTouched()})("input",function(ne){return D._handleInput(ne)})("keydown",function(ne){return D._handleKeydown(ne)})("click",function(){return D._handleClick()}),2&_&&c.BMQ("autocomplete",D.autocompleteAttribute)("role",D.autocompleteDisabled?null:"combobox")("aria-autocomplete",D.autocompleteDisabled?null:"list")("aria-activedescendant",D.panelOpen&&D.activeOption?D.activeOption.id:null)("aria-expanded",D.autocompleteDisabled?null:D.panelOpen.toString())("aria-controls",D.autocompleteDisabled||!D.panelOpen||null==D.autocomplete?null:D.autocomplete.id)("aria-haspopup",D.autocompleteDisabled?null:"listbox")},inputs:{autocomplete:[0,"matAutocomplete","autocomplete"],position:[0,"matAutocompletePosition","position"],connectedTo:[0,"matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:[0,"autocomplete","autocompleteAttribute"],autocompleteDisabled:[2,"matAutocompleteDisabled","autocompleteDisabled",c.L39]},exportAs:["matAutocompleteTrigger"],features:[c.Jv_([td]),c.GFd,c.OA$]})}return v})(),$h=(()=>{class v{static \u0275fac=function(_){return new(_||v)};static \u0275mod=c.$C({type:v});static \u0275inj=c.G2t({providers:[vw],imports:[Zc.z_,Yt.Sy,Yt.yE,Uf.Gj,Yt.Sy,Yt.yE]})}return v})();var sy=r(6389),im=r(3149),ay=r(8627);const ly=["barSearchInput"],om=["matAutocomplete"],sm=(v,m)=>m.id;function cy(v,m){if(1&v){const d=c.RV6();c.j41(0,"button",4),c.bIt("click",function(){c.eBV(d);const D=c.XpG(2);return c.Njj(D.open())}),c.nrm(1,"mat-icon",5),c.k0s()}2&v&&(c.R7$(),c.Y8G("svgIcon","heroicons_outline:magnifying-glass"))}function uy(v,m){1&v&&(c.j41(0,"mat-option",9),c.EFF(1," No results found! "),c.k0s())}function jh(v,m){if(1&v){const d=c.RV6();c.j41(0,"img",19),c.bIt("error",function(D){c.eBV(d);const j=c.XpG(5);return c.Njj(j.handleImageError(D))}),c.k0s()}if(2&v){const d=c.XpG().$implicit;c.FS9("alt",d.name),c.Y8G("src",d.avatar,c.B4B)}}function zg(v,m){1&v&&c.nrm(0,"mat-icon",15),2&v&&c.Y8G("svgIcon","heroicons_outline:user-circle")}function am(v,m){if(1&v&&(c.j41(0,"div",18),c.EFF(1),c.k0s()),2&v){const d=c.XpG().$implicit;c.R7$(),c.JRh(d.about)}}function dy(v,m){if(1&v&&(c.j41(0,"mat-option",11)(1,"div",12)(2,"div",13),c.DNE(3,jh,1,2,"img",14)(4,zg,1,1,"mat-icon",15),c.k0s(),c.j41(5,"div",16)(6,"span",17),c.EFF(7),c.k0s(),c.DNE(8,am,2,1,"div",18),c.k0s()()()),2&v){const d=m.$implicit;c.Y8G("routerLink",d.link)("value",d.name),c.R7$(3),c.vxM(d.avatar?3:4),c.R7$(4),c.JRh(d.name),c.R7$(),c.vxM(d.about?8:-1)}}function yw(v,m){1&v&&c.Z7z(0,dy,9,5,"mat-option",11,sm),2&v&&c.Dyx(m.$implicit.results)}function bw(v,m){if(1&v){const d=c.RV6();c.j41(0,"div",3),c.nrm(1,"mat-icon",6),c.j41(2,"input",7,0),c.bIt("keydown",function(D){c.eBV(d);const j=c.XpG(2);return c.Njj(j.onKeydown(D))}),c.k0s(),c.j41(4,"mat-autocomplete",8,1),c.DNE(6,uy,2,0,"mat-option",9),c.Z7z(7,yw,2,0,null,null,sm),c.k0s(),c.j41(9,"button",10),c.bIt("click",function(){c.eBV(d);const D=c.XpG(2);return c.Njj(D.close())}),c.nrm(10,"mat-icon",5),c.k0s()()}if(2&v){let d;const _=c.sdS(5),D=c.XpG(2);c.R7$(),c.Y8G("svgIcon","heroicons_outline:magnifying-glass"),c.R7$(),c.Y8G("formControl",D.searchControl)("matAutocomplete",_),c.R7$(4),c.vxM(0===(null==(d=D.resultSets())?null:d.length)?6:-1),c.R7$(),c.Dyx(D.resultSets()),c.R7$(3),c.Y8G("svgIcon","heroicons_outline:x-mark")}}function Vh(v,m){if(1&v&&c.DNE(0,cy,2,1,"button",2)(1,bw,11,5,"div",3),2&v){const d=c.XpG();c.vxM(d.opened()?-1:0),c.R7$(),c.vxM(d.opened()?1:-1)}}let Kg=(()=>{class v{constructor(){this.appearance="basic",this.debounce=300,this.minLength=2,this.search=new c.bkB,this.searchControl=new Au.hs,this.resultSets=(0,c.vPA)([]),this.opened=(0,c.vPA)(!1),this.unsubscribeAll=new Ka.B,this.storageService=(0,c.WQX)(im.n)}ngOnInit(){this.initializeSearch()}ngOnDestroy(){this.unsubscribeAll.next(),this.unsubscribeAll.complete()}initializeSearch(){var d=this;this.searchControl.valueChanges.pipe((0,ay.B)(this.debounce),(0,_l.Q)(this.unsubscribeAll),(0,Vs.T)(_=>((!_||_.length_&&_.length>=this.minLength)).subscribe(function(){var _=(0,w.A)(function*(D){const ne=(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(ne),d.search.emit(ne)});return function(D){return _.apply(this,arguments)}}())}onKeydown(d){"Escape"===d.key&&this.close()}open(){this.opened()||this.opened.set(!0)}close(){this.opened()&&(this.searchControl.setValue(""),this.opened.set(!1))}handleImageError(d){const _=d.target;_.onerror=null,_.src="images/avatars/avatar-placeholder.png"}trackByFn(d,_){return _.id||d}static{this.\u0275fac=function(_){return new(_||v)}}static{this.\u0275cmp=c.VBU({type:v,selectors:[["search"]],viewQuery:function(_,D){if(1&_&&(c.GBs(ly,5),c.GBs(om,5)),2&_){let j;c.mGM(j=c.lsd())&&(D.barSearchInput=j.first),c.mGM(j=c.lsd())&&(D.matAutocomplete=j.first)}},inputs:{appearance:"appearance",debounce:"debounce",minLength:"minLength"},outputs:{search:"search"},decls:2,vars:1,consts:[["barSearchInput",""],["matAutocomplete","matAutocomplete"],["mat-icon-button",""],[1,"bg-card","absolute","inset-0","z-99","flex","items-center"],["mat-icon-button","",3,"click"],[3,"svgIcon"],[1,"absolute","ml-6","sm:ml-8",3,"svgIcon"],["placeholder","Search...",1,"h-full","w-full","px-16","sm:px-18",3,"keydown","formControl","matAutocomplete"],[1,"max-h-128","rounded-b","border-t","shadow-md"],[1,"text-secondary","pointer-events-none"],["mat-icon-button","",1,"absolute","right-5","top-1/2","-mt-5",3,"click"],[3,"routerLink","value"],[1,"flex","items-center"],[1,"h-8","w-8","rounded-full","bg-primary-100","dark:bg-primary-800"],[1,"h-full","w-full","object-cover",3,"src","alt"],[1,"m-0","text-primary",3,"svgIcon"],[1,"ml-3","truncate"],[1,"font-semibold"],[1,"text-sm","text-gray-500"],[1,"h-full","w-full","object-cover",3,"error","src","alt"]],template:function(_,D){1&_&&(c.j41(0,"div"),c.DNE(1,Vh,2,2),c.k0s()),2&_&&(c.R7$(),c.vxM("bar"===D.appearance?1:-1))},dependencies:[Ia.Hl,Ia.iY,ol.m_,ol.An,Au.X1,Au.me,Au.BC,Au.l_,$h,ry,Yt.wT,Uh,Yt.Sy,a.Wk,wn.RG,sy.fS,st.MD],encapsulation:2})}}return v})();var Hh=r(1109),jf=r(7702),nd=r(7818),ww=r(4482);const Ew=()=>["/settings"];function Gg(v,m){if(1&v&&c.nrm(0,"img",4),2&v){let d;const _=c.XpG();c.Y8G("src",_.getSafeUrl(null==(d=_.user())?null:d.picture),c.B4B)}}function hy(v,m){1&v&&c.nrm(0,"mat-icon",5),2&v&&c.Y8G("svgIcon","heroicons_outline:user-circle")}let lm=(()=>{class v{constructor(){this.user=(0,c.vPA)(null),this.config=(0,c.vPA)(null),this.userPubKey=(0,c.vPA)(""),this.signerService=(0,c.WQX)(Bd.A),this.storageService=(0,c.WQX)(im.n),this.angorConfigService=(0,c.WQX)(Hh.P),this.router=(0,c.WQX)(a.Ix),this.sanitizer=(0,c.WQX)(i.up),this.nostrLoginService=(0,c.WQX)(ww.v),this.userPubKey.set(this.signerService.getPublicKey()),this.loadUserProfile(),(0,c.QZP)(()=>{this.config.set(this.angorConfigService.config),this.config()&&localStorage.setItem("angorConfig",JSON.stringify(this.config()))}),this.storageService.profile$.subscribe(d=>{d&&d.pubKey===this.userPubKey()&&this.user.set(d.metadata||{})})}loadUserProfile(){this.storageService.getProfile(this.userPubKey()).then(d=>{this.user.set(d||{})})}logout(){this.router.navigate(["/logout"])}Switch(){this.nostrLoginService.switchAccount()}profile(){this.router.navigate(["/profile"])}setScheme(d){this.angorConfigService.config={scheme:d}}setTheme(d){this.angorConfigService.config={theme:d}}getSafeUrl(d){return this.sanitizer.bypassSecurityTrustUrl(d)}switchAccount(){this.nostrLoginService.switchAccount()}static{this.\u0275fac=function(_){return new(_||v)}}static{this.\u0275cmp=c.VBU({type:v,selectors:[["user"]],decls:49,vars:15,consts:[["userActions","matMenu"],["settingsMenu","matMenu"],["mat-icon-button","",3,"matMenuTriggerFor"],[1,"relative"],["alt","","onerror","this.onerror=null; this.src='/images/avatars/avatar-placeholder.png';",1,"h-7","w-7","rounded-full","object-cover",3,"src"],[3,"svgIcon"],[3,"xPosition"],["mat-menu-item",""],[1,"flex","flex-col","leading-none"],[1,"mt-1.5","text-md","font-medium"],[1,"my-2"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"matMenuTriggerFor"],["mat-menu-item","",3,"routerLink"]],template:function(_,D){if(1&_){const j=c.RV6();c.j41(0,"button",2)(1,"span",3),c.DNE(2,Gg,1,1,"img",4)(3,hy,1,1,"mat-icon",5),c.k0s()(),c.j41(4,"mat-menu",6,0)(6,"button",7)(7,"span",8)(8,"span"),c.EFF(9,"Logged in as"),c.k0s(),c.j41(10,"span",9),c.EFF(11),c.k0s()()(),c.nrm(12,"mat-divider",10),c.j41(13,"button",11),c.bIt("click",function(){return c.eBV(j),c.Njj(D.Switch())}),c.nrm(14,"mat-icon",5),c.j41(15,"span"),c.EFF(16,"Switch account"),c.k0s()(),c.j41(17,"button",11),c.bIt("click",function(){return c.eBV(j),c.Njj(D.profile())}),c.nrm(18,"mat-icon",5),c.j41(19,"span"),c.EFF(20,"Profile"),c.k0s()(),c.j41(21,"button",12),c.nrm(22,"mat-icon",5),c.j41(23,"span"),c.EFF(24,"Options"),c.k0s()(),c.nrm(25,"mat-divider",10),c.j41(26,"button",11),c.bIt("click",function(){return c.eBV(j),c.Njj(D.logout())}),c.nrm(27,"mat-icon",5),c.j41(28,"span"),c.EFF(29,"logout"),c.k0s()()(),c.j41(30,"mat-menu",null,1)(32,"button",11),c.bIt("click",function(){return c.eBV(j),c.Njj(D.setScheme("auto"))}),c.nrm(33,"mat-icon",5),c.j41(34,"span"),c.EFF(35,"Auto Theme"),c.k0s()(),c.j41(36,"button",11),c.bIt("click",function(){return c.eBV(j),c.Njj(D.setScheme("light"))}),c.nrm(37,"mat-icon",5),c.j41(38,"span"),c.EFF(39,"Light Theme"),c.k0s()(),c.j41(40,"button",11),c.bIt("click",function(){return c.eBV(j),c.Njj(D.setScheme("dark"))}),c.nrm(41,"mat-icon",5),c.j41(42,"span"),c.EFF(43,"Dark Theme"),c.k0s()(),c.nrm(44,"mat-divider"),c.j41(45,"button",13),c.nrm(46,"mat-icon",5),c.j41(47,"span"),c.EFF(48,"Settings"),c.k0s()()()}if(2&_){let j,ne;const we=c.sdS(5),Ye=c.sdS(31);c.Y8G("matMenuTriggerFor",we),c.R7$(2),c.vxM(null!=(j=D.user())&&j.picture?2:3),c.R7$(2),c.Y8G("xPosition","before"),c.R7$(7),c.JRh((null==(ne=D.user())?null:ne.display_name)||(null==D.user?null:D.user.name)||"Unknown User"),c.R7$(3),c.Y8G("svgIcon","heroicons_outline:user-circle"),c.R7$(4),c.Y8G("svgIcon","heroicons_outline:user-circle"),c.R7$(3),c.Y8G("matMenuTriggerFor",Ye),c.R7$(),c.Y8G("svgIcon","heroicons_outline:cog-8-tooth"),c.R7$(5),c.Y8G("svgIcon","heroicons_outline:arrow-right-on-rectangle"),c.R7$(6),c.Y8G("svgIcon","heroicons_solid:bolt"),c.R7$(4),c.Y8G("svgIcon","heroicons_solid:sun"),c.R7$(4),c.Y8G("svgIcon","heroicons_solid:moon"),c.R7$(4),c.Y8G("routerLink",c.lJ4(14,Ew)),c.R7$(),c.Y8G("svgIcon","heroicons_outline:cog-8-tooth")}},dependencies:[Ia.Hl,Ia.iY,nd.Cn,nd.kk,nd.fb,nd.Cp,ol.m_,ol.An,jf.w,jf.q,st.MD,a.iI,a.Wk],encapsulation:2,changeDetection:0})}}return v})();var cm=r(6061),Xg=r(9587);let Yg=(()=>{class v{constructor(d,_){this.swUpdate=d,this.zone=_,this.newVersionAvailableSubject=new Ne.t(!1),this.isNewVersionAvailable$=this.newVersionAvailableSubject.asObservable(),this.intervalSource=function rd(v=0,m=cm.E){return v<0&&(v=0),(0,Xg.O)(v,v,m)}(9e5),this.checkForUpdateOnLoad(),this.checkForUpdateOnInterval()}applyUpdate(){this.swUpdate.activateUpdate().then(()=>document.location.reload()).catch(d=>console.error("Failed to apply updates:",d))}checkForUpdateOnInterval(){var d=this;this.unsubscribeInterval(),this.swUpdate.isEnabled&&this.zone.runOutsideAngular(()=>{this.intervalSubscription=this.intervalSource.subscribe((0,w.A)(function*(){try{(yield d.swUpdate.checkForUpdate())&&d.newVersionAvailableSubject.next(!0)}catch(_){console.error("Failed to check for updates:",_)}}))})}checkForUpdateOnLoad(){this.unsubscribeNewVersion(),this.swUpdate.isEnabled&&(this.newVersionSubscription=this.swUpdate.versionUpdates.subscribe(d=>{switch(d.type){case"VERSION_DETECTED":break;case"VERSION_READY":this.newVersionAvailableSubject.next(!0);break;case"VERSION_INSTALLATION_FAILED":console.error(`Failed to install app version '${d.version.hash}': ${d.error}`)}}))}unsubscribeInterval(){this.intervalSubscription&&this.intervalSubscription.unsubscribe()}unsubscribeNewVersion(){this.newVersionSubscription&&this.newVersionSubscription.unsubscribe()}static{this.\u0275fac=function(_){return new(_||v)(c.KVO(Xu),c.KVO(c.SKi))}}static{this.\u0275prov=c.jDH({token:v,factory:v.\u0275fac,providedIn:"root"})}}return v})();function fy(v,m){if(1&v){const d=c.RV6();c.j41(0,"button",1),c.bIt("click",function(){c.eBV(d);const D=c.XpG();return c.Njj(D.applyUpdate())}),c.nrm(1,"mat-icon",2),c.k0s()}if(2&v){const d=c.XpG();c.Y8G("matTooltip",d.tooltip()),c.R7$(),c.Y8G("svgIcon","heroicons_outline:cloud-arrow-down")}}let Qg=(()=>{class v{constructor(){this.tooltip=(0,c.vPA)("Update App"),this.isNewVersionAvailable=(0,c.vPA)(!1),this.updateService=(0,c.WQX)(Yg),this.updateService.isNewVersionAvailable$.subscribe(d=>{this.isNewVersionAvailable.set(d)})}applyUpdate(){this.updateService.applyUpdate()}static{this.\u0275fac=function(_){return new(_||v)}}static{this.\u0275cmp=c.VBU({type:v,selectors:[["update"]],decls:1,vars:1,consts:[["mat-icon-button","",3,"matTooltip"],["mat-icon-button","",3,"click","matTooltip"],[3,"svgIcon"]],template:function(_,D){1&_&&c.DNE(0,fy,2,2,"button",0),2&_&&c.vxM(D.isNewVersionAvailable()?0:-1)},dependencies:[st.MD,Ia.Hl,Ia.iY,ol.m_,ol.An,Fd.uc,Fd.oV],encapsulation:2,changeDetection:0})}}return v})();function py(v,m){if(1&v&&(c.j41(0,"angor-vertical-navigation",0),c.qex(1,10),c.j41(2,"div",11),c.nrm(3,"img",12),c.k0s(),c.bVm(),c.k0s()),2&v){const d=c.XpG();c.Y8G("mode","over")("name","mainNavigation")("navigation",d.navigation.default)("opened",!1)}}function my(v,m){if(1&v&&(c.j41(0,"div",13)(1,"div",14),c.nrm(2,"img",15)(3,"img",16),c.k0s(),c.nrm(4,"img",17),c.k0s(),c.nrm(5,"angor-horizontal-navigation",18)),2&v){const d=c.XpG();c.R7$(5),c.Y8G("name","mainNavigation")("navigation",d.navigation.horizontal)}}function Zg(v,m){if(1&v){const d=c.RV6();c.j41(0,"button",19),c.bIt("click",function(){c.eBV(d);const D=c.XpG();return c.Njj(D.toggleNavigation("mainNavigation"))}),c.nrm(1,"mat-icon",20),c.k0s()}2&v&&(c.R7$(),c.Y8G("svgIcon","heroicons_outline:bars-3"))}function gy(v,m){1&v&&c.nrm(0,"router-outlet")}let _y=(()=>{class v{constructor(d,_,D,j,ne){this._activatedRoute=d,this._router=_,this._navigationService=D,this._angorMediaWatcherService=j,this._angorNavigationService=ne,this._unsubscribeAll=new Ka.B,this.version=vs}ngOnInit(){this._navigationService.navigation$.pipe((0,_l.Q)(this._unsubscribeAll)).subscribe(d=>{this.navigation=d}),this._angorMediaWatcherService.onMediaChange$.pipe((0,_l.Q)(this._unsubscribeAll)).subscribe(({matchingAliases:d})=>{this.isScreenSmall=!d.includes("md")})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}toggleNavigation(d){const _=this._angorNavigationService.getComponent(d);_&&_.toggle()}static{this.\u0275fac=function(_){return new(_||v)(c.rXU(a.nX),c.rXU(a.Ix),c.rXU(qu),c.rXU(le.l),c.rXU(kc.lX))}}static{this.\u0275cmp=c.VBU({type:v,selectors:[["modern-layout"]],decls:17,vars:6,consts:[[1,"dark","bg-gray-900","print:hidden",3,"mode","name","navigation","opened"],[1,"flex","w-full","min-w-0","flex-auto","flex-col"],[1,"bg-card","relative","z-49","flex","h-16","w-full","flex-0","items-center","px-4","shadow","dark:border-b","dark:bg-transparent","dark:shadow-none","sm:h-20","md:px-6","print:hidden"],["mat-icon-button",""],[1,"ml-auto","flex","items-center","space-x-0.5","pl-2","sm:space-x-2"],[1,"hidden","md:block"],[3,"appearance"],[1,"flex","w-full","flex-auto","flex-col"],[1,"bg-card","relative","z-49","flex","h-14","w-full","flex-0","items-center","border-t","px-4","dark:bg-transparent","sm:h-20","md:px-6","print:hidden"],[1,"text-secondary","font-medium"],["angorVerticalNavigationContentHeader",""],[1,"flex","h-20","items-center","px-8","pt-6"],["src","images/logo/logo-text-on-dark.svg","alt","Angor Hub",1,"h-10","w-24"],[1,"mx-2","flex","items-center","lg:mr-8"],[1,"hidden","lg:flex"],["src","images/logo/logo-text.svg",1,"h-10","w-24","dark:hidden"],["src","images/logo/logo-text-on-dark.svg",1,"hidden","h-10","w-24","dark:flex"],["src","images/logo/logo.svg",1,"flex","w-8","lg:hidden"],[1,"mr-2",3,"name","navigation"],["mat-icon-button","",3,"click"],[3,"svgIcon"]],template:function(_,D){1&_&&(c.nrm(0,"angor-loading-bar"),c.DNE(1,py,4,4,"angor-vertical-navigation",0),c.j41(2,"div",1)(3,"div",2),c.DNE(4,my,6,2)(5,Zg,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,gy,1,0,"router-outlet"),c.k0s(),c.j41(14,"div",8)(15,"span",9),c.EFF(16),c.k0s()()()),2&_&&(c.R7$(),c.vxM(D.isScreenSmall?1:-1),c.R7$(3),c.vxM(D.isScreenSmall?-1:4),c.R7$(),c.vxM(D.isScreenSmall?5:-1),c.R7$(4),c.Y8G("appearance","bar"),c.R7$(4),c.vxM(13),c.R7$(3),c.SpI("Angor Hub - version ",D.version,""))},dependencies:[Su,kc.Tv,kc.$w,Ia.Hl,Ia.iY,ol.m_,ol.An,Ng,Kg,ed,lm,a.n3,Qg],encapsulation:2})}}return v})();function vy(v,m){1&v&&c.nrm(0,"router-outlet")}let yy=(()=>{class v{constructor(d,_,D,j,ne){this._activatedRoute=d,this._router=_,this._navigationService=D,this._angorMediaWatcherService=j,this._angorNavigationService=ne,this._unsubscribeAll=new Ka.B,this.version=vs}ngOnInit(){this._navigationService.navigation$.pipe((0,_l.Q)(this._unsubscribeAll)).subscribe(d=>{this.navigation=d}),this._angorMediaWatcherService.onMediaChange$.pipe((0,_l.Q)(this._unsubscribeAll)).subscribe(({matchingAliases:d})=>{this.isScreenSmall=!d.includes("md")})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}toggleNavigation(d){const _=this._angorNavigationService.getComponent(d);_&&_.toggle()}static{this.\u0275fac=function(_){return new(_||v)(c.rXU(a.nX),c.rXU(a.Ix),c.rXU(qu),c.rXU(le.l),c.rXU(kc.lX))}}static{this.\u0275cmp=c.VBU({type:v,selectors:[["classic-layout"]],decls:21,vars:8,consts:[[1,"dark","bg-gray-900","print:hidden",3,"mode","name","navigation","opened"],["angorVerticalNavigationContentHeader",""],[1,"flex","h-20","items-center","p-6"],["src","images/logo/logo-text.svg","alt","Angor Hub",1,"w-30","dark:hidden"],["src","images/logo/logo-text-on-dark.svg","alt","Angor Hub",1,"hidden","w-30","dark:flex"],[1,"flex","w-full","min-w-0","flex-auto","flex-col"],[1,"bg-card","relative","z-49","flex","h-16","w-full","flex-0","items-center","px-4","shadow","dark:border-b","dark:bg-transparent","dark:shadow-none","md:px-6","print:hidden"],["mat-icon-button","",3,"click"],[3,"svgIcon"],[1,"ml-auto","flex","items-center","space-x-0.5","pl-2","sm:space-x-2"],[1,"hidden","md:block"],[3,"appearance"],[1,"flex","flex-auto","flex-col"],[1,"bg-card","relative","z-49","flex","h-14","w-full","flex-0","items-center","justify-start","border-t","px-4","dark:bg-transparent","md:px-6","print:hidden"],[1,"text-secondary","font-medium"]],template:function(_,D){1&_&&(c.nrm(0,"angor-loading-bar"),c.j41(1,"angor-vertical-navigation",0),c.qex(2,1),c.j41(3,"div",2),c.nrm(4,"img",3)(5,"img",4),c.k0s(),c.bVm(),c.k0s(),c.j41(6,"div",5)(7,"div",6)(8,"button",7),c.bIt("click",function(){return D.toggleNavigation("mainNavigation")}),c.nrm(9,"mat-icon",8),c.k0s(),c.j41(10,"div",9),c.nrm(11,"update")(12,"angor-fullscreen",10)(13,"search",11)(14,"notifications")(15,"user"),c.k0s()(),c.j41(16,"div",12),c.DNE(17,vy,1,0,"router-outlet"),c.k0s(),c.j41(18,"div",13)(19,"span",14),c.EFF(20),c.k0s()()()),2&_&&(c.R7$(),c.Y8G("mode",D.isScreenSmall?"over":"side")("name","mainNavigation")("navigation",D.navigation.default)("opened",!D.isScreenSmall),c.R7$(8),c.Y8G("svgIcon","heroicons_outline:bars-3"),c.R7$(4),c.Y8G("appearance","bar"),c.R7$(4),c.vxM(17),c.R7$(3),c.SpI("Angor Hub - version ",D.version,""))},dependencies:[Su,kc.Tv,Ia.Hl,Ia.iY,ol.m_,ol.An,Ng,Kg,ed,lm,a.n3,Qg],encapsulation:2})}}return v})();function by(v,m){1&v&&c.nrm(0,"empty-layout")}function um(v,m){1&v&&c.nrm(0,"modern-layout")}function wy(v,m){1&v&&c.nrm(0,"classic-layout")}let dm=(()=>{class v{constructor(d,_,D,j,ne,we,Ye){this._activatedRoute=d,this._document=_,this._renderer2=D,this._router=j,this._angorConfigService=ne,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,_l.Q)(this._unsubscribeAll),(0,Vs.T)(([d,_])=>{const D={scheme:d.scheme,theme:d.theme};return"auto"===d.scheme&&(D.scheme=_.breakpoints["(prefers-color-scheme: dark)"]?"dark":"light"),D})).subscribe(d=>{this.scheme=d.scheme,this.theme=d.theme,this._updateScheme(),this._updateTheme()}),this._angorConfigService.config$.pipe((0,_l.Q)(this._unsubscribeAll)).subscribe(d=>{this.config=d,this._updateLayout()}),this._router.events.pipe((0,ft.p)(d=>d instanceof a.wF),(0,_l.Q)(this._unsubscribeAll)).subscribe(()=>{this._updateLayout()}),this._renderer2.setAttribute(this._document.querySelector("[ng-version]"),"angor-version",vs),this._renderer2.addClass(this._document.body,this._angorPlatformService.osName)}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}_updateLayout(){let d=this._activatedRoute;for(;d.firstChild;)d=d.firstChild;this.layout=this.config.layout;const _=d.snapshot.queryParamMap.get("layout");_&&(this.layout=_,this.config&&(this.config.layout=_)),d.pathFromRoot.forEach(j=>{j.routeConfig&&j.routeConfig.data&&j.routeConfig.data.layout&&(this.layout=j.routeConfig.data.layout)})}_updateScheme(){this._document.body.classList.remove("light","dark"),this._document.body.classList.add(this.scheme)}_updateTheme(){this._document.body.classList.forEach(d=>{d.startsWith("theme-")&&this._document.body.classList.remove(d,d.split("-")[1])}),this._document.body.classList.add(this.theme)}static{this.\u0275fac=function(_){return new(_||v)(c.rXU(a.nX),c.rXU(st.qQ),c.rXU(c.sFG),c.rXU(a.Ix),c.rXU(Hh.P),c.rXU(le.l),c.rXU(Ue))}}static{this.\u0275cmp=c.VBU({type:v,selectors:[["layout"]],decls:3,vars:3,template:function(_,D){1&_&&c.DNE(0,by,1,0,"empty-layout")(1,um,1,0,"modern-layout")(2,wy,1,0,"classic-layout"),2&_&&(c.vxM("empty"===D.layout?0:-1),c.R7$(),c.vxM("modern"===D.layout?1:-1),c.R7$(),c.vxM("classic"===D.layout?2:-1))},dependencies:[Lh,_y,yy],styles:["layout{display:flex;flex:1 1 auto;width:100%;max-width:100%;min-width:0}layout>*{position:relative;display:flex;flex:1 1 auto;width:100%}layout router-outlet+*{position:relative;display:flex;flex:1 1 auto;width:100%}\n"],encapsulation:2})}}return v})();const fc=()=>{const v=(0,c.WQX)(Bd.A),m=(0,c.WQX)(a.Ix);return""!==v.getPublicKey()||m.parseUrl("/login")},Vf=[{path:"",pathMatch:"full",redirectTo:"home"},{path:"project/:pubkey",pathMatch:"full",redirectTo:"explore"},{path:"login-redirect",pathMatch:"full",redirectTo:"explore"},{path:"",component:dm,data:{layout:"empty"},children:[{path:"login",loadChildren:()=>Promise.all([r.e(87),r.e(232)]).then(r.bind(r,6232))},{path:"create",loadChildren:()=>Promise.all([r.e(87),r.e(664)]).then(r.bind(r,9664))}]},{path:"",canActivate:[fc],canActivateChild:[fc],component:dm,data:{layout:"empty"},children:[{path:"logout",loadChildren:()=>r.e(957).then(r.bind(r,7957))}]},{path:"",canActivate:[fc],canActivateChild:[fc],component:dm,resolve:{initialData:()=>{const v=(0,c.WQX)(qu);return(0,c.WQX)(Xv),(0,Qu.p)([v.get()])}},children:[{path:"home",loadChildren:()=>Promise.all([r.e(859),r.e(318),r.e(523),r.e(863),r.e(836)]).then(r.bind(r,836))},{path:"explore",loadChildren:()=>Promise.all([r.e(318),r.e(371),r.e(76),r.e(45)]).then(r.bind(r,2045))},{path:"zap",loadChildren:()=>Promise.all([r.e(859),r.e(785)]).then(r.bind(r,8166))},{path:"bookmark",loadChildren:()=>Promise.all([r.e(318),r.e(371),r.e(76),r.e(767)]).then(r.bind(r,6767))},{path:"profile",loadChildren:()=>Promise.all([r.e(859),r.e(318),r.e(523),r.e(371),r.e(556),r.e(863),r.e(76),r.e(394)]).then(r.bind(r,5394))},{path:"profile/:pubkey",loadChildren:()=>Promise.all([r.e(859),r.e(318),r.e(523),r.e(371),r.e(556),r.e(863),r.e(76),r.e(394)]).then(r.bind(r,5394))},{path:"profile/:pubkey/:project",loadChildren:()=>Promise.all([r.e(859),r.e(318),r.e(523),r.e(371),r.e(556),r.e(863),r.e(76),r.e(394)]).then(r.bind(r,5394))},{path:"post",loadChildren:()=>Promise.all([r.e(859),r.e(318),r.e(523),r.e(556),r.e(863),r.e(544)]).then(r.bind(r,6544))},{path:"post/:id",loadChildren:()=>Promise.all([r.e(859),r.e(318),r.e(523),r.e(556),r.e(863),r.e(544)]).then(r.bind(r,6544))},{path:"settings",loadChildren:()=>Promise.all([r.e(859),r.e(371),r.e(76),r.e(824)]).then(r.bind(r,8824))},{path:"settings/:id",loadChildren:()=>Promise.all([r.e(859),r.e(371),r.e(76),r.e(824)]).then(r.bind(r,8824))},{path:"chat",loadChildren:()=>Promise.all([r.e(859),r.e(523),r.e(556),r.e(512)]).then(r.bind(r,1512))},{path:"404-not-found",pathMatch:"full",loadChildren:()=>r.e(256).then(r.bind(r,9256))},{path:"**",redirectTo:"404-not-found"}]}];let hm=(()=>{class v{constructor(){const d=(0,c.WQX)(i.up),_=(0,c.WQX)(ol.tp);_.addSvgIconSet(d.bypassSecurityTrustResourceUrl("icons/material-twotone.svg")),_.addSvgIconSetInNamespace("mat_outline",d.bypassSecurityTrustResourceUrl("icons/material-outline.svg")),_.addSvgIconSetInNamespace("mat_solid",d.bypassSecurityTrustResourceUrl("icons/material-solid.svg")),_.addSvgIconSetInNamespace("feather",d.bypassSecurityTrustResourceUrl("icons/feather.svg")),_.addSvgIconSetInNamespace("heroicons_outline",d.bypassSecurityTrustResourceUrl("icons/heroicons-outline.svg")),_.addSvgIconSetInNamespace("heroicons_solid",d.bypassSecurityTrustResourceUrl("icons/heroicons-solid.svg")),_.addSvgIconSetInNamespace("heroicons_mini",d.bypassSecurityTrustResourceUrl("icons/heroicons-mini.svg"))}static{this.\u0275fac=function(_){return new(_||v)}}static{this.\u0275prov=c.jDH({token:v,factory:v.\u0275fac,providedIn:"root"})}}return v})();var Ey=r(8747),xy=r(1540);let Hf=(()=>{class v{constructor(d){this.httpClient=d}getTranslation(d){return this.httpClient.get(`./i18n/${d}.json`)}static{this.\u0275fac=function(_){return new(_||v)(c.KVO(te.Qq))}}static{this.\u0275prov=c.jDH({token:v,factory:v.\u0275fac,providedIn:"root"})}}return v})();const fm=[{id:"home",title:"Home",type:"basic",icon:"heroicons_outline:home",link:"/home"},{id:"explore",title:"Explore",type:"basic",icon:"heroicons_outline:magnifying-glass",link:"/explore"},{id:"bookmark",title:"Bookmark",type:"basic",icon:"heroicons_outline:bookmark",link:"/bookmark"},{id:"chat",title:"Chat",type:"basic",icon:"heroicons_outline:chat-bubble-left-right",link:"/chat",badge:{title:"0",classes:"px-2 bg-[#086c81] text-white rounded-full"}},{id:"profile",title:"Profile",type:"basic",icon:"heroicons_outline:user",link:"/profile"},{id:"settings",title:"Settings",type:"basic",icon:"heroicons_outline:cog-6-tooth",link:"/settings"}],qg=[{id:"home",title:"Home",type:"basic",icon:"heroicons_outline:home",link:"/home"},{id:"explore",title:"Explore",type:"basic",icon:"heroicons_outline:magnifying-glass",link:"/explore"},{id:"bookmark",title:"Bookmark",type:"basic",icon:"heroicons_outline:bookmark",link:"/bookmark"},{id:"chat",title:"Chat",type:"basic",icon:"heroicons_outline:chat-bubble-left-right",link:"/chat",badge:{title:"27",classes:"px-2 bg-[#086c81] text-white rounded-full"}},{id:"profile",title:"Profile",type:"basic",icon:"heroicons_outline:user",link:"/profile"},{id:"settings",title:"Settings",type:"basic",icon:"heroicons_outline:cog-6-tooth",link:"/settings"}];var Jg=r(1238);var Cy=r(2065),Wf=r(101),Dy=r(6259),Sy=r(1561);const Vd=(0,r(5717).A)(Object.keys,Object);var My=Object.prototype.hasOwnProperty;var Oy=r(2808);const zf=function Ry(v){return(0,Oy.A)(v)?(0,Dy.A)(v):function ky(v){if(!(0,Sy.A)(v))return Vd(v);var m=[];for(var d in Object(v))My.call(v,d)&&"constructor"!=d&&m.push(d);return m}(v)};var pm=r(3959);var Jc=r(4224),Wh=r(1369);const Fy=function r_(){return[]};var Dw=Object.prototype.propertyIsEnumerable,Gf=Object.getOwnPropertySymbols;const i_=Gf?function(v){return null==v?[]:(v=Object(v),function t_(v,m){for(var d=-1,_=null==v?0:v.length,D=0,j=[];++d<_;){var ne=v[d];m(ne,d,v)&&(j[D++]=ne)}return j}(Gf(v),function(m){return Dw.call(v,m)}))}:Fy,s_=function By(v,m){for(var d=-1,_=m.length,D=v.length;++d<_;)v[D+d]=m[d];return v};var Uy=r(5749);const gm=Object.getOwnPropertySymbols?function(v){for(var m=[];v;)s_(m,i_(v)),v=(0,Uy.A)(v);return m}:Fy;var l_=r(9007);const zh=function c_(v,m,d){var _=m(v);return(0,l_.A)(v)?_:s_(_,d(v))},_m=function u_(v){return zh(v,zf,i_)},od=function Hy(v){return zh(v,pm.A,gm)};var Kh=r(3121),Xf=r(9311);const Gh=(0,Kh.A)(Xf.A,"DataView");var ym=r(2769);const bm=(0,Kh.A)(Xf.A,"Promise"),Yf=(0,Kh.A)(Xf.A,"Set"),d_=(0,Kh.A)(Xf.A,"WeakMap");var Hd=r(5688),Wd=r(4435),h_="[object Map]",wm="[object Promise]",f_="[object Set]",p_="[object WeakMap]",m_="[object DataView]",Gy=(0,Wd.A)(Gh),Xy=(0,Wd.A)(ym.A),Yy=(0,Wd.A)(bm),Em=(0,Wd.A)(Yf),Tw=(0,Wd.A)(d_),zd=Hd.A;(Gh&&zd(new Gh(new ArrayBuffer(1)))!=m_||ym.A&&zd(new ym.A)!=h_||bm&&zd(bm.resolve())!=wm||Yf&&zd(new Yf)!=f_||d_&&zd(new d_)!=p_)&&(zd=function(v){var m=(0,Hd.A)(v),d="[object Object]"==m?v.constructor:void 0,_=d?(0,Wd.A)(d):"";if(_)switch(_){case Gy:return m_;case Xy:return h_;case Yy:return wm;case Em:return f_;case Tw:return p_}return m});const Xh=zd;var kw=Object.prototype.hasOwnProperty;var Qy=r(3031);var Zf=/\w*$/;var xm=r(4883),v_=xm.A?xm.A.prototype:void 0,y_=v_?v_.valueOf:void 0;var $l=r(7383);const S_=function eb(v,m,d){var _=v.constructor;switch(m){case"[object ArrayBuffer]":return(0,Qy.A)(v);case"[object Boolean]":case"[object Date]":return new _(+v);case"[object DataView]":return function Zy(v,m){var d=m?(0,Qy.A)(v.buffer):v.buffer;return new v.constructor(d,v.byteOffset,v.byteLength)}(v,d);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return(0,$l.A)(v,d);case"[object Map]":case"[object Set]":return new _;case"[object Number]":case"[object String]":return new _(v);case"[object RegExp]":return function g_(v){var m=new v.constructor(v.source,Zf.exec(v));return m.lastIndex=v.lastIndex,m}(v);case"[object Symbol]":return function b_(v){return y_?Object(y_.call(v)):{}}(v)}};var tb=r(223),nb=r(5303),Tm=r(2312);var ep=r(4975),tp=r(8583),A_=tp.A&&tp.A.isMap;const T_=A_?(0,ep.A)(A_):function Yh(v){return(0,Tm.A)(v)&&"[object Map]"==Xh(v)};var sd=r(7999);var I_=tp.A&&tp.A.isSet;const R_=I_?(0,ep.A)(I_):function k_(v){return(0,Tm.A)(v)&&"[object Set]"==Xh(v)};var Zh="[object Arguments]",Nm="[object Function]",Pm="[object Object]",Go={};Go[Zh]=Go["[object Array]"]=Go["[object ArrayBuffer]"]=Go["[object DataView]"]=Go["[object Boolean]"]=Go["[object Date]"]=Go["[object Float32Array]"]=Go["[object Float64Array]"]=Go["[object Int8Array]"]=Go["[object Int16Array]"]=Go["[object Int32Array]"]=Go["[object Map]"]=Go["[object Number]"]=Go[Pm]=Go["[object RegExp]"]=Go["[object Set]"]=Go["[object String]"]=Go["[object Symbol]"]=Go["[object Uint8Array]"]=Go["[object Uint8ClampedArray]"]=Go["[object Uint16Array]"]=Go["[object Uint32Array]"]=!0,Go["[object Error]"]=Go[Nm]=Go["[object WeakMap]"]=!1;const j_=function rp(v,m,d,_,D,j){var ne,we=1&m,Ye=2&m,yt=4&m;if(d&&(ne=D?d(v,_,D,j):d(v)),void 0!==ne)return ne;if(!(0,sd.A)(v))return v;var cn=(0,l_.A)(v);if(cn){if(ne=function Iw(v){var m=v.length,d=new v.constructor(m);return m&&"string"==typeof v[0]&&kw.call(v,"index")&&(d.index=v.index,d.input=v.input),d}(v),!we)return(0,Wh.A)(v,ne)}else{var gn=Xh(v),wr=gn==Nm||"[object GeneratorFunction]"==gn;if((0,nb.A)(v))return(0,Jc.A)(v,we);if(gn==Pm||gn==Zh||wr&&!D){if(ne=Ye||wr?{}:(0,tb.A)(v),!we)return Ye?function a_(v,m){return(0,Wf.A)(v,gm(v),m)}(v,function Py(v,m){return v&&(0,Wf.A)(m,(0,pm.A)(m),v)}(ne,v)):function Sw(v,m){return(0,Wf.A)(v,i_(v),m)}(v,function Ny(v,m){return v&&(0,Wf.A)(m,zf(m),v)}(ne,v))}else{if(!Go[gn])return D?v:{};ne=S_(v,gn,we)}}j||(j=new Jg.A);var Zn=j.get(v);if(Zn)return Zn;j.set(v,ne),R_(v)?v.forEach(function(yi){ne.add(rp(yi,m,d,yi,v,j))}):T_(v)&&v.forEach(function(yi,go){ne.set(go,rp(yi,m,d,go,v,j))});var ei=cn?void 0:(yt?Ye?od:_m:Ye?pm.A:zf)(v);return function e_(v,m){for(var d=-1,_=null==v?0:v.length;++d<_&&!1!==m(v[d],d,v););}(ei||v,function(yi,go){ei&&(yi=v[go=yi]),(0,Cy.A)(ne,go,rp(yi,m,d,go,v,j))}),ne},Si=function gb(v){return j_(v,5)},V_=[(()=>{class v{constructor(d){this._angorMockApiService=d,this._defaultNavigation=fm,this._horizontalNavigation=qg,this.registerHandlers()}registerHandlers(){this._angorMockApiService.onGet("api/navigation").reply(()=>(this._horizontalNavigation.forEach(d=>{this._defaultNavigation.forEach(_=>{_.id===d.id&&(d.children=Si(_.children))})}),[200,{default:Si(this._defaultNavigation),horizontal:Si(this._horizontalNavigation)}]))}static{this.\u0275fac=function(_){return new(_||v)(c.KVO(Z))}}static{this.\u0275prov=c.jDH({token:v,factory:v.\u0275fac,providedIn:"root"})}}return v})()];let Xd=(()=>{class v{constructor(d){this.http=d,this.timestamp=null,this.ngswFilePath="/ngsw.json"}load(){var d=this;return(0,w.A)(function*(){try{const _=yield d.http.get(d.ngswFilePath).toPromise();_&&_.timestamp?(d.timestamp=_.timestamp,console.log("Timestamp successfully loaded:",d.timestamp)):console.error("Invalid data format in ngsw.json")}catch(_){console.error("Error loading ngsw.json:",_)}})()}getTimestamp(){return this.timestamp}loadHash(){return this.http.get(this.ngswFilePath).pipe((0,Vs.T)(d=>d.timestamp||null),(0,x.W)(d=>(console.error("Error fetching ngsw.json hash:",d),(0,A.$)(()=>new Error("Failed to load hash.")))))}static{this.\u0275fac=function(_){return new(_||v)(c.KVO(te.Qq))}}static{this.\u0275prov=c.jDH({token:v,factory:v.\u0275fac,providedIn:"root"})}}return v})();var Bm=r(6433),H_=r(3024);const Um={providers:[function zp(){return(0,c.ngT)("NgEagerAnimations"),[...Eh]}(),(0,te.$R)(),function Mh(v,m={}){return(0,c.EmA)([kf,Xu,{provide:Yu,useValue:v},{provide:Qc,useValue:m},{provide:Eu,useFactory:Ta,deps:[Qc,c.Agw]},{provide:c.hnV,useFactory:If,deps:[c.zZn,Yu,Qc,c.Agw],multi:!0}])}("ngsw-worker.js",{enabled:!(0,c.naY)(),registrationStrategy:"registerWhenStable:30000"}),{provide:c.hnV,useFactory:function ld(v){return()=>v.load()},deps:[Xd,Bd.A,Bm.d],multi:!0},{provide:c.hnV,useFactory:function vb(v,m){return(0,w.A)(function*(){const d=v.getPublicKey();d&&(yield m.loadUserProfile(d))})},deps:[Bd.A,Bm.d],multi:!0},{provide:c.hnV,useFactory:function Jh(){return()=>{(0,H_.Ts)({theme:"ocean",noBanner:!0,title:"Angor Hub",onAuth:(v,m)=>{}})}},multi:!0},(0,a.lh)(Vf,(0,a.oH)({scrollPositionRestoration:"enabled"})),{provide:Yt.MJ,useClass:Sa},{provide:Yt.de,useValue:{parse:{dateInput:"D"},display:{dateInput:"DDD",monthYearLabel:"LLL yyyy",dateA11yLabel:"DD",monthYearA11yLabel:"LLLL yyyy"}}},function Dg(v){const m=[Mg(pi),Zp(Hs),Rh(Ma),Qp(ka)];return v.config&&m.push(function Sg(v){return(0,c.EmA)([{provide:qi,useValue:br(v)}])}(v.config)),v.loader&&m.push(function Ag(v){return(0,c.EmA)([{provide:Kt,useClass:v}])}(v.loader)),m}({config:{availableLangs:[{id:"en",label:"English"}],defaultLang:"en",fallbackLang:"en",reRenderOnLangChange:!0,prodMode:!0},loader:Hf}),{provide:c.hnV,useFactory:()=>{const v=(0,c.WQX)(Rd),m=v.getDefaultLang();return v.setActiveLang(m),()=>function xw(v,m){const d="object"==typeof m;return new Promise((_,D)=>{const j=new xy.Ms({next:ne=>{_(ne),j.unsubscribe()},error:D,complete:()=>{d?_(m.defaultValue):D(new Ey.G)}});v.subscribe(j)})}(v.load(m))},multi:!0},[{provide:c.Z63,useValue:()=>(0,c.WQX)(hm),multi:!0}],(v=>{const m=[{provide:Yt.N,useValue:{doctype:!0,theme:!1,version:!0}},{provide:wn.U$,useValue:{appearance:"fill"}},{provide:C,useValue:v?.mockApi?.delay??0},{provide:Te.t,useValue:v?.angor??{}},(0,c.oKB)(un.hM),{provide:c.Z63,useValue:()=>(0,c.WQX)(Ce.m),multi:!0},(0,te.$R)((0,te.b$)([ae])),{provide:c.Z63,useValue:()=>(0,c.WQX)(Se),multi:!0},{provide:c.Z63,useValue:()=>(0,c.WQX)(le.l),multi:!0},{provide:c.Z63,useValue:()=>(0,c.WQX)(Ue),multi:!0},{provide:c.Z63,useValue:()=>(0,c.WQX)(_t),multi:!0},{provide:c.Z63,useValue:()=>(0,c.WQX)(ot.Q),multi:!0}];return v?.mockApi?.services&&m.push((0,te.$R)((0,te.b$)([pe])),{provide:c.hnV,deps:[...v.mockApi.services],useFactory:()=>()=>null,multi:!0}),m})({mockApi:{delay:0,services:V_},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,Um).catch(v=>console.error(v))},9566:(o,s)=>{"use strict";s.byteLength=function A(Z){var te=C(Z),_e=te[1];return 3*(te[0]+_e)/4-_e},s.toByteArray=function T(Z){var te,Se,be=C(Z),_e=be[0],pe=be[1],Te=new a(function S(Z,te,be){return 3*(te+be)/4-be}(0,_e,pe)),Ce=0,Ne=pe>0?_e-4:_e;for(Se=0;Se>16&255,Te[Ce++]=te>>8&255,Te[Ce++]=255&te;return 2===pe&&(te=i[Z.charCodeAt(Se)]<<2|i[Z.charCodeAt(Se+1)]>>4,Te[Ce++]=255&te),1===pe&&(te=i[Z.charCodeAt(Se)]<<10|i[Z.charCodeAt(Se+1)]<<4|i[Z.charCodeAt(Se+2)]>>2,Te[Ce++]=te>>8&255,Te[Ce++]=255&te),Te},s.fromByteArray=function G(Z){for(var te,be=Z.length,_e=be%3,pe=[],Ce=0,Ne=be-_e;CeNe?Ne:Ce+16383));return 1===_e?pe.push(r[(te=Z[be-1])>>2]+r[te<<4&63]+"=="):2===_e&&pe.push(r[(te=(Z[be-2]<<8)+Z[be-1])>>10]+r[te>>4&63]+r[te<<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 te=Z.length;if(te%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var be=Z.indexOf("=");return-1===be&&(be=te),[be,be===te?0:4-be%4]}function k(Z){return r[Z>>18&63]+r[Z>>12&63]+r[Z>>6&63]+r[63&Z]}function R(Z,te,be){for(var pe=[],Te=te;Te{"use strict";const a=r(9566),c=r(9859),y="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;s.hp=S,s.IS=50;const w=2147483647;function A(W){if(W>w)throw new RangeError('The value "'+W+'" is invalid for option "size"');const L=new Uint8Array(W);return Object.setPrototypeOf(L,S.prototype),L}function S(W,L,V){if("number"==typeof W){if("string"==typeof L)throw new TypeError('The "string" argument must be of type string. Received type number');return G(W)}return T(W,L,V)}function T(W,L,V){if("string"==typeof W)return function Z(W,L){if(("string"!=typeof L||""===L)&&(L="utf8"),!S.isEncoding(L))throw new TypeError("Unknown encoding: "+L);const V=0|Ne(W,L);let Re=A(V);const bt=Re.write(W,L);return bt!==V&&(Re=Re.slice(0,bt)),Re}(W,L);if(ArrayBuffer.isView(W))return function be(W){if(Gt(W,Uint8Array)){const L=new Uint8Array(W);return _e(L.buffer,L.byteOffset,L.byteLength)}return te(W)}(W);if(null==W)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof W);if(Gt(W,ArrayBuffer)||W&&Gt(W.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Gt(W,SharedArrayBuffer)||W&&Gt(W.buffer,SharedArrayBuffer)))return _e(W,L,V);if("number"==typeof W)throw new TypeError('The "value" argument must not be of type number. Received type number');const Re=W.valueOf&&W.valueOf();if(null!=Re&&Re!==W)return S.from(Re,L,V);const bt=function pe(W){if(S.isBuffer(W)){const L=0|Te(W.length),V=A(L);return 0===V.length||W.copy(V,0,0,L),V}return void 0!==W.length?"number"!=typeof W.length||Ot(W.length)?A(0):te(W):"Buffer"===W.type&&Array.isArray(W.data)?te(W.data):void 0}(W);if(bt)return bt;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof W[Symbol.toPrimitive])return S.from(W[Symbol.toPrimitive]("string"),L,V);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof W)}function k(W){if("number"!=typeof W)throw new TypeError('"size" argument must be of type number');if(W<0)throw new RangeError('The value "'+W+'" is invalid for option "size"')}function G(W){return k(W),A(W<0?0:0|Te(W))}function te(W){const L=W.length<0?0:0|Te(W.length),V=A(L);for(let Re=0;Re=w)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+w.toString(16)+" bytes");return 0|W}function Ne(W,L){if(S.isBuffer(W))return W.length;if(ArrayBuffer.isView(W)||Gt(W,ArrayBuffer))return W.byteLength;if("string"!=typeof W)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof W);const V=W.length,Re=arguments.length>2&&!0===arguments[2];if(!Re&&0===V)return 0;let bt=!1;for(;;)switch(L){case"ascii":case"latin1":case"binary":return V;case"utf8":case"utf-8":return an(W).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*V;case"hex":return V>>>1;case"base64":return Xt(W).length;default:if(bt)return Re?-1:an(W).length;L=(""+L).toLowerCase(),bt=!0}}function Se(W,L,V){let Re=!1;if((void 0===L||L<0)&&(L=0),L>this.length||((void 0===V||V>this.length)&&(V=this.length),V<=0)||(V>>>=0)<=(L>>>=0))return"";for(W||(W="utf8");;)switch(W){case"hex":return Ze(this,L,V);case"utf8":case"utf-8":return Yt(this,L,V);case"ascii":return $n(this,L,V);case"latin1":case"binary":return En(this,L,V);case"base64":return ot(this,L,V);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return wt(this,L,V);default:if(Re)throw new TypeError("Unknown encoding: "+W);W=(W+"").toLowerCase(),Re=!0}}function xe(W,L,V){const Re=W[L];W[L]=W[V],W[V]=Re}function ae(W,L,V,Re,bt){if(0===W.length)return-1;if("string"==typeof V?(Re=V,V=0):V>2147483647?V=2147483647:V<-2147483648&&(V=-2147483648),Ot(V=+V)&&(V=bt?0:W.length-1),V<0&&(V=W.length+V),V>=W.length){if(bt)return-1;V=W.length-1}else if(V<0){if(!bt)return-1;V=0}if("string"==typeof L&&(L=S.from(L,Re)),S.isBuffer(L))return 0===L.length?-1:le(W,L,V,Re,bt);if("number"==typeof L)return L&=255,"function"==typeof Uint8Array.prototype.indexOf?bt?Uint8Array.prototype.indexOf.call(W,L,V):Uint8Array.prototype.lastIndexOf.call(W,L,V):le(W,[L],V,Re,bt);throw new TypeError("val must be string, number or Buffer")}function le(W,L,V,Re,bt){let mn,mt=1,At=W.length,Ln=L.length;if(void 0!==Re&&("ucs2"===(Re=String(Re).toLowerCase())||"ucs-2"===Re||"utf16le"===Re||"utf-16le"===Re)){if(W.length<2||L.length<2)return-1;mt=2,At/=2,Ln/=2,V/=2}function Zt(In,Bn){return 1===mt?In[Bn]:In.readUInt16BE(Bn*mt)}if(bt){let In=-1;for(mn=V;mnAt&&(V=At-Ln),mn=V;mn>=0;mn--){let In=!0;for(let Bn=0;Bnbt&&(Re=bt):Re=bt;const mt=L.length;let At;for(Re>mt/2&&(Re=mt/2),At=0;At>8,bt=V%256,mt.push(bt),mt.push(Re);return mt}(L,W.length-V),W,V,Re)}function ot(W,L,V){return a.fromByteArray(0===L&&V===W.length?W:W.slice(L,V))}function Yt(W,L,V){V=Math.min(W.length,V);const Re=[];let bt=L;for(;bt239?4:mt>223?3:mt>191?2:1;if(bt+Ln<=V){let Zt,mn,In,Bn;switch(Ln){case 1:mt<128&&(At=mt);break;case 2:Zt=W[bt+1],128==(192&Zt)&&(Bn=(31&mt)<<6|63&Zt,Bn>127&&(At=Bn));break;case 3:Zt=W[bt+1],mn=W[bt+2],128==(192&Zt)&&128==(192&mn)&&(Bn=(15&mt)<<12|(63&Zt)<<6|63&mn,Bn>2047&&(Bn<55296||Bn>57343)&&(At=Bn));break;case 4:Zt=W[bt+1],mn=W[bt+2],In=W[bt+3],128==(192&Zt)&&128==(192&mn)&&128==(192&In)&&(Bn=(15&mt)<<18|(63&Zt)<<12|(63&mn)<<6|63&In,Bn>65535&&Bn<1114112&&(At=Bn))}}null===At?(At=65533,Ln=1):At>65535&&(At-=65536,Re.push(At>>>10&1023|55296),At=56320|1023&At),Re.push(At),bt+=Ln}return function wn(W){const L=W.length;if(L<=un)return String.fromCharCode.apply(String,W);let V="",Re=0;for(;Rebt.length?(S.isBuffer(At)||(At=S.from(At)),At.copy(bt,mt)):Uint8Array.prototype.set.call(bt,At,mt);else{if(!S.isBuffer(At))throw new TypeError('"list" argument must be an Array of Buffers');At.copy(bt,mt)}mt+=At.length}return bt},S.byteLength=Ne,S.prototype._isBuffer=!0,S.prototype.swap16=function(){const L=this.length;if(L%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let V=0;VV&&(L+=" ... "),""},y&&(S.prototype[y]=S.prototype.inspect),S.prototype.compare=function(L,V,Re,bt,mt){if(Gt(L,Uint8Array)&&(L=S.from(L,L.offset,L.byteLength)),!S.isBuffer(L))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof L);if(void 0===V&&(V=0),void 0===Re&&(Re=L?L.length:0),void 0===bt&&(bt=0),void 0===mt&&(mt=this.length),V<0||Re>L.length||bt<0||mt>this.length)throw new RangeError("out of range index");if(bt>=mt&&V>=Re)return 0;if(bt>=mt)return-1;if(V>=Re)return 1;if(this===L)return 0;let At=(mt>>>=0)-(bt>>>=0),Ln=(Re>>>=0)-(V>>>=0);const Zt=Math.min(At,Ln),mn=this.slice(bt,mt),In=L.slice(V,Re);for(let Bn=0;Bn>>=0,isFinite(Re)?(Re>>>=0,void 0===bt&&(bt="utf8")):(bt=Re,Re=void 0)}const mt=this.length-V;if((void 0===Re||Re>mt)&&(Re=mt),L.length>0&&(Re<0||V<0)||V>this.length)throw new RangeError("Attempt to write outside buffer bounds");bt||(bt="utf8");let At=!1;for(;;)switch(bt){case"hex":return ke(this,L,V,Re);case"utf8":case"utf-8":return Ue(this,L,V,Re);case"ascii":case"latin1":case"binary":return st(this,L,V,Re);case"base64":return ft(this,L,V,Re);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _t(this,L,V,Re);default:if(At)throw new TypeError("Unknown encoding: "+bt);bt=(""+bt).toLowerCase(),At=!0}},S.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const un=4096;function $n(W,L,V){let Re="";V=Math.min(W.length,V);for(let bt=L;btRe)&&(V=Re);let bt="";for(let mt=L;mtV)throw new RangeError("Trying to access beyond buffer length")}function Be(W,L,V,Re,bt,mt){if(!S.isBuffer(W))throw new TypeError('"buffer" argument must be a Buffer instance');if(L>bt||LW.length)throw new RangeError("Index out of range")}function Ut(W,L,V,Re,bt){tn(L,Re,bt,W,V,7);let mt=Number(L&BigInt(4294967295));W[V++]=mt,mt>>=8,W[V++]=mt,mt>>=8,W[V++]=mt,mt>>=8,W[V++]=mt;let At=Number(L>>BigInt(32)&BigInt(4294967295));return W[V++]=At,At>>=8,W[V++]=At,At>>=8,W[V++]=At,At>>=8,W[V++]=At,V}function Ke(W,L,V,Re,bt){tn(L,Re,bt,W,V,7);let mt=Number(L&BigInt(4294967295));W[V+7]=mt,mt>>=8,W[V+6]=mt,mt>>=8,W[V+5]=mt,mt>>=8,W[V+4]=mt;let At=Number(L>>BigInt(32)&BigInt(4294967295));return W[V+3]=At,At>>=8,W[V+2]=At,At>>=8,W[V+1]=At,At>>=8,W[V]=At,V+8}function lt(W,L,V,Re,bt,mt){if(V+Re>W.length)throw new RangeError("Index out of range");if(V<0)throw new RangeError("Index out of range")}function Xe(W,L,V,Re,bt){return L=+L,V>>>=0,bt||lt(W,0,V,4),c.write(W,L,V,Re,23,4),V+4}function Ge(W,L,V,Re,bt){return L=+L,V>>>=0,bt||lt(W,0,V,8),c.write(W,L,V,Re,52,8),V+8}S.prototype.slice=function(L,V){const Re=this.length;(L=~~L)<0?(L+=Re)<0&&(L=0):L>Re&&(L=Re),(V=void 0===V?Re:~~V)<0?(V+=Re)<0&&(V=0):V>Re&&(V=Re),V>>=0,V>>>=0,Re||ze(L,V,this.length);let bt=this[L],mt=1,At=0;for(;++At>>=0,V>>>=0,Re||ze(L,V,this.length);let bt=this[L+--V],mt=1;for(;V>0&&(mt*=256);)bt+=this[L+--V]*mt;return bt},S.prototype.readUint8=S.prototype.readUInt8=function(L,V){return L>>>=0,V||ze(L,1,this.length),this[L]},S.prototype.readUint16LE=S.prototype.readUInt16LE=function(L,V){return L>>>=0,V||ze(L,2,this.length),this[L]|this[L+1]<<8},S.prototype.readUint16BE=S.prototype.readUInt16BE=function(L,V){return L>>>=0,V||ze(L,2,this.length),this[L]<<8|this[L+1]},S.prototype.readUint32LE=S.prototype.readUInt32LE=function(L,V){return L>>>=0,V||ze(L,4,this.length),(this[L]|this[L+1]<<8|this[L+2]<<16)+16777216*this[L+3]},S.prototype.readUint32BE=S.prototype.readUInt32BE=function(L,V){return L>>>=0,V||ze(L,4,this.length),16777216*this[L]+(this[L+1]<<16|this[L+2]<<8|this[L+3])},S.prototype.readBigUInt64LE=Me(function(L){pn(L>>>=0,"offset");const V=this[L],Re=this[L+7];(void 0===V||void 0===Re)&&Wn(L,this.length-8);const bt=V+256*this[++L]+65536*this[++L]+this[++L]*2**24,mt=this[++L]+256*this[++L]+65536*this[++L]+Re*2**24;return BigInt(bt)+(BigInt(mt)<>>=0,"offset");const V=this[L],Re=this[L+7];(void 0===V||void 0===Re)&&Wn(L,this.length-8);const bt=V*2**24+65536*this[++L]+256*this[++L]+this[++L],mt=this[++L]*2**24+65536*this[++L]+256*this[++L]+Re;return(BigInt(bt)<>>=0,V>>>=0,Re||ze(L,V,this.length);let bt=this[L],mt=1,At=0;for(;++At=mt&&(bt-=Math.pow(2,8*V)),bt},S.prototype.readIntBE=function(L,V,Re){L>>>=0,V>>>=0,Re||ze(L,V,this.length);let bt=V,mt=1,At=this[L+--bt];for(;bt>0&&(mt*=256);)At+=this[L+--bt]*mt;return mt*=128,At>=mt&&(At-=Math.pow(2,8*V)),At},S.prototype.readInt8=function(L,V){return L>>>=0,V||ze(L,1,this.length),128&this[L]?-1*(255-this[L]+1):this[L]},S.prototype.readInt16LE=function(L,V){L>>>=0,V||ze(L,2,this.length);const Re=this[L]|this[L+1]<<8;return 32768&Re?4294901760|Re:Re},S.prototype.readInt16BE=function(L,V){L>>>=0,V||ze(L,2,this.length);const Re=this[L+1]|this[L]<<8;return 32768&Re?4294901760|Re:Re},S.prototype.readInt32LE=function(L,V){return L>>>=0,V||ze(L,4,this.length),this[L]|this[L+1]<<8|this[L+2]<<16|this[L+3]<<24},S.prototype.readInt32BE=function(L,V){return L>>>=0,V||ze(L,4,this.length),this[L]<<24|this[L+1]<<16|this[L+2]<<8|this[L+3]},S.prototype.readBigInt64LE=Me(function(L){pn(L>>>=0,"offset");const V=this[L],Re=this[L+7];return(void 0===V||void 0===Re)&&Wn(L,this.length-8),(BigInt(this[L+4]+256*this[L+5]+65536*this[L+6]+(Re<<24))<>>=0,"offset");const V=this[L],Re=this[L+7];(void 0===V||void 0===Re)&&Wn(L,this.length-8);const bt=(V<<24)+65536*this[++L]+256*this[++L]+this[++L];return(BigInt(bt)<>>=0,V||ze(L,4,this.length),c.read(this,L,!0,23,4)},S.prototype.readFloatBE=function(L,V){return L>>>=0,V||ze(L,4,this.length),c.read(this,L,!1,23,4)},S.prototype.readDoubleLE=function(L,V){return L>>>=0,V||ze(L,8,this.length),c.read(this,L,!0,52,8)},S.prototype.readDoubleBE=function(L,V){return L>>>=0,V||ze(L,8,this.length),c.read(this,L,!1,52,8)},S.prototype.writeUintLE=S.prototype.writeUIntLE=function(L,V,Re,bt){L=+L,V>>>=0,Re>>>=0,bt||Be(this,L,V,Re,Math.pow(2,8*Re)-1,0);let mt=1,At=0;for(this[V]=255&L;++At>>=0,Re>>>=0,bt||Be(this,L,V,Re,Math.pow(2,8*Re)-1,0);let mt=Re-1,At=1;for(this[V+mt]=255&L;--mt>=0&&(At*=256);)this[V+mt]=L/At&255;return V+Re},S.prototype.writeUint8=S.prototype.writeUInt8=function(L,V,Re){return L=+L,V>>>=0,Re||Be(this,L,V,1,255,0),this[V]=255&L,V+1},S.prototype.writeUint16LE=S.prototype.writeUInt16LE=function(L,V,Re){return L=+L,V>>>=0,Re||Be(this,L,V,2,65535,0),this[V]=255&L,this[V+1]=L>>>8,V+2},S.prototype.writeUint16BE=S.prototype.writeUInt16BE=function(L,V,Re){return L=+L,V>>>=0,Re||Be(this,L,V,2,65535,0),this[V]=L>>>8,this[V+1]=255&L,V+2},S.prototype.writeUint32LE=S.prototype.writeUInt32LE=function(L,V,Re){return L=+L,V>>>=0,Re||Be(this,L,V,4,4294967295,0),this[V+3]=L>>>24,this[V+2]=L>>>16,this[V+1]=L>>>8,this[V]=255&L,V+4},S.prototype.writeUint32BE=S.prototype.writeUInt32BE=function(L,V,Re){return L=+L,V>>>=0,Re||Be(this,L,V,4,4294967295,0),this[V]=L>>>24,this[V+1]=L>>>16,this[V+2]=L>>>8,this[V+3]=255&L,V+4},S.prototype.writeBigUInt64LE=Me(function(L,V=0){return Ut(this,L,V,BigInt(0),BigInt("0xffffffffffffffff"))}),S.prototype.writeBigUInt64BE=Me(function(L,V=0){return Ke(this,L,V,BigInt(0),BigInt("0xffffffffffffffff"))}),S.prototype.writeIntLE=function(L,V,Re,bt){if(L=+L,V>>>=0,!bt){const Zt=Math.pow(2,8*Re-1);Be(this,L,V,Re,Zt-1,-Zt)}let mt=0,At=1,Ln=0;for(this[V]=255&L;++mt>>=0,!bt){const Zt=Math.pow(2,8*Re-1);Be(this,L,V,Re,Zt-1,-Zt)}let mt=Re-1,At=1,Ln=0;for(this[V+mt]=255&L;--mt>=0&&(At*=256);)L<0&&0===Ln&&0!==this[V+mt+1]&&(Ln=1),this[V+mt]=(L/At|0)-Ln&255;return V+Re},S.prototype.writeInt8=function(L,V,Re){return L=+L,V>>>=0,Re||Be(this,L,V,1,127,-128),L<0&&(L=255+L+1),this[V]=255&L,V+1},S.prototype.writeInt16LE=function(L,V,Re){return L=+L,V>>>=0,Re||Be(this,L,V,2,32767,-32768),this[V]=255&L,this[V+1]=L>>>8,V+2},S.prototype.writeInt16BE=function(L,V,Re){return L=+L,V>>>=0,Re||Be(this,L,V,2,32767,-32768),this[V]=L>>>8,this[V+1]=255&L,V+2},S.prototype.writeInt32LE=function(L,V,Re){return L=+L,V>>>=0,Re||Be(this,L,V,4,2147483647,-2147483648),this[V]=255&L,this[V+1]=L>>>8,this[V+2]=L>>>16,this[V+3]=L>>>24,V+4},S.prototype.writeInt32BE=function(L,V,Re){return L=+L,V>>>=0,Re||Be(this,L,V,4,2147483647,-2147483648),L<0&&(L=4294967295+L+1),this[V]=L>>>24,this[V+1]=L>>>16,this[V+2]=L>>>8,this[V+3]=255&L,V+4},S.prototype.writeBigInt64LE=Me(function(L,V=0){return Ut(this,L,V,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),S.prototype.writeBigInt64BE=Me(function(L,V=0){return Ke(this,L,V,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),S.prototype.writeFloatLE=function(L,V,Re){return Xe(this,L,V,!0,Re)},S.prototype.writeFloatBE=function(L,V,Re){return Xe(this,L,V,!1,Re)},S.prototype.writeDoubleLE=function(L,V,Re){return Ge(this,L,V,!0,Re)},S.prototype.writeDoubleBE=function(L,V,Re){return Ge(this,L,V,!1,Re)},S.prototype.copy=function(L,V,Re,bt){if(!S.isBuffer(L))throw new TypeError("argument should be a Buffer");if(Re||(Re=0),!bt&&0!==bt&&(bt=this.length),V>=L.length&&(V=L.length),V||(V=0),bt>0&&bt=this.length)throw new RangeError("Index out of range");if(bt<0)throw new RangeError("sourceEnd out of bounds");bt>this.length&&(bt=this.length),L.length-V>>=0,Re=void 0===Re?this.length:Re>>>0,L||(L=0),"number"==typeof L)for(mt=V;mt=Re+4;V-=3)L=`_${W.slice(V-3,V)}${L}`;return`${W.slice(0,V)}${L}`}function tn(W,L,V,Re,bt,mt){if(W>V||W3?0===L||L===BigInt(0)?`>= 0${At} and < 2${At} ** ${8*(mt+1)}${At}`:`>= -(2${At} ** ${8*(mt+1)-1}${At}) and < 2 ** ${8*(mt+1)-1}${At}`:`>= ${L}${At} and <= ${V}${At}`,new pt.ERR_OUT_OF_RANGE("value",Ln,W)}!function Nt(W,L,V){pn(L,"offset"),(void 0===W[L]||void 0===W[L+V])&&Wn(L,W.length-(V+1))}(Re,bt,mt)}function pn(W,L){if("number"!=typeof W)throw new pt.ERR_INVALID_ARG_TYPE(L,"number",W)}function Wn(W,L,V){throw Math.floor(W)!==W?(pn(W,V),new pt.ERR_OUT_OF_RANGE(V||"offset","an integer",W)):L<0?new pt.ERR_BUFFER_OUT_OF_BOUNDS:new pt.ERR_OUT_OF_RANGE(V||"offset",`>= ${V?1:0} and <= ${L}`,W)}se("ERR_BUFFER_OUT_OF_BOUNDS",function(W){return W?`${W} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),se("ERR_INVALID_ARG_TYPE",function(W,L){return`The "${W}" argument must be of type number. Received type ${typeof L}`},TypeError),se("ERR_OUT_OF_RANGE",function(W,L,V){let Re=`The value of "${W}" is out of range.`,bt=V;return Number.isInteger(V)&&Math.abs(V)>2**32?bt=qe(String(V)):"bigint"==typeof V&&(bt=String(V),(V>BigInt(2)**BigInt(32)||V<-(BigInt(2)**BigInt(32)))&&(bt=qe(bt)),bt+="n"),Re+=` It must be ${L}. Received ${bt}`,Re},RangeError);const Pt=/[^+/0-9A-Za-z-_]/g;function an(W,L){let V;L=L||1/0;const Re=W.length;let bt=null;const mt=[];for(let At=0;At55295&&V<57344){if(!bt){if(V>56319){(L-=3)>-1&&mt.push(239,191,189);continue}if(At+1===Re){(L-=3)>-1&&mt.push(239,191,189);continue}bt=V;continue}if(V<56320){(L-=3)>-1&&mt.push(239,191,189),bt=V;continue}V=65536+(bt-55296<<10|V-56320)}else bt&&(L-=3)>-1&&mt.push(239,191,189);if(bt=null,V<128){if((L-=1)<0)break;mt.push(V)}else if(V<2048){if((L-=2)<0)break;mt.push(V>>6|192,63&V|128)}else if(V<65536){if((L-=3)<0)break;mt.push(V>>12|224,V>>6&63|128,63&V|128)}else{if(!(V<1114112))throw new Error("Invalid code point");if((L-=4)<0)break;mt.push(V>>18|240,V>>12&63|128,V>>6&63|128,63&V|128)}}return mt}function Xt(W){return a.toByteArray(function en(W){if((W=(W=W.split("=")[0]).trim().replace(Pt,"")).length<2)return"";for(;W.length%4!=0;)W+="=";return W}(W))}function Mt(W,L,V,Re){let bt;for(bt=0;bt=L.length||bt>=W.length);++bt)L[bt+V]=W[bt];return bt}function Gt(W,L){return W instanceof L||null!=W&&null!=W.constructor&&null!=W.constructor.name&&W.constructor.name===L.name}function Ot(W){return W!=W}const Ie=function(){const W="0123456789abcdef",L=new Array(256);for(let V=0;V<16;++V){const Re=16*V;for(let bt=0;bt<16;++bt)L[Re+bt]=W[V]+W[bt]}return L}();function Me(W){return typeof BigInt>"u"?nt:W}function nt(){throw new Error("BigInt not supported")}},9859:(o,s)=>{s.read=function(r,i,a,c,y){var w,C,A=8*y-c-1,S=(1<>1,k=-7,R=a?y-1:0,G=a?-1:1,Z=r[i+R];for(R+=G,w=Z&(1<<-k)-1,Z>>=-k,k+=A;k>0;w=256*w+r[i+R],R+=G,k-=8);for(C=w&(1<<-k)-1,w>>=-k,k+=c;k>0;C=256*C+r[i+R],R+=G,k-=8);if(0===w)w=1-T;else{if(w===S)return C?NaN:1/0*(Z?-1:1);C+=Math.pow(2,c),w-=T}return(Z?-1:1)*C*Math.pow(2,w-c)},s.write=function(r,i,a,c,y,w){var C,A,S,T=8*w-y-1,k=(1<>1,G=23===y?Math.pow(2,-24)-Math.pow(2,-77):0,Z=c?0:w-1,te=c?1:-1,be=i<0||0===i&&1/i<0?1:0;for(i=Math.abs(i),isNaN(i)||i===1/0?(A=isNaN(i)?1:0,C=k):(C=Math.floor(Math.log(i)/Math.LN2),i*(S=Math.pow(2,-C))<1&&(C--,S*=2),(i+=C+R>=1?G/S:G*Math.pow(2,1-R))*S>=2&&(C++,S/=2),C+R>=k?(A=0,C=k):C+R>=1?(A=(i*S-1)*Math.pow(2,y),C+=R):(A=i*Math.pow(2,R-1)*Math.pow(2,y),C=0));y>=8;r[a+Z]=255&A,Z+=te,A/=256,y-=8);for(C=C<0;r[a+Z]=255&C,Z+=te,C/=256,T-=8);r[a+Z-te]|=128*be}},230:o=>{o.exports=function a(c,y,w){function C(T,k){if(!y[T]){if(!c[T]){if(A)return A(T,!0);var G=new Error("Cannot find module '"+T+"'");throw G.code="MODULE_NOT_FOUND",G}var Z=y[T]={exports:{}};c[T][0].call(Z.exports,function(te){return C(c[T][1][te]||te)},Z,Z.exports,a,c,y,w)}return y[T].exports}for(var A=void 0,S=0;S"u"&&a(3);var R=Promise;function G(me,tt){tt&&me.then(function(Oe){tt(null,Oe)},function(Oe){tt(Oe)})}function Z(me,tt,Oe){"function"==typeof tt&&me.then(tt),"function"==typeof Oe&&me.catch(Oe)}function te(me){return"string"!=typeof me&&(console.warn(me+" used as a key, but it is not a string."),me=String(me)),me}function be(){if(arguments.length&&"function"==typeof arguments[arguments.length-1])return arguments[arguments.length-1]}var _e="local-forage-detect-blob-support",pe=void 0,Te={},Ce=Object.prototype.toString,Ne="readonly",Se="readwrite";function xe(me){for(var tt=me.length,Oe=new ArrayBuffer(tt),ht=new Uint8Array(Oe),Vt=0;Vt=43)}}).catch(function(){return!1})}(me).then(function(tt){return pe=tt})}function ke(me){var tt=Te[me.name],Oe={};Oe.promise=new R(function(ht,Vt){Oe.resolve=ht,Oe.reject=Vt}),tt.deferredOperations.push(Oe),tt.dbReady=tt.dbReady?tt.dbReady.then(function(){return Oe.promise}):Oe.promise}function Ue(me){var Oe=Te[me.name].deferredOperations.pop();if(Oe)return Oe.resolve(),Oe.promise}function st(me,tt){var ht=Te[me.name].deferredOperations.pop();if(ht)return ht.reject(tt),ht.promise}function ft(me,tt){return new R(function(Oe,ht){if(Te[me.name]=Te[me.name]||{forages:[],db:null,dbReady:null,deferredOperations:[]},me.db){if(!tt)return Oe(me.db);ke(me),me.db.close()}var Vt=[me.name];tt&&Vt.push(me.version);var kt=S.open.apply(S,Vt);tt&&(kt.onupgradeneeded=function(hn){var Cn=kt.result;try{Cn.createObjectStore(me.storeName),hn.oldVersion<=1&&Cn.createObjectStore(_e)}catch(An){if("ConstraintError"!==An.name)throw An;console.warn('The database "'+me.name+'" has been upgraded from version '+hn.oldVersion+" to version "+hn.newVersion+', but the storage "'+me.storeName+'" already exists.')}}),kt.onerror=function(hn){hn.preventDefault(),ht(kt.error)},kt.onsuccess=function(){var hn=kt.result;hn.onversionchange=function(Cn){Cn.target.close()},Oe(hn),Ue(me)}})}function _t(me){return ft(me,!1)}function ot(me){return ft(me,!0)}function Yt(me,tt){if(!me.db)return!0;var Oe=!me.db.objectStoreNames.contains(me.storeName),Vt=me.version>me.db.version;if(me.versionme.version&&(me.version=kt)}return!0}return!1}function wn(me){return k([xe(atob(me.data))],{type:me.type})}function $n(me){return me&&me.__local_forage_encoded_blob}function En(me){var tt=this,Oe=tt._initReady().then(function(){var ht=Te[tt._dbInfo.name];if(ht&&ht.dbReady)return ht.dbReady});return Z(Oe,me,me),Oe}function wt(me,tt,Oe,ht){void 0===ht&&(ht=1);try{var Vt=me.db.transaction(me.storeName,tt);Oe(null,Vt)}catch(kt){if(ht>0&&(!me.db||"InvalidStateError"===kt.name||"NotFoundError"===kt.name))return R.resolve().then(function(){if(!me.db||"NotFoundError"===kt.name&&!me.db.objectStoreNames.contains(me.storeName)&&me.version<=me.db.version)return me.db&&(me.version=me.db.version+1),ot(me)}).then(function(){return function Ze(me){ke(me);for(var tt=Te[me.name],Oe=tt.forages,ht=0;ht>4,Un[Vt++]=(15&hn)<<4|Cn>>2,Un[Vt++]=(3&Cn)<<6|63&An;return On}function At(me){var ht,tt=new Uint8Array(me),Oe="";for(ht=0;ht>2],Oe+=Wn[(3&tt[ht])<<4|tt[ht+1]>>4],Oe+=Wn[(15&tt[ht+1])<<2|tt[ht+2]>>6],Oe+=Wn[63&tt[ht+2]];return tt.length%3==2?Oe=Oe.substring(0,Oe.length-1)+"=":tt.length%3==1&&(Oe=Oe.substring(0,Oe.length-2)+"=="),Oe}var mn={serialize:function Ln(me,tt){var Oe="";if(me&&(Oe=bt.call(me)),me&&("[object ArrayBuffer]"===Oe||me.buffer&&"[object ArrayBuffer]"===bt.call(me.buffer))){var ht,Vt=an;me instanceof ArrayBuffer?(ht=me,Vt+=Sn):(ht=me.buffer,"[object Int8Array]"===Oe?Vt+="si08":"[object Uint8Array]"===Oe?Vt+="ui08":"[object Uint8ClampedArray]"===Oe?Vt+="uic8":"[object Int16Array]"===Oe?Vt+="si16":"[object Uint16Array]"===Oe?Vt+="ur16":"[object Int32Array]"===Oe?Vt+="si32":"[object Uint32Array]"===Oe?Vt+=W:"[object Float32Array]"===Oe?Vt+=L:"[object Float64Array]"===Oe?Vt+=V:tt(new Error("Failed to get type for BinaryArray"))),tt(Vt+At(ht))}else if("[object Blob]"===Oe){var kt=new FileReader;kt.onload=function(){var hn="~~local_forage_type~"+me.type+"~"+At(this.result);tt(an+Xt+hn)},kt.readAsArrayBuffer(me)}else try{tt(JSON.stringify(me))}catch(hn){console.error("Couldn't convert value into a JSON string: ",me),tt(null,hn)}},deserialize:function Zt(me){if(me.substring(0,9)!==an)return JSON.parse(me);var ht,tt=me.substring(13),Oe=me.substring(9,13);if(Oe===Xt&&en.test(tt)){var Vt=tt.match(en);ht=Vt[1],tt=tt.substring(Vt[0].length)}var kt=mt(tt);switch(Oe){case Sn:return kt;case Xt:return k([kt],{type:ht});case"si08":return new Int8Array(kt);case"ui08":return new Uint8Array(kt);case"uic8":return new Uint8ClampedArray(kt);case"si16":return new Int16Array(kt);case"ur16":return new Uint16Array(kt);case"si32":return new Int32Array(kt);case W:return new Uint32Array(kt);case L:return new Float32Array(kt);case V:return new Float64Array(kt);default:throw new Error("Unkown type: "+Oe)}},stringToBuffer:mt,bufferToString:At};function In(me,tt,Oe,ht){me.executeSql("CREATE TABLE IF NOT EXISTS "+tt.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],Oe,ht)}function Hn(me,tt,Oe,ht,Vt,kt){me.executeSql(Oe,ht,Vt,function(hn,Cn){Cn.code===Cn.SYNTAX_ERR?hn.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[tt.storeName],function(An,On){On.rows.length?kt(An,Cn):In(An,tt,function(){An.executeSql(Oe,ht,Vt,kt)},kt)},kt):kt(hn,Cn)},kt)}function Xr(me,tt,Oe,ht){var Vt=this;me=te(me);var kt=new R(function(hn,Cn){Vt.ready().then(function(){void 0===tt&&(tt=null);var An=tt,On=Vt._dbInfo;On.serializer.serialize(tt,function(Un,Jn){Jn?Cn(Jn):On.db.transaction(function(sr){Hn(sr,On,"INSERT OR REPLACE INTO "+On.storeName+" (key, value) VALUES (?, ?)",[me,Un],function(){hn(An)},function(Ir,pr){Cn(pr)})},function(sr){if(sr.code===sr.QUOTA_ERR){if(ht>0)return void hn(Xr.apply(Vt,[me,An,Oe,ht-1]));Cn(sr)}})})}).catch(Cn)});return G(kt,Oe),kt}var _n={_driver:"webSQLStorage",_initStorage:function Bn(me){var tt=this,Oe={db:null};if(me)for(var ht in me)Oe[ht]="string"!=typeof me[ht]?me[ht].toString():me[ht];var Vt=new R(function(kt,hn){try{Oe.db=openDatabase(Oe.name,String(Oe.version),Oe.description,Oe.size)}catch(Cn){return hn(Cn)}Oe.db.transaction(function(Cn){In(Cn,Oe,function(){tt._dbInfo=Oe,kt()},function(An,On){hn(On)})},hn)});return Oe.serializer=mn,Vt},_support:function pn(){return"function"==typeof openDatabase}(),iterate:function ti(me,tt){var Oe=this,ht=new R(function(Vt,kt){Oe.ready().then(function(){var hn=Oe._dbInfo;hn.db.transaction(function(Cn){Hn(Cn,hn,"SELECT * FROM "+hn.storeName,[],function(An,On){for(var Un=On.rows,Jn=Un.length,sr=0;sr '__WebKitDatabaseInfoTable__'",[],function(Vt,kt){for(var hn=[],Cn=0;Cn0}var Uo={_driver:"localStorageWrapper",_initStorage:function Ai(me){var Oe={};if(me)for(var ht in me)Oe[ht]=me[ht];return Oe.keyPrefix=Mr(me,this._defaultConfig),ci()?(this._dbInfo=Oe,Oe.serializer=mn,R.resolve()):R.reject()},_support:function or(){try{return typeof localStorage<"u"&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}(),iterate:function Je(me,tt){var Oe=this,ht=Oe.ready().then(function(){for(var Vt=Oe._dbInfo,kt=Vt.keyPrefix,hn=kt.length,Cn=localStorage.length,An=1,On=0;On=0;Vt--){var kt=localStorage.key(Vt);0===kt.indexOf(ht)&&localStorage.removeItem(kt)}});return G(Oe,me),Oe},length:function zn(me){var Oe=this.keys().then(function(ht){return ht.length});return G(Oe,me),Oe},key:function St(me,tt){var Oe=this,ht=Oe.ready().then(function(){var kt,Vt=Oe._dbInfo;try{kt=localStorage.key(me)}catch{kt=null}return kt&&(kt=kt.substring(Vt.keyPrefix.length)),kt});return G(ht,tt),ht},keys:function zt(me){var tt=this,Oe=tt.ready().then(function(){for(var ht=tt._dbInfo,Vt=localStorage.length,kt=[],hn=0;hn=0;hn--){var Cn=localStorage.key(hn);0===Cn.indexOf(kt)&&localStorage.removeItem(Cn)}}):R.reject("Invalid arguments"),tt),Vt}},oi=function(tt,Oe){return tt===Oe||"number"==typeof tt&&"number"==typeof Oe&&isNaN(tt)&&isNaN(Oe)},ts=function(tt,Oe){for(var ht=tt.length,Vt=0;Vt"u"?"undefined":w(Oe))){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var ht in Oe){if("storeName"===ht&&(Oe[ht]=Oe[ht].replace(/\W/g,"_")),"version"===ht&&"number"!=typeof Oe[ht])return new Error("Database version must be a number.");this._config[ht]=Oe[ht]}return!("driver"in Oe)||!Oe.driver||this.setDriver(this._config.driver)}return"string"==typeof Oe?this._config[Oe]:this._config},me.prototype.defineDriver=function(Oe,ht,Vt){var kt=new R(function(hn,Cn){try{var An=Oe._driver,On=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!Oe._driver)return void Cn(On);for(var Un=oo.concat("_initStorage"),Jn=0,sr=Un.length;Jn{"use strict";r.d(s,{t:()=>a});var i=r(8447);class a extends i.B{constructor(y){super(),this._value=y}get value(){return this.getValue()}_subscribe(y){const w=super._subscribe(y);return!w.closed&&y.next(this._value),w}getValue(){const{hasError:y,thrownError:w,_value:C}=this;if(y)throw w;return this._throwIfClosed(),C}next(y){super.next(this._value=y)}}},1698:(o,s,r)=>{"use strict";r.d(s,{c:()=>S});var i=r(1540),a=r(5710),c=r(2563),y=r(6742),w=r(3305),C=r(1126),A=r(4171);let S=(()=>{class G{constructor(te){te&&(this._subscribe=te)}lift(te){const be=new G;return be.source=this,be.operator=te,be}subscribe(te,be,_e){const pe=function R(G){return G&&G instanceof i.vU||function k(G){return G&&(0,C.T)(G.next)&&(0,C.T)(G.error)&&(0,C.T)(G.complete)}(G)&&(0,a.Uv)(G)}(te)?te:new i.Ms(te,be,_e);return(0,A.Y)(()=>{const{operator:Te,source:Ce}=this;pe.add(Te?Te.call(pe,Ce):Ce?this._subscribe(pe):this._trySubscribe(pe))}),pe}_trySubscribe(te){try{return this._subscribe(te)}catch(be){te.error(be)}}forEach(te,be){return new(be=T(be))((_e,pe)=>{const Te=new i.Ms({next:Ce=>{try{te(Ce)}catch(Ne){pe(Ne),Te.unsubscribe()}},error:pe,complete:_e});this.subscribe(Te)})}_subscribe(te){var be;return null===(be=this.source)||void 0===be?void 0:be.subscribe(te)}[c.s](){return this}pipe(...te){return(0,y.m)(te)(this)}toPromise(te){return new(te=T(te))((be,_e)=>{let pe;this.subscribe(Te=>pe=Te,Te=>_e(Te),()=>be(pe))})}}return G.create=Z=>new G(Z),G})();function T(G){var Z;return null!==(Z=G??w.$.Promise)&&void 0!==Z?Z:Promise}},7838:(o,s,r)=>{"use strict";r.d(s,{m:()=>c});var i=r(8447),a=r(6188);class c extends i.B{constructor(w=1/0,C=1/0,A=a.U){super(),this._bufferSize=w,this._windowTime=C,this._timestampProvider=A,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:A,_infiniteTimeWindow:S,_timestampProvider:T,_windowTime:k}=this;C||(A.push(w),!S&&A.push(T.now()+k)),this._trimBuffer(),super.next(w)}_subscribe(w){this._throwIfClosed(),this._trimBuffer();const C=this._innerSubscribe(w),{_infiniteTimeWindow:A,_buffer:S}=this,T=S.slice();for(let k=0;k{"use strict";r.d(s,{B:()=>A});var i=r(1698),a=r(5710);const y=(0,r(5644).L)(T=>function(){T(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var w=r(5891),C=r(4171);let A=(()=>{class T extends i.c{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(R){const G=new S(this,this);return G.operator=R,G}_throwIfClosed(){if(this.closed)throw new y}next(R){(0,C.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const G of this.currentObservers)G.next(R)}})}error(R){(0,C.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=R;const{observers:G}=this;for(;G.length;)G.shift().error(R)}})}complete(){(0,C.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:R}=this;for(;R.length;)R.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var R;return(null===(R=this.observers)||void 0===R?void 0:R.length)>0}_trySubscribe(R){return this._throwIfClosed(),super._trySubscribe(R)}_subscribe(R){return this._throwIfClosed(),this._checkFinalizedStatuses(R),this._innerSubscribe(R)}_innerSubscribe(R){const{hasError:G,isStopped:Z,observers:te}=this;return G||Z?a.Kn:(this.currentObservers=null,te.push(R),new a.yU(()=>{this.currentObservers=null,(0,w.o)(te,R)}))}_checkFinalizedStatuses(R){const{hasError:G,thrownError:Z,isStopped:te}=this;G?R.error(Z):te&&R.complete()}asObservable(){const R=new i.c;return R.source=this,R}}return T.create=(k,R)=>new S(k,R),T})();class S extends A{constructor(k,R){super(),this.destination=k,this.source=R}next(k){var R,G;null===(G=null===(R=this.destination)||void 0===R?void 0:R.next)||void 0===G||G.call(R,k)}error(k){var R,G;null===(G=null===(R=this.destination)||void 0===R?void 0:R.error)||void 0===G||G.call(R,k)}complete(){var k,R;null===(R=null===(k=this.destination)||void 0===k?void 0:k.complete)||void 0===R||R.call(k)}_subscribe(k){var R,G;return null!==(G=null===(R=this.source)||void 0===R?void 0:R.subscribe(k))&&void 0!==G?G:a.Kn}}},1540:(o,s,r)=>{"use strict";r.d(s,{Ms:()=>_e,vU:()=>G});var i=r(1126),a=r(5710),c=r(3305),y=r(191),w=r(850);const C=T("C",void 0,void 0);function T(Se,xe,ae){return{kind:Se,value:xe,error:ae}}var k=r(3695),R=r(4171);class G extends a.yU{constructor(xe){super(),this.isStopped=!1,xe?(this.destination=xe,(0,a.Uv)(xe)&&xe.add(this)):this.destination=Ne}static create(xe,ae,le){return new _e(xe,ae,le)}next(xe){this.isStopped?Ce(function S(Se){return T("N",Se,void 0)}(xe),this):this._next(xe)}error(xe){this.isStopped?Ce(function A(Se){return T("E",void 0,Se)}(xe),this):(this.isStopped=!0,this._error(xe))}complete(){this.isStopped?Ce(C,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(xe){this.destination.next(xe)}_error(xe){try{this.destination.error(xe)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const Z=Function.prototype.bind;function te(Se,xe){return Z.call(Se,xe)}class be{constructor(xe){this.partialObserver=xe}next(xe){const{partialObserver:ae}=this;if(ae.next)try{ae.next(xe)}catch(le){pe(le)}}error(xe){const{partialObserver:ae}=this;if(ae.error)try{ae.error(xe)}catch(le){pe(le)}else pe(xe)}complete(){const{partialObserver:xe}=this;if(xe.complete)try{xe.complete()}catch(ae){pe(ae)}}}class _e extends G{constructor(xe,ae,le){let ke;if(super(),(0,i.T)(xe)||!xe)ke={next:xe??void 0,error:ae??void 0,complete:le??void 0};else{let Ue;this&&c.$.useDeprecatedNextContext?(Ue=Object.create(xe),Ue.unsubscribe=()=>this.unsubscribe(),ke={next:xe.next&&te(xe.next,Ue),error:xe.error&&te(xe.error,Ue),complete:xe.complete&&te(xe.complete,Ue)}):ke=xe}this.destination=new be(ke)}}function pe(Se){c.$.useDeprecatedSynchronousErrorHandling?(0,R.l)(Se):(0,y.m)(Se)}function Ce(Se,xe){const{onStoppedNotification:ae}=c.$;ae&&k.f.setTimeout(()=>ae(Se,xe))}const Ne={closed:!0,next:w.l,error:function Te(Se){throw Se},complete:w.l}},5710:(o,s,r)=>{"use strict";r.d(s,{Kn:()=>C,yU:()=>w,Uv:()=>A});var i=r(1126);const c=(0,r(5644).L)(T=>function(R){T(this),this.message=R?`${R.length} errors occurred during unsubscription:\n${R.map((G,Z)=>`${Z+1}) ${G.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=R});var y=r(5891);class w{constructor(k){this.initialTeardown=k,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let k;if(!this.closed){this.closed=!0;const{_parentage:R}=this;if(R)if(this._parentage=null,Array.isArray(R))for(const te of R)te.remove(this);else R.remove(this);const{initialTeardown:G}=this;if((0,i.T)(G))try{G()}catch(te){k=te instanceof c?te.errors:[te]}const{_finalizers:Z}=this;if(Z){this._finalizers=null;for(const te of Z)try{S(te)}catch(be){k=k??[],be instanceof c?k=[...k,...be.errors]:k.push(be)}}if(k)throw new c(k)}}add(k){var R;if(k&&k!==this)if(this.closed)S(k);else{if(k instanceof w){if(k.closed||k._hasParent(this))return;k._addParent(this)}(this._finalizers=null!==(R=this._finalizers)&&void 0!==R?R:[]).push(k)}}_hasParent(k){const{_parentage:R}=this;return R===k||Array.isArray(R)&&R.includes(k)}_addParent(k){const{_parentage:R}=this;this._parentage=Array.isArray(R)?(R.push(k),R):R?[R,k]:k}_removeParent(k){const{_parentage:R}=this;R===k?this._parentage=null:Array.isArray(R)&&(0,y.o)(R,k)}remove(k){const{_finalizers:R}=this;R&&(0,y.o)(R,k),k instanceof w&&k._removeParent(this)}}w.EMPTY=(()=>{const T=new w;return T.closed=!0,T})();const C=w.EMPTY;function A(T){return T instanceof w||T&&"closed"in T&&(0,i.T)(T.remove)&&(0,i.T)(T.add)&&(0,i.T)(T.unsubscribe)}function S(T){(0,i.T)(T)?T():T.unsubscribe()}},3305:(o,s,r)=>{"use strict";r.d(s,{$:()=>i});const i={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},1642:(o,s,r)=>{"use strict";r.d(s,{G:()=>C});var i=r(1698),a=r(5710),c=r(3589),y=r(2483),w=r(5351);class C extends i.c{constructor(S,T){super(),this.source=S,this.subjectFactory=T,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 T=this.getSubject();S.add(this.source.subscribe((0,y._)(T,void 0,()=>{this._teardown(),T.complete()},k=>{this._teardown(),T.error(k)},()=>this._teardown()))),S.closed&&(this._connection=null,S=a.yU.EMPTY)}return S}refCount(){return(0,c.B)()(this)}}},6627:(o,s,r)=>{"use strict";r.d(s,{z:()=>k});var i=r(1698),a=r(3740),c=r(1787),y=r(9220),w=r(3759),C=r(4327),A=r(9321),S=r(2483),T=r(8266);function k(...Z){const te=(0,C.lI)(Z),be=(0,C.ms)(Z),{args:_e,keys:pe}=(0,a.D)(Z);if(0===_e.length)return(0,c.H)([],te);const Te=new i.c(function R(Z,te,be=y.D){return _e=>{G(te,()=>{const{length:pe}=Z,Te=new Array(pe);let Ce=pe,Ne=pe;for(let Se=0;Se{const xe=(0,c.H)(Z[Se],te);let ae=!1;xe.subscribe((0,S._)(_e,le=>{Te[Se]=le,ae||(ae=!0,Ne--),Ne||_e.next(be(Te.slice()))},()=>{--Ce||_e.complete()}))},_e)},_e)}}(_e,te,pe?Ce=>(0,A.e)(pe,Ce):y.D));return be?Te.pipe((0,w.I)(be)):Te}function G(Z,te,be){Z?(0,T.N)(be,Z,te):te()}},3569:(o,s,r)=>{"use strict";r.d(s,{x:()=>w});var i=r(1890),c=r(4327),y=r(1787);function w(...C){return function a(){return(0,i.U)(1)}()((0,y.H)(C,(0,c.lI)(C)))}},6381:(o,s,r)=>{"use strict";r.d(s,{v:()=>c});var i=r(1698),a=r(7225);function c(y){return new i.c(w=>{(0,a.Tg)(y()).subscribe(w)})}},6564:(o,s,r)=>{"use strict";r.d(s,{w:()=>a});const a=new(r(1698).c)(w=>w.complete())},2653:(o,s,r)=>{"use strict";r.d(s,{p:()=>S});var i=r(1698),a=r(3740),c=r(7225),y=r(4327),w=r(2483),C=r(3759),A=r(9321);function S(...T){const k=(0,y.ms)(T),{args:R,keys:G}=(0,a.D)(T),Z=new i.c(te=>{const{length:be}=R;if(!be)return void te.complete();const _e=new Array(be);let pe=be,Te=be;for(let Ce=0;Ce{Ne||(Ne=!0,Te--),_e[Ce]=Se},()=>pe--,void 0,()=>{(!pe||!Ne)&&(Te||te.next(G?(0,A.e)(G,_e):_e),te.complete())}))}});return k?Z.pipe((0,C.I)(k)):Z}},1787:(o,s,r)=>{"use strict";r.d(s,{H:()=>le});var i=r(7225),a=r(8266),c=r(5351),y=r(2483);function w(ke,Ue=0){return(0,c.N)((st,ft)=>{st.subscribe((0,y._)(ft,_t=>(0,a.N)(ft,ke,()=>ft.next(_t),Ue),()=>(0,a.N)(ft,ke,()=>ft.complete(),Ue),_t=>(0,a.N)(ft,ke,()=>ft.error(_t),Ue)))})}function C(ke,Ue=0){return(0,c.N)((st,ft)=>{ft.add(ke.schedule(()=>st.subscribe(ft),Ue))})}var T=r(1698),R=r(6952),G=r(1126);function te(ke,Ue){if(!ke)throw new Error("Iterable cannot be null");return new T.c(st=>{(0,a.N)(st,Ue,()=>{const ft=ke[Symbol.asyncIterator]();(0,a.N)(st,Ue,()=>{ft.next().then(_t=>{_t.done?st.complete():st.next(_t.value)})},0,!0)})})}var be=r(6600),_e=r(6505),pe=r(6786),Te=r(4876),Ce=r(8394),Ne=r(8810),Se=r(3173);function le(ke,Ue){return Ue?function ae(ke,Ue){if(null!=ke){if((0,be.l)(ke))return function A(ke,Ue){return(0,i.Tg)(ke).pipe(C(Ue),w(Ue))}(ke,Ue);if((0,pe.X)(ke))return function k(ke,Ue){return new T.c(st=>{let ft=0;return Ue.schedule(function(){ft===ke.length?st.complete():(st.next(ke[ft++]),st.closed||this.schedule())})})}(ke,Ue);if((0,_e.y)(ke))return function S(ke,Ue){return(0,i.Tg)(ke).pipe(C(Ue),w(Ue))}(ke,Ue);if((0,Ce.T)(ke))return te(ke,Ue);if((0,Te.x)(ke))return function Z(ke,Ue){return new T.c(st=>{let ft;return(0,a.N)(st,Ue,()=>{ft=ke[R.l](),(0,a.N)(st,Ue,()=>{let _t,ot;try{({value:_t,done:ot}=ft.next())}catch(Yt){return void st.error(Yt)}ot?st.complete():st.next(_t)},0,!0)}),()=>(0,G.T)(ft?.return)&&ft.return()})}(ke,Ue);if((0,Se.U)(ke))return function xe(ke,Ue){return te((0,Se.C)(ke),Ue)}(ke,Ue)}throw(0,Ne.L)(ke)}(ke,Ue):(0,i.Tg)(ke)}},909:(o,s,r)=>{"use strict";r.d(s,{R:()=>k});var i=r(7225),a=r(1698),c=r(5823),y=r(6786),w=r(1126),C=r(3759);const A=["addListener","removeListener"],S=["addEventListener","removeEventListener"],T=["on","off"];function k(be,_e,pe,Te){if((0,w.T)(pe)&&(Te=pe,pe=void 0),Te)return k(be,_e,pe).pipe((0,C.I)(Te));const[Ce,Ne]=function te(be){return(0,w.T)(be.addEventListener)&&(0,w.T)(be.removeEventListener)}(be)?S.map(Se=>xe=>be[Se](_e,xe,pe)):function G(be){return(0,w.T)(be.addListener)&&(0,w.T)(be.removeListener)}(be)?A.map(R(be,_e)):function Z(be){return(0,w.T)(be.on)&&(0,w.T)(be.off)}(be)?T.map(R(be,_e)):[];if(!Ce&&(0,y.X)(be))return(0,c.Z)(Se=>k(Se,_e,pe))((0,i.Tg)(be));if(!Ce)throw new TypeError("Invalid event target");return new a.c(Se=>{const xe=(...ae)=>Se.next(1Ne(xe)})}function R(be,_e){return pe=>Te=>be[pe](_e,Te)}},7225:(o,s,r)=>{"use strict";r.d(s,{Tg:()=>Z});var i=r(1635),a=r(6786),c=r(6505),y=r(1698),w=r(6600),C=r(8394),A=r(8810),S=r(4876),T=r(3173),k=r(1126),R=r(191),G=r(2563);function Z(Se){if(Se instanceof y.c)return Se;if(null!=Se){if((0,w.l)(Se))return function te(Se){return new y.c(xe=>{const ae=Se[G.s]();if((0,k.T)(ae.subscribe))return ae.subscribe(xe);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(Se);if((0,a.X)(Se))return function be(Se){return new y.c(xe=>{for(let ae=0;ae{Se.then(ae=>{xe.closed||(xe.next(ae),xe.complete())},ae=>xe.error(ae)).then(null,R.m)})}(Se);if((0,C.T)(Se))return Te(Se);if((0,S.x)(Se))return function pe(Se){return new y.c(xe=>{for(const ae of Se)if(xe.next(ae),xe.closed)return;xe.complete()})}(Se);if((0,T.U)(Se))return function Ce(Se){return Te((0,T.C)(Se))}(Se)}throw(0,A.L)(Se)}function Te(Se){return new y.c(xe=>{(function Ne(Se,xe){var ae,le,ke,Ue;return(0,i.sH)(this,void 0,void 0,function*(){try{for(ae=(0,i.xN)(Se);!(le=yield ae.next()).done;)if(xe.next(le.value),xe.closed)return}catch(st){ke={error:st}}finally{try{le&&!le.done&&(Ue=ae.return)&&(yield Ue.call(ae))}finally{if(ke)throw ke.error}}xe.complete()})})(Se,xe).catch(ae=>xe.error(ae))})}},7509:(o,s,r)=>{"use strict";r.d(s,{h:()=>C});var i=r(1890),a=r(7225),c=r(6564),y=r(4327),w=r(1787);function C(...A){const S=(0,y.lI)(A),T=(0,y.R0)(A,1/0),k=A;return k.length?1===k.length?(0,a.Tg)(k[0]):(0,i.U)(T)((0,w.H)(k,S)):c.w}},3016:(o,s,r)=>{"use strict";r.d(s,{of:()=>c});var i=r(4327),a=r(1787);function c(...y){const w=(0,i.lI)(y);return(0,a.H)(y,w)}},8915:(o,s,r)=>{"use strict";r.d(s,{$:()=>c});var i=r(1698),a=r(1126);function c(y,w){const C=(0,a.T)(y)?y:()=>y,A=S=>S.error(C());return new i.c(w?S=>w.schedule(A,0,S):A)}},9587:(o,s,r)=>{"use strict";r.d(s,{O:()=>w});var i=r(1698),a=r(6061),c=r(9921);function w(C=0,A,S=a.b){let T=-1;return null!=A&&((0,c.m)(A)?S=A:T=A),new i.c(k=>{let R=function y(C){return C instanceof Date&&!isNaN(C)}(C)?+C-S.now():C;R<0&&(R=0);let G=0;return S.schedule(function(){k.closed||(k.next(G++),0<=T?this.schedule(void 0,T):k.complete())},R)})}},2483:(o,s,r)=>{"use strict";r.d(s,{_:()=>a});var i=r(1540);function a(y,w,C,A,S){return new c(y,w,C,A,S)}class c extends i.vU{constructor(w,C,A,S,T,k){super(w),this.onFinalize=T,this.shouldUnsubscribe=k,this._next=C?function(R){try{C(R)}catch(G){w.error(G)}}:super._next,this._error=S?function(R){try{S(R)}catch(G){w.error(G)}finally{this.unsubscribe()}}:super._error,this._complete=A?function(){try{A()}catch(R){w.error(R)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var w;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:C}=this;super.unsubscribe(),!C&&(null===(w=this.onFinalize)||void 0===w||w.call(this))}}}},5684:(o,s,r)=>{"use strict";r.d(s,{Z:()=>A});var i=r(6061),a=r(5351),c=r(7225),y=r(2483),C=r(9587);function A(S,T=i.E){return function w(S){return(0,a.N)((T,k)=>{let R=!1,G=null,Z=null,te=!1;const be=()=>{if(Z?.unsubscribe(),Z=null,R){R=!1;const pe=G;G=null,k.next(pe)}te&&k.complete()},_e=()=>{Z=null,te&&k.complete()};T.subscribe((0,y._)(k,pe=>{R=!0,G=pe,Z||(0,c.Tg)(S(pe)).subscribe(Z=(0,y._)(k,be,_e))},()=>{te=!0,(!R||!Z||Z.closed)&&k.complete()}))})}(()=>(0,C.O)(S,T))}},7178:(o,s,r)=>{"use strict";r.d(s,{W:()=>y});var i=r(7225),a=r(2483),c=r(5351);function y(w){return(0,c.N)((C,A)=>{let k,S=null,T=!1;S=C.subscribe((0,a._)(A,void 0,void 0,R=>{k=(0,i.Tg)(w(R,y(w)(C))),S?(S.unsubscribe(),S=null,k.subscribe(A)):T=!0})),T&&(S.unsubscribe(),S=null,k.subscribe(A))})}},1459:(o,s,r)=>{"use strict";r.d(s,{H:()=>c});var i=r(5823),a=r(1126);function c(y,w){return(0,a.T)(w)?(0,i.Z)(y,w,1):(0,i.Z)(y,1)}},8627:(o,s,r)=>{"use strict";r.d(s,{B:()=>y});var i=r(6061),a=r(5351),c=r(2483);function y(w,C=i.E){return(0,a.N)((A,S)=>{let T=null,k=null,R=null;const G=()=>{if(T){T.unsubscribe(),T=null;const te=k;k=null,S.next(te)}};function Z(){const te=R+w,be=C.now();if(be{k=te,R=C.now(),T||(T=C.schedule(Z,w),S.add(T))},()=>{G(),S.complete()},void 0,()=>{k=T=null}))})}},8136:(o,s,r)=>{"use strict";r.d(s,{c:()=>Z});var i=r(6061),a=r(3569),c=r(7610),y=r(5351),w=r(2483),C=r(850),S=r(6590),T=r(5823),k=r(7225);function R(te,be){return be?_e=>(0,a.x)(be.pipe((0,c.s)(1),function A(){return(0,y.N)((te,be)=>{te.subscribe((0,w._)(be,C.l))})}()),_e.pipe(R(te))):(0,T.Z)((_e,pe)=>(0,k.Tg)(te(_e,pe)).pipe((0,c.s)(1),(0,S.u)(_e)))}var G=r(9587);function Z(te,be=i.E){const _e=(0,G.O)(te,be);return R(()=>_e)}},6645:(o,s,r)=>{"use strict";r.d(s,{F:()=>y});var i=r(9220),a=r(5351),c=r(2483);function y(C,A=i.D){return C=C??w,(0,a.N)((S,T)=>{let k,R=!0;S.subscribe((0,c._)(T,G=>{const Z=A(G);(R||!C(k,Z))&&(R=!1,k=Z,T.next(G))}))})}function w(C,A){return C===A}},1483:(o,s,r)=>{"use strict";r.d(s,{p:()=>c});var i=r(5351),a=r(2483);function c(y,w){return(0,i.N)((C,A)=>{let S=0;C.subscribe((0,a._)(A,T=>y.call(w,T,S++)&&A.next(T)))})}},4447:(o,s,r)=>{"use strict";r.d(s,{j:()=>a});var i=r(5351);function a(c){return(0,i.N)((y,w)=>{try{y.subscribe(w)}finally{w.add(c)}})}},7947:(o,s,r)=>{"use strict";r.d(s,{T:()=>c});var i=r(5351),a=r(2483);function c(y,w){return(0,i.N)((C,A)=>{let S=0;C.subscribe((0,a._)(A,T=>{A.next(y.call(w,T,S++))}))})}},6590:(o,s,r)=>{"use strict";r.d(s,{u:()=>a});var i=r(7947);function a(c){return(0,i.T)(()=>c)}},1890:(o,s,r)=>{"use strict";r.d(s,{U:()=>c});var i=r(5823),a=r(9220);function c(y=1/0){return(0,i.Z)(a.D,y)}},5823:(o,s,r)=>{"use strict";r.d(s,{Z:()=>S});var i=r(7947),a=r(7225),c=r(5351),y=r(8266),w=r(2483),A=r(1126);function S(T,k,R=1/0){return(0,A.T)(k)?S((G,Z)=>(0,i.T)((te,be)=>k(G,te,Z,be))((0,a.Tg)(T(G,Z))),R):("number"==typeof k&&(R=k),(0,c.N)((G,Z)=>function C(T,k,R,G,Z,te,be,_e){const pe=[];let Te=0,Ce=0,Ne=!1;const Se=()=>{Ne&&!pe.length&&!Te&&k.complete()},xe=le=>Te{te&&k.next(le),Te++;let ke=!1;(0,a.Tg)(R(le,Ce++)).subscribe((0,w._)(k,Ue=>{Z?.(Ue),te?xe(Ue):k.next(Ue)},()=>{ke=!0},void 0,()=>{if(ke)try{for(Te--;pe.length&&Teae(Ue)):ae(Ue)}Se()}catch(Ue){k.error(Ue)}}))};return T.subscribe((0,w._)(k,xe,()=>{Ne=!0,Se()})),()=>{_e?.()}}(G,Z,T,R)))}},3589:(o,s,r)=>{"use strict";r.d(s,{B:()=>c});var i=r(5351),a=r(2483);function c(){return(0,i.N)((y,w)=>{let C=null;y._refCount++;const A=(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,T=C;C=null,S&&(!T||S===T)&&S.unsubscribe(),w.unsubscribe()});y.subscribe(A),A.closed||(C=y.connect())})}},5903:(o,s,r)=>{"use strict";r.d(s,{L:()=>C});var i=r(5351),a=r(2483),c=r(9220),y=r(9587),w=r(7225);function C(A=1/0){let S;S=A&&"object"==typeof A?A:{count:A};const{count:T=1/0,delay:k,resetOnSuccess:R=!1}=S;return T<=0?c.D:(0,i.N)((G,Z)=>{let be,te=0;const _e=()=>{let pe=!1;be=G.subscribe((0,a._)(Z,Te=>{R&&(te=0),Z.next(Te)},void 0,Te=>{if(te++{be?(be.unsubscribe(),be=null,_e()):pe=!0};if(null!=k){const Ne="number"==typeof k?(0,y.O)(k):(0,w.Tg)(k(Te,te)),Se=(0,a._)(Z,()=>{Se.unsubscribe(),Ce()},()=>{Z.complete()});Ne.subscribe(Se)}else Ce()}else Z.error(Te)})),pe&&(be.unsubscribe(),be=null,_e())};_e()})}},36:(o,s,r)=>{"use strict";r.d(s,{S:()=>a});var i=r(2483);function a(c,y,w,C,A){return(S,T)=>{let k=w,R=y,G=0;S.subscribe((0,i._)(T,Z=>{const te=G++;R=k?c(R,Z,te):(k=!0,Z),C&&T.next(R)},A&&(()=>{k&&T.next(R),T.complete()})))}}},6218:(o,s,r)=>{"use strict";r.d(s,{u:()=>w});var i=r(7225),a=r(8447),c=r(1540),y=r(5351);function w(A={}){const{connector:S=()=>new a.B,resetOnError:T=!0,resetOnComplete:k=!0,resetOnRefCountZero:R=!0}=A;return G=>{let Z,te,be,_e=0,pe=!1,Te=!1;const Ce=()=>{te?.unsubscribe(),te=void 0},Ne=()=>{Ce(),Z=be=void 0,pe=Te=!1},Se=()=>{const xe=Z;Ne(),xe?.unsubscribe()};return(0,y.N)((xe,ae)=>{_e++,!Te&&!pe&&Ce();const le=be=be??S();ae.add(()=>{_e--,0===_e&&!Te&&!pe&&(te=C(Se,R))}),le.subscribe(ae),!Z&&_e>0&&(Z=new c.Ms({next:ke=>le.next(ke),error:ke=>{Te=!0,Ce(),te=C(Ne,T,ke),le.error(ke)},complete:()=>{pe=!0,Ce(),te=C(Ne,k),le.complete()}}),(0,i.Tg)(xe).subscribe(Z))})(G)}}function C(A,S,...T){if(!0===S)return void A();if(!1===S)return;const k=new c.Ms({next:()=>{k.unsubscribe(),A()}});return(0,i.Tg)(S(...T)).subscribe(k)}},8249:(o,s,r)=>{"use strict";r.d(s,{t:()=>c});var i=r(7838),a=r(6218);function c(y,w,C){let A,S=!1;return y&&"object"==typeof y?({bufferSize:A=1/0,windowTime:w=1/0,refCount:S=!1,scheduler:C}=y):A=y??1/0,(0,a.u)({connector:()=>new i.m(A,w,C),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:S})}},1866:(o,s,r)=>{"use strict";r.d(s,{i:()=>a});var i=r(1483);function a(c){return(0,i.p)((y,w)=>c<=w)}},593:(o,s,r)=>{"use strict";r.d(s,{Z:()=>y});var i=r(3569),a=r(4327),c=r(5351);function y(...w){const C=(0,a.lI)(w);return(0,c.N)((A,S)=>{(C?(0,i.x)(w,A,C):(0,i.x)(w,A)).subscribe(S)})}},2867:(o,s,r)=>{"use strict";r.d(s,{n:()=>y});var i=r(7225),a=r(5351),c=r(2483);function y(w,C){return(0,a.N)((A,S)=>{let T=null,k=0,R=!1;const G=()=>R&&!T&&S.complete();A.subscribe((0,c._)(S,Z=>{T?.unsubscribe();let te=0;const be=k++;(0,i.Tg)(w(Z,be)).subscribe(T=(0,c._)(S,_e=>S.next(C?C(Z,_e,be,te++):_e),()=>{T=null,G()}))},()=>{R=!0,G()}))})}},7610:(o,s,r)=>{"use strict";r.d(s,{s:()=>y});var i=r(6564),a=r(5351),c=r(2483);function y(w){return w<=0?()=>i.w:(0,a.N)((C,A)=>{let S=0;C.subscribe((0,c._)(A,T=>{++S<=w&&(A.next(T),w<=S&&A.complete())}))})}},5424:(o,s,r)=>{"use strict";r.d(s,{Q:()=>w});var i=r(5351),a=r(2483),c=r(7225),y=r(850);function w(C){return(0,i.N)((A,S)=>{(0,c.Tg)(C).subscribe((0,a._)(S,()=>S.complete(),y.l)),!S.closed&&A.subscribe(S)})}},8445:(o,s,r)=>{"use strict";r.d(s,{v:()=>c});var i=r(5351),a=r(2483);function c(y,w=!1){return(0,i.N)((C,A)=>{let S=0;C.subscribe((0,a._)(A,T=>{const k=y(T,S++);(k||w)&&A.next(T),!k&&A.complete()}))})}},2040:(o,s,r)=>{"use strict";r.d(s,{M:()=>w});var i=r(1126),a=r(5351),c=r(2483),y=r(9220);function w(C,A,S){const T=(0,i.T)(C)||A||S?{next:C,error:A,complete:S}:C;return T?(0,a.N)((k,R)=>{var G;null===(G=T.subscribe)||void 0===G||G.call(T);let Z=!0;k.subscribe((0,c._)(R,te=>{var be;null===(be=T.next)||void 0===be||be.call(T,te),R.next(te)},()=>{var te;Z=!1,null===(te=T.complete)||void 0===te||te.call(T),R.complete()},te=>{var be;Z=!1,null===(be=T.error)||void 0===be||be.call(T,te),R.error(te)},()=>{var te,be;Z&&(null===(te=T.unsubscribe)||void 0===te||te.call(T)),null===(be=T.finalize)||void 0===be||be.call(T)}))}):y.D}},9899:(o,s,r)=>{"use strict";r.d(s,{R:()=>w});var i=r(5710);class a extends i.yU{constructor(A,S){super()}schedule(A,S=0){return this}}const c={setInterval(C,A,...S){const{delegate:T}=c;return T?.setInterval?T.setInterval(C,A,...S):setInterval(C,A,...S)},clearInterval(C){const{delegate:A}=c;return(A?.clearInterval||clearInterval)(C)},delegate:void 0};var y=r(5891);class w extends a{constructor(A,S){super(A,S),this.scheduler=A,this.work=S,this.pending=!1}schedule(A,S=0){var T;if(this.closed)return this;this.state=A;const k=this.id,R=this.scheduler;return null!=k&&(this.id=this.recycleAsyncId(R,k,S)),this.pending=!0,this.delay=S,this.id=null!==(T=this.id)&&void 0!==T?T:this.requestAsyncId(R,this.id,S),this}requestAsyncId(A,S,T=0){return c.setInterval(A.flush.bind(A,this),T)}recycleAsyncId(A,S,T=0){if(null!=T&&this.delay===T&&!1===this.pending)return S;null!=S&&c.clearInterval(S)}execute(A,S){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const T=this._execute(A,S);if(T)return T;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(A,S){let k,T=!1;try{this.work(A)}catch(R){T=!0,k=R||new Error("Scheduled action threw falsy error")}if(T)return this.unsubscribe(),k}unsubscribe(){if(!this.closed){const{id:A,scheduler:S}=this,{actions:T}=S;this.work=this.state=this.scheduler=null,this.pending=!1,(0,y.o)(T,this),null!=A&&(this.id=this.recycleAsyncId(S,A,null)),this.delay=null,super.unsubscribe()}}}},8050:(o,s,r)=>{"use strict";r.d(s,{q:()=>c});var i=r(6188);class a{constructor(w,C=a.now){this.schedulerActionCtor=w,this.now=C}schedule(w,C=0,A){return new this.schedulerActionCtor(this,w).schedule(A,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 A;this._active=!0;do{if(A=w.execute(w.state,w.delay))break}while(w=C.shift());if(this._active=!1,A){for(;w=C.shift();)w.unsubscribe();throw A}}}},4984:(o,s,r)=>{"use strict";r.d(s,{$:()=>te});var i=r(9899);let c,a=1;const y={};function w(_e){return _e in y&&(delete y[_e],!0)}const C={setImmediate(_e){const pe=a++;return y[pe]=!0,c||(c=Promise.resolve()),c.then(()=>w(pe)&&_e()),pe},clearImmediate(_e){w(_e)}},{setImmediate:S,clearImmediate:T}=C,k={setImmediate(..._e){const{delegate:pe}=k;return(pe?.setImmediate||S)(..._e)},clearImmediate(_e){const{delegate:pe}=k;return(pe?.clearImmediate||T)(_e)},delegate:void 0};var G=r(8050);const te=new class Z extends G.q{flush(pe){this._active=!0;const Te=this._scheduled;this._scheduled=void 0;const{actions:Ce}=this;let Ne;pe=pe||Ce.shift();do{if(Ne=pe.execute(pe.state,pe.delay))break}while((pe=Ce[0])&&pe.id===Te&&Ce.shift());if(this._active=!1,Ne){for(;(pe=Ce[0])&&pe.id===Te&&Ce.shift();)pe.unsubscribe();throw Ne}}}(class R extends i.R{constructor(pe,Te){super(pe,Te),this.scheduler=pe,this.work=Te}requestAsyncId(pe,Te,Ce=0){return null!==Ce&&Ce>0?super.requestAsyncId(pe,Te,Ce):(pe.actions.push(this),pe._scheduled||(pe._scheduled=k.setImmediate(pe.flush.bind(pe,void 0))))}recycleAsyncId(pe,Te,Ce=0){var Ne;if(null!=Ce?Ce>0:this.delay>0)return super.recycleAsyncId(pe,Te,Ce);const{actions:Se}=pe;null!=Te&&(null===(Ne=Se[Se.length-1])||void 0===Ne?void 0:Ne.id)!==Te&&(k.clearImmediate(Te),pe._scheduled===Te&&(pe._scheduled=void 0))}})},6061:(o,s,r)=>{"use strict";r.d(s,{E:()=>c,b:()=>y});var i=r(9899);const c=new(r(8050).q)(i.R),y=c},6188:(o,s,r)=>{"use strict";r.d(s,{U:()=>i});const i={now:()=>(i.delegate||Date).now(),delegate:void 0}},3695:(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}},6952:(o,s,r)=>{"use strict";r.d(s,{l:()=>a});const a=function i(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},2563:(o,s,r)=>{"use strict";r.d(s,{s:()=>i});const i="function"==typeof Symbol&&Symbol.observable||"@@observable"},8747:(o,s,r)=>{"use strict";r.d(s,{G:()=>a});const a=(0,r(5644).L)(c=>function(){c(this),this.name="EmptyError",this.message="no elements in sequence"})},4327:(o,s,r)=>{"use strict";r.d(s,{R0:()=>C,lI:()=>w,ms:()=>y});var i=r(1126),a=r(9921);function c(A){return A[A.length-1]}function y(A){return(0,i.T)(c(A))?A.pop():void 0}function w(A){return(0,a.m)(c(A))?A.pop():void 0}function C(A,S){return"number"==typeof c(A)?A.pop():S}},3740:(o,s,r)=>{"use strict";r.d(s,{D:()=>w});const{isArray:i}=Array,{getPrototypeOf:a,prototype:c,keys:y}=Object;function w(A){if(1===A.length){const S=A[0];if(i(S))return{args:S,keys:null};if(function C(A){return A&&"object"==typeof A&&a(A)===c}(S)){const T=y(S);return{args:T.map(k=>S[k]),keys:T}}}return{args:A,keys:null}}},5891:(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})},5644:(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})},9321:(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})},4171:(o,s,r)=>{"use strict";r.d(s,{Y:()=>c,l:()=>y});var i=r(3305);let a=null;function c(w){if(i.$.useDeprecatedSynchronousErrorHandling){const C=!a;if(C&&(a={errorThrown:!1,error:null}),w(),C){const{errorThrown:A,error:S}=a;if(a=null,A)throw S}}else w()}function y(w){i.$.useDeprecatedSynchronousErrorHandling&&a&&(a.errorThrown=!0,a.error=w)}},8266:(o,s,r)=>{"use strict";function i(a,c,y,w=0,C=!1){const A=c.schedule(function(){y(),C?a.add(this.schedule(null,w)):this.unsubscribe()},w);if(a.add(A),!C)return A}r.d(s,{N:()=>i})},9220:(o,s,r)=>{"use strict";function i(a){return a}r.d(s,{D:()=>i})},6786:(o,s,r)=>{"use strict";r.d(s,{X:()=>i});const i=a=>a&&"number"==typeof a.length&&"function"!=typeof a},8394:(o,s,r)=>{"use strict";r.d(s,{T:()=>a});var i=r(1126);function a(c){return Symbol.asyncIterator&&(0,i.T)(c?.[Symbol.asyncIterator])}},1126:(o,s,r)=>{"use strict";function i(a){return"function"==typeof a}r.d(s,{T:()=>i})},6600:(o,s,r)=>{"use strict";r.d(s,{l:()=>c});var i=r(2563),a=r(1126);function c(y){return(0,a.T)(y[i.s])}},4876:(o,s,r)=>{"use strict";r.d(s,{x:()=>c});var i=r(6952),a=r(1126);function c(y){return(0,a.T)(y?.[i.l])}},1531:(o,s,r)=>{"use strict";r.d(s,{A:()=>c});var i=r(1698),a=r(1126);function c(y){return!!y&&(y instanceof i.c||(0,a.T)(y.lift)&&(0,a.T)(y.subscribe))}},6505:(o,s,r)=>{"use strict";r.d(s,{y:()=>a});var i=r(1126);function a(c){return(0,i.T)(c?.then)}},3173:(o,s,r)=>{"use strict";r.d(s,{C:()=>c,U:()=>y});var i=r(1635),a=r(1126);function c(w){return(0,i.AQ)(this,arguments,function*(){const A=w.getReader();try{for(;;){const{value:S,done:T}=yield(0,i.N3)(A.read());if(T)return yield(0,i.N3)(void 0);yield yield(0,i.N3)(S)}}finally{A.releaseLock()}})}function y(w){return(0,a.T)(w?.getReader)}},9921:(o,s,r)=>{"use strict";r.d(s,{m:()=>a});var i=r(1126);function a(c){return c&&(0,i.T)(c.schedule)}},5351:(o,s,r)=>{"use strict";r.d(s,{N:()=>c,S:()=>a});var i=r(1126);function a(y){return(0,i.T)(y?.lift)}function c(y){return w=>{if(a(w))return w.lift(function(C){try{return y(C,this)}catch(A){this.error(A)}});throw new TypeError("Unable to lift unknown Observable type")}}},3759:(o,s,r)=>{"use strict";r.d(s,{I:()=>y});var i=r(7947);const{isArray:a}=Array;function y(w){return(0,i.T)(C=>function c(w,C){return a(C)?w(...C):w(C)}(w,C))}},850:(o,s,r)=>{"use strict";function i(){}r.d(s,{l:()=>i})},6742:(o,s,r)=>{"use strict";r.d(s,{F:()=>a,m:()=>c});var i=r(9220);function a(...y){return c(y)}function c(y){return 0===y.length?i.D:1===y.length?y[0]:function(C){return y.reduce((A,S)=>S(A),C)}}},191:(o,s,r)=>{"use strict";r.d(s,{m:()=>c});var i=r(3305),a=r(3695);function c(y){a.f.setTimeout(()=>{const{onUnhandledError:w}=i.$;if(!w)throw y;w(y)})}},8810:(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})},1204:(o,s,r)=>{"use strict";r.d(s,{FX:()=>ft,If:()=>c,K2:()=>S,MA:()=>te,Os:()=>A,P:()=>_e,S6:()=>Te,hZ:()=>w,i0:()=>C,i7:()=>R,iF:()=>T,kY:()=>G,kp:()=>y,sf:()=>Ue,ui:()=>st,wk:()=>k});var i=r(4460),a=r(3107),c=function(_t){return _t[_t.State=0]="State",_t[_t.Transition=1]="Transition",_t[_t.Sequence=2]="Sequence",_t[_t.Group=3]="Group",_t[_t.Animate=4]="Animate",_t[_t.Keyframes=5]="Keyframes",_t[_t.Style=6]="Style",_t[_t.Trigger=7]="Trigger",_t[_t.Reference=8]="Reference",_t[_t.AnimateChild=9]="AnimateChild",_t[_t.AnimateRef=10]="AnimateRef",_t[_t.Query=11]="Query",_t[_t.Stagger=12]="Stagger",_t}(c||{});const y="*";function w(_t,ot){return{type:c.Trigger,name:_t,definitions:ot,options:{}}}function C(_t,ot=null){return{type:c.Animate,styles:ot,timings:_t}}function A(_t,ot=null){return{type:c.Group,steps:_t,options:ot}}function S(_t,ot=null){return{type:c.Sequence,steps:_t,options:ot}}function T(_t){return{type:c.Style,styles:_t,offset:null}}function k(_t,ot,Yt){return{type:c.State,name:_t,styles:ot,options:Yt}}function R(_t){return{type:c.Keyframes,steps:_t}}function G(_t,ot,Yt=null){return{type:c.Transition,expr:_t,animation:ot,options:Yt}}function te(_t=null){return{type:c.AnimateChild,options:_t}}function _e(_t,ot,Yt=null){return{type:c.Query,selector:_t,animation:ot,options:Yt}}let Te=(()=>{class _t{static \u0275fac=function(un){return new(un||_t)};static \u0275prov=a.jDH({token:_t,factory:()=>(0,a.WQX)(Ne),providedIn:"root"})}return _t})();class Ce{}let Ne=(()=>{class _t extends Te{animationModuleType=(0,a.WQX)(a.bc$,{optional:!0});_nextAnimationId=0;_renderer;constructor(Yt,un){if(super(),this._renderer=Yt.createRenderer(un.body,{id:"0",encapsulation:a.gXe.None,styles:[],data:{animation:[]}}),null===this.animationModuleType&&!function ke(_t){const ot=_t.\u0275type;return 0===ot||1===ot}(this._renderer))throw new a.wOt(3600,!1)}build(Yt){const un=this._nextAnimationId;this._nextAnimationId++;const wn=Array.isArray(Yt)?S(Yt):Yt;return ae(this._renderer,null,un,"register",[wn]),new Se(un,this._renderer)}static \u0275fac=function(un){return new(un||_t)(a.KVO(a._9s),a.KVO(i.qQ))};static \u0275prov=a.jDH({token:_t,factory:_t.\u0275fac,providedIn:"root"})}return _t})();class Se extends Ce{_id;_renderer;constructor(ot,Yt){super(),this._id=ot,this._renderer=Yt}create(ot,Yt){return new xe(this._id,ot,Yt||{},this._renderer)}}class xe{id;element;_renderer;parentPlayer=null;_started=!1;constructor(ot,Yt,un,wn){this.id=ot,this.element=Yt,this._renderer=wn,this._command("create",un)}_listen(ot,Yt){return this._renderer.listen(this.element,`@@${this.id}:${ot}`,Yt)}_command(ot,...Yt){ae(this._renderer,this.element,this.id,ot,Yt)}onDone(ot){this._listen("done",ot)}onStart(ot){this._listen("start",ot)}onDestroy(ot){this._listen("destroy",ot)}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(ot){this._command("setPosition",ot)}getPosition(){return function le(_t){const ot=_t.\u0275type;return 0===ot?_t:1===ot?_t.animationRenderer:null}(this._renderer)?.engine?.players[this.id]?.getPosition()??0}totalTime=0}function ae(_t,ot,Yt,un,wn){_t.setProperty(ot,`@@${Yt}:${un}`,wn)}class Ue{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=!1;_destroyed=!1;_finished=!1;_position=0;parentPlayer=null;totalTime;constructor(ot=0,Yt=0){this.totalTime=ot+Yt}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(ot=>ot()),this._onDoneFns=[])}onStart(ot){this._originalOnStartFns.push(ot),this._onStartFns.push(ot)}onDone(ot){this._originalOnDoneFns.push(ot),this._onDoneFns.push(ot)}onDestroy(ot){this._onDestroyFns.push(ot)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(ot=>ot()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(ot=>ot()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(ot){this._position=this.totalTime?ot*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(ot){const Yt="start"==ot?this._onStartFns:this._onDoneFns;Yt.forEach(un=>un()),Yt.length=0}}class st{_onDoneFns=[];_onStartFns=[];_finished=!1;_started=!1;_destroyed=!1;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(ot){this.players=ot;let Yt=0,un=0,wn=0;const $n=this.players.length;0==$n?queueMicrotask(()=>this._onFinish()):this.players.forEach(En=>{En.onDone(()=>{++Yt==$n&&this._onFinish()}),En.onDestroy(()=>{++un==$n&&this._onDestroy()}),En.onStart(()=>{++wn==$n&&this._onStart()})}),this.totalTime=this.players.reduce((En,Ze)=>Math.max(En,Ze.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(ot=>ot()),this._onDoneFns=[])}init(){this.players.forEach(ot=>ot.init())}onStart(ot){this._onStartFns.push(ot)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(ot=>ot()),this._onStartFns=[])}onDone(ot){this._onDoneFns.push(ot)}onDestroy(ot){this._onDestroyFns.push(ot)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(ot=>ot.play())}pause(){this.players.forEach(ot=>ot.pause())}restart(){this.players.forEach(ot=>ot.restart())}finish(){this._onFinish(),this.players.forEach(ot=>ot.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(ot=>ot.destroy()),this._onDestroyFns.forEach(ot=>ot()),this._onDestroyFns=[])}reset(){this.players.forEach(ot=>ot.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(ot){const Yt=ot*this.totalTime;this.players.forEach(un=>{const wn=un.totalTime?Math.min(1,Yt/un.totalTime):1;un.setPosition(wn)})}getPosition(){const ot=this.players.reduce((Yt,un)=>null===Yt||un.totalTime>Yt.totalTime?un:Yt,null);return null!=ot?ot.getPosition():0}beforeDestroy(){this.players.forEach(ot=>{ot.beforeDestroy&&ot.beforeDestroy()})}triggerCallback(ot){const Yt="start"==ot?this._onStartFns:this._onDoneFns;Yt.forEach(un=>un()),Yt.length=0}}const ft="!"},8559:(o,s,r)=>{"use strict";r.d(s,{Pd:()=>ii,Au:()=>wt,vr:()=>Yt,Bu:()=>ze,FN:()=>Fe,GX:()=>Ie,Q_:()=>Mr,Z7:()=>qe,Ai:()=>Xr,g7:()=>Ai,px:()=>le,_G:()=>bt,w6:()=>mt,Ae:()=>ke});var i=r(4460),a=r(3107),c=r(2147),y=r(5467),w=r(5919),C=r(8447),A=r(5710),T=(r(1531),r(3016)),k=r(1217),R=r(2040),G=r(8627),Z=r(1483),te=r(7947),_e=(r(7610),r(1866)),pe=r(6645),Te=r(5424),Ne=r(7747),Se=r(3022),xe=r(6520);const ae=" ";function le(sn,Tt,Je){const St=Ue(sn,Tt);Je=Je.trim(),!St.some(zt=>zt.trim()===Je)&&(St.push(Je),sn.setAttribute(Tt,St.join(ae)))}function ke(sn,Tt,Je){const St=Ue(sn,Tt);Je=Je.trim();const zt=St.filter(zn=>zn!==Je);zt.length?sn.setAttribute(Tt,zt.join(ae)):sn.removeAttribute(Tt)}function Ue(sn,Tt){return sn.getAttribute(Tt)?.match(/\S+/g)??[]}const ft="cdk-describedby-message",_t="cdk-describedby-host";let ot=0,Yt=(()=>{class sn{_platform=(0,a.WQX)(c.OD);_document=(0,a.WQX)(i.qQ);_messageRegistry=new Map;_messagesContainer=null;_id=""+ot++;constructor(){(0,a.WQX)(y.l).load(y.Y),this._id=(0,a.WQX)(a.sZ2)+"-"+ot++}describe(Je,St,zt){if(!this._canBeDescribed(Je,St))return;const zn=un(St,zt);"string"!=typeof St?(wn(St,this._id),this._messageRegistry.set(zn,{messageElement:St,referenceCount:0})):this._messageRegistry.has(zn)||this._createMessageElement(St,zt),this._isElementDescribedByMessage(Je,zn)||this._addMessageReference(Je,zn)}removeDescription(Je,St,zt){if(!St||!this._isElementNode(Je))return;const zn=un(St,zt);if(this._isElementDescribedByMessage(Je,zn)&&this._removeMessageReference(Je,zn),"string"==typeof St){const hr=this._messageRegistry.get(zn);hr&&0===hr.referenceCount&&this._deleteMessageElement(zn)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const Je=this._document.querySelectorAll(`[${_t}="${this._id}"]`);for(let St=0;St0!=zt.indexOf(ft));Je.setAttribute("aria-describedby",St.join(" "))}_addMessageReference(Je,St){const zt=this._messageRegistry.get(St);le(Je,"aria-describedby",zt.messageElement.id),Je.setAttribute(_t,this._id),zt.referenceCount++}_removeMessageReference(Je,St){const zt=this._messageRegistry.get(St);zt.referenceCount--,ke(Je,"aria-describedby",zt.messageElement.id),Je.removeAttribute(_t)}_isElementDescribedByMessage(Je,St){const zt=Ue(Je,"aria-describedby"),zn=this._messageRegistry.get(St),hr=zn&&zn.messageElement.id;return!!hr&&-1!=zt.indexOf(hr)}_canBeDescribed(Je,St){if(!this._isElementNode(Je))return!1;if(St&&"object"==typeof St)return!0;const zt=null==St?"":`${St}`.trim(),zn=Je.getAttribute("aria-label");return!(!zt||zn&&zn.trim()===zt)}_isElementNode(Je){return Je.nodeType===this._document.ELEMENT_NODE}static \u0275fac=function(St){return new(St||sn)};static \u0275prov=a.jDH({token:sn,factory:sn.\u0275fac,providedIn:"root"})}return sn})();function un(sn,Tt){return"string"==typeof sn?`${Tt||""}/${sn}`:sn}function wn(sn,Tt){sn.id||(sn.id=`${ft}-${Tt}-${ot++}`)}class En{_letterKeyStream=new C.B;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new C.B;selectedItem=this._selectedItem;constructor(Tt,Je){const St="number"==typeof Je?.debounceInterval?Je.debounceInterval:200;Je?.skipPredicate&&(this._skipPredicateFn=Je.skipPredicate),this.setItems(Tt),this._setupKeyHandler(St)}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete()}setCurrentSelectedItemIndex(Tt){this._selectedItemIndex=Tt}setItems(Tt){this._items=Tt}handleKey(Tt){const Je=Tt.keyCode;Tt.key&&1===Tt.key.length?this._letterKeyStream.next(Tt.key.toLocaleUpperCase()):(Je>=w.A&&Je<=w.Z||Je>=w.f2&&Je<=w.bn)&&this._letterKeyStream.next(String.fromCharCode(Je))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(Tt){this._letterKeyStream.pipe((0,R.M)(Je=>this._pressedLetters.push(Je)),(0,G.B)(Tt),(0,Z.p)(()=>this._pressedLetters.length>0),(0,te.T)(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(Je=>{for(let St=1;StTt.disabled;constructor(Tt,Je){this._items=Tt,Tt instanceof a.rOR?this._itemChangesSubscription=Tt.changes.subscribe(St=>this._itemsChanged(St.toArray())):(0,a.Hps)(Tt)&&(this._effectRef=(0,a.QZP)(()=>this._itemsChanged(Tt()),{injector:Je}))}tabOut=new C.B;change=new C.B;skipPredicate(Tt){return this._skipPredicateFn=Tt,this}withWrap(Tt=!0){return this._wrap=Tt,this}withVerticalOrientation(Tt=!0){return this._vertical=Tt,this}withHorizontalOrientation(Tt){return this._horizontal=Tt,this}withAllowedModifierKeys(Tt){return this._allowedModifierKeys=Tt,this}withTypeAhead(Tt=200){this._typeaheadSubscription.unsubscribe();const Je=this._getItemsArray();return this._typeahead=new En(Je,{debounceInterval:"number"==typeof Tt?Tt:void 0,skipPredicate:St=>this._skipPredicateFn(St)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(St=>{this.setActiveItem(St)}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(Tt=!0){return this._homeAndEnd=Tt,this}withPageUpDown(Tt=!0,Je=10){return this._pageUpAndDown={enabled:Tt,delta:Je},this}setActiveItem(Tt){const Je=this._activeItem();this.updateActiveItem(Tt),this._activeItem()!==Je&&this.change.next(this._activeItemIndex)}onKeydown(Tt){const Je=Tt.keyCode,zt=["altKey","ctrlKey","metaKey","shiftKey"].every(zn=>!Tt[zn]||this._allowedModifierKeys.indexOf(zn)>-1);switch(Je){case w.wn:return void this.tabOut.next();case w.n6:if(this._vertical&&zt){this.setNextItemActive();break}return;case w.i7:if(this._vertical&&zt){this.setPreviousItemActive();break}return;case w.LE:if(this._horizontal&&zt){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case w.UQ:if(this._horizontal&&zt){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case w.yZ:if(this._homeAndEnd&&zt){this.setFirstItemActive();break}return;case w.Kp:if(this._homeAndEnd&&zt){this.setLastItemActive();break}return;case w.w_:if(this._pageUpAndDown.enabled&&zt){const zn=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(zn>0?zn:0,1);break}return;case w.dB:if(this._pageUpAndDown.enabled&&zt){const zn=this._activeItemIndex+this._pageUpAndDown.delta,hr=this._getItemsArray().length;this._setActiveItemByIndex(zn-1&&St!==this._activeItemIndex&&(this._activeItemIndex=St,this._typeahead?.setCurrentSelectedItemIndex(St))}}}class wt extends Ze{setActiveItem(Tt){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(Tt),this.activeItem&&this.activeItem.setActiveStyles()}}class ze extends Ze{_origin="program";setFocusOrigin(Tt){return this._origin=Tt,this}setActiveItem(Tt){super.setActiveItem(Tt),this.activeItem&&this.activeItem.focus(this._origin)}}let qe=(()=>{class sn{_platform=(0,a.WQX)(c.OD);constructor(){}isDisabled(Je){return Je.hasAttribute("disabled")}isVisible(Je){return function tn(sn){return!!(sn.offsetWidth||sn.offsetHeight||"function"==typeof sn.getClientRects&&sn.getClientRects().length)}(Je)&&"visible"===getComputedStyle(Je).visibility}isTabbable(Je){if(!this._platform.isBrowser)return!1;const St=function Nt(sn){try{return sn.frameElement}catch{return null}}(function Gt(sn){return sn.ownerDocument&&sn.ownerDocument.defaultView||window}(Je));if(St&&(-1===Sn(St)||!this.isVisible(St)))return!1;let zt=Je.nodeName.toLowerCase(),zn=Sn(Je);return Je.hasAttribute("contenteditable")?-1!==zn:!("iframe"===zt||"object"===zt||this._platform.WEBKIT&&this._platform.IOS&&!function Xt(sn){let Tt=sn.nodeName.toLowerCase(),Je="input"===Tt&&sn.type;return"text"===Je||"password"===Je||"select"===Tt||"textarea"===Tt}(Je))&&("audio"===zt?!!Je.hasAttribute("controls")&&-1!==zn:"video"===zt?-1!==zn&&(null!==zn||this._platform.FIREFOX||Je.hasAttribute("controls")):Je.tabIndex>=0)}isFocusable(Je,St){return function Mt(sn){return!function Wn(sn){return function en(sn){return"input"==sn.nodeName.toLowerCase()}(sn)&&"hidden"==sn.type}(sn)&&(function pn(sn){let Tt=sn.nodeName.toLowerCase();return"input"===Tt||"select"===Tt||"button"===Tt||"textarea"===Tt}(sn)||function Pt(sn){return function an(sn){return"a"==sn.nodeName.toLowerCase()}(sn)&&sn.hasAttribute("href")}(sn)||sn.hasAttribute("contenteditable")||Yn(sn))}(Je)&&!this.isDisabled(Je)&&(St?.ignoreVisibility||this.isVisible(Je))}static \u0275fac=function(St){return new(St||sn)};static \u0275prov=a.jDH({token:sn,factory:sn.\u0275fac,providedIn:"root"})}return sn})();function Yn(sn){if(!sn.hasAttribute("tabindex")||void 0===sn.tabIndex)return!1;let Tt=sn.getAttribute("tabindex");return!(!Tt||isNaN(parseInt(Tt,10)))}function Sn(sn){if(!Yn(sn))return null;const Tt=parseInt(sn.getAttribute("tabindex")||"",10);return isNaN(Tt)?-1:Tt}class Ot{_element;_checker;_ngZone;_document;_injector;_startAnchor;_endAnchor;_hasAttached=!1;startAnchorListener=()=>this.focusLastTabbableElement();endAnchorListener=()=>this.focusFirstTabbableElement();get enabled(){return this._enabled}set enabled(Tt){this._enabled=Tt,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Tt,this._startAnchor),this._toggleAnchorTabIndex(Tt,this._endAnchor))}_enabled=!0;constructor(Tt,Je,St,zt,zn=!1,hr){this._element=Tt,this._checker=Je,this._ngZone=St,this._document=zt,this._injector=hr,zn||this.attachAnchors()}destroy(){const Tt=this._startAnchor,Je=this._endAnchor;Tt&&(Tt.removeEventListener("focus",this.startAnchorListener),Tt.remove()),Je&&(Je.removeEventListener("focus",this.endAnchorListener),Je.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(Tt){return new Promise(Je=>{this._executeOnStable(()=>Je(this.focusInitialElement(Tt)))})}focusFirstTabbableElementWhenReady(Tt){return new Promise(Je=>{this._executeOnStable(()=>Je(this.focusFirstTabbableElement(Tt)))})}focusLastTabbableElementWhenReady(Tt){return new Promise(Je=>{this._executeOnStable(()=>Je(this.focusLastTabbableElement(Tt)))})}_getRegionBoundary(Tt){const Je=this._element.querySelectorAll(`[cdk-focus-region-${Tt}], [cdkFocusRegion${Tt}], [cdk-focus-${Tt}]`);return"start"==Tt?Je.length?Je[0]:this._getFirstTabbableElement(this._element):Je.length?Je[Je.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(Tt){const Je=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(Je){if(!this._checker.isFocusable(Je)){const St=this._getFirstTabbableElement(Je);return St?.focus(Tt),!!St}return Je.focus(Tt),!0}return this.focusFirstTabbableElement(Tt)}focusFirstTabbableElement(Tt){const Je=this._getRegionBoundary("start");return Je&&Je.focus(Tt),!!Je}focusLastTabbableElement(Tt){const Je=this._getRegionBoundary("end");return Je&&Je.focus(Tt),!!Je}hasAttached(){return this._hasAttached}_getFirstTabbableElement(Tt){if(this._checker.isFocusable(Tt)&&this._checker.isTabbable(Tt))return Tt;const Je=Tt.children;for(let St=0;St=0;St--){const zt=Je[St].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(Je[St]):null;if(zt)return zt}return null}_createAnchor(){const Tt=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,Tt),Tt.classList.add("cdk-visually-hidden"),Tt.classList.add("cdk-focus-trap-anchor"),Tt.setAttribute("aria-hidden","true"),Tt}_toggleAnchorTabIndex(Tt,Je){Tt?Je.setAttribute("tabindex","0"):Je.removeAttribute("tabindex")}toggleAnchors(Tt){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Tt,this._startAnchor),this._toggleAnchorTabIndex(Tt,this._endAnchor))}_executeOnStable(Tt){this._injector?(0,a.mal)(Tt,{injector:this._injector}):setTimeout(Tt)}}let Ie=(()=>{class sn{_checker=(0,a.WQX)(qe);_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(Je,St=!1){return new Ot(Je,this._checker,this._ngZone,this._document,St,this._injector)}static \u0275fac=function(St){return new(St||sn)};static \u0275prov=a.jDH({token:sn,factory:sn.\u0275fac,providedIn:"root"})}return sn})();function bt(sn){return 0===sn.buttons||0===sn.detail}function mt(sn){const Tt=sn.touches&&sn.touches[0]||sn.changedTouches&&sn.changedTouches[0];return!(!Tt||-1!==Tt.identifier||null!=Tt.radiusX&&1!==Tt.radiusX||null!=Tt.radiusY&&1!==Tt.radiusY)}const At=new a.nKC("cdk-input-modality-detector-options"),Ln={ignoreKeys:[w.A$,w.W3,w.eg,w.Ge,w.FX]},mn=(0,c.BQ)({passive:!0,capture:!0});let In=(()=>{class sn{_platform=(0,a.WQX)(c.OD);modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new k.t(null);_options;_lastTouchMs=0;_onKeydown=Je=>{this._options?.ignoreKeys?.some(St=>St===Je.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,c.Fb)(Je))};_onMousedown=Je=>{Date.now()-this._lastTouchMs<650||(this._modality.next(bt(Je)?"keyboard":"mouse"),this._mostRecentTarget=(0,c.Fb)(Je))};_onTouchstart=Je=>{mt(Je)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,c.Fb)(Je))};constructor(){const Je=(0,a.WQX)(a.SKi),St=(0,a.WQX)(i.qQ),zt=(0,a.WQX)(At,{optional:!0});this._options={...Ln,...zt},this.modalityDetected=this._modality.pipe((0,_e.i)(1)),this.modalityChanged=this.modalityDetected.pipe((0,pe.F)()),this._platform.isBrowser&&Je.runOutsideAngular(()=>{St.addEventListener("keydown",this._onKeydown,mn),St.addEventListener("mousedown",this._onMousedown,mn),St.addEventListener("touchstart",this._onTouchstart,mn)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,mn),document.removeEventListener("mousedown",this._onMousedown,mn),document.removeEventListener("touchstart",this._onTouchstart,mn))}static \u0275fac=function(St){return new(St||sn)};static \u0275prov=a.jDH({token:sn,factory:sn.\u0275fac,providedIn:"root"})}return sn})();const Bn=new a.nKC("liveAnnouncerElement",{providedIn:"root",factory:function Hn(){return null}}),xr=new a.nKC("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let ti=0,Xr=(()=>{class sn{_ngZone=(0,a.WQX)(a.SKi);_defaultOptions=(0,a.WQX)(xr,{optional:!0});_liveElement;_document=(0,a.WQX)(i.qQ);_previousTimeout;_currentPromise;_currentResolve;constructor(){const Je=(0,a.WQX)(Bn,{optional:!0});this._liveElement=Je||this._createLiveElement()}announce(Je,...St){const zt=this._defaultOptions;let zn,hr;return 1===St.length&&"number"==typeof St[0]?hr=St[0]:[zn,hr]=St,this.clear(),clearTimeout(this._previousTimeout),zn||(zn=zt&&zt.politeness?zt.politeness:"polite"),null==hr&&zt&&(hr=zt.duration),this._liveElement.setAttribute("aria-live",zn),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=Je,"number"==typeof hr&&(this._previousTimeout=setTimeout(()=>this.clear(),hr)),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 Je="cdk-live-announcer-element",St=this._document.getElementsByClassName(Je),zt=this._document.createElement("div");for(let zn=0;zn .cdk-overlay-container [aria-modal="true"]');for(let zt=0;zt{class sn{_ngZone=(0,a.WQX)(a.SKi);_platform=(0,a.WQX)(c.OD);_inputModalityDetector=(0,a.WQX)(In);_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 Je=(0,a.WQX)(Ee,{optional:!0});this._detectionMode=Je?.detectionMode||$t.IMMEDIATE}_rootNodeFocusAndBlurListener=Je=>{for(let zt=(0,c.Fb)(Je);zt;zt=zt.parentElement)"focus"===Je.type?this._onFocus(Je,zt):this._onBlur(Je,zt)};monitor(Je,St=!1){const zt=(0,Se.i8)(Je);if(!this._platform.isBrowser||1!==zt.nodeType)return(0,T.of)();const zn=(0,c.KT)(zt)||this._getDocument(),hr=this._elementInfo.get(zt);if(hr)return St&&(hr.checkChildren=!0),hr.subject;const uo={checkChildren:St,subject:new C.B,rootNode:zn};return this._elementInfo.set(zt,uo),this._registerGlobalListeners(uo),uo.subject}stopMonitoring(Je){const St=(0,Se.i8)(Je),zt=this._elementInfo.get(St);zt&&(zt.subject.complete(),this._setClasses(St),this._elementInfo.delete(St),this._removeGlobalListeners(zt))}focusVia(Je,St,zt){const zn=(0,Se.i8)(Je);zn===this._getDocument().activeElement?this._getClosestElementsInfo(zn).forEach(([uo,Oi])=>this._originChanged(uo,St,Oi)):(this._setOrigin(St),"function"==typeof zn.focus&&zn.focus(zt))}ngOnDestroy(){this._elementInfo.forEach((Je,St)=>this.stopMonitoring(St))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(Je){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(Je)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:Je&&this._isLastInteractionFromInputLabel(Je)?"mouse":"program"}_shouldBeAttributedToTouch(Je){return this._detectionMode===$t.EVENTUAL||!!Je?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(Je,St){Je.classList.toggle("cdk-focused",!!St),Je.classList.toggle("cdk-touch-focused","touch"===St),Je.classList.toggle("cdk-keyboard-focused","keyboard"===St),Je.classList.toggle("cdk-mouse-focused","mouse"===St),Je.classList.toggle("cdk-program-focused","program"===St)}_setOrigin(Je,St=!1){this._ngZone.runOutsideAngular(()=>{this._origin=Je,this._originFromTouchInteraction="touch"===Je&&St,this._detectionMode===$t.IMMEDIATE&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(Je,St){const zt=this._elementInfo.get(St),zn=(0,c.Fb)(Je);!zt||!zt.checkChildren&&St!==zn||this._originChanged(St,this._getFocusOrigin(zn),zt)}_onBlur(Je,St){const zt=this._elementInfo.get(St);!zt||zt.checkChildren&&Je.relatedTarget instanceof Node&&St.contains(Je.relatedTarget)||(this._setClasses(St),this._emitOrigin(zt,null))}_emitOrigin(Je,St){Je.subject.observers.length&&this._ngZone.run(()=>Je.subject.next(St))}_registerGlobalListeners(Je){if(!this._platform.isBrowser)return;const St=Je.rootNode,zt=this._rootNodeFocusListenerCount.get(St)||0;zt||this._ngZone.runOutsideAngular(()=>{St.addEventListener("focus",this._rootNodeFocusAndBlurListener,at),St.addEventListener("blur",this._rootNodeFocusAndBlurListener,at)}),this._rootNodeFocusListenerCount.set(St,zt+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,Te.Q)(this._stopInputModalityDetector)).subscribe(zn=>{this._setOrigin(zn,!0)}))}_removeGlobalListeners(Je){const St=Je.rootNode;if(this._rootNodeFocusListenerCount.has(St)){const zt=this._rootNodeFocusListenerCount.get(St);zt>1?this._rootNodeFocusListenerCount.set(St,zt-1):(St.removeEventListener("focus",this._rootNodeFocusAndBlurListener,at),St.removeEventListener("blur",this._rootNodeFocusAndBlurListener,at),this._rootNodeFocusListenerCount.delete(St))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(Je,St,zt){this._setClasses(Je,St),this._emitOrigin(zt,St),this._lastFocusOrigin=St}_getClosestElementsInfo(Je){const St=[];return this._elementInfo.forEach((zt,zn)=>{(zn===Je||zt.checkChildren&&zn.contains(Je))&&St.push([zn,zt])}),St}_isLastInteractionFromInputLabel(Je){const{_mostRecentTarget:St,mostRecentModality:zt}=this._inputModalityDetector;if("mouse"!==zt||!St||St===Je||"INPUT"!==Je.nodeName&&"TEXTAREA"!==Je.nodeName||Je.disabled)return!1;const zn=Je.labels;if(zn)for(let hr=0;hr{class sn{_platform=(0,a.WQX)(c.OD);_hasCheckedHighContrastMode;_document=(0,a.WQX)(i.qQ);_breakpointSubscription;constructor(){this._breakpointSubscription=(0,a.WQX)(xe.QP).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return dt.NONE;const Je=this._document.createElement("div");Je.style.backgroundColor="rgb(1,2,3)",Je.style.position="absolute",this._document.body.appendChild(Je);const St=this._document.defaultView||window,zt=St&&St.getComputedStyle?St.getComputedStyle(Je):null,zn=(zt&&zt.backgroundColor||"").replace(/ /g,"");switch(Je.remove(),zn){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return dt.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return dt.BLACK_ON_WHITE}return dt.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const Je=this._document.body.classList;Je.remove(or,Bt,_n),this._hasCheckedHighContrastMode=!0;const St=this.getHighContrastMode();St===dt.BLACK_ON_WHITE?Je.add(or,Bt):St===dt.WHITE_ON_BLACK&&Je.add(or,_n)}}static \u0275fac=function(St){return new(St||sn)};static \u0275prov=a.jDH({token:sn,factory:sn.\u0275fac,providedIn:"root"})}return sn})(),ii=(()=>{class sn{constructor(){(0,a.WQX)(Mr)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(St){return new(St||sn)};static \u0275mod=a.$C({type:sn});static \u0275inj=a.G2t({imports:[Ne.w5]})}return sn})();const ci={};let Ai=(()=>{class sn{_appId=(0,a.WQX)(a.sZ2);getId(Je){return"ng"!==this._appId&&(Je+=this._appId),ci.hasOwnProperty(Je)||(ci[Je]=0),`${Je}${ci[Je]++}`}static \u0275fac=function(St){return new(St||sn)};static \u0275prov=a.jDH({token:sn,factory:sn.\u0275fac,providedIn:"root"})}return sn})()},2944:(o,s,r)=>{"use strict";r.d(s,{dS:()=>A,jI:()=>T});var i=r(3107),a=r(4460);const c=new i.nKC("cdk-dir-doc",{providedIn:"root",factory:function y(){return(0,i.WQX)(a.qQ)}}),w=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let A=(()=>{class k{value="ltr";change=new i.bkB;constructor(){const G=(0,i.WQX)(c,{optional:!0});G&&(this.value=function C(k){const R=k?.toLowerCase()||"";return"auto"===R&&typeof navigator<"u"&&navigator?.language?w.test(navigator.language)?"rtl":"ltr":"rtl"===R?"rtl":"ltr"}((G.body?G.body.dir:null)||(G.documentElement?G.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}static \u0275fac=function(Z){return new(Z||k)};static \u0275prov=i.jDH({token:k,factory:k.\u0275fac,providedIn:"root"})}return k})(),T=(()=>{class k{static \u0275fac=function(Z){return new(Z||k)};static \u0275mod=i.$C({type:k});static \u0275inj=i.G2t({})}return k})()},3022:(o,s,r)=>{"use strict";r.d(s,{FG:()=>w,OE:()=>c,a1:()=>C,he:()=>a,i8:()=>A});var i=r(3107);function a(T){return null!=T&&"false"!=`${T}`}function c(T,k=0){return function y(T){return!isNaN(parseFloat(T))&&!isNaN(Number(T))}(T)?Number(T):2===arguments.length?k:0}function w(T){return Array.isArray(T)?T:[T]}function C(T){return null==T?"":"string"==typeof T?T:`${T}px`}function A(T){return T instanceof i.aKT?T.nativeElement:T}},5919:(o,s,r)=>{"use strict";r.d(s,{A:()=>Be,A$:()=>S,FX:()=>C,Fm:()=>w,Ge:()=>L,Kp:()=>be,LE:()=>Ce,UQ:()=>pe,W3:()=>A,Z:()=>W,_f:()=>R,bn:()=>$n,dB:()=>te,eg:()=>tt,f2:()=>ke,i7:()=>Te,n6:()=>Ne,rp:()=>Oe,t6:()=>G,w_:()=>Z,wn:()=>c,yZ:()=>_e});const c=9,w=13,C=16,A=17,S=18,R=27,G=32,Z=33,te=34,be=35,_e=36,pe=37,Te=38,Ce=39,Ne=40,ke=48,$n=57,Be=65,W=90,L=91,tt=224;function Oe(ht,...Vt){return Vt.length?Vt.some(kt=>ht[kt]):ht.altKey||ht.shiftKey||ht.ctrlKey||ht.metaKey}},6520:(o,s,r)=>{"use strict";r.d(s,{QP:()=>Ne,Rp:()=>xe});var i=r(3107),a=r(3022),c=r(8447),y=r(6627),w=r(3569),C=r(1698),A=r(7610),S=r(1866),T=r(8627),k=r(7947),R=r(593),G=r(5424),Z=r(2147);const be=new Set;let _e,pe=(()=>{class ae{_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):Ce}matchMedia(ke){return(this._platform.WEBKIT||this._platform.BLINK)&&function Te(ae,le){if(!be.has(ae))try{_e||(_e=document.createElement("style"),le&&_e.setAttribute("nonce",le),_e.setAttribute("type","text/css"),document.head.appendChild(_e)),_e.sheet&&(_e.sheet.insertRule(`@media ${ae} {body{ }}`,0),be.add(ae))}catch(ke){console.error(ke)}}(ke,this._nonce),this._matchMedia(ke)}static \u0275fac=function(Ue){return new(Ue||ae)};static \u0275prov=i.jDH({token:ae,factory:ae.\u0275fac,providedIn:"root"})}return ae})();function Ce(ae){return{matches:"all"===ae||""===ae,media:ae,addListener:()=>{},removeListener:()=>{}}}let Ne=(()=>{class ae{_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(ke){return Se((0,a.FG)(ke)).some(st=>this._registerQuery(st).mql.matches)}observe(ke){const st=Se((0,a.FG)(ke)).map(_t=>this._registerQuery(_t).observable);let ft=(0,y.z)(st);return ft=(0,w.x)(ft.pipe((0,A.s)(1)),ft.pipe((0,S.i)(1),(0,T.B)(0))),ft.pipe((0,k.T)(_t=>{const ot={matches:!1,breakpoints:{}};return _t.forEach(({matches:Yt,query:un})=>{ot.matches=ot.matches||Yt,ot.breakpoints[un]=Yt}),ot}))}_registerQuery(ke){if(this._queries.has(ke))return this._queries.get(ke);const Ue=this._mediaMatcher.matchMedia(ke),ft={observable:new C.c(_t=>{const ot=Yt=>this._zone.run(()=>_t.next(Yt));return Ue.addListener(ot),()=>{Ue.removeListener(ot)}}).pipe((0,R.Z)(Ue),(0,k.T)(({matches:_t})=>({query:ke,matches:_t})),(0,G.Q)(this._destroySubject)),mql:Ue};return this._queries.set(ke,ft),ft}static \u0275fac=function(Ue){return new(Ue||ae)};static \u0275prov=i.jDH({token:ae,factory:ae.\u0275fac,providedIn:"root"})}return ae})();function Se(ae){return ae.map(le=>le.split(",")).reduce((le,ke)=>le.concat(ke)).map(le=>le.trim())}const xe={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"}},7747:(o,s,r)=>{"use strict";r.d(s,{w5:()=>C});var i=r(3107);let c=(()=>{class A{create(T){return typeof MutationObserver>"u"?null:new MutationObserver(T)}static \u0275fac=function(k){return new(k||A)};static \u0275prov=i.jDH({token:A,factory:A.\u0275fac,providedIn:"root"})}return A})(),C=(()=>{class A{static \u0275fac=function(k){return new(k||A)};static \u0275mod=i.$C({type:A});static \u0275inj=i.G2t({providers:[c]})}return A})()},9666:(o,s,r)=>{"use strict";r.d(s,{$Q:()=>an,Sf:()=>wt,Tv:()=>ke,WB:()=>Yn,hJ:()=>Wn,rR:()=>Ue,yY:()=>ze,z_:()=>Mt});var i=r(8108),a=r(4460),c=r(3107),y=r(3022),w=r(2147),C=r(1483),A=r(5424),S=r(8445),T=r(2944),k=r(6192),R=r(8559),G=r(5467),Z=r(8447),te=r(5710),be=r(7509),_e=r(5919);const pe=(0,w.CZ)();class Te{_viewportRuler;_previousHTMLStyles={top:"",left:""};_previousScrollPosition;_isEnabled=!1;_document;constructor(Ie,Me){this._viewportRuler=Ie,this._document=Me}attach(){}enable(){if(this._canBeEnabled()){const Ie=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=Ie.style.left||"",this._previousHTMLStyles.top=Ie.style.top||"",Ie.style.left=(0,y.a1)(-this._previousScrollPosition.left),Ie.style.top=(0,y.a1)(-this._previousScrollPosition.top),Ie.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const Ie=this._document.documentElement,nt=Ie.style,W=this._document.body.style,L=nt.scrollBehavior||"",V=W.scrollBehavior||"";this._isEnabled=!1,nt.left=this._previousHTMLStyles.left,nt.top=this._previousHTMLStyles.top,Ie.classList.remove("cdk-global-scrollblock"),pe&&(nt.scrollBehavior=W.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),pe&&(nt.scrollBehavior=L,W.scrollBehavior=V)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const Me=this._document.body,nt=this._viewportRuler.getViewportSize();return Me.scrollHeight>nt.height||Me.scrollWidth>nt.width}}class Ne{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(Ie,Me,nt,W){this._scrollDispatcher=Ie,this._ngZone=Me,this._viewportRuler=nt,this._config=W}attach(Ie){this._overlayRef=Ie}enable(){if(this._scrollSubscription)return;const Ie=this._scrollDispatcher.scrolled(0).pipe((0,C.p)(Me=>!Me||!this._overlayRef.overlayElement.contains(Me.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=Ie.subscribe(()=>{const Me=this._viewportRuler.getViewportScrollPosition().top;Math.abs(Me-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=Ie.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 Se{enable(){}disable(){}attach(){}}function xe(Ot,Ie){return Ie.some(Me=>Ot.bottomMe.bottom||Ot.rightMe.right)}function ae(Ot,Ie){return Ie.some(Me=>Ot.topMe.bottom||Ot.leftMe.right)}class le{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(Ie,Me,nt,W){this._scrollDispatcher=Ie,this._viewportRuler=Me,this._ngZone=nt,this._config=W}attach(Ie){this._overlayRef=Ie}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 Me=this._overlayRef.overlayElement.getBoundingClientRect(),{width:nt,height:W}=this._viewportRuler.getViewportSize();xe(Me,[{width:nt,height:W,bottom:W,right:nt,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 ke=(()=>{class Ot{_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 Se;close=Me=>new Ne(this._scrollDispatcher,this._ngZone,this._viewportRuler,Me);block=()=>new Te(this._viewportRuler,this._document);reposition=Me=>new le(this._scrollDispatcher,this._viewportRuler,this._ngZone,Me);static \u0275fac=function(nt){return new(nt||Ot)};static \u0275prov=c.jDH({token:Ot,factory:Ot.\u0275fac,providedIn:"root"})}return Ot})();class Ue{positionStrategy;scrollStrategy=new Se;panelClass="";hasBackdrop=!1;backdropClass="cdk-overlay-dark-backdrop";width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=!1;constructor(Ie){if(Ie){const Me=Object.keys(Ie);for(const nt of Me)void 0!==Ie[nt]&&(this[nt]=Ie[nt])}}}class _t{connectionPair;scrollableViewProperties;constructor(Ie,Me){this.connectionPair=Ie,this.scrollableViewProperties=Me}}let un=(()=>{class Ot{_attachedOverlays=[];_document=(0,c.WQX)(a.qQ);_isAttached;constructor(){}ngOnDestroy(){this.detach()}add(Me){this.remove(Me),this._attachedOverlays.push(Me)}remove(Me){const nt=this._attachedOverlays.indexOf(Me);nt>-1&&this._attachedOverlays.splice(nt,1),0===this._attachedOverlays.length&&this.detach()}static \u0275fac=function(nt){return new(nt||Ot)};static \u0275prov=c.jDH({token:Ot,factory:Ot.\u0275fac,providedIn:"root"})}return Ot})(),wn=(()=>{class Ot extends un{_ngZone=(0,c.WQX)(c.SKi,{optional:!0});add(Me){super.add(Me),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=Me=>{const nt=this._attachedOverlays;for(let W=nt.length-1;W>-1;W--)if(nt[W]._keydownEvents.observers.length>0){const L=nt[W]._keydownEvents;this._ngZone?this._ngZone.run(()=>L.next(Me)):L.next(Me);break}};static \u0275fac=(()=>{let Me;return function(W){return(Me||(Me=c.xGo(Ot)))(W||Ot)}})();static \u0275prov=c.jDH({token:Ot,factory:Ot.\u0275fac,providedIn:"root"})}return Ot})(),$n=(()=>{class Ot extends un{_platform=(0,c.WQX)(w.OD);_ngZone=(0,c.WQX)(c.SKi,{optional:!0});_cursorOriginalValue;_cursorStyleIsSet=!1;_pointerDownEventTarget;add(Me){if(super.add(Me),!this._isAttached){const nt=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(nt)):this._addEventListeners(nt),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=nt.style.cursor,nt.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const Me=this._document.body;Me.removeEventListener("pointerdown",this._pointerDownListener,!0),Me.removeEventListener("click",this._clickListener,!0),Me.removeEventListener("auxclick",this._clickListener,!0),Me.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(Me.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(Me){Me.addEventListener("pointerdown",this._pointerDownListener,!0),Me.addEventListener("click",this._clickListener,!0),Me.addEventListener("auxclick",this._clickListener,!0),Me.addEventListener("contextmenu",this._clickListener,!0)}_pointerDownListener=Me=>{this._pointerDownEventTarget=(0,w.Fb)(Me)};_clickListener=Me=>{const nt=(0,w.Fb)(Me),W="click"===Me.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:nt;this._pointerDownEventTarget=null;const L=this._attachedOverlays.slice();for(let V=L.length-1;V>-1;V--){const Re=L[V];if(Re._outsidePointerEvents.observers.length<1||!Re.hasAttached())continue;if(En(Re.overlayElement,nt)||En(Re.overlayElement,W))break;const bt=Re._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>bt.next(Me)):bt.next(Me)}};static \u0275fac=(()=>{let Me;return function(W){return(Me||(Me=c.xGo(Ot)))(W||Ot)}})();static \u0275prov=c.jDH({token:Ot,factory:Ot.\u0275fac,providedIn:"root"})}return Ot})();function En(Ot,Ie){const Me=typeof ShadowRoot<"u"&&ShadowRoot;let nt=Ie;for(;nt;){if(nt===Ot)return!0;nt=Me&&nt instanceof ShadowRoot?nt.host:nt.parentNode}return!1}let Ze=(()=>{class Ot{static \u0275fac=function(nt){return new(nt||Ot)};static \u0275cmp=c.VBU({type:Ot,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(nt,W){},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 Ot})(),wt=(()=>{class Ot{_platform=(0,c.WQX)(w.OD);_containerElement;_document=(0,c.WQX)(a.qQ);_styleLoader=(0,c.WQX)(G.l);constructor(){}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const Me="cdk-overlay-container";if(this._platform.isBrowser||(0,w.v8)()){const W=this._document.querySelectorAll(`.${Me}[platform="server"], .${Me}[platform="test"]`);for(let L=0;Lthis._backdropClick.next(Ie);_backdropTransitionendHandler=Ie=>{this._disposeBackdrop(Ie.target)};_previousHostParent;_keydownEvents=new Z.B;_outsidePointerEvents=new Z.B;_renders=new Z.B;_afterRenderRef;_afterNextRenderRef;constructor(Ie,Me,nt,W,L,V,Re,bt,mt,At=!1,Ln){this._portalOutlet=Ie,this._host=Me,this._pane=nt,this._config=W,this._ngZone=L,this._keyboardDispatcher=V,this._document=Re,this._location=bt,this._outsideClickDispatcher=mt,this._animationsDisabled=At,this._injector=Ln,W.scrollStrategy&&(this._scrollStrategy=W.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=W.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(Ie){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const Me=this._portalOutlet.attach(Ie);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 Me?.onDestroy&&Me.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),Me}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const Ie=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),Ie}dispose(){const Ie=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,Ie&&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(Ie){Ie!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=Ie,this.hasAttached()&&(Ie.attach(this),this.updatePosition()))}updateSize(Ie){this._config={...this._config,...Ie},this._updateElementSize()}setDirection(Ie){this._config={...this._config,direction:Ie},this._updateElementDirection()}addPanelClass(Ie){this._pane&&this._toggleClasses(this._pane,Ie,!0)}removePanelClass(Ie){this._pane&&this._toggleClasses(this._pane,Ie,!1)}getDirection(){const Ie=this._config.direction;return Ie?"string"==typeof Ie?Ie:Ie.value:"ltr"}updateScrollStrategy(Ie){Ie!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=Ie,this.hasAttached()&&(Ie.attach(this),Ie.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const Ie=this._pane.style;Ie.width=(0,y.a1)(this._config.width),Ie.height=(0,y.a1)(this._config.height),Ie.minWidth=(0,y.a1)(this._config.minWidth),Ie.minHeight=(0,y.a1)(this._config.minHeight),Ie.maxWidth=(0,y.a1)(this._config.maxWidth),Ie.maxHeight=(0,y.a1)(this._config.maxHeight)}_togglePointerEvents(Ie){this._pane.style.pointerEvents=Ie?"":"none"}_attachBackdrop(){const Ie="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(Ie)})}):this._backdropElement.classList.add(Ie)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const Ie=this._backdropElement;if(Ie){if(this._animationsDisabled)return void this._disposeBackdrop(Ie);Ie.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{Ie.addEventListener("transitionend",this._backdropTransitionendHandler)}),Ie.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(Ie)},500))}}_toggleClasses(Ie,Me,nt){const W=(0,y.FG)(Me||[]).filter(L=>!!L);W.length&&(nt?Ie.classList.add(...W):Ie.classList.remove(...W))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{const Ie=this._renders.pipe((0,A.Q)((0,be.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()),Ie.unsubscribe())})})}_disposeScrollStrategy(){const Ie=this._scrollStrategy;Ie&&(Ie.disable(),Ie.detach&&Ie.detach())}_disposeBackdrop(Ie){Ie&&(Ie.removeEventListener("click",this._backdropClickHandler),Ie.removeEventListener("transitionend",this._backdropTransitionendHandler),Ie.remove(),this._backdropElement===Ie&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const Be="cdk-overlay-connected-position-bounding-box",Ut=/([A-Za-z%]+)$/;class Ke{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender;_lastBoundingBoxSize={width:0,height:0};_isPushed=!1;_canPush=!0;_growAfterOpen=!1;_hasFlexibleDimensions=!0;_positionLocked=!1;_originRect;_overlayRect;_viewportRect;_containerRect;_viewportMargin=0;_scrollables=[];_preferredPositions=[];_origin;_pane;_isDisposed;_boundingBox;_lastPosition;_lastScrollVisibility;_positionChanges=new Z.B;_resizeSubscription=te.yU.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount;positionChanges=this._positionChanges;get positions(){return this._preferredPositions}constructor(Ie,Me,nt,W,L){this._viewportRuler=Me,this._document=nt,this._platform=W,this._overlayContainer=L,this.setOrigin(Ie)}attach(Ie){this._validatePositions(),Ie.hostElement.classList.add(Be),this._overlayRef=Ie,this._boundingBox=Ie.hostElement,this._pane=Ie.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 Ie=this._originRect,Me=this._overlayRect,nt=this._viewportRect,W=this._containerRect,L=[];let V;for(let Re of this._preferredPositions){let bt=this._getOriginPoint(Ie,W,Re),mt=this._getOverlayPoint(bt,Me,Re),At=this._getOverlayFit(mt,Me,nt,Re);if(At.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(Re,bt);this._canFitWithFlexibleDimensions(At,mt,nt)?L.push({position:Re,origin:bt,overlayRect:Me,boundingBoxRect:this._calculateBoundingBoxRect(bt,Re)}):(!V||V.overlayFit.visibleAreabt&&(bt=At,Re=mt)}return this._isPushed=!1,void this._applyPosition(Re.position,Re.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(V.position,V.originPoint);this._applyPosition(V.position,V.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&<(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Be),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const Ie=this._lastPosition;if(Ie){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const Me=this._getOriginPoint(this._originRect,this._containerRect,Ie);this._applyPosition(Ie,Me)}else this.apply()}withScrollableContainers(Ie){return this._scrollables=Ie,this}withPositions(Ie){return this._preferredPositions=Ie,-1===Ie.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(Ie){return this._viewportMargin=Ie,this}withFlexibleDimensions(Ie=!0){return this._hasFlexibleDimensions=Ie,this}withGrowAfterOpen(Ie=!0){return this._growAfterOpen=Ie,this}withPush(Ie=!0){return this._canPush=Ie,this}withLockedPosition(Ie=!0){return this._positionLocked=Ie,this}setOrigin(Ie){return this._origin=Ie,this}withDefaultOffsetX(Ie){return this._offsetX=Ie,this}withDefaultOffsetY(Ie){return this._offsetY=Ie,this}withTransformOriginOn(Ie){return this._transformOriginSelector=Ie,this}_getOriginPoint(Ie,Me,nt){let W,L;if("center"==nt.originX)W=Ie.left+Ie.width/2;else{const V=this._isRtl()?Ie.right:Ie.left,Re=this._isRtl()?Ie.left:Ie.right;W="start"==nt.originX?V:Re}return Me.left<0&&(W-=Me.left),L="center"==nt.originY?Ie.top+Ie.height/2:"top"==nt.originY?Ie.top:Ie.bottom,Me.top<0&&(L-=Me.top),{x:W,y:L}}_getOverlayPoint(Ie,Me,nt){let W,L;return W="center"==nt.overlayX?-Me.width/2:"start"===nt.overlayX?this._isRtl()?-Me.width:0:this._isRtl()?0:-Me.width,L="center"==nt.overlayY?-Me.height/2:"top"==nt.overlayY?0:-Me.height,{x:Ie.x+W,y:Ie.y+L}}_getOverlayFit(Ie,Me,nt,W){const L=Ge(Me);let{x:V,y:Re}=Ie,bt=this._getOffset(W,"x"),mt=this._getOffset(W,"y");bt&&(V+=bt),mt&&(Re+=mt);let Zt=0-Re,mn=Re+L.height-nt.height,In=this._subtractOverflows(L.width,0-V,V+L.width-nt.width),Bn=this._subtractOverflows(L.height,Zt,mn),Hn=In*Bn;return{visibleArea:Hn,isCompletelyWithinViewport:L.width*L.height===Hn,fitsInViewportVertically:Bn===L.height,fitsInViewportHorizontally:In==L.width}}_canFitWithFlexibleDimensions(Ie,Me,nt){if(this._hasFlexibleDimensions){const W=nt.bottom-Me.y,L=nt.right-Me.x,V=Xe(this._overlayRef.getConfig().minHeight),Re=Xe(this._overlayRef.getConfig().minWidth);return(Ie.fitsInViewportVertically||null!=V&&V<=W)&&(Ie.fitsInViewportHorizontally||null!=Re&&Re<=L)}return!1}_pushOverlayOnScreen(Ie,Me,nt){if(this._previousPushAmount&&this._positionLocked)return{x:Ie.x+this._previousPushAmount.x,y:Ie.y+this._previousPushAmount.y};const W=Ge(Me),L=this._viewportRect,V=Math.max(Ie.x+W.width-L.width,0),Re=Math.max(Ie.y+W.height-L.height,0),bt=Math.max(L.top-nt.top-Ie.y,0),mt=Math.max(L.left-nt.left-Ie.x,0);let At=0,Ln=0;return At=W.width<=L.width?mt||-V:Ie.xIn&&!this._isInitialRender&&!this._growAfterOpen&&(V=Ie.y-In/2)}if("end"===Me.overlayX&&!W||"start"===Me.overlayX&&W)Zt=nt.width-Ie.x+2*this._viewportMargin,At=Ie.x-this._viewportMargin;else if("start"===Me.overlayX&&!W||"end"===Me.overlayX&&W)Ln=Ie.x,At=nt.right-Ie.x;else{const mn=Math.min(nt.right-Ie.x+nt.left,Ie.x),In=this._lastBoundingBoxSize.width;At=2*mn,Ln=Ie.x-mn,At>In&&!this._isInitialRender&&!this._growAfterOpen&&(Ln=Ie.x-In/2)}return{top:V,left:Ln,bottom:Re,right:Zt,width:At,height:L}}_setBoundingBoxStyles(Ie,Me){const nt=this._calculateBoundingBoxRect(Ie,Me);!this._isInitialRender&&!this._growAfterOpen&&(nt.height=Math.min(nt.height,this._lastBoundingBoxSize.height),nt.width=Math.min(nt.width,this._lastBoundingBoxSize.width));const W={};if(this._hasExactPosition())W.top=W.left="0",W.bottom=W.right=W.maxHeight=W.maxWidth="",W.width=W.height="100%";else{const L=this._overlayRef.getConfig().maxHeight,V=this._overlayRef.getConfig().maxWidth;W.height=(0,y.a1)(nt.height),W.top=(0,y.a1)(nt.top),W.bottom=(0,y.a1)(nt.bottom),W.width=(0,y.a1)(nt.width),W.left=(0,y.a1)(nt.left),W.right=(0,y.a1)(nt.right),W.alignItems="center"===Me.overlayX?"center":"end"===Me.overlayX?"flex-end":"flex-start",W.justifyContent="center"===Me.overlayY?"center":"bottom"===Me.overlayY?"flex-end":"flex-start",L&&(W.maxHeight=(0,y.a1)(L)),V&&(W.maxWidth=(0,y.a1)(V))}this._lastBoundingBoxSize=nt,lt(this._boundingBox.style,W)}_resetBoundingBoxStyles(){lt(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){lt(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(Ie,Me){const nt={},W=this._hasExactPosition(),L=this._hasFlexibleDimensions,V=this._overlayRef.getConfig();if(W){const At=this._viewportRuler.getViewportScrollPosition();lt(nt,this._getExactOverlayY(Me,Ie,At)),lt(nt,this._getExactOverlayX(Me,Ie,At))}else nt.position="static";let Re="",bt=this._getOffset(Me,"x"),mt=this._getOffset(Me,"y");bt&&(Re+=`translateX(${bt}px) `),mt&&(Re+=`translateY(${mt}px)`),nt.transform=Re.trim(),V.maxHeight&&(W?nt.maxHeight=(0,y.a1)(V.maxHeight):L&&(nt.maxHeight="")),V.maxWidth&&(W?nt.maxWidth=(0,y.a1)(V.maxWidth):L&&(nt.maxWidth="")),lt(this._pane.style,nt)}_getExactOverlayY(Ie,Me,nt){let W={top:"",bottom:""},L=this._getOverlayPoint(Me,this._overlayRect,Ie);return this._isPushed&&(L=this._pushOverlayOnScreen(L,this._overlayRect,nt)),"bottom"===Ie.overlayY?W.bottom=this._document.documentElement.clientHeight-(L.y+this._overlayRect.height)+"px":W.top=(0,y.a1)(L.y),W}_getExactOverlayX(Ie,Me,nt){let V,W={left:"",right:""},L=this._getOverlayPoint(Me,this._overlayRect,Ie);return this._isPushed&&(L=this._pushOverlayOnScreen(L,this._overlayRect,nt)),V=this._isRtl()?"end"===Ie.overlayX?"left":"right":"end"===Ie.overlayX?"right":"left","right"===V?W.right=this._document.documentElement.clientWidth-(L.x+this._overlayRect.width)+"px":W.left=(0,y.a1)(L.x),W}_getScrollVisibility(){const Ie=this._getOriginRect(),Me=this._pane.getBoundingClientRect(),nt=this._scrollables.map(W=>W.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:ae(Ie,nt),isOriginOutsideView:xe(Ie,nt),isOverlayClipped:ae(Me,nt),isOverlayOutsideView:xe(Me,nt)}}_subtractOverflows(Ie,...Me){return Me.reduce((nt,W)=>nt-Math.max(W,0),Ie)}_getNarrowedViewportRect(){const Ie=this._document.documentElement.clientWidth,Me=this._document.documentElement.clientHeight,nt=this._viewportRuler.getViewportScrollPosition();return{top:nt.top+this._viewportMargin,left:nt.left+this._viewportMargin,right:nt.left+Ie-this._viewportMargin,bottom:nt.top+Me-this._viewportMargin,width:Ie-2*this._viewportMargin,height:Me-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(Ie,Me){return"x"===Me?null==Ie.offsetX?this._offsetX:Ie.offsetX:null==Ie.offsetY?this._offsetY:Ie.offsetY}_validatePositions(){}_addPanelClasses(Ie){this._pane&&(0,y.FG)(Ie).forEach(Me=>{""!==Me&&-1===this._appliedPanelClasses.indexOf(Me)&&(this._appliedPanelClasses.push(Me),this._pane.classList.add(Me))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(Ie=>{this._pane.classList.remove(Ie)}),this._appliedPanelClasses=[])}_getOriginRect(){const Ie=this._origin;if(Ie instanceof c.aKT)return Ie.nativeElement.getBoundingClientRect();if(Ie instanceof Element)return Ie.getBoundingClientRect();const Me=Ie.width||0,nt=Ie.height||0;return{top:Ie.y,bottom:Ie.y+nt,left:Ie.x,right:Ie.x+Me,height:nt,width:Me}}}function lt(Ot,Ie){for(let Me in Ie)Ie.hasOwnProperty(Me)&&(Ot[Me]=Ie[Me]);return Ot}function Xe(Ot){if("number"!=typeof Ot&&null!=Ot){const[Ie,Me]=Ot.split(Ut);return Me&&"px"!==Me?null:parseFloat(Ie)}return Ot||null}function Ge(Ot){return{top:Math.floor(Ot.top),right:Math.floor(Ot.right),bottom:Math.floor(Ot.bottom),left:Math.floor(Ot.left),width:Math.floor(Ot.width),height:Math.floor(Ot.height)}}const Nt="cdk-global-overlay-wrapper";class tn{_overlayRef;_cssPosition="static";_topOffset="";_bottomOffset="";_alignItems="";_xPosition="";_xOffset="";_width="";_height="";_isDisposed=!1;attach(Ie){const Me=Ie.getConfig();this._overlayRef=Ie,this._width&&!Me.width&&Ie.updateSize({width:this._width}),this._height&&!Me.height&&Ie.updateSize({height:this._height}),Ie.hostElement.classList.add(Nt),this._isDisposed=!1}top(Ie=""){return this._bottomOffset="",this._topOffset=Ie,this._alignItems="flex-start",this}left(Ie=""){return this._xOffset=Ie,this._xPosition="left",this}bottom(Ie=""){return this._topOffset="",this._bottomOffset=Ie,this._alignItems="flex-end",this}right(Ie=""){return this._xOffset=Ie,this._xPosition="right",this}start(Ie=""){return this._xOffset=Ie,this._xPosition="start",this}end(Ie=""){return this._xOffset=Ie,this._xPosition="end",this}width(Ie=""){return this._overlayRef?this._overlayRef.updateSize({width:Ie}):this._width=Ie,this}height(Ie=""){return this._overlayRef?this._overlayRef.updateSize({height:Ie}):this._height=Ie,this}centerHorizontally(Ie=""){return this.left(Ie),this._xPosition="center",this}centerVertically(Ie=""){return this.top(Ie),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const Ie=this._overlayRef.overlayElement.style,Me=this._overlayRef.hostElement.style,nt=this._overlayRef.getConfig(),{width:W,height:L,maxWidth:V,maxHeight:Re}=nt,bt=!("100%"!==W&&"100vw"!==W||V&&"100%"!==V&&"100vw"!==V),mt=!("100%"!==L&&"100vh"!==L||Re&&"100%"!==Re&&"100vh"!==Re),At=this._xPosition,Ln=this._xOffset,Zt="rtl"===this._overlayRef.getConfig().direction;let mn="",In="",Bn="";bt?Bn="flex-start":"center"===At?(Bn="center",Zt?In=Ln:mn=Ln):Zt?"left"===At||"end"===At?(Bn="flex-end",mn=Ln):("right"===At||"start"===At)&&(Bn="flex-start",In=Ln):"left"===At||"start"===At?(Bn="flex-start",mn=Ln):("right"===At||"end"===At)&&(Bn="flex-end",In=Ln),Ie.position=this._cssPosition,Ie.marginLeft=bt?"0":mn,Ie.marginTop=mt?"0":this._topOffset,Ie.marginBottom=this._bottomOffset,Ie.marginRight=bt?"0":In,Me.justifyContent=Bn,Me.alignItems=mt?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const Ie=this._overlayRef.overlayElement.style,Me=this._overlayRef.hostElement,nt=Me.style;Me.classList.remove(Nt),nt.justifyContent=nt.alignItems=Ie.marginTop=Ie.marginBottom=Ie.marginLeft=Ie.marginRight=Ie.position="",this._overlayRef=null,this._isDisposed=!0}}let pn=(()=>{class Ot{_viewportRuler=(0,c.WQX)(i.Xj);_document=(0,c.WQX)(a.qQ);_platform=(0,c.WQX)(w.OD);_overlayContainer=(0,c.WQX)(wt);constructor(){}global(){return new tn}flexibleConnectedTo(Me){return new Ke(Me,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static \u0275fac=function(nt){return new(nt||Ot)};static \u0275prov=c.jDH({token:Ot,factory:Ot.\u0275fac,providedIn:"root"})}return Ot})(),Wn=(()=>{class Ot{scrollStrategies=(0,c.WQX)(ke);_overlayContainer=(0,c.WQX)(wt);_positionBuilder=(0,c.WQX)(pn);_keyboardDispatcher=(0,c.WQX)(wn);_injector=(0,c.WQX)(c.zZn);_ngZone=(0,c.WQX)(c.SKi);_document=(0,c.WQX)(a.qQ);_directionality=(0,c.WQX)(T.dS);_location=(0,c.WQX)(a.aZ);_outsideClickDispatcher=(0,c.WQX)($n);_animationsModuleType=(0,c.WQX)(c.bc$,{optional:!0});_idGenerator=(0,c.WQX)(R.g7);_appRef;_styleLoader=(0,c.WQX)(G.l);constructor(){}create(Me){this._styleLoader.load(Ze);const nt=this._createHostElement(),W=this._createPaneElement(nt),L=this._createPortalOutlet(W),V=new Ue(Me);return V.direction=V.direction||this._directionality.value,new ze(L,nt,W,V,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType,this._injector.get(c.uvJ))}position(){return this._positionBuilder}_createPaneElement(Me){const nt=this._document.createElement("div");return nt.id=this._idGenerator.getId("cdk-overlay-"),nt.classList.add("cdk-overlay-pane"),Me.appendChild(nt),nt}_createHostElement(){const Me=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(Me),Me}_createPortalOutlet(Me){return this._appRef||(this._appRef=this._injector.get(c.o8S)),new k.aI(Me,null,this._appRef,this._injector,this._document)}static \u0275fac=function(nt){return new(nt||Ot)};static \u0275prov=c.jDH({token:Ot,factory:Ot.\u0275fac,providedIn:"root"})}return Ot})();const Pt=[{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"}],en=new c.nKC("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{const Ot=(0,c.WQX)(Wn);return()=>Ot.scrollStrategies.reposition()}});let an=(()=>{class Ot{elementRef=(0,c.WQX)(c.aKT);constructor(){}static \u0275fac=function(nt){return new(nt||Ot)};static \u0275dir=c.FsC({type:Ot,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]})}return Ot})(),Yn=(()=>{class Ot{_overlay=(0,c.WQX)(Wn);_dir=(0,c.WQX)(T.dS,{optional:!0});_overlayRef;_templatePortal;_backdropSubscription=te.yU.EMPTY;_attachSubscription=te.yU.EMPTY;_detachSubscription=te.yU.EMPTY;_positionSubscription=te.yU.EMPTY;_offsetX;_offsetY;_position;_scrollStrategyFactory=(0,c.WQX)(en);_disposeOnNavigation=!1;_ngZone=(0,c.WQX)(c.SKi);origin;positions;positionStrategy;get offsetX(){return this._offsetX}set offsetX(Me){this._offsetX=Me,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(Me){this._offsetY=Me,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(Me){this._disposeOnNavigation=Me}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 Me=(0,c.WQX)(c.C4Q),nt=(0,c.WQX)(c.c1b);this._templatePortal=new k.VA(Me,nt),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(Me){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),Me.origin&&this.open&&this._position.apply()),Me.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=Pt);const Me=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=Me.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=Me.detachments().subscribe(()=>this.detach.emit()),Me.keydownEvents().subscribe(nt=>{this.overlayKeydown.next(nt),nt.keyCode===_e._f&&!this.disableClose&&!(0,_e.rp)(nt)&&(nt.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(nt=>{const W=this._getOriginElement(),L=(0,w.Fb)(nt);(!W||W!==L&&!W.contains(L))&&this.overlayOutsideClick.next(nt)})}_buildConfig(){const Me=this._position=this.positionStrategy||this._createPositionStrategy(),nt=new Ue({direction:this._dir||"ltr",positionStrategy:Me,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||0===this.width)&&(nt.width=this.width),(this.height||0===this.height)&&(nt.height=this.height),(this.minWidth||0===this.minWidth)&&(nt.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(nt.minHeight=this.minHeight),this.backdropClass&&(nt.backdropClass=this.backdropClass),this.panelClass&&(nt.panelClass=this.panelClass),nt}_updatePositionStrategy(Me){const nt=this.positions.map(W=>({originX:W.originX,originY:W.originY,overlayX:W.overlayX,overlayY:W.overlayY,offsetX:W.offsetX||this.offsetX,offsetY:W.offsetY||this.offsetY,panelClass:W.panelClass||void 0}));return Me.setOrigin(this._getOrigin()).withPositions(nt).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const Me=this._overlay.position().flexibleConnectedTo(this._getOrigin());return this._updatePositionStrategy(Me),Me}_getOrigin(){return this.origin instanceof an?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof an?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(Me=>{this.backdropClick.emit(Me)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe((0,S.v)(()=>this.positionChange.observers.length>0)).subscribe(Me=>{this._ngZone.run(()=>this.positionChange.emit(Me)),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}static \u0275fac=function(nt){return new(nt||Ot)};static \u0275dir=c.FsC({type:Ot,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 Ot})();const Xt={provide:en,deps:[Wn],useFactory:function Sn(Ot){return()=>Ot.scrollStrategies.reposition()}};let Mt=(()=>{class Ot{static \u0275fac=function(nt){return new(nt||Ot)};static \u0275mod=c.$C({type:Ot});static \u0275inj=c.G2t({providers:[Wn,Xt],imports:[T.jI,k.jc,i.E9,i.E9]})}return Ot})()},2147:(o,s,r)=>{"use strict";r.d(s,{BD:()=>_e,BQ:()=>R,CZ:()=>be,Fb:()=>Se,KT:()=>Ce,MU:()=>S,OD:()=>y,r5:()=>G,v8:()=>xe,vc:()=>Ne});var i=r(3107),a=r(4460);let c;try{c=typeof Intl<"u"&&Intl.v8BreakIterator}catch{c=!1}let C,y=(()=>{class ae{_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(Ue){return new(Ue||ae)};static \u0275prov=i.jDH({token:ae,factory:ae.\u0275fac,providedIn:"root"})}return ae})();const A=["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(A),C;let ae=document.createElement("input");return C=new Set(A.filter(le=>(ae.setAttribute("type",le),ae.type===le))),C}let T;function R(ae){return function k(){if(null==T&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>T=!0}))}finally{T=T||!1}return T}()?ae:!!ae.capture}var G=function(ae){return ae[ae.NORMAL=0]="NORMAL",ae[ae.NEGATED=1]="NEGATED",ae[ae.INVERTED=2]="INVERTED",ae}(G||{});let Z,te,pe;function be(){if(null==te){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return te=!1,te;if("scrollBehavior"in document.documentElement.style)te=!0;else{const ae=Element.prototype.scrollTo;te=!!ae&&!/\{\s*\[native code\]\s*\}/.test(ae.toString())}}return te}function _e(){if("object"!=typeof document||!document)return G.NORMAL;if(null==Z){const ae=document.createElement("div"),le=ae.style;ae.dir="rtl",le.width="1px",le.overflow="auto",le.visibility="hidden",le.pointerEvents="none",le.position="absolute";const ke=document.createElement("div"),Ue=ke.style;Ue.width="2px",Ue.height="1px",ae.appendChild(ke),document.body.appendChild(ae),Z=G.NORMAL,0===ae.scrollLeft&&(ae.scrollLeft=1,Z=0===ae.scrollLeft?G.NEGATED:G.INVERTED),ae.remove()}return Z}function Ce(ae){if(function Te(){if(null==pe){const ae=typeof document<"u"?document.head:null;pe=!(!ae||!ae.createShadowRoot&&!ae.attachShadow)}return pe}()){const le=ae.getRootNode?ae.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&le instanceof ShadowRoot)return le}return null}function Ne(){let ae=typeof document<"u"&&document?document.activeElement:null;for(;ae&&ae.shadowRoot;){const le=ae.shadowRoot.activeElement;if(le===ae)break;ae=le}return ae}function Se(ae){return ae.composedPath?ae.composedPath()[0]:ae.target}function xe(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},6192:(o,s,r)=>{"use strict";r.d(s,{A8:()=>k,I3:()=>Ce,VA:()=>R,aI:()=>be,jc:()=>Se,lb:()=>Z});var i=r(3107),a=r(4460);class T{_attachedHost;attach(le){return this._attachedHost=le,le.attach(this)}detach(){let le=this._attachedHost;null!=le&&(this._attachedHost=null,le.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(le){this._attachedHost=le}}class k extends T{component;viewContainerRef;injector;componentFactoryResolver;projectableNodes;constructor(le,ke,Ue,st,ft){super(),this.component=le,this.viewContainerRef=ke,this.injector=Ue,this.projectableNodes=ft}}class R extends T{templateRef;viewContainerRef;context;injector;constructor(le,ke,Ue,st){super(),this.templateRef=le,this.viewContainerRef=ke,this.context=Ue,this.injector=st}get origin(){return this.templateRef.elementRef}attach(le,ke=this.context){return this.context=ke,super.attach(le)}detach(){return this.context=void 0,super.detach()}}class G extends T{element;constructor(le){super(),this.element=le instanceof i.aKT?le.nativeElement:le}}class Z{_attachedPortal;_disposeFn;_isDisposed=!1;hasAttached(){return!!this._attachedPortal}attach(le){return le instanceof k?(this._attachedPortal=le,this.attachComponentPortal(le)):le instanceof R?(this._attachedPortal=le,this.attachTemplatePortal(le)):this.attachDomPortal&&le instanceof G?(this._attachedPortal=le,this.attachDomPortal(le)):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(le){this._disposeFn=le}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class be extends Z{outletElement;_appRef;_defaultInjector;_document;constructor(le,ke,Ue,st,ft){super(),this.outletElement=le,this._appRef=Ue,this._defaultInjector=st,this._document=ft}attachComponentPortal(le){let ke;if(le.viewContainerRef){const Ue=le.injector||le.viewContainerRef.injector,st=Ue.get(i.Vns,null,{optional:!0})||void 0;ke=le.viewContainerRef.createComponent(le.component,{index:le.viewContainerRef.length,injector:Ue,ngModuleRef:st,projectableNodes:le.projectableNodes||void 0}),this.setDisposeFn(()=>ke.destroy())}else ke=(0,i.a0P)(le.component,{elementInjector:le.injector||this._defaultInjector||i.zZn.NULL,environmentInjector:this._appRef.injector,projectableNodes:le.projectableNodes||void 0}),this._appRef.attachView(ke.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(ke.hostView),ke.destroy()});return this.outletElement.appendChild(this._getComponentRootNode(ke)),this._attachedPortal=le,ke}attachTemplatePortal(le){let ke=le.viewContainerRef,Ue=ke.createEmbeddedView(le.templateRef,le.context,{injector:le.injector});return Ue.rootNodes.forEach(st=>this.outletElement.appendChild(st)),Ue.detectChanges(),this.setDisposeFn(()=>{let st=ke.indexOf(Ue);-1!==st&&ke.remove(st)}),this._attachedPortal=le,Ue}attachDomPortal=le=>{const ke=le.element,Ue=this._document.createComment("dom-portal");ke.parentNode.insertBefore(Ue,ke),this.outletElement.appendChild(ke),this._attachedPortal=le,super.setDisposeFn(()=>{Ue.parentNode&&Ue.parentNode.replaceChild(ke,Ue)})};dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(le){return le.hostView.rootNodes[0]}}let Ce=(()=>{class ae 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(ke){this.hasAttached()&&!ke&&!this._isInitialized||(this.hasAttached()&&super.detach(),ke&&super.attach(ke),this._attachedPortal=ke||null)}attached=new i.bkB;get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(ke){ke.setAttachedHost(this);const Ue=null!=ke.viewContainerRef?ke.viewContainerRef:this._viewContainerRef,st=Ue.createComponent(ke.component,{index:Ue.length,injector:ke.injector||Ue.injector,projectableNodes:ke.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0});return Ue!==this._viewContainerRef&&this._getRootNode().appendChild(st.hostView.rootNodes[0]),super.setDisposeFn(()=>st.destroy()),this._attachedPortal=ke,this._attachedRef=st,this.attached.emit(st),st}attachTemplatePortal(ke){ke.setAttachedHost(this);const Ue=this._viewContainerRef.createEmbeddedView(ke.templateRef,ke.context,{injector:ke.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=ke,this._attachedRef=Ue,this.attached.emit(Ue),Ue}attachDomPortal=ke=>{const Ue=ke.element,st=this._document.createComment("dom-portal");ke.setAttachedHost(this),Ue.parentNode.insertBefore(st,Ue),this._getRootNode().appendChild(Ue),this._attachedPortal=ke,super.setDisposeFn(()=>{st.parentNode&&st.parentNode.replaceChild(Ue,st)})};_getRootNode(){const ke=this._viewContainerRef.element.nativeElement;return ke.nodeType===ke.ELEMENT_NODE?ke:ke.parentNode}static \u0275fac=function(Ue){return new(Ue||ae)};static \u0275dir=i.FsC({type:ae,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[i.Vt3]})}return ae})(),Se=(()=>{class ae{static \u0275fac=function(Ue){return new(Ue||ae)};static \u0275mod=i.$C({type:ae});static \u0275inj=i.G2t({})}return ae})()},5467:(o,s,r)=>{"use strict";r.d(s,{Y:()=>y,l:()=>c});var i=r(3107);const a=new WeakMap;let c=(()=>{class w{_appRef;_injector=(0,i.WQX)(i.zZn);_environmentInjector=(0,i.WQX)(i.uvJ);load(A){const S=this._appRef=this._appRef||this._injector.get(i.o8S);let T=a.get(S);T||(T={loaders:new Set,refs:[]},a.set(S,T),S.onDestroy(()=>{a.get(S)?.refs.forEach(k=>k.destroy()),a.delete(S)})),T.loaders.has(A)||(T.loaders.add(A),T.refs.push((0,i.a0P)(A,{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,T){},styles:[".cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] .cdk-visually-hidden{left:auto;right:0}"],encapsulation:2,changeDetection:0})}return w})()},8108:(o,s,r)=>{"use strict";r.d(s,{uv:()=>ot,Gj:()=>lt,R:()=>_t,E9:()=>Xe,Xj:()=>un});var i=r(3022),a=r(3107),c=r(8447),y=r(3016),w=r(1698),C=r(909),A=r(9899),S=r(5710);const T={schedule(Ge){let pt=requestAnimationFrame,se=cancelAnimationFrame;const{delegate:qe}=T;qe&&(pt=qe.requestAnimationFrame,se=qe.cancelAnimationFrame);const Nt=pt(tn=>{se=void 0,Ge(tn)});return new S.yU(()=>se?.(Nt))},requestAnimationFrame(...Ge){const{delegate:pt}=T;return(pt?.requestAnimationFrame||requestAnimationFrame)(...Ge)},cancelAnimationFrame(...Ge){const{delegate:pt}=T;return(pt?.cancelAnimationFrame||cancelAnimationFrame)(...Ge)},delegate:void 0};var R=r(8050);new class G extends R.q{flush(pt){this._active=!0;const se=this._scheduled;this._scheduled=void 0;const{actions:qe}=this;let Nt;pt=pt||qe.shift();do{if(Nt=pt.execute(pt.state,pt.delay))break}while((pt=qe[0])&&pt.id===se&&qe.shift());if(this._active=!1,Nt){for(;(pt=qe[0])&&pt.id===se&&qe.shift();)pt.unsubscribe();throw Nt}}}(class k extends A.R{constructor(pt,se){super(pt,se),this.scheduler=pt,this.work=se}requestAsyncId(pt,se,qe=0){return null!==qe&&qe>0?super.requestAsyncId(pt,se,qe):(pt.actions.push(this),pt._scheduled||(pt._scheduled=T.requestAnimationFrame(()=>pt.flush(void 0))))}recycleAsyncId(pt,se,qe=0){var Nt;if(null!=qe?qe>0:this.delay>0)return super.recycleAsyncId(pt,se,qe);const{actions:tn}=pt;null!=se&&(null===(Nt=tn[tn.length-1])||void 0===Nt?void 0:Nt.id)!==se&&(T.cancelAnimationFrame(se),pt._scheduled=void 0)}});r(4984);var _e=r(5684),pe=r(1483),Te=r(5424),Ce=r(2147),Ne=r(4460),Se=r(2944);let _t=(()=>{class Ge{_ngZone=(0,a.WQX)(a.SKi);_platform=(0,a.WQX)(Ce.OD);_document=(0,a.WQX)(Ne.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 qe=this.scrollContainers.get(se);qe&&(qe.unsubscribe(),this.scrollContainers.delete(se))}scrolled(se=20){return this._platform.isBrowser?new w.c(qe=>{this._globalSubscription||this._addGlobalListener();const Nt=se>0?this._scrolled.pipe((0,_e.Z)(se)).subscribe(qe):this._scrolled.subscribe(qe);return this._scrolledCount++,()=>{Nt.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,y.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((se,qe)=>this.deregister(qe)),this._scrolled.complete()}ancestorScrolled(se,qe){const Nt=this.getAncestorScrollContainers(se);return this.scrolled(qe).pipe((0,pe.p)(tn=>!tn||Nt.indexOf(tn)>-1))}getAncestorScrollContainers(se){const qe=[];return this.scrollContainers.forEach((Nt,tn)=>{this._scrollableContainsElement(tn,se)&&qe.push(tn)}),qe}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(se,qe){let Nt=(0,i.i8)(qe),tn=se.getElementRef().nativeElement;do{if(Nt==tn)return!0}while(Nt=Nt.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(qe){return new(qe||Ge)};static \u0275prov=a.jDH({token:Ge,factory:Ge.\u0275fac,providedIn:"root"})}return Ge})(),ot=(()=>{class Ge{elementRef=(0,a.WQX)(a.aKT);scrollDispatcher=(0,a.WQX)(_t);ngZone=(0,a.WQX)(a.SKi);dir=(0,a.WQX)(Se.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 qe=this.elementRef.nativeElement,Nt=this.dir&&"rtl"==this.dir.value;null==se.left&&(se.left=Nt?se.end:se.start),null==se.right&&(se.right=Nt?se.start:se.end),null!=se.bottom&&(se.top=qe.scrollHeight-qe.clientHeight-se.bottom),Nt&&(0,Ce.BD)()!=Ce.r5.NORMAL?(null!=se.left&&(se.right=qe.scrollWidth-qe.clientWidth-se.left),(0,Ce.BD)()==Ce.r5.INVERTED?se.left=se.right:(0,Ce.BD)()==Ce.r5.NEGATED&&(se.left=se.right?-se.right:se.right)):null!=se.right&&(se.left=qe.scrollWidth-qe.clientWidth-se.right),this._applyScrollToOptions(se)}_applyScrollToOptions(se){const qe=this.elementRef.nativeElement;(0,Ce.CZ)()?qe.scrollTo(se):(null!=se.top&&(qe.scrollTop=se.top),null!=se.left&&(qe.scrollLeft=se.left))}measureScrollOffset(se){const qe="left",tn=this.elementRef.nativeElement;if("top"==se)return tn.scrollTop;if("bottom"==se)return tn.scrollHeight-tn.clientHeight-tn.scrollTop;const pn=this.dir&&"rtl"==this.dir.value;return"start"==se?se=pn?"right":qe:"end"==se&&(se=pn?qe:"right"),pn&&(0,Ce.BD)()==Ce.r5.INVERTED?se==qe?tn.scrollWidth-tn.clientWidth-tn.scrollLeft:tn.scrollLeft:pn&&(0,Ce.BD)()==Ce.r5.NEGATED?se==qe?tn.scrollLeft+tn.scrollWidth-tn.clientWidth:-tn.scrollLeft:se==qe?tn.scrollLeft:tn.scrollWidth-tn.clientWidth-tn.scrollLeft}static \u0275fac=function(qe){return new(qe||Ge)};static \u0275dir=a.FsC({type:Ge,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]})}return Ge})(),un=(()=>{class Ge{_platform=(0,a.WQX)(Ce.OD);_viewportSize;_change=new c.B;_changeListener=se=>{this._change.next(se)};_document=(0,a.WQX)(Ne.qQ,{optional:!0});constructor(){(0,a.WQX)(a.SKi).runOutsideAngular(()=>{if(this._platform.isBrowser){const qe=this._getWindow();qe.addEventListener("resize",this._changeListener),qe.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:qe,height:Nt}=this.getViewportSize();return{top:se.top,left:se.left,bottom:se.top+Nt,right:se.left+qe,height:Nt,width:qe}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const se=this._document,qe=this._getWindow(),Nt=se.documentElement,tn=Nt.getBoundingClientRect();return{top:-tn.top||se.body.scrollTop||qe.scrollY||Nt.scrollTop||0,left:-tn.left||se.body.scrollLeft||qe.scrollX||Nt.scrollLeft||0}}change(se=20){return se>0?this._change.pipe((0,_e.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(qe){return new(qe||Ge)};static \u0275prov=a.jDH({token:Ge,factory:Ge.\u0275fac,providedIn:"root"})}return Ge})(),lt=(()=>{class Ge{static \u0275fac=function(qe){return new(qe||Ge)};static \u0275mod=a.$C({type:Ge});static \u0275inj=a.G2t({})}return Ge})(),Xe=(()=>{class Ge{static \u0275fac=function(qe){return new(qe||Ge)};static \u0275mod=a.$C({type:Ge});static \u0275inj=a.G2t({imports:[Se.jI,lt,Se.jI,lt]})}return Ge})()},708:(o,s,r)=>{"use strict";r.d(s,{EE:()=>_e,P8:()=>Z,xb:()=>be});var i=r(2147),a=r(3107),c=r(5467),y=r(3022),w=r(6564),C=r(8447),A=r(909),S=r(4460),T=r(5684),k=r(5424);let R=(()=>{class pe{static \u0275fac=function(Ne){return new(Ne||pe)};static \u0275cmp=a.VBU({type:pe,selectors:[["ng-component"]],hostAttrs:["cdk-text-field-style-loader",""],decls:0,vars:0,template:function(Ne,Se){},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(Ce){if(!this._platform.isBrowser)return w.w;this._styleLoader.load(R);const Ne=(0,y.i8)(Ce),Se=this._monitoredElements.get(Ne);if(Se)return Se.subject;const xe=new C.B,ae="cdk-text-field-autofilled",le=ke=>{"cdk-text-field-autofill-start"!==ke.animationName||Ne.classList.contains(ae)?"cdk-text-field-autofill-end"===ke.animationName&&Ne.classList.contains(ae)&&(Ne.classList.remove(ae),this._ngZone.run(()=>xe.next({target:ke.target,isAutofilled:!1}))):(Ne.classList.add(ae),this._ngZone.run(()=>xe.next({target:ke.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{Ne.addEventListener("animationstart",le,G),Ne.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(Ne,{subject:xe,unlisten:()=>{Ne.removeEventListener("animationstart",le,G)}}),xe}stopMonitoring(Ce){const Ne=(0,y.i8)(Ce),Se=this._monitoredElements.get(Ne);Se&&(Se.unlisten(),Se.subject.complete(),Ne.classList.remove("cdk-text-field-autofill-monitored"),Ne.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(Ne))}ngOnDestroy(){this._monitoredElements.forEach((Ce,Ne)=>this.stopMonitoring(Ne))}static \u0275fac=function(Ne){return new(Ne||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(Ce){this._minRows=(0,y.OE)(Ce),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(Ce){this._maxRows=(0,y.OE)(Ce),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(Ce){this._enabled!==Ce&&((this._enabled=Ce)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(Ce){this._cachedPlaceholderHeight=void 0,Ce?this._textareaElement.setAttribute("placeholder",Ce):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}_cachedLineHeight;_cachedPlaceholderHeight;_document=(0,a.WQX)(S.qQ,{optional:!0});_hasFocus;_isViewInited=!1;constructor(){(0,a.WQX)(c.l).load(R),this._textareaElement=this._elementRef.nativeElement}_setMinHeight(){const Ce=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;Ce&&(this._textareaElement.style.minHeight=Ce)}_setMaxHeight(){const Ce=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;Ce&&(this._textareaElement.style.maxHeight=Ce)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{const Ce=this._getWindow();(0,A.R)(Ce,"resize").pipe((0,T.Z)(16),(0,k.Q)(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0)),this._textareaElement.addEventListener("focus",this._handleFocusEvent),this._textareaElement.addEventListener("blur",this._handleFocusEvent)}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._textareaElement.removeEventListener("focus",this._handleFocusEvent),this._textareaElement.removeEventListener("blur",this._handleFocusEvent),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let Ce=this._textareaElement.cloneNode(!1);Ce.rows=1,Ce.style.position="absolute",Ce.style.visibility="hidden",Ce.style.border="none",Ce.style.padding="0",Ce.style.height="",Ce.style.minHeight="",Ce.style.maxHeight="",Ce.style.overflow="hidden",this._textareaElement.parentNode.appendChild(Ce),this._cachedLineHeight=Ce.clientHeight,Ce.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const Ce=this._textareaElement,Ne=Ce.style.marginBottom||"",Se=this._platform.FIREFOX,xe=Se&&this._hasFocus,ae=Se?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";xe&&(Ce.style.marginBottom=`${Ce.clientHeight}px`),Ce.classList.add(ae);const le=Ce.scrollHeight-4;return Ce.classList.remove(ae),xe&&(Ce.style.marginBottom=Ne),le}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const Ce=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=Ce}_handleFocusEvent=Ce=>{this._hasFocus="focus"===Ce.type};ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(Ce=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const Ne=this._elementRef.nativeElement,Se=Ne.value;if(!Ce&&this._minRows===this._previousMinRows&&Se===this._previousValue)return;const xe=this._measureScrollHeight(),ae=Math.max(xe,this._cachedPlaceholderHeight||0);Ne.style.height=`${ae}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(Ne)):setTimeout(()=>this._scrollToCaretPosition(Ne))}),this._previousValue=Se,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(Ce){const{selectionStart:Ne,selectionEnd:Se}=Ce;!this._destroyed.isStopped&&this._hasFocus&&Ce.setSelectionRange(Ne,Se)}static \u0275fac=function(Ne){return new(Ne||pe)};static \u0275dir=a.FsC({type:pe,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(Ne,Se){1&Ne&&a.bIt("input",function(){return Se._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})(),_e=(()=>{class pe{static \u0275fac=function(Ne){return new(Ne||pe)};static \u0275mod=a.$C({type:pe});static \u0275inj=a.G2t({})}return pe})()},4460:(o,s,r)=>{"use strict";r.d(s,{AJ:()=>Eo,B3:()=>pr,Jj:()=>ls,MD:()=>tr,N0:()=>Qo,PV:()=>Sr,QT:()=>y,Sm:()=>pe,Sq:()=>me,T3:()=>bi,UE:()=>Is,VF:()=>C,Vy:()=>Bs,Xr:()=>Yo,YU:()=>Mo,ZD:()=>w,_b:()=>eo,aZ:()=>Ce,bT:()=>ht,fw:()=>Te,hb:()=>be,hj:()=>k,jo:()=>Wi,qQ:()=>S,vh:()=>Ps});var i=r(3107),a=r(8447);let c=null;function y(){return c}function w(U){c??=U}class C{}const S=new i.nKC("");let T=(()=>{class U{historyGo(q){throw new Error("")}static \u0275fac=function(ve){return new(ve||U)};static \u0275prov=i.jDH({token:U,factory:()=>(0,i.WQX)(R),providedIn:"platform"})}return U})();const k=new i.nKC("");let R=(()=>{class U extends T{_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 ve=y().getGlobalEventTarget(this._doc,"window");return ve.addEventListener("popstate",q,!1),()=>ve.removeEventListener("popstate",q)}onHashChange(q){const ve=y().getGlobalEventTarget(this._doc,"window");return ve.addEventListener("hashchange",q,!1),()=>ve.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,ve,rt){this._history.pushState(q,ve,rt)}replaceState(q,ve,rt){this._history.replaceState(q,ve,rt)}forward(){this._history.forward()}back(){this._history.back()}historyGo(q=0){this._history.go(q)}getState(){return this._history.state}static \u0275fac=function(ve){return new(ve||U)};static \u0275prov=i.jDH({token:U,factory:()=>new U,providedIn:"platform"})}return U})();function G(U,de){if(0==U.length)return de;if(0==de.length)return U;let q=0;return U.endsWith("/")&&q++,de.startsWith("/")&&q++,2==q?U+de.substring(1):1==q?U+de:U+"/"+de}function Z(U){const de=U.match(/#|\?|$/),q=de&&de.index||U.length;return U.slice(0,q-("/"===U[q-1]?1:0))+U.slice(q)}function te(U){return U&&"?"!==U[0]?"?"+U:U}let be=(()=>{class U{historyGo(q){throw new Error("")}static \u0275fac=function(ve){return new(ve||U)};static \u0275prov=i.jDH({token:U,factory:()=>(0,i.WQX)(pe),providedIn:"root"})}return U})();const _e=new i.nKC("");let pe=(()=>{class U extends be{_platformLocation;_baseHref;_removeListenerFns=[];constructor(q,ve){super(),this._platformLocation=q,this._baseHref=ve??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 ve=this._platformLocation.pathname+te(this._platformLocation.search),rt=this._platformLocation.hash;return rt&&q?`${ve}${rt}`:ve}pushState(q,ve,rt,bn){const Rn=this.prepareExternalUrl(rt+te(bn));this._platformLocation.pushState(q,ve,Rn)}replaceState(q,ve,rt,bn){const Rn=this.prepareExternalUrl(rt+te(bn));this._platformLocation.replaceState(q,ve,Rn)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(q=0){this._platformLocation.historyGo?.(q)}static \u0275fac=function(ve){return new(ve||U)(i.KVO(T),i.KVO(_e,8))};static \u0275prov=i.jDH({token:U,factory:U.\u0275fac,providedIn:"root"})}return U})(),Te=(()=>{class U extends be{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(q,ve){super(),this._platformLocation=q,null!=ve&&(this._baseHref=ve)}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 ve=this._platformLocation.hash??"#";return ve.length>0?ve.substring(1):ve}prepareExternalUrl(q){const ve=G(this._baseHref,q);return ve.length>0?"#"+ve:ve}pushState(q,ve,rt,bn){let Rn=this.prepareExternalUrl(rt+te(bn));0==Rn.length&&(Rn=this._platformLocation.pathname),this._platformLocation.pushState(q,ve,Rn)}replaceState(q,ve,rt,bn){let Rn=this.prepareExternalUrl(rt+te(bn));0==Rn.length&&(Rn=this._platformLocation.pathname),this._platformLocation.replaceState(q,ve,Rn)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(q=0){this._platformLocation.historyGo?.(q)}static \u0275fac=function(ve){return new(ve||U)(i.KVO(T),i.KVO(_e,8))};static \u0275prov=i.jDH({token:U,factory:U.\u0275fac})}return U})(),Ce=(()=>{class U{_subject=new a.B;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(q){this._locationStrategy=q;const ve=this._locationStrategy.getBaseHref();this._basePath=function ae(U){if(new RegExp("^(https?:)?//").test(U)){const[,q]=U.split(/\/\/[^\/]+/);return q}return U}(Z(xe(ve))),this._locationStrategy.onPopState(rt=>{this._subject.next({url:this.path(!0),pop:!0,state:rt.state,type:rt.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(q=!1){return this.normalize(this._locationStrategy.path(q))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(q,ve=""){return this.path()==this.normalize(q+te(ve))}normalize(q){return U.stripTrailingSlash(function Se(U,de){if(!U||!de.startsWith(U))return de;const q=de.substring(U.length);return""===q||["/",";","?","#"].includes(q[0])?q:de}(this._basePath,xe(q)))}prepareExternalUrl(q){return q&&"/"!==q[0]&&(q="/"+q),this._locationStrategy.prepareExternalUrl(q)}go(q,ve="",rt=null){this._locationStrategy.pushState(rt,"",q,ve),this._notifyUrlChangeListeners(this.prepareExternalUrl(q+te(ve)),rt)}replaceState(q,ve="",rt=null){this._locationStrategy.replaceState(rt,"",q,ve),this._notifyUrlChangeListeners(this.prepareExternalUrl(q+te(ve)),rt)}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(ve=>{this._notifyUrlChangeListeners(ve.url,ve.state)}),()=>{const ve=this._urlChangeListeners.indexOf(q);this._urlChangeListeners.splice(ve,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(q="",ve){this._urlChangeListeners.forEach(rt=>rt(q,ve))}subscribe(q,ve,rt){return this._subject.subscribe({next:q,error:ve??void 0,complete:rt??void 0})}static normalizeQueryParams=te;static joinWithSlash=G;static stripTrailingSlash=Z;static \u0275fac=function(ve){return new(ve||U)(i.KVO(be))};static \u0275prov=i.jDH({token:U,factory:()=>function Ne(){return new Ce((0,i.KVO)(be))}(),providedIn:"root"})}return U})();function xe(U){return U.replace(/\/index.html$/,"")}var Ue=function(U){return U[U.Zero=0]="Zero",U[U.One=1]="One",U[U.Two=2]="Two",U[U.Few=3]="Few",U[U.Many=4]="Many",U[U.Other=5]="Other",U}(Ue||{}),st=function(U){return U[U.Format=0]="Format",U[U.Standalone=1]="Standalone",U}(st||{}),ft=function(U){return U[U.Narrow=0]="Narrow",U[U.Abbreviated=1]="Abbreviated",U[U.Wide=2]="Wide",U[U.Short=3]="Short",U}(ft||{}),_t=function(U){return U[U.Short=0]="Short",U[U.Medium=1]="Medium",U[U.Long=2]="Long",U[U.Full=3]="Full",U}(_t||{});const ot={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function Be(U,de){return en((0,i.H5H)(U)[i.KH2.DateFormat],de)}function Ut(U,de){return en((0,i.H5H)(U)[i.KH2.TimeFormat],de)}function Ke(U,de){return en((0,i.H5H)(U)[i.KH2.DateTimeFormat],de)}function lt(U,de){const q=(0,i.H5H)(U),ve=q[i.KH2.NumberSymbols][de];if(typeof ve>"u"){if(de===ot.CurrencyDecimal)return q[i.KH2.NumberSymbols][ot.Decimal];if(de===ot.CurrencyGroup)return q[i.KH2.NumberSymbols][ot.Group]}return ve}const Nt=i.mq5;function tn(U){if(!U[i.KH2.ExtraData])throw new Error(`Missing extra locale data for the locale "${U[i.KH2.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function en(U,de){for(let q=de;q>-1;q--)if(typeof U[q]<"u")return U[q];throw new Error("Locale data API: locale data undefined")}function an(U){const[de,q]=U.split(":");return{hours:+de,minutes:+q}}const Mt=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Gt={},Ot=/((?:[^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 Ie=function(U){return U[U.Short=0]="Short",U[U.ShortGMT=1]="ShortGMT",U[U.Long=2]="Long",U[U.Extended=3]="Extended",U}(Ie||{}),Me=function(U){return U[U.FullYear=0]="FullYear",U[U.Month=1]="Month",U[U.Date=2]="Date",U[U.Hours=3]="Hours",U[U.Minutes=4]="Minutes",U[U.Seconds=5]="Seconds",U[U.FractionalSeconds=6]="FractionalSeconds",U[U.Day=7]="Day",U}(Me||{}),nt=function(U){return U[U.DayPeriods=0]="DayPeriods",U[U.Days=1]="Days",U[U.Months=2]="Months",U[U.Eras=3]="Eras",U}(nt||{});function W(U,de,q,ve){let rt=function dt(U){if(_n(U))return U;if("number"==typeof U&&!isNaN(U))return new Date(U);if("string"==typeof U){if(U=U.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(U)){const[rt,bn=1,Rn=1]=U.split("-").map(Cr=>+Cr);return L(rt,bn-1,Rn)}const q=parseFloat(U);if(!isNaN(U-q))return new Date(q);let ve;if(ve=U.match(Mt))return function Bt(U){const de=new Date(0);let q=0,ve=0;const rt=U[8]?de.setUTCFullYear:de.setFullYear,bn=U[8]?de.setUTCHours:de.setHours;U[9]&&(q=Number(U[9]+U[10]),ve=Number(U[9]+U[11])),rt.call(de,Number(U[1]),Number(U[2])-1,Number(U[3]));const Rn=Number(U[4]||0)-q,Cr=Number(U[5]||0)-ve,Yr=Number(U[6]||0),Li=Math.floor(1e3*parseFloat("0."+(U[7]||0)));return bn.call(de,Rn,Cr,Yr,Li),de}(ve)}const de=new Date(U);if(!_n(de))throw new Error(`Unable to convert "${U}" into a date`);return de}(U);de=V(q,de)||de;let Cr,Rn=[];for(;de;){if(Cr=Ot.exec(de),!Cr){Rn.push(de);break}{Rn=Rn.concat(Cr.slice(1));const Hr=Rn.pop();if(!Hr)break;de=Hr}}let Yr=rt.getTimezoneOffset();ve&&(Yr=at(ve,Yr),rt=function Rt(U,de,q){const ve=q?-1:1,rt=U.getTimezoneOffset();return function Fe(U,de){return(U=new Date(U.getTime())).setMinutes(U.getMinutes()+de),U}(U,ve*(at(de,rt)-rt))}(rt,ve,!0));let Li="";return Rn.forEach(Hr=>{const xi=function Ee(U){if($t[U])return $t[U];let de;switch(U){case"G":case"GG":case"GGG":de=Zt(nt.Eras,ft.Abbreviated);break;case"GGGG":de=Zt(nt.Eras,ft.Wide);break;case"GGGGG":de=Zt(nt.Eras,ft.Narrow);break;case"y":de=At(Me.FullYear,1,0,!1,!0);break;case"yy":de=At(Me.FullYear,2,0,!0,!0);break;case"yyy":de=At(Me.FullYear,3,0,!1,!0);break;case"yyyy":de=At(Me.FullYear,4,0,!1,!0);break;case"Y":de=vt(1);break;case"YY":de=vt(2,!0);break;case"YYY":de=vt(3);break;case"YYYY":de=vt(4);break;case"M":case"L":de=At(Me.Month,1,1);break;case"MM":case"LL":de=At(Me.Month,2,1);break;case"MMM":de=Zt(nt.Months,ft.Abbreviated);break;case"MMMM":de=Zt(nt.Months,ft.Wide);break;case"MMMMM":de=Zt(nt.Months,ft.Narrow);break;case"LLL":de=Zt(nt.Months,ft.Abbreviated,st.Standalone);break;case"LLLL":de=Zt(nt.Months,ft.Wide,st.Standalone);break;case"LLLLL":de=Zt(nt.Months,ft.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=At(Me.Date,1);break;case"dd":de=At(Me.Date,2);break;case"c":case"cc":de=At(Me.Day,1);break;case"ccc":de=Zt(nt.Days,ft.Abbreviated,st.Standalone);break;case"cccc":de=Zt(nt.Days,ft.Wide,st.Standalone);break;case"ccccc":de=Zt(nt.Days,ft.Narrow,st.Standalone);break;case"cccccc":de=Zt(nt.Days,ft.Short,st.Standalone);break;case"E":case"EE":case"EEE":de=Zt(nt.Days,ft.Abbreviated);break;case"EEEE":de=Zt(nt.Days,ft.Wide);break;case"EEEEE":de=Zt(nt.Days,ft.Narrow);break;case"EEEEEE":de=Zt(nt.Days,ft.Short);break;case"a":case"aa":case"aaa":de=Zt(nt.DayPeriods,ft.Abbreviated);break;case"aaaa":de=Zt(nt.DayPeriods,ft.Wide);break;case"aaaaa":de=Zt(nt.DayPeriods,ft.Narrow);break;case"b":case"bb":case"bbb":de=Zt(nt.DayPeriods,ft.Abbreviated,st.Standalone,!0);break;case"bbbb":de=Zt(nt.DayPeriods,ft.Wide,st.Standalone,!0);break;case"bbbbb":de=Zt(nt.DayPeriods,ft.Narrow,st.Standalone,!0);break;case"B":case"BB":case"BBB":de=Zt(nt.DayPeriods,ft.Abbreviated,st.Format,!0);break;case"BBBB":de=Zt(nt.DayPeriods,ft.Wide,st.Format,!0);break;case"BBBBB":de=Zt(nt.DayPeriods,ft.Narrow,st.Format,!0);break;case"h":de=At(Me.Hours,1,-12);break;case"hh":de=At(Me.Hours,2,-12);break;case"H":de=At(Me.Hours,1);break;case"HH":de=At(Me.Hours,2);break;case"m":de=At(Me.Minutes,1);break;case"mm":de=At(Me.Minutes,2);break;case"s":de=At(Me.Seconds,1);break;case"ss":de=At(Me.Seconds,2);break;case"S":de=At(Me.FractionalSeconds,1);break;case"SS":de=At(Me.FractionalSeconds,2);break;case"SSS":de=At(Me.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":de=In(Ie.Short);break;case"ZZZZZ":de=In(Ie.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":de=In(Ie.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":de=In(Ie.Long);break;default:return null}return $t[U]=de,de}(Hr);Li+=xi?xi(rt,q,Yr):"''"===Hr?"'":Hr.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),Li}function L(U,de,q){const ve=new Date(0);return ve.setFullYear(U,de,q),ve.setHours(0,0,0),ve}function V(U,de){const q=function un(U){return(0,i.H5H)(U)[i.KH2.LocaleId]}(U);if(Gt[q]??={},Gt[q][de])return Gt[q][de];let ve="";switch(de){case"shortDate":ve=Be(U,_t.Short);break;case"mediumDate":ve=Be(U,_t.Medium);break;case"longDate":ve=Be(U,_t.Long);break;case"fullDate":ve=Be(U,_t.Full);break;case"shortTime":ve=Ut(U,_t.Short);break;case"mediumTime":ve=Ut(U,_t.Medium);break;case"longTime":ve=Ut(U,_t.Long);break;case"fullTime":ve=Ut(U,_t.Full);break;case"short":const rt=V(U,"shortTime"),bn=V(U,"shortDate");ve=Re(Ke(U,_t.Short),[rt,bn]);break;case"medium":const Rn=V(U,"mediumTime"),Cr=V(U,"mediumDate");ve=Re(Ke(U,_t.Medium),[Rn,Cr]);break;case"long":const Yr=V(U,"longTime"),Li=V(U,"longDate");ve=Re(Ke(U,_t.Long),[Yr,Li]);break;case"full":const Hr=V(U,"fullTime"),xi=V(U,"fullDate");ve=Re(Ke(U,_t.Full),[Hr,xi])}return ve&&(Gt[q][de]=ve),ve}function Re(U,de){return de&&(U=U.replace(/\{([^}]+)}/g,function(q,ve){return null!=de&&ve in de?de[ve]:q})),U}function bt(U,de,q="-",ve,rt){let bn="";(U<0||rt&&U<=0)&&(rt?U=1-U:(U=-U,bn=q));let Rn=String(U);for(;Rn.length0||Cr>-q)&&(Cr+=q),U===Me.Hours)0===Cr&&-12===q&&(Cr=12);else if(U===Me.FractionalSeconds)return function mt(U,de){return bt(U,3).substring(0,de)}(Cr,de);const Yr=lt(Rn,ot.MinusSign);return bt(Cr,de,Yr,ve,rt)}}function Zt(U,de,q=st.Format,ve=!1){return function(rt,bn){return function mn(U,de,q,ve,rt,bn){switch(q){case nt.Months:return function En(U,de,q){const ve=(0,i.H5H)(U),bn=en([ve[i.KH2.MonthsFormat],ve[i.KH2.MonthsStandalone]],de);return en(bn,q)}(de,rt,ve)[U.getMonth()];case nt.Days:return function $n(U,de,q){const ve=(0,i.H5H)(U),bn=en([ve[i.KH2.DaysFormat],ve[i.KH2.DaysStandalone]],de);return en(bn,q)}(de,rt,ve)[U.getDay()];case nt.DayPeriods:const Rn=U.getHours(),Cr=U.getMinutes();if(bn){const Li=function pn(U){const de=(0,i.H5H)(U);return tn(de),(de[i.KH2.ExtraData][2]||[]).map(ve=>"string"==typeof ve?an(ve):[an(ve[0]),an(ve[1])])}(de),Hr=function Wn(U,de,q){const ve=(0,i.H5H)(U);tn(ve);const bn=en([ve[i.KH2.ExtraData][0],ve[i.KH2.ExtraData][1]],de)||[];return en(bn,q)||[]}(de,rt,ve),xi=Li.findIndex(Qr=>{if(Array.isArray(Qr)){const[di,Fo]=Qr,Wo=Rn>=di.hours&&Cr>=di.minutes,hs=Rn0?Math.floor(rt/60):Math.ceil(rt/60);switch(U){case Ie.Short:return(rt>=0?"+":"")+bt(Rn,2,bn)+bt(Math.abs(rt%60),2,bn);case Ie.ShortGMT:return"GMT"+(rt>=0?"+":"")+bt(Rn,1,bn);case Ie.Long:return"GMT"+(rt>=0?"+":"")+bt(Rn,2,bn)+":"+bt(Math.abs(rt%60),2,bn);case Ie.Extended:return 0===ve?"Z":(rt>=0?"+":"")+bt(Rn,2,bn)+":"+bt(Math.abs(rt%60),2,bn);default:throw new Error(`Unknown zone width "${U}"`)}}}const Bn=0,Hn=4;function ti(U){const de=U.getDay(),q=0===de?-3:Hn-de;return L(U.getFullYear(),U.getMonth(),U.getDate()+q)}function Xr(U,de=!1){return function(q,ve){let rt;if(de){const bn=new Date(q.getFullYear(),q.getMonth(),1).getDay()-1,Rn=q.getDate();rt=1+Math.floor((Rn+bn)/7)}else{const bn=ti(q),Rn=function xr(U){const de=L(U,Bn,1).getDay();return L(U,0,1+(de<=Hn?Hn:Hn+7)-de)}(bn.getFullYear()),Cr=bn.getTime()-Rn.getTime();rt=1+Math.round(Cr/6048e5)}return bt(rt,U,lt(ve,ot.MinusSign))}}function vt(U,de=!1){return function(q,ve){return bt(ti(q).getFullYear(),U,lt(ve,ot.MinusSign),de)}}const $t={};function at(U,de){U=U.replace(/:/g,"");const q=Date.parse("Jan 01, 1970 00:00:00 "+U)/6e4;return isNaN(q)?de:q}function _n(U){return U instanceof Date&&!isNaN(U.valueOf())}let bo=(()=>{class U{static \u0275fac=function(ve){return new(ve||U)};static \u0275prov=i.jDH({token:U,factory:function(ve){let rt=null;return ve?rt=new ve:(bn=i.KVO(i.xe9),rt=new Co(bn)),rt;var bn},providedIn:"root"})}return U})();let Co=(()=>{class U extends bo{locale;constructor(q){super(),this.locale=q}getPluralCategory(q,ve){switch(Nt(ve||this.locale)(q)){case Ue.Zero:return"zero";case Ue.One:return"one";case Ue.Two:return"two";case Ue.Few:return"few";case Ue.Many:return"many";default:return"other"}}static \u0275fac=function(ve){return new(ve||U)(i.KVO(i.xe9))};static \u0275prov=i.jDH({token:U,factory:U.\u0275fac})}return U})();function eo(U,de){de=encodeURIComponent(de);for(const q of U.split(";")){const ve=q.indexOf("="),[rt,bn]=-1==ve?[q,""]:[q.slice(0,ve),q.slice(ve+1)];if(rt.trim()===de)return decodeURIComponent(bn)}return null}const oo=/\s+/,Bi=[];let Mo=(()=>{class U{_ngEl;_renderer;initialClasses=Bi;rawClass;stateMap=new Map;constructor(q,ve){this._ngEl=q,this._renderer=ve}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 ve of this.initialClasses)this._updateState(ve,!0);const q=this.rawClass;if(Array.isArray(q)||q instanceof Set)for(const ve of q)this._updateState(ve,!0);else if(null!=q)for(const ve of Object.keys(q))this._updateState(ve,!!q[ve]);this._applyStateDiff()}_updateState(q,ve){const rt=this.stateMap.get(q);void 0!==rt?(rt.enabled!==ve&&(rt.changed=!0,rt.enabled=ve),rt.touched=!0):this.stateMap.set(q,{enabled:ve,changed:!0,touched:!0})}_applyStateDiff(){for(const q of this.stateMap){const ve=q[0],rt=q[1];rt.changed?(this._toggleClass(ve,rt.enabled),rt.changed=!1):rt.touched||(rt.enabled&&this._toggleClass(ve,!1),this.stateMap.delete(ve)),rt.touched=!1}}_toggleClass(q,ve){(q=q.trim()).length>0&&q.split(oo).forEach(rt=>{ve?this._renderer.addClass(this._ngEl.nativeElement,rt):this._renderer.removeClass(this._ngEl.nativeElement,rt)})}static \u0275fac=function(ve){return new(ve||U)(i.rXU(i.aKT),i.rXU(i.sFG))};static \u0275dir=i.FsC({type:U,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return U})();class xt{$implicit;ngForOf;index;count;constructor(de,q,ve,rt){this.$implicit=de,this.ngForOf=q,this.index=ve,this.count=rt}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let me=(()=>{class U{_viewContainer;_template;_differs;set ngForOf(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,ve,rt){this._viewContainer=q,this._template=ve,this._differs=rt}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 ve=this._viewContainer;q.forEachOperation((rt,bn,Rn)=>{if(null==rt.previousIndex)ve.createEmbeddedView(this._template,new xt(rt.item,this._ngForOf,-1,-1),null===Rn?void 0:Rn);else if(null==Rn)ve.remove(null===bn?void 0:bn);else if(null!==bn){const Cr=ve.get(bn);ve.move(Cr,Rn),tt(Cr,rt)}});for(let rt=0,bn=ve.length;rt{tt(ve.get(rt.currentIndex),rt)})}static ngTemplateContextGuard(q,ve){return!0}static \u0275fac=function(ve){return new(ve||U)(i.rXU(i.c1b),i.rXU(i.C4Q),i.rXU(i._q3))};static \u0275dir=i.FsC({type:U,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return U})();function tt(U,de){U.context.$implicit=de.item}let ht=(()=>{class U{_viewContainer;_context=new Vt;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(q,ve){this._viewContainer=q,this._thenTemplateRef=ve}set ngIf(q){this._context.$implicit=this._context.ngIf=q,this._updateView()}set ngIfThen(q){kt("ngIfThen",q),this._thenTemplateRef=q,this._thenViewRef=null,this._updateView()}set ngIfElse(q){kt("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,ve){return!0}static \u0275fac=function(ve){return new(ve||U)(i.rXU(i.c1b),i.rXU(i.C4Q))};static \u0275dir=i.FsC({type:U,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return U})();class Vt{$implicit=null;ngIf=null}function kt(U,de){if(de&&!de.createEmbeddedView)throw new Error(`${U} must be a TemplateRef, but received '${(0,i.Tbb)(de)}'.`)}let pr=(()=>{class U{_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor(q,ve,rt){this._ngEl=q,this._differs=ve,this._renderer=rt}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,ve){const[rt,bn]=q.split("."),Rn=-1===rt.indexOf("-")?void 0:i.czy.DashCase;null!=ve?this._renderer.setStyle(this._ngEl.nativeElement,rt,bn?`${ve}${bn}`:ve,Rn):this._renderer.removeStyle(this._ngEl.nativeElement,rt,Rn)}_applyChanges(q){q.forEachRemovedItem(ve=>this._setStyle(ve.key,null)),q.forEachAddedItem(ve=>this._setStyle(ve.key,ve.currentValue)),q.forEachChangedItem(ve=>this._setStyle(ve.key,ve.currentValue))}static \u0275fac=function(ve){return new(ve||U)(i.rXU(i.aKT),i.rXU(i.MKu),i.rXU(i.sFG))};static \u0275dir=i.FsC({type:U,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return U})(),bi=(()=>{class U{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;constructor(q){this._viewContainerRef=q}ngOnChanges(q){if(this._shouldRecreateView(q)){const ve=this._viewContainerRef;if(this._viewRef&&ve.remove(ve.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const rt=this._createContextForwardProxy();this._viewRef=ve.createEmbeddedView(this.ngTemplateOutlet,rt,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(q){return!!q.ngTemplateOutlet||!!q.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(q,ve,rt)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,ve,rt),get:(q,ve,rt)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,ve,rt)}})}static \u0275fac=function(ve){return new(ve||U)(i.rXU(i.c1b))};static \u0275dir=i.FsC({type:U,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[i.OA$]})}return U})();function mr(U,de){return new i.wOt(2100,!1)}class ai{createSubscription(de,q){return(0,i.O8t)(()=>de.subscribe({next:q,error:ve=>{throw ve}}))}dispose(de){(0,i.O8t)(()=>de.unsubscribe())}}class _o{createSubscription(de,q){return de.then(q,ve=>{throw ve})}dispose(de){}}const $r=new _o,Gi=new ai;let ls=(()=>{class U{_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,ve=>this._updateLatestValue(q,ve))}_selectStrategy(q){if((0,i.jNT)(q))return $r;if((0,i.zjR)(q))return Gi;throw mr()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(q,ve){q===this._obj&&(this._latestValue=ve,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static \u0275fac=function(ve){return new(ve||U)(i.rXU(i.gRc,16))};static \u0275pipe=i.EJ8({name:"async",type:U,pure:!1})}return U})();const 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 U{transform(q){if(null==q)return null;if("string"!=typeof q)throw mr();return q.replace(ia,ve=>ve[0].toUpperCase()+ve.slice(1).toLowerCase())}static \u0275fac=function(ve){return new(ve||U)};static \u0275pipe=i.EJ8({name:"titlecase",type:U,pure:!0})}return U})();const wo=new i.nKC(""),Ls=new i.nKC("");let Ps=(()=>{class U{locale;defaultTimezone;defaultOptions;constructor(q,ve,rt){this.locale=q,this.defaultTimezone=ve,this.defaultOptions=rt}transform(q,ve,rt,bn){if(null==q||""===q||q!=q)return null;try{return W(q,ve??this.defaultOptions?.dateFormat??"mediumDate",bn||this.locale,rt??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(Rn){throw mr()}}static \u0275fac=function(ve){return new(ve||U)(i.rXU(i.xe9,16),i.rXU(wo,24),i.rXU(Ls,24))};static \u0275pipe=i.EJ8({name:"date",type:U,pure:!0})}return U})();const Xs=/#/g;let Wi=(()=>{class U{_localization;constructor(q){this._localization=q}transform(q,ve,rt){if(null==q)return"";if("object"!=typeof ve||null===ve)throw mr();return ve[function Xo(U,de,q,ve){let rt=`=${U}`;if(de.indexOf(rt)>-1||(rt=q.getPluralCategory(U,ve),de.indexOf(rt)>-1))return rt;if(de.indexOf("other")>-1)return"other";throw new Error(`No plural message found for value "${U}"`)}(q,Object.keys(ve),this._localization,rt)].replace(Xs,q.toString())}static \u0275fac=function(ve){return new(ve||U)(i.rXU(bo,16))};static \u0275pipe=i.EJ8({name:"i18nPlural",type:U,pure:!0})}return U})(),tr=(()=>{class U{static \u0275fac=function(ve){return new(ve||U)};static \u0275mod=i.$C({type:U});static \u0275inj=i.G2t({})}return U})();const Eo="browser",is="server";function Is(U){return U===Eo}function Bs(U){return U===is}let Yo=(()=>{class U{static \u0275prov=(0,i.jDH)({token:U,providedIn:"root",factory:()=>Is((0,i.WQX)(i.Agw))?new Ti((0,i.WQX)(S),window):new yl})}return U})();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(U,de){const q=U.getElementById(de)||U.getElementsByName(de)[0];if(q)return q;if("function"==typeof U.createTreeWalker&&U.body&&"function"==typeof U.body.attachShadow){const ve=U.createTreeWalker(U.body,NodeFilter.SHOW_ELEMENT);let rt=ve.currentNode;for(;rt;){const bn=rt.shadowRoot;if(bn){const Rn=bn.getElementById(de)||bn.querySelector(`[name="${de}"]`);if(Rn)return Rn}rt=ve.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(),ve=q.left+this.window.pageXOffset,rt=q.top+this.window.pageYOffset,bn=this.offset();this.window.scrollTo(ve-bn[0],rt-bn[1])}}class yl{setOffset(de){}getScrollPosition(){return[0,0]}scrollToPosition(de){}scrollToAnchor(de){}setHistoryScrollRestoration(de){}}class Qo{}},7691:(o,s,r)=>{"use strict";r.d(s,{$R:()=>Fe,Nl:()=>xe,Qq:()=>Ut,b$:()=>Rt,cS:()=>$n,yz:()=>En});var i=r(3014),a=r(3107),c=r(3016),y=r(1698),w=r(1787),C=r(1459),A=r(1483),S=r(7947),T=r(4447),k=r(2867),R=r(4460);class G{}class Z{}class te{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(ct){ct?"string"==typeof ct?this.lazyInit=()=>{this.headers=new Map,ct.split("\n").forEach(xt=>{const me=xt.indexOf(":");if(me>0){const tt=xt.slice(0,me),Oe=xt.slice(me+1).trim();this.addHeaderEntry(tt,Oe)}})}:typeof Headers<"u"&&ct instanceof Headers?(this.headers=new Map,ct.forEach((xt,me)=>{this.addHeaderEntry(me,xt)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(ct).forEach(([xt,me])=>{this.setHeaderEntries(xt,me)})}:this.headers=new Map}has(ct){return this.init(),this.headers.has(ct.toLowerCase())}get(ct){this.init();const xt=this.headers.get(ct.toLowerCase());return xt&&xt.length>0?xt[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(ct){return this.init(),this.headers.get(ct.toLowerCase())||null}append(ct,xt){return this.clone({name:ct,value:xt,op:"a"})}set(ct,xt){return this.clone({name:ct,value:xt,op:"s"})}delete(ct,xt){return this.clone({name:ct,value:xt,op:"d"})}maybeSetNormalizedName(ct,xt){this.normalizedNames.has(xt)||this.normalizedNames.set(xt,ct)}init(){this.lazyInit&&(this.lazyInit instanceof te?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(xt=>{this.headers.set(xt,ct.headers.get(xt)),this.normalizedNames.set(xt,ct.normalizedNames.get(xt))})}clone(ct){const xt=new te;return xt.lazyInit=this.lazyInit&&this.lazyInit instanceof te?this.lazyInit:this,xt.lazyUpdate=(this.lazyUpdate||[]).concat([ct]),xt}applyUpdate(ct){const xt=ct.name.toLowerCase();switch(ct.op){case"a":case"s":let me=ct.value;if("string"==typeof me&&(me=[me]),0===me.length)return;this.maybeSetNormalizedName(ct.name,xt);const tt=("a"===ct.op?this.headers.get(xt):void 0)||[];tt.push(...me),this.headers.set(xt,tt);break;case"d":const Oe=ct.value;if(Oe){let ht=this.headers.get(xt);if(!ht)return;ht=ht.filter(Vt=>-1===Oe.indexOf(Vt)),0===ht.length?(this.headers.delete(xt),this.normalizedNames.delete(xt)):this.headers.set(xt,ht)}else this.headers.delete(xt),this.normalizedNames.delete(xt)}}addHeaderEntry(ct,xt){const me=ct.toLowerCase();this.maybeSetNormalizedName(ct,me),this.headers.has(me)?this.headers.get(me).push(xt):this.headers.set(me,[xt])}setHeaderEntries(ct,xt){const me=(Array.isArray(xt)?xt:[xt]).map(Oe=>Oe.toString()),tt=ct.toLowerCase();this.headers.set(tt,me),this.maybeSetNormalizedName(ct,tt)}forEach(ct){this.init(),Array.from(this.normalizedNames.keys()).forEach(xt=>ct(this.normalizedNames.get(xt),this.headers.get(xt)))}}class _e{encodeKey(ct){return Ne(ct)}encodeValue(ct){return Ne(ct)}decodeKey(ct){return decodeURIComponent(ct)}decodeValue(ct){return decodeURIComponent(ct)}}const Te=/%(\d[a-f0-9])/gi,Ce={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Ne(et){return encodeURIComponent(et).replace(Te,(ct,xt)=>Ce[xt]??ct)}function Se(et){return`${et}`}class xe{map;encoder;updates=null;cloneFrom=null;constructor(ct={}){if(this.encoder=ct.encoder||new _e,ct.fromString){if(ct.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function pe(et,ct){const xt=new Map;return et.length>0&&et.replace(/^\?/,"").split("&").forEach(tt=>{const Oe=tt.indexOf("="),[ht,Vt]=-1==Oe?[ct.decodeKey(tt),""]:[ct.decodeKey(tt.slice(0,Oe)),ct.decodeValue(tt.slice(Oe+1))],kt=xt.get(ht)||[];kt.push(Vt),xt.set(ht,kt)}),xt}(ct.fromString,this.encoder)}else ct.fromObject?(this.map=new Map,Object.keys(ct.fromObject).forEach(xt=>{const me=ct.fromObject[xt],tt=Array.isArray(me)?me.map(Se):[Se(me)];this.map.set(xt,tt)})):this.map=null}has(ct){return this.init(),this.map.has(ct)}get(ct){this.init();const xt=this.map.get(ct);return xt?xt[0]:null}getAll(ct){return this.init(),this.map.get(ct)||null}keys(){return this.init(),Array.from(this.map.keys())}append(ct,xt){return this.clone({param:ct,value:xt,op:"a"})}appendAll(ct){const xt=[];return Object.keys(ct).forEach(me=>{const tt=ct[me];Array.isArray(tt)?tt.forEach(Oe=>{xt.push({param:me,value:Oe,op:"a"})}):xt.push({param:me,value:tt,op:"a"})}),this.clone(xt)}set(ct,xt){return this.clone({param:ct,value:xt,op:"s"})}delete(ct,xt){return this.clone({param:ct,value:xt,op:"d"})}toString(){return this.init(),this.keys().map(ct=>{const xt=this.encoder.encodeKey(ct);return this.map.get(ct).map(me=>xt+"="+this.encoder.encodeValue(me)).join("&")}).filter(ct=>""!==ct).join("&")}clone(ct){const xt=new xe({encoder:this.encoder});return xt.cloneFrom=this.cloneFrom||this,xt.updates=(this.updates||[]).concat(ct),xt}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 xt=("a"===ct.op?this.map.get(ct.param):void 0)||[];xt.push(Se(ct.value)),this.map.set(ct.param,xt);break;case"d":if(void 0===ct.value){this.map.delete(ct.param);break}{let me=this.map.get(ct.param)||[];const tt=me.indexOf(Se(ct.value));-1!==tt&&me.splice(tt,1),me.length>0?this.map.set(ct.param,me):this.map.delete(ct.param)}}}),this.cloneFrom=this.updates=null)}}class le{map=new Map;set(ct,xt){return this.map.set(ct,xt),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 Ue(et){return typeof ArrayBuffer<"u"&&et instanceof ArrayBuffer}function st(et){return typeof Blob<"u"&&et instanceof Blob}function ft(et){return typeof FormData<"u"&&et instanceof FormData}class ot{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;responseType="json";method;params;urlWithParams;transferCache;constructor(ct,xt,me,tt){let Oe;if(this.url=xt,this.method=ct.toUpperCase(),function ke(et){switch(et){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||tt?(this.body=void 0!==me?me:null,Oe=tt):Oe=me,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 te,this.context??=new le,this.params){const ht=this.params.toString();if(0===ht.length)this.urlWithParams=xt;else{const Vt=xt.indexOf("?");this.urlWithParams=xt+(-1===Vt?"?":VtOn.set(Un,ct.setHeaders[Un]),hn)),ct.setParams&&(Cn=Object.keys(ct.setParams).reduce((On,Un)=>On.set(Un,ct.setParams[Un]),Cn)),new ot(xt,me,ht,{params:Cn,headers:hn,context:An,reportProgress:kt,responseType:tt,withCredentials:Vt,transferCache:Oe})}}var Yt=function(et){return et[et.Sent=0]="Sent",et[et.UploadProgress=1]="UploadProgress",et[et.ResponseHeader=2]="ResponseHeader",et[et.DownloadProgress=3]="DownloadProgress",et[et.Response=4]="Response",et[et.User=5]="User",et}(Yt||{});class un{headers;status;statusText;url;ok;type;constructor(ct,xt=200,me="OK"){this.headers=ct.headers||new te,this.status=void 0!==ct.status?ct.status:xt,this.statusText=ct.statusText||me,this.url=ct.url||null,this.ok=this.status>=200&&this.status<300}}class wn extends un{constructor(ct={}){super(ct)}type=Yt.ResponseHeader;clone(ct={}){return new wn({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 un{body;constructor(ct={}){super(ct),this.body=void 0!==ct.body?ct.body:null}type=Yt.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 En extends un{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 Be(et,ct){return{body:ct,headers:et.headers,context:et.context,observe:et.observe,params:et.params,reportProgress:et.reportProgress,responseType:et.responseType,withCredentials:et.withCredentials,transferCache:et.transferCache}}let Ut=(()=>{class et{handler;constructor(xt){this.handler=xt}request(xt,me,tt={}){let Oe;if(xt instanceof ot)Oe=xt;else{let kt,hn;kt=tt.headers instanceof te?tt.headers:new te(tt.headers),tt.params&&(hn=tt.params instanceof xe?tt.params:new xe({fromObject:tt.params})),Oe=new ot(xt,me,void 0!==tt.body?tt.body:null,{headers:kt,context:tt.context,params:hn,reportProgress:tt.reportProgress,responseType:tt.responseType||"json",withCredentials:tt.withCredentials,transferCache:tt.transferCache})}const ht=(0,c.of)(Oe).pipe((0,C.H)(kt=>this.handler.handle(kt)));if(xt instanceof ot||"events"===tt.observe)return ht;const Vt=ht.pipe((0,A.p)(kt=>kt instanceof $n));switch(tt.observe||"body"){case"body":switch(Oe.responseType){case"arraybuffer":return Vt.pipe((0,S.T)(kt=>{if(null!==kt.body&&!(kt.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return kt.body}));case"blob":return Vt.pipe((0,S.T)(kt=>{if(null!==kt.body&&!(kt.body instanceof Blob))throw new Error("Response is not a Blob.");return kt.body}));case"text":return Vt.pipe((0,S.T)(kt=>{if(null!==kt.body&&"string"!=typeof kt.body)throw new Error("Response is not a string.");return kt.body}));default:return Vt.pipe((0,S.T)(kt=>kt.body))}case"response":return Vt;default:throw new Error(`Unreachable: unhandled observe type ${tt.observe}}`)}}delete(xt,me={}){return this.request("DELETE",xt,me)}get(xt,me={}){return this.request("GET",xt,me)}head(xt,me={}){return this.request("HEAD",xt,me)}jsonp(xt,me){return this.request("JSONP",xt,{params:(new xe).append(me,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(xt,me={}){return this.request("OPTIONS",xt,me)}patch(xt,me,tt={}){return this.request("PATCH",xt,Be(tt,me))}post(xt,me,tt={}){return this.request("POST",xt,Be(tt,me))}put(xt,me,tt={}){return this.request("PUT",xt,Be(tt,me))}static \u0275fac=function(me){return new(me||et)(a.KVO(G))};static \u0275prov=a.jDH({token:et,factory:et.\u0275fac})}return et})();const Ke=/^\)\]\}',?\n/;function Xe(et){if(et.url)return et.url;const ct="X-Request-URL".toLocaleLowerCase();return et.headers.get(ct)}let Ge=(()=>{class et{fetchImpl=(0,a.WQX)(pt,{optional:!0})?.fetch??((...xt)=>globalThis.fetch(...xt));ngZone=(0,a.WQX)(a.SKi);handle(xt){return new y.c(me=>{const tt=new AbortController;return this.doRequest(xt,tt.signal,me).then(se,Oe=>me.error(new En({error:Oe}))),()=>tt.abort()})}doRequest(xt,me,tt){var Oe=this;return(0,i.A)(function*(){const ht=Oe.createRequestInit(xt);let Vt;try{const Jn=Oe.ngZone.runOutsideAngular(()=>Oe.fetchImpl(xt.urlWithParams,{signal:me,...ht}));(function qe(et){et.then(se,se)})(Jn),tt.next({type:Yt.Sent}),Vt=yield Jn}catch(Jn){return void tt.error(new En({error:Jn,status:Jn.status??0,statusText:Jn.statusText,url:xt.urlWithParams,headers:Jn.headers}))}const kt=new te(Vt.headers),hn=Vt.statusText,Cn=Xe(Vt)??xt.urlWithParams;let An=Vt.status,On=null;if(xt.reportProgress&&tt.next(new wn({headers:kt,status:An,statusText:hn,url:Cn})),Vt.body){const Jn=Vt.headers.get("content-length"),sr=[],Ir=Vt.body.getReader();let bi,si,pr=0;const mr=typeof Zone<"u"&&Zone.current;yield Oe.ngZone.runOutsideAngular((0,i.A)(function*(){for(;;){const{done:_o,value:$r}=yield Ir.read();if(_o)break;if(sr.push($r),pr+=$r.length,xt.reportProgress){si="text"===xt.responseType?(si??"")+(bi??=new TextDecoder).decode($r,{stream:!0}):void 0;const Gi=()=>tt.next({type:Yt.DownloadProgress,total:Jn?+Jn:void 0,loaded:pr,partialText:si});mr?mr.run(Gi):Gi()}}}));const ai=Oe.concatChunks(sr,pr);try{const _o=Vt.headers.get("Content-Type")??"";On=Oe.parseBody(xt,ai,_o)}catch(_o){return void tt.error(new En({error:_o,headers:new te(Vt.headers),status:Vt.status,statusText:Vt.statusText,url:Xe(Vt)??xt.urlWithParams}))}}0===An&&(An=On?200:0),An>=200&&An<300?(tt.next(new $n({body:On,headers:kt,status:An,statusText:hn,url:Cn})),tt.complete()):tt.error(new En({error:On,headers:kt,status:An,statusText:hn,url:Cn}))})()}parseBody(xt,me,tt){switch(xt.responseType){case"json":const Oe=(new TextDecoder).decode(me).replace(Ke,"");return""===Oe?null:JSON.parse(Oe);case"text":return(new TextDecoder).decode(me);case"blob":return new Blob([me],{type:tt});case"arraybuffer":return me.buffer}}createRequestInit(xt){const me={},tt=xt.withCredentials?"include":void 0;if(xt.headers.forEach((Oe,ht)=>me[Oe]=ht.join(",")),xt.headers.has("Accept")||(me.Accept="application/json, text/plain, */*"),!xt.headers.has("Content-Type")){const Oe=xt.detectContentTypeHeader();null!==Oe&&(me["Content-Type"]=Oe)}return{body:xt.serializeBody(),method:xt.method,headers:me,credentials:tt}}concatChunks(xt,me){const tt=new Uint8Array(me);let Oe=0;for(const ht of xt)tt.set(ht,Oe),Oe+=ht.length;return tt}static \u0275fac=function(me){return new(me||et)};static \u0275prov=a.jDH({token:et,factory:et.\u0275fac})}return et})();class pt{}function se(){}function Nt(et,ct){return ct(et)}const Pt=new a.nKC(""),en=new a.nKC(""),an=new a.nKC("",{providedIn:"root",factory:()=>!0});let Mt=(()=>{class et extends G{backend;injector;chain=null;pendingTasks=(0,a.WQX)(a.TgB);contributeToStability=(0,a.WQX)(an);constructor(xt,me){super(),this.backend=xt,this.injector=me}handle(xt){if(null===this.chain){const me=Array.from(new Set([...this.injector.get(Pt),...this.injector.get(en,[])]));this.chain=me.reduceRight((tt,Oe)=>function pn(et,ct,xt){return(me,tt)=>(0,a.N4e)(xt,()=>ct(me,Oe=>et(Oe,tt)))}(tt,Oe,this.injector),Nt)}if(this.contributeToStability){const me=this.pendingTasks.add();return this.chain(xt,tt=>this.backend.handle(tt)).pipe((0,T.j)(()=>this.pendingTasks.remove(me)))}return this.chain(xt,me=>this.backend.handle(me))}static \u0275fac=function(me){return new(me||et)(a.KVO(Z),a.KVO(a.uvJ))};static \u0275prov=a.jDH({token:et,factory:et.\u0275fac})}return et})();const At=/^\)\]\}',?\n/;let Zt=(()=>{class et{xhrFactory;constructor(xt){this.xhrFactory=xt}handle(xt){if("JSONP"===xt.method)throw new a.wOt(-2800,!1);const me=this.xhrFactory;return(me.\u0275loadImpl?(0,w.H)(me.\u0275loadImpl()):(0,c.of)(null)).pipe((0,k.n)(()=>new y.c(Oe=>{const ht=me.build();if(ht.open(xt.method,xt.urlWithParams),xt.withCredentials&&(ht.withCredentials=!0),xt.headers.forEach((sr,Ir)=>ht.setRequestHeader(sr,Ir.join(","))),xt.headers.has("Accept")||ht.setRequestHeader("Accept","application/json, text/plain, */*"),!xt.headers.has("Content-Type")){const sr=xt.detectContentTypeHeader();null!==sr&&ht.setRequestHeader("Content-Type",sr)}if(xt.responseType){const sr=xt.responseType.toLowerCase();ht.responseType="json"!==sr?sr:"text"}const Vt=xt.serializeBody();let kt=null;const hn=()=>{if(null!==kt)return kt;const sr=ht.statusText||"OK",Ir=new te(ht.getAllResponseHeaders()),pr=function Ln(et){return"responseURL"in et&&et.responseURL?et.responseURL:/^X-Request-URL:/m.test(et.getAllResponseHeaders())?et.getResponseHeader("X-Request-URL"):null}(ht)||xt.url;return kt=new wn({headers:Ir,status:ht.status,statusText:sr,url:pr}),kt},Cn=()=>{let{headers:sr,status:Ir,statusText:pr,url:bi}=hn(),si=null;204!==Ir&&(si=typeof ht.response>"u"?ht.responseText:ht.response),0===Ir&&(Ir=si?200:0);let mr=Ir>=200&&Ir<300;if("json"===xt.responseType&&"string"==typeof si){const ai=si;si=si.replace(At,"");try{si=""!==si?JSON.parse(si):null}catch(_o){si=ai,mr&&(mr=!1,si={error:_o,text:si})}}mr?(Oe.next(new $n({body:si,headers:sr,status:Ir,statusText:pr,url:bi||void 0})),Oe.complete()):Oe.error(new En({error:si,headers:sr,status:Ir,statusText:pr,url:bi||void 0}))},An=sr=>{const{url:Ir}=hn(),pr=new En({error:sr,status:ht.status||0,statusText:ht.statusText||"Unknown Error",url:Ir||void 0});Oe.error(pr)};let On=!1;const Un=sr=>{On||(Oe.next(hn()),On=!0);let Ir={type:Yt.DownloadProgress,loaded:sr.loaded};sr.lengthComputable&&(Ir.total=sr.total),"text"===xt.responseType&&ht.responseText&&(Ir.partialText=ht.responseText),Oe.next(Ir)},Jn=sr=>{let Ir={type:Yt.UploadProgress,loaded:sr.loaded};sr.lengthComputable&&(Ir.total=sr.total),Oe.next(Ir)};return ht.addEventListener("load",Cn),ht.addEventListener("error",An),ht.addEventListener("timeout",An),ht.addEventListener("abort",An),xt.reportProgress&&(ht.addEventListener("progress",Un),null!==Vt&&ht.upload&&ht.upload.addEventListener("progress",Jn)),ht.send(Vt),Oe.next({type:Yt.Sent}),()=>{ht.removeEventListener("error",An),ht.removeEventListener("abort",An),ht.removeEventListener("load",Cn),ht.removeEventListener("timeout",An),xt.reportProgress&&(ht.removeEventListener("progress",Un),null!==Vt&&ht.upload&&ht.upload.removeEventListener("progress",Jn)),ht.readyState!==ht.DONE&&ht.abort()}})))}static \u0275fac=function(me){return new(me||et)(a.KVO(R.N0))};static \u0275prov=a.jDH({token:et,factory:et.\u0275fac})}return et})();const mn=new a.nKC(""),Bn=new a.nKC("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),xr=new a.nKC("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class ti{}let Xr=(()=>{class et{doc;platform;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(xt,me,tt){this.doc=xt,this.platform=me,this.cookieName=tt}getToken(){if("server"===this.platform)return null;const xt=this.doc.cookie||"";return xt!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,R._b)(xt,this.cookieName),this.lastCookieString=xt),this.lastToken}static \u0275fac=function(me){return new(me||et)(a.KVO(R.qQ),a.KVO(a.Agw),a.KVO(Bn))};static \u0275prov=a.jDH({token:et,factory:et.\u0275fac})}return et})();function vt(et,ct){const xt=et.url.toLowerCase();if(!(0,a.WQX)(mn)||"GET"===et.method||"HEAD"===et.method||xt.startsWith("http://")||xt.startsWith("https://"))return ct(et);const me=(0,a.WQX)(ti).getToken(),tt=(0,a.WQX)(xr);return null!=me&&!et.headers.has(tt)&&(et=et.clone({headers:et.headers.set(tt,me)})),ct(et)}var Ee=function(et){return et[et.Interceptors=0]="Interceptors",et[et.LegacyInterceptors=1]="LegacyInterceptors",et[et.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",et[et.NoXsrfProtection=3]="NoXsrfProtection",et[et.JsonpSupport=4]="JsonpSupport",et[et.RequestsMadeViaParent=5]="RequestsMadeViaParent",et[et.Fetch=6]="Fetch",et}(Ee||{});function Fe(...et){const ct=[Ut,Zt,Mt,{provide:G,useExisting:Mt},{provide:Z,useFactory:()=>(0,a.WQX)(Ge,{optional:!0})??(0,a.WQX)(Zt)},{provide:Pt,useValue:vt,multi:!0},{provide:mn,useValue:!0},{provide:ti,useClass:Xr}];for(const xt of et)ct.push(...xt.\u0275providers);return(0,a.EmA)(ct)}function Rt(et){return function at(et,ct){return{\u0275kind:et,\u0275providers:ct}}(Ee.Interceptors,et.map(ct=>({provide:Pt,useValue:ct,multi:!0})))}},3107:(o,s,r)=>{"use strict";function a(e,t){return Object.is(e,t)}r.d(s,{bc$:()=>ka,iLQ:()=>sg,sZ2:()=>Ri,hnV:()=>c0,wjH:()=>Pd,o8S:()=>Pc,BIS:()=>Ga,gRc:()=>h2,Ql9:()=>MI,Ocv:()=>PI,Z63:()=>cr,aKT:()=>Ac,uvJ:()=>us,zcH:()=>Sc,bkB:()=>Pl,ES_:()=>Ed,$GK:()=>Sr,nKC:()=>ct,zZn:()=>Ts,_q3:()=>ow,MKu:()=>sw,xe9:()=>J0,Co$:()=>z1,Vns:()=>nf,SKi:()=>Vo,Xx1:()=>sa,Agw:()=>Ma,PLl:()=>Ws,rOR:()=>Td,sFG:()=>gS,_9s:()=>Nb,czy:()=>qf,WPN:()=>od,kdw:()=>Qo,C4Q:()=>zm,NYb:()=>iT,giA:()=>EE,RxE:()=>t2,c1b:()=>ov,gXe:()=>fc,mal:()=>qu,Tzd:()=>Og,L39:()=>UO,EWP:()=>uw,sbv:()=>WS,a0P:()=>uR,Ol2:()=>Zb,w6W:()=>JS,QZP:()=>hw,Rfq:()=>$t,oKB:()=>Oo,WQX:()=>tr,hFB:()=>Yc,naY:()=>zI,Hps:()=>Kb,QuC:()=>ho,EmA:()=>lo,Udg:()=>$O,HJs:()=>dR,N4e:()=>ja,vPA:()=>dp,O8t:()=>Mp,H3F:()=>pE,H8p:()=>qo,KH2:()=>Sp,TgB:()=>il,wOt:()=>Xt,WHO:()=>bE,e01:()=>wE,lNU:()=>Sn,h9k:()=>u_,$MX:()=>Kf,ZF7:()=>Vd,Kcf:()=>My,e5t:()=>Ry,UyX:()=>Iy,cWb:()=>ky,osQ:()=>Oy,H5H:()=>M0,Zy3:()=>Mt,mq5:()=>fx,JZv:()=>Zt,TL3:()=>gO,LfX:()=>Xo,plB:()=>Yd,jNT:()=>l0,zjR:()=>xE,ngT:()=>pa,hVU:()=>rT,TL$:()=>Vi,Tbb:()=>xr,rcV:()=>qc,nM4:()=>eE,Vt3:()=>Jb,GFd:()=>oE,OA$:()=>yc,Jv_:()=>xC,R7$:()=>_b,BMQ:()=>f0,HbH:()=>XE,ZvI:()=>tx,AVh:()=>b0,BUC:()=>nx,vxM:()=>sx,wni:()=>Gx,C6U:()=>Zx,VBU:()=>G1,FsC:()=>Y1,jDH:()=>oi,G2t:()=>so,$C:()=>qb,EJ8:()=>Q1,rXU:()=>Xd,nrm:()=>D0,eu8:()=>S0,bVm:()=>Ev,qex:()=>wv,k0s:()=>bv,j41:()=>yv,RV6:()=>hx,xGo:()=>vf,Mr5:()=>A0,KVO:()=>ko,kS0:()=>Vu,QTQ:()=>Bm,bIt:()=>O0,lsd:()=>Qx,joV:()=>zr,qSk:()=>Pr,XpG:()=>Px,nI1:()=>PC,bMT:()=>FC,i5U:()=>BC,SdG:()=>Bx,NAR:()=>Fx,Y8G:()=>_0,FS9:()=>L0,lJ4:()=>DC,eq3:()=>SC,l_i:()=>AC,sMw:()=>TC,ziG:()=>MC,lV:()=>kC,NyB:()=>qx,mGM:()=>Yx,sdS:()=>Jx,Dyx:()=>cx,Z7z:()=>lx,Vm6:()=>ax,Njj:()=>lu,eBV:()=>Bu,npT:()=>Kh,f$h:()=>Gh,B4B:()=>vm,n$t:()=>Yf,Aen:()=>tu,xc7:()=>y0,Kam:()=>R0,zvX:()=>T0,DNE:()=>n0,C5r:()=>UC,EFF:()=>cC,JRh:()=>B0,SpI:()=>Av,DH7:()=>yC,mxI:()=>$0,R50:()=>U0,GBs:()=>Xx}),r(3014);let c=null,y=!1,w=1;const C=Symbol("SIGNAL");function A(e){const t=c;return c=e,t}const R={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function G(e){if(y)throw new Error("");if(null===c)return;c.consumerOnSignalRead(e);const t=c.nextProducerIndex++;Ue(c),te.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Se(e){Ue(e);for(let t=0;t0}function Ue(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function st(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function ft(e){return void 0!==e.producerNode}function _t(e){const t=Object.create(wn);t.computation=e;const n=()=>{if(te(t),G(t),t.value===un)throw t.error;return t.value};return n[C]=t,n}const ot=Symbol("UNSET"),Yt=Symbol("COMPUTING"),un=Symbol("ERRORED"),wn={...R,value:ot,dirty:!0,error:null,equal:a,producerMustRecompute:e=>e.value===ot||e.value===Yt,producerRecomputeValue(e){if(e.value===Yt)throw new Error("Detected cycle in computations.");const t=e.value;e.value=Yt;const n=Ce(e);let l;try{l=e.computation()}catch(p){l=un,e.error=p}finally{Ne(e,n)}t!==ot&&t!==un&&l!==un&&e.equal(t,l)?e.value=t:(e.value=l,e.version++)}};let En=function $n(){throw new Error};function Ze(){En()}let ze=null;function lt(e,t){_e()||Ze(),e.equal(e.value,t)||(e.value=t,function se(e){e.version++,function Z(){w++}(),be(e),ze?.()}(e))}const pt={...R,equal:a,value:void 0};const Nt=()=>{},tn={...R,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{null!==e.schedule&&e.schedule(e.ref)},hasRun:!1,cleanupFn:Nt};var Wn=r(1217),Pt=r(8447),en=r(5710),an=r(7947);const Sn="https://g.co/ng/security#xss";class Xt extends Error{code;constructor(t,n){super(Mt(t,n)),this.code=t}}function Mt(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}const Gt=Symbol("InputSignalNode#UNSET"),Ot={...pt,transformFn:void 0,applyValueToInputSignal(e,t){lt(e,t)}};function nt(e,t){const n=Object.create(Ot);function l(){if(G(n),n.value===Gt)throw new Xt(-950,!1);return n.value}return n.value=e,n.transformFn=t?.transform,l[C]=n,l}function W(e){return{toString:e}.toString()}const V="__parameters__";function At(e,t,n){return W(()=>{const l=function mt(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 I.annotation=E,I;function I(F,ie,De){const He=F.hasOwnProperty(V)?F[V]:Object.defineProperty(F,V,{value:[]})[V];for(;He.length<=De;)He.push(null);return(He[De]=He[De]||[]).push(E),F}}return n&&(p.prototype=Object.create(n.prototype)),p.prototype.ngMetadataName=e,p.annotationCls=p,p})}const Zt=globalThis;function Bn(e){for(let t in e)if(e[t]===Bn)return t;throw Error("Could not find renamed property on target object.")}function Hn(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function xr(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(xr).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 ti(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const vt=Bn({__forward_ref__:Bn});function $t(e){return e.__forward_ref__=$t,e.toString=function(){return xr(this())},e}function Ee(e){return at(e)?e():e}function at(e){return"function"==typeof e&&e.hasOwnProperty(vt)&&e.__forward_ref__===$t}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(et))?e[Bi]:null}const oo=Bn({\u0275prov:Bn}),Bi=Bn({\u0275inj:Bn}),Mo=Bn({ngInjectableDef:Bn}),et=Bn({ngInjectorDef:Bn});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 On(e){return e&&!!e.\u0275providers}const Un=Bn({\u0275cmp:Bn}),Jn=Bn({\u0275dir:Bn}),sr=Bn({\u0275pipe:Bn}),Ir=Bn({\u0275mod:Bn}),pr=Bn({\u0275fac:Bn}),bi=Bn({__NG_ELEMENT_ID__:Bn}),si=Bn({__NG_ENV_ID__:Bn});function mr(e){return"string"==typeof e?e:null==e?"":String(e)}function ia(e,t){throw new Xt(-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 Wi={},Ys="__NG_DI_FLAG__",Ni="ngTempTokenPath",ns=/\n/gm,cs="__source";let rs;function zi(e){const t=rs;return rs=e,t}function Es(e,t=Sr.Default){if(void 0===rs)throw new Xt(-203,!1);return null===rs?Ls(e,void 0,t):rs.get(e,t&Sr.Optional?null:void 0,t)}function ko(e,t=Sr.Default){return(ma()||Es)(Ee(e),t)}function tr(e,t=Sr.Default){return ko(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 is(e){const t=[];for(let n=0;nArray.isArray(n)?Zo(n,t):t(n))}function vi(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 Ve(e,t){const n=re(e,t);if(n>=0)return e[1|n]}function re(e,t){return function Et(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 I=E;ya(I,g,[],l)&&(p||=[],p.push(I))}),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 I=l.has(p);if(E){if(I)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&&!I){let ie;l.add(p);try{Zo(g.imports,De=>{ya(De,t,n,l)&&(ie||=[],ie.push(De))})}finally{}void 0!==ie&&Qa(ie,t)}if(!I){const ie=ao(p)||(()=>new p);t({provide:p,useFactory:ie,deps:fn},p),t({provide:Gr,useValue:p,multi:!0},p),t({provide:cr,useValue:()=>ko(p),multi:!0},p)}const F=g.providers;if(null!=F&&!I){const ie=e;ce(F,De=>{t(De,ie)})}}}return p!==e&&void 0!==e.providers}function ce(e,t){for(let n of e)On(n)&&(n=n.\u0275providers),Array.isArray(n)?ce(n,t):t(n)}const Q=Bn({provide:String,useValue:Bn});function Pe(e){return null!==e&&"object"==typeof e&&Q in e}function ni(e){return"function"==typeof e}const qo=new ct(""),Ba={},Ru={};let nc;function wl(){return void 0===nc&&(nc=new Ki),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(dr,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,fn,Sr.Self))}destroy(){xl(this),this._destroyed=!0;const t=A(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(),A(t)}}onDestroy(t){return xl(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){xl(this);const n=zi(this),l=wo(void 0);try{return t()}finally{zi(n),wo(l)}}get(t,n=Wi,l=Sr.Default){if(xl(this),t.hasOwnProperty(si))return t[si](this);l=Eo(l);const g=zi(this),E=wo(void 0);try{if(!(l&Sr.SkipSelf)){let F=this.records.get(t);if(void 0===F){const ie=function Nu(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===Wi?null:n)}catch(I){if("NullInjectorError"===I.name){if((I[Ni]=I[Ni]||[]).unshift(xr(t)),g)throw I;return function va(e,t,n,l){const p=e[Ni];throw t[cs]&&p.unshift(t[cs]),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=xr(t);if(Array.isArray(t))p=t.map(xr).join(" -> ");else if("object"==typeof t){let g=[];for(let E in t)if(t.hasOwnProperty(E)){let I=t[E];g.push(E+":"+("string"==typeof I?JSON.stringify(I):xr(I)))}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}(I,t,"R3InjectorError",this.source)}throw I}finally{wo(E),zi(g)}}resolveInjectorInitializers(){const t=A(null),n=zi(this),l=wo(void 0);try{const g=this.get(cr,fn,Sr.Self);for(const E of g)E()}finally{zi(n),wo(l),A(t)}}toString(){const t=[],n=this.records;for(const l of n.keys())t.push(xr(l));return`R3Injector[${t.join(", ")}]`}processProvider(t){let n=ni(t=Ee(t))?t:Ee(t&&t.provide);const l=function Za(e){return Pe(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=()=>is(p.multi),this.records.set(n,p)),n=t,p.multi.push(t)}this.records.set(n,l)}hydrate(t,n){const l=A(null);try{return n.value===Ba&&(n.value=Ru,n.value=n.factory()),"object"==typeof n.value&&n.value&&function gc(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{A(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 Xt(204,!1);if(e instanceof Function)return function Lo(e){if(e.length>0)throw new Xt(204,!1);const n=function ks(e){return e&&(e[oo]||e[Mo])||null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new Xt(204,!1)}function El(e,t,n){let l;if(ni(e)){const p=Ee(e);return ao(p)||Ua(p)}if(Pe(e))l=()=>Ee(e.useValue);else if(function gr(e){return!(!e||!e.useFactory)}(e))l=()=>e.useFactory(...is(e.deps||[]));else if(function jt(e){return!(!e||!e.useExisting)}(e))l=()=>ko(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(...is(e.deps))}return l}function xl(e){if(e.destroyed)throw new Xt(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&&On(n)?rc(n.\u0275providers,t):t(n)}function ja(e,t){e instanceof Us&&xl(e);const l=zi(e),p=wo(void 0);try{return t()}finally{zi(l),wo(p)}}function zl(){return void 0!==ma()||null!=function to(){return rs}()}function ba(e){if(!zl())throw new Xt(-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,U=21,de=22,q=23,ve=24,rt=25,bn=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[bn]}function di(e){return Array.isArray(e)&&!0===e[bn]}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 yc=(()=>{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===Fn)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:Fn,current:null}),I=E.current||(E.current={}),F=E.previous,ie=F[g];I[g]=new ou(ie&&ie.currentValue,n,F===Fn),Bc(e,t,p,n)}const tl="__ngSimpleChanges__";function Uc(e){return e[tl]||null}const Sa=function(e,t,n){},bc="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 N(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 Dt(e,t){return null==t?null:e[t]}function yn(e){e[Di]=0}function on(e){1024&e[Ar]||(e[Ar]|=1024,he(e)&&io(e))}function ri(e){return!!(9216&e[Ar]||e[ve]?.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 ss(e,t){if(!(256&~e[Ar]))throw new Xt(911,!1);null===e[U]&&(e[U]=[]),e[U].push(t)}function Cs(e){const t=e[So];return di(t)?t[So]:t}const Wr={lFrame:Kn(null),bindingsEnabled:!0,skipHydrationRootTNode:null};let sc=!1;function ih(){return Wr.bindingsEnabled}function Ec(){return null!==Wr.skipHydrationRootTNode}function xn(){return Wr.lFrame.lView}function gi(){return Wr.lFrame.tView}function Bu(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 fd(){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 O(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,$e(t)}function $e(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 Wt(e){Wr.lFrame.currentQueryIndex=e}function ln(e){const t=e[Gn];return 2===t.type?t.declTNode:1===t.type?e[$o]:null}function Tn(e,t,n){if(n&Sr.SkipSelf){let p=t,g=e;for(;!(p=p.parent,null!==p||n&Sr.Host||(p=ln(g),null===p||(g=g[Va],10&p.type))););if(null===p)return!1;t=p,e=g}const l=Wr.lFrame=Xn();return l.currentTNode=t,l.lView=e,!0}function qt(e){const t=Xn(),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 Xn(){const e=Wr.lFrame,t=null===e?null:e.child;return null===t?Kn(e):t}function Kn(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 kn=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 ur(){const e=Wr.lFrame;return N(e.tView,e.selectedIndex)}function Pr(){Wr.lFrame.currentNamespace=bc}function zr(){!function Ur(){Wr.lFrame.currentNamespace=null}()}let Qi=!0;function ki(){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),(I>14>16&&(3&e[Ar])===t&&(e[Ar]+=16384,mo(I,g)):mo(I,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 oh=!0;function gd(e){const t=oh;return oh=e,t}const du=255,_d=5;let sh=0;const Rl={};function hu(e,t){const n=vd(e,t);if(-1!==n)return n;const l=t[Gn];l.firstCreatePass&&(e.injectorIndex=t.length,ah(l.data,e),ah(t,null),ah(l.blueprint,null));const p=zc(e,t),g=e.injectorIndex;if(pd(p)){const E=ju(p),I=Cc(p,t),F=I[Gn].data;for(let ie=0;ie<8;ie++)t[g+ie]=I[E+ie]|F[E+ie]}return t[g+8]=p,g}function ah(e,t){e.push(0,0,0,0,0,0,0,0,t)}function vd(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=hh(p),null===l)return gs;if(n++,p=p[Va],-1!==l.injectorIndex)return l.injectorIndex|n<<16}return gs}function lh(e,t,n){!function pf(e,t,n){let l;"string"==typeof n?l=n.charCodeAt(0)||0:n.hasOwnProperty(bi)&&(l=n[bi]),null==l&&(l=n[bi]=sh++);const p=l&du;t.data[e+(p>>_d)]|=1<=0?t&du:Np:t}(n);if("function"==typeof g){if(!Tn(t,e,l))return l&Sr.Host?yd(p,0,l):Dc(t,n,l,p);try{let E;if(E=g(l),null!=E||l&Sr.Optional)return E;ia()}finally{kn()}}else if("number"==typeof g){let E=null,I=vd(e,t),F=gs,ie=l&Sr.Host?t[ro][$o]:null;for((-1===I||l&Sr.SkipSelf)&&(F=-1===I?zc(e,t):t[I+8],F!==gs&&_f(l,!1)?(E=t[Gn],I=ju(F),t=Cc(F,t)):I=-1);-1!==I;){const De=t[Gn];if(dh(g,I,De.data)){const He=uh(I,t,n,E,l,ie);if(He!==Rl)return He}F=t[I+8],F!==gs&&_f(l,t[Gn].data[I+8]===ie)&&dh(g,I,t)?(E=De,I=ju(F),t=Cc(F,t)):I=-1}}return p}function uh(e,t,n,l,p,g){const E=t[Gn],I=E.data[e+8],De=pu(I,E,n,null==l?Wo(I)&&oh:l!=E&&!!(3&I.type),p&Sr.Host&&g===I);return null!==De?Nl(t,E,De,I):Rl}function pu(e,t,n,l,p){const g=e.providerIndexes,E=t.data,I=1048575&g,F=e.directiveStart,De=g>>20,Lt=p?I+De:e.directiveEnd;for(let Ft=l?I:I+De;Ft=F&&nn.type===n)return Ft}if(p){const Ft=E[F];if(Ft&&jo(Ft)&&Ft.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 Gi(e,t){throw t&&t.join(" > "),new Xt(-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():mr(e)}(g[n]));const I=gd(E.canSeeViewProviders);E.resolving=!0;const ie=E.injectImpl?wo(E.injectImpl):null;Tn(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),gd(I),E.resolving=!1,kn()}}return p}function dh(e,t,n){return!!(n[t+(e>>_d)]&1<{const t=e.prototype.constructor,n=t[pr]||gu(t),l=Object.prototype;let p=Object.getPrototypeOf(e.prototype).constructor;for(;p&&p!==l;){const g=p[pr]||gu(p);if(g&&g!==n)return g;p=Object.getPrototypeOf(p)}return g=>new g})}function gu(e){return at(e)?()=>{const t=gu(Ee(e));return t&&t()}:ao(e)}function hh(e){const t=e[Gn],n=t.type;return 2===n?t.declTNode:1===n?e[$o]:null}function Vu(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(;pko(dr)});static __NG_ELEMENT_ID__=-1}class Ed{attributeName;constructor(t){this.attributeName=t}__NG_ELEMENT_ID__=()=>Vu(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`}}new ct("").__NG_ELEMENT_ID__=e=>{const t=Mi();if(null===t)throw new Xt(204,!1);if(2&t.type)return t.value;if(e&Sr.Optional)return null;throw new Xt(204,!1)};const gh=!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 ss(this._lView,t),()=>function Ko(e,t){if(null===e[U])return;const n=e[U].indexOf(t);-1!==n&&e[U].splice(n,1)}(this._lView,t)}}function Gc(){return new rl(xn())}class Ll{}const zu=new ct("",{providedIn:"root",factory:()=>!1}),xf=new ct(""),vu=new ct("");let il=(()=>{class e{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new Wn.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 _h extends Pt.B{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,zl()&&(this.destroyRef=tr(hc,{optional:!0})??void 0,this.pendingTasks=tr(il,{optional:!0})??void 0)}emit(t){const n=A(null);try{super.next(t)}finally{A(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 I=super.subscribe({next:p,error:g,complete:E});return t instanceof en.yU&&t.add(I),I}wrapInTimeout(t){return n=>{const l=this.pendingTasks?.add();setTimeout(()=>{t(n),void 0!==l&&this.pendingTasks?.remove(l)})}}};function yu(...e){}function xd(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 Ku(e){return queueMicrotask(()=>e()),()=>{e=yu}}const Cd="isAngularZone",Xc=Cd+"_ID";let Cf=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=gh}=t;if(typeof Zone>"u")throw new Xt(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 bh(e){const t=()=>{!function yh(e){function t(){xd(()=>{e.callbackScheduled=!1,wh(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()}),wh(e))}(e)},n=Cf++;e._inner=e._inner.fork({name:"angular",properties:{[Cd]:!0,[Xc]:n,[Xc+n]:!0},onInvokeTask:(l,p,g,E,I,F)=>{if(function Eh(e){return xh(e,"__ignore_ng_zone__")}(F))return l.invokeTask(g,E,I,F);try{return Sf(e),l.invokeTask(g,E,I,F)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===E.type||e.shouldCoalesceRunChangeDetection)&&t(),Af(e)}},onInvoke:(l,p,g,E,I,F,ie)=>{try{return Sf(e),l.invoke(g,E,I,F,ie)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!function Wp(e){return xh(e,"__scheduler_tick__")}(F)&&t(),Af(e)}},onHasTask:(l,p,g,E)=>{l.hasTask(g,E),p===g&&("microTask"==E.change?(e._hasPendingMicrotasks=E.microTask,wh(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(Cd)}static assertInAngularZone(){if(!Vo.isInAngularZone())throw new Xt(909,!1)}static assertNotInAngularZone(){if(Vo.isInAngularZone())throw new Xt(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,Df,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 Df={};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 wh(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&!0===e.callbackScheduled)}function Sf(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Af(e){e._nesting--,vh(e)}class Dd{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 xh(e,t){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0]?.data?.[t]}class Sc{_console=console;handleError(t){this._console.error("ERROR",t)}}const Tf=new ct("",{providedIn:"root",factory:()=>{const e=tr(Vo),t=tr(Sc);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function Ka(e,t){return nt(e,t)}const Yc=(Ka.required=function Kp(e){return nt(Gt,e)},Ka);function Gp(){return ml(Mi(),xn())}function ml(e,t){return new Ac(xs(e,t))}let Ac=(()=>class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=Gp})();function Vs(e){return e instanceof Ac?e.nativeElement:e}function Mf(){return this._results[Symbol.iterator]()}class Td{_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 Pt.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 vo(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function os(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"}),ka=new ct(""),Ga=new ct("",{providedIn:"root",factory:()=>Ii().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null}),Sg=new ct("",{providedIn:"root",factory:()=>!1});var Zp=function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e}(Zp||{});const Rh=new ct(""),zv=new Set;function pa(e){zv.has(e)||(zv.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var Pd=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(Pd||{});let kg=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=oi({token:e,providedIn:"root",factory:()=>new e})}return e})();const Kv=[Pd.EarlyRead,Pd.Write,Pd.MixedReadWrite,Pd.Read];let Gv=(()=>{class e{ngZone=tr(Vo);scheduler=tr(Ll);errorHandler=tr(Sc,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){tr(Rh,{optional:!0})}execute(){this.executing=!0;for(const n of Kv)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(Zp.AFTER_NEXT_RENDER,n)??n()}static \u0275prov=oi({token:e,providedIn:"root",factory:()=>new e})}return e})();class Ig{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 Og(e,t){!t?.injector&&ba();const n=t?.injector??tr(Ts);return typeof ngServerMode<"u"&&ngServerMode?qp:(pa("NgAfterRender"),Rg(e,n,t,!1))}function qu(e,t){!t?.injector&&ba();const n=t?.injector??tr(Ts);return typeof ngServerMode<"u"&&ngServerMode?qp:(pa("NgAfterNextRender"),Rg(e,n,t,!0))}function Rg(e,t,n,l){const p=t.get(kg);p.impl??=t.get(Gv);const g=t.get(Rh,null,{optional:!0}),E=n?.phase??Pd.MixedReadWrite,I=!0!==n?.manualCleanup?t.get(hc):null,F=new Ig(p.impl,function Xv(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,I,g?.snapshot(null));return p.impl.register(F),F}const qp={destroy(){}};let im=()=>null;function om(e,t,n=!1){return im(e,t,n)}var fc=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(fc||{});let Vf,Hf;function jd(e){return function hm(){if(void 0===Vf&&(Vf=null,Zt.trustedTypes))try{Vf=Zt.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Vf}()?.createHTML(e)||e}function fm(){if(void 0===Hf&&(Hf=null,Zt.trustedTypes))try{Hf=Zt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Hf}function qg(e){return fm()?.createHTML(e)||e}function e_(e){return fm()?.createScriptURL(e)||e}class id{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Sn})`}}class Cy extends id{getTypeName(){return"HTML"}}class Wf extends id{getTypeName(){return"Style"}}class Dy extends id{getTypeName(){return"Script"}}class Sy extends id{getTypeName(){return"URL"}}class Ay extends id{getTypeName(){return"ResourceURL"}}function qc(e){return e instanceof id?e.changingThisBreaksApplicationSecurity:e}function Vd(e,t){const n=function Ty(e){return e instanceof id&&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 ${Sn})`)}return n===t}function My(e){return new Cy(e)}function ky(e){return new Wf(e)}function Iy(e){return new Dy(e)}function Oy(e){return new Sy(e)}function Ry(e){return new Ay(e)}class Ny{inertDocumentHelper;constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const n=(new window.DOMParser).parseFromString(jd(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.firstChild?.remove(),n)}catch{return null}}}class Ly{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=jd(t),n}}const Py=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Kf(e){return(e=String(e)).match(Py)?e:"unsafe:"+e}function Jc(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function Wh(...e){const t={};for(const n of e)for(const l in n)n.hasOwnProperty(l)&&(t[l]=!0);return t}const t_=Jc("area,br,col,hr,img,wbr"),n_=Jc("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),r_=Jc("rp,rt"),Gf=Wh(t_,Wh(n_,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")),Wh(r_,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")),Wh(r_,n_)),mm=Jc("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),o_=Wh(mm,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")),By=Jc("script,style,template");class s_{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=jy(n);else for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let g=$y(n);if(g){n=g;break}n=p.pop()}return this.buf.join("")}startElement(t){const n=gm(t).toLowerCase();if(!Gf.hasOwnProperty(n))return this.sanitizedSomething=!0,!By.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);const l=t.attributes;for(let p=0;p"),!0}endElement(t){const n=gm(t).toLowerCase();Gf.hasOwnProperty(n)&&!t_.hasOwnProperty(n)&&(this.buf.push(""))}chars(t){this.buf.push(c_(t))}}function $y(e){const t=e.nextSibling;if(t&&e!==t.previousSibling)throw a_(t);return t}function jy(e){const t=e.firstChild;if(t&&function Uy(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(e,t))throw a_(t);return t}function gm(e){const t=e.nodeName;return"string"==typeof t?t:"FORM"}function a_(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}const Vy=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,l_=/([^\#-~ |!])/g;function c_(e){return e.replace(/&/g,"&").replace(Vy,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(l_,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let zh;function u_(e,t){let n=null;try{zh=zh||function zf(e){const t=new Ly(e);return function pm(){try{return!!(new window.DOMParser).parseFromString(jd(""),"text/html")}catch{return!1}}()?new Ny(t):t}(e);let l=t?String(t):"";n=zh.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=zh.getInertBodyElement(l)}while(l!==g);return jd((new s_).sanitizeChildren(_m(n)||n))}finally{if(n){const l=_m(n)||n;for(;l.firstChild;)l.firstChild.remove()}}}function _m(e){return"content"in e&&function Hy(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var od=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}(od||{});function Kh(e){const t=Hd();return t?qg(t.sanitize(od.HTML,e)||""):Vd(e,"HTML")?qg(qc(e)):u_(Ii(),mr(e))}function vm(e){const t=Hd();return t?t.sanitize(od.URL,e)||"":Vd(e,"URL")?qc(e):Kf(mr(e))}function Gh(e){const t=Hd();if(t)return e_(t.sanitize(od.RESOURCE_URL,e)||"");if(Vd(e,"ResourceURL"))return e_(qc(e));throw new Xt(904,!1)}function Yf(e,t,n){return function zy(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?Gh:vm}(t,n)(e)}function Hd(){const e=xn();return e&&e[Os].sanitizer}const Wd=/^>|^->||--!>|)/g,Ky="\u200b$1\u200b";function $l(e){return e instanceof Function?e():e}var Mu=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(Mu||{}),qf=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(qf||{});let Cm;function Dm(e,t){return Cm(e,t)}function Gd(e,t,n,l,p){if(null!=l){let g,E=!1;di(l)?g=l:Qr(l)&&(E=!0,l=l[Ui]);const I=Xi(l);0===e&&null!==n?null==p?M_(t,n,I):sd(t,n,I,p||null,!0):1===e&&null!==n?sd(t,n,I,p||null,!0):2===e?function qh(e,t,n){e.removeChild(null,t,n)}(t,I,E):3===e&&t.destroyNode(I),null!=g&&function ib(e,t,n,l,p){const g=n[Cr];g!==Xi(n)&&Gd(t,e,l,g,p);for(let I=Hr;It.replace(h_,Ky))}(t))}function Jf(e,t,n){return e.createElement(t,n)}function S_(e,t){t[Os].changeDetectionScheduler?.notify(10),np(e,t,t[Rr],2,null,null)}function Tm(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 Mm(e,t){const n=e[Li],l=n.indexOf(t);n.splice(l,1)}function Yh(e,t){if(e.length<=Hr)return;const n=Hr+t,l=e[n];if(l){const p=l[Ha];null!==p&&p!==e&&Mm(p,l),t>0&&(e[n-1][no]=l[no]);const g=Fa(e,Hr+t);!function D_(e,t){S_(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 Qh(e,t){if(!(256&t[Ar])){const n=t[Rr];n.destroyNode&&np(e,t,n,3,null,null),function tb(e){let t=e[po];if(!t)return ep(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)&&ep(t[Gn],t),t=t[So];null===t&&(t=e),Qr(t)&&ep(t[Gn],t),n=t&&t[no]}t=n}}(t)}}function ep(e,t){if(256&t[Ar])return;const n=A(null);try{t[Ar]&=-129,t[Ar]|=256,t[ve]&&xe(t[ve]),function A_(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let l=0;l=0?l[I]():l[-I].unsubscribe(),E+=2}else n[E].call(l[n[E+1]]);null!==l&&(t[Po]=null);const p=t[U];if(null!==p){t[U]=null;for(let E=0;E-1){const{encapsulation:g}=e.data[l.directiveStart+p];if(g===fc.None||g===fc.Emulated)return null}return xs(l,n)}}(e,t.parent,n)}function sd(e,t,n,l,p){e.insertBefore(t,n,l,p)}function M_(e,t,n){e.appendChild(t,n)}function k_(e,t,n,l,p){null!==l?sd(e,t,n,l,p):M_(e,t,n)}function Im(e,t){return e.parentNode(t)}function O_(e,t,n){return N_(e,t,n)}let Om,N_=function R_(e,t,n){return 40&e.type?xs(e,n):null};function Zh(e,t,n,l){const p=km(e,l,t),g=t[Rr],I=O_(l.parent||t[$o],l,t);if(null!=p)if(Array.isArray(n))for(let F=0;F-1){let g;for(;++pg?"":p[De+1].toLowerCase(),2&l&&ie!==He){if(pc(l))return!1;E=!0}}}}else{if(!E&&!pc(l)&&!pc(F))return!1;if(E&&pc(F))continue;E=!1,l=F|1&l}}return pc(l)||E}function pc(e){return!(1&e)}function db(e,t,n,l){if(null===t)return-1;let p=0;if(l||!n){let g=!1;for(;p-1)for(n++;n0?'="'+I+'"':"")+"]"}else 8&l?p+="."+E:4&l&&(p+=" "+E);else""!==p&&!pc(E)&&(t+=j_(g,p),p=""),l=E,g=g||!pc(l);n++}return""!==p&&(t+=j_(g,p)),t}const Si={};function _b(e=1){V_(gi(),xn(),ir()+e,!1)}function V_(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&&vr(t,g,n)}Vn(n)}function Xd(e,t=Sr.Default){const n=xn();return null===n?ko(e,t):mf(Mi(),n,Ee(e),t)}function Bm(){throw new Error("invalid")}function H_(e,t,n,l,p,g){const E=A(null);try{let I=null;p&Mu.SignalBased&&(I=t[l][C]),null!==I&&void 0!==I.transformFn&&(g=I.transformFn(g)),p&Mu.HasDecoratorInputTransform&&(g=e.inputTransforms[l].call(t,g)),null!==e.setInput?e.setInput(t,I,g,n,l):Bc(t,I,l,g)}finally{A(E)}}function Jh(e,t,n,l,p,g,E,I,F,ie,De){const He=t.blueprint.slice();return He[Ui]=p,He[Ar]=1228|l,(null!==ie||e&&2048&e[Ar])&&(He[Ar]|=2048),yn(He),He[So]=He[Va]=e,He[Fr]=n,He[Os]=E||e&&e[Os],He[Rr]=I||e&&e[Rr],He[fo]=F||e&&e[fo]||null,He[$o]=g,He[ca]=function Eu(){return Xp++}(),He[es]=De,He[No]=ie,He[ro]=2==t.type?e[ro]:He,He}function ld(e,t,n,l,p){let g=e.data[t];if(null===g)g=function Um(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,I=0;return Ec()&&(I|=128),{type:n,index:l,insertBeforeIndex:null,injectorIndex:E,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:I,providerIndexes:0,value:p,attrs:g,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,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 B(){return Wr.lFrame.inI18n}()&&(g.flags|=32);else if(64&g.type){g.type=n,g.value=l,g.attrs=p;const E=function kl(){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 v(e,t,n,l){if(0===n)return-1;const p=t.length;for(let g=0;grt&&V_(e,t,rt,!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=A(null);try{const g=t.directiveEnd;for(let E=t.directiveStart;Enull;function ei(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 I,F=Mu.None;Array.isArray(E)?(I=E[0],F=E[1]):I=E;let ie=g;if(null!==p){if(!p.hasOwnProperty(g))continue;ie=p[g]}0===e?yi(l,n,ie,I,F):yi(l,n,ie,I)}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,I){const F=xs(t,n);let De,ie=t.inputs;!I&&null!=ie&&(De=ie[l])?(yb(e,n,De,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 as(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(ih()){const p=null===l?null:{"":-1},g=function W_(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)!=I&&E.push(I),E.push(n,l,g)}}(e,t,l,v(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 I=null==E?mr(g):E(g,l||"",p);e.setAttribute(t,p,I,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 I=0;I0&&(n[p-1][no]=t),l{io(e.lView)},consumerOnSignalRead(){this.lView[ve]=this}},fD={...R,consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let t=Cs(e.lView);for(;t&&!jw(t[Gn]);)t=Cs(t);t&&on(t)},consumerOnSignalRead(){this.lView[ve]=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])}}const pD=100;function Y_(e,t=!0,n=0){const p=e[Os].rendererFactory;p.begin?.();try{!function mD(e,t){const n=fd();try{ea(!0),Eb(e,t);let l=0;for(;ri(e);){if(l===pD)throw new Xt(103,!1);l++,Eb(e,1)}}finally{ea(n)}}(e,n)}catch(E){throw t&&G_(e,E),E}finally{p.end?.()}}function Ww(e,t,n,l){const p=t[Ar];if(!(256&~p))return;qt(t);let I=!0,F=null,ie=null;jw(e)?(ie=function lD(e){return e[ve]??function cD(e){const t=$w.pop()??Object.create(dD);return t.lView=e,t}(e)}(t),F=Ce(ie)):null===function S(){return c}()?(I=!1,ie=function hD(e){const t=e[ve]??Object.create(fD);return t.lView=e,t}(t),F=Ce(ie)):t[ve]&&(xe(t[ve]),t[ve]=null);try{yn(t),function $u(e){return Wr.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==n&&m(e,t,n,2,l);const De=!(3&~p);if(De){const Ft=e.preOrderCheckHooks;null!==Ft&&vr(t,Ft,null)}else{const Ft=e.preOrderHooks;null!==Ft&&jr(t,Ft,0,null),Fi(t,0)}if(function gD(e){for(let t=Qt(e);null!==t;t=Jt(t)){if(!(t[Ar]&xi.HasTransplantedViews))continue;const n=t[Li];for(let l=0;l-1&&(Yh(t,l),Fa(n,l))}this._attachedToViewContainer=!1}Qh(this._lView[Gn],this._lView)}onDestroy(t){ss(this._lView,t)}markForCheck(){Hm(this._cdRefInjectingView||this._lView,4)}markForRefresh(){on(this._cdRefInjectingView||this._lView)}detach(){this._lView[Ar]&=-129}reattach(){hi(this._lView),this._lView[Ar]|=128}detectChanges(){this._lView[Ar]|=1024,Y_(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Xt(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;const t=Rs(this._lView),n=this._lView[Ha];null!==n&&!t&&Mm(n,this._lView),S_(this._lView[Gn],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Xt(902,!1);this._appRef=t;const n=Rs(this._lView),l=this._lView[Ha];null!==l&&!n&&Tm(l,this._lView),hi(this._lView)}}let zm=(()=>class e{static __NG_ELEMENT_ID__=bD})();const vD=zm,yD=class extends vD{_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=ap(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:n,dehydratedView:l});return new Wm(p)}};function bD(){return Q_(Mi(),xn())}function Q_(e,t){return 4&e.type?new yD(t,e,ml(e,t)):null}let p1=()=>null;function up(e,t){return p1(e,t)}class pS{}class m1{}class mS{resolveComponentFactory(t){throw Error(`No component factory found for ${xr(t)}.`)}}class nv{static NULL=new mS}class Nb{}let gS=(()=>class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>function _S(){const e=xn(),n=P(Mi().index,e);return(Qr(n)?n:e)[Rr]}()})(),vS=(()=>{class e{static \u0275prov=oi({token:e,providedIn:"root",factory:()=>null})}return e})();function Yd(e){return!!Or(e)}function iv(e,t,n){let l=n?e.styles:null,p=n?e.classes:null,g=0;if(null!==t)for(let E=0;E0&&F_(e,n,g.join(" "))}}(Lt,ra,nn,l),void 0!==n&&function TS(e,t,n){const l=e.projection=[];for(let p=0;pclass e{static __NG_ELEMENT_ID__=kS})();function kS(){return E1(Mi(),xn())}const IS=ov,b1=class extends IS{_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(pd(t)){const n=Cc(t,this._hostLView),l=ju(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=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=up(this._lContainer,t.ssrId),I=t.createEmbeddedViewImpl(n||{},g,E);return this.insertImpl(I,p,ef(this._hostTNode,E)),I}createComponent(t,n,l,p,g){const E=t&&!function Jo(e){return"function"==typeof e}(t);let I;if(E)I=n;else{const nn=n||{};I=nn.index,l=nn.injector,p=nn.projectableNodes,g=nn.environmentInjector||nn.ngModuleRef}const F=E?t:new tg(Dr(t)),ie=l||this.parentInjector;if(!g&&null==F.ngModule){const Nn=(E?ie:this.parentInjector).get(us,null);Nn&&(g=Nn)}const De=Dr(F.componentType??{}),He=up(this._lContainer,De?.id??null),Ft=F.create(ie,p,He?.firstChild??null,g);return this.insertImpl(Ft.hostView,I,ef(this._hostTNode,He)),Ft}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 I=this.indexOf(t);if(-1!==I)this.detach(I);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 lp(E,p,g,l),t.attachToViewContainerRef(),vi(Fb(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=Yh(this._lContainer,n);l&&(Fa(Fb(this._lContainer),n),Qh(l[Gn],l))}detach(t){const n=this._adjustIndex(t,-1),l=Yh(this._lContainer,n);return l&&null!=Fa(Fb(this._lContainer),n)?new Wm(l):null}_adjustIndex(t,n=0){return t??this.length+n}};function w1(e){return e[8]}function Fb(e){return e[8]||(e[8]=[])}function E1(e,t){let n;const l=t[e.index];return di(l)?n=l:(n=K_(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 sd(n,Im(n,p),l,function I_(e,t){return e.nextSibling(t)}(n,p),!1),l}(t,n),e[Cr]=p},Bb=()=>!1;class Ub{queryList;matches=null;constructor(t){this.queryList=t}clone(){return new Ub(this.queryList)}setDirty(){this.queryList.setDirty()}}class $b{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 jb{queries;constructor(t=[]){this.queries=t}elementStart(t,n){for(let l=0;l0)l.push(E[I/2]);else{const ie=g[I+1],De=t[-F];for(let He=Hr;He(G(t),t.value);return n[C]=t,n}(e),l=n[C];return t?.equal&&(l.equal=t.equal),n.set=p=>lt(l,p),n.update=p=>function Xe(e,t){_e()||Ze(),lt(e,t(e.value))}(l,p),n.asReadonly=Gb.bind(n),n}function Gb(){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 Kb(e)&&"function"==typeof e.set}function Xb(e,t,n){let l;const p=_t(()=>{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:fn;const p=Wb(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 Xt(-951,!1);return g});return l=p[C],l._dirtyCounter=dp(0),l._flatValue=void 0,p}function B1(e,t){return function N1(e){return Xb(!0,!1)}()}const WS=(B1.required=function HS(e,t){return function L1(e){return Xb(!0,!0)}()},B1);class nf{}class z1{}function JS(e,t){return new Yb(e,t??null,[])}class Yb extends nf{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new v1(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=Ef(t,n,[{provide:nf,useValue:this},{provide:nv,useValue:this.componentFactoryResolver},...l],xr(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 Qb extends z1{moduleType;constructor(t){super(),this.moduleType=t}create(t){return new Yb(this.moduleType,t,[])}}class K1 extends nf{injector;componentFactoryResolver=new v1(this);instance=null;constructor(t){super();const n=new Us([...t.providers,{provide:nf,useValue:this},{provide:nv,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 Zb(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=Wl(0,n.type),p=l.length>0?Zb([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(ko(us))})}return e})();function G1(e){return W(()=>{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===Tc.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||fc.Emulated,styles:e.styles||fn,_:null,schemas:e.schemas||null,tView:null,id:""};t.standalone&&pa("NgStandalone"),q1(n);const l=e.dependencies;return n.directiveDefs=av(l,!1),n.pipeDefs=av(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 qb(e){return W(()=>({type:e.type,bootstrap:e.bootstrap||fn,declarations:e.declarations||fn,imports:e.imports||fn,exports:e.exports||fn,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function X1(e,t){if(null==e)return Fn;const n={};for(const l in e)if(e.hasOwnProperty(l)){const p=e[l];let g,E,I=Mu.None;Array.isArray(p)?(I=p[0],g=p[1],E=p[2]??g):(g=p,E=p),t?(n[g]=I!==Mu.None?[l,I]:l,t[g]=E):n[g]=l}return n}function Y1(e){return W(()=>{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||Fn,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:!0===e.signals,selectors:e.selectors||fn,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 av(e,t){if(!e)return null;const n=t?ui:nA;return()=>("function"==typeof e?e():e).map(l=>n(l)).filter(rA)}function Jb(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 Xt(903,!1);p=t.\u0275dir}if(p){if(n){l.push(p);const E=e;E.inputs=lv(e.inputs),E.inputTransforms=lv(e.inputTransforms),E.declaredInputs=lv(e.declaredInputs),E.outputs=lv(e.outputs);const I=p.hostBindings;I&&uA(e,I);const F=p.viewQuery,ie=p.contentQueries;if(F&&lA(e,F),ie&&cA(e,ie),sA(e,p),Hn(e.outputs,p.outputs),jo(p)&&p.data.animation){const De=e.data;De.animation=(De.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 lv(e){return e===Fn?{}:e===fn?[]: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(e0):[e]):l?n.hostDirectives.unshift(...e.map(e0)):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(e0(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 e0(e){return"function"==typeof e?{directive:Ee(e),inputs:Fn,outputs:Fn}:{directive:Ee(e.directive),inputs:rE(e.inputs),outputs:rE(e.outputs)}}function rE(e){if(void 0===e||0===e.length)return Fn;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 yE(e,t){if(typeof COMPILED>"u"||!COMPILED){const n=Zt;n[_E]??={},n[_E][e]=t}}(e,t)}const bE=new ct(""),wE=new ct("");let a0,iT=(()=>{class e{_ngZone;registry;_isZoneStable=!0;_callbacks=[];taskTrackingZone=null;constructor(n,l,p){this._ngZone=n,this.registry=l,a0||(function oT(e){a0=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)(ko(Vo),ko(EE),ko(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 a0?.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 l0(e){return!!e&&"function"==typeof e.then}function xE(e){return!!e&&"function"==typeof e.subscribe}const c0=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(c0,{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(l0(g))n.push(g);else if(xE(g)){const E=new Promise((I,F)=>{g.subscribe({complete:I,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})(),u0=(()=>{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 sg=new ct("");let Pc=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=tr(Tf);afterRenderManager=tr(kg);zonelessEnabled=tr(zu);rootEffectScheduler=tr(u0);dirtyFlags=0;deferredDirtyFlags=0;tracingSnapshot=null;externalTestViews=new Set;afterTick=new Pt.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(Rh,{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 Xt(405,!1);let E;E=p?n:this._injector.get(nv).resolveComponentFactory(n),this.componentTypes.push(E.componentType);const I=function sT(e){return e.isBoundToModule}(E)?void 0:this._injector.get(nf),ie=E.create(Ts.NULL,[],l||E.selector,I),De=ie.location.nativeElement,He=ie.injector.get(bE,null);return He?.registerApplication(De),ie.onDestroy(()=>{this.detachView(ie.hostView),mv(this.components,ie),He?.unregisterApplication(De)}),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(Zp.CHANGE_DETECTION,this._tick),void l.dispose()}if(this._runningTick)throw new Xt(101,!1);const n=A(null);try{this._runningTick=!0,this.synchronize()}catch(l){this.internalErrorHandler(l)}finally{this._runningTick=!1,A(n),this.afterTick.next()}};synchronize(){null===this._rendererFactory&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(Nb,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;mv(this._views,l),l.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(sg,[]).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),()=>mv(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new Xt(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 mv(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function cT(e,t,n,l){(n||ri(e))&&Y_(e,t,n&&!l?0:1)}function f0(e,t,n,l){const p=xn();return Ks(p,Wa(),t)&&(gi(),Ms(ur(),p,e,t,n,l)),f0}function gp(e,t,n,l){return Ks(e,Wa(),n)?t+mr(n)+l:Si}function gv(e,t){return e<<17|t<<2}function eh(e){return e>>17&32767}function p0(e){return 2|e}function sf(e){return(131068&e)>>2}function m0(e,t){return-131069&e|t<<2}function g0(e){return 1|e}function jE(e,t,n,l){const p=e[n+1],g=null===t;let E=l?eh(p):sf(p),I=!1;for(;0!==E&&(!1===I||g);){const ie=e[E+1];XT(e[E],t)&&(I=!0,e[E+1]=l?g0(ie):p0(ie)),E=l?eh(ie):sf(ie)}I&&(e[n+1]=l?p0(p):g0(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),Cp(e,t,n))}function WE(e,t){const n=La.textEnd;let l=La.key=Cp(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=Cp(e,l,n),l=La.valueEnd=function eM(e,t,n){let l=-1,p=-1,g=-1,E=t,I=E;for(;E32&&(I=E),g=p,p=l,l=-33&F}return I}(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 Cp(e,t,n){for(;t=0;n=WE(t,n))ZE(e,VE(t),YT(t))}function XE(e){ru(aM,Ou,e,!0)}function Ou(e,t){for(let n=function QT(e){return zE(e),HE(e,Cp(e,0,La.textEnd))}(t);n>=0;n=HE(t,n))Y(e,VE(t),!0)}function nu(e,t,n,l){const p=xn(),g=gi(),E=O(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=xr(qc(e)))),e}(t,n),l,E)}function ru(e,t,n,l){const p=gi(),g=O(2);p.firstUpdatePass&&QE(p,null,g,l);const E=xn();if(n!==Si&&Ks(E,g,n)){const I=p.data[ir()];if(ex(I,l)&&!YE(p,g)){let F=l?I.classesWithoutHost:I.stylesWithoutHost;null!==F&&(n=ti(F,n||"")),v0(p,I,E,n,l)}else!function lM(e,t,n,l,p,g,E,I){p===Si&&(p=fn);let F=0,ie=0,De=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=lg(n=w0(null,e,t,n,l),t.attrs,l),g=null);else{const E=t.directiveStylingLast;if(-1===E||e[E]!==p)if(n=w0(p,e,t,n,l),null===g){let F=function rM(e,t,n){const l=n?t.classBindings:t.styleBindings;if(0!==sf(l))return e[eh(l)]}(e,t,l);void 0!==F&&Array.isArray(F)&&(F=w0(null,e,t,F[1],l),F=lg(F,t.attrs,l),function iM(e,t,n,l){e[eh(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)):De=n,p)if(0!==F){const Lt=eh(e[I+1]);e[l+1]=gv(Lt,I),0!==Lt&&(e[Lt+1]=m0(e[Lt+1],l)),e[I+1]=function WT(e,t){return 131071&e|t<<17}(e[I+1],l)}else e[l+1]=gv(I,0),0!==I&&(e[I+1]=m0(e[I+1],l)),I=l;else e[l+1]=gv(F,0),0===I?I=l:e[F+1]=m0(e[F+1],l),F=l;ie&&(e[l+1]=p0(e[l+1])),jE(e,De,l,!0),jE(e,De,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]=g0(n[l+1]))}(t,De,e,l,g),E=gv(I,F),g?t.classBindings=E:t.styleBindings=E}(p,g,t,n,E,l)}}function w0(e,t,n,l,p){let g=null;const E=n.directiveEnd;let I=n.directiveStylingLast;for(-1===I?I=n.directiveStart:I++;I0;){const F=e[p],ie=Array.isArray(F),De=ie?F[1]:F,He=null===De;let Lt=n[p+1];Lt===Si&&(Lt=He?fn:void 0);let Ft=He?Ve(Lt,l):De===l?Lt:void 0;if(ie&&!_v(Ft)&&(Ft=Ve(F,l)),_v(Ft)&&(I=Ft,E))return I;const nn=e[p+1];p=E?eh(nn):sf(nn)}if(null!==t){let F=g?t.residualClasses:t.residualStyles;null!=F&&(I=Ve(F,l))}return I}function _v(e){return void 0!==e}function ex(e,t){return!!(e.flags&(t?8:16))}function tx(e,t,n){ru(Y,Ou,gp(xn(),e,t,n),!0)}function nx(){return xn()[ro][Fr]}class vM{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 E0(e,t,n,l,p){return e===n&&Object.is(t,l)?1:Object.is(p(e,t),p(n,l))?-1:0}function x0(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(x0(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=xn(),l=Wa(),p=n[l]!==Si?n[l]:-1,g=-1!==p?vv(n,rt+p):void 0;if(Ks(n,l,e)){const I=A(null);try{if(void 0!==g&&bb(g,0),-1!==e){const F=rt+e,ie=vv(n,F),De=C0(n[Gn],F),He=up(ie,De.tView.ssrId);lp(ie,ap(n,De,t,{dehydratedView:He}),0,ef(De,He))}}finally{A(I)}}else if(void 0!==g){const I=Uw(g,0);void 0!==I&&(I[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,I,F,ie,De,He,Lt){pa("NgControlFlow");const Ft=xn(),nn=gi(),Nn=void 0!==F,qn=xn(),lr=I?E.bind(qn[ro][Fr]):E,Pn=new EM(Nn,lr);qn[rt+e]=Pn,ig(Ft,nn,e+1,t,n,l,p,Dt(nn.consts,g)),Nn&&ig(Ft,nn,e+2,F,ie,De,He,Dt(nn.consts,Lt))}class xM extends vM{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,lp(this.lContainer,n,t,ef(this.templateTNode,l))}detach(t){return this.needsIndexUpdate||=t!==this.length-1,function CM(e,t){return Yh(e,t)}(this.lContainer,t)}create(t,n){const l=up(this.lContainer,this.templateTNode.tView.ssrId),p=ap(this.hostLView,this.templateTNode,new bM(this.lContainer,n,t),{dehydratedView:l});return this.operationsCounter?.recordCreate(),p}destroy(t){Qh(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(),De=0===F.length;if(Ks(l,ie,De)){const He=n+2,Lt=vv(l,He);if(De){const Ft=C0(p,He),nn=up(Lt,Ft.tView.ssrId);lp(Lt,ap(l,Ft,void 0,{dehydratedView:nn}),0,ef(Ft,nn))}else bb(Lt,0)}}}finally{A(t)}}function vv(e,t){return e[t]}function C0(e,t){return N(e,t)}function yv(e,t,n,l){const p=xn(),g=gi(),E=rt+e,I=p[Rr],F=g.firstCreatePass?function SM(e,t,n,l,p,g){const E=t.consts,F=ld(t,e,2,l,Dt(E,p));return na(t,n,F,Dt(E,g)),null!==F.attrs&&iv(F,F.attrs,!1),null!==F.mergedAttrs&&iv(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,I,t,e);p[E]=ie;const De=hs(F);return fs(F,!0),B_(I,ie,F),!function fp(e){return!(32&~e.flags)}(F)&&ki()&&Zh(g,p,ie,F),0===function rh(){return Wr.lFrame.elementDepthCount}()&&x(ie,p),function cf(){Wr.lFrame.elementDepthCount++}(),De&&(_(g,p,F),d(g,F,p)),null!==l&&D(p,F),yv}function bv(){let e=Mi();ac()?jc():(e=e.parent,fs(e,!1));const t=e;(function df(e){return Wr.skipHydrationRootTNode===e})(t)&&function hd(){Wr.skipHydrationRootTNode=null}(),function uf(){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,xn(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function xc(e){return!!(16&e.flags)}(t)&&v0(n,t,xn(),t.stylesWithoutHost,!1),bv}function D0(e,t,n,l){return yv(e,t,n,l),bv(),D0}let ux=(e,t,n,l,p,g)=>(Zi(!0),Jf(l,p,function Yi(){return Wr.lFrame.currentNamespace}()));function wv(e,t,n){const l=xn(),p=gi(),g=e+rt,E=p.firstCreatePass?function MM(e,t,n,l,p){const g=t.consts,E=Dt(g,l),I=ld(t,e,8,"ng-container",E);return null!==E&&iv(I,E,!0),na(t,n,I,Dt(g,p)),null!==t.queries&&t.queries.elementStart(t,I),I}(g,p,l,t,n):p.data[g];fs(E,!0);const I=dx(p,l,E,e);return l[g]=I,ki()&&Zh(p,l,I,E),x(I,l),hs(E)&&(_(p,l,E),d(p,E,l)),null!=n&&D(l,E),wv}function Ev(){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)),Ev}function S0(e,t,n){return wv(e,t,n),Ev(),S0}let dx=(e,t,n,l)=>(Zi(!0),Am(t[Rr],""));function hx(){return xn()}function A0(e,t,n){const l=xn();return Ks(l,Wa(),t)&&To(gi(),ur(),l,e,t,l[Rr],n,!0),A0}function T0(e,t,n){const l=xn();if(Ks(l,Wa(),t)){const g=gi(),E=ur();To(g,E,l,e,t,Bw(gt(g.data),E,l),n,!0)}return T0}const af=void 0;var RM=["en",[["a","p"],["AM","PM"],af],[["AM","PM"],af,af],[["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"]],af,[["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"]],af,[["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}",af,"{1} 'at' {0}",af],[".",",",";","%","+","-","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 Dp={};function M0(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 Xt(701,!1)}function fx(e){return M0(e)[Sp.PluralCase]}function px(e){return e in Dp||(Dp[e]=Zt.ng&&Zt.ng.common&&Zt.ng.common.locales&&Zt.ng.common.locales[e]),Dp[e]}var Sp=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}(Sp||{});const xv="en-US";let mx=xv,Rx=(e,t,n)=>{};function O0(e,t,n,l){const p=xn(),g=gi(),E=Mi();return N0(g,p,p[Rr],E,e,t,l),O0}function R0(e,t){const n=Mi(),l=xn(),p=gi();return N0(p,l,Bw(gt(p.data),n,l),n,e,t),R0}function N0(e,t,n,l,p,g,E){const I=hs(l),ie=e.firstCreatePass&&Fw(e),De=t[Fr],He=sp(t);let Lt=!0;if(3&l.type||E){const Nn=xs(l,t),qn=E?E(Nn):Nn,lr=He.length,Pn=E?Hi=>E(Xi(Hi[l.index])):l.index;let _i=null;if(!E&&I&&(_i=function Ck(e,t,n,l){const p=e.cleanup;if(null!=p)for(let g=0;gF?I[F]:null}"string"==typeof E&&(g+=2)}return null}(e,t,p,l.index)),null!==_i)(_i.__ngLastListenerFn__||_i).__ngNextListenerFn__=g,_i.__ngLastListenerFn__=g,Lt=!1;else{g=Lx(l,t,De,g),Rx(Nn,p,g);const Hi=n.listen(qn,p,g);He.push(g,Hi),ie&&ie.push(p,Pn,lr,lr+1)}}else g=Lx(l,t,De,g);const Ft=l.outputs;let nn;if(Lt&&null!==Ft&&(nn=Ft[p])){const Nn=nn.length;if(Nn)for(let qn=0;qn-1?P(e.index,t):t,5);let I=Nx(t,n,l,g),F=p.__ngNextListenerFn__;for(;F;)I=Nx(t,n,F,g)&&I,F=F.__ngNextListenerFn__;return I}}function Px(e=1){return function Qn(e){return(Wr.lFrame.contextLView=function fr(e,t){for(;e>0;)t=t[Va],e--;return t}(e,Wr.lFrame.contextLView))[Fr]}(e)}function Dk(e,t){let n=null;const l=function hb(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 qx(e=1){Wt(It()+e)}function Jx(e){return K(function Aa(){return Wr.lFrame.contextLView}(),rt+e)}function cC(e,t=""){const n=xn(),l=gi(),p=e+rt,g=l.firstCreatePass?ld(l,p,1,t,null):l.data[p],E=uC(l,n,g,t,e);n[p]=E,ki()&&Zh(l,n,E,g),fs(g,!1)}let uC=(e,t,n,l,p)=>(Zi(!0),function Sm(e,t){return e.createText(t)}(t[Rr],l));function B0(e){return Av("",e,""),B0}function Av(e,t,n){const l=xn(),p=gp(l,e,t,n);return p!==Si&&function cd(e,t,n){const l=Tr(t,e);!function C_(e,t,n){e.setValue(t,n)}(e[Rr],l,n)}(l,ir(),p),Av}function U0(e,t,n){R1(t)&&(t=t());const l=xn();return Ks(l,Wa(),t)&&To(gi(),ur(),l,e,t,l[Rr],n,!1),U0}function yC(e,t){const n=R1(e);return n&&e.set(t),n}function $0(e,t){const n=xn(),l=gi(),p=Mi();return N0(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 Ft=new Ss(ie,p,Xd),nn=H0(F,t,p?De:De+Lt,He);-1===nn?(lh(hu(I,E),g,F),V0(g,e,t.length),t.push(F),I.directiveStart++,I.directiveEnd++,p&&(I.providerIndexes+=1048576),n.push(Ft),E.push(Ft)):(n[nn]=Ft,E[nn]=Ft)}else{const Ft=H0(F,t,De+Lt,He),nn=H0(F,t,De,De+Lt),qn=nn>=0&&n[nn];if(p&&!qn||!p&&!(Ft>=0&&n[Ft])){lh(hu(I,E),g,F);const lr=function Wk(e,t,n,l,p){const g=new Ss(e,n,Xd);return g.multi=[],g.index=t,g.componentProviders=0,EC(g,p,l&&!n),g}(p?Hk:Vk,n.length,p,l,ie);!p&&qn&&(n[nn].providerFactory=lr),V0(g,e,t.length,0),t.push(F),I.directiveStart++,I.directiveEnd++,p&&(I.providerIndexes+=1048576),n.push(lr),E.push(lr)}else V0(g,e,Ft>-1?Ft:nn,EC(n[p?nn:Ft],ie,!p&&l));!p&&l&&qn&&n[nn].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 De=ie.indexOf(n);-1===De?ie.push(n,[l,F]):ie[De+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 jk(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=xn();return p[l]===Si?Iu(p,l,n?t.call(n):t()):rg(p,l)}function SC(e,t,n,l){return IC(xn(),js(),e,t,n,l)}function AC(e,t,n,l,p){return OC(xn(),js(),e,t,n,l,p)}function TC(e,t,n,l,p,g){return function RC(e,t,n,l,p,g,E,I){const F=t+n;return function uv(e,t,n,l,p){const g=rf(e,t,n,l);return Ks(e,t+2,p)||g}(e,F,p,g,E)?Iu(e,F+3,I?l.call(I,p,g,E):l(p,g,E)):pg(e,F+3)}(xn(),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,I,F){const ie=t+n;return Lc(e,ie,p,g,E,I)?Iu(e,ie+4,F?l.call(F,p,g,E,I):l(p,g,E,I)):pg(e,ie+4)}(xn(),js(),e,t,n,l,p,g,E)}function kC(e,t,n,l,p,g,E,I,F,ie,De){const He=js()+e,Lt=xn(),Ft=Lc(Lt,He,n,l,p,g);return Lc(Lt,He+4,E,I,F,ie)||Ft?Iu(Lt,He+8,De?t.call(De,n,l,p,g,E,I,F,ie):t(n,l,p,g,E,I,F,ie)):rg(Lt,He+8)}function pg(e,t){const n=e[t];return n===Si?void 0:n}function IC(e,t,n,l,p,g){const E=t+n;return Ks(e,E,p)?Iu(e,E+1,g?l.call(g,p):l(p)):pg(e,E+1)}function OC(e,t,n,l,p,g,E){const I=t+n;return rf(e,I,p,g)?Iu(e,I+2,E?l.call(E,p,g):l(p,g)):pg(e,I+2)}function PC(e,t){const n=gi();let l;const p=e+rt;n.firstCreatePass?(l=function qk(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)),I=wo(Xd);try{const F=gd(!1),ie=g();return gd(F),function F0(e,t,n,l){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=l}(n,xn(),p,ie),ie}finally{wo(I)}}function FC(e,t,n){const l=e+rt,p=xn(),g=K(p,l);return mg(p,l)?IC(p,js(),t,g.transform,n,g):g.transform(n)}function BC(e,t,n,l){const p=e+rt,g=xn(),E=K(g,p);return mg(g,p)?OC(g,js(),t,E.transform,n,l,E):E.transform(n,l)}function mg(e,t){return e[Gn].data[t].pure}function UC(e,t){return Q_(e,t)}class t2{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 TI{ngModuleFactory;componentFactories;constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let MI=(()=>{class e{compileModuleSync(n){return new Qb(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const l=this.compileModuleSync(n),g=$l(Or(n).declarations).reduce((E,I)=>{const F=Dr(I);return F&&E.push(new tg(F)),E},[]);return new TI(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})(),OI=(()=>{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:cr,multi:!0,useFactory:()=>{const l=tr(OI,{optional:!0});return()=>l.initialize()}},{provide:cr,multi:!0,useFactory:()=>{const l=tr(NI);return()=>{l.initialize()}}},!0===t?{provide:xf,useValue:!0}:[],{provide:vu,useValue:n??gh}]}function Z0(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}let NI=(()=>{class e{subscription=new en.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})(),_g=(()=>{class e{appRef=tr(Pc);taskService=tr(il);ngZone=tr(Vo);zonelessEnabled=tr(zu);tracing=tr(Rh,{optional:!0});disableScheduling=tr(xf,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new en.yU;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Xc):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(tr(vu,{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 Dd||!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?Ku:xd;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,Ku(()=>{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 LI(){return typeof $localize<"u"&&$localize.locale||xv}()}),PI=new ct("",{providedIn:"root",factory:()=>"USD"}),kv=new ct("");function Iv(e){return!e.moduleRef}let th=null;function zI(){return!1}let h2=(()=>class e{static __NG_ELEMENT_ID__=KI})();function KI(e){return function GI(e,t,n){if(Wo(e)&&!n){const l=P(e.index,t);return new Wm(l,l)}return 175&e.type?new Wm(t[ro],t):null}(Mi(),xn(),!(16&~e))}class g2{constructor(){}supports(t){return cv(t)}create(t){return new qI(t)}}const ZI=(e,t)=>t;class qI{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||ZI}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{E=this._trackByFn(p,I),null!==n&&Object.is(n.trackById,E)?(l&&(n=this._verifyReinsertion(n,I,E,p)),Object.is(n.item,I)||this._addIdentityChange(n,I)):(n=this._mismatch(n,I,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 JI(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 _2),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 _2),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 JI{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 _2{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 v2(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 b2(){return new ow([new g2])}let ow=(()=>{class e{factories;static \u0275prov=oi({token:e,providedIn:"root",factory:b2});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||b2()),deps:[[e,new Qo,new sa]]}}find(n){const l=this.factories.find(p=>p.supports(n));if(null!=l)return l;throw new Xt(901,!1)}}return e})();function w2(){return new sw([new y2])}let sw=(()=>{class e{static \u0275prov=oi({token:e,providedIn:"root",factory:w2});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||w2()),deps:[[e,new Qo,new sa]]}}find(n){const l=this.factories.find(p=>p.supports(n));if(l)return l;throw new Xt(901,!1)}}return e})();function gO(e){try{const{rootComponent:t,appProviders:n,platformProviders:l}=e,p=function WI(e=[]){if(th)return th;const t=function c2(e=[],t){return Ts.create({name:t,providers:[{provide:qo,useValue:"platform"},{provide:kv,useValue:new Set([()=>th=null])},...e]})}(e);return th=t,function SE(){!function wt(e){En=e}(()=>{throw new Xt(600,!1)})}(),function u2(e){const t=e.get(Ws,null);ja(e,()=>{t?.forEach(n=>n())})}(t),t}(l),g=[Q0({}),{provide:Ll,useExisting:_g},...n||[]];return function s2(e){const t=Iv(e)?e.r3Injector:e.moduleRef.injector,n=t.get(Vo);return n.run(()=>{Iv(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();const l=t.get(Sc,null);let p;if(n.runOutsideAngular(()=>{p=n.onError.subscribe({next:g=>{l.handleError(g)}})}),Iv(e)){const g=()=>t.destroy(),E=e.platformInjector.get(kv);E.add(g),t.onDestroy(()=>{p.unsubscribe(),E.delete(g)})}else{const g=()=>e.moduleRef.destroy(),E=e.platformInjector.get(kv);E.add(g),e.moduleRef.onDestroy(()=>{mv(e.allPlatformModules,e.moduleRef),p.unsubscribe(),E.delete(g)})}return function lT(e,t,n){try{const l=n();return l0(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(J0,xv)||xv),Iv(e)){const I=t.get(Pc);return void 0!==e.rootComponent&&I.bootstrap(e.rootComponent),I}return function jI(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 Xt(-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=_t(e);return t?.equal&&(n[C].equal=t.equal),n}function Mp(e){const t=A(null);try{return e()}finally{A(t)}}let Y2=(()=>class e{view;node;constructor(n,l){this.view=n,this.node=l}static __NG_ELEMENT_ID__=KO})();function KO(){return new Y2(xn(),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 qe(e,t,n){const l=Object.create(tn);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 T(){return y}())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(l.dirty=!1,l.hasRun&&!Se(l))return;l.hasRun=!0;const F=Ce(l);try{l.cleanupFn(),l.cleanupFn=Nt,l.fn(p)}finally{Ne(l,F)}},cleanup:()=>l.cleanupFn(),destroy:()=>function E(F){(function g(F){return null===F.fn&&null===F.schedule})(F)||(xe(F),F.cleanupFn(),F.fn=null,F.schedule=null,F.cleanupFn=Nt)}(l),[C]:l},l.ref}(I=>this.runEffect(I),()=>this.schedule(),E),this.unregisterOnDestroy=p?.onDestroy(()=>this.destroy())}runEffect(t){try{this.effectFn(t)}catch(n){this.injector.get(Sc,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(h2,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(Y2,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(u0),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 Q2={...R,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,hasRun:!1,cleanupFns:void 0,zone:null,onDestroyFn:yu,run(){if(this.dirty=!1,this.hasRun&&!Se(this))return;this.hasRun=!0;const e=l=>(this.cleanupFns??=[]).push(l),t=Ce(this),n=ea(!1);try{this.maybeCleanup(),this.fn(e)}finally{ea(n),Ne(this,t)}},maybeCleanup(){if(this.cleanupFns?.length)try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[]}}},JO={...Q2,consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(13)},destroy(){xe(this),this.onDestroyFn(),this.maybeCleanup()}},eR={...Q2,consumerMarkedDirty(){this.view[Ar]|=8192,io(this.view),this.notifier.notify(14)},destroy(){xe(this),this.onDestroyFn(),this.maybeCleanup(),this.view[q]?.delete(this)}};function uR(e,t){const n=Dr(e),l=t.elementInjector||wl();return new tg(n).create(l,t.projectableNodes,t.hostElement,t.environmentInjector)}function dR(e){const t=Dr(e);if(!t)return null;const n=new tg(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}}}},936:(o,s,r)=>{"use strict";r.d(s,{BC:()=>an,JD:()=>tr,Q0:()=>ma,X1:()=>ya,YN:()=>Qa,cV:()=>On,cb:()=>Yn,cz:()=>Te,hs:()=>Ir,j4:()=>cs,k0:()=>Se,kq:()=>T,l_:()=>ns,me:()=>be,ok:()=>lo,qT:()=>Sr,tU:()=>Fn,vO:()=>pn,vS:()=>ia,xq:()=>Ya,ze:()=>Oo});var i=r(3107),a=r(4460),c=r(1787),y=r(2653),w=r(8447),C=r(7947);let A=(()=>{class ue{_renderer;_elementRef;onChange=Q=>{};onTouched=()=>{};constructor(Q,Pe){this._renderer=Q,this._elementRef=Pe}setProperty(Q,Pe){this._renderer.setProperty(this._elementRef.nativeElement,Q,Pe)}registerOnTouched(Q){this.onTouched=Q}registerOnChange(Q){this.onChange=Q}setDisabledState(Q){this.setProperty("disabled",Q)}static \u0275fac=function(Pe){return new(Pe||ue)(i.rXU(i.sFG),i.rXU(i.aKT))};static \u0275dir=i.FsC({type:ue})}return ue})(),S=(()=>{class ue extends A{static \u0275fac=(()=>{let Q;return function(jt){return(Q||(Q=i.xGo(ue)))(jt||ue)}})();static \u0275dir=i.FsC({type:ue,features:[i.Vt3]})}return ue})();const T=new i.nKC(""),G={provide:T,useExisting:(0,i.Rfq)(()=>be),multi:!0},te=new i.nKC("");let be=(()=>{class ue extends A{_compositionMode;_composing=!1;constructor(Q,Pe,jt){super(Q,Pe),this._compositionMode=jt,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(Pe){return new(Pe||ue)(i.rXU(i.sFG),i.rXU(i.aKT),i.rXU(te,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(Pe,jt){1&Pe&&i.bIt("input",function(ni){return jt._handleInput(ni.target.value)})("blur",function(){return jt.onTouched()})("compositionstart",function(){return jt._compositionStart()})("compositionend",function(ni){return jt._compositionEnd(ni.target.value)})},standalone:!1,features:[i.Jv_([G]),i.Vt3]})}return ue})();function _e(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(""),Ce=new i.nKC(""),Ne=/^(?=.{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 Se{static min(ce){return function xe(ue){return ce=>{if(_e(ce.value)||_e(ue))return null;const Q=parseFloat(ce.value);return!isNaN(Q)&&Q{if(_e(ce.value)||_e(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 le(ce)}static requiredTrue(ce){return ke(ce)}static email(ce){return function Ue(ue){return _e(ue.value)||Ne.test(ue.value)?null:{email:!0}}(ce)}static minLength(ce){return function st(ue){return ce=>_e(ce.value)||!pe(ce.value)?null:ce.value.length{if(_e(Pe.value))return null;const jt=Pe.value;return ce.test(jt)?null:{pattern:{requiredPattern:Q,actualValue:jt}}}}(ce)}static nullValidator(ce){return null}static compose(ce){return wt(ce)}static composeAsync(ce){return Be(ce)}}function le(ue){return _e(ue.value)?{required:!0}:null}function ke(ue){return!0===ue.value?null:{required:!0}}function ft(ue){return ce=>pe(ce.value)&&ce.value.length>ue?{maxlength:{requiredLength:ue,actualLength:ce.value.length}}:null}function ot(ue){return null}function Yt(ue){return null!=ue}function un(ue){return(0,i.jNT)(ue)?(0,c.H)(ue):ue}function wn(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 Ze(ue){return ue.map(ce=>function En(ue){return!ue.validate}(ce)?ce:Q=>ce.validate(Q))}function wt(ue){if(!ue)return null;const ce=ue.filter(Yt);return 0==ce.length?null:function(Q){return wn($n(Q,ce))}}function ze(ue){return null!=ue?wt(Ze(ue)):null}function Be(ue){if(!ue)return null;const ce=ue.filter(Yt);return 0==ce.length?null:function(Q){const Pe=$n(Q,ce).map(un);return(0,y.p)(Pe).pipe((0,C.T)(wn))}}function Ut(ue){return null!=ue?Be(Ze(ue)):null}function Ke(ue,ce){return null===ue?[ce]:Array.isArray(ue)?[...ue,ce]:[ue,ce]}function lt(ue){return ue._rawValidators}function Xe(ue){return ue._rawAsyncValidators}function Ge(ue){return ue?Array.isArray(ue)?ue:[ue]:[]}function pt(ue,ce){return Array.isArray(ue)?ue.includes(ce):ue===ce}function se(ue,ce){const Q=Ge(ce);return Ge(ue).forEach(jt=>{pt(Q,jt)||Q.push(jt)}),Q}function qe(ue,ce){return Ge(ce).filter(Q=>!pt(ue,Q))}class Nt{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=Ut(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 tn extends Nt{name;get formDirective(){return null}get path(){return null}}class pn extends Nt{_parent=null;name=null;valueAccessor=null}class Wn{_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 Wn{constructor(Q){super(Q)}static \u0275fac=function(Pe){return new(Pe||ue)(i.rXU(pn,2))};static \u0275dir=i.FsC({type:ue,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(Pe,jt){2&Pe&&i.AVh("ng-untouched",jt.isUntouched)("ng-touched",jt.isTouched)("ng-pristine",jt.isPristine)("ng-dirty",jt.isDirty)("ng-valid",jt.isValid)("ng-invalid",jt.isInvalid)("ng-pending",jt.isPending)},standalone:!1,features:[i.Vt3]})}return ue})(),Yn=(()=>{class ue extends Wn{constructor(Q){super(Q)}static \u0275fac=function(Pe){return new(Pe||ue)(i.rXU(tn,10))};static \u0275dir=i.FsC({type:ue,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(Pe,jt){2&Pe&&i.AVh("ng-untouched",jt.isUntouched)("ng-touched",jt.isTouched)("ng-pristine",jt.isPristine)("ng-dirty",jt.isDirty)("ng-valid",jt.isValid)("ng-invalid",jt.isInvalid)("ng-pending",jt.isPending)("ng-submitted",jt.isSubmitted)},standalone:!1,features:[i.Vt3]})}return ue})();const In="VALID",Bn="INVALID",Hn="PENDING",xr="DISABLED";class ti{}class Xr extends ti{value;source;constructor(ce,Q){super(),this.value=ce,this.source=Q}}class vt extends ti{pristine;source;constructor(ce,Q){super(),this.pristine=ce,this.source=Q}}class $t extends ti{touched;source;constructor(ce,Q){super(),this.touched=ce,this.source=Q}}class Ee extends ti{status;source;constructor(ce,Q){super(),this.status=ce,this.source=Q}}class at extends ti{source;constructor(ce){super(),this.source=ce}}class Fe extends ti{source;constructor(ce){super(),this.source=ce}}function Rt(ue){return(or(ue)?ue.validators:ue)||null}function Bt(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 Pe=ue.controls;if(!(ce?Object.keys(Pe):Pe).length)throw new i.wOt(1e3,"");if(!Pe[Q])throw new i.wOt(1001,"")}function ii(ue,ce,Q){ue._forEachChild((Pe,jt)=>{if(void 0===Q[jt])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===In}get invalid(){return this.status===Bn}get pending(){return this.status==Hn}get disabled(){return this.status===xr}get enabled(){return this.status!==xr}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(qe(ce,this._rawValidators))}removeAsyncValidators(ce){this.setAsyncValidators(qe(ce,this._rawAsyncValidators))}hasValidator(ce){return pt(this._rawValidators,ce)}hasAsyncValidator(ce){return pt(this._rawAsyncValidators,ce)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(ce={}){const Q=!1===this.touched;this.touched=!0;const Pe=ce.sourceControl??this;this._parent&&!ce.onlySelf&&this._parent.markAsTouched({...ce,sourceControl:Pe}),Q&&!1!==ce.emitEvent&&this._events.next(new $t(!0,Pe))}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 Pe=ce.sourceControl??this;this._forEachChild(jt=>{jt.markAsUntouched({onlySelf:!0,emitEvent:ce.emitEvent,sourceControl:Pe})}),this._parent&&!ce.onlySelf&&this._parent._updateTouched(ce,Pe),Q&&!1!==ce.emitEvent&&this._events.next(new $t(!1,Pe))}markAsDirty(ce={}){const Q=!0===this.pristine;this.pristine=!1;const Pe=ce.sourceControl??this;this._parent&&!ce.onlySelf&&this._parent.markAsDirty({...ce,sourceControl:Pe}),Q&&!1!==ce.emitEvent&&this._events.next(new vt(!1,Pe))}markAsPristine(ce={}){const Q=!1===this.pristine;this.pristine=!0,this._pendingDirty=!1;const Pe=ce.sourceControl??this;this._forEachChild(jt=>{jt.markAsPristine({onlySelf:!0,emitEvent:ce.emitEvent})}),this._parent&&!ce.onlySelf&&this._parent._updatePristine(ce,Pe),Q&&!1!==ce.emitEvent&&this._events.next(new vt(!0,Pe))}markAsPending(ce={}){this.status=Hn;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=xr,this.errors=null,this._forEachChild(jt=>{jt.disable({...ce,onlySelf:!0})}),this._updateValue();const Pe=ce.sourceControl??this;!1!==ce.emitEvent&&(this._events.next(new Xr(this.value,Pe)),this._events.next(new Ee(this.status,Pe)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...ce,skipPristineCheck:Q},this),this._onDisabledChange.forEach(jt=>jt(!0))}enable(ce={}){const Q=this._parentMarkedDirty(ce.onlySelf);this.status=In,this._forEachChild(Pe=>{Pe.enable({...ce,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:ce.emitEvent}),this._updateAncestors({...ce,skipPristineCheck:Q},this),this._onDisabledChange.forEach(Pe=>Pe(!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 Pe=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===In||this.status===Hn)&&this._runAsyncValidator(Pe,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()?xr:In}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(ce,Q){if(this.asyncValidator){this.status=Hn,this._hasOwnPendingAsyncValidator={emitEvent:!1!==Q};const Pe=un(this.asyncValidator(this));this._asyncValidationSubscription=Pe.subscribe(jt=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(jt,{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((Pe,jt)=>Pe&&Pe._find(jt),this)}getError(ce,Q){const Pe=Q?this.get(Q):this;return Pe&&Pe.errors?Pe.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,Pe){this.status=this._calculateStatus(),ce&&this.statusChanges.emit(this.status),(ce||Pe)&&this._events.next(new Ee(this.status,Q)),this._parent&&this._parent._updateControlsErrors(ce,Q,Pe)}_initObservables(){this.valueChanges=new i.bkB,this.statusChanges=new i.bkB}_calculateStatus(){return this._allControlsDisabled()?xr:this.errors?Bn:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Hn)?Hn:this._anyControlsHaveStatus(Bn)?Bn:In}_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 Pe=!this._anyControlsDirty(),jt=this.pristine!==Pe;this.pristine=Pe,this._parent&&!ce.onlySelf&&this._parent._updatePristine(ce,Q),jt&&this._events.next(new vt(this.pristine,Q))}_updateTouched(ce={},Q){this.touched=this._anyControlsTouched(),this._events.next(new $t(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 dt(ue){return Array.isArray(ue)?ze(ue):ue||null}(this._rawValidators)}_assignAsyncValidators(ce){this._rawAsyncValidators=Array.isArray(ce)?ce.slice():ce,this._composedAsyncValidatorFn=function _n(ue){return Array.isArray(ue)?Ut(ue):ue||null}(this._rawAsyncValidators)}}class Ai extends ci{constructor(ce,Q,Pe){super(Rt(Q),Bt(Pe,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,Pe={}){this.registerControl(ce,Q),this.updateValueAndValidity({emitEvent:Pe.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,Pe={}){this.controls[ce]&&this.controls[ce]._registerOnCollectionChange(()=>{}),delete this.controls[ce],Q&&this.registerControl(ce,Q),this.updateValueAndValidity({emitEvent:Pe.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(Pe=>{Mr(this,!0,Pe),this.controls[Pe].setValue(ce[Pe],{onlySelf:!0,emitEvent:Q.emitEvent})}),this.updateValueAndValidity(Q)}patchValue(ce,Q={}){null!=ce&&(Object.keys(ce).forEach(Pe=>{const jt=this.controls[Pe];jt&&jt.patchValue(ce[Pe],{onlySelf:!0,emitEvent:Q.emitEvent})}),this.updateValueAndValidity(Q))}reset(ce={},Q={}){this._forEachChild((Pe,jt)=>{Pe.reset(ce?ce[jt]:null,{onlySelf:!0,emitEvent:Q.emitEvent})}),this._updatePristine(Q,this),this._updateTouched(Q,this),this.updateValueAndValidity(Q)}getRawValue(){return this._reduceChildren({},(ce,Q,Pe)=>(ce[Pe]=Q.getRawValue(),ce))}_syncPendingControls(){let ce=this._reduceChildren(!1,(Q,Pe)=>!!Pe._syncPendingControls()||Q);return ce&&this.updateValueAndValidity({onlySelf:!0}),ce}_forEachChild(ce){Object.keys(this.controls).forEach(Q=>{const Pe=this.controls[Q];Pe&&ce(Pe,Q)})}_setUpControls(){this._forEachChild(ce=>{ce.setParent(this),ce._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(ce){for(const[Q,Pe]of Object.entries(this.controls))if(this.contains(Q)&&ce(Pe))return!0;return!1}_reduceValue(){return this._reduceChildren({},(Q,Pe,jt)=>((Pe.enabled||this.disabled)&&(Q[jt]=Pe.value),Q))}_reduceChildren(ce,Q){let Pe=ce;return this._forEachChild((jt,gr)=>{Pe=Q(Pe,jt,gr)}),Pe}_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 St extends Ai{}const zn=new i.nKC("CallSetDisabledState",{providedIn:"root",factory:()=>hr}),hr="always";function uo(ue,ce){return[...ce.path,ue]}function Oi(ue,ce,Q=hr){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&&ks(ue,ce)})}(ue,ce),function eo(ue,ce){const Q=(Pe,jt)=>{ce.valueAccessor.writeValue(Pe),jt&&ce.viewToModelUpdate(Pe)};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&&ks(ue,ce),"submit"!==ue.updateOn&&ue.markAsTouched()})}(ue,ce),function ts(ue,ce){if(ce.valueAccessor.setDisabledState){const Q=Pe=>{ce.valueAccessor.setDisabledState(Pe)};ue.registerOnDisabledChange(Q),ce._registerOnDestroy(()=>{ue._unregisterOnDisabledChange(Q)})}}(ue,ce)}function Uo(ue,ce,Q=!0){const Pe=()=>{};ce.valueAccessor&&(ce.valueAccessor.registerOnChange(Pe),ce.valueAccessor.registerOnTouched(Pe)),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=lt(ue);null!==ce.validator?ue.setValidators(Ke(Q,ce.validator)):"function"==typeof Q&&ue.setValidators([Q]);const Pe=Xe(ue);null!==ce.asyncValidator?ue.setAsyncValidators(Ke(Pe,ce.asyncValidator)):"function"==typeof Pe&&ue.setAsyncValidators([Pe]);const jt=()=>ue.updateValueAndValidity();oi(ce._rawValidators,jt),oi(ce._rawAsyncValidators,jt)}function bo(ue,ce){let Q=!1;if(null!==ue){if(null!==ce.validator){const jt=lt(ue);if(Array.isArray(jt)&&jt.length>0){const gr=jt.filter(ni=>ni!==ce.validator);gr.length!==jt.length&&(Q=!0,ue.setValidators(gr))}}if(null!==ce.asyncValidator){const jt=Xe(ue);if(Array.isArray(jt)&&jt.length>0){const gr=jt.filter(ni=>ni!==ce.asyncValidator);gr.length!==jt.length&&(Q=!0,ue.setAsyncValidators(gr))}}}const Pe=()=>{};return oi(ce._rawValidators,Pe),oi(ce._rawAsyncValidators,Pe),Q}function ks(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 tt(ue,ce){if(!ue.hasOwnProperty("model"))return!1;const Q=ue.model;return!!Q.isFirstChange()||!Object.is(ce,Q.currentValue)}function ht(ue,ce){ue._syncPendingControls(),ce.forEach(Q=>{const Pe=Q.control;"submit"===Pe.updateOn&&Pe._pendingChange&&(Q.viewToModelUpdate(Pe._pendingValue),Pe._pendingChange=!1)})}function Vt(ue,ce){if(!ce)return null;let Q,Pe,jt;return Array.isArray(ce),ce.forEach(gr=>{gr.constructor===be?Q=gr:function Oe(ue){return Object.getPrototypeOf(ue.constructor)===S}(gr)?Pe=gr:jt=gr}),jt||Pe||Q||null}const Cn={provide:tn,useExisting:(0,i.Rfq)(()=>On)},An=Promise.resolve();let On=(()=>{class ue extends tn{callSetDisabledState;get submitted(){return(0,i.O8t)(this.submittedReactive)}_submitted=(0,i.EWP)(()=>this.submittedReactive());submittedReactive=(0,i.vPA)(!1);_directives=new Set;form;ngSubmit=new i.bkB;options;constructor(Q,Pe,jt){super(),this.callSetDisabledState=jt,this.form=new Ai({},ze(Q),Ut(Pe))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(Q){An.then(()=>{const Pe=this._findContainer(Q.path);Q.control=Pe.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){An.then(()=>{const Pe=this._findContainer(Q.path);Pe&&Pe.removeControl(Q.name),this._directives.delete(Q)})}addFormGroup(Q){An.then(()=>{const Pe=this._findContainer(Q.path),jt=new Ai({});oo(jt,Q),Pe.registerControl(Q.name,jt),jt.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(Q){An.then(()=>{const Pe=this._findContainer(Q.path);Pe&&Pe.removeControl(Q.name)})}getFormGroup(Q){return this.form.get(Q.path)}updateModel(Q,Pe){An.then(()=>{this.form.get(Q.path).setValue(Pe)})}setValue(Q){this.control.setValue(Q)}onSubmit(Q){return this.submittedReactive.set(!0),ht(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(Pe){return new(Pe||ue)(i.rXU(Te,10),i.rXU(Ce,10),i.rXU(zn,8))};static \u0275dir=i.FsC({type:ue,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(Pe,jt){1&Pe&&i.bIt("submit",function(ni){return jt.onSubmit(ni)})("reset",function(){return jt.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,Pe){super(Rt(Q),Bt(Pe,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(Pe=>Pe(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}},Ir=sr,ls={provide:pn,useExisting:(0,i.Rfq)(()=>ia)},ws=Promise.resolve();let ia=(()=>{class ue extends pn{_changeDetectorRef;callSetDisabledState;control=new sr;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new i.bkB;constructor(Q,Pe,jt,gr,ni,Do){super(),this._changeDetectorRef=ni,this.callSetDisabledState=Do,this._parent=Q,this._setValidators(Pe),this._setAsyncValidators(jt),this.valueAccessor=Vt(0,gr)}ngOnChanges(Q){if(this._checkForErrors(),!this._registered||"name"in Q){if(this._registered&&(this._checkName(),this.formDirective)){const Pe=Q.name.previousValue;this.formDirective.removeControl({name:Pe,path:this._getPath(Pe)})}this._setUpControl()}"isDisabled"in Q&&this._updateDisabled(Q),tt(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 Pe=Q.isDisabled.currentValue,jt=0!==Pe&&(0,i.L39)(Pe);ws.then(()=>{jt&&!this.control.disabled?this.control.disable():!jt&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(Q){return this._parent?uo(Q,this._parent):[Q]}static \u0275fac=function(Pe){return new(Pe||ue)(i.rXU(tn,9),i.rXU(Te,10),i.rXU(Ce,10),i.rXU(T,10),i.rXU(i.gRc,8),i.rXU(zn,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_([ls]),i.Vt3,i.OA$]})}return ue})(),Sr=(()=>{class ue{static \u0275fac=function(Pe){return new(Pe||ue)};static \u0275dir=i.FsC({type:ue,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return ue})();const oa={provide:T,useExisting:(0,i.Rfq)(()=>ma),multi:!0};let ma=(()=>{class ue extends S{writeValue(Q){this.setProperty("value",Q??"")}registerOnChange(Q){this.onChange=Pe=>{Q(""==Pe?null:parseFloat(Pe))}}static \u0275fac=(()=>{let Q;return function(jt){return(Q||(Q=i.xGo(ue)))(jt||ue)}})();static \u0275dir=i.FsC({type:ue,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(Pe,jt){1&Pe&&i.bIt("input",function(ni){return jt.onChange(ni.target.value)})("blur",function(){return jt.onTouched()})},standalone:!1,features:[i.Jv_([oa]),i.Vt3]})}return ue})();const Ni=new i.nKC(""),Fs={provide:pn,useExisting:(0,i.Rfq)(()=>ns)};let ns=(()=>{class ue extends pn{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(Q){}model;update=new i.bkB;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(Q,Pe,jt,gr,ni){super(),this._ngModelWarningConfig=gr,this.callSetDisabledState=ni,this._setValidators(Q),this._setAsyncValidators(Pe),this.valueAccessor=Vt(0,jt)}ngOnChanges(Q){if(this._isControlChanged(Q)){const Pe=Q.form.previousValue;Pe&&Uo(Pe,this,!1),Oi(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}tt(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(Pe){return new(Pe||ue)(i.rXU(Te,10),i.rXU(Ce,10),i.rXU(T,10),i.rXU(Ni,8),i.rXU(zn,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:tn,useExisting:(0,i.Rfq)(()=>cs)};let cs=(()=>{class ue extends tn{callSetDisabledState;get submitted(){return(0,i.O8t)(this._submittedReactive)}set submitted(Q){this._submittedReactive.set(Q)}_submitted=(0,i.EWP)(()=>this._submittedReactive());_submittedReactive=(0,i.vPA)(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];form=null;ngSubmit=new i.bkB;constructor(Q,Pe,jt){super(),this.callSetDisabledState=jt,this._setValidators(Q),this._setAsyncValidators(Pe)}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 Pe=this.form.get(Q.path);return Oi(Pe,Q,this.callSetDisabledState),Pe.updateValueAndValidity({emitEvent:!1}),this.directives.push(Q),Pe}getControl(Q){return this.form.get(Q.path)}removeControl(Q){Uo(Q.control||null,Q,!1),function kt(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,Pe){this.form.get(Q.path).setValue(Pe)}onSubmit(Q){return this._submittedReactive.set(!0),ht(this.form,this.directives),this.ngSubmit.emit(Q),this.form._events.next(new at(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 Fe(this.form))}_updateDomValue(){this.directives.forEach(Q=>{const Pe=Q.control,jt=this.form.get(Q.path);Pe!==jt&&(Uo(Pe||null,Q),(ue=>ue instanceof sr)(jt)&&(Oi(jt,Q,this.callSetDisabledState),Q.control=jt))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(Q){const Pe=this.form.get(Q.path);oo(Pe,Q),Pe.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(Q){if(this.form){const Pe=this.form.get(Q.path);Pe&&function Bi(ue,ce){return bo(ue,ce)}(Pe,Q)&&Pe.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(Pe){return new(Pe||ue)(i.rXU(Te,10),i.rXU(Ce,10),i.rXU(zn,8))};static \u0275dir=i.FsC({type:ue,selectors:[["","formGroup",""]],hostBindings:function(Pe,jt){1&Pe&&i.bIt("submit",function(ni){return jt.onSubmit(ni)})("reset",function(){return jt.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:pn,useExisting:(0,i.Rfq)(()=>tr)};let tr=(()=>{class ue extends pn{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(Q){}model;update=new i.bkB;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(Q,Pe,jt,gr,ni){super(),this._ngModelWarningConfig=ni,this._parent=Q,this._setValidators(Pe),this._setAsyncValidators(jt),this.valueAccessor=Vt(0,gr)}ngOnChanges(Q){this._added||this._setUpControl(),tt(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(Pe){return new(Pe||ue)(i.rXU(tn,13),i.rXU(Te,10),i.rXU(Ce,10),i.rXU(T,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 vo=(()=>{class ue{_validator=ot;_onChange;_enabled;ngOnChanges(Q){if(this.inputName in Q){const Pe=this.normalizeInput(Q[this.inputName].currentValue);this._enabled=this.enabled(Pe),this._validator=this._enabled?this.createValidator(Pe):ot,this._onChange&&this._onChange()}}validate(Q){return this._validator(Q)}registerOnValidatorChange(Q){this._onChange=Q}enabled(Q){return null!=Q}static \u0275fac=function(Pe){return new(Pe||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 vo{required;inputName="required";normalizeInput=i.L39;createValidator=Q=>le;enabled(Q){return Q}static \u0275fac=(()=>{let Q;return function(jt){return(Q||(Q=i.xGo(ue)))(jt||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(Pe,jt){2&Pe&&i.BMQ("required",jt._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[i.Jv_([Qs]),i.Vt3]})}return ue})(),Ya=(()=>{class ue extends Xa{createValidator=Q=>ke;static \u0275fac=(()=>{let Q;return function(jt){return(Q||(Q=i.xGo(ue)))(jt||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(Pe,jt){2&Pe&&i.BMQ("required",jt._enabled?"":null)},standalone:!1,features:[i.Jv_([bl]),i.Vt3]})}return ue})();const Et={provide:Te,useExisting:(0,i.Rfq)(()=>Fn),multi:!0};let Fn=(()=>{class ue extends vo{maxlength;inputName="maxlength";normalizeInput=Q=>function ao(ue){return"number"==typeof ue?ue:parseInt(ue,10)}(Q);createValidator=Q=>ft(Q);static \u0275fac=(()=>{let Q;return function(jt){return(Q||(Q=i.xGo(ue)))(jt||ue)}})();static \u0275dir=i.FsC({type:ue,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(Pe,jt){2&Pe&&i.BMQ("maxlength",jt._enabled?jt.maxlength:null)},inputs:{maxlength:"maxlength"},standalone:!1,features:[i.Jv_([Et]),i.Vt3]})}return ue})(),Or=(()=>{class ue{static \u0275fac=function(Pe){return new(Pe||ue)};static \u0275mod=i.$C({type:ue});static \u0275inj=i.G2t({})}return ue})();class Dr extends ci{constructor(ce,Q,Pe){super(Rt(Q),Bt(Pe,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,Pe={}){this.controls.splice(ce,0,Q),this._registerControl(Q),this.updateValueAndValidity({emitEvent:Pe.emitEvent})}removeAt(ce,Q={}){let Pe=this._adjustIndex(ce);Pe<0&&(Pe=0),this.controls[Pe]&&this.controls[Pe]._registerOnCollectionChange(()=>{}),this.controls.splice(Pe,1),this.updateValueAndValidity({emitEvent:Q.emitEvent})}setControl(ce,Q,Pe={}){let jt=this._adjustIndex(ce);jt<0&&(jt=0),this.controls[jt]&&this.controls[jt]._registerOnCollectionChange(()=>{}),this.controls.splice(jt,1),Q&&(this.controls.splice(jt,0,Q),this._registerControl(Q)),this.updateValueAndValidity({emitEvent:Pe.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(ce,Q={}){ii(this,0,ce),ce.forEach((Pe,jt)=>{Mr(this,!1,jt),this.at(jt).setValue(Pe,{onlySelf:!0,emitEvent:Q.emitEvent})}),this.updateValueAndValidity(Q)}patchValue(ce,Q={}){null!=ce&&(ce.forEach((Pe,jt)=>{this.at(jt)&&this.at(jt).patchValue(Pe,{onlySelf:!0,emitEvent:Q.emitEvent})}),this.updateValueAndValidity(Q))}reset(ce=[],Q={}){this._forEachChild((Pe,jt)=>{Pe.reset(ce[jt],{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,Pe)=>!!Pe._syncPendingControls()||Q,!1);return ce&&this.updateValueAndValidity({onlySelf:!0}),ce}_forEachChild(ce){this.controls.forEach((Q,Pe)=>{ce(Q,Pe)})}_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,Pe=null){const jt=this._reduceControls(Q);let gr={};return ho(Pe)?gr=Pe:null!==Pe&&(gr.validators=Pe.validator,gr.asyncValidators=Pe.asyncValidator),new Ai(jt,gr)}record(Q,Pe=null){const jt=this._reduceControls(Q);return new St(jt,Pe)}control(Q,Pe,jt){let gr={};return this.useNonNullable?(ho(Pe)?gr=Pe:(gr.validators=Pe,gr.asyncValidators=jt),new sr(Q,{...gr,nonNullable:!0})):new sr(Q,Pe,jt)}array(Q,Pe,jt){const gr=Q.map(ni=>this._createControl(ni));return new Dr(gr,Pe,jt)}_reduceControls(Q){const Pe={};return Object.keys(Q).forEach(jt=>{Pe[jt]=this._createControl(Q[jt])}),Pe}_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(Pe){return new(Pe||ue)};static \u0275prov=i.jDH({token:ue,factory:ue.\u0275fac,providedIn:"root"})}return ue})(),Oo=(()=>{class ue extends lo{group(Q,Pe=null){return super.group(Q,Pe)}control(Q,Pe,jt){return super.control(Q,Pe,jt)}array(Q,Pe,jt){return super.array(Q,Pe,jt)}static \u0275fac=(()=>{let Q;return function(jt){return(Q||(Q=i.xGo(ue)))(jt||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:zn,useValue:Q.callSetDisabledState??hr}]}}static \u0275fac=function(Pe){return new(Pe||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:zn,useValue:Q.callSetDisabledState??hr}]}}static \u0275fac=function(Pe){return new(Pe||ue)};static \u0275mod=i.$C({type:ue});static \u0275inj=i.G2t({imports:[Or]})}return ue})()},9471:(o,s,r)=>{"use strict";r.d(s,{$z:()=>ae,Hl:()=>$n,iY:()=>un,pQ:()=>wn});var i=r(3107),a=r(8559),c=r(2147),y=r(2902),w=r(5467);const C=["mat-button",""],A=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],S=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],k="@media(forced-colors: active){.mat-mdc-button:not(.mdc-button--outlined),.mat-mdc-unelevated-button:not(.mdc-button--outlined),.mat-mdc-raised-button:not(.mdc-button--outlined),.mat-mdc-outlined-button:not(.mdc-button--outlined),.mat-mdc-icon-button.mat-mdc-icon-button{outline:solid 1px}}",te=["mat-icon-button",""],be=["*"],pe=new i.nKC("MAT_BUTTON_CONFIG"),Ce=[{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 Ne=(()=>{class En{_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(wt){this._disableRipple=wt,this._updateRippleDisabled()}_disableRipple=!1;get disabled(){return this._disabled}set disabled(wt){this._disabled=wt,this._updateRippleDisabled()}_disabled=!1;ariaDisabled;disabledInteractive;constructor(){(0,i.WQX)(w.l).load(y.Ah);const wt=(0,i.WQX)(pe,{optional:!0}),ze=this._elementRef.nativeElement,Be=ze.classList;this.disabledInteractive=wt?.disabledInteractive??!1,this.color=wt?.color??null,this._rippleLoader?.configureRipple(ze,{className:"mat-mdc-button-ripple"});for(const{attribute:Ut,mdcClasses:Ke}of Ce)ze.hasAttribute(Ut)&&Be.add(...Ke)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(wt="program",ze){wt?this._focusMonitor.focusVia(this._elementRef.nativeElement,wt,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||En)};static \u0275dir=i.FsC({type:En,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 En})(),xe=(()=>{class En extends Ne{tabIndex;ngOnInit(){this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)})}ngOnDestroy(){super.ngOnDestroy(),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}_haltDisabledEvents=wt=>{this.disabled&&(wt.preventDefault(),wt.stopImmediatePropagation())};_getAriaDisabled(){return null!=this.ariaDisabled?this.ariaDisabled:this.disabled||null}static \u0275fac=(()=>{let wt;return function(Be){return(wt||(wt=i.xGo(En)))(Be||En)}})();static \u0275dir=i.FsC({type:En,inputs:{tabIndex:[2,"tabIndex","tabIndex",wt=>null==wt?void 0:(0,i.Udg)(wt)]},features:[i.GFd,i.Vt3]})}return En})(),ae=(()=>{class En extends Ne{static \u0275fac=(()=>{let wt;return function(Be){return(wt||(wt=i.xGo(En)))(Be||En)}})();static \u0275cmp=i.VBU({type:En,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:14,hostBindings:function(ze,Be){2&ze&&(i.BMQ("disabled",Be._getDisabledAttribute())("aria-disabled",Be._getAriaDisabled()),i.HbH(Be.color?"mat-"+Be.color:""),i.AVh("mat-mdc-button-disabled",Be.disabled)("mat-mdc-button-disabled-interactive",Be.disabledInteractive)("_mat-animation-noopable","NoopAnimations"===Be._animationMode)("mat-unthemed",!Be.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,Be){1&ze&&(i.NAR(A),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",!Be._isFab)("mdc-fab__ripple",Be._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 En})(),un=(()=>{class En extends Ne{constructor(){super(),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static \u0275fac=function(ze){return new(ze||En)};static \u0275cmp=i.VBU({type:En,selectors:[["button","mat-icon-button",""]],hostVars:14,hostBindings:function(ze,Be){2&ze&&(i.BMQ("disabled",Be._getDisabledAttribute())("aria-disabled",Be._getAriaDisabled()),i.HbH(Be.color?"mat-"+Be.color:""),i.AVh("mat-mdc-button-disabled",Be.disabled)("mat-mdc-button-disabled-interactive",Be.disabledInteractive)("_mat-animation-noopable","NoopAnimations"===Be._animationMode)("mat-unthemed",!Be.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],features:[i.Vt3],attrs:te,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,Be){1&ze&&(i.NAR(),i.nrm(0,"span",0),i.SdG(1),i.nrm(2,"span",1)(3,"span",2))},styles:['.mat-mdc-icon-button{-webkit-user-select:none;user-select:none;display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;z-index:0;overflow:visible;border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 40px);height:var(--mdc-icon-button-state-layer-size, 40px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 40px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size, 24px);color:var(--mdc-icon-button-icon-color, var(--mat-sys-on-surface-variant));-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label,.mat-mdc-icon-button .mat-icon{z-index:1;position:relative}.mat-mdc-icon-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface-variant) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display, block)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button img,.mat-mdc-icon-button svg{width:var(--mdc-icon-button-icon-size, 24px);height:var(--mdc-icon-button-icon-size, 24px);vertical-align:baseline}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button[hidden]{display:none}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',k],encapsulation:2,changeDetection:0})}return En})(),wn=(()=>{class En extends xe{static \u0275fac=(()=>{let wt;return function(Be){return(wt||(wt=i.xGo(En)))(Be||En)}})();static \u0275cmp=i.VBU({type:En,selectors:[["a","mat-icon-button",""]],hostVars:15,hostBindings:function(ze,Be){2&ze&&(i.BMQ("disabled",Be._getDisabledAttribute())("tabindex",Be.disabled&&!Be.disabledInteractive?-1:Be.tabIndex)("aria-disabled",Be._getAriaDisabled()),i.HbH(Be.color?"mat-"+Be.color:""),i.AVh("mat-mdc-button-disabled",Be.disabled)("mat-mdc-button-disabled-interactive",Be.disabledInteractive)("_mat-animation-noopable","NoopAnimations"===Be._animationMode)("mat-unthemed",!Be.color)("mat-mdc-button-base",!0))},exportAs:["matButton","matAnchor"],features:[i.Vt3],attrs:te,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,Be){1&ze&&(i.NAR(),i.nrm(0,"span",0),i.SdG(1),i.nrm(2,"span",1)(3,"span",2))},styles:['.mat-mdc-icon-button{-webkit-user-select:none;user-select:none;display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;z-index:0;overflow:visible;border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 40px);height:var(--mdc-icon-button-state-layer-size, 40px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 40px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size, 24px);color:var(--mdc-icon-button-icon-color, var(--mat-sys-on-surface-variant));-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label,.mat-mdc-icon-button .mat-icon{z-index:1;position:relative}.mat-mdc-icon-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface-variant) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display, block)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button img,.mat-mdc-icon-button svg{width:var(--mdc-icon-button-icon-size, 24px);height:var(--mdc-icon-button-icon-size, 24px);vertical-align:baseline}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button[hidden]{display:none}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',k],encapsulation:2,changeDetection:0})}return En})(),$n=(()=>{class En{static \u0275fac=function(ze){return new(ze||En)};static \u0275mod=i.$C({type:En});static \u0275inj=i.G2t({imports:[y.yE,y.pZ,y.yE]})}return En})()},2902:(o,s,r)=>{"use strict";r.d(s,{Ah:()=>lt,Ej:()=>ti,Ju:()=>Ue,MI:()=>Re,MJ:()=>_t,N:()=>ae,QC:()=>L,Sy:()=>Ln,TL:()=>At,X0:()=>ke,de:()=>ot,es:()=>Ke,is:()=>W,jb:()=>mt,pZ:()=>Ie,r6:()=>Ot,tO:()=>Xr,wT:()=>bt,yE:()=>le});var i=r(3107),a=r(8559),c=r(2944),y=r(8447),w=r(2147),C=r(3022),A=r(5467),S=r(5919),T=r(4460);const G=["text"],Z=[[["mat-icon"]],"*"],te=["mat-icon","*"];function be(vt,$t){if(1&vt&&i.nrm(0,"mat-pseudo-checkbox",1),2&vt){const Ee=i.XpG();i.Y8G("disabled",Ee.disabled)("state",Ee.selected?"checked":"unchecked")}}function _e(vt,$t){if(1&vt&&i.nrm(0,"mat-pseudo-checkbox",3),2&vt){const Ee=i.XpG();i.Y8G("disabled",Ee.disabled)}}function pe(vt,$t){if(1&vt&&(i.j41(0,"span",4),i.EFF(1),i.k0s()),2&vt){const Ee=i.XpG();i.R7$(),i.SpI("(",Ee.group.label,")")}}const Te=["mat-internal-form-field",""],Ce=["*"],ae=new i.nKC("mat-sanity-checks",{providedIn:"root",factory:()=>!0});let le=(()=>{class vt{constructor(){(0,i.WQX)(a.Q_)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(at){return new(at||vt)};static \u0275mod=i.$C({type:vt});static \u0275inj=i.G2t({imports:[c.jI,c.jI]})}return vt})();class ke{_defaultMatcher;ngControl;_parentFormGroup;_parentForm;_stateChanges;errorState=!1;matcher;constructor($t,Ee,at,Fe,Rt){this._defaultMatcher=$t,this.ngControl=Ee,this._parentFormGroup=at,this._parentForm=Fe,this._stateChanges=Rt}updateErrorState(){const $t=this.errorState,Ee=this._parentFormGroup||this._parentForm,at=this.matcher||this._defaultMatcher,Fe=this.ngControl?this.ngControl.control:null,Rt=at?.isErrorState(Fe,Ee)??!1;Rt!==$t&&(this.errorState=Rt,this._stateChanges.next())}}const Ue=new i.nKC("MAT_DATE_LOCALE",{providedIn:"root",factory:function st(){return(0,i.WQX)(i.xe9)}}),ft="Method not implemented";class _t{locale;_localeChanges=new y.B;localeChanges=this._localeChanges;setTime($t,Ee,at,Fe){throw new Error(ft)}getHours($t){throw new Error(ft)}getMinutes($t){throw new Error(ft)}getSeconds($t){throw new Error(ft)}parseTime($t,Ee){throw new Error(ft)}addSeconds($t,Ee){throw new Error(ft)}getValidDateOrNull($t){return this.isDateInstance($t)&&this.isValid($t)?$t:null}deserialize($t){return null==$t||this.isDateInstance($t)&&this.isValid($t)?$t:this.invalid()}setLocale($t){this.locale=$t,this._localeChanges.next()}compareDate($t,Ee){return this.getYear($t)-this.getYear(Ee)||this.getMonth($t)-this.getMonth(Ee)||this.getDate($t)-this.getDate(Ee)}compareTime($t,Ee){return this.getHours($t)-this.getHours(Ee)||this.getMinutes($t)-this.getMinutes(Ee)||this.getSeconds($t)-this.getSeconds(Ee)}sameDate($t,Ee){if($t&&Ee){let at=this.isValid($t),Fe=this.isValid(Ee);return at&&Fe?!this.compareDate($t,Ee):at==Fe}return $t==Ee}sameTime($t,Ee){if($t&&Ee){const at=this.isValid($t),Fe=this.isValid(Ee);return at&&Fe?!this.compareTime($t,Ee):at==Fe}return $t==Ee}clampDate($t,Ee,at){return Ee&&this.compareDate($t,Ee)<0?Ee:at&&this.compareDate($t,at)>0?at:$t}}const ot=new i.nKC("mat-date-formats");let Ke=(()=>{class vt{isErrorState(Ee,at){return!!(Ee&&Ee.invalid&&(Ee.touched||at&&at.submitted))}static \u0275fac=function(at){return new(at||vt)};static \u0275prov=i.jDH({token:vt,factory:vt.\u0275fac,providedIn:"root"})}return vt})(),lt=(()=>{class vt{static \u0275fac=function(at){return new(at||vt)};static \u0275cmp=i.VBU({type:vt,selectors:[["structural-styles"]],decls:0,vars:0,template:function(at,Fe){},styles:['.mat-focus-indicator{position:relative}.mat-focus-indicator::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border-width:var(--mat-focus-indicator-border-width, 3px);border-style:var(--mat-focus-indicator-border-style, solid);border-color:var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator:focus::before{content:""}@media(forced-colors: active){html{--mat-focus-indicator-display: block}}'],encapsulation:2,changeDetection:0})}return vt})();var qe=function(vt){return vt[vt.FADING_IN=0]="FADING_IN",vt[vt.VISIBLE=1]="VISIBLE",vt[vt.FADING_OUT=2]="FADING_OUT",vt[vt.HIDDEN=3]="HIDDEN",vt}(qe||{});class Nt{_renderer;element;config;_animationForciblyDisabledThroughCss;state=qe.HIDDEN;constructor($t,Ee,at,Fe=!1){this._renderer=$t,this.element=Ee,this.config=at,this._animationForciblyDisabledThroughCss=Fe}fadeOut(){this._renderer.fadeOutRipple(this)}}const tn=(0,w.BQ)({passive:!0,capture:!0});class pn{_events=new Map;addHandler($t,Ee,at,Fe){const Rt=this._events.get(Ee);if(Rt){const dt=Rt.get(at);dt?dt.add(Fe):Rt.set(at,new Set([Fe]))}else this._events.set(Ee,new Map([[at,new Set([Fe])]])),$t.runOutsideAngular(()=>{document.addEventListener(Ee,this._delegateEventHandler,tn)})}removeHandler($t,Ee,at){const Fe=this._events.get($t);if(!Fe)return;const Rt=Fe.get(Ee);Rt&&(Rt.delete(at),0===Rt.size&&Fe.delete(Ee),0===Fe.size&&(this._events.delete($t),document.removeEventListener($t,this._delegateEventHandler,tn)))}_delegateEventHandler=$t=>{const Ee=(0,w.Fb)($t);Ee&&this._events.get($t.type)?.forEach((at,Fe)=>{(Fe===Ee||Fe.contains(Ee))&&at.forEach(Rt=>Rt.handleEvent($t))})}}const Wn={enterDuration:225,exitDuration:150},en=(0,w.BQ)({passive:!0,capture:!0}),an=["mousedown","touchstart"],Yn=["mouseup","mouseleave","touchend","touchcancel"];let Sn=(()=>{class vt{static \u0275fac=function(at){return new(at||vt)};static \u0275cmp=i.VBU({type:vt,selectors:[["ng-component"]],hostAttrs:["mat-ripple-style-loader",""],decls:0,vars:0,template:function(at,Fe){},styles:[".mat-ripple{overflow:hidden;position:relative}.mat-ripple:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded{overflow:visible}.mat-ripple-element{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0, 0, 0.2, 1);transform:scale3d(0, 0, 0);background-color:var(--mat-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface) 10%, transparent))}@media(forced-colors: active){.mat-ripple-element{display:none}}.cdk-drag-preview .mat-ripple-element,.cdk-drag-placeholder .mat-ripple-element{display:none}"],encapsulation:2,changeDetection:0})}return vt})();class Xt{_target;_ngZone;_platform;_containerElement;_triggerElement;_isPointerDown=!1;_activeRipples=new Map;_mostRecentTransientRipple;_lastTouchStartEvent;_pointerUpEventsRegistered=!1;_containerRect;static _eventManager=new pn;constructor($t,Ee,at,Fe,Rt){this._target=$t,this._ngZone=Ee,this._platform=Fe,Fe.isBrowser&&(this._containerElement=(0,C.i8)(at)),Rt&&Rt.get(A.l).load(Sn)}fadeInRipple($t,Ee,at={}){const Fe=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),Rt={...Wn,...at.animation};at.centered&&($t=Fe.left+Fe.width/2,Ee=Fe.top+Fe.height/2);const dt=at.radius||function Mt(vt,$t,Ee){const at=Math.max(Math.abs(vt-Ee.left),Math.abs(vt-Ee.right)),Fe=Math.max(Math.abs($t-Ee.top),Math.abs($t-Ee.bottom));return Math.sqrt(at*at+Fe*Fe)}($t,Ee,Fe),Bt=$t-Fe.left,_n=Ee-Fe.top,or=Rt.enterDuration,Mr=document.createElement("div");Mr.classList.add("mat-ripple-element"),Mr.style.left=Bt-dt+"px",Mr.style.top=_n-dt+"px",Mr.style.height=2*dt+"px",Mr.style.width=2*dt+"px",null!=at.color&&(Mr.style.backgroundColor=at.color),Mr.style.transitionDuration=`${or}ms`,this._containerElement.appendChild(Mr);const ii=window.getComputedStyle(Mr),Ai=ii.transitionDuration,sn="none"===ii.transitionProperty||"0s"===Ai||"0s, 0s"===Ai||0===Fe.width&&0===Fe.height,Tt=new Nt(this,Mr,at,sn);Mr.style.transform="scale3d(1, 1, 1)",Tt.state=qe.FADING_IN,at.persistent||(this._mostRecentTransientRipple=Tt);let Je=null;return!sn&&(or||Rt.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const St=()=>{Je&&(Je.fallbackTimer=null),clearTimeout(zn),this._finishRippleTransition(Tt)},zt=()=>this._destroyRipple(Tt),zn=setTimeout(zt,or+100);Mr.addEventListener("transitionend",St),Mr.addEventListener("transitioncancel",zt),Je={onTransitionEnd:St,onTransitionCancel:zt,fallbackTimer:zn}}),this._activeRipples.set(Tt,Je),(sn||!or)&&this._finishRippleTransition(Tt),Tt}fadeOutRipple($t){if($t.state===qe.FADING_OUT||$t.state===qe.HIDDEN)return;const Ee=$t.element,at={...Wn,...$t.config.animation};Ee.style.transitionDuration=`${at.exitDuration}ms`,Ee.style.opacity="0",$t.state=qe.FADING_OUT,($t._animationForciblyDisabledThroughCss||!at.exitDuration)&&this._finishRippleTransition($t)}fadeOutAll(){this._getActiveRipples().forEach($t=>$t.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach($t=>{$t.config.persistent||$t.fadeOut()})}setupTriggerEvents($t){const Ee=(0,C.i8)($t);!this._platform.isBrowser||!Ee||Ee===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=Ee,an.forEach(at=>{Xt._eventManager.addHandler(this._ngZone,at,Ee,this)}))}handleEvent($t){"mousedown"===$t.type?this._onMousedown($t):"touchstart"===$t.type?this._onTouchStart($t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{Yn.forEach(Ee=>{this._triggerElement.addEventListener(Ee,this,en)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition($t){$t.state===qe.FADING_IN?this._startFadeOutTransition($t):$t.state===qe.FADING_OUT&&this._destroyRipple($t)}_startFadeOutTransition($t){const Ee=$t===this._mostRecentTransientRipple,{persistent:at}=$t.config;$t.state=qe.VISIBLE,!at&&(!Ee||!this._isPointerDown)&&$t.fadeOut()}_destroyRipple($t){const Ee=this._activeRipples.get($t)??null;this._activeRipples.delete($t),this._activeRipples.size||(this._containerRect=null),$t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),$t.state=qe.HIDDEN,null!==Ee&&($t.element.removeEventListener("transitionend",Ee.onTransitionEnd),$t.element.removeEventListener("transitioncancel",Ee.onTransitionCancel),null!==Ee.fallbackTimer&&clearTimeout(Ee.fallbackTimer)),$t.element.remove()}_onMousedown($t){const Ee=(0,a._G)($t),at=this._lastTouchStartEvent&&Date.now(){!$t.config.persistent&&($t.state===qe.VISIBLE||$t.config.terminateOnPointerUp&&$t.state===qe.FADING_IN)&&$t.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const $t=this._triggerElement;$t&&(an.forEach(Ee=>Xt._eventManager.removeHandler(Ee,$t,this)),this._pointerUpEventsRegistered&&(Yn.forEach(Ee=>$t.removeEventListener(Ee,this,en)),this._pointerUpEventsRegistered=!1))}}const Gt=new i.nKC("mat-ripple-global-options");let Ot=(()=>{class vt{_elementRef=(0,i.WQX)(i.aKT);_animationMode=(0,i.WQX)(i.bc$,{optional:!0});color;unbounded;centered;radius=0;animation;get disabled(){return this._disabled}set disabled(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),at=(0,i.WQX)(w.OD),Fe=(0,i.WQX)(Gt,{optional:!0}),Rt=(0,i.WQX)(i.zZn);this._globalOptions=Fe||{},this._rippleRenderer=new Xt(this,Ee,this._elementRef,at,Rt)}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,at=0,Fe){return"number"==typeof Ee?this._rippleRenderer.fadeInRipple(Ee,at,{...this.rippleConfig,...Fe}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...Ee})}static \u0275fac=function(at){return new(at||vt)};static \u0275dir=i.FsC({type:vt,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(at,Fe){2&at&&i.AVh("mat-ripple-unbounded",Fe.unbounded)},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"]})}return vt})(),Ie=(()=>{class vt{static \u0275fac=function(at){return new(at||vt)};static \u0275mod=i.$C({type:vt});static \u0275inj=i.G2t({imports:[le,le]})}return vt})(),Me=(()=>{class vt{_animationMode=(0,i.WQX)(i.bc$,{optional:!0});state="unchecked";disabled=!1;appearance="full";constructor(){}static \u0275fac=function(at){return new(at||vt)};static \u0275cmp=i.VBU({type:vt,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(at,Fe){2&at&&i.AVh("mat-pseudo-checkbox-indeterminate","indeterminate"===Fe.state)("mat-pseudo-checkbox-checked","checked"===Fe.state)("mat-pseudo-checkbox-disabled",Fe.disabled)("mat-pseudo-checkbox-minimal","minimal"===Fe.appearance)("mat-pseudo-checkbox-full","full"===Fe.appearance)("_mat-animation-noopable","NoopAnimations"===Fe._animationMode)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(at,Fe){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-minimal-pseudo-checkbox-selected-checkmark-color, var(--mat-sys-primary))}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full{border-color:var(--mat-full-pseudo-checkbox-unselected-icon-color, var(--mat-sys-on-surface-variant));border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-full-pseudo-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-full-pseudo-checkbox-selected-icon-color, var(--mat-sys-primary));border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-full-pseudo-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-full-pseudo-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-full-pseudo-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0})}return vt})(),nt=(()=>{class vt{static \u0275fac=function(at){return new(at||vt)};static \u0275mod=i.$C({type:vt});static \u0275inj=i.G2t({imports:[le]})}return vt})();const W=new i.nKC("MAT_OPTION_PARENT_COMPONENT"),L=new i.nKC("MatOptgroup");class Re{source;isUserInput;constructor($t,Ee=!1){this.source=$t,this.isUserInput=Ee}}let bt=(()=>{class vt{_element=(0,i.WQX)(i.aKT);_changeDetectorRef=(0,i.WQX)(i.gRc);_parent=(0,i.WQX)(W,{optional:!0});group=(0,i.WQX)(L,{optional:!0});_signalDisableRipple=!1;_selected=!1;_active=!1;_disabled=!1;_mostRecentViewValue="";get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}value;id=(0,i.WQX)(a.g7).getId("mat-option-");get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(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)(A.l).load(lt),(0,i.WQX)(A.l).load(A.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,at){const Fe=this._getHostElement();"function"==typeof Fe.focus&&Fe.focus(at)}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 Re(this,Ee))}static \u0275fac=function(at){return new(at||vt)};static \u0275cmp=i.VBU({type:vt,selectors:[["mat-option"]],viewQuery:function(at,Fe){if(1&at&&i.GBs(G,7),2&at){let Rt;i.mGM(Rt=i.lsd())&&(Fe._text=Rt.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(at,Fe){1&at&&i.bIt("click",function(){return Fe._selectViaInteraction()})("keydown",function(dt){return Fe._handleKeydown(dt)}),2&at&&(i.Mr5("id",Fe.id),i.BMQ("aria-selected",Fe.selected)("aria-disabled",Fe.disabled.toString()),i.AVh("mdc-list-item--selected",Fe.selected)("mat-mdc-option-multiple",Fe.multiple)("mat-mdc-option-active",Fe.active)("mdc-list-item--disabled",Fe.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",i.L39]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],features:[i.GFd],ngContentSelectors:te,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(at,Fe){1&at&&(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,_e,1,1,"mat-pseudo-checkbox",3)(6,pe,2,1,"span",4),i.nrm(7,"div",5)),2&at&&(i.vxM(Fe.multiple?0:-1),i.R7$(5),i.vxM(Fe.multiple||!Fe.selected||Fe.hideSingleSelectionIndicator?-1:5),i.R7$(),i.vxM(Fe.group&&Fe.group._inert?6:-1),i.R7$(),i.Y8G("matRippleTrigger",Fe._getHostElement())("matRippleDisabled",Fe.disabled||Fe.disableRipple))},dependencies:[Me,Ot],styles:['.mat-mdc-option{-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-option-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-option-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-option-label-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-option-label-text-tracking, var(--mat-sys-label-large-tracking));font-weight:var(--mat-option-label-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));outline:0}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color, var(--mat-sys-secondary-container))}.mat-mdc-option .mat-pseudo-checkbox{--mat-minimal-pseudo-checkbox-selected-checkmark-color: var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}@media(forced-colors: active){.mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{right:auto;left:16px}}.mat-mdc-option-multiple{--mdc-list-list-item-selected-container-color:var(--mdc-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return vt})();function mt(vt,$t,Ee){if(Ee.length){let at=$t.toArray(),Fe=Ee.toArray(),Rt=0;for(let dt=0;dtEe+at?Math.max(0,vt-at+$t):Ee}let Ln=(()=>{class vt{static \u0275fac=function(at){return new(at||vt)};static \u0275mod=i.$C({type:vt});static \u0275inj=i.G2t({imports:[Ie,le,nt]})}return vt})();const Zt={capture:!0},mn=["focus","mousedown","mouseenter","touchstart"],In="mat-ripple-loader-uninitialized",Bn="mat-ripple-loader-class-name",Hn="mat-ripple-loader-centered",xr="mat-ripple-loader-disabled";let ti=(()=>{class vt{_document=(0,i.WQX)(T.qQ,{optional:!0});_animationMode=(0,i.WQX)(i.bc$,{optional:!0});_globalRippleOptions=(0,i.WQX)(Gt,{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 mn)this._document?.addEventListener(Ee,this._onInteraction,Zt)})}ngOnDestroy(){const Ee=this._hosts.keys();for(const at of Ee)this.destroyRipple(at);for(const at of mn)this._document?.removeEventListener(at,this._onInteraction,Zt)}configureRipple(Ee,at){Ee.setAttribute(In,this._globalRippleOptions?.namespace??""),(at.className||!Ee.hasAttribute(Bn))&&Ee.setAttribute(Bn,at.className||""),at.centered&&Ee.setAttribute(Hn,""),at.disabled&&Ee.setAttribute(xr,"")}setDisabled(Ee,at){const Fe=this._hosts.get(Ee);Fe?(Fe.target.rippleDisabled=at,!at&&!Fe.hasSetUpEvents&&(Fe.hasSetUpEvents=!0,Fe.renderer.setupTriggerEvents(Ee))):at?Ee.setAttribute(xr,""):Ee.removeAttribute(xr)}_onInteraction=Ee=>{const at=(0,w.Fb)(Ee);if(at instanceof HTMLElement){const Fe=at.closest(`[${In}="${this._globalRippleOptions?.namespace??""}"]`);Fe&&this._createRipple(Fe)}};_createRipple(Ee){if(!this._document||this._hosts.has(Ee))return;Ee.querySelector(".mat-ripple")?.remove();const at=this._document.createElement("span");at.classList.add("mat-ripple",Ee.getAttribute(Bn)),Ee.append(at);const Fe="NoopAnimations"===this._animationMode,Rt=this._globalRippleOptions,dt=Fe?0:Rt?.animation?.enterDuration??Wn.enterDuration,Bt=Fe?0:Rt?.animation?.exitDuration??Wn.exitDuration,_n={rippleDisabled:Fe||Rt?.disabled||Ee.hasAttribute(xr),rippleConfig:{centered:Ee.hasAttribute(Hn),terminateOnPointerUp:Rt?.terminateOnPointerUp,animation:{enterDuration:dt,exitDuration:Bt}}},or=new Xt(_n,this._ngZone,at,this._platform,this._injector),Mr=!_n.rippleDisabled;Mr&&or.setupTriggerEvents(Ee),this._hosts.set(Ee,{target:_n,renderer:or,hasSetUpEvents:Mr}),Ee.removeAttribute(In)}destroyRipple(Ee){const at=this._hosts.get(Ee);at&&(at.renderer._removeTriggerEvents(),this._hosts.delete(Ee))}static \u0275fac=function(at){return new(at||vt)};static \u0275prov=i.jDH({token:vt,factory:vt.\u0275fac,providedIn:"root"})}return vt})(),Xr=(()=>{class vt{labelPosition;static \u0275fac=function(at){return new(at||vt)};static \u0275cmp=i.VBU({type:vt,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(at,Fe){2&at&&i.AVh("mdc-form-field--align-end","before"===Fe.labelPosition)},inputs:{labelPosition:"labelPosition"},attrs:Te,ngContentSelectors:Ce,decls:1,vars:0,template:function(at,Fe){1&at&&(i.NAR(),i.SdG(0))},styles:[".mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-flex;align-items:center;vertical-align:middle}.mat-internal-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mat-internal-form-field>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end .mdc-form-field--align-end label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0}"],encapsulation:2,changeDetection:0})}return vt})()},7544:(o,s,r)=>{"use strict";r.d(s,{Vh:()=>se,bZ:()=>Wn,E7:()=>Sn,tx:()=>Pt,Yi:()=>Yn,hM:()=>Gt,CP:()=>Ge});var i=r(9666),a=r(3107),c=r(8559),y=r(2147),w=r(6192),C=r(4460),A=r(5919),S=r(8447),T=r(6381),k=r(3016),R=r(2944),G=r(593);function Z(Me,nt){}class te{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 _e=(()=>{class Me 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)(te,{optional:!0})||new te,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(W){this._ariaLabelledByQueue.push(W),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(W){const L=this._ariaLabelledByQueue.indexOf(W);L>-1&&(this._ariaLabelledByQueue.splice(L,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal(W){this._portalOutlet.hasAttached();const L=this._portalOutlet.attachComponentPortal(W);return this._contentAttached(),L}attachTemplatePortal(W){this._portalOutlet.hasAttached();const L=this._portalOutlet.attachTemplatePortal(W);return this._contentAttached(),L}attachDomPortal=W=>{this._portalOutlet.hasAttached();const L=this._portalOutlet.attachDomPortal(W);return this._contentAttached(),L};_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(W,L){this._interactivityChecker.isFocusable(W)||(W.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const V=()=>{W.removeEventListener("blur",V),W.removeEventListener("mousedown",V),W.removeAttribute("tabindex")};W.addEventListener("blur",V),W.addEventListener("mousedown",V)})),W.focus(L)}_focusByCssSelector(W,L){let V=this._elementRef.nativeElement.querySelector(W);V&&this._forceFocus(V,L)}_trapFocus(){this._isDestroyed||(0,a.mal)(()=>{const W=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||W.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 W=this._config.restoreFocus;let L=null;if("string"==typeof W?L=this._document.querySelector(W):"boolean"==typeof W?L=W?this._elementFocusedBeforeDialogWasOpened:null:W&&(L=W),this._config.restoreFocus&&L&&"function"==typeof L.focus){const V=(0,y.vc)(),Re=this._elementRef.nativeElement;(!V||V===this._document.body||V===Re||Re.contains(V))&&(this._focusMonitor?(this._focusMonitor.focusVia(L,this._closeInteractionType),this._closeInteractionType=null):L.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const W=this._elementRef.nativeElement,L=(0,y.vc)();return W===L||W.contains(L)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,y.vc)()))}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}static \u0275fac=function(L){return new(L||Me)};static \u0275cmp=a.VBU({type:Me,selectors:[["cdk-dialog-container"]],viewQuery:function(L,V){if(1&L&&a.GBs(w.I3,7),2&L){let Re;a.mGM(Re=a.lsd())&&(V._portalOutlet=Re.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(L,V){2&L&&a.BMQ("id",V._config.id||null)("role",V._config.role)("aria-modal",V._config.ariaModal)("aria-labelledby",V._config.ariaLabel?null:V._ariaLabelledByQueue[0])("aria-label",V._config.ariaLabel)("aria-describedby",V._config.ariaDescribedBy||null)},features:[a.Vt3],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(L,V){1&L&&a.DNE(0,Z,0,0,"ng-template",0)},dependencies:[w.I3],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2})}return Me})();class pe{overlayRef;config;componentInstance;componentRef;containerInstance;disableClose;closed=new S.B;backdropClick;keydownEvents;outsidePointerEvents;id;_detachSubscription;constructor(nt,W){this.overlayRef=nt,this.config=W,this.disableClose=W.disableClose,this.backdropClick=nt.backdropClick(),this.keydownEvents=nt.keydownEvents(),this.outsidePointerEvents=nt.outsidePointerEvents(),this.id=W.id,this.keydownEvents.subscribe(L=>{L.keyCode===A._f&&!this.disableClose&&!(0,A.rp)(L)&&(L.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=nt.detachments().subscribe(()=>{!1!==W.closeOnOverlayDetachments&&this.close()})}close(nt,W){if(this.containerInstance){const L=this.closed;this.containerInstance._closeInteractionType=W?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),L.next(nt),L.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(nt="",W=""){return this.overlayRef.updateSize({width:nt,height:W}),this}addPanelClass(nt){return this.overlayRef.addPanelClass(nt),this}removePanelClass(nt){return this.overlayRef.removePanelClass(nt),this}}const Te=new a.nKC("DialogScrollStrategy",{providedIn:"root",factory:()=>{const Me=(0,a.WQX)(i.hJ);return()=>Me.scrollStrategies.block()}}),Ce=new a.nKC("DialogData"),Ne=new a.nKC("DefaultDialogConfig");let ae=(()=>{class Me{_overlay=(0,a.WQX)(i.hJ);_injector=(0,a.WQX)(a.zZn);_defaultOptions=(0,a.WQX)(Ne,{optional:!0});_parentDialog=(0,a.WQX)(Me,{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,T.v)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,G.Z)(void 0)));constructor(){}open(W,L){(L={...this._defaultOptions||new te,...L}).id=L.id||this._idGenerator.getId("cdk-dialog-"),L.id&&this.getDialogById(L.id);const Re=this._getOverlayConfig(L),bt=this._overlay.create(Re),mt=new pe(bt,L),At=this._attachContainer(bt,mt,L);return mt.containerInstance=At,this._attachDialogContent(W,mt,At,L),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(mt),mt.closed.subscribe(()=>this._removeOpenDialog(mt,!0)),this.afterOpened.next(mt),mt}closeAll(){le(this.openDialogs,W=>W.close())}getDialogById(W){return this.openDialogs.find(L=>L.id===W)}ngOnDestroy(){le(this._openDialogsAtThisLevel,W=>{!1===W.config.closeOnDestroy&&this._removeOpenDialog(W,!1)}),le(this._openDialogsAtThisLevel,W=>W.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(W){const L=new i.rR({positionStrategy:W.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:W.scrollStrategy||this._scrollStrategy(),panelClass:W.panelClass,hasBackdrop:W.hasBackdrop,direction:W.direction,minWidth:W.minWidth,minHeight:W.minHeight,maxWidth:W.maxWidth,maxHeight:W.maxHeight,width:W.width,height:W.height,disposeOnNavigation:W.closeOnNavigation});return W.backdropClass&&(L.backdropClass=W.backdropClass),L}_attachContainer(W,L,V){const Re=V.injector||V.viewContainerRef?.injector,bt=[{provide:te,useValue:V},{provide:pe,useValue:L},{provide:i.yY,useValue:W}];let mt;V.container?"function"==typeof V.container?mt=V.container:(mt=V.container.type,bt.push(...V.container.providers(V))):mt=_e;const At=new w.A8(mt,V.viewContainerRef,a.zZn.create({parent:Re||this._injector,providers:bt}));return W.attach(At).instance}_attachDialogContent(W,L,V,Re){if(W instanceof a.C4Q){const bt=this._createInjector(Re,L,V,void 0);let mt={$implicit:Re.data,dialogRef:L};Re.templateContext&&(mt={...mt,..."function"==typeof Re.templateContext?Re.templateContext():Re.templateContext}),V.attachTemplatePortal(new w.VA(W,null,mt,bt))}else{const bt=this._createInjector(Re,L,V,this._injector),mt=V.attachComponentPortal(new w.A8(W,Re.viewContainerRef,bt));L.componentRef=mt,L.componentInstance=mt.instance}}_createInjector(W,L,V,Re){const bt=W.injector||W.viewContainerRef?.injector,mt=[{provide:Ce,useValue:W.data},{provide:pe,useValue:L}];return W.providers&&("function"==typeof W.providers?mt.push(...W.providers(L,W,V)):mt.push(...W.providers)),W.direction&&(!bt||!bt.get(R.dS,null,{optional:!0}))&&mt.push({provide:R.dS,useValue:{value:W.direction,change:(0,k.of)()}}),a.zZn.create({parent:bt||Re,providers:mt})}_removeOpenDialog(W,L){const V=this.openDialogs.indexOf(W);V>-1&&(this.openDialogs.splice(V,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((Re,bt)=>{Re?bt.setAttribute("aria-hidden",Re):bt.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),L&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const W=this._overlayContainer.getContainerElement();if(W.parentElement){const L=W.parentElement.children;for(let V=L.length-1;V>-1;V--){const Re=L[V];Re!==W&&"SCRIPT"!==Re.nodeName&&"STYLE"!==Re.nodeName&&!Re.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(Re,Re.getAttribute("aria-hidden")),Re.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const W=this._parentDialog;return W?W._getAfterAllClosed():this._afterAllClosedAtThisLevel}static \u0275fac=function(L){return new(L||Me)};static \u0275prov=a.jDH({token:Me,factory:Me.\u0275fac,providedIn:"root"})}return Me})();function le(Me,nt){let W=Me.length;for(;W--;)nt(Me[W])}let ke=(()=>{class Me{static \u0275fac=function(L){return new(L||Me)};static \u0275mod=a.$C({type:Me});static \u0275inj=a.G2t({providers:[ae],imports:[i.z_,w.jc,c.Pd,w.jc]})}return Me})();var Ue=r(3022),st=r(7509),ft=r(1483),_t=r(7610),ot=r(8108),Yt=r(2902);function wn(Me,nt){}r(1204);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 En="mdc-dialog--open",Ze="mdc-dialog--opening",wt="mdc-dialog--closing";let Ut=(()=>{class Me extends _e{_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?lt(this._config.enterAnimationDuration)??150:0;_exitAnimationDuration=this._animationsEnabled?lt(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(Ze,En)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(En),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(En),this._animationsEnabled?(this._hostElement.style.setProperty(Ke,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(wt)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(W){this._actionSectionCount+=W,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(Ze,wt)}_waitForAnimationToComplete(W,L){null!==this._animationTimer&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(L,W)}_requestAnimationFrame(W){this._ngZone.runOutsideAngular(()=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(W):W()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(W){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:W})}ngOnDestroy(){super.ngOnDestroy(),null!==this._animationTimer&&clearTimeout(this._animationTimer)}attachComponentPortal(W){const L=super.attachComponentPortal(W);return L.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),L}static \u0275fac=(()=>{let W;return function(V){return(W||(W=a.xGo(Me)))(V||Me)}})();static \u0275cmp=a.VBU({type:Me,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(L,V){2&L&&(a.Mr5("id",V._config.id),a.BMQ("aria-modal",V._config.ariaModal)("role",V._config.role)("aria-labelledby",V._config.ariaLabel?null:V._ariaLabelledByQueue[0])("aria-label",V._config.ariaLabel)("aria-describedby",V._config.ariaDescribedBy||null),a.AVh("_mat-animation-noopable",!V._animationsEnabled)("mat-mdc-dialog-container-with-actions",V._actionSectionCount>0))},features:[a.Vt3],decls:3,vars:0,consts:[[1,"mat-mdc-dialog-inner-container","mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(L,V){1&L&&(a.j41(0,"div",0)(1,"div",1),a.DNE(2,wn,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 Me})();const Ke="--mat-dialog-transition-duration";function lt(Me){return null==Me?null:"number"==typeof Me?Me:Me.endsWith("ms")?(0,Ue.OE)(Me.substring(0,Me.length-2)):Me.endsWith("s")?1e3*(0,Ue.OE)(Me.substring(0,Me.length-1)):"0"===Me?0:null}var Xe=function(Me){return Me[Me.OPEN=0]="OPEN",Me[Me.CLOSING=1]="CLOSING",Me[Me.CLOSED=2]="CLOSED",Me}(Xe||{});class Ge{_ref;_containerInstance;componentInstance;componentRef;disableClose;id;_afterOpened=new S.B;_beforeClosed=new S.B;_result;_closeFallbackTimeout;_state=Xe.OPEN;_closeInteractionType;constructor(nt,W,L){this._ref=nt,this._containerInstance=L,this.disableClose=W.disableClose,this.id=nt.id,nt.addPanelClass("mat-mdc-dialog-panel"),L._animationStateChanged.pipe((0,ft.p)(V=>"opened"===V.state),(0,_t.s)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),L._animationStateChanged.pipe((0,ft.p)(V=>"closed"===V.state),(0,_t.s)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),nt.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,st.h)(this.backdropClick(),this.keydownEvents().pipe((0,ft.p)(V=>V.keyCode===A._f&&!this.disableClose&&!(0,A.rp)(V)))).subscribe(V=>{this.disableClose||(V.preventDefault(),pt(this,"keydown"===V.type?"keyboard":"mouse"))})}close(nt){this._result=nt,this._containerInstance._animationStateChanged.pipe((0,ft.p)(W=>"closing"===W.state),(0,_t.s)(1)).subscribe(W=>{this._beforeClosed.next(nt),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),W.totalTime+100)}),this._state=Xe.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(nt){let W=this._ref.config.positionStrategy;return nt&&(nt.left||nt.right)?nt.left?W.left(nt.left):W.right(nt.right):W.centerHorizontally(),nt&&(nt.top||nt.bottom)?nt.top?W.top(nt.top):W.bottom(nt.bottom):W.centerVertically(),this._ref.updatePosition(),this}updateSize(nt="",W=""){return this._ref.updateSize(nt,W),this}addPanelClass(nt){return this._ref.addPanelClass(nt),this}removePanelClass(nt){return this._ref.removePanelClass(nt),this}getState(){return this._state}_finishDialogClose(){this._state=Xe.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}function pt(Me,nt,W){return Me._closeInteractionType=nt,Me.close(W)}const se=new a.nKC("MatMdcDialogData"),qe=new a.nKC("mat-mdc-dialog-default-options"),Nt=new a.nKC("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{const Me=(0,a.WQX)(i.hJ);return()=>Me.scrollStrategies.block()}});let Wn=(()=>{class Me{_overlay=(0,a.WQX)(i.hJ);_defaultOptions=(0,a.WQX)(qe,{optional:!0});_scrollStrategy=(0,a.WQX)(Nt);_parentDialog=(0,a.WQX)(Me,{optional:!0,skipSelf:!0});_idGenerator=(0,a.WQX)(c.g7);_dialog=(0,a.WQX)(ae);_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 W=this._parentDialog;return W?W._getAfterAllClosed():this._afterAllClosedAtThisLevel}afterAllClosed=(0,T.v)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,G.Z)(void 0)));constructor(){this._dialogRefConstructor=Ge,this._dialogContainerType=Ut,this._dialogDataToken=se}open(W,L){let V;(L={...this._defaultOptions||new $n,...L}).id=L.id||this._idGenerator.getId("mat-mdc-dialog-"),L.scrollStrategy=L.scrollStrategy||this._scrollStrategy();const Re=this._dialog.open(W,{...L,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:L},{provide:te,useValue:L}]},templateContext:()=>({dialogRef:V}),providers:(bt,mt,At)=>(V=new this._dialogRefConstructor(bt,L,At),V.updatePosition(L?.position),[{provide:this._dialogContainerType,useValue:At},{provide:this._dialogDataToken,useValue:mt.data},{provide:this._dialogRefConstructor,useValue:V}])});return V.componentRef=Re.componentRef,V.componentInstance=Re.componentInstance,this.openDialogs.push(V),this.afterOpened.next(V),V.afterClosed().subscribe(()=>{const bt=this.openDialogs.indexOf(V);bt>-1&&(this.openDialogs.splice(bt,1),this.openDialogs.length||this._getAfterAllClosed().next())}),V}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(W){return this.openDialogs.find(L=>L.id===W)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(W){let L=W.length;for(;L--;)W[L].close()}static \u0275fac=function(L){return new(L||Me)};static \u0275prov=a.jDH({token:Me,factory:Me.\u0275fac,providedIn:"root"})}return Me})(),Pt=(()=>{class Me{dialogRef=(0,a.WQX)(Ge,{optional:!0});_elementRef=(0,a.WQX)(a.aKT);_dialog=(0,a.WQX)(Wn);ariaLabel;type="button";dialogResult;_matDialogClose;constructor(){}ngOnInit(){this.dialogRef||(this.dialogRef=Xt(this._elementRef,this._dialog.openDialogs))}ngOnChanges(W){const L=W._matDialogClose||W._matDialogCloseResult;L&&(this.dialogResult=L.currentValue)}_onButtonClick(W){pt(this.dialogRef,0===W.screenX&&0===W.screenY?"keyboard":"mouse",this.dialogResult)}static \u0275fac=function(L){return new(L||Me)};static \u0275dir=a.FsC({type:Me,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(L,V){1&L&&a.bIt("click",function(bt){return V._onButtonClick(bt)}),2&L&&a.BMQ("aria-label",V.ariaLabel||null)("type",V.type)},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],type:"type",dialogResult:[0,"mat-dialog-close","dialogResult"],_matDialogClose:[0,"matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[a.OA$]})}return Me})(),en=(()=>{class Me{_dialogRef=(0,a.WQX)(Ge,{optional:!0});_elementRef=(0,a.WQX)(a.aKT);_dialog=(0,a.WQX)(Wn);constructor(){}ngOnInit(){this._dialogRef||(this._dialogRef=Xt(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd()})}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove()})}static \u0275fac=function(L){return new(L||Me)};static \u0275dir=a.FsC({type:Me})}return Me})(),Yn=(()=>{class Me{static \u0275fac=function(L){return new(L||Me)};static \u0275dir=a.FsC({type:Me,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],features:[a.nM4([ot.uv])]})}return Me})(),Sn=(()=>{class Me extends en{align;_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1)}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1)}static \u0275fac=(()=>{let W;return function(V){return(W||(W=a.xGo(Me)))(V||Me)}})();static \u0275dir=a.FsC({type:Me,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:6,hostBindings:function(L,V){2&L&&a.AVh("mat-mdc-dialog-actions-align-start","start"===V.align)("mat-mdc-dialog-actions-align-center","center"===V.align)("mat-mdc-dialog-actions-align-end","end"===V.align)},inputs:{align:"align"},features:[a.Vt3]})}return Me})();function Xt(Me,nt){let W=Me.nativeElement.parentElement;for(;W&&!W.classList.contains("mat-mdc-dialog-container");)W=W.parentElement;return W?nt.find(L=>L.id===W.id):null}let Gt=(()=>{class Me{static \u0275fac=function(L){return new(L||Me)};static \u0275mod=a.$C({type:Me});static \u0275inj=a.G2t({providers:[Wn],imports:[ke,i.z_,w.jc,Yt.yE,Yt.yE]})}return Me})()},7702:(o,s,r)=>{"use strict";r.d(s,{q:()=>y,w:()=>w});var i=r(3107),a=r(3022),c=r(2902);let y=(()=>{class C{get vertical(){return this._vertical}set vertical(S){this._vertical=(0,a.he)(S)}_vertical=!1;get inset(){return this._inset}set inset(S){this._inset=(0,a.he)(S)}_inset=!1;static \u0275fac=function(T){return new(T||C)};static \u0275cmp=i.VBU({type:C,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(T,k){2&T&&(i.BMQ("aria-orientation",k.vertical?"vertical":"horizontal"),i.AVh("mat-divider-vertical",k.vertical)("mat-divider-horizontal",!k.vertical)("mat-divider-inset",k.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(T,k){},styles:[".mat-divider{display:block;margin:0;border-top-style:solid;border-top-color:var(--mat-divider-color, var(--mat-sys-outline));border-top-width:var(--mat-divider-width, 1px)}.mat-divider.mat-divider-vertical{border-top:0;border-right-style:solid;border-right-color:var(--mat-divider-color, var(--mat-sys-outline));border-right-width:var(--mat-divider-width, 1px)}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0})}return C})(),w=(()=>{class C{static \u0275fac=function(T){return new(T||C)};static \u0275mod=i.$C({type:C});static \u0275inj=i.G2t({imports:[c.yE,c.yE]})}return C})()},6071:(o,s,r)=>{"use strict";r.d(s,{xb:()=>Zt,U$:()=>mn,TL:()=>an,rl:()=>ti,qT:()=>bt,RG:()=>Xr,MV:()=>Yn,nJ:()=>Pt,JW:()=>Xt,yw:()=>Gt});var i=r(3107),a=r(8559),c=r(2944),y=r(3022),w=r(2147),C=r(4460),A=r(5710),S=r(8447),T=r(7509),k=r(593),R=r(7947),G=r(5351),Z=r(2483),be=r(1483),_e=r(5424),pe=r(1698),Te=r(8249);class Ne{_box;_destroyed=new S.B;_resizeSubject=new S.B;_resizeObserver;_elementObservables=new Map;constructor($t){this._box=$t,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(Ee=>this._resizeSubject.next(Ee)))}observe($t){return this._elementObservables.has($t)||this._elementObservables.set($t,new pe.c(Ee=>{const at=this._resizeSubject.subscribe(Ee);return this._resizeObserver?.observe($t,{box:this._box}),()=>{this._resizeObserver?.unobserve($t),at.unsubscribe(),this._elementObservables.delete($t)}}).pipe((0,be.p)(Ee=>Ee.some(at=>at.target===$t)),(0,Te.t)({bufferSize:1,refCount:!0}),(0,_e.Q)(this._destroyed))),this._elementObservables.get($t)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}}let Se=(()=>{class vt{_observers=new Map;_ngZone=(0,i.WQX)(i.SKi);constructor(){}ngOnDestroy(){for(const[,Ee]of this._observers)Ee.destroy();this._observers.clear()}observe(Ee,at){const Fe=at?.box||"content-box";return this._observers.has(Fe)||this._observers.set(Fe,new Ne(Fe)),this._observers.get(Fe).observe(Ee)}static \u0275fac=function(at){return new(at||vt)};static \u0275prov=i.jDH({token:vt,factory:vt.\u0275fac,providedIn:"root"})}return vt})();var xe=r(1204),ae=r(7747),le=r(2902);const ke=["notch"],Ue=["matFormFieldNotchedOutline",""],st=["*"],ft=["textField"],_t=["iconPrefixContainer"],ot=["textPrefixContainer"],Yt=["iconSuffixContainer"],un=["textSuffixContainer"],wn=["*",[["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 En(vt,$t){1&vt&&i.nrm(0,"span",21)}function Ze(vt,$t){if(1&vt&&(i.j41(0,"label",20),i.SdG(1,1),i.DNE(2,En,1,0,"span",21),i.k0s()),2&vt){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 wt(vt,$t){if(1&vt&&i.DNE(0,Ze,3,5,"label",20),2&vt){const Ee=i.XpG();i.vxM(Ee._hasFloatingLabel()?0:-1)}}function ze(vt,$t){1&vt&&i.nrm(0,"div",7)}function Be(vt,$t){}function Ut(vt,$t){if(1&vt&&i.DNE(0,Be,0,0,"ng-template",13),2&vt){i.XpG(2);const Ee=i.sdS(1);i.Y8G("ngTemplateOutlet",Ee)}}function Ke(vt,$t){if(1&vt&&(i.j41(0,"div",9),i.DNE(1,Ut,1,1,null,13),i.k0s()),2&vt){const Ee=i.XpG();i.Y8G("matFormFieldNotchedOutlineOpen",Ee._shouldLabelFloat()),i.R7$(),i.vxM(Ee._forceDisplayInfixLabel()?-1:1)}}function lt(vt,$t){1&vt&&(i.j41(0,"div",10,2),i.SdG(2,2),i.k0s())}function Xe(vt,$t){1&vt&&(i.j41(0,"div",11,3),i.SdG(2,3),i.k0s())}function Ge(vt,$t){}function pt(vt,$t){if(1&vt&&i.DNE(0,Ge,0,0,"ng-template",13),2&vt){i.XpG();const Ee=i.sdS(1);i.Y8G("ngTemplateOutlet",Ee)}}function se(vt,$t){1&vt&&(i.j41(0,"div",14,4),i.SdG(2,4),i.k0s())}function qe(vt,$t){1&vt&&(i.j41(0,"div",15,5),i.SdG(2,5),i.k0s())}function Nt(vt,$t){1&vt&&i.nrm(0,"div",16)}function tn(vt,$t){if(1&vt&&(i.j41(0,"div",18),i.SdG(1,6),i.k0s()),2&vt){const Ee=i.XpG();i.Y8G("@transitionMessages",Ee._subscriptAnimationState)}}function pn(vt,$t){if(1&vt&&(i.j41(0,"mat-hint",22),i.EFF(1),i.k0s()),2&vt){const Ee=i.XpG(2);i.Y8G("id",Ee._hintLabelId),i.R7$(),i.JRh(Ee.hintLabel)}}function Wn(vt,$t){if(1&vt&&(i.j41(0,"div",19),i.DNE(1,pn,2,2,"mat-hint",22),i.SdG(2,7),i.nrm(3,"div",23),i.SdG(4,8),i.k0s()),2&vt){const Ee=i.XpG();i.Y8G("@transitionMessages",Ee._subscriptAnimationState),i.R7$(),i.vxM(Ee.hintLabel?1:-1)}}let Pt=(()=>{class vt{static \u0275fac=function(at){return new(at||vt)};static \u0275dir=i.FsC({type:vt,selectors:[["mat-label"]]})}return vt})();const en=new i.nKC("MatError");let an=(()=>{class vt{id=(0,i.WQX)(a.g7).getId("mat-mdc-error-");constructor(){(0,i.WQX)(new i.ES_("aria-live"),{optional:!0})||(0,i.WQX)(i.aKT).nativeElement.setAttribute("aria-live","polite")}static \u0275fac=function(at){return new(at||vt)};static \u0275dir=i.FsC({type:vt,selectors:[["mat-error"],["","matError",""]],hostAttrs:["aria-atomic","true",1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(at,Fe){2&at&&i.Mr5("id",Fe.id)},inputs:{id:"id"},features:[i.Jv_([{provide:en,useExisting:vt}])]})}return vt})(),Yn=(()=>{class vt{align="start";id=(0,i.WQX)(a.g7).getId("mat-mdc-hint-");static \u0275fac=function(at){return new(at||vt)};static \u0275dir=i.FsC({type:vt,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(at,Fe){2&at&&(i.Mr5("id",Fe.id),i.BMQ("align",null),i.AVh("mat-mdc-form-field-hint-end","end"===Fe.align))},inputs:{align:"align",id:"id"}})}return vt})();const Sn=new i.nKC("MatPrefix");let Xt=(()=>{class vt{set _isTextSelector(Ee){this._isText=!0}_isText=!1;static \u0275fac=function(at){return new(at||vt)};static \u0275dir=i.FsC({type:vt,selectors:[["","matPrefix",""],["","matIconPrefix",""],["","matTextPrefix",""]],inputs:{_isTextSelector:[0,"matTextPrefix","_isTextSelector"]},features:[i.Jv_([{provide:Sn,useExisting:vt}])]})}return vt})();const Mt=new i.nKC("MatSuffix");let Gt=(()=>{class vt{set _isTextSelector(Ee){this._isText=!0}_isText=!1;static \u0275fac=function(at){return new(at||vt)};static \u0275dir=i.FsC({type:vt,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[0,"matTextSuffix","_isTextSelector"]},features:[i.Jv_([{provide:Mt,useExisting:vt}])]})}return vt})();const Ot=new i.nKC("FloatingLabelParent");let Ie=(()=>{class vt{_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)(Se);_ngZone=(0,i.WQX)(i.SKi);_parent=(0,i.WQX)(Ot);_resizeSubscription=new A.yU;constructor(){}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return function Me(vt){if(null!==vt.offsetParent)return vt.scrollWidth;const Ee=vt.cloneNode(!0);Ee.style.setProperty("position","absolute"),Ee.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(Ee);const at=Ee.scrollWidth;return Ee.remove(),at}(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(at){return new(at||vt)};static \u0275dir=i.FsC({type:vt,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(at,Fe){2&at&&i.AVh("mdc-floating-label--float-above",Fe.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}})}return vt})();const nt="mdc-line-ripple--active",W="mdc-line-ripple--deactivating";let L=(()=>{class vt{_elementRef=(0,i.WQX)(i.aKT);constructor(){(0,i.WQX)(i.SKi).runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){const Ee=this._elementRef.nativeElement.classList;Ee.remove(W),Ee.add(nt)}deactivate(){this._elementRef.nativeElement.classList.add(W)}_handleTransitionEnd=Ee=>{const at=this._elementRef.nativeElement.classList,Fe=at.contains(W);"opacity"===Ee.propertyName&&Fe&&at.remove(nt,W)};ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}static \u0275fac=function(at){return new(at||vt)};static \u0275dir=i.FsC({type:vt,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]})}return vt})(),V=(()=>{class vt{_elementRef=(0,i.WQX)(i.aKT);_ngZone=(0,i.WQX)(i.SKi);open=!1;_notch;constructor(){}ngAfterViewInit(){const 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(at){return new(at||vt)};static \u0275cmp=i.VBU({type:vt,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(at,Fe){if(1&at&&i.GBs(ke,5),2&at){let Rt;i.mGM(Rt=i.lsd())&&(Fe._notch=Rt.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(at,Fe){2&at&&i.AVh("mdc-notched-outline--notched",Fe.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},attrs:Ue,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(at,Fe){1&at&&(i.NAR(),i.nrm(0,"div",1),i.j41(1,"div",2,0),i.SdG(3),i.k0s(),i.nrm(4,"div",3))},encapsulation:2,changeDetection:0})}return vt})();const Re={transitionMessages:(0,xe.hZ)("transitionMessages",[(0,xe.wk)("enter",(0,xe.iF)({opacity:1,transform:"translateY(0%)"})),(0,xe.kY)("void => enter",[(0,xe.iF)({opacity:0,transform:"translateY(-5px)"}),(0,xe.i0)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let bt=(()=>{class vt{value;stateChanges;id;placeholder;ngControl;focused;empty;shouldLabelFloat;required;disabled;errorState;controlType;autofilled;userAriaDescribedBy;disableAutomaticLabeling;static \u0275fac=function(at){return new(at||vt)};static \u0275dir=i.FsC({type:vt})}return vt})();const Zt=new i.nKC("MatFormField"),mn=new i.nKC("MAT_FORM_FIELD_DEFAULT_OPTIONS");let ti=(()=>{class vt{_elementRef=(0,i.WQX)(i.aKT);_changeDetectorRef=(0,i.WQX)(i.gRc);_dir=(0,i.WQX)(c.dS);_platform=(0,i.WQX)(w.OD);_idGenerator=(0,i.WQX)(a.g7);_defaults=(0,i.WQX)(mn,{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)(Pt);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 at=this._appearance;this._appearance=Ee||this._defaults?.appearance||"fill","outline"===this._appearance&&this._appearance!==at&&(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 at=this._control,Fe="mat-mdc-form-field-type-";Ee&&this._elementRef.nativeElement.classList.remove(Fe+Ee.controlType),at.controlType&&this._elementRef.nativeElement.classList.add(Fe+at.controlType),this._stateChanges?.unsubscribe(),this._stateChanges=at.stateChanges.subscribe(()=>{this._updateFocusState(),this._changeDetectorRef.markForCheck()}),this._describedByChanges?.unsubscribe(),this._describedByChanges=at.stateChanges.pipe((0,k.Z)([void 0,void 0]),(0,R.T)(()=>[at.errorState,at.userAriaDescribedBy]),function te(){return(0,G.N)((vt,$t)=>{let Ee,at=!1;vt.subscribe((0,Z._)($t,Fe=>{const Rt=Ee;Ee=Fe,at&&$t.next([Rt,Fe]),at=!0}))})}(),(0,be.p)(([[Rt,dt],[Bt,_n]])=>Rt!==Bt||dt!==_n)).subscribe(()=>this._syncDescribedByIds()),this._valueChanges?.unsubscribe(),at.ngControl&&at.ngControl.valueChanges&&(this._valueChanges=at.ngControl.valueChanges.pipe((0,_e.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,T.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,_e.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 at=this._control?this._control.ngControl:null;return at&&at[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 at=this._hintChildren?this._hintChildren.find(Rt=>"start"===Rt.align):null,Fe=this._hintChildren?this._hintChildren.find(Rt=>"end"===Rt.align):null;at?Ee.push(at.id):this._hintLabel&&Ee.push(this._hintLabelId),Fe&&Ee.push(Fe.id)}else this._errorChildren&&Ee.push(...this._errorChildren.map(at=>at.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 at=this._iconPrefixContainer?.nativeElement,Fe=this._textPrefixContainer?.nativeElement,Rt=this._iconSuffixContainer?.nativeElement,dt=this._textSuffixContainer?.nativeElement,Bt=at?.getBoundingClientRect().width??0,_n=Fe?.getBoundingClientRect().width??0,or=Rt?.getBoundingClientRect().width??0,Mr=dt?.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"} * (${Bt+_n}px + var(--mat-mdc-form-field-label-offset-x, 0px))))\n )`,this._elementRef.nativeElement.style.setProperty("--mat-form-field-notch-max-width",`calc(100% - ${Bt+_n+or+Mr}px)`)}_isAttachedToDom(){const Ee=this._elementRef.nativeElement;if(Ee.getRootNode){const at=Ee.getRootNode();return at&&at!==Ee}return document.documentElement.contains(Ee)}static \u0275fac=function(at){return new(at||vt)};static \u0275cmp=i.VBU({type:vt,selectors:[["mat-form-field"]],contentQueries:function(at,Fe,Rt){if(1&at&&(i.C6U(Rt,Fe._labelChild,Pt,5),i.wni(Rt,bt,5),i.wni(Rt,Sn,5),i.wni(Rt,Mt,5),i.wni(Rt,en,5),i.wni(Rt,Yn,5)),2&at){let dt;i.NyB(),i.mGM(dt=i.lsd())&&(Fe._formFieldControl=dt.first),i.mGM(dt=i.lsd())&&(Fe._prefixChildren=dt),i.mGM(dt=i.lsd())&&(Fe._suffixChildren=dt),i.mGM(dt=i.lsd())&&(Fe._errorChildren=dt),i.mGM(dt=i.lsd())&&(Fe._hintChildren=dt)}},viewQuery:function(at,Fe){if(1&at&&(i.GBs(ft,5),i.GBs(_t,5),i.GBs(ot,5),i.GBs(Yt,5),i.GBs(un,5),i.GBs(Ie,5),i.GBs(V,5),i.GBs(L,5)),2&at){let Rt;i.mGM(Rt=i.lsd())&&(Fe._textField=Rt.first),i.mGM(Rt=i.lsd())&&(Fe._iconPrefixContainer=Rt.first),i.mGM(Rt=i.lsd())&&(Fe._textPrefixContainer=Rt.first),i.mGM(Rt=i.lsd())&&(Fe._iconSuffixContainer=Rt.first),i.mGM(Rt=i.lsd())&&(Fe._textSuffixContainer=Rt.first),i.mGM(Rt=i.lsd())&&(Fe._floatingLabel=Rt.first),i.mGM(Rt=i.lsd())&&(Fe._notchedOutline=Rt.first),i.mGM(Rt=i.lsd())&&(Fe._lineRipple=Rt.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(at,Fe){2&at&&i.AVh("mat-mdc-form-field-label-always-float",Fe._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",Fe._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",Fe._hasIconSuffix)("mat-form-field-invalid",Fe._control.errorState)("mat-form-field-disabled",Fe._control.disabled)("mat-form-field-autofilled",Fe._control.autofilled)("mat-form-field-no-animations","NoopAnimations"===Fe._animationMode)("mat-form-field-appearance-fill","fill"==Fe.appearance)("mat-form-field-appearance-outline","outline"==Fe.appearance)("mat-form-field-hide-placeholder",Fe._hasFloatingLabel()&&!Fe._shouldLabelFloat())("mat-focused",Fe._control.focused)("mat-primary","accent"!==Fe.color&&"warn"!==Fe.color)("mat-accent","accent"===Fe.color)("mat-warn","warn"===Fe.color)("ng-untouched",Fe._shouldForward("untouched"))("ng-touched",Fe._shouldForward("touched"))("ng-pristine",Fe._shouldForward("pristine"))("ng-dirty",Fe._shouldForward("dirty"))("ng-valid",Fe._shouldForward("valid"))("ng-invalid",Fe._shouldForward("invalid"))("ng-pending",Fe._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[i.Jv_([{provide:Zt,useExisting:vt},{provide:Ot,useExisting:vt}])],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(at,Fe){if(1&at){const Rt=i.RV6();i.NAR(wn),i.DNE(0,wt,1,1,"ng-template",null,0,i.C5r),i.j41(2,"div",6,1),i.bIt("click",function(Bt){return i.eBV(Rt),i.Njj(Fe._control.onContainerClick(Bt))}),i.DNE(4,ze,1,0,"div",7),i.j41(5,"div",8),i.DNE(6,Ke,2,2,"div",9)(7,lt,3,0,"div",10)(8,Xe,3,0,"div",11),i.j41(9,"div",12),i.DNE(10,pt,1,1,null,13),i.SdG(11),i.k0s(),i.DNE(12,se,3,0,"div",14)(13,qe,3,0,"div",15),i.k0s(),i.DNE(14,Nt,1,0,"div",16),i.k0s(),i.j41(15,"div",17),i.DNE(16,tn,2,1,"div",18)(17,Wn,5,2,"div",19),i.k0s()}if(2&at){let Rt;i.R7$(2),i.AVh("mdc-text-field--filled",!Fe._hasOutline())("mdc-text-field--outlined",Fe._hasOutline())("mdc-text-field--no-label",!Fe._hasFloatingLabel())("mdc-text-field--disabled",Fe._control.disabled)("mdc-text-field--invalid",Fe._control.errorState),i.R7$(2),i.vxM(Fe._hasOutline()||Fe._control.disabled?-1:4),i.R7$(2),i.vxM(Fe._hasOutline()?6:-1),i.R7$(),i.vxM(Fe._hasIconPrefix?7:-1),i.R7$(),i.vxM(Fe._hasTextPrefix?8:-1),i.R7$(2),i.vxM(!Fe._hasOutline()||Fe._forceDisplayInfixLabel()?10:-1),i.R7$(2),i.vxM(Fe._hasTextSuffix?12:-1),i.R7$(),i.vxM(Fe._hasIconSuffix?13:-1),i.R7$(),i.vxM(Fe._hasOutline()?-1:14),i.R7$(),i.AVh("mat-mdc-form-field-subscript-dynamic-size","dynamic"===Fe.subscriptSizing),i.R7$(),i.vxM("error"===(Rt=Fe._getDisplayedMessages())?16:"hint"===Rt?17:-1)}},dependencies:[Ie,V,C.T3,L,Yn],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:[Re.transitionMessages]},changeDetection:0})}return vt})(),Xr=(()=>{class vt{static \u0275fac=function(at){return new(at||vt)};static \u0275mod=i.$C({type:vt});static \u0275inj=i.G2t({imports:[le.yE,ae.w5,le.yE]})}return vt})()},3904:(o,s,r)=>{"use strict";r.d(s,{An:()=>wt,m_:()=>ze,tp:()=>ke});var i=r(3107),a=r(2902),c=r(4460),y=r(3016),w=r(8915),C=r(2653),A=r(5710),S=r(2040),T=r(7947),k=r(7178),R=r(4447),G=r(6218),Z=r(7610),te=r(7691),be=r(6388);const _e=["*"];let pe;function Ce(Be){return function Te(){if(void 0===pe&&(pe=null,typeof window<"u")){const Be=window;void 0!==Be.trustedTypes&&(pe=Be.trustedTypes.createPolicy("angular#components",{createHTML:Ut=>Ut}))}return pe}()?.createHTML(Be)||Be}function Ne(Be){return Error(`Unable to find icon with the name "${Be}"`)}function xe(Be){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${Be}".`)}function ae(Be){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${Be}".`)}class le{url;svgText;options;svgElement;constructor(Ut,Ke,lt){this.url=Ut,this.svgText=Ke,this.options=lt}}let ke=(()=>{class Be{_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,lt,Xe,Ge){this._httpClient=Ke,this._sanitizer=lt,this._errorHandler=Ge,this._document=Xe}addSvgIcon(Ke,lt,Xe){return this.addSvgIconInNamespace("",Ke,lt,Xe)}addSvgIconLiteral(Ke,lt,Xe){return this.addSvgIconLiteralInNamespace("",Ke,lt,Xe)}addSvgIconInNamespace(Ke,lt,Xe,Ge){return this._addSvgIconConfig(Ke,lt,new le(Xe,null,Ge))}addSvgIconResolver(Ke){return this._resolvers.push(Ke),this}addSvgIconLiteralInNamespace(Ke,lt,Xe,Ge){const pt=this._sanitizer.sanitize(i.WPN.HTML,Xe);if(!pt)throw ae(Xe);const se=Ce(pt);return this._addSvgIconConfig(Ke,lt,new le("",se,Ge))}addSvgIconSet(Ke,lt){return this.addSvgIconSetInNamespace("",Ke,lt)}addSvgIconSetLiteral(Ke,lt){return this.addSvgIconSetLiteralInNamespace("",Ke,lt)}addSvgIconSetInNamespace(Ke,lt,Xe){return this._addSvgIconSetConfig(Ke,new le(lt,null,Xe))}addSvgIconSetLiteralInNamespace(Ke,lt,Xe){const Ge=this._sanitizer.sanitize(i.WPN.HTML,lt);if(!Ge)throw ae(lt);const pt=Ce(Ge);return this._addSvgIconSetConfig(Ke,new le("",pt,Xe))}registerFontClassAlias(Ke,lt=Ke){return this._fontCssClassesByAlias.set(Ke,lt),this}classNameForFontAlias(Ke){return this._fontCssClassesByAlias.get(Ke)||Ke}setDefaultFontSetClass(...Ke){return this._defaultFontSetClass=Ke,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(Ke){const lt=this._sanitizer.sanitize(i.WPN.RESOURCE_URL,Ke);if(!lt)throw xe(Ke);const Xe=this._cachedIconsByUrl.get(lt);return Xe?(0,y.of)(ft(Xe)):this._loadSvgIconFromConfig(new le(Ke,null)).pipe((0,S.M)(Ge=>this._cachedIconsByUrl.set(lt,Ge)),(0,T.T)(Ge=>ft(Ge)))}getNamedSvgIcon(Ke,lt=""){const Xe=_t(lt,Ke);let Ge=this._svgIconConfigs.get(Xe);if(Ge)return this._getSvgFromConfig(Ge);if(Ge=this._getIconConfigFromResolvers(lt,Ke),Ge)return this._svgIconConfigs.set(Xe,Ge),this._getSvgFromConfig(Ge);const pt=this._iconSetConfigs.get(lt);return pt?this._getSvgFromIconSetConfigs(Ke,pt):(0,w.$)(Ne(Xe))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(Ke){return Ke.svgText?(0,y.of)(ft(this._svgElementFromConfig(Ke))):this._loadSvgIconFromConfig(Ke).pipe((0,T.T)(lt=>ft(lt)))}_getSvgFromIconSetConfigs(Ke,lt){const Xe=this._extractIconWithNameFromAnySet(Ke,lt);if(Xe)return(0,y.of)(Xe);const Ge=lt.filter(pt=>!pt.svgText).map(pt=>this._loadSvgIconSetFromConfig(pt).pipe((0,k.W)(se=>{const Nt=`Loading icon set URL: ${this._sanitizer.sanitize(i.WPN.RESOURCE_URL,pt.url)} failed: ${se.message}`;return this._errorHandler.handleError(new Error(Nt)),(0,y.of)(null)})));return(0,C.p)(Ge).pipe((0,T.T)(()=>{const pt=this._extractIconWithNameFromAnySet(Ke,lt);if(!pt)throw Ne(Ke);return pt}))}_extractIconWithNameFromAnySet(Ke,lt){for(let Xe=lt.length-1;Xe>=0;Xe--){const Ge=lt[Xe];if(Ge.svgText&&Ge.svgText.toString().indexOf(Ke)>-1){const pt=this._svgElementFromConfig(Ge),se=this._extractSvgIconFromSet(pt,Ke,Ge.options);if(se)return se}}return null}_loadSvgIconFromConfig(Ke){return this._fetchIcon(Ke).pipe((0,S.M)(lt=>Ke.svgText=lt),(0,T.T)(()=>this._svgElementFromConfig(Ke)))}_loadSvgIconSetFromConfig(Ke){return Ke.svgText?(0,y.of)(null):this._fetchIcon(Ke).pipe((0,S.M)(lt=>Ke.svgText=lt))}_extractSvgIconFromSet(Ke,lt,Xe){const Ge=Ke.querySelector(`[id="${lt}"]`);if(!Ge)return null;const pt=Ge.cloneNode(!0);if(pt.removeAttribute("id"),"svg"===pt.nodeName.toLowerCase())return this._setSvgAttributes(pt,Xe);if("symbol"===pt.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(pt),Xe);const se=this._svgElementFromString(Ce(""));return se.appendChild(pt),this._setSvgAttributes(se,Xe)}_svgElementFromString(Ke){const lt=this._document.createElement("DIV");lt.innerHTML=Ke;const Xe=lt.querySelector("svg");if(!Xe)throw Error(" tag not found");return Xe}_toSvgElement(Ke){const lt=this._svgElementFromString(Ce("")),Xe=Ke.attributes;for(let Ge=0;GeCe(Nt)),(0,R.j)(()=>this._inProgressUrlFetches.delete(pt)),(0,G.u)());return this._inProgressUrlFetches.set(pt,qe),qe}_addSvgIconConfig(Ke,lt,Xe){return this._svgIconConfigs.set(_t(Ke,lt),Xe),this}_addSvgIconSetConfig(Ke,lt){const Xe=this._iconSetConfigs.get(Ke);return Xe?Xe.push(lt):this._iconSetConfigs.set(Ke,[lt]),this}_svgElementFromConfig(Ke){if(!Ke.svgElement){const lt=this._svgElementFromString(Ke.svgText);this._setSvgAttributes(lt,Ke.options),Ke.svgElement=lt}return Ke.svgElement}_getIconConfigFromResolvers(Ke,lt){for(let Xe=0;XeUt?Ut.pathname+Ut.search:""}}}),$n=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],En=$n.map(Be=>`[${Be}]`).join(", "),Ze=/^url\(['"]?#(.*?)['"]?\)$/;let wt=(()=>{class Be{_elementRef=(0,i.WQX)(i.aKT);_iconRegistry=(0,i.WQX)(ke);_location=(0,i.WQX)(un);_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 lt=this._cleanupFontValue(Ke);lt!==this._fontSet&&(this._fontSet=lt,this._updateFontIconClasses())}_fontSet;get fontIcon(){return this._fontIcon}set fontIcon(Ke){const lt=this._cleanupFontValue(Ke);lt!==this._fontIcon&&(this._fontIcon=lt,this._updateFontIconClasses())}_fontIcon;_previousFontSetClass=[];_previousFontIconClass;_svgName;_svgNamespace;_previousPath;_elementsWithExternalReferences;_currentIconFetch=A.yU.EMPTY;constructor(){const Ke=(0,i.WQX)(new i.ES_("aria-hidden"),{optional:!0}),lt=(0,i.WQX)(Yt,{optional:!0});lt&&(lt.color&&(this.color=this._defaultColor=lt.color),lt.fontSet&&(this.fontSet=lt.fontSet)),Ke||this._elementRef.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(Ke){if(!Ke)return["",""];const lt=Ke.split(":");switch(lt.length){case 1:return["",lt[0]];case 2:return lt;default:throw Error(`Invalid icon name: "${Ke}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const Ke=this._elementsWithExternalReferences;if(Ke&&Ke.size){const lt=this._location.getPathname();lt!==this._previousPath&&(this._previousPath=lt,this._prependPathToReferences(lt))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(Ke){this._clearSvgElement();const lt=this._location.getPathname();this._previousPath=lt,this._cacheChildrenWithExternalReferences(Ke),this._prependPathToReferences(lt),this._elementRef.nativeElement.appendChild(Ke)}_clearSvgElement(){const Ke=this._elementRef.nativeElement;let lt=Ke.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();lt--;){const Xe=Ke.childNodes[lt];(1!==Xe.nodeType||"svg"===Xe.nodeName.toLowerCase())&&Xe.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const Ke=this._elementRef.nativeElement,lt=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(Xe=>Xe.length>0);this._previousFontSetClass.forEach(Xe=>Ke.classList.remove(Xe)),lt.forEach(Xe=>Ke.classList.add(Xe)),this._previousFontSetClass=lt,this.fontIcon!==this._previousFontIconClass&&!lt.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 lt=this._elementsWithExternalReferences;lt&<.forEach((Xe,Ge)=>{Xe.forEach(pt=>{Ge.setAttribute(pt.name,`url('${Ke}#${pt.value}')`)})})}_cacheChildrenWithExternalReferences(Ke){const lt=Ke.querySelectorAll(En),Xe=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let Ge=0;Ge{const se=lt[Ge],qe=se.getAttribute(pt),Nt=qe?qe.match(Ze):null;if(Nt){let tn=Xe.get(se);tn||(tn=[],Xe.set(se,tn)),tn.push({name:pt,value:Nt[1]})}})}_updateSvgIcon(Ke){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),Ke){const[lt,Xe]=this._splitIconName(Ke);lt&&(this._svgNamespace=lt),Xe&&(this._svgName=Xe),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(Xe,lt).pipe((0,Z.s)(1)).subscribe(Ge=>this._setSvgElement(Ge),Ge=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${lt}:${Xe}! ${Ge.message}`))})}}static \u0275fac=function(lt){return new(lt||Be)};static \u0275cmp=i.VBU({type:Be,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(lt,Xe){2<&&(i.BMQ("data-mat-icon-type",Xe._usingFontIcon()?"font":"svg")("data-mat-icon-name",Xe._svgName||Xe.fontIcon)("data-mat-icon-namespace",Xe._svgNamespace||Xe.fontSet)("fontIcon",Xe._usingFontIcon()?Xe.fontIcon:null),i.HbH(Xe.color?"mat-"+Xe.color:""),i.AVh("mat-icon-inline",Xe.inline)("mat-icon-no-color","primary"!==Xe.color&&"accent"!==Xe.color&&"warn"!==Xe.color))},inputs:{color:"color",inline:[2,"inline","inline",i.L39],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[i.GFd],ngContentSelectors:_e,decls:1,vars:0,template:function(lt,Xe){1<&&(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 Be})(),ze=(()=>{class Be{static \u0275fac=function(lt){return new(lt||Be)};static \u0275mod=i.$C({type:Be});static \u0275inj=i.G2t({imports:[a.yE,a.yE]})}return Be})()},6389:(o,s,r)=>{"use strict";r.d(s,{fS:()=>be,fg:()=>te});var i=r(3022),a=r(2147),c=r(708),y=r(3107),w=r(8559),C=r(936),A=r(2902),S=r(6071),T=r(8447);const R=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 te=(()=>{class _e{_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 T.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}),Ce=(0,y.WQX)(C.j4,{optional:!0}),Ne=(0,y.WQX)(A.es),Se=(0,y.WQX)(R,{optional:!0,self:!0}),xe=this._elementRef.nativeElement,ae=xe.nodeName.toLowerCase();Se?(0,y.Hps)(Se.value)?this._signalBasedValueAccessor=Se:this._inputValueAccessor=Se:this._inputValueAccessor=xe,this._previousNativeValue=this.value,this.id=this.id,this._platform.IOS&&this._ngZone.runOutsideAngular(()=>{xe.addEventListener("keyup",this._iOSKeyupListener)}),this._errorStateTracker=new A.X0(Ne,this.ngControl,Ce,Te,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===ae,this._isTextarea="textarea"===ae,this._isInFormField=!!this._formField,this.disabledInteractive=this._config?.disabledInteractive||!1,this._isNativeSelect&&(this.controlType=xe.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 Ce=this._elementRef.nativeElement;"number"===Ce.type?(Ce.type="text",Ce.setSelectionRange(0,0),Ce.type="number"):Ce.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 Ce=this._elementRef.nativeElement;this._previousPlaceholder=Te,Te?Ce.setAttribute("placeholder",Te):Ce.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,Ce=Te.options[0];return this.focused||Te.multiple||!this.empty||!!(Te.selectedIndex>-1&&Ce&&Ce.label)}return this.focused&&!this.disabled||!this.empty}setDescribedByIds(Te){const Ce=this._elementRef.nativeElement,Ne=Ce.getAttribute("aria-describedby");let Se;if(Ne){const xe=this._formFieldDescribedBy||Te;Se=Te.concat(Ne.split(" ").filter(ae=>ae&&!xe.includes(ae)))}else Se=Te;this._formFieldDescribedBy=Te,Se.length?Ce.setAttribute("aria-describedby",Se.join(" ")):Ce.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 Ce=Te.target;!Ce.value&&0===Ce.selectionStart&&0===Ce.selectionEnd&&(Ce.setSelectionRange(1,1),Ce.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(Ce){return new(Ce||_e)};static \u0275dir=y.FsC({type:_e,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:21,hostBindings:function(Ce,Ne){1&Ce&&y.bIt("focus",function(){return Ne._focusChanged(!0)})("blur",function(){return Ne._focusChanged(!1)})("input",function(){return Ne._onInput()}),2&Ce&&(y.Mr5("id",Ne.id)("disabled",Ne.disabled&&!Ne.disabledInteractive)("required",Ne.required),y.BMQ("name",Ne.name||null)("readonly",Ne._getReadonlyAttribute())("aria-disabled",Ne.disabled&&Ne.disabledInteractive?"true":null)("aria-invalid",Ne.empty&&Ne.required?null:Ne.errorState)("aria-required",Ne.required)("id",Ne.id),y.AVh("mat-input-server",Ne._isServer)("mat-mdc-form-field-textarea-control",Ne._isInFormField&&Ne._isTextarea)("mat-mdc-form-field-input-control",Ne._isInFormField)("mat-mdc-input-disabled-interactive",Ne.disabledInteractive)("mdc-text-field__input",Ne._isInFormField)("mat-mdc-native-select-inline",Ne._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:_e}]),y.GFd,y.OA$]})}return _e})(),be=(()=>{class _e{static \u0275fac=function(Ce){return new(Ce||_e)};static \u0275mod=y.$C({type:_e});static \u0275inj=y.G2t({imports:[A.yE,S.RG,S.RG,c.EE,A.yE]})}return _e})()},7818:(o,s,r)=>{"use strict";r.d(s,{Cn:()=>tn,Cp:()=>Nt,fb:()=>Yt,kk:()=>lt});var i=r(3107),a=r(8559),c=r(5919),y=r(8447),w=r(7509),C=r(5710),A=r(3016),S=r(4984),T=r(593),k=r(2867),R=r(5424),G=r(1483),Z=r(7610),te=r(8136),be=r(4460),_e=r(2902),pe=r(5467),Te=r(6192),Ce=r(1204),Ne=r(2944),Se=r(9666),xe=r(2147),ae=r(8108);const le=["mat-menu-item",""],ke=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],Ue=["mat-icon, [matMenuItemIcon]","*"];function st(pn,Wn){1&pn&&(i.qSk(),i.j41(0,"svg",2),i.nrm(1,"polygon",3),i.k0s())}const ft=["*"];function _t(pn,Wn){if(1&pn){const Pt=i.RV6();i.j41(0,"div",0),i.bIt("click",function(){i.eBV(Pt);const an=i.XpG();return i.Njj(an.closed.emit("click"))})("@transformMenu.start",function(an){i.eBV(Pt);const Yn=i.XpG();return i.Njj(Yn._onAnimationStart(an))})("@transformMenu.done",function(an){i.eBV(Pt);const Yn=i.XpG();return i.Njj(Yn._onAnimationDone(an))}),i.j41(1,"div",1),i.SdG(2),i.k0s()()}if(2&pn){const Pt=i.XpG();i.HbH(Pt._classList),i.Y8G("id",Pt.panelId)("@transformMenu",Pt._panelAnimationState),i.BMQ("aria-label",Pt.ariaLabel||null)("aria-labelledby",Pt.ariaLabelledby||null)("aria-describedby",Pt.ariaDescribedby||null)}}const ot=new i.nKC("MAT_MENU_PANEL");let Yt=(()=>{class pn{_elementRef=(0,i.WQX)(i.aKT);_document=(0,i.WQX)(be.qQ);_focusMonitor=(0,i.WQX)(a.FN);_parentMenu=(0,i.WQX)(ot,{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(_e.Ah),this._parentMenu?.addItem?.(this)}focus(Pt,en){this._focusMonitor&&Pt?this._focusMonitor.focusVia(this._getHostElement(),Pt,en):this._getHostElement().focus(en),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(Pt){this.disabled&&(Pt.preventDefault(),Pt.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const Pt=this._elementRef.nativeElement.cloneNode(!0),en=Pt.querySelectorAll("mat-icon, .material-icons");for(let an=0;an enter",(0,Ce.i0)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,Ce.iF)({opacity:1,transform:"scale(1)"}))),(0,Ce.kY)("* => void",(0,Ce.i0)("100ms 25ms linear",(0,Ce.iF)({opacity:0})))]),fadeInItems:(0,Ce.hZ)("fadeInItems",[(0,Ce.wk)("showing",(0,Ce.iF)({opacity:1})),(0,Ce.kY)("void => *",[(0,Ce.iF)({opacity:0}),(0,Ce.i0)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Ut=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 lt=(()=>{class pn{_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(Pt){this._xPosition=Pt,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(Pt){this._yPosition=Pt,this.setPositionClasses()}templateRef;items;lazyContent;overlapTrigger;hasBackdrop;set panelClass(Pt){const en=this._previousPanelClass,an={...this._classList};en&&en.length&&en.split(" ").forEach(Yn=>{an[Yn]=!1}),this._previousPanelClass=Pt,Pt&&Pt.length&&(Pt.split(" ").forEach(Yn=>{an[Yn]=!0}),this._elementRef.nativeElement.className=""),this._classList=an}_previousPanelClass;get classList(){return this.panelClass}set classList(Pt){this.panelClass=Pt}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 Pt=(0,i.WQX)(Ut);this.overlayPanelClass=Pt.overlayPanelClass||"",this._xPosition=Pt.xPosition,this._yPosition=Pt.yPosition,this.backdropClass=Pt.backdropClass,this.overlapTrigger=Pt.overlapTrigger,this.hasBackdrop=Pt.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,T.Z)(this._directDescendantItems),(0,k.n)(Pt=>(0,w.h)(...Pt.map(en=>en._focused)))).subscribe(Pt=>this._keyManager.updateActiveItem(Pt)),this._directDescendantItems.changes.subscribe(Pt=>{const en=this._keyManager;if("enter"===this._panelAnimationState&&en.activeItem?._hasFocus()){const an=Pt.toArray(),Yn=Math.max(0,Math.min(an.length-1,en.activeItemIndex||0));an[Yn]&&!an[Yn].disabled?en.setActiveItem(Yn):en.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusRef?.destroy()}_hovered(){return this._directDescendantItems.changes.pipe((0,T.Z)(this._directDescendantItems),(0,k.n)(en=>(0,w.h)(...en.map(an=>an._hovered))))}addItem(Pt){}removeItem(Pt){}_handleKeydown(Pt){const en=Pt.keyCode,an=this._keyManager;switch(en){case c._f:(0,c.rp)(Pt)||(Pt.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(en===c.i7||en===c.n6)&&an.setFocusOrigin("keyboard"),void an.onKeydown(Pt)}}focusFirstItem(Pt="program"){this._firstItemFocusRef?.destroy(),this._firstItemFocusRef=(0,i.mal)(()=>{let en=null;if(this._directDescendantItems.length&&(en=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!en||!en.contains(document.activeElement)){const an=this._keyManager;an.setFocusOrigin(Pt).setFirstItemActive(),!an.activeItem&&en&&en.focus()}},{injector:this._injector})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(Pt){}setPositionClasses(Pt=this.xPosition,en=this.yPosition){this._classList={...this._classList,"mat-menu-before":"before"===Pt,"mat-menu-after":"after"===Pt,"mat-menu-above":"above"===en,"mat-menu-below":"below"===en},this._changeDetectorRef.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(Pt){this._animationDone.next(Pt),this._isAnimating=!1}_onAnimationStart(Pt){this._isAnimating=!0,"enter"===Pt.toState&&0===this._keyManager.activeItemIndex&&(Pt.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,T.Z)(this._allItems)).subscribe(Pt=>{this._directDescendantItems.reset(Pt.filter(en=>en._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}static \u0275fac=function(en){return new(en||pn)};static \u0275cmp=i.VBU({type:pn,selectors:[["mat-menu"]],contentQueries:function(en,an,Yn){if(1&en&&(i.wni(Yn,En,5),i.wni(Yn,Yt,5),i.wni(Yn,Yt,4)),2&en){let Sn;i.mGM(Sn=i.lsd())&&(an.lazyContent=Sn.first),i.mGM(Sn=i.lsd())&&(an._allItems=Sn),i.mGM(Sn=i.lsd())&&(an.items=Sn)}},viewQuery:function(en,an){if(1&en&&i.GBs(i.C4Q,5),2&en){let Yn;i.mGM(Yn=i.lsd())&&(an.templateRef=Yn.first)}},hostVars:3,hostBindings:function(en,an){2&en&&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",Pt=>null==Pt?null:(0,i.L39)(Pt)],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],features:[i.Jv_([{provide:ot,useExisting:pn}]),i.GFd],ngContentSelectors:ft,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel",3,"click","id"],[1,"mat-mdc-menu-content"]],template:function(en,an){1&en&&(i.NAR(),i.DNE(0,_t,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:[wt.transformMenu,wt.fadeInItems]},changeDetection:0})}return pn})();const Xe=new i.nKC("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{const pn=(0,i.WQX)(Se.hJ);return()=>pn.scrollStrategies.reposition()}}),pt={provide:Xe,deps:[Se.hJ],useFactory:function Ge(pn){return()=>pn.scrollStrategies.reposition()}},se=(0,xe.BQ)({passive:!0});let Nt=(()=>{class pn{_overlay=(0,i.WQX)(Se.hJ);_element=(0,i.WQX)(i.aKT);_viewContainerRef=(0,i.WQX)(i.c1b);_menuItemInstance=(0,i.WQX)(Yt,{optional:!0,self:!0});_dir=(0,i.WQX)(Ne.dS,{optional:!0});_focusMonitor=(0,i.WQX)(a.FN);_ngZone=(0,i.WQX)(i.SKi);_scrollStrategy=(0,i.WQX)(Xe);_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=Pt=>{(0,a.w6)(Pt)||(this._openedBy="touch")};_openedBy=void 0;get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(Pt){this.menu=Pt}get menu(){return this._menu}set menu(Pt){Pt!==this._menu&&(this._menu=Pt,this._menuCloseSubscription.unsubscribe(),Pt&&(this._menuCloseSubscription=Pt.close.subscribe(en=>{this._destroyMenu(en),("click"===en||"tab"===en)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(en)})),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 Pt=(0,i.WQX)(ot,{optional:!0});this._parentMaterialMenu=Pt instanceof lt?Pt: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 Pt=this.menu;if(this._menuOpen||!Pt)return;const en=this._createOverlay(Pt),an=en.getConfig(),Yn=an.positionStrategy;this._setPosition(Pt,Yn),an.hasBackdrop=null==Pt.hasBackdrop?!this.triggersSubmenu():Pt.hasBackdrop,en.attach(this._getPortal(Pt)),Pt.lazyContent&&Pt.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(Pt),Pt instanceof lt&&(Pt._startAnimation(),Pt._directDescendantItems.changes.pipe((0,R.Q)(Pt.close)).subscribe(()=>{Yn.withLockedPosition(!1).reapplyLastPosition(),Yn.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(Pt,en){this._focusMonitor&&Pt?this._focusMonitor.focusVia(this._element,Pt,en):this._element.nativeElement.focus(en)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(Pt){if(!this._overlayRef||!this.menuOpen)return;const en=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===Pt||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,en instanceof lt?(en._resetAnimation(),en.lazyContent?en._animationDone.pipe((0,G.p)(an=>"void"===an.toState),(0,Z.s)(1),(0,R.Q)(en.lazyContent._attached)).subscribe({next:()=>en.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),en?.lazyContent?.detach())}_initMenu(Pt){Pt.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,Pt.direction=this.dir,Pt.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setIsMenuOpen(Pt){Pt!==this._menuOpen&&(this._menuOpen=Pt,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(Pt),this._changeDetectorRef.markForCheck())}_createOverlay(Pt){if(!this._overlayRef){const en=this._getOverlayConfig(Pt);this._subscribeToPositions(Pt,en.positionStrategy),this._overlayRef=this._overlay.create(en),this._overlayRef.keydownEvents().subscribe(an=>{this.menu instanceof lt&&this.menu._handleKeydown(an)})}return this._overlayRef}_getOverlayConfig(Pt){return new Se.rR({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:Pt.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:Pt.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir||"ltr"})}_subscribeToPositions(Pt,en){Pt.setPositionClasses&&en.positionChanges.subscribe(an=>{this._ngZone.run(()=>{Pt.setPositionClasses("start"===an.connectionPair.overlayX?"after":"before","top"===an.connectionPair.overlayY?"below":"above")})})}_setPosition(Pt,en){let[an,Yn]="before"===Pt.xPosition?["end","start"]:["start","end"],[Sn,Xt]="above"===Pt.yPosition?["bottom","top"]:["top","bottom"],[Mt,Gt]=[Sn,Xt],[Ot,Ie]=[an,Yn],Me=0;if(this.triggersSubmenu()){if(Ie=an="before"===Pt.xPosition?"start":"end",Yn=Ot="end"===an?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const nt=this._parentMaterialMenu.items.first;this._parentInnerPadding=nt?nt._getHostElement().offsetTop:0}Me="bottom"===Sn?this._parentInnerPadding:-this._parentInnerPadding}}else Pt.overlapTrigger||(Mt="top"===Sn?"bottom":"top",Gt="top"===Xt?"bottom":"top");en.withPositions([{originX:an,originY:Mt,overlayX:Ot,overlayY:Sn,offsetY:Me},{originX:Yn,originY:Mt,overlayX:Ie,overlayY:Sn,offsetY:Me},{originX:an,originY:Gt,overlayX:Ot,overlayY:Xt,offsetY:-Me},{originX:Yn,originY:Gt,overlayX:Ie,overlayY:Xt,offsetY:-Me}])}_menuClosingActions(){const Pt=this._overlayRef.backdropClick(),en=this._overlayRef.detachments(),an=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,A.of)(),Yn=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,G.p)(Sn=>Sn!==this._menuItemInstance),(0,G.p)(()=>this._menuOpen)):(0,A.of)();return(0,w.h)(Pt,an,Yn,en)}_handleMousedown(Pt){(0,a._G)(Pt)||(this._openedBy=0===Pt.button?"mouse":void 0,this.triggersSubmenu()&&Pt.preventDefault())}_handleKeydown(Pt){const en=Pt.keyCode;(en===c.Fm||en===c.t6)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(en===c.LE&&"ltr"===this.dir||en===c.UQ&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(Pt){this.triggersSubmenu()?(Pt.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,G.p)(Pt=>Pt===this._menuItemInstance&&!Pt.disabled),(0,te.c)(0,S.$)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof lt&&this.menu._isAnimating?this.menu._animationDone.pipe((0,Z.s)(1),(0,te.c)(0,S.$),(0,R.Q)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(Pt){return(!this._portal||this._portal.templateRef!==Pt.templateRef)&&(this._portal=new Te.VA(Pt.templateRef,this._viewContainerRef)),this._portal}static \u0275fac=function(en){return new(en||pn)};static \u0275dir=i.FsC({type:pn,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(en,an){1&en&&i.bIt("click",function(Sn){return an._handleClick(Sn)})("mousedown",function(Sn){return an._handleMousedown(Sn)})("keydown",function(Sn){return an._handleKeydown(Sn)}),2&en&&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 pn})(),tn=(()=>{class pn{static \u0275fac=function(en){return new(en||pn)};static \u0275mod=i.$C({type:pn});static \u0275inj=i.G2t({providers:[pt],imports:[_e.pZ,_e.yE,Se.z_,ae.Gj,_e.yE]})}return pn})()},2322:(o,s,r)=>{"use strict";r.d(s,{HM:()=>S,PO:()=>k});var i=r(3107),c=(r(4460),r(2902));function y(R,G){1&R&&i.nrm(0,"div",2)}const w=new i.nKC("MAT_PROGRESS_BAR_DEFAULT_OPTIONS");let S=(()=>{class R{_elementRef=(0,i.WQX)(i.aKT);_ngZone=(0,i.WQX)(i.SKi);_changeDetectorRef=(0,i.WQX)(i.gRc);_animationMode=(0,i.WQX)(i.bc$,{optional:!0});constructor(){const Z=(0,i.WQX)(w,{optional:!0});this._isNoopAnimation="NoopAnimations"===this._animationMode,Z&&(Z.color&&(this.color=this._defaultColor=Z.color),this.mode=Z.mode||this.mode)}_isNoopAnimation=!1;get color(){return this._color||this._defaultColor}set color(Z){this._color=Z}_color;_defaultColor="primary";get value(){return this._value}set value(Z){this._value=T(Z||0),this._changeDetectorRef.markForCheck()}_value=0;get bufferValue(){return this._bufferValue||0}set bufferValue(Z){this._bufferValue=T(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(te){return new(te||R)};static \u0275cmp=i.VBU({type:R,selectors:[["mat-progress-bar"]],hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-mdc-progress-bar","mdc-linear-progress"],hostVars:10,hostBindings:function(te,be){2&te&&(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(te,be){1&te&&(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&te&&(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 R})();function T(R,G=0,Z=100){return Math.max(G,Math.min(Z,R))}let k=(()=>{class R{static \u0275fac=function(te){return new(te||R)};static \u0275mod=i.$C({type:R});static \u0275inj=i.G2t({imports:[c.yE]})}return R})()},2675:(o,s,r)=>{"use strict";r.d(s,{VO:()=>en,Ve:()=>Yn,$2:()=>an});var i=r(9666),a=r(3107),c=r(2902),y=r(6071),w=r(8108),C=r(8559),A=r(2944),k=(r(1531),r(3016),r(8447));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 k.B;constructor(Xt=!1,Mt,Gt=!0,Ot){this._multiple=Xt,this._emitChanges=Gt,this.compareWith=Ot,Mt&&Mt.length&&(Xt?Mt.forEach(Ie=>this._markSelected(Ie)):this._markSelected(Mt[0]),this._selectedToEmit.length=0)}select(...Xt){this._verifyValueAssignment(Xt),Xt.forEach(Gt=>this._markSelected(Gt));const Mt=this._hasQueuedChanges();return this._emitChangeEvent(),Mt}deselect(...Xt){this._verifyValueAssignment(Xt),Xt.forEach(Gt=>this._unmarkSelected(Gt));const Mt=this._hasQueuedChanges();return this._emitChangeEvent(),Mt}setSelection(...Xt){this._verifyValueAssignment(Xt);const Mt=this.selected,Gt=new Set(Xt);Xt.forEach(Ie=>this._markSelected(Ie)),Mt.filter(Ie=>!Gt.has(this._getConcreteValue(Ie,Gt))).forEach(Ie=>this._unmarkSelected(Ie));const Ot=this._hasQueuedChanges();return this._emitChangeEvent(),Ot}toggle(Xt){return this.isSelected(Xt)?this.deselect(Xt):this.select(Xt)}clear(Xt=!0){this._unmarkAll();const Mt=this._hasQueuedChanges();return Xt&&this._emitChangeEvent(),Mt}isSelected(Xt){return this._selection.has(this._getConcreteValue(Xt))}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(Xt){this._multiple&&this.selected&&this._selected.sort(Xt)}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(Xt){Xt=this._getConcreteValue(Xt),this.isSelected(Xt)||(this._multiple||this._unmarkAll(),this.isSelected(Xt)||this._selection.add(Xt),this._emitChanges&&this._selectedToEmit.push(Xt))}_unmarkSelected(Xt){Xt=this._getConcreteValue(Xt),this.isSelected(Xt)&&(this._selection.delete(Xt),this._emitChanges&&this._deselectedToEmit.push(Xt))}_unmarkAll(){this.isEmpty()||this._selection.forEach(Xt=>this._unmarkSelected(Xt))}_verifyValueAssignment(Xt){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}_getConcreteValue(Xt,Mt){if(this.compareWith){Mt=Mt??this._selection;for(let Gt of Mt)if(this.compareWith(Xt,Gt))return Gt;return Xt}return Xt}}var Se=r(5919),xe=r(936),ae=r(6381),le=r(7509),ke=r(593),Ue=r(2867),st=r(1483),ft=r(7947),_t=r(6645),ot=r(5424),Yt=r(7610),un=r(1204),wn=r(4460);const $n=["trigger"],En=["panel"],Ze=[[["mat-select-trigger"]],"*"],wt=["mat-select-trigger","*"];function ze(Sn,Xt){if(1&Sn&&(a.j41(0,"span",4),a.EFF(1),a.k0s()),2&Sn){const Mt=a.XpG();a.R7$(),a.JRh(Mt.placeholder)}}function Be(Sn,Xt){1&Sn&&a.SdG(0)}function Ut(Sn,Xt){if(1&Sn&&(a.j41(0,"span",11),a.EFF(1),a.k0s()),2&Sn){const Mt=a.XpG(2);a.R7$(),a.JRh(Mt.triggerValue)}}function Ke(Sn,Xt){if(1&Sn&&(a.j41(0,"span",5),a.DNE(1,Be,1,0)(2,Ut,2,1,"span",11),a.k0s()),2&Sn){const Mt=a.XpG();a.R7$(),a.vxM(Mt.customTrigger?1:2)}}function lt(Sn,Xt){if(1&Sn){const Mt=a.RV6();a.j41(0,"div",12,1),a.bIt("@transformPanel.done",function(Ot){a.eBV(Mt);const Ie=a.XpG();return a.Njj(Ie._panelDoneAnimatingStream.next(Ot.toState))})("keydown",function(Ot){a.eBV(Mt);const Ie=a.XpG();return a.Njj(Ie._handleKeydown(Ot))}),a.SdG(2,1),a.k0s()}if(2&Sn){const Mt=a.XpG();a.ZvI("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",Mt._getPanelTheme(),""),a.Y8G("ngClass",Mt.panelClass)("@transformPanel","showing"),a.BMQ("id",Mt.id+"-panel")("aria-multiselectable",Mt.multiple)("aria-label",Mt.ariaLabel||null)("aria-labelledby",Mt._getPanelAriaLabelledby())}}const Xe={transformPanelWrap:(0,un.hZ)("transformPanelWrap",[(0,un.kY)("* => void",(0,un.P)("@transformPanel",[(0,un.MA)()],{optional:!0}))]),transformPanel:(0,un.hZ)("transformPanel",[(0,un.wk)("void",(0,un.iF)({opacity:0,transform:"scale(1, 0.8)"})),(0,un.kY)("void => showing",(0,un.i0)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,un.iF)({opacity:1,transform:"scale(1, 1)"}))),(0,un.kY)("* => void",(0,un.i0)("100ms linear",(0,un.iF)({opacity:0})))])},qe=new a.nKC("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{const Sn=(0,a.WQX)(i.hJ);return()=>Sn.scrollStrategies.reposition()}}),tn=new a.nKC("MAT_SELECT_CONFIG"),pn={provide:qe,deps:[i.hJ],useFactory:function Nt(Sn){return()=>Sn.scrollStrategies.reposition()}},Wn=new a.nKC("MatSelectTrigger");class Pt{source;value;constructor(Xt,Mt){this.source=Xt,this.value=Mt}}let en=(()=>{class Sn{_viewportRuler=(0,a.WQX)(w.Xj);_changeDetectorRef=(0,a.WQX)(a.gRc);_elementRef=(0,a.WQX)(a.aKT);_dir=(0,a.WQX)(A.dS,{optional:!0});_idGenerator=(0,a.WQX)(C.g7);_parentFormField=(0,a.WQX)(y.xb,{optional:!0});ngControl=(0,a.WQX)(xe.vO,{self:!0,optional:!0});_liveAnnouncer=(0,a.WQX)(C.Ai);_defaultOptions=(0,a.WQX)(tn,{optional:!0});options;optionGroups;customTrigger;_positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}];_scrollOptionIntoView(Mt){const Gt=this.options.toArray()[Mt];if(Gt){const Ot=this.panel.nativeElement,Ie=(0,c.jb)(Mt,this.options,this.optionGroups),Me=Gt._getHostElement();Ot.scrollTop=0===Mt&&1===Ie?0:(0,c.TL)(Me.offsetTop,Me.offsetHeight,Ot.scrollTop,Ot.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(Mt){return new Pt(this,Mt)}_scrollStrategyFactory=(0,a.WQX)(qe);_panelOpen=!1;_compareWith=(Mt,Gt)=>Mt===Gt;_uid=this._idGenerator.getId("mat-select-");_triggerAriaLabelledBy=null;_previousControl;_destroy=new k.B;_errorStateTracker;stateChanges=new k.B;disableAutomaticLabeling=!0;userAriaDescribedBy;_selectionModel;_keyManager;_preferredOverlayOrigin;_overlayWidth;_onChange=()=>{};_onTouched=()=>{};_valueId=this._idGenerator.getId("mat-select-value-");_panelDoneAnimatingStream=new k.B;_scrollStrategy;_overlayPanelClass=this._defaultOptions?.overlayPanelClass||"";get focused(){return this._focused||this._panelOpen}_focused=!1;controlType="mat-select";trigger;panel;_overlayDir;panelClass;disabled=!1;disableRipple=!1;tabIndex=0;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(Mt){this._hideSingleSelectionIndicator=Mt,this._syncParentProperties()}_hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1;get placeholder(){return this._placeholder}set placeholder(Mt){this._placeholder=Mt,this.stateChanges.next()}_placeholder;get required(){return this._required??this.ngControl?.control?.hasValidator(xe.k0.required)??!1}set required(Mt){this._required=Mt,this.stateChanges.next()}_required;get multiple(){return this._multiple}set multiple(Mt){this._multiple=Mt}_multiple=!1;disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1;get compareWith(){return this._compareWith}set compareWith(Mt){this._compareWith=Mt,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(Mt){this._assignValue(Mt)&&this._onChange(Mt)}_value;ariaLabel="";ariaLabelledby;get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(Mt){this._errorStateTracker.matcher=Mt}typeaheadDebounceInterval;sortComparator;get id(){return this._id}set id(Mt){this._id=Mt||this._uid,this.stateChanges.next()}_id;get errorState(){return this._errorStateTracker.errorState}set errorState(Mt){this._errorStateTracker.errorState=Mt}panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto";_initialized=new k.B;optionSelectionChanges=(0,ae.v)(()=>{const Mt=this.options;return Mt?Mt.changes.pipe((0,ke.Z)(Mt),(0,Ue.n)(()=>(0,le.h)(...Mt.map(Gt=>Gt.onSelectionChange)))):this._initialized.pipe((0,Ue.n)(()=>this.optionSelectionChanges))});openedChange=new a.bkB;_openedStream=this.openedChange.pipe((0,st.p)(Mt=>Mt),(0,ft.T)(()=>{}));_closedStream=this.openedChange.pipe((0,st.p)(Mt=>!Mt),(0,ft.T)(()=>{}));selectionChange=new a.bkB;valueChange=new a.bkB;constructor(){const Mt=(0,a.WQX)(c.es),Gt=(0,a.WQX)(xe.cV,{optional:!0}),Ot=(0,a.WQX)(xe.j4,{optional:!0}),Ie=(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(Mt,this.ngControl,Ot,Gt,this.stateChanges),this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=null==Ie?0:parseInt(Ie)||0,this.id=this.id}ngOnInit(){this._selectionModel=new Te(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,_t.F)(),(0,ot.Q)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen)),this._viewportRuler.change().pipe((0,ot.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,ot.Q)(this._destroy)).subscribe(Mt=>{Mt.added.forEach(Gt=>Gt.select()),Mt.removed.forEach(Gt=>Gt.deselect())}),this.options.changes.pipe((0,ke.Z)(null),(0,ot.Q)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const Mt=this._getTriggerAriaLabelledby(),Gt=this.ngControl;if(Mt!==this._triggerAriaLabelledBy){const Ot=this._elementRef.nativeElement;this._triggerAriaLabelledBy=Mt,Mt?Ot.setAttribute("aria-labelledby",Mt):Ot.removeAttribute("aria-labelledby")}Gt&&(this._previousControl!==Gt.control&&(void 0!==this._previousControl&&null!==Gt.disabled&&Gt.disabled!==this.disabled&&(this.disabled=Gt.disabled),this._previousControl=Gt.control),this.updateErrorState())}ngOnChanges(Mt){(Mt.disabled||Mt.userAriaDescribedBy)&&this.stateChanges.next(),Mt.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 Mt=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!Mt)return;const Gt=`${this.id}-panel`;this._trackedModal&&(0,C.Ae)(this._trackedModal,"aria-owns",Gt),(0,C.px)(Mt,"aria-owns",Gt),this._trackedModal=Mt}_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(Mt){this._assignValue(Mt)}registerOnChange(Mt){this._onChange=Mt}registerOnTouched(Mt){this._onTouched=Mt}setDisabledState(Mt){this.disabled=Mt,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 Mt=this._selectionModel.selected.map(Gt=>Gt.viewValue);return this._isRtl()&&Mt.reverse(),Mt.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(Mt){this.disabled||(this.panelOpen?this._handleOpenKeydown(Mt):this._handleClosedKeydown(Mt))}_handleClosedKeydown(Mt){const Gt=Mt.keyCode,Ot=Gt===Se.n6||Gt===Se.i7||Gt===Se.UQ||Gt===Se.LE,Ie=Gt===Se.Fm||Gt===Se.t6,Me=this._keyManager;if(!Me.isTyping()&&Ie&&!(0,Se.rp)(Mt)||(this.multiple||Mt.altKey)&&Ot)Mt.preventDefault(),this.open();else if(!this.multiple){const nt=this.selected;Me.onKeydown(Mt);const W=this.selected;W&&nt!==W&&this._liveAnnouncer.announce(W.viewValue,1e4)}}_handleOpenKeydown(Mt){const Gt=this._keyManager,Ot=Mt.keyCode,Ie=Ot===Se.n6||Ot===Se.i7,Me=Gt.isTyping();if(Ie&&Mt.altKey)Mt.preventDefault(),this.close();else if(Me||Ot!==Se.Fm&&Ot!==Se.t6||!Gt.activeItem||(0,Se.rp)(Mt))if(!Me&&this._multiple&&Ot===Se.A&&Mt.ctrlKey){Mt.preventDefault();const nt=this.options.some(W=>!W.disabled&&!W.selected);this.options.forEach(W=>{W.disabled||(nt?W.select():W.deselect())})}else{const nt=Gt.activeItemIndex;Gt.onKeydown(Mt),this._multiple&&Ie&&Mt.shiftKey&&Gt.activeItem&&Gt.activeItemIndex!==nt&&Gt.activeItem._selectViaInteraction()}else Mt.preventDefault(),Gt.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,Yt.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(Mt){if(this.options.forEach(Gt=>Gt.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&Mt)Array.isArray(Mt),Mt.forEach(Gt=>this._selectOptionByValue(Gt)),this._sortValues();else{const Gt=this._selectOptionByValue(Mt);Gt?this._keyManager.updateActiveItem(Gt):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(Mt){const Gt=this.options.find(Ot=>{if(this._selectionModel.isSelected(Ot))return!1;try{return null!=Ot.value&&this._compareWith(Ot.value,Mt)}catch{return!1}});return Gt&&this._selectionModel.select(Gt),Gt}_assignValue(Mt){return!!(Mt!==this._value||this._multiple&&Array.isArray(Mt))&&(this.options&&this._setSelectionByValue(Mt),this._value=Mt,!0)}_skipPredicate=Mt=>!this.panelOpen&&Mt.disabled;_getOverlayWidth(Mt){return"auto"===this.panelWidth?(Mt instanceof i.$Q?Mt.elementRef:Mt||this._elementRef).nativeElement.getBoundingClientRect().width:null===this.panelWidth?"":this.panelWidth}_syncParentProperties(){if(this.options)for(const Mt of this.options)Mt._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 Mt=(0,le.h)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,ot.Q)(Mt)).subscribe(Gt=>{this._onSelect(Gt.source,Gt.isUserInput),Gt.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,le.h)(...this.options.map(Gt=>Gt._stateChanges)).pipe((0,ot.Q)(Mt)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(Mt,Gt){const Ot=this._selectionModel.isSelected(Mt);null!=Mt.value||this._multiple?(Ot!==Mt.selected&&(Mt.selected?this._selectionModel.select(Mt):this._selectionModel.deselect(Mt)),Gt&&this._keyManager.setActiveItem(Mt),this.multiple&&(this._sortValues(),Gt&&this.focus())):(Mt.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(Mt.value)),Ot!==this._selectionModel.isSelected(Mt)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const Mt=this.options.toArray();this._selectionModel.sort((Gt,Ot)=>this.sortComparator?this.sortComparator(Gt,Ot,Mt):Mt.indexOf(Gt)-Mt.indexOf(Ot)),this.stateChanges.next()}}_propagateChanges(Mt){let Gt;Gt=this.multiple?this.selected.map(Ot=>Ot.value):this.selected?this.selected.value:Mt,this._value=Gt,this.valueChange.emit(Gt),this._onChange(Gt),this.selectionChange.emit(this._getChangeEvent(Gt)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let Mt=-1;for(let Gt=0;Gt0}focus(Mt){this._elementRef.nativeElement.focus(Mt)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const Mt=this._parentFormField?.getLabelId()||null;return this.ariaLabelledby?(Mt?Mt+" ":"")+this.ariaLabelledby:Mt}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const Mt=this._parentFormField?.getLabelId();let Gt=(Mt?Mt+" ":"")+this._valueId;return this.ariaLabelledby&&(Gt+=" "+this.ariaLabelledby),Gt}_panelDoneAnimating(Mt){this.openedChange.emit(Mt)}setDescribedByIds(Mt){Mt.length?this._elementRef.nativeElement.setAttribute("aria-describedby",Mt.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(Gt){return new(Gt||Sn)};static \u0275cmp=a.VBU({type:Sn,selectors:[["mat-select"]],contentQueries:function(Gt,Ot,Ie){if(1&Gt&&(a.wni(Ie,Wn,5),a.wni(Ie,c.wT,5),a.wni(Ie,c.QC,5)),2&Gt){let Me;a.mGM(Me=a.lsd())&&(Ot.customTrigger=Me.first),a.mGM(Me=a.lsd())&&(Ot.options=Me),a.mGM(Me=a.lsd())&&(Ot.optionGroups=Me)}},viewQuery:function(Gt,Ot){if(1&Gt&&(a.GBs($n,5),a.GBs(En,5),a.GBs(i.WB,5)),2&Gt){let Ie;a.mGM(Ie=a.lsd())&&(Ot.trigger=Ie.first),a.mGM(Ie=a.lsd())&&(Ot.panel=Ie.first),a.mGM(Ie=a.lsd())&&(Ot._overlayDir=Ie.first)}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(Gt,Ot){1&Gt&&a.bIt("keydown",function(Me){return Ot._handleKeydown(Me)})("focus",function(){return Ot._onFocus()})("blur",function(){return Ot._onBlur()}),2&Gt&&(a.BMQ("id",Ot.id)("tabindex",Ot.disabled?-1:Ot.tabIndex)("aria-controls",Ot.panelOpen?Ot.id+"-panel":null)("aria-expanded",Ot.panelOpen)("aria-label",Ot.ariaLabel||null)("aria-required",Ot.required.toString())("aria-disabled",Ot.disabled.toString())("aria-invalid",Ot.errorState)("aria-activedescendant",Ot._getAriaActiveDescendant()),a.AVh("mat-mdc-select-disabled",Ot.disabled)("mat-mdc-select-invalid",Ot.errorState)("mat-mdc-select-required",Ot.required)("mat-mdc-select-empty",Ot.empty)("mat-mdc-select-multiple",Ot.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",Mt=>null==Mt?0:(0,a.Udg)(Mt)],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:Sn},{provide:c.is,useExisting:Sn}]),a.GFd,a.OA$],ngContentSelectors:wt,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(Gt,Ot){if(1&Gt){const Ie=a.RV6();a.NAR(Ze),a.j41(0,"div",2,0),a.bIt("click",function(){return a.eBV(Ie),a.Njj(Ot.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,lt,3,9,"ng-template",10),a.bIt("backdropClick",function(){return a.eBV(Ie),a.Njj(Ot.close())})("attach",function(){return a.eBV(Ie),a.Njj(Ot._onAttached())})("detach",function(){return a.eBV(Ie),a.Njj(Ot.close())})}if(2&Gt){const Ie=a.sdS(1);a.R7$(3),a.BMQ("id",Ot._valueId),a.R7$(),a.vxM(Ot.empty?4:5),a.R7$(6),a.Y8G("cdkConnectedOverlayPanelClass",Ot._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",Ot._scrollStrategy)("cdkConnectedOverlayOrigin",Ot._preferredOverlayOrigin||Ie)("cdkConnectedOverlayOpen",Ot.panelOpen)("cdkConnectedOverlayPositions",Ot._positions)("cdkConnectedOverlayWidth",Ot._overlayWidth)}},dependencies:[i.$Q,i.WB,wn.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:[Xe.transformPanel]},changeDetection:0})}return Sn})(),an=(()=>{class Sn{static \u0275fac=function(Gt){return new(Gt||Sn)};static \u0275dir=a.FsC({type:Sn,selectors:[["mat-select-trigger"]],features:[a.Jv_([{provide:Wn,useExisting:Sn}])]})}return Sn})(),Yn=(()=>{class Sn{static \u0275fac=function(Gt){return new(Gt||Sn)};static \u0275mod=a.$C({type:Sn});static \u0275inj=a.G2t({providers:[pn],imports:[i.z_,c.Sy,c.yE,w.Gj,y.RG,c.Sy,c.yE]})}return Sn})()},5785:(o,s,r)=>{"use strict";r.d(s,{$C:()=>Be,$l:()=>wt,qe:()=>ze,vg:()=>Xe});var i=r(8108),a=r(3107),c=r(2902),y=r(8559),w=r(2944),C=r(3022),A=r(5919),S=r(2147),T=r(4460),k=r(8447),R=r(909),G=r(7509),Z=r(1483),te=r(7947),be=r(6590),_e=r(5424),pe=r(7610),Te=r(593),Ce=r(8627),Ne=r(1204);const Se=["*"],xe=["content"],ae=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],le=["mat-drawer","mat-drawer-content","*"];function ke(Ge,pt){if(1&Ge){const se=a.RV6();a.j41(0,"div",1),a.bIt("click",function(){a.eBV(se);const Nt=a.XpG();return a.Njj(Nt._onBackdropClicked())}),a.k0s()}if(2&Ge){const se=a.XpG();a.AVh("mat-drawer-shown",se._isShowingBackdrop())}}function Ue(Ge,pt){1&Ge&&(a.j41(0,"mat-drawer-content"),a.SdG(1,2),a.k0s())}const un={transformDrawer:(0,Ne.hZ)("transform",[(0,Ne.wk)("open, open-instant",(0,Ne.iF)({transform:"none",visibility:"visible"})),(0,Ne.wk)("void",(0,Ne.iF)({"box-shadow":"none",visibility:"hidden"})),(0,Ne.kY)("void => open-instant",(0,Ne.i0)("0ms")),(0,Ne.kY)("void <=> open, open-instant => void",(0,Ne.i0)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},$n=new a.nKC("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function Ze(){return!1}}),En=new a.nKC("MAT_DRAWER_CONTAINER");let wt=(()=>{class Ge extends i.uv{_platform=(0,a.WQX)(S.OD);_changeDetectorRef=(0,a.WQX)(a.gRc);_container=(0,a.WQX)(Be);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:qe}=this._container;return null!=se&&"over"!==se.mode&&se.opened||null!=qe&&"over"!==qe.mode&&qe.opened}static \u0275fac=function(qe){return new(qe||Ge)};static \u0275cmp=a.VBU({type:Ge,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:6,hostBindings:function(qe,Nt){2&qe&&(a.xc7("margin-left",Nt._container._contentMargins.left,"px")("margin-right",Nt._container._contentMargins.right,"px"),a.AVh("mat-drawer-content-hidden",Nt._shouldBeHidden()))},features:[a.Jv_([{provide:i.uv,useExisting:Ge}]),a.Vt3],ngContentSelectors:Se,decls:1,vars:0,template:function(qe,Nt){1&qe&&(a.NAR(),a.SdG(0))},encapsulation:2,changeDetection:0})}return Ge})(),ze=(()=>{class Ge{_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)(T.qQ,{optional:!0});_container=(0,a.WQX)(En,{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 k.B;_animationEnd=new k.B;_animationState="void";openedChange=new a.bkB(!0);_openedStream=this.openedChange.pipe((0,Z.p)(se=>se),(0,te.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,te.T)(()=>{}));closedStart=this._animationStarted.pipe((0,Z.p)(se=>se.fromState!==se.toState&&"void"===se.toState),(0,be.u)(void 0));_destroyed=new k.B;onPositionChanged=new a.bkB;_content;_modeChanged=new k.B;_injector=(0,a.WQX)(a.zZn);_changeDetectorRef=(0,a.WQX)(a.gRc);constructor(){this.openedChange.pipe((0,_e.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,R.R)(this._elementRef.nativeElement,"keydown").pipe((0,Z.p)(se=>se.keyCode===A._f&&!this.disableClose&&!(0,A.rp)(se)),(0,_e.Q)(this._destroyed)).subscribe(se=>this._ngZone.run(()=>{this.close(),se.stopPropagation(),se.preventDefault()}))}),this._animationEnd.subscribe(se=>{const{fromState:qe,toState:Nt}=se;(0===Nt.indexOf("open")&&"void"===qe||"void"===Nt&&0===qe.indexOf("open"))&&this.openedChange.emit(this._opened)})}_forceFocus(se,qe){this._interactivityChecker.isFocusable(se)||(se.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const Nt=()=>{se.removeEventListener("blur",Nt),se.removeEventListener("mousedown",Nt),se.removeAttribute("tabindex")};se.addEventListener("blur",Nt),se.addEventListener("mousedown",Nt)})),se.focus(qe)}_focusByCssSelector(se,qe){let Nt=this._elementRef.nativeElement.querySelector(se);Nt&&this._forceFocus(Nt,qe)}_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,qe){se&&qe&&(this._openedVia=qe);const Nt=this._setOpen(se,!se&&this._isFocusWithinDrawer(),this._openedVia||"program");return se||(this._openedVia=null),Nt}_setOpen(se,qe,Nt){return this._opened=se,se?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",qe&&this._restoreFocus(Nt)),this._changeDetectorRef.markForCheck(),this._updateFocusTrapState(),new Promise(tn=>{this.openedChange.pipe((0,pe.s)(1)).subscribe(pn=>tn(pn?"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 qe=this._elementRef.nativeElement,Nt=qe.parentNode;"end"===se?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),Nt.insertBefore(this._anchor,qe)),Nt.appendChild(qe)):this._anchor&&this._anchor.parentNode.insertBefore(qe,this._anchor)}static \u0275fac=function(qe){return new(qe||Ge)};static \u0275cmp=a.VBU({type:Ge,selectors:[["mat-drawer"]],viewQuery:function(qe,Nt){if(1&qe&&a.GBs(xe,5),2&qe){let tn;a.mGM(tn=a.lsd())&&(Nt._content=tn.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(qe,Nt){1&qe&&a.Kam("@transform.start",function(pn){return Nt._animationStarted.next(pn)})("@transform.done",function(pn){return Nt._animationEnd.next(pn)}),2&qe&&(a.zvX("@transform",Nt._animationState),a.BMQ("align",null),a.AVh("mat-drawer-end","end"===Nt.position)("mat-drawer-over","over"===Nt.mode)("mat-drawer-push","push"===Nt.mode)("mat-drawer-side","side"===Nt.mode)("mat-drawer-opened",Nt.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:Se,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(qe,Nt){1&qe&&(a.NAR(),a.j41(0,"div",1,0),a.SdG(2),a.k0s())},dependencies:[i.uv],encapsulation:2,data:{animation:[un.transformDrawer]},changeDetection:0})}return Ge})(),Be=(()=>{class Ge{_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 k.B;_doCheckSubject=new k.B;_contentMargins={left:null,right:null};_contentMarginChanges=new k.B;get scrollable(){return this._userContent||this._content}_injector=(0,a.WQX)(a.zZn);constructor(){const se=(0,a.WQX)(i.Xj);this._dir?.change.pipe((0,_e.Q)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),se.change().pipe((0,_e.Q)(this._destroyed)).subscribe(()=>this.updateContentMargins())}ngAfterContentInit(){this._allDrawers.changes.pipe((0,Te.Z)(this._allDrawers),(0,_e.Q)(this._destroyed)).subscribe(se=>{this._drawers.reset(se.filter(qe=>!qe._container||qe._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,Ce.B)(10),(0,_e.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,qe=0;if(this._left&&this._left.opened)if("side"==this._left.mode)se+=this._left._getWidth();else if("push"==this._left.mode){const Nt=this._left._getWidth();se+=Nt,qe-=Nt}if(this._right&&this._right.opened)if("side"==this._right.mode)qe+=this._right._getWidth();else if("push"==this._right.mode){const Nt=this._right._getWidth();qe+=Nt,se-=Nt}se=se||null,qe=qe||null,(se!==this._contentMargins.left||qe!==this._contentMargins.right)&&(this._contentMargins={left:se,right:qe},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)(qe=>qe.fromState!==qe.toState),(0,_e.Q)(this._drawers.changes)).subscribe(qe=>{"open-instant"!==qe.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==se.mode&&se.openedChange.pipe((0,_e.Q)(this._drawers.changes)).subscribe(()=>this._setContainerClass(se.opened))}_watchDrawerPosition(se){se&&se.onPositionChanged.pipe((0,_e.Q)(this._drawers.changes)).subscribe(()=>{(0,a.mal)(()=>{this._validateDrawers()},{injector:this._injector,phase:a.wjH.Read})})}_watchDrawerMode(se){se&&se._modeChanged.pipe((0,_e.Q)((0,G.h)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(se){const qe=this._element.nativeElement.classList,Nt="mat-drawer-container-has-open";se?qe.add(Nt):qe.remove(Nt)}_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(qe){return new(qe||Ge)};static \u0275cmp=a.VBU({type:Ge,selectors:[["mat-drawer-container"]],contentQueries:function(qe,Nt,tn){if(1&qe&&(a.wni(tn,wt,5),a.wni(tn,ze,5)),2&qe){let pn;a.mGM(pn=a.lsd())&&(Nt._content=pn.first),a.mGM(pn=a.lsd())&&(Nt._allDrawers=pn)}},viewQuery:function(qe,Nt){if(1&qe&&a.GBs(wt,5),2&qe){let tn;a.mGM(tn=a.lsd())&&(Nt._userContent=tn.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(qe,Nt){2&qe&&a.AVh("mat-drawer-container-explicit-backdrop",Nt._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[a.Jv_([{provide:En,useExisting:Ge}])],ngContentSelectors:le,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(qe,Nt){1&qe&&(a.NAR(ae),a.DNE(0,ke,1,2,"div",0),a.SdG(1),a.SdG(2,1),a.DNE(3,Ue,2,0,"mat-drawer-content")),2&qe&&(a.vxM(Nt.hasBackdrop?0:-1),a.R7$(3),a.vxM(Nt._content?-1:3))},dependencies:[wt],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 Ge})(),Xe=(()=>{class Ge{static \u0275fac=function(qe){return new(qe||Ge)};static \u0275mod=a.$C({type:Ge});static \u0275inj=a.G2t({imports:[c.yE,i.Gj,i.Gj,c.yE]})}return Ge})()},7712:(o,s,r)=>{"use strict";r.d(s,{oV:()=>ot,uc:()=>wn});var i=r(5424),a=r(3022),c=r(5919),y=r(3107),w=r(4460),C=r(2147),A=r(8559),S=r(2944),T=r(9666),k=r(8108),R=r(6192),G=r(8447),te=(r(1204),r(2902));const be=["tooltip"],Te=new y.nKC("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{const $n=(0,y.WQX)(T.hJ);return()=>$n.scrollStrategies.reposition({scrollThrottle:20})}}),Ne={provide:Te,deps:[T.hJ],useFactory:function Ce($n){return()=>$n.scrollStrategies.reposition({scrollThrottle:20})}},xe=new y.nKC("mat-tooltip-default-options",{providedIn:"root",factory:function Se(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),le="tooltip-panel",ke=(0,C.BQ)({passive:!0});let ot=(()=>{class $n{_overlay=(0,y.WQX)(T.hJ);_elementRef=(0,y.WQX)(y.aKT);_scrollDispatcher=(0,y.WQX)(k.R);_viewContainerRef=(0,y.WQX)(y.c1b);_ngZone=(0,y.WQX)(y.SKi);_platform=(0,y.WQX)(C.OD);_ariaDescriber=(0,y.WQX)(A.vr);_focusMonitor=(0,y.WQX)(A.FN);_dir=(0,y.WQX)(S.dS);_injector=(0,y.WQX)(y.zZn);_defaultOptions=(0,y.WQX)(xe,{optional:!0});_overlayRef;_tooltipInstance;_portal;_position="below";_positionAtOrigin=!1;_disabled=!1;_tooltipClass;_scrollStrategy=(0,y.WQX)(Te);_viewInitialized=!1;_pointerExitEventsInitialized=!1;_tooltipComponent=Yt;_viewportMargin=8;_currentPosition;_cssClassPrefix="mat-mdc";_ariaDescriptionPending;get position(){return this._position}set position(Ze){Ze!==this._position&&(this._position=Ze,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(Ze){this._positionAtOrigin=(0,a.he)(Ze),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(Ze){const wt=(0,a.he)(Ze);this._disabled!==wt&&(this._disabled=wt,wt?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message))}get showDelay(){return this._showDelay}set showDelay(Ze){this._showDelay=(0,a.OE)(Ze)}_showDelay;get hideDelay(){return this._hideDelay}set hideDelay(Ze){this._hideDelay=(0,a.OE)(Ze),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}_hideDelay;touchGestures="auto";get message(){return this._message}set message(Ze){const wt=this._message;this._message=null!=Ze?String(Ze).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(wt)}_message="";get tooltipClass(){return this._tooltipClass}set tooltipClass(Ze){this._tooltipClass=Ze,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}_passiveListeners=[];_document=(0,y.WQX)(w.qQ);_touchstartTimeout=null;_destroyed=new G.B;constructor(){const Ze=this._defaultOptions;Ze&&(this._showDelay=Ze.showDelay,this._hideDelay=Ze.hideDelay,Ze.position&&(this.position=Ze.position),Ze.positionAtOrigin&&(this.positionAtOrigin=Ze.positionAtOrigin),Ze.touchGestures&&(this.touchGestures=Ze.touchGestures),Ze.tooltipClass&&(this.tooltipClass=Ze.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(Ze=>{Ze?"keyboard"===Ze&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const Ze=this._elementRef.nativeElement;this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([wt,ze])=>{Ze.removeEventListener(wt,ze,ke)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(Ze,this.message,"tooltip"),this._focusMonitor.stopMonitoring(Ze)}show(Ze=this.showDelay,wt){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const ze=this._createOverlay(wt);this._detach(),this._portal=this._portal||new R.A8(this._tooltipComponent,this._viewContainerRef);const Be=this._tooltipInstance=ze.attach(this._portal).instance;Be._triggerElement=this._elementRef.nativeElement,Be._mouseLeaveHideDelay=this._hideDelay,Be.afterHidden().pipe((0,i.Q)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),Be.show(Ze)}hide(Ze=this.hideDelay){const wt=this._tooltipInstance;wt&&(wt.isVisible()?wt.hide(Ze):(wt._cancelPendingAnimations(),this._detach()))}toggle(Ze){this._isTooltipVisible()?this.hide():this.show(void 0,Ze)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(Ze){if(this._overlayRef){const Be=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!Ze)&&Be._origin instanceof y.aKT)return this._overlayRef;this._detach()}const wt=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),ze=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin&&Ze||this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(wt);return ze.positionChanges.pipe((0,i.Q)(this._destroyed)).subscribe(Be=>{this._updateCurrentPositionClass(Be.connectionPair),this._tooltipInstance&&Be.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:ze,panelClass:`${this._cssClassPrefix}-${le}`,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(Be=>{this._isTooltipVisible()&&Be.keyCode===c._f&&!(0,c.rp)(Be)&&(Be.preventDefault(),Be.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(Ze){const wt=Ze.getConfig().positionStrategy,ze=this._getOrigin(),Be=this._getOverlayPosition();wt.withPositions([this._addOffset({...ze.main,...Be.main}),this._addOffset({...ze.fallback,...Be.fallback})])}_addOffset(Ze){const ze=!this._dir||"ltr"==this._dir.value;return"top"===Ze.originY?Ze.offsetY=-8:"bottom"===Ze.originY?Ze.offsetY=8:"start"===Ze.originX?Ze.offsetX=ze?-8:8:"end"===Ze.originX&&(Ze.offsetX=ze?8:-8),Ze}_getOrigin(){const Ze=!this._dir||"ltr"==this._dir.value,wt=this.position;let ze;"above"==wt||"below"==wt?ze={originX:"center",originY:"above"==wt?"top":"bottom"}:"before"==wt||"left"==wt&&Ze||"right"==wt&&!Ze?ze={originX:"start",originY:"center"}:("after"==wt||"right"==wt&&Ze||"left"==wt&&!Ze)&&(ze={originX:"end",originY:"center"});const{x:Be,y:Ut}=this._invertPosition(ze.originX,ze.originY);return{main:ze,fallback:{originX:Be,originY:Ut}}}_getOverlayPosition(){const Ze=!this._dir||"ltr"==this._dir.value,wt=this.position;let ze;"above"==wt?ze={overlayX:"center",overlayY:"bottom"}:"below"==wt?ze={overlayX:"center",overlayY:"top"}:"before"==wt||"left"==wt&&Ze||"right"==wt&&!Ze?ze={overlayX:"end",overlayY:"center"}:("after"==wt||"right"==wt&&Ze||"left"==wt&&!Ze)&&(ze={overlayX:"start",overlayY:"center"});const{x:Be,y:Ut}=this._invertPosition(ze.overlayX,ze.overlayY);return{main:ze,fallback:{overlayX:Be,overlayY:Ut}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),(0,y.mal)(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(Ze){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=Ze,this._tooltipInstance._markForCheck())}_invertPosition(Ze,wt){return"above"===this.position||"below"===this.position?"top"===wt?wt="bottom":"bottom"===wt&&(wt="top"):"end"===Ze?Ze="start":"start"===Ze&&(Ze="end"),{x:Ze,y:wt}}_updateCurrentPositionClass(Ze){const{overlayY:wt,originX:ze,originY:Be}=Ze;let Ut;if(Ut="center"===wt?this._dir&&"rtl"===this._dir.value?"end"===ze?"left":"right":"start"===ze?"left":"right":"bottom"===wt&&"top"===Be?"above":"below",Ut!==this._currentPosition){const Ke=this._overlayRef;if(Ke){const lt=`${this._cssClassPrefix}-${le}-`;Ke.removePanelClass(lt+this._currentPosition),Ke.addPanelClass(lt+Ut)}this._currentPosition=Ut}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",Ze=>{let wt;this._setupPointerExitEventsIfNeeded(),void 0!==Ze.x&&void 0!==Ze.y&&(wt=Ze),this.show(void 0,wt)}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",Ze=>{const wt=Ze.targetTouches?.[0],ze=wt?{x:wt.clientX,y:wt.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 Ze=[];if(this._platformSupportsMouseEvents())Ze.push(["mouseleave",wt=>{const ze=wt.relatedTarget;(!ze||!this._overlayRef?.overlayElement.contains(ze))&&this.hide()}],["wheel",wt=>this._wheelListener(wt)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const wt=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions?.touchendHideDelay)};Ze.push(["touchend",wt],["touchcancel",wt])}this._addListeners(Ze),this._passiveListeners.push(...Ze)}_addListeners(Ze){Ze.forEach(([wt,ze])=>{this._elementRef.nativeElement.addEventListener(wt,ze,ke)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(Ze){if(this._isTooltipVisible()){const wt=this._document.elementFromPoint(Ze.clientX,Ze.clientY),ze=this._elementRef.nativeElement;wt!==ze&&!ze.contains(wt)&&this.hide()}}_disableNativeGesturesIfNecessary(){const Ze=this.touchGestures;if("off"!==Ze){const wt=this._elementRef.nativeElement,ze=wt.style;("on"===Ze||"INPUT"!==wt.nodeName&&"TEXTAREA"!==wt.nodeName)&&(ze.userSelect=ze.msUserSelect=ze.webkitUserSelect=ze.MozUserSelect="none"),("on"===Ze||!wt.draggable)&&(ze.webkitUserDrag="none"),ze.touchAction="none",ze.webkitTapHighlightColor="transparent"}}_syncAriaDescription(Ze){this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,Ze,"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(wt){return new(wt||$n)};static \u0275dir=y.FsC({type:$n,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(wt,ze){2&wt&&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})(),Yt=(()=>{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 Ze=(0,y.WQX)(y.bc$,{optional:!0});this._animationsDisabled="NoopAnimations"===Ze}show(Ze){null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},Ze)}hide(Ze){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},Ze)}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:Ze}){(!Ze||!this._triggerElement.contains(Ze))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){const Ze=this._elementRef.nativeElement.getBoundingClientRect();return Ze.height>24&&Ze.width>=200}_handleAnimationEnd({animationName:Ze}){(Ze===this._showAnimation||Ze===this._hideAnimation)&&this._finalizeAnimation(Ze===this._showAnimation)}_cancelPendingAnimations(){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(Ze){Ze?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(Ze){const wt=this._tooltip.nativeElement,ze=this._showAnimation,Be=this._hideAnimation;if(wt.classList.remove(Ze?Be:ze),wt.classList.add(Ze?ze:Be),this._isVisible!==Ze&&(this._isVisible=Ze,this._changeDetectorRef.markForCheck()),Ze&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const Ut=getComputedStyle(wt);("0s"===Ut.getPropertyValue("animation-duration")||"none"===Ut.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}Ze&&this._onShow(),this._animationsDisabled&&(wt.classList.add("_mat-animation-noopable"),this._finalizeAnimation(Ze))}static \u0275fac=function(wt){return new(wt||$n)};static \u0275cmp=y.VBU({type:$n,selectors:[["mat-tooltip-component"]],viewQuery:function(wt,ze){if(1&wt&&y.GBs(be,7),2&wt){let Be;y.mGM(Be=y.lsd())&&(ze._tooltip=Be.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(wt,ze){1&wt&&y.bIt("mouseleave",function(Ut){return ze._handleMouseLeave(Ut)})},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(wt,ze){if(1&wt){const Be=y.RV6();y.j41(0,"div",1,0),y.bIt("animationend",function(Ke){return y.eBV(Be),y.Njj(ze._handleAnimationEnd(Ke))}),y.j41(2,"div",2),y.EFF(3),y.k0s()()}2&wt&&(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})(),wn=(()=>{class $n{static \u0275fac=function(wt){return new(wt||$n)};static \u0275mod=y.$C({type:$n});static \u0275inj=y.G2t({providers:[Ne],imports:[A.Pd,T.z_,te.yE,te.yE,k.Gj]})}return $n})()},6388:(o,s,r)=>{"use strict";r.d(s,{B7:()=>_t,B8:()=>lt,hE:()=>Xt,up:()=>Zt});var i=r(4460),a=r(3107);class c extends i.VF{supportsDOMEvents=!0}class y extends c{static makeCurrent(){(0,i.ZD)(new y)}onAndCancel(Rt,dt,Bt){return Rt.addEventListener(dt,Bt),()=>{Rt.removeEventListener(dt,Bt)}}dispatchEvent(Rt,dt){Rt.dispatchEvent(dt)}remove(Rt){Rt.remove()}createElement(Rt,dt){return(dt=dt||this.getDefaultDocument()).createElement(Rt)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(Rt){return Rt.nodeType===Node.ELEMENT_NODE}isShadowRoot(Rt){return Rt instanceof DocumentFragment}getGlobalEventTarget(Rt,dt){return"window"===dt?window:"document"===dt?Rt:"body"===dt?Rt.body:null}getBaseHref(Rt){const dt=function C(){return w=w||document.querySelector("base"),w?w.getAttribute("href"):null}();return null==dt?null:function A(Fe){return new URL(Fe,document.baseURI).pathname}(dt)}resetBaseElement(){w=null}getUserAgent(){return window.navigator.userAgent}getCookie(Rt){return(0,i._b)(document.cookie,Rt)}}let w=null,T=(()=>{class Fe{build(){return new XMLHttpRequest}static \u0275fac=function(Bt){return new(Bt||Fe)};static \u0275prov=a.jDH({token:Fe,factory:Fe.\u0275fac})}return Fe})();const k=new a.nKC("");let R=(()=>{class Fe{_zone;_plugins;_eventNameToPlugin=new Map;constructor(dt,Bt){this._zone=Bt,dt.forEach(_n=>{_n.manager=this}),this._plugins=dt.slice().reverse()}addEventListener(dt,Bt,_n){return this._findPluginFor(Bt).addEventListener(dt,Bt,_n)}getZone(){return this._zone}_findPluginFor(dt){let Bt=this._eventNameToPlugin.get(dt);if(Bt)return Bt;if(Bt=this._plugins.find(or=>or.supports(dt)),!Bt)throw new a.wOt(5101,!1);return this._eventNameToPlugin.set(dt,Bt),Bt}static \u0275fac=function(Bt){return new(Bt||Fe)(a.KVO(k),a.KVO(a.SKi))};static \u0275prov=a.jDH({token:Fe,factory:Fe.\u0275fac})}return Fe})();class G{_doc;constructor(Rt){this._doc=Rt}manager}const Z="ng-app-id";function te(Fe){for(const Rt of Fe)Rt.remove()}function be(Fe,Rt){const dt=Rt.createElement("style");return dt.textContent=Fe,dt}function pe(Fe,Rt){const dt=Rt.createElement("link");return dt.setAttribute("rel","stylesheet"),dt.setAttribute("href",Fe),dt}let Te=(()=>{class Fe{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(dt,Bt,_n,or={}){this.doc=dt,this.appId=Bt,this.nonce=_n,this.isServer=(0,i.Vy)(or),function _e(Fe,Rt,dt){const Bt=Fe.head?.querySelectorAll(`style[${Z}="${Rt}"]`);if(Bt)for(const _n of Bt)_n.textContent&&(_n.removeAttribute(Z),dt.set(_n.textContent,{usage:0,elements:[_n]}))}(dt,Bt,this.inline),this.hosts.add(dt.head)}addStyles(dt,Bt){for(const _n of dt)this.addUsage(_n,this.inline,be);Bt?.forEach(_n=>this.addUsage(_n,this.external,pe))}removeStyles(dt,Bt){for(const _n of dt)this.removeUsage(_n,this.inline);Bt?.forEach(_n=>this.removeUsage(_n,this.external))}addUsage(dt,Bt,_n){const or=Bt.get(dt);or?or.usage++:Bt.set(dt,{usage:1,elements:[...this.hosts].map(Mr=>this.addElement(Mr,_n(dt,this.doc)))})}removeUsage(dt,Bt){const _n=Bt.get(dt);_n&&(_n.usage--,_n.usage<=0&&(te(_n.elements),Bt.delete(dt)))}ngOnDestroy(){for(const[,{elements:dt}]of[...this.inline,...this.external])te(dt);this.hosts.clear()}addHost(dt){this.hosts.add(dt);for(const[Bt,{elements:_n}]of this.inline)_n.push(this.addElement(dt,be(Bt,this.doc)));for(const[Bt,{elements:_n}]of this.external)_n.push(this.addElement(dt,pe(Bt,this.doc)))}removeHost(dt){this.hosts.delete(dt)}addElement(dt,Bt){return this.nonce&&Bt.setAttribute("nonce",this.nonce),this.isServer&&Bt.setAttribute(Z,this.appId),dt.appendChild(Bt)}static \u0275fac=function(Bt){return new(Bt||Fe)(a.KVO(i.qQ),a.KVO(a.sZ2),a.KVO(a.BIS,8),a.KVO(a.Agw))};static \u0275prov=a.jDH({token:Fe,factory:Fe.\u0275fac})}return Fe})();const Ce={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"},Ne=/%COMP%/g,ke=new a.nKC("",{providedIn:"root",factory:()=>!0});function ft(Fe,Rt){return Rt.map(dt=>dt.replace(Ne,Fe))}let _t=(()=>{class Fe{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(dt,Bt,_n,or,Mr,ii,ci,Ai=null){this.eventManager=dt,this.sharedStylesHost=Bt,this.appId=_n,this.removeStylesOnCompDestroy=or,this.doc=Mr,this.platformId=ii,this.ngZone=ci,this.nonce=Ai,this.platformIsServer=(0,i.Vy)(ii),this.defaultRenderer=new ot(dt,Mr,ci,this.platformIsServer)}createRenderer(dt,Bt){if(!dt||!Bt)return this.defaultRenderer;this.platformIsServer&&Bt.encapsulation===a.gXe.ShadowDom&&(Bt={...Bt,encapsulation:a.gXe.Emulated});const _n=this.getOrCreateRenderer(dt,Bt);return _n instanceof Ze?_n.applyToHost(dt):_n instanceof En&&_n.applyStyles(),_n}getOrCreateRenderer(dt,Bt){const _n=this.rendererByCompId;let or=_n.get(Bt.id);if(!or){const Mr=this.doc,ii=this.ngZone,ci=this.eventManager,Ai=this.sharedStylesHost,sn=this.removeStylesOnCompDestroy,Tt=this.platformIsServer;switch(Bt.encapsulation){case a.gXe.Emulated:or=new Ze(ci,Ai,Bt,this.appId,sn,Mr,ii,Tt);break;case a.gXe.ShadowDom:return new $n(ci,Ai,dt,Bt,Mr,ii,this.nonce,Tt);default:or=new En(ci,Ai,Bt,sn,Mr,ii,Tt)}_n.set(Bt.id,or)}return or}ngOnDestroy(){this.rendererByCompId.clear()}static \u0275fac=function(Bt){return new(Bt||Fe)(a.KVO(R),a.KVO(Te),a.KVO(a.sZ2),a.KVO(ke),a.KVO(i.qQ),a.KVO(a.Agw),a.KVO(a.SKi),a.KVO(a.BIS))};static \u0275prov=a.jDH({token:Fe,factory:Fe.\u0275fac})}return Fe})();class ot{eventManager;doc;ngZone;platformIsServer;data=Object.create(null);throwOnSyntheticProps=!0;constructor(Rt,dt,Bt,_n){this.eventManager=Rt,this.doc=dt,this.ngZone=Bt,this.platformIsServer=_n}destroy(){}destroyNode=null;createElement(Rt,dt){return dt?this.doc.createElementNS(Ce[dt]||dt,Rt):this.doc.createElement(Rt)}createComment(Rt){return this.doc.createComment(Rt)}createText(Rt){return this.doc.createTextNode(Rt)}appendChild(Rt,dt){(wn(Rt)?Rt.content:Rt).appendChild(dt)}insertBefore(Rt,dt,Bt){Rt&&(wn(Rt)?Rt.content:Rt).insertBefore(dt,Bt)}removeChild(Rt,dt){dt.remove()}selectRootElement(Rt,dt){let Bt="string"==typeof Rt?this.doc.querySelector(Rt):Rt;if(!Bt)throw new a.wOt(-5104,!1);return dt||(Bt.textContent=""),Bt}parentNode(Rt){return Rt.parentNode}nextSibling(Rt){return Rt.nextSibling}setAttribute(Rt,dt,Bt,_n){if(_n){dt=_n+":"+dt;const or=Ce[_n];or?Rt.setAttributeNS(or,dt,Bt):Rt.setAttribute(dt,Bt)}else Rt.setAttribute(dt,Bt)}removeAttribute(Rt,dt,Bt){if(Bt){const _n=Ce[Bt];_n?Rt.removeAttributeNS(_n,dt):Rt.removeAttribute(`${Bt}:${dt}`)}else Rt.removeAttribute(dt)}addClass(Rt,dt){Rt.classList.add(dt)}removeClass(Rt,dt){Rt.classList.remove(dt)}setStyle(Rt,dt,Bt,_n){_n&(a.czy.DashCase|a.czy.Important)?Rt.style.setProperty(dt,Bt,_n&a.czy.Important?"important":""):Rt.style[dt]=Bt}removeStyle(Rt,dt,Bt){Bt&a.czy.DashCase?Rt.style.removeProperty(dt):Rt.style[dt]=""}setProperty(Rt,dt,Bt){null!=Rt&&(Rt[dt]=Bt)}setValue(Rt,dt){Rt.nodeValue=dt}listen(Rt,dt,Bt){if("string"==typeof Rt&&!(Rt=(0,i.QT)().getGlobalEventTarget(this.doc,Rt)))throw new Error(`Unsupported event target ${Rt} for event ${dt}`);return this.eventManager.addEventListener(Rt,dt,this.decoratePreventDefault(Bt))}decoratePreventDefault(Rt){return dt=>{if("__ngUnwrap__"===dt)return Rt;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>Rt(dt)):Rt(dt))&&dt.preventDefault()}}}function wn(Fe){return"TEMPLATE"===Fe.tagName&&void 0!==Fe.content}class $n extends ot{sharedStylesHost;hostEl;shadowRoot;constructor(Rt,dt,Bt,_n,or,Mr,ii,ci){super(Rt,or,Mr,ci),this.sharedStylesHost=dt,this.hostEl=Bt,this.shadowRoot=Bt.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const Ai=ft(_n.id,_n.styles);for(const Tt of Ai){const Je=document.createElement("style");ii&&Je.setAttribute("nonce",ii),Je.textContent=Tt,this.shadowRoot.appendChild(Je)}const sn=_n.getExternalStyles?.();if(sn)for(const Tt of sn){const Je=pe(Tt,or);ii&&Je.setAttribute("nonce",ii),this.shadowRoot.appendChild(Je)}}nodeOrShadowRoot(Rt){return Rt===this.hostEl?this.shadowRoot:Rt}appendChild(Rt,dt){return super.appendChild(this.nodeOrShadowRoot(Rt),dt)}insertBefore(Rt,dt,Bt){return super.insertBefore(this.nodeOrShadowRoot(Rt),dt,Bt)}removeChild(Rt,dt){return super.removeChild(null,dt)}parentNode(Rt){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(Rt)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class En extends ot{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(Rt,dt,Bt,_n,or,Mr,ii,ci){super(Rt,or,Mr,ii),this.sharedStylesHost=dt,this.removeStylesOnCompDestroy=_n,this.styles=ci?ft(ci,Bt.styles):Bt.styles,this.styleUrls=Bt.getExternalStyles?.(ci)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}}class Ze extends En{contentAttr;hostAttr;constructor(Rt,dt,Bt,_n,or,Mr,ii,ci){const Ai=_n+"-"+Bt.id;super(Rt,dt,Bt,or,Mr,ii,ci,Ai),this.contentAttr=function Ue(Fe){return"_ngcontent-%COMP%".replace(Ne,Fe)}(Ai),this.hostAttr=function st(Fe){return"_nghost-%COMP%".replace(Ne,Fe)}(Ai)}applyToHost(Rt){this.applyStyles(),this.setAttribute(Rt,this.hostAttr,"")}createElement(Rt,dt){const Bt=super.createElement(Rt,dt);return super.setAttribute(Bt,this.contentAttr,""),Bt}}let wt=(()=>{class Fe extends G{constructor(dt){super(dt)}supports(dt){return!0}addEventListener(dt,Bt,_n){return dt.addEventListener(Bt,_n,!1),()=>this.removeEventListener(dt,Bt,_n)}removeEventListener(dt,Bt,_n){return dt.removeEventListener(Bt,_n)}static \u0275fac=function(Bt){return new(Bt||Fe)(a.KVO(i.qQ))};static \u0275prov=a.jDH({token:Fe,factory:Fe.\u0275fac})}return Fe})();const ze=["alt","control","meta","shift"],Be={"\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"},Ut={alt:Fe=>Fe.altKey,control:Fe=>Fe.ctrlKey,meta:Fe=>Fe.metaKey,shift:Fe=>Fe.shiftKey};let Ke=(()=>{class Fe extends G{constructor(dt){super(dt)}supports(dt){return null!=Fe.parseEventName(dt)}addEventListener(dt,Bt,_n){const or=Fe.parseEventName(Bt),Mr=Fe.eventCallback(or.fullKey,_n,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,i.QT)().onAndCancel(dt,or.domEventName,Mr))}static parseEventName(dt){const Bt=dt.toLowerCase().split("."),_n=Bt.shift();if(0===Bt.length||"keydown"!==_n&&"keyup"!==_n)return null;const or=Fe._normalizeKey(Bt.pop());let Mr="",ii=Bt.indexOf("code");if(ii>-1&&(Bt.splice(ii,1),Mr="code."),ze.forEach(Ai=>{const sn=Bt.indexOf(Ai);sn>-1&&(Bt.splice(sn,1),Mr+=Ai+".")}),Mr+=or,0!=Bt.length||0===or.length)return null;const ci={};return ci.domEventName=_n,ci.fullKey=Mr,ci}static matchEventFullKeyCode(dt,Bt){let _n=Be[dt.key]||dt.key,or="";return Bt.indexOf("code.")>-1&&(_n=dt.code,or="code."),!(null==_n||!_n)&&(_n=_n.toLowerCase()," "===_n?_n="space":"."===_n&&(_n="dot"),ze.forEach(Mr=>{Mr!==_n&&(0,Ut[Mr])(dt)&&(or+=Mr+".")}),or+=_n,or===Bt)}static eventCallback(dt,Bt,_n){return or=>{Fe.matchEventFullKeyCode(or,dt)&&_n.runGuarded(()=>Bt(or))}}static _normalizeKey(dt){return"esc"===dt?"escape":dt}static \u0275fac=function(Bt){return new(Bt||Fe)(a.KVO(i.qQ))};static \u0275prov=a.jDH({token:Fe,factory:Fe.\u0275fac})}return Fe})();function lt(Fe,Rt){return(0,a.TL3)({rootComponent:Fe,...Ge(Rt)})}function Ge(Fe){return{appProviders:[...en,...Fe?.providers??[]],platformProviders:tn}}const tn=[{provide:a.Agw,useValue:i.AJ},{provide:a.PLl,useValue:function se(){y.makeCurrent()},multi:!0},{provide:i.qQ,useFactory:function Nt(){return(0,a.TL$)(document),document},deps:[]}],en=[{provide:a.H8p,useValue:"root"},{provide:a.zcH,useFactory:function qe(){return new a.zcH},deps:[]},{provide:k,useClass:wt,multi:!0,deps:[i.qQ,a.SKi,a.Agw]},{provide:k,useClass:Ke,multi:!0,deps:[i.qQ]},_t,Te,R,{provide:a._9s,useExisting:_t},{provide:i.N0,useClass:T,deps:[]},[]];let Xt=(()=>{class Fe{_doc;constructor(dt){this._doc=dt}getTitle(){return this._doc.title}setTitle(dt){this._doc.title=dt||""}static \u0275fac=function(Bt){return new(Bt||Fe)(a.KVO(i.qQ))};static \u0275prov=a.jDH({token:Fe,factory:Fe.\u0275fac,providedIn:"root"})}return Fe})(),Zt=(()=>{class Fe{static \u0275fac=function(Bt){return new(Bt||Fe)};static \u0275prov=a.jDH({token:Fe,factory:function(Bt){let _n=null;return _n=Bt?new(Bt||Fe):a.KVO(mn),_n},providedIn:"root"})}return Fe})(),mn=(()=>{class Fe extends Zt{_doc;constructor(dt){super(),this._doc=dt}sanitize(dt,Bt){if(null==Bt)return null;switch(dt){case a.WPN.NONE:return Bt;case a.WPN.HTML:return(0,a.ZF7)(Bt,"HTML")?(0,a.rcV)(Bt):(0,a.h9k)(this._doc,String(Bt)).toString();case a.WPN.STYLE:return(0,a.ZF7)(Bt,"Style")?(0,a.rcV)(Bt):Bt;case a.WPN.SCRIPT:if((0,a.ZF7)(Bt,"Script"))return(0,a.rcV)(Bt);throw new a.wOt(5200,!1);case a.WPN.URL:return(0,a.ZF7)(Bt,"URL")?(0,a.rcV)(Bt):(0,a.$MX)(String(Bt));case a.WPN.RESOURCE_URL:if((0,a.ZF7)(Bt,"ResourceURL"))return(0,a.rcV)(Bt);throw new a.wOt(5201,!1);default:throw new a.wOt(5202,!1)}}bypassSecurityTrustHtml(dt){return(0,a.Kcf)(dt)}bypassSecurityTrustStyle(dt){return(0,a.cWb)(dt)}bypassSecurityTrustScript(dt){return(0,a.UyX)(dt)}bypassSecurityTrustUrl(dt){return(0,a.osQ)(dt)}bypassSecurityTrustResourceUrl(dt){return(0,a.e5t)(dt)}static \u0275fac=function(Bt){return new(Bt||Fe)(a.KVO(i.qQ))};static \u0275prov=a.jDH({token:Fe,factory:Fe.\u0275fac,providedIn:"root"})}return Fe})()},9893:(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(3107),a=r(1531),c=r(1787),y=r(3016),w=r(1217),C=r(6627),A=r(8747),S=r(3569),T=r(6381),k=r(6742),R=r(8915),G=r(6564),Z=r(1642),te=r(8447),be=r(5710),_e=r(4460),pe=r(7947),Te=r(2867),Ce=r(7610),Ne=r(593),Se=r(1483),xe=r(5823),ae=r(5351),le=r(2483);function ke(N){return(0,ae.N)((K,P)=>{let X=!1;K.subscribe((0,le._)(P,he=>{X=!0,P.next(he)},()=>{X||P.next(N),P.complete()}))})}function Ue(N=st){return(0,ae.N)((K,P)=>{let X=!1;K.subscribe((0,le._)(P,he=>{X=!0,P.next(he)},()=>X?P.complete():P.error(N())))})}function st(){return new A.G}var ft=r(9220);function _t(N,K){const P=arguments.length>=2;return X=>X.pipe(N?(0,Se.p)((he,We)=>N(he,We,X)):ft.D,(0,Ce.s)(1),P?ke(K):Ue(()=>new A.G))}var ot=r(1459),Yt=r(2040),un=r(7178),wn=r(36);function En(N){return N<=0?()=>G.w:(0,ae.N)((K,P)=>{let X=[];K.subscribe((0,le._)(P,he=>{X.push(he),N{for(const he of X)P.next(he);P.complete()},void 0,()=>{X=null}))})}var wt=r(6590),ze=r(4447),Be=r(3589),Ut=r(5424),Ke=r(1890),lt=r(6388);const Xe="primary",Ge=Symbol("RouteTitle");class pt{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(N){return new pt(N)}function qe(N,K,P){const X=P.path.split("/");if(X.length>N.length||"full"===P.pathMatch&&(K.hasChildren()||X.lengthX[We]===he)}return N===K}function Pt(N){return N.length>0?N[N.length-1]:null}function en(N){return(0,a.A)(N)?N:(0,i.jNT)(N)?(0,c.H)(Promise.resolve(N)):(0,y.of)(N)}const an={exact:function Mt(N,K,P){if(!Re(N.segments,K.segments)||!Me(N.segments,K.segments,P)||N.numberOfChildren!==K.numberOfChildren)return!1;for(const X in K.children)if(!N.children[X]||!Mt(N.children[X],K.children[X],P))return!1;return!0},subset:Ot},Yn={exact:function Xt(N,K){return tn(N,K)},subset:function Gt(N,K){return Object.keys(K).length<=Object.keys(N).length&&Object.keys(K).every(P=>Wn(N[P],K[P]))},ignored:()=>!0};function Sn(N,K,P){return an[P.paths](N.root,K.root,P.matrixParams)&&Yn[P.queryParams](N.queryParams,K.queryParams)&&!("exact"===P.fragment&&N.fragment!==K.fragment)}function Ot(N,K,P){return Ie(N,K,K.segments,P)}function Ie(N,K,P,X){if(N.segments.length>P.length){const he=N.segments.slice(0,P.length);return!(!Re(he,P)||K.hasChildren()||!Me(he,P,X))}if(N.segments.length===P.length){if(!Re(N.segments,P)||!Me(N.segments,P,X))return!1;for(const he in K.children)if(!N.children[he]||!Ot(N.children[he],K.children[he],X))return!1;return!0}{const he=P.slice(0,N.segments.length),We=P.slice(N.segments.length);return!!(Re(N.segments,he)&&Me(N.segments,he,X)&&N.children[Xe])&&Ie(N.children[Xe],K,We,X)}}function Me(N,K,P){return K.every((X,he)=>Yn[P](N[he].parameters,X.parameters))}class nt{root;queryParams;fragment;_queryParamMap;constructor(K=new W([],{}),P={},X=null){this.root=K,this.queryParams=P,this.fragment=X}get queryParamMap(){return this._queryParamMap??=se(this.queryParams),this._queryParamMap}toString(){return Ln.serialize(this)}}class W{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 Zt(this)}}class L{path;parameters;_parameterMap;constructor(K,P){this.path=K,this.parameters=P}get parameterMap(){return this._parameterMap??=se(this.parameters),this._parameterMap}toString(){return vt(this)}}function Re(N,K){return N.length===K.length&&N.every((P,X)=>P.path===K[X].path)}let mt=(()=>{class N{static \u0275fac=function(X){return new(X||N)};static \u0275prov=i.jDH({token:N,factory:()=>new At,providedIn:"root"})}return N})();class At{parse(K){const P=new ii(K);return new nt(P.parseRootSegment(),P.parseQueryParams(),P.parseFragment())}serialize(K){const P=`/${mn(K.root,!0)}`,X=function Ee(N){const K=Object.entries(N).map(([P,X])=>Array.isArray(X)?X.map(he=>`${Bn(P)}=${Bn(he)}`).join("&"):`${Bn(P)}=${Bn(X)}`).filter(P=>P);return K.length?`?${K.join("&")}`:""}(K.queryParams);return`${P}${X}${"string"==typeof K.fragment?`#${function Hn(N){return encodeURI(N)}(K.fragment)}`:""}`}}const Ln=new At;function Zt(N){return N.segments.map(K=>vt(K)).join("/")}function mn(N,K){if(!N.hasChildren())return Zt(N);if(K){const P=N.children[Xe]?mn(N.children[Xe],!1):"",X=[];return Object.entries(N.children).forEach(([he,We])=>{he!==Xe&&X.push(`${he}:${mn(We,!1)}`)}),X.length>0?`${P}(${X.join("//")})`:P}{const P=function bt(N,K){let P=[];return Object.entries(N.children).forEach(([X,he])=>{X===Xe&&(P=P.concat(K(he,X)))}),Object.entries(N.children).forEach(([X,he])=>{X!==Xe&&(P=P.concat(K(he,X)))}),P}(N,(X,he)=>he===Xe?[mn(N.children[Xe],!1)]:[`${he}:${mn(X,!1)}`]);return 1===Object.keys(N.children).length&&null!=N.children[Xe]?`${Zt(N)}/${P[0]}`:`${Zt(N)}/(${P.join("//")})`}}function In(N){return encodeURIComponent(N).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Bn(N){return In(N).replace(/%3B/gi,";")}function xr(N){return In(N).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ti(N){return decodeURIComponent(N)}function Xr(N){return ti(N.replace(/\+/g,"%20"))}function vt(N){return`${xr(N.path)}${function $t(N){return Object.entries(N).map(([K,P])=>`;${xr(K)}=${xr(P)}`).join("")}(N.parameters)}`}const at=/^[^\/()?;#]+/;function Fe(N){const K=N.match(at);return K?K[0]:""}const Rt=/^[^\/()?;=#]+/,Bt=/^[^=?&#]+/,or=/^[^&#]+/;class ii{url;remaining;constructor(K){this.url=K,this.remaining=K}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new W([],{}):new W([],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[Xe]=new W(K,P)),X}parseSegment(){const K=Fe(this.remaining);if(""===K&&this.peekStartsWith(";"))throw new i.wOt(4009,!1);return this.capture(K),new L(ti(K),this.parseMatrixParams())}parseMatrixParams(){const K={};for(;this.consumeOptional(";");)this.parseParam(K);return K}parseParam(K){const P=function dt(N){const K=N.match(Rt);return K?K[0]:""}(this.remaining);if(!P)return;this.capture(P);let X="";if(this.consumeOptional("=")){const he=Fe(this.remaining);he&&(X=he,this.capture(X))}K[ti(P)]=ti(X)}parseQueryParam(K){const P=function _n(N){const K=N.match(Bt);return K?K[0]:""}(this.remaining);if(!P)return;this.capture(P);let X="";if(this.consumeOptional("=")){const Dt=function Mr(N){const K=N.match(or);return K?K[0]:""}(this.remaining);Dt&&(X=Dt,this.capture(X))}const he=Xr(P),We=Xr(X);if(K.hasOwnProperty(he)){let Dt=K[he];Array.isArray(Dt)||(Dt=[Dt],K[he]=Dt),Dt.push(We)}else K[he]=We}parseParens(K){const P={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const X=Fe(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=Xe);const Dt=this.parseChildren();P[We]=1===Object.keys(Dt).length?Dt[Xe]:new W([],Dt),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(N){return N.segments.length>0?new W([],{[Xe]:N}):N}function Ai(N){const K={};for(const[X,he]of Object.entries(N.children)){const We=Ai(he);if(X===Xe&&0===We.segments.length&&We.hasChildren())for(const[Dt,yn]of Object.entries(We.children))K[Dt]=yn;else(We.segments.length>0||We.hasChildren())&&(K[X]=We)}return function sn(N){if(1===N.numberOfChildren&&N.children[Xe]){const K=N.children[Xe];return new W(N.segments.concat(K.segments),K.children)}return N}(new W(N.segments,K))}function Tt(N){return N instanceof nt}function St(N){let K;const he=ci(function P(We){const Dt={};for(const on of We.children){const fr=P(on);Dt[on.outlet]=fr}const yn=new W(We.url,Dt);return We===N&&(K=yn),yn}(N.root));return K??he}function zt(N,K,P,X){let he=N;for(;he.parent;)he=he.parent;if(0===K.length)return uo(he,he,he,P,X);const We=function oi(N){if("string"==typeof N[0]&&1===N.length&&"/"===N[0])return new Uo(!0,0,N);let K=0,P=!1;const X=N.reduce((he,We,Dt)=>{if("object"==typeof We&&null!=We){if(We.outlets){const yn={};return Object.entries(We.outlets).forEach(([on,fr])=>{yn[on]="string"==typeof fr?fr.split("/"):fr}),[...he,{outlets:yn}]}if(We.segmentPath)return[...he,We.segmentPath]}return"string"!=typeof We?[...he,We]:0===Dt?(We.split("/").forEach((yn,on)=>{0==on&&"."===yn||(0==on&&""===yn?P=!0:".."===yn?K++:""!=yn&&he.push(yn))}),he):[...he,We]},[]);return new Uo(P,K,X)}(K);if(We.toRoot())return uo(he,he,new W([],{}),P,X);const Dt=function so(N,K,P){if(N.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=zn(N.commands[0])?0:1;return function bo(N,K,P){let X=N,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,N.numberOfDoubleDots)}(We,he,N),yn=Dt.processChildren?ks(Dt.segmentGroup,Dt.index,We.commands):Co(Dt.segmentGroup,Dt.index,We.commands);return uo(he,Dt.segmentGroup,yn,P,X)}function zn(N){return"object"==typeof N&&null!=N&&!N.outlets&&!N.segmentPath}function hr(N){return"object"==typeof N&&null!=N&&N.outlets}function uo(N,K,P,X,he){let Dt,We={};X&&Object.entries(X).forEach(([on,fr])=>{We[on]=Array.isArray(fr)?fr.map(ri=>`${ri}`):`${fr}`}),Dt=N===K?P:Oi(N,K,P);const yn=ci(Ai(Dt));return new nt(yn,We,he)}function Oi(N,K,P){const X={};return Object.entries(N.children).forEach(([he,We])=>{X[he]=We===K?P:Oi(We,K,P)}),new W(N.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&&zn(X[0]))throw new i.wOt(4003,!1);const he=X.find(hr);if(he&&he!==Pt(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(N,K,P){if(N??=new W([],{}),0===N.segments.length&&N.hasChildren())return ks(N,K,P);const X=function eo(N,K,P){let X=0,he=K;const We={match:!1,pathIndex:0,commandIndex:0};for(;he=P.length)return We;const Dt=N.segments[he],yn=P[X];if(hr(yn))break;const on=`${yn}`,fr=X0&&void 0===on)break;if(on&&fr&&"object"==typeof fr&&void 0===fr.outlets){if(!et(on,fr,Dt))return We;X+=2}else{if(!et(on,{},Dt))return We;X++}he++}return{match:!0,pathIndex:he,commandIndex:X}}(N,K,P),he=P.slice(X.commandIndex);if(X.match&&X.pathIndexWe!==Xe)&&N.children[Xe]&&1===N.numberOfChildren&&0===N.children[Xe].segments.length){const We=ks(N.children[Xe],K,P);return new W(N.segments,We.children)}return Object.entries(X).forEach(([We,Dt])=>{"string"==typeof Dt&&(Dt=[Dt]),null!==Dt&&(he[We]=Co(N.children[We],K,Dt))}),Object.entries(N.children).forEach(([We,Dt])=>{void 0===X[We]&&(he[We]=Dt)}),new W(N.segments,he)}}function oo(N,K,P){const X=N.segments.slice(0,K);let he=0;for(;he{"string"==typeof X&&(X=[X]),null!==X&&(K[P]=oo(new W([],{}),0,X))}),K}function Mo(N){const K={};return Object.entries(N).forEach(([P,X])=>K[P]=`${X}`),K}function et(N,K,P){return N==P.path&&tn(K,P.parameters)}const ct="imperative";var xt=function(N){return N[N.NavigationStart=0]="NavigationStart",N[N.NavigationEnd=1]="NavigationEnd",N[N.NavigationCancel=2]="NavigationCancel",N[N.NavigationError=3]="NavigationError",N[N.RoutesRecognized=4]="RoutesRecognized",N[N.ResolveStart=5]="ResolveStart",N[N.ResolveEnd=6]="ResolveEnd",N[N.GuardsCheckStart=7]="GuardsCheckStart",N[N.GuardsCheckEnd=8]="GuardsCheckEnd",N[N.RouteConfigLoadStart=9]="RouteConfigLoadStart",N[N.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",N[N.ChildActivationStart=11]="ChildActivationStart",N[N.ChildActivationEnd=12]="ChildActivationEnd",N[N.ActivationStart=13]="ActivationStart",N[N.ActivationEnd=14]="ActivationEnd",N[N.Scroll=15]="Scroll",N[N.NavigationSkipped=16]="NavigationSkipped",N}(xt||{});class me{id;url;constructor(K,P){this.id=K,this.url=P}}class tt extends me{type=xt.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 me{urlAfterRedirects;type=xt.NavigationEnd;constructor(K,P,X){super(K,P),this.urlAfterRedirects=X}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var ht=function(N){return N[N.Redirect=0]="Redirect",N[N.SupersededByNewNavigation=1]="SupersededByNewNavigation",N[N.NoDataFromResolver=2]="NoDataFromResolver",N[N.GuardRejected=3]="GuardRejected",N}(ht||{}),Vt=function(N){return N[N.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",N[N.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",N}(Vt||{});class kt extends me{reason;code;type=xt.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 hn extends me{reason;code;type=xt.NavigationSkipped;constructor(K,P,X,he){super(K,P),this.reason=X,this.code=he}}class Cn extends me{error;target;type=xt.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 An extends me{urlAfterRedirects;state;type=xt.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 On extends me{urlAfterRedirects;state;type=xt.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 me{urlAfterRedirects;state;shouldActivate;type=xt.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 me{urlAfterRedirects;state;type=xt.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 me{urlAfterRedirects;state;type=xt.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 Ir{route;type=xt.RouteConfigLoadStart;constructor(K){this.route=K}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class pr{route;type=xt.RouteConfigLoadEnd;constructor(K){this.route=K}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class bi{snapshot;type=xt.ChildActivationStart;constructor(K){this.snapshot=K}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class si{snapshot;type=xt.ChildActivationEnd;constructor(K){this.snapshot=K}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class mr{snapshot;type=xt.ActivationStart;constructor(K){this.snapshot=K}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ai{snapshot;type=xt.ActivationEnd;constructor(K){this.snapshot=K}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class _o{routerEvent;position;anchor;type=xt.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 Gi{url;navigationBehaviorOptions;constructor(K,P){this.url=K,this.navigationBehaviorOptions=P}}function Wi(N){return N.outlet||Xe}function Ni(N){if(!N)return null;if(N.routeConfig?._injector)return N.routeConfig._injector;for(let K=N.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 N{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||N)(i.KVO(i.uvJ))};static \u0275prov=i.jDH({token:N,factory:N.\u0275fac,providedIn:"root"})}return N})();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=cs(K,this._root);return P?P.children.map(X=>X.value):[]}firstChild(K){const P=cs(K,this._root);return P&&P.children.length>0?P.children[0].value:null}siblings(K){const P=rs(K,this._root);return P.length<2?[]:P[P.length-2].children.map(he=>he.value).filter(he=>he!==K)}pathFromRoot(K){return rs(K,this._root).map(P=>P.value)}}function cs(N,K){if(N===K.value)return K;for(const P of K.children){const X=cs(N,P);if(X)return X}return null}function rs(N,K){if(N===K.value)return[K];for(const P of K.children){const X=rs(N,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 zi(N){const K={};return N&&N.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 ko(N){const K=function ga(N){const We=new is([],{},{},"",{},Xe,N,null,{});return new Is("",new to(We,[]))}(N),P=new w.t([new L("",{})]),X=new w.t({}),he=new w.t({}),We=new w.t({}),Dt=new w.t(""),yn=new tr(P,X,We,Dt,he,Xe,N,K.root);return yn.snapshot=K.root,new Es(new to(yn,[]),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,Dt,yn,on){this.urlSubject=K,this.paramsSubject=P,this.queryParamsSubject=X,this.fragmentSubject=he,this.dataSubject=We,this.outlet=Dt,this.component=yn,this._futureSnapshot=on,this.title=this.dataSubject?.pipe((0,pe.T)(fr=>fr[Ge]))??(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(N,K,P="emptyOnly"){let X;const{routeConfig:he}=N;return X=null===K||"always"!==P&&""!==he?.path&&(K.component||K.routeConfig?.loadComponent)?{params:{...N.params},data:{...N.data},resolve:{...N.data,...N._resolvedData??{}}}:{params:{...K.params,...N.params},data:{...K.data,...N.data},resolve:{...N.data,...K.data,...he?.data,...N._resolvedData}},he&&sa(he)&&(X.resolve[Ge]=he.title),X}class is{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[Ge]}constructor(K,P,X,he,We,Dt,yn,on,fr){this.url=K,this.params=P,this.queryParams=X,this.fragment=he,this.data=We,this.outlet=Dt,this.component=yn,this.routeConfig=on,this._resolve=fr}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 Is extends qr{url;constructor(K,P){super(P),this.url=K,Bs(this,P)}toString(){return va(this._root)}}function Bs(N,K){K.value._routerState=N,K.children.forEach(P=>Bs(N,P))}function va(N){const K=N.children.length>0?` { ${N.children.map(va).join(", ")} } `:"";return`${N.value}${K}`}function Yo(N){if(N.snapshot){const K=N.snapshot,P=N._futureSnapshot;N.snapshot=P,tn(K.queryParams,P.queryParams)||N.queryParamsSubject.next(P.queryParams),K.fragment!==P.fragment&&N.fragmentSubject.next(P.fragment),tn(K.params,P.params)||N.paramsSubject.next(P.params),function Nt(N,K){if(N.length!==K.length)return!1;for(let P=0;Ptn(P.parameters,K[X].parameters))}(N.url,K.url);return P&&!(!N.parent!=!K.parent)&&(!N.parent||Ti(N.parent,K.parent))}function sa(N){return"string"==typeof N.title||null===N.title}const yl=new i.nKC("");let Qo=(()=>{class N{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=Xe;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,Dt=P.snapshot.component,yn=this.parentContexts.getOrCreateContext(this.name).children,on=new aa(P,yn,he.injector,this.routerOutletData);this.activated=he.createComponent(Dt,{index:he.length,injector:on,environmentInjector:X}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(X){return new(X||N)};static \u0275dir=i.FsC({type:N,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[i.OA$]})}return N})();class 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 os=(()=>{class N{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,Dt,yn],on)=>(yn={...We,...Dt,...yn},0===on?(0,y.of)(yn):Promise.resolve(yn)))).subscribe(We=>{if(!P.isActivated||!P.activatedComponentRef||P.activatedRoute!==X||null===X.component)return void this.unsubscribeFromRouteData(P);const Dt=(0,i.HJs)(X.component);if(Dt)for(const{templateName:yn}of Dt.inputs)P.activatedComponentRef.setInput(yn,We[yn]);else this.unsubscribeFromRouteData(P)});this.outletDataSubscriptions.set(P,he)}static \u0275fac=function(X){return new(X||N)};static \u0275prov=i.jDH({token:N,factory:N.\u0275fac})}return N})();function Zo(N,K,P){if(P&&N.shouldReuseRoute(K.value,P.value.snapshot)){const X=P.value;X._futureSnapshot=K.value;const he=function vi(N,K,P){return K.children.map(X=>{for(const he of P.children)if(N.shouldReuseRoute(X.value,he.value.snapshot))return Zo(N,X,he);return Zo(N,X)})}(N,K,P);return new to(X,he)}{if(N.shouldAttach(K.value)){const We=N.retrieve(K.value);if(null!==We){const Dt=We.route;return Dt.value._futureSnapshot=K.value,Dt.children=K.children.map(yn=>Zo(N,yn)),Dt}}const X=function Fa(N){return new tr(new w.t(N.url),new w.t(N.params),new w.t(N.queryParams),new w.t(N.fragment),new w.t(N.data),N.outlet,N.component,N)}(K.value),he=K.children.map(We=>Zo(N,We));return new to(X,he)}}class Io{redirectTo;navigationBehaviorOptions;constructor(K,P){this.redirectTo=K,this.navigationBehaviorOptions=P}}const Qs="ngNavigationCancelingError";function bl(N,K){const{redirectTo:P,navigationBehaviorOptions:X}=Tt(K)?{redirectTo:K,navigationBehaviorOptions:void 0}:K,he=Xa(!1,ht.Redirect);return he.url=P,he.navigationBehaviorOptions=X,he}function Xa(N,K){const P=new Error(`NavigationCancelingError: ${N||""}`);return P[Qs]=!0,P.cancellationCode=K,P}function Y(N){return!!N&&N[Qs]}class Qe{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=zi(P);K.children.forEach(We=>{const Dt=We.value.outlet;this.deactivateRoutes(We,he[Dt],X),delete he[Dt]}),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 Dt=X.getContext(he.outlet);Dt&&this.deactivateChildRoutes(K,P,Dt.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=zi(K);for(const Dt of Object.values(We))this.deactivateRouteAndItsChildren(Dt,he);if(X&&X.outlet){const Dt=X.outlet.detach(),yn=X.children.onOutletDeactivated();this.routeReuseStrategy.store(K.value.snapshot,{componentRef:Dt,route:K,contexts:yn})}}deactivateRouteAndOutlet(K,P){const X=P.getContext(K.value.outlet),he=X&&K.value.component?X.children:P,We=zi(K);for(const Dt of Object.values(We))this.deactivateRouteAndItsChildren(Dt,he);X&&(X.outlet&&(X.outlet.deactivate(),X.children.onOutletDeactivated()),X.attachRef=null,X.route=null)}activateChildRoutes(K,P,X){const he=zi(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 Dt=X.getOrCreateContext(he.outlet);this.activateChildRoutes(K,P,Dt.children)}else this.activateChildRoutes(K,P,X);else if(he.component){const Dt=X.getOrCreateContext(he.outlet);if(this.routeReuseStrategy.shouldAttach(he.snapshot)){const yn=this.routeReuseStrategy.retrieve(he.snapshot);this.routeReuseStrategy.store(he.snapshot,null),Dt.children.onOutletReAttached(yn.contexts),Dt.attachRef=yn.componentRef,Dt.route=yn.route.value,Dt.outlet&&Dt.outlet.attach(yn.componentRef,yn.route.value),Yo(yn.route.value),this.activateChildRoutes(K,null,Dt.children)}else Dt.attachRef=null,Dt.route=he,Dt.outlet&&Dt.outlet.activateWith(he,Dt.injector),this.activateChildRoutes(K,null,Dt.children)}else this.activateChildRoutes(K,null,X)}}class Et{path;route;constructor(K){this.path=K,this.route=this.path[this.path.length-1]}}class Fn{component;route;constructor(K,P){this.component=K,this.route=P}}function fn(N,K,P){const X=N._root;return Gr(X,K?K._root:null,P,[X.value])}function dr(N,K){const P=Symbol(),X=K.get(N,P);return X===P?"function"!=typeof N||(0,i.LfX)(N)?K.get(N):N:X}function Gr(N,K,P,X,he={canDeactivateChecks:[],canActivateChecks:[]}){const We=zi(K);return N.children.forEach(Dt=>{(function Ki(N,K,P,X,he={canDeactivateChecks:[],canActivateChecks:[]}){const We=N.value,Dt=K?K.value:null,yn=P?P.getContext(N.value.outlet):null;if(Dt&&We.routeConfig===Dt.routeConfig){const on=function Or(N,K,P){if("function"==typeof P)return P(N,K);switch(P){case"pathParamsChange":return!Re(N.url,K.url);case"pathParamsOrQueryParamsChange":return!Re(N.url,K.url)||!tn(N.queryParams,K.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Ti(N,K)||!tn(N.queryParams,K.queryParams);default:return!Ti(N,K)}}(Dt,We,We.routeConfig.runGuardsAndResolvers);on?he.canActivateChecks.push(new Et(X)):(We.data=Dt.data,We._resolvedData=Dt._resolvedData),Gr(N,K,We.component?yn?yn.children:null:P,X,he),on&&yn&&yn.outlet&&yn.outlet.isActivated&&he.canDeactivateChecks.push(new Fn(yn.outlet.component,Dt))}else Dt&&Dr(K,yn,he),he.canActivateChecks.push(new Et(X)),Gr(N,null,We.component?yn?yn.children:null:P,X,he)})(Dt,We[Dt.value.outlet],P,X.concat([Dt.value]),he),delete We[Dt.value.outlet]}),Object.entries(We).forEach(([Dt,yn])=>Dr(yn,P.getContext(Dt),he)),he}function Dr(N,K,P){const X=zi(N),he=N.value;Object.entries(X).forEach(([We,Dt])=>{Dr(Dt,he.component?K?K.children.getContext(We):null:K,P)}),P.canDeactivateChecks.push(new Fn(he.component&&K&&K.outlet&&K.outlet.isActivated?K.outlet.component:null,he))}function Ei(N){return"function"==typeof N}function Qa(N){return N instanceof A.G||"EmptyError"===N?.name}const ya=Symbol("INITIAL_VALUE");function ue(){return(0,Te.n)(N=>(0,C.z)(N.map(K=>K.pipe((0,Ce.s)(1),(0,Ne.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,Se.p)(K=>K!==ya),(0,Ce.s)(1)))}function ce(N){return Tt(N)||N instanceof Io}function nc(N){return(0,k.F)((0,Yt.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(N){return(0,R.$)(new us(N))}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[Xe])return(0,R.$)(new i.wOt(4e3,!1));he=he.children[Xe]}}applyRedirectCommands(K,P,X,he,We){if("string"!=typeof P){const yn=P,{queryParams:on,fragment:fr,routeConfig:ri,url:hi,outlet:io,params:ss,data:Ko,title:Cs}=he,Wr=(0,i.N4e)(We,()=>yn({params:ss,data:Ko,queryParams:on,fragment:fr,routeConfig:ri,url:hi,outlet:io,title:Cs}));if(Wr instanceof nt)throw new Us(Wr);P=Wr}const Dt=this.applyRedirectCreateUrlTree(P,this.urlSerializer.parse(P),K,X);if("/"===P[0])throw new Us(Dt);return Dt}applyRedirectCreateUrlTree(K,P,X,he){const We=this.createSegmentGroup(K,P.root,X,he);return new nt(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 yn=We.substring(1);X[he]=P[yn]}else X[he]=We}),X}createSegmentGroup(K,P,X,he){const We=this.createSegments(K,P.segments,X,he);let Dt={};return Object.entries(P.children).forEach(([yn,on])=>{Dt[yn]=this.createSegmentGroup(K,on,X,he)}),new W(We,Dt)}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(N,K,P,X,he){const We=gc(N,K,P);return We.matched?(X=function ws(N,K){return N.providers&&!N._injector&&(N._injector=(0,i.Ol2)(N.providers,K,`Route: ${N.path}`)),N._injector??K}(K,X),function wl(N,K,P,X){const he=K.canMatch;if(!he||0===he.length)return(0,y.of)(!0);const We=he.map(Dt=>{const yn=dr(Dt,N);return en(function Wl(N){return N&&Ei(N.canMatch)}(yn)?yn.canMatch(K,P):(0,i.N4e)(N,()=>yn(K,P)))});return(0,y.of)(We).pipe(ue(),nc())}(X,K,P).pipe((0,pe.T)(Dt=>!0===Dt?We:{...la}))):(0,y.of)(We)}function gc(N,K,P){if("**"===K.path)return function Nu(N){return{matched:!0,parameters:N.length>0?Pt(N).parameters:{},consumedSegments:N,remainingSegments:[],positionalParamSegments:{}}}(P);if(""===K.path)return"full"===K.pathMatch&&(N.hasChildren()||P.length>0)?{...la}:{matched:!0,consumedSegments:[],remainingSegments:P,parameters:{},positionalParamSegments:{}};const he=(K.matcher||qe)(P,N,K);if(!he)return{...la};const We={};Object.entries(he.posParams??{}).forEach(([yn,on])=>{We[yn]=on.path});const Dt=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:Dt,positionalParamSegments:he.posParams??{}}}function rc(N,K,P,X){return P.length>0&&function ba(N,K,P){return P.some(X=>Cl(N,K,X)&&Wi(X)!==Xe)}(N,P,X)?{segmentGroup:new W(K,zl(X,new W(P,N.children))),slicedSegments:[]}:0===P.length&&function qa(N,K,P){return P.some(X=>Cl(N,K,X))}(N,P,X)?{segmentGroup:new W(N.segments,ja(N,P,X,N.children)),slicedSegments:P}:{segmentGroup:new W(N.segments,N.children),slicedSegments:P}}function ja(N,K,P,X){const he={};for(const We of P)if(Cl(N,K,We)&&!X[Wi(We)]){const Dt=new W([],{});he[Wi(We)]=Dt}return{...X,...he}}function zl(N,K){const P={};P[Xe]=K;for(const X of N)if(""===X.path&&Wi(X)!==Xe){const he=new W([],{});P[Wi(X)]=he}return P}function Cl(N,K,P){return(!(N.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,Dt,yn){this.injector=K,this.configLoader=P,this.rootComponentType=X,this.config=he,this.urlTree=We,this.paramsInheritanceStrategy=Dt,this.urlSerializer=yn,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 Is("",he),Dt=function Je(N,K,P=null,X=null){return zt(St(N),K,P,X)}(X,[],this.urlTree.queryParams,this.urlTree.fragment);return Dt.queryParams=this.urlTree.queryParams,We.url=this.urlSerializer.serialize(Dt),{state:We,tree:Dt}}))}match(K){const P=new is([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Object.freeze({}),Xe,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,K,Xe,P).pipe((0,pe.T)(X=>({children:X,rootSnapshot:P})),(0,un.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)(Dt=>Dt instanceof to?[Dt]:[]))}processChildren(K,P,X,he){const We=[];for(const Dt of Object.keys(X.children))"primary"===Dt?We.unshift(Dt):We.push(Dt);return(0,c.H)(We).pipe((0,ot.H)(Dt=>{const yn=X.children[Dt],on=function Ys(N,K){const P=N.filter(X=>Wi(X)===K);return P.push(...N.filter(X=>Wi(X)!==K)),P}(P,Dt);return this.processSegmentGroup(K,on,yn,Dt,he)}),function $n(N,K){return(0,ae.N)((0,wn.S)(N,K,arguments.length>=2,!0))}((Dt,yn)=>(Dt.push(...yn),Dt)),ke(null),function Ze(N,K){const P=arguments.length>=2;return X=>X.pipe(N?(0,Se.p)((he,We)=>N(he,We,X)):ft.D,En(1),P?ke(K):Ue(()=>new A.G))}(),(0,xe.Z)(Dt=>{if(null===Dt)return Ua(X);const yn=Dl(Dt);return function _c(N){N.sort((K,P)=>K.value.outlet===Xe?-1:P.value.outlet===Xe?1:K.value.outlet.localeCompare(P.value.outlet))}(yn),(0,y.of)(yn)}))}processSegment(K,P,X,he,We,Dt,yn){return(0,c.H)(P).pipe((0,ot.H)(on=>this.processSegmentAgainstRoute(on._injector??K,P,on,X,he,We,Dt,yn).pipe((0,un.W)(fr=>{if(fr instanceof us)return(0,y.of)(null);throw fr}))),_t(on=>!!on),(0,un.W)(on=>{if(Qa(on))return function Ro(N,K,P){return 0===K.length&&!N.children[P]}(X,he,We)?(0,y.of)(new co):Ua(X);throw on}))}processSegmentAgainstRoute(K,P,X,he,We,Dt,yn,on){return Wi(X)===Dt||Dt!==Xe&&Cl(he,We,X)?void 0===X.redirectTo?this.matchSegmentAgainstRoute(K,he,X,We,Dt,on):this.allowRedirects&&yn?this.expandSegmentAgainstRouteUsingRedirect(K,he,P,X,We,Dt,on):Ua(he):Ua(he)}expandSegmentAgainstRouteUsingRedirect(K,P,X,he,We,Dt,yn){const{matched:on,parameters:fr,consumedSegments:ri,positionalParamSegments:hi,remainingSegments:io}=gc(P,he,We);if(!on)return Ua(P);"string"==typeof he.redirectTo&&"/"===he.redirectTo[0]&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const ss=new is(We,fr,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Sl(he),Wi(he),he.component??he._loadedComponent??null,he,Xl(he)),Ko=Eo(ss,yn,this.paramsInheritanceStrategy);ss.params=Object.freeze(Ko.params),ss.data=Object.freeze(Ko.data);const Cs=this.applyRedirects.applyRedirectCommands(ri,he.redirectTo,hi,ss,K);return this.applyRedirects.lineralizeSegments(he,Cs).pipe((0,xe.Z)(Wr=>this.processSegment(K,X,P,Wr.concat(io),Dt,!1,yn)))}matchSegmentAgainstRoute(K,P,X,he,We,Dt){const yn=$a(P,X,he,K);return"**"===X.path&&(P.children={}),yn.pipe((0,Te.n)(on=>on.matched?this.getChildConfig(K=X._injector??K,X,he).pipe((0,Te.n)(({routes:fr})=>{const ri=X._loadedInjector??K,{parameters:hi,consumedSegments:io,remainingSegments:ss}=on,Ko=new is(io,hi,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Sl(X),Wi(X),X.component??X._loadedComponent??null,X,Xl(X)),Cs=Eo(Ko,Dt,this.paramsInheritanceStrategy);Ko.params=Object.freeze(Cs.params),Ko.data=Object.freeze(Cs.data);const{segmentGroup:Wr,slicedSegments:hl}=rc(P,io,ss,fr);if(0===hl.length&&Wr.hasChildren())return this.processChildren(ri,fr,Wr,Ko).pipe((0,pe.T)(sc=>new to(Ko,sc)));if(0===fr.length&&0===hl.length)return(0,y.of)(new to(Ko,[]));const wc=Wi(X)===We;return this.processSegment(ri,fr,Wr,hl,wc?Xe: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 Ru(N,K,P,X){const he=K.canLoad;if(void 0===he||0===he.length)return(0,y.of)(!0);const We=he.map(Dt=>{const yn=dr(Dt,N);return en(function ho(N){return N&&Ei(N.canLoad)}(yn)?yn.canLoad(K,P):(0,i.N4e)(N,()=>yn(K,P)))});return(0,y.of)(We).pipe(ue(),nc())}(K,P,X).pipe((0,xe.Z)(he=>he?this.configLoader.loadChildren(K,P).pipe((0,Yt.M)(We=>{P._loadedRoutes=We.routes,P._loadedInjector=We.injector})):function El(){return(0,R.$)(Xa(!1,ht.GuardRejected))}())):(0,y.of)({routes:[],injector:K})}}function al(N){const K=N.value.routeConfig;return K&&""===K.path}function Dl(N){const K=[],P=new Set;for(const X of N){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(N){return N.data||{}}function Xl(N){return N.resolve||{}}function Ui(N){const K=N.children.map(P=>Ui(P)).flat();return[N,...K]}function no(N){return(0,Te.n)(K=>{const P=N(K);return P?(0,c.H)(P).pipe((0,pe.T)(()=>K)):(0,y.of)(K)})}let $o=(()=>{class N{buildTitle(P){let X,he=P.root;for(;void 0!==he;)X=this.getResolvedTitleForRoute(he)??X,he=he.children.find(We=>We.outlet===Xe);return X}getResolvedTitleForRoute(P){return P.data[Ge]}static \u0275fac=function(X){return new(X||N)};static \u0275prov=i.jDH({token:N,factory:()=>(0,i.WQX)(es),providedIn:"root"})}return N})(),es=(()=>{class N 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||N)(i.KVO(lt.hE))};static \u0275prov=i.jDH({token:N,factory:N.\u0275fac,providedIn:"root"})}return N})();const Po=new i.nKC("",{providedIn:"root",factory:()=>({})});let Fr=(()=>{class N{static \u0275fac=function(X){return new(X||N)};static \u0275cmp=i.VBU({type:N,selectors:[["ng-component"]],decls:1,vars:0,template:function(X,he){1&X&&i.nrm(0,"router-outlet")},dependencies:[Qo],encapsulation:2})}return N})();function fo(N){const K=N.children&&N.children.map(fo),P=K?{...N,children:K}:{...N};return!P.component&&!P.loadComponent&&(K||P.loadChildren)&&P.outlet&&P.outlet!==Xe&&(P.component=Fr),P}const Os=new i.nKC("");let Rr=(()=>{class N{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=en(P.loadComponent()).pipe((0,pe.T)(Va),(0,Yt.M)(We=>{this.onLoadEndListener&&this.onLoadEndListener(P),P._loadedComponent=We}),(0,ze.j)(()=>{this.componentLoaders.delete(P)})),he=new Z.G(X,()=>new te.B).pipe((0,Be.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(N,K,P,X){return en(N.loadChildren()).pipe((0,pe.T)(Va),(0,xe.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(N);let We,Dt,yn=!1;return Array.isArray(he)?(Dt=he,!0):(We=he.create(P).injector,Dt=We.get(Os,[],{optional:!0,self:!0}).flat()),{routes:Dt.map(fo),injector:We}}))}(X,this.compiler,P,this.onLoadEndListener).pipe((0,ze.j)(()=>{this.childrenLoaders.delete(X)})),Dt=new Z.G(We,()=>new te.B).pipe((0,Be.B)());return this.childrenLoaders.set(X,Dt),Dt}static \u0275fac=function(X){return new(X||N)};static \u0275prov=i.jDH({token:N,factory:N.\u0275fac,providedIn:"root"})}return N})();function Va(N){return function ic(N){return N&&"object"==typeof N&&"default"in N}(N)?N.default:N}let ro=(()=>{class N{static \u0275fac=function(X){return new(X||N)};static \u0275prov=i.jDH({token:N,factory:()=>(0,i.WQX)(Ha),providedIn:"root"})}return N})(),Ha=(()=>{class N{shouldProcessUrl(P){return!0}extract(P){return P}merge(P,X){return P}static \u0275fac=function(X){return new(X||N)};static \u0275prov=i.jDH({token:N,factory:N.\u0275fac,providedIn:"root"})}return N})();const Di=new i.nKC(""),$s=new i.nKC("");function ca(N,K,P){const X=N.get($s),he=N.get(_e.qQ);return N.get(i.SKi).runOutsideAngular(()=>{if(!he.startViewTransition||X.skipNextTransition)return X.skipNextTransition=!1,new Promise(fr=>setTimeout(fr));let We;const Dt=new Promise(fr=>{We=fr}),yn=he.startViewTransition(()=>(We(),function No(N){return new Promise(K=>{(0,i.mal)({read:()=>setTimeout(K)},{injector:N})})}(N))),{onViewTransitionCreated:on}=X;return on&&(0,i.N4e)(N,()=>on({transition:yn,from:K,to:P})),Dt})}const U=new i.nKC("");let de=(()=>{class N{currentNavigation=null;currentTransition=null;lastSuccessfulNavigation=null;events=new te.B;transitionAbortSubject=new te.B;configLoader=(0,i.WQX)(Rr);environmentInjector=(0,i.WQX)(i.uvJ);urlSerializer=(0,i.WQX)(mt);rootContexts=(0,i.WQX)(ns);location=(0,i.WQX)(_e.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)(U,{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 pr(he)),this.configLoader.onLoadStartListener=he=>this.events.next(new Ir(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,Se.p)(We=>0!==We.id),(0,pe.T)(We=>({...We,extractedUrl:this.urlHandlingStrategy.extract(We.rawUrl)})),(0,Te.n)(We=>{let Dt=!1,yn=!1;return(0,y.of)(We).pipe((0,Te.n)(on=>{if(this.navigationId>We.id)return this.cancelNavigationTransition(We,"",ht.SupersededByNewNavigation),G.w;this.currentTransition=We,this.currentNavigation={id:on.id,initialUrl:on.rawUrl,extractedUrl:on.extractedUrl,targetBrowserUrl:"string"==typeof on.extras.browserUrl?this.urlSerializer.parse(on.extras.browserUrl):on.extras.browserUrl,trigger:on.source,extras:on.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null};const fr=!P.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl();if(!fr&&"reload"!==(on.extras.onSameUrlNavigation??P.onSameUrlNavigation)){const hi="";return this.events.next(new hn(on.id,this.urlSerializer.serialize(on.rawUrl),hi,Vt.IgnoredSameUrlNavigation)),on.resolve(!1),G.w}if(this.urlHandlingStrategy.shouldProcessUrl(on.rawUrl))return(0,y.of)(on).pipe((0,Te.n)(hi=>{const io=this.transitions?.getValue();return this.events.next(new tt(hi.id,this.urlSerializer.serialize(hi.extractedUrl),hi.source,hi.restoredState)),io!==this.transitions?.getValue()?G.w:Promise.resolve(hi)}),function xa(N,K,P,X,he,We){return(0,xe.Z)(Dt=>function wa(N,K,P,X,he,We,Dt="emptyOnly"){return new Jo(N,K,P,X,he,Dt,We).recognize()}(N,K,P,X,Dt.extractedUrl,he,We).pipe((0,pe.T)(({state:yn,tree:on})=>({...Dt,targetSnapshot:yn,urlAfterRedirects:on}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,P.config,this.urlSerializer,this.paramsInheritanceStrategy),(0,Yt.M)(hi=>{We.targetSnapshot=hi.targetSnapshot,We.urlAfterRedirects=hi.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:hi.urlAfterRedirects};const io=new An(hi.id,this.urlSerializer.serialize(hi.extractedUrl),this.urlSerializer.serialize(hi.urlAfterRedirects),hi.targetSnapshot);this.events.next(io)}));if(fr&&this.urlHandlingStrategy.shouldProcessUrl(on.currentRawUrl)){const{id:hi,extractedUrl:io,source:ss,restoredState:Ko,extras:Cs}=on,Wr=new tt(hi,this.urlSerializer.serialize(io),ss,Ko);this.events.next(Wr);const hl=ko(this.rootComponentType).snapshot;return this.currentTransition=We={...on,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 hn(on.id,this.urlSerializer.serialize(on.extractedUrl),hi,Vt.IgnoredByUrlHandlingStrategy)),on.resolve(!1),G.w}}),(0,Yt.M)(on=>{const fr=new On(on.id,this.urlSerializer.serialize(on.extractedUrl),this.urlSerializer.serialize(on.urlAfterRedirects),on.targetSnapshot);this.events.next(fr)}),(0,pe.T)(on=>(this.currentTransition=We={...on,guards:fn(on.targetSnapshot,on.currentSnapshot,this.rootContexts)},We)),function Q(N,K){return(0,xe.Z)(P=>{const{targetSnapshot:X,currentSnapshot:he,guards:{canActivateChecks:We,canDeactivateChecks:Dt}}=P;return 0===Dt.length&&0===We.length?(0,y.of)({...P,guardsResult:!0}):function Pe(N,K,P,X){return(0,c.H)(N).pipe((0,xe.Z)(he=>function Ba(N,K,P,X,he){const We=K&&K.routeConfig?K.routeConfig.canDeactivate:null;if(!We||0===We.length)return(0,y.of)(!0);const Dt=We.map(yn=>{const on=Ni(K)??he,fr=dr(yn,on);return en(function Oo(N){return N&&Ei(N.canDeactivate)}(fr)?fr.canDeactivate(N,K,P,X):(0,i.N4e)(on,()=>fr(N,K,P,X))).pipe(_t())});return(0,y.of)(Dt).pipe(ue())}(he.component,he.route,P,K,X)),_t(he=>!0!==he,!0))}(Dt,X,he,N).pipe((0,xe.Z)(yn=>yn&&function ui(N){return"boolean"==typeof N}(yn)?function jt(N,K,P,X){return(0,c.H)(K).pipe((0,ot.H)(he=>(0,S.x)(function ni(N,K){return null!==N&&K&&K(new bi(N)),(0,y.of)(!0)}(he.route.parent,X),function gr(N,K){return null!==N&&K&&K(new mr(N)),(0,y.of)(!0)}(he.route,X),function qo(N,K,P){const X=K[K.length-1],We=K.slice(0,K.length-1).reverse().map(Dt=>function cr(N){const K=N.routeConfig?N.routeConfig.canActivateChild:null;return K&&0!==K.length?{node:N,guards:K}:null}(Dt)).filter(Dt=>null!==Dt).map(Dt=>(0,T.v)(()=>{const yn=Dt.guards.map(on=>{const fr=Ni(Dt.node)??P,ri=dr(on,fr);return en(function Ho(N){return N&&Ei(N.canActivateChild)}(ri)?ri.canActivateChild(X,N):(0,i.N4e)(fr,()=>ri(X,N))).pipe(_t())});return(0,y.of)(yn).pipe(ue())}));return(0,y.of)(We).pipe(ue())}(N,he.path,P),function Do(N,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,T.v)(()=>{const Dt=Ni(K)??P,yn=dr(We,Dt);return en(function lo(N){return N&&Ei(N.canActivate)}(yn)?yn.canActivate(K,N):(0,i.N4e)(Dt,()=>yn(K,N))).pipe(_t())}));return(0,y.of)(he).pipe(ue())}(N,he.route,P))),_t(he=>!0!==he,!0))}(X,We,N,K):(0,y.of)(yn)),(0,pe.T)(yn=>({...P,guardsResult:yn})))})}(this.environmentInjector,on=>this.events.next(on)),(0,Yt.M)(on=>{if(We.guardsResult=on.guardsResult,on.guardsResult&&"boolean"!=typeof on.guardsResult)throw bl(0,on.guardsResult);const fr=new Un(on.id,this.urlSerializer.serialize(on.extractedUrl),this.urlSerializer.serialize(on.urlAfterRedirects),on.targetSnapshot,!!on.guardsResult);this.events.next(fr)}),(0,Se.p)(on=>!!on.guardsResult||(this.cancelNavigationTransition(on,"",ht.GuardRejected),!1)),no(on=>{if(on.guards.canActivateChecks.length)return(0,y.of)(on).pipe((0,Yt.M)(fr=>{const ri=new Jn(fr.id,this.urlSerializer.serialize(fr.extractedUrl),this.urlSerializer.serialize(fr.urlAfterRedirects),fr.targetSnapshot);this.events.next(ri)}),(0,Te.n)(fr=>{let ri=!1;return(0,y.of)(fr).pipe(function ds(N,K){return(0,xe.Z)(P=>{const{targetSnapshot:X,guards:{canActivateChecks:he}}=P;if(!he.length)return(0,y.of)(P);const We=new Set(he.map(on=>on.route)),Dt=new Set;for(const on of We)if(!Dt.has(on))for(const fr of Ui(on))Dt.add(fr);let yn=0;return(0,c.H)(Dt).pipe((0,ot.H)(on=>We.has(on)?function Gn(N,K,P,X){const he=N.routeConfig,We=N._resolve;return void 0!==he?.title&&!sa(he)&&(We[Ge]=he.title),function Ar(N,K,P,X){const he=pn(N);if(0===he.length)return(0,y.of)({});const We={};return(0,c.H)(he).pipe((0,xe.Z)(Dt=>function So(N,K,P,X){const he=Ni(K)??X,We=dr(N,he);return en(We.resolve?We.resolve(K,P):(0,i.N4e)(he,()=>We(K,P)))}(N[Dt],K,P,X).pipe(_t(),(0,Yt.M)(yn=>{if(yn instanceof Io)throw bl(new At,yn);We[Dt]=yn}))),En(1),(0,wt.u)(We),(0,un.W)(Dt=>Qa(Dt)?G.w:(0,R.$)(Dt)))}(We,N,K,X).pipe((0,pe.T)(Dt=>(N._resolvedData=Dt,N.data=Eo(N,N.parent,P).resolve,null)))}(on,X,N,K):(on.data=Eo(on,on.parent,N).resolve,(0,y.of)(void 0))),(0,Yt.M)(()=>yn++),En(1),(0,xe.Z)(on=>yn===Dt.size?(0,y.of)(P):G.w))})}(this.paramsInheritanceStrategy,this.environmentInjector),(0,Yt.M)({next:()=>ri=!0,complete:()=>{ri||this.cancelNavigationTransition(fr,"",ht.NoDataFromResolver)}}))}),(0,Yt.M)(fr=>{const ri=new sr(fr.id,this.urlSerializer.serialize(fr.extractedUrl),this.urlSerializer.serialize(fr.urlAfterRedirects),fr.targetSnapshot);this.events.next(ri)}))}),no(on=>{const fr=ri=>{const hi=[];ri.routeConfig?.loadComponent&&!ri.routeConfig._loadedComponent&&hi.push(this.configLoader.loadComponent(ri.routeConfig).pipe((0,Yt.M)(io=>{ri.component=io}),(0,pe.T)(()=>{})));for(const io of ri.children)hi.push(...fr(io));return hi};return(0,C.z)(fr(on.targetSnapshot.root)).pipe(ke(null),(0,Ce.s)(1))}),no(()=>this.afterPreactivation()),(0,Te.n)(()=>{const{currentSnapshot:on,targetSnapshot:fr}=We,ri=this.createViewTransition?.(this.environmentInjector,on.root,fr.root);return ri?(0,c.H)(ri).pipe((0,pe.T)(()=>We)):(0,y.of)(We)}),(0,pe.T)(on=>{const fr=function vo(N,K,P){const X=Zo(N,K._root,P?P._root:void 0);return new Es(X,K)}(P.routeReuseStrategy,on.targetSnapshot,on.currentRouterState);return this.currentTransition=We={...on,targetRouterState:fr},this.currentNavigation.targetRouterState=fr,We}),(0,Yt.M)(()=>{this.events.next(new $r)}),((N,K,P,X)=>(0,pe.T)(he=>(new Qe(K,he.targetRouterState,he.currentRouterState,P,X).activate(N),he)))(this.rootContexts,P.routeReuseStrategy,on=>this.events.next(on),this.inputBindingEnabled),(0,Ce.s)(1),(0,Yt.M)({next:on=>{Dt=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Oe(on.id,this.urlSerializer.serialize(on.extractedUrl),this.urlSerializer.serialize(on.urlAfterRedirects))),this.titleStrategy?.updateTitle(on.targetRouterState.snapshot),on.resolve(!0)},complete:()=>{Dt=!0}}),(0,Ut.Q)(this.transitionAbortSubject.pipe((0,Yt.M)(on=>{throw on}))),(0,ze.j)(()=>{!Dt&&!yn&&this.cancelNavigationTransition(We,"",ht.SupersededByNewNavigation),this.currentTransition?.id===We.id&&(this.currentNavigation=null,this.currentTransition=null)}),(0,un.W)(on=>{if(yn=!0,Y(on))this.events.next(new kt(We.id,this.urlSerializer.serialize(We.extractedUrl),on.message,on.cancellationCode)),function Ya(N){return Y(N)&&Tt(N.url)}(on)?this.events.next(new Gi(on.url,on.navigationBehaviorOptions)):We.resolve(!1);else{const fr=new Cn(We.id,this.urlSerializer.serialize(We.extractedUrl),on,We.targetSnapshot??void 0);try{const ri=(0,i.N4e)(this.environmentInjector,()=>this.navigationErrorHandler?.(fr));if(!(ri instanceof Io))throw this.events.next(fr),on;{const{message:hi,cancellationCode:io}=bl(0,ri);this.events.next(new kt(We.id,this.urlSerializer.serialize(We.extractedUrl),hi,io)),this.events.next(new Gi(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 kt(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||N)};static \u0275prov=i.jDH({token:N,factory:N.\u0275fac,providedIn:"root"})}return N})();function q(N){return N!==ct}let ve=(()=>{class N{static \u0275fac=function(X){return new(X||N)};static \u0275prov=i.jDH({token:N,factory:()=>(0,i.WQX)(bn),providedIn:"root"})}return N})();class rt{shouldDetach(K){return!1}store(K,P){}shouldAttach(K){return!1}retrieve(K){return null}shouldReuseRoute(K,P){return K.routeConfig===P.routeConfig}}let bn=(()=>{class N extends rt{static \u0275fac=(()=>{let P;return function(he){return(P||(P=i.xGo(N)))(he||N)}})();static \u0275prov=i.jDH({token:N,factory:N.\u0275fac,providedIn:"root"})}return N})(),Rn=(()=>{class N{static \u0275fac=function(X){return new(X||N)};static \u0275prov=i.jDH({token:N,factory:()=>(0,i.WQX)(Cr),providedIn:"root"})}return N})(),Cr=(()=>{class N extends Rn{location=(0,i.WQX)(_e.aZ);urlSerializer=(0,i.WQX)(mt);options=(0,i.WQX)(Po,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";urlHandlingStrategy=(0,i.WQX)(ro);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new nt;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=ko(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 tt)this.stateMemento=this.createStateMemento();else if(P instanceof hn)this.rawUrlTree=X.initialUrl;else if(P instanceof An){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 kt&&(P.code===ht.GuardRejected||P.code===ht.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 nt?this.urlSerializer.serialize(P):P;if(this.location.isCurrentPathEqualTo(he)||X.extras.replaceUrl){const Dt={...X.extras.state,...this.generateNgRouterState(X.id,this.browserPageId)};this.location.replaceState(he,"",Dt)}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(N)))(he||N)}})();static \u0275prov=i.jDH({token:N,factory:N.\u0275fac,providedIn:"root"})}return N})();var Yr=function(N){return N[N.COMPLETE=0]="COMPLETE",N[N.FAILED=1]="FAILED",N[N.REDIRECTING=2]="REDIRECTING",N}(Yr||{});function Li(N,K){N.events.pipe((0,Se.p)(P=>P instanceof Oe||P instanceof kt||P instanceof Cn||P instanceof hn),(0,pe.T)(P=>P instanceof Oe||P instanceof hn?Yr.COMPLETE:P instanceof kt&&(P.code===ht.Redirect||P.code===ht.SupersededByNewNavigation)?Yr.REDIRECTING:Yr.FAILED),(0,Se.p)(P=>P!==Yr.REDIRECTING),(0,Ce.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 N{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=(0,i.WQX)(i.H3F);stateManager=(0,i.WQX)(Rn);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)(mt);location=(0,i.WQX)(_e.aZ);urlHandlingStrategy=(0,i.WQX)(ro);_events=new te.B;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=(0,i.WQX)(ve);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 kt&&X.code!==ht.Redirect&&X.code!==ht.SupersededByNewNavigation)this.navigated=!0;else if(X instanceof Oe)this.navigated=!0;else if(X instanceof Gi){const Dt=X.navigationBehaviorOptions,yn=this.urlHandlingStrategy.merge(X.url,he.currentRawUrl),on={browserUrl:he.extras.browserUrl,info:he.extras.info,skipLocationChange:he.extras.skipLocationChange,replaceUrl:he.extras.replaceUrl||"eager"===this.urlUpdateStrategy||q(he.source),...Dt};this.scheduleNavigation(yn,ct,null,on,{resolve:he.resolve,reject:he.reject,promise:he.promise})}(function Fo(N){return!(N instanceof $r||N instanceof Gi)})(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},Dt=he?.navigationId?he:null;if(he){const on={...he};delete on.navigationId,delete on.\u0275routerPageId,0!==Object.keys(on).length&&(We.state=on)}const yn=this.parseUrl(P);this.scheduleNavigation(yn,X,Dt,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:Dt,queryParamsHandling:yn,preserveFragment:on}=X,fr=on?this.currentUrlTree.fragment:Dt;let hi,ri=null;switch(yn??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=St(he?he.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof P[0]||"/"!==P[0][0])&&(P=[]),hi=this.currentUrlTree.root}return zt(hi,P,ri,fr??null)}navigateByUrl(P,X={skipLocationChange:!1}){const he=Tt(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(N){for(let K=0;K(null!=We&&(X[he]=We),X),{})}scheduleNavigation(P,X,he,We,Dt){if(this.disposed)return Promise.resolve(!1);let yn,on,fr;Dt?(yn=Dt.resolve,on=Dt.reject,fr=Dt.promise):fr=new Promise((hi,io)=>{yn=hi,on=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:yn,reject:on,promise:fr,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),fr.catch(hi=>Promise.reject(hi))}static \u0275fac=function(X){return new(X||N)};static \u0275prov=i.jDH({token:N,factory:N.\u0275fac,providedIn:"root"})}return N})(),Wo=(()=>{class N{router;route;tabIndexAttribute;renderer;el;locationStrategy;href=null;target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new te.B;constructor(P,X,he,We,Dt,yn){this.router=P,this.route=X,this.tabIndexAttribute=he,this.renderer=We,this.el=Dt,this.locationStrategy=yn;const on=Dt.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===on||"area"===on,this.isAnchorElement?this.subscription=P.events.subscribe(fr=>{fr 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=Tt(P)||Array.isArray(P)?P:[P],this.setTabIndexIfNotOnNativeEl("0"))}onClick(P,X,he,We,Dt){const yn=this.urlTree;return!!(null===yn||this.isAnchorElement&&(0!==P||X||he||We||Dt||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(yn,{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:Tt(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||N)(i.rXU(Qr),i.rXU(tr),i.kS0("tabindex"),i.rXU(i.sFG),i.rXU(i.aKT),i.rXU(_e.hb))};static \u0275dir=i.FsC({type:N,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(X,he){1&X&&i.bIt("click",function(Dt){return he.onClick(Dt.button,Dt.ctrlKey,Dt.shiftKey,Dt.altKey,Dt.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 N})(),hs=(()=>{class N{router;element;renderer;cdr;link;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new i.bkB;constructor(P,X,he,We,Dt){this.router=P,this.element=X,this.renderer=he,this.cdr=We,this.link=Dt,this.routerEventsSubscription=P.events.subscribe(yn=>{yn 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(N){return!!N.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||N)(i.rXU(Qr),i.rXU(i.aKT),i.rXU(i.sFG),i.rXU(i.gRc),i.rXU(Wo,8))};static \u0275dir=i.FsC({type:N,selectors:[["","routerLinkActive",""]],contentQueries:function(X,he,We){if(1&X&&i.wni(We,Wo,5),2&X){let Dt;i.mGM(Dt=i.lsd())&&(he.links=Dt)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[i.OA$]})}return N})();class Rs{}let Zs=(()=>{class N{router;injector;preloadingStrategy;loader;subscription;constructor(P,X,he,We,Dt){this.router=P,this.injector=he,this.preloadingStrategy=We,this.loader=Dt}setUpPreloading(){this.subscription=this.router.events.pipe((0,Se.p)(P=>P instanceof Oe),(0,ot.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 Dt=We._injector??P,yn=We._loadedInjector??Dt;(We.loadChildren&&!We._loadedRoutes&&void 0===We.canLoad||We.loadComponent&&!We._loadedComponent)&&he.push(this.preloadConfig(Dt,We)),(We.children||We._loadedRoutes)&&he.push(this.processRoutes(yn,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,xe.Z)(Dt=>null===Dt?(0,y.of)(void 0):(X._loadedRoutes=Dt.routes,X._loadedInjector=Dt.injector,this.processRoutes(Dt.injector??P,Dt.routes))));if(X.loadComponent&&!X._loadedComponent){const Dt=this.loader.loadComponent(X);return(0,c.H)([We,Dt]).pipe((0,Ke.U)())}return We})}static \u0275fac=function(X){return new(X||N)(i.KVO(Qr),i.KVO(i.Ql9),i.KVO(i.uvJ),i.KVO(Rs),i.KVO(Rr))};static \u0275prov=i.jDH({token:N,factory:N.\u0275fac,providedIn:"root"})}return N})();const Da=new i.nKC("");let ll=(()=>{class N{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource="imperative";restoredId=0;store={};constructor(P,X,he,We,Dt={}){this.urlSerializer=P,this.transitions=X,this.viewportScroller=he,this.zone=We,this.options=Dt,Dt.scrollPositionRestoration||="disabled",Dt.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 tt?(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 hn&&P.code===Vt.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 _o&&(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 _o(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:N,factory:N.\u0275fac})}return N})();function Tl(N,...K){return(0,i.EmA)([{provide:Os,multi:!0,useValue:N},[],{provide:tr,useFactory:cl,deps:[Qr]},{provide:i.iLQ,multi:!0,useFactory:Ao},K.map(P=>P.\u0275providers)])}function cl(N){return N.routerState.root}function ua(N,K){return{\u0275kind:N,\u0275providers:K}}function oc(N={}){return ua(4,[{provide:Da,useFactory:()=>{const P=(0,i.WQX)(_e.Xr),X=(0,i.WQX)(i.SKi),he=(0,i.WQX)(de),We=(0,i.WQX)(mt);return new ll(We,he,P,X,N)}}])}function Ao(){const N=(0,i.WQX)(i.zZn);return K=>{const P=N.get(i.o8S);if(K!==P.components[0])return;const X=N.get(Qr),he=N.get(Ja);1===N.get(el)&&X.initialNavigation(),N.get(Ns,null,i.$GK.Optional)?.setUpPreloading(),N.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 te.B}),el=new i.nKC("",{providedIn:"root",factory:()=>1}),Ns=new i.nKC("");function Js(N){return ua(0,[{provide:Ns,useExisting:Zs},{provide:Rs,useExisting:N}])}function ou(N){return ua(9,[{provide:Di,useValue:ca},{provide:$s,useValue:{skipNextTransition:!!N?.skipInitialTransition,...N}}])}const yc=new i.nKC("ROUTER_FORROOT_GUARD"),da=[_e.aZ,{provide:mt,useClass:At},Qr,ns,{provide:tr,useFactory:cl,deps:[Qr]},Rr,[]];let ul=(()=>{class N{constructor(P){}static forRoot(P,X){return{ngModule:N,providers:[da,[],{provide:Os,multi:!0,useValue:P},{provide:yc,useFactory:ha,deps:[[Qr,new i.Xx1,new i.kdw]]},X?.errorHandler?{provide:U,useValue:X.errorHandler}:[],{provide:Po,useValue:X||{}},X?.useHash?{provide:_e.hb,useClass:_e.fw}:{provide:_e.hb,useClass:_e.Sm},{provide:Da,useFactory:()=>{const N=(0,i.WQX)(_e.Xr),K=(0,i.WQX)(i.SKi),P=(0,i.WQX)(Po),X=(0,i.WQX)(de),he=(0,i.WQX)(mt);return P.scrollOffset&&N.setOffset(P.scrollOffset),new ll(he,X,N,K,P)}},X?.preloadingStrategy?Js(X.preloadingStrategy).\u0275providers:[],X?.initialNavigation?dl(X):[],X?.bindToComponentInputs?ua(8,[os,{provide:ao,useExisting:os}]).\u0275providers:[],X?.enableViewTransitions?ou().\u0275providers:[],[{provide:Lu,useFactory:Ao},{provide:i.iLQ,multi:!0,useExisting:Lu}]]}}static forChild(P){return{ngModule:N,providers:[{provide:Os,multi:!0,useValue:P}]}}static \u0275fac=function(X){return new(X||N)(i.KVO(yc,8))};static \u0275mod=i.$C({type:N});static \u0275inj=i.G2t({})}return N})();function ha(N){return"guarded"}function dl(N){return["disabled"===N.initialNavigation?ua(3,[{provide:i.hnV,multi:!0,useFactory:()=>{const K=(0,i.WQX)(Qr);return()=>{K.setUpLocationChangeListener()}}},{provide:el,useValue:2}]).\u0275providers:[],"enabledBlocking"===N.initialNavigation?ua(2,[{provide:el,useValue:0},{provide:i.hnV,multi:!0,deps:[i.zZn],useFactory:K=>{const P=K.get(_e.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 Lu=new i.nKC("")},8378:(o,s,r)=>{"use strict";r.d(s,{My:()=>Ne,aT:()=>ae});const Ce=Array.from({length:256},(Ze,wt)=>wt.toString(16).padStart(2,"0"));function Ne(Ze){!function c(Ze,...wt){if(!function a(Ze){return Ze instanceof Uint8Array||ArrayBuffer.isView(Ze)&&"Uint8Array"===Ze.constructor.name}(Ze))throw new Error("Uint8Array expected");if(wt.length>0&&!wt.includes(Ze.length))throw new Error("Uint8Array expected of length "+wt+", got length="+Ze.length)}(Ze);let wt="";for(let ze=0;ze=Se._0&&Ze<=Se._9?Ze-Se._0:Ze>=Se.A&&Ze<=Se.F?Ze-(Se.A-10):Ze>=Se.a&&Ze<=Se.f?Ze-(Se.a-10):void 0}function ae(Ze){if("string"!=typeof Ze)throw new Error("hex string expected, got "+typeof Ze);const wt=Ze.length,ze=wt/2;if(wt%2)throw new Error("hex string expected, got unpadded hex of length "+wt);const Be=new Uint8Array(ze);for(let Ut=0,Ke=0;Ut{"use strict";function i(Ge){if(!Number.isSafeInteger(Ge))throw new Error(`Wrong integer: ${Ge}`)}function a(...Ge){const pt=(Nt,tn)=>pn=>Nt(tn(pn));return{encode:Array.from(Ge).reverse().reduce((Nt,tn)=>Nt?pt(Nt,tn.encode):tn.encode,void 0),decode:Ge.reduce((Nt,tn)=>Nt?pt(Nt,tn.decode):tn.decode,void 0)}}function c(Ge){return{encode:pt=>{if(!Array.isArray(pt)||pt.length&&"number"!=typeof pt[0])throw new Error("alphabet.encode input should be an array of numbers");return pt.map(se=>{if(i(se),se<0||se>=Ge.length)throw new Error(`Digit index outside alphabet: ${se} (alphabet: ${Ge.length})`);return Ge[se]})},decode:pt=>{if(!Array.isArray(pt)||pt.length&&"string"!=typeof pt[0])throw new Error("alphabet.decode input should be array of strings");return pt.map(se=>{if("string"!=typeof se)throw new Error(`alphabet.decode: not string element=${se}`);const qe=Ge.indexOf(se);if(-1===qe)throw new Error(`Unknown letter: "${se}". Allowed: ${Ge}`);return qe})}}}function y(Ge=""){if("string"!=typeof Ge)throw new Error("join separator should be string");return{encode:pt=>{if(!Array.isArray(pt)||pt.length&&"string"!=typeof pt[0])throw new Error("join.encode input should be array of strings");for(let se of pt)if("string"!=typeof se)throw new Error(`join.encode: non-string input=${se}`);return pt.join(Ge)},decode:pt=>{if("string"!=typeof pt)throw new Error("join.decode input should be string");return pt.split(Ge)}}}function w(Ge,pt="="){if(i(Ge),"string"!=typeof pt)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 qe of se)if("string"!=typeof qe)throw new Error(`padding.encode: non-string input=${qe}`);for(;se.length*Ge%8;)se.push(pt);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 Nt of se)if("string"!=typeof Nt)throw new Error(`padding.decode: non-string input=${Nt}`);let qe=se.length;if(qe*Ge%8)throw new Error("Invalid padding: string should have whole number of bytes");for(;qe>0&&se[qe-1]===pt;qe--)if(!((qe-1)*Ge%8))throw new Error("Invalid padding: string has too much padding");return se.slice(0,qe)}}}function C(Ge){if("function"!=typeof Ge)throw new Error("normalize fn should be function");return{encode:pt=>pt,decode:pt=>Ge(pt)}}function A(Ge,pt,se){if(pt<2)throw new Error(`convertRadix: wrong from=${pt}, 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(Ge))throw new Error("convertRadix: data should be array");if(!Ge.length)return[];let qe=0;const Nt=[],tn=Array.from(Ge);for(tn.forEach(pn=>{if(i(pn),pn<0||pn>=pt)throw new Error(`Wrong integer: ${pn}`)});;){let pn=0,Wn=!0;for(let Pt=qe;Pt$n,K3:()=>Ne,Tq:()=>ft});const S=(Ge,pt)=>pt?S(pt,Ge%pt):Ge,T=(Ge,pt)=>Ge+(pt-S(Ge,pt));function k(Ge,pt,se,qe){if(!Array.isArray(Ge))throw new Error("convertRadix2: data should be array");if(pt<=0||pt>32)throw new Error(`convertRadix2: wrong from=${pt}`);if(se<=0||se>32)throw new Error(`convertRadix2: wrong to=${se}`);if(T(pt,se)>32)throw new Error(`convertRadix2: carry overflow from=${pt} to=${se} carryBits=${T(pt,se)}`);let Nt=0,tn=0;const pn=2**se-1,Wn=[];for(const Pt of Ge){if(i(Pt),Pt>=2**pt)throw new Error(`convertRadix2: invalid data word=${Pt} from=${pt}`);if(Nt=Nt<32)throw new Error(`convertRadix2: carry overflow pos=${tn} from=${pt}`);for(tn+=pt;tn>=se;tn-=se)Wn.push((Nt>>tn-se&pn)>>>0);Nt&=2**tn-1}if(Nt=Nt<=pt)throw new Error("Excess padding");if(!qe&&Nt)throw new Error(`Non-zero padding: ${Nt}`);return qe&&tn>0&&Wn.push(Nt>>>0),Wn}function G(Ge,pt=!1){if(i(Ge),Ge<=0||Ge>32)throw new Error("radix2: bits should be in (0..32]");if(T(8,Ge)>32||T(Ge,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 k(Array.from(se),8,Ge,!pt)},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(k(se,Ge,8,pt))}}}function Z(Ge){if("function"!=typeof Ge)throw new Error("unsafeWrapper fn should be function");return function(...pt){try{return Ge.apply(null,pt)}catch{}}}a(G(4),c("0123456789ABCDEF"),y("")),a(G(5),c("ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"),w(5),y(""));const Ne=(a(G(5),c("0123456789ABCDEFGHIJKLMNOPQRSTUV"),w(5),y("")),a(G(5),c("0123456789ABCDEFGHJKMNPQRSTVWXYZ"),y(""),C(Ge=>Ge.toUpperCase().replace(/O/g,"0").replace(/[IL]/g,"1"))),a(G(6),c("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),w(6),y(""))),xe=(a(G(6),c("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),w(6),y("")),Ge=>a(function R(Ge){return i(Ge),{encode:pt=>{if(!(pt instanceof Uint8Array))throw new Error("radix.encode input should be Uint8Array");return A(Array.from(pt),256,Ge)},decode:pt=>{if(!Array.isArray(pt)||pt.length&&"number"!=typeof pt[0])throw new Error("radix.decode input should be array of strings");return Uint8Array.from(A(pt,Ge,256))}}}(58),c(Ge),y(""))),ae=xe("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),ft=(xe("123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"),xe("rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz"),Ge=>a(function te(Ge,pt){if(i(Ge),"function"!=typeof pt)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 qe=pt(se).slice(0,Ge),Nt=new Uint8Array(se.length+Ge);return Nt.set(se),Nt.set(qe,se.length),Nt},decode(se){if(!(se instanceof Uint8Array))throw new Error("checksum.decode: input should be Uint8Array");const qe=se.slice(0,-Ge),Nt=pt(qe).slice(0,Ge),tn=se.slice(-Ge);for(let pn=0;pnGe(Ge(pt))),ae)),_t=a(c("qpzry9x8gf2tvdw0s3jn54khce6mua7l"),y("")),ot=[996825010,642813549,513874426,1027748829,705979059];function Yt(Ge){const pt=Ge>>25;let se=(33554431&Ge)<<5;for(let qe=0;qe>qe&1)&&(se^=ot[qe]);return se}function un(Ge,pt,se=1){const qe=Ge.length;let Nt=1;for(let tn=0;tn126)throw new Error(`Invalid prefix (${Ge})`);Nt=Yt(Nt)^pn>>5}Nt=Yt(Nt);for(let tn=0;tnYn)throw new TypeError(`Wrong string length: ${an.length} (${an}). Expected (8..${Yn})`);const Sn=an.toLowerCase();if(an!==Sn&&an!==an.toUpperCase())throw new Error("String must be lowercase or uppercase");const Xt=(an=Sn).lastIndexOf("1");if(0===Xt||-1===Xt)throw new Error('Letter "1" must be present between prefix and data only');const Mt=an.slice(0,Xt),Gt=an.slice(Xt+1);if(Gt.length<6)throw new Error("Data must be at least 6 characters long");const Ot=_t.decode(Gt).slice(0,-6),Ie=un(Mt,Ot,pt);if(!Gt.endsWith(Ie))throw new Error(`Invalid checksum in ${an}: expected "${Ie}"`);return{prefix:Mt,words:Ot}}return{encode:function pn(an,Yn,Sn=90){if("string"!=typeof an)throw new Error("bech32.encode prefix should be string, not "+typeof an);if(!Array.isArray(Yn)||Yn.length&&"number"!=typeof Yn[0])throw new Error("bech32.encode words should be array of numbers, not "+typeof Yn);const Xt=an.length+7+Yn.length;if(!1!==Sn&&Xt>Sn)throw new TypeError(`Length ${Xt} exceeds limit ${Sn}`);return`${an=an.toLowerCase()}1${_t.encode(Yn)}${un(an,Yn,pt)}`},decode:Wn,decodeToBytes:function en(an){const{prefix:Yn,words:Sn}=Wn(an,!1);return{prefix:Yn,words:Sn,bytes:qe(Sn)}},decodeUnsafe:Z(Wn),fromWords:qe,fromWordsUnsafe:tn,toWords:Nt}}const $n=wn("bech32");wn("bech32m"),a(G(4),c("0123456789abcdef"),y(""),C(Ge=>{if("string"!=typeof Ge||Ge.length%2)throw new TypeError(`hex.decode: expected string, got ${typeof Ge} with length ${Ge.length}`);return Ge.toLowerCase()}))},2769:(o,s,r)=>{"use strict";r.d(s,{A:()=>y});var i=r(3121),a=r(9311);const y=(0,i.A)(a.A,"Map")},1238:(o,s,r)=>{"use strict";r.d(s,{A:()=>bt});var c=r(2486);const w=function y(mt,At){for(var Ln=mt.length;Ln--;)if((0,c.A)(mt[Ln][0],At))return Ln;return-1};var A=Array.prototype.splice;function _e(mt){var At=-1,Ln=null==mt?0:mt.length;for(this.clear();++At-1},_e.prototype.set=function te(mt,At){var Ln=this.__data__,Zt=w(Ln,mt);return Zt<0?(++this.size,Ln.push([mt,At])):Ln[Zt][1]=At,this};const pe=_e;var Ue=r(2769);const _t=(0,r(3121).A)(Object,"create");var Ze=Object.prototype.hasOwnProperty;var Ut=Object.prototype.hasOwnProperty;function se(mt){var At=-1,Ln=null==mt?0:mt.length;for(this.clear();++At{"use strict";r.d(s,{A:()=>c});const c=r(9311).A.Symbol},6259:(o,s,r)=>{"use strict";r.d(s,{A:()=>R});var c=r(1656),y=r(9007),w=r(5303),C=r(3467),A=r(766),T=Object.prototype.hasOwnProperty;const R=function k(G,Z){var te=(0,y.A)(G),be=!te&&(0,c.A)(G),_e=!te&&!be&&(0,w.A)(G),pe=!te&&!be&&!_e&&(0,A.A)(G),Te=te||be||_e||pe,Ce=Te?function i(G,Z){for(var te=-1,be=Array(G);++te{"use strict";r.d(s,{A:()=>C});var i=r(8758),a=r(2486),y=Object.prototype.hasOwnProperty;const C=function w(A,S,T){var k=A[S];(!y.call(A,S)||!(0,a.A)(k,T)||void 0===T&&!(S in A))&&(0,i.A)(A,S,T)}},8758:(o,s,r)=>{"use strict";r.d(s,{A:()=>c});var i=r(4133);const c=function a(y,w,C){"__proto__"==w&&i.A?(0,i.A)(y,w,{configurable:!0,enumerable:!0,value:C,writable:!0}):y[w]=C}},5688:(o,s,r)=>{"use strict";r.d(s,{A:()=>_e});var i=r(4883),a=Object.prototype,c=a.hasOwnProperty,y=a.toString,w=i.A?i.A.toStringTag:void 0;var T=Object.prototype.toString;var te=i.A?i.A.toStringTag:void 0;const _e=function be(pe){return null==pe?void 0===pe?"[object Undefined]":"[object Null]":te&&te in Object(pe)?function C(pe){var Te=c.call(pe,w),Ce=pe[w];try{pe[w]=void 0;var Ne=!0}catch{}var Se=y.call(pe);return Ne&&(Te?pe[w]=Ce:delete pe[w]),Se}(pe):function k(pe){return T.call(pe)}(pe)}},4975:(o,s,r)=>{"use strict";r.d(s,{A:()=>a});const a=function i(c){return function(y){return c(y)}}},3031:(o,s,r)=>{"use strict";r.d(s,{A:()=>w});const c=r(9311).A.Uint8Array,w=function y(C){var A=new C.constructor(C.byteLength);return new c(A).set(new c(C)),A}},4224:(o,s,r)=>{"use strict";r.d(s,{A:()=>S});var i=r(9311),a="object"==typeof exports&&exports&&!exports.nodeType&&exports,c=a&&"object"==typeof module&&module&&!module.nodeType&&module,w=c&&c.exports===a?i.A.Buffer:void 0,C=w?w.allocUnsafe:void 0;const S=function A(T,k){if(k)return T.slice();var R=T.length,G=C?C(R):new T.constructor(R);return T.copy(G),G}},7383:(o,s,r)=>{"use strict";r.d(s,{A:()=>c});var i=r(3031);const c=function a(y,w){var C=w?(0,i.A)(y.buffer):y.buffer;return new y.constructor(C,y.byteOffset,y.length)}},1369:(o,s,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(2065),a=r(8758);const y=function c(w,C,A,S){var T=!A;A||(A={});for(var k=-1,R=C.length;++k{"use strict";r.d(s,{A:()=>c});var i=r(3121);const c=function(){try{var y=(0,i.A)(Object,"defineProperty");return y({},"",{}),y}catch{}}()},8618:(o,s,r)=>{"use strict";r.d(s,{A:()=>a});const a="object"==typeof global&&global&&global.Object===Object&&global},3121:(o,s,r)=>{"use strict";r.d(s,{A:()=>xe});var ae,i=r(5656),c=r(9311).A["__core-js_shared__"],w=(ae=/[^.]+$/.exec(c&&c.keys&&c.keys.IE_PROTO||""))?"Symbol(src)_1."+ae:"";var S=r(7999),T=r(4435),R=/^\[object .+?Constructor\]$/,_e=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Te=function pe(ae){return!(!(0,S.A)(ae)||function C(ae){return!!w&&w in ae}(ae))&&((0,i.A)(ae)?_e:R).test((0,T.A)(ae))},xe=function Se(ae,le){var ke=function Ce(ae,le){return ae?.[le]}(ae,le);return Te(ke)?ke:void 0}},5749:(o,s,r)=>{"use strict";r.d(s,{A:()=>c});const c=(0,r(5717).A)(Object.getPrototypeOf,Object)},223:(o,s,r)=>{"use strict";r.d(s,{A:()=>S});var i=r(7999),a=Object.create;const y=function(){function T(){}return function(k){if(!(0,i.A)(k))return{};if(a)return a(k);T.prototype=k;var R=new T;return T.prototype=void 0,R}}();var w=r(5749),C=r(1561);const S=function A(T){return"function"!=typeof T.constructor||(0,C.A)(T)?{}:y((0,w.A)(T))}},3467:(o,s,r)=>{"use strict";r.d(s,{A:()=>y});var a=/^(?:0|[1-9]\d*)$/;const y=function c(w,C){var A=typeof w;return!!(C=C??9007199254740991)&&("number"==A||"symbol"!=A&&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)}},8583:(o,s,r)=>{"use strict";r.d(s,{A:()=>A});var i=r(8618),a="object"==typeof exports&&exports&&!exports.nodeType&&exports,c=a&&"object"==typeof module&&module&&!module.nodeType&&module,w=c&&c.exports===a&&i.A.process;const A=function(){try{return c&&c.require&&c.require("util").types||w&&w.binding&&w.binding("util")}catch{}}()},5717:(o,s,r)=>{"use strict";r.d(s,{A:()=>a});const a=function i(c,y){return function(w){return c(y(w))}}},9311:(o,s,r)=>{"use strict";r.d(s,{A:()=>y});var i=r(8618),a="object"==typeof self&&self&&self.Object===Object&&self;const y=i.A||a||Function("return this")()},4435:(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""}},2486:(o,s,r)=>{"use strict";r.d(s,{A:()=>a});const a=function i(c,y){return c===y||c!=c&&y!=y}},6143:(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:()=>k});var i=r(5688),a=r(2312);const w=function y(R){return(0,a.A)(R)&&"[object Arguments]"==(0,i.A)(R)};var C=Object.prototype,A=C.hasOwnProperty,S=C.propertyIsEnumerable;const k=w(function(){return arguments}())?w:function(R){return(0,a.A)(R)&&A.call(R,"callee")&&!S.call(R,"callee")}},9007:(o,s,r)=>{"use strict";r.d(s,{A:()=>a});const a=Array.isArray},2808:(o,s,r)=>{"use strict";r.d(s,{A:()=>y});var i=r(5656),a=r(4184);const y=function c(w){return null!=w&&(0,a.A)(w.length)&&!(0,i.A)(w)}},5303:(o,s,r)=>{"use strict";r.d(s,{A:()=>k});var i=r(9311),y="object"==typeof exports&&exports&&!exports.nodeType&&exports,w=y&&"object"==typeof module&&module&&!module.nodeType&&module,A=w&&w.exports===y?i.A.Buffer:void 0;const k=(A?A.isBuffer:void 0)||function a(){return!1}},5656:(o,s,r)=>{"use strict";r.d(s,{A:()=>S});var i=r(5688),a=r(7999);const S=function A(T){if(!(0,a.A)(T))return!1;var k=(0,i.A)(T);return"[object Function]"==k||"[object GeneratorFunction]"==k||"[object AsyncFunction]"==k||"[object Proxy]"==k}},4184:(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}},7999:(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)}},2312:(o,s,r)=>{"use strict";r.d(s,{A:()=>a});const a=function i(c){return null!=c&&"object"==typeof c}},766:(o,s,r)=>{"use strict";r.d(s,{A:()=>En});var i=r(5688),a=r(4184),c=r(2312),ft={};ft["[object Float32Array]"]=ft["[object Float64Array]"]=ft["[object Int8Array]"]=ft["[object Int16Array]"]=ft["[object Int32Array]"]=ft["[object Uint8Array]"]=ft["[object Uint8ClampedArray]"]=ft["[object Uint16Array]"]=ft["[object Uint32Array]"]=!0,ft["[object Arguments]"]=ft["[object Array]"]=ft["[object ArrayBuffer]"]=ft["[object Boolean]"]=ft["[object DataView]"]=ft["[object Date]"]=ft["[object Error]"]=ft["[object Function]"]=ft["[object Map]"]=ft["[object Number]"]=ft["[object Object]"]=ft["[object RegExp]"]=ft["[object Set]"]=ft["[object String]"]=ft["[object WeakMap]"]=!1;var Yt=r(4975),un=r(8583),wn=un.A&&un.A.isTypedArray;const En=wn?(0,Yt.A)(wn):function _t(Ze){return(0,c.A)(Ze)&&(0,a.A)(Ze.length)&&!!ft[(0,i.A)(Ze)]}},3959:(o,s,r)=>{"use strict";r.d(s,{A:()=>G});var i=r(6259),a=r(7999),c=r(1561);var A=Object.prototype.hasOwnProperty;const T=function S(Z){if(!(0,a.A)(Z))return function y(Z){var te=[];if(null!=Z)for(var be in Object(Z))te.push(be);return te}(Z);var te=(0,c.A)(Z),be=[];for(var _e in Z)"constructor"==_e&&(te||!A.call(Z,_e))||be.push(_e);return be};var k=r(2808);const G=function R(Z){return(0,k.A)(Z)?(0,i.A)(Z,!0):T(Z)}},4819:(o,s,r)=>{"use strict";r.d(s,{A:()=>Ln});var i=r(1238),a=r(8758),c=r(2486);const w=function y(Zt,mn,In){(void 0!==In&&!(0,c.A)(Zt[mn],In)||void 0===In&&!(mn in Zt))&&(0,a.A)(Zt,mn,In)},T=function C(Zt){return function(mn,In,Bn){for(var Hn=-1,xr=Object(mn),ti=Bn(mn),Xr=ti.length;Xr--;){var vt=ti[Zt?Xr:++Hn];if(!1===In(xr[vt],vt,xr))break}return mn}}();var k=r(4224),R=r(7383),G=r(1369),Z=r(223),te=r(1656),be=r(9007),_e=r(2808),pe=r(2312);var Ne=r(5303),Se=r(5656),xe=r(7999),ae=r(5688),le=r(5749),ft=Function.prototype.toString,_t=Object.prototype.hasOwnProperty,ot=ft.call(Object);var wn=r(766);const En=function $n(Zt,mn){if(("constructor"!==mn||"function"!=typeof Zt[mn])&&"__proto__"!=mn)return Zt[mn]};var Ze=r(101),wt=r(3959);const Ke=function Ut(Zt,mn,In,Bn,Hn,xr,ti){var Xr=En(Zt,In),vt=En(mn,In),$t=ti.get(vt);if($t)w(Zt,In,$t);else{var Ee=xr?xr(Xr,vt,In+"",Zt,mn,ti):void 0,at=void 0===Ee;if(at){var Fe=(0,be.A)(vt),Rt=!Fe&&(0,Ne.A)(vt),dt=!Fe&&!Rt&&(0,wn.A)(vt);Ee=vt,Fe||Rt||dt?(0,be.A)(Xr)?Ee=Xr:function Te(Zt){return(0,pe.A)(Zt)&&(0,_e.A)(Zt)}(Xr)?Ee=(0,G.A)(Xr):Rt?(at=!1,Ee=(0,k.A)(vt,!0)):dt?(at=!1,Ee=(0,R.A)(vt,!0)):Ee=[]:function Yt(Zt){if(!(0,pe.A)(Zt)||"[object Object]"!=(0,ae.A)(Zt))return!1;var mn=(0,le.A)(Zt);if(null===mn)return!0;var In=_t.call(mn,"constructor")&&mn.constructor;return"function"==typeof In&&In instanceof In&&ft.call(In)==ot}(vt)||(0,te.A)(vt)?(Ee=Xr,(0,te.A)(Xr)?Ee=function ze(Zt){return(0,Ze.A)(Zt,(0,wt.A)(Zt))}(Xr):(!(0,xe.A)(Xr)||(0,Se.A)(Xr))&&(Ee=(0,Z.A)(vt))):at=!1}at&&(ti.set(vt,Ee),Hn(Ee,vt,Bn,xr,ti),ti.delete(vt)),w(Zt,In,Ee)}},Xe=function lt(Zt,mn,In,Bn,Hn){Zt!==mn&&T(mn,function(xr,ti){if(Hn||(Hn=new i.A),(0,xe.A)(xr))Ke(Zt,mn,ti,In,lt,Bn,Hn);else{var Xr=Bn?Bn(En(Zt,ti),xr,ti+"",Zt,mn,Hn):void 0;void 0===Xr&&(Xr=xr),w(Zt,ti,Xr)}},wt.A)},pt=function Ge(Zt){return Zt};var Nt=Math.max;const Pt=function Wn(Zt){return function(){return Zt}};var en=r(4133),Mt=Date.now;const Me=function Gt(Zt){var mn=0,In=0;return function(){var Bn=Mt(),Hn=16-(Bn-In);if(In=Bn,Hn>0){if(++mn>=800)return arguments[0]}else mn=0;return Zt.apply(void 0,arguments)}}(en.A?function(Zt,mn){return(0,en.A)(Zt,"toString",{configurable:!0,enumerable:!1,value:Pt(mn),writable:!0})}:pt),W=function nt(Zt,mn){return Me(function tn(Zt,mn,In){return mn=Nt(void 0===mn?Zt.length-1:mn,0),function(){for(var Bn=arguments,Hn=-1,xr=Nt(Bn.length-mn,0),ti=Array(xr);++Hn1?In[Hn-1]:void 0,ti=Hn>2?In[2]:void 0;for(xr=Zt.length>3&&"function"==typeof xr?(Hn--,xr):void 0,ti&&function V(Zt,mn,In){if(!(0,xe.A)(In))return!1;var Bn=typeof mn;return!!("number"==Bn?(0,_e.A)(In)&&(0,L.A)(mn,In.length):"string"==Bn&&mn in In)&&(0,c.A)(In[mn],Zt)}(In[0],In[1],ti)&&(xr=Hn<3?void 0:xr,Hn=1),mn=Object(mn);++Bn{"use strict";__webpack_require__.d(__webpack_exports__,{Ts:()=>init,ql:()=>launch});var _home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3014),_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_awaitAsyncGenerator_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5137),_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_wrapAsyncGenerator_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(9129),BUILD={allRenderFn:!1,cmpDidLoad:!0,cmpDidUnload:!1,cmpDidUpdate:!0,cmpDidRender:!0,cmpWillLoad:!0,cmpWillUpdate:!0,cmpWillRender:!0,connectedCallback:!0,disconnectedCallback:!0,element:!0,event:!0,hasRenderFn:!0,lifecycle:!0,hostListener:!0,hostListenerTargetWindow:!0,hostListenerTargetDocument:!0,hostListenerTargetBody:!0,hostListenerTargetParent:!1,hostListenerTarget:!0,member:!0,method:!0,mode:!0,observeAttribute:!0,prop:!0,propMutable:!0,reflect:!0,scoped:!0,shadowDom:!0,slot:!0,cssAnnotations:!0,state:!0,style:!0,formAssociated:!1,svg:!0,updatable:!0,vdomAttribute:!0,vdomXlink:!0,vdomClass:!0,vdomFunctional:!0,vdomKey:!0,vdomListener:!0,vdomRef:!0,vdomPropOrAttr:!0,vdomRender:!0,vdomStyle:!0,vdomText:!0,watchCallback:!0,taskQueue:!0,hotModuleReplacement:!1,isDebug:!1,isDev:!1,isTesting:!1,hydrateServerSide:!1,hydrateClientSide:!1,lifecycleDOMEvents:!1,lazyLoad:!1,profile:!1,slotRelocation:!0,appendChildSlotFix:!1,cloneNodeFix:!1,hydratedAttribute:!1,hydratedClass:!0,scriptDataOpts:!1,scopedSlotTextContentFix:!1,shadowDomShim:!1,slotChildNodesFix:!1,invisiblePrehydration:!0,propBoolean:!0,propNumber:!0,propString:!0,constructableCSS:!0,cmpShouldUpdate:!0,devTools:!1,shadowDelegatesFocus:!0,initializeNextTick:!1,asyncLoading:!1,asyncQueue:!1,transformTagName:!1,attachStyles:!0,experimentalSlotFixes:!1},__defProp$1=Object.defineProperty,__export$1=(o,s)=>{for(var 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=[],A=T=>{for(let k=0;kT[k]).join(" "))}}if("function"==typeof o)return o(null===s?{}:s,C,vdomFnUtils);const S=newVNode(o,null);return S.$attrs$=s,C.length>0&&(S.$children$=C),S.$key$=a,S.$name$=c,S},newVNode=(o,s)=>({$flags$:0,$tag$:o,$text$:s,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null}),Host={},isHost=o=>o&&o.$tag$===Host,vdomFnUtils={forEach:(o,s)=>o.map(convertToPublic).forEach(s),map:(o,s)=>o.map(convertToPublic).map(s).map(convertToPrivate)},convertToPublic=o=>({vattrs:o.$attrs$,vchildren:o.$children$,vkey:o.$key$,vname:o.$name$,vtag:o.$tag$,vtext:o.$text$}),convertToPrivate=o=>{if("function"==typeof o.vtag){const 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,A=parseClassList(r),S=parseClassList(i);C.remove(...A.filter(T=>T&&!S.includes(T))),C.add(...S.filter(T=>T&&!A.includes(T)))}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 A=!1;w!==(w=w.replace(/^xlink\:?/,""))&&(s=w,A=!0),null==i||!1===i?!1===i&&""!==o.getAttribute(s)||(A?o.removeAttributeNS(XLINK_NS,s):o.removeAttribute(s)):(!y||4&c||a)&&!C&&(i=!0===i?"":i,A?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,A=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(A=0;A{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,A=0,S=0,T=s.length-1,k=s[0],R=s[T],G=i.length-1,Z=i[0],te=i[G];for(;w<=T&&C<=G;)if(null==k)k=s[++w];else if(null==R)R=s[--T];else if(null==Z)Z=i[++C];else if(null==te)te=i[--G];else if(isSameVnode(k,Z,a))patch(k,Z,a),k=s[++w],Z=i[++C];else if(isSameVnode(R,te,a))patch(R,te,a),R=s[--T],te=i[--G];else if(isSameVnode(k,te,a))"slot"!==k.$tag$&&"slot"!==te.$tag$||putBackInOriginalLocation(k.$elm$.parentNode,!1),patch(k,te,a),insertBefore(o,k.$elm$,R.$elm$.nextSibling),k=s[++w],te=i[--G];else if(isSameVnode(R,Z,a))"slot"!==k.$tag$&&"slot"!==te.$tag$||putBackInOriginalLocation(R.$elm$.parentNode,!1),patch(R,Z,a),insertBefore(o,R.$elm$,k.$elm$),R=s[--T],Z=i[++C];else{for(A=-1,S=w;S<=T;++S)if(s[S]&&null!==s[S].$key$&&s[S].$key$===Z.$key$){A=S;break}A>=0?(y=s[A],y.$tag$!==Z.$tag$?c=createElm(s&&s[C],r,A,o):(patch(y,Z,a),s[A]=void 0,c=y.$elm$),Z=i[++C]):(c=createElm(s&&s[C],r,C,o),Z=i[++C]),c&&insertBefore(parentReferenceNode(k.$elm$),c,referenceNode(k.$elm$))}w>T?addVnodes(o,null==i[G+1]?null:i[G+1].$elm$,r,i,C,G):C>G&&removeVnodes(s,w,T)},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$,A=o.$cmpMeta$,S=o.$vnode$||newVNode(null,null),T=isHost(s)?s:h(null,null,s);if(hostTagName=C.tagName,A.$attrsToReflect$&&(T.$attrs$=T.$attrs$||{},A.$attrsToReflect$.map(([k,R])=>T.$attrs$[R]=C[k])),r&&T.$attrs$)for(const k of Object.keys(T.$attrs$))C.hasAttribute(k)&&!["key","ref","style","class"].includes(k)&&(T.$attrs$[k]=C[k]);if(T.$tag$=null,T.$flags$|=4,o.$vnode$=T,T.$elm$=S.$elm$=C.shadowRoot||C,scopeId=C["s-sc"],useNativeShadowDom=!!(1&A.$flags$),contentRef=C["s-cr"],checkSlotFallbackVisibility=!1,patch(S,T,r),plt.$flags$|=1,checkSlotRelocate){markSlotContentForRelocation(T.$elm$);for(const k of relocateNodes){const R=k.$nodeToRelocate$;if(!R["s-ol"]){const G=doc.createTextNode("");G["s-nr"]=R,insertBefore(R.parentNode,R["s-ol"]=G,R)}}for(const k of relocateNodes){const R=k.$nodeToRelocate$,G=k.$slotRefNode$;if(G){const Z=G.parentNode;let te=G.nextSibling;{let be=null==(i=R["s-ol"])?void 0:i.previousSibling;for(;be;){let _e=null!=(a=be["s-nr"])?a:null;if(_e&&_e["s-sn"]===R["s-sn"]&&Z===_e.parentNode){for(_e=_e.nextSibling;_e===R||_e?.["s-sr"];)_e=_e?.nextSibling;if(!_e||!_e["s-nr"]){te=_e;break}}be=be.previousSibling}}(!te&&Z!==R.parentNode||R.nextSibling!==te)&&R!==te&&(!R["s-hn"]&&R["s-ol"]&&(R["s-hn"]=R["s-ol"].parentNode.nodeName),insertBefore(Z,R,te),1===R.nodeType&&(R.hidden=null!=(c=R["s-ih"])&&c)),R&&"function"==typeof G["s-rf"]&&G["s-rf"](R)}else 1===R.nodeType&&(r&&(R["s-ih"]=null!=(y=R.hidden)&&y),R.hidden=!0)}}if(checkSlotFallbackVisibility&&updateFallbackSlotVisibility(T.$elm$),plt.$flags$&=-2,relocateNodes.length=0,BUILD.experimentalScopedSlotChanges&&2&A.$flags$)for(const k of T.$elm$.childNodes)k["s-hn"]===hostTagName||k["s-sh"]||(r&&null==k["s-ih"]&&(k["s-ih"]=null!=(w=k.hidden)&&w),k.hidden=!0);contentRef=void 0},attachToAncestor=(o,s)=>{},scheduleUpdate=(o,s)=>(o.$flags$|=16,attachToAncestor(o,o.$ancestorComponent$),writeTask(()=>dispatchHooks(o,s))),dispatchHooks=(o,s)=>{const 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_angular_builders_custom_webpack_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 A=Number.isNaN(y)&&Number.isNaN(r);if(r!==y&&!A){if(a.$instanceValues$.set(s,r),i.$watchers$&&128&w){const S=i.$watchers$[s];S&&S.map(T=>{try{C[T](r,y,s)}catch(k){consoleError(k,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(A){setValue(this,w,A,s)},configurable:!0,enumerable:!0})});{const w=new Map;c.attributeChangedCallback=function(C,A,S){plt.jmp(()=>{var T;const k=w.get(C);if(this.hasOwnProperty(k))S=this[k],delete this[k];else{if(c.hasOwnProperty(k)&&"number"==typeof this[k]&&this[k]==S)return;if(null==k){const R=getHostRef(this),G=R?.$flags$;if(G&&!(8&G)&&128&G&&S!==A){const Z=this,te=null==(T=s.$watchers$)?void 0:T[C];te?.forEach(be=>{null!=Z[be]&&Z[be].call(Z,S,A,C)})}return}}this[k]=(null!==S||"boolean"!=typeof this[k])&&S})},o.observedAttributes=Array.from(new Set([...Object.keys(null!=(a=s.$watchers$)?a:{}),...y.filter(([C,A])=>15&A[0]).map(([C,A])=>{var S;const T=A[1]||C;return w.set(T,C),512&A[0]&&(null==(S=s.$attrsToReflect$)||S.push([C,T])),T})]))}}return o},initializeComponent=function(){var o=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(s,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_angular_builders_custom_webpack_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),A=hostListenerOpts(a);plt.ael(w,c,C,A),(s.$rmListeners$=s.$rmListeners$||[]).push(()=>plt.rel(w,c,C,A))})},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(T=>T())},y=S=>(a.get.forEach(T=>T(S)),i.get(S)),w=(S,T)=>{const k=i.get(S);s(T,k,S)&&(i.set(S,T),a.set.forEach(R=>R(S,T,k)))},C=typeof Proxy>"u"?{}:new Proxy(r,{get:(S,T)=>y(T),ownKeys:S=>Array.from(i.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(S,T)=>i.has(T),set:(S,T,k)=>(w(T,k),!0)}),A=(S,T)=>(a[S].push(T),()=>{removeFromArray(a[S],T)});return{state:C,get:y,set:w,on:A,onChange:(S,T)=>{const k=A("set",(G,Z)=>{G===S&&T(Z)}),R=A("reset",()=>T(unwrap(o)[S]));return()=>{k(),R()}},use:(...S)=>{const T=S.reduce((k,R)=>(R.set&&k.push(A("set",R.set)),R.get&&k.push(A("get",R.get)),R.reset&&k.push(A("reset",R.reset)),R.dispose&&k.push(A("dispose",R.dispose)),k),[]);return()=>T.forEach(k=>k())},dispose:()=>{a.dispose.forEach(S=>S()),c()},reset:c,forceUpdate:S=>{const T=i.get(S);a.set.forEach(k=>k(S,T,T))}}},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}}.sr-only{clip:rect(0,0,0,0);border-width:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.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}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.h-0{height:0}.h-12{height:48px}.h-4{height:16px}.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-4{width:16px}.w-5{width:20px}.w-52{width:208px}.w-6{width:24px}.w-7{width:28px}.w-8{width:32px}.w-\\[48px\\]{width:48px}.w-full{width:100%}.min-w-40{min-width:160px}.max-w-40{max-width:160px}.flex-shrink-0{flex-shrink:0}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.place-items-center{place-items:center}.items-center{align-items:center}.justify-center{justify-content:center}.gap-x-2{column-gap:8px}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-nowrap{text-wrap:nowrap}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.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}.px-3{padding-left:12px;padding-right:12px}.py-2\\.5{padding-bottom:10px;padding-top:10px}.pl-\\[11px\\]{padding-left:11px}.text-center{text-align:center}.text-sm{font-size:14px;line-height:20px}.text-xs{font-size:12px;line-height:16px}.font-bold{font-weight:700}.font-medium{font-weight:500}.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}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:opacity-50:disabled{opacity:.5}.dark\\:text-gray-300:is(.dark *){--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity))}.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))}.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))}.text-green-800{--tw-text-opacity:1;color:rgb(22 101 52/var(--tw-text-opacity))}.dark\\:text-green-200:is(.dark *){--tw-text-opacity:1;color:rgb(187 247 208/var(--tw-text-opacity))}.mb-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}.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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){o.nlExportKeys.emit(),o.isCopy=!0,setTimeout(()=>{o.isCopy=!1},1500)})()}render(){if(!this.isContinued&&!this.isKeyBackup)return h("div",{class:"p-4 overflow-y-auto"},h("h1",{class:"nl-title font-bold text-center text-2xl"},this.titleInfo),h("p",{class:"nl-description font-light text-sm pt-2 pb-2 max-w-96 mx-auto"},"Nostr profiles are controlled by cryptographic keys.",h("br",null),h("br",null),"Your keys are currently only stored in this browser tab, and may be lost if you close it.",h("br",null),h("br",null),"You should backup your keys.",h("br",null),h("br",null),"We recommend to import your keys into a key store service, to protect them and to use with other apps."),h("div",{class:"ml-auto mr-auto mb-2 w-72"},h("button-base",{onClick:()=>this.handleContinue(),titleBtn:"Import to key store"})),h("div",{class:"ml-auto mr-auto w-72"},h("button-base",{onClick:()=>this.handleContinueKeyBackup(),titleBtn:"Export keys"})));if(this.isKeyBackup)return h("div",{class:"p-4 overflow-y-auto"},h("h1",{class:"nl-title font-bold text-center text-2xl"},"Key export"),h("p",{class:"nl-description font-light text-sm pt-2 pb-2 max-w-96 mx-auto"},"Copy your keys and store them in a safe place, like a password manager.",h("br",null),h("br",null),"You can sign into other Nostr apps by pasting your keys into them.",h("br",null),h("br",null),"Your keys must be kept secret, never share them with anyone."),h("div",{class:"max-w-72 mx-auto"},h("div",{class:"ml-auto mr-auto mb-2 w-72"},h("button-base",{onClick:()=>this.copyToClipboard(),titleBtn:this.isCopy?"Copied!":"Copy to clipboard"}))));const o=this.services.filter(s=>s.canImport).map(s=>({name:s.domain,value:s.domain}));return h(Fragment,null,h("div",{class:"p-4 overflow-y-auto"},h("h1",{class:"nl-title font-bold text-center text-2xl"},this.titleImport),h("p",{class:"nl-description font-light text-center text-sm pt-2 max-w-96 mx-auto"},"Your Nostr keys will be imported into the service you choose. You will manage your keys on their website.")),h("div",{class:"max-w-72 mx-auto mb-5"},h("div",{class:"mb-0.5"},h("nl-select",{onSelectDomain:s=>this.handleDomainSelect(s),selected:0,options:o})),h("p",{class:"nl-title font-light text-sm mb-2"},"Default provider is a fine choice to start with."),h("div",{class:"ps-4 pe-4 overflow-y-auto"},h("p",{class:"nl-error font-light text-center text-sm max-w-96 mx-auto"},state.error)),h("button-base",{disabled:state.isLoading,onClick:s=>this.handleCreateAccount(s),titleBtn:"Start importing"},state.isLoading?h("span",{slot:"icon-start",class:"animate-spin-loading inline-block w-4 h-4 border-[3px] border-current border-t-transparent text-slate-900 dark:text-gray-300 rounded-full",role:"status","aria-label":"loading"}):h("svg",{slot:"icon-start",style:{display:"none"},xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M18 7.5v3m0 0v3m0-3h3m-3 0h-3m-2.25-4.125a3.375 3.375 0 1 1-6.75 0 3.375 3.375 0 0 1 6.75 0ZM3 19.235v-.11a6.375 6.375 0 0 1 12.75 0v.109A12.318 12.318 0 0 1 9.374 21c-2.331 0-4.512-.645-6.374-1.766Z"})))))}static get style(){return NlImportFlowStyle0}},[0,"nl-import-flow",{titleInfo:[1025,"title-info"],titleImport:[1,"title-import"],services:[16],isContinued:[32],isKeyBackup:[32],isCopy:[32]}]);function defineCustomElement$l(){typeof customElements>"u"||["nl-import-flow","button-base","nl-select"].forEach(o=>{switch(o){case"nl-import-flow":customElements.get(o)||customElements.define(o,NlImportFlow$1);break;case"button-base":customElements.get(o)||defineCustomElement$q();break;case"nl-select":customElements.get(o)||defineCustomElement$m()}})}defineCustomElement$l();const nlInfoCss=baseCss,NlInfoStyle0=nlInfoCss,NlInfo=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost()}render(){return h("div",{key:"7463f42c27643903a9d6fb0160fbabe833679fcb",class:"p-4 overflow-y-auto"},h("svg",{key:"86c5f04f87b21553f3512d289425996b46eb6c57",class:"w-12 h-12 mx-auto mb-2",width:"225",height:"224",viewBox:"0 0 225 224",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h("rect",{key:"6be61e0b2ff3d3f13e617e9b1df073fbe3b5678b",width:"224.047",height:"224",rx:"64",fill:"#6951FA"}),h("path",{key:"0c0aff7d5143022fe857de141cdae31397c3c2f4",d:"M162.441 135.941V88.0593C170.359 85.1674 176 77.5348 176 68.6696C176 57.2919 166.708 48 155.33 48C143.953 48 134.661 57.2444 134.661 68.6696C134.661 77.5822 140.302 85.1674 148.219 88.0593V135.941C147.698 136.13 147.176 136.367 146.655 136.604L87.3956 77.3452C88.6282 74.6904 89.2919 71.7511 89.2919 68.6696C89.2919 57.2444 80.0474 48 68.6696 48C57.2919 48 48 57.2444 48 68.6696C48 77.5822 53.6415 85.1674 61.5585 88.0593V135.941C53.6415 138.833 48 146.465 48 155.33C48 166.708 57.2444 176 68.6696 176C80.0948 176 89.3393 166.708 89.3393 155.33C89.3393 146.418 83.6978 138.833 75.7807 135.941V88.0593C76.3022 87.8696 76.8237 87.6326 77.3452 87.3956L136.604 146.655C135.372 149.31 134.708 152.249 134.708 155.33C134.708 166.708 143.953 176 155.378 176C166.803 176 176.047 166.708 176.047 155.33C176.047 146.418 170.406 138.833 162.489 135.941H162.441Z",fill:"white"})),h("h1",{key:"3a89ee5051e2d74945347dec6055749cec126f27",class:"nl-title font-bold text-center text-4xl"},"Nostr ",h("span",{key:"96a49c22dffa4a30639f387a949d7695604c6a1f",class:"font-light"},"Login")),h("p",{key:"a6dded720da9db673173a1ff02bc5544e6a66d38",class:"text-green-800 dark:text-green-200 font-light text-center text-lg pt-2 max-w-96 mx-auto"},"Version: 1.6.13"),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,A=0,S=0,T=null,k=null;for(let R=0;R=5&&(C+=A-5+3),T=Z,A=1),Z=y.get(G,R),Z===k?S++:(S>=5&&(C+=S-5+3),k=Z,S=1)}A>=5&&(C+=A-5+3),S>=5&&(C+=S-5+3)}return C},o.getPenaltyN2=function(y){const w=y.size;let C=0;for(let A=0;A=10&&(1488===A||93===A)&&C++,S=S<<1&2047|y.get(k,T),k>=10&&(1488===S||93===S)&&C++}return 40*C},o.getPenaltyN4=function(y){let w=0;const C=y.data.length;for(let A=0;A=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(A,S){return a.getCharCountIndicator(A,S)+4}function C(A,S){let T=0;return A.forEach(function(k){const R=w(k.mode,S);T+=R+k.getBitsLength()}),T}o.from=function(A,S){return c.isValid(A)?parseInt(A,10):S},o.getCapacity=function(A,S,T){if(!c.isValid(A))throw new Error("Invalid QR Code version");void 0===T&&(T=a.BYTE);const k=8*(s.getSymbolTotalCodewords(A)-r.getTotalCodewordsCount(A,S));if(T===a.MIXED)return k;const R=k-w(T,A);switch(T){case a.NUMERIC:return Math.floor(R/10*3);case a.ALPHANUMERIC:return Math.floor(R/11*2);case a.KANJI:return Math.floor(R/13);default:return Math.floor(R/8)}},o.getBestVersionForData=function(A,S){let T;const k=i.from(S,i.M);if(Array.isArray(A)){if(A.length>1)return function(R,G){for(let Z=1;Z<=40;Z++)if(C(R,Z)<=o.getCapacity(Z,G,a.MIXED))return Z}(A,k);if(0===A.length)return 1;T=A[0]}else T=A;return function(R,G,Z){for(let te=1;te<=40;te++)if(G<=o.getCapacity(te,Z,R))return te}(T.mode,T.getLength(),k)},o.getEncodedBits=function(A){if(!c.isValid(A)||A<7)throw new Error("Invalid QR Code version");let S=A<<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,A,S,T,k,G=s.PriorityQueue.make();for(G.push(i,0);!G.empty();)for(A in C=(w=G.pop()).value,S=w.cost,T=r[C]||{})T.hasOwnProperty(A)&&(k=S+T[A],(void 0===y[A]||y[A]>k)&&(y[A]=k,G.push(A,k),c[A]=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 A(G){return unescape(encodeURIComponent(G)).length}function S(G,Z,te){const be=[];let _e;for(;null!==(_e=G.exec(te));)be.push({data:_e[0],index:_e.index,mode:Z,length:_e[0].length});return be}function T(G){const Z=S(y.NUMERIC,s.NUMERIC,G),te=S(y.ALPHANUMERIC,s.ALPHANUMERIC,G);let be,_e;return w.isKanjiModeEnabled()?(be=S(y.BYTE,s.BYTE,G),_e=S(y.KANJI,s.KANJI,G)):(be=S(y.BYTE_KANJI,s.BYTE,G),_e=[]),Z.concat(te,be,_e).sort(function(pe,Te){return pe.index-Te.index}).map(function(pe){return{data:pe.data,mode:pe.mode,length:pe.length}})}function k(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 R(G,Z){let te;const be=s.getBestModeForData(G);if(te=s.from(Z,be),te!==s.BYTE&&te.bit=0?Ce[Ce.length-1]:null;return Se&&Se.mode===Ne.mode?(Ce[Ce.length-1].data+=Ne.data,Ce):(Ce.push(Ne),Ce)},[]))},o.rawSplit=function(G){return o.fromArray(T(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 A=!1;y>>c&1)),o.set(a,w-C,A),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),A=a.margin*w,S=[a.color.light,a.color.dark];for(let T=0;T=A&&k>=A&&T0&&C>0&&o[w-1]||(i+=c?svgCmd("M",C+r,.5+A+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,A){try{const S=QRCode.create(r,i);C(o(S,s,i))}catch(S){A(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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(o.connectionString&&o.canvasElement)try{yield browser$1.toCanvas(o.canvasElement,o.connectionString)}catch(s){console.error("Error generating QR Code:",s)}})()}copyToClipboard(){var o=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){try{yield navigator.clipboard.writeText(o.connectionString),o.isCopy=!0,setTimeout(()=>{o.isCopy=!1},1500)}catch(s){console.error("Failed to copy connectionString: ",s)}})()}render(){return h(Fragment,{key:"4dfdad6e2e948203e0dfe7aa8608d95cd3495c41"},h("div",{key:"852159a0231473f13c6452e307b90f02e7efd445",class:"p-4 overflow-y-auto"},h("h1",{key:"07859d4b83c5fb6ac12732f1708db3ba3b700380",class:"nl-title font-bold text-center text-2xl"},this.titleLogin),h("p",{key:"200d00f3785f4a684c798225f0061d9ef4ed2fa1",class:"nl-description font-light text-center text-sm pt-2 max-w-96 mx-auto"},this.description)),h("canvas",{key:"e27335a378a7853fd73cdf0b701a9922f9e87a98",class:"mx-auto mb-2",ref:o=>this.canvasElement=o}),h("div",{key:"5e93edcf3b13f1d02b6feca2a192ef275891032a",class:"px-4"},h("div",{key:"96643d192fc3e3c652027fc7b9da2c8186205b1f",class:"max-w-72 mx-auto"},h("div",{key:"24faf8ea390198fc185f94d77d0ac3faa3c03e9f",class:"relative mb-2"},h("input",{key:"45f531795476a136897925509955fa9fdaf66503",type:"text",class:"nl-input peer py-3 px-4 pe-11 ps-11 block w-full border-transparent rounded-lg text-sm disabled:opacity-50 disabled:pointer-events-none dark:border-transparent",placeholder:"npub or name@domain",value:this.connectionString,disabled:!0}),h("div",{key:"3f3bb777777890fb68152c94d16cd83abde57cac",class:"absolute inset-y-0 start-0 flex items-center pointer-events-none ps-4 peer-disabled:opacity-50 peer-disabled:pointer-events-none"},h("svg",{key:"c99e6d36b5f3e85a03b2922a3984803601ce4747",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"flex-shrink-0 w-4 h-4 text-gray-500"},h("path",{key:"1d72c6d727215e897c88b923f1eb65a83bc9eda9","stroke-linecap":"round","stroke-linejoin":"round",d:"M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z"}),h("path",{key:"5c40e5fd22377e528bdc3fe77db8975dfe015286","stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))),this.isCopy?h("div",{class:"absolute inset-y-0 end-0 flex items-center p-2 rounded-lg"},h("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"#00cc00",class:"flex-shrink-0 w-4 h-4 text-gray-500"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))):h("div",{class:"absolute inset-y-0 end-0 flex items-center cursor-pointer p-2 rounded-lg",onClick:()=>this.copyToClipboard()},h("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"flex-shrink-0 w-4 h-4 text-gray-500"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M16.5 8.25V6a2.25 2.25 0 0 0-2.25-2.25H6A2.25 2.25 0 0 0 3.75 6v8.25A2.25 2.25 0 0 0 6 16.5h2.25m8.25-8.25H18a2.25 2.25 0 0 1 2.25 2.25V18A2.25 2.25 0 0 1 18 20.25h-7.5A2.25 2.25 0 0 1 8.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 0 0-2.25 2.25v6"})))),h("div",{key:"26403008de1debe9660fbacda25b6c5eb1ce81c8",class:"mt-10 justify-center items-center flex gap-2"},h("span",{key:"2cc09432eb515db009f4ca5909b8ba943c90bbd6",slot:"icon-start",class:"animate-spin-loading inline-block w-[20px] h-[20px] border-[2px] border-current border-t-transparent text-slate-900 dark:text-gray-300 rounded-full",role:"status","aria-label":"loading"}),h("span",{key:"b2d8a70b65950ec00d9544c4ba50a51bffc48335",class:"nl-footer"},"Waiting for connection")))))}static get style(){return NlSigninConnectionStringStyle0}},[0,"nl-signin-connection-string",{titleLogin:[1,"title-login"],description:[1],connectionString:[1,"connection-string"],isCopy:[32]}]);function defineCustomElement$b(){typeof customElements>"u"||["nl-signin-connection-string"].forEach(o=>{"nl-signin-connection-string"===o&&(customElements.get(o)||customElements.define(o,NlSigninConnectionString))})}defineCustomElement$b();const nlSigninOtpCss=baseCss,NlSigninOtpStyle0=nlSigninOtpCss,NlSigninOtp=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.nlLoginOTPUser=createEvent(this,"nlLoginOTPUser",7),this.nlLoginOTPCode=createEvent(this,"nlLoginOTPCode",7),this.nlCheckLogin=createEvent(this,"nlCheckLogin",7),this.titleLogin="Log in with DM",this.description="Please enter your user name or npub, and we will send you a direct message with a one-time code.",this.titleLoginOTP="Enter the code",this.descriptionOTP="Please enter the one-time code we sent to you as a direct message on Nostr.",this.isGood=!1}handleInputChange(o){state.isOTP?state.nlSigninOTP.code=o.target.value:(state.nlSigninOTP.loginName=o.target.value,this.nlCheckLogin.emit(state.nlSigninOTP.loginName))}handleLogin(o){o.preventDefault(),state.isOTP?this.nlLoginOTPCode.emit(state.nlSigninOTP.code):this.nlLoginOTPUser.emit(state.nlSigninOTP.loginName)}render(){return h(Fragment,{key:"a93b9af1f6a2a881d75e9aa1e547a63678ad4dc5"},h("div",{key:"ae6c700a09e753e0148b5ddfd27f20c2a0850d3d",class:"p-4 overflow-y-auto"},h("h1",{key:"e0998107834bf9e90b6372580ccb31bb0d726904",class:"nl-title font-bold text-center text-2xl"},state.isOTP?this.titleLoginOTP:this.titleLogin),h("p",{key:"29e894bbfcdfb326ae807055c57fbb32b1b4bfa9",class:"nl-description font-light text-center text-sm pt-2 max-w-96 mx-auto"},state.isOTP?this.descriptionOTP:this.description)),h("div",{key:"911cee576416be96c64d38fc362cdb656293e198",class:"max-w-72 mx-auto"},h("div",{key:"f72d607dd7beb554c248c7c4128de6d33a8f246f",class:"relative mb-2"},h("input",{key:"24e6a78d257e84d4f5c71b4aee31c453a504cd93",onInput:o=>this.handleInputChange(o),type:"text",class:"nl-input peer py-3 px-4 ps-11 block w-full border-transparent rounded-lg text-sm disabled:opacity-50 disabled:pointer-events-none dark:border-transparent",placeholder:state.isOTP?"code from direct message":"npub or name@domain",value:state.isOTP?state.nlSigninOTP.code:state.nlSigninOTP.loginName}),h("div",{key:"438171f72c2c64d1754a2d5fda95a7b5d3816894",class:"absolute inset-y-0 start-0 flex items-center pointer-events-none ps-4 peer-disabled:opacity-50 peer-disabled:pointer-events-none"},h("svg",{key:"b31663307181bb1d58884a3ecce192728b164b70",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:this.isGood?"#00cc00":"currentColor",class:"flex-shrink-0 w-4 h-4 text-gray-500"},h("path",{key:"8b80421658eea7b0b49708c994a9d94b965895f1","stroke-linecap":"round","stroke-linejoin":"round",d:"M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z"}),h("path",{key:"6d184bdf20d124a312e1817e27111de1fd0b8eb1","stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})))),h("div",{key:"ab8948cbd67e068fc2f113fcc5e61137d799e636",class:"ps-4 pe-4 overflow-y-auto"},h("p",{key:"719399b9f40ae23ba11ae22e4223314c815c821f",class:"nl-error font-light text-center text-sm max-w-96 mx-auto"},state.error)),h("button-base",{key:"b2ce8bbaceeddc82ea079dba280dc04600d7f725",titleBtn:"Log in",disabled:state.isLoading,onClick:o=>this.handleLogin(o)},state.isLoading&&h("span",{key:"7764fb6ecf8452c06047dc7832e274ebccdd6379",slot:"icon-start",class:"animate-spin-loading inline-block w-4 h-4 border-[3px] border-current border-t-transparent text-slate-900 dark:text-gray-300 rounded-full",role:"status","aria-label":"loading"}))))}static get style(){return NlSigninOtpStyle0}},[0,"nl-signin-otp",{titleLogin:[1,"title-login"],description:[1],titleLoginOTP:[1,"title-login-o-t-p"],descriptionOTP:[1,"description-o-t-p"],isGood:[32]}]);function defineCustomElement$a(){typeof customElements>"u"||["nl-signin-otp","button-base"].forEach(o=>{switch(o){case"nl-signin-otp":customElements.get(o)||customElements.define(o,NlSigninOtp);break;case"button-base":customElements.get(o)||defineCustomElement$q()}})}defineCustomElement$a();const nlSigninReadOnlyCss=baseCss,NlSigninReadOnlyStyle0=nlSigninReadOnlyCss,NlSigninReadOnly=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.nlLoginReadOnly=createEvent(this,"nlLoginReadOnly",7),this.nlCheckLogin=createEvent(this,"nlCheckLogin",7),this.titleLogin="Log in to read only",this.description="Please enter the user name or npub of any Nostr user.",this.isGood=!1}handleInputChange(o){state.nlSigninReadOnly.loginName=o.target.value,this.nlCheckLogin.emit(o.target.value)}handleLogin(o){o.preventDefault(),this.nlLoginReadOnly.emit(state.nlSigninReadOnly.loginName)}render(){return h(Fragment,{key:"5ff970ee20c505cab00b3c9263dd9a6ebd6b62a8"},h("div",{key:"036a6b49de93c20ed4af3c47c7ecc10c81818f86",class:"p-4 overflow-y-auto"},h("h1",{key:"97951254c835d38f95832882225fdc2b50bf578a",class:"nl-title font-bold text-center text-2xl"},this.titleLogin),h("p",{key:"e811a52ee24540b018f95ebffd1406330005a5f2",class:"nl-description font-light text-center text-sm pt-2 max-w-96 mx-auto"},this.description)),h("div",{key:"ae07b4fbe663e17733b6bd1efaa1c974276c8fd6",class:"max-w-72 mx-auto"},h("div",{key:"0a935603a2742e049bd5b2ca3c1b13f07d63ac2b",class:"relative mb-2"},h("input",{key:"1221b6501de2c739fc1470f82142b623afe4749b",onInput:o=>this.handleInputChange(o),type:"text",class:"nl-input peer py-3 px-4 ps-11 block w-full border-transparent rounded-lg text-sm disabled:opacity-50 disabled:pointer-events-none dark:border-transparent",placeholder:"npub or name@domain",value:state.nlSigninReadOnly.loginName}),h("div",{key:"820f77d6c814aea1794463b6216df338c6f0863d",class:"absolute inset-y-0 start-0 flex items-center pointer-events-none ps-4 peer-disabled:opacity-50 peer-disabled:pointer-events-none"},h("svg",{key:"9922ba1b7b536ddc8d560d76087fd735e1aa000c",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:this.isGood?"#00cc00":"currentColor",class:"flex-shrink-0 w-4 h-4 text-gray-500"},h("path",{key:"250dae1273e5346920bb6d5cad3644c678a9eae8","stroke-linecap":"round","stroke-linejoin":"round",d:"M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z"}),h("path",{key:"e94192cf4f271cf3477ebe2f186597a5c5a7b474","stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})))),h("div",{key:"8d548af75b9c39dfe0bf2eeae805e58d2cb324c1",class:"ps-4 pe-4 overflow-y-auto"},h("p",{key:"7cc88f5116a24e1b309e320c63c34f5cc8c5b656",class:"nl-error font-light text-center text-sm max-w-96 mx-auto"},state.error)),h("button-base",{key:"156e8a30228a8d34009c5cb020588c82f039eac5",titleBtn:"Log in",disabled:state.isLoading,onClick:o=>this.handleLogin(o)},state.isLoading&&h("span",{key:"14082758440bf5ec897629c92faf949f80895be8",slot:"icon-start",class:"animate-spin-loading inline-block w-4 h-4 border-[3px] border-current border-t-transparent text-slate-900 dark:text-gray-300 rounded-full",role:"status","aria-label":"loading"}))))}static get style(){return NlSigninReadOnlyStyle0}},[0,"nl-signin-read-only",{titleLogin:[1,"title-login"],description:[1],isGood:[32]}]);function defineCustomElement$9(){typeof customElements>"u"||["nl-signin-read-only","button-base"].forEach(o=>{switch(o){case"nl-signin-read-only":customElements.get(o)||customElements.define(o,NlSigninReadOnly);break;case"button-base":customElements.get(o)||defineCustomElement$q()}})}defineCustomElement$9();const nlSignupCss=baseCss,NlSignupStyle0=nlSignupCss,NlSignup=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.nlSignup=createEvent(this,"nlSignup",7),this.nlCheckSignup=createEvent(this,"nlCheckSignup",7),this.fetchHandler=createEvent(this,"fetchHandler",7),this.titleSignup="Create keys with key store",this.description="Choose some username and a key store service.",this.bunkers="nsec.app,highlighter.com",this.isAvailable=!1}formatServers(o){return o.split(",").map(s=>({name:"@"+s,value:s}))}handleInputChange(o){state.nlSignup.signupName=o.target.value,this.nlCheckSignup.emit(`${o.target.value}@${state.nlSignup.domain}`)}handleDomainSelect(o){state.nlSignup.domain=o.detail,this.nlCheckSignup.emit(`${state.nlSignup.signupName}@${o.detail}`)}handleCreateAccount(o){o.preventDefault(),this.nlSignup.emit(`${state.nlSignup.signupName}@${state.nlSignup.domain}`)}watchBunkersHandler(o){state.nlSignup.servers=this.formatServers(o)}componentWillLoad(){state.nlSignup.servers=this.formatServers(this.bunkers)}render(){return h(Fragment,{key:"f7b56fee1ec9c6dd3632bed5d46c661b090a32cd"},h("div",{key:"a7fd1b6249688b0974a0c56a0573f36eb1f1d7a4",class:"p-4 overflow-y-auto"},h("h1",{key:"01d5a745026ea0a293fd248880f00d335355f5bf",class:"nl-title font-bold text-center text-2xl"},this.titleSignup),h("p",{key:"1fe9362df4c08bee7966a3d7f06aca0c8c9f9e38",class:"nl-description font-light text-center text-sm pt-2 max-w-96 mx-auto"},this.description)),h("div",{key:"15eadc1d7189a9a99efad1c42a430fb316d3ae1a",class:"max-w-72 mx-auto"},h("div",{key:"011c9eb5d2d16cd6b784f0d879fd4f504c522905",class:"relative mb-2"},h("input",{key:"123e130805b229fe68c64765c434a36840cc137e",onInput:o=>this.handleInputChange(o),type:"text",class:"nl-input peer py-3 px-4 ps-11 block w-full border-transparent rounded-lg text-sm disabled:opacity-50 disabled:pointer-events-none dark:border-transparent",placeholder:"Name",value:state.nlSignup.signupName}),h("div",{key:"ee00cfd158acb362567e909a6f90d2651a4acd05",class:"absolute inset-y-0 start-0 flex items-center pointer-events-none ps-4 peer-disabled:opacity-50 peer-disabled:pointer-events-none"},h("svg",{key:"bc8a81c9a62cb215efb0cdff30980ee447371ec5",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:this.isAvailable?"#00cc00":"currentColor",class:"flex-shrink-0 w-4 h-4 text-gray-500"},h("path",{key:"fb78fc743ec535bb92d30e2b43927d499f6299ca","stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 6a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0ZM4.501 20.118a7.5 7.5 0 0 1 14.998 0A17.933 17.933 0 0 1 12 21.75c-2.676 0-5.216-.584-7.499-1.632Z"})))),h("div",{key:"f541cd6ed4d04a52afb093053c6fea85d0926ce1",class:"mb-2"},h("nl-select",{key:"dbce850d0c1d2e1cfdf4ce250978ce508abc173a",onSelectDomain:o=>this.handleDomainSelect(o),selected:0,options:state.nlSignup.servers})),h("div",{key:"a68612eabd83e3f7e61b533fd247f1768554b0c1",class:"ps-4 pe-4 overflow-y-auto"},h("p",{key:"25c8a89289071d5fca16b5e8918026c41afb3a77",class:"nl-error font-light text-center text-sm max-w-96 mx-auto"},state.error)),h("button-base",{key:"6cbf8ff97e9ebf1bd830e86337219ee386f978ea",disabled:state.isLoading,onClick:o=>this.handleCreateAccount(o),titleBtn:"Create profile"},state.isLoading?h("span",{slot:"icon-start",class:"animate-spin-loading inline-block w-4 h-4 border-[3px] border-current border-t-transparent text-slate-900 dark:text-gray-300 rounded-full",role:"status","aria-label":"loading"}):h("svg",{slot:"icon-start",style:{display:"none"},xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M18 7.5v3m0 0v3m0-3h3m-3 0h-3m-2.25-4.125a3.375 3.375 0 1 1-6.75 0 3.375 3.375 0 0 1 6.75 0ZM3 19.235v-.11a6.375 6.375 0 0 1 12.75 0v.109A12.318 12.318 0 0 1 9.374 21c-2.331 0-4.512-.645-6.374-1.766Z"})))))}static get watchers(){return{bunkers:["watchBunkersHandler"]}}static get style(){return NlSignupStyle0}},[0,"nl-signup",{titleSignup:[1,"title-signup"],description:[1],bunkers:[1],isAvailable:[32]},void 0,{bunkers:["watchBunkersHandler"]}]);function defineCustomElement$8(){typeof customElements>"u"||["nl-signup","button-base","nl-select"].forEach(o=>{switch(o){case"nl-signup":customElements.get(o)||customElements.define(o,NlSignup);break;case"button-base":customElements.get(o)||defineCustomElement$q();break;case"nl-select":customElements.get(o)||defineCustomElement$m()}})}defineCustomElement$8();const nlWelcomeCss=baseCss,NlWelcomeStyle0=nlWelcomeCss,NlWelcome=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.titleWelcome="Welcome to Nostr!",this.description="This website is part of the Nostr network. Log in with your Nostr profile or sign up to join."}handleChangeScreen(o){state.path=[...state.path,o]}render(){return h(Fragment,{key:"d3fb00029cb12cc8b00f26eaed6bd76e90402363"},h("div",{key:"e41a79654adb620ee433848c965fd872cdfcc58c",class:"p-4 overflow-y-auto"},h("h1",{key:"28e5c6ec6a4e4982a386daff93446db4efcd0737",class:"nl-title font-bold text-center text-4xl"},this.titleWelcome),h("p",{key:"d0afbc9587aafe4d93c547b34f5f55c268b42e48",class:"nl-description font-light text-center text-lg pt-2 max-w-96 mx-auto"},this.description)),h("div",{key:"d5570f014a56f326348b8077429c198b55b66683",class:"max-w-52 mx-auto pb-5"},h("div",{key:"3f4095a715c960544264eae1dc809c3bc68de2a8",class:"flex gap-3 flex-col mb-2"},h("button-base",{key:"a154d028e883fb9d9ea1823a5df0d2500bfdb726",titleBtn:"Log in",onClick:()=>this.handleChangeScreen(CURRENT_MODULE.WELCOME_LOGIN)},h("svg",{key:"2b256c1a23f88a3232e59fa3d56c344eae398690",style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{key:"bf629d871a100f59c2b465d50f58081290b4300a","stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 5.25a3 3 0 0 1 3 3m3 0a6 6 0 0 1-7.029 5.912c-.563-.097-1.159.026-1.563.43L10.5 17.25H8.25v2.25H6v2.25H2.25v-2.818c0-.597.237-1.17.659-1.591l6.499-6.499c.404-.404.527-1 .43-1.563A6 6 0 1 1 21.75 8.25Z"})))),h("button-base",{key:"6fdf8ff44483ec67cff96015ebc7d1832a676fa3",onClick:()=>this.handleChangeScreen(CURRENT_MODULE.WELCOME_SIGNUP),titleBtn:"Sign up"},h("svg",{key:"6714790ee5ccb91a6bda3424e515ea273f2163f9",style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{key:"e31e8d7667a33a8713387f8eb73252a4016b5de4","stroke-linecap":"round","stroke-linejoin":"round",d:"M18 7.5v3m0 0v3m0-3h3m-3 0h-3m-2.25-4.125a3.375 3.375 0 1 1-6.75 0 3.375 3.375 0 0 1 6.75 0ZM3 19.235v-.11a6.375 6.375 0 0 1 12.75 0v.109A12.318 12.318 0 0 1 9.374 21c-2.331 0-4.512-.645-6.374-1.766Z"})))))}static get style(){return NlWelcomeStyle0}},[0,"nl-welcome",{titleWelcome:[1,"title-welcome"],description:[1]}]);function defineCustomElement$7(){typeof customElements>"u"||["nl-welcome","button-base"].forEach(o=>{switch(o){case"nl-welcome":customElements.get(o)||customElements.define(o,NlWelcome);break;case"button-base":customElements.get(o)||defineCustomElement$q()}})}defineCustomElement$7();const nlWelcomeSigninCss=baseCss,NlWelcomeSigninStyle0=nlWelcomeSigninCss,NlWelcomeSignIn=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.nlLoginExtension=createEvent(this,"nlLoginExtension",7),this.titleWelcome="Log in",this.hasExtension=!1,this.authMethods=[],this.hasOTP=!1}handleChangeScreen(o){state.path=[...state.path,o],o===CURRENT_MODULE.EXTENSION&&this.nlLoginExtension.emit()}allowAuthMethod(o){return!this.authMethods.length||this.authMethods.includes(o)}renderSignInWithExtension(){return h("button-base",{onClick:()=>this.handleChangeScreen(CURRENT_MODULE.EXTENSION),titleBtn:"With extension"},h("svg",{style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 8.25V18a2.25 2.25 0 0 0 2.25 2.25h13.5A2.25 2.25 0 0 0 21 18V8.25m-18 0V6a2.25 2.25 0 0 1 2.25-2.25h13.5A2.25 2.25 0 0 1 21 6v2.25m-18 0h18M5.25 6h.008v.008H5.25V6ZM7.5 6h.008v.008H7.5V6Zm2.25 0h.008v.008H9.75V6Z"})))}render(){return h(Fragment,{key:"49598c3d31f3a4c2fc9d3579283163c43f19b6c7"},h("div",{key:"6b3c16634c1dc4be65c425edb65f5070990fee91",class:"p-4 overflow-y-auto"},h("h1",{key:"1f60d1f489afaa42c47e28563fadc0fa7b46a3df",class:"nl-title font-bold text-center text-3xl"},this.titleWelcome)),h("div",{key:"01507d2b6d0bba54527e12d664ddefd7244a9697",class:"max-w-52 mx-auto pb-5"},h("div",{key:"82deccfff688e1cbb67191c90a3ca6f22f285744",class:"flex gap-3 flex-col"},this.allowAuthMethod("connect")&&h("button-base",{key:"177bbcf244409242ab1c7c03cfb60300e848fed2",titleBtn:"Connect",onClick:()=>this.handleChangeScreen(CURRENT_MODULE.CONNECT)},h("svg",{key:"1fa2c695562eb093430389253dd7f94733d63976",style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{key:"16323646bde098c55c787cc90b66b4952c803542","stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 9V5.25A2.25 2.25 0 0 1 10.5 3h6a2.25 2.25 0 0 1 2.25 2.25v13.5A2.25 2.25 0 0 1 16.5 21h-6a2.25 2.25 0 0 1-2.25-2.25V15M12 9l3 3m0 0-3 3m3-3H2.25"}))),this.allowAuthMethod("readOnly")&&h("button-base",{key:"9b6d546d7f34ca197baa13ec0f280890ff0d8c7f",onClick:()=>this.handleChangeScreen(CURRENT_MODULE.LOGIN_READ_ONLY),titleBtn:"Read only"},h("svg",{key:"2ab8c1763d88e7c5678cafc3c15817d60a7bb6c0",style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{key:"faa5a61e8d35daf7fbb64fc5783c23b8881d8100","stroke-linecap":"round","stroke-linejoin":"round",d:"M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z"}),h("path",{key:"6083db853e798c9764b11ed4701dab048d4f30f2","stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))),this.hasOTP&&this.allowAuthMethod("otp")&&h("button-base",{key:"f45b1afed2d9b10a2d77eaa59b1aa168eabb191d",titleBtn:"One-time code",onClick:()=>this.handleChangeScreen(CURRENT_MODULE.LOGIN_OTP)},h("svg",{key:"84fbe5952fecd429f8074c65675d2111eb2d7fe8",style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{key:"83dc6eaa4e128065dfd7e97f0950cd00f0be6d54","stroke-linecap":"round","stroke-linejoin":"round",d:"M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))),this.hasExtension&&this.allowAuthMethod("extension")&&this.renderSignInWithExtension(),!this.allowAuthMethod("connect")&&!this.hasExtension&&h("p",{key:"f94e3302a807855f45855302482542e6f79f8ec8",class:"nl-description font-light text-center text-lg pt-2 max-w-96 mx-auto"},"No Nostr extension!"),!this.allowAuthMethod("connect")&&this.hasExtension&&!this.allowAuthMethod("extension")&&h("p",{key:"552762dfd2b9d24c7279c1f500ccd94500e35be1",class:"nl-description font-light text-center text-lg pt-2 max-w-96 mx-auto"},"Use advanced options."))))}static get style(){return NlWelcomeSigninStyle0}},[0,"nl-welcome-signin",{titleWelcome:[1,"title-welcome"],hasExtension:[4,"has-extension"],authMethods:[16],hasOTP:[4,"has-o-t-p"]}]);function defineCustomElement$6(){typeof customElements>"u"||["nl-welcome-signin","button-base"].forEach(o=>{switch(o){case"nl-welcome-signin":customElements.get(o)||customElements.define(o,NlWelcomeSignIn);break;case"button-base":customElements.get(o)||defineCustomElement$q()}})}defineCustomElement$6();const nlWelcomeSignupCss=baseCss,NlWelcomeSignupStyle0=nlWelcomeSignupCss,NlWelcomeSignUp=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.titleWelcome="Sign up",this.description="Nostr profiles are based on cryptographic keys. You can create keys right here, or with a key storage app."}handleChangeScreen(o){state.path=[...state.path,o]}render(){return h(Fragment,{key:"95a13ee24b5203b1f1fe9f355524abba9dc55dcb"},h("div",{key:"23209055b5ab42ed4e147f0d7e38ec320437f783",class:"p-4 overflow-y-auto"},h("h1",{key:"8f06a983aa9ca0caa01dd35d4907552696ffc996",class:"nl-title font-bold text-center text-3xl"},this.titleWelcome),h("p",{key:"14d88998c67951b047b79dd0d9358ae2b7a19895",class:"nl-description font-light text-center text-lg pt-2 max-w-96 mx-auto"},this.description)),h("div",{key:"62344241204e1c08e2d497b0bbc28b9aff3d7640",class:"max-w-52 mx-auto pb-5"},h("div",{key:"641c269ff23d94330acf465e62d294ce42b05212",class:"flex gap-3 flex-col"},h("button-base",{key:"aaa7f28f647f05506e93756df2895cef952b2912",onClick:()=>this.handleChangeScreen(CURRENT_MODULE.LOCAL_SIGNUP),titleBtn:"Create keys"},h("svg",{key:"2e8c77cdd122a51638f9a2e606d9ff33581b84c7",style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{key:"b6d0e6199dcc11a7ac9f4ba47c86219e325fa987","stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 5.25a3 3 0 0 1 3 3m3 0a6 6 0 0 1-7.029 5.912c-.563-.097-1.159.026-1.563.43L10.5 17.25H8.25v2.25H6v2.25H2.25v-2.818c0-.597.237-1.17.659-1.591l6.499-6.499c.404-.404.527-1 .43-1.563A6 6 0 1 1 21.75 8.25Z"}))),h("button-base",{key:"3c239d1df872ac71424478fd3f6857c5a9148ef6",onClick:()=>this.handleChangeScreen(CURRENT_MODULE.SIGNUP),titleBtn:"With key store"},h("svg",{key:"4600c4e8bb4e62d9a0303ae1abc464c6d6fc7899",style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{key:"c36bef296a15f3bb43c984ed083a8defeb530ab4","stroke-linecap":"round","stroke-linejoin":"round",d:"M20.25 6.375c0 2.278-3.694 4.125-8.25 4.125S3.75 8.653 3.75 6.375m16.5 0c0-2.278-3.694-4.125-8.25-4.125S3.75 4.097 3.75 6.375m16.5 0v11.25c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125V6.375m16.5 0v3.75m-16.5-3.75v3.75m16.5 0v3.75C20.25 16.153 16.556 18 12 18s-8.25-1.847-8.25-4.125v-3.75m16.5 0c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125"}))))))}static get style(){return NlWelcomeSignupStyle0}},[0,"nl-welcome-signup",{titleWelcome:[1,"title-welcome"],description:[1]}]);function defineCustomElement$5(){typeof customElements>"u"||["nl-welcome-signup","button-base"].forEach(o=>{switch(o){case"nl-welcome-signup":customElements.get(o)||customElements.define(o,NlWelcomeSignUp);break;case"button-base":customElements.get(o)||defineCustomElement$q()}})}defineCustomElement$5();const nlAuthCss=baseCss,NlAuthStyle0=nlAuthCss,NlAuth=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.nlCloseModal=createEvent(this,"nlCloseModal",7),this.nlChangeDarkMode=createEvent(this,"nlChangeDarkMode",7),this.theme="default",this.bunkers="",this.startScreen=CURRENT_MODULE.WELCOME,this.authMethods=[],this.hasExtension=!1,this.hasOTP=!1,this.isLoading=!1,this.isLoadingExtension=!1,this.isOTP=!1,this.authUrl="",this.iframeUrl="",this.error="",this.localSignup=!1,this.accounts=[],this.recents=[],this.darkMode=!1,this.welcomeTitle="",this.welcomeDescription="",this.connectionString="",this.connectionStringServices=[]}watchLocalSignupHandler(o){state.localSignup=o}watchLoadingHandler(o){state.isLoading=o}watchLoadingExtensionHandler(o){state.isLoadingExtension=o}watchOTPHandler(o){state.isOTP=o}watchAuthUrlHandler(o){state.authUrl=o}watchIframeUrlHandler(o){state.iframeUrl=o}watchErrorHandler(o){state.error=o}handleClose(){this.nlCloseModal.emit()}handleChangeDarkMode(){this.nlChangeDarkMode.emit(!this.darkMode)}componentWillLoad(){state.path=[this.startScreen],state.localSignup=this.localSignup,state.error="",state.iframeUrl="",state.authUrl="",state.isLoading=!1,state.isLoadingExtension=!1,state.isOTP=!1,console.log("path",state.path)}handleClickToBack(){state.path.pop(),state.path=[...state.path],state.isLoading=!1,state.isLoadingExtension=!1,state.authUrl="",state.isOTP=!1}switchSignSignUpStrategy(o){state.path=CURRENT_MODULE.LOCAL_SIGNUP!==o?[CURRENT_MODULE.WELCOME,o]:[CURRENT_MODULE.WELCOME,CURRENT_MODULE.WELCOME_SIGNUP,o]}render(){const o="w-full h-full fixed top-0 start-0 z-[80] overflow-x-hidden overflow-y-auto flex items-center "+(this.darkMode?"dark":""),s=state.path.at(-1),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}`},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,A=this.userInfo&&"local"===this.userInfo.authMethod,S=localStorage.getItem("backupKey"),T=h("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-full"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M17.982 18.725A7.488 7.488 0 0 0 12 15.75a7.488 7.488 0 0 0-5.982 2.975m11.963 0a9 9 0 1 0-11.963 0m11.963 0A8.966 8.966 0 0 1 12 21a8.966 8.966 0 0 1-5.982-2.275M15 9.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})),k=h(Fragment,null,h("div",{class:"block w-[48px] h-[46px] relative z-10"},h("div",{onClick:()=>this.handleOpen(),class:"flex w-52 h-[46px] items-center pl-[11px]"},h("span",{class:(this.isLoading?"w-5 h-5 border-[2px] mr-3.5 ml-[2px] opacity-1":"w-0 h-0 border-[0px] mr-0 opacity-0 ml-0")+" animate-spin transition-all duration-300 ease-in-out inline-block border-current border-t-transparent text-slate-900 dark:text-gray-300 rounded-full",role:"status","aria-label":"loading"}),this.userInfo?h("div",{class:"uppercase font-bold w-6 h-6 mr-2 rounded-full border border-gray-200 flex justify-center items-center"},y?this.isUserImgError?T:h("img",{class:"w-full rounded-full",src:this.userInfo.picture,alt:"Logo",onError:()=>this.isUserImgError=!0}):C?w[0]:T):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),A&&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(te,be){be=be||document.body;const _e=Array.from(be.querySelectorAll(te)),pe=function(Te){Z(te,Te).forEach(Ce=>{_e.includes(Ce)||_e.push(Ce)})};be.shadowRoot&&pe(be.shadowRoot);for(const Te of Array.from(be.querySelectorAll("*")))Te.shadowRoot&&pe(Te.shadowRoot);return _e}("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"},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`},k)):h("div",{class:`nl-banner ${this.isOpen?"w-52 h-auto right-2 rounded-r-lg isOpen":"rounded-r-none hover:rounded-r-lg cursor-pointer"} z-50 w-12 h-12 fixed top-52 right-0 inline-block gap-x-2 text-sm font-medium rounded-lg hover:right-2 transition-all duration-300 ease-in-out`},k)))}static get watchers(){return{notify:["watchNotifyHandler"]}}static get style(){return NlBannerStyle0}},[1,"nl-banner",{theme:[1025],darkMode:[1028,"dark-mode"],hiddenMode:[1028,"hidden-mode"],titleBanner:[1,"title-banner"],isOpen:[1028,"is-open"],isLoading:[4,"is-loading"],notify:[16],userInfo:[16],accounts:[1040],isUserImgError:[32],domain:[32],mode:[32],url:[32],isOpenConfirm:[32]},void 0,{notify:["watchNotifyHandler"]}]);function defineCustomElement(){typeof customElements>"u"||["nl-banner","button-base","nl-change-account","nl-dialog","nl-login-status"].forEach(o=>{switch(o){case"nl-banner":customElements.get(o)||customElements.define(o,NlBanner);break;case"button-base":customElements.get(o)||defineCustomElement$q();break;case"nl-change-account":customElements.get(o)||defineCustomElement$2();break;case"nl-dialog":customElements.get(o)||defineCustomElement$1();break;case"nl-login-status":customElements.get(o)||defineCustomElement$g()}})}defineCustomElement();var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var lib$1={},types={};Object.defineProperty(types,"__esModule",{value:!0});var ee={},taskCollection$1={},taskCollection={},bakeCollection={};(function(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.bakeCollectionVariadic=exports.bakeCollectionAwait=exports.bakeCollection=exports.BAKED_EMPTY_FUNC=void 0,exports.BAKED_EMPTY_FUNC=function(){};var FORLOOP_FALLBACK=1500;function generateArgsDefCode(o){var s="";if(0===o)return s;for(var 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),A=i?0:4;o.setUint32(s+(i?4:0),y,i),o.setUint32(s+A,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;SA.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 T=SHA256_W$2[S-15],k=SHA256_W$2[S-2],R=rotr$2(T,7)^rotr$2(T,18)^T>>>3,G=rotr$2(k,17)^rotr$2(k,19)^k>>>10;SHA256_W$2[S]=G+SHA256_W$2[S-7]+R+SHA256_W$2[S-16]|0}let{A:r,B:i,C:a,D:c,E:y,F:w,G:C,H:A}=this;for(let S=0;S<64;S++){const T=A+(rotr$2(y,6)^rotr$2(y,11)^rotr$2(y,25))+Chi$2(y,w,C)+SHA256_K$2[S]+SHA256_W$2[S]|0,k=(rotr$2(r,2)^rotr$2(r,13)^rotr$2(r,22))+Maj$2(r,i,a)|0;A=C,C=w,w=y,y=c+T|0,c=a,a=i,i=r,r=T+k|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,A=A+this.H|0,this.set(r,i,a,c,y,w,C,A)}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())},A=()=>{if(c++>=1e3)throw new Error("drbg: tried 1000 values");let S=0;const T=[];for(;S{let k;for(y(),C(S);!(k=T(A()));)C();return y(),k}}const validatorFns={bigint:o=>"bigint"==typeof o,function:o=>"function"==typeof o,boolean:o=>"boolean"==typeof o,string:o=>"string"==typeof o,isSafeInteger:o=>Number.isSafeInteger(o),array:o=>Array.isArray(o),field:(o,s)=>s.Fp.isValid(o),hash:o=>"function"==typeof o&&Number.isSafeInteger(o.outputLen)};function validateObject(o,s,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,A)=>C===A,sqr:C=>mod(C*C,o),add:(C,A)=>mod(C+A,o),sub:(C,A)=>mod(C-A,o),mul:(C,A)=>mod(C*A,o),pow:(C,A)=>FpPow(w,C,A),div:(C,A)=>mod(C*invert(A,o),o),sqrN:C=>C*C,addN:(C,A)=>C+A,subN:(C,A)=>C-A,mulN:(C,A)=>C*A,inv:C=>invert(C,o),sqrt:i.sqrt||(C=>y(w,C)),invertBatch:C=>FpInvertBatch(w,C),cmov:(C,A,S)=>S?A: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 A=a,S=A;for(let T=0;T>=R,te>C&&(te-=k,y+=_1n$2);const be=Z,_e=Z+Math.abs(te)-1,Te=te<0;0===te?S=S.add(r(G%2!=0,c[be])):A=A.add(r(Te,c[_e]))}return{p:A,f:S}},wNAFCached(a,c,y,w){const C=a._WINDOW_SIZE||1;let A=c.get(a);return A||(A=this.precomputeWindow(a,C),1!==C&&c.set(a,w(A))),this.wNAF(C,A,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=A=>8&Number.parseInt(A[0],16)?"00"+A:A,r=A=>{const S=A.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,te)=>{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:te}=s,be=r.sqr(G),_e=r.mul(be,G);return r.add(r.add(_e,r.mul(G,Z)),te)}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 _e(te)&&_e(be)?T.ZERO:new T(te,be,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(Z){const te=r.invertBatch(Z.map(be=>be.pz));return Z.map((be,_e)=>be.toAffine(te[_e])).map(T.fromAffine)}static fromHex(Z){const te=T.fromAffine(a(ensureBytes$1("pointHex",Z)));return te.assertValidity(),te}static fromPrivateKey(Z){return T.BASE.multiply(C(Z))}_setWindowSize(Z){this._WINDOW_SIZE=Z,A.delete(this)}assertValidity(){if(this.is0()){if(s.allowInfinityPoint)return;throw new Error("bad point: ZERO")}const{x:Z,y:te}=this.toAffine();if(!r.isValid(Z)||!r.isValid(te))throw new Error("bad point: x or y not FE");const be=r.sqr(te),_e=c(Z);if(!r.eql(be,_e))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:te,py:be,pz:_e}=this,{px:pe,py:Te,pz:Ce}=Z,Ne=r.eql(r.mul(te,Ce),r.mul(pe,_e)),Se=r.eql(r.mul(be,Ce),r.mul(Te,_e));return Ne&&Se}negate(){return new T(this.px,r.neg(this.py),this.pz)}double(){const{a:Z,b:te}=s,be=r.mul(te,_3n),{px:_e,py:pe,pz:Te}=this;let Ce=r.ZERO,Ne=r.ZERO,Se=r.ZERO,xe=r.mul(_e,_e),ae=r.mul(pe,pe),le=r.mul(Te,Te),ke=r.mul(_e,pe);return ke=r.add(ke,ke),Se=r.mul(_e,Te),Se=r.add(Se,Se),Ce=r.mul(Z,Se),Ne=r.mul(be,le),Ne=r.add(Ce,Ne),Ce=r.sub(ae,Ne),Ne=r.add(ae,Ne),Ne=r.mul(Ce,Ne),Ce=r.mul(ke,Ce),Se=r.mul(be,Se),le=r.mul(Z,le),ke=r.sub(xe,le),ke=r.mul(Z,ke),ke=r.add(ke,Se),Se=r.add(xe,xe),xe=r.add(Se,xe),xe=r.add(xe,le),xe=r.mul(xe,ke),Ne=r.add(Ne,xe),le=r.mul(pe,Te),le=r.add(le,le),xe=r.mul(le,ke),Ce=r.sub(Ce,xe),Se=r.mul(le,ae),Se=r.add(Se,Se),Se=r.add(Se,Se),new T(Ce,Ne,Se)}add(Z){S(Z);const{px:te,py:be,pz:_e}=this,{px:pe,py:Te,pz:Ce}=Z;let Ne=r.ZERO,Se=r.ZERO,xe=r.ZERO;const ae=s.a,le=r.mul(s.b,_3n);let ke=r.mul(te,pe),Ue=r.mul(be,Te),st=r.mul(_e,Ce),ft=r.add(te,be),_t=r.add(pe,Te);ft=r.mul(ft,_t),_t=r.add(ke,Ue),ft=r.sub(ft,_t),_t=r.add(te,_e);let ot=r.add(pe,Ce);return _t=r.mul(_t,ot),ot=r.add(ke,st),_t=r.sub(_t,ot),ot=r.add(be,_e),Ne=r.add(Te,Ce),ot=r.mul(ot,Ne),Ne=r.add(Ue,st),ot=r.sub(ot,Ne),xe=r.mul(ae,_t),Ne=r.mul(le,st),xe=r.add(Ne,xe),Ne=r.sub(Ue,xe),xe=r.add(Ue,xe),Se=r.mul(Ne,xe),Ue=r.add(ke,ke),Ue=r.add(Ue,ke),st=r.mul(ae,st),_t=r.mul(le,_t),Ue=r.add(Ue,st),st=r.sub(ke,st),st=r.mul(ae,st),_t=r.add(_t,st),ke=r.mul(Ue,_t),Se=r.add(Se,ke),ke=r.mul(ot,_t),Ne=r.mul(ft,Ne),Ne=r.sub(Ne,ke),ke=r.mul(ft,Ue),xe=r.mul(ot,xe),xe=r.add(xe,ke),new T(Ne,Se,xe)}subtract(Z){return this.add(Z.negate())}is0(){return this.equals(T.ZERO)}wNAF(Z){return R.wNAFCached(this,A,Z,te=>{const be=r.invertBatch(te.map(_e=>_e.pz));return te.map((_e,pe)=>_e.toAffine(be[pe])).map(T.fromAffine)})}multiplyUnsafe(Z){const te=T.ZERO;if(Z===_0n$1)return te;if(w(Z),Z===_1n$1)return this;const{endo:be}=s;if(!be)return R.unsafeLadder(this,Z);let{k1neg:_e,k1:pe,k2neg:Te,k2:Ce}=be.splitScalar(Z),Ne=te,Se=te,xe=this;for(;pe>_0n$1||Ce>_0n$1;)pe&_1n$1&&(Ne=Ne.add(xe)),Ce&_1n$1&&(Se=Se.add(xe)),xe=xe.double(),pe>>=_1n$1,Ce>>=_1n$1;return _e&&(Ne=Ne.negate()),Te&&(Se=Se.negate()),Se=new T(r.mul(Se.px,be.beta),Se.py,Se.pz),Ne.add(Se)}multiply(Z){w(Z);let te,be,_e=Z;const{endo:pe}=s;if(pe){const{k1neg:Te,k1:Ce,k2neg:Ne,k2:Se}=pe.splitScalar(_e);let{p:xe,f:ae}=this.wNAF(Ce),{p:le,f:ke}=this.wNAF(Se);xe=R.constTimeNegate(Te,xe),le=R.constTimeNegate(Ne,le),le=new T(r.mul(le.px,pe.beta),le.py,le.pz),te=xe.add(le),be=ae.add(ke)}else{const{p:Te,f:Ce}=this.wNAF(_e);te=Te,be=Ce}return T.normalizeZ([te,be])[0]}multiplyAndAddUnsafe(Z,te,be){const _e=T.BASE,pe=(Ce,Ne)=>Ne!==_0n$1&&Ne!==_1n$1&&Ce.equals(_e)?Ce.multiply(Ne):Ce.multiplyUnsafe(Ne),Te=pe(this,te).add(pe(Z,be));return Te.is0()?void 0:Te}toAffine(Z){const{px:te,py:be,pz:_e}=this,pe=this.is0();null==Z&&(Z=pe?r.ONE:r.inv(_e));const Te=r.mul(te,Z),Ce=r.mul(be,Z),Ne=r.mul(_e,Z);if(pe)return{x:r.ZERO,y:r.ZERO};if(!r.eql(Ne,r.ONE))throw new Error("invZ was invalid");return{x:Te,y:Ce}}isTorsionFree(){const{h:Z,isTorsionFree:te}=s;if(Z===_1n$1)return!0;if(te)return te(T,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:Z,clearCofactor:te}=s;return Z===_1n$1?this:te?te(T,this):this.multiplyUnsafe(s.h)}toRawBytes(Z=!0){return this.assertValidity(),i(T,this,Z)}toHex(Z=!0){return bytesToHex$2(this.toRawBytes(Z))}}T.BASE=new T(s.Gx,s.Gy,r.ONE),T.ZERO=new T(r.ZERO,r.ONE,r.ZERO);const k=s.nBitLength,R=wNAF(T,s.endo?Math.ceil(k/2):k);return{CURVE:s,ProjectivePoint:T,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(ae){return mod(ae,i)}function w(ae){return invert(ae,i)}const{ProjectivePoint:C,normPrivateKeyToScalar:A,weierstrassEquation:S,isWithinCurveOrder:T}=weierstrassPoints({...s,toBytes(ae,le,ke){const Ue=le.toAffine(),st=r.toBytes(Ue.x),ft=concatBytes$2;return ke?ft(Uint8Array.from([le.hasEvenY()?2:3]),st):ft(Uint8Array.from([4]),st,r.toBytes(Ue.y))},fromBytes(ae){const le=ae.length,ke=ae[0],Ue=ae.subarray(1);if(le!==a||2!==ke&&3!==ke){if(le===c&&4===ke)return{x:r.fromBytes(Ue.subarray(0,r.BYTES)),y:r.fromBytes(Ue.subarray(r.BYTES,2*r.BYTES))};throw new Error(`Point of length ${le} was invalid. Expected ${a} compressed bytes or ${c} uncompressed bytes`)}{const ft=bytesToNumberBE(Ue);if(!(_0n$1<(st=ft)&&stbytesToHex$2(numberToBytesBE(ae,s.nByteLength));function R(ae){return ae>i>>_1n$1}const G=(ae,le,ke)=>bytesToNumberBE(ae.slice(le,ke));class Z{constructor(le,ke,Ue){this.r=le,this.s=ke,this.recovery=Ue,this.assertValidity()}static fromCompact(le){const ke=s.nByteLength;return le=ensureBytes$1("compactSignature",le,2*ke),new Z(G(le,0,ke),G(le,ke,2*ke))}static fromDER(le){const{r:ke,s:Ue}=DER.toSig(ensureBytes$1("DER",le));return new Z(ke,Ue)}assertValidity(){if(!T(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!T(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(le){return new Z(this.r,this.s,le)}recoverPublicKey(le){const{r:ke,s:Ue,recovery:st}=this,ft=pe(ensureBytes$1("msgHash",le));if(null==st||![0,1,2,3].includes(st))throw new Error("recovery id invalid");const _t=2===st||3===st?ke+s.n:ke;if(_t>=r.ORDER)throw new Error("recovery id 2 or 3 invalid");const Yt=C.fromHex((1&st?"03":"02")+k(_t)),un=w(_t),wn=y(-ft*un),$n=y(Ue*un),En=C.BASE.multiplyAndAddUnsafe(Yt,wn,$n);if(!En)throw new Error("point at infinify");return En.assertValidity(),En}hasHighS(){return R(this.s)}normalizeS(){return this.hasHighS()?new Z(this.r,y(-this.s),this.recovery):this}toDERRawBytes(){return hexToBytes$2(this.toDERHex())}toDERHex(){return DER.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return hexToBytes$2(this.toCompactHex())}toCompactHex(){return k(this.r)+k(this.s)}}const te={isValidPrivateKey(ae){try{return A(ae),!0}catch{return!1}},normPrivateKeyToScalar:A,randomPrivateKey:()=>numberToBytesBE(hashToPrivateScalar(s.randomBytes(r.BYTES+8),i),s.nByteLength),precompute:(ae=8,le=C.BASE)=>(le._setWindowSize(ae),le.multiply(BigInt(3)),le)};function be(ae){const le=ae instanceof Uint8Array,ke="string"==typeof ae,Ue=(le||ke)&&ae.length;return le?Ue===a||Ue===c:ke?Ue===2*a||Ue===2*c:ae instanceof C}const _e=s.bits2int||function(ae){const le=bytesToNumberBE(ae),ke=8*ae.length-s.nBitLength;return ke>0?le>>BigInt(ke):le},pe=s.bits2int_modN||function(ae){return y(_e(ae))},Te=bitMask(s.nBitLength);function Ce(ae){if("bigint"!=typeof ae)throw new Error("bigint expected");if(!(_0n$1<=ae&&aeZe in ke))throw new Error("sign() legacy options not supported");const{hash:Ue,randomBytes:st}=s;let{lowS:ft,prehash:_t,extraEntropy:ot}=ke;null==ft&&(ft=!0),ae=ensureBytes$1("msgHash",ae),_t&&(ae=ensureBytes$1("prehashed msgHash",Ue(ae)));const Yt=pe(ae),un=A(le),wn=[Ce(un),Ce(Yt)];if(null!=ot){const Ze=!0===ot?st(r.BYTES):ot;wn.push(ensureBytes$1("extraEntropy",Ze,r.BYTES))}const $n=concatBytes$2(...wn),En=Yt;return{seed:$n,k2sig:function(Ze){const wt=_e(Ze);if(!T(wt))return;const ze=w(wt),Be=C.BASE.multiply(wt).toAffine(),Ut=y(Be.x);if(Ut===_0n$1)return;const Ke=y(ze*y(En+Ut*un));if(Ke===_0n$1)return;let lt=(Be.x===Ut?0:2)|Number(Be.y&_1n$1),Xe=Ke;return ft&&R(Ke)&&(Xe=R(Ge=Ke)?y(-Ge):Ge,lt^=1),new Z(Ut,Xe,lt);var Ge}}}(ae,le,ke);return createHmacDrbg(s.hash.outputLen,s.nByteLength,s.hmac)(Ue,st)},verify:function(ae,le,ke,Ue=xe){const st=ae;if(le=ensureBytes$1("msgHash",le),ke=ensureBytes$1("publicKey",ke),"strict"in Ue)throw new Error("options.strict was renamed to lowS");const{lowS:ft,prehash:_t}=Ue;let ot,Yt;try{if("string"==typeof st||st instanceof Uint8Array)try{ot=Z.fromDER(st)}catch(Be){if(!(Be instanceof DER.Err))throw Be;ot=Z.fromCompact(st)}else{if("object"!=typeof st||"bigint"!=typeof st.r||"bigint"!=typeof st.s)throw new Error("PARSE");{const{r:Be,s:Ut}=st;ot=new Z(Be,Ut)}}Yt=C.fromHex(ke)}catch(Be){if("PARSE"===Be.message)throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(ft&&ot.hasHighS())return!1;_t&&(le=s.hash(le));const{r:un,s:wn}=ot,$n=pe(le),En=w(wn),Ze=y($n*En),wt=y(un*En),ze=C.BASE.multiplyAndAddUnsafe(Yt,Ze,wt)?.toAffine();return!!ze&&y(ze.x)===un},ProjectivePoint:C,Signature:Z,utils:te}}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),A=o*o*o%s,S=A*A*o%s,T=pow2(S,r,s)*S%s,k=pow2(T,r,s)*S%s,R=pow2(k,_2n,s)*A%s,G=pow2(R,a,s)*R%s,Z=pow2(G,c,s)*G%s,te=pow2(Z,w,s)*Z%s,be=pow2(te,C,s)*te%s,_e=pow2(be,w,s)*Z%s,pe=pow2(_e,r,s)*S%s,Te=pow2(pe,y,s)*G%s,Ce=pow2(Te,i,s)*A%s,Ne=pow2(Ce,_2n,s);if(!Fp.eql(Fp.sqr(Ne),o))throw new Error("Cannot find square root");return Ne}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 A=mod(o-w*r-C*a,s),S=mod(-w*i-C*c,s);const T=A>y,k=S>y;if(T&&(A=s-A),k&&(S=s-S),A>y||S>y)throw new Error("splitScalar: Endomorphism failed, k="+o);return{k1neg:T,k1:A,k2neg:k,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),A=modN(bytesToNumberBE(C));if(A===_0n)throw new Error("sign failed: k is zero");const{bytes:S,scalar:T}=schnorrGetExtPubKey(A),k=challenge(S,a,i),R=new Uint8Array(64);if(R.set(S,0),R.set(numTo32b(modN(T+k*c)),32),!schnorrVerify(R,i,a))throw new Error("sign: Invalid signature produced");return R}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 A=challenge(numTo32b(w),pointToBytes(y),a),S=GmulAdd(y,C,modN(-A));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),A=i?0:4;o.setUint32(s+(i?4:0),y,i),o.setUint32(s+A,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;SA.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 T=SHA256_W$1[S-15],k=SHA256_W$1[S-2],R=rotr$1(T,7)^rotr$1(T,18)^T>>>3,G=rotr$1(k,17)^rotr$1(k,19)^k>>>10;SHA256_W$1[S]=G+SHA256_W$1[S-7]+R+SHA256_W$1[S-16]|0}let{A:r,B:i,C:a,D:c,E:y,F:w,G:C,H:A}=this;for(let S=0;S<64;S++){const T=A+(rotr$1(y,6)^rotr$1(y,11)^rotr$1(y,25))+Chi$1(y,w,C)+SHA256_K$1[S]+SHA256_W$1[S]|0,k=(rotr$1(r,2)^rotr$1(r,13)^rotr$1(r,22))+Maj$1(r,i,a)|0;A=C,C=w,w=y,y=c+T|0,c=a,a=i,i=r,r=T+k|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,A=A+this.H|0,this.set(r,i,a,c,y,w,C,A)}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 A=w.toLowerCase();if(w!==A&&w!==w.toUpperCase())throw new Error("String must be lowercase or uppercase");const S=(w=A).lastIndexOf("1");if(0===S||-1===S)throw new Error('Letter "1" must be present between prefix and data only');const T=w.slice(0,S),k=w.slice(S+1);if(k.length<6)throw new Error("Data must be at least 6 characters long");const R=BECH_ALPHABET$1.decode(k).slice(0,-6),G=bechChecksum$1(T,R,s);if(!k.endsWith(G))throw new Error(`Invalid checksum in ${w}: expected "${G}"`);return{prefix:T,words:R}}return{encode:function(w,C,A=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!==A&&S>A)throw new TypeError(`Length ${S} exceeds limit ${A}`);return`${w=w.toLowerCase()}1${BECH_ALPHABET$1.encode(C)}${bechChecksum$1(w,C,s)}`},decode:y,decodeToBytes:function(w){const{prefix:C,words:A}=y(w,!1);return{prefix:C,words:A,bytes:i(A)}},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),A=toBytes$1(r),S=new Uint8Array(y),T=hmac$1.create(o,C),k=T._cloneInto().update(A);return{c,dkLen:y,asyncTick:w,DK:S,PRF:T,PRFSalt:k}}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 A;const S=new Uint8Array(4),T=createView(S),k=new Uint8Array(w.outputLen);for(let R=1,G=0;G>a&c),w=Number(r&c),A=i?0:4;o.setUint32(s+(i?4:0),y,i),o.setUint32(s+A,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 T=y;TS.length)throw new Error("_sha2: outputLen bigger than state");for(let T=0;To&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 T=0;T<16;T++,r+=4)SHA256_W[T]=s.getUint32(r,!1);for(let T=16;T<64;T++){const k=SHA256_W[T-15],R=SHA256_W[T-2],G=rotr(k,7)^rotr(k,18)^k>>>3,Z=rotr(R,17)^rotr(R,19)^R>>>10;SHA256_W[T]=Z+SHA256_W[T-7]+G+SHA256_W[T-16]|0}let{A:i,B:a,C:c,D:y,E:w,F:C,G:A,H:S}=this;for(let T=0;T<64;T++){const k=S+(rotr(w,6)^rotr(w,11)^rotr(w,25))+Chi(w,C,A)+SHA256_K[T]+SHA256_W[T]|0,R=(rotr(i,2)^rotr(i,13)^rotr(i,22))+Maj(i,a,c)|0;S=A,A=C,C=w,w=y+k|0,y=c,c=a,a=i,i=k+R|0}i=i+this.A|0,a=a+this.B|0,c=c+this.C|0,y=y+this.D|0,w=w+this.E|0,C=C+this.F|0,A=A+this.G|0,S=S+this.H|0,this.set(i,a,c,y,w,C,A,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:A,El:S,Fh:T,Fl:k,Gh:R,Gl:G,Hh:Z,Hl:te}=this;return[s,r,i,a,c,y,w,C,A,S,T,k,R,G,Z,te]}set(s,r,i,a,c,y,w,C,A,S,T,k,R,G,Z,te){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|A,this.El=0|S,this.Fh=0|T,this.Fl=0|k,this.Gh=0|R,this.Gl=0|G,this.Hh=0|Z,this.Hl=0|te}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],Ce=0|SHA512_W_L[pe-15],Ne=u64.rotrSH(Te,Ce,1)^u64.rotrSH(Te,Ce,8)^u64.shrSH(Te,Ce,7),Se=u64.rotrSL(Te,Ce,1)^u64.rotrSL(Te,Ce,8)^u64.shrSL(Te,Ce,7),xe=0|SHA512_W_H[pe-2],ae=0|SHA512_W_L[pe-2],le=u64.rotrSH(xe,ae,19)^u64.rotrBH(xe,ae,61)^u64.shrSH(xe,ae,6),ke=u64.rotrSL(xe,ae,19)^u64.rotrBL(xe,ae,61)^u64.shrSL(xe,ae,6),Ue=u64.add4L(Se,ke,SHA512_W_L[pe-7],SHA512_W_L[pe-16]),st=u64.add4H(Ue,Ne,le,SHA512_W_H[pe-7],SHA512_W_H[pe-16]);SHA512_W_H[pe]=0|st,SHA512_W_L[pe]=0|Ue}let{Ah:i,Al:a,Bh:c,Bl:y,Ch:w,Cl:C,Dh:A,Dl:S,Eh:T,El:k,Fh:R,Fl:G,Gh:Z,Gl:te,Hh:be,Hl:_e}=this;for(let pe=0;pe<80;pe++){const Te=u64.rotrSH(T,k,14)^u64.rotrSH(T,k,18)^u64.rotrBH(T,k,41),Ce=u64.rotrSL(T,k,14)^u64.rotrSL(T,k,18)^u64.rotrBL(T,k,41),Ne=T&R^~T&Z,xe=u64.add5L(_e,Ce,k&G^~k&te,SHA512_Kl[pe],SHA512_W_L[pe]),ae=u64.add5H(xe,be,Te,Ne,SHA512_Kh[pe],SHA512_W_H[pe]),le=0|xe,ke=u64.rotrSH(i,a,28)^u64.rotrBH(i,a,34)^u64.rotrBH(i,a,39),Ue=u64.rotrSL(i,a,28)^u64.rotrBL(i,a,34)^u64.rotrBL(i,a,39),st=i&c^i&w^c&w,ft=a&y^a&C^y&C;be=0|Z,_e=0|te,Z=0|R,te=0|G,R=0|T,G=0|k,({h:T,l:k}=u64.add(0|A,0|S,0|ae,0|le)),A=0|w,S=0|C,w=0|c,C=0|y,c=0|i,y=0|a;const _t=u64.add3L(le,Ue,ft);i=u64.add3H(_t,ae,ke,st),a=0|_t}({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:A,l:S}=u64.add(0|this.Dh,0|this.Dl,0|A,0|S)),({h:T,l:k}=u64.add(0|this.Eh,0|this.El,0|T,0|k)),({h:R,l:G}=u64.add(0|this.Fh,0|this.Fl,0|R,0|G)),({h:Z,l:te}=u64.add(0|this.Gh,0|this.Gl,0|Z,0|te)),({h:be,l:_e}=u64.add(0|this.Hh,0|this.Hl,0|be,0|_e)),this.set(i,a,c,y,w,C,A,S,T,k,R,G,Z,te,be,_e)}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 A=w.toLowerCase();if(w!==A&&w!==w.toUpperCase())throw new Error("String must be lowercase or uppercase");const S=(w=A).lastIndexOf("1");if(0===S||-1===S)throw new Error('Letter "1" must be present between prefix and data only');const T=w.slice(0,S),k=w.slice(S+1);if(k.length<6)throw new Error("Data must be at least 6 characters long");const R=BECH_ALPHABET.decode(k).slice(0,-6),G=bechChecksum(T,R,s);if(!k.endsWith(G))throw new Error(`Invalid checksum in ${w}: expected "${G}"`);return{prefix:T,words:R}}return{encode:function(w,C,A=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!==A&&S>A)throw new TypeError(`Length ${S} exceeds limit ${A}`);const T=w.toLowerCase(),k=bechChecksum(T,C,s);return`${T}1${BECH_ALPHABET.encode(C)}${k}`},decode:y,decodeToBytes:function(w){const{prefix:C,words:A}=y(w,!1);return{prefix:C,words:A,bytes:i(A)}},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 R=0;R<16;R++,r+=4)BUF[R]=s.getUint32(r,!0);let i=0|this.h0,a=i,c=0|this.h1,y=c,w=0|this.h2,C=w,A=0|this.h3,S=A,T=0|this.h4,k=T;for(let R=0;R<5;R++){const G=4-R,Z=Kl[R],te=Kr[R],be=idxL[R],_e=idxR[R],pe=shiftsL[R],Te=shiftsR[R];for(let Ce=0;Ce<16;Ce++){const Ne=rotl$1(i+f(R,c,w,A)+BUF[be[Ce]]+Z,pe[Ce])+T|0;i=T,T=A,A=0|rotl$1(w,10),w=c,c=Ne}for(let Ce=0;Ce<16;Ce++){const Ne=rotl$1(a+f(G,y,C,S)+BUF[_e[Ce]]+te,Te[Ce])+k|0;a=k,k=S,S=0|rotl$1(C,10),C=y,y=Ne}}this.set(this.h1+w+S|0,this.h2+A+k|0,this.h3+T+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),A=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|A<<8),this.r[9]=A>>>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],A=y[2],S=y[3],T=y[4],k=y[5],R=y[6],G=y[7],Z=y[8],te=y[9],be=u8to16(s,r+0),_e=u8to16(s,r+2),pe=u8to16(s,r+4),Te=u8to16(s,r+6),Ce=u8to16(s,r+8),Ne=u8to16(s,r+10),Se=u8to16(s,r+12),xe=u8to16(s,r+14);let ae=c[0]+(8191&be),le=c[1]+(8191&(be>>>13|_e<<3)),ke=c[2]+(8191&(_e>>>10|pe<<6)),Ue=c[3]+(8191&(pe>>>7|Te<<9)),st=c[4]+(8191&(Te>>>4|Ce<<12)),ft=c[5]+(Ce>>>1&8191),_t=c[6]+(8191&(Ce>>>14|Ne<<2)),ot=c[7]+(8191&(Ne>>>11|Se<<5)),Yt=c[8]+(8191&(Se>>>8|xe<<8)),un=c[9]+(xe>>>5|a),wn=0,$n=wn+ae*w+le*(5*te)+ke*(5*Z)+Ue*(5*G)+st*(5*R);wn=$n>>>13,$n&=8191,$n+=ft*(5*k)+_t*(5*T)+ot*(5*S)+Yt*(5*A)+un*(5*C),wn+=$n>>>13,$n&=8191;let En=wn+ae*C+le*w+ke*(5*te)+Ue*(5*Z)+st*(5*G);wn=En>>>13,En&=8191,En+=ft*(5*R)+_t*(5*k)+ot*(5*T)+Yt*(5*S)+un*(5*A),wn+=En>>>13,En&=8191;let Ze=wn+ae*A+le*C+ke*w+Ue*(5*te)+st*(5*Z);wn=Ze>>>13,Ze&=8191,Ze+=ft*(5*G)+_t*(5*R)+ot*(5*k)+Yt*(5*T)+un*(5*S),wn+=Ze>>>13,Ze&=8191;let wt=wn+ae*S+le*A+ke*C+Ue*w+st*(5*te);wn=wt>>>13,wt&=8191,wt+=ft*(5*Z)+_t*(5*G)+ot*(5*R)+Yt*(5*k)+un*(5*T),wn+=wt>>>13,wt&=8191;let ze=wn+ae*T+le*S+ke*A+Ue*C+st*w;wn=ze>>>13,ze&=8191,ze+=ft*(5*te)+_t*(5*Z)+ot*(5*G)+Yt*(5*R)+un*(5*k),wn+=ze>>>13,ze&=8191;let Be=wn+ae*k+le*T+ke*S+Ue*A+st*C;wn=Be>>>13,Be&=8191,Be+=ft*w+_t*(5*te)+ot*(5*Z)+Yt*(5*G)+un*(5*R),wn+=Be>>>13,Be&=8191;let Ut=wn+ae*R+le*k+ke*T+Ue*S+st*A;wn=Ut>>>13,Ut&=8191,Ut+=ft*C+_t*w+ot*(5*te)+Yt*(5*Z)+un*(5*G),wn+=Ut>>>13,Ut&=8191;let Ke=wn+ae*G+le*R+ke*k+Ue*T+st*S;wn=Ke>>>13,Ke&=8191,Ke+=ft*A+_t*C+ot*w+Yt*(5*te)+un*(5*Z),wn+=Ke>>>13,Ke&=8191;let lt=wn+ae*Z+le*G+ke*R+Ue*k+st*T;wn=lt>>>13,lt&=8191,lt+=ft*S+_t*A+ot*C+Yt*w+un*(5*te),wn+=lt>>>13,lt&=8191;let Xe=wn+ae*te+le*Z+ke*G+Ue*R+st*k;wn=Xe>>>13,Xe&=8191,Xe+=ft*T+_t*S+ot*A+Yt*C+un*w,wn+=Xe>>>13,Xe&=8191,wn=(wn<<2)+wn|0,wn=wn+$n|0,$n=8191&wn,wn>>>=13,En+=wn,c[0]=$n,c[1]=En,c[2]=Ze,c[3]=wt,c[4]=ze,c[5]=Be,c[6]=Ut,c[7]=Ke,c[8]=lt,c[9]=Xe}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(A,S,T,k,R=0)=>{if(assert.bytes(A),assert.bytes(S),assert.bytes(T),k||(k=new Uint8Array(T.length)),assert.bytes(k),assert.number(R),R<0||R>=2**32-1)throw new Error("Salsa/ChaCha: counter overflow");if(k.length=2**32-1)throw new Error("Salsa/ChaCha: counter overflow");const ke=Math.min(w,xe-ae);if(ke===w&&Se&&Ne){const Ue=ae/4;if(ae%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],A=o[3],S=s[0],T=s[1],k=s[2],R=s[3],G=s[4],Z=s[5],te=s[6],be=s[7],_e=a,pe=r[0],Te=r[1],Ce=r[2],Ne=y,Se=w,xe=C,ae=A,le=S,ke=T,Ue=k,st=R,ft=G,_t=Z,ot=te,Yt=be,un=_e,wn=pe,$n=Te,En=Ce;for(let wt=0;wta?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 A=0;Aexpand$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(),A={},S={};function T(){return 1===c?.readyState}function k(te){return R.apply(this,arguments)}function R(){return(R=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(te){let be=JSON.stringify(te);if(T()||(yield new Promise(_e=>setTimeout(_e,1e3)),T()))try{c.send(be)}catch(_e){console.log(_e)}})).apply(this,arguments)}const G=(te,{verb:be="REQ",skipVerification:_e=!1,alreadyHaveEvent:pe=null,id:Te=Math.random().toString().slice(2)}={})=>{let Ce=Te;w[Ce]={id:Ce,filters:te,skipVerification:_e,alreadyHaveEvent:pe},k([be,Ce,...te]);let Ne={sub:(Se,xe={})=>G(Se||te,{skipVerification:xe.skipVerification||_e,alreadyHaveEvent:xe.alreadyHaveEvent||pe,id:Ce}),unsub:()=>{delete w[Ce],delete A[Ce],k(["CLOSE",Ce])},on:(Se,xe)=>{A[Ce]=A[Ce]||{event:[],count:[],eose:[]},A[Ce][Se].push(xe)},off:(Se,xe)=>{let ae=A[Ce],le=ae[Se].indexOf(xe);le>=0&&ae[Se].splice(le,1)},get events(){return eventsGenerator(Ne)}};return Ne};function Z(te,be){return new Promise((_e,pe)=>{if(!te.id)return void pe(new Error(`event ${te} has no id`));let Te=te.id;k([be,te]),S[Te]={resolve:_e,reject:pe}})}return{url:o,sub:G,on:(te,be)=>{C[te].push(be),"connect"===te&&1===c?.readyState&&be()},off:(te,be)=>{let _e=C[te].indexOf(be);-1!==_e&&C[te].splice(_e,1)},list:(te,be)=>new Promise(_e=>{let pe=G(te,be),Te=[],Ce=setTimeout(()=>{pe.unsub(),_e(Te)},r);pe.on("eose",()=>{pe.unsub(),clearTimeout(Ce),_e(Te)}),pe.on("event",Ne=>{Te.push(Ne)})}),get:(te,be)=>new Promise(_e=>{let pe=G([te],be),Te=setTimeout(()=>{pe.unsub(),_e(null)},i);pe.on("event",Ce=>{pe.unsub(),clearTimeout(Te),_e(Ce)})}),count:te=>new Promise(be=>{let _e=G(te,{...G,verb:"COUNT"}),pe=setTimeout(()=>{_e.unsub(),be(null)},a);_e.on("count",Te=>{_e.unsub(),clearTimeout(pe),be(Te)})}),publish:te=>(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){yield Z(te,"EVENT")})(),auth:te=>(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){yield Z(te,"AUTH")})(),connect:(te=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){T()||(yield(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return y||(y=new Promise((be,_e)=>{try{c=new WebSocket(o)}catch(Ne){_e(Ne)}c.onopen=()=>{C.connect.forEach(Ne=>Ne()),be()},c.onerror=()=>{y=void 0,C.error.forEach(Ne=>Ne()),_e()},c.onclose=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){y=void 0,C.disconnect.forEach(Ne=>Ne())});let pe,Te=new MessageQueue;function Ce(){if(0===Te.size)return clearInterval(pe),void(pe=null);var Ne=Te.dequeue();if(!Ne)return;let Se=getSubscriptionId(Ne);if(Se){let xe=w[Se];if(xe&&xe.alreadyHaveEvent&&xe.alreadyHaveEvent(getHex64(Ne,"id"),o))return}try{let xe=JSON.parse(Ne);switch(xe[0]){case"EVENT":{let Ue=xe[1],st=xe[2];return void(validateEvent(st)&&w[Ue]&&(w[Ue].skipVerification||verifySignature(st))&&matchFilters(w[Ue].filters,st)&&(A[Ue]?.event||[]).forEach(ft=>ft(st)))}case"COUNT":let ae=xe[1],le=xe[2];return void(w[ae]&&(A[ae]?.count||[]).forEach(Ue=>Ue(le)));case"EOSE":{let Ue=xe[1];return void(Ue in A&&(A[Ue].eose.forEach(st=>st()),A[Ue].eose=[]))}case"OK":{let Ue=xe[1],st=xe[2],ft=xe[3]||"";if(Ue in S){let{resolve:_t,reject:ot}=S[Ue];st?_t(null):ot(new Error(ft))}return}case"NOTICE":let ke=xe[1];return void C.notice.forEach(Ue=>Ue(ke));case"AUTH":{let Ue=xe[1];return void C.auth?.forEach(st=>st(Ue))}}}catch{return}}c.onmessage=Ne=>{Te.enqueue(Ne.data),pe||(pe=setInterval(Ce,0))}}))})())}),function(){return te.apply(this,arguments)}),close(){C=newListeners(),A={},S={},c?.readyState===WebSocket.OPEN&&c.close()},get status(){return c?.readyState??3}};var te}function eventsGenerator(o){return _eventsGenerator.apply(this,arguments)}function _eventsGenerator(){return _eventsGenerator=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_wrapAsyncGenerator_js__WEBPACK_IMPORTED_MODULE_0__.A)(function*(o){let s;const 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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_awaitAsyncGenerator_js__WEBPACK_IMPORTED_MODULE_2__.A)(new Promise(c=>{s=c}))}finally{o.off("event",i)}}),_eventsGenerator.apply(this,arguments)}var nip19_exports={};__export(nip19_exports,{BECH32_REGEX:()=>BECH32_REGEX,decode:()=>decode,naddrEncode:()=>naddrEncode,neventEncode:()=>neventEncode,noteEncode:()=>noteEncode,nprofileEncode:()=>nprofileEncode,npubEncode:()=>npubEncode,nrelayEncode:()=>nrelayEncode,nsecEncode:()=>nsecEncode});var Bech32MaxSize=5e3,BECH32_REGEX=/[\x21-\x7E]{1,83}1[023456789acdefghjklmnpqrstuvwxyz]{6,}/;function integerToUint8Array(o){const s=new Uint8Array(4);return s[0]=o>>24&255,s[1]=o>>16&255,s[2]=o>>8&255,s[3]=255&o,s}function decode(o){let{prefix:s,words: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_angular_builders_custom_webpack_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_angular_builders_custom_webpack_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),A=yield crypto.subtle.decrypt({name:"AES-CBC",iv:C},y,w);return utf8Decoder.decode(A)}),_decrypt$.apply(this,arguments)}function getNormalizedX(o){return o.slice(1,33)}__export(nip04_exports,{decrypt:()=>decrypt$1,encrypt:()=>encrypt$1}),typeof crypto<"u"&&!crypto.subtle&&crypto.webcrypto&&(crypto.subtle=crypto.webcrypto.subtle);var nip05_exports={};__export(nip05_exports,{NIP05_REGEX:()=>NIP05_REGEX$1,queryProfile:()=>queryProfile,searchDomain:()=>searchDomain,useFetchImplementation:()=>useFetchImplementation});var NIP05_REGEX$1=/^(?:([\w.+-]+)@)?([\w.-]+)$/,_fetch;try{_fetch=fetch}catch{}function useFetchImplementation(o){_fetch=o}function searchDomain(o){return _searchDomain.apply(this,arguments)}function _searchDomain(){return _searchDomain=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o,s=""){try{return(yield(yield _fetch(`https://${o}/.well-known/nostr.json?name=${s}`)).json()).names}catch{return{}}}),_searchDomain.apply(this,arguments)}function queryProfile(o){return _queryProfile.apply(this,arguments)}function _queryProfile(){return _queryProfile=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o){const s=o.match(NIP05_REGEX$1);if(!s)return null;const[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"===A&&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_angular_builders_custom_webpack_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_angular_builders_custom_webpack_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(T){throw new Error("invalid base64: "+T.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),A=r.getMessageKeys(o,y);if(!equalBytes(hmac(sha256$1,A.auth,w),C))throw new Error("invalid MAC");const S=chacha20(A.encryption,A.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_angular_builders_custom_webpack_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_angular_builders_custom_webpack_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_angular_builders_custom_webpack_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_angular_builders_custom_webpack_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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o){if(!o)throw new Error("Missing token");o=o.replace(_authorizationScheme,"");const s=utf8Decoder.decode(base64$1.decode(o));if(!s||0===s.length||!s.startsWith("{"))throw new Error("Invalid token");return JSON.parse(s)}),_unpackEventFromToken.apply(this,arguments)}function validateEvent2(o,s,r){return _validateEvent.apply(this,arguments)}function _validateEvent(){return _validateEvent=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o,s,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,A,S){var T=C>=1.5*A;return Math.round(w/A)+" "+S+(T?"s":"")}return ms=function(w,C){C=C||{};var S,T,A=typeof w;if("string"===A&&w.length>0)return function(S){if(!((S=String(S)).length>100)){var T=/^(-?(?:\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(T){var k=parseFloat(T[1]);switch((T[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*k;case"weeks":case"week":case"w":return k*a;case"days":case"day":case"d":return k*i;case"hours":case"hour":case"hrs":case"hr":case"h":return k*r;case"minutes":case"minute":case"mins":case"min":case"m":return k*s;case"seconds":case"second":case"secs":case"sec":case"s":return k*o;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return k;default:return}}}}(w);if("number"===A&&isFinite(w))return C.long?(S=w,(T=Math.abs(S))>=i?y(S,T,i,"day"):T>=r?y(S,T,r,"hour"):T>=s?y(S,T,s,"minute"):T>=o?y(S,T,o,"second"):S+" ms"):function(S){var T=Math.abs(S);return T>=i?Math.round(S/i)+"d":T>=r?Math.round(S/r)+"h":T>=s?Math.round(S/s)+"m":T>=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 A(...S){if(!A.enabled)return;const T=A,k=Number(new Date);T.diff=k-(c||k),T.prev=c,T.curr=k,c=k,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,te)=>{if("%%"===Z)return"%";G++;const be=s.formatters[te];return"function"==typeof be&&(Z=be.call(T,S[G]),S.splice(G,1),G--),Z}),s.formatArgs.call(T,S),(T.log||s.log).apply(T,S)}return A.namespace=a,A.useColors=s.useColors(),A.color=s.selectColor(a),A.extend=r,A.destroy=s.destroy,Object.defineProperty(A,"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(A),A}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:A,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!=A&&A,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(xe){if(!Number.isSafeInteger(xe))throw new Error(`Wrong integer: ${xe}`)}function r(...xe){const ae=(le,ke)=>Ue=>le(ke(Ue));return{encode:Array.from(xe).reverse().reduce((le,ke)=>le?ae(le,ke.encode):ke.encode,void 0),decode:xe.reduce((le,ke)=>le?ae(le,ke.decode):ke.decode,void 0)}}function i(xe){return{encode:ae=>{if(!Array.isArray(ae)||ae.length&&"number"!=typeof ae[0])throw new Error("alphabet.encode input should be an array of numbers");return ae.map(le=>{if(s(le),le<0||le>=xe.length)throw new Error(`Digit index outside alphabet: ${le} (alphabet: ${xe.length})`);return xe[le]})},decode:ae=>{if(!Array.isArray(ae)||ae.length&&"string"!=typeof ae[0])throw new Error("alphabet.decode input should be array of strings");return ae.map(le=>{if("string"!=typeof le)throw new Error(`alphabet.decode: not string element=${le}`);const ke=xe.indexOf(le);if(-1===ke)throw new Error(`Unknown letter: "${le}". Allowed: ${xe}`);return ke})}}}function a(xe=""){if("string"!=typeof xe)throw new Error("join separator should be string");return{encode:ae=>{if(!Array.isArray(ae)||ae.length&&"string"!=typeof ae[0])throw new Error("join.encode input should be array of strings");for(let le of ae)if("string"!=typeof le)throw new Error(`join.encode: non-string input=${le}`);return ae.join(xe)},decode:ae=>{if("string"!=typeof ae)throw new Error("join.decode input should be string");return ae.split(xe)}}}function c(xe,ae="="){if(s(xe),"string"!=typeof ae)throw new Error("padding chr should be string");return{encode(le){if(!Array.isArray(le)||le.length&&"string"!=typeof le[0])throw new Error("padding.encode input should be array of strings");for(let ke of le)if("string"!=typeof ke)throw new Error(`padding.encode: non-string input=${ke}`);for(;le.length*xe%8;)le.push(ae);return le},decode(le){if(!Array.isArray(le)||le.length&&"string"!=typeof le[0])throw new Error("padding.encode input should be array of strings");for(let Ue of le)if("string"!=typeof Ue)throw new Error(`padding.decode: non-string input=${Ue}`);let ke=le.length;if(ke*xe%8)throw new Error("Invalid padding: string should have whole number of bytes");for(;ke>0&&le[ke-1]===ae;ke--)if(!((ke-1)*xe%8))throw new Error("Invalid padding: string has too much padding");return le.slice(0,ke)}}}function y(xe){if("function"!=typeof xe)throw new Error("normalize fn should be function");return{encode:ae=>ae,decode:ae=>xe(ae)}}function w(xe,ae,le){if(ae<2)throw new Error(`convertRadix: wrong from=${ae}, base cannot be less than 2`);if(le<2)throw new Error(`convertRadix: wrong to=${le}, base cannot be less than 2`);if(!Array.isArray(xe))throw new Error("convertRadix: data should be array");if(!xe.length)return[];let ke=0;const Ue=[],st=Array.from(xe);for(st.forEach(ft=>{if(s(ft),ft<0||ft>=ae)throw new Error(`Wrong integer: ${ft}`)});;){let ft=0,_t=!0;for(let ot=ke;otae?C(ae,xe%ae):xe,A=(xe,ae)=>xe+(ae-C(xe,ae));function S(xe,ae,le,ke){if(!Array.isArray(xe))throw new Error("convertRadix2: data should be array");if(ae<=0||ae>32)throw new Error(`convertRadix2: wrong from=${ae}`);if(le<=0||le>32)throw new Error(`convertRadix2: wrong to=${le}`);if(A(ae,le)>32)throw new Error(`convertRadix2: carry overflow from=${ae} to=${le} carryBits=${A(ae,le)}`);let Ue=0,st=0;const ft=2**le-1,_t=[];for(const ot of xe){if(s(ot),ot>=2**ae)throw new Error(`convertRadix2: invalid data word=${ot} from=${ae}`);if(Ue=Ue<32)throw new Error(`convertRadix2: carry overflow pos=${st} from=${ae}`);for(st+=ae;st>=le;st-=le)_t.push((Ue>>st-le&ft)>>>0);Ue&=2**st-1}if(Ue=Ue<=ae)throw new Error("Excess padding");if(!ke&&Ue)throw new Error(`Non-zero padding: ${Ue}`);return ke&&st>0&&_t.push(Ue>>>0),_t}function T(xe){return s(xe),{encode:ae=>{if(!(ae instanceof Uint8Array))throw new Error("radix.encode input should be Uint8Array");return w(Array.from(ae),256,xe)},decode:ae=>{if(!Array.isArray(ae)||ae.length&&"number"!=typeof ae[0])throw new Error("radix.decode input should be array of strings");return Uint8Array.from(w(ae,xe,256))}}}function k(xe,ae=!1){if(s(xe),xe<=0||xe>32)throw new Error("radix2: bits should be in (0..32]");if(A(8,xe)>32||A(xe,8)>32)throw new Error("radix2: carry overflow");return{encode:le=>{if(!(le instanceof Uint8Array))throw new Error("radix2.encode input should be Uint8Array");return S(Array.from(le),8,xe,!ae)},decode:le=>{if(!Array.isArray(le)||le.length&&"number"!=typeof le[0])throw new Error("radix2.decode input should be array of strings");return Uint8Array.from(S(le,xe,8,ae))}}}function R(xe){if("function"!=typeof xe)throw new Error("unsafeWrapper fn should be function");return function(...ae){try{return xe.apply(null,ae)}catch{}}}function G(xe,ae){if(s(xe),"function"!=typeof ae)throw new Error("checksum fn should be function");return{encode(le){if(!(le instanceof Uint8Array))throw new Error("checksum.encode: input should be Uint8Array");const ke=ae(le).slice(0,xe),Ue=new Uint8Array(le.length+xe);return Ue.set(le),Ue.set(ke,le.length),Ue},decode(le){if(!(le instanceof Uint8Array))throw new Error("checksum.decode: input should be Uint8Array");const ke=le.slice(0,-xe),Ue=ae(ke).slice(0,xe),st=le.slice(-xe);for(let ft=0;ftxe.toUpperCase().replace(/O/g,"0").replace(/[IL]/g,"1"))),o.base64=r(k(6),i("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),c(6),a("")),o.base64url=r(k(6),i("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),c(6),a(""));const Z=xe=>r(T(58),i(xe),a(""));o.base58=Z("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),o.base58flickr=Z("123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"),o.base58xrp=Z("rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz");const te=[0,2,3,5,6,7,9,10,11];o.base58xmr={encode(xe){let ae="";for(let le=0;ler(G(4,ae=>xe(xe(ae))),o.base58);const be=r(i("qpzry9x8gf2tvdw0s3jn54khce6mua7l"),a("")),_e=[996825010,642813549,513874426,1027748829,705979059];function pe(xe){const ae=xe>>25;let le=(33554431&xe)<<5;for(let ke=0;ke<_e.length;ke++)1==(ae>>ke&1)&&(le^=_e[ke]);return le}function Te(xe,ae,le=1){const ke=xe.length;let Ue=1;for(let st=0;st126)throw new Error(`Invalid prefix (${xe})`);Ue=pe(Ue)^ft>>5}Ue=pe(Ue);for(let st=0;stot)throw new TypeError(`Wrong string length: ${_t.length} (${_t}). Expected (8..${ot})`);const Yt=_t.toLowerCase();if(_t!==Yt&&_t!==_t.toUpperCase())throw new Error("String must be lowercase or uppercase");const un=(_t=Yt).lastIndexOf("1");if(0===un||-1===un)throw new Error('Letter "1" must be present between prefix and data only');const wn=_t.slice(0,un),$n=_t.slice(un+1);if($n.length<6)throw new Error("Data must be at least 6 characters long");const En=be.decode($n).slice(0,-6),Ze=Te(wn,En,ae);if(!$n.endsWith(Ze))throw new Error(`Invalid checksum in ${_t}: expected "${Ze}"`);return{prefix:wn,words:En}}return{encode:function(_t,ot,Yt=90){if("string"!=typeof _t)throw new Error("bech32.encode prefix should be string, not "+typeof _t);if(!Array.isArray(ot)||ot.length&&"number"!=typeof ot[0])throw new Error("bech32.encode words should be array of numbers, not "+typeof ot);const un=_t.length+7+ot.length;if(!1!==Yt&&un>Yt)throw new TypeError(`Length ${un} exceeds limit ${Yt}`);return`${_t=_t.toLowerCase()}1${be.encode(ot)}${Te(_t,ot,ae)}`},decode:ft,decodeToBytes:function(_t){const{prefix:ot,words:Yt}=ft(_t,!1);return{prefix:ot,words:Yt,bytes:ke(Yt)}},decodeUnsafe:R(ft),fromWords:ke,fromWordsUnsafe:st,toWords:Ue}}o.bech32=Ce("bech32"),o.bech32m=Ce("bech32m"),o.utf8={encode:xe=>(new TextDecoder).decode(xe),decode:xe=>(new TextEncoder).encode(xe)},o.hex=r(k(4),i("0123456789abcdef"),a(""),y(xe=>{if("string"!=typeof xe||xe.length%2)throw new TypeError(`hex.decode: expected string, got ${typeof xe} with length ${xe.length}`);return xe.toLowerCase()}));const Ne={utf8:o.utf8,hex:o.hex,base16:o.base16,base32:o.base32,base64:o.base64,base64url:o.base64url,base58:o.base58,base58xmr:o.base58xmr},Se=`Invalid encoding type. Available types: ${Object.keys(Ne).join(", ")}`;o.bytesToString=(xe,ae)=>{if("string"!=typeof xe||!Ne.hasOwnProperty(xe))throw new TypeError(Se);if(!(ae instanceof Uint8Array))throw new TypeError("bytesToString() expects Uint8Array");return Ne[xe].encode(ae)},o.str=o.bytesToString,o.stringToBytes=(xe,ae)=>{if(!Ne.hasOwnProperty(xe))throw new TypeError(Se);if("string"!=typeof ae)throw new TypeError("stringToBytes() expects string");return Ne[xe].decode(ae)},o.bytes=o.stringToBytes})(lib),BigInt(1e3),BigInt(1e6),BigInt(1e9),BigInt(1e12),BigInt("2100000000000000000"),BigInt(1e11);const TAGCODES={payment_hash:1,payment_secret:16,description:13,payee:19,description_hash:23,expiry:6,min_final_cltv_expiry:24,fallback_address:9,route_hint:3,feature_bits:5,metadata:27};for(let o=0,s=Object.keys(TAGCODES);othis.handleNotice(s))}initiateAuth(o={limit:1}){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){s.debug("Initiating authentication");const 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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const s=()=>{o.updateConnectionStats.connected(),o.ndkRelay.authRequired?(o._status=6,o.ndkRelay.emit("connect"),o.initiateAuth()):(o._status=1,o.ndkRelay.emit("connect"),o.ndkRelay.emit("ready"))},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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(c){o.debug("Relay requested authentication",{havePolicy:!!o.ndkRelay.authPolicy}),o.ndkRelay.authPolicy?7!==o._status&&(o._status=7,yield o.ndkRelay.authPolicy(o.ndkRelay,c),7===o._status&&(o.debug("Authentication policy finished"),o._status=1,o.ndkRelay.emit("ready"))):yield o.ndkRelay.emit("auth",c)});return function(y){return a.apply(this,arguments)}}();try{o.updateConnectionStats.attempt(),o._status=0,o.relay.off("connect",s),o.relay.off("disconnect",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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){(o.includes("oo many")||o.includes("aximum"))&&(s.disconnect(),setTimeout(()=>s.connect(),2e3),s.debug(s.relay.url,"Relay complaining?",o)),s.ndkRelay.emit("notice",s,o)})()}handleReconnection(o=0){if(this.isFlapping())return this.ndkRelay.emit("flapping",this,this._connectionStats),void(this._status=5);const s=this.connectedAt?Math.max(0,6e4-(Date.now()-this.connectedAt)):0;setTimeout(()=>{this._status=4,this.connect().then(()=>{this.debug("Reconnected")}).catch(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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const i=()=>new Promise((C,A)=>{try{r.publishEvent(o,s).then(S=>C(S)).catch(S=>A(S))}catch(S){A(S)}}),a=new Promise((C,A)=>{setTimeout(()=>A(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,A)=>{y=C,w=A,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_angular_builders_custom_webpack_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,A)=>{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),A(S)})});if(!s||o.isEphemeral())return y;const w=new Promise((C,A)=>{c=setTimeout(()=>{r.ndkRelay.debug("Publish timed out",o.rawEvent()),r.ndkRelay.emit("publish:failed",o,"Timeout"),A(new Error("Publish operation timed out"))},s)});return Promise.race([y,w])})()}auth(o){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return s.ndkRelay.connectivity.relay.auth(o.rawEvent())})()}};function calculateGroupableId(o){const s=[];for(const 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(A=>c.add(A)):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_angular_builders_custom_webpack_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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return o.connectivity.connect()})()}disconnect(){3!==this.status&&this.connectivity.disconnect()}subscribe(o,s){this.subs.subscribe(o,s)}publish(o,s=2500){var r=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return r.publisher.publish(o,s)})()}auth(o){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return s.publisher.auth(o)})()}scoreSlowerEvent(o){}tagReference(o){const s=["r",this.url];return o&&s.push(o),s}referenceTags(){return[["r",this.url]]}activeSubscriptions(){return this.subs.executedFilters()}},PublishError=class extends Error{errors;constructor(o,s){super(o),this.errors=s}},NDKRelaySet=class J2{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 J2(new Set(i),r)}publish(s,r){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const a=new Set,c=new Map,y=s.isEphemeral(),w=Array.from(i.relays).map(C=>new Promise(A=>{C.publish(s,r).then(()=>{a.add(C),A()}).catch(S=>{y||(c.set(C,S),i.debug("error publishing to relay",{relay:C.url,err:S})),A()})}));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(A=>w.includes(A));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_angular_builders_custom_webpack_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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const y=yield c.generateZapRequest(o,s,r,i);if(!y)return null;const{event:w,zapEndpoint:C}=y;if(!w)throw new Error("No zap request event found");let A;yield w.sign(a);try{A=yield c.getInvoice(w,o,C)}catch(S){throw new Error("Failed to get invoice: "+S)}return A})()}getInvoice(o,s,r){return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return(yield(yield fetch(`${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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const y=yield c.getZapEndpoint();if(!y)throw new Error("No zap endpoint found");if(!c.zappedEvent&&!c.zappedUser)throw new Error("No zapped event or user found");const w=nip57_exports.makeZapRequest({profile:c.zappedUser.pubkey,event:null,amount:o,comment:s||"",relays:i??c.relays()});if(c.zappedEvent){const A=c.zappedEvent.referenceTags();w.tags.push(...A)}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_angular_builders_custom_webpack_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 A=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(S){i(["e",w,yield maybeGetEventRelayUrl(c),"mention"]),S()});return function(S){return A.apply(this,arguments)}}()));break;case"nevent":r.push(new Promise(function(){var A=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(S){let{id:T,relays:k,author:R}=w;k&&0!==k.length||(k=[yield maybeGetEventRelayUrl(c)]),i(["e",T,k[0],"mention"]),R&&i(["p",R]),S()});return function(S){return A.apply(this,arguments)}}()));break;case"naddr":r.push(new Promise(function(){var A=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(S){const T=[w.kind,w.pubkey,w.identifier].join(":");let k=w.relays??[];0===k.length&&(k=[yield maybeGetEventRelayUrl(c)]),i(["a",T,k[0],"mention"]),i(["p",w.pubkey]),S()});return function(S){return A.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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o){return""})).apply(this,arguments)}function isReplaceable(){if(void 0===this.kind)throw new Error("Kind not set");return this.kind>=1e4&&this.kind<2e4}function isEphemeral(){if(void 0===this.kind)throw new Error("Kind not set");return this.kind>=2e4&&this.kind<3e4}function isParamReplaceable(){if(void 0===this.kind)throw new Error("Kind not set");return this.kind>=3e4&&this.kind<4e4}function encrypt(o,s){return _encrypt.apply(this,arguments)}function _encrypt(){return _encrypt=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o,s){if(!this.ndk)throw new Error("No NDK instance found!");if(s||(yield this.ndk.assertSigner(),s=this.ndk.signer),!o){const 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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o,s){if(!this.ndk)throw new Error("No NDK instance found!");s||(yield this.ndk.assertSigner(),s=this.ndk.signer),o||(o=this.author),this.content=yield s?.decrypt(o,this.content)}),_decrypt.apply(this,arguments)}function encode(){return this.isParamReplaceable()?nip19_exports.naddrEncode({kind:this.kind,pubkey:this.pubkey,identifier:this.replaceableDTag(),relays:this.relay?[this.relay.url]:[]}):this.relay?nip19_exports.neventEncode({id:this.tagId(),relays:[this.relay.url],author:this.pubkey}):nip19_exports.noteEncode(this.tagId())}function repost(){return _repost.apply(this,arguments)}function _repost(){return _repost=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o=!0,s){if(!s&&o){if(!this.ndk)throw new Error("No NDK instance found");this.ndk.assertSigner(),s=this.ndk.signer}const 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 Vv 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 Vv){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_angular_builders_custom_webpack_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_angular_builders_custom_webpack_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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(i.sig||(yield i.sign()),!i.ndk)throw new Error("NDKEvent must be associated with an NDK instance to publish");return s||(s=i.ndk.devWriteRelaySet||calculateRelaySetFromEvent(i.ndk)),s.publish(i,r)})()}generateTags(){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){let 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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!y.ndk)throw new Error("No NDK instance found");c||y.ndk.assertSigner();const w=new Zap({ndk:y.ndk,zappedEvent:y,zappedUser:a}),C=Array.from(y.ndk.pool.relays.keys());return yield w.createZapRequest(s,r,i,C,c)})()}delete(s){var r=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!r.ndk)throw new Error("No NDK instance found");r.ndk.assertSigner();const i=new Vv(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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!i.ndk)throw new Error("No NDK instance found");i.ndk.assertSigner();const a=new Vv(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 eD extends NDKEvent{constructor(s,r){super(s,r),this.kind??=10002}static from(s){return new eD(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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){let s;o.shouldQueryCache()&&(s=o.startWithCache(),o.shouldWaitForCache()&&(yield s,queryFullyFilled(o)))?o.emit("eose",o):o.shouldQueryRelays()?o.startWithRelays():o.emit("eose",o)})()}stop(){this.emit("close",this),this.removeAllListeners()}hasAuthorsFilter(){return this.filters.some(o=>o.authors?.length)}startWithCache(){var o=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(o.ndk.cacheAdapter?.query){const s=o.ndk.cacheAdapter.query(o);o.ndk.cacheAdapter.locking&&(yield s)}})()}startWithRelays(){if(this.relaySet){this.relayFilters=new Map;for(const o of this.relaySet.relays)this.relayFilters.set(o.url,this.filters)}else this.relayFilters=calculateRelaySetsFromFilters(this.ndk,this.filters);if(this.relayFilters&&0!==this.relayFilters.size)for(const[o,s]of this.relayFilters)this.pool.getRelay(o).subscribe(this,s);else this.debug("No relays to subscribe to",this.ndk.explicitRelayUrls)}eventReceived(o,s,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_angular_builders_custom_webpack_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 tD extends NDKEvent{_encryptedTags;encryptedTagsLength;constructor(s,r){super(s,r),this.kind??=30001}static from(s){return new tD(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_angular_builders_custom_webpack_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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!a.ndk)throw new Error("NDK instance not set");if(!a.ndk.signer)throw new Error("NDK signer not set");let c;if(s instanceof NDKEvent)c=s.referenceTags();else if(s instanceof NDKUser)c=s.referenceTags();else if(s instanceof NDKRelay)c=s.referenceTags();else{if(!Array.isArray(s))throw new Error("Invalid object type");c=[s]}if(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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!i.ndk)throw new Error("NDK instance not set");if(!i.ndk.signer)throw new Error("NDK signer not set");if(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_angular_builders_custom_webpack_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_angular_builders_custom_webpack_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:A,nip46:S}=parseNIP05Result(yield w.json()),T=C[c];return T?{pubkey:T,relays:A?.[T],nip46:S?.[T]}: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,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(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,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!s.ndk)throw new Error("NDK not set");const 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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!s.ndk)throw new Error("NDK not set");const 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 A=C;A.write&&y.add(w),A.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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!s.ndk)throw new Error("No NDK instance found");if(!s.profile)throw new Error("No profile available");s.ndk.assertSigner(),yield new NDKEvent(s.ndk,{kind:0,content:serializeProfile(s.profile)}).publish()})()}follow(s,r,i=3){var a=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!a.ndk)throw new Error("No NDK instance found");if(a.ndk.assertSigner(),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_angular_builders_custom_webpack_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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!c.ndk)throw new Error("No NDK instance found");a||c.ndk.assertSigner();const y=new Zap({ndk:c.ndk,zappedUser:c}),w=Array.from(c.ndk.pool.relays.keys());return yield y.createZapRequest(s,r,i,w,a)})()}},NDKPrivateKeySigner=class nD{_user;privateKey;constructor(s){s&&(this.privateKey=s,this._user=new NDKUser({hexpubkey:getPublicKey(this.privateKey)}))}static generate(){const s=generatePrivateKey();return new nD(s)}blockUntilReady(){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!s._user)throw new Error("NDKUser not initialized");return s._user})()}user(){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return yield s.blockUntilReady(),s._user})()}sign(s){var r=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!i.privateKey)throw Error("Attempted to encrypt without a private key");const a=s.hexpubkey;return yield nip04_exports.encrypt(i.privateKey,a,r)})()}decrypt(s,r){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!i.privateKey)throw Error("Attempted to decrypt without a private key");const a=s.hexpubkey;return yield nip04_exports.decrypt(i.privateKey,a,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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(a){try{const c=yield s.parseEvent(a);s.emit(c.method?"request":`response-${c.id}`,c)}catch(c){s.debug("error parsing event",c,a.rawEvent())}});return function(a){return i.apply(this,arguments)}}()),new Promise((i,a)=>{r.on("eose",()=>i(r))})}parseEvent(o){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const 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:A}=a;return y?{id:c,pubkey:o.pubkey,method:y,params:w,event:o}:{id:c,result:C,error:A,event:o}})()}sendResponse(o,s,r,i=24133,a){var c=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const y={id:o,result:r};a&&(y.error=a);const w=yield c.signer.user(),C=c.ndk.getUser({hexpubkey:s}),A=new NDKEvent(c.ndk,{kind:i,content:JSON.stringify(y),tags:[["p",s]],pubkey:w.hexpubkey});A.content=yield c.signer.encrypt(C,A.content),yield A.sign(c.signer),yield A.publish()})()}sendRequest(o,s,r=[],i=24133,a){var c=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const y=Math.random().toString(36).substring(7),w=yield c.signer.user(),C=c.ndk.getUser({hexpubkey:o}),A={id:y,method:s,params:r},S=new Promise(k=>{const R=G=>{"auth_url"===G.result?(c.once(`response-${y}`,R),c.emit("authUrl",G.error)):a&&a(G)};c.once(`response-${y}`,R)}),T=new NDKEvent(c.ndk,{kind:i,content:JSON.stringify(A),tags:[["p",o]],pubkey:w.pubkey});return T.content=yield c.signer.encrypt(C,T.content),yield T.sign(c.signer),c.debug(`sending ${s} request to`,o),yield T.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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return o.remoteUser})()}blockUntilReady(){var o=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const s=yield o.localSigner.user(),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_angular_builders_custom_webpack_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_angular_builders_custom_webpack_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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return s.debug("asking for a signature"),new Promise((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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){i.debug("asking to create an account");const a=[];return o&&a.push(o),s&&a.push(s),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_angular_builders_custom_webpack_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_angular_builders_custom_webpack_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_angular_builders_custom_webpack_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_angular_builders_custom_webpack_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_angular_builders_custom_webpack_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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const i="POST",{url:a,headers:c}=yield 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_angular_builders_custom_webpack_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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){o.validateHttpFetch();const s=yield o.ndk.httpFetch(o.url);if(200!==s.status)throw new Error(`Failed to fetch NIP96 spec from ${o.url}`);const 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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const a=new NDKEvent(i.ndk,{kind:27235,tags:[["u",o],["method",s]]});if(["POST","PUT","PATCH"].includes(s)){const c=yield i.calculateSha256(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_angular_builders_custom_webpack_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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(i,a){s.relayAuthDefaultPolicy&&(yield s.relayAuthDefaultPolicy(i,a))});return function(i,a){return 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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(A){const S=yield A.relayList();if(S){s.debug("Connecting to user relays",{npub:A.npub,relays:S.relays});for(const T of S.relays){let k=s.pool.relays.get(T);k||(k=new NDKRelay(T),s.pool.addRelay(k))}}else s.debug("No relay list found for user",{npub:A.npub})});return function(S){return C.apply(this,arguments)}}(),a=function(){var C=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(A){const S=yield s.fetchEvents([{kinds:[1e4],authors:[A.pubkey]},{kinds:[3e4],authors:[A.pubkey],"#d":["mute"],limit:1}]);if(S)for(const T of S){const k=lists_default.from(T);for(const R of k.items)s.mutedIds.set(R[1],R[0])}else s.debug("No mute list found for user",{npub:A.npub})});return function(S){return C.apply(this,arguments)}}(),c=[];this.autoConnectUserRelays&&c.push(i),this.autoFetchUserMutelist&&c.push(a);const y=function(){var C=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(A){for(const S of c)yield S(A)});return function(S){return C.apply(this,arguments)}}(),w=this.outboxPool||this.pool;w.connectedRelays.length>0?y(o):(this.debug("Waiting for connection to main relays"),w.once("relay:ready",C=>{this.debug("New relay ready",C?.url),y(o)}))}else o||(this.mutedIds=new Map)}get signer(){return this._signer}set signer(o){this._signer=o,this.emit("signer:ready",o),o?.user().then(s=>{s.ndk=this,this.activeUser=s})}connect(o){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){s._signer&&s.autoConnectUserRelays&&(s.debug("Attempting to connect to user relays specified by signer"),s._signer.relays)&&(yield s._signer.relays()).forEach(i=>s.pool.addRelay(i));const 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_angular_builders_custom_webpack_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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return i.debug("Deprecated: Use `event.publish()` instead"),o.publish(s,r)})()}fetchEvent(o,s,r){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){let a,c;if(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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return new Promise(a=>{const c=new Map,y=i.subscribe(o,{...s||{},closeOnEose:!0},r,!1),w=C=>{const A=C.deduplicationKey(),S=c.get(A);S&&(C=dedup(S,C)),C.ndk=i,c.set(A,C)};y.on("event",w),y.on("event:dup",w),y.on("eose",()=>{a(new Set(c.values()))}),y.start()})})()}assertSigner(){if(!this.signer)throw this.emit("signerRequired"),new Error("Signer required")}getNip96(o){return new Nip96(o,this)}};const LOCAL_STORE_KEY="__nostrlogin_nip46",LOGGED_IN_ACCOUNTS="__nostrlogin_accounts",RECENT_ACCOUNTS="__nostrlogin_recent",OUTBOX_RELAYS$1=["wss://purplepag.es","wss://relay.nos.social","wss://user.kindpag.es","wss://relay.damus.io","wss://nos.lol"],DEFAULT_SIGNUP_RELAYS=["wss://relay.damus.io/","wss://nos.lol/","wss://relay.primal.net/"],localStorageSetItem=(o,s)=>{localStorage.setItem(o,s)},localStorageGetItem=o=>{const s=window.localStorage.getItem(o);if(s)try{return JSON.parse(s)}catch{}return null},localStorageRemoveItem=o=>{localStorage.removeItem(o)},fetchProfile=function(){var o=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(s,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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(s,r,i,a){const c={name:s.name},y=new NDKEvent(r,{kind:0,created_at:Math.floor(Date.now()/1e3),pubkey:s.pubkey,content:JSON.stringify(c),tags:[]});window.location.hostname&&y.tags.push(["client",window.location.hostname]);const w=new NDKEvent(r,{kind:10002,created_at:Math.floor(Date.now()/1e3),pubkey:s.pubkey,content:"",tags:[]}),C=(a||"").split(",").map(A=>A.trim()).filter(A=>A.startsWith("ws"));C.length||C.push(...DEFAULT_SIGNUP_RELAYS);for(const A of C)w.tags.push(["r",A]);yield y.sign(i),console.log("signed profile",y),yield w.sign(i),console.log("signed relays",w),yield y.publish(NDKRelaySet.fromRelayUrls(OUTBOX_RELAYS$1,r)),console.log("published profile",y),yield w.publish(NDKRelaySet.fromRelayUrls(OUTBOX_RELAYS$1,r)),console.log("published relays",w)});return function(r,i,a,c){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_angular_builders_custom_webpack_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),A=yield C.json(),T=A.nip46[A.names._],k=yield fetch(w),R=(yield k.json()).names[i];if(!T.length)throw new Error("Bunker relay not provided");return`bunker://${R}?relay=${T[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_angular_builders_custom_webpack_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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!s||!s.includes("@"))return;const[c,y]=s.toLocaleLowerCase().split("@");if(!c)return;if(!new RegExp(/^[\w-.]+@([\w-]+\.)+[\w-]{2,8}$/g).test(s))return void(i="Invalid name");if(!y)return void(i="Select service");const w=`https://${y}/.well-known/nostr.json?name=${c.toLowerCase()}`;try{const C=yield fetch(w),A=yield C.json();if(A.names[c])return void(a=A.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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return document.location.origin+"/favicon.ico"});return function(){return o.apply(this,arguments)}}();class NostrRpc extends NDKNostrRpc{pubkey;_ndk;_signer;requests=new Set;sub;_useNip44=!1;constructor(s,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_angular_builders_custom_webpack_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_angular_builders_custom_webpack_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:A,result:S,error:T}=y;return C?{id:w,pubkey:s.pubkey,method:C,params:A,event:s}:{id:w,result:S,error:T,event:s}})()}parseNostrConnectReply(s,r){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const a=new NDKEvent(i._ndk,s),c=yield i.parseEvent(a);if(console.log("nostr connect parsedEvent",c),c.method)throw new Error("Bad nostr connect reply");if(c.result===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_angular_builders_custom_webpack_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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(C){try{const A=yield r.parseEvent(C);if(!A.method){const S=A;if("auth_url"===S.result)return;"ack"===S.result||S.result===s?c(C.pubkey):y(S.error)}}catch(A){console.log("error parsing event",A,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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return new Promise((a,c)=>{i.sendRequest(s.pubkey,"connect",[s.pubkey,s.token||"",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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const w=y.getId();y.setResponseHandler(w,c),yield(yield y.createRequestEvent(w,s,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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){y.requests.add(s);const w=yield y._signer.user(),C=y._ndk.getUser({pubkey:r}),S=new NDKEvent(y._ndk,{kind:c,content:JSON.stringify({id:s,method:i,params:a}),tags:[["p",r]],pubkey:w.pubkey}),T=y._useNip44&&"create_account"!==i?y._signer.encryptNip44:y._signer.encrypt;return S.content=yield T.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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return i.peerOrigin?new NDKSubscription(i._ndk,{},{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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(a){if(console.log("iframe-nip46 got response",a.data),"string"==typeof a.data&&a.data.startsWith("errorNoKey")){const c=a.data.split(":")[1],{id:y="",pubkey:w=""}=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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const w=y.getId(),C=yield y.createRequestEvent(w,s,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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(w){const C=new URL(r).hostname,A=new URL(w.origin).hostname;(A===C||A.endsWith("."+C))&&Array.isArray(w.data)&&w.data.length&&i.messages.includes(w.data[0])&&(console.log(new Date,"got ready message from",w.origin,w.data),window.removeEventListener("message",c),a(w.data))});return function(C){return y.apply(this,arguments)}}();window.addEventListener("message",c)})}wait(){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){console.log(new Date,"waiting for",s.messages);const 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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){s.banner&&(s.iframeReady&&(yield s.iframeReady.wait(),s.iframeReady=void 0),s.banner.isLoading=!1,s.banner.notify={mode:""})})()}onUpdateAccounts(s){this.banner&&(this.banner.accounts=s)}onDarkMode(s){this.banner&&(this.banner.darkMode=s)}launchAuthBanner(s){var 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_angular_builders_custom_webpack_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 A=0;Adecoder.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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(s.signerPromise)try{yield s.signerPromise}catch{}if(s.readyPromise)try{yield s.readyPromise}catch{}})()}nostrConnect(s,{domain:r="",link:i="",iframeUrl:a="",importConnect:c=!1}={}){var y=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const w={authMethod:"connect",pubkey:"",sk:y.nostrConnectKey,domain: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_angular_builders_custom_webpack_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_angular_builders_custom_webpack_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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const i=generatePrivateKey(),a={pubkey:getPublicKey(i),sk:i,name:s,authMethod:"local"};console.log(`localSignup name: ${s}`),yield r.setLocal(a,!0)})()}setLocal(s,r){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){i.releaseSigner(),i.localSigner=new PrivateKeySigner(s.sk),r&&(yield createProfile(s,i.profileNdk,i.localSigner,i.params.optionsModal.signupRelays)),i.onAuth("login",s)})()}prepareImportUrl(s){if("otp"===this.params.userInfo?.authMethod)return s+"&import=true";if(!this.localSigner||"local"!==this.params.userInfo?.authMethod)throw new Error("Most be local keys");return s+"#import="+nip19_exports.nsecEncode(this.localSigner.privateKey)}importAndConnect(s){var r=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const{relay:i,domain:a,link:c,iframeUrl:y}=s;if(!a)throw new Error("Domain required");const w=yield 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_angular_builders_custom_webpack_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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const[i,a]=s.split("@"),c=yield getBunkerUrl(`_@${a}`,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 A=yield new Promise(S=>{r.signer.rpc.sendRequest(y.pubkey,"create_account",C,void 0,S)});if(console.log("create_account pubkey",A),"error"===A.result)throw new Error(A.error);return{bunkerUrl:`bunker://${A.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_angular_builders_custom_webpack_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_angular_builders_custom_webpack_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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(s.readyCallback)throw new Error("Already started");s.readyPromise=new Promise(r=>s.readyCallback=r)})()}endAuth(){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(console.log("endAuth",s.params.userInfo),s.params.userInfo&&s.params.userInfo.iframeUrl){const{iframe: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_angular_builders_custom_webpack_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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(c.signerPromise)try{yield c.signerPromise}catch{}console.log("initSigner info",s);const y=s.iframeUrl?new URL(s.iframeUrl).origin:void 0;return y&&(c.starterReady=new ReadyListener(["starterDone","starterError"],y)),c.emit("onIframeUrl",s.iframeUrl),c.signerPromise=new Promise(function(){var w=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(C,A){try{if(s.relays&&!s.iframeUrl)for(const R of s.relays)c.ndk.addExplicitRelay(R,void 0);yield c.ndk.connect();const S=getPublicKey(s.sk),T=new PrivateKeySigner(s.sk);c.signer=new NDKNip46Signer(c.ndk,s.pubkey,T);const k=new IframeNostrRpc(c.ndk,S,T,y);if(k.setUseNip44(!0),c.signer.rpc=k,k.on(`iframeRestart-${s.pubkey}`,(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const R=s.iframeUrl+(s.iframeUrl.includes("?")?"&":"?")+"pubkey="+s.pubkey+"&rebind="+S;c.emit("iframeRestart",{pubkey:s.pubkey,iframeUrl:R})})),r||k.on("authUrl",R=>{console.log("nostr login auth url",R),c.emit("onAuthUrl",{url:R,iframeUrl:s.iframeUrl,eventToAddAccount:a})}),r){const R=yield c.listen(s,k);c.signer.remotePubkey=R,c.signer.remoteUser=new NDKUser({pubkey:R}),s.pubkey=R,C(R)}else i&&(yield k.connect(s,c.params.optionsModal.perms)),C(void 0)}catch(S){console.log("initSigner failure",S),c.signer=null,A(S)}});return function(C,A){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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){try{const C=bunkerUrlToInfo(i,a);if(isBunkerUrl(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 A=!!w.params.userInfo;console.log("authNip46",s,C),yield w.initSigner(C,{connect:!0,eventToAddAccount:A}),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_angular_builders_custom_webpack_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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return new Promise((c,y)=>{a.signer.rpc.sendRequest(a.signer.remotePubkey,s,[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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return i.localSigner?i.localSigner.encrypt(new NDKUser({pubkey:s}),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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return i.localSigner?i.localSigner.decrypt(new NDKUser({pubkey:s}),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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return i.localSigner?i.nip44Codec.encrypt(i.localSigner.privateKey,s,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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return i.localSigner?i.nip44Codec.decrypt(i.localSigner.privateKey,s,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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(s.launcherPromise){try{yield s.launcherPromise}catch{}s.launcherPromise=void 0}})()}launch(s){var r=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(_e){r.modal&&(r.modal.isLoading=!1),yield r.authNostrService.endAuth(),i.close(),r.modal=null,_e()});return function(pe){return be.apply(this,arguments)}}(),C=function(){var be=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(_e,pe){r.modal&&(r.modal.isLoading=!0);try{pe&&!pe.start||(yield r.authNostrService.startAuth()),yield _e(),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)}}(),A=function(){var be=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(_e,pe){yield C((0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const Te=yield getBunkerUrl(_e,r.params.optionsModal);yield r.authNostrService.authNip46("login",{name:_e,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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(_e){yield C((0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const{bunkerUrl:pe,sk:Te}=yield r.authNostrService.createAccount(_e);yield r.authNostrService.authNip46("signup",{name:_e,bunkerUrl:pe,sk:Te})}))});return function(pe){return be.apply(this,arguments)}}(),T=function(){var be=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){try{yield navigator.clipboard.writeText(r.authNostrService.exportKeys()),localStorageSetItem("backupKey","true")}catch(_e){console.error("Failed to copy to clipboard: ",_e)}});return function(){return be.apply(this,arguments)}}(),k=function(){var be=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(_e){yield C((0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const{iframeUrl:pe}=_e,Te=r.authNostrService.prepareImportUrl(_e.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(_e)}))});return function(pe){return be.apply(this,arguments)}}(),R=function(){var be=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(_e){yield C((0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const{relay:pe,domain:Te,link:Ce,iframeUrl:Ne}=_e||{};console.log("nostrConnect",_e,pe,Te,Ce,Ne),r.modal&&(Ne&&(r.modal.authUrl=Ce,r.modal.iframeUrl=Ne,r.modal.isLoading=!1,console.log("nostrconnect authUrl",r.modal.authUrl,r.modal.iframeUrl)),_e||(r.modal.isLoading=!1)),yield r.authNostrService.nostrConnect(pe,{domain:Te,link:Ce,iframeUrl:Ne})}))});return function(pe){return be.apply(this,arguments)}}(),G=function(){var be=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(_e){yield C((0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!_e)throw new Error("Please enter some nickname");yield r.authNostrService.localSignup(_e)}))});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=>{A(be.detail)}),r.modal.addEventListener("nlSignup",be=>{S(be.detail)}),r.modal.addEventListener("nlLocalSignup",be=>{G(be.detail)}),r.modal.addEventListener("nlImportAccount",be=>{k(be.detail)}),r.modal.addEventListener("nlExportKeys",be=>{T()}),r.modal.addEventListener("handleLogoutBanner",()=>{r.emit("onLogoutBanner")}),r.modal.addEventListener("nlNostrConnect",be=>{R(be.detail)}),r.modal.addEventListener("nlNostrConnectDefault",()=>{R()}),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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(_e){const pe=_e.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");A(Te,pe.domain)}});return function(_e){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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(_e){let pe="";if(_e.includes("@")){const{error:Te,pubkey:Ce}=yield checkNip05(_e);if(!Ce)throw new Error(Te);pe=Ce}else if(_e.startsWith("npub")){const{type:Te,data:Ce}=nip19_exports.decode(_e);if("npub"!==Te)throw new Error("Bad npub");pe=Ce}else 64===_e.trim().length&&(pe=_e.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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(_e){yield C((0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const pe=_e.detail,Te=yield Z(pe);r.authNostrService.setReadOnly(Te)}))});return function(_e){return be.apply(this,arguments)}}()),r.modal.addEventListener("nlLoginExtension",(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!r.extensionService.hasExtension())throw new Error("No extension");yield C((0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(_e){yield C((0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!r.modal)return;const pe=_e.detail,Te=yield Z(pe),Ce=r.opt.otpRequestUrl+(r.opt.otpRequestUrl.includes("?")?"&":"?")+"pubkey="+Te,Ne=yield fetch(Ce);if(200!==Ne.status)throw console.warn("nostr-login: bad otp reply",Ne),new Error("Failed to send DM");r.modal.isOTP=!0,a=Te,r.modal.isLoading=!1}),{start:!0})});return function(_e){return be.apply(this,arguments)}}()),r.modal.addEventListener("nlLoginOTPCode",function(){var be=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(_e){yield C((0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!r.modal)return;const pe=_e.detail,Te=r.opt.otpReplyUrl+(r.opt.otpRequestUrl.includes("?")?"&":"?")+"pubkey="+a+"&code="+pe,Ce=yield fetch(Te);if(200!==Ce.status)throw console.warn("nostr-login: bad otp reply",Ce),new Error("Invalid code");const Ne=yield Ce.text();r.authNostrService.setOTP(a,Ne),r.modal.isOTP=!1}),{end:!0})});return function(_e){return be.apply(this,arguments)}}()),r.modal.addEventListener("nlCheckSignup",function(){var be=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(_e){const{available:pe,taken:Te,error:Ce}=yield checkNip05(_e.detail);r.modal&&(r.modal.error=String(Ce),!Ce&&Te&&(r.modal.error="Already taken"),r.modal.signupNameIsAvailable=pe)});return function(_e){return be.apply(this,arguments)}}()),r.modal.addEventListener("nlCheckLogin",function(){var be=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(_e){const{available:pe,taken:Te,error:Ce}=yield checkNip05(_e.detail);r.modal&&(r.modal.error=String(Ce),pe&&(r.modal.error="Name not found"),r.modal.loginIsGood=Te)});return function(_e){return be.apply(this,arguments)}}());const te=()=>{r.modal&&(r.modal.isLoading=!1),i.close(),y(new Error("Cancelled"))};r.modal.addEventListener("stopFetchHandler",te),r.modal.addEventListener("nlCloseModal",te),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_angular_builders_custom_webpack_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_angular_builders_custom_webpack_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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){i.nostrExtension=window.nostr,window.nostr=s,"extension"===i.params.userInfo?.authMethod&&(yield i.trySetExtensionForPubkey(i.params.userInfo.pubkey)),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_angular_builders_custom_webpack_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_angular_builders_custom_webpack_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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return s.setExtensionReadPubkey()})()}unsetExtension(s){window.nostr===this.nostrExtension&&(window.nostr=s)}getExtension(){return this.nostrExtension}hasExtension(){return!!this.nostrExtension}}class NostrParams{userInfo;optionsModal;constructor(){this.userInfo=null,this.optionsModal={theme:"default",startScreen:"welcome",devOverrideBunkerOrigin:""}}}class Popup{popup=null;constructor(){}openPopup(s){if((!this.popup||this.popup.closed)&&(this.popup=window.open(s,"_blank","width=400,height=700"),console.log("popup",this.popup),!this.popup))throw new Error("Popup blocked. Try again, please!")}closePopup(){try{this.popup?.close(),this.popup=null}catch{}}}const CALL_TIMEOUT=5e3;class ProcessManager extends lib$1.EventEmitter{callCount=0;callTimer;constructor(){super()}onAuthUrl(){this.callTimer&&clearTimeout(this.callTimer)}onIframeUrl(){this.callTimer&&clearTimeout(this.callTimer)}wait(s){var r=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){let i,a;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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){yield s.authNostrService.waitReady(),yield s.modalManager.waitReady()}),function(){return i.apply(this,arguments)}),getUserInfo:()=>this.params.userInfo,getSigner:()=>{if("readOnly"===this.params.userInfo.authMethod)throw new Error("Read only");return"extension"===this.params.userInfo.authMethod?this.extensionService.getExtension():this.authNostrService},launch:()=>this.launch(),wait:i=>this.processManager.wait(i)};var i;this.nostr=new Nostr(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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(a){s.switchAccount(a)});return function(a){return i.apply(this,arguments)}}()),this.modalManager.on("onLogoutBanner",function(){var i=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(a){logout()});return function(a){return i.apply(this,arguments)}}()),this.bannerManager.on("onConfirmLogout",(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){console.log(4),s.launch("confirm-logout")})),this.modalManager.on("updateAccounts",()=>{this.updateAccounts()}),this.bannerManager.on("logout",()=>{logout()}),this.bannerManager.on("onAuthUrlClick",i=>{this.openPopup(i)}),this.bannerManager.on("onSwitchAccount",function(){var i=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(a){s.switchAccount(a)});return function(a){return i.apply(this,arguments)}}()),this.bannerManager.on("import",()=>{this.launch("import")}),this.extensionService.on("extensionLogin",i=>{this.authNostrService.setExtension(i)}),this.extensionService.on("extensionLogout",()=>{logout()}),this.bannerManager.on("launch",i=>{this.launch(i)})}openPopup(s){this.popupManager.openPopup(s)}switchAccount(s){var r=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(console.log("nostr login switch to info",s),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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(i){s.extensionService.startCheckingExtension(s.nostr),window.nostr=s.nostr,s.modalManager.connectModals(i),s.bannerManager.launchAuthBanner(i),i&&(s.params.optionsModal={...i});try{const a=localStorageGetCurrent();if(a){if(!a.pubkey)throw new Error("Bad stored info");yield s.switchAccount(a)}}catch(a){console.log("nostr login init error",a),yield logout()}s.updateAccounts()}),function(i){return r.apply(this,arguments)}})();logout=(()=>{var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){s.extensionService.unsetExtension(s.nostr),yield s.authNostrService.logout()})})();setDarkMode=s=>{localStorageSetItem("nl-dark-mode",`${s}`),this.bannerManager.onDarkMode(s),this.modalManager.onDarkMode(s)}}const initializer=new NostrLoginInitializer,{init,launch,logout,setDarkMode}=initializer;document.addEventListener("nlLogout",logout),document.addEventListener("nlLaunch",o=>{launch(o.detail||"")}),document.addEventListener("nlDarkMode",o=>{setDarkMode(!!o.detail)})},720:(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:()=>V,My:()=>pn,Ph:()=>an,lX:()=>Yn,Id:()=>Ot,fg:()=>mt,qj:()=>Gt,aT:()=>en,lq:()=>Sn,z:()=>Xt,Q5:()=>Ln});var a=r(3014);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 A(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 R="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),_e=(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 ke(b){if("string"==typeof b&&(b=function le(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 ot(b){const x=z=>b().update(ke(z)).digest(),M=b();return x.outputLen=M.outputLen,x.blockLen=M.blockLen,x.create=()=>b(),x}function wn(b=32){if(R&&"function"==typeof R.getRandomValues)return R.getRandomValues(new Uint8Array(b));throw new Error("crypto.getRandomValues must be defined")}class En 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){A(this);const{view:M,buffer:z,blockLen:J}=this,ye=(x=ke(x)).length;for(let Le=0;LeJ-Le&&(this.process(z,0),Le=0);for(let Ht=Le;Ht>J&ye),je=Number(M&ye),Ct=z?0:4;b.setUint32(x+(z?4:0),Le,z),b.setUint32(x+Ct,je,z)})(z,J-8,BigInt(8*this.length),ye),this.process(z,0);const je=be(x),it=this.outputLen;if(it%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const Ct=it/4,Kt=this.get();if(Ct>Kt.length)throw new Error("_sha2: outputLen bigger than state");for(let Ht=0;Htb&x^~b&M,wt=(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]),Be=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Ut=new Uint32Array(64);class Ke extends En{constructor(){super(64,32,8,!1),this.A=0|Be[0],this.B=0|Be[1],this.C=0|Be[2],this.D=0|Be[3],this.E=0|Be[4],this.F=0|Be[5],this.G=0|Be[6],this.H=0|Be[7]}get(){const{A:x,B:M,C:z,D:J,E:ye,F:Le,G:je,H:it}=this;return[x,M,z,J,ye,Le,je,it]}set(x,M,z,J,ye,Le,je,it){this.A=0|x,this.B=0|M,this.C=0|z,this.D=0|J,this.E=0|ye,this.F=0|Le,this.G=0|je,this.H=0|it}process(x,M){for(let Ht=0;Ht<16;Ht++,M+=4)Ut[Ht]=x.getUint32(M,!1);for(let Ht=16;Ht<64;Ht++){const dn=Ut[Ht-15],vn=Ut[Ht-2],rn=_e(dn,7)^_e(dn,18)^dn>>>3,Qt=_e(vn,17)^_e(vn,19)^vn>>>10;Ut[Ht]=Qt+Ut[Ht-7]+rn+Ut[Ht-16]|0}let{A:z,B:J,C:ye,D:Le,E:je,F:it,G:Ct,H:Kt}=this;for(let Ht=0;Ht<64;Ht++){const vn=Kt+(_e(je,6)^_e(je,11)^_e(je,25))+Ze(je,it,Ct)+ze[Ht]+Ut[Ht]|0,Qt=(_e(z,2)^_e(z,13)^_e(z,22))+wt(z,J,ye)|0;Kt=Ct,Ct=it,it=je,je=Le+vn|0,Le=ye,ye=J,J=z,z=vn+Qt|0}z=z+this.A|0,J=J+this.B|0,ye=ye+this.C|0,Le=Le+this.D|0,je=je+this.E|0,it=it+this.F|0,Ct=Ct+this.G|0,Kt=Kt+this.H|0,this.set(z,J,ye,Le,je,it,Ct,Kt)}roundClean(){Ut.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const Xe=ot(()=>new Ke),se=(BigInt(0),BigInt(1)),qe=BigInt(2),Nt=b=>b instanceof Uint8Array,tn=Array.from({length:256},(b,x)=>x.toString(16).padStart(2,"0"));function pn(b){if(!Nt(b))throw new Error("Uint8Array expected");let x="";for(let M=0;Mz+J.length,0));let M=0;return b.forEach(z=>{if(!Nt(z))throw new Error("Uint8Array expected");x.set(z,M),M+=z.length}),x}const V=b=>(qe<new Uint8Array(b),bt=b=>Uint8Array.from(b);function mt(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=Re(b),J=Re(b),ye=0;const Le=()=>{z.fill(1),J.fill(0),ye=0},je=(...Ht)=>M(J,z,...Ht),it=(Ht=Re())=>{J=je(bt([0]),Ht),z=je(),0!==Ht.length&&(J=je(bt([1]),Ht),z=je())},Ct=()=>{if(ye++>=1e3)throw new Error("drbg: tried 1000 values");let Ht=0;const dn=[];for(;Ht{let vn;for(Le(),it(Ht);!(vn=dn(Ct()));)it();return Le(),vn}}const At={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 Ln(b,x,M={}){const z=(J,ye,Le)=>{const je=At[ye];if("function"!=typeof je)throw new Error(`Invalid validator "${ye}", expected function`);const it=b[J];if(!(Le&&void 0===it||je(it,b)))throw new Error(`Invalid param ${String(J)}=${it} (${typeof it}), 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 Zt=BigInt(0),mn=BigInt(1),In=BigInt(2),Bn=BigInt(3),Hn=BigInt(4),xr=BigInt(5),ti=BigInt(8);function $t(b,x){const M=b%x;return M>=Zt?M:x+M}function Ee(b,x,M){if(M<=Zt||x 0");if(M===mn)return Zt;let z=mn;for(;x>Zt;)x&mn&&(z=z*b%M),b=b*b%M,x>>=mn;return z}function at(b,x,M){let z=b;for(;x-- >Zt;)z*=z,z%=M;return z}function Fe(b,x){if(b===Zt||x<=Zt)throw new Error(`invert: expected positive integers, got n=${b} mod=${x}`);let M=$t(b,x),z=x,J=Zt,ye=mn,Le=mn,je=Zt;for(;M!==Zt;){const Ct=z/M,Kt=z%M,Ht=J-Le*Ct,dn=ye-je*Ct;z=M,M=Kt,J=Le,ye=je,Le=Ht,je=dn}if(z!==mn)throw new Error("invert: does not exist");return $t(J,x)}BigInt(9),BigInt(16);const _n=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function sn(b,x){const M=void 0!==x?x:b.toString(2).length;return{nBitLength:M,nByteLength:Math.ceil(M/8)}}function zn(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 hr(b){const x=zn(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=ke(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 Le=0;Lenew 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){Ln(b,_n.reduce((z,J)=>(z[J]="function",z),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"}))}(b.Fp),Ln(b,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...sn(b.n,b.nBitLength),...b,p:b.Fp.ORDER})}const{Ph:Co,aT:ks}=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?ks(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:Le,l:je}=eo._parseInt(ye);if(je.length)throw new x("Invalid signature: left bytes after parsing");return{r:J,s:Le}},hexFromSig(b){const x=Ct=>8&Number.parseInt(Ct[0],16)?"00"+Ct:Ct,M=Ct=>{const Kt=Ct.toString(16);return 1&Kt.length?`0${Kt}`:Kt},z=x(M(b.s)),J=x(M(b.r)),ye=z.length/2,Le=J.length/2,je=M(ye),it=M(Le);return`30${M(Le+ye+4)}02${it}${J}02${je}${z}`}},oo=BigInt(0),Bi=BigInt(1),et=(BigInt(2),BigInt(3));function tt(b){const x=function me(b){const x=bo(b);return Ln(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 je(er){return $t(er,z)}function it(er){return Fe(er,z)}const{ProjectivePoint:Ct,normPrivateKeyToScalar:Kt,weierstrassEquation:Ht,isWithinCurveOrder:dn}=function xt(b){const x=function Xo(b){const x=bo(b);Ln(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||((rn,Qt,Jt)=>{const Dn=Qt.toAffine();return Ot(Uint8Array.from([4]),M.toBytes(Dn.x),M.toBytes(Dn.y))}),J=x.fromBytes||(rn=>{const Qt=rn.subarray(1);return{x:M.fromBytes(Qt.subarray(0,M.BYTES)),y:M.fromBytes(Qt.subarray(M.BYTES,2*M.BYTES))}});function ye(rn){const{a:Qt,b:Jt}=x,Dn=M.sqr(rn),Mn=M.mul(Dn,rn);return M.add(M.add(Mn,M.mul(rn,Qt)),Jt)}if(!M.eql(M.sqr(x.Gy),ye(x.Gx)))throw new Error("bad generator point: equation left != right");function Le(rn){return"bigint"==typeof rn&&ooM.eql(rr,M.ZERO);return Mn(Jt)&&Mn(Dn)?Ht.ZERO:new Ht(Jt,Dn,M.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(Qt){const Jt=M.invertBatch(Qt.map(Dn=>Dn.pz));return Qt.map((Dn,Mn)=>Dn.toAffine(Jt[Mn])).map(Ht.fromAffine)}static fromHex(Qt){const Jt=Ht.fromAffine(J(Gt("pointHex",Qt)));return Jt.assertValidity(),Jt}static fromPrivateKey(Qt){return Ht.BASE.multiply(it(Qt))}_setWindowSize(Qt){this._WINDOW_SIZE=Qt,Ct.delete(this)}assertValidity(){if(this.is0()){if(x.allowInfinityPoint&&!M.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:Qt,y:Jt}=this.toAffine();if(!M.isValid(Qt)||!M.isValid(Jt))throw new Error("bad point: x or y not FE");const Dn=M.sqr(Jt),Mn=ye(Qt);if(!M.eql(Dn,Mn))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:Qt}=this.toAffine();if(M.isOdd)return!M.isOdd(Qt);throw new Error("Field doesn't support isOdd")}equals(Qt){Kt(Qt);const{px:Jt,py:Dn,pz:Mn}=this,{px:rr,py:ar,pz:Br}=Qt,yr=M.eql(M.mul(Jt,Br),M.mul(rr,Mn)),Nr=M.eql(M.mul(Dn,Br),M.mul(ar,Mn));return yr&&Nr}negate(){return new Ht(this.px,M.neg(this.py),this.pz)}double(){const{a:Qt,b:Jt}=x,Dn=M.mul(Jt,et),{px:Mn,py:rr,pz:ar}=this;let Br=M.ZERO,yr=M.ZERO,Nr=M.ZERO,Vr=M.mul(Mn,Mn),Ci=M.mul(rr,rr),fi=M.mul(ar,ar),li=M.mul(Mn,rr);return li=M.add(li,li),Nr=M.mul(Mn,ar),Nr=M.add(Nr,Nr),Br=M.mul(Qt,Nr),yr=M.mul(Dn,fi),yr=M.add(Br,yr),Br=M.sub(Ci,yr),yr=M.add(Ci,yr),yr=M.mul(Br,yr),Br=M.mul(li,Br),Nr=M.mul(Dn,Nr),fi=M.mul(Qt,fi),li=M.sub(Vr,fi),li=M.mul(Qt,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),yr=M.add(yr,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 Ht(Br,yr,Nr)}add(Qt){Kt(Qt);const{px:Jt,py:Dn,pz:Mn}=this,{px:rr,py:ar,pz:Br}=Qt;let yr=M.ZERO,Nr=M.ZERO,Vr=M.ZERO;const Ci=x.a,fi=M.mul(x.b,et);let li=M.mul(Jt,rr),Ji=M.mul(Dn,ar),ji=M.mul(Mn,Br),qi=M.add(Jt,Dn),er=M.add(rr,ar);qi=M.mul(qi,er),er=M.add(li,Ji),qi=M.sub(qi,er),er=M.add(Jt,Mn);let br=M.add(rr,Br);return er=M.mul(er,br),br=M.add(li,ji),er=M.sub(er,br),br=M.add(Dn,Mn),yr=M.add(ar,Br),br=M.mul(br,yr),yr=M.add(Ji,ji),br=M.sub(br,yr),Vr=M.mul(Ci,er),yr=M.mul(fi,ji),Vr=M.add(yr,Vr),yr=M.sub(Ji,Vr),Vr=M.add(Ji,Vr),Nr=M.mul(yr,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(br,er),yr=M.mul(qi,yr),yr=M.sub(yr,li),li=M.mul(qi,Ji),Vr=M.mul(br,Vr),Vr=M.add(Vr,li),new Ht(yr,Nr,Vr)}subtract(Qt){return this.add(Qt.negate())}is0(){return this.equals(Ht.ZERO)}wNAF(Qt){return vn.wNAFCached(this,Ct,Qt,Jt=>{const Dn=M.invertBatch(Jt.map(Mn=>Mn.pz));return Jt.map((Mn,rr)=>Mn.toAffine(Dn[rr])).map(Ht.fromAffine)})}multiplyUnsafe(Qt){const Jt=Ht.ZERO;if(Qt===oo)return Jt;if(je(Qt),Qt===Bi)return this;const{endo:Dn}=x;if(!Dn)return vn.unsafeLadder(this,Qt);let{k1neg:Mn,k1:rr,k2neg:ar,k2:Br}=Dn.splitScalar(Qt),yr=Jt,Nr=Jt,Vr=this;for(;rr>oo||Br>oo;)rr&Bi&&(yr=yr.add(Vr)),Br&Bi&&(Nr=Nr.add(Vr)),Vr=Vr.double(),rr>>=Bi,Br>>=Bi;return Mn&&(yr=yr.negate()),ar&&(Nr=Nr.negate()),Nr=new Ht(M.mul(Nr.px,Dn.beta),Nr.py,Nr.pz),yr.add(Nr)}multiply(Qt){je(Qt);let Dn,Mn,Jt=Qt;const{endo:rr}=x;if(rr){const{k1neg:ar,k1:Br,k2neg:yr,k2:Nr}=rr.splitScalar(Jt);let{p:Vr,f:Ci}=this.wNAF(Br),{p:fi,f:li}=this.wNAF(Nr);Vr=vn.constTimeNegate(ar,Vr),fi=vn.constTimeNegate(yr,fi),fi=new Ht(M.mul(fi.px,rr.beta),fi.py,fi.pz),Dn=Vr.add(fi),Mn=Ci.add(li)}else{const{p:ar,f:Br}=this.wNAF(Jt);Dn=ar,Mn=Br}return Ht.normalizeZ([Dn,Mn])[0]}multiplyAndAddUnsafe(Qt,Jt,Dn){const Mn=Ht.BASE,rr=(Br,yr)=>yr!==oo&&yr!==Bi&&Br.equals(Mn)?Br.multiply(yr):Br.multiplyUnsafe(yr),ar=rr(this,Jt).add(rr(Qt,Dn));return ar.is0()?void 0:ar}toAffine(Qt){const{px:Jt,py:Dn,pz:Mn}=this,rr=this.is0();null==Qt&&(Qt=rr?M.ONE:M.inv(Mn));const ar=M.mul(Jt,Qt),Br=M.mul(Dn,Qt),yr=M.mul(Mn,Qt);if(rr)return{x:M.ZERO,y:M.ZERO};if(!M.eql(yr,M.ONE))throw new Error("invZ was invalid");return{x:ar,y:Br}}isTorsionFree(){const{h:Qt,isTorsionFree:Jt}=x;if(Qt===Bi)return!0;if(Jt)return Jt(Ht,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:Qt,clearCofactor:Jt}=x;return Qt===Bi?this:Jt?Jt(Ht,this):this.multiplyUnsafe(x.h)}toRawBytes(Qt=!0){return this.assertValidity(),z(Ht,this,Qt)}toHex(Qt=!0){return pn(this.toRawBytes(Qt))}}Ht.BASE=new Ht(x.Gx,x.Gy,M.ONE),Ht.ZERO=new Ht(M.ZERO,M.ONE,M.ZERO);const dn=x.nBitLength,vn=function so(b,x){const M=(J,ye)=>{const Le=ye.negate();return J?Le:ye},z=J=>({windows:Math.ceil(x/J)+1,windowSize:2**(J-1)});return{constTimeNegate:M,unsafeLadder(J,ye){let Le=b.ZERO,je=J;for(;ye>oi;)ye&ts&&(Le=Le.add(je)),je=je.double(),ye>>=ts;return Le},precomputeWindow(J,ye){const{windows:Le,windowSize:je}=z(ye),it=[];let Ct=J,Kt=Ct;for(let Ht=0;Ht>=vn,Jt>it&&(Jt-=dn,Le+=ts);const Dn=Qt,Mn=Qt+Math.abs(Jt)-1,ar=Jt<0;0===Jt?Kt=Kt.add(M(rn%2!=0,ye[Dn])):Ct=Ct.add(M(ar,ye[Mn]))}return{p:Ct,f:Kt}},wNAFCached(J,ye,Le,je){const it=J._WINDOW_SIZE||1;let Ct=ye.get(J);return Ct||(Ct=this.precomputeWindow(J,it),1!==it&&ye.set(J,je(Ct))),this.wNAF(it,Ct,Le)}}}(Ht,x.endo?Math.ceil(dn/2):dn);return{CURVE:x,ProjectivePoint:Ht,normPrivateKeyToScalar:it,weierstrassEquation:ye,isWithinCurveOrder:Le}}({...x,toBytes(er,br,Zr){const pi=br.toAffine(),Er=M.toBytes(pi.x),Vi=Ot;return Zr?Vi(Uint8Array.from([br.hasEvenY()?2:3]),Er):Vi(Uint8Array.from([4]),Er,M.toBytes(pi.y))},fromBytes(er){const br=er.length,Zr=er[0],pi=er.subarray(1);if(br!==J||2!==Zr&&3!==Zr){if(br===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 ${br} was invalid. Expected ${J} compressed bytes or ${ye} uncompressed bytes`)}{const Er=an(pi);if(!function Le(er){return oopn(Sn(er,x.nByteLength));function rn(er){return er>z>>Bi}const Jt=(er,br,Zr)=>an(er.slice(br,Zr));class Dn{constructor(br,Zr,pi){this.r=br,this.s=Zr,this.recovery=pi,this.assertValidity()}static fromCompact(br){const Zr=x.nByteLength;return br=Gt("compactSignature",br,2*Zr),new Dn(Jt(br,0,Zr),Jt(br,Zr,2*Zr))}static fromDER(br){const{r:Zr,s:pi}=eo.toSig(Gt("DER",br));return new Dn(Zr,pi)}assertValidity(){if(!dn(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!dn(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(br){return new Dn(this.r,this.s,br)}recoverPublicKey(br){const{r:Zr,s:pi,recovery:Er}=this,Vi=Nr(Gt("msgHash",br));if(null==Er||![0,1,2,3].includes(Er))throw new Error("recovery id invalid");const Ii=2===Er||3===Er?Zr+x.n:Zr;if(Ii>=M.ORDER)throw new Error("recovery id 2 or 3 invalid");const Hs=Ct.fromHex((1&Er?"03":"02")+vn(Ii)),Ws=it(Ii),Ma=je(-Vi*Ws),gl=je(pi*Ws),ka=Ct.BASE.multiplyAndAddUnsafe(Hs,Ma,gl);if(!ka)throw new Error("point at infinify");return ka.assertValidity(),ka}hasHighS(){return rn(this.s)}normalizeS(){return this.hasHighS()?new Dn(this.r,je(-this.s),this.recovery):this}toDERRawBytes(){return en(this.toDERHex())}toDERHex(){return eo.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return en(this.toCompactHex())}toCompactHex(){return vn(this.r)+vn(this.s)}}const Mn={isValidPrivateKey(er){try{return Kt(er),!0}catch{return!1}},normPrivateKeyToScalar:Kt,randomPrivateKey:()=>{const er=hr(x.n);return function uo(b,x,M=!1){const z=b.length,J=zn(x),ye=hr(x);if(z<16||z1024)throw new Error(`expected ${ye}-1024 bytes of input, got ${z}`);const je=$t(M?an(b):Yn(b),x-mn)+mn;return M?Xt(je,J):Sn(je,J)}(x.randomBytes(er),x.n)},precompute:(er=8,br=Ct.BASE)=>(br._setWindowSize(er),br.multiply(BigInt(3)),br)};function ar(er){const br=er instanceof Uint8Array,Zr="string"==typeof er,pi=(br||Zr)&&er.length;return br?pi===J||pi===ye:Zr?pi===2*J||pi===2*ye:er instanceof Ct}const yr=x.bits2int||function(er){const br=an(er),Zr=8*er.length-x.nBitLength;return Zr>0?br>>BigInt(Zr):br},Nr=x.bits2int_modN||function(er){return je(yr(er))},Vr=V(x.nBitLength);function Ci(er){if("bigint"!=typeof er)throw new Error("bigint expected");if(!(oo<=er&&er_s in Zr))throw new Error("sign() legacy options not supported");const{hash:pi,randomBytes:Er}=x;let{lowS:Vi,prehash:Ii,extraEntropy:Ri}=Zr;null==Vi&&(Vi=!0),er=Gt("msgHash",er),Ii&&(er=Gt("prehashed msgHash",pi(er)));const Hs=Nr(er),Ws=Kt(br),Ma=[Ci(Ws),Ci(Hs)];if(null!=Ri){const _s=!0===Ri?Er(M.BYTES):Ri;Ma.push(Gt("extraEntropy",_s))}const gl=Ot(...Ma),ka=Hs;return{seed:gl,k2sig:function Ga(_s){const Mc=yr(_s);if(!dn(Mc))return;const Of=it(Mc),Fl=Ct.BASE.multiply(Mc).toAffine(),Bl=je(Fl.x);if(Bl===oo)return;const xu=je(Of*je(ka+Bl*Ws));if(xu===oo)return;let Cu=(Fl.x===Bl?0:2)|Number(Fl.y&Bi),Zu=xu;return Vi&&rn(xu)&&(Zu=function Qt(er){return rn(er)?je(-er):er}(xu),Cu^=1),new Dn(Bl,Zu,Cu)}}}(er,br,Zr);return mt(x.hash.outputLen,x.nByteLength,x.hmac)(pi,Er)},verify:function qi(er,br,Zr,pi=Ji){const Er=er;if(br=Gt("msgHash",br),Zr=Gt("publicKey",Zr),"strict"in pi)throw new Error("options.strict was renamed to lowS");const{lowS:Vi,prehash:Ii}=pi;let Ri,Hs;try{if("string"==typeof Er||Er instanceof Uint8Array)try{Ri=Dn.fromDER(Er)}catch(Fl){if(!(Fl instanceof eo.Err))throw Fl;Ri=Dn.fromCompact(Er)}else{if("object"!=typeof Er||"bigint"!=typeof Er.r||"bigint"!=typeof Er.s)throw new Error("PARSE");{const{r:Fl,s:Bl}=Er;Ri=new Dn(Fl,Bl)}}Hs=Ct.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;Ii&&(br=x.hash(br));const{r:Ws,s:Ma}=Ri,gl=Nr(br),ka=it(Ma),Ga=je(gl*ka),_s=je(Ws*ka),Mc=Ct.BASE.multiplyAndAddUnsafe(Hs,Ga,_s)?.toAffine();return!!Mc&&je(Mc.x)===Ws},ProjectivePoint:Ct,Signature:Dn,utils:Mn}}function Vt(b){return{hash:b,hmac:(x,...M)=>Uo(b,x,function Ue(...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:wn}}BigInt(4);const hn=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),Cn=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),An=BigInt(1),On=BigInt(2),Un=(b,x)=>(b+x/On)/x;function Jn(b){const x=hn,M=BigInt(3),z=BigInt(6),J=BigInt(11),ye=BigInt(22),Le=BigInt(23),je=BigInt(44),it=BigInt(88),Ct=b*b*b%x,Kt=Ct*Ct*b%x,Ht=at(Kt,M,x)*Kt%x,dn=at(Ht,M,x)*Kt%x,vn=at(dn,On,x)*Ct%x,rn=at(vn,J,x)*vn%x,Qt=at(rn,ye,x)*rn%x,Jt=at(Qt,je,x)*Qt%x,Dn=at(Jt,it,x)*Jt%x,Mn=at(Dn,je,x)*Qt%x,rr=at(Mn,M,x)*Kt%x,ar=at(rr,Le,x)*rn%x,Br=at(ar,z,x)*Ct%x,yr=at(Br,On,x);if(!sr.eql(sr.sqr(yr),b))throw new Error("Cannot find square root");return yr}const sr=function Tt(b,x,M=!1,z={}){if(b<=Zt)throw new Error(`Expected Field ORDER > 0, got ${b}`);const{nBitLength:J,nByteLength:ye}=sn(b,x);if(ye>2048)throw new Error("Field lengths over 2048 bytes are not supported");const Le=function dt(b){if(b%Hn===Bn){const x=(b+mn)/Hn;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%ti===xr){const x=(b-xr)/ti;return function(z,J){const ye=z.mul(J,In),Le=z.pow(ye,x),je=z.mul(J,Le),it=z.mul(z.mul(je,In),Le),Ct=z.mul(je,z.sub(it,z.ONE));if(!z.eql(z.sqr(Ct),J))throw new Error("Cannot find square root");return Ct}}return function Rt(b){const x=(b-mn)/In;let M,z,J;for(M=b-mn,z=0;M%In===Zt;M/=In,z++);for(J=In;J$t(it,b),isValid:it=>{if("bigint"!=typeof it)throw new Error("Invalid field element: expected bigint, got "+typeof it);return Zt<=it&&itit===Zt,isOdd:it=>(it&mn)===mn,neg:it=>$t(-it,b),eql:(it,Ct)=>it===Ct,sqr:it=>$t(it*it,b),add:(it,Ct)=>$t(it+Ct,b),sub:(it,Ct)=>$t(it-Ct,b),mul:(it,Ct)=>$t(it*Ct,b),pow:(it,Ct)=>function Mr(b,x,M){if(M 0");if(M===Zt)return b.ONE;if(M===mn)return x;let z=b.ONE,J=x;for(;M>Zt;)M&mn&&(z=b.mul(z,J)),J=b.sqr(J),M>>=mn;return z}(je,it,Ct),div:(it,Ct)=>$t(it*Fe(Ct,b),b),sqrN:it=>it*it,addN:(it,Ct)=>it+Ct,subN:(it,Ct)=>it-Ct,mulN:(it,Ct)=>it*Ct,inv:it=>Fe(it,b),sqrt:z.sqrt||(it=>Le(je,it)),invertBatch:it=>function ii(b,x){const M=new Array(x.length),z=x.reduce((ye,Le,je)=>b.is0(Le)?ye:(M[je]=ye,b.mul(ye,Le)),b.ONE),J=b.inv(z);return x.reduceRight((ye,Le,je)=>b.is0(Le)?ye:(M[je]=b.mul(ye,M[je]),b.mul(ye,Le)),J),M}(je,it),cmov:(it,Ct,Kt)=>Kt?Ct:it,toBytes:it=>M?Xt(it,ye):Sn(it,ye),fromBytes:it=>{if(it.length!==ye)throw new Error(`Fp.fromBytes: expected ${ye}, got ${it.length}`);return M?Yn(it):an(it)}});return Object.freeze(je)}(hn,void 0,void 0,{sqrt:Jn}),Ir=function kt(b,x){const M=z=>tt({...b,...Vt(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=-An*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),J=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),ye=M,Le=BigInt("0x100000000000000000000000000000000"),je=Un(ye*b,x),it=Un(-z*b,x);let Ct=$t(b-je*M-it*J,x),Kt=$t(-je*z-it*ye,x);const Ht=Ct>Le,dn=Kt>Le;if(Ht&&(Ct=x-Ct),dn&&(Kt=x-Kt),Ct>Le||Kt>Le)throw new Error("splitScalar: Endomorphism failed, k="+b);return{k1neg:Ht,k1:Ct,k2neg:dn,k2:Kt}}}},Xe),pr=BigInt(0),bi=b=>"bigint"==typeof b&&prJ.charCodeAt(0)));M=Ot(z,z),mr[b]=M}return Xe(Ot(M,...x))}const _o=b=>b.toRawBytes(!0).slice(1),$r=b=>Sn(b,32),Gi=b=>$t(b,hn),ls=b=>$t(b,Cn),ws=Ir.ProjectivePoint;function Sr(b){let x=Ir.utils.normPrivateKeyToScalar(b),M=ws.fromPrivateKey(x);return{scalar:M.hasEvenY()?x:ls(-x),bytes:_o(M)}}function oa(b){if(!bi(b))throw new Error("bad x: need 0 < x < p");const x=Gi(b*b);let z=Jn(Gi(x*b+BigInt(7)));z%On!==pr&&(z=Gi(-z));const J=new ws(b,z,An);return J.assertValidity(),J}function ma(...b){return ls(an(ai("BIP0340/challenge",...b)))}function Ps(b,x,M){const z=Gt("signature",b,64),J=Gt("message",x),ye=Gt("publicKey",M,32);try{const Le=oa(an(ye)),je=an(z.subarray(0,32));if(!bi(je))return!1;const it=an(z.subarray(32,64));if(!(b=>"bigint"==typeof b&&prws.BASE.multiplyAndAddUnsafe(b,x,M))(Le,it,ls(-Ct));return!(!Kt||!Kt.hasEvenY()||Kt.toAffine().x!==je)}catch{return!1}}const Xs={getPublicKey:function wo(b){return Sr(b).bytes},sign:function Ls(b,x,M=wn(32)){const z=Gt("message",b),{bytes:J,scalar:ye}=Sr(x),Le=Gt("auxRand",M,32),je=$r(ye^an(ai("BIP0340/aux",Le))),it=ai("BIP0340/nonce",je,J,z),Ct=ls(an(it));if(Ct===pr)throw new Error("sign failed: k is zero");const{bytes:Kt,scalar:Ht}=Sr(Ct),dn=ma(Kt,J,z),vn=new Uint8Array(64);if(vn.set(Kt,0),vn.set($r(ls(Ht+dn*ye)),32),!Ps(vn,z,J))throw new Error("sign: Invalid signature produced");return vn},verify:Ps,utils:{randomPrivateKey:Ir.utils.randomPrivateKey,lift_x:oa,pointToBytes:_o,numberToBytesBE:Sn,bytesToNumberBE:an,taggedHash:ai,mod:$t}};var qr=r(4704);function cs(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:cs,bool:function rs(b){if("boolean"!=typeof b)throw new Error(`Expected boolean, not ${b}`)},bytes:to,hash:function zi(b){if("function"!=typeof b||"function"!=typeof b.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");cs(b.outputLen),cs(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 ko(b,x){to(b);const M=x.outputLen;if(b.lengthJ-Le&&(this.process(z,0),Le=0);for(let Ht=Le;Ht>J&ye),je=Number(M&ye),Ct=z?0:4;b.setUint32(x+(z?4:0),Le,z),b.setUint32(x+Ct,je,z)})(z,J-8,BigInt(8*this.length),ye),this.process(z,0);const je=(0,qr.O8)(x),it=this.outputLen;if(it%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const Ct=it/4,Kt=this.get();if(Ct>Kt.length)throw new Error("_sha2: outputLen bigger than state");for(let Ht=0;Htb&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 is{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:Le,G:je,H:it}=this;return[x,M,z,J,ye,Le,je,it]}set(x,M,z,J,ye,Le,je,it){this.A=0|x,this.B=0|M,this.C=0|z,this.D=0|J,this.E=0|ye,this.F=0|Le,this.G=0|je,this.H=0|it}process(x,M){for(let Ht=0;Ht<16;Ht++,M+=4)Ti[Ht]=x.getUint32(M,!1);for(let Ht=16;Ht<64;Ht++){const dn=Ti[Ht-15],vn=Ti[Ht-2],rn=(0,qr.Ow)(dn,7)^(0,qr.Ow)(dn,18)^dn>>>3,Qt=(0,qr.Ow)(vn,17)^(0,qr.Ow)(vn,19)^vn>>>10;Ti[Ht]=Qt+Ti[Ht-7]+rn+Ti[Ht-16]|0}let{A:z,B:J,C:ye,D:Le,E:je,F:it,G:Ct,H:Kt}=this;for(let Ht=0;Ht<64;Ht++){const vn=Kt+((0,qr.Ow)(je,6)^(0,qr.Ow)(je,11)^(0,qr.Ow)(je,25))+Is(je,it,Ct)+va[Ht]+Ti[Ht]|0,Qt=((0,qr.Ow)(z,2)^(0,qr.Ow)(z,13)^(0,qr.Ow)(z,22))+Bs(z,J,ye)|0;Kt=Ct,Ct=it,it=je,je=Le+vn|0,Le=ye,ye=J,J=z,z=vn+Qt|0}z=z+this.A|0,J=J+this.B|0,ye=ye+this.C|0,Le=Le+this.D|0,je=je+this.E|0,it=it+this.F|0,Ct=Ct+this.G|0,Kt=Kt+this.H|0,this.set(z,J,ye,Le,je,it,Ct,Kt)}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(1998);function os(b){if(!Number.isSafeInteger(b)||b<0)throw new Error(`positive integer expected, not ${b}`)}function vo(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 vi(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 Io(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){vi(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),Le=Number(M>>J&ye),je=Number(M&ye),Ct=z?0:4;b.setUint32(x+(z?4:0),Le,z),b.setUint32(x+Ct,je,z)}const jt=new Uint8Array(16),gr=Ve(jt),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,vi(x=Ho(x),16);const z=re(x);let J=z.getUint32(0,!1),ye=z.getUint32(4,!1),Le=z.getUint32(8,!1),je=z.getUint32(12,!1);const it=[];for(let rn=0;rn<128;rn++)it.push({s0:qo(J),s1:qo(ye),s2:qo(Le),s3:qo(je)}),({s0:J,s1:ye,s2:Le,s3:je}=Do(J,ye,Le,je));const Ct=(b=M||1024)>65536?8:b>1024?4:2;var b;if(![1,2,4,8].includes(Ct))throw new Error(`ghash: wrong window size=${Ct}, should be 2, 4 or 8`);this.W=Ct;const Ht=128/Ct,dn=this.windowSize=2**Ct,vn=[];for(let rn=0;rn>>Ct-ar-1&1))continue;const{s0:yr,s1:Nr,s2:Vr,s3:Ci}=it[Ct*rn+ar];Jt^=yr,Dn^=Nr,Mn^=Vr,rr^=Ci}vn.push({s0:Jt,s1:Dn,s2:Mn,s3:rr})}this.t=vn}_updateBlock(x,M,z,J){x^=this.s0,M^=this.s1,z^=this.s2,J^=this.s3;const{W:ye,t:Le,windowSize:je}=this;let it=0,Ct=0,Kt=0,Ht=0;const dn=(1<>>8*Qt&255;for(let Dn=8/ye-1;Dn>=0;Dn--){const Mn=Jt>>>ye*Dn&dn,{s0:rr,s1:ar,s2:Br,s3:yr}=Le[vn*je+Mn];it^=rr,Ct^=ar,Kt^=Br,Ht^=yr,vn+=1}}this.s0=it,this.s1=Ct,this.s2=Kt,this.s3=Ht}update(x){x=Ho(x),Io(this);const M=Ve(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),Io(this);const M=Ve(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}us((b,x)=>new nc(b,x)),us((b,x)=>new wl(b,x)),new Uint8Array(16);const xl=283;function la(b){return b<<1^xl&-(b>>7)}function $a(b,x){let M=0;for(;x>0;x>>=1)M^=b&-(1&x),b=la(b);return M}const gc=(()=>{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})(),Nu=gc.map((b,x)=>gc.indexOf(x)),rc=b=>b<<24|b>>>8,ja=b=>b<<8|b>>>24;function zl(b,x){if(256!==b.length)throw new Error("Wrong sbox length");const M=new Uint32Array(256).map((Ct,Kt)=>x(b[Kt])),z=M.map(ja),J=z.map(ja),ye=J.map(ja),Le=new Uint32Array(65536),je=new Uint32Array(65536),it=new Uint16Array(65536);for(let Ct=0;Ct<256;Ct++)for(let Kt=0;Kt<256;Kt++){const Ht=256*Ct+Kt;Le[Ht]=M[Ct]^z[Kt],je[Ht]=J[Ct]^ye[Kt],it[Ht]=b[Ct]<<8|b[Kt]}return{sbox:b,sbox2:it,T0:M,T1:z,T2:J,T3:ye,T01:Le,T23:je}}const ba=zl(gc,b=>$a(b,3)<<24|b<<16|b<<8|$a(b,2)),qa=zl(Nu,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){vi(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=Ve(b),J=z.length,ye=je=>Ea(M,je,je,je,je),Le=new Uint32Array(x+28);Le.set(z);for(let je=J;je6&&je%J==4&&(it=ye(it)),Le[je]=Le[je-J]^it}return Le}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:Le,T23:je}=ba;let it=0;x^=b[it++],M^=b[it++],z^=b[it++],J^=b[it++];const Ct=b.length/4-2;for(let rn=0;rn{const je=Ro(x),{b:it,o:Ct,out:Kt}=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=Ve(b);if(x){let it=16-J;it||(it=16),z+=it}const Le=al(z,M);return{b:ye,o:Ve(Le),out:Le}}(ye,J,Le),Ht=Ve(M);let dn=Ht[0],vn=Ht[1],rn=Ht[2],Qt=Ht[3],Jt=0;for(;Jt+4<=it.length;)dn^=it[Jt+0],vn^=it[Jt+1],rn^=it[Jt+2],Qt^=it[Jt+3],({s0:dn,s1:vn,s2:rn,s3:Qt}=Jo(je,dn,vn,rn,Qt)),Ct[Jt++]=dn,Ct[Jt++]=vn,Ct[Jt++]=rn,Ct[Jt++]=Qt;if(J){const Dn=function Ui(b){const x=new Uint8Array(16),M=Ve(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*Jt));dn^=Dn[0],vn^=Dn[1],rn^=Dn[2],Qt^=Dn[3],({s0:dn,s1:vn,s2:rn,s3:Qt}=Jo(je,dn,vn,rn,Qt)),Ct[Jt++]=dn,Ct[Jt++]=vn,Ct[Jt++]=rn,Ct[Jt++]=Qt}return je.fill(0),Kt},decrypt:(ye,Le)=>{!function Xl(b){if(vi(b),b.length%16!=0)throw new Error("aes/(cbc-ecb).decrypt ciphertext should consist of blocks with size 16")}(ye);const je=function co(b){const x=Ro(b),M=x.slice(),z=x.length,{sbox2:J}=ba,{T0:ye,T1:Le,T2:je,T3:it}=qa;for(let Ct=0;Ct>>8&255]^je[Ht>>>16&255]^it[Ht>>>24]}return M}(x),it=Ve(M),Ct=al(ye.length,Le),Kt=Ve(ye),Ht=Ve(Ct);let dn=it[0],vn=it[1],rn=it[2],Qt=it[3];for(let Jt=0;Jt+4<=Kt.length;){const Dn=dn,Mn=vn,rr=rn,ar=Qt;dn=Kt[Jt+0],vn=Kt[Jt+1],rn=Kt[Jt+2],Qt=Kt[Jt+3];const{s0:Br,s1:yr,s2:Nr,s3:Vr}=_c(je,dn,vn,rn,Qt);Ht[Jt++]=Br^Dn,Ht[Jt++]=yr^Mn,Ht[Jt++]=Nr^rr,Ht[Jt++]=Vr^ar}return je.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,vi(x=Ho(x),32);const M=po(x,0),z=po(x,2),J=po(x,4),ye=po(x,6),Le=po(x,8),je=po(x,10),it=po(x,12),Ct=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|Le<<12),this.r[5]=Le>>>1&8190,this.r[6]=8191&(Le>>>14|je<<2),this.r[7]=8065&(je>>>11|it<<5),this.r[8]=8191&(it>>>8|Ct<<8),this.r[9]=Ct>>>5&127;for(let Kt=0;Kt<8;Kt++)this.pad[Kt]=po(x,16+2*Kt)}process(x,M,z=!1){const J=z?0:2048,{h:ye,r:Le}=this,je=Le[0],it=Le[1],Ct=Le[2],Kt=Le[3],Ht=Le[4],dn=Le[5],vn=Le[6],rn=Le[7],Qt=Le[8],Jt=Le[9],Dn=po(x,M+0),Mn=po(x,M+2),rr=po(x,M+4),ar=po(x,M+6),Br=po(x,M+8),yr=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|Mn<<3)),li=ye[2]+(8191&(Mn>>>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|yr<<2)),br=ye[7]+(8191&(yr>>>11|Nr<<5)),Zr=ye[8]+(8191&(Nr>>>8|Vr<<8)),pi=ye[9]+(Vr>>>5|J),Er=0,Vi=Er+Ci*je+fi*(5*Jt)+li*(5*Qt)+Ji*(5*rn)+ji*(5*vn);Er=Vi>>>13,Vi&=8191,Vi+=qi*(5*dn)+er*(5*Ht)+br*(5*Kt)+Zr*(5*Ct)+pi*(5*it),Er+=Vi>>>13,Vi&=8191;let Ii=Er+Ci*it+fi*je+li*(5*Jt)+Ji*(5*Qt)+ji*(5*rn);Er=Ii>>>13,Ii&=8191,Ii+=qi*(5*vn)+er*(5*dn)+br*(5*Ht)+Zr*(5*Kt)+pi*(5*Ct),Er+=Ii>>>13,Ii&=8191;let Ri=Er+Ci*Ct+fi*it+li*je+Ji*(5*Jt)+ji*(5*Qt);Er=Ri>>>13,Ri&=8191,Ri+=qi*(5*rn)+er*(5*vn)+br*(5*dn)+Zr*(5*Ht)+pi*(5*Kt),Er+=Ri>>>13,Ri&=8191;let Hs=Er+Ci*Kt+fi*Ct+li*it+Ji*je+ji*(5*Jt);Er=Hs>>>13,Hs&=8191,Hs+=qi*(5*Qt)+er*(5*rn)+br*(5*vn)+Zr*(5*dn)+pi*(5*Ht),Er+=Hs>>>13,Hs&=8191;let Ws=Er+Ci*Ht+fi*Kt+li*Ct+Ji*it+ji*je;Er=Ws>>>13,Ws&=8191,Ws+=qi*(5*Jt)+er*(5*Qt)+br*(5*rn)+Zr*(5*vn)+pi*(5*dn),Er+=Ws>>>13,Ws&=8191;let Ma=Er+Ci*dn+fi*Ht+li*Kt+Ji*Ct+ji*it;Er=Ma>>>13,Ma&=8191,Ma+=qi*je+er*(5*Jt)+br*(5*Qt)+Zr*(5*rn)+pi*(5*vn),Er+=Ma>>>13,Ma&=8191;let gl=Er+Ci*vn+fi*dn+li*Ht+Ji*Kt+ji*Ct;Er=gl>>>13,gl&=8191,gl+=qi*it+er*je+br*(5*Jt)+Zr*(5*Qt)+pi*(5*rn),Er+=gl>>>13,gl&=8191;let ka=Er+Ci*rn+fi*vn+li*dn+Ji*Ht+ji*Kt;Er=ka>>>13,ka&=8191,ka+=qi*Ct+er*it+br*je+Zr*(5*Jt)+pi*(5*Qt),Er+=ka>>>13,ka&=8191;let Ga=Er+Ci*Qt+fi*rn+li*vn+Ji*dn+ji*Ht;Er=Ga>>>13,Ga&=8191,Ga+=qi*Kt+er*Ct+br*it+Zr*je+pi*(5*Jt),Er+=Ga>>>13,Ga&=8191;let _s=Er+Ci*Jt+fi*Qt+li*rn+Ji*vn+ji*dn;Er=_s>>>13,_s&=8191,_s+=qi*Ht+er*Kt+br*Ct+Zr*it+pi*je,Er+=_s>>>13,_s&=8191,Er=(Er<<2)+Er|0,Er=Er+Vi|0,Vi=8191&Er,Er>>>=13,Ii+=Er,ye[0]=Vi,ye[1]=Ii,ye[2]=Ri,ye[3]=Hs,ye[4]=Ws,ye[5]=Ma,ye[6]=gl,ye[7]=ka,ye[8]=Ga,ye[9]=_s}finalize(){const{h:x,pad:M}=this,z=new Uint16Array(10);let J=x[1]>>>13;x[1]&=8191;for(let je=2;je<10;je++)x[je]+=J,J=x[je]>>>13,x[je]&=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 je=1;je<10;je++)z[je]=x[je]+J,J=z[je]>>>13,z[je]&=8191;z[9]-=8192;let ye=(1^J)-1;for(let je=0;je<10;je++)z[je]&=ye;ye=~ye;for(let je=0;je<10;je++)x[je]=x[je]&ye|z[je];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 Le=x[0]+M[0];x[0]=65535&Le;for(let je=1;je<8;je++)Le=(x[je]+M[je]|0)+(Le>>>16)|0,x[je]=65535&Le}update(x){Io(this);const{buffer:M,blockLen:z}=this,J=(x=Ho(x)).length;for(let ye=0;ye>>0,x[ye++]=z[Le]>>>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=Ve(Di),No=Ve($s);function de(b,x){return b<>>32-x}function q(b){return b.byteOffset%4==0}No.slice();const bn=2**32-1,Rn=new Uint32Array;function Yr(b,x){const{allowShortKeys:M,extendNonceFn:z,counterLength:J,counterRight:ye,rounds:Le}=function Wl(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 os(J),os(Le),vo(ye),vo(M),(je,it,Ct,Kt,Ht=0)=>{vi(je),vi(it),vi(Ct);const dn=Ct.length;if(Kt||(Kt=new Uint8Array(dn)),vi(Kt),os(Ht),Ht<0||Ht>=bn)throw new Error("arx: counter overflow");if(Kt.length=bn)throw new Error("arx: counter overflow");const Qt=Math.min(64,it-rn);if(Ht&&64===Qt){const Jt=rn/4;if(rn%4!=0)throw new Error("arx: invalid block position");for(let Mn,Dn=0;Dn<16;Dn++)Mn=Jt+Dn,vn[Mn]=dn[Mn]^Kt[Dn];rn+=64}else{for(let Dn,Jt=0;Jt0;)vn.pop().fill(0);return Kt}}function Li(b,x,M,z,J,ye=20){let Le=b[0],je=b[1],it=b[2],Ct=b[3],Kt=x[0],Ht=x[1],dn=x[2],vn=x[3],rn=x[4],Qt=x[5],Jt=x[6],Dn=x[7],Mn=J,rr=M[0],ar=M[1],Br=M[2],yr=Le,Nr=je,Vr=it,Ci=Ct,fi=Kt,li=Ht,Ji=dn,ji=vn,qi=rn,er=Qt,br=Jt,Zr=Dn,pi=Mn,Er=rr,Vi=ar,Ii=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),Le=ro.create(ye);J&&jo(Le,J),jo(Le,z);const je=new Uint8Array(16),it=re(je);ce(it,0,BigInt(J?J.length:0),!0),ce(it,8,BigInt(z.length),!0),Le.update(je);const Ct=Le.digest();return ye.fill(0),Ct}const Ca=b=>(x,M,z)=>(vi(x,32),vi(M),{encrypt:(ye,Le)=>{const je=ye.length,it=je+16;Le?vi(Le,it):Le=new Uint8Array(it),b(x,M,ye,Le,1);const Ct=Al(b,x,M,Le.subarray(0,-16),z);return Le.set(Ct,je),Le},decrypt:(ye,Le)=>{const je=ye.length,it=je-16;if(je<16)throw new Error("encrypted data must be at least 16 bytes");Le?vi(Le,it):Le=new Uint8Array(it);const Ct=ye.subarray(0,-16);if(!Qa(ye.subarray(-16),Al(b,x,M,Ct,z)))throw new Error("invalid tag");return b(x,M,Ct,Le,1),Le}});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 Le=0;Lenew ll(b,x).update(M).digest();Tl.create=(b,x)=>new ll(b,x);const ua=new Uint8Array([0]),Yl=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:()=>dd,insertEventIntoDescendingList:()=>nh,normalizeURL:()=>vc,utf8Decoder:()=>Ns,utf8Encoder:()=>Js});var Ns=new TextDecoder("utf-8"),Js=new TextEncoder;function vc(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 nh(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 dd(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 bc(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 Pu(b){return Sa(b)?"regular":bc(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:()=>Xn,BadgeAward:()=>Dt,BadgeDefinition:()=>$e,BlockedRelaysList:()=>kl,BookmarkList:()=>lu,Bookmarksets:()=>$,Calendar:()=>Vn,CalendarEventRSVP:()=>ur,ChannelCreation:()=>ri,ChannelHideMessage:()=>ss,ChannelMessage:()=>io,ChannelMetadata:()=>hi,ChannelMuteUser:()=>Ko,ClassifiedListing:()=>kn,ClientAuth:()=>fd,CommunitiesList:()=>Mi,CommunityDefinition:()=>zr,CommunityPostApproval:()=>uf,Contacts:()=>K,CreateOrUpdateProduct:()=>Wt,CreateOrUpdateStall:()=>It,Curationsets:()=>oe,Date:()=>Qn,DirectMessageRelaysList:()=>Aa,DraftClassifiedListing:()=>jn,DraftLong:()=>Tn,Emojisets:()=>qt,EncryptedDirectMessage:()=>P,EventDeletion:()=>X,FileMetadata:()=>hl,FileServerPreference:()=>ff,Followsets:()=>Wa,GenericRepost:()=>fr,Genericlists:()=>O,GiftWrap:()=>Wr,HTTPAuth:()=>$u,Handlerinformation:()=>kr,Handlerrecommendation:()=>Pr,Highlights:()=>hd,InterestsList:()=>ac,Interestsets:()=>gt,JobFeedback:()=>df,JobRequest:()=>ih,JobResult:()=>Ec,Label:()=>cf,LightningPubRPC:()=>Uu,LiveChatMessage:()=>wc,LiveEvent:()=>Kn,LongFormArticle:()=>ln,Metadata:()=>xs,Mutelist:()=>xn,NWCWalletInfo:()=>Op,NWCWalletRequest:()=>ea,NWCWalletResponse:()=>js,NostrConnect:()=>Il,OpenTimestamps:()=>Cs,Pinlist:()=>gi,PrivateDirectMessage:()=>on,ProblemTracker:()=>sc,ProfileBadges:()=>Ae,PublicChatsList:()=>Ml,Reaction:()=>We,RecommendRelay:()=>N,RelayList:()=>Bu,Relaysets:()=>B,Report:()=>Ip,Reporting:()=>rh,Repost:()=>he,Seal:()=>yn,SearchRelaysList:()=>fs,ShortTextNote:()=>$c,Time:()=>ir,UserEmojiList:()=>jc,UserStatuses:()=>nr,Zap:()=>Fu,ZapGoal:()=>hf,ZapRequest:()=>au,classifyKind:()=>Pu,isEphemeralKind:()=>su,isKind:()=>Tr,isParameterizedReplaceableKind:()=>Xi,isRegularKind:()=>Sa,isReplaceableKind:()=>bc});var xs=0,$c=1,N=2,K=3,P=4,X=5,he=6,We=7,Dt=8,yn=13,on=14,fr=16,ri=40,hi=41,io=42,ss=43,Ko=44,Cs=1040,Wr=1059,hl=1063,wc=1311,sc=1971,Ip=1984,rh=1984,cf=1985,uf=4550,ih=5999,Ec=6999,df=7e3,hf=9041,au=9734,Fu=9735,hd=9802,xn=1e4,gi=10001,Bu=10002,lu=10003,Mi=10004,Ml=10005,kl=10006,fs=10007,ac=10015,jc=10030,Aa=10050,ff=10096,Op=13194,Uu=21e3,fd=22242,ea=23194,js=23195,Il=24133,$u=27235,Wa=3e4,O=30001,B=30002,$=30003,oe=30004,Ae=30008,$e=30009,gt=30015,It=30017,Wt=30018,ln=30023,Tn=30024,qt=30030,Xn=30078,Kn=30311,nr=30315,kn=30402,jn=30403,Qn=31922,ir=31923,Vn=31924,ur=31925,Pr=31989,kr=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,Le])=>ye===M.slice(1)&&-1!==J.indexOf(Le)))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 vr(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:fd,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:()=>vr,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=vc(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=vr(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,Le)=>{M.openCountRequests.set(z,{resolve:ye,reject:Le})});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,xc=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=vc(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(vc).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=(dn,vn)=>{let rn=this.seenOn.get(vn);rn||(rn=new Set,this.seenOn.set(vn,rn)),rn.add(dn)});const z=new Set,J=[],ye=Object.keys(b).length,Le=[];let je=dn=>{Le[dn]=!0,Le.filter(vn=>vn).length===ye&&(x.oneose?.(),je=()=>{})};const it=[];let Ct=(dn,vn)=>{je(dn),it[dn]=vn,it.filter(rn=>rn).length===ye&&(x.onclose?.(it),Ct=()=>{})};const Kt=dn=>{if(x.alreadyHaveEvent?.(dn))return!0;const vn=z.has(dn);return z.add(dn),vn},Ht=Promise.all(Object.entries(b).map(function(){var dn=(0,a.A)(function*(vn,rn,Qt){if(Qt.indexOf(vn)!==rn)return void Ct(rn,"duplicate url");let Mn,[Jt,Dn]=vn;Jt=vc(Jt);try{Mn=yield M.ensureRelay(Jt,{connectionTimeout:x.maxWait?Math.max(.8*x.maxWait,x.maxWait-1e3):void 0})}catch(ar){return void Ct(rn,ar?.message||String(ar))}let rr=Mn.subscribe(Dn,{...x,oneose:()=>je(rn),onclose:ar=>Ct(rn,ar),alreadyHaveEvent:Kt,eoseTimeout:x.maxWait});J.push(rr)});return function(vn,rn,Qt){return dn.apply(this,arguments)}}()));return{close:()=>(0,a.A)(function*(){yield Ht,J.forEach(dn=>{dn.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 Le=[];z.subscribeManyEose(b,[x],{...M,onevent(je){Le.push(je)},onclose(je){ye(Le)}})});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,Le)=>Le.created_at-ye.created_at),J[0]||null})()}publish(b,x){var M=this;return b.map(vc).map(function(){var z=(0,a.A)(function*(J,ye,Le){if(Le.indexOf(J)!==ye)return Promise.reject("duplicate url");let je=yield M.ensureRelay(J);return je.publish(x).then(it=>{if(M.trackRelays){let Ct=M.seenOn.get(x.id);Ct||(Ct=new Set,M.seenOn.set(x.id,Ct)),Ct.add(je)}return it})});return function(J,ye,Le){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 xc{constructor(){super({verifyEvent:dl,websocketImplementation:dc})}},Wc={};Ao(Wc,{BECH32_REGEX:()=>fl,Bech32MaxSize:()=>za,NostrTypeGuard:()=>fa,decode:()=>Zl,encodeBytes:()=>md,naddrEncode:()=>uu,neventEncode:()=>gd,noteEncode:()=>Rp,nprofileEncode:()=>oh,npubEncode:()=>ju,nsecEncode:()=>pd});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 Zl(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 gd(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)),Cc("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),Cc("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 pf(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(Ir.getSharedSecret(z,"02"+x));let Le=Uint8Array.from((0,qr.po)(16)),je=Js.encode(M),it=Ar(ye,Le).encrypt(je);return`${ao.K3.encode(new Uint8Array(it))}?iv=${ao.K3.encode(new Uint8Array(Le.buffer))}`})).apply(this,arguments)}function ah(b,x,M){return vd.apply(this,arguments)}function vd(){return(vd=(0,a.A)(function*(b,x,M){const z=b instanceof Uint8Array?(0,qr.My)(b):b;let[J,ye]=M.split("?iv="),je=zc(Ir.getSharedSecret(z,"02"+x)),it=ao.K3.decode(ye),Ct=ao.K3.decode(J),Kt=Ar(je,it).decrypt(Ct);return Ns.decode(Kt)})).apply(this,arguments)}function zc(b){return b.slice(1,33)}Ao(Rl,{decrypt:()=>ah,encrypt:()=>pf}),Ao({},{NIP05_REGEX:()=>fu,isNip05:()=>yd,isValid:()=>gf,queryProfile:()=>pu,searchDomain:()=>ch,useFetchImplementation:()=>mf});var Dc,fu=/^(?:([\w.+-]+)@)?([\w_-]+(\.[\w_-]+)+)$/,yd=b=>fu.test(b||"");try{Dc=fetch}catch{}function mf(b){Dc=b}function ch(b){return uh.apply(this,arguments)}function uh(){return(uh=(0,a.A)(function*(b,x=""){try{const M=`https://${b}/.well-known/nostr.json?name=${x}`,z=yield Dc(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 Dc(J,{redirect:"manual"});if(200!==ye.status)throw Error("Wrong response code");const Le=yield ye.json(),je=Le.names[M];return je?{pubkey:je,relays:Le.relays?.[je]}:null}catch{return null}})).apply(this,arguments)}function gf(b,x){return dh.apply(this,arguments)}function dh(){return(dh=(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[Le,je,it,Ct,Kt]=ye,Ht={id:je,relays:it?[it]:[],author:Kt};if("root"===Ct){x.root=Ht;continue}if("reply"===Ct){x.reply=Ht;continue}if("mention"===Ct){x.mentions.push(Ht);continue}M?z=Ht:M=Ht,x.mentions.push(Ht)}else{if("q"===ye[0]&&ye[1]){const[Le,je,it]=ye;x.quotes.push({id:je,relays:it?[it]:[]})}"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 Le=x.profiles.find(je=>je.pubkey===J.author);Le&&Le.relays&&(J.relays||(J.relays=[]),Le.relays.forEach(je=>{-1===J.relays?.indexOf(je)&&J.relays.push(je)}),Le.relays=J.relays)}}),x.mentions.forEach(J=>{if(J.author){let ye=x.profiles.find(Le=>Le.pubkey===J.author);ye&&ye.relays&&(J.relays||(J.relays=[]),ye.relays.forEach(Le=>{-1===J.relays.indexOf(Le)&&J.relays.push(Le)}),ye.relays=J.relays)}}),x}Ao({},{parse:()=>Kc}),Ao({},{fetchRelayInformation:()=>vf,useFetchImplementation:()=>Np});try{fetch}catch{}function Np(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 hh(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 Vu(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=yf(z),hh(z.id)>=x)break}return z}function yf(b){return(0,qr.My)(Qo(Js.encode(JSON.stringify([0,b.pubkey,b.created_at,b.kind,b.tags,b.content]))))}function fh(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 Hu(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 bf(b,{skipVerification:x}={}){const M=Hu(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:()=>yf,getPow:()=>hh,minePow:()=>Vu}),Ao({},{finishRepostEvent:()=>fh,getRepostedEvent:()=>bf,getRepostedEventPointer:()=>Hu}),Ao({},{NOSTR_URI_REGEX:()=>Wu,parse:()=>pl,test:()=>Bp});var Wu=new RegExp(`nostr:(${fl.source})`);function Bp(b){return"string"==typeof b&&new RegExp(`^${Wu.source}$`).test(b)}function pl(b){const x=b.match(new RegExp(`^${Wu.source}$`));if(!x)throw new Error(`Invalid Nostr URI: ${b}`);return{uri:x[0],value:x[1],decoded:Zl(x[1])}}function _u(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 mh(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:()=>_u,getReactedEventPointer:()=>mh}),Ao({},{matchAll:()=>wd,regex:()=>wf,replaceAll:()=>Ef});var wf=()=>new RegExp(`\\b${Wu.source}\\b`,"g");function*wd(b){const x=b.matchAll(wf());for(const M of x)try{const[z,J]=M;yield{uri:z,value:J,decoded:Zl(J),start:M.index,end:M.index+z.length}}catch{}}function Ef(b,x){return b.replaceAll(wf(),(M,z)=>x({uri:M,value:z,decoded:Zl(z)}))}Ao({},{channelCreateEvent:()=>Ed,channelHideMessageEvent:()=>gh,channelMessageEvent:()=>jp,channelMetadataEvent:()=>$p,channelMuteUserEvent:()=>hc});var Ed=(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)},$p=(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)},jp=(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)},gh=(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:ss,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:()=>zu,regex:()=>Ll,replaceAll:()=>Vp});var vu,Gc=/:(\w+):/,Ll=()=>new RegExp(`\\B${Gc.source}\\B`,"g");function*zu(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 Vp(b,x){return b.replaceAll(Ll(),(M,z)=>x({shortcode:M,name:z}))}Ao({},{useFetchImplementation:()=>il,validateGithub:()=>Hp});try{vu=fetch}catch{}function il(b){vu=b}function Hp(b,x,M){return _h.apply(this,arguments)}function _h(){return(_h=(0,a.A)(function*(b,x,M){try{return(yield(yield vu(`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:()=>bh,encrypt:()=>yh,getConversationKey:()=>Ku,v2:()=>wh});var yu=1,xd=65535;function Ku(b,x){const M=Ir.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 wg(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=Yl);const ye=new Uint8Array(J*b.outputLen),Le=Tl.create(b,x),je=Le._cloneInto(),it=new Uint8Array(Le.outputLen);for(let Ct=0;Ctxd)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(Cd(M)-M);return(0,qr.Id)(z,x,J)}(b),je=Qr(z,J,Le),it=Df(ye,je,M);return ao.K3.encode((0,qr.Id)(new Uint8Array([2]),M,je,it))}function bh(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:Le,hmac_key:je}=wg(x,M);if(!Qa(Df(je,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(xxd||M.length!==x||b.length!==2+Cd(x))throw new Error("invalid padding");return Ns.decode(M)}(Qr(ye,Le,z))}var xh,wh={utils:{getConversationKey:Ku,calcPaddedLen:Cd},encrypt:yh,decrypt:bh};function Af(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 Dd(b,x,M){return Eh.apply(this,arguments)}function Eh(){return(Eh=(0,a.A)(function*(b,x,M){const J=yield pf(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:()=>Dd,parseConnectionString:()=>Af}),Ao({},{getZapEndpoint:()=>Sc,makeZapReceipt:()=>Eg,makeZapRequest:()=>Sd,useFetchImplementation:()=>zp,validateZapRequest:()=>Ad});try{xh=fetch}catch{}function zp(b){xh=b}function Sc(b){return Tf.apply(this,arguments)}function Tf(){return(Tf=(0,a.A)(function*(b){try{let x="",{lud06:M,lud16:z}=JSON.parse(b.content);if(M){let{words:Le}=ao.I.decode(M,1e3),je=ao.I.fromWords(Le);x=Ns.decode(je)}else{if(!z)return null;{let[Le,je]=z.split("@");x=new URL(`/.well-known/lnurlp/${Le}`,`https://${je}`).toString()}}let ye=yield(yield xh(x)).json();if(ye.allowsNostr&&ye.nostrPubkey)return ye.callback}catch{}return null})).apply(this,arguments)}function Sd({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 Ad(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,Le])=>"p"===ye&&Le);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,Le])=>"e"===ye&&Le);return z&&!z[1].match(/^[a-f0-9]{64}$/)?"Zap request 'e' tag is not valid hex.":x.tags.find(([ye,Le])=>"relays"===ye&&Le)?null:"Zap request doesn't have a 'relays' tag."}function Eg({zapRequest:b,preimage:x,bolt11:M,paidAt:z}){let J=JSON.parse(b),ye=J.tags.filter(([je])=>"e"===je||"p"===je||"a"===je),Le={kind:9735,created_at:Math.round(z.getTime()/1e3),content:"",tags:[...ye,["P",J.pubkey],["bolt11",M],["description",b]]};return x&&Le.tags.push(["preimage",x]),Le}Ao({},{createRumor:()=>Mf,createSeal:()=>Td,createWrap:()=>bu,unwrapEvent:()=>Sh,unwrapManyEvents:()=>wu,wrapEvent:()=>Ch,wrapManyEvents:()=>Dh});var Yc=()=>Math.round(Date.now()/1e3),Gp=()=>Math.round(Yc()-172800*Math.random()),ml=(b,x)=>Ku(b,x),Ac=(b,x,M)=>yh(JSON.stringify(b),ml(x,M)),Vs=(b,x)=>JSON.parse(bh(b.content,ml(x,b.pubkey)));function Mf(b,x){const M={created_at:Yc(),content:"",tags:[],...b,pubkey:Uc(x)};return M.id=ul(M),M}function Td(b,x,M){return ha({kind:yn,content:Ac(b,x,M),created_at:Gp(),tags:[]},x)}function bu(b,x){const M=tl();return ha({kind:Wr,content:Ac(b,M,x),created_at:Gp(),tags:[["p",x]]},M)}function Ch(b,x,M){return bu(Td(Mf(b,x),x,M),M)}function Dh(b,x,M){if(!M||0===M.length)throw new Error("At least one recipient is required.");const z=Uc(x),J=[Ch(b,x,z)];return M.forEach(ye=>{J.push(Ch(b,x,ye))}),J}function Sh(b,x){const M=Vs(b,x);return Vs(M,x)}function wu(b,x){let M=[];return b.forEach(z=>{M.push(Sh(z,x))}),M.sort((z,J)=>z.created_at-J.created_at),M}Ao({},{getToken:()=>Tc,hashPayload:()=>Qc,unpackEventFromToken:()=>kf,validateEvent:()=>Md,validateEventKind:()=>If,validateEventMethodTag:()=>Ta,validateEventPayloadTag:()=>Mh,validateEventTimestamp:()=>Yu,validateEventUrlTag:()=>Th,validateToken:()=>Xp});var Ah="Nostr ";function Tc(b,x,M){return ql.apply(this,arguments)}function ql(){return(ql=(0,a.A)(function*(b,x,M,z=!1,J){const ye={kind:$u,tags:[["u",b],["method",x]],created_at:Math.round((new Date).getTime()/1e3),content:""};J&&ye.tags.push(["payload",Qc(J)]);const Le=yield M(ye);return(z?Ah:"")+ao.K3.encode(Js.encode(JSON.stringify(Le)))})).apply(this,arguments)}function Xp(b,x,M){return Eu.apply(this,arguments)}function Eu(){return(Eu=(0,a.A)(function*(b,x,M){const z=yield kf(b).catch(ye=>{throw ye});return yield Md(z,x,M).catch(ye=>{throw ye})})).apply(this,arguments)}function kf(b){return Xu.apply(this,arguments)}function Xu(){return(Xu=(0,a.A)(function*(b){if(!b)throw new Error("Missing token");b=b.replace(Ah,"");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 Yu(b){return!!b.created_at&&Math.round((new Date).getTime()/1e3)-b.created_at<60}function If(b){return b.kind===$u}function Th(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 Mh(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 Md(b,x,M,z){return Qu.apply(this,arguments)}function Qu(){return(Qu=(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(!Yu(b))throw new Error("Invalid nostr event, created_at timestamp invalid");if(!Th(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&&!Mh(b,z))throw new Error("Invalid nostr event, payload tag does not match request body hash");return!0})).apply(this,arguments)}},3797:(o,s,r)=>{"use strict";r.d(s,{OS:()=>k,av:()=>R,qT:()=>pe,rV:()=>te}),Symbol("verified");var k=0,R=1,te=4,pe=7},4704:(o,s,r)=>{"use strict";r.d(s,{Vw:()=>pe,My:()=>T,Id:()=>_e,O8:()=>w,aT:()=>k,po:()=>ae,Ow:()=>C,ZJ:()=>be,ld:()=>Ne});const i="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0,a=le=>le instanceof Uint8Array,w=le=>new DataView(le.buffer,le.byteOffset,le.byteLength),C=(le,ke)=>le<<32-ke|le>>>ke;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},(le,ke)=>ke.toString(16).padStart(2,"0"));function T(le){if(!a(le))throw new Error("Uint8Array expected");let ke="";for(let Ue=0;Uest+ft.length,0));let Ue=0;return le.forEach(st=>{if(!a(st))throw new Error("Uint8Array expected");ke.set(st,Ue),Ue+=st.length}),ke}class pe{clone(){return this._cloneInto()}}function Ne(le){const ke=st=>le().update(be(st)).digest(),Ue=le();return ke.outputLen=Ue.outputLen,ke.blockLen=Ue.blockLen,ke.create=()=>le(),ke}function ae(le=32){if(i&&"function"==typeof i.getRandomValues)return i.getRandomValues(new Uint8Array(le));throw new Error("crypto.getRandomValues must be defined")}},2661:(o,s,r)=>{"use strict";function i(a,c){this.v=a,this.k=c}r.d(s,{A:()=>i})},3014:(o,s,r)=>{"use strict";function i(c,y,w,C,A,S,T){try{var k=c[S](T),R=k.value}catch(G){return void w(G)}k.done?y(R):Promise.resolve(R).then(C,A)}function a(c){return function(){var y=this,w=arguments;return new Promise(function(C,A){var S=c.apply(y,w);function T(R){i(S,C,A,T,k,"next",R)}function k(R){i(S,C,A,T,k,"throw",R)}T(void 0)})}}r.d(s,{A:()=>a})},5137:(o,s,r)=>{"use strict";r.d(s,{A:()=>a});var i=r(2661);function a(c){return new i.A(c,0)}},9129:(o,s,r)=>{"use strict";r.d(s,{A:()=>a});var i=r(2661);function a(y){return function(){return new c(y.apply(this,arguments))}}function c(y){var w,C;function A(T,k){try{var R=y[T](k),G=R.value,Z=G instanceof i.A;Promise.resolve(Z?G.v:G).then(function(te){if(Z){var be="return"===T?"return":"next";if(!G.k||te.done)return A(be,te);te=y[be](te).value}S(R.done?"return":"normal",te)},function(te){A("throw",te)})}catch(te){S("throw",te)}}function S(T,k){switch(T){case"return":w.resolve({value:k,done:!0});break;case"throw":w.reject(k);break;default:w.resolve({value:k,done:!1})}(w=w.next)?A(w.key,w.arg):C=null}this._invoke=function(T,k){return new Promise(function(R,G){var Z={key:T,arg:k,resolve:R,reject:G,next:null};C?C=C.next=Z:(w=C=Z,A(T,k))})},"function"!=typeof y.return&&(this.return=void 0)}c.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},c.prototype.next=function(y){return this._invoke("next",y)},c.prototype.throw=function(y){return this._invoke("throw",y)},c.prototype.return=function(y){return this._invoke("return",y)}},1635:(o,s,r)=>{"use strict";function G(ze,Be,Ut,Ke){return new(Ut||(Ut=Promise))(function(Xe,Ge){function pt(Nt){try{qe(Ke.next(Nt))}catch(tn){Ge(tn)}}function se(Nt){try{qe(Ke.throw(Nt))}catch(tn){Ge(tn)}}function qe(Nt){Nt.done?Xe(Nt.value):function lt(Xe){return Xe instanceof Ut?Xe:new Ut(function(Ge){Ge(Xe)})}(Nt.value).then(pt,se)}qe((Ke=Ke.apply(ze,Be||[])).next())})}function Se(ze){return this instanceof Se?(this.v=ze,this):new Se(ze)}function xe(ze,Be,Ut){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var lt,Ke=Ut.apply(ze,Be||[]),Xe=[];return lt=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),pt("next"),pt("throw"),pt("return",function Ge(Wn){return function(Pt){return Promise.resolve(Pt).then(Wn,tn)}}),lt[Symbol.asyncIterator]=function(){return this},lt;function pt(Wn,Pt){Ke[Wn]&&(lt[Wn]=function(en){return new Promise(function(an,Yn){Xe.push([Wn,en,an,Yn])>1||se(Wn,en)})},Pt&&(lt[Wn]=Pt(lt[Wn])))}function se(Wn,Pt){try{!function qe(Wn){Wn.value instanceof Se?Promise.resolve(Wn.value.v).then(Nt,tn):pn(Xe[0][2],Wn)}(Ke[Wn](Pt))}catch(en){pn(Xe[0][3],en)}}function Nt(Wn){se("next",Wn)}function tn(Wn){se("throw",Wn)}function pn(Wn,Pt){Wn(Pt),Xe.shift(),Xe.length&&se(Xe[0][0],Xe[0][1])}}function le(ze){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Ut,Be=ze[Symbol.asyncIterator];return Be?Be.call(ze):(ze=function _e(ze){var Be="function"==typeof Symbol&&Symbol.iterator,Ut=Be&&ze[Be],Ke=0;if(Ut)return Ut.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(Be?"Object is not iterable.":"Symbol.iterator is not defined.")}(ze),Ut={},Ke("next"),Ke("throw"),Ke("return"),Ut[Symbol.asyncIterator]=function(){return this},Ut);function Ke(Xe){Ut[Xe]=ze[Xe]&&function(Ge){return new Promise(function(pt,se){!function lt(Xe,Ge,pt,se){Promise.resolve(se).then(function(qe){Xe({value:qe,done:pt})},Ge)}(pt,se,(Ge=ze[Xe](Ge)).done,Ge.value)})}}}r.d(s,{AQ:()=>xe,N3:()=>Se,sH:()=>G,xN:()=>le}),"function"==typeof SuppressedError&&SuppressedError}},o=>{o(o.s=770)}]); \ No newline at end of file diff --git a/main.e88e030e1f004176.js b/main.e88e030e1f004176.js new file mode 100644 index 0000000..3e9cbfc --- /dev/null +++ b/main.e88e030e1f004176.js @@ -0,0 +1 @@ +(self.webpackChunkangor=self.webpackChunkangor||[]).push([[792],{7618:(o,s,r)=>{"use strict";r.d(s,{F:()=>st});let i=(()=>{class ft{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 ft})(),a=(()=>{class ft{static{this.complex="375ms"}static{this.entering="225ms"}static{this.exiting="195ms"}}return ft})();var c=r(1204);const le=(ft,_t,ot,Yt,un=`${a.entering} ${i.deceleration}`,wn=`${a.exiting} ${i.acceleration}`)=>(0,c.hZ)(ft,[(0,c.wk)("void",(0,c.iF)(_t)),(0,c.wk)("*",(0,c.iF)(ot)),(0,c.kY)("void => false, * => false",[]),(0,c.kY)("void => *",(0,c.i0)(Yt||un),{params:{timings:un}}),(0,c.kY)("* => void",(0,c.i0)(Yt||wn),{params:{timings:wn}})]),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}`}})]),le("zoomIn",{opacity:0,transform:"scale(0.5)"},{opacity:1,transform:"scale(1)"},""),le("zoomOut",{opacity:1,transform:"scale(1)"},{opacity:0,transform:"scale(0.5)"},"")]},3871:(o,s,r)=>{"use strict";r.d(s,{$w:()=>Mt,lX:()=>c,Tv:()=>Ya});var i=r(7618),a=r(3107);let c=(()=>{class Y{constructor(){this._componentRegistry=new Map,this._navigationStore=new Map}registerComponent(re,Qe){this._componentRegistry.set(re,Qe)}deregisterComponent(re){this._componentRegistry.delete(re)}getComponent(re){return this._componentRegistry.get(re)}storeNavigation(re,Qe){this._navigationStore.set(re,Qe)}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,Qe=[]){for(const Et of re)"basic"===Et.type?Qe.push(Et):Et.children&&this.getFlatNavigation(Et.children,Qe);return Qe}getItem(re,Qe){for(const Et of Qe){if(Et.id===re)return Et;if(Et.children){const Fn=this.getItem(re,Et.children);if(Fn)return Fn}}return null}getItemParent(re,Qe,Et){for(const Fn of Qe){if(Fn.id===re)return Et;if(Fn.children){const fn=this.getItemParent(re,Fn.children,Fn);if(fn)return fn}}return null}static{this.\u0275fac=function(Qe){return new(Qe||Y)}}static{this.\u0275prov=a.jDH({token:Y,factory:Y.\u0275fac,providedIn:"root"})}}return Y})();var y=r(3939),w=r(7838),C=r(8447),A=r(4460),S=r(3904),T=r(7818),k=r(7712),R=r(9893),G=r(5424);const Z=Y=>({"angor-horizontal-navigation-item-active-forced":Y}),te=Y=>[Y];function we(Y,Ve){1&Y&&a.eu8(0)}function _e(Y,Ve){if(1&Y&&(a.j41(0,"div",2),a.DNE(1,we,1,0,"ng-container",7),a.k0s()),2&Y){let re,Qe,Et,Fn;const fn=a.XpG(),cr=a.sdS(9);a.Y8G("ngClass",a.eq3(10,Z,fn.item.active))("routerLink",a.eq3(12,te,fn.item.link))("fragment",null!==(re=fn.item.fragment)&&void 0!==re?re:null)("preserveFragment",null!==(Qe=fn.item.preserveFragment)&&void 0!==Qe&&Qe)("queryParams",null!==(Et=fn.item.queryParams)&&void 0!==Et?Et:null)("queryParamsHandling",null!==(Fn=fn.item.queryParamsHandling)&&void 0!==Fn?Fn:null)("routerLinkActive","angor-horizontal-navigation-item-active")("routerLinkActiveOptions",fn.isActiveMatchOptions)("matTooltip",fn.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",cr)}}function pe(Y,Ve){1&Y&&a.eu8(0)}function Te(Y,Ve){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(),Qe=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",Qe)}}function Ce(Y,Ve){1&Y&&a.eu8(0)}function Ne(Y,Ve){if(1&Y){const re=a.RV6();a.j41(0,"div",8),a.bIt("click",function(){a.eBV(re);const Et=a.XpG();return a.Njj(Et.item.function(Et.item))}),a.DNE(1,Ce,1,0,"ng-container",7),a.k0s()}if(2&Y){const re=a.XpG(),Qe=a.sdS(9);a.Y8G("ngClass",a.eq3(3,Z,re.item.active))("matTooltip",re.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",Qe)}}function Se(Y,Ve){1&Y&&a.eu8(0)}function xe(Y,Ve){if(1&Y){const re=a.RV6();a.j41(0,"div",9),a.bIt("click",function(){a.eBV(re);const Et=a.XpG();return a.Njj(Et.item.function(Et.item))}),a.DNE(1,Se,1,0,"ng-container",7),a.k0s()}if(2&Y){let re,Qe,Et,Fn;const fn=a.XpG(),cr=a.sdS(9);a.Y8G("ngClass",a.eq3(10,Z,fn.item.active))("routerLink",a.eq3(12,te,fn.item.link))("fragment",null!==(re=fn.item.fragment)&&void 0!==re?re:null)("preserveFragment",null!==(Qe=fn.item.preserveFragment)&&void 0!==Qe&&Qe)("queryParams",null!==(Et=fn.item.queryParams)&&void 0!==Et?Et:null)("queryParamsHandling",null!==(Fn=fn.item.queryParamsHandling)&&void 0!==Fn?Fn:null)("routerLinkActive","angor-horizontal-navigation-item-active")("routerLinkActiveOptions",fn.isActiveMatchOptions)("matTooltip",fn.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",cr)}}function ae(Y,Ve){1&Y&&a.eu8(0)}function le(Y,Ve){if(1&Y){const re=a.RV6();a.j41(0,"a",10),a.bIt("click",function(){a.eBV(re);const Et=a.XpG();return a.Njj(Et.item.function(Et.item))}),a.DNE(1,ae,1,0,"ng-container",7),a.k0s()}if(2&Y){const re=a.XpG(),Qe=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",Qe)}}function ke(Y,Ve){1&Y&&a.eu8(0)}function Ue(Y,Ve){if(1&Y&&(a.j41(0,"div",4),a.DNE(1,ke,1,0,"ng-container",7),a.k0s()),2&Y){const re=a.XpG(),Qe=a.sdS(9);a.Y8G("ngClass",a.eq3(3,Z,re.item.active))("matTooltip",re.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",Qe)}}function st(Y,Ve){1&Y&&a.eu8(0)}function ft(Y,Ve){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 _t(Y,Ve){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 ot(Y,Ve){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 Yt(Y,Ve){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 un(Y,Ve){if(1&Y&&(a.DNE(0,_t,1,2,"mat-icon",11),a.j41(1,"div",12)(2,"div",13)(3,"span",14),a.EFF(4),a.k0s()(),a.DNE(5,ot,3,2,"div",15),a.k0s(),a.DNE(6,Yt,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 wn=(()=>{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(Qe){return new(Qe||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(Qe,Et){1&Qe&&(a.j41(0,"div",1),a.DNE(1,_e,2,14,"div",2)(2,Te,2,4,"a",3)(3,Ne,2,5,"div",4)(4,xe,2,14,"div",2)(5,le,2,4,"a",5)(6,Ue,2,5,"div",4)(7,ft,2,1,"div",6),a.k0s(),a.DNE(8,un,7,5,"ng-template",null,0,a.C5r)),2&Qe&&(a.AVh("angor-horizontal-navigation-item-has-subtitle",!!Et.item.subtitle),a.Y8G("ngClass",null==Et.item.classes?null:Et.item.classes.wrapper),a.R7$(),a.vxM(!Et.item.link||Et.item.externalLink||Et.item.function||Et.item.disabled?-1:1),a.R7$(),a.vxM(Et.item.link&&Et.item.externalLink&&!Et.item.function&&!Et.item.disabled?2:-1),a.R7$(),a.vxM(Et.item.link||!Et.item.function||Et.item.disabled?-1:3),a.R7$(),a.vxM(Et.item.link&&!Et.item.externalLink&&Et.item.function&&!Et.item.disabled?4:-1),a.R7$(),a.vxM(Et.item.link&&Et.item.externalLink&&Et.item.function&&!Et.item.disabled?5:-1),a.R7$(),a.vxM(Et.item.link||Et.item.function||Et.item.disabled?-1:6),a.R7$(),a.vxM(Et.item.disabled?7:-1))},dependencies:[A.YU,R.Wk,R.wQ,k.uc,k.oV,A.T3,T.Cn,T.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(Qe){return new(Qe||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(Qe,Et){1&Qe&&a.nrm(0,"div",0),2&Qe&&a.Y8G("ngClass",null==Et.item.classes?null:Et.item.classes.wrapper)},dependencies:[A.YU],encapsulation:2,changeDetection:0})}}return Y})();const En=["matMenu"],Ze=(Y,Ve)=>({"angor-horizontal-navigation-menu-active":Y,"angor-horizontal-navigation-menu-active-forced":Ve}),wt=Y=>({$implicit:Y}),ze=(Y,Ve)=>({"angor-horizontal-navigation-item-disabled":Y,"angor-horizontal-navigation-item-active-forced":Ve});function Be(Y,Ve){1&Y&&a.eu8(0)}function Ut(Y,Ve){if(1&Y){const re=a.RV6();a.j41(0,"div",6,2),a.bIt("onMenuOpen",function(){a.eBV(re);const Et=a.XpG();return a.Njj(Et.triggerChangeDetection())})("onMenuClose",function(){a.eBV(re);const Et=a.XpG();return a.Njj(Et.triggerChangeDetection())}),a.DNE(2,Be,1,0,"ng-container",7),a.k0s()}if(2&Y){const re=a.sdS(1),Qe=a.XpG(),Et=a.sdS(2),Fn=a.sdS(6);a.Y8G("ngClass",a.l_i(4,Ze,re.menuOpen,Qe.item.active))("matMenuTriggerFor",Et),a.R7$(2),a.Y8G("ngTemplateOutlet",Fn)("ngTemplateOutletContext",a.eq3(7,wt,Qe.item))}}function Ke(Y,Ve){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,Qe=a.XpG();a.Y8G("disabled",re.disabled),a.R7$(),a.Y8G("item",re)("name",Qe.name)}}function lt(Y,Ve){1&Y&&a.eu8(0)}function Xe(Y,Ve){if(1&Y&&(a.j41(0,"div",9),a.DNE(1,lt,1,0,"ng-container",7),a.nrm(2,"angor-horizontal-navigation-branch-item",12,3),a.k0s()),2&Y){const re=a.sdS(3),Qe=a.XpG(2).$implicit,Et=a.XpG(),Fn=a.sdS(6);a.Y8G("disabled",Qe.disabled)("matMenuTriggerFor",re.matMenu),a.R7$(),a.Y8G("ngTemplateOutlet",Fn)("ngTemplateOutletContext",a.eq3(7,wt,Qe)),a.R7$(),a.Y8G("child",!0)("item",Qe)("name",Et.name)}}function Ge(Y,Ve){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,Qe=a.XpG();a.R7$(),a.Y8G("item",re)("name",Qe.name)}}function pt(Y,Ve){if(1&Y&&a.DNE(0,Ke,2,3,"div",8)(1,Xe,4,9,"div",9)(2,Ge,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,Ve){if(1&Y&&a.DNE(0,pt,3,3),2&Y){const re=Ve.$implicit;a.vxM(re.hidden&&!re.hidden(re)||!re.hidden?0:-1)}}function qe(Y,Ve){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 Nt(Y,Ve){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 tn(Y,Ve){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 pn(Y,Ve){if(1&Y&&(a.j41(0,"div",13)(1,"div",14),a.DNE(2,qe,1,2,"mat-icon",15),a.j41(3,"div",16)(4,"div",17)(5,"span",18),a.EFF(6),a.k0s()(),a.DNE(7,Nt,3,2,"div",19),a.k0s(),a.DNE(8,tn,3,2,"div",20),a.k0s()()),2&Y){const re=Ve.$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 Wn=(()=>{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,Qe){return Qe.id||re}static{this.\u0275fac=function(Qe){return new(Qe||Y)}}static{this.\u0275cmp=a.VBU({type:Y,selectors:[["angor-horizontal-navigation-branch-item"]],viewQuery:function(Qe,Et){if(1&Qe&&a.GBs(En,7),2&Qe){let Fn;a.mGM(Fn=a.lsd())&&(Et.matMenu=Fn.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(Qe,Et){1&Qe&&(a.DNE(0,Ut,3,9,"div",4),a.j41(1,"mat-menu",5,0),a.Z7z(3,se,1,1,null,null,Et.trackByFn,!0),a.k0s(),a.DNE(5,pn,9,13,"ng-template",null,1,a.C5r)),2&Qe&&(a.vxM(Et.child?-1:0),a.R7$(),a.Y8G("overlapTrigger",!1),a.R7$(2),a.Dyx(Et.item.children))},dependencies:()=>[Y,A.YU,T.Cn,T.kk,T.fb,T.Cp,A.T3,wn,$n,k.uc,k.oV,S.m_,S.An],encapsulation:2,changeDetection:0})}}return Y})(),Pt=(()=>{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(Qe){return new(Qe||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(Qe,Et){1&Qe&&a.nrm(0,"div",0),2&Qe&&a.Y8G("ngClass",null==Et.item.classes?null:Et.item.classes.wrapper)},dependencies:[A.YU],encapsulation:2,changeDetection:0})}}return Y})();function en(Y,Ve){if(1&Y&&a.nrm(0,"angor-horizontal-navigation-basic-item",1),2&Y){const re=a.XpG(2).$implicit,Qe=a.XpG();a.Y8G("item",re)("name",Qe.name)}}function an(Y,Ve){if(1&Y&&a.nrm(0,"angor-horizontal-navigation-branch-item",1),2&Y){const re=a.XpG(2).$implicit,Qe=a.XpG();a.Y8G("item",re)("name",Qe.name)}}function Yn(Y,Ve){if(1&Y&&a.nrm(0,"angor-horizontal-navigation-spacer-item",1),2&Y){const re=a.XpG(2).$implicit,Qe=a.XpG();a.Y8G("item",re)("name",Qe.name)}}function Sn(Y,Ve){if(1&Y&&a.DNE(0,en,1,2,"angor-horizontal-navigation-basic-item",1)(1,an,1,2,"angor-horizontal-navigation-branch-item",1)(2,Yn,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 Xt(Y,Ve){if(1&Y&&a.DNE(0,Sn,3,3),2&Y){const re=Ve.$implicit;a.vxM(re.hidden&&!re.hidden(re)||!re.hidden?0:-1)}}let Mt=(()=>{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,Qe){return Qe.id||re}static{this.\u0275fac=function(Qe){return new(Qe||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(Qe,Et){1&Qe&&(a.j41(0,"div",0),a.Z7z(1,Xt,1,1,null,null,Et.trackByFn,!0),a.k0s()),2&Qe&&(a.R7$(),a.Dyx(Et.navigation))},dependencies:[wn,Wn,Pt],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 Gt=Y=>({"angor-vertical-navigation-item-active-forced":Y}),Ot=Y=>[Y];function Ie(Y,Ve){1&Y&&a.eu8(0)}function Me(Y,Ve){if(1&Y&&(a.j41(0,"a",2),a.DNE(1,Ie,1,0,"ng-container",6),a.k0s()),2&Y){let re,Qe,Et,Fn;const fn=a.XpG(),cr=a.sdS(9);a.Y8G("ngClass",a.eq3(10,Gt,fn.item.active))("routerLink",a.eq3(12,Ot,fn.item.link))("fragment",null!==(re=fn.item.fragment)&&void 0!==re?re:null)("preserveFragment",null!==(Qe=fn.item.preserveFragment)&&void 0!==Qe&&Qe)("queryParams",null!==(Et=fn.item.queryParams)&&void 0!==Et?Et:null)("queryParamsHandling",null!==(Fn=fn.item.queryParamsHandling)&&void 0!==Fn?Fn:null)("routerLinkActive","angor-vertical-navigation-item-active")("routerLinkActiveOptions",fn.isActiveMatchOptions)("matTooltip",fn.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",cr)}}function nt(Y,Ve){1&Y&&a.eu8(0)}function W(Y,Ve){if(1&Y&&(a.j41(0,"a",3),a.DNE(1,nt,1,0,"ng-container",6),a.k0s()),2&Y){const re=a.XpG(),Qe=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",Qe)}}function L(Y,Ve){1&Y&&a.eu8(0)}function V(Y,Ve){if(1&Y){const re=a.RV6();a.j41(0,"div",7),a.bIt("click",function(){a.eBV(re);const Et=a.XpG();return a.Njj(Et.item.function(Et.item))}),a.DNE(1,L,1,0,"ng-container",6),a.k0s()}if(2&Y){const re=a.XpG(),Qe=a.sdS(9);a.Y8G("ngClass",a.eq3(3,Gt,re.item.active))("matTooltip",re.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",Qe)}}function Re(Y,Ve){1&Y&&a.eu8(0)}function bt(Y,Ve){if(1&Y){const re=a.RV6();a.j41(0,"a",8),a.bIt("click",function(){a.eBV(re);const Et=a.XpG();return a.Njj(Et.item.function(Et.item))}),a.DNE(1,Re,1,0,"ng-container",6),a.k0s()}if(2&Y){let re,Qe,Et,Fn;const fn=a.XpG(),cr=a.sdS(9);a.Y8G("ngClass",a.eq3(10,Gt,fn.item.active))("routerLink",a.eq3(12,Ot,fn.item.link))("fragment",null!==(re=fn.item.fragment)&&void 0!==re?re:null)("preserveFragment",null!==(Qe=fn.item.preserveFragment)&&void 0!==Qe&&Qe)("queryParams",null!==(Et=fn.item.queryParams)&&void 0!==Et?Et:null)("queryParamsHandling",null!==(Fn=fn.item.queryParamsHandling)&&void 0!==Fn?Fn:null)("routerLinkActive","angor-vertical-navigation-item-active")("routerLinkActiveOptions",fn.isActiveMatchOptions)("matTooltip",fn.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",cr)}}function mt(Y,Ve){1&Y&&a.eu8(0)}function At(Y,Ve){if(1&Y){const re=a.RV6();a.j41(0,"a",9),a.bIt("click",function(){a.eBV(re);const Et=a.XpG();return a.Njj(Et.item.function(Et.item))}),a.DNE(1,mt,1,0,"ng-container",6),a.k0s()}if(2&Y){const re=a.XpG(),Qe=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",Qe)}}function Ln(Y,Ve){1&Y&&a.eu8(0)}function Zt(Y,Ve){if(1&Y&&(a.j41(0,"div",4),a.DNE(1,Ln,1,0,"ng-container",6),a.k0s()),2&Y){const re=a.XpG(),Qe=a.sdS(9);a.Y8G("ngClass",a.eq3(3,Gt,re.item.active))("matTooltip",re.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",Qe)}}function gn(Y,Ve){1&Y&&a.eu8(0)}function In(Y,Ve){if(1&Y&&(a.j41(0,"div",5),a.DNE(1,gn,1,0,"ng-container",6),a.k0s()),2&Y){const re=a.XpG(),Qe=a.sdS(9);a.Y8G("matTooltip",re.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",Qe)}}function Bn(Y,Ve){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 Hn(Y,Ve){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 xr(Y,Ve){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 ei(Y,Ve){if(1&Y&&(a.DNE(0,Bn,1,2,"mat-icon",10),a.j41(1,"div",11)(2,"div",12)(3,"span",13),a.EFF(4),a.k0s()(),a.DNE(5,Hn,3,2,"div",14),a.k0s(),a.DNE(6,xr,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(Qe){return new(Qe||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(Qe,Et){1&Qe&&(a.j41(0,"div",1),a.DNE(1,Me,2,14,"a",2)(2,W,2,4,"a",3)(3,V,2,5,"div",4)(4,bt,2,14,"a",2)(5,At,2,4,"a",3)(6,Zt,2,5,"div",4)(7,In,2,2,"div",5),a.k0s(),a.DNE(8,ei,7,5,"ng-template",null,0,a.C5r)),2&Qe&&(a.AVh("angor-vertical-navigation-item-has-subtitle",!!Et.item.subtitle),a.Y8G("ngClass",null==Et.item.classes?null:Et.item.classes.wrapper),a.R7$(),a.vxM(!Et.item.link||Et.item.externalLink||Et.item.function||Et.item.disabled?-1:1),a.R7$(),a.vxM(Et.item.link&&Et.item.externalLink&&!Et.item.function&&!Et.item.disabled?2:-1),a.R7$(),a.vxM(Et.item.link||!Et.item.function||Et.item.disabled?-1:3),a.R7$(),a.vxM(Et.item.link&&!Et.item.externalLink&&Et.item.function&&!Et.item.disabled?4:-1),a.R7$(),a.vxM(Et.item.link&&Et.item.externalLink&&Et.item.function&&!Et.item.disabled?5:-1),a.R7$(),a.vxM(Et.item.link||Et.item.function||Et.item.disabled?-1:6),a.R7$(),a.vxM(Et.item.disabled?7:-1))},dependencies:[A.YU,R.Wk,R.wQ,k.uc,k.oV,A.T3,S.m_,S.An],encapsulation:2,changeDetection:0})}}return Y})(),vt=(()=>{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(Qe){return new(Qe||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(Qe,Et){1&Qe&&a.nrm(0,"div",0),2&Qe&&a.Y8G("ngClass",null==Et.item.classes?null:Et.item.classes.wrapper)},dependencies:[A.YU],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(Qe){return new(Qe||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(Qe,Et){1&Qe&&a.nrm(0,"div",0),2&Qe&&a.Y8G("ngClass",null==Et.item.classes?null:Et.item.classes.wrapper)},dependencies:[A.YU],encapsulation:2,changeDetection:0})}}return Y})();function Ee(Y,Ve){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 at(Y,Ve){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 Fe(Y,Ve){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 Rt(Y,Ve){if(1&Y&&a.nrm(0,"angor-vertical-navigation-basic-item",9),2&Y){const re=a.XpG(2).$implicit,Qe=a.XpG();a.Y8G("item",re)("name",Qe.name)}}function dt(Y,Ve){if(1&Y&&a.nrm(0,"angor-vertical-navigation-collapsable-item",10),2&Y){const re=a.XpG(2).$implicit,Qe=a.XpG();a.Y8G("item",re)("name",Qe.name)("autoCollapse",Qe.autoCollapse)}}function Bt(Y,Ve){if(1&Y&&a.nrm(0,"angor-vertical-navigation-divider-item",9),2&Y){const re=a.XpG(2).$implicit,Qe=a.XpG();a.Y8G("item",re)("name",Qe.name)}}function _n(Y,Ve){if(1&Y&&a.nrm(0,"angor-vertical-navigation-group-item",9),2&Y){const re=a.XpG(2).$implicit,Qe=a.XpG();a.Y8G("item",re)("name",Qe.name)}}function or(Y,Ve){if(1&Y&&a.nrm(0,"angor-vertical-navigation-spacer-item",9),2&Y){const re=a.XpG(2).$implicit,Qe=a.XpG();a.Y8G("item",re)("name",Qe.name)}}function Mr(Y,Ve){if(1&Y&&a.DNE(0,Rt,1,2,"angor-vertical-navigation-basic-item",9)(1,dt,1,3,"angor-vertical-navigation-collapsable-item",10)(2,Bt,1,2,"angor-vertical-navigation-divider-item",9)(3,_n,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,Ve){if(1&Y&&a.DNE(0,Mr,5,5),2&Y){const re=Ve.$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,Qe){return Qe.id||re}static{this.\u0275fac=function(Qe){return new(Qe||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(Qe,Et){1&Qe&&(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,at,3,2,"div",6),a.k0s(),a.DNE(8,Fe,3,2,"div",7),a.k0s()(),a.Z7z(9,ii,1,1,null,null,Et.trackByFn,!0)),2&Qe&&(a.AVh("angor-vertical-navigation-item-has-subtitle",!!Et.item.subtitle),a.Y8G("ngClass",null==Et.item.classes?null:Et.item.classes.wrapper),a.R7$(2),a.vxM(Et.item.icon?2:-1),a.R7$(3),a.Y8G("ngClass",null==Et.item.classes?null:Et.item.classes.title),a.R7$(),a.SpI(" ",Et.item.title," "),a.R7$(),a.vxM(Et.item.subtitle?7:-1),a.R7$(),a.vxM(Et.item.badge?8:-1),a.R7$(),a.Dyx(Et.item.children))},dependencies:()=>[Y,A.YU,S.m_,S.An,Xr,so,vt,$t],encapsulation:2,changeDetection:0})}}return Y})();var Si=r(1483);const sn=Y=>({"angor-vertical-navigation-item-disabled":Y});function Tt(Y,Ve){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 Je(Y,Ve){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 St(Y,Ve){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 zt(Y,Ve){if(1&Y&&a.nrm(0,"angor-vertical-navigation-basic-item",11),2&Y){const re=a.XpG(2).$implicit,Qe=a.XpG(2);a.Y8G("item",re)("name",Qe.name)}}function zn(Y,Ve){if(1&Y&&a.nrm(0,"angor-vertical-navigation-collapsable-item",12),2&Y){const re=a.XpG(2).$implicit,Qe=a.XpG(2);a.Y8G("item",re)("name",Qe.name)("autoCollapse",Qe.autoCollapse)}}function hr(Y,Ve){if(1&Y&&a.nrm(0,"angor-vertical-navigation-divider-item",11),2&Y){const re=a.XpG(2).$implicit,Qe=a.XpG(2);a.Y8G("item",re)("name",Qe.name)}}function ho(Y,Ve){if(1&Y&&a.nrm(0,"angor-vertical-navigation-group-item",11),2&Y){const re=a.XpG(2).$implicit,Qe=a.XpG(2);a.Y8G("item",re)("name",Qe.name)}}function Ii(Y,Ve){if(1&Y&&a.nrm(0,"angor-vertical-navigation-spacer-item",11),2&Y){const re=a.XpG(2).$implicit,Qe=a.XpG(2);a.Y8G("item",re)("name",Qe.name)}}function Uo(Y,Ve){if(1&Y&&a.DNE(0,zt,1,2,"angor-vertical-navigation-basic-item",11)(1,zn,1,3,"angor-vertical-navigation-collapsable-item",12)(2,hr,1,2,"angor-vertical-navigation-divider-item",11)(3,ho,1,2,"angor-vertical-navigation-group-item",11)(4,Ii,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,Ve){if(1&Y&&a.DNE(0,Uo,5,5),2&Y){const re=Ve.$implicit;a.vxM(re.hidden&&!re.hidden(re)||!re.hidden?0:-1)}}function ns(Y,Ve){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)(R.Ix),this._angorNavigationService=(0,a.WQX)(c),this.isCollapsed=!0,this.isExpanded=!1,this._unsubscribeAll=new C.B}get classList(){return{"angor-vertical-navigation-item-collapsed":this.isCollapsed,"angor-vertical-navigation-item-expanded":this.isExpanded}}ngOnInit(){this._angorVerticalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._hasActiveChild(this.item,this._router.url)?this.expand():this.autoCollapse&&this.collapse(),this._angorVerticalNavigationComponent.onCollapsableItemCollapsed.pipe((0,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,Si.p)(re=>re instanceof R.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,Qe){return Qe.id||re}_hasActiveChild(re,Qe){const Et=re.children;if(!Et)return!1;for(const Fn of Et)if(Fn.children&&this._hasActiveChild(Fn,Qe)||Fn.link&&this._router.isActive(Fn.link,Fn.exactMatch||!1))return!0;return!1}_isChildrenOf(re,Qe){const Et=re.children;if(!Et)return!1;if(Et.indexOf(Qe)>-1)return!0;for(const Fn of Et)if(Fn.children&&this._isChildrenOf(Fn,Qe))return!0;return!1}static{this.\u0275fac=function(Qe){return new(Qe||Y)}}static{this.\u0275cmp=a.VBU({type:Y,selectors:[["angor-vertical-navigation-collapsable-item"]],hostVars:2,hostBindings:function(Qe,Et){2&Qe&&a.HbH(Et.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(Qe,Et){1&Qe&&(a.j41(0,"div",0)(1,"div",1),a.bIt("click",function(){return Et.toggleCollapsable()}),a.DNE(2,Tt,1,2,"mat-icon",2),a.j41(3,"div",3)(4,"div",4)(5,"span",5),a.EFF(6),a.k0s()(),a.DNE(7,Je,3,2,"div",6),a.k0s(),a.DNE(8,St,3,2,"div",7),a.nrm(9,"mat-icon",8),a.k0s()(),a.DNE(10,ns,3,1,"div",9)),2&Qe&&(a.AVh("angor-vertical-navigation-item-has-subtitle",!!Et.item.subtitle),a.Y8G("ngClass",null==Et.item.classes?null:Et.item.classes.wrapper),a.R7$(),a.Y8G("ngClass",a.eq3(12,sn,Et.item.disabled))("matTooltip",Et.item.tooltip||""),a.R7$(),a.vxM(Et.item.icon?2:-1),a.R7$(3),a.Y8G("ngClass",null==Et.item.classes?null:Et.item.classes.title),a.R7$(),a.SpI(" ",Et.item.title," "),a.R7$(),a.vxM(Et.item.subtitle?7:-1),a.R7$(),a.vxM(Et.item.badge?8:-1),a.R7$(),a.Y8G("svgIcon","heroicons_solid:chevron-right"),a.R7$(),a.vxM(Et.isCollapsed?-1:10))},dependencies:()=>[Y,A.YU,k.uc,k.oV,S.m_,S.An,Xr,vt,ci,$t],encapsulation:2,data:{animation:i.F},changeDetection:0})}}return Y})();const bo=(Y,Ve,re)=>({"angor-vertical-navigation-item-active":Y,"angor-vertical-navigation-item-disabled":Ve,"angor-vertical-navigation-item-active-forced":re});function Xo(Y,Ve){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 Do(Y,Ve){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 Ms(Y,Ve){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,Ve){if(1&Y&&a.nrm(0,"angor-vertical-navigation-basic-item",10),2&Y){const re=a.XpG(2).$implicit,Qe=a.XpG(2);a.Y8G("item",re)("name",Qe.name)}}function oo(Y,Ve){if(1&Y&&a.nrm(0,"angor-vertical-navigation-collapsable-item",11),2&Y){const re=a.XpG(2).$implicit,Qe=a.XpG(2);a.Y8G("item",re)("name",Qe.name)("autoCollapse",Qe.autoCollapse)}}function Bi(Y,Ve){if(1&Y&&a.nrm(0,"angor-vertical-navigation-divider-item",10),2&Y){const re=a.XpG(2).$implicit,Qe=a.XpG(2);a.Y8G("item",re)("name",Qe.name)}}function Mo(Y,Ve){if(1&Y&&a.nrm(0,"angor-vertical-navigation-group-item",10),2&Y){const re=a.XpG(2).$implicit,Qe=a.XpG(2);a.Y8G("item",re)("name",Qe.name)}}function et(Y,Ve){if(1&Y&&a.nrm(0,"angor-vertical-navigation-spacer-item",10),2&Y){const re=a.XpG(2).$implicit,Qe=a.XpG(2);a.Y8G("item",re)("name",Qe.name)}}function ct(Y,Ve){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,et,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 xt(Y,Ve){if(1&Y&&a.DNE(0,ct,5,5),2&Y){const re=Ve.$implicit;a.vxM(re.hidden&&!re.hidden(re)||!re.hidden?0:-1)}}function me(Y,Ve){if(1&Y&&(a.j41(0,"div",8),a.Z7z(1,xt,1,1,null,null,a.BUC().trackByFn,!0),a.k0s()),2&Y){const re=a.XpG();a.R7$(),a.Dyx(re.item.children)}}let tt=(()=>{class Y{constructor(){this._changeDetectorRef=(0,a.WQX)(a.gRc),this._router=(0,a.WQX)(R.Ix),this._angorNavigationService=(0,a.WQX)(c),this.active=!1,this._unsubscribeAll=new C.B}ngOnChanges(re){"activeItemId"in re&&this._markIfActive(this._router.url)}ngOnInit(){this._markIfActive(this._router.url),this._router.events.pipe((0,Si.p)(re=>re instanceof R.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,Qe){return Qe.id||re}_hasActiveChild(re,Qe){const Et=re.children;if(!Et)return!1;for(const Fn of Et){if(Fn.children&&this._hasActiveChild(Fn,Qe))return!0;if("basic"===Fn.type&&Fn.link&&this._router.isActive(Fn.link,Fn.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(Qe){return new(Qe||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(Qe,Et){1&Qe&&(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,Do,3,2,"div",6),a.k0s(),a.DNE(8,Ms,3,2,"div",7),a.k0s()(),a.DNE(9,me,3,0,"div",8)),2&Qe&&(a.AVh("angor-vertical-navigation-item-has-subtitle",!!Et.item.subtitle),a.Y8G("ngClass",null==Et.item.classes?null:Et.item.classes.wrapper),a.R7$(),a.Y8G("ngClass",a.sMw(11,bo,Et.active,Et.item.disabled,Et.item.active))("matTooltip",Et.item.tooltip||""),a.R7$(),a.vxM(Et.item.icon?2:-1),a.R7$(3),a.Y8G("ngClass",null==Et.item.classes?null:Et.item.classes.title),a.R7$(),a.SpI(" ",Et.item.title," "),a.R7$(),a.vxM(Et.item.subtitle?7:-1),a.R7$(),a.vxM(Et.item.badge?8:-1),a.R7$(),a.vxM(Et.skipChildren?-1:9))},dependencies:[A.YU,k.uc,k.oV,S.m_,S.An,Xr,so,vt,ci,$t],encapsulation:2,changeDetection:0})}}return Y})();class Oe{constructor(Ve,re,Qe,Et){this.x=Ve,this.y=re,this.w=Qe,this.h=Et}}class ht{constructor(Ve,re){this.x=Ve,this.y=re}}var Vt=r(3022),kt=r(2147),hn=r(4819);function Cn(Y){return getComputedStyle(Y)}function An(Y,Ve){for(var re in Ve){var Qe=Ve[re];"number"==typeof Qe&&(Qe+="px"),Y.style[re]=Qe}return Y}function On(Y){var Ve=document.createElement("div");return Ve.className=Y,Ve}var Un=typeof Element<"u"&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function Jn(Y,Ve){if(!Un)throw new Error("No element matching method supported");return Un.call(Y,Ve)}function sr(Y){Y.remove?Y.remove():Y.parentNode&&Y.parentNode.removeChild(Y)}function Ir(Y,Ve){return Array.prototype.filter.call(Y.children,function(re){return Jn(re,Ve)})}var pr={main:"ps",rtl:"ps__rtl",element:{thumb:function(Y){return"ps__thumb-"+Y},rail:function(Y){return"ps__rail-"+Y},consuming:"ps__child--consume"},state:{focus:"ps--focus",clicking:"ps--clicking",active:function(Y){return"ps--active-"+Y},scrolling:function(Y){return"ps--scrolling-"+Y}}},bi={x:null,y:null};function si(Y,Ve){var re=Y.element.classList,Qe=pr.state.scrolling(Ve);re.contains(Qe)?clearTimeout(bi[Ve]):re.add(Qe)}function mr(Y,Ve){bi[Ve]=setTimeout(function(){return Y.isAlive&&Y.element.classList.remove(pr.state.scrolling(Ve))},Y.settings.scrollingThreshold)}var _o=function(Ve){this.element=Ve,this.handlers={}},$r={isEmpty:{configurable:!0}};_o.prototype.bind=function(Ve,re){typeof this.handlers[Ve]>"u"&&(this.handlers[Ve]=[]),this.handlers[Ve].push(re),this.element.addEventListener(Ve,re,!1)},_o.prototype.unbind=function(Ve,re){var Qe=this;this.handlers[Ve]=this.handlers[Ve].filter(function(Et){return!(!re||Et===re)||(Qe.element.removeEventListener(Ve,Et,!1),!1)})},_o.prototype.unbindAll=function(){for(var Ve in this.handlers)this.unbind(Ve)},$r.isEmpty.get=function(){var Y=this;return Object.keys(this.handlers).every(function(Ve){return 0===Y.handlers[Ve].length})},Object.defineProperties(_o.prototype,$r);var Gi=function(){this.eventElements=[]};function cs(Y){if("function"==typeof window.CustomEvent)return new CustomEvent(Y);var Ve=document.createEvent("CustomEvent");return Ve.initCustomEvent(Y,!1,!1,void 0),Ve}function ws(Y,Ve,re,Qe,Et){var Fn;if(void 0===Qe&&(Qe=!0),void 0===Et&&(Et=!1),"top"===Ve)Fn=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==Ve)throw new Error("A proper axis should be provided");Fn=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function ea(Y,Ve,re,Qe,Et){var Fn=re[0],fn=re[1],cr=re[2],dr=re[3],Gr=re[4],Ki=re[5];void 0===Qe&&(Qe=!0),void 0===Et&&(Et=!1);var Or=Y.element;Y.reach[dr]=null,Or[cr]<1&&(Y.reach[dr]="start"),Or[cr]>Y[Fn]-Y[fn]-1&&(Y.reach[dr]="end"),Ve&&(Or.dispatchEvent(cs("ps-scroll-"+dr)),Ve<0?Or.dispatchEvent(cs("ps-scroll-"+Gr)):Ve>0&&Or.dispatchEvent(cs("ps-scroll-"+Ki)),Qe&&function ai(Y,Ve){si(Y,Ve),mr(Y,Ve)}(Y,dr)),Y.reach[dr]&&(Ve||Et)&&Or.dispatchEvent(cs("ps-"+dr+"-reach-"+Y.reach[dr]))}(Y,re,Fn,Qe,Et)}function Sr(Y){return parseInt(Y,10)||0}Gi.prototype.eventElement=function(Ve){var re=this.eventElements.filter(function(Qe){return Qe.element===Ve})[0];return re||(re=new _o(Ve),this.eventElements.push(re)),re},Gi.prototype.bind=function(Ve,re,Qe){this.eventElement(Ve).bind(re,Qe)},Gi.prototype.unbind=function(Ve,re,Qe){var Et=this.eventElement(Ve);Et.unbind(re,Qe),Et.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(Et),1)},Gi.prototype.unbindAll=function(){this.eventElements.forEach(function(Ve){return Ve.unbindAll()}),this.eventElements=[]},Gi.prototype.once=function(Ve,re,Qe){var Et=this.eventElement(Ve),Fn=function(fn){Et.unbind(re,Fn),Qe(fn)};Et.bind(re,Fn)};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 Ns(Y){var Ve=Y.element,re=Math.floor(Ve.scrollTop),Qe=Ve.getBoundingClientRect();Y.containerWidth=Math.floor(Qe.width),Y.containerHeight=Math.floor(Qe.height),Y.contentWidth=Ve.scrollWidth,Y.contentHeight=Ve.scrollHeight,Ve.contains(Y.scrollbarXRail)||(Ir(Ve,pr.element.rail("x")).forEach(function(Et){return sr(Et)}),Ve.appendChild(Y.scrollbarXRail)),Ve.contains(Y.scrollbarYRail)||(Ir(Ve,pr.element.rail("y")).forEach(function(Et){return sr(Et)}),Ve.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 Ks(Y,Ve){var re={width:Ve.railXWidth},Qe=Math.floor(Y.scrollTop);re.left=Ve.isRtl?Ve.negativeScrollAdjustment+Y.scrollLeft+Ve.containerWidth-Ve.contentWidth:Y.scrollLeft,Ve.isScrollbarXUsingBottom?re.bottom=Ve.scrollbarXBottom-Qe:re.top=Ve.scrollbarXTop+Qe,An(Ve.scrollbarXRail,re);var Et={top:Qe,height:Ve.railYHeight};Ve.isScrollbarYUsingRight?Et.right=Ve.isRtl?Ve.contentWidth-(Ve.negativeScrollAdjustment+Y.scrollLeft)-Ve.scrollbarYRight-Ve.scrollbarYOuterWidth-9:Ve.scrollbarYRight-Y.scrollLeft:Et.left=Ve.isRtl?Ve.negativeScrollAdjustment+Y.scrollLeft+2*Ve.containerWidth-Ve.contentWidth-Ve.scrollbarYLeft-Ve.scrollbarYOuterWidth:Ve.scrollbarYLeft+Y.scrollLeft,An(Ve.scrollbarYRail,Et),An(Ve.scrollbarX,{left:Ve.scrollbarXLeft,width:Ve.scrollbarXWidth-Ve.railBorderXWidth}),An(Ve.scrollbarY,{top:Ve.scrollbarYTop,height:Ve.scrollbarYHeight-Ve.railBorderYWidth})}(Ve,Y),Y.scrollbarXActive?Ve.classList.add(pr.state.active("x")):(Ve.classList.remove(pr.state.active("x")),Y.scrollbarXWidth=0,Y.scrollbarXLeft=0,Ve.scrollLeft=!0===Y.isRtl?Y.contentWidth:0),Y.scrollbarYActive?Ve.classList.add(pr.state.active("y")):(Ve.classList.remove(pr.state.active("y")),Y.scrollbarYHeight=0,Y.scrollbarYTop=0,Ve.scrollTop=0)}function Ls(Y,Ve){return Y.settings.minScrollbarLength&&(Ve=Math.max(Ve,Y.settings.minScrollbarLength)),Y.settings.maxScrollbarLength&&(Ve=Math.min(Ve,Y.settings.maxScrollbarLength)),Ve}var Gs=null;function Ps(Y,Ve){var re=Ve[0],Qe=Ve[1],Et=Ve[2],Fn=Ve[3],fn=Ve[4],cr=Ve[5],dr=Ve[6],Gr=Ve[7],Ki=Ve[8],Or=Y.element,Dr=null,Ei=null,ui=null;function fo(Oo){Oo.touches&&Oo.touches[0]&&(Oo[Et]=Oo.touches[0]["page"+Gr.toUpperCase()]),Gs===fn&&(Or[dr]=Dr+ui*(Oo[Et]-Ei),si(Y,Gr),Ns(Y),Oo.stopPropagation(),Oo.preventDefault())}function lo(){mr(Y,Gr),Y[Ki].classList.remove(pr.state.clicking),document.removeEventListener("mousemove",fo),document.removeEventListener("mouseup",lo),document.removeEventListener("touchmove",fo),document.removeEventListener("touchend",lo),Gs=null}function Ho(Oo){null===Gs&&(Gs=fn,Dr=Or[dr],Oo.touches&&(Oo[Et]=Oo.touches[0]["page"+Gr.toUpperCase()]),Ei=Oo[Et],ui=(Y[Qe]-Y[re])/(Y[Fn]-Y[cr]),Oo.touches?(document.addEventListener("touchmove",fo,{passive:!1}),document.addEventListener("touchend",lo)):(document.addEventListener("mousemove",fo),document.addEventListener("mouseup",lo)),Y[Ki].classList.add(pr.state.clicking)),Oo.stopPropagation(),Oo.cancelable&&Oo.preventDefault()}Y[fn].addEventListener("mousedown",Ho),Y[fn].addEventListener("touchstart",Ho)}var to={"click-rail":function Wi(Y){Y.event.bind(Y.scrollbarY,"mousedown",function(Ve){return Ve.stopPropagation()}),Y.event.bind(Y.scrollbarYRail,"mousedown",function(Ve){var re=Ve.pageY-window.pageYOffset-Y.scrollbarYRail.getBoundingClientRect().top;Y.element.scrollTop+=(re>Y.scrollbarYTop?1:-1)*Y.containerHeight,Ns(Y),Ve.stopPropagation()}),Y.event.bind(Y.scrollbarX,"mousedown",function(Ve){return Ve.stopPropagation()}),Y.event.bind(Y.scrollbarXRail,"mousedown",function(Ve){var re=Ve.pageX-window.pageXOffset-Y.scrollbarXRail.getBoundingClientRect().left;Y.element.scrollLeft+=(re>Y.scrollbarXLeft?1:-1)*Y.containerWidth,Ns(Y),Ve.stopPropagation()})},"drag-thumb":function Ni(Y){Ps(Y,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"]),Ps(Y,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"])},keyboard:function rs(Y){var Ve=Y.element;Y.event.bind(Y.ownerDocument,"keydown",function(Fn){if(!(Fn.isDefaultPrevented&&Fn.isDefaultPrevented()||Fn.defaultPrevented)&&(Jn(Ve,":hover")||Jn(Y.scrollbarX,":focus")||Jn(Y.scrollbarY,":focus"))){var fn=document.activeElement?document.activeElement:Y.ownerDocument.activeElement;if(fn){if("IFRAME"===fn.tagName)fn=fn.contentDocument.activeElement;else for(;fn.shadowRoot;)fn=fn.shadowRoot.activeElement;if(function ta(Y){return Jn(Y,"input,[contenteditable]")||Jn(Y,"select,[contenteditable]")||Jn(Y,"textarea,[contenteditable]")||Jn(Y,"button,[contenteditable]")}(fn))return}var cr=0,dr=0;switch(Fn.which){case 37:cr=Fn.metaKey?-Y.contentWidth:Fn.altKey?-Y.containerWidth:-30;break;case 38:dr=Fn.metaKey?Y.contentHeight:Fn.altKey?Y.containerHeight:30;break;case 39:cr=Fn.metaKey?Y.contentWidth:Fn.altKey?Y.containerWidth:30;break;case 40:dr=Fn.metaKey?-Y.contentHeight:Fn.altKey?-Y.containerHeight:-30;break;case 32:dr=Fn.shiftKey?Y.containerHeight:-Y.containerHeight;break;case 33:dr=Y.containerHeight;break;case 34:dr=-Y.containerHeight;break;case 36:dr=Y.contentHeight;break;case 35:dr=-Y.contentHeight;break;default:return}Y.settings.suppressScrollX&&0!==cr||Y.settings.suppressScrollY&&0!==dr||(Ve.scrollTop-=dr,Ve.scrollLeft+=cr,Ns(Y),function Et(Fn,fn){var cr=Math.floor(Ve.scrollTop);if(0===Fn){if(!Y.scrollbarYActive)return!1;if(0===cr&&fn>0||cr>=Y.contentHeight-Y.containerHeight&&fn<0)return!Y.settings.wheelPropagation}var dr=Ve.scrollLeft;if(0===fn){if(!Y.scrollbarXActive)return!1;if(0===dr&&Fn<0||dr>=Y.contentWidth-Y.containerWidth&&Fn>0)return!Y.settings.wheelPropagation}return!0}(cr,dr)&&Fn.preventDefault())}})},wheel:function qr(Y){var Ve=Y.element;function Fn(fn){var cr=function Qe(fn){var cr=fn.deltaX,dr=-1*fn.deltaY;return(typeof cr>"u"||typeof dr>"u")&&(cr=-1*fn.wheelDeltaX/6,dr=fn.wheelDeltaY/6),fn.deltaMode&&1===fn.deltaMode&&(cr*=10,dr*=10),cr!=cr&&dr!=dr&&(cr=0,dr=fn.wheelDelta),fn.shiftKey?[-dr,-cr]:[cr,dr]}(fn),dr=cr[0],Gr=cr[1];if(!function Et(fn,cr,dr){if(!wo.isWebKit&&Ve.querySelector("select:focus"))return!0;if(!Ve.contains(fn))return!1;for(var Gr=fn;Gr&&Gr!==Ve;){if(Gr.classList.contains(pr.element.consuming))return!0;var Ki=Cn(Gr);if(dr&&Ki.overflowY.match(/(scroll|auto)/)){var Or=Gr.scrollHeight-Gr.clientHeight;if(Or>0&&(Gr.scrollTop>0&&dr<0||Gr.scrollTop0))return!0}if(cr&&Ki.overflowX.match(/(scroll|auto)/)){var Dr=Gr.scrollWidth-Gr.clientWidth;if(Dr>0&&(Gr.scrollLeft>0&&cr<0||Gr.scrollLeft0))return!0}Gr=Gr.parentNode}return!1}(fn.target,dr,Gr)){var Ki=!1;Y.settings.useBothWheelAxes?Y.scrollbarYActive&&!Y.scrollbarXActive?(Gr?Ve.scrollTop-=Gr*Y.settings.wheelSpeed:Ve.scrollTop+=dr*Y.settings.wheelSpeed,Ki=!0):Y.scrollbarXActive&&!Y.scrollbarYActive&&(dr?Ve.scrollLeft+=dr*Y.settings.wheelSpeed:Ve.scrollLeft-=Gr*Y.settings.wheelSpeed,Ki=!0):(Ve.scrollTop-=Gr*Y.settings.wheelSpeed,Ve.scrollLeft+=dr*Y.settings.wheelSpeed),Ns(Y),Ki=Ki||function re(fn,cr){var dr=Math.floor(Ve.scrollTop),Gr=0===Ve.scrollTop,Ki=dr+Ve.offsetHeight===Ve.scrollHeight,Or=0===Ve.scrollLeft,Dr=Ve.scrollLeft+Ve.offsetWidth===Ve.scrollWidth;return!(Math.abs(cr)>Math.abs(fn)?Gr||Ki:Or||Dr)||!Y.settings.wheelPropagation}(dr,Gr),Ki&&!fn.ctrlKey&&(fn.stopPropagation(),fn.preventDefault())}}typeof window.onwheel<"u"?Y.event.bind(Ve,"wheel",Fn):typeof window.onmousewheel<"u"&&Y.event.bind(Ve,"mousewheel",Fn)},touch:function us(Y){if(wo.supportsTouch||wo.supportsIePointer){var Ve=Y.element,re={startOffset:{},startTime:0,speed:{},easingLoop:null};wo.supportsTouch?(Y.event.bind(Ve,"touchstart",cr),Y.event.bind(Ve,"touchmove",Gr),Y.event.bind(Ve,"touchend",Ki)):wo.supportsIePointer&&(window.PointerEvent?(Y.event.bind(Ve,"pointerdown",cr),Y.event.bind(Ve,"pointermove",Gr),Y.event.bind(Ve,"pointerup",Ki)):window.MSPointerEvent&&(Y.event.bind(Ve,"MSPointerDown",cr),Y.event.bind(Ve,"MSPointerMove",Gr),Y.event.bind(Ve,"MSPointerUp",Ki)))}function Et(Or,Dr){Ve.scrollTop-=Dr,Ve.scrollLeft-=Or,Ns(Y)}function Fn(Or){return Or.targetTouches?Or.targetTouches[0]:Or}function fn(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 cr(Or){if(fn(Or)){var Dr=Fn(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(fn(Or)){var Dr=Fn(Or),Ei={pageX:Dr.pageX,pageY:Dr.pageY},ui=Ei.pageX-re.startOffset.pageX,fo=Ei.pageY-re.startOffset.pageY;if(function dr(Or,Dr,Ei){if(!Ve.contains(Or))return!1;for(var ui=Or;ui&&ui!==Ve;){if(ui.classList.contains(pr.element.consuming))return!0;var fo=Cn(ui);if(Ei&&fo.overflowY.match(/(scroll|auto)/)){var lo=ui.scrollHeight-ui.clientHeight;if(lo>0&&(ui.scrollTop>0&&Ei<0||ui.scrollTop0))return!0}if(Dr&&fo.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,fo))return;Et(ui,fo),re.startOffset=Ei;var lo=(new Date).getTime(),Ho=lo-re.startTime;Ho>0&&(re.speed.x=ui/Ho,re.speed.y=fo/Ho,re.startTime=lo),function Qe(Or,Dr){var Ei=Math.floor(Ve.scrollTop),ui=Ve.scrollLeft,fo=Math.abs(Or),lo=Math.abs(Dr);if(lo>fo){if(Dr<0&&Ei===Y.contentHeight-Y.containerHeight||Dr>0&&0===Ei)return 0===window.scrollY&&Dr>0&&wo.isChrome}else if(fo>lo&&(Or<0&&ui===Y.contentWidth-Y.containerWidth||Or>0&&0===ui))return!0;return!0}(ui,fo)&&Or.cancelable&&Or.preventDefault()}}function Ki(){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):(Et(30*re.speed.x,30*re.speed.y),re.speed.x*=.8,re.speed.y*=.8):clearInterval(re.easingLoop)},10))}}},zi=function(Ve,re){var Qe=this;if(void 0===re&&(re={}),"string"==typeof Ve&&(Ve=document.querySelector(Ve)),!Ve||!Ve.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var Et in this.element=Ve,Ve.classList.add(pr.main),this.settings={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1},re)this.settings[Et]=re[Et];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var Ki,Gr,Fn=function(){return Ve.classList.add(pr.state.focus)},fn=function(){return Ve.classList.remove(pr.state.focus)};this.isRtl="rtl"===Cn(Ve).direction,!0===this.isRtl&&Ve.classList.add(pr.rtl),this.isNegativeScroll=(Gr=Ve.scrollLeft,Ve.scrollLeft=-1,Ki=Ve.scrollLeft<0,Ve.scrollLeft=Gr,Ki),this.negativeScrollAdjustment=this.isNegativeScroll?Ve.scrollWidth-Ve.clientWidth:0,this.event=new Gi,this.ownerDocument=Ve.ownerDocument||document,this.scrollbarXRail=On(pr.element.rail("x")),Ve.appendChild(this.scrollbarXRail),this.scrollbarX=On(pr.element.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",Fn),this.event.bind(this.scrollbarX,"blur",fn),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var cr=Cn(this.scrollbarXRail);this.scrollbarXBottom=parseInt(cr.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=Sr(cr.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=Sr(cr.borderLeftWidth)+Sr(cr.borderRightWidth),An(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=Sr(cr.marginLeft)+Sr(cr.marginRight),An(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=On(pr.element.rail("y")),Ve.appendChild(this.scrollbarYRail),this.scrollbarY=On(pr.element.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",Fn),this.event.bind(this.scrollbarY,"blur",fn),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var dr=Cn(this.scrollbarYRail);this.scrollbarYRight=parseInt(dr.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=Sr(dr.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function pa(Y){var Ve=Cn(Y);return Sr(Ve.width)+Sr(Ve.paddingLeft)+Sr(Ve.paddingRight)+Sr(Ve.borderLeftWidth)+Sr(Ve.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=Sr(dr.borderTopWidth)+Sr(dr.borderBottomWidth),An(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=Sr(dr.marginTop)+Sr(dr.marginBottom),An(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:Ve.scrollLeft<=0?"start":Ve.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:Ve.scrollTop<=0?"start":Ve.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(Gr){return to[Gr](Qe)}),this.lastScrollTop=Math.floor(Ve.scrollTop),this.lastScrollLeft=Ve.scrollLeft,this.event.bind(this.element,"scroll",function(Gr){return Qe.onScroll(Gr)}),Ns(this)};zi.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,An(this.scrollbarXRail,{display:"block"}),An(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=Sr(Cn(this.scrollbarXRail).marginLeft)+Sr(Cn(this.scrollbarXRail).marginRight),this.railYMarginHeight=Sr(Cn(this.scrollbarYRail).marginTop)+Sr(Cn(this.scrollbarYRail).marginBottom),An(this.scrollbarXRail,{display:"none"}),An(this.scrollbarYRail,{display:"none"}),Ns(this),ws(this,"top",0,!1,!0),ws(this,"left",0,!1,!0),An(this.scrollbarXRail,{display:""}),An(this.scrollbarYRail,{display:""}))},zi.prototype.onScroll=function(Ve){this.isAlive&&(Ns(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)},zi.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)},zi.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(Ve){return!Ve.match(/^ps([-_].+|)$/)}).join(" ")};const Es=zi;var ko=r(909),ma=r(8627);let tr=(()=>{class Y{constructor(){this._elementRef=(0,a.WQX)(a.aKT),this._platform=(0,a.WQX)(kt.OD),this.angorScrollbar=!0,this._ps=null,this._unsubscribeAll=new C.B}get elementRef(){return this._elementRef}get ps(){return this._ps}ngOnChanges(re){"angorScrollbar"in re&&(this.angorScrollbar=(0,Vt.he)(re.angorScrollbar.currentValue),this.angorScrollbar?this._initScrollbar():this._destroyScrollbar()),"angorScrollbarOptions"in re&&(this._options=(0,hn.A)({},this._options,re.angorScrollbarOptions.currentValue),this._reinitializeScrollbar())}ngOnInit(){(0,ko.R)(window,"resize").pipe((0,G.Q)(this._unsubscribeAll),(0,ma.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 ht(this._ps.reach.x||0,this._ps.reach.y||0):new ht(this._elementRef.nativeElement.scrollLeft,this._elementRef.nativeElement.scrollTop)}scrollTo(re,Qe,Et){null==Qe&&null==Et?this.animateScrolling("scrollTop",re,Et):(null!=re&&this.scrollToX(re,Et),null!=Qe&&this.scrollToY(Qe,Et))}scrollToX(re,Qe){this.animateScrolling("scrollLeft",re,Qe)}scrollToY(re,Qe){this.animateScrolling("scrollTop",re,Qe)}scrollToTop(re=0,Qe){this.animateScrolling("scrollTop",re,Qe)}scrollToBottom(re=0,Qe){this.animateScrolling("scrollTop",this._elementRef.nativeElement.scrollHeight-this._elementRef.nativeElement.clientHeight-re,Qe)}scrollToLeft(re=0,Qe){this.animateScrolling("scrollLeft",re,Qe)}scrollToRight(re=0,Qe){this.animateScrolling("scrollLeft",this._elementRef.nativeElement.scrollWidth-this._elementRef.nativeElement.clientWidth-re,Qe)}scrollToElement(re,Qe=0,Et=!1,Fn){const fn=this._elementRef.nativeElement.querySelector(re);if(!fn)return;const cr=fn.getBoundingClientRect(),dr=this._elementRef.nativeElement.getBoundingClientRect();this._elementRef.nativeElement.classList.contains("ps--active-x")&&this._scrollToInAxis(cr.left,dr.left,"scrollLeft",Qe,Et,Fn),this._elementRef.nativeElement.classList.contains("ps--active-y")&&this._scrollToInAxis(cr.top,dr.top,"scrollTop",Qe,Et,Fn)}animateScrolling(re,Qe,Et){this._animation&&window.cancelAnimationFrame(this._animation),!Et||typeof window>"u"?this._elementRef.nativeElement[re]=Qe:Qe!==this._elementRef.nativeElement[re]&&this._smoothScroll(re,Qe,Et)}_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,Qe,Et,Fn,fn,cr){fn&&re<=Qe-Math.abs(Fn)||this.animateScrolling(Et,re-Qe+this._elementRef.nativeElement[Et]+Fn,cr)}_smoothScroll(re,Qe,Et){let Fn=0,fn=this._elementRef.nativeElement[re];const cr=(fn-Qe)/2;let dr=performance.now();const Gr=Ki=>{Fn+=Math.PI/(Et/(Ki-dr));const Or=Math.round(Qe+cr+cr*Math.cos(Fn));this._elementRef.nativeElement[re]===fn&&(Fn>=Math.PI?this.animateScrolling(re,Qe,0):(this._elementRef.nativeElement[re]=Or,fn=this._elementRef.nativeElement[re],dr=Ki,this._animation=window.requestAnimationFrame(Gr)))};window.requestAnimationFrame(Gr)}static{this.\u0275fac=function(Qe){return new(Qe||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(1204),os=r(9666),ks=r(7509),Fs=r(8136);const ga=["navigationContent"],Yo=[[["","angorVerticalNavigationHeader",""]],[["","angorVerticalNavigationContentHeader",""]],[["","angorVerticalNavigationFooter",""]]],Ai=["[angorVerticalNavigationHeader]","[angorVerticalNavigationContentHeader]","[angorVerticalNavigationFooter]"],na=Y=>({wheelPropagation:Y,suppressScrollX:!0}),bl=()=>({wheelPropagation:!1,suppressScrollX:!0});function Qo(Y,Ve){if(1&Y){const re=a.RV6();a.j41(0,"angor-vertical-navigation-aside-item",10),a.bIt("click",function(){a.eBV(re);const Et=a.XpG(2).$implicit,Fn=a.XpG();return a.Njj(Fn.toggleAside(Et))}),a.k0s()}if(2&Y){const re=a.XpG(2).$implicit,Qe=a.XpG();a.Y8G("item",re)("name",Qe.name)("activeItemId",Qe.activeAsideItemId)("autoCollapse",Qe.autoCollapse)("skipChildren",!0)}}function ra(Y,Ve){if(1&Y&&a.nrm(0,"angor-vertical-navigation-basic-item",8),2&Y){const re=a.XpG(2).$implicit,Qe=a.XpG();a.Y8G("item",re)("name",Qe.name)}}function ao(Y,Ve){if(1&Y&&a.nrm(0,"angor-vertical-navigation-collapsable-item",9),2&Y){const re=a.XpG(2).$implicit,Qe=a.XpG();a.Y8G("item",re)("name",Qe.name)("autoCollapse",Qe.autoCollapse)}}function ss(Y,Ve){if(1&Y&&a.nrm(0,"angor-vertical-navigation-divider-item",8),2&Y){const re=a.XpG(2).$implicit,Qe=a.XpG();a.Y8G("item",re)("name",Qe.name)}}function vo(Y,Ve){if(1&Y&&a.nrm(0,"angor-vertical-navigation-group-item",9),2&Y){const re=a.XpG(2).$implicit,Qe=a.XpG();a.Y8G("item",re)("name",Qe.name)("autoCollapse",Qe.autoCollapse)}}function Zo(Y,Ve){if(1&Y&&a.nrm(0,"angor-vertical-navigation-spacer-item",8),2&Y){const re=a.XpG(2).$implicit,Qe=a.XpG();a.Y8G("item",re)("name",Qe.name)}}function vi(Y,Ve){if(1&Y&&a.DNE(0,Qo,1,5,"angor-vertical-navigation-aside-item",7)(1,ra,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,vo,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 Pa(Y,Ve){if(1&Y&&a.DNE(0,vi,6,6),2&Y){const re=Ve.$implicit;a.vxM(re.hidden&&!re.hidden(re)||!re.hidden?0:-1)}}function Io(Y,Ve){if(1&Y&&a.nrm(0,"angor-vertical-navigation-aside-item",9),2&Y){const re=a.XpG(2).$implicit,Qe=a.XpG(2);a.Y8G("item",re)("name",Qe.name)("autoCollapse",Qe.autoCollapse)}}function Xs(Y,Ve){if(1&Y&&a.DNE(0,Io,1,3,"angor-vertical-navigation-aside-item",9),2&Y){const re=a.XpG().$implicit,Qe=a.XpG(2);a.vxM("aside"===re.type&&re.id===Qe.activeAsideItemId?0:-1)}}function wl(Y,Ve){if(1&Y&&a.DNE(0,Xs,1,1),2&Y){const re=Ve.$implicit;a.vxM(re.hidden&&!re.hidden(re)||!re.hidden?0:-1)}}function Xa(Y,Ve){if(1&Y&&(a.j41(0,"div",6),a.Z7z(1,wl,1,1,null,null,a.BUC().trackByFn,!0),a.k0s()),2&Y){const re=a.XpG();a.Y8G("angorScrollbarOptions",a.lJ4(5,bl))("@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)(A.qQ),this._elementRef=(0,a.WQX)(a.aKT),this._renderer2=(0,a.WQX)(a.sFG),this._router=(0,a.WQX)(R.Ix),this._scrollStrategyOptions=(0,a.WQX)(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,Fs.c)(250)).subscribe(()=>{re.forEach(Qe=>{Qe.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,Vt.he)(re.inner.currentValue)),"mode"in re){const Qe=re.mode.currentValue,Et=re.mode.previousValue;this._disableAnimations(),"over"===Et&&"side"===Qe&&this._hideOverlay(),"side"===Et&&"over"===Qe&&(this.closeAside(),this.opened&&this._showOverlay()),this.modeChanged.next(Qe),setTimeout(()=>{this._enableAnimations()},500)}"navigation"in re&&this._changeDetectorRef.markForCheck(),"opened"in re&&(this.opened=(0,Vt.he)(re.opened.currentValue),this._toggleOpened(this.opened)),"position"in re&&this.positionChanged.next(re.position.currentValue),"transparentOverlay"in re&&(this.transparentOverlay=(0,Vt.he)(re.transparentOverlay.currentValue))}ngOnInit(){""===this.name&&(this.name=this._angorUtilsService.randomId()),this._angorNavigationService.registerComponent(this.name,this),this._router.events.pipe((0,Si.p)(re=>re instanceof R.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(Qe=>{const Et=Qe.target;if("class"===Qe.attributeName)if(Et.classList.contains("cdk-global-scrollblock")){const Fn=parseInt(Et.style.top,10);this._renderer2.setStyle(this._elementRef.nativeElement,"margin-top",`${Math.abs(Fn)}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,Qe){return Qe.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(Qe){return new(Qe||Y)}}static{this.\u0275cmp=a.VBU({type:Y,selectors:[["angor-vertical-navigation"]],viewQuery:function(Qe,Et){if(1&Qe&&(a.GBs(ga,5),a.GBs(tr,5)),2&Qe){let Fn;a.mGM(Fn=a.lsd())&&(Et._navigationContentEl=Fn.first),a.mGM(Fn=a.lsd())&&(Et.angorScrollbarDirectives=Fn)}},hostVars:4,hostBindings:function(Qe,Et){1&Qe&&a.bIt("mouseenter",function(){return Et._onMouseenter()})("mouseleave",function(){return Et._onMouseleave()}),2&Qe&&(a.Aen(Et.styleList),a.HbH(Et.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:Ai,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(Qe,Et){1&Qe&&(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,Pa,1,1,null,null,Et.trackByFn,!0),a.k0s(),a.j41(9,"div",5),a.SdG(10,2),a.k0s()(),a.DNE(11,Xa,3,6,"div",6)),2&Qe&&(a.R7$(3),a.Y8G("angorScrollbarOptions",a.eq3(2,na,Et.inner)),a.R7$(4),a.Dyx(Et.navigation),a.R7$(4),a.vxM(Et.activeAsideItemId?11:-1))},dependencies:[tr,tt,Xr,so,vt,ci,$t],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})()},7891:(o,s,r)=>{"use strict";r.d(s,{t:()=>a});const a=new(r(3107).nKC)("ANGOR_APP_CONFIG")},1109:(o,s,r)=>{"use strict";r.d(s,{P:()=>w});var i=r(7891),a=r(3107),c=r(4819),y=r(1217);let w=(()=>{class C{constructor(){this._defaultConfig=(0,a.WQX)(i.t),this._configSubject=new y.t(this._defaultConfig)}get config$(){return this._configSubject.asObservable()}set config(S){const T=(0,c.A)({},this._configSubject.getValue(),S);this._configSubject.next(T)}reset(){this._configSubject.next(this._defaultConfig)}static{this.\u0275fac=function(T){return new(T||C)}}static{this.\u0275prov=a.jDH({token:C,factory:C.\u0275fac,providedIn:"root"})}}return C})()},7153:(o,s,r)=>{"use strict";r.d(s,{m:()=>pe});var i=r(4460),a=r(3107),c=r(9471),y=r(7544),w=r(3904);const C=(Te,Ce,Ne,Se,xe,ae,le,ke)=>({"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":Ce,"bg-warn-100 text-warn-600 dark:bg-warn-600 dark:text-warn-50":Ne,"bg-gray-100 text-gray-600 dark:bg-gray-600 dark:text-gray-50":Se,"bg-blue-100 text-blue-600 dark:bg-blue-600 dark:text-blue-50":xe,"bg-green-100 text-green-500 dark:bg-green-500 dark:text-green-50":ae,"bg-amber-100 text-amber-500 dark:bg-amber-500 dark:text-amber-50":le,"bg-red-100 text-red-600 dark:bg-red-600 dark:text-red-50":ke});function A(Te,Ce){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,Ce){if(1&Te&&(a.j41(0,"div",3),a.nrm(1,"mat-icon",8),a.k0s()),2&Te){const Ne=a.XpG();a.Y8G("ngClass",a.lV(2,C,"primary"===Ne.data.icon.color,"accent"===Ne.data.icon.color,"warn"===Ne.data.icon.color,"basic"===Ne.data.icon.color,"info"===Ne.data.icon.color,"success"===Ne.data.icon.color,"warning"===Ne.data.icon.color,"error"===Ne.data.icon.color)),a.R7$(),a.Y8G("svgIcon",Ne.data.icon.name)}}function T(Te,Ce){if(1&Te&&a.nrm(0,"div",9),2&Te){const Ne=a.XpG(2);a.Y8G("innerHTML",Ne.data.title,a.npT)}}function k(Te,Ce){if(1&Te&&a.nrm(0,"div",10),2&Te){const Ne=a.XpG(2);a.Y8G("innerHTML",Ne.data.message,a.npT)}}function R(Te,Ce){if(1&Te&&(a.j41(0,"div",4),a.DNE(1,T,1,1,"div",9)(2,k,1,1,"div",10),a.k0s()),2&Te){const Ne=a.XpG();a.R7$(),a.vxM(Ne.data.title?1:-1),a.R7$(),a.vxM(Ne.data.message?2:-1)}}function G(Te,Ce){if(1&Te&&(a.j41(0,"button",11),a.EFF(1),a.k0s()),2&Te){const Ne=a.XpG(2);a.Y8G("matDialogClose","cancelled"),a.R7$(),a.SpI(" ",Ne.data.actions.cancel.label," ")}}function Z(Te,Ce){if(1&Te&&(a.j41(0,"button",12),a.EFF(1),a.k0s()),2&Te){const Ne=a.XpG(2);a.Y8G("color",Ne.data.actions.confirm.color)("matDialogClose","confirmed"),a.R7$(),a.SpI(" ",Ne.data.actions.confirm.label," ")}}function te(Te,Ce){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 Ne=a.XpG();a.R7$(),a.vxM(Ne.data.actions.cancel.show?1:-1),a.R7$(),a.vxM(Ne.data.actions.confirm.show?2:-1)}}let we=(()=>{class Te{constructor(){this.data=(0,a.WQX)(y.Vh)}static{this.\u0275fac=function(Se){return new(Se||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(Se,xe){1&Se&&(a.j41(0,"div",0),a.DNE(1,A,3,2,"div",1),a.j41(2,"div",2),a.DNE(3,S,2,11,"div",3)(4,R,3,2,"div",4),a.k0s(),a.DNE(5,te,3,2,"div",5),a.k0s()),2&Se&&(a.R7$(),a.vxM(xe.data.dismissible?1:-1),a.R7$(2),a.vxM(xe.data.icon.show?3:-1),a.R7$(),a.vxM(xe.data.title||xe.data.message?4:-1),a.R7$(),a.vxM(xe.data.actions.confirm.show||xe.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 _e=r(4819);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(Ne={}){const Se=(0,_e.A)({},this._defaultConfig,Ne);return this._matDialog.open(we,{autoFocus:!1,disableClose:!Se.dismissible,data:Se,panelClass:"angor-confirmation-dialog-panel"})}static{this.\u0275fac=function(Se){return new(Se||Te)}}static{this.\u0275prov=a.jDH({token:Te,factory:Te.\u0275fac,providedIn:"root"})}}return Te})()},2012:(o,s,r)=>{"use strict";r.d(s,{l:()=>S});var i=r(1109),a=r(6520),c=r(3107),y=r(6143),w=r(7838),C=r(7947),A=r(2867);let S=(()=>{class T{constructor(){this._breakpointObserver=(0,c.WQX)(a.QP),this._angorConfigService=(0,c.WQX)(i.P),this._onMediaChange=new w.m(1),this._angorConfigService.config$.pipe((0,C.T)(R=>(0,y.A)(Object.entries(R.screens).map(([G,Z])=>[G,`(min-width: ${Z})`]))),(0,A.n)(R=>this._breakpointObserver.observe(Object.values(R)).pipe((0,C.T)(G=>{const Z=[],te={},we=Object.entries(G.breakpoints).filter(([_e,pe])=>pe)??[];for(const[_e]of we){const pe=Object.entries(R).find(([Te,Ce])=>Ce===_e)[0];pe&&(Z.push(pe),te[pe]=_e)}this._onMediaChange.next({matchingAliases:Z,matchingQueries:te})})))).subscribe()}get onMediaChange$(){return this._onMediaChange.asObservable()}onMediaQueryChange$(R){return this._breakpointObserver.observe(R)}static{this.\u0275fac=function(G){return new(G||T)}}static{this.\u0275prov=c.jDH({token:T,factory:T.\u0275fac,providedIn:"root"})}}return T})()},3939:(o,s,r)=>{"use strict";r.d(s,{Q:()=>a});var i=r(3107);let a=(()=>{class c{get exactMatchOptions(){return{paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"}}get subsetMatchOptions(){return{paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"}}randomId(w=10){let A="";for(let S=0;S<10;S++)A+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".charAt(Math.floor(62*Math.random()));return A}static{this.\u0275fac=function(C){return new(C||c)}}static{this.\u0275prov=i.jDH({token:c,factory:c.\u0275fac,providedIn:"root"})}}return c})()},4482:(o,s,r)=>{"use strict";r.d(s,{v:()=>y});var i=r(3024),a=r(8447),c=r(3107);let y=(()=>{class w{constructor(){this.publicKeySubject=new a.B,this.previousPublicKey=null,this.initializeNostrLogin(),this.setupEventListeners()}initializeNostrLogin(){(0,i.Ts)({theme:"ocean",noBanner:!0,title:"Angor Hub",onAuth:(A,S)=>{this.handleAuthSuccess(A,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(A){const{type:S,pubkey:T,options:k}=A.detail;switch(S){case"login":console.log("User logged in:",T),this.handleAuthSuccess(T,k);break;case"signup":console.log("User signed up:",T),this.handleSignupSuccess(T,k);break;case"logout":console.log("User logged out"),this.handleLogout();break;case"switch-account":console.log("User switched account:",T),this.handleAccountSwitch(T,k);break;default:console.warn("Unknown nlAuth event type:",S)}this.previousPublicKey&&this.previousPublicKey!==T&&(console.log("Account switched to:",T),this.handleAccountSwitch(T,k)),this.previousPublicKey=T}handleAuthSuccess(A,S){console.log("Authenticated successfully with public key:",A),this.publicKeySubject.next(A)}handleSignupSuccess(A,S){console.log("Signup successful with public key:",A),this.publicKeySubject.next(A)}handleAccountSwitch(A,S){console.log("Account switched to:",A),this.publicKeySubject.next(A),window.location.reload()}handleLogout(){console.log("Logged out"),this.publicKeySubject.next("")}handleNlDarkModeEvent(A){const S=A.detail;console.log("Dark mode changed to:",S?"enabled":"disabled"),this.updateDarkMode(S)}handleNlLaunchEvent(A){const S=A.detail||"welcome";console.log(`Launching Nostr login screen: ${S}`),this.launchScreen(S)}launchScreen(A){(0,i.ql)(A)}updateDarkMode(A){document.body.classList.toggle("dark-mode",A),console.log("Dark mode is now "+(A?"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(A){document.dispatchEvent(new CustomEvent("nlDarkMode",{detail:A}))}static{this.\u0275fac=function(S){return new(S||w)}}static{this.\u0275prov=c.jDH({token:w,factory:w.\u0275fac,providedIn:"root"})}}return w})()},3125:(o,s,r)=>{"use strict";r.d(s,{b:()=>A});var i=r(3014),a=r(3107),c=r(720),y=r(1217),w=r(8447),C=r(4460);let A=(()=>{class S{constructor(k,R){this.document=k,this.platformId=R,this.pool=new c.lo,this.relays=[],this.maxRetries=10,this.retryDelay=15e3,this.eventSubject=new y.t(null),this.relaysSubject=new y.t([]),this.destroy$=new w.B,this.initializeRelays(),this.setupVisibilityHandling()}initializeRelays(){this.relays=this.loadRelaysFromLocalStorage(),this.connectToRelays(),this.relaysSubject.next(this.relays)}loadRelaysFromLocalStorage(){const k=JSON.parse(localStorage.getItem("nostrRelays")||"[]");return k.length>0?k.map(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 k=this.relays.map(R=>({url:R.url,accessType:R.accessType,connected:R.connected,retries:R.retries,retryTimeout:R.retryTimeout}));localStorage.setItem("nostrRelays",JSON.stringify(k)),this.relaysSubject.next(this.relays)}connectToRelay(k){k.connected||(k.ws=new WebSocket(k.url),k.ws.onopen=()=>{k.connected=!0,k.retries=0,clearTimeout(k.retryTimeout),this.saveRelaysToLocalStorage()},k.ws.onerror=()=>this.handleRelayError(k),k.ws.onclose=()=>{k.connected=!1,this.handleRelayError(k)},k.ws.onmessage=({data:R})=>{try{const G=JSON.parse("string"==typeof R?R:R.toString("utf-8"));this.eventSubject.next(G)}catch(G){console.warn("Error parsing WebSocket message:",G)}})}handleRelayError(k){k.retries>=this.maxRetries?console.warn(`Max retries reached for relay: ${k.url}. No further attempts will be made.`):(k.retries++,k.retryTimeout=setTimeout(()=>this.connectToRelay(k),this.retryDelay*k.retries))}connectToRelays(){this.relays.forEach(k=>!k.connected&&this.connectToRelay(k))}ensureConnectedRelays(){var k=this;return(0,i.A)(function*(){return k.connectToRelays(),new Promise(R=>{const G=setInterval(()=>{k.getConnectedRelays().length>0&&(clearInterval(G),R())},1e3)})})()}setupVisibilityHandling(){(0,C.UE)(this.platformId)&&(this.document.addEventListener("visibilitychange",()=>{"visible"===this.document.visibilityState&&this.connectToRelays()}),window.addEventListener("beforeunload",()=>{this.relays.forEach(k=>k.ws?.close())}))}getConnectedRelays(){return this.relays.filter(k=>k.connected).map(k=>k.url)}getRelays(){return this.relaysSubject.asObservable()}publishEventToWriteRelays(k){var R=this;return(0,i.A)(function*(){const G=R.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=>R.pool.publish([Z.url],k))),R.eventSubject.next(k),k}catch(Z){throw console.error("Failed to publish event to relays:",Z),Z}})()}addRelay(k,R="read-write"){if(!this.relays.some(G=>G.url===k)){const G={url:k,connected:!1,retries:0,retryTimeout:null,accessType:R};this.relays.push(G),this.connectToRelay(G),this.saveRelaysToLocalStorage()}}removeRelay(k){const R=this.relays.find(G=>G.url===k);R&&(R.ws?.close(),clearTimeout(R.retryTimeout)),this.relays=this.relays.filter(G=>G.url!==k),this.saveRelaysToLocalStorage()}removeAllCustomRelays(){const k=["wss://relay.angor.io","wss://relay2.angor.io"];this.relays.forEach(R=>{k.includes(R.url)||(R.ws?.close(),clearTimeout(R.retryTimeout))}),this.relays=this.relays.filter(R=>k.includes(R.url)),this.saveRelaysToLocalStorage()}updateRelayAccessType(k,R){const G=this.relays.find(Z=>Z.url===k);G&&(G.accessType=R,this.saveRelaysToLocalStorage())}getPool(){return this.pool}getEventStream(){return this.eventSubject.asObservable()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.relays.forEach(k=>k.ws?.close())}static{this.\u0275fac=function(R){return new(R||S)(a.KVO(C.qQ,8),a.KVO(a.Agw))}}static{this.\u0275prov=a.jDH({token:S,factory:S.\u0275fac,providedIn:"root"})}}return S})()},8078:(o,s,r)=>{"use strict";r.d(s,{A:()=>Ha});var i={};r.r(i),r.d(i,{OG:()=>ja,My:()=>Ea,Ph:()=>Ar,lX:()=>Ao,Id:()=>Fr,fg:()=>Di,qj:()=>Po,aT:()=>Gn,lq:()=>no,z:()=>$o,Q5:()=>oa});var a=r(3014),c=r(8378),y=r(2226),w=r(871),C=r(720);function T(O){if(!Number.isSafeInteger(O)||O<0)throw new Error(`Wrong positive integer: ${O}`)}function G(O,...B){if(!function R(O){return O instanceof Uint8Array||null!=O&&"object"==typeof O&&"Uint8Array"===O.constructor.name}(O))throw new Error("Expected Uint8Array");if(B.length>0&&!B.includes(O.length))throw new Error(`Expected Uint8Array of length ${B}, not of length=${O.length}`)}function Z(O){if("function"!=typeof O||"function"!=typeof O.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");T(O.outputLen),T(O.blockLen)}function te(O,B=!0){if(O.destroyed)throw new Error("Hash instance has been destroyed");if(B&&O.finished)throw new Error("Hash#digest() has already been called")}r(4704),"abandon\nability\nable\nabout\nabove\nabsent\nabsorb\nabstract\nabsurd\nabuse\naccess\naccident\naccount\naccuse\nachieve\nacid\nacoustic\nacquire\nacross\nact\naction\nactor\nactress\nactual\nadapt\nadd\naddict\naddress\nadjust\nadmit\nadult\nadvance\nadvice\naerobic\naffair\nafford\nafraid\nagain\nage\nagent\nagree\nahead\naim\nair\nairport\naisle\nalarm\nalbum\nalcohol\nalert\nalien\nall\nalley\nallow\nalmost\nalone\nalpha\nalready\nalso\nalter\nalways\namateur\namazing\namong\namount\namused\nanalyst\nanchor\nancient\nanger\nangle\nangry\nanimal\nankle\nannounce\nannual\nanother\nanswer\nantenna\nantique\nanxiety\nany\napart\napology\nappear\napple\napprove\napril\narch\narctic\narea\narena\nargue\narm\narmed\narmor\narmy\naround\narrange\narrest\narrive\narrow\nart\nartefact\nartist\nartwork\nask\naspect\nassault\nasset\nassist\nassume\nasthma\nathlete\natom\nattack\nattend\nattitude\nattract\nauction\naudit\naugust\naunt\nauthor\nauto\nautumn\naverage\navocado\navoid\nawake\naware\naway\nawesome\nawful\nawkward\naxis\nbaby\nbachelor\nbacon\nbadge\nbag\nbalance\nbalcony\nball\nbamboo\nbanana\nbanner\nbar\nbarely\nbargain\nbarrel\nbase\nbasic\nbasket\nbattle\nbeach\nbean\nbeauty\nbecause\nbecome\nbeef\nbefore\nbegin\nbehave\nbehind\nbelieve\nbelow\nbelt\nbench\nbenefit\nbest\nbetray\nbetter\nbetween\nbeyond\nbicycle\nbid\nbike\nbind\nbiology\nbird\nbirth\nbitter\nblack\nblade\nblame\nblanket\nblast\nbleak\nbless\nblind\nblood\nblossom\nblouse\nblue\nblur\nblush\nboard\nboat\nbody\nboil\nbomb\nbone\nbonus\nbook\nboost\nborder\nboring\nborrow\nboss\nbottom\nbounce\nbox\nboy\nbracket\nbrain\nbrand\nbrass\nbrave\nbread\nbreeze\nbrick\nbridge\nbrief\nbright\nbring\nbrisk\nbroccoli\nbroken\nbronze\nbroom\nbrother\nbrown\nbrush\nbubble\nbuddy\nbudget\nbuffalo\nbuild\nbulb\nbulk\nbullet\nbundle\nbunker\nburden\nburger\nburst\nbus\nbusiness\nbusy\nbutter\nbuyer\nbuzz\ncabbage\ncabin\ncable\ncactus\ncage\ncake\ncall\ncalm\ncamera\ncamp\ncan\ncanal\ncancel\ncandy\ncannon\ncanoe\ncanvas\ncanyon\ncapable\ncapital\ncaptain\ncar\ncarbon\ncard\ncargo\ncarpet\ncarry\ncart\ncase\ncash\ncasino\ncastle\ncasual\ncat\ncatalog\ncatch\ncategory\ncattle\ncaught\ncause\ncaution\ncave\nceiling\ncelery\ncement\ncensus\ncentury\ncereal\ncertain\nchair\nchalk\nchampion\nchange\nchaos\nchapter\ncharge\nchase\nchat\ncheap\ncheck\ncheese\nchef\ncherry\nchest\nchicken\nchief\nchild\nchimney\nchoice\nchoose\nchronic\nchuckle\nchunk\nchurn\ncigar\ncinnamon\ncircle\ncitizen\ncity\ncivil\nclaim\nclap\nclarify\nclaw\nclay\nclean\nclerk\nclever\nclick\nclient\ncliff\nclimb\nclinic\nclip\nclock\nclog\nclose\ncloth\ncloud\nclown\nclub\nclump\ncluster\nclutch\ncoach\ncoast\ncoconut\ncode\ncoffee\ncoil\ncoin\ncollect\ncolor\ncolumn\ncombine\ncome\ncomfort\ncomic\ncommon\ncompany\nconcert\nconduct\nconfirm\ncongress\nconnect\nconsider\ncontrol\nconvince\ncook\ncool\ncopper\ncopy\ncoral\ncore\ncorn\ncorrect\ncost\ncotton\ncouch\ncountry\ncouple\ncourse\ncousin\ncover\ncoyote\ncrack\ncradle\ncraft\ncram\ncrane\ncrash\ncrater\ncrawl\ncrazy\ncream\ncredit\ncreek\ncrew\ncricket\ncrime\ncrisp\ncritic\ncrop\ncross\ncrouch\ncrowd\ncrucial\ncruel\ncruise\ncrumble\ncrunch\ncrush\ncry\ncrystal\ncube\nculture\ncup\ncupboard\ncurious\ncurrent\ncurtain\ncurve\ncushion\ncustom\ncute\ncycle\ndad\ndamage\ndamp\ndance\ndanger\ndaring\ndash\ndaughter\ndawn\nday\ndeal\ndebate\ndebris\ndecade\ndecember\ndecide\ndecline\ndecorate\ndecrease\ndeer\ndefense\ndefine\ndefy\ndegree\ndelay\ndeliver\ndemand\ndemise\ndenial\ndentist\ndeny\ndepart\ndepend\ndeposit\ndepth\ndeputy\nderive\ndescribe\ndesert\ndesign\ndesk\ndespair\ndestroy\ndetail\ndetect\ndevelop\ndevice\ndevote\ndiagram\ndial\ndiamond\ndiary\ndice\ndiesel\ndiet\ndiffer\ndigital\ndignity\ndilemma\ndinner\ndinosaur\ndirect\ndirt\ndisagree\ndiscover\ndisease\ndish\ndismiss\ndisorder\ndisplay\ndistance\ndivert\ndivide\ndivorce\ndizzy\ndoctor\ndocument\ndog\ndoll\ndolphin\ndomain\ndonate\ndonkey\ndonor\ndoor\ndose\ndouble\ndove\ndraft\ndragon\ndrama\ndrastic\ndraw\ndream\ndress\ndrift\ndrill\ndrink\ndrip\ndrive\ndrop\ndrum\ndry\nduck\ndumb\ndune\nduring\ndust\ndutch\nduty\ndwarf\ndynamic\neager\neagle\nearly\nearn\nearth\neasily\neast\neasy\necho\necology\neconomy\nedge\nedit\neducate\neffort\negg\neight\neither\nelbow\nelder\nelectric\nelegant\nelement\nelephant\nelevator\nelite\nelse\nembark\nembody\nembrace\nemerge\nemotion\nemploy\nempower\nempty\nenable\nenact\nend\nendless\nendorse\nenemy\nenergy\nenforce\nengage\nengine\nenhance\nenjoy\nenlist\nenough\nenrich\nenroll\nensure\nenter\nentire\nentry\nenvelope\nepisode\nequal\nequip\nera\nerase\nerode\nerosion\nerror\nerupt\nescape\nessay\nessence\nestate\neternal\nethics\nevidence\nevil\nevoke\nevolve\nexact\nexample\nexcess\nexchange\nexcite\nexclude\nexcuse\nexecute\nexercise\nexhaust\nexhibit\nexile\nexist\nexit\nexotic\nexpand\nexpect\nexpire\nexplain\nexpose\nexpress\nextend\nextra\neye\neyebrow\nfabric\nface\nfaculty\nfade\nfaint\nfaith\nfall\nfalse\nfame\nfamily\nfamous\nfan\nfancy\nfantasy\nfarm\nfashion\nfat\nfatal\nfather\nfatigue\nfault\nfavorite\nfeature\nfebruary\nfederal\nfee\nfeed\nfeel\nfemale\nfence\nfestival\nfetch\nfever\nfew\nfiber\nfiction\nfield\nfigure\nfile\nfilm\nfilter\nfinal\nfind\nfine\nfinger\nfinish\nfire\nfirm\nfirst\nfiscal\nfish\nfit\nfitness\nfix\nflag\nflame\nflash\nflat\nflavor\nflee\nflight\nflip\nfloat\nflock\nfloor\nflower\nfluid\nflush\nfly\nfoam\nfocus\nfog\nfoil\nfold\nfollow\nfood\nfoot\nforce\nforest\nforget\nfork\nfortune\nforum\nforward\nfossil\nfoster\nfound\nfox\nfragile\nframe\nfrequent\nfresh\nfriend\nfringe\nfrog\nfront\nfrost\nfrown\nfrozen\nfruit\nfuel\nfun\nfunny\nfurnace\nfury\nfuture\ngadget\ngain\ngalaxy\ngallery\ngame\ngap\ngarage\ngarbage\ngarden\ngarlic\ngarment\ngas\ngasp\ngate\ngather\ngauge\ngaze\ngeneral\ngenius\ngenre\ngentle\ngenuine\ngesture\nghost\ngiant\ngift\ngiggle\nginger\ngiraffe\ngirl\ngive\nglad\nglance\nglare\nglass\nglide\nglimpse\nglobe\ngloom\nglory\nglove\nglow\nglue\ngoat\ngoddess\ngold\ngood\ngoose\ngorilla\ngospel\ngossip\ngovern\ngown\ngrab\ngrace\ngrain\ngrant\ngrape\ngrass\ngravity\ngreat\ngreen\ngrid\ngrief\ngrit\ngrocery\ngroup\ngrow\ngrunt\nguard\nguess\nguide\nguilt\nguitar\ngun\ngym\nhabit\nhair\nhalf\nhammer\nhamster\nhand\nhappy\nharbor\nhard\nharsh\nharvest\nhat\nhave\nhawk\nhazard\nhead\nhealth\nheart\nheavy\nhedgehog\nheight\nhello\nhelmet\nhelp\nhen\nhero\nhidden\nhigh\nhill\nhint\nhip\nhire\nhistory\nhobby\nhockey\nhold\nhole\nholiday\nhollow\nhome\nhoney\nhood\nhope\nhorn\nhorror\nhorse\nhospital\nhost\nhotel\nhour\nhover\nhub\nhuge\nhuman\nhumble\nhumor\nhundred\nhungry\nhunt\nhurdle\nhurry\nhurt\nhusband\nhybrid\nice\nicon\nidea\nidentify\nidle\nignore\nill\nillegal\nillness\nimage\nimitate\nimmense\nimmune\nimpact\nimpose\nimprove\nimpulse\ninch\ninclude\nincome\nincrease\nindex\nindicate\nindoor\nindustry\ninfant\ninflict\ninform\ninhale\ninherit\ninitial\ninject\ninjury\ninmate\ninner\ninnocent\ninput\ninquiry\ninsane\ninsect\ninside\ninspire\ninstall\nintact\ninterest\ninto\ninvest\ninvite\ninvolve\niron\nisland\nisolate\nissue\nitem\nivory\njacket\njaguar\njar\njazz\njealous\njeans\njelly\njewel\njob\njoin\njoke\njourney\njoy\njudge\njuice\njump\njungle\njunior\njunk\njust\nkangaroo\nkeen\nkeep\nketchup\nkey\nkick\nkid\nkidney\nkind\nkingdom\nkiss\nkit\nkitchen\nkite\nkitten\nkiwi\nknee\nknife\nknock\nknow\nlab\nlabel\nlabor\nladder\nlady\nlake\nlamp\nlanguage\nlaptop\nlarge\nlater\nlatin\nlaugh\nlaundry\nlava\nlaw\nlawn\nlawsuit\nlayer\nlazy\nleader\nleaf\nlearn\nleave\nlecture\nleft\nleg\nlegal\nlegend\nleisure\nlemon\nlend\nlength\nlens\nleopard\nlesson\nletter\nlevel\nliar\nliberty\nlibrary\nlicense\nlife\nlift\nlight\nlike\nlimb\nlimit\nlink\nlion\nliquid\nlist\nlittle\nlive\nlizard\nload\nloan\nlobster\nlocal\nlock\nlogic\nlonely\nlong\nloop\nlottery\nloud\nlounge\nlove\nloyal\nlucky\nluggage\nlumber\nlunar\nlunch\nluxury\nlyrics\nmachine\nmad\nmagic\nmagnet\nmaid\nmail\nmain\nmajor\nmake\nmammal\nman\nmanage\nmandate\nmango\nmansion\nmanual\nmaple\nmarble\nmarch\nmargin\nmarine\nmarket\nmarriage\nmask\nmass\nmaster\nmatch\nmaterial\nmath\nmatrix\nmatter\nmaximum\nmaze\nmeadow\nmean\nmeasure\nmeat\nmechanic\nmedal\nmedia\nmelody\nmelt\nmember\nmemory\nmention\nmenu\nmercy\nmerge\nmerit\nmerry\nmesh\nmessage\nmetal\nmethod\nmiddle\nmidnight\nmilk\nmillion\nmimic\nmind\nminimum\nminor\nminute\nmiracle\nmirror\nmisery\nmiss\nmistake\nmix\nmixed\nmixture\nmobile\nmodel\nmodify\nmom\nmoment\nmonitor\nmonkey\nmonster\nmonth\nmoon\nmoral\nmore\nmorning\nmosquito\nmother\nmotion\nmotor\nmountain\nmouse\nmove\nmovie\nmuch\nmuffin\nmule\nmultiply\nmuscle\nmuseum\nmushroom\nmusic\nmust\nmutual\nmyself\nmystery\nmyth\nnaive\nname\nnapkin\nnarrow\nnasty\nnation\nnature\nnear\nneck\nneed\nnegative\nneglect\nneither\nnephew\nnerve\nnest\nnet\nnetwork\nneutral\nnever\nnews\nnext\nnice\nnight\nnoble\nnoise\nnominee\nnoodle\nnormal\nnorth\nnose\nnotable\nnote\nnothing\nnotice\nnovel\nnow\nnuclear\nnumber\nnurse\nnut\noak\nobey\nobject\noblige\nobscure\nobserve\nobtain\nobvious\noccur\nocean\noctober\nodor\noff\noffer\noffice\noften\noil\nokay\nold\nolive\nolympic\nomit\nonce\none\nonion\nonline\nonly\nopen\nopera\nopinion\noppose\noption\norange\norbit\norchard\norder\nordinary\norgan\norient\noriginal\norphan\nostrich\nother\noutdoor\nouter\noutput\noutside\noval\noven\nover\nown\nowner\noxygen\noyster\nozone\npact\npaddle\npage\npair\npalace\npalm\npanda\npanel\npanic\npanther\npaper\nparade\nparent\npark\nparrot\nparty\npass\npatch\npath\npatient\npatrol\npattern\npause\npave\npayment\npeace\npeanut\npear\npeasant\npelican\npen\npenalty\npencil\npeople\npepper\nperfect\npermit\nperson\npet\nphone\nphoto\nphrase\nphysical\npiano\npicnic\npicture\npiece\npig\npigeon\npill\npilot\npink\npioneer\npipe\npistol\npitch\npizza\nplace\nplanet\nplastic\nplate\nplay\nplease\npledge\npluck\nplug\nplunge\npoem\npoet\npoint\npolar\npole\npolice\npond\npony\npool\npopular\nportion\nposition\npossible\npost\npotato\npottery\npoverty\npowder\npower\npractice\npraise\npredict\nprefer\nprepare\npresent\npretty\nprevent\nprice\npride\nprimary\nprint\npriority\nprison\nprivate\nprize\nproblem\nprocess\nproduce\nprofit\nprogram\nproject\npromote\nproof\nproperty\nprosper\nprotect\nproud\nprovide\npublic\npudding\npull\npulp\npulse\npumpkin\npunch\npupil\npuppy\npurchase\npurity\npurpose\npurse\npush\nput\npuzzle\npyramid\nquality\nquantum\nquarter\nquestion\nquick\nquit\nquiz\nquote\nrabbit\nraccoon\nrace\nrack\nradar\nradio\nrail\nrain\nraise\nrally\nramp\nranch\nrandom\nrange\nrapid\nrare\nrate\nrather\nraven\nraw\nrazor\nready\nreal\nreason\nrebel\nrebuild\nrecall\nreceive\nrecipe\nrecord\nrecycle\nreduce\nreflect\nreform\nrefuse\nregion\nregret\nregular\nreject\nrelax\nrelease\nrelief\nrely\nremain\nremember\nremind\nremove\nrender\nrenew\nrent\nreopen\nrepair\nrepeat\nreplace\nreport\nrequire\nrescue\nresemble\nresist\nresource\nresponse\nresult\nretire\nretreat\nreturn\nreunion\nreveal\nreview\nreward\nrhythm\nrib\nribbon\nrice\nrich\nride\nridge\nrifle\nright\nrigid\nring\nriot\nripple\nrisk\nritual\nrival\nriver\nroad\nroast\nrobot\nrobust\nrocket\nromance\nroof\nrookie\nroom\nrose\nrotate\nrough\nround\nroute\nroyal\nrubber\nrude\nrug\nrule\nrun\nrunway\nrural\nsad\nsaddle\nsadness\nsafe\nsail\nsalad\nsalmon\nsalon\nsalt\nsalute\nsame\nsample\nsand\nsatisfy\nsatoshi\nsauce\nsausage\nsave\nsay\nscale\nscan\nscare\nscatter\nscene\nscheme\nschool\nscience\nscissors\nscorpion\nscout\nscrap\nscreen\nscript\nscrub\nsea\nsearch\nseason\nseat\nsecond\nsecret\nsection\nsecurity\nseed\nseek\nsegment\nselect\nsell\nseminar\nsenior\nsense\nsentence\nseries\nservice\nsession\nsettle\nsetup\nseven\nshadow\nshaft\nshallow\nshare\nshed\nshell\nsheriff\nshield\nshift\nshine\nship\nshiver\nshock\nshoe\nshoot\nshop\nshort\nshoulder\nshove\nshrimp\nshrug\nshuffle\nshy\nsibling\nsick\nside\nsiege\nsight\nsign\nsilent\nsilk\nsilly\nsilver\nsimilar\nsimple\nsince\nsing\nsiren\nsister\nsituate\nsix\nsize\nskate\nsketch\nski\nskill\nskin\nskirt\nskull\nslab\nslam\nsleep\nslender\nslice\nslide\nslight\nslim\nslogan\nslot\nslow\nslush\nsmall\nsmart\nsmile\nsmoke\nsmooth\nsnack\nsnake\nsnap\nsniff\nsnow\nsoap\nsoccer\nsocial\nsock\nsoda\nsoft\nsolar\nsoldier\nsolid\nsolution\nsolve\nsomeone\nsong\nsoon\nsorry\nsort\nsoul\nsound\nsoup\nsource\nsouth\nspace\nspare\nspatial\nspawn\nspeak\nspecial\nspeed\nspell\nspend\nsphere\nspice\nspider\nspike\nspin\nspirit\nsplit\nspoil\nsponsor\nspoon\nsport\nspot\nspray\nspread\nspring\nspy\nsquare\nsqueeze\nsquirrel\nstable\nstadium\nstaff\nstage\nstairs\nstamp\nstand\nstart\nstate\nstay\nsteak\nsteel\nstem\nstep\nstereo\nstick\nstill\nsting\nstock\nstomach\nstone\nstool\nstory\nstove\nstrategy\nstreet\nstrike\nstrong\nstruggle\nstudent\nstuff\nstumble\nstyle\nsubject\nsubmit\nsubway\nsuccess\nsuch\nsudden\nsuffer\nsugar\nsuggest\nsuit\nsummer\nsun\nsunny\nsunset\nsuper\nsupply\nsupreme\nsure\nsurface\nsurge\nsurprise\nsurround\nsurvey\nsuspect\nsustain\nswallow\nswamp\nswap\nswarm\nswear\nsweet\nswift\nswim\nswing\nswitch\nsword\nsymbol\nsymptom\nsyrup\nsystem\ntable\ntackle\ntag\ntail\ntalent\ntalk\ntank\ntape\ntarget\ntask\ntaste\ntattoo\ntaxi\nteach\nteam\ntell\nten\ntenant\ntennis\ntent\nterm\ntest\ntext\nthank\nthat\ntheme\nthen\ntheory\nthere\nthey\nthing\nthis\nthought\nthree\nthrive\nthrow\nthumb\nthunder\nticket\ntide\ntiger\ntilt\ntimber\ntime\ntiny\ntip\ntired\ntissue\ntitle\ntoast\ntobacco\ntoday\ntoddler\ntoe\ntogether\ntoilet\ntoken\ntomato\ntomorrow\ntone\ntongue\ntonight\ntool\ntooth\ntop\ntopic\ntopple\ntorch\ntornado\ntortoise\ntoss\ntotal\ntourist\ntoward\ntower\ntown\ntoy\ntrack\ntrade\ntraffic\ntragic\ntrain\ntransfer\ntrap\ntrash\ntravel\ntray\ntreat\ntree\ntrend\ntrial\ntribe\ntrick\ntrigger\ntrim\ntrip\ntrophy\ntrouble\ntruck\ntrue\ntruly\ntrumpet\ntrust\ntruth\ntry\ntube\ntuition\ntumble\ntuna\ntunnel\nturkey\nturn\nturtle\ntwelve\ntwenty\ntwice\ntwin\ntwist\ntwo\ntype\ntypical\nugly\numbrella\nunable\nunaware\nuncle\nuncover\nunder\nundo\nunfair\nunfold\nunhappy\nuniform\nunique\nunit\nuniverse\nunknown\nunlock\nuntil\nunusual\nunveil\nupdate\nupgrade\nuphold\nupon\nupper\nupset\nurban\nurge\nusage\nuse\nused\nuseful\nuseless\nusual\nutility\nvacant\nvacuum\nvague\nvalid\nvalley\nvalve\nvan\nvanish\nvapor\nvarious\nvast\nvault\nvehicle\nvelvet\nvendor\nventure\nvenue\nverb\nverify\nversion\nvery\nvessel\nveteran\nviable\nvibrant\nvicious\nvictory\nvideo\nview\nvillage\nvintage\nviolin\nvirtual\nvirus\nvisa\nvisit\nvisual\nvital\nvivid\nvocal\nvoice\nvoid\nvolcano\nvolume\nvote\nvoyage\nwage\nwagon\nwait\nwalk\nwall\nwalnut\nwant\nwarfare\nwarm\nwarrior\nwash\nwasp\nwaste\nwater\nwave\nway\nwealth\nweapon\nwear\nweasel\nweather\nweb\nwedding\nweekend\nweird\nwelcome\nwest\nwet\nwhale\nwhat\nwheat\nwheel\nwhen\nwhere\nwhip\nwhisper\nwide\nwidth\nwife\nwild\nwill\nwin\nwindow\nwine\nwing\nwink\nwinner\nwinter\nwire\nwisdom\nwise\nwish\nwitness\nwolf\nwoman\nwonder\nwood\nwool\nword\nwork\nworld\nworry\nworth\nwrap\nwreck\nwrestle\nwrist\nwrite\nwrong\nyard\nyear\nyellow\nyou\nyoung\nyouth\nzebra\nzero\nzone\nzoo".split("\n");const Se=O=>new DataView(O.buffer,O.byteOffset,O.byteLength);if(68!==new Uint8Array(new Uint32Array([287454020]).buffer)[0])throw new Error("Non little-endian hardware is not supported");function wn(O){if("string"==typeof O&&(O=function un(O){if("string"!=typeof O)throw new Error("utf8ToBytes expected string, got "+typeof O);return new Uint8Array((new TextEncoder).encode(O))}(O)),!function Ne(O){return O instanceof Uint8Array||null!=O&&"object"==typeof O&&"Uint8Array"===O.constructor.name}(O))throw new Error("expected Uint8Array, got "+typeof O);return O}class En{clone(){return this._cloneInto()}}const Ze={}.toString;function ze(O){const B=oe=>O().update(wn(oe)).digest(),$=O();return B.outputLen=$.outputLen,B.blockLen=$.blockLen,B.create=()=>O(),B}class lt extends En{constructor(B,$){super(),this.finished=!1,this.destroyed=!1,Z(B);const oe=wn($);if(this.iHash=B.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,$e=new Uint8Array(Ae);$e.set(oe.length>Ae?B.create().update(oe).digest():oe);for(let gt=0;gt<$e.length;gt++)$e[gt]^=54;this.iHash.update($e),this.oHash=B.create();for(let gt=0;gt<$e.length;gt++)$e[gt]^=106;this.oHash.update($e),$e.fill(0)}update(B){return te(this),this.iHash.update(B),this}digestInto(B){te(this),G(B,this.outputLen),this.finished=!0,this.iHash.digestInto(B),this.oHash.update(B),this.oHash.digestInto(B),this.destroy()}digest(){const B=new Uint8Array(this.oHash.outputLen);return this.digestInto(B),B}_cloneInto(B){B||(B=Object.create(Object.getPrototypeOf(this),{}));const{oHash:$,iHash:oe,finished:Ae,destroyed:$e,blockLen:gt,outputLen:It}=this;return B.finished=Ae,B.destroyed=$e,B.blockLen=gt,B.outputLen=It,B.oHash=$._cloneInto(B.oHash),B.iHash=oe._cloneInto(B.iHash),B}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const Xe=(O,B,$)=>new lt(O,B).update($).digest();Xe.create=(O,B)=>new lt(O,B);class pn extends En{constructor(B,$,oe,Ae){super(),this.blockLen=B,this.outputLen=$,this.padOffset=oe,this.isLE=Ae,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(B),this.view=Se(this.buffer)}update(B){te(this);const{view:$,buffer:oe,blockLen:Ae}=this,$e=(B=wn(B)).length;for(let gt=0;gt<$e;){const It=Math.min(Ae-this.pos,$e-gt);if(It!==Ae)oe.set(B.subarray(gt,gt+It),this.pos),this.pos+=It,gt+=It,this.pos===Ae&&(this.process($,0),this.pos=0);else{const Wt=Se(B);for(;Ae<=$e-gt;gt+=Ae)this.process(Wt,gt)}}return this.length+=B.length,this.roundClean(),this}digestInto(B){te(this),function we(O,B){G(O);const $=B.outputLen;if(O.length<$)throw new Error(`digestInto() expects output buffer of length at least ${$}`)}(B,this),this.finished=!0;const{buffer:$,view:oe,blockLen:Ae,isLE:$e}=this;let{pos:gt}=this;$[gt++]=128,this.buffer.subarray(gt).fill(0),this.padOffset>Ae-gt&&(this.process(oe,0),gt=0);for(let qt=gt;qt>Ae&$e),It=Number($&$e),ln=oe?0:4;O.setUint32(B+(oe?4:0),gt,oe),O.setUint32(B+ln,It,oe)})(oe,Ae-8,BigInt(8*this.length),$e),this.process(oe,0);const It=Se(B),Wt=this.outputLen;if(Wt%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const ln=Wt/4,Tn=this.get();if(ln>Tn.length)throw new Error("_sha2: outputLen bigger than state");for(let qt=0;qt>Pt&Wn)}:{h:0|Number(O>>Pt&Wn),l:0|Number(O&Wn)}}const Hn_split=function an(O,B=!1){let $=new Uint32Array(O.length),oe=new Uint32Array(O.length);for(let Ae=0;AeO>>>$,Hn_shrSL=(O,B,$)=>O<<32-$|B>>>$,Hn_rotrSH=(O,B,$)=>O>>>$|B<<32-$,Hn_rotrSL=(O,B,$)=>O<<32-$|B>>>$,Hn_rotrBH=(O,B,$)=>O<<64-$|B>>>$-32,Hn_rotrBL=(O,B,$)=>O>>>$-32|B<<64-$,Hn_add=function bt(O,B,$,oe){const Ae=(B>>>0)+(oe>>>0);return{h:O+$+(Ae/2**32|0)|0,l:0|Ae}},Hn_add3L=(O,B,$)=>(O>>>0)+(B>>>0)+($>>>0),Hn_add3H=(O,B,$,oe)=>B+$+oe+(O/2**32|0)|0,Hn_add4L=(O,B,$,oe)=>(O>>>0)+(B>>>0)+($>>>0)+(oe>>>0),Hn_add4H=(O,B,$,oe,Ae)=>B+$+oe+Ae+(O/2**32|0)|0,Hn_add5H=(O,B,$,oe,Ae,$e)=>B+$+oe+Ae+$e+(O/2**32|0)|0,Hn_add5L=(O,B,$,oe,Ae)=>(O>>>0)+(B>>>0)+($>>>0)+(oe>>>0)+(Ae>>>0),[xr,ei]=Hn_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))),Xr=new Uint32Array(80),vt=new Uint32Array(80);class $t extends pn{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:B,Al:$,Bh:oe,Bl:Ae,Ch:$e,Cl:gt,Dh:It,Dl:Wt,Eh:ln,El:Tn,Fh:qt,Fl:Xn,Gh:Kn,Gl:nr,Hh:kn,Hl:jn}=this;return[B,$,oe,Ae,$e,gt,It,Wt,ln,Tn,qt,Xn,Kn,nr,kn,jn]}set(B,$,oe,Ae,$e,gt,It,Wt,ln,Tn,qt,Xn,Kn,nr,kn,jn){this.Ah=0|B,this.Al=0|$,this.Bh=0|oe,this.Bl=0|Ae,this.Ch=0|$e,this.Cl=0|gt,this.Dh=0|It,this.Dl=0|Wt,this.Eh=0|ln,this.El=0|Tn,this.Fh=0|qt,this.Fl=0|Xn,this.Gh=0|Kn,this.Gl=0|nr,this.Hh=0|kn,this.Hl=0|jn}process(B,$){for(let Vn=0;Vn<16;Vn++,$+=4)Xr[Vn]=B.getUint32($),vt[Vn]=B.getUint32($+=4);for(let Vn=16;Vn<80;Vn++){const ur=0|Xr[Vn-15],Pr=0|vt[Vn-15],kr=Hn_rotrSH(ur,Pr,1)^Hn_rotrSH(ur,Pr,8)^Hn_shrSH(ur,Pr,7),zr=Hn_rotrSL(ur,Pr,1)^Hn_rotrSL(ur,Pr,8)^Hn_shrSL(ur,Pr,7),Ur=0|Xr[Vn-2],Yi=0|vt[Vn-2],Qi=Hn_rotrSH(Ur,Yi,19)^Hn_rotrBH(Ur,Yi,61)^Hn_shrSH(Ur,Yi,6),Mi=Hn_rotrSL(Ur,Yi,19)^Hn_rotrBL(Ur,Yi,61)^Hn_shrSL(Ur,Yi,6),Zi=Hn_add4L(zr,Mi,vt[Vn-7],vt[Vn-16]),Bo=Hn_add4H(Zi,kr,Qi,Xr[Vn-7],Xr[Vn-16]);Xr[Vn]=0|Bo,vt[Vn]=0|Zi}let{Ah:oe,Al:Ae,Bh:$e,Bl:gt,Ch:It,Cl:Wt,Dh:ln,Dl:Tn,Eh:qt,El:Xn,Fh:Kn,Fl:nr,Gh:kn,Gl:jn,Hh:Qn,Hl:ir}=this;for(let Vn=0;Vn<80;Vn++){const ur=Hn_rotrSH(qt,Xn,14)^Hn_rotrSH(qt,Xn,18)^Hn_rotrBH(qt,Xn,41),Pr=Hn_rotrSL(qt,Xn,14)^Hn_rotrSL(qt,Xn,18)^Hn_rotrBL(qt,Xn,41),kr=qt&Kn^~qt&kn,Ur=Hn_add5L(ir,Pr,Xn&nr^~Xn&jn,ei[Vn],vt[Vn]),Yi=Hn_add5H(Ur,Qn,ur,kr,xr[Vn],Xr[Vn]),Qi=0|Ur,Mi=Hn_rotrSH(oe,Ae,28)^Hn_rotrBH(oe,Ae,34)^Hn_rotrBH(oe,Ae,39),Zi=Hn_rotrSL(oe,Ae,28)^Hn_rotrBL(oe,Ae,34)^Hn_rotrBL(oe,Ae,39),Bo=oe&$e^oe&It^$e&It,Ds=Ae>^Ae&Wt^gt&Wt;Qn=0|kn,ir=0|jn,kn=0|Kn,jn=0|nr,Kn=0|qt,nr=0|Xn,({h:qt,l:Xn}=Hn_add(0|ln,0|Tn,0|Yi,0|Qi)),ln=0|It,Tn=0|Wt,It=0|$e,Wt=0|gt,$e=0|oe,gt=0|Ae;const vr=Hn_add3L(Qi,Zi,Ds);oe=Hn_add3H(vr,Yi,Mi,Bo),Ae=0|vr}({h:oe,l:Ae}=Hn_add(0|this.Ah,0|this.Al,0|oe,0|Ae)),({h:$e,l:gt}=Hn_add(0|this.Bh,0|this.Bl,0|$e,0|gt)),({h:It,l:Wt}=Hn_add(0|this.Ch,0|this.Cl,0|It,0|Wt)),({h:ln,l:Tn}=Hn_add(0|this.Dh,0|this.Dl,0|ln,0|Tn)),({h:qt,l:Xn}=Hn_add(0|this.Eh,0|this.El,0|qt,0|Xn)),({h:Kn,l:nr}=Hn_add(0|this.Fh,0|this.Fl,0|Kn,0|nr)),({h:kn,l:jn}=Hn_add(0|this.Gh,0|this.Gl,0|kn,0|jn)),({h:Qn,l:ir}=Hn_add(0|this.Hh,0|this.Hl,0|Qn,0|ir)),this.set(oe,Ae,$e,gt,It,Wt,ln,Tn,qt,Xn,Kn,nr,kn,jn,Qn,ir)}roundClean(){Xr.fill(0),vt.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}const Rt=ze(()=>new $t);var or=r(1998);function ii(O){if("string"!=typeof O)throw new TypeError("Invalid mnemonic type: "+typeof O);return O.normalize("NFKD")}function Ii(O,B=""){return function se(O,B,$,oe){const{c:Ae,dkLen:$e,DK:gt,PRF:It,PRFSalt:Wt}=function Ge(O,B,$,oe){Z(O);const Ae=function wt(O,B){if(void 0!==B&&"[object Object]"!==Ze.call(B))throw new Error("Options should be object or undefined");return Object.assign(O,B)}({dkLen:32,asyncTick:10},oe),{c:$e,dkLen:gt,asyncTick:It}=Ae;if(T($e),T(gt),T(It),$e<1)throw new Error("PBKDF2: iterations (c) should be >= 1");const Wt=wn(B),ln=wn($),Tn=new Uint8Array(gt),qt=Xe.create(O,Wt),Xn=qt._cloneInto().update(ln);return{c:$e,dkLen:gt,asyncTick:It,DK:Tn,PRF:qt,PRFSalt:Xn}}(O,B,$,oe);let ln;const Tn=new Uint8Array(4),qt=Se(Tn),Xn=new Uint8Array(It.outputLen);for(let Kn=1,nr=0;nr<$e;Kn++,nr+=It.outputLen){const kn=gt.subarray(nr,nr+It.outputLen);qt.setInt32(0,Kn,!1),(ln=Wt._cloneInto(ln)).update(Tn).digestInto(Xn),kn.set(Xn.subarray(0,kn.length));for(let jn=1;jnii(`mnemonic${O}`))(B),{c:2048,dkLen:64})}function Uo(O){if(!Number.isSafeInteger(O)||O<0)throw new Error(`Wrong positive integer: ${O}`)}function so(O,...B){if(!function ns(O){return O instanceof Uint8Array||null!=O&&"object"==typeof O&&"Uint8Array"===O.constructor.name}(O))throw new Error("Expected Uint8Array");if(B.length>0&&!B.includes(O.length))throw new Error(`Expected Uint8Array of length ${B}, not of length=${O.length}`)}function Xo(O,B=!0){if(O.destroyed)throw new Error("Hash instance has been destroyed");if(B&&O.finished)throw new Error("Hash#digest() has already been called")}function Mo(O){return O instanceof Uint8Array||null!=O&&"object"==typeof O&&"Uint8Array"===O.constructor.name}const et=O=>new DataView(O.buffer,O.byteOffset,O.byteLength),ct=(O,B)=>O<<32-B|O>>>B;if(68!==new Uint8Array(new Uint32Array([287454020]).buffer)[0])throw new Error("Non little-endian hardware is not supported");const me=Array.from({length:256},(O,B)=>B.toString(16).padStart(2,"0")),Oe={_0:48,_9:57,_A:65,_F:70,_a:97,_f:102};function ht(O){return O>=Oe._0&&O<=Oe._9?O-Oe._0:O>=Oe._A&&O<=Oe._F?O-(Oe._A-10):O>=Oe._a&&O<=Oe._f?O-(Oe._a-10):void 0}function An(O){if("string"!=typeof O)throw new Error("utf8ToBytes expected string, got "+typeof O);return new Uint8Array((new TextEncoder).encode(O))}function On(O){if("string"==typeof O&&(O=An(O)),!Mo(O))throw new Error("expected Uint8Array, got "+typeof O);return O}function Un(...O){let B=0;for(let oe=0;oeO().update(On(oe)).digest(),$=O();return B.outputLen=$.outputLen,B.blockLen=$.blockLen,B.create=()=>O(),B}class ai extends Jn{constructor(B,$){super(),this.finished=!1,this.destroyed=!1,function bo(O){if("function"!=typeof O||"function"!=typeof O.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");Uo(O.outputLen),Uo(O.blockLen)}(B);const oe=On($);if(this.iHash=B.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,$e=new Uint8Array(Ae);$e.set(oe.length>Ae?B.create().update(oe).digest():oe);for(let gt=0;gt<$e.length;gt++)$e[gt]^=54;this.iHash.update($e),this.oHash=B.create();for(let gt=0;gt<$e.length;gt++)$e[gt]^=106;this.oHash.update($e),$e.fill(0)}update(B){return Xo(this),this.iHash.update(B),this}digestInto(B){Xo(this),so(B,this.outputLen),this.finished=!0,this.iHash.digestInto(B),this.oHash.update(B),this.oHash.digestInto(B),this.destroy()}digest(){const B=new Uint8Array(this.oHash.outputLen);return this.digestInto(B),B}_cloneInto(B){B||(B=Object.create(Object.getPrototypeOf(this),{}));const{oHash:$,iHash:oe,finished:Ae,destroyed:$e,blockLen:gt,outputLen:It}=this;return B.finished=Ae,B.destroyed=$e,B.blockLen=gt,B.outputLen=It,B.oHash=$._cloneInto(B.oHash),B.iHash=oe._cloneInto(B.iHash),B}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const _o=(O,B,$)=>new ai(O,B).update($).digest();_o.create=(O,B)=>new ai(O,B);class Gi extends Jn{constructor(B,$,oe,Ae){super(),this.blockLen=B,this.outputLen=$,this.padOffset=oe,this.isLE=Ae,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(B),this.view=et(this.buffer)}update(B){Xo(this);const{view:$,buffer:oe,blockLen:Ae}=this,$e=(B=On(B)).length;for(let gt=0;gt<$e;){const It=Math.min(Ae-this.pos,$e-gt);if(It!==Ae)oe.set(B.subarray(gt,gt+It),this.pos),this.pos+=It,gt+=It,this.pos===Ae&&(this.process($,0),this.pos=0);else{const Wt=et(B);for(;Ae<=$e-gt;gt+=Ae)this.process(Wt,gt)}}return this.length+=B.length,this.roundClean(),this}digestInto(B){Xo(this),function Do(O,B){so(O);const $=B.outputLen;if(O.length<$)throw new Error(`digestInto() expects output buffer of length at least ${$}`)}(B,this),this.finished=!0;const{buffer:$,view:oe,blockLen:Ae,isLE:$e}=this;let{pos:gt}=this;$[gt++]=128,this.buffer.subarray(gt).fill(0),this.padOffset>Ae-gt&&(this.process(oe,0),gt=0);for(let qt=gt;qt>Ae&$e),It=Number($&$e),ln=oe?0:4;O.setUint32(B+(oe?4:0),gt,oe),O.setUint32(B+ln,It,oe)})(oe,Ae-8,BigInt(8*this.length),$e),this.process(oe,0);const It=et(B),Wt=this.outputLen;if(Wt%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const ln=Wt/4,Tn=this.get();if(ln>Tn.length)throw new Error("_sha2: outputLen bigger than state");for(let qt=0;qtB);let Sr=[ws],ta=[ws.map(O=>(9*O+5)%16)];for(let O=0;O<4;O++)for(let B of[Sr,ta])B.push(B[O].map($=>cs[$]));const pa=[[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)),wo=Sr.map((O,B)=>O.map($=>pa[B][$])),Ns=ta.map((O,B)=>O.map($=>pa[B][$])),Ls=new Uint32Array([0,1518500249,1859775393,2400959708,2840853838]),Ks=new Uint32Array([1352829926,1548603684,1836072691,2053994217,0]),Wi=(O,B)=>O<>>32-B;function Gs(O,B,$,oe){return 0===O?B^$^oe:1===O?B&$|~B&oe:2===O?(B|~$)^oe:3===O?B&oe|$&~oe:B^($|~oe)}const Ni=new Uint32Array(16);class Ps extends Gi{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:B,h1:$,h2:oe,h3:Ae,h4:$e}=this;return[B,$,oe,Ae,$e]}set(B,$,oe,Ae,$e){this.h0=0|B,this.h1=0|$,this.h2=0|oe,this.h3=0|Ae,this.h4=0|$e}process(B,$){for(let Kn=0;Kn<16;Kn++,$+=4)Ni[Kn]=B.getUint32($,!0);let oe=0|this.h0,Ae=oe,$e=0|this.h1,gt=$e,It=0|this.h2,Wt=It,ln=0|this.h3,Tn=ln,qt=0|this.h4,Xn=qt;for(let Kn=0;Kn<5;Kn++){const nr=4-Kn,kn=Ls[Kn],jn=Ks[Kn],Qn=Sr[Kn],ir=ta[Kn],Vn=wo[Kn],ur=Ns[Kn];for(let Pr=0;Pr<16;Pr++){const kr=Wi(oe+Gs(Kn,$e,It,ln)+Ni[Qn[Pr]]+kn,Vn[Pr])+qt|0;oe=qt,qt=ln,ln=0|Wi(It,10),It=$e,$e=kr}for(let Pr=0;Pr<16;Pr++){const kr=Wi(Ae+Gs(nr,gt,Wt,Tn)+Ni[ir[Pr]]+jn,ur[Pr])+Xn|0;Ae=Xn,Xn=Tn,Tn=0|Wi(Wt,10),Wt=gt,gt=kr}}this.set(this.h1+It+Tn|0,this.h2+ln+Xn|0,this.h3+qt+Ae|0,this.h4+oe+gt|0,this.h0+$e+Wt|0)}roundClean(){Ni.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}}const rs=pr(()=>new Ps),qr=(O,B,$)=>O&B^~O&$,us=(O,B,$)=>O&B^O&$^B&$,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]),zi=new Uint32Array(64);class Es extends Gi{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:B,B:$,C:oe,D:Ae,E:$e,F:gt,G:It,H:Wt}=this;return[B,$,oe,Ae,$e,gt,It,Wt]}set(B,$,oe,Ae,$e,gt,It,Wt){this.A=0|B,this.B=0|$,this.C=0|oe,this.D=0|Ae,this.E=0|$e,this.F=0|gt,this.G=0|It,this.H=0|Wt}process(B,$){for(let qt=0;qt<16;qt++,$+=4)zi[qt]=B.getUint32($,!1);for(let qt=16;qt<64;qt++){const Xn=zi[qt-15],Kn=zi[qt-2],nr=ct(Xn,7)^ct(Xn,18)^Xn>>>3,kn=ct(Kn,17)^ct(Kn,19)^Kn>>>10;zi[qt]=kn+zi[qt-7]+nr+zi[qt-16]|0}let{A:oe,B:Ae,C:$e,D:gt,E:It,F:Wt,G:ln,H:Tn}=this;for(let qt=0;qt<64;qt++){const Kn=Tn+(ct(It,6)^ct(It,11)^ct(It,25))+qr(It,Wt,ln)+is[qt]+zi[qt]|0,kn=(ct(oe,2)^ct(oe,13)^ct(oe,22))+us(oe,Ae,$e)|0;Tn=ln,ln=Wt,Wt=It,It=gt+Kn|0,gt=$e,$e=Ae,Ae=oe,oe=Kn+kn|0}oe=oe+this.A|0,Ae=Ae+this.B|0,$e=$e+this.C|0,gt=gt+this.D|0,It=It+this.E|0,Wt=Wt+this.F|0,ln=ln+this.G|0,Tn=Tn+this.H|0,this.set(oe,Ae,$e,gt,It,Wt,ln,Tn)}roundClean(){zi.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const ma=pr(()=>new Es),Eo=BigInt(2**32-1),os=BigInt(32);function ks(O,B=!1){return B?{h:Number(O&Eo),l:Number(O>>os&Eo)}:{h:0|Number(O>>os&Eo),l:0|Number(O&Eo)}}const Qe_split=function Fs(O,B=!1){let $=new Uint32Array(O.length),oe=new Uint32Array(O.length);for(let Ae=0;AeO>>>$,Qe_shrSL=(O,B,$)=>O<<32-$|B>>>$,Qe_rotrSH=(O,B,$)=>O>>>$|B<<32-$,Qe_rotrSL=(O,B,$)=>O<<32-$|B>>>$,Qe_rotrBH=(O,B,$)=>O<<64-$|B>>>$-32,Qe_rotrBL=(O,B,$)=>O>>>$-32|B<<64-$,Qe_add=function Io(O,B,$,oe){const Ae=(B>>>0)+(oe>>>0);return{h:O+$+(Ae/2**32|0)|0,l:0|Ae}},Qe_add3L=(O,B,$)=>(O>>>0)+(B>>>0)+($>>>0),Qe_add3H=(O,B,$,oe)=>B+$+oe+(O/2**32|0)|0,Qe_add4L=(O,B,$,oe)=>(O>>>0)+(B>>>0)+($>>>0)+(oe>>>0),Qe_add4H=(O,B,$,oe,Ae)=>B+$+oe+Ae+(O/2**32|0)|0,Qe_add5H=(O,B,$,oe,Ae,$e)=>B+$+oe+Ae+$e+(O/2**32|0)|0,Qe_add5L=(O,B,$,oe,Ae)=>(O>>>0)+(B>>>0)+($>>>0)+(oe>>>0)+(Ae>>>0),[Et,Fn]=Qe_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))),fn=new Uint32Array(80),cr=new Uint32Array(80);class dr extends Gi{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:B,Al:$,Bh:oe,Bl:Ae,Ch:$e,Cl:gt,Dh:It,Dl:Wt,Eh:ln,El:Tn,Fh:qt,Fl:Xn,Gh:Kn,Gl:nr,Hh:kn,Hl:jn}=this;return[B,$,oe,Ae,$e,gt,It,Wt,ln,Tn,qt,Xn,Kn,nr,kn,jn]}set(B,$,oe,Ae,$e,gt,It,Wt,ln,Tn,qt,Xn,Kn,nr,kn,jn){this.Ah=0|B,this.Al=0|$,this.Bh=0|oe,this.Bl=0|Ae,this.Ch=0|$e,this.Cl=0|gt,this.Dh=0|It,this.Dl=0|Wt,this.Eh=0|ln,this.El=0|Tn,this.Fh=0|qt,this.Fl=0|Xn,this.Gh=0|Kn,this.Gl=0|nr,this.Hh=0|kn,this.Hl=0|jn}process(B,$){for(let Vn=0;Vn<16;Vn++,$+=4)fn[Vn]=B.getUint32($),cr[Vn]=B.getUint32($+=4);for(let Vn=16;Vn<80;Vn++){const ur=0|fn[Vn-15],Pr=0|cr[Vn-15],kr=Qe_rotrSH(ur,Pr,1)^Qe_rotrSH(ur,Pr,8)^Qe_shrSH(ur,Pr,7),zr=Qe_rotrSL(ur,Pr,1)^Qe_rotrSL(ur,Pr,8)^Qe_shrSL(ur,Pr,7),Ur=0|fn[Vn-2],Yi=0|cr[Vn-2],Qi=Qe_rotrSH(Ur,Yi,19)^Qe_rotrBH(Ur,Yi,61)^Qe_shrSH(Ur,Yi,6),Mi=Qe_rotrSL(Ur,Yi,19)^Qe_rotrBL(Ur,Yi,61)^Qe_shrSL(Ur,Yi,6),Zi=Qe_add4L(zr,Mi,cr[Vn-7],cr[Vn-16]),Bo=Qe_add4H(Zi,kr,Qi,fn[Vn-7],fn[Vn-16]);fn[Vn]=0|Bo,cr[Vn]=0|Zi}let{Ah:oe,Al:Ae,Bh:$e,Bl:gt,Ch:It,Cl:Wt,Dh:ln,Dl:Tn,Eh:qt,El:Xn,Fh:Kn,Fl:nr,Gh:kn,Gl:jn,Hh:Qn,Hl:ir}=this;for(let Vn=0;Vn<80;Vn++){const ur=Qe_rotrSH(qt,Xn,14)^Qe_rotrSH(qt,Xn,18)^Qe_rotrBH(qt,Xn,41),Pr=Qe_rotrSL(qt,Xn,14)^Qe_rotrSL(qt,Xn,18)^Qe_rotrBL(qt,Xn,41),kr=qt&Kn^~qt&kn,Ur=Qe_add5L(ir,Pr,Xn&nr^~Xn&jn,Fn[Vn],cr[Vn]),Yi=Qe_add5H(Ur,Qn,ur,kr,Et[Vn],fn[Vn]),Qi=0|Ur,Mi=Qe_rotrSH(oe,Ae,28)^Qe_rotrBH(oe,Ae,34)^Qe_rotrBH(oe,Ae,39),Zi=Qe_rotrSL(oe,Ae,28)^Qe_rotrBL(oe,Ae,34)^Qe_rotrBL(oe,Ae,39),Bo=oe&$e^oe&It^$e&It,Ds=Ae>^Ae&Wt^gt&Wt;Qn=0|kn,ir=0|jn,kn=0|Kn,jn=0|nr,Kn=0|qt,nr=0|Xn,({h:qt,l:Xn}=Qe_add(0|ln,0|Tn,0|Yi,0|Qi)),ln=0|It,Tn=0|Wt,It=0|$e,Wt=0|gt,$e=0|oe,gt=0|Ae;const vr=Qe_add3L(Qi,Zi,Ds);oe=Qe_add3H(vr,Yi,Mi,Bo),Ae=0|vr}({h:oe,l:Ae}=Qe_add(0|this.Ah,0|this.Al,0|oe,0|Ae)),({h:$e,l:gt}=Qe_add(0|this.Bh,0|this.Bl,0|$e,0|gt)),({h:It,l:Wt}=Qe_add(0|this.Ch,0|this.Cl,0|It,0|Wt)),({h:ln,l:Tn}=Qe_add(0|this.Dh,0|this.Dl,0|ln,0|Tn)),({h:qt,l:Xn}=Qe_add(0|this.Eh,0|this.El,0|qt,0|Xn)),({h:Kn,l:nr}=Qe_add(0|this.Fh,0|this.Fl,0|Kn,0|nr)),({h:kn,l:jn}=Qe_add(0|this.Gh,0|this.Gl,0|kn,0|jn)),({h:Qn,l:ir}=Qe_add(0|this.Hh,0|this.Hl,0|Qn,0|ir)),this.set(oe,Ae,$e,gt,It,Wt,ln,Tn,qt,Xn,Kn,nr,kn,jn,Qn,ir)}roundClean(){fn.fill(0),cr.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=pr(()=>new dr);function lo(O){if(!Number.isSafeInteger(O)||O<0)throw new Error(`Wrong positive integer: ${O}`)}function Oo(O,...B){if(!(O instanceof Uint8Array))throw new Error("Expected Uint8Array");if(B.length>0&&!B.includes(O.length))throw new Error(`Expected Uint8Array of length ${B}, not of length=${O.length}`)}const ce={number:lo,bool:function Ho(O){if("boolean"!=typeof O)throw new Error(`Expected boolean, not ${O}`)},bytes:Oo,hash:function zl(O){if("function"!=typeof O||"function"!=typeof O.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");lo(O.outputLen),lo(O.blockLen)},exists:function Qa(O,B=!0){if(O.destroyed)throw new Error("Hash instance has been destroyed");if(B&&O.finished)throw new Error("Hash#digest() has already been called")},output:function va(O,B){Oo(O);const $=B.outputLen;if(O.length<$)throw new Error(`digestInto() expects output buffer of length at least ${$}`)}},Q="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0,Pe=O=>O instanceof Uint8Array,ti=O=>new DataView(O.buffer,O.byteOffset,O.byteLength),So=(O,B)=>O<<32-B|O>>>B;if(68!==new Uint8Array(new Uint32Array([287454020]).buffer)[0])throw new Error("Non little-endian hardware is not supported");function Lo(O){if("string"==typeof O&&(O=function Ba(O){if("string"!=typeof O)throw new Error("utf8ToBytes expected string, got "+typeof O);return new Uint8Array((new TextEncoder).encode(O))}(O)),!Pe(O))throw new Error("expected Uint8Array, got "+typeof O);return O}Array.from({length:256},(O,B)=>B.toString(16).padStart(2,"0"));class xl{clone(){return this._cloneInto()}}function Ua(O){const B=oe=>O().update(Lo(oe)).digest(),$=O();return B.outputLen=$.outputLen,B.blockLen=$.blockLen,B.create=()=>O(),B}function ac(O=32){if(Q&&"function"==typeof Q.getRandomValues)return Q.getRandomValues(new Uint8Array(O));throw new Error("crypto.getRandomValues must be defined")}class Gl extends xl{constructor(B,$,oe,Ae){super(),this.blockLen=B,this.outputLen=$,this.padOffset=oe,this.isLE=Ae,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(B),this.view=ti(this.buffer)}update(B){ce.exists(this);const{view:$,buffer:oe,blockLen:Ae}=this,$e=(B=Lo(B)).length;for(let gt=0;gt<$e;){const It=Math.min(Ae-this.pos,$e-gt);if(It!==Ae)oe.set(B.subarray(gt,gt+It),this.pos),this.pos+=It,gt+=It,this.pos===Ae&&(this.process($,0),this.pos=0);else{const Wt=ti(B);for(;Ae<=$e-gt;gt+=Ae)this.process(Wt,gt)}}return this.length+=B.length,this.roundClean(),this}digestInto(B){ce.exists(this),ce.output(B,this),this.finished=!0;const{buffer:$,view:oe,blockLen:Ae,isLE:$e}=this;let{pos:gt}=this;$[gt++]=128,this.buffer.subarray(gt).fill(0),this.padOffset>Ae-gt&&(this.process(oe,0),gt=0);for(let qt=gt;qt>Ae&$e),It=Number($&$e),ln=oe?0:4;O.setUint32(B+(oe?4:0),gt,oe),O.setUint32(B+ln,It,oe)})(oe,Ae-8,BigInt(8*this.length),$e),this.process(oe,0);const It=ti(B),Wt=this.outputLen;if(Wt%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const ln=Wt/4,Tn=this.get();if(ln>Tn.length)throw new Error("_sha2: outputLen bigger than state");for(let qt=0;qtO&B^~O&$,qa=(O,B,$)=>O&B^O&$^B&$,Dl=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 ba extends Gl{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:B,B:$,C:oe,D:Ae,E:$e,F:gt,G:It,H:Wt}=this;return[B,$,oe,Ae,$e,gt,It,Wt]}set(B,$,oe,Ae,$e,gt,It,Wt){this.A=0|B,this.B=0|$,this.C=0|oe,this.D=0|Ae,this.E=0|$e,this.F=0|gt,this.G=0|It,this.H=0|Wt}process(B,$){for(let qt=0;qt<16;qt++,$+=4)co[qt]=B.getUint32($,!1);for(let qt=16;qt<64;qt++){const Xn=co[qt-15],Kn=co[qt-2],nr=So(Xn,7)^So(Xn,18)^Xn>>>3,kn=So(Kn,17)^So(Kn,19)^Kn>>>10;co[qt]=kn+co[qt-7]+nr+co[qt-16]|0}let{A:oe,B:Ae,C:$e,D:gt,E:It,F:Wt,G:ln,H:Tn}=this;for(let qt=0;qt<64;qt++){const Kn=Tn+(So(It,6)^So(It,11)^So(It,25))+ya(It,Wt,ln)+Dl[qt]+co[qt]|0,kn=(So(oe,2)^So(oe,13)^So(oe,22))+qa(oe,Ae,$e)|0;Tn=ln,ln=Wt,Wt=It,It=gt+Kn|0,gt=$e,$e=Ae,Ae=oe,oe=Kn+kn|0}oe=oe+this.A|0,Ae=Ae+this.B|0,$e=$e+this.C|0,gt=gt+this.D|0,It=It+this.E|0,Wt=Wt+this.F|0,ln=ln+this.G|0,Tn=Tn+this.H|0,this.set(oe,Ae,$e,gt,It,Wt,ln,Tn)}roundClean(){co.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class wa extends ba{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=Ua(()=>new ba),Sl=(Ua(()=>new wa),BigInt(0),BigInt(1)),Xl=BigInt(2),Al=O=>O instanceof Uint8Array,Yl=Array.from({length:256},(O,B)=>B.toString(16).padStart(2,"0"));function Ea(O){if(!Al(O))throw new Error("Uint8Array expected");let B="";for(let $=0;$oe+Ae.length,0));let $=0;return O.forEach(oe=>{if(!Al(oe))throw new Error("Uint8Array expected");B.set(oe,$),$+=oe.length}),B}const ja=O=>(Xl<new Uint8Array(O),Va=O=>Uint8Array.from(O);function Di(O,B,$){if("number"!=typeof O||O<2)throw new Error("hashLen must be a number");if("number"!=typeof B||B<2)throw new Error("qByteLen must be a number");if("function"!=typeof $)throw new Error("hmacFn must be a function");let oe=ro(O),Ae=ro(O),$e=0;const gt=()=>{oe.fill(1),Ae.fill(0),$e=0},It=(...qt)=>$(Ae,oe,...qt),Wt=(qt=ro())=>{Ae=It(Va([0]),qt),oe=It(),0!==qt.length&&(Ae=It(Va([1]),qt),oe=It())},ln=()=>{if($e++>=1e3)throw new Error("drbg: tried 1000 values");let qt=0;const Xn=[];for(;qt{let Kn;for(gt(),Wt(qt);!(Kn=Xn(ln()));)Wt();return gt(),Kn}}const Us={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,B)=>B.Fp.isValid(O),hash:O=>"function"==typeof O&&Number.isSafeInteger(O.outputLen)};function oa(O,B,$={}){const oe=(Ae,$e,gt)=>{const It=Us[$e];if("function"!=typeof It)throw new Error(`Invalid validator "${$e}", expected function`);const Wt=O[Ae];if(!(gt&&void 0===Wt||It(Wt,O)))throw new Error(`Invalid param ${String(Ae)}=${Wt} (${typeof Wt}), expected ${$e}`)};for(const[Ae,$e]of Object.entries(B))oe(Ae,$e,!1);for(const[Ae,$e]of Object.entries($))oe(Ae,$e,!0);return O}const No=BigInt(0),U=BigInt(1),de=BigInt(2),q=BigInt(3),ve=BigInt(4),rt=BigInt(5),bn=BigInt(8);function Yr(O,B){const $=O%B;return $>=No?$:B+$}function Li(O,B,$){if($<=No||B 0");if($===U)return No;let oe=U;for(;B>No;)B&U&&(oe=oe*O%$),O=O*O%$,B>>=U;return oe}function Hr(O,B,$){let oe=O;for(;B-- >No;)oe*=oe,oe%=$;return oe}function xi(O,B){if(O===No||B<=No)throw new Error(`invert: expected positive integers, got n=${O} mod=${B}`);let $=Yr(O,B),oe=B,Ae=No,$e=U,gt=U,It=No;for(;$!==No;){const ln=oe/$,Tn=oe%$,qt=Ae-gt*ln,Xn=$e-It*ln;oe=$,$=Tn,Ae=gt,$e=It,gt=qt,It=Xn}if(oe!==U)throw new Error("invert: does not exist");return Yr(Ae,B)}BigInt(9),BigInt(16);const Wo=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function Ys(O,B){const $=void 0!==B?B:O.toString(2).length;return{nBitLength:$,nByteLength:Math.ceil($/8)}}const sa=BigInt(0),Ql=BigInt(1);function ld(O){return function fs(O){oa(O,Wo.reduce((oe,Ae)=>(oe[Ae]="function",oe),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"}))}(O.Fp),oa(O,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...Ys(O.n,O.nBitLength),...O,p:O.Fp.ORDER})}const{Ph:To,aT:Ja}=i,el={Err:class extends Error{constructor(B=""){super(B)}},_parseInt(O){const{Err:B}=el;if(O.length<2||2!==O[0])throw new B("Invalid signature integer tag");const $=O[1],oe=O.subarray(2,$+2);if(!$||oe.length!==$)throw new B("Invalid signature integer: wrong length");if(128&oe[0])throw new B("Invalid signature integer: negative");if(0===oe[0]&&!(128&oe[1]))throw new B("Invalid signature integer: unnecessary leading zero");return{d:To(oe),l:O.subarray($+2)}},toSig(O){const{Err:B}=el,$="string"==typeof O?Ja(O):O;if(!($ instanceof Uint8Array))throw new Error("ui8a expected");let oe=$.length;if(oe<2||48!=$[0])throw new B("Invalid signature tag");if($[1]!==oe-2)throw new B("Invalid signature: incorrect length");const{d:Ae,l:$e}=el._parseInt($.subarray(2)),{d:gt,l:It}=el._parseInt($e);if(It.length)throw new B("Invalid signature: left bytes after parsing");return{r:Ae,s:gt}},hexFromSig(O){const B=ln=>8&Number.parseInt(ln[0],16)?"00"+ln:ln,$=ln=>{const Tn=ln.toString(16);return 1&Tn.length?`0${Tn}`:Tn},oe=B($(O.s)),Ae=B($(O.r)),$e=oe.length/2,gt=Ae.length/2,It=$($e),Wt=$(gt);return`30${$(gt+$e+4)}02${Wt}${Ae}02${It}${oe}`}},Qs=BigInt(0),zo=BigInt(1),Rs=(BigInt(2),BigInt(3));function cd(O){const B=function oh(O){const B=ld(O);return oa(B,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...B})}(O),{Fp:$,n:oe}=B,Ae=$.BYTES+1,$e=2*$.BYTES+1;function It(vr){return Yr(vr,oe)}function Wt(vr){return xi(vr,oe)}const{ProjectivePoint:ln,normPrivateKeyToScalar:Tn,weierstrassEquation:qt,isWithinCurveOrder:Xn}=function wc(O){const B=function cc(O){const B=ld(O);oa(B,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:$,Fp:oe,a:Ae}=B;if($){if(!oe.eql(Ae,oe.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if("object"!=typeof $||"bigint"!=typeof $.beta||"function"!=typeof $.splitScalar)throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...B})}(O),{Fp:$}=B,oe=B.toBytes||((nr,kn,jn)=>{const Qn=kn.toAffine();return Fr(Uint8Array.from([4]),$.toBytes(Qn.x),$.toBytes(Qn.y))}),Ae=B.fromBytes||(nr=>{const kn=nr.subarray(1);return{x:$.fromBytes(kn.subarray(0,$.BYTES)),y:$.fromBytes(kn.subarray($.BYTES,2*$.BYTES))}});function $e(nr){const{a:kn,b:jn}=B,Qn=$.sqr(nr),ir=$.mul(Qn,nr);return $.add($.add(ir,$.mul(nr,kn)),jn)}if(!$.eql($.sqr(B.Gy),$e(B.Gx)))throw new Error("bad generator point: equation left != right");function gt(nr){return"bigint"==typeof nr&&Qs$.eql(Vn,$.ZERO);return ir(jn)&&ir(Qn)?qt.ZERO:new qt(jn,Qn,$.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(kn){const jn=$.invertBatch(kn.map(Qn=>Qn.pz));return kn.map((Qn,ir)=>Qn.toAffine(jn[ir])).map(qt.fromAffine)}static fromHex(kn){const jn=qt.fromAffine(Ae(Po("pointHex",kn)));return jn.assertValidity(),jn}static fromPrivateKey(kn){return qt.BASE.multiply(Wt(kn))}_setWindowSize(kn){this._WINDOW_SIZE=kn,ln.delete(this)}assertValidity(){if(this.is0()){if(B.allowInfinityPoint)return;throw new Error("bad point: ZERO")}const{x:kn,y:jn}=this.toAffine();if(!$.isValid(kn)||!$.isValid(jn))throw new Error("bad point: x or y not FE");const Qn=$.sqr(jn),ir=$e(kn);if(!$.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:kn}=this.toAffine();if($.isOdd)return!$.isOdd(kn);throw new Error("Field doesn't support isOdd")}equals(kn){Tn(kn);const{px:jn,py:Qn,pz:ir}=this,{px:Vn,py:ur,pz:Pr}=kn,kr=$.eql($.mul(jn,Pr),$.mul(Vn,ir)),zr=$.eql($.mul(Qn,Pr),$.mul(ur,ir));return kr&&zr}negate(){return new qt(this.px,$.neg(this.py),this.pz)}double(){const{a:kn,b:jn}=B,Qn=$.mul(jn,Rs),{px:ir,py:Vn,pz:ur}=this;let Pr=$.ZERO,kr=$.ZERO,zr=$.ZERO,Ur=$.mul(ir,ir),Yi=$.mul(Vn,Vn),Qi=$.mul(ur,ur),Mi=$.mul(ir,Vn);return Mi=$.add(Mi,Mi),zr=$.mul(ir,ur),zr=$.add(zr,zr),Pr=$.mul(kn,zr),kr=$.mul(Qn,Qi),kr=$.add(Pr,kr),Pr=$.sub(Yi,kr),kr=$.add(Yi,kr),kr=$.mul(Pr,kr),Pr=$.mul(Mi,Pr),zr=$.mul(Qn,zr),Qi=$.mul(kn,Qi),Mi=$.sub(Ur,Qi),Mi=$.mul(kn,Mi),Mi=$.add(Mi,zr),zr=$.add(Ur,Ur),Ur=$.add(zr,Ur),Ur=$.add(Ur,Qi),Ur=$.mul(Ur,Mi),kr=$.add(kr,Ur),Qi=$.mul(Vn,ur),Qi=$.add(Qi,Qi),Ur=$.mul(Qi,Mi),Pr=$.sub(Pr,Ur),zr=$.mul(Qi,Yi),zr=$.add(zr,zr),zr=$.add(zr,zr),new qt(Pr,kr,zr)}add(kn){Tn(kn);const{px:jn,py:Qn,pz:ir}=this,{px:Vn,py:ur,pz:Pr}=kn;let kr=$.ZERO,zr=$.ZERO,Ur=$.ZERO;const Yi=B.a,Qi=$.mul(B.b,Rs);let Mi=$.mul(jn,Vn),Zi=$.mul(Qn,ur),Bo=$.mul(ir,Pr),Ds=$.add(jn,Qn),vr=$.add(Vn,ur);Ds=$.mul(Ds,vr),vr=$.add(Mi,Zi),Ds=$.sub(Ds,vr),vr=$.add(jn,ir);let jr=$.add(Vn,Pr);return vr=$.mul(vr,jr),jr=$.add(Mi,Bo),vr=$.sub(vr,jr),jr=$.add(Qn,ir),kr=$.add(ur,Pr),jr=$.mul(jr,kr),kr=$.add(Zi,Bo),jr=$.sub(jr,kr),Ur=$.mul(Yi,vr),kr=$.mul(Qi,Bo),Ur=$.add(kr,Ur),kr=$.sub(Zi,Ur),Ur=$.add(Zi,Ur),zr=$.mul(kr,Ur),Zi=$.add(Mi,Mi),Zi=$.add(Zi,Mi),Bo=$.mul(Yi,Bo),vr=$.mul(Qi,vr),Zi=$.add(Zi,Bo),Bo=$.sub(Mi,Bo),Bo=$.mul(Yi,Bo),vr=$.add(vr,Bo),Mi=$.mul(Zi,vr),zr=$.add(zr,Mi),Mi=$.mul(jr,vr),kr=$.mul(Ds,kr),kr=$.sub(kr,Mi),Mi=$.mul(Ds,Zi),Ur=$.mul(jr,Ur),Ur=$.add(Ur,Mi),new qt(kr,zr,Ur)}subtract(kn){return this.add(kn.negate())}is0(){return this.equals(qt.ZERO)}wNAF(kn){return Kn.wNAFCached(this,ln,kn,jn=>{const Qn=$.invertBatch(jn.map(ir=>ir.pz));return jn.map((ir,Vn)=>ir.toAffine(Qn[Vn])).map(qt.fromAffine)})}multiplyUnsafe(kn){const jn=qt.ZERO;if(kn===Qs)return jn;if(It(kn),kn===zo)return this;const{endo:Qn}=B;if(!Qn)return Kn.unsafeLadder(this,kn);let{k1neg:ir,k1:Vn,k2neg:ur,k2:Pr}=Qn.splitScalar(kn),kr=jn,zr=jn,Ur=this;for(;Vn>Qs||Pr>Qs;)Vn&zo&&(kr=kr.add(Ur)),Pr&zo&&(zr=zr.add(Ur)),Ur=Ur.double(),Vn>>=zo,Pr>>=zo;return ir&&(kr=kr.negate()),ur&&(zr=zr.negate()),zr=new qt($.mul(zr.px,Qn.beta),zr.py,zr.pz),kr.add(zr)}multiply(kn){It(kn);let Qn,ir,jn=kn;const{endo:Vn}=B;if(Vn){const{k1neg:ur,k1:Pr,k2neg:kr,k2:zr}=Vn.splitScalar(jn);let{p:Ur,f:Yi}=this.wNAF(Pr),{p:Qi,f:Mi}=this.wNAF(zr);Ur=Kn.constTimeNegate(ur,Ur),Qi=Kn.constTimeNegate(kr,Qi),Qi=new qt($.mul(Qi.px,Vn.beta),Qi.py,Qi.pz),Qn=Ur.add(Qi),ir=Yi.add(Mi)}else{const{p:ur,f:Pr}=this.wNAF(jn);Qn=ur,ir=Pr}return qt.normalizeZ([Qn,ir])[0]}multiplyAndAddUnsafe(kn,jn,Qn){const ir=qt.BASE,Vn=(Pr,kr)=>kr!==Qs&&kr!==zo&&Pr.equals(ir)?Pr.multiply(kr):Pr.multiplyUnsafe(kr),ur=Vn(this,jn).add(Vn(kn,Qn));return ur.is0()?void 0:ur}toAffine(kn){const{px:jn,py:Qn,pz:ir}=this,Vn=this.is0();null==kn&&(kn=Vn?$.ONE:$.inv(ir));const ur=$.mul(jn,kn),Pr=$.mul(Qn,kn),kr=$.mul(ir,kn);if(Vn)return{x:$.ZERO,y:$.ZERO};if(!$.eql(kr,$.ONE))throw new Error("invZ was invalid");return{x:ur,y:Pr}}isTorsionFree(){const{h:kn,isTorsionFree:jn}=B;if(kn===zo)return!0;if(jn)return jn(qt,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:kn,clearCofactor:jn}=B;return kn===zo?this:jn?jn(qt,this):this.multiplyUnsafe(B.h)}toRawBytes(kn=!0){return this.assertValidity(),oe(qt,this,kn)}toHex(kn=!0){return Ea(this.toRawBytes(kn))}}qt.BASE=new qt(B.Gx,B.Gy,$.ONE),qt.ZERO=new qt($.ZERO,$.ONE,$.ZERO);const Xn=B.nBitLength,Kn=function Bc(O,B){const $=(Ae,$e)=>{const gt=$e.negate();return Ae?gt:$e},oe=Ae=>({windows:Math.ceil(B/Ae)+1,windowSize:2**(Ae-1)});return{constTimeNegate:$,unsafeLadder(Ae,$e){let gt=O.ZERO,It=Ae;for(;$e>sa;)$e&Ql&&(gt=gt.add(It)),It=It.double(),$e>>=Ql;return gt},precomputeWindow(Ae,$e){const{windows:gt,windowSize:It}=oe($e),Wt=[];let ln=Ae,Tn=ln;for(let qt=0;qt>=Kn,jn>Wt&&(jn-=Xn,gt+=Ql);const Qn=kn,ir=kn+Math.abs(jn)-1,ur=jn<0;0===jn?Tn=Tn.add($(nr%2!=0,$e[Qn])):ln=ln.add($(ur,$e[ir]))}return{p:ln,f:Tn}},wNAFCached(Ae,$e,gt,It){const Wt=Ae._WINDOW_SIZE||1;let ln=$e.get(Ae);return ln||(ln=this.precomputeWindow(Ae,Wt),1!==Wt&&$e.set(Ae,It(ln))),this.wNAF(Wt,ln,gt)}}}(qt,B.endo?Math.ceil(Xn/2):Xn);return{CURVE:B,ProjectivePoint:qt,normPrivateKeyToScalar:Wt,weierstrassEquation:$e,isWithinCurveOrder:gt}}({...B,toBytes(vr,jr,Fi){const $i=jr.toAffine(),go=$.toBytes($i.x),gs=Fr;return Fi?gs(Uint8Array.from([jr.hasEvenY()?2:3]),go):gs(Uint8Array.from([4]),go,$.toBytes($i.y))},fromBytes(vr){const jr=vr.length,Fi=vr[0],$i=vr.subarray(1);if(jr!==Ae||2!==Fi&&3!==Fi){if(jr===$e&&4===Fi)return{x:$.fromBytes($i.subarray(0,$.BYTES)),y:$.fromBytes($i.subarray($.BYTES,2*$.BYTES))};throw new Error(`Point of length ${jr} was invalid. Expected ${Ae} compressed bytes or ${$e} uncompressed bytes`)}{const go=Ar($i);if(!function gt(vr){return QsEa(no(vr,B.nByteLength));function nr(vr){return vr>oe>>zo}const jn=(vr,jr,Fi)=>Ar(vr.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=B.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(!Xn(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!Xn(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:go}=this,gs=zr(Po("msgHash",jr));if(null==go||![0,1,2,3].includes(go))throw new Error("recovery id invalid");const _s=2===go||3===go?Fi+B.n:Fi;if(_s>=$.ORDER)throw new Error("recovery id 2 or 3 invalid");const hc=ln.fromHex((1&go?"03":"02")+Kn(_s)),nl=Wt(_s),fc=It(-gs*nl),Hc=It($i*nl),pc=ln.BASE.multiplyAndAddUnsafe(hc,fc,Hc);if(!pc)throw new Error("point at infinify");return pc.assertValidity(),pc}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 Kn(this.r)+Kn(this.s)}}const ir={isValidPrivateKey(vr){try{return Tn(vr),!0}catch{return!1}},normPrivateKeyToScalar:Tn,randomPrivateKey:()=>{const jr=function ul(O,B,$=!1){const oe=(O=Po("privateHash",O)).length,Ae=Ys(B).nByteLength+8;if(Ae<24||oe1024)throw new Error(`hashToPrivateScalar: expected ${Ae}-1024 bytes of input, got ${oe}`);return Yr($?Ao(O):Ar(O),B-U)+U}(B.randomBytes($.BYTES+8),oe);return no(jr,B.nByteLength)},precompute:(vr=8,jr=ln.BASE)=>(jr._setWindowSize(vr),jr.multiply(BigInt(3)),jr)};function ur(vr){const jr=vr instanceof Uint8Array,Fi="string"==typeof vr,$i=(jr||Fi)&&vr.length;return jr?$i===Ae||$i===$e:Fi?$i===2*Ae||$i===2*$e:vr instanceof ln}const kr=B.bits2int||function(vr){const jr=Ar(vr),Fi=8*vr.length-B.nBitLength;return Fi>0?jr>>BigInt(Fi):jr},zr=B.bits2int_modN||function(vr){return It(kr(vr))},Ur=ja(B.nBitLength);function Yi(vr){if("bigint"!=typeof vr)throw new Error("bigint expected");if(!(Qs<=vr&&vrmc in Fi))throw new Error("sign() legacy options not supported");const{hash:$i,randomBytes:go}=B;let{lowS:gs,prehash:_s,extraEntropy:Ss}=Fi;null==gs&&(gs=!0),vr=Po("msgHash",vr),_s&&(vr=Po("prehashed msgHash",$i(vr)));const hc=zr(vr),nl=Tn(jr),fc=[Yi(nl),Yi(hc)];if(null!=Ss){const mc=!0===Ss?go($.BYTES):Ss;fc.push(Po("extraEntropy",mc,$.BYTES))}const Hc=Fr(...fc),pc=hc;return{seed:Hc,k2sig:function Sc(mc){const Wc=kr(mc);if(!Xn(Wc))return;const zc=Wt(Wc),ca=ln.BASE.multiply(Wc).toAffine(),Wa=It(ca.x);if(Wa===Qs)return;const pl=It(zc*It(pc+Wa*nl));if(pl===Qs)return;let uu=(ca.x===Wa?0:2)|Number(ca.y&zo),ql=pl;return gs&&nr(pl)&&(ql=function kn(vr){return nr(vr)?It(-vr):vr}(pl),uu^=1),new Qn(Wa,ql,uu)}}}(vr,jr,Fi);return Di(B.hash.outputLen,B.nByteLength,B.hmac)($i,go)},verify:function Ds(vr,jr,Fi,$i=Zi){const go=vr;if(jr=Po("msgHash",jr),Fi=Po("publicKey",Fi),"strict"in $i)throw new Error("options.strict was renamed to lowS");const{lowS:gs,prehash:_s}=$i;let Ss,hc;try{if("string"==typeof go||go instanceof Uint8Array)try{Ss=Qn.fromDER(go)}catch(ca){if(!(ca instanceof el.Err))throw ca;Ss=Qn.fromCompact(go)}else{if("object"!=typeof go||"bigint"!=typeof go.r||"bigint"!=typeof go.s)throw new Error("PARSE");{const{r:ca,s:Wa}=go;Ss=new Qn(ca,Wa)}}hc=ln.fromHex(Fi)}catch(ca){if("PARSE"===ca.message)throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(gs&&Ss.hasHighS())return!1;_s&&(jr=B.hash(jr));const{r:nl,s:fc}=Ss,Hc=zr(jr),pc=Wt(fc),Sc=It(Hc*pc),mc=It(nl*pc),Wc=ln.BASE.multiplyAndAddUnsafe(hc,Sc,mc)?.toAffine();return!!Wc&&It(Wc.x)===nl},ProjectivePoint:ln,Signature:Qn,utils:ir}}BigInt(4);class xc extends xl{constructor(B,$){super(),this.finished=!1,this.destroyed=!1,ce.hash(B);const oe=Lo($);if(this.iHash=B.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,$e=new Uint8Array(Ae);$e.set(oe.length>Ae?B.create().update(oe).digest():oe);for(let gt=0;gt<$e.length;gt++)$e[gt]^=54;this.iHash.update($e),this.oHash=B.create();for(let gt=0;gt<$e.length;gt++)$e[gt]^=106;this.oHash.update($e),$e.fill(0)}update(B){return ce.exists(this),this.iHash.update(B),this}digestInto(B){ce.exists(this),ce.bytes(B,this.outputLen),this.finished=!0,this.iHash.digestInto(B),this.oHash.update(B),this.oHash.digestInto(B),this.destroy()}digest(){const B=new Uint8Array(this.oHash.outputLen);return this.digestInto(B),B}_cloneInto(B){B||(B=Object.create(Object.getPrototypeOf(this),{}));const{oHash:$,iHash:oe,finished:Ae,destroyed:$e,blockLen:gt,outputLen:It}=this;return B.finished=Ae,B.destroyed=$e,B.blockLen=gt,B.outputLen=It,B.oHash=$._cloneInto(B.oHash),B.iHash=oe._cloneInto(B.iHash),B}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const au=(O,B,$)=>new xc(O,B).update($).digest();function Xi(O){return{hash:O,hmac:(B,...$)=>au(O,B,function Za(...O){const B=new Uint8Array(O.reduce((oe,Ae)=>oe+Ae.length,0));let $=0;return O.forEach(oe=>{if(!Pe(oe))throw new Error("Uint8Array expected");B.set(oe,$),$+=oe.length}),B}(...$)),randomBytes:ac}}au.create=(O,B)=>new xc(O,B);const Tr=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),xs=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),jc=BigInt(1),N=BigInt(2),K=(O,B)=>(O+B/N)/B;const X=function Ca(O,B,$=!1,oe={}){if(O<=No)throw new Error(`Expected Fp ORDER > 0, got ${O}`);const{nBitLength:Ae,nByteLength:$e}=Ys(O,B);if($e>2048)throw new Error("Field lengths over 2048 bytes are not supported");const gt=function di(O){if(O%ve===q){const B=(O+U)/ve;return function(oe,Ae){const $e=oe.pow(Ae,B);if(!oe.eql(oe.sqr($e),Ae))throw new Error("Cannot find square root");return $e}}if(O%bn===rt){const B=(O-rt)/bn;return function(oe,Ae){const $e=oe.mul(Ae,de),gt=oe.pow($e,B),It=oe.mul(Ae,gt),Wt=oe.mul(oe.mul(It,de),gt),ln=oe.mul(It,oe.sub(Wt,oe.ONE));if(!oe.eql(oe.sqr(ln),Ae))throw new Error("Cannot find square root");return ln}}return function Qr(O){const B=(O-U)/de;let $,oe,Ae;for($=O-U,oe=0;$%de===No;$/=de,oe++);for(Ae=de;AeYr(Wt,O),isValid:Wt=>{if("bigint"!=typeof Wt)throw new Error("Invalid field element: expected bigint, got "+typeof Wt);return No<=Wt&&WtWt===No,isOdd:Wt=>(Wt&U)===U,neg:Wt=>Yr(-Wt,O),eql:(Wt,ln)=>Wt===ln,sqr:Wt=>Yr(Wt*Wt,O),add:(Wt,ln)=>Yr(Wt+ln,O),sub:(Wt,ln)=>Yr(Wt-ln,O),mul:(Wt,ln)=>Yr(Wt*ln,O),pow:(Wt,ln)=>function jo(O,B,$){if($ 0");if($===No)return O.ONE;if($===U)return B;let oe=O.ONE,Ae=B;for(;$>No;)$&U&&(oe=O.mul(oe,Ae)),Ae=O.sqr(Ae),$>>=U;return oe}(It,Wt,ln),div:(Wt,ln)=>Yr(Wt*xi(ln,O),O),sqrN:Wt=>Wt*Wt,addN:(Wt,ln)=>Wt+ln,subN:(Wt,ln)=>Wt-ln,mulN:(Wt,ln)=>Wt*ln,inv:Wt=>xi(Wt,O),sqrt:oe.sqrt||(Wt=>gt(It,Wt)),invertBatch:Wt=>function Os(O,B){const $=new Array(B.length),oe=B.reduce(($e,gt,It)=>O.is0(gt)?$e:($[It]=$e,O.mul($e,gt)),O.ONE),Ae=O.inv(oe);return B.reduceRight(($e,gt,It)=>O.is0(gt)?$e:($[It]=O.mul($e,$[It]),O.mul($e,gt)),Ae),$}(It,Wt),cmov:(Wt,ln,Tn)=>Tn?ln:Wt,toBytes:Wt=>$?$o(Wt,$e):no(Wt,$e),fromBytes:Wt=>{if(Wt.length!==$e)throw new Error(`Fp.fromBytes: expected ${$e}, got ${Wt.length}`);return $?Ao(Wt):Ar(Wt)}});return Object.freeze(It)}(Tr,void 0,void 0,{sqrt:function P(O){const B=Tr,$=BigInt(3),oe=BigInt(6),Ae=BigInt(11),$e=BigInt(22),gt=BigInt(23),It=BigInt(44),Wt=BigInt(88),ln=O*O*O%B,Tn=ln*ln*O%B,qt=Hr(Tn,$,B)*Tn%B,Xn=Hr(qt,$,B)*Tn%B,Kn=Hr(Xn,N,B)*ln%B,nr=Hr(Kn,Ae,B)*Kn%B,kn=Hr(nr,$e,B)*nr%B,jn=Hr(kn,It,B)*kn%B,Qn=Hr(jn,Wt,B)*jn%B,ir=Hr(Qn,It,B)*kn%B,Vn=Hr(ir,$,B)*Tn%B,ur=Hr(Vn,gt,B)*nr%B,Pr=Hr(ur,oe,B)*ln%B,kr=Hr(Pr,N,B);if(!X.eql(X.sqr(kr),O))throw new Error("Cannot find square root");return kr}}),he=function Pu(O,B){const $=oe=>cd({...O,...Xi(oe)});return Object.freeze({...$(B),create:$})}({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:O=>{const B=xs,$=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),oe=-jc*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),Ae=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),$e=$,gt=BigInt("0x100000000000000000000000000000000"),It=K($e*O,B),Wt=K(-oe*O,B);let ln=Yr(O-It*$-Wt*Ae,B),Tn=Yr(-It*oe-Wt*$e,B);const qt=ln>gt,Xn=Tn>gt;if(qt&&(ln=B-ln),Xn&&(Tn=B-Tn),ln>gt||Tn>gt)throw new Error("splitScalar: Endomorphism failed, k="+O);return{k1neg:qt,k1:ln,k2neg:Xn,k2:Tn}}}},Jo);BigInt(0);const lu=he.ProjectivePoint,Fu=(0,or.Tq)(ma);function ud(O){return BigInt(`0x${function tt(O){if(!Mo(O))throw new Error("Uint8Array expected");let B="";for(let $=0;${if(!Number.isSafeInteger(O)||O<0||O>2**32-1)throw new Error(`Invalid number=${O}. Should be from 0 to 2 ** 32 - 1`);const B=new Uint8Array(4);return et(B).setUint32(0,O,!1),B};class ps{get fingerprint(){if(!this.pubHash)throw new Error("No publicKey set!");return et(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 B=this.privateKey;if(!B)throw new Error("No private key");return Fu.encode(this.serialize(this.versions.private,Un(new Uint8Array([0]),B)))}get publicExtendedKey(){if(!this.pubKey)throw new Error("No public key");return Fu.encode(this.serialize(this.versions.public,this.pubKey))}static fromMasterSeed(B,$=Bu){if(so(B),8*B.length<128||8*B.length>512)throw new Error(`HDKey: wrong seed length=${B.length}. Should be between 128 and 512 bits; 256 bits is advised)`);const oe=_o(Dr,gi,B);return new ps({versions:$,chainCode:oe.slice(32),privateKey:oe.slice(0,32)})}static fromExtendedKey(B,$=Bu){const oe=Fu.decode(B),Ae=et(oe),$e=Ae.getUint32(0,!1),gt={versions:$,depth:oe[4],parentFingerprint:Ae.getUint32(5,!1),index:Ae.getUint32(9,!1),chainCode:oe.slice(13,45)},It=oe.slice(45),Wt=0===It[0];if($e!==$[Wt?"private":"public"])throw new Error("Version mismatch");return new ps(Wt?{...gt,privateKey:It.slice(1)}:{...gt,publicKey:It})}static fromJSON(B){return ps.fromExtendedKey(B.xpriv)}constructor(B){if(this.depth=0,this.index=0,this.chainCode=null,this.parentFingerprint=0,!B||"object"!=typeof B)throw new Error("HDKey.constructor must not be called directly");if(this.versions=B.versions||Bu,this.depth=B.depth||0,this.chainCode=B.chainCode,this.index=B.index||0,this.parentFingerprint=B.parentFingerprint||0,!this.depth&&(this.parentFingerprint||this.index))throw new Error("HDKey: zero depth with non-zero index/parent fingerprint");if(B.publicKey&&B.privateKey)throw new Error("HDKey: publicKey and privateKey at same time.");if(B.privateKey){if(!he.utils.isValidPrivateKey(B.privateKey))throw new Error("Invalid private key");this.privKey="bigint"==typeof B.privateKey?B.privateKey:ud(B.privateKey),this.privKeyBytes=function xn(O){return function Vt(O){if("string"!=typeof O)throw new Error("hex string expected, got "+typeof O);const B=O.length,$=B/2;if(B%2)throw new Error("padded hex string expected, got unpadded hex of length "+B);const oe=new Uint8Array($);for(let Ae=0,$e=0;Ae<$;Ae++,$e+=2){const gt=ht(O.charCodeAt($e)),It=ht(O.charCodeAt($e+1));if(void 0===gt||void 0===It)throw new Error('hex string expected, got non-hex character "'+(O[$e]+O[$e+1])+'" at index '+$e);oe[Ae]=16*gt+It}return oe}(O.toString(16).padStart(64,"0"))}(this.privKey),this.pubKey=he.getPublicKey(B.privateKey,!0)}else{if(!B.publicKey)throw new Error("HDKey: no public or private key provided");this.pubKey=lu.fromHex(B.publicKey).toRawBytes(!0)}this.pubHash=rs(ma(this.pubKey))}derive(B){if(!/^[mM]'?/.test(B))throw new Error('Path must start with "m" or "M"');if(/^[mM]'?$/.test(B))return this;const $=B.replace(/^[mM]'?\//,"").split("/");let oe=this;for(const Ae of $){const $e=/^(\d+)('?)$/.exec(Ae);if(!$e||3!==$e.length)throw new Error(`Invalid child index: ${Ae}`);let gt=+$e[1];if(!Number.isSafeInteger(gt)||gt>=cu)throw new Error("Invalid index");"'"===$e[2]&&(gt+=cu),oe=oe.deriveChild(gt)}return oe}deriveChild(B){if(!this.pubKey||!this.chainCode)throw new Error("No publicKey or chainCode set");let $=Il(B);if(B>=cu){const It=this.privateKey;if(!It)throw new Error("Could not derive hardened child key");$=Un(new Uint8Array([0]),It,$)}else $=Un(this.pubKey,$);const oe=_o(Dr,this.chainCode,$),Ae=ud(oe.slice(0,32)),$e=oe.slice(32);if(!he.utils.isValidPrivateKey(Ae))throw new Error("Tweak bigger than curve order");const gt={versions:this.versions,chainCode:$e,depth:this.depth+1,parentFingerprint:this.fingerprint,index:B};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=lu.fromHex(this.pubKey).add(lu.fromPrivateKey(Ae));if(It.equals(lu.ZERO))throw new Error("The tweak was equal to negative P, which made the result key invalid");gt.publicKey=It.toRawBytes(!0)}return new ps(gt)}catch{return this.deriveChild(B+1)}}sign(B){if(!this.privateKey)throw new Error("No privateKey set!");return so(B,32),he.sign(B,this.privKey).toCompactRawBytes()}verify(B,$){if(so(B,32),so($,64),!this.publicKey)throw new Error("No publicKey set!");let oe;try{oe=he.Signature.fromCompact($)}catch{return!1}return he.verify(oe,B,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(B,$){if(!this.chainCode)throw new Error("No chainCode set");return so($,33),Un(Il(B),new Uint8Array([this.depth]),Il(this.parentFingerprint),Il(this.index),this.chainCode,$)}}var qs=r(3107);let $s=(()=>{class O{constructor(){this.encoder=new TextEncoder,this.decoder=new TextDecoder}getPasswordKey($){var oe=this;return(0,a.A)(function*(){return window.crypto.subtle.importKey("raw",oe.encoder.encode($),"PBKDF2",!1,["deriveKey"])})()}deriveKey($,oe,Ae){return(0,a.A)(function*(){return window.crypto.subtle.deriveKey({name:"PBKDF2",salt:oe,iterations:25e4,hash:"SHA-256"},$,{name:"AES-GCM",length:256},!1,Ae)})()}encryptData($,oe){var Ae=this;return(0,a.A)(function*(){try{const $e=window.crypto.getRandomValues(new Uint8Array(16)),gt=window.crypto.getRandomValues(new Uint8Array(12)),It=yield Ae.getPasswordKey(oe),Wt=yield Ae.deriveKey(It,$e,["encrypt"]),ln=new Uint8Array(yield window.crypto.subtle.encrypt({name:"AES-GCM",iv:gt},Wt,Ae.encoder.encode($))),Tn=new Uint8Array($e.length+gt.length+ln.length);return Tn.set($e,0),Tn.set(gt,$e.length),Tn.set(ln,$e.length+gt.length),or.K3.encode(Tn)}catch($e){throw console.error("Encryption failed:",$e),new Error("Failed to encrypt data.")}})()}decryptData($,oe){var Ae=this;return(0,a.A)(function*(){try{const $e=or.K3.decode($),gt=$e.slice(0,16),It=$e.slice(16,28),Wt=$e.slice(28),ln=yield Ae.getPasswordKey(oe),Tn=yield Ae.deriveKey(ln,gt,["decrypt"]),qt=yield window.crypto.subtle.decrypt({name:"AES-GCM",iv:It},Tn,Wt);return Ae.decoder.decode(qt)}catch($e){throw console.error("Decryption failed:",$e),new Error("Failed to decrypt data.")}})()}static{this.\u0275fac=function(oe){return new(oe||O)}}static{this.\u0275prov=qs.jDH({token:O,factory:O.\u0275fac,providedIn:"root"})}}return O})();var Ol=r(7544),$u=r(4482);let Ha=(()=>{class O{constructor($,oe,Ae){this.securityService=$,this.dialog=oe,this._nostrLoginService=Ae,this.localStorageSecretKeyName="secretKey",this.localStoragePublicKeyName="publicKey",this.localStorageNpubName="npub",this.localStorageNsecName="nsec",this.storageKey="userPassword"}savePassword($,oe){const Ae=Date.now()+60*oe*1e3;sessionStorage.setItem(this.storageKey,JSON.stringify({password:$,expirationTime:Ae}))}getPassword(){const $=sessionStorage.getItem(this.storageKey);if(!$)return null;const{password:oe,expirationTime:Ae}=JSON.parse($);return Date.now()>Ae?(this.clearPassword(),null):oe}clearPassword(){sessionStorage.removeItem(this.storageKey)}changePassword($,oe,Ae){var $e=this;return(0,a.A)(function*(){try{const gt=yield $e.getSecretKey($);if(!gt)throw new Error("Incorrect current password.");yield $e.setSecretKey(gt,oe);const It=yield $e.getNsec($);return It&&(yield $e.setNsec(It,oe)),$e.clearPassword(),Ae&&$e.savePassword(oe,60),!0}catch(gt){return console.error("Failed to change password: ",gt),!1}})()}getUsername($){return $.startsWith("npub")&&($=C.Qe.decode($).data.toString()),`@${localStorage.getItem(`${$}`)||C.Qe.npubEncode($)}`}npub(){let $=this.getPublicKey();return C.Qe.npubEncode($)}requestPassword(){var $=this;return(0,a.A)(function*(){return $.dialog.open(y.b,{width:"300px",disableClose:!0}).afterClosed().toPromise()})()}nsec($){var oe=this;return(0,a.A)(function*(){if(oe.usingSecretKey()){let Ae=yield oe.getSecretKey($);const $e=Uint8Array.from(w.hp.from(Ae,"hex"));return C.Qe.nsecEncode($e)}return""})()}pubkey($){return C.Qe.decode($).data.toString()}setPublicKey($){const oe=C.Qe.npubEncode($);window.localStorage.setItem(this.localStoragePublicKeyName,$),window.localStorage.setItem(this.localStorageNpubName,oe)}getPublicKey(){const $=localStorage.getItem("__nostrlogin_nip46");if($)try{return JSON.parse($).pubkey||""}catch(oe){console.error("Error parsing nostr login data:",oe)}return localStorage.getItem(this.localStoragePublicKeyName)||""}setNpub($){localStorage.setItem(this.localStorageNpubName,$)}getNpub(){return window.localStorage.getItem(this.localStorageNpubName)||""}setSecretKey($,oe=""){var Ae=this;return(0,a.A)(function*(){if(""===oe)localStorage.setItem(Ae.localStorageSecretKeyName,$),localStorage.setItem("usePassword","false");else{const $e=yield Ae.securityService.encryptData($,oe);localStorage.setItem(Ae.localStorageSecretKeyName,$e),localStorage.setItem("usePassword","true")}})()}getSecretKey($=""){var oe=this;return(0,a.A)(function*(){const Ae=localStorage.getItem(oe.localStorageSecretKeyName),$e="true"===localStorage.getItem("usePassword");return Ae?$e?yield oe.securityService.decryptData(Ae,$):Ae:null})()}getDecryptedSecretKey(){var $=this;return(0,a.A)(function*(){try{if("true"!==localStorage.getItem("usePassword"))return $.getSecretKey();const Ae=$.getPassword();if(Ae)return yield $.getSecretKey(Ae);const $e=yield $.requestPassword();if($e?.password){const gt=yield $.getSecretKey($e.password);return 0!==$e.duration&&$.savePassword($e.password,$e.duration),gt}return console.error("Password not provided"),null}catch(oe){return console.error("Error decrypting private key:",oe),null}})()}setNsec($,oe=""){var Ae=this;return(0,a.A)(function*(){if(""===oe)localStorage.setItem(Ae.localStorageNsecName,$),localStorage.setItem("usePassword","false");else{const $e=yield Ae.securityService.encryptData($,oe);localStorage.setItem(Ae.localStorageNsecName,$e),localStorage.setItem("usePassword","true")}})()}getNsec($=""){var oe=this;return(0,a.A)(function*(){const Ae=localStorage.getItem(oe.localStorageNsecName),$e="true"===localStorage.getItem("usePassword");return Ae?$e?yield oe.securityService.decryptData(Ae,$):Ae:null})()}setPublicKeyFromExtension($){this.setPublicKey($)}handleLoginWithKey($,oe=""){let Ae,$e,gt,It;try{if($.startsWith(this.localStorageNsecName)){const ln=C.Qe.decode($);if(ln.type!==this.localStorageNsecName)throw new Error("Invalid nsec key.");Ae=w.hp.from(ln.data).toString("hex")}else{if(!/^[0-9a-fA-F]{64}$/.test($))throw new Error("Invalid key format. Must be either nsec or hex.");Ae=$}const Wt=new Uint8Array(w.hp.from(Ae,"hex"));return $e=(0,C.lG)(Wt),It=C.Qe.npubEncode($e),gt=C.Qe.nsecEncode(Wt),this.setSecretKey(Ae,oe),this.setNsec(It,oe),this.setPublicKey($e),this.setNpub(It),!0}catch(Wt){return console.error("Error during key handling: ",Wt),!1}}handleLoginWithMnemonic($,oe="",Ae=""){try{const gt=function Vc(O,B,$=0){let Ae=ps.fromMasterSeed(Ii(O,B)).derive(`m/44'/1237'/${$}'/0/0`).privateKey;if(!Ae)throw new Error("could not derive private key");return Ae}($,oe,0),It=(0,c.My)(gt),Wt=(0,C.lG)(gt),ln=C.Qe.npubEncode(Wt),Tn=C.Qe.nsecEncode(gt);return this.setSecretKey(It,Ae),this.setNsec(Tn,Ae),this.setPublicKey(Wt),this.setNpub(ln),window.localStorage.setItem(this.localStorageNsecName,Tn),!0}catch($e){return console.error("Error during login with mnemonic:",$e),!1}}logout(){window.localStorage.removeItem(this.localStorageSecretKeyName),window.localStorage.removeItem(this.localStoragePublicKeyName),window.localStorage.removeItem(this.localStorageNpubName),window.localStorage.removeItem(this.localStorageNsecName),this._nostrLoginService.logout()}usingNostrBrowserExtension(){return!this.usingSecretKey()&&!!globalThis.nostr}usingSecretKey(){return!!localStorage.getItem(this.localStorageSecretKeyName)}generateAndStoreKeys($=""){try{const oe=(0,C.Bq)(),Ae=w.hp.from(oe).toString("hex"),$e=(0,C.lG)(oe),gt=C.Qe.npubEncode($e),It=C.Qe.nsecEncode(oe);return this.setSecretKey(Ae,$),this.setNsec(It,$),this.setPublicKey($e),this.setNpub(gt),{secretKey:Ae,pubkey:$e,npub:gt,nsec:It}}catch(oe){return console.error("Error during key generation:",oe),null}}handleLoginWithExtension(){var $=this;return(0,a.A)(function*(){const oe=globalThis;if(!oe.nostr)return!1;try{const Ae=yield oe.nostr.getPublicKey();if(!Ae)throw new Error("Public key not available from Nostr extension.");return $.setPublicKeyFromExtension(Ae),!0}catch(Ae){return console.error("Failed to connect to Nostr extension:",Ae),!1}})()}encryptMessage($,oe,Ae){return(0,a.A)(function*(){console.log(Ae);try{return yield C.sh.encrypt($,oe,Ae)}catch($e){throw console.error("Error encrypting message:",$e),$e}})()}encryptMessageWithExtension($,oe){return(0,a.A)(function*(){return yield globalThis.nostr.nip04.encrypt(oe,$)})()}decryptMessageWithExtension($,oe){return(0,a.A)(function*(){const Ae=globalThis;if(Ae.nostr&&"function"==typeof Ae.nostr.nip04?.decrypt)try{return yield Ae.nostr.nip04.decrypt($,oe)}catch($e){return console.error("Decryption failed:",$e),"*Failed to decrypt content: "+$e.message+"*"}return console.warn("Nostr extension or decrypt method is unavailable"),"Attempted Nostr Window decryption and failed."})()}decryptMessage($,oe,Ae){return(0,a.A)(function*(){try{if(!$||!oe||!Ae)throw new Error("Private key, public key, or encrypted message is missing or undefined.");const $e=yield C.sh.decrypt($,oe,Ae);if(!$e)throw new Error("Decryption returned an empty message.");return $e}catch($e){throw $e}})()}getUnsignedEvent($,oe,Ae){return{kind:$,pubkey:this.getPublicKey(),tags:oe,content:Ae,created_at:Math.floor(Date.now()/1e3)}}getSignedEvent($,oe){const Ae=(0,c.aT)(oe);return(0,C.pC)($,Ae)}getMuteList(){return(localStorage.getItem("muteList")||"").split(",")}setMuteListFromTags($){let oe=[];$.forEach(Ae=>{oe.push(Ae[1])}),this.setMuteList(oe)}setMuteList($){if(0===$.length)localStorage.setItem("muteList","");else{let oe=Array.from(new Set($));localStorage.setItem("muteList",oe.filter(Ae=>Ae).join(","))}}signEventWithExtension($){return(0,a.A)(function*(){const oe=globalThis;if(oe.nostr)return yield oe.nostr.signEvent($);throw new Error("Tried to sign event with extension but failed")})()}signDMWithExtension($,oe){return(0,a.A)(function*(){const Ae=globalThis;if(Ae.nostr&&Ae.nostr.nip04?.encrypt)return yield Ae.nostr.nip04.encrypt($,oe);throw new Error("Failed to Sign with extension")})()}isUsingExtension(){var $=this;return(0,a.A)(function*(){const oe=globalThis;if(oe.nostr&&oe.nostr.getPublicKey)try{return!localStorage.getItem($.localStorageSecretKeyName)}catch(Ae){return console.error("Failed to check Nostr extension:",Ae),!1}return!1})()}isUsingSecretKey(){return!!localStorage.getItem(this.localStorageSecretKeyName)}getNpubFromPubkey($){try{return C.Qe.npubEncode($)}catch(oe){return console.error("Error converting hex to npub:",oe),""}}getNsecFromSeckey($){try{const oe=Uint8Array.from(w.hp.from($,"hex"));return C.Qe.nsecEncode(oe)}catch(oe){return console.error("Error converting hex to nsec:",oe),""}}getHexFromNpub($){try{const oe=C.Qe.decode($);if("npub"!==oe.type)throw new Error("Invalid npub format.");return oe.data.toString()}catch(oe){return console.error("Error converting npub to hex:",oe),""}}processKey($){try{if($.startsWith("npub")){const oe=this.getHexFromNpub($);if(!oe)throw new Error("Failed to convert npub to hex.");return oe}if(/^[0-9a-fA-F]{64}$/.test($))return $;throw new Error("Invalid key format. Must be either hex or npub.")}catch(oe){return console.error("Error processing key:",oe),""}}static{this.\u0275fac=function(oe){return new(oe||O)(qs.KVO($s),qs.KVO(Ol.bZ),qs.KVO($u.v))}}static{this.\u0275prov=qs.jDH({token:O,factory:O.\u0275fac,providedIn:"root"})}}return O})()},6433:(o,s,r)=>{"use strict";r.d(s,{d:()=>C});var i=r(3014),a=r(3797),c=r(3107),y=r(5506),w=r(3149);let C=(()=>{class A{constructor(T,k){this.subscriptionService=T,this.storageService=k,this.isProfileLoaded=!1}loadUserProfile(T){var k=this;return(0,i.A)(function*(){k.isProfileLoaded||(yield k.subscribeToUserProfile(T),yield k.subscribeToUserChats(T),yield k.subscribeToUserPosts(T),yield k.subscribeToMyLikes(T),k.isProfileLoaded=!0)})()}subscribeToUserProfile(T){var k=this;return(0,i.A)(function*(){const R=yield k.storageService.getLastUpdateDate("users"),G={kinds:[0],authors:[T],limit:1};R&&(G.since=parseInt(R,10)),k.subscriptionService.addSubscriptions([G],Z=>{const te=k.parseMetadataEvent(Z);k.storageService.saveProfile(T,te)})})()}subscribeToUserChats(T){var k=this;return(0,i.A)(function*(){const R=yield k.storageService.getLastUpdateDate("chats"),G=[{kinds:[a.rV],authors:[T],limit:300},{kinds:[a.rV],"#p":[T],limit:300}];if(R){const Z=parseInt(R,10);G.forEach(te=>te.since=Z)}else k.storageService.removeAllChats();k.subscriptionService.addSubscriptions(G,Z=>{const te=k.parseChatEvent(Z);k.storageService.saveChatEvent(te)})})()}subscribeToUserPosts(T){var k=this;return(0,i.A)(function*(){const R=yield k.storageService.getLastUpdateDate("posts"),G={kinds:[a.av],authors:[T]};R&&(G.since=parseInt(R,10)),k.subscriptionService.addSubscriptions([G],Z=>{k.isReply(Z)||k.storageService.savePost(Z)})})()}isReply(T){return T.tags.filter(R=>"e"===R[0]||"p"===R[0]).length>0}subscribeToMyLikes(T){var k=this;return(0,i.A)(function*(){const R=yield k.storageService.getLastUpdateDate("myLikes"),G={kinds:[a.qT],authors:[T]};R&&(G.since=parseInt(R,10)),k.subscriptionService.addSubscriptions([G],Z=>{k.storageService.saveLike(Z)})})()}parseMetadataEvent(T){try{return JSON.parse(T.content)}catch(k){return console.error("Error parsing metadata event:",k),null}}parseChatEvent(T){try{const k=T.content.split("?iv=");return{id:T.id,kind:T.kind,pubkey:T.pubkey,created_at:T.created_at,tags:T.tags,content:k[0],iv:k[1],IsRead:!1}}catch(k){return console.error("Error parsing chat event:",k),null}}static{this.\u0275fac=function(k){return new(k||A)(c.KVO(y.n),c.KVO(w.n))}}static{this.\u0275prov=c.jDH({token:A,factory:A.\u0275fac,providedIn:"root"})}}return A})()},3149:(o,s,r)=>{"use strict";r.d(s,{n:()=>C});var i=r(3014),a=r(230),c=r.n(a),y=r(1217),w=r(3107);let C=(()=>{class A{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(T){return c().createInstance({driver:c().INDEXEDDB,name:"angor-hub",version:1,storeName:T})}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(T){var k=this;return(0,i.A)(function*(){try{const R=`${T.projectIdentifier}-${T.investorPublicKey}`;yield k.investorsStore.setItem(R,T);const Z=[...k.investorsSubject.value.filter(te=>te.projectIdentifier!==T.projectIdentifier||te.investorPublicKey!==T.investorPublicKey),T];k.investorsSubject.next(Z),console.log("Investor saved successfully:",T)}catch(R){console.error("Error saving investor:",R)}})()}getInvestor(T,k){var R=this;return(0,i.A)(function*(){try{const G=`${T}-${k}`;return(yield R.investorsStore.getItem(G))||null}catch(G){return console.error("Error retrieving investor:",G),null}})()}getAllInvestors(){var T=this;return(0,i.A)(function*(){try{const k=[];return yield T.investorsStore.iterate(R=>{k.push(R)}),console.log("Retrieved all investors:",k),k}catch(k){return console.error("Error retrieving all investors:",k),[]}})()}saveProjectDetails(T){var k=this;return(0,i.A)(function*(){try{const R=T.projectIdentifier;yield k.projectDetailsStore.setItem(R,T);const Z=[...k.projectDetailsSubject.value.filter(te=>te.projectIdentifier!==T.projectIdentifier),T];k.projectDetailsSubject.next(Z),console.log("Project details saved successfully:",T)}catch(R){console.error("Error saving project details:",R)}})()}getProjectDetails(T){var k=this;return(0,i.A)(function*(){try{return(yield k.projectDetailsStore.getItem(T))||null}catch(R){return console.error("Error retrieving project details:",R),null}})()}getAllProjectDetails(){var T=this;return(0,i.A)(function*(){try{const k=[];return yield T.projectDetailsStore.iterate(R=>{k.push(R)}),console.log("Retrieved all project details:",k),k}catch(k){return console.error("Error retrieving all project details:",k),[]}})()}saveContacts(T,k){var R=this;return(0,i.A)(function*(){try{const G=[];for(const Z of k){const te=`${T}:${Z.id}`;yield R.contactsStore.setItem(te,Z),G.push(Z)}R.contactsSubject.next({pubKey:T,contacts:G}),yield R.calculateAndStoreAllContactStats(),yield R.setUpdateHistory("contacts")}catch(G){console.error("Error saving contacts:",G)}})()}calculateAndStoreAllContactStats(){var T=this;return(0,i.A)(function*(){try{const k={};yield T.contactsStore.iterate((R,G)=>{const[Z]=G.split(":");k[Z]||(k[Z]={totalContacts:0,followersCount:0,followingCount:0}),k[Z].totalContacts++,R.isFollower?k[Z].followersCount++:k[Z].followingCount++});for(const R in k)T.contactStatsMap[R]||(T.contactStatsMap[R]=new y.t({pubKey:R,totalContacts:0,followersCount:0,followingCount:0})),T.contactStatsMap[R].next({pubKey:R,totalContacts:k[R].totalContacts,followersCount:k[R].followersCount,followingCount:k[R].followingCount})}catch(k){console.error("Error calculating and storing contact stats:",k)}})()}getContactStats$(T){return this.contactStatsMap[T]||(this.contactStatsMap[T]=new y.t({pubKey:T,totalContacts:0,followersCount:0,followingCount:0}),this.calculateAndStoreAllContactStats()),this.contactStatsMap[T].asObservable()}getAllContactsPaginated(T,k,R){var G=this;return(0,i.A)(function*(){try{const Z=[];yield G.contactsStore.iterate((pe,Te)=>{const[Ce]=Te.split(":");Ce===T&&Z.push(pe)});const te=Z.length,we=(k-1)*R;return{contacts:Z.slice(we,we+R),totalCount:te}}catch(Z){return console.error("Error retrieving paginated contacts for pubKey:",Z),{contacts:[],totalCount:0}}})()}getAllContacts(T=""){var k=this;return(0,i.A)(function*(){try{const R=[];return yield k.contactsStore.iterate((G,Z)=>{const[te,we]=Z.split(":");(""===T||te===T)&&R.push({pubKey:te,contact:G})}),R}catch(R){return console.error("Error retrieving contacts:",R),[]}})()}getContactStats(T){var k=this;return(0,i.A)(function*(){try{let R=0,G=0,Z=0;return yield k.contactsStore.iterate((te,we)=>{const[_e,pe]=we.split(":");_e===T&&(R++,te.isFollower?G++:Z++)}),{totalContacts:R,followersCount:G,followingCount:Z}}catch(R){return console.error("Error retrieving contact stats for pubKey:",R),{totalContacts:0,followersCount:0,followingCount:0}}})()}removeAllContacts(T){var k=this;return(0,i.A)(function*(){try{const R=[];yield k.contactsStore.iterate((G,Z)=>{const[te]=Z.split(":");te===T&&R.push(Z)});for(const G of R)yield k.contactsStore.removeItem(G);yield k.contactsStore.clear(),k.contactStatsSubject.next({totalContacts:0,followersCount:0,followingCount:0}),k.contactsSubject.next({pubKey:T,contacts:[]}),yield k.setUpdateHistory("contacts")}catch(R){console.error("Error removing all contacts for pubKey:",R)}})()}saveProfile(T,k){var R=this;return(0,i.A)(function*(){try{if(!T||!k)return void console.error("Invalid pubKey or metadata:",T,k);k.pubKey=T,yield R.profileStore.setItem(T,k),R.profileSubject.next({pubKey:T,metadata:k}),yield R.setUpdateHistory("profiles")}catch(G){console.error("Error saving profile",G)}})()}getProfile(T){var k=this;return(0,i.A)(function*(){try{return(yield k.profileStore.getItem(T))||null}catch(R){return console.error("Error retrieving profile metadata:",R),null}})()}getAllProfiles(){var T=this;return(0,i.A)(function*(){try{const k=[];return yield T.profileStore.iterate(R=>{k.push(R)}),k}catch(k){return console.error("Error retrieving all Profile:",k),[]}})()}searchProfile(T){var k=this;return(0,i.A)(function*(){try{const R=[],G=T.toLowerCase();return yield k.profileStore.iterate((Z,te)=>{JSON.stringify(Z).toLowerCase().includes(G)&&R.push({pubKey:te,profile:Z})}),R}catch(R){return console.error("Error searching profiles by metadata:",R),[]}})()}getLastUpdateDate(T){var k=this;return(0,i.A)(function*(){try{return(yield k.updateHistoryStore.getItem(T))||null}catch(R){return console.error("Error retrieving last update date:",R),null}})()}saveProject(T){var k=this;return(0,i.A)(function*(){try{yield k.projectsStore.setItem(T.projectIdentifier,T);const R=yield k.getAllProjects();k.projectsSubject.next(R),yield k.setUpdateHistory("projects")}catch(R){console.error("Error saving project:",R)}})()}getProjectsByNostrPubKeys(T){var k=this;return(0,i.A)(function*(){if(!T||0===T.length)return[];const R=[],G=yield k.projectDetailsStore.keys();for(const Z of G){const te=yield k.projectDetailsStore.getItem(Z);te&&T.includes(te.nostrPubKey)&&R.push(te)}return R})()}getAllProjects(){var T=this;return(0,i.A)(function*(){try{const k=[];return yield T.projectsStore.iterate(R=>{k.push(R)}),k}catch(k){return console.error("Error retrieving all projects:",k),[]}})()}getProjectStats(T){var k=this;return(0,i.A)(function*(){try{return(yield k.projectStatsStore.getItem(T))||null}catch(R){return console.error("Error retrieving project stats:",R),null}})()}saveProjectStats(T,k){var R=this;return(0,i.A)(function*(){try{yield R.projectStatsStore.setItem(T,k);const G=yield R.getAllProjectStats();R.projectStatsSubject.next(G),yield R.setUpdateHistory("projectStats")}catch(G){console.error("Error saving project stats:",G)}})()}getAllProjectStats(){var T=this;return(0,i.A)(function*(){try{const k={};return yield T.projectStatsStore.iterate((R,G)=>{k[G]=R}),k}catch(k){return console.error("Error retrieving all project stats:",k),{}}})()}savePost(T){var k=this;return(0,i.A)(function*(){try{yield k.postsStore.setItem(T.id,T),yield k.setUpdateHistory("posts"),k.postsSubject.next(T)}catch(R){console.error("Error saving event type 1 and sending it to clients:",R)}})()}getPostsByPubKey(T){var k=this;return(0,i.A)(function*(){try{const R=[];return yield k.postsStore.iterate(G=>{G.pubkey===T&&1===G.kind&&R.push(G)}),R.sort((G,Z)=>Z.createdAt-G.createdAt)}catch(R){return console.error("Error retrieving events for pubKey:",R),[]}})()}getPostById(T){var k=this;return(0,i.A)(function*(){try{let R=null;return yield k.postsStore.iterate(G=>{if(G.id===T&&1===G.kind)return R=G,R}),R}catch(R){return console.error("Error retrieving post by ID:",R),null}})()}getAllPostsWithPagination(T,k=10){var R=this;return(0,i.A)(function*(){try{const G=[],Z=(T-1)*k;return yield R.postsStore.iterate(te=>{1===te.kind&&G.push(te)}),G.sort((te,we)=>we.created_at-te.created_at).slice(Z,Z+k)}catch(G){return console.error("Error retrieving all posts with pagination:",G),[]}})()}getPostsByPubKeysWithPagination(T,k,R=10){var G=this;return(0,i.A)(function*(){try{const Z=[],te=(k-1)*R;return yield G.postsStore.iterate(we=>{T.includes(we.pubkey)&&1===we.kind&&Z.push(we)}),Z.sort((we,_e)=>_e.created_at-we.created_at).slice(te,te+R)}catch(Z){return console.error("Error retrieving events for pubKeys with pagination:",Z),[]}})()}saveLike(T){var k=this;return(0,i.A)(function*(){try{yield k.myLikesStore.setItem(T.id,T);const R=yield k.getAllMyLikes();k.myLikesSubject.next(R),yield k.setUpdateHistory("myLikes")}catch(R){console.error("Error saving like:",R)}})()}getAllMyLikes(){var T=this;return(0,i.A)(function*(){try{const k=[];return yield T.myLikesStore.iterate(R=>{try{const G=R.tags.find(Z=>"e"===Z[0]);G&&k.push(G[1])}catch(G){console.warn("Error parsing like:",R,G)}}),k}catch(k){return console.error("Error retrieving all likes:",k),[]}})()}saveNotification(T){var k=this;return(0,i.A)(function*(){try{yield k.notificationsStore.setItem(T.id,T);const R=yield k.getAllNotifications();k.notificationsSubject.next(R),yield k.setUpdateHistory("notifications")}catch(R){console.error("Error saving notification:",R)}})()}getAllNotifications(){var T=this;return(0,i.A)(function*(){try{const k=[];return yield T.notificationsStore.iterate(R=>{k.push(R)}),k}catch(k){return console.error("Error retrieving all notifications:",k),[]}})()}saveChatEvent(T){var k=this;return(0,i.A)(function*(){try{yield k.chatsStore.setItem(T.id,T),yield k.setUpdateHistory("chats");const R=yield k.getAllChatEvents();k.chatEventsSubject.next(R),k.updateUnreadChatCount(R)}catch(R){console.error("Error saving chat event:",R)}})()}getAllChatEvents(){var T=this;return(0,i.A)(function*(){try{const k=[];return yield T.chatsStore.iterate(R=>{k.push(R)}),k}catch(k){return console.error("Error retrieving all chat events:",k),[]}})()}getChatEventsByPubKey(T){var k=this;return(0,i.A)(function*(){try{const R=[];return yield k.chatsStore.iterate(G=>{const Z=k.getReceiverPubKeyFromTags(G.tags);(G.pubkey===T||Z===T)&&R.push(G)}),R}catch(R){return console.error("Error retrieving chat events by pubkey:",R),[]}})()}updateChatEventReadStatus(T,k){var R=this;return(0,i.A)(function*(){try{const G=yield R.chatsStore.getItem(T);if(G){G.IsRead=k,yield R.chatsStore.setItem(T,G);const Z=yield R.getAllChatEvents();R.chatEventsSubject.next(Z),R.updateUnreadChatCount(Z)}}catch(G){console.error("Error updating chat event read status:",G)}})()}markAllChatEventsAsRead(T){var k=this;return(0,i.A)(function*(){try{yield k.chatsStore.iterate(function(){var G=(0,i.A)(function*(Z,te){const we=k.getReceiverPubKeyFromTags(Z.tags);(Z.pubkey===T||we===T)&&!Z.IsRead&&(Z.IsRead=!0,yield k.chatsStore.setItem(te,Z))});return function(Z,te){return G.apply(this,arguments)}}());const R=yield k.getAllChatEvents();k.chatEventsSubject.next(R),k.updateUnreadChatCount(R)}catch(R){console.error("Error marking all chat events as read:",R)}})()}getReceiverPubKeyFromTags(T){for(const k of T)if("p"===k[0]&&k[1])return k[1];return null}updateUnreadChatCount(T){const k=T.filter(R=>!R.IsRead).length;this.unreadChatCountSubject.next(k)}removeAllChats(){var T=this;return(0,i.A)(function*(){try{yield T.chatsStore.clear(),T.chatEventsSubject.next([]),T.unreadChatCountSubject.next(0),console.log("All chat events have been removed successfully.")}catch(k){console.error("Error removing all chat events:",k)}})()}setUpdateHistory(T){var k=this;return(0,i.A)(function*(){try{const R=Math.floor(Date.now()/1e3);yield k.updateHistoryStore.setItem(T,R)}catch(R){console.error("Error updating history:",R)}})()}loadAllProjectsFromDB(){var T=this;return(0,i.A)(function*(){try{const k=yield T.getAllProjects();T.projectsSubject.next(k)}catch(k){console.error("Error loading projects from DB:",k)}})()}loadAllProjectStatsFromDB(){var T=this;return(0,i.A)(function*(){try{const k=yield T.getAllProjectStats();T.projectStatsSubject.next(k)}catch(k){console.error("Error loading project stats from DB:",k)}})()}loadAllContactsFromDB(T=""){var k=this;return(0,i.A)(function*(){try{const R=yield k.getAllContacts(T);if(R.length>0){const G={};for(const Z of R)G[Z.pubKey]||(G[Z.pubKey]=[]),G[Z.pubKey].push(Z.contact);for(const Z in G)k.contactsSubject.next({pubKey:Z,contacts:G[Z]})}}catch(R){console.error("Error loading contacts from DB:",R)}})()}loadAllChatEventsFromDB(){var T=this;return(0,i.A)(function*(){try{const k=yield T.getAllChatEvents();T.chatEventsSubject.next(k)}catch(k){console.error("Error loading chat events from DB:",k)}})()}loadPostsFromDB(T,k=10,R=0){var G=this;return(0,i.A)(function*(){try{const Z=[];return yield G.postsStore.iterate(te=>{T.includes(te.pubkey)&&Z.push(te)}),Z.sort((te,we)=>we.created_at-te.created_at).slice(R,R+k)}catch(Z){return console.error("Error retrieving events from DB:",Z),[]}})()}loadPosts(T,k){var R=this;return(0,i.A)(function*(){const Z=10*(k-1),te=yield R.loadPostsFromDB(T,10,Z);te.length>0&&te.forEach(we=>{R.postsSubject.next(we)})})()}loadAllMyLikesFromDB(){var T=this;return(0,i.A)(function*(){try{const k=yield T.getAllMyLikes();T.myLikesSubject.next(k)}catch(k){console.error("Error loading likes from DB:",k)}})()}loadAllNotificationsFromDB(){var T=this;return(0,i.A)(function*(){try{const k=yield T.getAllNotifications();T.notificationsSubject.next(k)}catch(k){console.error("Error loading notifications from DB:",k)}})()}loadContactStatsFromDB(){var T=this;return(0,i.A)(function*(){try{let k=0,R=0,G=0;yield T.contactsStore.iterate((Z,te)=>{const[we]=te.split(":");k++,Z.isFollower?R++:G++}),T.contactStatsSubject.next({totalContacts:k,followersCount:R,followingCount:G})}catch(k){console.error("Error loading contact stats from DB:",k)}})()}loadAllInvestorsFromDB(){var T=this;return(0,i.A)(function*(){try{const k=[];yield T.investorsStore.iterate(R=>{k.push(R)}),console.log("Loaded Investors:",k),T.investorsSubject.next(k)}catch(k){console.error("Error loading investors from DB:",k)}})()}loadAllProjectDetailsFromDB(){var T=this;return(0,i.A)(function*(){try{const k=[];yield T.projectDetailsStore.iterate(R=>{k.push(R)}),console.log("Loaded Project Details:",k),T.projectDetailsSubject.next(k)}catch(k){console.error("Error loading project details from DB:",k)}})()}static{this.\u0275fac=function(k){return new(k||A)}}static{this.\u0275prov=w.jDH({token:A,factory:A.\u0275fac,providedIn:"root"})}}return A})()},5506:(o,s,r)=>{"use strict";r.d(s,{n:()=>_e});var a,i=r(1217),c=new Uint8Array(16);function y(){if(!a&&!(a=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return a(c)}const w=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var S=[],T=0;T<256;++T)S.push((T+256).toString(16).substr(1));const R=function k(pe){var Te=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,Ce=(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)}(Ce))throw TypeError("Stringified UUID is invalid");return Ce},Z=function G(pe,Te,Ce){var Ne=(pe=pe||{}).random||(pe.rng||y)();if(Ne[6]=15&Ne[6]|64,Ne[8]=63&Ne[8]|128,Te){Ce=Ce||0;for(var Se=0;Se<16;++Se)Te[Ce+Se]=Ne[Se];return Te}return R(Ne)};var te=r(3107),we=r(3125);let _e=(()=>{class pe{constructor(Ce){this.relayService=Ce,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(Ce,Ne,Se){const xe=this.findExistingSubscription(Ce);if(xe)return xe.callbacks.push(Ne),xe.id;const ae=Z();this.lastActionTimestamp.set(ae,Date.now());const le={filter:Ce,callbacks:[Ne],id:ae};return this.subscriptions.set(le.id,le),this.subscriptionsSubject.next(this.subscriptions),this.addToQueue(le),le.id}findExistingSubscription(Ce){return Array.from(this.subscriptions.values()).find(Ne=>JSON.stringify(Ne.filter)===JSON.stringify(Ce))}removeSubscriptionById(Ce){const Ne=Date.now(),Se=this.lastActionTimestamp.get(Ce);Se&&Ne-Se{this.subscriptionQueue.length>0&&this.subscriptionQueue.splice(0,this.maxSubscriptionsPerBatch).forEach(Se=>this.subscribeToRelays(Se.filter,Se))},this.queueInterval))}subscribeToRelays(Ce,Ne){0!==this.activeRelays.length?this.relayService.ensureConnectedRelays().then(()=>{const Se=this.relayService.getConnectedRelays();this.relayService.getPool().subscribeMany(Se,Ce,{onevent:xe=>{Ne.callbacks.forEach(ae=>ae(xe))},onclose:()=>console.log("Subscription closed")})}).catch(Se=>{console.error("Error subscribing to relays:",Se)}):this.pendingSubscriptions.set(Ne.id,Ne)}subscribeToAllRelays(){this.pendingSubscriptions.forEach(Ce=>{this.subscribeToRelays(Ce.filter,Ce)}),this.pendingSubscriptions.clear()}connectToAllRelays(){this.relayService.ensureConnectedRelays().then(()=>{this.activeRelays=this.relayService.getConnectedRelays(),this.subscribeToAllRelays()}).catch(Ce=>{console.error("Error connecting to relays:",Ce)})}clearAllSubscriptions(){this.subscriptions.clear(),this.pendingSubscriptions.clear(),this.subscriptionsSubject.next(new Map)}getSubscriptions(){return Array.from(this.subscriptions.values())}static{this.\u0275fac=function(Ne){return new(Ne||pe)(te.KVO(we.b))}}static{this.\u0275prov=te.jDH({token:pe,factory:pe.\u0275fac,providedIn:"root"})}}return pe})()},2226:(o,s,r)=>{"use strict";r.d(s,{b:()=>Z});var i=r(4460),a=r(936),c=r(9471),y=r(2902),w=r(7544),C=r(6071),A=r(3904),S=r(6389),T=r(2675),k=r(5785),R=r(3107);function G(te,we){1&te&&(R.j41(0,"mat-error"),R.EFF(1," Password is required "),R.k0s())}let Z=(()=>{class te{constructor(_e,pe,Te){this.fb=_e,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||te)(R.rXU(a.ok),R.rXU(w.CP),R.rXU(w.Vh))}}static{this.\u0275cmp=R.VBU({type:te,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&&(R.j41(0,"h1",0),R.EFF(1,"Enter Password"),R.k0s(),R.j41(2,"div",1)(3,"form",2)(4,"mat-form-field",3)(5,"mat-label"),R.EFF(6,"Password"),R.k0s(),R.j41(7,"mat-icon",4),R.EFF(8,"lock"),R.k0s(),R.nrm(9,"input",5),R.DNE(10,G,2,0,"mat-error",6),R.k0s(),R.j41(11,"mat-form-field",7)(12,"mat-label"),R.EFF(13,"Duration"),R.k0s(),R.j41(14,"mat-select",8)(15,"mat-option",9),R.EFF(16,"0 Minute"),R.k0s(),R.j41(17,"mat-option",10),R.EFF(18,"1 Minute"),R.k0s(),R.j41(19,"mat-option",11),R.EFF(20,"5 Minutes"),R.k0s(),R.j41(21,"mat-option",12),R.EFF(22,"10 Minutes"),R.k0s(),R.j41(23,"mat-option",13),R.EFF(24,"1 Hour"),R.k0s()()()()(),R.j41(25,"div",14)(26,"button",15),R.bIt("click",function(){return Te.onCancel()}),R.EFF(27,"Cancel"),R.k0s(),R.j41(28,"button",16),R.bIt("click",function(){return Te.onSubmit()}),R.EFF(29," Submit "),R.k0s()()),2&pe&&(R.R7$(3),R.Y8G("formGroup",Te.passwordForm),R.R7$(),R.Y8G("subscriptSizing","dynamic"),R.R7$(5),R.Y8G("formControlName","password"),R.R7$(),R.Y8G("ngIf",Te.passwordForm.get("password").hasError("required")),R.R7$(18),R.Y8G("disabled",Te.passwordForm.invalid))},dependencies:[k.vg,c.Hl,c.$z,A.m_,A.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,T.Ve,C.TL,C.JW,T.VO,C.RG,S.fS,S.fg],styles:[".full-width[_ngcontent-%COMP%]{width:100%}"],changeDetection:0})}}return te})()},770:(o,s,r)=>{"use strict";var i=r(6388),a=r(9893),c=r(3107);let y=(()=>{class v{constructor(){}static{this.\u0275fac=function(_){return new(_||v)}}static{this.\u0275cmp=c.VBU({type:v,selectors:[["app-root"]],decls:1,vars:0,template:function(_,D){1&_&&c.nrm(0,"router-outlet")},dependencies:[a.n3],styles:["[_nghost-%COMP%]{display:flex;flex:1 1 auto;width:100%;height:100%}"]})}}return v})();var w=r(3014);const C=new c.nKC("ANGOR_MOCK_API_DEFAULT_DELAY");var A=r(8915),S=r(1698),T=r(7610),k=r(3016);class R{constructor(m,d){this.url=m,this.delay=d,this._replyCount=0,this._replied=0}get response(){if(this._replyCount>0&&this._replyCount<=this._replied)return(0,A.$)(()=>new Error("Execution limit has been reached!"));if(!this._reply)return(0,A.$)(()=>new Error("Response callback function does not exist!"));if(!this.request)return(0,A.$)(()=>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,T.s)(1)):(0,k.of)(m).pipe((0,T.s)(1))}reply(m){this._reply=m}replyCount(m){this._replyCount=m}}var G=r(6143);let Z=(()=>{class v{constructor(){this._handlers={get:new Map,post:new Map,patch:new Map,delete:new Map,put:new Map,head:new Map,jsonp:new Map,options:new Map}}findHandler(d,_){const D={handler:void 0,urlParams:{}},j=_.split("/"),ne=this._handlers[d.toLowerCase()];for(const[be,Ye]of ne){const yt=be.split("/");if(j.length===yt.length&&yt.every((mn,wr)=>mn.startsWith(":")||mn===j[wr])){D.handler=Ye,D.urlParams=(0,G.A)(yt.map((mn,wr)=>mn.startsWith(":")?[mn.substring(1),j[wr]]:void 0).filter(Boolean));break}}return D}onGet(d,_){return this._registerHandler("get",d,_)}onPost(d,_){return this._registerHandler("post",d,_)}onPatch(d,_){return this._registerHandler("patch",d,_)}onDelete(d,_){return this._registerHandler("delete",d,_)}onPut(d,_){return this._registerHandler("put",d,_)}onHead(d,_){return this._registerHandler("head",d,_)}onJsonp(d,_){return this._registerHandler("jsonp",d,_)}onOptions(d,_){return this._registerHandler("options",d,_)}_registerHandler(d,_,D){const j=new R(_,D);return this._handlers[d].set(_,j),j}static{this.\u0275fac=function(_){return new(_||v)}}static{this.\u0275prov=c.jDH({token:v,factory:v.\u0275fac,providedIn:"root"})}}return v})();var te=r(7691),we=r(8136),_e=r(2867);const pe=(v,m)=>{const d=(0,c.WQX)(C),_=(0,c.WQX)(Z),{handler:D,urlParams:j}=_.findHandler(v.method.toUpperCase(),v.url);return D?(D.request=v,D.urlParams=j,D.response.pipe((0,we.c)(D.delay??d??0),(0,_e.n)(ne=>{if(!ne)return(0,A.$)(()=>new te.yz({error:"NOT FOUND",status:404,statusText:"NOT FOUND"}));const be={status:ne[0],body:ne[1]};return be.status>=200&&be.status<300?(0,k.of)(new te.cS({body:be.body,status:be.status,statusText:"OK"})):(0,A.$)(()=>new te.yz({error:be.body?.error,status:be.status,statusText:"ERROR"}))}))):m(v)};var Te=r(7891),Ce=r(7153),Ne=r(1217);let Se=(()=>{class v{constructor(){this._auto$=new Ne.t(!0),this._mode$=new Ne.t("indeterminate"),this._progress$=new Ne.t(0),this._show$=new Ne.t(!1),this._urlMap=new Map}get auto$(){return this._auto$.asObservable()}get mode$(){return this._mode$.asObservable()}get progress$(){return this._progress$.asObservable()}get show$(){return this._show$.asObservable()}show(){this._show$.next(!0)}hide(){this._show$.next(!1)}setAutoMode(d){this._auto$.next(d)}setMode(d){this._mode$.next(d)}setProgress(d){d<0||d>100?console.error("Progress value must be between 0 and 100!"):this._progress$.next(d)}_setLoadingStatus(d,_){_?(!0===d?(this._urlMap.set(_,d),this._show$.next(!0)):!1===d&&this._urlMap.has(_)&&this._urlMap.delete(_),0===this._urlMap.size&&this._show$.next(!1)):console.error("The request URL must be provided!")}static{this.\u0275fac=function(_){return new(_||v)}}static{this.\u0275prov=c.jDH({token:v,factory:v.\u0275fac,providedIn:"root"})}}return v})();var xe=r(4447);const ae=(v,m)=>{const d=(0,c.WQX)(Se);let _=!1;return d.auto$.pipe((0,T.s)(1)).subscribe(D=>{_=D}),_?(d._setLoadingStatus(!0,v.url),m(v).pipe((0,xe.j)(()=>{d._setLoadingStatus(!1,v.url)}))):m(v)};var le=r(2012),ke=r(2147);let Ue=(()=>{class v{constructor(){this._platform=(0,c.WQX)(ke.OD),this.osName="os-unknown",this._platform.isBrowser&&(navigator.userAgent.includes("Win")&&(this.osName="os-windows"),navigator.userAgent.includes("Mac")&&(this.osName="os-mac"),navigator.userAgent.includes("X11")&&(this.osName="os-unix"),navigator.userAgent.includes("Linux")&&(this.osName="os-linux"),this._platform.IOS&&(this.osName="os-ios"),this._platform.ANDROID&&(this.osName="os-android"))}static{this.\u0275fac=function(_){return new(_||v)}}static{this.\u0275prov=c.jDH({token:v,factory:v.\u0275fac,providedIn:"root"})}}return v})();var st=r(4460),ft=r(1483);let _t=(()=>{class v{constructor(){this._document=(0,c.WQX)(st.qQ),this._router=(0,c.WQX)(a.Ix),this._router.events.pipe((0,ft.p)(d=>d instanceof a.wF),(0,T.s)(1)).subscribe(()=>{this.hide()})}show(){this._document.body.classList.remove("angor-splash-screen-hidden")}hide(){this._document.body.classList.add("angor-splash-screen-hidden")}static{this.\u0275fac=function(_){return new(_||v)}}static{this.\u0275prov=c.jDH({token:v,factory:v.\u0275fac,providedIn:"root"})}}return v})();var ot=r(3939),Yt=r(2902),un=r(7544),wn=r(6071);class En extends Error{}class Ze extends En{constructor(m){super(`Invalid DateTime: ${m.toMessage()}`)}}class wt extends En{constructor(m){super(`Invalid Interval: ${m.toMessage()}`)}}class ze extends En{constructor(m){super(`Invalid Duration: ${m.toMessage()}`)}}class Be extends En{}class Ut extends En{constructor(m){super(`Invalid unit ${m}`)}}class Ke extends En{}class lt extends En{constructor(){super("Zone is an abstract class")}}const Xe="numeric",Ge="short",pt="long",se={year:Xe,month:Xe,day:Xe},qe={year:Xe,month:Ge,day:Xe},Nt={year:Xe,month:Ge,day:Xe,weekday:Ge},tn={year:Xe,month:pt,day:Xe},pn={year:Xe,month:pt,day:Xe,weekday:pt},Wn={hour:Xe,minute:Xe},Pt={hour:Xe,minute:Xe,second:Xe},en={hour:Xe,minute:Xe,second:Xe,timeZoneName:Ge},an={hour:Xe,minute:Xe,second:Xe,timeZoneName:pt},Yn={hour:Xe,minute:Xe,hourCycle:"h23"},Sn={hour:Xe,minute:Xe,second:Xe,hourCycle:"h23"},Xt={hour:Xe,minute:Xe,second:Xe,hourCycle:"h23",timeZoneName:Ge},Mt={hour:Xe,minute:Xe,second:Xe,hourCycle:"h23",timeZoneName:pt},Gt={year:Xe,month:Xe,day:Xe,hour:Xe,minute:Xe},Ot={year:Xe,month:Xe,day:Xe,hour:Xe,minute:Xe,second:Xe},Ie={year:Xe,month:Ge,day:Xe,hour:Xe,minute:Xe},Me={year:Xe,month:Ge,day:Xe,hour:Xe,minute:Xe,second:Xe},nt={year:Xe,month:Ge,day:Xe,weekday:Ge,hour:Xe,minute:Xe},W={year:Xe,month:pt,day:Xe,hour:Xe,minute:Xe,timeZoneName:Ge},L={year:Xe,month:pt,day:Xe,hour:Xe,minute:Xe,second:Xe,timeZoneName:Ge},V={year:Xe,month:pt,day:Xe,weekday:pt,hour:Xe,minute:Xe,timeZoneName:pt},Re={year:Xe,month:pt,day:Xe,weekday:pt,hour:Xe,minute:Xe,second:Xe,timeZoneName:pt};class bt{get type(){throw new lt}get name(){throw new lt}get ianaName(){return this.name}get isUniversal(){throw new lt}offsetName(m,d){throw new lt}formatOffset(m,d){throw new lt}offset(m){throw new lt}equals(m){throw new lt}get isValid(){throw new lt}}let mt=null;class At extends bt{static get instance(){return null===mt&&(mt=new At),mt}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(m,{format:d,locale:_}){return Eo(m,d,_)}formatOffset(m,d){return ga(this.offset(m),d)}offset(m){return-new Date(m).getTimezoneOffset()}equals(m){return"system"===m.type}get isValid(){return!0}}let Ln={};const gn={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};let Hn={};class xr extends bt{static create(m){return Hn[m]||(Hn[m]=new xr(m)),Hn[m]}static resetCache(){Hn={},Ln={}}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=xr.isValidZone(m)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(m,{format:d,locale:_}){return Eo(m,d,_,this.name)}formatOffset(m,d){return ga(this.offset(m),d)}offset(m){const d=new Date(m);if(isNaN(d))return NaN;const _=function Zt(v){return Ln[v]||(Ln[v]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:v,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),Ln[v]}(this.name);let[D,j,ne,be,Ye,yt,cn]=_.formatToParts?function Bn(v,m){const d=v.formatToParts(m),_=[];for(let D=0;D=0?_r:1e3+_r,(Es({year:D,month:j,day:ne,hour:24===Ye?0:Ye,minute:yt,second:cn,millisecond:0})-Zn)/6e4}equals(m){return"iana"===m.type&&m.name===this.name}get isValid(){return this.valid}}let ei={},vt={};function $t(v,m={}){const d=JSON.stringify([v,m]);let _=vt[d];return _||(_=new Intl.DateTimeFormat(v,m),vt[d]=_),_}let Ee={},Fe={},dt=null,_n={};function sn(v,m,d,_){const D=v.listingMode();return"error"===D?null:"en"===D?d(m):_(m)}class Je{constructor(m,d,_){this.padTo=_.padTo||0,this.floor=_.floor||!1;const{padTo:D,floor:j,...ne}=_;if(!d||Object.keys(ne).length>0){const be={useGrouping:!1,..._};_.padTo>0&&(be.minimumIntegerDigits=_.padTo),this.inf=function at(v,m={}){const d=JSON.stringify([v,m]);let _=Ee[d];return _||(_=new Intl.NumberFormat(v,m),Ee[d]=_),_}(m,be)}}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):us(m,3),this.padTo)}}class St{constructor(m,d,_){let D;if(this.opts=_,this.originalZone=void 0,this.opts.timeZone)this.dt=m;else if("fixed"===m.zone.type){const ne=m.offset/60*-1,be=ne>=0?`Etc/GMT+${ne}`:`Etc/GMT${ne}`;0!==m.offset&&xr.create(be).valid?(D=be,this.dt=m):(D="UTC",this.dt=0===m.offset?m:m.setZone("UTC").plus({minutes:m.offset}),this.originalZone=m.zone)}else"system"===m.zone.type?this.dt=m:"iana"===m.zone.type?(this.dt=m,D=m.zone.name):(D="UTC",this.dt=m.setZone("UTC").plus({minutes:m.offset}),this.originalZone=m.zone);const j={...this.opts};j.timeZone=j.timeZone||D,this.dtf=$t(d,j)}format(){return this.originalZone?this.formatToParts().map(({value:m})=>m).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const m=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?m.map(d=>{if("timeZoneName"===d.type){const _=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...d,value:_}}return d}):m}resolvedOptions(){return this.dtf.resolvedOptions()}}class zt{constructor(m,d,_){this.opts={style:"long",..._},!d&&Sr()&&(this.rtf=function Rt(v,m={}){const{base:d,..._}=m,D=JSON.stringify([v,_]);let j=Fe[D];return j||(j=new Intl.RelativeTimeFormat(v,m),Fe[D]=j),j}(m,_))}format(m,d){return this.rtf?this.rtf.format(m,d):function re(v,m,d="always",_=!1){const D={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},j=-1===["hours","minutes","seconds"].indexOf(v);if("auto"===d&&j){const mn="days"===v;switch(m){case 1:return mn?"tomorrow":`next ${D[v][0]}`;case-1:return mn?"yesterday":`last ${D[v][0]}`;case 0:return mn?"today":`this ${D[v][0]}`}}const ne=Object.is(m,-0)||m<0,be=Math.abs(m),Ye=1===be,yt=D[v],cn=_?Ye?yt[1]:yt[2]||yt[1]:Ye?D[v][0]:v;return ne?`${be} ${cn} ago`:`in ${be} ${cn}`}(d,m,this.opts.numeric,"long"!==this.opts.style)}formatToParts(m,d){return this.rtf?this.rtf.formatToParts(m,d):[]}}const zn={firstDay:1,minimalDays:4,weekend:[6,7]};class hr{static fromOpts(m){return hr.create(m.locale,m.numberingSystem,m.outputCalendar,m.weekSettings,m.defaultToEN)}static create(m,d,_,D,j=!1){const ne=m||Oe.defaultLocale,be=ne||(j?"en-US":function Bt(){return dt||(dt=(new Intl.DateTimeFormat).resolvedOptions().locale,dt)}()),Ye=d||Oe.defaultNumberingSystem,yt=_||Oe.defaultOutputCalendar,cn=Ks(D)||Oe.defaultWeekSettings;return new hr(be,Ye,yt,cn,ne)}static resetCache(){dt=null,vt={},Ee={},Fe={}}static fromObject({locale:m,numberingSystem:d,outputCalendar:_,weekSettings:D}={}){return hr.create(m,d,_,D)}constructor(m,d,_,D,j){const[ne,be,Ye]=function Mr(v){const m=v.indexOf("-x-");-1!==m&&(v=v.substring(0,m));const d=v.indexOf("-u-");if(-1===d)return[v];{let _,D;try{_=$t(v).resolvedOptions(),D=v}catch{const Ye=v.substring(0,d);_=$t(Ye).resolvedOptions(),D=Ye}const{numberingSystem:j,calendar:ne}=_;return[D,j,ne]}}(m);this.locale=ne,this.numberingSystem=d||be||null,this.outputCalendar=_||Ye||null,this.weekSettings=D,this.intl=function ii(v,m,d){return(d||m)&&(v.includes("-u-")||(v+="-u"),d&&(v+=`-ca-${d}`),m&&(v+=`-nu-${m}`)),v}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=j,this.fastNumbersCached=null}get fastNumbers(){return null==this.fastNumbersCached&&(this.fastNumbersCached=function Tt(v){return(!v.numberingSystem||"latn"===v.numberingSystem)&&("latn"===v.numberingSystem||!v.locale||v.locale.startsWith("en")||"latn"===new Intl.DateTimeFormat(v.intl).resolvedOptions().numberingSystem)}(this)),this.fastNumbersCached}listingMode(){return this.isEnglish()&&!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar)?"en":"intl"}clone(m){return m&&0!==Object.getOwnPropertyNames(m).length?hr.create(m.locale||this.specifiedLocale,m.numberingSystem||this.numberingSystem,m.outputCalendar||this.outputCalendar,Ks(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 sn(this,m,ra,()=>{const _=d?{month:m,day:"numeric"}:{month:m},D=d?"format":"standalone";return this.monthsCache[D][m]||(this.monthsCache[D][m]=function ci(v){const m=[];for(let d=1;d<=12;d++){const _=Lr.utc(2009,d,1);m.push(v(_))}return m}(j=>this.extract(j,_,"month"))),this.monthsCache[D][m]})}weekdays(m,d=!1){return sn(this,m,Zo,()=>{const _=d?{weekday:m,year:"numeric",month:"long",day:"numeric"}:{weekday:m},D=d?"format":"standalone";return this.weekdaysCache[D][m]||(this.weekdaysCache[D][m]=function Si(v){const m=[];for(let d=1;d<=7;d++){const _=Lr.utc(2016,11,13+d);m.push(v(_))}return m}(j=>this.extract(j,_,"weekday"))),this.weekdaysCache[D][m]})}meridiems(){return sn(this,void 0,()=>vi,()=>{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 sn(this,m,wl,()=>{const d={era:m};return this.eraCache[m]||(this.eraCache[m]=[Lr.utc(-40,1,1),Lr.utc(2017,1,1)].map(_=>this.extract(_,d,"era"))),this.eraCache[m]})}extract(m,d,_){const ne=this.dtFormatter(m,d).formatToParts().find(be=>be.type.toLowerCase()===_);return ne?ne.value:null}numberFormatter(m={}){return new Je(this.intl,m.forceSimple||this.fastNumbers,m)}dtFormatter(m,d={}){return new St(m,this.intl,d)}relFormatter(m={}){return new zt(this.intl,this.isEnglish(),m)}listFormatter(m={}){return function Xr(v,m={}){const d=JSON.stringify([v,m]);let _=ei[d];return _||(_=new Intl.ListFormat(v,m),ei[d]=_),_}(this.intl,m)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:ta()?function or(v){let m=_n[v];if(!m){const d=new Intl.Locale(v);m="getWeekInfo"in d?d.getWeekInfo():d.weekInfo,_n[v]=m}return m}(this.locale):zn}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 ho=null;class Ii extends bt{static get utcInstance(){return null===ho&&(ho=new Ii(0)),ho}static instance(m){return 0===m?Ii.utcInstance:new Ii(m)}static parseSpecifier(m){if(m){const d=m.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(d)return new Ii(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${ga(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${ga(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(m,d){return ga(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 bt{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(v,m){if($r(v)||null===v)return m;if(v instanceof bt)return v;if(function ws(v){return"string"==typeof v}(v)){const _=v.toLowerCase();return"default"===_?m:"local"===_||"system"===_?At.instance:"utc"===_||"gmt"===_?Ii.utcInstance:Ii.parseSpecifier(_)||xr.create(v)}return Gi(v)?Ii.instance(v):"object"==typeof v&&"offset"in v&&"function"==typeof v.offset?v:new Uo(v)}const ns={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=ns.hanidec.replace(/[\[|\]]/g,"").split("");let Do={};function eo({numberingSystem:v},m=""){const d=v||"latn";return Do[d]||(Do[d]={}),Do[d][m]||(Do[d][m]=new RegExp(`${ns[d]}${m}`)),Do[d][m]}let me,oo=()=>Date.now(),Bi="system",Mo=null,et=null,ct=null,xt=60,tt=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,At.instance)}static get defaultLocale(){return Mo}static set defaultLocale(m){Mo=m}static get defaultNumberingSystem(){return et}static set defaultNumberingSystem(m){et=m}static get defaultOutputCalendar(){return ct}static set defaultOutputCalendar(m){ct=m}static get defaultWeekSettings(){return tt}static set defaultWeekSettings(m){tt=Ks(m)}static get twoDigitCutoffYear(){return xt}static set twoDigitCutoffYear(m){xt=m%100}static get throwOnInvalid(){return me}static set throwOnInvalid(m){me=m}static resetCaches(){hr.resetCache(),xr.resetCache(),Lr.resetCache(),function Ms(){Do={}}()}}class ht{constructor(m,d){this.reason=m,this.explanation=d}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const Vt=[0,31,59,90,120,151,181,212,243,273,304,334],kt=[0,31,60,91,121,152,182,213,244,274,305,335];function hn(v,m){return new ht("unit out of range",`you specified ${m} (of type ${typeof m}) as a ${v}, which is invalid`)}function Cn(v,m,d){const _=new Date(Date.UTC(v,m-1,d));v<100&&v>=0&&_.setUTCFullYear(_.getUTCFullYear()-1900);const D=_.getUTCDay();return 0===D?7:D}function An(v,m,d){return d+(is(v)?kt:Vt)[m-1]}function On(v,m){const d=is(v)?kt:Vt,_=d.findIndex(j=>jma(_,m,d)?(yt=_+1,Ye=1):yt=_,{weekYear:yt,weekNumber:Ye,weekday:be,...Yo(v)}}function sr(v,m=4,d=1){const{weekYear:_,weekNumber:D,weekday:j}=v,ne=Un(Cn(_,1,m),d),be=to(_);let yt,Ye=7*D+j-ne-7+m;Ye<1?(yt=_-1,Ye+=to(yt)):Ye>be?(yt=_+1,Ye-=to(_)):yt=_;const{month:cn,day:mn}=On(yt,Ye);return{year:yt,month:cn,day:mn,...Yo(v)}}function Ir(v){const{year:m,month:d,day:_}=v;return{year:m,ordinal:An(m,d,_),...Yo(v)}}function pr(v){const{year:m,ordinal:d}=v,{month:_,day:D}=On(m,d);return{year:m,month:_,day:D,...Yo(v)}}function bi(v,m){if($r(v.localWeekday)&&$r(v.localWeekNumber)&&$r(v.localWeekYear))return{minDaysInFirstWeek:4,startOfWeek:1};if(!$r(v.weekday)||!$r(v.weekNumber)||!$r(v.weekYear))throw new Be("Cannot mix locale-based week fields with ISO-based week fields");return $r(v.localWeekday)||(v.weekday=v.localWeekday),$r(v.localWeekNumber)||(v.weekNumber=v.localWeekNumber),$r(v.localWeekYear)||(v.weekYear=v.localWeekYear),delete v.localWeekday,delete v.localWeekNumber,delete v.localWeekYear,{minDaysInFirstWeek:m.getMinDaysInFirstWeek(),startOfWeek:m.getStartOfWeek()}}function ai(v){const m=cs(v.year),d=Wi(v.month,1,12),_=Wi(v.day,1,zi(v.year,v.month));return m?d?!_&&hn("day",v.day):hn("month",v.month):hn("year",v.year)}function _o(v){const{hour:m,minute:d,second:_,millisecond:D}=v,j=Wi(m,0,23)||24===m&&0===d&&0===_&&0===D,ne=Wi(d,0,59),be=Wi(_,0,59),Ye=Wi(D,0,999);return j?ne?be?!Ye&&hn("millisecond",D):hn("second",_):hn("minute",d):hn("hour",m)}function $r(v){return typeof v>"u"}function Gi(v){return"number"==typeof v}function cs(v){return"number"==typeof v&&v%1==0}function Sr(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function ta(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function wo(v,m,d){if(0!==v.length)return v.reduce((_,D)=>{const j=[m(D),D];return _&&d(_[0],j[0])===_[0]?_:j},null)[1]}function Ls(v,m){return Object.prototype.hasOwnProperty.call(v,m)}function Ks(v){if(null==v)return null;if("object"!=typeof v)throw new Ke("Week settings must be an object");if(!Wi(v.firstDay,1,7)||!Wi(v.minimalDays,1,7)||!Array.isArray(v.weekend)||v.weekend.some(m=>!Wi(m,1,7)))throw new Ke("Invalid week settings");return{firstDay:v.firstDay,minimalDays:v.minimalDays,weekend:Array.from(v.weekend)}}function Wi(v,m,d){return cs(v)&&v>=m&&v<=d}function Ni(v,m=2){let _;return _=v<0?"-"+(""+-v).padStart(m,"0"):(""+v).padStart(m,"0"),_}function Ps(v){if(!$r(v)&&null!==v&&""!==v)return parseInt(v,10)}function rs(v){if(!$r(v)&&null!==v&&""!==v)return parseFloat(v)}function qr(v){if(!$r(v)&&null!==v&&""!==v){const m=1e3*parseFloat("0."+v);return Math.floor(m)}}function us(v,m,d=!1){const _=10**m;return(d?Math.trunc:Math.round)(v*_)/_}function is(v){return v%4==0&&(v%100!=0||v%400==0)}function to(v){return is(v)?366:365}function zi(v,m){const d=function Gs(v,m){return v-m*Math.floor(v/m)}(m-1,12)+1;return 2===d?is(v+(m-d)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][d-1]}function Es(v){let m=Date.UTC(v.year,v.month-1,v.day,v.hour,v.minute,v.second,v.millisecond);return v.year<100&&v.year>=0&&(m=new Date(m),m.setUTCFullYear(v.year,v.month-1,v.day)),+m}function ko(v,m,d){return-Un(Cn(v,1,m),d)+m-1}function ma(v,m=4,d=1){const _=ko(v,m,d),D=ko(v+1,m,d);return(to(v)-_+D)/7}function tr(v){return v>99?v:v>Oe.twoDigitCutoffYear?1900+v:2e3+v}function Eo(v,m,d,_=null){const D=new Date(v),j={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};_&&(j.timeZone=_);const ne={timeZoneName:m,...j},be=new Intl.DateTimeFormat(d,ne).formatToParts(D).find(Ye=>"timezonename"===Ye.type.toLowerCase());return be?be.value:null}function os(v,m){let d=parseInt(v,10);Number.isNaN(d)&&(d=0);const _=parseInt(m,10)||0;return 60*d+(d<0||Object.is(d,-0)?-_:_)}function ks(v){const m=Number(v);if("boolean"==typeof v||""===v||Number.isNaN(m))throw new Ke(`Invalid unit value ${v}`);return m}function Fs(v,m){const d={};for(const _ in v)if(Ls(v,_)){const D=v[_];if(null==D)continue;d[m(_)]=ks(D)}return d}function ga(v,m){const d=Math.trunc(Math.abs(v/60)),_=Math.trunc(Math.abs(v%60)),D=v>=0?"+":"-";switch(m){case"short":return`${D}${Ni(d,2)}:${Ni(_,2)}`;case"narrow":return`${D}${d}${_>0?`:${_}`:""}`;case"techie":return`${D}${Ni(d,2)}${Ni(_,2)}`;default:throw new RangeError(`Value format ${m} is out of range for property format`)}}function Yo(v){return function Ns(v,m){return m.reduce((d,_)=>(d[_]=v[_],d),{})}(v,["hour","minute","second","millisecond"])}const na=["January","February","March","April","May","June","July","August","September","October","November","December"],bl=["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 ra(v){switch(v){case"narrow":return[...Qo];case"short":return[...bl];case"long":return[...na];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"],vo=["M","T","W","T","F","S","S"];function Zo(v){switch(v){case"narrow":return[...vo];case"short":return[...ss];case"long":return[...ao];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const vi=["AM","PM"],Pa=["Before Christ","Anno Domini"],Io=["BC","AD"],Xs=["B","A"];function wl(v){switch(v){case"narrow":return[...Xs];case"short":return[...Io];case"long":return[...Pa];default:return null}}function Et(v,m){let d="";for(const _ of v)d+=_.literal?_.val:m(_.val);return d}const Fn={D:se,DD:qe,DDD:tn,DDDD:pn,t:Wn,tt:Pt,ttt:en,tttt:an,T:Yn,TT:Sn,TTT:Xt,TTTT:Mt,f:Gt,ff:Ie,fff:W,ffff:V,F:Ot,FF:Me,FFF:L,FFFF:Re};class fn{static create(m,d={}){return new fn(m,d)}static parseFormat(m){let d=null,_="",D=!1;const j=[];for(let ne=0;ne0&&j.push({literal:D||/^\s+$/.test(_),val:_}),d=null,_="",D=!D):D||be===d?_+=be:(_.length>0&&j.push({literal:/^\s+$/.test(_),val:_}),_=be,d=be)}return _.length>0&&j.push({literal:D||/^\s+$/.test(_),val:_}),j}static macroTokenToFormatOpts(m){return Fn[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 _={...this.opts};return d>0&&(_.padTo=d),this.loc.numberFormatter(_).format(m)}formatDateTimeFromString(m,d){const _="en"===this.loc.listingMode(),D=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,j=(Zn,_r)=>this.loc.extract(m,Zn,_r),ne=Zn=>m.isOffsetFixed&&0===m.offset&&Zn.allowZ?"Z":m.isValid?m.zone.formatOffset(m.ts,Zn.format):"",Ye=(Zn,_r)=>_?function Y(v,m){return ra(m)[v.month-1]}(m,Zn):j(_r?{month:Zn}:{month:Zn,day:"numeric"},"month"),yt=(Zn,_r)=>_?function Ya(v,m){return Zo(m)[v.weekday-1]}(m,Zn):j(_r?{weekday:Zn}:{weekday:Zn,month:"long",day:"numeric"},"weekday"),cn=Zn=>{const _r=fn.macroTokenToFormatOpts(Zn);return _r?this.formatWithSystemDefault(m,_r):Zn},mn=Zn=>_?function Ve(v,m){return wl(m)[v.year<0?0:1]}(m,Zn):j({era:Zn},"era");return Et(fn.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 ne({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return ne({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return ne({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return m.zone.offsetName(m.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return m.zone.offsetName(m.ts,{format:"long",locale:this.loc.locale});case"z":return m.zoneName;case"a":return _?function Xa(v){return vi[v.hour<12?0:1]}(m):j({hour:"numeric",hourCycle:"h12"},"dayperiod");case"d":return D?j({day:"numeric"},"day"):this.num(m.day);case"dd":return D?j({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?j({month:"numeric",day:"numeric"},"month"):this.num(m.month);case"LL":return D?j({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?j({month:"numeric"},"month"):this.num(m.month);case"MM":return D?j({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?j({year:"numeric"},"year"):this.num(m.year);case"yy":return D?j({year:"2-digit"},"year"):this.num(m.year.toString().slice(-2),2);case"yyyy":return D?j({year:"numeric"},"year"):this.num(m.year,4);case"yyyyyy":return D?j({year:"numeric"},"year"):this.num(m.year,6);case"G":return mn("short");case"GG":return mn("long");case"GGGGG":return mn("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 cn(Zn)}})}formatDurationFromString(m,d){const _=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}},j=fn.parseFormat(d),ne=j.reduce((Ye,{literal:yt,val:cn})=>yt?Ye:Ye.concat(cn),[]);return Et(j,(Ye=>yt=>{const cn=_(yt);return cn?this.num(Ye.get(cn),yt.length):yt})(m.shiftTo(...ne.map(_).filter(Ye=>Ye))))}}const cr=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function dr(...v){const m=v.reduce((d,_)=>d+_.source,"");return RegExp(`^${m}$`)}function Gr(...v){return m=>v.reduce(([d,_,D],j)=>{const[ne,be,Ye]=j(m,D);return[{...d,...ne},be||_,Ye]},[{},null,1]).slice(0,2)}function Ki(v,...m){if(null==v)return[null,null];for(const[d,_]of m){const D=d.exec(v);if(D)return _(D)}return[null,null]}function Or(...v){return(m,d)=>{const _={};let D;for(D=0;Dvoid 0!==Zn&&(_r||Zn&&cn)?-Zn:Zn;return[{years:wr(rs(d)),months:wr(rs(_)),weeks:wr(rs(D)),days:wr(rs(j)),hours:wr(rs(ne)),minutes:wr(rs(be)),seconds:wr(rs(Ye),"-0"===Ye),milliseconds:wr(qr(yt),mn)}]}const sc={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function El(v,m,d,_,D,j,ne){const be={year:2===m.length?tr(Ps(m)):Ps(m),month:bl.indexOf(d)+1,day:Ps(_),hour:Ps(D),minute:Ps(j)};return ne&&(be.second=Ps(ne)),v&&(be.weekday=v.length>3?ao.indexOf(v)+1:ss.indexOf(v)+1),be}const ds=/^(?:(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 Bs(v){const[,m,d,_,D,j,ne,be,Ye,yt,cn,mn]=v,wr=El(m,D,_,d,j,ne,be);let Zn;return Zn=Ye?sc[Ye]:yt?0:os(cn,mn),[wr,new Ii(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$/,xl=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Cl(v){const[,m,d,_,D,j,ne,be]=v;return[El(m,D,_,d,j,ne,be),Ii.utcInstance]}function ia(v){const[,m,d,_,D,j,ne,be]=v;return[El(m,be,d,_,D,j,ne),Ii.utcInstance]}const Ua=dr(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,lo),yc=dr(/(\d{4})-?W(\d\d)(?:-?(\d))?/,lo),Nu=dr(/(\d{4})-?(\d{3})/,lo),ac=dr(fo),$a=Gr(function jt(v,m){return[{year:Pe(v,m),month:Pe(v,m+1,1),day:Pe(v,m+2,1)},null,m+3]},gr,ti,So),Gl=Gr(Qa,gr,ti,So),ya=Gr(va,gr,ti,So),qa=Gr(gr,ti,So),wa=Gr(gr),bc=dr(/(\d{4})-(\d\d)-(\d\d)/,Q),ll=dr(ce),Sl=Gr(gr,ti,So),Al="Invalid Duration",Yl={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}},Ea={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},...Yl},hs=365.2425,Ui=30.436875,Gn={years:{quarters:4,months:12,weeks:hs/7,days:hs,hours:24*hs,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:hs/28,days:hs/4,hours:24*hs/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},...Yl},Ar=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Ao=Ar.slice(0).reverse();function no(v,m,d=!1){const _={values:d?m.values:{...v.values,...m.values||{}},loc:v.loc.clone(m.loc),conversionAccuracy:m.conversionAccuracy||v.conversionAccuracy,matrix:m.matrix||v.matrix};return new Fr(_)}function $o(v,m){let d=m.milliseconds??0;for(const _ of Ao.slice(1))m[_]&&(d+=m[_]*v[_].milliseconds);return d}function es(v,m){const d=$o(v,m)<0?-1:1;Ar.reduceRight((_,D)=>{if($r(m[D]))return _;if(_){const ne=v[D][_],be=Math.floor(m[_]*d/ne);m[D]+=be*d,m[_]-=be*ne*d}return D},null),Ar.reduce((_,D)=>{if($r(m[D]))return _;if(_){const j=m[_]%1;m[_]-=j,m[D]+=j*v[_][D]}return D},null)}class Fr{constructor(m){const d="longterm"===m.conversionAccuracy||!1;let _=d?Gn:Ea;m.matrix&&(_=m.matrix),this.values=m.values,this.loc=m.loc||hr.create(),this.conversionAccuracy=d?"longterm":"casual",this.invalid=m.invalid||null,this.matrix=_,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:Fs(m,Fr.normalizeUnit),loc:hr.fromObject(d),conversionAccuracy:d.conversionAccuracy,matrix:d.matrix})}static fromDurationLike(m){if(Gi(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[_]=function ba(v){return Ki(v,[Fa,Ru])}(m);return _?Fr.fromObject(_,d):Fr.invalid("unparsable",`the input "${m}" can't be parsed as ISO 8601`)}static fromISOTime(m,d){const[_]=function Jo(v){return Ki(v,[qo,wa])}(m);return _?Fr.fromObject(_,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 _=m instanceof ht?m:new ht(m,d);if(Oe.throwOnInvalid)throw new ze(_);return new Fr({invalid:_})}static normalizeUnit(m){const d={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[m&&m.toLowerCase()];if(!d)throw new Ut(m);return d}static isDuration(m){return m&&m.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(m,d={}){const _={...d,floor:!1!==d.round&&!1!==d.floor};return this.isValid?fn.create(this.loc,_).formatDurationFromString(this,m):Al}toHuman(m={}){if(!this.isValid)return Al;const d=Ar.map(_=>{const D=this.values[_];return $r(D)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...m,unit:_.slice(0,-1)}).format(D)}).filter(_=>_);return this.loc.listFormatter({type:"conjunction",style:m.listStyle||"narrow",...m}).format(d)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let m="P";return 0!==this.years&&(m+=this.years+"Y"),(0!==this.months||0!==this.quarters)&&(m+=this.months+3*this.quarters+"M"),0!==this.weeks&&(m+=this.weeks+"W"),0!==this.days&&(m+=this.days+"D"),(0!==this.hours||0!==this.minutes||0!==this.seconds||0!==this.milliseconds)&&(m+="T"),0!==this.hours&&(m+=this.hours+"H"),0!==this.minutes&&(m+=this.minutes+"M"),(0!==this.seconds||0!==this.milliseconds)&&(m+=us(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),_={};for(const D of Ar)(Ls(d.values,D)||Ls(this.values,D))&&(_[D]=d.get(D)+this.get(D));return no(this,{values:_},!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 _ of Object.keys(this.values))d[_]=ks(m(this.values[_],_));return no(this,{values:d},!0)}get(m){return this[Fr.normalizeUnit(m)]}set(m){return this.isValid?no(this,{values:{...this.values,...Fs(m,Fr.normalizeUnit)}}):this}reconfigure({locale:m,numberingSystem:d,conversionAccuracy:_,matrix:D}={}){return no(this,{loc:this.loc.clone({locale:m,numberingSystem:d}),matrix:D,conversionAccuracy:_})}as(m){return this.isValid?this.shiftTo(m).get(m):NaN}normalize(){if(!this.isValid)return this;const m=this.toObject();return es(this.matrix,m),no(this,{values:m},!0)}rescale(){return this.isValid?no(this,{values:function Po(v){const m={};for(const[d,_]of Object.entries(v))0!==_&&(m[d]=_);return m}(this.normalize().shiftToAll().toObject())},!0):this}shiftTo(...m){if(!this.isValid)return this;if(0===m.length)return this;m=m.map(ne=>Fr.normalizeUnit(ne));const d={},_={},D=this.toObject();let j;for(const ne of Ar)if(m.indexOf(ne)>=0){j=ne;let be=0;for(const yt in _)be+=this.matrix[yt][ne]*_[yt],_[yt]=0;Gi(D[ne])&&(be+=D[ne]);const Ye=Math.trunc(be);d[ne]=Ye,_[ne]=(1e3*be-1e3*Ye)/1e3}else Gi(D[ne])&&(_[ne]=D[ne]);for(const ne in _)0!==_[ne]&&(d[j]+=ne===j?_[ne]:_[ne]/this.matrix[j][ne]);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(_,D){return void 0===_||0===_?void 0===D||0===D:_===D}for(const _ of Ar)if(!d(this.values[_],m.values[_]))return!1;return!0}}const po="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 _=m instanceof ht?m:new ht(m,d);if(Oe.throwOnInvalid)throw new wt(_);return new Rr({invalid:_})}static fromDateTimes(m,d){const _=tl(m),D=tl(d),j=function Is(v,m){return v&&v.isValid?m&&m.isValid?mm}isBefore(m){return!!this.isValid&&this.e<=m}contains(m){return!!this.isValid&&this.s<=m&&this.e>m}set({start:m,end:d}={}){return this.isValid?Rr.fromDateTimes(m||this.s,d||this.e):this}splitAt(...m){if(!this.isValid)return[];const d=m.map(tl).filter(ne=>this.contains(ne)).sort((ne,be)=>ne.toMillis()-be.toMillis()),_=[];let{s:D}=this,j=0;for(;D+this.e?this.e:ne;_.push(Rr.fromDateTimes(D,be)),D=be,j+=1}return _}splitBy(m){const d=Fr.fromDurationLike(m);if(!this.isValid||!d.isValid||0===d.as("milliseconds"))return[];let j,{s:_}=this,D=1;const ne=[];for(;_Ye*D));j=+be>+this.e?this.e:be,ne.push(Rr.fromDateTimes(_,j)),_=j,D+=1}return ne}divideEqually(m){return this.isValid?this.splitBy(this.length()/m).slice(0,m):[]}overlaps(m){return this.e>m.s&&this.s=m.e}equals(m){return!(!this.isValid||!m.isValid)&&this.s.equals(m.s)&&this.e.equals(m.e)}intersection(m){if(!this.isValid)return this;const d=this.s>m.s?this.s:m.s,_=this.e=_?null:Rr.fromDateTimes(d,_)}union(m){return this.isValid?Rr.fromDateTimes(this.sm.e?this.e:m.e):this}static merge(m){const[d,_]=m.sort((D,j)=>D.s-j.s).reduce(([D,j],ne)=>j?j.overlaps(ne)||j.abutsStart(ne)?[D,j.union(ne)]:[D.concat([j]),ne]:[D,ne],[[],null]);return _&&d.push(_),d}static xor(m){let d=null,_=0;const D=[],j=m.map(Ye=>[{time:Ye.s,type:"s"},{time:Ye.e,type:"e"}]),be=Array.prototype.concat(...j).sort((Ye,yt)=>Ye.time-yt.time);for(const Ye of be)_+="s"===Ye.type?1:-1,1===_?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()})`:po}[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?fn.create(this.s.loc.clone(d),m).formatInterval(this):po}toISO(m){return this.isValid?`${this.s.toISO(m)}/${this.e.toISO(m)}`:po}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:po}toISOTime(m){return this.isValid?`${this.s.toISOTime(m)}/${this.e.toISOTime(m)}`:po}toFormat(m,{separator:d=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(m)}${d}${this.e.toFormat(m)}`:po}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 mo{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 xr.isValidZone(m)}static normalizeZone(m){return oi(m,Oe.defaultZone)}static getStartOfWeek({locale:m=null,locObj:d=null}={}){return(d||hr.create(m)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:m=null,locObj:d=null}={}){return(d||hr.create(m)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:m=null,locObj:d=null}={}){return(d||hr.create(m)).getWeekendDays().slice()}static months(m="long",{locale:d=null,numberingSystem:_=null,locObj:D=null,outputCalendar:j="gregory"}={}){return(D||hr.create(d,_,j)).months(m)}static monthsFormat(m="long",{locale:d=null,numberingSystem:_=null,locObj:D=null,outputCalendar:j="gregory"}={}){return(D||hr.create(d,_,j)).months(m,!0)}static weekdays(m="long",{locale:d=null,numberingSystem:_=null,locObj:D=null}={}){return(D||hr.create(d,_,null)).weekdays(m)}static weekdaysFormat(m="long",{locale:d=null,numberingSystem:_=null,locObj:D=null}={}){return(D||hr.create(d,_,null)).weekdays(m,!0)}static meridiems({locale:m=null}={}){return hr.create(m).meridiems()}static eras(m="short",{locale:d=null}={}){return hr.create(d,null,"gregory").eras(m)}static features(){return{relative:Sr(),localeWeek:ta()}}}function lc(v,m){const d=D=>D.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),_=d(m)-d(v);return Math.floor(Fr.fromMillis(_).as("days"))}function Di(v,m=d=>d){return{regex:v,deser:([d])=>m(function Xo(v){let m=parseInt(v,10);if(isNaN(m)){m="";for(let d=0;d=j&&_<=ne&&(m+=_-j)}}return parseInt(m,10)}return m}(d))}}const oa="[ \xa0]",No=new RegExp(oa,"g");function U(v){return v.replace(/\./g,"\\.?").replace(No,oa)}function de(v){return v.replace(/\./g,"").replace(No," ").toLowerCase()}function q(v,m){return null===v?null:{regex:RegExp(v.map(U).join("|")),deser:([d])=>v.findIndex(_=>de(d)===de(_))+m}}function ve(v,m){return{regex:v,deser:([,d,_])=>os(d,_),groups:m}}function rt(v){return{regex:v,deser:([m])=>m}}function bn(v){return v.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(v,m){return Array.prototype.concat(...v.map(d=>function Fo(v,m){if(v.literal)return v;const _=Tl(fn.macroTokenToFormatOpts(v.val),m);return null==_||_.includes(void 0)?v:_}(d,m)))}class fs{constructor(m,d){if(this.locale=m,this.format=d,this.tokens=Wo(fn.parseFormat(d),m),this.units=this.tokens.map(_=>function Rn(v,m){const d=eo(m),_=eo(m,"{2}"),D=eo(m,"{3}"),j=eo(m,"{4}"),ne=eo(m,"{6}"),be=eo(m,"{1,2}"),Ye=eo(m,"{1,3}"),yt=eo(m,"{1,6}"),cn=eo(m,"{1,9}"),mn=eo(m,"{2,4}"),wr=eo(m,"{4,6}"),Zn=yi=>({regex:RegExp(bn(yi.val)),deser:([uo])=>uo,literal:!0}),ni=(yi=>{if(v.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(mn,tr);case"yyyy":case"kkkk":return Di(j);case"yyyyy":return Di(wr);case"yyyyyy":return Di(ne);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return Di(be);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return Di(_);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 rt(cn);case"uu":return rt(be);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 ve(new RegExp(`([+-]${be.source})(?::(${_.source}))?`),2);case"ZZZ":return ve(new RegExp(`([+-]${be.source})(${_.source})?`),2);case"z":return rt(/[a-z_+-/]{1,256}?/i);case" ":return rt(/[^\S\n\r]/);default:return Zn(yi)}})(v)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"};return ni.token=v,ni}(_,m)),this.disqualifyingUnit=this.units.find(_=>_.invalidReason),!this.disqualifyingUnit){const[_,D]=function Li(v){return[`^${v.map(d=>d.regex).reduce((d,_)=>`${d}(${_.source})`,"")}$`,v]}(this.units);this.regex=RegExp(_,"i"),this.handlers=D}}explainFromTokens(m){if(this.isValid){const[d,_]=function Hr(v,m,d){const _=v.match(m);if(_){const D={};let j=1;for(const ne in d)if(Ls(d,ne)){const be=d[ne],Ye=be.groups?be.groups+1:1;!be.literal&&be.token&&(D[be.token.val[0]]=be.deser(_.slice(j,j+Ye))),j+=Ye}return[_,D]}return[_,{}]}(m,this.regex,this.handlers),[D,j,ne]=_?function xi(v){let _,d=null;return $r(v.z)||(d=xr.create(v.z)),$r(v.Z)||(d||(d=new Ii(v.Z)),_=v.Z),$r(v.q)||(v.M=3*(v.q-1)+1),$r(v.h)||(v.h<12&&1===v.a?v.h+=12:12===v.h&&0===v.a&&(v.h=0)),0===v.G&&v.y&&(v.y=-v.y),$r(v.u)||(v.S=qr(v.u)),[Object.keys(v).reduce((j,ne)=>{const be=(j=>{switch(j){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}})(ne);return be&&(j[be]=v[ne]),j},{}),d,_]}(_):[null,null,void 0];if(Ls(_,"a")&&Ls(_,"H"))throw new Be("Can't include meridiem when specifying 24-hour format");return{input:m,tokens:this.tokens,regex:this.regex,rawMatches:d,matches:_,result:D,zone:j,specificOffset:ne}}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(v,m,d){return new fs(v,d).explainFromTokens(m)}function Tl(v,m){if(!v)return null;const _=fn.create(m,v).dtFormatter(function di(){return Qr||(Qr=Lr.fromMillis(1555555555555)),Qr}()),D=_.formatToParts(),j=_.resolvedOptions();return D.map(ne=>function Yr(v,m,d){const{type:_,value:D}=v;if("literal"===_){const Ye=/^\s+$/.test(D);return{literal:!Ye,val:Ye?" ":D}}let ne=_;"hour"===_&&(ne=null!=m.hour12?m.hour12?"hour12":"hour24":null!=m.hourCycle?"h11"===m.hourCycle||"h12"===m.hourCycle?"hour12":"hour24":d.hour12?"hour12":"hour24");let be=Cr[ne];if("object"==typeof be&&(be=be[m[_]]),be)return{literal:!1,val:be}}(ne,v,j))}const xa="Invalid DateTime",Ys=864e13;function Ca(v){return new ht("unsupported zone",`the zone "${v.name}" is not supported`)}function cl(v){return null===v.weekData&&(v.weekData=Jn(v.c)),v.weekData}function Ml(v){return null===v.localWeekData&&(v.localWeekData=Jn(v.c,v.loc.getMinDaysInFirstWeek(),v.loc.getStartOfWeek())),v.localWeekData}function ul(v,m){const d={ts:v.ts,zone:v.zone,c:v.c,o:v.o,loc:v.loc,invalid:v.invalid};return new Lr({...d,...m,old:d})}function sa(v,m,d){let _=v-60*m*1e3;const D=d.offset(_);if(m===D)return[_,m];_-=60*(D-m)*1e3;const j=d.offset(_);return D===j?[_,D]:[v-60*Math.min(D,j)*1e3,Math.max(D,j)]}function Ql(v,m){const d=new Date(v+=60*m*1e3);return{year:d.getUTCFullYear(),month:d.getUTCMonth()+1,day:d.getUTCDate(),hour:d.getUTCHours(),minute:d.getUTCMinutes(),second:d.getUTCSeconds(),millisecond:d.getUTCMilliseconds()}}function Bc(v,m,d){return sa(Es(v),m,d)}function ld(v,m){const d=v.o,_=v.c.year+Math.trunc(m.years),D=v.c.month+Math.trunc(m.months)+3*Math.trunc(m.quarters),j={...v.c,year:_,month:D,day:Math.min(v.c.day,zi(_,D))+Math.trunc(m.days)+7*Math.trunc(m.weeks)},ne=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"),be=Es(j);let[Ye,yt]=sa(be,d,v.zone);return 0!==ne&&(Ye+=ne,yt=v.zone.offset(Ye)),{ts:Ye,o:yt}}function cc(v,m,d,_,D,j){const{setZone:ne,zone:be}=d;if(v&&0!==Object.keys(v).length||m){const Ye=m||be,yt=Lr.fromObject(v,{...d,zone:Ye,specificOffset:j});return ne?yt:yt.setZone(be)}return Lr.invalid(new ht("unparsable",`the input "${D}" can't be parsed as ${_}`))}function To(v,m,d=!0){return v.isValid?fn.create(hr.create("en-US"),{allowZ:d,forceSimple:!0}).formatDateTimeFromString(v,m):null}function Ja(v,m){const d=v.c.year>9999||v.c.year<0;let _="";return d&&v.c.year>=0&&(_+="+"),_+=Ni(v.c.year,d?6:4),m?(_+="-",_+=Ni(v.c.month),_+="-",_+=Ni(v.c.day)):(_+=Ni(v.c.month),_+=Ni(v.c.day)),_}function el(v,m,d,_,D,j){let ne=Ni(v.c.hour);return m?(ne+=":",ne+=Ni(v.c.minute),(0!==v.c.millisecond||0!==v.c.second||!d)&&(ne+=":")):ne+=Ni(v.c.minute),(0!==v.c.millisecond||0!==v.c.second||!d)&&(ne+=Ni(v.c.second),(0!==v.c.millisecond||!_)&&(ne+=".",ne+=Ni(v.c.millisecond,3))),D&&(v.isOffsetFixed&&0===v.offset&&!j?ne+="Z":v.o<0?(ne+="-",ne+=Ni(Math.trunc(-v.o/60)),ne+=":",ne+=Ni(Math.trunc(-v.o%60))):(ne+="+",ne+=Ni(Math.trunc(v.o/60)),ne+=":",ne+=Ni(Math.trunc(v.o%60)))),j&&(ne+="["+v.zone.ianaName+"]"),ne}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},Zl={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Rs=["year","month","day","hour","minute","second","millisecond"],Zs=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],wc=["year","ordinal","hour","minute","second","millisecond"];function cd(v){switch(v.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return function oh(v){const m={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[v.toLowerCase()];if(!m)throw new Ut(v);return m}(v)}}function su(v,m){const d=oi(m.zone,Oe.defaultZone);if(!d.isValid)return Lr.invalid(Ca(d));const _=hr.fromObject(m);let D,j;if($r(v.year))D=Oe.now();else{for(const Ye of Rs)$r(v[Ye])&&(v[Ye]=Qs[Ye]);const ne=ai(v)||_o(v);if(ne)return Lr.invalid(ne);const be=function ou(v){return dl[v]||(void 0===aa&&(aa=Oe.now()),dl[v]=v.offset(aa)),dl[v]}(d);[D,j]=Bc(v,be,d)}return new Lr({ts:D,zone:d,loc:_,o:j})}function Uc(v,m,d){const _=!!$r(d.round)||d.round,D=(ne,be)=>(ne=us(ne,_||d.calendary?0:2,!0),m.loc.clone(d).relFormatter(d).format(ne,be)),j=ne=>d.calendary?m.hasSame(v,ne)?0:m.startOf(ne).diff(v.startOf(ne),ne).get(ne):m.diff(v,ne).get(ne);if(d.unit)return D(j(d.unit),d.unit);for(const ne of d.units){const be=j(ne);if(Math.abs(be)>=1)return D(be,ne)}return D(v>m?-0:0,d.units[d.units.length-1])}function Ec(v){let d,m={};return v.length>0&&"object"==typeof v[v.length-1]?(m=v[v.length-1],d=Array.from(v).slice(0,v.length-1)):d=Array.from(v),[m,d]}let aa,dl={};class Lr{constructor(m){const d=m.zone||Oe.defaultZone;let _=m.invalid||(Number.isNaN(m.ts)?new ht("invalid input"):null)||(d.isValid?null:Ca(d));this.ts=$r(m.ts)?Oe.now():m.ts;let D=null,j=null;if(!_)if(m.old&&m.old.ts===this.ts&&m.old.zone.equals(d))[D,j]=[m.old.c,m.old.o];else{const be=Gi(m.o)&&!m.old?m.o:d.offset(this.ts);D=Ql(this.ts,be),_=Number.isNaN(D.year)?new ht("invalid input"):null,D=_?null:D,j=_?null:be}this._zone=d,this.loc=m.loc||hr.create(),this.invalid=_,this.weekData=null,this.localWeekData=null,this.c=D,this.o=j,this.isLuxonDateTime=!0}static now(){return new Lr({})}static local(){const[m,d]=Ec(arguments),[_,D,j,ne,be,Ye,yt]=d;return su({year:_,month:D,day:j,hour:ne,minute:be,second:Ye,millisecond:yt},m)}static utc(){const[m,d]=Ec(arguments),[_,D,j,ne,be,Ye,yt]=d;return m.zone=Ii.utcInstance,su({year:_,month:D,day:j,hour:ne,minute:be,second:Ye,millisecond:yt},m)}static fromJSDate(m,d={}){const _=function ea(v){return"[object Date]"===Object.prototype.toString.call(v)}(m)?m.valueOf():NaN;if(Number.isNaN(_))return Lr.invalid("invalid input");const D=oi(d.zone,Oe.defaultZone);return D.isValid?new Lr({ts:_,zone:D,loc:hr.fromObject(d)}):Lr.invalid(Ca(D))}static fromMillis(m,d={}){if(Gi(m))return m<-Ys||m>Ys?Lr.invalid("Timestamp out of range"):new Lr({ts:m,zone:oi(d.zone,Oe.defaultZone),loc:hr.fromObject(d)});throw new Ke(`fromMillis requires a numerical input, but received a ${typeof m} with value ${m}`)}static fromSeconds(m,d={}){if(Gi(m))return new Lr({ts:1e3*m,zone:oi(d.zone,Oe.defaultZone),loc:hr.fromObject(d)});throw new Ke("fromSeconds requires a numerical input")}static fromObject(m,d={}){m=m||{};const _=oi(d.zone,Oe.defaultZone);if(!_.isValid)return Lr.invalid(Ca(_));const D=hr.fromObject(d),j=Fs(m,cd),{minDaysInFirstWeek:ne,startOfWeek:be}=bi(j,D),Ye=Oe.now(),yt=$r(d.specificOffset)?_.offset(Ye):d.specificOffset,cn=!$r(j.ordinal),mn=!$r(j.year),wr=!$r(j.month)||!$r(j.day),Zn=mn||wr,_r=j.weekYear||j.weekNumber;if((Zn||cn)&&_r)throw new Be("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(wr&&cn)throw new Be("Can't mix ordinal dates with month/day");const ni=_r||j.weekday&&!Zn;let yi,uo,ls=Ql(Ye,yt);ni?(yi=Zs,uo=zo,ls=Jn(ls,ne,be)):cn?(yi=wc,uo=Zl,ls=Ir(ls)):(yi=Rs,uo=Qs);let da=!1;for(const nc of yi)$r(j[nc])?j[nc]=da?uo[nc]:ls[nc]:da=!0;const xo=ni?function si(v,m=4,d=1){const _=cs(v.weekYear),D=Wi(v.weekNumber,1,ma(v.weekYear,m,d)),j=Wi(v.weekday,1,7);return _?D?!j&&hn("weekday",v.weekday):hn("week",v.weekNumber):hn("weekYear",v.weekYear)}(j,ne,be):cn?function mr(v){const m=cs(v.year),d=Wi(v.ordinal,1,to(v.year));return m?!d&&hn("ordinal",v.ordinal):hn("year",v.year)}(j):ai(j),tu=xo||_o(j);if(tu)return Lr.invalid(tu);const tc=ni?sr(j,ne,be):cn?pr(j):j,[Ga,ha]=Bc(tc,yt,_),yl=new Lr({ts:Ga,zone:_,o:ha,loc:D});return j.weekday&&Zn&&m.weekday!==yl.weekday?Lr.invalid("mismatched weekday",`you can't specify both a weekday of ${j.weekday} and a date of ${yl.toISO()}`):yl.isValid?yl:Lr.invalid(yl.invalid)}static fromISO(m,d={}){const[_,D]=function Dl(v){return Ki(v,[Ua,$a],[yc,Gl],[Nu,ya],[ac,qa])}(m);return cc(_,D,d,"ISO 8601",m)}static fromRFC2822(m,d={}){const[_,D]=function Ro(v){return Ki(function Ba(v){return v.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(v),[ds,Bs])}(m);return cc(_,D,d,"RFC 2822",m)}static fromHTTP(m,d={}){const[_,D]=function co(v){return Ki(v,[Lo,Cl],[Za,Cl],[xl,ia])}(m);return cc(_,D,d,"HTTP",d)}static fromFormat(m,d,_={}){if($r(m)||$r(d))throw new Ke("fromFormat requires an input string and a format");const{locale:D=null,numberingSystem:j=null}=_,ne=hr.fromOpts({locale:D,numberingSystem:j,defaultToEN:!0}),[be,Ye,yt,cn]=function Os(v,m,d){const{result:_,zone:D,specificOffset:j,invalidReason:ne}=jo(v,m,d);return[_,D,j,ne]}(ne,m,d);return cn?Lr.invalid(cn):cc(be,Ye,_,`format ${d}`,m,yt)}static fromString(m,d,_={}){return Lr.fromFormat(m,d,_)}static fromSQL(m,d={}){const[_,D]=function Xl(v){return Ki(v,[bc,$a],[ll,Sl])}(m);return cc(_,D,d,"SQL",m)}static invalid(m,d=null){if(!m)throw new Ke("need to specify a reason the DateTime is invalid");const _=m instanceof ht?m:new ht(m,d);if(Oe.throwOnInvalid)throw new Ze(_);return new Lr({invalid:_})}static isDateTime(m){return m&&m.isLuxonDateTime||!1}static parseFormatForOpts(m,d={}){const _=Tl(m,hr.fromObject(d));return _?_.map(D=>D?D.val:null).join(""):null}static expandFormat(m,d={}){return Wo(fn.parseFormat(m),hr.fromObject(d)).map(D=>D.val).join("")}static resetCache(){aa=void 0,dl={}}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?cl(this).weekYear:NaN}get weekNumber(){return this.isValid?cl(this).weekNumber:NaN}get weekday(){return this.isValid?cl(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?Ml(this).weekday:NaN}get localWeekNumber(){return this.isValid?Ml(this).weekNumber:NaN}get localWeekYear(){return this.isValid?Ml(this).weekYear:NaN}get ordinal(){return this.isValid?Ir(this.c).ordinal:NaN}get monthShort(){return this.isValid?mo.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?mo.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?mo.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?mo.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,_=Es(this.c),D=this.zone.offset(_-m),j=this.zone.offset(_+m),ne=this.zone.offset(_-D*d),be=this.zone.offset(_-j*d);if(ne===be)return[this];const Ye=_-ne*d,yt=_-be*d,cn=Ql(Ye,ne),mn=Ql(yt,be);return cn.hour===mn.hour&&cn.minute===mn.minute&&cn.second===mn.second&&cn.millisecond===mn.millisecond?[ul(this,{ts:Ye}),ul(this,{ts:yt})]:[this]}get isInLeapYear(){return is(this.year)}get daysInMonth(){return zi(this.year,this.month)}get daysInYear(){return this.isValid?to(this.year):NaN}get weeksInWeekYear(){return this.isValid?ma(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?ma(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(m={}){const{locale:d,numberingSystem:_,calendar:D}=fn.create(this.loc.clone(m),m).resolvedOptions(this);return{locale:d,numberingSystem:_,outputCalendar:D}}toUTC(m=0,d={}){return this.setZone(Ii.instance(m),d)}toLocal(){return this.setZone(Oe.defaultZone)}setZone(m,{keepLocalTime:d=!1,keepCalendarTime:_=!1}={}){if((m=oi(m,Oe.defaultZone)).equals(this.zone))return this;if(m.isValid){let D=this.ts;if(d||_){const j=m.offset(this.ts),ne=this.toObject();[D]=Bc(ne,j,m)}return ul(this,{ts:D,zone:m})}return Lr.invalid(Ca(m))}reconfigure({locale:m,numberingSystem:d,outputCalendar:_}={}){return ul(this,{loc:this.loc.clone({locale:m,numberingSystem:d,outputCalendar:_})})}setLocale(m){return this.reconfigure({locale:m})}set(m){if(!this.isValid)return this;const d=Fs(m,cd),{minDaysInFirstWeek:_,startOfWeek:D}=bi(d,this.loc),j=!$r(d.weekYear)||!$r(d.weekNumber)||!$r(d.weekday),ne=!$r(d.ordinal),be=!$r(d.year),Ye=!$r(d.month)||!$r(d.day);if((be||Ye||ne)&&(d.weekYear||d.weekNumber))throw new Be("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(Ye&&ne)throw new Be("Can't mix ordinal dates with month/day");let mn;j?mn=sr({...Jn(this.c,_,D),...d},_,D):$r(d.ordinal)?(mn={...this.toObject(),...d},$r(d.day)&&(mn.day=Math.min(zi(mn.year,mn.month),mn.day))):mn=pr({...Ir(this.c),...d});const[wr,Zn]=Bc(mn,this.o,this.zone);return ul(this,{ts:wr,o:Zn})}plus(m){return this.isValid?ul(this,ld(this,Fr.fromDurationLike(m))):this}minus(m){return this.isValid?ul(this,ld(this,Fr.fromDurationLike(m).negate())):this}startOf(m,{useLocaleWeeks:d=!1}={}){if(!this.isValid)return this;const _={},D=Fr.normalizeUnit(m);switch(D){case"years":_.month=1;case"quarters":case"months":_.day=1;case"weeks":case"days":_.hour=0;case"hours":_.minute=0;case"minutes":_.second=0;case"seconds":_.millisecond=0}if("weeks"===D)if(d){const j=this.loc.getStartOfWeek(),{weekday:ne}=this;nethis.valueOf(),yt=function ro(v,m,d,_){let[D,j,ne,be]=function ja(v,m,d){const _=[["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 cn=lc(Ye,yt);return(cn-cn%7)/7}],["days",lc]],D={},j=v;let ne,be;for(const[Ye,yt]of _)d.indexOf(Ye)>=0&&(ne=Ye,D[Ye]=yt(v,m),be=j.plus(D),be>m?(D[Ye]--,(v=j.plus(D))>m&&(be=v,D[Ye]--,v=j.plus(D))):v=be);return[v,D,be,ne]}(v,m,d);const Ye=m-D,yt=d.filter(mn=>["hours","minutes","seconds","milliseconds"].indexOf(mn)>=0);0===yt.length&&(ne0?Fr.fromMillis(Ye,_).shiftTo(...yt).plus(cn):cn}(ne?this:m,ne?m:this,j,D);return ne?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,_){if(!this.isValid)return!1;const D=m.valueOf(),j=this.setZone(m.zone,{keepLocalTime:!0});return j.startOf(d,_)<=D&&D<=j.endOf(d,_)}equals(m){return this.isValid&&m.isValid&&this.valueOf()===m.valueOf()&&this.zone.equals(m.zone)&&this.loc.equals(m.loc)}toRelative(m={}){if(!this.isValid)return null;const d=m.base||Lr.fromObject({},{zone:this.zone}),_=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,_={}){const{locale:D=null,numberingSystem:j=null}=_;return jo(hr.fromOpts({locale:D,numberingSystem:j,defaultToEN:!0}),m,d)}static fromStringExplain(m,d,_={}){return Lr.fromFormatExplain(m,d,_)}static buildFormatParser(m,d={}){const{locale:_=null,numberingSystem:D=null}=d,j=hr.fromOpts({locale:_,numberingSystem:D,defaultToEN:!0});return new fs(j,m)}static fromFormatParser(m,d,_={}){if($r(m)||$r(d))throw new Ke("fromFormatParser requires an input string and a format parser");const{locale:D=null,numberingSystem:j=null}=_,ne=hr.fromOpts({locale:D,numberingSystem:j,defaultToEN:!0});if(!ne.equals(d.locale))throw new Ke(`fromFormatParser called with a locale of ${ne}, but the format parser was created for ${d.locale}`);const{result:be,zone:Ye,specificOffset:yt,invalidReason:cn}=d.explainFromTokens(m);return cn?Lr.invalid(cn):cc(be,Ye,_,`format ${d.format}`,m,yt)}static get DATE_SHORT(){return se}static get DATE_MED(){return qe}static get DATE_MED_WITH_WEEKDAY(){return Nt}static get DATE_FULL(){return tn}static get DATE_HUGE(){return pn}static get TIME_SIMPLE(){return Wn}static get TIME_WITH_SECONDS(){return Pt}static get TIME_WITH_SHORT_OFFSET(){return en}static get TIME_WITH_LONG_OFFSET(){return an}static get TIME_24_SIMPLE(){return Yn}static get TIME_24_WITH_SECONDS(){return Sn}static get TIME_24_WITH_SHORT_OFFSET(){return Xt}static get TIME_24_WITH_LONG_OFFSET(){return Mt}static get DATETIME_SHORT(){return Gt}static get DATETIME_SHORT_WITH_SECONDS(){return Ot}static get DATETIME_MED(){return Ie}static get DATETIME_MED_WITH_SECONDS(){return Me}static get DATETIME_MED_WITH_WEEKDAY(){return nt}static get DATETIME_FULL(){return W}static get DATETIME_FULL_WITH_SECONDS(){return L}static get DATETIME_HUGE(){return V}static get DATETIME_HUGE_WITH_SECONDS(){return Re}}function tl(v){if(Lr.isDateTime(v))return v;if(v&&v.valueOf&&Gi(v.valueOf()))return Lr.fromJSDate(v);if(v&&"object"==typeof v)return Lr.fromObject(v);throw new Ke(`Unknown datetime argument: ${v}, of type ${typeof v}`)}const la=new c.nKC("MAT_LUXON_DATE_ADAPTER_OPTIONS",{providedIn:"root",factory:function hl(){return{useUtc:!1,firstDayOfWeek:0,defaultOutputCalendar:"gregory"}}});let Da=(()=>{class v extends Yt.MJ{_useUTC;_firstDayOfWeek;_defaultOutputCalendar;constructor(){super();const d=(0,c.WQX)(Yt.Ju,{optional:!0}),_=(0,c.WQX)(la,{optional:!0});this._useUTC=!!_?.useUtc,this._firstDayOfWeek=_?.firstDayOfWeek||0,this._defaultOutputCalendar=_?.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 mo.months(d,{locale:this.locale,outputCalendar:this._defaultOutputCalendar})}getDateNames(){const d=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return function Lu(v,m){const d=Array(v);for(let _=0;_d.format(Lr.utc(2017,1,_+1).toJSDate()))}getDayOfWeekNames(d){const _=mo.weekdays(d,{locale:this.locale});return _.unshift(_.pop()),_}getYearName(d){return d.toFormat("yyyy",this._getOptions())}getFirstDayOfWeek(){return this._firstDayOfWeek}getNumDaysInMonth(d){return d.daysInMonth}clone(d){return Lr.fromObject(d.toObject(),this._getOptions())}createDate(d,_,D){const j=this._getOptions();if(_<0||_>11)throw Error(`Invalid month index "${_}". Month index has to be between 0 and 11.`);if(D<1)throw Error(`Invalid date "${D}". Date has to be greater than 0.`);const ne=this._useUTC?Lr.utc(d,_+1,D,j):Lr.local(d,_+1,D,j);if(!this.isValid(ne))throw Error(`Invalid date "${D}". Reason: "${ne.invalidReason}".`);return ne}today(){const d=this._getOptions();return this._useUTC?Lr.utc(d):Lr.local(d)}parse(d,_){const D=this._getOptions();if("string"==typeof d&&d.length>0){const j=Lr.fromISO(d,D);if(this.isValid(j))return j;const ne=Array.isArray(_)?_:[_];if(!_.length)throw Error("Formats array must not be empty.");for(const be of ne){const Ye=Lr.fromFormat(d,be,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,_){if(!this.isValid(d))throw Error("LuxonDateAdapter: Cannot format invalid date.");return this._useUTC?d.setLocale(this.locale).setZone("utc").toFormat(_):d.setLocale(this.locale).toFormat(_)}addCalendarYears(d,_){return d.reconfigure(this._getOptions()).plus({years:_})}addCalendarMonths(d,_){return d.reconfigure(this._getOptions()).plus({months:_})}addCalendarDays(d,_){return d.reconfigure(this._getOptions()).plus({days:_})}toIso8601(d){return d.toISO()}deserialize(d){const _=this._getOptions();let D;if(d instanceof Date&&(D=Lr.fromJSDate(d,_)),"string"==typeof d){if(!d)return null;D=Lr.fromISO(d,_)}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,_,D,j){return this.clone(d).set({hour:_,minute:D,second:j,millisecond:0})}getHours(d){return d.hour}getMinutes(d){return d.minute}getSeconds(d){return d.second}parseTime(d,_){const D=this.parse(d,_);return(!D||!this.isValid(D))&&"string"==typeof d&&this.parse(d.replace(/[^0-9:(AM|PM)]/gi,""),_)||D}addSeconds(d,_){return d.reconfigure(this._getOptions()).plus({seconds:_})}_getOptions(){return{zone:this._useUTC?"utc":void 0,locale:this.locale,outputCalendar:this._defaultOutputCalendar}}static \u0275fac=function(_){return new(_||v)};static \u0275prov=c.jDH({token:v,factory:v.\u0275fac})}return v})();var Tr=r(1204);function jc(v){return new c.wOt(3e3,!1)}function kl(v){switch(v.length){case 0:return new Tr.sf;case 1:return v[0];default:return new Tr.ui(v)}}function Il(v,m,d=new Map,_=new Map){const D=[],j=[];let ne=-1,be=null;if(m.forEach(Ye=>{const yt=Ye.get("offset"),cn=yt==ne,mn=cn&&be||new Map;Ye.forEach((wr,Zn)=>{let _r=Zn,ni=wr;if("offset"!==Zn)switch(_r=v.normalizePropertyName(_r,D),ni){case Tr.FX:ni=d.get(Zn);break;case Tr.kp:ni=_.get(Zn);break;default:ni=v.normalizeStyleValue(Zn,_r,ni,D)}mn.set(_r,ni)}),cn||j.push(mn),be=mn,ne=yt}),D.length)throw function cf(){return new c.wOt(3502,!1)}();return j}function ps(v,m,d,_){switch(m){case"start":v.onStart(()=>_(d&&dc(d,"start",v)));break;case"done":v.onDone(()=>_(d&&dc(d,"done",v)));break;case"destroy":v.onDestroy(()=>_(d&&dc(d,"destroy",v)))}}function dc(v,m,d){const j=Vc(v.element,v.triggerName,v.fromState,v.toState,m||v.phaseName,d.totalTime??v.totalTime,!!d.disabled),ne=v._data;return null!=ne&&(j._data=ne),j}function Vc(v,m,d,_,D="",j=0,ne){return{element:v,triggerName:m,fromState:d,toState:_,phaseName:D,totalTime:j,disabled:!!ne}}function Sa(v,m,d){let _=v.get(m);return _||v.set(m,_=d),_}function hf(v){const m=v.indexOf(":");return[v.substring(1,m),v.slice(m+1)]}const kp=typeof document>"u"?null:document.documentElement;function Uu(v){const m=v.parentNode||v.host||null;return m===kp?null:m}let qs=null,$s=!1;function O(v,m){for(;m;){if(m===v)return!0;m=Uu(m)}return!1}function B(v,m,d){if(d)return Array.from(v.querySelectorAll(m));const _=v.querySelector(m);return _?[_]:[]}let oe=(()=>{class v{validateStyleProperty(d){return function Ol(v){qs||(qs=function Ha(){return typeof document<"u"?document.body:null}()||{},$s=!!qs.style&&"WebkitAppearance"in qs.style);let m=!0;return qs.style&&!function dd(v){return"ebkit"==v.substring(1,6)}(v)&&(m=v in qs.style,!m&&$s&&(m="Webkit"+v.charAt(0).toUpperCase()+v.slice(1)in qs.style)),m}(d)}containsElement(d,_){return O(d,_)}getParentElement(d){return Uu(d)}query(d,_,D){return B(d,_,D)}computeStyle(d,_,D){return D||""}animate(d,_,D,j,ne,be=[],Ye){return new Tr.sf(D,j)}static \u0275fac=function(_){return new(_||v)};static \u0275prov=c.jDH({token:v,factory:v.\u0275fac})}return v})();class Ae{static NOOP=new oe}class $e{}const It=1e3,Tn="ng-enter",qt="ng-leave",Xn="ng-trigger",Kn=".ng-trigger",nr="ng-animating",kn=".ng-animating";function jn(v){if("number"==typeof v)return v;const m=v.match(/^(-?[\.\d]+)(m?s)/);return!m||m.length<2?0:Qn(parseFloat(m[1]),m[2])}function Qn(v,m){return"s"===m?v*It:v}function ir(v,m,d){return v.hasOwnProperty("duration")?v:function Vn(v,m,d){let D,j=0,ne="";if("string"==typeof v){const be=v.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===be)return m.push(jc()),{duration:0,delay:0,easing:""};D=Qn(parseFloat(be[1]),be[2]);const Ye=be[3];null!=Ye&&(j=Qn(parseFloat(Ye),be[4]));const yt=be[5];yt&&(ne=yt)}else D=v;if(!d){let be=!1,Ye=m.length;D<0&&(m.push(function N(){return new c.wOt(3100,!1)}()),be=!0),j<0&&(m.push(function K(){return new c.wOt(3101,!1)}()),be=!0),be&&m.splice(Ye,0,jc())}return{duration:D,delay:j,easing:ne}}(v,m,d)}function kr(v,m,d){m.forEach((_,D)=>{const j=Ds(D);d&&!d.has(D)&&d.set(D,v.style[j]),v.style[j]=_})}function zr(v,m){m.forEach((d,_)=>{const D=Ds(_);v.style[D]=""})}function Ur(v){return Array.isArray(v)?1==v.length?v[0]:(0,Tr.K2)(v):v}const Qi=new RegExp("{{\\s*(.+?)\\s*}}","g");function Mi(v){let m=[];if("string"==typeof v){let d;for(;d=Qi.exec(v);)m.push(d[1]);Qi.lastIndex=0}return m}function Zi(v,m,d){const _=`${v}`,D=_.replace(Qi,(j,ne)=>{let be=m[ne];return null==be&&(d.push(function X(){return new c.wOt(3003,!1)}()),be=""),be.toString()});return D==_?v:D}const Bo=/-+([a-z0-9])/g;function Ds(v){return v.replace(Bo,(...m)=>m[1].toUpperCase())}function $i(v,m,d){switch(m.type){case Tr.If.Trigger:return v.visitTrigger(m,d);case Tr.If.State:return v.visitState(m,d);case Tr.If.Transition:return v.visitTransition(m,d);case Tr.If.Sequence:return v.visitSequence(m,d);case Tr.If.Group:return v.visitGroup(m,d);case Tr.If.Animate:return v.visitAnimate(m,d);case Tr.If.Keyframes:return v.visitKeyframes(m,d);case Tr.If.Style:return v.visitStyle(m,d);case Tr.If.Reference:return v.visitReference(m,d);case Tr.If.AnimateChild:return v.visitAnimateChild(m,d);case Tr.If.AnimateRef:return v.visitAnimateRef(m,d);case Tr.If.Query:return v.visitQuery(m,d);case Tr.If.Stagger:return v.visitStagger(m,d);default:throw function he(){return new c.wOt(3004,!1)}()}}function go(v,m){return window.getComputedStyle(v)[m]}const gs=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class _s extends $e{normalizePropertyName(m,d){return Ds(m)}normalizeStyleValue(m,d,_,D){let j="";const ne=_.toString().trim();if(gs.has(d)&&0!==_&&"0"!==_)if("number"==typeof _)j="px";else{const be=_.match(/^[+-]?[\d\.]+([a-z]*)$/);be&&0==be[1].length&&D.push(function We(){return new c.wOt(3005,!1)}())}return ne+j}}const Sc="*";const ca=new Set(["true","1"]),Wa=new Set(["false","0"]);function pl(v,m){const d=ca.has(v)||Wa.has(v),_=ca.has(m)||Wa.has(m);return(D,j)=>{let ne=v==Sc||v==D,be=m==Sc||m==j;return!ne&&d&&"boolean"==typeof D&&(ne=D?ca.has(v):Wa.has(v)),!be&&_&&"boolean"==typeof j&&(be=j?ca.has(m):Wa.has(m)),ne&&be}}const ql=new RegExp("s*:selfs*,?","g");function Rl(v,m,d,_){return new ju(v).build(m,d,_)}class ju{_driver;constructor(m){this._driver=m}build(m,d,_){const D=new fd(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 _=d.queryCount=0,D=d.depCount=0;const j=[],ne=[];return"@"==m.name.charAt(0)&&d.errors.push(function Dt(){return new c.wOt(3006,!1)}()),m.definitions.forEach(be=>{if(this._resetContextStyleTimingState(d),be.type==Tr.If.State){const Ye=be,yt=Ye.name;yt.toString().split(/\s*,\s*/).forEach(cn=>{Ye.name=cn,j.push(this.visitState(Ye,d))}),Ye.name=yt}else if(be.type==Tr.If.Transition){const Ye=this.visitTransition(be,d);_+=Ye.queryCount,D+=Ye.depCount,ne.push(Ye)}else d.errors.push(function yn(){return new c.wOt(3007,!1)}())}),{type:Tr.If.Trigger,name:m.name,states:j,transitions:ne,queryCount:_,depCount:D,options:null}}visitState(m,d){const _=this.visitStyle(m.styles,d),D=m.options&&m.options.params||null;if(_.containsDynamicStyles){const j=new Set,ne=D||{};_.styles.forEach(be=>{be instanceof Map&&be.forEach(Ye=>{Mi(Ye).forEach(yt=>{ne.hasOwnProperty(yt)||j.add(yt)})})}),j.size&&d.errors.push(function on(){return new c.wOt(3008,!1)}(0,j.values()))}return{type:Tr.If.State,name:m.name,style:_,options:D?{params:D}:null}}visitTransition(m,d){d.queryCount=0,d.depCount=0;const _=$i(this,Ur(m.animation),d),D=function mc(v,m){const d=[];return"string"==typeof v?v.split(/\s*,\s*/).forEach(_=>function Wc(v,m,d){if(":"==v[0]){const Ye=function zc(v,m){switch(v){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(d,_)=>parseFloat(_)>parseFloat(d);case":decrement":return(d,_)=>parseFloat(_) *"}}(v,d);if("function"==typeof Ye)return void m.push(Ye);v=Ye}const _=v.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==_||_.length<4)return d.push(function Cc(){return new c.wOt(3015,!1)}()),m;const D=_[1],j=_[2],ne=_[3];m.push(pl(D,ne)),"<"==j[0]&&(D!=Sc||ne!=Sc)&&m.push(pl(ne,D))}(_,d,m)):d.push(v),d}(m.expr,d.errors);return{type:Tr.If.Transition,matchers:D,animation:_,queryCount:d.queryCount,depCount:d.depCount,options:du(m.options)}}visitSequence(m,d){return{type:Tr.If.Sequence,steps:m.steps.map(_=>$i(this,_,d)),options:du(m.options)}}visitGroup(m,d){const _=d.currentTime;let D=0;const j=m.steps.map(ne=>{d.currentTime=_;const be=$i(this,ne,d);return D=Math.max(D,d.currentTime),be});return d.currentTime=D,{type:Tr.If.Group,steps:j,options:du(m.options)}}visitAnimate(m,d){const _=function pd(v,m){if(v.hasOwnProperty("duration"))return v;if("number"==typeof v)return hu(ir(v,m).duration,0,"");const d=v;if(d.split(/\s+/).some(j=>"{"==j.charAt(0)&&"{"==j.charAt(1))){const j=hu(0,0,"");return j.dynamic=!0,j.strValue=d,j}const D=ir(d,m);return hu(D.duration,D.delay,D.easing)}(m.timings,d.errors);d.currentAnimateTimings=_;let D,j=m.styles?m.styles:(0,Tr.iF)({});if(j.type==Tr.If.Keyframes)D=this.visitKeyframes(j,d);else{let ne=m.styles,be=!1;if(!ne){be=!0;const yt={};_.easing&&(yt.easing=_.easing),ne=(0,Tr.iF)(yt)}d.currentTime+=_.duration+_.delay;const Ye=this.visitStyle(ne,d);Ye.isEmptyStep=be,D=Ye}return d.currentAnimateTimings=null,{type:Tr.If.Animate,timings:_,style:D,options:null}}visitStyle(m,d){const _=this._makeStyleAst(m,d);return this._validateStyleAst(_,d),_}_makeStyleAst(m,d){const _=[],D=Array.isArray(m.styles)?m.styles:[m.styles];for(let be of D)"string"==typeof be?be===Tr.kp?_.push(be):d.errors.push(new c.wOt(3002,!1)):_.push(new Map(Object.entries(be)));let j=!1,ne=null;return _.forEach(be=>{if(be instanceof Map&&(be.has("easing")&&(ne=be.get("easing"),be.delete("easing")),!j))for(let Ye of be.values())if(Ye.toString().indexOf("{{")>=0){j=!0;break}}),{type:Tr.If.Style,styles:_,easing:ne,offset:m.offset,containsDynamicStyles:j,options:null}}_validateStyleAst(m,d){const _=d.currentAnimateTimings;let D=d.currentTime,j=d.currentTime;_&&j>0&&(j-=_.duration+_.delay),m.styles.forEach(ne=>{"string"!=typeof ne&&ne.forEach((be,Ye)=>{const yt=d.collectedStyles.get(d.currentQuerySelector),cn=yt.get(Ye);let mn=!0;cn&&(j!=D&&j>=cn.startTime&&D<=cn.endTime&&(d.errors.push(function hi(){return new c.wOt(3010,!1)}()),mn=!1),j=cn.startTime),mn&&yt.set(Ye,{startTime:j,endTime:D}),d.options&&function Yi(v,m,d){const _=m.params||{},D=Mi(v);D.length&&D.forEach(j=>{_.hasOwnProperty(j)||d.push(function P(){return new c.wOt(3001,!1)}())})}(be,d.options,d.errors)})})}visitKeyframes(m,d){const _={type:Tr.If.Keyframes,styles:[],options:null};if(!d.currentAnimateTimings)return d.errors.push(function io(){return new c.wOt(3011,!1)}()),_;let j=0;const ne=[];let be=!1,Ye=!1,yt=0;const cn=m.steps.map(uo=>{const ls=this._makeStyleAst(uo,d);let da=null!=ls.offset?ls.offset:function lh(v){if("string"==typeof v)return null;let m=null;if(Array.isArray(v))v.forEach(d=>{if(d instanceof Map&&d.has("offset")){const _=d;m=parseFloat(_.get("offset")),_.delete("offset")}});else if(v instanceof Map&&v.has("offset")){const d=v;m=parseFloat(d.get("offset")),d.delete("offset")}return m}(ls.styles),xo=0;return null!=da&&(j++,xo=ls.offset=da),Ye=Ye||xo<0||xo>1,be=be||xo0&&j{const da=wr>0?ls==Zn?1:wr*ls:ne[ls],xo=da*yi;d.currentTime=_r+ni.delay+xo,ni.duration=xo,this._validateStyleAst(uo,d),uo.offset=da,_.styles.push(uo)}),_}visitReference(m,d){return{type:Tr.If.Reference,animation:$i(this,Ur(m.animation),d),options:du(m.options)}}visitAnimateChild(m,d){return d.depCount++,{type:Tr.If.AnimateChild,options:du(m.options)}}visitAnimateRef(m,d){return{type:Tr.If.AnimateRef,animation:this.visitReference(m.animation,d),options:du(m.options)}}visitQuery(m,d){const _=d.currentQuerySelector,D=m.options||{};d.queryCount++,d.currentQuery=m;const[j,ne]=function Ip(v){const m=!!v.split(/\s*,\s*/).find(d=>":self"==d);return m&&(v=v.replace(ql,"")),v=v.replace(/@\*/g,Kn).replace(/@\w+/g,d=>Kn+"-"+d.slice(1)).replace(/:animating/g,kn),[v,m]}(m.selector);d.currentQuerySelector=_.length?_+" "+j:j,Sa(d.collectedStyles,d.currentQuerySelector,new Map);const be=$i(this,Ur(m.animation),d);return d.currentQuery=null,d.currentQuerySelector=_,{type:Tr.If.Query,selector:j,limit:D.limit||0,optional:!!D.optional,includeSelf:ne,animation:be,originalSelector:m.selector,options:du(m.options)}}visitStagger(m,d){d.currentQuery||d.errors.push(function Wr(){return new c.wOt(3013,!1)}());const _="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:_,options:null}}}class fd{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 du(v){return v?(v={...v}).params&&(v.params=function Ac(v){return v?{...v}:null}(v.params)):v={},v}function hu(v,m,d){return{duration:v,delay:m,easing:d}}function md(v,m,d,_,D,j,ne=null,be=!1){return{type:1,element:v,keyframes:m,preStyleProps:d,postStyleProps:_,duration:D,delay:j,totalTime:D+j,easing:ne,subTimeline:be}}class ch{_map=new Map;get(m){return this._map.get(m)||[]}append(m,d){let _=this._map.get(m);_||this._map.set(m,_=[]),_.push(...d)}has(m){return this._map.has(m)}clear(){this._map.clear()}}const fu=new RegExp(":enter","g"),gd=new RegExp(":leave","g");function Kc(v,m,d,_,D,j=new Map,ne=new Map,be,Ye,yt=[]){return(new dh).buildKeyframes(v,m,d,_,D,j,ne,be,Ye,yt)}class dh{buildKeyframes(m,d,_,D,j,ne,be,Ye,yt,cn=[]){yt=yt||new ch;const mn=new _d(m,d,yt,D,j,cn,[]);mn.options=Ye;const wr=Ye.delay?jn(Ye.delay):0;mn.currentTimeline.delayNextStep(wr),mn.currentTimeline.setStyles([ne],null,mn.errors,Ye),$i(this,_,mn);const Zn=mn.timelines.filter(_r=>_r.containsAnimation());if(Zn.length&&be.size){let _r;for(let ni=Zn.length-1;ni>=0;ni--){const yi=Zn[ni];if(yi.element===d){_r=yi;break}}_r&&!_r.allowOnlyTimelineStyles()&&_r.setStyles([be],null,mn.errors,Ye)}return Zn.length?Zn.map(_r=>_r.buildKeyframes()):[md(d,[],[],[],0,wr,"",!1)]}visitTrigger(m,d){}visitState(m,d){}visitTransition(m,d){}visitAnimateChild(m,d){const _=d.subInstructions.get(d.element);if(_){const D=d.createSubContext(m.options),j=d.currentTimeline.currentTime,ne=this._visitSubInstructions(_,D,D.options);j!=ne&&d.transformIntoNewTimeline(ne)}d.previousNode=m}visitAnimateRef(m,d){const _=d.createSubContext(m.options);_.transformIntoNewTimeline(),this._applyAnimationRefDelays([m.options,m.animation.options],d,_),this.visitReference(m.animation,_),d.transformIntoNewTimeline(_.currentTimeline.currentTime),d.previousNode=m}_applyAnimationRefDelays(m,d,_){for(const D of m){const j=D?.delay;if(j){const ne="number"==typeof j?j:jn(Zi(j,D?.params??{},d.errors));_.delayNextStep(ne)}}}_visitSubInstructions(m,d,_){let j=d.currentTimeline.currentTime;const ne=null!=_.duration?jn(_.duration):null,be=null!=_.delay?jn(_.delay):null;return 0!==ne&&m.forEach(Ye=>{const yt=d.appendInstructionToTimeline(Ye,ne,be);j=Math.max(j,yt.duration+yt.delay)}),j}visitReference(m,d){d.updateOptions(m.options,!0),$i(this,m.animation,d),d.previousNode=m}visitSequence(m,d){const _=d.subContextCount;let D=d;const j=m.options;if(j&&(j.params||j.delay)&&(D=d.createSubContext(j),D.transformIntoNewTimeline(),null!=j.delay)){D.previousNode.type==Tr.If.Style&&(D.currentTimeline.snapshotCurrentStyles(),D.previousNode=pu);const ne=jn(j.delay);D.delayNextStep(ne)}m.steps.length&&(m.steps.forEach(ne=>$i(this,ne,D)),D.currentTimeline.applyStylesToKeyframe(),D.subContextCount>_&&D.transformIntoNewTimeline()),d.previousNode=m}visitGroup(m,d){const _=[];let D=d.currentTimeline.currentTime;const j=m.options&&m.options.delay?jn(m.options.delay):0;m.steps.forEach(ne=>{const be=d.createSubContext(m.options);j&&be.delayNextStep(j),$i(this,ne,be),D=Math.max(D,be.currentTimeline.currentTime),_.push(be.currentTimeline)}),_.forEach(ne=>d.currentTimeline.mergeTimelineCollectedStyles(ne)),d.transformIntoNewTimeline(D),d.previousNode=m}_visitTiming(m,d){if(m.dynamic){const _=m.strValue;return ir(d.params?Zi(_,d.params,d.errors):_,d.errors)}return{duration:m.duration,delay:m.delay,easing:m.easing}}visitAnimate(m,d){const _=d.currentAnimateTimings=this._visitTiming(m.timings,d),D=d.currentTimeline;_.delay&&(d.incrementTime(_.delay),D.snapshotCurrentStyles());const j=m.style;j.type==Tr.If.Keyframes?this.visitKeyframes(j,d):(d.incrementTime(_.duration),this.visitStyle(j,d),D.applyStylesToKeyframe()),d.currentAnimateTimings=null,d.previousNode=m}visitStyle(m,d){const _=d.currentTimeline,D=d.currentAnimateTimings;!D&&_.hasCurrentStyleProperties()&&_.forwardFrame();const j=D&&D.easing||m.easing;m.isEmptyStep?_.applyEmptyStep(j):_.setStyles(m.styles,j,d.errors,d.options),d.previousNode=m}visitKeyframes(m,d){const _=d.currentAnimateTimings,D=d.currentTimeline.duration,j=_.duration,be=d.createSubContext().currentTimeline;be.easing=_.easing,m.styles.forEach(Ye=>{be.forwardTime((Ye.offset||0)*j),be.setStyles(Ye.styles,Ye.easing,d.errors,d.options),be.applyStylesToKeyframe()}),d.currentTimeline.mergeTimelineCollectedStyles(be),d.transformIntoNewTimeline(D+j),d.previousNode=m}visitQuery(m,d){const _=d.currentTimeline.currentTime,D=m.options||{},j=D.delay?jn(D.delay):0;j&&(d.previousNode.type===Tr.If.Style||0==_&&d.currentTimeline.hasCurrentStyleProperties())&&(d.currentTimeline.snapshotCurrentStyles(),d.previousNode=pu);let ne=_;const be=d.invokeQuery(m.selector,m.originalSelector,m.limit,m.includeSelf,!!D.optional,d.errors);d.currentQueryTotal=be.length;let Ye=null;be.forEach((yt,cn)=>{d.currentQueryIndex=cn;const mn=d.createSubContext(m.options,yt);j&&mn.delayNextStep(j),yt===d.element&&(Ye=mn.currentTimeline),$i(this,m.animation,mn),mn.currentTimeline.applyStylesToKeyframe(),ne=Math.max(ne,mn.currentTimeline.currentTime)}),d.currentQueryIndex=0,d.currentQueryTotal=0,d.transformIntoNewTimeline(ne),Ye&&(d.currentTimeline.mergeTimelineCollectedStyles(Ye),d.currentTimeline.snapshotCurrentStyles()),d.previousNode=m}visitStagger(m,d){const _=d.parentContext,D=d.currentTimeline,j=m.timings,ne=Math.abs(j.duration),be=ne*(d.currentQueryTotal-1);let Ye=ne*d.currentQueryIndex;switch(j.duration<0?"reverse":j.easing){case"reverse":Ye=be-Ye;break;case"full":Ye=_.currentStaggerTime}const cn=d.currentTimeline;Ye&&cn.delayNextStep(Ye);const mn=cn.currentTime;$i(this,m.animation,d),d.previousNode=m,_.currentStaggerTime=D.currentTime-mn+(D.startTime-_.currentTimeline.startTime)}}const pu={};class _d{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=pu;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(m,d,_,D,j,ne,be,Ye){this._driver=m,this.element=d,this.subInstructions=_,this._enterClassName=D,this._leaveClassName=j,this.errors=ne,this.timelines=be,this.currentTimeline=Ye||new Tc(this._driver,d,0),be.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(m,d){if(!m)return;const _=m;let D=this.options;null!=_.duration&&(D.duration=jn(_.duration)),null!=_.delay&&(D.delay=jn(_.delay));const j=_.params;if(j){let ne=D.params;ne||(ne=this.options.params={}),Object.keys(j).forEach(be=>{(!d||!ne.hasOwnProperty(be))&&(ne[be]=Zi(j[be],ne,this.errors))})}}_copyOptions(){const m={};if(this.options){const d=this.options.params;if(d){const _=m.params={};Object.keys(d).forEach(D=>{_[D]=d[D]})}}return m}createSubContext(m=null,d,_){const D=d||this.element,j=new _d(this._driver,D,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(D,_||0));return j.previousNode=this.previousNode,j.currentAnimateTimings=this.currentAnimateTimings,j.options=this._copyOptions(),j.updateOptions(m),j.currentQueryIndex=this.currentQueryIndex,j.currentQueryTotal=this.currentQueryTotal,j.parentContext=this,this.subContextCount++,j}transformIntoNewTimeline(m){return this.previousNode=pu,this.currentTimeline=this.currentTimeline.fork(this.element,m),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(m,d,_){const D={duration:d??m.duration,delay:this.currentTimeline.currentTime+(_??0)+m.delay,easing:""},j=new pf(this._driver,m.element,m.keyframes,m.preStyleProps,m.postStyleProps,D,m.stretchStartingKeyframe);return this.timelines.push(j),D}incrementTime(m){this.currentTimeline.forwardTime(this.currentTimeline.duration+m)}delayNextStep(m){m>0&&this.currentTimeline.delayNextStep(m)}invokeQuery(m,d,_,D,j,ne){let be=[];if(D&&be.push(this.element),m.length>0){m=(m=m.replace(fu,"."+this._enterClassName)).replace(gd,"."+this._leaveClassName);let yt=this._driver.query(this.element,m,1!=_);0!==_&&(yt=_<0?yt.slice(yt.length+_,yt.length):yt.slice(0,_)),be.push(...yt)}return!j&&0==be.length&&ne.push(function fl(){return new c.wOt(3014,!1)}()),be}}class Tc{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(m,d,_,D){this._driver=m,this.element=d,this.startTime=_,this._elementTimelineStylesLookup=D,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(d),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(d,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(m){const d=1===this._keyframes.size&&this._pendingStyles.size;this.duration||d?(this.forwardTime(this.currentTime+m),d&&this.snapshotCurrentStyles()):this.startTime+=m}fork(m,d){return this.applyStylesToKeyframe(),new Tc(this._driver,m,d||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(m){this.applyStylesToKeyframe(),this.duration=m,this._loadKeyframe()}_updateStyle(m,d){this._localTimelineStyles.set(m,d),this._globalTimelineStyles.set(m,d),this._styleSummary.set(m,{time:this.currentTime,value:d})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(m){m&&this._previousKeyframe.set("easing",m);for(let[d,_]of this._globalTimelineStyles)this._backFill.set(d,_||Tr.kp),this._currentKeyframe.set(d,Tr.kp);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(m,d,_,D){d&&this._previousKeyframe.set("easing",d);const j=D&&D.params||{},ne=function fh(v,m){const d=new Map;let _;return v.forEach(D=>{if("*"===D){_??=m.keys();for(let j of _)d.set(j,Tr.kp)}else for(let[j,ne]of D)d.set(j,ne)}),d}(m,this._globalTimelineStyles);for(let[be,Ye]of ne){const yt=Zi(Ye,j,_);this._pendingStyles.set(be,yt),this._localTimelineStyles.has(be)||this._backFill.set(be,this._globalTimelineStyles.get(be)??Tr.kp),this._updateStyle(be,yt)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((m,d)=>{this._currentKeyframe.set(d,m)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((m,d)=>{this._currentKeyframe.has(d)||this._currentKeyframe.set(d,m)}))}snapshotCurrentStyles(){for(let[m,d]of this._localTimelineStyles)this._pendingStyles.set(m,d),this._updateStyle(m,d)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const m=[];for(let d in this._currentKeyframe)m.push(d);return m}mergeTimelineCollectedStyles(m){m._styleSummary.forEach((d,_)=>{const D=this._styleSummary.get(_);(!D||d.time>D.time)&&this._updateStyle(_,d.value)})}buildKeyframes(){this.applyStylesToKeyframe();const m=new Set,d=new Set,_=1===this._keyframes.size&&0===this.duration;let D=[];this._keyframes.forEach((be,Ye)=>{const yt=new Map([...this._backFill,...be]);yt.forEach((cn,mn)=>{cn===Tr.FX?m.add(mn):cn===Tr.kp&&d.add(mn)}),_||yt.set("offset",Ye/this.duration),D.push(yt)});const j=[...m.values()],ne=[...d.values()];if(_){const be=D[0],Ye=new Map(be);be.set("offset",0),Ye.set("offset",1),D=[be,Ye]}return md(this.element,D,j,ne,this.duration,this.startTime,this.easing,!1)}}class pf extends Tc{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(m,d,_,D,j,ne,be=!1){super(m,d,ne.delay),this.keyframes=_,this.preStyleProps=D,this.postStyleProps=j,this._stretchStartingKeyframe=be,this.timings={duration:ne.duration,delay:ne.delay,easing:ne.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let m=this.keyframes,{delay:d,duration:_,easing:D}=this.timings;if(this._stretchStartingKeyframe&&d){const j=[],ne=_+d,be=d/ne,Ye=new Map(m[0]);Ye.set("offset",0),j.push(Ye);const yt=new Map(m[0]);yt.set("offset",hh(be)),j.push(yt);const cn=m.length-1;for(let mn=1;mn<=cn;mn++){let wr=new Map(m[mn]);const Zn=wr.get("offset");wr.set("offset",hh((d+Zn*_)/ne)),j.push(wr)}_=ne,d=0,D="",m=j}return md(this.element,m,this.preStyleProps,this.postStyleProps,_,d,D,!0)}}function hh(v,m=3){const d=Math.pow(10,m-1);return Math.round(v*d)/d}function mu(v,m,d,_,D,j,ne,be,Ye,yt,cn,mn,wr){return{type:0,element:v,triggerName:m,isRemovalTransition:D,fromState:d,fromStyles:j,toState:_,toStyles:ne,timelines:be,queriedElements:Ye,preStyleProps:yt,postStyleProps:cn,totalTime:mn,errors:wr}}const Ll={};class mf{_triggerName;ast;_stateStyles;constructor(m,d,_){this._triggerName=m,this.ast=d,this._stateStyles=_}match(m,d,_,D){return function gf(v,m,d,_,D){return v.some(j=>j(m,d,_,D))}(this.ast.matchers,m,d,_,D)}buildStyles(m,d,_){let D=this._stateStyles.get("*");return void 0!==m&&(D=this._stateStyles.get(m?.toString())||D),D?D.buildStyles(d,_):new Map}build(m,d,_,D,j,ne,be,Ye,yt,cn){const mn=[],wr=this.ast.options&&this.ast.options.params||Ll,_r=this.buildStyles(_,be&&be.params||Ll,mn),ni=Ye&&Ye.params||Ll,yi=this.buildStyles(D,ni,mn),uo=new Set,ls=new Map,da=new Map,xo="void"===D,tu={params:Gc(ni,wr),delay:this.ast.options?.delay},tc=cn?[]:Kc(m,d,this.ast.animation,j,ne,_r,yi,tu,yt,mn);let Ga=0;return tc.forEach(ha=>{Ga=Math.max(ha.duration+ha.delay,Ga)}),mn.length?mu(d,this._triggerName,_,D,xo,_r,yi,[],[],ls,da,Ga,mn):(tc.forEach(ha=>{const yl=ha.element,nc=Sa(ls,yl,new Set);ha.preStyleProps.forEach(sd=>nc.add(sd));const rp=Sa(da,yl,new Set);ha.postStyleProps.forEach(sd=>rp.add(sd)),yl!==d&&uo.add(yl)}),mu(d,this._triggerName,_,D,xo,_r,yi,tc,[...uo.values()],ls,da,Ga))}}function Gc(v,m){const d={...m};return Object.entries(v).forEach(([_,D])=>{null!=D&&(d[_]=D)}),d}class gu{styles;defaultParams;normalizer;constructor(m,d,_){this.styles=m,this.defaultParams=d,this.normalizer=_}buildStyles(m,d){const _=new Map,D=Gc(m,this.defaultParams);return this.styles.styles.forEach(j=>{"string"!=typeof j&&j.forEach((ne,be)=>{ne&&(ne=Zi(ne,D,d));const Ye=this.normalizer.normalizePropertyName(be,d);ne=this.normalizer.normalizeStyleValue(be,Ye,ne,d),_.set(be,ne)})}),_}}class Op{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(m,d,_){this.name=m,this.ast=d,this._normalizer=_,d.states.forEach(D=>{this.states.set(D.name,new gu(D.style,D.options&&D.options.params||{},_))}),_u(this.states,"true","1"),_u(this.states,"false","0"),d.transitions.forEach(D=>{this.transitionFactories.push(new mf(m,D,this.states))}),this.fallbackTransition=function _f(v,m){return new mf(v,{type:Tr.If.Transition,animation:{type:Tr.If.Sequence,steps:[],options:null},matchers:[(ne,be)=>!0],options:null,queryCount:0,depCount:0},m)}(m,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(m,d,_,D){return this.transitionFactories.find(ne=>ne.match(m,d,_,D))||null}matchStyles(m,d,_){return this.fallbackTransition.buildStyles(m,d,_)}}function _u(v,m,d){v.has(m)?v.has(d)||v.set(d,v.get(m)):v.has(d)&&v.set(m,v.get(d))}const Rp=new ch;class mh{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(m,d,_){this.bodyNode=m,this._driver=d,this._normalizer=_}register(m,d){const _=[],j=Rl(this._driver,d,_,[]);if(_.length)throw function ah(){return new c.wOt(3503,!1)}();this._animations.set(m,j)}_buildPlayer(m,d,_){const D=m.element,j=Il(this._normalizer,m.keyframes,d,_);return this._driver.animate(D,j,m.duration,m.delay,m.easing,[],!0)}create(m,d,_={}){const D=[],j=this._animations.get(m);let ne;const be=new Map;if(j?(ne=Kc(this._driver,d,j,Tn,qt,new Map,new Map,_,Rp,D),ne.forEach(cn=>{const mn=Sa(be,cn.element,new Map);cn.postStyleProps.forEach(wr=>mn.set(wr,null))})):(D.push(function Dc(){return new c.wOt(3300,!1)}()),ne=[]),D.length)throw function uf(){return new c.wOt(3504,!1)}();be.forEach((cn,mn)=>{cn.forEach((wr,Zn)=>{cn.set(Zn,this._driver.computeStyle(mn,Zn,Tr.kp))})});const yt=kl(ne.map(cn=>{const mn=be.get(cn.element);return this._buildPlayer(cn,new Map,mn)}));return this._playersById.set(m,yt),yt.onDestroy(()=>this.destroy(m)),this.players.push(yt),yt}destroy(m){const d=this._getPlayer(m);d.destroy(),this._playersById.delete(m);const _=this.players.indexOf(d);_>=0&&this.players.splice(_,1)}_getPlayer(m){const d=this._playersById.get(m);if(!d)throw function df(){return new c.wOt(3301,!1)}();return d}listen(m,d,_,D){const j=Vc(d,"","","");return ps(this._getPlayer(m),_,j,D),()=>{}}command(m,d,_,D){if("register"==_)return void this.register(m,D[0]);if("create"==_)return void this.create(m,d,D[0]||{});const j=this._getPlayer(m);switch(_){case"play":j.play();break;case"pause":j.pause();break;case"reset":j.reset();break;case"restart":j.restart();break;case"finish":j.finish();break;case"init":j.init();break;case"setPosition":j.setPosition(parseFloat(D[0]));break;case"destroy":this.destroy(m)}}}const Vu="ng-animate-queued",vd="ng-animate-disabled",Np=[],Wu={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Lp={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ml="__ng_removed";class _h{namespaceId;value;options;get params(){return this.options.params}constructor(m,d=""){this.namespaceId=d;const _=m&&m.hasOwnProperty("value");if(this.value=function Ts(v){return v??null}(_?m.value:m),_){const{value:j,...ne}=m;this.options=ne}else this.options={};this.options.params||(this.options.params={})}absorbOptions(m){const d=m.params;if(d){const _=this.options.params;Object.keys(d).forEach(D=>{null==_[D]&&(_[D]=d[D])})}}}const vu="void",vh=new _h(vu);class Pp{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(m,d,_){this.id=m,this.hostElement=d,this._engine=_,this._hostClassName="ng-tns-"+m,rl(d,this._hostClassName)}listen(m,d,_,D){if(!this._triggers.has(d))throw function lu(){return new c.wOt(3302,!1)}();if(null==_||0==_.length)throw function Fu(){return new c.wOt(3303,!1)}();if(!function Bp(v){return"start"==v||"done"==v}(_))throw function ud(){return new c.wOt(3400,!1)}();const j=Sa(this._elementListeners,m,[]),ne={name:d,phase:_,callback:D};j.push(ne);const be=Sa(this._engine.statesByElement,m,new Map);return be.has(d)||(rl(m,Xn),rl(m,Xn+"-"+d),be.set(d,vh)),()=>{this._engine.afterFlush(()=>{const Ye=j.indexOf(ne);Ye>=0&&j.splice(Ye,1),this._triggers.has(d)||be.delete(d)})}}register(m,d){return!this._triggers.has(m)&&(this._triggers.set(m,d),!0)}_getTrigger(m){const d=this._triggers.get(m);if(!d)throw function xn(){return new c.wOt(3401,!1)}();return d}trigger(m,d,_,D=!0){const j=this._getTrigger(d),ne=new yd(this.id,d,m);let be=this._engine.statesByElement.get(m);be||(rl(m,Xn),rl(m,Xn+"-"+d),this._engine.statesByElement.set(m,be=new Map));let Ye=be.get(d);const yt=new _h(_,this.id);if(!(_&&_.hasOwnProperty("value"))&&Ye&&yt.absorbOptions(Ye.options),be.set(d,yt),Ye||(Ye=vh),yt.value!==vu&&Ye.value===yt.value){if(!function Ef(v,m){const d=Object.keys(v),_=Object.keys(m);if(d.length!=_.length)return!1;for(let D=0;D{zr(m,yi),kr(m,uo)})}return}const wr=Sa(this._engine.playersByElement,m,[]);wr.forEach(ni=>{ni.namespaceId==this.id&&ni.triggerName==d&&ni.queued&&ni.destroy()});let Zn=j.matchTransition(Ye.value,yt.value,m,yt.params),_r=!1;if(!Zn){if(!D)return;Zn=j.fallbackTransition,_r=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:m,triggerName:d,transition:Zn,fromState:Ye,toState:yt,player:ne,isFallbackTransition:_r}),_r||(rl(m,Vu),ne.onStart(()=>{Xc(m,Vu)})),ne.onDone(()=>{let ni=this.players.indexOf(ne);ni>=0&&this.players.splice(ni,1);const yi=this._engine.playersByElement.get(m);if(yi){let uo=yi.indexOf(ne);uo>=0&&yi.splice(uo,1)}}),this.players.push(ne),wr.push(ne),ne}deregister(m){this._triggers.delete(m),this._engine.statesByElement.forEach(d=>d.delete(m)),this._elementListeners.forEach((d,_)=>{this._elementListeners.set(_,d.filter(D=>D.name!=m))})}clearElementCache(m){this._engine.statesByElement.delete(m),this._elementListeners.delete(m);const d=this._engine.playersByElement.get(m);d&&(d.forEach(_=>_.destroy()),this._engine.playersByElement.delete(m))}_signalRemovalForInnerTriggers(m,d){const _=this._engine.driver.query(m,Kn,!0);_.forEach(D=>{if(D[ml])return;const j=this._engine.fetchNamespacesByElement(D);j.size?j.forEach(ne=>ne.triggerLeaveAnimation(D,d,!1,!0)):this.clearElementCache(D)}),this._engine.afterFlushAnimationsDone(()=>_.forEach(D=>this.clearElementCache(D)))}triggerLeaveAnimation(m,d,_,D){const j=this._engine.statesByElement.get(m),ne=new Map;if(j){const be=[];if(j.forEach((Ye,yt)=>{if(ne.set(yt,Ye.value),this._triggers.has(yt)){const cn=this.trigger(m,yt,vu,D);cn&&be.push(cn)}}),be.length)return this._engine.markElementAsRemoved(this.id,m,!0,d,ne),_&&kl(be).onDone(()=>this._engine.processLeaveNode(m)),!0}return!1}prepareLeaveAnimationListeners(m){const d=this._elementListeners.get(m),_=this._engine.statesByElement.get(m);if(d&&_){const D=new Set;d.forEach(j=>{const ne=j.name;if(D.has(ne))return;D.add(ne);const Ye=this._triggers.get(ne).fallbackTransition,yt=_.get(ne)||vh,cn=new _h(vu),mn=new yd(this.id,ne,m);this._engine.totalQueuedPlayers++,this._queue.push({element:m,triggerName:ne,transition:Ye,fromState:yt,toState:cn,player:mn,isFallbackTransition:!0})})}}removeNode(m,d){const _=this._engine;if(m.childElementCount&&this._signalRemovalForInnerTriggers(m,d),this.triggerLeaveAnimation(m,d,!0))return;let D=!1;if(_.totalAnimations){const j=_.players.length?_.playersByQueriedElement.get(m):[];if(j&&j.length)D=!0;else{let ne=m;for(;ne=ne.parentNode;)if(_.statesByElement.get(ne)){D=!0;break}}}if(this.prepareLeaveAnimationListeners(m),D)_.markElementAsRemoved(this.id,m,!1,d);else{const j=m[ml];(!j||j===Wu)&&(_.afterFlush(()=>this.clearElementCache(m)),_.destroyInnerAnimations(m),_._onRemovalComplete(m,d))}}insertNode(m,d){rl(m,this._hostClassName)}drainQueuedTransitions(m){const d=[];return this._queue.forEach(_=>{const D=_.player;if(D.destroyed)return;const j=_.element,ne=this._elementListeners.get(j);ne&&ne.forEach(be=>{if(be.name==_.triggerName){const Ye=Vc(j,_.triggerName,_.fromState.value,_.toState.value);Ye._data=m,ps(_.player,be.phase,Ye,be.callback)}}),D.markedForDestroy?this._engine.afterFlush(()=>{D.destroy()}):d.push(_)}),this._queue=[],d.sort((_,D)=>{const j=_.transition.ast.depCount,ne=D.transition.ast.depCount;return 0==j||0==ne?j-ne:this._engine.driver.containsElement(_.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,_){this.bodyNode=m,this.driver=d,this._normalizer=_}get queuedPlayers(){const m=[];return this._namespaceList.forEach(d=>{d.players.forEach(_=>{_.queued&&m.push(_)})}),m}createNamespace(m,d){const _=new Pp(m,d,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,d)?this._balanceNamespaceList(_,d):(this.newHostElements.set(d,_),this.collectEnterElement(d)),this._namespaceLookup[m]=_}_balanceNamespaceList(m,d){const _=this._namespaceList,D=this.namespacesByHostElement;if(_.length-1>=0){let ne=!1,be=this.driver.getParentElement(d);for(;be;){const Ye=D.get(be);if(Ye){const yt=_.indexOf(Ye);_.splice(yt+1,0,m),ne=!0;break}be=this.driver.getParentElement(be)}ne||_.unshift(m)}else _.push(m);return D.set(d,m),m}register(m,d){let _=this._namespaceLookup[m];return _||(_=this.createNamespace(m,d)),_}registerTrigger(m,d,_){let D=this._namespaceLookup[m];D&&D.register(d,_)&&this.totalAnimations++}destroy(m,d){m&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const _=this._fetchNamespace(m);this.namespacesByHostElement.delete(_.hostElement);const D=this._namespaceList.indexOf(_);D>=0&&this._namespaceList.splice(D,1),_.destroy(d),delete this._namespaceLookup[m]}))}_fetchNamespace(m){return this._namespaceLookup[m]}fetchNamespacesByElement(m){const d=new Set,_=this.statesByElement.get(m);if(_)for(let D of _.values())if(D.namespaceId){const j=this._fetchNamespace(D.namespaceId);j&&d.add(j)}return d}trigger(m,d,_,D){if(bd(d)){const j=this._fetchNamespace(m);if(j)return j.trigger(d,_,D),!0}return!1}insertNode(m,d,_,D){if(!bd(d))return;const j=d[ml];if(j&&j.setForRemoval){j.setForRemoval=!1,j.setForMove=!0;const ne=this.collectedLeaveElements.indexOf(d);ne>=0&&this.collectedLeaveElements.splice(ne,1)}if(m){const ne=this._fetchNamespace(m);ne&&ne.insertNode(d,_)}D&&this.collectEnterElement(d)}collectEnterElement(m){this.collectedEnterElements.push(m)}markElementAsDisabled(m,d){d?this.disabledNodes.has(m)||(this.disabledNodes.add(m),rl(m,vd)):this.disabledNodes.has(m)&&(this.disabledNodes.delete(m),Xc(m,vd))}removeNode(m,d,_){if(bd(d)){const D=m?this._fetchNamespace(m):null;D?D.removeNode(d,_):this.markElementAsRemoved(m,d,!1,_);const j=this.namespacesByHostElement.get(d);j&&j.id!==m&&j.removeNode(d,_)}else this._onRemovalComplete(d,_)}markElementAsRemoved(m,d,_,D,j){this.collectedLeaveElements.push(d),d[ml]={namespaceId:m,setForRemoval:D,hasAnimation:_,removedBeforeQueried:!1,previousTriggersValues:j}}listen(m,d,_,D,j){return bd(d)?this._fetchNamespace(m).listen(d,_,D,j):()=>{}}_buildInstruction(m,d,_,D,j){return m.transition.build(this.driver,m.element,m.fromState.value,m.toState.value,_,D,m.fromState.options,m.toState.options,d,j)}destroyInnerAnimations(m){let d=this.driver.query(m,Kn,!0);d.forEach(_=>this.destroyActiveAnimationsForElement(_)),0!=this.playersByQueriedElement.size&&(d=this.driver.query(m,kn,!0),d.forEach(_=>this.finishActiveQueriedAnimationOnElement(_)))}destroyActiveAnimationsForElement(m){const d=this.playersByElement.get(m);d&&d.forEach(_=>{_.queued?_.markedForDestroy=!0:_.destroy()})}finishActiveQueriedAnimationOnElement(m){const d=this.playersByQueriedElement.get(m);d&&d.forEach(_=>_.finish())}whenRenderingDone(){return new Promise(m=>{if(this.players.length)return kl(this.players).onDone(()=>m());m()})}processLeaveNode(m){const d=m[ml];if(d&&d.setForRemoval){if(m[ml]=Wu,d.namespaceId){this.destroyInnerAnimations(m);const _=this._fetchNamespace(d.namespaceId);_&&_.clearElementCache(m)}this._onRemovalComplete(m,d.setForRemoval)}m.classList?.contains(vd)&&this.markElementAsDisabled(m,!1),this.driver.query(m,".ng-animate-disabled",!0).forEach(_=>{this.markElementAsDisabled(_,!1)})}flush(m=-1){let d=[];if(this.newHostElements.size&&(this.newHostElements.forEach((_,D)=>this._balanceNamespaceList(_,D)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let _=0;__()),this._flushFns=[],this._whenQuietFns.length){const _=this._whenQuietFns;this._whenQuietFns=[],d.length?kl(d).onDone(()=>{_.forEach(D=>D())}):_.forEach(D=>D())}}reportError(m){throw function gi(){return new c.wOt(3402,!1)}()}_flushAnimations(m,d){const _=new ch,D=[],j=new Map,ne=[],be=new Map,Ye=new Map,yt=new Map,cn=new Set;this.disabledNodes.forEach(Jr=>{cn.add(Jr);const mi=this.driver.query(Jr,".ng-animate-queued",!0);for(let wi=0;wi{const wi=Tn+ni++;_r.set(mi,wi),Jr.forEach(yo=>rl(yo,wi))});const yi=[],uo=new Set,ls=new Set;for(let Jr=0;Jruo.add(yo)):ls.add(mi))}const da=new Map,xo=gc(wr,Array.from(uo));xo.forEach((Jr,mi)=>{const wi=qt+ni++;da.set(mi,wi),Jr.forEach(yo=>rl(yo,wi))}),m.push(()=>{Zn.forEach((Jr,mi)=>{const wi=_r.get(mi);Jr.forEach(yo=>Xc(yo,wi))}),xo.forEach((Jr,mi)=>{const wi=da.get(mi);Jr.forEach(yo=>Xc(yo,wi))}),yi.forEach(Jr=>{this.processLeaveNode(Jr)})});const tu=[],tc=[];for(let Jr=this._namespaceList.length-1;Jr>=0;Jr--)this._namespaceList[Jr].drainQueuedTransitions(d).forEach(wi=>{const yo=wi.player,fa=wi.element;if(tu.push(yo),this.collectedEnterElements.length){const Ra=fa[ml];if(Ra&&Ra.setForMove){if(Ra.previousTriggersValues&&Ra.previousTriggersValues.has(wi.triggerName)){const ku=Ra.previousTriggersValues.get(wi.triggerName),sl=this.statesByElement.get(wi.element);if(sl&&sl.has(wi.triggerName)){const Zd=sl.get(wi.triggerName);Zd.value=ku,sl.set(wi.triggerName,Zd)}}return void yo.destroy()}}const rc=!mn||!this.driver.containsElement(mn,fa),Vl=da.get(fa),Oa=_r.get(fa),ts=this._buildInstruction(wi,_,Oa,Vl,rc);if(ts.errors&&ts.errors.length)return void tc.push(ts);if(rc)return yo.onStart(()=>zr(fa,ts.fromStyles)),yo.onDestroy(()=>kr(fa,ts.toStyles)),void D.push(yo);if(wi.isFallbackTransition)return yo.onStart(()=>zr(fa,ts.fromStyles)),yo.onDestroy(()=>kr(fa,ts.toStyles)),void D.push(yo);const X_=[];ts.timelines.forEach(Ra=>{Ra.stretchStartingKeyframe=!0,this.disabledNodes.has(Ra.element)||X_.push(Ra)}),ts.timelines=X_,_.append(fa,ts.timelines),ne.push({instruction:ts,player:yo,element:fa}),ts.queriedElements.forEach(Ra=>Sa(be,Ra,[]).push(yo)),ts.preStyleProps.forEach((Ra,ku)=>{if(Ra.size){let sl=Ye.get(ku);sl||Ye.set(ku,sl=new Set),Ra.forEach((Zd,Y_)=>sl.add(Y_))}}),ts.postStyleProps.forEach((Ra,ku)=>{let sl=yt.get(ku);sl||yt.set(ku,sl=new Set),Ra.forEach((Zd,Y_)=>sl.add(Y_))})});if(tc.length){const Jr=[];tc.forEach(mi=>{Jr.push(function cu(){return new c.wOt(3505,!1)}())}),tu.forEach(mi=>mi.destroy()),this.reportError(Jr)}const Ga=new Map,ha=new Map;ne.forEach(Jr=>{const mi=Jr.element;_.has(mi)&&(ha.set(mi,mi),this._beforeAnimationBuild(Jr.player.namespaceId,Jr.instruction,Ga))}),D.forEach(Jr=>{const mi=Jr.element;this._getPreviousPlayers(mi,!1,Jr.namespaceId,Jr.triggerName,null).forEach(yo=>{Sa(Ga,mi,[]).push(yo),yo.destroy()})});const yl=yi.filter(Jr=>yu(Jr,Ye,yt)),nc=new Map;yh(nc,this.driver,ls,yt,Tr.kp).forEach(Jr=>{yu(Jr,Ye,yt)&&yl.push(Jr)});const sd=new Map;Zn.forEach((Jr,mi)=>{yh(sd,this.driver,new Set(Jr),Ye,Tr.FX)}),yl.forEach(Jr=>{const mi=nc.get(Jr),wi=sd.get(Jr);nc.set(Jr,new Map([...mi?.entries()??[],...wi?.entries()??[]]))});const ip=[],K_=[],G_={};ne.forEach(Jr=>{const{element:mi,player:wi,instruction:yo}=Jr;if(_.has(mi)){if(cn.has(mi))return wi.onDestroy(()=>kr(mi,yo.toStyles)),wi.disabled=!0,wi.overrideTotalTime(yo.totalTime),void D.push(wi);let fa=G_;if(ha.size>1){let Vl=mi;const Oa=[];for(;Vl=Vl.parentNode;){const ts=ha.get(Vl);if(ts){fa=ts;break}Oa.push(Vl)}Oa.forEach(ts=>ha.set(ts,fa))}const rc=this._buildAnimation(wi.namespaceId,yo,Ga,j,sd,nc);if(wi.setRealPlayer(rc),fa===G_)ip.push(wi);else{const Vl=this.playersByElement.get(fa);Vl&&Vl.length&&(wi.parentPlayer=kl(Vl)),D.push(wi)}}else zr(mi,yo.fromStyles),wi.onDestroy(()=>kr(mi,yo.toStyles)),K_.push(wi),cn.has(mi)&&D.push(wi)}),K_.forEach(Jr=>{const mi=j.get(Jr.element);if(mi&&mi.length){const wi=kl(mi);Jr.setRealPlayer(wi)}}),D.forEach(Jr=>{Jr.parentPlayer?Jr.syncPlayerEvents(Jr.parentPlayer):Jr.destroy()});for(let Jr=0;Jr!rc.destroyed);fa.length?Pl(this,mi,fa):this.processLeaveNode(mi)}return yi.length=0,ip.forEach(Jr=>{this.players.push(Jr),Jr.onDone(()=>{Jr.destroy();const mi=this.players.indexOf(Jr);this.players.splice(mi,1)}),Jr.play()}),ip}afterFlush(m){this._flushFns.push(m)}afterFlushAnimationsDone(m){this._whenQuietFns.push(m)}_getPreviousPlayers(m,d,_,D,j){let ne=[];if(d){const be=this.playersByQueriedElement.get(m);be&&(ne=be)}else{const be=this.playersByElement.get(m);if(be){const Ye=!j||j==vu;be.forEach(yt=>{yt.queued||!Ye&&yt.triggerName!=D||ne.push(yt)})}}return(_||D)&&(ne=ne.filter(be=>!(_&&_!=be.namespaceId||D&&D!=be.triggerName))),ne}_beforeAnimationBuild(m,d,_){const j=d.element,ne=d.isRemovalTransition?void 0:m,be=d.isRemovalTransition?void 0:d.triggerName;for(const Ye of d.timelines){const yt=Ye.element,cn=yt!==j,mn=Sa(_,yt,[]);this._getPreviousPlayers(yt,cn,ne,be,d.toState).forEach(Zn=>{const _r=Zn.getRealPlayer();_r.beforeDestroy&&_r.beforeDestroy(),Zn.destroy(),mn.push(Zn)})}zr(j,d.fromStyles)}_buildAnimation(m,d,_,D,j,ne){const be=d.triggerName,Ye=d.element,yt=[],cn=new Set,mn=new Set,wr=d.timelines.map(_r=>{const ni=_r.element;cn.add(ni);const yi=ni[ml];if(yi&&yi.removedBeforeQueried)return new Tr.sf(_r.duration,_r.delay);const uo=ni!==Ye,ls=function zu(v){const m=[];return $p(v,m),m}((_.get(ni)||Np).map(Ga=>Ga.getRealPlayer())).filter(Ga=>!!Ga.element&&Ga.element===ni),da=j.get(ni),xo=ne.get(ni),tu=Il(this._normalizer,_r.keyframes,da,xo),tc=this._buildPlayer(_r,tu,ls);if(_r.subTimeline&&D&&mn.add(ni),uo){const Ga=new yd(m,be,ni);Ga.setRealPlayer(tc),yt.push(Ga)}return tc});yt.forEach(_r=>{Sa(this.playersByQueriedElement,_r.element,[]).push(_r),_r.onDone(()=>function wf(v,m,d){let _=v.get(m);if(_){if(_.length){const D=_.indexOf(d);_.splice(D,1)}0==_.length&&v.delete(m)}return _}(this.playersByQueriedElement,_r.element,_r))}),cn.forEach(_r=>rl(_r,nr));const Zn=kl(wr);return Zn.onDestroy(()=>{cn.forEach(_r=>Xc(_r,nr)),kr(Ye,d.toStyles)}),mn.forEach(_r=>{Sa(D,_r,[]).push(Zn)}),Zn}_buildPlayer(m,d,_){return d.length>0?this.driver.animate(m.element,d,m.duration,m.delay,m.easing,_):new Tr.sf(m.duration,m.delay)}}class yd{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,_){this.namespaceId=m,this.triggerName=d,this.element=_}setRealPlayer(m){this._containsRealPlayer||(this._player=m,this._queuedCallbacks.forEach((d,_)=>{d.forEach(D=>ps(m,_,void 0,D))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(m.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(m){this.totalTime=m}syncPlayerEvents(m){const d=this._player;d.triggerCallback&&m.onStart(()=>d.triggerCallback("start")),m.onDone(()=>this.finish()),m.onDestroy(()=>this.destroy())}_queueEvent(m,d){Sa(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 bd(v){return v&&1===v.nodeType}function Up(v,m){const d=v.style.display;return v.style.display=m??"none",d}function yh(v,m,d,_,D){const j=[];d.forEach(Ye=>j.push(Up(Ye)));const ne=[];_.forEach((Ye,yt)=>{const cn=new Map;Ye.forEach(mn=>{const wr=m.computeStyle(yt,mn,D);cn.set(mn,wr),(!wr||0==wr.length)&&(yt[ml]=Lp,ne.push(yt))}),v.set(yt,cn)});let be=0;return d.forEach(Ye=>Up(Ye,j[be++])),ne}function gc(v,m){const d=new Map;if(v.forEach(be=>d.set(be,[])),0==m.length)return d;const D=new Set(m),j=new Map;function ne(be){if(!be)return 1;let Ye=j.get(be);if(Ye)return Ye;const yt=be.parentNode;return Ye=d.has(yt)?yt:D.has(yt)?1:ne(yt),j.set(be,Ye),Ye}return m.forEach(be=>{const Ye=ne(be);1!==Ye&&d.get(Ye).push(be)}),d}function rl(v,m){v.classList?.add(m)}function Xc(v,m){v.classList?.remove(m)}function Pl(v,m,d){kl(d).onDone(()=>v.processLeaveNode(m))}function $p(v,m){for(let d=0;dD.add(j)):m.set(v,_),d.delete(v),!0}class il{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(m,d)=>{};constructor(m,d,_){this._driver=d,this._normalizer=_,this._transitionEngine=new bf(m.body,d,_),this._timelineEngine=new mh(m.body,d,_),this._transitionEngine.onRemovalComplete=(D,j)=>this.onRemovalComplete(D,j)}registerTrigger(m,d,_,D,j){const ne=m+"-"+D;let be=this._triggerCache[ne];if(!be){const Ye=[],cn=Rl(this._driver,j,Ye,[]);if(Ye.length)throw function lf(){return new c.wOt(3404,!1)}();be=function As(v,m,d){return new Op(v,m,d)}(D,cn,this._normalizer),this._triggerCache[ne]=be}this._transitionEngine.registerTrigger(d,D,be)}register(m,d){this._transitionEngine.register(m,d)}destroy(m,d){this._transitionEngine.destroy(m,d)}onInsert(m,d,_,D){this._transitionEngine.insertNode(m,d,_,D)}onRemove(m,d,_){this._transitionEngine.removeNode(m,d,_)}disableAnimations(m,d){this._transitionEngine.markElementAsDisabled(m,d)}process(m,d,_,D){if("@"==_.charAt(0)){const[j,ne]=hf(_);this._timelineEngine.command(j,d,ne,D)}else this._transitionEngine.trigger(m,d,_,D)}listen(m,d,_,D,j){if("@"==_.charAt(0)){const[ne,be]=hf(_);return this._timelineEngine.listen(ne,d,be,j)}return this._transitionEngine.listen(m,d,_,D,j)}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 bh=(()=>{class v{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(d,_,D){this._element=d,this._startStyles=_,this._endStyles=D;let j=v.initialStylesByElement.get(d);j||v.initialStylesByElement.set(d,j=new Map),this._initialStyles=j}start(){this._state<1&&(this._startStyles&&kr(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(kr(this._element,this._initialStyles),this._endStyles&&(kr(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(v.initialStylesByElement.delete(this._element),this._startStyles&&(zr(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(zr(this._element,this._endStyles),this._endStyles=null),kr(this._element,this._initialStyles),this._state=3)}}return v})();function Fl(v){let m=null;return v.forEach((d,_)=>{(function bu(v){return"display"===v||"position"===v})(_)&&(m=m||new Map,m.set(_,d))}),m}class wd{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=!1;_finished=!1;_started=!1;_destroyed=!1;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(m,d,_,D){this.element=m,this.keyframes=d,this.options=_,this._specialStyles=D,this._duration=_.duration,this._delay=_.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(m=>m()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const m=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,m,this.options),this._finalKeyframe=m.length?m[m.length-1]:new Map;const d=()=>this._onFinish();this.domPlayer.addEventListener("finish",d),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",d)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(m){const d=[];return m.forEach(_=>{d.push(Object.fromEntries(_))}),d}_triggerWebAnimation(m,d,_){return m.animate(this._convertKeyframesToObject(d),_)}onStart(m){this._originalOnStartFns.push(m),this._onStartFns.push(m)}onDone(m){this._originalOnDoneFns.push(m),this._onDoneFns.push(m)}onDestroy(m){this._onDestroyFns.push(m)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(m=>m()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(m=>m()),this._onDestroyFns=[])}setPosition(m){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=m*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const m=new Map;this.hasStarted()&&this._finalKeyframe.forEach((_,D)=>{"offset"!==D&&m.set(D,this._finished?_:go(this.element,D))}),this.currentSnapshot=m}triggerCallback(m){const d="start"===m?this._onStartFns:this._onDoneFns;d.forEach(_=>_()),d.length=0}}class Ku{validateStyleProperty(m){return!0}validateAnimatableStyleProperty(m){return!0}containsElement(m,d){return O(m,d)}getParentElement(m){return Uu(m)}query(m,d,_){return B(m,d,_)}computeStyle(m,d,_){return go(m,d)}animate(m,d,_,D,j,ne=[]){const Ye={duration:_,delay:D,fill:0==D?"both":"forwards"};j&&(Ye.easing=j);const yt=new Map,cn=ne.filter(Zn=>Zn instanceof wd);(function jr(v,m){return 0===v||0===m})(_,D)&&cn.forEach(Zn=>{Zn.currentSnapshot.forEach((_r,ni)=>yt.set(ni,_r))});let mn=function ur(v){return v.length?v[0]instanceof Map?v:v.map(m=>new Map(Object.entries(m))):[]}(d).map(Zn=>new Map(Zn));mn=function Fi(v,m,d){if(d.size&&m.length){let _=m[0],D=[];if(d.forEach((j,ne)=>{_.has(ne)||D.push(ne),_.set(ne,j)}),D.length)for(let j=1;jne.set(be,go(v,be)))}}return m}(m,mn,yt);const wr=function jp(v,m){let d=null,_=null;return Array.isArray(m)&&m.length?(d=Fl(m[0]),m.length>1&&(_=Fl(m[m.length-1]))):m instanceof Map&&(d=Fl(m)),d||_?new bh(v,d,_):null}(m,mn);return new wd(m,mn,Ye,wr)}}const xf="@.disabled";class Vo{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(m,d,_,D){this.namespaceId=m,this.delegate=d,this.engine=_,this._onDestroy=D}get data(){return this.delegate.data}destroyNode(m){this.delegate.destroyNode?.(m)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(m,d){return this.delegate.createElement(m,d)}createComment(m){return this.delegate.createComment(m)}createText(m){return this.delegate.createText(m)}appendChild(m,d){this.delegate.appendChild(m,d),this.engine.onInsert(this.namespaceId,d,m,!1)}insertBefore(m,d,_,D=!0){this.delegate.insertBefore(m,d,_),this.engine.onInsert(this.namespaceId,d,m,D)}removeChild(m,d,_){this.parentNode(d)&&this.engine.onRemove(this.namespaceId,d,this.delegate)}selectRootElement(m,d){return this.delegate.selectRootElement(m,d)}parentNode(m){return this.delegate.parentNode(m)}nextSibling(m){return this.delegate.nextSibling(m)}setAttribute(m,d,_,D){this.delegate.setAttribute(m,d,_,D)}removeAttribute(m,d,_){this.delegate.removeAttribute(m,d,_)}addClass(m,d){this.delegate.addClass(m,d)}removeClass(m,d){this.delegate.removeClass(m,d)}setStyle(m,d,_,D){this.delegate.setStyle(m,d,_,D)}removeStyle(m,d,_){this.delegate.removeStyle(m,d,_)}setProperty(m,d,_){"@"==d.charAt(0)&&d==xf?this.disableAnimations(m,!!_):this.delegate.setProperty(m,d,_)}setValue(m,d){this.delegate.setValue(m,d)}listen(m,d,_){return this.delegate.listen(m,d,_)}disableAnimations(m,d){this.engine.disableAnimations(m,d)}}class Cf extends Vo{factory;constructor(m,d,_,D,j){super(d,_,D,j),this.factory=m,this.namespaceId=d}setProperty(m,d,_){"@"==d.charAt(0)?"."==d.charAt(1)&&d==xf?this.disableAnimations(m,_=void 0===_||!!_):this.engine.process(this.namespaceId,m,d.slice(1),_):this.delegate.setProperty(m,d,_)}listen(m,d,_){if("@"==d.charAt(0)){const D=function wh(v){switch(v){case"body":return document.body;case"document":return document;case"window":return window;default:return v}}(m);let j=d.slice(1),ne="";return"@"!=j.charAt(0)&&([j,ne]=function Eh(v){const m=v.indexOf(".");return[v.substring(0,m),v.slice(m+1)]}(j)),this.engine.listen(this.namespaceId,D,j,ne,be=>{this.factory.scheduleListenerCallback(be._data||-1,_,be)})}return this.delegate.listen(m,d,_)}}class xh{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(m,d,_){this.delegate=m,this.engine=d,this._zone=_,d.onRemovalComplete=(D,j)=>{j?.removeChild(null,D)}}createRenderer(m,d){const D=this.delegate.createRenderer(m,d);if(!m||!d?.data?.animation){const yt=this._rendererCache;let cn=yt.get(D);return cn||(cn=new Vo("",D,this.engine,()=>yt.delete(D)),yt.set(D,cn)),cn}const j=d.id,ne=d.id+"-"+this._currentId;this._currentId++,this.engine.register(ne,m);const be=yt=>{Array.isArray(yt)?yt.forEach(be):this.engine.registerTrigger(j,ne,m,yt.name,yt)};return d.data.animation.forEach(be),new Cf(this,ne,D,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(m,d,_){if(m>=0&&md(_));const D=this._animationCallbacksBuffer;0==D.length&&queueMicrotask(()=>{this._zone.run(()=>{D.forEach(j=>{const[ne,be]=j;ne(be)}),this._animationCallbacksBuffer=[]})}),D.push([d,_])}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}const xd=[{provide:$e,useFactory:function Df(){return new _s}},{provide:il,useClass:(()=>{class v extends il{constructor(d,_,D){super(d,_,D)}ngOnDestroy(){this.flush()}static \u0275fac=function(_){return new(_||v)(c.KVO(st.qQ),c.KVO(Ae),c.KVO($e))};static \u0275prov=c.jDH({token:v,factory:v.\u0275fac})}return v})()},{provide:c._9s,useFactory:function Sf(v,m,d){return new xh(v,m,d)},deps:[i.B7,il,c.SKi]}],Dh=[{provide:Ae,useFactory:()=>new Ku},{provide:c.bc$,useValue:"BrowserAnimations"},...xd];var Cd=r(6381),Dd=r(909),pg=r(3569),za=r(8447),Wp=r(850);const Qc=new S.c(Wp.l);var gl=r(7509),kc=r(1787),js=r(7947),Tf=r(1642),Sd=r(1126),wu=r(7225),Ah=r(5351);const Mh={connector:()=>new za.B};function Eu(v,m=Mh){const{connector:d}=m;return(0,Ah.N)((_,D)=>{const j=d();(0,wu.Tg)(v(function Th(v){return new S.c(m=>v.subscribe(m))}(j))).subscribe(D),D.add(_.subscribe(j))})}var Ic=r(2040);const Jl="Service workers are disabled or not supported by this browser";class xu{serviceWorker;worker;registration;events;constructor(m){if(this.serviceWorker=m,m){const _=(0,Dd.R)(m,"controllerchange").pipe((0,js.T)(()=>m.controller)),D=(0,Cd.v)(()=>(0,k.of)(m.controller)),j=(0,pg.x)(D,_);this.worker=j.pipe((0,ft.p)(cn=>!!cn)),this.registration=this.worker.pipe((0,_e.n)(()=>m.getRegistration()));const yt=(0,Dd.R)(m,"message").pipe((0,js.T)(cn=>cn.data)).pipe((0,ft.p)(cn=>cn&&cn.type)).pipe(function kh(v){return v?m=>Eu(v)(m):m=>function Gu(v,m){const d=(0,Sd.T)(v)?v:()=>v;return(0,Sd.T)(m)?Eu(m,{connector:d}):_=>new Tf.G(_,d)}(new za.B)(m)}());yt.connect(),this.events=yt}else this.worker=this.events=this.registration=function Kp(v){return(0,Cd.v)(()=>(0,A.$)(new Error(v)))}(Jl)}postMessage(m,d){return this.worker.pipe((0,T.s)(1),(0,Ic.M)(_=>{_.postMessage({action:m,...d})})).toPromise().then(()=>{})}postMessageWithOperation(m,d,_){const D=this.waitForOperationCompleted(_),j=this.postMessage(m,d);return Promise.all([j,D]).then(([,ne])=>ne)}generateNonce(){return Math.round(1e7*Math.random())}eventsOfType(m){let d;return d="string"==typeof m?_=>_.type===m:_=>m.includes(_.type),this.events.pipe((0,ft.p)(d))}nextEventOfType(m){return this.eventsOfType(m).pipe((0,T.s)(1))}waitForOperationCompleted(m){return this.eventsOfType("OPERATION_COMPLETED").pipe((0,ft.p)(d=>d.nonce===m),(0,T.s)(1),(0,js.T)(d=>{if(void 0!==d.result)return d.result;throw new Error(d.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}}let Mf=(()=>{class v{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=Qc,this.notificationClicks=Qc,void(this.subscription=Qc);this.messages=this.sw.eventsOfType("PUSH").pipe((0,js.T)(D=>D.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe((0,js.T)(D=>D.data)),this.pushManager=this.sw.registration.pipe((0,js.T)(D=>D.pushManager));const _=this.pushManager.pipe((0,_e.n)(D=>D.getSubscription()));this.subscription=(0,gl.h)(_,this.subscriptionChanges)}requestSubscription(d){if(!this.sw.isEnabled||null===this.pushManager)return Promise.reject(new Error(Jl));const _={userVisibleOnly:!0};let D=this.decodeBase64(d.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),j=new Uint8Array(new ArrayBuffer(D.length));for(let ne=0;nene.subscribe(_)),(0,T.s)(1)).toPromise().then(ne=>(this.subscriptionChanges.next(ne),ne))}unsubscribe(){return this.sw.isEnabled?this.subscription.pipe((0,T.s)(1),(0,_e.n)(_=>{if(null===_)throw new Error("Not subscribed to push notifications.");return _.unsubscribe().then(D=>{if(!D)throw new Error("Unsubscribe failed!");this.subscriptionChanges.next(null)})})).toPromise():Promise.reject(new Error(Jl))}decodeBase64(d){return atob(d)}static \u0275fac=function(_){return new(_||v)(c.KVO(xu))};static \u0275prov=c.jDH({token:v,factory:v.\u0275fac})}return v})(),Xu=(()=>{class v{sw;versionUpdates;unrecoverable;get isEnabled(){return this.sw.isEnabled}constructor(d){if(this.sw=d,!d.isEnabled)return this.versionUpdates=Qc,void(this.unrecoverable=Qc);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(Jl));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(Jl));const d=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce:d},d)}static \u0275fac=function(_){return new(_||v)(c.KVO(xu))};static \u0275prov=c.jDH({token:v,factory:v.\u0275fac})}return v})();const Yu=new c.nKC("");function kf(v,m,d,_){return()=>{if(!(0,st.UE)(_)||!("serviceWorker"in navigator)||!1===d.enabled)return;const D=v.get(c.SKi),j=v.get(c.o8S);let ne;if(D.runOutsideAngular(()=>{const be=navigator.serviceWorker,Ye=()=>be.controller?.postMessage({action:"INITIALIZE"});be.addEventListener("controllerchange",Ye),j.onDestroy(()=>{be.removeEventListener("controllerchange",Ye)})}),"function"==typeof d.registrationStrategy)ne=d.registrationStrategy();else{const[be,...Ye]=(d.registrationStrategy||"registerWhenStable:30000").split(":");switch(be){case"registerImmediately":ne=(0,k.of)(null);break;case"registerWithDelay":ne=Ih(+Ye[0]||0);break;case"registerWhenStable":const yt=(0,kc.H)(v.get(c.o8S).whenStable());ne=Ye[0]?(0,gl.h)(yt,Ih(+Ye[0])):yt;break;default:throw new Error(`Unknown ServiceWorker registration strategy: ${d.registrationStrategy}`)}}D.runOutsideAngular(()=>ne.pipe((0,T.s)(1)).subscribe(()=>navigator.serviceWorker.register(m,{scope:d.scope}).catch(be=>console.error("Service worker registration failed with:",be))))}}function Ih(v){return(0,k.of)(null).pipe((0,we.c)(v))}function Aa(v,m){return new xu((0,st.UE)(m)&&!1!==v.enabled?navigator.serviceWorker:void 0)}class Zc{enabled;scope;registrationStrategy}var Qu=r(2653),b=r(5903),x=r(7178),M=r(8249),z=r(6627),J=r(6564);function ye(v){return v&&v.constructor&&"function"==typeof v.constructor.isBuffer&&v.constructor.isBuffer(v)}function Le(v){return v}function je(v,m){const d=(m=m||{}).delimiter||".",_=m.maxDepth,D=m.transformKey||Le,j={};return function ne(be,Ye,yt){yt=yt||1,Object.keys(be).forEach(function(cn){const mn=be[cn],wr=m.safe&&Array.isArray(mn),Zn=Object.prototype.toString.call(mn),_r=ye(mn),ni="[object Object]"===Zn||"[object Array]"===Zn,yi=Ye?Ye+d+D(cn):D(cn);if(!wr&&!_r&&ni&&Object.keys(mn).length&&(!m.maxDepth||yt<_))return ne(mn,yi,yt+1);j[yi]=mn})}(v),j}function it(v,m){const d=(m=m||{}).delimiter||".",_=m.overwrite||!1,D=m.transformKey||Le,j={};if(ye(v)||"[object Object]"!==Object.prototype.toString.call(v))return v;function be(cn){const mn=Number(cn);return isNaN(mn)||-1!==cn.indexOf(".")||m.object?cn:mn}return v=Object.keys(v).reduce(function(cn,mn){const wr=Object.prototype.toString.call(v[mn]);return"[object Object]"!==wr&&"[object Array]"!==wr||function yt(cn){const mn=Object.prototype.toString.call(cn);return!cn||("[object Array]"===mn?!cn.length:"[object Object]"===mn?!Object.keys(cn).length:void 0)}(v[mn])?(cn[mn]=v[mn],cn):function Ye(cn,mn,wr){return Object.keys(wr).reduce(function(Zn,_r){return Zn[cn+d+_r]=wr[_r],Zn},mn)}(mn,cn,je(v[mn],m))},{}),Object.keys(v).forEach(function(cn){const mn=cn.split(d).map(D);let wr=be(mn.shift()),Zn=be(mn[0]),_r=j;for(;void 0!==Zn;){if("__proto__"===wr)return;const ni=Object.prototype.toString.call(_r[wr]),yi="[object Object]"===ni||"[object Array]"===ni;if(!_&&!yi&&typeof _r[wr]<"u")return;(_&&!yi||!_&&null==_r[wr])&&(_r[wr]="number"!=typeof Zn||m.object?{}:[]),_r=_r[wr],mn.length>0&&(wr=be(mn.shift()),Zn=be(mn[0]))}_r[wr]=it(v[cn],m)}),j}class Ct{translations;constructor(m){this.translations=m}getTranslation(m){return(0,k.of)(this.translations.get(m)||{})}}const Kt=new c.nKC("TRANSLOCO_LOADER");function Ht(v,m){return v&&(Object.prototype.hasOwnProperty.call(v,m)?v[m]:m.split(".").reduce((d,_)=>d?.[_],v))}function vn(v){return v?Array.isArray(v)?v.length:Mn(v)?Object.keys(v).length:v?v.length:0:0}function Jt(v){return"string"==typeof v}function Mn(v){return!!v&&"object"==typeof v&&!Array.isArray(v)}function yr(v){return null==v}function Nr(v){return!1===yr(v)}function Ci(v){return v&&"string"==typeof v.scope}function ji(v){return je(v,{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 br(v={}){return{...er,...v,missingHandler:{...er.missingHandler,...v.missingHandler},flatten:{...er.flatten,...v.flatten}}}const Zr=new c.nKC("TRANSLOCO_TRANSPILER");let pi=(()=>{class v{interpolationMatcher;constructor(d){this.interpolationMatcher=function Er(v){const[m,d]=v.interpolation;return new RegExp(`${m}(.*?)${d}`,"g")}(d??er)}transpile(d,_={},D,j){return Jt(d)?d.replace(this.interpolationMatcher,(ne,be)=>(be=be.trim(),Nr(_[be])?_[be]:Nr(D[be])?this.transpile(D[be],_,D,j):"")):(_&&(Mn(d)?d=this.handleObject(d,_,D,j):Array.isArray(d)&&(d=this.handleArray(d,_,D,j))),d)}handleObject(d,_={},D,j){let ne=d;return Object.keys(_).forEach(be=>{const Ye=Ht(ne,be),yt=Ht(_,be),cn=this.transpile(Ye,yt,D,j);ne=function dn(v,m,d){v={...v};const _=m.split("."),D=_.length-1;return _.reduce((j,ne,be)=>(j[ne]=be===D?d:Array.isArray(j[ne])?j[ne].slice():{...j[ne]},j&&j[ne]),v),v}(ne,be,cn)}),ne}handleArray(d,_={},D,j){return d.map(ne=>this.transpile(ne,_,D,j))}static \u0275fac=function(_){return new(_||v)(c.KVO(qi,8))};static \u0275prov=c.jDH({token:v,factory:v.\u0275fac})}return v})();const Oi=new c.nKC("TRANSLOCO_MISSING_HANDLER");let Vs=(()=>{class v{handle(d,_){return _.missingHandler.logMissingKey&&!_.prodMode&&console.warn(`%c Missing translation for '${d}'`,"font-size: 12px; color: red"),d}static \u0275fac=function(_){return new(_||v)};static \u0275prov=c.jDH({token:v,factory:v.\u0275fac})}return v})();const Hs=new c.nKC("TRANSLOCO_INTERCEPTOR");let Ta=(()=>{class v{preSaveTranslation(d){return d}preSaveTranslationKey(d,_){return _}static \u0275fac=function(_){return new(_||v)};static \u0275prov=c.jDH({token:v,factory:v.\u0275fac})}return v})();const _l=new c.nKC("TRANSLOCO_FALLBACK_STRATEGY");let Md,Ma=(()=>{class v{userConfig;constructor(d){this.userConfig=d}getNextLangs(){const d=this.userConfig.fallbackLang;if(!d)throw new Error("When using the default fallback, a fallback language must be provided in the config!");return Array.isArray(d)?d:[d]}static \u0275fac=function(_){return new(_||v)(c.KVO(qi))};static \u0275prov=c.jDH({token:v,factory:v.\u0275fac})}return v})();function Ka(v){if(!v)return"";const m=v.split("/");return m.pop(),m.join("/")}function vs(v){return v?v.split("/").pop():""}function Du(v){return{scope:Ka(v)||null,langName:vs(v)}}function Zu(v){const{path:m,inlineLoader:d,mainLoader:_,data:D}=v;if(d){if(!1===function Qt(v){return"function"==typeof v}(d[m]))throw`You're using an inline loader but didn't provide a loader for ${m}`;return d[m]().then(ne=>ne.default?ne.default:ne)}return _.getTranslation(m,D)}let kd=(()=>{class v{loader;parser;missingHandler;interceptor;fallbackStrategy;langChanges$;subscription=null;translations=new Map;cache=new Map;firstFallbackLang;defaultLang="";availableLangs=[];isResolvedMissingOnce=!1;lang;failedLangs=new Set;events=new za.B;events$=this.events.asObservable();config;constructor(d,_,D,j,ne,be){this.loader=d,this.parser=_,this.missingHandler=D,this.interceptor=j,this.fallbackStrategy=be,this.loader||(this.loader=new Ct(this.translations)),Md=this,this.config=JSON.parse(JSON.stringify(ne)),this.setAvailableLangs(this.config.availableLangs||[]),this.setFallbackLangForMissingTranslation(this.config),this.setDefaultLang(this.config.defaultLang),this.lang=new Ne.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:Du(d)}),this}setAvailableLangs(d){this.availableLangs=d}getAvailableLangs(){return this.availableLangs}load(d,_={}){const D=this.cache.get(d);if(D)return D;let j;const ne=this._isLangScoped(d);let be;ne&&(be=Ka(d));const Ye={path:d,mainLoader:this.loader,inlineLoader:_.inlineLoader,data:ne?{scope:be}:void 0};if(this.useFallbackTranslation(d)){const cn=ne?`${be}/${this.firstFallbackLang}`:this.firstFallbackLang,mn=function Td({mainLoader:v,path:m,data:d,fallbackPath:_,inlineLoader:D}){return(_?[m,_]:[m]).map(ne=>{const be=Zu({path:ne,mainLoader:v,inlineLoader:D,data:d});return(0,kc.H)(be).pipe((0,js.T)(Ye=>({translation:Ye,lang:ne})))})}({...Ye,fallbackPath:cn});j=(0,Qu.p)(mn)}else{const cn=Zu(Ye);j=(0,kc.H)(cn)}const yt=j.pipe((0,b.L)(this.config.failedRetries),(0,Ic.M)(cn=>{Array.isArray(cn)?cn.forEach(mn=>{this.handleSuccess(mn.lang,mn.translation),mn.lang!==d&&this.cache.set(mn.lang,(0,k.of)({}))}):this.handleSuccess(d,cn)}),(0,x.W)(cn=>(this.config.prodMode||console.error(`Error while trying to load "${d}"`,cn),this.handleFailure(d,_))),(0,M.t)(1));return this.cache.set(d,yt),yt}translate(d,_={},D=this.getActiveLang()){if(!d)return d;const{scope:j,resolveLang:ne}=this.resolveLangAndScope(D);if(Array.isArray(d))return d.map(yt=>this.translate(j?`${j}.${yt}`:yt,_,ne));d=j?`${j}.${d}`:d;const be=this.getTranslation(ne),Ye=be[d];return Ye?this.parser.transpile(Ye,_,be,d):this._handleMissingKey(d,Ye,_)}selectTranslate(d,_,D,j=!1){let ne;const be=(yt,cn)=>this.load(yt,cn).pipe((0,js.T)(()=>j?this.translateObject(d,_,yt):this.translate(d,_,yt)));if(yr(D))return this.langChanges$.pipe((0,_e.n)(yt=>be(yt)));if(function fi(v){return Array.isArray(v)&&v.every(Ci)}(D)||Ci(D)){const yt=Array.isArray(D)?D[0]:D;D=yt.scope,ne=function Cu(v,m){return function li(v){return v&&Mn(v.loader)}(v)?function Ul(v,m){return Object.keys(v).reduce((d,_)=>(d[`${m}/${_}`]=v[_],d),{})}(v.loader,m):void 0}(yt,yt.scope)}if(this.isLang(D)||this.isScopeWithLang(D))return be(D);const Ye=D;return this.langChanges$.pipe((0,_e.n)(yt=>be(`${Ye}/${yt}`,{inlineLoader:ne})))}isScopeWithLang(d){return this.isLang(vs(d))}translateObject(d,_={},D=this.getActiveLang()){if(Jt(d)||Array.isArray(d)){const{resolveLang:ne,scope:be}=this.resolveLangAndScope(D);if(Array.isArray(d))return d.map(cn=>this.translateObject(be?`${be}.${cn}`:cn,_,ne));const Ye=this.getTranslation(ne),yt=function Ji(v){return it(v)}(this.getObjectByKey(Ye,d=be?`${be}.${d}`:d));return function rn(v){return 0===vn(v)}(yt)?this.translate(d,_,D):this.parser.transpile(yt,_,Ye,d)}const j=[];for(const[ne,be]of this.getEntries(d))j.push(this.translateObject(ne,be,D));return j}selectTranslateObject(d,_,D){if(Jt(d)||Array.isArray(d))return this.selectTranslate(d,_,D,!0);const[[j,ne],...be]=this.getEntries(d);return this.selectTranslateObject(j,ne,D).pipe((0,js.T)(Ye=>{const yt=[Ye];for(const[cn,mn]of be)yt.push(this.translateObject(cn,mn,D));return yt}))}getTranslation(d){if(d){if(this.isLang(d))return this.translations.get(d)||{};{const{scope:_,resolveLang:D}=this.resolveLangAndScope(d),j=this.translations.get(D)||{};return this.getObjectByKey(j,_)}}return this.translations}selectTranslation(d){let _=this.langChanges$;if(d){const D=vs(d)!==d;_=this.isLang(d)||D?(0,k.of)(d):this.langChanges$.pipe((0,js.T)(j=>`${d}/${j}`))}return _.pipe((0,_e.n)(D=>this.load(D).pipe((0,js.T)(()=>this.getTranslation(D)))))}setTranslation(d,_=this.getActiveLang(),D={}){const ne={merge:!0,emitChange:!0,...D},be=Ka(_);let Ye=d;if(be){const Zn=this.getMappedScope(be);Ye=ji({[Zn]:d})}const yt=be?vs(_):_,cn={...ne.merge&&this.getTranslation(yt),...Ye},mn=this.config.flatten.aot?cn:ji(cn),wr=this.interceptor.preSaveTranslation(mn,yt);this.translations.set(yt,wr),ne.emitChange&&this.setActiveLang(this.getActiveLang())}setTranslationKey(d,_,D=this.getActiveLang(),j={}){const ne=this.interceptor.preSaveTranslationKey(d,_,D);this.setTranslation({[d]:ne},D,{...j,merge:!0})}setFallbackLangForMissingTranslation({fallbackLang:d}){const _=Array.isArray(d)?d[0]:d;d&&this.useFallbackTranslation(_)&&(this.firstFallbackLang=_)}_handleMissingKey(d,_,D){if(this.config.missingHandler.allowEmpty&&""===_)return"";if(!this.isResolvedMissingOnce&&this.useFallbackTranslation()){this.isResolvedMissingOnce=!0;const j=this.translate(d,D,this.firstFallbackLang);return this.isResolvedMissingOnce=!1,j}return this.missingHandler.handle(d,this.getMissingHandlerData(),D)}_isLangScoped(d){return-1===this.getAvailableLangsIds().indexOf(d)}isLang(d){return-1!==this.getAvailableLangsIds().indexOf(d)}_loadDependencies(d,_){const D=vs(d);return this._isLangScoped(d)&&!this.isLoadedTranslation(D)?(0,z.z)([this.load(D),this.load(d,{inlineLoader:_})]):this.load(d,{inlineLoader:_})}_completeScopeWithLang(d){return this._isLangScoped(d)&&!this.isLang(vs(d))?`${d}/${this.getActiveLang()}`:d}_setScopeAlias(d,_){this.config.scopeMapping||(this.config.scopeMapping={}),this.config.scopeMapping[d]=_}ngOnDestroy(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null),this.cache.clear()}isLoadedTranslation(d){return vn(this.getTranslation(d))}getAvailableLangsIds(){return Jt(this.getAvailableLangs()[0])?this.getAvailableLangs():this.getAvailableLangs().map(_=>_.id)}getMissingHandlerData(){return{...this.config,activeLang:this.getActiveLang(),availableLangs:this.availableLangs,defaultLang:this.defaultLang}}useFallbackTranslation(d){return this.config.missingHandler.useFallbackTranslation&&d!==this.firstFallbackLang}handleSuccess(d,_){this.setTranslation(_,d,{emitChange:!1}),this.events.next({wasFailure:!!this.failedLangs.size,type:"translationLoadSuccess",payload:Du(d)}),this.failedLangs.forEach(D=>this.cache.delete(D)),this.failedLangs.clear()}handleFailure(d,_){yr(_.failedCounter)&&(_.failedCounter=0,_.fallbackLangs||(_.fallbackLangs=this.fallbackStrategy.getNextLangs(d)));const D=d.split("/"),ne=_.fallbackLangs[_.failedCounter];if(this.failedLangs.add(d),this.cache.has(ne))return this.handleSuccess(ne,this.getTranslation(ne)),J.w;if(!ne||ne===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=ne;return D.length>1&&(D[D.length-1]=ne,Ye=D.join("/")),_.failedCounter++,this.events.next({type:"translationLoadFailure",payload:Du(d)}),this.load(Ye,_)}getMappedScope(d){const{scopeMapping:_={}}=this.config;return _[d]||function ar(v){return v.replace(/(?:^\w|[A-Z]|\b\w)/g,(m,d)=>0==d?m.toLowerCase():m.toUpperCase()).replace(/\s+|_|-|\//g,"")}(d)}resolveLangAndScope(d){let D,_=d;if(this._isLangScoped(d)){const j=vs(d),ne=this.isLang(j);_=ne?j:this.getActiveLang(),D=this.getMappedScope(ne?Ka(d):d)}return{scope:D,resolveLang:_}}getObjectByKey(d,_){const D={},j=`${_}.`;for(const ne in d)ne.startsWith(j)&&(D[ne.replace(j,"")]=d[ne]);return D}getEntries(d){return d instanceof Map?d.entries():Object.entries(d)}static \u0275fac=function(_){return new(_||v)(c.KVO(Kt,8),c.KVO(Zr),c.KVO(Oi),c.KVO(Hs),c.KVO(qi),c.KVO(_l))};static \u0275prov=c.jDH({token:v,factory:v.\u0275fac,providedIn:"root"})}return v})();function wg(v){return(0,c.EmA)([{provide:Zr,useClass:v,deps:[qi]}])}function Xp(v){return(0,c.EmA)([{provide:_l,useClass:v,deps:[qi]}])}function Yp(v){return(0,c.EmA)([{provide:Oi,useClass:v}])}function Ph(v){return(0,c.EmA)([{provide:Hs,useClass:v}])}new c.nKC("TRANSLOCO_LANG"),new c.nKC("TRANSLOCO_LOADING_TEMPLATE"),new c.nKC("TRANSLOCO_SCOPE"),new c.nKC("TRANSLOCO_TEST_LANGS - Available testing languages"),new c.nKC("TRANSLOCO_TEST_OPTIONS - Testing options");var Cg=r(7838);let qu=(()=>{class v{constructor(){this._httpClient=(0,c.WQX)(te.Qq),this._navigation=new Cg.m(1)}get navigation$(){return this._navigation.asObservable()}get(){return this._httpClient.get("api/navigation").pipe((0,Ic.M)(d=>{this._navigation.next(d)}))}static{this.\u0275fac=function(_){return new(_||v)}}static{this.\u0275prov=c.jDH({token:v,factory:v.\u0275fac,providedIn:"root"})}}return v})(),Zv=(()=>{class v{constructor(d){this._httpClient=d,this._chat=new Ne.t(null),this._chats=new Ne.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,Ic.M)(d=>{this._chats.next(d)}))}getChatById(d){return this._httpClient.get("api/apps/chat/chat",{params:{id:d}}).pipe((0,js.T)(_=>(this._chat.next(_),_)),(0,_e.n)(_=>_?(0,k.of)(_):(0,A.$)("Could not found chat with id of "+d+"!")))}static{this.\u0275fac=function(_){return new(_||v)(c.KVO(te.Qq))}}static{this.\u0275prov=c.jDH({token:v,factory:v.\u0275fac,providedIn:"root"})}}return v})();const ys=new class Qp{constructor(m){this.version=m,this.full=m,this.major=m.split(".")[0],this.minor=m.split(".")[1],this.patch=m.split(".").slice(2).join(".")}}("0.0.12").full;var vl=r(5424),qv=r(3022),bs=r(2322);function Fh(v,m){if(1&v&&c.nrm(0,"mat-progress-bar",0),2&v){const d=c.XpG();c.Y8G("mode",d.mode)("value",d.progress)}}let Au=(()=>{class v{constructor(){this._angorLoadingService=(0,c.WQX)(Se),this.autoMode=!0,this.progress=0,this.show=!1,this._unsubscribeAll=new za.B}ngOnChanges(d){"autoMode"in d&&this._angorLoadingService.setAutoMode((0,qv.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(_){return new(_||v)}}static{this.\u0275cmp=c.VBU({type:v,selectors:[["angor-loading-bar"]],inputs:{autoMode:"autoMode"},exportAs:["angorLoadingBar"],features:[c.OA$],decls:1,vars:1,consts:[[3,"mode","value"]],template:function(_,D){1&_&&c.DNE(0,Fh,1,2,"mat-progress-bar",0),2&_&&c.vxM(D.show?0:-1)},dependencies:[bs.PO,bs.HM],styles:["angor-loading-bar{position:fixed;top:0;z-index:999;width:100%;height:6px}\n"],encapsulation:2})}}return v})();function Ju(v,m){1&v&&c.nrm(0,"router-outlet")}let Bh=(()=>{class v{constructor(){this._unsubscribeAll=new za.B}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}static{this.\u0275fac=function(_){return new(_||v)}}static{this.\u0275cmp=c.VBU({type:v,selectors:[["empty-layout"]],decls:4,vars:1,consts:[[1,"flex","w-full","flex-auto","flex-col"],[1,"flex","flex-auto","flex-col"]],template:function(_,D){1&_&&(c.nrm(0,"angor-loading-bar"),c.j41(1,"div",0)(2,"div",1),c.DNE(3,Ju,1,0,"router-outlet"),c.k0s()()),2&_&&(c.R7$(3),c.vxM(3))},dependencies:[Au,a.n3],encapsulation:2})}}return v})();var ka=r(9471),ol=r(3904),Ld=r(7712);function Nf(v,m){1&v&&c.nrm(0,"mat-icon",3)}let Sg=(()=>{class v{constructor(){this._document=(0,c.WQX)(st.qQ)}toggleFullscreen(){this._document.fullscreenEnabled?this._document.fullscreenElement?this._document.exitFullscreen():this._document.documentElement.requestFullscreen().catch(()=>{console.error("Entering fullscreen mode failed.")}):console.log("Fullscreen is not available in this browser.")}static{this.\u0275fac=function(_){return new(_||v)}}static{this.\u0275cmp=c.VBU({type:v,selectors:[["angor-fullscreen"]],inputs:{iconTpl:"iconTpl",tooltip:"tooltip"},exportAs:["angorFullscreen"],decls:4,vars:2,consts:[["defaultIconTpl",""],["mat-icon-button","",3,"click","matTooltip"],[3,"ngTemplateOutlet"],["svgIcon","heroicons_outline:arrows-pointing-out"]],template:function(_,D){if(1&_){const j=c.RV6();c.j41(0,"button",1),c.bIt("click",function(){return c.eBV(j),c.Njj(D.toggleFullscreen())}),c.eu8(1,2),c.k0s(),c.DNE(2,Nf,1,0,"ng-template",null,0,c.C5r)}if(2&_){const j=c.sdS(3);c.Y8G("matTooltip",D.tooltip||"Toggle Fullscreen"),c.R7$(),c.Y8G("ngTemplateOutlet",D.iconTpl||j)}},dependencies:[ka.Hl,ka.iY,Ld.uc,Ld.oV,st.T3,ol.m_,ol.An],encapsulation:2,changeDetection:0})}}return v})();var Rc=r(3871),Pd=r(9666),Zp=r(6192),Uh=r(3125);let Lf=(()=>{class v{constructor(d){this.relayService=d,this.notificationSubject=new Ne.t([]),this.notificationCount=new Ne.t(0),this.lastNotificationTimestamp=null,this.initializeNotificationData()}initializeNotificationData(){this.notificationCount.next(this.loadCountFromLocalStorage()),this.lastNotificationTimestamp=this.loadTimestampFromLocalStorage()}loadCountFromLocalStorage(){const d=localStorage.getItem("notificationCount");return d?parseInt(d,10):0}loadTimestampFromLocalStorage(){const d=localStorage.getItem("lastNotificationTimestamp");return d?parseInt(d,10):null}saveNotificationData(d,_){localStorage.setItem("notificationCount",d.toString()),localStorage.setItem("lastNotificationTimestamp",_.toString())}getNotificationObservable(){return this.notificationSubject.asObservable()}getNotificationCount(){return this.notificationCount.asObservable()}loadFilterPreferences(){const d=localStorage.getItem("notificationSettings");return d?JSON.parse(d):[1,3,4,7,9735]}subscribeToNotifications(d){var _=this;return(0,w.A)(function*(){yield _.relayService.ensureConnectedRelays();const D=_.relayService.getPool(),j=_.relayService.getConnectedRelays();if(0===j.length)throw new Error("No connected relays");const ne=_.loadTimestampFromLocalStorage(),be=_.loadFilterPreferences();0===be.length&&be.push(1,3,4,7,9735);const Ye={kinds:be,"#p":[d],limit:50,since:ne||void 0};return new Promise(yt=>{D.subscribeMany(j,[Ye],{onevent:mn=>_.handleNotificationEvent(mn,d),oneose(){yt()}})})})()}handleNotificationEvent(d,_){if(this.isNotificationEvent(d,_)){const j=new Date(1e3*d.created_at);let ne="",be="",Ye="";switch(d.kind){case 1:ne="Mention",be="Mentioned you in an event.",Ye="heroicons_outline:at-symbol";break;case 4:ne="Private Message",be="Sent a private message.",Ye="heroicons_outline:envelope-open";break;case 9735:ne="Zap",be="Received a zap event.",Ye="feather:zap";break;case 3:ne="New Follower",be="You have a new follower.",Ye="heroicons_outline:user-plus";break;case 7:ne="New Like",be="You have a new Like.",Ye="heroicons_outline:hand-thumb-up";break;default:ne="Notification",Ye="heroicons_outline:bell"}const mn=[{id:d.id,icon:Ye,title:ne,description:be,time:j,kind:d.kind,read:!1},...this.notificationSubject.value].slice(0,50);this.notificationSubject.next(mn),this.incrementNotificationCount(d.created_at)}}incrementNotificationCount(d){const _=this.notificationCount.value+1;this.notificationCount.next(_),this.saveNotificationData(_,d)}markAllAsRead(){this.notificationSubject.value.map(D=>({...D,read:!0})),this.notificationSubject.next([]),this.notificationCount.next(0);const _=Math.floor(Date.now()/1e3);this.saveNotificationData(0,_)}isNotificationEvent(d,_){return d.tags.some(D=>"p"===D[0]&&D[1]===_)}static{this.\u0275fac=function(_){return new(_||v)(c.KVO(Uh.b))}}static{this.\u0275prov=c.jDH({token:v,factory:v.\u0275fac,providedIn:"root"})}}return v})();var Fd=r(8078);const Ag=["notificationsOrigin"],$h=["notificationsPanel"],$l=v=>({unread:v});function Jv(v,m){if(1&v&&(c.j41(0,"span",4)(1,"span",6),c.EFF(2),c.k0s()()),2&v){const d=c.XpG();c.R7$(2),c.SpI(" ",d.unreadCount()," ")}}function Ia(v,m){1&v&&c.eu8(0)}function ey(v,m){if(1&v&&(c.j41(0,"a",18),c.DNE(1,Ia,1,0,"ng-container",20),c.k0s()),2&v){const d=c.XpG(2).$implicit,_=c.sdS(4);c.Y8G("href",d.link,c.B4B),c.R7$(),c.Y8G("ngTemplateOutlet",_)}}function ty(v,m){1&v&&c.eu8(0)}function qp(v,m){if(1&v&&(c.j41(0,"a",19),c.DNE(1,ty,1,0,"ng-container",20),c.k0s()),2&v){const d=c.XpG(2).$implicit,_=c.sdS(4);c.Y8G("routerLink",d.link),c.R7$(),c.Y8G("ngTemplateOutlet",_)}}function Tg(v,m){if(1&v&&c.DNE(0,ey,2,2,"a",18)(1,qp,2,2,"a",19),2&v){const d=c.XpG().$implicit;c.vxM(d.useRouter?-1:0),c.R7$(),c.vxM(d.useRouter?1:-1)}}function Mg(v,m){1&v&&c.eu8(0)}function ny(v,m){if(1&v&&(c.j41(0,"div",17),c.DNE(1,Mg,1,0,"ng-container",20),c.k0s()),2&v){c.XpG();const d=c.sdS(4);c.R7$(),c.Y8G("ngTemplateOutlet",d)}}function pw(v,m){if(1&v&&(c.j41(0,"div",21),c.nrm(1,"mat-icon",27),c.k0s()),2&v){const d=c.XpG(2).$implicit;c.R7$(),c.Y8G("svgIcon",d.icon)}}function kg(v,m){if(1&v&&c.nrm(0,"img",22),2&v){const d=c.XpG(2).$implicit;c.Y8G("src",d.image,c.B4B)("alt","Notification image")}}function ry(v,m){if(1&v&&c.nrm(0,"div",24),2&v){const d=c.XpG(2).$implicit;c.Y8G("innerHTML",d.title,c.npT)}}function Pf(v,m){if(1&v&&c.nrm(0,"div",25),2&v){const d=c.XpG(2).$implicit;c.Y8G("innerHTML",d.description,c.npT)}}function Jp(v,m){if(1&v&&(c.DNE(0,pw,2,1,"div",21)(1,kg,1,2,"img",22),c.j41(2,"div",23),c.DNE(3,ry,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&v){const d=c.XpG().$implicit;c.vxM(d.icon&&!d.image?0:-1),c.R7$(),c.vxM(d.image?1:-1),c.R7$(2),c.vxM(d.title?3:-1),c.R7$(),c.vxM(d.description?4:-1),c.R7$(2),c.SpI(" ",c.i5U(7,5,d.time,"MMM dd, h:mm a")," ")}}function em(v,m){if(1&v&&(c.j41(0,"div",16),c.DNE(1,Tg,2,2)(2,ny,2,1,"div",17),c.k0s(),c.DNE(3,Jp,8,8,"ng-template",null,2,c.C5r)),2&v){const d=m.$implicit;c.Y8G("ngClass",c.eq3(3,$l,!d.read)),c.R7$(),c.vxM(d.link?1:-1),c.R7$(),c.vxM(d.link?-1:2)}}function Bd(v,m){1&v&&(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&v&&(c.R7$(2),c.Y8G("svgIcon","heroicons_outline:bell"))}function Ff(v,m){if(1&v){const d=c.RV6();c.j41(0,"div",7)(1,"div",8)(2,"div",9)(3,"button",3),c.bIt("click",function(){c.eBV(d);const D=c.XpG();return c.Njj(D.closePanel())}),c.nrm(4,"mat-icon",10),c.k0s()(),c.j41(5,"div",11),c.EFF(6,"Notifications"),c.k0s(),c.j41(7,"div",12)(8,"button",13),c.bIt("click",function(){c.eBV(d);const D=c.XpG();return c.Njj(D.markAllAsRead())}),c.nrm(9,"mat-icon",10),c.k0s()()(),c.j41(10,"div",14),c.Z7z(11,em,5,5,null,null,c.BUC().trackByFn,!0),c.DNE(13,Bd,7,1,"div",15),c.k0s()()}if(2&v){const d=c.XpG();c.R7$(4),c.Y8G("svgIcon","heroicons_solid:x-mark"),c.R7$(4),c.Y8G("matTooltip","Mark all as read")("disabled",0===d.unreadCount()),c.R7$(),c.Y8G("svgIcon","heroicons_solid:envelope-open"),c.R7$(2),c.Dyx(d.notifications()),c.R7$(2),c.vxM(d.notifications()&&d.notifications().length?-1:13)}}let jh=(()=>{class v{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)(Pd.hJ),this._viewContainerRef=(0,c.WQX)(c.c1b),this._signerService=(0,c.WQX)(Fd.A)}ngOnInit(){const d=this._signerService.getPublicKey();this._notificationService.subscribeToNotifications(d).then(()=>{this._notificationService.getNotificationObservable().pipe((0,vl.Q)(this._unsubscribeAll)).subscribe(_=>{this.notifications.set(_),this._changeDetectorRef.markForCheck()}),this._notificationService.getNotificationCount().pipe((0,vl.Q)(this._unsubscribeAll)).subscribe(_=>{this.unreadCount.set(_),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 Zp.VA(this._notificationsPanel,this._viewContainerRef)))}closePanel(){this._overlayRef&&this._overlayRef.detach()}markAllAsRead(){this._notificationService.markAllAsRead(),this.notifications.set([]),this._changeDetectorRef.markForCheck()}trackByFn(d,_){return _.id}_createOverlay(){this._overlayRef=this._overlay.create({hasBackdrop:!0,backdropClass:"angor-backdrop-on-mobile",scrollStrategy:this._overlay.scrollStrategies.block(),positionStrategy:this._overlay.position().flexibleConnectedTo(this._notificationsOrigin._elementRef.nativeElement).withLockedPosition(!0).withPush(!0).withPositions([{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"}])}),this._overlayRef.backdropClick().subscribe(()=>{this._overlayRef.detach()})}static{this.\u0275fac=function(_){return new(_||v)}}static{this.\u0275cmp=c.VBU({type:v,selectors:[["notifications"]],viewQuery:function(_,D){if(1&_&&(c.GBs(Ag,5),c.GBs($h,5)),2&_){let j;c.mGM(j=c.lsd())&&(D._notificationsOrigin=j.first),c.mGM(j=c.lsd())&&(D._notificationsPanel=j.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(_,D){if(1&_){const j=c.RV6();c.j41(0,"button",3,0),c.bIt("click",function(){return c.eBV(j),c.Njj(D.openPanel())}),c.DNE(2,Jv,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&_&&(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,Ld.uc,Ld.oV,st.YU,st.T3,a.Wk,st.vh],encapsulation:2,changeDetection:0})}}return v})();var _c=r(936),Bf=r(8108),qc=r(8559),Uf=r(5710),Ig=r(2944),ec=r(5919),Og=r(6520),iy=r(593);const Ud=["panel"],Vh=["*"];function mw(v,m){if(1&v){const d=c.RV6();c.j41(0,"div",1,0),c.bIt("@panelAnimation.done",function(D){c.eBV(d);const j=c.XpG();return c.Njj(j._animationDone.next(D))}),c.SdG(2),c.k0s()}if(2&v){const d=m.id,_=c.XpG();c.HbH(_._classList),c.AVh("mat-mdc-autocomplete-visible",_.showPanel)("mat-mdc-autocomplete-hidden",!_.showPanel)("mat-primary","primary"===_._color)("mat-accent","accent"===_._color)("mat-warn","warn"===_._color),c.Y8G("id",_.id)("@panelAnimation",_.isOpen?"visible":"hidden"),c.BMQ("aria-label",_.ariaLabel||null)("aria-labelledby",_._getPanelAriaLabelledby(d))}}const Rg=(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 oy{source;option;constructor(m,d){this.source=m,this.option=d}}const tm=new c.nKC("mat-autocomplete-default-options",{providedIn:"root",factory:function gw(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1}}});let Ng=(()=>{class v{_changeDetectorRef=(0,c.WQX)(c.gRc);_elementRef=(0,c.WQX)(c.aKT);_defaults=(0,c.WQX)(tm);_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)(qc.g7).getId("mat-autocomplete-");inertGroups;constructor(){const d=(0,c.WQX)(ke.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 qc.Au(this.options).withWrap().skipPredicate(this._skipPredicate),this._activeOptionChanges=this._keyManager.change.subscribe(d=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[d]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe(),this._animationDone.complete()}_setScrollTop(d){this.panel&&(this.panel.nativeElement.scrollTop=d)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._changeDetectorRef.markForCheck()}_emitSelectEvent(d){const _=new oy(this,d);this.optionSelected.emit(_)}_getPanelAriaLabelledby(d){return this.ariaLabel?null:this.ariaLabelledby?(d?d+" ":"")+this.ariaLabelledby:d}_skipPredicate(){return!1}static \u0275fac=function(_){return new(_||v)};static \u0275cmp=c.VBU({type:v,selectors:[["mat-autocomplete"]],contentQueries:function(_,D,j){if(1&_&&(c.wni(j,Yt.wT,5),c.wni(j,Yt.QC,5)),2&_){let ne;c.mGM(ne=c.lsd())&&(D.options=ne),c.mGM(ne=c.lsd())&&(D.optionGroups=ne)}},viewQuery:function(_,D){if(1&_&&(c.GBs(c.C4Q,7),c.GBs(Ud,5)),2&_){let j;c.mGM(j=c.lsd())&&(D.template=j.first),c.mGM(j=c.lsd())&&(D.panel=j.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:Yt.is,useExisting:v}]),c.GFd],ngContentSelectors:Vh,decls:1,vars:0,consts:[["panel",""],["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id"]],template:function(_,D){1&_&&(c.NAR(),c.DNE(0,mw,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:[Rg]},changeDetection:0})}return v})();const Lg={provide:_c.kq,useExisting:(0,c.Rfq)(()=>sy),multi:!0},Pg=new c.nKC("mat-autocomplete-scroll-strategy",{providedIn:"root",factory:()=>{const v=(0,c.WQX)(Pd.hJ);return()=>v.scrollStrategies.reposition()}}),nm={provide:Pg,deps:[Pd.hJ],useFactory:function vw(v){return()=>v.scrollStrategies.reposition()}};let sy=(()=>{class v{_element=(0,c.WQX)(c.aKT);_overlay=(0,c.WQX)(Pd.hJ);_viewContainerRef=(0,c.WQX)(c.c1b);_zone=(0,c.WQX)(c.SKi);_changeDetectorRef=(0,c.WQX)(c.gRc);_dir=(0,c.WQX)(Ig.dS,{optional:!0});_formField=(0,c.WQX)(wn.xb,{optional:!0,host:!0});_document=(0,c.WQX)(st.qQ);_viewportRuler=(0,c.WQX)(Bf.Xj);_defaults=(0,c.WQX)(tm,{optional:!0});_overlayRef;_portal;_componentDestroyed=!1;_scrollStrategy=(0,c.WQX)(Pg);_keydownSubscription;_outsideClickSubscription;_previousValue;_valueOnAttach;_valueOnLastKeydown;_positionStrategy;_manuallyFloatingLabel=!1;_closingActionsSubscription;_viewportSubscription=Uf.yU.EMPTY;_breakpointObserver=(0,c.WQX)(Og.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,qc.Ae)(this._trackedModal,"aria-owns",this.autocomplete.id))}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return(0,gl.h)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,ft.p)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,ft.p)(()=>this._overlayAttached)):(0,k.of)()).pipe((0,js.T)(d=>d instanceof Yt.MI?d:null))}optionSelections=(0,Cd.v)(()=>{const d=this.autocomplete?this.autocomplete.options:null;return d?d.changes.pipe((0,iy.Z)(d),(0,_e.n)(()=>(0,gl.h)(...d.map(_=>_.onSelectionChange)))):this._initialized.pipe((0,_e.n)(()=>this.optionSelections))});get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,gl.h)((0,Dd.R)(this._document,"click"),(0,Dd.R)(this._document,"auxclick"),(0,Dd.R)(this._document,"touchend")).pipe((0,ft.p)(d=>{const _=(0,ke.Fb)(d),D=this._formField?this._formField.getConnectedOverlayOrigin().nativeElement:null,j=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&_!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!D||!D.contains(_))&&(!j||!j.contains(_))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(_)}))}writeValue(d){Promise.resolve(null).then(()=>this._assignOptionValue(d))}registerOnChange(d){this._onChange=d}registerOnTouched(d){this._onTouched=d}setDisabledState(d){this._element.nativeElement.disabled=d}_handleKeydown(d){const _=d.keyCode,D=(0,ec.rp)(d);if(_===ec._f&&!D&&d.preventDefault(),this._valueOnLastKeydown=this._element.nativeElement.value,this.activeOption&&_===ec.Fm&&this.panelOpen&&!D)this.activeOption._selectViaInteraction(),this._resetActiveItem(),d.preventDefault();else if(this.autocomplete){const j=this.autocomplete._keyManager.activeItem,ne=_===ec.i7||_===ec.n6;_===ec.wn||ne&&!D&&this.panelOpen?this.autocomplete._keyManager.onKeydown(d):ne&&this._canOpen()&&this._openPanelInternal(this._valueOnLastKeydown),(ne||this.autocomplete._keyManager.activeItem!==j)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._valueOnLastKeydown),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(d){let _=d.target,D=_.value;if("number"===_.type&&(D=""==D?null:parseFloat(D)),this._previousValue!==D){if(this._previousValue=D,this._pendingAutoselectedOption=null,(!this.autocomplete||!this.autocomplete.requireSelection)&&this._onChange(D),D){if(this.panelOpen&&!this.autocomplete.requireSelection){const j=this.autocomplete.options?.find(ne=>ne.selected);j&&D!==this._getDisplayValue(j.value)&&j.deselect(!1)}}else this._clearPreviousSelectedOption(null,!1);if(this._canOpen()&&this._document.activeElement===d.target){const j=this._valueOnLastKeydown??this._element.nativeElement.value;this._valueOnLastKeydown=null,this._openPanelInternal(j)}}}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(this._previousValue),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this._openPanelInternal()}_floatLabel(d=!1){this._formField&&"auto"===this._formField.floatLabel&&(d?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const d=new S.c(D=>{(0,c.mal)(()=>{D.next()},{injector:this._injector})}),_=this.autocomplete.options.changes.pipe((0,Ic.M)(()=>this._positionStrategy.reapplyLastPosition()),(0,we.c)(0));return(0,gl.h)(d,_).pipe((0,_e.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,T.s)(1)).subscribe(D=>this._setValueAndClose(D))}_emitOpened(){this.autocomplete.opened.emit()}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_getDisplayValue(d){const _=this.autocomplete;return _&&_.displayWith?_.displayWith(d):d}_assignOptionValue(d){const _=this._getDisplayValue(d);null==d&&this._clearPreviousSelectedOption(null,!1),this._updateNativeInputValue(_??"")}_updateNativeInputValue(d){this._formField?this._formField._control.value=d:this._element.nativeElement.value=d,this._previousValue=d}_setValueAndClose(d){const _=this.autocomplete,D=d?d.source:this._pendingAutoselectedOption;D?(this._clearPreviousSelectedOption(D),this._assignOptionValue(D.value),this._onChange(D.value),_._emitSelectEvent(D),this._element.nativeElement.focus()):_.requireSelection&&this._element.nativeElement.value!==this._valueOnAttach&&(this._clearPreviousSelectedOption(null),this._assignOptionValue(null),_._animationDone?_._animationDone.pipe((0,T.s)(1)).subscribe(()=>this._onChange(null)):this._onChange(null)),this.closePanel()}_clearPreviousSelectedOption(d,_){this.autocomplete?.options?.forEach(D=>{D!==d&&D.selected&&D.deselect(_)})}_openPanelInternal(d=this._element.nativeElement.value){this._attachOverlay(d),this._floatLabel(),this._trackedModal&&(0,qc.px)(this._trackedModal,"aria-owns",this.autocomplete.id)}_attachOverlay(d){let _=this._overlayRef;_?(this._positionStrategy.setOrigin(this._getConnectedElement()),_.updateSize({width:this._getPanelWidth()})):(this._portal=new Zp.VA(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),_=this._overlay.create(this._getOverlayConfig()),this._overlayRef=_,this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&_&&_.updateSize({width:this._getPanelWidth()})}),this._handsetLandscapeSubscription=this._breakpointObserver.observe(Og.Rp.HandsetLandscape).subscribe(j=>{j.matches?this._positionStrategy.withFlexibleDimensions(!0).withGrowAfterOpen(!0).withViewportMargin(8):this._positionStrategy.withFlexibleDimensions(!1).withGrowAfterOpen(!1).withViewportMargin(0)})),_&&!_.hasAttached()&&(_.attach(this._portal),this._valueOnAttach=d,this._valueOnLastKeydown=null,this._closingActionsSubscription=this._subscribeToClosingActions());const D=this.panelOpen;this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._latestOpeningTrigger=this,this.autocomplete._setColor(this._formField?.color),this._updatePanelState(),this._applyModalPanelOwnership(),this.panelOpen&&D!==this.panelOpen&&this._emitOpened()}_handlePanelKeydown=d=>{(d.keyCode===ec._f&&!(0,ec.rp)(d)||d.keyCode===ec.i7&&(0,ec.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 Pd.rR({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,panelClass:this._defaults?.overlayPanelClass})}_getOverlayPosition(){const d=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(d),this._positionStrategy=d,d}_setStrategyPositions(d){const _=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],D=this._aboveClass,j=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:D},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:D}];let ne;ne="above"===this.position?j:"below"===this.position?_:[..._,...j],d.withPositions(ne)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const d=this.autocomplete;if(d.autoActiveFirstOption){let _=-1;for(let D=0;D .cdk-overlay-container [aria-modal="true"]');if(!d)return;const _=this.autocomplete.id;this._trackedModal&&(0,qc.Ae)(this._trackedModal,"aria-owns",_),(0,qc.px)(d,"aria-owns",_),this._trackedModal=d}_clearFromModal(){this._trackedModal&&((0,qc.Ae)(this._trackedModal,"aria-owns",this.autocomplete.id),this._trackedModal=null)}static \u0275fac=function(_){return new(_||v)};static \u0275dir=c.FsC({type:v,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(_,D){1&_&&c.bIt("focusin",function(){return D._handleFocus()})("blur",function(){return D._onTouched()})("input",function(ne){return D._handleInput(ne)})("keydown",function(ne){return D._handleKeydown(ne)})("click",function(){return D._handleClick()}),2&_&&c.BMQ("autocomplete",D.autocompleteAttribute)("role",D.autocompleteDisabled?null:"combobox")("aria-autocomplete",D.autocompleteDisabled?null:"list")("aria-activedescendant",D.panelOpen&&D.activeOption?D.activeOption.id:null)("aria-expanded",D.autocompleteDisabled?null:D.panelOpen.toString())("aria-controls",D.autocompleteDisabled||!D.panelOpen||null==D.autocomplete?null:D.autocomplete.id)("aria-haspopup",D.autocompleteDisabled?null:"listbox")},inputs:{autocomplete:[0,"matAutocomplete","autocomplete"],position:[0,"matAutocompletePosition","position"],connectedTo:[0,"matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:[0,"autocomplete","autocompleteAttribute"],autocompleteDisabled:[2,"matAutocompleteDisabled","autocompleteDisabled",c.L39]},exportAs:["matAutocompleteTrigger"],features:[c.Jv_([Lg]),c.GFd,c.OA$]})}return v})(),$f=(()=>{class v{static \u0275fac=function(_){return new(_||v)};static \u0275mod=c.$C({type:v});static \u0275inj=c.G2t({providers:[nm],imports:[Pd.z_,Yt.Sy,Yt.yE,Bf.Gj,Yt.Sy,Yt.yE]})}return v})();var Hh=r(6389),Fg=r(3149),Bg=r(8627);const ay=["barSearchInput"],ly=["matAutocomplete"],jf=(v,m)=>m.id;function Ug(v,m){if(1&v){const d=c.RV6();c.j41(0,"button",4),c.bIt("click",function(){c.eBV(d);const D=c.XpG(2);return c.Njj(D.open())}),c.nrm(1,"mat-icon",5),c.k0s()}2&v&&(c.R7$(),c.Y8G("svgIcon","heroicons_outline:magnifying-glass"))}function cy(v,m){1&v&&(c.j41(0,"mat-option",9),c.EFF(1," No results found! "),c.k0s())}function uy(v,m){if(1&v){const d=c.RV6();c.j41(0,"img",19),c.bIt("error",function(D){c.eBV(d);const j=c.XpG(5);return c.Njj(j.handleImageError(D))}),c.k0s()}if(2&v){const d=c.XpG().$implicit;c.FS9("alt",d.name),c.Y8G("src",d.avatar,c.B4B)}}function Wh(v,m){1&v&&c.nrm(0,"mat-icon",15),2&v&&c.Y8G("svgIcon","heroicons_outline:user-circle")}function $g(v,m){if(1&v&&(c.j41(0,"div",18),c.EFF(1),c.k0s()),2&v){const d=c.XpG().$implicit;c.R7$(),c.JRh(d.about)}}function rm(v,m){if(1&v&&(c.j41(0,"mat-option",11)(1,"div",12)(2,"div",13),c.DNE(3,uy,1,2,"img",14)(4,Wh,1,1,"mat-icon",15),c.k0s(),c.j41(5,"div",16)(6,"span",17),c.EFF(7),c.k0s(),c.DNE(8,$g,2,1,"div",18),c.k0s()()()),2&v){const d=m.$implicit;c.Y8G("routerLink",d.link)("value",d.name),c.R7$(3),c.vxM(d.avatar?3:4),c.R7$(4),c.JRh(d.name),c.R7$(),c.vxM(d.about?8:-1)}}function dy(v,m){1&v&&c.Z7z(0,rm,9,5,"mat-option",11,jf),2&v&&c.Dyx(m.$implicit.results)}function yw(v,m){if(1&v){const d=c.RV6();c.j41(0,"div",3),c.nrm(1,"mat-icon",6),c.j41(2,"input",7,0),c.bIt("keydown",function(D){c.eBV(d);const j=c.XpG(2);return c.Njj(j.onKeydown(D))}),c.k0s(),c.j41(4,"mat-autocomplete",8,1),c.DNE(6,cy,2,0,"mat-option",9),c.Z7z(7,dy,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&v){let d;const _=c.sdS(5),D=c.XpG(2);c.R7$(),c.Y8G("svgIcon","heroicons_outline:magnifying-glass"),c.R7$(),c.Y8G("formControl",D.searchControl)("matAutocomplete",_),c.R7$(4),c.vxM(0===(null==(d=D.resultSets())?null:d.length)?6:-1),c.R7$(),c.Dyx(D.resultSets()),c.R7$(3),c.Y8G("svgIcon","heroicons_outline:x-mark")}}function bw(v,m){if(1&v&&c.DNE(0,Ug,2,1,"button",2)(1,yw,11,5,"div",3),2&v){const d=c.XpG();c.vxM(d.opened()?-1:0),c.R7$(),c.vxM(d.opened()?1:-1)}}let jd=(()=>{class v{constructor(){this.appearance="basic",this.debounce=300,this.minLength=2,this.search=new c.bkB,this.searchControl=new _c.hs,this.resultSets=(0,c.vPA)([]),this.opened=(0,c.vPA)(!1),this.unsubscribeAll=new za.B,this.storageService=(0,c.WQX)(Fg.n)}ngOnInit(){this.initializeSearch()}ngOnDestroy(){this.unsubscribeAll.next(),this.unsubscribeAll.complete()}initializeSearch(){var d=this;this.searchControl.valueChanges.pipe((0,Bg.B)(this.debounce),(0,vl.Q)(this.unsubscribeAll),(0,js.T)(_=>((!_||_.length_&&_.length>=this.minLength)).subscribe(function(){var _=(0,w.A)(function*(D){const ne=(yield d.storageService.searchProfile(D)).map(be=>({label:"Project",results:[{name:be.profile.name||be.profile.displayName||be.pubKey,pubkey:be.pubKey,about:be.profile.about?.replace(/<\/?[^>]+(>|$)/g,"")||"",avatar:be.profile.picture||null,link:`/profile/${be.pubKey}`}]}));d.resultSets.set(ne),d.search.emit(ne)});return function(D){return _.apply(this,arguments)}}())}onKeydown(d){"Escape"===d.key&&this.close()}open(){this.opened()||this.opened.set(!0)}close(){this.opened()&&(this.searchControl.setValue(""),this.opened.set(!1))}handleImageError(d){const _=d.target;_.onerror=null,_.src="images/avatars/avatar-placeholder.png"}trackByFn(d,_){return _.id||d}static{this.\u0275fac=function(_){return new(_||v)}}static{this.\u0275cmp=c.VBU({type:v,selectors:[["search"]],viewQuery:function(_,D){if(1&_&&(c.GBs(ay,5),c.GBs(ly,5)),2&_){let j;c.mGM(j=c.lsd())&&(D.barSearchInput=j.first),c.mGM(j=c.lsd())&&(D.matAutocomplete=j.first)}},inputs:{appearance:"appearance",debounce:"debounce",minLength:"minLength"},outputs:{search:"search"},decls:2,vars:1,consts:[["barSearchInput",""],["matAutocomplete","matAutocomplete"],["mat-icon-button",""],[1,"bg-card","absolute","inset-0","z-99","flex","items-center"],["mat-icon-button","",3,"click"],[3,"svgIcon"],[1,"absolute","ml-6","sm:ml-8",3,"svgIcon"],["placeholder","Search...",1,"h-full","w-full","px-16","sm:px-18",3,"keydown","formControl","matAutocomplete"],[1,"max-h-128","rounded-b","border-t","shadow-md"],[1,"text-secondary","pointer-events-none"],["mat-icon-button","",1,"absolute","right-5","top-1/2","-mt-5",3,"click"],[3,"routerLink","value"],[1,"flex","items-center"],[1,"h-8","w-8","rounded-full","bg-primary-100","dark:bg-primary-800"],[1,"h-full","w-full","object-cover",3,"src","alt"],[1,"m-0","text-primary",3,"svgIcon"],[1,"ml-3","truncate"],[1,"font-semibold"],[1,"text-sm","text-gray-500"],[1,"h-full","w-full","object-cover",3,"error","src","alt"]],template:function(_,D){1&_&&(c.j41(0,"div"),c.DNE(1,bw,2,2),c.k0s()),2&_&&(c.R7$(),c.vxM("bar"===D.appearance?1:-1))},dependencies:[ka.Hl,ka.iY,ol.m_,ol.An,_c.X1,_c.me,_c.BC,_c.l_,$f,Ng,Yt.wT,sy,Yt.Sy,a.Wk,wn.RG,Hh.fS,st.MD],encapsulation:2})}}return v})();var jg=r(1109),zh=r(7702),Vd=r(7818),Vf=r(4482);const ww=()=>["/settings"];function Ew(v,m){if(1&v&&c.nrm(0,"img",4),2&v){let d;const _=c.XpG();c.Y8G("src",_.getSafeUrl(null==(d=_.user())?null:d.picture),c.B4B)}}function Vg(v,m){1&v&&c.nrm(0,"mat-icon",5),2&v&&c.Y8G("svgIcon","heroicons_outline:user-circle")}let Hg=(()=>{class v{constructor(){this.user=(0,c.vPA)(null),this.config=(0,c.vPA)(null),this.userPubKey=(0,c.vPA)(""),this.signerService=(0,c.WQX)(Fd.A),this.storageService=(0,c.WQX)(Fg.n),this.angorConfigService=(0,c.WQX)(jg.P),this.router=(0,c.WQX)(a.Ix),this.sanitizer=(0,c.WQX)(i.up),this.nostrLoginService=(0,c.WQX)(Vf.v),this.userPubKey.set(this.signerService.getPublicKey()),this.loadUserProfile(),(0,c.QZP)(()=>{this.config.set(this.angorConfigService.config),this.config()&&localStorage.setItem("angorConfig",JSON.stringify(this.config()))}),this.storageService.profile$.subscribe(d=>{d&&d.pubKey===this.userPubKey()&&this.user.set(d.metadata||{})})}loadUserProfile(){this.storageService.getProfile(this.userPubKey()).then(d=>{this.user.set(d||{})})}logout(){this.router.navigate(["/logout"])}Switch(){this.nostrLoginService.switchAccount()}profile(){this.router.navigate(["/profile"])}setScheme(d){this.angorConfigService.config={scheme:d}}setTheme(d){this.angorConfigService.config={theme:d}}getSafeUrl(d){return this.sanitizer.bypassSecurityTrustUrl(d)}switchAccount(){this.nostrLoginService.switchAccount()}static{this.\u0275fac=function(_){return new(_||v)}}static{this.\u0275cmp=c.VBU({type:v,selectors:[["user"]],decls:49,vars:15,consts:[["userActions","matMenu"],["settingsMenu","matMenu"],["mat-icon-button","",3,"matMenuTriggerFor"],[1,"relative"],["alt","","onerror","this.onerror=null; this.src='/images/avatars/avatar-placeholder.png';",1,"h-7","w-7","rounded-full","object-cover",3,"src"],[3,"svgIcon"],[3,"xPosition"],["mat-menu-item",""],[1,"flex","flex-col","leading-none"],[1,"mt-1.5","text-md","font-medium"],[1,"my-2"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"matMenuTriggerFor"],["mat-menu-item","",3,"routerLink"]],template:function(_,D){if(1&_){const j=c.RV6();c.j41(0,"button",2)(1,"span",3),c.DNE(2,Ew,1,1,"img",4)(3,Vg,1,1,"mat-icon",5),c.k0s()(),c.j41(4,"mat-menu",6,0)(6,"button",7)(7,"span",8)(8,"span"),c.EFF(9,"Logged in as"),c.k0s(),c.j41(10,"span",9),c.EFF(11),c.k0s()()(),c.nrm(12,"mat-divider",10),c.j41(13,"button",11),c.bIt("click",function(){return c.eBV(j),c.Njj(D.Switch())}),c.nrm(14,"mat-icon",5),c.j41(15,"span"),c.EFF(16,"Switch account"),c.k0s()(),c.j41(17,"button",11),c.bIt("click",function(){return c.eBV(j),c.Njj(D.profile())}),c.nrm(18,"mat-icon",5),c.j41(19,"span"),c.EFF(20,"Profile"),c.k0s()(),c.j41(21,"button",12),c.nrm(22,"mat-icon",5),c.j41(23,"span"),c.EFF(24,"Options"),c.k0s()(),c.nrm(25,"mat-divider",10),c.j41(26,"button",11),c.bIt("click",function(){return c.eBV(j),c.Njj(D.logout())}),c.nrm(27,"mat-icon",5),c.j41(28,"span"),c.EFF(29,"logout"),c.k0s()()(),c.j41(30,"mat-menu",null,1)(32,"button",11),c.bIt("click",function(){return c.eBV(j),c.Njj(D.setScheme("auto"))}),c.nrm(33,"mat-icon",5),c.j41(34,"span"),c.EFF(35,"Auto Theme"),c.k0s()(),c.j41(36,"button",11),c.bIt("click",function(){return c.eBV(j),c.Njj(D.setScheme("light"))}),c.nrm(37,"mat-icon",5),c.j41(38,"span"),c.EFF(39,"Light Theme"),c.k0s()(),c.j41(40,"button",11),c.bIt("click",function(){return c.eBV(j),c.Njj(D.setScheme("dark"))}),c.nrm(41,"mat-icon",5),c.j41(42,"span"),c.EFF(43,"Dark Theme"),c.k0s()(),c.nrm(44,"mat-divider"),c.j41(45,"button",13),c.nrm(46,"mat-icon",5),c.j41(47,"span"),c.EFF(48,"Settings"),c.k0s()()()}if(2&_){let j,ne;const be=c.sdS(5),Ye=c.sdS(31);c.Y8G("matMenuTriggerFor",be),c.R7$(2),c.vxM(null!=(j=D.user())&&j.picture?2:3),c.R7$(2),c.Y8G("xPosition","before"),c.R7$(7),c.JRh((null==(ne=D.user())?null:ne.display_name)||(null==D.user?null:D.user.name)||"Unknown User"),c.R7$(3),c.Y8G("svgIcon","heroicons_outline:user-circle"),c.R7$(4),c.Y8G("svgIcon","heroicons_outline:user-circle"),c.R7$(3),c.Y8G("matMenuTriggerFor",Ye),c.R7$(),c.Y8G("svgIcon","heroicons_outline:cog-8-tooth"),c.R7$(5),c.Y8G("svgIcon","heroicons_outline:arrow-right-on-rectangle"),c.R7$(6),c.Y8G("svgIcon","heroicons_solid:bolt"),c.R7$(4),c.Y8G("svgIcon","heroicons_solid:sun"),c.R7$(4),c.Y8G("svgIcon","heroicons_solid:moon"),c.R7$(4),c.Y8G("routerLink",c.lJ4(14,ww)),c.R7$(),c.Y8G("svgIcon","heroicons_outline:cog-8-tooth")}},dependencies:[ka.Hl,ka.iY,Vd.Cn,Vd.kk,Vd.fb,Vd.Cp,ol.m_,ol.An,zh.w,zh.q,st.MD,a.iI,a.Wk],encapsulation:2,changeDetection:0})}}return v})();var Wg=r(6061),im=r(9587);let ed=(()=>{class v{constructor(d,_){this.swUpdate=d,this.zone=_,this.newVersionAvailableSubject=new Ne.t(!1),this.isNewVersionAvailable$=this.newVersionAvailableSubject.asObservable(),this.intervalSource=function zg(v=0,m=Wg.E){return v<0&&(v=0),(0,im.O)(v,v,m)}(9e5),this.checkForUpdateOnLoad(),this.checkForUpdateOnInterval()}applyUpdate(){this.swUpdate.activateUpdate().then(()=>document.location.reload()).catch(d=>console.error("Failed to apply updates:",d))}checkForUpdateOnInterval(){var d=this;this.unsubscribeInterval(),this.swUpdate.isEnabled&&this.zone.runOutsideAngular(()=>{this.intervalSubscription=this.intervalSource.subscribe((0,w.A)(function*(){try{(yield d.swUpdate.checkForUpdate())&&d.newVersionAvailableSubject.next(!0)}catch(_){console.error("Failed to check for updates:",_)}}))})}checkForUpdateOnLoad(){this.unsubscribeNewVersion(),this.swUpdate.isEnabled&&(this.newVersionSubscription=this.swUpdate.versionUpdates.subscribe(d=>{switch(d.type){case"VERSION_DETECTED":break;case"VERSION_READY":this.newVersionAvailableSubject.next(!0);break;case"VERSION_INSTALLATION_FAILED":console.error(`Failed to install app version '${d.version.hash}': ${d.error}`)}}))}unsubscribeInterval(){this.intervalSubscription&&this.intervalSubscription.unsubscribe()}unsubscribeNewVersion(){this.newVersionSubscription&&this.newVersionSubscription.unsubscribe()}static{this.\u0275fac=function(_){return new(_||v)(c.KVO(Xu),c.KVO(c.SKi))}}static{this.\u0275prov=c.jDH({token:v,factory:v.\u0275fac,providedIn:"root"})}}return v})();function Kg(v,m){if(1&v){const d=c.RV6();c.j41(0,"button",1),c.bIt("click",function(){c.eBV(d);const D=c.XpG();return c.Njj(D.applyUpdate())}),c.nrm(1,"mat-icon",2),c.k0s()}if(2&v){const d=c.XpG();c.Y8G("matTooltip",d.tooltip()),c.R7$(),c.Y8G("svgIcon","heroicons_outline:cloud-arrow-down")}}let Gg=(()=>{class v{constructor(){this.tooltip=(0,c.vPA)("Update App"),this.isNewVersionAvailable=(0,c.vPA)(!1),this.updateService=(0,c.WQX)(ed),this.updateService.isNewVersionAvailable$.subscribe(d=>{this.isNewVersionAvailable.set(d)})}applyUpdate(){this.updateService.applyUpdate()}static{this.\u0275fac=function(_){return new(_||v)}}static{this.\u0275cmp=c.VBU({type:v,selectors:[["update"]],decls:1,vars:1,consts:[["mat-icon-button","",3,"matTooltip"],["mat-icon-button","",3,"click","matTooltip"],[3,"svgIcon"]],template:function(_,D){1&_&&c.DNE(0,Kg,2,2,"button",0),2&_&&c.vxM(D.isNewVersionAvailable()?0:-1)},dependencies:[st.MD,ka.Hl,ka.iY,ol.m_,ol.An,Ld.uc,Ld.oV],encapsulation:2,changeDetection:0})}}return v})();function hy(v,m){if(1&v&&(c.j41(0,"angor-vertical-navigation",0),c.qex(1,10),c.j41(2,"div",11),c.nrm(3,"img",12),c.k0s(),c.bVm(),c.k0s()),2&v){const d=c.XpG();c.Y8G("mode","over")("name","mainNavigation")("navigation",d.navigation.default)("opened",!1)}}function fy(v,m){if(1&v&&(c.j41(0,"div",13)(1,"div",14),c.nrm(2,"img",15)(3,"img",16),c.k0s(),c.nrm(4,"img",17),c.k0s(),c.nrm(5,"angor-horizontal-navigation",18)),2&v){const d=c.XpG();c.R7$(5),c.Y8G("name","mainNavigation")("navigation",d.navigation.horizontal)}}function py(v,m){if(1&v){const d=c.RV6();c.j41(0,"button",19),c.bIt("click",function(){c.eBV(d);const D=c.XpG();return c.Njj(D.toggleNavigation("mainNavigation"))}),c.nrm(1,"mat-icon",20),c.k0s()}2&v&&(c.R7$(),c.Y8G("svgIcon","heroicons_outline:bars-3"))}function Xg(v,m){1&v&&c.nrm(0,"router-outlet")}let my=(()=>{class v{constructor(d,_,D,j,ne){this._activatedRoute=d,this._router=_,this._navigationService=D,this._angorMediaWatcherService=j,this._angorNavigationService=ne,this._unsubscribeAll=new za.B,this.version=ys}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 _=this._angorNavigationService.getComponent(d);_&&_.toggle()}static{this.\u0275fac=function(_){return new(_||v)(c.rXU(a.nX),c.rXU(a.Ix),c.rXU(qu),c.rXU(le.l),c.rXU(Rc.lX))}}static{this.\u0275cmp=c.VBU({type:v,selectors:[["modern-layout"]],decls:17,vars:6,consts:[[1,"dark","bg-gray-900","print:hidden",3,"mode","name","navigation","opened"],[1,"flex","w-full","min-w-0","flex-auto","flex-col"],[1,"bg-card","relative","z-49","flex","h-16","w-full","flex-0","items-center","px-4","shadow","dark:border-b","dark:bg-transparent","dark:shadow-none","sm:h-20","md:px-6","print:hidden"],["mat-icon-button",""],[1,"ml-auto","flex","items-center","space-x-0.5","pl-2","sm:space-x-2"],[1,"hidden","md:block"],[3,"appearance"],[1,"flex","w-full","flex-auto","flex-col"],[1,"bg-card","relative","z-49","flex","h-14","w-full","flex-0","items-center","border-t","px-4","dark:bg-transparent","sm:h-20","md:px-6","print:hidden"],[1,"text-secondary","font-medium"],["angorVerticalNavigationContentHeader",""],[1,"flex","h-20","items-center","px-8","pt-6"],["src","images/logo/logo-text-on-dark.svg","alt","Angor Hub",1,"h-10","w-24"],[1,"mx-2","flex","items-center","lg:mr-8"],[1,"hidden","lg:flex"],["src","images/logo/logo-text.svg",1,"h-10","w-24","dark:hidden"],["src","images/logo/logo-text-on-dark.svg",1,"hidden","h-10","w-24","dark:flex"],["src","images/logo/logo.svg",1,"flex","w-8","lg:hidden"],[1,"mr-2",3,"name","navigation"],["mat-icon-button","",3,"click"],[3,"svgIcon"]],template:function(_,D){1&_&&(c.nrm(0,"angor-loading-bar"),c.DNE(1,hy,4,4,"angor-vertical-navigation",0),c.j41(2,"div",1)(3,"div",2),c.DNE(4,fy,6,2)(5,py,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,Xg,1,0,"router-outlet"),c.k0s(),c.j41(14,"div",8)(15,"span",9),c.EFF(16),c.k0s()()()),2&_&&(c.R7$(),c.vxM(D.isScreenSmall?1:-1),c.R7$(3),c.vxM(D.isScreenSmall?-1:4),c.R7$(),c.vxM(D.isScreenSmall?5:-1),c.R7$(4),c.Y8G("appearance","bar"),c.R7$(4),c.vxM(13),c.R7$(3),c.SpI("Angor Hub - version ",D.version,""))},dependencies:[Au,Rc.Tv,Rc.$w,ka.Hl,ka.iY,ol.m_,ol.An,Sg,jd,jh,Hg,a.n3,Gg],encapsulation:2})}}return v})();function gy(v,m){1&v&&c.nrm(0,"router-outlet")}let _y=(()=>{class v{constructor(d,_,D,j,ne){this._activatedRoute=d,this._router=_,this._navigationService=D,this._angorMediaWatcherService=j,this._angorNavigationService=ne,this._unsubscribeAll=new za.B,this.version=ys}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 _=this._angorNavigationService.getComponent(d);_&&_.toggle()}static{this.\u0275fac=function(_){return new(_||v)(c.rXU(a.nX),c.rXU(a.Ix),c.rXU(qu),c.rXU(le.l),c.rXU(Rc.lX))}}static{this.\u0275cmp=c.VBU({type:v,selectors:[["classic-layout"]],decls:21,vars:8,consts:[[1,"dark","bg-gray-900","print:hidden",3,"mode","name","navigation","opened"],["angorVerticalNavigationContentHeader",""],[1,"flex","h-20","items-center","p-6"],["src","images/logo/logo-text.svg","alt","Angor Hub",1,"w-30","dark:hidden"],["src","images/logo/logo-text-on-dark.svg","alt","Angor Hub",1,"hidden","w-30","dark:flex"],[1,"flex","w-full","min-w-0","flex-auto","flex-col"],[1,"bg-card","relative","z-49","flex","h-16","w-full","flex-0","items-center","px-4","shadow","dark:border-b","dark:bg-transparent","dark:shadow-none","md:px-6","print:hidden"],["mat-icon-button","",3,"click"],[3,"svgIcon"],[1,"ml-auto","flex","items-center","space-x-0.5","pl-2","sm:space-x-2"],[1,"hidden","md:block"],[3,"appearance"],[1,"flex","flex-auto","flex-col"],[1,"bg-card","relative","z-49","flex","h-14","w-full","flex-0","items-center","justify-start","border-t","px-4","dark:bg-transparent","md:px-6","print:hidden"],[1,"text-secondary","font-medium"]],template:function(_,D){1&_&&(c.nrm(0,"angor-loading-bar"),c.j41(1,"angor-vertical-navigation",0),c.qex(2,1),c.j41(3,"div",2),c.nrm(4,"img",3)(5,"img",4),c.k0s(),c.bVm(),c.k0s(),c.j41(6,"div",5)(7,"div",6)(8,"button",7),c.bIt("click",function(){return D.toggleNavigation("mainNavigation")}),c.nrm(9,"mat-icon",8),c.k0s(),c.j41(10,"div",9),c.nrm(11,"update")(12,"angor-fullscreen",10)(13,"search",11)(14,"notifications")(15,"user"),c.k0s()(),c.j41(16,"div",12),c.DNE(17,gy,1,0,"router-outlet"),c.k0s(),c.j41(18,"div",13)(19,"span",14),c.EFF(20),c.k0s()()()),2&_&&(c.R7$(),c.Y8G("mode",D.isScreenSmall?"over":"side")("name","mainNavigation")("navigation",D.navigation.default)("opened",!D.isScreenSmall),c.R7$(8),c.Y8G("svgIcon","heroicons_outline:bars-3"),c.R7$(4),c.Y8G("appearance","bar"),c.R7$(4),c.vxM(17),c.R7$(3),c.SpI("Angor Hub - version ",D.version,""))},dependencies:[Au,Rc.Tv,ka.Hl,ka.iY,ol.m_,ol.An,Sg,jd,jh,Hg,a.n3,Gg],encapsulation:2})}}return v})();function vy(v,m){1&v&&c.nrm(0,"empty-layout")}function yy(v,m){1&v&&c.nrm(0,"modern-layout")}function om(v,m){1&v&&c.nrm(0,"classic-layout")}let sm=(()=>{class v{constructor(d,_,D,j,ne,be,Ye){this._activatedRoute=d,this._document=_,this._renderer2=D,this._router=j,this._angorConfigService=ne,this._angorMediaWatcherService=be,this._angorPlatformService=Ye,this._unsubscribeAll=new za.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,js.T)(([d,_])=>{const D={scheme:d.scheme,theme:d.theme};return"auto"===d.scheme&&(D.scheme=_.breakpoints["(prefers-color-scheme: dark)"]?"dark":"light"),D})).subscribe(d=>{this.scheme=d.scheme,this.theme=d.theme,this._updateScheme(),this._updateTheme()}),this._angorConfigService.config$.pipe((0,vl.Q)(this._unsubscribeAll)).subscribe(d=>{this.config=d,this._updateLayout()}),this._router.events.pipe((0,ft.p)(d=>d instanceof a.wF),(0,vl.Q)(this._unsubscribeAll)).subscribe(()=>{this._updateLayout()}),this._renderer2.setAttribute(this._document.querySelector("[ng-version]"),"angor-version",ys),this._renderer2.addClass(this._document.body,this._angorPlatformService.osName)}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}_updateLayout(){let d=this._activatedRoute;for(;d.firstChild;)d=d.firstChild;this.layout=this.config.layout;const _=d.snapshot.queryParamMap.get("layout");_&&(this.layout=_,this.config&&(this.config.layout=_)),d.pathFromRoot.forEach(j=>{j.routeConfig&&j.routeConfig.data&&j.routeConfig.data.layout&&(this.layout=j.routeConfig.data.layout)})}_updateScheme(){this._document.body.classList.remove("light","dark"),this._document.body.classList.add(this.scheme)}_updateTheme(){this._document.body.classList.forEach(d=>{d.startsWith("theme-")&&this._document.body.classList.remove(d,d.split("-")[1])}),this._document.body.classList.add(this.theme)}static{this.\u0275fac=function(_){return new(_||v)(c.rXU(a.nX),c.rXU(st.qQ),c.rXU(c.sFG),c.rXU(a.Ix),c.rXU(jg.P),c.rXU(le.l),c.rXU(Ue))}}static{this.\u0275cmp=c.VBU({type:v,selectors:[["layout"]],decls:3,vars:3,template:function(_,D){1&_&&c.DNE(0,vy,1,0,"empty-layout")(1,yy,1,0,"modern-layout")(2,om,1,0,"classic-layout"),2&_&&(c.vxM("empty"===D.layout?0:-1),c.R7$(),c.vxM("modern"===D.layout?1:-1),c.R7$(),c.vxM("classic"===D.layout?2:-1))},dependencies:[Bh,my,_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 v})();const Hf=()=>((0,c.WQX)(Fd.A),!0),Tu=[{path:"",pathMatch:"full",redirectTo:"home"},{path:"project/:pubkey",pathMatch:"full",redirectTo:"explore"},{path:"login-redirect",pathMatch:"full",redirectTo:"explore"},{path:"",component:sm,data:{layout:"empty"},children:[{path:"login",loadChildren:()=>Promise.all([r.e(87),r.e(232)]).then(r.bind(r,6232))},{path:"create",loadChildren:()=>Promise.all([r.e(87),r.e(664)]).then(r.bind(r,9664))}]},{path:"",canActivate:[Hf],canActivateChild:[Hf],component:sm,data:{layout:"empty"},children:[{path:"logout",loadChildren:()=>r.e(957).then(r.bind(r,7957))}]},{path:"",canActivate:[Hf],canActivateChild:[Hf],component:sm,resolve:{initialData:()=>{const v=(0,c.WQX)(qu);return(0,c.WQX)(Zv),(0,Qu.p)([v.get()])}},children:[{path:"home",loadChildren:()=>Promise.all([r.e(859),r.e(318),r.e(523),r.e(863),r.e(836)]).then(r.bind(r,836))},{path:"explore",loadChildren:()=>Promise.all([r.e(318),r.e(371),r.e(76),r.e(45)]).then(r.bind(r,2045))},{path:"zap",loadChildren:()=>Promise.all([r.e(859),r.e(785)]).then(r.bind(r,8166))},{path:"bookmark",loadChildren:()=>Promise.all([r.e(318),r.e(371),r.e(76),r.e(767)]).then(r.bind(r,6767))},{path:"profile",loadChildren:()=>Promise.all([r.e(859),r.e(318),r.e(523),r.e(371),r.e(556),r.e(863),r.e(76),r.e(394)]).then(r.bind(r,5394))},{path:"profile/:pubkey",loadChildren:()=>Promise.all([r.e(859),r.e(318),r.e(523),r.e(371),r.e(556),r.e(863),r.e(76),r.e(394)]).then(r.bind(r,5394))},{path:"profile/:pubkey/:project",loadChildren:()=>Promise.all([r.e(859),r.e(318),r.e(523),r.e(371),r.e(556),r.e(863),r.e(76),r.e(394)]).then(r.bind(r,5394))},{path:"post",loadChildren:()=>Promise.all([r.e(859),r.e(318),r.e(523),r.e(556),r.e(863),r.e(544)]).then(r.bind(r,6544))},{path:"post/:id",loadChildren:()=>Promise.all([r.e(859),r.e(318),r.e(523),r.e(556),r.e(863),r.e(544)]).then(r.bind(r,6544))},{path:"settings",loadChildren:()=>Promise.all([r.e(859),r.e(371),r.e(76),r.e(824)]).then(r.bind(r,8824))},{path:"settings/:id",loadChildren:()=>Promise.all([r.e(859),r.e(371),r.e(76),r.e(824)]).then(r.bind(r,8824))},{path:"chat",loadChildren:()=>Promise.all([r.e(859),r.e(523),r.e(556),r.e(512)]).then(r.bind(r,1512))},{path:"404-not-found",pathMatch:"full",loadChildren:()=>r.e(256).then(r.bind(r,9256))},{path:"**",redirectTo:"404-not-found"}]}];let Wf=(()=>{class v{constructor(){const d=(0,c.WQX)(i.up),_=(0,c.WQX)(ol.tp);_.addSvgIconSet(d.bypassSecurityTrustResourceUrl("icons/material-twotone.svg")),_.addSvgIconSetInNamespace("mat_outline",d.bypassSecurityTrustResourceUrl("icons/material-outline.svg")),_.addSvgIconSetInNamespace("mat_solid",d.bypassSecurityTrustResourceUrl("icons/material-solid.svg")),_.addSvgIconSetInNamespace("feather",d.bypassSecurityTrustResourceUrl("icons/feather.svg")),_.addSvgIconSetInNamespace("heroicons_outline",d.bypassSecurityTrustResourceUrl("icons/heroicons-outline.svg")),_.addSvgIconSetInNamespace("heroicons_solid",d.bypassSecurityTrustResourceUrl("icons/heroicons-solid.svg")),_.addSvgIconSetInNamespace("heroicons_mini",d.bypassSecurityTrustResourceUrl("icons/heroicons-mini.svg"))}static{this.\u0275fac=function(_){return new(_||v)}}static{this.\u0275prov=c.jDH({token:v,factory:v.\u0275fac,providedIn:"root"})}}return v})();var Hd=r(8747),by=r(1540);let xw=(()=>{class v{constructor(d){this.httpClient=d}getTranslation(d){return this.httpClient.get(`./i18n/${d}.json`)}static{this.\u0275fac=function(_){return new(_||v)(c.KVO(te.Qq))}}static{this.\u0275prov=c.jDH({token:v,factory:v.\u0275fac,providedIn:"root"})}}return v})();const zf=[{id:"home",title:"Home",type:"basic",icon:"heroicons_outline:home",link:"/home"},{id:"explore",title:"Explore",type:"basic",icon:"heroicons_outline:magnifying-glass",link:"/explore"},{id:"bookmark",title:"Bookmark",type:"basic",icon:"heroicons_outline:bookmark",link:"/bookmark"},{id:"chat",title:"Chat",type:"basic",icon:"heroicons_outline:chat-bubble-left-right",link:"/chat",badge:{title:"0",classes:"px-2 bg-[#086c81] text-white rounded-full"}},{id:"profile",title:"Profile",type:"basic",icon:"heroicons_outline:user",link:"/profile"},{id:"settings",title:"Settings",type:"basic",icon:"heroicons_outline:cog-6-tooth",link:"/settings"}],lm=[{id:"home",title:"Home",type:"basic",icon:"heroicons_outline:home",link:"/home"},{id:"explore",title:"Explore",type:"basic",icon:"heroicons_outline:magnifying-glass",link:"/explore"},{id:"bookmark",title:"Bookmark",type:"basic",icon:"heroicons_outline:bookmark",link:"/bookmark"},{id:"chat",title:"Chat",type:"basic",icon:"heroicons_outline:chat-bubble-left-right",link:"/chat",badge:{title:"27",classes:"px-2 bg-[#086c81] text-white rounded-full"}},{id:"profile",title:"Profile",type:"basic",icon:"heroicons_outline:user",link:"/profile"},{id:"settings",title:"Settings",type:"basic",icon:"heroicons_outline:cog-6-tooth",link:"/settings"}];var Yg=r(1238);var td=r(2065),Kf=r(101),Ey=r(6259),xy=r(1561);const Jc=(0,r(5717).A)(Object.keys,Object);var Sy=Object.prototype.hasOwnProperty;var My=r(2808);const cm=function ky(v){return(0,My.A)(v)?(0,Ey.A)(v):function Ay(v){if(!(0,xy.A)(v))return Jc(v);var m=[];for(var d in Object(v))Sy.call(v,d)&&"constructor"!=d&&m.push(d);return m}(v)};var um=r(3959);var Gf=r(4224),eu=r(1369);const dm=function e_(){return[]};var Dw=Object.prototype.propertyIsEnumerable,Ny=Object.getOwnPropertySymbols;const Gh=Ny?function(v){return null==v?[]:(v=Object(v),function Kh(v,m){for(var d=-1,_=null==v?0:v.length,D=0,j=[];++d<_;){var ne=v[d];m(ne,d,v)&&(j[D++]=ne)}return j}(Ny(v),function(m){return Dw.call(v,m)}))}:dm,n_=function t_(v,m){for(var d=-1,_=m.length,D=v.length;++d<_;)v[D+d]=m[d];return v};var Ly=r(5749);const r_=Object.getOwnPropertySymbols?function(v){for(var m=[];v;)n_(m,Gh(v)),v=(0,Ly.A)(v);return m}:dm;var s_=r(9007);const fm=function By(v,m,d){var _=m(v);return(0,s_.A)(v)?_:n_(_,d(v))},a_=function Xf(v){return fm(v,cm,Gh)},Uy=function pm(v){return fm(v,um.A,r_)};var Nc=r(3121),Xh=r(9311);const Yh=(0,Nc.A)(Xh.A,"DataView");var Qh=r(2769);const mm=(0,Nc.A)(Xh.A,"Promise"),gm=(0,Nc.A)(Xh.A,"Set"),c_=(0,Nc.A)(Xh.A,"WeakMap");var Hy=r(5688),Lc=r(4435),u_="[object Map]",d_="[object Promise]",_m="[object Set]",h_="[object WeakMap]",f_="[object DataView]",zy=(0,Lc.A)(Yh),Ky=(0,Lc.A)(Qh.A),Gy=(0,Lc.A)(mm),Xy=(0,Lc.A)(gm),vm=(0,Lc.A)(c_),zd=Hy.A;(Yh&&zd(new Yh(new ArrayBuffer(1)))!=f_||Qh.A&&zd(new Qh.A)!=u_||mm&&zd(mm.resolve())!=d_||gm&&zd(new gm)!=_m||c_&&zd(new c_)!=h_)&&(zd=function(v){var m=(0,Hy.A)(v),d="[object Object]"==m?v.constructor:void 0,_=d?(0,Lc.A)(d):"";if(_)switch(_){case zy:return f_;case Ky:return u_;case Gy:return d_;case Xy:return _m;case vm:return h_}return m});const p_=zd;var Tw=Object.prototype.hasOwnProperty;var Yy=r(3031);var Yf=/\w*$/;var bm=r(4883),wm=bm.A?bm.A.prototype:void 0,g_=wm?wm.valueOf:void 0;var Kd=r(7383);const eb=function E_(v,m,d){var _=v.constructor;switch(m){case"[object ArrayBuffer]":return(0,Yy.A)(v);case"[object Boolean]":case"[object Date]":return new _(+v);case"[object DataView]":return function Iw(v,m){var d=m?(0,Yy.A)(v.buffer):v.buffer;return new v.constructor(d,v.byteOffset,v.byteLength)}(v,d);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return(0,Kd.A)(v,d);case"[object Map]":case"[object Set]":return new _;case"[object Number]":case"[object String]":return new _(v);case"[object RegExp]":return function Qf(v){var m=new v.constructor(v.source,Yf.exec(v));return m.lastIndex=v.lastIndex,m}(v);case"[object Symbol]":return function Zy(v){return g_?Object(g_.call(v)):{}}(v)}};var x_=r(223),tb=r(5303),C_=r(2312);var Xd=r(4975),Yd=r(8583),S_=Yd.A&&Yd.A.isMap;const Am=S_?(0,Xd.A)(S_):function Sm(v){return(0,C_.A)(v)&&"[object Map]"==p_(v)};var A_=r(7999);var Jf=Yd.A&&Yd.A.isSet;const k_=Jf?(0,Xd.A)(Jf):function T_(v){return(0,C_.A)(v)&&"[object Set]"==p_(v)};var Mm="[object Arguments]",Qd="[object Function]",L_="[object Object]",Go={};Go[Mm]=Go["[object Array]"]=Go["[object ArrayBuffer]"]=Go["[object DataView]"]=Go["[object Boolean]"]=Go["[object Date]"]=Go["[object Float32Array]"]=Go["[object Float64Array]"]=Go["[object Int8Array]"]=Go["[object Int16Array]"]=Go["[object Int32Array]"]=Go["[object Map]"]=Go["[object Number]"]=Go[L_]=Go["[object RegExp]"]=Go["[object Set]"]=Go["[object String]"]=Go["[object Symbol]"]=Go["[object Uint8Array]"]=Go["[object Uint8ClampedArray]"]=Go["[object Uint16Array]"]=Go["[object Uint32Array]"]=!0,Go["[object Error]"]=Go[Qd]=Go["[object WeakMap]"]=!1;const fb=function np(v,m,d,_,D,j){var ne,be=1&m,Ye=2&m,yt=4&m;if(d&&(ne=D?d(v,_,D,j):d(v)),void 0!==ne)return ne;if(!(0,A_.A)(v))return v;var cn=(0,s_.A)(v);if(cn){if(ne=function Mw(v){var m=v.length,d=new v.constructor(m);return m&&"string"==typeof v[0]&&Tw.call(v,"index")&&(d.index=v.index,d.input=v.input),d}(v),!be)return(0,eu.A)(v,ne)}else{var mn=p_(v),wr=mn==Qd||"[object GeneratorFunction]"==mn;if((0,tb.A)(v))return(0,Gf.A)(v,be);if(mn==L_||mn==Mm||wr&&!D){if(ne=Ye||wr?{}:(0,x_.A)(v),!be)return Ye?function i_(v,m){return(0,Kf.A)(v,r_(v),m)}(v,function Oy(v,m){return v&&(0,Kf.A)(m,(0,um.A)(m),v)}(ne,v)):function Sw(v,m){return(0,Kf.A)(v,Gh(v),m)}(v,function qg(v,m){return v&&(0,Kf.A)(m,cm(m),v)}(ne,v))}else{if(!Go[mn])return D?v:{};ne=eb(v,mn,be)}}j||(j=new Yg.A);var Zn=j.get(v);if(Zn)return Zn;j.set(v,ne),k_(v)?v.forEach(function(yi){ne.add(np(yi,m,d,yi,v,j))}):Am(v)&&v.forEach(function(yi,uo){ne.set(uo,np(yi,m,d,uo,v,j))});var ni=cn?void 0:(yt?Ye?Uy:a_:Ye?um.A:cm)(v);return function Qg(v,m){for(var d=-1,_=null==v?0:v.length;++d<_&&!1!==m(v[d],d,v););}(ni||v,function(yi,uo){ni&&(yi=v[uo=yi]),(0,td.A)(ne,uo,np(yi,m,d,uo,v,j))}),ne},Rm=function mb(v){return fb(v,5)},V_=[(()=>{class v{constructor(d){this._angorMockApiService=d,this._defaultNavigation=zf,this._horizontalNavigation=lm,this.registerHandlers()}registerHandlers(){this._angorMockApiService.onGet("api/navigation").reply(()=>(this._horizontalNavigation.forEach(d=>{this._defaultNavigation.forEach(_=>{_.id===d.id&&(d.children=Rm(_.children))})}),[200,{default:Rm(this._defaultNavigation),horizontal:Rm(this._horizontalNavigation)}]))}static{this.\u0275fac=function(_){return new(_||v)(c.KVO(Z))}}static{this.\u0275prov=c.jDH({token:v,factory:v.\u0275fac,providedIn:"root"})}}return v})()];let H_=(()=>{class v{constructor(d){this.http=d,this.timestamp=null,this.ngswFilePath="/ngsw.json"}load(){var d=this;return(0,w.A)(function*(){try{const _=yield d.http.get(d.ngswFilePath).toPromise();_&&_.timestamp?(d.timestamp=_.timestamp,console.log("Timestamp successfully loaded:",d.timestamp)):console.error("Invalid data format in ngsw.json")}catch(_){console.error("Error loading ngsw.json:",_)}})()}getTimestamp(){return this.timestamp}loadHash(){return this.http.get(this.ngswFilePath).pipe((0,js.T)(d=>d.timestamp||null),(0,x.W)(d=>(console.error("Error fetching ngsw.json hash:",d),(0,A.$)(()=>new Error("Failed to load hash.")))))}static{this.\u0275fac=function(_){return new(_||v)(c.KVO(te.Qq))}}static{this.\u0275prov=c.jDH({token:v,factory:v.\u0275fac,providedIn:"root"})}}return v})();var id=r(6433),W_=r(3024);const od={providers:[function Hp(){return(0,c.ngT)("NgEagerAnimations"),[...Dh]}(),(0,te.$R)(),function Oh(v,m={}){return(0,c.EmA)([Mf,Xu,{provide:Yu,useValue:v},{provide:Zc,useValue:m},{provide:xu,useFactory:Aa,deps:[Zc,c.Agw]},{provide:c.hnV,useFactory:kf,deps:[c.zZn,Yu,Zc,c.Agw],multi:!0}])}("ngsw-worker.js",{enabled:!(0,c.naY)(),registrationStrategy:"registerWhenStable:30000"}),{provide:c.hnV,useFactory:function qh(v){return()=>v.load()},deps:[H_,Fd.A,id.d],multi:!0},{provide:c.hnV,useFactory:function z_(v,m){return(0,w.A)(function*(){const d=v.getPublicKey();d&&(yield m.loadUserProfile(d))})},deps:[Fd.A,id.d],multi:!0},{provide:c.hnV,useFactory:function gb(){return()=>{(0,W_.Ts)({theme:"ocean",noBanner:!0,title:"Angor Hub",onAuth:(v,m)=>{}})}},multi:!0},(0,a.lh)(Tu,(0,a.oH)({scrollPositionRestoration:"enabled"})),{provide:Yt.MJ,useClass:Da},{provide:Yt.de,useValue:{parse:{dateInput:"D"},display:{dateInput:"DDD",monthYearLabel:"LLL yyyy",dateA11yLabel:"DD",monthYearA11yLabel:"LLLL yyyy"}}},function _g(v){const m=[wg(pi),Yp(Vs),Ph(Ta),Xp(Ma)];return v.config&&m.push(function vg(v){return(0,c.EmA)([{provide:qi,useValue:br(v)}])}(v.config)),v.loader&&m.push(function yg(v){return(0,c.EmA)([{provide:Kt,useClass:v}])}(v.loader)),m}({config:{availableLangs:[{id:"en",label:"English"}],defaultLang:"en",fallbackLang:"en",reRenderOnLangChange:!0,prodMode:!0},loader:xw}),{provide:c.hnV,useFactory:()=>{const v=(0,c.WQX)(kd),m=v.getDefaultLang();return v.setActiveLang(m),()=>function wy(v,m){const d="object"==typeof m;return new Promise((_,D)=>{const j=new by.Ms({next:ne=>{_(ne),j.unsubscribe()},error:D,complete:()=>{d?_(m.defaultValue):D(new Hd.G)}});v.subscribe(j)})}(v.load(m))},multi:!0},[{provide:c.Z63,useValue:()=>(0,c.WQX)(Wf),multi:!0}],(v=>{const m=[{provide:Yt.N,useValue:{doctype:!0,theme:!1,version:!0}},{provide:wn.U$,useValue:{appearance:"fill"}},{provide:C,useValue:v?.mockApi?.delay??0},{provide:Te.t,useValue:v?.angor??{}},(0,c.oKB)(un.hM),{provide:c.Z63,useValue:()=>(0,c.WQX)(Ce.m),multi:!0},(0,te.$R)((0,te.b$)([ae])),{provide:c.Z63,useValue:()=>(0,c.WQX)(Se),multi:!0},{provide:c.Z63,useValue:()=>(0,c.WQX)(le.l),multi:!0},{provide:c.Z63,useValue:()=>(0,c.WQX)(Ue),multi:!0},{provide:c.Z63,useValue:()=>(0,c.WQX)(_t),multi:!0},{provide:c.Z63,useValue:()=>(0,c.WQX)(ot.Q),multi:!0}];return v?.mockApi?.services&&m.push((0,te.$R)((0,te.b$)([pe])),{provide:c.hnV,deps:[...v.mockApi.services],useFactory:()=>()=>null,multi:!0}),m})({mockApi:{delay:0,services:V_},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,od).catch(v=>console.error(v))},9566:(o,s)=>{"use strict";s.byteLength=function A(Z){var te=C(Z),_e=te[1];return 3*(te[0]+_e)/4-_e},s.toByteArray=function T(Z){var te,Se,we=C(Z),_e=we[0],pe=we[1],Te=new a(function S(Z,te,we){return 3*(te+we)/4-we}(0,_e,pe)),Ce=0,Ne=pe>0?_e-4:_e;for(Se=0;Se>16&255,Te[Ce++]=te>>8&255,Te[Ce++]=255&te;return 2===pe&&(te=i[Z.charCodeAt(Se)]<<2|i[Z.charCodeAt(Se+1)]>>4,Te[Ce++]=255&te),1===pe&&(te=i[Z.charCodeAt(Se)]<<10|i[Z.charCodeAt(Se+1)]<<4|i[Z.charCodeAt(Se+2)]>>2,Te[Ce++]=te>>8&255,Te[Ce++]=255&te),Te},s.fromByteArray=function G(Z){for(var te,we=Z.length,_e=we%3,pe=[],Ce=0,Ne=we-_e;CeNe?Ne:Ce+16383));return 1===_e?pe.push(r[(te=Z[we-1])>>2]+r[te<<4&63]+"=="):2===_e&&pe.push(r[(te=(Z[we-2]<<8)+Z[we-1])>>10]+r[te>>4&63]+r[te<<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 te=Z.length;if(te%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var we=Z.indexOf("=");return-1===we&&(we=te),[we,we===te?0:4-we%4]}function k(Z){return r[Z>>18&63]+r[Z>>12&63]+r[Z>>6&63]+r[63&Z]}function R(Z,te,we){for(var pe=[],Te=te;Te{"use strict";const a=r(9566),c=r(9859),y="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;s.hp=S,s.IS=50;const w=2147483647;function A(W){if(W>w)throw new RangeError('The value "'+W+'" is invalid for option "size"');const L=new Uint8Array(W);return Object.setPrototypeOf(L,S.prototype),L}function S(W,L,V){if("number"==typeof W){if("string"==typeof L)throw new TypeError('The "string" argument must be of type string. Received type number');return G(W)}return T(W,L,V)}function T(W,L,V){if("string"==typeof W)return function Z(W,L){if(("string"!=typeof L||""===L)&&(L="utf8"),!S.isEncoding(L))throw new TypeError("Unknown encoding: "+L);const V=0|Ne(W,L);let Re=A(V);const bt=Re.write(W,L);return bt!==V&&(Re=Re.slice(0,bt)),Re}(W,L);if(ArrayBuffer.isView(W))return function we(W){if(Gt(W,Uint8Array)){const L=new Uint8Array(W);return _e(L.buffer,L.byteOffset,L.byteLength)}return te(W)}(W);if(null==W)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof W);if(Gt(W,ArrayBuffer)||W&&Gt(W.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Gt(W,SharedArrayBuffer)||W&&Gt(W.buffer,SharedArrayBuffer)))return _e(W,L,V);if("number"==typeof W)throw new TypeError('The "value" argument must not be of type number. Received type number');const Re=W.valueOf&&W.valueOf();if(null!=Re&&Re!==W)return S.from(Re,L,V);const bt=function pe(W){if(S.isBuffer(W)){const L=0|Te(W.length),V=A(L);return 0===V.length||W.copy(V,0,0,L),V}return void 0!==W.length?"number"!=typeof W.length||Ot(W.length)?A(0):te(W):"Buffer"===W.type&&Array.isArray(W.data)?te(W.data):void 0}(W);if(bt)return bt;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof W[Symbol.toPrimitive])return S.from(W[Symbol.toPrimitive]("string"),L,V);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof W)}function k(W){if("number"!=typeof W)throw new TypeError('"size" argument must be of type number');if(W<0)throw new RangeError('The value "'+W+'" is invalid for option "size"')}function G(W){return k(W),A(W<0?0:0|Te(W))}function te(W){const L=W.length<0?0:0|Te(W.length),V=A(L);for(let Re=0;Re=w)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+w.toString(16)+" bytes");return 0|W}function Ne(W,L){if(S.isBuffer(W))return W.length;if(ArrayBuffer.isView(W)||Gt(W,ArrayBuffer))return W.byteLength;if("string"!=typeof W)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof W);const V=W.length,Re=arguments.length>2&&!0===arguments[2];if(!Re&&0===V)return 0;let bt=!1;for(;;)switch(L){case"ascii":case"latin1":case"binary":return V;case"utf8":case"utf-8":return an(W).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*V;case"hex":return V>>>1;case"base64":return Xt(W).length;default:if(bt)return Re?-1:an(W).length;L=(""+L).toLowerCase(),bt=!0}}function Se(W,L,V){let Re=!1;if((void 0===L||L<0)&&(L=0),L>this.length||((void 0===V||V>this.length)&&(V=this.length),V<=0)||(V>>>=0)<=(L>>>=0))return"";for(W||(W="utf8");;)switch(W){case"hex":return Ze(this,L,V);case"utf8":case"utf-8":return Yt(this,L,V);case"ascii":return $n(this,L,V);case"latin1":case"binary":return En(this,L,V);case"base64":return ot(this,L,V);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return wt(this,L,V);default:if(Re)throw new TypeError("Unknown encoding: "+W);W=(W+"").toLowerCase(),Re=!0}}function xe(W,L,V){const Re=W[L];W[L]=W[V],W[V]=Re}function ae(W,L,V,Re,bt){if(0===W.length)return-1;if("string"==typeof V?(Re=V,V=0):V>2147483647?V=2147483647:V<-2147483648&&(V=-2147483648),Ot(V=+V)&&(V=bt?0:W.length-1),V<0&&(V=W.length+V),V>=W.length){if(bt)return-1;V=W.length-1}else if(V<0){if(!bt)return-1;V=0}if("string"==typeof L&&(L=S.from(L,Re)),S.isBuffer(L))return 0===L.length?-1:le(W,L,V,Re,bt);if("number"==typeof L)return L&=255,"function"==typeof Uint8Array.prototype.indexOf?bt?Uint8Array.prototype.indexOf.call(W,L,V):Uint8Array.prototype.lastIndexOf.call(W,L,V):le(W,[L],V,Re,bt);throw new TypeError("val must be string, number or Buffer")}function le(W,L,V,Re,bt){let gn,mt=1,At=W.length,Ln=L.length;if(void 0!==Re&&("ucs2"===(Re=String(Re).toLowerCase())||"ucs-2"===Re||"utf16le"===Re||"utf-16le"===Re)){if(W.length<2||L.length<2)return-1;mt=2,At/=2,Ln/=2,V/=2}function Zt(In,Bn){return 1===mt?In[Bn]:In.readUInt16BE(Bn*mt)}if(bt){let In=-1;for(gn=V;gnAt&&(V=At-Ln),gn=V;gn>=0;gn--){let In=!0;for(let Bn=0;Bnbt&&(Re=bt):Re=bt;const mt=L.length;let At;for(Re>mt/2&&(Re=mt/2),At=0;At>8,bt=V%256,mt.push(bt),mt.push(Re);return mt}(L,W.length-V),W,V,Re)}function ot(W,L,V){return a.fromByteArray(0===L&&V===W.length?W:W.slice(L,V))}function Yt(W,L,V){V=Math.min(W.length,V);const Re=[];let bt=L;for(;bt239?4:mt>223?3:mt>191?2:1;if(bt+Ln<=V){let Zt,gn,In,Bn;switch(Ln){case 1:mt<128&&(At=mt);break;case 2:Zt=W[bt+1],128==(192&Zt)&&(Bn=(31&mt)<<6|63&Zt,Bn>127&&(At=Bn));break;case 3:Zt=W[bt+1],gn=W[bt+2],128==(192&Zt)&&128==(192&gn)&&(Bn=(15&mt)<<12|(63&Zt)<<6|63&gn,Bn>2047&&(Bn<55296||Bn>57343)&&(At=Bn));break;case 4:Zt=W[bt+1],gn=W[bt+2],In=W[bt+3],128==(192&Zt)&&128==(192&gn)&&128==(192&In)&&(Bn=(15&mt)<<18|(63&Zt)<<12|(63&gn)<<6|63&In,Bn>65535&&Bn<1114112&&(At=Bn))}}null===At?(At=65533,Ln=1):At>65535&&(At-=65536,Re.push(At>>>10&1023|55296),At=56320|1023&At),Re.push(At),bt+=Ln}return function wn(W){const L=W.length;if(L<=un)return String.fromCharCode.apply(String,W);let V="",Re=0;for(;Rebt.length?(S.isBuffer(At)||(At=S.from(At)),At.copy(bt,mt)):Uint8Array.prototype.set.call(bt,At,mt);else{if(!S.isBuffer(At))throw new TypeError('"list" argument must be an Array of Buffers');At.copy(bt,mt)}mt+=At.length}return bt},S.byteLength=Ne,S.prototype._isBuffer=!0,S.prototype.swap16=function(){const L=this.length;if(L%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let V=0;VV&&(L+=" ... "),""},y&&(S.prototype[y]=S.prototype.inspect),S.prototype.compare=function(L,V,Re,bt,mt){if(Gt(L,Uint8Array)&&(L=S.from(L,L.offset,L.byteLength)),!S.isBuffer(L))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof L);if(void 0===V&&(V=0),void 0===Re&&(Re=L?L.length:0),void 0===bt&&(bt=0),void 0===mt&&(mt=this.length),V<0||Re>L.length||bt<0||mt>this.length)throw new RangeError("out of range index");if(bt>=mt&&V>=Re)return 0;if(bt>=mt)return-1;if(V>=Re)return 1;if(this===L)return 0;let At=(mt>>>=0)-(bt>>>=0),Ln=(Re>>>=0)-(V>>>=0);const Zt=Math.min(At,Ln),gn=this.slice(bt,mt),In=L.slice(V,Re);for(let Bn=0;Bn>>=0,isFinite(Re)?(Re>>>=0,void 0===bt&&(bt="utf8")):(bt=Re,Re=void 0)}const mt=this.length-V;if((void 0===Re||Re>mt)&&(Re=mt),L.length>0&&(Re<0||V<0)||V>this.length)throw new RangeError("Attempt to write outside buffer bounds");bt||(bt="utf8");let At=!1;for(;;)switch(bt){case"hex":return ke(this,L,V,Re);case"utf8":case"utf-8":return Ue(this,L,V,Re);case"ascii":case"latin1":case"binary":return st(this,L,V,Re);case"base64":return ft(this,L,V,Re);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _t(this,L,V,Re);default:if(At)throw new TypeError("Unknown encoding: "+bt);bt=(""+bt).toLowerCase(),At=!0}},S.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const un=4096;function $n(W,L,V){let Re="";V=Math.min(W.length,V);for(let bt=L;btRe)&&(V=Re);let bt="";for(let mt=L;mtV)throw new RangeError("Trying to access beyond buffer length")}function Be(W,L,V,Re,bt,mt){if(!S.isBuffer(W))throw new TypeError('"buffer" argument must be a Buffer instance');if(L>bt||LW.length)throw new RangeError("Index out of range")}function Ut(W,L,V,Re,bt){tn(L,Re,bt,W,V,7);let mt=Number(L&BigInt(4294967295));W[V++]=mt,mt>>=8,W[V++]=mt,mt>>=8,W[V++]=mt,mt>>=8,W[V++]=mt;let At=Number(L>>BigInt(32)&BigInt(4294967295));return W[V++]=At,At>>=8,W[V++]=At,At>>=8,W[V++]=At,At>>=8,W[V++]=At,V}function Ke(W,L,V,Re,bt){tn(L,Re,bt,W,V,7);let mt=Number(L&BigInt(4294967295));W[V+7]=mt,mt>>=8,W[V+6]=mt,mt>>=8,W[V+5]=mt,mt>>=8,W[V+4]=mt;let At=Number(L>>BigInt(32)&BigInt(4294967295));return W[V+3]=At,At>>=8,W[V+2]=At,At>>=8,W[V+1]=At,At>>=8,W[V]=At,V+8}function lt(W,L,V,Re,bt,mt){if(V+Re>W.length)throw new RangeError("Index out of range");if(V<0)throw new RangeError("Index out of range")}function Xe(W,L,V,Re,bt){return L=+L,V>>>=0,bt||lt(W,0,V,4),c.write(W,L,V,Re,23,4),V+4}function Ge(W,L,V,Re,bt){return L=+L,V>>>=0,bt||lt(W,0,V,8),c.write(W,L,V,Re,52,8),V+8}S.prototype.slice=function(L,V){const Re=this.length;(L=~~L)<0?(L+=Re)<0&&(L=0):L>Re&&(L=Re),(V=void 0===V?Re:~~V)<0?(V+=Re)<0&&(V=0):V>Re&&(V=Re),V>>=0,V>>>=0,Re||ze(L,V,this.length);let bt=this[L],mt=1,At=0;for(;++At>>=0,V>>>=0,Re||ze(L,V,this.length);let bt=this[L+--V],mt=1;for(;V>0&&(mt*=256);)bt+=this[L+--V]*mt;return bt},S.prototype.readUint8=S.prototype.readUInt8=function(L,V){return L>>>=0,V||ze(L,1,this.length),this[L]},S.prototype.readUint16LE=S.prototype.readUInt16LE=function(L,V){return L>>>=0,V||ze(L,2,this.length),this[L]|this[L+1]<<8},S.prototype.readUint16BE=S.prototype.readUInt16BE=function(L,V){return L>>>=0,V||ze(L,2,this.length),this[L]<<8|this[L+1]},S.prototype.readUint32LE=S.prototype.readUInt32LE=function(L,V){return L>>>=0,V||ze(L,4,this.length),(this[L]|this[L+1]<<8|this[L+2]<<16)+16777216*this[L+3]},S.prototype.readUint32BE=S.prototype.readUInt32BE=function(L,V){return L>>>=0,V||ze(L,4,this.length),16777216*this[L]+(this[L+1]<<16|this[L+2]<<8|this[L+3])},S.prototype.readBigUInt64LE=Me(function(L){pn(L>>>=0,"offset");const V=this[L],Re=this[L+7];(void 0===V||void 0===Re)&&Wn(L,this.length-8);const bt=V+256*this[++L]+65536*this[++L]+this[++L]*2**24,mt=this[++L]+256*this[++L]+65536*this[++L]+Re*2**24;return BigInt(bt)+(BigInt(mt)<>>=0,"offset");const V=this[L],Re=this[L+7];(void 0===V||void 0===Re)&&Wn(L,this.length-8);const bt=V*2**24+65536*this[++L]+256*this[++L]+this[++L],mt=this[++L]*2**24+65536*this[++L]+256*this[++L]+Re;return(BigInt(bt)<>>=0,V>>>=0,Re||ze(L,V,this.length);let bt=this[L],mt=1,At=0;for(;++At=mt&&(bt-=Math.pow(2,8*V)),bt},S.prototype.readIntBE=function(L,V,Re){L>>>=0,V>>>=0,Re||ze(L,V,this.length);let bt=V,mt=1,At=this[L+--bt];for(;bt>0&&(mt*=256);)At+=this[L+--bt]*mt;return mt*=128,At>=mt&&(At-=Math.pow(2,8*V)),At},S.prototype.readInt8=function(L,V){return L>>>=0,V||ze(L,1,this.length),128&this[L]?-1*(255-this[L]+1):this[L]},S.prototype.readInt16LE=function(L,V){L>>>=0,V||ze(L,2,this.length);const Re=this[L]|this[L+1]<<8;return 32768&Re?4294901760|Re:Re},S.prototype.readInt16BE=function(L,V){L>>>=0,V||ze(L,2,this.length);const Re=this[L+1]|this[L]<<8;return 32768&Re?4294901760|Re:Re},S.prototype.readInt32LE=function(L,V){return L>>>=0,V||ze(L,4,this.length),this[L]|this[L+1]<<8|this[L+2]<<16|this[L+3]<<24},S.prototype.readInt32BE=function(L,V){return L>>>=0,V||ze(L,4,this.length),this[L]<<24|this[L+1]<<16|this[L+2]<<8|this[L+3]},S.prototype.readBigInt64LE=Me(function(L){pn(L>>>=0,"offset");const V=this[L],Re=this[L+7];return(void 0===V||void 0===Re)&&Wn(L,this.length-8),(BigInt(this[L+4]+256*this[L+5]+65536*this[L+6]+(Re<<24))<>>=0,"offset");const V=this[L],Re=this[L+7];(void 0===V||void 0===Re)&&Wn(L,this.length-8);const bt=(V<<24)+65536*this[++L]+256*this[++L]+this[++L];return(BigInt(bt)<>>=0,V||ze(L,4,this.length),c.read(this,L,!0,23,4)},S.prototype.readFloatBE=function(L,V){return L>>>=0,V||ze(L,4,this.length),c.read(this,L,!1,23,4)},S.prototype.readDoubleLE=function(L,V){return L>>>=0,V||ze(L,8,this.length),c.read(this,L,!0,52,8)},S.prototype.readDoubleBE=function(L,V){return L>>>=0,V||ze(L,8,this.length),c.read(this,L,!1,52,8)},S.prototype.writeUintLE=S.prototype.writeUIntLE=function(L,V,Re,bt){L=+L,V>>>=0,Re>>>=0,bt||Be(this,L,V,Re,Math.pow(2,8*Re)-1,0);let mt=1,At=0;for(this[V]=255&L;++At>>=0,Re>>>=0,bt||Be(this,L,V,Re,Math.pow(2,8*Re)-1,0);let mt=Re-1,At=1;for(this[V+mt]=255&L;--mt>=0&&(At*=256);)this[V+mt]=L/At&255;return V+Re},S.prototype.writeUint8=S.prototype.writeUInt8=function(L,V,Re){return L=+L,V>>>=0,Re||Be(this,L,V,1,255,0),this[V]=255&L,V+1},S.prototype.writeUint16LE=S.prototype.writeUInt16LE=function(L,V,Re){return L=+L,V>>>=0,Re||Be(this,L,V,2,65535,0),this[V]=255&L,this[V+1]=L>>>8,V+2},S.prototype.writeUint16BE=S.prototype.writeUInt16BE=function(L,V,Re){return L=+L,V>>>=0,Re||Be(this,L,V,2,65535,0),this[V]=L>>>8,this[V+1]=255&L,V+2},S.prototype.writeUint32LE=S.prototype.writeUInt32LE=function(L,V,Re){return L=+L,V>>>=0,Re||Be(this,L,V,4,4294967295,0),this[V+3]=L>>>24,this[V+2]=L>>>16,this[V+1]=L>>>8,this[V]=255&L,V+4},S.prototype.writeUint32BE=S.prototype.writeUInt32BE=function(L,V,Re){return L=+L,V>>>=0,Re||Be(this,L,V,4,4294967295,0),this[V]=L>>>24,this[V+1]=L>>>16,this[V+2]=L>>>8,this[V+3]=255&L,V+4},S.prototype.writeBigUInt64LE=Me(function(L,V=0){return Ut(this,L,V,BigInt(0),BigInt("0xffffffffffffffff"))}),S.prototype.writeBigUInt64BE=Me(function(L,V=0){return Ke(this,L,V,BigInt(0),BigInt("0xffffffffffffffff"))}),S.prototype.writeIntLE=function(L,V,Re,bt){if(L=+L,V>>>=0,!bt){const Zt=Math.pow(2,8*Re-1);Be(this,L,V,Re,Zt-1,-Zt)}let mt=0,At=1,Ln=0;for(this[V]=255&L;++mt>>=0,!bt){const Zt=Math.pow(2,8*Re-1);Be(this,L,V,Re,Zt-1,-Zt)}let mt=Re-1,At=1,Ln=0;for(this[V+mt]=255&L;--mt>=0&&(At*=256);)L<0&&0===Ln&&0!==this[V+mt+1]&&(Ln=1),this[V+mt]=(L/At|0)-Ln&255;return V+Re},S.prototype.writeInt8=function(L,V,Re){return L=+L,V>>>=0,Re||Be(this,L,V,1,127,-128),L<0&&(L=255+L+1),this[V]=255&L,V+1},S.prototype.writeInt16LE=function(L,V,Re){return L=+L,V>>>=0,Re||Be(this,L,V,2,32767,-32768),this[V]=255&L,this[V+1]=L>>>8,V+2},S.prototype.writeInt16BE=function(L,V,Re){return L=+L,V>>>=0,Re||Be(this,L,V,2,32767,-32768),this[V]=L>>>8,this[V+1]=255&L,V+2},S.prototype.writeInt32LE=function(L,V,Re){return L=+L,V>>>=0,Re||Be(this,L,V,4,2147483647,-2147483648),this[V]=255&L,this[V+1]=L>>>8,this[V+2]=L>>>16,this[V+3]=L>>>24,V+4},S.prototype.writeInt32BE=function(L,V,Re){return L=+L,V>>>=0,Re||Be(this,L,V,4,2147483647,-2147483648),L<0&&(L=4294967295+L+1),this[V]=L>>>24,this[V+1]=L>>>16,this[V+2]=L>>>8,this[V+3]=255&L,V+4},S.prototype.writeBigInt64LE=Me(function(L,V=0){return Ut(this,L,V,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),S.prototype.writeBigInt64BE=Me(function(L,V=0){return Ke(this,L,V,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),S.prototype.writeFloatLE=function(L,V,Re){return Xe(this,L,V,!0,Re)},S.prototype.writeFloatBE=function(L,V,Re){return Xe(this,L,V,!1,Re)},S.prototype.writeDoubleLE=function(L,V,Re){return Ge(this,L,V,!0,Re)},S.prototype.writeDoubleBE=function(L,V,Re){return Ge(this,L,V,!1,Re)},S.prototype.copy=function(L,V,Re,bt){if(!S.isBuffer(L))throw new TypeError("argument should be a Buffer");if(Re||(Re=0),!bt&&0!==bt&&(bt=this.length),V>=L.length&&(V=L.length),V||(V=0),bt>0&&bt=this.length)throw new RangeError("Index out of range");if(bt<0)throw new RangeError("sourceEnd out of bounds");bt>this.length&&(bt=this.length),L.length-V>>=0,Re=void 0===Re?this.length:Re>>>0,L||(L=0),"number"==typeof L)for(mt=V;mt=Re+4;V-=3)L=`_${W.slice(V-3,V)}${L}`;return`${W.slice(0,V)}${L}`}function tn(W,L,V,Re,bt,mt){if(W>V||W3?0===L||L===BigInt(0)?`>= 0${At} and < 2${At} ** ${8*(mt+1)}${At}`:`>= -(2${At} ** ${8*(mt+1)-1}${At}) and < 2 ** ${8*(mt+1)-1}${At}`:`>= ${L}${At} and <= ${V}${At}`,new pt.ERR_OUT_OF_RANGE("value",Ln,W)}!function Nt(W,L,V){pn(L,"offset"),(void 0===W[L]||void 0===W[L+V])&&Wn(L,W.length-(V+1))}(Re,bt,mt)}function pn(W,L){if("number"!=typeof W)throw new pt.ERR_INVALID_ARG_TYPE(L,"number",W)}function Wn(W,L,V){throw Math.floor(W)!==W?(pn(W,V),new pt.ERR_OUT_OF_RANGE(V||"offset","an integer",W)):L<0?new pt.ERR_BUFFER_OUT_OF_BOUNDS:new pt.ERR_OUT_OF_RANGE(V||"offset",`>= ${V?1:0} and <= ${L}`,W)}se("ERR_BUFFER_OUT_OF_BOUNDS",function(W){return W?`${W} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),se("ERR_INVALID_ARG_TYPE",function(W,L){return`The "${W}" argument must be of type number. Received type ${typeof L}`},TypeError),se("ERR_OUT_OF_RANGE",function(W,L,V){let Re=`The value of "${W}" is out of range.`,bt=V;return Number.isInteger(V)&&Math.abs(V)>2**32?bt=qe(String(V)):"bigint"==typeof V&&(bt=String(V),(V>BigInt(2)**BigInt(32)||V<-(BigInt(2)**BigInt(32)))&&(bt=qe(bt)),bt+="n"),Re+=` It must be ${L}. Received ${bt}`,Re},RangeError);const Pt=/[^+/0-9A-Za-z-_]/g;function an(W,L){let V;L=L||1/0;const Re=W.length;let bt=null;const mt=[];for(let At=0;At55295&&V<57344){if(!bt){if(V>56319){(L-=3)>-1&&mt.push(239,191,189);continue}if(At+1===Re){(L-=3)>-1&&mt.push(239,191,189);continue}bt=V;continue}if(V<56320){(L-=3)>-1&&mt.push(239,191,189),bt=V;continue}V=65536+(bt-55296<<10|V-56320)}else bt&&(L-=3)>-1&&mt.push(239,191,189);if(bt=null,V<128){if((L-=1)<0)break;mt.push(V)}else if(V<2048){if((L-=2)<0)break;mt.push(V>>6|192,63&V|128)}else if(V<65536){if((L-=3)<0)break;mt.push(V>>12|224,V>>6&63|128,63&V|128)}else{if(!(V<1114112))throw new Error("Invalid code point");if((L-=4)<0)break;mt.push(V>>18|240,V>>12&63|128,V>>6&63|128,63&V|128)}}return mt}function Xt(W){return a.toByteArray(function en(W){if((W=(W=W.split("=")[0]).trim().replace(Pt,"")).length<2)return"";for(;W.length%4!=0;)W+="=";return W}(W))}function Mt(W,L,V,Re){let bt;for(bt=0;bt=L.length||bt>=W.length);++bt)L[bt+V]=W[bt];return bt}function Gt(W,L){return W instanceof L||null!=W&&null!=W.constructor&&null!=W.constructor.name&&W.constructor.name===L.name}function Ot(W){return W!=W}const Ie=function(){const W="0123456789abcdef",L=new Array(256);for(let V=0;V<16;++V){const Re=16*V;for(let bt=0;bt<16;++bt)L[Re+bt]=W[V]+W[bt]}return L}();function Me(W){return typeof BigInt>"u"?nt:W}function nt(){throw new Error("BigInt not supported")}},9859:(o,s)=>{s.read=function(r,i,a,c,y){var w,C,A=8*y-c-1,S=(1<>1,k=-7,R=a?y-1:0,G=a?-1:1,Z=r[i+R];for(R+=G,w=Z&(1<<-k)-1,Z>>=-k,k+=A;k>0;w=256*w+r[i+R],R+=G,k-=8);for(C=w&(1<<-k)-1,w>>=-k,k+=c;k>0;C=256*C+r[i+R],R+=G,k-=8);if(0===w)w=1-T;else{if(w===S)return C?NaN:1/0*(Z?-1:1);C+=Math.pow(2,c),w-=T}return(Z?-1:1)*C*Math.pow(2,w-c)},s.write=function(r,i,a,c,y,w){var C,A,S,T=8*w-y-1,k=(1<>1,G=23===y?Math.pow(2,-24)-Math.pow(2,-77):0,Z=c?0:w-1,te=c?1:-1,we=i<0||0===i&&1/i<0?1:0;for(i=Math.abs(i),isNaN(i)||i===1/0?(A=isNaN(i)?1:0,C=k):(C=Math.floor(Math.log(i)/Math.LN2),i*(S=Math.pow(2,-C))<1&&(C--,S*=2),(i+=C+R>=1?G/S:G*Math.pow(2,1-R))*S>=2&&(C++,S/=2),C+R>=k?(A=0,C=k):C+R>=1?(A=(i*S-1)*Math.pow(2,y),C+=R):(A=i*Math.pow(2,R-1)*Math.pow(2,y),C=0));y>=8;r[a+Z]=255&A,Z+=te,A/=256,y-=8);for(C=C<0;r[a+Z]=255&C,Z+=te,C/=256,T-=8);r[a+Z-te]|=128*we}},230:o=>{o.exports=function a(c,y,w){function C(T,k){if(!y[T]){if(!c[T]){if(A)return A(T,!0);var G=new Error("Cannot find module '"+T+"'");throw G.code="MODULE_NOT_FOUND",G}var Z=y[T]={exports:{}};c[T][0].call(Z.exports,function(te){return C(c[T][1][te]||te)},Z,Z.exports,a,c,y,w)}return y[T].exports}for(var A=void 0,S=0;S"u"&&a(3);var R=Promise;function G(me,tt){tt&&me.then(function(Oe){tt(null,Oe)},function(Oe){tt(Oe)})}function Z(me,tt,Oe){"function"==typeof tt&&me.then(tt),"function"==typeof Oe&&me.catch(Oe)}function te(me){return"string"!=typeof me&&(console.warn(me+" used as a key, but it is not a string."),me=String(me)),me}function we(){if(arguments.length&&"function"==typeof arguments[arguments.length-1])return arguments[arguments.length-1]}var _e="local-forage-detect-blob-support",pe=void 0,Te={},Ce=Object.prototype.toString,Ne="readonly",Se="readwrite";function xe(me){for(var tt=me.length,Oe=new ArrayBuffer(tt),ht=new Uint8Array(Oe),Vt=0;Vt=43)}}).catch(function(){return!1})}(me).then(function(tt){return pe=tt})}function ke(me){var tt=Te[me.name],Oe={};Oe.promise=new R(function(ht,Vt){Oe.resolve=ht,Oe.reject=Vt}),tt.deferredOperations.push(Oe),tt.dbReady=tt.dbReady?tt.dbReady.then(function(){return Oe.promise}):Oe.promise}function Ue(me){var Oe=Te[me.name].deferredOperations.pop();if(Oe)return Oe.resolve(),Oe.promise}function st(me,tt){var ht=Te[me.name].deferredOperations.pop();if(ht)return ht.reject(tt),ht.promise}function ft(me,tt){return new R(function(Oe,ht){if(Te[me.name]=Te[me.name]||{forages:[],db:null,dbReady:null,deferredOperations:[]},me.db){if(!tt)return Oe(me.db);ke(me),me.db.close()}var Vt=[me.name];tt&&Vt.push(me.version);var kt=S.open.apply(S,Vt);tt&&(kt.onupgradeneeded=function(hn){var Cn=kt.result;try{Cn.createObjectStore(me.storeName),hn.oldVersion<=1&&Cn.createObjectStore(_e)}catch(An){if("ConstraintError"!==An.name)throw An;console.warn('The database "'+me.name+'" has been upgraded from version '+hn.oldVersion+" to version "+hn.newVersion+', but the storage "'+me.storeName+'" already exists.')}}),kt.onerror=function(hn){hn.preventDefault(),ht(kt.error)},kt.onsuccess=function(){var hn=kt.result;hn.onversionchange=function(Cn){Cn.target.close()},Oe(hn),Ue(me)}})}function _t(me){return ft(me,!1)}function ot(me){return ft(me,!0)}function Yt(me,tt){if(!me.db)return!0;var Oe=!me.db.objectStoreNames.contains(me.storeName),Vt=me.version>me.db.version;if(me.versionme.version&&(me.version=kt)}return!0}return!1}function wn(me){return k([xe(atob(me.data))],{type:me.type})}function $n(me){return me&&me.__local_forage_encoded_blob}function En(me){var tt=this,Oe=tt._initReady().then(function(){var ht=Te[tt._dbInfo.name];if(ht&&ht.dbReady)return ht.dbReady});return Z(Oe,me,me),Oe}function wt(me,tt,Oe,ht){void 0===ht&&(ht=1);try{var Vt=me.db.transaction(me.storeName,tt);Oe(null,Vt)}catch(kt){if(ht>0&&(!me.db||"InvalidStateError"===kt.name||"NotFoundError"===kt.name))return R.resolve().then(function(){if(!me.db||"NotFoundError"===kt.name&&!me.db.objectStoreNames.contains(me.storeName)&&me.version<=me.db.version)return me.db&&(me.version=me.db.version+1),ot(me)}).then(function(){return function Ze(me){ke(me);for(var tt=Te[me.name],Oe=tt.forages,ht=0;ht>4,Un[Vt++]=(15&hn)<<4|Cn>>2,Un[Vt++]=(3&Cn)<<6|63&An;return On}function At(me){var ht,tt=new Uint8Array(me),Oe="";for(ht=0;ht>2],Oe+=Wn[(3&tt[ht])<<4|tt[ht+1]>>4],Oe+=Wn[(15&tt[ht+1])<<2|tt[ht+2]>>6],Oe+=Wn[63&tt[ht+2]];return tt.length%3==2?Oe=Oe.substring(0,Oe.length-1)+"=":tt.length%3==1&&(Oe=Oe.substring(0,Oe.length-2)+"=="),Oe}var gn={serialize:function Ln(me,tt){var Oe="";if(me&&(Oe=bt.call(me)),me&&("[object ArrayBuffer]"===Oe||me.buffer&&"[object ArrayBuffer]"===bt.call(me.buffer))){var ht,Vt=an;me instanceof ArrayBuffer?(ht=me,Vt+=Sn):(ht=me.buffer,"[object Int8Array]"===Oe?Vt+="si08":"[object Uint8Array]"===Oe?Vt+="ui08":"[object Uint8ClampedArray]"===Oe?Vt+="uic8":"[object Int16Array]"===Oe?Vt+="si16":"[object Uint16Array]"===Oe?Vt+="ur16":"[object Int32Array]"===Oe?Vt+="si32":"[object Uint32Array]"===Oe?Vt+=W:"[object Float32Array]"===Oe?Vt+=L:"[object Float64Array]"===Oe?Vt+=V:tt(new Error("Failed to get type for BinaryArray"))),tt(Vt+At(ht))}else if("[object Blob]"===Oe){var kt=new FileReader;kt.onload=function(){var hn="~~local_forage_type~"+me.type+"~"+At(this.result);tt(an+Xt+hn)},kt.readAsArrayBuffer(me)}else try{tt(JSON.stringify(me))}catch(hn){console.error("Couldn't convert value into a JSON string: ",me),tt(null,hn)}},deserialize:function Zt(me){if(me.substring(0,9)!==an)return JSON.parse(me);var ht,tt=me.substring(13),Oe=me.substring(9,13);if(Oe===Xt&&en.test(tt)){var Vt=tt.match(en);ht=Vt[1],tt=tt.substring(Vt[0].length)}var kt=mt(tt);switch(Oe){case Sn:return kt;case Xt:return k([kt],{type:ht});case"si08":return new Int8Array(kt);case"ui08":return new Uint8Array(kt);case"uic8":return new Uint8ClampedArray(kt);case"si16":return new Int16Array(kt);case"ur16":return new Uint16Array(kt);case"si32":return new Int32Array(kt);case W:return new Uint32Array(kt);case L:return new Float32Array(kt);case V:return new Float64Array(kt);default:throw new Error("Unkown type: "+Oe)}},stringToBuffer:mt,bufferToString:At};function In(me,tt,Oe,ht){me.executeSql("CREATE TABLE IF NOT EXISTS "+tt.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],Oe,ht)}function Hn(me,tt,Oe,ht,Vt,kt){me.executeSql(Oe,ht,Vt,function(hn,Cn){Cn.code===Cn.SYNTAX_ERR?hn.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[tt.storeName],function(An,On){On.rows.length?kt(An,Cn):In(An,tt,function(){An.executeSql(Oe,ht,Vt,kt)},kt)},kt):kt(hn,Cn)},kt)}function Xr(me,tt,Oe,ht){var Vt=this;me=te(me);var kt=new R(function(hn,Cn){Vt.ready().then(function(){void 0===tt&&(tt=null);var An=tt,On=Vt._dbInfo;On.serializer.serialize(tt,function(Un,Jn){Jn?Cn(Jn):On.db.transaction(function(sr){Hn(sr,On,"INSERT OR REPLACE INTO "+On.storeName+" (key, value) VALUES (?, ?)",[me,Un],function(){hn(An)},function(Ir,pr){Cn(pr)})},function(sr){if(sr.code===sr.QUOTA_ERR){if(ht>0)return void hn(Xr.apply(Vt,[me,An,Oe,ht-1]));Cn(sr)}})})}).catch(Cn)});return G(kt,Oe),kt}var _n={_driver:"webSQLStorage",_initStorage:function Bn(me){var tt=this,Oe={db:null};if(me)for(var ht in me)Oe[ht]="string"!=typeof me[ht]?me[ht].toString():me[ht];var Vt=new R(function(kt,hn){try{Oe.db=openDatabase(Oe.name,String(Oe.version),Oe.description,Oe.size)}catch(Cn){return hn(Cn)}Oe.db.transaction(function(Cn){In(Cn,Oe,function(){tt._dbInfo=Oe,kt()},function(An,On){hn(On)})},hn)});return Oe.serializer=gn,Vt},_support:function pn(){return"function"==typeof openDatabase}(),iterate:function ei(me,tt){var Oe=this,ht=new R(function(Vt,kt){Oe.ready().then(function(){var hn=Oe._dbInfo;hn.db.transaction(function(Cn){Hn(Cn,hn,"SELECT * FROM "+hn.storeName,[],function(An,On){for(var Un=On.rows,Jn=Un.length,sr=0;sr '__WebKitDatabaseInfoTable__'",[],function(Vt,kt){for(var hn=[],Cn=0;Cn0}var Uo={_driver:"localStorageWrapper",_initStorage:function Si(me){var Oe={};if(me)for(var ht in me)Oe[ht]=me[ht];return Oe.keyPrefix=Mr(me,this._defaultConfig),ci()?(this._dbInfo=Oe,Oe.serializer=gn,R.resolve()):R.reject()},_support:function or(){try{return typeof localStorage<"u"&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}(),iterate:function Je(me,tt){var Oe=this,ht=Oe.ready().then(function(){for(var Vt=Oe._dbInfo,kt=Vt.keyPrefix,hn=kt.length,Cn=localStorage.length,An=1,On=0;On=0;Vt--){var kt=localStorage.key(Vt);0===kt.indexOf(ht)&&localStorage.removeItem(kt)}});return G(Oe,me),Oe},length:function zn(me){var Oe=this.keys().then(function(ht){return ht.length});return G(Oe,me),Oe},key:function St(me,tt){var Oe=this,ht=Oe.ready().then(function(){var kt,Vt=Oe._dbInfo;try{kt=localStorage.key(me)}catch{kt=null}return kt&&(kt=kt.substring(Vt.keyPrefix.length)),kt});return G(ht,tt),ht},keys:function zt(me){var tt=this,Oe=tt.ready().then(function(){for(var ht=tt._dbInfo,Vt=localStorage.length,kt=[],hn=0;hn=0;hn--){var Cn=localStorage.key(hn);0===Cn.indexOf(kt)&&localStorage.removeItem(Cn)}}):R.reject("Invalid arguments"),tt),Vt}},oi=function(tt,Oe){return tt===Oe||"number"==typeof tt&&"number"==typeof Oe&&isNaN(tt)&&isNaN(Oe)},ns=function(tt,Oe){for(var ht=tt.length,Vt=0;Vt"u"?"undefined":w(Oe))){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var ht in Oe){if("storeName"===ht&&(Oe[ht]=Oe[ht].replace(/\W/g,"_")),"version"===ht&&"number"!=typeof Oe[ht])return new Error("Database version must be a number.");this._config[ht]=Oe[ht]}return!("driver"in Oe)||!Oe.driver||this.setDriver(this._config.driver)}return"string"==typeof Oe?this._config[Oe]:this._config},me.prototype.defineDriver=function(Oe,ht,Vt){var kt=new R(function(hn,Cn){try{var An=Oe._driver,On=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!Oe._driver)return void Cn(On);for(var Un=oo.concat("_initStorage"),Jn=0,sr=Un.length;Jn{"use strict";r.d(s,{t:()=>a});var i=r(8447);class a extends i.B{constructor(y){super(),this._value=y}get value(){return this.getValue()}_subscribe(y){const w=super._subscribe(y);return!w.closed&&y.next(this._value),w}getValue(){const{hasError:y,thrownError:w,_value:C}=this;if(y)throw w;return this._throwIfClosed(),C}next(y){super.next(this._value=y)}}},1698:(o,s,r)=>{"use strict";r.d(s,{c:()=>S});var i=r(1540),a=r(5710),c=r(2563),y=r(6742),w=r(3305),C=r(1126),A=r(4171);let S=(()=>{class G{constructor(te){te&&(this._subscribe=te)}lift(te){const we=new G;return we.source=this,we.operator=te,we}subscribe(te,we,_e){const pe=function R(G){return G&&G instanceof i.vU||function k(G){return G&&(0,C.T)(G.next)&&(0,C.T)(G.error)&&(0,C.T)(G.complete)}(G)&&(0,a.Uv)(G)}(te)?te:new i.Ms(te,we,_e);return(0,A.Y)(()=>{const{operator:Te,source:Ce}=this;pe.add(Te?Te.call(pe,Ce):Ce?this._subscribe(pe):this._trySubscribe(pe))}),pe}_trySubscribe(te){try{return this._subscribe(te)}catch(we){te.error(we)}}forEach(te,we){return new(we=T(we))((_e,pe)=>{const Te=new i.Ms({next:Ce=>{try{te(Ce)}catch(Ne){pe(Ne),Te.unsubscribe()}},error:pe,complete:_e});this.subscribe(Te)})}_subscribe(te){var we;return null===(we=this.source)||void 0===we?void 0:we.subscribe(te)}[c.s](){return this}pipe(...te){return(0,y.m)(te)(this)}toPromise(te){return new(te=T(te))((we,_e)=>{let pe;this.subscribe(Te=>pe=Te,Te=>_e(Te),()=>we(pe))})}}return G.create=Z=>new G(Z),G})();function T(G){var Z;return null!==(Z=G??w.$.Promise)&&void 0!==Z?Z:Promise}},7838:(o,s,r)=>{"use strict";r.d(s,{m:()=>c});var i=r(8447),a=r(6188);class c extends i.B{constructor(w=1/0,C=1/0,A=a.U){super(),this._bufferSize=w,this._windowTime=C,this._timestampProvider=A,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:A,_infiniteTimeWindow:S,_timestampProvider:T,_windowTime:k}=this;C||(A.push(w),!S&&A.push(T.now()+k)),this._trimBuffer(),super.next(w)}_subscribe(w){this._throwIfClosed(),this._trimBuffer();const C=this._innerSubscribe(w),{_infiniteTimeWindow:A,_buffer:S}=this,T=S.slice();for(let k=0;k{"use strict";r.d(s,{B:()=>A});var i=r(1698),a=r(5710);const y=(0,r(5644).L)(T=>function(){T(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var w=r(5891),C=r(4171);let A=(()=>{class T extends i.c{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(R){const G=new S(this,this);return G.operator=R,G}_throwIfClosed(){if(this.closed)throw new y}next(R){(0,C.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const G of this.currentObservers)G.next(R)}})}error(R){(0,C.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=R;const{observers:G}=this;for(;G.length;)G.shift().error(R)}})}complete(){(0,C.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:R}=this;for(;R.length;)R.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var R;return(null===(R=this.observers)||void 0===R?void 0:R.length)>0}_trySubscribe(R){return this._throwIfClosed(),super._trySubscribe(R)}_subscribe(R){return this._throwIfClosed(),this._checkFinalizedStatuses(R),this._innerSubscribe(R)}_innerSubscribe(R){const{hasError:G,isStopped:Z,observers:te}=this;return G||Z?a.Kn:(this.currentObservers=null,te.push(R),new a.yU(()=>{this.currentObservers=null,(0,w.o)(te,R)}))}_checkFinalizedStatuses(R){const{hasError:G,thrownError:Z,isStopped:te}=this;G?R.error(Z):te&&R.complete()}asObservable(){const R=new i.c;return R.source=this,R}}return T.create=(k,R)=>new S(k,R),T})();class S extends A{constructor(k,R){super(),this.destination=k,this.source=R}next(k){var R,G;null===(G=null===(R=this.destination)||void 0===R?void 0:R.next)||void 0===G||G.call(R,k)}error(k){var R,G;null===(G=null===(R=this.destination)||void 0===R?void 0:R.error)||void 0===G||G.call(R,k)}complete(){var k,R;null===(R=null===(k=this.destination)||void 0===k?void 0:k.complete)||void 0===R||R.call(k)}_subscribe(k){var R,G;return null!==(G=null===(R=this.source)||void 0===R?void 0:R.subscribe(k))&&void 0!==G?G:a.Kn}}},1540:(o,s,r)=>{"use strict";r.d(s,{Ms:()=>_e,vU:()=>G});var i=r(1126),a=r(5710),c=r(3305),y=r(191),w=r(850);const C=T("C",void 0,void 0);function T(Se,xe,ae){return{kind:Se,value:xe,error:ae}}var k=r(3695),R=r(4171);class G extends a.yU{constructor(xe){super(),this.isStopped=!1,xe?(this.destination=xe,(0,a.Uv)(xe)&&xe.add(this)):this.destination=Ne}static create(xe,ae,le){return new _e(xe,ae,le)}next(xe){this.isStopped?Ce(function S(Se){return T("N",Se,void 0)}(xe),this):this._next(xe)}error(xe){this.isStopped?Ce(function A(Se){return T("E",void 0,Se)}(xe),this):(this.isStopped=!0,this._error(xe))}complete(){this.isStopped?Ce(C,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(xe){this.destination.next(xe)}_error(xe){try{this.destination.error(xe)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const Z=Function.prototype.bind;function te(Se,xe){return Z.call(Se,xe)}class we{constructor(xe){this.partialObserver=xe}next(xe){const{partialObserver:ae}=this;if(ae.next)try{ae.next(xe)}catch(le){pe(le)}}error(xe){const{partialObserver:ae}=this;if(ae.error)try{ae.error(xe)}catch(le){pe(le)}else pe(xe)}complete(){const{partialObserver:xe}=this;if(xe.complete)try{xe.complete()}catch(ae){pe(ae)}}}class _e extends G{constructor(xe,ae,le){let ke;if(super(),(0,i.T)(xe)||!xe)ke={next:xe??void 0,error:ae??void 0,complete:le??void 0};else{let Ue;this&&c.$.useDeprecatedNextContext?(Ue=Object.create(xe),Ue.unsubscribe=()=>this.unsubscribe(),ke={next:xe.next&&te(xe.next,Ue),error:xe.error&&te(xe.error,Ue),complete:xe.complete&&te(xe.complete,Ue)}):ke=xe}this.destination=new we(ke)}}function pe(Se){c.$.useDeprecatedSynchronousErrorHandling?(0,R.l)(Se):(0,y.m)(Se)}function Ce(Se,xe){const{onStoppedNotification:ae}=c.$;ae&&k.f.setTimeout(()=>ae(Se,xe))}const Ne={closed:!0,next:w.l,error:function Te(Se){throw Se},complete:w.l}},5710:(o,s,r)=>{"use strict";r.d(s,{Kn:()=>C,yU:()=>w,Uv:()=>A});var i=r(1126);const c=(0,r(5644).L)(T=>function(R){T(this),this.message=R?`${R.length} errors occurred during unsubscription:\n${R.map((G,Z)=>`${Z+1}) ${G.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=R});var y=r(5891);class w{constructor(k){this.initialTeardown=k,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let k;if(!this.closed){this.closed=!0;const{_parentage:R}=this;if(R)if(this._parentage=null,Array.isArray(R))for(const te of R)te.remove(this);else R.remove(this);const{initialTeardown:G}=this;if((0,i.T)(G))try{G()}catch(te){k=te instanceof c?te.errors:[te]}const{_finalizers:Z}=this;if(Z){this._finalizers=null;for(const te of Z)try{S(te)}catch(we){k=k??[],we instanceof c?k=[...k,...we.errors]:k.push(we)}}if(k)throw new c(k)}}add(k){var R;if(k&&k!==this)if(this.closed)S(k);else{if(k instanceof w){if(k.closed||k._hasParent(this))return;k._addParent(this)}(this._finalizers=null!==(R=this._finalizers)&&void 0!==R?R:[]).push(k)}}_hasParent(k){const{_parentage:R}=this;return R===k||Array.isArray(R)&&R.includes(k)}_addParent(k){const{_parentage:R}=this;this._parentage=Array.isArray(R)?(R.push(k),R):R?[R,k]:k}_removeParent(k){const{_parentage:R}=this;R===k?this._parentage=null:Array.isArray(R)&&(0,y.o)(R,k)}remove(k){const{_finalizers:R}=this;R&&(0,y.o)(R,k),k instanceof w&&k._removeParent(this)}}w.EMPTY=(()=>{const T=new w;return T.closed=!0,T})();const C=w.EMPTY;function A(T){return T instanceof w||T&&"closed"in T&&(0,i.T)(T.remove)&&(0,i.T)(T.add)&&(0,i.T)(T.unsubscribe)}function S(T){(0,i.T)(T)?T():T.unsubscribe()}},3305:(o,s,r)=>{"use strict";r.d(s,{$:()=>i});const i={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},1642:(o,s,r)=>{"use strict";r.d(s,{G:()=>C});var i=r(1698),a=r(5710),c=r(3589),y=r(2483),w=r(5351);class C extends i.c{constructor(S,T){super(),this.source=S,this.subjectFactory=T,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 T=this.getSubject();S.add(this.source.subscribe((0,y._)(T,void 0,()=>{this._teardown(),T.complete()},k=>{this._teardown(),T.error(k)},()=>this._teardown()))),S.closed&&(this._connection=null,S=a.yU.EMPTY)}return S}refCount(){return(0,c.B)()(this)}}},6627:(o,s,r)=>{"use strict";r.d(s,{z:()=>k});var i=r(1698),a=r(3740),c=r(1787),y=r(9220),w=r(3759),C=r(4327),A=r(9321),S=r(2483),T=r(8266);function k(...Z){const te=(0,C.lI)(Z),we=(0,C.ms)(Z),{args:_e,keys:pe}=(0,a.D)(Z);if(0===_e.length)return(0,c.H)([],te);const Te=new i.c(function R(Z,te,we=y.D){return _e=>{G(te,()=>{const{length:pe}=Z,Te=new Array(pe);let Ce=pe,Ne=pe;for(let Se=0;Se{const xe=(0,c.H)(Z[Se],te);let ae=!1;xe.subscribe((0,S._)(_e,le=>{Te[Se]=le,ae||(ae=!0,Ne--),Ne||_e.next(we(Te.slice()))},()=>{--Ce||_e.complete()}))},_e)},_e)}}(_e,te,pe?Ce=>(0,A.e)(pe,Ce):y.D));return we?Te.pipe((0,w.I)(we)):Te}function G(Z,te,we){Z?(0,T.N)(we,Z,te):te()}},3569:(o,s,r)=>{"use strict";r.d(s,{x:()=>w});var i=r(1890),c=r(4327),y=r(1787);function w(...C){return function a(){return(0,i.U)(1)}()((0,y.H)(C,(0,c.lI)(C)))}},6381:(o,s,r)=>{"use strict";r.d(s,{v:()=>c});var i=r(1698),a=r(7225);function c(y){return new i.c(w=>{(0,a.Tg)(y()).subscribe(w)})}},6564:(o,s,r)=>{"use strict";r.d(s,{w:()=>a});const a=new(r(1698).c)(w=>w.complete())},2653:(o,s,r)=>{"use strict";r.d(s,{p:()=>S});var i=r(1698),a=r(3740),c=r(7225),y=r(4327),w=r(2483),C=r(3759),A=r(9321);function S(...T){const k=(0,y.ms)(T),{args:R,keys:G}=(0,a.D)(T),Z=new i.c(te=>{const{length:we}=R;if(!we)return void te.complete();const _e=new Array(we);let pe=we,Te=we;for(let Ce=0;Ce{Ne||(Ne=!0,Te--),_e[Ce]=Se},()=>pe--,void 0,()=>{(!pe||!Ne)&&(Te||te.next(G?(0,A.e)(G,_e):_e),te.complete())}))}});return k?Z.pipe((0,C.I)(k)):Z}},1787:(o,s,r)=>{"use strict";r.d(s,{H:()=>le});var i=r(7225),a=r(8266),c=r(5351),y=r(2483);function w(ke,Ue=0){return(0,c.N)((st,ft)=>{st.subscribe((0,y._)(ft,_t=>(0,a.N)(ft,ke,()=>ft.next(_t),Ue),()=>(0,a.N)(ft,ke,()=>ft.complete(),Ue),_t=>(0,a.N)(ft,ke,()=>ft.error(_t),Ue)))})}function C(ke,Ue=0){return(0,c.N)((st,ft)=>{ft.add(ke.schedule(()=>st.subscribe(ft),Ue))})}var T=r(1698),R=r(6952),G=r(1126);function te(ke,Ue){if(!ke)throw new Error("Iterable cannot be null");return new T.c(st=>{(0,a.N)(st,Ue,()=>{const ft=ke[Symbol.asyncIterator]();(0,a.N)(st,Ue,()=>{ft.next().then(_t=>{_t.done?st.complete():st.next(_t.value)})},0,!0)})})}var we=r(6600),_e=r(6505),pe=r(6786),Te=r(4876),Ce=r(8394),Ne=r(8810),Se=r(3173);function le(ke,Ue){return Ue?function ae(ke,Ue){if(null!=ke){if((0,we.l)(ke))return function A(ke,Ue){return(0,i.Tg)(ke).pipe(C(Ue),w(Ue))}(ke,Ue);if((0,pe.X)(ke))return function k(ke,Ue){return new T.c(st=>{let ft=0;return Ue.schedule(function(){ft===ke.length?st.complete():(st.next(ke[ft++]),st.closed||this.schedule())})})}(ke,Ue);if((0,_e.y)(ke))return function S(ke,Ue){return(0,i.Tg)(ke).pipe(C(Ue),w(Ue))}(ke,Ue);if((0,Ce.T)(ke))return te(ke,Ue);if((0,Te.x)(ke))return function Z(ke,Ue){return new T.c(st=>{let ft;return(0,a.N)(st,Ue,()=>{ft=ke[R.l](),(0,a.N)(st,Ue,()=>{let _t,ot;try{({value:_t,done:ot}=ft.next())}catch(Yt){return void st.error(Yt)}ot?st.complete():st.next(_t)},0,!0)}),()=>(0,G.T)(ft?.return)&&ft.return()})}(ke,Ue);if((0,Se.U)(ke))return function xe(ke,Ue){return te((0,Se.C)(ke),Ue)}(ke,Ue)}throw(0,Ne.L)(ke)}(ke,Ue):(0,i.Tg)(ke)}},909:(o,s,r)=>{"use strict";r.d(s,{R:()=>k});var i=r(7225),a=r(1698),c=r(5823),y=r(6786),w=r(1126),C=r(3759);const A=["addListener","removeListener"],S=["addEventListener","removeEventListener"],T=["on","off"];function k(we,_e,pe,Te){if((0,w.T)(pe)&&(Te=pe,pe=void 0),Te)return k(we,_e,pe).pipe((0,C.I)(Te));const[Ce,Ne]=function te(we){return(0,w.T)(we.addEventListener)&&(0,w.T)(we.removeEventListener)}(we)?S.map(Se=>xe=>we[Se](_e,xe,pe)):function G(we){return(0,w.T)(we.addListener)&&(0,w.T)(we.removeListener)}(we)?A.map(R(we,_e)):function Z(we){return(0,w.T)(we.on)&&(0,w.T)(we.off)}(we)?T.map(R(we,_e)):[];if(!Ce&&(0,y.X)(we))return(0,c.Z)(Se=>k(Se,_e,pe))((0,i.Tg)(we));if(!Ce)throw new TypeError("Invalid event target");return new a.c(Se=>{const xe=(...ae)=>Se.next(1Ne(xe)})}function R(we,_e){return pe=>Te=>we[pe](_e,Te)}},7225:(o,s,r)=>{"use strict";r.d(s,{Tg:()=>Z});var i=r(1635),a=r(6786),c=r(6505),y=r(1698),w=r(6600),C=r(8394),A=r(8810),S=r(4876),T=r(3173),k=r(1126),R=r(191),G=r(2563);function Z(Se){if(Se instanceof y.c)return Se;if(null!=Se){if((0,w.l)(Se))return function te(Se){return new y.c(xe=>{const ae=Se[G.s]();if((0,k.T)(ae.subscribe))return ae.subscribe(xe);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(Se);if((0,a.X)(Se))return function we(Se){return new y.c(xe=>{for(let ae=0;ae{Se.then(ae=>{xe.closed||(xe.next(ae),xe.complete())},ae=>xe.error(ae)).then(null,R.m)})}(Se);if((0,C.T)(Se))return Te(Se);if((0,S.x)(Se))return function pe(Se){return new y.c(xe=>{for(const ae of Se)if(xe.next(ae),xe.closed)return;xe.complete()})}(Se);if((0,T.U)(Se))return function Ce(Se){return Te((0,T.C)(Se))}(Se)}throw(0,A.L)(Se)}function Te(Se){return new y.c(xe=>{(function Ne(Se,xe){var ae,le,ke,Ue;return(0,i.sH)(this,void 0,void 0,function*(){try{for(ae=(0,i.xN)(Se);!(le=yield ae.next()).done;)if(xe.next(le.value),xe.closed)return}catch(st){ke={error:st}}finally{try{le&&!le.done&&(Ue=ae.return)&&(yield Ue.call(ae))}finally{if(ke)throw ke.error}}xe.complete()})})(Se,xe).catch(ae=>xe.error(ae))})}},7509:(o,s,r)=>{"use strict";r.d(s,{h:()=>C});var i=r(1890),a=r(7225),c=r(6564),y=r(4327),w=r(1787);function C(...A){const S=(0,y.lI)(A),T=(0,y.R0)(A,1/0),k=A;return k.length?1===k.length?(0,a.Tg)(k[0]):(0,i.U)(T)((0,w.H)(k,S)):c.w}},3016:(o,s,r)=>{"use strict";r.d(s,{of:()=>c});var i=r(4327),a=r(1787);function c(...y){const w=(0,i.lI)(y);return(0,a.H)(y,w)}},8915:(o,s,r)=>{"use strict";r.d(s,{$:()=>c});var i=r(1698),a=r(1126);function c(y,w){const C=(0,a.T)(y)?y:()=>y,A=S=>S.error(C());return new i.c(w?S=>w.schedule(A,0,S):A)}},9587:(o,s,r)=>{"use strict";r.d(s,{O:()=>w});var i=r(1698),a=r(6061),c=r(9921);function w(C=0,A,S=a.b){let T=-1;return null!=A&&((0,c.m)(A)?S=A:T=A),new i.c(k=>{let R=function y(C){return C instanceof Date&&!isNaN(C)}(C)?+C-S.now():C;R<0&&(R=0);let G=0;return S.schedule(function(){k.closed||(k.next(G++),0<=T?this.schedule(void 0,T):k.complete())},R)})}},2483:(o,s,r)=>{"use strict";r.d(s,{_:()=>a});var i=r(1540);function a(y,w,C,A,S){return new c(y,w,C,A,S)}class c extends i.vU{constructor(w,C,A,S,T,k){super(w),this.onFinalize=T,this.shouldUnsubscribe=k,this._next=C?function(R){try{C(R)}catch(G){w.error(G)}}:super._next,this._error=S?function(R){try{S(R)}catch(G){w.error(G)}finally{this.unsubscribe()}}:super._error,this._complete=A?function(){try{A()}catch(R){w.error(R)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var w;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:C}=this;super.unsubscribe(),!C&&(null===(w=this.onFinalize)||void 0===w||w.call(this))}}}},5684:(o,s,r)=>{"use strict";r.d(s,{Z:()=>A});var i=r(6061),a=r(5351),c=r(7225),y=r(2483),C=r(9587);function A(S,T=i.E){return function w(S){return(0,a.N)((T,k)=>{let R=!1,G=null,Z=null,te=!1;const we=()=>{if(Z?.unsubscribe(),Z=null,R){R=!1;const pe=G;G=null,k.next(pe)}te&&k.complete()},_e=()=>{Z=null,te&&k.complete()};T.subscribe((0,y._)(k,pe=>{R=!0,G=pe,Z||(0,c.Tg)(S(pe)).subscribe(Z=(0,y._)(k,we,_e))},()=>{te=!0,(!R||!Z||Z.closed)&&k.complete()}))})}(()=>(0,C.O)(S,T))}},7178:(o,s,r)=>{"use strict";r.d(s,{W:()=>y});var i=r(7225),a=r(2483),c=r(5351);function y(w){return(0,c.N)((C,A)=>{let k,S=null,T=!1;S=C.subscribe((0,a._)(A,void 0,void 0,R=>{k=(0,i.Tg)(w(R,y(w)(C))),S?(S.unsubscribe(),S=null,k.subscribe(A)):T=!0})),T&&(S.unsubscribe(),S=null,k.subscribe(A))})}},1459:(o,s,r)=>{"use strict";r.d(s,{H:()=>c});var i=r(5823),a=r(1126);function c(y,w){return(0,a.T)(w)?(0,i.Z)(y,w,1):(0,i.Z)(y,1)}},8627:(o,s,r)=>{"use strict";r.d(s,{B:()=>y});var i=r(6061),a=r(5351),c=r(2483);function y(w,C=i.E){return(0,a.N)((A,S)=>{let T=null,k=null,R=null;const G=()=>{if(T){T.unsubscribe(),T=null;const te=k;k=null,S.next(te)}};function Z(){const te=R+w,we=C.now();if(we{k=te,R=C.now(),T||(T=C.schedule(Z,w),S.add(T))},()=>{G(),S.complete()},void 0,()=>{k=T=null}))})}},8136:(o,s,r)=>{"use strict";r.d(s,{c:()=>Z});var i=r(6061),a=r(3569),c=r(7610),y=r(5351),w=r(2483),C=r(850),S=r(6590),T=r(5823),k=r(7225);function R(te,we){return we?_e=>(0,a.x)(we.pipe((0,c.s)(1),function A(){return(0,y.N)((te,we)=>{te.subscribe((0,w._)(we,C.l))})}()),_e.pipe(R(te))):(0,T.Z)((_e,pe)=>(0,k.Tg)(te(_e,pe)).pipe((0,c.s)(1),(0,S.u)(_e)))}var G=r(9587);function Z(te,we=i.E){const _e=(0,G.O)(te,we);return R(()=>_e)}},6645:(o,s,r)=>{"use strict";r.d(s,{F:()=>y});var i=r(9220),a=r(5351),c=r(2483);function y(C,A=i.D){return C=C??w,(0,a.N)((S,T)=>{let k,R=!0;S.subscribe((0,c._)(T,G=>{const Z=A(G);(R||!C(k,Z))&&(R=!1,k=Z,T.next(G))}))})}function w(C,A){return C===A}},1483:(o,s,r)=>{"use strict";r.d(s,{p:()=>c});var i=r(5351),a=r(2483);function c(y,w){return(0,i.N)((C,A)=>{let S=0;C.subscribe((0,a._)(A,T=>y.call(w,T,S++)&&A.next(T)))})}},4447:(o,s,r)=>{"use strict";r.d(s,{j:()=>a});var i=r(5351);function a(c){return(0,i.N)((y,w)=>{try{y.subscribe(w)}finally{w.add(c)}})}},7947:(o,s,r)=>{"use strict";r.d(s,{T:()=>c});var i=r(5351),a=r(2483);function c(y,w){return(0,i.N)((C,A)=>{let S=0;C.subscribe((0,a._)(A,T=>{A.next(y.call(w,T,S++))}))})}},6590:(o,s,r)=>{"use strict";r.d(s,{u:()=>a});var i=r(7947);function a(c){return(0,i.T)(()=>c)}},1890:(o,s,r)=>{"use strict";r.d(s,{U:()=>c});var i=r(5823),a=r(9220);function c(y=1/0){return(0,i.Z)(a.D,y)}},5823:(o,s,r)=>{"use strict";r.d(s,{Z:()=>S});var i=r(7947),a=r(7225),c=r(5351),y=r(8266),w=r(2483),A=r(1126);function S(T,k,R=1/0){return(0,A.T)(k)?S((G,Z)=>(0,i.T)((te,we)=>k(G,te,Z,we))((0,a.Tg)(T(G,Z))),R):("number"==typeof k&&(R=k),(0,c.N)((G,Z)=>function C(T,k,R,G,Z,te,we,_e){const pe=[];let Te=0,Ce=0,Ne=!1;const Se=()=>{Ne&&!pe.length&&!Te&&k.complete()},xe=le=>Te{te&&k.next(le),Te++;let ke=!1;(0,a.Tg)(R(le,Ce++)).subscribe((0,w._)(k,Ue=>{Z?.(Ue),te?xe(Ue):k.next(Ue)},()=>{ke=!0},void 0,()=>{if(ke)try{for(Te--;pe.length&&Teae(Ue)):ae(Ue)}Se()}catch(Ue){k.error(Ue)}}))};return T.subscribe((0,w._)(k,xe,()=>{Ne=!0,Se()})),()=>{_e?.()}}(G,Z,T,R)))}},3589:(o,s,r)=>{"use strict";r.d(s,{B:()=>c});var i=r(5351),a=r(2483);function c(){return(0,i.N)((y,w)=>{let C=null;y._refCount++;const A=(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,T=C;C=null,S&&(!T||S===T)&&S.unsubscribe(),w.unsubscribe()});y.subscribe(A),A.closed||(C=y.connect())})}},5903:(o,s,r)=>{"use strict";r.d(s,{L:()=>C});var i=r(5351),a=r(2483),c=r(9220),y=r(9587),w=r(7225);function C(A=1/0){let S;S=A&&"object"==typeof A?A:{count:A};const{count:T=1/0,delay:k,resetOnSuccess:R=!1}=S;return T<=0?c.D:(0,i.N)((G,Z)=>{let we,te=0;const _e=()=>{let pe=!1;we=G.subscribe((0,a._)(Z,Te=>{R&&(te=0),Z.next(Te)},void 0,Te=>{if(te++{we?(we.unsubscribe(),we=null,_e()):pe=!0};if(null!=k){const Ne="number"==typeof k?(0,y.O)(k):(0,w.Tg)(k(Te,te)),Se=(0,a._)(Z,()=>{Se.unsubscribe(),Ce()},()=>{Z.complete()});Ne.subscribe(Se)}else Ce()}else Z.error(Te)})),pe&&(we.unsubscribe(),we=null,_e())};_e()})}},36:(o,s,r)=>{"use strict";r.d(s,{S:()=>a});var i=r(2483);function a(c,y,w,C,A){return(S,T)=>{let k=w,R=y,G=0;S.subscribe((0,i._)(T,Z=>{const te=G++;R=k?c(R,Z,te):(k=!0,Z),C&&T.next(R)},A&&(()=>{k&&T.next(R),T.complete()})))}}},6218:(o,s,r)=>{"use strict";r.d(s,{u:()=>w});var i=r(7225),a=r(8447),c=r(1540),y=r(5351);function w(A={}){const{connector:S=()=>new a.B,resetOnError:T=!0,resetOnComplete:k=!0,resetOnRefCountZero:R=!0}=A;return G=>{let Z,te,we,_e=0,pe=!1,Te=!1;const Ce=()=>{te?.unsubscribe(),te=void 0},Ne=()=>{Ce(),Z=we=void 0,pe=Te=!1},Se=()=>{const xe=Z;Ne(),xe?.unsubscribe()};return(0,y.N)((xe,ae)=>{_e++,!Te&&!pe&&Ce();const le=we=we??S();ae.add(()=>{_e--,0===_e&&!Te&&!pe&&(te=C(Se,R))}),le.subscribe(ae),!Z&&_e>0&&(Z=new c.Ms({next:ke=>le.next(ke),error:ke=>{Te=!0,Ce(),te=C(Ne,T,ke),le.error(ke)},complete:()=>{pe=!0,Ce(),te=C(Ne,k),le.complete()}}),(0,i.Tg)(xe).subscribe(Z))})(G)}}function C(A,S,...T){if(!0===S)return void A();if(!1===S)return;const k=new c.Ms({next:()=>{k.unsubscribe(),A()}});return(0,i.Tg)(S(...T)).subscribe(k)}},8249:(o,s,r)=>{"use strict";r.d(s,{t:()=>c});var i=r(7838),a=r(6218);function c(y,w,C){let A,S=!1;return y&&"object"==typeof y?({bufferSize:A=1/0,windowTime:w=1/0,refCount:S=!1,scheduler:C}=y):A=y??1/0,(0,a.u)({connector:()=>new i.m(A,w,C),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:S})}},1866:(o,s,r)=>{"use strict";r.d(s,{i:()=>a});var i=r(1483);function a(c){return(0,i.p)((y,w)=>c<=w)}},593:(o,s,r)=>{"use strict";r.d(s,{Z:()=>y});var i=r(3569),a=r(4327),c=r(5351);function y(...w){const C=(0,a.lI)(w);return(0,c.N)((A,S)=>{(C?(0,i.x)(w,A,C):(0,i.x)(w,A)).subscribe(S)})}},2867:(o,s,r)=>{"use strict";r.d(s,{n:()=>y});var i=r(7225),a=r(5351),c=r(2483);function y(w,C){return(0,a.N)((A,S)=>{let T=null,k=0,R=!1;const G=()=>R&&!T&&S.complete();A.subscribe((0,c._)(S,Z=>{T?.unsubscribe();let te=0;const we=k++;(0,i.Tg)(w(Z,we)).subscribe(T=(0,c._)(S,_e=>S.next(C?C(Z,_e,we,te++):_e),()=>{T=null,G()}))},()=>{R=!0,G()}))})}},7610:(o,s,r)=>{"use strict";r.d(s,{s:()=>y});var i=r(6564),a=r(5351),c=r(2483);function y(w){return w<=0?()=>i.w:(0,a.N)((C,A)=>{let S=0;C.subscribe((0,c._)(A,T=>{++S<=w&&(A.next(T),w<=S&&A.complete())}))})}},5424:(o,s,r)=>{"use strict";r.d(s,{Q:()=>w});var i=r(5351),a=r(2483),c=r(7225),y=r(850);function w(C){return(0,i.N)((A,S)=>{(0,c.Tg)(C).subscribe((0,a._)(S,()=>S.complete(),y.l)),!S.closed&&A.subscribe(S)})}},8445:(o,s,r)=>{"use strict";r.d(s,{v:()=>c});var i=r(5351),a=r(2483);function c(y,w=!1){return(0,i.N)((C,A)=>{let S=0;C.subscribe((0,a._)(A,T=>{const k=y(T,S++);(k||w)&&A.next(T),!k&&A.complete()}))})}},2040:(o,s,r)=>{"use strict";r.d(s,{M:()=>w});var i=r(1126),a=r(5351),c=r(2483),y=r(9220);function w(C,A,S){const T=(0,i.T)(C)||A||S?{next:C,error:A,complete:S}:C;return T?(0,a.N)((k,R)=>{var G;null===(G=T.subscribe)||void 0===G||G.call(T);let Z=!0;k.subscribe((0,c._)(R,te=>{var we;null===(we=T.next)||void 0===we||we.call(T,te),R.next(te)},()=>{var te;Z=!1,null===(te=T.complete)||void 0===te||te.call(T),R.complete()},te=>{var we;Z=!1,null===(we=T.error)||void 0===we||we.call(T,te),R.error(te)},()=>{var te,we;Z&&(null===(te=T.unsubscribe)||void 0===te||te.call(T)),null===(we=T.finalize)||void 0===we||we.call(T)}))}):y.D}},9899:(o,s,r)=>{"use strict";r.d(s,{R:()=>w});var i=r(5710);class a extends i.yU{constructor(A,S){super()}schedule(A,S=0){return this}}const c={setInterval(C,A,...S){const{delegate:T}=c;return T?.setInterval?T.setInterval(C,A,...S):setInterval(C,A,...S)},clearInterval(C){const{delegate:A}=c;return(A?.clearInterval||clearInterval)(C)},delegate:void 0};var y=r(5891);class w extends a{constructor(A,S){super(A,S),this.scheduler=A,this.work=S,this.pending=!1}schedule(A,S=0){var T;if(this.closed)return this;this.state=A;const k=this.id,R=this.scheduler;return null!=k&&(this.id=this.recycleAsyncId(R,k,S)),this.pending=!0,this.delay=S,this.id=null!==(T=this.id)&&void 0!==T?T:this.requestAsyncId(R,this.id,S),this}requestAsyncId(A,S,T=0){return c.setInterval(A.flush.bind(A,this),T)}recycleAsyncId(A,S,T=0){if(null!=T&&this.delay===T&&!1===this.pending)return S;null!=S&&c.clearInterval(S)}execute(A,S){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const T=this._execute(A,S);if(T)return T;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(A,S){let k,T=!1;try{this.work(A)}catch(R){T=!0,k=R||new Error("Scheduled action threw falsy error")}if(T)return this.unsubscribe(),k}unsubscribe(){if(!this.closed){const{id:A,scheduler:S}=this,{actions:T}=S;this.work=this.state=this.scheduler=null,this.pending=!1,(0,y.o)(T,this),null!=A&&(this.id=this.recycleAsyncId(S,A,null)),this.delay=null,super.unsubscribe()}}}},8050:(o,s,r)=>{"use strict";r.d(s,{q:()=>c});var i=r(6188);class a{constructor(w,C=a.now){this.schedulerActionCtor=w,this.now=C}schedule(w,C=0,A){return new this.schedulerActionCtor(this,w).schedule(A,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 A;this._active=!0;do{if(A=w.execute(w.state,w.delay))break}while(w=C.shift());if(this._active=!1,A){for(;w=C.shift();)w.unsubscribe();throw A}}}},4984:(o,s,r)=>{"use strict";r.d(s,{$:()=>te});var i=r(9899);let c,a=1;const y={};function w(_e){return _e in y&&(delete y[_e],!0)}const C={setImmediate(_e){const pe=a++;return y[pe]=!0,c||(c=Promise.resolve()),c.then(()=>w(pe)&&_e()),pe},clearImmediate(_e){w(_e)}},{setImmediate:S,clearImmediate:T}=C,k={setImmediate(..._e){const{delegate:pe}=k;return(pe?.setImmediate||S)(..._e)},clearImmediate(_e){const{delegate:pe}=k;return(pe?.clearImmediate||T)(_e)},delegate:void 0};var G=r(8050);const te=new class Z extends G.q{flush(pe){this._active=!0;const Te=this._scheduled;this._scheduled=void 0;const{actions:Ce}=this;let Ne;pe=pe||Ce.shift();do{if(Ne=pe.execute(pe.state,pe.delay))break}while((pe=Ce[0])&&pe.id===Te&&Ce.shift());if(this._active=!1,Ne){for(;(pe=Ce[0])&&pe.id===Te&&Ce.shift();)pe.unsubscribe();throw Ne}}}(class R extends i.R{constructor(pe,Te){super(pe,Te),this.scheduler=pe,this.work=Te}requestAsyncId(pe,Te,Ce=0){return null!==Ce&&Ce>0?super.requestAsyncId(pe,Te,Ce):(pe.actions.push(this),pe._scheduled||(pe._scheduled=k.setImmediate(pe.flush.bind(pe,void 0))))}recycleAsyncId(pe,Te,Ce=0){var Ne;if(null!=Ce?Ce>0:this.delay>0)return super.recycleAsyncId(pe,Te,Ce);const{actions:Se}=pe;null!=Te&&(null===(Ne=Se[Se.length-1])||void 0===Ne?void 0:Ne.id)!==Te&&(k.clearImmediate(Te),pe._scheduled===Te&&(pe._scheduled=void 0))}})},6061:(o,s,r)=>{"use strict";r.d(s,{E:()=>c,b:()=>y});var i=r(9899);const c=new(r(8050).q)(i.R),y=c},6188:(o,s,r)=>{"use strict";r.d(s,{U:()=>i});const i={now:()=>(i.delegate||Date).now(),delegate:void 0}},3695:(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}},6952:(o,s,r)=>{"use strict";r.d(s,{l:()=>a});const a=function i(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},2563:(o,s,r)=>{"use strict";r.d(s,{s:()=>i});const i="function"==typeof Symbol&&Symbol.observable||"@@observable"},8747:(o,s,r)=>{"use strict";r.d(s,{G:()=>a});const a=(0,r(5644).L)(c=>function(){c(this),this.name="EmptyError",this.message="no elements in sequence"})},4327:(o,s,r)=>{"use strict";r.d(s,{R0:()=>C,lI:()=>w,ms:()=>y});var i=r(1126),a=r(9921);function c(A){return A[A.length-1]}function y(A){return(0,i.T)(c(A))?A.pop():void 0}function w(A){return(0,a.m)(c(A))?A.pop():void 0}function C(A,S){return"number"==typeof c(A)?A.pop():S}},3740:(o,s,r)=>{"use strict";r.d(s,{D:()=>w});const{isArray:i}=Array,{getPrototypeOf:a,prototype:c,keys:y}=Object;function w(A){if(1===A.length){const S=A[0];if(i(S))return{args:S,keys:null};if(function C(A){return A&&"object"==typeof A&&a(A)===c}(S)){const T=y(S);return{args:T.map(k=>S[k]),keys:T}}}return{args:A,keys:null}}},5891:(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})},5644:(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})},9321:(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})},4171:(o,s,r)=>{"use strict";r.d(s,{Y:()=>c,l:()=>y});var i=r(3305);let a=null;function c(w){if(i.$.useDeprecatedSynchronousErrorHandling){const C=!a;if(C&&(a={errorThrown:!1,error:null}),w(),C){const{errorThrown:A,error:S}=a;if(a=null,A)throw S}}else w()}function y(w){i.$.useDeprecatedSynchronousErrorHandling&&a&&(a.errorThrown=!0,a.error=w)}},8266:(o,s,r)=>{"use strict";function i(a,c,y,w=0,C=!1){const A=c.schedule(function(){y(),C?a.add(this.schedule(null,w)):this.unsubscribe()},w);if(a.add(A),!C)return A}r.d(s,{N:()=>i})},9220:(o,s,r)=>{"use strict";function i(a){return a}r.d(s,{D:()=>i})},6786:(o,s,r)=>{"use strict";r.d(s,{X:()=>i});const i=a=>a&&"number"==typeof a.length&&"function"!=typeof a},8394:(o,s,r)=>{"use strict";r.d(s,{T:()=>a});var i=r(1126);function a(c){return Symbol.asyncIterator&&(0,i.T)(c?.[Symbol.asyncIterator])}},1126:(o,s,r)=>{"use strict";function i(a){return"function"==typeof a}r.d(s,{T:()=>i})},6600:(o,s,r)=>{"use strict";r.d(s,{l:()=>c});var i=r(2563),a=r(1126);function c(y){return(0,a.T)(y[i.s])}},4876:(o,s,r)=>{"use strict";r.d(s,{x:()=>c});var i=r(6952),a=r(1126);function c(y){return(0,a.T)(y?.[i.l])}},1531:(o,s,r)=>{"use strict";r.d(s,{A:()=>c});var i=r(1698),a=r(1126);function c(y){return!!y&&(y instanceof i.c||(0,a.T)(y.lift)&&(0,a.T)(y.subscribe))}},6505:(o,s,r)=>{"use strict";r.d(s,{y:()=>a});var i=r(1126);function a(c){return(0,i.T)(c?.then)}},3173:(o,s,r)=>{"use strict";r.d(s,{C:()=>c,U:()=>y});var i=r(1635),a=r(1126);function c(w){return(0,i.AQ)(this,arguments,function*(){const A=w.getReader();try{for(;;){const{value:S,done:T}=yield(0,i.N3)(A.read());if(T)return yield(0,i.N3)(void 0);yield yield(0,i.N3)(S)}}finally{A.releaseLock()}})}function y(w){return(0,a.T)(w?.getReader)}},9921:(o,s,r)=>{"use strict";r.d(s,{m:()=>a});var i=r(1126);function a(c){return c&&(0,i.T)(c.schedule)}},5351:(o,s,r)=>{"use strict";r.d(s,{N:()=>c,S:()=>a});var i=r(1126);function a(y){return(0,i.T)(y?.lift)}function c(y){return w=>{if(a(w))return w.lift(function(C){try{return y(C,this)}catch(A){this.error(A)}});throw new TypeError("Unable to lift unknown Observable type")}}},3759:(o,s,r)=>{"use strict";r.d(s,{I:()=>y});var i=r(7947);const{isArray:a}=Array;function y(w){return(0,i.T)(C=>function c(w,C){return a(C)?w(...C):w(C)}(w,C))}},850:(o,s,r)=>{"use strict";function i(){}r.d(s,{l:()=>i})},6742:(o,s,r)=>{"use strict";r.d(s,{F:()=>a,m:()=>c});var i=r(9220);function a(...y){return c(y)}function c(y){return 0===y.length?i.D:1===y.length?y[0]:function(C){return y.reduce((A,S)=>S(A),C)}}},191:(o,s,r)=>{"use strict";r.d(s,{m:()=>c});var i=r(3305),a=r(3695);function c(y){a.f.setTimeout(()=>{const{onUnhandledError:w}=i.$;if(!w)throw y;w(y)})}},8810:(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})},1204:(o,s,r)=>{"use strict";r.d(s,{FX:()=>ft,If:()=>c,K2:()=>S,MA:()=>te,Os:()=>A,P:()=>_e,S6:()=>Te,hZ:()=>w,i0:()=>C,i7:()=>R,iF:()=>T,kY:()=>G,kp:()=>y,sf:()=>Ue,ui:()=>st,wk:()=>k});var i=r(4460),a=r(3107),c=function(_t){return _t[_t.State=0]="State",_t[_t.Transition=1]="Transition",_t[_t.Sequence=2]="Sequence",_t[_t.Group=3]="Group",_t[_t.Animate=4]="Animate",_t[_t.Keyframes=5]="Keyframes",_t[_t.Style=6]="Style",_t[_t.Trigger=7]="Trigger",_t[_t.Reference=8]="Reference",_t[_t.AnimateChild=9]="AnimateChild",_t[_t.AnimateRef=10]="AnimateRef",_t[_t.Query=11]="Query",_t[_t.Stagger=12]="Stagger",_t}(c||{});const y="*";function w(_t,ot){return{type:c.Trigger,name:_t,definitions:ot,options:{}}}function C(_t,ot=null){return{type:c.Animate,styles:ot,timings:_t}}function A(_t,ot=null){return{type:c.Group,steps:_t,options:ot}}function S(_t,ot=null){return{type:c.Sequence,steps:_t,options:ot}}function T(_t){return{type:c.Style,styles:_t,offset:null}}function k(_t,ot,Yt){return{type:c.State,name:_t,styles:ot,options:Yt}}function R(_t){return{type:c.Keyframes,steps:_t}}function G(_t,ot,Yt=null){return{type:c.Transition,expr:_t,animation:ot,options:Yt}}function te(_t=null){return{type:c.AnimateChild,options:_t}}function _e(_t,ot,Yt=null){return{type:c.Query,selector:_t,animation:ot,options:Yt}}let Te=(()=>{class _t{static \u0275fac=function(un){return new(un||_t)};static \u0275prov=a.jDH({token:_t,factory:()=>(0,a.WQX)(Ne),providedIn:"root"})}return _t})();class Ce{}let Ne=(()=>{class _t extends Te{animationModuleType=(0,a.WQX)(a.bc$,{optional:!0});_nextAnimationId=0;_renderer;constructor(Yt,un){if(super(),this._renderer=Yt.createRenderer(un.body,{id:"0",encapsulation:a.gXe.None,styles:[],data:{animation:[]}}),null===this.animationModuleType&&!function ke(_t){const ot=_t.\u0275type;return 0===ot||1===ot}(this._renderer))throw new a.wOt(3600,!1)}build(Yt){const un=this._nextAnimationId;this._nextAnimationId++;const wn=Array.isArray(Yt)?S(Yt):Yt;return ae(this._renderer,null,un,"register",[wn]),new Se(un,this._renderer)}static \u0275fac=function(un){return new(un||_t)(a.KVO(a._9s),a.KVO(i.qQ))};static \u0275prov=a.jDH({token:_t,factory:_t.\u0275fac,providedIn:"root"})}return _t})();class Se extends Ce{_id;_renderer;constructor(ot,Yt){super(),this._id=ot,this._renderer=Yt}create(ot,Yt){return new xe(this._id,ot,Yt||{},this._renderer)}}class xe{id;element;_renderer;parentPlayer=null;_started=!1;constructor(ot,Yt,un,wn){this.id=ot,this.element=Yt,this._renderer=wn,this._command("create",un)}_listen(ot,Yt){return this._renderer.listen(this.element,`@@${this.id}:${ot}`,Yt)}_command(ot,...Yt){ae(this._renderer,this.element,this.id,ot,Yt)}onDone(ot){this._listen("done",ot)}onStart(ot){this._listen("start",ot)}onDestroy(ot){this._listen("destroy",ot)}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(ot){this._command("setPosition",ot)}getPosition(){return function le(_t){const ot=_t.\u0275type;return 0===ot?_t:1===ot?_t.animationRenderer:null}(this._renderer)?.engine?.players[this.id]?.getPosition()??0}totalTime=0}function ae(_t,ot,Yt,un,wn){_t.setProperty(ot,`@@${Yt}:${un}`,wn)}class Ue{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=!1;_destroyed=!1;_finished=!1;_position=0;parentPlayer=null;totalTime;constructor(ot=0,Yt=0){this.totalTime=ot+Yt}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(ot=>ot()),this._onDoneFns=[])}onStart(ot){this._originalOnStartFns.push(ot),this._onStartFns.push(ot)}onDone(ot){this._originalOnDoneFns.push(ot),this._onDoneFns.push(ot)}onDestroy(ot){this._onDestroyFns.push(ot)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(ot=>ot()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(ot=>ot()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(ot){this._position=this.totalTime?ot*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(ot){const Yt="start"==ot?this._onStartFns:this._onDoneFns;Yt.forEach(un=>un()),Yt.length=0}}class st{_onDoneFns=[];_onStartFns=[];_finished=!1;_started=!1;_destroyed=!1;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(ot){this.players=ot;let Yt=0,un=0,wn=0;const $n=this.players.length;0==$n?queueMicrotask(()=>this._onFinish()):this.players.forEach(En=>{En.onDone(()=>{++Yt==$n&&this._onFinish()}),En.onDestroy(()=>{++un==$n&&this._onDestroy()}),En.onStart(()=>{++wn==$n&&this._onStart()})}),this.totalTime=this.players.reduce((En,Ze)=>Math.max(En,Ze.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(ot=>ot()),this._onDoneFns=[])}init(){this.players.forEach(ot=>ot.init())}onStart(ot){this._onStartFns.push(ot)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(ot=>ot()),this._onStartFns=[])}onDone(ot){this._onDoneFns.push(ot)}onDestroy(ot){this._onDestroyFns.push(ot)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(ot=>ot.play())}pause(){this.players.forEach(ot=>ot.pause())}restart(){this.players.forEach(ot=>ot.restart())}finish(){this._onFinish(),this.players.forEach(ot=>ot.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(ot=>ot.destroy()),this._onDestroyFns.forEach(ot=>ot()),this._onDestroyFns=[])}reset(){this.players.forEach(ot=>ot.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(ot){const Yt=ot*this.totalTime;this.players.forEach(un=>{const wn=un.totalTime?Math.min(1,Yt/un.totalTime):1;un.setPosition(wn)})}getPosition(){const ot=this.players.reduce((Yt,un)=>null===Yt||un.totalTime>Yt.totalTime?un:Yt,null);return null!=ot?ot.getPosition():0}beforeDestroy(){this.players.forEach(ot=>{ot.beforeDestroy&&ot.beforeDestroy()})}triggerCallback(ot){const Yt="start"==ot?this._onStartFns:this._onDoneFns;Yt.forEach(un=>un()),Yt.length=0}}const ft="!"},8559:(o,s,r)=>{"use strict";r.d(s,{Pd:()=>ii,Au:()=>wt,vr:()=>Yt,Bu:()=>ze,FN:()=>Fe,GX:()=>Ie,Q_:()=>Mr,Z7:()=>qe,Ai:()=>Xr,g7:()=>Si,px:()=>le,_G:()=>bt,w6:()=>mt,Ae:()=>ke});var i=r(4460),a=r(3107),c=r(2147),y=r(5467),w=r(5919),C=r(8447),A=r(5710),T=(r(1531),r(3016)),k=r(1217),R=r(2040),G=r(8627),Z=r(1483),te=r(7947),_e=(r(7610),r(1866)),pe=r(6645),Te=r(5424),Ne=r(7747),Se=r(3022),xe=r(6520);const ae=" ";function le(sn,Tt,Je){const St=Ue(sn,Tt);Je=Je.trim(),!St.some(zt=>zt.trim()===Je)&&(St.push(Je),sn.setAttribute(Tt,St.join(ae)))}function ke(sn,Tt,Je){const St=Ue(sn,Tt);Je=Je.trim();const zt=St.filter(zn=>zn!==Je);zt.length?sn.setAttribute(Tt,zt.join(ae)):sn.removeAttribute(Tt)}function Ue(sn,Tt){return sn.getAttribute(Tt)?.match(/\S+/g)??[]}const ft="cdk-describedby-message",_t="cdk-describedby-host";let ot=0,Yt=(()=>{class sn{_platform=(0,a.WQX)(c.OD);_document=(0,a.WQX)(i.qQ);_messageRegistry=new Map;_messagesContainer=null;_id=""+ot++;constructor(){(0,a.WQX)(y.l).load(y.Y),this._id=(0,a.WQX)(a.sZ2)+"-"+ot++}describe(Je,St,zt){if(!this._canBeDescribed(Je,St))return;const zn=un(St,zt);"string"!=typeof St?(wn(St,this._id),this._messageRegistry.set(zn,{messageElement:St,referenceCount:0})):this._messageRegistry.has(zn)||this._createMessageElement(St,zt),this._isElementDescribedByMessage(Je,zn)||this._addMessageReference(Je,zn)}removeDescription(Je,St,zt){if(!St||!this._isElementNode(Je))return;const zn=un(St,zt);if(this._isElementDescribedByMessage(Je,zn)&&this._removeMessageReference(Je,zn),"string"==typeof St){const hr=this._messageRegistry.get(zn);hr&&0===hr.referenceCount&&this._deleteMessageElement(zn)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const Je=this._document.querySelectorAll(`[${_t}="${this._id}"]`);for(let St=0;St0!=zt.indexOf(ft));Je.setAttribute("aria-describedby",St.join(" "))}_addMessageReference(Je,St){const zt=this._messageRegistry.get(St);le(Je,"aria-describedby",zt.messageElement.id),Je.setAttribute(_t,this._id),zt.referenceCount++}_removeMessageReference(Je,St){const zt=this._messageRegistry.get(St);zt.referenceCount--,ke(Je,"aria-describedby",zt.messageElement.id),Je.removeAttribute(_t)}_isElementDescribedByMessage(Je,St){const zt=Ue(Je,"aria-describedby"),zn=this._messageRegistry.get(St),hr=zn&&zn.messageElement.id;return!!hr&&-1!=zt.indexOf(hr)}_canBeDescribed(Je,St){if(!this._isElementNode(Je))return!1;if(St&&"object"==typeof St)return!0;const zt=null==St?"":`${St}`.trim(),zn=Je.getAttribute("aria-label");return!(!zt||zn&&zn.trim()===zt)}_isElementNode(Je){return Je.nodeType===this._document.ELEMENT_NODE}static \u0275fac=function(St){return new(St||sn)};static \u0275prov=a.jDH({token:sn,factory:sn.\u0275fac,providedIn:"root"})}return sn})();function un(sn,Tt){return"string"==typeof sn?`${Tt||""}/${sn}`:sn}function wn(sn,Tt){sn.id||(sn.id=`${ft}-${Tt}-${ot++}`)}class En{_letterKeyStream=new C.B;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new C.B;selectedItem=this._selectedItem;constructor(Tt,Je){const St="number"==typeof Je?.debounceInterval?Je.debounceInterval:200;Je?.skipPredicate&&(this._skipPredicateFn=Je.skipPredicate),this.setItems(Tt),this._setupKeyHandler(St)}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete()}setCurrentSelectedItemIndex(Tt){this._selectedItemIndex=Tt}setItems(Tt){this._items=Tt}handleKey(Tt){const Je=Tt.keyCode;Tt.key&&1===Tt.key.length?this._letterKeyStream.next(Tt.key.toLocaleUpperCase()):(Je>=w.A&&Je<=w.Z||Je>=w.f2&&Je<=w.bn)&&this._letterKeyStream.next(String.fromCharCode(Je))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(Tt){this._letterKeyStream.pipe((0,R.M)(Je=>this._pressedLetters.push(Je)),(0,G.B)(Tt),(0,Z.p)(()=>this._pressedLetters.length>0),(0,te.T)(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(Je=>{for(let St=1;StTt.disabled;constructor(Tt,Je){this._items=Tt,Tt instanceof a.rOR?this._itemChangesSubscription=Tt.changes.subscribe(St=>this._itemsChanged(St.toArray())):(0,a.Hps)(Tt)&&(this._effectRef=(0,a.QZP)(()=>this._itemsChanged(Tt()),{injector:Je}))}tabOut=new C.B;change=new C.B;skipPredicate(Tt){return this._skipPredicateFn=Tt,this}withWrap(Tt=!0){return this._wrap=Tt,this}withVerticalOrientation(Tt=!0){return this._vertical=Tt,this}withHorizontalOrientation(Tt){return this._horizontal=Tt,this}withAllowedModifierKeys(Tt){return this._allowedModifierKeys=Tt,this}withTypeAhead(Tt=200){this._typeaheadSubscription.unsubscribe();const Je=this._getItemsArray();return this._typeahead=new En(Je,{debounceInterval:"number"==typeof Tt?Tt:void 0,skipPredicate:St=>this._skipPredicateFn(St)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(St=>{this.setActiveItem(St)}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(Tt=!0){return this._homeAndEnd=Tt,this}withPageUpDown(Tt=!0,Je=10){return this._pageUpAndDown={enabled:Tt,delta:Je},this}setActiveItem(Tt){const Je=this._activeItem();this.updateActiveItem(Tt),this._activeItem()!==Je&&this.change.next(this._activeItemIndex)}onKeydown(Tt){const Je=Tt.keyCode,zt=["altKey","ctrlKey","metaKey","shiftKey"].every(zn=>!Tt[zn]||this._allowedModifierKeys.indexOf(zn)>-1);switch(Je){case w.wn:return void this.tabOut.next();case w.n6:if(this._vertical&&zt){this.setNextItemActive();break}return;case w.i7:if(this._vertical&&zt){this.setPreviousItemActive();break}return;case w.LE:if(this._horizontal&&zt){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case w.UQ:if(this._horizontal&&zt){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case w.yZ:if(this._homeAndEnd&&zt){this.setFirstItemActive();break}return;case w.Kp:if(this._homeAndEnd&&zt){this.setLastItemActive();break}return;case w.w_:if(this._pageUpAndDown.enabled&&zt){const zn=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(zn>0?zn:0,1);break}return;case w.dB:if(this._pageUpAndDown.enabled&&zt){const zn=this._activeItemIndex+this._pageUpAndDown.delta,hr=this._getItemsArray().length;this._setActiveItemByIndex(zn-1&&St!==this._activeItemIndex&&(this._activeItemIndex=St,this._typeahead?.setCurrentSelectedItemIndex(St))}}}class wt extends Ze{setActiveItem(Tt){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(Tt),this.activeItem&&this.activeItem.setActiveStyles()}}class ze extends Ze{_origin="program";setFocusOrigin(Tt){return this._origin=Tt,this}setActiveItem(Tt){super.setActiveItem(Tt),this.activeItem&&this.activeItem.focus(this._origin)}}let qe=(()=>{class sn{_platform=(0,a.WQX)(c.OD);constructor(){}isDisabled(Je){return Je.hasAttribute("disabled")}isVisible(Je){return function tn(sn){return!!(sn.offsetWidth||sn.offsetHeight||"function"==typeof sn.getClientRects&&sn.getClientRects().length)}(Je)&&"visible"===getComputedStyle(Je).visibility}isTabbable(Je){if(!this._platform.isBrowser)return!1;const St=function Nt(sn){try{return sn.frameElement}catch{return null}}(function Gt(sn){return sn.ownerDocument&&sn.ownerDocument.defaultView||window}(Je));if(St&&(-1===Sn(St)||!this.isVisible(St)))return!1;let zt=Je.nodeName.toLowerCase(),zn=Sn(Je);return Je.hasAttribute("contenteditable")?-1!==zn:!("iframe"===zt||"object"===zt||this._platform.WEBKIT&&this._platform.IOS&&!function Xt(sn){let Tt=sn.nodeName.toLowerCase(),Je="input"===Tt&&sn.type;return"text"===Je||"password"===Je||"select"===Tt||"textarea"===Tt}(Je))&&("audio"===zt?!!Je.hasAttribute("controls")&&-1!==zn:"video"===zt?-1!==zn&&(null!==zn||this._platform.FIREFOX||Je.hasAttribute("controls")):Je.tabIndex>=0)}isFocusable(Je,St){return function Mt(sn){return!function Wn(sn){return function en(sn){return"input"==sn.nodeName.toLowerCase()}(sn)&&"hidden"==sn.type}(sn)&&(function pn(sn){let Tt=sn.nodeName.toLowerCase();return"input"===Tt||"select"===Tt||"button"===Tt||"textarea"===Tt}(sn)||function Pt(sn){return function an(sn){return"a"==sn.nodeName.toLowerCase()}(sn)&&sn.hasAttribute("href")}(sn)||sn.hasAttribute("contenteditable")||Yn(sn))}(Je)&&!this.isDisabled(Je)&&(St?.ignoreVisibility||this.isVisible(Je))}static \u0275fac=function(St){return new(St||sn)};static \u0275prov=a.jDH({token:sn,factory:sn.\u0275fac,providedIn:"root"})}return sn})();function Yn(sn){if(!sn.hasAttribute("tabindex")||void 0===sn.tabIndex)return!1;let Tt=sn.getAttribute("tabindex");return!(!Tt||isNaN(parseInt(Tt,10)))}function Sn(sn){if(!Yn(sn))return null;const Tt=parseInt(sn.getAttribute("tabindex")||"",10);return isNaN(Tt)?-1:Tt}class Ot{_element;_checker;_ngZone;_document;_injector;_startAnchor;_endAnchor;_hasAttached=!1;startAnchorListener=()=>this.focusLastTabbableElement();endAnchorListener=()=>this.focusFirstTabbableElement();get enabled(){return this._enabled}set enabled(Tt){this._enabled=Tt,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Tt,this._startAnchor),this._toggleAnchorTabIndex(Tt,this._endAnchor))}_enabled=!0;constructor(Tt,Je,St,zt,zn=!1,hr){this._element=Tt,this._checker=Je,this._ngZone=St,this._document=zt,this._injector=hr,zn||this.attachAnchors()}destroy(){const Tt=this._startAnchor,Je=this._endAnchor;Tt&&(Tt.removeEventListener("focus",this.startAnchorListener),Tt.remove()),Je&&(Je.removeEventListener("focus",this.endAnchorListener),Je.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(Tt){return new Promise(Je=>{this._executeOnStable(()=>Je(this.focusInitialElement(Tt)))})}focusFirstTabbableElementWhenReady(Tt){return new Promise(Je=>{this._executeOnStable(()=>Je(this.focusFirstTabbableElement(Tt)))})}focusLastTabbableElementWhenReady(Tt){return new Promise(Je=>{this._executeOnStable(()=>Je(this.focusLastTabbableElement(Tt)))})}_getRegionBoundary(Tt){const Je=this._element.querySelectorAll(`[cdk-focus-region-${Tt}], [cdkFocusRegion${Tt}], [cdk-focus-${Tt}]`);return"start"==Tt?Je.length?Je[0]:this._getFirstTabbableElement(this._element):Je.length?Je[Je.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(Tt){const Je=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(Je){if(!this._checker.isFocusable(Je)){const St=this._getFirstTabbableElement(Je);return St?.focus(Tt),!!St}return Je.focus(Tt),!0}return this.focusFirstTabbableElement(Tt)}focusFirstTabbableElement(Tt){const Je=this._getRegionBoundary("start");return Je&&Je.focus(Tt),!!Je}focusLastTabbableElement(Tt){const Je=this._getRegionBoundary("end");return Je&&Je.focus(Tt),!!Je}hasAttached(){return this._hasAttached}_getFirstTabbableElement(Tt){if(this._checker.isFocusable(Tt)&&this._checker.isTabbable(Tt))return Tt;const Je=Tt.children;for(let St=0;St=0;St--){const zt=Je[St].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(Je[St]):null;if(zt)return zt}return null}_createAnchor(){const Tt=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,Tt),Tt.classList.add("cdk-visually-hidden"),Tt.classList.add("cdk-focus-trap-anchor"),Tt.setAttribute("aria-hidden","true"),Tt}_toggleAnchorTabIndex(Tt,Je){Tt?Je.setAttribute("tabindex","0"):Je.removeAttribute("tabindex")}toggleAnchors(Tt){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Tt,this._startAnchor),this._toggleAnchorTabIndex(Tt,this._endAnchor))}_executeOnStable(Tt){this._injector?(0,a.mal)(Tt,{injector:this._injector}):setTimeout(Tt)}}let Ie=(()=>{class sn{_checker=(0,a.WQX)(qe);_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(Je,St=!1){return new Ot(Je,this._checker,this._ngZone,this._document,St,this._injector)}static \u0275fac=function(St){return new(St||sn)};static \u0275prov=a.jDH({token:sn,factory:sn.\u0275fac,providedIn:"root"})}return sn})();function bt(sn){return 0===sn.buttons||0===sn.detail}function mt(sn){const Tt=sn.touches&&sn.touches[0]||sn.changedTouches&&sn.changedTouches[0];return!(!Tt||-1!==Tt.identifier||null!=Tt.radiusX&&1!==Tt.radiusX||null!=Tt.radiusY&&1!==Tt.radiusY)}const At=new a.nKC("cdk-input-modality-detector-options"),Ln={ignoreKeys:[w.A$,w.W3,w.eg,w.Ge,w.FX]},gn=(0,c.BQ)({passive:!0,capture:!0});let In=(()=>{class sn{_platform=(0,a.WQX)(c.OD);modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new k.t(null);_options;_lastTouchMs=0;_onKeydown=Je=>{this._options?.ignoreKeys?.some(St=>St===Je.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,c.Fb)(Je))};_onMousedown=Je=>{Date.now()-this._lastTouchMs<650||(this._modality.next(bt(Je)?"keyboard":"mouse"),this._mostRecentTarget=(0,c.Fb)(Je))};_onTouchstart=Je=>{mt(Je)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,c.Fb)(Je))};constructor(){const Je=(0,a.WQX)(a.SKi),St=(0,a.WQX)(i.qQ),zt=(0,a.WQX)(At,{optional:!0});this._options={...Ln,...zt},this.modalityDetected=this._modality.pipe((0,_e.i)(1)),this.modalityChanged=this.modalityDetected.pipe((0,pe.F)()),this._platform.isBrowser&&Je.runOutsideAngular(()=>{St.addEventListener("keydown",this._onKeydown,gn),St.addEventListener("mousedown",this._onMousedown,gn),St.addEventListener("touchstart",this._onTouchstart,gn)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,gn),document.removeEventListener("mousedown",this._onMousedown,gn),document.removeEventListener("touchstart",this._onTouchstart,gn))}static \u0275fac=function(St){return new(St||sn)};static \u0275prov=a.jDH({token:sn,factory:sn.\u0275fac,providedIn:"root"})}return sn})();const Bn=new a.nKC("liveAnnouncerElement",{providedIn:"root",factory:function Hn(){return null}}),xr=new a.nKC("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let ei=0,Xr=(()=>{class sn{_ngZone=(0,a.WQX)(a.SKi);_defaultOptions=(0,a.WQX)(xr,{optional:!0});_liveElement;_document=(0,a.WQX)(i.qQ);_previousTimeout;_currentPromise;_currentResolve;constructor(){const Je=(0,a.WQX)(Bn,{optional:!0});this._liveElement=Je||this._createLiveElement()}announce(Je,...St){const zt=this._defaultOptions;let zn,hr;return 1===St.length&&"number"==typeof St[0]?hr=St[0]:[zn,hr]=St,this.clear(),clearTimeout(this._previousTimeout),zn||(zn=zt&&zt.politeness?zt.politeness:"polite"),null==hr&&zt&&(hr=zt.duration),this._liveElement.setAttribute("aria-live",zn),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(ho=>this._currentResolve=ho)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=Je,"number"==typeof hr&&(this._previousTimeout=setTimeout(()=>this.clear(),hr)),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 Je="cdk-live-announcer-element",St=this._document.getElementsByClassName(Je),zt=this._document.createElement("div");for(let zn=0;zn .cdk-overlay-container [aria-modal="true"]');for(let zt=0;zt{class sn{_ngZone=(0,a.WQX)(a.SKi);_platform=(0,a.WQX)(c.OD);_inputModalityDetector=(0,a.WQX)(In);_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 Je=(0,a.WQX)(Ee,{optional:!0});this._detectionMode=Je?.detectionMode||$t.IMMEDIATE}_rootNodeFocusAndBlurListener=Je=>{for(let zt=(0,c.Fb)(Je);zt;zt=zt.parentElement)"focus"===Je.type?this._onFocus(Je,zt):this._onBlur(Je,zt)};monitor(Je,St=!1){const zt=(0,Se.i8)(Je);if(!this._platform.isBrowser||1!==zt.nodeType)return(0,T.of)();const zn=(0,c.KT)(zt)||this._getDocument(),hr=this._elementInfo.get(zt);if(hr)return St&&(hr.checkChildren=!0),hr.subject;const ho={checkChildren:St,subject:new C.B,rootNode:zn};return this._elementInfo.set(zt,ho),this._registerGlobalListeners(ho),ho.subject}stopMonitoring(Je){const St=(0,Se.i8)(Je),zt=this._elementInfo.get(St);zt&&(zt.subject.complete(),this._setClasses(St),this._elementInfo.delete(St),this._removeGlobalListeners(zt))}focusVia(Je,St,zt){const zn=(0,Se.i8)(Je);zn===this._getDocument().activeElement?this._getClosestElementsInfo(zn).forEach(([ho,Ii])=>this._originChanged(ho,St,Ii)):(this._setOrigin(St),"function"==typeof zn.focus&&zn.focus(zt))}ngOnDestroy(){this._elementInfo.forEach((Je,St)=>this.stopMonitoring(St))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(Je){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(Je)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:Je&&this._isLastInteractionFromInputLabel(Je)?"mouse":"program"}_shouldBeAttributedToTouch(Je){return this._detectionMode===$t.EVENTUAL||!!Je?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(Je,St){Je.classList.toggle("cdk-focused",!!St),Je.classList.toggle("cdk-touch-focused","touch"===St),Je.classList.toggle("cdk-keyboard-focused","keyboard"===St),Je.classList.toggle("cdk-mouse-focused","mouse"===St),Je.classList.toggle("cdk-program-focused","program"===St)}_setOrigin(Je,St=!1){this._ngZone.runOutsideAngular(()=>{this._origin=Je,this._originFromTouchInteraction="touch"===Je&&St,this._detectionMode===$t.IMMEDIATE&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(Je,St){const zt=this._elementInfo.get(St),zn=(0,c.Fb)(Je);!zt||!zt.checkChildren&&St!==zn||this._originChanged(St,this._getFocusOrigin(zn),zt)}_onBlur(Je,St){const zt=this._elementInfo.get(St);!zt||zt.checkChildren&&Je.relatedTarget instanceof Node&&St.contains(Je.relatedTarget)||(this._setClasses(St),this._emitOrigin(zt,null))}_emitOrigin(Je,St){Je.subject.observers.length&&this._ngZone.run(()=>Je.subject.next(St))}_registerGlobalListeners(Je){if(!this._platform.isBrowser)return;const St=Je.rootNode,zt=this._rootNodeFocusListenerCount.get(St)||0;zt||this._ngZone.runOutsideAngular(()=>{St.addEventListener("focus",this._rootNodeFocusAndBlurListener,at),St.addEventListener("blur",this._rootNodeFocusAndBlurListener,at)}),this._rootNodeFocusListenerCount.set(St,zt+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,Te.Q)(this._stopInputModalityDetector)).subscribe(zn=>{this._setOrigin(zn,!0)}))}_removeGlobalListeners(Je){const St=Je.rootNode;if(this._rootNodeFocusListenerCount.has(St)){const zt=this._rootNodeFocusListenerCount.get(St);zt>1?this._rootNodeFocusListenerCount.set(St,zt-1):(St.removeEventListener("focus",this._rootNodeFocusAndBlurListener,at),St.removeEventListener("blur",this._rootNodeFocusAndBlurListener,at),this._rootNodeFocusListenerCount.delete(St))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(Je,St,zt){this._setClasses(Je,St),this._emitOrigin(zt,St),this._lastFocusOrigin=St}_getClosestElementsInfo(Je){const St=[];return this._elementInfo.forEach((zt,zn)=>{(zn===Je||zt.checkChildren&&zn.contains(Je))&&St.push([zn,zt])}),St}_isLastInteractionFromInputLabel(Je){const{_mostRecentTarget:St,mostRecentModality:zt}=this._inputModalityDetector;if("mouse"!==zt||!St||St===Je||"INPUT"!==Je.nodeName&&"TEXTAREA"!==Je.nodeName||Je.disabled)return!1;const zn=Je.labels;if(zn)for(let hr=0;hr{class sn{_platform=(0,a.WQX)(c.OD);_hasCheckedHighContrastMode;_document=(0,a.WQX)(i.qQ);_breakpointSubscription;constructor(){this._breakpointSubscription=(0,a.WQX)(xe.QP).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return dt.NONE;const Je=this._document.createElement("div");Je.style.backgroundColor="rgb(1,2,3)",Je.style.position="absolute",this._document.body.appendChild(Je);const St=this._document.defaultView||window,zt=St&&St.getComputedStyle?St.getComputedStyle(Je):null,zn=(zt&&zt.backgroundColor||"").replace(/ /g,"");switch(Je.remove(),zn){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return dt.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return dt.BLACK_ON_WHITE}return dt.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const Je=this._document.body.classList;Je.remove(or,Bt,_n),this._hasCheckedHighContrastMode=!0;const St=this.getHighContrastMode();St===dt.BLACK_ON_WHITE?Je.add(or,Bt):St===dt.WHITE_ON_BLACK&&Je.add(or,_n)}}static \u0275fac=function(St){return new(St||sn)};static \u0275prov=a.jDH({token:sn,factory:sn.\u0275fac,providedIn:"root"})}return sn})(),ii=(()=>{class sn{constructor(){(0,a.WQX)(Mr)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(St){return new(St||sn)};static \u0275mod=a.$C({type:sn});static \u0275inj=a.G2t({imports:[Ne.w5]})}return sn})();const ci={};let Si=(()=>{class sn{_appId=(0,a.WQX)(a.sZ2);getId(Je){return"ng"!==this._appId&&(Je+=this._appId),ci.hasOwnProperty(Je)||(ci[Je]=0),`${Je}${ci[Je]++}`}static \u0275fac=function(St){return new(St||sn)};static \u0275prov=a.jDH({token:sn,factory:sn.\u0275fac,providedIn:"root"})}return sn})()},2944:(o,s,r)=>{"use strict";r.d(s,{dS:()=>A,jI:()=>T});var i=r(3107),a=r(4460);const c=new i.nKC("cdk-dir-doc",{providedIn:"root",factory:function y(){return(0,i.WQX)(a.qQ)}}),w=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let A=(()=>{class k{value="ltr";change=new i.bkB;constructor(){const G=(0,i.WQX)(c,{optional:!0});G&&(this.value=function C(k){const R=k?.toLowerCase()||"";return"auto"===R&&typeof navigator<"u"&&navigator?.language?w.test(navigator.language)?"rtl":"ltr":"rtl"===R?"rtl":"ltr"}((G.body?G.body.dir:null)||(G.documentElement?G.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}static \u0275fac=function(Z){return new(Z||k)};static \u0275prov=i.jDH({token:k,factory:k.\u0275fac,providedIn:"root"})}return k})(),T=(()=>{class k{static \u0275fac=function(Z){return new(Z||k)};static \u0275mod=i.$C({type:k});static \u0275inj=i.G2t({})}return k})()},3022:(o,s,r)=>{"use strict";r.d(s,{FG:()=>w,OE:()=>c,a1:()=>C,he:()=>a,i8:()=>A});var i=r(3107);function a(T){return null!=T&&"false"!=`${T}`}function c(T,k=0){return function y(T){return!isNaN(parseFloat(T))&&!isNaN(Number(T))}(T)?Number(T):2===arguments.length?k:0}function w(T){return Array.isArray(T)?T:[T]}function C(T){return null==T?"":"string"==typeof T?T:`${T}px`}function A(T){return T instanceof i.aKT?T.nativeElement:T}},5919:(o,s,r)=>{"use strict";r.d(s,{A:()=>Be,A$:()=>S,FX:()=>C,Fm:()=>w,Ge:()=>L,Kp:()=>we,LE:()=>Ce,UQ:()=>pe,W3:()=>A,Z:()=>W,_f:()=>R,bn:()=>$n,dB:()=>te,eg:()=>tt,f2:()=>ke,i7:()=>Te,n6:()=>Ne,rp:()=>Oe,t6:()=>G,w_:()=>Z,wn:()=>c,yZ:()=>_e});const c=9,w=13,C=16,A=17,S=18,R=27,G=32,Z=33,te=34,we=35,_e=36,pe=37,Te=38,Ce=39,Ne=40,ke=48,$n=57,Be=65,W=90,L=91,tt=224;function Oe(ht,...Vt){return Vt.length?Vt.some(kt=>ht[kt]):ht.altKey||ht.shiftKey||ht.ctrlKey||ht.metaKey}},6520:(o,s,r)=>{"use strict";r.d(s,{QP:()=>Ne,Rp:()=>xe});var i=r(3107),a=r(3022),c=r(8447),y=r(6627),w=r(3569),C=r(1698),A=r(7610),S=r(1866),T=r(8627),k=r(7947),R=r(593),G=r(5424),Z=r(2147);const we=new Set;let _e,pe=(()=>{class ae{_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):Ce}matchMedia(ke){return(this._platform.WEBKIT||this._platform.BLINK)&&function Te(ae,le){if(!we.has(ae))try{_e||(_e=document.createElement("style"),le&&_e.setAttribute("nonce",le),_e.setAttribute("type","text/css"),document.head.appendChild(_e)),_e.sheet&&(_e.sheet.insertRule(`@media ${ae} {body{ }}`,0),we.add(ae))}catch(ke){console.error(ke)}}(ke,this._nonce),this._matchMedia(ke)}static \u0275fac=function(Ue){return new(Ue||ae)};static \u0275prov=i.jDH({token:ae,factory:ae.\u0275fac,providedIn:"root"})}return ae})();function Ce(ae){return{matches:"all"===ae||""===ae,media:ae,addListener:()=>{},removeListener:()=>{}}}let Ne=(()=>{class ae{_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(ke){return Se((0,a.FG)(ke)).some(st=>this._registerQuery(st).mql.matches)}observe(ke){const st=Se((0,a.FG)(ke)).map(_t=>this._registerQuery(_t).observable);let ft=(0,y.z)(st);return ft=(0,w.x)(ft.pipe((0,A.s)(1)),ft.pipe((0,S.i)(1),(0,T.B)(0))),ft.pipe((0,k.T)(_t=>{const ot={matches:!1,breakpoints:{}};return _t.forEach(({matches:Yt,query:un})=>{ot.matches=ot.matches||Yt,ot.breakpoints[un]=Yt}),ot}))}_registerQuery(ke){if(this._queries.has(ke))return this._queries.get(ke);const Ue=this._mediaMatcher.matchMedia(ke),ft={observable:new C.c(_t=>{const ot=Yt=>this._zone.run(()=>_t.next(Yt));return Ue.addListener(ot),()=>{Ue.removeListener(ot)}}).pipe((0,R.Z)(Ue),(0,k.T)(({matches:_t})=>({query:ke,matches:_t})),(0,G.Q)(this._destroySubject)),mql:Ue};return this._queries.set(ke,ft),ft}static \u0275fac=function(Ue){return new(Ue||ae)};static \u0275prov=i.jDH({token:ae,factory:ae.\u0275fac,providedIn:"root"})}return ae})();function Se(ae){return ae.map(le=>le.split(",")).reduce((le,ke)=>le.concat(ke)).map(le=>le.trim())}const xe={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"}},7747:(o,s,r)=>{"use strict";r.d(s,{w5:()=>C});var i=r(3107);let c=(()=>{class A{create(T){return typeof MutationObserver>"u"?null:new MutationObserver(T)}static \u0275fac=function(k){return new(k||A)};static \u0275prov=i.jDH({token:A,factory:A.\u0275fac,providedIn:"root"})}return A})(),C=(()=>{class A{static \u0275fac=function(k){return new(k||A)};static \u0275mod=i.$C({type:A});static \u0275inj=i.G2t({providers:[c]})}return A})()},9666:(o,s,r)=>{"use strict";r.d(s,{$Q:()=>an,Sf:()=>wt,Tv:()=>ke,WB:()=>Yn,hJ:()=>Wn,rR:()=>Ue,yY:()=>ze,z_:()=>Mt});var i=r(8108),a=r(4460),c=r(3107),y=r(3022),w=r(2147),C=r(1483),A=r(5424),S=r(8445),T=r(2944),k=r(6192),R=r(8559),G=r(5467),Z=r(8447),te=r(5710),we=r(7509),_e=r(5919);const pe=(0,w.CZ)();class Te{_viewportRuler;_previousHTMLStyles={top:"",left:""};_previousScrollPosition;_isEnabled=!1;_document;constructor(Ie,Me){this._viewportRuler=Ie,this._document=Me}attach(){}enable(){if(this._canBeEnabled()){const Ie=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=Ie.style.left||"",this._previousHTMLStyles.top=Ie.style.top||"",Ie.style.left=(0,y.a1)(-this._previousScrollPosition.left),Ie.style.top=(0,y.a1)(-this._previousScrollPosition.top),Ie.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const Ie=this._document.documentElement,nt=Ie.style,W=this._document.body.style,L=nt.scrollBehavior||"",V=W.scrollBehavior||"";this._isEnabled=!1,nt.left=this._previousHTMLStyles.left,nt.top=this._previousHTMLStyles.top,Ie.classList.remove("cdk-global-scrollblock"),pe&&(nt.scrollBehavior=W.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),pe&&(nt.scrollBehavior=L,W.scrollBehavior=V)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const Me=this._document.body,nt=this._viewportRuler.getViewportSize();return Me.scrollHeight>nt.height||Me.scrollWidth>nt.width}}class Ne{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(Ie,Me,nt,W){this._scrollDispatcher=Ie,this._ngZone=Me,this._viewportRuler=nt,this._config=W}attach(Ie){this._overlayRef=Ie}enable(){if(this._scrollSubscription)return;const Ie=this._scrollDispatcher.scrolled(0).pipe((0,C.p)(Me=>!Me||!this._overlayRef.overlayElement.contains(Me.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=Ie.subscribe(()=>{const Me=this._viewportRuler.getViewportScrollPosition().top;Math.abs(Me-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=Ie.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 Se{enable(){}disable(){}attach(){}}function xe(Ot,Ie){return Ie.some(Me=>Ot.bottomMe.bottom||Ot.rightMe.right)}function ae(Ot,Ie){return Ie.some(Me=>Ot.topMe.bottom||Ot.leftMe.right)}class le{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(Ie,Me,nt,W){this._scrollDispatcher=Ie,this._viewportRuler=Me,this._ngZone=nt,this._config=W}attach(Ie){this._overlayRef=Ie}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 Me=this._overlayRef.overlayElement.getBoundingClientRect(),{width:nt,height:W}=this._viewportRuler.getViewportSize();xe(Me,[{width:nt,height:W,bottom:W,right:nt,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 ke=(()=>{class Ot{_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 Se;close=Me=>new Ne(this._scrollDispatcher,this._ngZone,this._viewportRuler,Me);block=()=>new Te(this._viewportRuler,this._document);reposition=Me=>new le(this._scrollDispatcher,this._viewportRuler,this._ngZone,Me);static \u0275fac=function(nt){return new(nt||Ot)};static \u0275prov=c.jDH({token:Ot,factory:Ot.\u0275fac,providedIn:"root"})}return Ot})();class Ue{positionStrategy;scrollStrategy=new Se;panelClass="";hasBackdrop=!1;backdropClass="cdk-overlay-dark-backdrop";width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=!1;constructor(Ie){if(Ie){const Me=Object.keys(Ie);for(const nt of Me)void 0!==Ie[nt]&&(this[nt]=Ie[nt])}}}class _t{connectionPair;scrollableViewProperties;constructor(Ie,Me){this.connectionPair=Ie,this.scrollableViewProperties=Me}}let un=(()=>{class Ot{_attachedOverlays=[];_document=(0,c.WQX)(a.qQ);_isAttached;constructor(){}ngOnDestroy(){this.detach()}add(Me){this.remove(Me),this._attachedOverlays.push(Me)}remove(Me){const nt=this._attachedOverlays.indexOf(Me);nt>-1&&this._attachedOverlays.splice(nt,1),0===this._attachedOverlays.length&&this.detach()}static \u0275fac=function(nt){return new(nt||Ot)};static \u0275prov=c.jDH({token:Ot,factory:Ot.\u0275fac,providedIn:"root"})}return Ot})(),wn=(()=>{class Ot extends un{_ngZone=(0,c.WQX)(c.SKi,{optional:!0});add(Me){super.add(Me),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=Me=>{const nt=this._attachedOverlays;for(let W=nt.length-1;W>-1;W--)if(nt[W]._keydownEvents.observers.length>0){const L=nt[W]._keydownEvents;this._ngZone?this._ngZone.run(()=>L.next(Me)):L.next(Me);break}};static \u0275fac=(()=>{let Me;return function(W){return(Me||(Me=c.xGo(Ot)))(W||Ot)}})();static \u0275prov=c.jDH({token:Ot,factory:Ot.\u0275fac,providedIn:"root"})}return Ot})(),$n=(()=>{class Ot extends un{_platform=(0,c.WQX)(w.OD);_ngZone=(0,c.WQX)(c.SKi,{optional:!0});_cursorOriginalValue;_cursorStyleIsSet=!1;_pointerDownEventTarget;add(Me){if(super.add(Me),!this._isAttached){const nt=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(nt)):this._addEventListeners(nt),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=nt.style.cursor,nt.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const Me=this._document.body;Me.removeEventListener("pointerdown",this._pointerDownListener,!0),Me.removeEventListener("click",this._clickListener,!0),Me.removeEventListener("auxclick",this._clickListener,!0),Me.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(Me.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(Me){Me.addEventListener("pointerdown",this._pointerDownListener,!0),Me.addEventListener("click",this._clickListener,!0),Me.addEventListener("auxclick",this._clickListener,!0),Me.addEventListener("contextmenu",this._clickListener,!0)}_pointerDownListener=Me=>{this._pointerDownEventTarget=(0,w.Fb)(Me)};_clickListener=Me=>{const nt=(0,w.Fb)(Me),W="click"===Me.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:nt;this._pointerDownEventTarget=null;const L=this._attachedOverlays.slice();for(let V=L.length-1;V>-1;V--){const Re=L[V];if(Re._outsidePointerEvents.observers.length<1||!Re.hasAttached())continue;if(En(Re.overlayElement,nt)||En(Re.overlayElement,W))break;const bt=Re._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>bt.next(Me)):bt.next(Me)}};static \u0275fac=(()=>{let Me;return function(W){return(Me||(Me=c.xGo(Ot)))(W||Ot)}})();static \u0275prov=c.jDH({token:Ot,factory:Ot.\u0275fac,providedIn:"root"})}return Ot})();function En(Ot,Ie){const Me=typeof ShadowRoot<"u"&&ShadowRoot;let nt=Ie;for(;nt;){if(nt===Ot)return!0;nt=Me&&nt instanceof ShadowRoot?nt.host:nt.parentNode}return!1}let Ze=(()=>{class Ot{static \u0275fac=function(nt){return new(nt||Ot)};static \u0275cmp=c.VBU({type:Ot,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(nt,W){},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 Ot})(),wt=(()=>{class Ot{_platform=(0,c.WQX)(w.OD);_containerElement;_document=(0,c.WQX)(a.qQ);_styleLoader=(0,c.WQX)(G.l);constructor(){}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const Me="cdk-overlay-container";if(this._platform.isBrowser||(0,w.v8)()){const W=this._document.querySelectorAll(`.${Me}[platform="server"], .${Me}[platform="test"]`);for(let L=0;Lthis._backdropClick.next(Ie);_backdropTransitionendHandler=Ie=>{this._disposeBackdrop(Ie.target)};_previousHostParent;_keydownEvents=new Z.B;_outsidePointerEvents=new Z.B;_renders=new Z.B;_afterRenderRef;_afterNextRenderRef;constructor(Ie,Me,nt,W,L,V,Re,bt,mt,At=!1,Ln){this._portalOutlet=Ie,this._host=Me,this._pane=nt,this._config=W,this._ngZone=L,this._keyboardDispatcher=V,this._document=Re,this._location=bt,this._outsideClickDispatcher=mt,this._animationsDisabled=At,this._injector=Ln,W.scrollStrategy&&(this._scrollStrategy=W.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=W.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(Ie){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const Me=this._portalOutlet.attach(Ie);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 Me?.onDestroy&&Me.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),Me}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const Ie=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),Ie}dispose(){const Ie=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,Ie&&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(Ie){Ie!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=Ie,this.hasAttached()&&(Ie.attach(this),this.updatePosition()))}updateSize(Ie){this._config={...this._config,...Ie},this._updateElementSize()}setDirection(Ie){this._config={...this._config,direction:Ie},this._updateElementDirection()}addPanelClass(Ie){this._pane&&this._toggleClasses(this._pane,Ie,!0)}removePanelClass(Ie){this._pane&&this._toggleClasses(this._pane,Ie,!1)}getDirection(){const Ie=this._config.direction;return Ie?"string"==typeof Ie?Ie:Ie.value:"ltr"}updateScrollStrategy(Ie){Ie!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=Ie,this.hasAttached()&&(Ie.attach(this),Ie.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const Ie=this._pane.style;Ie.width=(0,y.a1)(this._config.width),Ie.height=(0,y.a1)(this._config.height),Ie.minWidth=(0,y.a1)(this._config.minWidth),Ie.minHeight=(0,y.a1)(this._config.minHeight),Ie.maxWidth=(0,y.a1)(this._config.maxWidth),Ie.maxHeight=(0,y.a1)(this._config.maxHeight)}_togglePointerEvents(Ie){this._pane.style.pointerEvents=Ie?"":"none"}_attachBackdrop(){const Ie="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(Ie)})}):this._backdropElement.classList.add(Ie)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const Ie=this._backdropElement;if(Ie){if(this._animationsDisabled)return void this._disposeBackdrop(Ie);Ie.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{Ie.addEventListener("transitionend",this._backdropTransitionendHandler)}),Ie.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(Ie)},500))}}_toggleClasses(Ie,Me,nt){const W=(0,y.FG)(Me||[]).filter(L=>!!L);W.length&&(nt?Ie.classList.add(...W):Ie.classList.remove(...W))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{const Ie=this._renders.pipe((0,A.Q)((0,we.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()),Ie.unsubscribe())})})}_disposeScrollStrategy(){const Ie=this._scrollStrategy;Ie&&(Ie.disable(),Ie.detach&&Ie.detach())}_disposeBackdrop(Ie){Ie&&(Ie.removeEventListener("click",this._backdropClickHandler),Ie.removeEventListener("transitionend",this._backdropTransitionendHandler),Ie.remove(),this._backdropElement===Ie&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const Be="cdk-overlay-connected-position-bounding-box",Ut=/([A-Za-z%]+)$/;class Ke{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender;_lastBoundingBoxSize={width:0,height:0};_isPushed=!1;_canPush=!0;_growAfterOpen=!1;_hasFlexibleDimensions=!0;_positionLocked=!1;_originRect;_overlayRect;_viewportRect;_containerRect;_viewportMargin=0;_scrollables=[];_preferredPositions=[];_origin;_pane;_isDisposed;_boundingBox;_lastPosition;_lastScrollVisibility;_positionChanges=new Z.B;_resizeSubscription=te.yU.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount;positionChanges=this._positionChanges;get positions(){return this._preferredPositions}constructor(Ie,Me,nt,W,L){this._viewportRuler=Me,this._document=nt,this._platform=W,this._overlayContainer=L,this.setOrigin(Ie)}attach(Ie){this._validatePositions(),Ie.hostElement.classList.add(Be),this._overlayRef=Ie,this._boundingBox=Ie.hostElement,this._pane=Ie.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 Ie=this._originRect,Me=this._overlayRect,nt=this._viewportRect,W=this._containerRect,L=[];let V;for(let Re of this._preferredPositions){let bt=this._getOriginPoint(Ie,W,Re),mt=this._getOverlayPoint(bt,Me,Re),At=this._getOverlayFit(mt,Me,nt,Re);if(At.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(Re,bt);this._canFitWithFlexibleDimensions(At,mt,nt)?L.push({position:Re,origin:bt,overlayRect:Me,boundingBoxRect:this._calculateBoundingBoxRect(bt,Re)}):(!V||V.overlayFit.visibleAreabt&&(bt=At,Re=mt)}return this._isPushed=!1,void this._applyPosition(Re.position,Re.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(V.position,V.originPoint);this._applyPosition(V.position,V.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&<(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Be),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const Ie=this._lastPosition;if(Ie){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const Me=this._getOriginPoint(this._originRect,this._containerRect,Ie);this._applyPosition(Ie,Me)}else this.apply()}withScrollableContainers(Ie){return this._scrollables=Ie,this}withPositions(Ie){return this._preferredPositions=Ie,-1===Ie.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(Ie){return this._viewportMargin=Ie,this}withFlexibleDimensions(Ie=!0){return this._hasFlexibleDimensions=Ie,this}withGrowAfterOpen(Ie=!0){return this._growAfterOpen=Ie,this}withPush(Ie=!0){return this._canPush=Ie,this}withLockedPosition(Ie=!0){return this._positionLocked=Ie,this}setOrigin(Ie){return this._origin=Ie,this}withDefaultOffsetX(Ie){return this._offsetX=Ie,this}withDefaultOffsetY(Ie){return this._offsetY=Ie,this}withTransformOriginOn(Ie){return this._transformOriginSelector=Ie,this}_getOriginPoint(Ie,Me,nt){let W,L;if("center"==nt.originX)W=Ie.left+Ie.width/2;else{const V=this._isRtl()?Ie.right:Ie.left,Re=this._isRtl()?Ie.left:Ie.right;W="start"==nt.originX?V:Re}return Me.left<0&&(W-=Me.left),L="center"==nt.originY?Ie.top+Ie.height/2:"top"==nt.originY?Ie.top:Ie.bottom,Me.top<0&&(L-=Me.top),{x:W,y:L}}_getOverlayPoint(Ie,Me,nt){let W,L;return W="center"==nt.overlayX?-Me.width/2:"start"===nt.overlayX?this._isRtl()?-Me.width:0:this._isRtl()?0:-Me.width,L="center"==nt.overlayY?-Me.height/2:"top"==nt.overlayY?0:-Me.height,{x:Ie.x+W,y:Ie.y+L}}_getOverlayFit(Ie,Me,nt,W){const L=Ge(Me);let{x:V,y:Re}=Ie,bt=this._getOffset(W,"x"),mt=this._getOffset(W,"y");bt&&(V+=bt),mt&&(Re+=mt);let Zt=0-Re,gn=Re+L.height-nt.height,In=this._subtractOverflows(L.width,0-V,V+L.width-nt.width),Bn=this._subtractOverflows(L.height,Zt,gn),Hn=In*Bn;return{visibleArea:Hn,isCompletelyWithinViewport:L.width*L.height===Hn,fitsInViewportVertically:Bn===L.height,fitsInViewportHorizontally:In==L.width}}_canFitWithFlexibleDimensions(Ie,Me,nt){if(this._hasFlexibleDimensions){const W=nt.bottom-Me.y,L=nt.right-Me.x,V=Xe(this._overlayRef.getConfig().minHeight),Re=Xe(this._overlayRef.getConfig().minWidth);return(Ie.fitsInViewportVertically||null!=V&&V<=W)&&(Ie.fitsInViewportHorizontally||null!=Re&&Re<=L)}return!1}_pushOverlayOnScreen(Ie,Me,nt){if(this._previousPushAmount&&this._positionLocked)return{x:Ie.x+this._previousPushAmount.x,y:Ie.y+this._previousPushAmount.y};const W=Ge(Me),L=this._viewportRect,V=Math.max(Ie.x+W.width-L.width,0),Re=Math.max(Ie.y+W.height-L.height,0),bt=Math.max(L.top-nt.top-Ie.y,0),mt=Math.max(L.left-nt.left-Ie.x,0);let At=0,Ln=0;return At=W.width<=L.width?mt||-V:Ie.xIn&&!this._isInitialRender&&!this._growAfterOpen&&(V=Ie.y-In/2)}if("end"===Me.overlayX&&!W||"start"===Me.overlayX&&W)Zt=nt.width-Ie.x+2*this._viewportMargin,At=Ie.x-this._viewportMargin;else if("start"===Me.overlayX&&!W||"end"===Me.overlayX&&W)Ln=Ie.x,At=nt.right-Ie.x;else{const gn=Math.min(nt.right-Ie.x+nt.left,Ie.x),In=this._lastBoundingBoxSize.width;At=2*gn,Ln=Ie.x-gn,At>In&&!this._isInitialRender&&!this._growAfterOpen&&(Ln=Ie.x-In/2)}return{top:V,left:Ln,bottom:Re,right:Zt,width:At,height:L}}_setBoundingBoxStyles(Ie,Me){const nt=this._calculateBoundingBoxRect(Ie,Me);!this._isInitialRender&&!this._growAfterOpen&&(nt.height=Math.min(nt.height,this._lastBoundingBoxSize.height),nt.width=Math.min(nt.width,this._lastBoundingBoxSize.width));const W={};if(this._hasExactPosition())W.top=W.left="0",W.bottom=W.right=W.maxHeight=W.maxWidth="",W.width=W.height="100%";else{const L=this._overlayRef.getConfig().maxHeight,V=this._overlayRef.getConfig().maxWidth;W.height=(0,y.a1)(nt.height),W.top=(0,y.a1)(nt.top),W.bottom=(0,y.a1)(nt.bottom),W.width=(0,y.a1)(nt.width),W.left=(0,y.a1)(nt.left),W.right=(0,y.a1)(nt.right),W.alignItems="center"===Me.overlayX?"center":"end"===Me.overlayX?"flex-end":"flex-start",W.justifyContent="center"===Me.overlayY?"center":"bottom"===Me.overlayY?"flex-end":"flex-start",L&&(W.maxHeight=(0,y.a1)(L)),V&&(W.maxWidth=(0,y.a1)(V))}this._lastBoundingBoxSize=nt,lt(this._boundingBox.style,W)}_resetBoundingBoxStyles(){lt(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){lt(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(Ie,Me){const nt={},W=this._hasExactPosition(),L=this._hasFlexibleDimensions,V=this._overlayRef.getConfig();if(W){const At=this._viewportRuler.getViewportScrollPosition();lt(nt,this._getExactOverlayY(Me,Ie,At)),lt(nt,this._getExactOverlayX(Me,Ie,At))}else nt.position="static";let Re="",bt=this._getOffset(Me,"x"),mt=this._getOffset(Me,"y");bt&&(Re+=`translateX(${bt}px) `),mt&&(Re+=`translateY(${mt}px)`),nt.transform=Re.trim(),V.maxHeight&&(W?nt.maxHeight=(0,y.a1)(V.maxHeight):L&&(nt.maxHeight="")),V.maxWidth&&(W?nt.maxWidth=(0,y.a1)(V.maxWidth):L&&(nt.maxWidth="")),lt(this._pane.style,nt)}_getExactOverlayY(Ie,Me,nt){let W={top:"",bottom:""},L=this._getOverlayPoint(Me,this._overlayRect,Ie);return this._isPushed&&(L=this._pushOverlayOnScreen(L,this._overlayRect,nt)),"bottom"===Ie.overlayY?W.bottom=this._document.documentElement.clientHeight-(L.y+this._overlayRect.height)+"px":W.top=(0,y.a1)(L.y),W}_getExactOverlayX(Ie,Me,nt){let V,W={left:"",right:""},L=this._getOverlayPoint(Me,this._overlayRect,Ie);return this._isPushed&&(L=this._pushOverlayOnScreen(L,this._overlayRect,nt)),V=this._isRtl()?"end"===Ie.overlayX?"left":"right":"end"===Ie.overlayX?"right":"left","right"===V?W.right=this._document.documentElement.clientWidth-(L.x+this._overlayRect.width)+"px":W.left=(0,y.a1)(L.x),W}_getScrollVisibility(){const Ie=this._getOriginRect(),Me=this._pane.getBoundingClientRect(),nt=this._scrollables.map(W=>W.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:ae(Ie,nt),isOriginOutsideView:xe(Ie,nt),isOverlayClipped:ae(Me,nt),isOverlayOutsideView:xe(Me,nt)}}_subtractOverflows(Ie,...Me){return Me.reduce((nt,W)=>nt-Math.max(W,0),Ie)}_getNarrowedViewportRect(){const Ie=this._document.documentElement.clientWidth,Me=this._document.documentElement.clientHeight,nt=this._viewportRuler.getViewportScrollPosition();return{top:nt.top+this._viewportMargin,left:nt.left+this._viewportMargin,right:nt.left+Ie-this._viewportMargin,bottom:nt.top+Me-this._viewportMargin,width:Ie-2*this._viewportMargin,height:Me-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(Ie,Me){return"x"===Me?null==Ie.offsetX?this._offsetX:Ie.offsetX:null==Ie.offsetY?this._offsetY:Ie.offsetY}_validatePositions(){}_addPanelClasses(Ie){this._pane&&(0,y.FG)(Ie).forEach(Me=>{""!==Me&&-1===this._appliedPanelClasses.indexOf(Me)&&(this._appliedPanelClasses.push(Me),this._pane.classList.add(Me))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(Ie=>{this._pane.classList.remove(Ie)}),this._appliedPanelClasses=[])}_getOriginRect(){const Ie=this._origin;if(Ie instanceof c.aKT)return Ie.nativeElement.getBoundingClientRect();if(Ie instanceof Element)return Ie.getBoundingClientRect();const Me=Ie.width||0,nt=Ie.height||0;return{top:Ie.y,bottom:Ie.y+nt,left:Ie.x,right:Ie.x+Me,height:nt,width:Me}}}function lt(Ot,Ie){for(let Me in Ie)Ie.hasOwnProperty(Me)&&(Ot[Me]=Ie[Me]);return Ot}function Xe(Ot){if("number"!=typeof Ot&&null!=Ot){const[Ie,Me]=Ot.split(Ut);return Me&&"px"!==Me?null:parseFloat(Ie)}return Ot||null}function Ge(Ot){return{top:Math.floor(Ot.top),right:Math.floor(Ot.right),bottom:Math.floor(Ot.bottom),left:Math.floor(Ot.left),width:Math.floor(Ot.width),height:Math.floor(Ot.height)}}const Nt="cdk-global-overlay-wrapper";class tn{_overlayRef;_cssPosition="static";_topOffset="";_bottomOffset="";_alignItems="";_xPosition="";_xOffset="";_width="";_height="";_isDisposed=!1;attach(Ie){const Me=Ie.getConfig();this._overlayRef=Ie,this._width&&!Me.width&&Ie.updateSize({width:this._width}),this._height&&!Me.height&&Ie.updateSize({height:this._height}),Ie.hostElement.classList.add(Nt),this._isDisposed=!1}top(Ie=""){return this._bottomOffset="",this._topOffset=Ie,this._alignItems="flex-start",this}left(Ie=""){return this._xOffset=Ie,this._xPosition="left",this}bottom(Ie=""){return this._topOffset="",this._bottomOffset=Ie,this._alignItems="flex-end",this}right(Ie=""){return this._xOffset=Ie,this._xPosition="right",this}start(Ie=""){return this._xOffset=Ie,this._xPosition="start",this}end(Ie=""){return this._xOffset=Ie,this._xPosition="end",this}width(Ie=""){return this._overlayRef?this._overlayRef.updateSize({width:Ie}):this._width=Ie,this}height(Ie=""){return this._overlayRef?this._overlayRef.updateSize({height:Ie}):this._height=Ie,this}centerHorizontally(Ie=""){return this.left(Ie),this._xPosition="center",this}centerVertically(Ie=""){return this.top(Ie),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const Ie=this._overlayRef.overlayElement.style,Me=this._overlayRef.hostElement.style,nt=this._overlayRef.getConfig(),{width:W,height:L,maxWidth:V,maxHeight:Re}=nt,bt=!("100%"!==W&&"100vw"!==W||V&&"100%"!==V&&"100vw"!==V),mt=!("100%"!==L&&"100vh"!==L||Re&&"100%"!==Re&&"100vh"!==Re),At=this._xPosition,Ln=this._xOffset,Zt="rtl"===this._overlayRef.getConfig().direction;let gn="",In="",Bn="";bt?Bn="flex-start":"center"===At?(Bn="center",Zt?In=Ln:gn=Ln):Zt?"left"===At||"end"===At?(Bn="flex-end",gn=Ln):("right"===At||"start"===At)&&(Bn="flex-start",In=Ln):"left"===At||"start"===At?(Bn="flex-start",gn=Ln):("right"===At||"end"===At)&&(Bn="flex-end",In=Ln),Ie.position=this._cssPosition,Ie.marginLeft=bt?"0":gn,Ie.marginTop=mt?"0":this._topOffset,Ie.marginBottom=this._bottomOffset,Ie.marginRight=bt?"0":In,Me.justifyContent=Bn,Me.alignItems=mt?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const Ie=this._overlayRef.overlayElement.style,Me=this._overlayRef.hostElement,nt=Me.style;Me.classList.remove(Nt),nt.justifyContent=nt.alignItems=Ie.marginTop=Ie.marginBottom=Ie.marginLeft=Ie.marginRight=Ie.position="",this._overlayRef=null,this._isDisposed=!0}}let pn=(()=>{class Ot{_viewportRuler=(0,c.WQX)(i.Xj);_document=(0,c.WQX)(a.qQ);_platform=(0,c.WQX)(w.OD);_overlayContainer=(0,c.WQX)(wt);constructor(){}global(){return new tn}flexibleConnectedTo(Me){return new Ke(Me,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static \u0275fac=function(nt){return new(nt||Ot)};static \u0275prov=c.jDH({token:Ot,factory:Ot.\u0275fac,providedIn:"root"})}return Ot})(),Wn=(()=>{class Ot{scrollStrategies=(0,c.WQX)(ke);_overlayContainer=(0,c.WQX)(wt);_positionBuilder=(0,c.WQX)(pn);_keyboardDispatcher=(0,c.WQX)(wn);_injector=(0,c.WQX)(c.zZn);_ngZone=(0,c.WQX)(c.SKi);_document=(0,c.WQX)(a.qQ);_directionality=(0,c.WQX)(T.dS);_location=(0,c.WQX)(a.aZ);_outsideClickDispatcher=(0,c.WQX)($n);_animationsModuleType=(0,c.WQX)(c.bc$,{optional:!0});_idGenerator=(0,c.WQX)(R.g7);_appRef;_styleLoader=(0,c.WQX)(G.l);constructor(){}create(Me){this._styleLoader.load(Ze);const nt=this._createHostElement(),W=this._createPaneElement(nt),L=this._createPortalOutlet(W),V=new Ue(Me);return V.direction=V.direction||this._directionality.value,new ze(L,nt,W,V,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType,this._injector.get(c.uvJ))}position(){return this._positionBuilder}_createPaneElement(Me){const nt=this._document.createElement("div");return nt.id=this._idGenerator.getId("cdk-overlay-"),nt.classList.add("cdk-overlay-pane"),Me.appendChild(nt),nt}_createHostElement(){const Me=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(Me),Me}_createPortalOutlet(Me){return this._appRef||(this._appRef=this._injector.get(c.o8S)),new k.aI(Me,null,this._appRef,this._injector,this._document)}static \u0275fac=function(nt){return new(nt||Ot)};static \u0275prov=c.jDH({token:Ot,factory:Ot.\u0275fac,providedIn:"root"})}return Ot})();const Pt=[{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"}],en=new c.nKC("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{const Ot=(0,c.WQX)(Wn);return()=>Ot.scrollStrategies.reposition()}});let an=(()=>{class Ot{elementRef=(0,c.WQX)(c.aKT);constructor(){}static \u0275fac=function(nt){return new(nt||Ot)};static \u0275dir=c.FsC({type:Ot,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]})}return Ot})(),Yn=(()=>{class Ot{_overlay=(0,c.WQX)(Wn);_dir=(0,c.WQX)(T.dS,{optional:!0});_overlayRef;_templatePortal;_backdropSubscription=te.yU.EMPTY;_attachSubscription=te.yU.EMPTY;_detachSubscription=te.yU.EMPTY;_positionSubscription=te.yU.EMPTY;_offsetX;_offsetY;_position;_scrollStrategyFactory=(0,c.WQX)(en);_disposeOnNavigation=!1;_ngZone=(0,c.WQX)(c.SKi);origin;positions;positionStrategy;get offsetX(){return this._offsetX}set offsetX(Me){this._offsetX=Me,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(Me){this._offsetY=Me,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(Me){this._disposeOnNavigation=Me}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 Me=(0,c.WQX)(c.C4Q),nt=(0,c.WQX)(c.c1b);this._templatePortal=new k.VA(Me,nt),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(Me){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),Me.origin&&this.open&&this._position.apply()),Me.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=Pt);const Me=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=Me.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=Me.detachments().subscribe(()=>this.detach.emit()),Me.keydownEvents().subscribe(nt=>{this.overlayKeydown.next(nt),nt.keyCode===_e._f&&!this.disableClose&&!(0,_e.rp)(nt)&&(nt.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(nt=>{const W=this._getOriginElement(),L=(0,w.Fb)(nt);(!W||W!==L&&!W.contains(L))&&this.overlayOutsideClick.next(nt)})}_buildConfig(){const Me=this._position=this.positionStrategy||this._createPositionStrategy(),nt=new Ue({direction:this._dir||"ltr",positionStrategy:Me,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||0===this.width)&&(nt.width=this.width),(this.height||0===this.height)&&(nt.height=this.height),(this.minWidth||0===this.minWidth)&&(nt.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(nt.minHeight=this.minHeight),this.backdropClass&&(nt.backdropClass=this.backdropClass),this.panelClass&&(nt.panelClass=this.panelClass),nt}_updatePositionStrategy(Me){const nt=this.positions.map(W=>({originX:W.originX,originY:W.originY,overlayX:W.overlayX,overlayY:W.overlayY,offsetX:W.offsetX||this.offsetX,offsetY:W.offsetY||this.offsetY,panelClass:W.panelClass||void 0}));return Me.setOrigin(this._getOrigin()).withPositions(nt).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const Me=this._overlay.position().flexibleConnectedTo(this._getOrigin());return this._updatePositionStrategy(Me),Me}_getOrigin(){return this.origin instanceof an?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof an?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(Me=>{this.backdropClick.emit(Me)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe((0,S.v)(()=>this.positionChange.observers.length>0)).subscribe(Me=>{this._ngZone.run(()=>this.positionChange.emit(Me)),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}static \u0275fac=function(nt){return new(nt||Ot)};static \u0275dir=c.FsC({type:Ot,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 Ot})();const Xt={provide:en,deps:[Wn],useFactory:function Sn(Ot){return()=>Ot.scrollStrategies.reposition()}};let Mt=(()=>{class Ot{static \u0275fac=function(nt){return new(nt||Ot)};static \u0275mod=c.$C({type:Ot});static \u0275inj=c.G2t({providers:[Wn,Xt],imports:[T.jI,k.jc,i.E9,i.E9]})}return Ot})()},2147:(o,s,r)=>{"use strict";r.d(s,{BD:()=>_e,BQ:()=>R,CZ:()=>we,Fb:()=>Se,KT:()=>Ce,MU:()=>S,OD:()=>y,r5:()=>G,v8:()=>xe,vc:()=>Ne});var i=r(3107),a=r(4460);let c;try{c=typeof Intl<"u"&&Intl.v8BreakIterator}catch{c=!1}let C,y=(()=>{class ae{_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(Ue){return new(Ue||ae)};static \u0275prov=i.jDH({token:ae,factory:ae.\u0275fac,providedIn:"root"})}return ae})();const A=["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(A),C;let ae=document.createElement("input");return C=new Set(A.filter(le=>(ae.setAttribute("type",le),ae.type===le))),C}let T;function R(ae){return function k(){if(null==T&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>T=!0}))}finally{T=T||!1}return T}()?ae:!!ae.capture}var G=function(ae){return ae[ae.NORMAL=0]="NORMAL",ae[ae.NEGATED=1]="NEGATED",ae[ae.INVERTED=2]="INVERTED",ae}(G||{});let Z,te,pe;function we(){if(null==te){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return te=!1,te;if("scrollBehavior"in document.documentElement.style)te=!0;else{const ae=Element.prototype.scrollTo;te=!!ae&&!/\{\s*\[native code\]\s*\}/.test(ae.toString())}}return te}function _e(){if("object"!=typeof document||!document)return G.NORMAL;if(null==Z){const ae=document.createElement("div"),le=ae.style;ae.dir="rtl",le.width="1px",le.overflow="auto",le.visibility="hidden",le.pointerEvents="none",le.position="absolute";const ke=document.createElement("div"),Ue=ke.style;Ue.width="2px",Ue.height="1px",ae.appendChild(ke),document.body.appendChild(ae),Z=G.NORMAL,0===ae.scrollLeft&&(ae.scrollLeft=1,Z=0===ae.scrollLeft?G.NEGATED:G.INVERTED),ae.remove()}return Z}function Ce(ae){if(function Te(){if(null==pe){const ae=typeof document<"u"?document.head:null;pe=!(!ae||!ae.createShadowRoot&&!ae.attachShadow)}return pe}()){const le=ae.getRootNode?ae.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&le instanceof ShadowRoot)return le}return null}function Ne(){let ae=typeof document<"u"&&document?document.activeElement:null;for(;ae&&ae.shadowRoot;){const le=ae.shadowRoot.activeElement;if(le===ae)break;ae=le}return ae}function Se(ae){return ae.composedPath?ae.composedPath()[0]:ae.target}function xe(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},6192:(o,s,r)=>{"use strict";r.d(s,{A8:()=>k,I3:()=>Ce,VA:()=>R,aI:()=>we,jc:()=>Se,lb:()=>Z});var i=r(3107),a=r(4460);class T{_attachedHost;attach(le){return this._attachedHost=le,le.attach(this)}detach(){let le=this._attachedHost;null!=le&&(this._attachedHost=null,le.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(le){this._attachedHost=le}}class k extends T{component;viewContainerRef;injector;componentFactoryResolver;projectableNodes;constructor(le,ke,Ue,st,ft){super(),this.component=le,this.viewContainerRef=ke,this.injector=Ue,this.projectableNodes=ft}}class R extends T{templateRef;viewContainerRef;context;injector;constructor(le,ke,Ue,st){super(),this.templateRef=le,this.viewContainerRef=ke,this.context=Ue,this.injector=st}get origin(){return this.templateRef.elementRef}attach(le,ke=this.context){return this.context=ke,super.attach(le)}detach(){return this.context=void 0,super.detach()}}class G extends T{element;constructor(le){super(),this.element=le instanceof i.aKT?le.nativeElement:le}}class Z{_attachedPortal;_disposeFn;_isDisposed=!1;hasAttached(){return!!this._attachedPortal}attach(le){return le instanceof k?(this._attachedPortal=le,this.attachComponentPortal(le)):le instanceof R?(this._attachedPortal=le,this.attachTemplatePortal(le)):this.attachDomPortal&&le instanceof G?(this._attachedPortal=le,this.attachDomPortal(le)):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(le){this._disposeFn=le}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class we extends Z{outletElement;_appRef;_defaultInjector;_document;constructor(le,ke,Ue,st,ft){super(),this.outletElement=le,this._appRef=Ue,this._defaultInjector=st,this._document=ft}attachComponentPortal(le){let ke;if(le.viewContainerRef){const Ue=le.injector||le.viewContainerRef.injector,st=Ue.get(i.Vns,null,{optional:!0})||void 0;ke=le.viewContainerRef.createComponent(le.component,{index:le.viewContainerRef.length,injector:Ue,ngModuleRef:st,projectableNodes:le.projectableNodes||void 0}),this.setDisposeFn(()=>ke.destroy())}else ke=(0,i.a0P)(le.component,{elementInjector:le.injector||this._defaultInjector||i.zZn.NULL,environmentInjector:this._appRef.injector,projectableNodes:le.projectableNodes||void 0}),this._appRef.attachView(ke.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(ke.hostView),ke.destroy()});return this.outletElement.appendChild(this._getComponentRootNode(ke)),this._attachedPortal=le,ke}attachTemplatePortal(le){let ke=le.viewContainerRef,Ue=ke.createEmbeddedView(le.templateRef,le.context,{injector:le.injector});return Ue.rootNodes.forEach(st=>this.outletElement.appendChild(st)),Ue.detectChanges(),this.setDisposeFn(()=>{let st=ke.indexOf(Ue);-1!==st&&ke.remove(st)}),this._attachedPortal=le,Ue}attachDomPortal=le=>{const ke=le.element,Ue=this._document.createComment("dom-portal");ke.parentNode.insertBefore(Ue,ke),this.outletElement.appendChild(ke),this._attachedPortal=le,super.setDisposeFn(()=>{Ue.parentNode&&Ue.parentNode.replaceChild(ke,Ue)})};dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(le){return le.hostView.rootNodes[0]}}let Ce=(()=>{class ae 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(ke){this.hasAttached()&&!ke&&!this._isInitialized||(this.hasAttached()&&super.detach(),ke&&super.attach(ke),this._attachedPortal=ke||null)}attached=new i.bkB;get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(ke){ke.setAttachedHost(this);const Ue=null!=ke.viewContainerRef?ke.viewContainerRef:this._viewContainerRef,st=Ue.createComponent(ke.component,{index:Ue.length,injector:ke.injector||Ue.injector,projectableNodes:ke.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0});return Ue!==this._viewContainerRef&&this._getRootNode().appendChild(st.hostView.rootNodes[0]),super.setDisposeFn(()=>st.destroy()),this._attachedPortal=ke,this._attachedRef=st,this.attached.emit(st),st}attachTemplatePortal(ke){ke.setAttachedHost(this);const Ue=this._viewContainerRef.createEmbeddedView(ke.templateRef,ke.context,{injector:ke.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=ke,this._attachedRef=Ue,this.attached.emit(Ue),Ue}attachDomPortal=ke=>{const Ue=ke.element,st=this._document.createComment("dom-portal");ke.setAttachedHost(this),Ue.parentNode.insertBefore(st,Ue),this._getRootNode().appendChild(Ue),this._attachedPortal=ke,super.setDisposeFn(()=>{st.parentNode&&st.parentNode.replaceChild(Ue,st)})};_getRootNode(){const ke=this._viewContainerRef.element.nativeElement;return ke.nodeType===ke.ELEMENT_NODE?ke:ke.parentNode}static \u0275fac=function(Ue){return new(Ue||ae)};static \u0275dir=i.FsC({type:ae,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[i.Vt3]})}return ae})(),Se=(()=>{class ae{static \u0275fac=function(Ue){return new(Ue||ae)};static \u0275mod=i.$C({type:ae});static \u0275inj=i.G2t({})}return ae})()},5467:(o,s,r)=>{"use strict";r.d(s,{Y:()=>y,l:()=>c});var i=r(3107);const a=new WeakMap;let c=(()=>{class w{_appRef;_injector=(0,i.WQX)(i.zZn);_environmentInjector=(0,i.WQX)(i.uvJ);load(A){const S=this._appRef=this._appRef||this._injector.get(i.o8S);let T=a.get(S);T||(T={loaders:new Set,refs:[]},a.set(S,T),S.onDestroy(()=>{a.get(S)?.refs.forEach(k=>k.destroy()),a.delete(S)})),T.loaders.has(A)||(T.loaders.add(A),T.refs.push((0,i.a0P)(A,{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,T){},styles:[".cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] .cdk-visually-hidden{left:auto;right:0}"],encapsulation:2,changeDetection:0})}return w})()},8108:(o,s,r)=>{"use strict";r.d(s,{uv:()=>ot,Gj:()=>lt,R:()=>_t,E9:()=>Xe,Xj:()=>un});var i=r(3022),a=r(3107),c=r(8447),y=r(3016),w=r(1698),C=r(909),A=r(9899),S=r(5710);const T={schedule(Ge){let pt=requestAnimationFrame,se=cancelAnimationFrame;const{delegate:qe}=T;qe&&(pt=qe.requestAnimationFrame,se=qe.cancelAnimationFrame);const Nt=pt(tn=>{se=void 0,Ge(tn)});return new S.yU(()=>se?.(Nt))},requestAnimationFrame(...Ge){const{delegate:pt}=T;return(pt?.requestAnimationFrame||requestAnimationFrame)(...Ge)},cancelAnimationFrame(...Ge){const{delegate:pt}=T;return(pt?.cancelAnimationFrame||cancelAnimationFrame)(...Ge)},delegate:void 0};var R=r(8050);new class G extends R.q{flush(pt){this._active=!0;const se=this._scheduled;this._scheduled=void 0;const{actions:qe}=this;let Nt;pt=pt||qe.shift();do{if(Nt=pt.execute(pt.state,pt.delay))break}while((pt=qe[0])&&pt.id===se&&qe.shift());if(this._active=!1,Nt){for(;(pt=qe[0])&&pt.id===se&&qe.shift();)pt.unsubscribe();throw Nt}}}(class k extends A.R{constructor(pt,se){super(pt,se),this.scheduler=pt,this.work=se}requestAsyncId(pt,se,qe=0){return null!==qe&&qe>0?super.requestAsyncId(pt,se,qe):(pt.actions.push(this),pt._scheduled||(pt._scheduled=T.requestAnimationFrame(()=>pt.flush(void 0))))}recycleAsyncId(pt,se,qe=0){var Nt;if(null!=qe?qe>0:this.delay>0)return super.recycleAsyncId(pt,se,qe);const{actions:tn}=pt;null!=se&&(null===(Nt=tn[tn.length-1])||void 0===Nt?void 0:Nt.id)!==se&&(T.cancelAnimationFrame(se),pt._scheduled=void 0)}});r(4984);var _e=r(5684),pe=r(1483),Te=r(5424),Ce=r(2147),Ne=r(4460),Se=r(2944);let _t=(()=>{class Ge{_ngZone=(0,a.WQX)(a.SKi);_platform=(0,a.WQX)(Ce.OD);_document=(0,a.WQX)(Ne.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 qe=this.scrollContainers.get(se);qe&&(qe.unsubscribe(),this.scrollContainers.delete(se))}scrolled(se=20){return this._platform.isBrowser?new w.c(qe=>{this._globalSubscription||this._addGlobalListener();const Nt=se>0?this._scrolled.pipe((0,_e.Z)(se)).subscribe(qe):this._scrolled.subscribe(qe);return this._scrolledCount++,()=>{Nt.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,y.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((se,qe)=>this.deregister(qe)),this._scrolled.complete()}ancestorScrolled(se,qe){const Nt=this.getAncestorScrollContainers(se);return this.scrolled(qe).pipe((0,pe.p)(tn=>!tn||Nt.indexOf(tn)>-1))}getAncestorScrollContainers(se){const qe=[];return this.scrollContainers.forEach((Nt,tn)=>{this._scrollableContainsElement(tn,se)&&qe.push(tn)}),qe}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(se,qe){let Nt=(0,i.i8)(qe),tn=se.getElementRef().nativeElement;do{if(Nt==tn)return!0}while(Nt=Nt.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(qe){return new(qe||Ge)};static \u0275prov=a.jDH({token:Ge,factory:Ge.\u0275fac,providedIn:"root"})}return Ge})(),ot=(()=>{class Ge{elementRef=(0,a.WQX)(a.aKT);scrollDispatcher=(0,a.WQX)(_t);ngZone=(0,a.WQX)(a.SKi);dir=(0,a.WQX)(Se.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 qe=this.elementRef.nativeElement,Nt=this.dir&&"rtl"==this.dir.value;null==se.left&&(se.left=Nt?se.end:se.start),null==se.right&&(se.right=Nt?se.start:se.end),null!=se.bottom&&(se.top=qe.scrollHeight-qe.clientHeight-se.bottom),Nt&&(0,Ce.BD)()!=Ce.r5.NORMAL?(null!=se.left&&(se.right=qe.scrollWidth-qe.clientWidth-se.left),(0,Ce.BD)()==Ce.r5.INVERTED?se.left=se.right:(0,Ce.BD)()==Ce.r5.NEGATED&&(se.left=se.right?-se.right:se.right)):null!=se.right&&(se.left=qe.scrollWidth-qe.clientWidth-se.right),this._applyScrollToOptions(se)}_applyScrollToOptions(se){const qe=this.elementRef.nativeElement;(0,Ce.CZ)()?qe.scrollTo(se):(null!=se.top&&(qe.scrollTop=se.top),null!=se.left&&(qe.scrollLeft=se.left))}measureScrollOffset(se){const qe="left",tn=this.elementRef.nativeElement;if("top"==se)return tn.scrollTop;if("bottom"==se)return tn.scrollHeight-tn.clientHeight-tn.scrollTop;const pn=this.dir&&"rtl"==this.dir.value;return"start"==se?se=pn?"right":qe:"end"==se&&(se=pn?qe:"right"),pn&&(0,Ce.BD)()==Ce.r5.INVERTED?se==qe?tn.scrollWidth-tn.clientWidth-tn.scrollLeft:tn.scrollLeft:pn&&(0,Ce.BD)()==Ce.r5.NEGATED?se==qe?tn.scrollLeft+tn.scrollWidth-tn.clientWidth:-tn.scrollLeft:se==qe?tn.scrollLeft:tn.scrollWidth-tn.clientWidth-tn.scrollLeft}static \u0275fac=function(qe){return new(qe||Ge)};static \u0275dir=a.FsC({type:Ge,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]})}return Ge})(),un=(()=>{class Ge{_platform=(0,a.WQX)(Ce.OD);_viewportSize;_change=new c.B;_changeListener=se=>{this._change.next(se)};_document=(0,a.WQX)(Ne.qQ,{optional:!0});constructor(){(0,a.WQX)(a.SKi).runOutsideAngular(()=>{if(this._platform.isBrowser){const qe=this._getWindow();qe.addEventListener("resize",this._changeListener),qe.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:qe,height:Nt}=this.getViewportSize();return{top:se.top,left:se.left,bottom:se.top+Nt,right:se.left+qe,height:Nt,width:qe}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const se=this._document,qe=this._getWindow(),Nt=se.documentElement,tn=Nt.getBoundingClientRect();return{top:-tn.top||se.body.scrollTop||qe.scrollY||Nt.scrollTop||0,left:-tn.left||se.body.scrollLeft||qe.scrollX||Nt.scrollLeft||0}}change(se=20){return se>0?this._change.pipe((0,_e.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(qe){return new(qe||Ge)};static \u0275prov=a.jDH({token:Ge,factory:Ge.\u0275fac,providedIn:"root"})}return Ge})(),lt=(()=>{class Ge{static \u0275fac=function(qe){return new(qe||Ge)};static \u0275mod=a.$C({type:Ge});static \u0275inj=a.G2t({})}return Ge})(),Xe=(()=>{class Ge{static \u0275fac=function(qe){return new(qe||Ge)};static \u0275mod=a.$C({type:Ge});static \u0275inj=a.G2t({imports:[Se.jI,lt,Se.jI,lt]})}return Ge})()},708:(o,s,r)=>{"use strict";r.d(s,{EE:()=>_e,P8:()=>Z,xb:()=>we});var i=r(2147),a=r(3107),c=r(5467),y=r(3022),w=r(6564),C=r(8447),A=r(909),S=r(4460),T=r(5684),k=r(5424);let R=(()=>{class pe{static \u0275fac=function(Ne){return new(Ne||pe)};static \u0275cmp=a.VBU({type:pe,selectors:[["ng-component"]],hostAttrs:["cdk-text-field-style-loader",""],decls:0,vars:0,template:function(Ne,Se){},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(Ce){if(!this._platform.isBrowser)return w.w;this._styleLoader.load(R);const Ne=(0,y.i8)(Ce),Se=this._monitoredElements.get(Ne);if(Se)return Se.subject;const xe=new C.B,ae="cdk-text-field-autofilled",le=ke=>{"cdk-text-field-autofill-start"!==ke.animationName||Ne.classList.contains(ae)?"cdk-text-field-autofill-end"===ke.animationName&&Ne.classList.contains(ae)&&(Ne.classList.remove(ae),this._ngZone.run(()=>xe.next({target:ke.target,isAutofilled:!1}))):(Ne.classList.add(ae),this._ngZone.run(()=>xe.next({target:ke.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{Ne.addEventListener("animationstart",le,G),Ne.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(Ne,{subject:xe,unlisten:()=>{Ne.removeEventListener("animationstart",le,G)}}),xe}stopMonitoring(Ce){const Ne=(0,y.i8)(Ce),Se=this._monitoredElements.get(Ne);Se&&(Se.unlisten(),Se.subject.complete(),Ne.classList.remove("cdk-text-field-autofill-monitored"),Ne.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(Ne))}ngOnDestroy(){this._monitoredElements.forEach((Ce,Ne)=>this.stopMonitoring(Ne))}static \u0275fac=function(Ne){return new(Ne||pe)};static \u0275prov=a.jDH({token:pe,factory:pe.\u0275fac,providedIn:"root"})}return pe})(),we=(()=>{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(Ce){this._minRows=(0,y.OE)(Ce),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(Ce){this._maxRows=(0,y.OE)(Ce),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(Ce){this._enabled!==Ce&&((this._enabled=Ce)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(Ce){this._cachedPlaceholderHeight=void 0,Ce?this._textareaElement.setAttribute("placeholder",Ce):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}_cachedLineHeight;_cachedPlaceholderHeight;_document=(0,a.WQX)(S.qQ,{optional:!0});_hasFocus;_isViewInited=!1;constructor(){(0,a.WQX)(c.l).load(R),this._textareaElement=this._elementRef.nativeElement}_setMinHeight(){const Ce=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;Ce&&(this._textareaElement.style.minHeight=Ce)}_setMaxHeight(){const Ce=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;Ce&&(this._textareaElement.style.maxHeight=Ce)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{const Ce=this._getWindow();(0,A.R)(Ce,"resize").pipe((0,T.Z)(16),(0,k.Q)(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0)),this._textareaElement.addEventListener("focus",this._handleFocusEvent),this._textareaElement.addEventListener("blur",this._handleFocusEvent)}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._textareaElement.removeEventListener("focus",this._handleFocusEvent),this._textareaElement.removeEventListener("blur",this._handleFocusEvent),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let Ce=this._textareaElement.cloneNode(!1);Ce.rows=1,Ce.style.position="absolute",Ce.style.visibility="hidden",Ce.style.border="none",Ce.style.padding="0",Ce.style.height="",Ce.style.minHeight="",Ce.style.maxHeight="",Ce.style.overflow="hidden",this._textareaElement.parentNode.appendChild(Ce),this._cachedLineHeight=Ce.clientHeight,Ce.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const Ce=this._textareaElement,Ne=Ce.style.marginBottom||"",Se=this._platform.FIREFOX,xe=Se&&this._hasFocus,ae=Se?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";xe&&(Ce.style.marginBottom=`${Ce.clientHeight}px`),Ce.classList.add(ae);const le=Ce.scrollHeight-4;return Ce.classList.remove(ae),xe&&(Ce.style.marginBottom=Ne),le}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const Ce=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=Ce}_handleFocusEvent=Ce=>{this._hasFocus="focus"===Ce.type};ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(Ce=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const Ne=this._elementRef.nativeElement,Se=Ne.value;if(!Ce&&this._minRows===this._previousMinRows&&Se===this._previousValue)return;const xe=this._measureScrollHeight(),ae=Math.max(xe,this._cachedPlaceholderHeight||0);Ne.style.height=`${ae}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(Ne)):setTimeout(()=>this._scrollToCaretPosition(Ne))}),this._previousValue=Se,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(Ce){const{selectionStart:Ne,selectionEnd:Se}=Ce;!this._destroyed.isStopped&&this._hasFocus&&Ce.setSelectionRange(Ne,Se)}static \u0275fac=function(Ne){return new(Ne||pe)};static \u0275dir=a.FsC({type:pe,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(Ne,Se){1&Ne&&a.bIt("input",function(){return Se._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})(),_e=(()=>{class pe{static \u0275fac=function(Ne){return new(Ne||pe)};static \u0275mod=a.$C({type:pe});static \u0275inj=a.G2t({})}return pe})()},4460:(o,s,r)=>{"use strict";r.d(s,{AJ:()=>Eo,B3:()=>pr,Jj:()=>cs,MD:()=>tr,N0:()=>Qo,PV:()=>Sr,QT:()=>y,Sm:()=>pe,Sq:()=>me,T3:()=>bi,UE:()=>ks,VF:()=>C,Vy:()=>Fs,Xr:()=>Yo,YU:()=>Mo,ZD:()=>w,_b:()=>eo,aZ:()=>Ce,bT:()=>ht,fw:()=>Te,hb:()=>we,hj:()=>k,jo:()=>Wi,qQ:()=>S,vh:()=>Ls});var i=r(3107),a=r(8447);let c=null;function y(){return c}function w(U){c??=U}class C{}const S=new i.nKC("");let T=(()=>{class U{historyGo(q){throw new Error("")}static \u0275fac=function(ve){return new(ve||U)};static \u0275prov=i.jDH({token:U,factory:()=>(0,i.WQX)(R),providedIn:"platform"})}return U})();const k=new i.nKC("");let R=(()=>{class U extends T{_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 ve=y().getGlobalEventTarget(this._doc,"window");return ve.addEventListener("popstate",q,!1),()=>ve.removeEventListener("popstate",q)}onHashChange(q){const ve=y().getGlobalEventTarget(this._doc,"window");return ve.addEventListener("hashchange",q,!1),()=>ve.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,ve,rt){this._history.pushState(q,ve,rt)}replaceState(q,ve,rt){this._history.replaceState(q,ve,rt)}forward(){this._history.forward()}back(){this._history.back()}historyGo(q=0){this._history.go(q)}getState(){return this._history.state}static \u0275fac=function(ve){return new(ve||U)};static \u0275prov=i.jDH({token:U,factory:()=>new U,providedIn:"platform"})}return U})();function G(U,de){if(0==U.length)return de;if(0==de.length)return U;let q=0;return U.endsWith("/")&&q++,de.startsWith("/")&&q++,2==q?U+de.substring(1):1==q?U+de:U+"/"+de}function Z(U){const de=U.match(/#|\?|$/),q=de&&de.index||U.length;return U.slice(0,q-("/"===U[q-1]?1:0))+U.slice(q)}function te(U){return U&&"?"!==U[0]?"?"+U:U}let we=(()=>{class U{historyGo(q){throw new Error("")}static \u0275fac=function(ve){return new(ve||U)};static \u0275prov=i.jDH({token:U,factory:()=>(0,i.WQX)(pe),providedIn:"root"})}return U})();const _e=new i.nKC("");let pe=(()=>{class U extends we{_platformLocation;_baseHref;_removeListenerFns=[];constructor(q,ve){super(),this._platformLocation=q,this._baseHref=ve??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 ve=this._platformLocation.pathname+te(this._platformLocation.search),rt=this._platformLocation.hash;return rt&&q?`${ve}${rt}`:ve}pushState(q,ve,rt,bn){const Rn=this.prepareExternalUrl(rt+te(bn));this._platformLocation.pushState(q,ve,Rn)}replaceState(q,ve,rt,bn){const Rn=this.prepareExternalUrl(rt+te(bn));this._platformLocation.replaceState(q,ve,Rn)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(q=0){this._platformLocation.historyGo?.(q)}static \u0275fac=function(ve){return new(ve||U)(i.KVO(T),i.KVO(_e,8))};static \u0275prov=i.jDH({token:U,factory:U.\u0275fac,providedIn:"root"})}return U})(),Te=(()=>{class U extends we{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(q,ve){super(),this._platformLocation=q,null!=ve&&(this._baseHref=ve)}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 ve=this._platformLocation.hash??"#";return ve.length>0?ve.substring(1):ve}prepareExternalUrl(q){const ve=G(this._baseHref,q);return ve.length>0?"#"+ve:ve}pushState(q,ve,rt,bn){let Rn=this.prepareExternalUrl(rt+te(bn));0==Rn.length&&(Rn=this._platformLocation.pathname),this._platformLocation.pushState(q,ve,Rn)}replaceState(q,ve,rt,bn){let Rn=this.prepareExternalUrl(rt+te(bn));0==Rn.length&&(Rn=this._platformLocation.pathname),this._platformLocation.replaceState(q,ve,Rn)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(q=0){this._platformLocation.historyGo?.(q)}static \u0275fac=function(ve){return new(ve||U)(i.KVO(T),i.KVO(_e,8))};static \u0275prov=i.jDH({token:U,factory:U.\u0275fac})}return U})(),Ce=(()=>{class U{_subject=new a.B;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(q){this._locationStrategy=q;const ve=this._locationStrategy.getBaseHref();this._basePath=function ae(U){if(new RegExp("^(https?:)?//").test(U)){const[,q]=U.split(/\/\/[^\/]+/);return q}return U}(Z(xe(ve))),this._locationStrategy.onPopState(rt=>{this._subject.next({url:this.path(!0),pop:!0,state:rt.state,type:rt.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(q=!1){return this.normalize(this._locationStrategy.path(q))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(q,ve=""){return this.path()==this.normalize(q+te(ve))}normalize(q){return U.stripTrailingSlash(function Se(U,de){if(!U||!de.startsWith(U))return de;const q=de.substring(U.length);return""===q||["/",";","?","#"].includes(q[0])?q:de}(this._basePath,xe(q)))}prepareExternalUrl(q){return q&&"/"!==q[0]&&(q="/"+q),this._locationStrategy.prepareExternalUrl(q)}go(q,ve="",rt=null){this._locationStrategy.pushState(rt,"",q,ve),this._notifyUrlChangeListeners(this.prepareExternalUrl(q+te(ve)),rt)}replaceState(q,ve="",rt=null){this._locationStrategy.replaceState(rt,"",q,ve),this._notifyUrlChangeListeners(this.prepareExternalUrl(q+te(ve)),rt)}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(ve=>{this._notifyUrlChangeListeners(ve.url,ve.state)}),()=>{const ve=this._urlChangeListeners.indexOf(q);this._urlChangeListeners.splice(ve,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(q="",ve){this._urlChangeListeners.forEach(rt=>rt(q,ve))}subscribe(q,ve,rt){return this._subject.subscribe({next:q,error:ve??void 0,complete:rt??void 0})}static normalizeQueryParams=te;static joinWithSlash=G;static stripTrailingSlash=Z;static \u0275fac=function(ve){return new(ve||U)(i.KVO(we))};static \u0275prov=i.jDH({token:U,factory:()=>function Ne(){return new Ce((0,i.KVO)(we))}(),providedIn:"root"})}return U})();function xe(U){return U.replace(/\/index.html$/,"")}var Ue=function(U){return U[U.Zero=0]="Zero",U[U.One=1]="One",U[U.Two=2]="Two",U[U.Few=3]="Few",U[U.Many=4]="Many",U[U.Other=5]="Other",U}(Ue||{}),st=function(U){return U[U.Format=0]="Format",U[U.Standalone=1]="Standalone",U}(st||{}),ft=function(U){return U[U.Narrow=0]="Narrow",U[U.Abbreviated=1]="Abbreviated",U[U.Wide=2]="Wide",U[U.Short=3]="Short",U}(ft||{}),_t=function(U){return U[U.Short=0]="Short",U[U.Medium=1]="Medium",U[U.Long=2]="Long",U[U.Full=3]="Full",U}(_t||{});const ot={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function Be(U,de){return en((0,i.H5H)(U)[i.KH2.DateFormat],de)}function Ut(U,de){return en((0,i.H5H)(U)[i.KH2.TimeFormat],de)}function Ke(U,de){return en((0,i.H5H)(U)[i.KH2.DateTimeFormat],de)}function lt(U,de){const q=(0,i.H5H)(U),ve=q[i.KH2.NumberSymbols][de];if(typeof ve>"u"){if(de===ot.CurrencyDecimal)return q[i.KH2.NumberSymbols][ot.Decimal];if(de===ot.CurrencyGroup)return q[i.KH2.NumberSymbols][ot.Group]}return ve}const Nt=i.mq5;function tn(U){if(!U[i.KH2.ExtraData])throw new Error(`Missing extra locale data for the locale "${U[i.KH2.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function en(U,de){for(let q=de;q>-1;q--)if(typeof U[q]<"u")return U[q];throw new Error("Locale data API: locale data undefined")}function an(U){const[de,q]=U.split(":");return{hours:+de,minutes:+q}}const Mt=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Gt={},Ot=/((?:[^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 Ie=function(U){return U[U.Short=0]="Short",U[U.ShortGMT=1]="ShortGMT",U[U.Long=2]="Long",U[U.Extended=3]="Extended",U}(Ie||{}),Me=function(U){return U[U.FullYear=0]="FullYear",U[U.Month=1]="Month",U[U.Date=2]="Date",U[U.Hours=3]="Hours",U[U.Minutes=4]="Minutes",U[U.Seconds=5]="Seconds",U[U.FractionalSeconds=6]="FractionalSeconds",U[U.Day=7]="Day",U}(Me||{}),nt=function(U){return U[U.DayPeriods=0]="DayPeriods",U[U.Days=1]="Days",U[U.Months=2]="Months",U[U.Eras=3]="Eras",U}(nt||{});function W(U,de,q,ve){let rt=function dt(U){if(_n(U))return U;if("number"==typeof U&&!isNaN(U))return new Date(U);if("string"==typeof U){if(U=U.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(U)){const[rt,bn=1,Rn=1]=U.split("-").map(Cr=>+Cr);return L(rt,bn-1,Rn)}const q=parseFloat(U);if(!isNaN(U-q))return new Date(q);let ve;if(ve=U.match(Mt))return function Bt(U){const de=new Date(0);let q=0,ve=0;const rt=U[8]?de.setUTCFullYear:de.setFullYear,bn=U[8]?de.setUTCHours:de.setHours;U[9]&&(q=Number(U[9]+U[10]),ve=Number(U[9]+U[11])),rt.call(de,Number(U[1]),Number(U[2])-1,Number(U[3]));const Rn=Number(U[4]||0)-q,Cr=Number(U[5]||0)-ve,Yr=Number(U[6]||0),Li=Math.floor(1e3*parseFloat("0."+(U[7]||0)));return bn.call(de,Rn,Cr,Yr,Li),de}(ve)}const de=new Date(U);if(!_n(de))throw new Error(`Unable to convert "${U}" into a date`);return de}(U);de=V(q,de)||de;let Cr,Rn=[];for(;de;){if(Cr=Ot.exec(de),!Cr){Rn.push(de);break}{Rn=Rn.concat(Cr.slice(1));const Hr=Rn.pop();if(!Hr)break;de=Hr}}let Yr=rt.getTimezoneOffset();ve&&(Yr=at(ve,Yr),rt=function Rt(U,de,q){const ve=q?-1:1,rt=U.getTimezoneOffset();return function Fe(U,de){return(U=new Date(U.getTime())).setMinutes(U.getMinutes()+de),U}(U,ve*(at(de,rt)-rt))}(rt,ve,!0));let Li="";return Rn.forEach(Hr=>{const xi=function Ee(U){if($t[U])return $t[U];let de;switch(U){case"G":case"GG":case"GGG":de=Zt(nt.Eras,ft.Abbreviated);break;case"GGGG":de=Zt(nt.Eras,ft.Wide);break;case"GGGGG":de=Zt(nt.Eras,ft.Narrow);break;case"y":de=At(Me.FullYear,1,0,!1,!0);break;case"yy":de=At(Me.FullYear,2,0,!0,!0);break;case"yyy":de=At(Me.FullYear,3,0,!1,!0);break;case"yyyy":de=At(Me.FullYear,4,0,!1,!0);break;case"Y":de=vt(1);break;case"YY":de=vt(2,!0);break;case"YYY":de=vt(3);break;case"YYYY":de=vt(4);break;case"M":case"L":de=At(Me.Month,1,1);break;case"MM":case"LL":de=At(Me.Month,2,1);break;case"MMM":de=Zt(nt.Months,ft.Abbreviated);break;case"MMMM":de=Zt(nt.Months,ft.Wide);break;case"MMMMM":de=Zt(nt.Months,ft.Narrow);break;case"LLL":de=Zt(nt.Months,ft.Abbreviated,st.Standalone);break;case"LLLL":de=Zt(nt.Months,ft.Wide,st.Standalone);break;case"LLLLL":de=Zt(nt.Months,ft.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=At(Me.Date,1);break;case"dd":de=At(Me.Date,2);break;case"c":case"cc":de=At(Me.Day,1);break;case"ccc":de=Zt(nt.Days,ft.Abbreviated,st.Standalone);break;case"cccc":de=Zt(nt.Days,ft.Wide,st.Standalone);break;case"ccccc":de=Zt(nt.Days,ft.Narrow,st.Standalone);break;case"cccccc":de=Zt(nt.Days,ft.Short,st.Standalone);break;case"E":case"EE":case"EEE":de=Zt(nt.Days,ft.Abbreviated);break;case"EEEE":de=Zt(nt.Days,ft.Wide);break;case"EEEEE":de=Zt(nt.Days,ft.Narrow);break;case"EEEEEE":de=Zt(nt.Days,ft.Short);break;case"a":case"aa":case"aaa":de=Zt(nt.DayPeriods,ft.Abbreviated);break;case"aaaa":de=Zt(nt.DayPeriods,ft.Wide);break;case"aaaaa":de=Zt(nt.DayPeriods,ft.Narrow);break;case"b":case"bb":case"bbb":de=Zt(nt.DayPeriods,ft.Abbreviated,st.Standalone,!0);break;case"bbbb":de=Zt(nt.DayPeriods,ft.Wide,st.Standalone,!0);break;case"bbbbb":de=Zt(nt.DayPeriods,ft.Narrow,st.Standalone,!0);break;case"B":case"BB":case"BBB":de=Zt(nt.DayPeriods,ft.Abbreviated,st.Format,!0);break;case"BBBB":de=Zt(nt.DayPeriods,ft.Wide,st.Format,!0);break;case"BBBBB":de=Zt(nt.DayPeriods,ft.Narrow,st.Format,!0);break;case"h":de=At(Me.Hours,1,-12);break;case"hh":de=At(Me.Hours,2,-12);break;case"H":de=At(Me.Hours,1);break;case"HH":de=At(Me.Hours,2);break;case"m":de=At(Me.Minutes,1);break;case"mm":de=At(Me.Minutes,2);break;case"s":de=At(Me.Seconds,1);break;case"ss":de=At(Me.Seconds,2);break;case"S":de=At(Me.FractionalSeconds,1);break;case"SS":de=At(Me.FractionalSeconds,2);break;case"SSS":de=At(Me.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":de=In(Ie.Short);break;case"ZZZZZ":de=In(Ie.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":de=In(Ie.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":de=In(Ie.Long);break;default:return null}return $t[U]=de,de}(Hr);Li+=xi?xi(rt,q,Yr):"''"===Hr?"'":Hr.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),Li}function L(U,de,q){const ve=new Date(0);return ve.setFullYear(U,de,q),ve.setHours(0,0,0),ve}function V(U,de){const q=function un(U){return(0,i.H5H)(U)[i.KH2.LocaleId]}(U);if(Gt[q]??={},Gt[q][de])return Gt[q][de];let ve="";switch(de){case"shortDate":ve=Be(U,_t.Short);break;case"mediumDate":ve=Be(U,_t.Medium);break;case"longDate":ve=Be(U,_t.Long);break;case"fullDate":ve=Be(U,_t.Full);break;case"shortTime":ve=Ut(U,_t.Short);break;case"mediumTime":ve=Ut(U,_t.Medium);break;case"longTime":ve=Ut(U,_t.Long);break;case"fullTime":ve=Ut(U,_t.Full);break;case"short":const rt=V(U,"shortTime"),bn=V(U,"shortDate");ve=Re(Ke(U,_t.Short),[rt,bn]);break;case"medium":const Rn=V(U,"mediumTime"),Cr=V(U,"mediumDate");ve=Re(Ke(U,_t.Medium),[Rn,Cr]);break;case"long":const Yr=V(U,"longTime"),Li=V(U,"longDate");ve=Re(Ke(U,_t.Long),[Yr,Li]);break;case"full":const Hr=V(U,"fullTime"),xi=V(U,"fullDate");ve=Re(Ke(U,_t.Full),[Hr,xi])}return ve&&(Gt[q][de]=ve),ve}function Re(U,de){return de&&(U=U.replace(/\{([^}]+)}/g,function(q,ve){return null!=de&&ve in de?de[ve]:q})),U}function bt(U,de,q="-",ve,rt){let bn="";(U<0||rt&&U<=0)&&(rt?U=1-U:(U=-U,bn=q));let Rn=String(U);for(;Rn.length0||Cr>-q)&&(Cr+=q),U===Me.Hours)0===Cr&&-12===q&&(Cr=12);else if(U===Me.FractionalSeconds)return function mt(U,de){return bt(U,3).substring(0,de)}(Cr,de);const Yr=lt(Rn,ot.MinusSign);return bt(Cr,de,Yr,ve,rt)}}function Zt(U,de,q=st.Format,ve=!1){return function(rt,bn){return function gn(U,de,q,ve,rt,bn){switch(q){case nt.Months:return function En(U,de,q){const ve=(0,i.H5H)(U),bn=en([ve[i.KH2.MonthsFormat],ve[i.KH2.MonthsStandalone]],de);return en(bn,q)}(de,rt,ve)[U.getMonth()];case nt.Days:return function $n(U,de,q){const ve=(0,i.H5H)(U),bn=en([ve[i.KH2.DaysFormat],ve[i.KH2.DaysStandalone]],de);return en(bn,q)}(de,rt,ve)[U.getDay()];case nt.DayPeriods:const Rn=U.getHours(),Cr=U.getMinutes();if(bn){const Li=function pn(U){const de=(0,i.H5H)(U);return tn(de),(de[i.KH2.ExtraData][2]||[]).map(ve=>"string"==typeof ve?an(ve):[an(ve[0]),an(ve[1])])}(de),Hr=function Wn(U,de,q){const ve=(0,i.H5H)(U);tn(ve);const bn=en([ve[i.KH2.ExtraData][0],ve[i.KH2.ExtraData][1]],de)||[];return en(bn,q)||[]}(de,rt,ve),xi=Li.findIndex(Qr=>{if(Array.isArray(Qr)){const[di,Fo]=Qr,Wo=Rn>=di.hours&&Cr>=di.minutes,fs=Rn0?Math.floor(rt/60):Math.ceil(rt/60);switch(U){case Ie.Short:return(rt>=0?"+":"")+bt(Rn,2,bn)+bt(Math.abs(rt%60),2,bn);case Ie.ShortGMT:return"GMT"+(rt>=0?"+":"")+bt(Rn,1,bn);case Ie.Long:return"GMT"+(rt>=0?"+":"")+bt(Rn,2,bn)+":"+bt(Math.abs(rt%60),2,bn);case Ie.Extended:return 0===ve?"Z":(rt>=0?"+":"")+bt(Rn,2,bn)+":"+bt(Math.abs(rt%60),2,bn);default:throw new Error(`Unknown zone width "${U}"`)}}}const Bn=0,Hn=4;function ei(U){const de=U.getDay(),q=0===de?-3:Hn-de;return L(U.getFullYear(),U.getMonth(),U.getDate()+q)}function Xr(U,de=!1){return function(q,ve){let rt;if(de){const bn=new Date(q.getFullYear(),q.getMonth(),1).getDay()-1,Rn=q.getDate();rt=1+Math.floor((Rn+bn)/7)}else{const bn=ei(q),Rn=function xr(U){const de=L(U,Bn,1).getDay();return L(U,0,1+(de<=Hn?Hn:Hn+7)-de)}(bn.getFullYear()),Cr=bn.getTime()-Rn.getTime();rt=1+Math.round(Cr/6048e5)}return bt(rt,U,lt(ve,ot.MinusSign))}}function vt(U,de=!1){return function(q,ve){return bt(ei(q).getFullYear(),U,lt(ve,ot.MinusSign),de)}}const $t={};function at(U,de){U=U.replace(/:/g,"");const q=Date.parse("Jan 01, 1970 00:00:00 "+U)/6e4;return isNaN(q)?de:q}function _n(U){return U instanceof Date&&!isNaN(U.valueOf())}let bo=(()=>{class U{static \u0275fac=function(ve){return new(ve||U)};static \u0275prov=i.jDH({token:U,factory:function(ve){let rt=null;return ve?rt=new ve:(bn=i.KVO(i.xe9),rt=new Do(bn)),rt;var bn},providedIn:"root"})}return U})();let Do=(()=>{class U extends bo{locale;constructor(q){super(),this.locale=q}getPluralCategory(q,ve){switch(Nt(ve||this.locale)(q)){case Ue.Zero:return"zero";case Ue.One:return"one";case Ue.Two:return"two";case Ue.Few:return"few";case Ue.Many:return"many";default:return"other"}}static \u0275fac=function(ve){return new(ve||U)(i.KVO(i.xe9))};static \u0275prov=i.jDH({token:U,factory:U.\u0275fac})}return U})();function eo(U,de){de=encodeURIComponent(de);for(const q of U.split(";")){const ve=q.indexOf("="),[rt,bn]=-1==ve?[q,""]:[q.slice(0,ve),q.slice(ve+1)];if(rt.trim()===de)return decodeURIComponent(bn)}return null}const oo=/\s+/,Bi=[];let Mo=(()=>{class U{_ngEl;_renderer;initialClasses=Bi;rawClass;stateMap=new Map;constructor(q,ve){this._ngEl=q,this._renderer=ve}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 ve of this.initialClasses)this._updateState(ve,!0);const q=this.rawClass;if(Array.isArray(q)||q instanceof Set)for(const ve of q)this._updateState(ve,!0);else if(null!=q)for(const ve of Object.keys(q))this._updateState(ve,!!q[ve]);this._applyStateDiff()}_updateState(q,ve){const rt=this.stateMap.get(q);void 0!==rt?(rt.enabled!==ve&&(rt.changed=!0,rt.enabled=ve),rt.touched=!0):this.stateMap.set(q,{enabled:ve,changed:!0,touched:!0})}_applyStateDiff(){for(const q of this.stateMap){const ve=q[0],rt=q[1];rt.changed?(this._toggleClass(ve,rt.enabled),rt.changed=!1):rt.touched||(rt.enabled&&this._toggleClass(ve,!1),this.stateMap.delete(ve)),rt.touched=!1}}_toggleClass(q,ve){(q=q.trim()).length>0&&q.split(oo).forEach(rt=>{ve?this._renderer.addClass(this._ngEl.nativeElement,rt):this._renderer.removeClass(this._ngEl.nativeElement,rt)})}static \u0275fac=function(ve){return new(ve||U)(i.rXU(i.aKT),i.rXU(i.sFG))};static \u0275dir=i.FsC({type:U,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return U})();class xt{$implicit;ngForOf;index;count;constructor(de,q,ve,rt){this.$implicit=de,this.ngForOf=q,this.index=ve,this.count=rt}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let me=(()=>{class U{_viewContainer;_template;_differs;set ngForOf(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,ve,rt){this._viewContainer=q,this._template=ve,this._differs=rt}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 ve=this._viewContainer;q.forEachOperation((rt,bn,Rn)=>{if(null==rt.previousIndex)ve.createEmbeddedView(this._template,new xt(rt.item,this._ngForOf,-1,-1),null===Rn?void 0:Rn);else if(null==Rn)ve.remove(null===bn?void 0:bn);else if(null!==bn){const Cr=ve.get(bn);ve.move(Cr,Rn),tt(Cr,rt)}});for(let rt=0,bn=ve.length;rt{tt(ve.get(rt.currentIndex),rt)})}static ngTemplateContextGuard(q,ve){return!0}static \u0275fac=function(ve){return new(ve||U)(i.rXU(i.c1b),i.rXU(i.C4Q),i.rXU(i._q3))};static \u0275dir=i.FsC({type:U,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return U})();function tt(U,de){U.context.$implicit=de.item}let ht=(()=>{class U{_viewContainer;_context=new Vt;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(q,ve){this._viewContainer=q,this._thenTemplateRef=ve}set ngIf(q){this._context.$implicit=this._context.ngIf=q,this._updateView()}set ngIfThen(q){kt("ngIfThen",q),this._thenTemplateRef=q,this._thenViewRef=null,this._updateView()}set ngIfElse(q){kt("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,ve){return!0}static \u0275fac=function(ve){return new(ve||U)(i.rXU(i.c1b),i.rXU(i.C4Q))};static \u0275dir=i.FsC({type:U,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return U})();class Vt{$implicit=null;ngIf=null}function kt(U,de){if(de&&!de.createEmbeddedView)throw new Error(`${U} must be a TemplateRef, but received '${(0,i.Tbb)(de)}'.`)}let pr=(()=>{class U{_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor(q,ve,rt){this._ngEl=q,this._differs=ve,this._renderer=rt}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,ve){const[rt,bn]=q.split("."),Rn=-1===rt.indexOf("-")?void 0:i.czy.DashCase;null!=ve?this._renderer.setStyle(this._ngEl.nativeElement,rt,bn?`${ve}${bn}`:ve,Rn):this._renderer.removeStyle(this._ngEl.nativeElement,rt,Rn)}_applyChanges(q){q.forEachRemovedItem(ve=>this._setStyle(ve.key,null)),q.forEachAddedItem(ve=>this._setStyle(ve.key,ve.currentValue)),q.forEachChangedItem(ve=>this._setStyle(ve.key,ve.currentValue))}static \u0275fac=function(ve){return new(ve||U)(i.rXU(i.aKT),i.rXU(i.MKu),i.rXU(i.sFG))};static \u0275dir=i.FsC({type:U,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return U})(),bi=(()=>{class U{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;constructor(q){this._viewContainerRef=q}ngOnChanges(q){if(this._shouldRecreateView(q)){const ve=this._viewContainerRef;if(this._viewRef&&ve.remove(ve.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const rt=this._createContextForwardProxy();this._viewRef=ve.createEmbeddedView(this.ngTemplateOutlet,rt,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(q){return!!q.ngTemplateOutlet||!!q.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(q,ve,rt)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,ve,rt),get:(q,ve,rt)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,ve,rt)}})}static \u0275fac=function(ve){return new(ve||U)(i.rXU(i.c1b))};static \u0275dir=i.FsC({type:U,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[i.OA$]})}return U})();function mr(U,de){return new i.wOt(2100,!1)}class ai{createSubscription(de,q){return(0,i.O8t)(()=>de.subscribe({next:q,error:ve=>{throw ve}}))}dispose(de){(0,i.O8t)(()=>de.unsubscribe())}}class _o{createSubscription(de,q){return de.then(q,ve=>{throw ve})}dispose(de){}}const $r=new _o,Gi=new ai;let cs=(()=>{class U{_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,ve=>this._updateLatestValue(q,ve))}_selectStrategy(q){if((0,i.jNT)(q))return $r;if((0,i.zjR)(q))return Gi;throw mr()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(q,ve){q===this._obj&&(this._latestValue=ve,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static \u0275fac=function(ve){return new(ve||U)(i.rXU(i.gRc,16))};static \u0275pipe=i.EJ8({name:"async",type:U,pure:!1})}return U})();const ea=/(?:[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 U{transform(q){if(null==q)return null;if("string"!=typeof q)throw mr();return q.replace(ea,ve=>ve[0].toUpperCase()+ve.slice(1).toLowerCase())}static \u0275fac=function(ve){return new(ve||U)};static \u0275pipe=i.EJ8({name:"titlecase",type:U,pure:!0})}return U})();const wo=new i.nKC(""),Ns=new i.nKC("");let Ls=(()=>{class U{locale;defaultTimezone;defaultOptions;constructor(q,ve,rt){this.locale=q,this.defaultTimezone=ve,this.defaultOptions=rt}transform(q,ve,rt,bn){if(null==q||""===q||q!=q)return null;try{return W(q,ve??this.defaultOptions?.dateFormat??"mediumDate",bn||this.locale,rt??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(Rn){throw mr()}}static \u0275fac=function(ve){return new(ve||U)(i.rXU(i.xe9,16),i.rXU(wo,24),i.rXU(Ns,24))};static \u0275pipe=i.EJ8({name:"date",type:U,pure:!0})}return U})();const Ks=/#/g;let Wi=(()=>{class U{_localization;constructor(q){this._localization=q}transform(q,ve,rt){if(null==q)return"";if("object"!=typeof ve||null===ve)throw mr();return ve[function Xo(U,de,q,ve){let rt=`=${U}`;if(de.indexOf(rt)>-1||(rt=q.getPluralCategory(U,ve),de.indexOf(rt)>-1))return rt;if(de.indexOf("other")>-1)return"other";throw new Error(`No plural message found for value "${U}"`)}(q,Object.keys(ve),this._localization,rt)].replace(Ks,q.toString())}static \u0275fac=function(ve){return new(ve||U)(i.rXU(bo,16))};static \u0275pipe=i.EJ8({name:"i18nPlural",type:U,pure:!0})}return U})(),tr=(()=>{class U{static \u0275fac=function(ve){return new(ve||U)};static \u0275mod=i.$C({type:U});static \u0275inj=i.G2t({})}return U})();const Eo="browser",os="server";function ks(U){return U===Eo}function Fs(U){return U===os}let Yo=(()=>{class U{static \u0275prov=(0,i.jDH)({token:U,providedIn:"root",factory:()=>ks((0,i.WQX)(i.Agw))?new Ai((0,i.WQX)(S),window):new bl})}return U})();class Ai{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 na(U,de){const q=U.getElementById(de)||U.getElementsByName(de)[0];if(q)return q;if("function"==typeof U.createTreeWalker&&U.body&&"function"==typeof U.body.attachShadow){const ve=U.createTreeWalker(U.body,NodeFilter.SHOW_ELEMENT);let rt=ve.currentNode;for(;rt;){const bn=rt.shadowRoot;if(bn){const Rn=bn.getElementById(de)||bn.querySelector(`[name="${de}"]`);if(Rn)return Rn}rt=ve.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(),ve=q.left+this.window.pageXOffset,rt=q.top+this.window.pageYOffset,bn=this.offset();this.window.scrollTo(ve-bn[0],rt-bn[1])}}class bl{setOffset(de){}getScrollPosition(){return[0,0]}scrollToPosition(de){}scrollToAnchor(de){}setHistoryScrollRestoration(de){}}class Qo{}},7691:(o,s,r)=>{"use strict";r.d(s,{$R:()=>Fe,Nl:()=>xe,Qq:()=>Ut,b$:()=>Rt,cS:()=>$n,yz:()=>En});var i=r(3014),a=r(3107),c=r(3016),y=r(1698),w=r(1787),C=r(1459),A=r(1483),S=r(7947),T=r(4447),k=r(2867),R=r(4460);class G{}class Z{}class te{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(ct){ct?"string"==typeof ct?this.lazyInit=()=>{this.headers=new Map,ct.split("\n").forEach(xt=>{const me=xt.indexOf(":");if(me>0){const tt=xt.slice(0,me),Oe=xt.slice(me+1).trim();this.addHeaderEntry(tt,Oe)}})}:typeof Headers<"u"&&ct instanceof Headers?(this.headers=new Map,ct.forEach((xt,me)=>{this.addHeaderEntry(me,xt)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(ct).forEach(([xt,me])=>{this.setHeaderEntries(xt,me)})}:this.headers=new Map}has(ct){return this.init(),this.headers.has(ct.toLowerCase())}get(ct){this.init();const xt=this.headers.get(ct.toLowerCase());return xt&&xt.length>0?xt[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(ct){return this.init(),this.headers.get(ct.toLowerCase())||null}append(ct,xt){return this.clone({name:ct,value:xt,op:"a"})}set(ct,xt){return this.clone({name:ct,value:xt,op:"s"})}delete(ct,xt){return this.clone({name:ct,value:xt,op:"d"})}maybeSetNormalizedName(ct,xt){this.normalizedNames.has(xt)||this.normalizedNames.set(xt,ct)}init(){this.lazyInit&&(this.lazyInit instanceof te?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(xt=>{this.headers.set(xt,ct.headers.get(xt)),this.normalizedNames.set(xt,ct.normalizedNames.get(xt))})}clone(ct){const xt=new te;return xt.lazyInit=this.lazyInit&&this.lazyInit instanceof te?this.lazyInit:this,xt.lazyUpdate=(this.lazyUpdate||[]).concat([ct]),xt}applyUpdate(ct){const xt=ct.name.toLowerCase();switch(ct.op){case"a":case"s":let me=ct.value;if("string"==typeof me&&(me=[me]),0===me.length)return;this.maybeSetNormalizedName(ct.name,xt);const tt=("a"===ct.op?this.headers.get(xt):void 0)||[];tt.push(...me),this.headers.set(xt,tt);break;case"d":const Oe=ct.value;if(Oe){let ht=this.headers.get(xt);if(!ht)return;ht=ht.filter(Vt=>-1===Oe.indexOf(Vt)),0===ht.length?(this.headers.delete(xt),this.normalizedNames.delete(xt)):this.headers.set(xt,ht)}else this.headers.delete(xt),this.normalizedNames.delete(xt)}}addHeaderEntry(ct,xt){const me=ct.toLowerCase();this.maybeSetNormalizedName(ct,me),this.headers.has(me)?this.headers.get(me).push(xt):this.headers.set(me,[xt])}setHeaderEntries(ct,xt){const me=(Array.isArray(xt)?xt:[xt]).map(Oe=>Oe.toString()),tt=ct.toLowerCase();this.headers.set(tt,me),this.maybeSetNormalizedName(ct,tt)}forEach(ct){this.init(),Array.from(this.normalizedNames.keys()).forEach(xt=>ct(this.normalizedNames.get(xt),this.headers.get(xt)))}}class _e{encodeKey(ct){return Ne(ct)}encodeValue(ct){return Ne(ct)}decodeKey(ct){return decodeURIComponent(ct)}decodeValue(ct){return decodeURIComponent(ct)}}const Te=/%(\d[a-f0-9])/gi,Ce={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Ne(et){return encodeURIComponent(et).replace(Te,(ct,xt)=>Ce[xt]??ct)}function Se(et){return`${et}`}class xe{map;encoder;updates=null;cloneFrom=null;constructor(ct={}){if(this.encoder=ct.encoder||new _e,ct.fromString){if(ct.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function pe(et,ct){const xt=new Map;return et.length>0&&et.replace(/^\?/,"").split("&").forEach(tt=>{const Oe=tt.indexOf("="),[ht,Vt]=-1==Oe?[ct.decodeKey(tt),""]:[ct.decodeKey(tt.slice(0,Oe)),ct.decodeValue(tt.slice(Oe+1))],kt=xt.get(ht)||[];kt.push(Vt),xt.set(ht,kt)}),xt}(ct.fromString,this.encoder)}else ct.fromObject?(this.map=new Map,Object.keys(ct.fromObject).forEach(xt=>{const me=ct.fromObject[xt],tt=Array.isArray(me)?me.map(Se):[Se(me)];this.map.set(xt,tt)})):this.map=null}has(ct){return this.init(),this.map.has(ct)}get(ct){this.init();const xt=this.map.get(ct);return xt?xt[0]:null}getAll(ct){return this.init(),this.map.get(ct)||null}keys(){return this.init(),Array.from(this.map.keys())}append(ct,xt){return this.clone({param:ct,value:xt,op:"a"})}appendAll(ct){const xt=[];return Object.keys(ct).forEach(me=>{const tt=ct[me];Array.isArray(tt)?tt.forEach(Oe=>{xt.push({param:me,value:Oe,op:"a"})}):xt.push({param:me,value:tt,op:"a"})}),this.clone(xt)}set(ct,xt){return this.clone({param:ct,value:xt,op:"s"})}delete(ct,xt){return this.clone({param:ct,value:xt,op:"d"})}toString(){return this.init(),this.keys().map(ct=>{const xt=this.encoder.encodeKey(ct);return this.map.get(ct).map(me=>xt+"="+this.encoder.encodeValue(me)).join("&")}).filter(ct=>""!==ct).join("&")}clone(ct){const xt=new xe({encoder:this.encoder});return xt.cloneFrom=this.cloneFrom||this,xt.updates=(this.updates||[]).concat(ct),xt}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 xt=("a"===ct.op?this.map.get(ct.param):void 0)||[];xt.push(Se(ct.value)),this.map.set(ct.param,xt);break;case"d":if(void 0===ct.value){this.map.delete(ct.param);break}{let me=this.map.get(ct.param)||[];const tt=me.indexOf(Se(ct.value));-1!==tt&&me.splice(tt,1),me.length>0?this.map.set(ct.param,me):this.map.delete(ct.param)}}}),this.cloneFrom=this.updates=null)}}class le{map=new Map;set(ct,xt){return this.map.set(ct,xt),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 Ue(et){return typeof ArrayBuffer<"u"&&et instanceof ArrayBuffer}function st(et){return typeof Blob<"u"&&et instanceof Blob}function ft(et){return typeof FormData<"u"&&et instanceof FormData}class ot{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;responseType="json";method;params;urlWithParams;transferCache;constructor(ct,xt,me,tt){let Oe;if(this.url=xt,this.method=ct.toUpperCase(),function ke(et){switch(et){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||tt?(this.body=void 0!==me?me:null,Oe=tt):Oe=me,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 te,this.context??=new le,this.params){const ht=this.params.toString();if(0===ht.length)this.urlWithParams=xt;else{const Vt=xt.indexOf("?");this.urlWithParams=xt+(-1===Vt?"?":VtOn.set(Un,ct.setHeaders[Un]),hn)),ct.setParams&&(Cn=Object.keys(ct.setParams).reduce((On,Un)=>On.set(Un,ct.setParams[Un]),Cn)),new ot(xt,me,ht,{params:Cn,headers:hn,context:An,reportProgress:kt,responseType:tt,withCredentials:Vt,transferCache:Oe})}}var Yt=function(et){return et[et.Sent=0]="Sent",et[et.UploadProgress=1]="UploadProgress",et[et.ResponseHeader=2]="ResponseHeader",et[et.DownloadProgress=3]="DownloadProgress",et[et.Response=4]="Response",et[et.User=5]="User",et}(Yt||{});class un{headers;status;statusText;url;ok;type;constructor(ct,xt=200,me="OK"){this.headers=ct.headers||new te,this.status=void 0!==ct.status?ct.status:xt,this.statusText=ct.statusText||me,this.url=ct.url||null,this.ok=this.status>=200&&this.status<300}}class wn extends un{constructor(ct={}){super(ct)}type=Yt.ResponseHeader;clone(ct={}){return new wn({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 un{body;constructor(ct={}){super(ct),this.body=void 0!==ct.body?ct.body:null}type=Yt.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 En extends un{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 Be(et,ct){return{body:ct,headers:et.headers,context:et.context,observe:et.observe,params:et.params,reportProgress:et.reportProgress,responseType:et.responseType,withCredentials:et.withCredentials,transferCache:et.transferCache}}let Ut=(()=>{class et{handler;constructor(xt){this.handler=xt}request(xt,me,tt={}){let Oe;if(xt instanceof ot)Oe=xt;else{let kt,hn;kt=tt.headers instanceof te?tt.headers:new te(tt.headers),tt.params&&(hn=tt.params instanceof xe?tt.params:new xe({fromObject:tt.params})),Oe=new ot(xt,me,void 0!==tt.body?tt.body:null,{headers:kt,context:tt.context,params:hn,reportProgress:tt.reportProgress,responseType:tt.responseType||"json",withCredentials:tt.withCredentials,transferCache:tt.transferCache})}const ht=(0,c.of)(Oe).pipe((0,C.H)(kt=>this.handler.handle(kt)));if(xt instanceof ot||"events"===tt.observe)return ht;const Vt=ht.pipe((0,A.p)(kt=>kt instanceof $n));switch(tt.observe||"body"){case"body":switch(Oe.responseType){case"arraybuffer":return Vt.pipe((0,S.T)(kt=>{if(null!==kt.body&&!(kt.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return kt.body}));case"blob":return Vt.pipe((0,S.T)(kt=>{if(null!==kt.body&&!(kt.body instanceof Blob))throw new Error("Response is not a Blob.");return kt.body}));case"text":return Vt.pipe((0,S.T)(kt=>{if(null!==kt.body&&"string"!=typeof kt.body)throw new Error("Response is not a string.");return kt.body}));default:return Vt.pipe((0,S.T)(kt=>kt.body))}case"response":return Vt;default:throw new Error(`Unreachable: unhandled observe type ${tt.observe}}`)}}delete(xt,me={}){return this.request("DELETE",xt,me)}get(xt,me={}){return this.request("GET",xt,me)}head(xt,me={}){return this.request("HEAD",xt,me)}jsonp(xt,me){return this.request("JSONP",xt,{params:(new xe).append(me,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(xt,me={}){return this.request("OPTIONS",xt,me)}patch(xt,me,tt={}){return this.request("PATCH",xt,Be(tt,me))}post(xt,me,tt={}){return this.request("POST",xt,Be(tt,me))}put(xt,me,tt={}){return this.request("PUT",xt,Be(tt,me))}static \u0275fac=function(me){return new(me||et)(a.KVO(G))};static \u0275prov=a.jDH({token:et,factory:et.\u0275fac})}return et})();const Ke=/^\)\]\}',?\n/;function Xe(et){if(et.url)return et.url;const ct="X-Request-URL".toLocaleLowerCase();return et.headers.get(ct)}let Ge=(()=>{class et{fetchImpl=(0,a.WQX)(pt,{optional:!0})?.fetch??((...xt)=>globalThis.fetch(...xt));ngZone=(0,a.WQX)(a.SKi);handle(xt){return new y.c(me=>{const tt=new AbortController;return this.doRequest(xt,tt.signal,me).then(se,Oe=>me.error(new En({error:Oe}))),()=>tt.abort()})}doRequest(xt,me,tt){var Oe=this;return(0,i.A)(function*(){const ht=Oe.createRequestInit(xt);let Vt;try{const Jn=Oe.ngZone.runOutsideAngular(()=>Oe.fetchImpl(xt.urlWithParams,{signal:me,...ht}));(function qe(et){et.then(se,se)})(Jn),tt.next({type:Yt.Sent}),Vt=yield Jn}catch(Jn){return void tt.error(new En({error:Jn,status:Jn.status??0,statusText:Jn.statusText,url:xt.urlWithParams,headers:Jn.headers}))}const kt=new te(Vt.headers),hn=Vt.statusText,Cn=Xe(Vt)??xt.urlWithParams;let An=Vt.status,On=null;if(xt.reportProgress&&tt.next(new wn({headers:kt,status:An,statusText:hn,url:Cn})),Vt.body){const Jn=Vt.headers.get("content-length"),sr=[],Ir=Vt.body.getReader();let bi,si,pr=0;const mr=typeof Zone<"u"&&Zone.current;yield Oe.ngZone.runOutsideAngular((0,i.A)(function*(){for(;;){const{done:_o,value:$r}=yield Ir.read();if(_o)break;if(sr.push($r),pr+=$r.length,xt.reportProgress){si="text"===xt.responseType?(si??"")+(bi??=new TextDecoder).decode($r,{stream:!0}):void 0;const Gi=()=>tt.next({type:Yt.DownloadProgress,total:Jn?+Jn:void 0,loaded:pr,partialText:si});mr?mr.run(Gi):Gi()}}}));const ai=Oe.concatChunks(sr,pr);try{const _o=Vt.headers.get("Content-Type")??"";On=Oe.parseBody(xt,ai,_o)}catch(_o){return void tt.error(new En({error:_o,headers:new te(Vt.headers),status:Vt.status,statusText:Vt.statusText,url:Xe(Vt)??xt.urlWithParams}))}}0===An&&(An=On?200:0),An>=200&&An<300?(tt.next(new $n({body:On,headers:kt,status:An,statusText:hn,url:Cn})),tt.complete()):tt.error(new En({error:On,headers:kt,status:An,statusText:hn,url:Cn}))})()}parseBody(xt,me,tt){switch(xt.responseType){case"json":const Oe=(new TextDecoder).decode(me).replace(Ke,"");return""===Oe?null:JSON.parse(Oe);case"text":return(new TextDecoder).decode(me);case"blob":return new Blob([me],{type:tt});case"arraybuffer":return me.buffer}}createRequestInit(xt){const me={},tt=xt.withCredentials?"include":void 0;if(xt.headers.forEach((Oe,ht)=>me[Oe]=ht.join(",")),xt.headers.has("Accept")||(me.Accept="application/json, text/plain, */*"),!xt.headers.has("Content-Type")){const Oe=xt.detectContentTypeHeader();null!==Oe&&(me["Content-Type"]=Oe)}return{body:xt.serializeBody(),method:xt.method,headers:me,credentials:tt}}concatChunks(xt,me){const tt=new Uint8Array(me);let Oe=0;for(const ht of xt)tt.set(ht,Oe),Oe+=ht.length;return tt}static \u0275fac=function(me){return new(me||et)};static \u0275prov=a.jDH({token:et,factory:et.\u0275fac})}return et})();class pt{}function se(){}function Nt(et,ct){return ct(et)}const Pt=new a.nKC(""),en=new a.nKC(""),an=new a.nKC("",{providedIn:"root",factory:()=>!0});let Mt=(()=>{class et extends G{backend;injector;chain=null;pendingTasks=(0,a.WQX)(a.TgB);contributeToStability=(0,a.WQX)(an);constructor(xt,me){super(),this.backend=xt,this.injector=me}handle(xt){if(null===this.chain){const me=Array.from(new Set([...this.injector.get(Pt),...this.injector.get(en,[])]));this.chain=me.reduceRight((tt,Oe)=>function pn(et,ct,xt){return(me,tt)=>(0,a.N4e)(xt,()=>ct(me,Oe=>et(Oe,tt)))}(tt,Oe,this.injector),Nt)}if(this.contributeToStability){const me=this.pendingTasks.add();return this.chain(xt,tt=>this.backend.handle(tt)).pipe((0,T.j)(()=>this.pendingTasks.remove(me)))}return this.chain(xt,me=>this.backend.handle(me))}static \u0275fac=function(me){return new(me||et)(a.KVO(Z),a.KVO(a.uvJ))};static \u0275prov=a.jDH({token:et,factory:et.\u0275fac})}return et})();const At=/^\)\]\}',?\n/;let Zt=(()=>{class et{xhrFactory;constructor(xt){this.xhrFactory=xt}handle(xt){if("JSONP"===xt.method)throw new a.wOt(-2800,!1);const me=this.xhrFactory;return(me.\u0275loadImpl?(0,w.H)(me.\u0275loadImpl()):(0,c.of)(null)).pipe((0,k.n)(()=>new y.c(Oe=>{const ht=me.build();if(ht.open(xt.method,xt.urlWithParams),xt.withCredentials&&(ht.withCredentials=!0),xt.headers.forEach((sr,Ir)=>ht.setRequestHeader(sr,Ir.join(","))),xt.headers.has("Accept")||ht.setRequestHeader("Accept","application/json, text/plain, */*"),!xt.headers.has("Content-Type")){const sr=xt.detectContentTypeHeader();null!==sr&&ht.setRequestHeader("Content-Type",sr)}if(xt.responseType){const sr=xt.responseType.toLowerCase();ht.responseType="json"!==sr?sr:"text"}const Vt=xt.serializeBody();let kt=null;const hn=()=>{if(null!==kt)return kt;const sr=ht.statusText||"OK",Ir=new te(ht.getAllResponseHeaders()),pr=function Ln(et){return"responseURL"in et&&et.responseURL?et.responseURL:/^X-Request-URL:/m.test(et.getAllResponseHeaders())?et.getResponseHeader("X-Request-URL"):null}(ht)||xt.url;return kt=new wn({headers:Ir,status:ht.status,statusText:sr,url:pr}),kt},Cn=()=>{let{headers:sr,status:Ir,statusText:pr,url:bi}=hn(),si=null;204!==Ir&&(si=typeof ht.response>"u"?ht.responseText:ht.response),0===Ir&&(Ir=si?200:0);let mr=Ir>=200&&Ir<300;if("json"===xt.responseType&&"string"==typeof si){const ai=si;si=si.replace(At,"");try{si=""!==si?JSON.parse(si):null}catch(_o){si=ai,mr&&(mr=!1,si={error:_o,text:si})}}mr?(Oe.next(new $n({body:si,headers:sr,status:Ir,statusText:pr,url:bi||void 0})),Oe.complete()):Oe.error(new En({error:si,headers:sr,status:Ir,statusText:pr,url:bi||void 0}))},An=sr=>{const{url:Ir}=hn(),pr=new En({error:sr,status:ht.status||0,statusText:ht.statusText||"Unknown Error",url:Ir||void 0});Oe.error(pr)};let On=!1;const Un=sr=>{On||(Oe.next(hn()),On=!0);let Ir={type:Yt.DownloadProgress,loaded:sr.loaded};sr.lengthComputable&&(Ir.total=sr.total),"text"===xt.responseType&&ht.responseText&&(Ir.partialText=ht.responseText),Oe.next(Ir)},Jn=sr=>{let Ir={type:Yt.UploadProgress,loaded:sr.loaded};sr.lengthComputable&&(Ir.total=sr.total),Oe.next(Ir)};return ht.addEventListener("load",Cn),ht.addEventListener("error",An),ht.addEventListener("timeout",An),ht.addEventListener("abort",An),xt.reportProgress&&(ht.addEventListener("progress",Un),null!==Vt&&ht.upload&&ht.upload.addEventListener("progress",Jn)),ht.send(Vt),Oe.next({type:Yt.Sent}),()=>{ht.removeEventListener("error",An),ht.removeEventListener("abort",An),ht.removeEventListener("load",Cn),ht.removeEventListener("timeout",An),xt.reportProgress&&(ht.removeEventListener("progress",Un),null!==Vt&&ht.upload&&ht.upload.removeEventListener("progress",Jn)),ht.readyState!==ht.DONE&&ht.abort()}})))}static \u0275fac=function(me){return new(me||et)(a.KVO(R.N0))};static \u0275prov=a.jDH({token:et,factory:et.\u0275fac})}return et})();const gn=new a.nKC(""),Bn=new a.nKC("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),xr=new a.nKC("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class ei{}let Xr=(()=>{class et{doc;platform;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(xt,me,tt){this.doc=xt,this.platform=me,this.cookieName=tt}getToken(){if("server"===this.platform)return null;const xt=this.doc.cookie||"";return xt!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,R._b)(xt,this.cookieName),this.lastCookieString=xt),this.lastToken}static \u0275fac=function(me){return new(me||et)(a.KVO(R.qQ),a.KVO(a.Agw),a.KVO(Bn))};static \u0275prov=a.jDH({token:et,factory:et.\u0275fac})}return et})();function vt(et,ct){const xt=et.url.toLowerCase();if(!(0,a.WQX)(gn)||"GET"===et.method||"HEAD"===et.method||xt.startsWith("http://")||xt.startsWith("https://"))return ct(et);const me=(0,a.WQX)(ei).getToken(),tt=(0,a.WQX)(xr);return null!=me&&!et.headers.has(tt)&&(et=et.clone({headers:et.headers.set(tt,me)})),ct(et)}var Ee=function(et){return et[et.Interceptors=0]="Interceptors",et[et.LegacyInterceptors=1]="LegacyInterceptors",et[et.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",et[et.NoXsrfProtection=3]="NoXsrfProtection",et[et.JsonpSupport=4]="JsonpSupport",et[et.RequestsMadeViaParent=5]="RequestsMadeViaParent",et[et.Fetch=6]="Fetch",et}(Ee||{});function Fe(...et){const ct=[Ut,Zt,Mt,{provide:G,useExisting:Mt},{provide:Z,useFactory:()=>(0,a.WQX)(Ge,{optional:!0})??(0,a.WQX)(Zt)},{provide:Pt,useValue:vt,multi:!0},{provide:gn,useValue:!0},{provide:ei,useClass:Xr}];for(const xt of et)ct.push(...xt.\u0275providers);return(0,a.EmA)(ct)}function Rt(et){return function at(et,ct){return{\u0275kind:et,\u0275providers:ct}}(Ee.Interceptors,et.map(ct=>({provide:Pt,useValue:ct,multi:!0})))}},3107:(o,s,r)=>{"use strict";function a(e,t){return Object.is(e,t)}r.d(s,{bc$:()=>Ma,iLQ:()=>qm,sZ2:()=>Oi,hnV:()=>l0,wjH:()=>Nd,o8S:()=>Fc,BIS:()=>Ka,gRc:()=>h2,Ql9:()=>MI,Ocv:()=>PI,Z63:()=>cr,aKT:()=>kc,uvJ:()=>ds,zcH:()=>Mc,bkB:()=>Fl,ES_:()=>bd,$GK:()=>Sr,nKC:()=>ct,zZn:()=>Ts,_q3:()=>iw,MKu:()=>ow,xe9:()=>q0,Co$:()=>z1,Vns:()=>tf,SKi:()=>Vo,Xx1:()=>na,Agw:()=>Ta,PLl:()=>Hs,rOR:()=>Sd,sFG:()=>gS,_9s:()=>Rb,czy:()=>Zf,WPN:()=>Nc,kdw:()=>Qo,C4Q:()=>Fm,NYb:()=>iT,giA:()=>EE,RxE:()=>t2,c1b:()=>lv,gXe:()=>Tu,mal:()=>qu,Tzd:()=>Cg,L39:()=>UO,EWP:()=>cw,sbv:()=>WS,a0P:()=>uR,Ol2:()=>Qb,w6W:()=>JS,QZP:()=>dw,Rfq:()=>$t,oKB:()=>Oo,WQX:()=>tr,hFB:()=>Qc,naY:()=>zI,Hps:()=>zb,QuC:()=>fo,EmA:()=>lo,Udg:()=>$O,HJs:()=>dR,N4e:()=>$a,vPA:()=>cp,O8t:()=>Ap,H3F:()=>pE,H8p:()=>qo,KH2:()=>Cp,TgB:()=>il,wOt:()=>Xt,WHO:()=>bE,e01:()=>wE,lNU:()=>Sn,h9k:()=>a_,$MX:()=>Gf,ZF7:()=>Wd,Kcf:()=>Ay,e5t:()=>cm,UyX:()=>My,cWb:()=>Ty,osQ:()=>ky,H5H:()=>T0,Zy3:()=>Mt,mq5:()=>fx,JZv:()=>Zt,TL3:()=>gO,LfX:()=>Xo,plB:()=>qd,jNT:()=>a0,zjR:()=>xE,ngT:()=>ua,hVU:()=>rT,TL$:()=>Vi,Tbb:()=>xr,rcV:()=>Jc,nM4:()=>eE,Vt3:()=>qb,GFd:()=>oE,OA$:()=>Ec,Jv_:()=>xC,R7$:()=>V_,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:()=>id,nrm:()=>C0,eu8:()=>D0,bVm:()=>Dv,qex:()=>Cv,k0s:()=>xv,j41:()=>Ev,RV6:()=>hx,xGo:()=>_f,Mr5:()=>S0,KVO:()=>ko,kS0:()=>Vu,QTQ:()=>W_,bIt:()=>I0,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:()=>kC,NyB:()=>qx,mGM:()=>Yx,sdS:()=>Jx,Dyx:()=>cx,Z7z:()=>lx,Vm6:()=>ax,Njj:()=>cu,eBV:()=>Bu,npT:()=>Xh,f$h:()=>Qh,B4B:()=>Yh,n$t:()=>l_,Aen:()=>nu,xc7:()=>v0,Kam:()=>O0,zvX:()=>A0,DNE:()=>t0,C5r:()=>UC,EFF:()=>cC,JRh:()=>F0,SpI:()=>kv,DH7:()=>yC,mxI:()=>U0,R50:()=>B0,GBs:()=>Xx}),r(3014);let c=null,y=!1,w=1;const C=Symbol("SIGNAL");function A(e){const t=c;return c=e,t}const R={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function G(e){if(y)throw new Error("");if(null===c)return;c.consumerOnSignalRead(e);const t=c.nextProducerIndex++;Ue(c),te.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Se(e){Ue(e);for(let t=0;t0}function Ue(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function st(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function ft(e){return void 0!==e.producerNode}function _t(e){const t=Object.create(wn);t.computation=e;const n=()=>{if(te(t),G(t),t.value===un)throw t.error;return t.value};return n[C]=t,n}const ot=Symbol("UNSET"),Yt=Symbol("COMPUTING"),un=Symbol("ERRORED"),wn={...R,value:ot,dirty:!0,error:null,equal:a,producerMustRecompute:e=>e.value===ot||e.value===Yt,producerRecomputeValue(e){if(e.value===Yt)throw new Error("Detected cycle in computations.");const t=e.value;e.value=Yt;const n=Ce(e);let l;try{l=e.computation()}catch(p){l=un,e.error=p}finally{Ne(e,n)}t!==ot&&t!==un&&l!==un&&e.equal(t,l)?e.value=t:(e.value=l,e.version++)}};let En=function $n(){throw new Error};function Ze(){En()}let ze=null;function lt(e,t){_e()||Ze(),e.equal(e.value,t)||(e.value=t,function se(e){e.version++,function Z(){w++}(),we(e),ze?.()}(e))}const pt={...R,equal:a,value:void 0};const Nt=()=>{},tn={...R,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{null!==e.schedule&&e.schedule(e.ref)},hasRun:!1,cleanupFn:Nt};var Wn=r(1217),Pt=r(8447),en=r(5710),an=r(7947);const Sn="https://g.co/ng/security#xss";class Xt extends Error{code;constructor(t,n){super(Mt(t,n)),this.code=t}}function Mt(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}const Gt=Symbol("InputSignalNode#UNSET"),Ot={...pt,transformFn:void 0,applyValueToInputSignal(e,t){lt(e,t)}};function nt(e,t){const n=Object.create(Ot);function l(){if(G(n),n.value===Gt)throw new Xt(-950,!1);return n.value}return n.value=e,n.transformFn=t?.transform,l[C]=n,l}function W(e){return{toString:e}.toString()}const V="__parameters__";function At(e,t,n){return W(()=>{const l=function mt(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 I.annotation=E,I;function I(F,ie,De){const He=F.hasOwnProperty(V)?F[V]:Object.defineProperty(F,V,{value:[]})[V];for(;He.length<=De;)He.push(null);return(He[De]=He[De]||[]).push(E),F}}return n&&(p.prototype=Object.create(n.prototype)),p.prototype.ngMetadataName=e,p.annotationCls=p,p})}const Zt=globalThis;function Bn(e){for(let t in e)if(e[t]===Bn)return t;throw Error("Could not find renamed property on target object.")}function Hn(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function xr(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(xr).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function ei(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const vt=Bn({__forward_ref__:Bn});function $t(e){return e.__forward_ref__=$t,e.toString=function(){return xr(this())},e}function Ee(e){return at(e)?e():e}function at(e){return"function"==typeof e&&e.hasOwnProperty(vt)&&e.__forward_ref__===$t}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 Do(e,oo)||Do(e,Mo)}function Xo(e){return null!==bo(e)}function Do(e,t){return e.hasOwnProperty(t)?e[t]:null}function eo(e){return e&&(e.hasOwnProperty(Bi)||e.hasOwnProperty(et))?e[Bi]:null}const oo=Bn({\u0275prov:Bn}),Bi=Bn({\u0275inj:Bn}),Mo=Bn({ngInjectableDef:Bn}),et=Bn({ngInjectorDef:Bn});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 On(e){return e&&!!e.\u0275providers}const Un=Bn({\u0275cmp:Bn}),Jn=Bn({\u0275dir:Bn}),sr=Bn({\u0275pipe:Bn}),Ir=Bn({\u0275mod:Bn}),pr=Bn({\u0275fac:Bn}),bi=Bn({__NG_ELEMENT_ID__:Bn}),si=Bn({__NG_ENV_ID__:Bn});function mr(e){return"string"==typeof e?e:null==e?"":String(e)}function ea(e,t){throw new Xt(-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 ta;function pa(){return ta}function wo(e){const t=ta;return ta=e,t}function Ns(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 ea()}const Wi={},Gs="__NG_DI_FLAG__",Ni="ngTempTokenPath",rs=/\n/gm,us="__source";let is;function zi(e){const t=is;return is=e,t}function Es(e,t=Sr.Default){if(void 0===is)throw new Xt(-203,!1);return null===is?Ns(e,void 0,t):is.get(e,t&Sr.Optional?null:void 0,t)}function ko(e,t=Sr.Default){return(pa()||Es)(Ee(e),t)}function tr(e,t=Sr.Default){return ko(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 vi(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Pa(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 Ve(e,t){const n=re(e,t);if(n>=0)return e[1|n]}function re(e,t){return function Et(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 I=E;va(I,g,[],l)&&(p||=[],p.push(I))}),void 0!==p&&Qa(p,g),n}function Qa(e,t){for(let n=0;n{t(g,l)})}}function va(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 I=l.has(p);if(E){if(I)return!1;if(l.add(p),E.dependencies){const F="function"==typeof E.dependencies?E.dependencies():E.dependencies;for(const ie of F)va(ie,t,n,l)}}else{if(!g)return!1;{if(null!=g.imports&&!I){let ie;l.add(p);try{Zo(g.imports,De=>{va(De,t,n,l)&&(ie||=[],ie.push(De))})}finally{}void 0!==ie&&Qa(ie,t)}if(!I){const ie=ao(p)||(()=>new p);t({provide:p,useFactory:ie,deps:fn},p),t({provide:Gr,useValue:p,multi:!0},p),t({provide:cr,useValue:()=>ko(p),multi:!0},p)}const F=g.providers;if(null!=F&&!I){const ie=e;ce(F,De=>{t(De,ie)})}}}return p!==e&&void 0!==e.providers}function ce(e,t){for(let n of e)On(n)&&(n=n.\u0275providers),Array.isArray(n)?ce(n,t):t(n)}const Q=Bn({provide:String,useValue:Bn});function Pe(e){return null!==e&&"object"==typeof e&&Q in e}function ti(e){return"function"==typeof e}const qo=new ct(""),Fa={},Ru={};let sc;function El(){return void 0===sc&&(sc=new Ki),sc}class ds{}class Bs extends ds{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,ac(t,E=>this.processProvider(E)),this.records.set(dr,ia(void 0,this)),p.has("environment")&&this.records.set(ds,ia(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,fn,Sr.Self))}destroy(){Cl(this),this._destroyed=!0;const t=A(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(),A(t)}}onDestroy(t){return Cl(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){Cl(this);const n=zi(this),l=wo(void 0);try{return t()}finally{zi(n),wo(l)}}get(t,n=Wi,l=Sr.Default){if(Cl(this),t.hasOwnProperty(si))return t[si](this);l=Eo(l);const g=zi(this),E=wo(void 0);try{if(!(l&Sr.SkipSelf)){let F=this.records.get(t);if(void 0===F){const ie=function Nu(e){return"function"==typeof e||"object"==typeof e&&e instanceof ct}(t)&&bo(t);F=ie&&this.injectableDefInScope(ie)?ia(Ba(t),Fa):null,this.records.set(t,F)}if(null!=F)return this.hydrate(t,F)}return(l&Sr.Self?El():this.parent).get(t,n=l&Sr.Optional&&n===Wi?null:n)}catch(I){if("NullInjectorError"===I.name){if((I[Ni]=I[Ni]||[]).unshift(xr(t)),g)throw I;return function ga(e,t,n,l){const p=e[Ni];throw t[us]&&p.unshift(t[us]),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=xr(t);if(Array.isArray(t))p=t.map(xr).join(" -> ");else if("object"==typeof t){let g=[];for(let E in t)if(t.hasOwnProperty(E)){let I=t[E];g.push(E+":"+("string"==typeof I?JSON.stringify(I):xr(I)))}p=`{${g.join(", ")}}`}return`${n}${l?"("+l+")":""}[${p}]: ${e.replace(rs,"\n ")}`}("\n"+e.message,p,n,l),e.ngTokenPath=p,e[Ni]=null,e}(I,t,"R3InjectorError",this.source)}throw I}finally{wo(E),zi(g)}}resolveInjectorInitializers(){const t=A(null),n=zi(this),l=wo(void 0);try{const g=this.get(cr,fn,Sr.Self);for(const E of g)E()}finally{zi(n),wo(l),A(t)}}toString(){const t=[],n=this.records;for(const l of n.keys())t.push(xr(l));return`R3Injector[${t.join(", ")}]`}processProvider(t){let n=ti(t=Ee(t))?t:Ee(t&&t.provide);const l=function Za(e){return Pe(e)?ia(void 0,e.useValue):ia(xl(e),Fa)}(t);if(!ti(t)&&!0===t.multi){let p=this.records.get(n);p||(p=ia(void 0,Fa,!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=A(null);try{return n.value===Fa&&(n.value=Ru,n.value=n.factory()),"object"==typeof n.value&&n.value&&function yc(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{A(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 Ba(e){const t=bo(e),n=null!==t?t.factory:ao(e);if(null!==n)return n;if(e instanceof ct)throw new Xt(204,!1);if(e instanceof Function)return function Lo(e){if(e.length>0)throw new Xt(204,!1);const n=function Ms(e){return e&&(e[oo]||e[Mo])||null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new Xt(204,!1)}function xl(e,t,n){let l;if(ti(e)){const p=Ee(e);return ao(p)||Ba(p)}if(Pe(e))l=()=>Ee(e.useValue);else if(function gr(e){return!(!e||!e.useFactory)}(e))l=()=>e.useFactory(...os(e.deps||[]));else if(function jt(e){return!(!e||!e.useExisting)}(e))l=()=>ko(Ee(e.useExisting));else{const p=Ee(e&&(e.useClass||e.provide));if(!function Ua(e){return!!e.deps}(e))return ao(p)||Ba(p);l=()=>new p(...os(e.deps))}return l}function Cl(e){if(e.destroyed)throw new Xt(205,!1)}function ia(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function ac(e,t){for(const n of e)Array.isArray(n)?ac(n,t):n&&On(n)?ac(n.\u0275providers,t):t(n)}function $a(e,t){e instanceof Bs&&Cl(e);const l=zi(e),p=wo(void 0);try{return t()}finally{zi(l),wo(p)}}function Gl(){return void 0!==pa()||null!=function to(){return is}()}function ya(e){if(!Gl())throw new Xt(-203,!1)}const Ui=0,Gn=1,Ar=2,Ao=3,no=4,$o=5,es=6,Po=7,Fr=8,po=9,Is=10,Rr=11,mo=12,lc=13,ja=14,ro=15,Va=16,Di=17,Us=18,oa=19,No=20,U=21,de=22,q=23,ve=24,rt=25,bn=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[bn]}function di(e){return Array.isArray(e)&&!0===e[bn]}function Fo(e){return!!(4&e.flags)}function Wo(e){return e.componentOffset>-1}function fs(e){return!(1&~e.flags)}function jo(e){return!!e.template}function Os(e){return!!(512&e[Ar])}class su{previousValue;currentValue;firstChange;constructor(t,n,l){this.previousValue=t,this.currentValue=n,this.firstChange=l}isFirstChange(){return this.firstChange}}function Uc(e,t,n,l){null!==t?t.applyValueToInputSignal(t,l):e[n]=l}const Ec=(()=>{const e=()=>aa;return e.ngInherit=!0,e})();function aa(e){return e.type.prototype.ngOnChanges&&(e.setInput=Lr),dl}function dl(){const e=$c(this),t=e?.current;if(t){const n=e.previous;if(n===Fn)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=$c(e)||function la(e,t){return e[tl]=t}(e,{previous:Fn,current:null}),I=E.current||(E.current={}),F=E.previous,ie=F[g];I[g]=new su(ie&&ie.currentValue,n,F===Fn),Uc(e,t,p,n)}const tl="__ngSimpleChanges__";function $c(e){return e[tl]||null}const Da=function(e,t,n){},xc="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 N(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 Dt(e,t){return null==t?null:e[t]}function yn(e){e[Di]=0}function on(e){1024&e[Ar]||(e[Ar]|=1024,he(e)&&io(e))}function ri(e){return!!(9216&e[Ar]||e[ve]?.dirty)}function hi(e){e[Is].changeDetectionScheduler?.notify(9),64&e[Ar]&&(e[Ar]|=1024),ri(e)&&io(e)}function io(e){e[Is].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 Xt(911,!1);null===e[U]&&(e[U]=[]),e[U].push(t)}function Cs(e){const t=e[Ao];return di(t)?t[Ao]:t}const Wr={lFrame:Kn(null),bindingsEnabled:!0,skipHydrationRootTNode:null};let uc=!1;function ah(){return Wr.bindingsEnabled}function Dc(){return null!==Wr.skipHydrationRootTNode}function xn(){return Wr.lFrame.lView}function gi(){return Wr.lFrame.tView}function Bu(e){return Wr.lFrame.contextLView=e,e[Fr]}function cu(e){return Wr.lFrame.contextLView=null,e}function Ti(){let e=kl();for(;null!==e&&64===e.type;)e=e.parent;return e}function kl(){return Wr.lFrame.currentTNode}function ps(e,t){const n=Wr.lFrame;n.currentTNode=e,n.isParent=t}function dc(){return Wr.lFrame.isParent}function Vc(){Wr.lFrame.isParent=!1}function dd(){return uc}function qs(e){const t=uc;return uc=e,t}function $s(){const e=Wr.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Ha(){return Wr.lFrame.bindingIndex++}function O(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,$e(t)}function $e(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 Wt(e){Wr.lFrame.currentQueryIndex=e}function ln(e){const t=e[Gn];return 2===t.type?t.declTNode:1===t.type?e[$o]:null}function Tn(e,t,n){if(n&Sr.SkipSelf){let p=t,g=e;for(;!(p=p.parent,null!==p||n&Sr.Host||(p=ln(g),null===p||(g=g[ja],10&p.type))););if(null===p)return!1;t=p,e=g}const l=Wr.lFrame=Xn();return l.currentTNode=t,l.lView=e,!0}function qt(e){const t=Xn(),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 Xn(){const e=Wr.lFrame,t=null===e?null:e.child;return null===t?Kn(e):t}function Kn(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 kn=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 ur(){const e=Wr.lFrame;return N(e.tView,e.selectedIndex)}function Pr(){Wr.lFrame.currentNamespace=xc}function zr(){!function Ur(){Wr.lFrame.currentNamespace=null}()}let Qi=!0;function Mi(){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),(I>14>16&&(3&e[Ar])===t&&(e[Ar]+=16384,go(I,g)):go(I,g)}const _s=-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 zc(e,t,n){let l=0;for(;lt){E=g-1;break}}}for(;g>16}(e),l=t;for(;n>0;)l=l[ja],n--;return l}let lh=!0;function pd(e){const t=lh;return lh=e,t}const hu=255,md=5;let ch=0;const Nl={};function fu(e,t){const n=gd(e,t);if(-1!==n)return n;const l=t[Gn];l.firstCreatePass&&(e.injectorIndex=t.length,uh(l.data,e),uh(t,null),uh(l.blueprint,null));const p=Kc(e,t),g=e.injectorIndex;if(hd(p)){const E=ju(p),I=Ac(p,t),F=I[Gn].data;for(let ie=0;ie<8;ie++)t[g+ie]=I[E+ie]|F[E+ie]}return t[g+8]=p,g}function uh(e,t){e.push(0,0,0,0,0,0,0,0,t)}function gd(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Kc(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=mh(p),null===l)return _s;if(n++,p=p[ja],-1!==l.injectorIndex)return l.injectorIndex|n<<16}return _s}function dh(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]=ch++);const p=l&hu;t.data[e+(p>>md)]|=1<=0?t&hu:Op:t}(n);if("function"==typeof g){if(!Tn(t,e,l))return l&Sr.Host?_d(p,0,l):Tc(t,n,l,p);try{let E;if(E=g(l),null!=E||l&Sr.Optional)return E;ea()}finally{kn()}}else if("number"==typeof g){let E=null,I=gd(e,t),F=_s,ie=l&Sr.Host?t[ro][$o]:null;for((-1===I||l&Sr.SkipSelf)&&(F=-1===I?Kc(e,t):t[I+8],F!==_s&&gf(l,!1)?(E=t[Gn],I=ju(F),t=Ac(F,t)):I=-1);-1!==I;){const De=t[Gn];if(ph(g,I,De.data)){const He=fh(I,t,n,E,l,ie);if(He!==Nl)return He}F=t[I+8],F!==_s&&gf(l,t[Gn].data[I+8]===ie)&&ph(g,I,t)?(E=De,I=ju(F),t=Ac(F,t)):I=-1}}return p}function fh(e,t,n,l,p,g){const E=t[Gn],I=E.data[e+8],De=mu(I,E,n,null==l?Wo(I)&&lh:l!=E&&!!(3&I.type),p&Sr.Host&&g===I);return null!==De?Ll(t,E,De,I):Nl}function mu(e,t,n,l,p){const g=e.providerIndexes,E=t.data,I=1048575&g,F=e.directiveStart,De=g>>20,Lt=p?I+De:e.directiveEnd;for(let Ft=l?I:I+De;Ft=F&&nn.type===n)return Ft}if(p){const Ft=E[F];if(Ft&&jo(Ft)&&Ft.type===n)return F}return null}function Ll(e,t,n,l){let p=e[n];const g=t.data;if(function hc(e){return e instanceof Ss}(p)){const E=p;E.resolving&&function Gi(e,t){throw t&&t.join(" > "),new Xt(-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():mr(e)}(g[n]));const I=pd(E.canSeeViewProviders);E.resolving=!0;const ie=E.injectImpl?wo(E.injectImpl):null;Tn(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=aa(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),pd(I),E.resolving=!1,kn()}}return p}function ph(e,t,n){return!!(n[t+(e>>md)]&1<{const t=e.prototype.constructor,n=t[pr]||_u(t),l=Object.prototype;let p=Object.getPrototypeOf(e.prototype).constructor;for(;p&&p!==l;){const g=p[pr]||_u(p);if(g&&g!==n)return g;p=Object.getPrototypeOf(p)}return g=>new g})}function _u(e){return at(e)?()=>{const t=_u(Ee(e));return t&&t()}:ao(e)}function mh(e){const t=e[Gn],n=t.type;return 2===n?t.declTNode:1===n?e[$o]:null}function Vu(e){return function pu(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(;pko(dr)});static __NG_ELEMENT_ID__=-1}class bd{attributeName;constructor(t){this.attributeName=t}__NG_ELEMENT_ID__=()=>Vu(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`}}new ct("").__NG_ELEMENT_ID__=e=>{const t=Ti();if(null===t)throw new Xt(204,!1);if(2&t.type)return t.value;if(e&Sr.Optional)return null;throw new Xt(204,!1)};const yh=!1;let gc=(()=>class e{static __NG_ELEMENT_ID__=Xc;static __NG_ENV_ID__=n=>n})();class rl extends gc{_lView;constructor(t){super(),this._lView=t}onDestroy(t){return as(this._lView,t),()=>function Ko(e,t){if(null===e[U])return;const n=e[U].indexOf(t);-1!==n&&e[U].splice(n,1)}(this._lView,t)}}function Xc(){return new rl(xn())}class Pl{}const zu=new ct("",{providedIn:"root",factory:()=>!1}),Ef=new ct(""),yu=new ct("");let il=(()=>{class e{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new Wn.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 Fl=class bh extends Pt.B{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,Gl()&&(this.destroyRef=tr(gc,{optional:!0})??void 0,this.pendingTasks=tr(il,{optional:!0})??void 0)}emit(t){const n=A(null);try{super.next(t)}finally{A(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 I=super.subscribe({next:p,error:g,complete:E});return t instanceof en.yU&&t.add(I),I}wrapInTimeout(t){return n=>{const l=this.pendingTasks?.add();setTimeout(()=>{t(n),void 0!==l&&this.pendingTasks?.remove(l)})}}};function bu(...e){}function wd(e){let t,n;function l(){e=bu;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 Ku(e){return queueMicrotask(()=>e()),()=>{e=bu}}const Ed="isAngularZone",Yc=Ed+"_ID";let xf=0;class Vo{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new Fl(!1);onMicrotaskEmpty=new Fl(!1);onStable=new Fl(!1);onError=new Fl(!1);constructor(t){const{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:l=!1,shouldCoalesceRunChangeDetection:p=!1,scheduleInRootZone:g=yh}=t;if(typeof Zone>"u")throw new Xt(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 xh(e){const t=()=>{!function Eh(e){function t(){wd(()=>{e.callbackScheduled=!1,Ch(e),e.isCheckStableRunning=!0,wh(e),e.isCheckStableRunning=!1})}e.isCheckStableRunning||e.callbackScheduled||(e.callbackScheduled=!0,e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),Ch(e))}(e)},n=xf++;e._inner=e._inner.fork({name:"angular",properties:{[Ed]:!0,[Yc]:n,[Yc+n]:!0},onInvokeTask:(l,p,g,E,I,F)=>{if(function Dh(e){return Sh(e,"__ignore_ng_zone__")}(F))return l.invokeTask(g,E,I,F);try{return Df(e),l.invokeTask(g,E,I,F)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===E.type||e.shouldCoalesceRunChangeDetection)&&t(),Sf(e)}},onInvoke:(l,p,g,E,I,F,ie)=>{try{return Df(e),l.invoke(g,E,I,F,ie)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!function Vp(e){return Sh(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,Ch(e),wh(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(Ed)}static assertInAngularZone(){if(!Vo.isInAngularZone())throw new Xt(909,!1)}static assertNotInAngularZone(){if(Vo.isInAngularZone())throw new Xt(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,bu,bu);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 wh(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 Ch(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--,wh(e)}class xd{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new Fl;onMicrotaskEmpty=new Fl;onStable=new Fl;onError=new Fl;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 Sh(e,t){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0]?.data?.[t]}class Mc{_console=console;handleError(t){this._console.error("ERROR",t)}}const Af=new ct("",{providedIn:"root",factory:()=>{const e=tr(Vo),t=tr(Mc);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function za(e,t){return nt(e,t)}const Qc=(za.required=function Wp(e){return nt(Gt,e)},za);function zp(){return gl(Ti(),xn())}function gl(e,t){return new kc(xs(e,t))}let kc=(()=>class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=zp})();function js(e){return e instanceof kc?e.nativeElement:e}function Tf(){return this._results[Symbol.iterator]()}class Sd{_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 Pt.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 vo(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;lVs}),Vs="ng",Hs=new ct(""),Ta=new ct("",{providedIn:"platform",factory:()=>"unknown"}),Ma=new ct(""),Ka=new ct("",{providedIn:"root",factory:()=>ki().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null}),vg=new ct("",{providedIn:"root",factory:()=>!1});var Yp=function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e}(Yp||{});const Ph=new ct(""),Xv=new Set;function ua(e){Xv.has(e)||(Xv.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var Nd=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(Nd||{});let Eg=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=oi({token:e,providedIn:"root",factory:()=>new e})}return e})();const Yv=[Nd.EarlyRead,Nd.Write,Nd.MixedReadWrite,Nd.Read];let Qv=(()=>{class e{ngZone=tr(Vo);scheduler=tr(Pl);errorHandler=tr(Mc,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){tr(Ph,{optional:!0})}execute(){this.executing=!0;for(const n of Yv)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(Yp.AFTER_NEXT_RENDER,n)??n()}static \u0275prov=oi({token:e,providedIn:"root",factory:()=>new e})}return e})();class xg{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 Cg(e,t){!t?.injector&&ya();const n=t?.injector??tr(Ts);return typeof ngServerMode<"u"&&ngServerMode?Qp:(ua("NgAfterRender"),Dg(e,n,t,!1))}function qu(e,t){!t?.injector&&ya();const n=t?.injector??tr(Ts);return typeof ngServerMode<"u"&&ngServerMode?Qp:(ua("NgAfterNextRender"),Dg(e,n,t,!0))}function Dg(e,t,n,l){const p=t.get(Eg);p.impl??=t.get(Qv);const g=t.get(Ph,null,{optional:!0}),E=n?.phase??Nd.MixedReadWrite,I=!0!==n?.manualCleanup?t.get(gc):null,F=new xg(p.impl,function Zv(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,I,g?.snapshot(null));return p.impl.register(F),F}const Qp={destroy(){}};let Bg=()=>null;function jf(e,t,n=!1){return Bg(e,t,n)}var Tu=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(Tu||{});let Wf,zf;function Hd(e){return function am(){if(void 0===Wf&&(Wf=null,Zt.trustedTypes))try{Wf=Zt.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Wf}()?.createHTML(e)||e}function lm(){if(void 0===zf&&(zf=null,Zt.trustedTypes))try{zf=Zt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return zf}function Yg(e){return lm()?.createHTML(e)||e}function Zg(e){return lm()?.createScriptURL(e)||e}class td{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Sn})`}}class Kf extends td{getTypeName(){return"HTML"}}class Ey extends td{getTypeName(){return"Style"}}class xy extends td{getTypeName(){return"Script"}}class Cy extends td{getTypeName(){return"URL"}}class Dy extends td{getTypeName(){return"ResourceURL"}}function Jc(e){return e instanceof td?e.changingThisBreaksApplicationSecurity:e}function Wd(e,t){const n=function Sy(e){return e instanceof td&&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 ${Sn})`)}return n===t}function Ay(e){return new Kf(e)}function Ty(e){return new Ey(e)}function My(e){return new xy(e)}function ky(e){return new Cy(e)}function cm(e){return new Dy(e)}class Iy{inertDocumentHelper;constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const n=(new window.DOMParser).parseFromString(Hd(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.firstChild?.remove(),n)}catch{return null}}}class um{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=Hd(t),n}}const Ry=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Gf(e){return(e=String(e)).match(Ry)?e:"unsafe:"+e}function eu(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function Kh(...e){const t={};for(const n of e)for(const l in n)n.hasOwnProperty(l)&&(t[l]=!0);return t}const Jg=eu("area,br,col,hr,img,wbr"),e_=eu("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),dm=eu("rp,rt"),hm=Kh(Jg,Kh(e_,eu("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")),Kh(dm,eu("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")),Kh(dm,e_)),Gh=eu("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),t_=Kh(Gh,eu("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"),eu("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")),n_=eu("script,style,template");class Ly{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=r_(n);else for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let g=Fy(n);if(g){n=g;break}n=p.pop()}return this.buf.join("")}startElement(t){const n=i_(t).toLowerCase();if(!hm.hasOwnProperty(n))return this.sanitizedSomething=!0,!n_.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);const l=t.attributes;for(let p=0;p"),!0}endElement(t){const n=i_(t).toLowerCase();hm.hasOwnProperty(n)&&!Jg.hasOwnProperty(n)&&(this.buf.push(""))}chars(t){this.buf.push(fm(t))}}function Fy(e){const t=e.nextSibling;if(t&&e!==t.previousSibling)throw o_(t);return t}function r_(e){const t=e.firstChild;if(t&&function Py(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(e,t))throw o_(t);return t}function i_(e){const t=e.nodeName;return"string"==typeof t?t:"FORM"}function o_(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}const s_=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,By=/([^\#-~ |!])/g;function fm(e){return e.replace(/&/g,"&").replace(s_,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(By,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let Xf;function a_(e,t){let n=null;try{Xf=Xf||function qg(e){const t=new um(e);return function Oy(){try{return!!(new window.DOMParser).parseFromString(Hd(""),"text/html")}catch{return!1}}()?new Iy(t):t}(e);let l=t?String(t):"";n=Xf.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=Xf.getInertBodyElement(l)}while(l!==g);return Hd((new Ly).sanitizeChildren(pm(n)||n))}finally{if(n){const l=pm(n)||n;for(;l.firstChild;)l.firstChild.remove()}}}function pm(e){return"content"in e&&function Uy(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Nc=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}(Nc||{});function Xh(e){const t=Lc();return t?Yg(t.sanitize(Nc.HTML,e)||""):Wd(e,"HTML")?Yg(Jc(e)):a_(ki(),mr(e))}function Yh(e){const t=Lc();return t?t.sanitize(Nc.URL,e)||"":Wd(e,"URL")?Jc(e):Gf(mr(e))}function Qh(e){const t=Lc();if(t)return Zg(t.sanitize(Nc.RESOURCE_URL,e)||"");if(Wd(e,"ResourceURL"))return Zg(Jc(e));throw new Xt(904,!1)}function l_(e,t,n){return function gm(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?Qh:Yh}(t,n)(e)}function Lc(){const e=xn();return e&&e[Is].sanitizer}const u_=/^>|^->||--!>|)/g,d_="\u200b$1\u200b";function jl(e){return e instanceof Function?e():e}var Mu=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(Mu||{}),Zf=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Zf||{});let Em;function xm(e,t){return Em(e,t)}function Gd(e,t,n,l,p){if(null!=l){let g,E=!1;di(l)?g=l:Qr(l)&&(E=!0,l=l[Ui]);const I=Xi(l);0===e&&null!==n?null==p?T_(t,n,I):nd(t,n,I,p||null,!0):1===e&&null!==n?nd(t,n,I,p||null,!0):2===e?function Qd(e,t,n){e.removeChild(null,t,n)}(t,I,E):3===e&&t.destroyNode(I),null!=g&&function ib(e,t,n,l,p){const g=n[Cr];g!==Xi(n)&&Gd(t,e,l,g,p);for(let I=Hr;It.replace(Wy,d_))}(t))}function qf(e,t,n){return e.createElement(t,n)}function x_(e,t){t[Is].changeDetectionScheduler?.notify(10),tp(e,t,t[Rr],2,null,null)}function D_(e,t){const n=e[Li],l=t[Ao];(Qr(l)||t[ro]!==l[Ao][ro])&&(e[Ar]|=xi.HasTransplantedViews),null===n?e[Li]=[t]:n.push(t)}function Sm(e,t){const n=e[Li],l=n.indexOf(t);n.splice(l,1)}function Zh(e,t){if(e.length<=Hr)return;const n=Hr+t,l=e[n];if(l){const p=l[Va];null!==p&&p!==e&&Sm(p,l),t>0&&(e[n-1][no]=l[no]);const g=Pa(e,Hr+t);!function E_(e,t){x_(e,t),t[Ui]=null,t[$o]=null}(l[Gn],l);const E=g[Us];null!==E&&E.detachView(g[Gn]),l[Ao]=null,l[no]=null,l[Ar]&=-129}return l}function Xd(e,t){if(!(256&t[Ar])){const n=t[Rr];n.destroyNode&&tp(e,t,n,3,null,null),function tb(e){let t=e[mo];if(!t)return Yd(e[Gn],e);for(;t;){let n=null;if(Qr(t))n=t[mo];else{const l=t[Hr];l&&(n=l)}if(!n){for(;t&&!t[no]&&t!==e;)Qr(t)&&Yd(t[Gn],t),t=t[Ao];null===t&&(t=e),Qr(t)&&Yd(t[Gn],t),n=t&&t[no]}t=n}}(t)}}function Yd(e,t){if(256&t[Ar])return;const n=A(null);try{t[Ar]&=-129,t[Ar]|=256,t[ve]&&xe(t[ve]),function nb(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let l=0;l=0?l[I]():l[-I].unsubscribe(),E+=2}else n[E].call(l[n[E+1]]);null!==l&&(t[Po]=null);const p=t[U];if(null!==p){t[U]=null;for(let E=0;E-1){const{encapsulation:g}=e.data[l.directiveStart+p];if(g===Tu.None||g===Tu.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 T_(e,t,n){e.appendChild(t,n)}function M_(e,t,n,l,p){null!==l?nd(e,t,n,l,p):T_(e,t,n)}function Jf(e,t){return e.parentNode(t)}function k_(e,t,n){return O_(e,t,n)}let Tm,O_=function I_(e,t,n){return 40&e.type?xs(e,n):null};function ep(e,t,n,l){const p=Am(e,l,t),g=t[Rr],I=k_(l.parent||t[$o],l,t);if(null!=p)if(Array.isArray(n))for(let F=0;F-1){let g;for(;++pg?"":p[De+1].toLowerCase(),2&l&&ie!==He){if(vc(l))return!1;E=!0}}}}else{if(!E&&!vc(l)&&!vc(F))return!1;if(E&&vc(F))continue;E=!1,l=F|1&l}}return vc(l)||E}function vc(e){return!(1&e)}function db(e,t,n,l){if(null===t)return-1;let p=0;if(l||!n){let g=!1;for(;p-1)for(n++;n0?'="'+I+'"':"")+"]"}else 8&l?p+="."+E:4&l&&(p+=" "+E);else""!==p&&!vc(E)&&(t+=j_(g,p),p=""),l=E,g=g||!vc(l);n++}return""!==p&&(t+=j_(g,p)),t}const Ri={};function V_(e=1){H_(gi(),xn(),ir()+e,!1)}function H_(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&&vr(t,g,n)}Vn(n)}function id(e,t=Sr.Default){const n=xn();return null===n?ko(e,t):pf(Ti(),n,Ee(e),t)}function W_(){throw new Error("invalid")}function z_(e,t,n,l,p,g){const E=A(null);try{let I=null;p&Mu.SignalBased&&(I=t[l][C]),null!==I&&void 0!==I.transformFn&&(g=I.transformFn(g)),p&Mu.HasDecoratorInputTransform&&(g=e.inputTransforms[l].call(t,g)),null!==e.setInput?e.setInput(t,I,g,n,l):Uc(t,I,l,g)}finally{A(E)}}function qh(e,t,n,l,p,g,E,I,F,ie,De){const He=t.blueprint.slice();return He[Ui]=p,He[Ar]=1228|l,(null!==ie||e&&2048&e[Ar])&&(He[Ar]|=2048),yn(He),He[Ao]=He[ja]=e,He[Fr]=n,He[Is]=E||e&&e[Is],He[Rr]=I||e&&e[Rr],He[po]=F||e&&e[po]||null,He[$o]=g,He[oa]=function xu(){return Kp++}(),He[es]=De,He[No]=ie,He[ro]=2==t.type?e[ro]:He,He}function od(e,t,n,l,p){let g=e.data[t];if(null===g)g=function v(e,t,n,l,p){const g=kl(),E=dc(),F=e.data[t]=function ni(e,t,n,l,p,g){let E=t?t.injectorIndex:-1,I=0;return Dc()&&(I|=128),{type:n,index:l,insertBeforeIndex:null,injectorIndex:E,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:I,providerIndexes:0,value:p,attrs:g,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,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 B(){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 ps(g,!0),g}function m(e,t,n,l){if(0===n)return-1;const p=t.length;for(let g=0;grt&&H_(e,t,rt,!1),Da(E?2:0,p),n(l,p)}finally{Vn(g),Da(E?3:1,p)}}function _(e,t,n){if(Fo(t)){const l=A(null);try{const g=t.directiveEnd;for(let E=t.directiveStart;Enull;function yi(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 I,F=Mu.None;Array.isArray(E)?(I=E[0],F=E[1]):I=E;let ie=g;if(null!==p){if(!p.hasOwnProperty(g))continue;ie=p[g]}0===e?uo(l,n,ie,I,F):uo(l,n,ie,I)}return l}function uo(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 xo(e,t,n,l,p,g,E,I){const F=xs(t,n);let De,ie=t.inputs;!I&&null!=ie&&(De=ie[l])?(vb(e,n,De,l,p),Wo(t)&&function tu(e,t){const n=P(t,e);16&n[Ar]||(n[Ar]|=64)}(n,t.index)):3&t.type&&(l=function da(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 ha(e,t,n,l){if(ah()){const p=null===l?null:{"":-1},g=function G_(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)!=I&&E.push(I),E.push(n,l,g)}}(e,t,l,m(e,n,p.hostVars,Ri),p)}function rc(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function Oa(e,t,n,l,p,g){const E=xs(e,t);!function ts(e,t,n,l,p,g,E){if(null==g)e.removeAttribute(t,p,n);else{const I=null==E?mr(g):E(g,l||"",p);e.setAttribute(t,p,I,n)}}(t[Rr],E,g,e.value,n,l,p)}function X_(e,t,n,l,p,g){const E=g[t];if(null!==E)for(let I=0;I0&&(n[p-1][no]=t),l{io(e.lView)},consumerOnSignalRead(){this.lView[ve]=this}},fD={...R,consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let t=Cs(e.lView);for(;t&&!jw(t[Gn]);)t=Cs(t);t&&on(t)},consumerOnSignalRead(){this.lView[ve]=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])}}const pD=100;function q_(e,t=!0,n=0){const p=e[Is].rendererFactory;p.begin?.();try{!function mD(e,t){const n=dd();try{qs(!0),wb(e,t);let l=0;for(;ri(e);){if(l===pD)throw new Xt(103,!1);l++,wb(e,1)}}finally{qs(n)}}(e,n)}catch(E){throw t&&Q_(e,E),E}finally{p.end?.()}}function Ww(e,t,n,l){const p=t[Ar];if(!(256&~p))return;qt(t);let I=!0,F=null,ie=null;jw(e)?(ie=function lD(e){return e[ve]??function cD(e){const t=$w.pop()??Object.create(dD);return t.lView=e,t}(e)}(t),F=Ce(ie)):null===function S(){return c}()?(I=!1,ie=function hD(e){const t=e[ve]??Object.create(fD);return t.lView=e,t}(t),F=Ce(ie)):t[ve]&&(xe(t[ve]),t[ve]=null);try{yn(t),function $u(e){return Wr.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==n&&d(e,t,n,2,l);const De=!(3&~p);if(De){const Ft=e.preOrderCheckHooks;null!==Ft&&vr(t,Ft,null)}else{const Ft=e.preOrderHooks;null!==Ft&&jr(t,Ft,0,null),Fi(t,0)}if(function gD(e){for(let t=Qt(e);null!==t;t=Jt(t)){if(!(t[Ar]&xi.HasTransplantedViews))continue;const n=t[Li];for(let l=0;l-1&&(Zh(t,l),Pa(n,l))}this._attachedToViewContainer=!1}Xd(this._lView[Gn],this._lView)}onDestroy(t){as(this._lView,t)}markForCheck(){Lm(this._cdRefInjectingView||this._lView,4)}markForRefresh(){on(this._cdRefInjectingView||this._lView)}detach(){this._lView[Ar]&=-129}reattach(){hi(this._lView),this._lView[Ar]|=128}detectChanges(){this._lView[Ar]|=1024,q_(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Xt(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;const t=Os(this._lView),n=this._lView[Va];null!==n&&!t&&Sm(n,this._lView),x_(this._lView[Gn],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Xt(902,!1);this._appRef=t;const n=Os(this._lView),l=this._lView[Va];null!==l&&!n&&D_(l,this._lView),hi(this._lView)}}let Fm=(()=>class e{static __NG_ELEMENT_ID__=bD})();const vD=Fm,yD=class extends vD{_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=op(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:n,dehydratedView:l});return new Pm(p)}};function bD(){return J_(Ti(),xn())}function J_(e,t){return 4&e.type?new yD(t,e,gl(e,t)):null}let p1=()=>null;function lp(e,t){return p1(e,t)}class pS{}class m1{}class mS{resolveComponentFactory(t){throw Error(`No component factory found for ${xr(t)}.`)}}class ov{static NULL=new mS}class Rb{}let gS=(()=>class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>function _S(){const e=xn(),n=P(Ti().index,e);return(Qr(n)?n:e)[Rr]}()})(),vS=(()=>{class e{static \u0275prov=oi({token:e,providedIn:"root",factory:()=>null})}return e})();function qd(e){return!!Or(e)}function av(e,t,n){let l=n?e.styles:null,p=n?e.classes:null,g=0;if(null!==t)for(let E=0;E0&&F_(e,n,g.join(" "))}}(Lt,Js,nn,l),void 0!==n&&function TS(e,t,n){const l=e.projection=[];for(let p=0;pclass e{static __NG_ELEMENT_ID__=kS})();function kS(){return E1(Ti(),xn())}const IS=lv,b1=class extends IS{_lContainer;_hostTNode;_hostLView;constructor(t,n,l){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=l}get element(){return gl(this._hostTNode,this._hostLView)}get injector(){return new As(this._hostTNode,this._hostLView)}get parentInjector(){const t=Kc(this._hostTNode,this._hostLView);if(hd(t)){const n=Ac(t,this._hostLView),l=ju(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=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=lp(this._lContainer,t.ssrId),I=t.createEmbeddedViewImpl(n||{},g,E);return this.insertImpl(I,p,Jh(this._hostTNode,E)),I}createComponent(t,n,l,p,g){const E=t&&!function Jo(e){return"function"==typeof e}(t);let I;if(E)I=n;else{const nn=n||{};I=nn.index,l=nn.injector,p=nn.projectableNodes,g=nn.environmentInjector||nn.ngModuleRef}const F=E?t:new Gm(Dr(t)),ie=l||this.parentInjector;if(!g&&null==F.ngModule){const Nn=(E?ie:this.parentInjector).get(ds,null);Nn&&(g=Nn)}const De=Dr(F.componentType??{}),He=lp(this._lContainer,De?.id??null),Ft=F.create(ie,p,He?.firstChild??null,g);return this.insertImpl(Ft.hostView,I,Jh(this._hostTNode,He)),Ft}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,l){const p=t._lView;if(function We(e){return di(e[Ao])}(p)){const I=this.indexOf(t);if(-1!==I)this.detach(I);else{const F=p[Ao],ie=new b1(F,F[$o],F[Ao]);ie.detach(ie.indexOf(t))}}const g=this._adjustIndex(n),E=this._lContainer;return sp(E,p,g,l),t.attachToViewContainerRef(),vi(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=Zh(this._lContainer,n);l&&(Pa(Pb(this._lContainer),n),Xd(l[Gn],l))}detach(t){const n=this._adjustIndex(t,-1),l=Zh(this._lContainer,n);return l&&null!=Pa(Pb(this._lContainer),n)?new Pm(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=Ra(l,t,null,e),t[e.index]=n,sl(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,Jf(n,p),l,function rb(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[I/2]);else{const ie=g[I+1],De=t[-F];for(let He=Hr;He(G(t),t.value);return n[C]=t,n}(e),l=n[C];return t?.equal&&(l.equal=t.equal),n.set=p=>lt(l,p),n.update=p=>function Xe(e,t){_e()||Ze(),lt(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=_t(()=>{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:fn;const p=Hb(n,l),g=O1(n,l);return p.reset(g,js),t?p.first:p._changesDetected||void 0===e._flatValue?e._flatValue=p.toArray():e._flatValue}(l,e);if(t&&void 0===g)throw new Xt(-951,!1);return g});return l=p[C],l._dirtyCounter=cp(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 tf{}class z1{}function JS(e,t){return new Xb(e,t??null,[])}class Xb extends tf{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new v1(this);constructor(t,n,l,p=!0){super(),this.ngModuleType=t,this._parent=n;const g=Or(t);this._bootstrapComponents=jl(g.bootstrap),this._r3Injector=wf(t,n,[{provide:tf,useValue:this},{provide:ov,useValue:this.componentFactoryResolver},...l],xr(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 tf{injector;componentFactoryResolver=new v1(this);instance=null;constructor(t){super();const n=new Bs([...t.providers,{provide:tf,useValue:this},{provide:ov,useValue:this.componentFactoryResolver}],t.parent||El(),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=zl(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(ko(ds))})}return e})();function G1(e){return W(()=>{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===Ic.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||Tu.Emulated,styles:e.styles||fn,_:null,schemas:e.schemas||null,tView:null,id:""};t.standalone&&ua("NgStandalone"),q1(n);const l=e.dependencies;return n.directiveDefs=uv(l,!1),n.pipeDefs=uv(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 W(()=>({type:e.type,bootstrap:e.bootstrap||fn,declarations:e.declarations||fn,imports:e.imports||fn,exports:e.exports||fn,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function X1(e,t){if(null==e)return Fn;const n={};for(const l in e)if(e.hasOwnProperty(l)){const p=e[l];let g,E,I=Mu.None;Array.isArray(p)?(I=p[0],g=p[1],E=p[2]??g):(g=p,E=p),t?(n[g]=I!==Mu.None?[l,I]:l,t[g]=E):n[g]=l}return n}function Y1(e){return W(()=>{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||Fn,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:!0===e.signals,selectors:e.selectors||fn,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 uv(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 Xt(903,!1);p=t.\u0275dir}if(p){if(n){l.push(p);const E=e;E.inputs=dv(e.inputs),E.inputTransforms=dv(e.inputTransforms),E.declaredInputs=dv(e.declaredInputs),E.outputs=dv(e.outputs);const I=p.hostBindings;I&&uA(e,I);const F=p.viewQuery,ie=p.contentQueries;if(F&&lA(e,F),ie&&cA(e,ie),sA(e,p),Hn(e.outputs,p.outputs),jo(p)&&p.data.animation){const De=e.data;De.animation=(De.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=pl(p.hostAttrs,n=pl(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 dv(e){return e===Fn?{}:e===fn?[]: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:Fn,outputs:Fn}:{directive:Ee(e.directive),inputs:rE(e.inputs),outputs:rE(e.outputs)}}function rE(e){if(void 0===e||0===e.length)return Fn;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 yE(e,t){if(typeof COMPILED>"u"||!COMPILED){const n=Zt;n[_E]??={},n[_E][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)(ko(Vo),ko(EE),ko(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=$a(this.injector,p);if(a0(g))n.push(g);else if(xE(g)){const E=new Promise((I,F)=>{g.subscribe({complete:I,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 qm=new ct("");let Fc=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=tr(Af);afterRenderManager=tr(Eg);zonelessEnabled=tr(zu);rootEffectScheduler=tr(c0);dirtyFlags=0;deferredDirtyFlags=0;tracingSnapshot=null;externalTestViews=new Set;afterTick=new Pt.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(Ph,{optional:!0})}whenStable(){let n;return new Promise(l=>{n=this.isStable.subscribe({next:p=>{p&&l()}})}).finally(()=>{n.unsubscribe()})}_injector=tr(ds);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,l){const p=n instanceof m1;if(!this._injector.get(CE).done)throw!p&&fo(n),new Xt(405,!1);let E;E=p?n:this._injector.get(ov).resolveComponentFactory(n),this.componentTypes.push(E.componentType);const I=function sT(e){return e.isBoundToModule}(E)?void 0:this._injector.get(tf),ie=E.create(Ts.NULL,[],l||E.selector,I),De=ie.location.nativeElement,He=ie.injector.get(bE,null);return He?.registerApplication(De),ie.onDestroy(()=>{this.detachView(ie.hostView),vv(this.components,ie),He?.unregisterApplication(De)}),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(Yp.CHANGE_DETECTION,this._tick),void l.dispose()}if(this._runningTick)throw new Xt(101,!1);const n=A(null);try{this._runningTick=!0,this.synchronize()}catch(l){this.internalErrorHandler(l)}finally{this._runningTick=!1,A(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;vv(this._views,l),l.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(qm,[]).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),()=>vv(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new Xt(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 vv(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function cT(e,t,n,l){(n||ri(e))&&q_(e,t,n&&!l?0:1)}function h0(e,t,n,l){const p=xn();return Ws(p,Ha(),t)&&(gi(),Oa(ur(),p,e,t,n,l)),h0}function pp(e,t,n,l){return Ws(e,Ha(),n)?t+mr(n)+l:Ri}function yv(e,t){return e<<17|t<<2}function rh(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?rh(p):rf(p),I=!1;for(;0!==E&&(!1===I||g);){const ie=e[E+1];XT(e[E],t)&&(I=!0,e[E+1]=l?m0(ie):f0(ie)),E=l?rh(ie):rf(ie)}I&&(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 Na={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function VE(e){return e.substring(Na.key,Na.keyEnd)}function YT(e){return e.substring(Na.value,Na.valueEnd)}function HE(e,t){const n=Na.textEnd;return n===t?-1:(t=Na.keyEnd=function qT(e,t,n){for(;t32;)t++;return t}(e,Na.key=t,n),Ep(e,t,n))}function WE(e,t){const n=Na.textEnd;let l=Na.key=Ep(e,t,n);return n===l?-1:(l=Na.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=Na.value=Ep(e,l,n),l=Na.valueEnd=function eM(e,t,n){let l=-1,p=-1,g=-1,E=t,I=E;for(;E32&&(I=E),g=p,p=l,l=-33&F}return I}(e,l,n),KE(e,l,n))}function zE(e){Na.key=0,Na.keyEnd=0,Na.value=0,Na.valueEnd=0,Na.textEnd=e.length}function Ep(e,t,n){for(;t=0;n=WE(t,n))ZE(e,VE(t),YT(t))}function XE(e){iu(aM,Ou,e,!0)}function Ou(e,t){for(let n=function QT(e){return zE(e),HE(e,Ep(e,0,Na.textEnd))}(t);n>=0;n=HE(t,n))Y(e,VE(t),!0)}function ru(e,t,n,l){const p=xn(),g=gi(),E=O(2);g.firstUpdatePass&&QE(g,e,E,l),t!==Ri&&Ws(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=xr(Jc(e)))),e}(t,n),l,E)}function iu(e,t,n,l){const p=gi(),g=O(2);p.firstUpdatePass&&QE(p,null,g,l);const E=xn();if(n!==Ri&&Ws(E,g,n)){const I=p.data[ir()];if(ex(I,l)&&!YE(p,g)){let F=l?I.classesWithoutHost:I.stylesWithoutHost;null!==F&&(n=ei(F,n||"")),_0(p,I,E,n,l)}else!function lM(e,t,n,l,p,g,E,I){p===Ri&&(p=fn);let F=0,ie=0,De=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=eg(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[rh(l)]}(e,t,l);void 0!==F&&Array.isArray(F)&&(F=b0(null,e,t,F[1],l),F=eg(F,t.attrs,l),function iM(e,t,n,l){e[rh(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)):De=n,p)if(0!==F){const Lt=rh(e[I+1]);e[l+1]=yv(Lt,I),0!==Lt&&(e[Lt+1]=p0(e[Lt+1],l)),e[I+1]=function WT(e,t){return 131071&e|t<<17}(e[I+1],l)}else e[l+1]=yv(I,0),0!==I&&(e[I+1]=p0(e[I+1],l)),I=l;else e[l+1]=yv(F,0),0===I?I=l:e[F+1]=p0(e[F+1],l),F=l;ie&&(e[l+1]=f0(e[l+1])),jE(e,De,l,!0),jE(e,De,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,De,e,l,g),E=yv(I,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 I=n.directiveStylingLast;for(-1===I?I=n.directiveStart:I++;I0;){const F=e[p],ie=Array.isArray(F),De=ie?F[1]:F,He=null===De;let Lt=n[p+1];Lt===Ri&&(Lt=He?fn:void 0);let Ft=He?Ve(Lt,l):De===l?Lt:void 0;if(ie&&!bv(Ft)&&(Ft=Ve(F,l)),bv(Ft)&&(I=Ft,E))return I;const nn=e[p+1];p=E?rh(nn):rf(nn)}if(null!==t){let F=g?t.residualClasses:t.residualStyles;null!=F&&(I=Ve(F,l))}return I}function bv(e){return void 0!==e}function ex(e,t){return!!(e.flags&(t?8:16))}function tx(e,t,n){iu(Y,Ou,pp(xn(),e,t,n),!0)}function nx(){return xn()[ro][Fr]}class vM{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){ua("NgControlFlow");const n=xn(),l=Ha(),p=n[l]!==Ri?n[l]:-1,g=-1!==p?wv(n,rt+p):void 0;if(Ws(n,l,e)){const I=A(null);try{if(void 0!==g&&yb(g,0),-1!==e){const F=rt+e,ie=wv(n,F),De=x0(n[Gn],F),He=lp(ie,De.tView.ssrId);sp(ie,op(n,De,t,{dehydratedView:He}),0,Jh(De,He))}}finally{A(I)}}else if(void 0!==g){const I=Uw(g,0);void 0!==I&&(I[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,I,F,ie,De,He,Lt){ua("NgControlFlow");const Ft=xn(),nn=gi(),Nn=void 0!==F,qn=xn(),lr=I?E.bind(qn[ro][Fr]):E,Pn=new EM(Nn,lr);qn[rt+e]=Pn,Qm(Ft,nn,e+1,t,n,l,p,Dt(nn.consts,g)),Nn&&Qm(Ft,nn,e+2,F,ie,De,He,Dt(nn.consts,Lt))}class xM extends vM{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,sp(this.lContainer,n,t,Jh(this.templateTNode,l))}detach(t){return this.needsIndexUpdate||=t!==this.length-1,function CM(e,t){return Zh(e,t)}(this.lContainer,t)}create(t,n){const l=lp(this.lContainer,this.templateTNode.tView.ssrId),p=op(this.hostLView,this.templateTNode,new bM(this.lContainer,n,t),{dehydratedView:l});return this.operationsCounter?.recordCreate(),p}destroy(t){Xd(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=Ha(),De=0===F.length;if(Ws(l,ie,De)){const He=n+2,Lt=wv(l,He);if(De){const Ft=x0(p,He),nn=lp(Lt,Ft.tView.ssrId);sp(Lt,op(l,Ft,void 0,{dehydratedView:nn}),0,Jh(Ft,nn))}else yb(Lt,0)}}}finally{A(t)}}function wv(e,t){return e[t]}function x0(e,t){return N(e,t)}function Ev(e,t,n,l){const p=xn(),g=gi(),E=rt+e,I=p[Rr],F=g.firstCreatePass?function SM(e,t,n,l,p,g){const E=t.consts,F=od(t,e,2,l,Dt(E,p));return ha(t,n,F,Dt(E,g)),null!==F.attrs&&av(F,F.attrs,!1),null!==F.mergedAttrs&&av(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,I,t,e);p[E]=ie;const De=fs(F);return ps(F,!0),B_(I,ie,F),!function dp(e){return!(32&~e.flags)}(F)&&Mi()&&ep(g,p,ie,F),0===function sh(){return Wr.lFrame.elementDepthCount}()&&x(ie,p),function lf(){Wr.lFrame.elementDepthCount++}(),De&&(D(g,p,F),_(g,F,p)),null!==l&&j(p,F),Ev}function xv(){let e=Ti();dc()?Vc():(e=e.parent,ps(e,!1));const t=e;(function uf(e){return Wr.skipHydrationRootTNode===e})(t)&&function ud(){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 pc(e){return!!(8&e.flags)}(t)&&_0(n,t,xn(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function Sc(e){return!!(16&e.flags)}(t)&&_0(n,t,xn(),t.stylesWithoutHost,!1),xv}function C0(e,t,n,l){return Ev(e,t,n,l),xv(),C0}let ux=(e,t,n,l,p,g)=>(Zi(!0),qf(l,p,function Yi(){return Wr.lFrame.currentNamespace}()));function Cv(e,t,n){const l=xn(),p=gi(),g=e+rt,E=p.firstCreatePass?function MM(e,t,n,l,p){const g=t.consts,E=Dt(g,l),I=od(t,e,8,"ng-container",E);return null!==E&&av(I,E,!0),ha(t,n,I,Dt(g,p)),null!==t.queries&&t.queries.elementStart(t,I),I}(g,p,l,t,n):p.data[g];ps(E,!0);const I=dx(p,l,E,e);return l[g]=I,Mi()&&ep(p,l,I,E),x(I,l),fs(E)&&(D(p,l,E),_(p,E,l)),null!=n&&j(l,E),Cv}function Dv(){let e=Ti();const t=gi();return dc()?Vc():(e=e.parent,ps(e,!1)),t.firstCreatePass&&(Ds(t,e),Fo(e)&&t.queries.elementEnd(e)),Dv}function D0(e,t,n){return Cv(e,t,n),Dv(),D0}let dx=(e,t,n,l)=>(Zi(!0),Dm(t[Rr],""));function hx(){return xn()}function S0(e,t,n){const l=xn();return Ws(l,Ha(),t)&&xo(gi(),ur(),l,e,t,l[Rr],n,!0),S0}function A0(e,t,n){const l=xn();if(Ws(l,Ha(),t)){const g=gi(),E=ur();xo(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 xp={};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 Xt(701,!1)}function fx(e){return T0(e)[Cp.PluralCase]}function px(e){return e in xp||(xp[e]=Zt.ng&&Zt.ng.common&&Zt.ng.common.locales&&Zt.ng.common.locales[e]),xp[e]}var Cp=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}(Cp||{});const Sv="en-US";let mx=Sv,Rx=(e,t,n)=>{};function I0(e,t,n,l){const p=xn(),g=gi(),E=Ti();return R0(g,p,p[Rr],E,e,t,l),I0}function O0(e,t){const n=Ti(),l=xn(),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 I=fs(l),ie=e.firstCreatePass&&Fw(e),De=t[Fr],He=Pw(t);let Lt=!0;if(3&l.type||E){const Nn=xs(l,t),qn=E?E(Nn):Nn,lr=He.length,Pn=E?Hi=>E(Xi(Hi[l.index])):l.index;let _i=null;if(!E&&I&&(_i=function Ck(e,t,n,l){const p=e.cleanup;if(null!=p)for(let g=0;gF?I[F]:null}"string"==typeof E&&(g+=2)}return null}(e,t,p,l.index)),null!==_i)(_i.__ngLastListenerFn__||_i).__ngNextListenerFn__=g,_i.__ngLastListenerFn__=g,Lt=!1;else{g=Lx(l,t,De,g),Rx(Nn,p,g);const Hi=n.listen(qn,p,g);He.push(g,Hi),ie&&ie.push(p,Pn,lr,lr+1)}}else g=Lx(l,t,De,g);const Ft=l.outputs;let nn;if(Lt&&null!==Ft&&(nn=Ft[p])){const Nn=nn.length;if(Nn)for(let qn=0;qn-1?P(e.index,t):t,5);let I=Nx(t,n,l,g),F=p.__ngNextListenerFn__;for(;F;)I=Nx(t,n,F,g)&&I,F=F.__ngNextListenerFn__;return I}}function Px(e=1){return function Qn(e){return(Wr.lFrame.contextLView=function fr(e,t){for(;e>0;)t=t[ja],e--;return t}(e,Wr.lFrame.contextLView))[Fr]}(e)}function Dk(e,t){let n=null;const l=function hb(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 qx(e=1){Wt(It()+e)}function Jx(e){return K(function Sa(){return Wr.lFrame.contextLView}(),rt+e)}function cC(e,t=""){const n=xn(),l=gi(),p=e+rt,g=l.firstCreatePass?od(l,p,1,t,null):l.data[p],E=uC(l,n,g,t,e);n[p]=E,Mi()&&ep(l,n,E,g),ps(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 kv("",e,""),F0}function kv(e,t,n){const l=xn(),p=pp(l,e,t,n);return p!==Ri&&function ad(e,t,n){const l=Tr(t,e);!function w_(e,t,n){e.setValue(t,n)}(e[Rr],l,n)}(l,ir(),p),kv}function B0(e,t,n){R1(t)&&(t=t());const l=xn();return Ws(l,Ha(),t)&&xo(gi(),ur(),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=xn(),l=gi(),p=Ti();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(ti(e)||!e.multi){const Ft=new Ss(ie,p,id),nn=V0(F,t,p?De:De+Lt,He);-1===nn?(dh(fu(I,E),g,F),j0(g,e,t.length),t.push(F),I.directiveStart++,I.directiveEnd++,p&&(I.providerIndexes+=1048576),n.push(Ft),E.push(Ft)):(n[nn]=Ft,E[nn]=Ft)}else{const Ft=V0(F,t,De+Lt,He),nn=V0(F,t,De,De+Lt),qn=nn>=0&&n[nn];if(p&&!qn||!p&&!(Ft>=0&&n[Ft])){dh(fu(I,E),g,F);const lr=function Wk(e,t,n,l,p){const g=new Ss(e,n,id);return g.multi=[],g.index=t,g.componentProviders=0,EC(g,p,l&&!n),g}(p?Hk:Vk,n.length,p,l,ie);!p&&qn&&(n[nn].providerFactory=lr),j0(g,e,t.length,0),t.push(F),I.directiveStart++,I.directiveEnd++,p&&(I.providerIndexes+=1048576),n.push(lr),E.push(lr)}else j0(g,e,Ft>-1?Ft:nn,EC(n[p?nn:Ft],ie,!p&&l));!p&&l&&qn&&n[nn].componentProviders++}}}function j0(e,t,n,l){const p=ti(t),g=function So(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 De=ie.indexOf(n);-1===De?ie.push(n,[l,F]):ie[De+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 jk(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=$s()+e,p=xn();return p[l]===Ri?Iu(p,l,n?t.call(n):t()):Ym(p,l)}function SC(e,t,n,l){return IC(xn(),$s(),e,t,n,l)}function AC(e,t,n,l,p){return OC(xn(),$s(),e,t,n,l,p)}function TC(e,t,n,l,p,g){return function RC(e,t,n,l,p,g,E,I){const F=t+n;return function fv(e,t,n,l,p){const g=nf(e,t,n,l);return Ws(e,t+2,p)||g}(e,F,p,g,E)?Iu(e,F+3,I?l.call(I,p,g,E):l(p,g,E)):sg(e,F+3)}(xn(),$s(),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,I,F){const ie=t+n;return Pc(e,ie,p,g,E,I)?Iu(e,ie+4,F?l.call(F,p,g,E,I):l(p,g,E,I)):sg(e,ie+4)}(xn(),$s(),e,t,n,l,p,g,E)}function kC(e,t,n,l,p,g,E,I,F,ie,De){const He=$s()+e,Lt=xn(),Ft=Pc(Lt,He,n,l,p,g);return Pc(Lt,He+4,E,I,F,ie)||Ft?Iu(Lt,He+8,De?t.call(De,n,l,p,g,E,I,F,ie):t(n,l,p,g,E,I,F,ie)):Ym(Lt,He+8)}function sg(e,t){const n=e[t];return n===Ri?void 0:n}function IC(e,t,n,l,p,g){const E=t+n;return Ws(e,E,p)?Iu(e,E+1,g?l.call(g,p):l(p)):sg(e,E+1)}function OC(e,t,n,l,p,g,E){const I=t+n;return nf(e,I,p,g)?Iu(e,I+2,E?l.call(E,p,g):l(p,g)):sg(e,I+2)}function PC(e,t){const n=gi();let l;const p=e+rt;n.firstCreatePass?(l=function qk(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)),I=wo(id);try{const F=pd(!1),ie=g();return pd(F),function P0(e,t,n,l){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=l}(n,xn(),p,ie),ie}finally{wo(I)}}function FC(e,t,n){const l=e+rt,p=xn(),g=K(p,l);return ag(p,l)?IC(p,$s(),t,g.transform,n,g):g.transform(n)}function BC(e,t,n,l){const p=e+rt,g=xn(),E=K(g,p);return ag(g,p)?OC(g,$s(),t,E.transform,n,l,E):E.transform(n,l)}function ag(e,t){return e[Gn].data[t].pure}function UC(e,t){return J_(e,t)}class t2{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 TI{ngModuleFactory;componentFactories;constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let MI=(()=>{class e{compileModuleSync(n){return new Yb(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const l=this.compileModuleSync(n),g=jl(Or(n).declarations).reduce((E,I)=>{const F=Dr(I);return F&&E.push(new Gm(F)),E},[]);return new TI(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})(),OI=(()=>{class e{zone=tr(Vo);changeDetectionScheduler=tr(Pl);applicationRef=tr(Fc);_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:cr,multi:!0,useFactory:()=>{const l=tr(OI,{optional:!0});return()=>l.initialize()}},{provide:cr,multi:!0,useFactory:()=>{const l=tr(NI);return()=>{l.initialize()}}},!0===t?{provide:Ef,useValue:!0}:[],{provide:yu,useValue:n??yh}]}function Q0(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}let NI=(()=>{class e{subscription=new en.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})(),cg=(()=>{class e{appRef=tr(Fc);taskService=tr(il);ngZone=tr(Vo);zonelessEnabled=tr(zu);tracing=tr(Ph,{optional:!0});disableScheduling=tr(Ef,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new en.yU;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Yc):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(tr(yu,{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 xd||!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?Ku:wd;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(Yc+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,Ku(()=>{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 LI(){return typeof $localize<"u"&&$localize.locale||Sv}()}),PI=new ct("",{providedIn:"root",factory:()=>"USD"}),Rv=new ct("");function Nv(e){return!e.moduleRef}let ih=null;function zI(){return!1}let h2=(()=>class e{static __NG_ELEMENT_ID__=KI})();function KI(e){return function GI(e,t,n){if(Wo(e)&&!n){const l=P(e.index,t);return new Pm(l,l)}return 175&e.type?new Pm(t[ro],t):null}(Ti(),xn(),!(16&~e))}class g2{constructor(){}supports(t){return hv(t)}create(t){return new qI(t)}}const ZI=(e,t)=>t;class qI{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||ZI}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{E=this._trackByFn(p,I),null!==n&&Object.is(n.trackById,E)?(l&&(n=this._verifyReinsertion(n,I,E,p)),Object.is(n.item,I)||this._addIdentityChange(n,I)):(n=this._mismatch(n,I,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 JI(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 _2),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 _2),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 JI{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 _2{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 v2(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 b2(){return new iw([new g2])}let iw=(()=>{class e{factories;static \u0275prov=oi({token:e,providedIn:"root",factory:b2});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||b2()),deps:[[e,new Qo,new na]]}}find(n){const l=this.factories.find(p=>p.supports(n));if(null!=l)return l;throw new Xt(901,!1)}}return e})();function w2(){return new ow([new y2])}let ow=(()=>{class e{static \u0275prov=oi({token:e,providedIn:"root",factory:w2});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||w2()),deps:[[e,new Qo,new na]]}}find(n){const l=this.factories.find(p=>p.supports(n));if(l)return l;throw new Xt(901,!1)}}return e})();function gO(e){try{const{rootComponent:t,appProviders:n,platformProviders:l}=e,p=function WI(e=[]){if(ih)return ih;const t=function c2(e=[],t){return Ts.create({name:t,providers:[{provide:qo,useValue:"platform"},{provide:Rv,useValue:new Set([()=>ih=null])},...e]})}(e);return ih=t,function SE(){!function wt(e){En=e}(()=>{throw new Xt(600,!1)})}(),function u2(e){const t=e.get(Hs,null);$a(e,()=>{t?.forEach(n=>n())})}(t),t}(l),g=[Y0({}),{provide:Pl,useExisting:cg},...n||[]];return function s2(e){const t=Nv(e)?e.r3Injector:e.moduleRef.injector,n=t.get(Vo);return n.run(()=>{Nv(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();const l=t.get(Mc,null);let p;if(n.runOutsideAngular(()=>{p=n.onError.subscribe({next:g=>{l.handleError(g)}})}),Nv(e)){const g=()=>t.destroy(),E=e.platformInjector.get(Rv);E.add(g),t.onDestroy(()=>{p.unsubscribe(),E.delete(g)})}else{const g=()=>e.moduleRef.destroy(),E=e.platformInjector.get(Rv);E.add(g),e.moduleRef.onDestroy(()=>{vv(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,Sv)||Sv),Nv(e)){const I=t.get(Fc);return void 0!==e.rootComponent&&I.bootstrap(e.rootComponent),I}return function jI(e,t){const n=e.injector.get(Fc);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(l=>n.bootstrap(l));else{if(!e.instance.ngDoBootstrap)throw new Xt(-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){ua("NgSignals");const n=_t(e);return t?.equal&&(n[C].equal=t.equal),n}function Ap(e){const t=A(null);try{return e()}finally{A(t)}}let Y2=(()=>class e{view;node;constructor(n,l){this.view=n,this.node=l}static __NG_ELEMENT_ID__=KO})();function KO(){return new Y2(xn(),Ti())}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 qe(e,t,n){const l=Object.create(tn);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 T(){return y}())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(l.dirty=!1,l.hasRun&&!Se(l))return;l.hasRun=!0;const F=Ce(l);try{l.cleanupFn(),l.cleanupFn=Nt,l.fn(p)}finally{Ne(l,F)}},cleanup:()=>l.cleanupFn(),destroy:()=>function E(F){(function g(F){return null===F.fn&&null===F.schedule})(F)||(xe(F),F.cleanupFn(),F.fn=null,F.schedule=null,F.cleanupFn=Nt)}(l),[C]:l},l.ref}(I=>this.runEffect(I),()=>this.schedule(),E),this.unregisterOnDestroy=p?.onDestroy(()=>this.destroy())}runEffect(t){try{this.effectFn(t)}catch(n){this.injector.get(Mc,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){ua("NgSignals"),!t?.injector&&ya();const n=t?.injector??tr(Ts),l=!0!==t?.manualCleanup?n.get(gc):null,p=new YO(n.get(XO),e,typeof Zone>"u"?null:Zone.current,l,n,t?.allowSignalWrites??!1),g=n.get(h2,null,{optional:!0});return g&&8&g._lView[Ar]?(g._lView[de]??=[]).push(p.watcher.notify):p.watcher.notify(),p}(e,t);ua("NgSignals"),!t?.injector&&ya();const n=t?.injector??tr(Ts);let p,l=!0!==t?.manualCleanup?n.get(gc):null;const g=n.get(Y2,null,{optional:!0}),E=n.get(Pl);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 Q2={...R,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,hasRun:!1,cleanupFns:void 0,zone:null,onDestroyFn:bu,run(){if(this.dirty=!1,this.hasRun&&!Se(this))return;this.hasRun=!0;const e=l=>(this.cleanupFns??=[]).push(l),t=Ce(this),n=qs(!1);try{this.maybeCleanup(),this.fn(e)}finally{qs(n),Ne(this,t)}},maybeCleanup(){if(this.cleanupFns?.length)try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[]}}},JO={...Q2,consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(13)},destroy(){xe(this),this.onDestroyFn(),this.maybeCleanup()}},eR={...Q2,consumerMarkedDirty(){this.view[Ar]|=8192,io(this.view),this.notifier.notify(14)},destroy(){xe(this),this.onDestroyFn(),this.maybeCleanup(),this.view[q]?.delete(this)}};function uR(e,t){const n=Dr(e),l=t.elementInjector||El();return new Gm(n).create(l,t.projectableNodes,t.hostElement,t.environmentInjector)}function dR(e){const t=Dr(e);if(!t)return null;const n=new Gm(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}}}},936:(o,s,r)=>{"use strict";r.d(s,{BC:()=>an,JD:()=>tr,Q0:()=>pa,X1:()=>va,YN:()=>Qa,cV:()=>On,cb:()=>Yn,cz:()=>Te,hs:()=>Ir,j4:()=>us,k0:()=>Se,kq:()=>T,l_:()=>rs,me:()=>we,ok:()=>lo,qT:()=>Sr,tU:()=>Fn,vO:()=>pn,vS:()=>ea,xq:()=>Ya,ze:()=>Oo});var i=r(3107),a=r(4460),c=r(1787),y=r(2653),w=r(8447),C=r(7947);let A=(()=>{class ue{_renderer;_elementRef;onChange=Q=>{};onTouched=()=>{};constructor(Q,Pe){this._renderer=Q,this._elementRef=Pe}setProperty(Q,Pe){this._renderer.setProperty(this._elementRef.nativeElement,Q,Pe)}registerOnTouched(Q){this.onTouched=Q}registerOnChange(Q){this.onChange=Q}setDisabledState(Q){this.setProperty("disabled",Q)}static \u0275fac=function(Pe){return new(Pe||ue)(i.rXU(i.sFG),i.rXU(i.aKT))};static \u0275dir=i.FsC({type:ue})}return ue})(),S=(()=>{class ue extends A{static \u0275fac=(()=>{let Q;return function(jt){return(Q||(Q=i.xGo(ue)))(jt||ue)}})();static \u0275dir=i.FsC({type:ue,features:[i.Vt3]})}return ue})();const T=new i.nKC(""),G={provide:T,useExisting:(0,i.Rfq)(()=>we),multi:!0},te=new i.nKC("");let we=(()=>{class ue extends A{_compositionMode;_composing=!1;constructor(Q,Pe,jt){super(Q,Pe),this._compositionMode=jt,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(Pe){return new(Pe||ue)(i.rXU(i.sFG),i.rXU(i.aKT),i.rXU(te,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(Pe,jt){1&Pe&&i.bIt("input",function(ti){return jt._handleInput(ti.target.value)})("blur",function(){return jt.onTouched()})("compositionstart",function(){return jt._compositionStart()})("compositionend",function(ti){return jt._compositionEnd(ti.target.value)})},standalone:!1,features:[i.Jv_([G]),i.Vt3]})}return ue})();function _e(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(""),Ce=new i.nKC(""),Ne=/^(?=.{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 Se{static min(ce){return function xe(ue){return ce=>{if(_e(ce.value)||_e(ue))return null;const Q=parseFloat(ce.value);return!isNaN(Q)&&Q{if(_e(ce.value)||_e(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 le(ce)}static requiredTrue(ce){return ke(ce)}static email(ce){return function Ue(ue){return _e(ue.value)||Ne.test(ue.value)?null:{email:!0}}(ce)}static minLength(ce){return function st(ue){return ce=>_e(ce.value)||!pe(ce.value)?null:ce.value.length{if(_e(Pe.value))return null;const jt=Pe.value;return ce.test(jt)?null:{pattern:{requiredPattern:Q,actualValue:jt}}}}(ce)}static nullValidator(ce){return null}static compose(ce){return wt(ce)}static composeAsync(ce){return Be(ce)}}function le(ue){return _e(ue.value)?{required:!0}:null}function ke(ue){return!0===ue.value?null:{required:!0}}function ft(ue){return ce=>pe(ce.value)&&ce.value.length>ue?{maxlength:{requiredLength:ue,actualLength:ce.value.length}}:null}function ot(ue){return null}function Yt(ue){return null!=ue}function un(ue){return(0,i.jNT)(ue)?(0,c.H)(ue):ue}function wn(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 Ze(ue){return ue.map(ce=>function En(ue){return!ue.validate}(ce)?ce:Q=>ce.validate(Q))}function wt(ue){if(!ue)return null;const ce=ue.filter(Yt);return 0==ce.length?null:function(Q){return wn($n(Q,ce))}}function ze(ue){return null!=ue?wt(Ze(ue)):null}function Be(ue){if(!ue)return null;const ce=ue.filter(Yt);return 0==ce.length?null:function(Q){const Pe=$n(Q,ce).map(un);return(0,y.p)(Pe).pipe((0,C.T)(wn))}}function Ut(ue){return null!=ue?Be(Ze(ue)):null}function Ke(ue,ce){return null===ue?[ce]:Array.isArray(ue)?[...ue,ce]:[ue,ce]}function lt(ue){return ue._rawValidators}function Xe(ue){return ue._rawAsyncValidators}function Ge(ue){return ue?Array.isArray(ue)?ue:[ue]:[]}function pt(ue,ce){return Array.isArray(ue)?ue.includes(ce):ue===ce}function se(ue,ce){const Q=Ge(ce);return Ge(ue).forEach(jt=>{pt(Q,jt)||Q.push(jt)}),Q}function qe(ue,ce){return Ge(ce).filter(Q=>!pt(ue,Q))}class Nt{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=Ut(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 tn extends Nt{name;get formDirective(){return null}get path(){return null}}class pn extends Nt{_parent=null;name=null;valueAccessor=null}class Wn{_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 Wn{constructor(Q){super(Q)}static \u0275fac=function(Pe){return new(Pe||ue)(i.rXU(pn,2))};static \u0275dir=i.FsC({type:ue,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(Pe,jt){2&Pe&&i.AVh("ng-untouched",jt.isUntouched)("ng-touched",jt.isTouched)("ng-pristine",jt.isPristine)("ng-dirty",jt.isDirty)("ng-valid",jt.isValid)("ng-invalid",jt.isInvalid)("ng-pending",jt.isPending)},standalone:!1,features:[i.Vt3]})}return ue})(),Yn=(()=>{class ue extends Wn{constructor(Q){super(Q)}static \u0275fac=function(Pe){return new(Pe||ue)(i.rXU(tn,10))};static \u0275dir=i.FsC({type:ue,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(Pe,jt){2&Pe&&i.AVh("ng-untouched",jt.isUntouched)("ng-touched",jt.isTouched)("ng-pristine",jt.isPristine)("ng-dirty",jt.isDirty)("ng-valid",jt.isValid)("ng-invalid",jt.isInvalid)("ng-pending",jt.isPending)("ng-submitted",jt.isSubmitted)},standalone:!1,features:[i.Vt3]})}return ue})();const In="VALID",Bn="INVALID",Hn="PENDING",xr="DISABLED";class ei{}class Xr extends ei{value;source;constructor(ce,Q){super(),this.value=ce,this.source=Q}}class vt extends ei{pristine;source;constructor(ce,Q){super(),this.pristine=ce,this.source=Q}}class $t extends ei{touched;source;constructor(ce,Q){super(),this.touched=ce,this.source=Q}}class Ee extends ei{status;source;constructor(ce,Q){super(),this.status=ce,this.source=Q}}class at extends ei{source;constructor(ce){super(),this.source=ce}}class Fe extends ei{source;constructor(ce){super(),this.source=ce}}function Rt(ue){return(or(ue)?ue.validators:ue)||null}function Bt(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 Pe=ue.controls;if(!(ce?Object.keys(Pe):Pe).length)throw new i.wOt(1e3,"");if(!Pe[Q])throw new i.wOt(1001,"")}function ii(ue,ce,Q){ue._forEachChild((Pe,jt)=>{if(void 0===Q[jt])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===In}get invalid(){return this.status===Bn}get pending(){return this.status==Hn}get disabled(){return this.status===xr}get enabled(){return this.status!==xr}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(qe(ce,this._rawValidators))}removeAsyncValidators(ce){this.setAsyncValidators(qe(ce,this._rawAsyncValidators))}hasValidator(ce){return pt(this._rawValidators,ce)}hasAsyncValidator(ce){return pt(this._rawAsyncValidators,ce)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(ce={}){const Q=!1===this.touched;this.touched=!0;const Pe=ce.sourceControl??this;this._parent&&!ce.onlySelf&&this._parent.markAsTouched({...ce,sourceControl:Pe}),Q&&!1!==ce.emitEvent&&this._events.next(new $t(!0,Pe))}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 Pe=ce.sourceControl??this;this._forEachChild(jt=>{jt.markAsUntouched({onlySelf:!0,emitEvent:ce.emitEvent,sourceControl:Pe})}),this._parent&&!ce.onlySelf&&this._parent._updateTouched(ce,Pe),Q&&!1!==ce.emitEvent&&this._events.next(new $t(!1,Pe))}markAsDirty(ce={}){const Q=!0===this.pristine;this.pristine=!1;const Pe=ce.sourceControl??this;this._parent&&!ce.onlySelf&&this._parent.markAsDirty({...ce,sourceControl:Pe}),Q&&!1!==ce.emitEvent&&this._events.next(new vt(!1,Pe))}markAsPristine(ce={}){const Q=!1===this.pristine;this.pristine=!0,this._pendingDirty=!1;const Pe=ce.sourceControl??this;this._forEachChild(jt=>{jt.markAsPristine({onlySelf:!0,emitEvent:ce.emitEvent})}),this._parent&&!ce.onlySelf&&this._parent._updatePristine(ce,Pe),Q&&!1!==ce.emitEvent&&this._events.next(new vt(!0,Pe))}markAsPending(ce={}){this.status=Hn;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=xr,this.errors=null,this._forEachChild(jt=>{jt.disable({...ce,onlySelf:!0})}),this._updateValue();const Pe=ce.sourceControl??this;!1!==ce.emitEvent&&(this._events.next(new Xr(this.value,Pe)),this._events.next(new Ee(this.status,Pe)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...ce,skipPristineCheck:Q},this),this._onDisabledChange.forEach(jt=>jt(!0))}enable(ce={}){const Q=this._parentMarkedDirty(ce.onlySelf);this.status=In,this._forEachChild(Pe=>{Pe.enable({...ce,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:ce.emitEvent}),this._updateAncestors({...ce,skipPristineCheck:Q},this),this._onDisabledChange.forEach(Pe=>Pe(!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 Pe=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===In||this.status===Hn)&&this._runAsyncValidator(Pe,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()?xr:In}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(ce,Q){if(this.asyncValidator){this.status=Hn,this._hasOwnPendingAsyncValidator={emitEvent:!1!==Q};const Pe=un(this.asyncValidator(this));this._asyncValidationSubscription=Pe.subscribe(jt=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(jt,{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((Pe,jt)=>Pe&&Pe._find(jt),this)}getError(ce,Q){const Pe=Q?this.get(Q):this;return Pe&&Pe.errors?Pe.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,Pe){this.status=this._calculateStatus(),ce&&this.statusChanges.emit(this.status),(ce||Pe)&&this._events.next(new Ee(this.status,Q)),this._parent&&this._parent._updateControlsErrors(ce,Q,Pe)}_initObservables(){this.valueChanges=new i.bkB,this.statusChanges=new i.bkB}_calculateStatus(){return this._allControlsDisabled()?xr:this.errors?Bn:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Hn)?Hn:this._anyControlsHaveStatus(Bn)?Bn:In}_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 Pe=!this._anyControlsDirty(),jt=this.pristine!==Pe;this.pristine=Pe,this._parent&&!ce.onlySelf&&this._parent._updatePristine(ce,Q),jt&&this._events.next(new vt(this.pristine,Q))}_updateTouched(ce={},Q){this.touched=this._anyControlsTouched(),this._events.next(new $t(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 dt(ue){return Array.isArray(ue)?ze(ue):ue||null}(this._rawValidators)}_assignAsyncValidators(ce){this._rawAsyncValidators=Array.isArray(ce)?ce.slice():ce,this._composedAsyncValidatorFn=function _n(ue){return Array.isArray(ue)?Ut(ue):ue||null}(this._rawAsyncValidators)}}class Si extends ci{constructor(ce,Q,Pe){super(Rt(Q),Bt(Pe,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,Pe={}){this.registerControl(ce,Q),this.updateValueAndValidity({emitEvent:Pe.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,Pe={}){this.controls[ce]&&this.controls[ce]._registerOnCollectionChange(()=>{}),delete this.controls[ce],Q&&this.registerControl(ce,Q),this.updateValueAndValidity({emitEvent:Pe.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(Pe=>{Mr(this,!0,Pe),this.controls[Pe].setValue(ce[Pe],{onlySelf:!0,emitEvent:Q.emitEvent})}),this.updateValueAndValidity(Q)}patchValue(ce,Q={}){null!=ce&&(Object.keys(ce).forEach(Pe=>{const jt=this.controls[Pe];jt&&jt.patchValue(ce[Pe],{onlySelf:!0,emitEvent:Q.emitEvent})}),this.updateValueAndValidity(Q))}reset(ce={},Q={}){this._forEachChild((Pe,jt)=>{Pe.reset(ce?ce[jt]:null,{onlySelf:!0,emitEvent:Q.emitEvent})}),this._updatePristine(Q,this),this._updateTouched(Q,this),this.updateValueAndValidity(Q)}getRawValue(){return this._reduceChildren({},(ce,Q,Pe)=>(ce[Pe]=Q.getRawValue(),ce))}_syncPendingControls(){let ce=this._reduceChildren(!1,(Q,Pe)=>!!Pe._syncPendingControls()||Q);return ce&&this.updateValueAndValidity({onlySelf:!0}),ce}_forEachChild(ce){Object.keys(this.controls).forEach(Q=>{const Pe=this.controls[Q];Pe&&ce(Pe,Q)})}_setUpControls(){this._forEachChild(ce=>{ce.setParent(this),ce._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(ce){for(const[Q,Pe]of Object.entries(this.controls))if(this.contains(Q)&&ce(Pe))return!0;return!1}_reduceValue(){return this._reduceChildren({},(Q,Pe,jt)=>((Pe.enabled||this.disabled)&&(Q[jt]=Pe.value),Q))}_reduceChildren(ce,Q){let Pe=ce;return this._forEachChild((jt,gr)=>{Pe=Q(Pe,jt,gr)}),Pe}_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 St extends Si{}const zn=new i.nKC("CallSetDisabledState",{providedIn:"root",factory:()=>hr}),hr="always";function ho(ue,ce){return[...ce.path,ue]}function Ii(ue,ce,Q=hr){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&&Ms(ue,ce)})}(ue,ce),function eo(ue,ce){const Q=(Pe,jt)=>{ce.valueAccessor.writeValue(Pe),jt&&ce.viewToModelUpdate(Pe)};ue.registerOnChange(Q),ce._registerOnDestroy(()=>{ue._unregisterOnChange(Q)})}(ue,ce),function Do(ue,ce){ce.valueAccessor.registerOnTouched(()=>{ue._pendingTouched=!0,"blur"===ue.updateOn&&ue._pendingChange&&Ms(ue,ce),"submit"!==ue.updateOn&&ue.markAsTouched()})}(ue,ce),function ns(ue,ce){if(ce.valueAccessor.setDisabledState){const Q=Pe=>{ce.valueAccessor.setDisabledState(Pe)};ue.registerOnDisabledChange(Q),ce._registerOnDestroy(()=>{ue._unregisterOnDisabledChange(Q)})}}(ue,ce)}function Uo(ue,ce,Q=!0){const Pe=()=>{};ce.valueAccessor&&(ce.valueAccessor.registerOnChange(Pe),ce.valueAccessor.registerOnTouched(Pe)),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=lt(ue);null!==ce.validator?ue.setValidators(Ke(Q,ce.validator)):"function"==typeof Q&&ue.setValidators([Q]);const Pe=Xe(ue);null!==ce.asyncValidator?ue.setAsyncValidators(Ke(Pe,ce.asyncValidator)):"function"==typeof Pe&&ue.setAsyncValidators([Pe]);const jt=()=>ue.updateValueAndValidity();oi(ce._rawValidators,jt),oi(ce._rawAsyncValidators,jt)}function bo(ue,ce){let Q=!1;if(null!==ue){if(null!==ce.validator){const jt=lt(ue);if(Array.isArray(jt)&&jt.length>0){const gr=jt.filter(ti=>ti!==ce.validator);gr.length!==jt.length&&(Q=!0,ue.setValidators(gr))}}if(null!==ce.asyncValidator){const jt=Xe(ue);if(Array.isArray(jt)&&jt.length>0){const gr=jt.filter(ti=>ti!==ce.asyncValidator);gr.length!==jt.length&&(Q=!0,ue.setAsyncValidators(gr))}}}const Pe=()=>{};return oi(ce._rawValidators,Pe),oi(ce._rawAsyncValidators,Pe),Q}function Ms(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 tt(ue,ce){if(!ue.hasOwnProperty("model"))return!1;const Q=ue.model;return!!Q.isFirstChange()||!Object.is(ce,Q.currentValue)}function ht(ue,ce){ue._syncPendingControls(),ce.forEach(Q=>{const Pe=Q.control;"submit"===Pe.updateOn&&Pe._pendingChange&&(Q.viewToModelUpdate(Pe._pendingValue),Pe._pendingChange=!1)})}function Vt(ue,ce){if(!ce)return null;let Q,Pe,jt;return Array.isArray(ce),ce.forEach(gr=>{gr.constructor===we?Q=gr:function Oe(ue){return Object.getPrototypeOf(ue.constructor)===S}(gr)?Pe=gr:jt=gr}),jt||Pe||Q||null}const Cn={provide:tn,useExisting:(0,i.Rfq)(()=>On)},An=Promise.resolve();let On=(()=>{class ue extends tn{callSetDisabledState;get submitted(){return(0,i.O8t)(this.submittedReactive)}_submitted=(0,i.EWP)(()=>this.submittedReactive());submittedReactive=(0,i.vPA)(!1);_directives=new Set;form;ngSubmit=new i.bkB;options;constructor(Q,Pe,jt){super(),this.callSetDisabledState=jt,this.form=new Si({},ze(Q),Ut(Pe))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(Q){An.then(()=>{const Pe=this._findContainer(Q.path);Q.control=Pe.registerControl(Q.name,Q.control),Ii(Q.control,Q,this.callSetDisabledState),Q.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(Q)})}getControl(Q){return this.form.get(Q.path)}removeControl(Q){An.then(()=>{const Pe=this._findContainer(Q.path);Pe&&Pe.removeControl(Q.name),this._directives.delete(Q)})}addFormGroup(Q){An.then(()=>{const Pe=this._findContainer(Q.path),jt=new Si({});oo(jt,Q),Pe.registerControl(Q.name,jt),jt.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(Q){An.then(()=>{const Pe=this._findContainer(Q.path);Pe&&Pe.removeControl(Q.name)})}getFormGroup(Q){return this.form.get(Q.path)}updateModel(Q,Pe){An.then(()=>{this.form.get(Q.path).setValue(Pe)})}setValue(Q){this.control.setValue(Q)}onSubmit(Q){return this.submittedReactive.set(!0),ht(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(Pe){return new(Pe||ue)(i.rXU(Te,10),i.rXU(Ce,10),i.rXU(zn,8))};static \u0275dir=i.FsC({type:ue,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(Pe,jt){1&Pe&&i.bIt("submit",function(ti){return jt.onSubmit(ti)})("reset",function(){return jt.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,Pe){super(Rt(Q),Bt(Pe,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(Pe=>Pe(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}},Ir=sr,cs={provide:pn,useExisting:(0,i.Rfq)(()=>ea)},ws=Promise.resolve();let ea=(()=>{class ue extends pn{_changeDetectorRef;callSetDisabledState;control=new sr;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new i.bkB;constructor(Q,Pe,jt,gr,ti,So){super(),this._changeDetectorRef=ti,this.callSetDisabledState=So,this._parent=Q,this._setValidators(Pe),this._setAsyncValidators(jt),this.valueAccessor=Vt(0,gr)}ngOnChanges(Q){if(this._checkForErrors(),!this._registered||"name"in Q){if(this._registered&&(this._checkName(),this.formDirective)){const Pe=Q.name.previousValue;this.formDirective.removeControl({name:Pe,path:this._getPath(Pe)})}this._setUpControl()}"isDisabled"in Q&&this._updateDisabled(Q),tt(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(){Ii(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 Pe=Q.isDisabled.currentValue,jt=0!==Pe&&(0,i.L39)(Pe);ws.then(()=>{jt&&!this.control.disabled?this.control.disable():!jt&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(Q){return this._parent?ho(Q,this._parent):[Q]}static \u0275fac=function(Pe){return new(Pe||ue)(i.rXU(tn,9),i.rXU(Te,10),i.rXU(Ce,10),i.rXU(T,10),i.rXU(i.gRc,8),i.rXU(zn,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(Pe){return new(Pe||ue)};static \u0275dir=i.FsC({type:ue,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return ue})();const ta={provide:T,useExisting:(0,i.Rfq)(()=>pa),multi:!0};let pa=(()=>{class ue extends S{writeValue(Q){this.setProperty("value",Q??"")}registerOnChange(Q){this.onChange=Pe=>{Q(""==Pe?null:parseFloat(Pe))}}static \u0275fac=(()=>{let Q;return function(jt){return(Q||(Q=i.xGo(ue)))(jt||ue)}})();static \u0275dir=i.FsC({type:ue,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(Pe,jt){1&Pe&&i.bIt("input",function(ti){return jt.onChange(ti.target.value)})("blur",function(){return jt.onTouched()})},standalone:!1,features:[i.Jv_([ta]),i.Vt3]})}return ue})();const Ni=new i.nKC(""),Ps={provide:pn,useExisting:(0,i.Rfq)(()=>rs)};let rs=(()=>{class ue extends pn{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(Q){}model;update=new i.bkB;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(Q,Pe,jt,gr,ti){super(),this._ngModelWarningConfig=gr,this.callSetDisabledState=ti,this._setValidators(Q),this._setAsyncValidators(Pe),this.valueAccessor=Vt(0,jt)}ngOnChanges(Q){if(this._isControlChanged(Q)){const Pe=Q.form.previousValue;Pe&&Uo(Pe,this,!1),Ii(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}tt(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(Pe){return new(Pe||ue)(i.rXU(Te,10),i.rXU(Ce,10),i.rXU(T,10),i.rXU(Ni,8),i.rXU(zn,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_([Ps]),i.Vt3,i.OA$]})}return ue})();const qr={provide:tn,useExisting:(0,i.Rfq)(()=>us)};let us=(()=>{class ue extends tn{callSetDisabledState;get submitted(){return(0,i.O8t)(this._submittedReactive)}set submitted(Q){this._submittedReactive.set(Q)}_submitted=(0,i.EWP)(()=>this._submittedReactive());_submittedReactive=(0,i.vPA)(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];form=null;ngSubmit=new i.bkB;constructor(Q,Pe,jt){super(),this.callSetDisabledState=jt,this._setValidators(Q),this._setAsyncValidators(Pe)}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 Pe=this.form.get(Q.path);return Ii(Pe,Q,this.callSetDisabledState),Pe.updateValueAndValidity({emitEvent:!1}),this.directives.push(Q),Pe}getControl(Q){return this.form.get(Q.path)}removeControl(Q){Uo(Q.control||null,Q,!1),function kt(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,Pe){this.form.get(Q.path).setValue(Pe)}onSubmit(Q){return this._submittedReactive.set(!0),ht(this.form,this.directives),this.ngSubmit.emit(Q),this.form._events.next(new at(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 Fe(this.form))}_updateDomValue(){this.directives.forEach(Q=>{const Pe=Q.control,jt=this.form.get(Q.path);Pe!==jt&&(Uo(Pe||null,Q),(ue=>ue instanceof sr)(jt)&&(Ii(jt,Q,this.callSetDisabledState),Q.control=jt))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(Q){const Pe=this.form.get(Q.path);oo(Pe,Q),Pe.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(Q){if(this.form){const Pe=this.form.get(Q.path);Pe&&function Bi(ue,ce){return bo(ue,ce)}(Pe,Q)&&Pe.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(Pe){return new(Pe||ue)(i.rXU(Te,10),i.rXU(Ce,10),i.rXU(zn,8))};static \u0275dir=i.FsC({type:ue,selectors:[["","formGroup",""]],hostBindings:function(Pe,jt){1&Pe&&i.bIt("submit",function(ti){return jt.onSubmit(ti)})("reset",function(){return jt.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[i.Jv_([qr]),i.Vt3,i.OA$]})}return ue})();const ma={provide:pn,useExisting:(0,i.Rfq)(()=>tr)};let tr=(()=>{class ue extends pn{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(Q){}model;update=new i.bkB;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(Q,Pe,jt,gr,ti){super(),this._ngModelWarningConfig=ti,this._parent=Q,this._setValidators(Pe),this._setAsyncValidators(jt),this.valueAccessor=Vt(0,gr)}ngOnChanges(Q){this._added||this._setUpControl(),tt(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 ho(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(Pe){return new(Pe||ue)(i.rXU(tn,13),i.rXU(Te,10),i.rXU(Ce,10),i.rXU(T,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_([ma]),i.Vt3,i.OA$]})}return ue})();let vo=(()=>{class ue{_validator=ot;_onChange;_enabled;ngOnChanges(Q){if(this.inputName in Q){const Pe=this.normalizeInput(Q[this.inputName].currentValue);this._enabled=this.enabled(Pe),this._validator=this._enabled?this.createValidator(Pe):ot,this._onChange&&this._onChange()}}validate(Q){return this._validator(Q)}registerOnValidatorChange(Q){this._onChange=Q}enabled(Q){return null!=Q}static \u0275fac=function(Pe){return new(Pe||ue)};static \u0275dir=i.FsC({type:ue,features:[i.OA$]})}return ue})();const Xs={provide:Te,useExisting:(0,i.Rfq)(()=>Xa),multi:!0},wl={provide:Te,useExisting:(0,i.Rfq)(()=>Ya),multi:!0};let Xa=(()=>{class ue extends vo{required;inputName="required";normalizeInput=i.L39;createValidator=Q=>le;enabled(Q){return Q}static \u0275fac=(()=>{let Q;return function(jt){return(Q||(Q=i.xGo(ue)))(jt||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(Pe,jt){2&Pe&&i.BMQ("required",jt._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[i.Jv_([Xs]),i.Vt3]})}return ue})(),Ya=(()=>{class ue extends Xa{createValidator=Q=>ke;static \u0275fac=(()=>{let Q;return function(jt){return(Q||(Q=i.xGo(ue)))(jt||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(Pe,jt){2&Pe&&i.BMQ("required",jt._enabled?"":null)},standalone:!1,features:[i.Jv_([wl]),i.Vt3]})}return ue})();const Et={provide:Te,useExisting:(0,i.Rfq)(()=>Fn),multi:!0};let Fn=(()=>{class ue extends vo{maxlength;inputName="maxlength";normalizeInput=Q=>function ao(ue){return"number"==typeof ue?ue:parseInt(ue,10)}(Q);createValidator=Q=>ft(Q);static \u0275fac=(()=>{let Q;return function(jt){return(Q||(Q=i.xGo(ue)))(jt||ue)}})();static \u0275dir=i.FsC({type:ue,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(Pe,jt){2&Pe&&i.BMQ("maxlength",jt._enabled?jt.maxlength:null)},inputs:{maxlength:"maxlength"},standalone:!1,features:[i.Jv_([Et]),i.Vt3]})}return ue})(),Or=(()=>{class ue{static \u0275fac=function(Pe){return new(Pe||ue)};static \u0275mod=i.$C({type:ue});static \u0275inj=i.G2t({})}return ue})();class Dr extends ci{constructor(ce,Q,Pe){super(Rt(Q),Bt(Pe,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,Pe={}){this.controls.splice(ce,0,Q),this._registerControl(Q),this.updateValueAndValidity({emitEvent:Pe.emitEvent})}removeAt(ce,Q={}){let Pe=this._adjustIndex(ce);Pe<0&&(Pe=0),this.controls[Pe]&&this.controls[Pe]._registerOnCollectionChange(()=>{}),this.controls.splice(Pe,1),this.updateValueAndValidity({emitEvent:Q.emitEvent})}setControl(ce,Q,Pe={}){let jt=this._adjustIndex(ce);jt<0&&(jt=0),this.controls[jt]&&this.controls[jt]._registerOnCollectionChange(()=>{}),this.controls.splice(jt,1),Q&&(this.controls.splice(jt,0,Q),this._registerControl(Q)),this.updateValueAndValidity({emitEvent:Pe.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(ce,Q={}){ii(this,0,ce),ce.forEach((Pe,jt)=>{Mr(this,!1,jt),this.at(jt).setValue(Pe,{onlySelf:!0,emitEvent:Q.emitEvent})}),this.updateValueAndValidity(Q)}patchValue(ce,Q={}){null!=ce&&(ce.forEach((Pe,jt)=>{this.at(jt)&&this.at(jt).patchValue(Pe,{onlySelf:!0,emitEvent:Q.emitEvent})}),this.updateValueAndValidity(Q))}reset(ce=[],Q={}){this._forEachChild((Pe,jt)=>{Pe.reset(ce[jt],{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,Pe)=>!!Pe._syncPendingControls()||Q,!1);return ce&&this.updateValueAndValidity({onlySelf:!0}),ce}_forEachChild(ce){this.controls.forEach((Q,Pe)=>{ce(Q,Pe)})}_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 fo(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,Pe=null){const jt=this._reduceControls(Q);let gr={};return fo(Pe)?gr=Pe:null!==Pe&&(gr.validators=Pe.validator,gr.asyncValidators=Pe.asyncValidator),new Si(jt,gr)}record(Q,Pe=null){const jt=this._reduceControls(Q);return new St(jt,Pe)}control(Q,Pe,jt){let gr={};return this.useNonNullable?(fo(Pe)?gr=Pe:(gr.validators=Pe,gr.asyncValidators=jt),new sr(Q,{...gr,nonNullable:!0})):new sr(Q,Pe,jt)}array(Q,Pe,jt){const gr=Q.map(ti=>this._createControl(ti));return new Dr(gr,Pe,jt)}_reduceControls(Q){const Pe={};return Object.keys(Q).forEach(jt=>{Pe[jt]=this._createControl(Q[jt])}),Pe}_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(Pe){return new(Pe||ue)};static \u0275prov=i.jDH({token:ue,factory:ue.\u0275fac,providedIn:"root"})}return ue})(),Oo=(()=>{class ue extends lo{group(Q,Pe=null){return super.group(Q,Pe)}control(Q,Pe,jt){return super.control(Q,Pe,jt)}array(Q,Pe,jt){return super.array(Q,Pe,jt)}static \u0275fac=(()=>{let Q;return function(jt){return(Q||(Q=i.xGo(ue)))(jt||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:zn,useValue:Q.callSetDisabledState??hr}]}}static \u0275fac=function(Pe){return new(Pe||ue)};static \u0275mod=i.$C({type:ue});static \u0275inj=i.G2t({imports:[Or]})}return ue})(),va=(()=>{class ue{static withConfig(Q){return{ngModule:ue,providers:[{provide:Ni,useValue:Q.warnOnNgModelWithFormControl??"always"},{provide:zn,useValue:Q.callSetDisabledState??hr}]}}static \u0275fac=function(Pe){return new(Pe||ue)};static \u0275mod=i.$C({type:ue});static \u0275inj=i.G2t({imports:[Or]})}return ue})()},9471:(o,s,r)=>{"use strict";r.d(s,{$z:()=>ae,Hl:()=>$n,iY:()=>un,pQ:()=>wn});var i=r(3107),a=r(8559),c=r(2147),y=r(2902),w=r(5467);const C=["mat-button",""],A=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],S=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],k="@media(forced-colors: active){.mat-mdc-button:not(.mdc-button--outlined),.mat-mdc-unelevated-button:not(.mdc-button--outlined),.mat-mdc-raised-button:not(.mdc-button--outlined),.mat-mdc-outlined-button:not(.mdc-button--outlined),.mat-mdc-icon-button.mat-mdc-icon-button{outline:solid 1px}}",te=["mat-icon-button",""],we=["*"],pe=new i.nKC("MAT_BUTTON_CONFIG"),Ce=[{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 Ne=(()=>{class En{_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(wt){this._disableRipple=wt,this._updateRippleDisabled()}_disableRipple=!1;get disabled(){return this._disabled}set disabled(wt){this._disabled=wt,this._updateRippleDisabled()}_disabled=!1;ariaDisabled;disabledInteractive;constructor(){(0,i.WQX)(w.l).load(y.Ah);const wt=(0,i.WQX)(pe,{optional:!0}),ze=this._elementRef.nativeElement,Be=ze.classList;this.disabledInteractive=wt?.disabledInteractive??!1,this.color=wt?.color??null,this._rippleLoader?.configureRipple(ze,{className:"mat-mdc-button-ripple"});for(const{attribute:Ut,mdcClasses:Ke}of Ce)ze.hasAttribute(Ut)&&Be.add(...Ke)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(wt="program",ze){wt?this._focusMonitor.focusVia(this._elementRef.nativeElement,wt,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||En)};static \u0275dir=i.FsC({type:En,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 En})(),xe=(()=>{class En extends Ne{tabIndex;ngOnInit(){this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)})}ngOnDestroy(){super.ngOnDestroy(),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}_haltDisabledEvents=wt=>{this.disabled&&(wt.preventDefault(),wt.stopImmediatePropagation())};_getAriaDisabled(){return null!=this.ariaDisabled?this.ariaDisabled:this.disabled||null}static \u0275fac=(()=>{let wt;return function(Be){return(wt||(wt=i.xGo(En)))(Be||En)}})();static \u0275dir=i.FsC({type:En,inputs:{tabIndex:[2,"tabIndex","tabIndex",wt=>null==wt?void 0:(0,i.Udg)(wt)]},features:[i.GFd,i.Vt3]})}return En})(),ae=(()=>{class En extends Ne{static \u0275fac=(()=>{let wt;return function(Be){return(wt||(wt=i.xGo(En)))(Be||En)}})();static \u0275cmp=i.VBU({type:En,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:14,hostBindings:function(ze,Be){2&ze&&(i.BMQ("disabled",Be._getDisabledAttribute())("aria-disabled",Be._getAriaDisabled()),i.HbH(Be.color?"mat-"+Be.color:""),i.AVh("mat-mdc-button-disabled",Be.disabled)("mat-mdc-button-disabled-interactive",Be.disabledInteractive)("_mat-animation-noopable","NoopAnimations"===Be._animationMode)("mat-unthemed",!Be.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,Be){1&ze&&(i.NAR(A),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",!Be._isFab)("mdc-fab__ripple",Be._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 En})(),un=(()=>{class En extends Ne{constructor(){super(),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static \u0275fac=function(ze){return new(ze||En)};static \u0275cmp=i.VBU({type:En,selectors:[["button","mat-icon-button",""]],hostVars:14,hostBindings:function(ze,Be){2&ze&&(i.BMQ("disabled",Be._getDisabledAttribute())("aria-disabled",Be._getAriaDisabled()),i.HbH(Be.color?"mat-"+Be.color:""),i.AVh("mat-mdc-button-disabled",Be.disabled)("mat-mdc-button-disabled-interactive",Be.disabledInteractive)("_mat-animation-noopable","NoopAnimations"===Be._animationMode)("mat-unthemed",!Be.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],features:[i.Vt3],attrs:te,ngContentSelectors:we,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,Be){1&ze&&(i.NAR(),i.nrm(0,"span",0),i.SdG(1),i.nrm(2,"span",1)(3,"span",2))},styles:['.mat-mdc-icon-button{-webkit-user-select:none;user-select:none;display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;z-index:0;overflow:visible;border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 40px);height:var(--mdc-icon-button-state-layer-size, 40px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 40px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size, 24px);color:var(--mdc-icon-button-icon-color, var(--mat-sys-on-surface-variant));-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label,.mat-mdc-icon-button .mat-icon{z-index:1;position:relative}.mat-mdc-icon-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface-variant) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display, block)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button img,.mat-mdc-icon-button svg{width:var(--mdc-icon-button-icon-size, 24px);height:var(--mdc-icon-button-icon-size, 24px);vertical-align:baseline}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button[hidden]{display:none}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',k],encapsulation:2,changeDetection:0})}return En})(),wn=(()=>{class En extends xe{static \u0275fac=(()=>{let wt;return function(Be){return(wt||(wt=i.xGo(En)))(Be||En)}})();static \u0275cmp=i.VBU({type:En,selectors:[["a","mat-icon-button",""]],hostVars:15,hostBindings:function(ze,Be){2&ze&&(i.BMQ("disabled",Be._getDisabledAttribute())("tabindex",Be.disabled&&!Be.disabledInteractive?-1:Be.tabIndex)("aria-disabled",Be._getAriaDisabled()),i.HbH(Be.color?"mat-"+Be.color:""),i.AVh("mat-mdc-button-disabled",Be.disabled)("mat-mdc-button-disabled-interactive",Be.disabledInteractive)("_mat-animation-noopable","NoopAnimations"===Be._animationMode)("mat-unthemed",!Be.color)("mat-mdc-button-base",!0))},exportAs:["matButton","matAnchor"],features:[i.Vt3],attrs:te,ngContentSelectors:we,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,Be){1&ze&&(i.NAR(),i.nrm(0,"span",0),i.SdG(1),i.nrm(2,"span",1)(3,"span",2))},styles:['.mat-mdc-icon-button{-webkit-user-select:none;user-select:none;display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;z-index:0;overflow:visible;border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 40px);height:var(--mdc-icon-button-state-layer-size, 40px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 40px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size, 24px);color:var(--mdc-icon-button-icon-color, var(--mat-sys-on-surface-variant));-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label,.mat-mdc-icon-button .mat-icon{z-index:1;position:relative}.mat-mdc-icon-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface-variant) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display, block)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button img,.mat-mdc-icon-button svg{width:var(--mdc-icon-button-icon-size, 24px);height:var(--mdc-icon-button-icon-size, 24px);vertical-align:baseline}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button[hidden]{display:none}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',k],encapsulation:2,changeDetection:0})}return En})(),$n=(()=>{class En{static \u0275fac=function(ze){return new(ze||En)};static \u0275mod=i.$C({type:En});static \u0275inj=i.G2t({imports:[y.yE,y.pZ,y.yE]})}return En})()},2902:(o,s,r)=>{"use strict";r.d(s,{Ah:()=>lt,Ej:()=>ei,Ju:()=>Ue,MI:()=>Re,MJ:()=>_t,N:()=>ae,QC:()=>L,Sy:()=>Ln,TL:()=>At,X0:()=>ke,de:()=>ot,es:()=>Ke,is:()=>W,jb:()=>mt,pZ:()=>Ie,r6:()=>Ot,tO:()=>Xr,wT:()=>bt,yE:()=>le});var i=r(3107),a=r(8559),c=r(2944),y=r(8447),w=r(2147),C=r(3022),A=r(5467),S=r(5919),T=r(4460);const G=["text"],Z=[[["mat-icon"]],"*"],te=["mat-icon","*"];function we(vt,$t){if(1&vt&&i.nrm(0,"mat-pseudo-checkbox",1),2&vt){const Ee=i.XpG();i.Y8G("disabled",Ee.disabled)("state",Ee.selected?"checked":"unchecked")}}function _e(vt,$t){if(1&vt&&i.nrm(0,"mat-pseudo-checkbox",3),2&vt){const Ee=i.XpG();i.Y8G("disabled",Ee.disabled)}}function pe(vt,$t){if(1&vt&&(i.j41(0,"span",4),i.EFF(1),i.k0s()),2&vt){const Ee=i.XpG();i.R7$(),i.SpI("(",Ee.group.label,")")}}const Te=["mat-internal-form-field",""],Ce=["*"],ae=new i.nKC("mat-sanity-checks",{providedIn:"root",factory:()=>!0});let le=(()=>{class vt{constructor(){(0,i.WQX)(a.Q_)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(at){return new(at||vt)};static \u0275mod=i.$C({type:vt});static \u0275inj=i.G2t({imports:[c.jI,c.jI]})}return vt})();class ke{_defaultMatcher;ngControl;_parentFormGroup;_parentForm;_stateChanges;errorState=!1;matcher;constructor($t,Ee,at,Fe,Rt){this._defaultMatcher=$t,this.ngControl=Ee,this._parentFormGroup=at,this._parentForm=Fe,this._stateChanges=Rt}updateErrorState(){const $t=this.errorState,Ee=this._parentFormGroup||this._parentForm,at=this.matcher||this._defaultMatcher,Fe=this.ngControl?this.ngControl.control:null,Rt=at?.isErrorState(Fe,Ee)??!1;Rt!==$t&&(this.errorState=Rt,this._stateChanges.next())}}const Ue=new i.nKC("MAT_DATE_LOCALE",{providedIn:"root",factory:function st(){return(0,i.WQX)(i.xe9)}}),ft="Method not implemented";class _t{locale;_localeChanges=new y.B;localeChanges=this._localeChanges;setTime($t,Ee,at,Fe){throw new Error(ft)}getHours($t){throw new Error(ft)}getMinutes($t){throw new Error(ft)}getSeconds($t){throw new Error(ft)}parseTime($t,Ee){throw new Error(ft)}addSeconds($t,Ee){throw new Error(ft)}getValidDateOrNull($t){return this.isDateInstance($t)&&this.isValid($t)?$t:null}deserialize($t){return null==$t||this.isDateInstance($t)&&this.isValid($t)?$t:this.invalid()}setLocale($t){this.locale=$t,this._localeChanges.next()}compareDate($t,Ee){return this.getYear($t)-this.getYear(Ee)||this.getMonth($t)-this.getMonth(Ee)||this.getDate($t)-this.getDate(Ee)}compareTime($t,Ee){return this.getHours($t)-this.getHours(Ee)||this.getMinutes($t)-this.getMinutes(Ee)||this.getSeconds($t)-this.getSeconds(Ee)}sameDate($t,Ee){if($t&&Ee){let at=this.isValid($t),Fe=this.isValid(Ee);return at&&Fe?!this.compareDate($t,Ee):at==Fe}return $t==Ee}sameTime($t,Ee){if($t&&Ee){const at=this.isValid($t),Fe=this.isValid(Ee);return at&&Fe?!this.compareTime($t,Ee):at==Fe}return $t==Ee}clampDate($t,Ee,at){return Ee&&this.compareDate($t,Ee)<0?Ee:at&&this.compareDate($t,at)>0?at:$t}}const ot=new i.nKC("mat-date-formats");let Ke=(()=>{class vt{isErrorState(Ee,at){return!!(Ee&&Ee.invalid&&(Ee.touched||at&&at.submitted))}static \u0275fac=function(at){return new(at||vt)};static \u0275prov=i.jDH({token:vt,factory:vt.\u0275fac,providedIn:"root"})}return vt})(),lt=(()=>{class vt{static \u0275fac=function(at){return new(at||vt)};static \u0275cmp=i.VBU({type:vt,selectors:[["structural-styles"]],decls:0,vars:0,template:function(at,Fe){},styles:['.mat-focus-indicator{position:relative}.mat-focus-indicator::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border-width:var(--mat-focus-indicator-border-width, 3px);border-style:var(--mat-focus-indicator-border-style, solid);border-color:var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator:focus::before{content:""}@media(forced-colors: active){html{--mat-focus-indicator-display: block}}'],encapsulation:2,changeDetection:0})}return vt})();var qe=function(vt){return vt[vt.FADING_IN=0]="FADING_IN",vt[vt.VISIBLE=1]="VISIBLE",vt[vt.FADING_OUT=2]="FADING_OUT",vt[vt.HIDDEN=3]="HIDDEN",vt}(qe||{});class Nt{_renderer;element;config;_animationForciblyDisabledThroughCss;state=qe.HIDDEN;constructor($t,Ee,at,Fe=!1){this._renderer=$t,this.element=Ee,this.config=at,this._animationForciblyDisabledThroughCss=Fe}fadeOut(){this._renderer.fadeOutRipple(this)}}const tn=(0,w.BQ)({passive:!0,capture:!0});class pn{_events=new Map;addHandler($t,Ee,at,Fe){const Rt=this._events.get(Ee);if(Rt){const dt=Rt.get(at);dt?dt.add(Fe):Rt.set(at,new Set([Fe]))}else this._events.set(Ee,new Map([[at,new Set([Fe])]])),$t.runOutsideAngular(()=>{document.addEventListener(Ee,this._delegateEventHandler,tn)})}removeHandler($t,Ee,at){const Fe=this._events.get($t);if(!Fe)return;const Rt=Fe.get(Ee);Rt&&(Rt.delete(at),0===Rt.size&&Fe.delete(Ee),0===Fe.size&&(this._events.delete($t),document.removeEventListener($t,this._delegateEventHandler,tn)))}_delegateEventHandler=$t=>{const Ee=(0,w.Fb)($t);Ee&&this._events.get($t.type)?.forEach((at,Fe)=>{(Fe===Ee||Fe.contains(Ee))&&at.forEach(Rt=>Rt.handleEvent($t))})}}const Wn={enterDuration:225,exitDuration:150},en=(0,w.BQ)({passive:!0,capture:!0}),an=["mousedown","touchstart"],Yn=["mouseup","mouseleave","touchend","touchcancel"];let Sn=(()=>{class vt{static \u0275fac=function(at){return new(at||vt)};static \u0275cmp=i.VBU({type:vt,selectors:[["ng-component"]],hostAttrs:["mat-ripple-style-loader",""],decls:0,vars:0,template:function(at,Fe){},styles:[".mat-ripple{overflow:hidden;position:relative}.mat-ripple:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded{overflow:visible}.mat-ripple-element{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0, 0, 0.2, 1);transform:scale3d(0, 0, 0);background-color:var(--mat-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface) 10%, transparent))}@media(forced-colors: active){.mat-ripple-element{display:none}}.cdk-drag-preview .mat-ripple-element,.cdk-drag-placeholder .mat-ripple-element{display:none}"],encapsulation:2,changeDetection:0})}return vt})();class Xt{_target;_ngZone;_platform;_containerElement;_triggerElement;_isPointerDown=!1;_activeRipples=new Map;_mostRecentTransientRipple;_lastTouchStartEvent;_pointerUpEventsRegistered=!1;_containerRect;static _eventManager=new pn;constructor($t,Ee,at,Fe,Rt){this._target=$t,this._ngZone=Ee,this._platform=Fe,Fe.isBrowser&&(this._containerElement=(0,C.i8)(at)),Rt&&Rt.get(A.l).load(Sn)}fadeInRipple($t,Ee,at={}){const Fe=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),Rt={...Wn,...at.animation};at.centered&&($t=Fe.left+Fe.width/2,Ee=Fe.top+Fe.height/2);const dt=at.radius||function Mt(vt,$t,Ee){const at=Math.max(Math.abs(vt-Ee.left),Math.abs(vt-Ee.right)),Fe=Math.max(Math.abs($t-Ee.top),Math.abs($t-Ee.bottom));return Math.sqrt(at*at+Fe*Fe)}($t,Ee,Fe),Bt=$t-Fe.left,_n=Ee-Fe.top,or=Rt.enterDuration,Mr=document.createElement("div");Mr.classList.add("mat-ripple-element"),Mr.style.left=Bt-dt+"px",Mr.style.top=_n-dt+"px",Mr.style.height=2*dt+"px",Mr.style.width=2*dt+"px",null!=at.color&&(Mr.style.backgroundColor=at.color),Mr.style.transitionDuration=`${or}ms`,this._containerElement.appendChild(Mr);const ii=window.getComputedStyle(Mr),Si=ii.transitionDuration,sn="none"===ii.transitionProperty||"0s"===Si||"0s, 0s"===Si||0===Fe.width&&0===Fe.height,Tt=new Nt(this,Mr,at,sn);Mr.style.transform="scale3d(1, 1, 1)",Tt.state=qe.FADING_IN,at.persistent||(this._mostRecentTransientRipple=Tt);let Je=null;return!sn&&(or||Rt.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const St=()=>{Je&&(Je.fallbackTimer=null),clearTimeout(zn),this._finishRippleTransition(Tt)},zt=()=>this._destroyRipple(Tt),zn=setTimeout(zt,or+100);Mr.addEventListener("transitionend",St),Mr.addEventListener("transitioncancel",zt),Je={onTransitionEnd:St,onTransitionCancel:zt,fallbackTimer:zn}}),this._activeRipples.set(Tt,Je),(sn||!or)&&this._finishRippleTransition(Tt),Tt}fadeOutRipple($t){if($t.state===qe.FADING_OUT||$t.state===qe.HIDDEN)return;const Ee=$t.element,at={...Wn,...$t.config.animation};Ee.style.transitionDuration=`${at.exitDuration}ms`,Ee.style.opacity="0",$t.state=qe.FADING_OUT,($t._animationForciblyDisabledThroughCss||!at.exitDuration)&&this._finishRippleTransition($t)}fadeOutAll(){this._getActiveRipples().forEach($t=>$t.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach($t=>{$t.config.persistent||$t.fadeOut()})}setupTriggerEvents($t){const Ee=(0,C.i8)($t);!this._platform.isBrowser||!Ee||Ee===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=Ee,an.forEach(at=>{Xt._eventManager.addHandler(this._ngZone,at,Ee,this)}))}handleEvent($t){"mousedown"===$t.type?this._onMousedown($t):"touchstart"===$t.type?this._onTouchStart($t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{Yn.forEach(Ee=>{this._triggerElement.addEventListener(Ee,this,en)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition($t){$t.state===qe.FADING_IN?this._startFadeOutTransition($t):$t.state===qe.FADING_OUT&&this._destroyRipple($t)}_startFadeOutTransition($t){const Ee=$t===this._mostRecentTransientRipple,{persistent:at}=$t.config;$t.state=qe.VISIBLE,!at&&(!Ee||!this._isPointerDown)&&$t.fadeOut()}_destroyRipple($t){const Ee=this._activeRipples.get($t)??null;this._activeRipples.delete($t),this._activeRipples.size||(this._containerRect=null),$t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),$t.state=qe.HIDDEN,null!==Ee&&($t.element.removeEventListener("transitionend",Ee.onTransitionEnd),$t.element.removeEventListener("transitioncancel",Ee.onTransitionCancel),null!==Ee.fallbackTimer&&clearTimeout(Ee.fallbackTimer)),$t.element.remove()}_onMousedown($t){const Ee=(0,a._G)($t),at=this._lastTouchStartEvent&&Date.now(){!$t.config.persistent&&($t.state===qe.VISIBLE||$t.config.terminateOnPointerUp&&$t.state===qe.FADING_IN)&&$t.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const $t=this._triggerElement;$t&&(an.forEach(Ee=>Xt._eventManager.removeHandler(Ee,$t,this)),this._pointerUpEventsRegistered&&(Yn.forEach(Ee=>$t.removeEventListener(Ee,this,en)),this._pointerUpEventsRegistered=!1))}}const Gt=new i.nKC("mat-ripple-global-options");let Ot=(()=>{class vt{_elementRef=(0,i.WQX)(i.aKT);_animationMode=(0,i.WQX)(i.bc$,{optional:!0});color;unbounded;centered;radius=0;animation;get disabled(){return this._disabled}set disabled(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),at=(0,i.WQX)(w.OD),Fe=(0,i.WQX)(Gt,{optional:!0}),Rt=(0,i.WQX)(i.zZn);this._globalOptions=Fe||{},this._rippleRenderer=new Xt(this,Ee,this._elementRef,at,Rt)}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,at=0,Fe){return"number"==typeof Ee?this._rippleRenderer.fadeInRipple(Ee,at,{...this.rippleConfig,...Fe}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...Ee})}static \u0275fac=function(at){return new(at||vt)};static \u0275dir=i.FsC({type:vt,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(at,Fe){2&at&&i.AVh("mat-ripple-unbounded",Fe.unbounded)},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"]})}return vt})(),Ie=(()=>{class vt{static \u0275fac=function(at){return new(at||vt)};static \u0275mod=i.$C({type:vt});static \u0275inj=i.G2t({imports:[le,le]})}return vt})(),Me=(()=>{class vt{_animationMode=(0,i.WQX)(i.bc$,{optional:!0});state="unchecked";disabled=!1;appearance="full";constructor(){}static \u0275fac=function(at){return new(at||vt)};static \u0275cmp=i.VBU({type:vt,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(at,Fe){2&at&&i.AVh("mat-pseudo-checkbox-indeterminate","indeterminate"===Fe.state)("mat-pseudo-checkbox-checked","checked"===Fe.state)("mat-pseudo-checkbox-disabled",Fe.disabled)("mat-pseudo-checkbox-minimal","minimal"===Fe.appearance)("mat-pseudo-checkbox-full","full"===Fe.appearance)("_mat-animation-noopable","NoopAnimations"===Fe._animationMode)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(at,Fe){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-minimal-pseudo-checkbox-selected-checkmark-color, var(--mat-sys-primary))}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full{border-color:var(--mat-full-pseudo-checkbox-unselected-icon-color, var(--mat-sys-on-surface-variant));border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-full-pseudo-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-full-pseudo-checkbox-selected-icon-color, var(--mat-sys-primary));border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-full-pseudo-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-full-pseudo-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-full-pseudo-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0})}return vt})(),nt=(()=>{class vt{static \u0275fac=function(at){return new(at||vt)};static \u0275mod=i.$C({type:vt});static \u0275inj=i.G2t({imports:[le]})}return vt})();const W=new i.nKC("MAT_OPTION_PARENT_COMPONENT"),L=new i.nKC("MatOptgroup");class Re{source;isUserInput;constructor($t,Ee=!1){this.source=$t,this.isUserInput=Ee}}let bt=(()=>{class vt{_element=(0,i.WQX)(i.aKT);_changeDetectorRef=(0,i.WQX)(i.gRc);_parent=(0,i.WQX)(W,{optional:!0});group=(0,i.WQX)(L,{optional:!0});_signalDisableRipple=!1;_selected=!1;_active=!1;_disabled=!1;_mostRecentViewValue="";get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}value;id=(0,i.WQX)(a.g7).getId("mat-option-");get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(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)(A.l).load(lt),(0,i.WQX)(A.l).load(A.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,at){const Fe=this._getHostElement();"function"==typeof Fe.focus&&Fe.focus(at)}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 Re(this,Ee))}static \u0275fac=function(at){return new(at||vt)};static \u0275cmp=i.VBU({type:vt,selectors:[["mat-option"]],viewQuery:function(at,Fe){if(1&at&&i.GBs(G,7),2&at){let Rt;i.mGM(Rt=i.lsd())&&(Fe._text=Rt.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(at,Fe){1&at&&i.bIt("click",function(){return Fe._selectViaInteraction()})("keydown",function(dt){return Fe._handleKeydown(dt)}),2&at&&(i.Mr5("id",Fe.id),i.BMQ("aria-selected",Fe.selected)("aria-disabled",Fe.disabled.toString()),i.AVh("mdc-list-item--selected",Fe.selected)("mat-mdc-option-multiple",Fe.multiple)("mat-mdc-option-active",Fe.active)("mdc-list-item--disabled",Fe.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",i.L39]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],features:[i.GFd],ngContentSelectors:te,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(at,Fe){1&at&&(i.NAR(Z),i.DNE(0,we,1,2,"mat-pseudo-checkbox",1),i.SdG(1),i.j41(2,"span",2,0),i.SdG(4,1),i.k0s(),i.DNE(5,_e,1,1,"mat-pseudo-checkbox",3)(6,pe,2,1,"span",4),i.nrm(7,"div",5)),2&at&&(i.vxM(Fe.multiple?0:-1),i.R7$(5),i.vxM(Fe.multiple||!Fe.selected||Fe.hideSingleSelectionIndicator?-1:5),i.R7$(),i.vxM(Fe.group&&Fe.group._inert?6:-1),i.R7$(),i.Y8G("matRippleTrigger",Fe._getHostElement())("matRippleDisabled",Fe.disabled||Fe.disableRipple))},dependencies:[Me,Ot],styles:['.mat-mdc-option{-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-option-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-option-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-option-label-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-option-label-text-tracking, var(--mat-sys-label-large-tracking));font-weight:var(--mat-option-label-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));outline:0}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color, var(--mat-sys-secondary-container))}.mat-mdc-option .mat-pseudo-checkbox{--mat-minimal-pseudo-checkbox-selected-checkmark-color: var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}@media(forced-colors: active){.mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{right:auto;left:16px}}.mat-mdc-option-multiple{--mdc-list-list-item-selected-container-color:var(--mdc-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return vt})();function mt(vt,$t,Ee){if(Ee.length){let at=$t.toArray(),Fe=Ee.toArray(),Rt=0;for(let dt=0;dtEe+at?Math.max(0,vt-at+$t):Ee}let Ln=(()=>{class vt{static \u0275fac=function(at){return new(at||vt)};static \u0275mod=i.$C({type:vt});static \u0275inj=i.G2t({imports:[Ie,le,nt]})}return vt})();const Zt={capture:!0},gn=["focus","mousedown","mouseenter","touchstart"],In="mat-ripple-loader-uninitialized",Bn="mat-ripple-loader-class-name",Hn="mat-ripple-loader-centered",xr="mat-ripple-loader-disabled";let ei=(()=>{class vt{_document=(0,i.WQX)(T.qQ,{optional:!0});_animationMode=(0,i.WQX)(i.bc$,{optional:!0});_globalRippleOptions=(0,i.WQX)(Gt,{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 gn)this._document?.addEventListener(Ee,this._onInteraction,Zt)})}ngOnDestroy(){const Ee=this._hosts.keys();for(const at of Ee)this.destroyRipple(at);for(const at of gn)this._document?.removeEventListener(at,this._onInteraction,Zt)}configureRipple(Ee,at){Ee.setAttribute(In,this._globalRippleOptions?.namespace??""),(at.className||!Ee.hasAttribute(Bn))&&Ee.setAttribute(Bn,at.className||""),at.centered&&Ee.setAttribute(Hn,""),at.disabled&&Ee.setAttribute(xr,"")}setDisabled(Ee,at){const Fe=this._hosts.get(Ee);Fe?(Fe.target.rippleDisabled=at,!at&&!Fe.hasSetUpEvents&&(Fe.hasSetUpEvents=!0,Fe.renderer.setupTriggerEvents(Ee))):at?Ee.setAttribute(xr,""):Ee.removeAttribute(xr)}_onInteraction=Ee=>{const at=(0,w.Fb)(Ee);if(at instanceof HTMLElement){const Fe=at.closest(`[${In}="${this._globalRippleOptions?.namespace??""}"]`);Fe&&this._createRipple(Fe)}};_createRipple(Ee){if(!this._document||this._hosts.has(Ee))return;Ee.querySelector(".mat-ripple")?.remove();const at=this._document.createElement("span");at.classList.add("mat-ripple",Ee.getAttribute(Bn)),Ee.append(at);const Fe="NoopAnimations"===this._animationMode,Rt=this._globalRippleOptions,dt=Fe?0:Rt?.animation?.enterDuration??Wn.enterDuration,Bt=Fe?0:Rt?.animation?.exitDuration??Wn.exitDuration,_n={rippleDisabled:Fe||Rt?.disabled||Ee.hasAttribute(xr),rippleConfig:{centered:Ee.hasAttribute(Hn),terminateOnPointerUp:Rt?.terminateOnPointerUp,animation:{enterDuration:dt,exitDuration:Bt}}},or=new Xt(_n,this._ngZone,at,this._platform,this._injector),Mr=!_n.rippleDisabled;Mr&&or.setupTriggerEvents(Ee),this._hosts.set(Ee,{target:_n,renderer:or,hasSetUpEvents:Mr}),Ee.removeAttribute(In)}destroyRipple(Ee){const at=this._hosts.get(Ee);at&&(at.renderer._removeTriggerEvents(),this._hosts.delete(Ee))}static \u0275fac=function(at){return new(at||vt)};static \u0275prov=i.jDH({token:vt,factory:vt.\u0275fac,providedIn:"root"})}return vt})(),Xr=(()=>{class vt{labelPosition;static \u0275fac=function(at){return new(at||vt)};static \u0275cmp=i.VBU({type:vt,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(at,Fe){2&at&&i.AVh("mdc-form-field--align-end","before"===Fe.labelPosition)},inputs:{labelPosition:"labelPosition"},attrs:Te,ngContentSelectors:Ce,decls:1,vars:0,template:function(at,Fe){1&at&&(i.NAR(),i.SdG(0))},styles:[".mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-flex;align-items:center;vertical-align:middle}.mat-internal-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mat-internal-form-field>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end .mdc-form-field--align-end label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0}"],encapsulation:2,changeDetection:0})}return vt})()},7544:(o,s,r)=>{"use strict";r.d(s,{Vh:()=>se,bZ:()=>Wn,E7:()=>Sn,tx:()=>Pt,Yi:()=>Yn,hM:()=>Gt,CP:()=>Ge});var i=r(9666),a=r(3107),c=r(8559),y=r(2147),w=r(6192),C=r(4460),A=r(5919),S=r(8447),T=r(6381),k=r(3016),R=r(2944),G=r(593);function Z(Me,nt){}class te{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 _e=(()=>{class Me 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)(te,{optional:!0})||new te,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(W){this._ariaLabelledByQueue.push(W),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(W){const L=this._ariaLabelledByQueue.indexOf(W);L>-1&&(this._ariaLabelledByQueue.splice(L,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal(W){this._portalOutlet.hasAttached();const L=this._portalOutlet.attachComponentPortal(W);return this._contentAttached(),L}attachTemplatePortal(W){this._portalOutlet.hasAttached();const L=this._portalOutlet.attachTemplatePortal(W);return this._contentAttached(),L}attachDomPortal=W=>{this._portalOutlet.hasAttached();const L=this._portalOutlet.attachDomPortal(W);return this._contentAttached(),L};_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(W,L){this._interactivityChecker.isFocusable(W)||(W.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const V=()=>{W.removeEventListener("blur",V),W.removeEventListener("mousedown",V),W.removeAttribute("tabindex")};W.addEventListener("blur",V),W.addEventListener("mousedown",V)})),W.focus(L)}_focusByCssSelector(W,L){let V=this._elementRef.nativeElement.querySelector(W);V&&this._forceFocus(V,L)}_trapFocus(){this._isDestroyed||(0,a.mal)(()=>{const W=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||W.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 W=this._config.restoreFocus;let L=null;if("string"==typeof W?L=this._document.querySelector(W):"boolean"==typeof W?L=W?this._elementFocusedBeforeDialogWasOpened:null:W&&(L=W),this._config.restoreFocus&&L&&"function"==typeof L.focus){const V=(0,y.vc)(),Re=this._elementRef.nativeElement;(!V||V===this._document.body||V===Re||Re.contains(V))&&(this._focusMonitor?(this._focusMonitor.focusVia(L,this._closeInteractionType),this._closeInteractionType=null):L.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const W=this._elementRef.nativeElement,L=(0,y.vc)();return W===L||W.contains(L)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,y.vc)()))}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}static \u0275fac=function(L){return new(L||Me)};static \u0275cmp=a.VBU({type:Me,selectors:[["cdk-dialog-container"]],viewQuery:function(L,V){if(1&L&&a.GBs(w.I3,7),2&L){let Re;a.mGM(Re=a.lsd())&&(V._portalOutlet=Re.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(L,V){2&L&&a.BMQ("id",V._config.id||null)("role",V._config.role)("aria-modal",V._config.ariaModal)("aria-labelledby",V._config.ariaLabel?null:V._ariaLabelledByQueue[0])("aria-label",V._config.ariaLabel)("aria-describedby",V._config.ariaDescribedBy||null)},features:[a.Vt3],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(L,V){1&L&&a.DNE(0,Z,0,0,"ng-template",0)},dependencies:[w.I3],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2})}return Me})();class pe{overlayRef;config;componentInstance;componentRef;containerInstance;disableClose;closed=new S.B;backdropClick;keydownEvents;outsidePointerEvents;id;_detachSubscription;constructor(nt,W){this.overlayRef=nt,this.config=W,this.disableClose=W.disableClose,this.backdropClick=nt.backdropClick(),this.keydownEvents=nt.keydownEvents(),this.outsidePointerEvents=nt.outsidePointerEvents(),this.id=W.id,this.keydownEvents.subscribe(L=>{L.keyCode===A._f&&!this.disableClose&&!(0,A.rp)(L)&&(L.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=nt.detachments().subscribe(()=>{!1!==W.closeOnOverlayDetachments&&this.close()})}close(nt,W){if(this.containerInstance){const L=this.closed;this.containerInstance._closeInteractionType=W?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),L.next(nt),L.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(nt="",W=""){return this.overlayRef.updateSize({width:nt,height:W}),this}addPanelClass(nt){return this.overlayRef.addPanelClass(nt),this}removePanelClass(nt){return this.overlayRef.removePanelClass(nt),this}}const Te=new a.nKC("DialogScrollStrategy",{providedIn:"root",factory:()=>{const Me=(0,a.WQX)(i.hJ);return()=>Me.scrollStrategies.block()}}),Ce=new a.nKC("DialogData"),Ne=new a.nKC("DefaultDialogConfig");let ae=(()=>{class Me{_overlay=(0,a.WQX)(i.hJ);_injector=(0,a.WQX)(a.zZn);_defaultOptions=(0,a.WQX)(Ne,{optional:!0});_parentDialog=(0,a.WQX)(Me,{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,T.v)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,G.Z)(void 0)));constructor(){}open(W,L){(L={...this._defaultOptions||new te,...L}).id=L.id||this._idGenerator.getId("cdk-dialog-"),L.id&&this.getDialogById(L.id);const Re=this._getOverlayConfig(L),bt=this._overlay.create(Re),mt=new pe(bt,L),At=this._attachContainer(bt,mt,L);return mt.containerInstance=At,this._attachDialogContent(W,mt,At,L),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(mt),mt.closed.subscribe(()=>this._removeOpenDialog(mt,!0)),this.afterOpened.next(mt),mt}closeAll(){le(this.openDialogs,W=>W.close())}getDialogById(W){return this.openDialogs.find(L=>L.id===W)}ngOnDestroy(){le(this._openDialogsAtThisLevel,W=>{!1===W.config.closeOnDestroy&&this._removeOpenDialog(W,!1)}),le(this._openDialogsAtThisLevel,W=>W.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(W){const L=new i.rR({positionStrategy:W.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:W.scrollStrategy||this._scrollStrategy(),panelClass:W.panelClass,hasBackdrop:W.hasBackdrop,direction:W.direction,minWidth:W.minWidth,minHeight:W.minHeight,maxWidth:W.maxWidth,maxHeight:W.maxHeight,width:W.width,height:W.height,disposeOnNavigation:W.closeOnNavigation});return W.backdropClass&&(L.backdropClass=W.backdropClass),L}_attachContainer(W,L,V){const Re=V.injector||V.viewContainerRef?.injector,bt=[{provide:te,useValue:V},{provide:pe,useValue:L},{provide:i.yY,useValue:W}];let mt;V.container?"function"==typeof V.container?mt=V.container:(mt=V.container.type,bt.push(...V.container.providers(V))):mt=_e;const At=new w.A8(mt,V.viewContainerRef,a.zZn.create({parent:Re||this._injector,providers:bt}));return W.attach(At).instance}_attachDialogContent(W,L,V,Re){if(W instanceof a.C4Q){const bt=this._createInjector(Re,L,V,void 0);let mt={$implicit:Re.data,dialogRef:L};Re.templateContext&&(mt={...mt,..."function"==typeof Re.templateContext?Re.templateContext():Re.templateContext}),V.attachTemplatePortal(new w.VA(W,null,mt,bt))}else{const bt=this._createInjector(Re,L,V,this._injector),mt=V.attachComponentPortal(new w.A8(W,Re.viewContainerRef,bt));L.componentRef=mt,L.componentInstance=mt.instance}}_createInjector(W,L,V,Re){const bt=W.injector||W.viewContainerRef?.injector,mt=[{provide:Ce,useValue:W.data},{provide:pe,useValue:L}];return W.providers&&("function"==typeof W.providers?mt.push(...W.providers(L,W,V)):mt.push(...W.providers)),W.direction&&(!bt||!bt.get(R.dS,null,{optional:!0}))&&mt.push({provide:R.dS,useValue:{value:W.direction,change:(0,k.of)()}}),a.zZn.create({parent:bt||Re,providers:mt})}_removeOpenDialog(W,L){const V=this.openDialogs.indexOf(W);V>-1&&(this.openDialogs.splice(V,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((Re,bt)=>{Re?bt.setAttribute("aria-hidden",Re):bt.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),L&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const W=this._overlayContainer.getContainerElement();if(W.parentElement){const L=W.parentElement.children;for(let V=L.length-1;V>-1;V--){const Re=L[V];Re!==W&&"SCRIPT"!==Re.nodeName&&"STYLE"!==Re.nodeName&&!Re.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(Re,Re.getAttribute("aria-hidden")),Re.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const W=this._parentDialog;return W?W._getAfterAllClosed():this._afterAllClosedAtThisLevel}static \u0275fac=function(L){return new(L||Me)};static \u0275prov=a.jDH({token:Me,factory:Me.\u0275fac,providedIn:"root"})}return Me})();function le(Me,nt){let W=Me.length;for(;W--;)nt(Me[W])}let ke=(()=>{class Me{static \u0275fac=function(L){return new(L||Me)};static \u0275mod=a.$C({type:Me});static \u0275inj=a.G2t({providers:[ae],imports:[i.z_,w.jc,c.Pd,w.jc]})}return Me})();var Ue=r(3022),st=r(7509),ft=r(1483),_t=r(7610),ot=r(8108),Yt=r(2902);function wn(Me,nt){}r(1204);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 En="mdc-dialog--open",Ze="mdc-dialog--opening",wt="mdc-dialog--closing";let Ut=(()=>{class Me extends _e{_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?lt(this._config.enterAnimationDuration)??150:0;_exitAnimationDuration=this._animationsEnabled?lt(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(Ze,En)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(En),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(En),this._animationsEnabled?(this._hostElement.style.setProperty(Ke,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(wt)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(W){this._actionSectionCount+=W,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(Ze,wt)}_waitForAnimationToComplete(W,L){null!==this._animationTimer&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(L,W)}_requestAnimationFrame(W){this._ngZone.runOutsideAngular(()=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(W):W()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(W){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:W})}ngOnDestroy(){super.ngOnDestroy(),null!==this._animationTimer&&clearTimeout(this._animationTimer)}attachComponentPortal(W){const L=super.attachComponentPortal(W);return L.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),L}static \u0275fac=(()=>{let W;return function(V){return(W||(W=a.xGo(Me)))(V||Me)}})();static \u0275cmp=a.VBU({type:Me,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(L,V){2&L&&(a.Mr5("id",V._config.id),a.BMQ("aria-modal",V._config.ariaModal)("role",V._config.role)("aria-labelledby",V._config.ariaLabel?null:V._ariaLabelledByQueue[0])("aria-label",V._config.ariaLabel)("aria-describedby",V._config.ariaDescribedBy||null),a.AVh("_mat-animation-noopable",!V._animationsEnabled)("mat-mdc-dialog-container-with-actions",V._actionSectionCount>0))},features:[a.Vt3],decls:3,vars:0,consts:[[1,"mat-mdc-dialog-inner-container","mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(L,V){1&L&&(a.j41(0,"div",0)(1,"div",1),a.DNE(2,wn,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 Me})();const Ke="--mat-dialog-transition-duration";function lt(Me){return null==Me?null:"number"==typeof Me?Me:Me.endsWith("ms")?(0,Ue.OE)(Me.substring(0,Me.length-2)):Me.endsWith("s")?1e3*(0,Ue.OE)(Me.substring(0,Me.length-1)):"0"===Me?0:null}var Xe=function(Me){return Me[Me.OPEN=0]="OPEN",Me[Me.CLOSING=1]="CLOSING",Me[Me.CLOSED=2]="CLOSED",Me}(Xe||{});class Ge{_ref;_containerInstance;componentInstance;componentRef;disableClose;id;_afterOpened=new S.B;_beforeClosed=new S.B;_result;_closeFallbackTimeout;_state=Xe.OPEN;_closeInteractionType;constructor(nt,W,L){this._ref=nt,this._containerInstance=L,this.disableClose=W.disableClose,this.id=nt.id,nt.addPanelClass("mat-mdc-dialog-panel"),L._animationStateChanged.pipe((0,ft.p)(V=>"opened"===V.state),(0,_t.s)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),L._animationStateChanged.pipe((0,ft.p)(V=>"closed"===V.state),(0,_t.s)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),nt.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,st.h)(this.backdropClick(),this.keydownEvents().pipe((0,ft.p)(V=>V.keyCode===A._f&&!this.disableClose&&!(0,A.rp)(V)))).subscribe(V=>{this.disableClose||(V.preventDefault(),pt(this,"keydown"===V.type?"keyboard":"mouse"))})}close(nt){this._result=nt,this._containerInstance._animationStateChanged.pipe((0,ft.p)(W=>"closing"===W.state),(0,_t.s)(1)).subscribe(W=>{this._beforeClosed.next(nt),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),W.totalTime+100)}),this._state=Xe.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(nt){let W=this._ref.config.positionStrategy;return nt&&(nt.left||nt.right)?nt.left?W.left(nt.left):W.right(nt.right):W.centerHorizontally(),nt&&(nt.top||nt.bottom)?nt.top?W.top(nt.top):W.bottom(nt.bottom):W.centerVertically(),this._ref.updatePosition(),this}updateSize(nt="",W=""){return this._ref.updateSize(nt,W),this}addPanelClass(nt){return this._ref.addPanelClass(nt),this}removePanelClass(nt){return this._ref.removePanelClass(nt),this}getState(){return this._state}_finishDialogClose(){this._state=Xe.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}function pt(Me,nt,W){return Me._closeInteractionType=nt,Me.close(W)}const se=new a.nKC("MatMdcDialogData"),qe=new a.nKC("mat-mdc-dialog-default-options"),Nt=new a.nKC("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{const Me=(0,a.WQX)(i.hJ);return()=>Me.scrollStrategies.block()}});let Wn=(()=>{class Me{_overlay=(0,a.WQX)(i.hJ);_defaultOptions=(0,a.WQX)(qe,{optional:!0});_scrollStrategy=(0,a.WQX)(Nt);_parentDialog=(0,a.WQX)(Me,{optional:!0,skipSelf:!0});_idGenerator=(0,a.WQX)(c.g7);_dialog=(0,a.WQX)(ae);_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 W=this._parentDialog;return W?W._getAfterAllClosed():this._afterAllClosedAtThisLevel}afterAllClosed=(0,T.v)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,G.Z)(void 0)));constructor(){this._dialogRefConstructor=Ge,this._dialogContainerType=Ut,this._dialogDataToken=se}open(W,L){let V;(L={...this._defaultOptions||new $n,...L}).id=L.id||this._idGenerator.getId("mat-mdc-dialog-"),L.scrollStrategy=L.scrollStrategy||this._scrollStrategy();const Re=this._dialog.open(W,{...L,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:L},{provide:te,useValue:L}]},templateContext:()=>({dialogRef:V}),providers:(bt,mt,At)=>(V=new this._dialogRefConstructor(bt,L,At),V.updatePosition(L?.position),[{provide:this._dialogContainerType,useValue:At},{provide:this._dialogDataToken,useValue:mt.data},{provide:this._dialogRefConstructor,useValue:V}])});return V.componentRef=Re.componentRef,V.componentInstance=Re.componentInstance,this.openDialogs.push(V),this.afterOpened.next(V),V.afterClosed().subscribe(()=>{const bt=this.openDialogs.indexOf(V);bt>-1&&(this.openDialogs.splice(bt,1),this.openDialogs.length||this._getAfterAllClosed().next())}),V}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(W){return this.openDialogs.find(L=>L.id===W)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(W){let L=W.length;for(;L--;)W[L].close()}static \u0275fac=function(L){return new(L||Me)};static \u0275prov=a.jDH({token:Me,factory:Me.\u0275fac,providedIn:"root"})}return Me})(),Pt=(()=>{class Me{dialogRef=(0,a.WQX)(Ge,{optional:!0});_elementRef=(0,a.WQX)(a.aKT);_dialog=(0,a.WQX)(Wn);ariaLabel;type="button";dialogResult;_matDialogClose;constructor(){}ngOnInit(){this.dialogRef||(this.dialogRef=Xt(this._elementRef,this._dialog.openDialogs))}ngOnChanges(W){const L=W._matDialogClose||W._matDialogCloseResult;L&&(this.dialogResult=L.currentValue)}_onButtonClick(W){pt(this.dialogRef,0===W.screenX&&0===W.screenY?"keyboard":"mouse",this.dialogResult)}static \u0275fac=function(L){return new(L||Me)};static \u0275dir=a.FsC({type:Me,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(L,V){1&L&&a.bIt("click",function(bt){return V._onButtonClick(bt)}),2&L&&a.BMQ("aria-label",V.ariaLabel||null)("type",V.type)},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],type:"type",dialogResult:[0,"mat-dialog-close","dialogResult"],_matDialogClose:[0,"matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[a.OA$]})}return Me})(),en=(()=>{class Me{_dialogRef=(0,a.WQX)(Ge,{optional:!0});_elementRef=(0,a.WQX)(a.aKT);_dialog=(0,a.WQX)(Wn);constructor(){}ngOnInit(){this._dialogRef||(this._dialogRef=Xt(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd()})}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove()})}static \u0275fac=function(L){return new(L||Me)};static \u0275dir=a.FsC({type:Me})}return Me})(),Yn=(()=>{class Me{static \u0275fac=function(L){return new(L||Me)};static \u0275dir=a.FsC({type:Me,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],features:[a.nM4([ot.uv])]})}return Me})(),Sn=(()=>{class Me extends en{align;_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1)}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1)}static \u0275fac=(()=>{let W;return function(V){return(W||(W=a.xGo(Me)))(V||Me)}})();static \u0275dir=a.FsC({type:Me,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:6,hostBindings:function(L,V){2&L&&a.AVh("mat-mdc-dialog-actions-align-start","start"===V.align)("mat-mdc-dialog-actions-align-center","center"===V.align)("mat-mdc-dialog-actions-align-end","end"===V.align)},inputs:{align:"align"},features:[a.Vt3]})}return Me})();function Xt(Me,nt){let W=Me.nativeElement.parentElement;for(;W&&!W.classList.contains("mat-mdc-dialog-container");)W=W.parentElement;return W?nt.find(L=>L.id===W.id):null}let Gt=(()=>{class Me{static \u0275fac=function(L){return new(L||Me)};static \u0275mod=a.$C({type:Me});static \u0275inj=a.G2t({providers:[Wn],imports:[ke,i.z_,w.jc,Yt.yE,Yt.yE]})}return Me})()},7702:(o,s,r)=>{"use strict";r.d(s,{q:()=>y,w:()=>w});var i=r(3107),a=r(3022),c=r(2902);let y=(()=>{class C{get vertical(){return this._vertical}set vertical(S){this._vertical=(0,a.he)(S)}_vertical=!1;get inset(){return this._inset}set inset(S){this._inset=(0,a.he)(S)}_inset=!1;static \u0275fac=function(T){return new(T||C)};static \u0275cmp=i.VBU({type:C,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(T,k){2&T&&(i.BMQ("aria-orientation",k.vertical?"vertical":"horizontal"),i.AVh("mat-divider-vertical",k.vertical)("mat-divider-horizontal",!k.vertical)("mat-divider-inset",k.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(T,k){},styles:[".mat-divider{display:block;margin:0;border-top-style:solid;border-top-color:var(--mat-divider-color, var(--mat-sys-outline));border-top-width:var(--mat-divider-width, 1px)}.mat-divider.mat-divider-vertical{border-top:0;border-right-style:solid;border-right-color:var(--mat-divider-color, var(--mat-sys-outline));border-right-width:var(--mat-divider-width, 1px)}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0})}return C})(),w=(()=>{class C{static \u0275fac=function(T){return new(T||C)};static \u0275mod=i.$C({type:C});static \u0275inj=i.G2t({imports:[c.yE,c.yE]})}return C})()},6071:(o,s,r)=>{"use strict";r.d(s,{xb:()=>Zt,U$:()=>gn,TL:()=>an,rl:()=>ei,qT:()=>bt,RG:()=>Xr,MV:()=>Yn,nJ:()=>Pt,JW:()=>Xt,yw:()=>Gt});var i=r(3107),a=r(8559),c=r(2944),y=r(3022),w=r(2147),C=r(4460),A=r(5710),S=r(8447),T=r(7509),k=r(593),R=r(7947),G=r(5351),Z=r(2483),we=r(1483),_e=r(5424),pe=r(1698),Te=r(8249);class Ne{_box;_destroyed=new S.B;_resizeSubject=new S.B;_resizeObserver;_elementObservables=new Map;constructor($t){this._box=$t,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(Ee=>this._resizeSubject.next(Ee)))}observe($t){return this._elementObservables.has($t)||this._elementObservables.set($t,new pe.c(Ee=>{const at=this._resizeSubject.subscribe(Ee);return this._resizeObserver?.observe($t,{box:this._box}),()=>{this._resizeObserver?.unobserve($t),at.unsubscribe(),this._elementObservables.delete($t)}}).pipe((0,we.p)(Ee=>Ee.some(at=>at.target===$t)),(0,Te.t)({bufferSize:1,refCount:!0}),(0,_e.Q)(this._destroyed))),this._elementObservables.get($t)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}}let Se=(()=>{class vt{_observers=new Map;_ngZone=(0,i.WQX)(i.SKi);constructor(){}ngOnDestroy(){for(const[,Ee]of this._observers)Ee.destroy();this._observers.clear()}observe(Ee,at){const Fe=at?.box||"content-box";return this._observers.has(Fe)||this._observers.set(Fe,new Ne(Fe)),this._observers.get(Fe).observe(Ee)}static \u0275fac=function(at){return new(at||vt)};static \u0275prov=i.jDH({token:vt,factory:vt.\u0275fac,providedIn:"root"})}return vt})();var xe=r(1204),ae=r(7747),le=r(2902);const ke=["notch"],Ue=["matFormFieldNotchedOutline",""],st=["*"],ft=["textField"],_t=["iconPrefixContainer"],ot=["textPrefixContainer"],Yt=["iconSuffixContainer"],un=["textSuffixContainer"],wn=["*",[["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 En(vt,$t){1&vt&&i.nrm(0,"span",21)}function Ze(vt,$t){if(1&vt&&(i.j41(0,"label",20),i.SdG(1,1),i.DNE(2,En,1,0,"span",21),i.k0s()),2&vt){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 wt(vt,$t){if(1&vt&&i.DNE(0,Ze,3,5,"label",20),2&vt){const Ee=i.XpG();i.vxM(Ee._hasFloatingLabel()?0:-1)}}function ze(vt,$t){1&vt&&i.nrm(0,"div",7)}function Be(vt,$t){}function Ut(vt,$t){if(1&vt&&i.DNE(0,Be,0,0,"ng-template",13),2&vt){i.XpG(2);const Ee=i.sdS(1);i.Y8G("ngTemplateOutlet",Ee)}}function Ke(vt,$t){if(1&vt&&(i.j41(0,"div",9),i.DNE(1,Ut,1,1,null,13),i.k0s()),2&vt){const Ee=i.XpG();i.Y8G("matFormFieldNotchedOutlineOpen",Ee._shouldLabelFloat()),i.R7$(),i.vxM(Ee._forceDisplayInfixLabel()?-1:1)}}function lt(vt,$t){1&vt&&(i.j41(0,"div",10,2),i.SdG(2,2),i.k0s())}function Xe(vt,$t){1&vt&&(i.j41(0,"div",11,3),i.SdG(2,3),i.k0s())}function Ge(vt,$t){}function pt(vt,$t){if(1&vt&&i.DNE(0,Ge,0,0,"ng-template",13),2&vt){i.XpG();const Ee=i.sdS(1);i.Y8G("ngTemplateOutlet",Ee)}}function se(vt,$t){1&vt&&(i.j41(0,"div",14,4),i.SdG(2,4),i.k0s())}function qe(vt,$t){1&vt&&(i.j41(0,"div",15,5),i.SdG(2,5),i.k0s())}function Nt(vt,$t){1&vt&&i.nrm(0,"div",16)}function tn(vt,$t){if(1&vt&&(i.j41(0,"div",18),i.SdG(1,6),i.k0s()),2&vt){const Ee=i.XpG();i.Y8G("@transitionMessages",Ee._subscriptAnimationState)}}function pn(vt,$t){if(1&vt&&(i.j41(0,"mat-hint",22),i.EFF(1),i.k0s()),2&vt){const Ee=i.XpG(2);i.Y8G("id",Ee._hintLabelId),i.R7$(),i.JRh(Ee.hintLabel)}}function Wn(vt,$t){if(1&vt&&(i.j41(0,"div",19),i.DNE(1,pn,2,2,"mat-hint",22),i.SdG(2,7),i.nrm(3,"div",23),i.SdG(4,8),i.k0s()),2&vt){const Ee=i.XpG();i.Y8G("@transitionMessages",Ee._subscriptAnimationState),i.R7$(),i.vxM(Ee.hintLabel?1:-1)}}let Pt=(()=>{class vt{static \u0275fac=function(at){return new(at||vt)};static \u0275dir=i.FsC({type:vt,selectors:[["mat-label"]]})}return vt})();const en=new i.nKC("MatError");let an=(()=>{class vt{id=(0,i.WQX)(a.g7).getId("mat-mdc-error-");constructor(){(0,i.WQX)(new i.ES_("aria-live"),{optional:!0})||(0,i.WQX)(i.aKT).nativeElement.setAttribute("aria-live","polite")}static \u0275fac=function(at){return new(at||vt)};static \u0275dir=i.FsC({type:vt,selectors:[["mat-error"],["","matError",""]],hostAttrs:["aria-atomic","true",1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(at,Fe){2&at&&i.Mr5("id",Fe.id)},inputs:{id:"id"},features:[i.Jv_([{provide:en,useExisting:vt}])]})}return vt})(),Yn=(()=>{class vt{align="start";id=(0,i.WQX)(a.g7).getId("mat-mdc-hint-");static \u0275fac=function(at){return new(at||vt)};static \u0275dir=i.FsC({type:vt,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(at,Fe){2&at&&(i.Mr5("id",Fe.id),i.BMQ("align",null),i.AVh("mat-mdc-form-field-hint-end","end"===Fe.align))},inputs:{align:"align",id:"id"}})}return vt})();const Sn=new i.nKC("MatPrefix");let Xt=(()=>{class vt{set _isTextSelector(Ee){this._isText=!0}_isText=!1;static \u0275fac=function(at){return new(at||vt)};static \u0275dir=i.FsC({type:vt,selectors:[["","matPrefix",""],["","matIconPrefix",""],["","matTextPrefix",""]],inputs:{_isTextSelector:[0,"matTextPrefix","_isTextSelector"]},features:[i.Jv_([{provide:Sn,useExisting:vt}])]})}return vt})();const Mt=new i.nKC("MatSuffix");let Gt=(()=>{class vt{set _isTextSelector(Ee){this._isText=!0}_isText=!1;static \u0275fac=function(at){return new(at||vt)};static \u0275dir=i.FsC({type:vt,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[0,"matTextSuffix","_isTextSelector"]},features:[i.Jv_([{provide:Mt,useExisting:vt}])]})}return vt})();const Ot=new i.nKC("FloatingLabelParent");let Ie=(()=>{class vt{_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)(Se);_ngZone=(0,i.WQX)(i.SKi);_parent=(0,i.WQX)(Ot);_resizeSubscription=new A.yU;constructor(){}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return function Me(vt){if(null!==vt.offsetParent)return vt.scrollWidth;const Ee=vt.cloneNode(!0);Ee.style.setProperty("position","absolute"),Ee.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(Ee);const at=Ee.scrollWidth;return Ee.remove(),at}(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(at){return new(at||vt)};static \u0275dir=i.FsC({type:vt,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(at,Fe){2&at&&i.AVh("mdc-floating-label--float-above",Fe.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}})}return vt})();const nt="mdc-line-ripple--active",W="mdc-line-ripple--deactivating";let L=(()=>{class vt{_elementRef=(0,i.WQX)(i.aKT);constructor(){(0,i.WQX)(i.SKi).runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){const Ee=this._elementRef.nativeElement.classList;Ee.remove(W),Ee.add(nt)}deactivate(){this._elementRef.nativeElement.classList.add(W)}_handleTransitionEnd=Ee=>{const at=this._elementRef.nativeElement.classList,Fe=at.contains(W);"opacity"===Ee.propertyName&&Fe&&at.remove(nt,W)};ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}static \u0275fac=function(at){return new(at||vt)};static \u0275dir=i.FsC({type:vt,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]})}return vt})(),V=(()=>{class vt{_elementRef=(0,i.WQX)(i.aKT);_ngZone=(0,i.WQX)(i.SKi);open=!1;_notch;constructor(){}ngAfterViewInit(){const 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(at){return new(at||vt)};static \u0275cmp=i.VBU({type:vt,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(at,Fe){if(1&at&&i.GBs(ke,5),2&at){let Rt;i.mGM(Rt=i.lsd())&&(Fe._notch=Rt.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(at,Fe){2&at&&i.AVh("mdc-notched-outline--notched",Fe.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},attrs:Ue,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(at,Fe){1&at&&(i.NAR(),i.nrm(0,"div",1),i.j41(1,"div",2,0),i.SdG(3),i.k0s(),i.nrm(4,"div",3))},encapsulation:2,changeDetection:0})}return vt})();const Re={transitionMessages:(0,xe.hZ)("transitionMessages",[(0,xe.wk)("enter",(0,xe.iF)({opacity:1,transform:"translateY(0%)"})),(0,xe.kY)("void => enter",[(0,xe.iF)({opacity:0,transform:"translateY(-5px)"}),(0,xe.i0)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let bt=(()=>{class vt{value;stateChanges;id;placeholder;ngControl;focused;empty;shouldLabelFloat;required;disabled;errorState;controlType;autofilled;userAriaDescribedBy;disableAutomaticLabeling;static \u0275fac=function(at){return new(at||vt)};static \u0275dir=i.FsC({type:vt})}return vt})();const Zt=new i.nKC("MatFormField"),gn=new i.nKC("MAT_FORM_FIELD_DEFAULT_OPTIONS");let ei=(()=>{class vt{_elementRef=(0,i.WQX)(i.aKT);_changeDetectorRef=(0,i.WQX)(i.gRc);_dir=(0,i.WQX)(c.dS);_platform=(0,i.WQX)(w.OD);_idGenerator=(0,i.WQX)(a.g7);_defaults=(0,i.WQX)(gn,{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)(Pt);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 at=this._appearance;this._appearance=Ee||this._defaults?.appearance||"fill","outline"===this._appearance&&this._appearance!==at&&(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 at=this._control,Fe="mat-mdc-form-field-type-";Ee&&this._elementRef.nativeElement.classList.remove(Fe+Ee.controlType),at.controlType&&this._elementRef.nativeElement.classList.add(Fe+at.controlType),this._stateChanges?.unsubscribe(),this._stateChanges=at.stateChanges.subscribe(()=>{this._updateFocusState(),this._changeDetectorRef.markForCheck()}),this._describedByChanges?.unsubscribe(),this._describedByChanges=at.stateChanges.pipe((0,k.Z)([void 0,void 0]),(0,R.T)(()=>[at.errorState,at.userAriaDescribedBy]),function te(){return(0,G.N)((vt,$t)=>{let Ee,at=!1;vt.subscribe((0,Z._)($t,Fe=>{const Rt=Ee;Ee=Fe,at&&$t.next([Rt,Fe]),at=!0}))})}(),(0,we.p)(([[Rt,dt],[Bt,_n]])=>Rt!==Bt||dt!==_n)).subscribe(()=>this._syncDescribedByIds()),this._valueChanges?.unsubscribe(),at.ngControl&&at.ngControl.valueChanges&&(this._valueChanges=at.ngControl.valueChanges.pipe((0,_e.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,T.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,_e.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 at=this._control?this._control.ngControl:null;return at&&at[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 at=this._hintChildren?this._hintChildren.find(Rt=>"start"===Rt.align):null,Fe=this._hintChildren?this._hintChildren.find(Rt=>"end"===Rt.align):null;at?Ee.push(at.id):this._hintLabel&&Ee.push(this._hintLabelId),Fe&&Ee.push(Fe.id)}else this._errorChildren&&Ee.push(...this._errorChildren.map(at=>at.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 at=this._iconPrefixContainer?.nativeElement,Fe=this._textPrefixContainer?.nativeElement,Rt=this._iconSuffixContainer?.nativeElement,dt=this._textSuffixContainer?.nativeElement,Bt=at?.getBoundingClientRect().width??0,_n=Fe?.getBoundingClientRect().width??0,or=Rt?.getBoundingClientRect().width??0,Mr=dt?.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"} * (${Bt+_n}px + var(--mat-mdc-form-field-label-offset-x, 0px))))\n )`,this._elementRef.nativeElement.style.setProperty("--mat-form-field-notch-max-width",`calc(100% - ${Bt+_n+or+Mr}px)`)}_isAttachedToDom(){const Ee=this._elementRef.nativeElement;if(Ee.getRootNode){const at=Ee.getRootNode();return at&&at!==Ee}return document.documentElement.contains(Ee)}static \u0275fac=function(at){return new(at||vt)};static \u0275cmp=i.VBU({type:vt,selectors:[["mat-form-field"]],contentQueries:function(at,Fe,Rt){if(1&at&&(i.C6U(Rt,Fe._labelChild,Pt,5),i.wni(Rt,bt,5),i.wni(Rt,Sn,5),i.wni(Rt,Mt,5),i.wni(Rt,en,5),i.wni(Rt,Yn,5)),2&at){let dt;i.NyB(),i.mGM(dt=i.lsd())&&(Fe._formFieldControl=dt.first),i.mGM(dt=i.lsd())&&(Fe._prefixChildren=dt),i.mGM(dt=i.lsd())&&(Fe._suffixChildren=dt),i.mGM(dt=i.lsd())&&(Fe._errorChildren=dt),i.mGM(dt=i.lsd())&&(Fe._hintChildren=dt)}},viewQuery:function(at,Fe){if(1&at&&(i.GBs(ft,5),i.GBs(_t,5),i.GBs(ot,5),i.GBs(Yt,5),i.GBs(un,5),i.GBs(Ie,5),i.GBs(V,5),i.GBs(L,5)),2&at){let Rt;i.mGM(Rt=i.lsd())&&(Fe._textField=Rt.first),i.mGM(Rt=i.lsd())&&(Fe._iconPrefixContainer=Rt.first),i.mGM(Rt=i.lsd())&&(Fe._textPrefixContainer=Rt.first),i.mGM(Rt=i.lsd())&&(Fe._iconSuffixContainer=Rt.first),i.mGM(Rt=i.lsd())&&(Fe._textSuffixContainer=Rt.first),i.mGM(Rt=i.lsd())&&(Fe._floatingLabel=Rt.first),i.mGM(Rt=i.lsd())&&(Fe._notchedOutline=Rt.first),i.mGM(Rt=i.lsd())&&(Fe._lineRipple=Rt.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(at,Fe){2&at&&i.AVh("mat-mdc-form-field-label-always-float",Fe._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",Fe._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",Fe._hasIconSuffix)("mat-form-field-invalid",Fe._control.errorState)("mat-form-field-disabled",Fe._control.disabled)("mat-form-field-autofilled",Fe._control.autofilled)("mat-form-field-no-animations","NoopAnimations"===Fe._animationMode)("mat-form-field-appearance-fill","fill"==Fe.appearance)("mat-form-field-appearance-outline","outline"==Fe.appearance)("mat-form-field-hide-placeholder",Fe._hasFloatingLabel()&&!Fe._shouldLabelFloat())("mat-focused",Fe._control.focused)("mat-primary","accent"!==Fe.color&&"warn"!==Fe.color)("mat-accent","accent"===Fe.color)("mat-warn","warn"===Fe.color)("ng-untouched",Fe._shouldForward("untouched"))("ng-touched",Fe._shouldForward("touched"))("ng-pristine",Fe._shouldForward("pristine"))("ng-dirty",Fe._shouldForward("dirty"))("ng-valid",Fe._shouldForward("valid"))("ng-invalid",Fe._shouldForward("invalid"))("ng-pending",Fe._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[i.Jv_([{provide:Zt,useExisting:vt},{provide:Ot,useExisting:vt}])],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(at,Fe){if(1&at){const Rt=i.RV6();i.NAR(wn),i.DNE(0,wt,1,1,"ng-template",null,0,i.C5r),i.j41(2,"div",6,1),i.bIt("click",function(Bt){return i.eBV(Rt),i.Njj(Fe._control.onContainerClick(Bt))}),i.DNE(4,ze,1,0,"div",7),i.j41(5,"div",8),i.DNE(6,Ke,2,2,"div",9)(7,lt,3,0,"div",10)(8,Xe,3,0,"div",11),i.j41(9,"div",12),i.DNE(10,pt,1,1,null,13),i.SdG(11),i.k0s(),i.DNE(12,se,3,0,"div",14)(13,qe,3,0,"div",15),i.k0s(),i.DNE(14,Nt,1,0,"div",16),i.k0s(),i.j41(15,"div",17),i.DNE(16,tn,2,1,"div",18)(17,Wn,5,2,"div",19),i.k0s()}if(2&at){let Rt;i.R7$(2),i.AVh("mdc-text-field--filled",!Fe._hasOutline())("mdc-text-field--outlined",Fe._hasOutline())("mdc-text-field--no-label",!Fe._hasFloatingLabel())("mdc-text-field--disabled",Fe._control.disabled)("mdc-text-field--invalid",Fe._control.errorState),i.R7$(2),i.vxM(Fe._hasOutline()||Fe._control.disabled?-1:4),i.R7$(2),i.vxM(Fe._hasOutline()?6:-1),i.R7$(),i.vxM(Fe._hasIconPrefix?7:-1),i.R7$(),i.vxM(Fe._hasTextPrefix?8:-1),i.R7$(2),i.vxM(!Fe._hasOutline()||Fe._forceDisplayInfixLabel()?10:-1),i.R7$(2),i.vxM(Fe._hasTextSuffix?12:-1),i.R7$(),i.vxM(Fe._hasIconSuffix?13:-1),i.R7$(),i.vxM(Fe._hasOutline()?-1:14),i.R7$(),i.AVh("mat-mdc-form-field-subscript-dynamic-size","dynamic"===Fe.subscriptSizing),i.R7$(),i.vxM("error"===(Rt=Fe._getDisplayedMessages())?16:"hint"===Rt?17:-1)}},dependencies:[Ie,V,C.T3,L,Yn],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:[Re.transitionMessages]},changeDetection:0})}return vt})(),Xr=(()=>{class vt{static \u0275fac=function(at){return new(at||vt)};static \u0275mod=i.$C({type:vt});static \u0275inj=i.G2t({imports:[le.yE,ae.w5,le.yE]})}return vt})()},3904:(o,s,r)=>{"use strict";r.d(s,{An:()=>wt,m_:()=>ze,tp:()=>ke});var i=r(3107),a=r(2902),c=r(4460),y=r(3016),w=r(8915),C=r(2653),A=r(5710),S=r(2040),T=r(7947),k=r(7178),R=r(4447),G=r(6218),Z=r(7610),te=r(7691),we=r(6388);const _e=["*"];let pe;function Ce(Be){return function Te(){if(void 0===pe&&(pe=null,typeof window<"u")){const Be=window;void 0!==Be.trustedTypes&&(pe=Be.trustedTypes.createPolicy("angular#components",{createHTML:Ut=>Ut}))}return pe}()?.createHTML(Be)||Be}function Ne(Be){return Error(`Unable to find icon with the name "${Be}"`)}function xe(Be){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${Be}".`)}function ae(Be){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${Be}".`)}class le{url;svgText;options;svgElement;constructor(Ut,Ke,lt){this.url=Ut,this.svgText=Ke,this.options=lt}}let ke=(()=>{class Be{_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,lt,Xe,Ge){this._httpClient=Ke,this._sanitizer=lt,this._errorHandler=Ge,this._document=Xe}addSvgIcon(Ke,lt,Xe){return this.addSvgIconInNamespace("",Ke,lt,Xe)}addSvgIconLiteral(Ke,lt,Xe){return this.addSvgIconLiteralInNamespace("",Ke,lt,Xe)}addSvgIconInNamespace(Ke,lt,Xe,Ge){return this._addSvgIconConfig(Ke,lt,new le(Xe,null,Ge))}addSvgIconResolver(Ke){return this._resolvers.push(Ke),this}addSvgIconLiteralInNamespace(Ke,lt,Xe,Ge){const pt=this._sanitizer.sanitize(i.WPN.HTML,Xe);if(!pt)throw ae(Xe);const se=Ce(pt);return this._addSvgIconConfig(Ke,lt,new le("",se,Ge))}addSvgIconSet(Ke,lt){return this.addSvgIconSetInNamespace("",Ke,lt)}addSvgIconSetLiteral(Ke,lt){return this.addSvgIconSetLiteralInNamespace("",Ke,lt)}addSvgIconSetInNamespace(Ke,lt,Xe){return this._addSvgIconSetConfig(Ke,new le(lt,null,Xe))}addSvgIconSetLiteralInNamespace(Ke,lt,Xe){const Ge=this._sanitizer.sanitize(i.WPN.HTML,lt);if(!Ge)throw ae(lt);const pt=Ce(Ge);return this._addSvgIconSetConfig(Ke,new le("",pt,Xe))}registerFontClassAlias(Ke,lt=Ke){return this._fontCssClassesByAlias.set(Ke,lt),this}classNameForFontAlias(Ke){return this._fontCssClassesByAlias.get(Ke)||Ke}setDefaultFontSetClass(...Ke){return this._defaultFontSetClass=Ke,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(Ke){const lt=this._sanitizer.sanitize(i.WPN.RESOURCE_URL,Ke);if(!lt)throw xe(Ke);const Xe=this._cachedIconsByUrl.get(lt);return Xe?(0,y.of)(ft(Xe)):this._loadSvgIconFromConfig(new le(Ke,null)).pipe((0,S.M)(Ge=>this._cachedIconsByUrl.set(lt,Ge)),(0,T.T)(Ge=>ft(Ge)))}getNamedSvgIcon(Ke,lt=""){const Xe=_t(lt,Ke);let Ge=this._svgIconConfigs.get(Xe);if(Ge)return this._getSvgFromConfig(Ge);if(Ge=this._getIconConfigFromResolvers(lt,Ke),Ge)return this._svgIconConfigs.set(Xe,Ge),this._getSvgFromConfig(Ge);const pt=this._iconSetConfigs.get(lt);return pt?this._getSvgFromIconSetConfigs(Ke,pt):(0,w.$)(Ne(Xe))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(Ke){return Ke.svgText?(0,y.of)(ft(this._svgElementFromConfig(Ke))):this._loadSvgIconFromConfig(Ke).pipe((0,T.T)(lt=>ft(lt)))}_getSvgFromIconSetConfigs(Ke,lt){const Xe=this._extractIconWithNameFromAnySet(Ke,lt);if(Xe)return(0,y.of)(Xe);const Ge=lt.filter(pt=>!pt.svgText).map(pt=>this._loadSvgIconSetFromConfig(pt).pipe((0,k.W)(se=>{const Nt=`Loading icon set URL: ${this._sanitizer.sanitize(i.WPN.RESOURCE_URL,pt.url)} failed: ${se.message}`;return this._errorHandler.handleError(new Error(Nt)),(0,y.of)(null)})));return(0,C.p)(Ge).pipe((0,T.T)(()=>{const pt=this._extractIconWithNameFromAnySet(Ke,lt);if(!pt)throw Ne(Ke);return pt}))}_extractIconWithNameFromAnySet(Ke,lt){for(let Xe=lt.length-1;Xe>=0;Xe--){const Ge=lt[Xe];if(Ge.svgText&&Ge.svgText.toString().indexOf(Ke)>-1){const pt=this._svgElementFromConfig(Ge),se=this._extractSvgIconFromSet(pt,Ke,Ge.options);if(se)return se}}return null}_loadSvgIconFromConfig(Ke){return this._fetchIcon(Ke).pipe((0,S.M)(lt=>Ke.svgText=lt),(0,T.T)(()=>this._svgElementFromConfig(Ke)))}_loadSvgIconSetFromConfig(Ke){return Ke.svgText?(0,y.of)(null):this._fetchIcon(Ke).pipe((0,S.M)(lt=>Ke.svgText=lt))}_extractSvgIconFromSet(Ke,lt,Xe){const Ge=Ke.querySelector(`[id="${lt}"]`);if(!Ge)return null;const pt=Ge.cloneNode(!0);if(pt.removeAttribute("id"),"svg"===pt.nodeName.toLowerCase())return this._setSvgAttributes(pt,Xe);if("symbol"===pt.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(pt),Xe);const se=this._svgElementFromString(Ce(""));return se.appendChild(pt),this._setSvgAttributes(se,Xe)}_svgElementFromString(Ke){const lt=this._document.createElement("DIV");lt.innerHTML=Ke;const Xe=lt.querySelector("svg");if(!Xe)throw Error(" tag not found");return Xe}_toSvgElement(Ke){const lt=this._svgElementFromString(Ce("")),Xe=Ke.attributes;for(let Ge=0;GeCe(Nt)),(0,R.j)(()=>this._inProgressUrlFetches.delete(pt)),(0,G.u)());return this._inProgressUrlFetches.set(pt,qe),qe}_addSvgIconConfig(Ke,lt,Xe){return this._svgIconConfigs.set(_t(Ke,lt),Xe),this}_addSvgIconSetConfig(Ke,lt){const Xe=this._iconSetConfigs.get(Ke);return Xe?Xe.push(lt):this._iconSetConfigs.set(Ke,[lt]),this}_svgElementFromConfig(Ke){if(!Ke.svgElement){const lt=this._svgElementFromString(Ke.svgText);this._setSvgAttributes(lt,Ke.options),Ke.svgElement=lt}return Ke.svgElement}_getIconConfigFromResolvers(Ke,lt){for(let Xe=0;XeUt?Ut.pathname+Ut.search:""}}}),$n=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],En=$n.map(Be=>`[${Be}]`).join(", "),Ze=/^url\(['"]?#(.*?)['"]?\)$/;let wt=(()=>{class Be{_elementRef=(0,i.WQX)(i.aKT);_iconRegistry=(0,i.WQX)(ke);_location=(0,i.WQX)(un);_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 lt=this._cleanupFontValue(Ke);lt!==this._fontSet&&(this._fontSet=lt,this._updateFontIconClasses())}_fontSet;get fontIcon(){return this._fontIcon}set fontIcon(Ke){const lt=this._cleanupFontValue(Ke);lt!==this._fontIcon&&(this._fontIcon=lt,this._updateFontIconClasses())}_fontIcon;_previousFontSetClass=[];_previousFontIconClass;_svgName;_svgNamespace;_previousPath;_elementsWithExternalReferences;_currentIconFetch=A.yU.EMPTY;constructor(){const Ke=(0,i.WQX)(new i.ES_("aria-hidden"),{optional:!0}),lt=(0,i.WQX)(Yt,{optional:!0});lt&&(lt.color&&(this.color=this._defaultColor=lt.color),lt.fontSet&&(this.fontSet=lt.fontSet)),Ke||this._elementRef.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(Ke){if(!Ke)return["",""];const lt=Ke.split(":");switch(lt.length){case 1:return["",lt[0]];case 2:return lt;default:throw Error(`Invalid icon name: "${Ke}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const Ke=this._elementsWithExternalReferences;if(Ke&&Ke.size){const lt=this._location.getPathname();lt!==this._previousPath&&(this._previousPath=lt,this._prependPathToReferences(lt))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(Ke){this._clearSvgElement();const lt=this._location.getPathname();this._previousPath=lt,this._cacheChildrenWithExternalReferences(Ke),this._prependPathToReferences(lt),this._elementRef.nativeElement.appendChild(Ke)}_clearSvgElement(){const Ke=this._elementRef.nativeElement;let lt=Ke.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();lt--;){const Xe=Ke.childNodes[lt];(1!==Xe.nodeType||"svg"===Xe.nodeName.toLowerCase())&&Xe.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const Ke=this._elementRef.nativeElement,lt=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(Xe=>Xe.length>0);this._previousFontSetClass.forEach(Xe=>Ke.classList.remove(Xe)),lt.forEach(Xe=>Ke.classList.add(Xe)),this._previousFontSetClass=lt,this.fontIcon!==this._previousFontIconClass&&!lt.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 lt=this._elementsWithExternalReferences;lt&<.forEach((Xe,Ge)=>{Xe.forEach(pt=>{Ge.setAttribute(pt.name,`url('${Ke}#${pt.value}')`)})})}_cacheChildrenWithExternalReferences(Ke){const lt=Ke.querySelectorAll(En),Xe=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let Ge=0;Ge{const se=lt[Ge],qe=se.getAttribute(pt),Nt=qe?qe.match(Ze):null;if(Nt){let tn=Xe.get(se);tn||(tn=[],Xe.set(se,tn)),tn.push({name:pt,value:Nt[1]})}})}_updateSvgIcon(Ke){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),Ke){const[lt,Xe]=this._splitIconName(Ke);lt&&(this._svgNamespace=lt),Xe&&(this._svgName=Xe),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(Xe,lt).pipe((0,Z.s)(1)).subscribe(Ge=>this._setSvgElement(Ge),Ge=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${lt}:${Xe}! ${Ge.message}`))})}}static \u0275fac=function(lt){return new(lt||Be)};static \u0275cmp=i.VBU({type:Be,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(lt,Xe){2<&&(i.BMQ("data-mat-icon-type",Xe._usingFontIcon()?"font":"svg")("data-mat-icon-name",Xe._svgName||Xe.fontIcon)("data-mat-icon-namespace",Xe._svgNamespace||Xe.fontSet)("fontIcon",Xe._usingFontIcon()?Xe.fontIcon:null),i.HbH(Xe.color?"mat-"+Xe.color:""),i.AVh("mat-icon-inline",Xe.inline)("mat-icon-no-color","primary"!==Xe.color&&"accent"!==Xe.color&&"warn"!==Xe.color))},inputs:{color:"color",inline:[2,"inline","inline",i.L39],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[i.GFd],ngContentSelectors:_e,decls:1,vars:0,template:function(lt,Xe){1<&&(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 Be})(),ze=(()=>{class Be{static \u0275fac=function(lt){return new(lt||Be)};static \u0275mod=i.$C({type:Be});static \u0275inj=i.G2t({imports:[a.yE,a.yE]})}return Be})()},6389:(o,s,r)=>{"use strict";r.d(s,{fS:()=>we,fg:()=>te});var i=r(3022),a=r(2147),c=r(708),y=r(3107),w=r(8559),C=r(936),A=r(2902),S=r(6071),T=r(8447);const R=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 te=(()=>{class _e{_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 T.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}),Ce=(0,y.WQX)(C.j4,{optional:!0}),Ne=(0,y.WQX)(A.es),Se=(0,y.WQX)(R,{optional:!0,self:!0}),xe=this._elementRef.nativeElement,ae=xe.nodeName.toLowerCase();Se?(0,y.Hps)(Se.value)?this._signalBasedValueAccessor=Se:this._inputValueAccessor=Se:this._inputValueAccessor=xe,this._previousNativeValue=this.value,this.id=this.id,this._platform.IOS&&this._ngZone.runOutsideAngular(()=>{xe.addEventListener("keyup",this._iOSKeyupListener)}),this._errorStateTracker=new A.X0(Ne,this.ngControl,Ce,Te,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===ae,this._isTextarea="textarea"===ae,this._isInFormField=!!this._formField,this.disabledInteractive=this._config?.disabledInteractive||!1,this._isNativeSelect&&(this.controlType=xe.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 Ce=this._elementRef.nativeElement;"number"===Ce.type?(Ce.type="text",Ce.setSelectionRange(0,0),Ce.type="number"):Ce.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 Ce=this._elementRef.nativeElement;this._previousPlaceholder=Te,Te?Ce.setAttribute("placeholder",Te):Ce.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,Ce=Te.options[0];return this.focused||Te.multiple||!this.empty||!!(Te.selectedIndex>-1&&Ce&&Ce.label)}return this.focused&&!this.disabled||!this.empty}setDescribedByIds(Te){const Ce=this._elementRef.nativeElement,Ne=Ce.getAttribute("aria-describedby");let Se;if(Ne){const xe=this._formFieldDescribedBy||Te;Se=Te.concat(Ne.split(" ").filter(ae=>ae&&!xe.includes(ae)))}else Se=Te;this._formFieldDescribedBy=Te,Se.length?Ce.setAttribute("aria-describedby",Se.join(" ")):Ce.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 Ce=Te.target;!Ce.value&&0===Ce.selectionStart&&0===Ce.selectionEnd&&(Ce.setSelectionRange(1,1),Ce.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(Ce){return new(Ce||_e)};static \u0275dir=y.FsC({type:_e,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:21,hostBindings:function(Ce,Ne){1&Ce&&y.bIt("focus",function(){return Ne._focusChanged(!0)})("blur",function(){return Ne._focusChanged(!1)})("input",function(){return Ne._onInput()}),2&Ce&&(y.Mr5("id",Ne.id)("disabled",Ne.disabled&&!Ne.disabledInteractive)("required",Ne.required),y.BMQ("name",Ne.name||null)("readonly",Ne._getReadonlyAttribute())("aria-disabled",Ne.disabled&&Ne.disabledInteractive?"true":null)("aria-invalid",Ne.empty&&Ne.required?null:Ne.errorState)("aria-required",Ne.required)("id",Ne.id),y.AVh("mat-input-server",Ne._isServer)("mat-mdc-form-field-textarea-control",Ne._isInFormField&&Ne._isTextarea)("mat-mdc-form-field-input-control",Ne._isInFormField)("mat-mdc-input-disabled-interactive",Ne.disabledInteractive)("mdc-text-field__input",Ne._isInFormField)("mat-mdc-native-select-inline",Ne._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:_e}]),y.GFd,y.OA$]})}return _e})(),we=(()=>{class _e{static \u0275fac=function(Ce){return new(Ce||_e)};static \u0275mod=y.$C({type:_e});static \u0275inj=y.G2t({imports:[A.yE,S.RG,S.RG,c.EE,A.yE]})}return _e})()},7818:(o,s,r)=>{"use strict";r.d(s,{Cn:()=>tn,Cp:()=>Nt,fb:()=>Yt,kk:()=>lt});var i=r(3107),a=r(8559),c=r(5919),y=r(8447),w=r(7509),C=r(5710),A=r(3016),S=r(4984),T=r(593),k=r(2867),R=r(5424),G=r(1483),Z=r(7610),te=r(8136),we=r(4460),_e=r(2902),pe=r(5467),Te=r(6192),Ce=r(1204),Ne=r(2944),Se=r(9666),xe=r(2147),ae=r(8108);const le=["mat-menu-item",""],ke=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],Ue=["mat-icon, [matMenuItemIcon]","*"];function st(pn,Wn){1&pn&&(i.qSk(),i.j41(0,"svg",2),i.nrm(1,"polygon",3),i.k0s())}const ft=["*"];function _t(pn,Wn){if(1&pn){const Pt=i.RV6();i.j41(0,"div",0),i.bIt("click",function(){i.eBV(Pt);const an=i.XpG();return i.Njj(an.closed.emit("click"))})("@transformMenu.start",function(an){i.eBV(Pt);const Yn=i.XpG();return i.Njj(Yn._onAnimationStart(an))})("@transformMenu.done",function(an){i.eBV(Pt);const Yn=i.XpG();return i.Njj(Yn._onAnimationDone(an))}),i.j41(1,"div",1),i.SdG(2),i.k0s()()}if(2&pn){const Pt=i.XpG();i.HbH(Pt._classList),i.Y8G("id",Pt.panelId)("@transformMenu",Pt._panelAnimationState),i.BMQ("aria-label",Pt.ariaLabel||null)("aria-labelledby",Pt.ariaLabelledby||null)("aria-describedby",Pt.ariaDescribedby||null)}}const ot=new i.nKC("MAT_MENU_PANEL");let Yt=(()=>{class pn{_elementRef=(0,i.WQX)(i.aKT);_document=(0,i.WQX)(we.qQ);_focusMonitor=(0,i.WQX)(a.FN);_parentMenu=(0,i.WQX)(ot,{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(_e.Ah),this._parentMenu?.addItem?.(this)}focus(Pt,en){this._focusMonitor&&Pt?this._focusMonitor.focusVia(this._getHostElement(),Pt,en):this._getHostElement().focus(en),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(Pt){this.disabled&&(Pt.preventDefault(),Pt.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const Pt=this._elementRef.nativeElement.cloneNode(!0),en=Pt.querySelectorAll("mat-icon, .material-icons");for(let an=0;an enter",(0,Ce.i0)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,Ce.iF)({opacity:1,transform:"scale(1)"}))),(0,Ce.kY)("* => void",(0,Ce.i0)("100ms 25ms linear",(0,Ce.iF)({opacity:0})))]),fadeInItems:(0,Ce.hZ)("fadeInItems",[(0,Ce.wk)("showing",(0,Ce.iF)({opacity:1})),(0,Ce.kY)("void => *",[(0,Ce.iF)({opacity:0}),(0,Ce.i0)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Ut=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 lt=(()=>{class pn{_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(Pt){this._xPosition=Pt,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(Pt){this._yPosition=Pt,this.setPositionClasses()}templateRef;items;lazyContent;overlapTrigger;hasBackdrop;set panelClass(Pt){const en=this._previousPanelClass,an={...this._classList};en&&en.length&&en.split(" ").forEach(Yn=>{an[Yn]=!1}),this._previousPanelClass=Pt,Pt&&Pt.length&&(Pt.split(" ").forEach(Yn=>{an[Yn]=!0}),this._elementRef.nativeElement.className=""),this._classList=an}_previousPanelClass;get classList(){return this.panelClass}set classList(Pt){this.panelClass=Pt}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 Pt=(0,i.WQX)(Ut);this.overlayPanelClass=Pt.overlayPanelClass||"",this._xPosition=Pt.xPosition,this._yPosition=Pt.yPosition,this.backdropClass=Pt.backdropClass,this.overlapTrigger=Pt.overlapTrigger,this.hasBackdrop=Pt.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,T.Z)(this._directDescendantItems),(0,k.n)(Pt=>(0,w.h)(...Pt.map(en=>en._focused)))).subscribe(Pt=>this._keyManager.updateActiveItem(Pt)),this._directDescendantItems.changes.subscribe(Pt=>{const en=this._keyManager;if("enter"===this._panelAnimationState&&en.activeItem?._hasFocus()){const an=Pt.toArray(),Yn=Math.max(0,Math.min(an.length-1,en.activeItemIndex||0));an[Yn]&&!an[Yn].disabled?en.setActiveItem(Yn):en.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusRef?.destroy()}_hovered(){return this._directDescendantItems.changes.pipe((0,T.Z)(this._directDescendantItems),(0,k.n)(en=>(0,w.h)(...en.map(an=>an._hovered))))}addItem(Pt){}removeItem(Pt){}_handleKeydown(Pt){const en=Pt.keyCode,an=this._keyManager;switch(en){case c._f:(0,c.rp)(Pt)||(Pt.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(en===c.i7||en===c.n6)&&an.setFocusOrigin("keyboard"),void an.onKeydown(Pt)}}focusFirstItem(Pt="program"){this._firstItemFocusRef?.destroy(),this._firstItemFocusRef=(0,i.mal)(()=>{let en=null;if(this._directDescendantItems.length&&(en=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!en||!en.contains(document.activeElement)){const an=this._keyManager;an.setFocusOrigin(Pt).setFirstItemActive(),!an.activeItem&&en&&en.focus()}},{injector:this._injector})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(Pt){}setPositionClasses(Pt=this.xPosition,en=this.yPosition){this._classList={...this._classList,"mat-menu-before":"before"===Pt,"mat-menu-after":"after"===Pt,"mat-menu-above":"above"===en,"mat-menu-below":"below"===en},this._changeDetectorRef.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(Pt){this._animationDone.next(Pt),this._isAnimating=!1}_onAnimationStart(Pt){this._isAnimating=!0,"enter"===Pt.toState&&0===this._keyManager.activeItemIndex&&(Pt.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,T.Z)(this._allItems)).subscribe(Pt=>{this._directDescendantItems.reset(Pt.filter(en=>en._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}static \u0275fac=function(en){return new(en||pn)};static \u0275cmp=i.VBU({type:pn,selectors:[["mat-menu"]],contentQueries:function(en,an,Yn){if(1&en&&(i.wni(Yn,En,5),i.wni(Yn,Yt,5),i.wni(Yn,Yt,4)),2&en){let Sn;i.mGM(Sn=i.lsd())&&(an.lazyContent=Sn.first),i.mGM(Sn=i.lsd())&&(an._allItems=Sn),i.mGM(Sn=i.lsd())&&(an.items=Sn)}},viewQuery:function(en,an){if(1&en&&i.GBs(i.C4Q,5),2&en){let Yn;i.mGM(Yn=i.lsd())&&(an.templateRef=Yn.first)}},hostVars:3,hostBindings:function(en,an){2&en&&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",Pt=>null==Pt?null:(0,i.L39)(Pt)],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],features:[i.Jv_([{provide:ot,useExisting:pn}]),i.GFd],ngContentSelectors:ft,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel",3,"click","id"],[1,"mat-mdc-menu-content"]],template:function(en,an){1&en&&(i.NAR(),i.DNE(0,_t,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:[wt.transformMenu,wt.fadeInItems]},changeDetection:0})}return pn})();const Xe=new i.nKC("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{const pn=(0,i.WQX)(Se.hJ);return()=>pn.scrollStrategies.reposition()}}),pt={provide:Xe,deps:[Se.hJ],useFactory:function Ge(pn){return()=>pn.scrollStrategies.reposition()}},se=(0,xe.BQ)({passive:!0});let Nt=(()=>{class pn{_overlay=(0,i.WQX)(Se.hJ);_element=(0,i.WQX)(i.aKT);_viewContainerRef=(0,i.WQX)(i.c1b);_menuItemInstance=(0,i.WQX)(Yt,{optional:!0,self:!0});_dir=(0,i.WQX)(Ne.dS,{optional:!0});_focusMonitor=(0,i.WQX)(a.FN);_ngZone=(0,i.WQX)(i.SKi);_scrollStrategy=(0,i.WQX)(Xe);_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=Pt=>{(0,a.w6)(Pt)||(this._openedBy="touch")};_openedBy=void 0;get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(Pt){this.menu=Pt}get menu(){return this._menu}set menu(Pt){Pt!==this._menu&&(this._menu=Pt,this._menuCloseSubscription.unsubscribe(),Pt&&(this._menuCloseSubscription=Pt.close.subscribe(en=>{this._destroyMenu(en),("click"===en||"tab"===en)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(en)})),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 Pt=(0,i.WQX)(ot,{optional:!0});this._parentMaterialMenu=Pt instanceof lt?Pt: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 Pt=this.menu;if(this._menuOpen||!Pt)return;const en=this._createOverlay(Pt),an=en.getConfig(),Yn=an.positionStrategy;this._setPosition(Pt,Yn),an.hasBackdrop=null==Pt.hasBackdrop?!this.triggersSubmenu():Pt.hasBackdrop,en.attach(this._getPortal(Pt)),Pt.lazyContent&&Pt.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(Pt),Pt instanceof lt&&(Pt._startAnimation(),Pt._directDescendantItems.changes.pipe((0,R.Q)(Pt.close)).subscribe(()=>{Yn.withLockedPosition(!1).reapplyLastPosition(),Yn.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(Pt,en){this._focusMonitor&&Pt?this._focusMonitor.focusVia(this._element,Pt,en):this._element.nativeElement.focus(en)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(Pt){if(!this._overlayRef||!this.menuOpen)return;const en=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===Pt||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,en instanceof lt?(en._resetAnimation(),en.lazyContent?en._animationDone.pipe((0,G.p)(an=>"void"===an.toState),(0,Z.s)(1),(0,R.Q)(en.lazyContent._attached)).subscribe({next:()=>en.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),en?.lazyContent?.detach())}_initMenu(Pt){Pt.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,Pt.direction=this.dir,Pt.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setIsMenuOpen(Pt){Pt!==this._menuOpen&&(this._menuOpen=Pt,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(Pt),this._changeDetectorRef.markForCheck())}_createOverlay(Pt){if(!this._overlayRef){const en=this._getOverlayConfig(Pt);this._subscribeToPositions(Pt,en.positionStrategy),this._overlayRef=this._overlay.create(en),this._overlayRef.keydownEvents().subscribe(an=>{this.menu instanceof lt&&this.menu._handleKeydown(an)})}return this._overlayRef}_getOverlayConfig(Pt){return new Se.rR({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:Pt.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:Pt.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir||"ltr"})}_subscribeToPositions(Pt,en){Pt.setPositionClasses&&en.positionChanges.subscribe(an=>{this._ngZone.run(()=>{Pt.setPositionClasses("start"===an.connectionPair.overlayX?"after":"before","top"===an.connectionPair.overlayY?"below":"above")})})}_setPosition(Pt,en){let[an,Yn]="before"===Pt.xPosition?["end","start"]:["start","end"],[Sn,Xt]="above"===Pt.yPosition?["bottom","top"]:["top","bottom"],[Mt,Gt]=[Sn,Xt],[Ot,Ie]=[an,Yn],Me=0;if(this.triggersSubmenu()){if(Ie=an="before"===Pt.xPosition?"start":"end",Yn=Ot="end"===an?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const nt=this._parentMaterialMenu.items.first;this._parentInnerPadding=nt?nt._getHostElement().offsetTop:0}Me="bottom"===Sn?this._parentInnerPadding:-this._parentInnerPadding}}else Pt.overlapTrigger||(Mt="top"===Sn?"bottom":"top",Gt="top"===Xt?"bottom":"top");en.withPositions([{originX:an,originY:Mt,overlayX:Ot,overlayY:Sn,offsetY:Me},{originX:Yn,originY:Mt,overlayX:Ie,overlayY:Sn,offsetY:Me},{originX:an,originY:Gt,overlayX:Ot,overlayY:Xt,offsetY:-Me},{originX:Yn,originY:Gt,overlayX:Ie,overlayY:Xt,offsetY:-Me}])}_menuClosingActions(){const Pt=this._overlayRef.backdropClick(),en=this._overlayRef.detachments(),an=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,A.of)(),Yn=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,G.p)(Sn=>Sn!==this._menuItemInstance),(0,G.p)(()=>this._menuOpen)):(0,A.of)();return(0,w.h)(Pt,an,Yn,en)}_handleMousedown(Pt){(0,a._G)(Pt)||(this._openedBy=0===Pt.button?"mouse":void 0,this.triggersSubmenu()&&Pt.preventDefault())}_handleKeydown(Pt){const en=Pt.keyCode;(en===c.Fm||en===c.t6)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(en===c.LE&&"ltr"===this.dir||en===c.UQ&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(Pt){this.triggersSubmenu()?(Pt.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,G.p)(Pt=>Pt===this._menuItemInstance&&!Pt.disabled),(0,te.c)(0,S.$)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof lt&&this.menu._isAnimating?this.menu._animationDone.pipe((0,Z.s)(1),(0,te.c)(0,S.$),(0,R.Q)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(Pt){return(!this._portal||this._portal.templateRef!==Pt.templateRef)&&(this._portal=new Te.VA(Pt.templateRef,this._viewContainerRef)),this._portal}static \u0275fac=function(en){return new(en||pn)};static \u0275dir=i.FsC({type:pn,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(en,an){1&en&&i.bIt("click",function(Sn){return an._handleClick(Sn)})("mousedown",function(Sn){return an._handleMousedown(Sn)})("keydown",function(Sn){return an._handleKeydown(Sn)}),2&en&&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 pn})(),tn=(()=>{class pn{static \u0275fac=function(en){return new(en||pn)};static \u0275mod=i.$C({type:pn});static \u0275inj=i.G2t({providers:[pt],imports:[_e.pZ,_e.yE,Se.z_,ae.Gj,_e.yE]})}return pn})()},2322:(o,s,r)=>{"use strict";r.d(s,{HM:()=>S,PO:()=>k});var i=r(3107),c=(r(4460),r(2902));function y(R,G){1&R&&i.nrm(0,"div",2)}const w=new i.nKC("MAT_PROGRESS_BAR_DEFAULT_OPTIONS");let S=(()=>{class R{_elementRef=(0,i.WQX)(i.aKT);_ngZone=(0,i.WQX)(i.SKi);_changeDetectorRef=(0,i.WQX)(i.gRc);_animationMode=(0,i.WQX)(i.bc$,{optional:!0});constructor(){const Z=(0,i.WQX)(w,{optional:!0});this._isNoopAnimation="NoopAnimations"===this._animationMode,Z&&(Z.color&&(this.color=this._defaultColor=Z.color),this.mode=Z.mode||this.mode)}_isNoopAnimation=!1;get color(){return this._color||this._defaultColor}set color(Z){this._color=Z}_color;_defaultColor="primary";get value(){return this._value}set value(Z){this._value=T(Z||0),this._changeDetectorRef.markForCheck()}_value=0;get bufferValue(){return this._bufferValue||0}set bufferValue(Z){this._bufferValue=T(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(te){return new(te||R)};static \u0275cmp=i.VBU({type:R,selectors:[["mat-progress-bar"]],hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-mdc-progress-bar","mdc-linear-progress"],hostVars:10,hostBindings:function(te,we){2&te&&(i.BMQ("aria-valuenow",we._isIndeterminate()?null:we.value)("mode",we.mode),i.HbH("mat-"+we.color),i.AVh("_mat-animation-noopable",we._isNoopAnimation)("mdc-linear-progress--animation-ready",!we._isNoopAnimation)("mdc-linear-progress--indeterminate",we._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(te,we){1&te&&(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&te&&(i.R7$(),i.xc7("flex-basis",we._getBufferBarFlexBasis()),i.R7$(),i.vxM("buffer"===we.mode?2:-1),i.R7$(),i.xc7("transform",we._getPrimaryBarTransform()))},styles:[".mat-mdc-progress-bar{display:block;text-align:start}.mat-mdc-progress-bar[mode=query]{transform:scaleX(-1)}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-dots,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__secondary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__bar-inner.mdc-linear-progress__bar-inner{animation:none}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-bar{transition:transform 1ms}.mdc-linear-progress{position:relative;width:100%;transform:translateZ(0);outline:1px solid rgba(0,0,0,0);overflow-x:hidden;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1);height:max(var(--mdc-linear-progress-track-height, 4px),var(--mdc-linear-progress-active-indicator-height, 4px))}@media(forced-colors: active){.mdc-linear-progress{outline-color:CanvasText}}.mdc-linear-progress__bar{position:absolute;top:0;bottom:0;margin:auto 0;width:100%;animation:none;transform-origin:top left;transition:transform 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1);height:var(--mdc-linear-progress-active-indicator-height, 4px)}.mdc-linear-progress--indeterminate .mdc-linear-progress__bar{transition:none}[dir=rtl] .mdc-linear-progress__bar{right:0;transform-origin:center right}.mdc-linear-progress__bar-inner{display:inline-block;position:absolute;width:100%;animation:none;border-top-style:solid;border-color:var(--mdc-linear-progress-active-indicator-color, var(--mat-sys-primary));border-top-width:var(--mdc-linear-progress-active-indicator-height, 4px)}.mdc-linear-progress__buffer{display:flex;position:absolute;top:0;bottom:0;margin:auto 0;width:100%;overflow:hidden;height:var(--mdc-linear-progress-track-height, 4px);border-radius:var(--mdc-linear-progress-track-shape, var(--mat-sys-corner-none))}.mdc-linear-progress__buffer-dots{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E\");background-repeat:repeat-x;flex:auto;transform:rotate(180deg);animation:mdc-linear-progress-buffering 250ms infinite linear;background-color:var(--mdc-linear-progress-track-color, var(--mat-sys-surface-variant))}@media(forced-colors: active){.mdc-linear-progress__buffer-dots{background-color:ButtonBorder}}[dir=rtl] .mdc-linear-progress__buffer-dots{animation:mdc-linear-progress-buffering-reverse 250ms infinite linear;transform:rotate(0)}.mdc-linear-progress__buffer-bar{flex:0 1 100%;transition:flex-basis 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1);background-color:var(--mdc-linear-progress-track-color, var(--mat-sys-surface-variant))}.mdc-linear-progress__primary-bar{transform:scaleX(0)}.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{left:-145.166611%}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation:mdc-linear-progress-primary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-primary-indeterminate-scale 2s infinite linear}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation-name:mdc-linear-progress-primary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{right:-145.166611%;left:auto}.mdc-linear-progress__secondary-bar{display:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{left:-54.888891%;display:block}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation:mdc-linear-progress-secondary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-secondary-indeterminate-scale 2s infinite linear}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation-name:mdc-linear-progress-secondary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{right:-54.888891%;left:auto}@keyframes mdc-linear-progress-buffering{from{transform:rotate(180deg) translateX(calc(var(--mdc-linear-progress-track-height, 4px) * -2.5))}}@keyframes mdc-linear-progress-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mdc-linear-progress-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mdc-linear-progress-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-primary-indeterminate-translate-reverse{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(-83.67142%)}100%{transform:translateX(-200.611057%)}}@keyframes mdc-linear-progress-secondary-indeterminate-translate-reverse{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(-37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(-84.386165%)}100%{transform:translateX(-160.277782%)}}@keyframes mdc-linear-progress-buffering-reverse{from{transform:translateX(-10px)}}"],encapsulation:2,changeDetection:0})}return R})();function T(R,G=0,Z=100){return Math.max(G,Math.min(Z,R))}let k=(()=>{class R{static \u0275fac=function(te){return new(te||R)};static \u0275mod=i.$C({type:R});static \u0275inj=i.G2t({imports:[c.yE]})}return R})()},2675:(o,s,r)=>{"use strict";r.d(s,{VO:()=>en,Ve:()=>Yn,$2:()=>an});var i=r(9666),a=r(3107),c=r(2902),y=r(6071),w=r(8108),C=r(8559),A=r(2944),k=(r(1531),r(3016),r(8447));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 k.B;constructor(Xt=!1,Mt,Gt=!0,Ot){this._multiple=Xt,this._emitChanges=Gt,this.compareWith=Ot,Mt&&Mt.length&&(Xt?Mt.forEach(Ie=>this._markSelected(Ie)):this._markSelected(Mt[0]),this._selectedToEmit.length=0)}select(...Xt){this._verifyValueAssignment(Xt),Xt.forEach(Gt=>this._markSelected(Gt));const Mt=this._hasQueuedChanges();return this._emitChangeEvent(),Mt}deselect(...Xt){this._verifyValueAssignment(Xt),Xt.forEach(Gt=>this._unmarkSelected(Gt));const Mt=this._hasQueuedChanges();return this._emitChangeEvent(),Mt}setSelection(...Xt){this._verifyValueAssignment(Xt);const Mt=this.selected,Gt=new Set(Xt);Xt.forEach(Ie=>this._markSelected(Ie)),Mt.filter(Ie=>!Gt.has(this._getConcreteValue(Ie,Gt))).forEach(Ie=>this._unmarkSelected(Ie));const Ot=this._hasQueuedChanges();return this._emitChangeEvent(),Ot}toggle(Xt){return this.isSelected(Xt)?this.deselect(Xt):this.select(Xt)}clear(Xt=!0){this._unmarkAll();const Mt=this._hasQueuedChanges();return Xt&&this._emitChangeEvent(),Mt}isSelected(Xt){return this._selection.has(this._getConcreteValue(Xt))}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(Xt){this._multiple&&this.selected&&this._selected.sort(Xt)}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(Xt){Xt=this._getConcreteValue(Xt),this.isSelected(Xt)||(this._multiple||this._unmarkAll(),this.isSelected(Xt)||this._selection.add(Xt),this._emitChanges&&this._selectedToEmit.push(Xt))}_unmarkSelected(Xt){Xt=this._getConcreteValue(Xt),this.isSelected(Xt)&&(this._selection.delete(Xt),this._emitChanges&&this._deselectedToEmit.push(Xt))}_unmarkAll(){this.isEmpty()||this._selection.forEach(Xt=>this._unmarkSelected(Xt))}_verifyValueAssignment(Xt){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}_getConcreteValue(Xt,Mt){if(this.compareWith){Mt=Mt??this._selection;for(let Gt of Mt)if(this.compareWith(Xt,Gt))return Gt;return Xt}return Xt}}var Se=r(5919),xe=r(936),ae=r(6381),le=r(7509),ke=r(593),Ue=r(2867),st=r(1483),ft=r(7947),_t=r(6645),ot=r(5424),Yt=r(7610),un=r(1204),wn=r(4460);const $n=["trigger"],En=["panel"],Ze=[[["mat-select-trigger"]],"*"],wt=["mat-select-trigger","*"];function ze(Sn,Xt){if(1&Sn&&(a.j41(0,"span",4),a.EFF(1),a.k0s()),2&Sn){const Mt=a.XpG();a.R7$(),a.JRh(Mt.placeholder)}}function Be(Sn,Xt){1&Sn&&a.SdG(0)}function Ut(Sn,Xt){if(1&Sn&&(a.j41(0,"span",11),a.EFF(1),a.k0s()),2&Sn){const Mt=a.XpG(2);a.R7$(),a.JRh(Mt.triggerValue)}}function Ke(Sn,Xt){if(1&Sn&&(a.j41(0,"span",5),a.DNE(1,Be,1,0)(2,Ut,2,1,"span",11),a.k0s()),2&Sn){const Mt=a.XpG();a.R7$(),a.vxM(Mt.customTrigger?1:2)}}function lt(Sn,Xt){if(1&Sn){const Mt=a.RV6();a.j41(0,"div",12,1),a.bIt("@transformPanel.done",function(Ot){a.eBV(Mt);const Ie=a.XpG();return a.Njj(Ie._panelDoneAnimatingStream.next(Ot.toState))})("keydown",function(Ot){a.eBV(Mt);const Ie=a.XpG();return a.Njj(Ie._handleKeydown(Ot))}),a.SdG(2,1),a.k0s()}if(2&Sn){const Mt=a.XpG();a.ZvI("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",Mt._getPanelTheme(),""),a.Y8G("ngClass",Mt.panelClass)("@transformPanel","showing"),a.BMQ("id",Mt.id+"-panel")("aria-multiselectable",Mt.multiple)("aria-label",Mt.ariaLabel||null)("aria-labelledby",Mt._getPanelAriaLabelledby())}}const Xe={transformPanelWrap:(0,un.hZ)("transformPanelWrap",[(0,un.kY)("* => void",(0,un.P)("@transformPanel",[(0,un.MA)()],{optional:!0}))]),transformPanel:(0,un.hZ)("transformPanel",[(0,un.wk)("void",(0,un.iF)({opacity:0,transform:"scale(1, 0.8)"})),(0,un.kY)("void => showing",(0,un.i0)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,un.iF)({opacity:1,transform:"scale(1, 1)"}))),(0,un.kY)("* => void",(0,un.i0)("100ms linear",(0,un.iF)({opacity:0})))])},qe=new a.nKC("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{const Sn=(0,a.WQX)(i.hJ);return()=>Sn.scrollStrategies.reposition()}}),tn=new a.nKC("MAT_SELECT_CONFIG"),pn={provide:qe,deps:[i.hJ],useFactory:function Nt(Sn){return()=>Sn.scrollStrategies.reposition()}},Wn=new a.nKC("MatSelectTrigger");class Pt{source;value;constructor(Xt,Mt){this.source=Xt,this.value=Mt}}let en=(()=>{class Sn{_viewportRuler=(0,a.WQX)(w.Xj);_changeDetectorRef=(0,a.WQX)(a.gRc);_elementRef=(0,a.WQX)(a.aKT);_dir=(0,a.WQX)(A.dS,{optional:!0});_idGenerator=(0,a.WQX)(C.g7);_parentFormField=(0,a.WQX)(y.xb,{optional:!0});ngControl=(0,a.WQX)(xe.vO,{self:!0,optional:!0});_liveAnnouncer=(0,a.WQX)(C.Ai);_defaultOptions=(0,a.WQX)(tn,{optional:!0});options;optionGroups;customTrigger;_positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}];_scrollOptionIntoView(Mt){const Gt=this.options.toArray()[Mt];if(Gt){const Ot=this.panel.nativeElement,Ie=(0,c.jb)(Mt,this.options,this.optionGroups),Me=Gt._getHostElement();Ot.scrollTop=0===Mt&&1===Ie?0:(0,c.TL)(Me.offsetTop,Me.offsetHeight,Ot.scrollTop,Ot.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(Mt){return new Pt(this,Mt)}_scrollStrategyFactory=(0,a.WQX)(qe);_panelOpen=!1;_compareWith=(Mt,Gt)=>Mt===Gt;_uid=this._idGenerator.getId("mat-select-");_triggerAriaLabelledBy=null;_previousControl;_destroy=new k.B;_errorStateTracker;stateChanges=new k.B;disableAutomaticLabeling=!0;userAriaDescribedBy;_selectionModel;_keyManager;_preferredOverlayOrigin;_overlayWidth;_onChange=()=>{};_onTouched=()=>{};_valueId=this._idGenerator.getId("mat-select-value-");_panelDoneAnimatingStream=new k.B;_scrollStrategy;_overlayPanelClass=this._defaultOptions?.overlayPanelClass||"";get focused(){return this._focused||this._panelOpen}_focused=!1;controlType="mat-select";trigger;panel;_overlayDir;panelClass;disabled=!1;disableRipple=!1;tabIndex=0;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(Mt){this._hideSingleSelectionIndicator=Mt,this._syncParentProperties()}_hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1;get placeholder(){return this._placeholder}set placeholder(Mt){this._placeholder=Mt,this.stateChanges.next()}_placeholder;get required(){return this._required??this.ngControl?.control?.hasValidator(xe.k0.required)??!1}set required(Mt){this._required=Mt,this.stateChanges.next()}_required;get multiple(){return this._multiple}set multiple(Mt){this._multiple=Mt}_multiple=!1;disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1;get compareWith(){return this._compareWith}set compareWith(Mt){this._compareWith=Mt,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(Mt){this._assignValue(Mt)&&this._onChange(Mt)}_value;ariaLabel="";ariaLabelledby;get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(Mt){this._errorStateTracker.matcher=Mt}typeaheadDebounceInterval;sortComparator;get id(){return this._id}set id(Mt){this._id=Mt||this._uid,this.stateChanges.next()}_id;get errorState(){return this._errorStateTracker.errorState}set errorState(Mt){this._errorStateTracker.errorState=Mt}panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto";_initialized=new k.B;optionSelectionChanges=(0,ae.v)(()=>{const Mt=this.options;return Mt?Mt.changes.pipe((0,ke.Z)(Mt),(0,Ue.n)(()=>(0,le.h)(...Mt.map(Gt=>Gt.onSelectionChange)))):this._initialized.pipe((0,Ue.n)(()=>this.optionSelectionChanges))});openedChange=new a.bkB;_openedStream=this.openedChange.pipe((0,st.p)(Mt=>Mt),(0,ft.T)(()=>{}));_closedStream=this.openedChange.pipe((0,st.p)(Mt=>!Mt),(0,ft.T)(()=>{}));selectionChange=new a.bkB;valueChange=new a.bkB;constructor(){const Mt=(0,a.WQX)(c.es),Gt=(0,a.WQX)(xe.cV,{optional:!0}),Ot=(0,a.WQX)(xe.j4,{optional:!0}),Ie=(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(Mt,this.ngControl,Ot,Gt,this.stateChanges),this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=null==Ie?0:parseInt(Ie)||0,this.id=this.id}ngOnInit(){this._selectionModel=new Te(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,_t.F)(),(0,ot.Q)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen)),this._viewportRuler.change().pipe((0,ot.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,ot.Q)(this._destroy)).subscribe(Mt=>{Mt.added.forEach(Gt=>Gt.select()),Mt.removed.forEach(Gt=>Gt.deselect())}),this.options.changes.pipe((0,ke.Z)(null),(0,ot.Q)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const Mt=this._getTriggerAriaLabelledby(),Gt=this.ngControl;if(Mt!==this._triggerAriaLabelledBy){const Ot=this._elementRef.nativeElement;this._triggerAriaLabelledBy=Mt,Mt?Ot.setAttribute("aria-labelledby",Mt):Ot.removeAttribute("aria-labelledby")}Gt&&(this._previousControl!==Gt.control&&(void 0!==this._previousControl&&null!==Gt.disabled&&Gt.disabled!==this.disabled&&(this.disabled=Gt.disabled),this._previousControl=Gt.control),this.updateErrorState())}ngOnChanges(Mt){(Mt.disabled||Mt.userAriaDescribedBy)&&this.stateChanges.next(),Mt.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 Mt=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!Mt)return;const Gt=`${this.id}-panel`;this._trackedModal&&(0,C.Ae)(this._trackedModal,"aria-owns",Gt),(0,C.px)(Mt,"aria-owns",Gt),this._trackedModal=Mt}_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(Mt){this._assignValue(Mt)}registerOnChange(Mt){this._onChange=Mt}registerOnTouched(Mt){this._onTouched=Mt}setDisabledState(Mt){this.disabled=Mt,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 Mt=this._selectionModel.selected.map(Gt=>Gt.viewValue);return this._isRtl()&&Mt.reverse(),Mt.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(Mt){this.disabled||(this.panelOpen?this._handleOpenKeydown(Mt):this._handleClosedKeydown(Mt))}_handleClosedKeydown(Mt){const Gt=Mt.keyCode,Ot=Gt===Se.n6||Gt===Se.i7||Gt===Se.UQ||Gt===Se.LE,Ie=Gt===Se.Fm||Gt===Se.t6,Me=this._keyManager;if(!Me.isTyping()&&Ie&&!(0,Se.rp)(Mt)||(this.multiple||Mt.altKey)&&Ot)Mt.preventDefault(),this.open();else if(!this.multiple){const nt=this.selected;Me.onKeydown(Mt);const W=this.selected;W&&nt!==W&&this._liveAnnouncer.announce(W.viewValue,1e4)}}_handleOpenKeydown(Mt){const Gt=this._keyManager,Ot=Mt.keyCode,Ie=Ot===Se.n6||Ot===Se.i7,Me=Gt.isTyping();if(Ie&&Mt.altKey)Mt.preventDefault(),this.close();else if(Me||Ot!==Se.Fm&&Ot!==Se.t6||!Gt.activeItem||(0,Se.rp)(Mt))if(!Me&&this._multiple&&Ot===Se.A&&Mt.ctrlKey){Mt.preventDefault();const nt=this.options.some(W=>!W.disabled&&!W.selected);this.options.forEach(W=>{W.disabled||(nt?W.select():W.deselect())})}else{const nt=Gt.activeItemIndex;Gt.onKeydown(Mt),this._multiple&&Ie&&Mt.shiftKey&&Gt.activeItem&&Gt.activeItemIndex!==nt&&Gt.activeItem._selectViaInteraction()}else Mt.preventDefault(),Gt.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,Yt.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(Mt){if(this.options.forEach(Gt=>Gt.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&Mt)Array.isArray(Mt),Mt.forEach(Gt=>this._selectOptionByValue(Gt)),this._sortValues();else{const Gt=this._selectOptionByValue(Mt);Gt?this._keyManager.updateActiveItem(Gt):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(Mt){const Gt=this.options.find(Ot=>{if(this._selectionModel.isSelected(Ot))return!1;try{return null!=Ot.value&&this._compareWith(Ot.value,Mt)}catch{return!1}});return Gt&&this._selectionModel.select(Gt),Gt}_assignValue(Mt){return!!(Mt!==this._value||this._multiple&&Array.isArray(Mt))&&(this.options&&this._setSelectionByValue(Mt),this._value=Mt,!0)}_skipPredicate=Mt=>!this.panelOpen&&Mt.disabled;_getOverlayWidth(Mt){return"auto"===this.panelWidth?(Mt instanceof i.$Q?Mt.elementRef:Mt||this._elementRef).nativeElement.getBoundingClientRect().width:null===this.panelWidth?"":this.panelWidth}_syncParentProperties(){if(this.options)for(const Mt of this.options)Mt._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 Mt=(0,le.h)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,ot.Q)(Mt)).subscribe(Gt=>{this._onSelect(Gt.source,Gt.isUserInput),Gt.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,le.h)(...this.options.map(Gt=>Gt._stateChanges)).pipe((0,ot.Q)(Mt)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(Mt,Gt){const Ot=this._selectionModel.isSelected(Mt);null!=Mt.value||this._multiple?(Ot!==Mt.selected&&(Mt.selected?this._selectionModel.select(Mt):this._selectionModel.deselect(Mt)),Gt&&this._keyManager.setActiveItem(Mt),this.multiple&&(this._sortValues(),Gt&&this.focus())):(Mt.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(Mt.value)),Ot!==this._selectionModel.isSelected(Mt)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const Mt=this.options.toArray();this._selectionModel.sort((Gt,Ot)=>this.sortComparator?this.sortComparator(Gt,Ot,Mt):Mt.indexOf(Gt)-Mt.indexOf(Ot)),this.stateChanges.next()}}_propagateChanges(Mt){let Gt;Gt=this.multiple?this.selected.map(Ot=>Ot.value):this.selected?this.selected.value:Mt,this._value=Gt,this.valueChange.emit(Gt),this._onChange(Gt),this.selectionChange.emit(this._getChangeEvent(Gt)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let Mt=-1;for(let Gt=0;Gt0}focus(Mt){this._elementRef.nativeElement.focus(Mt)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const Mt=this._parentFormField?.getLabelId()||null;return this.ariaLabelledby?(Mt?Mt+" ":"")+this.ariaLabelledby:Mt}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const Mt=this._parentFormField?.getLabelId();let Gt=(Mt?Mt+" ":"")+this._valueId;return this.ariaLabelledby&&(Gt+=" "+this.ariaLabelledby),Gt}_panelDoneAnimating(Mt){this.openedChange.emit(Mt)}setDescribedByIds(Mt){Mt.length?this._elementRef.nativeElement.setAttribute("aria-describedby",Mt.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(Gt){return new(Gt||Sn)};static \u0275cmp=a.VBU({type:Sn,selectors:[["mat-select"]],contentQueries:function(Gt,Ot,Ie){if(1&Gt&&(a.wni(Ie,Wn,5),a.wni(Ie,c.wT,5),a.wni(Ie,c.QC,5)),2&Gt){let Me;a.mGM(Me=a.lsd())&&(Ot.customTrigger=Me.first),a.mGM(Me=a.lsd())&&(Ot.options=Me),a.mGM(Me=a.lsd())&&(Ot.optionGroups=Me)}},viewQuery:function(Gt,Ot){if(1&Gt&&(a.GBs($n,5),a.GBs(En,5),a.GBs(i.WB,5)),2&Gt){let Ie;a.mGM(Ie=a.lsd())&&(Ot.trigger=Ie.first),a.mGM(Ie=a.lsd())&&(Ot.panel=Ie.first),a.mGM(Ie=a.lsd())&&(Ot._overlayDir=Ie.first)}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(Gt,Ot){1&Gt&&a.bIt("keydown",function(Me){return Ot._handleKeydown(Me)})("focus",function(){return Ot._onFocus()})("blur",function(){return Ot._onBlur()}),2&Gt&&(a.BMQ("id",Ot.id)("tabindex",Ot.disabled?-1:Ot.tabIndex)("aria-controls",Ot.panelOpen?Ot.id+"-panel":null)("aria-expanded",Ot.panelOpen)("aria-label",Ot.ariaLabel||null)("aria-required",Ot.required.toString())("aria-disabled",Ot.disabled.toString())("aria-invalid",Ot.errorState)("aria-activedescendant",Ot._getAriaActiveDescendant()),a.AVh("mat-mdc-select-disabled",Ot.disabled)("mat-mdc-select-invalid",Ot.errorState)("mat-mdc-select-required",Ot.required)("mat-mdc-select-empty",Ot.empty)("mat-mdc-select-multiple",Ot.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",Mt=>null==Mt?0:(0,a.Udg)(Mt)],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:Sn},{provide:c.is,useExisting:Sn}]),a.GFd,a.OA$],ngContentSelectors:wt,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(Gt,Ot){if(1&Gt){const Ie=a.RV6();a.NAR(Ze),a.j41(0,"div",2,0),a.bIt("click",function(){return a.eBV(Ie),a.Njj(Ot.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,lt,3,9,"ng-template",10),a.bIt("backdropClick",function(){return a.eBV(Ie),a.Njj(Ot.close())})("attach",function(){return a.eBV(Ie),a.Njj(Ot._onAttached())})("detach",function(){return a.eBV(Ie),a.Njj(Ot.close())})}if(2&Gt){const Ie=a.sdS(1);a.R7$(3),a.BMQ("id",Ot._valueId),a.R7$(),a.vxM(Ot.empty?4:5),a.R7$(6),a.Y8G("cdkConnectedOverlayPanelClass",Ot._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",Ot._scrollStrategy)("cdkConnectedOverlayOrigin",Ot._preferredOverlayOrigin||Ie)("cdkConnectedOverlayOpen",Ot.panelOpen)("cdkConnectedOverlayPositions",Ot._positions)("cdkConnectedOverlayWidth",Ot._overlayWidth)}},dependencies:[i.$Q,i.WB,wn.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:[Xe.transformPanel]},changeDetection:0})}return Sn})(),an=(()=>{class Sn{static \u0275fac=function(Gt){return new(Gt||Sn)};static \u0275dir=a.FsC({type:Sn,selectors:[["mat-select-trigger"]],features:[a.Jv_([{provide:Wn,useExisting:Sn}])]})}return Sn})(),Yn=(()=>{class Sn{static \u0275fac=function(Gt){return new(Gt||Sn)};static \u0275mod=a.$C({type:Sn});static \u0275inj=a.G2t({providers:[pn],imports:[i.z_,c.Sy,c.yE,w.Gj,y.RG,c.Sy,c.yE]})}return Sn})()},5785:(o,s,r)=>{"use strict";r.d(s,{$C:()=>Be,$l:()=>wt,qe:()=>ze,vg:()=>Xe});var i=r(8108),a=r(3107),c=r(2902),y=r(8559),w=r(2944),C=r(3022),A=r(5919),S=r(2147),T=r(4460),k=r(8447),R=r(909),G=r(7509),Z=r(1483),te=r(7947),we=r(6590),_e=r(5424),pe=r(7610),Te=r(593),Ce=r(8627),Ne=r(1204);const Se=["*"],xe=["content"],ae=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],le=["mat-drawer","mat-drawer-content","*"];function ke(Ge,pt){if(1&Ge){const se=a.RV6();a.j41(0,"div",1),a.bIt("click",function(){a.eBV(se);const Nt=a.XpG();return a.Njj(Nt._onBackdropClicked())}),a.k0s()}if(2&Ge){const se=a.XpG();a.AVh("mat-drawer-shown",se._isShowingBackdrop())}}function Ue(Ge,pt){1&Ge&&(a.j41(0,"mat-drawer-content"),a.SdG(1,2),a.k0s())}const un={transformDrawer:(0,Ne.hZ)("transform",[(0,Ne.wk)("open, open-instant",(0,Ne.iF)({transform:"none",visibility:"visible"})),(0,Ne.wk)("void",(0,Ne.iF)({"box-shadow":"none",visibility:"hidden"})),(0,Ne.kY)("void => open-instant",(0,Ne.i0)("0ms")),(0,Ne.kY)("void <=> open, open-instant => void",(0,Ne.i0)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},$n=new a.nKC("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function Ze(){return!1}}),En=new a.nKC("MAT_DRAWER_CONTAINER");let wt=(()=>{class Ge extends i.uv{_platform=(0,a.WQX)(S.OD);_changeDetectorRef=(0,a.WQX)(a.gRc);_container=(0,a.WQX)(Be);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:qe}=this._container;return null!=se&&"over"!==se.mode&&se.opened||null!=qe&&"over"!==qe.mode&&qe.opened}static \u0275fac=function(qe){return new(qe||Ge)};static \u0275cmp=a.VBU({type:Ge,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:6,hostBindings:function(qe,Nt){2&qe&&(a.xc7("margin-left",Nt._container._contentMargins.left,"px")("margin-right",Nt._container._contentMargins.right,"px"),a.AVh("mat-drawer-content-hidden",Nt._shouldBeHidden()))},features:[a.Jv_([{provide:i.uv,useExisting:Ge}]),a.Vt3],ngContentSelectors:Se,decls:1,vars:0,template:function(qe,Nt){1&qe&&(a.NAR(),a.SdG(0))},encapsulation:2,changeDetection:0})}return Ge})(),ze=(()=>{class Ge{_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)(T.qQ,{optional:!0});_container=(0,a.WQX)(En,{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 k.B;_animationEnd=new k.B;_animationState="void";openedChange=new a.bkB(!0);_openedStream=this.openedChange.pipe((0,Z.p)(se=>se),(0,te.T)(()=>{}));openedStart=this._animationStarted.pipe((0,Z.p)(se=>se.fromState!==se.toState&&0===se.toState.indexOf("open")),(0,we.u)(void 0));_closedStream=this.openedChange.pipe((0,Z.p)(se=>!se),(0,te.T)(()=>{}));closedStart=this._animationStarted.pipe((0,Z.p)(se=>se.fromState!==se.toState&&"void"===se.toState),(0,we.u)(void 0));_destroyed=new k.B;onPositionChanged=new a.bkB;_content;_modeChanged=new k.B;_injector=(0,a.WQX)(a.zZn);_changeDetectorRef=(0,a.WQX)(a.gRc);constructor(){this.openedChange.pipe((0,_e.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,R.R)(this._elementRef.nativeElement,"keydown").pipe((0,Z.p)(se=>se.keyCode===A._f&&!this.disableClose&&!(0,A.rp)(se)),(0,_e.Q)(this._destroyed)).subscribe(se=>this._ngZone.run(()=>{this.close(),se.stopPropagation(),se.preventDefault()}))}),this._animationEnd.subscribe(se=>{const{fromState:qe,toState:Nt}=se;(0===Nt.indexOf("open")&&"void"===qe||"void"===Nt&&0===qe.indexOf("open"))&&this.openedChange.emit(this._opened)})}_forceFocus(se,qe){this._interactivityChecker.isFocusable(se)||(se.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const Nt=()=>{se.removeEventListener("blur",Nt),se.removeEventListener("mousedown",Nt),se.removeAttribute("tabindex")};se.addEventListener("blur",Nt),se.addEventListener("mousedown",Nt)})),se.focus(qe)}_focusByCssSelector(se,qe){let Nt=this._elementRef.nativeElement.querySelector(se);Nt&&this._forceFocus(Nt,qe)}_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,qe){se&&qe&&(this._openedVia=qe);const Nt=this._setOpen(se,!se&&this._isFocusWithinDrawer(),this._openedVia||"program");return se||(this._openedVia=null),Nt}_setOpen(se,qe,Nt){return this._opened=se,se?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",qe&&this._restoreFocus(Nt)),this._changeDetectorRef.markForCheck(),this._updateFocusTrapState(),new Promise(tn=>{this.openedChange.pipe((0,pe.s)(1)).subscribe(pn=>tn(pn?"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 qe=this._elementRef.nativeElement,Nt=qe.parentNode;"end"===se?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),Nt.insertBefore(this._anchor,qe)),Nt.appendChild(qe)):this._anchor&&this._anchor.parentNode.insertBefore(qe,this._anchor)}static \u0275fac=function(qe){return new(qe||Ge)};static \u0275cmp=a.VBU({type:Ge,selectors:[["mat-drawer"]],viewQuery:function(qe,Nt){if(1&qe&&a.GBs(xe,5),2&qe){let tn;a.mGM(tn=a.lsd())&&(Nt._content=tn.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(qe,Nt){1&qe&&a.Kam("@transform.start",function(pn){return Nt._animationStarted.next(pn)})("@transform.done",function(pn){return Nt._animationEnd.next(pn)}),2&qe&&(a.zvX("@transform",Nt._animationState),a.BMQ("align",null),a.AVh("mat-drawer-end","end"===Nt.position)("mat-drawer-over","over"===Nt.mode)("mat-drawer-push","push"===Nt.mode)("mat-drawer-side","side"===Nt.mode)("mat-drawer-opened",Nt.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:Se,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(qe,Nt){1&qe&&(a.NAR(),a.j41(0,"div",1,0),a.SdG(2),a.k0s())},dependencies:[i.uv],encapsulation:2,data:{animation:[un.transformDrawer]},changeDetection:0})}return Ge})(),Be=(()=>{class Ge{_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 k.B;_doCheckSubject=new k.B;_contentMargins={left:null,right:null};_contentMarginChanges=new k.B;get scrollable(){return this._userContent||this._content}_injector=(0,a.WQX)(a.zZn);constructor(){const se=(0,a.WQX)(i.Xj);this._dir?.change.pipe((0,_e.Q)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),se.change().pipe((0,_e.Q)(this._destroyed)).subscribe(()=>this.updateContentMargins())}ngAfterContentInit(){this._allDrawers.changes.pipe((0,Te.Z)(this._allDrawers),(0,_e.Q)(this._destroyed)).subscribe(se=>{this._drawers.reset(se.filter(qe=>!qe._container||qe._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,Ce.B)(10),(0,_e.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,qe=0;if(this._left&&this._left.opened)if("side"==this._left.mode)se+=this._left._getWidth();else if("push"==this._left.mode){const Nt=this._left._getWidth();se+=Nt,qe-=Nt}if(this._right&&this._right.opened)if("side"==this._right.mode)qe+=this._right._getWidth();else if("push"==this._right.mode){const Nt=this._right._getWidth();qe+=Nt,se-=Nt}se=se||null,qe=qe||null,(se!==this._contentMargins.left||qe!==this._contentMargins.right)&&(this._contentMargins={left:se,right:qe},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)(qe=>qe.fromState!==qe.toState),(0,_e.Q)(this._drawers.changes)).subscribe(qe=>{"open-instant"!==qe.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==se.mode&&se.openedChange.pipe((0,_e.Q)(this._drawers.changes)).subscribe(()=>this._setContainerClass(se.opened))}_watchDrawerPosition(se){se&&se.onPositionChanged.pipe((0,_e.Q)(this._drawers.changes)).subscribe(()=>{(0,a.mal)(()=>{this._validateDrawers()},{injector:this._injector,phase:a.wjH.Read})})}_watchDrawerMode(se){se&&se._modeChanged.pipe((0,_e.Q)((0,G.h)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(se){const qe=this._element.nativeElement.classList,Nt="mat-drawer-container-has-open";se?qe.add(Nt):qe.remove(Nt)}_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(qe){return new(qe||Ge)};static \u0275cmp=a.VBU({type:Ge,selectors:[["mat-drawer-container"]],contentQueries:function(qe,Nt,tn){if(1&qe&&(a.wni(tn,wt,5),a.wni(tn,ze,5)),2&qe){let pn;a.mGM(pn=a.lsd())&&(Nt._content=pn.first),a.mGM(pn=a.lsd())&&(Nt._allDrawers=pn)}},viewQuery:function(qe,Nt){if(1&qe&&a.GBs(wt,5),2&qe){let tn;a.mGM(tn=a.lsd())&&(Nt._userContent=tn.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(qe,Nt){2&qe&&a.AVh("mat-drawer-container-explicit-backdrop",Nt._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[a.Jv_([{provide:En,useExisting:Ge}])],ngContentSelectors:le,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(qe,Nt){1&qe&&(a.NAR(ae),a.DNE(0,ke,1,2,"div",0),a.SdG(1),a.SdG(2,1),a.DNE(3,Ue,2,0,"mat-drawer-content")),2&qe&&(a.vxM(Nt.hasBackdrop?0:-1),a.R7$(3),a.vxM(Nt._content?-1:3))},dependencies:[wt],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 Ge})(),Xe=(()=>{class Ge{static \u0275fac=function(qe){return new(qe||Ge)};static \u0275mod=a.$C({type:Ge});static \u0275inj=a.G2t({imports:[c.yE,i.Gj,i.Gj,c.yE]})}return Ge})()},7712:(o,s,r)=>{"use strict";r.d(s,{oV:()=>ot,uc:()=>wn});var i=r(5424),a=r(3022),c=r(5919),y=r(3107),w=r(4460),C=r(2147),A=r(8559),S=r(2944),T=r(9666),k=r(8108),R=r(6192),G=r(8447),te=(r(1204),r(2902));const we=["tooltip"],Te=new y.nKC("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{const $n=(0,y.WQX)(T.hJ);return()=>$n.scrollStrategies.reposition({scrollThrottle:20})}}),Ne={provide:Te,deps:[T.hJ],useFactory:function Ce($n){return()=>$n.scrollStrategies.reposition({scrollThrottle:20})}},xe=new y.nKC("mat-tooltip-default-options",{providedIn:"root",factory:function Se(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),le="tooltip-panel",ke=(0,C.BQ)({passive:!0});let ot=(()=>{class $n{_overlay=(0,y.WQX)(T.hJ);_elementRef=(0,y.WQX)(y.aKT);_scrollDispatcher=(0,y.WQX)(k.R);_viewContainerRef=(0,y.WQX)(y.c1b);_ngZone=(0,y.WQX)(y.SKi);_platform=(0,y.WQX)(C.OD);_ariaDescriber=(0,y.WQX)(A.vr);_focusMonitor=(0,y.WQX)(A.FN);_dir=(0,y.WQX)(S.dS);_injector=(0,y.WQX)(y.zZn);_defaultOptions=(0,y.WQX)(xe,{optional:!0});_overlayRef;_tooltipInstance;_portal;_position="below";_positionAtOrigin=!1;_disabled=!1;_tooltipClass;_scrollStrategy=(0,y.WQX)(Te);_viewInitialized=!1;_pointerExitEventsInitialized=!1;_tooltipComponent=Yt;_viewportMargin=8;_currentPosition;_cssClassPrefix="mat-mdc";_ariaDescriptionPending;get position(){return this._position}set position(Ze){Ze!==this._position&&(this._position=Ze,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(Ze){this._positionAtOrigin=(0,a.he)(Ze),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(Ze){const wt=(0,a.he)(Ze);this._disabled!==wt&&(this._disabled=wt,wt?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message))}get showDelay(){return this._showDelay}set showDelay(Ze){this._showDelay=(0,a.OE)(Ze)}_showDelay;get hideDelay(){return this._hideDelay}set hideDelay(Ze){this._hideDelay=(0,a.OE)(Ze),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}_hideDelay;touchGestures="auto";get message(){return this._message}set message(Ze){const wt=this._message;this._message=null!=Ze?String(Ze).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(wt)}_message="";get tooltipClass(){return this._tooltipClass}set tooltipClass(Ze){this._tooltipClass=Ze,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}_passiveListeners=[];_document=(0,y.WQX)(w.qQ);_touchstartTimeout=null;_destroyed=new G.B;constructor(){const Ze=this._defaultOptions;Ze&&(this._showDelay=Ze.showDelay,this._hideDelay=Ze.hideDelay,Ze.position&&(this.position=Ze.position),Ze.positionAtOrigin&&(this.positionAtOrigin=Ze.positionAtOrigin),Ze.touchGestures&&(this.touchGestures=Ze.touchGestures),Ze.tooltipClass&&(this.tooltipClass=Ze.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(Ze=>{Ze?"keyboard"===Ze&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const Ze=this._elementRef.nativeElement;this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([wt,ze])=>{Ze.removeEventListener(wt,ze,ke)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(Ze,this.message,"tooltip"),this._focusMonitor.stopMonitoring(Ze)}show(Ze=this.showDelay,wt){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const ze=this._createOverlay(wt);this._detach(),this._portal=this._portal||new R.A8(this._tooltipComponent,this._viewContainerRef);const Be=this._tooltipInstance=ze.attach(this._portal).instance;Be._triggerElement=this._elementRef.nativeElement,Be._mouseLeaveHideDelay=this._hideDelay,Be.afterHidden().pipe((0,i.Q)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),Be.show(Ze)}hide(Ze=this.hideDelay){const wt=this._tooltipInstance;wt&&(wt.isVisible()?wt.hide(Ze):(wt._cancelPendingAnimations(),this._detach()))}toggle(Ze){this._isTooltipVisible()?this.hide():this.show(void 0,Ze)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(Ze){if(this._overlayRef){const Be=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!Ze)&&Be._origin instanceof y.aKT)return this._overlayRef;this._detach()}const wt=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),ze=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin&&Ze||this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(wt);return ze.positionChanges.pipe((0,i.Q)(this._destroyed)).subscribe(Be=>{this._updateCurrentPositionClass(Be.connectionPair),this._tooltipInstance&&Be.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:ze,panelClass:`${this._cssClassPrefix}-${le}`,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(Be=>{this._isTooltipVisible()&&Be.keyCode===c._f&&!(0,c.rp)(Be)&&(Be.preventDefault(),Be.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(Ze){const wt=Ze.getConfig().positionStrategy,ze=this._getOrigin(),Be=this._getOverlayPosition();wt.withPositions([this._addOffset({...ze.main,...Be.main}),this._addOffset({...ze.fallback,...Be.fallback})])}_addOffset(Ze){const ze=!this._dir||"ltr"==this._dir.value;return"top"===Ze.originY?Ze.offsetY=-8:"bottom"===Ze.originY?Ze.offsetY=8:"start"===Ze.originX?Ze.offsetX=ze?-8:8:"end"===Ze.originX&&(Ze.offsetX=ze?8:-8),Ze}_getOrigin(){const Ze=!this._dir||"ltr"==this._dir.value,wt=this.position;let ze;"above"==wt||"below"==wt?ze={originX:"center",originY:"above"==wt?"top":"bottom"}:"before"==wt||"left"==wt&&Ze||"right"==wt&&!Ze?ze={originX:"start",originY:"center"}:("after"==wt||"right"==wt&&Ze||"left"==wt&&!Ze)&&(ze={originX:"end",originY:"center"});const{x:Be,y:Ut}=this._invertPosition(ze.originX,ze.originY);return{main:ze,fallback:{originX:Be,originY:Ut}}}_getOverlayPosition(){const Ze=!this._dir||"ltr"==this._dir.value,wt=this.position;let ze;"above"==wt?ze={overlayX:"center",overlayY:"bottom"}:"below"==wt?ze={overlayX:"center",overlayY:"top"}:"before"==wt||"left"==wt&&Ze||"right"==wt&&!Ze?ze={overlayX:"end",overlayY:"center"}:("after"==wt||"right"==wt&&Ze||"left"==wt&&!Ze)&&(ze={overlayX:"start",overlayY:"center"});const{x:Be,y:Ut}=this._invertPosition(ze.overlayX,ze.overlayY);return{main:ze,fallback:{overlayX:Be,overlayY:Ut}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),(0,y.mal)(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(Ze){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=Ze,this._tooltipInstance._markForCheck())}_invertPosition(Ze,wt){return"above"===this.position||"below"===this.position?"top"===wt?wt="bottom":"bottom"===wt&&(wt="top"):"end"===Ze?Ze="start":"start"===Ze&&(Ze="end"),{x:Ze,y:wt}}_updateCurrentPositionClass(Ze){const{overlayY:wt,originX:ze,originY:Be}=Ze;let Ut;if(Ut="center"===wt?this._dir&&"rtl"===this._dir.value?"end"===ze?"left":"right":"start"===ze?"left":"right":"bottom"===wt&&"top"===Be?"above":"below",Ut!==this._currentPosition){const Ke=this._overlayRef;if(Ke){const lt=`${this._cssClassPrefix}-${le}-`;Ke.removePanelClass(lt+this._currentPosition),Ke.addPanelClass(lt+Ut)}this._currentPosition=Ut}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",Ze=>{let wt;this._setupPointerExitEventsIfNeeded(),void 0!==Ze.x&&void 0!==Ze.y&&(wt=Ze),this.show(void 0,wt)}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",Ze=>{const wt=Ze.targetTouches?.[0],ze=wt?{x:wt.clientX,y:wt.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 Ze=[];if(this._platformSupportsMouseEvents())Ze.push(["mouseleave",wt=>{const ze=wt.relatedTarget;(!ze||!this._overlayRef?.overlayElement.contains(ze))&&this.hide()}],["wheel",wt=>this._wheelListener(wt)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const wt=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions?.touchendHideDelay)};Ze.push(["touchend",wt],["touchcancel",wt])}this._addListeners(Ze),this._passiveListeners.push(...Ze)}_addListeners(Ze){Ze.forEach(([wt,ze])=>{this._elementRef.nativeElement.addEventListener(wt,ze,ke)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(Ze){if(this._isTooltipVisible()){const wt=this._document.elementFromPoint(Ze.clientX,Ze.clientY),ze=this._elementRef.nativeElement;wt!==ze&&!ze.contains(wt)&&this.hide()}}_disableNativeGesturesIfNecessary(){const Ze=this.touchGestures;if("off"!==Ze){const wt=this._elementRef.nativeElement,ze=wt.style;("on"===Ze||"INPUT"!==wt.nodeName&&"TEXTAREA"!==wt.nodeName)&&(ze.userSelect=ze.msUserSelect=ze.webkitUserSelect=ze.MozUserSelect="none"),("on"===Ze||!wt.draggable)&&(ze.webkitUserDrag="none"),ze.touchAction="none",ze.webkitTapHighlightColor="transparent"}}_syncAriaDescription(Ze){this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,Ze,"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(wt){return new(wt||$n)};static \u0275dir=y.FsC({type:$n,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(wt,ze){2&wt&&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})(),Yt=(()=>{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 Ze=(0,y.WQX)(y.bc$,{optional:!0});this._animationsDisabled="NoopAnimations"===Ze}show(Ze){null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},Ze)}hide(Ze){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},Ze)}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:Ze}){(!Ze||!this._triggerElement.contains(Ze))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){const Ze=this._elementRef.nativeElement.getBoundingClientRect();return Ze.height>24&&Ze.width>=200}_handleAnimationEnd({animationName:Ze}){(Ze===this._showAnimation||Ze===this._hideAnimation)&&this._finalizeAnimation(Ze===this._showAnimation)}_cancelPendingAnimations(){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(Ze){Ze?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(Ze){const wt=this._tooltip.nativeElement,ze=this._showAnimation,Be=this._hideAnimation;if(wt.classList.remove(Ze?Be:ze),wt.classList.add(Ze?ze:Be),this._isVisible!==Ze&&(this._isVisible=Ze,this._changeDetectorRef.markForCheck()),Ze&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const Ut=getComputedStyle(wt);("0s"===Ut.getPropertyValue("animation-duration")||"none"===Ut.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}Ze&&this._onShow(),this._animationsDisabled&&(wt.classList.add("_mat-animation-noopable"),this._finalizeAnimation(Ze))}static \u0275fac=function(wt){return new(wt||$n)};static \u0275cmp=y.VBU({type:$n,selectors:[["mat-tooltip-component"]],viewQuery:function(wt,ze){if(1&wt&&y.GBs(we,7),2&wt){let Be;y.mGM(Be=y.lsd())&&(ze._tooltip=Be.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(wt,ze){1&wt&&y.bIt("mouseleave",function(Ut){return ze._handleMouseLeave(Ut)})},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(wt,ze){if(1&wt){const Be=y.RV6();y.j41(0,"div",1,0),y.bIt("animationend",function(Ke){return y.eBV(Be),y.Njj(ze._handleAnimationEnd(Ke))}),y.j41(2,"div",2),y.EFF(3),y.k0s()()}2&wt&&(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})(),wn=(()=>{class $n{static \u0275fac=function(wt){return new(wt||$n)};static \u0275mod=y.$C({type:$n});static \u0275inj=y.G2t({providers:[Ne],imports:[A.Pd,T.z_,te.yE,te.yE,k.Gj]})}return $n})()},6388:(o,s,r)=>{"use strict";r.d(s,{B7:()=>_t,B8:()=>lt,hE:()=>Xt,up:()=>Zt});var i=r(4460),a=r(3107);class c extends i.VF{supportsDOMEvents=!0}class y extends c{static makeCurrent(){(0,i.ZD)(new y)}onAndCancel(Rt,dt,Bt){return Rt.addEventListener(dt,Bt),()=>{Rt.removeEventListener(dt,Bt)}}dispatchEvent(Rt,dt){Rt.dispatchEvent(dt)}remove(Rt){Rt.remove()}createElement(Rt,dt){return(dt=dt||this.getDefaultDocument()).createElement(Rt)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(Rt){return Rt.nodeType===Node.ELEMENT_NODE}isShadowRoot(Rt){return Rt instanceof DocumentFragment}getGlobalEventTarget(Rt,dt){return"window"===dt?window:"document"===dt?Rt:"body"===dt?Rt.body:null}getBaseHref(Rt){const dt=function C(){return w=w||document.querySelector("base"),w?w.getAttribute("href"):null}();return null==dt?null:function A(Fe){return new URL(Fe,document.baseURI).pathname}(dt)}resetBaseElement(){w=null}getUserAgent(){return window.navigator.userAgent}getCookie(Rt){return(0,i._b)(document.cookie,Rt)}}let w=null,T=(()=>{class Fe{build(){return new XMLHttpRequest}static \u0275fac=function(Bt){return new(Bt||Fe)};static \u0275prov=a.jDH({token:Fe,factory:Fe.\u0275fac})}return Fe})();const k=new a.nKC("");let R=(()=>{class Fe{_zone;_plugins;_eventNameToPlugin=new Map;constructor(dt,Bt){this._zone=Bt,dt.forEach(_n=>{_n.manager=this}),this._plugins=dt.slice().reverse()}addEventListener(dt,Bt,_n){return this._findPluginFor(Bt).addEventListener(dt,Bt,_n)}getZone(){return this._zone}_findPluginFor(dt){let Bt=this._eventNameToPlugin.get(dt);if(Bt)return Bt;if(Bt=this._plugins.find(or=>or.supports(dt)),!Bt)throw new a.wOt(5101,!1);return this._eventNameToPlugin.set(dt,Bt),Bt}static \u0275fac=function(Bt){return new(Bt||Fe)(a.KVO(k),a.KVO(a.SKi))};static \u0275prov=a.jDH({token:Fe,factory:Fe.\u0275fac})}return Fe})();class G{_doc;constructor(Rt){this._doc=Rt}manager}const Z="ng-app-id";function te(Fe){for(const Rt of Fe)Rt.remove()}function we(Fe,Rt){const dt=Rt.createElement("style");return dt.textContent=Fe,dt}function pe(Fe,Rt){const dt=Rt.createElement("link");return dt.setAttribute("rel","stylesheet"),dt.setAttribute("href",Fe),dt}let Te=(()=>{class Fe{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(dt,Bt,_n,or={}){this.doc=dt,this.appId=Bt,this.nonce=_n,this.isServer=(0,i.Vy)(or),function _e(Fe,Rt,dt){const Bt=Fe.head?.querySelectorAll(`style[${Z}="${Rt}"]`);if(Bt)for(const _n of Bt)_n.textContent&&(_n.removeAttribute(Z),dt.set(_n.textContent,{usage:0,elements:[_n]}))}(dt,Bt,this.inline),this.hosts.add(dt.head)}addStyles(dt,Bt){for(const _n of dt)this.addUsage(_n,this.inline,we);Bt?.forEach(_n=>this.addUsage(_n,this.external,pe))}removeStyles(dt,Bt){for(const _n of dt)this.removeUsage(_n,this.inline);Bt?.forEach(_n=>this.removeUsage(_n,this.external))}addUsage(dt,Bt,_n){const or=Bt.get(dt);or?or.usage++:Bt.set(dt,{usage:1,elements:[...this.hosts].map(Mr=>this.addElement(Mr,_n(dt,this.doc)))})}removeUsage(dt,Bt){const _n=Bt.get(dt);_n&&(_n.usage--,_n.usage<=0&&(te(_n.elements),Bt.delete(dt)))}ngOnDestroy(){for(const[,{elements:dt}]of[...this.inline,...this.external])te(dt);this.hosts.clear()}addHost(dt){this.hosts.add(dt);for(const[Bt,{elements:_n}]of this.inline)_n.push(this.addElement(dt,we(Bt,this.doc)));for(const[Bt,{elements:_n}]of this.external)_n.push(this.addElement(dt,pe(Bt,this.doc)))}removeHost(dt){this.hosts.delete(dt)}addElement(dt,Bt){return this.nonce&&Bt.setAttribute("nonce",this.nonce),this.isServer&&Bt.setAttribute(Z,this.appId),dt.appendChild(Bt)}static \u0275fac=function(Bt){return new(Bt||Fe)(a.KVO(i.qQ),a.KVO(a.sZ2),a.KVO(a.BIS,8),a.KVO(a.Agw))};static \u0275prov=a.jDH({token:Fe,factory:Fe.\u0275fac})}return Fe})();const Ce={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"},Ne=/%COMP%/g,ke=new a.nKC("",{providedIn:"root",factory:()=>!0});function ft(Fe,Rt){return Rt.map(dt=>dt.replace(Ne,Fe))}let _t=(()=>{class Fe{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(dt,Bt,_n,or,Mr,ii,ci,Si=null){this.eventManager=dt,this.sharedStylesHost=Bt,this.appId=_n,this.removeStylesOnCompDestroy=or,this.doc=Mr,this.platformId=ii,this.ngZone=ci,this.nonce=Si,this.platformIsServer=(0,i.Vy)(ii),this.defaultRenderer=new ot(dt,Mr,ci,this.platformIsServer)}createRenderer(dt,Bt){if(!dt||!Bt)return this.defaultRenderer;this.platformIsServer&&Bt.encapsulation===a.gXe.ShadowDom&&(Bt={...Bt,encapsulation:a.gXe.Emulated});const _n=this.getOrCreateRenderer(dt,Bt);return _n instanceof Ze?_n.applyToHost(dt):_n instanceof En&&_n.applyStyles(),_n}getOrCreateRenderer(dt,Bt){const _n=this.rendererByCompId;let or=_n.get(Bt.id);if(!or){const Mr=this.doc,ii=this.ngZone,ci=this.eventManager,Si=this.sharedStylesHost,sn=this.removeStylesOnCompDestroy,Tt=this.platformIsServer;switch(Bt.encapsulation){case a.gXe.Emulated:or=new Ze(ci,Si,Bt,this.appId,sn,Mr,ii,Tt);break;case a.gXe.ShadowDom:return new $n(ci,Si,dt,Bt,Mr,ii,this.nonce,Tt);default:or=new En(ci,Si,Bt,sn,Mr,ii,Tt)}_n.set(Bt.id,or)}return or}ngOnDestroy(){this.rendererByCompId.clear()}static \u0275fac=function(Bt){return new(Bt||Fe)(a.KVO(R),a.KVO(Te),a.KVO(a.sZ2),a.KVO(ke),a.KVO(i.qQ),a.KVO(a.Agw),a.KVO(a.SKi),a.KVO(a.BIS))};static \u0275prov=a.jDH({token:Fe,factory:Fe.\u0275fac})}return Fe})();class ot{eventManager;doc;ngZone;platformIsServer;data=Object.create(null);throwOnSyntheticProps=!0;constructor(Rt,dt,Bt,_n){this.eventManager=Rt,this.doc=dt,this.ngZone=Bt,this.platformIsServer=_n}destroy(){}destroyNode=null;createElement(Rt,dt){return dt?this.doc.createElementNS(Ce[dt]||dt,Rt):this.doc.createElement(Rt)}createComment(Rt){return this.doc.createComment(Rt)}createText(Rt){return this.doc.createTextNode(Rt)}appendChild(Rt,dt){(wn(Rt)?Rt.content:Rt).appendChild(dt)}insertBefore(Rt,dt,Bt){Rt&&(wn(Rt)?Rt.content:Rt).insertBefore(dt,Bt)}removeChild(Rt,dt){dt.remove()}selectRootElement(Rt,dt){let Bt="string"==typeof Rt?this.doc.querySelector(Rt):Rt;if(!Bt)throw new a.wOt(-5104,!1);return dt||(Bt.textContent=""),Bt}parentNode(Rt){return Rt.parentNode}nextSibling(Rt){return Rt.nextSibling}setAttribute(Rt,dt,Bt,_n){if(_n){dt=_n+":"+dt;const or=Ce[_n];or?Rt.setAttributeNS(or,dt,Bt):Rt.setAttribute(dt,Bt)}else Rt.setAttribute(dt,Bt)}removeAttribute(Rt,dt,Bt){if(Bt){const _n=Ce[Bt];_n?Rt.removeAttributeNS(_n,dt):Rt.removeAttribute(`${Bt}:${dt}`)}else Rt.removeAttribute(dt)}addClass(Rt,dt){Rt.classList.add(dt)}removeClass(Rt,dt){Rt.classList.remove(dt)}setStyle(Rt,dt,Bt,_n){_n&(a.czy.DashCase|a.czy.Important)?Rt.style.setProperty(dt,Bt,_n&a.czy.Important?"important":""):Rt.style[dt]=Bt}removeStyle(Rt,dt,Bt){Bt&a.czy.DashCase?Rt.style.removeProperty(dt):Rt.style[dt]=""}setProperty(Rt,dt,Bt){null!=Rt&&(Rt[dt]=Bt)}setValue(Rt,dt){Rt.nodeValue=dt}listen(Rt,dt,Bt){if("string"==typeof Rt&&!(Rt=(0,i.QT)().getGlobalEventTarget(this.doc,Rt)))throw new Error(`Unsupported event target ${Rt} for event ${dt}`);return this.eventManager.addEventListener(Rt,dt,this.decoratePreventDefault(Bt))}decoratePreventDefault(Rt){return dt=>{if("__ngUnwrap__"===dt)return Rt;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>Rt(dt)):Rt(dt))&&dt.preventDefault()}}}function wn(Fe){return"TEMPLATE"===Fe.tagName&&void 0!==Fe.content}class $n extends ot{sharedStylesHost;hostEl;shadowRoot;constructor(Rt,dt,Bt,_n,or,Mr,ii,ci){super(Rt,or,Mr,ci),this.sharedStylesHost=dt,this.hostEl=Bt,this.shadowRoot=Bt.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const Si=ft(_n.id,_n.styles);for(const Tt of Si){const Je=document.createElement("style");ii&&Je.setAttribute("nonce",ii),Je.textContent=Tt,this.shadowRoot.appendChild(Je)}const sn=_n.getExternalStyles?.();if(sn)for(const Tt of sn){const Je=pe(Tt,or);ii&&Je.setAttribute("nonce",ii),this.shadowRoot.appendChild(Je)}}nodeOrShadowRoot(Rt){return Rt===this.hostEl?this.shadowRoot:Rt}appendChild(Rt,dt){return super.appendChild(this.nodeOrShadowRoot(Rt),dt)}insertBefore(Rt,dt,Bt){return super.insertBefore(this.nodeOrShadowRoot(Rt),dt,Bt)}removeChild(Rt,dt){return super.removeChild(null,dt)}parentNode(Rt){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(Rt)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class En extends ot{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(Rt,dt,Bt,_n,or,Mr,ii,ci){super(Rt,or,Mr,ii),this.sharedStylesHost=dt,this.removeStylesOnCompDestroy=_n,this.styles=ci?ft(ci,Bt.styles):Bt.styles,this.styleUrls=Bt.getExternalStyles?.(ci)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}}class Ze extends En{contentAttr;hostAttr;constructor(Rt,dt,Bt,_n,or,Mr,ii,ci){const Si=_n+"-"+Bt.id;super(Rt,dt,Bt,or,Mr,ii,ci,Si),this.contentAttr=function Ue(Fe){return"_ngcontent-%COMP%".replace(Ne,Fe)}(Si),this.hostAttr=function st(Fe){return"_nghost-%COMP%".replace(Ne,Fe)}(Si)}applyToHost(Rt){this.applyStyles(),this.setAttribute(Rt,this.hostAttr,"")}createElement(Rt,dt){const Bt=super.createElement(Rt,dt);return super.setAttribute(Bt,this.contentAttr,""),Bt}}let wt=(()=>{class Fe extends G{constructor(dt){super(dt)}supports(dt){return!0}addEventListener(dt,Bt,_n){return dt.addEventListener(Bt,_n,!1),()=>this.removeEventListener(dt,Bt,_n)}removeEventListener(dt,Bt,_n){return dt.removeEventListener(Bt,_n)}static \u0275fac=function(Bt){return new(Bt||Fe)(a.KVO(i.qQ))};static \u0275prov=a.jDH({token:Fe,factory:Fe.\u0275fac})}return Fe})();const ze=["alt","control","meta","shift"],Be={"\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"},Ut={alt:Fe=>Fe.altKey,control:Fe=>Fe.ctrlKey,meta:Fe=>Fe.metaKey,shift:Fe=>Fe.shiftKey};let Ke=(()=>{class Fe extends G{constructor(dt){super(dt)}supports(dt){return null!=Fe.parseEventName(dt)}addEventListener(dt,Bt,_n){const or=Fe.parseEventName(Bt),Mr=Fe.eventCallback(or.fullKey,_n,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,i.QT)().onAndCancel(dt,or.domEventName,Mr))}static parseEventName(dt){const Bt=dt.toLowerCase().split("."),_n=Bt.shift();if(0===Bt.length||"keydown"!==_n&&"keyup"!==_n)return null;const or=Fe._normalizeKey(Bt.pop());let Mr="",ii=Bt.indexOf("code");if(ii>-1&&(Bt.splice(ii,1),Mr="code."),ze.forEach(Si=>{const sn=Bt.indexOf(Si);sn>-1&&(Bt.splice(sn,1),Mr+=Si+".")}),Mr+=or,0!=Bt.length||0===or.length)return null;const ci={};return ci.domEventName=_n,ci.fullKey=Mr,ci}static matchEventFullKeyCode(dt,Bt){let _n=Be[dt.key]||dt.key,or="";return Bt.indexOf("code.")>-1&&(_n=dt.code,or="code."),!(null==_n||!_n)&&(_n=_n.toLowerCase()," "===_n?_n="space":"."===_n&&(_n="dot"),ze.forEach(Mr=>{Mr!==_n&&(0,Ut[Mr])(dt)&&(or+=Mr+".")}),or+=_n,or===Bt)}static eventCallback(dt,Bt,_n){return or=>{Fe.matchEventFullKeyCode(or,dt)&&_n.runGuarded(()=>Bt(or))}}static _normalizeKey(dt){return"esc"===dt?"escape":dt}static \u0275fac=function(Bt){return new(Bt||Fe)(a.KVO(i.qQ))};static \u0275prov=a.jDH({token:Fe,factory:Fe.\u0275fac})}return Fe})();function lt(Fe,Rt){return(0,a.TL3)({rootComponent:Fe,...Ge(Rt)})}function Ge(Fe){return{appProviders:[...en,...Fe?.providers??[]],platformProviders:tn}}const tn=[{provide:a.Agw,useValue:i.AJ},{provide:a.PLl,useValue:function se(){y.makeCurrent()},multi:!0},{provide:i.qQ,useFactory:function Nt(){return(0,a.TL$)(document),document},deps:[]}],en=[{provide:a.H8p,useValue:"root"},{provide:a.zcH,useFactory:function qe(){return new a.zcH},deps:[]},{provide:k,useClass:wt,multi:!0,deps:[i.qQ,a.SKi,a.Agw]},{provide:k,useClass:Ke,multi:!0,deps:[i.qQ]},_t,Te,R,{provide:a._9s,useExisting:_t},{provide:i.N0,useClass:T,deps:[]},[]];let Xt=(()=>{class Fe{_doc;constructor(dt){this._doc=dt}getTitle(){return this._doc.title}setTitle(dt){this._doc.title=dt||""}static \u0275fac=function(Bt){return new(Bt||Fe)(a.KVO(i.qQ))};static \u0275prov=a.jDH({token:Fe,factory:Fe.\u0275fac,providedIn:"root"})}return Fe})(),Zt=(()=>{class Fe{static \u0275fac=function(Bt){return new(Bt||Fe)};static \u0275prov=a.jDH({token:Fe,factory:function(Bt){let _n=null;return _n=Bt?new(Bt||Fe):a.KVO(gn),_n},providedIn:"root"})}return Fe})(),gn=(()=>{class Fe extends Zt{_doc;constructor(dt){super(),this._doc=dt}sanitize(dt,Bt){if(null==Bt)return null;switch(dt){case a.WPN.NONE:return Bt;case a.WPN.HTML:return(0,a.ZF7)(Bt,"HTML")?(0,a.rcV)(Bt):(0,a.h9k)(this._doc,String(Bt)).toString();case a.WPN.STYLE:return(0,a.ZF7)(Bt,"Style")?(0,a.rcV)(Bt):Bt;case a.WPN.SCRIPT:if((0,a.ZF7)(Bt,"Script"))return(0,a.rcV)(Bt);throw new a.wOt(5200,!1);case a.WPN.URL:return(0,a.ZF7)(Bt,"URL")?(0,a.rcV)(Bt):(0,a.$MX)(String(Bt));case a.WPN.RESOURCE_URL:if((0,a.ZF7)(Bt,"ResourceURL"))return(0,a.rcV)(Bt);throw new a.wOt(5201,!1);default:throw new a.wOt(5202,!1)}}bypassSecurityTrustHtml(dt){return(0,a.Kcf)(dt)}bypassSecurityTrustStyle(dt){return(0,a.cWb)(dt)}bypassSecurityTrustScript(dt){return(0,a.UyX)(dt)}bypassSecurityTrustUrl(dt){return(0,a.osQ)(dt)}bypassSecurityTrustResourceUrl(dt){return(0,a.e5t)(dt)}static \u0275fac=function(Bt){return new(Bt||Fe)(a.KVO(i.qQ))};static \u0275prov=a.jDH({token:Fe,factory:Fe.\u0275fac,providedIn:"root"})}return Fe})()},9893:(o,s,r)=>{"use strict";r.d(s,{nX:()=>tr,wF:()=>Oe,Ix:()=>Qr,Wk:()=>Wo,wQ:()=>fs,iI:()=>dl,n3:()=>Qo,lh:()=>Ml,oH:()=>cc});var i=r(3107),a=r(1531),c=r(1787),y=r(3016),w=r(1217),C=r(6627),A=r(8747),S=r(3569),T=r(6381),k=r(6742),R=r(8915),G=r(6564),Z=r(1642),te=r(8447),we=r(5710),_e=r(4460),pe=r(7947),Te=r(2867),Ce=r(7610),Ne=r(593),Se=r(1483),xe=r(5823),ae=r(5351),le=r(2483);function ke(N){return(0,ae.N)((K,P)=>{let X=!1;K.subscribe((0,le._)(P,he=>{X=!0,P.next(he)},()=>{X||P.next(N),P.complete()}))})}function Ue(N=st){return(0,ae.N)((K,P)=>{let X=!1;K.subscribe((0,le._)(P,he=>{X=!0,P.next(he)},()=>X?P.complete():P.error(N())))})}function st(){return new A.G}var ft=r(9220);function _t(N,K){const P=arguments.length>=2;return X=>X.pipe(N?(0,Se.p)((he,We)=>N(he,We,X)):ft.D,(0,Ce.s)(1),P?ke(K):Ue(()=>new A.G))}var ot=r(1459),Yt=r(2040),un=r(7178),wn=r(36);function En(N){return N<=0?()=>G.w:(0,ae.N)((K,P)=>{let X=[];K.subscribe((0,le._)(P,he=>{X.push(he),N{for(const he of X)P.next(he);P.complete()},void 0,()=>{X=null}))})}var wt=r(6590),ze=r(4447),Be=r(3589),Ut=r(5424),Ke=r(1890),lt=r(6388);const Xe="primary",Ge=Symbol("RouteTitle");class pt{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(N){return new pt(N)}function qe(N,K,P){const X=P.path.split("/");if(X.length>N.length||"full"===P.pathMatch&&(K.hasChildren()||X.lengthX[We]===he)}return N===K}function Pt(N){return N.length>0?N[N.length-1]:null}function en(N){return(0,a.A)(N)?N:(0,i.jNT)(N)?(0,c.H)(Promise.resolve(N)):(0,y.of)(N)}const an={exact:function Mt(N,K,P){if(!Re(N.segments,K.segments)||!Me(N.segments,K.segments,P)||N.numberOfChildren!==K.numberOfChildren)return!1;for(const X in K.children)if(!N.children[X]||!Mt(N.children[X],K.children[X],P))return!1;return!0},subset:Ot},Yn={exact:function Xt(N,K){return tn(N,K)},subset:function Gt(N,K){return Object.keys(K).length<=Object.keys(N).length&&Object.keys(K).every(P=>Wn(N[P],K[P]))},ignored:()=>!0};function Sn(N,K,P){return an[P.paths](N.root,K.root,P.matrixParams)&&Yn[P.queryParams](N.queryParams,K.queryParams)&&!("exact"===P.fragment&&N.fragment!==K.fragment)}function Ot(N,K,P){return Ie(N,K,K.segments,P)}function Ie(N,K,P,X){if(N.segments.length>P.length){const he=N.segments.slice(0,P.length);return!(!Re(he,P)||K.hasChildren()||!Me(he,P,X))}if(N.segments.length===P.length){if(!Re(N.segments,P)||!Me(N.segments,P,X))return!1;for(const he in K.children)if(!N.children[he]||!Ot(N.children[he],K.children[he],X))return!1;return!0}{const he=P.slice(0,N.segments.length),We=P.slice(N.segments.length);return!!(Re(N.segments,he)&&Me(N.segments,he,X)&&N.children[Xe])&&Ie(N.children[Xe],K,We,X)}}function Me(N,K,P){return K.every((X,he)=>Yn[P](N[he].parameters,X.parameters))}class nt{root;queryParams;fragment;_queryParamMap;constructor(K=new W([],{}),P={},X=null){this.root=K,this.queryParams=P,this.fragment=X}get queryParamMap(){return this._queryParamMap??=se(this.queryParams),this._queryParamMap}toString(){return Ln.serialize(this)}}class W{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 Zt(this)}}class L{path;parameters;_parameterMap;constructor(K,P){this.path=K,this.parameters=P}get parameterMap(){return this._parameterMap??=se(this.parameters),this._parameterMap}toString(){return vt(this)}}function Re(N,K){return N.length===K.length&&N.every((P,X)=>P.path===K[X].path)}let mt=(()=>{class N{static \u0275fac=function(X){return new(X||N)};static \u0275prov=i.jDH({token:N,factory:()=>new At,providedIn:"root"})}return N})();class At{parse(K){const P=new ii(K);return new nt(P.parseRootSegment(),P.parseQueryParams(),P.parseFragment())}serialize(K){const P=`/${gn(K.root,!0)}`,X=function Ee(N){const K=Object.entries(N).map(([P,X])=>Array.isArray(X)?X.map(he=>`${Bn(P)}=${Bn(he)}`).join("&"):`${Bn(P)}=${Bn(X)}`).filter(P=>P);return K.length?`?${K.join("&")}`:""}(K.queryParams);return`${P}${X}${"string"==typeof K.fragment?`#${function Hn(N){return encodeURI(N)}(K.fragment)}`:""}`}}const Ln=new At;function Zt(N){return N.segments.map(K=>vt(K)).join("/")}function gn(N,K){if(!N.hasChildren())return Zt(N);if(K){const P=N.children[Xe]?gn(N.children[Xe],!1):"",X=[];return Object.entries(N.children).forEach(([he,We])=>{he!==Xe&&X.push(`${he}:${gn(We,!1)}`)}),X.length>0?`${P}(${X.join("//")})`:P}{const P=function bt(N,K){let P=[];return Object.entries(N.children).forEach(([X,he])=>{X===Xe&&(P=P.concat(K(he,X)))}),Object.entries(N.children).forEach(([X,he])=>{X!==Xe&&(P=P.concat(K(he,X)))}),P}(N,(X,he)=>he===Xe?[gn(N.children[Xe],!1)]:[`${he}:${gn(X,!1)}`]);return 1===Object.keys(N.children).length&&null!=N.children[Xe]?`${Zt(N)}/${P[0]}`:`${Zt(N)}/(${P.join("//")})`}}function In(N){return encodeURIComponent(N).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Bn(N){return In(N).replace(/%3B/gi,";")}function xr(N){return In(N).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ei(N){return decodeURIComponent(N)}function Xr(N){return ei(N.replace(/\+/g,"%20"))}function vt(N){return`${xr(N.path)}${function $t(N){return Object.entries(N).map(([K,P])=>`;${xr(K)}=${xr(P)}`).join("")}(N.parameters)}`}const at=/^[^\/()?;#]+/;function Fe(N){const K=N.match(at);return K?K[0]:""}const Rt=/^[^\/()?;=#]+/,Bt=/^[^=?&#]+/,or=/^[^&#]+/;class ii{url;remaining;constructor(K){this.url=K,this.remaining=K}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new W([],{}):new W([],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[Xe]=new W(K,P)),X}parseSegment(){const K=Fe(this.remaining);if(""===K&&this.peekStartsWith(";"))throw new i.wOt(4009,!1);return this.capture(K),new L(ei(K),this.parseMatrixParams())}parseMatrixParams(){const K={};for(;this.consumeOptional(";");)this.parseParam(K);return K}parseParam(K){const P=function dt(N){const K=N.match(Rt);return K?K[0]:""}(this.remaining);if(!P)return;this.capture(P);let X="";if(this.consumeOptional("=")){const he=Fe(this.remaining);he&&(X=he,this.capture(X))}K[ei(P)]=ei(X)}parseQueryParam(K){const P=function _n(N){const K=N.match(Bt);return K?K[0]:""}(this.remaining);if(!P)return;this.capture(P);let X="";if(this.consumeOptional("=")){const Dt=function Mr(N){const K=N.match(or);return K?K[0]:""}(this.remaining);Dt&&(X=Dt,this.capture(X))}const he=Xr(P),We=Xr(X);if(K.hasOwnProperty(he)){let Dt=K[he];Array.isArray(Dt)||(Dt=[Dt],K[he]=Dt),Dt.push(We)}else K[he]=We}parseParens(K){const P={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const X=Fe(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=Xe);const Dt=this.parseChildren();P[We]=1===Object.keys(Dt).length?Dt[Xe]:new W([],Dt),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(N){return N.segments.length>0?new W([],{[Xe]:N}):N}function Si(N){const K={};for(const[X,he]of Object.entries(N.children)){const We=Si(he);if(X===Xe&&0===We.segments.length&&We.hasChildren())for(const[Dt,yn]of Object.entries(We.children))K[Dt]=yn;else(We.segments.length>0||We.hasChildren())&&(K[X]=We)}return function sn(N){if(1===N.numberOfChildren&&N.children[Xe]){const K=N.children[Xe];return new W(N.segments.concat(K.segments),K.children)}return N}(new W(N.segments,K))}function Tt(N){return N instanceof nt}function St(N){let K;const he=ci(function P(We){const Dt={};for(const on of We.children){const fr=P(on);Dt[on.outlet]=fr}const yn=new W(We.url,Dt);return We===N&&(K=yn),yn}(N.root));return K??he}function zt(N,K,P,X){let he=N;for(;he.parent;)he=he.parent;if(0===K.length)return ho(he,he,he,P,X);const We=function oi(N){if("string"==typeof N[0]&&1===N.length&&"/"===N[0])return new Uo(!0,0,N);let K=0,P=!1;const X=N.reduce((he,We,Dt)=>{if("object"==typeof We&&null!=We){if(We.outlets){const yn={};return Object.entries(We.outlets).forEach(([on,fr])=>{yn[on]="string"==typeof fr?fr.split("/"):fr}),[...he,{outlets:yn}]}if(We.segmentPath)return[...he,We.segmentPath]}return"string"!=typeof We?[...he,We]:0===Dt?(We.split("/").forEach((yn,on)=>{0==on&&"."===yn||(0==on&&""===yn?P=!0:".."===yn?K++:""!=yn&&he.push(yn))}),he):[...he,We]},[]);return new Uo(P,K,X)}(K);if(We.toRoot())return ho(he,he,new W([],{}),P,X);const Dt=function so(N,K,P){if(N.isAbsolute)return new ns(K,!0,0);if(!P)return new ns(K,!1,NaN);if(null===P.parent)return new ns(P,!0,0);const X=zn(N.commands[0])?0:1;return function bo(N,K,P){let X=N,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 ns(X,!1,he-We)}(P,P.segments.length-1+X,N.numberOfDoubleDots)}(We,he,N),yn=Dt.processChildren?Ms(Dt.segmentGroup,Dt.index,We.commands):Do(Dt.segmentGroup,Dt.index,We.commands);return ho(he,Dt.segmentGroup,yn,P,X)}function zn(N){return"object"==typeof N&&null!=N&&!N.outlets&&!N.segmentPath}function hr(N){return"object"==typeof N&&null!=N&&N.outlets}function ho(N,K,P,X,he){let Dt,We={};X&&Object.entries(X).forEach(([on,fr])=>{We[on]=Array.isArray(fr)?fr.map(ri=>`${ri}`):`${fr}`}),Dt=N===K?P:Ii(N,K,P);const yn=ci(Si(Dt));return new nt(yn,We,he)}function Ii(N,K,P){const X={};return Object.entries(N.children).forEach(([he,We])=>{X[he]=We===K?P:Ii(We,K,P)}),new W(N.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&&zn(X[0]))throw new i.wOt(4003,!1);const he=X.find(hr);if(he&&he!==Pt(X))throw new i.wOt(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ns{segmentGroup;processChildren;index;constructor(K,P,X){this.segmentGroup=K,this.processChildren=P,this.index=X}}function Do(N,K,P){if(N??=new W([],{}),0===N.segments.length&&N.hasChildren())return Ms(N,K,P);const X=function eo(N,K,P){let X=0,he=K;const We={match:!1,pathIndex:0,commandIndex:0};for(;he=P.length)return We;const Dt=N.segments[he],yn=P[X];if(hr(yn))break;const on=`${yn}`,fr=X0&&void 0===on)break;if(on&&fr&&"object"==typeof fr&&void 0===fr.outlets){if(!et(on,fr,Dt))return We;X+=2}else{if(!et(on,{},Dt))return We;X++}he++}return{match:!0,pathIndex:he,commandIndex:X}}(N,K,P),he=P.slice(X.commandIndex);if(X.match&&X.pathIndexWe!==Xe)&&N.children[Xe]&&1===N.numberOfChildren&&0===N.children[Xe].segments.length){const We=Ms(N.children[Xe],K,P);return new W(N.segments,We.children)}return Object.entries(X).forEach(([We,Dt])=>{"string"==typeof Dt&&(Dt=[Dt]),null!==Dt&&(he[We]=Do(N.children[We],K,Dt))}),Object.entries(N.children).forEach(([We,Dt])=>{void 0===X[We]&&(he[We]=Dt)}),new W(N.segments,he)}}function oo(N,K,P){const X=N.segments.slice(0,K);let he=0;for(;he{"string"==typeof X&&(X=[X]),null!==X&&(K[P]=oo(new W([],{}),0,X))}),K}function Mo(N){const K={};return Object.entries(N).forEach(([P,X])=>K[P]=`${X}`),K}function et(N,K,P){return N==P.path&&tn(K,P.parameters)}const ct="imperative";var xt=function(N){return N[N.NavigationStart=0]="NavigationStart",N[N.NavigationEnd=1]="NavigationEnd",N[N.NavigationCancel=2]="NavigationCancel",N[N.NavigationError=3]="NavigationError",N[N.RoutesRecognized=4]="RoutesRecognized",N[N.ResolveStart=5]="ResolveStart",N[N.ResolveEnd=6]="ResolveEnd",N[N.GuardsCheckStart=7]="GuardsCheckStart",N[N.GuardsCheckEnd=8]="GuardsCheckEnd",N[N.RouteConfigLoadStart=9]="RouteConfigLoadStart",N[N.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",N[N.ChildActivationStart=11]="ChildActivationStart",N[N.ChildActivationEnd=12]="ChildActivationEnd",N[N.ActivationStart=13]="ActivationStart",N[N.ActivationEnd=14]="ActivationEnd",N[N.Scroll=15]="Scroll",N[N.NavigationSkipped=16]="NavigationSkipped",N}(xt||{});class me{id;url;constructor(K,P){this.id=K,this.url=P}}class tt extends me{type=xt.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 me{urlAfterRedirects;type=xt.NavigationEnd;constructor(K,P,X){super(K,P),this.urlAfterRedirects=X}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var ht=function(N){return N[N.Redirect=0]="Redirect",N[N.SupersededByNewNavigation=1]="SupersededByNewNavigation",N[N.NoDataFromResolver=2]="NoDataFromResolver",N[N.GuardRejected=3]="GuardRejected",N}(ht||{}),Vt=function(N){return N[N.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",N[N.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",N}(Vt||{});class kt extends me{reason;code;type=xt.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 hn extends me{reason;code;type=xt.NavigationSkipped;constructor(K,P,X,he){super(K,P),this.reason=X,this.code=he}}class Cn extends me{error;target;type=xt.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 An extends me{urlAfterRedirects;state;type=xt.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 On extends me{urlAfterRedirects;state;type=xt.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 me{urlAfterRedirects;state;shouldActivate;type=xt.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 me{urlAfterRedirects;state;type=xt.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 me{urlAfterRedirects;state;type=xt.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 Ir{route;type=xt.RouteConfigLoadStart;constructor(K){this.route=K}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class pr{route;type=xt.RouteConfigLoadEnd;constructor(K){this.route=K}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class bi{snapshot;type=xt.ChildActivationStart;constructor(K){this.snapshot=K}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class si{snapshot;type=xt.ChildActivationEnd;constructor(K){this.snapshot=K}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class mr{snapshot;type=xt.ActivationStart;constructor(K){this.snapshot=K}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ai{snapshot;type=xt.ActivationEnd;constructor(K){this.snapshot=K}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class _o{routerEvent;position;anchor;type=xt.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 Gi{url;navigationBehaviorOptions;constructor(K,P){this.url=K,this.navigationBehaviorOptions=P}}function Wi(N){return N.outlet||Xe}function Ni(N){if(!N)return null;if(N.routeConfig?._injector)return N.routeConfig._injector;for(let K=N.parent;K;K=K.parent){const P=K.routeConfig;if(P?._loadedInjector)return P._loadedInjector;if(P?._injector)return P._injector}return null}class Ps{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 rs(this.rootInjector)}}let rs=(()=>{class N{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 Ps(this.rootInjector),this.contexts.set(P,X)),X}getContext(P){return this.contexts.get(P)||null}static \u0275fac=function(X){return new(X||N)(i.KVO(i.uvJ))};static \u0275prov=i.jDH({token:N,factory:N.\u0275fac,providedIn:"root"})}return N})();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=us(K,this._root);return P?P.children.map(X=>X.value):[]}firstChild(K){const P=us(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 us(N,K){if(N===K.value)return K;for(const P of K.children){const X=us(N,P);if(X)return X}return null}function is(N,K){if(N===K.value)return[K];for(const P of K.children){const X=is(N,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 zi(N){const K={};return N&&N.children.forEach(P=>K[P.value.outlet]=P),K}class Es extends qr{snapshot;constructor(K,P){super(K),this.snapshot=P,Fs(this,K)}toString(){return this.snapshot.toString()}}function ko(N){const K=function ma(N){const We=new os([],{},{},"",{},Xe,N,null,{});return new ks("",new to(We,[]))}(N),P=new w.t([new L("",{})]),X=new w.t({}),he=new w.t({}),We=new w.t({}),Dt=new w.t(""),yn=new tr(P,X,We,Dt,he,Xe,N,K.root);return yn.snapshot=K.root,new Es(new to(yn,[]),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,Dt,yn,on){this.urlSubject=K,this.paramsSubject=P,this.queryParamsSubject=X,this.fragmentSubject=he,this.dataSubject=We,this.outlet=Dt,this.component=yn,this._futureSnapshot=on,this.title=this.dataSubject?.pipe((0,pe.T)(fr=>fr[Ge]))??(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(N,K,P="emptyOnly"){let X;const{routeConfig:he}=N;return X=null===K||"always"!==P&&""!==he?.path&&(K.component||K.routeConfig?.loadComponent)?{params:{...N.params},data:{...N.data},resolve:{...N.data,...N._resolvedData??{}}}:{params:{...K.params,...N.params},data:{...K.data,...N.data},resolve:{...N.data,...K.data,...he?.data,...N._resolvedData}},he&&na(he)&&(X.resolve[Ge]=he.title),X}class os{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[Ge]}constructor(K,P,X,he,We,Dt,yn,on,fr){this.url=K,this.params=P,this.queryParams=X,this.fragment=he,this.data=We,this.outlet=Dt,this.component=yn,this.routeConfig=on,this._resolve=fr}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,Fs(this,P)}toString(){return ga(this._root)}}function Fs(N,K){K.value._routerState=N,K.children.forEach(P=>Fs(N,P))}function ga(N){const K=N.children.length>0?` { ${N.children.map(ga).join(", ")} } `:"";return`${N.value}${K}`}function Yo(N){if(N.snapshot){const K=N.snapshot,P=N._futureSnapshot;N.snapshot=P,tn(K.queryParams,P.queryParams)||N.queryParamsSubject.next(P.queryParams),K.fragment!==P.fragment&&N.fragmentSubject.next(P.fragment),tn(K.params,P.params)||N.paramsSubject.next(P.params),function Nt(N,K){if(N.length!==K.length)return!1;for(let P=0;Ptn(P.parameters,K[X].parameters))}(N.url,K.url);return P&&!(!N.parent!=!K.parent)&&(!N.parent||Ai(N.parent,K.parent))}function na(N){return"string"==typeof N.title||null===N.title}const bl=new i.nKC("");let Qo=(()=>{class N{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=Xe;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)(rs);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,Dt=P.snapshot.component,yn=this.parentContexts.getOrCreateContext(this.name).children,on=new ra(P,yn,he.injector,this.routerOutletData);this.activated=he.createComponent(Dt,{index:he.length,injector:on,environmentInjector:X}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(X){return new(X||N)};static \u0275dir=i.FsC({type:N,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[i.OA$]})}return N})();class ra{route;childContexts;parent;outletData;__ngOutletInjector(K){return new ra(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===rs?this.childContexts:K===bl?this.outletData:this.parent.get(K,P)}}const ao=new i.nKC("");let ss=(()=>{class N{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,Dt,yn],on)=>(yn={...We,...Dt,...yn},0===on?(0,y.of)(yn):Promise.resolve(yn)))).subscribe(We=>{if(!P.isActivated||!P.activatedComponentRef||P.activatedRoute!==X||null===X.component)return void this.unsubscribeFromRouteData(P);const Dt=(0,i.HJs)(X.component);if(Dt)for(const{templateName:yn}of Dt.inputs)P.activatedComponentRef.setInput(yn,We[yn]);else this.unsubscribeFromRouteData(P)});this.outletDataSubscriptions.set(P,he)}static \u0275fac=function(X){return new(X||N)};static \u0275prov=i.jDH({token:N,factory:N.\u0275fac})}return N})();function Zo(N,K,P){if(P&&N.shouldReuseRoute(K.value,P.value.snapshot)){const X=P.value;X._futureSnapshot=K.value;const he=function vi(N,K,P){return K.children.map(X=>{for(const he of P.children)if(N.shouldReuseRoute(X.value,he.value.snapshot))return Zo(N,X,he);return Zo(N,X)})}(N,K,P);return new to(X,he)}{if(N.shouldAttach(K.value)){const We=N.retrieve(K.value);if(null!==We){const Dt=We.route;return Dt.value._futureSnapshot=K.value,Dt.children=K.children.map(yn=>Zo(N,yn)),Dt}}const X=function Pa(N){return new tr(new w.t(N.url),new w.t(N.params),new w.t(N.queryParams),new w.t(N.fragment),new w.t(N.data),N.outlet,N.component,N)}(K.value),he=K.children.map(We=>Zo(N,We));return new to(X,he)}}class Io{redirectTo;navigationBehaviorOptions;constructor(K,P){this.redirectTo=K,this.navigationBehaviorOptions=P}}const Xs="ngNavigationCancelingError";function wl(N,K){const{redirectTo:P,navigationBehaviorOptions:X}=Tt(K)?{redirectTo:K,navigationBehaviorOptions:void 0}:K,he=Xa(!1,ht.Redirect);return he.url=P,he.navigationBehaviorOptions=X,he}function Xa(N,K){const P=new Error(`NavigationCancelingError: ${N||""}`);return P[Xs]=!0,P.cancellationCode=K,P}function Y(N){return!!N&&N[Xs]}class Qe{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=zi(P);K.children.forEach(We=>{const Dt=We.value.outlet;this.deactivateRoutes(We,he[Dt],X),delete he[Dt]}),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 Dt=X.getContext(he.outlet);Dt&&this.deactivateChildRoutes(K,P,Dt.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=zi(K);for(const Dt of Object.values(We))this.deactivateRouteAndItsChildren(Dt,he);if(X&&X.outlet){const Dt=X.outlet.detach(),yn=X.children.onOutletDeactivated();this.routeReuseStrategy.store(K.value.snapshot,{componentRef:Dt,route:K,contexts:yn})}}deactivateRouteAndOutlet(K,P){const X=P.getContext(K.value.outlet),he=X&&K.value.component?X.children:P,We=zi(K);for(const Dt of Object.values(We))this.deactivateRouteAndItsChildren(Dt,he);X&&(X.outlet&&(X.outlet.deactivate(),X.children.onOutletDeactivated()),X.attachRef=null,X.route=null)}activateChildRoutes(K,P,X){const he=zi(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 Dt=X.getOrCreateContext(he.outlet);this.activateChildRoutes(K,P,Dt.children)}else this.activateChildRoutes(K,P,X);else if(he.component){const Dt=X.getOrCreateContext(he.outlet);if(this.routeReuseStrategy.shouldAttach(he.snapshot)){const yn=this.routeReuseStrategy.retrieve(he.snapshot);this.routeReuseStrategy.store(he.snapshot,null),Dt.children.onOutletReAttached(yn.contexts),Dt.attachRef=yn.componentRef,Dt.route=yn.route.value,Dt.outlet&&Dt.outlet.attach(yn.componentRef,yn.route.value),Yo(yn.route.value),this.activateChildRoutes(K,null,Dt.children)}else Dt.attachRef=null,Dt.route=he,Dt.outlet&&Dt.outlet.activateWith(he,Dt.injector),this.activateChildRoutes(K,null,Dt.children)}else this.activateChildRoutes(K,null,X)}}class Et{path;route;constructor(K){this.path=K,this.route=this.path[this.path.length-1]}}class Fn{component;route;constructor(K,P){this.component=K,this.route=P}}function fn(N,K,P){const X=N._root;return Gr(X,K?K._root:null,P,[X.value])}function dr(N,K){const P=Symbol(),X=K.get(N,P);return X===P?"function"!=typeof N||(0,i.LfX)(N)?K.get(N):N:X}function Gr(N,K,P,X,he={canDeactivateChecks:[],canActivateChecks:[]}){const We=zi(K);return N.children.forEach(Dt=>{(function Ki(N,K,P,X,he={canDeactivateChecks:[],canActivateChecks:[]}){const We=N.value,Dt=K?K.value:null,yn=P?P.getContext(N.value.outlet):null;if(Dt&&We.routeConfig===Dt.routeConfig){const on=function Or(N,K,P){if("function"==typeof P)return P(N,K);switch(P){case"pathParamsChange":return!Re(N.url,K.url);case"pathParamsOrQueryParamsChange":return!Re(N.url,K.url)||!tn(N.queryParams,K.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Ai(N,K)||!tn(N.queryParams,K.queryParams);default:return!Ai(N,K)}}(Dt,We,We.routeConfig.runGuardsAndResolvers);on?he.canActivateChecks.push(new Et(X)):(We.data=Dt.data,We._resolvedData=Dt._resolvedData),Gr(N,K,We.component?yn?yn.children:null:P,X,he),on&&yn&&yn.outlet&&yn.outlet.isActivated&&he.canDeactivateChecks.push(new Fn(yn.outlet.component,Dt))}else Dt&&Dr(K,yn,he),he.canActivateChecks.push(new Et(X)),Gr(N,null,We.component?yn?yn.children:null:P,X,he)})(Dt,We[Dt.value.outlet],P,X.concat([Dt.value]),he),delete We[Dt.value.outlet]}),Object.entries(We).forEach(([Dt,yn])=>Dr(yn,P.getContext(Dt),he)),he}function Dr(N,K,P){const X=zi(N),he=N.value;Object.entries(X).forEach(([We,Dt])=>{Dr(Dt,he.component?K?K.children.getContext(We):null:K,P)}),P.canDeactivateChecks.push(new Fn(he.component&&K&&K.outlet&&K.outlet.isActivated?K.outlet.component:null,he))}function Ei(N){return"function"==typeof N}function Qa(N){return N instanceof A.G||"EmptyError"===N?.name}const va=Symbol("INITIAL_VALUE");function ue(){return(0,Te.n)(N=>(0,C.z)(N.map(K=>K.pipe((0,Ce.s)(1),(0,Ne.Z)(va)))).pipe((0,pe.T)(K=>{for(const P of K)if(!0!==P){if(P===va)return va;if(!1===P||ce(P))return P}return!0}),(0,Se.p)(K=>K!==va),(0,Ce.s)(1)))}function ce(N){return Tt(N)||N instanceof Io}function sc(N){return(0,k.F)((0,Yt.M)(K=>{if("boolean"!=typeof K)throw wl(0,K)}),(0,pe.T)(K=>!0===K))}class ds{segmentGroup;constructor(K){this.segmentGroup=K||null}}class Bs extends Error{urlTree;constructor(K){super(),this.urlTree=K}}function Ba(N){return(0,R.$)(new ds(N))}class Cl{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[Xe])return(0,R.$)(new i.wOt(4e3,!1));he=he.children[Xe]}}applyRedirectCommands(K,P,X,he,We){if("string"!=typeof P){const yn=P,{queryParams:on,fragment:fr,routeConfig:ri,url:hi,outlet:io,params:as,data:Ko,title:Cs}=he,Wr=(0,i.N4e)(We,()=>yn({params:as,data:Ko,queryParams:on,fragment:fr,routeConfig:ri,url:hi,outlet:io,title:Cs}));if(Wr instanceof nt)throw new Bs(Wr);P=Wr}const Dt=this.applyRedirectCreateUrlTree(P,this.urlSerializer.parse(P),K,X);if("/"===P[0])throw new Bs(Dt);return Dt}applyRedirectCreateUrlTree(K,P,X,he){const We=this.createSegmentGroup(K,P.root,X,he);return new nt(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 yn=We.substring(1);X[he]=P[yn]}else X[he]=We}),X}createSegmentGroup(K,P,X,he){const We=this.createSegments(K,P.segments,X,he);let Dt={};return Object.entries(P.children).forEach(([yn,on])=>{Dt[yn]=this.createSegmentGroup(K,on,X,he)}),new W(We,Dt)}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 ia={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Ua(N,K,P,X,he){const We=yc(N,K,P);return We.matched?(X=function ws(N,K){return N.providers&&!N._injector&&(N._injector=(0,i.Ol2)(N.providers,K,`Route: ${N.path}`)),N._injector??K}(K,X),function El(N,K,P,X){const he=K.canMatch;if(!he||0===he.length)return(0,y.of)(!0);const We=he.map(Dt=>{const yn=dr(Dt,N);return en(function zl(N){return N&&Ei(N.canMatch)}(yn)?yn.canMatch(K,P):(0,i.N4e)(N,()=>yn(K,P)))});return(0,y.of)(We).pipe(ue(),sc())}(X,K,P).pipe((0,pe.T)(Dt=>!0===Dt?We:{...ia}))):(0,y.of)(We)}function yc(N,K,P){if("**"===K.path)return function Nu(N){return{matched:!0,parameters:N.length>0?Pt(N).parameters:{},consumedSegments:N,remainingSegments:[],positionalParamSegments:{}}}(P);if(""===K.path)return"full"===K.pathMatch&&(N.hasChildren()||P.length>0)?{...ia}:{matched:!0,consumedSegments:[],remainingSegments:P,parameters:{},positionalParamSegments:{}};const he=(K.matcher||qe)(P,N,K);if(!he)return{...ia};const We={};Object.entries(he.posParams??{}).forEach(([yn,on])=>{We[yn]=on.path});const Dt=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:Dt,positionalParamSegments:he.posParams??{}}}function ac(N,K,P,X){return P.length>0&&function ya(N,K,P){return P.some(X=>Dl(N,K,X)&&Wi(X)!==Xe)}(N,P,X)?{segmentGroup:new W(K,Gl(X,new W(P,N.children))),slicedSegments:[]}:0===P.length&&function qa(N,K,P){return P.some(X=>Dl(N,K,X))}(N,P,X)?{segmentGroup:new W(N.segments,$a(N,P,X,N.children)),slicedSegments:P}:{segmentGroup:new W(N.segments,N.children),slicedSegments:P}}function $a(N,K,P,X){const he={};for(const We of P)if(Dl(N,K,We)&&!X[Wi(We)]){const Dt=new W([],{});he[Wi(We)]=Dt}return{...X,...he}}function Gl(N,K){const P={};P[Xe]=K;for(const X of N)if(""===X.path&&Wi(X)!==Xe){const he=new W([],{});P[Wi(X)]=he}return P}function Dl(N,K,P){return(!(N.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,Dt,yn){this.injector=K,this.configLoader=P,this.rootComponentType=X,this.config=he,this.urlTree=We,this.paramsInheritanceStrategy=Dt,this.urlSerializer=yn,this.applyRedirects=new Cl(this.urlSerializer,this.urlTree)}noMatchError(K){return new i.wOt(4002,`'${K.segmentGroup}'`)}recognize(){const K=ac(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),Dt=function Je(N,K,P=null,X=null){return zt(St(N),K,P,X)}(X,[],this.urlTree.queryParams,this.urlTree.fragment);return Dt.queryParams=this.urlTree.queryParams,We.url=this.urlSerializer.serialize(Dt),{state:We,tree:Dt}}))}match(K){const P=new os([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Object.freeze({}),Xe,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,K,Xe,P).pipe((0,pe.T)(X=>({children:X,rootSnapshot:P})),(0,un.W)(X=>{if(X instanceof Bs)return this.urlTree=X.urlTree,this.match(X.urlTree.root);throw X instanceof ds?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)(Dt=>Dt instanceof to?[Dt]:[]))}processChildren(K,P,X,he){const We=[];for(const Dt of Object.keys(X.children))"primary"===Dt?We.unshift(Dt):We.push(Dt);return(0,c.H)(We).pipe((0,ot.H)(Dt=>{const yn=X.children[Dt],on=function Gs(N,K){const P=N.filter(X=>Wi(X)===K);return P.push(...N.filter(X=>Wi(X)!==K)),P}(P,Dt);return this.processSegmentGroup(K,on,yn,Dt,he)}),function $n(N,K){return(0,ae.N)((0,wn.S)(N,K,arguments.length>=2,!0))}((Dt,yn)=>(Dt.push(...yn),Dt)),ke(null),function Ze(N,K){const P=arguments.length>=2;return X=>X.pipe(N?(0,Se.p)((he,We)=>N(he,We,X)):ft.D,En(1),P?ke(K):Ue(()=>new A.G))}(),(0,xe.Z)(Dt=>{if(null===Dt)return Ba(X);const yn=Sl(Dt);return function bc(N){N.sort((K,P)=>K.value.outlet===Xe?-1:P.value.outlet===Xe?1:K.value.outlet.localeCompare(P.value.outlet))}(yn),(0,y.of)(yn)}))}processSegment(K,P,X,he,We,Dt,yn){return(0,c.H)(P).pipe((0,ot.H)(on=>this.processSegmentAgainstRoute(on._injector??K,P,on,X,he,We,Dt,yn).pipe((0,un.W)(fr=>{if(fr instanceof ds)return(0,y.of)(null);throw fr}))),_t(on=>!!on),(0,un.W)(on=>{if(Qa(on))return function Ro(N,K,P){return 0===K.length&&!N.children[P]}(X,he,We)?(0,y.of)(new co):Ba(X);throw on}))}processSegmentAgainstRoute(K,P,X,he,We,Dt,yn,on){return Wi(X)===Dt||Dt!==Xe&&Dl(he,We,X)?void 0===X.redirectTo?this.matchSegmentAgainstRoute(K,he,X,We,Dt,on):this.allowRedirects&&yn?this.expandSegmentAgainstRouteUsingRedirect(K,he,P,X,We,Dt,on):Ba(he):Ba(he)}expandSegmentAgainstRouteUsingRedirect(K,P,X,he,We,Dt,yn){const{matched:on,parameters:fr,consumedSegments:ri,positionalParamSegments:hi,remainingSegments:io}=yc(P,he,We);if(!on)return Ba(P);"string"==typeof he.redirectTo&&"/"===he.redirectTo[0]&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const as=new os(We,fr,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Al(he),Wi(he),he.component??he._loadedComponent??null,he,Yl(he)),Ko=Eo(as,yn,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,xe.Z)(Wr=>this.processSegment(K,X,P,Wr.concat(io),Dt,!1,yn)))}matchSegmentAgainstRoute(K,P,X,he,We,Dt){const yn=Ua(P,X,he,K);return"**"===X.path&&(P.children={}),yn.pipe((0,Te.n)(on=>on.matched?this.getChildConfig(K=X._injector??K,X,he).pipe((0,Te.n)(({routes:fr})=>{const ri=X._loadedInjector??K,{parameters:hi,consumedSegments:io,remainingSegments:as}=on,Ko=new os(io,hi,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Al(X),Wi(X),X.component??X._loadedComponent??null,X,Yl(X)),Cs=Eo(Ko,Dt,this.paramsInheritanceStrategy);Ko.params=Object.freeze(Cs.params),Ko.data=Object.freeze(Cs.data);const{segmentGroup:Wr,slicedSegments:fl}=ac(P,io,as,fr);if(0===fl.length&&Wr.hasChildren())return this.processChildren(ri,fr,Wr,Ko).pipe((0,pe.T)(uc=>new to(Ko,uc)));if(0===fr.length&&0===fl.length)return(0,y.of)(new to(Ko,[]));const Cc=Wi(X)===We;return this.processSegment(ri,fr,Wr,fl,Cc?Xe:We,!0,Ko).pipe((0,pe.T)(uc=>new to(Ko,uc instanceof to?[uc]:[])))})):Ba(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 Ru(N,K,P,X){const he=K.canLoad;if(void 0===he||0===he.length)return(0,y.of)(!0);const We=he.map(Dt=>{const yn=dr(Dt,N);return en(function fo(N){return N&&Ei(N.canLoad)}(yn)?yn.canLoad(K,P):(0,i.N4e)(N,()=>yn(K,P)))});return(0,y.of)(We).pipe(ue(),sc())}(K,P,X).pipe((0,xe.Z)(he=>he?this.configLoader.loadChildren(K,P).pipe((0,Yt.M)(We=>{P._loadedRoutes=We.routes,P._loadedInjector=We.injector})):function xl(){return(0,R.$)(Xa(!1,ht.GuardRejected))}())):(0,y.of)({routes:[],injector:K})}}function ll(N){const K=N.value.routeConfig;return K&&""===K.path}function Sl(N){const K=[],P=new Set;for(const X of N){if(!ll(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=Sl(X.children);K.push(new to(X.value,he))}return K.filter(X=>!P.has(X))}function Al(N){return N.data||{}}function Yl(N){return N.resolve||{}}function Ui(N){const K=N.children.map(P=>Ui(P)).flat();return[N,...K]}function no(N){return(0,Te.n)(K=>{const P=N(K);return P?(0,c.H)(P).pipe((0,pe.T)(()=>K)):(0,y.of)(K)})}let $o=(()=>{class N{buildTitle(P){let X,he=P.root;for(;void 0!==he;)X=this.getResolvedTitleForRoute(he)??X,he=he.children.find(We=>We.outlet===Xe);return X}getResolvedTitleForRoute(P){return P.data[Ge]}static \u0275fac=function(X){return new(X||N)};static \u0275prov=i.jDH({token:N,factory:()=>(0,i.WQX)(es),providedIn:"root"})}return N})(),es=(()=>{class N 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||N)(i.KVO(lt.hE))};static \u0275prov=i.jDH({token:N,factory:N.\u0275fac,providedIn:"root"})}return N})();const Po=new i.nKC("",{providedIn:"root",factory:()=>({})});let Fr=(()=>{class N{static \u0275fac=function(X){return new(X||N)};static \u0275cmp=i.VBU({type:N,selectors:[["ng-component"]],decls:1,vars:0,template:function(X,he){1&X&&i.nrm(0,"router-outlet")},dependencies:[Qo],encapsulation:2})}return N})();function po(N){const K=N.children&&N.children.map(po),P=K?{...N,children:K}:{...N};return!P.component&&!P.loadComponent&&(K||P.loadChildren)&&P.outlet&&P.outlet!==Xe&&(P.component=Fr),P}const Is=new i.nKC("");let Rr=(()=>{class N{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=en(P.loadComponent()).pipe((0,pe.T)(ja),(0,Yt.M)(We=>{this.onLoadEndListener&&this.onLoadEndListener(P),P._loadedComponent=We}),(0,ze.j)(()=>{this.componentLoaders.delete(P)})),he=new Z.G(X,()=>new te.B).pipe((0,Be.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 mo(N,K,P,X){return en(N.loadChildren()).pipe((0,pe.T)(ja),(0,xe.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(N);let We,Dt,yn=!1;return Array.isArray(he)?(Dt=he,!0):(We=he.create(P).injector,Dt=We.get(Is,[],{optional:!0,self:!0}).flat()),{routes:Dt.map(po),injector:We}}))}(X,this.compiler,P,this.onLoadEndListener).pipe((0,ze.j)(()=>{this.childrenLoaders.delete(X)})),Dt=new Z.G(We,()=>new te.B).pipe((0,Be.B)());return this.childrenLoaders.set(X,Dt),Dt}static \u0275fac=function(X){return new(X||N)};static \u0275prov=i.jDH({token:N,factory:N.\u0275fac,providedIn:"root"})}return N})();function ja(N){return function lc(N){return N&&"object"==typeof N&&"default"in N}(N)?N.default:N}let ro=(()=>{class N{static \u0275fac=function(X){return new(X||N)};static \u0275prov=i.jDH({token:N,factory:()=>(0,i.WQX)(Va),providedIn:"root"})}return N})(),Va=(()=>{class N{shouldProcessUrl(P){return!0}extract(P){return P}merge(P,X){return P}static \u0275fac=function(X){return new(X||N)};static \u0275prov=i.jDH({token:N,factory:N.\u0275fac,providedIn:"root"})}return N})();const Di=new i.nKC(""),Us=new i.nKC("");function oa(N,K,P){const X=N.get(Us),he=N.get(_e.qQ);return N.get(i.SKi).runOutsideAngular(()=>{if(!he.startViewTransition||X.skipNextTransition)return X.skipNextTransition=!1,new Promise(fr=>setTimeout(fr));let We;const Dt=new Promise(fr=>{We=fr}),yn=he.startViewTransition(()=>(We(),function No(N){return new Promise(K=>{(0,i.mal)({read:()=>setTimeout(K)},{injector:N})})}(N))),{onViewTransitionCreated:on}=X;return on&&(0,i.N4e)(N,()=>on({transition:yn,from:K,to:P})),Dt})}const U=new i.nKC("");let de=(()=>{class N{currentNavigation=null;currentTransition=null;lastSuccessfulNavigation=null;events=new te.B;transitionAbortSubject=new te.B;configLoader=(0,i.WQX)(Rr);environmentInjector=(0,i.WQX)(i.uvJ);urlSerializer=(0,i.WQX)(mt);rootContexts=(0,i.WQX)(rs);location=(0,i.WQX)(_e.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)(U,{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 pr(he)),this.configLoader.onLoadStartListener=he=>this.events.next(new Ir(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,Se.p)(We=>0!==We.id),(0,pe.T)(We=>({...We,extractedUrl:this.urlHandlingStrategy.extract(We.rawUrl)})),(0,Te.n)(We=>{let Dt=!1,yn=!1;return(0,y.of)(We).pipe((0,Te.n)(on=>{if(this.navigationId>We.id)return this.cancelNavigationTransition(We,"",ht.SupersededByNewNavigation),G.w;this.currentTransition=We,this.currentNavigation={id:on.id,initialUrl:on.rawUrl,extractedUrl:on.extractedUrl,targetBrowserUrl:"string"==typeof on.extras.browserUrl?this.urlSerializer.parse(on.extras.browserUrl):on.extras.browserUrl,trigger:on.source,extras:on.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null};const fr=!P.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl();if(!fr&&"reload"!==(on.extras.onSameUrlNavigation??P.onSameUrlNavigation)){const hi="";return this.events.next(new hn(on.id,this.urlSerializer.serialize(on.rawUrl),hi,Vt.IgnoredSameUrlNavigation)),on.resolve(!1),G.w}if(this.urlHandlingStrategy.shouldProcessUrl(on.rawUrl))return(0,y.of)(on).pipe((0,Te.n)(hi=>{const io=this.transitions?.getValue();return this.events.next(new tt(hi.id,this.urlSerializer.serialize(hi.extractedUrl),hi.source,hi.restoredState)),io!==this.transitions?.getValue()?G.w:Promise.resolve(hi)}),function Ea(N,K,P,X,he,We){return(0,xe.Z)(Dt=>function ba(N,K,P,X,he,We,Dt="emptyOnly"){return new Jo(N,K,P,X,he,Dt,We).recognize()}(N,K,P,X,Dt.extractedUrl,he,We).pipe((0,pe.T)(({state:yn,tree:on})=>({...Dt,targetSnapshot:yn,urlAfterRedirects:on}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,P.config,this.urlSerializer,this.paramsInheritanceStrategy),(0,Yt.M)(hi=>{We.targetSnapshot=hi.targetSnapshot,We.urlAfterRedirects=hi.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:hi.urlAfterRedirects};const io=new An(hi.id,this.urlSerializer.serialize(hi.extractedUrl),this.urlSerializer.serialize(hi.urlAfterRedirects),hi.targetSnapshot);this.events.next(io)}));if(fr&&this.urlHandlingStrategy.shouldProcessUrl(on.currentRawUrl)){const{id:hi,extractedUrl:io,source:as,restoredState:Ko,extras:Cs}=on,Wr=new tt(hi,this.urlSerializer.serialize(io),as,Ko);this.events.next(Wr);const fl=ko(this.rootComponentType).snapshot;return this.currentTransition=We={...on,targetSnapshot:fl,urlAfterRedirects:io,extras:{...Cs,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=io,(0,y.of)(We)}{const hi="";return this.events.next(new hn(on.id,this.urlSerializer.serialize(on.extractedUrl),hi,Vt.IgnoredByUrlHandlingStrategy)),on.resolve(!1),G.w}}),(0,Yt.M)(on=>{const fr=new On(on.id,this.urlSerializer.serialize(on.extractedUrl),this.urlSerializer.serialize(on.urlAfterRedirects),on.targetSnapshot);this.events.next(fr)}),(0,pe.T)(on=>(this.currentTransition=We={...on,guards:fn(on.targetSnapshot,on.currentSnapshot,this.rootContexts)},We)),function Q(N,K){return(0,xe.Z)(P=>{const{targetSnapshot:X,currentSnapshot:he,guards:{canActivateChecks:We,canDeactivateChecks:Dt}}=P;return 0===Dt.length&&0===We.length?(0,y.of)({...P,guardsResult:!0}):function Pe(N,K,P,X){return(0,c.H)(N).pipe((0,xe.Z)(he=>function Fa(N,K,P,X,he){const We=K&&K.routeConfig?K.routeConfig.canDeactivate:null;if(!We||0===We.length)return(0,y.of)(!0);const Dt=We.map(yn=>{const on=Ni(K)??he,fr=dr(yn,on);return en(function Oo(N){return N&&Ei(N.canDeactivate)}(fr)?fr.canDeactivate(N,K,P,X):(0,i.N4e)(on,()=>fr(N,K,P,X))).pipe(_t())});return(0,y.of)(Dt).pipe(ue())}(he.component,he.route,P,K,X)),_t(he=>!0!==he,!0))}(Dt,X,he,N).pipe((0,xe.Z)(yn=>yn&&function ui(N){return"boolean"==typeof N}(yn)?function jt(N,K,P,X){return(0,c.H)(K).pipe((0,ot.H)(he=>(0,S.x)(function ti(N,K){return null!==N&&K&&K(new bi(N)),(0,y.of)(!0)}(he.route.parent,X),function gr(N,K){return null!==N&&K&&K(new mr(N)),(0,y.of)(!0)}(he.route,X),function qo(N,K,P){const X=K[K.length-1],We=K.slice(0,K.length-1).reverse().map(Dt=>function cr(N){const K=N.routeConfig?N.routeConfig.canActivateChild:null;return K&&0!==K.length?{node:N,guards:K}:null}(Dt)).filter(Dt=>null!==Dt).map(Dt=>(0,T.v)(()=>{const yn=Dt.guards.map(on=>{const fr=Ni(Dt.node)??P,ri=dr(on,fr);return en(function Ho(N){return N&&Ei(N.canActivateChild)}(ri)?ri.canActivateChild(X,N):(0,i.N4e)(fr,()=>ri(X,N))).pipe(_t())});return(0,y.of)(yn).pipe(ue())}));return(0,y.of)(We).pipe(ue())}(N,he.path,P),function So(N,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,T.v)(()=>{const Dt=Ni(K)??P,yn=dr(We,Dt);return en(function lo(N){return N&&Ei(N.canActivate)}(yn)?yn.canActivate(K,N):(0,i.N4e)(Dt,()=>yn(K,N))).pipe(_t())}));return(0,y.of)(he).pipe(ue())}(N,he.route,P))),_t(he=>!0!==he,!0))}(X,We,N,K):(0,y.of)(yn)),(0,pe.T)(yn=>({...P,guardsResult:yn})))})}(this.environmentInjector,on=>this.events.next(on)),(0,Yt.M)(on=>{if(We.guardsResult=on.guardsResult,on.guardsResult&&"boolean"!=typeof on.guardsResult)throw wl(0,on.guardsResult);const fr=new Un(on.id,this.urlSerializer.serialize(on.extractedUrl),this.urlSerializer.serialize(on.urlAfterRedirects),on.targetSnapshot,!!on.guardsResult);this.events.next(fr)}),(0,Se.p)(on=>!!on.guardsResult||(this.cancelNavigationTransition(on,"",ht.GuardRejected),!1)),no(on=>{if(on.guards.canActivateChecks.length)return(0,y.of)(on).pipe((0,Yt.M)(fr=>{const ri=new Jn(fr.id,this.urlSerializer.serialize(fr.extractedUrl),this.urlSerializer.serialize(fr.urlAfterRedirects),fr.targetSnapshot);this.events.next(ri)}),(0,Te.n)(fr=>{let ri=!1;return(0,y.of)(fr).pipe(function hs(N,K){return(0,xe.Z)(P=>{const{targetSnapshot:X,guards:{canActivateChecks:he}}=P;if(!he.length)return(0,y.of)(P);const We=new Set(he.map(on=>on.route)),Dt=new Set;for(const on of We)if(!Dt.has(on))for(const fr of Ui(on))Dt.add(fr);let yn=0;return(0,c.H)(Dt).pipe((0,ot.H)(on=>We.has(on)?function Gn(N,K,P,X){const he=N.routeConfig,We=N._resolve;return void 0!==he?.title&&!na(he)&&(We[Ge]=he.title),function Ar(N,K,P,X){const he=pn(N);if(0===he.length)return(0,y.of)({});const We={};return(0,c.H)(he).pipe((0,xe.Z)(Dt=>function Ao(N,K,P,X){const he=Ni(K)??X,We=dr(N,he);return en(We.resolve?We.resolve(K,P):(0,i.N4e)(he,()=>We(K,P)))}(N[Dt],K,P,X).pipe(_t(),(0,Yt.M)(yn=>{if(yn instanceof Io)throw wl(new At,yn);We[Dt]=yn}))),En(1),(0,wt.u)(We),(0,un.W)(Dt=>Qa(Dt)?G.w:(0,R.$)(Dt)))}(We,N,K,X).pipe((0,pe.T)(Dt=>(N._resolvedData=Dt,N.data=Eo(N,N.parent,P).resolve,null)))}(on,X,N,K):(on.data=Eo(on,on.parent,N).resolve,(0,y.of)(void 0))),(0,Yt.M)(()=>yn++),En(1),(0,xe.Z)(on=>yn===Dt.size?(0,y.of)(P):G.w))})}(this.paramsInheritanceStrategy,this.environmentInjector),(0,Yt.M)({next:()=>ri=!0,complete:()=>{ri||this.cancelNavigationTransition(fr,"",ht.NoDataFromResolver)}}))}),(0,Yt.M)(fr=>{const ri=new sr(fr.id,this.urlSerializer.serialize(fr.extractedUrl),this.urlSerializer.serialize(fr.urlAfterRedirects),fr.targetSnapshot);this.events.next(ri)}))}),no(on=>{const fr=ri=>{const hi=[];ri.routeConfig?.loadComponent&&!ri.routeConfig._loadedComponent&&hi.push(this.configLoader.loadComponent(ri.routeConfig).pipe((0,Yt.M)(io=>{ri.component=io}),(0,pe.T)(()=>{})));for(const io of ri.children)hi.push(...fr(io));return hi};return(0,C.z)(fr(on.targetSnapshot.root)).pipe(ke(null),(0,Ce.s)(1))}),no(()=>this.afterPreactivation()),(0,Te.n)(()=>{const{currentSnapshot:on,targetSnapshot:fr}=We,ri=this.createViewTransition?.(this.environmentInjector,on.root,fr.root);return ri?(0,c.H)(ri).pipe((0,pe.T)(()=>We)):(0,y.of)(We)}),(0,pe.T)(on=>{const fr=function vo(N,K,P){const X=Zo(N,K._root,P?P._root:void 0);return new Es(X,K)}(P.routeReuseStrategy,on.targetSnapshot,on.currentRouterState);return this.currentTransition=We={...on,targetRouterState:fr},this.currentNavigation.targetRouterState=fr,We}),(0,Yt.M)(()=>{this.events.next(new $r)}),((N,K,P,X)=>(0,pe.T)(he=>(new Qe(K,he.targetRouterState,he.currentRouterState,P,X).activate(N),he)))(this.rootContexts,P.routeReuseStrategy,on=>this.events.next(on),this.inputBindingEnabled),(0,Ce.s)(1),(0,Yt.M)({next:on=>{Dt=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Oe(on.id,this.urlSerializer.serialize(on.extractedUrl),this.urlSerializer.serialize(on.urlAfterRedirects))),this.titleStrategy?.updateTitle(on.targetRouterState.snapshot),on.resolve(!0)},complete:()=>{Dt=!0}}),(0,Ut.Q)(this.transitionAbortSubject.pipe((0,Yt.M)(on=>{throw on}))),(0,ze.j)(()=>{!Dt&&!yn&&this.cancelNavigationTransition(We,"",ht.SupersededByNewNavigation),this.currentTransition?.id===We.id&&(this.currentNavigation=null,this.currentTransition=null)}),(0,un.W)(on=>{if(yn=!0,Y(on))this.events.next(new kt(We.id,this.urlSerializer.serialize(We.extractedUrl),on.message,on.cancellationCode)),function Ya(N){return Y(N)&&Tt(N.url)}(on)?this.events.next(new Gi(on.url,on.navigationBehaviorOptions)):We.resolve(!1);else{const fr=new Cn(We.id,this.urlSerializer.serialize(We.extractedUrl),on,We.targetSnapshot??void 0);try{const ri=(0,i.N4e)(this.environmentInjector,()=>this.navigationErrorHandler?.(fr));if(!(ri instanceof Io))throw this.events.next(fr),on;{const{message:hi,cancellationCode:io}=wl(0,ri);this.events.next(new kt(We.id,this.urlSerializer.serialize(We.extractedUrl),hi,io)),this.events.next(new Gi(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 kt(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||N)};static \u0275prov=i.jDH({token:N,factory:N.\u0275fac,providedIn:"root"})}return N})();function q(N){return N!==ct}let ve=(()=>{class N{static \u0275fac=function(X){return new(X||N)};static \u0275prov=i.jDH({token:N,factory:()=>(0,i.WQX)(bn),providedIn:"root"})}return N})();class rt{shouldDetach(K){return!1}store(K,P){}shouldAttach(K){return!1}retrieve(K){return null}shouldReuseRoute(K,P){return K.routeConfig===P.routeConfig}}let bn=(()=>{class N extends rt{static \u0275fac=(()=>{let P;return function(he){return(P||(P=i.xGo(N)))(he||N)}})();static \u0275prov=i.jDH({token:N,factory:N.\u0275fac,providedIn:"root"})}return N})(),Rn=(()=>{class N{static \u0275fac=function(X){return new(X||N)};static \u0275prov=i.jDH({token:N,factory:()=>(0,i.WQX)(Cr),providedIn:"root"})}return N})(),Cr=(()=>{class N extends Rn{location=(0,i.WQX)(_e.aZ);urlSerializer=(0,i.WQX)(mt);options=(0,i.WQX)(Po,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";urlHandlingStrategy=(0,i.WQX)(ro);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new nt;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=ko(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 tt)this.stateMemento=this.createStateMemento();else if(P instanceof hn)this.rawUrlTree=X.initialUrl;else if(P instanceof An){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 kt&&(P.code===ht.GuardRejected||P.code===ht.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 nt?this.urlSerializer.serialize(P):P;if(this.location.isCurrentPathEqualTo(he)||X.extras.replaceUrl){const Dt={...X.extras.state,...this.generateNgRouterState(X.id,this.browserPageId)};this.location.replaceState(he,"",Dt)}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(N)))(he||N)}})();static \u0275prov=i.jDH({token:N,factory:N.\u0275fac,providedIn:"root"})}return N})();var Yr=function(N){return N[N.COMPLETE=0]="COMPLETE",N[N.FAILED=1]="FAILED",N[N.REDIRECTING=2]="REDIRECTING",N}(Yr||{});function Li(N,K){N.events.pipe((0,Se.p)(P=>P instanceof Oe||P instanceof kt||P instanceof Cn||P instanceof hn),(0,pe.T)(P=>P instanceof Oe||P instanceof hn?Yr.COMPLETE:P instanceof kt&&(P.code===ht.Redirect||P.code===ht.SupersededByNewNavigation)?Yr.REDIRECTING:Yr.FAILED),(0,Se.p)(P=>P!==Yr.REDIRECTING),(0,Ce.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 N{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=(0,i.WQX)(i.H3F);stateManager=(0,i.WQX)(Rn);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)(mt);location=(0,i.WQX)(_e.aZ);urlHandlingStrategy=(0,i.WQX)(ro);_events=new te.B;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=(0,i.WQX)(ve);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=(0,i.WQX)(Is,{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 we.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 kt&&X.code!==ht.Redirect&&X.code!==ht.SupersededByNewNavigation)this.navigated=!0;else if(X instanceof Oe)this.navigated=!0;else if(X instanceof Gi){const Dt=X.navigationBehaviorOptions,yn=this.urlHandlingStrategy.merge(X.url,he.currentRawUrl),on={browserUrl:he.extras.browserUrl,info:he.extras.info,skipLocationChange:he.extras.skipLocationChange,replaceUrl:he.extras.replaceUrl||"eager"===this.urlUpdateStrategy||q(he.source),...Dt};this.scheduleNavigation(yn,ct,null,on,{resolve:he.resolve,reject:he.reject,promise:he.promise})}(function Fo(N){return!(N instanceof $r||N instanceof Gi)})(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},Dt=he?.navigationId?he:null;if(he){const on={...he};delete on.navigationId,delete on.\u0275routerPageId,0!==Object.keys(on).length&&(We.state=on)}const yn=this.parseUrl(P);this.scheduleNavigation(yn,X,Dt,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(po),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:Dt,queryParamsHandling:yn,preserveFragment:on}=X,fr=on?this.currentUrlTree.fragment:Dt;let hi,ri=null;switch(yn??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=St(he?he.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof P[0]||"/"!==P[0][0])&&(P=[]),hi=this.currentUrlTree.root}return zt(hi,P,ri,fr??null)}navigateByUrl(P,X={skipLocationChange:!1}){const he=Tt(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(N){for(let K=0;K(null!=We&&(X[he]=We),X),{})}scheduleNavigation(P,X,he,We,Dt){if(this.disposed)return Promise.resolve(!1);let yn,on,fr;Dt?(yn=Dt.resolve,on=Dt.reject,fr=Dt.promise):fr=new Promise((hi,io)=>{yn=hi,on=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:yn,reject:on,promise:fr,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),fr.catch(hi=>Promise.reject(hi))}static \u0275fac=function(X){return new(X||N)};static \u0275prov=i.jDH({token:N,factory:N.\u0275fac,providedIn:"root"})}return N})(),Wo=(()=>{class N{router;route;tabIndexAttribute;renderer;el;locationStrategy;href=null;target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new te.B;constructor(P,X,he,We,Dt,yn){this.router=P,this.route=X,this.tabIndexAttribute=he,this.renderer=We,this.el=Dt,this.locationStrategy=yn;const on=Dt.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===on||"area"===on,this.isAnchorElement?this.subscription=P.events.subscribe(fr=>{fr 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=Tt(P)||Array.isArray(P)?P:[P],this.setTabIndexIfNotOnNativeEl("0"))}onClick(P,X,he,We,Dt){const yn=this.urlTree;return!!(null===yn||this.isAnchorElement&&(0!==P||X||he||We||Dt||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(yn,{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:Tt(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||N)(i.rXU(Qr),i.rXU(tr),i.kS0("tabindex"),i.rXU(i.sFG),i.rXU(i.aKT),i.rXU(_e.hb))};static \u0275dir=i.FsC({type:N,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(X,he){1&X&&i.bIt("click",function(Dt){return he.onClick(Dt.button,Dt.ctrlKey,Dt.shiftKey,Dt.altKey,Dt.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 N})(),fs=(()=>{class N{router;element;renderer;cdr;link;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new i.bkB;constructor(P,X,he,We,Dt){this.router=P,this.element=X,this.renderer=he,this.cdr=We,this.link=Dt,this.routerEventsSubscription=P.events.subscribe(yn=>{yn 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(N){return!!N.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||N)(i.rXU(Qr),i.rXU(i.aKT),i.rXU(i.sFG),i.rXU(i.gRc),i.rXU(Wo,8))};static \u0275dir=i.FsC({type:N,selectors:[["","routerLinkActive",""]],contentQueries:function(X,he,We){if(1&X&&i.wni(We,Wo,5),2&X){let Dt;i.mGM(Dt=i.lsd())&&(he.links=Dt)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[i.OA$]})}return N})();class Os{}let Ys=(()=>{class N{router;injector;preloadingStrategy;loader;subscription;constructor(P,X,he,We,Dt){this.router=P,this.injector=he,this.preloadingStrategy=We,this.loader=Dt}setUpPreloading(){this.subscription=this.router.events.pipe((0,Se.p)(P=>P instanceof Oe),(0,ot.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 Dt=We._injector??P,yn=We._loadedInjector??Dt;(We.loadChildren&&!We._loadedRoutes&&void 0===We.canLoad||We.loadComponent&&!We._loadedComponent)&&he.push(this.preloadConfig(Dt,We)),(We.children||We._loadedRoutes)&&he.push(this.processRoutes(yn,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,xe.Z)(Dt=>null===Dt?(0,y.of)(void 0):(X._loadedRoutes=Dt.routes,X._loadedInjector=Dt.injector,this.processRoutes(Dt.injector??P,Dt.routes))));if(X.loadComponent&&!X._loadedComponent){const Dt=this.loader.loadComponent(X);return(0,c.H)([We,Dt]).pipe((0,Ke.U)())}return We})}static \u0275fac=function(X){return new(X||N)(i.KVO(Qr),i.KVO(i.Ql9),i.KVO(i.uvJ),i.KVO(Os),i.KVO(Rr))};static \u0275prov=i.jDH({token:N,factory:N.\u0275fac,providedIn:"root"})}return N})();const Ca=new i.nKC("");let cl=(()=>{class N{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource="imperative";restoredId=0;store={};constructor(P,X,he,We,Dt={}){this.urlSerializer=P,this.transitions=X,this.viewportScroller=he,this.zone=We,this.options=Dt,Dt.scrollPositionRestoration||="disabled",Dt.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 tt?(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 hn&&P.code===Vt.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 _o&&(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 _o(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:N,factory:N.\u0275fac})}return N})();function Ml(N,...K){return(0,i.EmA)([{provide:Is,multi:!0,useValue:N},[],{provide:tr,useFactory:ul,deps:[Qr]},{provide:i.iLQ,multi:!0,useFactory:To},K.map(P=>P.\u0275providers)])}function ul(N){return N.routerState.root}function sa(N,K){return{\u0275kind:N,\u0275providers:K}}function cc(N={}){return sa(4,[{provide:Ca,useFactory:()=>{const P=(0,i.WQX)(_e.Xr),X=(0,i.WQX)(i.SKi),he=(0,i.WQX)(de),We=(0,i.WQX)(mt);return new cl(We,he,P,X,N)}}])}function To(){const N=(0,i.WQX)(i.zZn);return K=>{const P=N.get(i.o8S);if(K!==P.components[0])return;const X=N.get(Qr),he=N.get(Ja);1===N.get(el)&&X.initialNavigation(),N.get(Rs,null,i.$GK.Optional)?.setUpPreloading(),N.get(Ca,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 te.B}),el=new i.nKC("",{providedIn:"root",factory:()=>1}),Rs=new i.nKC("");function Zs(N){return sa(0,[{provide:Rs,useExisting:Ys},{provide:Os,useExisting:N}])}function su(N){return sa(9,[{provide:Di,useValue:oa},{provide:Us,useValue:{skipNextTransition:!!N?.skipInitialTransition,...N}}])}const Ec=new i.nKC("ROUTER_FORROOT_GUARD"),aa=[_e.aZ,{provide:mt,useClass:At},Qr,rs,{provide:tr,useFactory:ul,deps:[Qr]},Rr,[]];let dl=(()=>{class N{constructor(P){}static forRoot(P,X){return{ngModule:N,providers:[aa,[],{provide:Is,multi:!0,useValue:P},{provide:Ec,useFactory:la,deps:[[Qr,new i.Xx1,new i.kdw]]},X?.errorHandler?{provide:U,useValue:X.errorHandler}:[],{provide:Po,useValue:X||{}},X?.useHash?{provide:_e.hb,useClass:_e.fw}:{provide:_e.hb,useClass:_e.Sm},{provide:Ca,useFactory:()=>{const N=(0,i.WQX)(_e.Xr),K=(0,i.WQX)(i.SKi),P=(0,i.WQX)(Po),X=(0,i.WQX)(de),he=(0,i.WQX)(mt);return P.scrollOffset&&N.setOffset(P.scrollOffset),new cl(he,X,N,K,P)}},X?.preloadingStrategy?Zs(X.preloadingStrategy).\u0275providers:[],X?.initialNavigation?hl(X):[],X?.bindToComponentInputs?sa(8,[ss,{provide:ao,useExisting:ss}]).\u0275providers:[],X?.enableViewTransitions?su().\u0275providers:[],[{provide:Lu,useFactory:To},{provide:i.iLQ,multi:!0,useExisting:Lu}]]}}static forChild(P){return{ngModule:N,providers:[{provide:Is,multi:!0,useValue:P}]}}static \u0275fac=function(X){return new(X||N)(i.KVO(Ec,8))};static \u0275mod=i.$C({type:N});static \u0275inj=i.G2t({})}return N})();function la(N){return"guarded"}function hl(N){return["disabled"===N.initialNavigation?sa(3,[{provide:i.hnV,multi:!0,useFactory:()=>{const K=(0,i.WQX)(Qr);return()=>{K.setUpLocationChangeListener()}}},{provide:el,useValue:2}]).\u0275providers:[],"enabledBlocking"===N.initialNavigation?sa(2,[{provide:el,useValue:0},{provide:i.hnV,multi:!0,deps:[i.zZn],useFactory:K=>{const P=K.get(_e.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 Lu=new i.nKC("")},8378:(o,s,r)=>{"use strict";r.d(s,{My:()=>Ne,aT:()=>ae});const Ce=Array.from({length:256},(Ze,wt)=>wt.toString(16).padStart(2,"0"));function Ne(Ze){!function c(Ze,...wt){if(!function a(Ze){return Ze instanceof Uint8Array||ArrayBuffer.isView(Ze)&&"Uint8Array"===Ze.constructor.name}(Ze))throw new Error("Uint8Array expected");if(wt.length>0&&!wt.includes(Ze.length))throw new Error("Uint8Array expected of length "+wt+", got length="+Ze.length)}(Ze);let wt="";for(let ze=0;ze=Se._0&&Ze<=Se._9?Ze-Se._0:Ze>=Se.A&&Ze<=Se.F?Ze-(Se.A-10):Ze>=Se.a&&Ze<=Se.f?Ze-(Se.a-10):void 0}function ae(Ze){if("string"!=typeof Ze)throw new Error("hex string expected, got "+typeof Ze);const wt=Ze.length,ze=wt/2;if(wt%2)throw new Error("hex string expected, got unpadded hex of length "+wt);const Be=new Uint8Array(ze);for(let Ut=0,Ke=0;Ut{"use strict";function i(Ge){if(!Number.isSafeInteger(Ge))throw new Error(`Wrong integer: ${Ge}`)}function a(...Ge){const pt=(Nt,tn)=>pn=>Nt(tn(pn));return{encode:Array.from(Ge).reverse().reduce((Nt,tn)=>Nt?pt(Nt,tn.encode):tn.encode,void 0),decode:Ge.reduce((Nt,tn)=>Nt?pt(Nt,tn.decode):tn.decode,void 0)}}function c(Ge){return{encode:pt=>{if(!Array.isArray(pt)||pt.length&&"number"!=typeof pt[0])throw new Error("alphabet.encode input should be an array of numbers");return pt.map(se=>{if(i(se),se<0||se>=Ge.length)throw new Error(`Digit index outside alphabet: ${se} (alphabet: ${Ge.length})`);return Ge[se]})},decode:pt=>{if(!Array.isArray(pt)||pt.length&&"string"!=typeof pt[0])throw new Error("alphabet.decode input should be array of strings");return pt.map(se=>{if("string"!=typeof se)throw new Error(`alphabet.decode: not string element=${se}`);const qe=Ge.indexOf(se);if(-1===qe)throw new Error(`Unknown letter: "${se}". Allowed: ${Ge}`);return qe})}}}function y(Ge=""){if("string"!=typeof Ge)throw new Error("join separator should be string");return{encode:pt=>{if(!Array.isArray(pt)||pt.length&&"string"!=typeof pt[0])throw new Error("join.encode input should be array of strings");for(let se of pt)if("string"!=typeof se)throw new Error(`join.encode: non-string input=${se}`);return pt.join(Ge)},decode:pt=>{if("string"!=typeof pt)throw new Error("join.decode input should be string");return pt.split(Ge)}}}function w(Ge,pt="="){if(i(Ge),"string"!=typeof pt)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 qe of se)if("string"!=typeof qe)throw new Error(`padding.encode: non-string input=${qe}`);for(;se.length*Ge%8;)se.push(pt);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 Nt of se)if("string"!=typeof Nt)throw new Error(`padding.decode: non-string input=${Nt}`);let qe=se.length;if(qe*Ge%8)throw new Error("Invalid padding: string should have whole number of bytes");for(;qe>0&&se[qe-1]===pt;qe--)if(!((qe-1)*Ge%8))throw new Error("Invalid padding: string has too much padding");return se.slice(0,qe)}}}function C(Ge){if("function"!=typeof Ge)throw new Error("normalize fn should be function");return{encode:pt=>pt,decode:pt=>Ge(pt)}}function A(Ge,pt,se){if(pt<2)throw new Error(`convertRadix: wrong from=${pt}, 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(Ge))throw new Error("convertRadix: data should be array");if(!Ge.length)return[];let qe=0;const Nt=[],tn=Array.from(Ge);for(tn.forEach(pn=>{if(i(pn),pn<0||pn>=pt)throw new Error(`Wrong integer: ${pn}`)});;){let pn=0,Wn=!0;for(let Pt=qe;Pt$n,K3:()=>Ne,Tq:()=>ft});const S=(Ge,pt)=>pt?S(pt,Ge%pt):Ge,T=(Ge,pt)=>Ge+(pt-S(Ge,pt));function k(Ge,pt,se,qe){if(!Array.isArray(Ge))throw new Error("convertRadix2: data should be array");if(pt<=0||pt>32)throw new Error(`convertRadix2: wrong from=${pt}`);if(se<=0||se>32)throw new Error(`convertRadix2: wrong to=${se}`);if(T(pt,se)>32)throw new Error(`convertRadix2: carry overflow from=${pt} to=${se} carryBits=${T(pt,se)}`);let Nt=0,tn=0;const pn=2**se-1,Wn=[];for(const Pt of Ge){if(i(Pt),Pt>=2**pt)throw new Error(`convertRadix2: invalid data word=${Pt} from=${pt}`);if(Nt=Nt<32)throw new Error(`convertRadix2: carry overflow pos=${tn} from=${pt}`);for(tn+=pt;tn>=se;tn-=se)Wn.push((Nt>>tn-se&pn)>>>0);Nt&=2**tn-1}if(Nt=Nt<=pt)throw new Error("Excess padding");if(!qe&&Nt)throw new Error(`Non-zero padding: ${Nt}`);return qe&&tn>0&&Wn.push(Nt>>>0),Wn}function G(Ge,pt=!1){if(i(Ge),Ge<=0||Ge>32)throw new Error("radix2: bits should be in (0..32]");if(T(8,Ge)>32||T(Ge,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 k(Array.from(se),8,Ge,!pt)},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(k(se,Ge,8,pt))}}}function Z(Ge){if("function"!=typeof Ge)throw new Error("unsafeWrapper fn should be function");return function(...pt){try{return Ge.apply(null,pt)}catch{}}}a(G(4),c("0123456789ABCDEF"),y("")),a(G(5),c("ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"),w(5),y(""));const Ne=(a(G(5),c("0123456789ABCDEFGHIJKLMNOPQRSTUV"),w(5),y("")),a(G(5),c("0123456789ABCDEFGHJKMNPQRSTVWXYZ"),y(""),C(Ge=>Ge.toUpperCase().replace(/O/g,"0").replace(/[IL]/g,"1"))),a(G(6),c("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),w(6),y(""))),xe=(a(G(6),c("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),w(6),y("")),Ge=>a(function R(Ge){return i(Ge),{encode:pt=>{if(!(pt instanceof Uint8Array))throw new Error("radix.encode input should be Uint8Array");return A(Array.from(pt),256,Ge)},decode:pt=>{if(!Array.isArray(pt)||pt.length&&"number"!=typeof pt[0])throw new Error("radix.decode input should be array of strings");return Uint8Array.from(A(pt,Ge,256))}}}(58),c(Ge),y(""))),ae=xe("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),ft=(xe("123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"),xe("rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz"),Ge=>a(function te(Ge,pt){if(i(Ge),"function"!=typeof pt)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 qe=pt(se).slice(0,Ge),Nt=new Uint8Array(se.length+Ge);return Nt.set(se),Nt.set(qe,se.length),Nt},decode(se){if(!(se instanceof Uint8Array))throw new Error("checksum.decode: input should be Uint8Array");const qe=se.slice(0,-Ge),Nt=pt(qe).slice(0,Ge),tn=se.slice(-Ge);for(let pn=0;pnGe(Ge(pt))),ae)),_t=a(c("qpzry9x8gf2tvdw0s3jn54khce6mua7l"),y("")),ot=[996825010,642813549,513874426,1027748829,705979059];function Yt(Ge){const pt=Ge>>25;let se=(33554431&Ge)<<5;for(let qe=0;qe>qe&1)&&(se^=ot[qe]);return se}function un(Ge,pt,se=1){const qe=Ge.length;let Nt=1;for(let tn=0;tn126)throw new Error(`Invalid prefix (${Ge})`);Nt=Yt(Nt)^pn>>5}Nt=Yt(Nt);for(let tn=0;tnYn)throw new TypeError(`Wrong string length: ${an.length} (${an}). Expected (8..${Yn})`);const Sn=an.toLowerCase();if(an!==Sn&&an!==an.toUpperCase())throw new Error("String must be lowercase or uppercase");const Xt=(an=Sn).lastIndexOf("1");if(0===Xt||-1===Xt)throw new Error('Letter "1" must be present between prefix and data only');const Mt=an.slice(0,Xt),Gt=an.slice(Xt+1);if(Gt.length<6)throw new Error("Data must be at least 6 characters long");const Ot=_t.decode(Gt).slice(0,-6),Ie=un(Mt,Ot,pt);if(!Gt.endsWith(Ie))throw new Error(`Invalid checksum in ${an}: expected "${Ie}"`);return{prefix:Mt,words:Ot}}return{encode:function pn(an,Yn,Sn=90){if("string"!=typeof an)throw new Error("bech32.encode prefix should be string, not "+typeof an);if(!Array.isArray(Yn)||Yn.length&&"number"!=typeof Yn[0])throw new Error("bech32.encode words should be array of numbers, not "+typeof Yn);const Xt=an.length+7+Yn.length;if(!1!==Sn&&Xt>Sn)throw new TypeError(`Length ${Xt} exceeds limit ${Sn}`);return`${an=an.toLowerCase()}1${_t.encode(Yn)}${un(an,Yn,pt)}`},decode:Wn,decodeToBytes:function en(an){const{prefix:Yn,words:Sn}=Wn(an,!1);return{prefix:Yn,words:Sn,bytes:qe(Sn)}},decodeUnsafe:Z(Wn),fromWords:qe,fromWordsUnsafe:tn,toWords:Nt}}const $n=wn("bech32");wn("bech32m"),a(G(4),c("0123456789abcdef"),y(""),C(Ge=>{if("string"!=typeof Ge||Ge.length%2)throw new TypeError(`hex.decode: expected string, got ${typeof Ge} with length ${Ge.length}`);return Ge.toLowerCase()}))},2769:(o,s,r)=>{"use strict";r.d(s,{A:()=>y});var i=r(3121),a=r(9311);const y=(0,i.A)(a.A,"Map")},1238:(o,s,r)=>{"use strict";r.d(s,{A:()=>bt});var c=r(2486);const w=function y(mt,At){for(var Ln=mt.length;Ln--;)if((0,c.A)(mt[Ln][0],At))return Ln;return-1};var A=Array.prototype.splice;function _e(mt){var At=-1,Ln=null==mt?0:mt.length;for(this.clear();++At-1},_e.prototype.set=function te(mt,At){var Ln=this.__data__,Zt=w(Ln,mt);return Zt<0?(++this.size,Ln.push([mt,At])):Ln[Zt][1]=At,this};const pe=_e;var Ue=r(2769);const _t=(0,r(3121).A)(Object,"create");var Ze=Object.prototype.hasOwnProperty;var Ut=Object.prototype.hasOwnProperty;function se(mt){var At=-1,Ln=null==mt?0:mt.length;for(this.clear();++At{"use strict";r.d(s,{A:()=>c});const c=r(9311).A.Symbol},6259:(o,s,r)=>{"use strict";r.d(s,{A:()=>R});var c=r(1656),y=r(9007),w=r(5303),C=r(3467),A=r(766),T=Object.prototype.hasOwnProperty;const R=function k(G,Z){var te=(0,y.A)(G),we=!te&&(0,c.A)(G),_e=!te&&!we&&(0,w.A)(G),pe=!te&&!we&&!_e&&(0,A.A)(G),Te=te||we||_e||pe,Ce=Te?function i(G,Z){for(var te=-1,we=Array(G);++te{"use strict";r.d(s,{A:()=>C});var i=r(8758),a=r(2486),y=Object.prototype.hasOwnProperty;const C=function w(A,S,T){var k=A[S];(!y.call(A,S)||!(0,a.A)(k,T)||void 0===T&&!(S in A))&&(0,i.A)(A,S,T)}},8758:(o,s,r)=>{"use strict";r.d(s,{A:()=>c});var i=r(4133);const c=function a(y,w,C){"__proto__"==w&&i.A?(0,i.A)(y,w,{configurable:!0,enumerable:!0,value:C,writable:!0}):y[w]=C}},5688:(o,s,r)=>{"use strict";r.d(s,{A:()=>_e});var i=r(4883),a=Object.prototype,c=a.hasOwnProperty,y=a.toString,w=i.A?i.A.toStringTag:void 0;var T=Object.prototype.toString;var te=i.A?i.A.toStringTag:void 0;const _e=function we(pe){return null==pe?void 0===pe?"[object Undefined]":"[object Null]":te&&te in Object(pe)?function C(pe){var Te=c.call(pe,w),Ce=pe[w];try{pe[w]=void 0;var Ne=!0}catch{}var Se=y.call(pe);return Ne&&(Te?pe[w]=Ce:delete pe[w]),Se}(pe):function k(pe){return T.call(pe)}(pe)}},4975:(o,s,r)=>{"use strict";r.d(s,{A:()=>a});const a=function i(c){return function(y){return c(y)}}},3031:(o,s,r)=>{"use strict";r.d(s,{A:()=>w});const c=r(9311).A.Uint8Array,w=function y(C){var A=new C.constructor(C.byteLength);return new c(A).set(new c(C)),A}},4224:(o,s,r)=>{"use strict";r.d(s,{A:()=>S});var i=r(9311),a="object"==typeof exports&&exports&&!exports.nodeType&&exports,c=a&&"object"==typeof module&&module&&!module.nodeType&&module,w=c&&c.exports===a?i.A.Buffer:void 0,C=w?w.allocUnsafe:void 0;const S=function A(T,k){if(k)return T.slice();var R=T.length,G=C?C(R):new T.constructor(R);return T.copy(G),G}},7383:(o,s,r)=>{"use strict";r.d(s,{A:()=>c});var i=r(3031);const c=function a(y,w){var C=w?(0,i.A)(y.buffer):y.buffer;return new y.constructor(C,y.byteOffset,y.length)}},1369:(o,s,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(2065),a=r(8758);const y=function c(w,C,A,S){var T=!A;A||(A={});for(var k=-1,R=C.length;++k{"use strict";r.d(s,{A:()=>c});var i=r(3121);const c=function(){try{var y=(0,i.A)(Object,"defineProperty");return y({},"",{}),y}catch{}}()},8618:(o,s,r)=>{"use strict";r.d(s,{A:()=>a});const a="object"==typeof global&&global&&global.Object===Object&&global},3121:(o,s,r)=>{"use strict";r.d(s,{A:()=>xe});var ae,i=r(5656),c=r(9311).A["__core-js_shared__"],w=(ae=/[^.]+$/.exec(c&&c.keys&&c.keys.IE_PROTO||""))?"Symbol(src)_1."+ae:"";var S=r(7999),T=r(4435),R=/^\[object .+?Constructor\]$/,_e=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Te=function pe(ae){return!(!(0,S.A)(ae)||function C(ae){return!!w&&w in ae}(ae))&&((0,i.A)(ae)?_e:R).test((0,T.A)(ae))},xe=function Se(ae,le){var ke=function Ce(ae,le){return ae?.[le]}(ae,le);return Te(ke)?ke:void 0}},5749:(o,s,r)=>{"use strict";r.d(s,{A:()=>c});const c=(0,r(5717).A)(Object.getPrototypeOf,Object)},223:(o,s,r)=>{"use strict";r.d(s,{A:()=>S});var i=r(7999),a=Object.create;const y=function(){function T(){}return function(k){if(!(0,i.A)(k))return{};if(a)return a(k);T.prototype=k;var R=new T;return T.prototype=void 0,R}}();var w=r(5749),C=r(1561);const S=function A(T){return"function"!=typeof T.constructor||(0,C.A)(T)?{}:y((0,w.A)(T))}},3467:(o,s,r)=>{"use strict";r.d(s,{A:()=>y});var a=/^(?:0|[1-9]\d*)$/;const y=function c(w,C){var A=typeof w;return!!(C=C??9007199254740991)&&("number"==A||"symbol"!=A&&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)}},8583:(o,s,r)=>{"use strict";r.d(s,{A:()=>A});var i=r(8618),a="object"==typeof exports&&exports&&!exports.nodeType&&exports,c=a&&"object"==typeof module&&module&&!module.nodeType&&module,w=c&&c.exports===a&&i.A.process;const A=function(){try{return c&&c.require&&c.require("util").types||w&&w.binding&&w.binding("util")}catch{}}()},5717:(o,s,r)=>{"use strict";r.d(s,{A:()=>a});const a=function i(c,y){return function(w){return c(y(w))}}},9311:(o,s,r)=>{"use strict";r.d(s,{A:()=>y});var i=r(8618),a="object"==typeof self&&self&&self.Object===Object&&self;const y=i.A||a||Function("return this")()},4435:(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""}},2486:(o,s,r)=>{"use strict";r.d(s,{A:()=>a});const a=function i(c,y){return c===y||c!=c&&y!=y}},6143:(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:()=>k});var i=r(5688),a=r(2312);const w=function y(R){return(0,a.A)(R)&&"[object Arguments]"==(0,i.A)(R)};var C=Object.prototype,A=C.hasOwnProperty,S=C.propertyIsEnumerable;const k=w(function(){return arguments}())?w:function(R){return(0,a.A)(R)&&A.call(R,"callee")&&!S.call(R,"callee")}},9007:(o,s,r)=>{"use strict";r.d(s,{A:()=>a});const a=Array.isArray},2808:(o,s,r)=>{"use strict";r.d(s,{A:()=>y});var i=r(5656),a=r(4184);const y=function c(w){return null!=w&&(0,a.A)(w.length)&&!(0,i.A)(w)}},5303:(o,s,r)=>{"use strict";r.d(s,{A:()=>k});var i=r(9311),y="object"==typeof exports&&exports&&!exports.nodeType&&exports,w=y&&"object"==typeof module&&module&&!module.nodeType&&module,A=w&&w.exports===y?i.A.Buffer:void 0;const k=(A?A.isBuffer:void 0)||function a(){return!1}},5656:(o,s,r)=>{"use strict";r.d(s,{A:()=>S});var i=r(5688),a=r(7999);const S=function A(T){if(!(0,a.A)(T))return!1;var k=(0,i.A)(T);return"[object Function]"==k||"[object GeneratorFunction]"==k||"[object AsyncFunction]"==k||"[object Proxy]"==k}},4184:(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}},7999:(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)}},2312:(o,s,r)=>{"use strict";r.d(s,{A:()=>a});const a=function i(c){return null!=c&&"object"==typeof c}},766:(o,s,r)=>{"use strict";r.d(s,{A:()=>En});var i=r(5688),a=r(4184),c=r(2312),ft={};ft["[object Float32Array]"]=ft["[object Float64Array]"]=ft["[object Int8Array]"]=ft["[object Int16Array]"]=ft["[object Int32Array]"]=ft["[object Uint8Array]"]=ft["[object Uint8ClampedArray]"]=ft["[object Uint16Array]"]=ft["[object Uint32Array]"]=!0,ft["[object Arguments]"]=ft["[object Array]"]=ft["[object ArrayBuffer]"]=ft["[object Boolean]"]=ft["[object DataView]"]=ft["[object Date]"]=ft["[object Error]"]=ft["[object Function]"]=ft["[object Map]"]=ft["[object Number]"]=ft["[object Object]"]=ft["[object RegExp]"]=ft["[object Set]"]=ft["[object String]"]=ft["[object WeakMap]"]=!1;var Yt=r(4975),un=r(8583),wn=un.A&&un.A.isTypedArray;const En=wn?(0,Yt.A)(wn):function _t(Ze){return(0,c.A)(Ze)&&(0,a.A)(Ze.length)&&!!ft[(0,i.A)(Ze)]}},3959:(o,s,r)=>{"use strict";r.d(s,{A:()=>G});var i=r(6259),a=r(7999),c=r(1561);var A=Object.prototype.hasOwnProperty;const T=function S(Z){if(!(0,a.A)(Z))return function y(Z){var te=[];if(null!=Z)for(var we in Object(Z))te.push(we);return te}(Z);var te=(0,c.A)(Z),we=[];for(var _e in Z)"constructor"==_e&&(te||!A.call(Z,_e))||we.push(_e);return we};var k=r(2808);const G=function R(Z){return(0,k.A)(Z)?(0,i.A)(Z,!0):T(Z)}},4819:(o,s,r)=>{"use strict";r.d(s,{A:()=>Ln});var i=r(1238),a=r(8758),c=r(2486);const w=function y(Zt,gn,In){(void 0!==In&&!(0,c.A)(Zt[gn],In)||void 0===In&&!(gn in Zt))&&(0,a.A)(Zt,gn,In)},T=function C(Zt){return function(gn,In,Bn){for(var Hn=-1,xr=Object(gn),ei=Bn(gn),Xr=ei.length;Xr--;){var vt=ei[Zt?Xr:++Hn];if(!1===In(xr[vt],vt,xr))break}return gn}}();var k=r(4224),R=r(7383),G=r(1369),Z=r(223),te=r(1656),we=r(9007),_e=r(2808),pe=r(2312);var Ne=r(5303),Se=r(5656),xe=r(7999),ae=r(5688),le=r(5749),ft=Function.prototype.toString,_t=Object.prototype.hasOwnProperty,ot=ft.call(Object);var wn=r(766);const En=function $n(Zt,gn){if(("constructor"!==gn||"function"!=typeof Zt[gn])&&"__proto__"!=gn)return Zt[gn]};var Ze=r(101),wt=r(3959);const Ke=function Ut(Zt,gn,In,Bn,Hn,xr,ei){var Xr=En(Zt,In),vt=En(gn,In),$t=ei.get(vt);if($t)w(Zt,In,$t);else{var Ee=xr?xr(Xr,vt,In+"",Zt,gn,ei):void 0,at=void 0===Ee;if(at){var Fe=(0,we.A)(vt),Rt=!Fe&&(0,Ne.A)(vt),dt=!Fe&&!Rt&&(0,wn.A)(vt);Ee=vt,Fe||Rt||dt?(0,we.A)(Xr)?Ee=Xr:function Te(Zt){return(0,pe.A)(Zt)&&(0,_e.A)(Zt)}(Xr)?Ee=(0,G.A)(Xr):Rt?(at=!1,Ee=(0,k.A)(vt,!0)):dt?(at=!1,Ee=(0,R.A)(vt,!0)):Ee=[]:function Yt(Zt){if(!(0,pe.A)(Zt)||"[object Object]"!=(0,ae.A)(Zt))return!1;var gn=(0,le.A)(Zt);if(null===gn)return!0;var In=_t.call(gn,"constructor")&&gn.constructor;return"function"==typeof In&&In instanceof In&&ft.call(In)==ot}(vt)||(0,te.A)(vt)?(Ee=Xr,(0,te.A)(Xr)?Ee=function ze(Zt){return(0,Ze.A)(Zt,(0,wt.A)(Zt))}(Xr):(!(0,xe.A)(Xr)||(0,Se.A)(Xr))&&(Ee=(0,Z.A)(vt))):at=!1}at&&(ei.set(vt,Ee),Hn(Ee,vt,Bn,xr,ei),ei.delete(vt)),w(Zt,In,Ee)}},Xe=function lt(Zt,gn,In,Bn,Hn){Zt!==gn&&T(gn,function(xr,ei){if(Hn||(Hn=new i.A),(0,xe.A)(xr))Ke(Zt,gn,ei,In,lt,Bn,Hn);else{var Xr=Bn?Bn(En(Zt,ei),xr,ei+"",Zt,gn,Hn):void 0;void 0===Xr&&(Xr=xr),w(Zt,ei,Xr)}},wt.A)},pt=function Ge(Zt){return Zt};var Nt=Math.max;const Pt=function Wn(Zt){return function(){return Zt}};var en=r(4133),Mt=Date.now;const Me=function Gt(Zt){var gn=0,In=0;return function(){var Bn=Mt(),Hn=16-(Bn-In);if(In=Bn,Hn>0){if(++gn>=800)return arguments[0]}else gn=0;return Zt.apply(void 0,arguments)}}(en.A?function(Zt,gn){return(0,en.A)(Zt,"toString",{configurable:!0,enumerable:!1,value:Pt(gn),writable:!0})}:pt),W=function nt(Zt,gn){return Me(function tn(Zt,gn,In){return gn=Nt(void 0===gn?Zt.length-1:gn,0),function(){for(var Bn=arguments,Hn=-1,xr=Nt(Bn.length-gn,0),ei=Array(xr);++Hn1?In[Hn-1]:void 0,ei=Hn>2?In[2]:void 0;for(xr=Zt.length>3&&"function"==typeof xr?(Hn--,xr):void 0,ei&&function V(Zt,gn,In){if(!(0,xe.A)(In))return!1;var Bn=typeof gn;return!!("number"==Bn?(0,_e.A)(In)&&(0,L.A)(gn,In.length):"string"==Bn&&gn in In)&&(0,c.A)(In[gn],Zt)}(In[0],In[1],ei)&&(xr=Hn<3?void 0:xr,Hn=1),gn=Object(gn);++Bn{"use strict";__webpack_require__.d(__webpack_exports__,{Ts:()=>init,ql:()=>launch});var _home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3014),_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_awaitAsyncGenerator_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5137),_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_wrapAsyncGenerator_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(9129),BUILD={allRenderFn:!1,cmpDidLoad:!0,cmpDidUnload:!1,cmpDidUpdate:!0,cmpDidRender:!0,cmpWillLoad:!0,cmpWillUpdate:!0,cmpWillRender:!0,connectedCallback:!0,disconnectedCallback:!0,element:!0,event:!0,hasRenderFn:!0,lifecycle:!0,hostListener:!0,hostListenerTargetWindow:!0,hostListenerTargetDocument:!0,hostListenerTargetBody:!0,hostListenerTargetParent:!1,hostListenerTarget:!0,member:!0,method:!0,mode:!0,observeAttribute:!0,prop:!0,propMutable:!0,reflect:!0,scoped:!0,shadowDom:!0,slot:!0,cssAnnotations:!0,state:!0,style:!0,formAssociated:!1,svg:!0,updatable:!0,vdomAttribute:!0,vdomXlink:!0,vdomClass:!0,vdomFunctional:!0,vdomKey:!0,vdomListener:!0,vdomRef:!0,vdomPropOrAttr:!0,vdomRender:!0,vdomStyle:!0,vdomText:!0,watchCallback:!0,taskQueue:!0,hotModuleReplacement:!1,isDebug:!1,isDev:!1,isTesting:!1,hydrateServerSide:!1,hydrateClientSide:!1,lifecycleDOMEvents:!1,lazyLoad:!1,profile:!1,slotRelocation:!0,appendChildSlotFix:!1,cloneNodeFix:!1,hydratedAttribute:!1,hydratedClass:!0,scriptDataOpts:!1,scopedSlotTextContentFix:!1,shadowDomShim:!1,slotChildNodesFix:!1,invisiblePrehydration:!0,propBoolean:!0,propNumber:!0,propString:!0,constructableCSS:!0,cmpShouldUpdate:!0,devTools:!1,shadowDelegatesFocus:!0,initializeNextTick:!1,asyncLoading:!1,asyncQueue:!1,transformTagName:!1,attachStyles:!0,experimentalSlotFixes:!1},__defProp$1=Object.defineProperty,__export$1=(o,s)=>{for(var 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=[],A=T=>{for(let k=0;kT[k]).join(" "))}}if("function"==typeof o)return o(null===s?{}:s,C,vdomFnUtils);const S=newVNode(o,null);return S.$attrs$=s,C.length>0&&(S.$children$=C),S.$key$=a,S.$name$=c,S},newVNode=(o,s)=>({$flags$:0,$tag$:o,$text$:s,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null}),Host={},isHost=o=>o&&o.$tag$===Host,vdomFnUtils={forEach:(o,s)=>o.map(convertToPublic).forEach(s),map:(o,s)=>o.map(convertToPublic).map(s).map(convertToPrivate)},convertToPublic=o=>({vattrs:o.$attrs$,vchildren:o.$children$,vkey:o.$key$,vname:o.$name$,vtag:o.$tag$,vtext:o.$text$}),convertToPrivate=o=>{if("function"==typeof o.vtag){const 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,A=parseClassList(r),S=parseClassList(i);C.remove(...A.filter(T=>T&&!S.includes(T))),C.add(...S.filter(T=>T&&!A.includes(T)))}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 A=!1;w!==(w=w.replace(/^xlink\:?/,""))&&(s=w,A=!0),null==i||!1===i?!1===i&&""!==o.getAttribute(s)||(A?o.removeAttributeNS(XLINK_NS,s):o.removeAttribute(s)):(!y||4&c||a)&&!C&&(i=!0===i?"":i,A?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,A=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(A=0;A{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,A=0,S=0,T=s.length-1,k=s[0],R=s[T],G=i.length-1,Z=i[0],te=i[G];for(;w<=T&&C<=G;)if(null==k)k=s[++w];else if(null==R)R=s[--T];else if(null==Z)Z=i[++C];else if(null==te)te=i[--G];else if(isSameVnode(k,Z,a))patch(k,Z,a),k=s[++w],Z=i[++C];else if(isSameVnode(R,te,a))patch(R,te,a),R=s[--T],te=i[--G];else if(isSameVnode(k,te,a))"slot"!==k.$tag$&&"slot"!==te.$tag$||putBackInOriginalLocation(k.$elm$.parentNode,!1),patch(k,te,a),insertBefore(o,k.$elm$,R.$elm$.nextSibling),k=s[++w],te=i[--G];else if(isSameVnode(R,Z,a))"slot"!==k.$tag$&&"slot"!==te.$tag$||putBackInOriginalLocation(R.$elm$.parentNode,!1),patch(R,Z,a),insertBefore(o,R.$elm$,k.$elm$),R=s[--T],Z=i[++C];else{for(A=-1,S=w;S<=T;++S)if(s[S]&&null!==s[S].$key$&&s[S].$key$===Z.$key$){A=S;break}A>=0?(y=s[A],y.$tag$!==Z.$tag$?c=createElm(s&&s[C],r,A,o):(patch(y,Z,a),s[A]=void 0,c=y.$elm$),Z=i[++C]):(c=createElm(s&&s[C],r,C,o),Z=i[++C]),c&&insertBefore(parentReferenceNode(k.$elm$),c,referenceNode(k.$elm$))}w>T?addVnodes(o,null==i[G+1]?null:i[G+1].$elm$,r,i,C,G):C>G&&removeVnodes(s,w,T)},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$,A=o.$cmpMeta$,S=o.$vnode$||newVNode(null,null),T=isHost(s)?s:h(null,null,s);if(hostTagName=C.tagName,A.$attrsToReflect$&&(T.$attrs$=T.$attrs$||{},A.$attrsToReflect$.map(([k,R])=>T.$attrs$[R]=C[k])),r&&T.$attrs$)for(const k of Object.keys(T.$attrs$))C.hasAttribute(k)&&!["key","ref","style","class"].includes(k)&&(T.$attrs$[k]=C[k]);if(T.$tag$=null,T.$flags$|=4,o.$vnode$=T,T.$elm$=S.$elm$=C.shadowRoot||C,scopeId=C["s-sc"],useNativeShadowDom=!!(1&A.$flags$),contentRef=C["s-cr"],checkSlotFallbackVisibility=!1,patch(S,T,r),plt.$flags$|=1,checkSlotRelocate){markSlotContentForRelocation(T.$elm$);for(const k of relocateNodes){const R=k.$nodeToRelocate$;if(!R["s-ol"]){const G=doc.createTextNode("");G["s-nr"]=R,insertBefore(R.parentNode,R["s-ol"]=G,R)}}for(const k of relocateNodes){const R=k.$nodeToRelocate$,G=k.$slotRefNode$;if(G){const Z=G.parentNode;let te=G.nextSibling;{let we=null==(i=R["s-ol"])?void 0:i.previousSibling;for(;we;){let _e=null!=(a=we["s-nr"])?a:null;if(_e&&_e["s-sn"]===R["s-sn"]&&Z===_e.parentNode){for(_e=_e.nextSibling;_e===R||_e?.["s-sr"];)_e=_e?.nextSibling;if(!_e||!_e["s-nr"]){te=_e;break}}we=we.previousSibling}}(!te&&Z!==R.parentNode||R.nextSibling!==te)&&R!==te&&(!R["s-hn"]&&R["s-ol"]&&(R["s-hn"]=R["s-ol"].parentNode.nodeName),insertBefore(Z,R,te),1===R.nodeType&&(R.hidden=null!=(c=R["s-ih"])&&c)),R&&"function"==typeof G["s-rf"]&&G["s-rf"](R)}else 1===R.nodeType&&(r&&(R["s-ih"]=null!=(y=R.hidden)&&y),R.hidden=!0)}}if(checkSlotFallbackVisibility&&updateFallbackSlotVisibility(T.$elm$),plt.$flags$&=-2,relocateNodes.length=0,BUILD.experimentalScopedSlotChanges&&2&A.$flags$)for(const k of T.$elm$.childNodes)k["s-hn"]===hostTagName||k["s-sh"]||(r&&null==k["s-ih"]&&(k["s-ih"]=null!=(w=k.hidden)&&w),k.hidden=!0);contentRef=void 0},attachToAncestor=(o,s)=>{},scheduleUpdate=(o,s)=>(o.$flags$|=16,attachToAncestor(o,o.$ancestorComponent$),writeTask(()=>dispatchHooks(o,s))),dispatchHooks=(o,s)=>{const 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_angular_builders_custom_webpack_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 A=Number.isNaN(y)&&Number.isNaN(r);if(r!==y&&!A){if(a.$instanceValues$.set(s,r),i.$watchers$&&128&w){const S=i.$watchers$[s];S&&S.map(T=>{try{C[T](r,y,s)}catch(k){consoleError(k,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(A){setValue(this,w,A,s)},configurable:!0,enumerable:!0})});{const w=new Map;c.attributeChangedCallback=function(C,A,S){plt.jmp(()=>{var T;const k=w.get(C);if(this.hasOwnProperty(k))S=this[k],delete this[k];else{if(c.hasOwnProperty(k)&&"number"==typeof this[k]&&this[k]==S)return;if(null==k){const R=getHostRef(this),G=R?.$flags$;if(G&&!(8&G)&&128&G&&S!==A){const Z=this,te=null==(T=s.$watchers$)?void 0:T[C];te?.forEach(we=>{null!=Z[we]&&Z[we].call(Z,S,A,C)})}return}}this[k]=(null!==S||"boolean"!=typeof this[k])&&S})},o.observedAttributes=Array.from(new Set([...Object.keys(null!=(a=s.$watchers$)?a:{}),...y.filter(([C,A])=>15&A[0]).map(([C,A])=>{var S;const T=A[1]||C;return w.set(T,C),512&A[0]&&(null==(S=s.$attrsToReflect$)||S.push([C,T])),T})]))}}return o},initializeComponent=function(){var o=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(s,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_angular_builders_custom_webpack_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),A=hostListenerOpts(a);plt.ael(w,c,C,A),(s.$rmListeners$=s.$rmListeners$||[]).push(()=>plt.rel(w,c,C,A))})},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(T=>T())},y=S=>(a.get.forEach(T=>T(S)),i.get(S)),w=(S,T)=>{const k=i.get(S);s(T,k,S)&&(i.set(S,T),a.set.forEach(R=>R(S,T,k)))},C=typeof Proxy>"u"?{}:new Proxy(r,{get:(S,T)=>y(T),ownKeys:S=>Array.from(i.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(S,T)=>i.has(T),set:(S,T,k)=>(w(T,k),!0)}),A=(S,T)=>(a[S].push(T),()=>{removeFromArray(a[S],T)});return{state:C,get:y,set:w,on:A,onChange:(S,T)=>{const k=A("set",(G,Z)=>{G===S&&T(Z)}),R=A("reset",()=>T(unwrap(o)[S]));return()=>{k(),R()}},use:(...S)=>{const T=S.reduce((k,R)=>(R.set&&k.push(A("set",R.set)),R.get&&k.push(A("get",R.get)),R.reset&&k.push(A("reset",R.reset)),R.dispose&&k.push(A("dispose",R.dispose)),k),[]);return()=>T.forEach(k=>k())},dispose:()=>{a.dispose.forEach(S=>S()),c()},reset:c,forceUpdate:S=>{const T=i.get(S);a.set.forEach(k=>k(S,T,T))}}},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}}.sr-only{clip:rect(0,0,0,0);border-width:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.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}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.h-0{height:0}.h-12{height:48px}.h-4{height:16px}.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-4{width:16px}.w-5{width:20px}.w-52{width:208px}.w-6{width:24px}.w-7{width:28px}.w-8{width:32px}.w-\\[48px\\]{width:48px}.w-full{width:100%}.min-w-40{min-width:160px}.max-w-40{max-width:160px}.flex-shrink-0{flex-shrink:0}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.place-items-center{place-items:center}.items-center{align-items:center}.justify-center{justify-content:center}.gap-x-2{column-gap:8px}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-nowrap{text-wrap:nowrap}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.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}.px-3{padding-left:12px;padding-right:12px}.py-2\\.5{padding-bottom:10px;padding-top:10px}.pl-\\[11px\\]{padding-left:11px}.text-center{text-align:center}.text-sm{font-size:14px;line-height:20px}.text-xs{font-size:12px;line-height:16px}.font-bold{font-weight:700}.font-medium{font-weight:500}.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}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:opacity-50:disabled{opacity:.5}.dark\\:text-gray-300:is(.dark *){--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity))}.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))}.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))}.text-green-800{--tw-text-opacity:1;color:rgb(22 101 52/var(--tw-text-opacity))}.dark\\:text-green-200:is(.dark *){--tw-text-opacity:1;color:rgb(187 247 208/var(--tw-text-opacity))}.mb-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}.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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){o.nlExportKeys.emit(),o.isCopy=!0,setTimeout(()=>{o.isCopy=!1},1500)})()}render(){if(!this.isContinued&&!this.isKeyBackup)return h("div",{class:"p-4 overflow-y-auto"},h("h1",{class:"nl-title font-bold text-center text-2xl"},this.titleInfo),h("p",{class:"nl-description font-light text-sm pt-2 pb-2 max-w-96 mx-auto"},"Nostr profiles are controlled by cryptographic keys.",h("br",null),h("br",null),"Your keys are currently only stored in this browser tab, and may be lost if you close it.",h("br",null),h("br",null),"You should backup your keys.",h("br",null),h("br",null),"We recommend to import your keys into a key store service, to protect them and to use with other apps."),h("div",{class:"ml-auto mr-auto mb-2 w-72"},h("button-base",{onClick:()=>this.handleContinue(),titleBtn:"Import to key store"})),h("div",{class:"ml-auto mr-auto w-72"},h("button-base",{onClick:()=>this.handleContinueKeyBackup(),titleBtn:"Export keys"})));if(this.isKeyBackup)return h("div",{class:"p-4 overflow-y-auto"},h("h1",{class:"nl-title font-bold text-center text-2xl"},"Key export"),h("p",{class:"nl-description font-light text-sm pt-2 pb-2 max-w-96 mx-auto"},"Copy your keys and store them in a safe place, like a password manager.",h("br",null),h("br",null),"You can sign into other Nostr apps by pasting your keys into them.",h("br",null),h("br",null),"Your keys must be kept secret, never share them with anyone."),h("div",{class:"max-w-72 mx-auto"},h("div",{class:"ml-auto mr-auto mb-2 w-72"},h("button-base",{onClick:()=>this.copyToClipboard(),titleBtn:this.isCopy?"Copied!":"Copy to clipboard"}))));const o=this.services.filter(s=>s.canImport).map(s=>({name:s.domain,value:s.domain}));return h(Fragment,null,h("div",{class:"p-4 overflow-y-auto"},h("h1",{class:"nl-title font-bold text-center text-2xl"},this.titleImport),h("p",{class:"nl-description font-light text-center text-sm pt-2 max-w-96 mx-auto"},"Your Nostr keys will be imported into the service you choose. You will manage your keys on their website.")),h("div",{class:"max-w-72 mx-auto mb-5"},h("div",{class:"mb-0.5"},h("nl-select",{onSelectDomain:s=>this.handleDomainSelect(s),selected:0,options:o})),h("p",{class:"nl-title font-light text-sm mb-2"},"Default provider is a fine choice to start with."),h("div",{class:"ps-4 pe-4 overflow-y-auto"},h("p",{class:"nl-error font-light text-center text-sm max-w-96 mx-auto"},state.error)),h("button-base",{disabled:state.isLoading,onClick:s=>this.handleCreateAccount(s),titleBtn:"Start importing"},state.isLoading?h("span",{slot:"icon-start",class:"animate-spin-loading inline-block w-4 h-4 border-[3px] border-current border-t-transparent text-slate-900 dark:text-gray-300 rounded-full",role:"status","aria-label":"loading"}):h("svg",{slot:"icon-start",style:{display:"none"},xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M18 7.5v3m0 0v3m0-3h3m-3 0h-3m-2.25-4.125a3.375 3.375 0 1 1-6.75 0 3.375 3.375 0 0 1 6.75 0ZM3 19.235v-.11a6.375 6.375 0 0 1 12.75 0v.109A12.318 12.318 0 0 1 9.374 21c-2.331 0-4.512-.645-6.374-1.766Z"})))))}static get style(){return NlImportFlowStyle0}},[0,"nl-import-flow",{titleInfo:[1025,"title-info"],titleImport:[1,"title-import"],services:[16],isContinued:[32],isKeyBackup:[32],isCopy:[32]}]);function defineCustomElement$l(){typeof customElements>"u"||["nl-import-flow","button-base","nl-select"].forEach(o=>{switch(o){case"nl-import-flow":customElements.get(o)||customElements.define(o,NlImportFlow$1);break;case"button-base":customElements.get(o)||defineCustomElement$q();break;case"nl-select":customElements.get(o)||defineCustomElement$m()}})}defineCustomElement$l();const nlInfoCss=baseCss,NlInfoStyle0=nlInfoCss,NlInfo=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost()}render(){return h("div",{key:"7463f42c27643903a9d6fb0160fbabe833679fcb",class:"p-4 overflow-y-auto"},h("svg",{key:"86c5f04f87b21553f3512d289425996b46eb6c57",class:"w-12 h-12 mx-auto mb-2",width:"225",height:"224",viewBox:"0 0 225 224",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h("rect",{key:"6be61e0b2ff3d3f13e617e9b1df073fbe3b5678b",width:"224.047",height:"224",rx:"64",fill:"#6951FA"}),h("path",{key:"0c0aff7d5143022fe857de141cdae31397c3c2f4",d:"M162.441 135.941V88.0593C170.359 85.1674 176 77.5348 176 68.6696C176 57.2919 166.708 48 155.33 48C143.953 48 134.661 57.2444 134.661 68.6696C134.661 77.5822 140.302 85.1674 148.219 88.0593V135.941C147.698 136.13 147.176 136.367 146.655 136.604L87.3956 77.3452C88.6282 74.6904 89.2919 71.7511 89.2919 68.6696C89.2919 57.2444 80.0474 48 68.6696 48C57.2919 48 48 57.2444 48 68.6696C48 77.5822 53.6415 85.1674 61.5585 88.0593V135.941C53.6415 138.833 48 146.465 48 155.33C48 166.708 57.2444 176 68.6696 176C80.0948 176 89.3393 166.708 89.3393 155.33C89.3393 146.418 83.6978 138.833 75.7807 135.941V88.0593C76.3022 87.8696 76.8237 87.6326 77.3452 87.3956L136.604 146.655C135.372 149.31 134.708 152.249 134.708 155.33C134.708 166.708 143.953 176 155.378 176C166.803 176 176.047 166.708 176.047 155.33C176.047 146.418 170.406 138.833 162.489 135.941H162.441Z",fill:"white"})),h("h1",{key:"3a89ee5051e2d74945347dec6055749cec126f27",class:"nl-title font-bold text-center text-4xl"},"Nostr ",h("span",{key:"96a49c22dffa4a30639f387a949d7695604c6a1f",class:"font-light"},"Login")),h("p",{key:"a6dded720da9db673173a1ff02bc5544e6a66d38",class:"text-green-800 dark:text-green-200 font-light text-center text-lg pt-2 max-w-96 mx-auto"},"Version: 1.6.13"),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,A=0,S=0,T=null,k=null;for(let R=0;R=5&&(C+=A-5+3),T=Z,A=1),Z=y.get(G,R),Z===k?S++:(S>=5&&(C+=S-5+3),k=Z,S=1)}A>=5&&(C+=A-5+3),S>=5&&(C+=S-5+3)}return C},o.getPenaltyN2=function(y){const w=y.size;let C=0;for(let A=0;A=10&&(1488===A||93===A)&&C++,S=S<<1&2047|y.get(k,T),k>=10&&(1488===S||93===S)&&C++}return 40*C},o.getPenaltyN4=function(y){let w=0;const C=y.data.length;for(let A=0;A=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(A,S){return a.getCharCountIndicator(A,S)+4}function C(A,S){let T=0;return A.forEach(function(k){const R=w(k.mode,S);T+=R+k.getBitsLength()}),T}o.from=function(A,S){return c.isValid(A)?parseInt(A,10):S},o.getCapacity=function(A,S,T){if(!c.isValid(A))throw new Error("Invalid QR Code version");void 0===T&&(T=a.BYTE);const k=8*(s.getSymbolTotalCodewords(A)-r.getTotalCodewordsCount(A,S));if(T===a.MIXED)return k;const R=k-w(T,A);switch(T){case a.NUMERIC:return Math.floor(R/10*3);case a.ALPHANUMERIC:return Math.floor(R/11*2);case a.KANJI:return Math.floor(R/13);default:return Math.floor(R/8)}},o.getBestVersionForData=function(A,S){let T;const k=i.from(S,i.M);if(Array.isArray(A)){if(A.length>1)return function(R,G){for(let Z=1;Z<=40;Z++)if(C(R,Z)<=o.getCapacity(Z,G,a.MIXED))return Z}(A,k);if(0===A.length)return 1;T=A[0]}else T=A;return function(R,G,Z){for(let te=1;te<=40;te++)if(G<=o.getCapacity(te,Z,R))return te}(T.mode,T.getLength(),k)},o.getEncodedBits=function(A){if(!c.isValid(A)||A<7)throw new Error("Invalid QR Code version");let S=A<<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,A,S,T,k,G=s.PriorityQueue.make();for(G.push(i,0);!G.empty();)for(A in C=(w=G.pop()).value,S=w.cost,T=r[C]||{})T.hasOwnProperty(A)&&(k=S+T[A],(void 0===y[A]||y[A]>k)&&(y[A]=k,G.push(A,k),c[A]=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 A(G){return unescape(encodeURIComponent(G)).length}function S(G,Z,te){const we=[];let _e;for(;null!==(_e=G.exec(te));)we.push({data:_e[0],index:_e.index,mode:Z,length:_e[0].length});return we}function T(G){const Z=S(y.NUMERIC,s.NUMERIC,G),te=S(y.ALPHANUMERIC,s.ALPHANUMERIC,G);let we,_e;return w.isKanjiModeEnabled()?(we=S(y.BYTE,s.BYTE,G),_e=S(y.KANJI,s.KANJI,G)):(we=S(y.BYTE_KANJI,s.BYTE,G),_e=[]),Z.concat(te,we,_e).sort(function(pe,Te){return pe.index-Te.index}).map(function(pe){return{data:pe.data,mode:pe.mode,length:pe.length}})}function k(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 R(G,Z){let te;const we=s.getBestModeForData(G);if(te=s.from(Z,we),te!==s.BYTE&&te.bit=0?Ce[Ce.length-1]:null;return Se&&Se.mode===Ne.mode?(Ce[Ce.length-1].data+=Ne.data,Ce):(Ce.push(Ne),Ce)},[]))},o.rawSplit=function(G){return o.fromArray(T(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 A=!1;y>>c&1)),o.set(a,w-C,A),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),A=a.margin*w,S=[a.color.light,a.color.dark];for(let T=0;T=A&&k>=A&&T0&&C>0&&o[w-1]||(i+=c?svgCmd("M",C+r,.5+A+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,A){try{const S=QRCode.create(r,i);C(o(S,s,i))}catch(S){A(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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(o.connectionString&&o.canvasElement)try{yield browser$1.toCanvas(o.canvasElement,o.connectionString)}catch(s){console.error("Error generating QR Code:",s)}})()}copyToClipboard(){var o=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){try{yield navigator.clipboard.writeText(o.connectionString),o.isCopy=!0,setTimeout(()=>{o.isCopy=!1},1500)}catch(s){console.error("Failed to copy connectionString: ",s)}})()}render(){return h(Fragment,{key:"4dfdad6e2e948203e0dfe7aa8608d95cd3495c41"},h("div",{key:"852159a0231473f13c6452e307b90f02e7efd445",class:"p-4 overflow-y-auto"},h("h1",{key:"07859d4b83c5fb6ac12732f1708db3ba3b700380",class:"nl-title font-bold text-center text-2xl"},this.titleLogin),h("p",{key:"200d00f3785f4a684c798225f0061d9ef4ed2fa1",class:"nl-description font-light text-center text-sm pt-2 max-w-96 mx-auto"},this.description)),h("canvas",{key:"e27335a378a7853fd73cdf0b701a9922f9e87a98",class:"mx-auto mb-2",ref:o=>this.canvasElement=o}),h("div",{key:"5e93edcf3b13f1d02b6feca2a192ef275891032a",class:"px-4"},h("div",{key:"96643d192fc3e3c652027fc7b9da2c8186205b1f",class:"max-w-72 mx-auto"},h("div",{key:"24faf8ea390198fc185f94d77d0ac3faa3c03e9f",class:"relative mb-2"},h("input",{key:"45f531795476a136897925509955fa9fdaf66503",type:"text",class:"nl-input peer py-3 px-4 pe-11 ps-11 block w-full border-transparent rounded-lg text-sm disabled:opacity-50 disabled:pointer-events-none dark:border-transparent",placeholder:"npub or name@domain",value:this.connectionString,disabled:!0}),h("div",{key:"3f3bb777777890fb68152c94d16cd83abde57cac",class:"absolute inset-y-0 start-0 flex items-center pointer-events-none ps-4 peer-disabled:opacity-50 peer-disabled:pointer-events-none"},h("svg",{key:"c99e6d36b5f3e85a03b2922a3984803601ce4747",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"flex-shrink-0 w-4 h-4 text-gray-500"},h("path",{key:"1d72c6d727215e897c88b923f1eb65a83bc9eda9","stroke-linecap":"round","stroke-linejoin":"round",d:"M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z"}),h("path",{key:"5c40e5fd22377e528bdc3fe77db8975dfe015286","stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))),this.isCopy?h("div",{class:"absolute inset-y-0 end-0 flex items-center p-2 rounded-lg"},h("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"#00cc00",class:"flex-shrink-0 w-4 h-4 text-gray-500"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))):h("div",{class:"absolute inset-y-0 end-0 flex items-center cursor-pointer p-2 rounded-lg",onClick:()=>this.copyToClipboard()},h("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"flex-shrink-0 w-4 h-4 text-gray-500"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M16.5 8.25V6a2.25 2.25 0 0 0-2.25-2.25H6A2.25 2.25 0 0 0 3.75 6v8.25A2.25 2.25 0 0 0 6 16.5h2.25m8.25-8.25H18a2.25 2.25 0 0 1 2.25 2.25V18A2.25 2.25 0 0 1 18 20.25h-7.5A2.25 2.25 0 0 1 8.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 0 0-2.25 2.25v6"})))),h("div",{key:"26403008de1debe9660fbacda25b6c5eb1ce81c8",class:"mt-10 justify-center items-center flex gap-2"},h("span",{key:"2cc09432eb515db009f4ca5909b8ba943c90bbd6",slot:"icon-start",class:"animate-spin-loading inline-block w-[20px] h-[20px] border-[2px] border-current border-t-transparent text-slate-900 dark:text-gray-300 rounded-full",role:"status","aria-label":"loading"}),h("span",{key:"b2d8a70b65950ec00d9544c4ba50a51bffc48335",class:"nl-footer"},"Waiting for connection")))))}static get style(){return NlSigninConnectionStringStyle0}},[0,"nl-signin-connection-string",{titleLogin:[1,"title-login"],description:[1],connectionString:[1,"connection-string"],isCopy:[32]}]);function defineCustomElement$b(){typeof customElements>"u"||["nl-signin-connection-string"].forEach(o=>{"nl-signin-connection-string"===o&&(customElements.get(o)||customElements.define(o,NlSigninConnectionString))})}defineCustomElement$b();const nlSigninOtpCss=baseCss,NlSigninOtpStyle0=nlSigninOtpCss,NlSigninOtp=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.nlLoginOTPUser=createEvent(this,"nlLoginOTPUser",7),this.nlLoginOTPCode=createEvent(this,"nlLoginOTPCode",7),this.nlCheckLogin=createEvent(this,"nlCheckLogin",7),this.titleLogin="Log in with DM",this.description="Please enter your user name or npub, and we will send you a direct message with a one-time code.",this.titleLoginOTP="Enter the code",this.descriptionOTP="Please enter the one-time code we sent to you as a direct message on Nostr.",this.isGood=!1}handleInputChange(o){state.isOTP?state.nlSigninOTP.code=o.target.value:(state.nlSigninOTP.loginName=o.target.value,this.nlCheckLogin.emit(state.nlSigninOTP.loginName))}handleLogin(o){o.preventDefault(),state.isOTP?this.nlLoginOTPCode.emit(state.nlSigninOTP.code):this.nlLoginOTPUser.emit(state.nlSigninOTP.loginName)}render(){return h(Fragment,{key:"a93b9af1f6a2a881d75e9aa1e547a63678ad4dc5"},h("div",{key:"ae6c700a09e753e0148b5ddfd27f20c2a0850d3d",class:"p-4 overflow-y-auto"},h("h1",{key:"e0998107834bf9e90b6372580ccb31bb0d726904",class:"nl-title font-bold text-center text-2xl"},state.isOTP?this.titleLoginOTP:this.titleLogin),h("p",{key:"29e894bbfcdfb326ae807055c57fbb32b1b4bfa9",class:"nl-description font-light text-center text-sm pt-2 max-w-96 mx-auto"},state.isOTP?this.descriptionOTP:this.description)),h("div",{key:"911cee576416be96c64d38fc362cdb656293e198",class:"max-w-72 mx-auto"},h("div",{key:"f72d607dd7beb554c248c7c4128de6d33a8f246f",class:"relative mb-2"},h("input",{key:"24e6a78d257e84d4f5c71b4aee31c453a504cd93",onInput:o=>this.handleInputChange(o),type:"text",class:"nl-input peer py-3 px-4 ps-11 block w-full border-transparent rounded-lg text-sm disabled:opacity-50 disabled:pointer-events-none dark:border-transparent",placeholder:state.isOTP?"code from direct message":"npub or name@domain",value:state.isOTP?state.nlSigninOTP.code:state.nlSigninOTP.loginName}),h("div",{key:"438171f72c2c64d1754a2d5fda95a7b5d3816894",class:"absolute inset-y-0 start-0 flex items-center pointer-events-none ps-4 peer-disabled:opacity-50 peer-disabled:pointer-events-none"},h("svg",{key:"b31663307181bb1d58884a3ecce192728b164b70",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:this.isGood?"#00cc00":"currentColor",class:"flex-shrink-0 w-4 h-4 text-gray-500"},h("path",{key:"8b80421658eea7b0b49708c994a9d94b965895f1","stroke-linecap":"round","stroke-linejoin":"round",d:"M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z"}),h("path",{key:"6d184bdf20d124a312e1817e27111de1fd0b8eb1","stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})))),h("div",{key:"ab8948cbd67e068fc2f113fcc5e61137d799e636",class:"ps-4 pe-4 overflow-y-auto"},h("p",{key:"719399b9f40ae23ba11ae22e4223314c815c821f",class:"nl-error font-light text-center text-sm max-w-96 mx-auto"},state.error)),h("button-base",{key:"b2ce8bbaceeddc82ea079dba280dc04600d7f725",titleBtn:"Log in",disabled:state.isLoading,onClick:o=>this.handleLogin(o)},state.isLoading&&h("span",{key:"7764fb6ecf8452c06047dc7832e274ebccdd6379",slot:"icon-start",class:"animate-spin-loading inline-block w-4 h-4 border-[3px] border-current border-t-transparent text-slate-900 dark:text-gray-300 rounded-full",role:"status","aria-label":"loading"}))))}static get style(){return NlSigninOtpStyle0}},[0,"nl-signin-otp",{titleLogin:[1,"title-login"],description:[1],titleLoginOTP:[1,"title-login-o-t-p"],descriptionOTP:[1,"description-o-t-p"],isGood:[32]}]);function defineCustomElement$a(){typeof customElements>"u"||["nl-signin-otp","button-base"].forEach(o=>{switch(o){case"nl-signin-otp":customElements.get(o)||customElements.define(o,NlSigninOtp);break;case"button-base":customElements.get(o)||defineCustomElement$q()}})}defineCustomElement$a();const nlSigninReadOnlyCss=baseCss,NlSigninReadOnlyStyle0=nlSigninReadOnlyCss,NlSigninReadOnly=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.nlLoginReadOnly=createEvent(this,"nlLoginReadOnly",7),this.nlCheckLogin=createEvent(this,"nlCheckLogin",7),this.titleLogin="Log in to read only",this.description="Please enter the user name or npub of any Nostr user.",this.isGood=!1}handleInputChange(o){state.nlSigninReadOnly.loginName=o.target.value,this.nlCheckLogin.emit(o.target.value)}handleLogin(o){o.preventDefault(),this.nlLoginReadOnly.emit(state.nlSigninReadOnly.loginName)}render(){return h(Fragment,{key:"5ff970ee20c505cab00b3c9263dd9a6ebd6b62a8"},h("div",{key:"036a6b49de93c20ed4af3c47c7ecc10c81818f86",class:"p-4 overflow-y-auto"},h("h1",{key:"97951254c835d38f95832882225fdc2b50bf578a",class:"nl-title font-bold text-center text-2xl"},this.titleLogin),h("p",{key:"e811a52ee24540b018f95ebffd1406330005a5f2",class:"nl-description font-light text-center text-sm pt-2 max-w-96 mx-auto"},this.description)),h("div",{key:"ae07b4fbe663e17733b6bd1efaa1c974276c8fd6",class:"max-w-72 mx-auto"},h("div",{key:"0a935603a2742e049bd5b2ca3c1b13f07d63ac2b",class:"relative mb-2"},h("input",{key:"1221b6501de2c739fc1470f82142b623afe4749b",onInput:o=>this.handleInputChange(o),type:"text",class:"nl-input peer py-3 px-4 ps-11 block w-full border-transparent rounded-lg text-sm disabled:opacity-50 disabled:pointer-events-none dark:border-transparent",placeholder:"npub or name@domain",value:state.nlSigninReadOnly.loginName}),h("div",{key:"820f77d6c814aea1794463b6216df338c6f0863d",class:"absolute inset-y-0 start-0 flex items-center pointer-events-none ps-4 peer-disabled:opacity-50 peer-disabled:pointer-events-none"},h("svg",{key:"9922ba1b7b536ddc8d560d76087fd735e1aa000c",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:this.isGood?"#00cc00":"currentColor",class:"flex-shrink-0 w-4 h-4 text-gray-500"},h("path",{key:"250dae1273e5346920bb6d5cad3644c678a9eae8","stroke-linecap":"round","stroke-linejoin":"round",d:"M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z"}),h("path",{key:"e94192cf4f271cf3477ebe2f186597a5c5a7b474","stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})))),h("div",{key:"8d548af75b9c39dfe0bf2eeae805e58d2cb324c1",class:"ps-4 pe-4 overflow-y-auto"},h("p",{key:"7cc88f5116a24e1b309e320c63c34f5cc8c5b656",class:"nl-error font-light text-center text-sm max-w-96 mx-auto"},state.error)),h("button-base",{key:"156e8a30228a8d34009c5cb020588c82f039eac5",titleBtn:"Log in",disabled:state.isLoading,onClick:o=>this.handleLogin(o)},state.isLoading&&h("span",{key:"14082758440bf5ec897629c92faf949f80895be8",slot:"icon-start",class:"animate-spin-loading inline-block w-4 h-4 border-[3px] border-current border-t-transparent text-slate-900 dark:text-gray-300 rounded-full",role:"status","aria-label":"loading"}))))}static get style(){return NlSigninReadOnlyStyle0}},[0,"nl-signin-read-only",{titleLogin:[1,"title-login"],description:[1],isGood:[32]}]);function defineCustomElement$9(){typeof customElements>"u"||["nl-signin-read-only","button-base"].forEach(o=>{switch(o){case"nl-signin-read-only":customElements.get(o)||customElements.define(o,NlSigninReadOnly);break;case"button-base":customElements.get(o)||defineCustomElement$q()}})}defineCustomElement$9();const nlSignupCss=baseCss,NlSignupStyle0=nlSignupCss,NlSignup=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.nlSignup=createEvent(this,"nlSignup",7),this.nlCheckSignup=createEvent(this,"nlCheckSignup",7),this.fetchHandler=createEvent(this,"fetchHandler",7),this.titleSignup="Create keys with key store",this.description="Choose some username and a key store service.",this.bunkers="nsec.app,highlighter.com",this.isAvailable=!1}formatServers(o){return o.split(",").map(s=>({name:"@"+s,value:s}))}handleInputChange(o){state.nlSignup.signupName=o.target.value,this.nlCheckSignup.emit(`${o.target.value}@${state.nlSignup.domain}`)}handleDomainSelect(o){state.nlSignup.domain=o.detail,this.nlCheckSignup.emit(`${state.nlSignup.signupName}@${o.detail}`)}handleCreateAccount(o){o.preventDefault(),this.nlSignup.emit(`${state.nlSignup.signupName}@${state.nlSignup.domain}`)}watchBunkersHandler(o){state.nlSignup.servers=this.formatServers(o)}componentWillLoad(){state.nlSignup.servers=this.formatServers(this.bunkers)}render(){return h(Fragment,{key:"f7b56fee1ec9c6dd3632bed5d46c661b090a32cd"},h("div",{key:"a7fd1b6249688b0974a0c56a0573f36eb1f1d7a4",class:"p-4 overflow-y-auto"},h("h1",{key:"01d5a745026ea0a293fd248880f00d335355f5bf",class:"nl-title font-bold text-center text-2xl"},this.titleSignup),h("p",{key:"1fe9362df4c08bee7966a3d7f06aca0c8c9f9e38",class:"nl-description font-light text-center text-sm pt-2 max-w-96 mx-auto"},this.description)),h("div",{key:"15eadc1d7189a9a99efad1c42a430fb316d3ae1a",class:"max-w-72 mx-auto"},h("div",{key:"011c9eb5d2d16cd6b784f0d879fd4f504c522905",class:"relative mb-2"},h("input",{key:"123e130805b229fe68c64765c434a36840cc137e",onInput:o=>this.handleInputChange(o),type:"text",class:"nl-input peer py-3 px-4 ps-11 block w-full border-transparent rounded-lg text-sm disabled:opacity-50 disabled:pointer-events-none dark:border-transparent",placeholder:"Name",value:state.nlSignup.signupName}),h("div",{key:"ee00cfd158acb362567e909a6f90d2651a4acd05",class:"absolute inset-y-0 start-0 flex items-center pointer-events-none ps-4 peer-disabled:opacity-50 peer-disabled:pointer-events-none"},h("svg",{key:"bc8a81c9a62cb215efb0cdff30980ee447371ec5",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:this.isAvailable?"#00cc00":"currentColor",class:"flex-shrink-0 w-4 h-4 text-gray-500"},h("path",{key:"fb78fc743ec535bb92d30e2b43927d499f6299ca","stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 6a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0ZM4.501 20.118a7.5 7.5 0 0 1 14.998 0A17.933 17.933 0 0 1 12 21.75c-2.676 0-5.216-.584-7.499-1.632Z"})))),h("div",{key:"f541cd6ed4d04a52afb093053c6fea85d0926ce1",class:"mb-2"},h("nl-select",{key:"dbce850d0c1d2e1cfdf4ce250978ce508abc173a",onSelectDomain:o=>this.handleDomainSelect(o),selected:0,options:state.nlSignup.servers})),h("div",{key:"a68612eabd83e3f7e61b533fd247f1768554b0c1",class:"ps-4 pe-4 overflow-y-auto"},h("p",{key:"25c8a89289071d5fca16b5e8918026c41afb3a77",class:"nl-error font-light text-center text-sm max-w-96 mx-auto"},state.error)),h("button-base",{key:"6cbf8ff97e9ebf1bd830e86337219ee386f978ea",disabled:state.isLoading,onClick:o=>this.handleCreateAccount(o),titleBtn:"Create profile"},state.isLoading?h("span",{slot:"icon-start",class:"animate-spin-loading inline-block w-4 h-4 border-[3px] border-current border-t-transparent text-slate-900 dark:text-gray-300 rounded-full",role:"status","aria-label":"loading"}):h("svg",{slot:"icon-start",style:{display:"none"},xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M18 7.5v3m0 0v3m0-3h3m-3 0h-3m-2.25-4.125a3.375 3.375 0 1 1-6.75 0 3.375 3.375 0 0 1 6.75 0ZM3 19.235v-.11a6.375 6.375 0 0 1 12.75 0v.109A12.318 12.318 0 0 1 9.374 21c-2.331 0-4.512-.645-6.374-1.766Z"})))))}static get watchers(){return{bunkers:["watchBunkersHandler"]}}static get style(){return NlSignupStyle0}},[0,"nl-signup",{titleSignup:[1,"title-signup"],description:[1],bunkers:[1],isAvailable:[32]},void 0,{bunkers:["watchBunkersHandler"]}]);function defineCustomElement$8(){typeof customElements>"u"||["nl-signup","button-base","nl-select"].forEach(o=>{switch(o){case"nl-signup":customElements.get(o)||customElements.define(o,NlSignup);break;case"button-base":customElements.get(o)||defineCustomElement$q();break;case"nl-select":customElements.get(o)||defineCustomElement$m()}})}defineCustomElement$8();const nlWelcomeCss=baseCss,NlWelcomeStyle0=nlWelcomeCss,NlWelcome=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.titleWelcome="Welcome to Nostr!",this.description="This website is part of the Nostr network. Log in with your Nostr profile or sign up to join."}handleChangeScreen(o){state.path=[...state.path,o]}render(){return h(Fragment,{key:"d3fb00029cb12cc8b00f26eaed6bd76e90402363"},h("div",{key:"e41a79654adb620ee433848c965fd872cdfcc58c",class:"p-4 overflow-y-auto"},h("h1",{key:"28e5c6ec6a4e4982a386daff93446db4efcd0737",class:"nl-title font-bold text-center text-4xl"},this.titleWelcome),h("p",{key:"d0afbc9587aafe4d93c547b34f5f55c268b42e48",class:"nl-description font-light text-center text-lg pt-2 max-w-96 mx-auto"},this.description)),h("div",{key:"d5570f014a56f326348b8077429c198b55b66683",class:"max-w-52 mx-auto pb-5"},h("div",{key:"3f4095a715c960544264eae1dc809c3bc68de2a8",class:"flex gap-3 flex-col mb-2"},h("button-base",{key:"a154d028e883fb9d9ea1823a5df0d2500bfdb726",titleBtn:"Log in",onClick:()=>this.handleChangeScreen(CURRENT_MODULE.WELCOME_LOGIN)},h("svg",{key:"2b256c1a23f88a3232e59fa3d56c344eae398690",style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{key:"bf629d871a100f59c2b465d50f58081290b4300a","stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 5.25a3 3 0 0 1 3 3m3 0a6 6 0 0 1-7.029 5.912c-.563-.097-1.159.026-1.563.43L10.5 17.25H8.25v2.25H6v2.25H2.25v-2.818c0-.597.237-1.17.659-1.591l6.499-6.499c.404-.404.527-1 .43-1.563A6 6 0 1 1 21.75 8.25Z"})))),h("button-base",{key:"6fdf8ff44483ec67cff96015ebc7d1832a676fa3",onClick:()=>this.handleChangeScreen(CURRENT_MODULE.WELCOME_SIGNUP),titleBtn:"Sign up"},h("svg",{key:"6714790ee5ccb91a6bda3424e515ea273f2163f9",style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{key:"e31e8d7667a33a8713387f8eb73252a4016b5de4","stroke-linecap":"round","stroke-linejoin":"round",d:"M18 7.5v3m0 0v3m0-3h3m-3 0h-3m-2.25-4.125a3.375 3.375 0 1 1-6.75 0 3.375 3.375 0 0 1 6.75 0ZM3 19.235v-.11a6.375 6.375 0 0 1 12.75 0v.109A12.318 12.318 0 0 1 9.374 21c-2.331 0-4.512-.645-6.374-1.766Z"})))))}static get style(){return NlWelcomeStyle0}},[0,"nl-welcome",{titleWelcome:[1,"title-welcome"],description:[1]}]);function defineCustomElement$7(){typeof customElements>"u"||["nl-welcome","button-base"].forEach(o=>{switch(o){case"nl-welcome":customElements.get(o)||customElements.define(o,NlWelcome);break;case"button-base":customElements.get(o)||defineCustomElement$q()}})}defineCustomElement$7();const nlWelcomeSigninCss=baseCss,NlWelcomeSigninStyle0=nlWelcomeSigninCss,NlWelcomeSignIn=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.nlLoginExtension=createEvent(this,"nlLoginExtension",7),this.titleWelcome="Log in",this.hasExtension=!1,this.authMethods=[],this.hasOTP=!1}handleChangeScreen(o){state.path=[...state.path,o],o===CURRENT_MODULE.EXTENSION&&this.nlLoginExtension.emit()}allowAuthMethod(o){return!this.authMethods.length||this.authMethods.includes(o)}renderSignInWithExtension(){return h("button-base",{onClick:()=>this.handleChangeScreen(CURRENT_MODULE.EXTENSION),titleBtn:"With extension"},h("svg",{style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 8.25V18a2.25 2.25 0 0 0 2.25 2.25h13.5A2.25 2.25 0 0 0 21 18V8.25m-18 0V6a2.25 2.25 0 0 1 2.25-2.25h13.5A2.25 2.25 0 0 1 21 6v2.25m-18 0h18M5.25 6h.008v.008H5.25V6ZM7.5 6h.008v.008H7.5V6Zm2.25 0h.008v.008H9.75V6Z"})))}render(){return h(Fragment,{key:"49598c3d31f3a4c2fc9d3579283163c43f19b6c7"},h("div",{key:"6b3c16634c1dc4be65c425edb65f5070990fee91",class:"p-4 overflow-y-auto"},h("h1",{key:"1f60d1f489afaa42c47e28563fadc0fa7b46a3df",class:"nl-title font-bold text-center text-3xl"},this.titleWelcome)),h("div",{key:"01507d2b6d0bba54527e12d664ddefd7244a9697",class:"max-w-52 mx-auto pb-5"},h("div",{key:"82deccfff688e1cbb67191c90a3ca6f22f285744",class:"flex gap-3 flex-col"},this.allowAuthMethod("connect")&&h("button-base",{key:"177bbcf244409242ab1c7c03cfb60300e848fed2",titleBtn:"Connect",onClick:()=>this.handleChangeScreen(CURRENT_MODULE.CONNECT)},h("svg",{key:"1fa2c695562eb093430389253dd7f94733d63976",style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{key:"16323646bde098c55c787cc90b66b4952c803542","stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 9V5.25A2.25 2.25 0 0 1 10.5 3h6a2.25 2.25 0 0 1 2.25 2.25v13.5A2.25 2.25 0 0 1 16.5 21h-6a2.25 2.25 0 0 1-2.25-2.25V15M12 9l3 3m0 0-3 3m3-3H2.25"}))),this.allowAuthMethod("readOnly")&&h("button-base",{key:"9b6d546d7f34ca197baa13ec0f280890ff0d8c7f",onClick:()=>this.handleChangeScreen(CURRENT_MODULE.LOGIN_READ_ONLY),titleBtn:"Read only"},h("svg",{key:"2ab8c1763d88e7c5678cafc3c15817d60a7bb6c0",style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{key:"faa5a61e8d35daf7fbb64fc5783c23b8881d8100","stroke-linecap":"round","stroke-linejoin":"round",d:"M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z"}),h("path",{key:"6083db853e798c9764b11ed4701dab048d4f30f2","stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))),this.hasOTP&&this.allowAuthMethod("otp")&&h("button-base",{key:"f45b1afed2d9b10a2d77eaa59b1aa168eabb191d",titleBtn:"One-time code",onClick:()=>this.handleChangeScreen(CURRENT_MODULE.LOGIN_OTP)},h("svg",{key:"84fbe5952fecd429f8074c65675d2111eb2d7fe8",style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{key:"83dc6eaa4e128065dfd7e97f0950cd00f0be6d54","stroke-linecap":"round","stroke-linejoin":"round",d:"M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))),this.hasExtension&&this.allowAuthMethod("extension")&&this.renderSignInWithExtension(),!this.allowAuthMethod("connect")&&!this.hasExtension&&h("p",{key:"f94e3302a807855f45855302482542e6f79f8ec8",class:"nl-description font-light text-center text-lg pt-2 max-w-96 mx-auto"},"No Nostr extension!"),!this.allowAuthMethod("connect")&&this.hasExtension&&!this.allowAuthMethod("extension")&&h("p",{key:"552762dfd2b9d24c7279c1f500ccd94500e35be1",class:"nl-description font-light text-center text-lg pt-2 max-w-96 mx-auto"},"Use advanced options."))))}static get style(){return NlWelcomeSigninStyle0}},[0,"nl-welcome-signin",{titleWelcome:[1,"title-welcome"],hasExtension:[4,"has-extension"],authMethods:[16],hasOTP:[4,"has-o-t-p"]}]);function defineCustomElement$6(){typeof customElements>"u"||["nl-welcome-signin","button-base"].forEach(o=>{switch(o){case"nl-welcome-signin":customElements.get(o)||customElements.define(o,NlWelcomeSignIn);break;case"button-base":customElements.get(o)||defineCustomElement$q()}})}defineCustomElement$6();const nlWelcomeSignupCss=baseCss,NlWelcomeSignupStyle0=nlWelcomeSignupCss,NlWelcomeSignUp=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.titleWelcome="Sign up",this.description="Nostr profiles are based on cryptographic keys. You can create keys right here, or with a key storage app."}handleChangeScreen(o){state.path=[...state.path,o]}render(){return h(Fragment,{key:"95a13ee24b5203b1f1fe9f355524abba9dc55dcb"},h("div",{key:"23209055b5ab42ed4e147f0d7e38ec320437f783",class:"p-4 overflow-y-auto"},h("h1",{key:"8f06a983aa9ca0caa01dd35d4907552696ffc996",class:"nl-title font-bold text-center text-3xl"},this.titleWelcome),h("p",{key:"14d88998c67951b047b79dd0d9358ae2b7a19895",class:"nl-description font-light text-center text-lg pt-2 max-w-96 mx-auto"},this.description)),h("div",{key:"62344241204e1c08e2d497b0bbc28b9aff3d7640",class:"max-w-52 mx-auto pb-5"},h("div",{key:"641c269ff23d94330acf465e62d294ce42b05212",class:"flex gap-3 flex-col"},h("button-base",{key:"aaa7f28f647f05506e93756df2895cef952b2912",onClick:()=>this.handleChangeScreen(CURRENT_MODULE.LOCAL_SIGNUP),titleBtn:"Create keys"},h("svg",{key:"2e8c77cdd122a51638f9a2e606d9ff33581b84c7",style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{key:"b6d0e6199dcc11a7ac9f4ba47c86219e325fa987","stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 5.25a3 3 0 0 1 3 3m3 0a6 6 0 0 1-7.029 5.912c-.563-.097-1.159.026-1.563.43L10.5 17.25H8.25v2.25H6v2.25H2.25v-2.818c0-.597.237-1.17.659-1.591l6.499-6.499c.404-.404.527-1 .43-1.563A6 6 0 1 1 21.75 8.25Z"}))),h("button-base",{key:"3c239d1df872ac71424478fd3f6857c5a9148ef6",onClick:()=>this.handleChangeScreen(CURRENT_MODULE.SIGNUP),titleBtn:"With key store"},h("svg",{key:"4600c4e8bb4e62d9a0303ae1abc464c6d6fc7899",style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{key:"c36bef296a15f3bb43c984ed083a8defeb530ab4","stroke-linecap":"round","stroke-linejoin":"round",d:"M20.25 6.375c0 2.278-3.694 4.125-8.25 4.125S3.75 8.653 3.75 6.375m16.5 0c0-2.278-3.694-4.125-8.25-4.125S3.75 4.097 3.75 6.375m16.5 0v11.25c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125V6.375m16.5 0v3.75m-16.5-3.75v3.75m16.5 0v3.75C20.25 16.153 16.556 18 12 18s-8.25-1.847-8.25-4.125v-3.75m16.5 0c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125"}))))))}static get style(){return NlWelcomeSignupStyle0}},[0,"nl-welcome-signup",{titleWelcome:[1,"title-welcome"],description:[1]}]);function defineCustomElement$5(){typeof customElements>"u"||["nl-welcome-signup","button-base"].forEach(o=>{switch(o){case"nl-welcome-signup":customElements.get(o)||customElements.define(o,NlWelcomeSignUp);break;case"button-base":customElements.get(o)||defineCustomElement$q()}})}defineCustomElement$5();const nlAuthCss=baseCss,NlAuthStyle0=nlAuthCss,NlAuth=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.nlCloseModal=createEvent(this,"nlCloseModal",7),this.nlChangeDarkMode=createEvent(this,"nlChangeDarkMode",7),this.theme="default",this.bunkers="",this.startScreen=CURRENT_MODULE.WELCOME,this.authMethods=[],this.hasExtension=!1,this.hasOTP=!1,this.isLoading=!1,this.isLoadingExtension=!1,this.isOTP=!1,this.authUrl="",this.iframeUrl="",this.error="",this.localSignup=!1,this.accounts=[],this.recents=[],this.darkMode=!1,this.welcomeTitle="",this.welcomeDescription="",this.connectionString="",this.connectionStringServices=[]}watchLocalSignupHandler(o){state.localSignup=o}watchLoadingHandler(o){state.isLoading=o}watchLoadingExtensionHandler(o){state.isLoadingExtension=o}watchOTPHandler(o){state.isOTP=o}watchAuthUrlHandler(o){state.authUrl=o}watchIframeUrlHandler(o){state.iframeUrl=o}watchErrorHandler(o){state.error=o}handleClose(){this.nlCloseModal.emit()}handleChangeDarkMode(){this.nlChangeDarkMode.emit(!this.darkMode)}componentWillLoad(){state.path=[this.startScreen],state.localSignup=this.localSignup,state.error="",state.iframeUrl="",state.authUrl="",state.isLoading=!1,state.isLoadingExtension=!1,state.isOTP=!1,console.log("path",state.path)}handleClickToBack(){state.path.pop(),state.path=[...state.path],state.isLoading=!1,state.isLoadingExtension=!1,state.authUrl="",state.isOTP=!1}switchSignSignUpStrategy(o){state.path=CURRENT_MODULE.LOCAL_SIGNUP!==o?[CURRENT_MODULE.WELCOME,o]:[CURRENT_MODULE.WELCOME,CURRENT_MODULE.WELCOME_SIGNUP,o]}render(){const o="w-full h-full fixed top-0 start-0 z-[80] overflow-x-hidden overflow-y-auto flex items-center "+(this.darkMode?"dark":""),s=state.path.at(-1),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}`},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,A=this.userInfo&&"local"===this.userInfo.authMethod,S=localStorage.getItem("backupKey"),T=h("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-full"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M17.982 18.725A7.488 7.488 0 0 0 12 15.75a7.488 7.488 0 0 0-5.982 2.975m11.963 0a9 9 0 1 0-11.963 0m11.963 0A8.966 8.966 0 0 1 12 21a8.966 8.966 0 0 1-5.982-2.275M15 9.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})),k=h(Fragment,null,h("div",{class:"block w-[48px] h-[46px] relative z-10"},h("div",{onClick:()=>this.handleOpen(),class:"flex w-52 h-[46px] items-center pl-[11px]"},h("span",{class:(this.isLoading?"w-5 h-5 border-[2px] mr-3.5 ml-[2px] opacity-1":"w-0 h-0 border-[0px] mr-0 opacity-0 ml-0")+" animate-spin transition-all duration-300 ease-in-out inline-block border-current border-t-transparent text-slate-900 dark:text-gray-300 rounded-full",role:"status","aria-label":"loading"}),this.userInfo?h("div",{class:"uppercase font-bold w-6 h-6 mr-2 rounded-full border border-gray-200 flex justify-center items-center"},y?this.isUserImgError?T:h("img",{class:"w-full rounded-full",src:this.userInfo.picture,alt:"Logo",onError:()=>this.isUserImgError=!0}):C?w[0]:T):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),A&&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(te,we){we=we||document.body;const _e=Array.from(we.querySelectorAll(te)),pe=function(Te){Z(te,Te).forEach(Ce=>{_e.includes(Ce)||_e.push(Ce)})};we.shadowRoot&&pe(we.shadowRoot);for(const Te of Array.from(we.querySelectorAll("*")))Te.shadowRoot&&pe(Te.shadowRoot);return _e}("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"},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`},k)):h("div",{class:`nl-banner ${this.isOpen?"w-52 h-auto right-2 rounded-r-lg isOpen":"rounded-r-none hover:rounded-r-lg cursor-pointer"} z-50 w-12 h-12 fixed top-52 right-0 inline-block gap-x-2 text-sm font-medium rounded-lg hover:right-2 transition-all duration-300 ease-in-out`},k)))}static get watchers(){return{notify:["watchNotifyHandler"]}}static get style(){return NlBannerStyle0}},[1,"nl-banner",{theme:[1025],darkMode:[1028,"dark-mode"],hiddenMode:[1028,"hidden-mode"],titleBanner:[1,"title-banner"],isOpen:[1028,"is-open"],isLoading:[4,"is-loading"],notify:[16],userInfo:[16],accounts:[1040],isUserImgError:[32],domain:[32],mode:[32],url:[32],isOpenConfirm:[32]},void 0,{notify:["watchNotifyHandler"]}]);function defineCustomElement(){typeof customElements>"u"||["nl-banner","button-base","nl-change-account","nl-dialog","nl-login-status"].forEach(o=>{switch(o){case"nl-banner":customElements.get(o)||customElements.define(o,NlBanner);break;case"button-base":customElements.get(o)||defineCustomElement$q();break;case"nl-change-account":customElements.get(o)||defineCustomElement$2();break;case"nl-dialog":customElements.get(o)||defineCustomElement$1();break;case"nl-login-status":customElements.get(o)||defineCustomElement$g()}})}defineCustomElement();var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var lib$1={},types={};Object.defineProperty(types,"__esModule",{value:!0});var ee={},taskCollection$1={},taskCollection={},bakeCollection={};(function(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.bakeCollectionVariadic=exports.bakeCollectionAwait=exports.bakeCollection=exports.BAKED_EMPTY_FUNC=void 0,exports.BAKED_EMPTY_FUNC=function(){};var FORLOOP_FALLBACK=1500;function generateArgsDefCode(o){var s="";if(0===o)return s;for(var 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),A=i?0:4;o.setUint32(s+(i?4:0),y,i),o.setUint32(s+A,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;SA.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 T=SHA256_W$2[S-15],k=SHA256_W$2[S-2],R=rotr$2(T,7)^rotr$2(T,18)^T>>>3,G=rotr$2(k,17)^rotr$2(k,19)^k>>>10;SHA256_W$2[S]=G+SHA256_W$2[S-7]+R+SHA256_W$2[S-16]|0}let{A:r,B:i,C:a,D:c,E:y,F:w,G:C,H:A}=this;for(let S=0;S<64;S++){const T=A+(rotr$2(y,6)^rotr$2(y,11)^rotr$2(y,25))+Chi$2(y,w,C)+SHA256_K$2[S]+SHA256_W$2[S]|0,k=(rotr$2(r,2)^rotr$2(r,13)^rotr$2(r,22))+Maj$2(r,i,a)|0;A=C,C=w,w=y,y=c+T|0,c=a,a=i,i=r,r=T+k|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,A=A+this.H|0,this.set(r,i,a,c,y,w,C,A)}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())},A=()=>{if(c++>=1e3)throw new Error("drbg: tried 1000 values");let S=0;const T=[];for(;S{let k;for(y(),C(S);!(k=T(A()));)C();return y(),k}}const validatorFns={bigint:o=>"bigint"==typeof o,function:o=>"function"==typeof o,boolean:o=>"boolean"==typeof o,string:o=>"string"==typeof o,isSafeInteger:o=>Number.isSafeInteger(o),array:o=>Array.isArray(o),field:(o,s)=>s.Fp.isValid(o),hash:o=>"function"==typeof o&&Number.isSafeInteger(o.outputLen)};function validateObject(o,s,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,A)=>C===A,sqr:C=>mod(C*C,o),add:(C,A)=>mod(C+A,o),sub:(C,A)=>mod(C-A,o),mul:(C,A)=>mod(C*A,o),pow:(C,A)=>FpPow(w,C,A),div:(C,A)=>mod(C*invert(A,o),o),sqrN:C=>C*C,addN:(C,A)=>C+A,subN:(C,A)=>C-A,mulN:(C,A)=>C*A,inv:C=>invert(C,o),sqrt:i.sqrt||(C=>y(w,C)),invertBatch:C=>FpInvertBatch(w,C),cmov:(C,A,S)=>S?A: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 A=a,S=A;for(let T=0;T>=R,te>C&&(te-=k,y+=_1n$2);const we=Z,_e=Z+Math.abs(te)-1,Te=te<0;0===te?S=S.add(r(G%2!=0,c[we])):A=A.add(r(Te,c[_e]))}return{p:A,f:S}},wNAFCached(a,c,y,w){const C=a._WINDOW_SIZE||1;let A=c.get(a);return A||(A=this.precomputeWindow(a,C),1!==C&&c.set(a,w(A))),this.wNAF(C,A,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=A=>8&Number.parseInt(A[0],16)?"00"+A:A,r=A=>{const S=A.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,te)=>{const we=Z.toAffine();return concatBytes$2(Uint8Array.from([4]),r.toBytes(we.x),r.toBytes(we.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:te}=s,we=r.sqr(G),_e=r.mul(we,G);return r.add(r.add(_e,r.mul(G,Z)),te)}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 _e(te)&&_e(we)?T.ZERO:new T(te,we,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(Z){const te=r.invertBatch(Z.map(we=>we.pz));return Z.map((we,_e)=>we.toAffine(te[_e])).map(T.fromAffine)}static fromHex(Z){const te=T.fromAffine(a(ensureBytes$1("pointHex",Z)));return te.assertValidity(),te}static fromPrivateKey(Z){return T.BASE.multiply(C(Z))}_setWindowSize(Z){this._WINDOW_SIZE=Z,A.delete(this)}assertValidity(){if(this.is0()){if(s.allowInfinityPoint)return;throw new Error("bad point: ZERO")}const{x:Z,y:te}=this.toAffine();if(!r.isValid(Z)||!r.isValid(te))throw new Error("bad point: x or y not FE");const we=r.sqr(te),_e=c(Z);if(!r.eql(we,_e))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:te,py:we,pz:_e}=this,{px:pe,py:Te,pz:Ce}=Z,Ne=r.eql(r.mul(te,Ce),r.mul(pe,_e)),Se=r.eql(r.mul(we,Ce),r.mul(Te,_e));return Ne&&Se}negate(){return new T(this.px,r.neg(this.py),this.pz)}double(){const{a:Z,b:te}=s,we=r.mul(te,_3n),{px:_e,py:pe,pz:Te}=this;let Ce=r.ZERO,Ne=r.ZERO,Se=r.ZERO,xe=r.mul(_e,_e),ae=r.mul(pe,pe),le=r.mul(Te,Te),ke=r.mul(_e,pe);return ke=r.add(ke,ke),Se=r.mul(_e,Te),Se=r.add(Se,Se),Ce=r.mul(Z,Se),Ne=r.mul(we,le),Ne=r.add(Ce,Ne),Ce=r.sub(ae,Ne),Ne=r.add(ae,Ne),Ne=r.mul(Ce,Ne),Ce=r.mul(ke,Ce),Se=r.mul(we,Se),le=r.mul(Z,le),ke=r.sub(xe,le),ke=r.mul(Z,ke),ke=r.add(ke,Se),Se=r.add(xe,xe),xe=r.add(Se,xe),xe=r.add(xe,le),xe=r.mul(xe,ke),Ne=r.add(Ne,xe),le=r.mul(pe,Te),le=r.add(le,le),xe=r.mul(le,ke),Ce=r.sub(Ce,xe),Se=r.mul(le,ae),Se=r.add(Se,Se),Se=r.add(Se,Se),new T(Ce,Ne,Se)}add(Z){S(Z);const{px:te,py:we,pz:_e}=this,{px:pe,py:Te,pz:Ce}=Z;let Ne=r.ZERO,Se=r.ZERO,xe=r.ZERO;const ae=s.a,le=r.mul(s.b,_3n);let ke=r.mul(te,pe),Ue=r.mul(we,Te),st=r.mul(_e,Ce),ft=r.add(te,we),_t=r.add(pe,Te);ft=r.mul(ft,_t),_t=r.add(ke,Ue),ft=r.sub(ft,_t),_t=r.add(te,_e);let ot=r.add(pe,Ce);return _t=r.mul(_t,ot),ot=r.add(ke,st),_t=r.sub(_t,ot),ot=r.add(we,_e),Ne=r.add(Te,Ce),ot=r.mul(ot,Ne),Ne=r.add(Ue,st),ot=r.sub(ot,Ne),xe=r.mul(ae,_t),Ne=r.mul(le,st),xe=r.add(Ne,xe),Ne=r.sub(Ue,xe),xe=r.add(Ue,xe),Se=r.mul(Ne,xe),Ue=r.add(ke,ke),Ue=r.add(Ue,ke),st=r.mul(ae,st),_t=r.mul(le,_t),Ue=r.add(Ue,st),st=r.sub(ke,st),st=r.mul(ae,st),_t=r.add(_t,st),ke=r.mul(Ue,_t),Se=r.add(Se,ke),ke=r.mul(ot,_t),Ne=r.mul(ft,Ne),Ne=r.sub(Ne,ke),ke=r.mul(ft,Ue),xe=r.mul(ot,xe),xe=r.add(xe,ke),new T(Ne,Se,xe)}subtract(Z){return this.add(Z.negate())}is0(){return this.equals(T.ZERO)}wNAF(Z){return R.wNAFCached(this,A,Z,te=>{const we=r.invertBatch(te.map(_e=>_e.pz));return te.map((_e,pe)=>_e.toAffine(we[pe])).map(T.fromAffine)})}multiplyUnsafe(Z){const te=T.ZERO;if(Z===_0n$1)return te;if(w(Z),Z===_1n$1)return this;const{endo:we}=s;if(!we)return R.unsafeLadder(this,Z);let{k1neg:_e,k1:pe,k2neg:Te,k2:Ce}=we.splitScalar(Z),Ne=te,Se=te,xe=this;for(;pe>_0n$1||Ce>_0n$1;)pe&_1n$1&&(Ne=Ne.add(xe)),Ce&_1n$1&&(Se=Se.add(xe)),xe=xe.double(),pe>>=_1n$1,Ce>>=_1n$1;return _e&&(Ne=Ne.negate()),Te&&(Se=Se.negate()),Se=new T(r.mul(Se.px,we.beta),Se.py,Se.pz),Ne.add(Se)}multiply(Z){w(Z);let te,we,_e=Z;const{endo:pe}=s;if(pe){const{k1neg:Te,k1:Ce,k2neg:Ne,k2:Se}=pe.splitScalar(_e);let{p:xe,f:ae}=this.wNAF(Ce),{p:le,f:ke}=this.wNAF(Se);xe=R.constTimeNegate(Te,xe),le=R.constTimeNegate(Ne,le),le=new T(r.mul(le.px,pe.beta),le.py,le.pz),te=xe.add(le),we=ae.add(ke)}else{const{p:Te,f:Ce}=this.wNAF(_e);te=Te,we=Ce}return T.normalizeZ([te,we])[0]}multiplyAndAddUnsafe(Z,te,we){const _e=T.BASE,pe=(Ce,Ne)=>Ne!==_0n$1&&Ne!==_1n$1&&Ce.equals(_e)?Ce.multiply(Ne):Ce.multiplyUnsafe(Ne),Te=pe(this,te).add(pe(Z,we));return Te.is0()?void 0:Te}toAffine(Z){const{px:te,py:we,pz:_e}=this,pe=this.is0();null==Z&&(Z=pe?r.ONE:r.inv(_e));const Te=r.mul(te,Z),Ce=r.mul(we,Z),Ne=r.mul(_e,Z);if(pe)return{x:r.ZERO,y:r.ZERO};if(!r.eql(Ne,r.ONE))throw new Error("invZ was invalid");return{x:Te,y:Ce}}isTorsionFree(){const{h:Z,isTorsionFree:te}=s;if(Z===_1n$1)return!0;if(te)return te(T,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:Z,clearCofactor:te}=s;return Z===_1n$1?this:te?te(T,this):this.multiplyUnsafe(s.h)}toRawBytes(Z=!0){return this.assertValidity(),i(T,this,Z)}toHex(Z=!0){return bytesToHex$2(this.toRawBytes(Z))}}T.BASE=new T(s.Gx,s.Gy,r.ONE),T.ZERO=new T(r.ZERO,r.ONE,r.ZERO);const k=s.nBitLength,R=wNAF(T,s.endo?Math.ceil(k/2):k);return{CURVE:s,ProjectivePoint:T,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(ae){return mod(ae,i)}function w(ae){return invert(ae,i)}const{ProjectivePoint:C,normPrivateKeyToScalar:A,weierstrassEquation:S,isWithinCurveOrder:T}=weierstrassPoints({...s,toBytes(ae,le,ke){const Ue=le.toAffine(),st=r.toBytes(Ue.x),ft=concatBytes$2;return ke?ft(Uint8Array.from([le.hasEvenY()?2:3]),st):ft(Uint8Array.from([4]),st,r.toBytes(Ue.y))},fromBytes(ae){const le=ae.length,ke=ae[0],Ue=ae.subarray(1);if(le!==a||2!==ke&&3!==ke){if(le===c&&4===ke)return{x:r.fromBytes(Ue.subarray(0,r.BYTES)),y:r.fromBytes(Ue.subarray(r.BYTES,2*r.BYTES))};throw new Error(`Point of length ${le} was invalid. Expected ${a} compressed bytes or ${c} uncompressed bytes`)}{const ft=bytesToNumberBE(Ue);if(!(_0n$1<(st=ft)&&stbytesToHex$2(numberToBytesBE(ae,s.nByteLength));function R(ae){return ae>i>>_1n$1}const G=(ae,le,ke)=>bytesToNumberBE(ae.slice(le,ke));class Z{constructor(le,ke,Ue){this.r=le,this.s=ke,this.recovery=Ue,this.assertValidity()}static fromCompact(le){const ke=s.nByteLength;return le=ensureBytes$1("compactSignature",le,2*ke),new Z(G(le,0,ke),G(le,ke,2*ke))}static fromDER(le){const{r:ke,s:Ue}=DER.toSig(ensureBytes$1("DER",le));return new Z(ke,Ue)}assertValidity(){if(!T(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!T(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(le){return new Z(this.r,this.s,le)}recoverPublicKey(le){const{r:ke,s:Ue,recovery:st}=this,ft=pe(ensureBytes$1("msgHash",le));if(null==st||![0,1,2,3].includes(st))throw new Error("recovery id invalid");const _t=2===st||3===st?ke+s.n:ke;if(_t>=r.ORDER)throw new Error("recovery id 2 or 3 invalid");const Yt=C.fromHex((1&st?"03":"02")+k(_t)),un=w(_t),wn=y(-ft*un),$n=y(Ue*un),En=C.BASE.multiplyAndAddUnsafe(Yt,wn,$n);if(!En)throw new Error("point at infinify");return En.assertValidity(),En}hasHighS(){return R(this.s)}normalizeS(){return this.hasHighS()?new Z(this.r,y(-this.s),this.recovery):this}toDERRawBytes(){return hexToBytes$2(this.toDERHex())}toDERHex(){return DER.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return hexToBytes$2(this.toCompactHex())}toCompactHex(){return k(this.r)+k(this.s)}}const te={isValidPrivateKey(ae){try{return A(ae),!0}catch{return!1}},normPrivateKeyToScalar:A,randomPrivateKey:()=>numberToBytesBE(hashToPrivateScalar(s.randomBytes(r.BYTES+8),i),s.nByteLength),precompute:(ae=8,le=C.BASE)=>(le._setWindowSize(ae),le.multiply(BigInt(3)),le)};function we(ae){const le=ae instanceof Uint8Array,ke="string"==typeof ae,Ue=(le||ke)&&ae.length;return le?Ue===a||Ue===c:ke?Ue===2*a||Ue===2*c:ae instanceof C}const _e=s.bits2int||function(ae){const le=bytesToNumberBE(ae),ke=8*ae.length-s.nBitLength;return ke>0?le>>BigInt(ke):le},pe=s.bits2int_modN||function(ae){return y(_e(ae))},Te=bitMask(s.nBitLength);function Ce(ae){if("bigint"!=typeof ae)throw new Error("bigint expected");if(!(_0n$1<=ae&&aeZe in ke))throw new Error("sign() legacy options not supported");const{hash:Ue,randomBytes:st}=s;let{lowS:ft,prehash:_t,extraEntropy:ot}=ke;null==ft&&(ft=!0),ae=ensureBytes$1("msgHash",ae),_t&&(ae=ensureBytes$1("prehashed msgHash",Ue(ae)));const Yt=pe(ae),un=A(le),wn=[Ce(un),Ce(Yt)];if(null!=ot){const Ze=!0===ot?st(r.BYTES):ot;wn.push(ensureBytes$1("extraEntropy",Ze,r.BYTES))}const $n=concatBytes$2(...wn),En=Yt;return{seed:$n,k2sig:function(Ze){const wt=_e(Ze);if(!T(wt))return;const ze=w(wt),Be=C.BASE.multiply(wt).toAffine(),Ut=y(Be.x);if(Ut===_0n$1)return;const Ke=y(ze*y(En+Ut*un));if(Ke===_0n$1)return;let lt=(Be.x===Ut?0:2)|Number(Be.y&_1n$1),Xe=Ke;return ft&&R(Ke)&&(Xe=R(Ge=Ke)?y(-Ge):Ge,lt^=1),new Z(Ut,Xe,lt);var Ge}}}(ae,le,ke);return createHmacDrbg(s.hash.outputLen,s.nByteLength,s.hmac)(Ue,st)},verify:function(ae,le,ke,Ue=xe){const st=ae;if(le=ensureBytes$1("msgHash",le),ke=ensureBytes$1("publicKey",ke),"strict"in Ue)throw new Error("options.strict was renamed to lowS");const{lowS:ft,prehash:_t}=Ue;let ot,Yt;try{if("string"==typeof st||st instanceof Uint8Array)try{ot=Z.fromDER(st)}catch(Be){if(!(Be instanceof DER.Err))throw Be;ot=Z.fromCompact(st)}else{if("object"!=typeof st||"bigint"!=typeof st.r||"bigint"!=typeof st.s)throw new Error("PARSE");{const{r:Be,s:Ut}=st;ot=new Z(Be,Ut)}}Yt=C.fromHex(ke)}catch(Be){if("PARSE"===Be.message)throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(ft&&ot.hasHighS())return!1;_t&&(le=s.hash(le));const{r:un,s:wn}=ot,$n=pe(le),En=w(wn),Ze=y($n*En),wt=y(un*En),ze=C.BASE.multiplyAndAddUnsafe(Yt,Ze,wt)?.toAffine();return!!ze&&y(ze.x)===un},ProjectivePoint:C,Signature:Z,utils:te}}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),A=o*o*o%s,S=A*A*o%s,T=pow2(S,r,s)*S%s,k=pow2(T,r,s)*S%s,R=pow2(k,_2n,s)*A%s,G=pow2(R,a,s)*R%s,Z=pow2(G,c,s)*G%s,te=pow2(Z,w,s)*Z%s,we=pow2(te,C,s)*te%s,_e=pow2(we,w,s)*Z%s,pe=pow2(_e,r,s)*S%s,Te=pow2(pe,y,s)*G%s,Ce=pow2(Te,i,s)*A%s,Ne=pow2(Ce,_2n,s);if(!Fp.eql(Fp.sqr(Ne),o))throw new Error("Cannot find square root");return Ne}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 A=mod(o-w*r-C*a,s),S=mod(-w*i-C*c,s);const T=A>y,k=S>y;if(T&&(A=s-A),k&&(S=s-S),A>y||S>y)throw new Error("splitScalar: Endomorphism failed, k="+o);return{k1neg:T,k1:A,k2neg:k,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),A=modN(bytesToNumberBE(C));if(A===_0n)throw new Error("sign failed: k is zero");const{bytes:S,scalar:T}=schnorrGetExtPubKey(A),k=challenge(S,a,i),R=new Uint8Array(64);if(R.set(S,0),R.set(numTo32b(modN(T+k*c)),32),!schnorrVerify(R,i,a))throw new Error("sign: Invalid signature produced");return R}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 A=challenge(numTo32b(w),pointToBytes(y),a),S=GmulAdd(y,C,modN(-A));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),A=i?0:4;o.setUint32(s+(i?4:0),y,i),o.setUint32(s+A,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;SA.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 T=SHA256_W$1[S-15],k=SHA256_W$1[S-2],R=rotr$1(T,7)^rotr$1(T,18)^T>>>3,G=rotr$1(k,17)^rotr$1(k,19)^k>>>10;SHA256_W$1[S]=G+SHA256_W$1[S-7]+R+SHA256_W$1[S-16]|0}let{A:r,B:i,C:a,D:c,E:y,F:w,G:C,H:A}=this;for(let S=0;S<64;S++){const T=A+(rotr$1(y,6)^rotr$1(y,11)^rotr$1(y,25))+Chi$1(y,w,C)+SHA256_K$1[S]+SHA256_W$1[S]|0,k=(rotr$1(r,2)^rotr$1(r,13)^rotr$1(r,22))+Maj$1(r,i,a)|0;A=C,C=w,w=y,y=c+T|0,c=a,a=i,i=r,r=T+k|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,A=A+this.H|0,this.set(r,i,a,c,y,w,C,A)}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 A=w.toLowerCase();if(w!==A&&w!==w.toUpperCase())throw new Error("String must be lowercase or uppercase");const S=(w=A).lastIndexOf("1");if(0===S||-1===S)throw new Error('Letter "1" must be present between prefix and data only');const T=w.slice(0,S),k=w.slice(S+1);if(k.length<6)throw new Error("Data must be at least 6 characters long");const R=BECH_ALPHABET$1.decode(k).slice(0,-6),G=bechChecksum$1(T,R,s);if(!k.endsWith(G))throw new Error(`Invalid checksum in ${w}: expected "${G}"`);return{prefix:T,words:R}}return{encode:function(w,C,A=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!==A&&S>A)throw new TypeError(`Length ${S} exceeds limit ${A}`);return`${w=w.toLowerCase()}1${BECH_ALPHABET$1.encode(C)}${bechChecksum$1(w,C,s)}`},decode:y,decodeToBytes:function(w){const{prefix:C,words:A}=y(w,!1);return{prefix:C,words:A,bytes:i(A)}},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),A=toBytes$1(r),S=new Uint8Array(y),T=hmac$1.create(o,C),k=T._cloneInto().update(A);return{c,dkLen:y,asyncTick:w,DK:S,PRF:T,PRFSalt:k}}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 A;const S=new Uint8Array(4),T=createView(S),k=new Uint8Array(w.outputLen);for(let R=1,G=0;G>a&c),w=Number(r&c),A=i?0:4;o.setUint32(s+(i?4:0),y,i),o.setUint32(s+A,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 T=y;TS.length)throw new Error("_sha2: outputLen bigger than state");for(let T=0;To&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 T=0;T<16;T++,r+=4)SHA256_W[T]=s.getUint32(r,!1);for(let T=16;T<64;T++){const k=SHA256_W[T-15],R=SHA256_W[T-2],G=rotr(k,7)^rotr(k,18)^k>>>3,Z=rotr(R,17)^rotr(R,19)^R>>>10;SHA256_W[T]=Z+SHA256_W[T-7]+G+SHA256_W[T-16]|0}let{A:i,B:a,C:c,D:y,E:w,F:C,G:A,H:S}=this;for(let T=0;T<64;T++){const k=S+(rotr(w,6)^rotr(w,11)^rotr(w,25))+Chi(w,C,A)+SHA256_K[T]+SHA256_W[T]|0,R=(rotr(i,2)^rotr(i,13)^rotr(i,22))+Maj(i,a,c)|0;S=A,A=C,C=w,w=y+k|0,y=c,c=a,a=i,i=k+R|0}i=i+this.A|0,a=a+this.B|0,c=c+this.C|0,y=y+this.D|0,w=w+this.E|0,C=C+this.F|0,A=A+this.G|0,S=S+this.H|0,this.set(i,a,c,y,w,C,A,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:A,El:S,Fh:T,Fl:k,Gh:R,Gl:G,Hh:Z,Hl:te}=this;return[s,r,i,a,c,y,w,C,A,S,T,k,R,G,Z,te]}set(s,r,i,a,c,y,w,C,A,S,T,k,R,G,Z,te){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|A,this.El=0|S,this.Fh=0|T,this.Fl=0|k,this.Gh=0|R,this.Gl=0|G,this.Hh=0|Z,this.Hl=0|te}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],Ce=0|SHA512_W_L[pe-15],Ne=u64.rotrSH(Te,Ce,1)^u64.rotrSH(Te,Ce,8)^u64.shrSH(Te,Ce,7),Se=u64.rotrSL(Te,Ce,1)^u64.rotrSL(Te,Ce,8)^u64.shrSL(Te,Ce,7),xe=0|SHA512_W_H[pe-2],ae=0|SHA512_W_L[pe-2],le=u64.rotrSH(xe,ae,19)^u64.rotrBH(xe,ae,61)^u64.shrSH(xe,ae,6),ke=u64.rotrSL(xe,ae,19)^u64.rotrBL(xe,ae,61)^u64.shrSL(xe,ae,6),Ue=u64.add4L(Se,ke,SHA512_W_L[pe-7],SHA512_W_L[pe-16]),st=u64.add4H(Ue,Ne,le,SHA512_W_H[pe-7],SHA512_W_H[pe-16]);SHA512_W_H[pe]=0|st,SHA512_W_L[pe]=0|Ue}let{Ah:i,Al:a,Bh:c,Bl:y,Ch:w,Cl:C,Dh:A,Dl:S,Eh:T,El:k,Fh:R,Fl:G,Gh:Z,Gl:te,Hh:we,Hl:_e}=this;for(let pe=0;pe<80;pe++){const Te=u64.rotrSH(T,k,14)^u64.rotrSH(T,k,18)^u64.rotrBH(T,k,41),Ce=u64.rotrSL(T,k,14)^u64.rotrSL(T,k,18)^u64.rotrBL(T,k,41),Ne=T&R^~T&Z,xe=u64.add5L(_e,Ce,k&G^~k&te,SHA512_Kl[pe],SHA512_W_L[pe]),ae=u64.add5H(xe,we,Te,Ne,SHA512_Kh[pe],SHA512_W_H[pe]),le=0|xe,ke=u64.rotrSH(i,a,28)^u64.rotrBH(i,a,34)^u64.rotrBH(i,a,39),Ue=u64.rotrSL(i,a,28)^u64.rotrBL(i,a,34)^u64.rotrBL(i,a,39),st=i&c^i&w^c&w,ft=a&y^a&C^y&C;we=0|Z,_e=0|te,Z=0|R,te=0|G,R=0|T,G=0|k,({h:T,l:k}=u64.add(0|A,0|S,0|ae,0|le)),A=0|w,S=0|C,w=0|c,C=0|y,c=0|i,y=0|a;const _t=u64.add3L(le,Ue,ft);i=u64.add3H(_t,ae,ke,st),a=0|_t}({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:A,l:S}=u64.add(0|this.Dh,0|this.Dl,0|A,0|S)),({h:T,l:k}=u64.add(0|this.Eh,0|this.El,0|T,0|k)),({h:R,l:G}=u64.add(0|this.Fh,0|this.Fl,0|R,0|G)),({h:Z,l:te}=u64.add(0|this.Gh,0|this.Gl,0|Z,0|te)),({h:we,l:_e}=u64.add(0|this.Hh,0|this.Hl,0|we,0|_e)),this.set(i,a,c,y,w,C,A,S,T,k,R,G,Z,te,we,_e)}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 A=w.toLowerCase();if(w!==A&&w!==w.toUpperCase())throw new Error("String must be lowercase or uppercase");const S=(w=A).lastIndexOf("1");if(0===S||-1===S)throw new Error('Letter "1" must be present between prefix and data only');const T=w.slice(0,S),k=w.slice(S+1);if(k.length<6)throw new Error("Data must be at least 6 characters long");const R=BECH_ALPHABET.decode(k).slice(0,-6),G=bechChecksum(T,R,s);if(!k.endsWith(G))throw new Error(`Invalid checksum in ${w}: expected "${G}"`);return{prefix:T,words:R}}return{encode:function(w,C,A=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!==A&&S>A)throw new TypeError(`Length ${S} exceeds limit ${A}`);const T=w.toLowerCase(),k=bechChecksum(T,C,s);return`${T}1${BECH_ALPHABET.encode(C)}${k}`},decode:y,decodeToBytes:function(w){const{prefix:C,words:A}=y(w,!1);return{prefix:C,words:A,bytes:i(A)}},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 R=0;R<16;R++,r+=4)BUF[R]=s.getUint32(r,!0);let i=0|this.h0,a=i,c=0|this.h1,y=c,w=0|this.h2,C=w,A=0|this.h3,S=A,T=0|this.h4,k=T;for(let R=0;R<5;R++){const G=4-R,Z=Kl[R],te=Kr[R],we=idxL[R],_e=idxR[R],pe=shiftsL[R],Te=shiftsR[R];for(let Ce=0;Ce<16;Ce++){const Ne=rotl$1(i+f(R,c,w,A)+BUF[we[Ce]]+Z,pe[Ce])+T|0;i=T,T=A,A=0|rotl$1(w,10),w=c,c=Ne}for(let Ce=0;Ce<16;Ce++){const Ne=rotl$1(a+f(G,y,C,S)+BUF[_e[Ce]]+te,Te[Ce])+k|0;a=k,k=S,S=0|rotl$1(C,10),C=y,y=Ne}}this.set(this.h1+w+S|0,this.h2+A+k|0,this.h3+T+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),A=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|A<<8),this.r[9]=A>>>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],A=y[2],S=y[3],T=y[4],k=y[5],R=y[6],G=y[7],Z=y[8],te=y[9],we=u8to16(s,r+0),_e=u8to16(s,r+2),pe=u8to16(s,r+4),Te=u8to16(s,r+6),Ce=u8to16(s,r+8),Ne=u8to16(s,r+10),Se=u8to16(s,r+12),xe=u8to16(s,r+14);let ae=c[0]+(8191&we),le=c[1]+(8191&(we>>>13|_e<<3)),ke=c[2]+(8191&(_e>>>10|pe<<6)),Ue=c[3]+(8191&(pe>>>7|Te<<9)),st=c[4]+(8191&(Te>>>4|Ce<<12)),ft=c[5]+(Ce>>>1&8191),_t=c[6]+(8191&(Ce>>>14|Ne<<2)),ot=c[7]+(8191&(Ne>>>11|Se<<5)),Yt=c[8]+(8191&(Se>>>8|xe<<8)),un=c[9]+(xe>>>5|a),wn=0,$n=wn+ae*w+le*(5*te)+ke*(5*Z)+Ue*(5*G)+st*(5*R);wn=$n>>>13,$n&=8191,$n+=ft*(5*k)+_t*(5*T)+ot*(5*S)+Yt*(5*A)+un*(5*C),wn+=$n>>>13,$n&=8191;let En=wn+ae*C+le*w+ke*(5*te)+Ue*(5*Z)+st*(5*G);wn=En>>>13,En&=8191,En+=ft*(5*R)+_t*(5*k)+ot*(5*T)+Yt*(5*S)+un*(5*A),wn+=En>>>13,En&=8191;let Ze=wn+ae*A+le*C+ke*w+Ue*(5*te)+st*(5*Z);wn=Ze>>>13,Ze&=8191,Ze+=ft*(5*G)+_t*(5*R)+ot*(5*k)+Yt*(5*T)+un*(5*S),wn+=Ze>>>13,Ze&=8191;let wt=wn+ae*S+le*A+ke*C+Ue*w+st*(5*te);wn=wt>>>13,wt&=8191,wt+=ft*(5*Z)+_t*(5*G)+ot*(5*R)+Yt*(5*k)+un*(5*T),wn+=wt>>>13,wt&=8191;let ze=wn+ae*T+le*S+ke*A+Ue*C+st*w;wn=ze>>>13,ze&=8191,ze+=ft*(5*te)+_t*(5*Z)+ot*(5*G)+Yt*(5*R)+un*(5*k),wn+=ze>>>13,ze&=8191;let Be=wn+ae*k+le*T+ke*S+Ue*A+st*C;wn=Be>>>13,Be&=8191,Be+=ft*w+_t*(5*te)+ot*(5*Z)+Yt*(5*G)+un*(5*R),wn+=Be>>>13,Be&=8191;let Ut=wn+ae*R+le*k+ke*T+Ue*S+st*A;wn=Ut>>>13,Ut&=8191,Ut+=ft*C+_t*w+ot*(5*te)+Yt*(5*Z)+un*(5*G),wn+=Ut>>>13,Ut&=8191;let Ke=wn+ae*G+le*R+ke*k+Ue*T+st*S;wn=Ke>>>13,Ke&=8191,Ke+=ft*A+_t*C+ot*w+Yt*(5*te)+un*(5*Z),wn+=Ke>>>13,Ke&=8191;let lt=wn+ae*Z+le*G+ke*R+Ue*k+st*T;wn=lt>>>13,lt&=8191,lt+=ft*S+_t*A+ot*C+Yt*w+un*(5*te),wn+=lt>>>13,lt&=8191;let Xe=wn+ae*te+le*Z+ke*G+Ue*R+st*k;wn=Xe>>>13,Xe&=8191,Xe+=ft*T+_t*S+ot*A+Yt*C+un*w,wn+=Xe>>>13,Xe&=8191,wn=(wn<<2)+wn|0,wn=wn+$n|0,$n=8191&wn,wn>>>=13,En+=wn,c[0]=$n,c[1]=En,c[2]=Ze,c[3]=wt,c[4]=ze,c[5]=Be,c[6]=Ut,c[7]=Ke,c[8]=lt,c[9]=Xe}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(A,S,T,k,R=0)=>{if(assert.bytes(A),assert.bytes(S),assert.bytes(T),k||(k=new Uint8Array(T.length)),assert.bytes(k),assert.number(R),R<0||R>=2**32-1)throw new Error("Salsa/ChaCha: counter overflow");if(k.length=2**32-1)throw new Error("Salsa/ChaCha: counter overflow");const ke=Math.min(w,xe-ae);if(ke===w&&Se&&Ne){const Ue=ae/4;if(ae%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],A=o[3],S=s[0],T=s[1],k=s[2],R=s[3],G=s[4],Z=s[5],te=s[6],we=s[7],_e=a,pe=r[0],Te=r[1],Ce=r[2],Ne=y,Se=w,xe=C,ae=A,le=S,ke=T,Ue=k,st=R,ft=G,_t=Z,ot=te,Yt=we,un=_e,wn=pe,$n=Te,En=Ce;for(let wt=0;wta?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 A=0;Aexpand$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(),A={},S={};function T(){return 1===c?.readyState}function k(te){return R.apply(this,arguments)}function R(){return(R=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(te){let we=JSON.stringify(te);if(T()||(yield new Promise(_e=>setTimeout(_e,1e3)),T()))try{c.send(we)}catch(_e){console.log(_e)}})).apply(this,arguments)}const G=(te,{verb:we="REQ",skipVerification:_e=!1,alreadyHaveEvent:pe=null,id:Te=Math.random().toString().slice(2)}={})=>{let Ce=Te;w[Ce]={id:Ce,filters:te,skipVerification:_e,alreadyHaveEvent:pe},k([we,Ce,...te]);let Ne={sub:(Se,xe={})=>G(Se||te,{skipVerification:xe.skipVerification||_e,alreadyHaveEvent:xe.alreadyHaveEvent||pe,id:Ce}),unsub:()=>{delete w[Ce],delete A[Ce],k(["CLOSE",Ce])},on:(Se,xe)=>{A[Ce]=A[Ce]||{event:[],count:[],eose:[]},A[Ce][Se].push(xe)},off:(Se,xe)=>{let ae=A[Ce],le=ae[Se].indexOf(xe);le>=0&&ae[Se].splice(le,1)},get events(){return eventsGenerator(Ne)}};return Ne};function Z(te,we){return new Promise((_e,pe)=>{if(!te.id)return void pe(new Error(`event ${te} has no id`));let Te=te.id;k([we,te]),S[Te]={resolve:_e,reject:pe}})}return{url:o,sub:G,on:(te,we)=>{C[te].push(we),"connect"===te&&1===c?.readyState&&we()},off:(te,we)=>{let _e=C[te].indexOf(we);-1!==_e&&C[te].splice(_e,1)},list:(te,we)=>new Promise(_e=>{let pe=G(te,we),Te=[],Ce=setTimeout(()=>{pe.unsub(),_e(Te)},r);pe.on("eose",()=>{pe.unsub(),clearTimeout(Ce),_e(Te)}),pe.on("event",Ne=>{Te.push(Ne)})}),get:(te,we)=>new Promise(_e=>{let pe=G([te],we),Te=setTimeout(()=>{pe.unsub(),_e(null)},i);pe.on("event",Ce=>{pe.unsub(),clearTimeout(Te),_e(Ce)})}),count:te=>new Promise(we=>{let _e=G(te,{...G,verb:"COUNT"}),pe=setTimeout(()=>{_e.unsub(),we(null)},a);_e.on("count",Te=>{_e.unsub(),clearTimeout(pe),we(Te)})}),publish:te=>(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){yield Z(te,"EVENT")})(),auth:te=>(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){yield Z(te,"AUTH")})(),connect:(te=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){T()||(yield(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return y||(y=new Promise((we,_e)=>{try{c=new WebSocket(o)}catch(Ne){_e(Ne)}c.onopen=()=>{C.connect.forEach(Ne=>Ne()),we()},c.onerror=()=>{y=void 0,C.error.forEach(Ne=>Ne()),_e()},c.onclose=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){y=void 0,C.disconnect.forEach(Ne=>Ne())});let pe,Te=new MessageQueue;function Ce(){if(0===Te.size)return clearInterval(pe),void(pe=null);var Ne=Te.dequeue();if(!Ne)return;let Se=getSubscriptionId(Ne);if(Se){let xe=w[Se];if(xe&&xe.alreadyHaveEvent&&xe.alreadyHaveEvent(getHex64(Ne,"id"),o))return}try{let xe=JSON.parse(Ne);switch(xe[0]){case"EVENT":{let Ue=xe[1],st=xe[2];return void(validateEvent(st)&&w[Ue]&&(w[Ue].skipVerification||verifySignature(st))&&matchFilters(w[Ue].filters,st)&&(A[Ue]?.event||[]).forEach(ft=>ft(st)))}case"COUNT":let ae=xe[1],le=xe[2];return void(w[ae]&&(A[ae]?.count||[]).forEach(Ue=>Ue(le)));case"EOSE":{let Ue=xe[1];return void(Ue in A&&(A[Ue].eose.forEach(st=>st()),A[Ue].eose=[]))}case"OK":{let Ue=xe[1],st=xe[2],ft=xe[3]||"";if(Ue in S){let{resolve:_t,reject:ot}=S[Ue];st?_t(null):ot(new Error(ft))}return}case"NOTICE":let ke=xe[1];return void C.notice.forEach(Ue=>Ue(ke));case"AUTH":{let Ue=xe[1];return void C.auth?.forEach(st=>st(Ue))}}}catch{return}}c.onmessage=Ne=>{Te.enqueue(Ne.data),pe||(pe=setInterval(Ce,0))}}))})())}),function(){return te.apply(this,arguments)}),close(){C=newListeners(),A={},S={},c?.readyState===WebSocket.OPEN&&c.close()},get status(){return c?.readyState??3}};var te}function eventsGenerator(o){return _eventsGenerator.apply(this,arguments)}function _eventsGenerator(){return _eventsGenerator=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_wrapAsyncGenerator_js__WEBPACK_IMPORTED_MODULE_0__.A)(function*(o){let s;const 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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_awaitAsyncGenerator_js__WEBPACK_IMPORTED_MODULE_2__.A)(new Promise(c=>{s=c}))}finally{o.off("event",i)}}),_eventsGenerator.apply(this,arguments)}var nip19_exports={};__export(nip19_exports,{BECH32_REGEX:()=>BECH32_REGEX,decode:()=>decode,naddrEncode:()=>naddrEncode,neventEncode:()=>neventEncode,noteEncode:()=>noteEncode,nprofileEncode:()=>nprofileEncode,npubEncode:()=>npubEncode,nrelayEncode:()=>nrelayEncode,nsecEncode:()=>nsecEncode});var Bech32MaxSize=5e3,BECH32_REGEX=/[\x21-\x7E]{1,83}1[023456789acdefghjklmnpqrstuvwxyz]{6,}/;function integerToUint8Array(o){const s=new Uint8Array(4);return s[0]=o>>24&255,s[1]=o>>16&255,s[2]=o>>8&255,s[3]=255&o,s}function decode(o){let{prefix:s,words: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_angular_builders_custom_webpack_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_angular_builders_custom_webpack_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),A=yield crypto.subtle.decrypt({name:"AES-CBC",iv:C},y,w);return utf8Decoder.decode(A)}),_decrypt$.apply(this,arguments)}function getNormalizedX(o){return o.slice(1,33)}__export(nip04_exports,{decrypt:()=>decrypt$1,encrypt:()=>encrypt$1}),typeof crypto<"u"&&!crypto.subtle&&crypto.webcrypto&&(crypto.subtle=crypto.webcrypto.subtle);var nip05_exports={};__export(nip05_exports,{NIP05_REGEX:()=>NIP05_REGEX$1,queryProfile:()=>queryProfile,searchDomain:()=>searchDomain,useFetchImplementation:()=>useFetchImplementation});var NIP05_REGEX$1=/^(?:([\w.+-]+)@)?([\w.-]+)$/,_fetch;try{_fetch=fetch}catch{}function useFetchImplementation(o){_fetch=o}function searchDomain(o){return _searchDomain.apply(this,arguments)}function _searchDomain(){return _searchDomain=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o,s=""){try{return(yield(yield _fetch(`https://${o}/.well-known/nostr.json?name=${s}`)).json()).names}catch{return{}}}),_searchDomain.apply(this,arguments)}function queryProfile(o){return _queryProfile.apply(this,arguments)}function _queryProfile(){return _queryProfile=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o){const s=o.match(NIP05_REGEX$1);if(!s)return null;const[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"===A&&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_angular_builders_custom_webpack_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_angular_builders_custom_webpack_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(T){throw new Error("invalid base64: "+T.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),A=r.getMessageKeys(o,y);if(!equalBytes(hmac(sha256$1,A.auth,w),C))throw new Error("invalid MAC");const S=chacha20(A.encryption,A.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_angular_builders_custom_webpack_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_angular_builders_custom_webpack_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_angular_builders_custom_webpack_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_angular_builders_custom_webpack_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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o){if(!o)throw new Error("Missing token");o=o.replace(_authorizationScheme,"");const s=utf8Decoder.decode(base64$1.decode(o));if(!s||0===s.length||!s.startsWith("{"))throw new Error("Invalid token");return JSON.parse(s)}),_unpackEventFromToken.apply(this,arguments)}function validateEvent2(o,s,r){return _validateEvent.apply(this,arguments)}function _validateEvent(){return _validateEvent=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o,s,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,A,S){var T=C>=1.5*A;return Math.round(w/A)+" "+S+(T?"s":"")}return ms=function(w,C){C=C||{};var S,T,A=typeof w;if("string"===A&&w.length>0)return function(S){if(!((S=String(S)).length>100)){var T=/^(-?(?:\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(T){var k=parseFloat(T[1]);switch((T[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*k;case"weeks":case"week":case"w":return k*a;case"days":case"day":case"d":return k*i;case"hours":case"hour":case"hrs":case"hr":case"h":return k*r;case"minutes":case"minute":case"mins":case"min":case"m":return k*s;case"seconds":case"second":case"secs":case"sec":case"s":return k*o;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return k;default:return}}}}(w);if("number"===A&&isFinite(w))return C.long?(S=w,(T=Math.abs(S))>=i?y(S,T,i,"day"):T>=r?y(S,T,r,"hour"):T>=s?y(S,T,s,"minute"):T>=o?y(S,T,o,"second"):S+" ms"):function(S){var T=Math.abs(S);return T>=i?Math.round(S/i)+"d":T>=r?Math.round(S/r)+"h":T>=s?Math.round(S/s)+"m":T>=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 A(...S){if(!A.enabled)return;const T=A,k=Number(new Date);T.diff=k-(c||k),T.prev=c,T.curr=k,c=k,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,te)=>{if("%%"===Z)return"%";G++;const we=s.formatters[te];return"function"==typeof we&&(Z=we.call(T,S[G]),S.splice(G,1),G--),Z}),s.formatArgs.call(T,S),(T.log||s.log).apply(T,S)}return A.namespace=a,A.useColors=s.useColors(),A.color=s.selectColor(a),A.extend=r,A.destroy=s.destroy,Object.defineProperty(A,"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(A),A}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:A,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!=A&&A,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(xe){if(!Number.isSafeInteger(xe))throw new Error(`Wrong integer: ${xe}`)}function r(...xe){const ae=(le,ke)=>Ue=>le(ke(Ue));return{encode:Array.from(xe).reverse().reduce((le,ke)=>le?ae(le,ke.encode):ke.encode,void 0),decode:xe.reduce((le,ke)=>le?ae(le,ke.decode):ke.decode,void 0)}}function i(xe){return{encode:ae=>{if(!Array.isArray(ae)||ae.length&&"number"!=typeof ae[0])throw new Error("alphabet.encode input should be an array of numbers");return ae.map(le=>{if(s(le),le<0||le>=xe.length)throw new Error(`Digit index outside alphabet: ${le} (alphabet: ${xe.length})`);return xe[le]})},decode:ae=>{if(!Array.isArray(ae)||ae.length&&"string"!=typeof ae[0])throw new Error("alphabet.decode input should be array of strings");return ae.map(le=>{if("string"!=typeof le)throw new Error(`alphabet.decode: not string element=${le}`);const ke=xe.indexOf(le);if(-1===ke)throw new Error(`Unknown letter: "${le}". Allowed: ${xe}`);return ke})}}}function a(xe=""){if("string"!=typeof xe)throw new Error("join separator should be string");return{encode:ae=>{if(!Array.isArray(ae)||ae.length&&"string"!=typeof ae[0])throw new Error("join.encode input should be array of strings");for(let le of ae)if("string"!=typeof le)throw new Error(`join.encode: non-string input=${le}`);return ae.join(xe)},decode:ae=>{if("string"!=typeof ae)throw new Error("join.decode input should be string");return ae.split(xe)}}}function c(xe,ae="="){if(s(xe),"string"!=typeof ae)throw new Error("padding chr should be string");return{encode(le){if(!Array.isArray(le)||le.length&&"string"!=typeof le[0])throw new Error("padding.encode input should be array of strings");for(let ke of le)if("string"!=typeof ke)throw new Error(`padding.encode: non-string input=${ke}`);for(;le.length*xe%8;)le.push(ae);return le},decode(le){if(!Array.isArray(le)||le.length&&"string"!=typeof le[0])throw new Error("padding.encode input should be array of strings");for(let Ue of le)if("string"!=typeof Ue)throw new Error(`padding.decode: non-string input=${Ue}`);let ke=le.length;if(ke*xe%8)throw new Error("Invalid padding: string should have whole number of bytes");for(;ke>0&&le[ke-1]===ae;ke--)if(!((ke-1)*xe%8))throw new Error("Invalid padding: string has too much padding");return le.slice(0,ke)}}}function y(xe){if("function"!=typeof xe)throw new Error("normalize fn should be function");return{encode:ae=>ae,decode:ae=>xe(ae)}}function w(xe,ae,le){if(ae<2)throw new Error(`convertRadix: wrong from=${ae}, base cannot be less than 2`);if(le<2)throw new Error(`convertRadix: wrong to=${le}, base cannot be less than 2`);if(!Array.isArray(xe))throw new Error("convertRadix: data should be array");if(!xe.length)return[];let ke=0;const Ue=[],st=Array.from(xe);for(st.forEach(ft=>{if(s(ft),ft<0||ft>=ae)throw new Error(`Wrong integer: ${ft}`)});;){let ft=0,_t=!0;for(let ot=ke;otae?C(ae,xe%ae):xe,A=(xe,ae)=>xe+(ae-C(xe,ae));function S(xe,ae,le,ke){if(!Array.isArray(xe))throw new Error("convertRadix2: data should be array");if(ae<=0||ae>32)throw new Error(`convertRadix2: wrong from=${ae}`);if(le<=0||le>32)throw new Error(`convertRadix2: wrong to=${le}`);if(A(ae,le)>32)throw new Error(`convertRadix2: carry overflow from=${ae} to=${le} carryBits=${A(ae,le)}`);let Ue=0,st=0;const ft=2**le-1,_t=[];for(const ot of xe){if(s(ot),ot>=2**ae)throw new Error(`convertRadix2: invalid data word=${ot} from=${ae}`);if(Ue=Ue<32)throw new Error(`convertRadix2: carry overflow pos=${st} from=${ae}`);for(st+=ae;st>=le;st-=le)_t.push((Ue>>st-le&ft)>>>0);Ue&=2**st-1}if(Ue=Ue<=ae)throw new Error("Excess padding");if(!ke&&Ue)throw new Error(`Non-zero padding: ${Ue}`);return ke&&st>0&&_t.push(Ue>>>0),_t}function T(xe){return s(xe),{encode:ae=>{if(!(ae instanceof Uint8Array))throw new Error("radix.encode input should be Uint8Array");return w(Array.from(ae),256,xe)},decode:ae=>{if(!Array.isArray(ae)||ae.length&&"number"!=typeof ae[0])throw new Error("radix.decode input should be array of strings");return Uint8Array.from(w(ae,xe,256))}}}function k(xe,ae=!1){if(s(xe),xe<=0||xe>32)throw new Error("radix2: bits should be in (0..32]");if(A(8,xe)>32||A(xe,8)>32)throw new Error("radix2: carry overflow");return{encode:le=>{if(!(le instanceof Uint8Array))throw new Error("radix2.encode input should be Uint8Array");return S(Array.from(le),8,xe,!ae)},decode:le=>{if(!Array.isArray(le)||le.length&&"number"!=typeof le[0])throw new Error("radix2.decode input should be array of strings");return Uint8Array.from(S(le,xe,8,ae))}}}function R(xe){if("function"!=typeof xe)throw new Error("unsafeWrapper fn should be function");return function(...ae){try{return xe.apply(null,ae)}catch{}}}function G(xe,ae){if(s(xe),"function"!=typeof ae)throw new Error("checksum fn should be function");return{encode(le){if(!(le instanceof Uint8Array))throw new Error("checksum.encode: input should be Uint8Array");const ke=ae(le).slice(0,xe),Ue=new Uint8Array(le.length+xe);return Ue.set(le),Ue.set(ke,le.length),Ue},decode(le){if(!(le instanceof Uint8Array))throw new Error("checksum.decode: input should be Uint8Array");const ke=le.slice(0,-xe),Ue=ae(ke).slice(0,xe),st=le.slice(-xe);for(let ft=0;ftxe.toUpperCase().replace(/O/g,"0").replace(/[IL]/g,"1"))),o.base64=r(k(6),i("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),c(6),a("")),o.base64url=r(k(6),i("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),c(6),a(""));const Z=xe=>r(T(58),i(xe),a(""));o.base58=Z("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),o.base58flickr=Z("123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"),o.base58xrp=Z("rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz");const te=[0,2,3,5,6,7,9,10,11];o.base58xmr={encode(xe){let ae="";for(let le=0;ler(G(4,ae=>xe(xe(ae))),o.base58);const we=r(i("qpzry9x8gf2tvdw0s3jn54khce6mua7l"),a("")),_e=[996825010,642813549,513874426,1027748829,705979059];function pe(xe){const ae=xe>>25;let le=(33554431&xe)<<5;for(let ke=0;ke<_e.length;ke++)1==(ae>>ke&1)&&(le^=_e[ke]);return le}function Te(xe,ae,le=1){const ke=xe.length;let Ue=1;for(let st=0;st126)throw new Error(`Invalid prefix (${xe})`);Ue=pe(Ue)^ft>>5}Ue=pe(Ue);for(let st=0;stot)throw new TypeError(`Wrong string length: ${_t.length} (${_t}). Expected (8..${ot})`);const Yt=_t.toLowerCase();if(_t!==Yt&&_t!==_t.toUpperCase())throw new Error("String must be lowercase or uppercase");const un=(_t=Yt).lastIndexOf("1");if(0===un||-1===un)throw new Error('Letter "1" must be present between prefix and data only');const wn=_t.slice(0,un),$n=_t.slice(un+1);if($n.length<6)throw new Error("Data must be at least 6 characters long");const En=we.decode($n).slice(0,-6),Ze=Te(wn,En,ae);if(!$n.endsWith(Ze))throw new Error(`Invalid checksum in ${_t}: expected "${Ze}"`);return{prefix:wn,words:En}}return{encode:function(_t,ot,Yt=90){if("string"!=typeof _t)throw new Error("bech32.encode prefix should be string, not "+typeof _t);if(!Array.isArray(ot)||ot.length&&"number"!=typeof ot[0])throw new Error("bech32.encode words should be array of numbers, not "+typeof ot);const un=_t.length+7+ot.length;if(!1!==Yt&&un>Yt)throw new TypeError(`Length ${un} exceeds limit ${Yt}`);return`${_t=_t.toLowerCase()}1${we.encode(ot)}${Te(_t,ot,ae)}`},decode:ft,decodeToBytes:function(_t){const{prefix:ot,words:Yt}=ft(_t,!1);return{prefix:ot,words:Yt,bytes:ke(Yt)}},decodeUnsafe:R(ft),fromWords:ke,fromWordsUnsafe:st,toWords:Ue}}o.bech32=Ce("bech32"),o.bech32m=Ce("bech32m"),o.utf8={encode:xe=>(new TextDecoder).decode(xe),decode:xe=>(new TextEncoder).encode(xe)},o.hex=r(k(4),i("0123456789abcdef"),a(""),y(xe=>{if("string"!=typeof xe||xe.length%2)throw new TypeError(`hex.decode: expected string, got ${typeof xe} with length ${xe.length}`);return xe.toLowerCase()}));const Ne={utf8:o.utf8,hex:o.hex,base16:o.base16,base32:o.base32,base64:o.base64,base64url:o.base64url,base58:o.base58,base58xmr:o.base58xmr},Se=`Invalid encoding type. Available types: ${Object.keys(Ne).join(", ")}`;o.bytesToString=(xe,ae)=>{if("string"!=typeof xe||!Ne.hasOwnProperty(xe))throw new TypeError(Se);if(!(ae instanceof Uint8Array))throw new TypeError("bytesToString() expects Uint8Array");return Ne[xe].encode(ae)},o.str=o.bytesToString,o.stringToBytes=(xe,ae)=>{if(!Ne.hasOwnProperty(xe))throw new TypeError(Se);if("string"!=typeof ae)throw new TypeError("stringToBytes() expects string");return Ne[xe].decode(ae)},o.bytes=o.stringToBytes})(lib),BigInt(1e3),BigInt(1e6),BigInt(1e9),BigInt(1e12),BigInt("2100000000000000000"),BigInt(1e11);const TAGCODES={payment_hash:1,payment_secret:16,description:13,payee:19,description_hash:23,expiry:6,min_final_cltv_expiry:24,fallback_address:9,route_hint:3,feature_bits:5,metadata:27};for(let o=0,s=Object.keys(TAGCODES);othis.handleNotice(s))}initiateAuth(o={limit:1}){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){s.debug("Initiating authentication");const 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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const s=()=>{o.updateConnectionStats.connected(),o.ndkRelay.authRequired?(o._status=6,o.ndkRelay.emit("connect"),o.initiateAuth()):(o._status=1,o.ndkRelay.emit("connect"),o.ndkRelay.emit("ready"))},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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(c){o.debug("Relay requested authentication",{havePolicy:!!o.ndkRelay.authPolicy}),o.ndkRelay.authPolicy?7!==o._status&&(o._status=7,yield o.ndkRelay.authPolicy(o.ndkRelay,c),7===o._status&&(o.debug("Authentication policy finished"),o._status=1,o.ndkRelay.emit("ready"))):yield o.ndkRelay.emit("auth",c)});return function(y){return a.apply(this,arguments)}}();try{o.updateConnectionStats.attempt(),o._status=0,o.relay.off("connect",s),o.relay.off("disconnect",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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){(o.includes("oo many")||o.includes("aximum"))&&(s.disconnect(),setTimeout(()=>s.connect(),2e3),s.debug(s.relay.url,"Relay complaining?",o)),s.ndkRelay.emit("notice",s,o)})()}handleReconnection(o=0){if(this.isFlapping())return this.ndkRelay.emit("flapping",this,this._connectionStats),void(this._status=5);const s=this.connectedAt?Math.max(0,6e4-(Date.now()-this.connectedAt)):0;setTimeout(()=>{this._status=4,this.connect().then(()=>{this.debug("Reconnected")}).catch(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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const i=()=>new Promise((C,A)=>{try{r.publishEvent(o,s).then(S=>C(S)).catch(S=>A(S))}catch(S){A(S)}}),a=new Promise((C,A)=>{setTimeout(()=>A(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,A)=>{y=C,w=A,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_angular_builders_custom_webpack_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,A)=>{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),A(S)})});if(!s||o.isEphemeral())return y;const w=new Promise((C,A)=>{c=setTimeout(()=>{r.ndkRelay.debug("Publish timed out",o.rawEvent()),r.ndkRelay.emit("publish:failed",o,"Timeout"),A(new Error("Publish operation timed out"))},s)});return Promise.race([y,w])})()}auth(o){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return s.ndkRelay.connectivity.relay.auth(o.rawEvent())})()}};function calculateGroupableId(o){const s=[];for(const 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(A=>c.add(A)):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_angular_builders_custom_webpack_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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return o.connectivity.connect()})()}disconnect(){3!==this.status&&this.connectivity.disconnect()}subscribe(o,s){this.subs.subscribe(o,s)}publish(o,s=2500){var r=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return r.publisher.publish(o,s)})()}auth(o){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return s.publisher.auth(o)})()}scoreSlowerEvent(o){}tagReference(o){const s=["r",this.url];return o&&s.push(o),s}referenceTags(){return[["r",this.url]]}activeSubscriptions(){return this.subs.executedFilters()}},PublishError=class extends Error{errors;constructor(o,s){super(o),this.errors=s}},NDKRelaySet=class J2{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 J2(new Set(i),r)}publish(s,r){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const a=new Set,c=new Map,y=s.isEphemeral(),w=Array.from(i.relays).map(C=>new Promise(A=>{C.publish(s,r).then(()=>{a.add(C),A()}).catch(S=>{y||(c.set(C,S),i.debug("error publishing to relay",{relay:C.url,err:S})),A()})}));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(A=>w.includes(A));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_angular_builders_custom_webpack_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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const y=yield c.generateZapRequest(o,s,r,i);if(!y)return null;const{event:w,zapEndpoint:C}=y;if(!w)throw new Error("No zap request event found");let A;yield w.sign(a);try{A=yield c.getInvoice(w,o,C)}catch(S){throw new Error("Failed to get invoice: "+S)}return A})()}getInvoice(o,s,r){return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return(yield(yield fetch(`${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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const y=yield c.getZapEndpoint();if(!y)throw new Error("No zap endpoint found");if(!c.zappedEvent&&!c.zappedUser)throw new Error("No zapped event or user found");const w=nip57_exports.makeZapRequest({profile:c.zappedUser.pubkey,event:null,amount:o,comment:s||"",relays:i??c.relays()});if(c.zappedEvent){const A=c.zappedEvent.referenceTags();w.tags.push(...A)}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_angular_builders_custom_webpack_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 A=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(S){i(["e",w,yield maybeGetEventRelayUrl(c),"mention"]),S()});return function(S){return A.apply(this,arguments)}}()));break;case"nevent":r.push(new Promise(function(){var A=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(S){let{id:T,relays:k,author:R}=w;k&&0!==k.length||(k=[yield maybeGetEventRelayUrl(c)]),i(["e",T,k[0],"mention"]),R&&i(["p",R]),S()});return function(S){return A.apply(this,arguments)}}()));break;case"naddr":r.push(new Promise(function(){var A=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(S){const T=[w.kind,w.pubkey,w.identifier].join(":");let k=w.relays??[];0===k.length&&(k=[yield maybeGetEventRelayUrl(c)]),i(["a",T,k[0],"mention"]),i(["p",w.pubkey]),S()});return function(S){return A.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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o){return""})).apply(this,arguments)}function isReplaceable(){if(void 0===this.kind)throw new Error("Kind not set");return this.kind>=1e4&&this.kind<2e4}function isEphemeral(){if(void 0===this.kind)throw new Error("Kind not set");return this.kind>=2e4&&this.kind<3e4}function isParamReplaceable(){if(void 0===this.kind)throw new Error("Kind not set");return this.kind>=3e4&&this.kind<4e4}function encrypt(o,s){return _encrypt.apply(this,arguments)}function _encrypt(){return _encrypt=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o,s){if(!this.ndk)throw new Error("No NDK instance found!");if(s||(yield this.ndk.assertSigner(),s=this.ndk.signer),!o){const 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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o,s){if(!this.ndk)throw new Error("No NDK instance found!");s||(yield this.ndk.assertSigner(),s=this.ndk.signer),o||(o=this.author),this.content=yield s?.decrypt(o,this.content)}),_decrypt.apply(this,arguments)}function encode(){return this.isParamReplaceable()?nip19_exports.naddrEncode({kind:this.kind,pubkey:this.pubkey,identifier:this.replaceableDTag(),relays:this.relay?[this.relay.url]:[]}):this.relay?nip19_exports.neventEncode({id:this.tagId(),relays:[this.relay.url],author:this.pubkey}):nip19_exports.noteEncode(this.tagId())}function repost(){return _repost.apply(this,arguments)}function _repost(){return _repost=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o=!0,s){if(!s&&o){if(!this.ndk)throw new Error("No NDK instance found");this.ndk.assertSigner(),s=this.ndk.signer}const 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 zv 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 zv){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_angular_builders_custom_webpack_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_angular_builders_custom_webpack_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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(i.sig||(yield i.sign()),!i.ndk)throw new Error("NDKEvent must be associated with an NDK instance to publish");return s||(s=i.ndk.devWriteRelaySet||calculateRelaySetFromEvent(i.ndk)),s.publish(i,r)})()}generateTags(){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){let 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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!y.ndk)throw new Error("No NDK instance found");c||y.ndk.assertSigner();const w=new Zap({ndk:y.ndk,zappedEvent:y,zappedUser:a}),C=Array.from(y.ndk.pool.relays.keys());return yield w.createZapRequest(s,r,i,C,c)})()}delete(s){var r=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!r.ndk)throw new Error("No NDK instance found");r.ndk.assertSigner();const i=new zv(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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!i.ndk)throw new Error("No NDK instance found");i.ndk.assertSigner();const a=new zv(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 eD extends NDKEvent{constructor(s,r){super(s,r),this.kind??=10002}static from(s){return new eD(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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){let s;o.shouldQueryCache()&&(s=o.startWithCache(),o.shouldWaitForCache()&&(yield s,queryFullyFilled(o)))?o.emit("eose",o):o.shouldQueryRelays()?o.startWithRelays():o.emit("eose",o)})()}stop(){this.emit("close",this),this.removeAllListeners()}hasAuthorsFilter(){return this.filters.some(o=>o.authors?.length)}startWithCache(){var o=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(o.ndk.cacheAdapter?.query){const s=o.ndk.cacheAdapter.query(o);o.ndk.cacheAdapter.locking&&(yield s)}})()}startWithRelays(){if(this.relaySet){this.relayFilters=new Map;for(const o of this.relaySet.relays)this.relayFilters.set(o.url,this.filters)}else this.relayFilters=calculateRelaySetsFromFilters(this.ndk,this.filters);if(this.relayFilters&&0!==this.relayFilters.size)for(const[o,s]of this.relayFilters)this.pool.getRelay(o).subscribe(this,s);else this.debug("No relays to subscribe to",this.ndk.explicitRelayUrls)}eventReceived(o,s,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_angular_builders_custom_webpack_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 tD extends NDKEvent{_encryptedTags;encryptedTagsLength;constructor(s,r){super(s,r),this.kind??=30001}static from(s){return new tD(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_angular_builders_custom_webpack_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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!a.ndk)throw new Error("NDK instance not set");if(!a.ndk.signer)throw new Error("NDK signer not set");let c;if(s instanceof NDKEvent)c=s.referenceTags();else if(s instanceof NDKUser)c=s.referenceTags();else if(s instanceof NDKRelay)c=s.referenceTags();else{if(!Array.isArray(s))throw new Error("Invalid object type");c=[s]}if(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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!i.ndk)throw new Error("NDK instance not set");if(!i.ndk.signer)throw new Error("NDK signer not set");if(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_angular_builders_custom_webpack_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_angular_builders_custom_webpack_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:A,nip46:S}=parseNIP05Result(yield w.json()),T=C[c];return T?{pubkey:T,relays:A?.[T],nip46:S?.[T]}: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_angular_builders_custom_webpack_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_angular_builders_custom_webpack_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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!s.ndk)throw new Error("NDK not set");const 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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!s.ndk)throw new Error("NDK not set");const 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 A=C;A.write&&y.add(w),A.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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!s.ndk)throw new Error("No NDK instance found");if(!s.profile)throw new Error("No profile available");s.ndk.assertSigner(),yield new NDKEvent(s.ndk,{kind:0,content:serializeProfile(s.profile)}).publish()})()}follow(s,r,i=3){var a=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!a.ndk)throw new Error("No NDK instance found");if(a.ndk.assertSigner(),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_angular_builders_custom_webpack_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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!c.ndk)throw new Error("No NDK instance found");a||c.ndk.assertSigner();const y=new Zap({ndk:c.ndk,zappedUser:c}),w=Array.from(c.ndk.pool.relays.keys());return yield y.createZapRequest(s,r,i,w,a)})()}},NDKPrivateKeySigner=class nD{_user;privateKey;constructor(s){s&&(this.privateKey=s,this._user=new NDKUser({hexpubkey:getPublicKey(this.privateKey)}))}static generate(){const s=generatePrivateKey();return new nD(s)}blockUntilReady(){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!s._user)throw new Error("NDKUser not initialized");return s._user})()}user(){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return yield s.blockUntilReady(),s._user})()}sign(s){var r=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!i.privateKey)throw Error("Attempted to encrypt without a private key");const a=s.hexpubkey;return yield nip04_exports.encrypt(i.privateKey,a,r)})()}decrypt(s,r){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!i.privateKey)throw Error("Attempted to decrypt without a private key");const a=s.hexpubkey;return yield nip04_exports.decrypt(i.privateKey,a,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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(a){try{const c=yield s.parseEvent(a);s.emit(c.method?"request":`response-${c.id}`,c)}catch(c){s.debug("error parsing event",c,a.rawEvent())}});return function(a){return i.apply(this,arguments)}}()),new Promise((i,a)=>{r.on("eose",()=>i(r))})}parseEvent(o){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const 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:A}=a;return y?{id:c,pubkey:o.pubkey,method:y,params:w,event:o}:{id:c,result:C,error:A,event:o}})()}sendResponse(o,s,r,i=24133,a){var c=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const y={id:o,result:r};a&&(y.error=a);const w=yield c.signer.user(),C=c.ndk.getUser({hexpubkey:s}),A=new NDKEvent(c.ndk,{kind:i,content:JSON.stringify(y),tags:[["p",s]],pubkey:w.hexpubkey});A.content=yield c.signer.encrypt(C,A.content),yield A.sign(c.signer),yield A.publish()})()}sendRequest(o,s,r=[],i=24133,a){var c=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const y=Math.random().toString(36).substring(7),w=yield c.signer.user(),C=c.ndk.getUser({hexpubkey:o}),A={id:y,method:s,params:r},S=new Promise(k=>{const R=G=>{"auth_url"===G.result?(c.once(`response-${y}`,R),c.emit("authUrl",G.error)):a&&a(G)};c.once(`response-${y}`,R)}),T=new NDKEvent(c.ndk,{kind:i,content:JSON.stringify(A),tags:[["p",o]],pubkey:w.pubkey});return T.content=yield c.signer.encrypt(C,T.content),yield T.sign(c.signer),c.debug(`sending ${s} request to`,o),yield T.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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return o.remoteUser})()}blockUntilReady(){var o=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const s=yield o.localSigner.user(),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_angular_builders_custom_webpack_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_angular_builders_custom_webpack_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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return s.debug("asking for a signature"),new Promise((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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){i.debug("asking to create an account");const a=[];return o&&a.push(o),s&&a.push(s),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_angular_builders_custom_webpack_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_angular_builders_custom_webpack_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_angular_builders_custom_webpack_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_angular_builders_custom_webpack_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_angular_builders_custom_webpack_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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const i="POST",{url:a,headers:c}=yield 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_angular_builders_custom_webpack_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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){o.validateHttpFetch();const s=yield o.ndk.httpFetch(o.url);if(200!==s.status)throw new Error(`Failed to fetch NIP96 spec from ${o.url}`);const 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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const a=new NDKEvent(i.ndk,{kind:27235,tags:[["u",o],["method",s]]});if(["POST","PUT","PATCH"].includes(s)){const c=yield i.calculateSha256(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_angular_builders_custom_webpack_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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(i,a){s.relayAuthDefaultPolicy&&(yield s.relayAuthDefaultPolicy(i,a))});return function(i,a){return 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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(A){const S=yield A.relayList();if(S){s.debug("Connecting to user relays",{npub:A.npub,relays:S.relays});for(const T of S.relays){let k=s.pool.relays.get(T);k||(k=new NDKRelay(T),s.pool.addRelay(k))}}else s.debug("No relay list found for user",{npub:A.npub})});return function(S){return C.apply(this,arguments)}}(),a=function(){var C=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(A){const S=yield s.fetchEvents([{kinds:[1e4],authors:[A.pubkey]},{kinds:[3e4],authors:[A.pubkey],"#d":["mute"],limit:1}]);if(S)for(const T of S){const k=lists_default.from(T);for(const R of k.items)s.mutedIds.set(R[1],R[0])}else s.debug("No mute list found for user",{npub:A.npub})});return function(S){return C.apply(this,arguments)}}(),c=[];this.autoConnectUserRelays&&c.push(i),this.autoFetchUserMutelist&&c.push(a);const y=function(){var C=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(A){for(const S of c)yield S(A)});return function(S){return C.apply(this,arguments)}}(),w=this.outboxPool||this.pool;w.connectedRelays.length>0?y(o):(this.debug("Waiting for connection to main relays"),w.once("relay:ready",C=>{this.debug("New relay ready",C?.url),y(o)}))}else o||(this.mutedIds=new Map)}get signer(){return this._signer}set signer(o){this._signer=o,this.emit("signer:ready",o),o?.user().then(s=>{s.ndk=this,this.activeUser=s})}connect(o){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){s._signer&&s.autoConnectUserRelays&&(s.debug("Attempting to connect to user relays specified by signer"),s._signer.relays)&&(yield s._signer.relays()).forEach(i=>s.pool.addRelay(i));const 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_angular_builders_custom_webpack_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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return i.debug("Deprecated: Use `event.publish()` instead"),o.publish(s,r)})()}fetchEvent(o,s,r){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){let a,c;if(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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return new Promise(a=>{const c=new Map,y=i.subscribe(o,{...s||{},closeOnEose:!0},r,!1),w=C=>{const A=C.deduplicationKey(),S=c.get(A);S&&(C=dedup(S,C)),C.ndk=i,c.set(A,C)};y.on("event",w),y.on("event:dup",w),y.on("eose",()=>{a(new Set(c.values()))}),y.start()})})()}assertSigner(){if(!this.signer)throw this.emit("signerRequired"),new Error("Signer required")}getNip96(o){return new Nip96(o,this)}};const LOCAL_STORE_KEY="__nostrlogin_nip46",LOGGED_IN_ACCOUNTS="__nostrlogin_accounts",RECENT_ACCOUNTS="__nostrlogin_recent",OUTBOX_RELAYS$1=["wss://purplepag.es","wss://relay.nos.social","wss://user.kindpag.es","wss://relay.damus.io","wss://nos.lol"],DEFAULT_SIGNUP_RELAYS=["wss://relay.damus.io/","wss://nos.lol/","wss://relay.primal.net/"],localStorageSetItem=(o,s)=>{localStorage.setItem(o,s)},localStorageGetItem=o=>{const s=window.localStorage.getItem(o);if(s)try{return JSON.parse(s)}catch{}return null},localStorageRemoveItem=o=>{localStorage.removeItem(o)},fetchProfile=function(){var o=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(s,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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(s,r,i,a){const c={name:s.name},y=new NDKEvent(r,{kind:0,created_at:Math.floor(Date.now()/1e3),pubkey:s.pubkey,content:JSON.stringify(c),tags:[]});window.location.hostname&&y.tags.push(["client",window.location.hostname]);const w=new NDKEvent(r,{kind:10002,created_at:Math.floor(Date.now()/1e3),pubkey:s.pubkey,content:"",tags:[]}),C=(a||"").split(",").map(A=>A.trim()).filter(A=>A.startsWith("ws"));C.length||C.push(...DEFAULT_SIGNUP_RELAYS);for(const A of C)w.tags.push(["r",A]);yield y.sign(i),console.log("signed profile",y),yield w.sign(i),console.log("signed relays",w),yield y.publish(NDKRelaySet.fromRelayUrls(OUTBOX_RELAYS$1,r)),console.log("published profile",y),yield w.publish(NDKRelaySet.fromRelayUrls(OUTBOX_RELAYS$1,r)),console.log("published relays",w)});return function(r,i,a,c){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_angular_builders_custom_webpack_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),A=yield C.json(),T=A.nip46[A.names._],k=yield fetch(w),R=(yield k.json()).names[i];if(!T.length)throw new Error("Bunker relay not provided");return`bunker://${R}?relay=${T[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_angular_builders_custom_webpack_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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!s||!s.includes("@"))return;const[c,y]=s.toLocaleLowerCase().split("@");if(!c)return;if(!new RegExp(/^[\w-.]+@([\w-]+\.)+[\w-]{2,8}$/g).test(s))return void(i="Invalid name");if(!y)return void(i="Select service");const w=`https://${y}/.well-known/nostr.json?name=${c.toLowerCase()}`;try{const C=yield fetch(w),A=yield C.json();if(A.names[c])return void(a=A.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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return document.location.origin+"/favicon.ico"});return function(){return o.apply(this,arguments)}}();class NostrRpc extends NDKNostrRpc{pubkey;_ndk;_signer;requests=new Set;sub;_useNip44=!1;constructor(s,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_angular_builders_custom_webpack_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_angular_builders_custom_webpack_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:A,result:S,error:T}=y;return C?{id:w,pubkey:s.pubkey,method:C,params:A,event:s}:{id:w,result:S,error:T,event:s}})()}parseNostrConnectReply(s,r){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const a=new NDKEvent(i._ndk,s),c=yield i.parseEvent(a);if(console.log("nostr connect parsedEvent",c),c.method)throw new Error("Bad nostr connect reply");if(c.result===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_angular_builders_custom_webpack_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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(C){try{const A=yield r.parseEvent(C);if(!A.method){const S=A;if("auth_url"===S.result)return;"ack"===S.result||S.result===s?c(C.pubkey):y(S.error)}}catch(A){console.log("error parsing event",A,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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return new Promise((a,c)=>{i.sendRequest(s.pubkey,"connect",[s.pubkey,s.token||"",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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const w=y.getId();y.setResponseHandler(w,c),yield(yield y.createRequestEvent(w,s,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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){y.requests.add(s);const w=yield y._signer.user(),C=y._ndk.getUser({pubkey:r}),S=new NDKEvent(y._ndk,{kind:c,content:JSON.stringify({id:s,method:i,params:a}),tags:[["p",r]],pubkey:w.pubkey}),T=y._useNip44&&"create_account"!==i?y._signer.encryptNip44:y._signer.encrypt;return S.content=yield T.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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return i.peerOrigin?new NDKSubscription(i._ndk,{},{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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(a){if(console.log("iframe-nip46 got response",a.data),"string"==typeof a.data&&a.data.startsWith("errorNoKey")){const c=a.data.split(":")[1],{id:y="",pubkey:w=""}=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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const w=y.getId(),C=yield y.createRequestEvent(w,s,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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(w){const C=new URL(r).hostname,A=new URL(w.origin).hostname;(A===C||A.endsWith("."+C))&&Array.isArray(w.data)&&w.data.length&&i.messages.includes(w.data[0])&&(console.log(new Date,"got ready message from",w.origin,w.data),window.removeEventListener("message",c),a(w.data))});return function(C){return y.apply(this,arguments)}}();window.addEventListener("message",c)})}wait(){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){console.log(new Date,"waiting for",s.messages);const 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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){s.banner&&(s.iframeReady&&(yield s.iframeReady.wait(),s.iframeReady=void 0),s.banner.isLoading=!1,s.banner.notify={mode:""})})()}onUpdateAccounts(s){this.banner&&(this.banner.accounts=s)}onDarkMode(s){this.banner&&(this.banner.darkMode=s)}launchAuthBanner(s){var 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_angular_builders_custom_webpack_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 A=0;Adecoder.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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(s.signerPromise)try{yield s.signerPromise}catch{}if(s.readyPromise)try{yield s.readyPromise}catch{}})()}nostrConnect(s,{domain:r="",link:i="",iframeUrl:a="",importConnect:c=!1}={}){var y=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const w={authMethod:"connect",pubkey:"",sk:y.nostrConnectKey,domain: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_angular_builders_custom_webpack_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_angular_builders_custom_webpack_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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const i=generatePrivateKey(),a={pubkey:getPublicKey(i),sk:i,name:s,authMethod:"local"};console.log(`localSignup name: ${s}`),yield r.setLocal(a,!0)})()}setLocal(s,r){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){i.releaseSigner(),i.localSigner=new PrivateKeySigner(s.sk),r&&(yield createProfile(s,i.profileNdk,i.localSigner,i.params.optionsModal.signupRelays)),i.onAuth("login",s)})()}prepareImportUrl(s){if("otp"===this.params.userInfo?.authMethod)return s+"&import=true";if(!this.localSigner||"local"!==this.params.userInfo?.authMethod)throw new Error("Most be local keys");return s+"#import="+nip19_exports.nsecEncode(this.localSigner.privateKey)}importAndConnect(s){var r=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const{relay:i,domain:a,link:c,iframeUrl:y}=s;if(!a)throw new Error("Domain required");const w=yield 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_angular_builders_custom_webpack_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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const[i,a]=s.split("@"),c=yield getBunkerUrl(`_@${a}`,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 A=yield new Promise(S=>{r.signer.rpc.sendRequest(y.pubkey,"create_account",C,void 0,S)});if(console.log("create_account pubkey",A),"error"===A.result)throw new Error(A.error);return{bunkerUrl:`bunker://${A.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_angular_builders_custom_webpack_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_angular_builders_custom_webpack_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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(s.readyCallback)throw new Error("Already started");s.readyPromise=new Promise(r=>s.readyCallback=r)})()}endAuth(){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(console.log("endAuth",s.params.userInfo),s.params.userInfo&&s.params.userInfo.iframeUrl){const{iframe: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_angular_builders_custom_webpack_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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(c.signerPromise)try{yield c.signerPromise}catch{}console.log("initSigner info",s);const y=s.iframeUrl?new URL(s.iframeUrl).origin:void 0;return y&&(c.starterReady=new ReadyListener(["starterDone","starterError"],y)),c.emit("onIframeUrl",s.iframeUrl),c.signerPromise=new Promise(function(){var w=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(C,A){try{if(s.relays&&!s.iframeUrl)for(const R of s.relays)c.ndk.addExplicitRelay(R,void 0);yield c.ndk.connect();const S=getPublicKey(s.sk),T=new PrivateKeySigner(s.sk);c.signer=new NDKNip46Signer(c.ndk,s.pubkey,T);const k=new IframeNostrRpc(c.ndk,S,T,y);if(k.setUseNip44(!0),c.signer.rpc=k,k.on(`iframeRestart-${s.pubkey}`,(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const R=s.iframeUrl+(s.iframeUrl.includes("?")?"&":"?")+"pubkey="+s.pubkey+"&rebind="+S;c.emit("iframeRestart",{pubkey:s.pubkey,iframeUrl:R})})),r||k.on("authUrl",R=>{console.log("nostr login auth url",R),c.emit("onAuthUrl",{url:R,iframeUrl:s.iframeUrl,eventToAddAccount:a})}),r){const R=yield c.listen(s,k);c.signer.remotePubkey=R,c.signer.remoteUser=new NDKUser({pubkey:R}),s.pubkey=R,C(R)}else i&&(yield k.connect(s,c.params.optionsModal.perms)),C(void 0)}catch(S){console.log("initSigner failure",S),c.signer=null,A(S)}});return function(C,A){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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){try{const C=bunkerUrlToInfo(i,a);if(isBunkerUrl(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 A=!!w.params.userInfo;console.log("authNip46",s,C),yield w.initSigner(C,{connect:!0,eventToAddAccount:A}),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_angular_builders_custom_webpack_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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return new Promise((c,y)=>{a.signer.rpc.sendRequest(a.signer.remotePubkey,s,[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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return i.localSigner?i.localSigner.encrypt(new NDKUser({pubkey:s}),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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return i.localSigner?i.localSigner.decrypt(new NDKUser({pubkey:s}),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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return i.localSigner?i.nip44Codec.encrypt(i.localSigner.privateKey,s,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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return i.localSigner?i.nip44Codec.decrypt(i.localSigner.privateKey,s,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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(s.launcherPromise){try{yield s.launcherPromise}catch{}s.launcherPromise=void 0}})()}launch(s){var r=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){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 we=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(_e){r.modal&&(r.modal.isLoading=!1),yield r.authNostrService.endAuth(),i.close(),r.modal=null,_e()});return function(pe){return we.apply(this,arguments)}}(),C=function(){var we=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(_e,pe){r.modal&&(r.modal.isLoading=!0);try{pe&&!pe.start||(yield r.authNostrService.startAuth()),yield _e(),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 we.apply(this,arguments)}}(),A=function(){var we=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(_e,pe){yield C((0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const Te=yield getBunkerUrl(_e,r.params.optionsModal);yield r.authNostrService.authNip46("login",{name:_e,bunkerUrl:Te,domain:pe})}))});return function(pe,Te){return we.apply(this,arguments)}}(),S=function(){var we=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(_e){yield C((0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const{bunkerUrl:pe,sk:Te}=yield r.authNostrService.createAccount(_e);yield r.authNostrService.authNip46("signup",{name:_e,bunkerUrl:pe,sk:Te})}))});return function(pe){return we.apply(this,arguments)}}(),T=function(){var we=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){try{yield navigator.clipboard.writeText(r.authNostrService.exportKeys()),localStorageSetItem("backupKey","true")}catch(_e){console.error("Failed to copy to clipboard: ",_e)}});return function(){return we.apply(this,arguments)}}(),k=function(){var we=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(_e){yield C((0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const{iframeUrl:pe}=_e,Te=r.authNostrService.prepareImportUrl(_e.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(_e)}))});return function(pe){return we.apply(this,arguments)}}(),R=function(){var we=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(_e){yield C((0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const{relay:pe,domain:Te,link:Ce,iframeUrl:Ne}=_e||{};console.log("nostrConnect",_e,pe,Te,Ce,Ne),r.modal&&(Ne&&(r.modal.authUrl=Ce,r.modal.iframeUrl=Ne,r.modal.isLoading=!1,console.log("nostrconnect authUrl",r.modal.authUrl,r.modal.iframeUrl)),_e||(r.modal.isLoading=!1)),yield r.authNostrService.nostrConnect(pe,{domain:Te,link:Ce,iframeUrl:Ne})}))});return function(pe){return we.apply(this,arguments)}}(),G=function(){var we=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(_e){yield C((0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!_e)throw new Error("Please enter some nickname");yield r.authNostrService.localSignup(_e)}))});return function(pe){return we.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",we=>{A(we.detail)}),r.modal.addEventListener("nlSignup",we=>{S(we.detail)}),r.modal.addEventListener("nlLocalSignup",we=>{G(we.detail)}),r.modal.addEventListener("nlImportAccount",we=>{k(we.detail)}),r.modal.addEventListener("nlExportKeys",we=>{T()}),r.modal.addEventListener("handleLogoutBanner",()=>{r.emit("onLogoutBanner")}),r.modal.addEventListener("nlNostrConnect",we=>{R(we.detail)}),r.modal.addEventListener("nlNostrConnectDefault",()=>{R()}),r.modal.addEventListener("nlSwitchAccount",we=>{r.emit("onSwitchAccount",we.detail),setTimeout(()=>i.close(),300)}),r.modal.addEventListener("nlLoginRecentAccount",function(){var we=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(_e){const pe=_e.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");A(Te,pe.domain)}});return function(_e){return we.apply(this,arguments)}}()),r.modal.addEventListener("nlRemoveRecent",we=>{localStorageRemoveRecent(we.detail),r.emit("updateAccounts")});const Z=function(){var we=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(_e){let pe="";if(_e.includes("@")){const{error:Te,pubkey:Ce}=yield checkNip05(_e);if(!Ce)throw new Error(Te);pe=Ce}else if(_e.startsWith("npub")){const{type:Te,data:Ce}=nip19_exports.decode(_e);if("npub"!==Te)throw new Error("Bad npub");pe=Ce}else 64===_e.trim().length&&(pe=_e.trim(),nip19_exports.npubEncode(pe));return pe});return function(pe){return we.apply(this,arguments)}}();r.modal.addEventListener("nlLoginReadOnly",function(){var we=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(_e){yield C((0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const pe=_e.detail,Te=yield Z(pe);r.authNostrService.setReadOnly(Te)}))});return function(_e){return we.apply(this,arguments)}}()),r.modal.addEventListener("nlLoginExtension",(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!r.extensionService.hasExtension())throw new Error("No extension");yield C((0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){r.modal&&(r.modal.isLoadingExtension=!0,yield r.extensionService.setExtension(),r.modal.isLoadingExtension=!1)}))})),r.modal.addEventListener("nlLoginOTPUser",function(){var we=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(_e){yield C((0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!r.modal)return;const pe=_e.detail,Te=yield Z(pe),Ce=r.opt.otpRequestUrl+(r.opt.otpRequestUrl.includes("?")?"&":"?")+"pubkey="+Te,Ne=yield fetch(Ce);if(200!==Ne.status)throw console.warn("nostr-login: bad otp reply",Ne),new Error("Failed to send DM");r.modal.isOTP=!0,a=Te,r.modal.isLoading=!1}),{start:!0})});return function(_e){return we.apply(this,arguments)}}()),r.modal.addEventListener("nlLoginOTPCode",function(){var we=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(_e){yield C((0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!r.modal)return;const pe=_e.detail,Te=r.opt.otpReplyUrl+(r.opt.otpRequestUrl.includes("?")?"&":"?")+"pubkey="+a+"&code="+pe,Ce=yield fetch(Te);if(200!==Ce.status)throw console.warn("nostr-login: bad otp reply",Ce),new Error("Invalid code");const Ne=yield Ce.text();r.authNostrService.setOTP(a,Ne),r.modal.isOTP=!1}),{end:!0})});return function(_e){return we.apply(this,arguments)}}()),r.modal.addEventListener("nlCheckSignup",function(){var we=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(_e){const{available:pe,taken:Te,error:Ce}=yield checkNip05(_e.detail);r.modal&&(r.modal.error=String(Ce),!Ce&&Te&&(r.modal.error="Already taken"),r.modal.signupNameIsAvailable=pe)});return function(_e){return we.apply(this,arguments)}}()),r.modal.addEventListener("nlCheckLogin",function(){var we=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(_e){const{available:pe,taken:Te,error:Ce}=yield checkNip05(_e.detail);r.modal&&(r.modal.error=String(Ce),pe&&(r.modal.error="Name not found"),r.modal.loginIsGood=Te)});return function(_e){return we.apply(this,arguments)}}());const te=()=>{r.modal&&(r.modal.isLoading=!1),i.close(),y(new Error("Cancelled"))};r.modal.addEventListener("stopFetchHandler",te),r.modal.addEventListener("nlCloseModal",te),r.modal.addEventListener("nlChangeDarkMode",we=>{setDarkMode(we.detail),document.dispatchEvent(new CustomEvent("nlDarkMode",{detail:we.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_angular_builders_custom_webpack_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_angular_builders_custom_webpack_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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){i.nostrExtension=window.nostr,window.nostr=s,"extension"===i.params.userInfo?.authMethod&&(yield i.trySetExtensionForPubkey(i.params.userInfo.pubkey)),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_angular_builders_custom_webpack_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_angular_builders_custom_webpack_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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return s.setExtensionReadPubkey()})()}unsetExtension(s){window.nostr===this.nostrExtension&&(window.nostr=s)}getExtension(){return this.nostrExtension}hasExtension(){return!!this.nostrExtension}}class NostrParams{userInfo;optionsModal;constructor(){this.userInfo=null,this.optionsModal={theme:"default",startScreen:"welcome",devOverrideBunkerOrigin:""}}}class Popup{popup=null;constructor(){}openPopup(s){if((!this.popup||this.popup.closed)&&(this.popup=window.open(s,"_blank","width=400,height=700"),console.log("popup",this.popup),!this.popup))throw new Error("Popup blocked. Try again, please!")}closePopup(){try{this.popup?.close(),this.popup=null}catch{}}}const CALL_TIMEOUT=5e3;class ProcessManager extends lib$1.EventEmitter{callCount=0;callTimer;constructor(){super()}onAuthUrl(){this.callTimer&&clearTimeout(this.callTimer)}onIframeUrl(){this.callTimer&&clearTimeout(this.callTimer)}wait(s){var r=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){let i,a;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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){yield s.authNostrService.waitReady(),yield s.modalManager.waitReady()}),function(){return i.apply(this,arguments)}),getUserInfo:()=>this.params.userInfo,getSigner:()=>{if("readOnly"===this.params.userInfo.authMethod)throw new Error("Read only");return"extension"===this.params.userInfo.authMethod?this.extensionService.getExtension():this.authNostrService},launch:()=>this.launch(),wait:i=>this.processManager.wait(i)};var i;this.nostr=new Nostr(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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(a){s.switchAccount(a)});return function(a){return i.apply(this,arguments)}}()),this.modalManager.on("onLogoutBanner",function(){var i=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(a){logout()});return function(a){return i.apply(this,arguments)}}()),this.bannerManager.on("onConfirmLogout",(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){console.log(4),s.launch("confirm-logout")})),this.modalManager.on("updateAccounts",()=>{this.updateAccounts()}),this.bannerManager.on("logout",()=>{logout()}),this.bannerManager.on("onAuthUrlClick",i=>{this.openPopup(i)}),this.bannerManager.on("onSwitchAccount",function(){var i=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(a){s.switchAccount(a)});return function(a){return i.apply(this,arguments)}}()),this.bannerManager.on("import",()=>{this.launch("import")}),this.extensionService.on("extensionLogin",i=>{this.authNostrService.setExtension(i)}),this.extensionService.on("extensionLogout",()=>{logout()}),this.bannerManager.on("launch",i=>{this.launch(i)})}openPopup(s){this.popupManager.openPopup(s)}switchAccount(s){var r=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(console.log("nostr login switch to info",s),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_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(i){s.extensionService.startCheckingExtension(s.nostr),window.nostr=s.nostr,s.modalManager.connectModals(i),s.bannerManager.launchAuthBanner(i),i&&(s.params.optionsModal={...i});try{const a=localStorageGetCurrent();if(a){if(!a.pubkey)throw new Error("Bad stored info");yield s.switchAccount(a)}}catch(a){console.log("nostr login init error",a),yield logout()}s.updateAccounts()}),function(i){return r.apply(this,arguments)}})();logout=(()=>{var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){s.extensionService.unsetExtension(s.nostr),yield s.authNostrService.logout()})})();setDarkMode=s=>{localStorageSetItem("nl-dark-mode",`${s}`),this.bannerManager.onDarkMode(s),this.modalManager.onDarkMode(s)}}const initializer=new NostrLoginInitializer,{init,launch,logout,setDarkMode}=initializer;document.addEventListener("nlLogout",logout),document.addEventListener("nlLaunch",o=>{launch(o.detail||"")}),document.addEventListener("nlDarkMode",o=>{setDarkMode(!!o.detail)})},720:(o,s,r)=>{"use strict";r.d(s,{lo:()=>Wc,pC:()=>la,Bq:()=>tl,dq:()=>dl,lG:()=>$c,sh:()=>Nl,Qe:()=>zc});var i={};r.r(i),r.d(i,{OG:()=>V,My:()=>pn,Ph:()=>an,lX:()=>Yn,Id:()=>Ot,fg:()=>mt,qj:()=>Gt,aT:()=>en,lq:()=>Sn,z:()=>Xt,Q5:()=>Ln});var a=r(3014);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 A(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 R="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0,G=b=>b instanceof Uint8Array,we=b=>new DataView(b.buffer,b.byteOffset,b.byteLength),_e=(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 ke(b){if("string"==typeof b&&(b=function le(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 ot(b){const x=z=>b().update(ke(z)).digest(),M=b();return x.outputLen=M.outputLen,x.blockLen=M.blockLen,x.create=()=>b(),x}function wn(b=32){if(R&&"function"==typeof R.getRandomValues)return R.getRandomValues(new Uint8Array(b));throw new Error("crypto.getRandomValues must be defined")}class En 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=we(this.buffer)}update(x){A(this);const{view:M,buffer:z,blockLen:J}=this,ye=(x=ke(x)).length;for(let Le=0;LeJ-Le&&(this.process(z,0),Le=0);for(let Ht=Le;Ht>J&ye),je=Number(M&ye),Ct=z?0:4;b.setUint32(x+(z?4:0),Le,z),b.setUint32(x+Ct,je,z)})(z,J-8,BigInt(8*this.length),ye),this.process(z,0);const je=we(x),it=this.outputLen;if(it%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const Ct=it/4,Kt=this.get();if(Ct>Kt.length)throw new Error("_sha2: outputLen bigger than state");for(let Ht=0;Htb&x^~b&M,wt=(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]),Be=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Ut=new Uint32Array(64);class Ke extends En{constructor(){super(64,32,8,!1),this.A=0|Be[0],this.B=0|Be[1],this.C=0|Be[2],this.D=0|Be[3],this.E=0|Be[4],this.F=0|Be[5],this.G=0|Be[6],this.H=0|Be[7]}get(){const{A:x,B:M,C:z,D:J,E:ye,F:Le,G:je,H:it}=this;return[x,M,z,J,ye,Le,je,it]}set(x,M,z,J,ye,Le,je,it){this.A=0|x,this.B=0|M,this.C=0|z,this.D=0|J,this.E=0|ye,this.F=0|Le,this.G=0|je,this.H=0|it}process(x,M){for(let Ht=0;Ht<16;Ht++,M+=4)Ut[Ht]=x.getUint32(M,!1);for(let Ht=16;Ht<64;Ht++){const dn=Ut[Ht-15],vn=Ut[Ht-2],rn=_e(dn,7)^_e(dn,18)^dn>>>3,Qt=_e(vn,17)^_e(vn,19)^vn>>>10;Ut[Ht]=Qt+Ut[Ht-7]+rn+Ut[Ht-16]|0}let{A:z,B:J,C:ye,D:Le,E:je,F:it,G:Ct,H:Kt}=this;for(let Ht=0;Ht<64;Ht++){const vn=Kt+(_e(je,6)^_e(je,11)^_e(je,25))+Ze(je,it,Ct)+ze[Ht]+Ut[Ht]|0,Qt=(_e(z,2)^_e(z,13)^_e(z,22))+wt(z,J,ye)|0;Kt=Ct,Ct=it,it=je,je=Le+vn|0,Le=ye,ye=J,J=z,z=vn+Qt|0}z=z+this.A|0,J=J+this.B|0,ye=ye+this.C|0,Le=Le+this.D|0,je=je+this.E|0,it=it+this.F|0,Ct=Ct+this.G|0,Kt=Kt+this.H|0,this.set(z,J,ye,Le,je,it,Ct,Kt)}roundClean(){Ut.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const Xe=ot(()=>new Ke),se=(BigInt(0),BigInt(1)),qe=BigInt(2),Nt=b=>b instanceof Uint8Array,tn=Array.from({length:256},(b,x)=>x.toString(16).padStart(2,"0"));function pn(b){if(!Nt(b))throw new Error("Uint8Array expected");let x="";for(let M=0;Mz+J.length,0));let M=0;return b.forEach(z=>{if(!Nt(z))throw new Error("Uint8Array expected");x.set(z,M),M+=z.length}),x}const V=b=>(qe<new Uint8Array(b),bt=b=>Uint8Array.from(b);function mt(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=Re(b),J=Re(b),ye=0;const Le=()=>{z.fill(1),J.fill(0),ye=0},je=(...Ht)=>M(J,z,...Ht),it=(Ht=Re())=>{J=je(bt([0]),Ht),z=je(),0!==Ht.length&&(J=je(bt([1]),Ht),z=je())},Ct=()=>{if(ye++>=1e3)throw new Error("drbg: tried 1000 values");let Ht=0;const dn=[];for(;Ht{let vn;for(Le(),it(Ht);!(vn=dn(Ct()));)it();return Le(),vn}}const At={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 Ln(b,x,M={}){const z=(J,ye,Le)=>{const je=At[ye];if("function"!=typeof je)throw new Error(`Invalid validator "${ye}", expected function`);const it=b[J];if(!(Le&&void 0===it||je(it,b)))throw new Error(`Invalid param ${String(J)}=${it} (${typeof it}), 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 Zt=BigInt(0),gn=BigInt(1),In=BigInt(2),Bn=BigInt(3),Hn=BigInt(4),xr=BigInt(5),ei=BigInt(8);function $t(b,x){const M=b%x;return M>=Zt?M:x+M}function Ee(b,x,M){if(M<=Zt||x 0");if(M===gn)return Zt;let z=gn;for(;x>Zt;)x&gn&&(z=z*b%M),b=b*b%M,x>>=gn;return z}function at(b,x,M){let z=b;for(;x-- >Zt;)z*=z,z%=M;return z}function Fe(b,x){if(b===Zt||x<=Zt)throw new Error(`invert: expected positive integers, got n=${b} mod=${x}`);let M=$t(b,x),z=x,J=Zt,ye=gn,Le=gn,je=Zt;for(;M!==Zt;){const Ct=z/M,Kt=z%M,Ht=J-Le*Ct,dn=ye-je*Ct;z=M,M=Kt,J=Le,ye=je,Le=Ht,je=dn}if(z!==gn)throw new Error("invert: does not exist");return $t(J,x)}BigInt(9),BigInt(16);const _n=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function sn(b,x){const M=void 0!==x?x:b.toString(2).length;return{nBitLength:M,nByteLength:Math.ceil(M/8)}}function zn(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 hr(b){const x=zn(b);return x+Math.ceil(x/2)}class Ii 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=ke(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 Le=0;Lenew Ii(b,x).update(M).digest();Uo.create=(b,x)=>new Ii(b,x);const oi=BigInt(0),ns=BigInt(1);function bo(b){return function or(b){Ln(b,_n.reduce((z,J)=>(z[J]="function",z),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"}))}(b.Fp),Ln(b,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...sn(b.n,b.nBitLength),...b,p:b.Fp.ORDER})}const{Ph:Do,aT:Ms}=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:Do(z),l:b.subarray(M+2)}},toSig(b){const{Err:x}=eo,M="string"==typeof b?Ms(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:Le,l:je}=eo._parseInt(ye);if(je.length)throw new x("Invalid signature: left bytes after parsing");return{r:J,s:Le}},hexFromSig(b){const x=Ct=>8&Number.parseInt(Ct[0],16)?"00"+Ct:Ct,M=Ct=>{const Kt=Ct.toString(16);return 1&Kt.length?`0${Kt}`:Kt},z=x(M(b.s)),J=x(M(b.r)),ye=z.length/2,Le=J.length/2,je=M(ye),it=M(Le);return`30${M(Le+ye+4)}02${it}${J}02${je}${z}`}},oo=BigInt(0),Bi=BigInt(1),et=(BigInt(2),BigInt(3));function tt(b){const x=function me(b){const x=bo(b);return Ln(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 je(er){return $t(er,z)}function it(er){return Fe(er,z)}const{ProjectivePoint:Ct,normPrivateKeyToScalar:Kt,weierstrassEquation:Ht,isWithinCurveOrder:dn}=function xt(b){const x=function Xo(b){const x=bo(b);Ln(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||((rn,Qt,Jt)=>{const Dn=Qt.toAffine();return Ot(Uint8Array.from([4]),M.toBytes(Dn.x),M.toBytes(Dn.y))}),J=x.fromBytes||(rn=>{const Qt=rn.subarray(1);return{x:M.fromBytes(Qt.subarray(0,M.BYTES)),y:M.fromBytes(Qt.subarray(M.BYTES,2*M.BYTES))}});function ye(rn){const{a:Qt,b:Jt}=x,Dn=M.sqr(rn),Mn=M.mul(Dn,rn);return M.add(M.add(Mn,M.mul(rn,Qt)),Jt)}if(!M.eql(M.sqr(x.Gy),ye(x.Gx)))throw new Error("bad generator point: equation left != right");function Le(rn){return"bigint"==typeof rn&&ooM.eql(rr,M.ZERO);return Mn(Jt)&&Mn(Dn)?Ht.ZERO:new Ht(Jt,Dn,M.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(Qt){const Jt=M.invertBatch(Qt.map(Dn=>Dn.pz));return Qt.map((Dn,Mn)=>Dn.toAffine(Jt[Mn])).map(Ht.fromAffine)}static fromHex(Qt){const Jt=Ht.fromAffine(J(Gt("pointHex",Qt)));return Jt.assertValidity(),Jt}static fromPrivateKey(Qt){return Ht.BASE.multiply(it(Qt))}_setWindowSize(Qt){this._WINDOW_SIZE=Qt,Ct.delete(this)}assertValidity(){if(this.is0()){if(x.allowInfinityPoint&&!M.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:Qt,y:Jt}=this.toAffine();if(!M.isValid(Qt)||!M.isValid(Jt))throw new Error("bad point: x or y not FE");const Dn=M.sqr(Jt),Mn=ye(Qt);if(!M.eql(Dn,Mn))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:Qt}=this.toAffine();if(M.isOdd)return!M.isOdd(Qt);throw new Error("Field doesn't support isOdd")}equals(Qt){Kt(Qt);const{px:Jt,py:Dn,pz:Mn}=this,{px:rr,py:ar,pz:Br}=Qt,yr=M.eql(M.mul(Jt,Br),M.mul(rr,Mn)),Nr=M.eql(M.mul(Dn,Br),M.mul(ar,Mn));return yr&&Nr}negate(){return new Ht(this.px,M.neg(this.py),this.pz)}double(){const{a:Qt,b:Jt}=x,Dn=M.mul(Jt,et),{px:Mn,py:rr,pz:ar}=this;let Br=M.ZERO,yr=M.ZERO,Nr=M.ZERO,Vr=M.mul(Mn,Mn),Ci=M.mul(rr,rr),fi=M.mul(ar,ar),li=M.mul(Mn,rr);return li=M.add(li,li),Nr=M.mul(Mn,ar),Nr=M.add(Nr,Nr),Br=M.mul(Qt,Nr),yr=M.mul(Dn,fi),yr=M.add(Br,yr),Br=M.sub(Ci,yr),yr=M.add(Ci,yr),yr=M.mul(Br,yr),Br=M.mul(li,Br),Nr=M.mul(Dn,Nr),fi=M.mul(Qt,fi),li=M.sub(Vr,fi),li=M.mul(Qt,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),yr=M.add(yr,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 Ht(Br,yr,Nr)}add(Qt){Kt(Qt);const{px:Jt,py:Dn,pz:Mn}=this,{px:rr,py:ar,pz:Br}=Qt;let yr=M.ZERO,Nr=M.ZERO,Vr=M.ZERO;const Ci=x.a,fi=M.mul(x.b,et);let li=M.mul(Jt,rr),Ji=M.mul(Dn,ar),ji=M.mul(Mn,Br),qi=M.add(Jt,Dn),er=M.add(rr,ar);qi=M.mul(qi,er),er=M.add(li,Ji),qi=M.sub(qi,er),er=M.add(Jt,Mn);let br=M.add(rr,Br);return er=M.mul(er,br),br=M.add(li,ji),er=M.sub(er,br),br=M.add(Dn,Mn),yr=M.add(ar,Br),br=M.mul(br,yr),yr=M.add(Ji,ji),br=M.sub(br,yr),Vr=M.mul(Ci,er),yr=M.mul(fi,ji),Vr=M.add(yr,Vr),yr=M.sub(Ji,Vr),Vr=M.add(Ji,Vr),Nr=M.mul(yr,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(br,er),yr=M.mul(qi,yr),yr=M.sub(yr,li),li=M.mul(qi,Ji),Vr=M.mul(br,Vr),Vr=M.add(Vr,li),new Ht(yr,Nr,Vr)}subtract(Qt){return this.add(Qt.negate())}is0(){return this.equals(Ht.ZERO)}wNAF(Qt){return vn.wNAFCached(this,Ct,Qt,Jt=>{const Dn=M.invertBatch(Jt.map(Mn=>Mn.pz));return Jt.map((Mn,rr)=>Mn.toAffine(Dn[rr])).map(Ht.fromAffine)})}multiplyUnsafe(Qt){const Jt=Ht.ZERO;if(Qt===oo)return Jt;if(je(Qt),Qt===Bi)return this;const{endo:Dn}=x;if(!Dn)return vn.unsafeLadder(this,Qt);let{k1neg:Mn,k1:rr,k2neg:ar,k2:Br}=Dn.splitScalar(Qt),yr=Jt,Nr=Jt,Vr=this;for(;rr>oo||Br>oo;)rr&Bi&&(yr=yr.add(Vr)),Br&Bi&&(Nr=Nr.add(Vr)),Vr=Vr.double(),rr>>=Bi,Br>>=Bi;return Mn&&(yr=yr.negate()),ar&&(Nr=Nr.negate()),Nr=new Ht(M.mul(Nr.px,Dn.beta),Nr.py,Nr.pz),yr.add(Nr)}multiply(Qt){je(Qt);let Dn,Mn,Jt=Qt;const{endo:rr}=x;if(rr){const{k1neg:ar,k1:Br,k2neg:yr,k2:Nr}=rr.splitScalar(Jt);let{p:Vr,f:Ci}=this.wNAF(Br),{p:fi,f:li}=this.wNAF(Nr);Vr=vn.constTimeNegate(ar,Vr),fi=vn.constTimeNegate(yr,fi),fi=new Ht(M.mul(fi.px,rr.beta),fi.py,fi.pz),Dn=Vr.add(fi),Mn=Ci.add(li)}else{const{p:ar,f:Br}=this.wNAF(Jt);Dn=ar,Mn=Br}return Ht.normalizeZ([Dn,Mn])[0]}multiplyAndAddUnsafe(Qt,Jt,Dn){const Mn=Ht.BASE,rr=(Br,yr)=>yr!==oo&&yr!==Bi&&Br.equals(Mn)?Br.multiply(yr):Br.multiplyUnsafe(yr),ar=rr(this,Jt).add(rr(Qt,Dn));return ar.is0()?void 0:ar}toAffine(Qt){const{px:Jt,py:Dn,pz:Mn}=this,rr=this.is0();null==Qt&&(Qt=rr?M.ONE:M.inv(Mn));const ar=M.mul(Jt,Qt),Br=M.mul(Dn,Qt),yr=M.mul(Mn,Qt);if(rr)return{x:M.ZERO,y:M.ZERO};if(!M.eql(yr,M.ONE))throw new Error("invZ was invalid");return{x:ar,y:Br}}isTorsionFree(){const{h:Qt,isTorsionFree:Jt}=x;if(Qt===Bi)return!0;if(Jt)return Jt(Ht,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:Qt,clearCofactor:Jt}=x;return Qt===Bi?this:Jt?Jt(Ht,this):this.multiplyUnsafe(x.h)}toRawBytes(Qt=!0){return this.assertValidity(),z(Ht,this,Qt)}toHex(Qt=!0){return pn(this.toRawBytes(Qt))}}Ht.BASE=new Ht(x.Gx,x.Gy,M.ONE),Ht.ZERO=new Ht(M.ZERO,M.ONE,M.ZERO);const dn=x.nBitLength,vn=function so(b,x){const M=(J,ye)=>{const Le=ye.negate();return J?Le:ye},z=J=>({windows:Math.ceil(x/J)+1,windowSize:2**(J-1)});return{constTimeNegate:M,unsafeLadder(J,ye){let Le=b.ZERO,je=J;for(;ye>oi;)ye&ns&&(Le=Le.add(je)),je=je.double(),ye>>=ns;return Le},precomputeWindow(J,ye){const{windows:Le,windowSize:je}=z(ye),it=[];let Ct=J,Kt=Ct;for(let Ht=0;Ht>=vn,Jt>it&&(Jt-=dn,Le+=ns);const Dn=Qt,Mn=Qt+Math.abs(Jt)-1,ar=Jt<0;0===Jt?Kt=Kt.add(M(rn%2!=0,ye[Dn])):Ct=Ct.add(M(ar,ye[Mn]))}return{p:Ct,f:Kt}},wNAFCached(J,ye,Le,je){const it=J._WINDOW_SIZE||1;let Ct=ye.get(J);return Ct||(Ct=this.precomputeWindow(J,it),1!==it&&ye.set(J,je(Ct))),this.wNAF(it,Ct,Le)}}}(Ht,x.endo?Math.ceil(dn/2):dn);return{CURVE:x,ProjectivePoint:Ht,normPrivateKeyToScalar:it,weierstrassEquation:ye,isWithinCurveOrder:Le}}({...x,toBytes(er,br,Zr){const pi=br.toAffine(),Er=M.toBytes(pi.x),Vi=Ot;return Zr?Vi(Uint8Array.from([br.hasEvenY()?2:3]),Er):Vi(Uint8Array.from([4]),Er,M.toBytes(pi.y))},fromBytes(er){const br=er.length,Zr=er[0],pi=er.subarray(1);if(br!==J||2!==Zr&&3!==Zr){if(br===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 ${br} was invalid. Expected ${J} compressed bytes or ${ye} uncompressed bytes`)}{const Er=an(pi);if(!function Le(er){return oopn(Sn(er,x.nByteLength));function rn(er){return er>z>>Bi}const Jt=(er,br,Zr)=>an(er.slice(br,Zr));class Dn{constructor(br,Zr,pi){this.r=br,this.s=Zr,this.recovery=pi,this.assertValidity()}static fromCompact(br){const Zr=x.nByteLength;return br=Gt("compactSignature",br,2*Zr),new Dn(Jt(br,0,Zr),Jt(br,Zr,2*Zr))}static fromDER(br){const{r:Zr,s:pi}=eo.toSig(Gt("DER",br));return new Dn(Zr,pi)}assertValidity(){if(!dn(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!dn(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(br){return new Dn(this.r,this.s,br)}recoverPublicKey(br){const{r:Zr,s:pi,recovery:Er}=this,Vi=Nr(Gt("msgHash",br));if(null==Er||![0,1,2,3].includes(Er))throw new Error("recovery id invalid");const ki=2===Er||3===Er?Zr+x.n:Zr;if(ki>=M.ORDER)throw new Error("recovery id 2 or 3 invalid");const Vs=Ct.fromHex((1&Er?"03":"02")+vn(ki)),Hs=it(ki),Ta=je(-Vi*Hs),_l=je(pi*Hs),Ma=Ct.BASE.multiplyAndAddUnsafe(Vs,Ta,_l);if(!Ma)throw new Error("point at infinify");return Ma.assertValidity(),Ma}hasHighS(){return rn(this.s)}normalizeS(){return this.hasHighS()?new Dn(this.r,je(-this.s),this.recovery):this}toDERRawBytes(){return en(this.toDERHex())}toDERHex(){return eo.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return en(this.toCompactHex())}toCompactHex(){return vn(this.r)+vn(this.s)}}const Mn={isValidPrivateKey(er){try{return Kt(er),!0}catch{return!1}},normPrivateKeyToScalar:Kt,randomPrivateKey:()=>{const er=hr(x.n);return function ho(b,x,M=!1){const z=b.length,J=zn(x),ye=hr(x);if(z<16||z1024)throw new Error(`expected ${ye}-1024 bytes of input, got ${z}`);const je=$t(M?an(b):Yn(b),x-gn)+gn;return M?Xt(je,J):Sn(je,J)}(x.randomBytes(er),x.n)},precompute:(er=8,br=Ct.BASE)=>(br._setWindowSize(er),br.multiply(BigInt(3)),br)};function ar(er){const br=er instanceof Uint8Array,Zr="string"==typeof er,pi=(br||Zr)&&er.length;return br?pi===J||pi===ye:Zr?pi===2*J||pi===2*ye:er instanceof Ct}const yr=x.bits2int||function(er){const br=an(er),Zr=8*er.length-x.nBitLength;return Zr>0?br>>BigInt(Zr):br},Nr=x.bits2int_modN||function(er){return je(yr(er))},Vr=V(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:Er}=x;let{lowS:Vi,prehash:ki,extraEntropy:Oi}=Zr;null==Vi&&(Vi=!0),er=Gt("msgHash",er),ki&&(er=Gt("prehashed msgHash",pi(er)));const Vs=Nr(er),Hs=Kt(br),Ta=[Ci(Hs),Ci(Vs)];if(null!=Oi){const vs=!0===Oi?Er(M.BYTES):Oi;Ta.push(Gt("extraEntropy",vs))}const _l=Ot(...Ta),Ma=Vs;return{seed:_l,k2sig:function Ka(vs){const Oc=yr(vs);if(!dn(Oc))return;const If=it(Oc),Bl=Ct.BASE.multiply(Oc).toAffine(),Ul=je(Bl.x);if(Ul===oo)return;const Cu=je(If*je(Ma+Ul*Hs));if(Cu===oo)return;let Du=(Bl.x===Ul?0:2)|Number(Bl.y&Bi),Zu=Cu;return Vi&&rn(Cu)&&(Zu=function Qt(er){return rn(er)?je(-er):er}(Cu),Du^=1),new Dn(Ul,Zu,Du)}}}(er,br,Zr);return mt(x.hash.outputLen,x.nByteLength,x.hmac)(pi,Er)},verify:function qi(er,br,Zr,pi=Ji){const Er=er;if(br=Gt("msgHash",br),Zr=Gt("publicKey",Zr),"strict"in pi)throw new Error("options.strict was renamed to lowS");const{lowS:Vi,prehash:ki}=pi;let Oi,Vs;try{if("string"==typeof Er||Er instanceof Uint8Array)try{Oi=Dn.fromDER(Er)}catch(Bl){if(!(Bl instanceof eo.Err))throw Bl;Oi=Dn.fromCompact(Er)}else{if("object"!=typeof Er||"bigint"!=typeof Er.r||"bigint"!=typeof Er.s)throw new Error("PARSE");{const{r:Bl,s:Ul}=Er;Oi=new Dn(Bl,Ul)}}Vs=Ct.fromHex(Zr)}catch(Bl){if("PARSE"===Bl.message)throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(Vi&&Oi.hasHighS())return!1;ki&&(br=x.hash(br));const{r:Hs,s:Ta}=Oi,_l=Nr(br),Ma=it(Ta),Ka=je(_l*Ma),vs=je(Hs*Ma),Oc=Ct.BASE.multiplyAndAddUnsafe(Vs,Ka,vs)?.toAffine();return!!Oc&&je(Oc.x)===Hs},ProjectivePoint:Ct,Signature:Dn,utils:Mn}}function Vt(b){return{hash:b,hmac:(x,...M)=>Uo(b,x,function Ue(...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:wn}}BigInt(4);const hn=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),Cn=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),An=BigInt(1),On=BigInt(2),Un=(b,x)=>(b+x/On)/x;function Jn(b){const x=hn,M=BigInt(3),z=BigInt(6),J=BigInt(11),ye=BigInt(22),Le=BigInt(23),je=BigInt(44),it=BigInt(88),Ct=b*b*b%x,Kt=Ct*Ct*b%x,Ht=at(Kt,M,x)*Kt%x,dn=at(Ht,M,x)*Kt%x,vn=at(dn,On,x)*Ct%x,rn=at(vn,J,x)*vn%x,Qt=at(rn,ye,x)*rn%x,Jt=at(Qt,je,x)*Qt%x,Dn=at(Jt,it,x)*Jt%x,Mn=at(Dn,je,x)*Qt%x,rr=at(Mn,M,x)*Kt%x,ar=at(rr,Le,x)*rn%x,Br=at(ar,z,x)*Ct%x,yr=at(Br,On,x);if(!sr.eql(sr.sqr(yr),b))throw new Error("Cannot find square root");return yr}const sr=function Tt(b,x,M=!1,z={}){if(b<=Zt)throw new Error(`Expected Field ORDER > 0, got ${b}`);const{nBitLength:J,nByteLength:ye}=sn(b,x);if(ye>2048)throw new Error("Field lengths over 2048 bytes are not supported");const Le=function dt(b){if(b%Hn===Bn){const x=(b+gn)/Hn;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%ei===xr){const x=(b-xr)/ei;return function(z,J){const ye=z.mul(J,In),Le=z.pow(ye,x),je=z.mul(J,Le),it=z.mul(z.mul(je,In),Le),Ct=z.mul(je,z.sub(it,z.ONE));if(!z.eql(z.sqr(Ct),J))throw new Error("Cannot find square root");return Ct}}return function Rt(b){const x=(b-gn)/In;let M,z,J;for(M=b-gn,z=0;M%In===Zt;M/=In,z++);for(J=In;J$t(it,b),isValid:it=>{if("bigint"!=typeof it)throw new Error("Invalid field element: expected bigint, got "+typeof it);return Zt<=it&&itit===Zt,isOdd:it=>(it&gn)===gn,neg:it=>$t(-it,b),eql:(it,Ct)=>it===Ct,sqr:it=>$t(it*it,b),add:(it,Ct)=>$t(it+Ct,b),sub:(it,Ct)=>$t(it-Ct,b),mul:(it,Ct)=>$t(it*Ct,b),pow:(it,Ct)=>function Mr(b,x,M){if(M 0");if(M===Zt)return b.ONE;if(M===gn)return x;let z=b.ONE,J=x;for(;M>Zt;)M&gn&&(z=b.mul(z,J)),J=b.sqr(J),M>>=gn;return z}(je,it,Ct),div:(it,Ct)=>$t(it*Fe(Ct,b),b),sqrN:it=>it*it,addN:(it,Ct)=>it+Ct,subN:(it,Ct)=>it-Ct,mulN:(it,Ct)=>it*Ct,inv:it=>Fe(it,b),sqrt:z.sqrt||(it=>Le(je,it)),invertBatch:it=>function ii(b,x){const M=new Array(x.length),z=x.reduce((ye,Le,je)=>b.is0(Le)?ye:(M[je]=ye,b.mul(ye,Le)),b.ONE),J=b.inv(z);return x.reduceRight((ye,Le,je)=>b.is0(Le)?ye:(M[je]=b.mul(ye,M[je]),b.mul(ye,Le)),J),M}(je,it),cmov:(it,Ct,Kt)=>Kt?Ct:it,toBytes:it=>M?Xt(it,ye):Sn(it,ye),fromBytes:it=>{if(it.length!==ye)throw new Error(`Fp.fromBytes: expected ${ye}, got ${it.length}`);return M?Yn(it):an(it)}});return Object.freeze(je)}(hn,void 0,void 0,{sqrt:Jn}),Ir=function kt(b,x){const M=z=>tt({...b,...Vt(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=-An*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),J=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),ye=M,Le=BigInt("0x100000000000000000000000000000000"),je=Un(ye*b,x),it=Un(-z*b,x);let Ct=$t(b-je*M-it*J,x),Kt=$t(-je*z-it*ye,x);const Ht=Ct>Le,dn=Kt>Le;if(Ht&&(Ct=x-Ct),dn&&(Kt=x-Kt),Ct>Le||Kt>Le)throw new Error("splitScalar: Endomorphism failed, k="+b);return{k1neg:Ht,k1:Ct,k2neg:dn,k2:Kt}}}},Xe),pr=BigInt(0),bi=b=>"bigint"==typeof b&&prJ.charCodeAt(0)));M=Ot(z,z),mr[b]=M}return Xe(Ot(M,...x))}const _o=b=>b.toRawBytes(!0).slice(1),$r=b=>Sn(b,32),Gi=b=>$t(b,hn),cs=b=>$t(b,Cn),ws=Ir.ProjectivePoint;function Sr(b){let x=Ir.utils.normPrivateKeyToScalar(b),M=ws.fromPrivateKey(x);return{scalar:M.hasEvenY()?x:cs(-x),bytes:_o(M)}}function ta(b){if(!bi(b))throw new Error("bad x: need 0 < x < p");const x=Gi(b*b);let z=Jn(Gi(x*b+BigInt(7)));z%On!==pr&&(z=Gi(-z));const J=new ws(b,z,An);return J.assertValidity(),J}function pa(...b){return cs(an(ai("BIP0340/challenge",...b)))}function Ls(b,x,M){const z=Gt("signature",b,64),J=Gt("message",x),ye=Gt("publicKey",M,32);try{const Le=ta(an(ye)),je=an(z.subarray(0,32));if(!bi(je))return!1;const it=an(z.subarray(32,64));if(!(b=>"bigint"==typeof b&&prws.BASE.multiplyAndAddUnsafe(b,x,M))(Le,it,cs(-Ct));return!(!Kt||!Kt.hasEvenY()||Kt.toAffine().x!==je)}catch{return!1}}const Ks={getPublicKey:function wo(b){return Sr(b).bytes},sign:function Ns(b,x,M=wn(32)){const z=Gt("message",b),{bytes:J,scalar:ye}=Sr(x),Le=Gt("auxRand",M,32),je=$r(ye^an(ai("BIP0340/aux",Le))),it=ai("BIP0340/nonce",je,J,z),Ct=cs(an(it));if(Ct===pr)throw new Error("sign failed: k is zero");const{bytes:Kt,scalar:Ht}=Sr(Ct),dn=pa(Kt,J,z),vn=new Uint8Array(64);if(vn.set(Kt,0),vn.set($r(cs(Ht+dn*ye)),32),!Ls(vn,z,J))throw new Error("sign: Invalid signature produced");return vn},verify:Ls,utils:{randomPrivateKey:Ir.utils.randomPrivateKey,lift_x:ta,pointToBytes:_o,numberToBytesBE:Sn,bytesToNumberBE:an,taggedHash:ai,mod:$t}};var qr=r(4704);function us(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:us,bool:function is(b){if("boolean"!=typeof b)throw new Error(`Expected boolean, not ${b}`)},bytes:to,hash:function zi(b){if("function"!=typeof b||"function"!=typeof b.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");us(b.outputLen),us(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 ko(b,x){to(b);const M=x.outputLen;if(b.lengthJ-Le&&(this.process(z,0),Le=0);for(let Ht=Le;Ht>J&ye),je=Number(M&ye),Ct=z?0:4;b.setUint32(x+(z?4:0),Le,z),b.setUint32(x+Ct,je,z)})(z,J-8,BigInt(8*this.length),ye),this.process(z,0);const je=(0,qr.O8)(x),it=this.outputLen;if(it%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const Ct=it/4,Kt=this.get();if(Ct>Kt.length)throw new Error("_sha2: outputLen bigger than state");for(let Ht=0;Htb&x^~b&M,Fs=(b,x,M)=>b&x^b&M^x&M,ga=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]),Ai=new Uint32Array(64);class na 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:Le,G:je,H:it}=this;return[x,M,z,J,ye,Le,je,it]}set(x,M,z,J,ye,Le,je,it){this.A=0|x,this.B=0|M,this.C=0|z,this.D=0|J,this.E=0|ye,this.F=0|Le,this.G=0|je,this.H=0|it}process(x,M){for(let Ht=0;Ht<16;Ht++,M+=4)Ai[Ht]=x.getUint32(M,!1);for(let Ht=16;Ht<64;Ht++){const dn=Ai[Ht-15],vn=Ai[Ht-2],rn=(0,qr.Ow)(dn,7)^(0,qr.Ow)(dn,18)^dn>>>3,Qt=(0,qr.Ow)(vn,17)^(0,qr.Ow)(vn,19)^vn>>>10;Ai[Ht]=Qt+Ai[Ht-7]+rn+Ai[Ht-16]|0}let{A:z,B:J,C:ye,D:Le,E:je,F:it,G:Ct,H:Kt}=this;for(let Ht=0;Ht<64;Ht++){const vn=Kt+((0,qr.Ow)(je,6)^(0,qr.Ow)(je,11)^(0,qr.Ow)(je,25))+ks(je,it,Ct)+ga[Ht]+Ai[Ht]|0,Qt=((0,qr.Ow)(z,2)^(0,qr.Ow)(z,13)^(0,qr.Ow)(z,22))+Fs(z,J,ye)|0;Kt=Ct,Ct=it,it=je,je=Le+vn|0,Le=ye,ye=J,J=z,z=vn+Qt|0}z=z+this.A|0,J=J+this.B|0,ye=ye+this.C|0,Le=Le+this.D|0,je=je+this.E|0,it=it+this.F|0,Ct=Ct+this.G|0,Kt=Kt+this.H|0,this.set(z,J,ye,Le,je,it,Ct,Kt)}roundClean(){Ai.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class bl extends na{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 na);(0,qr.ld)(()=>new bl);var ao=r(1998);function ss(b){if(!Number.isSafeInteger(b)||b<0)throw new Error(`positive integer expected, not ${b}`)}function vo(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 vi(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 Io(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 Xs(b,x){vi(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 fo(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),Le=Number(M>>J&ye),je=Number(M&ye),Ct=z?0:4;b.setUint32(x+(z?4:0),Le,z),b.setUint32(x+Ct,je,z)}const jt=new Uint8Array(16),gr=Ve(jt),So=(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 sc{constructor(x,M){this.blockLen=16,this.outputLen=16,this.s0=0,this.s1=0,this.s2=0,this.s3=0,this.finished=!1,vi(x=Ho(x),16);const z=re(x);let J=z.getUint32(0,!1),ye=z.getUint32(4,!1),Le=z.getUint32(8,!1),je=z.getUint32(12,!1);const it=[];for(let rn=0;rn<128;rn++)it.push({s0:qo(J),s1:qo(ye),s2:qo(Le),s3:qo(je)}),({s0:J,s1:ye,s2:Le,s3:je}=So(J,ye,Le,je));const Ct=(b=M||1024)>65536?8:b>1024?4:2;var b;if(![1,2,4,8].includes(Ct))throw new Error(`ghash: wrong window size=${Ct}, should be 2, 4 or 8`);this.W=Ct;const Ht=128/Ct,dn=this.windowSize=2**Ct,vn=[];for(let rn=0;rn>>Ct-ar-1&1))continue;const{s0:yr,s1:Nr,s2:Vr,s3:Ci}=it[Ct*rn+ar];Jt^=yr,Dn^=Nr,Mn^=Vr,rr^=Ci}vn.push({s0:Jt,s1:Dn,s2:Mn,s3:rr})}this.t=vn}_updateBlock(x,M,z,J){x^=this.s0,M^=this.s1,z^=this.s2,J^=this.s3;const{W:ye,t:Le,windowSize:je}=this;let it=0,Ct=0,Kt=0,Ht=0;const dn=(1<>>8*Qt&255;for(let Dn=8/ye-1;Dn>=0;Dn--){const Mn=Jt>>>ye*Dn&dn,{s0:rr,s1:ar,s2:Br,s3:yr}=Le[vn*je+Mn];it^=rr,Ct^=ar,Kt^=Br,Ht^=yr,vn+=1}}this.s0=it,this.s1=Ct,this.s2=Kt,this.s3=Ht}update(x){x=Ho(x),Io(this);const M=Ve(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),Io(this);const M=Ve(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}ds((b,x)=>new sc(b,x)),ds((b,x)=>new El(b,x)),new Uint8Array(16);const Cl=283;function ia(b){return b<<1^Cl&-(b>>7)}function Ua(b,x){let M=0;for(;x>0;x>>=1)M^=b&-(1&x),b=ia(b);return M}const yc=(()=>{let b=new Uint8Array(256);for(let M=0,z=1;M<256;M++,z^=ia(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})(),Nu=yc.map((b,x)=>yc.indexOf(x)),ac=b=>b<<24|b>>>8,$a=b=>b<<8|b>>>24;function Gl(b,x){if(256!==b.length)throw new Error("Wrong sbox length");const M=new Uint32Array(256).map((Ct,Kt)=>x(b[Kt])),z=M.map($a),J=z.map($a),ye=J.map($a),Le=new Uint32Array(65536),je=new Uint32Array(65536),it=new Uint16Array(65536);for(let Ct=0;Ct<256;Ct++)for(let Kt=0;Kt<256;Kt++){const Ht=256*Ct+Kt;Le[Ht]=M[Ct]^z[Kt],je[Ht]=J[Ct]^ye[Kt],it[Ht]=b[Ct]<<8|b[Kt]}return{sbox:b,sbox2:it,T0:M,T1:z,T2:J,T3:ye,T01:Le,T23:je}}const ya=Gl(yc,b=>Ua(b,3)<<24|b<<16|b<<8|Ua(b,2)),qa=Gl(Nu,b=>Ua(b,11)<<24|Ua(b,13)<<16|Ua(b,9)<<8|Ua(b,14)),Dl=(()=>{const b=new Uint8Array(16);for(let x=0,M=1;x<16;x++,M=ia(M))b[x]=M;return b})();function Ro(b){vi(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}=ya,z=Ve(b),J=z.length,ye=je=>wa(M,je,je,je,je),Le=new Uint32Array(x+28);Le.set(z);for(let je=J;je6&&je%J==4&&(it=ye(it)),Le[je]=Le[je-J]^it}return Le}function ba(b,x,M,z,J,ye){return b[M<<8&65280|z>>>8&255]^x[J>>>8&65280|ye>>>24&255]}function wa(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:Le,T23:je}=ya;let it=0;x^=b[it++],M^=b[it++],z^=b[it++],J^=b[it++];const Ct=b.length/4-2;for(let rn=0;rn{const je=Ro(x),{b:it,o:Ct,out:Kt}=function Ea(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=Ve(b);if(x){let it=16-J;it||(it=16),z+=it}const Le=ll(z,M);return{b:ye,o:Ve(Le),out:Le}}(ye,J,Le),Ht=Ve(M);let dn=Ht[0],vn=Ht[1],rn=Ht[2],Qt=Ht[3],Jt=0;for(;Jt+4<=it.length;)dn^=it[Jt+0],vn^=it[Jt+1],rn^=it[Jt+2],Qt^=it[Jt+3],({s0:dn,s1:vn,s2:rn,s3:Qt}=Jo(je,dn,vn,rn,Qt)),Ct[Jt++]=dn,Ct[Jt++]=vn,Ct[Jt++]=rn,Ct[Jt++]=Qt;if(J){const Dn=function Ui(b){const x=new Uint8Array(16),M=Ve(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*Jt));dn^=Dn[0],vn^=Dn[1],rn^=Dn[2],Qt^=Dn[3],({s0:dn,s1:vn,s2:rn,s3:Qt}=Jo(je,dn,vn,rn,Qt)),Ct[Jt++]=dn,Ct[Jt++]=vn,Ct[Jt++]=rn,Ct[Jt++]=Qt}return je.fill(0),Kt},decrypt:(ye,Le)=>{!function Yl(b){if(vi(b),b.length%16!=0)throw new Error("aes/(cbc-ecb).decrypt ciphertext should consist of blocks with size 16")}(ye);const je=function co(b){const x=Ro(b),M=x.slice(),z=x.length,{sbox2:J}=ya,{T0:ye,T1:Le,T2:je,T3:it}=qa;for(let Ct=0;Ct>>8&255]^je[Ht>>>16&255]^it[Ht>>>24]}return M}(x),it=Ve(M),Ct=ll(ye.length,Le),Kt=Ve(ye),Ht=Ve(Ct);let dn=it[0],vn=it[1],rn=it[2],Qt=it[3];for(let Jt=0;Jt+4<=Kt.length;){const Dn=dn,Mn=vn,rr=rn,ar=Qt;dn=Kt[Jt+0],vn=Kt[Jt+1],rn=Kt[Jt+2],Qt=Kt[Jt+3];const{s0:Br,s1:yr,s2:Nr,s3:Vr}=bc(je,dn,vn,rn,Qt);Ht[Jt++]=Br^Dn,Ht[Jt++]=yr^Mn,Ht[Jt++]=Nr^rr,Ht[Jt++]=Vr^ar}return je.fill(0),function hs(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 lc{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,vi(x=Ho(x),32);const M=mo(x,0),z=mo(x,2),J=mo(x,4),ye=mo(x,6),Le=mo(x,8),je=mo(x,10),it=mo(x,12),Ct=mo(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|Le<<12),this.r[5]=Le>>>1&8190,this.r[6]=8191&(Le>>>14|je<<2),this.r[7]=8065&(je>>>11|it<<5),this.r[8]=8191&(it>>>8|Ct<<8),this.r[9]=Ct>>>5&127;for(let Kt=0;Kt<8;Kt++)this.pad[Kt]=mo(x,16+2*Kt)}process(x,M,z=!1){const J=z?0:2048,{h:ye,r:Le}=this,je=Le[0],it=Le[1],Ct=Le[2],Kt=Le[3],Ht=Le[4],dn=Le[5],vn=Le[6],rn=Le[7],Qt=Le[8],Jt=Le[9],Dn=mo(x,M+0),Mn=mo(x,M+2),rr=mo(x,M+4),ar=mo(x,M+6),Br=mo(x,M+8),yr=mo(x,M+10),Nr=mo(x,M+12),Vr=mo(x,M+14);let Ci=ye[0]+(8191&Dn),fi=ye[1]+(8191&(Dn>>>13|Mn<<3)),li=ye[2]+(8191&(Mn>>>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|yr<<2)),br=ye[7]+(8191&(yr>>>11|Nr<<5)),Zr=ye[8]+(8191&(Nr>>>8|Vr<<8)),pi=ye[9]+(Vr>>>5|J),Er=0,Vi=Er+Ci*je+fi*(5*Jt)+li*(5*Qt)+Ji*(5*rn)+ji*(5*vn);Er=Vi>>>13,Vi&=8191,Vi+=qi*(5*dn)+er*(5*Ht)+br*(5*Kt)+Zr*(5*Ct)+pi*(5*it),Er+=Vi>>>13,Vi&=8191;let ki=Er+Ci*it+fi*je+li*(5*Jt)+Ji*(5*Qt)+ji*(5*rn);Er=ki>>>13,ki&=8191,ki+=qi*(5*vn)+er*(5*dn)+br*(5*Ht)+Zr*(5*Kt)+pi*(5*Ct),Er+=ki>>>13,ki&=8191;let Oi=Er+Ci*Ct+fi*it+li*je+Ji*(5*Jt)+ji*(5*Qt);Er=Oi>>>13,Oi&=8191,Oi+=qi*(5*rn)+er*(5*vn)+br*(5*dn)+Zr*(5*Ht)+pi*(5*Kt),Er+=Oi>>>13,Oi&=8191;let Vs=Er+Ci*Kt+fi*Ct+li*it+Ji*je+ji*(5*Jt);Er=Vs>>>13,Vs&=8191,Vs+=qi*(5*Qt)+er*(5*rn)+br*(5*vn)+Zr*(5*dn)+pi*(5*Ht),Er+=Vs>>>13,Vs&=8191;let Hs=Er+Ci*Ht+fi*Kt+li*Ct+Ji*it+ji*je;Er=Hs>>>13,Hs&=8191,Hs+=qi*(5*Jt)+er*(5*Qt)+br*(5*rn)+Zr*(5*vn)+pi*(5*dn),Er+=Hs>>>13,Hs&=8191;let Ta=Er+Ci*dn+fi*Ht+li*Kt+Ji*Ct+ji*it;Er=Ta>>>13,Ta&=8191,Ta+=qi*je+er*(5*Jt)+br*(5*Qt)+Zr*(5*rn)+pi*(5*vn),Er+=Ta>>>13,Ta&=8191;let _l=Er+Ci*vn+fi*dn+li*Ht+Ji*Kt+ji*Ct;Er=_l>>>13,_l&=8191,_l+=qi*it+er*je+br*(5*Jt)+Zr*(5*Qt)+pi*(5*rn),Er+=_l>>>13,_l&=8191;let Ma=Er+Ci*rn+fi*vn+li*dn+Ji*Ht+ji*Kt;Er=Ma>>>13,Ma&=8191,Ma+=qi*Ct+er*it+br*je+Zr*(5*Jt)+pi*(5*Qt),Er+=Ma>>>13,Ma&=8191;let Ka=Er+Ci*Qt+fi*rn+li*vn+Ji*dn+ji*Ht;Er=Ka>>>13,Ka&=8191,Ka+=qi*Kt+er*Ct+br*it+Zr*je+pi*(5*Jt),Er+=Ka>>>13,Ka&=8191;let vs=Er+Ci*Jt+fi*Qt+li*rn+Ji*vn+ji*dn;Er=vs>>>13,vs&=8191,vs+=qi*Ht+er*Kt+br*Ct+Zr*it+pi*je,Er+=vs>>>13,vs&=8191,Er=(Er<<2)+Er|0,Er=Er+Vi|0,Vi=8191&Er,Er>>>=13,ki+=Er,ye[0]=Vi,ye[1]=ki,ye[2]=Oi,ye[3]=Vs,ye[4]=Hs,ye[5]=Ta,ye[6]=_l,ye[7]=Ma,ye[8]=Ka,ye[9]=vs}finalize(){const{h:x,pad:M}=this,z=new Uint16Array(10);let J=x[1]>>>13;x[1]&=8191;for(let je=2;je<10;je++)x[je]+=J,J=x[je]>>>13,x[je]&=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 je=1;je<10;je++)z[je]=x[je]+J,J=z[je]>>>13,z[je]&=8191;z[9]-=8192;let ye=(1^J)-1;for(let je=0;je<10;je++)z[je]&=ye;ye=~ye;for(let je=0;je<10;je++)x[je]=x[je]&ye|z[je];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 Le=x[0]+M[0];x[0]=65535&Le;for(let je=1;je<8;je++)Le=(x[je]+M[je]|0)+(Le>>>16)|0,x[je]=65535&Le}update(x){Io(this);const{buffer:M,blockLen:z}=this,J=(x=Ho(x)).length;for(let ye=0;ye>>0,x[ye++]=z[Le]>>>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 ja(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 lc(b)),Va=b=>Uint8Array.from(b.split("").map(x=>x.charCodeAt(0))),Di=Va("expand 16-byte k"),Us=Va("expand 32-byte k"),oa=Ve(Di),No=Ve(Us);function de(b,x){return b<>>32-x}function q(b){return b.byteOffset%4==0}No.slice();const bn=2**32-1,Rn=new Uint32Array;function Yr(b,x){const{allowShortKeys:M,extendNonceFn:z,counterLength:J,counterRight:ye,rounds:Le}=function zl(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(Le),vo(ye),vo(M),(je,it,Ct,Kt,Ht=0)=>{vi(je),vi(it),vi(Ct);const dn=Ct.length;if(Kt||(Kt=new Uint8Array(dn)),vi(Kt),ss(Ht),Ht<0||Ht>=bn)throw new Error("arx: counter overflow");if(Kt.length=bn)throw new Error("arx: counter overflow");const Qt=Math.min(64,it-rn);if(Ht&&64===Qt){const Jt=rn/4;if(rn%4!=0)throw new Error("arx: invalid block position");for(let Mn,Dn=0;Dn<16;Dn++)Mn=Jt+Dn,vn[Mn]=dn[Mn]^Kt[Dn];rn+=64}else{for(let Dn,Jt=0;Jt0;)vn.pop().fill(0);return Kt}}function Li(b,x,M,z,J,ye=20){let Le=b[0],je=b[1],it=b[2],Ct=b[3],Kt=x[0],Ht=x[1],dn=x[2],vn=x[3],rn=x[4],Qt=x[5],Jt=x[6],Dn=x[7],Mn=J,rr=M[0],ar=M[1],Br=M[2],yr=Le,Nr=je,Vr=it,Ci=Ct,fi=Kt,li=Ht,Ji=dn,ji=vn,qi=rn,er=Qt,br=Jt,Zr=Dn,pi=Mn,Er=rr,Vi=ar,ki=Br;for(let Vs=0;Vs{b.update(x);const M=x.length%16;M&&b.update(fs.subarray(M))},Os=new Uint8Array(32);function Tl(b,x,M,z,J){const ye=b(x,M,Os),Le=ro.create(ye);J&&jo(Le,J),jo(Le,z);const je=new Uint8Array(16),it=re(je);ce(it,0,BigInt(J?J.length:0),!0),ce(it,8,BigInt(z.length),!0),Le.update(je);const Ct=Le.digest();return ye.fill(0),Ct}const xa=b=>(x,M,z)=>(vi(x,32),vi(M),{encrypt:(ye,Le)=>{const je=ye.length,it=je+16;Le?vi(Le,it):Le=new Uint8Array(it),b(x,M,ye,Le,1);const Ct=Tl(b,x,M,Le.subarray(0,-16),z);return Le.set(Ct,je),Le},decrypt:(ye,Le)=>{const je=ye.length,it=je-16;if(je<16)throw new Error("encrypted data must be at least 16 bytes");Le?vi(Le,it):Le=new Uint8Array(it);const Ct=ye.subarray(0,-16);if(!Qa(ye.subarray(-16),Tl(b,x,M,Ct,z)))throw new Error("invalid tag");return b(x,M,Ct,Le,1),Le}});xa(Qr),xa(di);class cl 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 Le=0;Lenew cl(b,x).update(M).digest();Ml.create=(b,x)=>new cl(b,x);const sa=new Uint8Array([0]),Ql=new Uint8Array;var cc=Object.defineProperty,To=(b,x)=>{for(var M in x)cc(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;xUc,QueueNode:()=>su,binarySearch:()=>ou,insertEventIntoAscendingList:()=>cd,insertEventIntoDescendingList:()=>oh,normalizeURL:()=>wc,utf8Decoder:()=>Rs,utf8Encoder:()=>Zs});var Rs=new TextDecoder("utf-8"),Zs=new TextEncoder;function wc(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 oh(b,x){const[M,z]=ou(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 cd(b,x){const[M,z]=ou(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 ou(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 su=class{value;next=null;prev=null;constructor(b){this.value=b}},Uc=class{first;last;constructor(){this.first=null,this.last=null}enqueue(b){const x=new su(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 dl(b){let x=Qo(Zs.encode(function aa(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 Ks.utils.randomPrivateKey()}getPublicKey(b){return(0,qr.My)(Ks.getPublicKey(b))}finalizeEvent(b,x){const M=b;return M.pubkey=(0,qr.My)(Ks.getPublicKey(x)),M.id=dl(M),M.sig=(0,qr.My)(Ks.sign(dl(M),x)),M[Ja]=!0,M}verifyEvent(b){if("boolean"==typeof b[Ja])return b[Ja];const x=dl(b);if(x!==b.id)return b[Ja]=!1,!1;try{const M=Ks.verify(b.sig,x,b.pubkey);return b[Ja]=M,M}catch{return b[Ja]=!1,!1}}},tl=Lr.generateSecretKey,$c=Lr.getPublicKey,la=Lr.finalizeEvent,hl=Lr.verifyEvent;function Da(b){return 1e3<=b&&b<1e4||[1,2,4,5,6,7,8,16,40,41,42,43,44].includes(b)}function xc(b){return[0,3].includes(b)||1e4<=b&&b<2e4}function au(b){return 2e4<=b&&b<3e4}function Xi(b){return 3e4<=b&&b<4e4}function Pu(b){return Da(b)?"regular":xc(b)?"replaceable":au(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}To({},{Application:()=>Xn,BadgeAward:()=>Dt,BadgeDefinition:()=>$e,BlockedRelaysList:()=>Il,BookmarkList:()=>cu,Bookmarksets:()=>$,Calendar:()=>Vn,CalendarEventRSVP:()=>ur,ChannelCreation:()=>ri,ChannelHideMessage:()=>as,ChannelMessage:()=>io,ChannelMetadata:()=>hi,ChannelMuteUser:()=>Ko,ClassifiedListing:()=>kn,ClientAuth:()=>dd,CommunitiesList:()=>Ti,CommunityDefinition:()=>zr,CommunityPostApproval:()=>cf,Contacts:()=>K,CreateOrUpdateProduct:()=>Wt,CreateOrUpdateStall:()=>It,Curationsets:()=>oe,Date:()=>Qn,DirectMessageRelaysList:()=>Sa,DraftClassifiedListing:()=>jn,DraftLong:()=>Tn,Emojisets:()=>qt,EncryptedDirectMessage:()=>P,EventDeletion:()=>X,FileMetadata:()=>fl,FileServerPreference:()=>hf,Followsets:()=>Ha,GenericRepost:()=>fr,Genericlists:()=>O,GiftWrap:()=>Wr,HTTPAuth:()=>$u,Handlerinformation:()=>kr,Handlerrecommendation:()=>Pr,Highlights:()=>ud,InterestsList:()=>dc,Interestsets:()=>gt,JobFeedback:()=>uf,JobRequest:()=>ah,JobResult:()=>Dc,Label:()=>lf,LightningPubRPC:()=>Uu,LiveChatMessage:()=>Cc,LiveEvent:()=>Kn,LongFormArticle:()=>ln,Metadata:()=>xs,Mutelist:()=>xn,NWCWalletInfo:()=>kp,NWCWalletRequest:()=>qs,NWCWalletResponse:()=>$s,NostrConnect:()=>Ol,OpenTimestamps:()=>Cs,Pinlist:()=>gi,PrivateDirectMessage:()=>on,ProblemTracker:()=>uc,ProfileBadges:()=>Ae,PublicChatsList:()=>kl,Reaction:()=>We,RecommendRelay:()=>N,RelayList:()=>Bu,Relaysets:()=>B,Report:()=>Mp,Reporting:()=>sh,Repost:()=>he,Seal:()=>yn,SearchRelaysList:()=>ps,ShortTextNote:()=>jc,Time:()=>ir,UserEmojiList:()=>Vc,UserStatuses:()=>nr,Zap:()=>Fu,ZapGoal:()=>df,ZapRequest:()=>lu,classifyKind:()=>Pu,isEphemeralKind:()=>au,isKind:()=>Tr,isParameterizedReplaceableKind:()=>Xi,isRegularKind:()=>Da,isReplaceableKind:()=>xc});var xs=0,jc=1,N=2,K=3,P=4,X=5,he=6,We=7,Dt=8,yn=13,on=14,fr=16,ri=40,hi=41,io=42,as=43,Ko=44,Cs=1040,Wr=1059,fl=1063,Cc=1311,uc=1971,Mp=1984,sh=1984,lf=1985,cf=4550,ah=5999,Dc=6999,uf=7e3,df=9041,lu=9734,Fu=9735,ud=9802,xn=1e4,gi=10001,Bu=10002,cu=10003,Ti=10004,kl=10005,Il=10006,ps=10007,dc=10015,Vc=10030,Sa=10050,hf=10096,kp=13194,Uu=21e3,dd=22242,qs=23194,$s=23195,Ol=24133,$u=27235,Ha=3e4,O=30001,B=30002,$=30003,oe=30004,Ae=30008,$e=30009,gt=30015,It=30017,Wt=30018,ln=30023,Tn=30024,qt=30030,Xn=30078,Kn=30311,nr=30315,kn=30402,jn=30403,Qn=31922,ir=31923,Vn=31924,ur=31925,Pr=31989,kr=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,Le])=>ye===M.slice(1)&&-1!==J.indexOf(Le)))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 vr(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 gs(b,x){return{kind:dd,created_at:Math.floor(Date.now()/1e3),tags:[["relay",b],["challenge",x]],content:""}}function _s(){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)}To({},{getHex64:()=>Bo,getInt:()=>Ds,getSubscriptionId:()=>vr,matchEventId:()=>jr,matchEventKind:()=>$i,matchEventPubkey:()=>Fi}),To({},{makeAuthEvent:()=>gs});var hc=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 Uc;queueRunning=!1;challenge;serial=0;verifyEvent;_WebSocket;constructor(b,x){this.url=wc(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 _s();b.queueRunning=!1})()}handleNext(){const b=this.incomingMessageQueue.dequeue();if(!b)return!1;const x=vr(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(gs(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,Le)=>{M.openCountRequests.set(z,{resolve:ye,reject:Le})});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 fc(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()}},fc=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 mc,Sc=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=wc(b);let z=M.relays.get(b);return z||(z=new nl(b,{verifyEvent:M.trustedRelayURLs.has(b)?hc:M.verifyEvent,websocketImplementation:M._WebSocket}),x?.connectionTimeout&&(z.connectionTimeout=x.connectionTimeout),M.relays.set(b,z)),yield z.connect(),z})()}close(b){b.map(wc).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=(dn,vn)=>{let rn=this.seenOn.get(vn);rn||(rn=new Set,this.seenOn.set(vn,rn)),rn.add(dn)});const z=new Set,J=[],ye=Object.keys(b).length,Le=[];let je=dn=>{Le[dn]=!0,Le.filter(vn=>vn).length===ye&&(x.oneose?.(),je=()=>{})};const it=[];let Ct=(dn,vn)=>{je(dn),it[dn]=vn,it.filter(rn=>rn).length===ye&&(x.onclose?.(it),Ct=()=>{})};const Kt=dn=>{if(x.alreadyHaveEvent?.(dn))return!0;const vn=z.has(dn);return z.add(dn),vn},Ht=Promise.all(Object.entries(b).map(function(){var dn=(0,a.A)(function*(vn,rn,Qt){if(Qt.indexOf(vn)!==rn)return void Ct(rn,"duplicate url");let Mn,[Jt,Dn]=vn;Jt=wc(Jt);try{Mn=yield M.ensureRelay(Jt,{connectionTimeout:x.maxWait?Math.max(.8*x.maxWait,x.maxWait-1e3):void 0})}catch(ar){return void Ct(rn,ar?.message||String(ar))}let rr=Mn.subscribe(Dn,{...x,oneose:()=>je(rn),onclose:ar=>Ct(rn,ar),alreadyHaveEvent:Kt,eoseTimeout:x.maxWait});J.push(rr)});return function(vn,rn,Qt){return dn.apply(this,arguments)}}()));return{close:()=>(0,a.A)(function*(){yield Ht,J.forEach(dn=>{dn.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 Le=[];z.subscribeManyEose(b,[x],{...M,onevent(je){Le.push(je)},onclose(je){ye(Le)}})});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,Le)=>Le.created_at-ye.created_at),J[0]||null})()}publish(b,x){var M=this;return b.map(wc).map(function(){var z=(0,a.A)(function*(J,ye,Le){if(Le.indexOf(J)!==ye)return Promise.reject("duplicate url");let je=yield M.ensureRelay(J);return je.publish(x).then(it=>{if(M.trackRelays){let Ct=M.seenOn.get(x.id);Ct||(Ct=new Set,M.seenOn.set(x.id,Ct)),Ct.add(je)}return it})});return function(J,ye,Le){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{mc=WebSocket}catch{}var Wc=class extends Sc{constructor(){super({verifyEvent:hl,websocketImplementation:mc})}},zc={};To(zc,{BECH32_REGEX:()=>pl,Bech32MaxSize:()=>Wa,NostrTypeGuard:()=>ca,decode:()=>ql,encodeBytes:()=>fd,naddrEncode:()=>du,neventEncode:()=>pd,noteEncode:()=>Ip,nprofileEncode:()=>lh,npubEncode:()=>ju,nsecEncode:()=>hd});var ca={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||"")},Wa=5e3,pl=/[\x21-\x7E]{1,83}1[023456789acdefghjklmnpqrstuvwxyz]{6,}/;function ql(b){let{prefix:x,words:M}=ao.I.decode(b,Wa),z=new Uint8Array(ao.I.fromWords(M));switch(x){case"nprofile":{let J=Rl(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=>Rs.decode(ye)):[]}}}case"nevent":{let J=Rl(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=>Rs.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=Rl(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:Rs.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=>Rs.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 Rl(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.lengthZs.encode(M))}))}function pd(b){let x;return void 0!==b.kind&&(x=function uu(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)),Ac("nevent",hu({0:[(0,qr.aT)(b.id)],1:(b.relays||[]).map(z=>Zs.encode(z)),2:b.author?[(0,qr.aT)(b.author)]:[],3:x?[new Uint8Array(x)]:[]}))}function du(b){let x=new ArrayBuffer(4);return new DataView(x).setUint32(0,b.kind,!1),Ac("naddr",hu({0:[Zs.encode(b.identifier)],1:(b.relays||[]).map(z=>Zs.encode(z)),2:[(0,qr.aT)(b.pubkey)],3:[new Uint8Array(x)]}))}function hu(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 Nl={};function ff(b,x,M){return fu.apply(this,arguments)}function fu(){return(fu=(0,a.A)(function*(b,x,M){const z=b instanceof Uint8Array?(0,qr.My)(b):b,ye=Kc(Ir.getSharedSecret(z,"02"+x));let Le=Uint8Array.from((0,qr.po)(16)),je=Zs.encode(M),it=Ar(ye,Le).encrypt(je);return`${ao.K3.encode(new Uint8Array(it))}?iv=${ao.K3.encode(new Uint8Array(Le.buffer))}`})).apply(this,arguments)}function uh(b,x,M){return gd.apply(this,arguments)}function gd(){return(gd=(0,a.A)(function*(b,x,M){const z=b instanceof Uint8Array?(0,qr.My)(b):b;let[J,ye]=M.split("?iv="),je=Kc(Ir.getSharedSecret(z,"02"+x)),it=ao.K3.decode(ye),Ct=ao.K3.decode(J),Kt=Ar(je,it).decrypt(Ct);return Rs.decode(Kt)})).apply(this,arguments)}function Kc(b){return b.slice(1,33)}To(Nl,{decrypt:()=>uh,encrypt:()=>ff}),To({},{NIP05_REGEX:()=>pu,isNip05:()=>_d,isValid:()=>mf,queryProfile:()=>mu,searchDomain:()=>hh,useFetchImplementation:()=>pf});var Tc,pu=/^(?:([\w.+-]+)@)?([\w_-]+(\.[\w_-]+)+)$/,_d=b=>pu.test(b||"");try{Tc=fetch}catch{}function pf(b){Tc=b}function hh(b){return fh.apply(this,arguments)}function fh(){return(fh=(0,a.A)(function*(b,x=""){try{const M=`https://${b}/.well-known/nostr.json?name=${x}`,z=yield Tc(M,{redirect:"manual"});if(200!==z.status)throw Error("Wrong response code");return(yield z.json()).names}catch{return{}}})).apply(this,arguments)}function mu(b){return Ll.apply(this,arguments)}function Ll(){return(Ll=(0,a.A)(function*(b){const x=b.match(pu);if(!x)return null;const[,M="_",z]=x;try{const J=`https://${z}/.well-known/nostr.json?name=${M}`,ye=yield Tc(J,{redirect:"manual"});if(200!==ye.status)throw Error("Wrong response code");const Le=yield ye.json(),je=Le.names[M];return je?{pubkey:je,relays:Le.relays?.[je]}:null}catch{return null}})).apply(this,arguments)}function mf(b,x){return ph.apply(this,arguments)}function ph(){return(ph=(0,a.A)(function*(b,x){const M=yield mu(x);return!!M&&M.pubkey===b})).apply(this,arguments)}function Gc(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[Le,je,it,Ct,Kt]=ye,Ht={id:je,relays:it?[it]:[],author:Kt};if("root"===Ct){x.root=Ht;continue}if("reply"===Ct){x.reply=Ht;continue}if("mention"===Ct){x.mentions.push(Ht);continue}M?z=Ht:M=Ht,x.mentions.push(Ht)}else{if("q"===ye[0]&&ye[1]){const[Le,je,it]=ye;x.quotes.push({id:je,relays:it?[it]:[]})}"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 Le=x.profiles.find(je=>je.pubkey===J.author);Le&&Le.relays&&(J.relays||(J.relays=[]),Le.relays.forEach(je=>{-1===J.relays?.indexOf(je)&&J.relays.push(je)}),Le.relays=J.relays)}}),x.mentions.forEach(J=>{if(J.author){let ye=x.profiles.find(Le=>Le.pubkey===J.author);ye&&ye.relays&&(J.relays||(J.relays=[]),ye.relays.forEach(Le=>{-1===J.relays.indexOf(Le)&&J.relays.push(Le)}),ye.relays=J.relays)}}),x}To({},{parse:()=>Gc}),To({},{fetchRelayInformation:()=>_f,useFetchImplementation:()=>Op});try{fetch}catch{}function Op(b){}function _f(b){return _u.apply(this,arguments)}function _u(){return(_u=(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 mh(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 Vu(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=vf(z),mh(z.id)>=x)break}return z}function vf(b){return(0,qr.My)(Qo(Zs.encode(JSON.stringify([0,b.pubkey,b.created_at,b.kind,b.tags,b.content]))))}function gh(b,x,M,z){return la({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 Hu(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=Hu(b);if(void 0===M||""===b.content)return;let z;try{z=JSON.parse(b.content)}catch{return}return z.id===M.id&&(x||hl(z))?z:void 0}To({},{fastEventHash:()=>vf,getPow:()=>mh,minePow:()=>Vu}),To({},{finishRepostEvent:()=>gh,getRepostedEvent:()=>yf,getRepostedEventPointer:()=>Hu}),To({},{NOSTR_URI_REGEX:()=>Wu,parse:()=>ml,test:()=>Lp});var Wu=new RegExp(`nostr:(${pl.source})`);function Lp(b){return"string"==typeof b&&new RegExp(`^${Wu.source}$`).test(b)}function ml(b){const x=b.match(new RegExp(`^${Wu.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 la({...b,kind:We,tags:[...b.tags??[],...z,["e",x.id],["p",x.pubkey]],content:b.content??"+"},M)}function vh(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}To({},{finishReactionEvent:()=>vu,getReactedEventPointer:()=>vh}),To({},{matchAll:()=>yd,regex:()=>bf,replaceAll:()=>wf});var bf=()=>new RegExp(`\\b${Wu.source}\\b`,"g");function*yd(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)}))}To({},{channelCreateEvent:()=>bd,channelHideMessageEvent:()=>yh,channelMessageEvent:()=>Up,channelMetadataEvent:()=>Bp,channelMuteUserEvent:()=>gc});var bd=(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 la({kind:ri,tags:[...b.tags??[]],content:M,created_at:b.created_at},x)},Bp=(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 la({kind:hi,tags:[["e",b.channel_create_event_id],...b.tags??[]],content:M,created_at:b.created_at},x)},Up=(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"]),la({kind:io,tags:[...M,...b.tags??[]],content:b.content,created_at:b.created_at},x)},yh=(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 la({kind:as,tags:[["e",b.channel_message_event_id],...b.tags??[]],content:M,created_at:b.created_at},x)},gc=(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 la({kind:Ko,tags:[["p",b.pubkey_to_mute],...b.tags??[]],content:M,created_at:b.created_at},x)};To({},{EMOJI_SHORTCODE_REGEX:()=>Xc,matchAll:()=>zu,regex:()=>Pl,replaceAll:()=>$p});var yu,Xc=/:(\w+):/,Pl=()=>new RegExp(`\\B${Xc.source}\\B`,"g");function*zu(b){const x=b.matchAll(Pl());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 $p(b,x){return b.replaceAll(Pl(),(M,z)=>x({shortcode:M,name:z}))}To({},{useFetchImplementation:()=>il,validateGithub:()=>jp});try{yu=fetch}catch{}function il(b){yu=b}function jp(b,x,M){return bh.apply(this,arguments)}function bh(){return(bh=(0,a.A)(function*(b,x,M){try{return(yield(yield yu(`https://gist.github.com/${x}/${M}/raw`)).text())===`Verifying that I control the following Nostr public key: ${b}`}catch{return!1}})).apply(this,arguments)}To({},{decrypt:()=>xh,encrypt:()=>Eh,getConversationKey:()=>Ku,v2:()=>Ch});var bu=1,wd=65535;function Ku(b,x){const M=Ir.getSharedSecret(b,"02"+x).subarray(1,33);return function ul(b,x,M){return tr.hash(b),void 0===M&&(M=new Uint8Array(b.outputLen)),Ml(b,(0,qr.ZJ)(M),(0,qr.ZJ)(x))}(Qo,M,"nip44-v2")}function fg(b,x){const M=function Bc(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=Ql);const ye=new Uint8Array(J*b.outputLen),Le=Ml.create(b,x),je=Le._cloneInto(),it=new Uint8Array(Le.outputLen);for(let Ct=0;Ctwd)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(Ed(M)-M);return(0,qr.Id)(z,x,J)}(b),je=Qr(z,J,Le),it=Cf(ye,je,M);return ao.K3.encode((0,qr.Id)(new Uint8Array([2]),M,je,it))}function xh(b,x){const{nonce:M,ciphertext:z,mac:J}=function wh(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:Le,hmac_key:je}=fg(x,M);if(!Qa(Cf(je,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(xwd||M.length!==x||b.length!==2+Ed(x))throw new Error("invalid padding");return Rs.decode(M)}(Qr(ye,Le,z))}var Sh,Ch={utils:{getConversationKey:Ku,calcPaddedLen:Ed},encrypt:Eh,decrypt:xh};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 xd(b,x,M){return Dh.apply(this,arguments)}function Dh(){return(Dh=(0,a.A)(function*(b,x,M){const J=yield ff(x,b,JSON.stringify({method:"pay_invoice",params:{invoice:M}})),ye={kind:qs,created_at:Math.round(Date.now()/1e3),content:J,tags:[["p",b]]};return la(ye,x)})).apply(this,arguments)}To({},{makeNwcRequestEvent:()=>xd,parseConnectionString:()=>Sf}),To({},{getZapEndpoint:()=>Mc,makeZapReceipt:()=>pg,makeZapRequest:()=>Cd,useFetchImplementation:()=>Hp,validateZapRequest:()=>Dd});try{Sh=fetch}catch{}function Hp(b){Sh=b}function Mc(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:Le}=ao.I.decode(M,1e3),je=ao.I.fromWords(Le);x=Rs.decode(je)}else{if(!z)return null;{let[Le,je]=z.split("@");x=new URL(`/.well-known/lnurlp/${Le}`,`https://${je}`).toString()}}let ye=yield(yield Sh(x)).json();if(ye.allowsNostr&&ye.nostrPubkey)return ye.callback}catch{}return null})).apply(this,arguments)}function Cd({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 Dd(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(!hl(x))return"Invalid signature on zap request.";let M=x.tags.find(([ye,Le])=>"p"===ye&&Le);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,Le])=>"e"===ye&&Le);return z&&!z[1].match(/^[a-f0-9]{64}$/)?"Zap request 'e' tag is not valid hex.":x.tags.find(([ye,Le])=>"relays"===ye&&Le)?null:"Zap request doesn't have a 'relays' tag."}function pg({zapRequest:b,preimage:x,bolt11:M,paidAt:z}){let J=JSON.parse(b),ye=J.tags.filter(([je])=>"e"===je||"p"===je||"a"===je),Le={kind:9735,created_at:Math.round(z.getTime()/1e3),content:"",tags:[...ye,["P",J.pubkey],["bolt11",M],["description",b]]};return x&&Le.tags.push(["preimage",x]),Le}To({},{createRumor:()=>Tf,createSeal:()=>Sd,createWrap:()=>wu,unwrapEvent:()=>Mh,unwrapManyEvents:()=>Eu,wrapEvent:()=>Ah,wrapManyEvents:()=>Th});var Qc=()=>Math.round(Date.now()/1e3),zp=()=>Math.round(Qc()-172800*Math.random()),gl=(b,x)=>Ku(b,x),kc=(b,x,M)=>Eh(JSON.stringify(b),gl(x,M)),js=(b,x)=>JSON.parse(xh(b.content,gl(x,b.pubkey)));function Tf(b,x){const M={created_at:Qc(),content:"",tags:[],...b,pubkey:$c(x)};return M.id=dl(M),M}function Sd(b,x,M){return la({kind:yn,content:kc(b,x,M),created_at:zp(),tags:[]},x)}function wu(b,x){const M=tl();return la({kind:Wr,content:kc(b,M,x),created_at:zp(),tags:[["p",x]]},M)}function Ah(b,x,M){return wu(Sd(Tf(b,x),x,M),M)}function Th(b,x,M){if(!M||0===M.length)throw new Error("At least one recipient is required.");const z=$c(x),J=[Ah(b,x,z)];return M.forEach(ye=>{J.push(Ah(b,x,ye))}),J}function Mh(b,x){const M=js(b,x);return js(M,x)}function Eu(b,x){let M=[];return b.forEach(z=>{M.push(Mh(z,x))}),M.sort((z,J)=>z.created_at-J.created_at),M}To({},{getToken:()=>Ic,hashPayload:()=>Zc,unpackEventFromToken:()=>Mf,validateEvent:()=>Ad,validateEventKind:()=>kf,validateEventMethodTag:()=>Aa,validateEventPayloadTag:()=>Oh,validateEventTimestamp:()=>Yu,validateEventUrlTag:()=>Ih,validateToken:()=>Kp});var kh="Nostr ";function Ic(b,x,M){return Jl.apply(this,arguments)}function Jl(){return(Jl=(0,a.A)(function*(b,x,M,z=!1,J){const ye={kind:$u,tags:[["u",b],["method",x]],created_at:Math.round((new Date).getTime()/1e3),content:""};J&&ye.tags.push(["payload",Zc(J)]);const Le=yield M(ye);return(z?kh:"")+ao.K3.encode(Zs.encode(JSON.stringify(Le)))})).apply(this,arguments)}function Kp(b,x,M){return xu.apply(this,arguments)}function xu(){return(xu=(0,a.A)(function*(b,x,M){const z=yield Mf(b).catch(ye=>{throw ye});return yield Ad(z,x,M).catch(ye=>{throw ye})})).apply(this,arguments)}function Mf(b){return Xu.apply(this,arguments)}function Xu(){return(Xu=(0,a.A)(function*(b){if(!b)throw new Error("Missing token");b=b.replace(kh,"");const x=Rs.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 Yu(b){return!!b.created_at&&Math.round((new Date).getTime()/1e3)-b.created_at<60}function kf(b){return b.kind===$u}function Ih(b,x){const M=b.tags.find(z=>"u"===z[0]);return!!M&&M.length>0&&M[1]===x}function Aa(b,x){const M=b.tags.find(z=>"method"===z[0]);return!!M&&M.length>0&&M[1].toLowerCase()===x.toLowerCase()}function Zc(b){const x=Qo(Zs.encode(JSON.stringify(b)));return(0,qr.My)(x)}function Oh(b,x){const M=b.tags.find(J=>"payload"===J[0]);if(!M)return!1;const z=Zc(x);return M.length>0&&M[1]===z}function Ad(b,x,M,z){return Qu.apply(this,arguments)}function Qu(){return(Qu=(0,a.A)(function*(b,x,M,z){if(!hl(b))throw new Error("Invalid nostr event, signature invalid");if(!kf(b))throw new Error("Invalid nostr event, kind invalid");if(!Yu(b))throw new Error("Invalid nostr event, created_at timestamp invalid");if(!Ih(b,x))throw new Error("Invalid nostr event, url tag invalid");if(!Aa(b,M))throw new Error("Invalid nostr event, method tag invalid");if(z&&"object"==typeof z&&Object.keys(z).length>0&&!Oh(b,z))throw new Error("Invalid nostr event, payload tag does not match request body hash");return!0})).apply(this,arguments)}},3797:(o,s,r)=>{"use strict";r.d(s,{OS:()=>k,av:()=>R,qT:()=>pe,rV:()=>te}),Symbol("verified");var k=0,R=1,te=4,pe=7},4704:(o,s,r)=>{"use strict";r.d(s,{Vw:()=>pe,My:()=>T,Id:()=>_e,O8:()=>w,aT:()=>k,po:()=>ae,Ow:()=>C,ZJ:()=>we,ld:()=>Ne});const i="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0,a=le=>le instanceof Uint8Array,w=le=>new DataView(le.buffer,le.byteOffset,le.byteLength),C=(le,ke)=>le<<32-ke|le>>>ke;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},(le,ke)=>ke.toString(16).padStart(2,"0"));function T(le){if(!a(le))throw new Error("Uint8Array expected");let ke="";for(let Ue=0;Uest+ft.length,0));let Ue=0;return le.forEach(st=>{if(!a(st))throw new Error("Uint8Array expected");ke.set(st,Ue),Ue+=st.length}),ke}class pe{clone(){return this._cloneInto()}}function Ne(le){const ke=st=>le().update(we(st)).digest(),Ue=le();return ke.outputLen=Ue.outputLen,ke.blockLen=Ue.blockLen,ke.create=()=>le(),ke}function ae(le=32){if(i&&"function"==typeof i.getRandomValues)return i.getRandomValues(new Uint8Array(le));throw new Error("crypto.getRandomValues must be defined")}},2661:(o,s,r)=>{"use strict";function i(a,c){this.v=a,this.k=c}r.d(s,{A:()=>i})},3014:(o,s,r)=>{"use strict";function i(c,y,w,C,A,S,T){try{var k=c[S](T),R=k.value}catch(G){return void w(G)}k.done?y(R):Promise.resolve(R).then(C,A)}function a(c){return function(){var y=this,w=arguments;return new Promise(function(C,A){var S=c.apply(y,w);function T(R){i(S,C,A,T,k,"next",R)}function k(R){i(S,C,A,T,k,"throw",R)}T(void 0)})}}r.d(s,{A:()=>a})},5137:(o,s,r)=>{"use strict";r.d(s,{A:()=>a});var i=r(2661);function a(c){return new i.A(c,0)}},9129:(o,s,r)=>{"use strict";r.d(s,{A:()=>a});var i=r(2661);function a(y){return function(){return new c(y.apply(this,arguments))}}function c(y){var w,C;function A(T,k){try{var R=y[T](k),G=R.value,Z=G instanceof i.A;Promise.resolve(Z?G.v:G).then(function(te){if(Z){var we="return"===T?"return":"next";if(!G.k||te.done)return A(we,te);te=y[we](te).value}S(R.done?"return":"normal",te)},function(te){A("throw",te)})}catch(te){S("throw",te)}}function S(T,k){switch(T){case"return":w.resolve({value:k,done:!0});break;case"throw":w.reject(k);break;default:w.resolve({value:k,done:!1})}(w=w.next)?A(w.key,w.arg):C=null}this._invoke=function(T,k){return new Promise(function(R,G){var Z={key:T,arg:k,resolve:R,reject:G,next:null};C?C=C.next=Z:(w=C=Z,A(T,k))})},"function"!=typeof y.return&&(this.return=void 0)}c.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},c.prototype.next=function(y){return this._invoke("next",y)},c.prototype.throw=function(y){return this._invoke("throw",y)},c.prototype.return=function(y){return this._invoke("return",y)}},1635:(o,s,r)=>{"use strict";function G(ze,Be,Ut,Ke){return new(Ut||(Ut=Promise))(function(Xe,Ge){function pt(Nt){try{qe(Ke.next(Nt))}catch(tn){Ge(tn)}}function se(Nt){try{qe(Ke.throw(Nt))}catch(tn){Ge(tn)}}function qe(Nt){Nt.done?Xe(Nt.value):function lt(Xe){return Xe instanceof Ut?Xe:new Ut(function(Ge){Ge(Xe)})}(Nt.value).then(pt,se)}qe((Ke=Ke.apply(ze,Be||[])).next())})}function Se(ze){return this instanceof Se?(this.v=ze,this):new Se(ze)}function xe(ze,Be,Ut){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var lt,Ke=Ut.apply(ze,Be||[]),Xe=[];return lt=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),pt("next"),pt("throw"),pt("return",function Ge(Wn){return function(Pt){return Promise.resolve(Pt).then(Wn,tn)}}),lt[Symbol.asyncIterator]=function(){return this},lt;function pt(Wn,Pt){Ke[Wn]&&(lt[Wn]=function(en){return new Promise(function(an,Yn){Xe.push([Wn,en,an,Yn])>1||se(Wn,en)})},Pt&&(lt[Wn]=Pt(lt[Wn])))}function se(Wn,Pt){try{!function qe(Wn){Wn.value instanceof Se?Promise.resolve(Wn.value.v).then(Nt,tn):pn(Xe[0][2],Wn)}(Ke[Wn](Pt))}catch(en){pn(Xe[0][3],en)}}function Nt(Wn){se("next",Wn)}function tn(Wn){se("throw",Wn)}function pn(Wn,Pt){Wn(Pt),Xe.shift(),Xe.length&&se(Xe[0][0],Xe[0][1])}}function le(ze){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Ut,Be=ze[Symbol.asyncIterator];return Be?Be.call(ze):(ze=function _e(ze){var Be="function"==typeof Symbol&&Symbol.iterator,Ut=Be&&ze[Be],Ke=0;if(Ut)return Ut.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(Be?"Object is not iterable.":"Symbol.iterator is not defined.")}(ze),Ut={},Ke("next"),Ke("throw"),Ke("return"),Ut[Symbol.asyncIterator]=function(){return this},Ut);function Ke(Xe){Ut[Xe]=ze[Xe]&&function(Ge){return new Promise(function(pt,se){!function lt(Xe,Ge,pt,se){Promise.resolve(se).then(function(qe){Xe({value:qe,done:pt})},Ge)}(pt,se,(Ge=ze[Xe](Ge)).done,Ge.value)})}}}r.d(s,{AQ:()=>xe,N3:()=>Se,sH:()=>G,xN:()=>le}),"function"==typeof SuppressedError&&SuppressedError}},o=>{o(o.s=770)}]); \ No newline at end of file diff --git a/ngsw.json b/ngsw.json index 3a6cdb5..63cb867 100644 --- a/ngsw.json +++ b/ngsw.json @@ -1,6 +1,6 @@ { "configVersion": 1, - "timestamp": 1733744817986, + "timestamp": 1733814904895, "index": "/index.html", "assetGroups": [], "dataGroups": [], diff --git a/runtime.13e67514b0789597.js b/runtime.89d58a2cd0dbb35e.js similarity index 72% rename from runtime.13e67514b0789597.js rename to runtime.89d58a2cd0dbb35e.js index 1fd103d..b781899 100644 --- a/runtime.13e67514b0789597.js +++ b/runtime.89d58a2cd0dbb35e.js @@ -1 +1 @@ -(()=>{"use strict";var e,v={},g={};function r(e){var n=g[e];if(void 0!==n)return n.exports;var a=g[e]={id:e,loaded:!1,exports:{}};return v[e].call(a.exports,a,a.exports,r),a.loaded=!0,a.exports}r.m=v,e=[],r.O=(n,a,i,d)=>{if(!a){var t=1/0;for(f=0;f=d)&&Object.keys(r.O).every(p=>r.O[p](a[c]))?a.splice(c--,1):(u=!1,d0&&e[f-1][2]>d;f--)e[f]=e[f-1];e[f]=[a,i,d]},r.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return r.d(n,{a:n}),n},r.d=(e,n)=>{for(var a in n)r.o(n,a)&&!r.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:n[a]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((n,a)=>(r.f[a](e,n),n),[])),r.u=e=>(76===e?"common":e)+"."+{45:"e2d1978beb0db964",76:"14f215e4f4e9af93",87:"3a2e64bb6d08ae46",232:"fe0ee3b46cf31cef",256:"fa95921fc1c36f02",318:"b458f6d3dc91cab3",371:"1350987134a35fcd",394:"0a930ff2a44527ee",512:"a58cc307838d066c",523:"cd4f68e83ae62112",544:"f7c89777e7610cbd",556:"14e4bee993e6d7c2",664:"c8f673583f1afdcd",767:"693a4a35aeefeae9",785:"9c1c71de137cfc36",824:"8d2487fbf0b724f4",836:"6ce8ff768e0faa4d",859:"5c6e13c9e52b4d5a",863:"7249541104deb71f",957:"2e2b6cc7c5c667e9"}[e]+".js",r.miniCssF=e=>{},r.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),(()=>{var e={},n="angor:";r.l=(a,i,d,f)=>{if(e[a])e[a].push(i);else{var t,u;if(void 0!==d)for(var c=document.getElementsByTagName("script"),l=0;l{t.onerror=t.onload=null,clearTimeout(s);var h=e[a];if(delete e[a],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)}}})(),r.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;r.tt=()=>(void 0===e&&(e={createScriptURL:n=>n},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),r.tu=e=>r.tt().createScriptURL(e),r.p="",(()=>{var e={121:0};r.f.j=(i,d)=>{var f=r.o(e,i)?e[i]:void 0;if(0!==f)if(f)d.push(f[2]);else if(121!=i){var t=new Promise((o,b)=>f=e[i]=[o,b]);d.push(f[2]=t);var u=r.p+r.u(i),c=new Error;r.l(u,o=>{if(r.o(e,i)&&(0!==(f=e[i])&&(e[i]=void 0),f)){var b=o&&("load"===o.type?"missing":o.type),s=o&&o.target&&o.target.src;c.message="Loading chunk "+i+" failed.\n("+b+": "+s+")",c.name="ChunkLoadError",c.type=b,c.request=s,f[1](c)}},"chunk-"+i,i)}else e[i]=0},r.O.j=i=>0===e[i];var n=(i,d)=>{var c,l,[f,t,u]=d,o=0;if(f.some(s=>0!==e[s])){for(c in t)r.o(t,c)&&(r.m[c]=t[c]);if(u)var b=u(r)}for(i&&i(d);o{"use strict";var e,v={},g={};function r(e){var n=g[e];if(void 0!==n)return n.exports;var a=g[e]={id:e,loaded:!1,exports:{}};return v[e].call(a.exports,a,a.exports,r),a.loaded=!0,a.exports}r.m=v,e=[],r.O=(n,a,i,d)=>{if(!a){var t=1/0;for(f=0;f=d)&&Object.keys(r.O).every(p=>r.O[p](a[c]))?a.splice(c--,1):(u=!1,d0&&e[f-1][2]>d;f--)e[f]=e[f-1];e[f]=[a,i,d]},r.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return r.d(n,{a:n}),n},r.d=(e,n)=>{for(var a in n)r.o(n,a)&&!r.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:n[a]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((n,a)=>(r.f[a](e,n),n),[])),r.u=e=>(76===e?"common":e)+"."+{45:"e2d1978beb0db964",76:"14f215e4f4e9af93",87:"3a2e64bb6d08ae46",232:"fe0ee3b46cf31cef",256:"fa95921fc1c36f02",318:"b458f6d3dc91cab3",371:"1350987134a35fcd",394:"ae17eb3bca571aad",512:"a58cc307838d066c",523:"cd4f68e83ae62112",544:"f7c89777e7610cbd",556:"14e4bee993e6d7c2",664:"c8f673583f1afdcd",767:"693a4a35aeefeae9",785:"9c1c71de137cfc36",824:"8d2487fbf0b724f4",836:"6ce8ff768e0faa4d",859:"5c6e13c9e52b4d5a",863:"7249541104deb71f",957:"2e2b6cc7c5c667e9"}[e]+".js",r.miniCssF=e=>{},r.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),(()=>{var e={},n="angor:";r.l=(a,i,d,f)=>{if(e[a])e[a].push(i);else{var t,u;if(void 0!==d)for(var c=document.getElementsByTagName("script"),l=0;l{t.onerror=t.onload=null,clearTimeout(b);var h=e[a];if(delete e[a],t.parentNode&&t.parentNode.removeChild(t),h&&h.forEach(_=>_(p)),m)return m(p)},b=setTimeout(s.bind(null,void 0,{type:"timeout",target:t}),12e4);t.onerror=s.bind(null,t.onerror),t.onload=s.bind(null,t.onload),u&&document.head.appendChild(t)}}})(),r.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;r.tt=()=>(void 0===e&&(e={createScriptURL:n=>n},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),r.tu=e=>r.tt().createScriptURL(e),r.p="",(()=>{var e={121:0};r.f.j=(i,d)=>{var f=r.o(e,i)?e[i]:void 0;if(0!==f)if(f)d.push(f[2]);else if(121!=i){var t=new Promise((o,s)=>f=e[i]=[o,s]);d.push(f[2]=t);var u=r.p+r.u(i),c=new Error;r.l(u,o=>{if(r.o(e,i)&&(0!==(f=e[i])&&(e[i]=void 0),f)){var s=o&&("load"===o.type?"missing":o.type),b=o&&o.target&&o.target.src;c.message="Loading chunk "+i+" failed.\n("+s+": "+b+")",c.name="ChunkLoadError",c.type=s,c.request=b,f[1](c)}},"chunk-"+i,i)}else e[i]=0},r.O.j=i=>0===e[i];var n=(i,d)=>{var c,l,[f,t,u]=d,o=0;if(f.some(b=>0!==e[b])){for(c in t)r.o(t,c)&&(r.m[c]=t[c]);if(u)var s=u(r)}for(i&&i(d);o.ql-ui,.ql-container:not(.ql-disabled) li[data-list=unchecked]>.ql-ui{cursor:pointer}.ql-clipboard{left:-100000px;height:1px;overflow-y:hidden;position:absolute;top:50%}.ql-clipboard p{margin:0;padding:0}.ql-editor{box-sizing:border-box;counter-reset:list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;line-height:1.42;height:100%;outline:none;overflow-y:auto;padding:12px 15px;tab-size:4;-moz-tab-size:4;text-align:left;white-space:pre-wrap;word-wrap:break-word}.ql-editor>*{cursor:text}.ql-editor p,.ql-editor ol,.ql-editor pre,.ql-editor blockquote,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{margin:0;padding:0}@supports (counter-set:none){.ql-editor p,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{counter-set:list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor p,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{counter-reset:list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor table{border-collapse:collapse}.ql-editor td{border:1px solid #000;padding:2px 5px}.ql-editor ol{padding-left:1.5em}.ql-editor li{list-style-type:none;padding-left:1.5em;position:relative}.ql-editor li>.ql-ui:before{display:inline-block;margin-left:-1.5em;margin-right:.3em;text-align:right;white-space:nowrap;width:1.2em}.ql-editor li[data-list=checked]>.ql-ui,.ql-editor li[data-list=unchecked]>.ql-ui{color:#777}.ql-editor li[data-list=bullet]>.ql-ui:before{content:"\2022"}.ql-editor li[data-list=checked]>.ql-ui:before{content:"\2611"}.ql-editor li[data-list=unchecked]>.ql-ui:before{content:"\2610"}@supports (counter-set:none){.ql-editor li[data-list]{counter-set:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list]{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered]{counter-increment:list-0}.ql-editor li[data-list=ordered]>.ql-ui:before{content:counter(list-0,decimal) ". "}.ql-editor li[data-list=ordered].ql-indent-1{counter-increment:list-1}.ql-editor li[data-list=ordered].ql-indent-1>.ql-ui:before{content:counter(list-1,lower-alpha) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-1{counter-set:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-1{counter-reset:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-2{counter-increment:list-2}.ql-editor li[data-list=ordered].ql-indent-2>.ql-ui:before{content:counter(list-2,lower-roman) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-2{counter-set:list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-2{counter-reset:list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-3{counter-increment:list-3}.ql-editor li[data-list=ordered].ql-indent-3>.ql-ui:before{content:counter(list-3,decimal) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-3{counter-set:list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-3{counter-reset:list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-4{counter-increment:list-4}.ql-editor li[data-list=ordered].ql-indent-4>.ql-ui:before{content:counter(list-4,lower-alpha) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-4{counter-set:list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-4{counter-reset:list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-5{counter-increment:list-5}.ql-editor li[data-list=ordered].ql-indent-5>.ql-ui:before{content:counter(list-5,lower-roman) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-5{counter-set:list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-5{counter-reset:list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-6{counter-increment:list-6}.ql-editor li[data-list=ordered].ql-indent-6>.ql-ui:before{content:counter(list-6,decimal) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-6{counter-set:list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-6{counter-reset:list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-7{counter-increment:list-7}.ql-editor li[data-list=ordered].ql-indent-7>.ql-ui:before{content:counter(list-7,lower-alpha) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-7{counter-set:list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-7{counter-reset:list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-8{counter-increment:list-8}.ql-editor li[data-list=ordered].ql-indent-8>.ql-ui:before{content:counter(list-8,lower-roman) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-8{counter-set:list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-8{counter-reset:list-9}}.ql-editor li[data-list=ordered].ql-indent-9{counter-increment:list-9}.ql-editor li[data-list=ordered].ql-indent-9>.ql-ui:before{content:counter(list-9,decimal) ". "}.ql-editor .ql-indent-1:not(.ql-direction-rtl){padding-left:3em}.ql-editor li.ql-indent-1:not(.ql-direction-rtl){padding-left:4.5em}.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:3em}.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:4.5em}.ql-editor .ql-indent-2:not(.ql-direction-rtl){padding-left:6em}.ql-editor li.ql-indent-2:not(.ql-direction-rtl){padding-left:7.5em}.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:6em}.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:7.5em}.ql-editor .ql-indent-3:not(.ql-direction-rtl){padding-left:9em}.ql-editor li.ql-indent-3:not(.ql-direction-rtl){padding-left:10.5em}.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:9em}.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:10.5em}.ql-editor .ql-indent-4:not(.ql-direction-rtl){padding-left:12em}.ql-editor li.ql-indent-4:not(.ql-direction-rtl){padding-left:13.5em}.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:12em}.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:13.5em}.ql-editor .ql-indent-5:not(.ql-direction-rtl){padding-left:15em}.ql-editor li.ql-indent-5:not(.ql-direction-rtl){padding-left:16.5em}.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:15em}.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:16.5em}.ql-editor .ql-indent-6:not(.ql-direction-rtl){padding-left:18em}.ql-editor li.ql-indent-6:not(.ql-direction-rtl){padding-left:19.5em}.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:18em}.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:19.5em}.ql-editor .ql-indent-7:not(.ql-direction-rtl){padding-left:21em}.ql-editor li.ql-indent-7:not(.ql-direction-rtl){padding-left:22.5em}.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:21em}.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:22.5em}.ql-editor .ql-indent-8:not(.ql-direction-rtl){padding-left:24em}.ql-editor li.ql-indent-8:not(.ql-direction-rtl){padding-left:25.5em}.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:24em}.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:25.5em}.ql-editor .ql-indent-9:not(.ql-direction-rtl){padding-left:27em}.ql-editor li.ql-indent-9:not(.ql-direction-rtl){padding-left:28.5em}.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:27em}.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:28.5em}.ql-editor li.ql-direction-rtl{padding-right:1.5em}.ql-editor li.ql-direction-rtl>.ql-ui:before{margin-left:.3em;margin-right:-1.5em;text-align:left}.ql-editor table{table-layout:fixed;width:100%}.ql-editor table td{outline:none}.ql-editor .ql-code-block-container{font-family:monospace}.ql-editor .ql-video{display:block;max-width:100%}.ql-editor .ql-video.ql-align-center{margin:0 auto}.ql-editor .ql-video.ql-align-right{margin:0 0 0 auto}.ql-editor .ql-bg-black{background-color:#000}.ql-editor .ql-bg-red{background-color:#e60000}.ql-editor .ql-bg-orange{background-color:#f90}.ql-editor .ql-bg-yellow{background-color:#ff0}.ql-editor .ql-bg-green{background-color:#008a00}.ql-editor .ql-bg-blue{background-color:#06c}.ql-editor .ql-bg-purple{background-color:#93f}.ql-editor .ql-color-white{color:#fff}.ql-editor .ql-color-red{color:#e60000}.ql-editor .ql-color-orange{color:#f90}.ql-editor .ql-color-yellow{color:#ff0}.ql-editor .ql-color-green{color:#008a00}.ql-editor .ql-color-blue{color:#06c}.ql-editor .ql-color-purple{color:#93f}.ql-editor .ql-font-serif{font-family:Georgia,Times New Roman,serif}.ql-editor .ql-font-monospace{font-family:Monaco,Courier New,monospace}.ql-editor .ql-size-small{font-size:.75em}.ql-editor .ql-size-large{font-size:1.5em}.ql-editor .ql-size-huge{font-size:2.5em}.ql-editor .ql-direction-rtl{direction:rtl;text-align:inherit}.ql-editor .ql-align-center{text-align:center}.ql-editor .ql-align-justify{text-align:justify}.ql-editor .ql-align-right{text-align:right}.ql-editor .ql-ui{position:absolute}.ql-editor.ql-blank:before{color:#0009;content:attr(data-placeholder);font-style:italic;left:15px;pointer-events:none;position:absolute;right:15px}.ql-snow.ql-toolbar:after,.ql-snow .ql-toolbar:after{clear:both;content:"";display:table}.ql-snow.ql-toolbar button,.ql-snow .ql-toolbar button{background:none;border:none;cursor:pointer;display:inline-block;float:left;height:24px;padding:3px 5px;width:28px}.ql-snow.ql-toolbar button svg,.ql-snow .ql-toolbar button svg{float:left;height:100%}.ql-snow.ql-toolbar button:active:hover,.ql-snow .ql-toolbar button:active:hover{outline:none}.ql-snow.ql-toolbar input.ql-image[type=file],.ql-snow .ql-toolbar input.ql-image[type=file]{display:none}.ql-snow.ql-toolbar button:hover,.ql-snow .ql-toolbar button:hover,.ql-snow.ql-toolbar button:focus,.ql-snow .ql-toolbar button:focus,.ql-snow.ql-toolbar button.ql-active,.ql-snow .ql-toolbar button.ql-active,.ql-snow.ql-toolbar .ql-picker-label:hover,.ql-snow .ql-toolbar .ql-picker-label:hover,.ql-snow.ql-toolbar .ql-picker-label.ql-active,.ql-snow .ql-toolbar .ql-picker-label.ql-active,.ql-snow.ql-toolbar .ql-picker-item:hover,.ql-snow .ql-toolbar .ql-picker-item:hover,.ql-snow.ql-toolbar .ql-picker-item.ql-selected,.ql-snow .ql-toolbar .ql-picker-item.ql-selected{color:#06c}.ql-snow.ql-toolbar button:hover .ql-fill,.ql-snow .ql-toolbar button:hover .ql-fill,.ql-snow.ql-toolbar button:focus .ql-fill,.ql-snow .ql-toolbar button:focus .ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow.ql-toolbar button:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill{fill:#06c}.ql-snow.ql-toolbar button:hover .ql-stroke,.ql-snow .ql-toolbar button:hover .ql-stroke,.ql-snow.ql-toolbar button:focus .ql-stroke,.ql-snow .ql-toolbar button:focus .ql-stroke,.ql-snow.ql-toolbar button.ql-active .ql-stroke,.ql-snow .ql-toolbar button.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow.ql-toolbar button:hover .ql-stroke-miter,.ql-snow .ql-toolbar button:hover .ql-stroke-miter,.ql-snow.ql-toolbar button:focus .ql-stroke-miter,.ql-snow .ql-toolbar button:focus .ql-stroke-miter,.ql-snow.ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter{stroke:#06c}@media (pointer:coarse){.ql-snow.ql-toolbar button:hover:not(.ql-active),.ql-snow .ql-toolbar button:hover:not(.ql-active){color:#444}.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill{fill:#444}.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter{stroke:#444}}.ql-snow,.ql-snow *{box-sizing:border-box}.ql-snow .ql-hidden{display:none}.ql-snow .ql-out-bottom,.ql-snow .ql-out-top{visibility:hidden}.ql-snow .ql-tooltip{position:absolute;transform:translateY(10px)}.ql-snow .ql-tooltip a{cursor:pointer;text-decoration:none}.ql-snow .ql-tooltip.ql-flip{transform:translateY(-10px)}.ql-snow .ql-formats{display:inline-block;vertical-align:middle}.ql-snow .ql-formats:after{clear:both;content:"";display:table}.ql-snow .ql-stroke{fill:none;stroke:#444;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}.ql-snow .ql-stroke-miter{fill:none;stroke:#444;stroke-miterlimit:10;stroke-width:2}.ql-snow .ql-fill,.ql-snow .ql-stroke.ql-fill{fill:#444}.ql-snow .ql-empty{fill:none}.ql-snow .ql-even{fill-rule:evenodd}.ql-snow .ql-thin,.ql-snow .ql-stroke.ql-thin{stroke-width:1}.ql-snow .ql-transparent{opacity:.4}.ql-snow .ql-direction svg:last-child{display:none}.ql-snow .ql-direction.ql-active svg:last-child{display:inline}.ql-snow .ql-direction.ql-active svg:first-child{display:none}.ql-snow .ql-editor h1{font-size:2em}.ql-snow .ql-editor h2{font-size:1.5em}.ql-snow .ql-editor h3{font-size:1.17em}.ql-snow .ql-editor h4{font-size:1em}.ql-snow .ql-editor h5{font-size:.83em}.ql-snow .ql-editor h6{font-size:.67em}.ql-snow .ql-editor a{text-decoration:underline}.ql-snow .ql-editor blockquote{border-left:4px solid #ccc;margin-bottom:5px;margin-top:5px;padding-left:16px}.ql-snow .ql-editor code,.ql-snow .ql-editor .ql-code-block-container{background-color:#f0f0f0;border-radius:3px}.ql-snow .ql-editor .ql-code-block-container{margin-bottom:5px;margin-top:5px;padding:5px 10px}.ql-snow .ql-editor code{font-size:85%;padding:2px 4px}.ql-snow .ql-editor .ql-code-block-container{background-color:#23241f;color:#f8f8f2;overflow:visible}.ql-snow .ql-editor img{max-width:100%}.ql-snow .ql-picker{color:#444;display:inline-block;float:left;font-size:14px;font-weight:500;height:24px;position:relative;vertical-align:middle}.ql-snow .ql-picker-label{cursor:pointer;display:inline-block;height:100%;padding-left:8px;padding-right:2px;position:relative;width:100%}.ql-snow .ql-picker-label:before{display:inline-block;line-height:22px}.ql-snow .ql-picker-options{background-color:#fff;display:none;min-width:100%;padding:4px 8px;position:absolute;white-space:nowrap}.ql-snow .ql-picker-options .ql-picker-item{cursor:pointer;display:block;padding-bottom:5px;padding-top:5px}.ql-snow .ql-picker.ql-expanded .ql-picker-label{color:#ccc;z-index:2}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill{fill:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke{stroke:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-options{display:block;margin-top:-1px;top:100%;z-index:1}.ql-snow .ql-color-picker,.ql-snow .ql-icon-picker{width:28px}.ql-snow .ql-color-picker .ql-picker-label,.ql-snow .ql-icon-picker .ql-picker-label{padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-label svg,.ql-snow .ql-icon-picker .ql-picker-label svg{right:4px}.ql-snow .ql-icon-picker .ql-picker-options{padding:4px 0}.ql-snow .ql-icon-picker .ql-picker-item{height:24px;width:24px;padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-options{padding:3px 5px;width:152px}.ql-snow .ql-color-picker .ql-picker-item{border:1px solid transparent;float:left;height:16px;margin:2px;padding:0;width:16px}.ql-snow .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg{position:absolute;margin-top:-9px;right:0;top:50%;width:18px}.ql-snow .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=""]):before{content:attr(data-label)}.ql-snow .ql-picker.ql-header{width:98px}.ql-snow .ql-picker.ql-header .ql-picker-label:before,.ql-snow .ql-picker.ql-header .ql-picker-item:before{content:"Normal"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="1"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]:before{content:"Heading 1"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]:before{content:"Heading 2"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="3"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]:before{content:"Heading 3"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="4"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]:before{content:"Heading 4"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="5"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]:before{content:"Heading 5"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="6"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]:before{content:"Heading 6"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]:before{font-size:2em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]:before{font-size:1.5em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]:before{font-size:1.17em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]:before{font-size:1em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]:before{font-size:.83em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]:before{font-size:.67em}.ql-snow .ql-picker.ql-font{width:108px}.ql-snow .ql-picker.ql-font .ql-picker-label:before,.ql-snow .ql-picker.ql-font .ql-picker-item:before{content:"Sans Serif"}.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=serif]:before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]:before{content:"Serif"}.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=monospace]:before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before{content:"Monospace"}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]:before{font-family:Georgia,Times New Roman,serif}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before{font-family:Monaco,Courier New,monospace}.ql-snow .ql-picker.ql-size{width:98px}.ql-snow .ql-picker.ql-size .ql-picker-label:before,.ql-snow .ql-picker.ql-size .ql-picker-item:before{content:"Normal"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=small]:before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]:before{content:"Small"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=large]:before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]:before{content:"Large"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=huge]:before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]:before{content:"Huge"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]:before{font-size:10px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]:before{font-size:18px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]:before{font-size:32px}.ql-snow .ql-color-picker.ql-background .ql-picker-item{background-color:#fff}.ql-snow .ql-color-picker.ql-color .ql-picker-item{background-color:#000}.ql-code-block-container{position:relative}.ql-code-block-container .ql-ui{right:5px;top:5px}.ql-toolbar.ql-snow{border:1px solid #ccc;box-sizing:border-box;font-family:Helvetica Neue,Helvetica,Arial,sans-serif;padding:8px}.ql-toolbar.ql-snow .ql-formats{margin-right:15px}.ql-toolbar.ql-snow .ql-picker-label{border:1px solid transparent}.ql-toolbar.ql-snow .ql-picker-options{border:1px solid transparent;box-shadow:#0003 0 2px 8px}.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label,.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options{border-color:#ccc}.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item.ql-selected,.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item:hover{border-color:#000}.ql-toolbar.ql-snow+.ql-container.ql-snow{border-top:0}.ql-snow .ql-tooltip{background-color:#fff;border:1px solid #ccc;box-shadow:0 0 5px #ddd;color:#444;padding:5px 12px;white-space:nowrap}.ql-snow .ql-tooltip:before{content:"Visit URL:";line-height:26px;margin-right:8px}.ql-snow .ql-tooltip input[type=text]{display:none;border:1px solid #ccc;font-size:13px;height:26px;margin:0;padding:3px 5px;width:170px}.ql-snow .ql-tooltip a.ql-preview{display:inline-block;max-width:200px;overflow-x:hidden;text-overflow:ellipsis;vertical-align:top}.ql-snow .ql-tooltip a.ql-action:after{border-right:1px solid #ccc;content:"Edit";margin-left:16px;padding-right:8px}.ql-snow .ql-tooltip a.ql-remove:before{content:"Remove";margin-left:8px}.ql-snow .ql-tooltip a{line-height:26px}.ql-snow .ql-tooltip.ql-editing a.ql-preview,.ql-snow .ql-tooltip.ql-editing a.ql-remove{display:none}.ql-snow .ql-tooltip.ql-editing input[type=text]{display:inline-block}.ql-snow .ql-tooltip.ql-editing a.ql-action:after{border-right:0;content:"Save";padding-right:0}.ql-snow .ql-tooltip[data-mode=link]:before{content:"Enter link:"}.ql-snow .ql-tooltip[data-mode=formula]:before{content:"Enter formula:"}.ql-snow .ql-tooltip[data-mode=video]:before{content:"Enter video:"}.ql-snow a{color:#06c}.ql-container.ql-snow{border:1px solid #ccc}.example-viewer{display:flex;flex-direction:column;margin:32px 0;overflow:hidden;--tw-bg-opacity: 1;background-color:rgba(var(--angor-bg-card-rgb),var(--tw-bg-opacity));border-radius:1rem;--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.example-viewer .title{display:flex;align-items:center;justify-content:space-between;height:88px;min-height:88px;max-height:88px;padding:0 40px}.example-viewer .title h6{font-weight:700}.example-viewer .title .controls{display:flex;align-items:center}.example-viewer .title .controls>*+*{margin-left:8px}.example-viewer mat-tab-group .mat-tab-body-content .angor-highlight pre{margin:0;border-radius:0}input,textarea{background:transparent}input::placeholder,textarea::placeholder{--tw-text-opacity: 1;color:rgba(var(--angor-text-hint-rgb),var(--tw-text-opacity))}.mat-toolbar.mat-primary input::placeholder,.mat-toolbar.mat-primary textarea::placeholder{color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-accent input::placeholder,.mat-toolbar.mat-accent textarea::placeholder{color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-warn input::placeholder,.mat-toolbar.mat-warn textarea::placeholder{color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}input::-moz-placeholder,textarea::-moz-placeholder{--tw-text-opacity: 1;color:rgba(var(--angor-text-hint-rgb),var(--tw-text-opacity))}.mat-toolbar.mat-primary input::-moz-placeholder,.mat-toolbar.mat-primary textarea::-moz-placeholder{color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-accent input::-moz-placeholder,.mat-toolbar.mat-accent textarea::-moz-placeholder{color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-warn input::-moz-placeholder,.mat-toolbar.mat-warn textarea::-moz-placeholder{color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}input::-webkit-input-placeholder,textarea::-webkit-input-placeholder{--tw-text-opacity: 1;color:rgba(var(--angor-text-hint-rgb),var(--tw-text-opacity))}.mat-toolbar.mat-primary input::-webkit-input-placeholder,.mat-toolbar.mat-primary textarea::-webkit-input-placeholder{color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-accent input::-webkit-input-placeholder,.mat-toolbar.mat-accent textarea::-webkit-input-placeholder{color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-warn input::-webkit-input-placeholder,.mat-toolbar.mat-warn textarea::-webkit-input-placeholder{color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}input:-ms-input-placeholder,textarea:-ms-input-placeholder{--tw-text-opacity: 1;color:rgba(var(--angor-text-hint-rgb),var(--tw-text-opacity))}.mat-toolbar.mat-primary input:-ms-input-placeholder,.mat-toolbar.mat-primary textarea:-ms-input-placeholder{color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-accent input:-ms-input-placeholder,.mat-toolbar.mat-accent textarea:-ms-input-placeholder{color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-warn input:-ms-input-placeholder,.mat-toolbar.mat-warn textarea:-ms-input-placeholder{color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}input:-webkit-autofill,input:-webkit-autofill:hover,input:-webkit-autofill:focus,input:-webkit-autofill:active,textarea:-webkit-autofill,textarea:-webkit-autofill:hover,textarea:-webkit-autofill:focus,textarea:-webkit-autofill:active{-webkit-background-clip:text;-webkit-transition:background-color 5000s!important;transition:background-color 5000s!important}.dark input:-webkit-autofill,.dark input:-webkit-autofill:hover,.dark input:-webkit-autofill:focus,.dark input:-webkit-autofill:active,.dark textarea:-webkit-autofill,.dark textarea:-webkit-autofill:hover,.dark textarea:-webkit-autofill:focus,.dark textarea:-webkit-autofill:active{-webkit-text-fill-color:rgba(255,255,255,.87)}input [data-autocompleted],textarea [data-autocompleted]{background-color:transparent!important}.angor-backdrop-on-mobile{background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1))!important;--tw-bg-opacity: .6 !important}@media (min-width: 600px){.angor-backdrop-on-mobile{background-color:transparent!important}}*[class*=mat-],*[class*=mat-mdc-],*[class*=mat-] *,*[class*=mat-mdc-] *{-webkit-font-smoothing:auto!important;-moz-osx-font-smoothing:auto!important}.mat-accordion .mat-expansion-panel{margin-bottom:24px;border-radius:8px!important;transition:box-shadow 225ms cubic-bezier(.4,0,.2,1);--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1) !important;--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.mat-accordion .mat-expansion-panel:last-child{margin-bottom:0}.mat-accordion .mat-expansion-panel.mat-expanded,.mat-accordion .mat-expansion-panel:hover{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1) !important;--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.mat-accordion .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]).cdk-keyboard-focused,.mat-accordion .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]).cdk-program-focused,.mat-accordion .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:transparent!important}.mat-accordion .mat-expansion-panel .mat-expansion-panel-header{font-size:14px}.mat-accordion .mat-expansion-panel .mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-description{margin-right:28px}.mat-accordion .mat-expansion-panel .mat-expansion-panel-header .mat-expansion-indicator{display:inline-flex;align-items:center;justify-content:center;width:12px;height:12px}.mat-accordion .mat-expansion-panel .mat-expansion-panel-header .mat-expansion-indicator:after{border-color:currentColor!important}.mat-accordion .mat-expansion-panel .mat-expansion-panel-body{--tw-text-opacity: 1 !important;color:rgba(var(--angor-text-secondary-rgb),var(--tw-text-opacity))!important}.mat-toolbar.mat-primary .mat-accordion .mat-expansion-panel .mat-expansion-panel-body{color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .6 !important}.mat-toolbar.mat-accent .mat-accordion .mat-expansion-panel .mat-expansion-panel-body{color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .6 !important}.mat-toolbar.mat-warn .mat-accordion .mat-expansion-panel .mat-expansion-panel-body{color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .6 !important}.mat-mdc-button,.mat-mdc-raised-button,.mat-mdc-outlined-button,.mat-mdc-unelevated-button,.mat-mdc-icon-button,.mat-mdc-fab,.mat-mdc-mini-fab{height:40px;min-height:40px;max-height:40px;line-height:1!important}.mat-mdc-button.angor-mat-button-large,.mat-mdc-raised-button.angor-mat-button-large,.mat-mdc-outlined-button.angor-mat-button-large,.mat-mdc-unelevated-button.angor-mat-button-large,.mat-mdc-icon-button.angor-mat-button-large,.mat-mdc-fab.angor-mat-button-large,.mat-mdc-mini-fab.angor-mat-button-large{height:48px;min-height:48px;max-height:48px}.mat-mdc-button[disabled=true] .mat-icon,.mat-mdc-raised-button[disabled=true] .mat-icon,.mat-mdc-outlined-button[disabled=true] .mat-icon,.mat-mdc-unelevated-button[disabled=true] .mat-icon,.mat-mdc-icon-button[disabled=true] .mat-icon,.mat-mdc-fab[disabled=true] .mat-icon,.mat-mdc-mini-fab[disabled=true] .mat-icon{opacity:.38!important}.mat-mdc-icon-button{display:inline-flex!important;align-items:center;justify-content:center;width:40px!important;padding:0!important}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{height:auto!important}.mat-mdc-fab{max-height:56px;border-radius:16px!important}.mat-mdc-fab:not(.mdc-fab--extended) .mdc-fab__ripple{border-radius:16px!important}.mat-mdc-mini-fab{border-radius:12px!important}.mat-mdc-mini-fab:not(.mdc-fab--extended) .mdc-fab__ripple{border-radius:12px!important}.mat-mdc-button,.mat-mdc-raised-button,.mat-mdc-outlined-button,.mat-mdc-unelevated-button{padding:0 20px!important;border-radius:9999px!important}.mat-mdc-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon{margin-left:0!important;margin-right:0!important}.mat-mdc-button .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-container circle,.mat-mdc-raised-button .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-container circle,.mat-mdc-outlined-button .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-container circle,.mat-mdc-unelevated-button .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-container circle,.mat-mdc-icon-button .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-container circle,.mat-mdc-fab .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-container circle,.mat-mdc-mini-fab .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-container circle{stroke:currentColor!important;animation-duration:6s}.mat-mdc-raised-button,.mat-mdc-unelevated-button,.mat-mdc-fab,.mat-mdc-mini-fab{--mat-mdc-button-persistent-ripple-color: #3b7586 !important;--mat-mdc-button-ripple-color: rgba(0, 0, 0, .1) !important}.dark .mat-mdc-raised-button,.dark .mat-mdc-unelevated-button,.dark .mat-mdc-fab,.dark .mat-mdc-mini-fab{--mat-mdc-button-persistent-ripple-color: #000 !important;--mat-mdc-button-ripple-color: rgba(0, 0, 0, .1) !important}.mat-mdc-raised-button .mat-icon,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-fab .mat-icon,.mat-mdc-mini-fab .mat-icon{color:currentColor!important}.mat-mdc-raised-button .mat-ripple-element,.mat-mdc-unelevated-button .mat-ripple-element,.mat-mdc-fab .mat-ripple-element,.mat-mdc-mini-fab .mat-ripple-element{background-color:#0000001a!important}.mat-mdc-button:not([disabled=true]).mat-primary .mat-icon,.mat-mdc-icon-button:not([disabled=true]).mat-primary .mat-icon,.mat-mdc-outlined-button:not([disabled=true]).mat-primary .mat-icon{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-rgb),var(--tw-text-opacity, 1))!important}.mat-mdc-button:not([disabled=true]).mat-accent .mat-icon,.mat-mdc-icon-button:not([disabled=true]).mat-accent .mat-icon,.mat-mdc-outlined-button:not([disabled=true]).mat-accent .mat-icon{--tw-text-opacity: 1 !important;color:rgba(var(--angor-accent-rgb),var(--tw-text-opacity, 1))!important}.mat-mdc-button:not([disabled=true]).mat-warn .mat-icon,.mat-mdc-icon-button:not([disabled=true]).mat-warn .mat-icon,.mat-mdc-outlined-button:not([disabled=true]).mat-warn .mat-icon{--tw-text-opacity: 1 !important;color:rgba(var(--angor-warn-rgb),var(--tw-text-opacity, 1))!important}.mat-mdc-outlined-button:not([disabled=true]){--tw-border-opacity: 1 !important;border-color:rgb(107 152 164 / var(--tw-border-opacity, 1))!important}.mat-mdc-outlined-button:not([disabled=true]):is(.dark *){--tw-border-opacity: 1 !important;border-color:rgb(8 59 70 / var(--tw-border-opacity, 1))!important}.mat-mdc-outlined-button[disabled=true]{border-color:#6b98a4b3!important}.mat-mdc-outlined-button[disabled=true]:is(.dark *){--tw-border-opacity: 1 !important;border-color:rgb(7 52 62 / var(--tw-border-opacity, 1))!important}.mdc-button .mdc-button__label{white-space:nowrap}.mat-button-toggle-group{border:none!important}.mat-button-toggle-group>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.mat-button-toggle-group.mat-button-toggle-group-appearance-standard .mat-button-toggle+.mat-button-toggle{background-clip:padding-box}.mat-button-toggle-group .mat-button-toggle{border-radius:9999px;overflow:hidden;border:none!important;font-weight:500}.mat-button-toggle-group .mat-button-toggle.mat-button-toggle-checked .mat-button-toggle-label-content{--tw-text-opacity: 1 !important;color:rgba(var(--angor-text-default-rgb),var(--tw-text-opacity))!important}.mat-button-toggle-group .mat-button-toggle .mat-button-toggle-label-content{padding:0 20px;line-height:40px!important;--tw-text-opacity: 1;color:rgba(var(--angor-text-secondary-rgb),var(--tw-text-opacity))}.mat-toolbar.mat-primary .mat-button-toggle-group .mat-button-toggle .mat-button-toggle-label-content{color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .6 !important}.mat-toolbar.mat-accent .mat-button-toggle-group .mat-button-toggle .mat-button-toggle-label-content{color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .6 !important}.mat-toolbar.mat-warn .mat-button-toggle-group .mat-button-toggle .mat-button-toggle-label-content{color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .6 !important}.mat-mdc-checkbox{display:inline-flex!important}.mat-mdc-checkbox .mdc-form-field{padding-right:12px}.mdc-checkbox__native-control{opacity:0!important}.mat-mdc-chip{font-weight:500!important}.mat-mdc-dialog-container .mdc-dialog__surface{border-radius:16px!important;padding:24px}.mat-drawer-backdrop.mat-drawer-shown{background-color:#0009!important}.mat-mdc-form-field.mat-form-field-appearance-fill.mat-form-field-disabled{opacity:.7!important}.mat-mdc-form-field.mat-form-field-appearance-fill.mat-form-field-invalid .mat-mdc-text-field-wrapper{--tw-border-opacity: 1 !important;border-color:rgba(var(--angor-warn-rgb),var(--tw-border-opacity, 1))!important}.mat-mdc-form-field.mat-form-field-appearance-fill.mat-form-field-invalid .mat-mdc-text-field-wrapper:is(.dark *){--tw-border-opacity: 1 !important;border-color:rgba(var(--angor-warn-rgb),var(--tw-border-opacity, 1))!important}.mat-mdc-form-field.mat-form-field-appearance-fill.mat-form-field-invalid .mat-mdc-select .mat-mdc-select-placeholder{--tw-text-opacity: 1 !important;color:rgba(var(--angor-warn-rgb),var(--tw-text-opacity, 1))!important}.mat-mdc-form-field.mat-form-field-appearance-fill:hover .mat-mdc-form-field-focus-overlay,.mat-mdc-form-field.mat-form-field-appearance-fill.mat-focused .mat-mdc-form-field-focus-overlay{opacity:0!important}.mat-mdc-form-field.mat-form-field-appearance-fill.mat-focused:not(.mat-form-field-invalid) .mat-mdc-text-field-wrapper{--tw-border-opacity: 1 !important;border-color:rgba(var(--angor-primary-rgb),var(--tw-border-opacity, 1))!important}.mat-mdc-form-field.mat-form-field-appearance-fill.mat-focused:not(.mat-form-field-invalid) .mat-mdc-text-field-wrapper:is(.dark *){--tw-border-opacity: 1 !important;border-color:rgba(var(--angor-primary-rgb),var(--tw-border-opacity, 1))!important}.mat-mdc-form-field.mat-form-field-appearance-fill.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix select{top:auto;margin-top:0;margin-bottom:0;padding-top:0;padding-right:18px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%2364748B' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5H7z'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right -7px center;background-size:24px}.dark .mat-mdc-form-field.mat-form-field-appearance-fill.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%2397a6ba' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5H7z'/%3E%3C/svg%3E")}.mat-mdc-form-field.mat-form-field-appearance-fill.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix:after{display:none}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{padding:0;border-radius:6px;border-width:1px;border-style:solid;--tw-border-opacity: 1 !important;border-color:rgb(107 152 164 / var(--tw-border-opacity, 1))!important;--tw-bg-opacity: 1 !important;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))!important;--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05) !important;--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper:is(.dark *){--tw-border-opacity: 1 !important;border-color:rgb(8 59 70 / var(--tw-border-opacity, 1))!important;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1))!important;--tw-bg-opacity: .05 !important}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper:not(.mdc-text-field--no-label){margin-top:24px;overflow:visible}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-focus-overlay{border-radius:6px}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex{position:relative;display:flex;align-items:stretch;border-radius:6px;padding:0 16px}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix{padding:0!important}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix>.mat-icon{margin-right:12px;padding:0!important}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix>.mat-mdc-icon-button,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix>.mat-mdc-icon-button{margin:0 4px 0 -10px}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix>.mat-mdc-select,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix>.mat-mdc-select{margin-right:10px}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix>.mat-datepicker-toggle,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix>.mat-datepicker-toggle{margin-left:-8px}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix{padding:0!important}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix>.mat-icon,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix>.mat-icon{margin-left:12px;padding:0!important}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix>.mat-mdc-icon-button,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix>.mat-mdc-icon-button{margin:0 -10px 0 4px}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix>.mat-mdc-select,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix>.mat-mdc-select{margin-left:10px}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix>.mat-datepicker-toggle,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix>.mat-datepicker-toggle{margin-right:-8px}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix{display:inline-flex;align-items:center;justify-content:center;--tw-text-opacity: 1 !important;color:rgba(var(--angor-text-hint-rgb),var(--tw-text-opacity))!important}.mat-toolbar.mat-primary .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix,.mat-toolbar.mat-primary .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix,.mat-toolbar.mat-primary .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix,.mat-toolbar.mat-primary .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix{color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-accent .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix,.mat-toolbar.mat-accent .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix,.mat-toolbar.mat-accent .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix,.mat-toolbar.mat-accent .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix{color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-warn .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix,.mat-toolbar.mat-warn .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix,.mat-toolbar.mat-warn .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix,.mat-toolbar.mat-warn .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix{color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-mdc-icon-button,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-mdc-icon-button,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-mdc-icon-button,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-mdc-icon-button{width:40px;min-width:40px;height:40px;min-height:40px}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-icon,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-mdc-icon-button:not([disabled]),.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-mdc-select-value,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-icon,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-mdc-icon-button:not([disabled]),.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-mdc-select-value,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-icon,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-mdc-icon-button:not([disabled]),.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-mdc-select-value,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-icon,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-mdc-icon-button:not([disabled]),.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-mdc-select-value{--tw-text-opacity: 1;color:rgba(var(--angor-text-hint-rgb),var(--tw-text-opacity))}.mat-toolbar.mat-primary .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-icon,.mat-toolbar.mat-primary .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-mdc-icon-button:not([disabled]),.mat-toolbar.mat-primary .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-mdc-select-value,.mat-toolbar.mat-primary .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-icon,.mat-toolbar.mat-primary .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-mdc-icon-button:not([disabled]),.mat-toolbar.mat-primary .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-mdc-select-value,.mat-toolbar.mat-primary .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-icon,.mat-toolbar.mat-primary .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-mdc-icon-button:not([disabled]),.mat-toolbar.mat-primary .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-mdc-select-value,.mat-toolbar.mat-primary .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-icon,.mat-toolbar.mat-primary .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-mdc-icon-button:not([disabled]),.mat-toolbar.mat-primary .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-mdc-select-value{color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-accent .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-icon,.mat-toolbar.mat-accent .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-mdc-icon-button:not([disabled]),.mat-toolbar.mat-accent .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-mdc-select-value,.mat-toolbar.mat-accent .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-icon,.mat-toolbar.mat-accent .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-mdc-icon-button:not([disabled]),.mat-toolbar.mat-accent .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-mdc-select-value,.mat-toolbar.mat-accent .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-icon,.mat-toolbar.mat-accent .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-mdc-icon-button:not([disabled]),.mat-toolbar.mat-accent .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-mdc-select-value,.mat-toolbar.mat-accent .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-icon,.mat-toolbar.mat-accent .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-mdc-icon-button:not([disabled]),.mat-toolbar.mat-accent .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-mdc-select-value{color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-warn .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-icon,.mat-toolbar.mat-warn .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-mdc-icon-button:not([disabled]),.mat-toolbar.mat-warn .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-mdc-select-value,.mat-toolbar.mat-warn .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-icon,.mat-toolbar.mat-warn .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-mdc-icon-button:not([disabled]),.mat-toolbar.mat-warn .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-mdc-select-value,.mat-toolbar.mat-warn .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-icon,.mat-toolbar.mat-warn .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-mdc-icon-button:not([disabled]),.mat-toolbar.mat-warn .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-mdc-select-value,.mat-toolbar.mat-warn .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-icon,.mat-toolbar.mat-warn .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-mdc-icon-button:not([disabled]),.mat-toolbar.mat-warn .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-mdc-select-value{color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-datepicker-toggle-default-icon,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-datepicker-toggle-default-icon,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-datepicker-toggle-default-icon,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-datepicker-toggle-default-icon{width:1.5rem;height:1.5rem;min-width:1.5rem;min-height:1.5rem;font-size:1.5rem;line-height:1.5rem}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-datepicker-toggle-default-icon svg,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-datepicker-toggle-default-icon svg,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-datepicker-toggle-default-icon svg,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-datepicker-toggle-default-icon svg{width:1.5rem;height:1.5rem}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-mdc-select,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-mdc-select,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-mdc-select,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-mdc-select{display:flex;align-items:center}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-mdc-select:focus .mat-mdc-select-trigger .mat-mdc-select-value,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-mdc-select:focus .mat-mdc-select-trigger .mat-mdc-select-value,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-mdc-select:focus .mat-mdc-select-trigger .mat-mdc-select-value,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-mdc-select:focus .mat-mdc-select-trigger .mat-mdc-select-value{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-rgb),var(--tw-text-opacity, 1))!important}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-mdc-select:focus .mat-mdc-select-trigger .mat-mdc-select-arrow-wrapper .mat-mdc-select-arrow,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-mdc-select:focus .mat-mdc-select-trigger .mat-mdc-select-arrow-wrapper .mat-mdc-select-arrow,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-mdc-select:focus .mat-mdc-select-trigger .mat-mdc-select-arrow-wrapper .mat-mdc-select-arrow,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-mdc-select:focus .mat-mdc-select-trigger .mat-mdc-select-arrow-wrapper .mat-mdc-select-arrow{border-top-color:var(--angor-primary)!important}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-mdc-select .mat-mdc-select-trigger,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-mdc-select .mat-mdc-select-trigger,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-mdc-select .mat-mdc-select-trigger,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-mdc-select .mat-mdc-select-trigger{display:flex;align-items:center}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-value,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-value,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-value,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-value{display:flex;max-width:none}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-value mat-mdc-select-trigger .mat-icon,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-value mat-mdc-select-trigger .mat-icon,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-value mat-mdc-select-trigger .mat-icon,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-value mat-mdc-select-trigger .mat-icon{margin:0!important}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-arrow-wrapper,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-arrow-wrapper,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-arrow-wrapper,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-arrow-wrapper{display:flex;align-items:center;transform:none;margin-left:4px}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-arrow-wrapper .mat-mdc-select-arrow,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-arrow-wrapper .mat-mdc-select-arrow,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-arrow-wrapper .mat-mdc-select-arrow,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-arrow-wrapper .mat-mdc-select-arrow{min-height:0;--tw-text-opacity: 1 !important;color:rgb(8 59 70 / var(--tw-text-opacity, 1))!important}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-arrow-wrapper .mat-mdc-select-arrow:is(.dark *),.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-arrow-wrapper .mat-mdc-select-arrow:is(.dark *),.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-arrow-wrapper .mat-mdc-select-arrow:is(.dark *),.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-arrow-wrapper .mat-mdc-select-arrow:is(.dark *){--tw-text-opacity: 1 !important;color:rgb(59 117 134 / var(--tw-text-opacity, 1))!important}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-infix{position:static;display:flex;align-items:center;width:88px;min-height:48px;padding:0;border:0}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-infix .mat-mdc-floating-label{top:-25px!important;left:0!important;width:100%!important;transform:none!important;pointer-events:auto;font-weight:500;--tw-text-opacity: 1 !important;color:rgba(var(--angor-text-default-rgb),var(--tw-text-opacity))!important}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-infix textarea.mat-mdc-input-element{margin:12px 0;padding:0 6px 0 0}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-infix .mat-mdc-chip-set{width:100%;margin:0 -8px}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mdc-line-ripple{display:none}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-form-field-subscript-wrapper{font-size:12px;font-weight:500}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-form-field-subscript-wrapper .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-form-field-subscript-wrapper .mat-mdc-form-field-error-wrapper{padding:0}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-form-field-subscript-wrapper .mat-mdc-form-field-hint{--tw-text-opacity: 1 !important;color:rgba(var(--angor-text-hint-rgb),var(--tw-text-opacity))!important}.mat-toolbar.mat-primary .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-form-field-subscript-wrapper .mat-mdc-form-field-hint{color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-accent .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-form-field-subscript-wrapper .mat-mdc-form-field-hint{color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-warn .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-form-field-subscript-wrapper .mat-mdc-form-field-hint{color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-mdc-form-field.mat-form-field-appearance-fill:has(textarea.mat-mdc-input-element) .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix,.mat-mdc-form-field.mat-form-field-appearance-fill:has(textarea.mat-mdc-input-element) .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix,.mat-mdc-form-field.mat-form-field-appearance-fill:has(textarea.mat-mdc-input-element) .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix,.mat-mdc-form-field.mat-form-field-appearance-fill:has(textarea.mat-mdc-input-element) .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix{align-self:flex-start;padding-top:14px!important}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded .mat-mdc-text-field-wrapper{border-radius:24px}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix{border-radius:24px 0 0 24px}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix>.mat-icon{margin-right:12px}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix>.mat-mdc-icon-button,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix>.mat-mdc-icon-button{margin:0 2px 0 -10px!important}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix>.mat-mdc-select,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix>.mat-mdc-select{margin-right:8px}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix>.mat-datepicker-toggle,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix>.mat-datepicker-toggle{margin-right:4px}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix>*:not(.mat-icon):not(.mat-mdc-icon-button):not(.mat-mdc-select):not(.mat-datepicker-toggle),.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix>*:not(.mat-icon):not(.mat-mdc-icon-button):not(.mat-mdc-select):not(.mat-datepicker-toggle){margin-right:12px}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix{border-radius:0 24px 24px 0}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix>.mat-icon,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix>.mat-icon{margin-left:12px!important}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix>.mat-mdc-icon-button,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix>.mat-mdc-icon-button{margin:0 -10px 0 2px!important}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix>.mat-mdc-select,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix>.mat-mdc-select{margin-left:12px!important}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix>.mat-datepicker-toggle,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix>.mat-datepicker-toggle{margin-left:4px!important}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix>*:not(.mat-icon):not(.mat-mdc-icon-button):not(.mat-mdc-select):not(.mat-datepicker-toggle),.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix>*:not(.mat-icon):not(.mat-mdc-icon-button):not(.mat-mdc-select):not(.mat-datepicker-toggle){margin-left:12px!important}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-dense .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-mdc-icon-button,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-dense .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-mdc-icon-button,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-dense .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-mdc-icon-button,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-dense .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-mdc-icon-button{width:32px!important;min-width:32px;height:32px;min-height:32px}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-dense .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix>.mat-mdc-icon-button,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-dense .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix>.mat-mdc-icon-button{margin-left:-6px;margin-right:12px}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-dense .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix>.mat-mdc-icon-button,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-dense .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix>.mat-mdc-icon-button{margin-left:12px;margin-right:-6px}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-dense .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-infix{min-height:40px}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-dense .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-infix textarea.mat-mdc-input-element{margin:8px 0}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-dense:has(textarea.mat-mdc-input-element) .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-dense:has(textarea.mat-mdc-input-element) .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-dense:has(textarea.mat-mdc-input-element) .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-dense:has(textarea.mat-mdc-input-element) .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix{padding-top:10px!important}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-dense.angor-mat-rounded .mat-mdc-text-field-wrapper{border-radius:20px}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-dense.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-dense.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix{border-radius:20px 0 0 20px!important}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-dense.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-dense.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix{border-radius:0 20px 20px 0!important}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix{align-self:stretch!important;margin:0 16px 0 -16px!important;padding-left:16px!important;border-radius:6px 0 0 6px;border-right-width:1px;border-style:solid}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix>.mat-icon{margin-right:16px}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix>.mat-mdc-icon-button,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix>.mat-mdc-icon-button{margin:0 6px 0 -10px!important}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix>.mat-mdc-select,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix>.mat-mdc-select{margin-right:12px!important}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix>.mat-datepicker-toggle,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix>.mat-datepicker-toggle{margin-right:8px}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix>*:not(.mat-icon):not(.mat-mdc-icon-button):not(.mat-mdc-select):not(.mat-datepicker-toggle),.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix>*:not(.mat-icon):not(.mat-mdc-icon-button):not(.mat-mdc-select):not(.mat-datepicker-toggle){margin-right:16px}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix{align-self:stretch!important;margin:0 -16px 0 16px!important;padding-right:16px!important;border-radius:0 6px 6px 0;border-left-width:1px;border-style:solid}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix>.mat-icon,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix>.mat-icon{margin-left:16px}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix>.mat-mdc-icon-button,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix>.mat-mdc-icon-button{margin:0 -10px 0 6px!important}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix>.mat-mdc-select,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix>.mat-mdc-select{margin:0 -4px 0 16px!important}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix>.mat-datepicker-toggle,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix>.mat-datepicker-toggle{margin-left:8px}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix>*:not(.mat-icon):not(.mat-mdc-icon-button):not(.mat-mdc-select):not(.mat-datepicker-toggle),.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix>*:not(.mat-icon):not(.mat-mdc-icon-button):not(.mat-mdc-select):not(.mat-datepicker-toggle){margin-left:16px}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix{--tw-bg-opacity: 1 !important;background-color:rgba(var(--angor-bg-default-rgb),var(--tw-bg-opacity))!important;--tw-border-opacity: 1 !important;border-color:rgb(107 152 164 / var(--tw-border-opacity, 1))!important}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix:is(.dark *),.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix:is(.dark *),.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix:is(.dark *),.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix:is(.dark *){--tw-border-opacity: 1 !important;border-color:rgb(8 59 70 / var(--tw-border-opacity, 1))!important}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix:has(textarea.mat-mdc-input-element) .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix:has(textarea.mat-mdc-input-element) .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix:has(textarea.mat-mdc-input-element) .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix:has(textarea.mat-mdc-input-element) .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix{align-items:flex-start}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-bold .mat-mdc-text-field-wrapper{border-width:2px!important}.mat-mdc-form-field.mat-form-field-appearance-outline.mat-form-field-invalid .mdc-notched-outline__leading,.mat-mdc-form-field.mat-form-field-appearance-outline.mat-form-field-invalid .mdc-notched-outline__notch,.mat-mdc-form-field.mat-form-field-appearance-outline.mat-form-field-invalid .mdc-notched-outline__trailing{border-color:var(--angor-warn)!important}.mat-mdc-form-field.mat-form-field-appearance-outline.mat-focused:not(.mat-form-field-invalid).mat-primary .mdc-notched-outline__leading,.mat-mdc-form-field.mat-form-field-appearance-outline.mat-focused:not(.mat-form-field-invalid).mat-primary .mdc-notched-outline__notch,.mat-mdc-form-field.mat-form-field-appearance-outline.mat-focused:not(.mat-form-field-invalid).mat-primary .mdc-notched-outline__trailing{border-color:var(--angor-primary)!important}.mat-mdc-form-field.mat-form-field-appearance-outline.mat-focused:not(.mat-form-field-invalid).mat-accent .mdc-notched-outline__leading,.mat-mdc-form-field.mat-form-field-appearance-outline.mat-focused:not(.mat-form-field-invalid).mat-accent .mdc-notched-outline__notch,.mat-mdc-form-field.mat-form-field-appearance-outline.mat-focused:not(.mat-form-field-invalid).mat-accent .mdc-notched-outline__trailing{border-color:var(--angor-accent)!important}.mat-mdc-form-field.mat-form-field-appearance-outline:not(.mat-focused):not(.mat-form-field-invalid) .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mdc-notched-outline .mdc-notched-outline__leading,.mat-mdc-form-field.mat-form-field-appearance-outline:not(.mat-focused):not(.mat-form-field-invalid) .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mdc-notched-outline .mdc-notched-outline__notch,.mat-mdc-form-field.mat-form-field-appearance-outline:not(.mat-focused):not(.mat-form-field-invalid) .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mdc-notched-outline .mdc-notched-outline__trailing{--tw-border-opacity: 1 !important;border-color:rgb(203 213 225 / var(--tw-border-opacity, 1))!important}.mat-mdc-form-field.mat-form-field-appearance-outline:not(.mat-focused):not(.mat-form-field-invalid) .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mdc-notched-outline .mdc-notched-outline__leading:is(.dark *),.mat-mdc-form-field.mat-form-field-appearance-outline:not(.mat-focused):not(.mat-form-field-invalid) .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mdc-notched-outline .mdc-notched-outline__notch:is(.dark *),.mat-mdc-form-field.mat-form-field-appearance-outline:not(.mat-focused):not(.mat-form-field-invalid) .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mdc-notched-outline .mdc-notched-outline__trailing:is(.dark *){--tw-border-opacity: 1 !important;border-color:rgb(100 116 139 / var(--tw-border-opacity, 1))!important}.mat-mdc-form-field.mat-form-field-appearance-outline .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mdc-notched-outline .mdc-notched-outline__notch{border-right-style:none!important}.mat-icon{display:inline-flex!important;align-items:center;justify-content:center;width:24px;min-width:24px;height:24px;min-height:24px;font-size:24px;line-height:24px;-webkit-appearance:none!important}.mat-mdc-input-element::placeholder{transition:none!important;--tw-text-opacity: 1 !important;color:rgba(var(--angor-text-hint-rgb),var(--tw-text-opacity))!important}.mat-toolbar.mat-primary .mat-mdc-input-element::placeholder{color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-accent .mat-mdc-input-element::placeholder{color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-warn .mat-mdc-input-element::placeholder{color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-mdc-input-element::-moz-placeholder{-moz-transition:none!important;transition:none!important;--tw-text-opacity: 1 !important;color:rgba(var(--angor-text-hint-rgb),var(--tw-text-opacity))!important}.mat-toolbar.mat-primary .mat-mdc-input-element::-moz-placeholder{color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-accent .mat-mdc-input-element::-moz-placeholder{color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-warn .mat-mdc-input-element::-moz-placeholder{color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-mdc-input-element::-webkit-input-placeholder{-webkit-transition:none!important;transition:none!important;--tw-text-opacity: 1 !important;color:rgba(var(--angor-text-hint-rgb),var(--tw-text-opacity))!important}.mat-toolbar.mat-primary .mat-mdc-input-element::-webkit-input-placeholder{color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-accent .mat-mdc-input-element::-webkit-input-placeholder{color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-warn .mat-mdc-input-element::-webkit-input-placeholder{color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-mdc-input-element:-ms-input-placeholder{-ms-transition:none!important;transition:none!important;--tw-text-opacity: 1 !important;color:rgba(var(--angor-text-hint-rgb),var(--tw-text-opacity))!important}.mat-toolbar.mat-primary .mat-mdc-input-element:-ms-input-placeholder{color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-accent .mat-mdc-input-element:-ms-input-placeholder{color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-warn .mat-mdc-input-element:-ms-input-placeholder{color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-form-field-invalid .mat-mdc-input-element::placeholder{--tw-text-opacity: 1 !important;color:rgba(var(--angor-warn-rgb),var(--tw-text-opacity, 1))!important}.mat-form-field-invalid .mat-mdc-input-element::-moz-placeholder{--tw-text-opacity: 1 !important;color:rgba(var(--angor-warn-rgb),var(--tw-text-opacity, 1))!important}.mat-form-field-invalid .mat-mdc-input-element::-webkit-input-placeholder{--tw-text-opacity: 1 !important;color:rgba(var(--angor-warn-rgb),var(--tw-text-opacity, 1))!important}.mat-form-field-invalid .mat-mdc-input-element:-ms-input-placeholder{--tw-text-opacity: 1 !important;color:rgba(var(--angor-warn-rgb),var(--tw-text-opacity, 1))!important}.mat-mdc-menu-panel{min-width:144px!important}.mat-mdc-menu-panel .mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{display:flex;align-items:center;padding-right:16px}.mat-mdc-menu-panel .mat-mdc-menu-content .mat-mdc-menu-item .mat-icon-no-color{--tw-text-opacity: 1;color:rgba(var(--angor-mat-icon-rgb),var(--tw-text-opacity))}.mat-mdc-menu-panel .mat-mdc-menu-content mat-divider{margin:8px 0}.mat-mdc-paginator .mat-mdc-paginator-container{padding:8px 16px;justify-content:space-between}@media (min-width: 600px){.mat-mdc-paginator .mat-mdc-paginator-container{justify-content:normal}}.mat-mdc-paginator .mat-mdc-paginator-container .mat-mdc-paginator-page-size{align-items:center;min-height:40px;margin:8px}.mat-mdc-paginator .mat-mdc-paginator-container .mat-mdc-paginator-page-size .mat-mdc-paginator-page-size-label{display:none;margin-right:12px}@media (min-width: 600px){.mat-mdc-paginator .mat-mdc-paginator-container .mat-mdc-paginator-page-size .mat-mdc-paginator-page-size-label{display:block}}.mat-mdc-paginator .mat-mdc-paginator-container .mat-mdc-paginator-page-size .mat-mdc-paginator-page-size-select{margin:0}.mat-mdc-paginator .mat-mdc-paginator-container .mat-mdc-paginator-page-size .mat-mdc-paginator-page-size-select .mat-mdc-text-field-wrapper{padding:0 10px}.mat-mdc-paginator .mat-mdc-paginator-container .mat-mdc-paginator-page-size .mat-mdc-paginator-page-size-select .mat-mdc-text-field-wrapper .mat-form-field-flex{min-height:32px}.mat-mdc-paginator .mat-mdc-paginator-container .mat-mdc-paginator-range-actions{margin:8px 0}.mat-mdc-paginator .mat-mdc-paginator-container .mat-mdc-paginator-range-actions .mat-mdc-paginator-range-label{margin-right:16px}.mat-mdc-select{display:inline-flex!important}.mat-mdc-select .mat-mdc-select-placeholder{transition:none!important;--tw-text-opacity: 1 !important;color:rgba(var(--angor-text-hint-rgb),var(--tw-text-opacity))!important}.mat-toolbar.mat-primary .mat-mdc-select .mat-mdc-select-placeholder{color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-accent .mat-mdc-select .mat-mdc-select-placeholder{color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-warn .mat-mdc-select .mat-mdc-select-placeholder{color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-value{position:relative;display:flex;max-width:none}.mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-value .mat-mdc-select-value-text{display:inline-flex}.mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-value .mat-mdc-select-value-text>*{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.mat-mdc-select .mat-mdc-select-arrow-wrapper{transform:translateY(0)!important}.mat-mdc-select .mat-mdc-select-arrow-wrapper .mat-mdc-select-arrow{margin:0 0 0 8px;--tw-text-opacity: 1 !important;color:rgba(var(--angor-text-secondary-rgb),var(--tw-text-opacity))!important}.mat-toolbar.mat-primary .mat-mdc-select .mat-mdc-select-arrow-wrapper .mat-mdc-select-arrow{color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .6 !important}.mat-toolbar.mat-accent .mat-mdc-select .mat-mdc-select-arrow-wrapper .mat-mdc-select-arrow{color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .6 !important}.mat-toolbar.mat-warn .mat-mdc-select .mat-mdc-select-arrow-wrapper .mat-mdc-select-arrow{color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .6 !important}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){color:#fff!important}.dark .mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){color:#000!important}.mat-step-icon .mat-icon{color:currentColor!important}.mat-step-label,.mat-step-label-selected{font-weight:500!important}.mat-mdc-table .mdc-data-table__row:not(.mdc-data-table__row--selected):hover{background:none!important}.mat-mdc-tab-group.angor-mat-no-header .mat-mdc-tab-header{height:0!important;max-height:0!important;border:none!important;visibility:hidden!important;opacity:0!important}.mat-mdc-tab-group:not(.mat-background-primary):not(.mat-background-accent) .mat-mdc-tab-header .mat-mdc-tab-label-container{box-shadow:inset 0 -1px var(--angor-border)}.mat-mdc-tab-group .mat-mdc-tab-header .mat-mdc-tab-label-container{margin:0 24px}.mat-mdc-tab-group .mat-mdc-tab-body-content{padding:24px}textarea.mat-mdc-input-element{box-sizing:content-box!important}.mat-toolbar.mat-primary .mat-icon{--tw-text-opacity: 1 !important;color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important}.mat-toolbar.mat-primary .text-secondary{color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .6 !important}.mat-toolbar.mat-primary .text-hint,.mat-toolbar.mat-primary .text-disabled{color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-primary .divider{color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .12 !important}.mat-toolbar.mat-accent .mat-icon{--tw-text-opacity: 1 !important;color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important}.mat-toolbar.mat-accent .text-secondary{color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .6 !important}.mat-toolbar.mat-accent .text-hint,.mat-toolbar.mat-accent .text-disabled{color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-accent .divider{color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .12 !important}.mat-toolbar.mat-warn .mat-icon{--tw-text-opacity: 1 !important;color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important}.mat-toolbar.mat-warn .text-secondary{color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .6 !important}.mat-toolbar.mat-warn .text-hint,.mat-toolbar.mat-warn .text-disabled{color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-warn .divider{color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .12 !important}.mat-mdc-tooltip .mdc-tooltip__surface{background-color:var(--angor-text-default)!important;color:#fff}.dark .mat-mdc-tooltip .mdc-tooltip__surface{background-color:var(--angor-text-secondary)!important;color:var(--angor-bg-default)!important}code[class*=language-] .hljs-comment,code[class*=language-] .hljs-quote,pre[class*=language-] .hljs-comment,pre[class*=language-] .hljs-quote{color:#8b9fc1;font-style:italic}code[class*=language-] .hljs-doctag,code[class*=language-] .hljs-keyword,code[class*=language-] .hljs-formula,pre[class*=language-] .hljs-doctag,pre[class*=language-] .hljs-keyword,pre[class*=language-] .hljs-formula{color:#22d3ee}code[class*=language-] .hljs-name,pre[class*=language-] .hljs-name{color:#e879f9}code[class*=language-] .hljs-tag,pre[class*=language-] .hljs-tag{color:#bae6fd}code[class*=language-] .hljs-section,code[class*=language-] .hljs-selector-tag,code[class*=language-] .hljs-deletion,code[class*=language-] .hljs-subst,pre[class*=language-] .hljs-section,pre[class*=language-] .hljs-selector-tag,pre[class*=language-] .hljs-deletion,pre[class*=language-] .hljs-subst{color:#f87f71}code[class*=language-] .hljs-literal,pre[class*=language-] .hljs-literal{color:#36beff}code[class*=language-] .hljs-string,code[class*=language-] .hljs-regexp,code[class*=language-] .hljs-addition,code[class*=language-] .hljs-attribute,code[class*=language-] .hljs-meta-string,pre[class*=language-] .hljs-string,pre[class*=language-] .hljs-regexp,pre[class*=language-] .hljs-addition,pre[class*=language-] .hljs-attribute,pre[class*=language-] .hljs-meta-string{color:#bef264}code[class*=language-] .hljs-built_in,code[class*=language-] .hljs-class .hljs-title,pre[class*=language-] .hljs-built_in,pre[class*=language-] .hljs-class .hljs-title{color:#ffd374}code[class*=language-] .hljs-attr,code[class*=language-] .hljs-variable,code[class*=language-] .hljs-template-variable,code[class*=language-] .hljs-type,code[class*=language-] .hljs-selector-class,code[class*=language-] .hljs-selector-attr,code[class*=language-] .hljs-selector-pseudo,code[class*=language-] .hljs-number,pre[class*=language-] .hljs-attr,pre[class*=language-] .hljs-variable,pre[class*=language-] .hljs-template-variable,pre[class*=language-] .hljs-type,pre[class*=language-] .hljs-selector-class,pre[class*=language-] .hljs-selector-attr,pre[class*=language-] .hljs-selector-pseudo,pre[class*=language-] .hljs-number{color:#22d3ee}code[class*=language-] .hljs-symbol,code[class*=language-] .hljs-bullet,code[class*=language-] .hljs-link,code[class*=language-] .hljs-meta,code[class*=language-] .hljs-selector-id,code[class*=language-] .hljs-title,pre[class*=language-] .hljs-symbol,pre[class*=language-] .hljs-bullet,pre[class*=language-] .hljs-link,pre[class*=language-] .hljs-meta,pre[class*=language-] .hljs-selector-id,pre[class*=language-] .hljs-title{color:#e879f9}code[class*=language-] .hljs-emphasis,pre[class*=language-] .hljs-emphasis{font-style:italic}code[class*=language-] .hljs-strong,pre[class*=language-] .hljs-strong{font-weight:700}code[class*=language-] .hljs-link,pre[class*=language-] .hljs-link{text-decoration:underline}.ps{position:relative}.ps:hover>.ps__rail-x,.ps:hover>.ps__rail-y,.ps.ps--focus>.ps__rail-x,.ps.ps--focus>.ps__rail-y,.ps.ps--scrolling-x>.ps__rail-x,.ps.ps--scrolling-x>.ps__rail-y,.ps.ps--scrolling-y>.ps__rail-x,.ps.ps--scrolling-y>.ps__rail-y{opacity:1}.ps>.ps__rail-x,.ps>.ps__rail-y{z-index:99999}.ps>.ps__rail-x{height:14px;background:transparent!important;transition:none!important}.ps>.ps__rail-x:hover,.ps>.ps__rail-x:focus,.ps>.ps__rail-x.ps--clicking{opacity:1}.ps>.ps__rail-x:hover .ps__thumb-x,.ps>.ps__rail-x:focus .ps__thumb-x,.ps>.ps__rail-x.ps--clicking .ps__thumb-x{height:10px}.ps>.ps__rail-x .ps__thumb-x{background:#00000080;box-shadow:0 0 0 1px #ffffff26;height:6px;transition:height 225ms cubic-bezier(.25,.8,.25,1)}.ps>.ps__rail-y{width:14px;background:transparent!important;transition:none!important;left:auto!important}.ps>.ps__rail-y:hover,.ps>.ps__rail-y:focus,.ps>.ps__rail-y.ps--clicking{opacity:1}.ps>.ps__rail-y:hover .ps__thumb-y,.ps>.ps__rail-y:focus .ps__thumb-y,.ps>.ps__rail-y.ps--clicking .ps__thumb-y{width:10px}.ps>.ps__rail-y .ps__thumb-y{background:#00000080;box-shadow:0 0 0 1px #ffffff26;width:6px;transition:width 225ms cubic-bezier(.25,.8,.25,1)}.ql-toolbar{border-radius:6px 6px 0 0;padding:0!important;--tw-bg-opacity: 1;background-color:rgb(203 221 225 / var(--tw-bg-opacity, 1));border-color:rgb(107 152 164 / var(--tw-border-opacity, 1))!important;--tw-border-opacity: 1 !important}.dark .ql-toolbar{background-color:#0000000d;--tw-border-opacity: 1 !important;border-color:rgb(8 59 70 / var(--tw-border-opacity, 1))!important}.ql-toolbar .ql-formats{margin:11px 8px!important}.ql-toolbar .ql-picker.ql-expanded .ql-picker-label{--tw-border-opacity: 1;border-color:rgb(107 152 164 / var(--tw-border-opacity, 1))}.dark .ql-toolbar .ql-picker.ql-expanded .ql-picker-label{--tw-border-opacity: 1;border-color:rgb(8 59 70 / var(--tw-border-opacity, 1))}.ql-toolbar .ql-picker.ql-expanded .ql-picker-options{z-index:10!important;--tw-bg-opacity: 1;background-color:rgba(var(--angor-bg-card-rgb),var(--tw-bg-opacity));--tw-border-opacity: 1;border-color:rgb(107 152 164 / var(--tw-border-opacity, 1))}.dark .ql-toolbar .ql-picker.ql-expanded .ql-picker-options{--tw-border-opacity: 1;border-color:rgb(8 59 70 / var(--tw-border-opacity, 1))}.ql-toolbar .ql-picker .ql-picker-label,.ql-toolbar .ql-picker .ql-picker-options .ql-picker-item{--tw-text-opacity: 1;color:rgba(var(--angor-text-default-rgb),var(--tw-text-opacity))}.ql-toolbar .ql-stroke,.ql-toolbar .ql-stroke-mitter{stroke:var(--angor-icon)}.ql-toolbar .ql-fill{fill:var(--angor-icon)}.ql-toolbar button:hover,.ql-toolbar button:focus,.ql-toolbar button.ql-active,.ql-toolbar .ql-picker-label:hover,.ql-toolbar .ql-picker-label.ql-active,.ql-toolbar .ql-picker-item:hover,.ql-toolbar .ql-picker-item.ql-selected{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-rgb),var(--tw-text-opacity, 1))!important}.ql-toolbar button:hover .ql-stroke,.ql-toolbar button:hover .ql-stroke-mitter,.ql-toolbar button:focus .ql-stroke,.ql-toolbar button:focus .ql-stroke-mitter,.ql-toolbar button.ql-active .ql-stroke,.ql-toolbar button.ql-active .ql-stroke-mitter,.ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-toolbar .ql-picker-label:hover .ql-stroke-mitter,.ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-toolbar .ql-picker-label.ql-active .ql-stroke-mitter,.ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-toolbar .ql-picker-item:hover .ql-stroke-mitter,.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-mitter{stroke:var(--angor-primary)!important}.ql-toolbar button:hover .ql-fill,.ql-toolbar button:focus .ql-fill,.ql-toolbar button.ql-active .ql-fill,.ql-toolbar .ql-picker-label:hover .ql-fill,.ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-toolbar .ql-picker-item:hover .ql-fill,.ql-toolbar .ql-picker-item.ql-selected .ql-fill{fill:var(--angor-primary)!important}.ql-container{overflow:auto;min-height:160px;max-height:400px;border-radius:0 0 6px 6px;border-color:rgb(107 152 164 / var(--tw-border-opacity, 1))!important;--tw-border-opacity: 1 !important;--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05) !important;--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.dark .ql-container{--tw-border-opacity: 1 !important;border-color:rgb(8 59 70 / var(--tw-border-opacity, 1))!important}.ql-container .ql-editor{--tw-bg-opacity: 1;background-color:rgba(var(--angor-bg-card-rgb),var(--tw-bg-opacity))}.ql-container .ql-editor.ql-blank:before{--tw-text-opacity: 1;color:rgba(var(--angor-text-hint-rgb),var(--tw-text-opacity))}.mat-toolbar.mat-primary .ql-container .ql-editor.ql-blank:before{color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-accent .ql-container .ql-editor.ql-blank:before{color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-warn .ql-container .ql-editor.ql-blank:before{color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.ql-container .ql-tooltip{border-radius:.375rem;--tw-border-opacity: 1;border-color:rgb(107 152 164 / var(--tw-border-opacity, 1));--tw-bg-opacity: 1;background-color:rgb(203 221 225 / var(--tw-bg-opacity, 1));padding:.25rem .75rem;--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.dark .ql-container .ql-tooltip{--tw-border-opacity: 1 !important;border-color:rgb(5 43 51 / var(--tw-border-opacity, 1))!important;--tw-bg-opacity: 1 !important;background-color:rgb(5 43 51 / var(--tw-bg-opacity, 1))!important;--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1) !important;--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.ql-container .ql-tooltip:before{--tw-text-opacity: 1;color:rgba(var(--angor-text-secondary-rgb),var(--tw-text-opacity))}.mat-toolbar.mat-primary .ql-container .ql-tooltip:before{color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .6 !important}.mat-toolbar.mat-accent .ql-container .ql-tooltip:before{color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .6 !important}.mat-toolbar.mat-warn .ql-container .ql-tooltip:before{color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .6 !important}.ql-container .ql-tooltip .ql-action,.ql-container .ql-tooltip .ql-remove{--tw-border-opacity: 1;border-color:rgb(107 152 164 / var(--tw-border-opacity, 1));--tw-text-opacity: 1;color:rgba(var(--angor-primary-rgb),var(--tw-text-opacity, 1))}.dark .ql-container .ql-tooltip .ql-action,.dark .ql-container .ql-tooltip .ql-remove{--tw-border-opacity: 1;border-color:rgb(107 152 164 / var(--tw-border-opacity, 1));--tw-text-opacity: 1;color:rgba(var(--angor-primary-400-rgb),var(--tw-text-opacity, 1))}.ql-container .ql-tooltip .ql-action:after{border-right-width:1px!important;--tw-border-opacity: 1 !important;border-right-color:rgb(107 152 164 / var(--tw-border-opacity, 1))!important}.dark .ql-container .ql-tooltip .ql-action:after{--tw-border-opacity: 1 !important;border-right-color:rgb(8 59 70 / var(--tw-border-opacity, 1))!important}.ql-container .ql-tooltip input{--tw-text-opacity: 1 !important;color:rgba(var(--angor-text-default-rgb),var(--tw-text-opacity))!important;border-radius:.125rem!important;--tw-border-opacity: 1 !important;border-color:rgb(107 152 164 / var(--tw-border-opacity, 1))!important;--tw-bg-opacity: 1 !important;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))!important}.dark .ql-container .ql-tooltip input{--tw-border-opacity: 1 !important;border-color:rgb(8 59 70 / var(--tw-border-opacity, 1))!important;--tw-bg-opacity: 1 !important;background-color:rgb(5 43 51 / var(--tw-bg-opacity, 1))!important}.emoji-mart,.emoji-mart *{box-sizing:border-box;line-height:1.15}.emoji-mart{font-family:-apple-system,BlinkMacSystemFont,Helvetica Neue,sans-serif;font-size:16px;display:inline-block;color:#222427;border:1px solid #d9d9d9;border-radius:15px;background:#fff}.emoji-mart .emoji-mart-emoji{padding:6px}.emoji-mart-bar{border:0 solid #d9d9d9}.emoji-mart-bar:first-child{border-bottom-width:1px;border-top-left-radius:5px;border-top-right-radius:5px}.emoji-mart-bar:last-child{border-top-width:1px;border-bottom-left-radius:5px;border-bottom-right-radius:5px}.emoji-mart-anchors{display:flex;flex-direction:row;justify-content:space-between;padding:0 6px;line-height:0}.emoji-mart-anchor{position:relative;display:block;flex:1 1 auto;color:#858585;text-align:center;padding:12px 4px;overflow:hidden;transition:color .1s ease-out;margin:0;box-shadow:none;background:none;border:none}.emoji-mart-anchor:focus{outline:0}.emoji-mart-anchor:hover,.emoji-mart-anchor:focus,.emoji-mart-anchor-selected{color:#464646}.emoji-mart-anchor-selected .emoji-mart-anchor-bar{bottom:0}.emoji-mart-anchor-bar{position:absolute;bottom:-3px;left:0;width:100%;height:3px;background-color:#464646}.emoji-mart-anchors i{display:inline-block;width:100%;max-width:22px}.emoji-mart-anchors svg,.emoji-mart-anchors img{fill:currentColor;height:18px}.emoji-mart-scroll{overflow-y:scroll;height:270px;padding:0 6px 6px;will-change:transform}.emoji-mart-search{margin-top:6px;padding:0 6px;position:relative}.emoji-mart-search input{font-size:16px;display:block;width:100%;padding:5px 25px 6px 10px;border-radius:5px;border:1px solid #d9d9d9;outline:0}.emoji-mart-search input,.emoji-mart-search input::-webkit-search-decoration,.emoji-mart-search input::-webkit-search-cancel-button,.emoji-mart-search input::-webkit-search-results-button,.emoji-mart-search input::-webkit-search-results-decoration{-webkit-appearance:none}.emoji-mart-search-icon{position:absolute;top:6px;right:11px;z-index:2;padding:2px 5px 1px;border:none;background:none}.emoji-mart-category .emoji-mart-emoji span{z-index:1;position:relative;text-align:center;cursor:default}.emoji-mart-category .emoji-mart-emoji:hover:before{z-index:0;content:"";position:absolute;top:0;left:0;width:100%;height:100%;background-color:#f4f4f4;border-radius:100%}.emoji-mart-category-label{z-index:2;position:relative;position:sticky;top:0}.emoji-mart-category-label span{display:block;width:100%;font-weight:500;padding:5px 6px;background-color:#fff;background-color:#fffffff2}.emoji-mart-category-list{margin:0;padding:0}.emoji-mart-category-list li{list-style:none;margin:0;padding:0;display:inline-block}.emoji-mart-emoji{position:relative;display:inline-block;font-size:0;margin:0;padding:0;border:none;background:none;box-shadow:none}.emoji-mart-emoji-native{font-family:"Segoe UI Emoji",Segoe UI Symbol,Segoe UI,"Apple Color Emoji",Twemoji Mozilla,"Noto Color Emoji","Android Emoji"}.emoji-mart-no-results{font-size:14px;text-align:center;padding-top:70px;color:#858585}.emoji-mart-no-results .emoji-mart-category-label{display:none}.emoji-mart-no-results .emoji-mart-no-results-label{margin-top:.2em}.emoji-mart-no-results .emoji-mart-emoji:hover:before{content:none}.emoji-mart-preview{position:relative;height:70px}.emoji-mart-preview-emoji,.emoji-mart-preview-data,.emoji-mart-preview-skins{position:absolute;top:50%;transform:translateY(-50%)}.emoji-mart-preview-emoji{left:12px}.emoji-mart-preview-data{left:68px;right:12px;word-break:break-all}.emoji-mart-preview-skins{right:30px;text-align:right}.emoji-mart-preview-skins.custom{right:10px;text-align:right}.emoji-mart-preview-name{font-size:14px}.emoji-mart-preview-shortname{font-size:12px;color:#888}.emoji-mart-preview-shortname+.emoji-mart-preview-shortname,.emoji-mart-preview-shortname+.emoji-mart-preview-emoticon,.emoji-mart-preview-emoticon+.emoji-mart-preview-emoticon{margin-left:.5em}.emoji-mart-preview-emoticon{font-size:11px;color:#bbb}.emoji-mart-title span{display:inline-block;vertical-align:middle}.emoji-mart-title .emoji-mart-emoji{padding:0}.emoji-mart-title-label{color:#999a9c;font-size:26px;font-weight:300}.emoji-mart-skin-swatches{font-size:0;padding:2px 0;border:1px solid #d9d9d9;border-radius:15px;background-color:#fff}.emoji-mart-skin-swatches.custom{font-size:0;border:none;background-color:#fff}.emoji-mart-skin-swatches.opened .emoji-mart-skin-swatch{width:16px;padding:0 2px}.emoji-mart-skin-swatches.opened .emoji-mart-skin-swatch.selected:after{opacity:.75}.emoji-mart-skin-swatch{display:inline-block;width:0;vertical-align:middle;transition-property:width,padding;transition-duration:.125s;transition-timing-function:ease-out}.emoji-mart-skin-swatch:nth-child(1){transition-delay:0s}.emoji-mart-skin-swatch:nth-child(2){transition-delay:.03s}.emoji-mart-skin-swatch:nth-child(3){transition-delay:.06s}.emoji-mart-skin-swatch:nth-child(4){transition-delay:.09s}.emoji-mart-skin-swatch:nth-child(5){transition-delay:.12s}.emoji-mart-skin-swatch:nth-child(6){transition-delay:.15s}.emoji-mart-skin-swatch.selected{position:relative;width:16px;padding:0 2px}.emoji-mart-skin-swatch.selected:after{content:"";position:absolute;top:50%;left:50%;width:4px;height:4px;margin:-2px 0 0 -2px;background-color:#fff;border-radius:100%;pointer-events:none;opacity:0;transition:opacity .2s ease-out}.emoji-mart-skin-swatch.custom{display:inline-block;width:0;height:38px;overflow:hidden;vertical-align:middle;transition-property:width,height;transition-duration:.125s;transition-timing-function:ease-out;cursor:default}.emoji-mart-skin-swatch.custom.selected{position:relative;width:36px;height:38px;padding:0 2px 0 0}.emoji-mart-skin-swatch.custom.selected:after{content:"";width:0;height:0}.emoji-mart-skin-swatches.custom .emoji-mart-skin-swatch.custom:hover{background-color:#f4f4f4;border-radius:10%}.emoji-mart-skin-swatches.custom.opened .emoji-mart-skin-swatch.custom{width:36px;height:38px;padding:0 2px 0 0}.emoji-mart-skin-swatches.custom.opened .emoji-mart-skin-swatch.custom.selected:after{opacity:.75}.emoji-mart-skin-text.opened{display:inline-block;vertical-align:middle;text-align:left;color:#888;font-size:11px;padding:5px 2px;width:95px;height:40px;border-radius:10%;background-color:#fff}.emoji-mart-skin{display:inline-block;width:100%;padding-top:100%;max-width:12px;border-radius:100%}.emoji-mart-skin-tone-1{background-color:#ffc93a}.emoji-mart-skin-tone-2{background-color:#fadcbc}.emoji-mart-skin-tone-3{background-color:#e0bb95}.emoji-mart-skin-tone-4{background-color:#bf8f68}.emoji-mart-skin-tone-5{background-color:#9b643d}.emoji-mart-skin-tone-6{background-color:#594539}.emoji-mart-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.emoji-mart-dark{color:#e5eef0;border-color:#083b46;border-width:2px;border-radius:15px;background-color:#022229}.emoji-mart-dark .emoji-mart-bar{border-color:#083b46}.emoji-mart-dark .emoji-mart-search input{color:#e5eef0;border-color:#083b46;background-color:#07343e}.emoji-mart-dark .emoji-mart-search-icon svg{fill:#e5eef0}.emoji-mart-dark .emoji-mart-category .emoji-mart-emoji:hover:before{background-color:#052b33}.emoji-mart-dark .emoji-mart-category-label span{background-color:#032128;color:#e5eef0}.emoji-mart-dark .emoji-mart-skin-swatches{border-color:#083b46;background-color:#022229}.emoji-mart-dark .emoji-mart-anchor:hover,.emoji-mart-dark .emoji-mart-anchor:focus,.emoji-mart-dark .emoji-mart-anchor-selected{color:#9bbac3}body{overflow-x:hidden}.overscroll-y-contain{overflow:hidden!important}.emoji-picker-container{position:absolute;bottom:60px;left:0;z-index:100000}input,textarea,select,button{font-size:16px}.large-font{font-size:3rem}.qrcode{display:flex;justify-content:center}.qrcode-image{width:100%!important}.heart-beat{animation:heartBeatAnimation .3s ease-in-out}@keyframes heartBeatAnimation{0%{transform:scale(1)}30%{transform:scale(2)}60%{transform:scale(1)}to{transform:scale(1)}}.pointer-events-none{pointer-events:none!important}.visible{visibility:visible!important}.collapse{visibility:collapse!important}.static{position:static!important}.fixed{position:fixed!important}.\!absolute,.absolute{position:absolute!important}.relative{position:relative!important}.sticky{position:sticky!important}.inset-0{inset:0!important}.inset-auto{inset:auto!important}.-left-1{left:-.25rem!important}.-right-1{right:-.25rem!important}.-right-16{right:-4rem!important}.-top-16{top:-4rem!important}.bottom-0{bottom:0!important}.left-0{left:0!important}.right-0{right:0!important}.right-2{right:.5rem!important}.right-5{right:1.25rem!important}.top-0{top:0!important}.top-1\/2{top:50%!important}.top-2{top:.5rem!important}.z-10{z-index:10!important}.z-20{z-index:20!important}.z-49{z-index:49!important}.z-90{z-index:90!important}.z-99{z-index:99!important}.z-999{z-index:999!important}.col-span-2{grid-column:span 2 / span 2!important}.m-0{margin:0!important}.m-0\.5{margin:.125rem!important}.m-8{margin:2rem!important}.m-auto{margin:auto!important}.-mx-3{margin-left:-.75rem!important;margin-right:-.75rem!important}.-mx-6{margin-left:-1.5rem!important;margin-right:-1.5rem!important}.mx-1{margin-left:.25rem!important;margin-right:.25rem!important}.mx-1\.5{margin-left:.375rem!important;margin-right:.375rem!important}.mx-2{margin-left:.5rem!important;margin-right:.5rem!important}.mx-3{margin-left:.75rem!important;margin-right:.75rem!important}.mx-4{margin-left:1rem!important;margin-right:1rem!important}.mx-6{margin-left:1.5rem!important;margin-right:1.5rem!important}.mx-auto{margin-left:auto!important;margin-right:auto!important}.my-0{margin-top:0!important;margin-bottom:0!important}.my-0\.5{margin-top:.125rem!important;margin-bottom:.125rem!important}.my-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-10{margin-top:2.5rem!important;margin-bottom:2.5rem!important}.my-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-3{margin-top:.75rem!important;margin-bottom:.75rem!important}.my-5{margin-top:1.25rem!important;margin-bottom:1.25rem!important}.my-6{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-8{margin-top:2rem!important;margin-bottom:2rem!important}.my-px{margin-top:1px!important;margin-bottom:1px!important}.-mb-px{margin-bottom:-1px!important}.-ml-0\.5{margin-left:-.125rem!important}.-ml-1{margin-left:-.25rem!important}.-ml-2{margin-left:-.5rem!important}.-ml-3{margin-left:-.75rem!important}.-ml-px{margin-left:-1px!important}.-mr-4{margin-right:-1rem!important}.-mr-px{margin-right:-1px!important}.-mt-12{margin-top:-3rem!important}.-mt-16{margin-top:-4rem!important}.-mt-26{margin-top:-6.5rem!important}.-mt-5{margin-top:-1.25rem!important}.-mt-px{margin-top:-1px!important}.mb-1{margin-bottom:.25rem!important}.mb-2{margin-bottom:.5rem!important}.mb-3{margin-bottom:.75rem!important}.mb-4{margin-bottom:1rem!important}.mb-6{margin-bottom:1.5rem!important}.mb-8{margin-bottom:2rem!important}.mb-px{margin-bottom:1px!important}.ml-0\.5{margin-left:.125rem!important}.ml-1{margin-left:.25rem!important}.ml-1\.5{margin-left:.375rem!important}.ml-2{margin-left:.5rem!important}.ml-2\.5{margin-left:.625rem!important}.ml-3{margin-left:.75rem!important}.ml-4{margin-left:1rem!important}.ml-6{margin-left:1.5rem!important}.ml-auto{margin-left:auto!important}.mr-1{margin-right:.25rem!important}.mr-1\.5{margin-right:.375rem!important}.mr-2{margin-right:.5rem!important}.mr-3{margin-right:.75rem!important}.mr-4{margin-right:1rem!important}.mr-6{margin-right:1.5rem!important}.mt-0\.5{margin-top:.125rem!important}.mt-1{margin-top:.25rem!important}.mt-1\.5{margin-top:.375rem!important}.mt-10{margin-top:2.5rem!important}.mt-12{margin-top:3rem!important}.mt-2{margin-top:.5rem!important}.mt-2\.5{margin-top:.625rem!important}.mt-3{margin-top:.75rem!important}.mt-4{margin-top:1rem!important}.mt-5{margin-top:1.25rem!important}.mt-6{margin-top:1.5rem!important}.mt-8{margin-top:2rem!important}.mt-px{margin-top:1px!important}.line-clamp-1{overflow:hidden!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:1!important}.line-clamp-2{overflow:hidden!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important}.block{display:block!important}.inline-block{display:inline-block!important}.inline{display:inline!important}.flex{display:flex!important}.inline-flex{display:inline-flex!important}.grid{display:grid!important}.hidden{display:none!important}.h-1{height:.25rem!important}.h-1\.5{height:.375rem!important}.h-10{height:2.5rem!important}.h-11{height:2.75rem!important}.h-14{height:3.5rem!important}.h-16{height:4rem!important}.h-18{height:4.5rem!important}.h-2{height:.5rem!important}.h-2\.5{height:.625rem!important}.h-20{height:5rem!important}.h-24{height:6rem!important}.h-3{height:.75rem!important}.h-32{height:8rem!important}.h-4{height:1rem!important}.h-40{height:10rem!important}.h-6{height:1.5rem!important}.h-7{height:1.75rem!important}.h-8{height:2rem!important}.h-full{height:100%!important}.max-h-120{max-height:30rem!important}.max-h-128{max-height:32rem!important}.max-h-140{max-height:35rem!important}.max-h-20{max-height:5rem!important}.min-h-20{min-height:5rem!important}.min-h-32{min-height:8rem!important}.min-h-6{min-height:1.5rem!important}.w-1{width:.25rem!important}.w-1\.5{width:.375rem!important}.w-1\/2{width:50%!important}.w-10{width:2.5rem!important}.w-14{width:3.5rem!important}.w-16{width:4rem!important}.w-2{width:.5rem!important}.w-24{width:6rem!important}.w-3{width:.75rem!important}.w-30{width:7.5rem!important}.w-32{width:8rem!important}.w-4{width:1rem!important}.w-40{width:10rem!important}.w-5{width:1.25rem!important}.w-50{width:12.5rem!important}.w-6{width:1.5rem!important}.w-7{width:1.75rem!important}.w-8{width:2rem!important}.w-full{width:100%!important}.w-screen{width:100vw!important}.min-w-0{min-width:0px!important}.min-w-32{min-width:8rem!important}.min-w-4{min-width:1rem!important}.min-w-screen{min-width:100vw!important}.max-w-140{max-width:35rem!important}.max-w-2xl{max-width:42rem!important}.max-w-3\/4{max-width:75%!important}.max-w-3xl{max-width:48rem!important}.max-w-4xl{max-width:56rem!important}.max-w-5xl{max-width:64rem!important}.max-w-60{max-width:15rem!important}.max-w-80{max-width:20rem!important}.max-w-fit{max-width:fit-content!important}.max-w-full{max-width:100%!important}.max-w-md{max-width:28rem!important}.max-w-sm{max-width:24rem!important}.max-w-xs{max-width:20rem!important}.flex-0{flex:0 0 auto!important}.flex-1{flex:1 1 0%!important}.flex-auto{flex:1 1 auto!important}.flex-shrink-0{flex-shrink:0!important}.shrink{flex-shrink:1!important}.shrink-0{flex-shrink:0!important}.flex-grow{flex-grow:1!important}.-translate-x-80{--tw-translate-x: -20rem !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.-translate-x-full{--tw-translate-x: -100% !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.translate-x-0{--tw-translate-x: 0px !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.rotate-0{--tw-rotate: 0deg !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.rotate-180{--tw-rotate: 180deg !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.-scale-x-1{--tw-scale-x: -1 !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.cursor-pointer{cursor:pointer!important}.resize{resize:both!important}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))!important}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))!important}.flex-row{flex-direction:row!important}.flex-col{flex-direction:column!important}.flex-col-reverse{flex-direction:column-reverse!important}.items-start{align-items:flex-start!important}.items-end{align-items:flex-end!important}.items-center{align-items:center!important}.items-baseline{align-items:baseline!important}.justify-start{justify-content:flex-start!important}.justify-end{justify-content:flex-end!important}.justify-center{justify-content:center!important}.justify-between{justify-content:space-between!important}.justify-items-start{justify-items:start!important}.gap-3{gap:.75rem!important}.gap-4{gap:1rem!important}.gap-6{gap:1.5rem!important}.gap-y-8{row-gap:2rem!important}.space-x-0\.5>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0 !important;margin-right:calc(.125rem * var(--tw-space-x-reverse))!important;margin-left:calc(.125rem * calc(1 - var(--tw-space-x-reverse)))!important}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0 !important;margin-right:calc(.25rem * var(--tw-space-x-reverse))!important;margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))!important}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0 !important;margin-right:calc(.5rem * var(--tw-space-x-reverse))!important;margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))!important}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0 !important;margin-right:calc(.75rem * var(--tw-space-x-reverse))!important;margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))!important}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0 !important;margin-right:calc(1rem * var(--tw-space-x-reverse))!important;margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))!important}.space-x-6>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0 !important;margin-right:calc(1.5rem * var(--tw-space-x-reverse))!important;margin-left:calc(1.5rem * calc(1 - var(--tw-space-x-reverse)))!important}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0 !important;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)))!important;margin-bottom:calc(.25rem * var(--tw-space-y-reverse))!important}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0 !important;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)))!important;margin-bottom:calc(.5rem * var(--tw-space-y-reverse))!important}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0 !important;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)))!important;margin-bottom:calc(1rem * var(--tw-space-y-reverse))!important}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0 !important;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)))!important;margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))!important}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0 !important;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)))!important;border-bottom-width:calc(1px * var(--tw-divide-y-reverse))!important}.self-start{align-self:flex-start!important}.overflow-auto{overflow:auto!important}.overflow-hidden{overflow:hidden!important}.overflow-y-auto{overflow-y:auto!important}.overflow-y-hidden{overflow-y:hidden!important}.overscroll-y-contain{overscroll-behavior-y:contain!important}.truncate{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}.whitespace-nowrap{white-space:nowrap!important}.whitespace-pre-wrap{white-space:pre-wrap!important}.break-words{overflow-wrap:break-word!important}.rounded{border-radius:.25rem!important}.rounded-2xl{border-radius:1rem!important}.rounded-full{border-radius:9999px!important}.rounded-lg{border-radius:.5rem!important}.rounded-md{border-radius:.375rem!important}.rounded-sm{border-radius:.125rem!important}.rounded-b{border-bottom-right-radius:.25rem!important;border-bottom-left-radius:.25rem!important}.rounded-l-lg{border-top-left-radius:.5rem!important;border-bottom-left-radius:.5rem!important}.border{border-width:1px!important}.border-2{border-width:2px!important}.border-b{border-bottom-width:1px!important}.border-l{border-left-width:1px!important}.border-r{border-right-width:1px!important}.border-t{border-top-width:1px!important}.border-gray-300{--tw-border-opacity: 1 !important;border-color:rgb(107 152 164 / var(--tw-border-opacity, 1))!important}.border-gray-300\/70{border-color:#6b98a4b3!important}.border-gray-500{--tw-border-opacity: 1 !important;border-color:rgb(8 59 70 / var(--tw-border-opacity, 1))!important}.border-gray-700{--tw-border-opacity: 1 !important;border-color:rgb(5 43 51 / var(--tw-border-opacity, 1))!important}.border-primary{--tw-border-opacity: 1 !important;border-color:rgba(var(--angor-primary-rgb),var(--tw-border-opacity, 1))!important}.border-slate-300{--tw-border-opacity: 1 !important;border-color:rgb(203 213 225 / var(--tw-border-opacity, 1))!important}.border-warn{--tw-border-opacity: 1 !important;border-color:rgba(var(--angor-warn-rgb),var(--tw-border-opacity, 1))!important}.border-r-gray-300{--tw-border-opacity: 1 !important;border-right-color:rgb(107 152 164 / var(--tw-border-opacity, 1))!important}.border-r-gray-500{--tw-border-opacity: 1 !important;border-right-color:rgb(8 59 70 / var(--tw-border-opacity, 1))!important}.border-opacity-100{--tw-border-opacity: 1 !important}.bg-\[\#086c81\]{--tw-bg-opacity: 1 !important;background-color:rgb(8 108 129 / var(--tw-bg-opacity, 1))!important}.bg-accent-100{--tw-bg-opacity: 1 !important;background-color:rgba(var(--angor-accent-100-rgb),var(--tw-bg-opacity, 1))!important}.bg-accent-200{--tw-bg-opacity: 1 !important;background-color:rgba(var(--angor-accent-200-rgb),var(--tw-bg-opacity, 1))!important}.bg-amber-100{--tw-bg-opacity: 1 !important;background-color:rgb(254 243 199 / var(--tw-bg-opacity, 1))!important}.bg-amber-200{--tw-bg-opacity: 1 !important;background-color:rgb(253 230 138 / var(--tw-bg-opacity, 1))!important}.bg-amber-50{--tw-bg-opacity: 1 !important;background-color:rgb(255 251 235 / var(--tw-bg-opacity, 1))!important}.bg-black{--tw-bg-opacity: 1 !important;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1))!important}.bg-black\/10{background-color:#0000001a!important}.bg-blue-100{--tw-bg-opacity: 1 !important;background-color:rgb(219 234 254 / var(--tw-bg-opacity, 1))!important}.bg-blue-200{--tw-bg-opacity: 1 !important;background-color:rgb(191 219 254 / var(--tw-bg-opacity, 1))!important}.bg-blue-50{--tw-bg-opacity: 1 !important;background-color:rgb(239 246 255 / var(--tw-bg-opacity, 1))!important}.bg-blue-500{--tw-bg-opacity: 1 !important;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))!important}.bg-gray-100{--tw-bg-opacity: 1 !important;background-color:rgb(203 221 225 / var(--tw-bg-opacity, 1))!important}.bg-gray-200{--tw-bg-opacity: 1 !important;background-color:rgb(155 186 195 / var(--tw-bg-opacity, 1))!important}.bg-gray-300{--tw-bg-opacity: 1 !important;background-color:rgb(107 152 164 / var(--tw-bg-opacity, 1))!important}.bg-gray-400{--tw-bg-opacity: 1 !important;background-color:rgb(59 117 134 / var(--tw-bg-opacity, 1))!important}.bg-gray-50{--tw-bg-opacity: 1 !important;background-color:rgb(229 238 240 / var(--tw-bg-opacity, 1))!important}.bg-gray-500{--tw-bg-opacity: 1 !important;background-color:rgb(8 59 70 / var(--tw-bg-opacity, 1))!important}.bg-gray-700{--tw-bg-opacity: 1 !important;background-color:rgb(5 43 51 / var(--tw-bg-opacity, 1))!important}.bg-gray-800{--tw-bg-opacity: 1 !important;background-color:rgb(3 33 40 / var(--tw-bg-opacity, 1))!important}.bg-gray-900{--tw-bg-opacity: 1 !important;background-color:rgb(2 34 41 / var(--tw-bg-opacity, 1))!important}.bg-green-100{--tw-bg-opacity: 1 !important;background-color:rgb(220 252 231 / var(--tw-bg-opacity, 1))!important}.bg-green-200{--tw-bg-opacity: 1 !important;background-color:rgb(187 247 208 / var(--tw-bg-opacity, 1))!important}.bg-green-50{--tw-bg-opacity: 1 !important;background-color:rgb(240 253 244 / var(--tw-bg-opacity, 1))!important}.bg-primary{--tw-bg-opacity: 1 !important;background-color:rgba(var(--angor-primary-rgb),var(--tw-bg-opacity, 1))!important}.bg-primary-100{--tw-bg-opacity: 1 !important;background-color:rgba(var(--angor-primary-100-rgb),var(--tw-bg-opacity, 1))!important}.bg-primary-200{--tw-bg-opacity: 1 !important;background-color:rgba(var(--angor-primary-200-rgb),var(--tw-bg-opacity, 1))!important}.bg-primary-50{--tw-bg-opacity: 1 !important;background-color:rgba(var(--angor-primary-50-rgb),var(--tw-bg-opacity, 1))!important}.bg-red-100{--tw-bg-opacity: 1 !important;background-color:rgb(254 226 226 / var(--tw-bg-opacity, 1))!important}.bg-red-200{--tw-bg-opacity: 1 !important;background-color:rgb(254 202 202 / var(--tw-bg-opacity, 1))!important}.bg-red-50{--tw-bg-opacity: 1 !important;background-color:rgb(254 242 242 / var(--tw-bg-opacity, 1))!important}.bg-teal-600{--tw-bg-opacity: 1 !important;background-color:rgb(13 148 136 / var(--tw-bg-opacity, 1))!important}.bg-warn-100{--tw-bg-opacity: 1 !important;background-color:rgba(var(--angor-warn-100-rgb),var(--tw-bg-opacity, 1))!important}.bg-warn-200{--tw-bg-opacity: 1 !important;background-color:rgba(var(--angor-warn-200-rgb),var(--tw-bg-opacity, 1))!important}.bg-warn-50{--tw-bg-opacity: 1 !important;background-color:rgba(var(--angor-warn-50-rgb),var(--tw-bg-opacity, 1))!important}.bg-white{--tw-bg-opacity: 1 !important;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))!important}.bg-opacity-5{--tw-bg-opacity: .05 !important}.bg-opacity-60{--tw-bg-opacity: .6 !important}.bg-opacity-90{--tw-bg-opacity: .9 !important}.object-cover{object-fit:cover!important}.object-center{object-position:center!important}.p-0{padding:0!important}.p-1{padding:.25rem!important}.p-16{padding:4rem!important}.p-2{padding:.5rem!important}.p-4{padding:1rem!important}.p-6{padding:1.5rem!important}.p-8{padding:2rem!important}.px-1{padding-left:.25rem!important;padding-right:.25rem!important}.px-1\.5{padding-left:.375rem!important;padding-right:.375rem!important}.px-16{padding-left:4rem!important;padding-right:4rem!important}.px-2{padding-left:.5rem!important;padding-right:.5rem!important}.px-3{padding-left:.75rem!important;padding-right:.75rem!important}.px-4{padding-left:1rem!important;padding-right:1rem!important}.px-6{padding-left:1.5rem!important;padding-right:1.5rem!important}.px-8{padding-left:2rem!important;padding-right:2rem!important}.py-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-12{padding-top:3rem!important;padding-bottom:3rem!important}.py-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-3{padding-top:.75rem!important;padding-bottom:.75rem!important}.py-4{padding-top:1rem!important;padding-bottom:1rem!important}.py-5{padding-top:1.25rem!important;padding-bottom:1.25rem!important}.py-6{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-8{padding-top:2rem!important;padding-bottom:2rem!important}.pb-12{padding-bottom:3rem!important}.pb-28{padding-bottom:7rem!important}.pb-6{padding-bottom:1.5rem!important}.pl-2{padding-left:.5rem!important}.pl-5{padding-left:1.25rem!important}.pl-6{padding-left:1.5rem!important}.pr-4{padding-right:1rem!important}.pr-6{padding-right:1.5rem!important}.pt-4{padding-top:1rem!important}.pt-6{padding-top:1.5rem!important}.pt-8{padding-top:2rem!important}.pt-9{padding-top:2.25rem!important}.text-center{text-align:center!important}.text-2xl{font-size:1.25rem!important}.text-3xl{font-size:1.5rem!important}.text-4xl{font-size:2rem!important}.text-7xl{font-size:3rem!important}.text-8xl{font-size:4rem!important}.text-base{font-size:.875rem!important}.text-lg{font-size:1rem!important}.text-md{font-size:.8125rem!important}.text-sm{font-size:.75rem!important}.text-xl{font-size:1.125rem!important}.text-xs{font-size:.625rem!important}.font-bold{font-weight:700!important}.font-extrabold{font-weight:800!important}.font-medium{font-weight:500!important}.font-semibold{font-weight:600!important}.uppercase{text-transform:uppercase!important}.italic{font-style:italic!important}.leading-10{line-height:2.5rem!important}.leading-5{line-height:1.25rem!important}.leading-6{line-height:1.5rem!important}.leading-none{line-height:1!important}.leading-tight{line-height:1.25!important}.tracking-tight{letter-spacing:-.025em!important}.text-accent{--tw-text-opacity: 1 !important;color:rgba(var(--angor-accent-rgb),var(--tw-text-opacity, 1))!important}.text-accent-50{--tw-text-opacity: 1 !important;color:rgba(var(--angor-accent-50-rgb),var(--tw-text-opacity, 1))!important}.text-accent-600{--tw-text-opacity: 1 !important;color:rgba(var(--angor-accent-600-rgb),var(--tw-text-opacity, 1))!important}.text-amber-50{--tw-text-opacity: 1 !important;color:rgb(255 251 235 / var(--tw-text-opacity, 1))!important}.text-amber-500{--tw-text-opacity: 1 !important;color:rgb(245 158 11 / var(--tw-text-opacity, 1))!important}.text-blue-50{--tw-text-opacity: 1 !important;color:rgb(239 246 255 / var(--tw-text-opacity, 1))!important}.text-blue-500{--tw-text-opacity: 1 !important;color:rgb(59 130 246 / var(--tw-text-opacity, 1))!important}.text-blue-600{--tw-text-opacity: 1 !important;color:rgb(37 99 235 / var(--tw-text-opacity, 1))!important}.text-current{color:currentColor!important}.text-gray-100{--tw-text-opacity: 1 !important;color:rgb(203 221 225 / var(--tw-text-opacity, 1))!important}.text-gray-400{--tw-text-opacity: 1 !important;color:rgb(59 117 134 / var(--tw-text-opacity, 1))!important}.text-gray-50{--tw-text-opacity: 1 !important;color:rgb(229 238 240 / var(--tw-text-opacity, 1))!important}.text-gray-500{--tw-text-opacity: 1 !important;color:rgb(8 59 70 / var(--tw-text-opacity, 1))!important}.text-gray-600{--tw-text-opacity: 1 !important;color:rgb(7 52 62 / var(--tw-text-opacity, 1))!important}.text-gray-700{--tw-text-opacity: 1 !important;color:rgb(5 43 51 / var(--tw-text-opacity, 1))!important}.text-gray-800{--tw-text-opacity: 1 !important;color:rgb(3 33 40 / var(--tw-text-opacity, 1))!important}.text-gray-900{--tw-text-opacity: 1 !important;color:rgb(2 34 41 / var(--tw-text-opacity, 1))!important}.text-green-50{--tw-text-opacity: 1 !important;color:rgb(240 253 244 / var(--tw-text-opacity, 1))!important}.text-green-500{--tw-text-opacity: 1 !important;color:rgb(34 197 94 / var(--tw-text-opacity, 1))!important}.text-green-700{--tw-text-opacity: 1 !important;color:rgb(21 128 61 / var(--tw-text-opacity, 1))!important}.text-indigo-50{--tw-text-opacity: 1 !important;color:rgb(238 242 255 / var(--tw-text-opacity, 1))!important}.text-on-accent{--tw-text-opacity: 1 !important;color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important}.text-on-primary{--tw-text-opacity: 1 !important;color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important}.text-on-warn{--tw-text-opacity: 1 !important;color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important}.text-orange-500{--tw-text-opacity: 1 !important;color:rgb(249 115 22 / var(--tw-text-opacity, 1))!important}.text-primary{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-rgb),var(--tw-text-opacity, 1))!important}.text-primary-400{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-400-rgb),var(--tw-text-opacity, 1))!important}.text-primary-50{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-50-rgb),var(--tw-text-opacity, 1))!important}.text-primary-500{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-500-rgb),var(--tw-text-opacity, 1))!important}.text-primary-600{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-600-rgb),var(--tw-text-opacity, 1))!important}.text-primary-700{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-700-rgb),var(--tw-text-opacity, 1))!important}.text-red-50{--tw-text-opacity: 1 !important;color:rgb(254 242 242 / var(--tw-text-opacity, 1))!important}.text-red-500{--tw-text-opacity: 1 !important;color:rgb(239 68 68 / var(--tw-text-opacity, 1))!important}.text-red-600{--tw-text-opacity: 1 !important;color:rgb(220 38 38 / var(--tw-text-opacity, 1))!important}.text-red-700{--tw-text-opacity: 1 !important;color:rgb(185 28 28 / var(--tw-text-opacity, 1))!important}.text-warn{--tw-text-opacity: 1 !important;color:rgba(var(--angor-warn-rgb),var(--tw-text-opacity, 1))!important}.text-warn-50{--tw-text-opacity: 1 !important;color:rgba(var(--angor-warn-50-rgb),var(--tw-text-opacity, 1))!important}.text-warn-600{--tw-text-opacity: 1 !important;color:rgba(var(--angor-warn-600-rgb),var(--tw-text-opacity, 1))!important}.text-white{--tw-text-opacity: 1 !important;color:rgb(255 255 255 / var(--tw-text-opacity, 1))!important}.text-opacity-12{--tw-text-opacity: .12 !important}.text-opacity-38{--tw-text-opacity: .38 !important}.text-opacity-60{--tw-text-opacity: .6 !important}.underline{text-decoration-line:underline!important}.overline{text-decoration-line:overline!important}.opacity-100{opacity:1!important}.opacity-25{opacity:.25!important}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1) !important;--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1) !important;--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1) !important;--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05) !important;--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.outline{outline-style:solid!important}.ring{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color) !important;--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color) !important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)!important}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color) !important;--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color) !important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)!important}.ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color) !important;--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color) !important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)!important}.ring-4{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color) !important;--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color) !important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)!important}.ring-inset{--tw-ring-inset: inset !important}.ring-primary{--tw-ring-opacity: 1 !important;--tw-ring-color: rgba(var(--angor-primary-rgb), var(--tw-ring-opacity, 1)) !important}.ring-primary-50{--tw-ring-opacity: 1 !important;--tw-ring-color: rgba(var(--angor-primary-50-rgb), var(--tw-ring-opacity, 1)) !important}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter!important;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter!important;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-duration:.15s!important}.transition-all{transition-property:all!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-duration:.15s!important}.transition-shadow{transition-property:box-shadow!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-duration:.15s!important}.transition-transform{transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-duration:.15s!important}.duration-150{transition-duration:.15s!important}.duration-300{transition-duration:.3s!important}.duration-400{transition-duration:.4s!important}.ease-drawer{transition-timing-function:cubic-bezier(.25,.8,.25,1)!important}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)!important}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)!important}.icon-size-24{width:6rem!important;height:6rem!important;min-width:6rem!important;min-height:6rem!important;font-size:6rem!important;line-height:6rem!important}.icon-size-24 svg{width:6rem!important;height:6rem!important}.icon-size-4{width:1rem!important;height:1rem!important;min-width:1rem!important;min-height:1rem!important;font-size:1rem!important;line-height:1rem!important}.icon-size-4 svg{width:1rem!important;height:1rem!important}.icon-size-5{width:1.25rem!important;height:1.25rem!important;min-width:1.25rem!important;min-height:1.25rem!important;font-size:1.25rem!important;line-height:1.25rem!important}.icon-size-5 svg{width:1.25rem!important;height:1.25rem!important}.icon-size-6{width:1.5rem!important;height:1.5rem!important;min-width:1.5rem!important;min-height:1.5rem!important;font-size:1.5rem!important;line-height:1.5rem!important}.icon-size-6 svg{width:1.5rem!important;height:1.5rem!important}.icon-size-7{width:1.75rem!important;height:1.75rem!important;min-width:1.75rem!important;min-height:1.75rem!important;font-size:1.75rem!important;line-height:1.75rem!important}.icon-size-7 svg{width:1.75rem!important;height:1.75rem!important}.hover\:bg-gray-100:hover{--tw-bg-opacity: 1 !important;background-color:rgb(203 221 225 / var(--tw-bg-opacity, 1))!important}.hover\:bg-gray-200:hover{--tw-bg-opacity: 1 !important;background-color:rgb(155 186 195 / var(--tw-bg-opacity, 1))!important}.hover\:bg-gray-50:hover{--tw-bg-opacity: 1 !important;background-color:rgb(229 238 240 / var(--tw-bg-opacity, 1))!important}.hover\:bg-gray-700:hover{--tw-bg-opacity: 1 !important;background-color:rgb(5 43 51 / var(--tw-bg-opacity, 1))!important}.hover\:underline:hover{text-decoration-line:underline!important}.hover\:opacity-80:hover{opacity:.8!important}.hover\:shadow-lg:hover{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1) !important;--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.focus\:outline-none:focus{outline:2px solid transparent!important;outline-offset:2px!important}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color) !important;--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color) !important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)!important}.focus\:ring-gray-500:focus{--tw-ring-opacity: 1 !important;--tw-ring-color: rgb(8 59 70 / var(--tw-ring-opacity, 1)) !important}.disabled\:bg-gray-400:disabled{--tw-bg-opacity: 1 !important;background-color:rgb(59 117 134 / var(--tw-bg-opacity, 1))!important}.group:hover .group-hover\:text-blue-500{--tw-text-opacity: 1 !important;color:rgb(59 130 246 / var(--tw-text-opacity, 1))!important}.group:hover .group-hover\:opacity-100{opacity:1!important}.group:hover .group-hover\:shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1) !important;--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.dark\:flex:is(.dark *){display:flex!important}.dark\:hidden:is(.dark *){display:none!important}.dark\:border-b:is(.dark *){border-bottom-width:1px!important}.dark\:border-l:is(.dark *){border-left-width:1px!important}.dark\:border-t:is(.dark *){border-top-width:1px!important}.dark\:border-gray-500:is(.dark *){--tw-border-opacity: 1 !important;border-color:rgb(8 59 70 / var(--tw-border-opacity, 1))!important}.dark\:border-gray-600:is(.dark *){--tw-border-opacity: 1 !important;border-color:rgb(7 52 62 / var(--tw-border-opacity, 1))!important}.dark\:border-primary:is(.dark *){--tw-border-opacity: 1 !important;border-color:rgba(var(--angor-primary-rgb),var(--tw-border-opacity, 1))!important}.dark\:border-slate-500:is(.dark *){--tw-border-opacity: 1 !important;border-color:rgb(100 116 139 / var(--tw-border-opacity, 1))!important}.dark\:border-warn:is(.dark *){--tw-border-opacity: 1 !important;border-color:rgba(var(--angor-warn-rgb),var(--tw-border-opacity, 1))!important}.dark\:bg-accent-600:is(.dark *){--tw-bg-opacity: 1 !important;background-color:rgba(var(--angor-accent-600-rgb),var(--tw-bg-opacity, 1))!important}.dark\:bg-amber-500:is(.dark *){--tw-bg-opacity: 1 !important;background-color:rgb(245 158 11 / var(--tw-bg-opacity, 1))!important}.dark\:bg-black:is(.dark *){--tw-bg-opacity: 1 !important;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1))!important}.dark\:bg-blue-600:is(.dark *){--tw-bg-opacity: 1 !important;background-color:rgb(37 99 235 / var(--tw-bg-opacity, 1))!important}.dark\:bg-gray-500:is(.dark *){--tw-bg-opacity: 1 !important;background-color:rgb(8 59 70 / var(--tw-bg-opacity, 1))!important}.dark\:bg-gray-600:is(.dark *){--tw-bg-opacity: 1 !important;background-color:rgb(7 52 62 / var(--tw-bg-opacity, 1))!important}.dark\:bg-gray-700:is(.dark *){--tw-bg-opacity: 1 !important;background-color:rgb(5 43 51 / var(--tw-bg-opacity, 1))!important}.dark\:bg-gray-800:is(.dark *){--tw-bg-opacity: 1 !important;background-color:rgb(3 33 40 / var(--tw-bg-opacity, 1))!important}.dark\:bg-gray-900:is(.dark *){--tw-bg-opacity: 1 !important;background-color:rgb(2 34 41 / var(--tw-bg-opacity, 1))!important}.dark\:bg-green-500:is(.dark *){--tw-bg-opacity: 1 !important;background-color:rgb(34 197 94 / var(--tw-bg-opacity, 1))!important}.dark\:bg-primary-500:is(.dark *){--tw-bg-opacity: 1 !important;background-color:rgba(var(--angor-primary-500-rgb),var(--tw-bg-opacity, 1))!important}.dark\:bg-primary-600:is(.dark *){--tw-bg-opacity: 1 !important;background-color:rgba(var(--angor-primary-600-rgb),var(--tw-bg-opacity, 1))!important}.dark\:bg-primary-800:is(.dark *){--tw-bg-opacity: 1 !important;background-color:rgba(var(--angor-primary-800-rgb),var(--tw-bg-opacity, 1))!important}.dark\:bg-red-600:is(.dark *){--tw-bg-opacity: 1 !important;background-color:rgb(220 38 38 / var(--tw-bg-opacity, 1))!important}.dark\:bg-transparent:is(.dark *){background-color:transparent!important}.dark\:bg-warn-600:is(.dark *){--tw-bg-opacity: 1 !important;background-color:rgba(var(--angor-warn-600-rgb),var(--tw-bg-opacity, 1))!important}.dark\:bg-white:is(.dark *){--tw-bg-opacity: 1 !important;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))!important}.dark\:bg-opacity-10:is(.dark *){--tw-bg-opacity: .1 !important}.dark\:bg-opacity-5:is(.dark *){--tw-bg-opacity: .05 !important}.dark\:text-accent-50:is(.dark *){--tw-text-opacity: 1 !important;color:rgba(var(--angor-accent-50-rgb),var(--tw-text-opacity, 1))!important}.dark\:text-amber-50:is(.dark *){--tw-text-opacity: 1 !important;color:rgb(255 251 235 / var(--tw-text-opacity, 1))!important}.dark\:text-blue-50:is(.dark *){--tw-text-opacity: 1 !important;color:rgb(239 246 255 / var(--tw-text-opacity, 1))!important}.dark\:text-gray-200:is(.dark *){--tw-text-opacity: 1 !important;color:rgb(155 186 195 / var(--tw-text-opacity, 1))!important}.dark\:text-gray-300:is(.dark *){--tw-text-opacity: 1 !important;color:rgb(107 152 164 / var(--tw-text-opacity, 1))!important}.dark\:text-gray-400:is(.dark *){--tw-text-opacity: 1 !important;color:rgb(59 117 134 / var(--tw-text-opacity, 1))!important}.dark\:text-gray-50:is(.dark *){--tw-text-opacity: 1 !important;color:rgb(229 238 240 / var(--tw-text-opacity, 1))!important}.dark\:text-gray-600:is(.dark *){--tw-text-opacity: 1 !important;color:rgb(7 52 62 / var(--tw-text-opacity, 1))!important}.dark\:text-green-50:is(.dark *){--tw-text-opacity: 1 !important;color:rgb(240 253 244 / var(--tw-text-opacity, 1))!important}.dark\:text-primary-400:is(.dark *){--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-400-rgb),var(--tw-text-opacity, 1))!important}.dark\:text-primary-50:is(.dark *){--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-50-rgb),var(--tw-text-opacity, 1))!important}.dark\:text-primary-500:is(.dark *){--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-500-rgb),var(--tw-text-opacity, 1))!important}.dark\:text-red-50:is(.dark *){--tw-text-opacity: 1 !important;color:rgb(254 242 242 / var(--tw-text-opacity, 1))!important}.dark\:text-warn-50:is(.dark *){--tw-text-opacity: 1 !important;color:rgba(var(--angor-warn-50-rgb),var(--tw-text-opacity, 1))!important}.dark\:text-white:is(.dark *){--tw-text-opacity: 1 !important;color:rgb(255 255 255 / var(--tw-text-opacity, 1))!important}.dark\:shadow-none:is(.dark *){--tw-shadow: 0 0 #0000 !important;--tw-shadow-colored: 0 0 #0000 !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.dark\:ring-gray-900:is(.dark *){--tw-ring-opacity: 1 !important;--tw-ring-color: rgb(2 34 41 / var(--tw-ring-opacity, 1)) !important}.dark\:hover\:bg-black:hover:is(.dark *){--tw-bg-opacity: 1 !important;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1))!important}.dark\:hover\:bg-gray-700:hover:is(.dark *){--tw-bg-opacity: 1 !important;background-color:rgb(5 43 51 / var(--tw-bg-opacity, 1))!important}.dark\:hover\:bg-opacity-5:hover:is(.dark *){--tw-bg-opacity: .05 !important}@media (min-width: 600px){.sm\:static{position:static!important}.sm\:absolute{position:absolute!important}.sm\:inset-0{inset:0!important}.sm\:inset-auto{inset:auto!important}.sm\:col-span-4{grid-column:span 4 / span 4!important}.sm\:mx-0{margin-left:0!important;margin-right:0!important}.sm\:mx-1{margin-left:.25rem!important;margin-right:.25rem!important}.sm\:mx-5{margin-left:1.25rem!important;margin-right:1.25rem!important}.sm\:mx-8{margin-left:2rem!important;margin-right:2rem!important}.sm\:my-10{margin-top:2.5rem!important;margin-bottom:2.5rem!important}.sm\:-mr-4{margin-right:-1rem!important}.sm\:-mt-24{margin-top:-6rem!important}.sm\:mb-6{margin-bottom:1.5rem!important}.sm\:ml-0{margin-left:0!important}.sm\:ml-8{margin-left:2rem!important}.sm\:ml-auto{margin-left:auto!important}.sm\:mr-4{margin-right:1rem!important}.sm\:mt-0{margin-top:0!important}.sm\:mt-20{margin-top:5rem!important}.sm\:mt-24{margin-top:6rem!important}.sm\:mt-8{margin-top:2rem!important}.sm\:flex{display:flex!important}.sm\:inline-flex{display:inline-flex!important}.sm\:hidden{display:none!important}.sm\:h-20{height:5rem!important}.sm\:h-full{height:100%!important}.sm\:max-h-120{max-height:30rem!important}.sm\:w-100{width:25rem!important}.sm\:w-80{width:20rem!important}.sm\:w-90{width:22.5rem!important}.sm\:w-96{width:24rem!important}.sm\:w-auto{width:auto!important}.sm\:min-w-100{min-width:25rem!important}.sm\:min-w-90{min-width:22.5rem!important}.sm\:max-w-120{max-width:30rem!important}.sm\:max-w-5xl{max-width:64rem!important}.sm\:max-w-none{max-width:none!important}.sm\:-translate-x-96{--tw-translate-x: -24rem !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.sm\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))!important}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))!important}.sm\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))!important}.sm\:flex-row{flex-direction:row!important}.sm\:items-start{align-items:flex-start!important}.sm\:items-center{align-items:center!important}.sm\:justify-start{justify-content:flex-start!important}.sm\:justify-end{justify-content:flex-end!important}.sm\:justify-center{justify-content:center!important}.sm\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0 !important;margin-right:calc(.5rem * var(--tw-space-x-reverse))!important;margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))!important}.sm\:overflow-hidden{overflow:hidden!important}.sm\:rounded-2xl{border-radius:1rem!important}.sm\:bg-transparent{background-color:transparent!important}.sm\:p-10{padding:2.5rem!important}.sm\:p-12{padding:3rem!important}.sm\:p-16{padding:4rem!important}.sm\:p-8{padding:2rem!important}.sm\:px-10{padding-left:2.5rem!important;padding-right:2.5rem!important}.sm\:px-16{padding-left:4rem!important;padding-right:4rem!important}.sm\:px-18{padding-left:4.5rem!important;padding-right:4.5rem!important}.sm\:px-8{padding-left:2rem!important;padding-right:2rem!important}.sm\:pb-10{padding-bottom:2.5rem!important}.sm\:pb-48{padding-bottom:12rem!important}.sm\:pb-8{padding-bottom:2rem!important}.sm\:pr-8{padding-right:2rem!important}.sm\:pt-20{padding-top:5rem!important}.sm\:text-left{text-align:left!important}.sm\:text-2xl{font-size:1.25rem!important}.sm\:text-4xl{font-size:2rem!important}.sm\:text-7xl{font-size:3rem!important}.sm\:opacity-0{opacity:0!important}.sm\:shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1) !important;--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.group:hover .sm\:group-hover\:opacity-100{opacity:1!important}}@media (min-width: 960px){.md\:-ml-2{margin-left:-.5rem!important}.md\:block{display:block!important}.md\:flex{display:flex!important}.md\:h-full{height:100%!important}.md\:w-1\/2{width:50%!important}.md\:max-w-4xl{max-width:56rem!important}.md\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))!important}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))!important}.md\:items-start{align-items:flex-start!important}.md\:items-center{align-items:center!important}.md\:justify-start{justify-content:flex-start!important}.md\:justify-end{justify-content:flex-end!important}.md\:gap-x-6{column-gap:1.5rem!important}.md\:gap-y-0{row-gap:0px!important}.md\:rounded-none{border-radius:0!important}.md\:p-16{padding:4rem!important}.md\:p-8{padding:2rem!important}.md\:px-6{padding-left:1.5rem!important;padding-right:1.5rem!important}.md\:px-8{padding-left:2rem!important;padding-right:2rem!important}.md\:pb-12{padding-bottom:3rem!important}.md\:text-7xl{font-size:3rem!important}.md\:text-xl{font-size:1.125rem!important}.md\:leading-none{line-height:1!important}.md\:shadow-none{--tw-shadow: 0 0 #0000 !important;--tw-shadow-colored: 0 0 #0000 !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}}@media (min-width: 1280px){.lg\:static{position:static!important}.lg\:sticky{position:sticky!important}.lg\:inset-auto{inset:auto!important}.lg\:left-full{left:100%!important}.lg\:right-0{right:0!important}.lg\:right-16{right:4rem!important}.lg\:m-0{margin:0!important}.lg\:-mt-22{margin-top:-5.5rem!important}.lg\:ml-0{margin-left:0!important}.lg\:ml-8{margin-left:2rem!important}.lg\:ml-auto{margin-left:auto!important}.lg\:mr-8{margin-right:2rem!important}.lg\:mt-0{margin-top:0!important}.lg\:flex{display:flex!important}.lg\:hidden{display:none!important}.lg\:h-18{height:4.5rem!important}.lg\:h-80{height:20rem!important}.lg\:h-screen{height:100vh!important}.lg\:w-16{width:4rem!important}.lg\:min-w-100{min-width:25rem!important}.lg\:max-w-100,.lg\:max-w-\[25rem\]{max-width:25rem!important}.lg\:-translate-x-80{--tw-translate-x: -20rem !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}.lg\:flex-row{flex-direction:row!important}.lg\:items-start{align-items:flex-start!important}.lg\:overflow-hidden{overflow:hidden!important}.lg\:border-l{border-left-width:1px!important}.lg\:border-r{border-right-width:1px!important}.lg\:p-12{padding:3rem!important}.lg\:px-28{padding-left:7rem!important;padding-right:7rem!important}.lg\:shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1) !important;--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.lg\:shadow-none{--tw-shadow: 0 0 #0000 !important;--tw-shadow-colored: 0 0 #0000 !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}}@media print{.print\:hidden{display:none!important}} + */.ql-container{box-sizing:border-box;font-family:Helvetica,Arial,sans-serif;font-size:13px;height:100%;margin:0;position:relative}.ql-container.ql-disabled .ql-tooltip{visibility:hidden}.ql-container:not(.ql-disabled) li[data-list=checked]>.ql-ui,.ql-container:not(.ql-disabled) li[data-list=unchecked]>.ql-ui{cursor:pointer}.ql-clipboard{left:-100000px;height:1px;overflow-y:hidden;position:absolute;top:50%}.ql-clipboard p{margin:0;padding:0}.ql-editor{box-sizing:border-box;counter-reset:list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;line-height:1.42;height:100%;outline:none;overflow-y:auto;padding:12px 15px;tab-size:4;-moz-tab-size:4;text-align:left;white-space:pre-wrap;word-wrap:break-word}.ql-editor>*{cursor:text}.ql-editor p,.ql-editor ol,.ql-editor pre,.ql-editor blockquote,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{margin:0;padding:0}@supports (counter-set:none){.ql-editor p,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{counter-set:list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor p,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{counter-reset:list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor table{border-collapse:collapse}.ql-editor td{border:1px solid #000;padding:2px 5px}.ql-editor ol{padding-left:1.5em}.ql-editor li{list-style-type:none;padding-left:1.5em;position:relative}.ql-editor li>.ql-ui:before{display:inline-block;margin-left:-1.5em;margin-right:.3em;text-align:right;white-space:nowrap;width:1.2em}.ql-editor li[data-list=checked]>.ql-ui,.ql-editor li[data-list=unchecked]>.ql-ui{color:#777}.ql-editor li[data-list=bullet]>.ql-ui:before{content:"\2022"}.ql-editor li[data-list=checked]>.ql-ui:before{content:"\2611"}.ql-editor li[data-list=unchecked]>.ql-ui:before{content:"\2610"}@supports (counter-set:none){.ql-editor li[data-list]{counter-set:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list]{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered]{counter-increment:list-0}.ql-editor li[data-list=ordered]>.ql-ui:before{content:counter(list-0,decimal) ". "}.ql-editor li[data-list=ordered].ql-indent-1{counter-increment:list-1}.ql-editor li[data-list=ordered].ql-indent-1>.ql-ui:before{content:counter(list-1,lower-alpha) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-1{counter-set:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-1{counter-reset:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-2{counter-increment:list-2}.ql-editor li[data-list=ordered].ql-indent-2>.ql-ui:before{content:counter(list-2,lower-roman) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-2{counter-set:list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-2{counter-reset:list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-3{counter-increment:list-3}.ql-editor li[data-list=ordered].ql-indent-3>.ql-ui:before{content:counter(list-3,decimal) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-3{counter-set:list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-3{counter-reset:list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-4{counter-increment:list-4}.ql-editor li[data-list=ordered].ql-indent-4>.ql-ui:before{content:counter(list-4,lower-alpha) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-4{counter-set:list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-4{counter-reset:list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-5{counter-increment:list-5}.ql-editor li[data-list=ordered].ql-indent-5>.ql-ui:before{content:counter(list-5,lower-roman) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-5{counter-set:list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-5{counter-reset:list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-6{counter-increment:list-6}.ql-editor li[data-list=ordered].ql-indent-6>.ql-ui:before{content:counter(list-6,decimal) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-6{counter-set:list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-6{counter-reset:list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-7{counter-increment:list-7}.ql-editor li[data-list=ordered].ql-indent-7>.ql-ui:before{content:counter(list-7,lower-alpha) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-7{counter-set:list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-7{counter-reset:list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-8{counter-increment:list-8}.ql-editor li[data-list=ordered].ql-indent-8>.ql-ui:before{content:counter(list-8,lower-roman) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-8{counter-set:list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-8{counter-reset:list-9}}.ql-editor li[data-list=ordered].ql-indent-9{counter-increment:list-9}.ql-editor li[data-list=ordered].ql-indent-9>.ql-ui:before{content:counter(list-9,decimal) ". "}.ql-editor .ql-indent-1:not(.ql-direction-rtl){padding-left:3em}.ql-editor li.ql-indent-1:not(.ql-direction-rtl){padding-left:4.5em}.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:3em}.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:4.5em}.ql-editor .ql-indent-2:not(.ql-direction-rtl){padding-left:6em}.ql-editor li.ql-indent-2:not(.ql-direction-rtl){padding-left:7.5em}.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:6em}.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:7.5em}.ql-editor .ql-indent-3:not(.ql-direction-rtl){padding-left:9em}.ql-editor li.ql-indent-3:not(.ql-direction-rtl){padding-left:10.5em}.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:9em}.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:10.5em}.ql-editor .ql-indent-4:not(.ql-direction-rtl){padding-left:12em}.ql-editor li.ql-indent-4:not(.ql-direction-rtl){padding-left:13.5em}.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:12em}.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:13.5em}.ql-editor .ql-indent-5:not(.ql-direction-rtl){padding-left:15em}.ql-editor li.ql-indent-5:not(.ql-direction-rtl){padding-left:16.5em}.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:15em}.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:16.5em}.ql-editor .ql-indent-6:not(.ql-direction-rtl){padding-left:18em}.ql-editor li.ql-indent-6:not(.ql-direction-rtl){padding-left:19.5em}.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:18em}.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:19.5em}.ql-editor .ql-indent-7:not(.ql-direction-rtl){padding-left:21em}.ql-editor li.ql-indent-7:not(.ql-direction-rtl){padding-left:22.5em}.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:21em}.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:22.5em}.ql-editor .ql-indent-8:not(.ql-direction-rtl){padding-left:24em}.ql-editor li.ql-indent-8:not(.ql-direction-rtl){padding-left:25.5em}.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:24em}.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:25.5em}.ql-editor .ql-indent-9:not(.ql-direction-rtl){padding-left:27em}.ql-editor li.ql-indent-9:not(.ql-direction-rtl){padding-left:28.5em}.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:27em}.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:28.5em}.ql-editor li.ql-direction-rtl{padding-right:1.5em}.ql-editor li.ql-direction-rtl>.ql-ui:before{margin-left:.3em;margin-right:-1.5em;text-align:left}.ql-editor table{table-layout:fixed;width:100%}.ql-editor table td{outline:none}.ql-editor .ql-code-block-container{font-family:monospace}.ql-editor .ql-video{display:block;max-width:100%}.ql-editor .ql-video.ql-align-center{margin:0 auto}.ql-editor .ql-video.ql-align-right{margin:0 0 0 auto}.ql-editor .ql-bg-black{background-color:#000}.ql-editor .ql-bg-red{background-color:#e60000}.ql-editor .ql-bg-orange{background-color:#f90}.ql-editor .ql-bg-yellow{background-color:#ff0}.ql-editor .ql-bg-green{background-color:#008a00}.ql-editor .ql-bg-blue{background-color:#06c}.ql-editor .ql-bg-purple{background-color:#93f}.ql-editor .ql-color-white{color:#fff}.ql-editor .ql-color-red{color:#e60000}.ql-editor .ql-color-orange{color:#f90}.ql-editor .ql-color-yellow{color:#ff0}.ql-editor .ql-color-green{color:#008a00}.ql-editor .ql-color-blue{color:#06c}.ql-editor .ql-color-purple{color:#93f}.ql-editor .ql-font-serif{font-family:Georgia,Times New Roman,serif}.ql-editor .ql-font-monospace{font-family:Monaco,Courier New,monospace}.ql-editor .ql-size-small{font-size:.75em}.ql-editor .ql-size-large{font-size:1.5em}.ql-editor .ql-size-huge{font-size:2.5em}.ql-editor .ql-direction-rtl{direction:rtl;text-align:inherit}.ql-editor .ql-align-center{text-align:center}.ql-editor .ql-align-justify{text-align:justify}.ql-editor .ql-align-right{text-align:right}.ql-editor .ql-ui{position:absolute}.ql-editor.ql-blank:before{color:#0009;content:attr(data-placeholder);font-style:italic;left:15px;pointer-events:none;position:absolute;right:15px}.ql-snow.ql-toolbar:after,.ql-snow .ql-toolbar:after{clear:both;content:"";display:table}.ql-snow.ql-toolbar button,.ql-snow .ql-toolbar button{background:none;border:none;cursor:pointer;display:inline-block;float:left;height:24px;padding:3px 5px;width:28px}.ql-snow.ql-toolbar button svg,.ql-snow .ql-toolbar button svg{float:left;height:100%}.ql-snow.ql-toolbar button:active:hover,.ql-snow .ql-toolbar button:active:hover{outline:none}.ql-snow.ql-toolbar input.ql-image[type=file],.ql-snow .ql-toolbar input.ql-image[type=file]{display:none}.ql-snow.ql-toolbar button:hover,.ql-snow .ql-toolbar button:hover,.ql-snow.ql-toolbar button:focus,.ql-snow .ql-toolbar button:focus,.ql-snow.ql-toolbar button.ql-active,.ql-snow .ql-toolbar button.ql-active,.ql-snow.ql-toolbar .ql-picker-label:hover,.ql-snow .ql-toolbar .ql-picker-label:hover,.ql-snow.ql-toolbar .ql-picker-label.ql-active,.ql-snow .ql-toolbar .ql-picker-label.ql-active,.ql-snow.ql-toolbar .ql-picker-item:hover,.ql-snow .ql-toolbar .ql-picker-item:hover,.ql-snow.ql-toolbar .ql-picker-item.ql-selected,.ql-snow .ql-toolbar .ql-picker-item.ql-selected{color:#06c}.ql-snow.ql-toolbar button:hover .ql-fill,.ql-snow .ql-toolbar button:hover .ql-fill,.ql-snow.ql-toolbar button:focus .ql-fill,.ql-snow .ql-toolbar button:focus .ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow.ql-toolbar button:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill{fill:#06c}.ql-snow.ql-toolbar button:hover .ql-stroke,.ql-snow .ql-toolbar button:hover .ql-stroke,.ql-snow.ql-toolbar button:focus .ql-stroke,.ql-snow .ql-toolbar button:focus .ql-stroke,.ql-snow.ql-toolbar button.ql-active .ql-stroke,.ql-snow .ql-toolbar button.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow.ql-toolbar button:hover .ql-stroke-miter,.ql-snow .ql-toolbar button:hover .ql-stroke-miter,.ql-snow.ql-toolbar button:focus .ql-stroke-miter,.ql-snow .ql-toolbar button:focus .ql-stroke-miter,.ql-snow.ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter{stroke:#06c}@media (pointer:coarse){.ql-snow.ql-toolbar button:hover:not(.ql-active),.ql-snow .ql-toolbar button:hover:not(.ql-active){color:#444}.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill{fill:#444}.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter{stroke:#444}}.ql-snow,.ql-snow *{box-sizing:border-box}.ql-snow .ql-hidden{display:none}.ql-snow .ql-out-bottom,.ql-snow .ql-out-top{visibility:hidden}.ql-snow .ql-tooltip{position:absolute;transform:translateY(10px)}.ql-snow .ql-tooltip a{cursor:pointer;text-decoration:none}.ql-snow .ql-tooltip.ql-flip{transform:translateY(-10px)}.ql-snow .ql-formats{display:inline-block;vertical-align:middle}.ql-snow .ql-formats:after{clear:both;content:"";display:table}.ql-snow .ql-stroke{fill:none;stroke:#444;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}.ql-snow .ql-stroke-miter{fill:none;stroke:#444;stroke-miterlimit:10;stroke-width:2}.ql-snow .ql-fill,.ql-snow .ql-stroke.ql-fill{fill:#444}.ql-snow .ql-empty{fill:none}.ql-snow .ql-even{fill-rule:evenodd}.ql-snow .ql-thin,.ql-snow .ql-stroke.ql-thin{stroke-width:1}.ql-snow .ql-transparent{opacity:.4}.ql-snow .ql-direction svg:last-child{display:none}.ql-snow .ql-direction.ql-active svg:last-child{display:inline}.ql-snow .ql-direction.ql-active svg:first-child{display:none}.ql-snow .ql-editor h1{font-size:2em}.ql-snow .ql-editor h2{font-size:1.5em}.ql-snow .ql-editor h3{font-size:1.17em}.ql-snow .ql-editor h4{font-size:1em}.ql-snow .ql-editor h5{font-size:.83em}.ql-snow .ql-editor h6{font-size:.67em}.ql-snow .ql-editor a{text-decoration:underline}.ql-snow .ql-editor blockquote{border-left:4px solid #ccc;margin-bottom:5px;margin-top:5px;padding-left:16px}.ql-snow .ql-editor code,.ql-snow .ql-editor .ql-code-block-container{background-color:#f0f0f0;border-radius:3px}.ql-snow .ql-editor .ql-code-block-container{margin-bottom:5px;margin-top:5px;padding:5px 10px}.ql-snow .ql-editor code{font-size:85%;padding:2px 4px}.ql-snow .ql-editor .ql-code-block-container{background-color:#23241f;color:#f8f8f2;overflow:visible}.ql-snow .ql-editor img{max-width:100%}.ql-snow .ql-picker{color:#444;display:inline-block;float:left;font-size:14px;font-weight:500;height:24px;position:relative;vertical-align:middle}.ql-snow .ql-picker-label{cursor:pointer;display:inline-block;height:100%;padding-left:8px;padding-right:2px;position:relative;width:100%}.ql-snow .ql-picker-label:before{display:inline-block;line-height:22px}.ql-snow .ql-picker-options{background-color:#fff;display:none;min-width:100%;padding:4px 8px;position:absolute;white-space:nowrap}.ql-snow .ql-picker-options .ql-picker-item{cursor:pointer;display:block;padding-bottom:5px;padding-top:5px}.ql-snow .ql-picker.ql-expanded .ql-picker-label{color:#ccc;z-index:2}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill{fill:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke{stroke:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-options{display:block;margin-top:-1px;top:100%;z-index:1}.ql-snow .ql-color-picker,.ql-snow .ql-icon-picker{width:28px}.ql-snow .ql-color-picker .ql-picker-label,.ql-snow .ql-icon-picker .ql-picker-label{padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-label svg,.ql-snow .ql-icon-picker .ql-picker-label svg{right:4px}.ql-snow .ql-icon-picker .ql-picker-options{padding:4px 0}.ql-snow .ql-icon-picker .ql-picker-item{height:24px;width:24px;padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-options{padding:3px 5px;width:152px}.ql-snow .ql-color-picker .ql-picker-item{border:1px solid transparent;float:left;height:16px;margin:2px;padding:0;width:16px}.ql-snow .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg{position:absolute;margin-top:-9px;right:0;top:50%;width:18px}.ql-snow .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=""]):before{content:attr(data-label)}.ql-snow .ql-picker.ql-header{width:98px}.ql-snow .ql-picker.ql-header .ql-picker-label:before,.ql-snow .ql-picker.ql-header .ql-picker-item:before{content:"Normal"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="1"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]:before{content:"Heading 1"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]:before{content:"Heading 2"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="3"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]:before{content:"Heading 3"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="4"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]:before{content:"Heading 4"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="5"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]:before{content:"Heading 5"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="6"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]:before{content:"Heading 6"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]:before{font-size:2em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]:before{font-size:1.5em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]:before{font-size:1.17em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]:before{font-size:1em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]:before{font-size:.83em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]:before{font-size:.67em}.ql-snow .ql-picker.ql-font{width:108px}.ql-snow .ql-picker.ql-font .ql-picker-label:before,.ql-snow .ql-picker.ql-font .ql-picker-item:before{content:"Sans Serif"}.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=serif]:before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]:before{content:"Serif"}.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=monospace]:before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before{content:"Monospace"}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]:before{font-family:Georgia,Times New Roman,serif}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before{font-family:Monaco,Courier New,monospace}.ql-snow .ql-picker.ql-size{width:98px}.ql-snow .ql-picker.ql-size .ql-picker-label:before,.ql-snow .ql-picker.ql-size .ql-picker-item:before{content:"Normal"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=small]:before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]:before{content:"Small"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=large]:before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]:before{content:"Large"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=huge]:before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]:before{content:"Huge"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]:before{font-size:10px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]:before{font-size:18px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]:before{font-size:32px}.ql-snow .ql-color-picker.ql-background .ql-picker-item{background-color:#fff}.ql-snow .ql-color-picker.ql-color .ql-picker-item{background-color:#000}.ql-code-block-container{position:relative}.ql-code-block-container .ql-ui{right:5px;top:5px}.ql-toolbar.ql-snow{border:1px solid #ccc;box-sizing:border-box;font-family:Helvetica Neue,Helvetica,Arial,sans-serif;padding:8px}.ql-toolbar.ql-snow .ql-formats{margin-right:15px}.ql-toolbar.ql-snow .ql-picker-label{border:1px solid transparent}.ql-toolbar.ql-snow .ql-picker-options{border:1px solid transparent;box-shadow:#0003 0 2px 8px}.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label,.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options{border-color:#ccc}.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item.ql-selected,.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item:hover{border-color:#000}.ql-toolbar.ql-snow+.ql-container.ql-snow{border-top:0}.ql-snow .ql-tooltip{background-color:#fff;border:1px solid #ccc;box-shadow:0 0 5px #ddd;color:#444;padding:5px 12px;white-space:nowrap}.ql-snow .ql-tooltip:before{content:"Visit URL:";line-height:26px;margin-right:8px}.ql-snow .ql-tooltip input[type=text]{display:none;border:1px solid #ccc;font-size:13px;height:26px;margin:0;padding:3px 5px;width:170px}.ql-snow .ql-tooltip a.ql-preview{display:inline-block;max-width:200px;overflow-x:hidden;text-overflow:ellipsis;vertical-align:top}.ql-snow .ql-tooltip a.ql-action:after{border-right:1px solid #ccc;content:"Edit";margin-left:16px;padding-right:8px}.ql-snow .ql-tooltip a.ql-remove:before{content:"Remove";margin-left:8px}.ql-snow .ql-tooltip a{line-height:26px}.ql-snow .ql-tooltip.ql-editing a.ql-preview,.ql-snow .ql-tooltip.ql-editing a.ql-remove{display:none}.ql-snow .ql-tooltip.ql-editing input[type=text]{display:inline-block}.ql-snow .ql-tooltip.ql-editing a.ql-action:after{border-right:0;content:"Save";padding-right:0}.ql-snow .ql-tooltip[data-mode=link]:before{content:"Enter link:"}.ql-snow .ql-tooltip[data-mode=formula]:before{content:"Enter formula:"}.ql-snow .ql-tooltip[data-mode=video]:before{content:"Enter video:"}.ql-snow a{color:#06c}.ql-container.ql-snow{border:1px solid #ccc}.example-viewer{display:flex;flex-direction:column;margin:32px 0;overflow:hidden;--tw-bg-opacity: 1;background-color:rgba(var(--angor-bg-card-rgb),var(--tw-bg-opacity));border-radius:1rem;--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.example-viewer .title{display:flex;align-items:center;justify-content:space-between;height:88px;min-height:88px;max-height:88px;padding:0 40px}.example-viewer .title h6{font-weight:700}.example-viewer .title .controls{display:flex;align-items:center}.example-viewer .title .controls>*+*{margin-left:8px}.example-viewer mat-tab-group .mat-tab-body-content .angor-highlight pre{margin:0;border-radius:0}input,textarea{background:transparent}input::placeholder,textarea::placeholder{--tw-text-opacity: 1;color:rgba(var(--angor-text-hint-rgb),var(--tw-text-opacity))}.mat-toolbar.mat-primary input::placeholder,.mat-toolbar.mat-primary textarea::placeholder{color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-accent input::placeholder,.mat-toolbar.mat-accent textarea::placeholder{color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-warn input::placeholder,.mat-toolbar.mat-warn textarea::placeholder{color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}input::-moz-placeholder,textarea::-moz-placeholder{--tw-text-opacity: 1;color:rgba(var(--angor-text-hint-rgb),var(--tw-text-opacity))}.mat-toolbar.mat-primary input::-moz-placeholder,.mat-toolbar.mat-primary textarea::-moz-placeholder{color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-accent input::-moz-placeholder,.mat-toolbar.mat-accent textarea::-moz-placeholder{color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-warn input::-moz-placeholder,.mat-toolbar.mat-warn textarea::-moz-placeholder{color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}input::-webkit-input-placeholder,textarea::-webkit-input-placeholder{--tw-text-opacity: 1;color:rgba(var(--angor-text-hint-rgb),var(--tw-text-opacity))}.mat-toolbar.mat-primary input::-webkit-input-placeholder,.mat-toolbar.mat-primary textarea::-webkit-input-placeholder{color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-accent input::-webkit-input-placeholder,.mat-toolbar.mat-accent textarea::-webkit-input-placeholder{color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-warn input::-webkit-input-placeholder,.mat-toolbar.mat-warn textarea::-webkit-input-placeholder{color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}input:-ms-input-placeholder,textarea:-ms-input-placeholder{--tw-text-opacity: 1;color:rgba(var(--angor-text-hint-rgb),var(--tw-text-opacity))}.mat-toolbar.mat-primary input:-ms-input-placeholder,.mat-toolbar.mat-primary textarea:-ms-input-placeholder{color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-accent input:-ms-input-placeholder,.mat-toolbar.mat-accent textarea:-ms-input-placeholder{color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-warn input:-ms-input-placeholder,.mat-toolbar.mat-warn textarea:-ms-input-placeholder{color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}input:-webkit-autofill,input:-webkit-autofill:hover,input:-webkit-autofill:focus,input:-webkit-autofill:active,textarea:-webkit-autofill,textarea:-webkit-autofill:hover,textarea:-webkit-autofill:focus,textarea:-webkit-autofill:active{-webkit-background-clip:text;-webkit-transition:background-color 5000s!important;transition:background-color 5000s!important}.dark input:-webkit-autofill,.dark input:-webkit-autofill:hover,.dark input:-webkit-autofill:focus,.dark input:-webkit-autofill:active,.dark textarea:-webkit-autofill,.dark textarea:-webkit-autofill:hover,.dark textarea:-webkit-autofill:focus,.dark textarea:-webkit-autofill:active{-webkit-text-fill-color:rgba(255,255,255,.87)}input [data-autocompleted],textarea [data-autocompleted]{background-color:transparent!important}.angor-backdrop-on-mobile{background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1))!important;--tw-bg-opacity: .6 !important}@media (min-width: 600px){.angor-backdrop-on-mobile{background-color:transparent!important}}*[class*=mat-],*[class*=mat-mdc-],*[class*=mat-] *,*[class*=mat-mdc-] *{-webkit-font-smoothing:auto!important;-moz-osx-font-smoothing:auto!important}.mat-accordion .mat-expansion-panel{margin-bottom:24px;border-radius:8px!important;transition:box-shadow 225ms cubic-bezier(.4,0,.2,1);--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1) !important;--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.mat-accordion .mat-expansion-panel:last-child{margin-bottom:0}.mat-accordion .mat-expansion-panel.mat-expanded,.mat-accordion .mat-expansion-panel:hover{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1) !important;--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.mat-accordion .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]).cdk-keyboard-focused,.mat-accordion .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]).cdk-program-focused,.mat-accordion .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:transparent!important}.mat-accordion .mat-expansion-panel .mat-expansion-panel-header{font-size:14px}.mat-accordion .mat-expansion-panel .mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-description{margin-right:28px}.mat-accordion .mat-expansion-panel .mat-expansion-panel-header .mat-expansion-indicator{display:inline-flex;align-items:center;justify-content:center;width:12px;height:12px}.mat-accordion .mat-expansion-panel .mat-expansion-panel-header .mat-expansion-indicator:after{border-color:currentColor!important}.mat-accordion .mat-expansion-panel .mat-expansion-panel-body{--tw-text-opacity: 1 !important;color:rgba(var(--angor-text-secondary-rgb),var(--tw-text-opacity))!important}.mat-toolbar.mat-primary .mat-accordion .mat-expansion-panel .mat-expansion-panel-body{color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .6 !important}.mat-toolbar.mat-accent .mat-accordion .mat-expansion-panel .mat-expansion-panel-body{color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .6 !important}.mat-toolbar.mat-warn .mat-accordion .mat-expansion-panel .mat-expansion-panel-body{color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .6 !important}.mat-mdc-button,.mat-mdc-raised-button,.mat-mdc-outlined-button,.mat-mdc-unelevated-button,.mat-mdc-icon-button,.mat-mdc-fab,.mat-mdc-mini-fab{height:40px;min-height:40px;max-height:40px;line-height:1!important}.mat-mdc-button.angor-mat-button-large,.mat-mdc-raised-button.angor-mat-button-large,.mat-mdc-outlined-button.angor-mat-button-large,.mat-mdc-unelevated-button.angor-mat-button-large,.mat-mdc-icon-button.angor-mat-button-large,.mat-mdc-fab.angor-mat-button-large,.mat-mdc-mini-fab.angor-mat-button-large{height:48px;min-height:48px;max-height:48px}.mat-mdc-button[disabled=true] .mat-icon,.mat-mdc-raised-button[disabled=true] .mat-icon,.mat-mdc-outlined-button[disabled=true] .mat-icon,.mat-mdc-unelevated-button[disabled=true] .mat-icon,.mat-mdc-icon-button[disabled=true] .mat-icon,.mat-mdc-fab[disabled=true] .mat-icon,.mat-mdc-mini-fab[disabled=true] .mat-icon{opacity:.38!important}.mat-mdc-icon-button{display:inline-flex!important;align-items:center;justify-content:center;width:40px!important;padding:0!important}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{height:auto!important}.mat-mdc-fab{max-height:56px;border-radius:16px!important}.mat-mdc-fab:not(.mdc-fab--extended) .mdc-fab__ripple{border-radius:16px!important}.mat-mdc-mini-fab{border-radius:12px!important}.mat-mdc-mini-fab:not(.mdc-fab--extended) .mdc-fab__ripple{border-radius:12px!important}.mat-mdc-button,.mat-mdc-raised-button,.mat-mdc-outlined-button,.mat-mdc-unelevated-button{padding:0 20px!important;border-radius:9999px!important}.mat-mdc-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon{margin-left:0!important;margin-right:0!important}.mat-mdc-button .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-container circle,.mat-mdc-raised-button .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-container circle,.mat-mdc-outlined-button .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-container circle,.mat-mdc-unelevated-button .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-container circle,.mat-mdc-icon-button .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-container circle,.mat-mdc-fab .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-container circle,.mat-mdc-mini-fab .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-container circle{stroke:currentColor!important;animation-duration:6s}.mat-mdc-raised-button,.mat-mdc-unelevated-button,.mat-mdc-fab,.mat-mdc-mini-fab{--mat-mdc-button-persistent-ripple-color: #3b7586 !important;--mat-mdc-button-ripple-color: rgba(0, 0, 0, .1) !important}.dark .mat-mdc-raised-button,.dark .mat-mdc-unelevated-button,.dark .mat-mdc-fab,.dark .mat-mdc-mini-fab{--mat-mdc-button-persistent-ripple-color: #000 !important;--mat-mdc-button-ripple-color: rgba(0, 0, 0, .1) !important}.mat-mdc-raised-button .mat-icon,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-fab .mat-icon,.mat-mdc-mini-fab .mat-icon{color:currentColor!important}.mat-mdc-raised-button .mat-ripple-element,.mat-mdc-unelevated-button .mat-ripple-element,.mat-mdc-fab .mat-ripple-element,.mat-mdc-mini-fab .mat-ripple-element{background-color:#0000001a!important}.mat-mdc-button:not([disabled=true]).mat-primary .mat-icon,.mat-mdc-icon-button:not([disabled=true]).mat-primary .mat-icon,.mat-mdc-outlined-button:not([disabled=true]).mat-primary .mat-icon{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-rgb),var(--tw-text-opacity, 1))!important}.mat-mdc-button:not([disabled=true]).mat-accent .mat-icon,.mat-mdc-icon-button:not([disabled=true]).mat-accent .mat-icon,.mat-mdc-outlined-button:not([disabled=true]).mat-accent .mat-icon{--tw-text-opacity: 1 !important;color:rgba(var(--angor-accent-rgb),var(--tw-text-opacity, 1))!important}.mat-mdc-button:not([disabled=true]).mat-warn .mat-icon,.mat-mdc-icon-button:not([disabled=true]).mat-warn .mat-icon,.mat-mdc-outlined-button:not([disabled=true]).mat-warn .mat-icon{--tw-text-opacity: 1 !important;color:rgba(var(--angor-warn-rgb),var(--tw-text-opacity, 1))!important}.mat-mdc-outlined-button:not([disabled=true]){--tw-border-opacity: 1 !important;border-color:rgb(107 152 164 / var(--tw-border-opacity, 1))!important}.mat-mdc-outlined-button:not([disabled=true]):is(.dark *){--tw-border-opacity: 1 !important;border-color:rgb(8 59 70 / var(--tw-border-opacity, 1))!important}.mat-mdc-outlined-button[disabled=true]{border-color:#6b98a4b3!important}.mat-mdc-outlined-button[disabled=true]:is(.dark *){--tw-border-opacity: 1 !important;border-color:rgb(7 52 62 / var(--tw-border-opacity, 1))!important}.mdc-button .mdc-button__label{white-space:nowrap}.mat-button-toggle-group{border:none!important}.mat-button-toggle-group>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.mat-button-toggle-group.mat-button-toggle-group-appearance-standard .mat-button-toggle+.mat-button-toggle{background-clip:padding-box}.mat-button-toggle-group .mat-button-toggle{border-radius:9999px;overflow:hidden;border:none!important;font-weight:500}.mat-button-toggle-group .mat-button-toggle.mat-button-toggle-checked .mat-button-toggle-label-content{--tw-text-opacity: 1 !important;color:rgba(var(--angor-text-default-rgb),var(--tw-text-opacity))!important}.mat-button-toggle-group .mat-button-toggle .mat-button-toggle-label-content{padding:0 20px;line-height:40px!important;--tw-text-opacity: 1;color:rgba(var(--angor-text-secondary-rgb),var(--tw-text-opacity))}.mat-toolbar.mat-primary .mat-button-toggle-group .mat-button-toggle .mat-button-toggle-label-content{color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .6 !important}.mat-toolbar.mat-accent .mat-button-toggle-group .mat-button-toggle .mat-button-toggle-label-content{color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .6 !important}.mat-toolbar.mat-warn .mat-button-toggle-group .mat-button-toggle .mat-button-toggle-label-content{color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .6 !important}.mat-mdc-checkbox{display:inline-flex!important}.mat-mdc-checkbox .mdc-form-field{padding-right:12px}.mdc-checkbox__native-control{opacity:0!important}.mat-mdc-chip{font-weight:500!important}.mat-mdc-dialog-container .mdc-dialog__surface{border-radius:16px!important;padding:24px}.mat-drawer-backdrop.mat-drawer-shown{background-color:#0009!important}.mat-mdc-form-field.mat-form-field-appearance-fill.mat-form-field-disabled{opacity:.7!important}.mat-mdc-form-field.mat-form-field-appearance-fill.mat-form-field-invalid .mat-mdc-text-field-wrapper{--tw-border-opacity: 1 !important;border-color:rgba(var(--angor-warn-rgb),var(--tw-border-opacity, 1))!important}.mat-mdc-form-field.mat-form-field-appearance-fill.mat-form-field-invalid .mat-mdc-text-field-wrapper:is(.dark *){--tw-border-opacity: 1 !important;border-color:rgba(var(--angor-warn-rgb),var(--tw-border-opacity, 1))!important}.mat-mdc-form-field.mat-form-field-appearance-fill.mat-form-field-invalid .mat-mdc-select .mat-mdc-select-placeholder{--tw-text-opacity: 1 !important;color:rgba(var(--angor-warn-rgb),var(--tw-text-opacity, 1))!important}.mat-mdc-form-field.mat-form-field-appearance-fill:hover .mat-mdc-form-field-focus-overlay,.mat-mdc-form-field.mat-form-field-appearance-fill.mat-focused .mat-mdc-form-field-focus-overlay{opacity:0!important}.mat-mdc-form-field.mat-form-field-appearance-fill.mat-focused:not(.mat-form-field-invalid) .mat-mdc-text-field-wrapper{--tw-border-opacity: 1 !important;border-color:rgba(var(--angor-primary-rgb),var(--tw-border-opacity, 1))!important}.mat-mdc-form-field.mat-form-field-appearance-fill.mat-focused:not(.mat-form-field-invalid) .mat-mdc-text-field-wrapper:is(.dark *){--tw-border-opacity: 1 !important;border-color:rgba(var(--angor-primary-rgb),var(--tw-border-opacity, 1))!important}.mat-mdc-form-field.mat-form-field-appearance-fill.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix select{top:auto;margin-top:0;margin-bottom:0;padding-top:0;padding-right:18px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%2364748B' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5H7z'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right -7px center;background-size:24px}.dark .mat-mdc-form-field.mat-form-field-appearance-fill.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%2397a6ba' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5H7z'/%3E%3C/svg%3E")}.mat-mdc-form-field.mat-form-field-appearance-fill.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix:after{display:none}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{padding:0;border-radius:6px;border-width:1px;border-style:solid;--tw-border-opacity: 1 !important;border-color:rgb(107 152 164 / var(--tw-border-opacity, 1))!important;--tw-bg-opacity: 1 !important;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))!important;--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05) !important;--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper:is(.dark *){--tw-border-opacity: 1 !important;border-color:rgb(8 59 70 / var(--tw-border-opacity, 1))!important;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1))!important;--tw-bg-opacity: .05 !important}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper:not(.mdc-text-field--no-label){margin-top:24px;overflow:visible}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-focus-overlay{border-radius:6px}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex{position:relative;display:flex;align-items:stretch;border-radius:6px;padding:0 16px}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix{padding:0!important}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix>.mat-icon{margin-right:12px;padding:0!important}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix>.mat-mdc-icon-button,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix>.mat-mdc-icon-button{margin:0 4px 0 -10px}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix>.mat-mdc-select,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix>.mat-mdc-select{margin-right:10px}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix>.mat-datepicker-toggle,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix>.mat-datepicker-toggle{margin-left:-8px}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix{padding:0!important}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix>.mat-icon,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix>.mat-icon{margin-left:12px;padding:0!important}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix>.mat-mdc-icon-button,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix>.mat-mdc-icon-button{margin:0 -10px 0 4px}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix>.mat-mdc-select,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix>.mat-mdc-select{margin-left:10px}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix>.mat-datepicker-toggle,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix>.mat-datepicker-toggle{margin-right:-8px}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix{display:inline-flex;align-items:center;justify-content:center;--tw-text-opacity: 1 !important;color:rgba(var(--angor-text-hint-rgb),var(--tw-text-opacity))!important}.mat-toolbar.mat-primary .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix,.mat-toolbar.mat-primary .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix,.mat-toolbar.mat-primary .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix,.mat-toolbar.mat-primary .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix{color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-accent .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix,.mat-toolbar.mat-accent .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix,.mat-toolbar.mat-accent .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix,.mat-toolbar.mat-accent .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix{color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-warn .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix,.mat-toolbar.mat-warn .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix,.mat-toolbar.mat-warn .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix,.mat-toolbar.mat-warn .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix{color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-mdc-icon-button,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-mdc-icon-button,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-mdc-icon-button,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-mdc-icon-button{width:40px;min-width:40px;height:40px;min-height:40px}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-icon,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-mdc-icon-button:not([disabled]),.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-mdc-select-value,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-icon,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-mdc-icon-button:not([disabled]),.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-mdc-select-value,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-icon,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-mdc-icon-button:not([disabled]),.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-mdc-select-value,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-icon,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-mdc-icon-button:not([disabled]),.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-mdc-select-value{--tw-text-opacity: 1;color:rgba(var(--angor-text-hint-rgb),var(--tw-text-opacity))}.mat-toolbar.mat-primary .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-icon,.mat-toolbar.mat-primary .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-mdc-icon-button:not([disabled]),.mat-toolbar.mat-primary .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-mdc-select-value,.mat-toolbar.mat-primary .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-icon,.mat-toolbar.mat-primary .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-mdc-icon-button:not([disabled]),.mat-toolbar.mat-primary .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-mdc-select-value,.mat-toolbar.mat-primary .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-icon,.mat-toolbar.mat-primary .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-mdc-icon-button:not([disabled]),.mat-toolbar.mat-primary .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-mdc-select-value,.mat-toolbar.mat-primary .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-icon,.mat-toolbar.mat-primary .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-mdc-icon-button:not([disabled]),.mat-toolbar.mat-primary .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-mdc-select-value{color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-accent .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-icon,.mat-toolbar.mat-accent .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-mdc-icon-button:not([disabled]),.mat-toolbar.mat-accent .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-mdc-select-value,.mat-toolbar.mat-accent .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-icon,.mat-toolbar.mat-accent .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-mdc-icon-button:not([disabled]),.mat-toolbar.mat-accent .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-mdc-select-value,.mat-toolbar.mat-accent .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-icon,.mat-toolbar.mat-accent .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-mdc-icon-button:not([disabled]),.mat-toolbar.mat-accent .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-mdc-select-value,.mat-toolbar.mat-accent .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-icon,.mat-toolbar.mat-accent .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-mdc-icon-button:not([disabled]),.mat-toolbar.mat-accent .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-mdc-select-value{color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-warn .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-icon,.mat-toolbar.mat-warn .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-mdc-icon-button:not([disabled]),.mat-toolbar.mat-warn .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-mdc-select-value,.mat-toolbar.mat-warn .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-icon,.mat-toolbar.mat-warn .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-mdc-icon-button:not([disabled]),.mat-toolbar.mat-warn .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-mdc-select-value,.mat-toolbar.mat-warn .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-icon,.mat-toolbar.mat-warn .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-mdc-icon-button:not([disabled]),.mat-toolbar.mat-warn .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-mdc-select-value,.mat-toolbar.mat-warn .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-icon,.mat-toolbar.mat-warn .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-mdc-icon-button:not([disabled]),.mat-toolbar.mat-warn .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-mdc-select-value{color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-datepicker-toggle-default-icon,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-datepicker-toggle-default-icon,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-datepicker-toggle-default-icon,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-datepicker-toggle-default-icon{width:1.5rem;height:1.5rem;min-width:1.5rem;min-height:1.5rem;font-size:1.5rem;line-height:1.5rem}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-datepicker-toggle-default-icon svg,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-datepicker-toggle-default-icon svg,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-datepicker-toggle-default-icon svg,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-datepicker-toggle-default-icon svg{width:1.5rem;height:1.5rem}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-mdc-select,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-mdc-select,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-mdc-select,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-mdc-select{display:flex;align-items:center}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-mdc-select:focus .mat-mdc-select-trigger .mat-mdc-select-value,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-mdc-select:focus .mat-mdc-select-trigger .mat-mdc-select-value,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-mdc-select:focus .mat-mdc-select-trigger .mat-mdc-select-value,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-mdc-select:focus .mat-mdc-select-trigger .mat-mdc-select-value{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-rgb),var(--tw-text-opacity, 1))!important}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-mdc-select:focus .mat-mdc-select-trigger .mat-mdc-select-arrow-wrapper .mat-mdc-select-arrow,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-mdc-select:focus .mat-mdc-select-trigger .mat-mdc-select-arrow-wrapper .mat-mdc-select-arrow,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-mdc-select:focus .mat-mdc-select-trigger .mat-mdc-select-arrow-wrapper .mat-mdc-select-arrow,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-mdc-select:focus .mat-mdc-select-trigger .mat-mdc-select-arrow-wrapper .mat-mdc-select-arrow{border-top-color:var(--angor-primary)!important}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-mdc-select .mat-mdc-select-trigger,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-mdc-select .mat-mdc-select-trigger,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-mdc-select .mat-mdc-select-trigger,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-mdc-select .mat-mdc-select-trigger{display:flex;align-items:center}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-value,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-value,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-value,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-value{display:flex;max-width:none}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-value mat-mdc-select-trigger .mat-icon,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-value mat-mdc-select-trigger .mat-icon,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-value mat-mdc-select-trigger .mat-icon,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-value mat-mdc-select-trigger .mat-icon{margin:0!important}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-arrow-wrapper,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-arrow-wrapper,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-arrow-wrapper,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-arrow-wrapper{display:flex;align-items:center;transform:none;margin-left:4px}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-arrow-wrapper .mat-mdc-select-arrow,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-arrow-wrapper .mat-mdc-select-arrow,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-arrow-wrapper .mat-mdc-select-arrow,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-arrow-wrapper .mat-mdc-select-arrow{min-height:0;--tw-text-opacity: 1 !important;color:rgb(8 59 70 / var(--tw-text-opacity, 1))!important}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-arrow-wrapper .mat-mdc-select-arrow:is(.dark *),.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-arrow-wrapper .mat-mdc-select-arrow:is(.dark *),.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-arrow-wrapper .mat-mdc-select-arrow:is(.dark *),.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-arrow-wrapper .mat-mdc-select-arrow:is(.dark *){--tw-text-opacity: 1 !important;color:rgb(59 117 134 / var(--tw-text-opacity, 1))!important}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-infix{position:static;display:flex;align-items:center;width:88px;min-height:48px;padding:0;border:0}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-infix .mat-mdc-floating-label{top:-25px!important;left:0!important;width:100%!important;transform:none!important;pointer-events:auto;font-weight:500;--tw-text-opacity: 1 !important;color:rgba(var(--angor-text-default-rgb),var(--tw-text-opacity))!important}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-infix textarea.mat-mdc-input-element{margin:12px 0;padding:0 6px 0 0}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-infix .mat-mdc-chip-set{width:100%;margin:0 -8px}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mdc-line-ripple{display:none}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-form-field-subscript-wrapper{font-size:12px;font-weight:500}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-form-field-subscript-wrapper .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-form-field-subscript-wrapper .mat-mdc-form-field-error-wrapper{padding:0}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-form-field-subscript-wrapper .mat-mdc-form-field-hint{--tw-text-opacity: 1 !important;color:rgba(var(--angor-text-hint-rgb),var(--tw-text-opacity))!important}.mat-toolbar.mat-primary .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-form-field-subscript-wrapper .mat-mdc-form-field-hint{color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-accent .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-form-field-subscript-wrapper .mat-mdc-form-field-hint{color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-warn .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-form-field-subscript-wrapper .mat-mdc-form-field-hint{color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-mdc-form-field.mat-form-field-appearance-fill:has(textarea.mat-mdc-input-element) .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix,.mat-mdc-form-field.mat-form-field-appearance-fill:has(textarea.mat-mdc-input-element) .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix,.mat-mdc-form-field.mat-form-field-appearance-fill:has(textarea.mat-mdc-input-element) .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix,.mat-mdc-form-field.mat-form-field-appearance-fill:has(textarea.mat-mdc-input-element) .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix{align-self:flex-start;padding-top:14px!important}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded .mat-mdc-text-field-wrapper{border-radius:24px}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix{border-radius:24px 0 0 24px}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix>.mat-icon{margin-right:12px}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix>.mat-mdc-icon-button,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix>.mat-mdc-icon-button{margin:0 2px 0 -10px!important}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix>.mat-mdc-select,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix>.mat-mdc-select{margin-right:8px}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix>.mat-datepicker-toggle,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix>.mat-datepicker-toggle{margin-right:4px}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix>*:not(.mat-icon):not(.mat-mdc-icon-button):not(.mat-mdc-select):not(.mat-datepicker-toggle),.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix>*:not(.mat-icon):not(.mat-mdc-icon-button):not(.mat-mdc-select):not(.mat-datepicker-toggle){margin-right:12px}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix{border-radius:0 24px 24px 0}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix>.mat-icon,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix>.mat-icon{margin-left:12px!important}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix>.mat-mdc-icon-button,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix>.mat-mdc-icon-button{margin:0 -10px 0 2px!important}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix>.mat-mdc-select,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix>.mat-mdc-select{margin-left:12px!important}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix>.mat-datepicker-toggle,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix>.mat-datepicker-toggle{margin-left:4px!important}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix>*:not(.mat-icon):not(.mat-mdc-icon-button):not(.mat-mdc-select):not(.mat-datepicker-toggle),.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix>*:not(.mat-icon):not(.mat-mdc-icon-button):not(.mat-mdc-select):not(.mat-datepicker-toggle){margin-left:12px!important}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-dense .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-mdc-icon-button,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-dense .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-mdc-icon-button,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-dense .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-mdc-icon-button,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-dense .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-mdc-icon-button{width:32px!important;min-width:32px;height:32px;min-height:32px}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-dense .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix>.mat-mdc-icon-button,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-dense .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix>.mat-mdc-icon-button{margin-left:-6px;margin-right:12px}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-dense .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix>.mat-mdc-icon-button,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-dense .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix>.mat-mdc-icon-button{margin-left:12px;margin-right:-6px}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-dense .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-infix{min-height:40px}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-dense .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-infix textarea.mat-mdc-input-element{margin:8px 0}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-dense:has(textarea.mat-mdc-input-element) .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-dense:has(textarea.mat-mdc-input-element) .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-dense:has(textarea.mat-mdc-input-element) .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-dense:has(textarea.mat-mdc-input-element) .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix{padding-top:10px!important}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-dense.angor-mat-rounded .mat-mdc-text-field-wrapper{border-radius:20px}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-dense.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-dense.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix{border-radius:20px 0 0 20px!important}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-dense.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-dense.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix{border-radius:0 20px 20px 0!important}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix{align-self:stretch!important;margin:0 16px 0 -16px!important;padding-left:16px!important;border-radius:6px 0 0 6px;border-right-width:1px;border-style:solid}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix>.mat-icon{margin-right:16px}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix>.mat-mdc-icon-button,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix>.mat-mdc-icon-button{margin:0 6px 0 -10px!important}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix>.mat-mdc-select,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix>.mat-mdc-select{margin-right:12px!important}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix>.mat-datepicker-toggle,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix>.mat-datepicker-toggle{margin-right:8px}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix>*:not(.mat-icon):not(.mat-mdc-icon-button):not(.mat-mdc-select):not(.mat-datepicker-toggle),.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix>*:not(.mat-icon):not(.mat-mdc-icon-button):not(.mat-mdc-select):not(.mat-datepicker-toggle){margin-right:16px}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix{align-self:stretch!important;margin:0 -16px 0 16px!important;padding-right:16px!important;border-radius:0 6px 6px 0;border-left-width:1px;border-style:solid}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix>.mat-icon,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix>.mat-icon{margin-left:16px}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix>.mat-mdc-icon-button,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix>.mat-mdc-icon-button{margin:0 -10px 0 6px!important}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix>.mat-mdc-select,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix>.mat-mdc-select{margin:0 -4px 0 16px!important}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix>.mat-datepicker-toggle,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix>.mat-datepicker-toggle{margin-left:8px}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix>*:not(.mat-icon):not(.mat-mdc-icon-button):not(.mat-mdc-select):not(.mat-datepicker-toggle),.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix>*:not(.mat-icon):not(.mat-mdc-icon-button):not(.mat-mdc-select):not(.mat-datepicker-toggle){margin-left:16px}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix{--tw-bg-opacity: 1 !important;background-color:rgba(var(--angor-bg-default-rgb),var(--tw-bg-opacity))!important;--tw-border-opacity: 1 !important;border-color:rgb(107 152 164 / var(--tw-border-opacity, 1))!important}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix:is(.dark *),.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix:is(.dark *),.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix:is(.dark *),.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix:is(.dark *){--tw-border-opacity: 1 !important;border-color:rgb(8 59 70 / var(--tw-border-opacity, 1))!important}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix:has(textarea.mat-mdc-input-element) .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix:has(textarea.mat-mdc-input-element) .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix:has(textarea.mat-mdc-input-element) .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix:has(textarea.mat-mdc-input-element) .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix{align-items:flex-start}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-bold .mat-mdc-text-field-wrapper{border-width:2px!important}.mat-mdc-form-field.mat-form-field-appearance-outline.mat-form-field-invalid .mdc-notched-outline__leading,.mat-mdc-form-field.mat-form-field-appearance-outline.mat-form-field-invalid .mdc-notched-outline__notch,.mat-mdc-form-field.mat-form-field-appearance-outline.mat-form-field-invalid .mdc-notched-outline__trailing{border-color:var(--angor-warn)!important}.mat-mdc-form-field.mat-form-field-appearance-outline.mat-focused:not(.mat-form-field-invalid).mat-primary .mdc-notched-outline__leading,.mat-mdc-form-field.mat-form-field-appearance-outline.mat-focused:not(.mat-form-field-invalid).mat-primary .mdc-notched-outline__notch,.mat-mdc-form-field.mat-form-field-appearance-outline.mat-focused:not(.mat-form-field-invalid).mat-primary .mdc-notched-outline__trailing{border-color:var(--angor-primary)!important}.mat-mdc-form-field.mat-form-field-appearance-outline.mat-focused:not(.mat-form-field-invalid).mat-accent .mdc-notched-outline__leading,.mat-mdc-form-field.mat-form-field-appearance-outline.mat-focused:not(.mat-form-field-invalid).mat-accent .mdc-notched-outline__notch,.mat-mdc-form-field.mat-form-field-appearance-outline.mat-focused:not(.mat-form-field-invalid).mat-accent .mdc-notched-outline__trailing{border-color:var(--angor-accent)!important}.mat-mdc-form-field.mat-form-field-appearance-outline:not(.mat-focused):not(.mat-form-field-invalid) .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mdc-notched-outline .mdc-notched-outline__leading,.mat-mdc-form-field.mat-form-field-appearance-outline:not(.mat-focused):not(.mat-form-field-invalid) .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mdc-notched-outline .mdc-notched-outline__notch,.mat-mdc-form-field.mat-form-field-appearance-outline:not(.mat-focused):not(.mat-form-field-invalid) .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mdc-notched-outline .mdc-notched-outline__trailing{--tw-border-opacity: 1 !important;border-color:rgb(203 213 225 / var(--tw-border-opacity, 1))!important}.mat-mdc-form-field.mat-form-field-appearance-outline:not(.mat-focused):not(.mat-form-field-invalid) .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mdc-notched-outline .mdc-notched-outline__leading:is(.dark *),.mat-mdc-form-field.mat-form-field-appearance-outline:not(.mat-focused):not(.mat-form-field-invalid) .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mdc-notched-outline .mdc-notched-outline__notch:is(.dark *),.mat-mdc-form-field.mat-form-field-appearance-outline:not(.mat-focused):not(.mat-form-field-invalid) .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mdc-notched-outline .mdc-notched-outline__trailing:is(.dark *){--tw-border-opacity: 1 !important;border-color:rgb(100 116 139 / var(--tw-border-opacity, 1))!important}.mat-mdc-form-field.mat-form-field-appearance-outline .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mdc-notched-outline .mdc-notched-outline__notch{border-right-style:none!important}.mat-icon{display:inline-flex!important;align-items:center;justify-content:center;width:24px;min-width:24px;height:24px;min-height:24px;font-size:24px;line-height:24px;-webkit-appearance:none!important}.mat-mdc-input-element::placeholder{transition:none!important;--tw-text-opacity: 1 !important;color:rgba(var(--angor-text-hint-rgb),var(--tw-text-opacity))!important}.mat-toolbar.mat-primary .mat-mdc-input-element::placeholder{color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-accent .mat-mdc-input-element::placeholder{color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-warn .mat-mdc-input-element::placeholder{color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-mdc-input-element::-moz-placeholder{-moz-transition:none!important;transition:none!important;--tw-text-opacity: 1 !important;color:rgba(var(--angor-text-hint-rgb),var(--tw-text-opacity))!important}.mat-toolbar.mat-primary .mat-mdc-input-element::-moz-placeholder{color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-accent .mat-mdc-input-element::-moz-placeholder{color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-warn .mat-mdc-input-element::-moz-placeholder{color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-mdc-input-element::-webkit-input-placeholder{-webkit-transition:none!important;transition:none!important;--tw-text-opacity: 1 !important;color:rgba(var(--angor-text-hint-rgb),var(--tw-text-opacity))!important}.mat-toolbar.mat-primary .mat-mdc-input-element::-webkit-input-placeholder{color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-accent .mat-mdc-input-element::-webkit-input-placeholder{color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-warn .mat-mdc-input-element::-webkit-input-placeholder{color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-mdc-input-element:-ms-input-placeholder{-ms-transition:none!important;transition:none!important;--tw-text-opacity: 1 !important;color:rgba(var(--angor-text-hint-rgb),var(--tw-text-opacity))!important}.mat-toolbar.mat-primary .mat-mdc-input-element:-ms-input-placeholder{color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-accent .mat-mdc-input-element:-ms-input-placeholder{color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-warn .mat-mdc-input-element:-ms-input-placeholder{color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-form-field-invalid .mat-mdc-input-element::placeholder{--tw-text-opacity: 1 !important;color:rgba(var(--angor-warn-rgb),var(--tw-text-opacity, 1))!important}.mat-form-field-invalid .mat-mdc-input-element::-moz-placeholder{--tw-text-opacity: 1 !important;color:rgba(var(--angor-warn-rgb),var(--tw-text-opacity, 1))!important}.mat-form-field-invalid .mat-mdc-input-element::-webkit-input-placeholder{--tw-text-opacity: 1 !important;color:rgba(var(--angor-warn-rgb),var(--tw-text-opacity, 1))!important}.mat-form-field-invalid .mat-mdc-input-element:-ms-input-placeholder{--tw-text-opacity: 1 !important;color:rgba(var(--angor-warn-rgb),var(--tw-text-opacity, 1))!important}.mat-mdc-menu-panel{min-width:144px!important}.mat-mdc-menu-panel .mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{display:flex;align-items:center;padding-right:16px}.mat-mdc-menu-panel .mat-mdc-menu-content .mat-mdc-menu-item .mat-icon-no-color{--tw-text-opacity: 1;color:rgba(var(--angor-mat-icon-rgb),var(--tw-text-opacity))}.mat-mdc-menu-panel .mat-mdc-menu-content mat-divider{margin:8px 0}.mat-mdc-paginator .mat-mdc-paginator-container{padding:8px 16px;justify-content:space-between}@media (min-width: 600px){.mat-mdc-paginator .mat-mdc-paginator-container{justify-content:normal}}.mat-mdc-paginator .mat-mdc-paginator-container .mat-mdc-paginator-page-size{align-items:center;min-height:40px;margin:8px}.mat-mdc-paginator .mat-mdc-paginator-container .mat-mdc-paginator-page-size .mat-mdc-paginator-page-size-label{display:none;margin-right:12px}@media (min-width: 600px){.mat-mdc-paginator .mat-mdc-paginator-container .mat-mdc-paginator-page-size .mat-mdc-paginator-page-size-label{display:block}}.mat-mdc-paginator .mat-mdc-paginator-container .mat-mdc-paginator-page-size .mat-mdc-paginator-page-size-select{margin:0}.mat-mdc-paginator .mat-mdc-paginator-container .mat-mdc-paginator-page-size .mat-mdc-paginator-page-size-select .mat-mdc-text-field-wrapper{padding:0 10px}.mat-mdc-paginator .mat-mdc-paginator-container .mat-mdc-paginator-page-size .mat-mdc-paginator-page-size-select .mat-mdc-text-field-wrapper .mat-form-field-flex{min-height:32px}.mat-mdc-paginator .mat-mdc-paginator-container .mat-mdc-paginator-range-actions{margin:8px 0}.mat-mdc-paginator .mat-mdc-paginator-container .mat-mdc-paginator-range-actions .mat-mdc-paginator-range-label{margin-right:16px}.mat-mdc-select{display:inline-flex!important}.mat-mdc-select .mat-mdc-select-placeholder{transition:none!important;--tw-text-opacity: 1 !important;color:rgba(var(--angor-text-hint-rgb),var(--tw-text-opacity))!important}.mat-toolbar.mat-primary .mat-mdc-select .mat-mdc-select-placeholder{color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-accent .mat-mdc-select .mat-mdc-select-placeholder{color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-warn .mat-mdc-select .mat-mdc-select-placeholder{color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-value{position:relative;display:flex;max-width:none}.mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-value .mat-mdc-select-value-text{display:inline-flex}.mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-value .mat-mdc-select-value-text>*{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.mat-mdc-select .mat-mdc-select-arrow-wrapper{transform:translateY(0)!important}.mat-mdc-select .mat-mdc-select-arrow-wrapper .mat-mdc-select-arrow{margin:0 0 0 8px;--tw-text-opacity: 1 !important;color:rgba(var(--angor-text-secondary-rgb),var(--tw-text-opacity))!important}.mat-toolbar.mat-primary .mat-mdc-select .mat-mdc-select-arrow-wrapper .mat-mdc-select-arrow{color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .6 !important}.mat-toolbar.mat-accent .mat-mdc-select .mat-mdc-select-arrow-wrapper .mat-mdc-select-arrow{color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .6 !important}.mat-toolbar.mat-warn .mat-mdc-select .mat-mdc-select-arrow-wrapper .mat-mdc-select-arrow{color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .6 !important}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){color:#fff!important}.dark .mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){color:#000!important}.mat-step-icon .mat-icon{color:currentColor!important}.mat-step-label,.mat-step-label-selected{font-weight:500!important}.mat-mdc-table .mdc-data-table__row:not(.mdc-data-table__row--selected):hover{background:none!important}.mat-mdc-tab-group.angor-mat-no-header .mat-mdc-tab-header{height:0!important;max-height:0!important;border:none!important;visibility:hidden!important;opacity:0!important}.mat-mdc-tab-group:not(.mat-background-primary):not(.mat-background-accent) .mat-mdc-tab-header .mat-mdc-tab-label-container{box-shadow:inset 0 -1px var(--angor-border)}.mat-mdc-tab-group .mat-mdc-tab-header .mat-mdc-tab-label-container{margin:0 24px}.mat-mdc-tab-group .mat-mdc-tab-body-content{padding:24px}textarea.mat-mdc-input-element{box-sizing:content-box!important}.mat-toolbar.mat-primary .mat-icon{--tw-text-opacity: 1 !important;color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important}.mat-toolbar.mat-primary .text-secondary{color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .6 !important}.mat-toolbar.mat-primary .text-hint,.mat-toolbar.mat-primary .text-disabled{color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-primary .divider{color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .12 !important}.mat-toolbar.mat-accent .mat-icon{--tw-text-opacity: 1 !important;color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important}.mat-toolbar.mat-accent .text-secondary{color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .6 !important}.mat-toolbar.mat-accent .text-hint,.mat-toolbar.mat-accent .text-disabled{color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-accent .divider{color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .12 !important}.mat-toolbar.mat-warn .mat-icon{--tw-text-opacity: 1 !important;color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important}.mat-toolbar.mat-warn .text-secondary{color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .6 !important}.mat-toolbar.mat-warn .text-hint,.mat-toolbar.mat-warn .text-disabled{color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-warn .divider{color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .12 !important}.mat-mdc-tooltip .mdc-tooltip__surface{background-color:var(--angor-text-default)!important;color:#fff}.dark .mat-mdc-tooltip .mdc-tooltip__surface{background-color:var(--angor-text-secondary)!important;color:var(--angor-bg-default)!important}code[class*=language-] .hljs-comment,code[class*=language-] .hljs-quote,pre[class*=language-] .hljs-comment,pre[class*=language-] .hljs-quote{color:#8b9fc1;font-style:italic}code[class*=language-] .hljs-doctag,code[class*=language-] .hljs-keyword,code[class*=language-] .hljs-formula,pre[class*=language-] .hljs-doctag,pre[class*=language-] .hljs-keyword,pre[class*=language-] .hljs-formula{color:#22d3ee}code[class*=language-] .hljs-name,pre[class*=language-] .hljs-name{color:#e879f9}code[class*=language-] .hljs-tag,pre[class*=language-] .hljs-tag{color:#bae6fd}code[class*=language-] .hljs-section,code[class*=language-] .hljs-selector-tag,code[class*=language-] .hljs-deletion,code[class*=language-] .hljs-subst,pre[class*=language-] .hljs-section,pre[class*=language-] .hljs-selector-tag,pre[class*=language-] .hljs-deletion,pre[class*=language-] .hljs-subst{color:#f87f71}code[class*=language-] .hljs-literal,pre[class*=language-] .hljs-literal{color:#36beff}code[class*=language-] .hljs-string,code[class*=language-] .hljs-regexp,code[class*=language-] .hljs-addition,code[class*=language-] .hljs-attribute,code[class*=language-] .hljs-meta-string,pre[class*=language-] .hljs-string,pre[class*=language-] .hljs-regexp,pre[class*=language-] .hljs-addition,pre[class*=language-] .hljs-attribute,pre[class*=language-] .hljs-meta-string{color:#bef264}code[class*=language-] .hljs-built_in,code[class*=language-] .hljs-class .hljs-title,pre[class*=language-] .hljs-built_in,pre[class*=language-] .hljs-class .hljs-title{color:#ffd374}code[class*=language-] .hljs-attr,code[class*=language-] .hljs-variable,code[class*=language-] .hljs-template-variable,code[class*=language-] .hljs-type,code[class*=language-] .hljs-selector-class,code[class*=language-] .hljs-selector-attr,code[class*=language-] .hljs-selector-pseudo,code[class*=language-] .hljs-number,pre[class*=language-] .hljs-attr,pre[class*=language-] .hljs-variable,pre[class*=language-] .hljs-template-variable,pre[class*=language-] .hljs-type,pre[class*=language-] .hljs-selector-class,pre[class*=language-] .hljs-selector-attr,pre[class*=language-] .hljs-selector-pseudo,pre[class*=language-] .hljs-number{color:#22d3ee}code[class*=language-] .hljs-symbol,code[class*=language-] .hljs-bullet,code[class*=language-] .hljs-link,code[class*=language-] .hljs-meta,code[class*=language-] .hljs-selector-id,code[class*=language-] .hljs-title,pre[class*=language-] .hljs-symbol,pre[class*=language-] .hljs-bullet,pre[class*=language-] .hljs-link,pre[class*=language-] .hljs-meta,pre[class*=language-] .hljs-selector-id,pre[class*=language-] .hljs-title{color:#e879f9}code[class*=language-] .hljs-emphasis,pre[class*=language-] .hljs-emphasis{font-style:italic}code[class*=language-] .hljs-strong,pre[class*=language-] .hljs-strong{font-weight:700}code[class*=language-] .hljs-link,pre[class*=language-] .hljs-link{text-decoration:underline}.ps{position:relative}.ps:hover>.ps__rail-x,.ps:hover>.ps__rail-y,.ps.ps--focus>.ps__rail-x,.ps.ps--focus>.ps__rail-y,.ps.ps--scrolling-x>.ps__rail-x,.ps.ps--scrolling-x>.ps__rail-y,.ps.ps--scrolling-y>.ps__rail-x,.ps.ps--scrolling-y>.ps__rail-y{opacity:1}.ps>.ps__rail-x,.ps>.ps__rail-y{z-index:99999}.ps>.ps__rail-x{height:14px;background:transparent!important;transition:none!important}.ps>.ps__rail-x:hover,.ps>.ps__rail-x:focus,.ps>.ps__rail-x.ps--clicking{opacity:1}.ps>.ps__rail-x:hover .ps__thumb-x,.ps>.ps__rail-x:focus .ps__thumb-x,.ps>.ps__rail-x.ps--clicking .ps__thumb-x{height:10px}.ps>.ps__rail-x .ps__thumb-x{background:#00000080;box-shadow:0 0 0 1px #ffffff26;height:6px;transition:height 225ms cubic-bezier(.25,.8,.25,1)}.ps>.ps__rail-y{width:14px;background:transparent!important;transition:none!important;left:auto!important}.ps>.ps__rail-y:hover,.ps>.ps__rail-y:focus,.ps>.ps__rail-y.ps--clicking{opacity:1}.ps>.ps__rail-y:hover .ps__thumb-y,.ps>.ps__rail-y:focus .ps__thumb-y,.ps>.ps__rail-y.ps--clicking .ps__thumb-y{width:10px}.ps>.ps__rail-y .ps__thumb-y{background:#00000080;box-shadow:0 0 0 1px #ffffff26;width:6px;transition:width 225ms cubic-bezier(.25,.8,.25,1)}.ql-toolbar{border-radius:6px 6px 0 0;padding:0!important;--tw-bg-opacity: 1;background-color:rgb(203 221 225 / var(--tw-bg-opacity, 1));border-color:rgb(107 152 164 / var(--tw-border-opacity, 1))!important;--tw-border-opacity: 1 !important}.dark .ql-toolbar{background-color:#0000000d;--tw-border-opacity: 1 !important;border-color:rgb(8 59 70 / var(--tw-border-opacity, 1))!important}.ql-toolbar .ql-formats{margin:11px 8px!important}.ql-toolbar .ql-picker.ql-expanded .ql-picker-label{--tw-border-opacity: 1;border-color:rgb(107 152 164 / var(--tw-border-opacity, 1))}.dark .ql-toolbar .ql-picker.ql-expanded .ql-picker-label{--tw-border-opacity: 1;border-color:rgb(8 59 70 / var(--tw-border-opacity, 1))}.ql-toolbar .ql-picker.ql-expanded .ql-picker-options{z-index:10!important;--tw-bg-opacity: 1;background-color:rgba(var(--angor-bg-card-rgb),var(--tw-bg-opacity));--tw-border-opacity: 1;border-color:rgb(107 152 164 / var(--tw-border-opacity, 1))}.dark .ql-toolbar .ql-picker.ql-expanded .ql-picker-options{--tw-border-opacity: 1;border-color:rgb(8 59 70 / var(--tw-border-opacity, 1))}.ql-toolbar .ql-picker .ql-picker-label,.ql-toolbar .ql-picker .ql-picker-options .ql-picker-item{--tw-text-opacity: 1;color:rgba(var(--angor-text-default-rgb),var(--tw-text-opacity))}.ql-toolbar .ql-stroke,.ql-toolbar .ql-stroke-mitter{stroke:var(--angor-icon)}.ql-toolbar .ql-fill{fill:var(--angor-icon)}.ql-toolbar button:hover,.ql-toolbar button:focus,.ql-toolbar button.ql-active,.ql-toolbar .ql-picker-label:hover,.ql-toolbar .ql-picker-label.ql-active,.ql-toolbar .ql-picker-item:hover,.ql-toolbar .ql-picker-item.ql-selected{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-rgb),var(--tw-text-opacity, 1))!important}.ql-toolbar button:hover .ql-stroke,.ql-toolbar button:hover .ql-stroke-mitter,.ql-toolbar button:focus .ql-stroke,.ql-toolbar button:focus .ql-stroke-mitter,.ql-toolbar button.ql-active .ql-stroke,.ql-toolbar button.ql-active .ql-stroke-mitter,.ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-toolbar .ql-picker-label:hover .ql-stroke-mitter,.ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-toolbar .ql-picker-label.ql-active .ql-stroke-mitter,.ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-toolbar .ql-picker-item:hover .ql-stroke-mitter,.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-mitter{stroke:var(--angor-primary)!important}.ql-toolbar button:hover .ql-fill,.ql-toolbar button:focus .ql-fill,.ql-toolbar button.ql-active .ql-fill,.ql-toolbar .ql-picker-label:hover .ql-fill,.ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-toolbar .ql-picker-item:hover .ql-fill,.ql-toolbar .ql-picker-item.ql-selected .ql-fill{fill:var(--angor-primary)!important}.ql-container{overflow:auto;min-height:160px;max-height:400px;border-radius:0 0 6px 6px;border-color:rgb(107 152 164 / var(--tw-border-opacity, 1))!important;--tw-border-opacity: 1 !important;--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05) !important;--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.dark .ql-container{--tw-border-opacity: 1 !important;border-color:rgb(8 59 70 / var(--tw-border-opacity, 1))!important}.ql-container .ql-editor{--tw-bg-opacity: 1;background-color:rgba(var(--angor-bg-card-rgb),var(--tw-bg-opacity))}.ql-container .ql-editor.ql-blank:before{--tw-text-opacity: 1;color:rgba(var(--angor-text-hint-rgb),var(--tw-text-opacity))}.mat-toolbar.mat-primary .ql-container .ql-editor.ql-blank:before{color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-accent .ql-container .ql-editor.ql-blank:before{color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-warn .ql-container .ql-editor.ql-blank:before{color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.ql-container .ql-tooltip{border-radius:.375rem;--tw-border-opacity: 1;border-color:rgb(107 152 164 / var(--tw-border-opacity, 1));--tw-bg-opacity: 1;background-color:rgb(203 221 225 / var(--tw-bg-opacity, 1));padding:.25rem .75rem;--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.dark .ql-container .ql-tooltip{--tw-border-opacity: 1 !important;border-color:rgb(5 43 51 / var(--tw-border-opacity, 1))!important;--tw-bg-opacity: 1 !important;background-color:rgb(5 43 51 / var(--tw-bg-opacity, 1))!important;--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1) !important;--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.ql-container .ql-tooltip:before{--tw-text-opacity: 1;color:rgba(var(--angor-text-secondary-rgb),var(--tw-text-opacity))}.mat-toolbar.mat-primary .ql-container .ql-tooltip:before{color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .6 !important}.mat-toolbar.mat-accent .ql-container .ql-tooltip:before{color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .6 !important}.mat-toolbar.mat-warn .ql-container .ql-tooltip:before{color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .6 !important}.ql-container .ql-tooltip .ql-action,.ql-container .ql-tooltip .ql-remove{--tw-border-opacity: 1;border-color:rgb(107 152 164 / var(--tw-border-opacity, 1));--tw-text-opacity: 1;color:rgba(var(--angor-primary-rgb),var(--tw-text-opacity, 1))}.dark .ql-container .ql-tooltip .ql-action,.dark .ql-container .ql-tooltip .ql-remove{--tw-border-opacity: 1;border-color:rgb(107 152 164 / var(--tw-border-opacity, 1));--tw-text-opacity: 1;color:rgba(var(--angor-primary-400-rgb),var(--tw-text-opacity, 1))}.ql-container .ql-tooltip .ql-action:after{border-right-width:1px!important;--tw-border-opacity: 1 !important;border-right-color:rgb(107 152 164 / var(--tw-border-opacity, 1))!important}.dark .ql-container .ql-tooltip .ql-action:after{--tw-border-opacity: 1 !important;border-right-color:rgb(8 59 70 / var(--tw-border-opacity, 1))!important}.ql-container .ql-tooltip input{--tw-text-opacity: 1 !important;color:rgba(var(--angor-text-default-rgb),var(--tw-text-opacity))!important;border-radius:.125rem!important;--tw-border-opacity: 1 !important;border-color:rgb(107 152 164 / var(--tw-border-opacity, 1))!important;--tw-bg-opacity: 1 !important;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))!important}.dark .ql-container .ql-tooltip input{--tw-border-opacity: 1 !important;border-color:rgb(8 59 70 / var(--tw-border-opacity, 1))!important;--tw-bg-opacity: 1 !important;background-color:rgb(5 43 51 / var(--tw-bg-opacity, 1))!important}.emoji-mart,.emoji-mart *{box-sizing:border-box;line-height:1.15}.emoji-mart{font-family:-apple-system,BlinkMacSystemFont,Helvetica Neue,sans-serif;font-size:16px;display:inline-block;color:#222427;border:1px solid #d9d9d9;border-radius:15px;background:#fff}.emoji-mart .emoji-mart-emoji{padding:6px}.emoji-mart-bar{border:0 solid #d9d9d9}.emoji-mart-bar:first-child{border-bottom-width:1px;border-top-left-radius:5px;border-top-right-radius:5px}.emoji-mart-bar:last-child{border-top-width:1px;border-bottom-left-radius:5px;border-bottom-right-radius:5px}.emoji-mart-anchors{display:flex;flex-direction:row;justify-content:space-between;padding:0 6px;line-height:0}.emoji-mart-anchor{position:relative;display:block;flex:1 1 auto;color:#858585;text-align:center;padding:12px 4px;overflow:hidden;transition:color .1s ease-out;margin:0;box-shadow:none;background:none;border:none}.emoji-mart-anchor:focus{outline:0}.emoji-mart-anchor:hover,.emoji-mart-anchor:focus,.emoji-mart-anchor-selected{color:#464646}.emoji-mart-anchor-selected .emoji-mart-anchor-bar{bottom:0}.emoji-mart-anchor-bar{position:absolute;bottom:-3px;left:0;width:100%;height:3px;background-color:#464646}.emoji-mart-anchors i{display:inline-block;width:100%;max-width:22px}.emoji-mart-anchors svg,.emoji-mart-anchors img{fill:currentColor;height:18px}.emoji-mart-scroll{overflow-y:scroll;height:270px;padding:0 6px 6px;will-change:transform}.emoji-mart-search{margin-top:6px;padding:0 6px;position:relative}.emoji-mart-search input{font-size:16px;display:block;width:100%;padding:5px 25px 6px 10px;border-radius:5px;border:1px solid #d9d9d9;outline:0}.emoji-mart-search input,.emoji-mart-search input::-webkit-search-decoration,.emoji-mart-search input::-webkit-search-cancel-button,.emoji-mart-search input::-webkit-search-results-button,.emoji-mart-search input::-webkit-search-results-decoration{-webkit-appearance:none}.emoji-mart-search-icon{position:absolute;top:6px;right:11px;z-index:2;padding:2px 5px 1px;border:none;background:none}.emoji-mart-category .emoji-mart-emoji span{z-index:1;position:relative;text-align:center;cursor:default}.emoji-mart-category .emoji-mart-emoji:hover:before{z-index:0;content:"";position:absolute;top:0;left:0;width:100%;height:100%;background-color:#f4f4f4;border-radius:100%}.emoji-mart-category-label{z-index:2;position:relative;position:sticky;top:0}.emoji-mart-category-label span{display:block;width:100%;font-weight:500;padding:5px 6px;background-color:#fff;background-color:#fffffff2}.emoji-mart-category-list{margin:0;padding:0}.emoji-mart-category-list li{list-style:none;margin:0;padding:0;display:inline-block}.emoji-mart-emoji{position:relative;display:inline-block;font-size:0;margin:0;padding:0;border:none;background:none;box-shadow:none}.emoji-mart-emoji-native{font-family:"Segoe UI Emoji",Segoe UI Symbol,Segoe UI,"Apple Color Emoji",Twemoji Mozilla,"Noto Color Emoji","Android Emoji"}.emoji-mart-no-results{font-size:14px;text-align:center;padding-top:70px;color:#858585}.emoji-mart-no-results .emoji-mart-category-label{display:none}.emoji-mart-no-results .emoji-mart-no-results-label{margin-top:.2em}.emoji-mart-no-results .emoji-mart-emoji:hover:before{content:none}.emoji-mart-preview{position:relative;height:70px}.emoji-mart-preview-emoji,.emoji-mart-preview-data,.emoji-mart-preview-skins{position:absolute;top:50%;transform:translateY(-50%)}.emoji-mart-preview-emoji{left:12px}.emoji-mart-preview-data{left:68px;right:12px;word-break:break-all}.emoji-mart-preview-skins{right:30px;text-align:right}.emoji-mart-preview-skins.custom{right:10px;text-align:right}.emoji-mart-preview-name{font-size:14px}.emoji-mart-preview-shortname{font-size:12px;color:#888}.emoji-mart-preview-shortname+.emoji-mart-preview-shortname,.emoji-mart-preview-shortname+.emoji-mart-preview-emoticon,.emoji-mart-preview-emoticon+.emoji-mart-preview-emoticon{margin-left:.5em}.emoji-mart-preview-emoticon{font-size:11px;color:#bbb}.emoji-mart-title span{display:inline-block;vertical-align:middle}.emoji-mart-title .emoji-mart-emoji{padding:0}.emoji-mart-title-label{color:#999a9c;font-size:26px;font-weight:300}.emoji-mart-skin-swatches{font-size:0;padding:2px 0;border:1px solid #d9d9d9;border-radius:15px;background-color:#fff}.emoji-mart-skin-swatches.custom{font-size:0;border:none;background-color:#fff}.emoji-mart-skin-swatches.opened .emoji-mart-skin-swatch{width:16px;padding:0 2px}.emoji-mart-skin-swatches.opened .emoji-mart-skin-swatch.selected:after{opacity:.75}.emoji-mart-skin-swatch{display:inline-block;width:0;vertical-align:middle;transition-property:width,padding;transition-duration:.125s;transition-timing-function:ease-out}.emoji-mart-skin-swatch:nth-child(1){transition-delay:0s}.emoji-mart-skin-swatch:nth-child(2){transition-delay:.03s}.emoji-mart-skin-swatch:nth-child(3){transition-delay:.06s}.emoji-mart-skin-swatch:nth-child(4){transition-delay:.09s}.emoji-mart-skin-swatch:nth-child(5){transition-delay:.12s}.emoji-mart-skin-swatch:nth-child(6){transition-delay:.15s}.emoji-mart-skin-swatch.selected{position:relative;width:16px;padding:0 2px}.emoji-mart-skin-swatch.selected:after{content:"";position:absolute;top:50%;left:50%;width:4px;height:4px;margin:-2px 0 0 -2px;background-color:#fff;border-radius:100%;pointer-events:none;opacity:0;transition:opacity .2s ease-out}.emoji-mart-skin-swatch.custom{display:inline-block;width:0;height:38px;overflow:hidden;vertical-align:middle;transition-property:width,height;transition-duration:.125s;transition-timing-function:ease-out;cursor:default}.emoji-mart-skin-swatch.custom.selected{position:relative;width:36px;height:38px;padding:0 2px 0 0}.emoji-mart-skin-swatch.custom.selected:after{content:"";width:0;height:0}.emoji-mart-skin-swatches.custom .emoji-mart-skin-swatch.custom:hover{background-color:#f4f4f4;border-radius:10%}.emoji-mart-skin-swatches.custom.opened .emoji-mart-skin-swatch.custom{width:36px;height:38px;padding:0 2px 0 0}.emoji-mart-skin-swatches.custom.opened .emoji-mart-skin-swatch.custom.selected:after{opacity:.75}.emoji-mart-skin-text.opened{display:inline-block;vertical-align:middle;text-align:left;color:#888;font-size:11px;padding:5px 2px;width:95px;height:40px;border-radius:10%;background-color:#fff}.emoji-mart-skin{display:inline-block;width:100%;padding-top:100%;max-width:12px;border-radius:100%}.emoji-mart-skin-tone-1{background-color:#ffc93a}.emoji-mart-skin-tone-2{background-color:#fadcbc}.emoji-mart-skin-tone-3{background-color:#e0bb95}.emoji-mart-skin-tone-4{background-color:#bf8f68}.emoji-mart-skin-tone-5{background-color:#9b643d}.emoji-mart-skin-tone-6{background-color:#594539}.emoji-mart-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.emoji-mart-dark{color:#e5eef0;border-color:#083b46;border-width:2px;border-radius:15px;background-color:#022229}.emoji-mart-dark .emoji-mart-bar{border-color:#083b46}.emoji-mart-dark .emoji-mart-search input{color:#e5eef0;border-color:#083b46;background-color:#07343e}.emoji-mart-dark .emoji-mart-search-icon svg{fill:#e5eef0}.emoji-mart-dark .emoji-mart-category .emoji-mart-emoji:hover:before{background-color:#052b33}.emoji-mart-dark .emoji-mart-category-label span{background-color:#032128;color:#e5eef0}.emoji-mart-dark .emoji-mart-skin-swatches{border-color:#083b46;background-color:#022229}.emoji-mart-dark .emoji-mart-anchor:hover,.emoji-mart-dark .emoji-mart-anchor:focus,.emoji-mart-dark .emoji-mart-anchor-selected{color:#9bbac3}body{overflow-x:hidden}.overscroll-y-contain{overflow:hidden!important}.emoji-picker-container{position:absolute;bottom:60px;left:0;z-index:100000}input,textarea,select,button{font-size:16px}.large-font{font-size:3rem}.qrcode{display:flex;justify-content:center}.qrcode-image{width:100%!important}.heart-beat{animation:heartBeatAnimation .3s ease-in-out}@keyframes heartBeatAnimation{0%{transform:scale(1)}30%{transform:scale(2)}60%{transform:scale(1)}to{transform:scale(1)}}.pointer-events-none{pointer-events:none!important}.visible{visibility:visible!important}.collapse{visibility:collapse!important}.static{position:static!important}.fixed{position:fixed!important}.\!absolute,.absolute{position:absolute!important}.relative{position:relative!important}.sticky{position:sticky!important}.inset-0{inset:0!important}.inset-auto{inset:auto!important}.-left-1{left:-.25rem!important}.-right-1{right:-.25rem!important}.-right-16{right:-4rem!important}.-top-16{top:-4rem!important}.bottom-0{bottom:0!important}.left-0{left:0!important}.right-0{right:0!important}.right-2{right:.5rem!important}.right-5{right:1.25rem!important}.top-0{top:0!important}.top-1\/2{top:50%!important}.top-2{top:.5rem!important}.z-10{z-index:10!important}.z-20{z-index:20!important}.z-49{z-index:49!important}.z-90{z-index:90!important}.z-99{z-index:99!important}.z-999{z-index:999!important}.col-span-2{grid-column:span 2 / span 2!important}.m-0{margin:0!important}.m-0\.5{margin:.125rem!important}.m-8{margin:2rem!important}.m-auto{margin:auto!important}.-mx-3{margin-left:-.75rem!important;margin-right:-.75rem!important}.-mx-6{margin-left:-1.5rem!important;margin-right:-1.5rem!important}.mx-1{margin-left:.25rem!important;margin-right:.25rem!important}.mx-1\.5{margin-left:.375rem!important;margin-right:.375rem!important}.mx-2{margin-left:.5rem!important;margin-right:.5rem!important}.mx-3{margin-left:.75rem!important;margin-right:.75rem!important}.mx-4{margin-left:1rem!important;margin-right:1rem!important}.mx-6{margin-left:1.5rem!important;margin-right:1.5rem!important}.mx-auto{margin-left:auto!important;margin-right:auto!important}.my-0{margin-top:0!important;margin-bottom:0!important}.my-0\.5{margin-top:.125rem!important;margin-bottom:.125rem!important}.my-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-10{margin-top:2.5rem!important;margin-bottom:2.5rem!important}.my-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-3{margin-top:.75rem!important;margin-bottom:.75rem!important}.my-6{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-8{margin-top:2rem!important;margin-bottom:2rem!important}.my-px{margin-top:1px!important;margin-bottom:1px!important}.-mb-px{margin-bottom:-1px!important}.-ml-0\.5{margin-left:-.125rem!important}.-ml-1{margin-left:-.25rem!important}.-ml-2{margin-left:-.5rem!important}.-ml-3{margin-left:-.75rem!important}.-ml-px{margin-left:-1px!important}.-mr-4{margin-right:-1rem!important}.-mr-px{margin-right:-1px!important}.-mt-12{margin-top:-3rem!important}.-mt-16{margin-top:-4rem!important}.-mt-26{margin-top:-6.5rem!important}.-mt-5{margin-top:-1.25rem!important}.-mt-px{margin-top:-1px!important}.mb-1{margin-bottom:.25rem!important}.mb-2{margin-bottom:.5rem!important}.mb-3{margin-bottom:.75rem!important}.mb-4{margin-bottom:1rem!important}.mb-6{margin-bottom:1.5rem!important}.mb-8{margin-bottom:2rem!important}.mb-px{margin-bottom:1px!important}.ml-0\.5{margin-left:.125rem!important}.ml-1{margin-left:.25rem!important}.ml-1\.5{margin-left:.375rem!important}.ml-2{margin-left:.5rem!important}.ml-2\.5{margin-left:.625rem!important}.ml-3{margin-left:.75rem!important}.ml-4{margin-left:1rem!important}.ml-6{margin-left:1.5rem!important}.ml-auto{margin-left:auto!important}.mr-1{margin-right:.25rem!important}.mr-1\.5{margin-right:.375rem!important}.mr-2{margin-right:.5rem!important}.mr-3{margin-right:.75rem!important}.mr-4{margin-right:1rem!important}.mr-6{margin-right:1.5rem!important}.mt-0\.5{margin-top:.125rem!important}.mt-1{margin-top:.25rem!important}.mt-1\.5{margin-top:.375rem!important}.mt-10{margin-top:2.5rem!important}.mt-12{margin-top:3rem!important}.mt-2{margin-top:.5rem!important}.mt-2\.5{margin-top:.625rem!important}.mt-3{margin-top:.75rem!important}.mt-4{margin-top:1rem!important}.mt-5{margin-top:1.25rem!important}.mt-6{margin-top:1.5rem!important}.mt-8{margin-top:2rem!important}.mt-px{margin-top:1px!important}.line-clamp-1{overflow:hidden!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:1!important}.line-clamp-2{overflow:hidden!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important}.block{display:block!important}.inline-block{display:inline-block!important}.inline{display:inline!important}.flex{display:flex!important}.inline-flex{display:inline-flex!important}.grid{display:grid!important}.hidden{display:none!important}.h-1{height:.25rem!important}.h-1\.5{height:.375rem!important}.h-10{height:2.5rem!important}.h-11{height:2.75rem!important}.h-14{height:3.5rem!important}.h-16{height:4rem!important}.h-18{height:4.5rem!important}.h-2{height:.5rem!important}.h-2\.5{height:.625rem!important}.h-20{height:5rem!important}.h-24{height:6rem!important}.h-3{height:.75rem!important}.h-32{height:8rem!important}.h-4{height:1rem!important}.h-40{height:10rem!important}.h-6{height:1.5rem!important}.h-7{height:1.75rem!important}.h-8{height:2rem!important}.h-full{height:100%!important}.max-h-120{max-height:30rem!important}.max-h-128{max-height:32rem!important}.max-h-140{max-height:35rem!important}.max-h-20{max-height:5rem!important}.min-h-20{min-height:5rem!important}.min-h-32{min-height:8rem!important}.w-1{width:.25rem!important}.w-1\.5{width:.375rem!important}.w-1\/2{width:50%!important}.w-10{width:2.5rem!important}.w-14{width:3.5rem!important}.w-16{width:4rem!important}.w-2{width:.5rem!important}.w-24{width:6rem!important}.w-3{width:.75rem!important}.w-30{width:7.5rem!important}.w-32{width:8rem!important}.w-4{width:1rem!important}.w-40{width:10rem!important}.w-5{width:1.25rem!important}.w-50{width:12.5rem!important}.w-6{width:1.5rem!important}.w-7{width:1.75rem!important}.w-8{width:2rem!important}.w-full{width:100%!important}.w-screen{width:100vw!important}.min-w-0{min-width:0px!important}.min-w-32{min-width:8rem!important}.min-w-4{min-width:1rem!important}.min-w-screen{min-width:100vw!important}.max-w-140{max-width:35rem!important}.max-w-2xl{max-width:42rem!important}.max-w-3\/4{max-width:75%!important}.max-w-3xl{max-width:48rem!important}.max-w-4xl{max-width:56rem!important}.max-w-5xl{max-width:64rem!important}.max-w-60{max-width:15rem!important}.max-w-80{max-width:20rem!important}.max-w-fit{max-width:fit-content!important}.max-w-full{max-width:100%!important}.max-w-md{max-width:28rem!important}.max-w-sm{max-width:24rem!important}.max-w-xs{max-width:20rem!important}.flex-0{flex:0 0 auto!important}.flex-1{flex:1 1 0%!important}.flex-auto{flex:1 1 auto!important}.flex-shrink-0{flex-shrink:0!important}.shrink{flex-shrink:1!important}.shrink-0{flex-shrink:0!important}.flex-grow{flex-grow:1!important}.-translate-x-80{--tw-translate-x: -20rem !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.-translate-x-full{--tw-translate-x: -100% !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.translate-x-0{--tw-translate-x: 0px !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.rotate-0{--tw-rotate: 0deg !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.rotate-180{--tw-rotate: 180deg !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.-scale-x-1{--tw-scale-x: -1 !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.cursor-pointer{cursor:pointer!important}.resize{resize:both!important}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))!important}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))!important}.flex-row{flex-direction:row!important}.flex-col{flex-direction:column!important}.flex-col-reverse{flex-direction:column-reverse!important}.items-start{align-items:flex-start!important}.items-end{align-items:flex-end!important}.items-center{align-items:center!important}.items-baseline{align-items:baseline!important}.justify-start{justify-content:flex-start!important}.justify-end{justify-content:flex-end!important}.justify-center{justify-content:center!important}.justify-between{justify-content:space-between!important}.justify-items-start{justify-items:start!important}.gap-3{gap:.75rem!important}.gap-4{gap:1rem!important}.gap-6{gap:1.5rem!important}.gap-y-8{row-gap:2rem!important}.space-x-0\.5>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0 !important;margin-right:calc(.125rem * var(--tw-space-x-reverse))!important;margin-left:calc(.125rem * calc(1 - var(--tw-space-x-reverse)))!important}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0 !important;margin-right:calc(.25rem * var(--tw-space-x-reverse))!important;margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))!important}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0 !important;margin-right:calc(.5rem * var(--tw-space-x-reverse))!important;margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))!important}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0 !important;margin-right:calc(.75rem * var(--tw-space-x-reverse))!important;margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))!important}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0 !important;margin-right:calc(1rem * var(--tw-space-x-reverse))!important;margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))!important}.space-x-6>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0 !important;margin-right:calc(1.5rem * var(--tw-space-x-reverse))!important;margin-left:calc(1.5rem * calc(1 - var(--tw-space-x-reverse)))!important}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0 !important;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)))!important;margin-bottom:calc(.25rem * var(--tw-space-y-reverse))!important}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0 !important;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)))!important;margin-bottom:calc(.5rem * var(--tw-space-y-reverse))!important}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0 !important;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)))!important;margin-bottom:calc(1rem * var(--tw-space-y-reverse))!important}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0 !important;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)))!important;margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))!important}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0 !important;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)))!important;border-bottom-width:calc(1px * var(--tw-divide-y-reverse))!important}.self-start{align-self:flex-start!important}.overflow-auto{overflow:auto!important}.overflow-hidden{overflow:hidden!important}.overflow-y-auto{overflow-y:auto!important}.overflow-y-hidden{overflow-y:hidden!important}.overscroll-y-contain{overscroll-behavior-y:contain!important}.truncate{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}.whitespace-nowrap{white-space:nowrap!important}.whitespace-pre-wrap{white-space:pre-wrap!important}.break-words{overflow-wrap:break-word!important}.rounded{border-radius:.25rem!important}.rounded-2xl{border-radius:1rem!important}.rounded-full{border-radius:9999px!important}.rounded-lg{border-radius:.5rem!important}.rounded-md{border-radius:.375rem!important}.rounded-sm{border-radius:.125rem!important}.rounded-b{border-bottom-right-radius:.25rem!important;border-bottom-left-radius:.25rem!important}.rounded-l-lg{border-top-left-radius:.5rem!important;border-bottom-left-radius:.5rem!important}.border{border-width:1px!important}.border-2{border-width:2px!important}.border-b{border-bottom-width:1px!important}.border-l{border-left-width:1px!important}.border-r{border-right-width:1px!important}.border-t{border-top-width:1px!important}.border-gray-300{--tw-border-opacity: 1 !important;border-color:rgb(107 152 164 / var(--tw-border-opacity, 1))!important}.border-gray-300\/70{border-color:#6b98a4b3!important}.border-gray-500{--tw-border-opacity: 1 !important;border-color:rgb(8 59 70 / var(--tw-border-opacity, 1))!important}.border-gray-700{--tw-border-opacity: 1 !important;border-color:rgb(5 43 51 / var(--tw-border-opacity, 1))!important}.border-primary{--tw-border-opacity: 1 !important;border-color:rgba(var(--angor-primary-rgb),var(--tw-border-opacity, 1))!important}.border-slate-300{--tw-border-opacity: 1 !important;border-color:rgb(203 213 225 / var(--tw-border-opacity, 1))!important}.border-warn{--tw-border-opacity: 1 !important;border-color:rgba(var(--angor-warn-rgb),var(--tw-border-opacity, 1))!important}.border-r-gray-300{--tw-border-opacity: 1 !important;border-right-color:rgb(107 152 164 / var(--tw-border-opacity, 1))!important}.border-r-gray-500{--tw-border-opacity: 1 !important;border-right-color:rgb(8 59 70 / var(--tw-border-opacity, 1))!important}.border-opacity-100{--tw-border-opacity: 1 !important}.bg-\[\#086c81\]{--tw-bg-opacity: 1 !important;background-color:rgb(8 108 129 / var(--tw-bg-opacity, 1))!important}.bg-accent-100{--tw-bg-opacity: 1 !important;background-color:rgba(var(--angor-accent-100-rgb),var(--tw-bg-opacity, 1))!important}.bg-accent-200{--tw-bg-opacity: 1 !important;background-color:rgba(var(--angor-accent-200-rgb),var(--tw-bg-opacity, 1))!important}.bg-amber-100{--tw-bg-opacity: 1 !important;background-color:rgb(254 243 199 / var(--tw-bg-opacity, 1))!important}.bg-amber-200{--tw-bg-opacity: 1 !important;background-color:rgb(253 230 138 / var(--tw-bg-opacity, 1))!important}.bg-amber-50{--tw-bg-opacity: 1 !important;background-color:rgb(255 251 235 / var(--tw-bg-opacity, 1))!important}.bg-black{--tw-bg-opacity: 1 !important;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1))!important}.bg-black\/10{background-color:#0000001a!important}.bg-blue-100{--tw-bg-opacity: 1 !important;background-color:rgb(219 234 254 / var(--tw-bg-opacity, 1))!important}.bg-blue-200{--tw-bg-opacity: 1 !important;background-color:rgb(191 219 254 / var(--tw-bg-opacity, 1))!important}.bg-blue-50{--tw-bg-opacity: 1 !important;background-color:rgb(239 246 255 / var(--tw-bg-opacity, 1))!important}.bg-blue-500{--tw-bg-opacity: 1 !important;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))!important}.bg-gray-100{--tw-bg-opacity: 1 !important;background-color:rgb(203 221 225 / var(--tw-bg-opacity, 1))!important}.bg-gray-200{--tw-bg-opacity: 1 !important;background-color:rgb(155 186 195 / var(--tw-bg-opacity, 1))!important}.bg-gray-300{--tw-bg-opacity: 1 !important;background-color:rgb(107 152 164 / var(--tw-bg-opacity, 1))!important}.bg-gray-400{--tw-bg-opacity: 1 !important;background-color:rgb(59 117 134 / var(--tw-bg-opacity, 1))!important}.bg-gray-50{--tw-bg-opacity: 1 !important;background-color:rgb(229 238 240 / var(--tw-bg-opacity, 1))!important}.bg-gray-500{--tw-bg-opacity: 1 !important;background-color:rgb(8 59 70 / var(--tw-bg-opacity, 1))!important}.bg-gray-700{--tw-bg-opacity: 1 !important;background-color:rgb(5 43 51 / var(--tw-bg-opacity, 1))!important}.bg-gray-800{--tw-bg-opacity: 1 !important;background-color:rgb(3 33 40 / var(--tw-bg-opacity, 1))!important}.bg-gray-900{--tw-bg-opacity: 1 !important;background-color:rgb(2 34 41 / var(--tw-bg-opacity, 1))!important}.bg-green-100{--tw-bg-opacity: 1 !important;background-color:rgb(220 252 231 / var(--tw-bg-opacity, 1))!important}.bg-green-200{--tw-bg-opacity: 1 !important;background-color:rgb(187 247 208 / var(--tw-bg-opacity, 1))!important}.bg-green-50{--tw-bg-opacity: 1 !important;background-color:rgb(240 253 244 / var(--tw-bg-opacity, 1))!important}.bg-primary{--tw-bg-opacity: 1 !important;background-color:rgba(var(--angor-primary-rgb),var(--tw-bg-opacity, 1))!important}.bg-primary-100{--tw-bg-opacity: 1 !important;background-color:rgba(var(--angor-primary-100-rgb),var(--tw-bg-opacity, 1))!important}.bg-primary-200{--tw-bg-opacity: 1 !important;background-color:rgba(var(--angor-primary-200-rgb),var(--tw-bg-opacity, 1))!important}.bg-primary-50{--tw-bg-opacity: 1 !important;background-color:rgba(var(--angor-primary-50-rgb),var(--tw-bg-opacity, 1))!important}.bg-red-100{--tw-bg-opacity: 1 !important;background-color:rgb(254 226 226 / var(--tw-bg-opacity, 1))!important}.bg-red-200{--tw-bg-opacity: 1 !important;background-color:rgb(254 202 202 / var(--tw-bg-opacity, 1))!important}.bg-red-50{--tw-bg-opacity: 1 !important;background-color:rgb(254 242 242 / var(--tw-bg-opacity, 1))!important}.bg-teal-600{--tw-bg-opacity: 1 !important;background-color:rgb(13 148 136 / var(--tw-bg-opacity, 1))!important}.bg-warn-100{--tw-bg-opacity: 1 !important;background-color:rgba(var(--angor-warn-100-rgb),var(--tw-bg-opacity, 1))!important}.bg-warn-200{--tw-bg-opacity: 1 !important;background-color:rgba(var(--angor-warn-200-rgb),var(--tw-bg-opacity, 1))!important}.bg-warn-50{--tw-bg-opacity: 1 !important;background-color:rgba(var(--angor-warn-50-rgb),var(--tw-bg-opacity, 1))!important}.bg-white{--tw-bg-opacity: 1 !important;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))!important}.bg-opacity-5{--tw-bg-opacity: .05 !important}.bg-opacity-60{--tw-bg-opacity: .6 !important}.bg-opacity-90{--tw-bg-opacity: .9 !important}.object-cover{object-fit:cover!important}.object-center{object-position:center!important}.p-0{padding:0!important}.p-1{padding:.25rem!important}.p-16{padding:4rem!important}.p-2{padding:.5rem!important}.p-4{padding:1rem!important}.p-6{padding:1.5rem!important}.p-8{padding:2rem!important}.px-1{padding-left:.25rem!important;padding-right:.25rem!important}.px-1\.5{padding-left:.375rem!important;padding-right:.375rem!important}.px-16{padding-left:4rem!important;padding-right:4rem!important}.px-2{padding-left:.5rem!important;padding-right:.5rem!important}.px-3{padding-left:.75rem!important;padding-right:.75rem!important}.px-4{padding-left:1rem!important;padding-right:1rem!important}.px-6{padding-left:1.5rem!important;padding-right:1.5rem!important}.px-8{padding-left:2rem!important;padding-right:2rem!important}.py-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-12{padding-top:3rem!important;padding-bottom:3rem!important}.py-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-3{padding-top:.75rem!important;padding-bottom:.75rem!important}.py-4{padding-top:1rem!important;padding-bottom:1rem!important}.py-5{padding-top:1.25rem!important;padding-bottom:1.25rem!important}.py-6{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-8{padding-top:2rem!important;padding-bottom:2rem!important}.pb-12{padding-bottom:3rem!important}.pb-28{padding-bottom:7rem!important}.pb-6{padding-bottom:1.5rem!important}.pl-2{padding-left:.5rem!important}.pl-5{padding-left:1.25rem!important}.pl-6{padding-left:1.5rem!important}.pr-4{padding-right:1rem!important}.pr-6{padding-right:1.5rem!important}.pt-4{padding-top:1rem!important}.pt-6{padding-top:1.5rem!important}.pt-8{padding-top:2rem!important}.pt-9{padding-top:2.25rem!important}.text-center{text-align:center!important}.text-2xl{font-size:1.25rem!important}.text-3xl{font-size:1.5rem!important}.text-4xl{font-size:2rem!important}.text-7xl{font-size:3rem!important}.text-8xl{font-size:4rem!important}.text-base{font-size:.875rem!important}.text-lg{font-size:1rem!important}.text-md{font-size:.8125rem!important}.text-sm{font-size:.75rem!important}.text-xl{font-size:1.125rem!important}.text-xs{font-size:.625rem!important}.font-bold{font-weight:700!important}.font-extrabold{font-weight:800!important}.font-medium{font-weight:500!important}.font-semibold{font-weight:600!important}.uppercase{text-transform:uppercase!important}.italic{font-style:italic!important}.leading-10{line-height:2.5rem!important}.leading-5{line-height:1.25rem!important}.leading-6{line-height:1.5rem!important}.leading-none{line-height:1!important}.leading-tight{line-height:1.25!important}.tracking-tight{letter-spacing:-.025em!important}.text-accent{--tw-text-opacity: 1 !important;color:rgba(var(--angor-accent-rgb),var(--tw-text-opacity, 1))!important}.text-accent-50{--tw-text-opacity: 1 !important;color:rgba(var(--angor-accent-50-rgb),var(--tw-text-opacity, 1))!important}.text-accent-600{--tw-text-opacity: 1 !important;color:rgba(var(--angor-accent-600-rgb),var(--tw-text-opacity, 1))!important}.text-amber-50{--tw-text-opacity: 1 !important;color:rgb(255 251 235 / var(--tw-text-opacity, 1))!important}.text-amber-500{--tw-text-opacity: 1 !important;color:rgb(245 158 11 / var(--tw-text-opacity, 1))!important}.text-blue-50{--tw-text-opacity: 1 !important;color:rgb(239 246 255 / var(--tw-text-opacity, 1))!important}.text-blue-500{--tw-text-opacity: 1 !important;color:rgb(59 130 246 / var(--tw-text-opacity, 1))!important}.text-blue-600{--tw-text-opacity: 1 !important;color:rgb(37 99 235 / var(--tw-text-opacity, 1))!important}.text-current{color:currentColor!important}.text-gray-100{--tw-text-opacity: 1 !important;color:rgb(203 221 225 / var(--tw-text-opacity, 1))!important}.text-gray-400{--tw-text-opacity: 1 !important;color:rgb(59 117 134 / var(--tw-text-opacity, 1))!important}.text-gray-50{--tw-text-opacity: 1 !important;color:rgb(229 238 240 / var(--tw-text-opacity, 1))!important}.text-gray-500{--tw-text-opacity: 1 !important;color:rgb(8 59 70 / var(--tw-text-opacity, 1))!important}.text-gray-600{--tw-text-opacity: 1 !important;color:rgb(7 52 62 / var(--tw-text-opacity, 1))!important}.text-gray-700{--tw-text-opacity: 1 !important;color:rgb(5 43 51 / var(--tw-text-opacity, 1))!important}.text-gray-800{--tw-text-opacity: 1 !important;color:rgb(3 33 40 / var(--tw-text-opacity, 1))!important}.text-gray-900{--tw-text-opacity: 1 !important;color:rgb(2 34 41 / var(--tw-text-opacity, 1))!important}.text-green-50{--tw-text-opacity: 1 !important;color:rgb(240 253 244 / var(--tw-text-opacity, 1))!important}.text-green-500{--tw-text-opacity: 1 !important;color:rgb(34 197 94 / var(--tw-text-opacity, 1))!important}.text-green-700{--tw-text-opacity: 1 !important;color:rgb(21 128 61 / var(--tw-text-opacity, 1))!important}.text-indigo-50{--tw-text-opacity: 1 !important;color:rgb(238 242 255 / var(--tw-text-opacity, 1))!important}.text-on-accent{--tw-text-opacity: 1 !important;color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important}.text-on-primary{--tw-text-opacity: 1 !important;color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important}.text-on-warn{--tw-text-opacity: 1 !important;color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important}.text-orange-500{--tw-text-opacity: 1 !important;color:rgb(249 115 22 / var(--tw-text-opacity, 1))!important}.text-primary{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-rgb),var(--tw-text-opacity, 1))!important}.text-primary-400{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-400-rgb),var(--tw-text-opacity, 1))!important}.text-primary-50{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-50-rgb),var(--tw-text-opacity, 1))!important}.text-primary-500{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-500-rgb),var(--tw-text-opacity, 1))!important}.text-primary-600{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-600-rgb),var(--tw-text-opacity, 1))!important}.text-primary-700{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-700-rgb),var(--tw-text-opacity, 1))!important}.text-red-50{--tw-text-opacity: 1 !important;color:rgb(254 242 242 / var(--tw-text-opacity, 1))!important}.text-red-500{--tw-text-opacity: 1 !important;color:rgb(239 68 68 / var(--tw-text-opacity, 1))!important}.text-red-600{--tw-text-opacity: 1 !important;color:rgb(220 38 38 / var(--tw-text-opacity, 1))!important}.text-red-700{--tw-text-opacity: 1 !important;color:rgb(185 28 28 / var(--tw-text-opacity, 1))!important}.text-warn{--tw-text-opacity: 1 !important;color:rgba(var(--angor-warn-rgb),var(--tw-text-opacity, 1))!important}.text-warn-50{--tw-text-opacity: 1 !important;color:rgba(var(--angor-warn-50-rgb),var(--tw-text-opacity, 1))!important}.text-warn-600{--tw-text-opacity: 1 !important;color:rgba(var(--angor-warn-600-rgb),var(--tw-text-opacity, 1))!important}.text-white{--tw-text-opacity: 1 !important;color:rgb(255 255 255 / var(--tw-text-opacity, 1))!important}.text-opacity-12{--tw-text-opacity: .12 !important}.text-opacity-38{--tw-text-opacity: .38 !important}.text-opacity-60{--tw-text-opacity: .6 !important}.underline{text-decoration-line:underline!important}.overline{text-decoration-line:overline!important}.opacity-100{opacity:1!important}.opacity-25{opacity:.25!important}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1) !important;--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1) !important;--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1) !important;--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05) !important;--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.outline{outline-style:solid!important}.ring{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color) !important;--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color) !important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)!important}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color) !important;--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color) !important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)!important}.ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color) !important;--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color) !important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)!important}.ring-4{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color) !important;--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color) !important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)!important}.ring-inset{--tw-ring-inset: inset !important}.ring-primary{--tw-ring-opacity: 1 !important;--tw-ring-color: rgba(var(--angor-primary-rgb), var(--tw-ring-opacity, 1)) !important}.ring-primary-50{--tw-ring-opacity: 1 !important;--tw-ring-color: rgba(var(--angor-primary-50-rgb), var(--tw-ring-opacity, 1)) !important}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter!important;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter!important;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-duration:.15s!important}.transition-all{transition-property:all!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-duration:.15s!important}.transition-shadow{transition-property:box-shadow!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-duration:.15s!important}.transition-transform{transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-duration:.15s!important}.duration-150{transition-duration:.15s!important}.duration-300{transition-duration:.3s!important}.duration-400{transition-duration:.4s!important}.ease-drawer{transition-timing-function:cubic-bezier(.25,.8,.25,1)!important}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)!important}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)!important}.icon-size-24{width:6rem!important;height:6rem!important;min-width:6rem!important;min-height:6rem!important;font-size:6rem!important;line-height:6rem!important}.icon-size-24 svg{width:6rem!important;height:6rem!important}.icon-size-4{width:1rem!important;height:1rem!important;min-width:1rem!important;min-height:1rem!important;font-size:1rem!important;line-height:1rem!important}.icon-size-4 svg{width:1rem!important;height:1rem!important}.icon-size-5{width:1.25rem!important;height:1.25rem!important;min-width:1.25rem!important;min-height:1.25rem!important;font-size:1.25rem!important;line-height:1.25rem!important}.icon-size-5 svg{width:1.25rem!important;height:1.25rem!important}.icon-size-6{width:1.5rem!important;height:1.5rem!important;min-width:1.5rem!important;min-height:1.5rem!important;font-size:1.5rem!important;line-height:1.5rem!important}.icon-size-6 svg{width:1.5rem!important;height:1.5rem!important}.icon-size-7{width:1.75rem!important;height:1.75rem!important;min-width:1.75rem!important;min-height:1.75rem!important;font-size:1.75rem!important;line-height:1.75rem!important}.icon-size-7 svg{width:1.75rem!important;height:1.75rem!important}.hover\:bg-gray-100:hover{--tw-bg-opacity: 1 !important;background-color:rgb(203 221 225 / var(--tw-bg-opacity, 1))!important}.hover\:bg-gray-200:hover{--tw-bg-opacity: 1 !important;background-color:rgb(155 186 195 / var(--tw-bg-opacity, 1))!important}.hover\:bg-gray-50:hover{--tw-bg-opacity: 1 !important;background-color:rgb(229 238 240 / var(--tw-bg-opacity, 1))!important}.hover\:bg-gray-700:hover{--tw-bg-opacity: 1 !important;background-color:rgb(5 43 51 / var(--tw-bg-opacity, 1))!important}.hover\:underline:hover{text-decoration-line:underline!important}.hover\:opacity-80:hover{opacity:.8!important}.hover\:shadow-lg:hover{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1) !important;--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.focus\:outline-none:focus{outline:2px solid transparent!important;outline-offset:2px!important}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color) !important;--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color) !important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)!important}.focus\:ring-gray-500:focus{--tw-ring-opacity: 1 !important;--tw-ring-color: rgb(8 59 70 / var(--tw-ring-opacity, 1)) !important}.disabled\:bg-gray-400:disabled{--tw-bg-opacity: 1 !important;background-color:rgb(59 117 134 / var(--tw-bg-opacity, 1))!important}.group:hover .group-hover\:text-blue-500{--tw-text-opacity: 1 !important;color:rgb(59 130 246 / var(--tw-text-opacity, 1))!important}.group:hover .group-hover\:shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1) !important;--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.dark\:flex:is(.dark *){display:flex!important}.dark\:hidden:is(.dark *){display:none!important}.dark\:border-b:is(.dark *){border-bottom-width:1px!important}.dark\:border-l:is(.dark *){border-left-width:1px!important}.dark\:border-t:is(.dark *){border-top-width:1px!important}.dark\:border-gray-500:is(.dark *){--tw-border-opacity: 1 !important;border-color:rgb(8 59 70 / var(--tw-border-opacity, 1))!important}.dark\:border-gray-600:is(.dark *){--tw-border-opacity: 1 !important;border-color:rgb(7 52 62 / var(--tw-border-opacity, 1))!important}.dark\:border-primary:is(.dark *){--tw-border-opacity: 1 !important;border-color:rgba(var(--angor-primary-rgb),var(--tw-border-opacity, 1))!important}.dark\:border-slate-500:is(.dark *){--tw-border-opacity: 1 !important;border-color:rgb(100 116 139 / var(--tw-border-opacity, 1))!important}.dark\:border-warn:is(.dark *){--tw-border-opacity: 1 !important;border-color:rgba(var(--angor-warn-rgb),var(--tw-border-opacity, 1))!important}.dark\:bg-accent-600:is(.dark *){--tw-bg-opacity: 1 !important;background-color:rgba(var(--angor-accent-600-rgb),var(--tw-bg-opacity, 1))!important}.dark\:bg-amber-500:is(.dark *){--tw-bg-opacity: 1 !important;background-color:rgb(245 158 11 / var(--tw-bg-opacity, 1))!important}.dark\:bg-black:is(.dark *){--tw-bg-opacity: 1 !important;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1))!important}.dark\:bg-blue-600:is(.dark *){--tw-bg-opacity: 1 !important;background-color:rgb(37 99 235 / var(--tw-bg-opacity, 1))!important}.dark\:bg-gray-600:is(.dark *){--tw-bg-opacity: 1 !important;background-color:rgb(7 52 62 / var(--tw-bg-opacity, 1))!important}.dark\:bg-gray-700:is(.dark *){--tw-bg-opacity: 1 !important;background-color:rgb(5 43 51 / var(--tw-bg-opacity, 1))!important}.dark\:bg-gray-800:is(.dark *){--tw-bg-opacity: 1 !important;background-color:rgb(3 33 40 / var(--tw-bg-opacity, 1))!important}.dark\:bg-gray-900:is(.dark *){--tw-bg-opacity: 1 !important;background-color:rgb(2 34 41 / var(--tw-bg-opacity, 1))!important}.dark\:bg-green-500:is(.dark *){--tw-bg-opacity: 1 !important;background-color:rgb(34 197 94 / var(--tw-bg-opacity, 1))!important}.dark\:bg-primary-500:is(.dark *){--tw-bg-opacity: 1 !important;background-color:rgba(var(--angor-primary-500-rgb),var(--tw-bg-opacity, 1))!important}.dark\:bg-primary-600:is(.dark *){--tw-bg-opacity: 1 !important;background-color:rgba(var(--angor-primary-600-rgb),var(--tw-bg-opacity, 1))!important}.dark\:bg-primary-800:is(.dark *){--tw-bg-opacity: 1 !important;background-color:rgba(var(--angor-primary-800-rgb),var(--tw-bg-opacity, 1))!important}.dark\:bg-red-600:is(.dark *){--tw-bg-opacity: 1 !important;background-color:rgb(220 38 38 / var(--tw-bg-opacity, 1))!important}.dark\:bg-transparent:is(.dark *){background-color:transparent!important}.dark\:bg-warn-600:is(.dark *){--tw-bg-opacity: 1 !important;background-color:rgba(var(--angor-warn-600-rgb),var(--tw-bg-opacity, 1))!important}.dark\:bg-white:is(.dark *){--tw-bg-opacity: 1 !important;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))!important}.dark\:bg-opacity-10:is(.dark *){--tw-bg-opacity: .1 !important}.dark\:bg-opacity-5:is(.dark *){--tw-bg-opacity: .05 !important}.dark\:text-accent-50:is(.dark *){--tw-text-opacity: 1 !important;color:rgba(var(--angor-accent-50-rgb),var(--tw-text-opacity, 1))!important}.dark\:text-amber-50:is(.dark *){--tw-text-opacity: 1 !important;color:rgb(255 251 235 / var(--tw-text-opacity, 1))!important}.dark\:text-blue-50:is(.dark *){--tw-text-opacity: 1 !important;color:rgb(239 246 255 / var(--tw-text-opacity, 1))!important}.dark\:text-gray-200:is(.dark *){--tw-text-opacity: 1 !important;color:rgb(155 186 195 / var(--tw-text-opacity, 1))!important}.dark\:text-gray-300:is(.dark *){--tw-text-opacity: 1 !important;color:rgb(107 152 164 / var(--tw-text-opacity, 1))!important}.dark\:text-gray-400:is(.dark *){--tw-text-opacity: 1 !important;color:rgb(59 117 134 / var(--tw-text-opacity, 1))!important}.dark\:text-gray-50:is(.dark *){--tw-text-opacity: 1 !important;color:rgb(229 238 240 / var(--tw-text-opacity, 1))!important}.dark\:text-gray-600:is(.dark *){--tw-text-opacity: 1 !important;color:rgb(7 52 62 / var(--tw-text-opacity, 1))!important}.dark\:text-green-50:is(.dark *){--tw-text-opacity: 1 !important;color:rgb(240 253 244 / var(--tw-text-opacity, 1))!important}.dark\:text-primary-400:is(.dark *){--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-400-rgb),var(--tw-text-opacity, 1))!important}.dark\:text-primary-50:is(.dark *){--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-50-rgb),var(--tw-text-opacity, 1))!important}.dark\:text-primary-500:is(.dark *){--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-500-rgb),var(--tw-text-opacity, 1))!important}.dark\:text-red-50:is(.dark *){--tw-text-opacity: 1 !important;color:rgb(254 242 242 / var(--tw-text-opacity, 1))!important}.dark\:text-warn-50:is(.dark *){--tw-text-opacity: 1 !important;color:rgba(var(--angor-warn-50-rgb),var(--tw-text-opacity, 1))!important}.dark\:text-white:is(.dark *){--tw-text-opacity: 1 !important;color:rgb(255 255 255 / var(--tw-text-opacity, 1))!important}.dark\:shadow-none:is(.dark *){--tw-shadow: 0 0 #0000 !important;--tw-shadow-colored: 0 0 #0000 !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.dark\:ring-gray-900:is(.dark *){--tw-ring-opacity: 1 !important;--tw-ring-color: rgb(2 34 41 / var(--tw-ring-opacity, 1)) !important}.dark\:hover\:bg-black:hover:is(.dark *){--tw-bg-opacity: 1 !important;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1))!important}.dark\:hover\:bg-gray-700:hover:is(.dark *){--tw-bg-opacity: 1 !important;background-color:rgb(5 43 51 / var(--tw-bg-opacity, 1))!important}.dark\:hover\:bg-opacity-5:hover:is(.dark *){--tw-bg-opacity: .05 !important}@media (min-width: 600px){.sm\:static{position:static!important}.sm\:absolute{position:absolute!important}.sm\:inset-0{inset:0!important}.sm\:inset-auto{inset:auto!important}.sm\:col-span-4{grid-column:span 4 / span 4!important}.sm\:mx-0{margin-left:0!important;margin-right:0!important}.sm\:mx-1{margin-left:.25rem!important;margin-right:.25rem!important}.sm\:mx-5{margin-left:1.25rem!important;margin-right:1.25rem!important}.sm\:mx-8{margin-left:2rem!important;margin-right:2rem!important}.sm\:my-10{margin-top:2.5rem!important;margin-bottom:2.5rem!important}.sm\:-mr-4{margin-right:-1rem!important}.sm\:-mt-24{margin-top:-6rem!important}.sm\:mb-6{margin-bottom:1.5rem!important}.sm\:ml-0{margin-left:0!important}.sm\:ml-8{margin-left:2rem!important}.sm\:ml-auto{margin-left:auto!important}.sm\:mr-4{margin-right:1rem!important}.sm\:mt-0{margin-top:0!important}.sm\:mt-20{margin-top:5rem!important}.sm\:mt-24{margin-top:6rem!important}.sm\:mt-8{margin-top:2rem!important}.sm\:flex{display:flex!important}.sm\:inline-flex{display:inline-flex!important}.sm\:hidden{display:none!important}.sm\:h-20{height:5rem!important}.sm\:h-full{height:100%!important}.sm\:max-h-120{max-height:30rem!important}.sm\:w-100{width:25rem!important}.sm\:w-80{width:20rem!important}.sm\:w-90{width:22.5rem!important}.sm\:w-96{width:24rem!important}.sm\:w-auto{width:auto!important}.sm\:min-w-100{min-width:25rem!important}.sm\:min-w-90{min-width:22.5rem!important}.sm\:max-w-120{max-width:30rem!important}.sm\:max-w-5xl{max-width:64rem!important}.sm\:max-w-none{max-width:none!important}.sm\:-translate-x-96{--tw-translate-x: -24rem !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.sm\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))!important}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))!important}.sm\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))!important}.sm\:flex-row{flex-direction:row!important}.sm\:items-start{align-items:flex-start!important}.sm\:items-center{align-items:center!important}.sm\:justify-start{justify-content:flex-start!important}.sm\:justify-end{justify-content:flex-end!important}.sm\:justify-center{justify-content:center!important}.sm\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0 !important;margin-right:calc(.5rem * var(--tw-space-x-reverse))!important;margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))!important}.sm\:overflow-hidden{overflow:hidden!important}.sm\:rounded-2xl{border-radius:1rem!important}.sm\:bg-transparent{background-color:transparent!important}.sm\:p-10{padding:2.5rem!important}.sm\:p-12{padding:3rem!important}.sm\:p-16{padding:4rem!important}.sm\:p-8{padding:2rem!important}.sm\:px-10{padding-left:2.5rem!important;padding-right:2.5rem!important}.sm\:px-16{padding-left:4rem!important;padding-right:4rem!important}.sm\:px-18{padding-left:4.5rem!important;padding-right:4.5rem!important}.sm\:px-8{padding-left:2rem!important;padding-right:2rem!important}.sm\:pb-10{padding-bottom:2.5rem!important}.sm\:pb-48{padding-bottom:12rem!important}.sm\:pb-8{padding-bottom:2rem!important}.sm\:pr-8{padding-right:2rem!important}.sm\:pt-20{padding-top:5rem!important}.sm\:text-left{text-align:left!important}.sm\:text-2xl{font-size:1.25rem!important}.sm\:text-4xl{font-size:2rem!important}.sm\:text-7xl{font-size:3rem!important}.sm\:shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1) !important;--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}}@media (min-width: 960px){.md\:-ml-2{margin-left:-.5rem!important}.md\:block{display:block!important}.md\:flex{display:flex!important}.md\:h-full{height:100%!important}.md\:w-1\/2{width:50%!important}.md\:max-w-4xl{max-width:56rem!important}.md\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))!important}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))!important}.md\:items-start{align-items:flex-start!important}.md\:items-center{align-items:center!important}.md\:justify-start{justify-content:flex-start!important}.md\:justify-end{justify-content:flex-end!important}.md\:gap-x-6{column-gap:1.5rem!important}.md\:gap-y-0{row-gap:0px!important}.md\:rounded-none{border-radius:0!important}.md\:p-16{padding:4rem!important}.md\:p-8{padding:2rem!important}.md\:px-6{padding-left:1.5rem!important;padding-right:1.5rem!important}.md\:px-8{padding-left:2rem!important;padding-right:2rem!important}.md\:pb-12{padding-bottom:3rem!important}.md\:text-7xl{font-size:3rem!important}.md\:text-xl{font-size:1.125rem!important}.md\:leading-none{line-height:1!important}.md\:shadow-none{--tw-shadow: 0 0 #0000 !important;--tw-shadow-colored: 0 0 #0000 !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}}@media (min-width: 1280px){.lg\:static{position:static!important}.lg\:sticky{position:sticky!important}.lg\:inset-auto{inset:auto!important}.lg\:left-full{left:100%!important}.lg\:right-0{right:0!important}.lg\:right-16{right:4rem!important}.lg\:m-0{margin:0!important}.lg\:-mt-22{margin-top:-5.5rem!important}.lg\:ml-0{margin-left:0!important}.lg\:ml-8{margin-left:2rem!important}.lg\:ml-auto{margin-left:auto!important}.lg\:mr-8{margin-right:2rem!important}.lg\:mt-0{margin-top:0!important}.lg\:flex{display:flex!important}.lg\:hidden{display:none!important}.lg\:h-18{height:4.5rem!important}.lg\:h-80{height:20rem!important}.lg\:h-screen{height:100vh!important}.lg\:w-16{width:4rem!important}.lg\:min-w-100{min-width:25rem!important}.lg\:max-w-100,.lg\:max-w-\[25rem\]{max-width:25rem!important}.lg\:-translate-x-80{--tw-translate-x: -20rem !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}.lg\:flex-row{flex-direction:row!important}.lg\:items-start{align-items:flex-start!important}.lg\:overflow-hidden{overflow:hidden!important}.lg\:border-l{border-left-width:1px!important}.lg\:border-r{border-right-width:1px!important}.lg\:p-12{padding:3rem!important}.lg\:px-28{padding-left:7rem!important;padding-right:7rem!important}.lg\:shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1) !important;--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.lg\:shadow-none{--tw-shadow: 0 0 #0000 !important;--tw-shadow-colored: 0 0 #0000 !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}}@media print{.print\:hidden{display:none!important}}