From cf66708df9d9cd9204d8ea1e466a7e7ccb3f11bc Mon Sep 17 00:00:00 2001 From: ShahanaFarooqui Date: Thu, 2 Sep 2021 21:47:14 -0400 Subject: [PATCH] Release 0.11.2 (#786) Fee Report Refresh Bug Fix #776 LND Connect Peer Bug Fix #778 npm audit fix Increased CircleCI timeout to 20 mins --- .circleci/config.yml | 4 ++++ ...b74c13c7eba2a023d0.js => 145.b1263bd6d4d9c808b95c.js} | 0 ...3efd0eaffca79461bd.js => 432.95e7cd048ce3f51df4b4.js} | 0 ...d709adfaf43d19a339.js => 891.426afa0ec2d9096e8da5.js} | 2 +- ...b5fa8d3b93e7a0e7b3.js => 958.9e0e1f7340063e08f0c5.js} | 0 angular/index.html | 2 +- ...484d901c5e9c31fff.js => main.eecf078bfae29f102c6f.js} | 2 +- angular/runtime.d5083173ef6104a11138.js | 1 + angular/runtime.d870eba4b3a9aaa2ebd6.js | 1 - controllers/lnd/peers.js | 2 +- package-lock.json | 8 ++++---- package.json | 2 +- src/app/lnd/reports/fee/fee-report.component.spec.ts | 1 - src/app/lnd/reports/fee/fee-report.component.ts | 9 +++++++-- src/app/lnd/store/lnd.reducers.ts | 7 +++++++ src/environments/version.ts | 2 +- 16 files changed, 29 insertions(+), 14 deletions(-) rename angular/{145.e0b74c13c7eba2a023d0.js => 145.b1263bd6d4d9c808b95c.js} (100%) rename angular/{432.233efd0eaffca79461bd.js => 432.95e7cd048ce3f51df4b4.js} (100%) rename angular/{891.0cd709adfaf43d19a339.js => 891.426afa0ec2d9096e8da5.js} (75%) rename angular/{958.88b5fa8d3b93e7a0e7b3.js => 958.9e0e1f7340063e08f0c5.js} (100%) rename angular/{main.065484d901c5e9c31fff.js => main.eecf078bfae29f102c6f.js} (52%) create mode 100644 angular/runtime.d5083173ef6104a11138.js delete mode 100644 angular/runtime.d870eba4b3a9aaa2ebd6.js diff --git a/.circleci/config.yml b/.circleci/config.yml index 7f732b81..463372d5 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -15,6 +15,7 @@ jobs: sudo docker login --username=$DOCKERHUB_USER --password=$DOCKERHUB_PASS sudo docker build --pull -t "$DOCKERHUB_DESTINATION" -f "$DOCKERHUB_DOCKERFILE" . sudo docker push "$DOCKERHUB_DESTINATION" + no_output_timeout: 20m publish_docker_linuxarm32v7: machine: @@ -30,6 +31,7 @@ jobs: sudo docker login --username=$DOCKERHUB_USER --password=$DOCKERHUB_PASS sudo docker build --pull -t "$DOCKERHUB_DESTINATION" -f "$DOCKERHUB_DOCKERFILE" . sudo docker push "$DOCKERHUB_DESTINATION" + no_output_timeout: 20m publish_docker_linuxarm64v8: machine: @@ -45,6 +47,7 @@ jobs: sudo docker login --username=$DOCKERHUB_USER --password=$DOCKERHUB_PASS sudo docker build --pull -t "$DOCKERHUB_DESTINATION" -f "$DOCKERHUB_DOCKERFILE" . sudo docker push "$DOCKERHUB_DESTINATION" + no_output_timeout: 20m publish_docker_multiarch: machine: @@ -65,6 +68,7 @@ jobs: sudo docker manifest annotate "$DOCKERHUB_REPO:$LATEST_TAG" "$DOCKERHUB_REPO:$LATEST_TAG-arm32v7" --os linux --arch arm --variant v7 sudo docker manifest annotate "$DOCKERHUB_REPO:$LATEST_TAG" "$DOCKERHUB_REPO:$LATEST_TAG-arm64v8" --os linux --arch arm64 --variant v8 sudo docker manifest push "$DOCKERHUB_REPO:$LATEST_TAG" -p + no_output_timeout: 20m workflows: version: 2 diff --git a/angular/145.e0b74c13c7eba2a023d0.js b/angular/145.b1263bd6d4d9c808b95c.js similarity index 100% rename from angular/145.e0b74c13c7eba2a023d0.js rename to angular/145.b1263bd6d4d9c808b95c.js diff --git a/angular/432.233efd0eaffca79461bd.js b/angular/432.95e7cd048ce3f51df4b4.js similarity index 100% rename from angular/432.233efd0eaffca79461bd.js rename to angular/432.95e7cd048ce3f51df4b4.js diff --git a/angular/891.0cd709adfaf43d19a339.js b/angular/891.426afa0ec2d9096e8da5.js similarity index 75% rename from angular/891.0cd709adfaf43d19a339.js rename to angular/891.426afa0ec2d9096e8da5.js index ada4b110..9aaeeaab 100644 --- a/angular/891.0cd709adfaf43d19a339.js +++ b/angular/891.426afa0ec2d9096e8da5.js @@ -1 +1 @@ -(self.webpackChunkrtl=self.webpackChunkrtl||[]).push([[891],{7891:(e,t,n)=>{"use strict";n.r(t),n.d(t,{LNDModule:()=>vg});var a=n(1511),i=n(6853),s=n(2865),o=n(1572),l=n(3722),r=n(5994);function c(e,t){1&e&&o._UZ(0,"mat-progress-bar",3)}let u=(()=>{class e{constructor(e){this.router=e,this.loading=!1,this.router.events.subscribe(e=>{switch(!0){case e instanceof i.OD:this.loading=!0;break;case e instanceof i.m2:case e instanceof i.gk:case e instanceof i.Q3:this.loading=!1}})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(i.F0))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-lnd-root"]],decls:4,vars:1,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"inner-sidenav-content"],["color","primary","mode","indeterminate",4,"ngIf"],["outlet","outlet"],["color","primary","mode","indeterminate"]],template:function(e,t){1&e&&(o.TgZ(0,"div",0),o.YNc(1,c,1,0,"mat-progress-bar",1),o._UZ(2,"router-outlet",null,2),o.qZA()),2&e&&(o.xp6(1),o.Q6J("ngIf",t.loading))},directives:[l.xw,l.yH,l.Wh,a.O5,i.lC,r.pW],styles:[""],data:{animation:[s.g]}}),e})();var p=n(9666),d=n(9568),h=n(8868),m=n(7810),g=n(5291),f=n(9421),x=n(5678),Z=n(3869),y=n(964),A=n(5573),C=n(1084),T=n(7592),b=n(7271),w=n(7439),_=n(8055),v=n(377),q=n(5980),S=n(3691);const F=function(e){return{backgroundColor:e}};function L(e,t){if(1&e&&o._UZ(0,"span",6),2&e){const e=o.oxw();o.Q6J("ngStyle",o.VKq(1,F,null==e.information?null:e.information.color))}}function k(e,t){if(1&e&&(o.TgZ(0,"div"),o.TgZ(1,"h4",1),o._uU(2,"Color"),o.qZA(),o.TgZ(3,"div",2),o._UZ(4,"span",7),o._uU(5),o.ALo(6,"uppercase"),o.qZA(),o.qZA()),2&e){const e=o.oxw();o.xp6(4),o.Q6J("ngStyle",o.VKq(4,F,null==e.information?null:e.information.color)),o.xp6(1),o.hij(" ",o.lcZ(6,2,null==e.information?null:e.information.color)," ")}}function N(e,t){if(1&e&&(o.TgZ(0,"span",2),o._uU(1),o.qZA()),2&e){const e=t.$implicit;o.xp6(1),o.Oqu(e)}}let U=(()=>{class e{constructor(e){this.commonService=e,this.chains=[""]}ngOnChanges(){this.information&&this.information.chains&&this.information.chains.length>0&&(this.chains=[""],this.information.chains.forEach(e=>{this.chains.push(this.commonService.titleCase(e.chain)+" "+this.commonService.titleCase(e.network))}))}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(C.v))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-node-info"]],inputs:{information:"information",showColorFieldSeparately:"showColorFieldSeparately"},features:[o.TTD],decls:17,vars:5,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],[1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],["class","dashboard-node-dot dot",3,"ngStyle",4,"ngIf"],[4,"ngIf"],["class","overflow-wrap dashboard-info-value",4,"ngFor","ngForOf"],[1,"dashboard-node-dot","dot",3,"ngStyle"],[1,"dashboard-node-square",3,"ngStyle"]],template:function(e,t){1&e&&(o.TgZ(0,"div",0),o.TgZ(1,"div"),o.TgZ(2,"h4",1),o._uU(3,"Alias"),o.qZA(),o.TgZ(4,"div",2),o._uU(5),o.YNc(6,L,1,3,"span",3),o.qZA(),o.qZA(),o.YNc(7,k,7,6,"div",4),o.TgZ(8,"div"),o.TgZ(9,"h4",1),o._uU(10,"Implementation"),o.qZA(),o.TgZ(11,"div",2),o._uU(12),o.qZA(),o.qZA(),o.TgZ(13,"div"),o.TgZ(14,"h4",1),o._uU(15,"Chain"),o.qZA(),o.YNc(16,N,2,1,"span",5),o.qZA(),o.qZA()),2&e&&(o.xp6(5),o.hij(" ",null==t.information?null:t.information.alias," "),o.xp6(1),o.Q6J("ngIf",!t.showColorFieldSeparately),o.xp6(1),o.Q6J("ngIf",t.showColorFieldSeparately),o.xp6(5),o.Oqu(null!=t.information&&t.information.lnImplementation||null!=t.information&&t.information.version?(null==t.information?null:t.information.lnImplementation)+" "+(null==t.information?null:t.information.version):""),o.xp6(4),o.Q6J("ngForOf",t.chains))},directives:[l.xw,l.yH,l.Wh,a.O5,a.sg,a.PC,v.Zl],pipes:[a.gd],styles:[""]}),e})();function I(e,t){if(1&e&&(o.TgZ(0,"div",2),o.TgZ(1,"div"),o.TgZ(2,"h4",3),o._uU(3,"Lightning"),o.qZA(),o.TgZ(4,"div",4),o._uU(5),o.ALo(6,"number"),o.qZA(),o._UZ(7,"mat-progress-bar",5),o.qZA(),o.TgZ(8,"div"),o.TgZ(9,"h4",3),o._uU(10,"On-chain"),o.qZA(),o.TgZ(11,"div",4),o._uU(12),o.ALo(13,"number"),o.qZA(),o._UZ(14,"mat-progress-bar",5),o.qZA(),o.TgZ(15,"div"),o.TgZ(16,"h4",3),o._uU(17,"Total"),o.qZA(),o.TgZ(18,"div",4),o._uU(19),o.ALo(20,"number"),o.qZA(),o.qZA(),o.qZA()),2&e){const e=o.oxw();o.xp6(5),o.hij("",o.lcZ(6,5,null==e.balances?null:e.balances.lightning)," Sats"),o.xp6(2),o.s9C("value",(null==e.balances?null:e.balances.lightning)/(null==e.balances?null:e.balances.total)*100),o.xp6(5),o.hij("",o.lcZ(13,7,null==e.balances?null:e.balances.onchain)," Sats"),o.xp6(2),o.s9C("value",(null==e.balances?null:e.balances.onchain)/(null==e.balances?null:e.balances.total)*100),o.xp6(5),o.hij("",o.lcZ(20,9,null==e.balances?null:e.balances.total)," Sats")}}function O(e,t){if(1&e&&(o.TgZ(0,"div",6),o.TgZ(1,"p"),o._uU(2),o.qZA(),o.qZA()),2&e){const e=o.oxw();o.xp6(2),o.Oqu(e.errorMessage)}}let J=(()=>{class e{constructor(){this.balances={onchain:0,lightning:0,total:0}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-balances-info"]],inputs:{balances:"balances",errorMessage:"errorMessage"},decls:3,vars:2,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",4,"ngIf","ngIfElse"],["errorBlock",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayoutAlign","start",1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],["mode","determinate",1,"dashboard-progress-bar",3,"value"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(e,t){if(1&e&&(o.YNc(0,I,21,11,"div",0),o.YNc(1,O,3,1,"ng-template",null,1,o.W1O)),2&e){const e=o.MAs(2);o.Q6J("ngIf"," "===t.errorMessage)("ngIfElse",e)}},directives:[a.O5,l.xw,l.yH,l.Wh,r.pW],pipes:[a.JJ],styles:[""]}),e})();var D=n(6283),R=n(6828),M=n(7679),E=n(7038);function Q(e,t){if(1&e&&(o.TgZ(0,"div",19),o.TgZ(1,"span",20),o._uU(2),o.ALo(3,"slice"),o.qZA(),o.TgZ(4,"div",6),o.TgZ(5,"mat-hint",21),o.TgZ(6,"strong",8),o._uU(7,"Local:"),o.qZA(),o._uU(8),o.ALo(9,"number"),o.qZA(),o.TgZ(10,"mat-hint",22),o._UZ(11,"fa-icon",23),o._uU(12),o.ALo(13,"number"),o.qZA(),o.TgZ(14,"mat-hint",24),o.TgZ(15,"strong",8),o._uU(16,"Remote:"),o.qZA(),o._uU(17),o.ALo(18,"number"),o.qZA(),o.qZA(),o._UZ(19,"mat-progress-bar",25),o.qZA()),2&e){const e=t.$implicit,n=o.oxw(3);o.xp6(1),o.s9C("matTooltip",e.remote_alias||e.remote_pubkey),o.s9C("matTooltipDisabled",(e.remote_alias||e.remote_pubkey).length<26),o.xp6(1),o.AsE("",o.Dn7(3,9,e.remote_alias||e.remote_pubkey,0,24),"",(e.remote_alias||e.remote_pubkey).length>25?"...":"",""),o.xp6(6),o.hij("",o.lcZ(9,13,e.local_balance||0)," Sats"),o.xp6(3),o.Q6J("icon",n.faBalanceScale),o.xp6(1),o.hij(" (",o.lcZ(13,15,e.balancedness||0),") "),o.xp6(5),o.hij("",o.lcZ(18,17,e.remote_balance||0)," Sats"),o.xp6(2),o.s9C("value",e.local_balance&&e.local_balance>0?+e.local_balance/(+e.local_balance+ +e.remote_balance)*100:0)}}function Y(e,t){if(1&e&&(o.TgZ(0,"div",17),o.YNc(1,Q,20,19,"div",18),o.qZA()),2&e){const e=o.oxw(2);o.xp6(1),o.Q6J("ngForOf",e.allChannels)}}function P(e,t){if(1&e&&(o.TgZ(0,"div",3),o.TgZ(1,"div",4),o.TgZ(2,"span",5),o._uU(3,"Total Capacity"),o.qZA(),o.TgZ(4,"div",6),o.TgZ(5,"mat-hint",7),o.TgZ(6,"strong",8),o._uU(7,"Local:"),o.qZA(),o._uU(8),o.ALo(9,"number"),o.qZA(),o.TgZ(10,"mat-hint",9),o._UZ(11,"fa-icon",10),o._uU(12),o.ALo(13,"number"),o.qZA(),o.TgZ(14,"mat-hint",11),o.TgZ(15,"strong",8),o._uU(16,"Remote:"),o.qZA(),o._uU(17),o.ALo(18,"number"),o.qZA(),o.qZA(),o._UZ(19,"mat-progress-bar",12),o.qZA(),o.TgZ(20,"div",13),o._UZ(21,"mat-divider",14),o.qZA(),o.TgZ(22,"div",15),o.YNc(23,Y,2,1,"div",16),o.qZA(),o.qZA()),2&e){const e=o.oxw(),t=o.MAs(2);o.xp6(8),o.hij("",o.lcZ(9,7,(null==e.channelBalances?null:e.channelBalances.localBalance)||0)," Sats"),o.xp6(3),o.Q6J("icon",e.faBalanceScale),o.xp6(1),o.hij(" (",o.lcZ(13,9,(null==e.channelBalances?null:e.channelBalances.balancedness)||0),") "),o.xp6(5),o.hij("",o.lcZ(18,11,(null==e.channelBalances?null:e.channelBalances.remoteBalance)||0)," Sats"),o.xp6(2),o.s9C("value",null!=e.channelBalances&&e.channelBalances.localBalance&&(null==e.channelBalances?null:e.channelBalances.localBalance)>0?+(null==e.channelBalances?null:e.channelBalances.localBalance)/(+(null==e.channelBalances?null:e.channelBalances.localBalance)+ +(null==e.channelBalances?null:e.channelBalances.remoteBalance))*100:0),o.xp6(4),o.Q6J("ngIf",e.allChannels&&e.allChannels.length>0)("ngIfElse",t)}}function B(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"div",26),o._uU(1," No channels available. "),o.TgZ(2,"button",27),o.NdJ("click",function(){return o.CHM(e),o.oxw().goToChannels()}),o._uU(3,"Open Channel"),o.qZA(),o.qZA()}}function G(e,t){if(1&e&&(o.TgZ(0,"div",28),o.TgZ(1,"p"),o._uU(2),o.qZA(),o.qZA()),2&e){const e=o.oxw();o.xp6(2),o.Oqu(e.errorMessage)}}let H=(()=>{class e{constructor(e){this.router=e,this.faBalanceScale=g.DL8,this.faDumbbell=g.FlN,this.sortBy="Balance Score"}goToChannels(){this.router.navigateByUrl("/lnd/connections")}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(i.F0))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-channel-capacity-info"]],inputs:{channelBalances:"channelBalances",allChannels:"allChannels",sortBy:"sortBy",errorMessage:"errorMessage"},decls:5,vars:2,consts:[["fxLayout","column","fxLayoutAlign","space-between stretch","fxFlex","100",4,"ngIf","ngIfElse"],["noChannelBlock",""],["errorBlock",""],["fxLayout","column","fxLayoutAlign","space-between stretch","fxFlex","100"],["fxLayout","column","fxFlex","9","fxLayoutAlign","end start"],[1,"dashboard-capacity-header","this-channel-capacity"],["fxLayout","row","fxLayoutAlign","space-between start",1,"w-100"],["fxFlex","40","fxLayoutAlign","start center",1,"font-size-90"],[1,"font-weight-900","mr-5px"],["fxFlex","20","fxLayoutAlign","center center",1,"font-size-90"],["matTooltip","Balance Score",1,"mr-3px",3,"icon"],["fxFlex","40","fxLayoutAlign","end center",1,"font-size-90"],["mode","determinate","color","accent",1,"dashboard-progress-bar","this-channel-bar",3,"value"],["fxLayout","column","fxFlex","3","fxLayoutAlign","end stretch"],[1,"dashboard-divider"],[1,"channels-capacity-scroll",3,"perfectScrollbar"],["fxLayout","column","fxFlex","100",4,"ngIf","ngIfElse"],["fxLayout","column","fxFlex","100"],["class","mt-2",4,"ngFor","ngForOf"],[1,"mt-2"],[1,"dashboard-capacity-header",3,"matTooltip","matTooltipDisabled"],["fxFlex","40","fxLayoutAlign","start center",1,"font-size-90","color-primary"],["fxFlex","20","fxLayoutAlign","center center",1,"font-size-90","color-primary"],["matTooltip","Balance Score",1,"color-primary","mr-3px",3,"icon"],["fxFlex","40","fxLayoutAlign","end center",1,"font-size-90","color-primary"],["mode","determinate",1,"dashboard-progress-bar",3,"value"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start",1,"mt-1","w-100"],["mat-stroked-button","","color","primary","tabindex","1",3,"click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(e,t){if(1&e&&(o.YNc(0,P,24,13,"div",0),o.YNc(1,B,4,0,"ng-template",null,1,o.W1O),o.YNc(3,G,3,1,"ng-template",null,2,o.W1O)),2&e){const e=o.MAs(4);o.Q6J("ngIf",""===(null==t.errorMessage?null:t.errorMessage.trim()))("ngIfElse",e)}},directives:[a.O5,l.xw,l.Wh,l.yH,D.bx,T.BN,R.gM,r.pW,M.d,E.$V,a.sg,q.lW],pipes:[a.JJ,a.OU],styles:[".channels-capacity-scroll[_ngcontent-%COMP%]{width:100%;height:100%;overflow-y:hidden}"]}),e})();function z(e,t){if(1&e&&(o.TgZ(0,"div",2),o.TgZ(1,"div",3),o.TgZ(2,"div"),o.TgZ(3,"h4",4),o._uU(4,"Daily"),o.qZA(),o.TgZ(5,"div",5),o._uU(6),o.ALo(7,"number"),o.qZA(),o.qZA(),o.TgZ(8,"div"),o.TgZ(9,"h4",4),o._uU(10,"Weekly"),o.qZA(),o.TgZ(11,"div",5),o._uU(12),o.ALo(13,"number"),o.qZA(),o.qZA(),o.TgZ(14,"div"),o.TgZ(15,"h4",4),o._uU(16,"Monthly"),o.qZA(),o.TgZ(17,"div",5),o._uU(18),o.ALo(19,"number"),o.qZA(),o.qZA(),o.TgZ(20,"div",6),o._UZ(21,"h4",7),o._UZ(22,"span",5),o.qZA(),o.qZA(),o.TgZ(23,"div",3),o.TgZ(24,"div"),o.TgZ(25,"h4",4),o._uU(26,"Transactions"),o.qZA(),o.TgZ(27,"div",5),o._uU(28),o.ALo(29,"number"),o.qZA(),o.qZA(),o.TgZ(30,"div"),o.TgZ(31,"h4",4),o._uU(32,"Transactions"),o.qZA(),o.TgZ(33,"div",5),o._uU(34),o.ALo(35,"number"),o.qZA(),o.qZA(),o.TgZ(36,"div"),o.TgZ(37,"h4",4),o._uU(38,"Transactions"),o.qZA(),o.TgZ(39,"div",5),o._uU(40),o.ALo(41,"number"),o.qZA(),o.qZA(),o.TgZ(42,"div",6),o._UZ(43,"h4",7),o._UZ(44,"span",5),o.qZA(),o.qZA(),o.qZA()),2&e){const e=o.oxw();o.xp6(6),o.hij("",o.lcZ(7,6,null==e.fees?null:e.fees.day_fee_sum)," Sats"),o.xp6(6),o.hij("",o.lcZ(13,8,null==e.fees?null:e.fees.week_fee_sum)," Sats"),o.xp6(6),o.hij("",o.lcZ(19,10,null==e.fees?null:e.fees.month_fee_sum)," Sats"),o.xp6(10),o.Oqu(o.lcZ(29,12,null==e.fees?null:e.fees.daily_tx_count)),o.xp6(6),o.Oqu(o.lcZ(35,14,null==e.fees?null:e.fees.weekly_tx_count)),o.xp6(6),o.Oqu(o.lcZ(41,16,null==e.fees?null:e.fees.monthly_tx_count))}}function V(e,t){if(1&e&&(o.TgZ(0,"div",8),o.TgZ(1,"p"),o._uU(2),o.qZA(),o.qZA()),2&e){const e=o.oxw();o.xp6(2),o.Oqu(e.errorMessage)}}let W=(()=>{class e{constructor(){this.totalFees=[{name:"Monthly",value:0},{name:"Weekly",value:0},{name:"Daily",value:0}],this.maxFeeValue=100}ngOnChanges(){if(this.fees.month_fee_sum){this.totalFees=[{name:"Monthly",value:this.fees.month_fee_sum},{name:"Weekly",value:this.fees.week_fee_sum},{name:"Daily ",value:this.fees.day_fee_sum}];const e=Math.ceil(Math.log(this.fees.month_fee_sum+1)/Math.LN10),t=Math.pow(10,e-1);this.maxFeeValue=Math.ceil(this.fees.month_fee_sum/t)*t/5||100,Object.assign(this,this.totalFees)}else this.totalFees=[{name:"Monthly",value:0},{name:"Weekly",value:0},{name:"Daily",value:0}],this.maxFeeValue=100,Object.assign(this,this.totalFees)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-fee-info"]],inputs:{fees:"fees",errorMessage:"errorMessage"},features:[o.TTD],decls:3,vars:2,consts:[["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf","ngIfElse"],["errorBlock",""],["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","column","fxFlex","50","fxLayoutAlign","space-between stretch"],["fxLayoutAlign","start",1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],["fxFlex","20"],[1,"dashboard-info-title"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(e,t){if(1&e&&(o.YNc(0,z,45,18,"div",0),o.YNc(1,V,3,1,"ng-template",null,1,o.W1O)),2&e){const e=o.MAs(2);o.Q6J("ngIf",""===(null==t.errorMessage?null:t.errorMessage.trim()))("ngIfElse",e)}},directives:[a.O5,l.xw,l.yH,l.Wh],pipes:[a.JJ],styles:[""]}),e})();function X(e,t){if(1&e&&(o.TgZ(0,"div",2),o.TgZ(1,"div",3),o.TgZ(2,"div"),o.TgZ(3,"h4",4),o._uU(4,"Active"),o.qZA(),o.TgZ(5,"div",5),o._UZ(6,"span",6),o._uU(7),o.ALo(8,"number"),o.qZA(),o.qZA(),o.TgZ(9,"div"),o.TgZ(10,"h4",4),o._uU(11,"Pending"),o.qZA(),o.TgZ(12,"div",5),o._UZ(13,"span",7),o._uU(14),o.ALo(15,"number"),o.qZA(),o.qZA(),o.TgZ(16,"div"),o.TgZ(17,"h4",4),o._uU(18,"Inactive"),o.qZA(),o.TgZ(19,"div",5),o._UZ(20,"span",8),o._uU(21),o.ALo(22,"number"),o.qZA(),o.qZA(),o.TgZ(23,"div"),o.TgZ(24,"h4",4),o._uU(25,"Closing"),o.qZA(),o.TgZ(26,"div",5),o._UZ(27,"span",9),o._uU(28),o.ALo(29,"number"),o.qZA(),o.qZA(),o.qZA(),o.TgZ(30,"div",3),o.TgZ(31,"div"),o.TgZ(32,"h4",4),o._uU(33,"Capacity"),o.qZA(),o.TgZ(34,"div",5),o._uU(35),o.ALo(36,"number"),o.qZA(),o.qZA(),o.TgZ(37,"div"),o.TgZ(38,"h4",4),o._uU(39,"Capacity"),o.qZA(),o.TgZ(40,"div",5),o._uU(41),o.ALo(42,"number"),o.qZA(),o.qZA(),o.TgZ(43,"div"),o.TgZ(44,"h4",4),o._uU(45,"Capacity"),o.qZA(),o.TgZ(46,"div",5),o._uU(47),o.ALo(48,"number"),o.qZA(),o.qZA(),o.TgZ(49,"div"),o.TgZ(50,"h4",4),o._uU(51,"Capacity"),o.qZA(),o.TgZ(52,"div",5),o._uU(53),o.ALo(54,"number"),o.qZA(),o.qZA(),o.qZA(),o.qZA()),2&e){const e=o.oxw();o.xp6(7),o.Oqu(o.lcZ(8,8,(null==e.channelsStatus||null==e.channelsStatus.active?null:e.channelsStatus.active.channels)||0)),o.xp6(7),o.Oqu(o.lcZ(15,10,(null==e.channelsStatus||null==e.channelsStatus.pending?null:e.channelsStatus.pending.channels)||0)),o.xp6(7),o.Oqu(o.lcZ(22,12,(null==e.channelsStatus||null==e.channelsStatus.inactive?null:e.channelsStatus.inactive.channels)||0)),o.xp6(7),o.Oqu(o.lcZ(29,14,(null==e.channelsStatus||null==e.channelsStatus.closing?null:e.channelsStatus.closing.channels)||0)),o.xp6(7),o.hij("",o.lcZ(36,16,(null==e.channelsStatus||null==e.channelsStatus.active?null:e.channelsStatus.active.capacity)||0)," Sats"),o.xp6(6),o.hij("",o.lcZ(42,18,(null==e.channelsStatus||null==e.channelsStatus.pending?null:e.channelsStatus.pending.capacity)||0)," Sats"),o.xp6(6),o.hij("",o.lcZ(48,20,(null==e.channelsStatus||null==e.channelsStatus.inactive?null:e.channelsStatus.inactive.capacity)||0)," Sats"),o.xp6(6),o.hij("",o.lcZ(54,22,(null==e.channelsStatus||null==e.channelsStatus.closing?null:e.channelsStatus.closing.capacity)||0)," Sats")}}function $(e,t){if(1&e&&(o.TgZ(0,"div",10),o.TgZ(1,"p"),o._uU(2),o.qZA(),o.qZA()),2&e){const e=o.oxw();o.xp6(2),o.Oqu(e.errorMessage)}}let j=(()=>{class e{constructor(){this.channelsStatus={}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-channel-status-info"]],inputs:{channelsStatus:"channelsStatus",errorMessage:"errorMessage"},decls:3,vars:2,consts:[["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf","ngIfElse"],["errorBlock",""],["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","column","fxFlex","50","fxLayoutAlign","space-between stretch"],["fxLayoutAlign","start",1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],[1,"dot","tiny-dot","green"],[1,"dot","tiny-dot","yellow"],[1,"dot","tiny-dot","grey"],[1,"dot","tiny-dot","red"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(e,t){if(1&e&&(o.YNc(0,X,55,24,"div",0),o.YNc(1,$,3,1,"ng-template",null,1,o.W1O)),2&e){const e=o.MAs(2);o.Q6J("ngIf"," "===t.errorMessage)("ngIfElse",e)}},directives:[a.O5,l.xw,l.yH,l.Wh],pipes:[a.JJ],styles:[""]}),e})();var K=n(5028),ee=n(3929),te=n(2969);function ne(e,t){if(1&e&&(o.TgZ(0,"mat-hint",19),o.TgZ(1,"strong",20),o._uU(2,"Capacity: "),o.qZA(),o._uU(3),o.ALo(4,"number"),o.qZA()),2&e){const e=o.oxw().$implicit;o.xp6(3),o.hij("",o.lcZ(4,1,e.remote_balance||0)," Sats")}}function ae(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"button",24),o.NdJ("click",function(){o.CHM(e);const t=o.oxw(2).$implicit;return o.oxw(3).onLoopOut(t)}),o._uU(1,"Loop Out"),o.qZA()}}function ie(e,t){if(1&e&&(o.TgZ(0,"div",21),o.TgZ(1,"mat-hint",22),o.TgZ(2,"strong",20),o._uU(3,"Capacity: "),o.qZA(),o._uU(4),o.ALo(5,"number"),o.qZA(),o.YNc(6,ae,2,0,"button",23),o.qZA()),2&e){const e=o.oxw().$implicit,t=o.oxw(3);o.xp6(4),o.hij("",o.lcZ(5,2,e.local_balance||0)," Sats"),o.xp6(2),o.Q6J("ngIf",t.showLoop)}}function se(e,t){if(1&e&&o._UZ(0,"mat-progress-bar",25),2&e){const e=o.oxw().$implicit,t=o.oxw(3);o.s9C("value",t.totalLiquidity>0?(+e.remote_balance||0)/t.totalLiquidity*100:0)}}function oe(e,t){if(1&e&&o._UZ(0,"mat-progress-bar",25),2&e){const e=o.oxw().$implicit,t=o.oxw(3);o.s9C("value",t.totalLiquidity>0?(+e.local_balance||0)/t.totalLiquidity*100:0)}}function le(e,t){if(1&e&&(o.TgZ(0,"div",13),o.TgZ(1,"span",14),o._uU(2),o.ALo(3,"slice"),o.qZA(),o.TgZ(4,"div",15),o.YNc(5,ne,5,3,"mat-hint",16),o.YNc(6,ie,7,4,"div",17),o.qZA(),o.YNc(7,se,1,1,"mat-progress-bar",18),o.YNc(8,oe,1,1,"mat-progress-bar",18),o.qZA()),2&e){const e=t.$implicit,n=o.oxw(3);o.xp6(1),o.s9C("matTooltip",e.remote_alias||e.remote_pubkey),o.s9C("matTooltipDisabled",(e.remote_alias||e.remote_pubkey).length<26),o.xp6(1),o.AsE("",o.Dn7(3,8,e.remote_alias||e.remote_pubkey,0,24),"",(e.remote_alias||e.remote_pubkey).length>25?"...":"",""),o.xp6(3),o.Q6J("ngIf","In"===n.direction),o.xp6(1),o.Q6J("ngIf","Out"===n.direction),o.xp6(1),o.Q6J("ngIf","In"===n.direction),o.xp6(1),o.Q6J("ngIf","Out"===n.direction)}}function re(e,t){if(1&e&&(o.TgZ(0,"div",11),o.YNc(1,le,9,12,"div",12),o.qZA()),2&e){const e=o.oxw(2);o.xp6(1),o.Q6J("ngForOf",e.allChannels)}}const ce=function(e,t,n){return{"mb-4":e,"mb-2":t,"mb-1":n}};function ue(e,t){if(1&e&&(o.TgZ(0,"div",3),o.TgZ(1,"div",4),o.TgZ(2,"span",5),o._uU(3,"Total Capacity"),o.qZA(),o.TgZ(4,"mat-hint",6),o._uU(5),o.ALo(6,"number"),o.qZA(),o._UZ(7,"mat-progress-bar",7),o.qZA(),o.TgZ(8,"div",8),o._UZ(9,"mat-divider",9),o.qZA(),o.YNc(10,re,2,1,"div",10),o.qZA()),2&e){const e=o.oxw(),t=o.MAs(2);o.Q6J("ngClass",o.kEZ(6,ce,e.screenSize===e.screenSizeEnum.XS||e.screenSize===e.screenSizeEnum.SM,e.screenSize===e.screenSizeEnum.MD,e.screenSize===e.screenSizeEnum.LG||e.screenSize===e.screenSizeEnum.XL)),o.xp6(5),o.hij("",o.lcZ(6,4,e.totalLiquidity)," Sats"),o.xp6(5),o.Q6J("ngIf",e.allChannels&&e.allChannels.length>0)("ngIfElse",t)}}function pe(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"button",28),o.NdJ("click",function(){return o.CHM(e),o.oxw(2).goToChannels()}),o._uU(1,"Open Channel"),o.qZA()}}function de(e,t){if(1&e&&(o.TgZ(0,"div",26),o._uU(1," No channels available. "),o.YNc(2,pe,2,0,"button",27),o.qZA()),2&e){const e=o.oxw();o.xp6(2),o.Q6J("ngIf","Out"===e.direction)}}function he(e,t){if(1&e&&(o.TgZ(0,"div",29),o.TgZ(1,"p"),o._uU(2),o.qZA(),o.qZA()),2&e){const e=o.oxw();o.xp6(2),o.Oqu(e.errorMessage)}}let me=(()=>{class e{constructor(e,t,n,a){this.router=e,this.loopService=t,this.commonService=n,this.store=a,this.targetConf=6,this.screenSize="",this.screenSizeEnum=f.cu,this.unSubs=[new p.x,new p.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.store.select("lnd").pipe((0,d.R)(this.unSubs[0])).subscribe(e=>{this.showLoop=!(!e.nodeSettings.swapServerUrl||""===e.nodeSettings.swapServerUrl.trim())})}goToChannels(){this.router.navigateByUrl("/lnd/connections")}onLoopOut(e){this.loopService.getLoopOutTermsAndQuotes(this.targetConf).pipe((0,d.R)(this.unSubs[1])).subscribe(t=>{this.store.dispatch(new ee.wu({minHeight:"56rem",data:{channel:e,minQuote:t[0],maxQuote:t[1],direction:f.$I.LOOP_OUT,component:K.a}}))})}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(i.F0),o.Y36(te.W),o.Y36(C.v),o.Y36(y.yh))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-channel-liquidity-info"]],inputs:{direction:"direction",totalLiquidity:"totalLiquidity",allChannels:"allChannels",errorMessage:"errorMessage"},decls:5,vars:2,consts:[["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",3,"ngClass",4,"ngIf","ngIfElse"],["noChannelBlock",""],["errorBlock",""],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",3,"ngClass"],["fxLayout","column","fxFlex","9","fxLayoutAlign","end start"],[1,"dashboard-capacity-header","this-channel-capacity"],[1,"font-size-90"],["mode","determinate","color","accent","value","100",1,"dashboard-progress-bar","this-channel-bar"],["fxLayout","column","fxFlex","3","fxLayoutAlign","end stretch"],[1,"dashboard-divider"],[3,"perfectScrollbar",4,"ngIf","ngIfElse"],[3,"perfectScrollbar"],["fxLayout","column",4,"ngFor","ngForOf"],["fxLayout","column"],[1,"dashboard-capacity-header","mt-2",3,"matTooltip","matTooltipDisabled"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start"],["class","font-size-90 color-primary",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",4,"ngIf"],["class","dashboard-progress-bar","mode","determinate",3,"value",4,"ngIf"],[1,"font-size-90","color-primary"],[1,"font-weight-900","mr-5px"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],["fxFlex","85","fxLayoutAlign","start start",1,"font-size-90","color-primary"],["fxFlex","15","fxLayoutAlign","end start","class","button-link-dashboard","color","primary","mat-button","","aria-label","Loop Out",3,"click",4,"ngIf"],["fxFlex","15","fxLayoutAlign","end start","color","primary","mat-button","","aria-label","Loop Out",1,"button-link-dashboard",3,"click"],["mode","determinate",1,"dashboard-progress-bar",3,"value"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","1",3,"click",4,"ngIf"],["mat-stroked-button","","color","primary","tabindex","1",3,"click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(e,t){if(1&e&&(o.YNc(0,ue,11,10,"div",0),o.YNc(1,de,3,1,"ng-template",null,1,o.W1O),o.YNc(3,he,3,1,"ng-template",null,2,o.W1O)),2&e){const e=o.MAs(4);o.Q6J("ngIf",""===(null==t.errorMessage?null:t.errorMessage.trim()))("ngIfElse",e)}},directives:[a.O5,l.xw,l.Wh,l.yH,a.mk,v.oO,D.bx,r.pW,M.d,E.$V,a.sg,R.gM,q.lW],pipes:[a.JJ,a.OU],styles:[""]}),e})();var ge=n(5109),fe=n(3005),xe=n(2464),Ze=n(7033),ye=n(4608),Ae=n(6073),Ce=n(6756),Te=n(6880),be=n(5095),we=n(4786),_e=n(7521),ve=n(1522);function qe(e,t){if(1&e&&(o.TgZ(0,"mat-option",24),o._uU(1),o.ALo(2,"titlecase"),o.qZA()),2&e){const e=t.$implicit;o.Q6J("value",e),o.xp6(1),o.Oqu(o.lcZ(2,2,e))}}function Se(e,t){if(1&e&&(o.TgZ(0,"span"),o._uU(1),o.qZA()),2&e){const e=o.oxw(2);o.xp6(1),o.Oqu(e.invoiceError)}}function Fe(e,t){if(1&e&&(o.TgZ(0,"div",25),o._UZ(1,"fa-icon",26),o.YNc(2,Se,2,1,"span",27),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Q6J("icon",e.faExclamationTriangle),o.xp6(1),o.Q6J("ngIf",""!==e.invoiceError)}}let Le=(()=>{class e{constructor(e,t,n,a,i,s){this.dialogRef=e,this.data=t,this.store=n,this.decimalPipe=a,this.commonService=i,this.actions=s,this.faExclamationTriangle=g.eHv,this.selNode={},this.memo="",this.invoiceValueHint="",this.invoicePaymentReq="",this.information={},this.private=!1,this.expiryStep=100,this.pageSize=f.IV,this.timeUnitEnum=f.Qk,this.timeUnits=f.LO,this.selTimeUnit=f.Qk.SECS,this.invoiceError="",this.unSubs=[new p.x,new p.x,new p.x,new p.x,new p.x]}ngOnInit(){this.pageSize=this.data.pageSize,this.store.select("lnd").pipe((0,d.R)(this.unSubs[0])).subscribe(e=>{this.selNode=e.nodeSettings,this.information=e.information}),this.actions.pipe((0,d.R)(this.unSubs[1]),(0,h.h)(e=>e.type===x.JE||e.type===x.Ov)).subscribe(e=>{e.type===x.Ov&&this.dialogRef.close(),e.type===x.JE&&e.payload.status===f.Bn.ERROR&&"SaveNewInvoice"===e.payload.action&&(this.invoiceError=e.payload.message)})}onAddInvoice(e){this.invoiceError="";let t=this.expiry?this.expiry:3600;this.selTimeUnit!==f.Qk.SECS&&(t=this.commonService.convertTime(this.expiry,this.selTimeUnit,f.Qk.SECS)),this.store.dispatch(new x.H1({uiMessage:f.m6.ADD_INVOICE,memo:this.memo,invoiceValue:this.invoiceValue,private:this.private,expiry:t,pageSize:this.pageSize,openModal:!0}))}resetData(){this.memo="",this.invoiceValue=null,this.private=!1,this.expiry=null,this.invoiceValueHint="",this.selTimeUnit=f.Qk.SECS,this.invoiceError=""}onInvoiceValueChange(){this.selNode.fiatConversion&&this.invoiceValue>99&&(this.invoiceValueHint="",this.commonService.convertCurrency(this.invoiceValue,f.NT.SATS,f.NT.OTHER,this.selNode.currencyUnits[2],this.selNode.fiatConversion).pipe((0,d.R)(this.unSubs[2])).subscribe({next:e=>{this.invoiceValueHint="= "+e.symbol+this.decimalPipe.transform(e.OTHER,f.Xz.OTHER)+" "+e.unit},error:e=>{this.invoiceValueHint="Conversion Error: "+e}}))}onTimeUnitChange(e){this.expiry&&this.selTimeUnit!==e.value&&(this.expiry=this.commonService.convertTime(this.expiry,this.selTimeUnit,e.value)),this.selTimeUnit=e.value}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(ye.so),o.Y36(ye.WI),o.Y36(y.yh),o.Y36(a.JJ),o.Y36(C.v),o.Y36(A.eX))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-create-invoices"]],decls:36,vars:17,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayout","row wrap","fxLayoutAlign","space-between start","fxFlex","100"],["addInvoiceForm","ngForm"],["fxFlex","100","fxLayoutAlign","end start"],["matInput","","autoFocus","","placeholder","Memo","tabindex","1","name","memo",3,"ngModel","ngModelChange"],["fxFlex","50","fxLayoutAlign","start end"],["matInput","","placeholder","Amount","type","number","tabindex","2","name","invoiceValue",3,"ngModel","step","min","ngModelChange","keyup"],["matSuffix",""],["fxFlex","24","fxLayoutAlign","start end"],["matInput","","placeholder","Expiry","type","number","tabindex","3","name","expiry",3,"ngModel","step","min","ngModelChange"],["tabindex","4","name","timeUnit",3,"value","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",1,"mt-1"],["tabindex","4","color","primary","matTooltip","Include routing hints for private channels","name","private",3,"ngModel","matTooltipPosition","ngModelChange"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","5","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","6",3,"click"],[3,"value"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],[4,"ngIf"]],template:function(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"div",0),o.TgZ(1,"div",1),o.TgZ(2,"mat-card-header",2),o.TgZ(3,"div",3),o.TgZ(4,"span",4),o._uU(5,"Create Invoice"),o.qZA(),o.qZA(),o.TgZ(6,"button",5),o._uU(7,"X"),o.qZA(),o.qZA(),o.TgZ(8,"mat-card-content",6),o.TgZ(9,"form",7,8),o.TgZ(11,"mat-form-field",9),o.TgZ(12,"input",10),o.NdJ("ngModelChange",function(e){return t.memo=e}),o.qZA(),o.qZA(),o.TgZ(13,"mat-form-field",11),o.TgZ(14,"input",12),o.NdJ("ngModelChange",function(e){return t.invoiceValue=e})("keyup",function(){return t.onInvoiceValueChange()}),o.qZA(),o.TgZ(15,"span",13),o._uU(16," Sats "),o.qZA(),o.TgZ(17,"mat-hint"),o._uU(18),o.qZA(),o.qZA(),o.TgZ(19,"mat-form-field",14),o.TgZ(20,"input",15),o.NdJ("ngModelChange",function(e){return t.expiry=e}),o.qZA(),o.TgZ(21,"span",13),o._uU(22),o.ALo(23,"titlecase"),o.qZA(),o.qZA(),o.TgZ(24,"mat-form-field",14),o.TgZ(25,"mat-select",16),o.NdJ("selectionChange",function(e){return t.onTimeUnitChange(e)}),o.YNc(26,qe,3,4,"mat-option",17),o.qZA(),o.qZA(),o.TgZ(27,"div",18),o.TgZ(28,"mat-slide-toggle",19),o.NdJ("ngModelChange",function(e){return t.private=e}),o._uU(29,"Private Routing Hints"),o.qZA(),o.qZA(),o.YNc(30,Fe,3,2,"div",20),o.TgZ(31,"div",21),o.TgZ(32,"button",22),o.NdJ("click",function(){return t.resetData()}),o._uU(33,"Clear Field"),o.qZA(),o.TgZ(34,"button",23),o.NdJ("click",function(){o.CHM(e);const n=o.MAs(10);return t.onAddInvoice(n)}),o._uU(35,"Create Invoice"),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA()}2&e&&(o.xp6(6),o.Q6J("mat-dialog-close",!1),o.xp6(6),o.Q6J("ngModel",t.memo),o.xp6(2),o.Q6J("ngModel",t.invoiceValue)("step",100)("min",1),o.xp6(4),o.Oqu(t.invoiceValueHint),o.xp6(2),o.Q6J("ngModel",t.expiry)("step",t.selTimeUnit===t.timeUnitEnum.SECS?300:t.selTimeUnit===t.timeUnitEnum.MINS?10:t.selTimeUnit===t.timeUnitEnum.HOURS?2:1)("min",1),o.xp6(2),o.hij(" ",o.lcZ(23,15,t.selTimeUnit)," "),o.xp6(3),o.Q6J("value",t.selTimeUnit),o.xp6(1),o.Q6J("ngForOf",t.timeUnits),o.xp6(2),o.Q6J("ngModel",t.private)("matTooltipPosition","above"),o.xp6(2),o.Q6J("ngIf",""!==t.invoiceError))},directives:[l.xw,l.yH,w.dk,l.Wh,q.lW,ye.ZT,w.dn,Ae._Y,Ae.JL,Ae.F,D.KE,Ce.Nt,Ae.Fj,Te.h,Ae.JJ,Ae.On,Ae.wV,Ae.qQ,be.q,D.R9,D.bx,we.gD,a.sg,_e.Rr,R.gM,a.O5,ve.ey,T.BN],pipes:[a.rS],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),e})();var ke=n(1827),Ne=n(4636);function Ue(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"form",4,5),o.TgZ(2,"mat-form-field",6),o.TgZ(3,"input",7),o.NdJ("ngModelChange",function(t){return o.CHM(e),o.oxw().memo=t}),o.qZA(),o.qZA(),o.TgZ(4,"mat-form-field",8),o.TgZ(5,"input",9),o.NdJ("ngModelChange",function(t){return o.CHM(e),o.oxw().invoiceValue=t})("keyup",function(){return o.CHM(e),o.oxw().onInvoiceValueChange()}),o.qZA(),o.TgZ(6,"span",10),o._uU(7," Sats "),o.qZA(),o.TgZ(8,"mat-hint"),o._uU(9),o.qZA(),o.qZA(),o.TgZ(10,"div",11),o.TgZ(11,"button",12),o.NdJ("click",function(){return o.CHM(e),o.oxw().resetData()}),o._uU(12,"Clear Field"),o.qZA(),o.TgZ(13,"button",13),o.NdJ("click",function(){o.CHM(e);const t=o.MAs(1);return o.oxw().onAddInvoice(t)}),o._uU(14,"Create Invoice"),o.qZA(),o.qZA(),o.qZA()}if(2&e){const e=o.oxw();o.xp6(3),o.Q6J("ngModel",e.memo),o.xp6(2),o.Q6J("ngModel",e.invoiceValue)("step",100)("min",1),o.xp6(4),o.Oqu(e.invoiceValueHint)}}function Ie(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"div",14),o.TgZ(1,"button",15),o.NdJ("click",function(){return o.CHM(e),o.oxw().openCreateInvoiceModal()}),o._uU(2,"Create Invoice"),o.qZA(),o.qZA()}}function Oe(e,t){1&e&&o._UZ(0,"mat-progress-bar",46)}function Je(e,t){1&e&&(o.TgZ(0,"th",47),o._uU(1," Date Created "),o.qZA())}const De=function(e){return{"mr-0":e}};function Re(e,t){if(1&e&&o._UZ(0,"span",51),2&e){const e=o.oxw(3);o.Q6J("ngClass",o.VKq(1,De,e.screenSize===e.screenSizeEnum.XS))}}function Me(e,t){if(1&e&&o._UZ(0,"span",52),2&e){const e=o.oxw(3);o.Q6J("ngClass",o.VKq(1,De,e.screenSize===e.screenSizeEnum.XS))}}function Ee(e,t){if(1&e&&(o.TgZ(0,"td",48),o.YNc(1,Re,1,3,"span",49),o.YNc(2,Me,1,3,"span",50),o._uU(3),o.ALo(4,"date"),o.qZA()),2&e){const e=t.$implicit;o.xp6(1),o.Q6J("ngIf",e.settled),o.xp6(1),o.Q6J("ngIf",!e.settled),o.xp6(1),o.hij(" ",o.xi3(4,3,1e3*e.creation_date,"dd/MMM/YYYY HH:mm"),"")}}function Qe(e,t){1&e&&(o.TgZ(0,"th",53),o._uU(1," Date Settled "),o.qZA())}function Ye(e,t){if(1&e&&(o.TgZ(0,"td",54),o._uU(1),o.ALo(2,"date"),o.qZA()),2&e){const e=t.$implicit;o.xp6(1),o.Oqu(0!=+e.settle_date?o.xi3(2,1,1e3*+e.settle_date,"dd/MMM/YYYY HH:mm"):"-")}}function Pe(e,t){1&e&&(o.TgZ(0,"th",47),o._uU(1," Memo "),o.qZA())}const Be=function(e){return{"max-width":e}};function Ge(e,t){if(1&e&&(o.TgZ(0,"td",48),o.TgZ(1,"div",55),o.TgZ(2,"span",56),o._uU(3),o.qZA(),o.qZA(),o.qZA()),2&e){const e=t.$implicit,n=o.oxw(2);o.xp6(1),o.Q6J("ngStyle",o.VKq(2,Be,n.screenSize===n.screenSizeEnum.XS?"10rem":"22rem")),o.xp6(2),o.Oqu(e.memo)}}function He(e,t){1&e&&(o.TgZ(0,"th",57),o._uU(1," Amount (Sats) "),o.qZA())}function ze(e,t){if(1&e&&(o.TgZ(0,"td",48),o.TgZ(1,"span",58),o._uU(2),o.ALo(3,"number"),o.qZA(),o.qZA()),2&e){const e=t.$implicit;o.xp6(2),o.hij(" ",o.lcZ(3,1,null==e?null:e.value)," ")}}function Ve(e,t){1&e&&(o.TgZ(0,"th",57),o._uU(1," Amount Settled (Sats) "),o.qZA())}function We(e,t){if(1&e&&(o.TgZ(0,"td",48),o.TgZ(1,"span",58),o._uU(2),o.ALo(3,"number"),o.qZA(),o.qZA()),2&e){const e=t.$implicit;o.xp6(2),o.hij(" ",o.lcZ(3,1,null==e?null:e.amt_paid_sat)," ")}}function Xe(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"th",59),o.TgZ(1,"div",60),o.TgZ(2,"mat-select",61),o._UZ(3,"mat-select-trigger"),o.TgZ(4,"mat-option",62),o.NdJ("click",function(){return o.CHM(e),o.oxw(2).onDownloadCSV()}),o._uU(5,"Download CSV"),o.qZA(),o.qZA(),o.qZA(),o.qZA()}}const $e=function(e){return{"pl-3":e}};function je(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"td",63),o.TgZ(1,"div",64),o.TgZ(2,"mat-select",65),o._UZ(3,"mat-select-trigger"),o.TgZ(4,"mat-option",62),o.NdJ("click",function(){const t=o.CHM(e).$implicit;return o.oxw(2).onInvoiceClick(t)}),o._uU(5,"View Info"),o.qZA(),o.TgZ(6,"mat-option",62),o.NdJ("click",function(){const t=o.CHM(e).$implicit;return o.oxw(2).onRefreshInvoice(t)}),o._uU(7,"Refresh"),o.qZA(),o.qZA(),o.qZA(),o.qZA()}if(2&e){const e=o.oxw(2);o.Q6J("ngClass",o.VKq(1,$e,e.screenSize!==e.screenSizeEnum.XS))}}function Ke(e,t){1&e&&(o.TgZ(0,"p"),o._uU(1,"No invoice available."),o.qZA())}function et(e,t){1&e&&(o.TgZ(0,"p"),o._uU(1,"Getting invoices..."),o.qZA())}function tt(e,t){if(1&e&&(o.TgZ(0,"p"),o._uU(1),o.qZA()),2&e){const e=o.oxw(3);o.xp6(1),o.Oqu(e.errorMessage)}}function nt(e,t){if(1&e&&(o.TgZ(0,"td",66),o.YNc(1,Ke,2,0,"p",67),o.YNc(2,et,2,0,"p",67),o.YNc(3,tt,2,1,"p",67),o.qZA()),2&e){const e=o.oxw(2);o.xp6(1),o.Q6J("ngIf",(!(null!=e.invoices&&e.invoices.data)||(null==e.invoices||null==e.invoices.data?null:e.invoices.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.FetchInvoices.status)===e.apiCallStatusEnum.COMPLETED),o.xp6(1),o.Q6J("ngIf",(!(null!=e.invoices&&e.invoices.data)||(null==e.invoices||null==e.invoices.data?null:e.invoices.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.FetchInvoices.status)===e.apiCallStatusEnum.INITIATED),o.xp6(1),o.Q6J("ngIf",(!(null!=e.invoices&&e.invoices.data)||(null==e.invoices||null==e.invoices.data?null:e.invoices.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.FetchInvoices.status)===e.apiCallStatusEnum.ERROR)}}const at=function(e){return{"display-none":e}};function it(e,t){if(1&e&&o._UZ(0,"tr",68),2&e){const e=o.oxw(2);o.Q6J("ngClass",o.VKq(1,at,(null==e.invoices?null:e.invoices.data)&&(null==e.invoices||null==e.invoices.data?null:e.invoices.data.length)>0))}}function st(e,t){1&e&&o._UZ(0,"tr",69)}function ot(e,t){if(1&e&&o._UZ(0,"tr",70),2&e){const e=t.$implicit,n=o.oxw(2);o.Q6J("@newlyAddedRowAnimation",e.memo===n.newlyAddedInvoiceMemo&&e.value===n.newlyAddedInvoiceValue&&n.flgAnimate?"added":"notAdded")}}const lt=function(e){return{"overflow-auto error-border":e,"overflow-auto":!0}},rt=function(){return["no_invoice"]};function ct(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"div",16),o.TgZ(1,"div",17),o.TgZ(2,"div",18),o._UZ(3,"fa-icon",19),o.TgZ(4,"span",20),o._uU(5,"Invoices History"),o.qZA(),o.qZA(),o.TgZ(6,"mat-form-field",21),o.TgZ(7,"input",22),o.NdJ("keyup",function(t){return o.CHM(e),o.oxw().applyFilter(t.target)}),o.qZA(),o.qZA(),o.qZA(),o.TgZ(8,"div",23),o.YNc(9,Oe,1,0,"mat-progress-bar",24),o.TgZ(10,"table",25,26),o.ynx(12,27),o.YNc(13,Je,2,0,"th",28),o.YNc(14,Ee,5,6,"td",29),o.BQk(),o.ynx(15,30),o.YNc(16,Qe,2,0,"th",31),o.YNc(17,Ye,3,4,"td",32),o.BQk(),o.ynx(18,33),o.YNc(19,Pe,2,0,"th",28),o.YNc(20,Ge,4,4,"td",29),o.BQk(),o.ynx(21,34),o.YNc(22,He,2,0,"th",35),o.YNc(23,ze,4,3,"td",29),o.BQk(),o.ynx(24,36),o.YNc(25,Ve,2,0,"th",35),o.YNc(26,We,4,3,"td",29),o.BQk(),o.ynx(27,37),o.YNc(28,Xe,6,0,"th",38),o.YNc(29,je,8,3,"td",39),o.BQk(),o.ynx(30,40),o.YNc(31,nt,4,3,"td",41),o.BQk(),o.YNc(32,it,1,3,"tr",42),o.YNc(33,st,1,0,"tr",43),o.YNc(34,ot,1,1,"tr",44),o.qZA(),o.TgZ(35,"mat-paginator",45),o.NdJ("page",function(t){return o.CHM(e),o.oxw().onPageChange(t)}),o.qZA(),o.qZA(),o.qZA()}if(2&e){const e=o.oxw();o.xp6(3),o.Q6J("icon",e.faHistory),o.xp6(6),o.Q6J("ngIf",(null==e.apisCallStatus?null:e.apisCallStatus.FetchInvoices.status)===e.apiCallStatusEnum.INITIATED),o.xp6(1),o.Q6J("dataSource",e.invoices)("ngClass",o.VKq(12,lt,""!==e.errorMessage)),o.xp6(22),o.Q6J("matFooterRowDef",o.DdM(14,rt)),o.xp6(1),o.Q6J("matHeaderRowDef",e.displayedColumns)("matHeaderRowDefSticky",e.flgSticky),o.xp6(1),o.Q6J("matRowDefColumns",e.displayedColumns),o.xp6(1),o.Q6J("length",e.totalInvoices)("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)("showFirstLastButtons",e.screenSize!==e.screenSizeEnum.XS)}}let ut=(()=>{class e{constructor(e,t,n,a,i,s){this.logger=e,this.store=t,this.decimalPipe=n,this.commonService=a,this.datePipe=i,this.actions=s,this.calledFrom="transactions",this.faHistory=g.qO$,this.selNode={},this.newlyAddedInvoiceMemo=null,this.newlyAddedInvoiceValue=null,this.flgAnimate=!0,this.memo="",this.invoiceValueHint="",this.displayedColumns=[],this.invoicePaymentReq="",this.invoicesData=[],this.information={},this.flgSticky=!1,this.private=!1,this.expiryStep=100,this.totalInvoices=100,this.pageSize=f.IV,this.pageSizeOptions=f.TJ,this.firstOffset=-1,this.lastOffset=-1,this.screenSize="",this.screenSizeEnum=f.cu,this.errorMessage="",this.apisCallStatus=null,this.apiCallStatusEnum=f.Bn,this.unSubs=[new p.x,new p.x,new p.x,new p.x,new p.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===f.cu.XS?(this.flgSticky=!1,this.displayedColumns=["creation_date","value","actions"]):this.screenSize===f.cu.SM?(this.flgSticky=!1,this.displayedColumns=["creation_date","settle_date","value","amt_paid_sat","actions"]):this.screenSize===f.cu.MD?(this.flgSticky=!1,this.displayedColumns=["creation_date","settle_date","memo","value","actions"]):(this.flgSticky=!0,this.displayedColumns=["creation_date","settle_date","memo","value","amt_paid_sat","actions"])}ngOnInit(){this.store.select("lnd").pipe((0,d.R)(this.unSubs[0])).subscribe(e=>{this.errorMessage="",this.apisCallStatus=e.apisCallStatus,e.apisCallStatus.FetchInvoices.status===f.Bn.ERROR&&(this.errorMessage="object"==typeof this.apisCallStatus.FetchInvoices.message?JSON.stringify(this.apisCallStatus.FetchInvoices.message):this.apisCallStatus.FetchInvoices.message),this.selNode=e.nodeSettings,this.information=e.information,this.totalInvoices=e.totalInvoices,this.firstOffset=+e.invoices.first_index_offset,this.lastOffset=+e.invoices.last_index_offset,this.invoicesData=e.invoices.invoices?e.invoices.invoices:[],this.invoicesData.length>0&&this.sort&&this.paginator&&this.loadInvoicesTable(this.invoicesData),this.logger.info(e)}),this.actions.pipe((0,d.R)(this.unSubs[1]),(0,h.h)(e=>e.type===x.RP||e.type===x.JE)).subscribe(e=>{e.type===x.RP&&this.invoicesData.length>0&&this.sort&&this.paginator&&e.payload&&(this.updateInvoicesData(JSON.parse(JSON.stringify(e.payload))),this.loadInvoicesTable(this.invoicesData))})}ngAfterViewInit(){this.invoicesData.length>0&&this.loadInvoicesTable(this.invoicesData)}onAddInvoice(e){const t=this.expiry?this.expiry:3600;this.flgAnimate=!0,this.newlyAddedInvoiceMemo=this.memo,this.newlyAddedInvoiceValue=this.invoiceValue,this.store.dispatch(new x.H1({uiMessage:f.m6.ADD_INVOICE,memo:this.memo,invoiceValue:this.invoiceValue,private:this.private,expiry:t,pageSize:this.pageSize,openModal:!0})),this.resetData()}onInvoiceClick(e){this.store.dispatch(new ee.wu({data:{invoice:e,newlyAdded:!1,component:ke.v}}))}onRefreshInvoice(e){this.store.dispatch(new x.oP(e.r_hash))}updateInvoicesData(e){this.invoicesData=this.invoicesData.map(t=>t.r_hash===e.r_hash?e:t)}loadInvoicesTable(e){this.invoices=new Ze.by(e?[...e]:[]),this.invoices.sort=this.sort,this.invoices.sortingDataAccessor=(e,t)=>e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():e[t]?+e[t]:null,this.invoices.filterPredicate=(e,t)=>((e.creation_date?this.datePipe.transform(new Date(1e3*e.creation_date),"dd/MMM/YYYY HH:mm").toLowerCase():"")+(e.settle_date?this.datePipe.transform(new Date(1e3*e.settle_date),"dd/MMM/YYYY HH:mm").toLowerCase():"")+JSON.stringify(e).toLowerCase()).includes(t),setTimeout(()=>{this.flgAnimate=!1},5e3),this.logger.info(this.invoices)}resetData(){this.memo="",this.invoiceValue=null,this.private=!1,this.expiry=null,this.invoiceValueHint=""}applyFilter(e){this.invoices.filter=e.value.trim().toLowerCase()}onPageChange(e){let t=!0,n=this.lastOffset,a=e.pageSize;0===e.pageIndex?(t=!0,n=0):e.pageIndexe.previousPageIndex&&e.length>(e.pageIndex+1)*e.pageSize?(t=!0,n=this.firstOffset):e.length<=(e.pageIndex+1)*e.pageSize&&(t=!1,n=0,a=e.length-e.pageIndex*e.pageSize),this.store.dispatch(new x._O({num_max_invoices:e.pageSize,index_offset:n,reversed:t}))}onInvoiceValueChange(){this.selNode.fiatConversion&&this.invoiceValue>99&&(this.invoiceValueHint="",this.commonService.convertCurrency(this.invoiceValue,f.NT.SATS,f.NT.OTHER,this.selNode.currencyUnits[2],this.selNode.fiatConversion).pipe((0,d.R)(this.unSubs[2])).subscribe({next:e=>{this.invoiceValueHint="= "+e.symbol+this.decimalPipe.transform(e.OTHER,f.Xz.OTHER)+" "+e.unit},error:e=>{this.invoiceValueHint="Conversion Error: "+e}}))}onDownloadCSV(){this.invoices.data&&this.invoices.data.length>0&&this.commonService.downloadFile(this.invoices.data,"Invoices")}openCreateInvoiceModal(){this.store.dispatch(new ee.wu({data:{pageSize:this.pageSize,component:Le}}))}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(Z.mQ),o.Y36(y.yh),o.Y36(a.JJ),o.Y36(C.v),o.Y36(a.uU),o.Y36(A.eX))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-lightning-invoices"]],viewQuery:function(e,t){if(1&e&&(o.Gf(xe.YE,5),o.Gf(fe.NW,5)),2&e){let e;o.iGM(e=o.CRH())&&(t.sort=e.first),o.iGM(e=o.CRH())&&(t.paginator=e.first)}},inputs:{calledFrom:"calledFrom"},features:[o._Bn([{provide:fe.ye,useValue:(0,f.pt)("Invoices")}])],decls:4,vars:3,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap"],["fxLayout","row wrap","fxLayoutAlign","stretch start","fxFlex","100",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",4,"ngIf"],["fxLayout","row wrap","fxLayoutAlign","stretch start","fxFlex","100"],["addInvoiceForm","ngForm"],["fxFlex","100","fxLayoutAlign","end start"],["matInput","","placeholder","Memo","tabindex","1","name","memo",3,"ngModel","ngModelChange"],["fxFlex","100","fxLayoutAlign","start end"],["matInput","","placeholder","Amount","type","number","tabindex","2","name","invValue",3,"ngModel","step","min","ngModelChange","keyup"],["matSuffix",""],["fxLayout","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","3","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","4",3,"click"],["fxLayout","row"],["mat-flat-button","","color","primary","tabindex","5",3,"click"],["fxLayout","column","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayoutAlign","start stretch","fxLayout.gt-sm","row wrap",1,"page-sub-title-container","mt-1"],["fxFlex","70","fxLayoutAlign","start start","fxLayoutAlign.gt-sm","start center"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30","fxLayoutAlign","start end"],["matInput","","tabindex","6","placeholder","Filter",3,"keyup"],["fxLayout","column","fxLayoutAlign","start end","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","creation_date"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","settle_date"],["mat-header-cell","","mat-sort-header","","class","pl-4",4,"matHeaderCellDef"],["mat-cell","","class","pl-4",4,"matCellDef"],["matColumnDef","memo"],["matColumnDef","value"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","amt_paid_sat"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",3,"ngClass",4,"matCellDef"],["matColumnDef","no_invoice"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","","class","row-invoices",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"length","pageSize","pageSizeOptions","showFirstLastButtons","page"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["class","dot green","matTooltip","Settled","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot yellow","matTooltip","Unsettled","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["matTooltip","Settled","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Unsettled","matTooltipPosition","right",1,"dot","yellow",3,"ngClass"],["mat-header-cell","","mat-sort-header","",1,"pl-4"],["mat-cell","",1,"pl-4"],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",3,"ngClass"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","4",1,"mr-0"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row","",1,"row-invoices"]],template:function(e,t){1&e&&(o.TgZ(0,"div",0),o.YNc(1,Ue,15,5,"form",1),o.YNc(2,Ie,3,0,"div",2),o.YNc(3,ct,36,15,"div",3),o.qZA()),2&e&&(o.xp6(1),o.Q6J("ngIf","home"===t.calledFrom),o.xp6(1),o.Q6J("ngIf","transactions"===t.calledFrom),o.xp6(1),o.Q6J("ngIf","transactions"===t.calledFrom))},directives:[l.xw,l.yH,l.Wh,a.O5,Ae._Y,Ae.JL,Ae.F,D.KE,Ce.Nt,Ae.Fj,Ae.JJ,Ae.On,Ae.wV,Ae.qQ,be.q,D.R9,D.bx,q.lW,T.BN,E.$V,Ze.BZ,xe.YE,a.mk,v.oO,Ze.w1,Ze.fO,Ze.Dz,Ze.mD,Ze.Ke,Ze.as,Ze.nj,fe.NW,r.pW,Ze.ge,xe.nU,Ze.ev,R.gM,a.PC,v.Zl,we.gD,we.$L,ve.ey,Ze.yh,Ze.Q2,Ze.XQ,Ze.Gk],pipes:[a.uU,a.JJ],styles:[".mat-column-memo[_ngcontent-%COMP%]{flex:0 0 15%;width:15%}.mat-column-memo[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"],data:{animation:[Ne.Q]}}),e})();var pt=n(9056),dt=n(3556),ht=n(5001),mt=n(84);const gt=["paymentReq"];function ft(e,t){if(1&e&&(o.TgZ(0,"mat-hint"),o._uU(1),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Oqu(e.paymentDecodedHint)}}function xt(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Payment request is required."),o.qZA())}function Zt(e,t){if(1&e&&(o.TgZ(0,"mat-error"),o._uU(1),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Oqu(e.paymentDecodedHint)}}function yt(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Payment amount is required."),o.qZA())}function At(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"mat-form-field",1),o.TgZ(1,"input",29,30),o.NdJ("ngModelChange",function(t){return o.CHM(e),o.oxw().paymentAmount=t})("change",function(t){return o.CHM(e),o.oxw().onAmountChange(t)}),o.qZA(),o.TgZ(3,"mat-hint"),o._uU(4,"It is a zero amount invoice, enter amount to be paid."),o.qZA(),o.YNc(5,yt,2,0,"mat-error",11),o.qZA()}if(2&e){const e=o.oxw();o.xp6(1),o.Q6J("ngModel",e.paymentAmount),o.xp6(4),o.Q6J("ngIf",!e.paymentAmount)}}function Ct(e,t){if(1&e&&(o.TgZ(0,"mat-option",31),o._uU(1),o.qZA()),2&e){const e=t.$implicit;o.Q6J("value",e),o.xp6(1),o.hij(" ",e.name," ")}}function Tt(e,t){if(1&e&&(o.TgZ(0,"mat-error"),o._uU(1),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.hij("",e.selFeeLimitType.placeholder," is required.")}}function bt(e,t){if(1&e&&(o.TgZ(0,"mat-option",31),o._uU(1),o.qZA()),2&e){const e=t.$implicit;o.Q6J("value",e),o.xp6(1),o.Oqu(e.remote_alias||e.chan_id)}}function wt(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Channel not found in the list."),o.qZA())}function _t(e,t){if(1&e&&(o.TgZ(0,"span"),o._uU(1),o.qZA()),2&e){const e=o.oxw(2);o.xp6(1),o.Oqu(e.paymentError)}}function vt(e,t){if(1&e&&(o.TgZ(0,"div",32),o._UZ(1,"fa-icon",33),o.YNc(2,_t,2,1,"span",11),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Q6J("icon",e.faExclamationTriangle),o.xp6(1),o.Q6J("ngIf",""!==e.paymentError)}}let qt=(()=>{class e{constructor(e,t,n,a,i,s,o){this.dialogRef=e,this.store=t,this.logger=n,this.commonService=a,this.decimalPipe=i,this.actions=s,this.dataService=o,this.faExclamationTriangle=g.eHv,this.selNode={},this.paymentDecoded={},this.zeroAmtInvoice=!1,this.paymentAmount=null,this.paymentRequest="",this.paymentDecodedHint="",this.showAdvanced=!1,this.activeChannels=[],this.filteredMinAmtActvChannels=[],this.selectedChannelCtrl=new Ae.NI,this.feeLimit=null,this.selFeeLimitType=f.Vc[0],this.feeLimitTypes=f.Vc,this.advancedTitle="Advanced Options",this.paymentError="",this.unSubs=[new p.x,new p.x,new p.x,new p.x,new p.x,new p.x]}ngOnInit(){this.store.select("lnd").pipe((0,d.R)(this.unSubs[0])).subscribe(e=>{this.selNode=e.nodeSettings,this.activeChannels=e.allChannels.filter(e=>e.active),this.filteredMinAmtActvChannels=this.activeChannels,this.filteredMinAmtActvChannels.length&&this.filteredMinAmtActvChannels.length>0?this.selectedChannelCtrl.enable():this.selectedChannelCtrl.disable(),this.logger.info(e)}),this.actions.pipe((0,d.R)(this.unSubs[1]),(0,h.h)(e=>e.type===x.JE||e.type===x.ug)).subscribe(e=>{e.type===x.ug&&this.dialogRef.close(),e.type===x.JE&&e.payload.status===f.Bn.ERROR&&"SendPayment"===e.payload.action&&(delete this.paymentDecoded.num_satoshis,this.paymentError=e.payload.message)});let e="",t="";this.activeChannels=this.activeChannels.sort((n,a)=>(e=n.remote_alias?n.remote_alias.toLowerCase():n.chan_id?n.chan_id.toLowerCase():"",t=a.remote_alias?a.remote_alias.toLowerCase():a.chan_id?a.chan_id.toLowerCase():"",et?1:0)),this.selectedChannelCtrl.valueChanges.pipe((0,d.R)(this.unSubs[2])).subscribe(e=>{"string"==typeof e&&(this.filteredMinAmtActvChannels=this.filterChannels())})}filterChannels(){return this.activeChannels.filter(e=>0===(e.remote_alias?e.remote_alias.toLowerCase():e.chan_id?e.chan_id.toLowerCase():"").indexOf(this.selectedChannelCtrl.value?this.selectedChannelCtrl.value.toLowerCase():"")&&e.local_balance>=+(this.paymentDecoded.num_satoshis?this.paymentDecoded.num_satoshis:0))}displayFn(e){return e&&e.remote_alias?e.remote_alias:e&&e.chan_id?e.chan_id:""}onSelectedChannelChanged(){if(this.selectedChannelCtrl.value&&this.selectedChannelCtrl.value.length>0&&"string"==typeof this.selectedChannelCtrl.value){const e=this.activeChannels.filter(e=>{const t=e.remote_alias?e.remote_alias.toLowerCase():e.chan_id?e.chan_id.toLowerCase():"";return t.length===this.selectedChannelCtrl.value.length&&0===t.indexOf(this.selectedChannelCtrl.value?this.selectedChannelCtrl.value.toLowerCase():"")});e&&e.length>0?(this.selectedChannelCtrl.setValue(e[0]),this.selectedChannelCtrl.setErrors(null)):this.selectedChannelCtrl.setErrors({notfound:!0})}}onSendPayment(){if(this.selectedChannelCtrl.value&&"string"==typeof this.selectedChannelCtrl.value&&this.onSelectedChannelChanged(),!this.paymentRequest||this.zeroAmtInvoice&&(!this.paymentAmount||this.paymentAmount<=0)||"string"==typeof this.selectedChannelCtrl.value)return!0;this.paymentDecoded.timestamp?this.sendPayment():this.onPaymentRequestEntry(this.paymentRequest)}sendPayment(){this.paymentDecoded.num_msat&&!this.paymentDecoded.num_satoshis&&(this.paymentDecoded.num_satoshis=(+this.paymentDecoded.num_msat/1e3).toString()),this.paymentDecoded.num_satoshis&&""!==this.paymentDecoded.num_satoshis&&"0"!==this.paymentDecoded.num_satoshis?(this.zeroAmtInvoice=!1,this.store.dispatch(new x.Ar({uiMessage:f.m6.SEND_PAYMENT,paymentReq:this.paymentRequest,outgoingChannel:this.selectedChannelCtrl.value,feeLimitType:{id:this.selFeeLimitType.id,name:this.selFeeLimitType.name},feeLimit:this.feeLimit,fromDialog:!0}))):(this.zeroAmtInvoice=!0,this.paymentDecoded.num_satoshis=this.paymentAmount,this.store.dispatch(new x.Ar({uiMessage:f.m6.SEND_PAYMENT,paymentReq:this.paymentRequest,paymentAmount:this.paymentAmount,outgoingChannel:this.selectedChannelCtrl.value,feeLimitType:{id:this.selFeeLimitType.id,name:this.selFeeLimitType.name},feeLimit:this.feeLimit,fromDialog:!0})))}onAmountChange(e){delete this.paymentDecoded.num_satoshis}onPaymentRequestEntry(e){this.paymentRequest=e,this.paymentAmount=null,this.paymentError="",this.paymentDecodedHint="",this.zeroAmtInvoice=!1,this.paymentRequest&&this.paymentRequest.length>100&&(this.paymentReq.control.setErrors(null),this.zeroAmtInvoice=!1,this.dataService.decodePayment(this.paymentRequest,!0).pipe((0,pt.q)(1)).subscribe({next:e=>{this.paymentDecoded=e,this.selectedChannelCtrl.setValue(null),this.onAdvancedPanelToggle(!0,!0),this.paymentDecoded.num_msat&&!this.paymentDecoded.num_satoshis&&(this.paymentDecoded.num_satoshis=(+this.paymentDecoded.num_msat/1e3).toString()),this.paymentDecoded.num_satoshis&&""!==this.paymentDecoded.num_satoshis&&"0"!==this.paymentDecoded.num_satoshis?(this.filteredMinAmtActvChannels=this.filterChannels(),this.filteredMinAmtActvChannels.length&&this.filteredMinAmtActvChannels.length>0?this.selectedChannelCtrl.enable():this.selectedChannelCtrl.disable(),this.zeroAmtInvoice=!1,this.selNode.fiatConversion?this.commonService.convertCurrency(+this.paymentDecoded.num_satoshis,f.NT.SATS,f.NT.OTHER,this.selNode.currencyUnits[2],this.selNode.fiatConversion).pipe((0,d.R)(this.unSubs[4])).subscribe({next:e=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.num_satoshis)+" Sats ("+e.symbol+" "+this.decimalPipe.transform(e.OTHER?e.OTHER:0,f.Xz.OTHER)+") | Memo: "+(this.paymentDecoded.description?this.paymentDecoded.description:"None")},error:e=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.num_satoshis)+" Sats | Memo: "+(this.paymentDecoded.description?this.paymentDecoded.description:"None")+". Unable to convert currency."}}):this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.num_satoshis)+" Sats | Memo: "+(this.paymentDecoded.description?this.paymentDecoded.description:"None")):(this.zeroAmtInvoice=!0,this.filteredMinAmtActvChannels=this.activeChannels,this.filteredMinAmtActvChannels.length&&this.filteredMinAmtActvChannels.length>0?this.selectedChannelCtrl.enable():this.selectedChannelCtrl.disable(),this.paymentDecodedHint="Memo: "+(this.paymentDecoded.description?this.paymentDecoded.description:"None"))},error:e=>{this.logger.error(e),this.paymentDecodedHint="ERROR: "+e.message,this.paymentReq.control.setErrors({decodeError:!0})}}))}onAdvancedPanelToggle(e,t){if(e&&!t){const e=this.selectedChannelCtrl.value&&this.selectedChannelCtrl.value.remote_alias?this.selectedChannelCtrl.value.remote_alias:this.selectedChannelCtrl.value&&this.selectedChannelCtrl.value.chan_id?this.selectedChannelCtrl.value.chan_id:"";this.advancedTitle="Advanced Options | "+this.selFeeLimitType.name+("none"===this.selFeeLimitType.id?"":": "+this.feeLimit)+(""!==e?" | First Outgoing Channel: "+e:"")}else this.advancedTitle="Advanced Options"}resetData(){this.paymentDecoded={},this.paymentRequest="",this.selectedChannelCtrl.setValue(null),this.filteredMinAmtActvChannels=this.activeChannels,this.filteredMinAmtActvChannels.length&&this.filteredMinAmtActvChannels.length>0?this.selectedChannelCtrl.enable():this.selectedChannelCtrl.disable(),this.feeLimit=null,this.selFeeLimitType=f.Vc[0],this.advancedTitle="Advanced Options",this.zeroAmtInvoice=!1,this.paymentReq.control.setErrors(null),this.paymentError="",this.paymentDecodedHint=""}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(ye.so),o.Y36(y.yh),o.Y36(Z.mQ),o.Y36(C.v),o.Y36(a.JJ),o.Y36(A.eX),o.Y36(dt.D))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-lightning-send-payments"]],viewQuery:function(e,t){if(1&e&&o.Gf(gt,5),2&e){let e;o.iGM(e=o.CRH())&&(t.paymentReq=e.first)}},decls:43,vars:21,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayoutAlign","space-between stretch","fxLayout","column"],["sendPaymentForm","ngForm"],["autoFocus","","matInput","","placeholder","Payment Request","name","paymentRequest","tabindex","1","required","",3,"ngModel","ngModelChange","matTextareaAutosize"],["paymentReq","ngModel"],[4,"ngIf"],["fxFlex","100",4,"ngIf"],["fxFlex","100","expanded","false",1,"flat-expansion-panel","mt-2",3,"closed","opened"],["fxFlex","100","fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["fxFlex","30","fxLayoutAlign","start end"],["tabindex","5","Placeholder","Fee Limits",3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","26"],["matInput","","type","number","name","feeLmt","required","","tabindex","6",3,"ngModel","placeholder","step","min","disabled","ngModelChange"],["fLmt","ngModel"],["fxFlex","40","fxLayoutAlign","start end"],["type","text","placeholder","First Outgoing Channel","aria-label","First Outgoing Channel","matInput","","tabindex","7",3,"formControl","matAutocomplete"],[3,"displayWith","optionSelected"],["auto","matAutocomplete"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","2","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","3",3,"click"],["matInput","","placeholder","Amount (Sats)","name","amount","tabindex","2","required","",3,"ngModel","ngModelChange","change"],["paymentAmt","ngModel"],[3,"value"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"]],template:function(e,t){if(1&e&&(o.TgZ(0,"div",0),o.TgZ(1,"div",1),o.TgZ(2,"mat-card-header",2),o.TgZ(3,"div",3),o.TgZ(4,"span",4),o._uU(5,"Send Payment"),o.qZA(),o.qZA(),o.TgZ(6,"button",5),o._uU(7,"X"),o.qZA(),o.qZA(),o.TgZ(8,"mat-card-content",6),o.TgZ(9,"form",7,8),o.TgZ(11,"mat-form-field",1),o.TgZ(12,"textarea",9,10),o.NdJ("ngModelChange",function(e){return t.onPaymentRequestEntry(e)})("matTextareaAutosize",function(){return!0}),o.qZA(),o.YNc(14,ft,2,1,"mat-hint",11),o.YNc(15,xt,2,0,"mat-error",11),o.YNc(16,Zt,2,1,"mat-error",11),o.qZA(),o.YNc(17,At,6,2,"mat-form-field",12),o.TgZ(18,"mat-expansion-panel",13),o.NdJ("closed",function(){return t.onAdvancedPanelToggle(!0,!1)})("opened",function(){return t.onAdvancedPanelToggle(!1,!1)}),o.TgZ(19,"mat-expansion-panel-header"),o.TgZ(20,"mat-panel-title"),o.TgZ(21,"span"),o._uU(22),o.qZA(),o.qZA(),o.qZA(),o.TgZ(23,"div",14),o.TgZ(24,"mat-form-field",15),o.TgZ(25,"mat-select",16),o.NdJ("valueChange",function(e){return t.selFeeLimitType=e}),o.YNc(26,Ct,2,2,"mat-option",17),o.qZA(),o.qZA(),o.TgZ(27,"mat-form-field",18),o.TgZ(28,"input",19,20),o.NdJ("ngModelChange",function(e){return t.feeLimit=e}),o.qZA(),o.YNc(30,Tt,2,1,"mat-error",11),o.qZA(),o.TgZ(31,"mat-form-field",21),o._UZ(32,"input",22),o.TgZ(33,"mat-autocomplete",23,24),o.NdJ("optionSelected",function(){return t.onSelectedChannelChanged()}),o.YNc(35,bt,2,2,"mat-option",17),o.qZA(),o.YNc(36,wt,2,0,"mat-error",11),o.qZA(),o.qZA(),o.qZA(),o.YNc(37,vt,3,2,"div",25),o.TgZ(38,"div",26),o.TgZ(39,"button",27),o.NdJ("click",function(){return t.resetData()}),o._uU(40,"Clear Fields"),o.qZA(),o.TgZ(41,"button",28),o.NdJ("click",function(){return t.onSendPayment()}),o._uU(42,"Send Payment"),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA()),2&e){const e=o.MAs(13),n=o.MAs(34);o.xp6(6),o.Q6J("mat-dialog-close",!1),o.xp6(6),o.Q6J("ngModel",t.paymentRequest),o.xp6(2),o.Q6J("ngIf",t.paymentRequest&&""!==t.paymentDecodedHint),o.xp6(1),o.Q6J("ngIf",!t.paymentRequest),o.xp6(1),o.Q6J("ngIf",null==e.errors?null:e.errors.decodeError),o.xp6(1),o.Q6J("ngIf",t.zeroAmtInvoice),o.xp6(5),o.Oqu(t.advancedTitle),o.xp6(3),o.Q6J("value",t.selFeeLimitType),o.xp6(1),o.Q6J("ngForOf",t.feeLimitTypes),o.xp6(2),o.Q6J("ngModel",t.feeLimit)("placeholder",t.selFeeLimitType.placeholder)("step",1)("min",0)("disabled",t.selFeeLimitType===t.feeLimitTypes[0]),o.xp6(2),o.Q6J("ngIf",t.selFeeLimitType!==t.feeLimitTypes[0]&&!t.feeLimit),o.xp6(2),o.Q6J("formControl",t.selectedChannelCtrl)("matAutocomplete",n),o.xp6(1),o.Q6J("displayWith",t.displayFn),o.xp6(2),o.Q6J("ngForOf",t.filteredMinAmtActvChannels),o.xp6(1),o.Q6J("ngIf",null==t.selectedChannelCtrl.errors?null:t.selectedChannelCtrl.errors.notfound),o.xp6(1),o.Q6J("ngIf",""!==t.paymentError)}},directives:[l.xw,l.yH,w.dk,l.Wh,q.lW,ye.ZT,w.dn,Ae._Y,Ae.JL,Ae.F,D.KE,Ce.Nt,Ae.Fj,Ce.D7,Te.h,Ae.Q7,Ae.JJ,Ae.On,a.O5,ht.ib,ht.yz,ht.yK,we.gD,a.sg,Ae.wV,Ae.qQ,be.q,mt.ZL,Ae.oH,mt.XC,D.bx,D.TO,ve.ey,T.BN],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-payment_hash[_ngcontent-%COMP%]{flex:1 1 20%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),e})();var St=n(8914),Ft=n(8248);const Lt=["sendPaymentForm"];function kt(e,t){if(1&e&&(o.TgZ(0,"mat-hint"),o._uU(1),o.qZA()),2&e){const e=o.oxw(2);o.xp6(1),o.Oqu(e.paymentDecodedHint)}}function Nt(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Payment request is required."),o.qZA())}function Ut(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"form",4,5),o.TgZ(2,"mat-form-field",6),o.TgZ(3,"textarea",7,8),o.NdJ("ngModelChange",function(t){return o.CHM(e),o.oxw().onPaymentRequestEntry(t)})("matTextareaAutosize",function(){return!0}),o.qZA(),o.YNc(5,kt,2,1,"mat-hint",9),o.YNc(6,Nt,2,0,"mat-error",9),o.qZA(),o.TgZ(7,"div",10),o.TgZ(8,"button",11),o.NdJ("click",function(){return o.CHM(e),o.oxw().resetData()}),o._uU(9,"Clear Field"),o.qZA(),o.TgZ(10,"button",12),o.NdJ("click",function(){return o.CHM(e),o.oxw().onSendPayment()}),o._uU(11,"Send Payment"),o.qZA(),o.qZA(),o.qZA()}if(2&e){const e=o.oxw();o.xp6(3),o.Q6J("ngModel",e.paymentRequest),o.xp6(2),o.Q6J("ngIf",e.paymentRequest&&""!==e.paymentDecodedHint),o.xp6(1),o.Q6J("ngIf",!e.paymentRequest)}}function It(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"div",13),o.TgZ(1,"button",14),o.NdJ("click",function(){return o.CHM(e),o.oxw().openSendPaymentModal()}),o._uU(2,"Send Payment"),o.qZA(),o.qZA()}}function Ot(e,t){1&e&&o._UZ(0,"mat-progress-bar",53)}function Jt(e,t){1&e&&(o.TgZ(0,"th",54),o._uU(1,"Creation Date"),o.qZA())}const Dt=function(e){return{"mr-0":e}};function Rt(e,t){if(1&e&&o._UZ(0,"span",58),2&e){const e=o.oxw(3);o.Q6J("ngClass",o.VKq(1,Dt,e.screenSize===e.screenSizeEnum.XS))}}function Mt(e,t){if(1&e&&o._UZ(0,"span",59),2&e){const e=o.oxw(3);o.Q6J("ngClass",o.VKq(1,Dt,e.screenSize===e.screenSizeEnum.XS))}}function Et(e,t){if(1&e&&(o.TgZ(0,"td",55),o.YNc(1,Rt,1,3,"span",56),o.YNc(2,Mt,1,3,"span",57),o._uU(3),o.ALo(4,"date"),o.qZA()),2&e){const e=t.$implicit;o.xp6(1),o.Q6J("ngIf","SUCCEEDED"===e.status),o.xp6(1),o.Q6J("ngIf","SUCCEEDED"!==e.status),o.xp6(1),o.hij(" ",o.xi3(4,3,1e3*(null==e?null:e.creation_date),"dd/MMM/YYYY HH:mm")," ")}}function Qt(e,t){1&e&&(o.TgZ(0,"th",54),o._uU(1,"Payment Hash"),o.qZA())}const Yt=function(e){return{"max-width":e}};function Pt(e,t){if(1&e&&(o.TgZ(0,"td",60),o._uU(1),o.qZA()),2&e){const e=t.$implicit,n=o.oxw(2);o.Q6J("ngStyle",o.VKq(2,Yt,n.screenSize===n.screenSizeEnum.XS?"10rem":"35rem")),o.xp6(1),o.Oqu(null==e?null:e.payment_hash)}}function Bt(e,t){1&e&&(o.TgZ(0,"th",61),o._uU(1,"Fee (Sats)"),o.qZA())}function Gt(e,t){if(1&e&&(o.TgZ(0,"td",55),o.TgZ(1,"span",62),o._uU(2),o.ALo(3,"number"),o.qZA(),o.qZA()),2&e){const e=t.$implicit;o.xp6(2),o.Oqu(o.lcZ(3,1,null==e?null:e.fee))}}function Ht(e,t){1&e&&(o.TgZ(0,"th",61),o._uU(1,"Value (Sats)"),o.qZA())}function zt(e,t){if(1&e&&(o.TgZ(0,"td",55),o.TgZ(1,"span",62),o._uU(2),o.ALo(3,"number"),o.qZA(),o.qZA()),2&e){const e=t.$implicit;o.xp6(2),o.Oqu(o.lcZ(3,1,null==e?null:e.value))}}function Vt(e,t){1&e&&(o.TgZ(0,"th",61),o._uU(1,"#Hops"),o.qZA())}function Wt(e,t){if(1&e&&(o.TgZ(0,"td",55),o.TgZ(1,"span",62),o._uU(2),o.qZA(),o.qZA()),2&e){const e=t.$implicit;o.xp6(2),o.Oqu((null==e||null==e.htlcs[0]||null==e.htlcs[0].route||null==e.htlcs[0].route.hops?null:e.htlcs[0].route.hops.length)||0)}}function Xt(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"th",63),o.TgZ(1,"div",64),o.TgZ(2,"mat-select",65),o._UZ(3,"mat-select-trigger"),o.TgZ(4,"mat-option",66),o.NdJ("click",function(){return o.CHM(e),o.oxw(2).onDownloadCSV()}),o._uU(5,"Download CSV"),o.qZA(),o.qZA(),o.qZA(),o.qZA()}}function $t(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"td",67),o.TgZ(1,"button",68),o.NdJ("click",function(){const t=o.CHM(e).$implicit;return o.oxw(2).onPaymentClick(t)}),o._uU(2,"View Info"),o.qZA(),o.qZA()}}function jt(e,t){1&e&&(o.TgZ(0,"p"),o._uU(1,"No payment available."),o.qZA())}function Kt(e,t){1&e&&(o.TgZ(0,"p"),o._uU(1,"Getting payments..."),o.qZA())}function en(e,t){if(1&e&&(o.TgZ(0,"p"),o._uU(1),o.qZA()),2&e){const e=o.oxw(3);o.xp6(1),o.Oqu(e.errorMessage)}}function tn(e,t){if(1&e&&(o.TgZ(0,"td",69),o.YNc(1,jt,2,0,"p",9),o.YNc(2,Kt,2,0,"p",9),o.YNc(3,en,2,1,"p",9),o.qZA()),2&e){const e=o.oxw(2);o.xp6(1),o.Q6J("ngIf",(!(null!=e.payments&&e.payments.data)||(null==e.payments||null==e.payments.data?null:e.payments.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.FetchPayments.status)===e.apiCallStatusEnum.COMPLETED),o.xp6(1),o.Q6J("ngIf",(!(null!=e.payments&&e.payments.data)||(null==e.payments||null==e.payments.data?null:e.payments.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.FetchPayments.status)===e.apiCallStatusEnum.INITIATED),o.xp6(1),o.Q6J("ngIf",(!(null!=e.payments&&e.payments.data)||(null==e.payments||null==e.payments.data?null:e.payments.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.FetchPayments.status)===e.apiCallStatusEnum.ERROR)}}function nn(e,t){if(1&e&&o._UZ(0,"span",58),2&e){const e=o.oxw(3);o.Q6J("ngClass",o.VKq(1,Dt,e.screenSize===e.screenSizeEnum.XS))}}function an(e,t){if(1&e&&o._UZ(0,"span",59),2&e){const e=o.oxw(3);o.Q6J("ngClass",o.VKq(1,Dt,e.screenSize===e.screenSizeEnum.XS))}}function sn(e,t){if(1&e&&o._UZ(0,"span",58),2&e){const e=o.oxw(5);o.Q6J("ngClass",o.VKq(1,Dt,e.screenSize===e.screenSizeEnum.XS))}}function on(e,t){if(1&e&&o._UZ(0,"span",59),2&e){const e=o.oxw(5);o.Q6J("ngClass",o.VKq(1,Dt,e.screenSize===e.screenSizeEnum.XS))}}function ln(e,t){if(1&e&&(o.TgZ(0,"span",72),o.YNc(1,sn,1,3,"span",56),o.YNc(2,on,1,3,"span",57),o._uU(3),o.ALo(4,"date"),o.qZA()),2&e){const e=t.$implicit;o.xp6(1),o.Q6J("ngIf","SUCCEEDED"===e.status),o.xp6(1),o.Q6J("ngIf","SUCCEEDED"!==e.status),o.xp6(1),o.hij(" ",o.xi3(4,3,1e3*e.attempt_time,"dd/MMM/YYYY HH:mm")," ")}}function rn(e,t){if(1&e&&(o.ynx(0),o.YNc(1,ln,5,6,"span",71),o.BQk()),2&e){const e=o.oxw().$implicit;o.xp6(1),o.Q6J("ngForOf",null==e?null:e.htlcs)}}function cn(e,t){if(1&e&&(o.TgZ(0,"td",55),o.TgZ(1,"span",70),o.YNc(2,nn,1,3,"span",56),o.YNc(3,an,1,3,"span",57),o._uU(4),o.qZA(),o.YNc(5,rn,2,1,"ng-container",9),o.qZA()),2&e){const e=t.$implicit;o.xp6(2),o.Q6J("ngIf","SUCCEEDED"===e.status),o.xp6(1),o.Q6J("ngIf","SUCCEEDED"!==e.status),o.xp6(1),o.hij(" Total Attempts: ",null==e||null==e.htlcs?null:e.htlcs.length," "),o.xp6(1),o.Q6J("ngIf",e.is_expanded)}}function un(e,t){if(1&e&&(o.TgZ(0,"span",70),o._uU(1),o.qZA()),2&e){const e=t.index;o.xp6(1),o.hij(" HTLC ",e+1," ")}}function pn(e,t){if(1&e&&(o.TgZ(0,"span"),o.YNc(1,un,2,1,"span",73),o.qZA()),2&e){const e=o.oxw().$implicit;o.xp6(1),o.Q6J("ngForOf",null==e?null:e.htlcs)}}function dn(e,t){if(1&e&&(o.TgZ(0,"td",55),o.TgZ(1,"span",70),o._uU(2),o.qZA(),o.YNc(3,pn,2,1,"span",9),o.qZA()),2&e){const e=t.$implicit;o.xp6(2),o.Oqu(null==e?null:e.payment_hash),o.xp6(1),o.Q6J("ngIf",e.is_expanded)}}function hn(e,t){if(1&e&&(o.TgZ(0,"span",74),o._uU(1),o.ALo(2,"number"),o.qZA()),2&e){const e=t.$implicit;o.xp6(1),o.hij(" ",o.xi3(2,1,null==e.route?null:e.route.total_fees,"1.0-0")," ")}}function mn(e,t){if(1&e&&(o.TgZ(0,"span"),o.YNc(1,hn,3,4,"span",75),o.qZA()),2&e){const e=o.oxw().$implicit;o.xp6(1),o.Q6J("ngForOf",null==e?null:e.htlcs)}}function gn(e,t){if(1&e&&(o.TgZ(0,"td",55),o.TgZ(1,"span",74),o._uU(2),o.ALo(3,"number"),o.qZA(),o.YNc(4,mn,2,1,"span",9),o.qZA()),2&e){const e=t.$implicit;o.xp6(2),o.Oqu(o.xi3(3,2,null==e?null:e.fee,"1.0-0")),o.xp6(2),o.Q6J("ngIf",e.is_expanded)}}function fn(e,t){if(1&e&&(o.TgZ(0,"span",74),o._uU(1),o.ALo(2,"number"),o.qZA()),2&e){const e=t.$implicit;o.xp6(1),o.hij(" ",o.xi3(2,1,null==e.route?null:e.route.total_amt,"1.0-0")," ")}}function xn(e,t){if(1&e&&(o.TgZ(0,"span"),o.YNc(1,fn,3,4,"span",75),o.qZA()),2&e){const e=o.oxw().$implicit;o.xp6(1),o.Q6J("ngForOf",null==e?null:e.htlcs)}}function Zn(e,t){if(1&e&&(o.TgZ(0,"td",55),o.TgZ(1,"span",74),o._uU(2),o.ALo(3,"number"),o.qZA(),o.YNc(4,xn,2,1,"span",9),o.qZA()),2&e){const e=t.$implicit;o.xp6(2),o.Oqu(o.xi3(3,2,null==e?null:e.value,"1.0-0")),o.xp6(2),o.Q6J("ngIf",e.is_expanded)}}function yn(e,t){if(1&e&&(o.TgZ(0,"span",74),o._uU(1),o.ALo(2,"number"),o.qZA()),2&e){const e=t.$implicit;o.xp6(1),o.hij(" ",o.xi3(2,1,(null==e.route||null==e.route.hops?null:e.route.hops.length)||0,"1.0-0")," ")}}function An(e,t){if(1&e&&(o.TgZ(0,"span"),o.YNc(1,yn,3,4,"span",75),o.qZA()),2&e){const e=o.oxw().$implicit;o.xp6(1),o.Q6J("ngForOf",null==e?null:e.htlcs)}}function Cn(e,t){if(1&e&&(o.TgZ(0,"td",55),o.TgZ(1,"span",74),o._uU(2,"-"),o.qZA(),o.YNc(3,An,2,1,"span",9),o.qZA()),2&e){const e=t.$implicit;o.xp6(3),o.Q6J("ngIf",e.is_expanded)}}function Tn(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"div",62),o.TgZ(1,"button",79),o.NdJ("click",function(){const t=o.CHM(e).$implicit,n=o.oxw(2).$implicit;return o.oxw(2).onHTLCClick(t,n)}),o._uU(2),o.qZA(),o.qZA()}if(2&e){const e=t.index;o.xp6(2),o.hij("View ",e+1,"")}}function bn(e,t){if(1&e&&(o.TgZ(0,"div"),o.YNc(1,Tn,3,1,"div",78),o.qZA()),2&e){const e=o.oxw().$implicit;o.xp6(1),o.Q6J("ngForOf",null==e?null:e.htlcs)}}function wn(e,t){if(1&e&&(o.TgZ(0,"td",76),o.TgZ(1,"span",62),o.TgZ(2,"button",77),o.NdJ("click",function(){const e=t.$implicit;return e.is_expanded=!e.is_expanded}),o._uU(3),o.qZA(),o.qZA(),o.YNc(4,bn,2,1,"div",9),o.qZA()),2&e){const e=t.$implicit;o.xp6(3),o.Oqu(e.is_expanded?"Hide":"Show"),o.xp6(1),o.Q6J("ngIf",e.is_expanded)}}function _n(e,t){if(1&e&&o._UZ(0,"tr",80),2&e){const e=t.$implicit,n=o.oxw(2);o.Q6J("@newlyAddedRowAnimation",e.payment_hash===n.newlyAddedPayment&&n.flgAnimate?"added":"notAdded")}}const vn=function(e){return{"display-none":e}};function qn(e,t){if(1&e&&o._UZ(0,"tr",81),2&e){const e=o.oxw(2);o.Q6J("ngClass",o.VKq(1,vn,(null==e.payments?null:e.payments.data)&&(null==e.payments||null==e.payments.data?null:e.payments.data.length)>0))}}function Sn(e,t){1&e&&o._UZ(0,"tr",82)}function Fn(e,t){if(1&e&&o._UZ(0,"tr",80),2&e){const e=t.$implicit,n=o.oxw(2);o.Q6J("@newlyAddedRowAnimation",e.payment_hash===n.newlyAddedPayment&&n.flgAnimate?"added":"notAdded")}}const Ln=function(e){return{"overflow-auto error-border":e,"overflow-auto":!0}},kn=function(){return["no_payment"]};function Nn(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"div",15),o.TgZ(1,"div",16),o.TgZ(2,"div",17),o._UZ(3,"fa-icon",18),o.TgZ(4,"span",19),o._uU(5,"Payments History"),o.qZA(),o.qZA(),o.TgZ(6,"mat-form-field",20),o.TgZ(7,"input",21),o.NdJ("keyup",function(t){return o.CHM(e),o.oxw().applyFilter(t.target)}),o.qZA(),o.qZA(),o.qZA(),o.TgZ(8,"div",22),o.TgZ(9,"div",23),o.YNc(10,Ot,1,0,"mat-progress-bar",24),o.TgZ(11,"table",25,26),o.ynx(13,27),o.YNc(14,Jt,2,0,"th",28),o.YNc(15,Et,5,6,"td",29),o.BQk(),o.ynx(16,30),o.YNc(17,Qt,2,0,"th",28),o.YNc(18,Pt,2,4,"td",31),o.BQk(),o.ynx(19,32),o.YNc(20,Bt,2,0,"th",33),o.YNc(21,Gt,4,3,"td",29),o.BQk(),o.ynx(22,34),o.YNc(23,Ht,2,0,"th",33),o.YNc(24,zt,4,3,"td",29),o.BQk(),o.ynx(25,35),o.YNc(26,Vt,2,0,"th",33),o.YNc(27,Wt,3,1,"td",29),o.BQk(),o.ynx(28,36),o.YNc(29,Xt,6,0,"th",37),o.YNc(30,$t,3,0,"td",38),o.BQk(),o.ynx(31,39),o.YNc(32,tn,4,3,"td",40),o.BQk(),o.ynx(33,41),o.YNc(34,cn,6,4,"td",29),o.BQk(),o.ynx(35,42),o.YNc(36,dn,4,2,"td",29),o.BQk(),o.ynx(37,43),o.YNc(38,gn,5,5,"td",29),o.BQk(),o.ynx(39,44),o.YNc(40,Zn,5,5,"td",29),o.BQk(),o.ynx(41,45),o.YNc(42,Cn,4,1,"td",29),o.BQk(),o.ynx(43,46),o.YNc(44,wn,5,2,"td",47),o.BQk(),o.YNc(45,_n,1,1,"tr",48),o.YNc(46,qn,1,3,"tr",49),o.YNc(47,Sn,1,0,"tr",50),o.YNc(48,Fn,1,1,"tr",51),o.qZA(),o.TgZ(49,"mat-paginator",52),o.NdJ("page",function(t){return o.CHM(e),o.oxw().onPageChange(t)}),o.qZA(),o.qZA(),o.qZA(),o.qZA()}if(2&e){const e=o.oxw();o.xp6(3),o.Q6J("icon",e.faHistory),o.xp6(7),o.Q6J("ngIf",(null==e.apisCallStatus?null:e.apisCallStatus.FetchPayments.status)===e.apiCallStatusEnum.INITIATED),o.xp6(1),o.Q6J("dataSource",e.payments)("ngClass",o.VKq(14,Ln,""!==e.errorMessage)),o.xp6(34),o.Q6J("matRowDefColumns",e.htlcColumns)("matRowDefWhen",e.is_group),o.xp6(1),o.Q6J("matFooterRowDef",o.DdM(16,kn)),o.xp6(1),o.Q6J("matHeaderRowDef",e.displayedColumns)("matHeaderRowDefSticky",e.flgSticky),o.xp6(1),o.Q6J("matRowDefColumns",e.displayedColumns),o.xp6(1),o.Q6J("length",e.totalPayments)("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)("showFirstLastButtons",e.screenSize!==e.screenSizeEnum.XS)}}let Un=(()=>{class e{constructor(e,t,n,a,i,s,o,l){this.logger=e,this.commonService=t,this.dataService=n,this.store=a,this.rtlEffects=i,this.lndEffects=s,this.decimalPipe=o,this.datePipe=l,this.calledFrom="transactions",this.faHistory=g.qO$,this.newlyAddedPayment="",this.flgAnimate=!0,this.selNode={},this.information={},this.peers=[],this.totalPayments=100,this.paymentJSONArr=[],this.displayedColumns=[],this.htlcColumns=[],this.paymentDecoded={},this.paymentRequest="",this.paymentDecodedHint="",this.flgSticky=!1,this.firstOffset=-1,this.lastOffset=-1,this.pageSize=f.IV,this.pageSizeOptions=f.TJ,this.screenSize="",this.screenSizeEnum=f.cu,this.errorMessage="",this.apisCallStatus=null,this.apiCallStatusEnum=f.Bn,this.unSubs=[new p.x,new p.x,new p.x,new p.x,new p.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===f.cu.XS?(this.flgSticky=!1,this.displayedColumns=["creation_date","fee","actions"],this.htlcColumns=["groupTotal","groupFee","groupAction"]):this.screenSize===f.cu.SM||this.screenSize===f.cu.MD?(this.flgSticky=!1,this.displayedColumns=["creation_date","fee","value","hops","actions"],this.htlcColumns=["groupTotal","groupFee","groupValue","groupHops","groupAction"]):(this.flgSticky=!0,this.displayedColumns=["creation_date","payment_hash","fee","value","hops","actions"],this.htlcColumns=["groupTotal","groupHash","groupFee","groupValue","groupHops","groupAction"])}ngOnInit(){this.store.select("lnd").pipe((0,d.R)(this.unSubs[0])).subscribe(e=>{this.errorMessage="",this.apisCallStatus=e.apisCallStatus,e.apisCallStatus.FetchPayments.status===f.Bn.ERROR&&(this.errorMessage="object"==typeof this.apisCallStatus.FetchPayments.message?JSON.stringify(this.apisCallStatus.FetchPayments.message):this.apisCallStatus.FetchPayments.message),this.information=e.information,this.selNode=e.nodeSettings,this.peers=e.peers,this.paymentJSONArr=e.payments&&e.payments.payments&&e.payments.payments.length>0?e.payments.payments:[],this.totalPayments=e.allLightningTransactions.paymentsAll&&e.allLightningTransactions.paymentsAll.payments&&e.allLightningTransactions.paymentsAll.payments.length?e.allLightningTransactions.paymentsAll.payments.length:0,this.firstOffset=+e.payments.first_index_offset,this.lastOffset=+e.payments.last_index_offset,this.paymentJSONArr&&this.paymentJSONArr.length>0&&this.sort&&this.paginator?this.loadPaymentsTable(this.paymentJSONArr):this.paymentJSONArr&&0===this.paymentJSONArr.length&&(this.payments=new Ze.by([])),setTimeout(()=>{this.flgAnimate=!1},3e3),this.logger.info(e)})}ngAfterViewInit(){this.paymentJSONArr&&this.paymentJSONArr.length>0&&this.loadPaymentsTable(this.paymentJSONArr)}onSendPayment(){if(!this.paymentRequest)return!0;this.paymentDecoded.timestamp?this.sendPayment():this.dataService.decodePayment(this.paymentRequest,!1).pipe((0,pt.q)(1)).subscribe(e=>{this.paymentDecoded=e,this.paymentDecoded.timestamp?(this.paymentDecoded.num_satoshis=this.paymentDecoded.num_msat&&!this.paymentDecoded.num_satoshis?(+this.paymentDecoded.num_msat/1e3).toString():"0",this.sendPayment()):this.resetData()})}sendPayment(){this.flgAnimate=!0,this.newlyAddedPayment=this.paymentDecoded.payment_hash,this.paymentDecoded.num_msat&&!this.paymentDecoded.num_satoshis&&(this.paymentDecoded.num_satoshis=(+this.paymentDecoded.num_msat/1e3).toString()),this.paymentDecoded.num_satoshis&&""!==this.paymentDecoded.num_satoshis&&"0"!==this.paymentDecoded.num_satoshis?(this.store.dispatch(new ee.b_({data:{type:f.n_.CONFIRM,alertTitle:"Confirm Send Payment",noBtnText:"Cancel",yesBtnText:"Send Payment",message:[[{key:"payment_hash",value:this.paymentDecoded.payment_hash,title:"Payment Hash",width:100}],[{key:"destination",value:this.paymentDecoded.destination,title:"Destination",width:100}],[{key:"description",value:this.paymentDecoded.description,title:"Description",width:100}],[{key:"timestamp",value:this.paymentDecoded.timestamp,title:"Creation Date",width:50,type:f.Gi.DATE_TIME},{key:"num_satoshis",value:this.paymentDecoded.num_satoshis,title:"Amount (Sats)",width:50,type:f.Gi.NUMBER}],[{key:"expiry",value:this.paymentDecoded.expiry,title:"Expiry",width:50,type:f.Gi.NUMBER},{key:"cltv_expiry",value:this.paymentDecoded.cltv_expiry,title:"CLTV Expiry",width:50}]]}})),this.rtlEffects.closeConfirm.pipe((0,pt.q)(1)).subscribe(e=>{e&&(this.store.dispatch(new x.Ar({uiMessage:f.m6.SEND_PAYMENT,paymentReq:this.paymentRequest,fromDialog:!1})),this.resetData())})):(this.store.dispatch(new ee.b_({data:{type:f.n_.CONFIRM,alertTitle:"Enter Amount and Confirm Send Payment",titleMessage:"It is a zero amount invoice. Enter the amount (Sats) to pay.",message:[[{key:"payment_hash",value:this.paymentDecoded.payment_hash,title:"Payment Hash",width:100}],[{key:"destination",value:this.paymentDecoded.destination,title:"Destination",width:100}],[{key:"description",value:this.paymentDecoded.description,title:"Description",width:100}],[{key:"timestamp",value:this.paymentDecoded.timestamp,title:"Creation Date",width:40,type:f.Gi.DATE_TIME},{key:"expiry",value:this.paymentDecoded.expiry,title:"Expiry",width:30,type:f.Gi.NUMBER},{key:"cltv_expiry",value:this.paymentDecoded.cltv_expiry,title:"CLTV Expiry",width:30}]],noBtnText:"Cancel",yesBtnText:"Send Payment",flgShowInput:!0,getInputs:[{placeholder:"Amount (Sats)",inputType:f.Gi.NUMBER.toLowerCase(),inputValue:"",width:30}]}})),this.rtlEffects.closeConfirm.pipe((0,pt.q)(1)).subscribe(e=>{e&&(this.paymentDecoded.num_satoshis=e[0].inputValue,this.store.dispatch(new x.Ar({uiMessage:f.m6.SEND_PAYMENT,paymentReq:this.paymentRequest,paymentAmount:e[0].inputValue,fromDialog:!1})),this.resetData())}))}openSendPaymentModal(){this.store.dispatch(new ee.wu({data:{component:qt}}))}onPaymentRequestEntry(e){this.paymentRequest=e,this.paymentDecodedHint="",this.paymentRequest&&this.paymentRequest.length>100&&this.dataService.decodePayment(this.paymentRequest,!1).pipe((0,pt.q)(1)).subscribe(e=>{this.paymentDecoded=e,this.paymentDecoded.num_msat&&!this.paymentDecoded.num_satoshis&&(this.paymentDecoded.num_satoshis=(+this.paymentDecoded.num_msat/1e3).toString()),this.paymentDecoded.num_satoshis?this.selNode.fiatConversion?this.commonService.convertCurrency(+this.paymentDecoded.num_satoshis,f.NT.SATS,f.NT.OTHER,this.selNode.currencyUnits[2],this.selNode.fiatConversion).pipe((0,d.R)(this.unSubs[2])).subscribe({next:e=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.num_satoshis?this.paymentDecoded.num_satoshis:0)+" Sats ("+e.symbol+this.decimalPipe.transform(e.OTHER?e.OTHER:0,f.Xz.OTHER)+") | Memo: "+this.paymentDecoded.description},error:e=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.num_satoshis?this.paymentDecoded.num_satoshis:0)+" Sats | Memo: "+this.paymentDecoded.description+". Unable to convert currency."}}):this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.num_satoshis?this.paymentDecoded.num_satoshis:0)+" Sats | Memo: "+this.paymentDecoded.description:this.paymentDecodedHint="Zero Amount Invoice | Memo: "+this.paymentDecoded.description})}onPageChange(e){let t=!0,n=this.lastOffset,a=e.pageSize;0===e.pageIndex?(t=!0,n=0):e.pageIndexe.previousPageIndex&&e.length>(e.pageIndex+1)*e.pageSize?(t=!0,n=this.firstOffset):e.length<=(e.pageIndex+1)*e.pageSize&&(t=!1,n=0,a=e.length-e.pageIndex*e.pageSize),this.store.dispatch(new x.xt({max_payments:a,index_offset:n,reversed:t}))}is_group(e,t){return t.htlcs&&t.htlcs.length>1}resetData(){this.paymentDecoded={},this.paymentRequest="",this.form.resetForm()}getHopDetails(e){const t=this;return e.reduce((e,n)=>{const a=t.peers.find(e=>e.pub_key===n.pub_key);return a&&a.alias?e.push("
Channel: "+a.alias.padEnd(20)+"			Amount (Sats): "+t.decimalPipe.transform(n.amt_to_forward)+"
"):t.dataService.getAliasesFromPubkeys(n.pub_key,!1).pipe((0,d.R)(t.unSubs[1])).subscribe(a=>{e.push("
Channel: "+(a.node&&a.node.alias?a.node.alias.padEnd(20):n.pub_key.substring(0,17)+"...")+"			Amount (Sats): "+t.decimalPipe.transform(n.amt_to_forward)+"
")}),e},[])}onHTLCClick(e,t){t.payment_request&&""!==t.payment_request.trim()?this.dataService.decodePayment(t.payment_request,!1).pipe((0,pt.q)(1)).subscribe({next:n=>{this.showHTLCView(e,t,n)},error:n=>{this.showHTLCView(e,t,null)}}):this.showHTLCView(e,t,null)}showHTLCView(e,t,n){const a=[[{key:"payment_hash",value:t.payment_hash,title:"Payment Hash",width:100,type:f.Gi.STRING}],[{key:"preimage",value:e.preimage,title:"Preimage",width:100,type:f.Gi.STRING}],[{key:"payment_request",value:t.payment_request,title:"Payment Request",width:100,type:f.Gi.STRING}],[{key:"status",value:e.status,title:"Status",width:33,type:f.Gi.STRING},{key:"attempt_time_ns",value:+e.attempt_time_ns/1e9,title:"Attempt Time",width:33,type:f.Gi.DATE_TIME},{key:"resolve_time_ns",value:+e.resolve_time_ns/1e9,title:"Resolve Time",width:34,type:f.Gi.DATE_TIME}],[{key:"total_amt",value:e.route.total_amt,title:"Amount (Sats)",width:33,type:f.Gi.NUMBER},{key:"total_fees",value:e.route.total_fees,title:"Fee (Sats)",width:33,type:f.Gi.NUMBER},{key:"total_time_lock",value:e.route.total_time_lock,title:"Total Time Lock",width:34,type:f.Gi.NUMBER}],[{key:"hops",value:this.getHopDetails(e.route.hops),title:"Hops",width:100,type:f.Gi.ARRAY}]];n&&n.description&&""!==n.description&&a.splice(3,0,[{key:"description",value:n.description,title:"Description",width:100,type:f.Gi.STRING}]),this.store.dispatch(new ee.wu({data:{type:f.n_.INFORMATION,alertTitle:"HTLC Information",message:a,scrollable:e.route&&e.route.hops&&e.route.hops.length>1}}))}onPaymentClick(e){if(e.htlcs&&e.htlcs[0]&&e.htlcs[0].route&&e.htlcs[0].route.hops&&e.htlcs[0].route.hops.length>0){const t=e.htlcs[0].route.hops.reduce((e,t)=>""===e?t.pub_key:e+","+t.pub_key,"");this.dataService.getAliasesFromPubkeys(t,!0).pipe((0,d.R)(this.unSubs[3])).subscribe(t=>{this.showPaymentView(e,t.reduce((e,t)=>""===e?t:e+"\n"+t,""))})}else this.showPaymentView(e,"")}showPaymentView(e,t){const n=[[{key:"payment_hash",value:e.payment_hash,title:"Payment Hash",width:100,type:f.Gi.STRING}],[{key:"payment_preimage",value:e.payment_preimage,title:"Payment Preimage",width:100,type:f.Gi.STRING}],[{key:"payment_request",value:e.payment_request,title:"Payment Request",width:100,type:f.Gi.STRING}],[{key:"status",value:e.status,title:"Status",width:50,type:f.Gi.STRING},{key:"creation_date",value:e.creation_date,title:"Creation Date",width:50,type:f.Gi.DATE_TIME}],[{key:"value_msat",value:e.value_msat,title:"Value (mSats)",width:50,type:f.Gi.NUMBER},{key:"fee_msat",value:e.fee_msat,title:"Fee (mSats)",width:50,type:f.Gi.NUMBER}],[{key:"path",value:t,title:"Path",width:100,type:f.Gi.STRING}]];e.payment_request&&""!==e.payment_request.trim()?this.dataService.decodePayment(e.payment_request,!1).pipe((0,pt.q)(1)).subscribe(t=>{t&&t.description&&""!==t.description&&n.splice(3,0,[{key:"description",value:t.description,title:"Description",width:100,type:f.Gi.STRING}]),this.openPaymentAlert(n,e.htlcs&&e.htlcs[0]&&e.htlcs[0].route&&e.htlcs[0].route.hops&&e.htlcs[0].route.hops.length>1)}):this.openPaymentAlert(n,!1)}openPaymentAlert(e,t){this.store.dispatch(new ee.wu({data:{type:f.n_.INFORMATION,alertTitle:"Payment Information",message:e,scrollable:t}}))}applyFilter(e){this.payments.filter=e.value.trim().toLowerCase()}loadPaymentsTable(e){this.payments=new Ze.by(e?[...e]:[]),this.payments.sortingDataAccessor=(e,t)=>{switch(t){case"hops":return e.htlcs.length&&e.htlcs[0]&&e.htlcs[0].route&&e.htlcs[0].route.hops&&e.htlcs[0].route.hops.length?e.htlcs[0].route.hops.length:0;default:return e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():e[t]?+e[t]:null}},this.payments.sort=this.sort,this.payments.filterPredicate=(e,t)=>((e.creation_date?this.datePipe.transform(new Date(1e3*e.creation_date),"dd/MMM/YYYY HH:mm").toLowerCase():"")+JSON.stringify(e).toLowerCase()).includes(t)}onDownloadCSV(){if(this.payments.data&&this.payments.data.length>0){const e=JSON.parse(JSON.stringify(this.payments.data)),t=e.reduce((e,t)=>(t.payment_request&&""!==t.payment_request.trim()&&(e=""===e?t.payment_request:e+","+t.payment_request),e),"");this.dataService.decodePayments(t).pipe((0,d.R)(this.unSubs[4])).subscribe(t=>{let n=0;t.forEach((t,a)=>{for(;e[a+n].payment_hash!==t.payment_hash;)n+=1;e[a+n].description=t.description});const a=e.reduce((e,t)=>e.concat(t),[]);this.commonService.downloadFile(a,"Payments")})}}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(Z.mQ),o.Y36(C.v),o.Y36(dt.D),o.Y36(y.yh),o.Y36(St.V),o.Y36(Ft.l),o.Y36(a.JJ),o.Y36(a.uU))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-lightning-payments"]],viewQuery:function(e,t){if(1&e&&(o.Gf(Lt,5),o.Gf(xe.YE,5),o.Gf(fe.NW,5)),2&e){let e;o.iGM(e=o.CRH())&&(t.form=e.first),o.iGM(e=o.CRH())&&(t.sort=e.first),o.iGM(e=o.CRH())&&(t.paginator=e.first)}},inputs:{calledFrom:"calledFrom"},features:[o._Bn([{provide:fe.ye,useValue:(0,f.pt)("Payments")}])],decls:4,vars:3,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x"],["fxLayoutAlign","space-between stretch","fxLayout","row wrap",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",4,"ngIf"],["fxLayoutAlign","space-between stretch","fxLayout","row wrap"],["sendPaymentForm","ngForm"],["fxFlex","100"],["matInput","","placeholder","Payment Request","name","paymentRequest","tabindex","1","required","",3,"perfectScrollbar","ngModel","ngModelChange","matTextareaAutosize"],["paymentReq","ngModel"],[4,"ngIf"],["fxLayout","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","2","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","3",3,"click"],["fxLayout","row"],["mat-flat-button","","color","primary","tabindex","4",3,"click"],["fxLayout","column","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayoutAlign","start stretch","fxLayout.gt-sm","row wrap",1,"page-sub-title-container","mt-1"],["fxFlex","70","fxLayoutAlign","start start","fxLayoutAlign.gt-sm","start center"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30","fxLayoutAlign","start end"],["matInput","","placeholder","Filter",3,"keyup"],["fxLayout","row","fxLayoutAlign","start start"],["fxLayout","column","fxLayoutAlign","start end","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","creation_date"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","payment_hash"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","fee"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","value"],["matColumnDef","hops"],["matColumnDef","actions"],["mat-header-cell","","class","px-2",4,"matHeaderCellDef"],["mat-cell","","class","px-2","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_payment"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["matColumnDef","groupTotal"],["matColumnDef","groupHash"],["matColumnDef","groupFee"],["matColumnDef","groupValue"],["matColumnDef","groupHops"],["matColumnDef","groupAction"],["mat-cell","","class","px-2",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns","matRowDefWhen"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"length","pageSize","pageSizeOptions","showFirstLastButtons","page"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["class","dot green","matTooltip","Succeeded","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red","matTooltip","Failed","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["matTooltip","Succeeded","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Failed","matTooltipPosition","right",1,"dot","red",3,"ngClass"],["mat-cell","",3,"ngStyle"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-2"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"px-2"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],["fxLayoutAlign","start center",1,"htlc-row-span"],["fxLayoutAlign","start center","class","htlc-row-span pl-3",4,"ngFor","ngForOf"],["fxLayoutAlign","start center",1,"htlc-row-span","pl-3"],["fxLayoutAlign","start center","class","htlc-row-span",4,"ngFor","ngForOf"],["fxLayoutAlign","end center",1,"htlc-row-span"],["fxLayoutAlign","end center","class","htlc-row-span",4,"ngFor","ngForOf"],["mat-cell","",1,"px-2"],["mat-flat-button","","color","primary","type","button","tabindex","5",1,"btn-htlc-expand",3,"click"],["fxLayoutAlign","end center",4,"ngFor","ngForOf"],["mat-stroked-button","","color","primary","type","button","tabindex","6",1,"btn-htlc-info",3,"click"],["mat-row",""],["mat-footer-row","",3,"ngClass"],["mat-header-row",""]],template:function(e,t){1&e&&(o.TgZ(0,"div",0),o.YNc(1,Ut,12,3,"form",1),o.YNc(2,It,3,0,"div",2),o.YNc(3,Nn,50,17,"div",3),o.qZA()),2&e&&(o.xp6(1),o.Q6J("ngIf","home"===t.calledFrom),o.xp6(1),o.Q6J("ngIf","transactions"===t.calledFrom),o.xp6(1),o.Q6J("ngIf","transactions"===t.calledFrom))},directives:[l.xw,l.yH,l.Wh,a.O5,Ae._Y,Ae.JL,Ae.F,D.KE,Ce.Nt,Ae.Fj,Ce.D7,Ae.Q7,E.$V,Ae.JJ,Ae.On,q.lW,D.bx,D.TO,T.BN,Ze.BZ,xe.YE,a.mk,v.oO,Ze.w1,Ze.fO,Ze.Dz,Ze.mD,Ze.nj,Ze.Ke,Ze.as,fe.NW,r.pW,Ze.ge,xe.nU,Ze.ev,R.gM,a.PC,v.Zl,we.gD,we.$L,ve.ey,Ze.yh,a.sg,Ze.Gk,Ze.Q2,Ze.XQ],pipes:[a.uU,a.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-payment_hash[_ngcontent-%COMP%]{flex:1 1 20%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-groupAction[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-groupAction[_ngcontent-%COMP%] .btn-htlc-expand[_ngcontent-%COMP%]{width:9rem}.mat-column-groupAction[_ngcontent-%COMP%] .btn-htlc-info[_ngcontent-%COMP%]{margin-top:.5rem;width:9rem}.htlc-row-span[_ngcontent-%COMP%]{min-height:4.2rem}.mat-column-groupTotal[_ngcontent-%COMP%]{min-width:17rem}"],data:{animation:[Ne.Q]}}),e})();function In(e,t){if(1&e&&(o.TgZ(0,"button",26),o.TgZ(1,"mat-icon"),o._uU(2,"more_vert"),o.qZA(),o.qZA()),2&e){o.oxw();const e=o.MAs(11);o.Q6J("matMenuTriggerFor",e)}}function On(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"button",15),o.NdJ("click",function(){return o.CHM(e),o.oxw(3).onNavigateTo("/lnd/reports")}),o._uU(1,"Fees Summary"),o.qZA()}}function Jn(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"button",15),o.NdJ("click",function(){return o.CHM(e),o.oxw(3).onsortChannelsBy()}),o._uU(1),o.qZA()}if(2&e){const e=o.oxw(3);o.xp6(1),o.hij("Sort By ","Balance Score"===e.sortField?"Capacity":"Balance Score","")}}function Dn(e,t){1&e&&o._UZ(0,"mat-progress-bar",27)}function Rn(e,t){if(1&e&&o._UZ(0,"rtl-node-info",28),2&e){const e=o.oxw(3);o.Q6J("information",e.information)("showColorFieldSeparately",!1)}}function Mn(e,t){if(1&e&&o._UZ(0,"rtl-balances-info",29),2&e){const e=o.oxw(3);o.Q6J("balances",e.balances)("errorMessage",e.errorMessages[3]+" "+e.errorMessages[2])}}function En(e,t){if(1&e&&o._UZ(0,"rtl-channel-capacity-info",30),2&e){const e=o.oxw(3);o.Q6J("sortBy",e.sortField)("channelBalances",e.channelBalances)("allChannels",e.allChannelsCapacity)("errorMessage",e.errorMessages[3])}}function Qn(e,t){if(1&e&&o._UZ(0,"rtl-fee-info",31),2&e){const e=o.oxw(3);o.Q6J("fees",e.fees)("errorMessage",e.errorMessages[1])}}function Yn(e,t){if(1&e&&o._UZ(0,"rtl-channel-status-info",32),2&e){const e=o.oxw(3);o.Q6J("channelsStatus",e.channelsStatus)("errorMessage",e.errorMessages[3]+" "+e.errorMessages[4])}}function Pn(e,t){1&e&&(o.TgZ(0,"h3"),o._uU(1,"Error! Unable to find information!"),o.qZA())}const Bn=function(e){return{"dashboard-card-content":!0,"error-border":e}};function Gn(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"mat-grid-tile",8),o.TgZ(1,"mat-card",9),o.TgZ(2,"mat-card-header"),o.TgZ(3,"mat-card-title",10),o.TgZ(4,"div"),o._UZ(5,"fa-icon",11),o.TgZ(6,"span"),o._uU(7),o.qZA(),o.qZA(),o.TgZ(8,"div"),o.YNc(9,In,3,1,"button",12),o.TgZ(10,"mat-menu",13,14),o.TgZ(12,"button",15),o.NdJ("click",function(){const t=o.CHM(e).$implicit;return o.oxw(2).onNavigateTo(t.link)}),o._uU(13),o.qZA(),o.YNc(14,On,2,0,"button",16),o.YNc(15,Jn,2,1,"button",16),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.TgZ(16,"mat-card-content",17),o.YNc(17,Dn,1,0,"mat-progress-bar",18),o.TgZ(18,"div",19),o.YNc(19,Rn,1,2,"rtl-node-info",20),o.YNc(20,Mn,1,2,"rtl-balances-info",21),o.YNc(21,En,1,4,"rtl-channel-capacity-info",22),o.YNc(22,Qn,1,2,"rtl-fee-info",23),o.YNc(23,Yn,1,2,"rtl-channel-status-info",24),o.YNc(24,Pn,2,0,"h3",25),o.qZA(),o.qZA(),o.qZA(),o.qZA()}if(2&e){const e=t.$implicit,n=o.oxw(2);o.Q6J("colspan",e.cols)("rowspan",e.rows),o.xp6(5),o.Q6J("icon",e.icon),o.xp6(2),o.Oqu(e.title),o.xp6(2),o.Q6J("ngIf",e.link),o.xp6(4),o.hij("Go To ",e.goTo,""),o.xp6(1),o.Q6J("ngIf","fee"===e.id),o.xp6(1),o.Q6J("ngIf","capacity"===e.id),o.xp6(1),o.s9C("fxFlex","node"===e.id||"balance"===e.id?70:"fee"===e.id||"status"===e.id?78:90),o.Q6J("ngClass",o.VKq(17,Bn,"node"===e.id&&(null==n.apisCallStatus?null:n.apisCallStatus.FetchInfo.status)===n.apiCallStatusEnum.ERROR||"balance"===e.id&&((null==n.apisCallStatus?null:n.apisCallStatus.FetchAllChannels.status)===n.apiCallStatusEnum.ERROR||n.apisCallStatus.FetchBalanceBlockchain.status===n.apiCallStatusEnum.ERROR)||"capacity"===e.id&&(null==n.apisCallStatus?null:n.apisCallStatus.FetchAllChannels.status)===n.apiCallStatusEnum.ERROR||"fee"===e.id&&(null==n.apisCallStatus?null:n.apisCallStatus.FetchFees.status)===n.apiCallStatusEnum.ERROR||"status"===e.id&&((null==n.apisCallStatus?null:n.apisCallStatus.FetchAllChannels.status)===n.apiCallStatusEnum.ERROR||(null==n.apisCallStatus?null:n.apisCallStatus.FetchPendingChannels.status)===n.apiCallStatusEnum.ERROR))),o.xp6(1),o.Q6J("ngIf","node"===e.id&&(null==n.apisCallStatus?null:n.apisCallStatus.FetchInfo.status)===n.apiCallStatusEnum.INITIATED||"balance"===e.id&&((null==n.apisCallStatus?null:n.apisCallStatus.FetchAllChannels.status)===n.apiCallStatusEnum.INITIATED||n.apisCallStatus.FetchBalanceBlockchain.status===n.apiCallStatusEnum.INITIATED)||"capacity"===e.id&&(null==n.apisCallStatus?null:n.apisCallStatus.FetchAllChannels.status)===n.apiCallStatusEnum.INITIATED||"fee"===e.id&&(null==n.apisCallStatus?null:n.apisCallStatus.FetchFees.status)===n.apiCallStatusEnum.INITIATED||"status"===e.id&&((null==n.apisCallStatus?null:n.apisCallStatus.FetchAllChannels.status)===n.apiCallStatusEnum.INITIATED||(null==n.apisCallStatus?null:n.apisCallStatus.FetchPendingChannels.status)===n.apiCallStatusEnum.INITIATED)),o.xp6(1),o.Q6J("ngSwitch",e.id),o.xp6(1),o.Q6J("ngSwitchCase","node"),o.xp6(1),o.Q6J("ngSwitchCase","balance"),o.xp6(1),o.Q6J("ngSwitchCase","capacity"),o.xp6(1),o.Q6J("ngSwitchCase","fee"),o.xp6(1),o.Q6J("ngSwitchCase","status")}}function Hn(e,t){if(1&e&&(o.TgZ(0,"div",2),o.TgZ(1,"div",3),o._UZ(2,"fa-icon",4),o.TgZ(3,"span",5),o._uU(4),o.qZA(),o.qZA(),o.TgZ(5,"mat-grid-list",6),o.YNc(6,Gn,25,19,"mat-grid-tile",7),o.qZA(),o.qZA()),2&e){const e=o.oxw();o.xp6(2),o.Q6J("icon",(null==e.apisCallStatus?null:e.apisCallStatus.FetchInfo.status)===e.apiCallStatusEnum.ERROR?e.faFrown:e.faSmile),o.xp6(2),o.Oqu((null==e.apisCallStatus?null:e.apisCallStatus.FetchInfo.status)===e.apiCallStatusEnum.COMPLETED?"Welcome "+e.information.alias+"! Your node is up and running.":(null==e.apisCallStatus?null:e.apisCallStatus.FetchInfo.status)===e.apiCallStatusEnum.INITIATED?"Wait! Getting your node information...":"Error! Please check the server connection."),o.xp6(1),o.Q6J("rowHeight",e.operatorCardHeight),o.xp6(1),o.Q6J("ngForOf",e.operatorCards)}}function zn(e,t){if(1&e&&(o.TgZ(0,"button",26),o.TgZ(1,"mat-icon"),o._uU(2,"more_vert"),o.qZA(),o.qZA()),2&e){o.oxw();const e=o.MAs(9);o.Q6J("matMenuTriggerFor",e)}}function Vn(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"mat-card-header"),o.TgZ(1,"mat-card-title",10),o.TgZ(2,"div"),o._UZ(3,"fa-icon",11),o.TgZ(4,"span"),o._uU(5),o.qZA(),o.qZA(),o.TgZ(6,"div"),o.YNc(7,zn,3,1,"button",12),o.TgZ(8,"mat-menu",13,42),o.TgZ(10,"button",15),o.NdJ("click",function(){o.CHM(e);const t=o.oxw().$implicit;return o.oxw(2).onNavigateTo(t.link)}),o._uU(11),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA()}if(2&e){const e=o.oxw().$implicit;o.xp6(3),o.Q6J("icon",e.icon),o.xp6(2),o.Oqu(e.title),o.xp6(2),o.Q6J("ngIf",e.link),o.xp6(4),o.hij("Go To ",e.goTo,"")}}function Wn(e,t){1&e&&o._UZ(0,"mat-progress-bar",27)}function Xn(e,t){if(1&e&&o._UZ(0,"rtl-node-info",43),2&e){const e=o.oxw(3);o.Q6J("information",e.information)}}function $n(e,t){if(1&e&&o._UZ(0,"rtl-balances-info",29),2&e){const e=o.oxw(3);o.Q6J("balances",e.balances)("errorMessage",e.errorMessages[3]+" "+e.errorMessages[2])}}function jn(e,t){if(1&e&&o._UZ(0,"rtl-channel-liquidity-info",44),2&e){const e=o.oxw(3);o.Q6J("direction","In")("totalLiquidity",e.totalInboundLiquidity)("allChannels",e.allInboundChannels)("errorMessage",e.errorMessages[3])}}function Kn(e,t){if(1&e&&o._UZ(0,"rtl-channel-liquidity-info",44),2&e){const e=o.oxw(3);o.Q6J("direction","Out")("totalLiquidity",e.totalOutboundLiquidity)("allChannels",e.allOutboundChannels)("errorMessage",e.errorMessages[3])}}function ea(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"button",26),o.TgZ(1,"mat-icon"),o._uU(2,"more_vert"),o.qZA(),o.qZA(),o.TgZ(3,"mat-menu",13,52),o.TgZ(5,"button",15),o.NdJ("click",function(){o.CHM(e);const t=o.oxw(2).$implicit;return o.oxw(2).onNavigateTo(t.link)}),o._uU(6),o.qZA(),o.TgZ(7,"button",15),o.NdJ("click",function(){return o.CHM(e),o.oxw(4).onNavigateTo("/lnd/reports/transactions")}),o._uU(8,"Transactions Summary"),o.qZA(),o.qZA()}if(2&e){const e=o.MAs(4),t=o.oxw(2).$implicit;o.Q6J("matMenuTriggerFor",e),o.xp6(6),o.hij("Go To ",t.goTo,"")}}function ta(e,t){1&e&&(o.TgZ(0,"span",45),o.TgZ(1,"mat-tab-group",46),o.TgZ(2,"mat-tab",47),o._UZ(3,"rtl-lightning-invoices",48),o.qZA(),o.TgZ(4,"mat-tab",49),o._UZ(5,"rtl-lightning-payments",48),o.qZA(),o.TgZ(6,"mat-tab",50),o.YNc(7,ea,9,2,"ng-template",51),o.qZA(),o.qZA(),o.qZA()),2&e&&(o.xp6(3),o.Q6J("calledFrom","home"),o.xp6(2),o.Q6J("calledFrom","home"),o.xp6(1),o.Q6J("disabled",!0))}function na(e,t){1&e&&(o.TgZ(0,"h3"),o._uU(1,"Error! Unable to find information!"),o.qZA())}const aa=function(e){return{"p-0":e}};function ia(e,t){if(1&e&&(o.TgZ(0,"mat-grid-tile",8),o.TgZ(1,"mat-card",35),o.YNc(2,Vn,12,4,"mat-card-header",36),o.TgZ(3,"mat-card-content",37),o.YNc(4,Wn,1,0,"mat-progress-bar",18),o.TgZ(5,"div",38),o.YNc(6,Xn,1,1,"rtl-node-info",39),o.YNc(7,$n,1,2,"rtl-balances-info",21),o.YNc(8,jn,1,4,"rtl-channel-liquidity-info",40),o.YNc(9,Kn,1,4,"rtl-channel-liquidity-info",40),o.YNc(10,ta,8,3,"span",41),o.YNc(11,na,2,0,"h3",25),o.qZA(),o.qZA(),o.qZA(),o.qZA()),2&e){const e=t.$implicit,n=o.oxw(2);o.Q6J("colspan",e.cols)("rowspan",e.rows),o.xp6(1),o.Q6J("ngClass",o.VKq(13,aa,"transactions"===e.id)),o.xp6(1),o.Q6J("ngIf","transactions"!==e.id),o.xp6(1),o.s9C("fxFlex","transactions"===e.id?100:"balance"===e.id?70:90),o.Q6J("ngClass",o.VKq(15,Bn,"node"===e.id&&(null==n.apisCallStatus?null:n.apisCallStatus.FetchInfo.status)===n.apiCallStatusEnum.ERROR||"balance"===e.id&&((null==n.apisCallStatus?null:n.apisCallStatus.FetchAllChannels.status)===n.apiCallStatusEnum.ERROR||n.apisCallStatus.FetchBalanceBlockchain.status===n.apiCallStatusEnum.ERROR)||("inboundLiq"===e.id||"outboundLiq"===e.id)&&(null==n.apisCallStatus?null:n.apisCallStatus.FetchAllChannels.status)===n.apiCallStatusEnum.ERROR)),o.xp6(1),o.Q6J("ngIf","node"===e.id&&(null==n.apisCallStatus?null:n.apisCallStatus.FetchInfo.status)===n.apiCallStatusEnum.INITIATED||"balance"===e.id&&((null==n.apisCallStatus?null:n.apisCallStatus.FetchAllChannels.status)===n.apiCallStatusEnum.INITIATED||n.apisCallStatus.FetchBalanceBlockchain.status===n.apiCallStatusEnum.INITIATED)||("inboundLiq"===e.id||"outboundLiq"===e.id)&&(null==n.apisCallStatus?null:n.apisCallStatus.FetchAllChannels.status)===n.apiCallStatusEnum.INITIATED),o.xp6(1),o.Q6J("ngSwitch",e.id),o.xp6(1),o.Q6J("ngSwitchCase","node"),o.xp6(1),o.Q6J("ngSwitchCase","balance"),o.xp6(1),o.Q6J("ngSwitchCase","inboundLiq"),o.xp6(1),o.Q6J("ngSwitchCase","outboundLiq"),o.xp6(1),o.Q6J("ngSwitchCase","transactions")}}function sa(e,t){if(1&e&&(o.TgZ(0,"div",33),o._UZ(1,"fa-icon",4),o.TgZ(2,"span",5),o._uU(3),o.qZA(),o.qZA(),o.TgZ(4,"mat-grid-list",34),o.YNc(5,ia,12,17,"mat-grid-tile",7),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Q6J("icon",e.faSmile),o.xp6(2),o.hij("Welcome ",e.information.alias,"! Your node is up and running."),o.xp6(1),o.Q6J("rowHeight",e.merchantCardHeight),o.xp6(1),o.Q6J("ngForOf",e.merchantCards)}}let oa=(()=>{class e{constructor(e,t,n,a,i){switch(this.logger=e,this.store=t,this.actions=n,this.commonService=a,this.router=i,this.faSmile=m.I3,this.faFrown=m.Kf,this.faAngleDoubleDown=g.Sbq,this.faAngleDoubleUp=g.Vfw,this.faChartPie=g.OS1,this.faBolt=g.BDt,this.faServer=g.xf3,this.faNetworkWired=g.kXW,this.flgChildInfoUpdated=!1,this.userPersonaEnum=f.ol,this.activeChannels=0,this.inactiveChannels=0,this.channelBalances={localBalance:0,remoteBalance:0,balancedness:0},this.selNode={},this.information={},this.balances={onchain:-1,lightning:-1,total:0},this.allChannels=[],this.channelsStatus={},this.allChannelsCapacity=[],this.allInboundChannels=[],this.allOutboundChannels=[],this.totalInboundLiquidity=0,this.totalOutboundLiquidity=0,this.operatorCards=[],this.merchantCards=[],this.screenSize="",this.operatorCardHeight="330px",this.merchantCardHeight="65px",this.sortField="Balance Score",this.screenSizeEnum=f.cu,this.errorMessages=["","","","",""],this.apisCallStatus=null,this.apiCallStatusEnum=f.Bn,this.unSubs=[new p.x,new p.x,new p.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize){case f.cu.XS:this.operatorCards=[{id:"node",icon:this.faServer,title:"Node Information",cols:10,rows:1},{id:"balance",goTo:"On-Chain",link:"/lnd/onchain",icon:this.faChartPie,title:"Balances",cols:10,rows:1},{id:"fee",goTo:"Routing",link:"/lnd/routing",icon:this.faBolt,title:"Routing Fee",cols:10,rows:1},{id:"status",goTo:"Channels",link:"/lnd/connections",icon:this.faNetworkWired,title:"Channels",cols:10,rows:1},{id:"capacity",goTo:"Channels",link:"/lnd/connections",icon:this.faNetworkWired,title:"Channels Capacity",cols:10,rows:2}],this.merchantCards=[{id:"balance",goTo:"On-Chain",link:"/lnd/onchain",icon:this.faChartPie,title:"Balances",cols:6,rows:4},{id:"transactions",goTo:"Transactions",link:"/lnd/transactions",title:"",cols:6,rows:6},{id:"inboundLiq",goTo:"Channels",link:"/lnd/connections",icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:6,rows:8},{id:"outboundLiq",goTo:"Channels",link:"/lnd/connections",icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:6,rows:8}];break;case f.cu.SM:case f.cu.MD:this.operatorCards=[{id:"node",icon:this.faServer,title:"Node Information",cols:5,rows:1},{id:"balance",goTo:"On-Chain",link:"/lnd/onchain",icon:this.faChartPie,title:"Balances",cols:5,rows:1},{id:"fee",goTo:"Routing",link:"/lnd/routing",icon:this.faBolt,title:"Routing Fee",cols:5,rows:1},{id:"status",goTo:"Channels",link:"/lnd/connections",icon:this.faNetworkWired,title:"Channels",cols:5,rows:1},{id:"capacity",goTo:"Channels",link:"/lnd/connections",icon:this.faNetworkWired,title:"Channels Capacity",cols:10,rows:2}],this.merchantCards=[{id:"balance",goTo:"On-Chain",link:"/lnd/onchain",icon:this.faChartPie,title:"Balances",cols:3,rows:4},{id:"transactions",goTo:"Transactions",link:"/lnd/transactions",title:"",cols:3,rows:4},{id:"inboundLiq",goTo:"Channels",link:"/lnd/connections",icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:3,rows:8},{id:"outboundLiq",goTo:"Channels",link:"/lnd/connections",icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:3,rows:8}];break;default:this.operatorCards=[{id:"node",icon:this.faServer,title:"Node Information",cols:3,rows:1},{id:"balance",goTo:"On-Chain",link:"/lnd/onchain",icon:this.faChartPie,title:"Balances",cols:3,rows:1},{id:"capacity",goTo:"Channels",link:"/lnd/connections",icon:this.faNetworkWired,title:"Channels Capacity",cols:4,rows:2},{id:"fee",goTo:"Routing",link:"/lnd/routing",icon:this.faBolt,title:"Routing Fee",cols:3,rows:1},{id:"status",goTo:"Channels",link:"/lnd/connections",icon:this.faNetworkWired,title:"Channels",cols:3,rows:1}],this.merchantCards=[{id:"balance",goTo:"On-Chain",link:"/lnd/onchain",icon:this.faChartPie,title:"Balances",cols:2,rows:5},{id:"inboundLiq",goTo:"Channels",link:"/lnd/connections",icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:2,rows:10},{id:"outboundLiq",goTo:"Channels",link:"/lnd/connections",icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:2,rows:10},{id:"transactions",goTo:"Transactions",link:"/lnd/transactions",title:"",cols:2,rows:5}]}}ngOnInit(){this.store.select("lnd").pipe((0,d.R)(this.unSubs[1])).subscribe(e=>{this.errorMessages=["","","","",""],this.apisCallStatus=e.apisCallStatus,e.apisCallStatus.FetchInfo.status===f.Bn.ERROR&&(this.errorMessages[0]="object"==typeof this.apisCallStatus.FetchInfo.message?JSON.stringify(this.apisCallStatus.FetchInfo.message):this.apisCallStatus.FetchInfo.message),e.apisCallStatus.FetchFees.status===f.Bn.ERROR&&(this.errorMessages[1]="object"==typeof this.apisCallStatus.FetchFees.message?JSON.stringify(this.apisCallStatus.FetchFees.message):this.apisCallStatus.FetchFees.message),e.apisCallStatus.FetchBalanceBlockchain.status===f.Bn.ERROR&&(this.errorMessages[2]="object"==typeof this.apisCallStatus.FetchBalanceBlockchain.message?JSON.stringify(this.apisCallStatus.FetchBalanceBlockchain.message):this.apisCallStatus.FetchBalanceBlockchain.message),e.apisCallStatus.FetchAllChannels.status===f.Bn.ERROR&&(this.errorMessages[3]="object"==typeof this.apisCallStatus.FetchAllChannels.message?JSON.stringify(this.apisCallStatus.FetchAllChannels.message):this.apisCallStatus.FetchAllChannels.message),e.apisCallStatus.FetchPendingChannels.status===f.Bn.ERROR&&(this.errorMessages[4]="object"==typeof this.apisCallStatus.FetchPendingChannels.message?JSON.stringify(this.apisCallStatus.FetchPendingChannels.message):this.apisCallStatus.FetchPendingChannels.message),this.selNode=e.nodeSettings,this.information=e.information,this.fees=e.fees,this.balances.onchain=+e.blockchainBalance.total_balance>=0?+e.blockchainBalance.total_balance:0;const t=e.totalLocalBalance?+e.totalLocalBalance:0,n=e.totalRemoteBalance?+e.totalRemoteBalance:0;this.channelBalances={localBalance:t,remoteBalance:n,balancedness:+(1-Math.abs((t-n)/(t+n))).toFixed(3)},this.balances.lightning=e.totalLocalBalance,this.balances.total=this.balances.lightning+this.balances.onchain,this.balances=Object.assign({},this.balances),this.activeChannels=e.numberOfActiveChannels,this.inactiveChannels=e.numberOfInactiveChannels,this.channelsStatus={active:{channels:e.numberOfActiveChannels,capacity:e.totalCapacityActive},inactive:{channels:e.numberOfInactiveChannels,capacity:e.totalCapacityInactive},pending:{channels:e.numberOfPendingChannels.open.num_channels,capacity:e.numberOfPendingChannels.open.limbo_balance},closing:{channels:e.numberOfPendingChannels.closing.num_channels+e.numberOfPendingChannels.force_closing.num_channels+e.numberOfPendingChannels.waiting_close.num_channels,capacity:e.numberOfPendingChannels.total_limbo_balance}},this.totalInboundLiquidity=0,this.totalOutboundLiquidity=0,this.allChannels=e.allChannels.filter(e=>!0===e.active),this.allChannelsCapacity=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(this.allChannels,"balancedness"))),this.allInboundChannels=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(this.allChannels.filter(e=>e.remote_balance>0),"remote_balance"))),this.allOutboundChannels=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(this.allChannels.filter(e=>e.local_balance>0),"local_balance"))),this.allChannels.forEach(e=>{this.totalInboundLiquidity=this.totalInboundLiquidity+ +e.remote_balance,this.totalOutboundLiquidity=this.totalOutboundLiquidity+ +e.local_balance}),this.flgChildInfoUpdated=this.balances.lightning>=0&&this.balances.onchain>=0&&this.fees.month_fee_sum>=0,this.logger.info(e)}),this.actions.pipe((0,d.R)(this.unSubs[2]),(0,h.h)(e=>e.type===x.VS||e.type===x.HS)).subscribe(e=>{e.type===x.VS&&(this.flgChildInfoUpdated=!1),e.type===x.HS&&(this.flgChildInfoUpdated=!0)})}onNavigateTo(e){this.router.navigateByUrl(e)}onsortChannelsBy(){"Balance Score"===this.sortField?(this.sortField="Capacity",this.allChannelsCapacity=this.allChannels.sort((e,t)=>{const n=+e.local_balance+ +e.remote_balance,a=+t.local_balance+ +t.remote_balance;return n>a?-1:n{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(Z.mQ),o.Y36(y.yh),o.Y36(A.eX),o.Y36(C.v),o.Y36(i.F0))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-home"]],decls:3,vars:2,consts:[["fxLayout","column",4,"ngIf","ngIfElse"],["merchantDashboard",""],["fxLayout","column"],["fxLayout","row","fxLayoutAlign","start start",1,"page-title-container","mb-0"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["cols","10",3,"rowHeight"],[3,"colspan","rowspan",4,"ngFor","ngForOf"],[3,"colspan","rowspan"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",1,"h-100","dashboard-card","mt-4"],["fxLayoutAlign","space-between center"],[1,"mr-1",3,"icon"],["mat-icon-button","","class","more-button","aria-label","Toggle menu",3,"matMenuTriggerFor",4,"ngIf"],["xPosition","before",1,"dashboard-vert-menu"],["menuOperator","matMenu"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"click",4,"ngIf"],["fxLayout","column",3,"fxFlex","ngClass"],["mode","indeterminate",4,"ngIf"],["fxLayout","column","fxFlex","100",3,"ngSwitch"],["fxFlex","100",3,"information","showColorFieldSeparately",4,"ngSwitchCase"],["fxFlex","100",3,"balances","errorMessage",4,"ngSwitchCase"],["fxFlex","100",3,"sortBy","channelBalances","allChannels","errorMessage",4,"ngSwitchCase"],["fxFlex","100",3,"fees","errorMessage",4,"ngSwitchCase"],["fxFlex","100",3,"channelsStatus","errorMessage",4,"ngSwitchCase"],[4,"ngSwitchDefault"],["mat-icon-button","","aria-label","Toggle menu",1,"more-button",3,"matMenuTriggerFor"],["mode","indeterminate"],["fxFlex","100",3,"information","showColorFieldSeparately"],["fxFlex","100",3,"balances","errorMessage"],["fxFlex","100",3,"sortBy","channelBalances","allChannels","errorMessage"],["fxFlex","100",3,"fees","errorMessage"],["fxFlex","100",3,"channelsStatus","errorMessage"],["fxLayout","row","fxLayoutAlign","start end",1,"page-title-container","mb-0"],["cols","6",3,"rowHeight"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",1,"h-100","dashboard-card","mt-4",3,"ngClass"],[4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",3,"fxFlex","ngClass"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",3,"ngSwitch"],["fxFlex","100",3,"information",4,"ngSwitchCase"],["fxFlex","100",3,"direction","totalLiquidity","allChannels","errorMessage",4,"ngSwitchCase"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start",3,"perfectScrollbar",4,"ngSwitchCase"],["menuMerchant","matMenu"],["fxFlex","100",3,"information"],["fxFlex","100",3,"direction","totalLiquidity","allChannels","errorMessage"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start",3,"perfectScrollbar"],["fxLayout","column","fxFlex","100",1,"w-100","dashboard-tabs-group"],["label","Receive"],[3,"calledFrom"],["label","Pay"],[3,"disabled"],["mat-tab-label",""],["menuTransactions","matMenu"]],template:function(e,t){if(1&e&&(o.YNc(0,Hn,7,4,"div",0),o.YNc(1,sa,6,4,"ng-template",null,1,o.W1O)),2&e){const e=o.MAs(2);o.Q6J("ngIf",t.selNode.userPersona===t.userPersonaEnum.OPERATOR)("ngIfElse",e)}},directives:[a.O5,l.xw,l.Wh,T.BN,b.Il,a.sg,b.DX,w.a8,l.yH,w.dk,w.n5,_.VK,_.OP,w.dn,a.mk,v.oO,a.RF,a.n9,a.ED,q.lW,_.p6,S.Hw,r.pW,U,J,H,W,j,me,E.$V,ge.SP,ge.uX,ut,Un,ge.uD],styles:[""]}),e})();var la=n(882),ra=n(1050);function ca(e,t){if(1&e&&(o.TgZ(0,"span",10),o._uU(1,"Channels"),o.qZA()),2&e){const e=o.oxw();o.s9C("matBadge",e.activeChannels)}}function ua(e,t){if(1&e&&(o.TgZ(0,"span",10),o._uU(1,"Peers"),o.qZA()),2&e){const e=o.oxw();o.s9C("matBadge",e.activePeers)}}let pa=(()=>{class e{constructor(e,t,n){this.store=e,this.logger=t,this.router=n,this.selNode={},this.activePeers=0,this.activeChannels=0,this.faUsers=g.FVb,this.faChartPie=g.OS1,this.balances=[{title:"Total Balance",dataValue:0},{title:"Confirmed",dataValue:0},{title:"Unconfirmed",dataValue:0}],this.links=[{link:"channels",name:"Channels"},{link:"peers",name:"Peers"}],this.activeLink=0,this.unSubs=[new p.x,new p.x,new p.x,new p.x]}ngOnInit(){this.activeLink=this.links.findIndex(e=>e.link===this.router.url.substring(this.router.url.lastIndexOf("/")+1)),this.router.events.pipe((0,d.R)(this.unSubs[0]),(0,h.h)(e=>e instanceof i.Av)).subscribe(e=>{this.activeLink=this.links.findIndex(t=>t.link===e.urlAfterRedirects.substring(e.urlAfterRedirects.lastIndexOf("/")+1))}),this.store.select("lnd").pipe((0,d.R)(this.unSubs[1])).subscribe(e=>{this.selNode=e.nodeSettings,this.activePeers=e.peers&&e.peers.length?e.peers.length:0,this.activeChannels=e.numberOfActiveChannels,this.balances=[{title:"Total Balance",dataValue:e.blockchainBalance.total_balance||0},{title:"Confirmed",dataValue:e.blockchainBalance.confirmed_balance},{title:"Unconfirmed",dataValue:e.blockchainBalance.unconfirmed_balance}],this.logger.info(e)})}onSelectedTabChange(e){this.router.navigateByUrl("/lnd/connections/"+this.links[e.index].link)}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(y.yh),o.Y36(Z.mQ),o.Y36(i.F0))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-connections"]],decls:22,vars:4,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x","mb-4"],["fxLayout","column"],[3,"values"],["fxLayout","column",1,"padding-gap-x"],[3,"selectedIndex","selectedIndexChange","selectedTabChange"],["mat-tab-label",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large"],["matBadgeOverlap","false",1,"tab-badge",3,"matBadge"]],template:function(e,t){1&e&&(o.TgZ(0,"div",0),o._UZ(1,"fa-icon",1),o.TgZ(2,"span",2),o._uU(3,"On-chain Balance"),o.qZA(),o.qZA(),o.TgZ(4,"div",3),o.TgZ(5,"mat-card"),o.TgZ(6,"mat-card-content",4),o._UZ(7,"rtl-currency-unit-converter",5),o.qZA(),o.qZA(),o.qZA(),o.TgZ(8,"div",0),o._UZ(9,"fa-icon",1),o.TgZ(10,"span",2),o._uU(11,"Connections"),o.qZA(),o.qZA(),o.TgZ(12,"div",6),o.TgZ(13,"mat-card"),o.TgZ(14,"mat-card-content",4),o.TgZ(15,"mat-tab-group",7),o.NdJ("selectedIndexChange",function(e){return t.activeLink=e})("selectedTabChange",function(e){return t.onSelectedTabChange(e)}),o.TgZ(16,"mat-tab"),o.YNc(17,ca,2,1,"ng-template",8),o.qZA(),o.TgZ(18,"mat-tab"),o.YNc(19,ua,2,1,"ng-template",8),o.qZA(),o.qZA(),o.TgZ(20,"div",9),o._UZ(21,"router-outlet"),o.qZA(),o.qZA(),o.qZA(),o.qZA()),2&e&&(o.xp6(1),o.Q6J("icon",t.faChartPie),o.xp6(6),o.Q6J("values",t.balances),o.xp6(2),o.Q6J("icon",t.faUsers),o.xp6(6),o.Q6J("selectedIndex",t.activeLink))},directives:[l.xw,l.Wh,T.BN,w.a8,w.dn,la.D,ge.SP,ge.uX,ge.uD,l.yH,i.lC,ra.k],styles:[""]}),e})();var da=n(1258),ha=n(1681),ma=n(3474);const ga=["form"];function fa(e,t){if(1&e&&(o.TgZ(0,"mat-option",37),o._uU(1),o.qZA()),2&e){const e=t.$implicit;o.Q6J("value",e),o.xp6(1),o.Oqu(e.alias?e.alias:e.pub_key?e.pub_key:"")}}function xa(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Peer alias is required."),o.qZA())}function Za(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Peer not found in the list."),o.qZA())}function ya(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"mat-form-field",1),o._UZ(1,"input",34),o.TgZ(2,"mat-autocomplete",35,36),o.NdJ("optionSelected",function(){return o.CHM(e),o.oxw().onSelectedPeerChanged()}),o.YNc(4,fa,2,2,"mat-option",24),o.ALo(5,"async"),o.qZA(),o.YNc(6,xa,2,0,"mat-error",17),o.YNc(7,Za,2,0,"mat-error",17),o.qZA()}if(2&e){const e=o.MAs(3),t=o.oxw();o.xp6(1),o.Q6J("formControl",t.selectedPeer)("matAutocomplete",e),o.xp6(1),o.Q6J("displayWith",t.displayFn),o.xp6(2),o.Q6J("ngForOf",o.lcZ(5,6,t.filteredPeers)),o.xp6(2),o.Q6J("ngIf",null==t.selectedPeer.errors?null:t.selectedPeer.errors.required),o.xp6(1),o.Q6J("ngIf",null==t.selectedPeer.errors?null:t.selectedPeer.errors.notfound)}}function Aa(e,t){1&e&&o.GkF(0)}function Ca(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Amount is required."),o.qZA())}function Ta(e,t){if(1&e&&(o.TgZ(0,"mat-error"),o._uU(1),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.hij("Amount must be less than or equal to ",e.totalBalance,".")}}function ba(e,t){if(1&e&&(o.TgZ(0,"mat-option",37),o._uU(1),o.qZA()),2&e){const e=t.$implicit;o.Q6J("value",e.id),o.xp6(1),o.hij(" ",e.name," ")}}function wa(e,t){if(1&e&&(o.TgZ(0,"mat-error"),o._uU(1),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.hij("","1"===e.selTransType?"Target Confirmation Blocks":"Fee"," is required.")}}function _a(e,t){if(1&e&&(o.TgZ(0,"span"),o._uU(1),o.qZA()),2&e){const e=o.oxw(2);o.xp6(1),o.Oqu(e.channelConnectionError)}}function va(e,t){if(1&e&&(o.TgZ(0,"div",38),o._UZ(1,"fa-icon",39),o.YNc(2,_a,2,1,"span",17),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Q6J("icon",e.faExclamationTriangle),o.xp6(1),o.Q6J("ngIf",""!==e.channelConnectionError)}}function qa(e,t){if(1&e&&(o.TgZ(0,"mat-expansion-panel",41),o.TgZ(1,"mat-expansion-panel-header"),o.TgZ(2,"mat-panel-title"),o.TgZ(3,"span"),o._uU(4,"Peer: \xa0"),o.qZA(),o.TgZ(5,"strong",42),o._uU(6),o.qZA(),o.qZA(),o.qZA(),o.TgZ(7,"div",9),o.TgZ(8,"div",0),o.TgZ(9,"div",1),o.TgZ(10,"h4",43),o._uU(11,"Pubkey"),o.qZA(),o.TgZ(12,"span",44),o._uU(13),o.qZA(),o.qZA(),o.qZA(),o._UZ(14,"mat-divider",45),o.TgZ(15,"div",0),o.TgZ(16,"div",46),o.TgZ(17,"h4",43),o._uU(18,"Address"),o.qZA(),o.TgZ(19,"span",47),o._uU(20),o.qZA(),o.qZA(),o.TgZ(21,"div",46),o.TgZ(22,"h4",43),o._uU(23,"Inbound"),o.qZA(),o.TgZ(24,"span",47),o._uU(25),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA()),2&e){const e=o.oxw(2);o.xp6(6),o.Oqu((null==e.peer?null:e.peer.alias)||(null==e.peer?null:e.peer.address)),o.xp6(7),o.Oqu(e.peer.pub_key),o.xp6(7),o.Oqu(null==e.peer?null:e.peer.address),o.xp6(5),o.Oqu(null!=e.peer&&e.peer.inbound?"True":"False")}}function Sa(e,t){if(1&e&&o.YNc(0,qa,26,4,"mat-expansion-panel",40),2&e){const e=o.oxw();o.Q6J("ngIf",e.peer)}}let Fa=(()=>{class e{constructor(e,t,n,a){this.dialogRef=e,this.data=t,this.store=n,this.actions=a,this.selectedPeer=new Ae.NI,this.amount=new Ae.NI,this.faExclamationTriangle=g.eHv,this.channelConnectionError="",this.advancedTitle="Advanced Options",this.totalBalance=0,this.selectedPubkey="",this.isPrivate=!1,this.selTransType="0",this.spendUnconfirmed=!1,this.transTypeValue="",this.transTypes=f.Dr,this.unSubs=[new p.x,new p.x]}ngOnInit(){this.information=this.data.message.information,this.totalBalance=this.data.message.balance,this.alertTitle=this.data.alertTitle,this.peer=this.data.message.peer?this.data.message.peer:null,this.peers=this.data.message.peers&&this.data.message.peers.length?this.data.message.peers:[],this.actions.pipe((0,d.R)(this.unSubs[0]),(0,h.h)(e=>e.type===x.JE||e.type===x.Mx)).subscribe(e=>{e.type===x.JE&&e.payload.status===f.Bn.ERROR&&"SaveNewChannel"===e.payload.action&&(this.channelConnectionError=e.payload.message),e.type===x.Mx&&this.dialogRef.close()});let e="",t="";this.sortedPeers=this.peers.sort((n,a)=>(e=n.alias?n.alias.toLowerCase():n.pub_key?n.pub_key.toLowerCase():"",t=a.alias?a.alias.toLowerCase():n.pub_key.toLowerCase(),et?1:0)),this.filteredPeers=this.selectedPeer.valueChanges.pipe((0,d.R)(this.unSubs[1]),(0,da.O)(""),(0,ha.U)(e=>"string"==typeof e?e:e.alias?e.alias:e.pub_key),(0,ha.U)(e=>e?this.filterPeers(e):this.sortedPeers.slice()))}filterPeers(e){return this.sortedPeers.filter(t=>0===t.alias.toLowerCase().indexOf(e?e.toLowerCase():""))}displayFn(e){return e&&e.alias?e.alias:e&&e.pub_key?e.pub_key:""}onSelectedPeerChanged(){if(this.channelConnectionError="",this.selectedPubkey=this.selectedPeer.value&&this.selectedPeer.value.pub_key?this.selectedPeer.value.pub_key:null,"string"==typeof this.selectedPeer.value){const e=this.peers.filter(e=>e.alias.length===this.selectedPeer.value.length&&0===e.alias.toLowerCase().indexOf(this.selectedPeer.value?this.selectedPeer.value.toLowerCase():""));1===e.length&&e[0].pub_key&&(this.selectedPubkey=e[0].pub_key)}this.selectedPeer.setErrors(this.selectedPeer.value&&!this.selectedPubkey?{notfound:!0}:null)}onClose(){this.dialogRef.close(!1)}resetData(){this.selectedPeer.setValue(""),this.fundingAmount=null,this.isPrivate=!1,this.spendUnconfirmed=!1,this.selTransType="0",this.transTypeValue="",this.channelConnectionError="",this.advancedTitle="Advanced Options",this.form.resetForm()}onOpenChannel(){if(!this.peer&&!this.selectedPubkey||!this.fundingAmount||this.totalBalance-this.fundingAmount<0||("1"===this.selTransType||"2"===this.selTransType)&&!this.transTypeValue)return!0;this.store.dispatch(new x.nb({selectedPeerPubkey:this.peer&&this.peer.pub_key?this.peer.pub_key:this.selectedPubkey,fundingAmount:this.fundingAmount,private:this.isPrivate,transType:this.selTransType,transTypeValue:this.transTypeValue,spendUnconfirmed:this.spendUnconfirmed}))}onAdvancedPanelToggle(e){this.advancedTitle=e?"Advanced Options | "+("1"===this.selTransType?"Target Confirmation Blocks: ":"2"===this.selTransType?"Fee (Sats/vByte): ":"Default")+("1"===this.selTransType||"2"===this.selTransType?this.transTypeValue:"")+" | Spend Unconfirmed Output: "+(this.spendUnconfirmed?"Yes":"No"):"Advanced Options"}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(ye.so),o.Y36(ye.WI),o.Y36(y.yh),o.Y36(A.eX))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-open-channel"]],viewQuery:function(e,t){if(1&e&&o.Gf(ga,7),2&e){let e;o.iGM(e=o.CRH())&&(t.form=e.first)}},decls:55,vars:25,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column",3,"submit","reset"],["form","ngForm"],["fxLayout","column"],["fxFlex","100",4,"ngIf"],[4,"ngTemplateOutlet"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxFlex","60","fxLayoutAlign","start end"],["matInput","","placeholder","Amount","type","number","tabindex","1","required","","name","amnt",3,"ngModel","step","min","max","ngModelChange"],["amt","ngModel"],["matSuffix",""],[4,"ngIf"],["fxFlex","35","fxLayoutAlign","start center"],["tabindex","2","color","primary","name","isPrivate",3,"ngModel","ngModelChange"],["expanded","false",1,"flat-expansion-panel","mt-2",3,"closed","opened"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxFlex","49"],["tabindex","3",3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","type","number","tabindex","4","name","transTpValue",3,"ngModel","required","disabled","placeholder","step","min","ngModelChange"],["transTypeVal","ngModel"],["fxFlex","50","fxLayoutAlign","start center"],["tabindex","6","color","primary","name","spendUnconfirmed",3,"ngModel","ngModelChange"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","7","type","reset",1,"mr-1"],["autoFocus","","mat-flat-button","","color","primary","type","submit","tabindex","9"],["peerDetailsExpansionBlock",""],["type","text","placeholder","Peer Alias","aria-label","Peers","matInput","","tabindex","1","required","",3,"formControl","matAutocomplete"],[3,"displayWith","optionSelected"],["auto","matAutocomplete"],[3,"value"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["class","flat-expansion-panel my-1","expanded","false",4,"ngIf"],["expanded","false",1,"flat-expansion-panel","my-1"],[1,"font-weight-900"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"w-100","my-1"],["fxFlex","50"],[1,"overflow-wrap","foreground-secondary-text"]],template:function(e,t){if(1&e&&(o.TgZ(0,"div",0),o.TgZ(1,"div",1),o.TgZ(2,"mat-card-header",2),o.TgZ(3,"div",3),o.TgZ(4,"span",4),o._uU(5),o.qZA(),o.qZA(),o.TgZ(6,"button",5),o.NdJ("click",function(){return t.onClose()}),o._uU(7,"X"),o.qZA(),o.qZA(),o.TgZ(8,"mat-card-content",6),o.TgZ(9,"form",7,8),o.NdJ("submit",function(){return t.onOpenChannel()})("reset",function(){return t.resetData()}),o.TgZ(11,"div",9),o.YNc(12,ya,8,8,"mat-form-field",10),o.qZA(),o.YNc(13,Aa,1,0,"ng-container",11),o.TgZ(14,"div",9),o.TgZ(15,"div",12),o.TgZ(16,"mat-form-field",13),o.TgZ(17,"input",14,15),o.NdJ("ngModelChange",function(e){return t.fundingAmount=e}),o.qZA(),o.TgZ(19,"mat-hint"),o._uU(20),o.ALo(21,"number"),o.qZA(),o.TgZ(22,"span",16),o._uU(23," Sats "),o.qZA(),o.YNc(24,Ca,2,0,"mat-error",17),o.YNc(25,Ta,2,1,"mat-error",17),o.qZA(),o.TgZ(26,"div",18),o.TgZ(27,"mat-slide-toggle",19),o.NdJ("ngModelChange",function(e){return t.isPrivate=e}),o._uU(28,"Private Channel"),o.qZA(),o.qZA(),o.qZA(),o.TgZ(29,"mat-expansion-panel",20),o.NdJ("closed",function(){return t.onAdvancedPanelToggle(!0)})("opened",function(){return t.onAdvancedPanelToggle(!1)}),o.TgZ(30,"mat-expansion-panel-header"),o.TgZ(31,"mat-panel-title"),o.TgZ(32,"span"),o._uU(33),o.qZA(),o.qZA(),o.qZA(),o.TgZ(34,"div",21),o.TgZ(35,"div",12),o.TgZ(36,"mat-form-field",22),o.TgZ(37,"mat-select",23),o.NdJ("valueChange",function(e){return t.selTransType=e}),o.YNc(38,ba,2,2,"mat-option",24),o.qZA(),o.qZA(),o.TgZ(39,"mat-form-field",22),o.TgZ(40,"input",25,26),o.NdJ("ngModelChange",function(e){return t.transTypeValue=e}),o.qZA(),o.YNc(42,wa,2,1,"mat-error",17),o.qZA(),o.qZA(),o.TgZ(43,"div",12),o.TgZ(44,"div",27),o.TgZ(45,"mat-slide-toggle",28),o.NdJ("ngModelChange",function(e){return t.spendUnconfirmed=e}),o._uU(46,"Spend Unconfirmed Output"),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.YNc(47,va,3,2,"div",29),o.TgZ(48,"div",30),o.TgZ(49,"button",31),o._uU(50,"Clear Fields"),o.qZA(),o.TgZ(51,"button",32),o._uU(52,"Open Channel"),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.YNc(53,Sa,1,1,"ng-template",null,33,o.W1O)),2&e){const e=o.MAs(54);o.xp6(5),o.Oqu(t.alertTitle),o.xp6(7),o.Q6J("ngIf",!t.peer&&t.peers&&t.peers.length>0),o.xp6(1),o.Q6J("ngTemplateOutlet",e),o.xp6(4),o.Q6J("ngModel",t.fundingAmount)("step",1e3)("min",1)("max",t.totalBalance),o.xp6(3),o.hij("(Remaining Bal: ",o.lcZ(21,23,t.totalBalance-(t.fundingAmount?t.fundingAmount:0)),")"),o.xp6(4),o.Q6J("ngIf",null==t.amount.errors?null:t.amount.errors.required),o.xp6(1),o.Q6J("ngIf",null==t.amount.errors?null:t.amount.errors.max),o.xp6(2),o.Q6J("ngModel",t.isPrivate),o.xp6(6),o.Oqu(t.advancedTitle),o.xp6(4),o.Q6J("value",t.selTransType),o.xp6(1),o.Q6J("ngForOf",t.transTypes),o.xp6(2),o.Q6J("ngModel",t.transTypeValue)("required","0"!==t.selTransType)("disabled","0"===t.selTransType)("placeholder","0"===t.selTransType?"Default":"1"===t.selTransType?"Target Confirmation Blocks":"Fee (Sats/vByte)")("step",1)("min",0),o.xp6(2),o.Q6J("ngIf","0"!==t.selTransType&&!t.transTypeValue),o.xp6(3),o.Q6J("ngModel",t.spendUnconfirmed),o.xp6(2),o.Q6J("ngIf",""!==t.channelConnectionError)}},directives:[l.xw,l.yH,w.dk,l.Wh,q.lW,w.dn,Ae._Y,Ae.JL,Ae.F,a.O5,a.tP,D.KE,Ce.Nt,Ae.wV,Ae.qQ,Ae.Fd,Ae.Fj,be.q,ma.F,Ae.Q7,Ae.JJ,Ae.On,D.bx,D.R9,_e.Rr,ht.ib,ht.yz,ht.yK,we.gD,a.sg,Te.h,mt.ZL,Ae.oH,mt.XC,ve.ey,D.TO,T.BN,M.d],pipes:[a.JJ,a.Ov],styles:[".open-inputs-box[_ngcontent-%COMP%]{padding:1.2rem 2.4rem .8rem!important}"]}),e})();var La=n(7753);const ka=["peersForm"],Na=["stepper"];function Ua(e,t){if(1&e&&o._uU(0),2&e){const e=o.oxw();o.Oqu(e.peerFormLabel)}}function Ia(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Address is required."),o.qZA())}function Oa(e,t){if(1&e&&(o.TgZ(0,"div",37),o._UZ(1,"fa-icon",38),o.TgZ(2,"span"),o._uU(3),o.qZA(),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Q6J("icon",e.faExclamationTriangle),o.xp6(2),o.Oqu(e.peerConnectionError)}}function Ja(e,t){if(1&e&&o._uU(0),2&e){const e=o.oxw();o.Oqu(e.channelFormLabel)}}function Da(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Amount is required."),o.qZA())}function Ra(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Amount must be a positive number."),o.qZA())}function Ma(e,t){if(1&e&&(o.TgZ(0,"mat-error"),o._uU(1),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.hij("Amount must be less than or equal to ",e.totalBalance,".")}}function Ea(e,t){if(1&e&&(o.TgZ(0,"mat-option",39),o._uU(1),o.qZA()),2&e){const e=t.$implicit;o.Q6J("value",e.id),o.xp6(1),o.hij(" ",e.name," ")}}function Qa(e,t){if(1&e&&(o.TgZ(0,"mat-error"),o._uU(1),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.hij("","0"===e.channelFormGroup.controls.selTransType.value?"Default":"1"===e.channelFormGroup.controls.selTransType.value?"Target Confirmation Blocks":"Fee (Sats/vByte)"," is required.")}}function Ya(e,t){if(1&e&&(o.TgZ(0,"div",37),o._UZ(1,"fa-icon",38),o.TgZ(2,"span"),o._uU(3),o.qZA(),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Q6J("icon",e.faExclamationTriangle),o.xp6(2),o.Oqu(e.channelConnectionError)}}let Pa=(()=>{class e{constructor(e,t,n,a,i,s,o){this.dialogRef=e,this.data=t,this.store=n,this.lndEffects=a,this.formBuilder=i,this.actions=s,this.logger=o,this.faExclamationTriangle=g.eHv,this.peerAddress="",this.totalBalance=0,this.transTypes=f.Dr,this.flgChannelOpened=!1,this.channelOpenStatus=null,this.newlyAddedPeer=null,this.flgEditable=!0,this.peerConnectionError="",this.channelConnectionError="",this.peerFormLabel="Peer Details",this.channelFormLabel="Open Channel (Optional)",this.unSubs=[new p.x,new p.x]}ngOnInit(){this.totalBalance=this.data.message.balance,this.peerFormGroup=this.formBuilder.group({hiddenAddress:["",[Ae.kI.required]],peerAddress:["",[Ae.kI.required]]}),this.channelFormGroup=this.formBuilder.group({fundingAmount:["",[Ae.kI.required,Ae.kI.min(1),Ae.kI.max(this.totalBalance)]],isPrivate:[!1],selTransType:[f.Dr[0].id],transTypeValue:[{value:"",disabled:!0}],spendUnconfirmed:[!1],hiddenAmount:["",[Ae.kI.required]]}),this.statusFormGroup=this.formBuilder.group({}),this.channelFormGroup.controls.selTransType.valueChanges.pipe((0,d.R)(this.unSubs[0])).subscribe(e=>{e===f.Dr[0].id?(this.channelFormGroup.controls.transTypeValue.setValue(""),this.channelFormGroup.controls.transTypeValue.disable(),this.channelFormGroup.controls.transTypeValue.setValidators(null),this.channelFormGroup.controls.transTypeValue.setErrors(null)):(this.channelFormGroup.controls.transTypeValue.setValue(""),this.channelFormGroup.controls.transTypeValue.enable(),this.channelFormGroup.controls.transTypeValue.setValidators([Ae.kI.required]))}),this.actions.pipe((0,d.R)(this.unSubs[1]),(0,h.h)(e=>e.type===x.X_||e.type===x.W8||e.type===x.JE)).subscribe(e=>{e.type===x.X_&&(this.logger.info(e.payload),this.flgEditable=!1,this.newlyAddedPeer=e.payload.peer,this.peerFormGroup.controls.hiddenAddress.setValue(this.peerFormGroup.controls.peerAddress.value),this.stepper.next()),e.type===x.W8&&this.dialogRef.close(),e.type===x.JE&&e.payload.status===f.Bn.ERROR&&("SaveNewPeer"===e.payload.action||"FetchGraphNode"===e.payload.action?this.peerConnectionError=e.payload.message:"SaveNewChannel"===e.payload.action&&(this.channelConnectionError=e.payload.message))})}onConnectPeer(){if(!this.peerFormGroup.controls.peerAddress.value)return!0;this.peerConnectionError="";const e=this.peerFormGroup.controls.peerAddress.value.search("@");let t="",n="";e>-1?(t=this.peerFormGroup.controls.peerAddress.value.substring(0,e),n=this.peerFormGroup.controls.peerAddress.value.substring(e+1),this.connectPeerWithParams(t,n)):(this.store.dispatch(new x.RR({pubkey:this.peerFormGroup.controls.peerAddress.value})),this.lndEffects.setGraphNode.pipe((0,pt.q)(1)).subscribe(e=>{n=e.node.addresses&&e.node.addresses.length&&e.node.addresses.length>0&&e.node.addresses[0].addr?e.node.addresses[0].addr:"",this.connectPeerWithParams(this.peerFormGroup.controls.peerAddress.value,n)}))}connectPeerWithParams(e,t){this.store.dispatch(new x.rF({pubkey:e,host:t,perm:!1}))}onOpenChannel(){if(!this.channelFormGroup.controls.fundingAmount.value||this.totalBalance-this.channelFormGroup.controls.fundingAmount.value<0||"1"===this.channelFormGroup.controls.selTransType.value&&!this.channelFormGroup.controls.transTypeValue.value||"2"===this.channelFormGroup.controls.selTransType.value&&!this.channelFormGroup.controls.transTypeValue.value)return!0;this.channelConnectionError="",this.store.dispatch(new x.nb({selectedPeerPubkey:this.newlyAddedPeer.pub_key,fundingAmount:this.channelFormGroup.controls.fundingAmount.value,private:this.channelFormGroup.controls.isPrivate.value,transType:this.channelFormGroup.controls.selTransType.value,transTypeValue:this.channelFormGroup.controls.transTypeValue.value,spendUnconfirmed:this.channelFormGroup.controls.spendUnconfirmed.value}))}onClose(){this.dialogRef.close(!1)}stepSelectionChanged(e){switch(e.selectedIndex){case 0:this.peerFormLabel="Peer Details",this.channelFormLabel="Open Channel (Optional)";break;case 1:this.peerFormLabel=this.peerFormGroup.controls.peerAddress.value?"Peer Added: "+this.newlyAddedPeer.alias:"Peer Details",this.channelFormLabel="Open Channel (Optional)";break;case 2:this.peerFormLabel=this.peerFormGroup.controls.peerAddress.value?"Peer Added: "+this.newlyAddedPeer.alias:"Peer Details",this.channelFormLabel=this.channelFormGroup.controls.fundingAmount.value?"Opening Channel for "+this.channelFormGroup.controls.fundingAmount.value+" Sats":"Open Channel (Optional)";break;default:this.peerFormLabel="Peer Details",this.channelFormLabel="Open Channel (Optional)"}e.selectedIndex{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(ye.so),o.Y36(ye.WI),o.Y36(y.yh),o.Y36(Ft.l),o.Y36(Ae.qu),o.Y36(A.eX),o.Y36(Z.mQ))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-connect-peer"]],viewQuery:function(e,t){if(1&e&&(o.Gf(ka,5),o.Gf(Na,5)),2&e){let e;o.iGM(e=o.CRH())&&(t.form=e.first),o.iGM(e=o.CRH())&&(t.stepper=e.first)}},decls:56,vars:24,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],[3,"linear","selectionChange"],["stepper",""],[3,"stepControl","editable"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"my-1",3,"formGroup"],["matStepLabel",""],["autoFocus","","matInput","","placeholder","Lightning Address (pubkey OR pubkey@ip:port)","formControlName","peerAddress","tabindex","1","required",""],[4,"ngIf"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","3","type","button",3,"click"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"mb-1",3,"formGroup"],["matStepLabel","","disabled","true"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxFlex","60","fxLayoutAlign","start end"],["matInput","","formControlName","fundingAmount","placeholder","Amount","type","number","tabindex","1","required","",3,"step"],["matSuffix",""],["fxFlex","35","fxLayoutAlign","start center"],["tabindex","2","color","primary","formControlName","isPrivate","name","isPrivate"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center",1,"mt-1"],["fxFlex","30","fxLayoutAlign","start end"],["tabindex","3","formControlName","selTransType","placeholder","Transaction Type"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","30"],["matInput","","formControlName","transTypeValue","type","number","name","transTypeValue","tabindex","4",3,"placeholder","step","required"],["tabindex","6","color","primary","formControlName","spendUnconfirmed","name","spendUnconfirmed"],["mat-stroked-button","","color","primary","tabindex","8","type","button",3,"click"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","tabindex","12","type","button","default","",3,"mat-dialog-close"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],[3,"value"]],template:function(e,t){1&e&&(o.TgZ(0,"div",0),o.TgZ(1,"div",1),o.TgZ(2,"mat-card-header",2),o.TgZ(3,"div",3),o.TgZ(4,"span",4),o._uU(5,"Connect to a new peer"),o.qZA(),o.qZA(),o.TgZ(6,"button",5),o.NdJ("click",function(){return t.onClose()}),o._uU(7,"X"),o.qZA(),o.qZA(),o.TgZ(8,"mat-card-content",6),o.TgZ(9,"div",7),o.TgZ(10,"mat-vertical-stepper",8,9),o.NdJ("selectionChange",function(e){return t.stepSelectionChanged(e)}),o.TgZ(12,"mat-step",10),o.TgZ(13,"form",11),o.YNc(14,Ua,1,1,"ng-template",12),o.TgZ(15,"mat-form-field",1),o._UZ(16,"input",13),o.YNc(17,Ia,2,0,"mat-error",14),o.qZA(),o.YNc(18,Oa,4,2,"div",15),o.TgZ(19,"div",16),o.TgZ(20,"button",17),o.NdJ("click",function(){return t.onConnectPeer()}),o._uU(21),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.TgZ(22,"mat-step",10),o.TgZ(23,"form",18),o.YNc(24,Ja,1,1,"ng-template",19),o.TgZ(25,"div",20),o.TgZ(26,"div",21),o.TgZ(27,"mat-form-field",22),o._UZ(28,"input",23),o.TgZ(29,"mat-hint"),o._uU(30),o.qZA(),o.TgZ(31,"span",24),o._uU(32," Sats "),o.qZA(),o.YNc(33,Da,2,0,"mat-error",14),o.YNc(34,Ra,2,0,"mat-error",14),o.YNc(35,Ma,2,1,"mat-error",14),o.qZA(),o.TgZ(36,"div",25),o.TgZ(37,"mat-slide-toggle",26),o._uU(38,"Private Channel"),o.qZA(),o.qZA(),o.qZA(),o.TgZ(39,"div",27),o.TgZ(40,"mat-form-field",28),o.TgZ(41,"mat-select",29),o.YNc(42,Ea,2,2,"mat-option",30),o.qZA(),o.qZA(),o.TgZ(43,"mat-form-field",31),o._UZ(44,"input",32),o.YNc(45,Qa,2,1,"mat-error",14),o.qZA(),o.TgZ(46,"div",25),o.TgZ(47,"mat-slide-toggle",33),o._uU(48,"Spend Unconfirmed Output"),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.YNc(49,Ya,4,2,"div",15),o.TgZ(50,"div",16),o.TgZ(51,"button",34),o.NdJ("click",function(){return t.onOpenChannel()}),o._uU(52),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.TgZ(53,"div",35),o.TgZ(54,"button",36),o._uU(55),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA()),2&e&&(o.xp6(10),o.Q6J("linear",!0),o.xp6(2),o.Q6J("stepControl",t.peerFormGroup)("editable",t.flgEditable),o.xp6(1),o.Q6J("formGroup",t.peerFormGroup),o.xp6(4),o.Q6J("ngIf",null==t.peerFormGroup.controls.peerAddress.errors?null:t.peerFormGroup.controls.peerAddress.errors.required),o.xp6(1),o.Q6J("ngIf",""!==t.peerConnectionError),o.xp6(3),o.Oqu(""!==t.peerConnectionError?"Retry":"Add Peer"),o.xp6(1),o.Q6J("stepControl",t.channelFormGroup)("editable",t.flgEditable),o.xp6(1),o.Q6J("formGroup",t.channelFormGroup),o.xp6(5),o.Q6J("step",1e3),o.xp6(2),o.hij("Remaining Bal: ",t.totalBalance-(t.channelFormGroup.controls.fundingAmount.value?t.channelFormGroup.controls.fundingAmount.value:0),""),o.xp6(3),o.Q6J("ngIf",null==t.channelFormGroup.controls.fundingAmount.errors?null:t.channelFormGroup.controls.fundingAmount.errors.required),o.xp6(1),o.Q6J("ngIf",null==t.channelFormGroup.controls.fundingAmount.errors?null:t.channelFormGroup.controls.fundingAmount.errors.min),o.xp6(1),o.Q6J("ngIf",null==t.channelFormGroup.controls.fundingAmount.errors?null:t.channelFormGroup.controls.fundingAmount.errors.max),o.xp6(7),o.Q6J("ngForOf",t.transTypes),o.xp6(2),o.Q6J("placeholder","0"===t.channelFormGroup.controls.selTransType.value?"Default":"1"===t.channelFormGroup.controls.selTransType.value?"Target Confirmation Blocks":"Fee (Sats/vByte)")("step",1)("required","0"!==t.channelFormGroup.controls.selTransType.value),o.xp6(1),o.Q6J("ngIf",null==t.channelFormGroup.controls.transTypeValue.errors?null:t.channelFormGroup.controls.transTypeValue.errors.required),o.xp6(4),o.Q6J("ngIf",""!==t.channelConnectionError),o.xp6(3),o.Oqu(""!==t.channelConnectionError?"Retry":"Open Channel"),o.xp6(2),o.Q6J("mat-dialog-close",!1),o.xp6(1),o.Oqu(null!=t.newlyAddedPeer&&t.newlyAddedPeer.pub_key?"Do It Later":"Close"))},directives:[l.xw,l.yH,w.dk,l.Wh,q.lW,w.dn,La.Vq,La.C0,Ae._Y,Ae.JL,Ae.sg,La.VY,D.KE,Ce.Nt,Ae.Fj,Te.h,Ae.JJ,Ae.u,Ae.Q7,a.O5,Ae.wV,D.bx,D.R9,_e.Rr,we.gD,a.sg,ye.ZT,D.TO,T.BN,ve.ey],styles:[""]}),e})();function Ba(e,t){1&e&&o._UZ(0,"mat-progress-bar",32)}function Ga(e,t){1&e&&(o.TgZ(0,"th",33),o._uU(1," Alias "),o.qZA())}const Ha=function(e){return{"max-width":e}};function za(e,t){if(1&e&&(o.TgZ(0,"td",34),o._uU(1),o.qZA()),2&e){const e=t.$implicit,n=o.oxw();o.Q6J("ngStyle",o.VKq(2,Ha,n.screenSize===n.screenSizeEnum.XS?"12rem":"25rem")),o.xp6(1),o.hij(" ",null==e?null:e.alias," ")}}function Va(e,t){1&e&&(o.TgZ(0,"th",33),o._uU(1," Public Key "),o.qZA())}function Wa(e,t){if(1&e&&(o.TgZ(0,"td",34),o._uU(1),o.qZA()),2&e){const e=t.$implicit,n=o.oxw();o.Q6J("ngStyle",o.VKq(2,Ha,n.screenSize===n.screenSizeEnum.XS?"5rem":"35rem")),o.xp6(1),o.hij(" ",null==e?null:e.pub_key," ")}}function Xa(e,t){1&e&&(o.TgZ(0,"th",35),o._uU(1," Sats Sent "),o.qZA())}function $a(e,t){if(1&e&&(o.TgZ(0,"td",36),o.TgZ(1,"span",37),o._uU(2),o.ALo(3,"number"),o.qZA(),o.qZA()),2&e){const e=t.$implicit;o.xp6(2),o.hij(" ",o.lcZ(3,1,null==e?null:e.sat_sent)," ")}}function ja(e,t){1&e&&(o.TgZ(0,"th",35),o._uU(1," Sats Received "),o.qZA())}function Ka(e,t){if(1&e&&(o.TgZ(0,"td",36),o.TgZ(1,"span",37),o._uU(2),o.ALo(3,"number"),o.qZA(),o.qZA()),2&e){const e=t.$implicit;o.xp6(2),o.hij(" ",o.lcZ(3,1,null==e?null:e.sat_recv)," ")}}function ei(e,t){1&e&&(o.TgZ(0,"th",35),o._uU(1," Ping "),o.qZA())}function ti(e,t){if(1&e&&(o.TgZ(0,"td",36),o.TgZ(1,"span",37),o._uU(2),o.ALo(3,"number"),o.qZA(),o.qZA()),2&e){const e=t.$implicit;o.xp6(2),o.hij(" ",o.lcZ(3,1,null==e?null:e.ping_time)," ")}}function ni(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"th",38),o.TgZ(1,"div",39),o.TgZ(2,"mat-select",40),o._UZ(3,"mat-select-trigger"),o.TgZ(4,"mat-option",41),o.NdJ("click",function(){return o.CHM(e),o.oxw().onDownloadCSV()}),o._uU(5,"Download CSV"),o.qZA(),o.qZA(),o.qZA(),o.qZA()}}function ai(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"td",42),o.TgZ(1,"div",39),o.TgZ(2,"mat-select",40),o._UZ(3,"mat-select-trigger"),o.TgZ(4,"mat-option",41),o.NdJ("click",function(t){const n=o.CHM(e).$implicit;return o.oxw().onPeerClick(n,t)}),o._uU(5,"View Info"),o.qZA(),o.TgZ(6,"mat-option",41),o.NdJ("click",function(){const t=o.CHM(e).$implicit;return o.oxw().onOpenChannel(t)}),o._uU(7,"Open Channel"),o.qZA(),o.TgZ(8,"mat-option",41),o.NdJ("click",function(){const t=o.CHM(e).$implicit;return o.oxw().onPeerDetach(t)}),o._uU(9,"Disconnect"),o.qZA(),o.qZA(),o.qZA(),o.qZA()}}function ii(e,t){1&e&&(o.TgZ(0,"p"),o._uU(1,"No connected peer."),o.qZA())}function si(e,t){1&e&&(o.TgZ(0,"p"),o._uU(1,"Getting peers..."),o.qZA())}function oi(e,t){if(1&e&&(o.TgZ(0,"p"),o._uU(1),o.qZA()),2&e){const e=o.oxw(2);o.xp6(1),o.Oqu(e.errorMessage)}}function li(e,t){if(1&e&&(o.TgZ(0,"td",43),o.YNc(1,ii,2,0,"p",44),o.YNc(2,si,2,0,"p",44),o.YNc(3,oi,2,1,"p",44),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Q6J("ngIf",(!(null!=e.peers&&e.peers.data)||(null==e.peers.data?null:e.peers.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.FetchPeers.status)===e.apiCallStatusEnum.COMPLETED),o.xp6(1),o.Q6J("ngIf",(!(null!=e.peers&&e.peers.data)||(null==e.peers.data?null:e.peers.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.FetchPeers.status)===e.apiCallStatusEnum.INITIATED),o.xp6(1),o.Q6J("ngIf",(!(null!=e.peers&&e.peers.data)||(null==e.peers.data?null:e.peers.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.FetchPeers.status)===e.apiCallStatusEnum.ERROR)}}const ri=function(e){return{"display-none":e}};function ci(e,t){if(1&e&&o._UZ(0,"tr",45),2&e){const e=o.oxw();o.Q6J("ngClass",o.VKq(1,ri,(null==e.peers?null:e.peers.data)&&(null==e.peers||null==e.peers.data?null:e.peers.data.length)>0))}}function ui(e,t){1&e&&o._UZ(0,"tr",46)}function pi(e,t){1&e&&o._UZ(0,"tr",47)}const di=function(e){return{"overflow-auto error-border":e,"overflow-auto":!0}},hi=function(){return["no_peer"]};let mi=(()=>{class e{constructor(e,t,n,a){this.logger=e,this.store=t,this.rtlEffects=n,this.commonService=a,this.availableBalance=0,this.faUsers=g.FVb,this.displayedColumns=[],this.peersData=[],this.information={},this.flgSticky=!1,this.pageSize=f.IV,this.pageSizeOptions=f.TJ,this.screenSize="",this.screenSizeEnum=f.cu,this.errorMessage="",this.apisCallStatus=null,this.apiCallStatusEnum=f.Bn,this.unSubs=[new p.x,new p.x,new p.x,new p.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===f.cu.XS?(this.flgSticky=!1,this.displayedColumns=["alias","actions"]):this.screenSize===f.cu.SM?(this.flgSticky=!1,this.displayedColumns=["alias","sat_sent","sat_recv","actions"]):this.screenSize===f.cu.MD?(this.flgSticky=!1,this.displayedColumns=["alias","sat_sent","sat_recv","ping_time","actions"]):(this.flgSticky=!0,this.displayedColumns=["alias","pub_key","sat_sent","sat_recv","ping_time","actions"])}ngOnInit(){this.store.select("lnd").pipe((0,d.R)(this.unSubs[0])).subscribe(e=>{this.errorMessage="",this.apisCallStatus=e.apisCallStatus,e.apisCallStatus.FetchPeers.status===f.Bn.ERROR&&(this.errorMessage="object"==typeof this.apisCallStatus.FetchPeers.message?JSON.stringify(this.apisCallStatus.FetchPeers.message):this.apisCallStatus.FetchPeers.message),this.information=e.information,this.availableBalance=e.blockchainBalance.total_balance||0,this.peersData=e.peers,this.peersData.length>0&&this.loadPeersTable(this.peersData),this.logger.info(e)})}ngAfterViewInit(){this.peersData.length>0&&this.loadPeersTable(this.peersData)}onPeerClick(e,t){this.store.dispatch(new ee.wu({data:{type:f.n_.INFORMATION,alertTitle:"Peer Information",showQRName:"Public Key",showQRField:e.pub_key,message:[[{key:"pub_key",value:e.pub_key,title:"Public Key",width:100}],[{key:"address",value:e.address,title:"Address",width:100}],[{key:"alias",value:e.alias,title:"Alias",width:40},{key:"inbound",value:e.inbound?"True":"False",title:"Inbound",width:30},{key:"ping_time",value:e.ping_time,title:"Ping Time",width:30,type:f.Gi.NUMBER}],[{key:"sat_sent",value:e.sat_sent,title:"Satoshis Sent",width:50,type:f.Gi.NUMBER},{key:"sat_recv",value:e.sat_recv,title:"Satoshis Received",width:50,type:f.Gi.NUMBER}],[{key:"bytes_sent",value:e.bytes_sent,title:"Bytes Sent",width:50,type:f.Gi.NUMBER},{key:"bytes_recv",value:e.bytes_recv,title:"Bytes Received",width:50,type:f.Gi.NUMBER}]]}}))}onConnectPeer(){this.store.dispatch(new ee.wu({data:{message:{peer:null,information:this.information,balance:this.availableBalance},component:Pa}}))}onOpenChannel(e){this.store.dispatch(new ee.wu({data:{alertTitle:"Open Channel",message:{peer:e,information:this.information,balance:this.availableBalance},component:Fa}}))}onPeerDetach(e){this.store.dispatch(new ee.b_({data:{type:f.n_.CONFIRM,alertTitle:"Disconnect Peer",titleMessage:"Disconnect peer: "+(e.alias?e.alias:e.pub_key),noBtnText:"Cancel",yesBtnText:"Disconnect"}})),this.rtlEffects.closeConfirm.pipe((0,d.R)(this.unSubs[3])).subscribe(t=>{t&&this.store.dispatch(new x.yw({pubkey:e.pub_key}))})}applyFilter(e){this.peers.filter=e.value.trim().toLowerCase()}loadPeersTable(e){this.peers=new Ze.by(e?[...e]:[]),this.peers.sort=this.sort,this.peers.sortingDataAccessor=(e,t)=>e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():e[t]?+e[t]:null,this.peers.filterPredicate=(e,t)=>JSON.stringify(e).toLowerCase().includes(t),this.peers.paginator=this.paginator}onDownloadCSV(){this.peers.data&&this.peers.data.length>0&&this.commonService.downloadFile(this.peers.data,"Peers")}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(Z.mQ),o.Y36(y.yh),o.Y36(St.V),o.Y36(C.v))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-peers"]],viewQuery:function(e,t){if(1&e&&(o.Gf(xe.YE,5),o.Gf(fe.NW,5)),2&e){let e;o.iGM(e=o.CRH())&&(t.sort=e.first),o.iGM(e=o.CRH())&&(t.paginator=e.first)}},features:[o._Bn([{provide:fe.ye,useValue:(0,f.pt)("Peers")}])],decls:40,vars:14,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x"],["fxLayout","row"],["mat-flat-button","","color","primary","type","submit","tabindex","1",3,"click"],["fxLayout","column"],["fxLayout","column","fxLayoutAlign","start stretch","fxLayout.gt-sm","row wrap",1,"page-sub-title-container","mt-1"],["fxFlex","70","fxLayoutAlign","start start","fxLayoutAlign.gt-sm","start center"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30","fxLayoutAlign","start end"],["matInput","","placeholder","Filter",3,"keyup"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","alias"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","pub_key"],["matColumnDef","sat_sent"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","sat_recv"],["matColumnDef","ping_time"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center","class","px-3",4,"matCellDef"],["matColumnDef","no_peer"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"ngStyle"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["mat-cell",""],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"px-3"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,t){1&e&&(o.TgZ(0,"div",0),o.TgZ(1,"div",1),o.TgZ(2,"button",2),o.NdJ("click",function(){return t.onConnectPeer()}),o._uU(3,"Add Peer"),o.qZA(),o.qZA(),o.TgZ(4,"div",3),o.TgZ(5,"div",4),o.TgZ(6,"div",5),o._UZ(7,"fa-icon",6),o.TgZ(8,"span",7),o._uU(9,"Connected Peers"),o.qZA(),o.qZA(),o.TgZ(10,"mat-form-field",8),o.TgZ(11,"input",9),o.NdJ("keyup",function(e){return t.applyFilter(e.target)}),o.qZA(),o.qZA(),o.qZA(),o.TgZ(12,"div",10),o.YNc(13,Ba,1,0,"mat-progress-bar",11),o.TgZ(14,"table",12,13),o.ynx(16,14),o.YNc(17,Ga,2,0,"th",15),o.YNc(18,za,2,4,"td",16),o.BQk(),o.ynx(19,17),o.YNc(20,Va,2,0,"th",15),o.YNc(21,Wa,2,4,"td",16),o.BQk(),o.ynx(22,18),o.YNc(23,Xa,2,0,"th",19),o.YNc(24,$a,4,3,"td",20),o.BQk(),o.ynx(25,21),o.YNc(26,ja,2,0,"th",19),o.YNc(27,Ka,4,3,"td",20),o.BQk(),o.ynx(28,22),o.YNc(29,ei,2,0,"th",19),o.YNc(30,ti,4,3,"td",20),o.BQk(),o.ynx(31,23),o.YNc(32,ni,6,0,"th",24),o.YNc(33,ai,10,0,"td",25),o.BQk(),o.ynx(34,26),o.YNc(35,li,4,3,"td",27),o.BQk(),o.YNc(36,ci,1,3,"tr",28),o.YNc(37,ui,1,0,"tr",29),o.YNc(38,pi,1,0,"tr",30),o.qZA(),o.qZA(),o._UZ(39,"mat-paginator",31),o.qZA(),o.qZA()),2&e&&(o.xp6(7),o.Q6J("icon",t.faUsers),o.xp6(6),o.Q6J("ngIf",(null==t.apisCallStatus?null:t.apisCallStatus.FetchPeers.status)===t.apiCallStatusEnum.INITIATED),o.xp6(1),o.Q6J("dataSource",t.peers)("ngClass",o.VKq(11,di,""!==t.errorMessage)),o.xp6(22),o.Q6J("matFooterRowDef",o.DdM(13,hi)),o.xp6(1),o.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),o.xp6(1),o.Q6J("matRowDefColumns",t.displayedColumns),o.xp6(1),o.Q6J("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS))},directives:[l.xw,l.yH,l.Wh,q.lW,T.BN,D.KE,Ce.Nt,E.$V,a.O5,Ze.BZ,xe.YE,a.mk,v.oO,Ze.w1,Ze.fO,Ze.Dz,Ze.mD,Ze.Ke,Ze.as,Ze.nj,fe.NW,r.pW,Ze.ge,xe.nU,Ze.ev,a.PC,v.Zl,we.gD,we.$L,ve.ey,Ze.yh,Ze.Q2,Ze.XQ,Ze.Gk],pipes:[a.JJ],styles:[".mat-column-alias[_ngcontent-%COMP%]{flex:1 1 25%}.mat-column-alias[_ngcontent-%COMP%], .mat-column-pub_key[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-pub_key[_ngcontent-%COMP%]{flex:1 1 35%;padding-left:2rem}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem;flex:1 1 10%}.mat-column-ping_time[_ngcontent-%COMP%], .mat-column-sat_recv[_ngcontent-%COMP%], .mat-column-sat_sent[_ngcontent-%COMP%]{flex:1 1 13%;width:13%}"]}),e})();function gi(e,t){if(1&e&&(o.TgZ(0,"span",7),o._uU(1,"Open"),o.qZA()),2&e){const e=o.oxw();o.s9C("matBadge",e.numOpenChannels)}}function fi(e,t){if(1&e&&(o.TgZ(0,"span",7),o._uU(1,"Pending"),o.qZA()),2&e){const e=o.oxw();o.s9C("matBadge",e.numPendingChannels)}}function xi(e,t){if(1&e&&(o.TgZ(0,"span",7),o._uU(1,"Closed"),o.qZA()),2&e){const e=o.oxw();o.s9C("matBadge",e.numClosedChannels)}}function Zi(e,t){if(1&e&&(o.TgZ(0,"span",7),o._uU(1,"Active HTLCs"),o.qZA()),2&e){const e=o.oxw();o.s9C("matBadge",e.numActiveHTLCs)}}let yi=(()=>{class e{constructor(e,t,n){this.logger=e,this.store=t,this.router=n,this.numOpenChannels=0,this.numPendingChannels=0,this.numClosedChannels=0,this.numActiveHTLCs=0,this.peers=[],this.information={},this.totalBalance=0,this.links=[{link:"open",name:"Open"},{link:"pending",name:"Pending"},{link:"closed",name:"Closed"},{link:"activehtlcs",name:"Active HTLCs"}],this.activeLink=0,this.unSubs=[new p.x,new p.x]}ngOnInit(){this.activeLink=this.links.findIndex(e=>e.link===this.router.url.substring(this.router.url.lastIndexOf("/")+1)),this.router.events.pipe((0,d.R)(this.unSubs[0]),(0,h.h)(e=>e instanceof i.Av)).subscribe(e=>{this.activeLink=this.links.findIndex(t=>t.link===e.urlAfterRedirects.substring(e.urlAfterRedirects.lastIndexOf("/")+1))}),this.store.select("lnd").pipe((0,d.R)(this.unSubs[1])).subscribe(e=>{this.numOpenChannels=e.allChannels&&e.allChannels.length?e.allChannels.length:0,this.numPendingChannels=e.numberOfPendingChannels.total_channels?e.numberOfPendingChannels.total_channels:0,this.numClosedChannels=e.closedChannels&&e.closedChannels.length?e.closedChannels.length:0,this.numActiveHTLCs=e.allChannels.reduce((e,t)=>e+(t.pending_htlcs&&t.pending_htlcs.length>0?t.pending_htlcs.length:0),0),this.information=e.information,this.totalBalance=+e.blockchainBalance.total_balance,this.peers=e.peers,this.peers.forEach(e=>{e.alias&&""!==e.alias||(e.alias=e.pub_key.substring(0,15)+"...")}),this.logger.info(e)})}onOpenChannel(){this.store.dispatch(new ee.wu({data:{alertTitle:"Open Channel",message:{peers:this.peers,information:this.information,balance:this.totalBalance},component:Fa}}))}onSelectedTabChange(e){this.router.navigateByUrl("/lnd/connections/channels/"+this.links[e.index].link)}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(Z.mQ),o.Y36(y.yh),o.Y36(i.F0))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-channels-tables"]],decls:16,vars:1,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x"],["fxLayout","row"],["mat-flat-button","","color","primary","type","submit","tabindex","1",3,"click"],["fxLayout","column","fxFlex","100",1,"my-2","bordered-box"],[3,"selectedIndex","selectedIndexChange","selectedTabChange"],["mat-tab-label",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large"],["matBadgeOverlap","false",1,"tab-badge",3,"matBadge"]],template:function(e,t){1&e&&(o.TgZ(0,"div",0),o.TgZ(1,"div",1),o.TgZ(2,"button",2),o.NdJ("click",function(){return t.onOpenChannel()}),o._uU(3,"Open Channel"),o.qZA(),o.qZA(),o.TgZ(4,"div",3),o.TgZ(5,"mat-tab-group",4),o.NdJ("selectedIndexChange",function(e){return t.activeLink=e})("selectedTabChange",function(e){return t.onSelectedTabChange(e)}),o.TgZ(6,"mat-tab"),o.YNc(7,gi,2,1,"ng-template",5),o.qZA(),o.TgZ(8,"mat-tab"),o.YNc(9,fi,2,1,"ng-template",5),o.qZA(),o.TgZ(10,"mat-tab"),o.YNc(11,xi,2,1,"ng-template",5),o.qZA(),o.TgZ(12,"mat-tab"),o.YNc(13,Zi,2,1,"ng-template",5),o.qZA(),o.qZA(),o.TgZ(14,"div",6),o._UZ(15,"router-outlet"),o.qZA(),o.qZA(),o.qZA()),2&e&&(o.xp6(5),o.Q6J("selectedIndex",t.activeLink))},directives:[l.xw,l.yH,l.Wh,q.lW,ge.SP,ge.uX,ge.uD,i.lC,ra.k],styles:[""]}),e})();var Ai=n(1403),Ci=n(2609);function Ti(e,t){if(1&e&&(o.TgZ(0,"div"),o.TgZ(1,"div",9),o.TgZ(2,"div",14),o.TgZ(3,"h4",11),o._uU(4,"Commit Fee"),o.qZA(),o.TgZ(5,"span",15),o._uU(6),o.ALo(7,"number"),o.qZA(),o.qZA(),o.TgZ(8,"div",14),o.TgZ(9,"h4",11),o._uU(10,"Commit Weight"),o.qZA(),o.TgZ(11,"span",15),o._uU(12),o.ALo(13,"number"),o.qZA(),o.qZA(),o.TgZ(14,"div",14),o.TgZ(15,"h4",11),o._uU(16,"Fee/KW"),o.qZA(),o.TgZ(17,"span",15),o._uU(18),o.ALo(19,"number"),o.qZA(),o.qZA(),o.TgZ(20,"div",14),o.TgZ(21,"h4",11),o._uU(22,"Static Remote Key"),o.qZA(),o.TgZ(23,"span",15),o._uU(24),o.qZA(),o.qZA(),o.qZA(),o._UZ(25,"mat-divider",13),o.TgZ(26,"div",9),o.TgZ(27,"div",14),o.TgZ(28,"h4",11),o._uU(29),o.qZA(),o.TgZ(30,"span",15),o._uU(31),o.ALo(32,"number"),o.qZA(),o.qZA(),o.TgZ(33,"div",14),o.TgZ(34,"h4",11),o._uU(35),o.qZA(),o.TgZ(36,"span",15),o._uU(37),o.ALo(38,"number"),o.qZA(),o.qZA(),o.TgZ(39,"div",14),o.TgZ(40,"h4",11),o._uU(41,"Unsettled Balance"),o.qZA(),o.TgZ(42,"span",15),o._uU(43),o.ALo(44,"number"),o.qZA(),o.qZA(),o.TgZ(45,"div",14),o.TgZ(46,"h4",11),o._uU(47,"CSV Delay"),o.qZA(),o.TgZ(48,"span",15),o._uU(49),o.ALo(50,"number"),o.qZA(),o.qZA(),o.qZA(),o._UZ(51,"mat-divider",13),o.TgZ(52,"div",9),o.TgZ(53,"div",14),o.TgZ(54,"h4",11),o._uU(55,"Local Reserve (Sats)"),o.qZA(),o.TgZ(56,"span",15),o._uU(57),o.ALo(58,"number"),o.qZA(),o.qZA(),o.TgZ(59,"div",14),o.TgZ(60,"h4",11),o._uU(61,"Remote Reserve (Sats)"),o.qZA(),o.TgZ(62,"span",15),o._uU(63),o.ALo(64,"number"),o.qZA(),o.qZA(),o.TgZ(65,"div",14),o.TgZ(66,"h4",11),o._uU(67,"Lifetime (Seconds)"),o.qZA(),o.TgZ(68,"span",15),o._uU(69),o.ALo(70,"number"),o.qZA(),o.qZA(),o.TgZ(71,"div",14),o.TgZ(72,"h4",11),o._uU(73,"Pending HTLCs"),o.qZA(),o.TgZ(74,"span",15),o._uU(75),o.ALo(76,"number"),o.qZA(),o.qZA(),o.qZA(),o._UZ(77,"mat-divider",13),o.qZA()),2&e){const e=o.oxw();o.xp6(6),o.Oqu(o.lcZ(7,17,e.channel.commit_fee)),o.xp6(6),o.Oqu(o.lcZ(13,19,e.channel.commit_weight)),o.xp6(6),o.Oqu(o.lcZ(19,21,e.channel.fee_per_kw)),o.xp6(6),o.Oqu(e.channel.static_remote_key?"Yes":"No"),o.xp6(1),o.Q6J("inset",!0),o.xp6(4),o.Oqu(e.screenSize===e.screenSizeEnum.XS?"Total Sats Sent":"Total Satoshis Sent"),o.xp6(2),o.Oqu(o.lcZ(32,23,e.channel.total_satoshis_sent)),o.xp6(4),o.Oqu(e.screenSize===e.screenSizeEnum.XS?"Total Sats Recv":"Total Satoshis Received"),o.xp6(2),o.Oqu(o.lcZ(38,25,e.channel.total_satoshis_received)),o.xp6(6),o.Oqu(o.lcZ(44,27,e.channel.unsettled_balance)),o.xp6(6),o.Oqu(o.lcZ(50,29,e.channel.csv_delay)),o.xp6(2),o.Q6J("inset",!0),o.xp6(6),o.Oqu(o.lcZ(58,31,e.channel.local_chan_reserve_sat)),o.xp6(6),o.Oqu(o.lcZ(64,33,e.channel.remote_chan_reserve_sat)),o.xp6(6),o.Oqu(o.lcZ(70,35,e.channel.lifetime)),o.xp6(6),o.Oqu(o.lcZ(76,37,null==e.channel||null==e.channel.pending_htlcs?null:e.channel.pending_htlcs.length)),o.xp6(2),o.Q6J("inset",!0)}}function bi(e,t){1&e&&(o.TgZ(0,"p"),o._uU(1,"Show Advanced"),o.qZA())}function wi(e,t){1&e&&(o.TgZ(0,"p"),o._uU(1,"Hide Advanced"),o.qZA())}function _i(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"button",23),o.NdJ("copied",function(t){return o.CHM(e),o.oxw().onCopyChanID(t)}),o._uU(1,"Copy Channel ID"),o.qZA()}if(2&e){const e=o.oxw();o.Q6J("payload",e.channel.chan_id)}}function vi(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"button",24),o.NdJ("click",function(){return o.CHM(e),o.oxw().onClose()}),o._uU(1,"OK"),o.qZA()}}const qi=function(e){return{"xs-scroll-y":e}};let Si=(()=>{class e{constructor(e,t,n,a,i){this.dialogRef=e,this.data=t,this.logger=n,this.commonService=a,this.snackBar=i,this.faReceipt=g.dLy,this.showAdvanced=!1,this.showCopy=!0,this.showCopyField=null,this.screenSize="",this.screenSizeEnum=f.cu}ngOnInit(){this.channel=this.data.channel,this.showCopy=this.data.showCopy,this.screenSize=this.commonService.getScreenSize()}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyChanID(e){this.snackBar.open("Channel ID "+e+" copied."),this.logger.info("Copied Text: "+e)}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(ye.so),o.Y36(ye.WI),o.Y36(Z.mQ),o.Y36(C.v),o.Y36(Ai.ux))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-channel-information"]],decls:94,vars:36,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large",3,"ngClass"],["fxLayout","column"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"my-1",3,"inset"],["fxFlex","25"],[1,"overflow-wrap","foreground-secondary-text"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center","fxFlex","100",1,"mt-1"],["mat-stroked-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["hideAdvancedText",""],["autoFocus","","mat-flat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["autoFocus","","mat-flat-button","","color","primary","tabindex","2","type","button",3,"click",4,"ngIf"],["autoFocus","","mat-flat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["autoFocus","","mat-flat-button","","color","primary","tabindex","2","type","button",3,"click"]],template:function(e,t){if(1&e&&(o.TgZ(0,"div",0),o.TgZ(1,"div",1),o.TgZ(2,"mat-card-header",2),o.TgZ(3,"div",3),o._UZ(4,"fa-icon",4),o.TgZ(5,"span",5),o._uU(6,"Channel Information"),o.qZA(),o.qZA(),o.TgZ(7,"button",6),o.NdJ("click",function(){return t.onClose()}),o._uU(8,"X"),o.qZA(),o.qZA(),o.TgZ(9,"mat-card-content",7),o.TgZ(10,"div",8),o.TgZ(11,"div",9),o.TgZ(12,"div",10),o.TgZ(13,"h4",11),o._uU(14,"Channel ID"),o.qZA(),o.TgZ(15,"span",12),o._uU(16),o.qZA(),o.qZA(),o.TgZ(17,"div",10),o.TgZ(18,"h4",11),o._uU(19,"Peer Alias"),o.qZA(),o.TgZ(20,"span",12),o._uU(21),o.qZA(),o.qZA(),o.qZA(),o._UZ(22,"mat-divider",13),o.TgZ(23,"div",9),o.TgZ(24,"div",1),o.TgZ(25,"h4",11),o._uU(26,"Channel Point"),o.qZA(),o.TgZ(27,"span",12),o._uU(28),o.qZA(),o.qZA(),o.qZA(),o._UZ(29,"mat-divider",13),o.TgZ(30,"div",9),o.TgZ(31,"div",1),o.TgZ(32,"h4",11),o._uU(33,"Peer Public Key"),o.qZA(),o.TgZ(34,"span",12),o._uU(35),o.qZA(),o.qZA(),o.qZA(),o._UZ(36,"mat-divider",13),o.TgZ(37,"div",9),o.TgZ(38,"div",14),o.TgZ(39,"h4",11),o._uU(40,"Local Balance"),o.qZA(),o.TgZ(41,"span",15),o._uU(42),o.ALo(43,"number"),o.qZA(),o.qZA(),o.TgZ(44,"div",14),o.TgZ(45,"h4",11),o._uU(46,"Remote Balance"),o.qZA(),o.TgZ(47,"span",15),o._uU(48),o.ALo(49,"number"),o.qZA(),o.qZA(),o.TgZ(50,"div",14),o.TgZ(51,"h4",11),o._uU(52,"Capacity"),o.qZA(),o.TgZ(53,"span",15),o._uU(54),o.ALo(55,"number"),o.qZA(),o.qZA(),o.TgZ(56,"div",14),o.TgZ(57,"h4",11),o._uU(58,"Uptime (Seconds)"),o.qZA(),o.TgZ(59,"span",15),o._uU(60),o.ALo(61,"number"),o.qZA(),o.qZA(),o.qZA(),o._UZ(62,"mat-divider",13),o.TgZ(63,"div",9),o.TgZ(64,"div",14),o.TgZ(65,"h4",11),o._uU(66,"Active"),o.qZA(),o.TgZ(67,"span",15),o._uU(68),o.qZA(),o.qZA(),o.TgZ(69,"div",14),o.TgZ(70,"h4",11),o._uU(71,"Private"),o.qZA(),o.TgZ(72,"span",15),o._uU(73),o.qZA(),o.qZA(),o.TgZ(74,"div",14),o.TgZ(75,"h4",11),o._uU(76,"Initiator"),o.qZA(),o.TgZ(77,"span",15),o._uU(78),o.qZA(),o.qZA(),o.TgZ(79,"div",14),o.TgZ(80,"h4",11),o._uU(81,"Number of Updates"),o.qZA(),o.TgZ(82,"span",15),o._uU(83),o.ALo(84,"number"),o.qZA(),o.qZA(),o.qZA(),o._UZ(85,"mat-divider",13),o.YNc(86,Ti,78,39,"div",16),o.TgZ(87,"div",17),o.TgZ(88,"button",18),o.NdJ("click",function(){return t.onShowAdvanced()}),o.YNc(89,bi,2,0,"p",19),o.YNc(90,wi,2,0,"ng-template",null,20,o.W1O),o.qZA(),o.YNc(92,_i,2,1,"button",21),o.YNc(93,vi,2,0,"button",22),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA()),2&e){const e=o.MAs(91);o.xp6(4),o.Q6J("icon",t.faReceipt),o.xp6(5),o.Q6J("ngClass",o.VKq(34,qi,t.screenSize===t.screenSizeEnum.XS)),o.xp6(7),o.Oqu(t.channel.chan_id),o.xp6(5),o.Oqu(t.channel.remote_alias),o.xp6(1),o.Q6J("inset",!0),o.xp6(6),o.Oqu(t.channel.channel_point),o.xp6(1),o.Q6J("inset",!0),o.xp6(6),o.Oqu(t.channel.remote_pubkey),o.xp6(1),o.Q6J("inset",!0),o.xp6(6),o.Oqu(o.lcZ(43,24,t.channel.local_balance)),o.xp6(6),o.Oqu(o.lcZ(49,26,t.channel.remote_balance)),o.xp6(6),o.Oqu(o.lcZ(55,28,t.channel.capacity)),o.xp6(6),o.Oqu(o.lcZ(61,30,t.channel.uptime)),o.xp6(2),o.Q6J("inset",!0),o.xp6(6),o.Oqu(t.channel.active?"Yes":"No"),o.xp6(5),o.Oqu(t.channel.private?"Yes":"No"),o.xp6(5),o.Oqu(t.channel.initiator?"Yes":"No"),o.xp6(5),o.Oqu(o.lcZ(84,32,t.channel.num_updates)),o.xp6(2),o.Q6J("inset",!0),o.xp6(1),o.Q6J("ngIf",t.showAdvanced),o.xp6(3),o.Q6J("ngIf",!t.showAdvanced)("ngIfElse",e),o.xp6(3),o.Q6J("ngIf",t.showCopy),o.xp6(1),o.Q6J("ngIf",!t.showCopy)}},directives:[l.xw,l.Wh,l.yH,w.dk,T.BN,q.lW,w.dn,a.mk,v.oO,M.d,a.O5,Te.h,Ci.y],pipes:[a.JJ],styles:[""]}),e})();var Fi=n(2041);const Li=["stepper"];function ki(e,t){if(1&e&&o._uU(0),2&e){const e=o.oxw();o.Oqu(e.inputFormLabel)}}function Ni(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Amount is required."),o.qZA())}function Ui(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Amount must be a positive number."),o.qZA())}function Ii(e,t){if(1&e&&(o.TgZ(0,"mat-error"),o._uU(1),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.hij("Amount must be less than or equal to ",null==e.selChannel?null:e.selChannel.local_balance,".")}}function Oi(e,t){if(1&e&&(o.TgZ(0,"mat-option",52),o._uU(1),o.qZA()),2&e){const e=t.$implicit;o.Q6J("value",e),o.xp6(1),o.Oqu(e.remote_alias||e.chan_id)}}function Ji(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Peer is required."),o.qZA())}function Di(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Peer not found in the list."),o.qZA())}function Ri(e,t){if(1&e&&o._uU(0),2&e){const e=o.oxw();o.Oqu(e.feeFormLabel)}}function Mi(e,t){if(1&e&&(o.TgZ(0,"mat-option",52),o._uU(1),o.qZA()),2&e){const e=t.$implicit;o.Q6J("value",e),o.xp6(1),o.hij(" ",e.name," ")}}function Ei(e,t){if(1&e&&(o.TgZ(0,"mat-error"),o._uU(1),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.hij("",e.feeFormGroup.controls.selFeeLimitType.value?e.feeFormGroup.controls.selFeeLimitType.value.placeholder:e.feeLimitTypes[0].placeholder," is required.")}}function Qi(e,t){if(1&e&&(o.TgZ(0,"mat-error"),o._uU(1),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.hij("",e.feeFormGroup.controls.selFeeLimitType.value?e.feeFormGroup.controls.selFeeLimitType.value.placeholder:e.feeLimitTypes[0].placeholder," must be a positive number.")}}function Yi(e,t){1&e&&o._uU(0,"Invoice/Payment")}function Pi(e,t){1&e&&(o.TgZ(0,"mat-icon",53),o._uU(1,"check"),o.qZA())}function Bi(e,t){1&e&&o._UZ(0,"mat-progress-bar",54)}function Gi(e,t){if(1&e&&(o.TgZ(0,"mat-icon",53),o._uU(1),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Oqu(null!=e.paymentStatus&&e.paymentStatus.error?"close":"check")}}function Hi(e,t){1&e&&o._UZ(0,"div",7)}function zi(e,t){1&e&&o._UZ(0,"mat-progress-bar",54)}function Vi(e,t){if(1&e&&(o.TgZ(0,"h4",55),o._uU(1),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Oqu(e.paymentStatus&&e.paymentStatus.payment_hash?"Rebalance Successful.":"Rebalance Failed.")}}function Wi(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"button",56),o.NdJ("click",function(){return o.CHM(e),o.oxw().onRestart()}),o._uU(1,"Start Again"),o.qZA()}}function Xi(e,t){1&e&&o.GkF(0)}function $i(e,t){if(1&e&&o.YNc(0,Xi,1,0,"ng-container",57),2&e){const e=o.oxw(),t=o.MAs(98),n=o.MAs(100);o.Q6J("ngTemplateOutlet",e.paymentStatus.error?t:n)}}function ji(e,t){if(1&e&&(o.TgZ(0,"div",7),o.TgZ(1,"span",40),o._uU(2),o.qZA(),o.qZA()),2&e){const e=o.oxw();o.xp6(2),o.hij("Error: ",e.paymentStatus.error,"")}}function Ki(e,t){if(1&e&&(o.TgZ(0,"div",7),o.TgZ(1,"div",0),o.TgZ(2,"div",1),o.TgZ(3,"h4",58),o._uU(4,"Payment Hash"),o.qZA(),o.TgZ(5,"span",40),o._uU(6),o.qZA(),o.qZA(),o.qZA(),o._UZ(7,"mat-divider",59),o.TgZ(8,"div",0),o.TgZ(9,"div",60),o.TgZ(10,"h4",58),o._uU(11),o.qZA(),o.TgZ(12,"span",40),o._uU(13),o.qZA(),o.qZA(),o.TgZ(14,"div",60),o.TgZ(15,"h4",58),o._uU(16,"Number of Hops"),o.qZA(),o.TgZ(17,"span",40),o._uU(18),o.qZA(),o.qZA(),o.qZA(),o.qZA()),2&e){const e=o.oxw();o.xp6(6),o.Oqu(e.paymentStatus.payment_hash),o.xp6(5),o.hij("Total Fees (",e.paymentStatus.payment_route.total_fees_msat?"mSats":"Sats",")"),o.xp6(2),o.Oqu(e.paymentStatus.payment_route.total_fees_msat?e.paymentStatus.payment_route.total_fees_msat:e.paymentStatus.payment_route.total_fees?e.paymentStatus.payment_route.total_fees:0),o.xp6(5),o.Oqu(e.paymentStatus&&e.paymentStatus.payment_route&&e.paymentStatus.payment_route.hops&&e.paymentStatus.payment_route.hops.length?e.paymentStatus.payment_route.hops.length:0)}}let es=(()=>{class e{constructor(e,t,n,a,i,s,o){this.dialogRef=e,this.data=t,this.logger=n,this.store=a,this.actions=i,this.formBuilder=s,this.decimalPipe=o,this.faInfoCircle=g.sqG,this.invoices={},this.selChannel={},this.activeChannels=[],this.feeLimitTypes=[],this.queryRoute={},this.paymentRequest="",this.paymentStatus=null,this.flgReusingInvoice=!1,this.flgInvoiceGenerated=!1,this.flgPaymentSent=!1,this.inputFormLabel="Amount to rebalance",this.feeFormLabel="Select rebalance fee",this.flgEditable=!0,this.unSubs=[new p.x,new p.x,new p.x,new p.x]}ngOnInit(){let e="",t="";this.selChannel=this.data.message.selChannel,this.activeChannels=this.data.message.channels.filter(e=>e.active&&e.chan_id!==this.selChannel.chan_id&&e.remote_balance>0),this.activeChannels=this.activeChannels.sort((n,a)=>(e=n.remote_alias?n.remote_alias.toLowerCase():n.chan_id?n.chan_id.toLowerCase():"",t=a.remote_alias?a.remote_alias.toLowerCase():n.chan_id.toLowerCase(),et?1:0)),f.Vc.forEach((e,t)=>{t>0&&this.feeLimitTypes.push(e)}),this.inputFormGroup=this.formBuilder.group({hiddenAmount:["",[Ae.kI.required]],rebalanceAmount:["",[Ae.kI.required,Ae.kI.min(1),Ae.kI.max(this.selChannel.local_balance)]],selRebalancePeer:[null,Ae.kI.required]}),this.feeFormGroup=this.formBuilder.group({selFeeLimitType:[this.feeLimitTypes[0],Ae.kI.required],feeLimit:["",[Ae.kI.required,Ae.kI.min(0)]],hiddenFeeLimit:["",[Ae.kI.required]]}),this.statusFormGroup=this.formBuilder.group({}),this.store.select("lnd").pipe((0,d.R)(this.unSubs[0])).subscribe(e=>{this.invoices=e.invoices,this.logger.info(e)}),this.actions.pipe((0,d.R)(this.unSubs[1]),(0,h.h)(e=>e.type===x.qs||e.type===x.ug||e.type===x.mZ)).subscribe(e=>{e.type===x.qs&&(this.queryRoute=e.payload),e.type===x.ug&&(this.logger.info(e.payload),this.flgPaymentSent=!0,this.paymentStatus=e.payload,this.flgEditable=!0),e.type===x.mZ&&(this.logger.info(e.payload),this.flgInvoiceGenerated=!0,this.sendPayment(e.payload.paymentRequest))}),this.inputFormGroup.get("rebalanceAmount").valueChanges.pipe((0,d.R)(this.unSubs[2]),(0,da.O)(0)).subscribe(e=>{this.inputFormGroup.controls.selRebalancePeer.setValue(""),this.inputFormGroup.controls.selRebalancePeer.setErrors(null),this.filteredActiveChannels=(0,Fi.of)(e?this.filterActiveChannels():this.activeChannels.slice())}),this.inputFormGroup.get("selRebalancePeer").valueChanges.pipe((0,d.R)(this.unSubs[3]),(0,da.O)("")).subscribe(e=>{"string"==typeof e&&(this.filteredActiveChannels=(0,Fi.of)(this.filterActiveChannels()))})}onSelectFee(){if(this.inputFormGroup.controls.selRebalancePeer.value&&"string"==typeof this.inputFormGroup.controls.selRebalancePeer.value&&this.onSelectedPeerChanged(),!this.inputFormGroup.controls.selRebalancePeer.value||"string"==typeof this.inputFormGroup.controls.selRebalancePeer.value||!this.inputFormGroup.controls.rebalanceAmount.value)return!0;0===this.stepper.selectedIndex&&(this.inputFormGroup.controls.hiddenAmount.setValue(this.inputFormGroup.controls.rebalanceAmount.value),this.stepper.next()),this.queryRoute=null,this.feeFormGroup.reset(),this.feeFormGroup.controls.selFeeLimitType.setValue(this.feeLimitTypes[0]),this.feeFormGroup.controls.feeLimit.setValue(""),this.feeFormGroup.controls.feeLimit.setErrors(null),this.feeFormGroup.controls.hiddenFeeLimit.setValue(""),this.feeFormGroup.controls.hiddenFeeLimit.setErrors(null)}stepSelectionChanged(e){switch(e.selectedIndex){case 0:this.inputFormLabel="Amount to rebalance",this.feeFormLabel="Select rebalance fee";break;case 1:this.inputFormLabel=this.inputFormGroup.controls.rebalanceAmount.value||this.inputFormGroup.controls.selRebalancePeer.value.remote_alias?"Rebalancing Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.rebalanceAmount.value?this.inputFormGroup.controls.rebalanceAmount.value:0)+" Sats | Peer: "+(this.inputFormGroup.controls.selRebalancePeer.value.remote_alias?this.inputFormGroup.controls.selRebalancePeer.value.remote_alias:this.inputFormGroup.controls.selRebalancePeer.value.remote_pubkey.substring(0,15)+"..."):"Amount to rebalance",this.feeFormLabel="Select rebalance fee";break;case 2:this.inputFormLabel=this.inputFormGroup.controls.rebalanceAmount.value||this.inputFormGroup.controls.selRebalancePeer.value.remote_alias?"Rebalancing Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.rebalanceAmount.value?this.inputFormGroup.controls.rebalanceAmount.value:0)+" Sats | Peer: "+(this.inputFormGroup.controls.selRebalancePeer.value.remote_alias?this.inputFormGroup.controls.selRebalancePeer.value.remote_alias:this.inputFormGroup.controls.selRebalancePeer.value.remote_pubkey.substring(0,15)+"..."):"Amount to rebalance",this.feeFormLabel=this.queryRoute&&this.queryRoute.routes&&this.queryRoute.routes.length>0&&(this.queryRoute.routes[0].total_fees_msat||this.queryRoute.routes[0].hops&&this.queryRoute.routes[0].hops.length)?this.feeFormGroup.controls.selFeeLimitType.value.placeholder+": "+this.decimalPipe.transform(this.feeFormGroup.controls.feeLimit.value?this.feeFormGroup.controls.feeLimit.value:0)+" | Hops: "+this.queryRoute.routes[0].hops.length:"Select rebalance fee";break;default:this.inputFormLabel="Amount to rebalance",this.feeFormLabel="Select rebalance fee"}e.selectedIndex+this.selChannel.local_balance||!this.feeFormGroup.controls.feeLimit.value||this.feeFormGroup.controls.feeLimit.value<0||!this.inputFormGroup.controls.selRebalancePeer.value.remote_pubkey)return!0;this.feeFormGroup.controls.hiddenFeeLimit.setValue(this.feeFormGroup.controls.feeLimit.value),this.stepper.next(),this.flgEditable=!1,this.paymentRequest="",this.paymentStatus=null,this.flgReusingInvoice=!1,this.flgInvoiceGenerated=!1,this.flgPaymentSent=!1;const e=this.findUnsettledInvoice();e?(this.flgReusingInvoice=!0,this.sendPayment(e.payment_request)):this.store.dispatch(new x.H1({uiMessage:f.m6.NO_SPINNER,memo:"Local-Rebalance-"+this.inputFormGroup.controls.rebalanceAmount.value+"-Sats",invoiceValue:this.inputFormGroup.controls.rebalanceAmount.value,private:!1,expiry:3600,pageSize:f.IV,openModal:!1}))}findUnsettledInvoice(){return this.invoices.invoices.find(e=>(0==+e.settle_date||!e.settle_date)&&e.memo==="Local-Rebalance-"+this.inputFormGroup.controls.rebalanceAmount.value+"-Sats"&&"CANCELED"!==e.state)}sendPayment(e){this.flgInvoiceGenerated=!0,this.paymentRequest=e,this.store.dispatch(new x.Ar({uiMessage:f.m6.NO_SPINNER,paymentReq:e,outgoingChannel:this.selChannel,feeLimitType:this.feeFormGroup.controls.selFeeLimitType.value,feeLimit:this.feeFormGroup.controls.feeLimit.value,allowSelfPayment:!0,lastHopPubkey:this.inputFormGroup.controls.selRebalancePeer.value.remote_pubkey,fromDialog:!0}))}filterActiveChannels(){return this.activeChannels.filter(e=>e.remote_balance>=this.inputFormGroup.controls.rebalanceAmount.value&&e.chan_id!==this.selChannel.chan_id&&(0===e.remote_alias.toLowerCase().indexOf(this.inputFormGroup.controls.selRebalancePeer.value?this.inputFormGroup.controls.selRebalancePeer.value.toLowerCase():"")||0===e.chan_id.toLowerCase().indexOf(this.inputFormGroup.controls.selRebalancePeer.value?this.inputFormGroup.controls.selRebalancePeer.value.toLowerCase():"")))}onSelectedPeerChanged(){if(this.inputFormGroup.controls.selRebalancePeer.value&&this.inputFormGroup.controls.selRebalancePeer.value.length>0&&"string"==typeof this.inputFormGroup.controls.selRebalancePeer.value){const e=this.activeChannels.filter(e=>e.remote_alias.length===this.inputFormGroup.controls.selRebalancePeer.value.length&&0===e.remote_alias.toLowerCase().indexOf(this.inputFormGroup.controls.selRebalancePeer.value?this.inputFormGroup.controls.selRebalancePeer.value.toLowerCase():""));e&&e.length>0?(this.inputFormGroup.controls.selRebalancePeer.setValue(e[0]),this.inputFormGroup.controls.selRebalancePeer.setErrors(null)):this.inputFormGroup.controls.selRebalancePeer.setErrors({notfound:!0})}}displayFn(e){return e&&e.remote_alias?e.remote_alias:e&&e.chan_id?e.chan_id:""}onClose(){this.dialogRef.close(!1)}onRestart(){this.flgInvoiceGenerated=!1,this.flgPaymentSent=!1,this.flgEditable=!0,this.stepper.reset(),this.inputFormGroup.reset(),this.feeFormGroup.reset(),this.statusFormGroup.reset(),this.inputFormGroup.controls.hiddenAmount.setValue(""),this.inputFormGroup.controls.hiddenAmount.setErrors(null),this.inputFormGroup.controls.rebalanceAmount.setValue(""),this.inputFormGroup.controls.rebalanceAmount.setErrors(null),this.inputFormGroup.controls.selRebalancePeer.setValue(""),this.inputFormGroup.controls.selRebalancePeer.setErrors(null),this.filteredActiveChannels=(0,Fi.of)(this.activeChannels)}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(ye.so),o.Y36(ye.WI),o.Y36(Z.mQ),o.Y36(y.yh),o.Y36(A.eX),o.Y36(Ae.qu),o.Y36(a.JJ))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-channel-rebalance"]],viewQuery:function(e,t){if(1&e&&o.Gf(Li,5),2&e){let e;o.iGM(e=o.CRH())&&(t.stepper=e.first)}},decls:101,vars:45,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","15","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"alert","alert-info"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","space-between stretch",1,"padding-gap-large"],["fxFlex","40"],["fxFlex","30"],[3,"linear","selectionChange"],["stepper",""],[3,"stepControl","editable"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"my-1",3,"formGroup"],["matStepLabel",""],["fxLayout","column","fxLayout.gt-sm","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","48"],["autoFocus","","matInput","","placeholder","Amount","type","number","tabindex","1","formControlName","rebalanceAmount","required","",3,"step"],["matSuffix",""],[4,"ngIf"],["fxFlex","48","fxLayoutAlign","start end"],["type","text","placeholder","Receive from Peer","aria-label","Receive from Peer","matInput","","formControlName","selRebalancePeer","tabindex","2","required","",3,"matAutocomplete","change"],[3,"displayWith","optionSelected"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","3","type","submit",3,"click"],["matStepLabel","","disabled","true"],["tabindex","6","formControlName","selFeeLimitType","Placeholder","Fee Limits","required",""],["matInput","","formControlName","feeLimit","type","number","tabindex","7","required","",3,"placeholder","step"],["mat-stroked-button","","color","primary","tabindex","8","type","submit",3,"click"],[3,"stepControl"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"flat-expansion-panel","mb-2"],["fxLayoutAlign","start center","fxFlex","100"],["class","ml-1 icon-small",4,"ngIf"],[1,"foreground-secondary-text"],["fxFlex","100","color","primary","mode","indeterminate",4,"ngIf"],["fxFlex","100",1,"flat-expansion-panel",3,"expanded"],["fxLayout","column",4,"ngIf","ngIfElse"],["fxLayoutAlign","start","class","font-bold-500 mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-1"],["mat-flat-button","","color","primary","tabindex","11","type","button",3,"click",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","tabindex","12","type","button","default","",3,"mat-dialog-close"],["paymentStatusBlock",""],["paymentFailedBlock",""],["paymentSuccessfulBlock",""],[3,"value"],[1,"ml-1","icon-small"],["fxFlex","100","color","primary","mode","indeterminate"],["fxLayoutAlign","start",1,"font-bold-500","mt-1"],["mat-flat-button","","color","primary","tabindex","11","type","button",3,"click"],[4,"ngTemplateOutlet"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"w-100","my-1"],["fxFlex","50"]],template:function(e,t){if(1&e&&(o.TgZ(0,"div",0),o.TgZ(1,"div",1),o.TgZ(2,"mat-card-header",2),o.TgZ(3,"div",3),o.TgZ(4,"span",4),o._uU(5,"Channel Rebalance"),o.qZA(),o.qZA(),o.TgZ(6,"button",5),o.NdJ("click",function(){return t.onClose()}),o._uU(7,"X"),o.qZA(),o.qZA(),o.TgZ(8,"mat-card-content",6),o.TgZ(9,"div",7),o.TgZ(10,"div",8),o.TgZ(11,"div",9),o._UZ(12,"fa-icon",10),o.TgZ(13,"span"),o._uU(14,"Circular Rebalance is a payment you make to *yourselves* to affect a relative change in the balances of two channels. This is accomplished by sending payment out from the selected channel and receiving it back on the channel with the selected peer. Please note, you will be paying routing fee to balance the channels in this manner."),o.qZA(),o.qZA(),o.qZA(),o.TgZ(15,"div",11),o.TgZ(16,"p",12),o.TgZ(17,"strong"),o._uU(18,"Channel Peer:\xa0"),o.qZA(),o._uU(19),o.ALo(20,"titlecase"),o.qZA(),o.TgZ(21,"p",13),o.TgZ(22,"strong"),o._uU(23,"Channel ID:\xa0"),o.qZA(),o._uU(24),o.qZA(),o._UZ(25,"p",13),o.qZA(),o.TgZ(26,"mat-vertical-stepper",14,15),o.NdJ("selectionChange",function(e){return t.stepSelectionChanged(e)}),o.TgZ(28,"mat-step",16),o.TgZ(29,"form",17),o.YNc(30,ki,1,1,"ng-template",18),o.TgZ(31,"div",19),o.TgZ(32,"mat-form-field",20),o._UZ(33,"input",21),o.TgZ(34,"mat-hint"),o._uU(35),o.qZA(),o.TgZ(36,"span",22),o._uU(37,"Sats"),o.qZA(),o.YNc(38,Ni,2,0,"mat-error",23),o.YNc(39,Ui,2,0,"mat-error",23),o.YNc(40,Ii,2,1,"mat-error",23),o.qZA(),o.TgZ(41,"mat-form-field",24),o.TgZ(42,"input",25),o.NdJ("change",function(){return t.onSelectedPeerChanged()}),o.qZA(),o.TgZ(43,"mat-autocomplete",26,27),o.NdJ("optionSelected",function(){return t.onSelectedPeerChanged()}),o.YNc(45,Oi,2,2,"mat-option",28),o.ALo(46,"async"),o.qZA(),o.YNc(47,Ji,2,0,"mat-error",23),o.YNc(48,Di,2,0,"mat-error",23),o.qZA(),o.qZA(),o.TgZ(49,"div",29),o.TgZ(50,"button",30),o.NdJ("click",function(){return t.onSelectFee()}),o._uU(51,"Select Fee"),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.TgZ(52,"mat-step",16),o.TgZ(53,"form",17),o.YNc(54,Ri,1,1,"ng-template",31),o.TgZ(55,"div",19),o.TgZ(56,"div",19),o.TgZ(57,"mat-form-field",24),o.TgZ(58,"mat-select",32),o.YNc(59,Mi,2,2,"mat-option",28),o.qZA(),o.qZA(),o.TgZ(60,"mat-form-field",20),o._UZ(61,"input",33),o.YNc(62,Ei,2,1,"mat-error",23),o.YNc(63,Qi,2,1,"mat-error",23),o.qZA(),o.qZA(),o.qZA(),o.TgZ(64,"div",29),o.TgZ(65,"button",34),o.NdJ("click",function(){return t.onRebalance()}),o._uU(66,"Rebalance"),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.TgZ(67,"mat-step",35),o.TgZ(68,"form",17),o.YNc(69,Yi,1,0,"ng-template",18),o.TgZ(70,"div",36),o.TgZ(71,"mat-expansion-panel",37),o.TgZ(72,"mat-expansion-panel-header"),o.TgZ(73,"mat-panel-title"),o.TgZ(74,"span",38),o._uU(75),o.YNc(76,Pi,2,0,"mat-icon",39),o.qZA(),o.qZA(),o.qZA(),o.TgZ(77,"div",7),o.TgZ(78,"span",40),o._uU(79),o.qZA(),o.qZA(),o.qZA(),o.YNc(80,Bi,1,0,"mat-progress-bar",41),o.TgZ(81,"mat-expansion-panel",42),o.TgZ(82,"mat-expansion-panel-header"),o.TgZ(83,"mat-panel-title"),o.TgZ(84,"span",38),o._uU(85),o.YNc(86,Gi,2,1,"mat-icon",39),o.qZA(),o.qZA(),o.qZA(),o.YNc(87,Hi,1,0,"div",43),o.qZA(),o.YNc(88,zi,1,0,"mat-progress-bar",41),o.qZA(),o.YNc(89,Vi,2,1,"h4",44),o.TgZ(90,"div",45),o.YNc(91,Wi,2,0,"button",46),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.TgZ(92,"div",47),o.TgZ(93,"button",48),o._uU(94,"Close"),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.YNc(95,$i,1,1,"ng-template",null,49,o.W1O),o.YNc(97,ji,3,1,"ng-template",null,50,o.W1O),o.YNc(99,Ki,19,4,"ng-template",null,51,o.W1O)),2&e){const e=o.MAs(44),n=o.MAs(96);o.xp6(12),o.Q6J("icon",t.faInfoCircle),o.xp6(7),o.Oqu(o.lcZ(20,41,t.selChannel.remote_alias)),o.xp6(5),o.Oqu(t.selChannel.chan_id),o.xp6(2),o.Q6J("linear",!0),o.xp6(2),o.Q6J("stepControl",t.inputFormGroup)("editable",t.flgEditable),o.xp6(1),o.Q6J("formGroup",t.inputFormGroup),o.xp6(4),o.Q6J("step",100),o.xp6(2),o.AsE("(Local Bal: ",null==t.selChannel?null:t.selChannel.local_balance,", Remaining: ",(null==t.selChannel?null:t.selChannel.local_balance)-(t.inputFormGroup.controls.rebalanceAmount.value?t.inputFormGroup.controls.rebalanceAmount.value:0),")"),o.xp6(3),o.Q6J("ngIf",null==t.inputFormGroup.controls.rebalanceAmount.errors?null:t.inputFormGroup.controls.rebalanceAmount.errors.required),o.xp6(1),o.Q6J("ngIf",null==t.inputFormGroup.controls.rebalanceAmount.errors?null:t.inputFormGroup.controls.rebalanceAmount.errors.min),o.xp6(1),o.Q6J("ngIf",null==t.inputFormGroup.controls.rebalanceAmount.errors?null:t.inputFormGroup.controls.rebalanceAmount.errors.max),o.xp6(2),o.Q6J("matAutocomplete",e),o.xp6(1),o.Q6J("displayWith",t.displayFn),o.xp6(2),o.Q6J("ngForOf",o.lcZ(46,43,t.filteredActiveChannels)),o.xp6(2),o.Q6J("ngIf",null==t.inputFormGroup.controls.selRebalancePeer.errors?null:t.inputFormGroup.controls.selRebalancePeer.errors.required),o.xp6(1),o.Q6J("ngIf",null==t.inputFormGroup.controls.selRebalancePeer.errors?null:t.inputFormGroup.controls.selRebalancePeer.errors.notfound),o.xp6(4),o.Q6J("stepControl",t.feeFormGroup)("editable",t.flgEditable),o.xp6(1),o.Q6J("formGroup",t.feeFormGroup),o.xp6(6),o.Q6J("ngForOf",t.feeLimitTypes),o.xp6(2),o.s9C("placeholder",t.feeFormGroup.controls.selFeeLimitType.value?t.feeFormGroup.controls.selFeeLimitType.value.placeholder:t.feeLimitTypes[0].placeholder),o.Q6J("step",1),o.xp6(1),o.Q6J("ngIf",null==t.feeFormGroup.controls.feeLimit.errors?null:t.feeFormGroup.controls.feeLimit.errors.required),o.xp6(1),o.Q6J("ngIf",null==t.feeFormGroup.controls.feeLimit.errors?null:t.feeFormGroup.controls.feeLimit.errors.min),o.xp6(4),o.Q6J("stepControl",t.statusFormGroup),o.xp6(1),o.Q6J("formGroup",t.statusFormGroup),o.xp6(7),o.Oqu(t.flgInvoiceGenerated?t.flgReusingInvoice?"Invoice re-used":"Invoice generated":"Generating invoice..."),o.xp6(1),o.Q6J("ngIf",t.flgInvoiceGenerated),o.xp6(3),o.Oqu(t.paymentRequest),o.xp6(1),o.Q6J("ngIf",!t.flgInvoiceGenerated),o.xp6(1),o.Q6J("expanded",(t.flgInvoiceGenerated||t.flgReusingInvoice)&&t.flgPaymentSent),o.xp6(4),o.Oqu(t.flgInvoiceGenerated||t.flgPaymentSent?t.flgPaymentSent?null!=t.paymentStatus&&t.paymentStatus.error?"Payment failed":"Payment successful":"Processing payment...":"Payment waiting for Invoice"),o.xp6(1),o.Q6J("ngIf",t.flgPaymentSent),o.xp6(1),o.Q6J("ngIf",!t.paymentStatus)("ngIfElse",n),o.xp6(1),o.Q6J("ngIf",t.flgInvoiceGenerated&&!t.flgPaymentSent),o.xp6(1),o.Q6J("ngIf",t.flgInvoiceGenerated&&t.flgPaymentSent),o.xp6(2),o.Q6J("ngIf",t.paymentStatus&&t.paymentStatus.error),o.xp6(2),o.Q6J("mat-dialog-close",!1)}},directives:[l.xw,l.yH,w.dk,l.Wh,q.lW,w.dn,T.BN,La.Vq,La.C0,Ae._Y,Ae.JL,Ae.sg,La.VY,D.KE,Ce.Nt,Ae.wV,Ae.Fj,Te.h,Ae.JJ,Ae.u,Ae.Q7,D.bx,D.R9,a.O5,mt.ZL,mt.XC,a.sg,we.gD,ht.ib,ht.yz,ht.yK,ye.ZT,D.TO,ve.ey,S.Hw,r.pW,a.tP,M.d],pipes:[a.rS,a.Ov],styles:[""]}),e})();function ts(e,t){if(1&e&&(o.TgZ(0,"div",16),o.TgZ(1,"p",17),o.TgZ(2,"mat-icon",18),o._uU(3,"close"),o.qZA(),o._uU(4),o.qZA(),o.qZA()),2&e){const e=o.oxw();o.xp6(4),o.Oqu(e.errorMsg)}}function ns(e,t){if(1&e&&(o.TgZ(0,"div",27),o._UZ(1,"fa-icon",28),o.TgZ(2,"span"),o._uU(3,"Priority/Fee for force closing inactive channels cannot be modified."),o.qZA(),o.qZA()),2&e){const e=o.oxw(2);o.xp6(1),o.Q6J("icon",e.faInfoCircle)}}function as(e,t){if(1&e&&(o.TgZ(0,"mat-option",29),o._uU(1),o.qZA()),2&e){const e=t.$implicit;o.Q6J("value",e.id),o.xp6(1),o.hij(" ",e.name," ")}}function is(e,t){1&e&&(o.TgZ(0,"mat-form-field",30),o._UZ(1,"input",31),o.qZA())}function ss(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Number of blocks is required."),o.qZA())}function os(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"mat-form-field",32),o.TgZ(1,"input",33,34),o.NdJ("ngModelChange",function(t){return o.CHM(e),o.oxw(2).blocks=t}),o.qZA(),o.YNc(3,ss,2,0,"mat-error",35),o.qZA()}if(2&e){const e=o.oxw(2);o.xp6(1),o.Q6J("ngModel",e.blocks)("step",1)("min",0),o.xp6(2),o.Q6J("ngIf",!e.blocks)}}function ls(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Fees is required."),o.qZA())}function rs(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"mat-form-field",32),o.TgZ(1,"input",36,37),o.NdJ("ngModelChange",function(t){return o.CHM(e),o.oxw(2).fees=t}),o.qZA(),o.YNc(3,ls,2,0,"mat-error",35),o.qZA()}if(2&e){const e=o.oxw(2);o.xp6(1),o.Q6J("ngModel",e.fees)("step",1)("min",0),o.xp6(2),o.Q6J("ngIf",!e.fees)}}function cs(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"div",19),o.YNc(1,ns,4,1,"div",20),o.TgZ(2,"div",21),o.TgZ(3,"mat-form-field",22),o.TgZ(4,"mat-select",23),o.NdJ("valueChange",function(t){return o.CHM(e),o.oxw().selTransType=t}),o.YNc(5,as,2,2,"mat-option",24),o.qZA(),o.qZA(),o.YNc(6,is,2,0,"mat-form-field",25),o.YNc(7,os,4,4,"mat-form-field",26),o.YNc(8,rs,4,4,"mat-form-field",26),o.qZA(),o.qZA()}if(2&e){const e=o.oxw();o.xp6(1),o.Q6J("ngIf",!e.channelToClose.active),o.xp6(3),o.Q6J("value",e.selTransType)("disabled",!e.channelToClose.active),o.xp6(1),o.Q6J("ngForOf",e.transTypes),o.xp6(1),o.Q6J("ngIf","0"===e.selTransType),o.xp6(1),o.Q6J("ngIf","1"===e.selTransType),o.xp6(1),o.Q6J("ngIf","2"===e.selTransType)}}function us(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"button",38),o.NdJ("click",function(){return o.CHM(e),o.oxw().resetData()}),o._uU(1,"Clear"),o.qZA()}}function ps(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"button",39),o.NdJ("click",function(){return o.CHM(e),o.oxw().onCloseChannel()}),o._uU(1),o.qZA()}if(2&e){const e=o.oxw();o.xp6(1),o.Oqu(e.channelToClose.active?"Close Channel":"Force Close")}}function ds(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"button",40),o.NdJ("click",function(){return o.CHM(e),o.oxw().onClose()}),o._uU(1,"Ok"),o.qZA()}}let hs=(()=>{class e{constructor(e,t,n,a,i){this.dialogRef=e,this.data=t,this.store=n,this.actions=a,this.logger=i,this.transTypes=f.Dr,this.selTransType="0",this.blocks=null,this.fees=null,this.faExclamationTriangle=g.eHv,this.faInfoCircle=g.sqG,this.flgPendingHtlcs=!1,this.errorMsg="Please wait for pending HTLCs to settle before attempting channel closure.",this.unSubs=[new p.x,new p.x]}ngOnInit(){this.channelToClose=this.data.channel,this.actions.pipe((0,d.R)(this.unSubs[0]),(0,h.h)(e=>e.type===x.JE||e.type===x.P2)).subscribe(e=>{if(e.type===x.P2){const t=e.payload.find(e=>e.chan_id===this.data.channel.chan_id);t.pending_htlcs&&t.pending_htlcs.length&&t.pending_htlcs.length>0&&(this.flgPendingHtlcs=!0)}e.type===x.JE&&e.payload.status===f.Bn.ERROR&&"FetchAllChannels"===e.payload.action&&this.logger.error("Fetching latest channel information failed!\n"+e.payload.message)})}onCloseChannel(){if("1"===this.selTransType&&(!this.blocks||0===this.blocks)||"2"===this.selTransType&&(!this.fees||0===this.fees))return!0;const e={channelPoint:this.channelToClose.channel_point,forcibly:!this.channelToClose.active};this.blocks&&(e.targetConf=this.blocks),this.fees&&(e.satPerByte=this.fees),this.store.dispatch(new x.e8(e)),this.dialogRef.close(!1)}resetData(){this.selTransType="0",this.blocks=null,this.fees=null}onClose(){this.dialogRef.close(!1)}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(ye.so),o.Y36(ye.WI),o.Y36(y.yh),o.Y36(A.eX),o.Y36(Z.mQ))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-close-channel"]],decls:19,vars:7,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],["fxLayout","column",1,"bordered-box","mb-1","p-2"],["fxLayoutAlign","start center",1,"pb-1","word-break"],["fxLayoutAlign","start center",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","reset","class","mr-1","tabindex","3","default","",3,"click",4,"ngIf"],["mat-flat-button","","color","primary","type","submit","tabindex","4",3,"click",4,"ngIf"],["mat-flat-button","","color","primary","type","submit","tabindex","5",3,"click",4,"ngIf"],["fxLayoutAlign","start center"],["fxFlex","100","fxLayoutAlign","start center",1,"color-warn"],[1,"mr-1","icon-small"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100","class","alert alert-info",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxFlex.gt-sm","48"],["tabindex","1",3,"value","disabled","valueChange"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","48",4,"ngIf"],["fxFlex.gt-sm","48","fxLayoutAlign","start end",4,"ngIf"],["fxFlex","100",1,"alert","alert-info"],[1,"mr-1","alert-icon",3,"icon"],[3,"value"],["fxFlex","48"],["matInput","","placeholder","Default","disabled",""],["fxFlex.gt-sm","48","fxLayoutAlign","start end"],["matInput","","placeholder","Number of Blocks","type","number","name","blocks","required","","tabindex","2",3,"ngModel","step","min","ngModelChange"],["blcks","ngModel"],[4,"ngIf"],["matInput","","placeholder","Fees (Sats/vByte)","type","number","name","ccfees","required","","tabindex","3",3,"ngModel","step","min","ngModelChange"],["clchfee","ngModel"],["mat-stroked-button","","color","primary","type","reset","tabindex","3","default","",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","4",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","5",3,"click"]],template:function(e,t){1&e&&(o.TgZ(0,"div",0),o.TgZ(1,"div",1),o.TgZ(2,"mat-card-header",2),o.TgZ(3,"div",3),o.TgZ(4,"span",4),o._uU(5),o.qZA(),o.qZA(),o.TgZ(6,"button",5),o.NdJ("click",function(){return t.onClose()}),o._uU(7,"X"),o.qZA(),o.qZA(),o.TgZ(8,"mat-card-content",6),o.TgZ(9,"form",7),o.TgZ(10,"div",8),o.TgZ(11,"p",9),o._uU(12),o.qZA(),o.YNc(13,ts,5,1,"div",10),o.YNc(14,cs,9,7,"div",11),o.qZA(),o.TgZ(15,"div",12),o.YNc(16,us,2,0,"button",13),o.YNc(17,ps,2,1,"button",14),o.YNc(18,ds,2,0,"button",15),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA()),2&e&&(o.xp6(5),o.Oqu(t.channelToClose.active?"Close Channel":"Force Close Channel"),o.xp6(7),o.Oqu(t.channelToClose.active?"Closing channel: "+t.channelToClose.channel_point:"Force closing channel: "+t.channelToClose.channel_point),o.xp6(1),o.Q6J("ngIf",t.flgPendingHtlcs),o.xp6(1),o.Q6J("ngIf",!t.flgPendingHtlcs),o.xp6(2),o.Q6J("ngIf",t.channelToClose.active&&!t.flgPendingHtlcs),o.xp6(1),o.Q6J("ngIf",!t.flgPendingHtlcs),o.xp6(1),o.Q6J("ngIf",t.flgPendingHtlcs))},directives:[l.xw,l.yH,w.dk,l.Wh,q.lW,w.dn,Ae._Y,Ae.JL,Ae.F,a.O5,S.Hw,D.KE,we.gD,a.sg,T.BN,ve.ey,Ce.Nt,Ae.wV,Ae.qQ,Ae.Fj,be.q,Ae.Q7,Ae.JJ,Ae.On,D.TO],styles:[""]}),e})();function ms(e,t){1&e&&o._UZ(0,"mat-progress-bar",30)}function gs(e,t){1&e&&(o.TgZ(0,"th",31),o._uU(1," Peer "),o.qZA())}function fs(e,t){1&e&&o._UZ(0,"span",39)}function xs(e,t){1&e&&o._UZ(0,"span",40)}function Zs(e,t){if(1&e&&(o.TgZ(0,"span",41),o._UZ(1,"fa-icon",42),o.qZA()),2&e){const e=o.oxw(2);o.xp6(1),o.Q6J("icon",e.faEyeSlash)}}function ys(e,t){if(1&e&&(o.TgZ(0,"span",43),o._UZ(1,"fa-icon",42),o.qZA()),2&e){const e=o.oxw(2);o.xp6(1),o.Q6J("icon",e.faEye)}}const As=function(e){return{"max-width":e}};function Cs(e,t){if(1&e&&(o.TgZ(0,"td",32),o.TgZ(1,"div",33),o.YNc(2,fs,1,0,"span",34),o.YNc(3,xs,1,0,"span",35),o.YNc(4,Zs,2,1,"span",36),o.YNc(5,ys,2,1,"span",37),o.TgZ(6,"span",38),o._uU(7),o.qZA(),o.qZA(),o.qZA()),2&e){const e=t.$implicit,n=o.oxw();o.xp6(1),o.Q6J("ngStyle",o.VKq(6,As,n.screenSize===n.screenSizeEnum.XS?"10rem":n.screenSize===n.screenSizeEnum.MD?"15rem":"22rem")),o.xp6(1),o.Q6J("ngIf",e.active),o.xp6(1),o.Q6J("ngIf",!e.active),o.xp6(1),o.Q6J("ngIf",e.private),o.xp6(1),o.Q6J("ngIf",!e.private),o.xp6(2),o.Oqu(e.remote_alias||e.remote_pubkey)}}function Ts(e,t){if(1&e&&(o.TgZ(0,"th",44),o._uU(1),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.hij("Uptime (",e.timeUnit,")")}}function bs(e,t){if(1&e&&(o.TgZ(0,"td",32),o.TgZ(1,"span",45),o._uU(2),o.qZA(),o.qZA()),2&e){const e=t.$implicit;o.xp6(2),o.hij("",e.uptime_str," ")}}function ws(e,t){1&e&&(o.TgZ(0,"th",44),o._uU(1,"Sats Sent "),o.qZA())}function _s(e,t){if(1&e&&(o.TgZ(0,"td",32),o.TgZ(1,"span",45),o._uU(2),o.ALo(3,"number"),o.qZA(),o.qZA()),2&e){const e=t.$implicit;o.xp6(2),o.hij("",o.lcZ(3,1,e.total_satoshis_sent)," ")}}function vs(e,t){1&e&&(o.TgZ(0,"th",44),o._uU(1,"Sats Received "),o.qZA())}function qs(e,t){if(1&e&&(o.TgZ(0,"td",32),o.TgZ(1,"span",45),o._uU(2),o.ALo(3,"number"),o.qZA(),o.qZA()),2&e){const e=t.$implicit;o.xp6(2),o.hij("",o.lcZ(3,1,e.total_satoshis_received)," ")}}function Ss(e,t){1&e&&(o.TgZ(0,"th",44),o._uU(1,"Local Balance (Sats) "),o.qZA())}function Fs(e,t){if(1&e&&(o.TgZ(0,"td",32),o.TgZ(1,"span",45),o._uU(2),o.ALo(3,"number"),o.qZA(),o.qZA()),2&e){const e=t.$implicit;o.xp6(2),o.hij("",o.lcZ(3,1,e.local_balance)," ")}}function Ls(e,t){1&e&&(o.TgZ(0,"th",44),o._uU(1,"Remote Balance (Sats) "),o.qZA())}function ks(e,t){if(1&e&&(o.TgZ(0,"td",32),o.TgZ(1,"span",45),o._uU(2),o.ALo(3,"number"),o.qZA(),o.qZA()),2&e){const e=t.$implicit;o.xp6(2),o.hij("",o.lcZ(3,1,e.remote_balance)," ")}}function Ns(e,t){1&e&&(o.TgZ(0,"th",46),o._uU(1,"Balance Score "),o.qZA())}function Us(e,t){if(1&e&&(o.TgZ(0,"td",47),o.TgZ(1,"div",48),o.TgZ(2,"mat-hint",49),o._uU(3),o.ALo(4,"number"),o.qZA(),o.qZA(),o._UZ(5,"mat-progress-bar",50),o.qZA()),2&e){const e=t.$implicit;o.xp6(3),o.Oqu(o.lcZ(4,2,e.balancedness||0)),o.xp6(2),o.s9C("value",e.local_balance&&e.local_balance>0?+e.local_balance/(+e.local_balance+ +e.remote_balance)*100:0)}}function Is(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"th",51),o.TgZ(1,"div",52),o.TgZ(2,"mat-select",53),o._UZ(3,"mat-select-trigger"),o.TgZ(4,"mat-option",54),o.NdJ("click",function(){return o.CHM(e),o.oxw().onChannelUpdate("all")}),o._uU(5,"Update Fee Policy"),o.qZA(),o.TgZ(6,"mat-option",54),o.NdJ("click",function(){return o.CHM(e),o.oxw().onDownloadCSV()}),o._uU(7,"Download CSV"),o.qZA(),o.qZA(),o.qZA(),o.qZA()}}function Os(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"mat-option",54),o.NdJ("click",function(){o.CHM(e);const t=o.oxw().$implicit;return o.oxw().onCircularRebalance(t)}),o._uU(1,"Circular Rebalance"),o.qZA()}}function Js(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"mat-option",54),o.NdJ("click",function(){o.CHM(e);const t=o.oxw().$implicit;return o.oxw().onLoopOut(t)}),o._uU(1,"Loop Out"),o.qZA()}}function Ds(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"td",55),o.TgZ(1,"div",52),o.TgZ(2,"mat-select",56),o._UZ(3,"mat-select-trigger"),o.TgZ(4,"mat-option",54),o.NdJ("click",function(t){const n=o.CHM(e).$implicit;return o.oxw().onChannelClick(n,t)}),o._uU(5,"View Info"),o.qZA(),o.TgZ(6,"mat-option",54),o.NdJ("click",function(){const t=o.CHM(e).$implicit;return o.oxw().onViewRemotePolicy(t)}),o._uU(7,"View Remote Fee "),o.qZA(),o.TgZ(8,"mat-option",54),o.NdJ("click",function(){const t=o.CHM(e).$implicit;return o.oxw().onChannelUpdate(t)}),o._uU(9,"Update Fee Policy"),o.qZA(),o.YNc(10,Os,2,0,"mat-option",57),o.YNc(11,Js,2,0,"mat-option",57),o.TgZ(12,"mat-option",54),o.NdJ("click",function(){const t=o.CHM(e).$implicit;return o.oxw().onChannelClose(t)}),o._uU(13,"Close Channel"),o.qZA(),o.qZA(),o.qZA(),o.qZA()}if(2&e){const e=o.oxw();o.xp6(10),o.Q6J("ngIf",+e.versionsArr[0]>0||+e.versionsArr[1]>=9),o.xp6(1),o.Q6J("ngIf",e.selNode.swapServerUrl)}}function Rs(e,t){1&e&&(o.TgZ(0,"p"),o._uU(1,"No peers connected. Add a peer in order to open a channel."),o.qZA())}function Ms(e,t){1&e&&(o.TgZ(0,"p"),o._uU(1,"No channel available."),o.qZA())}function Es(e,t){1&e&&(o.TgZ(0,"p"),o._uU(1,"Getting channels..."),o.qZA())}function Qs(e,t){if(1&e&&(o.TgZ(0,"p"),o._uU(1),o.qZA()),2&e){const e=o.oxw(2);o.xp6(1),o.Oqu(e.errorMessage)}}function Ys(e,t){if(1&e&&(o.TgZ(0,"td",58),o.YNc(1,Rs,2,0,"p",59),o.YNc(2,Ms,2,0,"p",59),o.YNc(3,Es,2,0,"p",59),o.YNc(4,Qs,2,1,"p",59),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Q6J("ngIf",e.numPeers<1&&(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.FetchAllChannels.status)===e.apiCallStatusEnum.COMPLETED),o.xp6(1),o.Q6J("ngIf",e.numPeers>0&&(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.FetchAllChannels.status)===e.apiCallStatusEnum.COMPLETED),o.xp6(1),o.Q6J("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.FetchAllChannels.status)===e.apiCallStatusEnum.INITIATED),o.xp6(1),o.Q6J("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.FetchAllChannels.status)===e.apiCallStatusEnum.ERROR)}}const Ps=function(e){return{"display-none":e}};function Bs(e,t){if(1&e&&o._UZ(0,"tr",60),2&e){const e=o.oxw();o.Q6J("ngClass",o.VKq(1,Ps,e.numPeers>0&&(null==e.channels?null:e.channels.data)&&(null==e.channels||null==e.channels.data?null:e.channels.data.length)>0))}}function Gs(e,t){1&e&&o._UZ(0,"tr",61)}function Hs(e,t){1&e&&o._UZ(0,"tr",62)}const zs=function(e){return{"overflow-auto error-border":e,"overflow-auto":!0}},Vs=function(){return["no_peer"]};let Ws=(()=>{class e{constructor(e,t,n,a,i,s,o){this.logger=e,this.store=t,this.rtlEffects=n,this.lndEffects=a,this.commonService=i,this.loopService=s,this.decimalPipe=o,this.timeUnit="mins:secs",this.userPersonaEnum=f.ol,this.selNode={},this.totalBalance=0,this.displayedColumns=[],this.channelsData=[],this.myChanPolicy={},this.information={},this.numPeers=-1,this.selFilter="",this.flgSticky=!1,this.pageSize=f.IV,this.pageSizeOptions=f.TJ,this.screenSize="",this.screenSizeEnum=f.cu,this.versionsArr=[],this.faEye=g.Mdf,this.faEyeSlash=g.Aq,this.targetConf=6,this.errorMessage="",this.apisCallStatus=null,this.apiCallStatusEnum=f.Bn,this.unSubs=[new p.x,new p.x,new p.x,new p.x,new p.x,new p.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===f.cu.XS?(this.flgSticky=!1,this.displayedColumns=["remote_alias","local_balance","remote_balance","actions"]):this.screenSize===f.cu.SM||this.screenSize===f.cu.MD?(this.flgSticky=!1,this.displayedColumns=["remote_alias","local_balance","remote_balance","balancedness","actions"]):(this.flgSticky=!0,this.displayedColumns=["remote_alias","uptime","total_satoshis_sent","total_satoshis_received","local_balance","remote_balance","balancedness","actions"])}ngOnInit(){this.store.select("lnd").pipe((0,d.R)(this.unSubs[0])).subscribe(e=>{this.errorMessage="",this.apisCallStatus=e.apisCallStatus,e.apisCallStatus.FetchAllChannels.status===f.Bn.ERROR&&(this.errorMessage="object"==typeof this.apisCallStatus.FetchAllChannels.message?JSON.stringify(this.apisCallStatus.FetchAllChannels.message):this.apisCallStatus.FetchAllChannels.message),this.selNode=e.nodeSettings,this.information=e.information,this.information&&this.information.version&&(this.versionsArr=this.information.version.split(".")),this.numPeers=e.peers&&e.peers.length?e.peers.length:0,this.totalBalance=+e.blockchainBalance.total_balance,this.channelsData=this.calculateUptime(e.allChannels),this.channelsData.length>0&&this.loadChannelsTable(this.channelsData),this.logger.info(e)})}ngAfterViewInit(){this.channelsData.length>0&&this.loadChannelsTable(this.channelsData)}onViewRemotePolicy(e){this.store.dispatch(new x.IG({uiMessage:f.m6.GET_REMOTE_POLICY,channelID:e.chan_id.toString()+"/"+this.information.identity_pubkey})),this.lndEffects.setLookup.pipe((0,pt.q)(1)).subscribe(e=>{if(!e.fee_base_msat&&!e.fee_rate_milli_msat&&!e.time_lock_delta)return!1;this.store.dispatch(new ee.wu({data:{type:f.n_.INFORMATION,alertTitle:"Remote Channel Policy",message:[[{key:"fee_base_msat",value:e.fee_base_msat,title:"Base Fees (mSats)",width:25,type:f.Gi.NUMBER},{key:"fee_rate_milli_msat",value:e.fee_rate_milli_msat,title:"Fee Rate (milli mSats)",width:25,type:f.Gi.NUMBER},{key:"fee_rate_milli_msat",value:e.fee_rate_milli_msat/1e4,title:"Fee Rate (%)",width:25,type:f.Gi.NUMBER,digitsInfo:"1.0-8"},{key:"time_lock_delta",value:e.time_lock_delta,title:"Time Lock Delta",width:25,type:f.Gi.NUMBER}]]}}))})}onCircularRebalance(e){this.store.dispatch(new ee.wu({data:{message:{channels:this.channelsData,selChannel:e},component:es}}))}onChannelUpdate(e){"all"===e?(this.store.dispatch(new ee.b_({data:{type:f.n_.CONFIRM,alertTitle:"Update Fee Policy",noBtnText:"Cancel",yesBtnText:"Update All Channels",message:[],titleMessage:"Update fee policy for all channels",flgShowInput:!0,getInputs:[{placeholder:"Base Fee (mSat)",inputType:f.Gi.NUMBER.toLowerCase(),inputValue:1e3,width:32},{placeholder:"Fee Rate (mili mSat)",inputType:f.Gi.NUMBER.toLowerCase(),inputValue:1,min:1,width:32,hintFunction:this.percentHintFunction},{placeholder:"Time Lock Delta",inputType:f.Gi.NUMBER.toLowerCase(),inputValue:40,width:32}]}})),this.rtlEffects.closeConfirm.pipe((0,d.R)(this.unSubs[1])).subscribe(e=>{e&&this.store.dispatch(new x.k({baseFeeMsat:e[0].inputValue,feeRate:e[1].inputValue,timeLockDelta:e[2].inputValue,chanPoint:"all"}))})):(this.myChanPolicy={fee_base_msat:0,fee_rate_milli_msat:0,time_lock_delta:0},this.store.dispatch(new x.IG({uiMessage:f.m6.GET_CHAN_POLICY,channelID:e.chan_id.toString()})),this.lndEffects.setLookup.pipe((0,pt.q)(1)).subscribe(t=>{this.myChanPolicy=t.node1_pub===this.information.identity_pubkey?t.node1_policy:t.node2_pub===this.information.identity_pubkey?t.node2_policy:{fee_base_msat:0,fee_rate_milli_msat:0,time_lock_delta:0},this.logger.info(this.myChanPolicy),this.store.dispatch(new ee.b_({data:{type:f.n_.CONFIRM,alertTitle:"Update Fee Policy",titleMessage:"Update fee policy for channel point: "+e.channel_point,noBtnText:"Cancel",yesBtnText:"Update Channel",message:[],flgShowInput:!0,getInputs:[{placeholder:"Base Fee (mSat)",inputType:f.Gi.NUMBER.toLowerCase(),inputValue:""===this.myChanPolicy.fee_base_msat?0:this.myChanPolicy.fee_base_msat,width:32},{placeholder:"Fee Rate (mili mSat)",inputType:f.Gi.NUMBER.toLowerCase(),inputValue:this.myChanPolicy.fee_rate_milli_msat,min:1,width:32,hintFunction:this.percentHintFunction},{placeholder:"Time Lock Delta",inputType:f.Gi.NUMBER.toLowerCase(),inputValue:this.myChanPolicy.time_lock_delta,width:32}]}}))}),this.rtlEffects.closeConfirm.pipe((0,d.R)(this.unSubs[2])).subscribe(t=>{t&&this.store.dispatch(new x.k({baseFeeMsat:t[0].inputValue,feeRate:t[1].inputValue,timeLockDelta:t[2].inputValue,chanPoint:e.channel_point}))})),this.applyFilter()}onChannelClose(e){e.active&&this.store.dispatch(new x.jh),this.store.dispatch(new ee.wu({width:"70%",data:{channel:e,component:hs}}))}applyFilter(){this.channels.filter=this.selFilter.trim().toLowerCase()}onChannelClick(e,t){this.store.dispatch(new ee.wu({data:{channel:e,showCopy:!0,component:Si}}))}loadChannelsTable(e){e.sort((e,t)=>e.active===t.active?0:t.active?1:-1),this.channels=new Ze.by([...e]),this.channels.filterPredicate=(e,t)=>((e.active?"active":"inactive")+(e.chan_id?e.chan_id.toLowerCase():"")+(e.remote_pubkey?e.remote_pubkey.toLowerCase():"")+(e.remote_alias?e.remote_alias.toLowerCase():"")+(e.capacity?e.capacity:"")+(e.local_balance?e.local_balance:"")+(e.remote_balance?e.remote_balance:"")+(e.total_satoshis_sent?e.total_satoshis_sent:"")+(e.total_satoshis_received?e.total_satoshis_received:"")+(e.commit_fee?e.commit_fee:"")+(e.private?"private":"public")).includes(t),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(e,t)=>e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():e[t]?+e[t]:null,this.channels.paginator=this.paginator,this.logger.info(this.channels)}calculateUptime(e){const t=3600,n=86400,a=31536e3;let i=60,s=1,o=0;switch(e.forEach(e=>{e.uptime&&+e.uptime>o&&(o=+e.uptime)}),!0){case o=t&&o=n&&oa:this.timeUnit="Yrs:Days",i=a,s=n;break;default:this.timeUnit="Mins:Secs",i=60,s=1}return e.forEach(e=>{e.uptime_str=e.uptime?this.decimalPipe.transform(Math.floor(+e.uptime/i),"2.0-0")+":"+this.decimalPipe.transform(Math.round(+e.uptime%i/s),"2.0-0"):"---"}),e}onLoopOut(e){this.loopService.getLoopOutTermsAndQuotes(this.targetConf).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.store.dispatch(new ee.wu({minHeight:"56rem",data:{channel:e,minQuote:t[0],maxQuote:t[1],direction:f.$I.LOOP_OUT,component:K.a}}))})}onDownloadCSV(){this.channels.data&&this.channels.data.length>0&&this.commonService.downloadFile(this.channels.data,"Open-channels")}percentHintFunction(e){return(e/1e4).toString()+"%"}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(Z.mQ),o.Y36(y.yh),o.Y36(St.V),o.Y36(Ft.l),o.Y36(C.v),o.Y36(te.W),o.Y36(a.JJ))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-channel-open-table"]],viewQuery:function(e,t){if(1&e&&(o.Gf(xe.YE,5),o.Gf(fe.NW,5)),2&e){let e;o.iGM(e=o.CRH())&&(t.sort=e.first),o.iGM(e=o.CRH())&&(t.paginator=e.first)}},features:[o._Bn([{provide:fe.ye,useValue:(0,f.pt)("Channels")}])],decls:39,vars:14,consts:[["fxLayout","column",1,"padding-gap-x"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","name","filter","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","remote_alias"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","uptime"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","total_satoshis_sent"],["matColumnDef","total_satoshis_received"],["matColumnDef","local_balance"],["matColumnDef","remote_balance"],["matColumnDef","balancedness"],["mat-header-cell","","mat-sort-header","","class","pl-2",4,"matHeaderCellDef"],["mat-cell","","class","pl-2",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","pl-1",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center","class","pl-1",4,"matCellDef"],["matColumnDef","no_peer"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"ellipsis-parent",3,"ngStyle"],["class","dot green","matTooltip","Active","matTooltipPosition","right",4,"ngIf"],["class","dot yellow","matTooltip","Inactive","matTooltipPosition","right",4,"ngIf"],["class","mr-1","matTooltip","Private","matTooltipPosition","right",4,"ngIf"],["class","mr-1","matTooltip","Public","matTooltipPosition","right",4,"ngIf"],[1,"ellipsis-child"],["matTooltip","Active","matTooltipPosition","right",1,"dot","green"],["matTooltip","Inactive","matTooltipPosition","right",1,"dot","yellow"],["matTooltip","Private","matTooltipPosition","right",1,"mr-1"],[3,"icon"],["matTooltip","Public","matTooltipPosition","right",1,"mr-1"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","","mat-sort-header","",1,"pl-2"],["mat-cell","",1,"pl-2"],["fxLayout","row"],["fxFlex","100","fxLayoutAlign","center center",1,"font-size-80"],["mode","determinate",3,"value"],["mat-header-cell","",1,"pl-1"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-1"],["placeholder","Actions","tabindex","2",1,"mr-0"],[3,"click",4,"ngIf"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,t){1&e&&(o.TgZ(0,"div",0),o.TgZ(1,"div",1),o._UZ(2,"div",2),o.TgZ(3,"mat-form-field",3),o.TgZ(4,"input",4),o.NdJ("keyup",function(){return t.applyFilter()})("ngModelChange",function(e){return t.selFilter=e}),o.qZA(),o.qZA(),o.qZA(),o.TgZ(5,"div",5),o.YNc(6,ms,1,0,"mat-progress-bar",6),o.TgZ(7,"table",7,8),o.ynx(9,9),o.YNc(10,gs,2,0,"th",10),o.YNc(11,Cs,8,8,"td",11),o.BQk(),o.ynx(12,12),o.YNc(13,Ts,2,1,"th",13),o.YNc(14,bs,3,1,"td",11),o.BQk(),o.ynx(15,14),o.YNc(16,ws,2,0,"th",13),o.YNc(17,_s,4,3,"td",11),o.BQk(),o.ynx(18,15),o.YNc(19,vs,2,0,"th",13),o.YNc(20,qs,4,3,"td",11),o.BQk(),o.ynx(21,16),o.YNc(22,Ss,2,0,"th",13),o.YNc(23,Fs,4,3,"td",11),o.BQk(),o.ynx(24,17),o.YNc(25,Ls,2,0,"th",13),o.YNc(26,ks,4,3,"td",11),o.BQk(),o.ynx(27,18),o.YNc(28,Ns,2,0,"th",19),o.YNc(29,Us,6,4,"td",20),o.BQk(),o.ynx(30,21),o.YNc(31,Is,8,0,"th",22),o.YNc(32,Ds,14,2,"td",23),o.BQk(),o.ynx(33,24),o.YNc(34,Ys,5,4,"td",25),o.BQk(),o.YNc(35,Bs,1,3,"tr",26),o.YNc(36,Gs,1,0,"tr",27),o.YNc(37,Hs,1,0,"tr",28),o.qZA(),o.qZA(),o._UZ(38,"mat-paginator",29),o.qZA()),2&e&&(o.xp6(4),o.Q6J("ngModel",t.selFilter),o.xp6(2),o.Q6J("ngIf",(null==t.apisCallStatus?null:t.apisCallStatus.FetchAllChannels.status)===t.apiCallStatusEnum.INITIATED),o.xp6(1),o.Q6J("dataSource",t.channels)("ngClass",o.VKq(11,zs,""!==t.errorMessage)),o.xp6(28),o.Q6J("matFooterRowDef",o.DdM(13,Vs)),o.xp6(1),o.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),o.xp6(1),o.Q6J("matRowDefColumns",t.displayedColumns),o.xp6(1),o.Q6J("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS))},directives:[l.xw,l.Wh,l.yH,D.KE,Ce.Nt,Ae.Fj,Ae.JJ,Ae.On,E.$V,a.O5,Ze.BZ,xe.YE,a.mk,v.oO,Ze.w1,Ze.fO,Ze.Dz,Ze.mD,Ze.Ke,Ze.as,Ze.nj,fe.NW,r.pW,Ze.ge,xe.nU,Ze.ev,a.PC,v.Zl,R.gM,T.BN,D.bx,we.gD,we.$L,ve.ey,Ze.yh,Ze.Q2,Ze.XQ,Ze.Gk],pipes:[a.JJ],styles:[".mat-column-remote_alias[_ngcontent-%COMP%]{flex:0 0 15%;width:15%}.mat-column-remote_alias[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-balancedness[_ngcontent-%COMP%]{flex:0 0 20%;width:20%}@media only screen and (max-width:75em){.mat-column-balancedness[_ngcontent-%COMP%]{flex:0 0 35%;width:35%}}@media only screen and (max-width:56.25em){.mat-column-balancedness[_ngcontent-%COMP%]{flex:0 0 25%;width:25%}}.mat-column-local_balance[_ngcontent-%COMP%], .mat-column-remote_balance[_ngcontent-%COMP%], .mat-column-total_satoshis_received[_ngcontent-%COMP%], .mat-column-total_satoshis_sent[_ngcontent-%COMP%], .mat-column-uptime[_ngcontent-%COMP%]{flex:1 1 10%;width:10%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@media only screen and (max-width:75em){.mat-column-local_balance[_ngcontent-%COMP%], .mat-column-remote_balance[_ngcontent-%COMP%], .mat-column-total_satoshis_received[_ngcontent-%COMP%], .mat-column-total_satoshis_sent[_ngcontent-%COMP%], .mat-column-uptime[_ngcontent-%COMP%]{white-space:unset;flex:1 1 25%;width:25%}}@media only screen and (max-width:56.25em){.mat-column-local_balance[_ngcontent-%COMP%], .mat-column-remote_balance[_ngcontent-%COMP%], .mat-column-total_satoshis_received[_ngcontent-%COMP%], .mat-column-total_satoshis_sent[_ngcontent-%COMP%], .mat-column-uptime[_ngcontent-%COMP%]{flex:0 0 15%;width:15%}}@media only screen and (max-width:37.5em){.mat-column-local_balance[_ngcontent-%COMP%], .mat-column-remote_balance[_ngcontent-%COMP%], .mat-column-total_satoshis_received[_ngcontent-%COMP%], .mat-column-total_satoshis_sent[_ngcontent-%COMP%], .mat-column-uptime[_ngcontent-%COMP%]{white-space:unset}}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-actions[_ngcontent-%COMP%] .bordered-box.table-actions-select[_ngcontent-%COMP%]{flex:0 0 100%}@media only screen and (max-width:56.25em){.mat-column-actions[_ngcontent-%COMP%] .bordered-box.table-actions-select[_ngcontent-%COMP%]{flex:0 0 90%}}@media only screen and (max-width:37.5em){.mat-column-actions[_ngcontent-%COMP%] .bordered-box.table-actions-select[_ngcontent-%COMP%]{flex:0 0 80%}}"]}),e})();const Xs=["outputIdx"];function $s(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Index for change output is required."),o.qZA())}function js(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Invalid index value."),o.qZA())}function Ks(e,t){if(1&e&&(o.TgZ(0,"mat-option",29),o._uU(1),o.qZA()),2&e){const e=t.$implicit;o.Q6J("value",e.id),o.xp6(1),o.hij(" ",e.name," ")}}function eo(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Number of blocks is required."),o.qZA())}function to(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"mat-form-field",17),o.TgZ(1,"input",30,31),o.NdJ("ngModelChange",function(t){return o.CHM(e),o.oxw().blocks=t}),o.qZA(),o.YNc(3,eo,2,0,"mat-error",20),o.qZA()}if(2&e){const e=o.oxw();o.xp6(1),o.Q6J("ngModel",e.blocks)("step",1)("min",0),o.xp6(2),o.Q6J("ngIf",!e.blocks)}}function no(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Fees is required."),o.qZA())}function ao(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"mat-form-field",17),o.TgZ(1,"input",32,33),o.NdJ("ngModelChange",function(t){return o.CHM(e),o.oxw().fees=t}),o.qZA(),o.YNc(3,no,2,0,"mat-error",20),o.qZA()}if(2&e){const e=o.oxw();o.xp6(1),o.Q6J("ngModel",e.fees)("step",1)("min",0),o.xp6(2),o.Q6J("ngIf",!e.fees)}}function io(e,t){if(1&e&&(o.TgZ(0,"div",34),o._UZ(1,"fa-icon",13),o.TgZ(2,"span"),o._uU(3),o.qZA(),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Q6J("icon",e.faExclamationTriangle),o.xp6(2),o.Oqu(e.bumpFeeError)}}let so=(()=>{class e{constructor(e,t,n,a,i){this.dialogRef=e,this.data=t,this.logger=n,this.dataService=a,this.snackBar=i,this.transTypes=[...f.Dr],this.selTransType="2",this.blocks=null,this.fees=null,this.outputIndex=null,this.faCopy=g.kZ_,this.faInfoCircle=g.sqG,this.faExclamationTriangle=g.eHv,this.bumpFeeError="",this.unSubs=[new p.x,new p.x]}set payReq(e){e&&(this.outputIdx=e)}ngOnInit(){this.transTypes=this.transTypes.splice(1),this.bumpFeeChannel=this.data.pendingChannel;const e=this.bumpFeeChannel.channel&&this.bumpFeeChannel.channel.channel_point?this.bumpFeeChannel.channel.channel_point.split(":"):[];this.bumpFeeChannel.channel.txid_str=e[0]?e[0]:this.bumpFeeChannel.channel&&this.bumpFeeChannel.channel.channel_point?this.bumpFeeChannel.channel.channel_point:"",this.bumpFeeChannel.channel.output_index=e[1]?+e[1]:null}onBumpFee(){return this.outputIndex===this.bumpFeeChannel.channel.output_index?(this.outputIdx.control.setErrors({pendingChannelOutputIndex:!0}),!0):!this.outputIndex&&0!==this.outputIndex||!("1"!==this.selTransType||this.blocks&&0!==this.blocks)||!("2"!==this.selTransType||this.fees&&0!==this.fees)||void this.dataService.bumpFee(this.bumpFeeChannel.channel.txid_str,this.outputIndex,this.blocks,this.fees).pipe((0,d.R)(this.unSubs[0])).subscribe({next:e=>{this.dialogRef.close(!1)},error:e=>{this.logger.error(e),this.bumpFeeError=e.message?e.message:e}})}onCopyID(e){this.snackBar.open("Transaction ID copied.")}resetData(){this.bumpFeeError="",this.selTransType="2",this.blocks=null,this.fees=null,this.outputIdx.control.setErrors(null)}onClose(){this.dialogRef.close(!1)}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(ye.so),o.Y36(ye.WI),o.Y36(Z.mQ),o.Y36(dt.D),o.Y36(Ai.ux))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-bump-fee"]],viewQuery:function(e,t){if(1&e&&o.Gf(Xs,5),2&e){let e;o.iGM(e=o.CRH())&&(t.payReq=e.first)}},decls:48,vars:15,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],["fxLayout","column",1,"bordered-box","mb-1","p-2"],["fxLayoutAlign","start center",1,"pb-1","word-break"],["matSuffix","","rtlClipboard","","matTooltip","Copy transaction ID",1,"ml-1",3,"icon","payload","copied"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"alert","alert-info"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column","fxFlex","100"],[1,"pl-1"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxFlex.gt-sm","32","fxLayoutAlign","start end"],["matInput","","placeholder","Index for Change Output","type","number","tabindex","1","required","","name","outputIdx",3,"ngModel","step","min","ngModelChange"],["outputIdx","ngModel"],[4,"ngIf"],["fxFlex.gt-sm","32"],["tabindex","2",3,"value","valueChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["fxFlex.gt-sm","32","fxLayoutAlign","start end",4,"ngIf"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","reset","tabindex","5","default","",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","6",3,"click"],[3,"value"],["matInput","","placeholder","Number of Blocks","type","number","name","blocks","required","","tabindex","3",3,"ngModel","step","min","ngModelChange"],["blcks","ngModel"],["matInput","","placeholder","Fees (Sats/vByte)","type","number","name","fees","required","","tabindex","4",3,"ngModel","step","min","ngModelChange"],["fee","ngModel"],["fxFlex","100",1,"alert","alert-danger","mt-1"]],template:function(e,t){if(1&e&&(o.TgZ(0,"div",0),o.TgZ(1,"div",1),o.TgZ(2,"mat-card-header",2),o.TgZ(3,"div",3),o.TgZ(4,"span",4),o._uU(5,"Bump Fee"),o.qZA(),o.qZA(),o.TgZ(6,"button",5),o.NdJ("click",function(){return t.onClose()}),o._uU(7,"X"),o.qZA(),o.qZA(),o.TgZ(8,"mat-card-content",6),o.TgZ(9,"form",7),o.TgZ(10,"div",8),o.TgZ(11,"p",9),o._uU(12),o.TgZ(13,"fa-icon",10),o.NdJ("copied",function(e){return t.onCopyID(e)}),o.qZA(),o.qZA(),o.TgZ(14,"div",11),o.TgZ(15,"div",12),o._UZ(16,"fa-icon",13),o.TgZ(17,"span",14),o._uU(18,"Bumping fee on pending open channels is an advanced feature, attempt it only if you are familiar with the functionality of Bitcoin transactions. "),o.TgZ(19,"div"),o._uU(20,"Before attempting fee bump ensure the following:"),o.qZA(),o.TgZ(21,"div",15),o._uU(22,"1: Use a Bitcoin block explorer to ensure that channel opening transaction is not confirmed."),o.qZA(),o.TgZ(23,"div",15),o._uU(24,"2: The channel opening transaction must have a sizable change output, which can be spent further. The fee cannot be bumped without the change output."),o.qZA(),o.TgZ(25,"div",15),o._uU(26,"3: Find the index value of the change output via a block explorer."),o.qZA(),o.TgZ(27,"div",15),o._uU(28,"4: Enter the index value of the change output in the form below and the desired fee rate."),o.qZA(),o.TgZ(29,"div",15),o._uU(30,"5: Upon successful fee bump, use your block explorer to track the child transaction in the mempool, which should be linked with the change output transaction."),o.qZA(),o.qZA(),o.qZA(),o.TgZ(31,"div",16),o.TgZ(32,"mat-form-field",17),o.TgZ(33,"input",18,19),o.NdJ("ngModelChange",function(e){return t.outputIndex=e}),o.qZA(),o.YNc(35,$s,2,0,"mat-error",20),o.YNc(36,js,2,0,"mat-error",20),o.qZA(),o.TgZ(37,"mat-form-field",21),o.TgZ(38,"mat-select",22),o.NdJ("valueChange",function(e){return t.selTransType=e})("selectionChange",function(){return t.blocks=null,t.fees=null}),o.YNc(39,Ks,2,2,"mat-option",23),o.qZA(),o.qZA(),o.YNc(40,to,4,4,"mat-form-field",24),o.YNc(41,ao,4,4,"mat-form-field",24),o.qZA(),o.YNc(42,io,4,2,"div",25),o.qZA(),o.qZA(),o.TgZ(43,"div",26),o.TgZ(44,"button",27),o.NdJ("click",function(){return t.resetData()}),o._uU(45,"Clear"),o.qZA(),o.TgZ(46,"button",28),o.NdJ("click",function(){return t.onBumpFee()}),o._uU(47),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA()),2&e){const e=o.MAs(34);o.xp6(12),o.hij("Bump fee for channel point: ",null==t.bumpFeeChannel||null==t.bumpFeeChannel.channel?null:t.bumpFeeChannel.channel.channel_point," "),o.xp6(1),o.Q6J("icon",t.faCopy)("payload",null==t.bumpFeeChannel||null==t.bumpFeeChannel.channel?null:t.bumpFeeChannel.channel.txid_str),o.xp6(3),o.Q6J("icon",t.faInfoCircle),o.xp6(17),o.Q6J("ngModel",t.outputIndex)("step",1)("min",0),o.xp6(2),o.Q6J("ngIf",null==e.errors?null:e.errors.required),o.xp6(1),o.Q6J("ngIf",null==e.errors?null:e.errors.pendingChannelOutputIndex),o.xp6(2),o.Q6J("value",t.selTransType),o.xp6(1),o.Q6J("ngForOf",t.transTypes),o.xp6(1),o.Q6J("ngIf","1"===t.selTransType),o.xp6(1),o.Q6J("ngIf","2"===t.selTransType),o.xp6(1),o.Q6J("ngIf",""!==t.bumpFeeError),o.xp6(5),o.Oqu(""!==t.bumpFeeError?"Retry Bump Fee":"Bump Fee")}},directives:[l.xw,l.yH,w.dk,l.Wh,q.lW,w.dn,Ae._Y,Ae.JL,Ae.F,T.BN,D.R9,Ci.y,R.gM,D.KE,Ce.Nt,Ae.wV,Ae.qQ,Ae.Fj,be.q,Ae.Q7,Ae.JJ,Ae.On,a.O5,we.gD,a.sg,D.TO,ve.ey],styles:[""]}),e})();function oo(e,t){1&e&&o._UZ(0,"mat-progress-bar",36)}function lo(e,t){1&e&&o._UZ(0,"mat-progress-bar",36)}function ro(e,t){1&e&&(o.TgZ(0,"mat-header-cell",37),o._uU(1," Peer "),o.qZA())}const co=function(e){return{"max-width":e}};function uo(e,t){if(1&e&&(o.TgZ(0,"mat-cell",38),o._uU(1),o.qZA()),2&e){const e=t.$implicit,n=o.oxw();o.Q6J("ngStyle",o.VKq(2,co,n.screenSize===n.screenSizeEnum.XS?"10rem":"30rem")),o.xp6(1),o.Oqu(e.channel.remote_alias)}}function po(e,t){1&e&&(o.TgZ(0,"mat-header-cell",39),o._uU(1,"Commit Fee (Sats) "),o.qZA())}function ho(e,t){if(1&e&&(o.TgZ(0,"mat-cell",40),o._uU(1),o.ALo(2,"number"),o.qZA()),2&e){const e=t.$implicit;o.xp6(1),o.Oqu(o.lcZ(2,1,e.commit_fee))}}function mo(e,t){1&e&&(o.TgZ(0,"mat-header-cell",39),o._uU(1,"Commit Weight "),o.qZA())}function go(e,t){if(1&e&&(o.TgZ(0,"mat-cell",40),o._uU(1),o.ALo(2,"number"),o.qZA()),2&e){const e=t.$implicit;o.xp6(1),o.Oqu(o.lcZ(2,1,e.commit_weight))}}function fo(e,t){1&e&&(o.TgZ(0,"mat-header-cell",39),o._uU(1,"Capacity (Sats)"),o.qZA())}function xo(e,t){if(1&e&&(o.TgZ(0,"mat-cell",40),o._uU(1),o.ALo(2,"number"),o.qZA()),2&e){const e=t.$implicit;o.xp6(1),o.Oqu(o.lcZ(2,1,e.channel.capacity))}}function Zo(e,t){1&e&&(o.TgZ(0,"mat-header-cell",41),o._uU(1,"Actions"),o.qZA())}function yo(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"mat-cell",42),o.TgZ(1,"div",43),o.TgZ(2,"mat-select",44),o._UZ(3,"mat-select-trigger"),o.TgZ(4,"mat-option",45),o.NdJ("click",function(){const t=o.CHM(e).$implicit;return o.oxw().onOpenClick(t)}),o._uU(5,"View Info"),o.qZA(),o.TgZ(6,"mat-option",45),o.NdJ("click",function(){const t=o.CHM(e).$implicit;return o.oxw().onBumpFee(t)}),o._uU(7,"Bump Fee"),o.qZA(),o.qZA(),o.qZA(),o.qZA()}}function Ao(e,t){1&e&&(o.TgZ(0,"p"),o._uU(1,"No pending channel."),o.qZA())}function Co(e,t){1&e&&(o.TgZ(0,"p"),o._uU(1,"Getting pending channels..."),o.qZA())}function To(e,t){if(1&e&&(o.TgZ(0,"p"),o._uU(1),o.qZA()),2&e){const e=o.oxw(2);o.xp6(1),o.Oqu(e.errorMessage)}}function bo(e,t){if(1&e&&(o.TgZ(0,"td",46),o.YNc(1,Ao,2,0,"p",47),o.YNc(2,Co,2,0,"p",47),o.YNc(3,To,2,1,"p",47),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Q6J("ngIf",(!e.pendingOpenChannels||!(null!=e.pendingOpenChannels&&e.pendingOpenChannels.data)||(null==e.pendingOpenChannels||null==e.pendingOpenChannels.data?null:e.pendingOpenChannels.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.FetchPendingChannels.status)===e.apiCallStatusEnum.COMPLETED),o.xp6(1),o.Q6J("ngIf",(!e.pendingOpenChannels||!(null!=e.pendingOpenChannels&&e.pendingOpenChannels.data)||(null==e.pendingOpenChannels||null==e.pendingOpenChannels.data?null:e.pendingOpenChannels.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.FetchPendingChannels.status)===e.apiCallStatusEnum.INITIATED),o.xp6(1),o.Q6J("ngIf",(!e.pendingOpenChannels||!(null!=e.pendingOpenChannels&&e.pendingOpenChannels.data)||(null==e.pendingOpenChannels||null==e.pendingOpenChannels.data?null:e.pendingOpenChannels.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.FetchPendingChannels.status)===e.apiCallStatusEnum.ERROR)}}const wo=function(e){return{"display-none":e}};function _o(e,t){if(1&e&&o._UZ(0,"tr",48),2&e){const e=o.oxw();o.Q6J("ngClass",o.VKq(1,wo,e.pendingOpenChannels&&(null==e.pendingOpenChannels?null:e.pendingOpenChannels.data)&&(null==e.pendingOpenChannels||null==e.pendingOpenChannels.data?null:e.pendingOpenChannels.data.length)>0))}}function vo(e,t){1&e&&o._UZ(0,"mat-header-row")}function qo(e,t){1&e&&o._UZ(0,"mat-row",49)}function So(e,t){1&e&&o._UZ(0,"mat-progress-bar",36)}function Fo(e,t){1&e&&(o.TgZ(0,"mat-header-cell",37),o._uU(1," Peer "),o.qZA())}function Lo(e,t){if(1&e&&(o.TgZ(0,"mat-cell",38),o._uU(1),o.qZA()),2&e){const e=t.$implicit,n=o.oxw();o.Q6J("ngStyle",o.VKq(2,co,n.screenSize===n.screenSizeEnum.XS?"10rem":"30rem")),o.xp6(1),o.Oqu(e.channel.remote_alias)}}function ko(e,t){1&e&&(o.TgZ(0,"mat-header-cell",39),o._uU(1,"Recovered Balance (Sats) "),o.qZA())}function No(e,t){if(1&e&&(o.TgZ(0,"mat-cell",40),o._uU(1),o.ALo(2,"number"),o.qZA()),2&e){const e=t.$implicit;o.xp6(1),o.Oqu(o.lcZ(2,1,e.recovered_balance))}}function Uo(e,t){1&e&&(o.TgZ(0,"mat-header-cell",39),o._uU(1,"Limbo Balance (Sats) "),o.qZA())}function Io(e,t){if(1&e&&(o.TgZ(0,"mat-cell",40),o._uU(1),o.ALo(2,"number"),o.qZA()),2&e){const e=t.$implicit;o.xp6(1),o.Oqu(o.lcZ(2,1,e.limbo_balance))}}function Oo(e,t){1&e&&(o.TgZ(0,"mat-header-cell",39),o._uU(1,"Capacity (Sats) "),o.qZA())}function Jo(e,t){if(1&e&&(o.TgZ(0,"mat-cell",40),o._uU(1),o.ALo(2,"number"),o.qZA()),2&e){const e=t.$implicit;o.xp6(1),o.Oqu(o.lcZ(2,1,e.channel.capacity))}}function Do(e,t){1&e&&(o.TgZ(0,"mat-header-cell",50),o._uU(1,"Actions"),o.qZA())}function Ro(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"mat-cell",51),o.TgZ(1,"button",52),o.NdJ("click",function(){const t=o.CHM(e).$implicit;return o.oxw().onForceClosingClick(t)}),o._uU(2,"View Info"),o.qZA(),o.qZA()}}function Mo(e,t){1&e&&(o.TgZ(0,"p"),o._uU(1,"No pending channel."),o.qZA())}function Eo(e,t){1&e&&(o.TgZ(0,"p"),o._uU(1,"Getting pending channels..."),o.qZA())}function Qo(e,t){if(1&e&&(o.TgZ(0,"p"),o._uU(1),o.qZA()),2&e){const e=o.oxw(2);o.xp6(1),o.Oqu(e.errorMessage)}}function Yo(e,t){if(1&e&&(o.TgZ(0,"td",46),o.YNc(1,Mo,2,0,"p",47),o.YNc(2,Eo,2,0,"p",47),o.YNc(3,Qo,2,1,"p",47),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Q6J("ngIf",(!e.pendingForceClosingChannels||!(null!=e.pendingForceClosingChannels&&e.pendingForceClosingChannels.data)||(null==e.pendingForceClosingChannels||null==e.pendingForceClosingChannels.data?null:e.pendingForceClosingChannels.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.FetchPendingChannels.status)===e.apiCallStatusEnum.COMPLETED),o.xp6(1),o.Q6J("ngIf",(!e.pendingForceClosingChannels||!(null!=e.pendingForceClosingChannels&&e.pendingForceClosingChannels.data)||(null==e.pendingForceClosingChannels||null==e.pendingForceClosingChannels.data?null:e.pendingForceClosingChannels.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.FetchPendingChannels.status)===e.apiCallStatusEnum.INITIATED),o.xp6(1),o.Q6J("ngIf",(!e.pendingForceClosingChannels||!(null!=e.pendingForceClosingChannels&&e.pendingForceClosingChannels.data)||(null==e.pendingForceClosingChannels||null==e.pendingForceClosingChannels.data?null:e.pendingForceClosingChannels.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.FetchPendingChannels.status)===e.apiCallStatusEnum.ERROR)}}function Po(e,t){if(1&e&&o._UZ(0,"tr",48),2&e){const e=o.oxw();o.Q6J("ngClass",o.VKq(1,wo,e.pendingForceClosingChannels&&(null==e.pendingForceClosingChannels?null:e.pendingForceClosingChannels.data)&&(null==e.pendingForceClosingChannels||null==e.pendingForceClosingChannels.data?null:e.pendingForceClosingChannels.data.length)>0))}}function Bo(e,t){1&e&&o._UZ(0,"mat-header-row")}function Go(e,t){1&e&&o._UZ(0,"mat-row",49)}function Ho(e,t){1&e&&o._UZ(0,"mat-progress-bar",36)}function zo(e,t){1&e&&(o.TgZ(0,"mat-header-cell",53),o._uU(1," Peer "),o.qZA())}function Vo(e,t){if(1&e&&(o.TgZ(0,"mat-cell",54),o._uU(1),o.qZA()),2&e){const e=t.$implicit,n=o.oxw();o.Q6J("ngStyle",o.VKq(2,co,n.screenSize===n.screenSizeEnum.XS?"10rem":"30rem")),o.xp6(1),o.Oqu(e.channel.remote_alias)}}function Wo(e,t){1&e&&(o.TgZ(0,"mat-header-cell",39),o._uU(1," Local Balance (Sats) "),o.qZA())}function Xo(e,t){if(1&e&&(o.TgZ(0,"mat-cell",40),o._uU(1),o.ALo(2,"number"),o.qZA()),2&e){const e=t.$implicit;o.xp6(1),o.Oqu(o.lcZ(2,1,e.channel.local_balance))}}function $o(e,t){1&e&&(o.TgZ(0,"mat-header-cell",39),o._uU(1," Remote Balance (Sats) "),o.qZA())}function jo(e,t){if(1&e&&(o.TgZ(0,"mat-cell",40),o._uU(1),o.ALo(2,"number"),o.qZA()),2&e){const e=t.$implicit;o.xp6(1),o.Oqu(o.lcZ(2,1,e.channel.remote_balance))}}function Ko(e,t){1&e&&(o.TgZ(0,"mat-header-cell",39),o._uU(1," Capacity (Sats) "),o.qZA())}function el(e,t){if(1&e&&(o.TgZ(0,"mat-cell",40),o._uU(1),o.ALo(2,"number"),o.qZA()),2&e){const e=t.$implicit;o.xp6(1),o.Oqu(o.lcZ(2,1,e.channel.capacity))}}function tl(e,t){1&e&&(o.TgZ(0,"mat-header-cell",50),o._uU(1,"Actions"),o.qZA())}function nl(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"mat-cell",51),o.TgZ(1,"button",55),o.NdJ("click",function(){const t=o.CHM(e).$implicit;return o.oxw().onClosingClick(t)}),o._uU(2,"View Info"),o.qZA(),o.qZA()}}function al(e,t){1&e&&(o.TgZ(0,"p"),o._uU(1,"No pending channel."),o.qZA())}function il(e,t){1&e&&(o.TgZ(0,"p"),o._uU(1,"Getting pending channels..."),o.qZA())}function sl(e,t){if(1&e&&(o.TgZ(0,"p"),o._uU(1),o.qZA()),2&e){const e=o.oxw(2);o.xp6(1),o.Oqu(e.errorMessage)}}function ol(e,t){if(1&e&&(o.TgZ(0,"td",46),o.YNc(1,al,2,0,"p",47),o.YNc(2,il,2,0,"p",47),o.YNc(3,sl,2,1,"p",47),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Q6J("ngIf",(!e.pendingClosingChannels||!(null!=e.pendingClosingChannels&&e.pendingClosingChannels.data)||(null==e.pendingClosingChannels||null==e.pendingClosingChannels.data?null:e.pendingClosingChannels.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.FetchPendingChannels.status)===e.apiCallStatusEnum.COMPLETED),o.xp6(1),o.Q6J("ngIf",(!e.pendingClosingChannels||!(null!=e.pendingClosingChannels&&e.pendingClosingChannels.data)||(null==e.pendingClosingChannels||null==e.pendingClosingChannels.data?null:e.pendingClosingChannels.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.FetchPendingChannels.status)===e.apiCallStatusEnum.INITIATED),o.xp6(1),o.Q6J("ngIf",(!e.pendingClosingChannels||!(null!=e.pendingClosingChannels&&e.pendingClosingChannels.data)||(null==e.pendingClosingChannels||null==e.pendingClosingChannels.data?null:e.pendingClosingChannels.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.FetchPendingChannels.status)===e.apiCallStatusEnum.ERROR)}}function ll(e,t){if(1&e&&o._UZ(0,"tr",48),2&e){const e=o.oxw();o.Q6J("ngClass",o.VKq(1,wo,e.pendingClosingChannels&&(null==e.pendingClosingChannels?null:e.pendingClosingChannels.data)&&(null==e.pendingClosingChannels||null==e.pendingClosingChannels.data?null:e.pendingClosingChannels.data.length)>0))}}function rl(e,t){1&e&&o._UZ(0,"mat-header-row")}function cl(e,t){1&e&&o._UZ(0,"mat-row",49)}function ul(e,t){1&e&&o._UZ(0,"mat-progress-bar",36)}function pl(e,t){1&e&&(o.TgZ(0,"mat-header-cell",53),o._uU(1," Peer "),o.qZA())}function dl(e,t){if(1&e&&(o.TgZ(0,"mat-cell",54),o._uU(1),o.qZA()),2&e){const e=t.$implicit,n=o.oxw();o.Q6J("ngStyle",o.VKq(2,co,n.screenSize===n.screenSizeEnum.XS?"10rem":"30rem")),o.xp6(1),o.Oqu(e.channel.remote_alias)}}function hl(e,t){1&e&&(o.TgZ(0,"mat-header-cell",39),o._uU(1," Limbo Balance (Sats) "),o.qZA())}function ml(e,t){if(1&e&&(o.TgZ(0,"mat-cell",40),o._uU(1),o.ALo(2,"number"),o.qZA()),2&e){const e=t.$implicit;o.xp6(1),o.hij("",o.lcZ(2,1,e.limbo_balance)," ")}}function gl(e,t){1&e&&(o.TgZ(0,"mat-header-cell",39),o._uU(1," Local Balance (Sats) "),o.qZA())}function fl(e,t){if(1&e&&(o.TgZ(0,"mat-cell",40),o._uU(1),o.ALo(2,"number"),o.qZA()),2&e){const e=t.$implicit;o.xp6(1),o.Oqu(o.lcZ(2,1,e.channel.local_balance))}}function xl(e,t){1&e&&(o.TgZ(0,"mat-header-cell",39),o._uU(1," Remote Balance (Sats) "),o.qZA())}function Zl(e,t){if(1&e&&(o.TgZ(0,"mat-cell",40),o._uU(1),o.ALo(2,"number"),o.qZA()),2&e){const e=t.$implicit;o.xp6(1),o.Oqu(o.lcZ(2,1,e.channel.remote_balance))}}function yl(e,t){1&e&&(o.TgZ(0,"mat-header-cell",39),o._uU(1," Capacity (Sats) "),o.qZA())}function Al(e,t){if(1&e&&(o.TgZ(0,"mat-cell",40),o._uU(1),o.ALo(2,"number"),o.qZA()),2&e){const e=t.$implicit;o.xp6(1),o.Oqu(o.lcZ(2,1,e.channel.capacity))}}function Cl(e,t){1&e&&(o.TgZ(0,"mat-header-cell",50),o._uU(1,"Actions"),o.qZA())}function Tl(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"mat-cell",51),o.TgZ(1,"button",56),o.NdJ("click",function(){const t=o.CHM(e).$implicit;return o.oxw().onWaitClosingClick(t)}),o._uU(2,"View Info"),o.qZA(),o.qZA()}}function bl(e,t){1&e&&(o.TgZ(0,"p"),o._uU(1,"No pending channel."),o.qZA())}function wl(e,t){1&e&&(o.TgZ(0,"p"),o._uU(1,"Getting pending channels..."),o.qZA())}function _l(e,t){if(1&e&&(o.TgZ(0,"p"),o._uU(1),o.qZA()),2&e){const e=o.oxw(2);o.xp6(1),o.Oqu(e.errorMessage)}}function vl(e,t){if(1&e&&(o.TgZ(0,"td",46),o.YNc(1,bl,2,0,"p",47),o.YNc(2,wl,2,0,"p",47),o.YNc(3,_l,2,1,"p",47),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Q6J("ngIf",(!e.pendingWaitClosingChannels||!(null!=e.pendingWaitClosingChannels&&e.pendingWaitClosingChannels.data)||(null==e.pendingWaitClosingChannels||null==e.pendingWaitClosingChannels.data?null:e.pendingWaitClosingChannels.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.FetchPendingChannels.status)===e.apiCallStatusEnum.COMPLETED),o.xp6(1),o.Q6J("ngIf",(!e.pendingWaitClosingChannels||!(null!=e.pendingWaitClosingChannels&&e.pendingWaitClosingChannels.data)||(null==e.pendingWaitClosingChannels||null==e.pendingWaitClosingChannels.data?null:e.pendingWaitClosingChannels.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.FetchPendingChannels.status)===e.apiCallStatusEnum.INITIATED),o.xp6(1),o.Q6J("ngIf",(!e.pendingWaitClosingChannels||!(null!=e.pendingWaitClosingChannels&&e.pendingWaitClosingChannels.data)||(null==e.pendingWaitClosingChannels||null==e.pendingWaitClosingChannels.data?null:e.pendingWaitClosingChannels.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.FetchPendingChannels.status)===e.apiCallStatusEnum.ERROR)}}const ql=function(e){return{"py-0":!0,"display-none":e}};function Sl(e,t){if(1&e&&o._UZ(0,"tr",48),2&e){const e=o.oxw();o.Q6J("ngClass",o.VKq(1,ql,e.pendingWaitClosingChannels&&(null==e.pendingWaitClosingChannels?null:e.pendingWaitClosingChannels.data)&&(null==e.pendingWaitClosingChannels||null==e.pendingWaitClosingChannels.data?null:e.pendingWaitClosingChannels.data.length)>0))}}function Fl(e,t){1&e&&o._UZ(0,"mat-header-row")}function Ll(e,t){1&e&&o._UZ(0,"mat-row",49)}const kl=function(e){return{"error-border bordered-box":e,"bordered-box":!0}},Nl=function(){return["no_pending_open"]},Ul=function(){return["no_pending_force_closing"]},Il=function(){return["no_pending_closing"]},Ol=function(){return["no_pending_wait_closing"]};let Jl=(()=>{class e{constructor(e,t,n){this.logger=e,this.store=t,this.commonService=n,this.selNode={},this.selectedFilter="",this.information={},this.pendingChannels={},this.displayedOpenColumns=["remote_alias","commit_fee","commit_weight","capacity","actions"],this.pendingOpenChannelsLength=0,this.displayedForceClosingColumns=["remote_alias","recovered_balance","limbo_balance","capacity","actions"],this.pendingForceClosingChannelsLength=0,this.displayedClosingColumns=["remote_alias","local_balance","remote_balance","capacity","actions"],this.pendingClosingChannelsLength=0,this.displayedWaitClosingColumns=["remote_alias","limbo_balance","local_balance","remote_balance","actions"],this.pendingWaitClosingChannelsLength=0,this.screenSize="",this.screenSizeEnum=f.cu,this.errorMessage="",this.apisCallStatus=null,this.apiCallStatusEnum=f.Bn,this.unSubs=[new p.x,new p.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===f.cu.XS?(this.displayedOpenColumns=["remote_alias","actions"],this.displayedForceClosingColumns=["remote_alias","actions"],this.displayedClosingColumns=["remote_alias","actions"],this.displayedWaitClosingColumns=["remote_alias","actions"]):this.screenSize===f.cu.SM||this.screenSize===f.cu.MD?(this.displayedOpenColumns=["remote_alias","commit_fee","actions"],this.displayedForceClosingColumns=["remote_alias","limbo_balance","actions"],this.displayedClosingColumns=["remote_alias","remote_balance","actions"],this.displayedWaitClosingColumns=["remote_alias","limbo_balance","actions"]):(this.displayedOpenColumns=["remote_alias","commit_fee","commit_weight","capacity","actions"],this.displayedForceClosingColumns=["remote_alias","recovered_balance","limbo_balance","capacity","actions"],this.displayedClosingColumns=["remote_alias","local_balance","remote_balance","capacity","actions"],this.displayedWaitClosingColumns=["remote_alias","limbo_balance","local_balance","remote_balance","actions"])}ngOnInit(){this.store.select("lnd").pipe((0,d.R)(this.unSubs[0])).subscribe(e=>{this.errorMessage="",this.apisCallStatus=e.apisCallStatus,e.apisCallStatus.FetchPendingChannels.status===f.Bn.ERROR&&(this.errorMessage="object"==typeof this.apisCallStatus.FetchPendingChannels.message?JSON.stringify(this.apisCallStatus.FetchPendingChannels.message):this.apisCallStatus.FetchPendingChannels.message),this.selNode=e.nodeSettings,this.information=e.information,this.pendingChannels=e.pendingChannels,this.pendingChannels.pending_open_channels&&this.pendingChannels.pending_open_channels.length&&this.pendingChannels.pending_open_channels.length>0&&this.loadOpenChannelsTable(this.pendingChannels.pending_open_channels),this.pendingChannels.pending_force_closing_channels&&this.pendingChannels.pending_force_closing_channels.length&&this.pendingChannels.pending_force_closing_channels.length>0&&this.loadForceClosingChannelsTable(this.pendingChannels.pending_force_closing_channels),this.pendingChannels.pending_closing_channels&&this.pendingChannels.pending_closing_channels.length&&this.pendingChannels.pending_closing_channels.length>0&&this.loadClosingChannelsTable(this.pendingChannels.pending_closing_channels),this.pendingChannels.waiting_close_channels&&this.pendingChannels.waiting_close_channels.length&&this.pendingChannels.waiting_close_channels.length>0&&this.loadWaitClosingChannelsTable(this.pendingChannels.waiting_close_channels),this.logger.info(e)})}ngAfterViewInit(){this.pendingChannels.pending_open_channels&&this.pendingChannels.pending_open_channels.length&&this.pendingChannels.pending_open_channels.length>0&&this.loadOpenChannelsTable(this.pendingChannels.pending_open_channels),this.pendingChannels.pending_force_closing_channels&&this.pendingChannels.pending_force_closing_channels.length&&this.pendingChannels.pending_force_closing_channels.length>0&&this.loadForceClosingChannelsTable(this.pendingChannels.pending_force_closing_channels),this.pendingChannels.pending_closing_channels&&this.pendingChannels.pending_closing_channels.length&&this.pendingChannels.pending_closing_channels.length>0&&this.loadClosingChannelsTable(this.pendingChannels.pending_closing_channels),this.pendingChannels.waiting_close_channels&&this.pendingChannels.waiting_close_channels.length&&this.pendingChannels.waiting_close_channels.length>0&&this.loadWaitClosingChannelsTable(this.pendingChannels.waiting_close_channels)}onOpenClick(e){const t=JSON.parse(JSON.stringify(e,["commit_weight","confirmation_height","fee_per_kw","commit_fee"],2)),n=JSON.parse(JSON.stringify(e.channel,["remote_alias","channel_point","remote_balance","local_balance","remote_node_pub","capacity"],2)),a={};Object.assign(a,t,n),this.store.dispatch(new ee.wu({data:{type:f.n_.INFORMATION,alertTitle:"Opening Channel Information",message:[[{key:"channel_point",value:a.channel_point,title:"Channel Point",width:100,type:f.Gi.STRING}],[{key:"remote_alias",value:a.remote_alias,title:"Peer Alias",width:25,type:f.Gi.STRING},{key:"remote_node_pub",value:a.remote_node_pub,title:"Peer Node Pubkey",width:75,type:f.Gi.STRING}],[{key:"capacity",value:a.capacity,title:"Capacity",width:25,type:f.Gi.NUMBER},{key:"confirmation_height",value:a.confirmation_height,title:"Confirmation Height",width:25,type:f.Gi.NUMBER},{key:"local_balance",value:a.local_balance,title:"Local Balance",width:25,type:f.Gi.NUMBER},{key:"remote_balance",value:a.remote_balance,title:"Remote Balance",width:25,type:f.Gi.NUMBER}],[{key:"fee_per_kw",value:a.fee_per_kw,title:"Fee/KW",width:25,type:f.Gi.NUMBER},{key:"commit_weight",value:a.commit_weight,title:"Commit Weight",width:25,type:f.Gi.NUMBER},{key:"commit_fee",value:a.commit_fee,title:"Commit Fee",width:50,type:f.Gi.NUMBER}]]}}))}onBumpFee(e){this.store.dispatch(new ee.wu({data:{pendingChannel:e,component:so}}))}onForceClosingClick(e){const t=JSON.parse(JSON.stringify(e,["closing_txid","limbo_balance","maturity_height","blocks_til_maturity","recovered_balance"],2)),n=JSON.parse(JSON.stringify(e.channel,["remote_alias","channel_point","remote_balance","local_balance","remote_node_pub","capacity"],2)),a={};Object.assign(a,t,n),this.store.dispatch(new ee.wu({data:{type:f.n_.INFORMATION,alertTitle:"Force Closing Channel Information",message:[[{key:"closing_txid",value:a.closing_txid,title:"Closing Transaction ID",width:100,type:f.Gi.STRING}],[{key:"channel_point",value:a.channel_point,title:"Channel Point",width:100,type:f.Gi.STRING}],[{key:"remote_alias",value:a.remote_alias,title:"Peer Alias",width:25,type:f.Gi.STRING},{key:"remote_node_pub",value:a.remote_node_pub,title:"Peer Node Pubkey",width:75,type:f.Gi.STRING}],[{key:"capacity",value:a.capacity,title:"Capacity",width:25,type:f.Gi.NUMBER},{key:"limbo_balance",value:a.limbo_balance,title:"Limbo Balance",width:25,type:f.Gi.NUMBER},{key:"local_balance",value:a.local_balance,title:"Local Balance",width:25,type:f.Gi.NUMBER},{key:"remote_balance",value:a.remote_balance,title:"Remote Balance",width:25,type:f.Gi.NUMBER}],[{key:"maturity_height",value:a.maturity_height,title:"Maturity Height",width:25,type:f.Gi.NUMBER},{key:"blocks_til_maturity",value:a.blocks_til_maturity,title:"Blocks Till Maturity",width:25,type:f.Gi.NUMBER},{key:"recovered_balance",value:a.recovered_balance,title:"Recovered Balance",width:50,type:f.Gi.NUMBER}]]}}))}onClosingClick(e){const t=JSON.parse(JSON.stringify(e,["closing_txid"],2)),n=JSON.parse(JSON.stringify(e.channel,["remote_alias","channel_point","remote_balance","local_balance","remote_node_pub","capacity"],2)),a={};Object.assign(a,t,n),this.store.dispatch(new ee.wu({data:{type:f.n_.INFORMATION,alertTitle:"Closing Channel Information",message:[[{key:"closing_txid",value:a.closing_txid,title:"Closing Transaction ID",width:50,type:f.Gi.STRING}],[{key:"channel_point",value:a.channel_point,title:"Channel Point",width:100,type:f.Gi.STRING}],[{key:"remote_alias",value:a.remote_alias,title:"Peer Alias",width:25,type:f.Gi.STRING},{key:"remote_node_pub",value:a.remote_node_pub,title:"Peer Node Pubkey",width:75,type:f.Gi.STRING}],[{key:"capacity",value:a.capacity,title:"Capacity",width:25,type:f.Gi.NUMBER},{key:"local_balance",value:a.local_balance,title:"Local Balance",width:25,type:f.Gi.NUMBER},{key:"remote_balance",value:a.remote_balance,title:"Remote Balance",width:50,type:f.Gi.NUMBER}]]}}))}onWaitClosingClick(e){const t=JSON.parse(JSON.stringify(e,["limbo_balance"],2)),n=JSON.parse(JSON.stringify(e.channel,["remote_alias","channel_point","remote_balance","local_balance","remote_node_pub","capacity"],2)),a=JSON.parse(JSON.stringify(e.commitments,["local_txid"],2)),i={};Object.assign(i,t,n,a),this.store.dispatch(new ee.wu({data:{type:f.n_.INFORMATION,alertTitle:"Wait Closing Channel Information",message:[[{key:"local_txid",value:i.local_txid,title:"Transaction ID",width:100,type:f.Gi.STRING}],[{key:"channel_point",value:i.channel_point,title:"Channel Point",width:100,type:f.Gi.STRING}],[{key:"remote_alias",value:i.remote_alias,title:"Peer Alias",width:25,type:f.Gi.STRING},{key:"remote_node_pub",value:i.remote_node_pub,title:"Peer Node Pubkey",width:75,type:f.Gi.STRING}],[{key:"capacity",value:i.capacity,title:"Capacity",width:25,type:f.Gi.NUMBER},{key:"limbo_balance",value:i.limbo_balance,title:"Limbo Balance",width:25,type:f.Gi.NUMBER},{key:"local_balance",value:i.local_balance,title:"Local Balance",width:25,type:f.Gi.NUMBER},{key:"remote_balance",value:i.remote_balance,title:"Remote Balance",width:25,type:f.Gi.NUMBER}]]}}))}loadOpenChannelsTable(e){e.sort((e,t)=>e.active===t.active?0:t.active?-1:1),this.pendingOpenChannelsLength=e.length?e.length:0,this.pendingOpenChannels=new Ze.by([...e]),this.pendingOpenChannels.sort=this.sort,this.pendingOpenChannels.sortingDataAccessor=(e,t)=>e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():e[t]?+e[t]:null,this.pendingOpenChannels.filterPredicate=(e,t)=>JSON.stringify(e).toLowerCase().includes(t),this.logger.info(this.pendingOpenChannels)}loadForceClosingChannelsTable(e){e.sort((e,t)=>e.active===t.active?0:t.active?-1:1),this.pendingForceClosingChannelsLength=e.length?e.length:0,this.pendingForceClosingChannels=new Ze.by([...e]),this.pendingForceClosingChannels.sort=this.sort,this.pendingForceClosingChannels.sortingDataAccessor=(e,t)=>e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():e[t]?+e[t]:null,this.pendingForceClosingChannels.filterPredicate=(e,t)=>JSON.stringify(e).toLowerCase().includes(t),this.logger.info(this.pendingForceClosingChannels)}loadClosingChannelsTable(e){e.sort((e,t)=>e.active===t.active?0:t.active?-1:1),this.pendingClosingChannelsLength=e.length?e.length:0,this.pendingClosingChannels=new Ze.by([...e]),this.pendingClosingChannels.sort=this.sort,this.pendingClosingChannels.sortingDataAccessor=(e,t)=>e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():e[t]?+e[t]:null,this.pendingClosingChannels.filterPredicate=(e,t)=>JSON.stringify(e).toLowerCase().includes(t),this.logger.info(this.pendingClosingChannels)}loadWaitClosingChannelsTable(e){e.sort((e,t)=>e.active===t.active?0:t.active?-1:1),this.pendingWaitClosingChannelsLength=e.length?e.length:0,this.pendingWaitClosingChannels=new Ze.by([...e]),this.pendingWaitClosingChannels.sort=this.sort,this.pendingWaitClosingChannels.sortingDataAccessor=(e,t)=>e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():e[t]?+e[t]:null,this.pendingWaitClosingChannels.filterPredicate=(e,t)=>JSON.stringify(e).toLowerCase().includes(t),this.logger.info(this.pendingWaitClosingChannels)}applyFilter(e){this.selectedFilter=e.trim().toLowerCase()}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(Z.mQ),o.Y36(y.yh),o.Y36(C.v))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-channel-pending-table"]],viewQuery:function(e,t){if(1&e&&o.Gf(xe.YE,5),2&e){let e;o.iGM(e=o.CRH())&&(t.sort=e.first)}},decls:121,vars:44,consts:[["fxLayout","column",1,"mb-2"],[1,"page-title"],["displayMode","flat",1,"mt-1"],["mode","indeterminate",4,"ngIf"],["fxLayout","column",1,"flat-expansion-panel"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","remote_alias"],["mat-sort-header","",4,"matHeaderCellDef"],[3,"ngStyle",4,"matCellDef"],["matColumnDef","commit_fee"],["fxLayoutAlign","end center","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","commit_weight"],["matColumnDef","capacity"],["matColumnDef","actions"],["fxLayoutAlign","end center","class","pl-3 pr-4",4,"matHeaderCellDef"],["fxLayoutAlign","end center","class","px-3",4,"matCellDef"],["matColumnDef","no_pending_open"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","","fxLayoutAlign","start center",3,"ngClass",4,"matFooterRowDef"],[4,"matHeaderRowDef"],["fxLayoutAlign","stretch stretch",4,"matRowDef","matRowDefColumns"],["mat-table","","matSort","",3,"dataSource","ngClass"],["matColumnDef","recovered_balance"],["matColumnDef","limbo_balance"],["fxLayoutAlign","end center","class","pl-4 pr-3",4,"matHeaderCellDef"],["fxLayoutAlign","end center","class","pl-4",4,"matCellDef"],["matColumnDef","no_pending_force_closing"],["class","pl-2","mat-sort-header","",4,"matHeaderCellDef"],["class","pl-2",3,"ngStyle",4,"matCellDef"],["matColumnDef","local_balance"],["matColumnDef","remote_balance"],["matColumnDef","no_pending_closing"],["matColumnDef","no_pending_wait_closing"],["mode","indeterminate"],["mat-sort-header",""],[3,"ngStyle"],["fxLayoutAlign","end center","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["fxLayoutAlign","end center",1,"pl-3","pr-4"],["fxLayoutAlign","end center",1,"px-3"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","","fxLayoutAlign","start center",3,"ngClass"],["fxLayoutAlign","stretch stretch"],["fxLayoutAlign","end center",1,"pl-4","pr-3"],["fxLayoutAlign","end center",1,"pl-4"],["mat-stroked-button","","color","primary","type","button","tabindex","2",3,"click"],["mat-sort-header","",1,"pl-2"],[1,"pl-2",3,"ngStyle"],["mat-stroked-button","","color","primary","type","button","tabindex","3",3,"click"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"]],template:function(e,t){1&e&&(o.TgZ(0,"div",0),o.TgZ(1,"span",1),o._uU(2),o.ALo(3,"number"),o.qZA(),o.TgZ(4,"mat-accordion",2),o.YNc(5,oo,1,0,"mat-progress-bar",3),o.TgZ(6,"mat-expansion-panel",4),o.TgZ(7,"mat-expansion-panel-header"),o.TgZ(8,"mat-panel-title"),o._uU(9),o.qZA(),o.qZA(),o.TgZ(10,"div",5),o.YNc(11,lo,1,0,"mat-progress-bar",3),o.TgZ(12,"table",6,7),o.ynx(14,8),o.YNc(15,ro,2,0,"mat-header-cell",9),o.YNc(16,uo,2,4,"mat-cell",10),o.BQk(),o.ynx(17,11),o.YNc(18,po,2,0,"mat-header-cell",12),o.YNc(19,ho,3,3,"mat-cell",13),o.BQk(),o.ynx(20,14),o.YNc(21,mo,2,0,"mat-header-cell",12),o.YNc(22,go,3,3,"mat-cell",13),o.BQk(),o.ynx(23,15),o.YNc(24,fo,2,0,"mat-header-cell",12),o.YNc(25,xo,3,3,"mat-cell",13),o.BQk(),o.ynx(26,16),o.YNc(27,Zo,2,0,"mat-header-cell",17),o.YNc(28,yo,8,0,"mat-cell",18),o.BQk(),o.ynx(29,19),o.YNc(30,bo,4,3,"td",20),o.BQk(),o.YNc(31,_o,1,3,"tr",21),o.YNc(32,vo,1,0,"mat-header-row",22),o.YNc(33,qo,1,0,"mat-row",23),o.qZA(),o.qZA(),o.qZA(),o.YNc(34,So,1,0,"mat-progress-bar",3),o.TgZ(35,"mat-expansion-panel",4),o.TgZ(36,"mat-expansion-panel-header"),o.TgZ(37,"mat-panel-title"),o._uU(38),o.qZA(),o.qZA(),o.TgZ(39,"div",5),o.TgZ(40,"table",24,7),o.ynx(42,8),o.YNc(43,Fo,2,0,"mat-header-cell",9),o.YNc(44,Lo,2,4,"mat-cell",10),o.BQk(),o.ynx(45,25),o.YNc(46,ko,2,0,"mat-header-cell",12),o.YNc(47,No,3,3,"mat-cell",13),o.BQk(),o.ynx(48,26),o.YNc(49,Uo,2,0,"mat-header-cell",12),o.YNc(50,Io,3,3,"mat-cell",13),o.BQk(),o.ynx(51,15),o.YNc(52,Oo,2,0,"mat-header-cell",12),o.YNc(53,Jo,3,3,"mat-cell",13),o.BQk(),o.ynx(54,16),o.YNc(55,Do,2,0,"mat-header-cell",27),o.YNc(56,Ro,3,0,"mat-cell",28),o.BQk(),o.ynx(57,29),o.YNc(58,Yo,4,3,"td",20),o.BQk(),o.YNc(59,Po,1,3,"tr",21),o.YNc(60,Bo,1,0,"mat-header-row",22),o.YNc(61,Go,1,0,"mat-row",23),o.qZA(),o.qZA(),o.qZA(),o.YNc(62,Ho,1,0,"mat-progress-bar",3),o.TgZ(63,"mat-expansion-panel",4),o.TgZ(64,"mat-expansion-panel-header"),o.TgZ(65,"mat-panel-title"),o._uU(66),o.qZA(),o.qZA(),o.TgZ(67,"div",5),o.TgZ(68,"table",24,7),o.ynx(70,8),o.YNc(71,zo,2,0,"mat-header-cell",30),o.YNc(72,Vo,2,4,"mat-cell",31),o.BQk(),o.ynx(73,32),o.YNc(74,Wo,2,0,"mat-header-cell",12),o.YNc(75,Xo,3,3,"mat-cell",13),o.BQk(),o.ynx(76,33),o.YNc(77,$o,2,0,"mat-header-cell",12),o.YNc(78,jo,3,3,"mat-cell",13),o.BQk(),o.ynx(79,15),o.YNc(80,Ko,2,0,"mat-header-cell",12),o.YNc(81,el,3,3,"mat-cell",13),o.BQk(),o.ynx(82,16),o.YNc(83,tl,2,0,"mat-header-cell",27),o.YNc(84,nl,3,0,"mat-cell",28),o.BQk(),o.ynx(85,34),o.YNc(86,ol,4,3,"td",20),o.BQk(),o.YNc(87,ll,1,3,"tr",21),o.YNc(88,rl,1,0,"mat-header-row",22),o.YNc(89,cl,1,0,"mat-row",23),o.qZA(),o.qZA(),o.qZA(),o.YNc(90,ul,1,0,"mat-progress-bar",3),o.TgZ(91,"mat-expansion-panel",4),o.TgZ(92,"mat-expansion-panel-header"),o.TgZ(93,"mat-panel-title"),o._uU(94),o.qZA(),o.qZA(),o.TgZ(95,"div",5),o.TgZ(96,"table",24,7),o.ynx(98,8),o.YNc(99,pl,2,0,"mat-header-cell",30),o.YNc(100,dl,2,4,"mat-cell",31),o.BQk(),o.ynx(101,26),o.YNc(102,hl,2,0,"mat-header-cell",12),o.YNc(103,ml,3,3,"mat-cell",13),o.BQk(),o.ynx(104,32),o.YNc(105,gl,2,0,"mat-header-cell",12),o.YNc(106,fl,3,3,"mat-cell",13),o.BQk(),o.ynx(107,33),o.YNc(108,xl,2,0,"mat-header-cell",12),o.YNc(109,Zl,3,3,"mat-cell",13),o.BQk(),o.ynx(110,15),o.YNc(111,yl,2,0,"mat-header-cell",12),o.YNc(112,Al,3,3,"mat-cell",13),o.BQk(),o.ynx(113,16),o.YNc(114,Cl,2,0,"mat-header-cell",27),o.YNc(115,Tl,3,0,"mat-cell",28),o.BQk(),o.ynx(116,35),o.YNc(117,vl,4,3,"td",20),o.BQk(),o.YNc(118,Sl,1,3,"tr",21),o.YNc(119,Fl,1,0,"mat-header-row",22),o.YNc(120,Ll,1,0,"mat-row",23),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA()),2&e&&(o.xp6(2),o.hij("Total Limbo Balance: ",o.lcZ(3,30,t.pendingChannels.total_limbo_balance)," Sats"),o.xp6(3),o.Q6J("ngIf",(null==t.apisCallStatus?null:t.apisCallStatus.FetchPendingChannels.status)===t.apiCallStatusEnum.INITIATED),o.xp6(4),o.hij("Pending Open (",t.pendingOpenChannelsLength,")"),o.xp6(2),o.Q6J("ngIf",(null==t.apisCallStatus?null:t.apisCallStatus.FetchPendingChannels.status)===t.apiCallStatusEnum.INITIATED),o.xp6(1),o.Q6J("dataSource",t.pendingOpenChannels)("ngClass",o.VKq(32,kl,""!==t.errorMessage)),o.xp6(19),o.Q6J("matFooterRowDef",o.DdM(34,Nl)),o.xp6(1),o.Q6J("matHeaderRowDef",t.displayedOpenColumns),o.xp6(1),o.Q6J("matRowDefColumns",t.displayedOpenColumns),o.xp6(1),o.Q6J("ngIf",(null==t.apisCallStatus?null:t.apisCallStatus.FetchPendingChannels.status)===t.apiCallStatusEnum.INITIATED),o.xp6(4),o.hij("Pending Force Closing (",t.pendingForceClosingChannelsLength,")"),o.xp6(2),o.Q6J("dataSource",t.pendingForceClosingChannels)("ngClass",o.VKq(35,kl,""!==t.errorMessage)),o.xp6(19),o.Q6J("matFooterRowDef",o.DdM(37,Ul)),o.xp6(1),o.Q6J("matHeaderRowDef",t.displayedForceClosingColumns),o.xp6(1),o.Q6J("matRowDefColumns",t.displayedForceClosingColumns),o.xp6(1),o.Q6J("ngIf",(null==t.apisCallStatus?null:t.apisCallStatus.FetchPendingChannels.status)===t.apiCallStatusEnum.INITIATED),o.xp6(4),o.hij("Pending Closing (",t.pendingClosingChannelsLength,")"),o.xp6(2),o.Q6J("dataSource",t.pendingClosingChannels)("ngClass",o.VKq(38,kl,""!==t.errorMessage)),o.xp6(19),o.Q6J("matFooterRowDef",o.DdM(40,Il)),o.xp6(1),o.Q6J("matHeaderRowDef",t.displayedClosingColumns),o.xp6(1),o.Q6J("matRowDefColumns",t.displayedClosingColumns),o.xp6(1),o.Q6J("ngIf",(null==t.apisCallStatus?null:t.apisCallStatus.FetchPendingChannels.status)===t.apiCallStatusEnum.INITIATED),o.xp6(4),o.hij("Waiting Close (",t.pendingWaitClosingChannelsLength,")"),o.xp6(2),o.Q6J("dataSource",t.pendingWaitClosingChannels)("ngClass",o.VKq(41,kl,""!==t.errorMessage)),o.xp6(22),o.Q6J("matFooterRowDef",o.DdM(43,Ol)),o.xp6(1),o.Q6J("matHeaderRowDef",t.displayedWaitClosingColumns),o.xp6(1),o.Q6J("matRowDefColumns",t.displayedWaitClosingColumns))},directives:[l.xw,ht.pp,a.O5,ht.ib,ht.yz,ht.yK,l.Wh,l.yH,E.$V,Ze.BZ,xe.YE,a.mk,v.oO,Ze.w1,Ze.fO,Ze.Dz,Ze.mD,Ze.Ke,Ze.as,Ze.nj,r.pW,Ze.ge,xe.nU,Ze.ev,a.PC,v.Zl,we.gD,we.$L,ve.ey,Ze.yh,Ze.Q2,Ze.XQ,Ze.Gk,q.lW],pipes:[a.JJ],styles:[".mat-column-channel_point[_ngcontent-%COMP%]{flex:1 1 10%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}tr.mat-footer-row[_ngcontent-%COMP%] td.mat-footer-cell[_ngcontent-%COMP%]{border-bottom:none}"]}),e})();function Dl(e,t){1&e&&o._UZ(0,"mat-progress-bar",28)}function Rl(e,t){1&e&&(o.TgZ(0,"th",29),o._uU(1," Close Type "),o.qZA())}function Ml(e,t){if(1&e&&(o.TgZ(0,"td",30),o._uU(1),o.qZA()),2&e){const e=t.$implicit,n=o.oxw();o.Q6J("matTooltip",n.channelClosureType[e.close_type].tooltip),o.xp6(1),o.hij("",n.channelClosureType[e.close_type].name," ")}}function El(e,t){1&e&&(o.TgZ(0,"th",29),o._uU(1," Peer "),o.qZA())}const Ql=function(e){return{"max-width":e}};function Yl(e,t){if(1&e&&(o.TgZ(0,"td",31),o._uU(1),o.qZA()),2&e){const e=t.$implicit,n=o.oxw();o.Q6J("ngStyle",o.VKq(2,Ql,n.screenSize===n.screenSizeEnum.XS?"10rem":"20rem")),o.xp6(1),o.hij(" ",e.remote_alias," ")}}function Pl(e,t){1&e&&(o.TgZ(0,"th",32),o._uU(1," Capacity "),o.qZA())}function Bl(e,t){if(1&e&&(o.TgZ(0,"td",33),o.TgZ(1,"span",34),o._uU(2),o.ALo(3,"number"),o.qZA(),o.qZA()),2&e){const e=t.$implicit;o.xp6(2),o.hij(" ",o.lcZ(3,1,e.capacity)," ")}}function Gl(e,t){1&e&&(o.TgZ(0,"th",32),o._uU(1," Close Height "),o.qZA())}function Hl(e,t){if(1&e&&(o.TgZ(0,"td",33),o.TgZ(1,"span",34),o._uU(2),o.ALo(3,"number"),o.qZA(),o.qZA()),2&e){const e=t.$implicit;o.xp6(2),o.hij(" ",o.lcZ(3,1,e.close_height)," ")}}function zl(e,t){1&e&&(o.TgZ(0,"th",32),o._uU(1," Settled Balance "),o.qZA())}function Vl(e,t){if(1&e&&(o.TgZ(0,"td",33),o.TgZ(1,"span",34),o._uU(2),o.ALo(3,"number"),o.qZA(),o.qZA()),2&e){const e=t.$implicit;o.xp6(2),o.hij(" ",o.lcZ(3,1,e.settled_balance)," ")}}function Wl(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"th",35),o.TgZ(1,"div",36),o.TgZ(2,"mat-select",37),o._UZ(3,"mat-select-trigger"),o.TgZ(4,"mat-option",38),o.NdJ("click",function(){return o.CHM(e),o.oxw().onDownloadCSV()}),o._uU(5,"Download CSV"),o.qZA(),o.qZA(),o.qZA(),o.qZA()}}function Xl(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"td",39),o.TgZ(1,"span",34),o.TgZ(2,"button",40),o.NdJ("click",function(t){const n=o.CHM(e).$implicit;return o.oxw().onClosedChannelClick(n,t)}),o._uU(3,"View Info"),o.qZA(),o.qZA(),o.qZA()}}function $l(e,t){1&e&&(o.TgZ(0,"p"),o._uU(1,"No closed channel available."),o.qZA())}function jl(e,t){1&e&&(o.TgZ(0,"p"),o._uU(1,"Getting closed channels..."),o.qZA())}function Kl(e,t){if(1&e&&(o.TgZ(0,"p"),o._uU(1),o.qZA()),2&e){const e=o.oxw(2);o.xp6(1),o.Oqu(e.errorMessage)}}function er(e,t){if(1&e&&(o.TgZ(0,"td",41),o.YNc(1,$l,2,0,"p",42),o.YNc(2,jl,2,0,"p",42),o.YNc(3,Kl,2,1,"p",42),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Q6J("ngIf",(!(null!=e.closedChannels&&e.closedChannels.data)||(null==e.closedChannels||null==e.closedChannels.data?null:e.closedChannels.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.FetchClosedChannels.status)===e.apiCallStatusEnum.COMPLETED),o.xp6(1),o.Q6J("ngIf",(!(null!=e.closedChannels&&e.closedChannels.data)||(null==e.closedChannels||null==e.closedChannels.data?null:e.closedChannels.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.FetchClosedChannels.status)===e.apiCallStatusEnum.INITIATED),o.xp6(1),o.Q6J("ngIf",(!(null!=e.closedChannels&&e.closedChannels.data)||(null==e.closedChannels||null==e.closedChannels.data?null:e.closedChannels.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.FetchClosedChannels.status)===e.apiCallStatusEnum.ERROR)}}const tr=function(e){return{"display-none":e}};function nr(e,t){if(1&e&&o._UZ(0,"tr",43),2&e){const e=o.oxw();o.Q6J("ngClass",o.VKq(1,tr,(null==e.closedChannels?null:e.closedChannels.data)&&(null==e.closedChannels||null==e.closedChannels.data?null:e.closedChannels.data.length)>0))}}function ar(e,t){1&e&&o._UZ(0,"tr",44)}function ir(e,t){1&e&&o._UZ(0,"tr",45)}const sr=function(e){return{"error-border":e,"overflow-auto":!0}},or=function(){return["no_closed_channel"]};let lr=(()=>{class e{constructor(e,t,n){this.logger=e,this.store=t,this.commonService=n,this.channelClosureType=f.HW,this.faHistory=g.qO$,this.displayedColumns=[],this.closedChannelsData=[],this.flgSticky=!1,this.pageSize=f.IV,this.pageSizeOptions=f.TJ,this.screenSize="",this.screenSizeEnum=f.cu,this.errorMessage="",this.apisCallStatus=null,this.apiCallStatusEnum=f.Bn,this.unsub=[new p.x,new p.x,new p.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===f.cu.XS?(this.flgSticky=!1,this.displayedColumns=["remote_alias","actions"]):this.screenSize===f.cu.SM||this.screenSize===f.cu.MD?(this.flgSticky=!1,this.displayedColumns=["close_type","remote_alias","settled_balance","actions"]):(this.flgSticky=!0,this.displayedColumns=["close_type","remote_alias","capacity","close_height","settled_balance","actions"])}ngOnInit(){this.store.select("lnd").pipe((0,d.R)(this.unsub[0])).subscribe(e=>{this.errorMessage="",this.apisCallStatus=e.apisCallStatus,e.apisCallStatus.FetchClosedChannels.status===f.Bn.ERROR&&(this.errorMessage="object"==typeof this.apisCallStatus.FetchClosedChannels.message?JSON.stringify(this.apisCallStatus.FetchClosedChannels.message):this.apisCallStatus.FetchClosedChannels.message),this.closedChannelsData=e.closedChannels,this.closedChannelsData.length>0&&this.loadClosedChannelsTable(this.closedChannelsData),this.logger.info(e)})}ngAfterViewInit(){this.closedChannelsData.length>0&&this.loadClosedChannelsTable(this.closedChannelsData)}applyFilter(e){this.closedChannels.filter=e.value.trim().toLowerCase()}onClosedChannelClick(e,t){this.store.dispatch(new ee.wu({data:{type:f.n_.INFORMATION,alertTitle:"Closed Channel Information",message:[[{key:"close_type",value:this.channelClosureType[e.close_type].name,title:"Close Type",width:30,type:f.Gi.STRING},{key:"settled_balance",value:e.settled_balance,title:"Settled Balance",width:30,type:f.Gi.NUMBER},{key:"time_locked_balance",value:e.time_locked_balance,title:"Time Locked Balance",width:40,type:f.Gi.NUMBER}],[{key:"chan_id",value:e.chan_id,title:"Channel ID",width:30},{key:"capacity",value:e.capacity,title:"Capacity",width:30,type:f.Gi.NUMBER},{key:"close_height",value:e.close_height,title:"Close Height",width:40,type:f.Gi.NUMBER}],[{key:"remote_alias",value:e.remote_alias,title:"Peer Alias",width:30},{key:"remote_pubkey",value:e.remote_pubkey,title:"Peer Public Key",width:70}],[{key:"channel_point",value:e.channel_point,title:"Channel Point",width:100}],[{key:"closing_tx_hash",value:e.closing_tx_hash,title:"Closing Transaction Hash",width:100,type:f.Gi.STRING}]]}}))}loadClosedChannelsTable(e){this.closedChannels=new Ze.by([...e]),this.closedChannels.sort=this.sort,this.closedChannels.sortingDataAccessor=(e,t)=>e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():e[t]?+e[t]:null,this.closedChannels.filterPredicate=(e,t)=>JSON.stringify(e).toLowerCase().includes(t),this.closedChannels.paginator=this.paginator,this.logger.info(this.closedChannels)}onDownloadCSV(){this.closedChannels.data&&this.closedChannels.data.length>0&&this.commonService.downloadFile(this.closedChannels.data,"Closed-channels")}ngOnDestroy(){this.unsub.forEach(e=>{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(Z.mQ),o.Y36(y.yh),o.Y36(C.v))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-channel-closed-table"]],viewQuery:function(e,t){if(1&e&&(o.Gf(xe.YE,5),o.Gf(fe.NW,5)),2&e){let e;o.iGM(e=o.CRH())&&(t.sort=e.first),o.iGM(e=o.CRH())&&(t.paginator=e.first)}},features:[o._Bn([{provide:fe.ye,useValue:(0,f.pt)("Channels")}])],decls:33,vars:13,consts:[["fxLayout","column"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"keyup"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","close_type"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"matTooltip",4,"matCellDef"],["matColumnDef","remote_alias"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","capacity"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","close_height"],["matColumnDef","settled_balance"],["matColumnDef","actions"],["mat-header-cell","","class","pl-1",4,"matHeaderCellDef"],["mat-cell","","class","pl-1",4,"matCellDef"],["matColumnDef","no_closed_channel"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"matTooltip"],["mat-cell","",3,"ngStyle"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["mat-cell",""],["fxLayoutAlign","end center"],["mat-header-cell","",1,"pl-1"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","",1,"pl-1"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,t){1&e&&(o.TgZ(0,"div",0),o.TgZ(1,"div",1),o._UZ(2,"div",2),o.TgZ(3,"mat-form-field",3),o.TgZ(4,"input",4),o.NdJ("keyup",function(e){return t.applyFilter(e.target)}),o.qZA(),o.qZA(),o.qZA(),o.TgZ(5,"div",5),o.YNc(6,Dl,1,0,"mat-progress-bar",6),o.TgZ(7,"table",7,8),o.ynx(9,9),o.YNc(10,Rl,2,0,"th",10),o.YNc(11,Ml,2,2,"td",11),o.BQk(),o.ynx(12,12),o.YNc(13,El,2,0,"th",10),o.YNc(14,Yl,2,4,"td",13),o.BQk(),o.ynx(15,14),o.YNc(16,Pl,2,0,"th",15),o.YNc(17,Bl,4,3,"td",16),o.BQk(),o.ynx(18,17),o.YNc(19,Gl,2,0,"th",15),o.YNc(20,Hl,4,3,"td",16),o.BQk(),o.ynx(21,18),o.YNc(22,zl,2,0,"th",15),o.YNc(23,Vl,4,3,"td",16),o.BQk(),o.ynx(24,19),o.YNc(25,Wl,6,0,"th",20),o.YNc(26,Xl,4,0,"td",21),o.BQk(),o.ynx(27,22),o.YNc(28,er,4,3,"td",23),o.BQk(),o.YNc(29,nr,1,3,"tr",24),o.YNc(30,ar,1,0,"tr",25),o.YNc(31,ir,1,0,"tr",26),o.qZA(),o.qZA(),o._UZ(32,"mat-paginator",27),o.qZA()),2&e&&(o.xp6(6),o.Q6J("ngIf",(null==t.apisCallStatus?null:t.apisCallStatus.FetchClosedChannels.status)===t.apiCallStatusEnum.INITIATED),o.xp6(1),o.Q6J("dataSource",t.closedChannels)("ngClass",o.VKq(10,sr,""!==t.errorMessage)),o.xp6(22),o.Q6J("matFooterRowDef",o.DdM(12,or)),o.xp6(1),o.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),o.xp6(1),o.Q6J("matRowDefColumns",t.displayedColumns),o.xp6(1),o.Q6J("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS))},directives:[l.xw,l.Wh,l.yH,D.KE,Ce.Nt,E.$V,a.O5,Ze.BZ,xe.YE,a.mk,v.oO,Ze.w1,Ze.fO,Ze.Dz,Ze.mD,Ze.Ke,Ze.as,Ze.nj,fe.NW,r.pW,Ze.ge,xe.nU,Ze.ev,R.gM,a.PC,v.Zl,we.gD,we.$L,ve.ey,q.lW,Ze.yh,Ze.Q2,Ze.XQ,Ze.Gk],pipes:[a.JJ],styles:[".mat-column-close_type[_ngcontent-%COMP%]{flex:0 0 16%;min-width:5rem}.mat-column-remote_alias[_ngcontent-%COMP%]{flex:1 1 20%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),e})();function rr(e,t){1&e&&o._UZ(0,"mat-progress-bar",27)}function cr(e,t){1&e&&(o.TgZ(0,"th",28),o._uU(1,"Amount (Sats)"),o.qZA())}function ur(e,t){if(1&e&&(o.TgZ(0,"span",33),o._uU(1),o.ALo(2,"number"),o.qZA()),2&e){const e=t.$implicit;o.xp6(1),o.hij(" ",o.lcZ(2,1,null==e?null:e.amount)," ")}}function pr(e,t){if(1&e&&(o.TgZ(0,"span"),o.YNc(1,ur,3,3,"span",32),o.qZA()),2&e){const e=o.oxw().$implicit;o.xp6(1),o.Q6J("ngForOf",null==e?null:e.pending_htlcs)}}function dr(e,t){if(1&e&&(o.TgZ(0,"td",29),o.TgZ(1,"span",30),o._uU(2),o.qZA(),o.YNc(3,pr,2,1,"span",31),o.qZA()),2&e){const e=t.$implicit;o.xp6(2),o.hij(" Active HTLCs: ",null==e||null==e.pending_htlcs?null:e.pending_htlcs.length," "),o.xp6(1),o.Q6J("ngIf",e.is_expanded)}}function hr(e,t){1&e&&(o.TgZ(0,"th",28),o._uU(1,"Alias/Incoming"),o.qZA())}function mr(e,t){if(1&e&&(o.TgZ(0,"span",30),o._uU(1),o.qZA()),2&e){const e=t.$implicit;o.xp6(1),o.hij(" ",null!=e&&e.incoming?"Yes":"No"," ")}}function gr(e,t){if(1&e&&(o.ynx(0),o.YNc(1,mr,2,1,"span",34),o.BQk()),2&e){const e=o.oxw().$implicit;o.xp6(1),o.Q6J("ngForOf",null==e?null:e.pending_htlcs)}}function fr(e,t){if(1&e&&(o.TgZ(0,"td",29),o.TgZ(1,"span",30),o._uU(2),o.qZA(),o.YNc(3,gr,2,1,"ng-container",31),o.qZA()),2&e){const e=t.$implicit;o.xp6(2),o.Oqu(null==e?null:e.remote_alias),o.xp6(1),o.Q6J("ngIf",e.is_expanded)}}function xr(e,t){1&e&&(o.TgZ(0,"th",35),o.TgZ(1,"span",36),o._uU(2,"Expiration Height"),o.qZA(),o.qZA())}function Zr(e,t){if(1&e&&(o.TgZ(0,"span",36),o._uU(1),o.ALo(2,"number"),o.qZA()),2&e){const e=t.$implicit;o.xp6(1),o.hij(" ",o.xi3(2,1,null==e?null:e.expiration_height,"1.0-0")," ")}}function yr(e,t){if(1&e&&(o.TgZ(0,"span"),o.YNc(1,Zr,3,4,"span",37),o.qZA()),2&e){const e=o.oxw().$implicit;o.xp6(1),o.Q6J("ngForOf",null==e?null:e.pending_htlcs)}}function Ar(e,t){if(1&e&&(o.TgZ(0,"td",29),o.TgZ(1,"span",36),o._uU(2),o.qZA(),o.YNc(3,yr,2,1,"span",31),o.qZA()),2&e){const e=t.$implicit;o.xp6(2),o.Oqu(" "),o.xp6(1),o.Q6J("ngIf",e.is_expanded)}}function Cr(e,t){1&e&&(o.TgZ(0,"th",38),o.TgZ(1,"span",36),o._uU(2,"Hash Lock"),o.qZA(),o.qZA())}function Tr(e,t){if(1&e&&(o.TgZ(0,"span",36),o._uU(1),o.qZA()),2&e){const e=t.$implicit;o.xp6(1),o.hij(" ",null==e?null:e.hash_lock," ")}}function br(e,t){if(1&e&&(o.TgZ(0,"span"),o.YNc(1,Tr,2,1,"span",37),o.qZA()),2&e){const e=o.oxw().$implicit;o.xp6(1),o.Q6J("ngForOf",null==e?null:e.pending_htlcs)}}function wr(e,t){if(1&e&&(o.TgZ(0,"td",39),o.TgZ(1,"span",36),o._uU(2),o.qZA(),o.YNc(3,br,2,1,"span",31),o.qZA()),2&e){const e=t.$implicit;o.xp6(2),o.Oqu(" "),o.xp6(1),o.Q6J("ngIf",e.is_expanded)}}function _r(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"th",40),o.TgZ(1,"div",41),o.TgZ(2,"mat-select",42),o._UZ(3,"mat-select-trigger"),o.TgZ(4,"mat-option",43),o.NdJ("click",function(){return o.CHM(e),o.oxw().onDownloadCSV()}),o._uU(5,"Download CSV"),o.qZA(),o.qZA(),o.qZA(),o.qZA()}}function vr(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"div",45),o.TgZ(1,"button",48),o.NdJ("click",function(){const t=o.CHM(e).$implicit,n=o.oxw(2).$implicit;return o.oxw().onHTLCClick(t,n)}),o._uU(2),o.qZA(),o.qZA()}if(2&e){const e=t.index;o.xp6(2),o.hij("View ",e+1,"")}}function qr(e,t){if(1&e&&(o.TgZ(0,"div"),o.YNc(1,vr,3,1,"div",47),o.qZA()),2&e){const e=o.oxw().$implicit;o.xp6(1),o.Q6J("ngForOf",null==e?null:e.pending_htlcs)}}function Sr(e,t){if(1&e&&(o.TgZ(0,"td",44),o.TgZ(1,"span",45),o.TgZ(2,"button",46),o.NdJ("click",function(){const e=t.$implicit;return e.is_expanded=!e.is_expanded}),o._uU(3),o.qZA(),o.qZA(),o.YNc(4,qr,2,1,"div",31),o.qZA()),2&e){const e=t.$implicit;o.xp6(3),o.Oqu(e.is_expanded?"Hide":"Show"),o.xp6(1),o.Q6J("ngIf",e.is_expanded)}}function Fr(e,t){1&e&&(o.TgZ(0,"p"),o._uU(1,"No active htlc available."),o.qZA())}function Lr(e,t){1&e&&(o.TgZ(0,"p"),o._uU(1,"Getting active htlcs..."),o.qZA())}function kr(e,t){if(1&e&&(o.TgZ(0,"p"),o._uU(1),o.qZA()),2&e){const e=o.oxw(2);o.xp6(1),o.Oqu(e.errorMessage)}}function Nr(e,t){if(1&e&&(o.TgZ(0,"td",49),o.YNc(1,Fr,2,0,"p",31),o.YNc(2,Lr,2,0,"p",31),o.YNc(3,kr,2,1,"p",31),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Q6J("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.FetchAllChannels.status)===e.apiCallStatusEnum.COMPLETED),o.xp6(1),o.Q6J("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.FetchAllChannels.status)===e.apiCallStatusEnum.INITIATED),o.xp6(1),o.Q6J("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.FetchAllChannels.status)===e.apiCallStatusEnum.ERROR)}}const Ur=function(e){return{"display-none":e}};function Ir(e,t){if(1&e&&o._UZ(0,"tr",50),2&e){const e=o.oxw();o.Q6J("ngClass",o.VKq(1,Ur,(null==e.channels?null:e.channels.data)&&(null==e.channels||null==e.channels.data?null:e.channels.data.length)>0))}}function Or(e,t){1&e&&o._UZ(0,"tr",51)}function Jr(e,t){1&e&&o._UZ(0,"tr",52)}const Dr=function(e){return{"overflow-auto error-border":e,"overflow-auto":!0}},Rr=function(){return["no_channel"]};let Mr=(()=>{class e{constructor(e,t,n){this.logger=e,this.commonService=t,this.store=n,this.channelsJSONArr=[],this.displayedColumns=[],this.htlcColumns=[],this.flgSticky=!1,this.pageSize=f.IV,this.pageSizeOptions=f.TJ,this.screenSize="",this.screenSizeEnum=f.cu,this.errorMessage="",this.apisCallStatus=null,this.apiCallStatusEnum=f.Bn,this.unSubs=[new p.x,new p.x,new p.x,new p.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===f.cu.XS?(this.flgSticky=!1,this.displayedColumns=["amount","actions"]):this.screenSize===f.cu.SM?(this.flgSticky=!1,this.displayedColumns=["amount","incoming","actions"]):this.screenSize===f.cu.MD?(this.flgSticky=!1,this.displayedColumns=["amount","incoming","expiration_height","actions"]):(this.flgSticky=!0,this.displayedColumns=["amount","incoming","expiration_height","hash_lock","actions"])}ngOnInit(){this.store.select("lnd").pipe((0,d.R)(this.unSubs[0])).subscribe(e=>{this.errorMessage="",this.apisCallStatus=e.apisCallStatus,e.apisCallStatus.FetchAllChannels.status===f.Bn.ERROR&&(this.errorMessage="object"==typeof this.apisCallStatus.FetchAllChannels.message?JSON.stringify(this.apisCallStatus.FetchAllChannels.message):this.apisCallStatus.FetchAllChannels.message),this.channelsJSONArr=e.allChannels&&e.allChannels.length>0?e.allChannels.filter(e=>e.pending_htlcs&&e.pending_htlcs.length>0):[],this.loadHTLCsTable(this.channelsJSONArr),this.logger.info(e)})}ngAfterViewInit(){this.loadHTLCsTable(this.channelsJSONArr)}onHTLCClick(e,t){this.store.dispatch(new ee.wu({data:{type:f.n_.INFORMATION,alertTitle:"HTLC Information",message:[[{key:"remote_alias",value:t.remote_alias,title:"Alias",width:100,type:f.Gi.STRING}],[{key:"amount",value:e.amount,title:"Amount (Sats)",width:50,type:f.Gi.NUMBER},{key:"incoming",value:e.incoming?"Yes":"No",title:"Incoming",width:50,type:f.Gi.STRING}],[{key:"expiration_height",value:e.expiration_height,title:"Expiration Height",width:50,type:f.Gi.NUMBER},{key:"hash_lock",value:e.hash_lock,title:"Hash Lock",width:50,type:f.Gi.STRING}]]}}))}onChannelClick(e,t){this.store.dispatch(new ee.wu({data:{channel:e,showCopy:!0,component:Si}}))}applyFilter(e){this.channels.filter=e.value.trim().toLowerCase()}loadHTLCsTable(e){this.channels=new Ze.by(e?[...e]:[]),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(e,t)=>{switch(t){case"amount":return this.commonService.sortByKey(e.pending_htlcs,t,"number",this.sort.direction),e.pending_htlcs&&e.pending_htlcs.length?e.pending_htlcs.length:null;case"incoming":return this.commonService.sortByKey(e.pending_htlcs,t,"boolean",this.sort.direction),e.remote_alias?e.remote_alias:e.remote_pubkey?e.remote_pubkey:null;case"expiration_height":case"hash_lock":return this.commonService.sortByKey(e.pending_htlcs,t,"number",this.sort.direction),e;default:return e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():e[t]?+e[t]:null}},this.channels.paginator=this.paginator,this.channels.filterPredicate=(e,t)=>((e.remote_alias?e.remote_alias.toLowerCase():"")+e.pending_htlcs.map(e=>JSON.stringify(e)+(e.incoming?"yes":"no"))).includes(t)}onDownloadCSV(){this.channels.data&&this.channels.data.length>0&&this.commonService.downloadFile(this.flattenHTLCs(),"ActiveHTLCs")}flattenHTLCs(){return JSON.parse(JSON.stringify(this.channels.data)).reduce((e,t)=>e.concat(t.pending_htlcs?t.pending_htlcs:t),[])}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(Z.mQ),o.Y36(C.v),o.Y36(y.yh))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-channel-active-htlcs-table"]],viewQuery:function(e,t){if(1&e&&(o.Gf(xe.YE,5),o.Gf(fe.NW,5)),2&e){let e;o.iGM(e=o.CRH())&&(t.sort=e.first),o.iGM(e=o.CRH())&&(t.paginator=e.first)}},features:[o._Bn([{provide:fe.ye,useValue:(0,f.pt)("HTLCs")}])],decls:30,vars:13,consts:[["fxLayout","column",1,"padding-gap"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"keyup"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","amount"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","incoming"],["matColumnDef","expiration_height"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","hash_lock"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","class","pl-3 htlc-row-span",4,"matHeaderCellDef"],["mat-cell","","class","pl-3",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","px-2",4,"matHeaderCellDef"],["mat-cell","","class","px-2",4,"matCellDef"],["matColumnDef","no_channel"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["fxLayoutAlign","start center",1,"htlc-row-span"],[4,"ngIf"],["fxLayoutAlign","start center","class","htlc-row-span pl-3",4,"ngFor","ngForOf"],["fxLayoutAlign","start center",1,"htlc-row-span","pl-3"],["fxLayoutAlign","start center","class","htlc-row-span",4,"ngFor","ngForOf"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center",1,"htlc-row-span"],["fxLayoutAlign","end center","class","htlc-row-span",4,"ngFor","ngForOf"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",1,"pl-3","htlc-row-span"],["mat-cell","",1,"pl-3"],["mat-header-cell","",1,"px-2"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","",1,"px-2"],["fxLayoutAlign","end center"],["mat-flat-button","","color","primary","type","button","tabindex","5",1,"btn-htlc-expand",3,"click"],["fxLayoutAlign","end center",4,"ngFor","ngForOf"],["mat-stroked-button","","color","primary","type","button","tabindex","6",1,"btn-htlc-info",3,"click"],["mat-footer-cell","","colspan","4"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,t){1&e&&(o.TgZ(0,"div",0),o.TgZ(1,"div",1),o._UZ(2,"div",2),o.TgZ(3,"mat-form-field",3),o.TgZ(4,"input",4),o.NdJ("keyup",function(e){return t.applyFilter(e.target)}),o.qZA(),o.qZA(),o.qZA(),o.TgZ(5,"div",5),o.YNc(6,rr,1,0,"mat-progress-bar",6),o.TgZ(7,"table",7,8),o.ynx(9,9),o.YNc(10,cr,2,0,"th",10),o.YNc(11,dr,4,2,"td",11),o.BQk(),o.ynx(12,12),o.YNc(13,hr,2,0,"th",10),o.YNc(14,fr,4,2,"td",11),o.BQk(),o.ynx(15,13),o.YNc(16,xr,3,0,"th",14),o.YNc(17,Ar,4,2,"td",11),o.BQk(),o.ynx(18,15),o.YNc(19,Cr,3,0,"th",16),o.YNc(20,wr,4,2,"td",17),o.BQk(),o.ynx(21,18),o.YNc(22,_r,6,0,"th",19),o.YNc(23,Sr,5,2,"td",20),o.BQk(),o.ynx(24,21),o.YNc(25,Nr,4,3,"td",22),o.BQk(),o.YNc(26,Ir,1,3,"tr",23),o.YNc(27,Or,1,0,"tr",24),o.YNc(28,Jr,1,0,"tr",25),o.qZA(),o.qZA(),o._UZ(29,"mat-paginator",26),o.qZA()),2&e&&(o.xp6(6),o.Q6J("ngIf",(null==t.apisCallStatus?null:t.apisCallStatus.FetchAllChannels.status)===t.apiCallStatusEnum.INITIATED),o.xp6(1),o.Q6J("dataSource",t.channels)("ngClass",o.VKq(10,Dr,""!==t.errorMessage)),o.xp6(19),o.Q6J("matFooterRowDef",o.DdM(12,Rr)),o.xp6(1),o.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),o.xp6(1),o.Q6J("matRowDefColumns",t.displayedColumns),o.xp6(1),o.Q6J("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS))},directives:[l.xw,l.Wh,l.yH,D.KE,Ce.Nt,E.$V,a.O5,Ze.BZ,xe.YE,a.mk,v.oO,Ze.w1,Ze.fO,Ze.Dz,Ze.mD,Ze.Ke,Ze.as,Ze.nj,fe.NW,r.pW,Ze.ge,xe.nU,Ze.ev,a.sg,we.gD,we.$L,ve.ey,q.lW,Ze.yh,Ze.Q2,Ze.XQ,Ze.Gk],pipes:[a.JJ],styles:[".mat-column-amount[_ngcontent-%COMP%], .mat-column-expiration_height[_ngcontent-%COMP%]{flex:0 0 30%;width:30%}.mat-column-hash_lock[_ngcontent-%COMP%], .mat-column-incoming[_ngcontent-%COMP%]{flex:0 0 25%;width:25%;text-overflow:ellipsis}.htlc-row-span[_ngcontent-%COMP%]{min-height:4.2rem}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-actions[_ngcontent-%COMP%] .btn-htlc-expand[_ngcontent-%COMP%]{width:9rem}.mat-column-actions[_ngcontent-%COMP%] .btn-htlc-info[_ngcontent-%COMP%]{margin-top:.5rem;width:9rem}"]}),e})();function Er(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Wallet password is required."),o.qZA())}let Qr=(()=>{class e{constructor(e){this.store=e,this.walletPassword=""}ngOnInit(){this.walletPassword=""}onUnlockWallet(){if(!this.walletPassword)return!0;this.store.dispatch(new x.l8({pwd:window.btoa(this.walletPassword)}))}resetData(){this.walletPassword=""}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(y.yh))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-unlock-wallet"]],decls:12,vars:2,consts:[["fxLayout","column",1,"padding-gap","mb-2"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between"],["fxFlex","100","fxLayoutAlign","start"],["autoFocus","","matInput","","type","password","placeholder","Password","name","walletPassword","tabindex","1","required","",3,"ngModel","ngModelChange"],[4,"ngIf"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","2","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","3",3,"click"]],template:function(e,t){1&e&&(o.TgZ(0,"div",0),o.TgZ(1,"form",1),o.TgZ(2,"mat-form-field",2),o.TgZ(3,"input",3),o.NdJ("ngModelChange",function(e){return t.walletPassword=e}),o.qZA(),o.TgZ(4,"mat-hint"),o._uU(5,"Enter Wallet Password"),o.qZA(),o.YNc(6,Er,2,0,"mat-error",4),o.qZA(),o.TgZ(7,"div",5),o.TgZ(8,"button",6),o.NdJ("click",function(){return t.resetData()}),o._uU(9,"Clear Field"),o.qZA(),o.TgZ(10,"button",7),o.NdJ("click",function(){return t.onUnlockWallet()}),o._uU(11,"Unlock Wallet"),o.qZA(),o.qZA(),o.qZA(),o.qZA()),2&e&&(o.xp6(3),o.Q6J("ngModel",t.walletPassword),o.xp6(3),o.Q6J("ngIf",!t.walletPassword))},directives:[l.xw,Ae._Y,Ae.JL,Ae.F,l.Wh,D.KE,l.yH,Ce.Nt,Ae.Fj,Te.h,Ae.Q7,Ae.JJ,Ae.On,D.bx,a.O5,q.lW,D.TO],styles:[""]}),e})();var Yr=n(8544);function Pr(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"div"),o.TgZ(1,"form",4),o.TgZ(2,"div",5),o._uU(3,"Warning: Your connection is unsecure, it's not safe to generate private keys over this connection.Are you sure you want to proceed?"),o.qZA(),o.TgZ(4,"div",6),o.TgZ(5,"button",7),o.NdJ("click",function(){o.CHM(e);const t=o.oxw();return t.proceed=!1,t.warnRes=!0}),o._uU(6,"Do Not Proceed"),o.qZA(),o.TgZ(7,"button",8),o.NdJ("click",function(){o.CHM(e);const t=o.oxw();return t.proceed=!0,t.warnRes=!0}),o._uU(8,"Proceed"),o.qZA(),o.qZA(),o.qZA(),o.qZA()}}function Br(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"div",9),o.TgZ(1,"div",10),o._uU(2,"Please re-configure & re-start RTL after securing your LND connction. You can close this window now."),o.qZA(),o.TgZ(3,"div",6),o.TgZ(4,"button",11),o.NdJ("click",function(){return o.CHM(e),o.oxw().warnRes=!1}),o._uU(5,"Go Back"),o.qZA(),o.qZA(),o.qZA()}}function Gr(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Password is required."),o.qZA())}function Hr(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Password must be at least 8 characters in length."),o.qZA())}function zr(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Confirm password is required."),o.qZA())}function Vr(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Confirm password must be at least 8 characters in length."),o.qZA())}function Wr(e,t){1&e&&(o.TgZ(0,"div",41),o.TgZ(1,"mat-icon",42),o._uU(2,"cancel"),o.qZA(),o._uU(3,"Passwords do not match. "),o.qZA())}function Xr(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Cipher seed is required."),o.qZA())}function $r(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Invalid Cipher. Enter comma separated 24 words cipher seed."),o.qZA())}function jr(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Passphrase is required."),o.qZA())}function Kr(e,t){1&e&&(o.TgZ(0,"mat-icon"),o._uU(1,"vpn_key"),o.qZA())}function ec(e,t){1&e&&(o.TgZ(0,"mat-icon"),o._uU(1,"swap_calls"),o.qZA())}function tc(e,t){1&e&&(o.TgZ(0,"mat-icon"),o._uU(1,"fingerprint"),o.qZA())}function nc(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"mat-vertical-stepper",12,13),o.TgZ(2,"mat-step",14),o.TgZ(3,"form",15),o.TgZ(4,"mat-form-field",16),o._UZ(5,"input",17),o.TgZ(6,"mat-hint"),o._uU(7,"Enter Wallet Password"),o.qZA(),o.YNc(8,Gr,2,0,"mat-error",1),o.YNc(9,Hr,2,0,"mat-error",1),o.qZA(),o.TgZ(10,"mat-form-field",16),o._UZ(11,"input",18),o.TgZ(12,"mat-hint"),o._uU(13,"Confirm Wallet Password"),o.qZA(),o.YNc(14,zr,2,0,"mat-error",1),o.YNc(15,Vr,2,0,"mat-error",1),o.qZA(),o.YNc(16,Wr,4,0,"div",19),o.TgZ(17,"div",20),o.TgZ(18,"button",21),o._uU(19,"Next"),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.TgZ(20,"mat-step",22),o.TgZ(21,"form",23),o.TgZ(22,"div",24),o.TgZ(23,"mat-slide-toggle",25),o._uU(24,"Existing Cipher"),o.qZA(),o.TgZ(25,"mat-form-field",26),o._UZ(26,"input",27),o.TgZ(27,"mat-hint"),o._uU(28,"Cipher Seed"),o.qZA(),o.YNc(29,Xr,2,0,"mat-error",1),o.YNc(30,$r,2,0,"mat-error",1),o.qZA(),o.qZA(),o.TgZ(31,"div",28),o.TgZ(32,"button",29),o._uU(33,"Back"),o.qZA(),o.TgZ(34,"button",30),o._uU(35,"Next"),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.TgZ(36,"mat-step",31),o.TgZ(37,"form",23),o.TgZ(38,"div",24),o.TgZ(39,"mat-slide-toggle",32),o._uU(40,"Existing Passphrase"),o.qZA(),o.TgZ(41,"mat-form-field",33),o._UZ(42,"input",34),o.TgZ(43,"mat-hint"),o._uU(44,"Enter Passphrase"),o.qZA(),o.YNc(45,jr,2,0,"mat-error",1),o.qZA(),o.qZA(),o.TgZ(46,"div",28),o.TgZ(47,"button",35),o.NdJ("click",function(){return o.CHM(e),o.oxw().resetData()}),o._uU(48,"Clear"),o.qZA(),o.TgZ(49,"button",36),o._uU(50,"Back"),o.qZA(),o.TgZ(51,"button",37),o.NdJ("click",function(){return o.CHM(e),o.oxw().onInitWallet()}),o._uU(52,"Initialize Wallet"),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.YNc(53,Kr,2,0,"ng-template",38),o.YNc(54,ec,2,0,"ng-template",39),o.YNc(55,tc,2,0,"ng-template",40),o.qZA()}if(2&e){const e=o.oxw();o.Q6J("linear",!0),o.xp6(2),o.Q6J("stepControl",e.passwordFormGroup),o.xp6(1),o.Q6J("formGroup",e.passwordFormGroup),o.xp6(5),o.Q6J("ngIf",null==e.passwordFormGroup.controls.initWalletPassword.errors?null:e.passwordFormGroup.controls.initWalletPassword.errors.required),o.xp6(1),o.Q6J("ngIf",null==e.passwordFormGroup.controls.initWalletPassword.errors?null:e.passwordFormGroup.controls.initWalletPassword.errors.minlength),o.xp6(5),o.Q6J("ngIf",null==e.passwordFormGroup.controls.initWalletConfirmPassword.errors?null:e.passwordFormGroup.controls.initWalletConfirmPassword.errors.required),o.xp6(1),o.Q6J("ngIf",null==e.passwordFormGroup.controls.initWalletConfirmPassword.errors?null:e.passwordFormGroup.controls.initWalletConfirmPassword.errors.minlength),o.xp6(1),o.Q6J("ngIf",(null==e.passwordFormGroup.errors?null:e.passwordFormGroup.errors.unmatchedPasswords)&&(e.passwordFormGroup.controls.initWalletPassword.touched||e.passwordFormGroup.controls.initWalletPassword.dirty)&&(e.passwordFormGroup.controls.initWalletConfirmPassword.touched||e.passwordFormGroup.controls.initWalletConfirmPassword.dirty)),o.xp6(4),o.Q6J("stepControl",e.cipherFormGroup),o.xp6(1),o.Q6J("formGroup",e.cipherFormGroup),o.xp6(2),o.Q6J("labelPosition","before"),o.xp6(6),o.Q6J("ngIf",null==e.cipherFormGroup.controls.cipherSeed.errors?null:e.cipherFormGroup.controls.cipherSeed.errors.required),o.xp6(1),o.Q6J("ngIf",!(null!=e.cipherFormGroup.controls.cipherSeed.errors&&e.cipherFormGroup.controls.cipherSeed.errors.required)&&(null==e.cipherFormGroup.controls.cipherSeed.errors?null:e.cipherFormGroup.controls.cipherSeed.errors.invalidCipher)),o.xp6(6),o.Q6J("stepControl",e.passphraseFormGroup),o.xp6(1),o.Q6J("formGroup",e.passphraseFormGroup),o.xp6(2),o.Q6J("labelPosition","before"),o.xp6(6),o.Q6J("ngIf",null==e.passphraseFormGroup.controls.passphrase.errors?null:e.passphraseFormGroup.controls.passphrase.errors.required)}}function ac(e,t){if(1&e&&(o.TgZ(0,"span",48),o._uU(1),o.qZA()),2&e){const e=t.$implicit;o.xp6(1),o.Oqu(e)}}function ic(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"div"),o.TgZ(1,"form",4),o.TgZ(2,"div",43),o._uU(3,"YOU MUST WRITE DOWN THIS SEED TO BE ABLE TO RESTORE THE WALLET!"),o.qZA(),o.TgZ(4,"div",44),o.YNc(5,ac,2,1,"span",45),o.qZA(),o.TgZ(6,"div",46),o._uU(7,"Wallet initialization is done."),o.qZA(),o.TgZ(8,"div",46),o._uU(9,"The node will be usable only after LND has synced completely with the network."),o.qZA(),o.TgZ(10,"div",46),o._uU(11,"Click continue only after writing down the seed."),o.qZA(),o.TgZ(12,"div",6),o.TgZ(13,"button",47),o.NdJ("click",function(){return o.CHM(e),o.oxw().onGoToHome()}),o._uU(14,"Go To Home"),o.qZA(),o.qZA(),o.qZA(),o.qZA()}if(2&e){const e=o.oxw();o.xp6(5),o.Q6J("ngForOf",e.genSeedResponse)}}function sc(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"div"),o.TgZ(1,"form",4),o.TgZ(2,"div",46),o._uU(3,"Something went wrong! Unable to initialize wallet!"),o.qZA(),o.TgZ(4,"div",6),o.TgZ(5,"button",49),o.NdJ("click",function(){return o.CHM(e),o.oxw().resetData()}),o._uU(6,"Restart"),o.qZA(),o.qZA(),o.qZA(),o.qZA()}}function oc(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"div"),o.TgZ(1,"form",4),o.TgZ(2,"div",46),o._uU(3,"Wallet recovery is done."),o.qZA(),o.TgZ(4,"div",46),o._uU(5,"The node will be usable only after LND has synced completely with the network."),o.qZA(),o.TgZ(6,"div",6),o.TgZ(7,"button",50),o.NdJ("click",function(){return o.CHM(e),o.oxw().onGoToHome()}),o._uU(8,"Go To Home"),o.qZA(),o.qZA(),o.qZA(),o.qZA()}}const lc=e=>{const t=e.get("initWalletPassword"),n=e.get("initWalletConfirmPassword");return t&&n&&t.value!==n.value?{unmatchedPasswords:!0}:null},rc=e=>{const t=e.value?e.value.toString().trim().split(","):[];return t&&24!==t.length?{invalidCipher:!0}:null};let cc=(()=>{class e{constructor(e,t,n){this.store=e,this.formBuilder=t,this.lndEffects=n,this.insecureLND=!1,this.genSeedResponse=[],this.initWalletResponse="",this.proceed=!0,this.warnRes=!1,this.unsubs=[new p.x,new p.x,new p.x,new p.x,new p.x]}ngOnInit(){this.passwordFormGroup=this.formBuilder.group({initWalletPassword:["",[Ae.kI.required,Ae.kI.minLength(8)]],initWalletConfirmPassword:["",[Ae.kI.required,Ae.kI.minLength(8)]]},{validators:lc}),this.cipherFormGroup=this.formBuilder.group({existingCipher:[!1],cipherSeed:[{value:"",disabled:!0},[rc]]}),this.passphraseFormGroup=this.formBuilder.group({enterPassphrase:[!1],passphrase:[{value:"",disabled:!0}]}),this.cipherFormGroup.controls.existingCipher.valueChanges.pipe((0,d.R)(this.unsubs[0])).subscribe(e=>{e?(this.cipherFormGroup.controls.cipherSeed.setValue(""),this.cipherFormGroup.controls.cipherSeed.enable()):(this.cipherFormGroup.controls.cipherSeed.setValue(""),this.cipherFormGroup.controls.cipherSeed.disable())}),this.passphraseFormGroup.controls.enterPassphrase.valueChanges.pipe((0,d.R)(this.unsubs[1])).subscribe(e=>{e?(this.passphraseFormGroup.controls.passphrase.setValue(""),this.passphraseFormGroup.controls.passphrase.enable()):(this.passphraseFormGroup.controls.passphrase.setValue(""),this.passphraseFormGroup.controls.passphrase.disable())}),this.insecureLND=!window.location.protocol.includes("https:"),this.lndEffects.initWalletRes.pipe((0,d.R)(this.unsubs[2])).subscribe(e=>{this.initWalletResponse=e}),this.lndEffects.genSeedResponse.pipe((0,d.R)(this.unsubs[3])).subscribe(e=>{this.genSeedResponse=e,this.store.dispatch(new x.My(this.passphraseFormGroup.controls.enterPassphrase.value?{pwd:window.btoa(this.passwordFormGroup.controls.initWalletPassword.value),cipher:this.genSeedResponse,passphrase:window.btoa(this.passphraseFormGroup.controls.passphrase.value)}:{pwd:window.btoa(this.passwordFormGroup.controls.initWalletPassword.value),cipher:this.genSeedResponse}))})}onInitWallet(){if(this.passwordFormGroup.invalid||this.cipherFormGroup.invalid||this.passphraseFormGroup.invalid)return!0;if(this.cipherFormGroup.controls.existingCipher.value){const e=this.cipherFormGroup.controls.cipherSeed.value.toString().trim().split(",");this.store.dispatch(new x.My(this.passphraseFormGroup.controls.enterPassphrase.value?{pwd:window.btoa(this.passwordFormGroup.controls.initWalletPassword.value),cipher:e,passphrase:window.btoa(this.passphraseFormGroup.controls.passphrase.value)}:{pwd:window.btoa(this.passwordFormGroup.controls.initWalletPassword.value),cipher:e}))}else this.store.dispatch(new x.$b(this.passphraseFormGroup.controls.enterPassphrase.value?window.btoa(this.passphraseFormGroup.controls.passphrase.value):""))}onGoToHome(){setTimeout(()=>{this.store.dispatch(new ee.uQ),this.store.dispatch(new x.z6({loadPage:"HOME"}))},1e3)}resetData(){this.genSeedResponse=[],this.initWalletResponse=""}ngOnDestroy(){this.unsubs.forEach(e=>{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(y.yh),o.Y36(Ae.qu),o.Y36(Ft.l))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-initialize-wallet"]],viewQuery:function(e,t){if(1&e&&o.Gf(La.Vq,5),2&e){let e;o.iGM(e=o.CRH())&&(t.stepper=e.first)}},features:[o._Bn([{provide:Yr.gx,useValue:{displayDefaultIndicatorType:!1}}])],decls:7,vars:6,consts:[["fxLayout","column",1,"padding-gap","mb-4"],[4,"ngIf"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","stretch stretch",4,"ngIf"],[3,"linear",4,"ngIf"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"mt-2"],["fxFlex","100","fxLayoutAlign","start"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","1","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","2",3,"click"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","stretch stretch"],["fxFlex","100",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","3","type","reset",3,"click"],[3,"linear"],["stepper",""],["label","Wallet Password","state","password",3,"stepControl"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"mt-1",3,"formGroup"],["fxFlex","49","fxLayoutAlign","start"],["matInput","","type","password","placeholder","Password","name","initWalletPassword","formControlName","initWalletPassword","tabindex","5","required",""],["matInput","","type","password","placeholder","Confirm Password","name","initWalletConfirmPassword","formControlName","initWalletConfirmPassword","tabindex","6","required",""],["class","validation-error-message",4,"ngIf"],["fxLayout","row",1,"my-2"],["mat-flat-button","","color","primary","tabindex","7","type","submit","matStepperNext",""],["label","Cipher","state","cipher",3,"stepControl"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start stretch","fxLayoutAlign.gt-sm","space-between start",1,"mt-1",3,"formGroup"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch"],["fxFlex","20","tabindex","8","color","primary","formControlName","existingCipher","name","existingCipher",1,"chkbox-wallet",3,"labelPosition"],["fxFlex","75","fxLayoutAlign","start",1,"my-1"],["autofocus","","matInput","","type","input","placeholder","Comma separated array of 24 words cipher seed","name","cipherSeed","formControlName","cipherSeed","tabindex","9","required",""],["fxLayout","row",1,"mb-2"],["mat-stroked-button","","color","primary","type","reset","tabindex","10","matStepperPrevious","",1,"mr-1","mt-1"],["mat-flat-button","","color","primary","tabindex","11","type","submit","matStepperNext","",1,"mt-1"],["label","Passphrase","state","passphrase",3,"stepControl"],["fxFlex","20","tabindex","10","color","primary","formControlName","enterPassphrase","name","enterPassphrase",1,"chkbox-wallet",3,"labelPosition"],["fxFlex","75","fxLayoutAlign","start"],["matInput","","type","password","placeholder","Passphrase","name","passphrase","formControlName","passphrase","tabindex","12","required",""],["mat-stroked-button","","color","warn","tabindex","13","type","reset",1,"mr-1","mt-1",3,"click"],["mat-stroked-button","","tabindex","14","color","primary","type","button","matStepperPrevious","",1,"mr-1","mt-1"],["mat-flat-button","","color","primary","tabindex","15","type","submit",1,"mt-1",3,"click"],["matStepperIcon","password"],["matStepperIcon","cipher"],["matStepperIcon","passphrase"],[1,"validation-error-message"],[1,"validation-error-icon","red"],["fxFlex","100","fxLayoutAlign","start",1,"blinker"],["fxFlex","40","fxLayout","row wrap",1,"mt-2"],["fxFlex","25","fxLayoutAlign","start","class","genseed-message",4,"ngFor","ngForOf"],["fxFlex","100","fxLayoutAlign","start",1,"mt-2"],["mat-flat-button","","color","primary","type","submit","tabindex","16",3,"click"],["fxFlex","25","fxLayoutAlign","start",1,"genseed-message"],["mat-stroked-button","","color","primary","tabindex","17","type","reset",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","18",3,"click"]],template:function(e,t){1&e&&(o.TgZ(0,"div",0),o.YNc(1,Pr,9,0,"div",1),o.YNc(2,Br,6,0,"div",2),o.YNc(3,nc,56,17,"mat-vertical-stepper",3),o.YNc(4,ic,15,1,"div",1),o.YNc(5,sc,7,0,"div",1),o.YNc(6,oc,9,0,"div",1),o.qZA()),2&e&&(o.xp6(1),o.Q6J("ngIf",t.insecureLND&&!t.warnRes),o.xp6(1),o.Q6J("ngIf",t.warnRes&&!t.proceed),o.xp6(1),o.Q6J("ngIf",(!t.insecureLND||t.warnRes&&t.proceed)&&t.genSeedResponse.length<=0&&""===t.initWalletResponse),o.xp6(1),o.Q6J("ngIf",t.genSeedResponse.length>0&&""!==t.initWalletResponse),o.xp6(1),o.Q6J("ngIf",t.genSeedResponse.length>0&&""===t.initWalletResponse),o.xp6(1),o.Q6J("ngIf",t.genSeedResponse.length<=0&&""!==t.initWalletResponse))},directives:[l.xw,a.O5,Ae._Y,Ae.JL,Ae.F,l.Wh,l.yH,q.lW,La.Vq,La.C0,Ae.sg,D.KE,Ce.Nt,Ae.Fj,Ae.JJ,Ae.u,Ae.Q7,D.bx,La.Ic,_e.Rr,La.fd,La.z9,D.TO,S.Hw,a.sg],styles:[""]}),e})(),uc=(()=>{class e{constructor(){this.faWallet=g.X5K}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-wallet"]],decls:12,vars:1,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["label","Unlock"],["label","Initialize"]],template:function(e,t){1&e&&(o.TgZ(0,"div",0),o._UZ(1,"fa-icon",1),o.TgZ(2,"span",2),o._uU(3,"Wallet"),o.qZA(),o.qZA(),o.TgZ(4,"div",3),o.TgZ(5,"mat-card"),o.TgZ(6,"mat-card-content",4),o.TgZ(7,"mat-tab-group"),o.TgZ(8,"mat-tab",5),o._UZ(9,"rtl-unlock-wallet"),o.qZA(),o.TgZ(10,"mat-tab",6),o._UZ(11,"rtl-initialize-wallet"),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA()),2&e&&(o.xp6(1),o.Q6J("icon",t.faWallet))},directives:[l.xw,l.Wh,T.BN,w.a8,w.dn,ge.SP,ge.uX,Qr,cc],styles:[""]}),e})();function pc(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"div",11),o.NdJ("click",function(){const t=o.CHM(e).$implicit;return o.oxw().activeLink=t.link}),o._uU(1),o.qZA()}if(2&e){const e=t.$implicit,n=o.oxw();o.s9C("routerLink",e.link),o.Q6J("active",n.activeLink===e.link),o.xp6(1),o.Oqu(e.name)}}let dc=(()=>{class e{constructor(e,t,n){this.logger=e,this.store=t,this.router=n,this.faExchangeAlt=g.Ssp,this.faChartPie=g.OS1,this.currencyUnits=[],this.balances=[{title:"Local Capacity",dataValue:0,tooltip:"Amount you can send"},{title:"Remote Capacity",dataValue:0,tooltip:"Amount you can receive"}],this.links=[{link:"payments",name:"Payments"},{link:"invoices",name:"Invoices"},{link:"queryroutes",name:"Query Routes"}],this.activeLink=this.links[0].link,this.unSubs=[new p.x,new p.x,new p.x,new p.x]}ngOnInit(){const e=this.links.find(e=>this.router.url.includes(e.link));this.activeLink=e?e.link:this.links[0].link,this.router.events.pipe((0,d.R)(this.unSubs[0]),(0,h.h)(e=>e instanceof i.Av)).subscribe(e=>{const t=this.links.find(t=>e.urlAfterRedirects.includes(t.link));this.activeLink=t?t.link:this.links[0].link}),this.store.select("lnd").pipe((0,d.R)(this.unSubs[1])).subscribe(e=>{this.currencyUnits=e.nodeSettings.currencyUnits,this.balances=e.nodeSettings.userPersona===f.ol.OPERATOR?[{title:"Local Capacity",dataValue:e.totalLocalBalance,tooltip:"Amount you can send"},{title:"Remote Capacity",dataValue:e.totalRemoteBalance,tooltip:"Amount you can receive"}]:[{title:"Outbound Capacity",dataValue:e.totalLocalBalance,tooltip:"Amount you can send"},{title:"Inbound Capacity",dataValue:e.totalRemoteBalance,tooltip:"Amount you can receive"}],this.logger.info(e)})}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(Z.mQ),o.Y36(y.yh),o.Y36(i.F0))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-transactions"]],decls:19,vars:4,consts:[["fxLayout","row wrap","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x","mb-4"],["fxLayout","column"],[3,"values"],["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],["fxLayout","column",1,"padding-gap-x"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(e,t){1&e&&(o.TgZ(0,"div",0),o._UZ(1,"fa-icon",1),o.TgZ(2,"span",2),o._uU(3,"Lightning Balance"),o.qZA(),o.qZA(),o.TgZ(4,"div",3),o.TgZ(5,"mat-card"),o.TgZ(6,"mat-card-content",4),o._UZ(7,"rtl-currency-unit-converter",5),o.qZA(),o.qZA(),o.qZA(),o.TgZ(8,"div",6),o._UZ(9,"fa-icon",1),o.TgZ(10,"span",2),o._uU(11,"Lightning Transactions"),o.qZA(),o.qZA(),o.TgZ(12,"div",7),o.TgZ(13,"mat-card"),o.TgZ(14,"mat-card-content",4),o.TgZ(15,"nav",8),o.YNc(16,pc,2,3,"div",9),o.qZA(),o.TgZ(17,"div",10),o._UZ(18,"router-outlet"),o.qZA(),o.qZA(),o.qZA(),o.qZA()),2&e&&(o.xp6(1),o.Q6J("icon",t.faChartPie),o.xp6(6),o.Q6J("values",t.balances),o.xp6(2),o.Q6J("icon",t.faExchangeAlt),o.xp6(7),o.Q6J("ngForOf",t.links))},directives:[l.xw,l.Wh,T.BN,w.a8,w.dn,la.D,ge.BU,a.sg,l.yH,i.lC,ge.Nj,i.rH],styles:[""]}),e})();function hc(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Destination pubkey is required."),o.qZA())}function mc(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Amount is required."),o.qZA())}function gc(e,t){1&e&&o._UZ(0,"mat-progress-bar",37)}function fc(e,t){1&e&&(o.TgZ(0,"th",38),o._uU(1," Hop "),o.qZA())}function xc(e,t){if(1&e&&(o.TgZ(0,"td",39),o._uU(1),o.qZA()),2&e){const e=t.$implicit;o.xp6(1),o.hij(" ",null==e?null:e.hop_sequence," ")}}function Zc(e,t){1&e&&(o.TgZ(0,"th",38),o._uU(1," Peer "),o.qZA())}const yc=function(e){return{"max-width":e}};function Ac(e,t){if(1&e&&(o.TgZ(0,"td",40),o._uU(1),o.qZA()),2&e){const e=t.$implicit,n=o.oxw();o.Q6J("ngStyle",o.VKq(2,yc,n.screenSize===n.screenSizeEnum.XS?"10rem":"28rem")),o.xp6(1),o.hij(" ",null==e?null:e.pubkey_alias," ")}}function Cc(e,t){1&e&&(o.TgZ(0,"th",38),o._uU(1," Channel "),o.qZA())}function Tc(e,t){if(1&e&&(o.TgZ(0,"td",39),o._uU(1),o.qZA()),2&e){const e=t.$implicit;o.xp6(1),o.hij(" ",null==e?null:e.chan_id," ")}}function bc(e,t){1&e&&(o.TgZ(0,"th",41),o._uU(1," Capacity (Sats) "),o.qZA())}function wc(e,t){if(1&e&&(o.TgZ(0,"td",39),o.TgZ(1,"span",42),o._uU(2),o.ALo(3,"number"),o.qZA(),o.qZA()),2&e){const e=t.$implicit;o.xp6(2),o.hij(" ",o.lcZ(3,1,null==e?null:e.chan_capacity),"")}}function _c(e,t){1&e&&(o.TgZ(0,"th",41),o._uU(1," Amount To Fwd (Sats) "),o.qZA())}function vc(e,t){if(1&e&&(o.TgZ(0,"td",39),o.TgZ(1,"span",42),o._uU(2),o.ALo(3,"number"),o.qZA(),o.qZA()),2&e){const e=t.$implicit;o.xp6(2),o.hij(" ",o.lcZ(3,1,null==e?null:e.amt_to_forward)," ")}}function qc(e,t){1&e&&(o.TgZ(0,"th",41),o._uU(1," Fee (mSats) "),o.qZA())}function Sc(e,t){if(1&e&&(o.TgZ(0,"td",39),o.TgZ(1,"span",42),o._uU(2),o.ALo(3,"number"),o.qZA(),o.qZA()),2&e){const e=t.$implicit;o.xp6(2),o.hij(" ",o.lcZ(3,1,null==e?null:e.fee_msat)," ")}}function Fc(e,t){1&e&&(o.TgZ(0,"th",43),o.TgZ(1,"span",42),o._uU(2,"Actions"),o.qZA(),o.qZA())}function Lc(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"td",44),o.TgZ(1,"button",45),o.NdJ("click",function(t){const n=o.CHM(e).$implicit;return o.oxw().onHopClick(n,t)}),o._uU(2,"View Info"),o.qZA(),o.qZA()}}function kc(e,t){1&e&&o._UZ(0,"tr",46)}function Nc(e,t){1&e&&o._UZ(0,"tr",47)}const Uc=function(e){return{"overflow-auto error-border":e,"overflow-auto":!0}};let Ic=(()=>{class e{constructor(e,t,n){this.store=e,this.lndEffects=t,this.commonService=n,this.destinationPubkey="",this.amount=null,this.flgSticky=!1,this.displayedColumns=[],this.flgLoading=[!1],this.faRoute=g.FpQ,this.faExclamationTriangle=g.eHv,this.screenSize="",this.screenSizeEnum=f.cu,this.unSubs=[new p.x,new p.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===f.cu.XS?(this.flgSticky=!1,this.displayedColumns=["pubkey_alias","actions"]):this.screenSize===f.cu.SM?(this.flgSticky=!1,this.displayedColumns=["hop_sequence","pubkey_alias","fee_msat","actions"]):this.screenSize===f.cu.MD?(this.flgSticky=!1,this.displayedColumns=["hop_sequence","pubkey_alias","chan_capacity","amt_to_forward_msat","fee_msat","actions"]):(this.flgSticky=!0,this.displayedColumns=["hop_sequence","pubkey_alias","chan_capacity","amt_to_forward_msat","fee_msat","actions"])}ngOnInit(){this.lndEffects.setQueryRoutes.pipe((0,d.R)(this.unSubs[1])).subscribe(e=>{this.qrHops=new Ze.by([]),e.routes&&e.routes[0].hops?(this.flgLoading[0]=!1,this.qrHops=new Ze.by([...e.routes[0].hops]),this.qrHops.data=e.routes[0].hops):this.flgLoading[0]="error",this.qrHops.sort=this.sort,this.qrHops.sortingDataAccessor=(e,t)=>e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():e[t]?+e[t]:null})}onQueryRoutes(){if(!this.destinationPubkey||!this.amount)return!0;this.qrHops=new Ze.by([]),this.flgLoading[0]=!0,this.store.dispatch(new x.bm({destPubkey:this.destinationPubkey,amount:this.amount}))}resetData(){this.destinationPubkey="",this.amount=null,this.flgLoading[0]=!1}onHopClick(e,t){this.store.dispatch(new ee.wu({data:{type:f.n_.INFORMATION,alertTitle:"Route Information",message:[[{key:"hop_sequence",value:e.hop_sequence,title:"Sequence",width:30,type:f.Gi.NUMBER},{key:"amt_to_forward",value:e.amt_to_forward,title:"Amount To Forward (Sats)",width:30,type:f.Gi.NUMBER},{key:"fee_msat",value:e.fee_msat,title:"Fee (mSats)",width:40,type:f.Gi.NUMBER}],[{key:"pubkey_alias",value:e.pubkey_alias,title:"Peer Alias",width:30,type:f.Gi.STRING},{key:"pub_key",value:e.pub_key,title:"Peer Pubkey",width:70,type:f.Gi.STRING}],[{key:"expiry",value:e.expiry,title:"Expiry",width:30,type:f.Gi.NUMBER},{key:"chan_id",value:e.chan_id,title:"Channel ID",width:30,type:f.Gi.STRING},{key:"chan_capacity",value:e.chan_capacity,title:"Channel Capacity",width:40,type:f.Gi.NUMBER}]]}}))}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(y.yh),o.Y36(Ft.l),o.Y36(C.v))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-query-routes"]],viewQuery:function(e,t){if(1&e&&o.Gf(xe.YE,5),2&e){let e;o.iGM(e=o.CRH())&&(t.sort=e.first)}},decls:51,vars:16,consts:[["fxLayout","column","fxFlex","100",1,"padding-gap"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap",3,"ngSubmit"],["queryRoutesForm","ngForm"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["fxFlex","69","fxLayoutAlign","start end"],["matInput","","placeholder","Destination Pubkey","name","destinationPubkey","tabindex","1","required","",3,"ngModel","ngModelChange"],["destPubkey","ngModel"],[4,"ngIf"],["fxFlex","29","fxLayoutAlign","start end"],["matInput","","placeholder","Amount (Sats)","name","amount","tabindex","2","type","number","required","",3,"ngModel","step","min","ngModelChange"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","3","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","4"],["fxLayout","column","fxLayoutAlign","start stretch","fxLayout.gt-sm","row wrap",1,"page-sub-title-container","mt-3","mb-1"],["fxFlex","70","fxLayoutAlign","start center"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],[1,"table-container","mb-6",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","hop_sequence"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","pubkey_alias"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","chan_id"],["matColumnDef","chan_capacity"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","amt_to_forward_msat"],["matColumnDef","fee_msat"],["matColumnDef","actions"],["mat-header-cell","","class","pl-4 pr-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-4",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-cell","",3,"ngStyle"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"pl-4","pr-3"],["mat-cell","",1,"pl-4"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-header-row",""],["mat-row",""]],template:function(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"div",0),o.TgZ(1,"form",1,2),o.NdJ("ngSubmit",function(){return o.CHM(e),o.MAs(2).form.valid&&t.onQueryRoutes()}),o.TgZ(3,"div",3),o._UZ(4,"fa-icon",4),o.TgZ(5,"span"),o._uU(6,"The actual routing fee on a payment can be different from the fee shown on query routes."),o.qZA(),o.qZA(),o.TgZ(7,"mat-form-field",5),o.TgZ(8,"input",6,7),o.NdJ("ngModelChange",function(e){return t.destinationPubkey=e}),o.qZA(),o.YNc(10,hc,2,0,"mat-error",8),o.qZA(),o.TgZ(11,"mat-form-field",9),o.TgZ(12,"input",10),o.NdJ("ngModelChange",function(e){return t.amount=e}),o.qZA(),o.YNc(13,mc,2,0,"mat-error",8),o.qZA(),o.TgZ(14,"div",11),o.TgZ(15,"button",12),o.NdJ("click",function(){return t.resetData()}),o._uU(16,"Clear"),o.qZA(),o.TgZ(17,"button",13),o._uU(18,"Query Route"),o.qZA(),o.qZA(),o.qZA(),o.TgZ(19,"div",14),o.TgZ(20,"div",15),o._UZ(21,"fa-icon",16),o.TgZ(22,"span",17),o._uU(23,"Transaction Route"),o.qZA(),o.qZA(),o.qZA(),o.TgZ(24,"div",18),o.YNc(25,gc,1,0,"mat-progress-bar",19),o.TgZ(26,"table",20,21),o.ynx(28,22),o.YNc(29,fc,2,0,"th",23),o.YNc(30,xc,2,1,"td",24),o.BQk(),o.ynx(31,25),o.YNc(32,Zc,2,0,"th",23),o.YNc(33,Ac,2,4,"td",26),o.BQk(),o.ynx(34,27),o.YNc(35,Cc,2,0,"th",23),o.YNc(36,Tc,2,1,"td",24),o.BQk(),o.ynx(37,28),o.YNc(38,bc,2,0,"th",29),o.YNc(39,wc,4,3,"td",24),o.BQk(),o.ynx(40,30),o.YNc(41,_c,2,0,"th",29),o.YNc(42,vc,4,3,"td",24),o.BQk(),o.ynx(43,31),o.YNc(44,qc,2,0,"th",29),o.YNc(45,Sc,4,3,"td",24),o.BQk(),o.ynx(46,32),o.YNc(47,Fc,3,0,"th",33),o.YNc(48,Lc,3,0,"td",34),o.BQk(),o.YNc(49,kc,1,0,"tr",35),o.YNc(50,Nc,1,0,"tr",36),o.qZA(),o.qZA(),o.qZA()}2&e&&(o.xp6(4),o.Q6J("icon",t.faExclamationTriangle),o.xp6(4),o.Q6J("ngModel",t.destinationPubkey),o.xp6(2),o.Q6J("ngIf",!t.destinationPubkey),o.xp6(2),o.Q6J("ngModel",t.amount)("step",1e3)("min",0),o.xp6(1),o.Q6J("ngIf",!t.amount),o.xp6(8),o.Q6J("icon",t.faRoute),o.xp6(4),o.Q6J("ngIf",!0===t.flgLoading[0]),o.xp6(1),o.Q6J("dataSource",t.qrHops)("ngClass",o.VKq(14,Uc,"error"===t.flgLoading[0])),o.xp6(23),o.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),o.xp6(1),o.Q6J("matRowDefColumns",t.displayedColumns))},directives:[l.xw,l.yH,Ae._Y,Ae.JL,Ae.F,l.Wh,T.BN,D.KE,Ce.Nt,Ae.Fj,Ae.Q7,Ae.JJ,Ae.On,a.O5,Ae.wV,Ae.qQ,be.q,q.lW,E.$V,Ze.BZ,xe.YE,a.mk,v.oO,Ze.w1,Ze.fO,Ze.Dz,Ze.as,Ze.nj,D.TO,r.pW,Ze.ge,xe.nU,Ze.ev,a.PC,v.Zl,Ze.XQ,Ze.Gk],pipes:[a.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{flex:0 0 5%;width:5%}.mat-column-pubkey_alias[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),e})();var Oc=n(4810);function Jc(e,t){1&e&&(o.TgZ(0,"th",25),o._uU(1,"Network"),o.qZA())}function Dc(e,t){if(1&e&&(o.TgZ(0,"td",26),o._uU(1),o.qZA()),2&e){const e=t.$implicit;o.xp6(1),o.hij(" ",null==e?null:e.network," ")}}function Rc(e,t){1&e&&(o.TgZ(0,"th",25),o._uU(1,"Address"),o.qZA())}function Mc(e,t){if(1&e&&(o.TgZ(0,"td",26),o._uU(1),o.qZA()),2&e){const e=t.$implicit;o.xp6(1),o.hij(" ",null==e?null:e.addr," ")}}function Ec(e,t){1&e&&(o.TgZ(0,"th",27),o.TgZ(1,"span",28),o._uU(2,"Actions"),o.qZA(),o.qZA())}function Qc(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"td",29),o.TgZ(1,"span",28),o.TgZ(2,"button",30),o.NdJ("copied",function(t){return o.CHM(e),o.oxw(2).onCopyNodeURI(t)}),o._uU(3,"Copy Node URI"),o.qZA(),o.qZA(),o.qZA()}if(2&e){const e=t.$implicit,n=o.oxw(2);o.xp6(2),o.Q6J("payload",n.lookupResult.node.pub_key+"@"+e.addr)}}function Yc(e,t){1&e&&o._UZ(0,"tr",31)}function Pc(e,t){1&e&&o._UZ(0,"tr",32)}const Bc=function(e){return{"background-color":e}};function Gc(e,t){if(1&e&&(o.TgZ(0,"div",1),o._UZ(1,"mat-divider",2),o.TgZ(2,"div",3),o.TgZ(3,"h4",4),o._uU(4,"Pub Key"),o.qZA(),o.TgZ(5,"span",5),o._uU(6),o.qZA(),o.qZA(),o._UZ(7,"mat-divider",6),o.TgZ(8,"div",7),o.TgZ(9,"div",8),o.TgZ(10,"h4",4),o._uU(11,"Alias"),o.qZA(),o.TgZ(12,"span",9),o._uU(13),o.TgZ(14,"span",10),o._uU(15),o.qZA(),o.qZA(),o.qZA(),o.TgZ(16,"div",8),o.TgZ(17,"h4",4),o._uU(18,"Last Update"),o.qZA(),o.TgZ(19,"span",9),o._uU(20),o.ALo(21,"date"),o.qZA(),o.qZA(),o.qZA(),o._UZ(22,"mat-divider",6),o.TgZ(23,"div",7),o.TgZ(24,"div",8),o.TgZ(25,"h4",4),o._uU(26,"Total Capacity (Sats)"),o.qZA(),o.TgZ(27,"span",9),o._uU(28),o.ALo(29,"number"),o.qZA(),o.qZA(),o.TgZ(30,"div",8),o.TgZ(31,"h4",4),o._uU(32,"Number of Channels"),o.qZA(),o.TgZ(33,"span",9),o._uU(34),o.ALo(35,"number"),o.qZA(),o.qZA(),o.qZA(),o._UZ(36,"mat-divider",6),o.TgZ(37,"div",11),o.TgZ(38,"h4",12),o._uU(39,"Addresses"),o.qZA(),o.TgZ(40,"div",13),o.TgZ(41,"table",14,15),o.ynx(43,16),o.YNc(44,Jc,2,0,"th",17),o.YNc(45,Dc,2,1,"td",18),o.BQk(),o.ynx(46,19),o.YNc(47,Rc,2,0,"th",17),o.YNc(48,Mc,2,1,"td",18),o.BQk(),o.ynx(49,20),o.YNc(50,Ec,3,0,"th",21),o.YNc(51,Qc,4,1,"td",22),o.BQk(),o.YNc(52,Yc,1,0,"tr",23),o.YNc(53,Pc,1,0,"tr",24),o.qZA(),o.qZA(),o.qZA(),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Q6J("inset",!0),o.xp6(5),o.Oqu(e.lookupResult.node.pub_key),o.xp6(1),o.Q6J("inset",!0),o.xp6(6),o.Oqu(e.lookupResult.node.alias),o.xp6(1),o.Q6J("ngStyle",o.VKq(21,Bc,null==e.lookupResult.node?null:e.lookupResult.node.color)),o.xp6(1),o.Oqu(null==e.lookupResult.node?null:e.lookupResult.node.color),o.xp6(5),o.Oqu(o.xi3(21,14,1e3*e.lookupResult.node.last_update,"dd/MMM/YYYY HH:mm")),o.xp6(2),o.Q6J("inset",!0),o.xp6(6),o.Oqu(o.lcZ(29,17,e.lookupResult.total_capacity)),o.xp6(6),o.Oqu(o.lcZ(35,19,e.lookupResult.num_channels)),o.xp6(2),o.Q6J("inset",!0),o.xp6(5),o.Q6J("dataSource",e.lookupResult.node.addresses),o.xp6(11),o.Q6J("matHeaderRowDef",e.displayedColumns),o.xp6(1),o.Q6J("matRowDefColumns",e.displayedColumns)}}let Hc=(()=>{class e{constructor(e,t){this.logger=e,this.snackBar=t,this.displayedColumns=["network","addr","actions"]}onCopyNodeURI(e){this.snackBar.open("Node URI copied."),this.logger.info("Copied Text: "+e)}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(Z.mQ),o.Y36(Ai.ux))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-node-lookup"]],inputs:{lookupResult:"lookupResult"},decls:1,vars:1,consts:[["fxLayout","column","class","mt-1",4,"ngIf"],["fxLayout","column",1,"mt-1"],[1,"mb-1",3,"inset"],["fxLayout","column","fxFlex","100","fxLayoutAlign","end start",1,"my-1"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text","w-100"],[1,"my-1",3,"inset"],["fxLayout","row"],["fxLayout","column","fxFlex","50","fxLayoutAlign","end start",1,"my-1"],[1,"foreground-secondary-text"],[1,"ml-2",3,"ngStyle"],["fxLayout","column",1,"mt-2"],["fxFlex","100","fxLayoutAlign","start",1,"font-bold-500","mb-1"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mat-table","","matSort","",3,"dataSource"],["table",""],["matColumnDef","network"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","addr"],["matColumnDef","actions"],["mat-header-cell","","class","pl-1",4,"matHeaderCellDef"],["mat-cell","","class","pl-1",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","",1,"pl-1"],["fxLayoutAlign","end center"],["mat-cell","",1,"pl-1"],["mat-stroked-button","","color","primary","type","button","tabindex","1","rtlClipboard","",3,"payload","copied"],["mat-header-row",""],["mat-row",""]],template:function(e,t){1&e&&o.YNc(0,Gc,54,23,"div",0),2&e&&o.Q6J("ngIf",t.lookupResult)},directives:[a.O5,l.xw,M.d,l.yH,l.Wh,a.PC,v.Zl,E.$V,Ze.BZ,xe.YE,Ze.w1,Ze.fO,Ze.Dz,Ze.as,Ze.nj,Ze.ge,xe.nU,Ze.ev,q.lW,Ci.y,Ze.XQ,Ze.Gk],pipes:[a.uU,a.JJ],styles:[""]}),e})();function zc(e,t){1&e&&(o.TgZ(0,"h3",16),o._uU(1,"Node 1"),o.qZA())}function Vc(e,t){1&e&&(o.TgZ(0,"h3",16),o._uU(1,"Node 1 (Your Node)"),o.qZA())}function Wc(e,t){1&e&&(o.TgZ(0,"h3",16),o._uU(1,"Node 2"),o.qZA())}function Xc(e,t){1&e&&(o.TgZ(0,"h3",16),o._uU(1,"Node 2 (Your Node)"),o.qZA())}function $c(e,t){if(1&e&&(o.TgZ(0,"div",1),o._UZ(1,"mat-divider",2),o.TgZ(2,"div",3),o.TgZ(3,"h4",4),o._uU(4,"Channel Id"),o.qZA(),o.TgZ(5,"span",5),o._uU(6),o.qZA(),o.qZA(),o._UZ(7,"mat-divider",6),o.TgZ(8,"div",3),o.TgZ(9,"h4",4),o._uU(10,"Channel Point"),o.qZA(),o.TgZ(11,"span",5),o._uU(12),o.qZA(),o.qZA(),o._UZ(13,"mat-divider",6),o.TgZ(14,"div",7),o.TgZ(15,"div",8),o.TgZ(16,"h4",4),o._uU(17,"Last Update"),o.qZA(),o.TgZ(18,"span",5),o._uU(19),o.ALo(20,"date"),o.qZA(),o.qZA(),o.TgZ(21,"div",8),o.TgZ(22,"h4",4),o._uU(23,"Capacity (Sats)"),o.qZA(),o.TgZ(24,"span",5),o._uU(25),o.ALo(26,"number"),o.qZA(),o.qZA(),o.qZA(),o._UZ(27,"mat-divider",6),o.TgZ(28,"div",9),o.TgZ(29,"div",10),o.TgZ(30,"div",11),o.YNc(31,zc,2,0,"h3",12),o.YNc(32,Vc,2,0,"h3",12),o.qZA(),o._UZ(33,"mat-divider",13),o.TgZ(34,"div",14),o.TgZ(35,"h4",4),o._uU(36,"Pubkey"),o.qZA(),o.TgZ(37,"span",5),o._uU(38),o.qZA(),o.qZA(),o._UZ(39,"mat-divider",13),o.TgZ(40,"div",15),o.TgZ(41,"h4",4),o._uU(42,"Time Lock Delta"),o.qZA(),o.TgZ(43,"span",5),o._uU(44),o.qZA(),o.qZA(),o._UZ(45,"mat-divider",13),o.TgZ(46,"div",15),o.TgZ(47,"h4",4),o._uU(48,"Min HTLC"),o.qZA(),o.TgZ(49,"span",5),o._uU(50),o.qZA(),o.qZA(),o._UZ(51,"mat-divider",13),o.TgZ(52,"div",15),o.TgZ(53,"h4",4),o._uU(54,"Fee Base Msat"),o.qZA(),o.TgZ(55,"span",5),o._uU(56),o.qZA(),o.qZA(),o._UZ(57,"mat-divider",13),o.TgZ(58,"div",15),o.TgZ(59,"h4",4),o._uU(60,"Fee Rate Milli Msat"),o.qZA(),o.TgZ(61,"span",5),o._uU(62),o.qZA(),o.qZA(),o._UZ(63,"mat-divider",13),o.TgZ(64,"div",15),o.TgZ(65,"h4",4),o._uU(66,"Disabled"),o.qZA(),o.TgZ(67,"span",5),o._uU(68),o.qZA(),o.qZA(),o.qZA(),o.TgZ(69,"div",10),o.TgZ(70,"div"),o.YNc(71,Wc,2,0,"h3",12),o.YNc(72,Xc,2,0,"h3",12),o.qZA(),o._UZ(73,"mat-divider",13),o.TgZ(74,"div",14),o.TgZ(75,"h4",4),o._uU(76,"Pubkey"),o.qZA(),o.TgZ(77,"span",5),o._uU(78),o.qZA(),o.qZA(),o._UZ(79,"mat-divider",13),o.TgZ(80,"div",15),o.TgZ(81,"h4",4),o._uU(82,"Time Lock Delta"),o.qZA(),o.TgZ(83,"span",5),o._uU(84),o.qZA(),o.qZA(),o._UZ(85,"mat-divider",13),o.TgZ(86,"div",15),o.TgZ(87,"h4",4),o._uU(88,"Min HTLC"),o.qZA(),o.TgZ(89,"span",5),o._uU(90),o.qZA(),o.qZA(),o._UZ(91,"mat-divider",13),o.TgZ(92,"div",15),o.TgZ(93,"h4",4),o._uU(94,"Fee Base Msat"),o.qZA(),o.TgZ(95,"span",5),o._uU(96),o.qZA(),o.qZA(),o._UZ(97,"mat-divider",13),o.TgZ(98,"div",15),o.TgZ(99,"h4",4),o._uU(100,"Fee Rate Milli Msat"),o.qZA(),o.TgZ(101,"span",5),o._uU(102),o.qZA(),o.qZA(),o._UZ(103,"mat-divider",13),o.TgZ(104,"div",15),o.TgZ(105,"h4",4),o._uU(106,"Disabled"),o.qZA(),o.TgZ(107,"span",5),o._uU(108),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Q6J("inset",!0),o.xp6(5),o.Oqu(e.lookupResult.channel_id),o.xp6(1),o.Q6J("inset",!0),o.xp6(5),o.Oqu(e.lookupResult.chan_point),o.xp6(1),o.Q6J("inset",!0),o.xp6(6),o.Oqu(o.xi3(20,36,1e3*e.lookupResult.last_update,"dd/MMM/YYYY HH:mm")),o.xp6(6),o.Oqu(o.lcZ(26,39,e.lookupResult.capacity)),o.xp6(2),o.Q6J("inset",!0),o.xp6(4),o.Q6J("ngIf",!e.node1_match),o.xp6(1),o.Q6J("ngIf",e.node1_match),o.xp6(1),o.Q6J("inset",!0),o.xp6(5),o.Oqu(e.lookupResult.node1_pub),o.xp6(1),o.Q6J("inset",!0),o.xp6(5),o.Oqu(null==e.lookupResult.node1_policy?null:e.lookupResult.node1_policy.time_lock_delta),o.xp6(1),o.Q6J("inset",!0),o.xp6(5),o.Oqu(null==e.lookupResult.node1_policy?null:e.lookupResult.node1_policy.min_htlc),o.xp6(1),o.Q6J("inset",!0),o.xp6(5),o.Oqu(null==e.lookupResult.node1_policy?null:e.lookupResult.node1_policy.fee_base_msat),o.xp6(1),o.Q6J("inset",!0),o.xp6(5),o.Oqu(null==e.lookupResult.node1_policy?null:e.lookupResult.node1_policy.fee_rate_milli_msat),o.xp6(1),o.Q6J("inset",!0),o.xp6(5),o.Oqu(null==e.lookupResult.node1_policy?null:e.lookupResult.node1_policy.disabled),o.xp6(3),o.Q6J("ngIf",!e.node2_match),o.xp6(1),o.Q6J("ngIf",e.node2_match),o.xp6(1),o.Q6J("inset",!0),o.xp6(5),o.Oqu(e.lookupResult.node2_pub),o.xp6(1),o.Q6J("inset",!0),o.xp6(5),o.Oqu(null==e.lookupResult.node2_policy?null:e.lookupResult.node2_policy.time_lock_delta),o.xp6(1),o.Q6J("inset",!0),o.xp6(5),o.Oqu(null==e.lookupResult.node2_policy?null:e.lookupResult.node2_policy.min_htlc),o.xp6(1),o.Q6J("inset",!0),o.xp6(5),o.Oqu(null==e.lookupResult.node2_policy?null:e.lookupResult.node2_policy.fee_base_msat),o.xp6(1),o.Q6J("inset",!0),o.xp6(5),o.Oqu(null==e.lookupResult.node2_policy?null:e.lookupResult.node2_policy.fee_rate_milli_msat),o.xp6(1),o.Q6J("inset",!0),o.xp6(5),o.Oqu(null==e.lookupResult.node2_policy?null:e.lookupResult.node2_policy.disabled)}}let jc=(()=>{class e{constructor(e){this.store=e,this.node1_match=!1,this.node2_match=!1,this.unSubs=[new p.x,new p.x,new p.x,new p.x]}ngOnInit(){this.store.select("lnd").pipe((0,d.R)(this.unSubs[0])).subscribe(e=>{this.lookupResult.node1_pub===e.information.identity_pubkey&&(this.node1_match=!0),this.lookupResult.node2_pub===e.information.identity_pubkey&&(this.node2_match=!0)})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(y.yh))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-channel-lookup"]],inputs:{lookupResult:"lookupResult"},decls:1,vars:1,consts:[["fxLayout","column","class","mt-1",4,"ngIf"],["fxLayout","column",1,"mt-1"],[1,"mb-1",3,"inset"],["fxLayout","column","fxFlex","100","fxLayoutAlign","end start",1,"my-1"],[1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"my-1",3,"inset"],["fxLayout","row"],["fxLayout","column","fxFlex","100","fxFlex.gt-sm","50","fxLayoutAlign","end start",1,"my-1"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row"],["fxLayout","column","fxFlex","49","fxLayoutAlign","start start",1,"mt-1","bordered-box","padding-gap-large"],["fxLayout","column"],["class","page-title font-bold-500",4,"ngIf"],[3,"inset"],["fxLayout","column","fxFlex","20",1,"my-1"],["fxLayout","column","fxFlex","10",1,"my-1"],[1,"page-title","font-bold-500"]],template:function(e,t){1&e&&o.YNc(0,$c,109,41,"div",0),2&e&&o.Q6J("ngIf",t.lookupResult)},directives:[a.O5,l.xw,M.d,l.yH,l.Wh],pipes:[a.uU,a.JJ],styles:[".mat-list-base[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%], .mat-list-base[_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%]{height:38px!important}"]}),e})();function Kc(e,t){if(1&e&&(o.TgZ(0,"mat-radio-button",21),o._uU(1),o.qZA()),2&e){const e=t.$implicit,n=o.oxw();o.Q6J("value",e.id)("checked",n.selectedFieldId===e.id),o.xp6(1),o.hij(" ",e.name," ")}}function eu(e,t){if(1&e&&(o.TgZ(0,"mat-error"),o._uU(1),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.hij("",null==e.lookupFields[e.selectedFieldId]?null:e.lookupFields[e.selectedFieldId].placeholder," is required.")}}function tu(e,t){1&e&&o._UZ(0,"mat-progress-bar",24)}const nu=function(e){return{"w-100 mt-2 p-2 error-border":e,"w-100 my-2 p-2":!0}};function au(e,t){if(1&e&&(o.TgZ(0,"div",22),o.YNc(1,tu,1,0,"mat-progress-bar",23),o._uU(2),o.qZA()),2&e){const e=o.oxw();o.Q6J("ngClass",o.VKq(3,nu,""!==e.errorMessage&&"Getting lookup details..."!==e.errorMessage)),o.xp6(1),o.Q6J("ngIf","Getting lookup details..."===e.errorMessage),o.xp6(1),o.hij(" ",e.errorMessage," ")}}function iu(e,t){if(1&e&&(o.TgZ(0,"span",31),o._UZ(1,"rtl-node-lookup",32),o.qZA()),2&e){const e=o.oxw(2);o.xp6(1),o.Q6J("lookupResult",e.lookupValue)}}function su(e,t){if(1&e&&(o.TgZ(0,"span",31),o._UZ(1,"rtl-channel-lookup",32),o.qZA()),2&e){const e=o.oxw(2);o.xp6(1),o.Q6J("lookupResult",e.lookupValue)}}function ou(e,t){1&e&&(o.TgZ(0,"span",31),o.TgZ(1,"h3"),o._uU(2,"Error! Unable to find details!"),o.qZA(),o.qZA())}function lu(e,t){if(1&e&&(o.TgZ(0,"div",25),o.TgZ(1,"div",26),o.TgZ(2,"span",27),o._uU(3),o.qZA(),o.qZA(),o.TgZ(4,"div",28),o.YNc(5,iu,2,1,"span",29),o.YNc(6,su,2,1,"span",29),o.YNc(7,ou,3,0,"span",30),o.qZA(),o.qZA()),2&e){const e=o.oxw();o.xp6(3),o.hij("",e.lookupFields[e.selectedFieldId].name," Details"),o.xp6(1),o.Q6J("ngSwitch",e.selectedFieldId),o.xp6(1),o.Q6J("ngSwitchCase",0),o.xp6(1),o.Q6J("ngSwitchCase",1)}}const ru=function(e){return{"mt-2":e}};let cu=(()=>{class e{constructor(e,t,n,a){this.logger=e,this.commonService=t,this.store=n,this.actions=a,this.lookupKey="",this.lookupValue={},this.flgSetLookupValue=!1,this.messageObj=[],this.selectedFieldId=0,this.lookupFields=[{id:0,name:"Node",placeholder:"Pubkey"},{id:1,name:"Channel",placeholder:"Channel ID"}],this.faSearch=g.wn1,this.screenSize="",this.screenSizeEnum=f.cu,this.errorMessage="",this.apisCallStatus=null,this.apiCallStatusEnum=f.Bn,this.unSubs=[new p.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.actions.pipe((0,d.R)(this.unSubs[0]),(0,h.h)(e=>e.type===x.RP||e.type===x.JE)).subscribe(e=>{e.type===x.RP&&(this.errorMessage=0===this.selectedFieldId&&e.payload.hasOwnProperty("node")||1===this.selectedFieldId&&e.payload.hasOwnProperty("channel_id")?"":this.errorMessage,this.lookupValue=JSON.parse(JSON.stringify(e.payload)),this.flgSetLookupValue=!(0!==this.selectedFieldId||!e.payload.hasOwnProperty("node"))||!(1!==this.selectedFieldId||!e.payload.hasOwnProperty("channel_id")),this.logger.info(this.lookupValue)),e.type===x.JE&&"Lookup"===e.payload.action&&(this.errorMessage="",e.payload.status===f.Bn.ERROR&&(this.errorMessage="object"==typeof e.payload.message?JSON.stringify(e.payload.message):e.payload.message),e.payload.status===f.Bn.INITIATED&&(this.errorMessage=f.m6.GET_LOOKUP_DETAILS))})}onLookup(){if(!this.lookupKey)return!0;switch(this.flgSetLookupValue=!1,this.lookupValue={},this.selectedFieldId){case 0:this.store.dispatch(new x.x$(this.lookupKey.trim()));break;case 1:this.store.dispatch(new x.IG({uiMessage:f.m6.SEARCHING_CHANNEL,channelID:this.lookupKey.trim()}))}}onSelectChange(e){this.resetData(),this.selectedFieldId=e.value}resetData(){this.flgSetLookupValue=!1,this.selectedFieldId=0,this.lookupKey="",this.lookupValue={},this.errorMessage=""}clearLookupValue(){this.lookupValue={},this.flgSetLookupValue=!1}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(Z.mQ),o.Y36(C.v),o.Y36(y.yh),o.Y36(A.eX))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-lookups"]],decls:24,vars:11,consts:[["fxLayout","column"],["fxLayout","row","fxLayoutAlign","start end",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start",1,"padding-gap"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"card-content-gap","mt-1"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start space-between",1,"w-100"],["form","ngForm"],["fxFlex","35","fxFlex.gt-md","25","fxLayoutAlign","start end"],["color","primary","tabindex","1","name","lookupField",3,"ngModel","ngModelChange","change"],["class","mr-4",3,"value","checked",4,"ngFor","ngForOf"],["fxFlex","65","fxFlex.gt-md","75","fxLayoutAlign","start end",3,"ngClass"],["matInput","","name","lookupKey","tabindex","2","required","",3,"placeholder","ngModel","change","ngModelChange"],["key",""],[4,"ngIf"],[1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","3","type","button",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","4","type","submit",3,"click"],["fxFlex","100","fxLayout","row wrap","fxLayoutAlign","space-between center",3,"ngClass",4,"ngIf"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch","class","w-100 mt-2",4,"ngIf"],[1,"mr-4",3,"value","checked"],["fxFlex","100","fxLayout","row wrap","fxLayoutAlign","space-between center",3,"ngClass"],["mode","indeterminate",4,"ngIf"],["mode","indeterminate"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch",1,"w-100","mt-2"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],[1,"page-title","font-bold-500"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",3,"ngSwitch"],["fxFlex","100",4,"ngSwitchCase"],["fxFlex","100",4,"ngSwitchDefault"],["fxFlex","100"],[3,"lookupResult"]],template:function(e,t){1&e&&(o.TgZ(0,"div",0),o.TgZ(1,"div",1),o._UZ(2,"fa-icon",2),o.TgZ(3,"span",3),o._uU(4,"Graph Lookups"),o.qZA(),o.qZA(),o.TgZ(5,"div",4),o.TgZ(6,"mat-card",5),o.TgZ(7,"mat-card-content",6),o.TgZ(8,"form",7,8),o.TgZ(10,"div",9),o.TgZ(11,"mat-radio-group",10),o.NdJ("ngModelChange",function(e){return t.selectedFieldId=e})("change",function(e){return t.onSelectChange(e)}),o.YNc(12,Kc,2,3,"mat-radio-button",11),o.qZA(),o.qZA(),o.TgZ(13,"mat-form-field",12),o.TgZ(14,"input",13,14),o.NdJ("change",function(){return t.clearLookupValue()})("ngModelChange",function(e){return t.lookupKey=e}),o.qZA(),o.YNc(16,eu,2,1,"mat-error",15),o.qZA(),o.TgZ(17,"div",16),o.TgZ(18,"button",17),o.NdJ("click",function(){return t.resetData()}),o._uU(19,"Clear"),o.qZA(),o.TgZ(20,"button",18),o.NdJ("click",function(){return t.onLookup()}),o._uU(21,"Lookup"),o.qZA(),o.qZA(),o.qZA(),o.YNc(22,au,3,5,"div",19),o.YNc(23,lu,8,4,"div",20),o.qZA(),o.qZA(),o.qZA(),o.qZA()),2&e&&(o.xp6(2),o.Q6J("icon",t.faSearch),o.xp6(9),o.Q6J("ngModel",t.selectedFieldId),o.xp6(1),o.Q6J("ngForOf",t.lookupFields),o.xp6(1),o.Q6J("ngClass",o.VKq(9,ru,t.screenSize===t.screenSizeEnum.XS||t.screenSize===t.screenSizeEnum.SM)),o.xp6(1),o.Q6J("placeholder",(null==t.lookupFields[t.selectedFieldId]?null:t.lookupFields[t.selectedFieldId].placeholder)||"Lookup Key")("ngModel",t.lookupKey),o.xp6(2),o.Q6J("ngIf",!t.lookupKey),o.xp6(6),o.Q6J("ngIf",""!==t.errorMessage),o.xp6(1),o.Q6J("ngIf",""===t.errorMessage&&t.lookupValue&&t.flgSetLookupValue))},directives:[l.xw,l.Wh,T.BN,l.yH,w.a8,w.dn,Ae._Y,Ae.JL,Ae.F,Oc.VQ,Ae.JJ,Ae.On,a.sg,D.KE,a.mk,v.oO,Ce.Nt,Ae.Fj,Ae.Q7,a.O5,q.lW,Oc.U0,D.TO,r.pW,a.RF,a.n9,a.ED,Hc,jc],styles:[".tree-invisible[_ngcontent-%COMP%]{display:none}.lookup-tree[_ngcontent-%COMP%] li[_ngcontent-%COMP%], .lookup-tree[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;list-style-type:none}.pl-3[_ngcontent-%COMP%]{padding-left:3rem}"]}),e})();var uu=n(5812);function pu(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Invalid date format."),o.qZA())}function du(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Invalid date format."),o.qZA())}function hu(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"div",27),o.NdJ("click",function(){const t=o.CHM(e).$implicit;return o.oxw().activeLink=t.link}),o._uU(1),o.qZA()}if(2&e){const e=t.$implicit,n=o.oxw();o.s9C("routerLink",e.link),o.Q6J("active",n.activeLink===e.link),o.xp6(1),o.Oqu(e.name)}}let mu=(()=>{class e{constructor(e,t){this.store=e,this.router=t,this.faMapSigns=g.SuH,this.today=new Date(Date.now()),this.lastMonthDay=new Date(this.today.getFullYear(),this.today.getMonth()-1,this.today.getDate()+1,0,0,0),this.yesterday=new Date(this.today.getFullYear(),this.today.getMonth(),this.today.getDate()-1,0,0,0),this.endDate=this.today,this.startDate=this.lastMonthDay,this.links=[{link:"forwardinghistory",name:"Forwarding History"},{link:"peers",name:"Routing Peers"}],this.activeLink=this.links[0].link,this.unSubs=[new p.x,new p.x,new p.x]}ngOnInit(){this.onEventsFetch();const e=this.links.find(e=>this.router.url.includes(e.link));this.activeLink=e?e.link:this.links[0].link,this.router.events.pipe((0,d.R)(this.unSubs[0]),(0,h.h)(e=>e instanceof i.Av)).subscribe(e=>{const t=this.links.find(t=>e.urlAfterRedirects.includes(t.link));this.activeLink=t?t.link:this.links[0].link})}onEventsFetch(){this.store.dispatch(new x.Fn({})),this.endDate||(this.endDate=this.today),this.startDate||(this.startDate=new Date(this.endDate.getFullYear(),this.endDate.getMonth()-1,this.endDate.getDate()+1,0,0,0)),this.store.dispatch(new x.KK({end_time:Math.round(this.endDate.getTime()/1e3).toString(),start_time:Math.round(this.startDate.getTime()/1e3).toString()}))}resetData(){this.endDate=this.today,this.startDate=this.lastMonthDay}ngOnDestroy(){this.resetData(),this.store.dispatch(new x.Fn({})),this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(y.yh),o.Y36(i.F0))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-routing"]],decls:35,vars:15,consts:[["fxLayout","column"],["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start",1,"padding-gap-x"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"card-content-gap","mt-1"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch",1,"w-100","mb-1",3,"ngSubmit"],["routingForm","ngForm"],["fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","49","fxLayoutAlign","start"],["matInput","","placeholder","Start Date","name","startDate","tabindex","1",3,"matDatepicker","max","ngModel","ngModelChange"],["strtDate","ngModel"],["matSuffix","",3,"for"],[3,"startAt"],["startDatepicker",""],[4,"ngIf"],["matInput","","placeholder","End Date","name","endDate","tabindex","2",3,"matDatepicker","min","max","ngModel","ngModelChange"],["enDate","ngModel"],["endDatepicker",""],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","3","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","4"],["fxLayout","row","fxFlex","100"],["mat-tab-nav-bar","","fxFlex","100"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(e,t){if(1&e&&(o.TgZ(0,"div",0),o.TgZ(1,"div",1),o._UZ(2,"fa-icon",2),o.TgZ(3,"span",3),o._uU(4,"Routing"),o.qZA(),o.qZA(),o.TgZ(5,"div",4),o.TgZ(6,"mat-card",5),o.TgZ(7,"mat-card-content",6),o.TgZ(8,"form",7,8),o.NdJ("ngSubmit",function(){return t.onEventsFetch()}),o.TgZ(10,"div",9),o.TgZ(11,"mat-form-field",10),o.TgZ(12,"input",11,12),o.NdJ("ngModelChange",function(e){return t.startDate=e}),o.qZA(),o._UZ(14,"mat-datepicker-toggle",13),o._UZ(15,"mat-datepicker",14,15),o.YNc(17,pu,2,0,"mat-error",16),o.qZA(),o.TgZ(18,"mat-form-field",10),o.TgZ(19,"input",17,18),o.NdJ("ngModelChange",function(e){return t.endDate=e}),o.qZA(),o._UZ(21,"mat-datepicker-toggle",13),o._UZ(22,"mat-datepicker",14,19),o.YNc(24,du,2,0,"mat-error",16),o.qZA(),o.qZA(),o.TgZ(25,"div",20),o.TgZ(26,"button",21),o.NdJ("click",function(){return t.resetData()}),o._uU(27,"Clear"),o.qZA(),o.TgZ(28,"button",22),o._uU(29,"Fetch Events"),o.qZA(),o.qZA(),o.qZA(),o.TgZ(30,"div",23),o.TgZ(31,"nav",24),o.YNc(32,hu,2,3,"div",25),o.qZA(),o.qZA(),o.TgZ(33,"div",26),o._UZ(34,"router-outlet"),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA()),2&e){const e=o.MAs(13),n=o.MAs(16),a=o.MAs(20),i=o.MAs(23);o.xp6(2),o.Q6J("icon",t.faMapSigns),o.xp6(10),o.Q6J("matDatepicker",n)("max",t.today)("ngModel",t.startDate),o.xp6(2),o.Q6J("for",n),o.xp6(1),o.Q6J("startAt",t.startDate),o.xp6(2),o.Q6J("ngIf",e.errors),o.xp6(2),o.Q6J("matDatepicker",i)("min",t.startDate)("max",t.today)("ngModel",t.endDate),o.xp6(2),o.Q6J("for",i),o.xp6(1),o.Q6J("startAt",t.endDate),o.xp6(2),o.Q6J("ngIf",a.errors),o.xp6(8),o.Q6J("ngForOf",t.links)}},directives:[l.xw,l.Wh,T.BN,l.yH,w.a8,w.dn,Ae._Y,Ae.JL,Ae.F,D.KE,Ce.Nt,uu.hl,ma.F,Ae.Fj,Ae.JJ,Ae.On,uu.nW,D.R9,uu.Mq,a.O5,be.q,q.lW,ge.BU,a.sg,i.lC,D.TO,ge.Nj,i.rH],styles:[""]}),e})();function gu(e,t){if(1&e&&(o.TgZ(0,"div",5),o._uU(1),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Oqu(e.errorMessage)}}function fu(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"div",6),o._UZ(1,"div",7),o.TgZ(2,"mat-form-field",8),o.TgZ(3,"input",9),o.NdJ("ngModelChange",function(t){return o.CHM(e),o.oxw().filterValue=t})("input",function(){return o.CHM(e),o.oxw().applyFilter()})("keyup",function(){return o.CHM(e),o.oxw().applyFilter()}),o.qZA(),o.qZA(),o.qZA()}if(2&e){const e=o.oxw();o.xp6(3),o.Q6J("ngModel",e.filterValue)}}function xu(e,t){1&e&&o._UZ(0,"mat-progress-bar",31)}function Zu(e,t){1&e&&(o.TgZ(0,"th",32),o._uU(1,"Timestamp"),o.qZA())}function yu(e,t){if(1&e&&(o.TgZ(0,"td",33),o._uU(1),o.ALo(2,"date"),o.qZA()),2&e){const e=t.$implicit;o.xp6(1),o.Oqu(o.xi3(2,1,1e3*e.timestamp,"dd/MMM/YYYY HH:mm"))}}function Au(e,t){1&e&&(o.TgZ(0,"th",32),o._uU(1,"Inbound Channel"),o.qZA())}function Cu(e,t){if(1&e&&(o.TgZ(0,"td",33),o._uU(1),o.qZA()),2&e){const e=t.$implicit;o.xp6(1),o.Oqu(e.alias_in)}}function Tu(e,t){1&e&&(o.TgZ(0,"th",32),o._uU(1,"Outbound Channel"),o.qZA())}function bu(e,t){if(1&e&&(o.TgZ(0,"td",33),o._uU(1),o.qZA()),2&e){const e=t.$implicit;o.xp6(1),o.Oqu(e.alias_out)}}function wu(e,t){1&e&&(o.TgZ(0,"th",34),o._uU(1,"Inbound Amount (Sats)"),o.qZA())}function _u(e,t){if(1&e&&(o.TgZ(0,"td",33),o.TgZ(1,"span",35),o._uU(2),o.ALo(3,"number"),o.qZA(),o.qZA()),2&e){const e=t.$implicit;o.xp6(2),o.Oqu(o.lcZ(3,1,e.amt_in))}}function vu(e,t){1&e&&(o.TgZ(0,"th",34),o._uU(1,"Outbound Amount (Sats)"),o.qZA())}function qu(e,t){if(1&e&&(o.TgZ(0,"td",33),o.TgZ(1,"span",35),o._uU(2),o.ALo(3,"number"),o.qZA(),o.qZA()),2&e){const e=t.$implicit;o.xp6(2),o.Oqu(o.lcZ(3,1,e.amt_out))}}function Su(e,t){1&e&&(o.TgZ(0,"th",34),o._uU(1,"Fee (mSats)"),o.qZA())}function Fu(e,t){if(1&e&&(o.TgZ(0,"td",33),o.TgZ(1,"span",35),o._uU(2),o.ALo(3,"number"),o.qZA(),o.qZA()),2&e){const e=t.$implicit;o.xp6(2),o.Oqu(o.lcZ(3,1,e.fee_msat))}}function Lu(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"th",36),o.TgZ(1,"div",37),o.TgZ(2,"mat-select",38),o._UZ(3,"mat-select-trigger"),o.TgZ(4,"mat-option",39),o.NdJ("click",function(){return o.CHM(e),o.oxw(2).onDownloadCSV()}),o._uU(5,"Download CSV"),o.qZA(),o.qZA(),o.qZA(),o.qZA()}}function ku(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"td",40),o.TgZ(1,"button",41),o.NdJ("click",function(t){const n=o.CHM(e).$implicit;return o.oxw(2).onForwardingEventClick(n,t)}),o._uU(2,"View Info"),o.qZA(),o.qZA()}}function Nu(e,t){1&e&&(o.TgZ(0,"p"),o._uU(1,"No forwarding history available."),o.qZA())}function Uu(e,t){1&e&&(o.TgZ(0,"p"),o._uU(1,"Getting forwarding history..."),o.qZA())}function Iu(e,t){if(1&e&&(o.TgZ(0,"p"),o._uU(1),o.qZA()),2&e){const e=o.oxw(3);o.xp6(1),o.Oqu(e.errorMessage)}}function Ou(e,t){if(1&e&&(o.TgZ(0,"td",42),o.YNc(1,Nu,2,0,"p",43),o.YNc(2,Uu,2,0,"p",43),o.YNc(3,Iu,2,1,"p",43),o.qZA()),2&e){const e=o.oxw(2);o.xp6(1),o.Q6J("ngIf",(!(null!=e.forwardingHistoryEvents&&e.forwardingHistoryEvents.data)||(null==e.forwardingHistoryEvents||null==e.forwardingHistoryEvents.data?null:e.forwardingHistoryEvents.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.GetForwardingHistory.status)===e.apiCallStatusEnum.COMPLETED),o.xp6(1),o.Q6J("ngIf",(!(null!=e.forwardingHistoryEvents&&e.forwardingHistoryEvents.data)||(null==e.forwardingHistoryEvents||null==e.forwardingHistoryEvents.data?null:e.forwardingHistoryEvents.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.GetForwardingHistory.status)===e.apiCallStatusEnum.INITIATED),o.xp6(1),o.Q6J("ngIf",(!(null!=e.forwardingHistoryEvents&&e.forwardingHistoryEvents.data)||(null==e.forwardingHistoryEvents||null==e.forwardingHistoryEvents.data?null:e.forwardingHistoryEvents.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.GetForwardingHistory.status)===e.apiCallStatusEnum.ERROR)}}const Ju=function(e){return{"display-none":e}};function Du(e,t){if(1&e&&o._UZ(0,"tr",44),2&e){const e=o.oxw(2);o.Q6J("ngClass",o.VKq(1,Ju,(null==e.forwardingHistoryEvents?null:e.forwardingHistoryEvents.data)&&(null==e.forwardingHistoryEvents||null==e.forwardingHistoryEvents.data?null:e.forwardingHistoryEvents.data.length)>0))}}function Ru(e,t){1&e&&o._UZ(0,"tr",45)}function Mu(e,t){1&e&&o._UZ(0,"tr",46)}const Eu=function(){return["no_event"]};function Qu(e,t){if(1&e&&(o.TgZ(0,"div",10),o.YNc(1,xu,1,0,"mat-progress-bar",11),o.TgZ(2,"table",12,13),o.ynx(4,14),o.YNc(5,Zu,2,0,"th",15),o.YNc(6,yu,3,4,"td",16),o.BQk(),o.ynx(7,17),o.YNc(8,Au,2,0,"th",15),o.YNc(9,Cu,2,1,"td",16),o.BQk(),o.ynx(10,18),o.YNc(11,Tu,2,0,"th",15),o.YNc(12,bu,2,1,"td",16),o.BQk(),o.ynx(13,19),o.YNc(14,wu,2,0,"th",20),o.YNc(15,_u,4,3,"td",16),o.BQk(),o.ynx(16,21),o.YNc(17,vu,2,0,"th",20),o.YNc(18,qu,4,3,"td",16),o.BQk(),o.ynx(19,22),o.YNc(20,Su,2,0,"th",20),o.YNc(21,Fu,4,3,"td",16),o.BQk(),o.ynx(22,23),o.YNc(23,Lu,6,0,"th",24),o.YNc(24,ku,3,0,"td",25),o.BQk(),o.ynx(25,26),o.YNc(26,Ou,4,3,"td",27),o.BQk(),o.YNc(27,Du,1,3,"tr",28),o.YNc(28,Ru,1,0,"tr",29),o.YNc(29,Mu,1,0,"tr",30),o.qZA(),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Q6J("ngIf",(null==e.apisCallStatus?null:e.apisCallStatus.GetForwardingHistory.status)===e.apiCallStatusEnum.INITIATED),o.xp6(1),o.Q6J("dataSource",e.forwardingHistoryEvents),o.xp6(25),o.Q6J("matFooterRowDef",o.DdM(6,Eu)),o.xp6(1),o.Q6J("matHeaderRowDef",e.displayedColumns)("matHeaderRowDefSticky",e.flgSticky),o.xp6(1),o.Q6J("matRowDefColumns",e.displayedColumns)}}function Yu(e,t){if(1&e&&o._UZ(0,"mat-paginator",47),2&e){const e=o.oxw();o.Q6J("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)("showFirstLastButtons",e.screenSize!==e.screenSizeEnum.XS)}}let Pu=(()=>{class e{constructor(e,t,n,a){this.logger=e,this.commonService=t,this.store=n,this.datePipe=a,this.eventsData=[],this.filterValue="",this.forwardingHistoryData=[],this.displayedColumns=[],this.flgSticky=!1,this.pageSize=f.IV,this.pageSizeOptions=f.TJ,this.screenSize="",this.screenSizeEnum=f.cu,this.errorMessage="",this.apisCallStatus=null,this.apiCallStatusEnum=f.Bn,this.unSubs=[new p.x,new p.x,new p.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===f.cu.XS?(this.flgSticky=!1,this.displayedColumns=["timestamp","fee_msat","actions"]):this.screenSize===f.cu.SM||this.screenSize===f.cu.MD?(this.flgSticky=!1,this.displayedColumns=["timestamp","amt_in","amt_out","fee_msat","actions"]):(this.flgSticky=!0,this.displayedColumns=["timestamp","alias_in","alias_out","amt_in","amt_out","fee_msat","actions"])}ngOnInit(){this.store.select("lnd").pipe((0,d.R)(this.unSubs[0])).subscribe(e=>{this.eventsData.length<=0&&(this.errorMessage="",this.apisCallStatus=e.apisCallStatus,e.apisCallStatus.GetForwardingHistory.status===f.Bn.ERROR&&(this.errorMessage="object"==typeof this.apisCallStatus.GetForwardingHistory.message?JSON.stringify(this.apisCallStatus.GetForwardingHistory.message):this.apisCallStatus.GetForwardingHistory.message),this.forwardingHistoryData=e.forwardingHistory&&e.forwardingHistory.forwarding_events?e.forwardingHistory.forwarding_events:[],this.loadForwardingEventsTable(this.forwardingHistoryData),this.logger.info(e))})}ngAfterViewInit(){this.forwardingHistoryData.length>0&&this.loadForwardingEventsTable(this.forwardingHistoryData)}ngOnChanges(e){e.eventsData&&(this.eventsData=e.eventsData.currentValue,this.forwardingHistoryData=this.eventsData,e.eventsData.firstChange||this.loadForwardingEventsTable(this.forwardingHistoryData)),e.filterValue&&!e.filterValue.firstChange&&this.applyFilter()}onForwardingEventClick(e,t){this.store.dispatch(new ee.wu({data:{type:f.n_.INFORMATION,alertTitle:"Event Information",message:[[{key:"timestamp",value:e.timestamp,title:"Timestamp",width:25,type:f.Gi.DATE_TIME},{key:"amt_in",value:e.amt_in,title:"Inbound Amount (Sats)",width:25,type:f.Gi.NUMBER},{key:"amt_out",value:e.amt_out,title:"Outbound Amount (Sats)",width:25,type:f.Gi.NUMBER},{key:"fee_msat",value:e.fee_msat,title:"Fee (mSats)",width:25,type:f.Gi.NUMBER}],[{key:"alias_in",value:e.alias_in,title:"Inbound Peer Alias",width:25,type:f.Gi.STRING},{key:"chan_id_in",value:e.chan_id_in,title:"Inbound Channel ID",width:25,type:f.Gi.STRING},{key:"alias_out",value:e.alias_out,title:"Outbound Peer Alias",width:25,type:f.Gi.STRING},{key:"chan_id_out",value:e.chan_id_out,title:"Outbound Channel ID",width:25,type:f.Gi.STRING}]]}}))}loadForwardingEventsTable(e){this.forwardingHistoryEvents=new Ze.by(e?[...e]:[]),this.forwardingHistoryEvents.sort=this.sort,this.forwardingHistoryEvents.sortingDataAccessor=(e,t)=>e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():e[t]?+e[t]:null,this.forwardingHistoryEvents.filterPredicate=(e,t)=>((e.timestamp?this.datePipe.transform(new Date(1e3*e.timestamp),"dd/MMM/YYYY HH:mm").toLowerCase():"")+JSON.stringify(e).toLowerCase()).includes(t),this.forwardingHistoryEvents.paginator=this.paginator,this.logger.info(this.forwardingHistoryEvents)}onDownloadCSV(){this.forwardingHistoryEvents&&this.forwardingHistoryEvents.data&&this.forwardingHistoryEvents.data.length>0&&this.commonService.downloadFile(this.forwardingHistoryEvents.data,"Forwarding-history")}applyFilter(){this.forwardingHistoryEvents&&(this.forwardingHistoryEvents.filter=this.filterValue.trim().toLowerCase())}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(Z.mQ),o.Y36(C.v),o.Y36(y.yh),o.Y36(a.uU))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-forwarding-history"]],viewQuery:function(e,t){if(1&e&&(o.Gf(xe.YE,5),o.Gf(fe.NW,5)),2&e){let e;o.iGM(e=o.CRH())&&(t.sort=e.first),o.iGM(e=o.CRH())&&(t.paginator=e.first)}},inputs:{eventsData:"eventsData",filterValue:"filterValue"},features:[o._Bn([{provide:fe.ye,useValue:(0,f.pt)("Events")}]),o.TTD],decls:5,vars:4,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"padding-gap-x"],["class","p-2 error-border mb-2",4,"ngIf"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch","class","page-sub-title-container",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100","class","table-container",3,"perfectScrollbar",4,"ngIf"],["class","mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons",4,"ngIf"],[1,"p-2","error-border","mb-2"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","name","filter","placeholder","Filter",3,"ngModel","ngModelChange","input","keyup"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",1,"overflow-auto",3,"dataSource"],["table",""],["matColumnDef","timestamp"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","alias_in"],["matColumnDef","alias_out"],["matColumnDef","amt_in"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","amt_out"],["matColumnDef","fee_msat"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-3","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_event"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"]],template:function(e,t){1&e&&(o.TgZ(0,"div",0),o.YNc(1,gu,2,1,"div",1),o.YNc(2,fu,4,1,"div",2),o.YNc(3,Qu,30,7,"div",3),o.YNc(4,Yu,1,3,"mat-paginator",4),o.qZA()),2&e&&(o.xp6(1),o.Q6J("ngIf",""!==t.errorMessage),o.xp6(1),o.Q6J("ngIf",""===t.errorMessage),o.xp6(1),o.Q6J("ngIf",""===t.errorMessage),o.xp6(1),o.Q6J("ngIf",""===t.errorMessage))},directives:[l.xw,l.Wh,a.O5,l.yH,D.KE,Ce.Nt,Ae.Fj,Ae.JJ,Ae.On,E.$V,Ze.BZ,xe.YE,Ze.w1,Ze.fO,Ze.Dz,Ze.mD,Ze.Ke,Ze.as,Ze.nj,r.pW,Ze.ge,xe.nU,Ze.ev,we.gD,we.$L,ve.ey,q.lW,Ze.yh,Ze.Q2,a.mk,v.oO,Ze.XQ,Ze.Gk,fe.NW],pipes:[a.uU,a.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),e})();const Bu=["tableIn"],Gu=["tableOut"],Hu=["paginatorIn"],zu=["paginatorOut"];function Vu(e,t){if(1&e&&(o.TgZ(0,"div",3),o._uU(1),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Oqu(e.errorMessage)}}function Wu(e,t){1&e&&o._UZ(0,"mat-progress-bar",37)}function Xu(e,t){1&e&&(o.TgZ(0,"th",38),o._uU(1,"Channel ID"),o.qZA())}const $u=function(e){return{"max-width":e}};function ju(e,t){if(1&e&&(o.TgZ(0,"td",39),o._uU(1),o.qZA()),2&e){const e=t.$implicit,n=o.oxw(2);o.Q6J("ngStyle",o.VKq(2,$u,n.screenSize===n.screenSizeEnum.XS?"10rem":"28rem")),o.xp6(1),o.Oqu(e.chan_id)}}function Ku(e,t){1&e&&(o.TgZ(0,"th",38),o._uU(1,"Peer Alias"),o.qZA())}function ep(e,t){if(1&e&&(o.TgZ(0,"td",39),o._uU(1),o.qZA()),2&e){const e=t.$implicit,n=o.oxw(2);o.Q6J("ngStyle",o.VKq(2,$u,n.screenSize===n.screenSizeEnum.XS?"10rem":"28rem")),o.xp6(1),o.Oqu(e.alias)}}function tp(e,t){1&e&&(o.TgZ(0,"th",40),o._uU(1,"Events"),o.qZA())}function np(e,t){if(1&e&&(o.TgZ(0,"td",41),o.TgZ(1,"span",42),o._uU(2),o.ALo(3,"number"),o.qZA(),o.qZA()),2&e){const e=t.$implicit;o.xp6(2),o.Oqu(o.lcZ(3,1,e.events))}}function ap(e,t){1&e&&(o.TgZ(0,"th",40),o._uU(1,"Total Amount (Sats)"),o.qZA())}function ip(e,t){if(1&e&&(o.TgZ(0,"td",41),o.TgZ(1,"span",42),o._uU(2),o.ALo(3,"number"),o.qZA(),o.qZA()),2&e){const e=t.$implicit;o.xp6(2),o.Oqu(o.lcZ(3,1,e.total_amount))}}function sp(e,t){1&e&&(o.TgZ(0,"th",43),o.TgZ(1,"span",42),o._uU(2,"Actions"),o.qZA(),o.qZA())}function op(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"td",44),o.TgZ(1,"button",45),o.NdJ("click",function(t){const n=o.CHM(e).$implicit;return o.oxw(2).onRoutingPeerClick(n,t,"in")}),o._uU(2,"View Info"),o.qZA(),o.qZA()}}function lp(e,t){1&e&&(o.TgZ(0,"p"),o._uU(1,"No incoming routing peer available."),o.qZA())}function rp(e,t){1&e&&(o.TgZ(0,"p"),o._uU(1,"Getting incoming routing peers..."),o.qZA())}function cp(e,t){if(1&e&&(o.TgZ(0,"p"),o._uU(1),o.qZA()),2&e){const e=o.oxw(3);o.xp6(1),o.Oqu(e.errorMessage)}}function up(e,t){if(1&e&&(o.TgZ(0,"td",46),o.YNc(1,lp,2,0,"p",47),o.YNc(2,rp,2,0,"p",47),o.YNc(3,cp,2,1,"p",47),o.qZA()),2&e){const e=o.oxw(2);o.xp6(1),o.Q6J("ngIf",(!(null!=e.RoutingPeersIncoming&&e.RoutingPeersIncoming.data)||(null==e.RoutingPeersIncoming||null==e.RoutingPeersIncoming.data?null:e.RoutingPeersIncoming.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.GetForwardingHistory.status)===e.apiCallStatusEnum.COMPLETED),o.xp6(1),o.Q6J("ngIf",(!(null!=e.RoutingPeersIncoming&&e.RoutingPeersIncoming.data)||(null==e.RoutingPeersIncoming||null==e.RoutingPeersIncoming.data?null:e.RoutingPeersIncoming.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.GetForwardingHistory.status)===e.apiCallStatusEnum.INITIATED),o.xp6(1),o.Q6J("ngIf",(!(null!=e.RoutingPeersIncoming&&e.RoutingPeersIncoming.data)||(null==e.RoutingPeersIncoming||null==e.RoutingPeersIncoming.data?null:e.RoutingPeersIncoming.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.GetForwardingHistory.status)===e.apiCallStatusEnum.ERROR)}}const pp=function(e){return{"display-none":e}};function dp(e,t){if(1&e&&o._UZ(0,"tr",48),2&e){const e=o.oxw(2);o.Q6J("ngClass",o.VKq(1,pp,(null==e.RoutingPeersIncoming?null:e.RoutingPeersIncoming.data)&&(null==e.RoutingPeersIncoming||null==e.RoutingPeersIncoming.data?null:e.RoutingPeersIncoming.data.length)>0))}}function hp(e,t){1&e&&o._UZ(0,"tr",49)}function mp(e,t){1&e&&o._UZ(0,"tr",50)}function gp(e,t){1&e&&o._UZ(0,"mat-progress-bar",37)}function fp(e,t){1&e&&(o.TgZ(0,"th",38),o._uU(1,"Channel ID"),o.qZA())}function xp(e,t){if(1&e&&(o.TgZ(0,"td",39),o._uU(1),o.qZA()),2&e){const e=t.$implicit,n=o.oxw(2);o.Q6J("ngStyle",o.VKq(2,$u,n.screenSize===n.screenSizeEnum.XS?"10rem":"28rem")),o.xp6(1),o.Oqu(e.chan_id)}}function Zp(e,t){1&e&&(o.TgZ(0,"th",38),o._uU(1,"Peer Alias"),o.qZA())}function yp(e,t){if(1&e&&(o.TgZ(0,"td",39),o._uU(1),o.qZA()),2&e){const e=t.$implicit,n=o.oxw(2);o.Q6J("ngStyle",o.VKq(2,$u,n.screenSize===n.screenSizeEnum.XS?"10rem":"28rem")),o.xp6(1),o.Oqu(e.alias)}}function Ap(e,t){1&e&&(o.TgZ(0,"th",40),o._uU(1,"Events"),o.qZA())}function Cp(e,t){if(1&e&&(o.TgZ(0,"td",41),o.TgZ(1,"span",42),o._uU(2),o.ALo(3,"number"),o.qZA(),o.qZA()),2&e){const e=t.$implicit;o.xp6(2),o.Oqu(o.lcZ(3,1,e.events))}}function Tp(e,t){1&e&&(o.TgZ(0,"th",40),o._uU(1,"Total Amount (Sats)"),o.qZA())}function bp(e,t){if(1&e&&(o.TgZ(0,"td",41),o.TgZ(1,"span",42),o._uU(2),o.ALo(3,"number"),o.qZA(),o.qZA()),2&e){const e=t.$implicit;o.xp6(2),o.Oqu(o.lcZ(3,1,e.total_amount))}}function wp(e,t){1&e&&(o.TgZ(0,"th",43),o.TgZ(1,"span",42),o._uU(2,"Actions"),o.qZA(),o.qZA())}function _p(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"td",51),o.TgZ(1,"button",52),o.NdJ("click",function(t){const n=o.CHM(e).$implicit;return o.oxw(2).onRoutingPeerClick(n,t,"out")}),o._uU(2,"View Info"),o.qZA(),o.qZA()}}function vp(e,t){1&e&&(o.TgZ(0,"p"),o._uU(1,"No outgoing routing peer available."),o.qZA())}function qp(e,t){1&e&&(o.TgZ(0,"p"),o._uU(1,"Getting outgoing routing peers..."),o.qZA())}function Sp(e,t){if(1&e&&(o.TgZ(0,"p"),o._uU(1),o.qZA()),2&e){const e=o.oxw(3);o.xp6(1),o.Oqu(e.errorMessage)}}function Fp(e,t){if(1&e&&(o.TgZ(0,"td",46),o.YNc(1,vp,2,0,"p",47),o.YNc(2,qp,2,0,"p",47),o.YNc(3,Sp,2,1,"p",47),o.qZA()),2&e){const e=o.oxw(2);o.xp6(1),o.Q6J("ngIf",(!(null!=e.RoutingPeersOutgoing&&e.RoutingPeersOutgoing.data)||(null==e.RoutingPeersOutgoing||null==e.RoutingPeersOutgoing.data?null:e.RoutingPeersOutgoing.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.GetForwardingHistory.status)===e.apiCallStatusEnum.COMPLETED),o.xp6(1),o.Q6J("ngIf",(!(null!=e.RoutingPeersOutgoing&&e.RoutingPeersOutgoing.data)||(null==e.RoutingPeersOutgoing||null==e.RoutingPeersOutgoing.data?null:e.RoutingPeersOutgoing.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.GetForwardingHistory.status)===e.apiCallStatusEnum.INITIATED),o.xp6(1),o.Q6J("ngIf",(!(null!=e.RoutingPeersOutgoing&&e.RoutingPeersOutgoing.data)||(null==e.RoutingPeersOutgoing||null==e.RoutingPeersOutgoing.data?null:e.RoutingPeersOutgoing.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.GetForwardingHistory.status)===e.apiCallStatusEnum.ERROR)}}function Lp(e,t){if(1&e&&o._UZ(0,"tr",48),2&e){const e=o.oxw(2);o.Q6J("ngClass",o.VKq(1,pp,(null==e.RoutingPeersOutgoing?null:e.RoutingPeersOutgoing.data)&&(null==e.RoutingPeersOutgoing||null==e.RoutingPeersOutgoing.data?null:e.RoutingPeersOutgoing.data.length)>0))}}function kp(e,t){1&e&&o._UZ(0,"tr",49)}function Np(e,t){1&e&&o._UZ(0,"tr",50)}const Up=function(e,t){return{"mt-2":e,"mt-1":t}},Ip=function(){return["no_incoming_event"]},Op=function(e){return{"mt-2":e}},Jp=function(){return["no_outgoing_event"]};function Dp(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"div",4),o.TgZ(1,"div",5),o.TgZ(2,"div",6),o.TgZ(3,"div",7),o._uU(4,"Incoming"),o.qZA(),o.TgZ(5,"mat-form-field",8),o.TgZ(6,"input",9),o.NdJ("ngModelChange",function(t){return o.CHM(e),o.oxw().filterIn=t})("keyup",function(t){return o.CHM(e),o.oxw().applyIncomingFilter(t.target)}),o.qZA(),o.qZA(),o.qZA(),o.TgZ(7,"div",10),o.YNc(8,Wu,1,0,"mat-progress-bar",11),o.TgZ(9,"table",12,13),o.ynx(11,14),o.YNc(12,Xu,2,0,"th",15),o.YNc(13,ju,2,4,"td",16),o.BQk(),o.ynx(14,17),o.YNc(15,Ku,2,0,"th",15),o.YNc(16,ep,2,4,"td",16),o.BQk(),o.ynx(17,18),o.YNc(18,tp,2,0,"th",19),o.YNc(19,np,4,3,"td",20),o.BQk(),o.ynx(20,21),o.YNc(21,ap,2,0,"th",19),o.YNc(22,ip,4,3,"td",20),o.BQk(),o.ynx(23,22),o.YNc(24,sp,3,0,"th",23),o.YNc(25,op,3,0,"td",24),o.BQk(),o.ynx(26,25),o.YNc(27,up,4,3,"td",26),o.BQk(),o.YNc(28,dp,1,3,"tr",27),o.YNc(29,hp,1,0,"tr",28),o.YNc(30,mp,1,0,"tr",29),o.qZA(),o.qZA(),o._UZ(31,"mat-paginator",30,31),o.qZA(),o.TgZ(33,"div",5),o.TgZ(34,"div",6),o.TgZ(35,"div",7),o._uU(36,"Outgoing"),o.qZA(),o.TgZ(37,"mat-form-field",8),o.TgZ(38,"input",9),o.NdJ("ngModelChange",function(t){return o.CHM(e),o.oxw().filterOut=t})("keyup",function(t){return o.CHM(e),o.oxw().applyOutgoingFilter(t.target)}),o.qZA(),o.qZA(),o.qZA(),o.TgZ(39,"div",10),o.YNc(40,gp,1,0,"mat-progress-bar",11),o.TgZ(41,"table",32,33),o.ynx(43,14),o.YNc(44,fp,2,0,"th",15),o.YNc(45,xp,2,4,"td",16),o.BQk(),o.ynx(46,17),o.YNc(47,Zp,2,0,"th",15),o.YNc(48,yp,2,4,"td",16),o.BQk(),o.ynx(49,18),o.YNc(50,Ap,2,0,"th",19),o.YNc(51,Cp,4,3,"td",20),o.BQk(),o.ynx(52,21),o.YNc(53,Tp,2,0,"th",19),o.YNc(54,bp,4,3,"td",20),o.BQk(),o.ynx(55,22),o.YNc(56,wp,3,0,"th",23),o.YNc(57,_p,3,0,"td",34),o.BQk(),o.ynx(58,35),o.YNc(59,Fp,4,3,"td",26),o.BQk(),o.YNc(60,Lp,1,3,"tr",27),o.YNc(61,kp,1,0,"tr",28),o.YNc(62,Np,1,0,"tr",29),o.qZA(),o.qZA(),o._UZ(63,"mat-paginator",30,36),o.qZA(),o.qZA()}if(2&e){const e=o.oxw();o.xp6(2),o.Q6J("ngClass",o.WLB(22,Up,e.screenSize===e.screenSizeEnum.XS,e.screenSize===e.screenSizeEnum.SM)),o.xp6(4),o.Q6J("ngModel",e.filterIn),o.xp6(2),o.Q6J("ngIf",(null==e.apisCallStatus?null:e.apisCallStatus.GetForwardingHistory.status)===e.apiCallStatusEnum.INITIATED),o.xp6(1),o.Q6J("dataSource",e.RoutingPeersIncoming),o.xp6(19),o.Q6J("matFooterRowDef",o.DdM(25,Ip)),o.xp6(1),o.Q6J("matHeaderRowDef",e.displayedColumns)("matHeaderRowDefSticky",e.flgSticky),o.xp6(1),o.Q6J("matRowDefColumns",e.displayedColumns),o.xp6(1),o.Q6J("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)("showFirstLastButtons",e.screenSize!==e.screenSizeEnum.XS),o.xp6(3),o.Q6J("ngClass",o.VKq(26,Op,e.screenSize!==e.screenSizeEnum.LG)),o.xp6(4),o.Q6J("ngModel",e.filterOut),o.xp6(2),o.Q6J("ngIf",(null==e.apisCallStatus?null:e.apisCallStatus.GetForwardingHistory.status)===e.apiCallStatusEnum.INITIATED),o.xp6(1),o.Q6J("dataSource",e.RoutingPeersOutgoing),o.xp6(19),o.Q6J("matFooterRowDef",o.DdM(28,Jp)),o.xp6(1),o.Q6J("matHeaderRowDef",e.displayedColumns)("matHeaderRowDefSticky",e.flgSticky),o.xp6(1),o.Q6J("matRowDefColumns",e.displayedColumns),o.xp6(1),o.Q6J("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)("showFirstLastButtons",e.screenSize!==e.screenSizeEnum.XS)}}let Rp=(()=>{class e{constructor(e,t,n){this.logger=e,this.commonService=t,this.store=n,this.routingPeersData=[],this.displayedColumns=[],this.flgSticky=!1,this.pageSize=f.IV,this.pageSizeOptions=f.TJ,this.screenSize="",this.screenSizeEnum=f.cu,this.errorMessage="",this.filterIn="",this.filterOut="",this.apisCallStatus=null,this.apiCallStatusEnum=f.Bn,this.unSubs=[new p.x,new p.x,new p.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===f.cu.XS?(this.flgSticky=!1,this.displayedColumns=["chan_id","events","actions"]):this.screenSize===f.cu.SM||this.screenSize===f.cu.MD?(this.flgSticky=!1,this.displayedColumns=["chan_id","alias","events","total_amount"]):(this.flgSticky=!0,this.displayedColumns=["chan_id","alias","events","total_amount"])}ngOnInit(){this.store.select("lnd").pipe((0,d.R)(this.unSubs[0])).subscribe(e=>{this.errorMessage="",this.apisCallStatus=e.apisCallStatus,e.apisCallStatus.GetForwardingHistory.status===f.Bn.ERROR&&(this.errorMessage="object"==typeof this.apisCallStatus.GetForwardingHistory.message?JSON.stringify(this.apisCallStatus.GetForwardingHistory.message):this.apisCallStatus.GetForwardingHistory.message),this.routingPeersData=e.forwardingHistory&&e.forwardingHistory.forwarding_events?e.forwardingHistory.forwarding_events:[],this.routingPeersData.length>0&&this.sortIn&&this.paginatorIn&&this.sortOut&&this.paginatorOut&&this.loadRoutingPeersTable(this.routingPeersData),this.logger.info(e)})}onRoutingPeerClick(e,t,n){let a=" Routing Information";a="in"===n?"Incoming"+a:"Outgoing"+a,this.store.dispatch(new ee.wu({data:{type:f.n_.INFORMATION,alertTitle:a,message:[[{key:"chan_id",value:e.chan_id,title:"Channel ID",width:50,type:f.Gi.STRING},{key:"alias",value:e.alias,title:"Peer Alias",width:50,type:f.Gi.STRING}],[{key:"events",value:e.events,title:"Events",width:50,type:f.Gi.NUMBER},{key:"total_amount",value:e.total_amount,title:"Total Amount (Sats)",width:50,type:f.Gi.NUMBER}]]}}))}loadRoutingPeersTable(e){if(this.filterIn="",this.filterOut="",e.length>0){const t=this.groupRoutingPeers(e);this.RoutingPeersIncoming=new Ze.by(t[0]),this.RoutingPeersIncoming.sort=this.sortIn,this.RoutingPeersIncoming.filterPredicate=(e,t)=>JSON.stringify(e).toLowerCase().includes(t),this.RoutingPeersIncoming.paginator=this.paginatorIn,this.logger.info(this.RoutingPeersIncoming),this.RoutingPeersOutgoing=new Ze.by(t[1]),this.RoutingPeersOutgoing.sort=this.sortOut,this.RoutingPeersOutgoing.filterPredicate=(e,t)=>JSON.stringify(e).toLowerCase().includes(t),this.RoutingPeersOutgoing.paginator=this.paginatorOut,this.logger.info(this.RoutingPeersOutgoing)}else this.RoutingPeersIncoming=new Ze.by([]),this.RoutingPeersOutgoing=new Ze.by([])}groupRoutingPeers(e){const t=[],n=[];return e.forEach(e=>{const a=t.find(t=>t.chan_id===e.chan_id_in),i=n.find(t=>t.chan_id===e.chan_id_out);a?(a.events++,a.total_amount=+a.total_amount+ +e.amt_in):t.push({chan_id:e.chan_id_in,alias:e.alias_in,events:1,total_amount:+e.amt_in}),i?(i.events++,i.total_amount=+i.total_amount+ +e.amt_out):n.push({chan_id:e.chan_id_out,alias:e.alias_out,events:1,total_amount:+e.amt_out})}),[this.commonService.sortDescByKey(t,"total_amount"),this.commonService.sortDescByKey(n,"total_amount")]}applyIncomingFilter(e){this.RoutingPeersIncoming.filter=e.value.trim().toLowerCase()}applyOutgoingFilter(e){this.RoutingPeersOutgoing.filter=e.value.trim().toLowerCase()}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(Z.mQ),o.Y36(C.v),o.Y36(y.yh))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-routing-peers"]],viewQuery:function(e,t){if(1&e&&(o.Gf(Bu,5,xe.YE),o.Gf(Gu,5,xe.YE),o.Gf(Hu,5),o.Gf(zu,5)),2&e){let e;o.iGM(e=o.CRH())&&(t.sortIn=e.first),o.iGM(e=o.CRH())&&(t.sortOut=e.first),o.iGM(e=o.CRH())&&(t.paginatorIn=e.first),o.iGM(e=o.CRH())&&(t.paginatorOut=e.first)}},features:[o._Bn([{provide:fe.ye,useValue:(0,f.pt)("Peers")}])],decls:3,vars:2,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"padding-gap-x"],["class","p-2 error-border my-2",4,"ngIf"],["fxLayout","column","fxLayout.gt-md","row","fxFlex","100","fxLayoutAlign","space-between start","class","page-sub-title-container",4,"ngIf"],[1,"p-2","error-border","my-2"],["fxLayout","column","fxLayout.gt-md","row","fxFlex","100","fxLayoutAlign","space-between start",1,"page-sub-title-container"],["fxLayout","column","fxFlex","49","fxLayoutAlign","start stretch",1,"mb-4"],["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch",1,"page-sub-title-container","w-100",3,"ngClass"],["fxFlex","70"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"ngModel","ngModelChange","keyup"],["fxLayout","column","fxLayoutAlign","start start","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",1,"overflow-auto","incoming-table",3,"dataSource"],["tableIn",""],["matColumnDef","chan_id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","alias"],["matColumnDef","events"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","total_amount"],["matColumnDef","actions"],["mat-header-cell","","class","pr-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-2","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_incoming_event"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["paginatorIn",""],["mat-table","","matSort","",1,"overflow-auto","outgoing-table",3,"dataSource"],["tableOut",""],["mat-cell","","class","pl-2",4,"matCellDef"],["matColumnDef","no_outgoing_event"],["paginatorOut",""],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"ngStyle"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["mat-cell",""],["fxLayoutAlign","end center"],["mat-header-cell","",1,"pr-3"],["mat-cell","","fxLayoutAlign","end center",1,"pl-2"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""],["mat-cell","",1,"pl-2"],["mat-stroked-button","","color","primary","type","button","tabindex","5",3,"click"]],template:function(e,t){1&e&&(o.TgZ(0,"div",0),o.YNc(1,Vu,2,1,"div",1),o.YNc(2,Dp,65,29,"div",2),o.qZA()),2&e&&(o.xp6(1),o.Q6J("ngIf",""!==t.errorMessage),o.xp6(1),o.Q6J("ngIf",""===t.errorMessage))},directives:[l.xw,l.Wh,a.O5,l.yH,a.mk,v.oO,D.KE,Ce.Nt,Ae.Fj,Ae.JJ,Ae.On,E.$V,Ze.BZ,xe.YE,Ze.w1,Ze.fO,Ze.Dz,Ze.mD,Ze.Ke,Ze.as,Ze.nj,fe.NW,r.pW,Ze.ge,xe.nU,Ze.ev,a.PC,v.Zl,q.lW,Ze.yh,Ze.Q2,Ze.XQ,Ze.Gk],pipes:[a.JJ],styles:[".mat-column-alias[_ngcontent-%COMP%], .mat-column-chan_id[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),e})();function Mp(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"div",7),o.NdJ("click",function(){const t=o.CHM(e).$implicit;return o.oxw().activeLink=t.link}),o._uU(1),o.qZA()}if(2&e){const e=t.$implicit,n=o.oxw();o.s9C("routerLink",e.link),o.Q6J("active",n.activeLink===e.link),o.xp6(1),o.Oqu(e.name)}}let Ep=(()=>{class e{constructor(e){this.router=e,this.faChartBar=g.koM,this.links=[{link:"routingfees",name:"Routing Fees"},{link:"transactions",name:"Transactions"}],this.activeLink=this.links[0].link,this.unSubs=[new p.x,new p.x,new p.x,new p.x]}ngOnInit(){const e=this.links.find(e=>this.router.url.includes(e.link));this.activeLink=e?e.link:this.links[0].link,this.router.events.pipe((0,d.R)(this.unSubs[0]),(0,h.h)(e=>e instanceof i.Av)).subscribe(e=>{const t=this.links.find(t=>e.urlAfterRedirects.includes(t.link));this.activeLink=t?t.link:this.links[0].link})}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(i.F0))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-reports"]],decls:10,vars:2,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(e,t){1&e&&(o.TgZ(0,"div",0),o._UZ(1,"fa-icon",1),o.TgZ(2,"span",2),o._uU(3,"Reports"),o.qZA(),o.qZA(),o.TgZ(4,"div",3),o.TgZ(5,"mat-card"),o.TgZ(6,"mat-card-content",4),o.TgZ(7,"nav",5),o.YNc(8,Mp,2,3,"div",6),o.qZA(),o._UZ(9,"router-outlet"),o.qZA(),o.qZA(),o.qZA()),2&e&&(o.xp6(1),o.Q6J("icon",t.faChartBar),o.xp6(7),o.Q6J("ngForOf",t.links))},directives:[l.xw,l.Wh,T.BN,w.a8,w.dn,ge.BU,a.sg,i.lC,ge.Nj,i.rH],styles:[""]}),e})();var Qp=n(4833),Yp=n(4018),Pp=n(1905);function Bp(e,t){1&e&&o._UZ(0,"mat-progress-bar",10)}function Gp(e,t){if(1&e&&(o.TgZ(0,"div",11),o._uU(1),o.ALo(2,"number"),o.ALo(3,"number"),o.qZA()),2&e){const e=o.oxw();o.Q6J("@fadeIn",e.events.total_fee_msat),o.xp6(1),o.AsE("",o.xi3(2,3,e.events.total_fee_msat/1e3||0,"1.0-2")," Sats/",o.lcZ(3,6,(null==e.events||null==e.events.forwarding_events?null:e.events.forwarding_events.length)||0)," Events")}}function Hp(e,t){1&e&&(o.TgZ(0,"div",12),o._uU(1,"No fee report for the selected period"),o.qZA())}const zp=function(e){return{"error-border":e}};function Vp(e,t){if(1&e&&(o.TgZ(0,"div",13),o._uU(1),o.qZA()),2&e){const e=o.oxw();o.Q6J("ngClass",o.VKq(2,zp,"Getting fee report..."!==e.errorMessage&&""!==e.errorMessage)),o.xp6(1),o.Oqu(e.errorMessage)}}function Wp(e,t){if(1&e&&(o.TgZ(0,"span"),o.TgZ(1,"span",16),o._uU(2),o.ALo(3,"number"),o.qZA(),o.TgZ(4,"span",16),o._uU(5),o.ALo(6,"number"),o.qZA(),o.qZA()),2&e){const e=t.model;o.xp6(2),o.hij("Events: ",o.lcZ(3,2,e.extra.totalEvents||0),""),o.xp6(3),o.hij("Fee: ",o.xi3(6,4,e.value||0,"1.0-2"),"")}}function Xp(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"ngx-charts-bar-vertical",14),o.NdJ("select",function(t){return o.CHM(e),o.oxw().onChartBarSelected(t)})("mouseup",function(t){return o.CHM(e),o.oxw().onChartMouseUp(t)}),o.YNc(1,Wp,7,7,"ng-template",null,15,o.W1O),o.qZA()}if(2&e){const e=o.oxw();o.Q6J("view",e.view)("results",e.feeReportData)("gradient",!1)("xAxis",!0)("yAxis",!0)("showXAxisLabel",!0)("showYAxisLabel",e.showYAxisLabel)("xAxisLabel",e.xAxisLabel)("yAxisLabel",e.yAxisLabel)("showGridLines",!1)("showDataLabel",!1)}}function $p(e,t){if(1&e&&o._UZ(0,"rtl-forwarding-history",17),2&e){const e=o.oxw();o.Q6J("eventsData",null==e.events?null:e.events.forwarding_events)("filterValue",e.eventFilterValue)}}let jp=(()=>{class e{constructor(e,t,n){this.dataService=e,this.commonService=t,this.store=n,this.reportPeriod=f.op[0],this.secondsInADay=86400,this.events={},this.eventFilterValue="",this.today=new Date(Date.now()),this.startDate=new Date(this.today.getFullYear(),this.today.getMonth(),1,0,0,0),this.endDate=new Date(this.today.getFullYear(),this.today.getMonth(),this.getMonthDays(this.today.getMonth(),this.today.getFullYear()),23,59,59),this.feeReportData=[],this.view=[350,350],this.screenPaddingX=100,this.gradient=!0,this.xAxisLabel="Date",this.yAxisLabel="Fee (Sats)",this.showYAxisLabel=!0,this.screenSize="",this.screenSizeEnum=f.cu,this.errorMessage="",this.unSubs=[new p.x,new p.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.showYAxisLabel=!(this.screenSize===f.cu.XS||this.screenSize===f.cu.SM),this.fetchEvents(this.startDate,this.endDate)}ngAfterContentInit(){const e=this.commonService.getContainerSize();switch(this.screenSize){case f.cu.MD:this.screenPaddingX=e.width/10;break;case f.cu.LG:this.screenPaddingX=e.width/16;break;default:this.screenPaddingX=e.width/20}this.view=[e.width-this.screenPaddingX,e.height/2.2]}fetchEvents(e,t){this.errorMessage=f.m6.GET_FEE_REPORT;const n=Math.round(e.getTime()/1e3).toString(),a=Math.round(t.getTime()/1e3).toString();this.dataService.getForwardingHistory(n,a).pipe((0,d.R)(this.unSubs[1])).subscribe({next:t=>{this.errorMessage="",t.forwarding_events&&t.forwarding_events.length?(t.forwarding_events=t.forwarding_events.reverse(),this.events=t,this.feeReportData=this.prepareFeeReport(e)):(this.events={},this.feeReportData=[])},error:e=>{this.errorMessage=e}})}onChartMouseUp(e){"svg"===e.srcElement.tagName&&e.srcElement.classList.length>0&&"ngx-charts"===e.srcElement.classList[0]&&(this.eventFilterValue="")}onChartBarSelected(e){this.eventFilterValue=this.reportPeriod===f.op[1]?e.name+"/"+this.startDate.getFullYear():e.name.toString().padStart(2,"0")+"/"+f.gg[this.startDate.getMonth()].name+"/"+this.startDate.getFullYear()}prepareFeeReport(e){const t=Math.round(e.getTime()/1e3),n=[];if(this.reportPeriod===f.op[1]){for(let e=0;e<12;e++)n.push({name:f.gg[e].name,value:1e-9,extra:{totalEvents:0}});this.events.forwarding_events.map(e=>{const t=new Date(1e3*+e.timestamp).getMonth();return n[t].value=n[t].value+ +e.fee_msat/1e3,n[t].extra.totalEvents=n[t].extra.totalEvents+1,this.events.total_fee_msat=(this.events.total_fee_msat?this.events.total_fee_msat:0)+ +e.fee_msat,this.events})}else{for(let t=0;t{const a=Math.floor((+e.timestamp-t)/this.secondsInADay);return n[a].value=n[a].value+ +e.fee_msat/1e3,n[a].extra.totalEvents=n[a].extra.totalEvents+1,this.events.total_fee_msat=(this.events.total_fee_msat?this.events.total_fee_msat:0)+ +e.fee_msat,this.events})}return n}onSelectionChange(e){const t=e.selDate.getMonth(),n=e.selDate.getFullYear();this.reportPeriod=e.selScrollRange,this.reportPeriod===f.op[1]?(this.startDate=new Date(n,0,1,0,0,0),this.endDate=new Date(n,11,31,23,59,59)):(this.startDate=new Date(n,t,1,0,0,0),this.endDate=new Date(n,t,this.getMonthDays(t,n),23,59,59)),this.fetchEvents(this.startDate,this.endDate),this.eventFilterValue=""}getMonthDays(e,t){return 1===e&&t%4==0?f.gg[e].days+1:f.gg[e].days}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(dt.D),o.Y36(C.v),o.Y36(y.yh))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-fee-report"]],hostBindings:function(e,t){1&e&&o.NdJ("mouseup",function(e){return t.onChartMouseUp(e)})},decls:11,vars:6,consts:[["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x-large"],[3,"stepChanged"],["mode","indeterminate","class","mt-2",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 font-bold-700 mt-1",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 mt-1",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 mt-1",3,"ngClass",4,"ngIf"],[1,"mt-1"],["class","one-color",3,"view","results","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","select","mouseup",4,"ngIf"],[3,"eventsData","filterValue",4,"ngIf"],["mode","indeterminate",1,"mt-2"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","font-bold-700","mt-1"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","mt-1"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","mt-1",3,"ngClass"],[1,"one-color",3,"view","results","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","select","mouseup"],["tooltipTemplate",""],[1,"tooltip-label"],[3,"eventsData","filterValue"]],template:function(e,t){1&e&&(o.TgZ(0,"div",0),o.TgZ(1,"rtl-horizontal-scroller",1),o.NdJ("stepChanged",function(e){return t.onSelectionChange(e)}),o.qZA(),o.YNc(2,Bp,1,0,"mat-progress-bar",2),o.TgZ(3,"div",3),o.YNc(4,Gp,4,8,"div",4),o.YNc(5,Hp,2,0,"div",5),o.YNc(6,Vp,2,4,"div",6),o.TgZ(7,"div",7),o.YNc(8,Xp,3,11,"ngx-charts-bar-vertical",8),o.qZA(),o.TgZ(9,"div",7),o.YNc(10,$p,1,2,"rtl-forwarding-history",9),o.qZA(),o.qZA(),o.qZA()),2&e&&(o.xp6(2),o.Q6J("ngIf","Getting fee report..."===t.errorMessage),o.xp6(2),o.Q6J("ngIf",t.feeReportData.length>0&&t.events.forwarding_events),o.xp6(1),o.Q6J("ngIf",(t.feeReportData.length<=0||!t.events.forwarding_events)&&""===t.errorMessage),o.xp6(1),o.Q6J("ngIf",""!==t.errorMessage),o.xp6(2),o.Q6J("ngIf",t.feeReportData.length>0&&t.events.forwarding_events),o.xp6(2),o.Q6J("ngIf",t.events&&(null==t.events?null:t.events.forwarding_events)))},directives:[l.xw,l.Wh,l.yH,Yp.D,a.O5,r.pW,a.mk,v.oO,Pp.K$,Pu],pipes:[a.JJ],styles:[""],data:{animation:[Qp.J]}}),e})();var Kp=n(6590);function ed(e,t){1&e&&(o.TgZ(0,"div",11),o._UZ(1,"mat-progress-bar",12),o.TgZ(2,"span"),o._uU(3,"Getting transactions data..."),o.qZA(),o.qZA())}function td(e,t){if(1&e&&(o.TgZ(0,"div",13),o._uU(1),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Oqu(e.errorMessage)}}function nd(e,t){if(1&e&&(o.TgZ(0,"div",16),o._uU(1),o.ALo(2,"number"),o.ALo(3,"number"),o.qZA()),2&e){const e=o.oxw(2);o.xp6(1),o.AsE(" Paid ",o.xi3(2,2,e.transactionsReportSummary.amountPaidSelectedPeriod/1e3||0,"1.0-2")," Sats/",o.lcZ(3,5,e.transactionsReportSummary.paymentsSelectedPeriod)," Payments ")}}function ad(e,t){if(1&e&&(o.TgZ(0,"div",16),o._uU(1),o.ALo(2,"number"),o.ALo(3,"number"),o.qZA()),2&e){const e=o.oxw(2);o.xp6(1),o.AsE(" Received ",o.xi3(2,2,e.transactionsReportSummary.amountReceivedSelectedPeriod/1e3||0,"1.0-2")," Sats/",o.lcZ(3,5,e.transactionsReportSummary.invoicesSelectedPeriod)," Invoices ")}}function id(e,t){if(1&e&&(o.TgZ(0,"div",14),o.YNc(1,nd,4,7,"div",15),o.YNc(2,ad,4,7,"div",15),o.qZA()),2&e){const e=o.oxw();o.Q6J("@fadeIn",e.transactionsReportSummary),o.xp6(1),o.Q6J("ngIf",e.transactionsReportSummary.paymentsSelectedPeriod>0),o.xp6(1),o.Q6J("ngIf",e.transactionsReportSummary.invoicesSelectedPeriod)}}function sd(e,t){1&e&&(o.TgZ(0,"div",17),o._uU(1,"No transactions report for the selected period"),o.qZA())}function od(e,t){if(1&e&&(o.TgZ(0,"span",21),o._uU(1),o.ALo(2,"number"),o.ALo(3,"number"),o.qZA()),2&e){const e=t.model;o.xp6(1),o.HOy("",e.name,": ",o.xi3(2,4,e.value||0,"1.0-2"),"/# ","Paid"===e.name?"Payments":"Invoices",": ",o.lcZ(3,7,(null==e.extra?null:e.extra.total)||0),"")}}function ld(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"ngx-charts-bar-vertical-2d",19),o.NdJ("select",function(t){return o.CHM(e),o.oxw(2).onChartBarSelected(t)})("mouseup",function(t){return o.CHM(e),o.oxw(2).onChartMouseUp(t)}),o.YNc(1,od,4,9,"ng-template",null,20,o.W1O),o.qZA()}if(2&e){const e=o.oxw(2);o.Q6J("view",e.view)("results",e.transactionsReportData)("noBarWhenZero",!1)("gradient",!1)("xAxis",!0)("yAxis",!0)("showXAxisLabel",!0)("showYAxisLabel",e.showYAxisLabel)("xAxisLabel",e.xAxisLabel)("yAxisLabel",e.yAxisLabel)("showGridLines",!1)("showDataLabel",!1)("groupPadding",e.reportPeriod===e.scrollRanges[0]?2:8)}}function rd(e,t){if(1&e&&(o.TgZ(0,"div",9),o.YNc(1,ld,3,13,"ngx-charts-bar-vertical-2d",18),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Q6J("ngIf",e.transactionsReportData.length>0&&e.transactionsNonZeroReportData.length>0)}}function cd(e,t){if(1&e&&o._UZ(0,"rtl-transactions-report-table",22),2&e){const e=o.oxw();o.Q6J("dataList",e.transactionsNonZeroReportData)("dataRange",e.reportPeriod)("filterValue",e.transactionFilterValue)}}let ud=(()=>{class e{constructor(e,t){this.commonService=e,this.store=t,this.scrollRanges=f.op,this.reportPeriod=f.op[0],this.secondsInADay=86400,this.payments=[],this.invoices=[],this.transactionsReportSummary={paymentsSelectedPeriod:0,invoicesSelectedPeriod:0,amountPaidSelectedPeriod:0,amountReceivedSelectedPeriod:0},this.transactionFilterValue="",this.today=new Date(Date.now()),this.startDate=new Date(this.today.getFullYear(),this.today.getMonth(),1,0,0,0),this.endDate=new Date(this.today.getFullYear(),this.today.getMonth(),this.getMonthDays(this.today.getMonth(),this.today.getFullYear()),23,59,59),this.transactionsReportData=[{date:"",name:"1",series:[{extra:{total:0},name:"Paid",value:0},{extra:{total:0},name:"Received",value:0}]}],this.transactionsNonZeroReportData=[{amount_paid:0,amount_received:0,date:"",num_invoices:0,num_payments:0}],this.view=[350,350],this.screenPaddingX=100,this.gradient=!0,this.xAxisLabel="Date",this.yAxisLabel="Amount (Sats)",this.showYAxisLabel=!0,this.screenSize="",this.screenSizeEnum=f.cu,this.errorMessage="",this.apisCallStatus=null,this.apiCallStatusEnum=f.Bn,this.unSubs=[new p.x,new p.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.showYAxisLabel=!(this.screenSize===f.cu.XS||this.screenSize===f.cu.SM),this.store.select("lnd").pipe((0,d.R)(this.unSubs[0])).subscribe(e=>{this.errorMessage="",this.apisCallStatus=e.apisCallStatus,e.apisCallStatus.FetchLightningTransactions.status===f.Bn.ERROR&&(this.errorMessage="object"==typeof this.apisCallStatus.FetchLightningTransactions.message?JSON.stringify(this.apisCallStatus.FetchLightningTransactions.message):this.apisCallStatus.FetchLightningTransactions.message),this.payments=e.allLightningTransactions.paymentsAll?e.allLightningTransactions.paymentsAll.payments:[],this.invoices=e.allLightningTransactions.invoicesAll?e.allLightningTransactions.invoicesAll.invoices:[],(this.payments.length>0||this.invoices.length>0)&&(this.transactionsReportData=this.filterTransactionsForSelectedPeriod(this.startDate,this.endDate),this.transactionsNonZeroReportData=this.prepareTableData())})}ngAfterContentInit(){const e=this.commonService.getContainerSize();switch(this.screenSize){case f.cu.MD:this.screenPaddingX=e.width/10;break;case f.cu.LG:this.screenPaddingX=e.width/16;break;default:this.screenPaddingX=e.width/20}this.view=[e.width-this.screenPaddingX,e.height/2.2]}onChartMouseUp(e){"svg"===e.srcElement.tagName&&e.srcElement.classList.length>0&&"ngx-charts"===e.srcElement.classList[0]&&(this.transactionFilterValue="")}onChartBarSelected(e){this.transactionFilterValue=this.reportPeriod===f.op[1]?e.series+"/"+this.startDate.getFullYear():e.series.toString().padStart(2,"0")+"/"+f.gg[this.startDate.getMonth()].name+"/"+this.startDate.getFullYear()}filterTransactionsForSelectedPeriod(e,t){const n=Math.round(e.getTime()/1e3),a=Math.round(t.getTime()/1e3),i=[];this.transactionsNonZeroReportData=[],this.transactionsReportSummary={paymentsSelectedPeriod:0,invoicesSelectedPeriod:0,amountPaidSelectedPeriod:0,amountReceivedSelectedPeriod:0};const s=this.payments.filter(e=>"SUCCEEDED"===e.status&&e.creation_date>=n&&e.creation_datee.settled&&+e.creation_date>=n&&+e.creation_date{const t=new Date(1e3*+e.creation_date).getMonth();return this.transactionsReportSummary.amountPaidSelectedPeriod=this.transactionsReportSummary.amountPaidSelectedPeriod+ +e.value_msat+ +e.fee_msat,i[t].series[0].value=i[t].series[0].value+(+e.value_msat+ +e.fee_msat)/1e3,i[t].series[0].extra.total=i[t].series[0].extra.total+1,this.transactionsReportSummary}),o.map(e=>{const t=new Date(1e3*+e.creation_date).getMonth();return this.transactionsReportSummary.amountReceivedSelectedPeriod=this.transactionsReportSummary.amountReceivedSelectedPeriod+ +e.amt_paid_msat,i[t].series[1].value=i[t].series[1].value+ +e.amt_paid_msat/1e3,i[t].series[1].extra.total=i[t].series[1].extra.total+1,this.transactionsReportSummary})}else{for(let t=0;t{const t=Math.floor((+e.creation_date-n)/this.secondsInADay);return this.transactionsReportSummary.amountPaidSelectedPeriod=this.transactionsReportSummary.amountPaidSelectedPeriod+ +e.value_msat+ +e.fee_msat,i[t].series[0].value=i[t].series[0].value+(+e.value_msat+ +e.fee_msat)/1e3,i[t].series[0].extra.total=i[t].series[0].extra.total+1,this.transactionsReportSummary}),o.map(e=>{const t=Math.floor((+e.creation_date-n)/this.secondsInADay);return this.transactionsReportSummary.amountReceivedSelectedPeriod=this.transactionsReportSummary.amountReceivedSelectedPeriod+ +e.amt_paid_msat,i[t].series[1].value=i[t].series[1].value+ +e.amt_paid_msat/1e3,i[t].series[1].extra.total=i[t].series[1].extra.total+1,this.transactionsReportSummary})}return i}prepareTableData(){return this.transactionsReportData.reduce((e,t)=>t.series[0].extra.total>0||t.series[1].extra.total>0?e.concat({date:t.date,amount_paid:t.series[0].value,num_payments:t.series[0].extra.total,amount_received:t.series[1].value,num_invoices:t.series[1].extra.total}):e,[])}onSelectionChange(e){const t=e.selDate.getMonth(),n=e.selDate.getFullYear();this.reportPeriod=e.selScrollRange,this.reportPeriod===f.op[1]?(this.startDate=new Date(n,0,1,0,0,0),this.endDate=new Date(n,11,31,23,59,59)):(this.startDate=new Date(n,t,1,0,0,0),this.endDate=new Date(n,t,this.getMonthDays(t,n),23,59,59)),this.transactionsReportData=this.filterTransactionsForSelectedPeriod(this.startDate,this.endDate),this.transactionsNonZeroReportData=this.prepareTableData(),this.transactionFilterValue=""}getMonthDays(e,t){return 1===e&&t%4==0?f.gg[e].days+1:f.gg[e].days}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(C.v),o.Y36(y.yh))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-transactions-report"]],hostBindings:function(e,t){1&e&&o.NdJ("mouseup",function(e){return t.onChartMouseUp(e)})},decls:11,vars:6,consts:[["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x-large"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100"],[3,"stepChanged"],["class","p-2",4,"ngIf"],["class","p-2 error-border my-2",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 font-bold-700 mt-1",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 mt-1",4,"ngIf"],["class","mt-1",4,"ngIf"],[1,"mt-1"],[3,"dataList","dataRange","filterValue",4,"ngIf"],[1,"p-2"],["mode","indeterminate"],[1,"p-2","error-border","my-2"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","font-bold-700","mt-1"],["fxLayout","row","fxLayoutAlign","start stretch","fxFlex","100",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start stretch","fxFlex","100"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","mt-1"],["class","two-color",3,"view","results","noBarWhenZero","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","groupPadding","select","mouseup",4,"ngIf"],[1,"two-color",3,"view","results","noBarWhenZero","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","groupPadding","select","mouseup"],["tooltipTemplate",""],[1,"tooltip-label"],[3,"dataList","dataRange","filterValue"]],template:function(e,t){1&e&&(o.TgZ(0,"div",0),o.TgZ(1,"div",1),o.TgZ(2,"div",2),o.TgZ(3,"rtl-horizontal-scroller",3),o.NdJ("stepChanged",function(e){return t.onSelectionChange(e)}),o.qZA(),o.YNc(4,ed,4,0,"div",4),o.YNc(5,td,2,1,"div",5),o.YNc(6,id,3,3,"div",6),o.YNc(7,sd,2,0,"div",7),o.YNc(8,rd,2,1,"div",8),o.TgZ(9,"div",9),o.YNc(10,cd,1,3,"rtl-transactions-report-table",10),o.qZA(),o.qZA(),o.qZA(),o.qZA()),2&e&&(o.xp6(4),o.Q6J("ngIf",t.apisCallStatus.FetchLightningTransactions.status===t.apiCallStatusEnum.INITIATED),o.xp6(1),o.Q6J("ngIf",t.apisCallStatus.FetchLightningTransactions.status===t.apiCallStatusEnum.ERROR),o.xp6(1),o.Q6J("ngIf",t.transactionsNonZeroReportData.length>0&&t.apisCallStatus.FetchLightningTransactions.status===t.apiCallStatusEnum.COMPLETED),o.xp6(1),o.Q6J("ngIf",t.transactionsNonZeroReportData.length<=0&&t.apisCallStatus.FetchLightningTransactions.status===t.apiCallStatusEnum.COMPLETED),o.xp6(1),o.Q6J("ngIf",t.transactionsNonZeroReportData.length>0&&t.apisCallStatus.FetchLightningTransactions.status===t.apiCallStatusEnum.COMPLETED),o.xp6(2),o.Q6J("ngIf",t.transactionsNonZeroReportData.length>0&&t.apisCallStatus.FetchLightningTransactions.status===t.apiCallStatusEnum.COMPLETED))},directives:[l.xw,l.Wh,l.yH,Yp.D,a.O5,r.pW,Pp.H5,Kp.g],pipes:[a.JJ],styles:[""],data:{animation:[Qp.J]}}),e})();const pd=["form"];function dd(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"UTXO Label is required."),o.qZA())}function hd(e,t){if(1&e&&(o.TgZ(0,"span"),o._uU(1),o.qZA()),2&e){const e=o.oxw(2);o.xp6(1),o.Oqu(e.labelError)}}function md(e,t){if(1&e&&(o.TgZ(0,"div",16),o._UZ(1,"fa-icon",17),o.YNc(2,hd,2,1,"span",11),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Q6J("icon",e.faExclamationTriangle),o.xp6(1),o.Q6J("ngIf",""!==e.labelError)}}let gd=(()=>{class e{constructor(e,t,n,a,i,s){this.dialogRef=e,this.data=t,this.dataService=n,this.store=a,this.snackBar=i,this.commonService=s,this.faExclamationTriangle=g.eHv,this.utxo=null,this.label="",this.labelError="",this.unSubs=[new p.x,new p.x,new p.x,new p.x,new p.x]}ngOnInit(){this.utxo=this.data.utxo,this.label=this.utxo.label}onLabelUTXO(){if(!this.label||""===this.label)return!0;this.labelError="",this.dataService.labelUTXO(this.utxo.outpoint.txid_bytes,this.label,!0).pipe((0,d.R)(this.unSubs[0])).subscribe({next:e=>{this.store.dispatch(new x.eL),this.store.dispatch(new x.Zt),this.snackBar.open("Successfully labelled the UTXO."),this.dialogRef.close()},error:e=>{this.labelError=e}})}resetData(){this.labelError="",this.label=""}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(ye.so),o.Y36(ye.WI),o.Y36(dt.D),o.Y36(y.yh),o.Y36(Ai.ux),o.Y36(C.v))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-on-chain-lebel-modal"]],viewQuery:function(e,t){if(1&e&&o.Gf(pd,7),2&e){let e;o.iGM(e=o.CRH())&&(t.form=e.first)}},decls:20,vars:4,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayout","row wrap","fxLayoutAlign","space-between start","fxFlex","100",1,"overflow-x-hidden",3,"submit","reset"],["form","ngForm"],["fxFlex.gt-sm","100"],["autoFocus","","matInput","","placeholder","UTXO Label","name","label","tabindex","1","required","",3,"ngModel","ngModelChange"],[4,"ngIf"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","7","type","reset",1,"mr-1"],["mat-flat-button","","color","primary","type","submit","tabindex","8"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"]],template:function(e,t){1&e&&(o.TgZ(0,"div",0),o.TgZ(1,"div",1),o.TgZ(2,"mat-card-header",2),o.TgZ(3,"div",3),o.TgZ(4,"span",4),o._uU(5,"Label UTXO"),o.qZA(),o.qZA(),o.TgZ(6,"button",5),o._uU(7,"X"),o.qZA(),o.qZA(),o.TgZ(8,"mat-card-content",6),o.TgZ(9,"form",7,8),o.NdJ("submit",function(){return t.onLabelUTXO()})("reset",function(){return t.resetData()}),o.TgZ(11,"mat-form-field",9),o.TgZ(12,"input",10),o.NdJ("ngModelChange",function(e){return t.label=e}),o.qZA(),o.YNc(13,dd,2,0,"mat-error",11),o.qZA(),o.YNc(14,md,3,2,"div",12),o.TgZ(15,"div",13),o.TgZ(16,"button",14),o._uU(17,"Clear"),o.qZA(),o.TgZ(18,"button",15),o._uU(19,"Label UTXO"),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA()),2&e&&(o.xp6(6),o.Q6J("mat-dialog-close",!1),o.xp6(6),o.Q6J("ngModel",t.label),o.xp6(1),o.Q6J("ngIf",!t.label),o.xp6(1),o.Q6J("ngIf",""!==t.labelError))},directives:[l.xw,l.yH,w.dk,l.Wh,q.lW,ye.ZT,w.dn,Ae._Y,Ae.JL,Ae.F,D.KE,Ce.Nt,Ae.Fj,Te.h,Ae.Q7,Ae.JJ,Ae.On,a.O5,D.TO,T.BN],styles:[""]}),e})();function fd(e,t){1&e&&o._UZ(0,"mat-progress-bar",28)}function xd(e,t){1&e&&(o.TgZ(0,"th",29),o._uU(1," Transaction ID "),o.qZA())}function Zd(e,t){1&e&&(o.TgZ(0,"span",35),o.TgZ(1,"mat-icon",36),o._uU(2,"warning"),o.qZA(),o.qZA())}function yd(e,t){if(1&e&&(o.TgZ(0,"span"),o.YNc(1,Zd,3,0,"span",34),o.qZA()),2&e){const e=o.oxw().$implicit;o.oxw();const t=o.MAs(34);o.xp6(1),o.Q6J("ngIf",e.amount_sat<1e3)("ngIfElse",t)}}const Ad=function(e){return{"max-width":e}};function Cd(e,t){if(1&e&&(o.TgZ(0,"td",30),o.TgZ(1,"span",31),o.YNc(2,yd,2,2,"span",32),o.TgZ(3,"span",33),o._uU(4),o.qZA(),o.qZA(),o.qZA()),2&e){const e=t.$implicit,n=o.oxw();o.Q6J("ngStyle",o.VKq(3,Ad,n.screenSize===n.screenSizeEnum.XS?"12rem":"25rem")),o.xp6(2),o.Q6J("ngIf",n.utxos.length>0&&!n.isDustUTXO),o.xp6(2),o.Oqu(e.outpoint.txid_str)}}function Td(e,t){1&e&&(o.TgZ(0,"th",37),o._uU(1," Output "),o.qZA())}function bd(e,t){if(1&e&&(o.TgZ(0,"td",38),o.TgZ(1,"span",39),o._uU(2),o.qZA(),o.qZA()),2&e){const e=t.$implicit;o.xp6(2),o.Oqu(e.outpoint.output_index)}}function wd(e,t){1&e&&(o.TgZ(0,"th",29),o._uU(1," Label "),o.qZA())}function _d(e,t){if(1&e&&(o.TgZ(0,"td",30),o._uU(1),o.qZA()),2&e){const e=t.$implicit,n=o.oxw();o.Q6J("ngStyle",o.VKq(2,Ad,n.screenSize===n.screenSizeEnum.XS?"12rem":"25rem")),o.xp6(1),o.hij(" ",null==e?null:e.label," ")}}function vd(e,t){1&e&&(o.TgZ(0,"th",37),o._uU(1," Amount (Sats) "),o.qZA())}function qd(e,t){if(1&e&&(o.TgZ(0,"td",38),o.TgZ(1,"span",39),o._uU(2),o.ALo(3,"number"),o.qZA(),o.qZA()),2&e){const e=t.$implicit;o.xp6(2),o.Oqu(o.lcZ(3,1,e.amount_sat||0))}}function Sd(e,t){1&e&&(o.TgZ(0,"th",37),o._uU(1," Confirmations "),o.qZA())}function Fd(e,t){if(1&e&&(o.TgZ(0,"td",38),o.TgZ(1,"span",39),o._uU(2),o.ALo(3,"number"),o.qZA(),o.qZA()),2&e){const e=t.$implicit;o.xp6(2),o.Oqu(o.lcZ(3,1,e.confirmations||0))}}function Ld(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"th",40),o.TgZ(1,"div",41),o.TgZ(2,"mat-select",42),o._UZ(3,"mat-select-trigger"),o.TgZ(4,"mat-option",43),o.NdJ("click",function(){return o.CHM(e),o.oxw().onDownloadCSV()}),o._uU(5,"Download CSV"),o.qZA(),o.qZA(),o.qZA(),o.qZA()}}function kd(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"td",44),o.TgZ(1,"div",45),o.TgZ(2,"mat-select",46),o._UZ(3,"mat-select-trigger"),o.TgZ(4,"mat-option",43),o.NdJ("click",function(){const t=o.CHM(e).$implicit;return o.oxw().onUTXOClick(t)}),o._uU(5,"View Info"),o.qZA(),o.TgZ(6,"mat-option",43),o.NdJ("click",function(){const t=o.CHM(e).$implicit;return o.oxw().onLabelUTXO(t)}),o._uU(7,"Label"),o.qZA(),o.TgZ(8,"mat-option",43),o.NdJ("click",function(){const t=o.CHM(e).$implicit;return o.oxw().onLeaseUTXO(t)}),o._uU(9,"Lease"),o.qZA(),o.qZA(),o.qZA(),o.qZA()}}function Nd(e,t){1&e&&(o.TgZ(0,"p"),o._uU(1,"No UTXO available."),o.qZA())}function Ud(e,t){1&e&&(o.TgZ(0,"p"),o._uU(1,"Getting UTXOs..."),o.qZA())}function Id(e,t){if(1&e&&(o.TgZ(0,"p"),o._uU(1),o.qZA()),2&e){const e=o.oxw(2);o.xp6(1),o.Oqu(e.errorMessage)}}function Od(e,t){if(1&e&&(o.TgZ(0,"td",47),o.YNc(1,Nd,2,0,"p",32),o.YNc(2,Ud,2,0,"p",32),o.YNc(3,Id,2,1,"p",32),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Q6J("ngIf",(!(null!=e.listUTXOs&&e.listUTXOs.data)||(null==e.listUTXOs||null==e.listUTXOs.data?null:e.listUTXOs.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.FetchUTXOs.status)===e.apiCallStatusEnum.COMPLETED),o.xp6(1),o.Q6J("ngIf",(!(null!=e.listUTXOs&&e.listUTXOs.data)||(null==e.listUTXOs||null==e.listUTXOs.data?null:e.listUTXOs.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.FetchUTXOs.status)===e.apiCallStatusEnum.INITIATED),o.xp6(1),o.Q6J("ngIf",(!(null!=e.listUTXOs&&e.listUTXOs.data)||(null==e.listUTXOs||null==e.listUTXOs.data?null:e.listUTXOs.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.FetchUTXOs.status)===e.apiCallStatusEnum.ERROR)}}const Jd=function(e){return{"display-none":e}};function Dd(e,t){if(1&e&&o._UZ(0,"tr",48),2&e){const e=o.oxw();o.Q6J("ngClass",o.VKq(1,Jd,(null==e.listUTXOs?null:e.listUTXOs.data)&&(null==e.listUTXOs||null==e.listUTXOs.data?null:e.listUTXOs.data.length)>0))}}function Rd(e,t){1&e&&o._UZ(0,"tr",49)}function Md(e,t){1&e&&o._UZ(0,"tr",50)}function Ed(e,t){1&e&&o._UZ(0,"mat-icon",36)}const Qd=function(e){return{"overflow-auto error-border":e,"overflow-auto":!0}},Yd=function(){return["no_utxo"]};let Pd=(()=>{class e{constructor(e,t,n,a,i,s){this.logger=e,this.commonService=t,this.dataService=n,this.store=a,this.rtlEffects=i,this.decimalPipe=s,this.isDustUTXO=!1,this.addressType=f.x$,this.faMoneyBillWave=g.aj4,this.displayedColumns=[],this.flgSticky=!1,this.pageSize=f.IV,this.pageSizeOptions=f.TJ,this.screenSize="",this.screenSizeEnum=f.cu,this.errorMessage="",this.apisCallStatus=null,this.apiCallStatusEnum=f.Bn,this.unSubs=[new p.x,new p.x,new p.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===f.cu.XS?(this.flgSticky=!1,this.displayedColumns=["amount_sat","confirmations","actions"]):this.screenSize===f.cu.SM?(this.flgSticky=!1,this.displayedColumns=["tx_id","output","amount_sat","actions"]):this.screenSize===f.cu.MD?(this.flgSticky=!1,this.displayedColumns=["tx_id","output","label","amount_sat","confirmations","actions"]):(this.flgSticky=!0,this.displayedColumns=["tx_id","output","label","amount_sat","confirmations","actions"])}ngOnInit(){this.store.select("lnd").pipe((0,d.R)(this.unSubs[0])).subscribe(e=>{this.errorMessage="",this.apisCallStatus=e.apisCallStatus,e.apisCallStatus.FetchUTXOs.status===f.Bn.ERROR&&(this.errorMessage="object"==typeof this.apisCallStatus.FetchUTXOs.message?JSON.stringify(this.apisCallStatus.FetchUTXOs.message):this.apisCallStatus.FetchUTXOs.message),e.utxos&&e.utxos.length>0&&(this.utxos=this.isDustUTXO?e.utxos.filter(e=>+e.amount_sat<1e3):e.utxos,this.loadUTXOsTable(this.utxos)),this.logger.info(e)})}ngOnChanges(){this.utxos&&this.utxos.length>0&&this.loadUTXOsTable(this.utxos)}applyFilter(e){this.listUTXOs.filter=e.value.trim().toLowerCase()}onUTXOClick(e){this.store.dispatch(new ee.wu({data:{type:f.n_.INFORMATION,alertTitle:"UTXO Information",message:[[{key:"txid",value:e.outpoint.txid_str,title:"Transaction ID",width:100,type:f.Gi.STRING}],[{key:"label",value:e.label,title:"Label",width:100,type:f.Gi.STRING}],[{key:"output_index",value:e.outpoint.output_index,title:"Output Index",width:34,type:f.Gi.NUMBER},{key:"amount_sat",value:e.amount_sat,title:"Amount (Sats)",width:33,type:f.Gi.NUMBER},{key:"confirmations",value:e.confirmations,title:"Confirmations",width:33,type:f.Gi.NUMBER}],[{key:"address_type",value:this.addressType[e.address_type].name,title:"Address Type",width:34},{key:"address",value:e.address,title:"Address",width:66}],[{key:"pk_script",value:e.pk_script,title:"PK Script",width:100,type:f.Gi.STRING}]]}}))}loadUTXOsTable(e){this.listUTXOs=new Ze.by([...e]),this.listUTXOs.filterPredicate=(e,t)=>((e.label?e.label.toLowerCase():"")+(e.outpoint.txid_str?e.outpoint.txid_str.toLowerCase():"")+(e.outpoint.output_index?e.outpoint.output_index:"")+(e.outpoint.txid_bytes?e.outpoint.txid_bytes.toLowerCase():"")+(e.address?e.address.toLowerCase():"")+(e.address_type?e.address_type.toLowerCase():"")+(e.amount_sat?e.amount_sat:"")+(e.confirmations?e.confirmations:"")+(e.pk_script?e.pk_script.toLowerCase():"")).includes(t),this.listUTXOs.sortingDataAccessor=(e,t)=>{switch(t){case"tx_id":return e.outpoint.txid_str.toLocaleLowerCase();case"output":return+e.outpoint.output_index;default:return e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():e[t]?+e[t]:null}},this.listUTXOs.sort=this.sort,this.listUTXOs.filterPredicate=(e,t)=>JSON.stringify(e).toLowerCase().includes(t),this.listUTXOs.paginator=this.paginator,this.logger.info(this.listUTXOs)}onLabelUTXO(e){this.store.dispatch(new ee.wu({data:{utxo:e,component:gd}}))}onLeaseUTXO(e){const t=[[{key:"txid_str",value:e.outpoint.txid_str,title:"Transaction ID",width:100}],[{key:"amount_sat",value:this.decimalPipe.transform(e.amount_sat),title:"Amount (Sats)",width:100}]];e.label&&t.splice(1,0,[{key:"label",value:e.label,title:"Label",width:100}]),this.store.dispatch(new ee.b_({data:{type:f.n_.CONFIRM,alertTitle:"Lease UTXO",informationMessage:"The UTXO will be leased for 10 minutes.",message:t,noBtnText:"Cancel",yesBtnText:"Lease UTXO"}})),this.rtlEffects.closeConfirm.pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{t&&this.dataService.leaseUTXO(e.outpoint.txid_bytes,e.outpoint.output_index)})}onDownloadCSV(){this.listUTXOs.data&&this.listUTXOs.data.length>0&&this.commonService.downloadFile(this.listUTXOs.data,"UTXOs")}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(Z.mQ),o.Y36(C.v),o.Y36(dt.D),o.Y36(y.yh),o.Y36(St.V),o.Y36(a.JJ))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-on-chain-utxos"]],viewQuery:function(e,t){if(1&e&&(o.Gf(xe.YE,5),o.Gf(fe.NW,5)),2&e){let e;o.iGM(e=o.CRH())&&(t.sort=e.first),o.iGM(e=o.CRH())&&(t.paginator=e.first)}},inputs:{isDustUTXO:"isDustUTXO"},features:[o._Bn([{provide:fe.ye,useValue:(0,f.pt)("UTXOs")}]),o.TTD],decls:35,vars:13,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap-x-large"],["fxLayout","column","fxLayout.gt-xs","row wrap","fxLayoutAlign.gt-xs","end stretch","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"keyup"],["fxLayout","row","fxLayoutAlign","start start"],["fxLayout","column","fxLayoutAlign","start end","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","tx_id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","output"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","label"],["matColumnDef","amount_sat"],["matColumnDef","confirmations"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center","class","pl-3",4,"matCellDef"],["matColumnDef","no_utxo"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["emptySpace",""],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"ngStyle"],["fxLayout","row"],[4,"ngIf"],[1,"ellipsis-child"],["matTooltip","Risk of dust attack","matTooltipPosition","right",4,"ngIf","ngIfElse"],["matTooltip","Risk of dust attack","matTooltipPosition","right"],["fxLayoutAlign","start center","color","warn",1,"mr-1"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["mat-cell",""],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-3"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","2",1,"mr-0"],["mat-footer-cell","","colspan","4"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,t){1&e&&(o.TgZ(0,"div",0),o.TgZ(1,"div",1),o.TgZ(2,"mat-form-field",2),o.TgZ(3,"input",3),o.NdJ("keyup",function(e){return t.applyFilter(e.target)}),o.qZA(),o.qZA(),o.qZA(),o.TgZ(4,"div",4),o.TgZ(5,"div",5),o.YNc(6,fd,1,0,"mat-progress-bar",6),o.TgZ(7,"table",7,8),o.ynx(9,9),o.YNc(10,xd,2,0,"th",10),o.YNc(11,Cd,5,5,"td",11),o.BQk(),o.ynx(12,12),o.YNc(13,Td,2,0,"th",13),o.YNc(14,bd,3,1,"td",14),o.BQk(),o.ynx(15,15),o.YNc(16,wd,2,0,"th",10),o.YNc(17,_d,2,4,"td",11),o.BQk(),o.ynx(18,16),o.YNc(19,vd,2,0,"th",13),o.YNc(20,qd,4,3,"td",14),o.BQk(),o.ynx(21,17),o.YNc(22,Sd,2,0,"th",13),o.YNc(23,Fd,4,3,"td",14),o.BQk(),o.ynx(24,18),o.YNc(25,Ld,6,0,"th",19),o.YNc(26,kd,10,0,"td",20),o.BQk(),o.ynx(27,21),o.YNc(28,Od,4,3,"td",22),o.BQk(),o.YNc(29,Dd,1,3,"tr",23),o.YNc(30,Rd,1,0,"tr",24),o.YNc(31,Md,1,0,"tr",25),o.qZA(),o._UZ(32,"mat-paginator",26),o.qZA(),o.qZA(),o.qZA(),o.YNc(33,Ed,1,0,"ng-template",null,27,o.W1O)),2&e&&(o.xp6(6),o.Q6J("ngIf",(null==t.apisCallStatus?null:t.apisCallStatus.FetchUTXOs.status)===t.apiCallStatusEnum.INITIATED),o.xp6(1),o.Q6J("dataSource",t.listUTXOs)("ngClass",o.VKq(10,Qd,""!==t.errorMessage)),o.xp6(22),o.Q6J("matFooterRowDef",o.DdM(12,Yd)),o.xp6(1),o.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),o.xp6(1),o.Q6J("matRowDefColumns",t.displayedColumns),o.xp6(1),o.Q6J("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS))},directives:[l.xw,l.yH,l.Wh,D.KE,Ce.Nt,E.$V,a.O5,Ze.BZ,xe.YE,a.mk,v.oO,Ze.w1,Ze.fO,Ze.Dz,Ze.mD,Ze.Ke,Ze.as,Ze.nj,fe.NW,r.pW,Ze.ge,xe.nU,Ze.ev,a.PC,v.Zl,R.gM,S.Hw,we.gD,we.$L,ve.ey,Ze.yh,Ze.Q2,Ze.XQ,Ze.Gk],pipes:[a.JJ],styles:[".mat-column-label[_ngcontent-%COMP%]{padding-left:1rem;flex:1 1 15%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-tx_id[_ngcontent-%COMP%]{flex:1 1 15%}.mat-column-tx_id[_ngcontent-%COMP%] .ellipsis-child[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),e})();function Bd(e,t){1&e&&o._UZ(0,"mat-progress-bar",28)}function Gd(e,t){1&e&&(o.TgZ(0,"th",29),o._uU(1," Date/Time "),o.qZA())}function Hd(e,t){if(1&e&&(o.TgZ(0,"td",30),o._uU(1),o.ALo(2,"date"),o.qZA()),2&e){const e=t.$implicit;o.xp6(1),o.Oqu(o.xi3(2,1,1e3*e.time_stamp,"dd/MMM/YYYY HH:mm"))}}function zd(e,t){1&e&&(o.TgZ(0,"th",29),o._uU(1," Label "),o.qZA())}const Vd=function(e){return{"max-width":e}};function Wd(e,t){if(1&e&&(o.TgZ(0,"td",31),o._uU(1),o.qZA()),2&e){const e=t.$implicit,n=o.oxw();o.Q6J("ngStyle",o.VKq(2,Vd,n.screenSize===n.screenSizeEnum.XS?"12rem":"25rem")),o.xp6(1),o.hij(" ",null==e?null:e.label," ")}}function Xd(e,t){1&e&&(o.TgZ(0,"th",32),o._uU(1," Amount (Sats) "),o.qZA())}function $d(e,t){if(1&e&&(o.TgZ(0,"span",35),o._uU(1),o.ALo(2,"number"),o.qZA()),2&e){const e=o.oxw().$implicit;o.xp6(1),o.Oqu(o.lcZ(2,1,e.amount))}}function jd(e,t){if(1&e&&(o.TgZ(0,"span",36),o._uU(1),o.ALo(2,"number"),o.qZA()),2&e){const e=o.oxw().$implicit;o.xp6(1),o.hij("(",o.lcZ(2,1,-1*e.amount),")")}}function Kd(e,t){if(1&e&&(o.TgZ(0,"td",30),o.YNc(1,$d,3,3,"span",33),o.YNc(2,jd,3,3,"span",34),o.qZA()),2&e){const e=t.$implicit;o.xp6(1),o.Q6J("ngIf",e.amount>0||0===e.amount),o.xp6(1),o.Q6J("ngIf",e.amount<0)}}function eh(e,t){1&e&&(o.TgZ(0,"th",32),o._uU(1," Fees (Sats) "),o.qZA())}function th(e,t){if(1&e&&(o.TgZ(0,"td",30),o.TgZ(1,"span",35),o._uU(2),o.ALo(3,"number"),o.qZA(),o.qZA()),2&e){const e=t.$implicit;o.xp6(2),o.Oqu(o.lcZ(3,1,e.total_fees))}}function nh(e,t){1&e&&(o.TgZ(0,"th",32),o._uU(1," Block Height "),o.qZA())}function ah(e,t){if(1&e&&(o.TgZ(0,"td",30),o.TgZ(1,"span",35),o._uU(2),o.ALo(3,"number"),o.qZA(),o.qZA()),2&e){const e=t.$implicit;o.xp6(2),o.Oqu(o.lcZ(3,1,e.block_height))}}function ih(e,t){1&e&&(o.TgZ(0,"th",32),o._uU(1," Confirmations "),o.qZA())}function sh(e,t){if(1&e&&(o.TgZ(0,"td",30),o.TgZ(1,"span",35),o._uU(2),o.ALo(3,"number"),o.qZA(),o.qZA()),2&e){const e=t.$implicit;o.xp6(2),o.hij(" ",o.lcZ(3,1,null==e?null:e.num_confirmations)," ")}}function oh(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"th",37),o.TgZ(1,"div",38),o.TgZ(2,"mat-select",39),o._UZ(3,"mat-select-trigger"),o.TgZ(4,"mat-option",40),o.NdJ("click",function(){return o.CHM(e),o.oxw().onDownloadCSV()}),o._uU(5,"Download CSV"),o.qZA(),o.qZA(),o.qZA(),o.qZA()}}function lh(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"td",41),o.TgZ(1,"button",42),o.NdJ("click",function(){const t=o.CHM(e).$implicit;return o.oxw().onTransactionClick(t)}),o._uU(2,"View Info"),o.qZA(),o.qZA()}}function rh(e,t){1&e&&(o.TgZ(0,"p"),o._uU(1,"No transaction available."),o.qZA())}function ch(e,t){1&e&&(o.TgZ(0,"p"),o._uU(1,"Getting transactions..."),o.qZA())}function uh(e,t){if(1&e&&(o.TgZ(0,"p"),o._uU(1),o.qZA()),2&e){const e=o.oxw(2);o.xp6(1),o.Oqu(e.errorMessage)}}function ph(e,t){if(1&e&&(o.TgZ(0,"td",43),o.YNc(1,rh,2,0,"p",44),o.YNc(2,ch,2,0,"p",44),o.YNc(3,uh,2,1,"p",44),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Q6J("ngIf",(!(null!=e.listTransactions&&e.listTransactions.data)||(null==e.listTransactions||null==e.listTransactions.data?null:e.listTransactions.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.FetchTransactions.status)===e.apiCallStatusEnum.COMPLETED),o.xp6(1),o.Q6J("ngIf",(!(null!=e.listTransactions&&e.listTransactions.data)||(null==e.listTransactions||null==e.listTransactions.data?null:e.listTransactions.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.FetchTransactions.status)===e.apiCallStatusEnum.INITIATED),o.xp6(1),o.Q6J("ngIf",(!(null!=e.listTransactions&&e.listTransactions.data)||(null==e.listTransactions||null==e.listTransactions.data?null:e.listTransactions.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.FetchTransactions.status)===e.apiCallStatusEnum.ERROR)}}const dh=function(e){return{"display-none":e}};function hh(e,t){if(1&e&&o._UZ(0,"tr",45),2&e){const e=o.oxw();o.Q6J("ngClass",o.VKq(1,dh,(null==e.listTransactions?null:e.listTransactions.data)&&(null==e.listTransactions||null==e.listTransactions.data?null:e.listTransactions.data.length)>0))}}function mh(e,t){1&e&&o._UZ(0,"tr",46)}function gh(e,t){1&e&&o._UZ(0,"tr",47)}const fh=function(e){return{"overflow-auto error-border":e,"overflow-auto":!0}},xh=function(){return["no_transaction"]};let Zh=(()=>{class e{constructor(e,t,n,a){this.logger=e,this.commonService=t,this.store=n,this.datePipe=a,this.faHistory=g.qO$,this.displayedColumns=[],this.flgSticky=!1,this.pageSize=f.IV,this.pageSizeOptions=f.TJ,this.screenSize="",this.screenSizeEnum=f.cu,this.errorMessage="",this.apisCallStatus=null,this.apiCallStatusEnum=f.Bn,this.unSubs=[new p.x,new p.x,new p.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===f.cu.XS?(this.flgSticky=!1,this.displayedColumns=["time_stamp","amount","actions"]):this.screenSize===f.cu.SM?(this.flgSticky=!1,this.displayedColumns=["time_stamp","amount","num_confirmations","total_fees","actions"]):this.screenSize===f.cu.MD?(this.flgSticky=!1,this.displayedColumns=["time_stamp","label","amount","total_fees","num_confirmations","actions"]):(this.flgSticky=!0,this.displayedColumns=["time_stamp","label","amount","total_fees","block_height","num_confirmations","actions"])}ngOnInit(){this.store.select("lnd").pipe((0,d.R)(this.unSubs[0])).subscribe(e=>{this.errorMessage="",this.apisCallStatus=e.apisCallStatus,e.apisCallStatus.FetchTransactions.status===f.Bn.ERROR&&(this.errorMessage="object"==typeof this.apisCallStatus.FetchTransactions.message?JSON.stringify(this.apisCallStatus.FetchTransactions.message):this.apisCallStatus.FetchTransactions.message),e.transactions&&e.transactions.length>0&&(this.transactions=e.transactions,this.loadTransactionsTable(this.transactions)),this.logger.info(e)})}ngOnChanges(){this.transactions&&this.transactions.length>0&&this.loadTransactionsTable(this.transactions)}applyFilter(e){this.listTransactions.filter=e.value.trim().toLowerCase()}onTransactionClick(e){this.store.dispatch(new ee.wu({data:{type:f.n_.INFORMATION,alertTitle:"Transaction Information",message:[[{key:"block_hash",value:e.block_hash,title:"Block Hash",width:100}],[{key:"tx_hash",value:e.tx_hash,title:"Transaction Hash",width:100}],[{key:"label",value:e.label,title:"Label",width:100,type:f.Gi.STRING}],[{key:"time_stamp",value:e.time_stamp,title:"Date/Time",width:50,type:f.Gi.DATE_TIME},{key:"block_height",value:e.block_height,title:"Block Height",width:50,type:f.Gi.NUMBER}],[{key:"num_confirmations",value:e.num_confirmations,title:"Number of Confirmations",width:34,type:f.Gi.NUMBER},{key:"total_fees",value:e.total_fees,title:"Total Fees (Sats)",width:33,type:f.Gi.NUMBER},{key:"amount",value:e.amount,title:"Amount (Sats)",width:33,type:f.Gi.NUMBER}],[{key:"dest_addresses",value:e.dest_addresses,title:"Destination Addresses",width:100,type:f.Gi.ARRAY}]],scrollable:e.dest_addresses&&e.dest_addresses.length>5}}))}loadTransactionsTable(e){this.listTransactions=new Ze.by([...e]),this.listTransactions.sort=this.sort,this.listTransactions.sortingDataAccessor=(e,t)=>e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():e[t]?+e[t]:null,this.listTransactions.filterPredicate=(e,t)=>((e.time_stamp?this.datePipe.transform(new Date(1e3*e.time_stamp),"dd/MMM/YYYY HH:mm").toLowerCase():"")+JSON.stringify(e).toLowerCase()).includes(t),this.listTransactions.paginator=this.paginator,this.logger.info(this.listTransactions)}onDownloadCSV(){this.listTransactions.data&&this.listTransactions.data.length>0&&this.commonService.downloadFile(this.listTransactions.data,"Transactions")}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(Z.mQ),o.Y36(C.v),o.Y36(y.yh),o.Y36(a.uU))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-on-chain-transaction-history"]],viewQuery:function(e,t){if(1&e&&(o.Gf(xe.YE,5),o.Gf(fe.NW,5)),2&e){let e;o.iGM(e=o.CRH())&&(t.sort=e.first),o.iGM(e=o.CRH())&&(t.paginator=e.first)}},features:[o._Bn([{provide:fe.ye,useValue:(0,f.pt)("Transactions")}]),o.TTD],decls:36,vars:13,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap-x-large"],["fxLayout","column","fxLayout.gt-xs","row wrap","fxLayoutAlign.gt-xs","end stretch","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"keyup"],["fxLayout","row","fxLayoutAlign","start start"],["fxLayout","column","fxLayoutAlign","start end","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","time_stamp"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","label"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","amount"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","total_fees"],["matColumnDef","block_height"],["matColumnDef","num_confirmations"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-3","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_transaction"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-cell","",3,"ngStyle"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center",4,"ngIf"],["fxLayoutAlign","end center","class","red",4,"ngIf"],["fxLayoutAlign","end center"],["fxLayoutAlign","end center",1,"red"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,t){1&e&&(o.TgZ(0,"div",0),o.TgZ(1,"div",1),o.TgZ(2,"mat-form-field",2),o.TgZ(3,"input",3),o.NdJ("keyup",function(e){return t.applyFilter(e.target)}),o.qZA(),o.qZA(),o.qZA(),o.TgZ(4,"div",4),o.TgZ(5,"div",5),o.YNc(6,Bd,1,0,"mat-progress-bar",6),o.TgZ(7,"table",7,8),o.ynx(9,9),o.YNc(10,Gd,2,0,"th",10),o.YNc(11,Hd,3,4,"td",11),o.BQk(),o.ynx(12,12),o.YNc(13,zd,2,0,"th",10),o.YNc(14,Wd,2,4,"td",13),o.BQk(),o.ynx(15,14),o.YNc(16,Xd,2,0,"th",15),o.YNc(17,Kd,3,2,"td",11),o.BQk(),o.ynx(18,16),o.YNc(19,eh,2,0,"th",15),o.YNc(20,th,4,3,"td",11),o.BQk(),o.ynx(21,17),o.YNc(22,nh,2,0,"th",15),o.YNc(23,ah,4,3,"td",11),o.BQk(),o.ynx(24,18),o.YNc(25,ih,2,0,"th",15),o.YNc(26,sh,4,3,"td",11),o.BQk(),o.ynx(27,19),o.YNc(28,oh,6,0,"th",20),o.YNc(29,lh,3,0,"td",21),o.BQk(),o.ynx(30,22),o.YNc(31,ph,4,3,"td",23),o.BQk(),o.YNc(32,hh,1,3,"tr",24),o.YNc(33,mh,1,0,"tr",25),o.YNc(34,gh,1,0,"tr",26),o.qZA(),o._UZ(35,"mat-paginator",27),o.qZA(),o.qZA(),o.qZA()),2&e&&(o.xp6(6),o.Q6J("ngIf",(null==t.apisCallStatus?null:t.apisCallStatus.FetchTransactions.status)===t.apiCallStatusEnum.INITIATED),o.xp6(1),o.Q6J("dataSource",t.listTransactions)("ngClass",o.VKq(10,fh,""!==t.errorMessage)),o.xp6(25),o.Q6J("matFooterRowDef",o.DdM(12,xh)),o.xp6(1),o.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),o.xp6(1),o.Q6J("matRowDefColumns",t.displayedColumns),o.xp6(1),o.Q6J("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS))},directives:[l.xw,l.yH,l.Wh,D.KE,Ce.Nt,E.$V,a.O5,Ze.BZ,xe.YE,a.mk,v.oO,Ze.w1,Ze.fO,Ze.Dz,Ze.mD,Ze.Ke,Ze.as,Ze.nj,fe.NW,r.pW,Ze.ge,xe.nU,Ze.ev,a.PC,v.Zl,we.gD,we.$L,ve.ey,q.lW,Ze.yh,Ze.Q2,Ze.XQ,Ze.Gk],pipes:[a.uU,a.JJ],styles:[".mat-column-label[_ngcontent-%COMP%]{flex:1 1 20%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),e})();function yh(e,t){if(1&e&&(o.TgZ(0,"span",5),o._uU(1,"UTXOs"),o.qZA()),2&e){const e=o.oxw();o.s9C("matBadge",e.numUtxos)}}function Ah(e,t){if(1&e&&(o.TgZ(0,"span",5),o._uU(1,"Transactions"),o.qZA()),2&e){const e=o.oxw();o.s9C("matBadge",e.numTransactions)}}function Ch(e,t){if(1&e&&(o.TgZ(0,"span",5),o._uU(1,"Dust UTXOs"),o.qZA()),2&e){const e=o.oxw();o.s9C("matBadge",e.numDustUtxos)}}let Th=(()=>{class e{constructor(e,t){this.logger=e,this.store=t,this.selectedTableIndex=0,this.selectedTableIndexChange=new o.vpe,this.numTransactions=0,this.numUtxos=0,this.numDustUtxos=0,this.unSubs=[new p.x]}ngOnInit(){this.store.dispatch(new x.eL),this.store.dispatch(new x.Zt),this.store.select("lnd").pipe((0,d.R)(this.unSubs[0])).subscribe(e=>{e.utxos&&e.utxos.length>0&&(this.numUtxos=e.utxos.length,this.numDustUtxos=e.utxos.filter(e=>+e.amount_sat<1e3).length),e.transactions&&e.transactions.length>0&&(this.numTransactions=e.transactions.length),this.logger.info(e)})}onSelectedIndexChanged(e){this.selectedTableIndexChange.emit(e)}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(Z.mQ),o.Y36(y.yh))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-utxo-tables"]],inputs:{selectedTableIndex:"selectedTableIndex"},outputs:{selectedTableIndexChange:"selectedTableIndexChange"},decls:11,vars:3,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"bordered-box"],[3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],["fxLayout","row","fxFlex","100",3,"isDustUTXO"],["fxLayout","row","fxFlex","100"],["matBadgeOverlap","false",1,"tab-badge",3,"matBadge"]],template:function(e,t){1&e&&(o.TgZ(0,"div",0),o.TgZ(1,"mat-tab-group",1),o.NdJ("selectedIndexChange",function(e){return t.onSelectedIndexChanged(e)}),o.TgZ(2,"mat-tab"),o.YNc(3,yh,2,1,"ng-template",2),o._UZ(4,"rtl-on-chain-utxos",3),o.qZA(),o.TgZ(5,"mat-tab"),o.YNc(6,Ah,2,1,"ng-template",2),o._UZ(7,"rtl-on-chain-transaction-history",4),o.qZA(),o.TgZ(8,"mat-tab"),o.YNc(9,Ch,2,1,"ng-template",2),o._UZ(10,"rtl-on-chain-utxos",3),o.qZA(),o.qZA(),o.qZA()),2&e&&(o.xp6(1),o.Q6J("selectedIndex",t.selectedTableIndex),o.xp6(3),o.Q6J("isDustUTXO",!1),o.xp6(6),o.Q6J("isDustUTXO",!0))},directives:[l.xw,l.yH,l.Wh,ge.SP,ge.uX,ge.uD,Pd,Zh,ra.k],styles:[""]}),e})();const bh=function(e,t){return[e,t]};function wh(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"div",12),o.NdJ("click",function(){const t=o.CHM(e).$implicit;return o.oxw().activeLink=null==t?null:t.link}),o._uU(1),o.qZA()}if(2&e){const e=t.$implicit,n=o.oxw();o.Q6J("active",n.activeLink===(null==e?null:e.link))("routerLink",o.WLB(3,bh,null==e?null:e.link,null==n.selectedTable?null:n.selectedTable.name)),o.xp6(1),o.Oqu(null==e?null:e.name)}}let _h=(()=>{class e{constructor(e,t,n){this.store=e,this.router=t,this.activatedRoute=n,this.selNode={},this.faExchangeAlt=g.Ssp,this.faChartPie=g.OS1,this.balances=[{title:"Total Balance",dataValue:0},{title:"Confirmed",dataValue:0},{title:"Unconfirmed",dataValue:0}],this.links=[{link:"receive",name:"Receive"},{link:"send",name:"Send"},{link:"sweep",name:"Sweep All"}],this.activeLink=this.links[0].link,this.tables=[{id:0,name:"utxos"},{id:1,name:"trans"},{id:2,name:"dustUtxos"}],this.selectedTable=this.tables[0],this.unSubs=[new p.x,new p.x,new p.x,new p.x]}ngOnInit(){const e=this.links.find(e=>this.router.url.includes(e.link));this.activeLink=e?e.link:this.links[0].link,this.selectedTable=this.tables.find(e=>e.name===this.router.url.substring(this.router.url.lastIndexOf("/")+1)),this.router.events.pipe((0,d.R)(this.unSubs[0]),(0,h.h)(e=>e instanceof i.Av)).subscribe(e=>{const t=this.links.find(t=>e.urlAfterRedirects.includes(t.link));this.activeLink=t?t.link:this.links[0].link,this.selectedTable=this.tables.find(t=>t.name===e.urlAfterRedirects.substring(e.urlAfterRedirects.lastIndexOf("/")+1))}),this.store.select("lnd").pipe((0,d.R)(this.unSubs[1])).subscribe(e=>{this.selNode=e.nodeSettings,this.balances=[{title:"Total Balance",dataValue:e.blockchainBalance.total_balance||0},{title:"Confirmed",dataValue:e.blockchainBalance.confirmed_balance},{title:"Unconfirmed",dataValue:e.blockchainBalance.unconfirmed_balance}]})}onSelectedTableIndexChanged(e){this.selectedTable=this.tables.find(t=>t.id===e),this.router.navigate(["./",this.activeLink,this.selectedTable.name],{relativeTo:this.activatedRoute})}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(y.yh),o.Y36(i.F0),o.Y36(i.gz))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-on-chain"]],decls:21,vars:5,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x","mb-4"],["fxLayout","column"],[3,"values"],["fxLayout","column",1,"padding-gap-x"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large"],["fxLayout","row","fxFlex","100",3,"selectedTableIndex","selectedTableIndexChange"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(e,t){1&e&&(o.TgZ(0,"div",0),o._UZ(1,"fa-icon",1),o.TgZ(2,"span",2),o._uU(3,"On-chain Balance"),o.qZA(),o.qZA(),o.TgZ(4,"div",3),o.TgZ(5,"mat-card"),o.TgZ(6,"mat-card-content",4),o._UZ(7,"rtl-currency-unit-converter",5),o.qZA(),o.qZA(),o.qZA(),o.TgZ(8,"div",0),o._UZ(9,"fa-icon",1),o.TgZ(10,"span",2),o._uU(11,"On-chain Transactions"),o.qZA(),o.qZA(),o.TgZ(12,"div",6),o.TgZ(13,"mat-card"),o.TgZ(14,"mat-card-content",4),o.TgZ(15,"nav",7),o.YNc(16,wh,2,6,"div",8),o.qZA(),o.TgZ(17,"div",9),o._UZ(18,"router-outlet"),o.qZA(),o.TgZ(19,"div",10),o.TgZ(20,"rtl-utxo-tables",11),o.NdJ("selectedTableIndexChange",function(e){return t.onSelectedTableIndexChanged(e)}),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA()),2&e&&(o.xp6(1),o.Q6J("icon",t.faChartPie),o.xp6(6),o.Q6J("values",t.balances),o.xp6(2),o.Q6J("icon",t.faExchangeAlt),o.xp6(7),o.Q6J("ngForOf",t.links),o.xp6(4),o.Q6J("selectedTableIndex",null==t.selectedTable?null:t.selectedTable.id))},directives:[l.xw,l.Wh,T.BN,w.a8,w.dn,la.D,ge.BU,a.sg,l.yH,i.lC,Th,ge.Nj,i.rH],styles:[""]}),e})();var vh=n(7969);function qh(e,t){if(1&e&&(o.TgZ(0,"mat-option",7),o._uU(1),o.qZA()),2&e){const e=t.$implicit;o.Q6J("value",e),o.xp6(1),o.hij(" ",e.addressTp," ")}}let Sh=(()=>{class e{constructor(e,t){this.store=e,this.lndEffects=t,this.addressTypes=f._t,this.selectedAddressType=f._t[0],this.newAddress=""}onGenerateAddress(){this.store.dispatch(new x.ER(this.selectedAddressType)),this.lndEffects.setNewAddress.pipe((0,pt.q)(1)).subscribe(e=>{this.newAddress=e,this.store.dispatch(new ee.wu({width:"58%",data:{address:this.newAddress,addressType:this.selectedAddressType.addressTp,component:vh.n}}))})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(y.yh),o.Y36(Ft.l))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-on-chain-receive"]],decls:8,vars:2,consts:[["fxLayout","column"],["fxLayout","row","fxLayoutAlign","start end"],["fxFlex","48","fxFlex.gt-md","25","fxLayoutAlign","start end",1,"mr-2"],["placeholder","Address Type","name","address_type","tabindex","1",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"mt-2"],["mat-flat-button","","color","primary","tabindex","2",1,"top-minus-15px",3,"click"],[3,"value"]],template:function(e,t){1&e&&(o.TgZ(0,"div",0),o.TgZ(1,"div",1),o.TgZ(2,"mat-form-field",2),o.TgZ(3,"mat-select",3),o.NdJ("ngModelChange",function(e){return t.selectedAddressType=e}),o.YNc(4,qh,2,2,"mat-option",4),o.qZA(),o.qZA(),o.TgZ(5,"div",5),o.TgZ(6,"button",6),o.NdJ("click",function(){return t.onGenerateAddress()}),o._uU(7,"Generate Address"),o.qZA(),o.qZA(),o.qZA(),o.qZA()),2&e&&(o.xp6(3),o.Q6J("ngModel",t.selectedAddressType),o.xp6(1),o.Q6J("ngForOf",t.addressTypes))},directives:[l.xw,l.Wh,D.KE,l.yH,we.gD,Ae.JJ,Ae.On,a.sg,q.lW,ve.ey],styles:[""]}),e})();var Fh=n(1339);const Lh=["form"],kh=["formSweepAll"],Nh=["stepper"];function Uh(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Bitcoin address is required."),o.qZA())}function Ih(e,t){if(1&e&&(o.TgZ(0,"mat-error"),o._uU(1),o.qZA()),2&e){const e=o.oxw(2);o.xp6(1),o.Oqu(e.amountError)}}function Oh(e,t){if(1&e&&(o.TgZ(0,"mat-option",31),o._uU(1),o.qZA()),2&e){const e=t.$implicit;o.Q6J("value",e),o.xp6(1),o.Oqu(e)}}function Jh(e,t){if(1&e&&(o.TgZ(0,"mat-option",31),o._uU(1),o.qZA()),2&e){const e=t.$implicit;o.Q6J("value",e.id),o.xp6(1),o.hij(" ",e.name," ")}}function Dh(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Number of blocks is required."),o.qZA())}function Rh(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"mat-form-field",23),o.TgZ(1,"input",32,33),o.NdJ("ngModelChange",function(t){return o.CHM(e),o.oxw(2).transactionBlocks=t}),o.qZA(),o.YNc(3,Dh,2,0,"mat-error",14),o.qZA()}if(2&e){const e=o.oxw(2);o.xp6(1),o.Q6J("ngModel",e.transactionBlocks)("step",1)("min",0),o.xp6(2),o.Q6J("ngIf",!e.transactionBlocks)}}function Mh(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Fees is required."),o.qZA())}function Eh(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"mat-form-field",23),o.TgZ(1,"input",34,35),o.NdJ("ngModelChange",function(t){return o.CHM(e),o.oxw(2).transactionFees=t}),o.qZA(),o.YNc(3,Mh,2,0,"mat-error",14),o.qZA()}if(2&e){const e=o.oxw(2);o.xp6(1),o.Q6J("ngModel",e.transactionFees)("step",1)("min",0),o.xp6(2),o.Q6J("ngIf",!e.transactionFees)}}function Qh(e,t){if(1&e&&(o.TgZ(0,"span"),o._uU(1),o.qZA()),2&e){const e=o.oxw(3);o.xp6(1),o.Oqu(e.sendFundError)}}function Yh(e,t){if(1&e&&(o.TgZ(0,"div",36),o._UZ(1,"fa-icon",37),o.YNc(2,Qh,2,1,"span",14),o.qZA()),2&e){const e=o.oxw(2);o.xp6(1),o.Q6J("icon",e.faExclamationTriangle),o.xp6(1),o.Q6J("ngIf",""!==e.sendFundError)}}function Ph(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"form",9,10),o.NdJ("submit",function(){return o.CHM(e),o.oxw().onSendFunds()})("reset",function(){return o.CHM(e),o.oxw().resetData()}),o.TgZ(2,"mat-form-field",11),o.TgZ(3,"input",12,13),o.NdJ("ngModelChange",function(t){return o.CHM(e),o.oxw().transactionAddress=t}),o.qZA(),o.YNc(5,Uh,2,0,"mat-error",14),o.qZA(),o.TgZ(6,"mat-form-field",15),o.TgZ(7,"input",16,17),o.NdJ("ngModelChange",function(t){return o.CHM(e),o.oxw().transactionAmount=t}),o.qZA(),o.TgZ(9,"span",18),o._uU(10),o.qZA(),o.YNc(11,Ih,2,1,"mat-error",14),o.qZA(),o.TgZ(12,"mat-form-field",19),o.TgZ(13,"mat-select",20),o.NdJ("selectionChange",function(t){return o.CHM(e),o.oxw().onAmountUnitChange(t)}),o.YNc(14,Oh,2,2,"mat-option",21),o.qZA(),o.qZA(),o.TgZ(15,"div",22),o.TgZ(16,"mat-form-field",23),o.TgZ(17,"mat-select",24),o.NdJ("valueChange",function(t){return o.CHM(e),o.oxw().selTransType=t}),o.YNc(18,Jh,2,2,"mat-option",21),o.qZA(),o.qZA(),o.YNc(19,Rh,4,4,"mat-form-field",25),o.YNc(20,Eh,4,4,"mat-form-field",25),o.qZA(),o._UZ(21,"div",26),o.YNc(22,Yh,3,2,"div",27),o.TgZ(23,"div",28),o.TgZ(24,"button",29),o._uU(25,"Clear Fields"),o.qZA(),o.TgZ(26,"button",30),o._uU(27,"Send Funds"),o.qZA(),o.qZA(),o.qZA()}if(2&e){const e=o.oxw();o.xp6(3),o.Q6J("ngModel",e.transactionAddress),o.xp6(2),o.Q6J("ngIf",!e.transactionAddress),o.xp6(2),o.Q6J("ngModel",e.transactionAmount)("step",100)("min",0),o.xp6(3),o.hij(" ",e.selAmountUnit," "),o.xp6(1),o.Q6J("ngIf",!e.transactionAmount),o.xp6(2),o.Q6J("value",e.selAmountUnit),o.xp6(1),o.Q6J("ngForOf",e.amountUnits),o.xp6(3),o.Q6J("value",e.selTransType),o.xp6(1),o.Q6J("ngForOf",e.transTypes),o.xp6(1),o.Q6J("ngIf","1"===e.selTransType),o.xp6(1),o.Q6J("ngIf","2"===e.selTransType),o.xp6(2),o.Q6J("ngIf",""!==e.sendFundError)}}function Bh(e,t){if(1&e&&o._uU(0),2&e){const e=o.oxw(3);o.Oqu(e.passwordFormLabel)}}function Gh(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Password is required."),o.qZA())}function Hh(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"mat-step",42),o.TgZ(1,"form",61),o.YNc(2,Bh,1,1,"ng-template",55),o.TgZ(3,"div",0),o.TgZ(4,"mat-form-field",1),o._UZ(5,"input",62),o.YNc(6,Gh,2,0,"mat-error",14),o.qZA(),o.qZA(),o.TgZ(7,"div",63),o.TgZ(8,"button",64),o.NdJ("click",function(){return o.CHM(e),o.oxw(2).onAuthenticate()}),o._uU(9,"Confirm"),o.qZA(),o.qZA(),o.qZA(),o.qZA()}if(2&e){const e=o.oxw(2);o.Q6J("stepControl",e.passwordFormGroup)("editable",e.flgEditable),o.xp6(1),o.Q6J("formGroup",e.passwordFormGroup),o.xp6(5),o.Q6J("ngIf",null==e.passwordFormGroup.controls.password.errors?null:e.passwordFormGroup.controls.password.errors.required)}}function zh(e,t){if(1&e&&o._uU(0),2&e){const e=o.oxw(2);o.Oqu(e.sendFundFormLabel)}}function Vh(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Bitcoin address is required."),o.qZA())}function Wh(e,t){if(1&e&&(o.TgZ(0,"mat-option",31),o._uU(1),o.qZA()),2&e){const e=t.$implicit;o.Q6J("value",e.id),o.xp6(1),o.hij(" ",e.name," ")}}function Xh(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Number of blocks is required."),o.qZA())}function $h(e,t){if(1&e&&(o.TgZ(0,"mat-form-field",65),o._UZ(1,"input",66),o.YNc(2,Xh,2,0,"mat-error",14),o.qZA()),2&e){const e=o.oxw(2);o.xp6(1),o.Q6J("step",1)("min",0),o.xp6(1),o.Q6J("ngIf",null==e.sendFundFormGroup.controls.transactionBlocks.errors?null:e.sendFundFormGroup.controls.transactionBlocks.errors.required)}}function jh(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Fees is required."),o.qZA())}function Kh(e,t){if(1&e&&(o.TgZ(0,"mat-form-field",65),o._UZ(1,"input",67),o.YNc(2,jh,2,0,"mat-error",14),o.qZA()),2&e){const e=o.oxw(2);o.xp6(1),o.Q6J("step",1)("min",0),o.xp6(1),o.Q6J("ngIf",null==e.sendFundFormGroup.controls.transactionFees.errors?null:e.sendFundFormGroup.controls.transactionFees.errors.required)}}function em(e,t){if(1&e&&o._uU(0),2&e){const e=o.oxw(2);o.Oqu(e.confirmFormLabel)}}function tm(e,t){if(1&e&&(o.TgZ(0,"span"),o._uU(1),o.qZA()),2&e){const e=o.oxw(3);o.xp6(1),o.Oqu(e.sendFundError)}}function nm(e,t){if(1&e&&(o.TgZ(0,"div",36),o._UZ(1,"fa-icon",37),o.YNc(2,tm,2,1,"span",14),o.qZA()),2&e){const e=o.oxw(2);o.xp6(1),o.Q6J("icon",e.faExclamationTriangle),o.xp6(1),o.Q6J("ngIf",""!==e.sendFundError)}}function am(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"div",38),o.TgZ(1,"mat-vertical-stepper",39,40),o.NdJ("selectionChange",function(t){return o.CHM(e),o.oxw().stepSelectionChanged(t)}),o.YNc(3,Hh,10,4,"mat-step",41),o.TgZ(4,"mat-step",42),o.TgZ(5,"form",43),o.YNc(6,zh,1,1,"ng-template",44),o.TgZ(7,"div",45),o.TgZ(8,"mat-form-field",46),o._UZ(9,"input",47),o.YNc(10,Vh,2,0,"mat-error",14),o.qZA(),o.TgZ(11,"mat-form-field",48),o.TgZ(12,"mat-select",49),o.YNc(13,Wh,2,2,"mat-option",21),o.qZA(),o.qZA(),o.YNc(14,$h,3,3,"mat-form-field",50),o.YNc(15,Kh,3,3,"mat-form-field",50),o.qZA(),o.TgZ(16,"div",51),o.TgZ(17,"button",52),o._uU(18,"Next"),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.TgZ(19,"mat-step",53),o.TgZ(20,"form",54),o.YNc(21,em,1,1,"ng-template",55),o.TgZ(22,"div",38),o.TgZ(23,"div",56),o._UZ(24,"fa-icon",57),o.TgZ(25,"span"),o._uU(26,"You are about to sweep all funds from RTL. Are you sure?"),o.qZA(),o.qZA(),o.YNc(27,nm,3,2,"div",27),o.TgZ(28,"div",51),o.TgZ(29,"button",58),o.NdJ("click",function(){return o.CHM(e),o.oxw().onSendFunds()}),o._uU(30,"Sweep All Funds"),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.TgZ(31,"div",59),o.TgZ(32,"button",60),o._uU(33),o.qZA(),o.qZA(),o.qZA()}if(2&e){const e=o.oxw();o.xp6(1),o.Q6J("linear",!0),o.xp6(2),o.Q6J("ngIf",!e.appConfig.sso.rtlSSO),o.xp6(1),o.Q6J("stepControl",e.sendFundFormGroup)("editable",e.flgEditable),o.xp6(1),o.Q6J("formGroup",e.sendFundFormGroup),o.xp6(5),o.Q6J("ngIf",null==e.sendFundFormGroup.controls.transactionAddress.errors?null:e.sendFundFormGroup.controls.transactionAddress.errors.required),o.xp6(3),o.Q6J("ngForOf",e.transTypes),o.xp6(1),o.Q6J("ngIf","1"===e.sendFundFormGroup.controls.selTransType.value),o.xp6(1),o.Q6J("ngIf","2"===e.sendFundFormGroup.controls.selTransType.value),o.xp6(4),o.Q6J("stepControl",e.confirmFormGroup),o.xp6(1),o.Q6J("formGroup",e.confirmFormGroup),o.xp6(4),o.Q6J("icon",e.faExclamationTriangle),o.xp6(3),o.Q6J("ngIf",""!==e.sendFundError),o.xp6(5),o.Q6J("mat-dialog-close",!1),o.xp6(1),o.Oqu(e.flgValidated?"Close":"Cancel")}}let im=(()=>{class e{constructor(e,t,n,a,i,s,o,l,r,c){this.dialogRef=e,this.data=t,this.logger=n,this.store=a,this.rtlEffects=i,this.commonService=s,this.decimalPipe=o,this.snackBar=l,this.actions=r,this.formBuilder=c,this.faExclamationTriangle=g.eHv,this.sweepAll=!1,this.selNode={},this.addressTypes=[],this.selectedAddress={},this.blockchainBalance={},this.information={},this.newAddress="",this.transactionAddress="",this.transactionAmount=null,this.transactionFees=null,this.transactionBlocks=null,this.transTypes=[{id:"1",name:"Target Confirmation Blocks"},{id:"2",name:"Fee"}],this.selTransType="1",this.fiatConversion=!1,this.amountUnits=f.uA,this.selAmountUnit=f.uA[0],this.currConvertorRate={},this.unitConversionValue=0,this.currencyUnitFormats=f.Xz,this.sendFundError="",this.flgValidated=!1,this.flgEditable=!0,this.passwordFormLabel="Authenticate with your RTL password",this.sendFundFormLabel="Sweep funds",this.confirmFormLabel="Confirm sweep",this.amountError="Amount is Required.",this.unSubs=[new p.x,new p.x,new p.x,new p.x,new p.x]}ngOnInit(){this.sweepAll=this.data.sweepAll,this.passwordFormGroup=this.formBuilder.group({hiddenPassword:["",[Ae.kI.required]],password:["",[Ae.kI.required]]}),this.sendFundFormGroup=this.formBuilder.group({transactionAddress:["",Ae.kI.required],transactionBlocks:[null],transactionFees:[null],selTransType:["1",Ae.kI.required]}),this.confirmFormGroup=this.formBuilder.group({}),this.sendFundFormGroup.controls.selTransType.valueChanges.pipe((0,d.R)(this.unSubs[0])).subscribe(e=>{"1"===e?(this.sendFundFormGroup.controls.transactionBlocks.setValidators([Ae.kI.required]),this.sendFundFormGroup.controls.transactionBlocks.setValue(null),this.sendFundFormGroup.controls.transactionFees.setValidators(null),this.sendFundFormGroup.controls.transactionFees.setValue(null)):(this.sendFundFormGroup.controls.transactionBlocks.setValidators(null),this.sendFundFormGroup.controls.transactionBlocks.setValue(null),this.sendFundFormGroup.controls.transactionFees.setValidators([Ae.kI.required]),this.sendFundFormGroup.controls.transactionFees.setValue(null))}),this.store.select("root").pipe((0,d.R)(this.unSubs[1])).subscribe(e=>{this.fiatConversion=e.selNode.settings.fiatConversion,this.amountUnits=e.selNode.settings.currencyUnits,this.appConfig=e.appConfig,this.nodeData=e.nodeData,this.logger.info(e)}),this.actions.pipe((0,d.R)(this.unSubs[2]),(0,h.h)(e=>e.type===x.JE||e.type===x.__)).subscribe(e=>{e.type===x.__&&(this.store.dispatch(new ee.Lw(this.sweepAll?"All Funds Sent Successfully!":"Fund Sent Successfully!")),this.dialogRef.close()),e.type===x.JE&&e.payload.status===f.Bn.ERROR&&"SetChannelTransaction"===e.payload.action&&(this.sendFundError=e.payload.message)})}onAuthenticate(){if(!this.passwordFormGroup.controls.password.value)return!0;this.flgValidated=!1,this.store.dispatch(new ee.ZF(Fh(this.passwordFormGroup.controls.password.value))),this.rtlEffects.isAuthorizedRes.pipe((0,pt.q)(1)).subscribe(e=>{"ERROR"!==e?(this.passwordFormGroup.controls.hiddenPassword.setValue(this.passwordFormGroup.controls.password.value),this.stepper.next()):(this.dialogRef.close(),this.snackBar.open("Unauthorized User. Logging out from RTL."))})}onSendFunds(){if(this.invalidValues)return!0;this.sendFundError="";const e={amount:this.transactionAmount?this.transactionAmount:0,sendAll:this.sweepAll};this.sweepAll?(e.address=this.sendFundFormGroup.controls.transactionAddress.value,"1"===this.sendFundFormGroup.controls.selTransType.value&&(e.blocks=this.sendFundFormGroup.controls.transactionBlocks.value),"2"===this.sendFundFormGroup.controls.selTransType.value&&(e.fees=this.sendFundFormGroup.controls.transactionFees.value)):(e.address=this.transactionAddress,"1"===this.selTransType&&(e.blocks=this.transactionBlocks),"2"===this.selTransType&&(e.fees=this.transactionFees)),this.transactionAmount&&this.selAmountUnit!==f.NT.SATS?this.commonService.convertCurrency(this.transactionAmount,this.selAmountUnit===this.amountUnits[2]?f.NT.OTHER:this.selAmountUnit,f.NT.SATS,this.amountUnits[2],this.fiatConversion).pipe((0,d.R)(this.unSubs[3])).subscribe({next:t=>{this.selAmountUnit=f.NT.SATS,e.amount=+this.decimalPipe.transform(t[this.amountUnits[0]],this.currencyUnitFormats[this.amountUnits[0]]).replace(/,/g,""),this.store.dispatch(new x.uj(e))},error:e=>{this.transactionAmount=null,this.selAmountUnit=f.NT.SATS,this.amountError="Conversion Error: "+e}}):this.store.dispatch(new x.uj(e))}get invalidValues(){return this.sweepAll?!this.sendFundFormGroup.controls.transactionAddress.value||""===this.sendFundFormGroup.controls.transactionAddress.value||"1"===this.sendFundFormGroup.controls.selTransType.value&&(!this.sendFundFormGroup.controls.transactionBlocks.value||this.sendFundFormGroup.controls.transactionBlocks.value<=0)||"2"===this.sendFundFormGroup.controls.selTransType.value&&(!this.sendFundFormGroup.controls.transactionFees.value||this.sendFundFormGroup.controls.transactionFees.value<=0):!this.transactionAddress||""===this.transactionAddress||!this.transactionAmount||this.transactionAmount<=0||"1"===this.selTransType&&(!this.transactionBlocks||this.transactionBlocks<=0)||"2"===this.selTransType&&(!this.transactionFees||this.transactionFees<=0)}resetData(){this.sendFundError="",this.selTransType="1",this.transactionAddress="",this.transactionBlocks=null,this.transactionFees=null,this.sweepAll||(this.transactionAmount=null)}stepSelectionChanged(e){switch(this.sendFundError="",e.selectedIndex){case 0:this.passwordFormLabel="Authenticate with your RTL password",this.sendFundFormLabel="Sweep funds";break;case 1:this.passwordFormLabel="User authenticated successfully",this.sendFundFormLabel="Sweep funds";break;case 2:this.passwordFormLabel="User authenticated successfully",this.sendFundFormLabel="Sweep funds | Address: "+this.sendFundFormGroup.controls.transactionAddress.value+" | "+this.transTypes[this.sendFundFormGroup.controls.selTransType.value-1].name+("2"===this.sendFundFormGroup.controls.selTransType.value?" (Sats/vByte)":"")+": "+("1"===this.sendFundFormGroup.controls.selTransType.value?this.sendFundFormGroup.controls.transactionBlocks.value:this.sendFundFormGroup.controls.transactionFees.value);break;default:this.passwordFormLabel="Authenticate with your RTL password",this.sendFundFormLabel="Sweep funds"}e.selectedIndex{this.selAmountUnit=e.value,t.transactionAmount=+t.decimalPipe.transform(n[a],t.currencyUnitFormats[a]).replace(/,/g,"")},error:e=>{t.transactionAmount=null,this.amountError="Conversion Error: "+e,this.selAmountUnit=n,a=n}})}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(ye.so),o.Y36(ye.WI),o.Y36(Z.mQ),o.Y36(y.yh),o.Y36(St.V),o.Y36(C.v),o.Y36(a.JJ),o.Y36(Ai.ux),o.Y36(A.eX),o.Y36(Ae.qu))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-on-chain-send-modal"]],viewQuery:function(e,t){if(1&e&&(o.Gf(Lh,7),o.Gf(kh,5),o.Gf(Nh,5)),2&e){let e;o.iGM(e=o.CRH())&&(t.form=e.first),o.iGM(e=o.CRH())&&(t.formSweepAll=e.first),o.iGM(e=o.CRH())&&(t.stepper=e.first)}},decls:12,vars:4,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayout","row wrap","fxLayoutAlign","space-between start","fxFlex","100","class","overflow-x-hidden",3,"submit","reset",4,"ngIf","ngIfElse"],["sweepAllBlock",""],["fxLayout","row wrap","fxLayoutAlign","space-between start","fxFlex","100",1,"overflow-x-hidden",3,"submit","reset"],["form","ngForm"],["fxFlex.gt-sm","55"],["autoFocus","","matInput","","placeholder","Bitcoin Address","tabindex","1","name","address","required","",3,"ngModel","ngModelChange"],["address","ngModel"],[4,"ngIf"],["fxFlex.gt-sm","30"],["matInput","","placeholder","Amount","name","amt","type","number","tabindex","2","required","",3,"ngModel","step","min","ngModelChange"],["amnt","ngModel"],["matSuffix",""],["fxFlex.gt-sm","10","fxLayoutAlign","start end"],["tabindex","3","required","","name","amountUnit",3,"value","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxFlex.gt-sm","60","fxLayout.gt-sm","row wrap","fxLayoutAlign","start stretch","fxLayoutAlign.gt-sm","space-between start"],["fxFlex","48"],["tabindex","4",3,"value","valueChange"],["fxFlex","48",4,"ngIf"],["fxLayout","column","fxFlex","100","fxFlex.gt-sm","40","fxLayout.gt-sm","row wrap","fxLayoutAlign","start stretch","fxLayoutAlign.gt-sm","space-between start"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","7","type","reset",1,"mr-1"],["mat-flat-button","","color","primary","type","submit","tabindex","8"],[3,"value"],["matInput","","placeholder","Number of Blocks","type","number","name","blcks","required","","tabindex","5",3,"ngModel","step","min","ngModelChange"],["blocks","ngModel"],["matInput","","placeholder","Fees (Sats/vByte)","type","number","name","chainFees","required","","tabindex","6",3,"ngModel","step","min","ngModelChange"],["fees","ngModel"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column"],[3,"linear","selectionChange"],["stepper",""],[3,"stepControl","editable",4,"ngIf"],[3,"stepControl","editable"],["fxLayout","column",1,"my-1","pr-1",3,"formGroup"],["matStepLabel","","disabled","true"],["fxLayout","column","fxFlex","98","fxLayout.gt-sm","row wrap","fxLayoutAlign","start stretch","fxLayoutAlign.gt-sm","space-between start"],["fxFlex.gt-sm","45"],["matInput","","formControlName","transactionAddress","placeholder","Bitcoin Address","tabindex","4","name","address","required",""],["fxFlex.gt-sm","25"],["formControlName","selTransType","tabindex","5"],["fxFlex.gt-sm","25","fxLayoutAlign","start end",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","8","type","button","matStepperNext",""],[3,"stepControl"],["fxLayout","column","fxLayoutAlign","start",1,"my-1","pr-1",3,"formGroup"],["matStepLabel",""],["fxFlex","100",1,"w-100","alert","alert-warn"],[1,"mt-1","mr-1","alert-icon",3,"icon"],["mat-stroked-button","","color","primary","tabindex","9","type","button",3,"click"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","tabindex","12","type","button","default","",3,"mat-dialog-close"],["fxLayout","column","fxLayoutAlign","space-between",1,"my-1","pr-1",3,"formGroup"],["autoFocus","","matInput","","placeholder","Password","type","password","tabindex","1","formControlName","password","required",""],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","3","type","button",3,"click"],["fxFlex.gt-sm","25","fxLayoutAlign","start end"],["matInput","","formControlName","transactionBlocks","placeholder","Number of Blocks","type","number","name","blcks","required","","tabindex","6",3,"step","min"],["matInput","","formControlName","transactionFees","placeholder","Fees (Sats/vByte)","type","number","name","chainFees","required","","tabindex","7",3,"step","min"]],template:function(e,t){if(1&e&&(o.TgZ(0,"div",0),o.TgZ(1,"div",1),o.TgZ(2,"mat-card-header",2),o.TgZ(3,"div",3),o.TgZ(4,"span",4),o._uU(5),o.qZA(),o.qZA(),o.TgZ(6,"button",5),o._uU(7,"X"),o.qZA(),o.qZA(),o.TgZ(8,"mat-card-content",6),o.YNc(9,Ph,28,14,"form",7),o.qZA(),o.qZA(),o.qZA(),o.YNc(10,am,34,15,"ng-template",null,8,o.W1O)),2&e){const e=o.MAs(11);o.xp6(5),o.Oqu(t.sweepAll?"Sweep All Funds":"Send Funds"),o.xp6(1),o.Q6J("mat-dialog-close",!1),o.xp6(3),o.Q6J("ngIf",!t.sweepAll)("ngIfElse",e)}},directives:[l.xw,l.yH,w.dk,l.Wh,q.lW,ye.ZT,w.dn,a.O5,Ae._Y,Ae.JL,Ae.F,D.KE,Ce.Nt,Ae.Fj,Te.h,Ae.Q7,Ae.JJ,Ae.On,Ae.wV,Ae.qQ,be.q,D.R9,we.gD,a.sg,D.TO,ve.ey,T.BN,La.Vq,La.C0,Ae.sg,La.VY,Ae.u,La.Ic],styles:[""]}),e})(),sm=(()=>{class e{constructor(e,t){this.store=e,this.activatedRoute=t,this.sweepAll=!1,this.unSubs=[new p.x,new p.x]}ngOnInit(){this.activatedRoute.data.pipe((0,d.R)(this.unSubs[0])).subscribe(e=>{this.sweepAll=e.sweepAll})}openSendFundsModal(){this.store.dispatch(new ee.wu({data:{sweepAll:this.sweepAll,component:im}}))}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(y.yh),o.Y36(i.gz))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-on-chain-send"]],decls:4,vars:1,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row"],["mat-flat-button","","color","primary","type","button","tabindex","1",3,"click"]],template:function(e,t){1&e&&(o.TgZ(0,"div",0),o.TgZ(1,"div",1),o.TgZ(2,"button",2),o.NdJ("click",function(){return t.openSendFundsModal()}),o._uU(3),o.qZA(),o.qZA(),o.qZA()),2&e&&(o.xp6(3),o.Oqu(t.sweepAll?"Sweep All":"Send Funds"))},directives:[l.xw,l.yH,l.Wh,q.lW],styles:[""]}),e})();function om(e,t){1&e&&o._UZ(0,"mat-progress-bar",26)}function lm(e,t){if(1&e&&o._UZ(0,"rtl-node-info",27),2&e){const e=o.oxw(3);o.Q6J("information",e.information)("showColorFieldSeparately",!0)}}function rm(e,t){if(1&e&&o._UZ(0,"rtl-channel-status-info",28),2&e){const e=o.oxw(3);o.Q6J("channelsStatus",e.channelsStatus)("errorMessage",e.errorMessages[3]+" "+e.errorMessages[4])}}function cm(e,t){if(1&e&&o._UZ(0,"rtl-fee-info",29),2&e){const e=o.oxw(3);o.Q6J("fees",e.fees)("errorMessage",e.errorMessages[2])}}const um=function(e){return{"dashboard-card-content":!0,"error-border":e}};function pm(e,t){if(1&e&&(o.TgZ(0,"mat-grid-tile",13),o.TgZ(1,"div",14),o.TgZ(2,"div",15),o.TgZ(3,"div",16),o._UZ(4,"fa-icon",17),o.TgZ(5,"span"),o._uU(6),o.qZA(),o.qZA(),o.qZA(),o.TgZ(7,"div",18),o.TgZ(8,"mat-card",19),o.TgZ(9,"mat-card-content",20),o.YNc(10,om,1,0,"mat-progress-bar",21),o.TgZ(11,"div",22),o.YNc(12,lm,1,2,"rtl-node-info",23),o.YNc(13,rm,1,2,"rtl-channel-status-info",24),o.YNc(14,cm,1,2,"rtl-fee-info",25),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA()),2&e){const e=t.$implicit,n=o.oxw(2);o.Q6J("colspan",e.cols)("rowspan",e.rows),o.xp6(4),o.Q6J("icon",e.icon),o.xp6(2),o.Oqu(e.title),o.xp6(3),o.Q6J("ngClass",o.VKq(10,um,"node"===e.id&&(null==n.apisCallStatus?null:n.apisCallStatus.FetchInfo.status)===n.apiCallStatusEnum.ERROR||"status"===e.id&&((null==n.apisCallStatus?null:n.apisCallStatus.FetchAllChannels.status)===n.apiCallStatusEnum.ERROR||n.apisCallStatus.FetchPendingChannels.status===n.apiCallStatusEnum.ERROR)||"fee"===e.id&&(null==n.apisCallStatus?null:n.apisCallStatus.FetchFees.status)===n.apiCallStatusEnum.ERROR)),o.xp6(1),o.Q6J("ngIf","node"===e.id&&(null==n.apisCallStatus?null:n.apisCallStatus.FetchInfo.status)===n.apiCallStatusEnum.INITIATED||"status"===e.id&&((null==n.apisCallStatus?null:n.apisCallStatus.FetchAllChannels.status)===n.apiCallStatusEnum.INITIATED||n.apisCallStatus.FetchPendingChannels.status===n.apiCallStatusEnum.INITIATED)||"fee"===e.id&&(null==n.apisCallStatus?null:n.apisCallStatus.FetchFees.status)===n.apiCallStatusEnum.INITIATED),o.xp6(1),o.Q6J("ngSwitch",e.id),o.xp6(1),o.Q6J("ngSwitchCase","node"),o.xp6(1),o.Q6J("ngSwitchCase","status"),o.xp6(1),o.Q6J("ngSwitchCase","fee")}}function dm(e,t){if(1&e&&(o.TgZ(0,"mat-grid-list",11),o.YNc(1,pm,15,12,"mat-grid-tile",12),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Q6J("ngForOf",e.nodeCards)}}function hm(e,t){1&e&&o._UZ(0,"mat-progress-bar",26)}function mm(e,t){1&e&&o.GkF(0)}function gm(e,t){if(1&e&&(o.TgZ(0,"div",33),o.YNc(1,mm,1,0,"ng-container",34),o.qZA()),2&e){const e=o.oxw(2),t=o.MAs(9),n=o.MAs(11);o.xp6(1),o.Q6J("ngTemplateOutlet",(null==e.apisCallStatus?null:e.apisCallStatus.FetchNetwork.status)===e.apiCallStatusEnum.ERROR?t:n)}}function fm(e,t){1&e&&o.GkF(0)}function xm(e,t){if(1&e&&(o.TgZ(0,"div",33),o.YNc(1,fm,1,0,"ng-container",34),o.qZA()),2&e){const e=o.oxw(2),t=o.MAs(9),n=o.MAs(13);o.xp6(1),o.Q6J("ngTemplateOutlet",(null==e.apisCallStatus?null:e.apisCallStatus.FetchNetwork.status)===e.apiCallStatusEnum.ERROR?t:n)}}function Zm(e,t){1&e&&o.GkF(0)}function ym(e,t){if(1&e&&(o.TgZ(0,"div",33),o.YNc(1,Zm,1,0,"ng-container",34),o.qZA()),2&e){const e=o.oxw(2),t=o.MAs(9),n=o.MAs(15);o.xp6(1),o.Q6J("ngTemplateOutlet",(null==e.apisCallStatus?null:e.apisCallStatus.FetchNetwork.status)===e.apiCallStatusEnum.ERROR?t:n)}}function Am(e,t){if(1&e&&(o.TgZ(0,"mat-grid-tile",30),o.TgZ(1,"mat-card",31),o.TgZ(2,"mat-card-content",20),o.YNc(3,hm,1,0,"mat-progress-bar",21),o.TgZ(4,"div",22),o.YNc(5,gm,2,1,"div",32),o.YNc(6,xm,2,1,"div",32),o.YNc(7,ym,2,1,"div",32),o.qZA(),o.qZA(),o.qZA(),o.qZA()),2&e){const e=t.$implicit,n=o.oxw();o.Q6J("colspan",e.cols)("rowspan",e.rows),o.xp6(2),o.Q6J("ngClass",o.VKq(8,um,(null==n.apisCallStatus?null:n.apisCallStatus.FetchNetwork.status)===n.apiCallStatusEnum.ERROR)),o.xp6(1),o.Q6J("ngIf",(null==n.apisCallStatus?null:n.apisCallStatus.FetchNetwork.status)===n.apiCallStatusEnum.INITIATED),o.xp6(1),o.Q6J("ngSwitch",e.id),o.xp6(1),o.Q6J("ngSwitchCase","general"),o.xp6(1),o.Q6J("ngSwitchCase","channels"),o.xp6(1),o.Q6J("ngSwitchCase","degrees")}}function Cm(e,t){if(1&e&&(o.TgZ(0,"div",35),o.TgZ(1,"p"),o._uU(2),o.qZA(),o.qZA()),2&e){const e=o.oxw();o.xp6(2),o.Oqu(e.errorMessages[1])}}function Tm(e,t){if(1&e&&(o.TgZ(0,"div",36),o.TgZ(1,"div"),o.TgZ(2,"h4",37),o._uU(3,"Network Capacity"),o.qZA(),o.TgZ(4,"div",38),o._uU(5),o.ALo(6,"number"),o.qZA(),o.qZA(),o.TgZ(7,"div"),o.TgZ(8,"h4",37),o._uU(9,"Number of Nodes"),o.qZA(),o.TgZ(10,"div",38),o._uU(11),o.ALo(12,"number"),o.qZA(),o.qZA(),o.TgZ(13,"div"),o.TgZ(14,"h4",37),o._uU(15,"Number of Channels"),o.qZA(),o.TgZ(16,"span",38),o._uU(17),o.ALo(18,"number"),o.qZA(),o.qZA(),o.qZA()),2&e){const e=o.oxw();o.xp6(5),o.hij("",o.lcZ(6,3,e.networkInfo.total_network_capacity)," Sats"),o.xp6(6),o.Oqu(o.lcZ(12,5,e.networkInfo.num_nodes)),o.xp6(6),o.Oqu(o.lcZ(18,7,e.networkInfo.num_channels))}}function bm(e,t){if(1&e&&(o.TgZ(0,"div",36),o.TgZ(1,"div"),o.TgZ(2,"h4",37),o._uU(3,"Max Channel Size"),o.qZA(),o.TgZ(4,"div",38),o._uU(5),o.ALo(6,"number"),o.qZA(),o.qZA(),o.TgZ(7,"div"),o.TgZ(8,"h4",37),o._uU(9,"Avg Channel Size"),o.qZA(),o.TgZ(10,"div",38),o._uU(11),o.ALo(12,"number"),o.qZA(),o.qZA(),o.TgZ(13,"div"),o.TgZ(14,"h4",37),o._uU(15,"Min Channel Size"),o.qZA(),o.TgZ(16,"span",38),o._uU(17),o.ALo(18,"number"),o.qZA(),o.qZA(),o.qZA()),2&e){const e=o.oxw();o.xp6(5),o.Oqu(o.lcZ(6,3,e.networkInfo.max_channel_size)),o.xp6(6),o.Oqu(o.lcZ(12,5,e.networkInfo.avg_channel_size)),o.xp6(6),o.Oqu(o.lcZ(18,7,e.networkInfo.min_channel_size))}}function wm(e,t){if(1&e&&(o.TgZ(0,"div",36),o.TgZ(1,"div"),o.TgZ(2,"h4",37),o._uU(3,"Max Out Degree"),o.qZA(),o.TgZ(4,"div",38),o._uU(5),o.ALo(6,"number"),o.qZA(),o.qZA(),o.TgZ(7,"div"),o.TgZ(8,"h4",37),o._uU(9,"Avg Out Degree"),o.qZA(),o.TgZ(10,"div",38),o._uU(11),o.ALo(12,"number"),o.qZA(),o.qZA(),o.TgZ(13,"div",39),o._UZ(14,"h4",37),o._UZ(15,"span",38),o.qZA(),o.qZA()),2&e){const e=o.oxw();o.xp6(5),o.Oqu(o.lcZ(6,2,e.networkInfo.max_out_degree)),o.xp6(6),o.Oqu(o.xi3(12,4,e.networkInfo.avg_out_degree,"1.0-2"))}}const _m=function(e){return{"mt-1":e}};let vm=(()=>{class e{constructor(e,t,n){this.logger=e,this.commonService=t,this.store=n,this.faProjectDiagram=g.o4t,this.faBolt=g.BDt,this.faServer=g.xf3,this.faNetworkWired=g.kXW,this.selNode={},this.information={},this.channelsStatus={},this.networkInfo={},this.networkCards=[],this.nodeCards=[],this.screenSize="",this.screenSizeEnum=f.cu,this.userPersonaEnum=f.ol,this.errorMessages=["","","","",""],this.apisCallStatus=null,this.apiCallStatusEnum=f.Bn,this.unSubs=[new p.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===f.cu.XS?(this.networkCards=[{id:"general",cols:3,rows:1},{id:"channels",cols:3,rows:1},{id:"degrees",cols:3,rows:1}],this.nodeCards=[{id:"node",icon:this.faServer,title:"Node Information",cols:3,rows:1},{id:"status",icon:this.faNetworkWired,title:"Channels",cols:3,rows:1},{id:"fee",icon:this.faBolt,title:"Routing Fee",cols:3,rows:1}]):(this.networkCards=[{id:"general",cols:1,rows:1},{id:"channels",cols:1,rows:1},{id:"degrees",cols:1,rows:1}],this.nodeCards=[{id:"node",icon:this.faServer,title:"Node Information",cols:1,rows:1},{id:"status",icon:this.faNetworkWired,title:"Channels",cols:1,rows:1},{id:"fee",icon:this.faBolt,title:"Routing Fee",cols:1,rows:1}])}ngOnInit(){this.store.select("lnd").pipe((0,d.R)(this.unSubs[0])).subscribe(e=>{this.errorMessages=["","","","",""],this.apisCallStatus=e.apisCallStatus,e.apisCallStatus.FetchInfo.status===f.Bn.ERROR&&(this.errorMessages[0]="object"==typeof this.apisCallStatus.FetchInfo.message?JSON.stringify(this.apisCallStatus.FetchInfo.message):this.apisCallStatus.FetchInfo.message),e.apisCallStatus.FetchNetwork.status===f.Bn.ERROR&&(this.errorMessages[1]="object"==typeof this.apisCallStatus.FetchNetwork.message?JSON.stringify(this.apisCallStatus.FetchNetwork.message):this.apisCallStatus.FetchNetwork.message),e.apisCallStatus.FetchFees.status===f.Bn.ERROR&&(this.errorMessages[2]="object"==typeof this.apisCallStatus.FetchFees.message?JSON.stringify(this.apisCallStatus.FetchFees.message):this.apisCallStatus.FetchFees.message),e.apisCallStatus.FetchAllChannels.status===f.Bn.ERROR&&(this.errorMessages[3]="object"==typeof this.apisCallStatus.FetchAllChannels.message?JSON.stringify(this.apisCallStatus.FetchAllChannels.message):this.apisCallStatus.FetchAllChannels.message),e.apisCallStatus.FetchPendingChannels.status===f.Bn.ERROR&&(this.errorMessages[4]="object"==typeof this.apisCallStatus.FetchPendingChannels.message?JSON.stringify(this.apisCallStatus.FetchPendingChannels.message):this.apisCallStatus.FetchPendingChannels.message),this.selNode=e.nodeSettings,this.information=e.information,this.networkInfo=e.networkInfo,this.fees=e.fees,this.channelsStatus={active:{channels:e.numberOfActiveChannels,capacity:e.totalCapacityActive},inactive:{channels:e.numberOfInactiveChannels,capacity:e.totalCapacityInactive},pending:{channels:e.numberOfPendingChannels.open.num_channels,capacity:e.numberOfPendingChannels.open.limbo_balance},closing:{channels:e.numberOfPendingChannels.closing.num_channels+e.numberOfPendingChannels.force_closing.num_channels+e.numberOfPendingChannels.waiting_close.num_channels,capacity:e.numberOfPendingChannels.total_limbo_balance}},this.logger.info(e)})}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(Z.mQ),o.Y36(C.v),o.Y36(y.yh))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-network-info"]],decls:16,vars:6,consts:[["fxLayout","column","fxLayoutAlign","space-between stretch",1,"mb-4"],["cols","3","rowHeight","330px",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start end",1,"page-title-container",3,"ngClass"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["cols","3","rowHeight","250px"],["fxLayout","row",3,"colspan","rowspan",4,"ngFor","ngForOf"],["errorBlock",""],["generalBlock",""],["channelsBlock",""],["degreesBlock",""],["cols","3","rowHeight","330px"],["class","node-grid-tile",3,"colspan","rowspan",4,"ngFor","ngForOf"],[1,"node-grid-tile",3,"colspan","rowspan"],["fxLayout","column","fxLayoutAlign","stretch start","fxFlex","100",1,"h-100"],["fxLayout","row","fxLayoutAlign","start start",1,"w-100"],["fxLayout","row","fxLayoutAlign","start start",1,"page-title-container"],[1,"mr-1",3,"icon"],["fxLayout","column","fxLayoutAlign","stretch center","fxLayout.gt-sm","row","fxLayoutAlign.gt-sm","center stretch",1,"w-100","h-93"],["fxLayout","row","fxFlex","95","fxLayoutAlign","start stretch",1,"dashboard-card","w-96","h-93"],["fxLayout","column","fxFlex","100",3,"ngClass"],["mode","indeterminate",4,"ngIf"],["fxLayout","column","fxFlex","100",3,"ngSwitch"],["fxFlex","100",3,"information","showColorFieldSeparately",4,"ngSwitchCase"],["fxFlex","100",3,"channelsStatus","errorMessage",4,"ngSwitchCase"],["fxFlex","100",3,"fees","errorMessage",4,"ngSwitchCase"],["mode","indeterminate"],["fxFlex","100",3,"information","showColorFieldSeparately"],["fxFlex","100",3,"channelsStatus","errorMessage"],["fxFlex","100",3,"fees","errorMessage"],["fxLayout","row",3,"colspan","rowspan"],["fxLayout","row","fxFlex","95","fxLayoutAlign","start stretch",1,"dashboard-card","h-93"],["fxFlex","100",4,"ngSwitchCase"],["fxFlex","100"],[4,"ngTemplateOutlet"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between"],[1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],["fxFlex","20"]],template:function(e,t){1&e&&(o.TgZ(0,"div",0),o.YNc(1,dm,2,1,"mat-grid-list",1),o.TgZ(2,"div",2),o._UZ(3,"fa-icon",3),o.TgZ(4,"span",4),o._uU(5,"Network"),o.qZA(),o.qZA(),o.TgZ(6,"mat-grid-list",5),o.YNc(7,Am,8,10,"mat-grid-tile",6),o.qZA(),o.qZA(),o.YNc(8,Cm,3,1,"ng-template",null,7,o.W1O),o.YNc(10,Tm,19,9,"ng-template",null,8,o.W1O),o.YNc(12,bm,19,9,"ng-template",null,9,o.W1O),o.YNc(14,wm,16,7,"ng-template",null,10,o.W1O)),2&e&&(o.xp6(1),o.Q6J("ngIf",t.selNode.userPersona!==t.userPersonaEnum.OPERATOR),o.xp6(1),o.Q6J("ngClass",o.VKq(4,_m,t.screenSize!==t.screenSizeEnum.XS)),o.xp6(1),o.Q6J("icon",t.faProjectDiagram),o.xp6(4),o.Q6J("ngForOf",t.networkCards))},directives:[l.xw,l.Wh,a.O5,a.mk,v.oO,T.BN,b.Il,a.sg,b.DX,l.yH,w.a8,w.dn,a.RF,a.n9,r.pW,U,j,W,a.tP],pipes:[a.JJ],styles:[""]}),e})();function qm(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"div",8),o.NdJ("click",function(){const t=o.CHM(e).$implicit;return o.oxw().activeLink=t.link}),o._uU(1),o.qZA()}if(2&e){const e=t.$implicit,n=o.oxw();o.s9C("routerLink",e.link),o.Q6J("active",n.activeLink===e.link),o.xp6(1),o.Oqu(e.name)}}let Sm=(()=>{class e{constructor(e){this.router=e,this.faDownload=g.q7m,this.links=[{link:"bckup",name:"Backup"},{link:"restore",name:"Restore"}],this.activeLink=this.links[0].link,this.unSubs=[new p.x,new p.x]}ngOnInit(){const e=this.links.find(e=>this.router.url.includes(e.link));this.activeLink=e?e.link:this.links[0].link,this.router.events.pipe((0,d.R)(this.unSubs[0]),(0,h.h)(e=>e instanceof i.Av)).subscribe(e=>{const t=this.links.find(t=>e.urlAfterRedirects.includes(t.link));this.activeLink=t?t.link:this.links[0].link})}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(i.F0))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-backup"]],decls:11,vars:2,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(e,t){1&e&&(o.TgZ(0,"div",0),o._UZ(1,"fa-icon",1),o.TgZ(2,"span",2),o._uU(3,"Channels Backup"),o.qZA(),o.qZA(),o.TgZ(4,"div",3),o.TgZ(5,"mat-card"),o.TgZ(6,"mat-card-content",4),o.TgZ(7,"nav",5),o.YNc(8,qm,2,3,"div",6),o.qZA(),o.TgZ(9,"div",7),o._UZ(10,"router-outlet"),o.qZA(),o.qZA(),o.qZA(),o.qZA()),2&e&&(o.xp6(1),o.Q6J("icon",t.faDownload),o.xp6(7),o.Q6J("ngForOf",t.links))},directives:[l.xw,l.Wh,T.BN,w.a8,w.dn,ge.BU,a.sg,l.yH,i.lC,ge.Nj,i.rH],styles:[""]}),e})();function Fm(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"div",23),o.TgZ(1,"h4",24),o._uU(2),o.qZA(),o.TgZ(3,"div",25),o.TgZ(4,"button",26),o.NdJ("click",function(){return o.CHM(e),o.oxw().onRestoreChannels({})}),o._uU(5,"Restore All"),o.qZA(),o.qZA(),o.qZA()}if(2&e){const e=o.oxw();o.xp6(2),o.hij("Restore folder location: ",e.selNode.channelBackupPath,"/restore")}}function Lm(e,t){if(1&e&&(o.TgZ(0,"div",27),o.TgZ(1,"h4",24),o._uU(2),o.qZA(),o.TgZ(3,"h4",28),o._uU(4,"All channel backup file not found! To perform channel restoration, channel backup file/s must be placed at the above location."),o.qZA(),o.qZA()),2&e){const e=o.oxw();o.xp6(2),o.hij("Restore folder location: ",e.selNode.channelBackupPath,"/restore")}}function km(e,t){if(1&e&&(o.TgZ(0,"div",27),o.TgZ(1,"h4",24),o._uU(2),o.qZA(),o.qZA()),2&e){const e=o.oxw();o.xp6(2),o.hij("Restore folder location: ",e.selNode.channelBackupPath,"/restore")}}function Nm(e,t){1&e&&o._UZ(0,"mat-progress-bar",29)}function Um(e,t){1&e&&(o.TgZ(0,"th",30),o._uU(1," Channel Point "),o.qZA())}const Im=function(e){return{"max-width":e}};function Om(e,t){if(1&e&&(o.TgZ(0,"td",31),o._uU(1),o.qZA()),2&e){const e=t.$implicit,n=o.oxw();o.Q6J("ngStyle",o.VKq(2,Im,n.screenSize===n.screenSizeEnum.XS?"10rem":"45rem")),o.xp6(1),o.Oqu(null==e?null:e.channel_point)}}function Jm(e,t){1&e&&(o.TgZ(0,"th",32),o.TgZ(1,"span",33),o._uU(2,"Actions"),o.qZA(),o.qZA())}function Dm(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"td",34),o.TgZ(1,"span",33),o.TgZ(2,"button",35),o.NdJ("click",function(){const t=o.CHM(e).$implicit;return o.oxw().onRestoreChannels(t)}),o._uU(3,"Restore"),o.qZA(),o.qZA(),o.qZA()}}function Rm(e,t){1&e&&(o.TgZ(0,"p"),o._uU(1,"No singular channel backups available."),o.qZA())}function Mm(e,t){if(1&e&&(o.TgZ(0,"td",36),o.YNc(1,Rm,2,0,"p",37),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Q6J("ngIf",!e.channels||!e.channels.data||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)}}const Em=function(e){return{"display-none":e}};function Qm(e,t){if(1&e&&o._UZ(0,"tr",38),2&e){const e=o.oxw();o.Q6J("ngClass",o.VKq(1,Em,e.channels&&e.channels.data&&(null==e.channels||null==e.channels.data?null:e.channels.data.length)>0))}}function Ym(e,t){1&e&&o._UZ(0,"tr",39)}function Pm(e,t){1&e&&o._UZ(0,"tr",40)}const Bm=function(e){return{"overflow-auto error-border":e,"overflow-auto":!0}},Gm=function(){return["no_channel"]};let Hm=(()=>{class e{constructor(e,t,n,a){this.logger=e,this.store=t,this.lndEffects=n,this.commonService=a,this.pageSize=f.IV,this.pageSizeOptions=f.TJ,this.selNode={},this.displayedColumns=["channel_point","actions"],this.channelsData=[],this.allRestoreExists=!1,this.flgLoading=[!0],this.flgSticky=!1,this.screenSize="",this.screenSizeEnum=f.cu,this.unSubs=[new p.x,new p.x,new p.x,new p.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.dispatch(new x.gL),this.store.select("lnd").pipe((0,d.R)(this.unSubs[0])).subscribe(e=>{this.selNode=e.nodeSettings,this.logger.info(e)}),this.lndEffects.setRestoreChannelList.pipe((0,d.R)(this.unSubs[0])).subscribe(e=>{this.allRestoreExists=e.all_restore_exists,this.channelsData=e.files,this.channelsData.length>0&&this.loadRestoreTable(this.channelsData),("error"!==this.flgLoading[0]||e&&e.files)&&(this.flgLoading[0]=!1),this.logger.info(e)})}ngAfterViewInit(){this.channelsData&&this.channelsData.length>0&&this.loadRestoreTable(this.channelsData)}onRestoreChannels(e){this.store.dispatch(new x.Cd({channelPoint:e.channel_point?e.channel_point:"ALL"}))}applyFilter(e){this.channels.filter=e.value.trim().toLowerCase()}loadRestoreTable(e){this.channels=new Ze.by([...e]),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(e,t)=>e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():e[t]?+e[t]:null,this.channels.filterPredicate=(e,t)=>JSON.stringify(e).toLowerCase().includes(t),this.channels.paginator=this.paginator}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(Z.mQ),o.Y36(y.yh),o.Y36(Ft.l),o.Y36(C.v))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-channel-restore-table"]],viewQuery:function(e,t){if(1&e&&(o.Gf(xe.YE,5),o.Gf(fe.NW,5)),2&e){let e;o.iGM(e=o.CRH())&&(t.sort=e.first),o.iGM(e=o.CRH())&&(t.paginator=e.first)}},features:[o._Bn([{provide:fe.ye,useValue:(0,f.pt)("Channels")}])],decls:24,vars:16,consts:[["fxLayout","column",1,"mt-2"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap",4,"ngIf"],["fxLayout","column","fxLayoutAlign","space-between start","fxLayout.gt-md","row wrap",4,"ngIf"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container","mt-2"],["fxFlex","70"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"keyup"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","channel_point"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","pr-3",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","no_channel"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["fxFlex","100"],["fxLayout","row",1,"mt-2"],["mat-flat-button","","color","primary","tabindex","1",3,"click"],["fxLayout","column","fxLayoutAlign","space-between start","fxLayout.gt-md","row wrap"],["fxFlex","100",1,"mt-1"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"ngStyle"],["mat-header-cell","",1,"pr-3"],["fxLayoutAlign","end center"],["mat-cell",""],["mat-stroked-button","","color","primary","type","button","tabindex","1",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,t){1&e&&(o.TgZ(0,"div",0),o.YNc(1,Fm,6,1,"div",1),o.YNc(2,Lm,5,1,"div",2),o.YNc(3,km,3,1,"div",2),o.TgZ(4,"div",3),o._UZ(5,"div",4),o.TgZ(6,"mat-form-field",5),o.TgZ(7,"input",6),o.NdJ("keyup",function(e){return t.applyFilter(e.target)}),o.qZA(),o.qZA(),o.qZA(),o.TgZ(8,"div",7),o.YNc(9,Nm,1,0,"mat-progress-bar",8),o.TgZ(10,"table",9,10),o.ynx(12,11),o.YNc(13,Um,2,0,"th",12),o.YNc(14,Om,2,4,"td",13),o.BQk(),o.ynx(15,14),o.YNc(16,Jm,3,0,"th",15),o.YNc(17,Dm,4,0,"td",16),o.BQk(),o.ynx(18,17),o.YNc(19,Mm,2,1,"td",18),o.BQk(),o.YNc(20,Qm,1,3,"tr",19),o.YNc(21,Ym,1,0,"tr",20),o.YNc(22,Pm,1,0,"tr",21),o.qZA(),o.qZA(),o._UZ(23,"mat-paginator",22),o.qZA()),2&e&&(o.xp6(1),o.Q6J("ngIf",t.allRestoreExists),o.xp6(1),o.Q6J("ngIf",!t.allRestoreExists&&(!t.channels||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<=0)),o.xp6(1),o.Q6J("ngIf",!t.allRestoreExists&&t.channels&&(null==t.channels||null==t.channels.data?null:t.channels.data.length)&&(null==t.channels||null==t.channels.data?null:t.channels.data.length)>0),o.xp6(6),o.Q6J("ngIf",!0===t.flgLoading[0]),o.xp6(1),o.Q6J("dataSource",t.channels)("ngClass",o.VKq(13,Bm,"error"===t.flgLoading[0])),o.xp6(10),o.Q6J("matFooterRowDef",o.DdM(15,Gm)),o.xp6(1),o.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),o.xp6(1),o.Q6J("matRowDefColumns",t.displayedColumns),o.xp6(1),o.Q6J("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS))},directives:[l.xw,a.O5,l.Wh,l.yH,D.KE,Ce.Nt,E.$V,Ze.BZ,xe.YE,a.mk,v.oO,Ze.w1,Ze.fO,Ze.Dz,Ze.mD,Ze.Ke,Ze.as,Ze.nj,fe.NW,q.lW,r.pW,Ze.ge,xe.nU,Ze.ev,a.PC,v.Zl,Ze.yh,Ze.Q2,Ze.XQ,Ze.Gk],styles:[".mat-column-channel_point[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),e})();function zm(e,t){1&e&&o._UZ(0,"mat-progress-bar",31)}function Vm(e,t){1&e&&(o.TgZ(0,"th",32),o._uU(1," Channel Point "),o.qZA())}const Wm=function(e){return{"max-width":e}};function Xm(e,t){if(1&e&&(o.TgZ(0,"td",33),o._uU(1),o.qZA()),2&e){const e=t.$implicit,n=o.oxw();o.Q6J("ngStyle",o.VKq(2,Wm,n.screenSize===n.screenSizeEnum.XS?"10rem":"28rem")),o.xp6(1),o.Oqu(null==e?null:e.channel_point)}}function $m(e,t){1&e&&(o.TgZ(0,"th",34),o.TgZ(1,"span",35),o._uU(2,"Actions"),o.qZA(),o.qZA())}function jm(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"td",36),o.TgZ(1,"div",37),o.TgZ(2,"mat-select",38),o._UZ(3,"mat-select-trigger"),o.TgZ(4,"mat-option",39),o.NdJ("click",function(t){const n=o.CHM(e).$implicit;return o.oxw().onChannelClick(n,t)}),o._uU(5,"View Info"),o.qZA(),o.TgZ(6,"mat-option",39),o.NdJ("click",function(){const t=o.CHM(e).$implicit;return o.oxw().onBackupChannels(t)}),o._uU(7,"Backup"),o.qZA(),o.TgZ(8,"mat-option",39),o.NdJ("click",function(){const t=o.CHM(e).$implicit;return o.oxw().onDownloadBackup(t)}),o._uU(9,"Download Backup"),o.qZA(),o.TgZ(10,"mat-option",39),o.NdJ("click",function(){const t=o.CHM(e).$implicit;return o.oxw().onVerifyChannels(t)}),o._uU(11,"Verify"),o.qZA(),o.qZA(),o.qZA(),o.qZA()}}function Km(e,t){1&e&&(o.TgZ(0,"p"),o._uU(1,"No channel available."),o.qZA())}function eg(e,t){1&e&&(o.TgZ(0,"p"),o._uU(1,"Getting channels..."),o.qZA())}function tg(e,t){if(1&e&&(o.TgZ(0,"p"),o._uU(1),o.qZA()),2&e){const e=o.oxw(2);o.xp6(1),o.Oqu(e.errorMessage)}}function ng(e,t){if(1&e&&(o.TgZ(0,"td",40),o.YNc(1,Km,2,0,"p",41),o.YNc(2,eg,2,0,"p",41),o.YNc(3,tg,2,1,"p",41),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Q6J("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.FetchAllChannels.status)===e.apiCallStatusEnum.COMPLETED),o.xp6(1),o.Q6J("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.FetchAllChannels.status)===e.apiCallStatusEnum.INITIATED),o.xp6(1),o.Q6J("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.FetchAllChannels.status)===e.apiCallStatusEnum.ERROR)}}const ag=function(e){return{"display-none":e}};function ig(e,t){if(1&e&&o._UZ(0,"tr",42),2&e){const e=o.oxw();o.Q6J("ngClass",o.VKq(1,ag,(null==e.channels?null:e.channels.data)&&(null==e.channels||null==e.channels.data?null:e.channels.data.length)>0))}}function sg(e,t){1&e&&o._UZ(0,"tr",43)}function og(e,t){1&e&&o._UZ(0,"tr",44)}const lg=function(e){return{"overflow-auto error-border":e,"overflow-auto":!0}},rg=function(){return["no_channel"]};let cg=(()=>{class e{constructor(e,t,n,a){this.logger=e,this.store=t,this.actions=n,this.commonService=a,this.faInfoCircle=g.sqG,this.faExclamationTriangle=g.eHv,this.faArchive=g.N2j,this.pageSize=f.IV,this.pageSizeOptions=f.TJ,this.selNode={},this.displayedColumns=["channel_point","actions"],this.channelsData=[],this.flgSticky=!1,this.screenSize="",this.screenSizeEnum=f.cu,this.errorMessage="",this.apisCallStatus=null,this.apiCallStatusEnum=f.Bn,this.unSubs=[new p.x,new p.x,new p.x,new p.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select("lnd").pipe((0,d.R)(this.unSubs[0])).subscribe(e=>{this.errorMessage="",this.apisCallStatus=e.apisCallStatus,e.apisCallStatus.FetchAllChannels.status===f.Bn.ERROR&&(this.errorMessage="object"==typeof this.apisCallStatus.FetchAllChannels.message?JSON.stringify(this.apisCallStatus.FetchAllChannels.message):this.apisCallStatus.FetchAllChannels.message),this.selNode=e.nodeSettings,this.channelsData=e.allChannels,this.channelsData.length>0&&this.loadBackupTable(this.channelsData),this.logger.info(e)}),this.actions.pipe((0,d.R)(this.unSubs[1]),(0,h.h)(e=>e.type===x.P2||e.type===ee.BQ)).subscribe(e=>{e.type===x.P2&&(this.selectedChannel=null),e.type===ee.BQ&&(this.commonService.downloadFile(e.payload,"channel-"+(this.selectedChannel.channel_point?this.selectedChannel.channel_point:"all"),".bak",".bak"),this.selectedChannel=null)})}ngAfterViewInit(){this.channelsData.length>0&&this.loadBackupTable(this.channelsData)}onBackupChannels(e){this.store.dispatch(new x.FN({uiMessage:f.m6.BACKUP_CHANNEL,channelPoint:e.channel_point?e.channel_point:"ALL",showMessage:""}))}onVerifyChannels(e){this.store.dispatch(new x.gf({channelPoint:e.channel_point?e.channel_point:"ALL"}))}onDownloadBackup(e){this.selectedChannel=e,this.store.dispatch(new ee.nw({channelPoint:e.channel_point?e.channel_point:"all"}))}onChannelClick(e,t){this.store.dispatch(new ee.wu({data:{channel:e,showCopy:!1,component:Si}}))}applyFilter(e){this.channels.filter=e.value.trim().toLowerCase()}loadBackupTable(e){this.channels=new Ze.by(e?[...e]:[]),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(e,t)=>e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():e[t]?+e[t]:null,this.channels.paginator=this.paginator,this.channels.filterPredicate=(e,t)=>((e.active?"active":"inactive")+(e.channel_point?e.channel_point.toLowerCase():"")+(e.chan_id?e.chan_id.toLowerCase():"")+(e.remote_pubkey?e.remote_pubkey.toLowerCase():"")+(e.remote_alias?e.remote_alias.toLowerCase():"")+(e.capacity?e.capacity:"")+(e.local_balance?e.local_balance:"")+(e.remote_balance?e.remote_balance:"")+(e.total_satoshis_sent?e.total_satoshis_sent:"")+(e.total_satoshis_received?e.total_satoshis_received:"")+(e.commit_fee?e.commit_fee:"")+(e.private?"private":"public")).includes(t)}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(Z.mQ),o.Y36(y.yh),o.Y36(A.eX),o.Y36(C.v))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-channel-backup-table"]],viewQuery:function(e,t){if(1&e&&(o.Gf(xe.YE,5),o.Gf(fe.NW,5)),2&e){let e;o.iGM(e=o.CRH())&&(t.sort=e.first),o.iGM(e=o.CRH())&&(t.paginator=e.first)}},features:[o._Bn([{provide:fe.ye,useValue:(0,f.pt)("Channels")}])],decls:42,vars:17,consts:[["fxLayout","column"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["fxFlex","100",1,"alert","alert-info"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","1",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","2",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","3",3,"click"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container","mt-2"],["fxFlex","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"keyup"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","channel_point"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","pr-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_channel"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"ngStyle"],["mat-header-cell","",1,"pr-3"],["fxLayoutAlign","end center"],["mat-cell","","fxLayoutAlign","end center"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,t){1&e&&(o.TgZ(0,"div",0),o.TgZ(1,"div",1),o.TgZ(2,"div",2),o._UZ(3,"fa-icon",3),o.TgZ(4,"span"),o._uU(5,"Save your backup files in a redundant location."),o.qZA(),o.qZA(),o.TgZ(6,"div",4),o._UZ(7,"fa-icon",3),o.TgZ(8,"span"),o.TgZ(9,"strong"),o._uU(10,"Backup Folder Location: "),o.qZA(),o._uU(11),o.qZA(),o.qZA(),o.TgZ(12,"div",5),o.TgZ(13,"button",6),o.NdJ("click",function(){return t.onVerifyChannels({})}),o._uU(14,"Verify All"),o.qZA(),o.TgZ(15,"button",7),o.NdJ("click",function(){return t.onBackupChannels({})}),o._uU(16,"Backup All"),o.qZA(),o.TgZ(17,"button",8),o.NdJ("click",function(){return t.onDownloadBackup({})}),o._uU(18,"Download Backup"),o.qZA(),o.qZA(),o.qZA(),o.TgZ(19,"div",9),o.TgZ(20,"div",10),o._UZ(21,"fa-icon",11),o.TgZ(22,"span",12),o._uU(23,"Backups"),o.qZA(),o.qZA(),o.TgZ(24,"mat-form-field",13),o.TgZ(25,"input",14),o.NdJ("keyup",function(e){return t.applyFilter(e.target)}),o.qZA(),o.qZA(),o.qZA(),o.TgZ(26,"div",15),o.YNc(27,zm,1,0,"mat-progress-bar",16),o.TgZ(28,"table",17,18),o.ynx(30,19),o.YNc(31,Vm,2,0,"th",20),o.YNc(32,Xm,2,4,"td",21),o.BQk(),o.ynx(33,22),o.YNc(34,$m,3,0,"th",23),o.YNc(35,jm,12,0,"td",24),o.BQk(),o.ynx(36,25),o.YNc(37,ng,4,3,"td",26),o.BQk(),o.YNc(38,ig,1,3,"tr",27),o.YNc(39,sg,1,0,"tr",28),o.YNc(40,og,1,0,"tr",29),o.qZA(),o.qZA(),o._UZ(41,"mat-paginator",30),o.qZA()),2&e&&(o.xp6(3),o.Q6J("icon",t.faExclamationTriangle),o.xp6(4),o.Q6J("icon",t.faInfoCircle),o.xp6(4),o.hij("",t.selNode.channelBackupPath,"."),o.xp6(10),o.Q6J("icon",t.faArchive),o.xp6(6),o.Q6J("ngIf",(null==t.apisCallStatus?null:t.apisCallStatus.FetchAllChannels.status)===t.apiCallStatusEnum.INITIATED),o.xp6(1),o.Q6J("dataSource",t.channels)("ngClass",o.VKq(14,lg,""!==t.errorMessage)),o.xp6(10),o.Q6J("matFooterRowDef",o.DdM(16,rg)),o.xp6(1),o.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),o.xp6(1),o.Q6J("matRowDefColumns",t.displayedColumns),o.xp6(1),o.Q6J("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS))},directives:[l.xw,l.Wh,l.yH,T.BN,q.lW,D.KE,Ce.Nt,E.$V,a.O5,Ze.BZ,xe.YE,a.mk,v.oO,Ze.w1,Ze.fO,Ze.Dz,Ze.mD,Ze.Ke,Ze.as,Ze.nj,fe.NW,r.pW,Ze.ge,xe.nU,Ze.ev,a.PC,v.Zl,we.gD,we.$L,ve.ey,Ze.yh,Ze.Q2,Ze.XQ,Ze.Gk],styles:[".mat-column-channel_point[_ngcontent-%COMP%]{flex:1 1 70%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),e})();function ug(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"div",8),o.NdJ("click",function(){const t=o.CHM(e).$implicit;return o.oxw().activeLink=t.link}),o._uU(1),o.qZA()}if(2&e){const e=t.$implicit,n=o.oxw();o.s9C("routerLink",e.link),o.Q6J("active",n.activeLink===e.link),o.xp6(1),o.Oqu(e.name)}}let pg=(()=>{class e{constructor(e){this.router=e,this.faUserCheck=g.hkK,this.links=[{link:"sign",name:"Sign"},{link:"verify",name:"Verify"}],this.activeLink=this.links[0].link,this.unSubs=[new p.x,new p.x]}ngOnInit(){const e=this.links.find(e=>this.router.url.includes(e.link));this.activeLink=e?e.link:this.links[0].link,this.router.events.pipe((0,d.R)(this.unSubs[0]),(0,h.h)(e=>e instanceof i.Av)).subscribe(e=>{const t=this.links.find(t=>e.urlAfterRedirects.includes(t.link));this.activeLink=t?t.link:this.links[0].link})}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(i.F0))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-sign-verify-message"]],decls:11,vars:2,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(e,t){1&e&&(o.TgZ(0,"div",0),o._UZ(1,"fa-icon",1),o.TgZ(2,"span",2),o._uU(3,"Sign/Verify Message"),o.qZA(),o.qZA(),o.TgZ(4,"div",3),o.TgZ(5,"mat-card"),o.TgZ(6,"mat-card-content",4),o.TgZ(7,"nav",5),o.YNc(8,ug,2,3,"div",6),o.qZA(),o.TgZ(9,"div",7),o._UZ(10,"router-outlet"),o.qZA(),o.qZA(),o.qZA(),o.qZA()),2&e&&(o.xp6(1),o.Q6J("icon",t.faUserCheck),o.xp6(7),o.Q6J("ngForOf",t.links))},directives:[l.xw,l.Wh,T.BN,w.a8,w.dn,ge.BU,a.sg,l.yH,i.lC,ge.Nj,i.rH],styles:[""]}),e})();function dg(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Message is required."),o.qZA())}let hg=(()=>{class e{constructor(e,t,n){this.dataService=e,this.snackBar=t,this.logger=n,this.message="",this.signedMessage="",this.signature="",this.unSubs=[new p.x,new p.x]}onSign(){if(!this.message||""===this.message)return!0;this.dataService.signMessage(this.message).pipe((0,d.R)(this.unSubs[0])).subscribe(e=>{this.signedMessage=this.message,this.signature=e.signature})}onMessageChange(){this.signedMessage!==this.message&&(this.signature="")}onCopyField(e){this.snackBar.open("Signature copied."),this.logger.info("Copied Text: "+e)}resetData(){this.message="",this.signature="",this.signedMessage=""}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(dt.D),o.Y36(Ai.ux),o.Y36(Z.mQ))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-sign"]],decls:20,vars:5,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["form","ngForm"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start end"],["autoFocus","","matInput","","rows","1","placeholder","Message to sign","required","","tabindex","1","name","message",3,"ngModel","ngModelChange","keyup"],[4,"ngIf"],["fxLayout","row",1,"my-1"],["mat-stroked-button","","color","primary","tabindex","2","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","3","type","submit",3,"click"],[1,"my-2",3,"inset"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",1,"bordered-box","read-only","h-4","padding-gap"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","4","rtlClipboard","","type","button",3,"payload","copied"]],template:function(e,t){1&e&&(o.TgZ(0,"div",0),o.TgZ(1,"form",1,2),o.TgZ(3,"mat-form-field",3),o.TgZ(4,"textarea",4),o.NdJ("ngModelChange",function(e){return t.message=e})("keyup",function(){return t.onMessageChange()}),o.qZA(),o.YNc(5,dg,2,0,"mat-error",5),o.qZA(),o.TgZ(6,"div",6),o.TgZ(7,"button",7),o.NdJ("click",function(){return t.resetData()}),o._uU(8,"Clear Field"),o.qZA(),o.TgZ(9,"button",8),o.NdJ("click",function(){return t.onSign()}),o._uU(10,"Sign"),o.qZA(),o.qZA(),o._UZ(11,"mat-divider",9),o.TgZ(12,"div",10),o.TgZ(13,"p"),o._uU(14,"Generated Signature"),o.qZA(),o.qZA(),o.TgZ(15,"div",11),o._uU(16),o.qZA(),o.TgZ(17,"div",12),o.TgZ(18,"button",13),o.NdJ("copied",function(e){return t.onCopyField(e)}),o._uU(19,"Copy Signature"),o.qZA(),o.qZA(),o.qZA(),o.qZA()),2&e&&(o.xp6(4),o.Q6J("ngModel",t.message),o.xp6(1),o.Q6J("ngIf",!t.message),o.xp6(6),o.Q6J("inset",!0),o.xp6(5),o.Oqu(t.signature),o.xp6(2),o.Q6J("payload",t.signature))},directives:[l.xw,l.yH,l.Wh,Ae._Y,Ae.JL,Ae.F,D.KE,Ce.Nt,Ae.Fj,Te.h,Ae.Q7,Ae.JJ,Ae.On,a.O5,q.lW,M.d,Ci.y,D.TO],styles:[".mat-column-channel_point[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),e})();function mg(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Message is required."),o.qZA())}function gg(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Signature is required."),o.qZA())}function fg(e,t){1&e&&(o.TgZ(0,"p",13),o.TgZ(1,"mat-icon",14),o._uU(2,"close"),o.qZA(),o._uU(3,"Verification failed, please double check message and signature"),o.qZA())}function xg(e,t){1&e&&(o.TgZ(0,"p"),o._uU(1,"Pubkey Used"),o.qZA())}function Zg(e,t){if(1&e&&(o.TgZ(0,"div",20),o.TgZ(1,"p"),o._uU(2),o.qZA(),o.qZA()),2&e){const e=o.oxw(2);o.xp6(2),o.Oqu(null==e.verifyRes?null:e.verifyRes.pubkey)}}function yg(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"div",21),o.TgZ(1,"button",22),o.NdJ("copied",function(t){return o.CHM(e),o.oxw(2).onCopyField(t)}),o._uU(2,"Copy Pubkey"),o.qZA(),o.qZA()}if(2&e){const e=o.oxw(2);o.xp6(1),o.Q6J("payload",null==e.verifyRes?null:e.verifyRes.pubkey)}}function Ag(e,t){if(1&e&&(o.TgZ(0,"div",15),o._UZ(1,"mat-divider",16),o.TgZ(2,"div",17),o.YNc(3,xg,2,0,"p",5),o.qZA(),o.YNc(4,Zg,3,1,"div",18),o.YNc(5,yg,3,1,"div",19),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Q6J("inset",!0),o.xp6(2),o.Q6J("ngIf",e.verifyRes.valid),o.xp6(1),o.Q6J("ngIf",e.verifyRes.valid),o.xp6(1),o.Q6J("ngIf",e.verifyRes.valid)}}let Cg=(()=>{class e{constructor(e,t,n){this.dataService=e,this.snackBar=t,this.logger=n,this.message="",this.verifiedMessage="",this.signature="",this.verifiedSignature="",this.showVerifyStatus=!1,this.verifyRes={pubkey:"",valid:null},this.unSubs=[new p.x,new p.x]}onVerify(){if(!this.message||""===this.message||!this.signature||""===this.signature)return!0;this.dataService.verifyMessage(this.message,this.signature).pipe((0,d.R)(this.unSubs[0])).subscribe(e=>{this.verifyRes=e,this.showVerifyStatus=!0,this.verifiedMessage=this.message,this.verifiedSignature=this.signature})}onChange(){this.verifiedMessage===this.message&&this.verifiedSignature===this.signature||(this.showVerifyStatus=!1,this.verifyRes={pubkey:"",valid:null})}resetData(){this.message="",this.signature="",this.verifyRes=null,this.showVerifyStatus=!1}onCopyField(e){this.snackBar.open("Pubkey copied."),this.logger.info("Copied Text: "+e)}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(dt.D),o.Y36(Ai.ux),o.Y36(Z.mQ))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-verify"]],decls:17,vars:6,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["form","ngForm"],["fxFlex","100","fxLayoutAlign","start end"],["autoFocus","","matInput","","rows","1","placeholder","Message to verify","required","","tabindex","1","name","message",3,"ngModel","ngModelChange","keyup"],[4,"ngIf"],["matInput","","placeholder","Signature provided","name","signature","tabindex","2","required","",3,"ngModel","ngModelChange","keyup"],["sign","ngModel"],["fxFlex","100","class","color-warn","fxLayoutAlign","start center",4,"ngIf"],["fxLayout","row",1,"my-1"],["mat-stroked-button","","color","primary","tabindex","3","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","4","type","submit",3,"click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap",4,"ngIf"],["fxFlex","100","fxLayoutAlign","start center",1,"color-warn"],[1,"mr-1","icon-small"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],[1,"my-2",3,"inset"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start","class","bordered-box read-only h-4 padding-gap",4,"ngIf"],["fxLayout","row","class","mt-2",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start",1,"bordered-box","read-only","h-4","padding-gap"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","5","rtlClipboard","","type","button",3,"payload","copied"]],template:function(e,t){1&e&&(o.TgZ(0,"div",0),o.TgZ(1,"form",1,2),o.TgZ(3,"mat-form-field",3),o.TgZ(4,"textarea",4),o.NdJ("ngModelChange",function(e){return t.message=e})("keyup",function(){return t.onChange()}),o.qZA(),o.YNc(5,mg,2,0,"mat-error",5),o.qZA(),o.TgZ(6,"mat-form-field",3),o.TgZ(7,"input",6,7),o.NdJ("ngModelChange",function(e){return t.signature=e})("keyup",function(){return t.onChange()}),o.qZA(),o.YNc(9,gg,2,0,"mat-error",5),o.qZA(),o.YNc(10,fg,4,0,"p",8),o.TgZ(11,"div",9),o.TgZ(12,"button",10),o.NdJ("click",function(){return t.resetData()}),o._uU(13,"Clear Fields"),o.qZA(),o.TgZ(14,"button",11),o.NdJ("click",function(){return t.onVerify()}),o._uU(15,"Verify"),o.qZA(),o.qZA(),o.YNc(16,Ag,6,4,"div",12),o.qZA(),o.qZA()),2&e&&(o.xp6(4),o.Q6J("ngModel",t.message),o.xp6(1),o.Q6J("ngIf",!t.message),o.xp6(2),o.Q6J("ngModel",t.signature),o.xp6(2),o.Q6J("ngIf",!t.signature),o.xp6(1),o.Q6J("ngIf",t.showVerifyStatus&&!t.verifyRes.valid),o.xp6(6),o.Q6J("ngIf",t.showVerifyStatus&&t.verifyRes.valid))},directives:[l.xw,l.yH,l.Wh,Ae._Y,Ae.JL,Ae.F,D.KE,Ce.Nt,Ae.Fj,Te.h,Ae.Q7,Ae.JJ,Ae.On,a.O5,q.lW,D.TO,S.Hw,M.d,Ci.y],styles:[".mat-column-channel_point[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),e})();var Tg=n(8016),bg=n(6013);const wg=i.Bz.forChild([{path:"",component:u,children:[{path:"",pathMatch:"full",redirectTo:"home"},{path:"home",component:oa,canActivate:[bg.QM]},{path:"wallet",component:uc,canActivate:[bg.a1]},{path:"onchain",component:_h,canActivate:[bg.QM],children:[{path:"",pathMatch:"full",redirectTo:"receive/utxos"},{path:"receive/:selTab",component:Sh,canActivate:[bg.QM]},{path:"send/:selTab",component:sm,data:{sweepAll:!1},canActivate:[bg.QM]},{path:"sweep/:selTab",component:sm,data:{sweepAll:!0},canActivate:[bg.QM]}]},{path:"connections",component:pa,canActivate:[bg.QM],children:[{path:"",pathMatch:"full",redirectTo:"channels"},{path:"channels",component:yi,canActivate:[bg.QM],children:[{path:"",pathMatch:"full",redirectTo:"open"},{path:"open",component:Ws,canActivate:[bg.QM]},{path:"pending",component:Jl,canActivate:[bg.QM]},{path:"closed",component:lr,canActivate:[bg.QM]},{path:"activehtlcs",component:Mr,canActivate:[bg.QM]}]},{path:"peers",component:mi,data:{sweepAll:!1},canActivate:[bg.QM]}]},{path:"transactions",component:dc,canActivate:[bg.QM],children:[{path:"",pathMatch:"full",redirectTo:"payments"},{path:"payments",component:Un,canActivate:[bg.QM]},{path:"invoices",component:ut,canActivate:[bg.QM]},{path:"queryroutes",component:Ic,canActivate:[bg.QM]}]},{path:"messages",component:pg,canActivate:[bg.QM],children:[{path:"",pathMatch:"full",redirectTo:"sign"},{path:"sign",component:hg,canActivate:[bg.QM]},{path:"verify",component:Cg,canActivate:[bg.QM]}]},{path:"channelbackup",component:Sm,canActivate:[bg.QM],children:[{path:"",pathMatch:"full",redirectTo:"bckup"},{path:"bckup",component:cg,canActivate:[bg.QM]},{path:"restore",component:Hm,canActivate:[bg.QM]}]},{path:"routing",component:mu,canActivate:[bg.QM],children:[{path:"",pathMatch:"full",redirectTo:"forwardinghistory"},{path:"forwardinghistory",component:Pu,canActivate:[bg.QM]},{path:"peers",component:Rp,canActivate:[bg.QM]}]},{path:"reports",component:Ep,canActivate:[bg.QM],children:[{path:"",pathMatch:"full",redirectTo:"routingfees"},{path:"routingfees",component:jp,canActivate:[bg.QM]},{path:"transactions",component:ud,canActivate:[bg.QM]}]},{path:"lookups",component:cu,canActivate:[bg.QM]},{path:"network",component:vm,canActivate:[bg.QM]},{path:"**",component:Tg.w},{path:"rates",redirectTo:"network"}]}]);var _g=n(253);let vg=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=o.oAB({type:e,bootstrap:[u]}),e.\u0275inj=o.cJS({providers:[bg.QM],imports:[[a.ez,_g.m,wg]]}),e})()}}]); \ No newline at end of file +(self.webpackChunkrtl=self.webpackChunkrtl||[]).push([[891],{7891:(e,t,n)=>{"use strict";n.r(t),n.d(t,{LNDModule:()=>qg});var a=n(1511),i=n(6853),s=n(2865),o=n(1572),l=n(3722),r=n(5994);function c(e,t){1&e&&o._UZ(0,"mat-progress-bar",3)}let u=(()=>{class e{constructor(e){this.router=e,this.loading=!1,this.router.events.subscribe(e=>{switch(!0){case e instanceof i.OD:this.loading=!0;break;case e instanceof i.m2:case e instanceof i.gk:case e instanceof i.Q3:this.loading=!1}})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(i.F0))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-lnd-root"]],decls:4,vars:1,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"inner-sidenav-content"],["color","primary","mode","indeterminate",4,"ngIf"],["outlet","outlet"],["color","primary","mode","indeterminate"]],template:function(e,t){1&e&&(o.TgZ(0,"div",0),o.YNc(1,c,1,0,"mat-progress-bar",1),o._UZ(2,"router-outlet",null,2),o.qZA()),2&e&&(o.xp6(1),o.Q6J("ngIf",t.loading))},directives:[l.xw,l.yH,l.Wh,a.O5,i.lC,r.pW],styles:[""],data:{animation:[s.g]}}),e})();var p=n(9666),d=n(9568),h=n(8868),m=n(7810),g=n(5291),f=n(9421),x=n(5678),Z=n(3869),y=n(964),A=n(5573),C=n(1084),T=n(7592),b=n(7271),w=n(7439),_=n(8055),v=n(377),q=n(5980),S=n(3691);const F=function(e){return{backgroundColor:e}};function L(e,t){if(1&e&&o._UZ(0,"span",6),2&e){const e=o.oxw();o.Q6J("ngStyle",o.VKq(1,F,null==e.information?null:e.information.color))}}function k(e,t){if(1&e&&(o.TgZ(0,"div"),o.TgZ(1,"h4",1),o._uU(2,"Color"),o.qZA(),o.TgZ(3,"div",2),o._UZ(4,"span",7),o._uU(5),o.ALo(6,"uppercase"),o.qZA(),o.qZA()),2&e){const e=o.oxw();o.xp6(4),o.Q6J("ngStyle",o.VKq(4,F,null==e.information?null:e.information.color)),o.xp6(1),o.hij(" ",o.lcZ(6,2,null==e.information?null:e.information.color)," ")}}function N(e,t){if(1&e&&(o.TgZ(0,"span",2),o._uU(1),o.qZA()),2&e){const e=t.$implicit;o.xp6(1),o.Oqu(e)}}let U=(()=>{class e{constructor(e){this.commonService=e,this.chains=[""]}ngOnChanges(){this.information&&this.information.chains&&this.information.chains.length>0&&(this.chains=[""],this.information.chains.forEach(e=>{this.chains.push(this.commonService.titleCase(e.chain)+" "+this.commonService.titleCase(e.network))}))}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(C.v))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-node-info"]],inputs:{information:"information",showColorFieldSeparately:"showColorFieldSeparately"},features:[o.TTD],decls:17,vars:5,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],[1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],["class","dashboard-node-dot dot",3,"ngStyle",4,"ngIf"],[4,"ngIf"],["class","overflow-wrap dashboard-info-value",4,"ngFor","ngForOf"],[1,"dashboard-node-dot","dot",3,"ngStyle"],[1,"dashboard-node-square",3,"ngStyle"]],template:function(e,t){1&e&&(o.TgZ(0,"div",0),o.TgZ(1,"div"),o.TgZ(2,"h4",1),o._uU(3,"Alias"),o.qZA(),o.TgZ(4,"div",2),o._uU(5),o.YNc(6,L,1,3,"span",3),o.qZA(),o.qZA(),o.YNc(7,k,7,6,"div",4),o.TgZ(8,"div"),o.TgZ(9,"h4",1),o._uU(10,"Implementation"),o.qZA(),o.TgZ(11,"div",2),o._uU(12),o.qZA(),o.qZA(),o.TgZ(13,"div"),o.TgZ(14,"h4",1),o._uU(15,"Chain"),o.qZA(),o.YNc(16,N,2,1,"span",5),o.qZA(),o.qZA()),2&e&&(o.xp6(5),o.hij(" ",null==t.information?null:t.information.alias," "),o.xp6(1),o.Q6J("ngIf",!t.showColorFieldSeparately),o.xp6(1),o.Q6J("ngIf",t.showColorFieldSeparately),o.xp6(5),o.Oqu(null!=t.information&&t.information.lnImplementation||null!=t.information&&t.information.version?(null==t.information?null:t.information.lnImplementation)+" "+(null==t.information?null:t.information.version):""),o.xp6(4),o.Q6J("ngForOf",t.chains))},directives:[l.xw,l.yH,l.Wh,a.O5,a.sg,a.PC,v.Zl],pipes:[a.gd],styles:[""]}),e})();function I(e,t){if(1&e&&(o.TgZ(0,"div",2),o.TgZ(1,"div"),o.TgZ(2,"h4",3),o._uU(3,"Lightning"),o.qZA(),o.TgZ(4,"div",4),o._uU(5),o.ALo(6,"number"),o.qZA(),o._UZ(7,"mat-progress-bar",5),o.qZA(),o.TgZ(8,"div"),o.TgZ(9,"h4",3),o._uU(10,"On-chain"),o.qZA(),o.TgZ(11,"div",4),o._uU(12),o.ALo(13,"number"),o.qZA(),o._UZ(14,"mat-progress-bar",5),o.qZA(),o.TgZ(15,"div"),o.TgZ(16,"h4",3),o._uU(17,"Total"),o.qZA(),o.TgZ(18,"div",4),o._uU(19),o.ALo(20,"number"),o.qZA(),o.qZA(),o.qZA()),2&e){const e=o.oxw();o.xp6(5),o.hij("",o.lcZ(6,5,null==e.balances?null:e.balances.lightning)," Sats"),o.xp6(2),o.s9C("value",(null==e.balances?null:e.balances.lightning)/(null==e.balances?null:e.balances.total)*100),o.xp6(5),o.hij("",o.lcZ(13,7,null==e.balances?null:e.balances.onchain)," Sats"),o.xp6(2),o.s9C("value",(null==e.balances?null:e.balances.onchain)/(null==e.balances?null:e.balances.total)*100),o.xp6(5),o.hij("",o.lcZ(20,9,null==e.balances?null:e.balances.total)," Sats")}}function O(e,t){if(1&e&&(o.TgZ(0,"div",6),o.TgZ(1,"p"),o._uU(2),o.qZA(),o.qZA()),2&e){const e=o.oxw();o.xp6(2),o.Oqu(e.errorMessage)}}let J=(()=>{class e{constructor(){this.balances={onchain:0,lightning:0,total:0}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-balances-info"]],inputs:{balances:"balances",errorMessage:"errorMessage"},decls:3,vars:2,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",4,"ngIf","ngIfElse"],["errorBlock",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayoutAlign","start",1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],["mode","determinate",1,"dashboard-progress-bar",3,"value"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(e,t){if(1&e&&(o.YNc(0,I,21,11,"div",0),o.YNc(1,O,3,1,"ng-template",null,1,o.W1O)),2&e){const e=o.MAs(2);o.Q6J("ngIf"," "===t.errorMessage)("ngIfElse",e)}},directives:[a.O5,l.xw,l.yH,l.Wh,r.pW],pipes:[a.JJ],styles:[""]}),e})();var D=n(6283),R=n(6828),M=n(7679),E=n(7038);function Q(e,t){if(1&e&&(o.TgZ(0,"div",19),o.TgZ(1,"span",20),o._uU(2),o.ALo(3,"slice"),o.qZA(),o.TgZ(4,"div",6),o.TgZ(5,"mat-hint",21),o.TgZ(6,"strong",8),o._uU(7,"Local:"),o.qZA(),o._uU(8),o.ALo(9,"number"),o.qZA(),o.TgZ(10,"mat-hint",22),o._UZ(11,"fa-icon",23),o._uU(12),o.ALo(13,"number"),o.qZA(),o.TgZ(14,"mat-hint",24),o.TgZ(15,"strong",8),o._uU(16,"Remote:"),o.qZA(),o._uU(17),o.ALo(18,"number"),o.qZA(),o.qZA(),o._UZ(19,"mat-progress-bar",25),o.qZA()),2&e){const e=t.$implicit,n=o.oxw(3);o.xp6(1),o.s9C("matTooltip",e.remote_alias||e.remote_pubkey),o.s9C("matTooltipDisabled",(e.remote_alias||e.remote_pubkey).length<26),o.xp6(1),o.AsE("",o.Dn7(3,9,e.remote_alias||e.remote_pubkey,0,24),"",(e.remote_alias||e.remote_pubkey).length>25?"...":"",""),o.xp6(6),o.hij("",o.lcZ(9,13,e.local_balance||0)," Sats"),o.xp6(3),o.Q6J("icon",n.faBalanceScale),o.xp6(1),o.hij(" (",o.lcZ(13,15,e.balancedness||0),") "),o.xp6(5),o.hij("",o.lcZ(18,17,e.remote_balance||0)," Sats"),o.xp6(2),o.s9C("value",e.local_balance&&e.local_balance>0?+e.local_balance/(+e.local_balance+ +e.remote_balance)*100:0)}}function Y(e,t){if(1&e&&(o.TgZ(0,"div",17),o.YNc(1,Q,20,19,"div",18),o.qZA()),2&e){const e=o.oxw(2);o.xp6(1),o.Q6J("ngForOf",e.allChannels)}}function P(e,t){if(1&e&&(o.TgZ(0,"div",3),o.TgZ(1,"div",4),o.TgZ(2,"span",5),o._uU(3,"Total Capacity"),o.qZA(),o.TgZ(4,"div",6),o.TgZ(5,"mat-hint",7),o.TgZ(6,"strong",8),o._uU(7,"Local:"),o.qZA(),o._uU(8),o.ALo(9,"number"),o.qZA(),o.TgZ(10,"mat-hint",9),o._UZ(11,"fa-icon",10),o._uU(12),o.ALo(13,"number"),o.qZA(),o.TgZ(14,"mat-hint",11),o.TgZ(15,"strong",8),o._uU(16,"Remote:"),o.qZA(),o._uU(17),o.ALo(18,"number"),o.qZA(),o.qZA(),o._UZ(19,"mat-progress-bar",12),o.qZA(),o.TgZ(20,"div",13),o._UZ(21,"mat-divider",14),o.qZA(),o.TgZ(22,"div",15),o.YNc(23,Y,2,1,"div",16),o.qZA(),o.qZA()),2&e){const e=o.oxw(),t=o.MAs(2);o.xp6(8),o.hij("",o.lcZ(9,7,(null==e.channelBalances?null:e.channelBalances.localBalance)||0)," Sats"),o.xp6(3),o.Q6J("icon",e.faBalanceScale),o.xp6(1),o.hij(" (",o.lcZ(13,9,(null==e.channelBalances?null:e.channelBalances.balancedness)||0),") "),o.xp6(5),o.hij("",o.lcZ(18,11,(null==e.channelBalances?null:e.channelBalances.remoteBalance)||0)," Sats"),o.xp6(2),o.s9C("value",null!=e.channelBalances&&e.channelBalances.localBalance&&(null==e.channelBalances?null:e.channelBalances.localBalance)>0?+(null==e.channelBalances?null:e.channelBalances.localBalance)/(+(null==e.channelBalances?null:e.channelBalances.localBalance)+ +(null==e.channelBalances?null:e.channelBalances.remoteBalance))*100:0),o.xp6(4),o.Q6J("ngIf",e.allChannels&&e.allChannels.length>0)("ngIfElse",t)}}function B(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"div",26),o._uU(1," No channels available. "),o.TgZ(2,"button",27),o.NdJ("click",function(){return o.CHM(e),o.oxw().goToChannels()}),o._uU(3,"Open Channel"),o.qZA(),o.qZA()}}function G(e,t){if(1&e&&(o.TgZ(0,"div",28),o.TgZ(1,"p"),o._uU(2),o.qZA(),o.qZA()),2&e){const e=o.oxw();o.xp6(2),o.Oqu(e.errorMessage)}}let H=(()=>{class e{constructor(e){this.router=e,this.faBalanceScale=g.DL8,this.faDumbbell=g.FlN,this.sortBy="Balance Score"}goToChannels(){this.router.navigateByUrl("/lnd/connections")}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(i.F0))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-channel-capacity-info"]],inputs:{channelBalances:"channelBalances",allChannels:"allChannels",sortBy:"sortBy",errorMessage:"errorMessage"},decls:5,vars:2,consts:[["fxLayout","column","fxLayoutAlign","space-between stretch","fxFlex","100",4,"ngIf","ngIfElse"],["noChannelBlock",""],["errorBlock",""],["fxLayout","column","fxLayoutAlign","space-between stretch","fxFlex","100"],["fxLayout","column","fxFlex","9","fxLayoutAlign","end start"],[1,"dashboard-capacity-header","this-channel-capacity"],["fxLayout","row","fxLayoutAlign","space-between start",1,"w-100"],["fxFlex","40","fxLayoutAlign","start center",1,"font-size-90"],[1,"font-weight-900","mr-5px"],["fxFlex","20","fxLayoutAlign","center center",1,"font-size-90"],["matTooltip","Balance Score",1,"mr-3px",3,"icon"],["fxFlex","40","fxLayoutAlign","end center",1,"font-size-90"],["mode","determinate","color","accent",1,"dashboard-progress-bar","this-channel-bar",3,"value"],["fxLayout","column","fxFlex","3","fxLayoutAlign","end stretch"],[1,"dashboard-divider"],[1,"channels-capacity-scroll",3,"perfectScrollbar"],["fxLayout","column","fxFlex","100",4,"ngIf","ngIfElse"],["fxLayout","column","fxFlex","100"],["class","mt-2",4,"ngFor","ngForOf"],[1,"mt-2"],[1,"dashboard-capacity-header",3,"matTooltip","matTooltipDisabled"],["fxFlex","40","fxLayoutAlign","start center",1,"font-size-90","color-primary"],["fxFlex","20","fxLayoutAlign","center center",1,"font-size-90","color-primary"],["matTooltip","Balance Score",1,"color-primary","mr-3px",3,"icon"],["fxFlex","40","fxLayoutAlign","end center",1,"font-size-90","color-primary"],["mode","determinate",1,"dashboard-progress-bar",3,"value"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start",1,"mt-1","w-100"],["mat-stroked-button","","color","primary","tabindex","1",3,"click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(e,t){if(1&e&&(o.YNc(0,P,24,13,"div",0),o.YNc(1,B,4,0,"ng-template",null,1,o.W1O),o.YNc(3,G,3,1,"ng-template",null,2,o.W1O)),2&e){const e=o.MAs(4);o.Q6J("ngIf",""===(null==t.errorMessage?null:t.errorMessage.trim()))("ngIfElse",e)}},directives:[a.O5,l.xw,l.Wh,l.yH,D.bx,T.BN,R.gM,r.pW,M.d,E.$V,a.sg,q.lW],pipes:[a.JJ,a.OU],styles:[".channels-capacity-scroll[_ngcontent-%COMP%]{width:100%;height:100%;overflow-y:hidden}"]}),e})();function z(e,t){if(1&e&&(o.TgZ(0,"div",2),o.TgZ(1,"div",3),o.TgZ(2,"div"),o.TgZ(3,"h4",4),o._uU(4,"Daily"),o.qZA(),o.TgZ(5,"div",5),o._uU(6),o.ALo(7,"number"),o.qZA(),o.qZA(),o.TgZ(8,"div"),o.TgZ(9,"h4",4),o._uU(10,"Weekly"),o.qZA(),o.TgZ(11,"div",5),o._uU(12),o.ALo(13,"number"),o.qZA(),o.qZA(),o.TgZ(14,"div"),o.TgZ(15,"h4",4),o._uU(16,"Monthly"),o.qZA(),o.TgZ(17,"div",5),o._uU(18),o.ALo(19,"number"),o.qZA(),o.qZA(),o.TgZ(20,"div",6),o._UZ(21,"h4",7),o._UZ(22,"span",5),o.qZA(),o.qZA(),o.TgZ(23,"div",3),o.TgZ(24,"div"),o.TgZ(25,"h4",4),o._uU(26,"Transactions"),o.qZA(),o.TgZ(27,"div",5),o._uU(28),o.ALo(29,"number"),o.qZA(),o.qZA(),o.TgZ(30,"div"),o.TgZ(31,"h4",4),o._uU(32,"Transactions"),o.qZA(),o.TgZ(33,"div",5),o._uU(34),o.ALo(35,"number"),o.qZA(),o.qZA(),o.TgZ(36,"div"),o.TgZ(37,"h4",4),o._uU(38,"Transactions"),o.qZA(),o.TgZ(39,"div",5),o._uU(40),o.ALo(41,"number"),o.qZA(),o.qZA(),o.TgZ(42,"div",6),o._UZ(43,"h4",7),o._UZ(44,"span",5),o.qZA(),o.qZA(),o.qZA()),2&e){const e=o.oxw();o.xp6(6),o.hij("",o.lcZ(7,6,null==e.fees?null:e.fees.day_fee_sum)," Sats"),o.xp6(6),o.hij("",o.lcZ(13,8,null==e.fees?null:e.fees.week_fee_sum)," Sats"),o.xp6(6),o.hij("",o.lcZ(19,10,null==e.fees?null:e.fees.month_fee_sum)," Sats"),o.xp6(10),o.Oqu(o.lcZ(29,12,null==e.fees?null:e.fees.daily_tx_count)),o.xp6(6),o.Oqu(o.lcZ(35,14,null==e.fees?null:e.fees.weekly_tx_count)),o.xp6(6),o.Oqu(o.lcZ(41,16,null==e.fees?null:e.fees.monthly_tx_count))}}function V(e,t){if(1&e&&(o.TgZ(0,"div",8),o.TgZ(1,"p"),o._uU(2),o.qZA(),o.qZA()),2&e){const e=o.oxw();o.xp6(2),o.Oqu(e.errorMessage)}}let W=(()=>{class e{constructor(){this.totalFees=[{name:"Monthly",value:0},{name:"Weekly",value:0},{name:"Daily",value:0}],this.maxFeeValue=100}ngOnChanges(){if(this.fees.month_fee_sum){this.totalFees=[{name:"Monthly",value:this.fees.month_fee_sum},{name:"Weekly",value:this.fees.week_fee_sum},{name:"Daily ",value:this.fees.day_fee_sum}];const e=Math.ceil(Math.log(this.fees.month_fee_sum+1)/Math.LN10),t=Math.pow(10,e-1);this.maxFeeValue=Math.ceil(this.fees.month_fee_sum/t)*t/5||100,Object.assign(this,this.totalFees)}else this.totalFees=[{name:"Monthly",value:0},{name:"Weekly",value:0},{name:"Daily",value:0}],this.maxFeeValue=100,Object.assign(this,this.totalFees)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-fee-info"]],inputs:{fees:"fees",errorMessage:"errorMessage"},features:[o.TTD],decls:3,vars:2,consts:[["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf","ngIfElse"],["errorBlock",""],["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","column","fxFlex","50","fxLayoutAlign","space-between stretch"],["fxLayoutAlign","start",1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],["fxFlex","20"],[1,"dashboard-info-title"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(e,t){if(1&e&&(o.YNc(0,z,45,18,"div",0),o.YNc(1,V,3,1,"ng-template",null,1,o.W1O)),2&e){const e=o.MAs(2);o.Q6J("ngIf",""===(null==t.errorMessage?null:t.errorMessage.trim()))("ngIfElse",e)}},directives:[a.O5,l.xw,l.yH,l.Wh],pipes:[a.JJ],styles:[""]}),e})();function X(e,t){if(1&e&&(o.TgZ(0,"div",2),o.TgZ(1,"div",3),o.TgZ(2,"div"),o.TgZ(3,"h4",4),o._uU(4,"Active"),o.qZA(),o.TgZ(5,"div",5),o._UZ(6,"span",6),o._uU(7),o.ALo(8,"number"),o.qZA(),o.qZA(),o.TgZ(9,"div"),o.TgZ(10,"h4",4),o._uU(11,"Pending"),o.qZA(),o.TgZ(12,"div",5),o._UZ(13,"span",7),o._uU(14),o.ALo(15,"number"),o.qZA(),o.qZA(),o.TgZ(16,"div"),o.TgZ(17,"h4",4),o._uU(18,"Inactive"),o.qZA(),o.TgZ(19,"div",5),o._UZ(20,"span",8),o._uU(21),o.ALo(22,"number"),o.qZA(),o.qZA(),o.TgZ(23,"div"),o.TgZ(24,"h4",4),o._uU(25,"Closing"),o.qZA(),o.TgZ(26,"div",5),o._UZ(27,"span",9),o._uU(28),o.ALo(29,"number"),o.qZA(),o.qZA(),o.qZA(),o.TgZ(30,"div",3),o.TgZ(31,"div"),o.TgZ(32,"h4",4),o._uU(33,"Capacity"),o.qZA(),o.TgZ(34,"div",5),o._uU(35),o.ALo(36,"number"),o.qZA(),o.qZA(),o.TgZ(37,"div"),o.TgZ(38,"h4",4),o._uU(39,"Capacity"),o.qZA(),o.TgZ(40,"div",5),o._uU(41),o.ALo(42,"number"),o.qZA(),o.qZA(),o.TgZ(43,"div"),o.TgZ(44,"h4",4),o._uU(45,"Capacity"),o.qZA(),o.TgZ(46,"div",5),o._uU(47),o.ALo(48,"number"),o.qZA(),o.qZA(),o.TgZ(49,"div"),o.TgZ(50,"h4",4),o._uU(51,"Capacity"),o.qZA(),o.TgZ(52,"div",5),o._uU(53),o.ALo(54,"number"),o.qZA(),o.qZA(),o.qZA(),o.qZA()),2&e){const e=o.oxw();o.xp6(7),o.Oqu(o.lcZ(8,8,(null==e.channelsStatus||null==e.channelsStatus.active?null:e.channelsStatus.active.channels)||0)),o.xp6(7),o.Oqu(o.lcZ(15,10,(null==e.channelsStatus||null==e.channelsStatus.pending?null:e.channelsStatus.pending.channels)||0)),o.xp6(7),o.Oqu(o.lcZ(22,12,(null==e.channelsStatus||null==e.channelsStatus.inactive?null:e.channelsStatus.inactive.channels)||0)),o.xp6(7),o.Oqu(o.lcZ(29,14,(null==e.channelsStatus||null==e.channelsStatus.closing?null:e.channelsStatus.closing.channels)||0)),o.xp6(7),o.hij("",o.lcZ(36,16,(null==e.channelsStatus||null==e.channelsStatus.active?null:e.channelsStatus.active.capacity)||0)," Sats"),o.xp6(6),o.hij("",o.lcZ(42,18,(null==e.channelsStatus||null==e.channelsStatus.pending?null:e.channelsStatus.pending.capacity)||0)," Sats"),o.xp6(6),o.hij("",o.lcZ(48,20,(null==e.channelsStatus||null==e.channelsStatus.inactive?null:e.channelsStatus.inactive.capacity)||0)," Sats"),o.xp6(6),o.hij("",o.lcZ(54,22,(null==e.channelsStatus||null==e.channelsStatus.closing?null:e.channelsStatus.closing.capacity)||0)," Sats")}}function $(e,t){if(1&e&&(o.TgZ(0,"div",10),o.TgZ(1,"p"),o._uU(2),o.qZA(),o.qZA()),2&e){const e=o.oxw();o.xp6(2),o.Oqu(e.errorMessage)}}let j=(()=>{class e{constructor(){this.channelsStatus={}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-channel-status-info"]],inputs:{channelsStatus:"channelsStatus",errorMessage:"errorMessage"},decls:3,vars:2,consts:[["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf","ngIfElse"],["errorBlock",""],["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","column","fxFlex","50","fxLayoutAlign","space-between stretch"],["fxLayoutAlign","start",1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],[1,"dot","tiny-dot","green"],[1,"dot","tiny-dot","yellow"],[1,"dot","tiny-dot","grey"],[1,"dot","tiny-dot","red"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(e,t){if(1&e&&(o.YNc(0,X,55,24,"div",0),o.YNc(1,$,3,1,"ng-template",null,1,o.W1O)),2&e){const e=o.MAs(2);o.Q6J("ngIf"," "===t.errorMessage)("ngIfElse",e)}},directives:[a.O5,l.xw,l.yH,l.Wh],pipes:[a.JJ],styles:[""]}),e})();var K=n(5028),ee=n(3929),te=n(2969);function ne(e,t){if(1&e&&(o.TgZ(0,"mat-hint",19),o.TgZ(1,"strong",20),o._uU(2,"Capacity: "),o.qZA(),o._uU(3),o.ALo(4,"number"),o.qZA()),2&e){const e=o.oxw().$implicit;o.xp6(3),o.hij("",o.lcZ(4,1,e.remote_balance||0)," Sats")}}function ae(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"button",24),o.NdJ("click",function(){o.CHM(e);const t=o.oxw(2).$implicit;return o.oxw(3).onLoopOut(t)}),o._uU(1,"Loop Out"),o.qZA()}}function ie(e,t){if(1&e&&(o.TgZ(0,"div",21),o.TgZ(1,"mat-hint",22),o.TgZ(2,"strong",20),o._uU(3,"Capacity: "),o.qZA(),o._uU(4),o.ALo(5,"number"),o.qZA(),o.YNc(6,ae,2,0,"button",23),o.qZA()),2&e){const e=o.oxw().$implicit,t=o.oxw(3);o.xp6(4),o.hij("",o.lcZ(5,2,e.local_balance||0)," Sats"),o.xp6(2),o.Q6J("ngIf",t.showLoop)}}function se(e,t){if(1&e&&o._UZ(0,"mat-progress-bar",25),2&e){const e=o.oxw().$implicit,t=o.oxw(3);o.s9C("value",t.totalLiquidity>0?(+e.remote_balance||0)/t.totalLiquidity*100:0)}}function oe(e,t){if(1&e&&o._UZ(0,"mat-progress-bar",25),2&e){const e=o.oxw().$implicit,t=o.oxw(3);o.s9C("value",t.totalLiquidity>0?(+e.local_balance||0)/t.totalLiquidity*100:0)}}function le(e,t){if(1&e&&(o.TgZ(0,"div",13),o.TgZ(1,"span",14),o._uU(2),o.ALo(3,"slice"),o.qZA(),o.TgZ(4,"div",15),o.YNc(5,ne,5,3,"mat-hint",16),o.YNc(6,ie,7,4,"div",17),o.qZA(),o.YNc(7,se,1,1,"mat-progress-bar",18),o.YNc(8,oe,1,1,"mat-progress-bar",18),o.qZA()),2&e){const e=t.$implicit,n=o.oxw(3);o.xp6(1),o.s9C("matTooltip",e.remote_alias||e.remote_pubkey),o.s9C("matTooltipDisabled",(e.remote_alias||e.remote_pubkey).length<26),o.xp6(1),o.AsE("",o.Dn7(3,8,e.remote_alias||e.remote_pubkey,0,24),"",(e.remote_alias||e.remote_pubkey).length>25?"...":"",""),o.xp6(3),o.Q6J("ngIf","In"===n.direction),o.xp6(1),o.Q6J("ngIf","Out"===n.direction),o.xp6(1),o.Q6J("ngIf","In"===n.direction),o.xp6(1),o.Q6J("ngIf","Out"===n.direction)}}function re(e,t){if(1&e&&(o.TgZ(0,"div",11),o.YNc(1,le,9,12,"div",12),o.qZA()),2&e){const e=o.oxw(2);o.xp6(1),o.Q6J("ngForOf",e.allChannels)}}const ce=function(e,t,n){return{"mb-4":e,"mb-2":t,"mb-1":n}};function ue(e,t){if(1&e&&(o.TgZ(0,"div",3),o.TgZ(1,"div",4),o.TgZ(2,"span",5),o._uU(3,"Total Capacity"),o.qZA(),o.TgZ(4,"mat-hint",6),o._uU(5),o.ALo(6,"number"),o.qZA(),o._UZ(7,"mat-progress-bar",7),o.qZA(),o.TgZ(8,"div",8),o._UZ(9,"mat-divider",9),o.qZA(),o.YNc(10,re,2,1,"div",10),o.qZA()),2&e){const e=o.oxw(),t=o.MAs(2);o.Q6J("ngClass",o.kEZ(6,ce,e.screenSize===e.screenSizeEnum.XS||e.screenSize===e.screenSizeEnum.SM,e.screenSize===e.screenSizeEnum.MD,e.screenSize===e.screenSizeEnum.LG||e.screenSize===e.screenSizeEnum.XL)),o.xp6(5),o.hij("",o.lcZ(6,4,e.totalLiquidity)," Sats"),o.xp6(5),o.Q6J("ngIf",e.allChannels&&e.allChannels.length>0)("ngIfElse",t)}}function pe(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"button",28),o.NdJ("click",function(){return o.CHM(e),o.oxw(2).goToChannels()}),o._uU(1,"Open Channel"),o.qZA()}}function de(e,t){if(1&e&&(o.TgZ(0,"div",26),o._uU(1," No channels available. "),o.YNc(2,pe,2,0,"button",27),o.qZA()),2&e){const e=o.oxw();o.xp6(2),o.Q6J("ngIf","Out"===e.direction)}}function he(e,t){if(1&e&&(o.TgZ(0,"div",29),o.TgZ(1,"p"),o._uU(2),o.qZA(),o.qZA()),2&e){const e=o.oxw();o.xp6(2),o.Oqu(e.errorMessage)}}let me=(()=>{class e{constructor(e,t,n,a){this.router=e,this.loopService=t,this.commonService=n,this.store=a,this.targetConf=6,this.screenSize="",this.screenSizeEnum=f.cu,this.unSubs=[new p.x,new p.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.store.select("lnd").pipe((0,d.R)(this.unSubs[0])).subscribe(e=>{this.showLoop=!(!e.nodeSettings.swapServerUrl||""===e.nodeSettings.swapServerUrl.trim())})}goToChannels(){this.router.navigateByUrl("/lnd/connections")}onLoopOut(e){this.loopService.getLoopOutTermsAndQuotes(this.targetConf).pipe((0,d.R)(this.unSubs[1])).subscribe(t=>{this.store.dispatch(new ee.wu({minHeight:"56rem",data:{channel:e,minQuote:t[0],maxQuote:t[1],direction:f.$I.LOOP_OUT,component:K.a}}))})}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(i.F0),o.Y36(te.W),o.Y36(C.v),o.Y36(y.yh))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-channel-liquidity-info"]],inputs:{direction:"direction",totalLiquidity:"totalLiquidity",allChannels:"allChannels",errorMessage:"errorMessage"},decls:5,vars:2,consts:[["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",3,"ngClass",4,"ngIf","ngIfElse"],["noChannelBlock",""],["errorBlock",""],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",3,"ngClass"],["fxLayout","column","fxFlex","9","fxLayoutAlign","end start"],[1,"dashboard-capacity-header","this-channel-capacity"],[1,"font-size-90"],["mode","determinate","color","accent","value","100",1,"dashboard-progress-bar","this-channel-bar"],["fxLayout","column","fxFlex","3","fxLayoutAlign","end stretch"],[1,"dashboard-divider"],[3,"perfectScrollbar",4,"ngIf","ngIfElse"],[3,"perfectScrollbar"],["fxLayout","column",4,"ngFor","ngForOf"],["fxLayout","column"],[1,"dashboard-capacity-header","mt-2",3,"matTooltip","matTooltipDisabled"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start"],["class","font-size-90 color-primary",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",4,"ngIf"],["class","dashboard-progress-bar","mode","determinate",3,"value",4,"ngIf"],[1,"font-size-90","color-primary"],[1,"font-weight-900","mr-5px"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],["fxFlex","85","fxLayoutAlign","start start",1,"font-size-90","color-primary"],["fxFlex","15","fxLayoutAlign","end start","class","button-link-dashboard","color","primary","mat-button","","aria-label","Loop Out",3,"click",4,"ngIf"],["fxFlex","15","fxLayoutAlign","end start","color","primary","mat-button","","aria-label","Loop Out",1,"button-link-dashboard",3,"click"],["mode","determinate",1,"dashboard-progress-bar",3,"value"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","1",3,"click",4,"ngIf"],["mat-stroked-button","","color","primary","tabindex","1",3,"click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(e,t){if(1&e&&(o.YNc(0,ue,11,10,"div",0),o.YNc(1,de,3,1,"ng-template",null,1,o.W1O),o.YNc(3,he,3,1,"ng-template",null,2,o.W1O)),2&e){const e=o.MAs(4);o.Q6J("ngIf",""===(null==t.errorMessage?null:t.errorMessage.trim()))("ngIfElse",e)}},directives:[a.O5,l.xw,l.Wh,l.yH,a.mk,v.oO,D.bx,r.pW,M.d,E.$V,a.sg,R.gM,q.lW],pipes:[a.JJ,a.OU],styles:[""]}),e})();var ge=n(5109),fe=n(3005),xe=n(2464),Ze=n(7033),ye=n(4608),Ae=n(6073),Ce=n(6756),Te=n(6880),be=n(5095),we=n(4786),_e=n(7521),ve=n(1522);function qe(e,t){if(1&e&&(o.TgZ(0,"mat-option",24),o._uU(1),o.ALo(2,"titlecase"),o.qZA()),2&e){const e=t.$implicit;o.Q6J("value",e),o.xp6(1),o.Oqu(o.lcZ(2,2,e))}}function Se(e,t){if(1&e&&(o.TgZ(0,"span"),o._uU(1),o.qZA()),2&e){const e=o.oxw(2);o.xp6(1),o.Oqu(e.invoiceError)}}function Fe(e,t){if(1&e&&(o.TgZ(0,"div",25),o._UZ(1,"fa-icon",26),o.YNc(2,Se,2,1,"span",27),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Q6J("icon",e.faExclamationTriangle),o.xp6(1),o.Q6J("ngIf",""!==e.invoiceError)}}let Le=(()=>{class e{constructor(e,t,n,a,i,s){this.dialogRef=e,this.data=t,this.store=n,this.decimalPipe=a,this.commonService=i,this.actions=s,this.faExclamationTriangle=g.eHv,this.selNode={},this.memo="",this.invoiceValueHint="",this.invoicePaymentReq="",this.information={},this.private=!1,this.expiryStep=100,this.pageSize=f.IV,this.timeUnitEnum=f.Qk,this.timeUnits=f.LO,this.selTimeUnit=f.Qk.SECS,this.invoiceError="",this.unSubs=[new p.x,new p.x,new p.x,new p.x,new p.x]}ngOnInit(){this.pageSize=this.data.pageSize,this.store.select("lnd").pipe((0,d.R)(this.unSubs[0])).subscribe(e=>{this.selNode=e.nodeSettings,this.information=e.information}),this.actions.pipe((0,d.R)(this.unSubs[1]),(0,h.h)(e=>e.type===x.JE||e.type===x.Ov)).subscribe(e=>{e.type===x.Ov&&this.dialogRef.close(),e.type===x.JE&&e.payload.status===f.Bn.ERROR&&"SaveNewInvoice"===e.payload.action&&(this.invoiceError=e.payload.message)})}onAddInvoice(e){this.invoiceError="";let t=this.expiry?this.expiry:3600;this.selTimeUnit!==f.Qk.SECS&&(t=this.commonService.convertTime(this.expiry,this.selTimeUnit,f.Qk.SECS)),this.store.dispatch(new x.H1({uiMessage:f.m6.ADD_INVOICE,memo:this.memo,invoiceValue:this.invoiceValue,private:this.private,expiry:t,pageSize:this.pageSize,openModal:!0}))}resetData(){this.memo="",this.invoiceValue=null,this.private=!1,this.expiry=null,this.invoiceValueHint="",this.selTimeUnit=f.Qk.SECS,this.invoiceError=""}onInvoiceValueChange(){this.selNode.fiatConversion&&this.invoiceValue>99&&(this.invoiceValueHint="",this.commonService.convertCurrency(this.invoiceValue,f.NT.SATS,f.NT.OTHER,this.selNode.currencyUnits[2],this.selNode.fiatConversion).pipe((0,d.R)(this.unSubs[2])).subscribe({next:e=>{this.invoiceValueHint="= "+e.symbol+this.decimalPipe.transform(e.OTHER,f.Xz.OTHER)+" "+e.unit},error:e=>{this.invoiceValueHint="Conversion Error: "+e}}))}onTimeUnitChange(e){this.expiry&&this.selTimeUnit!==e.value&&(this.expiry=this.commonService.convertTime(this.expiry,this.selTimeUnit,e.value)),this.selTimeUnit=e.value}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(ye.so),o.Y36(ye.WI),o.Y36(y.yh),o.Y36(a.JJ),o.Y36(C.v),o.Y36(A.eX))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-create-invoices"]],decls:36,vars:17,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayout","row wrap","fxLayoutAlign","space-between start","fxFlex","100"],["addInvoiceForm","ngForm"],["fxFlex","100","fxLayoutAlign","end start"],["matInput","","autoFocus","","placeholder","Memo","tabindex","1","name","memo",3,"ngModel","ngModelChange"],["fxFlex","50","fxLayoutAlign","start end"],["matInput","","placeholder","Amount","type","number","tabindex","2","name","invoiceValue",3,"ngModel","step","min","ngModelChange","keyup"],["matSuffix",""],["fxFlex","24","fxLayoutAlign","start end"],["matInput","","placeholder","Expiry","type","number","tabindex","3","name","expiry",3,"ngModel","step","min","ngModelChange"],["tabindex","4","name","timeUnit",3,"value","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",1,"mt-1"],["tabindex","4","color","primary","matTooltip","Include routing hints for private channels","name","private",3,"ngModel","matTooltipPosition","ngModelChange"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","5","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","6",3,"click"],[3,"value"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],[4,"ngIf"]],template:function(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"div",0),o.TgZ(1,"div",1),o.TgZ(2,"mat-card-header",2),o.TgZ(3,"div",3),o.TgZ(4,"span",4),o._uU(5,"Create Invoice"),o.qZA(),o.qZA(),o.TgZ(6,"button",5),o._uU(7,"X"),o.qZA(),o.qZA(),o.TgZ(8,"mat-card-content",6),o.TgZ(9,"form",7,8),o.TgZ(11,"mat-form-field",9),o.TgZ(12,"input",10),o.NdJ("ngModelChange",function(e){return t.memo=e}),o.qZA(),o.qZA(),o.TgZ(13,"mat-form-field",11),o.TgZ(14,"input",12),o.NdJ("ngModelChange",function(e){return t.invoiceValue=e})("keyup",function(){return t.onInvoiceValueChange()}),o.qZA(),o.TgZ(15,"span",13),o._uU(16," Sats "),o.qZA(),o.TgZ(17,"mat-hint"),o._uU(18),o.qZA(),o.qZA(),o.TgZ(19,"mat-form-field",14),o.TgZ(20,"input",15),o.NdJ("ngModelChange",function(e){return t.expiry=e}),o.qZA(),o.TgZ(21,"span",13),o._uU(22),o.ALo(23,"titlecase"),o.qZA(),o.qZA(),o.TgZ(24,"mat-form-field",14),o.TgZ(25,"mat-select",16),o.NdJ("selectionChange",function(e){return t.onTimeUnitChange(e)}),o.YNc(26,qe,3,4,"mat-option",17),o.qZA(),o.qZA(),o.TgZ(27,"div",18),o.TgZ(28,"mat-slide-toggle",19),o.NdJ("ngModelChange",function(e){return t.private=e}),o._uU(29,"Private Routing Hints"),o.qZA(),o.qZA(),o.YNc(30,Fe,3,2,"div",20),o.TgZ(31,"div",21),o.TgZ(32,"button",22),o.NdJ("click",function(){return t.resetData()}),o._uU(33,"Clear Field"),o.qZA(),o.TgZ(34,"button",23),o.NdJ("click",function(){o.CHM(e);const n=o.MAs(10);return t.onAddInvoice(n)}),o._uU(35,"Create Invoice"),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA()}2&e&&(o.xp6(6),o.Q6J("mat-dialog-close",!1),o.xp6(6),o.Q6J("ngModel",t.memo),o.xp6(2),o.Q6J("ngModel",t.invoiceValue)("step",100)("min",1),o.xp6(4),o.Oqu(t.invoiceValueHint),o.xp6(2),o.Q6J("ngModel",t.expiry)("step",t.selTimeUnit===t.timeUnitEnum.SECS?300:t.selTimeUnit===t.timeUnitEnum.MINS?10:t.selTimeUnit===t.timeUnitEnum.HOURS?2:1)("min",1),o.xp6(2),o.hij(" ",o.lcZ(23,15,t.selTimeUnit)," "),o.xp6(3),o.Q6J("value",t.selTimeUnit),o.xp6(1),o.Q6J("ngForOf",t.timeUnits),o.xp6(2),o.Q6J("ngModel",t.private)("matTooltipPosition","above"),o.xp6(2),o.Q6J("ngIf",""!==t.invoiceError))},directives:[l.xw,l.yH,w.dk,l.Wh,q.lW,ye.ZT,w.dn,Ae._Y,Ae.JL,Ae.F,D.KE,Ce.Nt,Ae.Fj,Te.h,Ae.JJ,Ae.On,Ae.wV,Ae.qQ,be.q,D.R9,D.bx,we.gD,a.sg,_e.Rr,R.gM,a.O5,ve.ey,T.BN],pipes:[a.rS],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),e})();var ke=n(1827),Ne=n(4636);function Ue(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"form",4,5),o.TgZ(2,"mat-form-field",6),o.TgZ(3,"input",7),o.NdJ("ngModelChange",function(t){return o.CHM(e),o.oxw().memo=t}),o.qZA(),o.qZA(),o.TgZ(4,"mat-form-field",8),o.TgZ(5,"input",9),o.NdJ("ngModelChange",function(t){return o.CHM(e),o.oxw().invoiceValue=t})("keyup",function(){return o.CHM(e),o.oxw().onInvoiceValueChange()}),o.qZA(),o.TgZ(6,"span",10),o._uU(7," Sats "),o.qZA(),o.TgZ(8,"mat-hint"),o._uU(9),o.qZA(),o.qZA(),o.TgZ(10,"div",11),o.TgZ(11,"button",12),o.NdJ("click",function(){return o.CHM(e),o.oxw().resetData()}),o._uU(12,"Clear Field"),o.qZA(),o.TgZ(13,"button",13),o.NdJ("click",function(){o.CHM(e);const t=o.MAs(1);return o.oxw().onAddInvoice(t)}),o._uU(14,"Create Invoice"),o.qZA(),o.qZA(),o.qZA()}if(2&e){const e=o.oxw();o.xp6(3),o.Q6J("ngModel",e.memo),o.xp6(2),o.Q6J("ngModel",e.invoiceValue)("step",100)("min",1),o.xp6(4),o.Oqu(e.invoiceValueHint)}}function Ie(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"div",14),o.TgZ(1,"button",15),o.NdJ("click",function(){return o.CHM(e),o.oxw().openCreateInvoiceModal()}),o._uU(2,"Create Invoice"),o.qZA(),o.qZA()}}function Oe(e,t){1&e&&o._UZ(0,"mat-progress-bar",46)}function Je(e,t){1&e&&(o.TgZ(0,"th",47),o._uU(1," Date Created "),o.qZA())}const De=function(e){return{"mr-0":e}};function Re(e,t){if(1&e&&o._UZ(0,"span",51),2&e){const e=o.oxw(3);o.Q6J("ngClass",o.VKq(1,De,e.screenSize===e.screenSizeEnum.XS))}}function Me(e,t){if(1&e&&o._UZ(0,"span",52),2&e){const e=o.oxw(3);o.Q6J("ngClass",o.VKq(1,De,e.screenSize===e.screenSizeEnum.XS))}}function Ee(e,t){if(1&e&&(o.TgZ(0,"td",48),o.YNc(1,Re,1,3,"span",49),o.YNc(2,Me,1,3,"span",50),o._uU(3),o.ALo(4,"date"),o.qZA()),2&e){const e=t.$implicit;o.xp6(1),o.Q6J("ngIf",e.settled),o.xp6(1),o.Q6J("ngIf",!e.settled),o.xp6(1),o.hij(" ",o.xi3(4,3,1e3*e.creation_date,"dd/MMM/YYYY HH:mm"),"")}}function Qe(e,t){1&e&&(o.TgZ(0,"th",53),o._uU(1," Date Settled "),o.qZA())}function Ye(e,t){if(1&e&&(o.TgZ(0,"td",54),o._uU(1),o.ALo(2,"date"),o.qZA()),2&e){const e=t.$implicit;o.xp6(1),o.Oqu(0!=+e.settle_date?o.xi3(2,1,1e3*+e.settle_date,"dd/MMM/YYYY HH:mm"):"-")}}function Pe(e,t){1&e&&(o.TgZ(0,"th",47),o._uU(1," Memo "),o.qZA())}const Be=function(e){return{"max-width":e}};function Ge(e,t){if(1&e&&(o.TgZ(0,"td",48),o.TgZ(1,"div",55),o.TgZ(2,"span",56),o._uU(3),o.qZA(),o.qZA(),o.qZA()),2&e){const e=t.$implicit,n=o.oxw(2);o.xp6(1),o.Q6J("ngStyle",o.VKq(2,Be,n.screenSize===n.screenSizeEnum.XS?"10rem":"22rem")),o.xp6(2),o.Oqu(e.memo)}}function He(e,t){1&e&&(o.TgZ(0,"th",57),o._uU(1," Amount (Sats) "),o.qZA())}function ze(e,t){if(1&e&&(o.TgZ(0,"td",48),o.TgZ(1,"span",58),o._uU(2),o.ALo(3,"number"),o.qZA(),o.qZA()),2&e){const e=t.$implicit;o.xp6(2),o.hij(" ",o.lcZ(3,1,null==e?null:e.value)," ")}}function Ve(e,t){1&e&&(o.TgZ(0,"th",57),o._uU(1," Amount Settled (Sats) "),o.qZA())}function We(e,t){if(1&e&&(o.TgZ(0,"td",48),o.TgZ(1,"span",58),o._uU(2),o.ALo(3,"number"),o.qZA(),o.qZA()),2&e){const e=t.$implicit;o.xp6(2),o.hij(" ",o.lcZ(3,1,null==e?null:e.amt_paid_sat)," ")}}function Xe(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"th",59),o.TgZ(1,"div",60),o.TgZ(2,"mat-select",61),o._UZ(3,"mat-select-trigger"),o.TgZ(4,"mat-option",62),o.NdJ("click",function(){return o.CHM(e),o.oxw(2).onDownloadCSV()}),o._uU(5,"Download CSV"),o.qZA(),o.qZA(),o.qZA(),o.qZA()}}const $e=function(e){return{"pl-3":e}};function je(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"td",63),o.TgZ(1,"div",64),o.TgZ(2,"mat-select",65),o._UZ(3,"mat-select-trigger"),o.TgZ(4,"mat-option",62),o.NdJ("click",function(){const t=o.CHM(e).$implicit;return o.oxw(2).onInvoiceClick(t)}),o._uU(5,"View Info"),o.qZA(),o.TgZ(6,"mat-option",62),o.NdJ("click",function(){const t=o.CHM(e).$implicit;return o.oxw(2).onRefreshInvoice(t)}),o._uU(7,"Refresh"),o.qZA(),o.qZA(),o.qZA(),o.qZA()}if(2&e){const e=o.oxw(2);o.Q6J("ngClass",o.VKq(1,$e,e.screenSize!==e.screenSizeEnum.XS))}}function Ke(e,t){1&e&&(o.TgZ(0,"p"),o._uU(1,"No invoice available."),o.qZA())}function et(e,t){1&e&&(o.TgZ(0,"p"),o._uU(1,"Getting invoices..."),o.qZA())}function tt(e,t){if(1&e&&(o.TgZ(0,"p"),o._uU(1),o.qZA()),2&e){const e=o.oxw(3);o.xp6(1),o.Oqu(e.errorMessage)}}function nt(e,t){if(1&e&&(o.TgZ(0,"td",66),o.YNc(1,Ke,2,0,"p",67),o.YNc(2,et,2,0,"p",67),o.YNc(3,tt,2,1,"p",67),o.qZA()),2&e){const e=o.oxw(2);o.xp6(1),o.Q6J("ngIf",(!(null!=e.invoices&&e.invoices.data)||(null==e.invoices||null==e.invoices.data?null:e.invoices.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.FetchInvoices.status)===e.apiCallStatusEnum.COMPLETED),o.xp6(1),o.Q6J("ngIf",(!(null!=e.invoices&&e.invoices.data)||(null==e.invoices||null==e.invoices.data?null:e.invoices.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.FetchInvoices.status)===e.apiCallStatusEnum.INITIATED),o.xp6(1),o.Q6J("ngIf",(!(null!=e.invoices&&e.invoices.data)||(null==e.invoices||null==e.invoices.data?null:e.invoices.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.FetchInvoices.status)===e.apiCallStatusEnum.ERROR)}}const at=function(e){return{"display-none":e}};function it(e,t){if(1&e&&o._UZ(0,"tr",68),2&e){const e=o.oxw(2);o.Q6J("ngClass",o.VKq(1,at,(null==e.invoices?null:e.invoices.data)&&(null==e.invoices||null==e.invoices.data?null:e.invoices.data.length)>0))}}function st(e,t){1&e&&o._UZ(0,"tr",69)}function ot(e,t){if(1&e&&o._UZ(0,"tr",70),2&e){const e=t.$implicit,n=o.oxw(2);o.Q6J("@newlyAddedRowAnimation",e.memo===n.newlyAddedInvoiceMemo&&e.value===n.newlyAddedInvoiceValue&&n.flgAnimate?"added":"notAdded")}}const lt=function(e){return{"overflow-auto error-border":e,"overflow-auto":!0}},rt=function(){return["no_invoice"]};function ct(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"div",16),o.TgZ(1,"div",17),o.TgZ(2,"div",18),o._UZ(3,"fa-icon",19),o.TgZ(4,"span",20),o._uU(5,"Invoices History"),o.qZA(),o.qZA(),o.TgZ(6,"mat-form-field",21),o.TgZ(7,"input",22),o.NdJ("keyup",function(t){return o.CHM(e),o.oxw().applyFilter(t.target)}),o.qZA(),o.qZA(),o.qZA(),o.TgZ(8,"div",23),o.YNc(9,Oe,1,0,"mat-progress-bar",24),o.TgZ(10,"table",25,26),o.ynx(12,27),o.YNc(13,Je,2,0,"th",28),o.YNc(14,Ee,5,6,"td",29),o.BQk(),o.ynx(15,30),o.YNc(16,Qe,2,0,"th",31),o.YNc(17,Ye,3,4,"td",32),o.BQk(),o.ynx(18,33),o.YNc(19,Pe,2,0,"th",28),o.YNc(20,Ge,4,4,"td",29),o.BQk(),o.ynx(21,34),o.YNc(22,He,2,0,"th",35),o.YNc(23,ze,4,3,"td",29),o.BQk(),o.ynx(24,36),o.YNc(25,Ve,2,0,"th",35),o.YNc(26,We,4,3,"td",29),o.BQk(),o.ynx(27,37),o.YNc(28,Xe,6,0,"th",38),o.YNc(29,je,8,3,"td",39),o.BQk(),o.ynx(30,40),o.YNc(31,nt,4,3,"td",41),o.BQk(),o.YNc(32,it,1,3,"tr",42),o.YNc(33,st,1,0,"tr",43),o.YNc(34,ot,1,1,"tr",44),o.qZA(),o.TgZ(35,"mat-paginator",45),o.NdJ("page",function(t){return o.CHM(e),o.oxw().onPageChange(t)}),o.qZA(),o.qZA(),o.qZA()}if(2&e){const e=o.oxw();o.xp6(3),o.Q6J("icon",e.faHistory),o.xp6(6),o.Q6J("ngIf",(null==e.apisCallStatus?null:e.apisCallStatus.FetchInvoices.status)===e.apiCallStatusEnum.INITIATED),o.xp6(1),o.Q6J("dataSource",e.invoices)("ngClass",o.VKq(12,lt,""!==e.errorMessage)),o.xp6(22),o.Q6J("matFooterRowDef",o.DdM(14,rt)),o.xp6(1),o.Q6J("matHeaderRowDef",e.displayedColumns)("matHeaderRowDefSticky",e.flgSticky),o.xp6(1),o.Q6J("matRowDefColumns",e.displayedColumns),o.xp6(1),o.Q6J("length",e.totalInvoices)("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)("showFirstLastButtons",e.screenSize!==e.screenSizeEnum.XS)}}let ut=(()=>{class e{constructor(e,t,n,a,i,s){this.logger=e,this.store=t,this.decimalPipe=n,this.commonService=a,this.datePipe=i,this.actions=s,this.calledFrom="transactions",this.faHistory=g.qO$,this.selNode={},this.newlyAddedInvoiceMemo=null,this.newlyAddedInvoiceValue=null,this.flgAnimate=!0,this.memo="",this.invoiceValueHint="",this.displayedColumns=[],this.invoicePaymentReq="",this.invoicesData=[],this.information={},this.flgSticky=!1,this.private=!1,this.expiryStep=100,this.totalInvoices=100,this.pageSize=f.IV,this.pageSizeOptions=f.TJ,this.firstOffset=-1,this.lastOffset=-1,this.screenSize="",this.screenSizeEnum=f.cu,this.errorMessage="",this.apisCallStatus=null,this.apiCallStatusEnum=f.Bn,this.unSubs=[new p.x,new p.x,new p.x,new p.x,new p.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===f.cu.XS?(this.flgSticky=!1,this.displayedColumns=["creation_date","value","actions"]):this.screenSize===f.cu.SM?(this.flgSticky=!1,this.displayedColumns=["creation_date","settle_date","value","amt_paid_sat","actions"]):this.screenSize===f.cu.MD?(this.flgSticky=!1,this.displayedColumns=["creation_date","settle_date","memo","value","actions"]):(this.flgSticky=!0,this.displayedColumns=["creation_date","settle_date","memo","value","amt_paid_sat","actions"])}ngOnInit(){this.store.select("lnd").pipe((0,d.R)(this.unSubs[0])).subscribe(e=>{this.errorMessage="",this.apisCallStatus=e.apisCallStatus,e.apisCallStatus.FetchInvoices.status===f.Bn.ERROR&&(this.errorMessage="object"==typeof this.apisCallStatus.FetchInvoices.message?JSON.stringify(this.apisCallStatus.FetchInvoices.message):this.apisCallStatus.FetchInvoices.message),this.selNode=e.nodeSettings,this.information=e.information,this.totalInvoices=e.totalInvoices,this.firstOffset=+e.invoices.first_index_offset,this.lastOffset=+e.invoices.last_index_offset,this.invoicesData=e.invoices.invoices?e.invoices.invoices:[],this.invoicesData.length>0&&this.sort&&this.paginator&&this.loadInvoicesTable(this.invoicesData),this.logger.info(e)}),this.actions.pipe((0,d.R)(this.unSubs[1]),(0,h.h)(e=>e.type===x.RP||e.type===x.JE)).subscribe(e=>{e.type===x.RP&&this.invoicesData.length>0&&this.sort&&this.paginator&&e.payload&&(this.updateInvoicesData(JSON.parse(JSON.stringify(e.payload))),this.loadInvoicesTable(this.invoicesData))})}ngAfterViewInit(){this.invoicesData.length>0&&this.loadInvoicesTable(this.invoicesData)}onAddInvoice(e){const t=this.expiry?this.expiry:3600;this.flgAnimate=!0,this.newlyAddedInvoiceMemo=this.memo,this.newlyAddedInvoiceValue=this.invoiceValue,this.store.dispatch(new x.H1({uiMessage:f.m6.ADD_INVOICE,memo:this.memo,invoiceValue:this.invoiceValue,private:this.private,expiry:t,pageSize:this.pageSize,openModal:!0})),this.resetData()}onInvoiceClick(e){this.store.dispatch(new ee.wu({data:{invoice:e,newlyAdded:!1,component:ke.v}}))}onRefreshInvoice(e){this.store.dispatch(new x.oP(e.r_hash))}updateInvoicesData(e){this.invoicesData=this.invoicesData.map(t=>t.r_hash===e.r_hash?e:t)}loadInvoicesTable(e){this.invoices=new Ze.by(e?[...e]:[]),this.invoices.sort=this.sort,this.invoices.sortingDataAccessor=(e,t)=>e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():e[t]?+e[t]:null,this.invoices.filterPredicate=(e,t)=>((e.creation_date?this.datePipe.transform(new Date(1e3*e.creation_date),"dd/MMM/YYYY HH:mm").toLowerCase():"")+(e.settle_date?this.datePipe.transform(new Date(1e3*e.settle_date),"dd/MMM/YYYY HH:mm").toLowerCase():"")+JSON.stringify(e).toLowerCase()).includes(t),setTimeout(()=>{this.flgAnimate=!1},5e3),this.logger.info(this.invoices)}resetData(){this.memo="",this.invoiceValue=null,this.private=!1,this.expiry=null,this.invoiceValueHint=""}applyFilter(e){this.invoices.filter=e.value.trim().toLowerCase()}onPageChange(e){let t=!0,n=this.lastOffset,a=e.pageSize;0===e.pageIndex?(t=!0,n=0):e.pageIndexe.previousPageIndex&&e.length>(e.pageIndex+1)*e.pageSize?(t=!0,n=this.firstOffset):e.length<=(e.pageIndex+1)*e.pageSize&&(t=!1,n=0,a=e.length-e.pageIndex*e.pageSize),this.store.dispatch(new x._O({num_max_invoices:e.pageSize,index_offset:n,reversed:t}))}onInvoiceValueChange(){this.selNode.fiatConversion&&this.invoiceValue>99&&(this.invoiceValueHint="",this.commonService.convertCurrency(this.invoiceValue,f.NT.SATS,f.NT.OTHER,this.selNode.currencyUnits[2],this.selNode.fiatConversion).pipe((0,d.R)(this.unSubs[2])).subscribe({next:e=>{this.invoiceValueHint="= "+e.symbol+this.decimalPipe.transform(e.OTHER,f.Xz.OTHER)+" "+e.unit},error:e=>{this.invoiceValueHint="Conversion Error: "+e}}))}onDownloadCSV(){this.invoices.data&&this.invoices.data.length>0&&this.commonService.downloadFile(this.invoices.data,"Invoices")}openCreateInvoiceModal(){this.store.dispatch(new ee.wu({data:{pageSize:this.pageSize,component:Le}}))}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(Z.mQ),o.Y36(y.yh),o.Y36(a.JJ),o.Y36(C.v),o.Y36(a.uU),o.Y36(A.eX))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-lightning-invoices"]],viewQuery:function(e,t){if(1&e&&(o.Gf(xe.YE,5),o.Gf(fe.NW,5)),2&e){let e;o.iGM(e=o.CRH())&&(t.sort=e.first),o.iGM(e=o.CRH())&&(t.paginator=e.first)}},inputs:{calledFrom:"calledFrom"},features:[o._Bn([{provide:fe.ye,useValue:(0,f.pt)("Invoices")}])],decls:4,vars:3,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap"],["fxLayout","row wrap","fxLayoutAlign","stretch start","fxFlex","100",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",4,"ngIf"],["fxLayout","row wrap","fxLayoutAlign","stretch start","fxFlex","100"],["addInvoiceForm","ngForm"],["fxFlex","100","fxLayoutAlign","end start"],["matInput","","placeholder","Memo","tabindex","1","name","memo",3,"ngModel","ngModelChange"],["fxFlex","100","fxLayoutAlign","start end"],["matInput","","placeholder","Amount","type","number","tabindex","2","name","invValue",3,"ngModel","step","min","ngModelChange","keyup"],["matSuffix",""],["fxLayout","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","3","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","4",3,"click"],["fxLayout","row"],["mat-flat-button","","color","primary","tabindex","5",3,"click"],["fxLayout","column","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayoutAlign","start stretch","fxLayout.gt-sm","row wrap",1,"page-sub-title-container","mt-1"],["fxFlex","70","fxLayoutAlign","start start","fxLayoutAlign.gt-sm","start center"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30","fxLayoutAlign","start end"],["matInput","","tabindex","6","placeholder","Filter",3,"keyup"],["fxLayout","column","fxLayoutAlign","start end","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","creation_date"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","settle_date"],["mat-header-cell","","mat-sort-header","","class","pl-4",4,"matHeaderCellDef"],["mat-cell","","class","pl-4",4,"matCellDef"],["matColumnDef","memo"],["matColumnDef","value"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","amt_paid_sat"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",3,"ngClass",4,"matCellDef"],["matColumnDef","no_invoice"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","","class","row-invoices",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"length","pageSize","pageSizeOptions","showFirstLastButtons","page"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["class","dot green","matTooltip","Settled","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot yellow","matTooltip","Unsettled","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["matTooltip","Settled","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Unsettled","matTooltipPosition","right",1,"dot","yellow",3,"ngClass"],["mat-header-cell","","mat-sort-header","",1,"pl-4"],["mat-cell","",1,"pl-4"],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",3,"ngClass"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","4",1,"mr-0"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row","",1,"row-invoices"]],template:function(e,t){1&e&&(o.TgZ(0,"div",0),o.YNc(1,Ue,15,5,"form",1),o.YNc(2,Ie,3,0,"div",2),o.YNc(3,ct,36,15,"div",3),o.qZA()),2&e&&(o.xp6(1),o.Q6J("ngIf","home"===t.calledFrom),o.xp6(1),o.Q6J("ngIf","transactions"===t.calledFrom),o.xp6(1),o.Q6J("ngIf","transactions"===t.calledFrom))},directives:[l.xw,l.yH,l.Wh,a.O5,Ae._Y,Ae.JL,Ae.F,D.KE,Ce.Nt,Ae.Fj,Ae.JJ,Ae.On,Ae.wV,Ae.qQ,be.q,D.R9,D.bx,q.lW,T.BN,E.$V,Ze.BZ,xe.YE,a.mk,v.oO,Ze.w1,Ze.fO,Ze.Dz,Ze.mD,Ze.Ke,Ze.as,Ze.nj,fe.NW,r.pW,Ze.ge,xe.nU,Ze.ev,R.gM,a.PC,v.Zl,we.gD,we.$L,ve.ey,Ze.yh,Ze.Q2,Ze.XQ,Ze.Gk],pipes:[a.uU,a.JJ],styles:[".mat-column-memo[_ngcontent-%COMP%]{flex:0 0 15%;width:15%}.mat-column-memo[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"],data:{animation:[Ne.Q]}}),e})();var pt=n(9056),dt=n(3556),ht=n(5001),mt=n(84);const gt=["paymentReq"];function ft(e,t){if(1&e&&(o.TgZ(0,"mat-hint"),o._uU(1),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Oqu(e.paymentDecodedHint)}}function xt(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Payment request is required."),o.qZA())}function Zt(e,t){if(1&e&&(o.TgZ(0,"mat-error"),o._uU(1),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Oqu(e.paymentDecodedHint)}}function yt(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Payment amount is required."),o.qZA())}function At(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"mat-form-field",1),o.TgZ(1,"input",29,30),o.NdJ("ngModelChange",function(t){return o.CHM(e),o.oxw().paymentAmount=t})("change",function(t){return o.CHM(e),o.oxw().onAmountChange(t)}),o.qZA(),o.TgZ(3,"mat-hint"),o._uU(4,"It is a zero amount invoice, enter amount to be paid."),o.qZA(),o.YNc(5,yt,2,0,"mat-error",11),o.qZA()}if(2&e){const e=o.oxw();o.xp6(1),o.Q6J("ngModel",e.paymentAmount),o.xp6(4),o.Q6J("ngIf",!e.paymentAmount)}}function Ct(e,t){if(1&e&&(o.TgZ(0,"mat-option",31),o._uU(1),o.qZA()),2&e){const e=t.$implicit;o.Q6J("value",e),o.xp6(1),o.hij(" ",e.name," ")}}function Tt(e,t){if(1&e&&(o.TgZ(0,"mat-error"),o._uU(1),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.hij("",e.selFeeLimitType.placeholder," is required.")}}function bt(e,t){if(1&e&&(o.TgZ(0,"mat-option",31),o._uU(1),o.qZA()),2&e){const e=t.$implicit;o.Q6J("value",e),o.xp6(1),o.Oqu(e.remote_alias||e.chan_id)}}function wt(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Channel not found in the list."),o.qZA())}function _t(e,t){if(1&e&&(o.TgZ(0,"span"),o._uU(1),o.qZA()),2&e){const e=o.oxw(2);o.xp6(1),o.Oqu(e.paymentError)}}function vt(e,t){if(1&e&&(o.TgZ(0,"div",32),o._UZ(1,"fa-icon",33),o.YNc(2,_t,2,1,"span",11),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Q6J("icon",e.faExclamationTriangle),o.xp6(1),o.Q6J("ngIf",""!==e.paymentError)}}let qt=(()=>{class e{constructor(e,t,n,a,i,s,o){this.dialogRef=e,this.store=t,this.logger=n,this.commonService=a,this.decimalPipe=i,this.actions=s,this.dataService=o,this.faExclamationTriangle=g.eHv,this.selNode={},this.paymentDecoded={},this.zeroAmtInvoice=!1,this.paymentAmount=null,this.paymentRequest="",this.paymentDecodedHint="",this.showAdvanced=!1,this.activeChannels=[],this.filteredMinAmtActvChannels=[],this.selectedChannelCtrl=new Ae.NI,this.feeLimit=null,this.selFeeLimitType=f.Vc[0],this.feeLimitTypes=f.Vc,this.advancedTitle="Advanced Options",this.paymentError="",this.unSubs=[new p.x,new p.x,new p.x,new p.x,new p.x,new p.x]}ngOnInit(){this.store.select("lnd").pipe((0,d.R)(this.unSubs[0])).subscribe(e=>{this.selNode=e.nodeSettings,this.activeChannels=e.allChannels.filter(e=>e.active),this.filteredMinAmtActvChannels=this.activeChannels,this.filteredMinAmtActvChannels.length&&this.filteredMinAmtActvChannels.length>0?this.selectedChannelCtrl.enable():this.selectedChannelCtrl.disable(),this.logger.info(e)}),this.actions.pipe((0,d.R)(this.unSubs[1]),(0,h.h)(e=>e.type===x.JE||e.type===x.ug)).subscribe(e=>{e.type===x.ug&&this.dialogRef.close(),e.type===x.JE&&e.payload.status===f.Bn.ERROR&&"SendPayment"===e.payload.action&&(delete this.paymentDecoded.num_satoshis,this.paymentError=e.payload.message)});let e="",t="";this.activeChannels=this.activeChannels.sort((n,a)=>(e=n.remote_alias?n.remote_alias.toLowerCase():n.chan_id?n.chan_id.toLowerCase():"",t=a.remote_alias?a.remote_alias.toLowerCase():a.chan_id?a.chan_id.toLowerCase():"",et?1:0)),this.selectedChannelCtrl.valueChanges.pipe((0,d.R)(this.unSubs[2])).subscribe(e=>{"string"==typeof e&&(this.filteredMinAmtActvChannels=this.filterChannels())})}filterChannels(){return this.activeChannels.filter(e=>0===(e.remote_alias?e.remote_alias.toLowerCase():e.chan_id?e.chan_id.toLowerCase():"").indexOf(this.selectedChannelCtrl.value?this.selectedChannelCtrl.value.toLowerCase():"")&&e.local_balance>=+(this.paymentDecoded.num_satoshis?this.paymentDecoded.num_satoshis:0))}displayFn(e){return e&&e.remote_alias?e.remote_alias:e&&e.chan_id?e.chan_id:""}onSelectedChannelChanged(){if(this.selectedChannelCtrl.value&&this.selectedChannelCtrl.value.length>0&&"string"==typeof this.selectedChannelCtrl.value){const e=this.activeChannels.filter(e=>{const t=e.remote_alias?e.remote_alias.toLowerCase():e.chan_id?e.chan_id.toLowerCase():"";return t.length===this.selectedChannelCtrl.value.length&&0===t.indexOf(this.selectedChannelCtrl.value?this.selectedChannelCtrl.value.toLowerCase():"")});e&&e.length>0?(this.selectedChannelCtrl.setValue(e[0]),this.selectedChannelCtrl.setErrors(null)):this.selectedChannelCtrl.setErrors({notfound:!0})}}onSendPayment(){if(this.selectedChannelCtrl.value&&"string"==typeof this.selectedChannelCtrl.value&&this.onSelectedChannelChanged(),!this.paymentRequest||this.zeroAmtInvoice&&(!this.paymentAmount||this.paymentAmount<=0)||"string"==typeof this.selectedChannelCtrl.value)return!0;this.paymentDecoded.timestamp?this.sendPayment():this.onPaymentRequestEntry(this.paymentRequest)}sendPayment(){this.paymentDecoded.num_msat&&!this.paymentDecoded.num_satoshis&&(this.paymentDecoded.num_satoshis=(+this.paymentDecoded.num_msat/1e3).toString()),this.paymentDecoded.num_satoshis&&""!==this.paymentDecoded.num_satoshis&&"0"!==this.paymentDecoded.num_satoshis?(this.zeroAmtInvoice=!1,this.store.dispatch(new x.Ar({uiMessage:f.m6.SEND_PAYMENT,paymentReq:this.paymentRequest,outgoingChannel:this.selectedChannelCtrl.value,feeLimitType:{id:this.selFeeLimitType.id,name:this.selFeeLimitType.name},feeLimit:this.feeLimit,fromDialog:!0}))):(this.zeroAmtInvoice=!0,this.paymentDecoded.num_satoshis=this.paymentAmount,this.store.dispatch(new x.Ar({uiMessage:f.m6.SEND_PAYMENT,paymentReq:this.paymentRequest,paymentAmount:this.paymentAmount,outgoingChannel:this.selectedChannelCtrl.value,feeLimitType:{id:this.selFeeLimitType.id,name:this.selFeeLimitType.name},feeLimit:this.feeLimit,fromDialog:!0})))}onAmountChange(e){delete this.paymentDecoded.num_satoshis}onPaymentRequestEntry(e){this.paymentRequest=e,this.paymentAmount=null,this.paymentError="",this.paymentDecodedHint="",this.zeroAmtInvoice=!1,this.paymentRequest&&this.paymentRequest.length>100&&(this.paymentReq.control.setErrors(null),this.zeroAmtInvoice=!1,this.dataService.decodePayment(this.paymentRequest,!0).pipe((0,pt.q)(1)).subscribe({next:e=>{this.paymentDecoded=e,this.selectedChannelCtrl.setValue(null),this.onAdvancedPanelToggle(!0,!0),this.paymentDecoded.num_msat&&!this.paymentDecoded.num_satoshis&&(this.paymentDecoded.num_satoshis=(+this.paymentDecoded.num_msat/1e3).toString()),this.paymentDecoded.num_satoshis&&""!==this.paymentDecoded.num_satoshis&&"0"!==this.paymentDecoded.num_satoshis?(this.filteredMinAmtActvChannels=this.filterChannels(),this.filteredMinAmtActvChannels.length&&this.filteredMinAmtActvChannels.length>0?this.selectedChannelCtrl.enable():this.selectedChannelCtrl.disable(),this.zeroAmtInvoice=!1,this.selNode.fiatConversion?this.commonService.convertCurrency(+this.paymentDecoded.num_satoshis,f.NT.SATS,f.NT.OTHER,this.selNode.currencyUnits[2],this.selNode.fiatConversion).pipe((0,d.R)(this.unSubs[4])).subscribe({next:e=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.num_satoshis)+" Sats ("+e.symbol+" "+this.decimalPipe.transform(e.OTHER?e.OTHER:0,f.Xz.OTHER)+") | Memo: "+(this.paymentDecoded.description?this.paymentDecoded.description:"None")},error:e=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.num_satoshis)+" Sats | Memo: "+(this.paymentDecoded.description?this.paymentDecoded.description:"None")+". Unable to convert currency."}}):this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.num_satoshis)+" Sats | Memo: "+(this.paymentDecoded.description?this.paymentDecoded.description:"None")):(this.zeroAmtInvoice=!0,this.filteredMinAmtActvChannels=this.activeChannels,this.filteredMinAmtActvChannels.length&&this.filteredMinAmtActvChannels.length>0?this.selectedChannelCtrl.enable():this.selectedChannelCtrl.disable(),this.paymentDecodedHint="Memo: "+(this.paymentDecoded.description?this.paymentDecoded.description:"None"))},error:e=>{this.logger.error(e),this.paymentDecodedHint="ERROR: "+e.message,this.paymentReq.control.setErrors({decodeError:!0})}}))}onAdvancedPanelToggle(e,t){if(e&&!t){const e=this.selectedChannelCtrl.value&&this.selectedChannelCtrl.value.remote_alias?this.selectedChannelCtrl.value.remote_alias:this.selectedChannelCtrl.value&&this.selectedChannelCtrl.value.chan_id?this.selectedChannelCtrl.value.chan_id:"";this.advancedTitle="Advanced Options | "+this.selFeeLimitType.name+("none"===this.selFeeLimitType.id?"":": "+this.feeLimit)+(""!==e?" | First Outgoing Channel: "+e:"")}else this.advancedTitle="Advanced Options"}resetData(){this.paymentDecoded={},this.paymentRequest="",this.selectedChannelCtrl.setValue(null),this.filteredMinAmtActvChannels=this.activeChannels,this.filteredMinAmtActvChannels.length&&this.filteredMinAmtActvChannels.length>0?this.selectedChannelCtrl.enable():this.selectedChannelCtrl.disable(),this.feeLimit=null,this.selFeeLimitType=f.Vc[0],this.advancedTitle="Advanced Options",this.zeroAmtInvoice=!1,this.paymentReq.control.setErrors(null),this.paymentError="",this.paymentDecodedHint=""}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(ye.so),o.Y36(y.yh),o.Y36(Z.mQ),o.Y36(C.v),o.Y36(a.JJ),o.Y36(A.eX),o.Y36(dt.D))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-lightning-send-payments"]],viewQuery:function(e,t){if(1&e&&o.Gf(gt,5),2&e){let e;o.iGM(e=o.CRH())&&(t.paymentReq=e.first)}},decls:43,vars:21,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayoutAlign","space-between stretch","fxLayout","column"],["sendPaymentForm","ngForm"],["autoFocus","","matInput","","placeholder","Payment Request","name","paymentRequest","tabindex","1","required","",3,"ngModel","ngModelChange","matTextareaAutosize"],["paymentReq","ngModel"],[4,"ngIf"],["fxFlex","100",4,"ngIf"],["fxFlex","100","expanded","false",1,"flat-expansion-panel","mt-2",3,"closed","opened"],["fxFlex","100","fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["fxFlex","30","fxLayoutAlign","start end"],["tabindex","5","Placeholder","Fee Limits",3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","26"],["matInput","","type","number","name","feeLmt","required","","tabindex","6",3,"ngModel","placeholder","step","min","disabled","ngModelChange"],["fLmt","ngModel"],["fxFlex","40","fxLayoutAlign","start end"],["type","text","placeholder","First Outgoing Channel","aria-label","First Outgoing Channel","matInput","","tabindex","7",3,"formControl","matAutocomplete"],[3,"displayWith","optionSelected"],["auto","matAutocomplete"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","2","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","3",3,"click"],["matInput","","placeholder","Amount (Sats)","name","amount","tabindex","2","required","",3,"ngModel","ngModelChange","change"],["paymentAmt","ngModel"],[3,"value"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"]],template:function(e,t){if(1&e&&(o.TgZ(0,"div",0),o.TgZ(1,"div",1),o.TgZ(2,"mat-card-header",2),o.TgZ(3,"div",3),o.TgZ(4,"span",4),o._uU(5,"Send Payment"),o.qZA(),o.qZA(),o.TgZ(6,"button",5),o._uU(7,"X"),o.qZA(),o.qZA(),o.TgZ(8,"mat-card-content",6),o.TgZ(9,"form",7,8),o.TgZ(11,"mat-form-field",1),o.TgZ(12,"textarea",9,10),o.NdJ("ngModelChange",function(e){return t.onPaymentRequestEntry(e)})("matTextareaAutosize",function(){return!0}),o.qZA(),o.YNc(14,ft,2,1,"mat-hint",11),o.YNc(15,xt,2,0,"mat-error",11),o.YNc(16,Zt,2,1,"mat-error",11),o.qZA(),o.YNc(17,At,6,2,"mat-form-field",12),o.TgZ(18,"mat-expansion-panel",13),o.NdJ("closed",function(){return t.onAdvancedPanelToggle(!0,!1)})("opened",function(){return t.onAdvancedPanelToggle(!1,!1)}),o.TgZ(19,"mat-expansion-panel-header"),o.TgZ(20,"mat-panel-title"),o.TgZ(21,"span"),o._uU(22),o.qZA(),o.qZA(),o.qZA(),o.TgZ(23,"div",14),o.TgZ(24,"mat-form-field",15),o.TgZ(25,"mat-select",16),o.NdJ("valueChange",function(e){return t.selFeeLimitType=e}),o.YNc(26,Ct,2,2,"mat-option",17),o.qZA(),o.qZA(),o.TgZ(27,"mat-form-field",18),o.TgZ(28,"input",19,20),o.NdJ("ngModelChange",function(e){return t.feeLimit=e}),o.qZA(),o.YNc(30,Tt,2,1,"mat-error",11),o.qZA(),o.TgZ(31,"mat-form-field",21),o._UZ(32,"input",22),o.TgZ(33,"mat-autocomplete",23,24),o.NdJ("optionSelected",function(){return t.onSelectedChannelChanged()}),o.YNc(35,bt,2,2,"mat-option",17),o.qZA(),o.YNc(36,wt,2,0,"mat-error",11),o.qZA(),o.qZA(),o.qZA(),o.YNc(37,vt,3,2,"div",25),o.TgZ(38,"div",26),o.TgZ(39,"button",27),o.NdJ("click",function(){return t.resetData()}),o._uU(40,"Clear Fields"),o.qZA(),o.TgZ(41,"button",28),o.NdJ("click",function(){return t.onSendPayment()}),o._uU(42,"Send Payment"),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA()),2&e){const e=o.MAs(13),n=o.MAs(34);o.xp6(6),o.Q6J("mat-dialog-close",!1),o.xp6(6),o.Q6J("ngModel",t.paymentRequest),o.xp6(2),o.Q6J("ngIf",t.paymentRequest&&""!==t.paymentDecodedHint),o.xp6(1),o.Q6J("ngIf",!t.paymentRequest),o.xp6(1),o.Q6J("ngIf",null==e.errors?null:e.errors.decodeError),o.xp6(1),o.Q6J("ngIf",t.zeroAmtInvoice),o.xp6(5),o.Oqu(t.advancedTitle),o.xp6(3),o.Q6J("value",t.selFeeLimitType),o.xp6(1),o.Q6J("ngForOf",t.feeLimitTypes),o.xp6(2),o.Q6J("ngModel",t.feeLimit)("placeholder",t.selFeeLimitType.placeholder)("step",1)("min",0)("disabled",t.selFeeLimitType===t.feeLimitTypes[0]),o.xp6(2),o.Q6J("ngIf",t.selFeeLimitType!==t.feeLimitTypes[0]&&!t.feeLimit),o.xp6(2),o.Q6J("formControl",t.selectedChannelCtrl)("matAutocomplete",n),o.xp6(1),o.Q6J("displayWith",t.displayFn),o.xp6(2),o.Q6J("ngForOf",t.filteredMinAmtActvChannels),o.xp6(1),o.Q6J("ngIf",null==t.selectedChannelCtrl.errors?null:t.selectedChannelCtrl.errors.notfound),o.xp6(1),o.Q6J("ngIf",""!==t.paymentError)}},directives:[l.xw,l.yH,w.dk,l.Wh,q.lW,ye.ZT,w.dn,Ae._Y,Ae.JL,Ae.F,D.KE,Ce.Nt,Ae.Fj,Ce.D7,Te.h,Ae.Q7,Ae.JJ,Ae.On,a.O5,ht.ib,ht.yz,ht.yK,we.gD,a.sg,Ae.wV,Ae.qQ,be.q,mt.ZL,Ae.oH,mt.XC,D.bx,D.TO,ve.ey,T.BN],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-payment_hash[_ngcontent-%COMP%]{flex:1 1 20%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),e})();var St=n(8914),Ft=n(8248);const Lt=["sendPaymentForm"];function kt(e,t){if(1&e&&(o.TgZ(0,"mat-hint"),o._uU(1),o.qZA()),2&e){const e=o.oxw(2);o.xp6(1),o.Oqu(e.paymentDecodedHint)}}function Nt(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Payment request is required."),o.qZA())}function Ut(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"form",4,5),o.TgZ(2,"mat-form-field",6),o.TgZ(3,"textarea",7,8),o.NdJ("ngModelChange",function(t){return o.CHM(e),o.oxw().onPaymentRequestEntry(t)})("matTextareaAutosize",function(){return!0}),o.qZA(),o.YNc(5,kt,2,1,"mat-hint",9),o.YNc(6,Nt,2,0,"mat-error",9),o.qZA(),o.TgZ(7,"div",10),o.TgZ(8,"button",11),o.NdJ("click",function(){return o.CHM(e),o.oxw().resetData()}),o._uU(9,"Clear Field"),o.qZA(),o.TgZ(10,"button",12),o.NdJ("click",function(){return o.CHM(e),o.oxw().onSendPayment()}),o._uU(11,"Send Payment"),o.qZA(),o.qZA(),o.qZA()}if(2&e){const e=o.oxw();o.xp6(3),o.Q6J("ngModel",e.paymentRequest),o.xp6(2),o.Q6J("ngIf",e.paymentRequest&&""!==e.paymentDecodedHint),o.xp6(1),o.Q6J("ngIf",!e.paymentRequest)}}function It(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"div",13),o.TgZ(1,"button",14),o.NdJ("click",function(){return o.CHM(e),o.oxw().openSendPaymentModal()}),o._uU(2,"Send Payment"),o.qZA(),o.qZA()}}function Ot(e,t){1&e&&o._UZ(0,"mat-progress-bar",53)}function Jt(e,t){1&e&&(o.TgZ(0,"th",54),o._uU(1,"Creation Date"),o.qZA())}const Dt=function(e){return{"mr-0":e}};function Rt(e,t){if(1&e&&o._UZ(0,"span",58),2&e){const e=o.oxw(3);o.Q6J("ngClass",o.VKq(1,Dt,e.screenSize===e.screenSizeEnum.XS))}}function Mt(e,t){if(1&e&&o._UZ(0,"span",59),2&e){const e=o.oxw(3);o.Q6J("ngClass",o.VKq(1,Dt,e.screenSize===e.screenSizeEnum.XS))}}function Et(e,t){if(1&e&&(o.TgZ(0,"td",55),o.YNc(1,Rt,1,3,"span",56),o.YNc(2,Mt,1,3,"span",57),o._uU(3),o.ALo(4,"date"),o.qZA()),2&e){const e=t.$implicit;o.xp6(1),o.Q6J("ngIf","SUCCEEDED"===e.status),o.xp6(1),o.Q6J("ngIf","SUCCEEDED"!==e.status),o.xp6(1),o.hij(" ",o.xi3(4,3,1e3*(null==e?null:e.creation_date),"dd/MMM/YYYY HH:mm")," ")}}function Qt(e,t){1&e&&(o.TgZ(0,"th",54),o._uU(1,"Payment Hash"),o.qZA())}const Yt=function(e){return{"max-width":e}};function Pt(e,t){if(1&e&&(o.TgZ(0,"td",60),o._uU(1),o.qZA()),2&e){const e=t.$implicit,n=o.oxw(2);o.Q6J("ngStyle",o.VKq(2,Yt,n.screenSize===n.screenSizeEnum.XS?"10rem":"35rem")),o.xp6(1),o.Oqu(null==e?null:e.payment_hash)}}function Bt(e,t){1&e&&(o.TgZ(0,"th",61),o._uU(1,"Fee (Sats)"),o.qZA())}function Gt(e,t){if(1&e&&(o.TgZ(0,"td",55),o.TgZ(1,"span",62),o._uU(2),o.ALo(3,"number"),o.qZA(),o.qZA()),2&e){const e=t.$implicit;o.xp6(2),o.Oqu(o.lcZ(3,1,null==e?null:e.fee))}}function Ht(e,t){1&e&&(o.TgZ(0,"th",61),o._uU(1,"Value (Sats)"),o.qZA())}function zt(e,t){if(1&e&&(o.TgZ(0,"td",55),o.TgZ(1,"span",62),o._uU(2),o.ALo(3,"number"),o.qZA(),o.qZA()),2&e){const e=t.$implicit;o.xp6(2),o.Oqu(o.lcZ(3,1,null==e?null:e.value))}}function Vt(e,t){1&e&&(o.TgZ(0,"th",61),o._uU(1,"#Hops"),o.qZA())}function Wt(e,t){if(1&e&&(o.TgZ(0,"td",55),o.TgZ(1,"span",62),o._uU(2),o.qZA(),o.qZA()),2&e){const e=t.$implicit;o.xp6(2),o.Oqu((null==e||null==e.htlcs[0]||null==e.htlcs[0].route||null==e.htlcs[0].route.hops?null:e.htlcs[0].route.hops.length)||0)}}function Xt(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"th",63),o.TgZ(1,"div",64),o.TgZ(2,"mat-select",65),o._UZ(3,"mat-select-trigger"),o.TgZ(4,"mat-option",66),o.NdJ("click",function(){return o.CHM(e),o.oxw(2).onDownloadCSV()}),o._uU(5,"Download CSV"),o.qZA(),o.qZA(),o.qZA(),o.qZA()}}function $t(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"td",67),o.TgZ(1,"button",68),o.NdJ("click",function(){const t=o.CHM(e).$implicit;return o.oxw(2).onPaymentClick(t)}),o._uU(2,"View Info"),o.qZA(),o.qZA()}}function jt(e,t){1&e&&(o.TgZ(0,"p"),o._uU(1,"No payment available."),o.qZA())}function Kt(e,t){1&e&&(o.TgZ(0,"p"),o._uU(1,"Getting payments..."),o.qZA())}function en(e,t){if(1&e&&(o.TgZ(0,"p"),o._uU(1),o.qZA()),2&e){const e=o.oxw(3);o.xp6(1),o.Oqu(e.errorMessage)}}function tn(e,t){if(1&e&&(o.TgZ(0,"td",69),o.YNc(1,jt,2,0,"p",9),o.YNc(2,Kt,2,0,"p",9),o.YNc(3,en,2,1,"p",9),o.qZA()),2&e){const e=o.oxw(2);o.xp6(1),o.Q6J("ngIf",(!(null!=e.payments&&e.payments.data)||(null==e.payments||null==e.payments.data?null:e.payments.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.FetchPayments.status)===e.apiCallStatusEnum.COMPLETED),o.xp6(1),o.Q6J("ngIf",(!(null!=e.payments&&e.payments.data)||(null==e.payments||null==e.payments.data?null:e.payments.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.FetchPayments.status)===e.apiCallStatusEnum.INITIATED),o.xp6(1),o.Q6J("ngIf",(!(null!=e.payments&&e.payments.data)||(null==e.payments||null==e.payments.data?null:e.payments.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.FetchPayments.status)===e.apiCallStatusEnum.ERROR)}}function nn(e,t){if(1&e&&o._UZ(0,"span",58),2&e){const e=o.oxw(3);o.Q6J("ngClass",o.VKq(1,Dt,e.screenSize===e.screenSizeEnum.XS))}}function an(e,t){if(1&e&&o._UZ(0,"span",59),2&e){const e=o.oxw(3);o.Q6J("ngClass",o.VKq(1,Dt,e.screenSize===e.screenSizeEnum.XS))}}function sn(e,t){if(1&e&&o._UZ(0,"span",58),2&e){const e=o.oxw(5);o.Q6J("ngClass",o.VKq(1,Dt,e.screenSize===e.screenSizeEnum.XS))}}function on(e,t){if(1&e&&o._UZ(0,"span",59),2&e){const e=o.oxw(5);o.Q6J("ngClass",o.VKq(1,Dt,e.screenSize===e.screenSizeEnum.XS))}}function ln(e,t){if(1&e&&(o.TgZ(0,"span",72),o.YNc(1,sn,1,3,"span",56),o.YNc(2,on,1,3,"span",57),o._uU(3),o.ALo(4,"date"),o.qZA()),2&e){const e=t.$implicit;o.xp6(1),o.Q6J("ngIf","SUCCEEDED"===e.status),o.xp6(1),o.Q6J("ngIf","SUCCEEDED"!==e.status),o.xp6(1),o.hij(" ",o.xi3(4,3,1e3*e.attempt_time,"dd/MMM/YYYY HH:mm")," ")}}function rn(e,t){if(1&e&&(o.ynx(0),o.YNc(1,ln,5,6,"span",71),o.BQk()),2&e){const e=o.oxw().$implicit;o.xp6(1),o.Q6J("ngForOf",null==e?null:e.htlcs)}}function cn(e,t){if(1&e&&(o.TgZ(0,"td",55),o.TgZ(1,"span",70),o.YNc(2,nn,1,3,"span",56),o.YNc(3,an,1,3,"span",57),o._uU(4),o.qZA(),o.YNc(5,rn,2,1,"ng-container",9),o.qZA()),2&e){const e=t.$implicit;o.xp6(2),o.Q6J("ngIf","SUCCEEDED"===e.status),o.xp6(1),o.Q6J("ngIf","SUCCEEDED"!==e.status),o.xp6(1),o.hij(" Total Attempts: ",null==e||null==e.htlcs?null:e.htlcs.length," "),o.xp6(1),o.Q6J("ngIf",e.is_expanded)}}function un(e,t){if(1&e&&(o.TgZ(0,"span",70),o._uU(1),o.qZA()),2&e){const e=t.index;o.xp6(1),o.hij(" HTLC ",e+1," ")}}function pn(e,t){if(1&e&&(o.TgZ(0,"span"),o.YNc(1,un,2,1,"span",73),o.qZA()),2&e){const e=o.oxw().$implicit;o.xp6(1),o.Q6J("ngForOf",null==e?null:e.htlcs)}}function dn(e,t){if(1&e&&(o.TgZ(0,"td",55),o.TgZ(1,"span",70),o._uU(2),o.qZA(),o.YNc(3,pn,2,1,"span",9),o.qZA()),2&e){const e=t.$implicit;o.xp6(2),o.Oqu(null==e?null:e.payment_hash),o.xp6(1),o.Q6J("ngIf",e.is_expanded)}}function hn(e,t){if(1&e&&(o.TgZ(0,"span",74),o._uU(1),o.ALo(2,"number"),o.qZA()),2&e){const e=t.$implicit;o.xp6(1),o.hij(" ",o.xi3(2,1,null==e.route?null:e.route.total_fees,"1.0-0")," ")}}function mn(e,t){if(1&e&&(o.TgZ(0,"span"),o.YNc(1,hn,3,4,"span",75),o.qZA()),2&e){const e=o.oxw().$implicit;o.xp6(1),o.Q6J("ngForOf",null==e?null:e.htlcs)}}function gn(e,t){if(1&e&&(o.TgZ(0,"td",55),o.TgZ(1,"span",74),o._uU(2),o.ALo(3,"number"),o.qZA(),o.YNc(4,mn,2,1,"span",9),o.qZA()),2&e){const e=t.$implicit;o.xp6(2),o.Oqu(o.xi3(3,2,null==e?null:e.fee,"1.0-0")),o.xp6(2),o.Q6J("ngIf",e.is_expanded)}}function fn(e,t){if(1&e&&(o.TgZ(0,"span",74),o._uU(1),o.ALo(2,"number"),o.qZA()),2&e){const e=t.$implicit;o.xp6(1),o.hij(" ",o.xi3(2,1,null==e.route?null:e.route.total_amt,"1.0-0")," ")}}function xn(e,t){if(1&e&&(o.TgZ(0,"span"),o.YNc(1,fn,3,4,"span",75),o.qZA()),2&e){const e=o.oxw().$implicit;o.xp6(1),o.Q6J("ngForOf",null==e?null:e.htlcs)}}function Zn(e,t){if(1&e&&(o.TgZ(0,"td",55),o.TgZ(1,"span",74),o._uU(2),o.ALo(3,"number"),o.qZA(),o.YNc(4,xn,2,1,"span",9),o.qZA()),2&e){const e=t.$implicit;o.xp6(2),o.Oqu(o.xi3(3,2,null==e?null:e.value,"1.0-0")),o.xp6(2),o.Q6J("ngIf",e.is_expanded)}}function yn(e,t){if(1&e&&(o.TgZ(0,"span",74),o._uU(1),o.ALo(2,"number"),o.qZA()),2&e){const e=t.$implicit;o.xp6(1),o.hij(" ",o.xi3(2,1,(null==e.route||null==e.route.hops?null:e.route.hops.length)||0,"1.0-0")," ")}}function An(e,t){if(1&e&&(o.TgZ(0,"span"),o.YNc(1,yn,3,4,"span",75),o.qZA()),2&e){const e=o.oxw().$implicit;o.xp6(1),o.Q6J("ngForOf",null==e?null:e.htlcs)}}function Cn(e,t){if(1&e&&(o.TgZ(0,"td",55),o.TgZ(1,"span",74),o._uU(2,"-"),o.qZA(),o.YNc(3,An,2,1,"span",9),o.qZA()),2&e){const e=t.$implicit;o.xp6(3),o.Q6J("ngIf",e.is_expanded)}}function Tn(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"div",62),o.TgZ(1,"button",79),o.NdJ("click",function(){const t=o.CHM(e).$implicit,n=o.oxw(2).$implicit;return o.oxw(2).onHTLCClick(t,n)}),o._uU(2),o.qZA(),o.qZA()}if(2&e){const e=t.index;o.xp6(2),o.hij("View ",e+1,"")}}function bn(e,t){if(1&e&&(o.TgZ(0,"div"),o.YNc(1,Tn,3,1,"div",78),o.qZA()),2&e){const e=o.oxw().$implicit;o.xp6(1),o.Q6J("ngForOf",null==e?null:e.htlcs)}}function wn(e,t){if(1&e&&(o.TgZ(0,"td",76),o.TgZ(1,"span",62),o.TgZ(2,"button",77),o.NdJ("click",function(){const e=t.$implicit;return e.is_expanded=!e.is_expanded}),o._uU(3),o.qZA(),o.qZA(),o.YNc(4,bn,2,1,"div",9),o.qZA()),2&e){const e=t.$implicit;o.xp6(3),o.Oqu(e.is_expanded?"Hide":"Show"),o.xp6(1),o.Q6J("ngIf",e.is_expanded)}}function _n(e,t){if(1&e&&o._UZ(0,"tr",80),2&e){const e=t.$implicit,n=o.oxw(2);o.Q6J("@newlyAddedRowAnimation",e.payment_hash===n.newlyAddedPayment&&n.flgAnimate?"added":"notAdded")}}const vn=function(e){return{"display-none":e}};function qn(e,t){if(1&e&&o._UZ(0,"tr",81),2&e){const e=o.oxw(2);o.Q6J("ngClass",o.VKq(1,vn,(null==e.payments?null:e.payments.data)&&(null==e.payments||null==e.payments.data?null:e.payments.data.length)>0))}}function Sn(e,t){1&e&&o._UZ(0,"tr",82)}function Fn(e,t){if(1&e&&o._UZ(0,"tr",80),2&e){const e=t.$implicit,n=o.oxw(2);o.Q6J("@newlyAddedRowAnimation",e.payment_hash===n.newlyAddedPayment&&n.flgAnimate?"added":"notAdded")}}const Ln=function(e){return{"overflow-auto error-border":e,"overflow-auto":!0}},kn=function(){return["no_payment"]};function Nn(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"div",15),o.TgZ(1,"div",16),o.TgZ(2,"div",17),o._UZ(3,"fa-icon",18),o.TgZ(4,"span",19),o._uU(5,"Payments History"),o.qZA(),o.qZA(),o.TgZ(6,"mat-form-field",20),o.TgZ(7,"input",21),o.NdJ("keyup",function(t){return o.CHM(e),o.oxw().applyFilter(t.target)}),o.qZA(),o.qZA(),o.qZA(),o.TgZ(8,"div",22),o.TgZ(9,"div",23),o.YNc(10,Ot,1,0,"mat-progress-bar",24),o.TgZ(11,"table",25,26),o.ynx(13,27),o.YNc(14,Jt,2,0,"th",28),o.YNc(15,Et,5,6,"td",29),o.BQk(),o.ynx(16,30),o.YNc(17,Qt,2,0,"th",28),o.YNc(18,Pt,2,4,"td",31),o.BQk(),o.ynx(19,32),o.YNc(20,Bt,2,0,"th",33),o.YNc(21,Gt,4,3,"td",29),o.BQk(),o.ynx(22,34),o.YNc(23,Ht,2,0,"th",33),o.YNc(24,zt,4,3,"td",29),o.BQk(),o.ynx(25,35),o.YNc(26,Vt,2,0,"th",33),o.YNc(27,Wt,3,1,"td",29),o.BQk(),o.ynx(28,36),o.YNc(29,Xt,6,0,"th",37),o.YNc(30,$t,3,0,"td",38),o.BQk(),o.ynx(31,39),o.YNc(32,tn,4,3,"td",40),o.BQk(),o.ynx(33,41),o.YNc(34,cn,6,4,"td",29),o.BQk(),o.ynx(35,42),o.YNc(36,dn,4,2,"td",29),o.BQk(),o.ynx(37,43),o.YNc(38,gn,5,5,"td",29),o.BQk(),o.ynx(39,44),o.YNc(40,Zn,5,5,"td",29),o.BQk(),o.ynx(41,45),o.YNc(42,Cn,4,1,"td",29),o.BQk(),o.ynx(43,46),o.YNc(44,wn,5,2,"td",47),o.BQk(),o.YNc(45,_n,1,1,"tr",48),o.YNc(46,qn,1,3,"tr",49),o.YNc(47,Sn,1,0,"tr",50),o.YNc(48,Fn,1,1,"tr",51),o.qZA(),o.TgZ(49,"mat-paginator",52),o.NdJ("page",function(t){return o.CHM(e),o.oxw().onPageChange(t)}),o.qZA(),o.qZA(),o.qZA(),o.qZA()}if(2&e){const e=o.oxw();o.xp6(3),o.Q6J("icon",e.faHistory),o.xp6(7),o.Q6J("ngIf",(null==e.apisCallStatus?null:e.apisCallStatus.FetchPayments.status)===e.apiCallStatusEnum.INITIATED),o.xp6(1),o.Q6J("dataSource",e.payments)("ngClass",o.VKq(14,Ln,""!==e.errorMessage)),o.xp6(34),o.Q6J("matRowDefColumns",e.htlcColumns)("matRowDefWhen",e.is_group),o.xp6(1),o.Q6J("matFooterRowDef",o.DdM(16,kn)),o.xp6(1),o.Q6J("matHeaderRowDef",e.displayedColumns)("matHeaderRowDefSticky",e.flgSticky),o.xp6(1),o.Q6J("matRowDefColumns",e.displayedColumns),o.xp6(1),o.Q6J("length",e.totalPayments)("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)("showFirstLastButtons",e.screenSize!==e.screenSizeEnum.XS)}}let Un=(()=>{class e{constructor(e,t,n,a,i,s,o,l){this.logger=e,this.commonService=t,this.dataService=n,this.store=a,this.rtlEffects=i,this.lndEffects=s,this.decimalPipe=o,this.datePipe=l,this.calledFrom="transactions",this.faHistory=g.qO$,this.newlyAddedPayment="",this.flgAnimate=!0,this.selNode={},this.information={},this.peers=[],this.totalPayments=100,this.paymentJSONArr=[],this.displayedColumns=[],this.htlcColumns=[],this.paymentDecoded={},this.paymentRequest="",this.paymentDecodedHint="",this.flgSticky=!1,this.firstOffset=-1,this.lastOffset=-1,this.pageSize=f.IV,this.pageSizeOptions=f.TJ,this.screenSize="",this.screenSizeEnum=f.cu,this.errorMessage="",this.apisCallStatus=null,this.apiCallStatusEnum=f.Bn,this.unSubs=[new p.x,new p.x,new p.x,new p.x,new p.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===f.cu.XS?(this.flgSticky=!1,this.displayedColumns=["creation_date","fee","actions"],this.htlcColumns=["groupTotal","groupFee","groupAction"]):this.screenSize===f.cu.SM||this.screenSize===f.cu.MD?(this.flgSticky=!1,this.displayedColumns=["creation_date","fee","value","hops","actions"],this.htlcColumns=["groupTotal","groupFee","groupValue","groupHops","groupAction"]):(this.flgSticky=!0,this.displayedColumns=["creation_date","payment_hash","fee","value","hops","actions"],this.htlcColumns=["groupTotal","groupHash","groupFee","groupValue","groupHops","groupAction"])}ngOnInit(){this.store.select("lnd").pipe((0,d.R)(this.unSubs[0])).subscribe(e=>{this.errorMessage="",this.apisCallStatus=e.apisCallStatus,e.apisCallStatus.FetchPayments.status===f.Bn.ERROR&&(this.errorMessage="object"==typeof this.apisCallStatus.FetchPayments.message?JSON.stringify(this.apisCallStatus.FetchPayments.message):this.apisCallStatus.FetchPayments.message),this.information=e.information,this.selNode=e.nodeSettings,this.peers=e.peers,this.paymentJSONArr=e.payments&&e.payments.payments&&e.payments.payments.length>0?e.payments.payments:[],this.totalPayments=e.allLightningTransactions.paymentsAll&&e.allLightningTransactions.paymentsAll.payments&&e.allLightningTransactions.paymentsAll.payments.length?e.allLightningTransactions.paymentsAll.payments.length:0,this.firstOffset=+e.payments.first_index_offset,this.lastOffset=+e.payments.last_index_offset,this.paymentJSONArr&&this.paymentJSONArr.length>0&&this.sort&&this.paginator?this.loadPaymentsTable(this.paymentJSONArr):this.paymentJSONArr&&0===this.paymentJSONArr.length&&(this.payments=new Ze.by([])),setTimeout(()=>{this.flgAnimate=!1},3e3),this.logger.info(e)})}ngAfterViewInit(){this.paymentJSONArr&&this.paymentJSONArr.length>0&&this.loadPaymentsTable(this.paymentJSONArr)}onSendPayment(){if(!this.paymentRequest)return!0;this.paymentDecoded.timestamp?this.sendPayment():this.dataService.decodePayment(this.paymentRequest,!1).pipe((0,pt.q)(1)).subscribe(e=>{this.paymentDecoded=e,this.paymentDecoded.timestamp?(this.paymentDecoded.num_satoshis=this.paymentDecoded.num_msat&&!this.paymentDecoded.num_satoshis?(+this.paymentDecoded.num_msat/1e3).toString():"0",this.sendPayment()):this.resetData()})}sendPayment(){this.flgAnimate=!0,this.newlyAddedPayment=this.paymentDecoded.payment_hash,this.paymentDecoded.num_msat&&!this.paymentDecoded.num_satoshis&&(this.paymentDecoded.num_satoshis=(+this.paymentDecoded.num_msat/1e3).toString()),this.paymentDecoded.num_satoshis&&""!==this.paymentDecoded.num_satoshis&&"0"!==this.paymentDecoded.num_satoshis?(this.store.dispatch(new ee.b_({data:{type:f.n_.CONFIRM,alertTitle:"Confirm Send Payment",noBtnText:"Cancel",yesBtnText:"Send Payment",message:[[{key:"payment_hash",value:this.paymentDecoded.payment_hash,title:"Payment Hash",width:100}],[{key:"destination",value:this.paymentDecoded.destination,title:"Destination",width:100}],[{key:"description",value:this.paymentDecoded.description,title:"Description",width:100}],[{key:"timestamp",value:this.paymentDecoded.timestamp,title:"Creation Date",width:50,type:f.Gi.DATE_TIME},{key:"num_satoshis",value:this.paymentDecoded.num_satoshis,title:"Amount (Sats)",width:50,type:f.Gi.NUMBER}],[{key:"expiry",value:this.paymentDecoded.expiry,title:"Expiry",width:50,type:f.Gi.NUMBER},{key:"cltv_expiry",value:this.paymentDecoded.cltv_expiry,title:"CLTV Expiry",width:50}]]}})),this.rtlEffects.closeConfirm.pipe((0,pt.q)(1)).subscribe(e=>{e&&(this.store.dispatch(new x.Ar({uiMessage:f.m6.SEND_PAYMENT,paymentReq:this.paymentRequest,fromDialog:!1})),this.resetData())})):(this.store.dispatch(new ee.b_({data:{type:f.n_.CONFIRM,alertTitle:"Enter Amount and Confirm Send Payment",titleMessage:"It is a zero amount invoice. Enter the amount (Sats) to pay.",message:[[{key:"payment_hash",value:this.paymentDecoded.payment_hash,title:"Payment Hash",width:100}],[{key:"destination",value:this.paymentDecoded.destination,title:"Destination",width:100}],[{key:"description",value:this.paymentDecoded.description,title:"Description",width:100}],[{key:"timestamp",value:this.paymentDecoded.timestamp,title:"Creation Date",width:40,type:f.Gi.DATE_TIME},{key:"expiry",value:this.paymentDecoded.expiry,title:"Expiry",width:30,type:f.Gi.NUMBER},{key:"cltv_expiry",value:this.paymentDecoded.cltv_expiry,title:"CLTV Expiry",width:30}]],noBtnText:"Cancel",yesBtnText:"Send Payment",flgShowInput:!0,getInputs:[{placeholder:"Amount (Sats)",inputType:f.Gi.NUMBER.toLowerCase(),inputValue:"",width:30}]}})),this.rtlEffects.closeConfirm.pipe((0,pt.q)(1)).subscribe(e=>{e&&(this.paymentDecoded.num_satoshis=e[0].inputValue,this.store.dispatch(new x.Ar({uiMessage:f.m6.SEND_PAYMENT,paymentReq:this.paymentRequest,paymentAmount:e[0].inputValue,fromDialog:!1})),this.resetData())}))}openSendPaymentModal(){this.store.dispatch(new ee.wu({data:{component:qt}}))}onPaymentRequestEntry(e){this.paymentRequest=e,this.paymentDecodedHint="",this.paymentRequest&&this.paymentRequest.length>100&&this.dataService.decodePayment(this.paymentRequest,!1).pipe((0,pt.q)(1)).subscribe(e=>{this.paymentDecoded=e,this.paymentDecoded.num_msat&&!this.paymentDecoded.num_satoshis&&(this.paymentDecoded.num_satoshis=(+this.paymentDecoded.num_msat/1e3).toString()),this.paymentDecoded.num_satoshis?this.selNode.fiatConversion?this.commonService.convertCurrency(+this.paymentDecoded.num_satoshis,f.NT.SATS,f.NT.OTHER,this.selNode.currencyUnits[2],this.selNode.fiatConversion).pipe((0,d.R)(this.unSubs[2])).subscribe({next:e=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.num_satoshis?this.paymentDecoded.num_satoshis:0)+" Sats ("+e.symbol+this.decimalPipe.transform(e.OTHER?e.OTHER:0,f.Xz.OTHER)+") | Memo: "+this.paymentDecoded.description},error:e=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.num_satoshis?this.paymentDecoded.num_satoshis:0)+" Sats | Memo: "+this.paymentDecoded.description+". Unable to convert currency."}}):this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.num_satoshis?this.paymentDecoded.num_satoshis:0)+" Sats | Memo: "+this.paymentDecoded.description:this.paymentDecodedHint="Zero Amount Invoice | Memo: "+this.paymentDecoded.description})}onPageChange(e){let t=!0,n=this.lastOffset,a=e.pageSize;0===e.pageIndex?(t=!0,n=0):e.pageIndexe.previousPageIndex&&e.length>(e.pageIndex+1)*e.pageSize?(t=!0,n=this.firstOffset):e.length<=(e.pageIndex+1)*e.pageSize&&(t=!1,n=0,a=e.length-e.pageIndex*e.pageSize),this.store.dispatch(new x.xt({max_payments:a,index_offset:n,reversed:t}))}is_group(e,t){return t.htlcs&&t.htlcs.length>1}resetData(){this.paymentDecoded={},this.paymentRequest="",this.form.resetForm()}getHopDetails(e){const t=this;return e.reduce((e,n)=>{const a=t.peers.find(e=>e.pub_key===n.pub_key);return a&&a.alias?e.push("
Channel: "+a.alias.padEnd(20)+"			Amount (Sats): "+t.decimalPipe.transform(n.amt_to_forward)+"
"):t.dataService.getAliasesFromPubkeys(n.pub_key,!1).pipe((0,d.R)(t.unSubs[1])).subscribe(a=>{e.push("
Channel: "+(a.node&&a.node.alias?a.node.alias.padEnd(20):n.pub_key.substring(0,17)+"...")+"			Amount (Sats): "+t.decimalPipe.transform(n.amt_to_forward)+"
")}),e},[])}onHTLCClick(e,t){t.payment_request&&""!==t.payment_request.trim()?this.dataService.decodePayment(t.payment_request,!1).pipe((0,pt.q)(1)).subscribe({next:n=>{this.showHTLCView(e,t,n)},error:n=>{this.showHTLCView(e,t,null)}}):this.showHTLCView(e,t,null)}showHTLCView(e,t,n){const a=[[{key:"payment_hash",value:t.payment_hash,title:"Payment Hash",width:100,type:f.Gi.STRING}],[{key:"preimage",value:e.preimage,title:"Preimage",width:100,type:f.Gi.STRING}],[{key:"payment_request",value:t.payment_request,title:"Payment Request",width:100,type:f.Gi.STRING}],[{key:"status",value:e.status,title:"Status",width:33,type:f.Gi.STRING},{key:"attempt_time_ns",value:+e.attempt_time_ns/1e9,title:"Attempt Time",width:33,type:f.Gi.DATE_TIME},{key:"resolve_time_ns",value:+e.resolve_time_ns/1e9,title:"Resolve Time",width:34,type:f.Gi.DATE_TIME}],[{key:"total_amt",value:e.route.total_amt,title:"Amount (Sats)",width:33,type:f.Gi.NUMBER},{key:"total_fees",value:e.route.total_fees,title:"Fee (Sats)",width:33,type:f.Gi.NUMBER},{key:"total_time_lock",value:e.route.total_time_lock,title:"Total Time Lock",width:34,type:f.Gi.NUMBER}],[{key:"hops",value:this.getHopDetails(e.route.hops),title:"Hops",width:100,type:f.Gi.ARRAY}]];n&&n.description&&""!==n.description&&a.splice(3,0,[{key:"description",value:n.description,title:"Description",width:100,type:f.Gi.STRING}]),this.store.dispatch(new ee.wu({data:{type:f.n_.INFORMATION,alertTitle:"HTLC Information",message:a,scrollable:e.route&&e.route.hops&&e.route.hops.length>1}}))}onPaymentClick(e){if(e.htlcs&&e.htlcs[0]&&e.htlcs[0].route&&e.htlcs[0].route.hops&&e.htlcs[0].route.hops.length>0){const t=e.htlcs[0].route.hops.reduce((e,t)=>""===e?t.pub_key:e+","+t.pub_key,"");this.dataService.getAliasesFromPubkeys(t,!0).pipe((0,d.R)(this.unSubs[3])).subscribe(t=>{this.showPaymentView(e,t.reduce((e,t)=>""===e?t:e+"\n"+t,""))})}else this.showPaymentView(e,"")}showPaymentView(e,t){const n=[[{key:"payment_hash",value:e.payment_hash,title:"Payment Hash",width:100,type:f.Gi.STRING}],[{key:"payment_preimage",value:e.payment_preimage,title:"Payment Preimage",width:100,type:f.Gi.STRING}],[{key:"payment_request",value:e.payment_request,title:"Payment Request",width:100,type:f.Gi.STRING}],[{key:"status",value:e.status,title:"Status",width:50,type:f.Gi.STRING},{key:"creation_date",value:e.creation_date,title:"Creation Date",width:50,type:f.Gi.DATE_TIME}],[{key:"value_msat",value:e.value_msat,title:"Value (mSats)",width:50,type:f.Gi.NUMBER},{key:"fee_msat",value:e.fee_msat,title:"Fee (mSats)",width:50,type:f.Gi.NUMBER}],[{key:"path",value:t,title:"Path",width:100,type:f.Gi.STRING}]];e.payment_request&&""!==e.payment_request.trim()?this.dataService.decodePayment(e.payment_request,!1).pipe((0,pt.q)(1)).subscribe(t=>{t&&t.description&&""!==t.description&&n.splice(3,0,[{key:"description",value:t.description,title:"Description",width:100,type:f.Gi.STRING}]),this.openPaymentAlert(n,e.htlcs&&e.htlcs[0]&&e.htlcs[0].route&&e.htlcs[0].route.hops&&e.htlcs[0].route.hops.length>1)}):this.openPaymentAlert(n,!1)}openPaymentAlert(e,t){this.store.dispatch(new ee.wu({data:{type:f.n_.INFORMATION,alertTitle:"Payment Information",message:e,scrollable:t}}))}applyFilter(e){this.payments.filter=e.value.trim().toLowerCase()}loadPaymentsTable(e){this.payments=new Ze.by(e?[...e]:[]),this.payments.sortingDataAccessor=(e,t)=>{switch(t){case"hops":return e.htlcs.length&&e.htlcs[0]&&e.htlcs[0].route&&e.htlcs[0].route.hops&&e.htlcs[0].route.hops.length?e.htlcs[0].route.hops.length:0;default:return e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():e[t]?+e[t]:null}},this.payments.sort=this.sort,this.payments.filterPredicate=(e,t)=>((e.creation_date?this.datePipe.transform(new Date(1e3*e.creation_date),"dd/MMM/YYYY HH:mm").toLowerCase():"")+JSON.stringify(e).toLowerCase()).includes(t)}onDownloadCSV(){if(this.payments.data&&this.payments.data.length>0){const e=JSON.parse(JSON.stringify(this.payments.data)),t=e.reduce((e,t)=>(t.payment_request&&""!==t.payment_request.trim()&&(e=""===e?t.payment_request:e+","+t.payment_request),e),"");this.dataService.decodePayments(t).pipe((0,d.R)(this.unSubs[4])).subscribe(t=>{let n=0;t.forEach((t,a)=>{for(;e[a+n].payment_hash!==t.payment_hash;)n+=1;e[a+n].description=t.description});const a=e.reduce((e,t)=>e.concat(t),[]);this.commonService.downloadFile(a,"Payments")})}}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(Z.mQ),o.Y36(C.v),o.Y36(dt.D),o.Y36(y.yh),o.Y36(St.V),o.Y36(Ft.l),o.Y36(a.JJ),o.Y36(a.uU))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-lightning-payments"]],viewQuery:function(e,t){if(1&e&&(o.Gf(Lt,5),o.Gf(xe.YE,5),o.Gf(fe.NW,5)),2&e){let e;o.iGM(e=o.CRH())&&(t.form=e.first),o.iGM(e=o.CRH())&&(t.sort=e.first),o.iGM(e=o.CRH())&&(t.paginator=e.first)}},inputs:{calledFrom:"calledFrom"},features:[o._Bn([{provide:fe.ye,useValue:(0,f.pt)("Payments")}])],decls:4,vars:3,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x"],["fxLayoutAlign","space-between stretch","fxLayout","row wrap",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",4,"ngIf"],["fxLayoutAlign","space-between stretch","fxLayout","row wrap"],["sendPaymentForm","ngForm"],["fxFlex","100"],["matInput","","placeholder","Payment Request","name","paymentRequest","tabindex","1","required","",3,"perfectScrollbar","ngModel","ngModelChange","matTextareaAutosize"],["paymentReq","ngModel"],[4,"ngIf"],["fxLayout","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","2","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","3",3,"click"],["fxLayout","row"],["mat-flat-button","","color","primary","tabindex","4",3,"click"],["fxLayout","column","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayoutAlign","start stretch","fxLayout.gt-sm","row wrap",1,"page-sub-title-container","mt-1"],["fxFlex","70","fxLayoutAlign","start start","fxLayoutAlign.gt-sm","start center"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30","fxLayoutAlign","start end"],["matInput","","placeholder","Filter",3,"keyup"],["fxLayout","row","fxLayoutAlign","start start"],["fxLayout","column","fxLayoutAlign","start end","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","creation_date"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","payment_hash"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","fee"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","value"],["matColumnDef","hops"],["matColumnDef","actions"],["mat-header-cell","","class","px-2",4,"matHeaderCellDef"],["mat-cell","","class","px-2","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_payment"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["matColumnDef","groupTotal"],["matColumnDef","groupHash"],["matColumnDef","groupFee"],["matColumnDef","groupValue"],["matColumnDef","groupHops"],["matColumnDef","groupAction"],["mat-cell","","class","px-2",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns","matRowDefWhen"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"length","pageSize","pageSizeOptions","showFirstLastButtons","page"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["class","dot green","matTooltip","Succeeded","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red","matTooltip","Failed","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["matTooltip","Succeeded","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Failed","matTooltipPosition","right",1,"dot","red",3,"ngClass"],["mat-cell","",3,"ngStyle"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-2"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"px-2"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],["fxLayoutAlign","start center",1,"htlc-row-span"],["fxLayoutAlign","start center","class","htlc-row-span pl-3",4,"ngFor","ngForOf"],["fxLayoutAlign","start center",1,"htlc-row-span","pl-3"],["fxLayoutAlign","start center","class","htlc-row-span",4,"ngFor","ngForOf"],["fxLayoutAlign","end center",1,"htlc-row-span"],["fxLayoutAlign","end center","class","htlc-row-span",4,"ngFor","ngForOf"],["mat-cell","",1,"px-2"],["mat-flat-button","","color","primary","type","button","tabindex","5",1,"btn-htlc-expand",3,"click"],["fxLayoutAlign","end center",4,"ngFor","ngForOf"],["mat-stroked-button","","color","primary","type","button","tabindex","6",1,"btn-htlc-info",3,"click"],["mat-row",""],["mat-footer-row","",3,"ngClass"],["mat-header-row",""]],template:function(e,t){1&e&&(o.TgZ(0,"div",0),o.YNc(1,Ut,12,3,"form",1),o.YNc(2,It,3,0,"div",2),o.YNc(3,Nn,50,17,"div",3),o.qZA()),2&e&&(o.xp6(1),o.Q6J("ngIf","home"===t.calledFrom),o.xp6(1),o.Q6J("ngIf","transactions"===t.calledFrom),o.xp6(1),o.Q6J("ngIf","transactions"===t.calledFrom))},directives:[l.xw,l.yH,l.Wh,a.O5,Ae._Y,Ae.JL,Ae.F,D.KE,Ce.Nt,Ae.Fj,Ce.D7,Ae.Q7,E.$V,Ae.JJ,Ae.On,q.lW,D.bx,D.TO,T.BN,Ze.BZ,xe.YE,a.mk,v.oO,Ze.w1,Ze.fO,Ze.Dz,Ze.mD,Ze.nj,Ze.Ke,Ze.as,fe.NW,r.pW,Ze.ge,xe.nU,Ze.ev,R.gM,a.PC,v.Zl,we.gD,we.$L,ve.ey,Ze.yh,a.sg,Ze.Gk,Ze.Q2,Ze.XQ],pipes:[a.uU,a.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-payment_hash[_ngcontent-%COMP%]{flex:1 1 20%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-groupAction[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-groupAction[_ngcontent-%COMP%] .btn-htlc-expand[_ngcontent-%COMP%]{width:9rem}.mat-column-groupAction[_ngcontent-%COMP%] .btn-htlc-info[_ngcontent-%COMP%]{margin-top:.5rem;width:9rem}.htlc-row-span[_ngcontent-%COMP%]{min-height:4.2rem}.mat-column-groupTotal[_ngcontent-%COMP%]{min-width:17rem}"],data:{animation:[Ne.Q]}}),e})();function In(e,t){if(1&e&&(o.TgZ(0,"button",26),o.TgZ(1,"mat-icon"),o._uU(2,"more_vert"),o.qZA(),o.qZA()),2&e){o.oxw();const e=o.MAs(11);o.Q6J("matMenuTriggerFor",e)}}function On(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"button",15),o.NdJ("click",function(){return o.CHM(e),o.oxw(3).onNavigateTo("/lnd/reports")}),o._uU(1,"Fees Summary"),o.qZA()}}function Jn(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"button",15),o.NdJ("click",function(){return o.CHM(e),o.oxw(3).onsortChannelsBy()}),o._uU(1),o.qZA()}if(2&e){const e=o.oxw(3);o.xp6(1),o.hij("Sort By ","Balance Score"===e.sortField?"Capacity":"Balance Score","")}}function Dn(e,t){1&e&&o._UZ(0,"mat-progress-bar",27)}function Rn(e,t){if(1&e&&o._UZ(0,"rtl-node-info",28),2&e){const e=o.oxw(3);o.Q6J("information",e.information)("showColorFieldSeparately",!1)}}function Mn(e,t){if(1&e&&o._UZ(0,"rtl-balances-info",29),2&e){const e=o.oxw(3);o.Q6J("balances",e.balances)("errorMessage",e.errorMessages[3]+" "+e.errorMessages[2])}}function En(e,t){if(1&e&&o._UZ(0,"rtl-channel-capacity-info",30),2&e){const e=o.oxw(3);o.Q6J("sortBy",e.sortField)("channelBalances",e.channelBalances)("allChannels",e.allChannelsCapacity)("errorMessage",e.errorMessages[3])}}function Qn(e,t){if(1&e&&o._UZ(0,"rtl-fee-info",31),2&e){const e=o.oxw(3);o.Q6J("fees",e.fees)("errorMessage",e.errorMessages[1])}}function Yn(e,t){if(1&e&&o._UZ(0,"rtl-channel-status-info",32),2&e){const e=o.oxw(3);o.Q6J("channelsStatus",e.channelsStatus)("errorMessage",e.errorMessages[3]+" "+e.errorMessages[4])}}function Pn(e,t){1&e&&(o.TgZ(0,"h3"),o._uU(1,"Error! Unable to find information!"),o.qZA())}const Bn=function(e){return{"dashboard-card-content":!0,"error-border":e}};function Gn(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"mat-grid-tile",8),o.TgZ(1,"mat-card",9),o.TgZ(2,"mat-card-header"),o.TgZ(3,"mat-card-title",10),o.TgZ(4,"div"),o._UZ(5,"fa-icon",11),o.TgZ(6,"span"),o._uU(7),o.qZA(),o.qZA(),o.TgZ(8,"div"),o.YNc(9,In,3,1,"button",12),o.TgZ(10,"mat-menu",13,14),o.TgZ(12,"button",15),o.NdJ("click",function(){const t=o.CHM(e).$implicit;return o.oxw(2).onNavigateTo(t.link)}),o._uU(13),o.qZA(),o.YNc(14,On,2,0,"button",16),o.YNc(15,Jn,2,1,"button",16),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.TgZ(16,"mat-card-content",17),o.YNc(17,Dn,1,0,"mat-progress-bar",18),o.TgZ(18,"div",19),o.YNc(19,Rn,1,2,"rtl-node-info",20),o.YNc(20,Mn,1,2,"rtl-balances-info",21),o.YNc(21,En,1,4,"rtl-channel-capacity-info",22),o.YNc(22,Qn,1,2,"rtl-fee-info",23),o.YNc(23,Yn,1,2,"rtl-channel-status-info",24),o.YNc(24,Pn,2,0,"h3",25),o.qZA(),o.qZA(),o.qZA(),o.qZA()}if(2&e){const e=t.$implicit,n=o.oxw(2);o.Q6J("colspan",e.cols)("rowspan",e.rows),o.xp6(5),o.Q6J("icon",e.icon),o.xp6(2),o.Oqu(e.title),o.xp6(2),o.Q6J("ngIf",e.link),o.xp6(4),o.hij("Go To ",e.goTo,""),o.xp6(1),o.Q6J("ngIf","fee"===e.id),o.xp6(1),o.Q6J("ngIf","capacity"===e.id),o.xp6(1),o.s9C("fxFlex","node"===e.id||"balance"===e.id?70:"fee"===e.id||"status"===e.id?78:90),o.Q6J("ngClass",o.VKq(17,Bn,"node"===e.id&&(null==n.apisCallStatus?null:n.apisCallStatus.FetchInfo.status)===n.apiCallStatusEnum.ERROR||"balance"===e.id&&((null==n.apisCallStatus?null:n.apisCallStatus.FetchAllChannels.status)===n.apiCallStatusEnum.ERROR||n.apisCallStatus.FetchBalanceBlockchain.status===n.apiCallStatusEnum.ERROR)||"capacity"===e.id&&(null==n.apisCallStatus?null:n.apisCallStatus.FetchAllChannels.status)===n.apiCallStatusEnum.ERROR||"fee"===e.id&&(null==n.apisCallStatus?null:n.apisCallStatus.FetchFees.status)===n.apiCallStatusEnum.ERROR||"status"===e.id&&((null==n.apisCallStatus?null:n.apisCallStatus.FetchAllChannels.status)===n.apiCallStatusEnum.ERROR||(null==n.apisCallStatus?null:n.apisCallStatus.FetchPendingChannels.status)===n.apiCallStatusEnum.ERROR))),o.xp6(1),o.Q6J("ngIf","node"===e.id&&(null==n.apisCallStatus?null:n.apisCallStatus.FetchInfo.status)===n.apiCallStatusEnum.INITIATED||"balance"===e.id&&((null==n.apisCallStatus?null:n.apisCallStatus.FetchAllChannels.status)===n.apiCallStatusEnum.INITIATED||n.apisCallStatus.FetchBalanceBlockchain.status===n.apiCallStatusEnum.INITIATED)||"capacity"===e.id&&(null==n.apisCallStatus?null:n.apisCallStatus.FetchAllChannels.status)===n.apiCallStatusEnum.INITIATED||"fee"===e.id&&(null==n.apisCallStatus?null:n.apisCallStatus.FetchFees.status)===n.apiCallStatusEnum.INITIATED||"status"===e.id&&((null==n.apisCallStatus?null:n.apisCallStatus.FetchAllChannels.status)===n.apiCallStatusEnum.INITIATED||(null==n.apisCallStatus?null:n.apisCallStatus.FetchPendingChannels.status)===n.apiCallStatusEnum.INITIATED)),o.xp6(1),o.Q6J("ngSwitch",e.id),o.xp6(1),o.Q6J("ngSwitchCase","node"),o.xp6(1),o.Q6J("ngSwitchCase","balance"),o.xp6(1),o.Q6J("ngSwitchCase","capacity"),o.xp6(1),o.Q6J("ngSwitchCase","fee"),o.xp6(1),o.Q6J("ngSwitchCase","status")}}function Hn(e,t){if(1&e&&(o.TgZ(0,"div",2),o.TgZ(1,"div",3),o._UZ(2,"fa-icon",4),o.TgZ(3,"span",5),o._uU(4),o.qZA(),o.qZA(),o.TgZ(5,"mat-grid-list",6),o.YNc(6,Gn,25,19,"mat-grid-tile",7),o.qZA(),o.qZA()),2&e){const e=o.oxw();o.xp6(2),o.Q6J("icon",(null==e.apisCallStatus?null:e.apisCallStatus.FetchInfo.status)===e.apiCallStatusEnum.ERROR?e.faFrown:e.faSmile),o.xp6(2),o.Oqu((null==e.apisCallStatus?null:e.apisCallStatus.FetchInfo.status)===e.apiCallStatusEnum.COMPLETED?"Welcome "+e.information.alias+"! Your node is up and running.":(null==e.apisCallStatus?null:e.apisCallStatus.FetchInfo.status)===e.apiCallStatusEnum.INITIATED?"Wait! Getting your node information...":"Error! Please check the server connection."),o.xp6(1),o.Q6J("rowHeight",e.operatorCardHeight),o.xp6(1),o.Q6J("ngForOf",e.operatorCards)}}function zn(e,t){if(1&e&&(o.TgZ(0,"button",26),o.TgZ(1,"mat-icon"),o._uU(2,"more_vert"),o.qZA(),o.qZA()),2&e){o.oxw();const e=o.MAs(9);o.Q6J("matMenuTriggerFor",e)}}function Vn(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"mat-card-header"),o.TgZ(1,"mat-card-title",10),o.TgZ(2,"div"),o._UZ(3,"fa-icon",11),o.TgZ(4,"span"),o._uU(5),o.qZA(),o.qZA(),o.TgZ(6,"div"),o.YNc(7,zn,3,1,"button",12),o.TgZ(8,"mat-menu",13,42),o.TgZ(10,"button",15),o.NdJ("click",function(){o.CHM(e);const t=o.oxw().$implicit;return o.oxw(2).onNavigateTo(t.link)}),o._uU(11),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA()}if(2&e){const e=o.oxw().$implicit;o.xp6(3),o.Q6J("icon",e.icon),o.xp6(2),o.Oqu(e.title),o.xp6(2),o.Q6J("ngIf",e.link),o.xp6(4),o.hij("Go To ",e.goTo,"")}}function Wn(e,t){1&e&&o._UZ(0,"mat-progress-bar",27)}function Xn(e,t){if(1&e&&o._UZ(0,"rtl-node-info",43),2&e){const e=o.oxw(3);o.Q6J("information",e.information)}}function $n(e,t){if(1&e&&o._UZ(0,"rtl-balances-info",29),2&e){const e=o.oxw(3);o.Q6J("balances",e.balances)("errorMessage",e.errorMessages[3]+" "+e.errorMessages[2])}}function jn(e,t){if(1&e&&o._UZ(0,"rtl-channel-liquidity-info",44),2&e){const e=o.oxw(3);o.Q6J("direction","In")("totalLiquidity",e.totalInboundLiquidity)("allChannels",e.allInboundChannels)("errorMessage",e.errorMessages[3])}}function Kn(e,t){if(1&e&&o._UZ(0,"rtl-channel-liquidity-info",44),2&e){const e=o.oxw(3);o.Q6J("direction","Out")("totalLiquidity",e.totalOutboundLiquidity)("allChannels",e.allOutboundChannels)("errorMessage",e.errorMessages[3])}}function ea(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"button",26),o.TgZ(1,"mat-icon"),o._uU(2,"more_vert"),o.qZA(),o.qZA(),o.TgZ(3,"mat-menu",13,52),o.TgZ(5,"button",15),o.NdJ("click",function(){o.CHM(e);const t=o.oxw(2).$implicit;return o.oxw(2).onNavigateTo(t.link)}),o._uU(6),o.qZA(),o.TgZ(7,"button",15),o.NdJ("click",function(){return o.CHM(e),o.oxw(4).onNavigateTo("/lnd/reports/transactions")}),o._uU(8,"Transactions Summary"),o.qZA(),o.qZA()}if(2&e){const e=o.MAs(4),t=o.oxw(2).$implicit;o.Q6J("matMenuTriggerFor",e),o.xp6(6),o.hij("Go To ",t.goTo,"")}}function ta(e,t){1&e&&(o.TgZ(0,"span",45),o.TgZ(1,"mat-tab-group",46),o.TgZ(2,"mat-tab",47),o._UZ(3,"rtl-lightning-invoices",48),o.qZA(),o.TgZ(4,"mat-tab",49),o._UZ(5,"rtl-lightning-payments",48),o.qZA(),o.TgZ(6,"mat-tab",50),o.YNc(7,ea,9,2,"ng-template",51),o.qZA(),o.qZA(),o.qZA()),2&e&&(o.xp6(3),o.Q6J("calledFrom","home"),o.xp6(2),o.Q6J("calledFrom","home"),o.xp6(1),o.Q6J("disabled",!0))}function na(e,t){1&e&&(o.TgZ(0,"h3"),o._uU(1,"Error! Unable to find information!"),o.qZA())}const aa=function(e){return{"p-0":e}};function ia(e,t){if(1&e&&(o.TgZ(0,"mat-grid-tile",8),o.TgZ(1,"mat-card",35),o.YNc(2,Vn,12,4,"mat-card-header",36),o.TgZ(3,"mat-card-content",37),o.YNc(4,Wn,1,0,"mat-progress-bar",18),o.TgZ(5,"div",38),o.YNc(6,Xn,1,1,"rtl-node-info",39),o.YNc(7,$n,1,2,"rtl-balances-info",21),o.YNc(8,jn,1,4,"rtl-channel-liquidity-info",40),o.YNc(9,Kn,1,4,"rtl-channel-liquidity-info",40),o.YNc(10,ta,8,3,"span",41),o.YNc(11,na,2,0,"h3",25),o.qZA(),o.qZA(),o.qZA(),o.qZA()),2&e){const e=t.$implicit,n=o.oxw(2);o.Q6J("colspan",e.cols)("rowspan",e.rows),o.xp6(1),o.Q6J("ngClass",o.VKq(13,aa,"transactions"===e.id)),o.xp6(1),o.Q6J("ngIf","transactions"!==e.id),o.xp6(1),o.s9C("fxFlex","transactions"===e.id?100:"balance"===e.id?70:90),o.Q6J("ngClass",o.VKq(15,Bn,"node"===e.id&&(null==n.apisCallStatus?null:n.apisCallStatus.FetchInfo.status)===n.apiCallStatusEnum.ERROR||"balance"===e.id&&((null==n.apisCallStatus?null:n.apisCallStatus.FetchAllChannels.status)===n.apiCallStatusEnum.ERROR||n.apisCallStatus.FetchBalanceBlockchain.status===n.apiCallStatusEnum.ERROR)||("inboundLiq"===e.id||"outboundLiq"===e.id)&&(null==n.apisCallStatus?null:n.apisCallStatus.FetchAllChannels.status)===n.apiCallStatusEnum.ERROR)),o.xp6(1),o.Q6J("ngIf","node"===e.id&&(null==n.apisCallStatus?null:n.apisCallStatus.FetchInfo.status)===n.apiCallStatusEnum.INITIATED||"balance"===e.id&&((null==n.apisCallStatus?null:n.apisCallStatus.FetchAllChannels.status)===n.apiCallStatusEnum.INITIATED||n.apisCallStatus.FetchBalanceBlockchain.status===n.apiCallStatusEnum.INITIATED)||("inboundLiq"===e.id||"outboundLiq"===e.id)&&(null==n.apisCallStatus?null:n.apisCallStatus.FetchAllChannels.status)===n.apiCallStatusEnum.INITIATED),o.xp6(1),o.Q6J("ngSwitch",e.id),o.xp6(1),o.Q6J("ngSwitchCase","node"),o.xp6(1),o.Q6J("ngSwitchCase","balance"),o.xp6(1),o.Q6J("ngSwitchCase","inboundLiq"),o.xp6(1),o.Q6J("ngSwitchCase","outboundLiq"),o.xp6(1),o.Q6J("ngSwitchCase","transactions")}}function sa(e,t){if(1&e&&(o.TgZ(0,"div",33),o._UZ(1,"fa-icon",4),o.TgZ(2,"span",5),o._uU(3),o.qZA(),o.qZA(),o.TgZ(4,"mat-grid-list",34),o.YNc(5,ia,12,17,"mat-grid-tile",7),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Q6J("icon",e.faSmile),o.xp6(2),o.hij("Welcome ",e.information.alias,"! Your node is up and running."),o.xp6(1),o.Q6J("rowHeight",e.merchantCardHeight),o.xp6(1),o.Q6J("ngForOf",e.merchantCards)}}let oa=(()=>{class e{constructor(e,t,n,a,i){switch(this.logger=e,this.store=t,this.actions=n,this.commonService=a,this.router=i,this.faSmile=m.I3,this.faFrown=m.Kf,this.faAngleDoubleDown=g.Sbq,this.faAngleDoubleUp=g.Vfw,this.faChartPie=g.OS1,this.faBolt=g.BDt,this.faServer=g.xf3,this.faNetworkWired=g.kXW,this.flgChildInfoUpdated=!1,this.userPersonaEnum=f.ol,this.activeChannels=0,this.inactiveChannels=0,this.channelBalances={localBalance:0,remoteBalance:0,balancedness:0},this.selNode={},this.information={},this.balances={onchain:-1,lightning:-1,total:0},this.allChannels=[],this.channelsStatus={},this.allChannelsCapacity=[],this.allInboundChannels=[],this.allOutboundChannels=[],this.totalInboundLiquidity=0,this.totalOutboundLiquidity=0,this.operatorCards=[],this.merchantCards=[],this.screenSize="",this.operatorCardHeight="330px",this.merchantCardHeight="65px",this.sortField="Balance Score",this.screenSizeEnum=f.cu,this.errorMessages=["","","","",""],this.apisCallStatus=null,this.apiCallStatusEnum=f.Bn,this.unSubs=[new p.x,new p.x,new p.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize){case f.cu.XS:this.operatorCards=[{id:"node",icon:this.faServer,title:"Node Information",cols:10,rows:1},{id:"balance",goTo:"On-Chain",link:"/lnd/onchain",icon:this.faChartPie,title:"Balances",cols:10,rows:1},{id:"fee",goTo:"Routing",link:"/lnd/routing",icon:this.faBolt,title:"Routing Fee",cols:10,rows:1},{id:"status",goTo:"Channels",link:"/lnd/connections",icon:this.faNetworkWired,title:"Channels",cols:10,rows:1},{id:"capacity",goTo:"Channels",link:"/lnd/connections",icon:this.faNetworkWired,title:"Channels Capacity",cols:10,rows:2}],this.merchantCards=[{id:"balance",goTo:"On-Chain",link:"/lnd/onchain",icon:this.faChartPie,title:"Balances",cols:6,rows:4},{id:"transactions",goTo:"Transactions",link:"/lnd/transactions",title:"",cols:6,rows:6},{id:"inboundLiq",goTo:"Channels",link:"/lnd/connections",icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:6,rows:8},{id:"outboundLiq",goTo:"Channels",link:"/lnd/connections",icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:6,rows:8}];break;case f.cu.SM:case f.cu.MD:this.operatorCards=[{id:"node",icon:this.faServer,title:"Node Information",cols:5,rows:1},{id:"balance",goTo:"On-Chain",link:"/lnd/onchain",icon:this.faChartPie,title:"Balances",cols:5,rows:1},{id:"fee",goTo:"Routing",link:"/lnd/routing",icon:this.faBolt,title:"Routing Fee",cols:5,rows:1},{id:"status",goTo:"Channels",link:"/lnd/connections",icon:this.faNetworkWired,title:"Channels",cols:5,rows:1},{id:"capacity",goTo:"Channels",link:"/lnd/connections",icon:this.faNetworkWired,title:"Channels Capacity",cols:10,rows:2}],this.merchantCards=[{id:"balance",goTo:"On-Chain",link:"/lnd/onchain",icon:this.faChartPie,title:"Balances",cols:3,rows:4},{id:"transactions",goTo:"Transactions",link:"/lnd/transactions",title:"",cols:3,rows:4},{id:"inboundLiq",goTo:"Channels",link:"/lnd/connections",icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:3,rows:8},{id:"outboundLiq",goTo:"Channels",link:"/lnd/connections",icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:3,rows:8}];break;default:this.operatorCards=[{id:"node",icon:this.faServer,title:"Node Information",cols:3,rows:1},{id:"balance",goTo:"On-Chain",link:"/lnd/onchain",icon:this.faChartPie,title:"Balances",cols:3,rows:1},{id:"capacity",goTo:"Channels",link:"/lnd/connections",icon:this.faNetworkWired,title:"Channels Capacity",cols:4,rows:2},{id:"fee",goTo:"Routing",link:"/lnd/routing",icon:this.faBolt,title:"Routing Fee",cols:3,rows:1},{id:"status",goTo:"Channels",link:"/lnd/connections",icon:this.faNetworkWired,title:"Channels",cols:3,rows:1}],this.merchantCards=[{id:"balance",goTo:"On-Chain",link:"/lnd/onchain",icon:this.faChartPie,title:"Balances",cols:2,rows:5},{id:"inboundLiq",goTo:"Channels",link:"/lnd/connections",icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:2,rows:10},{id:"outboundLiq",goTo:"Channels",link:"/lnd/connections",icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:2,rows:10},{id:"transactions",goTo:"Transactions",link:"/lnd/transactions",title:"",cols:2,rows:5}]}}ngOnInit(){this.store.select("lnd").pipe((0,d.R)(this.unSubs[1])).subscribe(e=>{this.errorMessages=["","","","",""],this.apisCallStatus=e.apisCallStatus,e.apisCallStatus.FetchInfo.status===f.Bn.ERROR&&(this.errorMessages[0]="object"==typeof this.apisCallStatus.FetchInfo.message?JSON.stringify(this.apisCallStatus.FetchInfo.message):this.apisCallStatus.FetchInfo.message),e.apisCallStatus.FetchFees.status===f.Bn.ERROR&&(this.errorMessages[1]="object"==typeof this.apisCallStatus.FetchFees.message?JSON.stringify(this.apisCallStatus.FetchFees.message):this.apisCallStatus.FetchFees.message),e.apisCallStatus.FetchBalanceBlockchain.status===f.Bn.ERROR&&(this.errorMessages[2]="object"==typeof this.apisCallStatus.FetchBalanceBlockchain.message?JSON.stringify(this.apisCallStatus.FetchBalanceBlockchain.message):this.apisCallStatus.FetchBalanceBlockchain.message),e.apisCallStatus.FetchAllChannels.status===f.Bn.ERROR&&(this.errorMessages[3]="object"==typeof this.apisCallStatus.FetchAllChannels.message?JSON.stringify(this.apisCallStatus.FetchAllChannels.message):this.apisCallStatus.FetchAllChannels.message),e.apisCallStatus.FetchPendingChannels.status===f.Bn.ERROR&&(this.errorMessages[4]="object"==typeof this.apisCallStatus.FetchPendingChannels.message?JSON.stringify(this.apisCallStatus.FetchPendingChannels.message):this.apisCallStatus.FetchPendingChannels.message),this.selNode=e.nodeSettings,this.information=e.information,this.fees=e.fees,this.balances.onchain=+e.blockchainBalance.total_balance>=0?+e.blockchainBalance.total_balance:0;const t=e.totalLocalBalance?+e.totalLocalBalance:0,n=e.totalRemoteBalance?+e.totalRemoteBalance:0;this.channelBalances={localBalance:t,remoteBalance:n,balancedness:+(1-Math.abs((t-n)/(t+n))).toFixed(3)},this.balances.lightning=e.totalLocalBalance,this.balances.total=this.balances.lightning+this.balances.onchain,this.balances=Object.assign({},this.balances),this.activeChannels=e.numberOfActiveChannels,this.inactiveChannels=e.numberOfInactiveChannels,this.channelsStatus={active:{channels:e.numberOfActiveChannels,capacity:e.totalCapacityActive},inactive:{channels:e.numberOfInactiveChannels,capacity:e.totalCapacityInactive},pending:{channels:e.numberOfPendingChannels.open.num_channels,capacity:e.numberOfPendingChannels.open.limbo_balance},closing:{channels:e.numberOfPendingChannels.closing.num_channels+e.numberOfPendingChannels.force_closing.num_channels+e.numberOfPendingChannels.waiting_close.num_channels,capacity:e.numberOfPendingChannels.total_limbo_balance}},this.totalInboundLiquidity=0,this.totalOutboundLiquidity=0,this.allChannels=e.allChannels.filter(e=>!0===e.active),this.allChannelsCapacity=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(this.allChannels,"balancedness"))),this.allInboundChannels=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(this.allChannels.filter(e=>e.remote_balance>0),"remote_balance"))),this.allOutboundChannels=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(this.allChannels.filter(e=>e.local_balance>0),"local_balance"))),this.allChannels.forEach(e=>{this.totalInboundLiquidity=this.totalInboundLiquidity+ +e.remote_balance,this.totalOutboundLiquidity=this.totalOutboundLiquidity+ +e.local_balance}),this.flgChildInfoUpdated=this.balances.lightning>=0&&this.balances.onchain>=0&&this.fees.month_fee_sum>=0,this.logger.info(e)}),this.actions.pipe((0,d.R)(this.unSubs[2]),(0,h.h)(e=>e.type===x.VS||e.type===x.HS)).subscribe(e=>{e.type===x.VS&&(this.flgChildInfoUpdated=!1),e.type===x.HS&&(this.flgChildInfoUpdated=!0)})}onNavigateTo(e){this.router.navigateByUrl(e)}onsortChannelsBy(){"Balance Score"===this.sortField?(this.sortField="Capacity",this.allChannelsCapacity=this.allChannels.sort((e,t)=>{const n=+e.local_balance+ +e.remote_balance,a=+t.local_balance+ +t.remote_balance;return n>a?-1:n{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(Z.mQ),o.Y36(y.yh),o.Y36(A.eX),o.Y36(C.v),o.Y36(i.F0))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-home"]],decls:3,vars:2,consts:[["fxLayout","column",4,"ngIf","ngIfElse"],["merchantDashboard",""],["fxLayout","column"],["fxLayout","row","fxLayoutAlign","start start",1,"page-title-container","mb-0"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["cols","10",3,"rowHeight"],[3,"colspan","rowspan",4,"ngFor","ngForOf"],[3,"colspan","rowspan"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",1,"h-100","dashboard-card","mt-4"],["fxLayoutAlign","space-between center"],[1,"mr-1",3,"icon"],["mat-icon-button","","class","more-button","aria-label","Toggle menu",3,"matMenuTriggerFor",4,"ngIf"],["xPosition","before",1,"dashboard-vert-menu"],["menuOperator","matMenu"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"click",4,"ngIf"],["fxLayout","column",3,"fxFlex","ngClass"],["mode","indeterminate",4,"ngIf"],["fxLayout","column","fxFlex","100",3,"ngSwitch"],["fxFlex","100",3,"information","showColorFieldSeparately",4,"ngSwitchCase"],["fxFlex","100",3,"balances","errorMessage",4,"ngSwitchCase"],["fxFlex","100",3,"sortBy","channelBalances","allChannels","errorMessage",4,"ngSwitchCase"],["fxFlex","100",3,"fees","errorMessage",4,"ngSwitchCase"],["fxFlex","100",3,"channelsStatus","errorMessage",4,"ngSwitchCase"],[4,"ngSwitchDefault"],["mat-icon-button","","aria-label","Toggle menu",1,"more-button",3,"matMenuTriggerFor"],["mode","indeterminate"],["fxFlex","100",3,"information","showColorFieldSeparately"],["fxFlex","100",3,"balances","errorMessage"],["fxFlex","100",3,"sortBy","channelBalances","allChannels","errorMessage"],["fxFlex","100",3,"fees","errorMessage"],["fxFlex","100",3,"channelsStatus","errorMessage"],["fxLayout","row","fxLayoutAlign","start end",1,"page-title-container","mb-0"],["cols","6",3,"rowHeight"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",1,"h-100","dashboard-card","mt-4",3,"ngClass"],[4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",3,"fxFlex","ngClass"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",3,"ngSwitch"],["fxFlex","100",3,"information",4,"ngSwitchCase"],["fxFlex","100",3,"direction","totalLiquidity","allChannels","errorMessage",4,"ngSwitchCase"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start",3,"perfectScrollbar",4,"ngSwitchCase"],["menuMerchant","matMenu"],["fxFlex","100",3,"information"],["fxFlex","100",3,"direction","totalLiquidity","allChannels","errorMessage"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start",3,"perfectScrollbar"],["fxLayout","column","fxFlex","100",1,"w-100","dashboard-tabs-group"],["label","Receive"],[3,"calledFrom"],["label","Pay"],[3,"disabled"],["mat-tab-label",""],["menuTransactions","matMenu"]],template:function(e,t){if(1&e&&(o.YNc(0,Hn,7,4,"div",0),o.YNc(1,sa,6,4,"ng-template",null,1,o.W1O)),2&e){const e=o.MAs(2);o.Q6J("ngIf",t.selNode.userPersona===t.userPersonaEnum.OPERATOR)("ngIfElse",e)}},directives:[a.O5,l.xw,l.Wh,T.BN,b.Il,a.sg,b.DX,w.a8,l.yH,w.dk,w.n5,_.VK,_.OP,w.dn,a.mk,v.oO,a.RF,a.n9,a.ED,q.lW,_.p6,S.Hw,r.pW,U,J,H,W,j,me,E.$V,ge.SP,ge.uX,ut,Un,ge.uD],styles:[""]}),e})();var la=n(882),ra=n(1050);function ca(e,t){if(1&e&&(o.TgZ(0,"span",10),o._uU(1,"Channels"),o.qZA()),2&e){const e=o.oxw();o.s9C("matBadge",e.activeChannels)}}function ua(e,t){if(1&e&&(o.TgZ(0,"span",10),o._uU(1,"Peers"),o.qZA()),2&e){const e=o.oxw();o.s9C("matBadge",e.activePeers)}}let pa=(()=>{class e{constructor(e,t,n){this.store=e,this.logger=t,this.router=n,this.selNode={},this.activePeers=0,this.activeChannels=0,this.faUsers=g.FVb,this.faChartPie=g.OS1,this.balances=[{title:"Total Balance",dataValue:0},{title:"Confirmed",dataValue:0},{title:"Unconfirmed",dataValue:0}],this.links=[{link:"channels",name:"Channels"},{link:"peers",name:"Peers"}],this.activeLink=0,this.unSubs=[new p.x,new p.x,new p.x,new p.x]}ngOnInit(){this.activeLink=this.links.findIndex(e=>e.link===this.router.url.substring(this.router.url.lastIndexOf("/")+1)),this.router.events.pipe((0,d.R)(this.unSubs[0]),(0,h.h)(e=>e instanceof i.Av)).subscribe(e=>{this.activeLink=this.links.findIndex(t=>t.link===e.urlAfterRedirects.substring(e.urlAfterRedirects.lastIndexOf("/")+1))}),this.store.select("lnd").pipe((0,d.R)(this.unSubs[1])).subscribe(e=>{this.selNode=e.nodeSettings,this.activePeers=e.peers&&e.peers.length?e.peers.length:0,this.activeChannels=e.numberOfActiveChannels,this.balances=[{title:"Total Balance",dataValue:e.blockchainBalance.total_balance||0},{title:"Confirmed",dataValue:e.blockchainBalance.confirmed_balance},{title:"Unconfirmed",dataValue:e.blockchainBalance.unconfirmed_balance}],this.logger.info(e)})}onSelectedTabChange(e){this.router.navigateByUrl("/lnd/connections/"+this.links[e.index].link)}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(y.yh),o.Y36(Z.mQ),o.Y36(i.F0))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-connections"]],decls:22,vars:4,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x","mb-4"],["fxLayout","column"],[3,"values"],["fxLayout","column",1,"padding-gap-x"],[3,"selectedIndex","selectedIndexChange","selectedTabChange"],["mat-tab-label",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large"],["matBadgeOverlap","false",1,"tab-badge",3,"matBadge"]],template:function(e,t){1&e&&(o.TgZ(0,"div",0),o._UZ(1,"fa-icon",1),o.TgZ(2,"span",2),o._uU(3,"On-chain Balance"),o.qZA(),o.qZA(),o.TgZ(4,"div",3),o.TgZ(5,"mat-card"),o.TgZ(6,"mat-card-content",4),o._UZ(7,"rtl-currency-unit-converter",5),o.qZA(),o.qZA(),o.qZA(),o.TgZ(8,"div",0),o._UZ(9,"fa-icon",1),o.TgZ(10,"span",2),o._uU(11,"Connections"),o.qZA(),o.qZA(),o.TgZ(12,"div",6),o.TgZ(13,"mat-card"),o.TgZ(14,"mat-card-content",4),o.TgZ(15,"mat-tab-group",7),o.NdJ("selectedIndexChange",function(e){return t.activeLink=e})("selectedTabChange",function(e){return t.onSelectedTabChange(e)}),o.TgZ(16,"mat-tab"),o.YNc(17,ca,2,1,"ng-template",8),o.qZA(),o.TgZ(18,"mat-tab"),o.YNc(19,ua,2,1,"ng-template",8),o.qZA(),o.qZA(),o.TgZ(20,"div",9),o._UZ(21,"router-outlet"),o.qZA(),o.qZA(),o.qZA(),o.qZA()),2&e&&(o.xp6(1),o.Q6J("icon",t.faChartPie),o.xp6(6),o.Q6J("values",t.balances),o.xp6(2),o.Q6J("icon",t.faUsers),o.xp6(6),o.Q6J("selectedIndex",t.activeLink))},directives:[l.xw,l.Wh,T.BN,w.a8,w.dn,la.D,ge.SP,ge.uX,ge.uD,l.yH,i.lC,ra.k],styles:[""]}),e})();var da=n(1258),ha=n(1681),ma=n(3474);const ga=["form"];function fa(e,t){if(1&e&&(o.TgZ(0,"mat-option",37),o._uU(1),o.qZA()),2&e){const e=t.$implicit;o.Q6J("value",e),o.xp6(1),o.Oqu(e.alias?e.alias:e.pub_key?e.pub_key:"")}}function xa(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Peer alias is required."),o.qZA())}function Za(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Peer not found in the list."),o.qZA())}function ya(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"mat-form-field",1),o._UZ(1,"input",34),o.TgZ(2,"mat-autocomplete",35,36),o.NdJ("optionSelected",function(){return o.CHM(e),o.oxw().onSelectedPeerChanged()}),o.YNc(4,fa,2,2,"mat-option",24),o.ALo(5,"async"),o.qZA(),o.YNc(6,xa,2,0,"mat-error",17),o.YNc(7,Za,2,0,"mat-error",17),o.qZA()}if(2&e){const e=o.MAs(3),t=o.oxw();o.xp6(1),o.Q6J("formControl",t.selectedPeer)("matAutocomplete",e),o.xp6(1),o.Q6J("displayWith",t.displayFn),o.xp6(2),o.Q6J("ngForOf",o.lcZ(5,6,t.filteredPeers)),o.xp6(2),o.Q6J("ngIf",null==t.selectedPeer.errors?null:t.selectedPeer.errors.required),o.xp6(1),o.Q6J("ngIf",null==t.selectedPeer.errors?null:t.selectedPeer.errors.notfound)}}function Aa(e,t){1&e&&o.GkF(0)}function Ca(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Amount is required."),o.qZA())}function Ta(e,t){if(1&e&&(o.TgZ(0,"mat-error"),o._uU(1),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.hij("Amount must be less than or equal to ",e.totalBalance,".")}}function ba(e,t){if(1&e&&(o.TgZ(0,"mat-option",37),o._uU(1),o.qZA()),2&e){const e=t.$implicit;o.Q6J("value",e.id),o.xp6(1),o.hij(" ",e.name," ")}}function wa(e,t){if(1&e&&(o.TgZ(0,"mat-error"),o._uU(1),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.hij("","1"===e.selTransType?"Target Confirmation Blocks":"Fee"," is required.")}}function _a(e,t){if(1&e&&(o.TgZ(0,"span"),o._uU(1),o.qZA()),2&e){const e=o.oxw(2);o.xp6(1),o.Oqu(e.channelConnectionError)}}function va(e,t){if(1&e&&(o.TgZ(0,"div",38),o._UZ(1,"fa-icon",39),o.YNc(2,_a,2,1,"span",17),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Q6J("icon",e.faExclamationTriangle),o.xp6(1),o.Q6J("ngIf",""!==e.channelConnectionError)}}function qa(e,t){if(1&e&&(o.TgZ(0,"mat-expansion-panel",41),o.TgZ(1,"mat-expansion-panel-header"),o.TgZ(2,"mat-panel-title"),o.TgZ(3,"span"),o._uU(4,"Peer: \xa0"),o.qZA(),o.TgZ(5,"strong",42),o._uU(6),o.qZA(),o.qZA(),o.qZA(),o.TgZ(7,"div",9),o.TgZ(8,"div",0),o.TgZ(9,"div",1),o.TgZ(10,"h4",43),o._uU(11,"Pubkey"),o.qZA(),o.TgZ(12,"span",44),o._uU(13),o.qZA(),o.qZA(),o.qZA(),o._UZ(14,"mat-divider",45),o.TgZ(15,"div",0),o.TgZ(16,"div",46),o.TgZ(17,"h4",43),o._uU(18,"Address"),o.qZA(),o.TgZ(19,"span",47),o._uU(20),o.qZA(),o.qZA(),o.TgZ(21,"div",46),o.TgZ(22,"h4",43),o._uU(23,"Inbound"),o.qZA(),o.TgZ(24,"span",47),o._uU(25),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA()),2&e){const e=o.oxw(2);o.xp6(6),o.Oqu((null==e.peer?null:e.peer.alias)||(null==e.peer?null:e.peer.address)),o.xp6(7),o.Oqu(e.peer.pub_key),o.xp6(7),o.Oqu(null==e.peer?null:e.peer.address),o.xp6(5),o.Oqu(null!=e.peer&&e.peer.inbound?"True":"False")}}function Sa(e,t){if(1&e&&o.YNc(0,qa,26,4,"mat-expansion-panel",40),2&e){const e=o.oxw();o.Q6J("ngIf",e.peer)}}let Fa=(()=>{class e{constructor(e,t,n,a){this.dialogRef=e,this.data=t,this.store=n,this.actions=a,this.selectedPeer=new Ae.NI,this.amount=new Ae.NI,this.faExclamationTriangle=g.eHv,this.channelConnectionError="",this.advancedTitle="Advanced Options",this.totalBalance=0,this.selectedPubkey="",this.isPrivate=!1,this.selTransType="0",this.spendUnconfirmed=!1,this.transTypeValue="",this.transTypes=f.Dr,this.unSubs=[new p.x,new p.x]}ngOnInit(){this.information=this.data.message.information,this.totalBalance=this.data.message.balance,this.alertTitle=this.data.alertTitle,this.peer=this.data.message.peer?this.data.message.peer:null,this.peers=this.data.message.peers&&this.data.message.peers.length?this.data.message.peers:[],this.actions.pipe((0,d.R)(this.unSubs[0]),(0,h.h)(e=>e.type===x.JE||e.type===x.Mx)).subscribe(e=>{e.type===x.JE&&e.payload.status===f.Bn.ERROR&&"SaveNewChannel"===e.payload.action&&(this.channelConnectionError=e.payload.message),e.type===x.Mx&&this.dialogRef.close()});let e="",t="";this.sortedPeers=this.peers.sort((n,a)=>(e=n.alias?n.alias.toLowerCase():n.pub_key?n.pub_key.toLowerCase():"",t=a.alias?a.alias.toLowerCase():n.pub_key.toLowerCase(),et?1:0)),this.filteredPeers=this.selectedPeer.valueChanges.pipe((0,d.R)(this.unSubs[1]),(0,da.O)(""),(0,ha.U)(e=>"string"==typeof e?e:e.alias?e.alias:e.pub_key),(0,ha.U)(e=>e?this.filterPeers(e):this.sortedPeers.slice()))}filterPeers(e){return this.sortedPeers.filter(t=>0===t.alias.toLowerCase().indexOf(e?e.toLowerCase():""))}displayFn(e){return e&&e.alias?e.alias:e&&e.pub_key?e.pub_key:""}onSelectedPeerChanged(){if(this.channelConnectionError="",this.selectedPubkey=this.selectedPeer.value&&this.selectedPeer.value.pub_key?this.selectedPeer.value.pub_key:null,"string"==typeof this.selectedPeer.value){const e=this.peers.filter(e=>e.alias.length===this.selectedPeer.value.length&&0===e.alias.toLowerCase().indexOf(this.selectedPeer.value?this.selectedPeer.value.toLowerCase():""));1===e.length&&e[0].pub_key&&(this.selectedPubkey=e[0].pub_key)}this.selectedPeer.setErrors(this.selectedPeer.value&&!this.selectedPubkey?{notfound:!0}:null)}onClose(){this.dialogRef.close(!1)}resetData(){this.selectedPeer.setValue(""),this.fundingAmount=null,this.isPrivate=!1,this.spendUnconfirmed=!1,this.selTransType="0",this.transTypeValue="",this.channelConnectionError="",this.advancedTitle="Advanced Options",this.form.resetForm()}onOpenChannel(){if(!this.peer&&!this.selectedPubkey||!this.fundingAmount||this.totalBalance-this.fundingAmount<0||("1"===this.selTransType||"2"===this.selTransType)&&!this.transTypeValue)return!0;this.store.dispatch(new x.nb({selectedPeerPubkey:this.peer&&this.peer.pub_key?this.peer.pub_key:this.selectedPubkey,fundingAmount:this.fundingAmount,private:this.isPrivate,transType:this.selTransType,transTypeValue:this.transTypeValue,spendUnconfirmed:this.spendUnconfirmed}))}onAdvancedPanelToggle(e){this.advancedTitle=e?"Advanced Options | "+("1"===this.selTransType?"Target Confirmation Blocks: ":"2"===this.selTransType?"Fee (Sats/vByte): ":"Default")+("1"===this.selTransType||"2"===this.selTransType?this.transTypeValue:"")+" | Spend Unconfirmed Output: "+(this.spendUnconfirmed?"Yes":"No"):"Advanced Options"}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(ye.so),o.Y36(ye.WI),o.Y36(y.yh),o.Y36(A.eX))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-open-channel"]],viewQuery:function(e,t){if(1&e&&o.Gf(ga,7),2&e){let e;o.iGM(e=o.CRH())&&(t.form=e.first)}},decls:55,vars:25,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column",3,"submit","reset"],["form","ngForm"],["fxLayout","column"],["fxFlex","100",4,"ngIf"],[4,"ngTemplateOutlet"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxFlex","60","fxLayoutAlign","start end"],["matInput","","placeholder","Amount","type","number","tabindex","1","required","","name","amnt",3,"ngModel","step","min","max","ngModelChange"],["amt","ngModel"],["matSuffix",""],[4,"ngIf"],["fxFlex","35","fxLayoutAlign","start center"],["tabindex","2","color","primary","name","isPrivate",3,"ngModel","ngModelChange"],["expanded","false",1,"flat-expansion-panel","mt-2",3,"closed","opened"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxFlex","49"],["tabindex","3",3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","type","number","tabindex","4","name","transTpValue",3,"ngModel","required","disabled","placeholder","step","min","ngModelChange"],["transTypeVal","ngModel"],["fxFlex","50","fxLayoutAlign","start center"],["tabindex","6","color","primary","name","spendUnconfirmed",3,"ngModel","ngModelChange"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","7","type","reset",1,"mr-1"],["autoFocus","","mat-flat-button","","color","primary","type","submit","tabindex","9"],["peerDetailsExpansionBlock",""],["type","text","placeholder","Peer Alias","aria-label","Peers","matInput","","tabindex","1","required","",3,"formControl","matAutocomplete"],[3,"displayWith","optionSelected"],["auto","matAutocomplete"],[3,"value"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["class","flat-expansion-panel my-1","expanded","false",4,"ngIf"],["expanded","false",1,"flat-expansion-panel","my-1"],[1,"font-weight-900"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"w-100","my-1"],["fxFlex","50"],[1,"overflow-wrap","foreground-secondary-text"]],template:function(e,t){if(1&e&&(o.TgZ(0,"div",0),o.TgZ(1,"div",1),o.TgZ(2,"mat-card-header",2),o.TgZ(3,"div",3),o.TgZ(4,"span",4),o._uU(5),o.qZA(),o.qZA(),o.TgZ(6,"button",5),o.NdJ("click",function(){return t.onClose()}),o._uU(7,"X"),o.qZA(),o.qZA(),o.TgZ(8,"mat-card-content",6),o.TgZ(9,"form",7,8),o.NdJ("submit",function(){return t.onOpenChannel()})("reset",function(){return t.resetData()}),o.TgZ(11,"div",9),o.YNc(12,ya,8,8,"mat-form-field",10),o.qZA(),o.YNc(13,Aa,1,0,"ng-container",11),o.TgZ(14,"div",9),o.TgZ(15,"div",12),o.TgZ(16,"mat-form-field",13),o.TgZ(17,"input",14,15),o.NdJ("ngModelChange",function(e){return t.fundingAmount=e}),o.qZA(),o.TgZ(19,"mat-hint"),o._uU(20),o.ALo(21,"number"),o.qZA(),o.TgZ(22,"span",16),o._uU(23," Sats "),o.qZA(),o.YNc(24,Ca,2,0,"mat-error",17),o.YNc(25,Ta,2,1,"mat-error",17),o.qZA(),o.TgZ(26,"div",18),o.TgZ(27,"mat-slide-toggle",19),o.NdJ("ngModelChange",function(e){return t.isPrivate=e}),o._uU(28,"Private Channel"),o.qZA(),o.qZA(),o.qZA(),o.TgZ(29,"mat-expansion-panel",20),o.NdJ("closed",function(){return t.onAdvancedPanelToggle(!0)})("opened",function(){return t.onAdvancedPanelToggle(!1)}),o.TgZ(30,"mat-expansion-panel-header"),o.TgZ(31,"mat-panel-title"),o.TgZ(32,"span"),o._uU(33),o.qZA(),o.qZA(),o.qZA(),o.TgZ(34,"div",21),o.TgZ(35,"div",12),o.TgZ(36,"mat-form-field",22),o.TgZ(37,"mat-select",23),o.NdJ("valueChange",function(e){return t.selTransType=e}),o.YNc(38,ba,2,2,"mat-option",24),o.qZA(),o.qZA(),o.TgZ(39,"mat-form-field",22),o.TgZ(40,"input",25,26),o.NdJ("ngModelChange",function(e){return t.transTypeValue=e}),o.qZA(),o.YNc(42,wa,2,1,"mat-error",17),o.qZA(),o.qZA(),o.TgZ(43,"div",12),o.TgZ(44,"div",27),o.TgZ(45,"mat-slide-toggle",28),o.NdJ("ngModelChange",function(e){return t.spendUnconfirmed=e}),o._uU(46,"Spend Unconfirmed Output"),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.YNc(47,va,3,2,"div",29),o.TgZ(48,"div",30),o.TgZ(49,"button",31),o._uU(50,"Clear Fields"),o.qZA(),o.TgZ(51,"button",32),o._uU(52,"Open Channel"),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.YNc(53,Sa,1,1,"ng-template",null,33,o.W1O)),2&e){const e=o.MAs(54);o.xp6(5),o.Oqu(t.alertTitle),o.xp6(7),o.Q6J("ngIf",!t.peer&&t.peers&&t.peers.length>0),o.xp6(1),o.Q6J("ngTemplateOutlet",e),o.xp6(4),o.Q6J("ngModel",t.fundingAmount)("step",1e3)("min",1)("max",t.totalBalance),o.xp6(3),o.hij("(Remaining Bal: ",o.lcZ(21,23,t.totalBalance-(t.fundingAmount?t.fundingAmount:0)),")"),o.xp6(4),o.Q6J("ngIf",null==t.amount.errors?null:t.amount.errors.required),o.xp6(1),o.Q6J("ngIf",null==t.amount.errors?null:t.amount.errors.max),o.xp6(2),o.Q6J("ngModel",t.isPrivate),o.xp6(6),o.Oqu(t.advancedTitle),o.xp6(4),o.Q6J("value",t.selTransType),o.xp6(1),o.Q6J("ngForOf",t.transTypes),o.xp6(2),o.Q6J("ngModel",t.transTypeValue)("required","0"!==t.selTransType)("disabled","0"===t.selTransType)("placeholder","0"===t.selTransType?"Default":"1"===t.selTransType?"Target Confirmation Blocks":"Fee (Sats/vByte)")("step",1)("min",0),o.xp6(2),o.Q6J("ngIf","0"!==t.selTransType&&!t.transTypeValue),o.xp6(3),o.Q6J("ngModel",t.spendUnconfirmed),o.xp6(2),o.Q6J("ngIf",""!==t.channelConnectionError)}},directives:[l.xw,l.yH,w.dk,l.Wh,q.lW,w.dn,Ae._Y,Ae.JL,Ae.F,a.O5,a.tP,D.KE,Ce.Nt,Ae.wV,Ae.qQ,Ae.Fd,Ae.Fj,be.q,ma.F,Ae.Q7,Ae.JJ,Ae.On,D.bx,D.R9,_e.Rr,ht.ib,ht.yz,ht.yK,we.gD,a.sg,Te.h,mt.ZL,Ae.oH,mt.XC,ve.ey,D.TO,T.BN,M.d],pipes:[a.JJ,a.Ov],styles:[".open-inputs-box[_ngcontent-%COMP%]{padding:1.2rem 2.4rem .8rem!important}"]}),e})();var La=n(7753);const ka=["peersForm"],Na=["stepper"];function Ua(e,t){if(1&e&&o._uU(0),2&e){const e=o.oxw();o.Oqu(e.peerFormLabel)}}function Ia(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Address is required."),o.qZA())}function Oa(e,t){if(1&e&&(o.TgZ(0,"div",37),o._UZ(1,"fa-icon",38),o.TgZ(2,"span"),o._uU(3),o.qZA(),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Q6J("icon",e.faExclamationTriangle),o.xp6(2),o.Oqu(e.peerConnectionError)}}function Ja(e,t){if(1&e&&o._uU(0),2&e){const e=o.oxw();o.Oqu(e.channelFormLabel)}}function Da(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Amount is required."),o.qZA())}function Ra(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Amount must be a positive number."),o.qZA())}function Ma(e,t){if(1&e&&(o.TgZ(0,"mat-error"),o._uU(1),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.hij("Amount must be less than or equal to ",e.totalBalance,".")}}function Ea(e,t){if(1&e&&(o.TgZ(0,"mat-option",39),o._uU(1),o.qZA()),2&e){const e=t.$implicit;o.Q6J("value",e.id),o.xp6(1),o.hij(" ",e.name," ")}}function Qa(e,t){if(1&e&&(o.TgZ(0,"mat-error"),o._uU(1),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.hij("","0"===e.channelFormGroup.controls.selTransType.value?"Default":"1"===e.channelFormGroup.controls.selTransType.value?"Target Confirmation Blocks":"Fee (Sats/vByte)"," is required.")}}function Ya(e,t){if(1&e&&(o.TgZ(0,"div",37),o._UZ(1,"fa-icon",38),o.TgZ(2,"span"),o._uU(3),o.qZA(),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Q6J("icon",e.faExclamationTriangle),o.xp6(2),o.Oqu(e.channelConnectionError)}}let Pa=(()=>{class e{constructor(e,t,n,a,i,s,o){this.dialogRef=e,this.data=t,this.store=n,this.lndEffects=a,this.formBuilder=i,this.actions=s,this.logger=o,this.faExclamationTriangle=g.eHv,this.peerAddress="",this.totalBalance=0,this.transTypes=f.Dr,this.flgChannelOpened=!1,this.channelOpenStatus=null,this.newlyAddedPeer=null,this.flgEditable=!0,this.peerConnectionError="",this.channelConnectionError="",this.peerFormLabel="Peer Details",this.channelFormLabel="Open Channel (Optional)",this.unSubs=[new p.x,new p.x]}ngOnInit(){this.totalBalance=this.data.message.balance,this.peerFormGroup=this.formBuilder.group({hiddenAddress:["",[Ae.kI.required]],peerAddress:["",[Ae.kI.required]]}),this.channelFormGroup=this.formBuilder.group({fundingAmount:["",[Ae.kI.required,Ae.kI.min(1),Ae.kI.max(this.totalBalance)]],isPrivate:[!1],selTransType:[f.Dr[0].id],transTypeValue:[{value:"",disabled:!0}],spendUnconfirmed:[!1],hiddenAmount:["",[Ae.kI.required]]}),this.statusFormGroup=this.formBuilder.group({}),this.channelFormGroup.controls.selTransType.valueChanges.pipe((0,d.R)(this.unSubs[0])).subscribe(e=>{e===f.Dr[0].id?(this.channelFormGroup.controls.transTypeValue.setValue(""),this.channelFormGroup.controls.transTypeValue.disable(),this.channelFormGroup.controls.transTypeValue.setValidators(null),this.channelFormGroup.controls.transTypeValue.setErrors(null)):(this.channelFormGroup.controls.transTypeValue.setValue(""),this.channelFormGroup.controls.transTypeValue.enable(),this.channelFormGroup.controls.transTypeValue.setValidators([Ae.kI.required]))}),this.actions.pipe((0,d.R)(this.unSubs[1]),(0,h.h)(e=>e.type===x.X_||e.type===x.W8||e.type===x.JE)).subscribe(e=>{e.type===x.X_&&(this.logger.info(e.payload),this.flgEditable=!1,this.newlyAddedPeer=e.payload.peer,this.peerFormGroup.controls.hiddenAddress.setValue(this.peerFormGroup.controls.peerAddress.value),this.stepper.next()),e.type===x.W8&&this.dialogRef.close(),e.type===x.JE&&e.payload.status===f.Bn.ERROR&&("SaveNewPeer"===e.payload.action||"FetchGraphNode"===e.payload.action?this.peerConnectionError=e.payload.message:"SaveNewChannel"===e.payload.action&&(this.channelConnectionError=e.payload.message))})}onConnectPeer(){if(!this.peerFormGroup.controls.peerAddress.value)return!0;this.peerConnectionError="";const e=this.peerFormGroup.controls.peerAddress.value.search("@");let t="",n="";e>-1?(t=this.peerFormGroup.controls.peerAddress.value.substring(0,e),n=this.peerFormGroup.controls.peerAddress.value.substring(e+1),this.connectPeerWithParams(t,n)):(this.store.dispatch(new x.RR({pubkey:this.peerFormGroup.controls.peerAddress.value})),this.lndEffects.setGraphNode.pipe((0,pt.q)(1)).subscribe(e=>{n=e.node.addresses&&e.node.addresses.length&&e.node.addresses.length>0&&e.node.addresses[0].addr?e.node.addresses[0].addr:"",this.connectPeerWithParams(this.peerFormGroup.controls.peerAddress.value,n)}))}connectPeerWithParams(e,t){this.store.dispatch(new x.rF({pubkey:e,host:t,perm:!1}))}onOpenChannel(){if(!this.channelFormGroup.controls.fundingAmount.value||this.totalBalance-this.channelFormGroup.controls.fundingAmount.value<0||"1"===this.channelFormGroup.controls.selTransType.value&&!this.channelFormGroup.controls.transTypeValue.value||"2"===this.channelFormGroup.controls.selTransType.value&&!this.channelFormGroup.controls.transTypeValue.value)return!0;this.channelConnectionError="",this.store.dispatch(new x.nb({selectedPeerPubkey:this.newlyAddedPeer.pub_key,fundingAmount:this.channelFormGroup.controls.fundingAmount.value,private:this.channelFormGroup.controls.isPrivate.value,transType:this.channelFormGroup.controls.selTransType.value,transTypeValue:this.channelFormGroup.controls.transTypeValue.value,spendUnconfirmed:this.channelFormGroup.controls.spendUnconfirmed.value}))}onClose(){this.dialogRef.close(!1)}stepSelectionChanged(e){switch(e.selectedIndex){case 0:this.peerFormLabel="Peer Details",this.channelFormLabel="Open Channel (Optional)";break;case 1:this.peerFormLabel=this.peerFormGroup.controls.peerAddress.value?"Peer Added: "+this.newlyAddedPeer.alias:"Peer Details",this.channelFormLabel="Open Channel (Optional)";break;case 2:this.peerFormLabel=this.peerFormGroup.controls.peerAddress.value?"Peer Added: "+this.newlyAddedPeer.alias:"Peer Details",this.channelFormLabel=this.channelFormGroup.controls.fundingAmount.value?"Opening Channel for "+this.channelFormGroup.controls.fundingAmount.value+" Sats":"Open Channel (Optional)";break;default:this.peerFormLabel="Peer Details",this.channelFormLabel="Open Channel (Optional)"}e.selectedIndex{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(ye.so),o.Y36(ye.WI),o.Y36(y.yh),o.Y36(Ft.l),o.Y36(Ae.qu),o.Y36(A.eX),o.Y36(Z.mQ))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-connect-peer"]],viewQuery:function(e,t){if(1&e&&(o.Gf(ka,5),o.Gf(Na,5)),2&e){let e;o.iGM(e=o.CRH())&&(t.form=e.first),o.iGM(e=o.CRH())&&(t.stepper=e.first)}},decls:56,vars:24,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],[3,"linear","selectionChange"],["stepper",""],[3,"stepControl","editable"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"my-1",3,"formGroup"],["matStepLabel",""],["autoFocus","","matInput","","placeholder","Lightning Address (pubkey OR pubkey@ip:port)","formControlName","peerAddress","tabindex","1","required",""],[4,"ngIf"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","3","type","button",3,"click"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"mb-1",3,"formGroup"],["matStepLabel","","disabled","true"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxFlex","60","fxLayoutAlign","start end"],["matInput","","formControlName","fundingAmount","placeholder","Amount","type","number","tabindex","1","required","",3,"step"],["matSuffix",""],["fxFlex","35","fxLayoutAlign","start center"],["tabindex","2","color","primary","formControlName","isPrivate","name","isPrivate"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center",1,"mt-1"],["fxFlex","30","fxLayoutAlign","start end"],["tabindex","3","formControlName","selTransType","placeholder","Transaction Type"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","30"],["matInput","","formControlName","transTypeValue","type","number","name","transTypeValue","tabindex","4",3,"placeholder","step","required"],["tabindex","6","color","primary","formControlName","spendUnconfirmed","name","spendUnconfirmed"],["mat-stroked-button","","color","primary","tabindex","8","type","button",3,"click"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","tabindex","12","type","button","default","",3,"mat-dialog-close"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],[3,"value"]],template:function(e,t){1&e&&(o.TgZ(0,"div",0),o.TgZ(1,"div",1),o.TgZ(2,"mat-card-header",2),o.TgZ(3,"div",3),o.TgZ(4,"span",4),o._uU(5,"Connect to a new peer"),o.qZA(),o.qZA(),o.TgZ(6,"button",5),o.NdJ("click",function(){return t.onClose()}),o._uU(7,"X"),o.qZA(),o.qZA(),o.TgZ(8,"mat-card-content",6),o.TgZ(9,"div",7),o.TgZ(10,"mat-vertical-stepper",8,9),o.NdJ("selectionChange",function(e){return t.stepSelectionChanged(e)}),o.TgZ(12,"mat-step",10),o.TgZ(13,"form",11),o.YNc(14,Ua,1,1,"ng-template",12),o.TgZ(15,"mat-form-field",1),o._UZ(16,"input",13),o.YNc(17,Ia,2,0,"mat-error",14),o.qZA(),o.YNc(18,Oa,4,2,"div",15),o.TgZ(19,"div",16),o.TgZ(20,"button",17),o.NdJ("click",function(){return t.onConnectPeer()}),o._uU(21),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.TgZ(22,"mat-step",10),o.TgZ(23,"form",18),o.YNc(24,Ja,1,1,"ng-template",19),o.TgZ(25,"div",20),o.TgZ(26,"div",21),o.TgZ(27,"mat-form-field",22),o._UZ(28,"input",23),o.TgZ(29,"mat-hint"),o._uU(30),o.qZA(),o.TgZ(31,"span",24),o._uU(32," Sats "),o.qZA(),o.YNc(33,Da,2,0,"mat-error",14),o.YNc(34,Ra,2,0,"mat-error",14),o.YNc(35,Ma,2,1,"mat-error",14),o.qZA(),o.TgZ(36,"div",25),o.TgZ(37,"mat-slide-toggle",26),o._uU(38,"Private Channel"),o.qZA(),o.qZA(),o.qZA(),o.TgZ(39,"div",27),o.TgZ(40,"mat-form-field",28),o.TgZ(41,"mat-select",29),o.YNc(42,Ea,2,2,"mat-option",30),o.qZA(),o.qZA(),o.TgZ(43,"mat-form-field",31),o._UZ(44,"input",32),o.YNc(45,Qa,2,1,"mat-error",14),o.qZA(),o.TgZ(46,"div",25),o.TgZ(47,"mat-slide-toggle",33),o._uU(48,"Spend Unconfirmed Output"),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.YNc(49,Ya,4,2,"div",15),o.TgZ(50,"div",16),o.TgZ(51,"button",34),o.NdJ("click",function(){return t.onOpenChannel()}),o._uU(52),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.TgZ(53,"div",35),o.TgZ(54,"button",36),o._uU(55),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA()),2&e&&(o.xp6(10),o.Q6J("linear",!0),o.xp6(2),o.Q6J("stepControl",t.peerFormGroup)("editable",t.flgEditable),o.xp6(1),o.Q6J("formGroup",t.peerFormGroup),o.xp6(4),o.Q6J("ngIf",null==t.peerFormGroup.controls.peerAddress.errors?null:t.peerFormGroup.controls.peerAddress.errors.required),o.xp6(1),o.Q6J("ngIf",""!==t.peerConnectionError),o.xp6(3),o.Oqu(""!==t.peerConnectionError?"Retry":"Add Peer"),o.xp6(1),o.Q6J("stepControl",t.channelFormGroup)("editable",t.flgEditable),o.xp6(1),o.Q6J("formGroup",t.channelFormGroup),o.xp6(5),o.Q6J("step",1e3),o.xp6(2),o.hij("Remaining Bal: ",t.totalBalance-(t.channelFormGroup.controls.fundingAmount.value?t.channelFormGroup.controls.fundingAmount.value:0),""),o.xp6(3),o.Q6J("ngIf",null==t.channelFormGroup.controls.fundingAmount.errors?null:t.channelFormGroup.controls.fundingAmount.errors.required),o.xp6(1),o.Q6J("ngIf",null==t.channelFormGroup.controls.fundingAmount.errors?null:t.channelFormGroup.controls.fundingAmount.errors.min),o.xp6(1),o.Q6J("ngIf",null==t.channelFormGroup.controls.fundingAmount.errors?null:t.channelFormGroup.controls.fundingAmount.errors.max),o.xp6(7),o.Q6J("ngForOf",t.transTypes),o.xp6(2),o.Q6J("placeholder","0"===t.channelFormGroup.controls.selTransType.value?"Default":"1"===t.channelFormGroup.controls.selTransType.value?"Target Confirmation Blocks":"Fee (Sats/vByte)")("step",1)("required","0"!==t.channelFormGroup.controls.selTransType.value),o.xp6(1),o.Q6J("ngIf",null==t.channelFormGroup.controls.transTypeValue.errors?null:t.channelFormGroup.controls.transTypeValue.errors.required),o.xp6(4),o.Q6J("ngIf",""!==t.channelConnectionError),o.xp6(3),o.Oqu(""!==t.channelConnectionError?"Retry":"Open Channel"),o.xp6(2),o.Q6J("mat-dialog-close",!1),o.xp6(1),o.Oqu(null!=t.newlyAddedPeer&&t.newlyAddedPeer.pub_key?"Do It Later":"Close"))},directives:[l.xw,l.yH,w.dk,l.Wh,q.lW,w.dn,La.Vq,La.C0,Ae._Y,Ae.JL,Ae.sg,La.VY,D.KE,Ce.Nt,Ae.Fj,Te.h,Ae.JJ,Ae.u,Ae.Q7,a.O5,Ae.wV,D.bx,D.R9,_e.Rr,we.gD,a.sg,ye.ZT,D.TO,T.BN,ve.ey],styles:[""]}),e})();function Ba(e,t){1&e&&o._UZ(0,"mat-progress-bar",32)}function Ga(e,t){1&e&&(o.TgZ(0,"th",33),o._uU(1," Alias "),o.qZA())}const Ha=function(e){return{"max-width":e}};function za(e,t){if(1&e&&(o.TgZ(0,"td",34),o._uU(1),o.qZA()),2&e){const e=t.$implicit,n=o.oxw();o.Q6J("ngStyle",o.VKq(2,Ha,n.screenSize===n.screenSizeEnum.XS?"12rem":"25rem")),o.xp6(1),o.hij(" ",null==e?null:e.alias," ")}}function Va(e,t){1&e&&(o.TgZ(0,"th",33),o._uU(1," Public Key "),o.qZA())}function Wa(e,t){if(1&e&&(o.TgZ(0,"td",34),o._uU(1),o.qZA()),2&e){const e=t.$implicit,n=o.oxw();o.Q6J("ngStyle",o.VKq(2,Ha,n.screenSize===n.screenSizeEnum.XS?"5rem":"35rem")),o.xp6(1),o.hij(" ",null==e?null:e.pub_key," ")}}function Xa(e,t){1&e&&(o.TgZ(0,"th",35),o._uU(1," Sats Sent "),o.qZA())}function $a(e,t){if(1&e&&(o.TgZ(0,"td",36),o.TgZ(1,"span",37),o._uU(2),o.ALo(3,"number"),o.qZA(),o.qZA()),2&e){const e=t.$implicit;o.xp6(2),o.hij(" ",o.lcZ(3,1,null==e?null:e.sat_sent)," ")}}function ja(e,t){1&e&&(o.TgZ(0,"th",35),o._uU(1," Sats Received "),o.qZA())}function Ka(e,t){if(1&e&&(o.TgZ(0,"td",36),o.TgZ(1,"span",37),o._uU(2),o.ALo(3,"number"),o.qZA(),o.qZA()),2&e){const e=t.$implicit;o.xp6(2),o.hij(" ",o.lcZ(3,1,null==e?null:e.sat_recv)," ")}}function ei(e,t){1&e&&(o.TgZ(0,"th",35),o._uU(1," Ping "),o.qZA())}function ti(e,t){if(1&e&&(o.TgZ(0,"td",36),o.TgZ(1,"span",37),o._uU(2),o.ALo(3,"number"),o.qZA(),o.qZA()),2&e){const e=t.$implicit;o.xp6(2),o.hij(" ",o.lcZ(3,1,null==e?null:e.ping_time)," ")}}function ni(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"th",38),o.TgZ(1,"div",39),o.TgZ(2,"mat-select",40),o._UZ(3,"mat-select-trigger"),o.TgZ(4,"mat-option",41),o.NdJ("click",function(){return o.CHM(e),o.oxw().onDownloadCSV()}),o._uU(5,"Download CSV"),o.qZA(),o.qZA(),o.qZA(),o.qZA()}}function ai(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"td",42),o.TgZ(1,"div",39),o.TgZ(2,"mat-select",40),o._UZ(3,"mat-select-trigger"),o.TgZ(4,"mat-option",41),o.NdJ("click",function(t){const n=o.CHM(e).$implicit;return o.oxw().onPeerClick(n,t)}),o._uU(5,"View Info"),o.qZA(),o.TgZ(6,"mat-option",41),o.NdJ("click",function(){const t=o.CHM(e).$implicit;return o.oxw().onOpenChannel(t)}),o._uU(7,"Open Channel"),o.qZA(),o.TgZ(8,"mat-option",41),o.NdJ("click",function(){const t=o.CHM(e).$implicit;return o.oxw().onPeerDetach(t)}),o._uU(9,"Disconnect"),o.qZA(),o.qZA(),o.qZA(),o.qZA()}}function ii(e,t){1&e&&(o.TgZ(0,"p"),o._uU(1,"No connected peer."),o.qZA())}function si(e,t){1&e&&(o.TgZ(0,"p"),o._uU(1,"Getting peers..."),o.qZA())}function oi(e,t){if(1&e&&(o.TgZ(0,"p"),o._uU(1),o.qZA()),2&e){const e=o.oxw(2);o.xp6(1),o.Oqu(e.errorMessage)}}function li(e,t){if(1&e&&(o.TgZ(0,"td",43),o.YNc(1,ii,2,0,"p",44),o.YNc(2,si,2,0,"p",44),o.YNc(3,oi,2,1,"p",44),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Q6J("ngIf",(!(null!=e.peers&&e.peers.data)||(null==e.peers.data?null:e.peers.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.FetchPeers.status)===e.apiCallStatusEnum.COMPLETED),o.xp6(1),o.Q6J("ngIf",(!(null!=e.peers&&e.peers.data)||(null==e.peers.data?null:e.peers.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.FetchPeers.status)===e.apiCallStatusEnum.INITIATED),o.xp6(1),o.Q6J("ngIf",(!(null!=e.peers&&e.peers.data)||(null==e.peers.data?null:e.peers.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.FetchPeers.status)===e.apiCallStatusEnum.ERROR)}}const ri=function(e){return{"display-none":e}};function ci(e,t){if(1&e&&o._UZ(0,"tr",45),2&e){const e=o.oxw();o.Q6J("ngClass",o.VKq(1,ri,(null==e.peers?null:e.peers.data)&&(null==e.peers||null==e.peers.data?null:e.peers.data.length)>0))}}function ui(e,t){1&e&&o._UZ(0,"tr",46)}function pi(e,t){1&e&&o._UZ(0,"tr",47)}const di=function(e){return{"overflow-auto error-border":e,"overflow-auto":!0}},hi=function(){return["no_peer"]};let mi=(()=>{class e{constructor(e,t,n,a){this.logger=e,this.store=t,this.rtlEffects=n,this.commonService=a,this.availableBalance=0,this.faUsers=g.FVb,this.displayedColumns=[],this.peersData=[],this.information={},this.flgSticky=!1,this.pageSize=f.IV,this.pageSizeOptions=f.TJ,this.screenSize="",this.screenSizeEnum=f.cu,this.errorMessage="",this.apisCallStatus=null,this.apiCallStatusEnum=f.Bn,this.unSubs=[new p.x,new p.x,new p.x,new p.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===f.cu.XS?(this.flgSticky=!1,this.displayedColumns=["alias","actions"]):this.screenSize===f.cu.SM?(this.flgSticky=!1,this.displayedColumns=["alias","sat_sent","sat_recv","actions"]):this.screenSize===f.cu.MD?(this.flgSticky=!1,this.displayedColumns=["alias","sat_sent","sat_recv","ping_time","actions"]):(this.flgSticky=!0,this.displayedColumns=["alias","pub_key","sat_sent","sat_recv","ping_time","actions"])}ngOnInit(){this.store.select("lnd").pipe((0,d.R)(this.unSubs[0])).subscribe(e=>{this.errorMessage="",this.apisCallStatus=e.apisCallStatus,e.apisCallStatus.FetchPeers.status===f.Bn.ERROR&&(this.errorMessage="object"==typeof this.apisCallStatus.FetchPeers.message?JSON.stringify(this.apisCallStatus.FetchPeers.message):this.apisCallStatus.FetchPeers.message),this.information=e.information,this.availableBalance=e.blockchainBalance.total_balance||0,this.peersData=e.peers,this.peersData.length>0&&this.loadPeersTable(this.peersData),this.logger.info(e)})}ngAfterViewInit(){this.peersData.length>0&&this.loadPeersTable(this.peersData)}onPeerClick(e,t){this.store.dispatch(new ee.wu({data:{type:f.n_.INFORMATION,alertTitle:"Peer Information",showQRName:"Public Key",showQRField:e.pub_key,message:[[{key:"pub_key",value:e.pub_key,title:"Public Key",width:100}],[{key:"address",value:e.address,title:"Address",width:100}],[{key:"alias",value:e.alias,title:"Alias",width:40},{key:"inbound",value:e.inbound?"True":"False",title:"Inbound",width:30},{key:"ping_time",value:e.ping_time,title:"Ping Time",width:30,type:f.Gi.NUMBER}],[{key:"sat_sent",value:e.sat_sent,title:"Satoshis Sent",width:50,type:f.Gi.NUMBER},{key:"sat_recv",value:e.sat_recv,title:"Satoshis Received",width:50,type:f.Gi.NUMBER}],[{key:"bytes_sent",value:e.bytes_sent,title:"Bytes Sent",width:50,type:f.Gi.NUMBER},{key:"bytes_recv",value:e.bytes_recv,title:"Bytes Received",width:50,type:f.Gi.NUMBER}]]}}))}onConnectPeer(){this.store.dispatch(new ee.wu({data:{message:{peer:null,information:this.information,balance:this.availableBalance},component:Pa}}))}onOpenChannel(e){this.store.dispatch(new ee.wu({data:{alertTitle:"Open Channel",message:{peer:e,information:this.information,balance:this.availableBalance},component:Fa}}))}onPeerDetach(e){this.store.dispatch(new ee.b_({data:{type:f.n_.CONFIRM,alertTitle:"Disconnect Peer",titleMessage:"Disconnect peer: "+(e.alias?e.alias:e.pub_key),noBtnText:"Cancel",yesBtnText:"Disconnect"}})),this.rtlEffects.closeConfirm.pipe((0,d.R)(this.unSubs[3])).subscribe(t=>{t&&this.store.dispatch(new x.yw({pubkey:e.pub_key}))})}applyFilter(e){this.peers.filter=e.value.trim().toLowerCase()}loadPeersTable(e){this.peers=new Ze.by(e?[...e]:[]),this.peers.sort=this.sort,this.peers.sortingDataAccessor=(e,t)=>e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():e[t]?+e[t]:null,this.peers.filterPredicate=(e,t)=>JSON.stringify(e).toLowerCase().includes(t),this.peers.paginator=this.paginator}onDownloadCSV(){this.peers.data&&this.peers.data.length>0&&this.commonService.downloadFile(this.peers.data,"Peers")}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(Z.mQ),o.Y36(y.yh),o.Y36(St.V),o.Y36(C.v))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-peers"]],viewQuery:function(e,t){if(1&e&&(o.Gf(xe.YE,5),o.Gf(fe.NW,5)),2&e){let e;o.iGM(e=o.CRH())&&(t.sort=e.first),o.iGM(e=o.CRH())&&(t.paginator=e.first)}},features:[o._Bn([{provide:fe.ye,useValue:(0,f.pt)("Peers")}])],decls:40,vars:14,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x"],["fxLayout","row"],["mat-flat-button","","color","primary","type","submit","tabindex","1",3,"click"],["fxLayout","column"],["fxLayout","column","fxLayoutAlign","start stretch","fxLayout.gt-sm","row wrap",1,"page-sub-title-container","mt-1"],["fxFlex","70","fxLayoutAlign","start start","fxLayoutAlign.gt-sm","start center"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30","fxLayoutAlign","start end"],["matInput","","placeholder","Filter",3,"keyup"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","alias"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","pub_key"],["matColumnDef","sat_sent"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","sat_recv"],["matColumnDef","ping_time"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center","class","px-3",4,"matCellDef"],["matColumnDef","no_peer"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"ngStyle"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["mat-cell",""],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"px-3"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,t){1&e&&(o.TgZ(0,"div",0),o.TgZ(1,"div",1),o.TgZ(2,"button",2),o.NdJ("click",function(){return t.onConnectPeer()}),o._uU(3,"Add Peer"),o.qZA(),o.qZA(),o.TgZ(4,"div",3),o.TgZ(5,"div",4),o.TgZ(6,"div",5),o._UZ(7,"fa-icon",6),o.TgZ(8,"span",7),o._uU(9,"Connected Peers"),o.qZA(),o.qZA(),o.TgZ(10,"mat-form-field",8),o.TgZ(11,"input",9),o.NdJ("keyup",function(e){return t.applyFilter(e.target)}),o.qZA(),o.qZA(),o.qZA(),o.TgZ(12,"div",10),o.YNc(13,Ba,1,0,"mat-progress-bar",11),o.TgZ(14,"table",12,13),o.ynx(16,14),o.YNc(17,Ga,2,0,"th",15),o.YNc(18,za,2,4,"td",16),o.BQk(),o.ynx(19,17),o.YNc(20,Va,2,0,"th",15),o.YNc(21,Wa,2,4,"td",16),o.BQk(),o.ynx(22,18),o.YNc(23,Xa,2,0,"th",19),o.YNc(24,$a,4,3,"td",20),o.BQk(),o.ynx(25,21),o.YNc(26,ja,2,0,"th",19),o.YNc(27,Ka,4,3,"td",20),o.BQk(),o.ynx(28,22),o.YNc(29,ei,2,0,"th",19),o.YNc(30,ti,4,3,"td",20),o.BQk(),o.ynx(31,23),o.YNc(32,ni,6,0,"th",24),o.YNc(33,ai,10,0,"td",25),o.BQk(),o.ynx(34,26),o.YNc(35,li,4,3,"td",27),o.BQk(),o.YNc(36,ci,1,3,"tr",28),o.YNc(37,ui,1,0,"tr",29),o.YNc(38,pi,1,0,"tr",30),o.qZA(),o.qZA(),o._UZ(39,"mat-paginator",31),o.qZA(),o.qZA()),2&e&&(o.xp6(7),o.Q6J("icon",t.faUsers),o.xp6(6),o.Q6J("ngIf",(null==t.apisCallStatus?null:t.apisCallStatus.FetchPeers.status)===t.apiCallStatusEnum.INITIATED),o.xp6(1),o.Q6J("dataSource",t.peers)("ngClass",o.VKq(11,di,""!==t.errorMessage)),o.xp6(22),o.Q6J("matFooterRowDef",o.DdM(13,hi)),o.xp6(1),o.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),o.xp6(1),o.Q6J("matRowDefColumns",t.displayedColumns),o.xp6(1),o.Q6J("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS))},directives:[l.xw,l.yH,l.Wh,q.lW,T.BN,D.KE,Ce.Nt,E.$V,a.O5,Ze.BZ,xe.YE,a.mk,v.oO,Ze.w1,Ze.fO,Ze.Dz,Ze.mD,Ze.Ke,Ze.as,Ze.nj,fe.NW,r.pW,Ze.ge,xe.nU,Ze.ev,a.PC,v.Zl,we.gD,we.$L,ve.ey,Ze.yh,Ze.Q2,Ze.XQ,Ze.Gk],pipes:[a.JJ],styles:[".mat-column-alias[_ngcontent-%COMP%]{flex:1 1 25%}.mat-column-alias[_ngcontent-%COMP%], .mat-column-pub_key[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-pub_key[_ngcontent-%COMP%]{flex:1 1 35%;padding-left:2rem}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem;flex:1 1 10%}.mat-column-ping_time[_ngcontent-%COMP%], .mat-column-sat_recv[_ngcontent-%COMP%], .mat-column-sat_sent[_ngcontent-%COMP%]{flex:1 1 13%;width:13%}"]}),e})();function gi(e,t){if(1&e&&(o.TgZ(0,"span",7),o._uU(1,"Open"),o.qZA()),2&e){const e=o.oxw();o.s9C("matBadge",e.numOpenChannels)}}function fi(e,t){if(1&e&&(o.TgZ(0,"span",7),o._uU(1,"Pending"),o.qZA()),2&e){const e=o.oxw();o.s9C("matBadge",e.numPendingChannels)}}function xi(e,t){if(1&e&&(o.TgZ(0,"span",7),o._uU(1,"Closed"),o.qZA()),2&e){const e=o.oxw();o.s9C("matBadge",e.numClosedChannels)}}function Zi(e,t){if(1&e&&(o.TgZ(0,"span",7),o._uU(1,"Active HTLCs"),o.qZA()),2&e){const e=o.oxw();o.s9C("matBadge",e.numActiveHTLCs)}}let yi=(()=>{class e{constructor(e,t,n){this.logger=e,this.store=t,this.router=n,this.numOpenChannels=0,this.numPendingChannels=0,this.numClosedChannels=0,this.numActiveHTLCs=0,this.peers=[],this.information={},this.totalBalance=0,this.links=[{link:"open",name:"Open"},{link:"pending",name:"Pending"},{link:"closed",name:"Closed"},{link:"activehtlcs",name:"Active HTLCs"}],this.activeLink=0,this.unSubs=[new p.x,new p.x]}ngOnInit(){this.activeLink=this.links.findIndex(e=>e.link===this.router.url.substring(this.router.url.lastIndexOf("/")+1)),this.router.events.pipe((0,d.R)(this.unSubs[0]),(0,h.h)(e=>e instanceof i.Av)).subscribe(e=>{this.activeLink=this.links.findIndex(t=>t.link===e.urlAfterRedirects.substring(e.urlAfterRedirects.lastIndexOf("/")+1))}),this.store.select("lnd").pipe((0,d.R)(this.unSubs[1])).subscribe(e=>{this.numOpenChannels=e.allChannels&&e.allChannels.length?e.allChannels.length:0,this.numPendingChannels=e.numberOfPendingChannels.total_channels?e.numberOfPendingChannels.total_channels:0,this.numClosedChannels=e.closedChannels&&e.closedChannels.length?e.closedChannels.length:0,this.numActiveHTLCs=e.allChannels.reduce((e,t)=>e+(t.pending_htlcs&&t.pending_htlcs.length>0?t.pending_htlcs.length:0),0),this.information=e.information,this.totalBalance=+e.blockchainBalance.total_balance,this.peers=e.peers,this.peers.forEach(e=>{e.alias&&""!==e.alias||(e.alias=e.pub_key.substring(0,15)+"...")}),this.logger.info(e)})}onOpenChannel(){this.store.dispatch(new ee.wu({data:{alertTitle:"Open Channel",message:{peers:this.peers,information:this.information,balance:this.totalBalance},component:Fa}}))}onSelectedTabChange(e){this.router.navigateByUrl("/lnd/connections/channels/"+this.links[e.index].link)}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(Z.mQ),o.Y36(y.yh),o.Y36(i.F0))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-channels-tables"]],decls:16,vars:1,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x"],["fxLayout","row"],["mat-flat-button","","color","primary","type","submit","tabindex","1",3,"click"],["fxLayout","column","fxFlex","100",1,"my-2","bordered-box"],[3,"selectedIndex","selectedIndexChange","selectedTabChange"],["mat-tab-label",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large"],["matBadgeOverlap","false",1,"tab-badge",3,"matBadge"]],template:function(e,t){1&e&&(o.TgZ(0,"div",0),o.TgZ(1,"div",1),o.TgZ(2,"button",2),o.NdJ("click",function(){return t.onOpenChannel()}),o._uU(3,"Open Channel"),o.qZA(),o.qZA(),o.TgZ(4,"div",3),o.TgZ(5,"mat-tab-group",4),o.NdJ("selectedIndexChange",function(e){return t.activeLink=e})("selectedTabChange",function(e){return t.onSelectedTabChange(e)}),o.TgZ(6,"mat-tab"),o.YNc(7,gi,2,1,"ng-template",5),o.qZA(),o.TgZ(8,"mat-tab"),o.YNc(9,fi,2,1,"ng-template",5),o.qZA(),o.TgZ(10,"mat-tab"),o.YNc(11,xi,2,1,"ng-template",5),o.qZA(),o.TgZ(12,"mat-tab"),o.YNc(13,Zi,2,1,"ng-template",5),o.qZA(),o.qZA(),o.TgZ(14,"div",6),o._UZ(15,"router-outlet"),o.qZA(),o.qZA(),o.qZA()),2&e&&(o.xp6(5),o.Q6J("selectedIndex",t.activeLink))},directives:[l.xw,l.yH,l.Wh,q.lW,ge.SP,ge.uX,ge.uD,i.lC,ra.k],styles:[""]}),e})();var Ai=n(1403),Ci=n(2609);function Ti(e,t){if(1&e&&(o.TgZ(0,"div"),o.TgZ(1,"div",9),o.TgZ(2,"div",14),o.TgZ(3,"h4",11),o._uU(4,"Commit Fee"),o.qZA(),o.TgZ(5,"span",15),o._uU(6),o.ALo(7,"number"),o.qZA(),o.qZA(),o.TgZ(8,"div",14),o.TgZ(9,"h4",11),o._uU(10,"Commit Weight"),o.qZA(),o.TgZ(11,"span",15),o._uU(12),o.ALo(13,"number"),o.qZA(),o.qZA(),o.TgZ(14,"div",14),o.TgZ(15,"h4",11),o._uU(16,"Fee/KW"),o.qZA(),o.TgZ(17,"span",15),o._uU(18),o.ALo(19,"number"),o.qZA(),o.qZA(),o.TgZ(20,"div",14),o.TgZ(21,"h4",11),o._uU(22,"Static Remote Key"),o.qZA(),o.TgZ(23,"span",15),o._uU(24),o.qZA(),o.qZA(),o.qZA(),o._UZ(25,"mat-divider",13),o.TgZ(26,"div",9),o.TgZ(27,"div",14),o.TgZ(28,"h4",11),o._uU(29),o.qZA(),o.TgZ(30,"span",15),o._uU(31),o.ALo(32,"number"),o.qZA(),o.qZA(),o.TgZ(33,"div",14),o.TgZ(34,"h4",11),o._uU(35),o.qZA(),o.TgZ(36,"span",15),o._uU(37),o.ALo(38,"number"),o.qZA(),o.qZA(),o.TgZ(39,"div",14),o.TgZ(40,"h4",11),o._uU(41,"Unsettled Balance"),o.qZA(),o.TgZ(42,"span",15),o._uU(43),o.ALo(44,"number"),o.qZA(),o.qZA(),o.TgZ(45,"div",14),o.TgZ(46,"h4",11),o._uU(47,"CSV Delay"),o.qZA(),o.TgZ(48,"span",15),o._uU(49),o.ALo(50,"number"),o.qZA(),o.qZA(),o.qZA(),o._UZ(51,"mat-divider",13),o.TgZ(52,"div",9),o.TgZ(53,"div",14),o.TgZ(54,"h4",11),o._uU(55,"Local Reserve (Sats)"),o.qZA(),o.TgZ(56,"span",15),o._uU(57),o.ALo(58,"number"),o.qZA(),o.qZA(),o.TgZ(59,"div",14),o.TgZ(60,"h4",11),o._uU(61,"Remote Reserve (Sats)"),o.qZA(),o.TgZ(62,"span",15),o._uU(63),o.ALo(64,"number"),o.qZA(),o.qZA(),o.TgZ(65,"div",14),o.TgZ(66,"h4",11),o._uU(67,"Lifetime (Seconds)"),o.qZA(),o.TgZ(68,"span",15),o._uU(69),o.ALo(70,"number"),o.qZA(),o.qZA(),o.TgZ(71,"div",14),o.TgZ(72,"h4",11),o._uU(73,"Pending HTLCs"),o.qZA(),o.TgZ(74,"span",15),o._uU(75),o.ALo(76,"number"),o.qZA(),o.qZA(),o.qZA(),o._UZ(77,"mat-divider",13),o.qZA()),2&e){const e=o.oxw();o.xp6(6),o.Oqu(o.lcZ(7,17,e.channel.commit_fee)),o.xp6(6),o.Oqu(o.lcZ(13,19,e.channel.commit_weight)),o.xp6(6),o.Oqu(o.lcZ(19,21,e.channel.fee_per_kw)),o.xp6(6),o.Oqu(e.channel.static_remote_key?"Yes":"No"),o.xp6(1),o.Q6J("inset",!0),o.xp6(4),o.Oqu(e.screenSize===e.screenSizeEnum.XS?"Total Sats Sent":"Total Satoshis Sent"),o.xp6(2),o.Oqu(o.lcZ(32,23,e.channel.total_satoshis_sent)),o.xp6(4),o.Oqu(e.screenSize===e.screenSizeEnum.XS?"Total Sats Recv":"Total Satoshis Received"),o.xp6(2),o.Oqu(o.lcZ(38,25,e.channel.total_satoshis_received)),o.xp6(6),o.Oqu(o.lcZ(44,27,e.channel.unsettled_balance)),o.xp6(6),o.Oqu(o.lcZ(50,29,e.channel.csv_delay)),o.xp6(2),o.Q6J("inset",!0),o.xp6(6),o.Oqu(o.lcZ(58,31,e.channel.local_chan_reserve_sat)),o.xp6(6),o.Oqu(o.lcZ(64,33,e.channel.remote_chan_reserve_sat)),o.xp6(6),o.Oqu(o.lcZ(70,35,e.channel.lifetime)),o.xp6(6),o.Oqu(o.lcZ(76,37,null==e.channel||null==e.channel.pending_htlcs?null:e.channel.pending_htlcs.length)),o.xp6(2),o.Q6J("inset",!0)}}function bi(e,t){1&e&&(o.TgZ(0,"p"),o._uU(1,"Show Advanced"),o.qZA())}function wi(e,t){1&e&&(o.TgZ(0,"p"),o._uU(1,"Hide Advanced"),o.qZA())}function _i(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"button",23),o.NdJ("copied",function(t){return o.CHM(e),o.oxw().onCopyChanID(t)}),o._uU(1,"Copy Channel ID"),o.qZA()}if(2&e){const e=o.oxw();o.Q6J("payload",e.channel.chan_id)}}function vi(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"button",24),o.NdJ("click",function(){return o.CHM(e),o.oxw().onClose()}),o._uU(1,"OK"),o.qZA()}}const qi=function(e){return{"xs-scroll-y":e}};let Si=(()=>{class e{constructor(e,t,n,a,i){this.dialogRef=e,this.data=t,this.logger=n,this.commonService=a,this.snackBar=i,this.faReceipt=g.dLy,this.showAdvanced=!1,this.showCopy=!0,this.showCopyField=null,this.screenSize="",this.screenSizeEnum=f.cu}ngOnInit(){this.channel=this.data.channel,this.showCopy=this.data.showCopy,this.screenSize=this.commonService.getScreenSize()}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyChanID(e){this.snackBar.open("Channel ID "+e+" copied."),this.logger.info("Copied Text: "+e)}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(ye.so),o.Y36(ye.WI),o.Y36(Z.mQ),o.Y36(C.v),o.Y36(Ai.ux))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-channel-information"]],decls:94,vars:36,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large",3,"ngClass"],["fxLayout","column"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"my-1",3,"inset"],["fxFlex","25"],[1,"overflow-wrap","foreground-secondary-text"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center","fxFlex","100",1,"mt-1"],["mat-stroked-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["hideAdvancedText",""],["autoFocus","","mat-flat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["autoFocus","","mat-flat-button","","color","primary","tabindex","2","type","button",3,"click",4,"ngIf"],["autoFocus","","mat-flat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["autoFocus","","mat-flat-button","","color","primary","tabindex","2","type","button",3,"click"]],template:function(e,t){if(1&e&&(o.TgZ(0,"div",0),o.TgZ(1,"div",1),o.TgZ(2,"mat-card-header",2),o.TgZ(3,"div",3),o._UZ(4,"fa-icon",4),o.TgZ(5,"span",5),o._uU(6,"Channel Information"),o.qZA(),o.qZA(),o.TgZ(7,"button",6),o.NdJ("click",function(){return t.onClose()}),o._uU(8,"X"),o.qZA(),o.qZA(),o.TgZ(9,"mat-card-content",7),o.TgZ(10,"div",8),o.TgZ(11,"div",9),o.TgZ(12,"div",10),o.TgZ(13,"h4",11),o._uU(14,"Channel ID"),o.qZA(),o.TgZ(15,"span",12),o._uU(16),o.qZA(),o.qZA(),o.TgZ(17,"div",10),o.TgZ(18,"h4",11),o._uU(19,"Peer Alias"),o.qZA(),o.TgZ(20,"span",12),o._uU(21),o.qZA(),o.qZA(),o.qZA(),o._UZ(22,"mat-divider",13),o.TgZ(23,"div",9),o.TgZ(24,"div",1),o.TgZ(25,"h4",11),o._uU(26,"Channel Point"),o.qZA(),o.TgZ(27,"span",12),o._uU(28),o.qZA(),o.qZA(),o.qZA(),o._UZ(29,"mat-divider",13),o.TgZ(30,"div",9),o.TgZ(31,"div",1),o.TgZ(32,"h4",11),o._uU(33,"Peer Public Key"),o.qZA(),o.TgZ(34,"span",12),o._uU(35),o.qZA(),o.qZA(),o.qZA(),o._UZ(36,"mat-divider",13),o.TgZ(37,"div",9),o.TgZ(38,"div",14),o.TgZ(39,"h4",11),o._uU(40,"Local Balance"),o.qZA(),o.TgZ(41,"span",15),o._uU(42),o.ALo(43,"number"),o.qZA(),o.qZA(),o.TgZ(44,"div",14),o.TgZ(45,"h4",11),o._uU(46,"Remote Balance"),o.qZA(),o.TgZ(47,"span",15),o._uU(48),o.ALo(49,"number"),o.qZA(),o.qZA(),o.TgZ(50,"div",14),o.TgZ(51,"h4",11),o._uU(52,"Capacity"),o.qZA(),o.TgZ(53,"span",15),o._uU(54),o.ALo(55,"number"),o.qZA(),o.qZA(),o.TgZ(56,"div",14),o.TgZ(57,"h4",11),o._uU(58,"Uptime (Seconds)"),o.qZA(),o.TgZ(59,"span",15),o._uU(60),o.ALo(61,"number"),o.qZA(),o.qZA(),o.qZA(),o._UZ(62,"mat-divider",13),o.TgZ(63,"div",9),o.TgZ(64,"div",14),o.TgZ(65,"h4",11),o._uU(66,"Active"),o.qZA(),o.TgZ(67,"span",15),o._uU(68),o.qZA(),o.qZA(),o.TgZ(69,"div",14),o.TgZ(70,"h4",11),o._uU(71,"Private"),o.qZA(),o.TgZ(72,"span",15),o._uU(73),o.qZA(),o.qZA(),o.TgZ(74,"div",14),o.TgZ(75,"h4",11),o._uU(76,"Initiator"),o.qZA(),o.TgZ(77,"span",15),o._uU(78),o.qZA(),o.qZA(),o.TgZ(79,"div",14),o.TgZ(80,"h4",11),o._uU(81,"Number of Updates"),o.qZA(),o.TgZ(82,"span",15),o._uU(83),o.ALo(84,"number"),o.qZA(),o.qZA(),o.qZA(),o._UZ(85,"mat-divider",13),o.YNc(86,Ti,78,39,"div",16),o.TgZ(87,"div",17),o.TgZ(88,"button",18),o.NdJ("click",function(){return t.onShowAdvanced()}),o.YNc(89,bi,2,0,"p",19),o.YNc(90,wi,2,0,"ng-template",null,20,o.W1O),o.qZA(),o.YNc(92,_i,2,1,"button",21),o.YNc(93,vi,2,0,"button",22),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA()),2&e){const e=o.MAs(91);o.xp6(4),o.Q6J("icon",t.faReceipt),o.xp6(5),o.Q6J("ngClass",o.VKq(34,qi,t.screenSize===t.screenSizeEnum.XS)),o.xp6(7),o.Oqu(t.channel.chan_id),o.xp6(5),o.Oqu(t.channel.remote_alias),o.xp6(1),o.Q6J("inset",!0),o.xp6(6),o.Oqu(t.channel.channel_point),o.xp6(1),o.Q6J("inset",!0),o.xp6(6),o.Oqu(t.channel.remote_pubkey),o.xp6(1),o.Q6J("inset",!0),o.xp6(6),o.Oqu(o.lcZ(43,24,t.channel.local_balance)),o.xp6(6),o.Oqu(o.lcZ(49,26,t.channel.remote_balance)),o.xp6(6),o.Oqu(o.lcZ(55,28,t.channel.capacity)),o.xp6(6),o.Oqu(o.lcZ(61,30,t.channel.uptime)),o.xp6(2),o.Q6J("inset",!0),o.xp6(6),o.Oqu(t.channel.active?"Yes":"No"),o.xp6(5),o.Oqu(t.channel.private?"Yes":"No"),o.xp6(5),o.Oqu(t.channel.initiator?"Yes":"No"),o.xp6(5),o.Oqu(o.lcZ(84,32,t.channel.num_updates)),o.xp6(2),o.Q6J("inset",!0),o.xp6(1),o.Q6J("ngIf",t.showAdvanced),o.xp6(3),o.Q6J("ngIf",!t.showAdvanced)("ngIfElse",e),o.xp6(3),o.Q6J("ngIf",t.showCopy),o.xp6(1),o.Q6J("ngIf",!t.showCopy)}},directives:[l.xw,l.Wh,l.yH,w.dk,T.BN,q.lW,w.dn,a.mk,v.oO,M.d,a.O5,Te.h,Ci.y],pipes:[a.JJ],styles:[""]}),e})();var Fi=n(2041);const Li=["stepper"];function ki(e,t){if(1&e&&o._uU(0),2&e){const e=o.oxw();o.Oqu(e.inputFormLabel)}}function Ni(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Amount is required."),o.qZA())}function Ui(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Amount must be a positive number."),o.qZA())}function Ii(e,t){if(1&e&&(o.TgZ(0,"mat-error"),o._uU(1),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.hij("Amount must be less than or equal to ",null==e.selChannel?null:e.selChannel.local_balance,".")}}function Oi(e,t){if(1&e&&(o.TgZ(0,"mat-option",52),o._uU(1),o.qZA()),2&e){const e=t.$implicit;o.Q6J("value",e),o.xp6(1),o.Oqu(e.remote_alias||e.chan_id)}}function Ji(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Peer is required."),o.qZA())}function Di(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Peer not found in the list."),o.qZA())}function Ri(e,t){if(1&e&&o._uU(0),2&e){const e=o.oxw();o.Oqu(e.feeFormLabel)}}function Mi(e,t){if(1&e&&(o.TgZ(0,"mat-option",52),o._uU(1),o.qZA()),2&e){const e=t.$implicit;o.Q6J("value",e),o.xp6(1),o.hij(" ",e.name," ")}}function Ei(e,t){if(1&e&&(o.TgZ(0,"mat-error"),o._uU(1),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.hij("",e.feeFormGroup.controls.selFeeLimitType.value?e.feeFormGroup.controls.selFeeLimitType.value.placeholder:e.feeLimitTypes[0].placeholder," is required.")}}function Qi(e,t){if(1&e&&(o.TgZ(0,"mat-error"),o._uU(1),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.hij("",e.feeFormGroup.controls.selFeeLimitType.value?e.feeFormGroup.controls.selFeeLimitType.value.placeholder:e.feeLimitTypes[0].placeholder," must be a positive number.")}}function Yi(e,t){1&e&&o._uU(0,"Invoice/Payment")}function Pi(e,t){1&e&&(o.TgZ(0,"mat-icon",53),o._uU(1,"check"),o.qZA())}function Bi(e,t){1&e&&o._UZ(0,"mat-progress-bar",54)}function Gi(e,t){if(1&e&&(o.TgZ(0,"mat-icon",53),o._uU(1),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Oqu(null!=e.paymentStatus&&e.paymentStatus.error?"close":"check")}}function Hi(e,t){1&e&&o._UZ(0,"div",7)}function zi(e,t){1&e&&o._UZ(0,"mat-progress-bar",54)}function Vi(e,t){if(1&e&&(o.TgZ(0,"h4",55),o._uU(1),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Oqu(e.paymentStatus&&e.paymentStatus.payment_hash?"Rebalance Successful.":"Rebalance Failed.")}}function Wi(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"button",56),o.NdJ("click",function(){return o.CHM(e),o.oxw().onRestart()}),o._uU(1,"Start Again"),o.qZA()}}function Xi(e,t){1&e&&o.GkF(0)}function $i(e,t){if(1&e&&o.YNc(0,Xi,1,0,"ng-container",57),2&e){const e=o.oxw(),t=o.MAs(98),n=o.MAs(100);o.Q6J("ngTemplateOutlet",e.paymentStatus.error?t:n)}}function ji(e,t){if(1&e&&(o.TgZ(0,"div",7),o.TgZ(1,"span",40),o._uU(2),o.qZA(),o.qZA()),2&e){const e=o.oxw();o.xp6(2),o.hij("Error: ",e.paymentStatus.error,"")}}function Ki(e,t){if(1&e&&(o.TgZ(0,"div",7),o.TgZ(1,"div",0),o.TgZ(2,"div",1),o.TgZ(3,"h4",58),o._uU(4,"Payment Hash"),o.qZA(),o.TgZ(5,"span",40),o._uU(6),o.qZA(),o.qZA(),o.qZA(),o._UZ(7,"mat-divider",59),o.TgZ(8,"div",0),o.TgZ(9,"div",60),o.TgZ(10,"h4",58),o._uU(11),o.qZA(),o.TgZ(12,"span",40),o._uU(13),o.qZA(),o.qZA(),o.TgZ(14,"div",60),o.TgZ(15,"h4",58),o._uU(16,"Number of Hops"),o.qZA(),o.TgZ(17,"span",40),o._uU(18),o.qZA(),o.qZA(),o.qZA(),o.qZA()),2&e){const e=o.oxw();o.xp6(6),o.Oqu(e.paymentStatus.payment_hash),o.xp6(5),o.hij("Total Fees (",e.paymentStatus.payment_route.total_fees_msat?"mSats":"Sats",")"),o.xp6(2),o.Oqu(e.paymentStatus.payment_route.total_fees_msat?e.paymentStatus.payment_route.total_fees_msat:e.paymentStatus.payment_route.total_fees?e.paymentStatus.payment_route.total_fees:0),o.xp6(5),o.Oqu(e.paymentStatus&&e.paymentStatus.payment_route&&e.paymentStatus.payment_route.hops&&e.paymentStatus.payment_route.hops.length?e.paymentStatus.payment_route.hops.length:0)}}let es=(()=>{class e{constructor(e,t,n,a,i,s,o){this.dialogRef=e,this.data=t,this.logger=n,this.store=a,this.actions=i,this.formBuilder=s,this.decimalPipe=o,this.faInfoCircle=g.sqG,this.invoices={},this.selChannel={},this.activeChannels=[],this.feeLimitTypes=[],this.queryRoute={},this.paymentRequest="",this.paymentStatus=null,this.flgReusingInvoice=!1,this.flgInvoiceGenerated=!1,this.flgPaymentSent=!1,this.inputFormLabel="Amount to rebalance",this.feeFormLabel="Select rebalance fee",this.flgEditable=!0,this.unSubs=[new p.x,new p.x,new p.x,new p.x]}ngOnInit(){let e="",t="";this.selChannel=this.data.message.selChannel,this.activeChannels=this.data.message.channels.filter(e=>e.active&&e.chan_id!==this.selChannel.chan_id&&e.remote_balance>0),this.activeChannels=this.activeChannels.sort((n,a)=>(e=n.remote_alias?n.remote_alias.toLowerCase():n.chan_id?n.chan_id.toLowerCase():"",t=a.remote_alias?a.remote_alias.toLowerCase():n.chan_id.toLowerCase(),et?1:0)),f.Vc.forEach((e,t)=>{t>0&&this.feeLimitTypes.push(e)}),this.inputFormGroup=this.formBuilder.group({hiddenAmount:["",[Ae.kI.required]],rebalanceAmount:["",[Ae.kI.required,Ae.kI.min(1),Ae.kI.max(this.selChannel.local_balance)]],selRebalancePeer:[null,Ae.kI.required]}),this.feeFormGroup=this.formBuilder.group({selFeeLimitType:[this.feeLimitTypes[0],Ae.kI.required],feeLimit:["",[Ae.kI.required,Ae.kI.min(0)]],hiddenFeeLimit:["",[Ae.kI.required]]}),this.statusFormGroup=this.formBuilder.group({}),this.store.select("lnd").pipe((0,d.R)(this.unSubs[0])).subscribe(e=>{this.invoices=e.invoices,this.logger.info(e)}),this.actions.pipe((0,d.R)(this.unSubs[1]),(0,h.h)(e=>e.type===x.qs||e.type===x.ug||e.type===x.mZ)).subscribe(e=>{e.type===x.qs&&(this.queryRoute=e.payload),e.type===x.ug&&(this.logger.info(e.payload),this.flgPaymentSent=!0,this.paymentStatus=e.payload,this.flgEditable=!0),e.type===x.mZ&&(this.logger.info(e.payload),this.flgInvoiceGenerated=!0,this.sendPayment(e.payload.paymentRequest))}),this.inputFormGroup.get("rebalanceAmount").valueChanges.pipe((0,d.R)(this.unSubs[2]),(0,da.O)(0)).subscribe(e=>{this.inputFormGroup.controls.selRebalancePeer.setValue(""),this.inputFormGroup.controls.selRebalancePeer.setErrors(null),this.filteredActiveChannels=(0,Fi.of)(e?this.filterActiveChannels():this.activeChannels.slice())}),this.inputFormGroup.get("selRebalancePeer").valueChanges.pipe((0,d.R)(this.unSubs[3]),(0,da.O)("")).subscribe(e=>{"string"==typeof e&&(this.filteredActiveChannels=(0,Fi.of)(this.filterActiveChannels()))})}onSelectFee(){if(this.inputFormGroup.controls.selRebalancePeer.value&&"string"==typeof this.inputFormGroup.controls.selRebalancePeer.value&&this.onSelectedPeerChanged(),!this.inputFormGroup.controls.selRebalancePeer.value||"string"==typeof this.inputFormGroup.controls.selRebalancePeer.value||!this.inputFormGroup.controls.rebalanceAmount.value)return!0;0===this.stepper.selectedIndex&&(this.inputFormGroup.controls.hiddenAmount.setValue(this.inputFormGroup.controls.rebalanceAmount.value),this.stepper.next()),this.queryRoute=null,this.feeFormGroup.reset(),this.feeFormGroup.controls.selFeeLimitType.setValue(this.feeLimitTypes[0]),this.feeFormGroup.controls.feeLimit.setValue(""),this.feeFormGroup.controls.feeLimit.setErrors(null),this.feeFormGroup.controls.hiddenFeeLimit.setValue(""),this.feeFormGroup.controls.hiddenFeeLimit.setErrors(null)}stepSelectionChanged(e){switch(e.selectedIndex){case 0:this.inputFormLabel="Amount to rebalance",this.feeFormLabel="Select rebalance fee";break;case 1:this.inputFormLabel=this.inputFormGroup.controls.rebalanceAmount.value||this.inputFormGroup.controls.selRebalancePeer.value.remote_alias?"Rebalancing Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.rebalanceAmount.value?this.inputFormGroup.controls.rebalanceAmount.value:0)+" Sats | Peer: "+(this.inputFormGroup.controls.selRebalancePeer.value.remote_alias?this.inputFormGroup.controls.selRebalancePeer.value.remote_alias:this.inputFormGroup.controls.selRebalancePeer.value.remote_pubkey.substring(0,15)+"..."):"Amount to rebalance",this.feeFormLabel="Select rebalance fee";break;case 2:this.inputFormLabel=this.inputFormGroup.controls.rebalanceAmount.value||this.inputFormGroup.controls.selRebalancePeer.value.remote_alias?"Rebalancing Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.rebalanceAmount.value?this.inputFormGroup.controls.rebalanceAmount.value:0)+" Sats | Peer: "+(this.inputFormGroup.controls.selRebalancePeer.value.remote_alias?this.inputFormGroup.controls.selRebalancePeer.value.remote_alias:this.inputFormGroup.controls.selRebalancePeer.value.remote_pubkey.substring(0,15)+"..."):"Amount to rebalance",this.feeFormLabel=this.queryRoute&&this.queryRoute.routes&&this.queryRoute.routes.length>0&&(this.queryRoute.routes[0].total_fees_msat||this.queryRoute.routes[0].hops&&this.queryRoute.routes[0].hops.length)?this.feeFormGroup.controls.selFeeLimitType.value.placeholder+": "+this.decimalPipe.transform(this.feeFormGroup.controls.feeLimit.value?this.feeFormGroup.controls.feeLimit.value:0)+" | Hops: "+this.queryRoute.routes[0].hops.length:"Select rebalance fee";break;default:this.inputFormLabel="Amount to rebalance",this.feeFormLabel="Select rebalance fee"}e.selectedIndex+this.selChannel.local_balance||!this.feeFormGroup.controls.feeLimit.value||this.feeFormGroup.controls.feeLimit.value<0||!this.inputFormGroup.controls.selRebalancePeer.value.remote_pubkey)return!0;this.feeFormGroup.controls.hiddenFeeLimit.setValue(this.feeFormGroup.controls.feeLimit.value),this.stepper.next(),this.flgEditable=!1,this.paymentRequest="",this.paymentStatus=null,this.flgReusingInvoice=!1,this.flgInvoiceGenerated=!1,this.flgPaymentSent=!1;const e=this.findUnsettledInvoice();e?(this.flgReusingInvoice=!0,this.sendPayment(e.payment_request)):this.store.dispatch(new x.H1({uiMessage:f.m6.NO_SPINNER,memo:"Local-Rebalance-"+this.inputFormGroup.controls.rebalanceAmount.value+"-Sats",invoiceValue:this.inputFormGroup.controls.rebalanceAmount.value,private:!1,expiry:3600,pageSize:f.IV,openModal:!1}))}findUnsettledInvoice(){return this.invoices.invoices.find(e=>(0==+e.settle_date||!e.settle_date)&&e.memo==="Local-Rebalance-"+this.inputFormGroup.controls.rebalanceAmount.value+"-Sats"&&"CANCELED"!==e.state)}sendPayment(e){this.flgInvoiceGenerated=!0,this.paymentRequest=e,this.store.dispatch(new x.Ar({uiMessage:f.m6.NO_SPINNER,paymentReq:e,outgoingChannel:this.selChannel,feeLimitType:this.feeFormGroup.controls.selFeeLimitType.value,feeLimit:this.feeFormGroup.controls.feeLimit.value,allowSelfPayment:!0,lastHopPubkey:this.inputFormGroup.controls.selRebalancePeer.value.remote_pubkey,fromDialog:!0}))}filterActiveChannels(){return this.activeChannels.filter(e=>e.remote_balance>=this.inputFormGroup.controls.rebalanceAmount.value&&e.chan_id!==this.selChannel.chan_id&&(0===e.remote_alias.toLowerCase().indexOf(this.inputFormGroup.controls.selRebalancePeer.value?this.inputFormGroup.controls.selRebalancePeer.value.toLowerCase():"")||0===e.chan_id.toLowerCase().indexOf(this.inputFormGroup.controls.selRebalancePeer.value?this.inputFormGroup.controls.selRebalancePeer.value.toLowerCase():"")))}onSelectedPeerChanged(){if(this.inputFormGroup.controls.selRebalancePeer.value&&this.inputFormGroup.controls.selRebalancePeer.value.length>0&&"string"==typeof this.inputFormGroup.controls.selRebalancePeer.value){const e=this.activeChannels.filter(e=>e.remote_alias.length===this.inputFormGroup.controls.selRebalancePeer.value.length&&0===e.remote_alias.toLowerCase().indexOf(this.inputFormGroup.controls.selRebalancePeer.value?this.inputFormGroup.controls.selRebalancePeer.value.toLowerCase():""));e&&e.length>0?(this.inputFormGroup.controls.selRebalancePeer.setValue(e[0]),this.inputFormGroup.controls.selRebalancePeer.setErrors(null)):this.inputFormGroup.controls.selRebalancePeer.setErrors({notfound:!0})}}displayFn(e){return e&&e.remote_alias?e.remote_alias:e&&e.chan_id?e.chan_id:""}onClose(){this.dialogRef.close(!1)}onRestart(){this.flgInvoiceGenerated=!1,this.flgPaymentSent=!1,this.flgEditable=!0,this.stepper.reset(),this.inputFormGroup.reset(),this.feeFormGroup.reset(),this.statusFormGroup.reset(),this.inputFormGroup.controls.hiddenAmount.setValue(""),this.inputFormGroup.controls.hiddenAmount.setErrors(null),this.inputFormGroup.controls.rebalanceAmount.setValue(""),this.inputFormGroup.controls.rebalanceAmount.setErrors(null),this.inputFormGroup.controls.selRebalancePeer.setValue(""),this.inputFormGroup.controls.selRebalancePeer.setErrors(null),this.filteredActiveChannels=(0,Fi.of)(this.activeChannels)}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(ye.so),o.Y36(ye.WI),o.Y36(Z.mQ),o.Y36(y.yh),o.Y36(A.eX),o.Y36(Ae.qu),o.Y36(a.JJ))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-channel-rebalance"]],viewQuery:function(e,t){if(1&e&&o.Gf(Li,5),2&e){let e;o.iGM(e=o.CRH())&&(t.stepper=e.first)}},decls:101,vars:45,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","15","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"alert","alert-info"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","space-between stretch",1,"padding-gap-large"],["fxFlex","40"],["fxFlex","30"],[3,"linear","selectionChange"],["stepper",""],[3,"stepControl","editable"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"my-1",3,"formGroup"],["matStepLabel",""],["fxLayout","column","fxLayout.gt-sm","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","48"],["autoFocus","","matInput","","placeholder","Amount","type","number","tabindex","1","formControlName","rebalanceAmount","required","",3,"step"],["matSuffix",""],[4,"ngIf"],["fxFlex","48","fxLayoutAlign","start end"],["type","text","placeholder","Receive from Peer","aria-label","Receive from Peer","matInput","","formControlName","selRebalancePeer","tabindex","2","required","",3,"matAutocomplete","change"],[3,"displayWith","optionSelected"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","3","type","submit",3,"click"],["matStepLabel","","disabled","true"],["tabindex","6","formControlName","selFeeLimitType","Placeholder","Fee Limits","required",""],["matInput","","formControlName","feeLimit","type","number","tabindex","7","required","",3,"placeholder","step"],["mat-stroked-button","","color","primary","tabindex","8","type","submit",3,"click"],[3,"stepControl"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"flat-expansion-panel","mb-2"],["fxLayoutAlign","start center","fxFlex","100"],["class","ml-1 icon-small",4,"ngIf"],[1,"foreground-secondary-text"],["fxFlex","100","color","primary","mode","indeterminate",4,"ngIf"],["fxFlex","100",1,"flat-expansion-panel",3,"expanded"],["fxLayout","column",4,"ngIf","ngIfElse"],["fxLayoutAlign","start","class","font-bold-500 mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-1"],["mat-flat-button","","color","primary","tabindex","11","type","button",3,"click",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","tabindex","12","type","button","default","",3,"mat-dialog-close"],["paymentStatusBlock",""],["paymentFailedBlock",""],["paymentSuccessfulBlock",""],[3,"value"],[1,"ml-1","icon-small"],["fxFlex","100","color","primary","mode","indeterminate"],["fxLayoutAlign","start",1,"font-bold-500","mt-1"],["mat-flat-button","","color","primary","tabindex","11","type","button",3,"click"],[4,"ngTemplateOutlet"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"w-100","my-1"],["fxFlex","50"]],template:function(e,t){if(1&e&&(o.TgZ(0,"div",0),o.TgZ(1,"div",1),o.TgZ(2,"mat-card-header",2),o.TgZ(3,"div",3),o.TgZ(4,"span",4),o._uU(5,"Channel Rebalance"),o.qZA(),o.qZA(),o.TgZ(6,"button",5),o.NdJ("click",function(){return t.onClose()}),o._uU(7,"X"),o.qZA(),o.qZA(),o.TgZ(8,"mat-card-content",6),o.TgZ(9,"div",7),o.TgZ(10,"div",8),o.TgZ(11,"div",9),o._UZ(12,"fa-icon",10),o.TgZ(13,"span"),o._uU(14,"Circular Rebalance is a payment you make to *yourselves* to affect a relative change in the balances of two channels. This is accomplished by sending payment out from the selected channel and receiving it back on the channel with the selected peer. Please note, you will be paying routing fee to balance the channels in this manner."),o.qZA(),o.qZA(),o.qZA(),o.TgZ(15,"div",11),o.TgZ(16,"p",12),o.TgZ(17,"strong"),o._uU(18,"Channel Peer:\xa0"),o.qZA(),o._uU(19),o.ALo(20,"titlecase"),o.qZA(),o.TgZ(21,"p",13),o.TgZ(22,"strong"),o._uU(23,"Channel ID:\xa0"),o.qZA(),o._uU(24),o.qZA(),o._UZ(25,"p",13),o.qZA(),o.TgZ(26,"mat-vertical-stepper",14,15),o.NdJ("selectionChange",function(e){return t.stepSelectionChanged(e)}),o.TgZ(28,"mat-step",16),o.TgZ(29,"form",17),o.YNc(30,ki,1,1,"ng-template",18),o.TgZ(31,"div",19),o.TgZ(32,"mat-form-field",20),o._UZ(33,"input",21),o.TgZ(34,"mat-hint"),o._uU(35),o.qZA(),o.TgZ(36,"span",22),o._uU(37,"Sats"),o.qZA(),o.YNc(38,Ni,2,0,"mat-error",23),o.YNc(39,Ui,2,0,"mat-error",23),o.YNc(40,Ii,2,1,"mat-error",23),o.qZA(),o.TgZ(41,"mat-form-field",24),o.TgZ(42,"input",25),o.NdJ("change",function(){return t.onSelectedPeerChanged()}),o.qZA(),o.TgZ(43,"mat-autocomplete",26,27),o.NdJ("optionSelected",function(){return t.onSelectedPeerChanged()}),o.YNc(45,Oi,2,2,"mat-option",28),o.ALo(46,"async"),o.qZA(),o.YNc(47,Ji,2,0,"mat-error",23),o.YNc(48,Di,2,0,"mat-error",23),o.qZA(),o.qZA(),o.TgZ(49,"div",29),o.TgZ(50,"button",30),o.NdJ("click",function(){return t.onSelectFee()}),o._uU(51,"Select Fee"),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.TgZ(52,"mat-step",16),o.TgZ(53,"form",17),o.YNc(54,Ri,1,1,"ng-template",31),o.TgZ(55,"div",19),o.TgZ(56,"div",19),o.TgZ(57,"mat-form-field",24),o.TgZ(58,"mat-select",32),o.YNc(59,Mi,2,2,"mat-option",28),o.qZA(),o.qZA(),o.TgZ(60,"mat-form-field",20),o._UZ(61,"input",33),o.YNc(62,Ei,2,1,"mat-error",23),o.YNc(63,Qi,2,1,"mat-error",23),o.qZA(),o.qZA(),o.qZA(),o.TgZ(64,"div",29),o.TgZ(65,"button",34),o.NdJ("click",function(){return t.onRebalance()}),o._uU(66,"Rebalance"),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.TgZ(67,"mat-step",35),o.TgZ(68,"form",17),o.YNc(69,Yi,1,0,"ng-template",18),o.TgZ(70,"div",36),o.TgZ(71,"mat-expansion-panel",37),o.TgZ(72,"mat-expansion-panel-header"),o.TgZ(73,"mat-panel-title"),o.TgZ(74,"span",38),o._uU(75),o.YNc(76,Pi,2,0,"mat-icon",39),o.qZA(),o.qZA(),o.qZA(),o.TgZ(77,"div",7),o.TgZ(78,"span",40),o._uU(79),o.qZA(),o.qZA(),o.qZA(),o.YNc(80,Bi,1,0,"mat-progress-bar",41),o.TgZ(81,"mat-expansion-panel",42),o.TgZ(82,"mat-expansion-panel-header"),o.TgZ(83,"mat-panel-title"),o.TgZ(84,"span",38),o._uU(85),o.YNc(86,Gi,2,1,"mat-icon",39),o.qZA(),o.qZA(),o.qZA(),o.YNc(87,Hi,1,0,"div",43),o.qZA(),o.YNc(88,zi,1,0,"mat-progress-bar",41),o.qZA(),o.YNc(89,Vi,2,1,"h4",44),o.TgZ(90,"div",45),o.YNc(91,Wi,2,0,"button",46),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.TgZ(92,"div",47),o.TgZ(93,"button",48),o._uU(94,"Close"),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.YNc(95,$i,1,1,"ng-template",null,49,o.W1O),o.YNc(97,ji,3,1,"ng-template",null,50,o.W1O),o.YNc(99,Ki,19,4,"ng-template",null,51,o.W1O)),2&e){const e=o.MAs(44),n=o.MAs(96);o.xp6(12),o.Q6J("icon",t.faInfoCircle),o.xp6(7),o.Oqu(o.lcZ(20,41,t.selChannel.remote_alias)),o.xp6(5),o.Oqu(t.selChannel.chan_id),o.xp6(2),o.Q6J("linear",!0),o.xp6(2),o.Q6J("stepControl",t.inputFormGroup)("editable",t.flgEditable),o.xp6(1),o.Q6J("formGroup",t.inputFormGroup),o.xp6(4),o.Q6J("step",100),o.xp6(2),o.AsE("(Local Bal: ",null==t.selChannel?null:t.selChannel.local_balance,", Remaining: ",(null==t.selChannel?null:t.selChannel.local_balance)-(t.inputFormGroup.controls.rebalanceAmount.value?t.inputFormGroup.controls.rebalanceAmount.value:0),")"),o.xp6(3),o.Q6J("ngIf",null==t.inputFormGroup.controls.rebalanceAmount.errors?null:t.inputFormGroup.controls.rebalanceAmount.errors.required),o.xp6(1),o.Q6J("ngIf",null==t.inputFormGroup.controls.rebalanceAmount.errors?null:t.inputFormGroup.controls.rebalanceAmount.errors.min),o.xp6(1),o.Q6J("ngIf",null==t.inputFormGroup.controls.rebalanceAmount.errors?null:t.inputFormGroup.controls.rebalanceAmount.errors.max),o.xp6(2),o.Q6J("matAutocomplete",e),o.xp6(1),o.Q6J("displayWith",t.displayFn),o.xp6(2),o.Q6J("ngForOf",o.lcZ(46,43,t.filteredActiveChannels)),o.xp6(2),o.Q6J("ngIf",null==t.inputFormGroup.controls.selRebalancePeer.errors?null:t.inputFormGroup.controls.selRebalancePeer.errors.required),o.xp6(1),o.Q6J("ngIf",null==t.inputFormGroup.controls.selRebalancePeer.errors?null:t.inputFormGroup.controls.selRebalancePeer.errors.notfound),o.xp6(4),o.Q6J("stepControl",t.feeFormGroup)("editable",t.flgEditable),o.xp6(1),o.Q6J("formGroup",t.feeFormGroup),o.xp6(6),o.Q6J("ngForOf",t.feeLimitTypes),o.xp6(2),o.s9C("placeholder",t.feeFormGroup.controls.selFeeLimitType.value?t.feeFormGroup.controls.selFeeLimitType.value.placeholder:t.feeLimitTypes[0].placeholder),o.Q6J("step",1),o.xp6(1),o.Q6J("ngIf",null==t.feeFormGroup.controls.feeLimit.errors?null:t.feeFormGroup.controls.feeLimit.errors.required),o.xp6(1),o.Q6J("ngIf",null==t.feeFormGroup.controls.feeLimit.errors?null:t.feeFormGroup.controls.feeLimit.errors.min),o.xp6(4),o.Q6J("stepControl",t.statusFormGroup),o.xp6(1),o.Q6J("formGroup",t.statusFormGroup),o.xp6(7),o.Oqu(t.flgInvoiceGenerated?t.flgReusingInvoice?"Invoice re-used":"Invoice generated":"Generating invoice..."),o.xp6(1),o.Q6J("ngIf",t.flgInvoiceGenerated),o.xp6(3),o.Oqu(t.paymentRequest),o.xp6(1),o.Q6J("ngIf",!t.flgInvoiceGenerated),o.xp6(1),o.Q6J("expanded",(t.flgInvoiceGenerated||t.flgReusingInvoice)&&t.flgPaymentSent),o.xp6(4),o.Oqu(t.flgInvoiceGenerated||t.flgPaymentSent?t.flgPaymentSent?null!=t.paymentStatus&&t.paymentStatus.error?"Payment failed":"Payment successful":"Processing payment...":"Payment waiting for Invoice"),o.xp6(1),o.Q6J("ngIf",t.flgPaymentSent),o.xp6(1),o.Q6J("ngIf",!t.paymentStatus)("ngIfElse",n),o.xp6(1),o.Q6J("ngIf",t.flgInvoiceGenerated&&!t.flgPaymentSent),o.xp6(1),o.Q6J("ngIf",t.flgInvoiceGenerated&&t.flgPaymentSent),o.xp6(2),o.Q6J("ngIf",t.paymentStatus&&t.paymentStatus.error),o.xp6(2),o.Q6J("mat-dialog-close",!1)}},directives:[l.xw,l.yH,w.dk,l.Wh,q.lW,w.dn,T.BN,La.Vq,La.C0,Ae._Y,Ae.JL,Ae.sg,La.VY,D.KE,Ce.Nt,Ae.wV,Ae.Fj,Te.h,Ae.JJ,Ae.u,Ae.Q7,D.bx,D.R9,a.O5,mt.ZL,mt.XC,a.sg,we.gD,ht.ib,ht.yz,ht.yK,ye.ZT,D.TO,ve.ey,S.Hw,r.pW,a.tP,M.d],pipes:[a.rS,a.Ov],styles:[""]}),e})();function ts(e,t){if(1&e&&(o.TgZ(0,"div",16),o.TgZ(1,"p",17),o.TgZ(2,"mat-icon",18),o._uU(3,"close"),o.qZA(),o._uU(4),o.qZA(),o.qZA()),2&e){const e=o.oxw();o.xp6(4),o.Oqu(e.errorMsg)}}function ns(e,t){if(1&e&&(o.TgZ(0,"div",27),o._UZ(1,"fa-icon",28),o.TgZ(2,"span"),o._uU(3,"Priority/Fee for force closing inactive channels cannot be modified."),o.qZA(),o.qZA()),2&e){const e=o.oxw(2);o.xp6(1),o.Q6J("icon",e.faInfoCircle)}}function as(e,t){if(1&e&&(o.TgZ(0,"mat-option",29),o._uU(1),o.qZA()),2&e){const e=t.$implicit;o.Q6J("value",e.id),o.xp6(1),o.hij(" ",e.name," ")}}function is(e,t){1&e&&(o.TgZ(0,"mat-form-field",30),o._UZ(1,"input",31),o.qZA())}function ss(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Number of blocks is required."),o.qZA())}function os(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"mat-form-field",32),o.TgZ(1,"input",33,34),o.NdJ("ngModelChange",function(t){return o.CHM(e),o.oxw(2).blocks=t}),o.qZA(),o.YNc(3,ss,2,0,"mat-error",35),o.qZA()}if(2&e){const e=o.oxw(2);o.xp6(1),o.Q6J("ngModel",e.blocks)("step",1)("min",0),o.xp6(2),o.Q6J("ngIf",!e.blocks)}}function ls(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Fees is required."),o.qZA())}function rs(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"mat-form-field",32),o.TgZ(1,"input",36,37),o.NdJ("ngModelChange",function(t){return o.CHM(e),o.oxw(2).fees=t}),o.qZA(),o.YNc(3,ls,2,0,"mat-error",35),o.qZA()}if(2&e){const e=o.oxw(2);o.xp6(1),o.Q6J("ngModel",e.fees)("step",1)("min",0),o.xp6(2),o.Q6J("ngIf",!e.fees)}}function cs(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"div",19),o.YNc(1,ns,4,1,"div",20),o.TgZ(2,"div",21),o.TgZ(3,"mat-form-field",22),o.TgZ(4,"mat-select",23),o.NdJ("valueChange",function(t){return o.CHM(e),o.oxw().selTransType=t}),o.YNc(5,as,2,2,"mat-option",24),o.qZA(),o.qZA(),o.YNc(6,is,2,0,"mat-form-field",25),o.YNc(7,os,4,4,"mat-form-field",26),o.YNc(8,rs,4,4,"mat-form-field",26),o.qZA(),o.qZA()}if(2&e){const e=o.oxw();o.xp6(1),o.Q6J("ngIf",!e.channelToClose.active),o.xp6(3),o.Q6J("value",e.selTransType)("disabled",!e.channelToClose.active),o.xp6(1),o.Q6J("ngForOf",e.transTypes),o.xp6(1),o.Q6J("ngIf","0"===e.selTransType),o.xp6(1),o.Q6J("ngIf","1"===e.selTransType),o.xp6(1),o.Q6J("ngIf","2"===e.selTransType)}}function us(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"button",38),o.NdJ("click",function(){return o.CHM(e),o.oxw().resetData()}),o._uU(1,"Clear"),o.qZA()}}function ps(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"button",39),o.NdJ("click",function(){return o.CHM(e),o.oxw().onCloseChannel()}),o._uU(1),o.qZA()}if(2&e){const e=o.oxw();o.xp6(1),o.Oqu(e.channelToClose.active?"Close Channel":"Force Close")}}function ds(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"button",40),o.NdJ("click",function(){return o.CHM(e),o.oxw().onClose()}),o._uU(1,"Ok"),o.qZA()}}let hs=(()=>{class e{constructor(e,t,n,a,i){this.dialogRef=e,this.data=t,this.store=n,this.actions=a,this.logger=i,this.transTypes=f.Dr,this.selTransType="0",this.blocks=null,this.fees=null,this.faExclamationTriangle=g.eHv,this.faInfoCircle=g.sqG,this.flgPendingHtlcs=!1,this.errorMsg="Please wait for pending HTLCs to settle before attempting channel closure.",this.unSubs=[new p.x,new p.x]}ngOnInit(){this.channelToClose=this.data.channel,this.actions.pipe((0,d.R)(this.unSubs[0]),(0,h.h)(e=>e.type===x.JE||e.type===x.P2)).subscribe(e=>{if(e.type===x.P2){const t=e.payload.find(e=>e.chan_id===this.data.channel.chan_id);t.pending_htlcs&&t.pending_htlcs.length&&t.pending_htlcs.length>0&&(this.flgPendingHtlcs=!0)}e.type===x.JE&&e.payload.status===f.Bn.ERROR&&"FetchAllChannels"===e.payload.action&&this.logger.error("Fetching latest channel information failed!\n"+e.payload.message)})}onCloseChannel(){if("1"===this.selTransType&&(!this.blocks||0===this.blocks)||"2"===this.selTransType&&(!this.fees||0===this.fees))return!0;const e={channelPoint:this.channelToClose.channel_point,forcibly:!this.channelToClose.active};this.blocks&&(e.targetConf=this.blocks),this.fees&&(e.satPerByte=this.fees),this.store.dispatch(new x.e8(e)),this.dialogRef.close(!1)}resetData(){this.selTransType="0",this.blocks=null,this.fees=null}onClose(){this.dialogRef.close(!1)}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(ye.so),o.Y36(ye.WI),o.Y36(y.yh),o.Y36(A.eX),o.Y36(Z.mQ))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-close-channel"]],decls:19,vars:7,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],["fxLayout","column",1,"bordered-box","mb-1","p-2"],["fxLayoutAlign","start center",1,"pb-1","word-break"],["fxLayoutAlign","start center",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","reset","class","mr-1","tabindex","3","default","",3,"click",4,"ngIf"],["mat-flat-button","","color","primary","type","submit","tabindex","4",3,"click",4,"ngIf"],["mat-flat-button","","color","primary","type","submit","tabindex","5",3,"click",4,"ngIf"],["fxLayoutAlign","start center"],["fxFlex","100","fxLayoutAlign","start center",1,"color-warn"],[1,"mr-1","icon-small"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100","class","alert alert-info",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxFlex.gt-sm","48"],["tabindex","1",3,"value","disabled","valueChange"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","48",4,"ngIf"],["fxFlex.gt-sm","48","fxLayoutAlign","start end",4,"ngIf"],["fxFlex","100",1,"alert","alert-info"],[1,"mr-1","alert-icon",3,"icon"],[3,"value"],["fxFlex","48"],["matInput","","placeholder","Default","disabled",""],["fxFlex.gt-sm","48","fxLayoutAlign","start end"],["matInput","","placeholder","Number of Blocks","type","number","name","blocks","required","","tabindex","2",3,"ngModel","step","min","ngModelChange"],["blcks","ngModel"],[4,"ngIf"],["matInput","","placeholder","Fees (Sats/vByte)","type","number","name","ccfees","required","","tabindex","3",3,"ngModel","step","min","ngModelChange"],["clchfee","ngModel"],["mat-stroked-button","","color","primary","type","reset","tabindex","3","default","",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","4",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","5",3,"click"]],template:function(e,t){1&e&&(o.TgZ(0,"div",0),o.TgZ(1,"div",1),o.TgZ(2,"mat-card-header",2),o.TgZ(3,"div",3),o.TgZ(4,"span",4),o._uU(5),o.qZA(),o.qZA(),o.TgZ(6,"button",5),o.NdJ("click",function(){return t.onClose()}),o._uU(7,"X"),o.qZA(),o.qZA(),o.TgZ(8,"mat-card-content",6),o.TgZ(9,"form",7),o.TgZ(10,"div",8),o.TgZ(11,"p",9),o._uU(12),o.qZA(),o.YNc(13,ts,5,1,"div",10),o.YNc(14,cs,9,7,"div",11),o.qZA(),o.TgZ(15,"div",12),o.YNc(16,us,2,0,"button",13),o.YNc(17,ps,2,1,"button",14),o.YNc(18,ds,2,0,"button",15),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA()),2&e&&(o.xp6(5),o.Oqu(t.channelToClose.active?"Close Channel":"Force Close Channel"),o.xp6(7),o.Oqu(t.channelToClose.active?"Closing channel: "+t.channelToClose.channel_point:"Force closing channel: "+t.channelToClose.channel_point),o.xp6(1),o.Q6J("ngIf",t.flgPendingHtlcs),o.xp6(1),o.Q6J("ngIf",!t.flgPendingHtlcs),o.xp6(2),o.Q6J("ngIf",t.channelToClose.active&&!t.flgPendingHtlcs),o.xp6(1),o.Q6J("ngIf",!t.flgPendingHtlcs),o.xp6(1),o.Q6J("ngIf",t.flgPendingHtlcs))},directives:[l.xw,l.yH,w.dk,l.Wh,q.lW,w.dn,Ae._Y,Ae.JL,Ae.F,a.O5,S.Hw,D.KE,we.gD,a.sg,T.BN,ve.ey,Ce.Nt,Ae.wV,Ae.qQ,Ae.Fj,be.q,Ae.Q7,Ae.JJ,Ae.On,D.TO],styles:[""]}),e})();function ms(e,t){1&e&&o._UZ(0,"mat-progress-bar",30)}function gs(e,t){1&e&&(o.TgZ(0,"th",31),o._uU(1," Peer "),o.qZA())}function fs(e,t){1&e&&o._UZ(0,"span",39)}function xs(e,t){1&e&&o._UZ(0,"span",40)}function Zs(e,t){if(1&e&&(o.TgZ(0,"span",41),o._UZ(1,"fa-icon",42),o.qZA()),2&e){const e=o.oxw(2);o.xp6(1),o.Q6J("icon",e.faEyeSlash)}}function ys(e,t){if(1&e&&(o.TgZ(0,"span",43),o._UZ(1,"fa-icon",42),o.qZA()),2&e){const e=o.oxw(2);o.xp6(1),o.Q6J("icon",e.faEye)}}const As=function(e){return{"max-width":e}};function Cs(e,t){if(1&e&&(o.TgZ(0,"td",32),o.TgZ(1,"div",33),o.YNc(2,fs,1,0,"span",34),o.YNc(3,xs,1,0,"span",35),o.YNc(4,Zs,2,1,"span",36),o.YNc(5,ys,2,1,"span",37),o.TgZ(6,"span",38),o._uU(7),o.qZA(),o.qZA(),o.qZA()),2&e){const e=t.$implicit,n=o.oxw();o.xp6(1),o.Q6J("ngStyle",o.VKq(6,As,n.screenSize===n.screenSizeEnum.XS?"10rem":n.screenSize===n.screenSizeEnum.MD?"15rem":"22rem")),o.xp6(1),o.Q6J("ngIf",e.active),o.xp6(1),o.Q6J("ngIf",!e.active),o.xp6(1),o.Q6J("ngIf",e.private),o.xp6(1),o.Q6J("ngIf",!e.private),o.xp6(2),o.Oqu(e.remote_alias||e.remote_pubkey)}}function Ts(e,t){if(1&e&&(o.TgZ(0,"th",44),o._uU(1),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.hij("Uptime (",e.timeUnit,")")}}function bs(e,t){if(1&e&&(o.TgZ(0,"td",32),o.TgZ(1,"span",45),o._uU(2),o.qZA(),o.qZA()),2&e){const e=t.$implicit;o.xp6(2),o.hij("",e.uptime_str," ")}}function ws(e,t){1&e&&(o.TgZ(0,"th",44),o._uU(1,"Sats Sent "),o.qZA())}function _s(e,t){if(1&e&&(o.TgZ(0,"td",32),o.TgZ(1,"span",45),o._uU(2),o.ALo(3,"number"),o.qZA(),o.qZA()),2&e){const e=t.$implicit;o.xp6(2),o.hij("",o.lcZ(3,1,e.total_satoshis_sent)," ")}}function vs(e,t){1&e&&(o.TgZ(0,"th",44),o._uU(1,"Sats Received "),o.qZA())}function qs(e,t){if(1&e&&(o.TgZ(0,"td",32),o.TgZ(1,"span",45),o._uU(2),o.ALo(3,"number"),o.qZA(),o.qZA()),2&e){const e=t.$implicit;o.xp6(2),o.hij("",o.lcZ(3,1,e.total_satoshis_received)," ")}}function Ss(e,t){1&e&&(o.TgZ(0,"th",44),o._uU(1,"Local Balance (Sats) "),o.qZA())}function Fs(e,t){if(1&e&&(o.TgZ(0,"td",32),o.TgZ(1,"span",45),o._uU(2),o.ALo(3,"number"),o.qZA(),o.qZA()),2&e){const e=t.$implicit;o.xp6(2),o.hij("",o.lcZ(3,1,e.local_balance)," ")}}function Ls(e,t){1&e&&(o.TgZ(0,"th",44),o._uU(1,"Remote Balance (Sats) "),o.qZA())}function ks(e,t){if(1&e&&(o.TgZ(0,"td",32),o.TgZ(1,"span",45),o._uU(2),o.ALo(3,"number"),o.qZA(),o.qZA()),2&e){const e=t.$implicit;o.xp6(2),o.hij("",o.lcZ(3,1,e.remote_balance)," ")}}function Ns(e,t){1&e&&(o.TgZ(0,"th",46),o._uU(1,"Balance Score "),o.qZA())}function Us(e,t){if(1&e&&(o.TgZ(0,"td",47),o.TgZ(1,"div",48),o.TgZ(2,"mat-hint",49),o._uU(3),o.ALo(4,"number"),o.qZA(),o.qZA(),o._UZ(5,"mat-progress-bar",50),o.qZA()),2&e){const e=t.$implicit;o.xp6(3),o.Oqu(o.lcZ(4,2,e.balancedness||0)),o.xp6(2),o.s9C("value",e.local_balance&&e.local_balance>0?+e.local_balance/(+e.local_balance+ +e.remote_balance)*100:0)}}function Is(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"th",51),o.TgZ(1,"div",52),o.TgZ(2,"mat-select",53),o._UZ(3,"mat-select-trigger"),o.TgZ(4,"mat-option",54),o.NdJ("click",function(){return o.CHM(e),o.oxw().onChannelUpdate("all")}),o._uU(5,"Update Fee Policy"),o.qZA(),o.TgZ(6,"mat-option",54),o.NdJ("click",function(){return o.CHM(e),o.oxw().onDownloadCSV()}),o._uU(7,"Download CSV"),o.qZA(),o.qZA(),o.qZA(),o.qZA()}}function Os(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"mat-option",54),o.NdJ("click",function(){o.CHM(e);const t=o.oxw().$implicit;return o.oxw().onCircularRebalance(t)}),o._uU(1,"Circular Rebalance"),o.qZA()}}function Js(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"mat-option",54),o.NdJ("click",function(){o.CHM(e);const t=o.oxw().$implicit;return o.oxw().onLoopOut(t)}),o._uU(1,"Loop Out"),o.qZA()}}function Ds(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"td",55),o.TgZ(1,"div",52),o.TgZ(2,"mat-select",56),o._UZ(3,"mat-select-trigger"),o.TgZ(4,"mat-option",54),o.NdJ("click",function(t){const n=o.CHM(e).$implicit;return o.oxw().onChannelClick(n,t)}),o._uU(5,"View Info"),o.qZA(),o.TgZ(6,"mat-option",54),o.NdJ("click",function(){const t=o.CHM(e).$implicit;return o.oxw().onViewRemotePolicy(t)}),o._uU(7,"View Remote Fee "),o.qZA(),o.TgZ(8,"mat-option",54),o.NdJ("click",function(){const t=o.CHM(e).$implicit;return o.oxw().onChannelUpdate(t)}),o._uU(9,"Update Fee Policy"),o.qZA(),o.YNc(10,Os,2,0,"mat-option",57),o.YNc(11,Js,2,0,"mat-option",57),o.TgZ(12,"mat-option",54),o.NdJ("click",function(){const t=o.CHM(e).$implicit;return o.oxw().onChannelClose(t)}),o._uU(13,"Close Channel"),o.qZA(),o.qZA(),o.qZA(),o.qZA()}if(2&e){const e=o.oxw();o.xp6(10),o.Q6J("ngIf",+e.versionsArr[0]>0||+e.versionsArr[1]>=9),o.xp6(1),o.Q6J("ngIf",e.selNode.swapServerUrl)}}function Rs(e,t){1&e&&(o.TgZ(0,"p"),o._uU(1,"No peers connected. Add a peer in order to open a channel."),o.qZA())}function Ms(e,t){1&e&&(o.TgZ(0,"p"),o._uU(1,"No channel available."),o.qZA())}function Es(e,t){1&e&&(o.TgZ(0,"p"),o._uU(1,"Getting channels..."),o.qZA())}function Qs(e,t){if(1&e&&(o.TgZ(0,"p"),o._uU(1),o.qZA()),2&e){const e=o.oxw(2);o.xp6(1),o.Oqu(e.errorMessage)}}function Ys(e,t){if(1&e&&(o.TgZ(0,"td",58),o.YNc(1,Rs,2,0,"p",59),o.YNc(2,Ms,2,0,"p",59),o.YNc(3,Es,2,0,"p",59),o.YNc(4,Qs,2,1,"p",59),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Q6J("ngIf",e.numPeers<1&&(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.FetchAllChannels.status)===e.apiCallStatusEnum.COMPLETED),o.xp6(1),o.Q6J("ngIf",e.numPeers>0&&(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.FetchAllChannels.status)===e.apiCallStatusEnum.COMPLETED),o.xp6(1),o.Q6J("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.FetchAllChannels.status)===e.apiCallStatusEnum.INITIATED),o.xp6(1),o.Q6J("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.FetchAllChannels.status)===e.apiCallStatusEnum.ERROR)}}const Ps=function(e){return{"display-none":e}};function Bs(e,t){if(1&e&&o._UZ(0,"tr",60),2&e){const e=o.oxw();o.Q6J("ngClass",o.VKq(1,Ps,e.numPeers>0&&(null==e.channels?null:e.channels.data)&&(null==e.channels||null==e.channels.data?null:e.channels.data.length)>0))}}function Gs(e,t){1&e&&o._UZ(0,"tr",61)}function Hs(e,t){1&e&&o._UZ(0,"tr",62)}const zs=function(e){return{"overflow-auto error-border":e,"overflow-auto":!0}},Vs=function(){return["no_peer"]};let Ws=(()=>{class e{constructor(e,t,n,a,i,s,o){this.logger=e,this.store=t,this.rtlEffects=n,this.lndEffects=a,this.commonService=i,this.loopService=s,this.decimalPipe=o,this.timeUnit="mins:secs",this.userPersonaEnum=f.ol,this.selNode={},this.totalBalance=0,this.displayedColumns=[],this.channelsData=[],this.myChanPolicy={},this.information={},this.numPeers=-1,this.selFilter="",this.flgSticky=!1,this.pageSize=f.IV,this.pageSizeOptions=f.TJ,this.screenSize="",this.screenSizeEnum=f.cu,this.versionsArr=[],this.faEye=g.Mdf,this.faEyeSlash=g.Aq,this.targetConf=6,this.errorMessage="",this.apisCallStatus=null,this.apiCallStatusEnum=f.Bn,this.unSubs=[new p.x,new p.x,new p.x,new p.x,new p.x,new p.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===f.cu.XS?(this.flgSticky=!1,this.displayedColumns=["remote_alias","local_balance","remote_balance","actions"]):this.screenSize===f.cu.SM||this.screenSize===f.cu.MD?(this.flgSticky=!1,this.displayedColumns=["remote_alias","local_balance","remote_balance","balancedness","actions"]):(this.flgSticky=!0,this.displayedColumns=["remote_alias","uptime","total_satoshis_sent","total_satoshis_received","local_balance","remote_balance","balancedness","actions"])}ngOnInit(){this.store.select("lnd").pipe((0,d.R)(this.unSubs[0])).subscribe(e=>{this.errorMessage="",this.apisCallStatus=e.apisCallStatus,e.apisCallStatus.FetchAllChannels.status===f.Bn.ERROR&&(this.errorMessage="object"==typeof this.apisCallStatus.FetchAllChannels.message?JSON.stringify(this.apisCallStatus.FetchAllChannels.message):this.apisCallStatus.FetchAllChannels.message),this.selNode=e.nodeSettings,this.information=e.information,this.information&&this.information.version&&(this.versionsArr=this.information.version.split(".")),this.numPeers=e.peers&&e.peers.length?e.peers.length:0,this.totalBalance=+e.blockchainBalance.total_balance,this.channelsData=this.calculateUptime(e.allChannels),this.channelsData.length>0&&this.loadChannelsTable(this.channelsData),this.logger.info(e)})}ngAfterViewInit(){this.channelsData.length>0&&this.loadChannelsTable(this.channelsData)}onViewRemotePolicy(e){this.store.dispatch(new x.IG({uiMessage:f.m6.GET_REMOTE_POLICY,channelID:e.chan_id.toString()+"/"+this.information.identity_pubkey})),this.lndEffects.setLookup.pipe((0,pt.q)(1)).subscribe(e=>{if(!e.fee_base_msat&&!e.fee_rate_milli_msat&&!e.time_lock_delta)return!1;this.store.dispatch(new ee.wu({data:{type:f.n_.INFORMATION,alertTitle:"Remote Channel Policy",message:[[{key:"fee_base_msat",value:e.fee_base_msat,title:"Base Fees (mSats)",width:25,type:f.Gi.NUMBER},{key:"fee_rate_milli_msat",value:e.fee_rate_milli_msat,title:"Fee Rate (milli mSats)",width:25,type:f.Gi.NUMBER},{key:"fee_rate_milli_msat",value:e.fee_rate_milli_msat/1e4,title:"Fee Rate (%)",width:25,type:f.Gi.NUMBER,digitsInfo:"1.0-8"},{key:"time_lock_delta",value:e.time_lock_delta,title:"Time Lock Delta",width:25,type:f.Gi.NUMBER}]]}}))})}onCircularRebalance(e){this.store.dispatch(new ee.wu({data:{message:{channels:this.channelsData,selChannel:e},component:es}}))}onChannelUpdate(e){"all"===e?(this.store.dispatch(new ee.b_({data:{type:f.n_.CONFIRM,alertTitle:"Update Fee Policy",noBtnText:"Cancel",yesBtnText:"Update All Channels",message:[],titleMessage:"Update fee policy for all channels",flgShowInput:!0,getInputs:[{placeholder:"Base Fee (mSat)",inputType:f.Gi.NUMBER.toLowerCase(),inputValue:1e3,width:32},{placeholder:"Fee Rate (mili mSat)",inputType:f.Gi.NUMBER.toLowerCase(),inputValue:1,min:1,width:32,hintFunction:this.percentHintFunction},{placeholder:"Time Lock Delta",inputType:f.Gi.NUMBER.toLowerCase(),inputValue:40,width:32}]}})),this.rtlEffects.closeConfirm.pipe((0,d.R)(this.unSubs[1])).subscribe(e=>{e&&this.store.dispatch(new x.k({baseFeeMsat:e[0].inputValue,feeRate:e[1].inputValue,timeLockDelta:e[2].inputValue,chanPoint:"all"}))})):(this.myChanPolicy={fee_base_msat:0,fee_rate_milli_msat:0,time_lock_delta:0},this.store.dispatch(new x.IG({uiMessage:f.m6.GET_CHAN_POLICY,channelID:e.chan_id.toString()})),this.lndEffects.setLookup.pipe((0,pt.q)(1)).subscribe(t=>{this.myChanPolicy=t.node1_pub===this.information.identity_pubkey?t.node1_policy:t.node2_pub===this.information.identity_pubkey?t.node2_policy:{fee_base_msat:0,fee_rate_milli_msat:0,time_lock_delta:0},this.logger.info(this.myChanPolicy),this.store.dispatch(new ee.b_({data:{type:f.n_.CONFIRM,alertTitle:"Update Fee Policy",titleMessage:"Update fee policy for channel point: "+e.channel_point,noBtnText:"Cancel",yesBtnText:"Update Channel",message:[],flgShowInput:!0,getInputs:[{placeholder:"Base Fee (mSat)",inputType:f.Gi.NUMBER.toLowerCase(),inputValue:""===this.myChanPolicy.fee_base_msat?0:this.myChanPolicy.fee_base_msat,width:32},{placeholder:"Fee Rate (mili mSat)",inputType:f.Gi.NUMBER.toLowerCase(),inputValue:this.myChanPolicy.fee_rate_milli_msat,min:1,width:32,hintFunction:this.percentHintFunction},{placeholder:"Time Lock Delta",inputType:f.Gi.NUMBER.toLowerCase(),inputValue:this.myChanPolicy.time_lock_delta,width:32}]}}))}),this.rtlEffects.closeConfirm.pipe((0,d.R)(this.unSubs[2])).subscribe(t=>{t&&this.store.dispatch(new x.k({baseFeeMsat:t[0].inputValue,feeRate:t[1].inputValue,timeLockDelta:t[2].inputValue,chanPoint:e.channel_point}))})),this.applyFilter()}onChannelClose(e){e.active&&this.store.dispatch(new x.jh),this.store.dispatch(new ee.wu({width:"70%",data:{channel:e,component:hs}}))}applyFilter(){this.channels.filter=this.selFilter.trim().toLowerCase()}onChannelClick(e,t){this.store.dispatch(new ee.wu({data:{channel:e,showCopy:!0,component:Si}}))}loadChannelsTable(e){e.sort((e,t)=>e.active===t.active?0:t.active?1:-1),this.channels=new Ze.by([...e]),this.channels.filterPredicate=(e,t)=>((e.active?"active":"inactive")+(e.chan_id?e.chan_id.toLowerCase():"")+(e.remote_pubkey?e.remote_pubkey.toLowerCase():"")+(e.remote_alias?e.remote_alias.toLowerCase():"")+(e.capacity?e.capacity:"")+(e.local_balance?e.local_balance:"")+(e.remote_balance?e.remote_balance:"")+(e.total_satoshis_sent?e.total_satoshis_sent:"")+(e.total_satoshis_received?e.total_satoshis_received:"")+(e.commit_fee?e.commit_fee:"")+(e.private?"private":"public")).includes(t),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(e,t)=>e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():e[t]?+e[t]:null,this.channels.paginator=this.paginator,this.logger.info(this.channels)}calculateUptime(e){const t=3600,n=86400,a=31536e3;let i=60,s=1,o=0;switch(e.forEach(e=>{e.uptime&&+e.uptime>o&&(o=+e.uptime)}),!0){case o=t&&o=n&&oa:this.timeUnit="Yrs:Days",i=a,s=n;break;default:this.timeUnit="Mins:Secs",i=60,s=1}return e.forEach(e=>{e.uptime_str=e.uptime?this.decimalPipe.transform(Math.floor(+e.uptime/i),"2.0-0")+":"+this.decimalPipe.transform(Math.round(+e.uptime%i/s),"2.0-0"):"---"}),e}onLoopOut(e){this.loopService.getLoopOutTermsAndQuotes(this.targetConf).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.store.dispatch(new ee.wu({minHeight:"56rem",data:{channel:e,minQuote:t[0],maxQuote:t[1],direction:f.$I.LOOP_OUT,component:K.a}}))})}onDownloadCSV(){this.channels.data&&this.channels.data.length>0&&this.commonService.downloadFile(this.channels.data,"Open-channels")}percentHintFunction(e){return(e/1e4).toString()+"%"}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(Z.mQ),o.Y36(y.yh),o.Y36(St.V),o.Y36(Ft.l),o.Y36(C.v),o.Y36(te.W),o.Y36(a.JJ))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-channel-open-table"]],viewQuery:function(e,t){if(1&e&&(o.Gf(xe.YE,5),o.Gf(fe.NW,5)),2&e){let e;o.iGM(e=o.CRH())&&(t.sort=e.first),o.iGM(e=o.CRH())&&(t.paginator=e.first)}},features:[o._Bn([{provide:fe.ye,useValue:(0,f.pt)("Channels")}])],decls:39,vars:14,consts:[["fxLayout","column",1,"padding-gap-x"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","name","filter","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","remote_alias"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","uptime"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","total_satoshis_sent"],["matColumnDef","total_satoshis_received"],["matColumnDef","local_balance"],["matColumnDef","remote_balance"],["matColumnDef","balancedness"],["mat-header-cell","","mat-sort-header","","class","pl-2",4,"matHeaderCellDef"],["mat-cell","","class","pl-2",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","pl-1",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center","class","pl-1",4,"matCellDef"],["matColumnDef","no_peer"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"ellipsis-parent",3,"ngStyle"],["class","dot green","matTooltip","Active","matTooltipPosition","right",4,"ngIf"],["class","dot yellow","matTooltip","Inactive","matTooltipPosition","right",4,"ngIf"],["class","mr-1","matTooltip","Private","matTooltipPosition","right",4,"ngIf"],["class","mr-1","matTooltip","Public","matTooltipPosition","right",4,"ngIf"],[1,"ellipsis-child"],["matTooltip","Active","matTooltipPosition","right",1,"dot","green"],["matTooltip","Inactive","matTooltipPosition","right",1,"dot","yellow"],["matTooltip","Private","matTooltipPosition","right",1,"mr-1"],[3,"icon"],["matTooltip","Public","matTooltipPosition","right",1,"mr-1"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","","mat-sort-header","",1,"pl-2"],["mat-cell","",1,"pl-2"],["fxLayout","row"],["fxFlex","100","fxLayoutAlign","center center",1,"font-size-80"],["mode","determinate",3,"value"],["mat-header-cell","",1,"pl-1"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-1"],["placeholder","Actions","tabindex","2",1,"mr-0"],[3,"click",4,"ngIf"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,t){1&e&&(o.TgZ(0,"div",0),o.TgZ(1,"div",1),o._UZ(2,"div",2),o.TgZ(3,"mat-form-field",3),o.TgZ(4,"input",4),o.NdJ("keyup",function(){return t.applyFilter()})("ngModelChange",function(e){return t.selFilter=e}),o.qZA(),o.qZA(),o.qZA(),o.TgZ(5,"div",5),o.YNc(6,ms,1,0,"mat-progress-bar",6),o.TgZ(7,"table",7,8),o.ynx(9,9),o.YNc(10,gs,2,0,"th",10),o.YNc(11,Cs,8,8,"td",11),o.BQk(),o.ynx(12,12),o.YNc(13,Ts,2,1,"th",13),o.YNc(14,bs,3,1,"td",11),o.BQk(),o.ynx(15,14),o.YNc(16,ws,2,0,"th",13),o.YNc(17,_s,4,3,"td",11),o.BQk(),o.ynx(18,15),o.YNc(19,vs,2,0,"th",13),o.YNc(20,qs,4,3,"td",11),o.BQk(),o.ynx(21,16),o.YNc(22,Ss,2,0,"th",13),o.YNc(23,Fs,4,3,"td",11),o.BQk(),o.ynx(24,17),o.YNc(25,Ls,2,0,"th",13),o.YNc(26,ks,4,3,"td",11),o.BQk(),o.ynx(27,18),o.YNc(28,Ns,2,0,"th",19),o.YNc(29,Us,6,4,"td",20),o.BQk(),o.ynx(30,21),o.YNc(31,Is,8,0,"th",22),o.YNc(32,Ds,14,2,"td",23),o.BQk(),o.ynx(33,24),o.YNc(34,Ys,5,4,"td",25),o.BQk(),o.YNc(35,Bs,1,3,"tr",26),o.YNc(36,Gs,1,0,"tr",27),o.YNc(37,Hs,1,0,"tr",28),o.qZA(),o.qZA(),o._UZ(38,"mat-paginator",29),o.qZA()),2&e&&(o.xp6(4),o.Q6J("ngModel",t.selFilter),o.xp6(2),o.Q6J("ngIf",(null==t.apisCallStatus?null:t.apisCallStatus.FetchAllChannels.status)===t.apiCallStatusEnum.INITIATED),o.xp6(1),o.Q6J("dataSource",t.channels)("ngClass",o.VKq(11,zs,""!==t.errorMessage)),o.xp6(28),o.Q6J("matFooterRowDef",o.DdM(13,Vs)),o.xp6(1),o.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),o.xp6(1),o.Q6J("matRowDefColumns",t.displayedColumns),o.xp6(1),o.Q6J("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS))},directives:[l.xw,l.Wh,l.yH,D.KE,Ce.Nt,Ae.Fj,Ae.JJ,Ae.On,E.$V,a.O5,Ze.BZ,xe.YE,a.mk,v.oO,Ze.w1,Ze.fO,Ze.Dz,Ze.mD,Ze.Ke,Ze.as,Ze.nj,fe.NW,r.pW,Ze.ge,xe.nU,Ze.ev,a.PC,v.Zl,R.gM,T.BN,D.bx,we.gD,we.$L,ve.ey,Ze.yh,Ze.Q2,Ze.XQ,Ze.Gk],pipes:[a.JJ],styles:[".mat-column-remote_alias[_ngcontent-%COMP%]{flex:0 0 15%;width:15%}.mat-column-remote_alias[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-balancedness[_ngcontent-%COMP%]{flex:0 0 20%;width:20%}@media only screen and (max-width:75em){.mat-column-balancedness[_ngcontent-%COMP%]{flex:0 0 35%;width:35%}}@media only screen and (max-width:56.25em){.mat-column-balancedness[_ngcontent-%COMP%]{flex:0 0 25%;width:25%}}.mat-column-local_balance[_ngcontent-%COMP%], .mat-column-remote_balance[_ngcontent-%COMP%], .mat-column-total_satoshis_received[_ngcontent-%COMP%], .mat-column-total_satoshis_sent[_ngcontent-%COMP%], .mat-column-uptime[_ngcontent-%COMP%]{flex:1 1 10%;width:10%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@media only screen and (max-width:75em){.mat-column-local_balance[_ngcontent-%COMP%], .mat-column-remote_balance[_ngcontent-%COMP%], .mat-column-total_satoshis_received[_ngcontent-%COMP%], .mat-column-total_satoshis_sent[_ngcontent-%COMP%], .mat-column-uptime[_ngcontent-%COMP%]{white-space:unset;flex:1 1 25%;width:25%}}@media only screen and (max-width:56.25em){.mat-column-local_balance[_ngcontent-%COMP%], .mat-column-remote_balance[_ngcontent-%COMP%], .mat-column-total_satoshis_received[_ngcontent-%COMP%], .mat-column-total_satoshis_sent[_ngcontent-%COMP%], .mat-column-uptime[_ngcontent-%COMP%]{flex:0 0 15%;width:15%}}@media only screen and (max-width:37.5em){.mat-column-local_balance[_ngcontent-%COMP%], .mat-column-remote_balance[_ngcontent-%COMP%], .mat-column-total_satoshis_received[_ngcontent-%COMP%], .mat-column-total_satoshis_sent[_ngcontent-%COMP%], .mat-column-uptime[_ngcontent-%COMP%]{white-space:unset}}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-actions[_ngcontent-%COMP%] .bordered-box.table-actions-select[_ngcontent-%COMP%]{flex:0 0 100%}@media only screen and (max-width:56.25em){.mat-column-actions[_ngcontent-%COMP%] .bordered-box.table-actions-select[_ngcontent-%COMP%]{flex:0 0 90%}}@media only screen and (max-width:37.5em){.mat-column-actions[_ngcontent-%COMP%] .bordered-box.table-actions-select[_ngcontent-%COMP%]{flex:0 0 80%}}"]}),e})();const Xs=["outputIdx"];function $s(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Index for change output is required."),o.qZA())}function js(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Invalid index value."),o.qZA())}function Ks(e,t){if(1&e&&(o.TgZ(0,"mat-option",29),o._uU(1),o.qZA()),2&e){const e=t.$implicit;o.Q6J("value",e.id),o.xp6(1),o.hij(" ",e.name," ")}}function eo(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Number of blocks is required."),o.qZA())}function to(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"mat-form-field",17),o.TgZ(1,"input",30,31),o.NdJ("ngModelChange",function(t){return o.CHM(e),o.oxw().blocks=t}),o.qZA(),o.YNc(3,eo,2,0,"mat-error",20),o.qZA()}if(2&e){const e=o.oxw();o.xp6(1),o.Q6J("ngModel",e.blocks)("step",1)("min",0),o.xp6(2),o.Q6J("ngIf",!e.blocks)}}function no(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Fees is required."),o.qZA())}function ao(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"mat-form-field",17),o.TgZ(1,"input",32,33),o.NdJ("ngModelChange",function(t){return o.CHM(e),o.oxw().fees=t}),o.qZA(),o.YNc(3,no,2,0,"mat-error",20),o.qZA()}if(2&e){const e=o.oxw();o.xp6(1),o.Q6J("ngModel",e.fees)("step",1)("min",0),o.xp6(2),o.Q6J("ngIf",!e.fees)}}function io(e,t){if(1&e&&(o.TgZ(0,"div",34),o._UZ(1,"fa-icon",13),o.TgZ(2,"span"),o._uU(3),o.qZA(),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Q6J("icon",e.faExclamationTriangle),o.xp6(2),o.Oqu(e.bumpFeeError)}}let so=(()=>{class e{constructor(e,t,n,a,i){this.dialogRef=e,this.data=t,this.logger=n,this.dataService=a,this.snackBar=i,this.transTypes=[...f.Dr],this.selTransType="2",this.blocks=null,this.fees=null,this.outputIndex=null,this.faCopy=g.kZ_,this.faInfoCircle=g.sqG,this.faExclamationTriangle=g.eHv,this.bumpFeeError="",this.unSubs=[new p.x,new p.x]}set payReq(e){e&&(this.outputIdx=e)}ngOnInit(){this.transTypes=this.transTypes.splice(1),this.bumpFeeChannel=this.data.pendingChannel;const e=this.bumpFeeChannel.channel&&this.bumpFeeChannel.channel.channel_point?this.bumpFeeChannel.channel.channel_point.split(":"):[];this.bumpFeeChannel.channel.txid_str=e[0]?e[0]:this.bumpFeeChannel.channel&&this.bumpFeeChannel.channel.channel_point?this.bumpFeeChannel.channel.channel_point:"",this.bumpFeeChannel.channel.output_index=e[1]?+e[1]:null}onBumpFee(){return this.outputIndex===this.bumpFeeChannel.channel.output_index?(this.outputIdx.control.setErrors({pendingChannelOutputIndex:!0}),!0):!this.outputIndex&&0!==this.outputIndex||!("1"!==this.selTransType||this.blocks&&0!==this.blocks)||!("2"!==this.selTransType||this.fees&&0!==this.fees)||void this.dataService.bumpFee(this.bumpFeeChannel.channel.txid_str,this.outputIndex,this.blocks,this.fees).pipe((0,d.R)(this.unSubs[0])).subscribe({next:e=>{this.dialogRef.close(!1)},error:e=>{this.logger.error(e),this.bumpFeeError=e.message?e.message:e}})}onCopyID(e){this.snackBar.open("Transaction ID copied.")}resetData(){this.bumpFeeError="",this.selTransType="2",this.blocks=null,this.fees=null,this.outputIdx.control.setErrors(null)}onClose(){this.dialogRef.close(!1)}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(ye.so),o.Y36(ye.WI),o.Y36(Z.mQ),o.Y36(dt.D),o.Y36(Ai.ux))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-bump-fee"]],viewQuery:function(e,t){if(1&e&&o.Gf(Xs,5),2&e){let e;o.iGM(e=o.CRH())&&(t.payReq=e.first)}},decls:48,vars:15,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],["fxLayout","column",1,"bordered-box","mb-1","p-2"],["fxLayoutAlign","start center",1,"pb-1","word-break"],["matSuffix","","rtlClipboard","","matTooltip","Copy transaction ID",1,"ml-1",3,"icon","payload","copied"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"alert","alert-info"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column","fxFlex","100"],[1,"pl-1"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxFlex.gt-sm","32","fxLayoutAlign","start end"],["matInput","","placeholder","Index for Change Output","type","number","tabindex","1","required","","name","outputIdx",3,"ngModel","step","min","ngModelChange"],["outputIdx","ngModel"],[4,"ngIf"],["fxFlex.gt-sm","32"],["tabindex","2",3,"value","valueChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["fxFlex.gt-sm","32","fxLayoutAlign","start end",4,"ngIf"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","reset","tabindex","5","default","",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","6",3,"click"],[3,"value"],["matInput","","placeholder","Number of Blocks","type","number","name","blocks","required","","tabindex","3",3,"ngModel","step","min","ngModelChange"],["blcks","ngModel"],["matInput","","placeholder","Fees (Sats/vByte)","type","number","name","fees","required","","tabindex","4",3,"ngModel","step","min","ngModelChange"],["fee","ngModel"],["fxFlex","100",1,"alert","alert-danger","mt-1"]],template:function(e,t){if(1&e&&(o.TgZ(0,"div",0),o.TgZ(1,"div",1),o.TgZ(2,"mat-card-header",2),o.TgZ(3,"div",3),o.TgZ(4,"span",4),o._uU(5,"Bump Fee"),o.qZA(),o.qZA(),o.TgZ(6,"button",5),o.NdJ("click",function(){return t.onClose()}),o._uU(7,"X"),o.qZA(),o.qZA(),o.TgZ(8,"mat-card-content",6),o.TgZ(9,"form",7),o.TgZ(10,"div",8),o.TgZ(11,"p",9),o._uU(12),o.TgZ(13,"fa-icon",10),o.NdJ("copied",function(e){return t.onCopyID(e)}),o.qZA(),o.qZA(),o.TgZ(14,"div",11),o.TgZ(15,"div",12),o._UZ(16,"fa-icon",13),o.TgZ(17,"span",14),o._uU(18,"Bumping fee on pending open channels is an advanced feature, attempt it only if you are familiar with the functionality of Bitcoin transactions. "),o.TgZ(19,"div"),o._uU(20,"Before attempting fee bump ensure the following:"),o.qZA(),o.TgZ(21,"div",15),o._uU(22,"1: Use a Bitcoin block explorer to ensure that channel opening transaction is not confirmed."),o.qZA(),o.TgZ(23,"div",15),o._uU(24,"2: The channel opening transaction must have a sizable change output, which can be spent further. The fee cannot be bumped without the change output."),o.qZA(),o.TgZ(25,"div",15),o._uU(26,"3: Find the index value of the change output via a block explorer."),o.qZA(),o.TgZ(27,"div",15),o._uU(28,"4: Enter the index value of the change output in the form below and the desired fee rate."),o.qZA(),o.TgZ(29,"div",15),o._uU(30,"5: Upon successful fee bump, use your block explorer to track the child transaction in the mempool, which should be linked with the change output transaction."),o.qZA(),o.qZA(),o.qZA(),o.TgZ(31,"div",16),o.TgZ(32,"mat-form-field",17),o.TgZ(33,"input",18,19),o.NdJ("ngModelChange",function(e){return t.outputIndex=e}),o.qZA(),o.YNc(35,$s,2,0,"mat-error",20),o.YNc(36,js,2,0,"mat-error",20),o.qZA(),o.TgZ(37,"mat-form-field",21),o.TgZ(38,"mat-select",22),o.NdJ("valueChange",function(e){return t.selTransType=e})("selectionChange",function(){return t.blocks=null,t.fees=null}),o.YNc(39,Ks,2,2,"mat-option",23),o.qZA(),o.qZA(),o.YNc(40,to,4,4,"mat-form-field",24),o.YNc(41,ao,4,4,"mat-form-field",24),o.qZA(),o.YNc(42,io,4,2,"div",25),o.qZA(),o.qZA(),o.TgZ(43,"div",26),o.TgZ(44,"button",27),o.NdJ("click",function(){return t.resetData()}),o._uU(45,"Clear"),o.qZA(),o.TgZ(46,"button",28),o.NdJ("click",function(){return t.onBumpFee()}),o._uU(47),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA()),2&e){const e=o.MAs(34);o.xp6(12),o.hij("Bump fee for channel point: ",null==t.bumpFeeChannel||null==t.bumpFeeChannel.channel?null:t.bumpFeeChannel.channel.channel_point," "),o.xp6(1),o.Q6J("icon",t.faCopy)("payload",null==t.bumpFeeChannel||null==t.bumpFeeChannel.channel?null:t.bumpFeeChannel.channel.txid_str),o.xp6(3),o.Q6J("icon",t.faInfoCircle),o.xp6(17),o.Q6J("ngModel",t.outputIndex)("step",1)("min",0),o.xp6(2),o.Q6J("ngIf",null==e.errors?null:e.errors.required),o.xp6(1),o.Q6J("ngIf",null==e.errors?null:e.errors.pendingChannelOutputIndex),o.xp6(2),o.Q6J("value",t.selTransType),o.xp6(1),o.Q6J("ngForOf",t.transTypes),o.xp6(1),o.Q6J("ngIf","1"===t.selTransType),o.xp6(1),o.Q6J("ngIf","2"===t.selTransType),o.xp6(1),o.Q6J("ngIf",""!==t.bumpFeeError),o.xp6(5),o.Oqu(""!==t.bumpFeeError?"Retry Bump Fee":"Bump Fee")}},directives:[l.xw,l.yH,w.dk,l.Wh,q.lW,w.dn,Ae._Y,Ae.JL,Ae.F,T.BN,D.R9,Ci.y,R.gM,D.KE,Ce.Nt,Ae.wV,Ae.qQ,Ae.Fj,be.q,Ae.Q7,Ae.JJ,Ae.On,a.O5,we.gD,a.sg,D.TO,ve.ey],styles:[""]}),e})();function oo(e,t){1&e&&o._UZ(0,"mat-progress-bar",36)}function lo(e,t){1&e&&o._UZ(0,"mat-progress-bar",36)}function ro(e,t){1&e&&(o.TgZ(0,"mat-header-cell",37),o._uU(1," Peer "),o.qZA())}const co=function(e){return{"max-width":e}};function uo(e,t){if(1&e&&(o.TgZ(0,"mat-cell",38),o._uU(1),o.qZA()),2&e){const e=t.$implicit,n=o.oxw();o.Q6J("ngStyle",o.VKq(2,co,n.screenSize===n.screenSizeEnum.XS?"10rem":"30rem")),o.xp6(1),o.Oqu(e.channel.remote_alias)}}function po(e,t){1&e&&(o.TgZ(0,"mat-header-cell",39),o._uU(1,"Commit Fee (Sats) "),o.qZA())}function ho(e,t){if(1&e&&(o.TgZ(0,"mat-cell",40),o._uU(1),o.ALo(2,"number"),o.qZA()),2&e){const e=t.$implicit;o.xp6(1),o.Oqu(o.lcZ(2,1,e.commit_fee))}}function mo(e,t){1&e&&(o.TgZ(0,"mat-header-cell",39),o._uU(1,"Commit Weight "),o.qZA())}function go(e,t){if(1&e&&(o.TgZ(0,"mat-cell",40),o._uU(1),o.ALo(2,"number"),o.qZA()),2&e){const e=t.$implicit;o.xp6(1),o.Oqu(o.lcZ(2,1,e.commit_weight))}}function fo(e,t){1&e&&(o.TgZ(0,"mat-header-cell",39),o._uU(1,"Capacity (Sats)"),o.qZA())}function xo(e,t){if(1&e&&(o.TgZ(0,"mat-cell",40),o._uU(1),o.ALo(2,"number"),o.qZA()),2&e){const e=t.$implicit;o.xp6(1),o.Oqu(o.lcZ(2,1,e.channel.capacity))}}function Zo(e,t){1&e&&(o.TgZ(0,"mat-header-cell",41),o._uU(1,"Actions"),o.qZA())}function yo(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"mat-cell",42),o.TgZ(1,"div",43),o.TgZ(2,"mat-select",44),o._UZ(3,"mat-select-trigger"),o.TgZ(4,"mat-option",45),o.NdJ("click",function(){const t=o.CHM(e).$implicit;return o.oxw().onOpenClick(t)}),o._uU(5,"View Info"),o.qZA(),o.TgZ(6,"mat-option",45),o.NdJ("click",function(){const t=o.CHM(e).$implicit;return o.oxw().onBumpFee(t)}),o._uU(7,"Bump Fee"),o.qZA(),o.qZA(),o.qZA(),o.qZA()}}function Ao(e,t){1&e&&(o.TgZ(0,"p"),o._uU(1,"No pending channel."),o.qZA())}function Co(e,t){1&e&&(o.TgZ(0,"p"),o._uU(1,"Getting pending channels..."),o.qZA())}function To(e,t){if(1&e&&(o.TgZ(0,"p"),o._uU(1),o.qZA()),2&e){const e=o.oxw(2);o.xp6(1),o.Oqu(e.errorMessage)}}function bo(e,t){if(1&e&&(o.TgZ(0,"td",46),o.YNc(1,Ao,2,0,"p",47),o.YNc(2,Co,2,0,"p",47),o.YNc(3,To,2,1,"p",47),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Q6J("ngIf",(!e.pendingOpenChannels||!(null!=e.pendingOpenChannels&&e.pendingOpenChannels.data)||(null==e.pendingOpenChannels||null==e.pendingOpenChannels.data?null:e.pendingOpenChannels.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.FetchPendingChannels.status)===e.apiCallStatusEnum.COMPLETED),o.xp6(1),o.Q6J("ngIf",(!e.pendingOpenChannels||!(null!=e.pendingOpenChannels&&e.pendingOpenChannels.data)||(null==e.pendingOpenChannels||null==e.pendingOpenChannels.data?null:e.pendingOpenChannels.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.FetchPendingChannels.status)===e.apiCallStatusEnum.INITIATED),o.xp6(1),o.Q6J("ngIf",(!e.pendingOpenChannels||!(null!=e.pendingOpenChannels&&e.pendingOpenChannels.data)||(null==e.pendingOpenChannels||null==e.pendingOpenChannels.data?null:e.pendingOpenChannels.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.FetchPendingChannels.status)===e.apiCallStatusEnum.ERROR)}}const wo=function(e){return{"display-none":e}};function _o(e,t){if(1&e&&o._UZ(0,"tr",48),2&e){const e=o.oxw();o.Q6J("ngClass",o.VKq(1,wo,e.pendingOpenChannels&&(null==e.pendingOpenChannels?null:e.pendingOpenChannels.data)&&(null==e.pendingOpenChannels||null==e.pendingOpenChannels.data?null:e.pendingOpenChannels.data.length)>0))}}function vo(e,t){1&e&&o._UZ(0,"mat-header-row")}function qo(e,t){1&e&&o._UZ(0,"mat-row",49)}function So(e,t){1&e&&o._UZ(0,"mat-progress-bar",36)}function Fo(e,t){1&e&&(o.TgZ(0,"mat-header-cell",37),o._uU(1," Peer "),o.qZA())}function Lo(e,t){if(1&e&&(o.TgZ(0,"mat-cell",38),o._uU(1),o.qZA()),2&e){const e=t.$implicit,n=o.oxw();o.Q6J("ngStyle",o.VKq(2,co,n.screenSize===n.screenSizeEnum.XS?"10rem":"30rem")),o.xp6(1),o.Oqu(e.channel.remote_alias)}}function ko(e,t){1&e&&(o.TgZ(0,"mat-header-cell",39),o._uU(1,"Recovered Balance (Sats) "),o.qZA())}function No(e,t){if(1&e&&(o.TgZ(0,"mat-cell",40),o._uU(1),o.ALo(2,"number"),o.qZA()),2&e){const e=t.$implicit;o.xp6(1),o.Oqu(o.lcZ(2,1,e.recovered_balance))}}function Uo(e,t){1&e&&(o.TgZ(0,"mat-header-cell",39),o._uU(1,"Limbo Balance (Sats) "),o.qZA())}function Io(e,t){if(1&e&&(o.TgZ(0,"mat-cell",40),o._uU(1),o.ALo(2,"number"),o.qZA()),2&e){const e=t.$implicit;o.xp6(1),o.Oqu(o.lcZ(2,1,e.limbo_balance))}}function Oo(e,t){1&e&&(o.TgZ(0,"mat-header-cell",39),o._uU(1,"Capacity (Sats) "),o.qZA())}function Jo(e,t){if(1&e&&(o.TgZ(0,"mat-cell",40),o._uU(1),o.ALo(2,"number"),o.qZA()),2&e){const e=t.$implicit;o.xp6(1),o.Oqu(o.lcZ(2,1,e.channel.capacity))}}function Do(e,t){1&e&&(o.TgZ(0,"mat-header-cell",50),o._uU(1,"Actions"),o.qZA())}function Ro(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"mat-cell",51),o.TgZ(1,"button",52),o.NdJ("click",function(){const t=o.CHM(e).$implicit;return o.oxw().onForceClosingClick(t)}),o._uU(2,"View Info"),o.qZA(),o.qZA()}}function Mo(e,t){1&e&&(o.TgZ(0,"p"),o._uU(1,"No pending channel."),o.qZA())}function Eo(e,t){1&e&&(o.TgZ(0,"p"),o._uU(1,"Getting pending channels..."),o.qZA())}function Qo(e,t){if(1&e&&(o.TgZ(0,"p"),o._uU(1),o.qZA()),2&e){const e=o.oxw(2);o.xp6(1),o.Oqu(e.errorMessage)}}function Yo(e,t){if(1&e&&(o.TgZ(0,"td",46),o.YNc(1,Mo,2,0,"p",47),o.YNc(2,Eo,2,0,"p",47),o.YNc(3,Qo,2,1,"p",47),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Q6J("ngIf",(!e.pendingForceClosingChannels||!(null!=e.pendingForceClosingChannels&&e.pendingForceClosingChannels.data)||(null==e.pendingForceClosingChannels||null==e.pendingForceClosingChannels.data?null:e.pendingForceClosingChannels.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.FetchPendingChannels.status)===e.apiCallStatusEnum.COMPLETED),o.xp6(1),o.Q6J("ngIf",(!e.pendingForceClosingChannels||!(null!=e.pendingForceClosingChannels&&e.pendingForceClosingChannels.data)||(null==e.pendingForceClosingChannels||null==e.pendingForceClosingChannels.data?null:e.pendingForceClosingChannels.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.FetchPendingChannels.status)===e.apiCallStatusEnum.INITIATED),o.xp6(1),o.Q6J("ngIf",(!e.pendingForceClosingChannels||!(null!=e.pendingForceClosingChannels&&e.pendingForceClosingChannels.data)||(null==e.pendingForceClosingChannels||null==e.pendingForceClosingChannels.data?null:e.pendingForceClosingChannels.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.FetchPendingChannels.status)===e.apiCallStatusEnum.ERROR)}}function Po(e,t){if(1&e&&o._UZ(0,"tr",48),2&e){const e=o.oxw();o.Q6J("ngClass",o.VKq(1,wo,e.pendingForceClosingChannels&&(null==e.pendingForceClosingChannels?null:e.pendingForceClosingChannels.data)&&(null==e.pendingForceClosingChannels||null==e.pendingForceClosingChannels.data?null:e.pendingForceClosingChannels.data.length)>0))}}function Bo(e,t){1&e&&o._UZ(0,"mat-header-row")}function Go(e,t){1&e&&o._UZ(0,"mat-row",49)}function Ho(e,t){1&e&&o._UZ(0,"mat-progress-bar",36)}function zo(e,t){1&e&&(o.TgZ(0,"mat-header-cell",53),o._uU(1," Peer "),o.qZA())}function Vo(e,t){if(1&e&&(o.TgZ(0,"mat-cell",54),o._uU(1),o.qZA()),2&e){const e=t.$implicit,n=o.oxw();o.Q6J("ngStyle",o.VKq(2,co,n.screenSize===n.screenSizeEnum.XS?"10rem":"30rem")),o.xp6(1),o.Oqu(e.channel.remote_alias)}}function Wo(e,t){1&e&&(o.TgZ(0,"mat-header-cell",39),o._uU(1," Local Balance (Sats) "),o.qZA())}function Xo(e,t){if(1&e&&(o.TgZ(0,"mat-cell",40),o._uU(1),o.ALo(2,"number"),o.qZA()),2&e){const e=t.$implicit;o.xp6(1),o.Oqu(o.lcZ(2,1,e.channel.local_balance))}}function $o(e,t){1&e&&(o.TgZ(0,"mat-header-cell",39),o._uU(1," Remote Balance (Sats) "),o.qZA())}function jo(e,t){if(1&e&&(o.TgZ(0,"mat-cell",40),o._uU(1),o.ALo(2,"number"),o.qZA()),2&e){const e=t.$implicit;o.xp6(1),o.Oqu(o.lcZ(2,1,e.channel.remote_balance))}}function Ko(e,t){1&e&&(o.TgZ(0,"mat-header-cell",39),o._uU(1," Capacity (Sats) "),o.qZA())}function el(e,t){if(1&e&&(o.TgZ(0,"mat-cell",40),o._uU(1),o.ALo(2,"number"),o.qZA()),2&e){const e=t.$implicit;o.xp6(1),o.Oqu(o.lcZ(2,1,e.channel.capacity))}}function tl(e,t){1&e&&(o.TgZ(0,"mat-header-cell",50),o._uU(1,"Actions"),o.qZA())}function nl(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"mat-cell",51),o.TgZ(1,"button",55),o.NdJ("click",function(){const t=o.CHM(e).$implicit;return o.oxw().onClosingClick(t)}),o._uU(2,"View Info"),o.qZA(),o.qZA()}}function al(e,t){1&e&&(o.TgZ(0,"p"),o._uU(1,"No pending channel."),o.qZA())}function il(e,t){1&e&&(o.TgZ(0,"p"),o._uU(1,"Getting pending channels..."),o.qZA())}function sl(e,t){if(1&e&&(o.TgZ(0,"p"),o._uU(1),o.qZA()),2&e){const e=o.oxw(2);o.xp6(1),o.Oqu(e.errorMessage)}}function ol(e,t){if(1&e&&(o.TgZ(0,"td",46),o.YNc(1,al,2,0,"p",47),o.YNc(2,il,2,0,"p",47),o.YNc(3,sl,2,1,"p",47),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Q6J("ngIf",(!e.pendingClosingChannels||!(null!=e.pendingClosingChannels&&e.pendingClosingChannels.data)||(null==e.pendingClosingChannels||null==e.pendingClosingChannels.data?null:e.pendingClosingChannels.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.FetchPendingChannels.status)===e.apiCallStatusEnum.COMPLETED),o.xp6(1),o.Q6J("ngIf",(!e.pendingClosingChannels||!(null!=e.pendingClosingChannels&&e.pendingClosingChannels.data)||(null==e.pendingClosingChannels||null==e.pendingClosingChannels.data?null:e.pendingClosingChannels.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.FetchPendingChannels.status)===e.apiCallStatusEnum.INITIATED),o.xp6(1),o.Q6J("ngIf",(!e.pendingClosingChannels||!(null!=e.pendingClosingChannels&&e.pendingClosingChannels.data)||(null==e.pendingClosingChannels||null==e.pendingClosingChannels.data?null:e.pendingClosingChannels.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.FetchPendingChannels.status)===e.apiCallStatusEnum.ERROR)}}function ll(e,t){if(1&e&&o._UZ(0,"tr",48),2&e){const e=o.oxw();o.Q6J("ngClass",o.VKq(1,wo,e.pendingClosingChannels&&(null==e.pendingClosingChannels?null:e.pendingClosingChannels.data)&&(null==e.pendingClosingChannels||null==e.pendingClosingChannels.data?null:e.pendingClosingChannels.data.length)>0))}}function rl(e,t){1&e&&o._UZ(0,"mat-header-row")}function cl(e,t){1&e&&o._UZ(0,"mat-row",49)}function ul(e,t){1&e&&o._UZ(0,"mat-progress-bar",36)}function pl(e,t){1&e&&(o.TgZ(0,"mat-header-cell",53),o._uU(1," Peer "),o.qZA())}function dl(e,t){if(1&e&&(o.TgZ(0,"mat-cell",54),o._uU(1),o.qZA()),2&e){const e=t.$implicit,n=o.oxw();o.Q6J("ngStyle",o.VKq(2,co,n.screenSize===n.screenSizeEnum.XS?"10rem":"30rem")),o.xp6(1),o.Oqu(e.channel.remote_alias)}}function hl(e,t){1&e&&(o.TgZ(0,"mat-header-cell",39),o._uU(1," Limbo Balance (Sats) "),o.qZA())}function ml(e,t){if(1&e&&(o.TgZ(0,"mat-cell",40),o._uU(1),o.ALo(2,"number"),o.qZA()),2&e){const e=t.$implicit;o.xp6(1),o.hij("",o.lcZ(2,1,e.limbo_balance)," ")}}function gl(e,t){1&e&&(o.TgZ(0,"mat-header-cell",39),o._uU(1," Local Balance (Sats) "),o.qZA())}function fl(e,t){if(1&e&&(o.TgZ(0,"mat-cell",40),o._uU(1),o.ALo(2,"number"),o.qZA()),2&e){const e=t.$implicit;o.xp6(1),o.Oqu(o.lcZ(2,1,e.channel.local_balance))}}function xl(e,t){1&e&&(o.TgZ(0,"mat-header-cell",39),o._uU(1," Remote Balance (Sats) "),o.qZA())}function Zl(e,t){if(1&e&&(o.TgZ(0,"mat-cell",40),o._uU(1),o.ALo(2,"number"),o.qZA()),2&e){const e=t.$implicit;o.xp6(1),o.Oqu(o.lcZ(2,1,e.channel.remote_balance))}}function yl(e,t){1&e&&(o.TgZ(0,"mat-header-cell",39),o._uU(1," Capacity (Sats) "),o.qZA())}function Al(e,t){if(1&e&&(o.TgZ(0,"mat-cell",40),o._uU(1),o.ALo(2,"number"),o.qZA()),2&e){const e=t.$implicit;o.xp6(1),o.Oqu(o.lcZ(2,1,e.channel.capacity))}}function Cl(e,t){1&e&&(o.TgZ(0,"mat-header-cell",50),o._uU(1,"Actions"),o.qZA())}function Tl(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"mat-cell",51),o.TgZ(1,"button",56),o.NdJ("click",function(){const t=o.CHM(e).$implicit;return o.oxw().onWaitClosingClick(t)}),o._uU(2,"View Info"),o.qZA(),o.qZA()}}function bl(e,t){1&e&&(o.TgZ(0,"p"),o._uU(1,"No pending channel."),o.qZA())}function wl(e,t){1&e&&(o.TgZ(0,"p"),o._uU(1,"Getting pending channels..."),o.qZA())}function _l(e,t){if(1&e&&(o.TgZ(0,"p"),o._uU(1),o.qZA()),2&e){const e=o.oxw(2);o.xp6(1),o.Oqu(e.errorMessage)}}function vl(e,t){if(1&e&&(o.TgZ(0,"td",46),o.YNc(1,bl,2,0,"p",47),o.YNc(2,wl,2,0,"p",47),o.YNc(3,_l,2,1,"p",47),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Q6J("ngIf",(!e.pendingWaitClosingChannels||!(null!=e.pendingWaitClosingChannels&&e.pendingWaitClosingChannels.data)||(null==e.pendingWaitClosingChannels||null==e.pendingWaitClosingChannels.data?null:e.pendingWaitClosingChannels.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.FetchPendingChannels.status)===e.apiCallStatusEnum.COMPLETED),o.xp6(1),o.Q6J("ngIf",(!e.pendingWaitClosingChannels||!(null!=e.pendingWaitClosingChannels&&e.pendingWaitClosingChannels.data)||(null==e.pendingWaitClosingChannels||null==e.pendingWaitClosingChannels.data?null:e.pendingWaitClosingChannels.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.FetchPendingChannels.status)===e.apiCallStatusEnum.INITIATED),o.xp6(1),o.Q6J("ngIf",(!e.pendingWaitClosingChannels||!(null!=e.pendingWaitClosingChannels&&e.pendingWaitClosingChannels.data)||(null==e.pendingWaitClosingChannels||null==e.pendingWaitClosingChannels.data?null:e.pendingWaitClosingChannels.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.FetchPendingChannels.status)===e.apiCallStatusEnum.ERROR)}}const ql=function(e){return{"py-0":!0,"display-none":e}};function Sl(e,t){if(1&e&&o._UZ(0,"tr",48),2&e){const e=o.oxw();o.Q6J("ngClass",o.VKq(1,ql,e.pendingWaitClosingChannels&&(null==e.pendingWaitClosingChannels?null:e.pendingWaitClosingChannels.data)&&(null==e.pendingWaitClosingChannels||null==e.pendingWaitClosingChannels.data?null:e.pendingWaitClosingChannels.data.length)>0))}}function Fl(e,t){1&e&&o._UZ(0,"mat-header-row")}function Ll(e,t){1&e&&o._UZ(0,"mat-row",49)}const kl=function(e){return{"error-border bordered-box":e,"bordered-box":!0}},Nl=function(){return["no_pending_open"]},Ul=function(){return["no_pending_force_closing"]},Il=function(){return["no_pending_closing"]},Ol=function(){return["no_pending_wait_closing"]};let Jl=(()=>{class e{constructor(e,t,n){this.logger=e,this.store=t,this.commonService=n,this.selNode={},this.selectedFilter="",this.information={},this.pendingChannels={},this.displayedOpenColumns=["remote_alias","commit_fee","commit_weight","capacity","actions"],this.pendingOpenChannelsLength=0,this.displayedForceClosingColumns=["remote_alias","recovered_balance","limbo_balance","capacity","actions"],this.pendingForceClosingChannelsLength=0,this.displayedClosingColumns=["remote_alias","local_balance","remote_balance","capacity","actions"],this.pendingClosingChannelsLength=0,this.displayedWaitClosingColumns=["remote_alias","limbo_balance","local_balance","remote_balance","actions"],this.pendingWaitClosingChannelsLength=0,this.screenSize="",this.screenSizeEnum=f.cu,this.errorMessage="",this.apisCallStatus=null,this.apiCallStatusEnum=f.Bn,this.unSubs=[new p.x,new p.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===f.cu.XS?(this.displayedOpenColumns=["remote_alias","actions"],this.displayedForceClosingColumns=["remote_alias","actions"],this.displayedClosingColumns=["remote_alias","actions"],this.displayedWaitClosingColumns=["remote_alias","actions"]):this.screenSize===f.cu.SM||this.screenSize===f.cu.MD?(this.displayedOpenColumns=["remote_alias","commit_fee","actions"],this.displayedForceClosingColumns=["remote_alias","limbo_balance","actions"],this.displayedClosingColumns=["remote_alias","remote_balance","actions"],this.displayedWaitClosingColumns=["remote_alias","limbo_balance","actions"]):(this.displayedOpenColumns=["remote_alias","commit_fee","commit_weight","capacity","actions"],this.displayedForceClosingColumns=["remote_alias","recovered_balance","limbo_balance","capacity","actions"],this.displayedClosingColumns=["remote_alias","local_balance","remote_balance","capacity","actions"],this.displayedWaitClosingColumns=["remote_alias","limbo_balance","local_balance","remote_balance","actions"])}ngOnInit(){this.store.select("lnd").pipe((0,d.R)(this.unSubs[0])).subscribe(e=>{this.errorMessage="",this.apisCallStatus=e.apisCallStatus,e.apisCallStatus.FetchPendingChannels.status===f.Bn.ERROR&&(this.errorMessage="object"==typeof this.apisCallStatus.FetchPendingChannels.message?JSON.stringify(this.apisCallStatus.FetchPendingChannels.message):this.apisCallStatus.FetchPendingChannels.message),this.selNode=e.nodeSettings,this.information=e.information,this.pendingChannels=e.pendingChannels,this.pendingChannels.pending_open_channels&&this.pendingChannels.pending_open_channels.length&&this.pendingChannels.pending_open_channels.length>0&&this.loadOpenChannelsTable(this.pendingChannels.pending_open_channels),this.pendingChannels.pending_force_closing_channels&&this.pendingChannels.pending_force_closing_channels.length&&this.pendingChannels.pending_force_closing_channels.length>0&&this.loadForceClosingChannelsTable(this.pendingChannels.pending_force_closing_channels),this.pendingChannels.pending_closing_channels&&this.pendingChannels.pending_closing_channels.length&&this.pendingChannels.pending_closing_channels.length>0&&this.loadClosingChannelsTable(this.pendingChannels.pending_closing_channels),this.pendingChannels.waiting_close_channels&&this.pendingChannels.waiting_close_channels.length&&this.pendingChannels.waiting_close_channels.length>0&&this.loadWaitClosingChannelsTable(this.pendingChannels.waiting_close_channels),this.logger.info(e)})}ngAfterViewInit(){this.pendingChannels.pending_open_channels&&this.pendingChannels.pending_open_channels.length&&this.pendingChannels.pending_open_channels.length>0&&this.loadOpenChannelsTable(this.pendingChannels.pending_open_channels),this.pendingChannels.pending_force_closing_channels&&this.pendingChannels.pending_force_closing_channels.length&&this.pendingChannels.pending_force_closing_channels.length>0&&this.loadForceClosingChannelsTable(this.pendingChannels.pending_force_closing_channels),this.pendingChannels.pending_closing_channels&&this.pendingChannels.pending_closing_channels.length&&this.pendingChannels.pending_closing_channels.length>0&&this.loadClosingChannelsTable(this.pendingChannels.pending_closing_channels),this.pendingChannels.waiting_close_channels&&this.pendingChannels.waiting_close_channels.length&&this.pendingChannels.waiting_close_channels.length>0&&this.loadWaitClosingChannelsTable(this.pendingChannels.waiting_close_channels)}onOpenClick(e){const t=JSON.parse(JSON.stringify(e,["commit_weight","confirmation_height","fee_per_kw","commit_fee"],2)),n=JSON.parse(JSON.stringify(e.channel,["remote_alias","channel_point","remote_balance","local_balance","remote_node_pub","capacity"],2)),a={};Object.assign(a,t,n),this.store.dispatch(new ee.wu({data:{type:f.n_.INFORMATION,alertTitle:"Opening Channel Information",message:[[{key:"channel_point",value:a.channel_point,title:"Channel Point",width:100,type:f.Gi.STRING}],[{key:"remote_alias",value:a.remote_alias,title:"Peer Alias",width:25,type:f.Gi.STRING},{key:"remote_node_pub",value:a.remote_node_pub,title:"Peer Node Pubkey",width:75,type:f.Gi.STRING}],[{key:"capacity",value:a.capacity,title:"Capacity",width:25,type:f.Gi.NUMBER},{key:"confirmation_height",value:a.confirmation_height,title:"Confirmation Height",width:25,type:f.Gi.NUMBER},{key:"local_balance",value:a.local_balance,title:"Local Balance",width:25,type:f.Gi.NUMBER},{key:"remote_balance",value:a.remote_balance,title:"Remote Balance",width:25,type:f.Gi.NUMBER}],[{key:"fee_per_kw",value:a.fee_per_kw,title:"Fee/KW",width:25,type:f.Gi.NUMBER},{key:"commit_weight",value:a.commit_weight,title:"Commit Weight",width:25,type:f.Gi.NUMBER},{key:"commit_fee",value:a.commit_fee,title:"Commit Fee",width:50,type:f.Gi.NUMBER}]]}}))}onBumpFee(e){this.store.dispatch(new ee.wu({data:{pendingChannel:e,component:so}}))}onForceClosingClick(e){const t=JSON.parse(JSON.stringify(e,["closing_txid","limbo_balance","maturity_height","blocks_til_maturity","recovered_balance"],2)),n=JSON.parse(JSON.stringify(e.channel,["remote_alias","channel_point","remote_balance","local_balance","remote_node_pub","capacity"],2)),a={};Object.assign(a,t,n),this.store.dispatch(new ee.wu({data:{type:f.n_.INFORMATION,alertTitle:"Force Closing Channel Information",message:[[{key:"closing_txid",value:a.closing_txid,title:"Closing Transaction ID",width:100,type:f.Gi.STRING}],[{key:"channel_point",value:a.channel_point,title:"Channel Point",width:100,type:f.Gi.STRING}],[{key:"remote_alias",value:a.remote_alias,title:"Peer Alias",width:25,type:f.Gi.STRING},{key:"remote_node_pub",value:a.remote_node_pub,title:"Peer Node Pubkey",width:75,type:f.Gi.STRING}],[{key:"capacity",value:a.capacity,title:"Capacity",width:25,type:f.Gi.NUMBER},{key:"limbo_balance",value:a.limbo_balance,title:"Limbo Balance",width:25,type:f.Gi.NUMBER},{key:"local_balance",value:a.local_balance,title:"Local Balance",width:25,type:f.Gi.NUMBER},{key:"remote_balance",value:a.remote_balance,title:"Remote Balance",width:25,type:f.Gi.NUMBER}],[{key:"maturity_height",value:a.maturity_height,title:"Maturity Height",width:25,type:f.Gi.NUMBER},{key:"blocks_til_maturity",value:a.blocks_til_maturity,title:"Blocks Till Maturity",width:25,type:f.Gi.NUMBER},{key:"recovered_balance",value:a.recovered_balance,title:"Recovered Balance",width:50,type:f.Gi.NUMBER}]]}}))}onClosingClick(e){const t=JSON.parse(JSON.stringify(e,["closing_txid"],2)),n=JSON.parse(JSON.stringify(e.channel,["remote_alias","channel_point","remote_balance","local_balance","remote_node_pub","capacity"],2)),a={};Object.assign(a,t,n),this.store.dispatch(new ee.wu({data:{type:f.n_.INFORMATION,alertTitle:"Closing Channel Information",message:[[{key:"closing_txid",value:a.closing_txid,title:"Closing Transaction ID",width:50,type:f.Gi.STRING}],[{key:"channel_point",value:a.channel_point,title:"Channel Point",width:100,type:f.Gi.STRING}],[{key:"remote_alias",value:a.remote_alias,title:"Peer Alias",width:25,type:f.Gi.STRING},{key:"remote_node_pub",value:a.remote_node_pub,title:"Peer Node Pubkey",width:75,type:f.Gi.STRING}],[{key:"capacity",value:a.capacity,title:"Capacity",width:25,type:f.Gi.NUMBER},{key:"local_balance",value:a.local_balance,title:"Local Balance",width:25,type:f.Gi.NUMBER},{key:"remote_balance",value:a.remote_balance,title:"Remote Balance",width:50,type:f.Gi.NUMBER}]]}}))}onWaitClosingClick(e){const t=JSON.parse(JSON.stringify(e,["limbo_balance"],2)),n=JSON.parse(JSON.stringify(e.channel,["remote_alias","channel_point","remote_balance","local_balance","remote_node_pub","capacity"],2)),a=JSON.parse(JSON.stringify(e.commitments,["local_txid"],2)),i={};Object.assign(i,t,n,a),this.store.dispatch(new ee.wu({data:{type:f.n_.INFORMATION,alertTitle:"Wait Closing Channel Information",message:[[{key:"local_txid",value:i.local_txid,title:"Transaction ID",width:100,type:f.Gi.STRING}],[{key:"channel_point",value:i.channel_point,title:"Channel Point",width:100,type:f.Gi.STRING}],[{key:"remote_alias",value:i.remote_alias,title:"Peer Alias",width:25,type:f.Gi.STRING},{key:"remote_node_pub",value:i.remote_node_pub,title:"Peer Node Pubkey",width:75,type:f.Gi.STRING}],[{key:"capacity",value:i.capacity,title:"Capacity",width:25,type:f.Gi.NUMBER},{key:"limbo_balance",value:i.limbo_balance,title:"Limbo Balance",width:25,type:f.Gi.NUMBER},{key:"local_balance",value:i.local_balance,title:"Local Balance",width:25,type:f.Gi.NUMBER},{key:"remote_balance",value:i.remote_balance,title:"Remote Balance",width:25,type:f.Gi.NUMBER}]]}}))}loadOpenChannelsTable(e){e.sort((e,t)=>e.active===t.active?0:t.active?-1:1),this.pendingOpenChannelsLength=e.length?e.length:0,this.pendingOpenChannels=new Ze.by([...e]),this.pendingOpenChannels.sort=this.sort,this.pendingOpenChannels.sortingDataAccessor=(e,t)=>e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():e[t]?+e[t]:null,this.pendingOpenChannels.filterPredicate=(e,t)=>JSON.stringify(e).toLowerCase().includes(t),this.logger.info(this.pendingOpenChannels)}loadForceClosingChannelsTable(e){e.sort((e,t)=>e.active===t.active?0:t.active?-1:1),this.pendingForceClosingChannelsLength=e.length?e.length:0,this.pendingForceClosingChannels=new Ze.by([...e]),this.pendingForceClosingChannels.sort=this.sort,this.pendingForceClosingChannels.sortingDataAccessor=(e,t)=>e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():e[t]?+e[t]:null,this.pendingForceClosingChannels.filterPredicate=(e,t)=>JSON.stringify(e).toLowerCase().includes(t),this.logger.info(this.pendingForceClosingChannels)}loadClosingChannelsTable(e){e.sort((e,t)=>e.active===t.active?0:t.active?-1:1),this.pendingClosingChannelsLength=e.length?e.length:0,this.pendingClosingChannels=new Ze.by([...e]),this.pendingClosingChannels.sort=this.sort,this.pendingClosingChannels.sortingDataAccessor=(e,t)=>e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():e[t]?+e[t]:null,this.pendingClosingChannels.filterPredicate=(e,t)=>JSON.stringify(e).toLowerCase().includes(t),this.logger.info(this.pendingClosingChannels)}loadWaitClosingChannelsTable(e){e.sort((e,t)=>e.active===t.active?0:t.active?-1:1),this.pendingWaitClosingChannelsLength=e.length?e.length:0,this.pendingWaitClosingChannels=new Ze.by([...e]),this.pendingWaitClosingChannels.sort=this.sort,this.pendingWaitClosingChannels.sortingDataAccessor=(e,t)=>e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():e[t]?+e[t]:null,this.pendingWaitClosingChannels.filterPredicate=(e,t)=>JSON.stringify(e).toLowerCase().includes(t),this.logger.info(this.pendingWaitClosingChannels)}applyFilter(e){this.selectedFilter=e.trim().toLowerCase()}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(Z.mQ),o.Y36(y.yh),o.Y36(C.v))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-channel-pending-table"]],viewQuery:function(e,t){if(1&e&&o.Gf(xe.YE,5),2&e){let e;o.iGM(e=o.CRH())&&(t.sort=e.first)}},decls:121,vars:44,consts:[["fxLayout","column",1,"mb-2"],[1,"page-title"],["displayMode","flat",1,"mt-1"],["mode","indeterminate",4,"ngIf"],["fxLayout","column",1,"flat-expansion-panel"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","remote_alias"],["mat-sort-header","",4,"matHeaderCellDef"],[3,"ngStyle",4,"matCellDef"],["matColumnDef","commit_fee"],["fxLayoutAlign","end center","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","commit_weight"],["matColumnDef","capacity"],["matColumnDef","actions"],["fxLayoutAlign","end center","class","pl-3 pr-4",4,"matHeaderCellDef"],["fxLayoutAlign","end center","class","px-3",4,"matCellDef"],["matColumnDef","no_pending_open"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","","fxLayoutAlign","start center",3,"ngClass",4,"matFooterRowDef"],[4,"matHeaderRowDef"],["fxLayoutAlign","stretch stretch",4,"matRowDef","matRowDefColumns"],["mat-table","","matSort","",3,"dataSource","ngClass"],["matColumnDef","recovered_balance"],["matColumnDef","limbo_balance"],["fxLayoutAlign","end center","class","pl-4 pr-3",4,"matHeaderCellDef"],["fxLayoutAlign","end center","class","pl-4",4,"matCellDef"],["matColumnDef","no_pending_force_closing"],["class","pl-2","mat-sort-header","",4,"matHeaderCellDef"],["class","pl-2",3,"ngStyle",4,"matCellDef"],["matColumnDef","local_balance"],["matColumnDef","remote_balance"],["matColumnDef","no_pending_closing"],["matColumnDef","no_pending_wait_closing"],["mode","indeterminate"],["mat-sort-header",""],[3,"ngStyle"],["fxLayoutAlign","end center","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["fxLayoutAlign","end center",1,"pl-3","pr-4"],["fxLayoutAlign","end center",1,"px-3"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","","fxLayoutAlign","start center",3,"ngClass"],["fxLayoutAlign","stretch stretch"],["fxLayoutAlign","end center",1,"pl-4","pr-3"],["fxLayoutAlign","end center",1,"pl-4"],["mat-stroked-button","","color","primary","type","button","tabindex","2",3,"click"],["mat-sort-header","",1,"pl-2"],[1,"pl-2",3,"ngStyle"],["mat-stroked-button","","color","primary","type","button","tabindex","3",3,"click"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"]],template:function(e,t){1&e&&(o.TgZ(0,"div",0),o.TgZ(1,"span",1),o._uU(2),o.ALo(3,"number"),o.qZA(),o.TgZ(4,"mat-accordion",2),o.YNc(5,oo,1,0,"mat-progress-bar",3),o.TgZ(6,"mat-expansion-panel",4),o.TgZ(7,"mat-expansion-panel-header"),o.TgZ(8,"mat-panel-title"),o._uU(9),o.qZA(),o.qZA(),o.TgZ(10,"div",5),o.YNc(11,lo,1,0,"mat-progress-bar",3),o.TgZ(12,"table",6,7),o.ynx(14,8),o.YNc(15,ro,2,0,"mat-header-cell",9),o.YNc(16,uo,2,4,"mat-cell",10),o.BQk(),o.ynx(17,11),o.YNc(18,po,2,0,"mat-header-cell",12),o.YNc(19,ho,3,3,"mat-cell",13),o.BQk(),o.ynx(20,14),o.YNc(21,mo,2,0,"mat-header-cell",12),o.YNc(22,go,3,3,"mat-cell",13),o.BQk(),o.ynx(23,15),o.YNc(24,fo,2,0,"mat-header-cell",12),o.YNc(25,xo,3,3,"mat-cell",13),o.BQk(),o.ynx(26,16),o.YNc(27,Zo,2,0,"mat-header-cell",17),o.YNc(28,yo,8,0,"mat-cell",18),o.BQk(),o.ynx(29,19),o.YNc(30,bo,4,3,"td",20),o.BQk(),o.YNc(31,_o,1,3,"tr",21),o.YNc(32,vo,1,0,"mat-header-row",22),o.YNc(33,qo,1,0,"mat-row",23),o.qZA(),o.qZA(),o.qZA(),o.YNc(34,So,1,0,"mat-progress-bar",3),o.TgZ(35,"mat-expansion-panel",4),o.TgZ(36,"mat-expansion-panel-header"),o.TgZ(37,"mat-panel-title"),o._uU(38),o.qZA(),o.qZA(),o.TgZ(39,"div",5),o.TgZ(40,"table",24,7),o.ynx(42,8),o.YNc(43,Fo,2,0,"mat-header-cell",9),o.YNc(44,Lo,2,4,"mat-cell",10),o.BQk(),o.ynx(45,25),o.YNc(46,ko,2,0,"mat-header-cell",12),o.YNc(47,No,3,3,"mat-cell",13),o.BQk(),o.ynx(48,26),o.YNc(49,Uo,2,0,"mat-header-cell",12),o.YNc(50,Io,3,3,"mat-cell",13),o.BQk(),o.ynx(51,15),o.YNc(52,Oo,2,0,"mat-header-cell",12),o.YNc(53,Jo,3,3,"mat-cell",13),o.BQk(),o.ynx(54,16),o.YNc(55,Do,2,0,"mat-header-cell",27),o.YNc(56,Ro,3,0,"mat-cell",28),o.BQk(),o.ynx(57,29),o.YNc(58,Yo,4,3,"td",20),o.BQk(),o.YNc(59,Po,1,3,"tr",21),o.YNc(60,Bo,1,0,"mat-header-row",22),o.YNc(61,Go,1,0,"mat-row",23),o.qZA(),o.qZA(),o.qZA(),o.YNc(62,Ho,1,0,"mat-progress-bar",3),o.TgZ(63,"mat-expansion-panel",4),o.TgZ(64,"mat-expansion-panel-header"),o.TgZ(65,"mat-panel-title"),o._uU(66),o.qZA(),o.qZA(),o.TgZ(67,"div",5),o.TgZ(68,"table",24,7),o.ynx(70,8),o.YNc(71,zo,2,0,"mat-header-cell",30),o.YNc(72,Vo,2,4,"mat-cell",31),o.BQk(),o.ynx(73,32),o.YNc(74,Wo,2,0,"mat-header-cell",12),o.YNc(75,Xo,3,3,"mat-cell",13),o.BQk(),o.ynx(76,33),o.YNc(77,$o,2,0,"mat-header-cell",12),o.YNc(78,jo,3,3,"mat-cell",13),o.BQk(),o.ynx(79,15),o.YNc(80,Ko,2,0,"mat-header-cell",12),o.YNc(81,el,3,3,"mat-cell",13),o.BQk(),o.ynx(82,16),o.YNc(83,tl,2,0,"mat-header-cell",27),o.YNc(84,nl,3,0,"mat-cell",28),o.BQk(),o.ynx(85,34),o.YNc(86,ol,4,3,"td",20),o.BQk(),o.YNc(87,ll,1,3,"tr",21),o.YNc(88,rl,1,0,"mat-header-row",22),o.YNc(89,cl,1,0,"mat-row",23),o.qZA(),o.qZA(),o.qZA(),o.YNc(90,ul,1,0,"mat-progress-bar",3),o.TgZ(91,"mat-expansion-panel",4),o.TgZ(92,"mat-expansion-panel-header"),o.TgZ(93,"mat-panel-title"),o._uU(94),o.qZA(),o.qZA(),o.TgZ(95,"div",5),o.TgZ(96,"table",24,7),o.ynx(98,8),o.YNc(99,pl,2,0,"mat-header-cell",30),o.YNc(100,dl,2,4,"mat-cell",31),o.BQk(),o.ynx(101,26),o.YNc(102,hl,2,0,"mat-header-cell",12),o.YNc(103,ml,3,3,"mat-cell",13),o.BQk(),o.ynx(104,32),o.YNc(105,gl,2,0,"mat-header-cell",12),o.YNc(106,fl,3,3,"mat-cell",13),o.BQk(),o.ynx(107,33),o.YNc(108,xl,2,0,"mat-header-cell",12),o.YNc(109,Zl,3,3,"mat-cell",13),o.BQk(),o.ynx(110,15),o.YNc(111,yl,2,0,"mat-header-cell",12),o.YNc(112,Al,3,3,"mat-cell",13),o.BQk(),o.ynx(113,16),o.YNc(114,Cl,2,0,"mat-header-cell",27),o.YNc(115,Tl,3,0,"mat-cell",28),o.BQk(),o.ynx(116,35),o.YNc(117,vl,4,3,"td",20),o.BQk(),o.YNc(118,Sl,1,3,"tr",21),o.YNc(119,Fl,1,0,"mat-header-row",22),o.YNc(120,Ll,1,0,"mat-row",23),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA()),2&e&&(o.xp6(2),o.hij("Total Limbo Balance: ",o.lcZ(3,30,t.pendingChannels.total_limbo_balance)," Sats"),o.xp6(3),o.Q6J("ngIf",(null==t.apisCallStatus?null:t.apisCallStatus.FetchPendingChannels.status)===t.apiCallStatusEnum.INITIATED),o.xp6(4),o.hij("Pending Open (",t.pendingOpenChannelsLength,")"),o.xp6(2),o.Q6J("ngIf",(null==t.apisCallStatus?null:t.apisCallStatus.FetchPendingChannels.status)===t.apiCallStatusEnum.INITIATED),o.xp6(1),o.Q6J("dataSource",t.pendingOpenChannels)("ngClass",o.VKq(32,kl,""!==t.errorMessage)),o.xp6(19),o.Q6J("matFooterRowDef",o.DdM(34,Nl)),o.xp6(1),o.Q6J("matHeaderRowDef",t.displayedOpenColumns),o.xp6(1),o.Q6J("matRowDefColumns",t.displayedOpenColumns),o.xp6(1),o.Q6J("ngIf",(null==t.apisCallStatus?null:t.apisCallStatus.FetchPendingChannels.status)===t.apiCallStatusEnum.INITIATED),o.xp6(4),o.hij("Pending Force Closing (",t.pendingForceClosingChannelsLength,")"),o.xp6(2),o.Q6J("dataSource",t.pendingForceClosingChannels)("ngClass",o.VKq(35,kl,""!==t.errorMessage)),o.xp6(19),o.Q6J("matFooterRowDef",o.DdM(37,Ul)),o.xp6(1),o.Q6J("matHeaderRowDef",t.displayedForceClosingColumns),o.xp6(1),o.Q6J("matRowDefColumns",t.displayedForceClosingColumns),o.xp6(1),o.Q6J("ngIf",(null==t.apisCallStatus?null:t.apisCallStatus.FetchPendingChannels.status)===t.apiCallStatusEnum.INITIATED),o.xp6(4),o.hij("Pending Closing (",t.pendingClosingChannelsLength,")"),o.xp6(2),o.Q6J("dataSource",t.pendingClosingChannels)("ngClass",o.VKq(38,kl,""!==t.errorMessage)),o.xp6(19),o.Q6J("matFooterRowDef",o.DdM(40,Il)),o.xp6(1),o.Q6J("matHeaderRowDef",t.displayedClosingColumns),o.xp6(1),o.Q6J("matRowDefColumns",t.displayedClosingColumns),o.xp6(1),o.Q6J("ngIf",(null==t.apisCallStatus?null:t.apisCallStatus.FetchPendingChannels.status)===t.apiCallStatusEnum.INITIATED),o.xp6(4),o.hij("Waiting Close (",t.pendingWaitClosingChannelsLength,")"),o.xp6(2),o.Q6J("dataSource",t.pendingWaitClosingChannels)("ngClass",o.VKq(41,kl,""!==t.errorMessage)),o.xp6(22),o.Q6J("matFooterRowDef",o.DdM(43,Ol)),o.xp6(1),o.Q6J("matHeaderRowDef",t.displayedWaitClosingColumns),o.xp6(1),o.Q6J("matRowDefColumns",t.displayedWaitClosingColumns))},directives:[l.xw,ht.pp,a.O5,ht.ib,ht.yz,ht.yK,l.Wh,l.yH,E.$V,Ze.BZ,xe.YE,a.mk,v.oO,Ze.w1,Ze.fO,Ze.Dz,Ze.mD,Ze.Ke,Ze.as,Ze.nj,r.pW,Ze.ge,xe.nU,Ze.ev,a.PC,v.Zl,we.gD,we.$L,ve.ey,Ze.yh,Ze.Q2,Ze.XQ,Ze.Gk,q.lW],pipes:[a.JJ],styles:[".mat-column-channel_point[_ngcontent-%COMP%]{flex:1 1 10%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}tr.mat-footer-row[_ngcontent-%COMP%] td.mat-footer-cell[_ngcontent-%COMP%]{border-bottom:none}"]}),e})();function Dl(e,t){1&e&&o._UZ(0,"mat-progress-bar",28)}function Rl(e,t){1&e&&(o.TgZ(0,"th",29),o._uU(1," Close Type "),o.qZA())}function Ml(e,t){if(1&e&&(o.TgZ(0,"td",30),o._uU(1),o.qZA()),2&e){const e=t.$implicit,n=o.oxw();o.Q6J("matTooltip",n.channelClosureType[e.close_type].tooltip),o.xp6(1),o.hij("",n.channelClosureType[e.close_type].name," ")}}function El(e,t){1&e&&(o.TgZ(0,"th",29),o._uU(1," Peer "),o.qZA())}const Ql=function(e){return{"max-width":e}};function Yl(e,t){if(1&e&&(o.TgZ(0,"td",31),o._uU(1),o.qZA()),2&e){const e=t.$implicit,n=o.oxw();o.Q6J("ngStyle",o.VKq(2,Ql,n.screenSize===n.screenSizeEnum.XS?"10rem":"20rem")),o.xp6(1),o.hij(" ",e.remote_alias," ")}}function Pl(e,t){1&e&&(o.TgZ(0,"th",32),o._uU(1," Capacity "),o.qZA())}function Bl(e,t){if(1&e&&(o.TgZ(0,"td",33),o.TgZ(1,"span",34),o._uU(2),o.ALo(3,"number"),o.qZA(),o.qZA()),2&e){const e=t.$implicit;o.xp6(2),o.hij(" ",o.lcZ(3,1,e.capacity)," ")}}function Gl(e,t){1&e&&(o.TgZ(0,"th",32),o._uU(1," Close Height "),o.qZA())}function Hl(e,t){if(1&e&&(o.TgZ(0,"td",33),o.TgZ(1,"span",34),o._uU(2),o.ALo(3,"number"),o.qZA(),o.qZA()),2&e){const e=t.$implicit;o.xp6(2),o.hij(" ",o.lcZ(3,1,e.close_height)," ")}}function zl(e,t){1&e&&(o.TgZ(0,"th",32),o._uU(1," Settled Balance "),o.qZA())}function Vl(e,t){if(1&e&&(o.TgZ(0,"td",33),o.TgZ(1,"span",34),o._uU(2),o.ALo(3,"number"),o.qZA(),o.qZA()),2&e){const e=t.$implicit;o.xp6(2),o.hij(" ",o.lcZ(3,1,e.settled_balance)," ")}}function Wl(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"th",35),o.TgZ(1,"div",36),o.TgZ(2,"mat-select",37),o._UZ(3,"mat-select-trigger"),o.TgZ(4,"mat-option",38),o.NdJ("click",function(){return o.CHM(e),o.oxw().onDownloadCSV()}),o._uU(5,"Download CSV"),o.qZA(),o.qZA(),o.qZA(),o.qZA()}}function Xl(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"td",39),o.TgZ(1,"span",34),o.TgZ(2,"button",40),o.NdJ("click",function(t){const n=o.CHM(e).$implicit;return o.oxw().onClosedChannelClick(n,t)}),o._uU(3,"View Info"),o.qZA(),o.qZA(),o.qZA()}}function $l(e,t){1&e&&(o.TgZ(0,"p"),o._uU(1,"No closed channel available."),o.qZA())}function jl(e,t){1&e&&(o.TgZ(0,"p"),o._uU(1,"Getting closed channels..."),o.qZA())}function Kl(e,t){if(1&e&&(o.TgZ(0,"p"),o._uU(1),o.qZA()),2&e){const e=o.oxw(2);o.xp6(1),o.Oqu(e.errorMessage)}}function er(e,t){if(1&e&&(o.TgZ(0,"td",41),o.YNc(1,$l,2,0,"p",42),o.YNc(2,jl,2,0,"p",42),o.YNc(3,Kl,2,1,"p",42),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Q6J("ngIf",(!(null!=e.closedChannels&&e.closedChannels.data)||(null==e.closedChannels||null==e.closedChannels.data?null:e.closedChannels.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.FetchClosedChannels.status)===e.apiCallStatusEnum.COMPLETED),o.xp6(1),o.Q6J("ngIf",(!(null!=e.closedChannels&&e.closedChannels.data)||(null==e.closedChannels||null==e.closedChannels.data?null:e.closedChannels.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.FetchClosedChannels.status)===e.apiCallStatusEnum.INITIATED),o.xp6(1),o.Q6J("ngIf",(!(null!=e.closedChannels&&e.closedChannels.data)||(null==e.closedChannels||null==e.closedChannels.data?null:e.closedChannels.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.FetchClosedChannels.status)===e.apiCallStatusEnum.ERROR)}}const tr=function(e){return{"display-none":e}};function nr(e,t){if(1&e&&o._UZ(0,"tr",43),2&e){const e=o.oxw();o.Q6J("ngClass",o.VKq(1,tr,(null==e.closedChannels?null:e.closedChannels.data)&&(null==e.closedChannels||null==e.closedChannels.data?null:e.closedChannels.data.length)>0))}}function ar(e,t){1&e&&o._UZ(0,"tr",44)}function ir(e,t){1&e&&o._UZ(0,"tr",45)}const sr=function(e){return{"error-border":e,"overflow-auto":!0}},or=function(){return["no_closed_channel"]};let lr=(()=>{class e{constructor(e,t,n){this.logger=e,this.store=t,this.commonService=n,this.channelClosureType=f.HW,this.faHistory=g.qO$,this.displayedColumns=[],this.closedChannelsData=[],this.flgSticky=!1,this.pageSize=f.IV,this.pageSizeOptions=f.TJ,this.screenSize="",this.screenSizeEnum=f.cu,this.errorMessage="",this.apisCallStatus=null,this.apiCallStatusEnum=f.Bn,this.unsub=[new p.x,new p.x,new p.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===f.cu.XS?(this.flgSticky=!1,this.displayedColumns=["remote_alias","actions"]):this.screenSize===f.cu.SM||this.screenSize===f.cu.MD?(this.flgSticky=!1,this.displayedColumns=["close_type","remote_alias","settled_balance","actions"]):(this.flgSticky=!0,this.displayedColumns=["close_type","remote_alias","capacity","close_height","settled_balance","actions"])}ngOnInit(){this.store.select("lnd").pipe((0,d.R)(this.unsub[0])).subscribe(e=>{this.errorMessage="",this.apisCallStatus=e.apisCallStatus,e.apisCallStatus.FetchClosedChannels.status===f.Bn.ERROR&&(this.errorMessage="object"==typeof this.apisCallStatus.FetchClosedChannels.message?JSON.stringify(this.apisCallStatus.FetchClosedChannels.message):this.apisCallStatus.FetchClosedChannels.message),this.closedChannelsData=e.closedChannels,this.closedChannelsData.length>0&&this.loadClosedChannelsTable(this.closedChannelsData),this.logger.info(e)})}ngAfterViewInit(){this.closedChannelsData.length>0&&this.loadClosedChannelsTable(this.closedChannelsData)}applyFilter(e){this.closedChannels.filter=e.value.trim().toLowerCase()}onClosedChannelClick(e,t){this.store.dispatch(new ee.wu({data:{type:f.n_.INFORMATION,alertTitle:"Closed Channel Information",message:[[{key:"close_type",value:this.channelClosureType[e.close_type].name,title:"Close Type",width:30,type:f.Gi.STRING},{key:"settled_balance",value:e.settled_balance,title:"Settled Balance",width:30,type:f.Gi.NUMBER},{key:"time_locked_balance",value:e.time_locked_balance,title:"Time Locked Balance",width:40,type:f.Gi.NUMBER}],[{key:"chan_id",value:e.chan_id,title:"Channel ID",width:30},{key:"capacity",value:e.capacity,title:"Capacity",width:30,type:f.Gi.NUMBER},{key:"close_height",value:e.close_height,title:"Close Height",width:40,type:f.Gi.NUMBER}],[{key:"remote_alias",value:e.remote_alias,title:"Peer Alias",width:30},{key:"remote_pubkey",value:e.remote_pubkey,title:"Peer Public Key",width:70}],[{key:"channel_point",value:e.channel_point,title:"Channel Point",width:100}],[{key:"closing_tx_hash",value:e.closing_tx_hash,title:"Closing Transaction Hash",width:100,type:f.Gi.STRING}]]}}))}loadClosedChannelsTable(e){this.closedChannels=new Ze.by([...e]),this.closedChannels.sort=this.sort,this.closedChannels.sortingDataAccessor=(e,t)=>e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():e[t]?+e[t]:null,this.closedChannels.filterPredicate=(e,t)=>JSON.stringify(e).toLowerCase().includes(t),this.closedChannels.paginator=this.paginator,this.logger.info(this.closedChannels)}onDownloadCSV(){this.closedChannels.data&&this.closedChannels.data.length>0&&this.commonService.downloadFile(this.closedChannels.data,"Closed-channels")}ngOnDestroy(){this.unsub.forEach(e=>{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(Z.mQ),o.Y36(y.yh),o.Y36(C.v))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-channel-closed-table"]],viewQuery:function(e,t){if(1&e&&(o.Gf(xe.YE,5),o.Gf(fe.NW,5)),2&e){let e;o.iGM(e=o.CRH())&&(t.sort=e.first),o.iGM(e=o.CRH())&&(t.paginator=e.first)}},features:[o._Bn([{provide:fe.ye,useValue:(0,f.pt)("Channels")}])],decls:33,vars:13,consts:[["fxLayout","column"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"keyup"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","close_type"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"matTooltip",4,"matCellDef"],["matColumnDef","remote_alias"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","capacity"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","close_height"],["matColumnDef","settled_balance"],["matColumnDef","actions"],["mat-header-cell","","class","pl-1",4,"matHeaderCellDef"],["mat-cell","","class","pl-1",4,"matCellDef"],["matColumnDef","no_closed_channel"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"matTooltip"],["mat-cell","",3,"ngStyle"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["mat-cell",""],["fxLayoutAlign","end center"],["mat-header-cell","",1,"pl-1"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","",1,"pl-1"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,t){1&e&&(o.TgZ(0,"div",0),o.TgZ(1,"div",1),o._UZ(2,"div",2),o.TgZ(3,"mat-form-field",3),o.TgZ(4,"input",4),o.NdJ("keyup",function(e){return t.applyFilter(e.target)}),o.qZA(),o.qZA(),o.qZA(),o.TgZ(5,"div",5),o.YNc(6,Dl,1,0,"mat-progress-bar",6),o.TgZ(7,"table",7,8),o.ynx(9,9),o.YNc(10,Rl,2,0,"th",10),o.YNc(11,Ml,2,2,"td",11),o.BQk(),o.ynx(12,12),o.YNc(13,El,2,0,"th",10),o.YNc(14,Yl,2,4,"td",13),o.BQk(),o.ynx(15,14),o.YNc(16,Pl,2,0,"th",15),o.YNc(17,Bl,4,3,"td",16),o.BQk(),o.ynx(18,17),o.YNc(19,Gl,2,0,"th",15),o.YNc(20,Hl,4,3,"td",16),o.BQk(),o.ynx(21,18),o.YNc(22,zl,2,0,"th",15),o.YNc(23,Vl,4,3,"td",16),o.BQk(),o.ynx(24,19),o.YNc(25,Wl,6,0,"th",20),o.YNc(26,Xl,4,0,"td",21),o.BQk(),o.ynx(27,22),o.YNc(28,er,4,3,"td",23),o.BQk(),o.YNc(29,nr,1,3,"tr",24),o.YNc(30,ar,1,0,"tr",25),o.YNc(31,ir,1,0,"tr",26),o.qZA(),o.qZA(),o._UZ(32,"mat-paginator",27),o.qZA()),2&e&&(o.xp6(6),o.Q6J("ngIf",(null==t.apisCallStatus?null:t.apisCallStatus.FetchClosedChannels.status)===t.apiCallStatusEnum.INITIATED),o.xp6(1),o.Q6J("dataSource",t.closedChannels)("ngClass",o.VKq(10,sr,""!==t.errorMessage)),o.xp6(22),o.Q6J("matFooterRowDef",o.DdM(12,or)),o.xp6(1),o.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),o.xp6(1),o.Q6J("matRowDefColumns",t.displayedColumns),o.xp6(1),o.Q6J("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS))},directives:[l.xw,l.Wh,l.yH,D.KE,Ce.Nt,E.$V,a.O5,Ze.BZ,xe.YE,a.mk,v.oO,Ze.w1,Ze.fO,Ze.Dz,Ze.mD,Ze.Ke,Ze.as,Ze.nj,fe.NW,r.pW,Ze.ge,xe.nU,Ze.ev,R.gM,a.PC,v.Zl,we.gD,we.$L,ve.ey,q.lW,Ze.yh,Ze.Q2,Ze.XQ,Ze.Gk],pipes:[a.JJ],styles:[".mat-column-close_type[_ngcontent-%COMP%]{flex:0 0 16%;min-width:5rem}.mat-column-remote_alias[_ngcontent-%COMP%]{flex:1 1 20%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),e})();function rr(e,t){1&e&&o._UZ(0,"mat-progress-bar",27)}function cr(e,t){1&e&&(o.TgZ(0,"th",28),o._uU(1,"Amount (Sats)"),o.qZA())}function ur(e,t){if(1&e&&(o.TgZ(0,"span",33),o._uU(1),o.ALo(2,"number"),o.qZA()),2&e){const e=t.$implicit;o.xp6(1),o.hij(" ",o.lcZ(2,1,null==e?null:e.amount)," ")}}function pr(e,t){if(1&e&&(o.TgZ(0,"span"),o.YNc(1,ur,3,3,"span",32),o.qZA()),2&e){const e=o.oxw().$implicit;o.xp6(1),o.Q6J("ngForOf",null==e?null:e.pending_htlcs)}}function dr(e,t){if(1&e&&(o.TgZ(0,"td",29),o.TgZ(1,"span",30),o._uU(2),o.qZA(),o.YNc(3,pr,2,1,"span",31),o.qZA()),2&e){const e=t.$implicit;o.xp6(2),o.hij(" Active HTLCs: ",null==e||null==e.pending_htlcs?null:e.pending_htlcs.length," "),o.xp6(1),o.Q6J("ngIf",e.is_expanded)}}function hr(e,t){1&e&&(o.TgZ(0,"th",28),o._uU(1,"Alias/Incoming"),o.qZA())}function mr(e,t){if(1&e&&(o.TgZ(0,"span",30),o._uU(1),o.qZA()),2&e){const e=t.$implicit;o.xp6(1),o.hij(" ",null!=e&&e.incoming?"Yes":"No"," ")}}function gr(e,t){if(1&e&&(o.ynx(0),o.YNc(1,mr,2,1,"span",34),o.BQk()),2&e){const e=o.oxw().$implicit;o.xp6(1),o.Q6J("ngForOf",null==e?null:e.pending_htlcs)}}function fr(e,t){if(1&e&&(o.TgZ(0,"td",29),o.TgZ(1,"span",30),o._uU(2),o.qZA(),o.YNc(3,gr,2,1,"ng-container",31),o.qZA()),2&e){const e=t.$implicit;o.xp6(2),o.Oqu(null==e?null:e.remote_alias),o.xp6(1),o.Q6J("ngIf",e.is_expanded)}}function xr(e,t){1&e&&(o.TgZ(0,"th",35),o.TgZ(1,"span",36),o._uU(2,"Expiration Height"),o.qZA(),o.qZA())}function Zr(e,t){if(1&e&&(o.TgZ(0,"span",36),o._uU(1),o.ALo(2,"number"),o.qZA()),2&e){const e=t.$implicit;o.xp6(1),o.hij(" ",o.xi3(2,1,null==e?null:e.expiration_height,"1.0-0")," ")}}function yr(e,t){if(1&e&&(o.TgZ(0,"span"),o.YNc(1,Zr,3,4,"span",37),o.qZA()),2&e){const e=o.oxw().$implicit;o.xp6(1),o.Q6J("ngForOf",null==e?null:e.pending_htlcs)}}function Ar(e,t){if(1&e&&(o.TgZ(0,"td",29),o.TgZ(1,"span",36),o._uU(2),o.qZA(),o.YNc(3,yr,2,1,"span",31),o.qZA()),2&e){const e=t.$implicit;o.xp6(2),o.Oqu(" "),o.xp6(1),o.Q6J("ngIf",e.is_expanded)}}function Cr(e,t){1&e&&(o.TgZ(0,"th",38),o.TgZ(1,"span",36),o._uU(2,"Hash Lock"),o.qZA(),o.qZA())}function Tr(e,t){if(1&e&&(o.TgZ(0,"span",36),o._uU(1),o.qZA()),2&e){const e=t.$implicit;o.xp6(1),o.hij(" ",null==e?null:e.hash_lock," ")}}function br(e,t){if(1&e&&(o.TgZ(0,"span"),o.YNc(1,Tr,2,1,"span",37),o.qZA()),2&e){const e=o.oxw().$implicit;o.xp6(1),o.Q6J("ngForOf",null==e?null:e.pending_htlcs)}}function wr(e,t){if(1&e&&(o.TgZ(0,"td",39),o.TgZ(1,"span",36),o._uU(2),o.qZA(),o.YNc(3,br,2,1,"span",31),o.qZA()),2&e){const e=t.$implicit;o.xp6(2),o.Oqu(" "),o.xp6(1),o.Q6J("ngIf",e.is_expanded)}}function _r(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"th",40),o.TgZ(1,"div",41),o.TgZ(2,"mat-select",42),o._UZ(3,"mat-select-trigger"),o.TgZ(4,"mat-option",43),o.NdJ("click",function(){return o.CHM(e),o.oxw().onDownloadCSV()}),o._uU(5,"Download CSV"),o.qZA(),o.qZA(),o.qZA(),o.qZA()}}function vr(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"div",45),o.TgZ(1,"button",48),o.NdJ("click",function(){const t=o.CHM(e).$implicit,n=o.oxw(2).$implicit;return o.oxw().onHTLCClick(t,n)}),o._uU(2),o.qZA(),o.qZA()}if(2&e){const e=t.index;o.xp6(2),o.hij("View ",e+1,"")}}function qr(e,t){if(1&e&&(o.TgZ(0,"div"),o.YNc(1,vr,3,1,"div",47),o.qZA()),2&e){const e=o.oxw().$implicit;o.xp6(1),o.Q6J("ngForOf",null==e?null:e.pending_htlcs)}}function Sr(e,t){if(1&e&&(o.TgZ(0,"td",44),o.TgZ(1,"span",45),o.TgZ(2,"button",46),o.NdJ("click",function(){const e=t.$implicit;return e.is_expanded=!e.is_expanded}),o._uU(3),o.qZA(),o.qZA(),o.YNc(4,qr,2,1,"div",31),o.qZA()),2&e){const e=t.$implicit;o.xp6(3),o.Oqu(e.is_expanded?"Hide":"Show"),o.xp6(1),o.Q6J("ngIf",e.is_expanded)}}function Fr(e,t){1&e&&(o.TgZ(0,"p"),o._uU(1,"No active htlc available."),o.qZA())}function Lr(e,t){1&e&&(o.TgZ(0,"p"),o._uU(1,"Getting active htlcs..."),o.qZA())}function kr(e,t){if(1&e&&(o.TgZ(0,"p"),o._uU(1),o.qZA()),2&e){const e=o.oxw(2);o.xp6(1),o.Oqu(e.errorMessage)}}function Nr(e,t){if(1&e&&(o.TgZ(0,"td",49),o.YNc(1,Fr,2,0,"p",31),o.YNc(2,Lr,2,0,"p",31),o.YNc(3,kr,2,1,"p",31),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Q6J("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.FetchAllChannels.status)===e.apiCallStatusEnum.COMPLETED),o.xp6(1),o.Q6J("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.FetchAllChannels.status)===e.apiCallStatusEnum.INITIATED),o.xp6(1),o.Q6J("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.FetchAllChannels.status)===e.apiCallStatusEnum.ERROR)}}const Ur=function(e){return{"display-none":e}};function Ir(e,t){if(1&e&&o._UZ(0,"tr",50),2&e){const e=o.oxw();o.Q6J("ngClass",o.VKq(1,Ur,(null==e.channels?null:e.channels.data)&&(null==e.channels||null==e.channels.data?null:e.channels.data.length)>0))}}function Or(e,t){1&e&&o._UZ(0,"tr",51)}function Jr(e,t){1&e&&o._UZ(0,"tr",52)}const Dr=function(e){return{"overflow-auto error-border":e,"overflow-auto":!0}},Rr=function(){return["no_channel"]};let Mr=(()=>{class e{constructor(e,t,n){this.logger=e,this.commonService=t,this.store=n,this.channelsJSONArr=[],this.displayedColumns=[],this.htlcColumns=[],this.flgSticky=!1,this.pageSize=f.IV,this.pageSizeOptions=f.TJ,this.screenSize="",this.screenSizeEnum=f.cu,this.errorMessage="",this.apisCallStatus=null,this.apiCallStatusEnum=f.Bn,this.unSubs=[new p.x,new p.x,new p.x,new p.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===f.cu.XS?(this.flgSticky=!1,this.displayedColumns=["amount","actions"]):this.screenSize===f.cu.SM?(this.flgSticky=!1,this.displayedColumns=["amount","incoming","actions"]):this.screenSize===f.cu.MD?(this.flgSticky=!1,this.displayedColumns=["amount","incoming","expiration_height","actions"]):(this.flgSticky=!0,this.displayedColumns=["amount","incoming","expiration_height","hash_lock","actions"])}ngOnInit(){this.store.select("lnd").pipe((0,d.R)(this.unSubs[0])).subscribe(e=>{this.errorMessage="",this.apisCallStatus=e.apisCallStatus,e.apisCallStatus.FetchAllChannels.status===f.Bn.ERROR&&(this.errorMessage="object"==typeof this.apisCallStatus.FetchAllChannels.message?JSON.stringify(this.apisCallStatus.FetchAllChannels.message):this.apisCallStatus.FetchAllChannels.message),this.channelsJSONArr=e.allChannels&&e.allChannels.length>0?e.allChannels.filter(e=>e.pending_htlcs&&e.pending_htlcs.length>0):[],this.loadHTLCsTable(this.channelsJSONArr),this.logger.info(e)})}ngAfterViewInit(){this.loadHTLCsTable(this.channelsJSONArr)}onHTLCClick(e,t){this.store.dispatch(new ee.wu({data:{type:f.n_.INFORMATION,alertTitle:"HTLC Information",message:[[{key:"remote_alias",value:t.remote_alias,title:"Alias",width:100,type:f.Gi.STRING}],[{key:"amount",value:e.amount,title:"Amount (Sats)",width:50,type:f.Gi.NUMBER},{key:"incoming",value:e.incoming?"Yes":"No",title:"Incoming",width:50,type:f.Gi.STRING}],[{key:"expiration_height",value:e.expiration_height,title:"Expiration Height",width:50,type:f.Gi.NUMBER},{key:"hash_lock",value:e.hash_lock,title:"Hash Lock",width:50,type:f.Gi.STRING}]]}}))}onChannelClick(e,t){this.store.dispatch(new ee.wu({data:{channel:e,showCopy:!0,component:Si}}))}applyFilter(e){this.channels.filter=e.value.trim().toLowerCase()}loadHTLCsTable(e){this.channels=new Ze.by(e?[...e]:[]),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(e,t)=>{switch(t){case"amount":return this.commonService.sortByKey(e.pending_htlcs,t,"number",this.sort.direction),e.pending_htlcs&&e.pending_htlcs.length?e.pending_htlcs.length:null;case"incoming":return this.commonService.sortByKey(e.pending_htlcs,t,"boolean",this.sort.direction),e.remote_alias?e.remote_alias:e.remote_pubkey?e.remote_pubkey:null;case"expiration_height":case"hash_lock":return this.commonService.sortByKey(e.pending_htlcs,t,"number",this.sort.direction),e;default:return e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():e[t]?+e[t]:null}},this.channels.paginator=this.paginator,this.channels.filterPredicate=(e,t)=>((e.remote_alias?e.remote_alias.toLowerCase():"")+e.pending_htlcs.map(e=>JSON.stringify(e)+(e.incoming?"yes":"no"))).includes(t)}onDownloadCSV(){this.channels.data&&this.channels.data.length>0&&this.commonService.downloadFile(this.flattenHTLCs(),"ActiveHTLCs")}flattenHTLCs(){return JSON.parse(JSON.stringify(this.channels.data)).reduce((e,t)=>e.concat(t.pending_htlcs?t.pending_htlcs:t),[])}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(Z.mQ),o.Y36(C.v),o.Y36(y.yh))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-channel-active-htlcs-table"]],viewQuery:function(e,t){if(1&e&&(o.Gf(xe.YE,5),o.Gf(fe.NW,5)),2&e){let e;o.iGM(e=o.CRH())&&(t.sort=e.first),o.iGM(e=o.CRH())&&(t.paginator=e.first)}},features:[o._Bn([{provide:fe.ye,useValue:(0,f.pt)("HTLCs")}])],decls:30,vars:13,consts:[["fxLayout","column",1,"padding-gap"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"keyup"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","amount"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","incoming"],["matColumnDef","expiration_height"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","hash_lock"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","class","pl-3 htlc-row-span",4,"matHeaderCellDef"],["mat-cell","","class","pl-3",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","px-2",4,"matHeaderCellDef"],["mat-cell","","class","px-2",4,"matCellDef"],["matColumnDef","no_channel"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["fxLayoutAlign","start center",1,"htlc-row-span"],[4,"ngIf"],["fxLayoutAlign","start center","class","htlc-row-span pl-3",4,"ngFor","ngForOf"],["fxLayoutAlign","start center",1,"htlc-row-span","pl-3"],["fxLayoutAlign","start center","class","htlc-row-span",4,"ngFor","ngForOf"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center",1,"htlc-row-span"],["fxLayoutAlign","end center","class","htlc-row-span",4,"ngFor","ngForOf"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",1,"pl-3","htlc-row-span"],["mat-cell","",1,"pl-3"],["mat-header-cell","",1,"px-2"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","",1,"px-2"],["fxLayoutAlign","end center"],["mat-flat-button","","color","primary","type","button","tabindex","5",1,"btn-htlc-expand",3,"click"],["fxLayoutAlign","end center",4,"ngFor","ngForOf"],["mat-stroked-button","","color","primary","type","button","tabindex","6",1,"btn-htlc-info",3,"click"],["mat-footer-cell","","colspan","4"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,t){1&e&&(o.TgZ(0,"div",0),o.TgZ(1,"div",1),o._UZ(2,"div",2),o.TgZ(3,"mat-form-field",3),o.TgZ(4,"input",4),o.NdJ("keyup",function(e){return t.applyFilter(e.target)}),o.qZA(),o.qZA(),o.qZA(),o.TgZ(5,"div",5),o.YNc(6,rr,1,0,"mat-progress-bar",6),o.TgZ(7,"table",7,8),o.ynx(9,9),o.YNc(10,cr,2,0,"th",10),o.YNc(11,dr,4,2,"td",11),o.BQk(),o.ynx(12,12),o.YNc(13,hr,2,0,"th",10),o.YNc(14,fr,4,2,"td",11),o.BQk(),o.ynx(15,13),o.YNc(16,xr,3,0,"th",14),o.YNc(17,Ar,4,2,"td",11),o.BQk(),o.ynx(18,15),o.YNc(19,Cr,3,0,"th",16),o.YNc(20,wr,4,2,"td",17),o.BQk(),o.ynx(21,18),o.YNc(22,_r,6,0,"th",19),o.YNc(23,Sr,5,2,"td",20),o.BQk(),o.ynx(24,21),o.YNc(25,Nr,4,3,"td",22),o.BQk(),o.YNc(26,Ir,1,3,"tr",23),o.YNc(27,Or,1,0,"tr",24),o.YNc(28,Jr,1,0,"tr",25),o.qZA(),o.qZA(),o._UZ(29,"mat-paginator",26),o.qZA()),2&e&&(o.xp6(6),o.Q6J("ngIf",(null==t.apisCallStatus?null:t.apisCallStatus.FetchAllChannels.status)===t.apiCallStatusEnum.INITIATED),o.xp6(1),o.Q6J("dataSource",t.channels)("ngClass",o.VKq(10,Dr,""!==t.errorMessage)),o.xp6(19),o.Q6J("matFooterRowDef",o.DdM(12,Rr)),o.xp6(1),o.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),o.xp6(1),o.Q6J("matRowDefColumns",t.displayedColumns),o.xp6(1),o.Q6J("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS))},directives:[l.xw,l.Wh,l.yH,D.KE,Ce.Nt,E.$V,a.O5,Ze.BZ,xe.YE,a.mk,v.oO,Ze.w1,Ze.fO,Ze.Dz,Ze.mD,Ze.Ke,Ze.as,Ze.nj,fe.NW,r.pW,Ze.ge,xe.nU,Ze.ev,a.sg,we.gD,we.$L,ve.ey,q.lW,Ze.yh,Ze.Q2,Ze.XQ,Ze.Gk],pipes:[a.JJ],styles:[".mat-column-amount[_ngcontent-%COMP%], .mat-column-expiration_height[_ngcontent-%COMP%]{flex:0 0 30%;width:30%}.mat-column-hash_lock[_ngcontent-%COMP%], .mat-column-incoming[_ngcontent-%COMP%]{flex:0 0 25%;width:25%;text-overflow:ellipsis}.htlc-row-span[_ngcontent-%COMP%]{min-height:4.2rem}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-actions[_ngcontent-%COMP%] .btn-htlc-expand[_ngcontent-%COMP%]{width:9rem}.mat-column-actions[_ngcontent-%COMP%] .btn-htlc-info[_ngcontent-%COMP%]{margin-top:.5rem;width:9rem}"]}),e})();function Er(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Wallet password is required."),o.qZA())}let Qr=(()=>{class e{constructor(e){this.store=e,this.walletPassword=""}ngOnInit(){this.walletPassword=""}onUnlockWallet(){if(!this.walletPassword)return!0;this.store.dispatch(new x.l8({pwd:window.btoa(this.walletPassword)}))}resetData(){this.walletPassword=""}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(y.yh))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-unlock-wallet"]],decls:12,vars:2,consts:[["fxLayout","column",1,"padding-gap","mb-2"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between"],["fxFlex","100","fxLayoutAlign","start"],["autoFocus","","matInput","","type","password","placeholder","Password","name","walletPassword","tabindex","1","required","",3,"ngModel","ngModelChange"],[4,"ngIf"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","2","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","3",3,"click"]],template:function(e,t){1&e&&(o.TgZ(0,"div",0),o.TgZ(1,"form",1),o.TgZ(2,"mat-form-field",2),o.TgZ(3,"input",3),o.NdJ("ngModelChange",function(e){return t.walletPassword=e}),o.qZA(),o.TgZ(4,"mat-hint"),o._uU(5,"Enter Wallet Password"),o.qZA(),o.YNc(6,Er,2,0,"mat-error",4),o.qZA(),o.TgZ(7,"div",5),o.TgZ(8,"button",6),o.NdJ("click",function(){return t.resetData()}),o._uU(9,"Clear Field"),o.qZA(),o.TgZ(10,"button",7),o.NdJ("click",function(){return t.onUnlockWallet()}),o._uU(11,"Unlock Wallet"),o.qZA(),o.qZA(),o.qZA(),o.qZA()),2&e&&(o.xp6(3),o.Q6J("ngModel",t.walletPassword),o.xp6(3),o.Q6J("ngIf",!t.walletPassword))},directives:[l.xw,Ae._Y,Ae.JL,Ae.F,l.Wh,D.KE,l.yH,Ce.Nt,Ae.Fj,Te.h,Ae.Q7,Ae.JJ,Ae.On,D.bx,a.O5,q.lW,D.TO],styles:[""]}),e})();var Yr=n(8544);function Pr(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"div"),o.TgZ(1,"form",4),o.TgZ(2,"div",5),o._uU(3,"Warning: Your connection is unsecure, it's not safe to generate private keys over this connection.Are you sure you want to proceed?"),o.qZA(),o.TgZ(4,"div",6),o.TgZ(5,"button",7),o.NdJ("click",function(){o.CHM(e);const t=o.oxw();return t.proceed=!1,t.warnRes=!0}),o._uU(6,"Do Not Proceed"),o.qZA(),o.TgZ(7,"button",8),o.NdJ("click",function(){o.CHM(e);const t=o.oxw();return t.proceed=!0,t.warnRes=!0}),o._uU(8,"Proceed"),o.qZA(),o.qZA(),o.qZA(),o.qZA()}}function Br(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"div",9),o.TgZ(1,"div",10),o._uU(2,"Please re-configure & re-start RTL after securing your LND connction. You can close this window now."),o.qZA(),o.TgZ(3,"div",6),o.TgZ(4,"button",11),o.NdJ("click",function(){return o.CHM(e),o.oxw().warnRes=!1}),o._uU(5,"Go Back"),o.qZA(),o.qZA(),o.qZA()}}function Gr(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Password is required."),o.qZA())}function Hr(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Password must be at least 8 characters in length."),o.qZA())}function zr(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Confirm password is required."),o.qZA())}function Vr(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Confirm password must be at least 8 characters in length."),o.qZA())}function Wr(e,t){1&e&&(o.TgZ(0,"div",41),o.TgZ(1,"mat-icon",42),o._uU(2,"cancel"),o.qZA(),o._uU(3,"Passwords do not match. "),o.qZA())}function Xr(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Cipher seed is required."),o.qZA())}function $r(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Invalid Cipher. Enter comma separated 24 words cipher seed."),o.qZA())}function jr(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Passphrase is required."),o.qZA())}function Kr(e,t){1&e&&(o.TgZ(0,"mat-icon"),o._uU(1,"vpn_key"),o.qZA())}function ec(e,t){1&e&&(o.TgZ(0,"mat-icon"),o._uU(1,"swap_calls"),o.qZA())}function tc(e,t){1&e&&(o.TgZ(0,"mat-icon"),o._uU(1,"fingerprint"),o.qZA())}function nc(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"mat-vertical-stepper",12,13),o.TgZ(2,"mat-step",14),o.TgZ(3,"form",15),o.TgZ(4,"mat-form-field",16),o._UZ(5,"input",17),o.TgZ(6,"mat-hint"),o._uU(7,"Enter Wallet Password"),o.qZA(),o.YNc(8,Gr,2,0,"mat-error",1),o.YNc(9,Hr,2,0,"mat-error",1),o.qZA(),o.TgZ(10,"mat-form-field",16),o._UZ(11,"input",18),o.TgZ(12,"mat-hint"),o._uU(13,"Confirm Wallet Password"),o.qZA(),o.YNc(14,zr,2,0,"mat-error",1),o.YNc(15,Vr,2,0,"mat-error",1),o.qZA(),o.YNc(16,Wr,4,0,"div",19),o.TgZ(17,"div",20),o.TgZ(18,"button",21),o._uU(19,"Next"),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.TgZ(20,"mat-step",22),o.TgZ(21,"form",23),o.TgZ(22,"div",24),o.TgZ(23,"mat-slide-toggle",25),o._uU(24,"Existing Cipher"),o.qZA(),o.TgZ(25,"mat-form-field",26),o._UZ(26,"input",27),o.TgZ(27,"mat-hint"),o._uU(28,"Cipher Seed"),o.qZA(),o.YNc(29,Xr,2,0,"mat-error",1),o.YNc(30,$r,2,0,"mat-error",1),o.qZA(),o.qZA(),o.TgZ(31,"div",28),o.TgZ(32,"button",29),o._uU(33,"Back"),o.qZA(),o.TgZ(34,"button",30),o._uU(35,"Next"),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.TgZ(36,"mat-step",31),o.TgZ(37,"form",23),o.TgZ(38,"div",24),o.TgZ(39,"mat-slide-toggle",32),o._uU(40,"Existing Passphrase"),o.qZA(),o.TgZ(41,"mat-form-field",33),o._UZ(42,"input",34),o.TgZ(43,"mat-hint"),o._uU(44,"Enter Passphrase"),o.qZA(),o.YNc(45,jr,2,0,"mat-error",1),o.qZA(),o.qZA(),o.TgZ(46,"div",28),o.TgZ(47,"button",35),o.NdJ("click",function(){return o.CHM(e),o.oxw().resetData()}),o._uU(48,"Clear"),o.qZA(),o.TgZ(49,"button",36),o._uU(50,"Back"),o.qZA(),o.TgZ(51,"button",37),o.NdJ("click",function(){return o.CHM(e),o.oxw().onInitWallet()}),o._uU(52,"Initialize Wallet"),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.YNc(53,Kr,2,0,"ng-template",38),o.YNc(54,ec,2,0,"ng-template",39),o.YNc(55,tc,2,0,"ng-template",40),o.qZA()}if(2&e){const e=o.oxw();o.Q6J("linear",!0),o.xp6(2),o.Q6J("stepControl",e.passwordFormGroup),o.xp6(1),o.Q6J("formGroup",e.passwordFormGroup),o.xp6(5),o.Q6J("ngIf",null==e.passwordFormGroup.controls.initWalletPassword.errors?null:e.passwordFormGroup.controls.initWalletPassword.errors.required),o.xp6(1),o.Q6J("ngIf",null==e.passwordFormGroup.controls.initWalletPassword.errors?null:e.passwordFormGroup.controls.initWalletPassword.errors.minlength),o.xp6(5),o.Q6J("ngIf",null==e.passwordFormGroup.controls.initWalletConfirmPassword.errors?null:e.passwordFormGroup.controls.initWalletConfirmPassword.errors.required),o.xp6(1),o.Q6J("ngIf",null==e.passwordFormGroup.controls.initWalletConfirmPassword.errors?null:e.passwordFormGroup.controls.initWalletConfirmPassword.errors.minlength),o.xp6(1),o.Q6J("ngIf",(null==e.passwordFormGroup.errors?null:e.passwordFormGroup.errors.unmatchedPasswords)&&(e.passwordFormGroup.controls.initWalletPassword.touched||e.passwordFormGroup.controls.initWalletPassword.dirty)&&(e.passwordFormGroup.controls.initWalletConfirmPassword.touched||e.passwordFormGroup.controls.initWalletConfirmPassword.dirty)),o.xp6(4),o.Q6J("stepControl",e.cipherFormGroup),o.xp6(1),o.Q6J("formGroup",e.cipherFormGroup),o.xp6(2),o.Q6J("labelPosition","before"),o.xp6(6),o.Q6J("ngIf",null==e.cipherFormGroup.controls.cipherSeed.errors?null:e.cipherFormGroup.controls.cipherSeed.errors.required),o.xp6(1),o.Q6J("ngIf",!(null!=e.cipherFormGroup.controls.cipherSeed.errors&&e.cipherFormGroup.controls.cipherSeed.errors.required)&&(null==e.cipherFormGroup.controls.cipherSeed.errors?null:e.cipherFormGroup.controls.cipherSeed.errors.invalidCipher)),o.xp6(6),o.Q6J("stepControl",e.passphraseFormGroup),o.xp6(1),o.Q6J("formGroup",e.passphraseFormGroup),o.xp6(2),o.Q6J("labelPosition","before"),o.xp6(6),o.Q6J("ngIf",null==e.passphraseFormGroup.controls.passphrase.errors?null:e.passphraseFormGroup.controls.passphrase.errors.required)}}function ac(e,t){if(1&e&&(o.TgZ(0,"span",48),o._uU(1),o.qZA()),2&e){const e=t.$implicit;o.xp6(1),o.Oqu(e)}}function ic(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"div"),o.TgZ(1,"form",4),o.TgZ(2,"div",43),o._uU(3,"YOU MUST WRITE DOWN THIS SEED TO BE ABLE TO RESTORE THE WALLET!"),o.qZA(),o.TgZ(4,"div",44),o.YNc(5,ac,2,1,"span",45),o.qZA(),o.TgZ(6,"div",46),o._uU(7,"Wallet initialization is done."),o.qZA(),o.TgZ(8,"div",46),o._uU(9,"The node will be usable only after LND has synced completely with the network."),o.qZA(),o.TgZ(10,"div",46),o._uU(11,"Click continue only after writing down the seed."),o.qZA(),o.TgZ(12,"div",6),o.TgZ(13,"button",47),o.NdJ("click",function(){return o.CHM(e),o.oxw().onGoToHome()}),o._uU(14,"Go To Home"),o.qZA(),o.qZA(),o.qZA(),o.qZA()}if(2&e){const e=o.oxw();o.xp6(5),o.Q6J("ngForOf",e.genSeedResponse)}}function sc(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"div"),o.TgZ(1,"form",4),o.TgZ(2,"div",46),o._uU(3,"Something went wrong! Unable to initialize wallet!"),o.qZA(),o.TgZ(4,"div",6),o.TgZ(5,"button",49),o.NdJ("click",function(){return o.CHM(e),o.oxw().resetData()}),o._uU(6,"Restart"),o.qZA(),o.qZA(),o.qZA(),o.qZA()}}function oc(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"div"),o.TgZ(1,"form",4),o.TgZ(2,"div",46),o._uU(3,"Wallet recovery is done."),o.qZA(),o.TgZ(4,"div",46),o._uU(5,"The node will be usable only after LND has synced completely with the network."),o.qZA(),o.TgZ(6,"div",6),o.TgZ(7,"button",50),o.NdJ("click",function(){return o.CHM(e),o.oxw().onGoToHome()}),o._uU(8,"Go To Home"),o.qZA(),o.qZA(),o.qZA(),o.qZA()}}const lc=e=>{const t=e.get("initWalletPassword"),n=e.get("initWalletConfirmPassword");return t&&n&&t.value!==n.value?{unmatchedPasswords:!0}:null},rc=e=>{const t=e.value?e.value.toString().trim().split(","):[];return t&&24!==t.length?{invalidCipher:!0}:null};let cc=(()=>{class e{constructor(e,t,n){this.store=e,this.formBuilder=t,this.lndEffects=n,this.insecureLND=!1,this.genSeedResponse=[],this.initWalletResponse="",this.proceed=!0,this.warnRes=!1,this.unsubs=[new p.x,new p.x,new p.x,new p.x,new p.x]}ngOnInit(){this.passwordFormGroup=this.formBuilder.group({initWalletPassword:["",[Ae.kI.required,Ae.kI.minLength(8)]],initWalletConfirmPassword:["",[Ae.kI.required,Ae.kI.minLength(8)]]},{validators:lc}),this.cipherFormGroup=this.formBuilder.group({existingCipher:[!1],cipherSeed:[{value:"",disabled:!0},[rc]]}),this.passphraseFormGroup=this.formBuilder.group({enterPassphrase:[!1],passphrase:[{value:"",disabled:!0}]}),this.cipherFormGroup.controls.existingCipher.valueChanges.pipe((0,d.R)(this.unsubs[0])).subscribe(e=>{e?(this.cipherFormGroup.controls.cipherSeed.setValue(""),this.cipherFormGroup.controls.cipherSeed.enable()):(this.cipherFormGroup.controls.cipherSeed.setValue(""),this.cipherFormGroup.controls.cipherSeed.disable())}),this.passphraseFormGroup.controls.enterPassphrase.valueChanges.pipe((0,d.R)(this.unsubs[1])).subscribe(e=>{e?(this.passphraseFormGroup.controls.passphrase.setValue(""),this.passphraseFormGroup.controls.passphrase.enable()):(this.passphraseFormGroup.controls.passphrase.setValue(""),this.passphraseFormGroup.controls.passphrase.disable())}),this.insecureLND=!window.location.protocol.includes("https:"),this.lndEffects.initWalletRes.pipe((0,d.R)(this.unsubs[2])).subscribe(e=>{this.initWalletResponse=e}),this.lndEffects.genSeedResponse.pipe((0,d.R)(this.unsubs[3])).subscribe(e=>{this.genSeedResponse=e,this.store.dispatch(new x.My(this.passphraseFormGroup.controls.enterPassphrase.value?{pwd:window.btoa(this.passwordFormGroup.controls.initWalletPassword.value),cipher:this.genSeedResponse,passphrase:window.btoa(this.passphraseFormGroup.controls.passphrase.value)}:{pwd:window.btoa(this.passwordFormGroup.controls.initWalletPassword.value),cipher:this.genSeedResponse}))})}onInitWallet(){if(this.passwordFormGroup.invalid||this.cipherFormGroup.invalid||this.passphraseFormGroup.invalid)return!0;if(this.cipherFormGroup.controls.existingCipher.value){const e=this.cipherFormGroup.controls.cipherSeed.value.toString().trim().split(",");this.store.dispatch(new x.My(this.passphraseFormGroup.controls.enterPassphrase.value?{pwd:window.btoa(this.passwordFormGroup.controls.initWalletPassword.value),cipher:e,passphrase:window.btoa(this.passphraseFormGroup.controls.passphrase.value)}:{pwd:window.btoa(this.passwordFormGroup.controls.initWalletPassword.value),cipher:e}))}else this.store.dispatch(new x.$b(this.passphraseFormGroup.controls.enterPassphrase.value?window.btoa(this.passphraseFormGroup.controls.passphrase.value):""))}onGoToHome(){setTimeout(()=>{this.store.dispatch(new ee.uQ),this.store.dispatch(new x.z6({loadPage:"HOME"}))},1e3)}resetData(){this.genSeedResponse=[],this.initWalletResponse=""}ngOnDestroy(){this.unsubs.forEach(e=>{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(y.yh),o.Y36(Ae.qu),o.Y36(Ft.l))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-initialize-wallet"]],viewQuery:function(e,t){if(1&e&&o.Gf(La.Vq,5),2&e){let e;o.iGM(e=o.CRH())&&(t.stepper=e.first)}},features:[o._Bn([{provide:Yr.gx,useValue:{displayDefaultIndicatorType:!1}}])],decls:7,vars:6,consts:[["fxLayout","column",1,"padding-gap","mb-4"],[4,"ngIf"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","stretch stretch",4,"ngIf"],[3,"linear",4,"ngIf"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"mt-2"],["fxFlex","100","fxLayoutAlign","start"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","1","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","2",3,"click"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","stretch stretch"],["fxFlex","100",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","3","type","reset",3,"click"],[3,"linear"],["stepper",""],["label","Wallet Password","state","password",3,"stepControl"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"mt-1",3,"formGroup"],["fxFlex","49","fxLayoutAlign","start"],["matInput","","type","password","placeholder","Password","name","initWalletPassword","formControlName","initWalletPassword","tabindex","5","required",""],["matInput","","type","password","placeholder","Confirm Password","name","initWalletConfirmPassword","formControlName","initWalletConfirmPassword","tabindex","6","required",""],["class","validation-error-message",4,"ngIf"],["fxLayout","row",1,"my-2"],["mat-flat-button","","color","primary","tabindex","7","type","submit","matStepperNext",""],["label","Cipher","state","cipher",3,"stepControl"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start stretch","fxLayoutAlign.gt-sm","space-between start",1,"mt-1",3,"formGroup"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch"],["fxFlex","20","tabindex","8","color","primary","formControlName","existingCipher","name","existingCipher",1,"chkbox-wallet",3,"labelPosition"],["fxFlex","75","fxLayoutAlign","start",1,"my-1"],["autofocus","","matInput","","type","input","placeholder","Comma separated array of 24 words cipher seed","name","cipherSeed","formControlName","cipherSeed","tabindex","9","required",""],["fxLayout","row",1,"mb-2"],["mat-stroked-button","","color","primary","type","reset","tabindex","10","matStepperPrevious","",1,"mr-1","mt-1"],["mat-flat-button","","color","primary","tabindex","11","type","submit","matStepperNext","",1,"mt-1"],["label","Passphrase","state","passphrase",3,"stepControl"],["fxFlex","20","tabindex","10","color","primary","formControlName","enterPassphrase","name","enterPassphrase",1,"chkbox-wallet",3,"labelPosition"],["fxFlex","75","fxLayoutAlign","start"],["matInput","","type","password","placeholder","Passphrase","name","passphrase","formControlName","passphrase","tabindex","12","required",""],["mat-stroked-button","","color","warn","tabindex","13","type","reset",1,"mr-1","mt-1",3,"click"],["mat-stroked-button","","tabindex","14","color","primary","type","button","matStepperPrevious","",1,"mr-1","mt-1"],["mat-flat-button","","color","primary","tabindex","15","type","submit",1,"mt-1",3,"click"],["matStepperIcon","password"],["matStepperIcon","cipher"],["matStepperIcon","passphrase"],[1,"validation-error-message"],[1,"validation-error-icon","red"],["fxFlex","100","fxLayoutAlign","start",1,"blinker"],["fxFlex","40","fxLayout","row wrap",1,"mt-2"],["fxFlex","25","fxLayoutAlign","start","class","genseed-message",4,"ngFor","ngForOf"],["fxFlex","100","fxLayoutAlign","start",1,"mt-2"],["mat-flat-button","","color","primary","type","submit","tabindex","16",3,"click"],["fxFlex","25","fxLayoutAlign","start",1,"genseed-message"],["mat-stroked-button","","color","primary","tabindex","17","type","reset",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","18",3,"click"]],template:function(e,t){1&e&&(o.TgZ(0,"div",0),o.YNc(1,Pr,9,0,"div",1),o.YNc(2,Br,6,0,"div",2),o.YNc(3,nc,56,17,"mat-vertical-stepper",3),o.YNc(4,ic,15,1,"div",1),o.YNc(5,sc,7,0,"div",1),o.YNc(6,oc,9,0,"div",1),o.qZA()),2&e&&(o.xp6(1),o.Q6J("ngIf",t.insecureLND&&!t.warnRes),o.xp6(1),o.Q6J("ngIf",t.warnRes&&!t.proceed),o.xp6(1),o.Q6J("ngIf",(!t.insecureLND||t.warnRes&&t.proceed)&&t.genSeedResponse.length<=0&&""===t.initWalletResponse),o.xp6(1),o.Q6J("ngIf",t.genSeedResponse.length>0&&""!==t.initWalletResponse),o.xp6(1),o.Q6J("ngIf",t.genSeedResponse.length>0&&""===t.initWalletResponse),o.xp6(1),o.Q6J("ngIf",t.genSeedResponse.length<=0&&""!==t.initWalletResponse))},directives:[l.xw,a.O5,Ae._Y,Ae.JL,Ae.F,l.Wh,l.yH,q.lW,La.Vq,La.C0,Ae.sg,D.KE,Ce.Nt,Ae.Fj,Ae.JJ,Ae.u,Ae.Q7,D.bx,La.Ic,_e.Rr,La.fd,La.z9,D.TO,S.Hw,a.sg],styles:[""]}),e})(),uc=(()=>{class e{constructor(){this.faWallet=g.X5K}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-wallet"]],decls:12,vars:1,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["label","Unlock"],["label","Initialize"]],template:function(e,t){1&e&&(o.TgZ(0,"div",0),o._UZ(1,"fa-icon",1),o.TgZ(2,"span",2),o._uU(3,"Wallet"),o.qZA(),o.qZA(),o.TgZ(4,"div",3),o.TgZ(5,"mat-card"),o.TgZ(6,"mat-card-content",4),o.TgZ(7,"mat-tab-group"),o.TgZ(8,"mat-tab",5),o._UZ(9,"rtl-unlock-wallet"),o.qZA(),o.TgZ(10,"mat-tab",6),o._UZ(11,"rtl-initialize-wallet"),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA()),2&e&&(o.xp6(1),o.Q6J("icon",t.faWallet))},directives:[l.xw,l.Wh,T.BN,w.a8,w.dn,ge.SP,ge.uX,Qr,cc],styles:[""]}),e})();function pc(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"div",11),o.NdJ("click",function(){const t=o.CHM(e).$implicit;return o.oxw().activeLink=t.link}),o._uU(1),o.qZA()}if(2&e){const e=t.$implicit,n=o.oxw();o.s9C("routerLink",e.link),o.Q6J("active",n.activeLink===e.link),o.xp6(1),o.Oqu(e.name)}}let dc=(()=>{class e{constructor(e,t,n){this.logger=e,this.store=t,this.router=n,this.faExchangeAlt=g.Ssp,this.faChartPie=g.OS1,this.currencyUnits=[],this.balances=[{title:"Local Capacity",dataValue:0,tooltip:"Amount you can send"},{title:"Remote Capacity",dataValue:0,tooltip:"Amount you can receive"}],this.links=[{link:"payments",name:"Payments"},{link:"invoices",name:"Invoices"},{link:"queryroutes",name:"Query Routes"}],this.activeLink=this.links[0].link,this.unSubs=[new p.x,new p.x,new p.x,new p.x]}ngOnInit(){const e=this.links.find(e=>this.router.url.includes(e.link));this.activeLink=e?e.link:this.links[0].link,this.router.events.pipe((0,d.R)(this.unSubs[0]),(0,h.h)(e=>e instanceof i.Av)).subscribe(e=>{const t=this.links.find(t=>e.urlAfterRedirects.includes(t.link));this.activeLink=t?t.link:this.links[0].link}),this.store.select("lnd").pipe((0,d.R)(this.unSubs[1])).subscribe(e=>{this.currencyUnits=e.nodeSettings.currencyUnits,this.balances=e.nodeSettings.userPersona===f.ol.OPERATOR?[{title:"Local Capacity",dataValue:e.totalLocalBalance,tooltip:"Amount you can send"},{title:"Remote Capacity",dataValue:e.totalRemoteBalance,tooltip:"Amount you can receive"}]:[{title:"Outbound Capacity",dataValue:e.totalLocalBalance,tooltip:"Amount you can send"},{title:"Inbound Capacity",dataValue:e.totalRemoteBalance,tooltip:"Amount you can receive"}],this.logger.info(e)})}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(Z.mQ),o.Y36(y.yh),o.Y36(i.F0))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-transactions"]],decls:19,vars:4,consts:[["fxLayout","row wrap","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x","mb-4"],["fxLayout","column"],[3,"values"],["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],["fxLayout","column",1,"padding-gap-x"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(e,t){1&e&&(o.TgZ(0,"div",0),o._UZ(1,"fa-icon",1),o.TgZ(2,"span",2),o._uU(3,"Lightning Balance"),o.qZA(),o.qZA(),o.TgZ(4,"div",3),o.TgZ(5,"mat-card"),o.TgZ(6,"mat-card-content",4),o._UZ(7,"rtl-currency-unit-converter",5),o.qZA(),o.qZA(),o.qZA(),o.TgZ(8,"div",6),o._UZ(9,"fa-icon",1),o.TgZ(10,"span",2),o._uU(11,"Lightning Transactions"),o.qZA(),o.qZA(),o.TgZ(12,"div",7),o.TgZ(13,"mat-card"),o.TgZ(14,"mat-card-content",4),o.TgZ(15,"nav",8),o.YNc(16,pc,2,3,"div",9),o.qZA(),o.TgZ(17,"div",10),o._UZ(18,"router-outlet"),o.qZA(),o.qZA(),o.qZA(),o.qZA()),2&e&&(o.xp6(1),o.Q6J("icon",t.faChartPie),o.xp6(6),o.Q6J("values",t.balances),o.xp6(2),o.Q6J("icon",t.faExchangeAlt),o.xp6(7),o.Q6J("ngForOf",t.links))},directives:[l.xw,l.Wh,T.BN,w.a8,w.dn,la.D,ge.BU,a.sg,l.yH,i.lC,ge.Nj,i.rH],styles:[""]}),e})();function hc(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Destination pubkey is required."),o.qZA())}function mc(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Amount is required."),o.qZA())}function gc(e,t){1&e&&o._UZ(0,"mat-progress-bar",37)}function fc(e,t){1&e&&(o.TgZ(0,"th",38),o._uU(1," Hop "),o.qZA())}function xc(e,t){if(1&e&&(o.TgZ(0,"td",39),o._uU(1),o.qZA()),2&e){const e=t.$implicit;o.xp6(1),o.hij(" ",null==e?null:e.hop_sequence," ")}}function Zc(e,t){1&e&&(o.TgZ(0,"th",38),o._uU(1," Peer "),o.qZA())}const yc=function(e){return{"max-width":e}};function Ac(e,t){if(1&e&&(o.TgZ(0,"td",40),o._uU(1),o.qZA()),2&e){const e=t.$implicit,n=o.oxw();o.Q6J("ngStyle",o.VKq(2,yc,n.screenSize===n.screenSizeEnum.XS?"10rem":"28rem")),o.xp6(1),o.hij(" ",null==e?null:e.pubkey_alias," ")}}function Cc(e,t){1&e&&(o.TgZ(0,"th",38),o._uU(1," Channel "),o.qZA())}function Tc(e,t){if(1&e&&(o.TgZ(0,"td",39),o._uU(1),o.qZA()),2&e){const e=t.$implicit;o.xp6(1),o.hij(" ",null==e?null:e.chan_id," ")}}function bc(e,t){1&e&&(o.TgZ(0,"th",41),o._uU(1," Capacity (Sats) "),o.qZA())}function wc(e,t){if(1&e&&(o.TgZ(0,"td",39),o.TgZ(1,"span",42),o._uU(2),o.ALo(3,"number"),o.qZA(),o.qZA()),2&e){const e=t.$implicit;o.xp6(2),o.hij(" ",o.lcZ(3,1,null==e?null:e.chan_capacity),"")}}function _c(e,t){1&e&&(o.TgZ(0,"th",41),o._uU(1," Amount To Fwd (Sats) "),o.qZA())}function vc(e,t){if(1&e&&(o.TgZ(0,"td",39),o.TgZ(1,"span",42),o._uU(2),o.ALo(3,"number"),o.qZA(),o.qZA()),2&e){const e=t.$implicit;o.xp6(2),o.hij(" ",o.lcZ(3,1,null==e?null:e.amt_to_forward)," ")}}function qc(e,t){1&e&&(o.TgZ(0,"th",41),o._uU(1," Fee (mSats) "),o.qZA())}function Sc(e,t){if(1&e&&(o.TgZ(0,"td",39),o.TgZ(1,"span",42),o._uU(2),o.ALo(3,"number"),o.qZA(),o.qZA()),2&e){const e=t.$implicit;o.xp6(2),o.hij(" ",o.lcZ(3,1,null==e?null:e.fee_msat)," ")}}function Fc(e,t){1&e&&(o.TgZ(0,"th",43),o.TgZ(1,"span",42),o._uU(2,"Actions"),o.qZA(),o.qZA())}function Lc(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"td",44),o.TgZ(1,"button",45),o.NdJ("click",function(t){const n=o.CHM(e).$implicit;return o.oxw().onHopClick(n,t)}),o._uU(2,"View Info"),o.qZA(),o.qZA()}}function kc(e,t){1&e&&o._UZ(0,"tr",46)}function Nc(e,t){1&e&&o._UZ(0,"tr",47)}const Uc=function(e){return{"overflow-auto error-border":e,"overflow-auto":!0}};let Ic=(()=>{class e{constructor(e,t,n){this.store=e,this.lndEffects=t,this.commonService=n,this.destinationPubkey="",this.amount=null,this.flgSticky=!1,this.displayedColumns=[],this.flgLoading=[!1],this.faRoute=g.FpQ,this.faExclamationTriangle=g.eHv,this.screenSize="",this.screenSizeEnum=f.cu,this.unSubs=[new p.x,new p.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===f.cu.XS?(this.flgSticky=!1,this.displayedColumns=["pubkey_alias","actions"]):this.screenSize===f.cu.SM?(this.flgSticky=!1,this.displayedColumns=["hop_sequence","pubkey_alias","fee_msat","actions"]):this.screenSize===f.cu.MD?(this.flgSticky=!1,this.displayedColumns=["hop_sequence","pubkey_alias","chan_capacity","amt_to_forward_msat","fee_msat","actions"]):(this.flgSticky=!0,this.displayedColumns=["hop_sequence","pubkey_alias","chan_capacity","amt_to_forward_msat","fee_msat","actions"])}ngOnInit(){this.lndEffects.setQueryRoutes.pipe((0,d.R)(this.unSubs[1])).subscribe(e=>{this.qrHops=new Ze.by([]),e.routes&&e.routes[0].hops?(this.flgLoading[0]=!1,this.qrHops=new Ze.by([...e.routes[0].hops]),this.qrHops.data=e.routes[0].hops):this.flgLoading[0]="error",this.qrHops.sort=this.sort,this.qrHops.sortingDataAccessor=(e,t)=>e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():e[t]?+e[t]:null})}onQueryRoutes(){if(!this.destinationPubkey||!this.amount)return!0;this.qrHops=new Ze.by([]),this.flgLoading[0]=!0,this.store.dispatch(new x.bm({destPubkey:this.destinationPubkey,amount:this.amount}))}resetData(){this.destinationPubkey="",this.amount=null,this.flgLoading[0]=!1}onHopClick(e,t){this.store.dispatch(new ee.wu({data:{type:f.n_.INFORMATION,alertTitle:"Route Information",message:[[{key:"hop_sequence",value:e.hop_sequence,title:"Sequence",width:30,type:f.Gi.NUMBER},{key:"amt_to_forward",value:e.amt_to_forward,title:"Amount To Forward (Sats)",width:30,type:f.Gi.NUMBER},{key:"fee_msat",value:e.fee_msat,title:"Fee (mSats)",width:40,type:f.Gi.NUMBER}],[{key:"pubkey_alias",value:e.pubkey_alias,title:"Peer Alias",width:30,type:f.Gi.STRING},{key:"pub_key",value:e.pub_key,title:"Peer Pubkey",width:70,type:f.Gi.STRING}],[{key:"expiry",value:e.expiry,title:"Expiry",width:30,type:f.Gi.NUMBER},{key:"chan_id",value:e.chan_id,title:"Channel ID",width:30,type:f.Gi.STRING},{key:"chan_capacity",value:e.chan_capacity,title:"Channel Capacity",width:40,type:f.Gi.NUMBER}]]}}))}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(y.yh),o.Y36(Ft.l),o.Y36(C.v))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-query-routes"]],viewQuery:function(e,t){if(1&e&&o.Gf(xe.YE,5),2&e){let e;o.iGM(e=o.CRH())&&(t.sort=e.first)}},decls:51,vars:16,consts:[["fxLayout","column","fxFlex","100",1,"padding-gap"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap",3,"ngSubmit"],["queryRoutesForm","ngForm"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["fxFlex","69","fxLayoutAlign","start end"],["matInput","","placeholder","Destination Pubkey","name","destinationPubkey","tabindex","1","required","",3,"ngModel","ngModelChange"],["destPubkey","ngModel"],[4,"ngIf"],["fxFlex","29","fxLayoutAlign","start end"],["matInput","","placeholder","Amount (Sats)","name","amount","tabindex","2","type","number","required","",3,"ngModel","step","min","ngModelChange"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","3","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","4"],["fxLayout","column","fxLayoutAlign","start stretch","fxLayout.gt-sm","row wrap",1,"page-sub-title-container","mt-3","mb-1"],["fxFlex","70","fxLayoutAlign","start center"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],[1,"table-container","mb-6",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","hop_sequence"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","pubkey_alias"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","chan_id"],["matColumnDef","chan_capacity"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","amt_to_forward_msat"],["matColumnDef","fee_msat"],["matColumnDef","actions"],["mat-header-cell","","class","pl-4 pr-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-4",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-cell","",3,"ngStyle"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"pl-4","pr-3"],["mat-cell","",1,"pl-4"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-header-row",""],["mat-row",""]],template:function(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"div",0),o.TgZ(1,"form",1,2),o.NdJ("ngSubmit",function(){return o.CHM(e),o.MAs(2).form.valid&&t.onQueryRoutes()}),o.TgZ(3,"div",3),o._UZ(4,"fa-icon",4),o.TgZ(5,"span"),o._uU(6,"The actual routing fee on a payment can be different from the fee shown on query routes."),o.qZA(),o.qZA(),o.TgZ(7,"mat-form-field",5),o.TgZ(8,"input",6,7),o.NdJ("ngModelChange",function(e){return t.destinationPubkey=e}),o.qZA(),o.YNc(10,hc,2,0,"mat-error",8),o.qZA(),o.TgZ(11,"mat-form-field",9),o.TgZ(12,"input",10),o.NdJ("ngModelChange",function(e){return t.amount=e}),o.qZA(),o.YNc(13,mc,2,0,"mat-error",8),o.qZA(),o.TgZ(14,"div",11),o.TgZ(15,"button",12),o.NdJ("click",function(){return t.resetData()}),o._uU(16,"Clear"),o.qZA(),o.TgZ(17,"button",13),o._uU(18,"Query Route"),o.qZA(),o.qZA(),o.qZA(),o.TgZ(19,"div",14),o.TgZ(20,"div",15),o._UZ(21,"fa-icon",16),o.TgZ(22,"span",17),o._uU(23,"Transaction Route"),o.qZA(),o.qZA(),o.qZA(),o.TgZ(24,"div",18),o.YNc(25,gc,1,0,"mat-progress-bar",19),o.TgZ(26,"table",20,21),o.ynx(28,22),o.YNc(29,fc,2,0,"th",23),o.YNc(30,xc,2,1,"td",24),o.BQk(),o.ynx(31,25),o.YNc(32,Zc,2,0,"th",23),o.YNc(33,Ac,2,4,"td",26),o.BQk(),o.ynx(34,27),o.YNc(35,Cc,2,0,"th",23),o.YNc(36,Tc,2,1,"td",24),o.BQk(),o.ynx(37,28),o.YNc(38,bc,2,0,"th",29),o.YNc(39,wc,4,3,"td",24),o.BQk(),o.ynx(40,30),o.YNc(41,_c,2,0,"th",29),o.YNc(42,vc,4,3,"td",24),o.BQk(),o.ynx(43,31),o.YNc(44,qc,2,0,"th",29),o.YNc(45,Sc,4,3,"td",24),o.BQk(),o.ynx(46,32),o.YNc(47,Fc,3,0,"th",33),o.YNc(48,Lc,3,0,"td",34),o.BQk(),o.YNc(49,kc,1,0,"tr",35),o.YNc(50,Nc,1,0,"tr",36),o.qZA(),o.qZA(),o.qZA()}2&e&&(o.xp6(4),o.Q6J("icon",t.faExclamationTriangle),o.xp6(4),o.Q6J("ngModel",t.destinationPubkey),o.xp6(2),o.Q6J("ngIf",!t.destinationPubkey),o.xp6(2),o.Q6J("ngModel",t.amount)("step",1e3)("min",0),o.xp6(1),o.Q6J("ngIf",!t.amount),o.xp6(8),o.Q6J("icon",t.faRoute),o.xp6(4),o.Q6J("ngIf",!0===t.flgLoading[0]),o.xp6(1),o.Q6J("dataSource",t.qrHops)("ngClass",o.VKq(14,Uc,"error"===t.flgLoading[0])),o.xp6(23),o.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),o.xp6(1),o.Q6J("matRowDefColumns",t.displayedColumns))},directives:[l.xw,l.yH,Ae._Y,Ae.JL,Ae.F,l.Wh,T.BN,D.KE,Ce.Nt,Ae.Fj,Ae.Q7,Ae.JJ,Ae.On,a.O5,Ae.wV,Ae.qQ,be.q,q.lW,E.$V,Ze.BZ,xe.YE,a.mk,v.oO,Ze.w1,Ze.fO,Ze.Dz,Ze.as,Ze.nj,D.TO,r.pW,Ze.ge,xe.nU,Ze.ev,a.PC,v.Zl,Ze.XQ,Ze.Gk],pipes:[a.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{flex:0 0 5%;width:5%}.mat-column-pubkey_alias[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),e})();var Oc=n(4810);function Jc(e,t){1&e&&(o.TgZ(0,"th",25),o._uU(1,"Network"),o.qZA())}function Dc(e,t){if(1&e&&(o.TgZ(0,"td",26),o._uU(1),o.qZA()),2&e){const e=t.$implicit;o.xp6(1),o.hij(" ",null==e?null:e.network," ")}}function Rc(e,t){1&e&&(o.TgZ(0,"th",25),o._uU(1,"Address"),o.qZA())}function Mc(e,t){if(1&e&&(o.TgZ(0,"td",26),o._uU(1),o.qZA()),2&e){const e=t.$implicit;o.xp6(1),o.hij(" ",null==e?null:e.addr," ")}}function Ec(e,t){1&e&&(o.TgZ(0,"th",27),o.TgZ(1,"span",28),o._uU(2,"Actions"),o.qZA(),o.qZA())}function Qc(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"td",29),o.TgZ(1,"span",28),o.TgZ(2,"button",30),o.NdJ("copied",function(t){return o.CHM(e),o.oxw(2).onCopyNodeURI(t)}),o._uU(3,"Copy Node URI"),o.qZA(),o.qZA(),o.qZA()}if(2&e){const e=t.$implicit,n=o.oxw(2);o.xp6(2),o.Q6J("payload",n.lookupResult.node.pub_key+"@"+e.addr)}}function Yc(e,t){1&e&&o._UZ(0,"tr",31)}function Pc(e,t){1&e&&o._UZ(0,"tr",32)}const Bc=function(e){return{"background-color":e}};function Gc(e,t){if(1&e&&(o.TgZ(0,"div",1),o._UZ(1,"mat-divider",2),o.TgZ(2,"div",3),o.TgZ(3,"h4",4),o._uU(4,"Pub Key"),o.qZA(),o.TgZ(5,"span",5),o._uU(6),o.qZA(),o.qZA(),o._UZ(7,"mat-divider",6),o.TgZ(8,"div",7),o.TgZ(9,"div",8),o.TgZ(10,"h4",4),o._uU(11,"Alias"),o.qZA(),o.TgZ(12,"span",9),o._uU(13),o.TgZ(14,"span",10),o._uU(15),o.qZA(),o.qZA(),o.qZA(),o.TgZ(16,"div",8),o.TgZ(17,"h4",4),o._uU(18,"Last Update"),o.qZA(),o.TgZ(19,"span",9),o._uU(20),o.ALo(21,"date"),o.qZA(),o.qZA(),o.qZA(),o._UZ(22,"mat-divider",6),o.TgZ(23,"div",7),o.TgZ(24,"div",8),o.TgZ(25,"h4",4),o._uU(26,"Total Capacity (Sats)"),o.qZA(),o.TgZ(27,"span",9),o._uU(28),o.ALo(29,"number"),o.qZA(),o.qZA(),o.TgZ(30,"div",8),o.TgZ(31,"h4",4),o._uU(32,"Number of Channels"),o.qZA(),o.TgZ(33,"span",9),o._uU(34),o.ALo(35,"number"),o.qZA(),o.qZA(),o.qZA(),o._UZ(36,"mat-divider",6),o.TgZ(37,"div",11),o.TgZ(38,"h4",12),o._uU(39,"Addresses"),o.qZA(),o.TgZ(40,"div",13),o.TgZ(41,"table",14,15),o.ynx(43,16),o.YNc(44,Jc,2,0,"th",17),o.YNc(45,Dc,2,1,"td",18),o.BQk(),o.ynx(46,19),o.YNc(47,Rc,2,0,"th",17),o.YNc(48,Mc,2,1,"td",18),o.BQk(),o.ynx(49,20),o.YNc(50,Ec,3,0,"th",21),o.YNc(51,Qc,4,1,"td",22),o.BQk(),o.YNc(52,Yc,1,0,"tr",23),o.YNc(53,Pc,1,0,"tr",24),o.qZA(),o.qZA(),o.qZA(),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Q6J("inset",!0),o.xp6(5),o.Oqu(e.lookupResult.node.pub_key),o.xp6(1),o.Q6J("inset",!0),o.xp6(6),o.Oqu(e.lookupResult.node.alias),o.xp6(1),o.Q6J("ngStyle",o.VKq(21,Bc,null==e.lookupResult.node?null:e.lookupResult.node.color)),o.xp6(1),o.Oqu(null==e.lookupResult.node?null:e.lookupResult.node.color),o.xp6(5),o.Oqu(o.xi3(21,14,1e3*e.lookupResult.node.last_update,"dd/MMM/YYYY HH:mm")),o.xp6(2),o.Q6J("inset",!0),o.xp6(6),o.Oqu(o.lcZ(29,17,e.lookupResult.total_capacity)),o.xp6(6),o.Oqu(o.lcZ(35,19,e.lookupResult.num_channels)),o.xp6(2),o.Q6J("inset",!0),o.xp6(5),o.Q6J("dataSource",e.lookupResult.node.addresses),o.xp6(11),o.Q6J("matHeaderRowDef",e.displayedColumns),o.xp6(1),o.Q6J("matRowDefColumns",e.displayedColumns)}}let Hc=(()=>{class e{constructor(e,t){this.logger=e,this.snackBar=t,this.displayedColumns=["network","addr","actions"]}onCopyNodeURI(e){this.snackBar.open("Node URI copied."),this.logger.info("Copied Text: "+e)}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(Z.mQ),o.Y36(Ai.ux))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-node-lookup"]],inputs:{lookupResult:"lookupResult"},decls:1,vars:1,consts:[["fxLayout","column","class","mt-1",4,"ngIf"],["fxLayout","column",1,"mt-1"],[1,"mb-1",3,"inset"],["fxLayout","column","fxFlex","100","fxLayoutAlign","end start",1,"my-1"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text","w-100"],[1,"my-1",3,"inset"],["fxLayout","row"],["fxLayout","column","fxFlex","50","fxLayoutAlign","end start",1,"my-1"],[1,"foreground-secondary-text"],[1,"ml-2",3,"ngStyle"],["fxLayout","column",1,"mt-2"],["fxFlex","100","fxLayoutAlign","start",1,"font-bold-500","mb-1"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mat-table","","matSort","",3,"dataSource"],["table",""],["matColumnDef","network"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","addr"],["matColumnDef","actions"],["mat-header-cell","","class","pl-1",4,"matHeaderCellDef"],["mat-cell","","class","pl-1",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","",1,"pl-1"],["fxLayoutAlign","end center"],["mat-cell","",1,"pl-1"],["mat-stroked-button","","color","primary","type","button","tabindex","1","rtlClipboard","",3,"payload","copied"],["mat-header-row",""],["mat-row",""]],template:function(e,t){1&e&&o.YNc(0,Gc,54,23,"div",0),2&e&&o.Q6J("ngIf",t.lookupResult)},directives:[a.O5,l.xw,M.d,l.yH,l.Wh,a.PC,v.Zl,E.$V,Ze.BZ,xe.YE,Ze.w1,Ze.fO,Ze.Dz,Ze.as,Ze.nj,Ze.ge,xe.nU,Ze.ev,q.lW,Ci.y,Ze.XQ,Ze.Gk],pipes:[a.uU,a.JJ],styles:[""]}),e})();function zc(e,t){1&e&&(o.TgZ(0,"h3",16),o._uU(1,"Node 1"),o.qZA())}function Vc(e,t){1&e&&(o.TgZ(0,"h3",16),o._uU(1,"Node 1 (Your Node)"),o.qZA())}function Wc(e,t){1&e&&(o.TgZ(0,"h3",16),o._uU(1,"Node 2"),o.qZA())}function Xc(e,t){1&e&&(o.TgZ(0,"h3",16),o._uU(1,"Node 2 (Your Node)"),o.qZA())}function $c(e,t){if(1&e&&(o.TgZ(0,"div",1),o._UZ(1,"mat-divider",2),o.TgZ(2,"div",3),o.TgZ(3,"h4",4),o._uU(4,"Channel Id"),o.qZA(),o.TgZ(5,"span",5),o._uU(6),o.qZA(),o.qZA(),o._UZ(7,"mat-divider",6),o.TgZ(8,"div",3),o.TgZ(9,"h4",4),o._uU(10,"Channel Point"),o.qZA(),o.TgZ(11,"span",5),o._uU(12),o.qZA(),o.qZA(),o._UZ(13,"mat-divider",6),o.TgZ(14,"div",7),o.TgZ(15,"div",8),o.TgZ(16,"h4",4),o._uU(17,"Last Update"),o.qZA(),o.TgZ(18,"span",5),o._uU(19),o.ALo(20,"date"),o.qZA(),o.qZA(),o.TgZ(21,"div",8),o.TgZ(22,"h4",4),o._uU(23,"Capacity (Sats)"),o.qZA(),o.TgZ(24,"span",5),o._uU(25),o.ALo(26,"number"),o.qZA(),o.qZA(),o.qZA(),o._UZ(27,"mat-divider",6),o.TgZ(28,"div",9),o.TgZ(29,"div",10),o.TgZ(30,"div",11),o.YNc(31,zc,2,0,"h3",12),o.YNc(32,Vc,2,0,"h3",12),o.qZA(),o._UZ(33,"mat-divider",13),o.TgZ(34,"div",14),o.TgZ(35,"h4",4),o._uU(36,"Pubkey"),o.qZA(),o.TgZ(37,"span",5),o._uU(38),o.qZA(),o.qZA(),o._UZ(39,"mat-divider",13),o.TgZ(40,"div",15),o.TgZ(41,"h4",4),o._uU(42,"Time Lock Delta"),o.qZA(),o.TgZ(43,"span",5),o._uU(44),o.qZA(),o.qZA(),o._UZ(45,"mat-divider",13),o.TgZ(46,"div",15),o.TgZ(47,"h4",4),o._uU(48,"Min HTLC"),o.qZA(),o.TgZ(49,"span",5),o._uU(50),o.qZA(),o.qZA(),o._UZ(51,"mat-divider",13),o.TgZ(52,"div",15),o.TgZ(53,"h4",4),o._uU(54,"Fee Base Msat"),o.qZA(),o.TgZ(55,"span",5),o._uU(56),o.qZA(),o.qZA(),o._UZ(57,"mat-divider",13),o.TgZ(58,"div",15),o.TgZ(59,"h4",4),o._uU(60,"Fee Rate Milli Msat"),o.qZA(),o.TgZ(61,"span",5),o._uU(62),o.qZA(),o.qZA(),o._UZ(63,"mat-divider",13),o.TgZ(64,"div",15),o.TgZ(65,"h4",4),o._uU(66,"Disabled"),o.qZA(),o.TgZ(67,"span",5),o._uU(68),o.qZA(),o.qZA(),o.qZA(),o.TgZ(69,"div",10),o.TgZ(70,"div"),o.YNc(71,Wc,2,0,"h3",12),o.YNc(72,Xc,2,0,"h3",12),o.qZA(),o._UZ(73,"mat-divider",13),o.TgZ(74,"div",14),o.TgZ(75,"h4",4),o._uU(76,"Pubkey"),o.qZA(),o.TgZ(77,"span",5),o._uU(78),o.qZA(),o.qZA(),o._UZ(79,"mat-divider",13),o.TgZ(80,"div",15),o.TgZ(81,"h4",4),o._uU(82,"Time Lock Delta"),o.qZA(),o.TgZ(83,"span",5),o._uU(84),o.qZA(),o.qZA(),o._UZ(85,"mat-divider",13),o.TgZ(86,"div",15),o.TgZ(87,"h4",4),o._uU(88,"Min HTLC"),o.qZA(),o.TgZ(89,"span",5),o._uU(90),o.qZA(),o.qZA(),o._UZ(91,"mat-divider",13),o.TgZ(92,"div",15),o.TgZ(93,"h4",4),o._uU(94,"Fee Base Msat"),o.qZA(),o.TgZ(95,"span",5),o._uU(96),o.qZA(),o.qZA(),o._UZ(97,"mat-divider",13),o.TgZ(98,"div",15),o.TgZ(99,"h4",4),o._uU(100,"Fee Rate Milli Msat"),o.qZA(),o.TgZ(101,"span",5),o._uU(102),o.qZA(),o.qZA(),o._UZ(103,"mat-divider",13),o.TgZ(104,"div",15),o.TgZ(105,"h4",4),o._uU(106,"Disabled"),o.qZA(),o.TgZ(107,"span",5),o._uU(108),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Q6J("inset",!0),o.xp6(5),o.Oqu(e.lookupResult.channel_id),o.xp6(1),o.Q6J("inset",!0),o.xp6(5),o.Oqu(e.lookupResult.chan_point),o.xp6(1),o.Q6J("inset",!0),o.xp6(6),o.Oqu(o.xi3(20,36,1e3*e.lookupResult.last_update,"dd/MMM/YYYY HH:mm")),o.xp6(6),o.Oqu(o.lcZ(26,39,e.lookupResult.capacity)),o.xp6(2),o.Q6J("inset",!0),o.xp6(4),o.Q6J("ngIf",!e.node1_match),o.xp6(1),o.Q6J("ngIf",e.node1_match),o.xp6(1),o.Q6J("inset",!0),o.xp6(5),o.Oqu(e.lookupResult.node1_pub),o.xp6(1),o.Q6J("inset",!0),o.xp6(5),o.Oqu(null==e.lookupResult.node1_policy?null:e.lookupResult.node1_policy.time_lock_delta),o.xp6(1),o.Q6J("inset",!0),o.xp6(5),o.Oqu(null==e.lookupResult.node1_policy?null:e.lookupResult.node1_policy.min_htlc),o.xp6(1),o.Q6J("inset",!0),o.xp6(5),o.Oqu(null==e.lookupResult.node1_policy?null:e.lookupResult.node1_policy.fee_base_msat),o.xp6(1),o.Q6J("inset",!0),o.xp6(5),o.Oqu(null==e.lookupResult.node1_policy?null:e.lookupResult.node1_policy.fee_rate_milli_msat),o.xp6(1),o.Q6J("inset",!0),o.xp6(5),o.Oqu(null==e.lookupResult.node1_policy?null:e.lookupResult.node1_policy.disabled),o.xp6(3),o.Q6J("ngIf",!e.node2_match),o.xp6(1),o.Q6J("ngIf",e.node2_match),o.xp6(1),o.Q6J("inset",!0),o.xp6(5),o.Oqu(e.lookupResult.node2_pub),o.xp6(1),o.Q6J("inset",!0),o.xp6(5),o.Oqu(null==e.lookupResult.node2_policy?null:e.lookupResult.node2_policy.time_lock_delta),o.xp6(1),o.Q6J("inset",!0),o.xp6(5),o.Oqu(null==e.lookupResult.node2_policy?null:e.lookupResult.node2_policy.min_htlc),o.xp6(1),o.Q6J("inset",!0),o.xp6(5),o.Oqu(null==e.lookupResult.node2_policy?null:e.lookupResult.node2_policy.fee_base_msat),o.xp6(1),o.Q6J("inset",!0),o.xp6(5),o.Oqu(null==e.lookupResult.node2_policy?null:e.lookupResult.node2_policy.fee_rate_milli_msat),o.xp6(1),o.Q6J("inset",!0),o.xp6(5),o.Oqu(null==e.lookupResult.node2_policy?null:e.lookupResult.node2_policy.disabled)}}let jc=(()=>{class e{constructor(e){this.store=e,this.node1_match=!1,this.node2_match=!1,this.unSubs=[new p.x,new p.x,new p.x,new p.x]}ngOnInit(){this.store.select("lnd").pipe((0,d.R)(this.unSubs[0])).subscribe(e=>{this.lookupResult.node1_pub===e.information.identity_pubkey&&(this.node1_match=!0),this.lookupResult.node2_pub===e.information.identity_pubkey&&(this.node2_match=!0)})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(y.yh))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-channel-lookup"]],inputs:{lookupResult:"lookupResult"},decls:1,vars:1,consts:[["fxLayout","column","class","mt-1",4,"ngIf"],["fxLayout","column",1,"mt-1"],[1,"mb-1",3,"inset"],["fxLayout","column","fxFlex","100","fxLayoutAlign","end start",1,"my-1"],[1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"my-1",3,"inset"],["fxLayout","row"],["fxLayout","column","fxFlex","100","fxFlex.gt-sm","50","fxLayoutAlign","end start",1,"my-1"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row"],["fxLayout","column","fxFlex","49","fxLayoutAlign","start start",1,"mt-1","bordered-box","padding-gap-large"],["fxLayout","column"],["class","page-title font-bold-500",4,"ngIf"],[3,"inset"],["fxLayout","column","fxFlex","20",1,"my-1"],["fxLayout","column","fxFlex","10",1,"my-1"],[1,"page-title","font-bold-500"]],template:function(e,t){1&e&&o.YNc(0,$c,109,41,"div",0),2&e&&o.Q6J("ngIf",t.lookupResult)},directives:[a.O5,l.xw,M.d,l.yH,l.Wh],pipes:[a.uU,a.JJ],styles:[".mat-list-base[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%], .mat-list-base[_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%]{height:38px!important}"]}),e})();function Kc(e,t){if(1&e&&(o.TgZ(0,"mat-radio-button",21),o._uU(1),o.qZA()),2&e){const e=t.$implicit,n=o.oxw();o.Q6J("value",e.id)("checked",n.selectedFieldId===e.id),o.xp6(1),o.hij(" ",e.name," ")}}function eu(e,t){if(1&e&&(o.TgZ(0,"mat-error"),o._uU(1),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.hij("",null==e.lookupFields[e.selectedFieldId]?null:e.lookupFields[e.selectedFieldId].placeholder," is required.")}}function tu(e,t){1&e&&o._UZ(0,"mat-progress-bar",24)}const nu=function(e){return{"w-100 mt-2 p-2 error-border":e,"w-100 my-2 p-2":!0}};function au(e,t){if(1&e&&(o.TgZ(0,"div",22),o.YNc(1,tu,1,0,"mat-progress-bar",23),o._uU(2),o.qZA()),2&e){const e=o.oxw();o.Q6J("ngClass",o.VKq(3,nu,""!==e.errorMessage&&"Getting lookup details..."!==e.errorMessage)),o.xp6(1),o.Q6J("ngIf","Getting lookup details..."===e.errorMessage),o.xp6(1),o.hij(" ",e.errorMessage," ")}}function iu(e,t){if(1&e&&(o.TgZ(0,"span",31),o._UZ(1,"rtl-node-lookup",32),o.qZA()),2&e){const e=o.oxw(2);o.xp6(1),o.Q6J("lookupResult",e.lookupValue)}}function su(e,t){if(1&e&&(o.TgZ(0,"span",31),o._UZ(1,"rtl-channel-lookup",32),o.qZA()),2&e){const e=o.oxw(2);o.xp6(1),o.Q6J("lookupResult",e.lookupValue)}}function ou(e,t){1&e&&(o.TgZ(0,"span",31),o.TgZ(1,"h3"),o._uU(2,"Error! Unable to find details!"),o.qZA(),o.qZA())}function lu(e,t){if(1&e&&(o.TgZ(0,"div",25),o.TgZ(1,"div",26),o.TgZ(2,"span",27),o._uU(3),o.qZA(),o.qZA(),o.TgZ(4,"div",28),o.YNc(5,iu,2,1,"span",29),o.YNc(6,su,2,1,"span",29),o.YNc(7,ou,3,0,"span",30),o.qZA(),o.qZA()),2&e){const e=o.oxw();o.xp6(3),o.hij("",e.lookupFields[e.selectedFieldId].name," Details"),o.xp6(1),o.Q6J("ngSwitch",e.selectedFieldId),o.xp6(1),o.Q6J("ngSwitchCase",0),o.xp6(1),o.Q6J("ngSwitchCase",1)}}const ru=function(e){return{"mt-2":e}};let cu=(()=>{class e{constructor(e,t,n,a){this.logger=e,this.commonService=t,this.store=n,this.actions=a,this.lookupKey="",this.lookupValue={},this.flgSetLookupValue=!1,this.messageObj=[],this.selectedFieldId=0,this.lookupFields=[{id:0,name:"Node",placeholder:"Pubkey"},{id:1,name:"Channel",placeholder:"Channel ID"}],this.faSearch=g.wn1,this.screenSize="",this.screenSizeEnum=f.cu,this.errorMessage="",this.apisCallStatus=null,this.apiCallStatusEnum=f.Bn,this.unSubs=[new p.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.actions.pipe((0,d.R)(this.unSubs[0]),(0,h.h)(e=>e.type===x.RP||e.type===x.JE)).subscribe(e=>{e.type===x.RP&&(this.errorMessage=0===this.selectedFieldId&&e.payload.hasOwnProperty("node")||1===this.selectedFieldId&&e.payload.hasOwnProperty("channel_id")?"":this.errorMessage,this.lookupValue=JSON.parse(JSON.stringify(e.payload)),this.flgSetLookupValue=!(0!==this.selectedFieldId||!e.payload.hasOwnProperty("node"))||!(1!==this.selectedFieldId||!e.payload.hasOwnProperty("channel_id")),this.logger.info(this.lookupValue)),e.type===x.JE&&"Lookup"===e.payload.action&&(this.errorMessage="",e.payload.status===f.Bn.ERROR&&(this.errorMessage="object"==typeof e.payload.message?JSON.stringify(e.payload.message):e.payload.message),e.payload.status===f.Bn.INITIATED&&(this.errorMessage=f.m6.GET_LOOKUP_DETAILS))})}onLookup(){if(!this.lookupKey)return!0;switch(this.flgSetLookupValue=!1,this.lookupValue={},this.selectedFieldId){case 0:this.store.dispatch(new x.x$(this.lookupKey.trim()));break;case 1:this.store.dispatch(new x.IG({uiMessage:f.m6.SEARCHING_CHANNEL,channelID:this.lookupKey.trim()}))}}onSelectChange(e){this.resetData(),this.selectedFieldId=e.value}resetData(){this.flgSetLookupValue=!1,this.selectedFieldId=0,this.lookupKey="",this.lookupValue={},this.errorMessage=""}clearLookupValue(){this.lookupValue={},this.flgSetLookupValue=!1}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(Z.mQ),o.Y36(C.v),o.Y36(y.yh),o.Y36(A.eX))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-lookups"]],decls:24,vars:11,consts:[["fxLayout","column"],["fxLayout","row","fxLayoutAlign","start end",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start",1,"padding-gap"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"card-content-gap","mt-1"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start space-between",1,"w-100"],["form","ngForm"],["fxFlex","35","fxFlex.gt-md","25","fxLayoutAlign","start end"],["color","primary","tabindex","1","name","lookupField",3,"ngModel","ngModelChange","change"],["class","mr-4",3,"value","checked",4,"ngFor","ngForOf"],["fxFlex","65","fxFlex.gt-md","75","fxLayoutAlign","start end",3,"ngClass"],["matInput","","name","lookupKey","tabindex","2","required","",3,"placeholder","ngModel","change","ngModelChange"],["key",""],[4,"ngIf"],[1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","3","type","button",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","4","type","submit",3,"click"],["fxFlex","100","fxLayout","row wrap","fxLayoutAlign","space-between center",3,"ngClass",4,"ngIf"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch","class","w-100 mt-2",4,"ngIf"],[1,"mr-4",3,"value","checked"],["fxFlex","100","fxLayout","row wrap","fxLayoutAlign","space-between center",3,"ngClass"],["mode","indeterminate",4,"ngIf"],["mode","indeterminate"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch",1,"w-100","mt-2"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],[1,"page-title","font-bold-500"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",3,"ngSwitch"],["fxFlex","100",4,"ngSwitchCase"],["fxFlex","100",4,"ngSwitchDefault"],["fxFlex","100"],[3,"lookupResult"]],template:function(e,t){1&e&&(o.TgZ(0,"div",0),o.TgZ(1,"div",1),o._UZ(2,"fa-icon",2),o.TgZ(3,"span",3),o._uU(4,"Graph Lookups"),o.qZA(),o.qZA(),o.TgZ(5,"div",4),o.TgZ(6,"mat-card",5),o.TgZ(7,"mat-card-content",6),o.TgZ(8,"form",7,8),o.TgZ(10,"div",9),o.TgZ(11,"mat-radio-group",10),o.NdJ("ngModelChange",function(e){return t.selectedFieldId=e})("change",function(e){return t.onSelectChange(e)}),o.YNc(12,Kc,2,3,"mat-radio-button",11),o.qZA(),o.qZA(),o.TgZ(13,"mat-form-field",12),o.TgZ(14,"input",13,14),o.NdJ("change",function(){return t.clearLookupValue()})("ngModelChange",function(e){return t.lookupKey=e}),o.qZA(),o.YNc(16,eu,2,1,"mat-error",15),o.qZA(),o.TgZ(17,"div",16),o.TgZ(18,"button",17),o.NdJ("click",function(){return t.resetData()}),o._uU(19,"Clear"),o.qZA(),o.TgZ(20,"button",18),o.NdJ("click",function(){return t.onLookup()}),o._uU(21,"Lookup"),o.qZA(),o.qZA(),o.qZA(),o.YNc(22,au,3,5,"div",19),o.YNc(23,lu,8,4,"div",20),o.qZA(),o.qZA(),o.qZA(),o.qZA()),2&e&&(o.xp6(2),o.Q6J("icon",t.faSearch),o.xp6(9),o.Q6J("ngModel",t.selectedFieldId),o.xp6(1),o.Q6J("ngForOf",t.lookupFields),o.xp6(1),o.Q6J("ngClass",o.VKq(9,ru,t.screenSize===t.screenSizeEnum.XS||t.screenSize===t.screenSizeEnum.SM)),o.xp6(1),o.Q6J("placeholder",(null==t.lookupFields[t.selectedFieldId]?null:t.lookupFields[t.selectedFieldId].placeholder)||"Lookup Key")("ngModel",t.lookupKey),o.xp6(2),o.Q6J("ngIf",!t.lookupKey),o.xp6(6),o.Q6J("ngIf",""!==t.errorMessage),o.xp6(1),o.Q6J("ngIf",""===t.errorMessage&&t.lookupValue&&t.flgSetLookupValue))},directives:[l.xw,l.Wh,T.BN,l.yH,w.a8,w.dn,Ae._Y,Ae.JL,Ae.F,Oc.VQ,Ae.JJ,Ae.On,a.sg,D.KE,a.mk,v.oO,Ce.Nt,Ae.Fj,Ae.Q7,a.O5,q.lW,Oc.U0,D.TO,r.pW,a.RF,a.n9,a.ED,Hc,jc],styles:[".tree-invisible[_ngcontent-%COMP%]{display:none}.lookup-tree[_ngcontent-%COMP%] li[_ngcontent-%COMP%], .lookup-tree[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;list-style-type:none}.pl-3[_ngcontent-%COMP%]{padding-left:3rem}"]}),e})();var uu=n(5812);function pu(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Invalid date format."),o.qZA())}function du(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Invalid date format."),o.qZA())}function hu(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"div",27),o.NdJ("click",function(){const t=o.CHM(e).$implicit;return o.oxw().activeLink=t.link}),o._uU(1),o.qZA()}if(2&e){const e=t.$implicit,n=o.oxw();o.s9C("routerLink",e.link),o.Q6J("active",n.activeLink===e.link),o.xp6(1),o.Oqu(e.name)}}let mu=(()=>{class e{constructor(e,t){this.store=e,this.router=t,this.faMapSigns=g.SuH,this.today=new Date(Date.now()),this.lastMonthDay=new Date(this.today.getFullYear(),this.today.getMonth()-1,this.today.getDate()+1,0,0,0),this.yesterday=new Date(this.today.getFullYear(),this.today.getMonth(),this.today.getDate()-1,0,0,0),this.endDate=this.today,this.startDate=this.lastMonthDay,this.links=[{link:"forwardinghistory",name:"Forwarding History"},{link:"peers",name:"Routing Peers"}],this.activeLink=this.links[0].link,this.unSubs=[new p.x,new p.x,new p.x]}ngOnInit(){this.onEventsFetch();const e=this.links.find(e=>this.router.url.includes(e.link));this.activeLink=e?e.link:this.links[0].link,this.router.events.pipe((0,d.R)(this.unSubs[0]),(0,h.h)(e=>e instanceof i.Av)).subscribe(e=>{const t=this.links.find(t=>e.urlAfterRedirects.includes(t.link));this.activeLink=t?t.link:this.links[0].link})}onEventsFetch(){this.store.dispatch(new x.Fn({})),this.endDate||(this.endDate=this.today),this.startDate||(this.startDate=new Date(this.endDate.getFullYear(),this.endDate.getMonth()-1,this.endDate.getDate()+1,0,0,0)),this.store.dispatch(new x.KK({end_time:Math.round(this.endDate.getTime()/1e3).toString(),start_time:Math.round(this.startDate.getTime()/1e3).toString()}))}resetData(){this.endDate=this.today,this.startDate=this.lastMonthDay}ngOnDestroy(){this.resetData(),this.store.dispatch(new x.Fn({})),this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(y.yh),o.Y36(i.F0))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-routing"]],decls:35,vars:15,consts:[["fxLayout","column"],["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start",1,"padding-gap-x"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"card-content-gap","mt-1"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch",1,"w-100","mb-1",3,"ngSubmit"],["routingForm","ngForm"],["fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","49","fxLayoutAlign","start"],["matInput","","placeholder","Start Date","name","startDate","tabindex","1",3,"matDatepicker","max","ngModel","ngModelChange"],["strtDate","ngModel"],["matSuffix","",3,"for"],[3,"startAt"],["startDatepicker",""],[4,"ngIf"],["matInput","","placeholder","End Date","name","endDate","tabindex","2",3,"matDatepicker","min","max","ngModel","ngModelChange"],["enDate","ngModel"],["endDatepicker",""],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","3","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","4"],["fxLayout","row","fxFlex","100"],["mat-tab-nav-bar","","fxFlex","100"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(e,t){if(1&e&&(o.TgZ(0,"div",0),o.TgZ(1,"div",1),o._UZ(2,"fa-icon",2),o.TgZ(3,"span",3),o._uU(4,"Routing"),o.qZA(),o.qZA(),o.TgZ(5,"div",4),o.TgZ(6,"mat-card",5),o.TgZ(7,"mat-card-content",6),o.TgZ(8,"form",7,8),o.NdJ("ngSubmit",function(){return t.onEventsFetch()}),o.TgZ(10,"div",9),o.TgZ(11,"mat-form-field",10),o.TgZ(12,"input",11,12),o.NdJ("ngModelChange",function(e){return t.startDate=e}),o.qZA(),o._UZ(14,"mat-datepicker-toggle",13),o._UZ(15,"mat-datepicker",14,15),o.YNc(17,pu,2,0,"mat-error",16),o.qZA(),o.TgZ(18,"mat-form-field",10),o.TgZ(19,"input",17,18),o.NdJ("ngModelChange",function(e){return t.endDate=e}),o.qZA(),o._UZ(21,"mat-datepicker-toggle",13),o._UZ(22,"mat-datepicker",14,19),o.YNc(24,du,2,0,"mat-error",16),o.qZA(),o.qZA(),o.TgZ(25,"div",20),o.TgZ(26,"button",21),o.NdJ("click",function(){return t.resetData()}),o._uU(27,"Clear"),o.qZA(),o.TgZ(28,"button",22),o._uU(29,"Fetch Events"),o.qZA(),o.qZA(),o.qZA(),o.TgZ(30,"div",23),o.TgZ(31,"nav",24),o.YNc(32,hu,2,3,"div",25),o.qZA(),o.qZA(),o.TgZ(33,"div",26),o._UZ(34,"router-outlet"),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA()),2&e){const e=o.MAs(13),n=o.MAs(16),a=o.MAs(20),i=o.MAs(23);o.xp6(2),o.Q6J("icon",t.faMapSigns),o.xp6(10),o.Q6J("matDatepicker",n)("max",t.today)("ngModel",t.startDate),o.xp6(2),o.Q6J("for",n),o.xp6(1),o.Q6J("startAt",t.startDate),o.xp6(2),o.Q6J("ngIf",e.errors),o.xp6(2),o.Q6J("matDatepicker",i)("min",t.startDate)("max",t.today)("ngModel",t.endDate),o.xp6(2),o.Q6J("for",i),o.xp6(1),o.Q6J("startAt",t.endDate),o.xp6(2),o.Q6J("ngIf",a.errors),o.xp6(8),o.Q6J("ngForOf",t.links)}},directives:[l.xw,l.Wh,T.BN,l.yH,w.a8,w.dn,Ae._Y,Ae.JL,Ae.F,D.KE,Ce.Nt,uu.hl,ma.F,Ae.Fj,Ae.JJ,Ae.On,uu.nW,D.R9,uu.Mq,a.O5,be.q,q.lW,ge.BU,a.sg,i.lC,D.TO,ge.Nj,i.rH],styles:[""]}),e})();function gu(e,t){if(1&e&&(o.TgZ(0,"div",5),o._uU(1),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Oqu(e.errorMessage)}}function fu(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"div",6),o._UZ(1,"div",7),o.TgZ(2,"mat-form-field",8),o.TgZ(3,"input",9),o.NdJ("ngModelChange",function(t){return o.CHM(e),o.oxw().filterValue=t})("input",function(){return o.CHM(e),o.oxw().applyFilter()})("keyup",function(){return o.CHM(e),o.oxw().applyFilter()}),o.qZA(),o.qZA(),o.qZA()}if(2&e){const e=o.oxw();o.xp6(3),o.Q6J("ngModel",e.filterValue)}}function xu(e,t){1&e&&o._UZ(0,"mat-progress-bar",31)}function Zu(e,t){1&e&&(o.TgZ(0,"th",32),o._uU(1,"Timestamp"),o.qZA())}function yu(e,t){if(1&e&&(o.TgZ(0,"td",33),o._uU(1),o.ALo(2,"date"),o.qZA()),2&e){const e=t.$implicit;o.xp6(1),o.Oqu(o.xi3(2,1,1e3*e.timestamp,"dd/MMM/YYYY HH:mm"))}}function Au(e,t){1&e&&(o.TgZ(0,"th",32),o._uU(1,"Inbound Channel"),o.qZA())}function Cu(e,t){if(1&e&&(o.TgZ(0,"td",33),o._uU(1),o.qZA()),2&e){const e=t.$implicit;o.xp6(1),o.Oqu(e.alias_in)}}function Tu(e,t){1&e&&(o.TgZ(0,"th",32),o._uU(1,"Outbound Channel"),o.qZA())}function bu(e,t){if(1&e&&(o.TgZ(0,"td",33),o._uU(1),o.qZA()),2&e){const e=t.$implicit;o.xp6(1),o.Oqu(e.alias_out)}}function wu(e,t){1&e&&(o.TgZ(0,"th",34),o._uU(1,"Inbound Amount (Sats)"),o.qZA())}function _u(e,t){if(1&e&&(o.TgZ(0,"td",33),o.TgZ(1,"span",35),o._uU(2),o.ALo(3,"number"),o.qZA(),o.qZA()),2&e){const e=t.$implicit;o.xp6(2),o.Oqu(o.lcZ(3,1,e.amt_in))}}function vu(e,t){1&e&&(o.TgZ(0,"th",34),o._uU(1,"Outbound Amount (Sats)"),o.qZA())}function qu(e,t){if(1&e&&(o.TgZ(0,"td",33),o.TgZ(1,"span",35),o._uU(2),o.ALo(3,"number"),o.qZA(),o.qZA()),2&e){const e=t.$implicit;o.xp6(2),o.Oqu(o.lcZ(3,1,e.amt_out))}}function Su(e,t){1&e&&(o.TgZ(0,"th",34),o._uU(1,"Fee (mSats)"),o.qZA())}function Fu(e,t){if(1&e&&(o.TgZ(0,"td",33),o.TgZ(1,"span",35),o._uU(2),o.ALo(3,"number"),o.qZA(),o.qZA()),2&e){const e=t.$implicit;o.xp6(2),o.Oqu(o.lcZ(3,1,e.fee_msat))}}function Lu(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"th",36),o.TgZ(1,"div",37),o.TgZ(2,"mat-select",38),o._UZ(3,"mat-select-trigger"),o.TgZ(4,"mat-option",39),o.NdJ("click",function(){return o.CHM(e),o.oxw(2).onDownloadCSV()}),o._uU(5,"Download CSV"),o.qZA(),o.qZA(),o.qZA(),o.qZA()}}function ku(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"td",40),o.TgZ(1,"button",41),o.NdJ("click",function(t){const n=o.CHM(e).$implicit;return o.oxw(2).onForwardingEventClick(n,t)}),o._uU(2,"View Info"),o.qZA(),o.qZA()}}function Nu(e,t){1&e&&(o.TgZ(0,"p"),o._uU(1,"No forwarding history available."),o.qZA())}function Uu(e,t){1&e&&(o.TgZ(0,"p"),o._uU(1,"Getting forwarding history..."),o.qZA())}function Iu(e,t){if(1&e&&(o.TgZ(0,"p"),o._uU(1),o.qZA()),2&e){const e=o.oxw(3);o.xp6(1),o.Oqu(e.errorMessage)}}function Ou(e,t){if(1&e&&(o.TgZ(0,"td",42),o.YNc(1,Nu,2,0,"p",43),o.YNc(2,Uu,2,0,"p",43),o.YNc(3,Iu,2,1,"p",43),o.qZA()),2&e){const e=o.oxw(2);o.xp6(1),o.Q6J("ngIf",(!(null!=e.forwardingHistoryEvents&&e.forwardingHistoryEvents.data)||(null==e.forwardingHistoryEvents||null==e.forwardingHistoryEvents.data?null:e.forwardingHistoryEvents.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.GetForwardingHistory.status)===e.apiCallStatusEnum.COMPLETED),o.xp6(1),o.Q6J("ngIf",(!(null!=e.forwardingHistoryEvents&&e.forwardingHistoryEvents.data)||(null==e.forwardingHistoryEvents||null==e.forwardingHistoryEvents.data?null:e.forwardingHistoryEvents.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.GetForwardingHistory.status)===e.apiCallStatusEnum.INITIATED),o.xp6(1),o.Q6J("ngIf",(!(null!=e.forwardingHistoryEvents&&e.forwardingHistoryEvents.data)||(null==e.forwardingHistoryEvents||null==e.forwardingHistoryEvents.data?null:e.forwardingHistoryEvents.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.GetForwardingHistory.status)===e.apiCallStatusEnum.ERROR)}}const Ju=function(e){return{"display-none":e}};function Du(e,t){if(1&e&&o._UZ(0,"tr",44),2&e){const e=o.oxw(2);o.Q6J("ngClass",o.VKq(1,Ju,(null==e.forwardingHistoryEvents?null:e.forwardingHistoryEvents.data)&&(null==e.forwardingHistoryEvents||null==e.forwardingHistoryEvents.data?null:e.forwardingHistoryEvents.data.length)>0))}}function Ru(e,t){1&e&&o._UZ(0,"tr",45)}function Mu(e,t){1&e&&o._UZ(0,"tr",46)}const Eu=function(){return["no_event"]};function Qu(e,t){if(1&e&&(o.TgZ(0,"div",10),o.YNc(1,xu,1,0,"mat-progress-bar",11),o.TgZ(2,"table",12,13),o.ynx(4,14),o.YNc(5,Zu,2,0,"th",15),o.YNc(6,yu,3,4,"td",16),o.BQk(),o.ynx(7,17),o.YNc(8,Au,2,0,"th",15),o.YNc(9,Cu,2,1,"td",16),o.BQk(),o.ynx(10,18),o.YNc(11,Tu,2,0,"th",15),o.YNc(12,bu,2,1,"td",16),o.BQk(),o.ynx(13,19),o.YNc(14,wu,2,0,"th",20),o.YNc(15,_u,4,3,"td",16),o.BQk(),o.ynx(16,21),o.YNc(17,vu,2,0,"th",20),o.YNc(18,qu,4,3,"td",16),o.BQk(),o.ynx(19,22),o.YNc(20,Su,2,0,"th",20),o.YNc(21,Fu,4,3,"td",16),o.BQk(),o.ynx(22,23),o.YNc(23,Lu,6,0,"th",24),o.YNc(24,ku,3,0,"td",25),o.BQk(),o.ynx(25,26),o.YNc(26,Ou,4,3,"td",27),o.BQk(),o.YNc(27,Du,1,3,"tr",28),o.YNc(28,Ru,1,0,"tr",29),o.YNc(29,Mu,1,0,"tr",30),o.qZA(),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Q6J("ngIf",(null==e.apisCallStatus?null:e.apisCallStatus.GetForwardingHistory.status)===e.apiCallStatusEnum.INITIATED),o.xp6(1),o.Q6J("dataSource",e.forwardingHistoryEvents),o.xp6(25),o.Q6J("matFooterRowDef",o.DdM(6,Eu)),o.xp6(1),o.Q6J("matHeaderRowDef",e.displayedColumns)("matHeaderRowDefSticky",e.flgSticky),o.xp6(1),o.Q6J("matRowDefColumns",e.displayedColumns)}}function Yu(e,t){if(1&e&&o._UZ(0,"mat-paginator",47),2&e){const e=o.oxw();o.Q6J("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)("showFirstLastButtons",e.screenSize!==e.screenSizeEnum.XS)}}let Pu=(()=>{class e{constructor(e,t,n,a){this.logger=e,this.commonService=t,this.store=n,this.datePipe=a,this.eventsData=[],this.filterValue="",this.forwardingHistoryData=[],this.displayedColumns=[],this.flgSticky=!1,this.pageSize=f.IV,this.pageSizeOptions=f.TJ,this.screenSize="",this.screenSizeEnum=f.cu,this.errorMessage="",this.apisCallStatus=null,this.apiCallStatusEnum=f.Bn,this.unSubs=[new p.x,new p.x,new p.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===f.cu.XS?(this.flgSticky=!1,this.displayedColumns=["timestamp","fee_msat","actions"]):this.screenSize===f.cu.SM||this.screenSize===f.cu.MD?(this.flgSticky=!1,this.displayedColumns=["timestamp","amt_in","amt_out","fee_msat","actions"]):(this.flgSticky=!0,this.displayedColumns=["timestamp","alias_in","alias_out","amt_in","amt_out","fee_msat","actions"])}ngOnInit(){this.store.select("lnd").pipe((0,d.R)(this.unSubs[0])).subscribe(e=>{this.eventsData.length<=0&&(this.errorMessage="",this.apisCallStatus=e.apisCallStatus,e.apisCallStatus.GetForwardingHistory.status===f.Bn.ERROR&&(this.errorMessage="object"==typeof this.apisCallStatus.GetForwardingHistory.message?JSON.stringify(this.apisCallStatus.GetForwardingHistory.message):this.apisCallStatus.GetForwardingHistory.message),this.forwardingHistoryData=e.forwardingHistory&&e.forwardingHistory.forwarding_events?e.forwardingHistory.forwarding_events:[],this.loadForwardingEventsTable(this.forwardingHistoryData),this.logger.info(e))})}ngAfterViewInit(){this.forwardingHistoryData.length>0&&this.loadForwardingEventsTable(this.forwardingHistoryData)}ngOnChanges(e){e.eventsData&&(this.eventsData=e.eventsData.currentValue,this.forwardingHistoryData=this.eventsData,e.eventsData.firstChange||this.loadForwardingEventsTable(this.forwardingHistoryData)),e.filterValue&&!e.filterValue.firstChange&&this.applyFilter()}onForwardingEventClick(e,t){this.store.dispatch(new ee.wu({data:{type:f.n_.INFORMATION,alertTitle:"Event Information",message:[[{key:"timestamp",value:e.timestamp,title:"Timestamp",width:25,type:f.Gi.DATE_TIME},{key:"amt_in",value:e.amt_in,title:"Inbound Amount (Sats)",width:25,type:f.Gi.NUMBER},{key:"amt_out",value:e.amt_out,title:"Outbound Amount (Sats)",width:25,type:f.Gi.NUMBER},{key:"fee_msat",value:e.fee_msat,title:"Fee (mSats)",width:25,type:f.Gi.NUMBER}],[{key:"alias_in",value:e.alias_in,title:"Inbound Peer Alias",width:25,type:f.Gi.STRING},{key:"chan_id_in",value:e.chan_id_in,title:"Inbound Channel ID",width:25,type:f.Gi.STRING},{key:"alias_out",value:e.alias_out,title:"Outbound Peer Alias",width:25,type:f.Gi.STRING},{key:"chan_id_out",value:e.chan_id_out,title:"Outbound Channel ID",width:25,type:f.Gi.STRING}]]}}))}loadForwardingEventsTable(e){this.forwardingHistoryEvents=new Ze.by(e?[...e]:[]),this.forwardingHistoryEvents.sort=this.sort,this.forwardingHistoryEvents.sortingDataAccessor=(e,t)=>e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():e[t]?+e[t]:null,this.forwardingHistoryEvents.filterPredicate=(e,t)=>((e.timestamp?this.datePipe.transform(new Date(1e3*e.timestamp),"dd/MMM/YYYY HH:mm").toLowerCase():"")+JSON.stringify(e).toLowerCase()).includes(t),this.forwardingHistoryEvents.paginator=this.paginator,this.logger.info(this.forwardingHistoryEvents)}onDownloadCSV(){this.forwardingHistoryEvents&&this.forwardingHistoryEvents.data&&this.forwardingHistoryEvents.data.length>0&&this.commonService.downloadFile(this.forwardingHistoryEvents.data,"Forwarding-history")}applyFilter(){this.forwardingHistoryEvents&&(this.forwardingHistoryEvents.filter=this.filterValue.trim().toLowerCase())}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(Z.mQ),o.Y36(C.v),o.Y36(y.yh),o.Y36(a.uU))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-forwarding-history"]],viewQuery:function(e,t){if(1&e&&(o.Gf(xe.YE,5),o.Gf(fe.NW,5)),2&e){let e;o.iGM(e=o.CRH())&&(t.sort=e.first),o.iGM(e=o.CRH())&&(t.paginator=e.first)}},inputs:{eventsData:"eventsData",filterValue:"filterValue"},features:[o._Bn([{provide:fe.ye,useValue:(0,f.pt)("Events")}]),o.TTD],decls:5,vars:4,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"padding-gap-x"],["class","p-2 error-border mb-2",4,"ngIf"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch","class","page-sub-title-container",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100","class","table-container",3,"perfectScrollbar",4,"ngIf"],["class","mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons",4,"ngIf"],[1,"p-2","error-border","mb-2"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","name","filter","placeholder","Filter",3,"ngModel","ngModelChange","input","keyup"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",1,"overflow-auto",3,"dataSource"],["table",""],["matColumnDef","timestamp"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","alias_in"],["matColumnDef","alias_out"],["matColumnDef","amt_in"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","amt_out"],["matColumnDef","fee_msat"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-3","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_event"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"]],template:function(e,t){1&e&&(o.TgZ(0,"div",0),o.YNc(1,gu,2,1,"div",1),o.YNc(2,fu,4,1,"div",2),o.YNc(3,Qu,30,7,"div",3),o.YNc(4,Yu,1,3,"mat-paginator",4),o.qZA()),2&e&&(o.xp6(1),o.Q6J("ngIf",""!==t.errorMessage),o.xp6(1),o.Q6J("ngIf",""===t.errorMessage),o.xp6(1),o.Q6J("ngIf",""===t.errorMessage),o.xp6(1),o.Q6J("ngIf",""===t.errorMessage))},directives:[l.xw,l.Wh,a.O5,l.yH,D.KE,Ce.Nt,Ae.Fj,Ae.JJ,Ae.On,E.$V,Ze.BZ,xe.YE,Ze.w1,Ze.fO,Ze.Dz,Ze.mD,Ze.Ke,Ze.as,Ze.nj,r.pW,Ze.ge,xe.nU,Ze.ev,we.gD,we.$L,ve.ey,q.lW,Ze.yh,Ze.Q2,a.mk,v.oO,Ze.XQ,Ze.Gk,fe.NW],pipes:[a.uU,a.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),e})();const Bu=["tableIn"],Gu=["tableOut"],Hu=["paginatorIn"],zu=["paginatorOut"];function Vu(e,t){if(1&e&&(o.TgZ(0,"div",3),o._uU(1),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Oqu(e.errorMessage)}}function Wu(e,t){1&e&&o._UZ(0,"mat-progress-bar",37)}function Xu(e,t){1&e&&(o.TgZ(0,"th",38),o._uU(1,"Channel ID"),o.qZA())}const $u=function(e){return{"max-width":e}};function ju(e,t){if(1&e&&(o.TgZ(0,"td",39),o._uU(1),o.qZA()),2&e){const e=t.$implicit,n=o.oxw(2);o.Q6J("ngStyle",o.VKq(2,$u,n.screenSize===n.screenSizeEnum.XS?"10rem":"28rem")),o.xp6(1),o.Oqu(e.chan_id)}}function Ku(e,t){1&e&&(o.TgZ(0,"th",38),o._uU(1,"Peer Alias"),o.qZA())}function ep(e,t){if(1&e&&(o.TgZ(0,"td",39),o._uU(1),o.qZA()),2&e){const e=t.$implicit,n=o.oxw(2);o.Q6J("ngStyle",o.VKq(2,$u,n.screenSize===n.screenSizeEnum.XS?"10rem":"28rem")),o.xp6(1),o.Oqu(e.alias)}}function tp(e,t){1&e&&(o.TgZ(0,"th",40),o._uU(1,"Events"),o.qZA())}function np(e,t){if(1&e&&(o.TgZ(0,"td",41),o.TgZ(1,"span",42),o._uU(2),o.ALo(3,"number"),o.qZA(),o.qZA()),2&e){const e=t.$implicit;o.xp6(2),o.Oqu(o.lcZ(3,1,e.events))}}function ap(e,t){1&e&&(o.TgZ(0,"th",40),o._uU(1,"Total Amount (Sats)"),o.qZA())}function ip(e,t){if(1&e&&(o.TgZ(0,"td",41),o.TgZ(1,"span",42),o._uU(2),o.ALo(3,"number"),o.qZA(),o.qZA()),2&e){const e=t.$implicit;o.xp6(2),o.Oqu(o.lcZ(3,1,e.total_amount))}}function sp(e,t){1&e&&(o.TgZ(0,"th",43),o.TgZ(1,"span",42),o._uU(2,"Actions"),o.qZA(),o.qZA())}function op(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"td",44),o.TgZ(1,"button",45),o.NdJ("click",function(t){const n=o.CHM(e).$implicit;return o.oxw(2).onRoutingPeerClick(n,t,"in")}),o._uU(2,"View Info"),o.qZA(),o.qZA()}}function lp(e,t){1&e&&(o.TgZ(0,"p"),o._uU(1,"No incoming routing peer available."),o.qZA())}function rp(e,t){1&e&&(o.TgZ(0,"p"),o._uU(1,"Getting incoming routing peers..."),o.qZA())}function cp(e,t){if(1&e&&(o.TgZ(0,"p"),o._uU(1),o.qZA()),2&e){const e=o.oxw(3);o.xp6(1),o.Oqu(e.errorMessage)}}function up(e,t){if(1&e&&(o.TgZ(0,"td",46),o.YNc(1,lp,2,0,"p",47),o.YNc(2,rp,2,0,"p",47),o.YNc(3,cp,2,1,"p",47),o.qZA()),2&e){const e=o.oxw(2);o.xp6(1),o.Q6J("ngIf",(!(null!=e.RoutingPeersIncoming&&e.RoutingPeersIncoming.data)||(null==e.RoutingPeersIncoming||null==e.RoutingPeersIncoming.data?null:e.RoutingPeersIncoming.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.GetForwardingHistory.status)===e.apiCallStatusEnum.COMPLETED),o.xp6(1),o.Q6J("ngIf",(!(null!=e.RoutingPeersIncoming&&e.RoutingPeersIncoming.data)||(null==e.RoutingPeersIncoming||null==e.RoutingPeersIncoming.data?null:e.RoutingPeersIncoming.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.GetForwardingHistory.status)===e.apiCallStatusEnum.INITIATED),o.xp6(1),o.Q6J("ngIf",(!(null!=e.RoutingPeersIncoming&&e.RoutingPeersIncoming.data)||(null==e.RoutingPeersIncoming||null==e.RoutingPeersIncoming.data?null:e.RoutingPeersIncoming.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.GetForwardingHistory.status)===e.apiCallStatusEnum.ERROR)}}const pp=function(e){return{"display-none":e}};function dp(e,t){if(1&e&&o._UZ(0,"tr",48),2&e){const e=o.oxw(2);o.Q6J("ngClass",o.VKq(1,pp,(null==e.RoutingPeersIncoming?null:e.RoutingPeersIncoming.data)&&(null==e.RoutingPeersIncoming||null==e.RoutingPeersIncoming.data?null:e.RoutingPeersIncoming.data.length)>0))}}function hp(e,t){1&e&&o._UZ(0,"tr",49)}function mp(e,t){1&e&&o._UZ(0,"tr",50)}function gp(e,t){1&e&&o._UZ(0,"mat-progress-bar",37)}function fp(e,t){1&e&&(o.TgZ(0,"th",38),o._uU(1,"Channel ID"),o.qZA())}function xp(e,t){if(1&e&&(o.TgZ(0,"td",39),o._uU(1),o.qZA()),2&e){const e=t.$implicit,n=o.oxw(2);o.Q6J("ngStyle",o.VKq(2,$u,n.screenSize===n.screenSizeEnum.XS?"10rem":"28rem")),o.xp6(1),o.Oqu(e.chan_id)}}function Zp(e,t){1&e&&(o.TgZ(0,"th",38),o._uU(1,"Peer Alias"),o.qZA())}function yp(e,t){if(1&e&&(o.TgZ(0,"td",39),o._uU(1),o.qZA()),2&e){const e=t.$implicit,n=o.oxw(2);o.Q6J("ngStyle",o.VKq(2,$u,n.screenSize===n.screenSizeEnum.XS?"10rem":"28rem")),o.xp6(1),o.Oqu(e.alias)}}function Ap(e,t){1&e&&(o.TgZ(0,"th",40),o._uU(1,"Events"),o.qZA())}function Cp(e,t){if(1&e&&(o.TgZ(0,"td",41),o.TgZ(1,"span",42),o._uU(2),o.ALo(3,"number"),o.qZA(),o.qZA()),2&e){const e=t.$implicit;o.xp6(2),o.Oqu(o.lcZ(3,1,e.events))}}function Tp(e,t){1&e&&(o.TgZ(0,"th",40),o._uU(1,"Total Amount (Sats)"),o.qZA())}function bp(e,t){if(1&e&&(o.TgZ(0,"td",41),o.TgZ(1,"span",42),o._uU(2),o.ALo(3,"number"),o.qZA(),o.qZA()),2&e){const e=t.$implicit;o.xp6(2),o.Oqu(o.lcZ(3,1,e.total_amount))}}function wp(e,t){1&e&&(o.TgZ(0,"th",43),o.TgZ(1,"span",42),o._uU(2,"Actions"),o.qZA(),o.qZA())}function _p(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"td",51),o.TgZ(1,"button",52),o.NdJ("click",function(t){const n=o.CHM(e).$implicit;return o.oxw(2).onRoutingPeerClick(n,t,"out")}),o._uU(2,"View Info"),o.qZA(),o.qZA()}}function vp(e,t){1&e&&(o.TgZ(0,"p"),o._uU(1,"No outgoing routing peer available."),o.qZA())}function qp(e,t){1&e&&(o.TgZ(0,"p"),o._uU(1,"Getting outgoing routing peers..."),o.qZA())}function Sp(e,t){if(1&e&&(o.TgZ(0,"p"),o._uU(1),o.qZA()),2&e){const e=o.oxw(3);o.xp6(1),o.Oqu(e.errorMessage)}}function Fp(e,t){if(1&e&&(o.TgZ(0,"td",46),o.YNc(1,vp,2,0,"p",47),o.YNc(2,qp,2,0,"p",47),o.YNc(3,Sp,2,1,"p",47),o.qZA()),2&e){const e=o.oxw(2);o.xp6(1),o.Q6J("ngIf",(!(null!=e.RoutingPeersOutgoing&&e.RoutingPeersOutgoing.data)||(null==e.RoutingPeersOutgoing||null==e.RoutingPeersOutgoing.data?null:e.RoutingPeersOutgoing.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.GetForwardingHistory.status)===e.apiCallStatusEnum.COMPLETED),o.xp6(1),o.Q6J("ngIf",(!(null!=e.RoutingPeersOutgoing&&e.RoutingPeersOutgoing.data)||(null==e.RoutingPeersOutgoing||null==e.RoutingPeersOutgoing.data?null:e.RoutingPeersOutgoing.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.GetForwardingHistory.status)===e.apiCallStatusEnum.INITIATED),o.xp6(1),o.Q6J("ngIf",(!(null!=e.RoutingPeersOutgoing&&e.RoutingPeersOutgoing.data)||(null==e.RoutingPeersOutgoing||null==e.RoutingPeersOutgoing.data?null:e.RoutingPeersOutgoing.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.GetForwardingHistory.status)===e.apiCallStatusEnum.ERROR)}}function Lp(e,t){if(1&e&&o._UZ(0,"tr",48),2&e){const e=o.oxw(2);o.Q6J("ngClass",o.VKq(1,pp,(null==e.RoutingPeersOutgoing?null:e.RoutingPeersOutgoing.data)&&(null==e.RoutingPeersOutgoing||null==e.RoutingPeersOutgoing.data?null:e.RoutingPeersOutgoing.data.length)>0))}}function kp(e,t){1&e&&o._UZ(0,"tr",49)}function Np(e,t){1&e&&o._UZ(0,"tr",50)}const Up=function(e,t){return{"mt-2":e,"mt-1":t}},Ip=function(){return["no_incoming_event"]},Op=function(e){return{"mt-2":e}},Jp=function(){return["no_outgoing_event"]};function Dp(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"div",4),o.TgZ(1,"div",5),o.TgZ(2,"div",6),o.TgZ(3,"div",7),o._uU(4,"Incoming"),o.qZA(),o.TgZ(5,"mat-form-field",8),o.TgZ(6,"input",9),o.NdJ("ngModelChange",function(t){return o.CHM(e),o.oxw().filterIn=t})("keyup",function(t){return o.CHM(e),o.oxw().applyIncomingFilter(t.target)}),o.qZA(),o.qZA(),o.qZA(),o.TgZ(7,"div",10),o.YNc(8,Wu,1,0,"mat-progress-bar",11),o.TgZ(9,"table",12,13),o.ynx(11,14),o.YNc(12,Xu,2,0,"th",15),o.YNc(13,ju,2,4,"td",16),o.BQk(),o.ynx(14,17),o.YNc(15,Ku,2,0,"th",15),o.YNc(16,ep,2,4,"td",16),o.BQk(),o.ynx(17,18),o.YNc(18,tp,2,0,"th",19),o.YNc(19,np,4,3,"td",20),o.BQk(),o.ynx(20,21),o.YNc(21,ap,2,0,"th",19),o.YNc(22,ip,4,3,"td",20),o.BQk(),o.ynx(23,22),o.YNc(24,sp,3,0,"th",23),o.YNc(25,op,3,0,"td",24),o.BQk(),o.ynx(26,25),o.YNc(27,up,4,3,"td",26),o.BQk(),o.YNc(28,dp,1,3,"tr",27),o.YNc(29,hp,1,0,"tr",28),o.YNc(30,mp,1,0,"tr",29),o.qZA(),o.qZA(),o._UZ(31,"mat-paginator",30,31),o.qZA(),o.TgZ(33,"div",5),o.TgZ(34,"div",6),o.TgZ(35,"div",7),o._uU(36,"Outgoing"),o.qZA(),o.TgZ(37,"mat-form-field",8),o.TgZ(38,"input",9),o.NdJ("ngModelChange",function(t){return o.CHM(e),o.oxw().filterOut=t})("keyup",function(t){return o.CHM(e),o.oxw().applyOutgoingFilter(t.target)}),o.qZA(),o.qZA(),o.qZA(),o.TgZ(39,"div",10),o.YNc(40,gp,1,0,"mat-progress-bar",11),o.TgZ(41,"table",32,33),o.ynx(43,14),o.YNc(44,fp,2,0,"th",15),o.YNc(45,xp,2,4,"td",16),o.BQk(),o.ynx(46,17),o.YNc(47,Zp,2,0,"th",15),o.YNc(48,yp,2,4,"td",16),o.BQk(),o.ynx(49,18),o.YNc(50,Ap,2,0,"th",19),o.YNc(51,Cp,4,3,"td",20),o.BQk(),o.ynx(52,21),o.YNc(53,Tp,2,0,"th",19),o.YNc(54,bp,4,3,"td",20),o.BQk(),o.ynx(55,22),o.YNc(56,wp,3,0,"th",23),o.YNc(57,_p,3,0,"td",34),o.BQk(),o.ynx(58,35),o.YNc(59,Fp,4,3,"td",26),o.BQk(),o.YNc(60,Lp,1,3,"tr",27),o.YNc(61,kp,1,0,"tr",28),o.YNc(62,Np,1,0,"tr",29),o.qZA(),o.qZA(),o._UZ(63,"mat-paginator",30,36),o.qZA(),o.qZA()}if(2&e){const e=o.oxw();o.xp6(2),o.Q6J("ngClass",o.WLB(22,Up,e.screenSize===e.screenSizeEnum.XS,e.screenSize===e.screenSizeEnum.SM)),o.xp6(4),o.Q6J("ngModel",e.filterIn),o.xp6(2),o.Q6J("ngIf",(null==e.apisCallStatus?null:e.apisCallStatus.GetForwardingHistory.status)===e.apiCallStatusEnum.INITIATED),o.xp6(1),o.Q6J("dataSource",e.RoutingPeersIncoming),o.xp6(19),o.Q6J("matFooterRowDef",o.DdM(25,Ip)),o.xp6(1),o.Q6J("matHeaderRowDef",e.displayedColumns)("matHeaderRowDefSticky",e.flgSticky),o.xp6(1),o.Q6J("matRowDefColumns",e.displayedColumns),o.xp6(1),o.Q6J("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)("showFirstLastButtons",e.screenSize!==e.screenSizeEnum.XS),o.xp6(3),o.Q6J("ngClass",o.VKq(26,Op,e.screenSize!==e.screenSizeEnum.LG)),o.xp6(4),o.Q6J("ngModel",e.filterOut),o.xp6(2),o.Q6J("ngIf",(null==e.apisCallStatus?null:e.apisCallStatus.GetForwardingHistory.status)===e.apiCallStatusEnum.INITIATED),o.xp6(1),o.Q6J("dataSource",e.RoutingPeersOutgoing),o.xp6(19),o.Q6J("matFooterRowDef",o.DdM(28,Jp)),o.xp6(1),o.Q6J("matHeaderRowDef",e.displayedColumns)("matHeaderRowDefSticky",e.flgSticky),o.xp6(1),o.Q6J("matRowDefColumns",e.displayedColumns),o.xp6(1),o.Q6J("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)("showFirstLastButtons",e.screenSize!==e.screenSizeEnum.XS)}}let Rp=(()=>{class e{constructor(e,t,n){this.logger=e,this.commonService=t,this.store=n,this.routingPeersData=[],this.displayedColumns=[],this.flgSticky=!1,this.pageSize=f.IV,this.pageSizeOptions=f.TJ,this.screenSize="",this.screenSizeEnum=f.cu,this.errorMessage="",this.filterIn="",this.filterOut="",this.apisCallStatus=null,this.apiCallStatusEnum=f.Bn,this.unSubs=[new p.x,new p.x,new p.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===f.cu.XS?(this.flgSticky=!1,this.displayedColumns=["chan_id","events","actions"]):this.screenSize===f.cu.SM||this.screenSize===f.cu.MD?(this.flgSticky=!1,this.displayedColumns=["chan_id","alias","events","total_amount"]):(this.flgSticky=!0,this.displayedColumns=["chan_id","alias","events","total_amount"])}ngOnInit(){this.store.select("lnd").pipe((0,d.R)(this.unSubs[0])).subscribe(e=>{this.errorMessage="",this.apisCallStatus=e.apisCallStatus,e.apisCallStatus.GetForwardingHistory.status===f.Bn.ERROR&&(this.errorMessage="object"==typeof this.apisCallStatus.GetForwardingHistory.message?JSON.stringify(this.apisCallStatus.GetForwardingHistory.message):this.apisCallStatus.GetForwardingHistory.message),this.routingPeersData=e.forwardingHistory&&e.forwardingHistory.forwarding_events?e.forwardingHistory.forwarding_events:[],this.routingPeersData.length>0&&this.sortIn&&this.paginatorIn&&this.sortOut&&this.paginatorOut&&this.loadRoutingPeersTable(this.routingPeersData),this.logger.info(e)})}onRoutingPeerClick(e,t,n){let a=" Routing Information";a="in"===n?"Incoming"+a:"Outgoing"+a,this.store.dispatch(new ee.wu({data:{type:f.n_.INFORMATION,alertTitle:a,message:[[{key:"chan_id",value:e.chan_id,title:"Channel ID",width:50,type:f.Gi.STRING},{key:"alias",value:e.alias,title:"Peer Alias",width:50,type:f.Gi.STRING}],[{key:"events",value:e.events,title:"Events",width:50,type:f.Gi.NUMBER},{key:"total_amount",value:e.total_amount,title:"Total Amount (Sats)",width:50,type:f.Gi.NUMBER}]]}}))}loadRoutingPeersTable(e){if(this.filterIn="",this.filterOut="",e.length>0){const t=this.groupRoutingPeers(e);this.RoutingPeersIncoming=new Ze.by(t[0]),this.RoutingPeersIncoming.sort=this.sortIn,this.RoutingPeersIncoming.filterPredicate=(e,t)=>JSON.stringify(e).toLowerCase().includes(t),this.RoutingPeersIncoming.paginator=this.paginatorIn,this.logger.info(this.RoutingPeersIncoming),this.RoutingPeersOutgoing=new Ze.by(t[1]),this.RoutingPeersOutgoing.sort=this.sortOut,this.RoutingPeersOutgoing.filterPredicate=(e,t)=>JSON.stringify(e).toLowerCase().includes(t),this.RoutingPeersOutgoing.paginator=this.paginatorOut,this.logger.info(this.RoutingPeersOutgoing)}else this.RoutingPeersIncoming=new Ze.by([]),this.RoutingPeersOutgoing=new Ze.by([])}groupRoutingPeers(e){const t=[],n=[];return e.forEach(e=>{const a=t.find(t=>t.chan_id===e.chan_id_in),i=n.find(t=>t.chan_id===e.chan_id_out);a?(a.events++,a.total_amount=+a.total_amount+ +e.amt_in):t.push({chan_id:e.chan_id_in,alias:e.alias_in,events:1,total_amount:+e.amt_in}),i?(i.events++,i.total_amount=+i.total_amount+ +e.amt_out):n.push({chan_id:e.chan_id_out,alias:e.alias_out,events:1,total_amount:+e.amt_out})}),[this.commonService.sortDescByKey(t,"total_amount"),this.commonService.sortDescByKey(n,"total_amount")]}applyIncomingFilter(e){this.RoutingPeersIncoming.filter=e.value.trim().toLowerCase()}applyOutgoingFilter(e){this.RoutingPeersOutgoing.filter=e.value.trim().toLowerCase()}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(Z.mQ),o.Y36(C.v),o.Y36(y.yh))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-routing-peers"]],viewQuery:function(e,t){if(1&e&&(o.Gf(Bu,5,xe.YE),o.Gf(Gu,5,xe.YE),o.Gf(Hu,5),o.Gf(zu,5)),2&e){let e;o.iGM(e=o.CRH())&&(t.sortIn=e.first),o.iGM(e=o.CRH())&&(t.sortOut=e.first),o.iGM(e=o.CRH())&&(t.paginatorIn=e.first),o.iGM(e=o.CRH())&&(t.paginatorOut=e.first)}},features:[o._Bn([{provide:fe.ye,useValue:(0,f.pt)("Peers")}])],decls:3,vars:2,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"padding-gap-x"],["class","p-2 error-border my-2",4,"ngIf"],["fxLayout","column","fxLayout.gt-md","row","fxFlex","100","fxLayoutAlign","space-between start","class","page-sub-title-container",4,"ngIf"],[1,"p-2","error-border","my-2"],["fxLayout","column","fxLayout.gt-md","row","fxFlex","100","fxLayoutAlign","space-between start",1,"page-sub-title-container"],["fxLayout","column","fxFlex","49","fxLayoutAlign","start stretch",1,"mb-4"],["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch",1,"page-sub-title-container","w-100",3,"ngClass"],["fxFlex","70"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"ngModel","ngModelChange","keyup"],["fxLayout","column","fxLayoutAlign","start start","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",1,"overflow-auto","incoming-table",3,"dataSource"],["tableIn",""],["matColumnDef","chan_id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","alias"],["matColumnDef","events"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","total_amount"],["matColumnDef","actions"],["mat-header-cell","","class","pr-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-2","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_incoming_event"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["paginatorIn",""],["mat-table","","matSort","",1,"overflow-auto","outgoing-table",3,"dataSource"],["tableOut",""],["mat-cell","","class","pl-2",4,"matCellDef"],["matColumnDef","no_outgoing_event"],["paginatorOut",""],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"ngStyle"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["mat-cell",""],["fxLayoutAlign","end center"],["mat-header-cell","",1,"pr-3"],["mat-cell","","fxLayoutAlign","end center",1,"pl-2"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""],["mat-cell","",1,"pl-2"],["mat-stroked-button","","color","primary","type","button","tabindex","5",3,"click"]],template:function(e,t){1&e&&(o.TgZ(0,"div",0),o.YNc(1,Vu,2,1,"div",1),o.YNc(2,Dp,65,29,"div",2),o.qZA()),2&e&&(o.xp6(1),o.Q6J("ngIf",""!==t.errorMessage),o.xp6(1),o.Q6J("ngIf",""===t.errorMessage))},directives:[l.xw,l.Wh,a.O5,l.yH,a.mk,v.oO,D.KE,Ce.Nt,Ae.Fj,Ae.JJ,Ae.On,E.$V,Ze.BZ,xe.YE,Ze.w1,Ze.fO,Ze.Dz,Ze.mD,Ze.Ke,Ze.as,Ze.nj,fe.NW,r.pW,Ze.ge,xe.nU,Ze.ev,a.PC,v.Zl,q.lW,Ze.yh,Ze.Q2,Ze.XQ,Ze.Gk],pipes:[a.JJ],styles:[".mat-column-alias[_ngcontent-%COMP%], .mat-column-chan_id[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),e})();function Mp(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"div",7),o.NdJ("click",function(){const t=o.CHM(e).$implicit;return o.oxw().activeLink=t.link}),o._uU(1),o.qZA()}if(2&e){const e=t.$implicit,n=o.oxw();o.s9C("routerLink",e.link),o.Q6J("active",n.activeLink===e.link),o.xp6(1),o.Oqu(e.name)}}let Ep=(()=>{class e{constructor(e){this.router=e,this.faChartBar=g.koM,this.links=[{link:"routingfees",name:"Routing Fees"},{link:"transactions",name:"Transactions"}],this.activeLink=this.links[0].link,this.unSubs=[new p.x,new p.x,new p.x,new p.x]}ngOnInit(){const e=this.links.find(e=>this.router.url.includes(e.link));this.activeLink=e?e.link:this.links[0].link,this.router.events.pipe((0,d.R)(this.unSubs[0]),(0,h.h)(e=>e instanceof i.Av)).subscribe(e=>{const t=this.links.find(t=>e.urlAfterRedirects.includes(t.link));this.activeLink=t?t.link:this.links[0].link})}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(i.F0))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-reports"]],decls:10,vars:2,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(e,t){1&e&&(o.TgZ(0,"div",0),o._UZ(1,"fa-icon",1),o.TgZ(2,"span",2),o._uU(3,"Reports"),o.qZA(),o.qZA(),o.TgZ(4,"div",3),o.TgZ(5,"mat-card"),o.TgZ(6,"mat-card-content",4),o.TgZ(7,"nav",5),o.YNc(8,Mp,2,3,"div",6),o.qZA(),o._UZ(9,"router-outlet"),o.qZA(),o.qZA(),o.qZA()),2&e&&(o.xp6(1),o.Q6J("icon",t.faChartBar),o.xp6(7),o.Q6J("ngForOf",t.links))},directives:[l.xw,l.Wh,T.BN,w.a8,w.dn,ge.BU,a.sg,i.lC,ge.Nj,i.rH],styles:[""]}),e})();var Qp=n(4833),Yp=n(4979),Pp=n(4018),Bp=n(1905);function Gp(e,t){1&e&&o._UZ(0,"mat-progress-bar",10)}function Hp(e,t){if(1&e&&(o.TgZ(0,"div",11),o._uU(1),o.ALo(2,"number"),o.ALo(3,"number"),o.qZA()),2&e){const e=o.oxw();o.Q6J("@fadeIn",e.events.total_fee_msat),o.xp6(1),o.AsE("",o.xi3(2,3,e.events.total_fee_msat/1e3||0,"1.0-2")," Sats/",o.lcZ(3,6,(null==e.events||null==e.events.forwarding_events?null:e.events.forwarding_events.length)||0)," Events")}}function zp(e,t){1&e&&(o.TgZ(0,"div",12),o._uU(1,"No fee report for the selected period"),o.qZA())}const Vp=function(e){return{"error-border":e}};function Wp(e,t){if(1&e&&(o.TgZ(0,"div",13),o._uU(1),o.qZA()),2&e){const e=o.oxw();o.Q6J("ngClass",o.VKq(2,Vp,"Getting fee report..."!==e.errorMessage&&""!==e.errorMessage)),o.xp6(1),o.Oqu(e.errorMessage)}}function Xp(e,t){if(1&e&&(o.TgZ(0,"span"),o.TgZ(1,"span",16),o._uU(2),o.ALo(3,"number"),o.qZA(),o.TgZ(4,"span",16),o._uU(5),o.ALo(6,"number"),o.qZA(),o.qZA()),2&e){const e=t.model;o.xp6(2),o.hij("Events: ",o.lcZ(3,2,e.extra.totalEvents||0),""),o.xp6(3),o.hij("Fee: ",o.xi3(6,4,e.value||0,"1.0-2"),"")}}function $p(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"ngx-charts-bar-vertical",14),o.NdJ("select",function(t){return o.CHM(e),o.oxw().onChartBarSelected(t)})("mouseup",function(t){return o.CHM(e),o.oxw().onChartMouseUp(t)}),o.YNc(1,Xp,7,7,"ng-template",null,15,o.W1O),o.qZA()}if(2&e){const e=o.oxw();o.Q6J("view",e.view)("results",e.feeReportData)("gradient",!1)("xAxis",!0)("yAxis",!0)("showXAxisLabel",!0)("showYAxisLabel",e.showYAxisLabel)("xAxisLabel",e.xAxisLabel)("yAxisLabel",e.yAxisLabel)("showGridLines",!1)("showDataLabel",!1)}}function jp(e,t){if(1&e&&o._UZ(0,"rtl-forwarding-history",17),2&e){const e=o.oxw();o.Q6J("eventsData",null==e.events?null:e.events.forwarding_events)("filterValue",e.eventFilterValue)}}let Kp=(()=>{class e{constructor(e,t,n){this.dataService=e,this.commonService=t,this.store=n,this.reportPeriod=f.op[0],this.secondsInADay=86400,this.events={},this.eventFilterValue="",this.today=new Date(Date.now()),this.startDate=new Date(this.today.getFullYear(),this.today.getMonth(),1,0,0,0),this.endDate=new Date(this.today.getFullYear(),this.today.getMonth(),this.getMonthDays(this.today.getMonth(),this.today.getFullYear()),23,59,59),this.feeReportData=[],this.view=[350,350],this.screenPaddingX=100,this.gradient=!0,this.xAxisLabel="Date",this.yAxisLabel="Fee (Sats)",this.showYAxisLabel=!0,this.screenSize="",this.screenSizeEnum=f.cu,this.errorMessage="",this.unSubs=[new p.x,new p.x,new p.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.showYAxisLabel=!(this.screenSize===f.cu.XS||this.screenSize===f.cu.SM),this.store.select(Yp.H9).pipe((0,d.R)(this.unSubs[0])).subscribe(e=>{e.identity_pubkey&&this.fetchEvents(this.startDate,this.endDate)})}ngAfterContentInit(){const e=this.commonService.getContainerSize();switch(this.screenSize){case f.cu.MD:this.screenPaddingX=e.width/10;break;case f.cu.LG:this.screenPaddingX=e.width/16;break;default:this.screenPaddingX=e.width/20}this.view=[e.width-this.screenPaddingX,e.height/2.2]}fetchEvents(e,t){this.errorMessage=f.m6.GET_FEE_REPORT;const n=Math.round(e.getTime()/1e3).toString(),a=Math.round(t.getTime()/1e3).toString();this.dataService.getForwardingHistory(n,a).pipe((0,d.R)(this.unSubs[1])).subscribe({next:t=>{this.errorMessage="",t.forwarding_events&&t.forwarding_events.length?(t.forwarding_events=t.forwarding_events.reverse(),this.events=t,this.feeReportData=this.prepareFeeReport(e)):(this.events={},this.feeReportData=[])},error:e=>{this.errorMessage=e}})}onChartMouseUp(e){"svg"===e.srcElement.tagName&&e.srcElement.classList.length>0&&"ngx-charts"===e.srcElement.classList[0]&&(this.eventFilterValue="")}onChartBarSelected(e){this.eventFilterValue=this.reportPeriod===f.op[1]?e.name+"/"+this.startDate.getFullYear():e.name.toString().padStart(2,"0")+"/"+f.gg[this.startDate.getMonth()].name+"/"+this.startDate.getFullYear()}prepareFeeReport(e){const t=Math.round(e.getTime()/1e3),n=[];if(this.reportPeriod===f.op[1]){for(let e=0;e<12;e++)n.push({name:f.gg[e].name,value:1e-9,extra:{totalEvents:0}});this.events.forwarding_events.map(e=>{const t=new Date(1e3*+e.timestamp).getMonth();return n[t].value=n[t].value+ +e.fee_msat/1e3,n[t].extra.totalEvents=n[t].extra.totalEvents+1,this.events.total_fee_msat=(this.events.total_fee_msat?this.events.total_fee_msat:0)+ +e.fee_msat,this.events})}else{for(let t=0;t{const a=Math.floor((+e.timestamp-t)/this.secondsInADay);return n[a].value=n[a].value+ +e.fee_msat/1e3,n[a].extra.totalEvents=n[a].extra.totalEvents+1,this.events.total_fee_msat=(this.events.total_fee_msat?this.events.total_fee_msat:0)+ +e.fee_msat,this.events})}return n}onSelectionChange(e){const t=e.selDate.getMonth(),n=e.selDate.getFullYear();this.reportPeriod=e.selScrollRange,this.reportPeriod===f.op[1]?(this.startDate=new Date(n,0,1,0,0,0),this.endDate=new Date(n,11,31,23,59,59)):(this.startDate=new Date(n,t,1,0,0,0),this.endDate=new Date(n,t,this.getMonthDays(t,n),23,59,59)),this.fetchEvents(this.startDate,this.endDate),this.eventFilterValue=""}getMonthDays(e,t){return 1===e&&t%4==0?f.gg[e].days+1:f.gg[e].days}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(dt.D),o.Y36(C.v),o.Y36(y.yh))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-fee-report"]],hostBindings:function(e,t){1&e&&o.NdJ("mouseup",function(e){return t.onChartMouseUp(e)})},decls:11,vars:6,consts:[["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x-large"],[3,"stepChanged"],["mode","indeterminate","class","mt-2",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 font-bold-700 mt-1",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 mt-1",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 mt-1",3,"ngClass",4,"ngIf"],[1,"mt-1"],["class","one-color",3,"view","results","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","select","mouseup",4,"ngIf"],[3,"eventsData","filterValue",4,"ngIf"],["mode","indeterminate",1,"mt-2"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","font-bold-700","mt-1"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","mt-1"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","mt-1",3,"ngClass"],[1,"one-color",3,"view","results","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","select","mouseup"],["tooltipTemplate",""],[1,"tooltip-label"],[3,"eventsData","filterValue"]],template:function(e,t){1&e&&(o.TgZ(0,"div",0),o.TgZ(1,"rtl-horizontal-scroller",1),o.NdJ("stepChanged",function(e){return t.onSelectionChange(e)}),o.qZA(),o.YNc(2,Gp,1,0,"mat-progress-bar",2),o.TgZ(3,"div",3),o.YNc(4,Hp,4,8,"div",4),o.YNc(5,zp,2,0,"div",5),o.YNc(6,Wp,2,4,"div",6),o.TgZ(7,"div",7),o.YNc(8,$p,3,11,"ngx-charts-bar-vertical",8),o.qZA(),o.TgZ(9,"div",7),o.YNc(10,jp,1,2,"rtl-forwarding-history",9),o.qZA(),o.qZA(),o.qZA()),2&e&&(o.xp6(2),o.Q6J("ngIf","Getting fee report..."===t.errorMessage),o.xp6(2),o.Q6J("ngIf",t.feeReportData.length>0&&t.events.forwarding_events),o.xp6(1),o.Q6J("ngIf",(t.feeReportData.length<=0||!t.events.forwarding_events)&&""===t.errorMessage),o.xp6(1),o.Q6J("ngIf",""!==t.errorMessage),o.xp6(2),o.Q6J("ngIf",t.feeReportData.length>0&&t.events.forwarding_events),o.xp6(2),o.Q6J("ngIf",t.events&&(null==t.events?null:t.events.forwarding_events)))},directives:[l.xw,l.Wh,l.yH,Pp.D,a.O5,r.pW,a.mk,v.oO,Bp.K$,Pu],pipes:[a.JJ],styles:[""],data:{animation:[Qp.J]}}),e})();var ed=n(6590);function td(e,t){1&e&&(o.TgZ(0,"div",11),o._UZ(1,"mat-progress-bar",12),o.TgZ(2,"span"),o._uU(3,"Getting transactions data..."),o.qZA(),o.qZA())}function nd(e,t){if(1&e&&(o.TgZ(0,"div",13),o._uU(1),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Oqu(e.errorMessage)}}function ad(e,t){if(1&e&&(o.TgZ(0,"div",16),o._uU(1),o.ALo(2,"number"),o.ALo(3,"number"),o.qZA()),2&e){const e=o.oxw(2);o.xp6(1),o.AsE(" Paid ",o.xi3(2,2,e.transactionsReportSummary.amountPaidSelectedPeriod/1e3||0,"1.0-2")," Sats/",o.lcZ(3,5,e.transactionsReportSummary.paymentsSelectedPeriod)," Payments ")}}function id(e,t){if(1&e&&(o.TgZ(0,"div",16),o._uU(1),o.ALo(2,"number"),o.ALo(3,"number"),o.qZA()),2&e){const e=o.oxw(2);o.xp6(1),o.AsE(" Received ",o.xi3(2,2,e.transactionsReportSummary.amountReceivedSelectedPeriod/1e3||0,"1.0-2")," Sats/",o.lcZ(3,5,e.transactionsReportSummary.invoicesSelectedPeriod)," Invoices ")}}function sd(e,t){if(1&e&&(o.TgZ(0,"div",14),o.YNc(1,ad,4,7,"div",15),o.YNc(2,id,4,7,"div",15),o.qZA()),2&e){const e=o.oxw();o.Q6J("@fadeIn",e.transactionsReportSummary),o.xp6(1),o.Q6J("ngIf",e.transactionsReportSummary.paymentsSelectedPeriod>0),o.xp6(1),o.Q6J("ngIf",e.transactionsReportSummary.invoicesSelectedPeriod)}}function od(e,t){1&e&&(o.TgZ(0,"div",17),o._uU(1,"No transactions report for the selected period"),o.qZA())}function ld(e,t){if(1&e&&(o.TgZ(0,"span",21),o._uU(1),o.ALo(2,"number"),o.ALo(3,"number"),o.qZA()),2&e){const e=t.model;o.xp6(1),o.HOy("",e.name,": ",o.xi3(2,4,e.value||0,"1.0-2"),"/# ","Paid"===e.name?"Payments":"Invoices",": ",o.lcZ(3,7,(null==e.extra?null:e.extra.total)||0),"")}}function rd(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"ngx-charts-bar-vertical-2d",19),o.NdJ("select",function(t){return o.CHM(e),o.oxw(2).onChartBarSelected(t)})("mouseup",function(t){return o.CHM(e),o.oxw(2).onChartMouseUp(t)}),o.YNc(1,ld,4,9,"ng-template",null,20,o.W1O),o.qZA()}if(2&e){const e=o.oxw(2);o.Q6J("view",e.view)("results",e.transactionsReportData)("noBarWhenZero",!1)("gradient",!1)("xAxis",!0)("yAxis",!0)("showXAxisLabel",!0)("showYAxisLabel",e.showYAxisLabel)("xAxisLabel",e.xAxisLabel)("yAxisLabel",e.yAxisLabel)("showGridLines",!1)("showDataLabel",!1)("groupPadding",e.reportPeriod===e.scrollRanges[0]?2:8)}}function cd(e,t){if(1&e&&(o.TgZ(0,"div",9),o.YNc(1,rd,3,13,"ngx-charts-bar-vertical-2d",18),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Q6J("ngIf",e.transactionsReportData.length>0&&e.transactionsNonZeroReportData.length>0)}}function ud(e,t){if(1&e&&o._UZ(0,"rtl-transactions-report-table",22),2&e){const e=o.oxw();o.Q6J("dataList",e.transactionsNonZeroReportData)("dataRange",e.reportPeriod)("filterValue",e.transactionFilterValue)}}let pd=(()=>{class e{constructor(e,t){this.commonService=e,this.store=t,this.scrollRanges=f.op,this.reportPeriod=f.op[0],this.secondsInADay=86400,this.payments=[],this.invoices=[],this.transactionsReportSummary={paymentsSelectedPeriod:0,invoicesSelectedPeriod:0,amountPaidSelectedPeriod:0,amountReceivedSelectedPeriod:0},this.transactionFilterValue="",this.today=new Date(Date.now()),this.startDate=new Date(this.today.getFullYear(),this.today.getMonth(),1,0,0,0),this.endDate=new Date(this.today.getFullYear(),this.today.getMonth(),this.getMonthDays(this.today.getMonth(),this.today.getFullYear()),23,59,59),this.transactionsReportData=[{date:"",name:"1",series:[{extra:{total:0},name:"Paid",value:0},{extra:{total:0},name:"Received",value:0}]}],this.transactionsNonZeroReportData=[{amount_paid:0,amount_received:0,date:"",num_invoices:0,num_payments:0}],this.view=[350,350],this.screenPaddingX=100,this.gradient=!0,this.xAxisLabel="Date",this.yAxisLabel="Amount (Sats)",this.showYAxisLabel=!0,this.screenSize="",this.screenSizeEnum=f.cu,this.errorMessage="",this.apisCallStatus=null,this.apiCallStatusEnum=f.Bn,this.unSubs=[new p.x,new p.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.showYAxisLabel=!(this.screenSize===f.cu.XS||this.screenSize===f.cu.SM),this.store.select("lnd").pipe((0,d.R)(this.unSubs[0])).subscribe(e=>{this.errorMessage="",this.apisCallStatus=e.apisCallStatus,e.apisCallStatus.FetchLightningTransactions.status===f.Bn.ERROR&&(this.errorMessage="object"==typeof this.apisCallStatus.FetchLightningTransactions.message?JSON.stringify(this.apisCallStatus.FetchLightningTransactions.message):this.apisCallStatus.FetchLightningTransactions.message),this.payments=e.allLightningTransactions.paymentsAll?e.allLightningTransactions.paymentsAll.payments:[],this.invoices=e.allLightningTransactions.invoicesAll?e.allLightningTransactions.invoicesAll.invoices:[],(this.payments.length>0||this.invoices.length>0)&&(this.transactionsReportData=this.filterTransactionsForSelectedPeriod(this.startDate,this.endDate),this.transactionsNonZeroReportData=this.prepareTableData())})}ngAfterContentInit(){const e=this.commonService.getContainerSize();switch(this.screenSize){case f.cu.MD:this.screenPaddingX=e.width/10;break;case f.cu.LG:this.screenPaddingX=e.width/16;break;default:this.screenPaddingX=e.width/20}this.view=[e.width-this.screenPaddingX,e.height/2.2]}onChartMouseUp(e){"svg"===e.srcElement.tagName&&e.srcElement.classList.length>0&&"ngx-charts"===e.srcElement.classList[0]&&(this.transactionFilterValue="")}onChartBarSelected(e){this.transactionFilterValue=this.reportPeriod===f.op[1]?e.series+"/"+this.startDate.getFullYear():e.series.toString().padStart(2,"0")+"/"+f.gg[this.startDate.getMonth()].name+"/"+this.startDate.getFullYear()}filterTransactionsForSelectedPeriod(e,t){const n=Math.round(e.getTime()/1e3),a=Math.round(t.getTime()/1e3),i=[];this.transactionsNonZeroReportData=[],this.transactionsReportSummary={paymentsSelectedPeriod:0,invoicesSelectedPeriod:0,amountPaidSelectedPeriod:0,amountReceivedSelectedPeriod:0};const s=this.payments.filter(e=>"SUCCEEDED"===e.status&&e.creation_date>=n&&e.creation_datee.settled&&+e.creation_date>=n&&+e.creation_date{const t=new Date(1e3*+e.creation_date).getMonth();return this.transactionsReportSummary.amountPaidSelectedPeriod=this.transactionsReportSummary.amountPaidSelectedPeriod+ +e.value_msat+ +e.fee_msat,i[t].series[0].value=i[t].series[0].value+(+e.value_msat+ +e.fee_msat)/1e3,i[t].series[0].extra.total=i[t].series[0].extra.total+1,this.transactionsReportSummary}),o.map(e=>{const t=new Date(1e3*+e.creation_date).getMonth();return this.transactionsReportSummary.amountReceivedSelectedPeriod=this.transactionsReportSummary.amountReceivedSelectedPeriod+ +e.amt_paid_msat,i[t].series[1].value=i[t].series[1].value+ +e.amt_paid_msat/1e3,i[t].series[1].extra.total=i[t].series[1].extra.total+1,this.transactionsReportSummary})}else{for(let t=0;t{const t=Math.floor((+e.creation_date-n)/this.secondsInADay);return this.transactionsReportSummary.amountPaidSelectedPeriod=this.transactionsReportSummary.amountPaidSelectedPeriod+ +e.value_msat+ +e.fee_msat,i[t].series[0].value=i[t].series[0].value+(+e.value_msat+ +e.fee_msat)/1e3,i[t].series[0].extra.total=i[t].series[0].extra.total+1,this.transactionsReportSummary}),o.map(e=>{const t=Math.floor((+e.creation_date-n)/this.secondsInADay);return this.transactionsReportSummary.amountReceivedSelectedPeriod=this.transactionsReportSummary.amountReceivedSelectedPeriod+ +e.amt_paid_msat,i[t].series[1].value=i[t].series[1].value+ +e.amt_paid_msat/1e3,i[t].series[1].extra.total=i[t].series[1].extra.total+1,this.transactionsReportSummary})}return i}prepareTableData(){return this.transactionsReportData.reduce((e,t)=>t.series[0].extra.total>0||t.series[1].extra.total>0?e.concat({date:t.date,amount_paid:t.series[0].value,num_payments:t.series[0].extra.total,amount_received:t.series[1].value,num_invoices:t.series[1].extra.total}):e,[])}onSelectionChange(e){const t=e.selDate.getMonth(),n=e.selDate.getFullYear();this.reportPeriod=e.selScrollRange,this.reportPeriod===f.op[1]?(this.startDate=new Date(n,0,1,0,0,0),this.endDate=new Date(n,11,31,23,59,59)):(this.startDate=new Date(n,t,1,0,0,0),this.endDate=new Date(n,t,this.getMonthDays(t,n),23,59,59)),this.transactionsReportData=this.filterTransactionsForSelectedPeriod(this.startDate,this.endDate),this.transactionsNonZeroReportData=this.prepareTableData(),this.transactionFilterValue=""}getMonthDays(e,t){return 1===e&&t%4==0?f.gg[e].days+1:f.gg[e].days}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(C.v),o.Y36(y.yh))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-transactions-report"]],hostBindings:function(e,t){1&e&&o.NdJ("mouseup",function(e){return t.onChartMouseUp(e)})},decls:11,vars:6,consts:[["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x-large"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100"],[3,"stepChanged"],["class","p-2",4,"ngIf"],["class","p-2 error-border my-2",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 font-bold-700 mt-1",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 mt-1",4,"ngIf"],["class","mt-1",4,"ngIf"],[1,"mt-1"],[3,"dataList","dataRange","filterValue",4,"ngIf"],[1,"p-2"],["mode","indeterminate"],[1,"p-2","error-border","my-2"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","font-bold-700","mt-1"],["fxLayout","row","fxLayoutAlign","start stretch","fxFlex","100",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start stretch","fxFlex","100"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","mt-1"],["class","two-color",3,"view","results","noBarWhenZero","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","groupPadding","select","mouseup",4,"ngIf"],[1,"two-color",3,"view","results","noBarWhenZero","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","groupPadding","select","mouseup"],["tooltipTemplate",""],[1,"tooltip-label"],[3,"dataList","dataRange","filterValue"]],template:function(e,t){1&e&&(o.TgZ(0,"div",0),o.TgZ(1,"div",1),o.TgZ(2,"div",2),o.TgZ(3,"rtl-horizontal-scroller",3),o.NdJ("stepChanged",function(e){return t.onSelectionChange(e)}),o.qZA(),o.YNc(4,td,4,0,"div",4),o.YNc(5,nd,2,1,"div",5),o.YNc(6,sd,3,3,"div",6),o.YNc(7,od,2,0,"div",7),o.YNc(8,cd,2,1,"div",8),o.TgZ(9,"div",9),o.YNc(10,ud,1,3,"rtl-transactions-report-table",10),o.qZA(),o.qZA(),o.qZA(),o.qZA()),2&e&&(o.xp6(4),o.Q6J("ngIf",t.apisCallStatus.FetchLightningTransactions.status===t.apiCallStatusEnum.INITIATED),o.xp6(1),o.Q6J("ngIf",t.apisCallStatus.FetchLightningTransactions.status===t.apiCallStatusEnum.ERROR),o.xp6(1),o.Q6J("ngIf",t.transactionsNonZeroReportData.length>0&&t.apisCallStatus.FetchLightningTransactions.status===t.apiCallStatusEnum.COMPLETED),o.xp6(1),o.Q6J("ngIf",t.transactionsNonZeroReportData.length<=0&&t.apisCallStatus.FetchLightningTransactions.status===t.apiCallStatusEnum.COMPLETED),o.xp6(1),o.Q6J("ngIf",t.transactionsNonZeroReportData.length>0&&t.apisCallStatus.FetchLightningTransactions.status===t.apiCallStatusEnum.COMPLETED),o.xp6(2),o.Q6J("ngIf",t.transactionsNonZeroReportData.length>0&&t.apisCallStatus.FetchLightningTransactions.status===t.apiCallStatusEnum.COMPLETED))},directives:[l.xw,l.Wh,l.yH,Pp.D,a.O5,r.pW,Bp.H5,ed.g],pipes:[a.JJ],styles:[""],data:{animation:[Qp.J]}}),e})();const dd=["form"];function hd(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"UTXO Label is required."),o.qZA())}function md(e,t){if(1&e&&(o.TgZ(0,"span"),o._uU(1),o.qZA()),2&e){const e=o.oxw(2);o.xp6(1),o.Oqu(e.labelError)}}function gd(e,t){if(1&e&&(o.TgZ(0,"div",16),o._UZ(1,"fa-icon",17),o.YNc(2,md,2,1,"span",11),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Q6J("icon",e.faExclamationTriangle),o.xp6(1),o.Q6J("ngIf",""!==e.labelError)}}let fd=(()=>{class e{constructor(e,t,n,a,i,s){this.dialogRef=e,this.data=t,this.dataService=n,this.store=a,this.snackBar=i,this.commonService=s,this.faExclamationTriangle=g.eHv,this.utxo=null,this.label="",this.labelError="",this.unSubs=[new p.x,new p.x,new p.x,new p.x,new p.x]}ngOnInit(){this.utxo=this.data.utxo,this.label=this.utxo.label}onLabelUTXO(){if(!this.label||""===this.label)return!0;this.labelError="",this.dataService.labelUTXO(this.utxo.outpoint.txid_bytes,this.label,!0).pipe((0,d.R)(this.unSubs[0])).subscribe({next:e=>{this.store.dispatch(new x.eL),this.store.dispatch(new x.Zt),this.snackBar.open("Successfully labelled the UTXO."),this.dialogRef.close()},error:e=>{this.labelError=e}})}resetData(){this.labelError="",this.label=""}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(ye.so),o.Y36(ye.WI),o.Y36(dt.D),o.Y36(y.yh),o.Y36(Ai.ux),o.Y36(C.v))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-on-chain-lebel-modal"]],viewQuery:function(e,t){if(1&e&&o.Gf(dd,7),2&e){let e;o.iGM(e=o.CRH())&&(t.form=e.first)}},decls:20,vars:4,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayout","row wrap","fxLayoutAlign","space-between start","fxFlex","100",1,"overflow-x-hidden",3,"submit","reset"],["form","ngForm"],["fxFlex.gt-sm","100"],["autoFocus","","matInput","","placeholder","UTXO Label","name","label","tabindex","1","required","",3,"ngModel","ngModelChange"],[4,"ngIf"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","7","type","reset",1,"mr-1"],["mat-flat-button","","color","primary","type","submit","tabindex","8"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"]],template:function(e,t){1&e&&(o.TgZ(0,"div",0),o.TgZ(1,"div",1),o.TgZ(2,"mat-card-header",2),o.TgZ(3,"div",3),o.TgZ(4,"span",4),o._uU(5,"Label UTXO"),o.qZA(),o.qZA(),o.TgZ(6,"button",5),o._uU(7,"X"),o.qZA(),o.qZA(),o.TgZ(8,"mat-card-content",6),o.TgZ(9,"form",7,8),o.NdJ("submit",function(){return t.onLabelUTXO()})("reset",function(){return t.resetData()}),o.TgZ(11,"mat-form-field",9),o.TgZ(12,"input",10),o.NdJ("ngModelChange",function(e){return t.label=e}),o.qZA(),o.YNc(13,hd,2,0,"mat-error",11),o.qZA(),o.YNc(14,gd,3,2,"div",12),o.TgZ(15,"div",13),o.TgZ(16,"button",14),o._uU(17,"Clear"),o.qZA(),o.TgZ(18,"button",15),o._uU(19,"Label UTXO"),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA()),2&e&&(o.xp6(6),o.Q6J("mat-dialog-close",!1),o.xp6(6),o.Q6J("ngModel",t.label),o.xp6(1),o.Q6J("ngIf",!t.label),o.xp6(1),o.Q6J("ngIf",""!==t.labelError))},directives:[l.xw,l.yH,w.dk,l.Wh,q.lW,ye.ZT,w.dn,Ae._Y,Ae.JL,Ae.F,D.KE,Ce.Nt,Ae.Fj,Te.h,Ae.Q7,Ae.JJ,Ae.On,a.O5,D.TO,T.BN],styles:[""]}),e})();function xd(e,t){1&e&&o._UZ(0,"mat-progress-bar",28)}function Zd(e,t){1&e&&(o.TgZ(0,"th",29),o._uU(1," Transaction ID "),o.qZA())}function yd(e,t){1&e&&(o.TgZ(0,"span",35),o.TgZ(1,"mat-icon",36),o._uU(2,"warning"),o.qZA(),o.qZA())}function Ad(e,t){if(1&e&&(o.TgZ(0,"span"),o.YNc(1,yd,3,0,"span",34),o.qZA()),2&e){const e=o.oxw().$implicit;o.oxw();const t=o.MAs(34);o.xp6(1),o.Q6J("ngIf",e.amount_sat<1e3)("ngIfElse",t)}}const Cd=function(e){return{"max-width":e}};function Td(e,t){if(1&e&&(o.TgZ(0,"td",30),o.TgZ(1,"span",31),o.YNc(2,Ad,2,2,"span",32),o.TgZ(3,"span",33),o._uU(4),o.qZA(),o.qZA(),o.qZA()),2&e){const e=t.$implicit,n=o.oxw();o.Q6J("ngStyle",o.VKq(3,Cd,n.screenSize===n.screenSizeEnum.XS?"12rem":"25rem")),o.xp6(2),o.Q6J("ngIf",n.utxos.length>0&&!n.isDustUTXO),o.xp6(2),o.Oqu(e.outpoint.txid_str)}}function bd(e,t){1&e&&(o.TgZ(0,"th",37),o._uU(1," Output "),o.qZA())}function wd(e,t){if(1&e&&(o.TgZ(0,"td",38),o.TgZ(1,"span",39),o._uU(2),o.qZA(),o.qZA()),2&e){const e=t.$implicit;o.xp6(2),o.Oqu(e.outpoint.output_index)}}function _d(e,t){1&e&&(o.TgZ(0,"th",29),o._uU(1," Label "),o.qZA())}function vd(e,t){if(1&e&&(o.TgZ(0,"td",30),o._uU(1),o.qZA()),2&e){const e=t.$implicit,n=o.oxw();o.Q6J("ngStyle",o.VKq(2,Cd,n.screenSize===n.screenSizeEnum.XS?"12rem":"25rem")),o.xp6(1),o.hij(" ",null==e?null:e.label," ")}}function qd(e,t){1&e&&(o.TgZ(0,"th",37),o._uU(1," Amount (Sats) "),o.qZA())}function Sd(e,t){if(1&e&&(o.TgZ(0,"td",38),o.TgZ(1,"span",39),o._uU(2),o.ALo(3,"number"),o.qZA(),o.qZA()),2&e){const e=t.$implicit;o.xp6(2),o.Oqu(o.lcZ(3,1,e.amount_sat||0))}}function Fd(e,t){1&e&&(o.TgZ(0,"th",37),o._uU(1," Confirmations "),o.qZA())}function Ld(e,t){if(1&e&&(o.TgZ(0,"td",38),o.TgZ(1,"span",39),o._uU(2),o.ALo(3,"number"),o.qZA(),o.qZA()),2&e){const e=t.$implicit;o.xp6(2),o.Oqu(o.lcZ(3,1,e.confirmations||0))}}function kd(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"th",40),o.TgZ(1,"div",41),o.TgZ(2,"mat-select",42),o._UZ(3,"mat-select-trigger"),o.TgZ(4,"mat-option",43),o.NdJ("click",function(){return o.CHM(e),o.oxw().onDownloadCSV()}),o._uU(5,"Download CSV"),o.qZA(),o.qZA(),o.qZA(),o.qZA()}}function Nd(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"td",44),o.TgZ(1,"div",45),o.TgZ(2,"mat-select",46),o._UZ(3,"mat-select-trigger"),o.TgZ(4,"mat-option",43),o.NdJ("click",function(){const t=o.CHM(e).$implicit;return o.oxw().onUTXOClick(t)}),o._uU(5,"View Info"),o.qZA(),o.TgZ(6,"mat-option",43),o.NdJ("click",function(){const t=o.CHM(e).$implicit;return o.oxw().onLabelUTXO(t)}),o._uU(7,"Label"),o.qZA(),o.TgZ(8,"mat-option",43),o.NdJ("click",function(){const t=o.CHM(e).$implicit;return o.oxw().onLeaseUTXO(t)}),o._uU(9,"Lease"),o.qZA(),o.qZA(),o.qZA(),o.qZA()}}function Ud(e,t){1&e&&(o.TgZ(0,"p"),o._uU(1,"No UTXO available."),o.qZA())}function Id(e,t){1&e&&(o.TgZ(0,"p"),o._uU(1,"Getting UTXOs..."),o.qZA())}function Od(e,t){if(1&e&&(o.TgZ(0,"p"),o._uU(1),o.qZA()),2&e){const e=o.oxw(2);o.xp6(1),o.Oqu(e.errorMessage)}}function Jd(e,t){if(1&e&&(o.TgZ(0,"td",47),o.YNc(1,Ud,2,0,"p",32),o.YNc(2,Id,2,0,"p",32),o.YNc(3,Od,2,1,"p",32),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Q6J("ngIf",(!(null!=e.listUTXOs&&e.listUTXOs.data)||(null==e.listUTXOs||null==e.listUTXOs.data?null:e.listUTXOs.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.FetchUTXOs.status)===e.apiCallStatusEnum.COMPLETED),o.xp6(1),o.Q6J("ngIf",(!(null!=e.listUTXOs&&e.listUTXOs.data)||(null==e.listUTXOs||null==e.listUTXOs.data?null:e.listUTXOs.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.FetchUTXOs.status)===e.apiCallStatusEnum.INITIATED),o.xp6(1),o.Q6J("ngIf",(!(null!=e.listUTXOs&&e.listUTXOs.data)||(null==e.listUTXOs||null==e.listUTXOs.data?null:e.listUTXOs.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.FetchUTXOs.status)===e.apiCallStatusEnum.ERROR)}}const Dd=function(e){return{"display-none":e}};function Rd(e,t){if(1&e&&o._UZ(0,"tr",48),2&e){const e=o.oxw();o.Q6J("ngClass",o.VKq(1,Dd,(null==e.listUTXOs?null:e.listUTXOs.data)&&(null==e.listUTXOs||null==e.listUTXOs.data?null:e.listUTXOs.data.length)>0))}}function Md(e,t){1&e&&o._UZ(0,"tr",49)}function Ed(e,t){1&e&&o._UZ(0,"tr",50)}function Qd(e,t){1&e&&o._UZ(0,"mat-icon",36)}const Yd=function(e){return{"overflow-auto error-border":e,"overflow-auto":!0}},Pd=function(){return["no_utxo"]};let Bd=(()=>{class e{constructor(e,t,n,a,i,s){this.logger=e,this.commonService=t,this.dataService=n,this.store=a,this.rtlEffects=i,this.decimalPipe=s,this.isDustUTXO=!1,this.addressType=f.x$,this.faMoneyBillWave=g.aj4,this.displayedColumns=[],this.flgSticky=!1,this.pageSize=f.IV,this.pageSizeOptions=f.TJ,this.screenSize="",this.screenSizeEnum=f.cu,this.errorMessage="",this.apisCallStatus=null,this.apiCallStatusEnum=f.Bn,this.unSubs=[new p.x,new p.x,new p.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===f.cu.XS?(this.flgSticky=!1,this.displayedColumns=["amount_sat","confirmations","actions"]):this.screenSize===f.cu.SM?(this.flgSticky=!1,this.displayedColumns=["tx_id","output","amount_sat","actions"]):this.screenSize===f.cu.MD?(this.flgSticky=!1,this.displayedColumns=["tx_id","output","label","amount_sat","confirmations","actions"]):(this.flgSticky=!0,this.displayedColumns=["tx_id","output","label","amount_sat","confirmations","actions"])}ngOnInit(){this.store.select("lnd").pipe((0,d.R)(this.unSubs[0])).subscribe(e=>{this.errorMessage="",this.apisCallStatus=e.apisCallStatus,e.apisCallStatus.FetchUTXOs.status===f.Bn.ERROR&&(this.errorMessage="object"==typeof this.apisCallStatus.FetchUTXOs.message?JSON.stringify(this.apisCallStatus.FetchUTXOs.message):this.apisCallStatus.FetchUTXOs.message),e.utxos&&e.utxos.length>0&&(this.utxos=this.isDustUTXO?e.utxos.filter(e=>+e.amount_sat<1e3):e.utxos,this.loadUTXOsTable(this.utxos)),this.logger.info(e)})}ngOnChanges(){this.utxos&&this.utxos.length>0&&this.loadUTXOsTable(this.utxos)}applyFilter(e){this.listUTXOs.filter=e.value.trim().toLowerCase()}onUTXOClick(e){this.store.dispatch(new ee.wu({data:{type:f.n_.INFORMATION,alertTitle:"UTXO Information",message:[[{key:"txid",value:e.outpoint.txid_str,title:"Transaction ID",width:100,type:f.Gi.STRING}],[{key:"label",value:e.label,title:"Label",width:100,type:f.Gi.STRING}],[{key:"output_index",value:e.outpoint.output_index,title:"Output Index",width:34,type:f.Gi.NUMBER},{key:"amount_sat",value:e.amount_sat,title:"Amount (Sats)",width:33,type:f.Gi.NUMBER},{key:"confirmations",value:e.confirmations,title:"Confirmations",width:33,type:f.Gi.NUMBER}],[{key:"address_type",value:this.addressType[e.address_type].name,title:"Address Type",width:34},{key:"address",value:e.address,title:"Address",width:66}],[{key:"pk_script",value:e.pk_script,title:"PK Script",width:100,type:f.Gi.STRING}]]}}))}loadUTXOsTable(e){this.listUTXOs=new Ze.by([...e]),this.listUTXOs.filterPredicate=(e,t)=>((e.label?e.label.toLowerCase():"")+(e.outpoint.txid_str?e.outpoint.txid_str.toLowerCase():"")+(e.outpoint.output_index?e.outpoint.output_index:"")+(e.outpoint.txid_bytes?e.outpoint.txid_bytes.toLowerCase():"")+(e.address?e.address.toLowerCase():"")+(e.address_type?e.address_type.toLowerCase():"")+(e.amount_sat?e.amount_sat:"")+(e.confirmations?e.confirmations:"")+(e.pk_script?e.pk_script.toLowerCase():"")).includes(t),this.listUTXOs.sortingDataAccessor=(e,t)=>{switch(t){case"tx_id":return e.outpoint.txid_str.toLocaleLowerCase();case"output":return+e.outpoint.output_index;default:return e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():e[t]?+e[t]:null}},this.listUTXOs.sort=this.sort,this.listUTXOs.filterPredicate=(e,t)=>JSON.stringify(e).toLowerCase().includes(t),this.listUTXOs.paginator=this.paginator,this.logger.info(this.listUTXOs)}onLabelUTXO(e){this.store.dispatch(new ee.wu({data:{utxo:e,component:fd}}))}onLeaseUTXO(e){const t=[[{key:"txid_str",value:e.outpoint.txid_str,title:"Transaction ID",width:100}],[{key:"amount_sat",value:this.decimalPipe.transform(e.amount_sat),title:"Amount (Sats)",width:100}]];e.label&&t.splice(1,0,[{key:"label",value:e.label,title:"Label",width:100}]),this.store.dispatch(new ee.b_({data:{type:f.n_.CONFIRM,alertTitle:"Lease UTXO",informationMessage:"The UTXO will be leased for 10 minutes.",message:t,noBtnText:"Cancel",yesBtnText:"Lease UTXO"}})),this.rtlEffects.closeConfirm.pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{t&&this.dataService.leaseUTXO(e.outpoint.txid_bytes,e.outpoint.output_index)})}onDownloadCSV(){this.listUTXOs.data&&this.listUTXOs.data.length>0&&this.commonService.downloadFile(this.listUTXOs.data,"UTXOs")}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(Z.mQ),o.Y36(C.v),o.Y36(dt.D),o.Y36(y.yh),o.Y36(St.V),o.Y36(a.JJ))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-on-chain-utxos"]],viewQuery:function(e,t){if(1&e&&(o.Gf(xe.YE,5),o.Gf(fe.NW,5)),2&e){let e;o.iGM(e=o.CRH())&&(t.sort=e.first),o.iGM(e=o.CRH())&&(t.paginator=e.first)}},inputs:{isDustUTXO:"isDustUTXO"},features:[o._Bn([{provide:fe.ye,useValue:(0,f.pt)("UTXOs")}]),o.TTD],decls:35,vars:13,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap-x-large"],["fxLayout","column","fxLayout.gt-xs","row wrap","fxLayoutAlign.gt-xs","end stretch","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"keyup"],["fxLayout","row","fxLayoutAlign","start start"],["fxLayout","column","fxLayoutAlign","start end","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","tx_id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","output"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","label"],["matColumnDef","amount_sat"],["matColumnDef","confirmations"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center","class","pl-3",4,"matCellDef"],["matColumnDef","no_utxo"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["emptySpace",""],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"ngStyle"],["fxLayout","row"],[4,"ngIf"],[1,"ellipsis-child"],["matTooltip","Risk of dust attack","matTooltipPosition","right",4,"ngIf","ngIfElse"],["matTooltip","Risk of dust attack","matTooltipPosition","right"],["fxLayoutAlign","start center","color","warn",1,"mr-1"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["mat-cell",""],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-3"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","2",1,"mr-0"],["mat-footer-cell","","colspan","4"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,t){1&e&&(o.TgZ(0,"div",0),o.TgZ(1,"div",1),o.TgZ(2,"mat-form-field",2),o.TgZ(3,"input",3),o.NdJ("keyup",function(e){return t.applyFilter(e.target)}),o.qZA(),o.qZA(),o.qZA(),o.TgZ(4,"div",4),o.TgZ(5,"div",5),o.YNc(6,xd,1,0,"mat-progress-bar",6),o.TgZ(7,"table",7,8),o.ynx(9,9),o.YNc(10,Zd,2,0,"th",10),o.YNc(11,Td,5,5,"td",11),o.BQk(),o.ynx(12,12),o.YNc(13,bd,2,0,"th",13),o.YNc(14,wd,3,1,"td",14),o.BQk(),o.ynx(15,15),o.YNc(16,_d,2,0,"th",10),o.YNc(17,vd,2,4,"td",11),o.BQk(),o.ynx(18,16),o.YNc(19,qd,2,0,"th",13),o.YNc(20,Sd,4,3,"td",14),o.BQk(),o.ynx(21,17),o.YNc(22,Fd,2,0,"th",13),o.YNc(23,Ld,4,3,"td",14),o.BQk(),o.ynx(24,18),o.YNc(25,kd,6,0,"th",19),o.YNc(26,Nd,10,0,"td",20),o.BQk(),o.ynx(27,21),o.YNc(28,Jd,4,3,"td",22),o.BQk(),o.YNc(29,Rd,1,3,"tr",23),o.YNc(30,Md,1,0,"tr",24),o.YNc(31,Ed,1,0,"tr",25),o.qZA(),o._UZ(32,"mat-paginator",26),o.qZA(),o.qZA(),o.qZA(),o.YNc(33,Qd,1,0,"ng-template",null,27,o.W1O)),2&e&&(o.xp6(6),o.Q6J("ngIf",(null==t.apisCallStatus?null:t.apisCallStatus.FetchUTXOs.status)===t.apiCallStatusEnum.INITIATED),o.xp6(1),o.Q6J("dataSource",t.listUTXOs)("ngClass",o.VKq(10,Yd,""!==t.errorMessage)),o.xp6(22),o.Q6J("matFooterRowDef",o.DdM(12,Pd)),o.xp6(1),o.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),o.xp6(1),o.Q6J("matRowDefColumns",t.displayedColumns),o.xp6(1),o.Q6J("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS))},directives:[l.xw,l.yH,l.Wh,D.KE,Ce.Nt,E.$V,a.O5,Ze.BZ,xe.YE,a.mk,v.oO,Ze.w1,Ze.fO,Ze.Dz,Ze.mD,Ze.Ke,Ze.as,Ze.nj,fe.NW,r.pW,Ze.ge,xe.nU,Ze.ev,a.PC,v.Zl,R.gM,S.Hw,we.gD,we.$L,ve.ey,Ze.yh,Ze.Q2,Ze.XQ,Ze.Gk],pipes:[a.JJ],styles:[".mat-column-label[_ngcontent-%COMP%]{padding-left:1rem;flex:1 1 15%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-tx_id[_ngcontent-%COMP%]{flex:1 1 15%}.mat-column-tx_id[_ngcontent-%COMP%] .ellipsis-child[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),e})();function Gd(e,t){1&e&&o._UZ(0,"mat-progress-bar",28)}function Hd(e,t){1&e&&(o.TgZ(0,"th",29),o._uU(1," Date/Time "),o.qZA())}function zd(e,t){if(1&e&&(o.TgZ(0,"td",30),o._uU(1),o.ALo(2,"date"),o.qZA()),2&e){const e=t.$implicit;o.xp6(1),o.Oqu(o.xi3(2,1,1e3*e.time_stamp,"dd/MMM/YYYY HH:mm"))}}function Vd(e,t){1&e&&(o.TgZ(0,"th",29),o._uU(1," Label "),o.qZA())}const Wd=function(e){return{"max-width":e}};function Xd(e,t){if(1&e&&(o.TgZ(0,"td",31),o._uU(1),o.qZA()),2&e){const e=t.$implicit,n=o.oxw();o.Q6J("ngStyle",o.VKq(2,Wd,n.screenSize===n.screenSizeEnum.XS?"12rem":"25rem")),o.xp6(1),o.hij(" ",null==e?null:e.label," ")}}function $d(e,t){1&e&&(o.TgZ(0,"th",32),o._uU(1," Amount (Sats) "),o.qZA())}function jd(e,t){if(1&e&&(o.TgZ(0,"span",35),o._uU(1),o.ALo(2,"number"),o.qZA()),2&e){const e=o.oxw().$implicit;o.xp6(1),o.Oqu(o.lcZ(2,1,e.amount))}}function Kd(e,t){if(1&e&&(o.TgZ(0,"span",36),o._uU(1),o.ALo(2,"number"),o.qZA()),2&e){const e=o.oxw().$implicit;o.xp6(1),o.hij("(",o.lcZ(2,1,-1*e.amount),")")}}function eh(e,t){if(1&e&&(o.TgZ(0,"td",30),o.YNc(1,jd,3,3,"span",33),o.YNc(2,Kd,3,3,"span",34),o.qZA()),2&e){const e=t.$implicit;o.xp6(1),o.Q6J("ngIf",e.amount>0||0===e.amount),o.xp6(1),o.Q6J("ngIf",e.amount<0)}}function th(e,t){1&e&&(o.TgZ(0,"th",32),o._uU(1," Fees (Sats) "),o.qZA())}function nh(e,t){if(1&e&&(o.TgZ(0,"td",30),o.TgZ(1,"span",35),o._uU(2),o.ALo(3,"number"),o.qZA(),o.qZA()),2&e){const e=t.$implicit;o.xp6(2),o.Oqu(o.lcZ(3,1,e.total_fees))}}function ah(e,t){1&e&&(o.TgZ(0,"th",32),o._uU(1," Block Height "),o.qZA())}function ih(e,t){if(1&e&&(o.TgZ(0,"td",30),o.TgZ(1,"span",35),o._uU(2),o.ALo(3,"number"),o.qZA(),o.qZA()),2&e){const e=t.$implicit;o.xp6(2),o.Oqu(o.lcZ(3,1,e.block_height))}}function sh(e,t){1&e&&(o.TgZ(0,"th",32),o._uU(1," Confirmations "),o.qZA())}function oh(e,t){if(1&e&&(o.TgZ(0,"td",30),o.TgZ(1,"span",35),o._uU(2),o.ALo(3,"number"),o.qZA(),o.qZA()),2&e){const e=t.$implicit;o.xp6(2),o.hij(" ",o.lcZ(3,1,null==e?null:e.num_confirmations)," ")}}function lh(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"th",37),o.TgZ(1,"div",38),o.TgZ(2,"mat-select",39),o._UZ(3,"mat-select-trigger"),o.TgZ(4,"mat-option",40),o.NdJ("click",function(){return o.CHM(e),o.oxw().onDownloadCSV()}),o._uU(5,"Download CSV"),o.qZA(),o.qZA(),o.qZA(),o.qZA()}}function rh(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"td",41),o.TgZ(1,"button",42),o.NdJ("click",function(){const t=o.CHM(e).$implicit;return o.oxw().onTransactionClick(t)}),o._uU(2,"View Info"),o.qZA(),o.qZA()}}function ch(e,t){1&e&&(o.TgZ(0,"p"),o._uU(1,"No transaction available."),o.qZA())}function uh(e,t){1&e&&(o.TgZ(0,"p"),o._uU(1,"Getting transactions..."),o.qZA())}function ph(e,t){if(1&e&&(o.TgZ(0,"p"),o._uU(1),o.qZA()),2&e){const e=o.oxw(2);o.xp6(1),o.Oqu(e.errorMessage)}}function dh(e,t){if(1&e&&(o.TgZ(0,"td",43),o.YNc(1,ch,2,0,"p",44),o.YNc(2,uh,2,0,"p",44),o.YNc(3,ph,2,1,"p",44),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Q6J("ngIf",(!(null!=e.listTransactions&&e.listTransactions.data)||(null==e.listTransactions||null==e.listTransactions.data?null:e.listTransactions.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.FetchTransactions.status)===e.apiCallStatusEnum.COMPLETED),o.xp6(1),o.Q6J("ngIf",(!(null!=e.listTransactions&&e.listTransactions.data)||(null==e.listTransactions||null==e.listTransactions.data?null:e.listTransactions.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.FetchTransactions.status)===e.apiCallStatusEnum.INITIATED),o.xp6(1),o.Q6J("ngIf",(!(null!=e.listTransactions&&e.listTransactions.data)||(null==e.listTransactions||null==e.listTransactions.data?null:e.listTransactions.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.FetchTransactions.status)===e.apiCallStatusEnum.ERROR)}}const hh=function(e){return{"display-none":e}};function mh(e,t){if(1&e&&o._UZ(0,"tr",45),2&e){const e=o.oxw();o.Q6J("ngClass",o.VKq(1,hh,(null==e.listTransactions?null:e.listTransactions.data)&&(null==e.listTransactions||null==e.listTransactions.data?null:e.listTransactions.data.length)>0))}}function gh(e,t){1&e&&o._UZ(0,"tr",46)}function fh(e,t){1&e&&o._UZ(0,"tr",47)}const xh=function(e){return{"overflow-auto error-border":e,"overflow-auto":!0}},Zh=function(){return["no_transaction"]};let yh=(()=>{class e{constructor(e,t,n,a){this.logger=e,this.commonService=t,this.store=n,this.datePipe=a,this.faHistory=g.qO$,this.displayedColumns=[],this.flgSticky=!1,this.pageSize=f.IV,this.pageSizeOptions=f.TJ,this.screenSize="",this.screenSizeEnum=f.cu,this.errorMessage="",this.apisCallStatus=null,this.apiCallStatusEnum=f.Bn,this.unSubs=[new p.x,new p.x,new p.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===f.cu.XS?(this.flgSticky=!1,this.displayedColumns=["time_stamp","amount","actions"]):this.screenSize===f.cu.SM?(this.flgSticky=!1,this.displayedColumns=["time_stamp","amount","num_confirmations","total_fees","actions"]):this.screenSize===f.cu.MD?(this.flgSticky=!1,this.displayedColumns=["time_stamp","label","amount","total_fees","num_confirmations","actions"]):(this.flgSticky=!0,this.displayedColumns=["time_stamp","label","amount","total_fees","block_height","num_confirmations","actions"])}ngOnInit(){this.store.select("lnd").pipe((0,d.R)(this.unSubs[0])).subscribe(e=>{this.errorMessage="",this.apisCallStatus=e.apisCallStatus,e.apisCallStatus.FetchTransactions.status===f.Bn.ERROR&&(this.errorMessage="object"==typeof this.apisCallStatus.FetchTransactions.message?JSON.stringify(this.apisCallStatus.FetchTransactions.message):this.apisCallStatus.FetchTransactions.message),e.transactions&&e.transactions.length>0&&(this.transactions=e.transactions,this.loadTransactionsTable(this.transactions)),this.logger.info(e)})}ngOnChanges(){this.transactions&&this.transactions.length>0&&this.loadTransactionsTable(this.transactions)}applyFilter(e){this.listTransactions.filter=e.value.trim().toLowerCase()}onTransactionClick(e){this.store.dispatch(new ee.wu({data:{type:f.n_.INFORMATION,alertTitle:"Transaction Information",message:[[{key:"block_hash",value:e.block_hash,title:"Block Hash",width:100}],[{key:"tx_hash",value:e.tx_hash,title:"Transaction Hash",width:100}],[{key:"label",value:e.label,title:"Label",width:100,type:f.Gi.STRING}],[{key:"time_stamp",value:e.time_stamp,title:"Date/Time",width:50,type:f.Gi.DATE_TIME},{key:"block_height",value:e.block_height,title:"Block Height",width:50,type:f.Gi.NUMBER}],[{key:"num_confirmations",value:e.num_confirmations,title:"Number of Confirmations",width:34,type:f.Gi.NUMBER},{key:"total_fees",value:e.total_fees,title:"Total Fees (Sats)",width:33,type:f.Gi.NUMBER},{key:"amount",value:e.amount,title:"Amount (Sats)",width:33,type:f.Gi.NUMBER}],[{key:"dest_addresses",value:e.dest_addresses,title:"Destination Addresses",width:100,type:f.Gi.ARRAY}]],scrollable:e.dest_addresses&&e.dest_addresses.length>5}}))}loadTransactionsTable(e){this.listTransactions=new Ze.by([...e]),this.listTransactions.sort=this.sort,this.listTransactions.sortingDataAccessor=(e,t)=>e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():e[t]?+e[t]:null,this.listTransactions.filterPredicate=(e,t)=>((e.time_stamp?this.datePipe.transform(new Date(1e3*e.time_stamp),"dd/MMM/YYYY HH:mm").toLowerCase():"")+JSON.stringify(e).toLowerCase()).includes(t),this.listTransactions.paginator=this.paginator,this.logger.info(this.listTransactions)}onDownloadCSV(){this.listTransactions.data&&this.listTransactions.data.length>0&&this.commonService.downloadFile(this.listTransactions.data,"Transactions")}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(Z.mQ),o.Y36(C.v),o.Y36(y.yh),o.Y36(a.uU))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-on-chain-transaction-history"]],viewQuery:function(e,t){if(1&e&&(o.Gf(xe.YE,5),o.Gf(fe.NW,5)),2&e){let e;o.iGM(e=o.CRH())&&(t.sort=e.first),o.iGM(e=o.CRH())&&(t.paginator=e.first)}},features:[o._Bn([{provide:fe.ye,useValue:(0,f.pt)("Transactions")}]),o.TTD],decls:36,vars:13,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap-x-large"],["fxLayout","column","fxLayout.gt-xs","row wrap","fxLayoutAlign.gt-xs","end stretch","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"keyup"],["fxLayout","row","fxLayoutAlign","start start"],["fxLayout","column","fxLayoutAlign","start end","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","time_stamp"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","label"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","amount"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","total_fees"],["matColumnDef","block_height"],["matColumnDef","num_confirmations"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-3","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_transaction"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-cell","",3,"ngStyle"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center",4,"ngIf"],["fxLayoutAlign","end center","class","red",4,"ngIf"],["fxLayoutAlign","end center"],["fxLayoutAlign","end center",1,"red"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,t){1&e&&(o.TgZ(0,"div",0),o.TgZ(1,"div",1),o.TgZ(2,"mat-form-field",2),o.TgZ(3,"input",3),o.NdJ("keyup",function(e){return t.applyFilter(e.target)}),o.qZA(),o.qZA(),o.qZA(),o.TgZ(4,"div",4),o.TgZ(5,"div",5),o.YNc(6,Gd,1,0,"mat-progress-bar",6),o.TgZ(7,"table",7,8),o.ynx(9,9),o.YNc(10,Hd,2,0,"th",10),o.YNc(11,zd,3,4,"td",11),o.BQk(),o.ynx(12,12),o.YNc(13,Vd,2,0,"th",10),o.YNc(14,Xd,2,4,"td",13),o.BQk(),o.ynx(15,14),o.YNc(16,$d,2,0,"th",15),o.YNc(17,eh,3,2,"td",11),o.BQk(),o.ynx(18,16),o.YNc(19,th,2,0,"th",15),o.YNc(20,nh,4,3,"td",11),o.BQk(),o.ynx(21,17),o.YNc(22,ah,2,0,"th",15),o.YNc(23,ih,4,3,"td",11),o.BQk(),o.ynx(24,18),o.YNc(25,sh,2,0,"th",15),o.YNc(26,oh,4,3,"td",11),o.BQk(),o.ynx(27,19),o.YNc(28,lh,6,0,"th",20),o.YNc(29,rh,3,0,"td",21),o.BQk(),o.ynx(30,22),o.YNc(31,dh,4,3,"td",23),o.BQk(),o.YNc(32,mh,1,3,"tr",24),o.YNc(33,gh,1,0,"tr",25),o.YNc(34,fh,1,0,"tr",26),o.qZA(),o._UZ(35,"mat-paginator",27),o.qZA(),o.qZA(),o.qZA()),2&e&&(o.xp6(6),o.Q6J("ngIf",(null==t.apisCallStatus?null:t.apisCallStatus.FetchTransactions.status)===t.apiCallStatusEnum.INITIATED),o.xp6(1),o.Q6J("dataSource",t.listTransactions)("ngClass",o.VKq(10,xh,""!==t.errorMessage)),o.xp6(25),o.Q6J("matFooterRowDef",o.DdM(12,Zh)),o.xp6(1),o.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),o.xp6(1),o.Q6J("matRowDefColumns",t.displayedColumns),o.xp6(1),o.Q6J("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS))},directives:[l.xw,l.yH,l.Wh,D.KE,Ce.Nt,E.$V,a.O5,Ze.BZ,xe.YE,a.mk,v.oO,Ze.w1,Ze.fO,Ze.Dz,Ze.mD,Ze.Ke,Ze.as,Ze.nj,fe.NW,r.pW,Ze.ge,xe.nU,Ze.ev,a.PC,v.Zl,we.gD,we.$L,ve.ey,q.lW,Ze.yh,Ze.Q2,Ze.XQ,Ze.Gk],pipes:[a.uU,a.JJ],styles:[".mat-column-label[_ngcontent-%COMP%]{flex:1 1 20%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),e})();function Ah(e,t){if(1&e&&(o.TgZ(0,"span",5),o._uU(1,"UTXOs"),o.qZA()),2&e){const e=o.oxw();o.s9C("matBadge",e.numUtxos)}}function Ch(e,t){if(1&e&&(o.TgZ(0,"span",5),o._uU(1,"Transactions"),o.qZA()),2&e){const e=o.oxw();o.s9C("matBadge",e.numTransactions)}}function Th(e,t){if(1&e&&(o.TgZ(0,"span",5),o._uU(1,"Dust UTXOs"),o.qZA()),2&e){const e=o.oxw();o.s9C("matBadge",e.numDustUtxos)}}let bh=(()=>{class e{constructor(e,t){this.logger=e,this.store=t,this.selectedTableIndex=0,this.selectedTableIndexChange=new o.vpe,this.numTransactions=0,this.numUtxos=0,this.numDustUtxos=0,this.unSubs=[new p.x]}ngOnInit(){this.store.dispatch(new x.eL),this.store.dispatch(new x.Zt),this.store.select("lnd").pipe((0,d.R)(this.unSubs[0])).subscribe(e=>{e.utxos&&e.utxos.length>0&&(this.numUtxos=e.utxos.length,this.numDustUtxos=e.utxos.filter(e=>+e.amount_sat<1e3).length),e.transactions&&e.transactions.length>0&&(this.numTransactions=e.transactions.length),this.logger.info(e)})}onSelectedIndexChanged(e){this.selectedTableIndexChange.emit(e)}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(Z.mQ),o.Y36(y.yh))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-utxo-tables"]],inputs:{selectedTableIndex:"selectedTableIndex"},outputs:{selectedTableIndexChange:"selectedTableIndexChange"},decls:11,vars:3,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"bordered-box"],[3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],["fxLayout","row","fxFlex","100",3,"isDustUTXO"],["fxLayout","row","fxFlex","100"],["matBadgeOverlap","false",1,"tab-badge",3,"matBadge"]],template:function(e,t){1&e&&(o.TgZ(0,"div",0),o.TgZ(1,"mat-tab-group",1),o.NdJ("selectedIndexChange",function(e){return t.onSelectedIndexChanged(e)}),o.TgZ(2,"mat-tab"),o.YNc(3,Ah,2,1,"ng-template",2),o._UZ(4,"rtl-on-chain-utxos",3),o.qZA(),o.TgZ(5,"mat-tab"),o.YNc(6,Ch,2,1,"ng-template",2),o._UZ(7,"rtl-on-chain-transaction-history",4),o.qZA(),o.TgZ(8,"mat-tab"),o.YNc(9,Th,2,1,"ng-template",2),o._UZ(10,"rtl-on-chain-utxos",3),o.qZA(),o.qZA(),o.qZA()),2&e&&(o.xp6(1),o.Q6J("selectedIndex",t.selectedTableIndex),o.xp6(3),o.Q6J("isDustUTXO",!1),o.xp6(6),o.Q6J("isDustUTXO",!0))},directives:[l.xw,l.yH,l.Wh,ge.SP,ge.uX,ge.uD,Bd,yh,ra.k],styles:[""]}),e})();const wh=function(e,t){return[e,t]};function _h(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"div",12),o.NdJ("click",function(){const t=o.CHM(e).$implicit;return o.oxw().activeLink=null==t?null:t.link}),o._uU(1),o.qZA()}if(2&e){const e=t.$implicit,n=o.oxw();o.Q6J("active",n.activeLink===(null==e?null:e.link))("routerLink",o.WLB(3,wh,null==e?null:e.link,null==n.selectedTable?null:n.selectedTable.name)),o.xp6(1),o.Oqu(null==e?null:e.name)}}let vh=(()=>{class e{constructor(e,t,n){this.store=e,this.router=t,this.activatedRoute=n,this.selNode={},this.faExchangeAlt=g.Ssp,this.faChartPie=g.OS1,this.balances=[{title:"Total Balance",dataValue:0},{title:"Confirmed",dataValue:0},{title:"Unconfirmed",dataValue:0}],this.links=[{link:"receive",name:"Receive"},{link:"send",name:"Send"},{link:"sweep",name:"Sweep All"}],this.activeLink=this.links[0].link,this.tables=[{id:0,name:"utxos"},{id:1,name:"trans"},{id:2,name:"dustUtxos"}],this.selectedTable=this.tables[0],this.unSubs=[new p.x,new p.x,new p.x,new p.x]}ngOnInit(){const e=this.links.find(e=>this.router.url.includes(e.link));this.activeLink=e?e.link:this.links[0].link,this.selectedTable=this.tables.find(e=>e.name===this.router.url.substring(this.router.url.lastIndexOf("/")+1)),this.router.events.pipe((0,d.R)(this.unSubs[0]),(0,h.h)(e=>e instanceof i.Av)).subscribe(e=>{const t=this.links.find(t=>e.urlAfterRedirects.includes(t.link));this.activeLink=t?t.link:this.links[0].link,this.selectedTable=this.tables.find(t=>t.name===e.urlAfterRedirects.substring(e.urlAfterRedirects.lastIndexOf("/")+1))}),this.store.select("lnd").pipe((0,d.R)(this.unSubs[1])).subscribe(e=>{this.selNode=e.nodeSettings,this.balances=[{title:"Total Balance",dataValue:e.blockchainBalance.total_balance||0},{title:"Confirmed",dataValue:e.blockchainBalance.confirmed_balance},{title:"Unconfirmed",dataValue:e.blockchainBalance.unconfirmed_balance}]})}onSelectedTableIndexChanged(e){this.selectedTable=this.tables.find(t=>t.id===e),this.router.navigate(["./",this.activeLink,this.selectedTable.name],{relativeTo:this.activatedRoute})}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(y.yh),o.Y36(i.F0),o.Y36(i.gz))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-on-chain"]],decls:21,vars:5,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x","mb-4"],["fxLayout","column"],[3,"values"],["fxLayout","column",1,"padding-gap-x"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large"],["fxLayout","row","fxFlex","100",3,"selectedTableIndex","selectedTableIndexChange"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(e,t){1&e&&(o.TgZ(0,"div",0),o._UZ(1,"fa-icon",1),o.TgZ(2,"span",2),o._uU(3,"On-chain Balance"),o.qZA(),o.qZA(),o.TgZ(4,"div",3),o.TgZ(5,"mat-card"),o.TgZ(6,"mat-card-content",4),o._UZ(7,"rtl-currency-unit-converter",5),o.qZA(),o.qZA(),o.qZA(),o.TgZ(8,"div",0),o._UZ(9,"fa-icon",1),o.TgZ(10,"span",2),o._uU(11,"On-chain Transactions"),o.qZA(),o.qZA(),o.TgZ(12,"div",6),o.TgZ(13,"mat-card"),o.TgZ(14,"mat-card-content",4),o.TgZ(15,"nav",7),o.YNc(16,_h,2,6,"div",8),o.qZA(),o.TgZ(17,"div",9),o._UZ(18,"router-outlet"),o.qZA(),o.TgZ(19,"div",10),o.TgZ(20,"rtl-utxo-tables",11),o.NdJ("selectedTableIndexChange",function(e){return t.onSelectedTableIndexChanged(e)}),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA()),2&e&&(o.xp6(1),o.Q6J("icon",t.faChartPie),o.xp6(6),o.Q6J("values",t.balances),o.xp6(2),o.Q6J("icon",t.faExchangeAlt),o.xp6(7),o.Q6J("ngForOf",t.links),o.xp6(4),o.Q6J("selectedTableIndex",null==t.selectedTable?null:t.selectedTable.id))},directives:[l.xw,l.Wh,T.BN,w.a8,w.dn,la.D,ge.BU,a.sg,l.yH,i.lC,bh,ge.Nj,i.rH],styles:[""]}),e})();var qh=n(7969);function Sh(e,t){if(1&e&&(o.TgZ(0,"mat-option",7),o._uU(1),o.qZA()),2&e){const e=t.$implicit;o.Q6J("value",e),o.xp6(1),o.hij(" ",e.addressTp," ")}}let Fh=(()=>{class e{constructor(e,t){this.store=e,this.lndEffects=t,this.addressTypes=f._t,this.selectedAddressType=f._t[0],this.newAddress=""}onGenerateAddress(){this.store.dispatch(new x.ER(this.selectedAddressType)),this.lndEffects.setNewAddress.pipe((0,pt.q)(1)).subscribe(e=>{this.newAddress=e,this.store.dispatch(new ee.wu({width:"58%",data:{address:this.newAddress,addressType:this.selectedAddressType.addressTp,component:qh.n}}))})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(y.yh),o.Y36(Ft.l))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-on-chain-receive"]],decls:8,vars:2,consts:[["fxLayout","column"],["fxLayout","row","fxLayoutAlign","start end"],["fxFlex","48","fxFlex.gt-md","25","fxLayoutAlign","start end",1,"mr-2"],["placeholder","Address Type","name","address_type","tabindex","1",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"mt-2"],["mat-flat-button","","color","primary","tabindex","2",1,"top-minus-15px",3,"click"],[3,"value"]],template:function(e,t){1&e&&(o.TgZ(0,"div",0),o.TgZ(1,"div",1),o.TgZ(2,"mat-form-field",2),o.TgZ(3,"mat-select",3),o.NdJ("ngModelChange",function(e){return t.selectedAddressType=e}),o.YNc(4,Sh,2,2,"mat-option",4),o.qZA(),o.qZA(),o.TgZ(5,"div",5),o.TgZ(6,"button",6),o.NdJ("click",function(){return t.onGenerateAddress()}),o._uU(7,"Generate Address"),o.qZA(),o.qZA(),o.qZA(),o.qZA()),2&e&&(o.xp6(3),o.Q6J("ngModel",t.selectedAddressType),o.xp6(1),o.Q6J("ngForOf",t.addressTypes))},directives:[l.xw,l.Wh,D.KE,l.yH,we.gD,Ae.JJ,Ae.On,a.sg,q.lW,ve.ey],styles:[""]}),e})();var Lh=n(1339);const kh=["form"],Nh=["formSweepAll"],Uh=["stepper"];function Ih(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Bitcoin address is required."),o.qZA())}function Oh(e,t){if(1&e&&(o.TgZ(0,"mat-error"),o._uU(1),o.qZA()),2&e){const e=o.oxw(2);o.xp6(1),o.Oqu(e.amountError)}}function Jh(e,t){if(1&e&&(o.TgZ(0,"mat-option",31),o._uU(1),o.qZA()),2&e){const e=t.$implicit;o.Q6J("value",e),o.xp6(1),o.Oqu(e)}}function Dh(e,t){if(1&e&&(o.TgZ(0,"mat-option",31),o._uU(1),o.qZA()),2&e){const e=t.$implicit;o.Q6J("value",e.id),o.xp6(1),o.hij(" ",e.name," ")}}function Rh(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Number of blocks is required."),o.qZA())}function Mh(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"mat-form-field",23),o.TgZ(1,"input",32,33),o.NdJ("ngModelChange",function(t){return o.CHM(e),o.oxw(2).transactionBlocks=t}),o.qZA(),o.YNc(3,Rh,2,0,"mat-error",14),o.qZA()}if(2&e){const e=o.oxw(2);o.xp6(1),o.Q6J("ngModel",e.transactionBlocks)("step",1)("min",0),o.xp6(2),o.Q6J("ngIf",!e.transactionBlocks)}}function Eh(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Fees is required."),o.qZA())}function Qh(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"mat-form-field",23),o.TgZ(1,"input",34,35),o.NdJ("ngModelChange",function(t){return o.CHM(e),o.oxw(2).transactionFees=t}),o.qZA(),o.YNc(3,Eh,2,0,"mat-error",14),o.qZA()}if(2&e){const e=o.oxw(2);o.xp6(1),o.Q6J("ngModel",e.transactionFees)("step",1)("min",0),o.xp6(2),o.Q6J("ngIf",!e.transactionFees)}}function Yh(e,t){if(1&e&&(o.TgZ(0,"span"),o._uU(1),o.qZA()),2&e){const e=o.oxw(3);o.xp6(1),o.Oqu(e.sendFundError)}}function Ph(e,t){if(1&e&&(o.TgZ(0,"div",36),o._UZ(1,"fa-icon",37),o.YNc(2,Yh,2,1,"span",14),o.qZA()),2&e){const e=o.oxw(2);o.xp6(1),o.Q6J("icon",e.faExclamationTriangle),o.xp6(1),o.Q6J("ngIf",""!==e.sendFundError)}}function Bh(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"form",9,10),o.NdJ("submit",function(){return o.CHM(e),o.oxw().onSendFunds()})("reset",function(){return o.CHM(e),o.oxw().resetData()}),o.TgZ(2,"mat-form-field",11),o.TgZ(3,"input",12,13),o.NdJ("ngModelChange",function(t){return o.CHM(e),o.oxw().transactionAddress=t}),o.qZA(),o.YNc(5,Ih,2,0,"mat-error",14),o.qZA(),o.TgZ(6,"mat-form-field",15),o.TgZ(7,"input",16,17),o.NdJ("ngModelChange",function(t){return o.CHM(e),o.oxw().transactionAmount=t}),o.qZA(),o.TgZ(9,"span",18),o._uU(10),o.qZA(),o.YNc(11,Oh,2,1,"mat-error",14),o.qZA(),o.TgZ(12,"mat-form-field",19),o.TgZ(13,"mat-select",20),o.NdJ("selectionChange",function(t){return o.CHM(e),o.oxw().onAmountUnitChange(t)}),o.YNc(14,Jh,2,2,"mat-option",21),o.qZA(),o.qZA(),o.TgZ(15,"div",22),o.TgZ(16,"mat-form-field",23),o.TgZ(17,"mat-select",24),o.NdJ("valueChange",function(t){return o.CHM(e),o.oxw().selTransType=t}),o.YNc(18,Dh,2,2,"mat-option",21),o.qZA(),o.qZA(),o.YNc(19,Mh,4,4,"mat-form-field",25),o.YNc(20,Qh,4,4,"mat-form-field",25),o.qZA(),o._UZ(21,"div",26),o.YNc(22,Ph,3,2,"div",27),o.TgZ(23,"div",28),o.TgZ(24,"button",29),o._uU(25,"Clear Fields"),o.qZA(),o.TgZ(26,"button",30),o._uU(27,"Send Funds"),o.qZA(),o.qZA(),o.qZA()}if(2&e){const e=o.oxw();o.xp6(3),o.Q6J("ngModel",e.transactionAddress),o.xp6(2),o.Q6J("ngIf",!e.transactionAddress),o.xp6(2),o.Q6J("ngModel",e.transactionAmount)("step",100)("min",0),o.xp6(3),o.hij(" ",e.selAmountUnit," "),o.xp6(1),o.Q6J("ngIf",!e.transactionAmount),o.xp6(2),o.Q6J("value",e.selAmountUnit),o.xp6(1),o.Q6J("ngForOf",e.amountUnits),o.xp6(3),o.Q6J("value",e.selTransType),o.xp6(1),o.Q6J("ngForOf",e.transTypes),o.xp6(1),o.Q6J("ngIf","1"===e.selTransType),o.xp6(1),o.Q6J("ngIf","2"===e.selTransType),o.xp6(2),o.Q6J("ngIf",""!==e.sendFundError)}}function Gh(e,t){if(1&e&&o._uU(0),2&e){const e=o.oxw(3);o.Oqu(e.passwordFormLabel)}}function Hh(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Password is required."),o.qZA())}function zh(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"mat-step",42),o.TgZ(1,"form",61),o.YNc(2,Gh,1,1,"ng-template",55),o.TgZ(3,"div",0),o.TgZ(4,"mat-form-field",1),o._UZ(5,"input",62),o.YNc(6,Hh,2,0,"mat-error",14),o.qZA(),o.qZA(),o.TgZ(7,"div",63),o.TgZ(8,"button",64),o.NdJ("click",function(){return o.CHM(e),o.oxw(2).onAuthenticate()}),o._uU(9,"Confirm"),o.qZA(),o.qZA(),o.qZA(),o.qZA()}if(2&e){const e=o.oxw(2);o.Q6J("stepControl",e.passwordFormGroup)("editable",e.flgEditable),o.xp6(1),o.Q6J("formGroup",e.passwordFormGroup),o.xp6(5),o.Q6J("ngIf",null==e.passwordFormGroup.controls.password.errors?null:e.passwordFormGroup.controls.password.errors.required)}}function Vh(e,t){if(1&e&&o._uU(0),2&e){const e=o.oxw(2);o.Oqu(e.sendFundFormLabel)}}function Wh(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Bitcoin address is required."),o.qZA())}function Xh(e,t){if(1&e&&(o.TgZ(0,"mat-option",31),o._uU(1),o.qZA()),2&e){const e=t.$implicit;o.Q6J("value",e.id),o.xp6(1),o.hij(" ",e.name," ")}}function $h(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Number of blocks is required."),o.qZA())}function jh(e,t){if(1&e&&(o.TgZ(0,"mat-form-field",65),o._UZ(1,"input",66),o.YNc(2,$h,2,0,"mat-error",14),o.qZA()),2&e){const e=o.oxw(2);o.xp6(1),o.Q6J("step",1)("min",0),o.xp6(1),o.Q6J("ngIf",null==e.sendFundFormGroup.controls.transactionBlocks.errors?null:e.sendFundFormGroup.controls.transactionBlocks.errors.required)}}function Kh(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Fees is required."),o.qZA())}function em(e,t){if(1&e&&(o.TgZ(0,"mat-form-field",65),o._UZ(1,"input",67),o.YNc(2,Kh,2,0,"mat-error",14),o.qZA()),2&e){const e=o.oxw(2);o.xp6(1),o.Q6J("step",1)("min",0),o.xp6(1),o.Q6J("ngIf",null==e.sendFundFormGroup.controls.transactionFees.errors?null:e.sendFundFormGroup.controls.transactionFees.errors.required)}}function tm(e,t){if(1&e&&o._uU(0),2&e){const e=o.oxw(2);o.Oqu(e.confirmFormLabel)}}function nm(e,t){if(1&e&&(o.TgZ(0,"span"),o._uU(1),o.qZA()),2&e){const e=o.oxw(3);o.xp6(1),o.Oqu(e.sendFundError)}}function am(e,t){if(1&e&&(o.TgZ(0,"div",36),o._UZ(1,"fa-icon",37),o.YNc(2,nm,2,1,"span",14),o.qZA()),2&e){const e=o.oxw(2);o.xp6(1),o.Q6J("icon",e.faExclamationTriangle),o.xp6(1),o.Q6J("ngIf",""!==e.sendFundError)}}function im(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"div",38),o.TgZ(1,"mat-vertical-stepper",39,40),o.NdJ("selectionChange",function(t){return o.CHM(e),o.oxw().stepSelectionChanged(t)}),o.YNc(3,zh,10,4,"mat-step",41),o.TgZ(4,"mat-step",42),o.TgZ(5,"form",43),o.YNc(6,Vh,1,1,"ng-template",44),o.TgZ(7,"div",45),o.TgZ(8,"mat-form-field",46),o._UZ(9,"input",47),o.YNc(10,Wh,2,0,"mat-error",14),o.qZA(),o.TgZ(11,"mat-form-field",48),o.TgZ(12,"mat-select",49),o.YNc(13,Xh,2,2,"mat-option",21),o.qZA(),o.qZA(),o.YNc(14,jh,3,3,"mat-form-field",50),o.YNc(15,em,3,3,"mat-form-field",50),o.qZA(),o.TgZ(16,"div",51),o.TgZ(17,"button",52),o._uU(18,"Next"),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.TgZ(19,"mat-step",53),o.TgZ(20,"form",54),o.YNc(21,tm,1,1,"ng-template",55),o.TgZ(22,"div",38),o.TgZ(23,"div",56),o._UZ(24,"fa-icon",57),o.TgZ(25,"span"),o._uU(26,"You are about to sweep all funds from RTL. Are you sure?"),o.qZA(),o.qZA(),o.YNc(27,am,3,2,"div",27),o.TgZ(28,"div",51),o.TgZ(29,"button",58),o.NdJ("click",function(){return o.CHM(e),o.oxw().onSendFunds()}),o._uU(30,"Sweep All Funds"),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.TgZ(31,"div",59),o.TgZ(32,"button",60),o._uU(33),o.qZA(),o.qZA(),o.qZA()}if(2&e){const e=o.oxw();o.xp6(1),o.Q6J("linear",!0),o.xp6(2),o.Q6J("ngIf",!e.appConfig.sso.rtlSSO),o.xp6(1),o.Q6J("stepControl",e.sendFundFormGroup)("editable",e.flgEditable),o.xp6(1),o.Q6J("formGroup",e.sendFundFormGroup),o.xp6(5),o.Q6J("ngIf",null==e.sendFundFormGroup.controls.transactionAddress.errors?null:e.sendFundFormGroup.controls.transactionAddress.errors.required),o.xp6(3),o.Q6J("ngForOf",e.transTypes),o.xp6(1),o.Q6J("ngIf","1"===e.sendFundFormGroup.controls.selTransType.value),o.xp6(1),o.Q6J("ngIf","2"===e.sendFundFormGroup.controls.selTransType.value),o.xp6(4),o.Q6J("stepControl",e.confirmFormGroup),o.xp6(1),o.Q6J("formGroup",e.confirmFormGroup),o.xp6(4),o.Q6J("icon",e.faExclamationTriangle),o.xp6(3),o.Q6J("ngIf",""!==e.sendFundError),o.xp6(5),o.Q6J("mat-dialog-close",!1),o.xp6(1),o.Oqu(e.flgValidated?"Close":"Cancel")}}let sm=(()=>{class e{constructor(e,t,n,a,i,s,o,l,r,c){this.dialogRef=e,this.data=t,this.logger=n,this.store=a,this.rtlEffects=i,this.commonService=s,this.decimalPipe=o,this.snackBar=l,this.actions=r,this.formBuilder=c,this.faExclamationTriangle=g.eHv,this.sweepAll=!1,this.selNode={},this.addressTypes=[],this.selectedAddress={},this.blockchainBalance={},this.information={},this.newAddress="",this.transactionAddress="",this.transactionAmount=null,this.transactionFees=null,this.transactionBlocks=null,this.transTypes=[{id:"1",name:"Target Confirmation Blocks"},{id:"2",name:"Fee"}],this.selTransType="1",this.fiatConversion=!1,this.amountUnits=f.uA,this.selAmountUnit=f.uA[0],this.currConvertorRate={},this.unitConversionValue=0,this.currencyUnitFormats=f.Xz,this.sendFundError="",this.flgValidated=!1,this.flgEditable=!0,this.passwordFormLabel="Authenticate with your RTL password",this.sendFundFormLabel="Sweep funds",this.confirmFormLabel="Confirm sweep",this.amountError="Amount is Required.",this.unSubs=[new p.x,new p.x,new p.x,new p.x,new p.x]}ngOnInit(){this.sweepAll=this.data.sweepAll,this.passwordFormGroup=this.formBuilder.group({hiddenPassword:["",[Ae.kI.required]],password:["",[Ae.kI.required]]}),this.sendFundFormGroup=this.formBuilder.group({transactionAddress:["",Ae.kI.required],transactionBlocks:[null],transactionFees:[null],selTransType:["1",Ae.kI.required]}),this.confirmFormGroup=this.formBuilder.group({}),this.sendFundFormGroup.controls.selTransType.valueChanges.pipe((0,d.R)(this.unSubs[0])).subscribe(e=>{"1"===e?(this.sendFundFormGroup.controls.transactionBlocks.setValidators([Ae.kI.required]),this.sendFundFormGroup.controls.transactionBlocks.setValue(null),this.sendFundFormGroup.controls.transactionFees.setValidators(null),this.sendFundFormGroup.controls.transactionFees.setValue(null)):(this.sendFundFormGroup.controls.transactionBlocks.setValidators(null),this.sendFundFormGroup.controls.transactionBlocks.setValue(null),this.sendFundFormGroup.controls.transactionFees.setValidators([Ae.kI.required]),this.sendFundFormGroup.controls.transactionFees.setValue(null))}),this.store.select("root").pipe((0,d.R)(this.unSubs[1])).subscribe(e=>{this.fiatConversion=e.selNode.settings.fiatConversion,this.amountUnits=e.selNode.settings.currencyUnits,this.appConfig=e.appConfig,this.nodeData=e.nodeData,this.logger.info(e)}),this.actions.pipe((0,d.R)(this.unSubs[2]),(0,h.h)(e=>e.type===x.JE||e.type===x.__)).subscribe(e=>{e.type===x.__&&(this.store.dispatch(new ee.Lw(this.sweepAll?"All Funds Sent Successfully!":"Fund Sent Successfully!")),this.dialogRef.close()),e.type===x.JE&&e.payload.status===f.Bn.ERROR&&"SetChannelTransaction"===e.payload.action&&(this.sendFundError=e.payload.message)})}onAuthenticate(){if(!this.passwordFormGroup.controls.password.value)return!0;this.flgValidated=!1,this.store.dispatch(new ee.ZF(Lh(this.passwordFormGroup.controls.password.value))),this.rtlEffects.isAuthorizedRes.pipe((0,pt.q)(1)).subscribe(e=>{"ERROR"!==e?(this.passwordFormGroup.controls.hiddenPassword.setValue(this.passwordFormGroup.controls.password.value),this.stepper.next()):(this.dialogRef.close(),this.snackBar.open("Unauthorized User. Logging out from RTL."))})}onSendFunds(){if(this.invalidValues)return!0;this.sendFundError="";const e={amount:this.transactionAmount?this.transactionAmount:0,sendAll:this.sweepAll};this.sweepAll?(e.address=this.sendFundFormGroup.controls.transactionAddress.value,"1"===this.sendFundFormGroup.controls.selTransType.value&&(e.blocks=this.sendFundFormGroup.controls.transactionBlocks.value),"2"===this.sendFundFormGroup.controls.selTransType.value&&(e.fees=this.sendFundFormGroup.controls.transactionFees.value)):(e.address=this.transactionAddress,"1"===this.selTransType&&(e.blocks=this.transactionBlocks),"2"===this.selTransType&&(e.fees=this.transactionFees)),this.transactionAmount&&this.selAmountUnit!==f.NT.SATS?this.commonService.convertCurrency(this.transactionAmount,this.selAmountUnit===this.amountUnits[2]?f.NT.OTHER:this.selAmountUnit,f.NT.SATS,this.amountUnits[2],this.fiatConversion).pipe((0,d.R)(this.unSubs[3])).subscribe({next:t=>{this.selAmountUnit=f.NT.SATS,e.amount=+this.decimalPipe.transform(t[this.amountUnits[0]],this.currencyUnitFormats[this.amountUnits[0]]).replace(/,/g,""),this.store.dispatch(new x.uj(e))},error:e=>{this.transactionAmount=null,this.selAmountUnit=f.NT.SATS,this.amountError="Conversion Error: "+e}}):this.store.dispatch(new x.uj(e))}get invalidValues(){return this.sweepAll?!this.sendFundFormGroup.controls.transactionAddress.value||""===this.sendFundFormGroup.controls.transactionAddress.value||"1"===this.sendFundFormGroup.controls.selTransType.value&&(!this.sendFundFormGroup.controls.transactionBlocks.value||this.sendFundFormGroup.controls.transactionBlocks.value<=0)||"2"===this.sendFundFormGroup.controls.selTransType.value&&(!this.sendFundFormGroup.controls.transactionFees.value||this.sendFundFormGroup.controls.transactionFees.value<=0):!this.transactionAddress||""===this.transactionAddress||!this.transactionAmount||this.transactionAmount<=0||"1"===this.selTransType&&(!this.transactionBlocks||this.transactionBlocks<=0)||"2"===this.selTransType&&(!this.transactionFees||this.transactionFees<=0)}resetData(){this.sendFundError="",this.selTransType="1",this.transactionAddress="",this.transactionBlocks=null,this.transactionFees=null,this.sweepAll||(this.transactionAmount=null)}stepSelectionChanged(e){switch(this.sendFundError="",e.selectedIndex){case 0:this.passwordFormLabel="Authenticate with your RTL password",this.sendFundFormLabel="Sweep funds";break;case 1:this.passwordFormLabel="User authenticated successfully",this.sendFundFormLabel="Sweep funds";break;case 2:this.passwordFormLabel="User authenticated successfully",this.sendFundFormLabel="Sweep funds | Address: "+this.sendFundFormGroup.controls.transactionAddress.value+" | "+this.transTypes[this.sendFundFormGroup.controls.selTransType.value-1].name+("2"===this.sendFundFormGroup.controls.selTransType.value?" (Sats/vByte)":"")+": "+("1"===this.sendFundFormGroup.controls.selTransType.value?this.sendFundFormGroup.controls.transactionBlocks.value:this.sendFundFormGroup.controls.transactionFees.value);break;default:this.passwordFormLabel="Authenticate with your RTL password",this.sendFundFormLabel="Sweep funds"}e.selectedIndex{this.selAmountUnit=e.value,t.transactionAmount=+t.decimalPipe.transform(n[a],t.currencyUnitFormats[a]).replace(/,/g,"")},error:e=>{t.transactionAmount=null,this.amountError="Conversion Error: "+e,this.selAmountUnit=n,a=n}})}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(ye.so),o.Y36(ye.WI),o.Y36(Z.mQ),o.Y36(y.yh),o.Y36(St.V),o.Y36(C.v),o.Y36(a.JJ),o.Y36(Ai.ux),o.Y36(A.eX),o.Y36(Ae.qu))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-on-chain-send-modal"]],viewQuery:function(e,t){if(1&e&&(o.Gf(kh,7),o.Gf(Nh,5),o.Gf(Uh,5)),2&e){let e;o.iGM(e=o.CRH())&&(t.form=e.first),o.iGM(e=o.CRH())&&(t.formSweepAll=e.first),o.iGM(e=o.CRH())&&(t.stepper=e.first)}},decls:12,vars:4,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayout","row wrap","fxLayoutAlign","space-between start","fxFlex","100","class","overflow-x-hidden",3,"submit","reset",4,"ngIf","ngIfElse"],["sweepAllBlock",""],["fxLayout","row wrap","fxLayoutAlign","space-between start","fxFlex","100",1,"overflow-x-hidden",3,"submit","reset"],["form","ngForm"],["fxFlex.gt-sm","55"],["autoFocus","","matInput","","placeholder","Bitcoin Address","tabindex","1","name","address","required","",3,"ngModel","ngModelChange"],["address","ngModel"],[4,"ngIf"],["fxFlex.gt-sm","30"],["matInput","","placeholder","Amount","name","amt","type","number","tabindex","2","required","",3,"ngModel","step","min","ngModelChange"],["amnt","ngModel"],["matSuffix",""],["fxFlex.gt-sm","10","fxLayoutAlign","start end"],["tabindex","3","required","","name","amountUnit",3,"value","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxFlex.gt-sm","60","fxLayout.gt-sm","row wrap","fxLayoutAlign","start stretch","fxLayoutAlign.gt-sm","space-between start"],["fxFlex","48"],["tabindex","4",3,"value","valueChange"],["fxFlex","48",4,"ngIf"],["fxLayout","column","fxFlex","100","fxFlex.gt-sm","40","fxLayout.gt-sm","row wrap","fxLayoutAlign","start stretch","fxLayoutAlign.gt-sm","space-between start"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","7","type","reset",1,"mr-1"],["mat-flat-button","","color","primary","type","submit","tabindex","8"],[3,"value"],["matInput","","placeholder","Number of Blocks","type","number","name","blcks","required","","tabindex","5",3,"ngModel","step","min","ngModelChange"],["blocks","ngModel"],["matInput","","placeholder","Fees (Sats/vByte)","type","number","name","chainFees","required","","tabindex","6",3,"ngModel","step","min","ngModelChange"],["fees","ngModel"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column"],[3,"linear","selectionChange"],["stepper",""],[3,"stepControl","editable",4,"ngIf"],[3,"stepControl","editable"],["fxLayout","column",1,"my-1","pr-1",3,"formGroup"],["matStepLabel","","disabled","true"],["fxLayout","column","fxFlex","98","fxLayout.gt-sm","row wrap","fxLayoutAlign","start stretch","fxLayoutAlign.gt-sm","space-between start"],["fxFlex.gt-sm","45"],["matInput","","formControlName","transactionAddress","placeholder","Bitcoin Address","tabindex","4","name","address","required",""],["fxFlex.gt-sm","25"],["formControlName","selTransType","tabindex","5"],["fxFlex.gt-sm","25","fxLayoutAlign","start end",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","8","type","button","matStepperNext",""],[3,"stepControl"],["fxLayout","column","fxLayoutAlign","start",1,"my-1","pr-1",3,"formGroup"],["matStepLabel",""],["fxFlex","100",1,"w-100","alert","alert-warn"],[1,"mt-1","mr-1","alert-icon",3,"icon"],["mat-stroked-button","","color","primary","tabindex","9","type","button",3,"click"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","tabindex","12","type","button","default","",3,"mat-dialog-close"],["fxLayout","column","fxLayoutAlign","space-between",1,"my-1","pr-1",3,"formGroup"],["autoFocus","","matInput","","placeholder","Password","type","password","tabindex","1","formControlName","password","required",""],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","3","type","button",3,"click"],["fxFlex.gt-sm","25","fxLayoutAlign","start end"],["matInput","","formControlName","transactionBlocks","placeholder","Number of Blocks","type","number","name","blcks","required","","tabindex","6",3,"step","min"],["matInput","","formControlName","transactionFees","placeholder","Fees (Sats/vByte)","type","number","name","chainFees","required","","tabindex","7",3,"step","min"]],template:function(e,t){if(1&e&&(o.TgZ(0,"div",0),o.TgZ(1,"div",1),o.TgZ(2,"mat-card-header",2),o.TgZ(3,"div",3),o.TgZ(4,"span",4),o._uU(5),o.qZA(),o.qZA(),o.TgZ(6,"button",5),o._uU(7,"X"),o.qZA(),o.qZA(),o.TgZ(8,"mat-card-content",6),o.YNc(9,Bh,28,14,"form",7),o.qZA(),o.qZA(),o.qZA(),o.YNc(10,im,34,15,"ng-template",null,8,o.W1O)),2&e){const e=o.MAs(11);o.xp6(5),o.Oqu(t.sweepAll?"Sweep All Funds":"Send Funds"),o.xp6(1),o.Q6J("mat-dialog-close",!1),o.xp6(3),o.Q6J("ngIf",!t.sweepAll)("ngIfElse",e)}},directives:[l.xw,l.yH,w.dk,l.Wh,q.lW,ye.ZT,w.dn,a.O5,Ae._Y,Ae.JL,Ae.F,D.KE,Ce.Nt,Ae.Fj,Te.h,Ae.Q7,Ae.JJ,Ae.On,Ae.wV,Ae.qQ,be.q,D.R9,we.gD,a.sg,D.TO,ve.ey,T.BN,La.Vq,La.C0,Ae.sg,La.VY,Ae.u,La.Ic],styles:[""]}),e})(),om=(()=>{class e{constructor(e,t){this.store=e,this.activatedRoute=t,this.sweepAll=!1,this.unSubs=[new p.x,new p.x]}ngOnInit(){this.activatedRoute.data.pipe((0,d.R)(this.unSubs[0])).subscribe(e=>{this.sweepAll=e.sweepAll})}openSendFundsModal(){this.store.dispatch(new ee.wu({data:{sweepAll:this.sweepAll,component:sm}}))}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(y.yh),o.Y36(i.gz))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-on-chain-send"]],decls:4,vars:1,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row"],["mat-flat-button","","color","primary","type","button","tabindex","1",3,"click"]],template:function(e,t){1&e&&(o.TgZ(0,"div",0),o.TgZ(1,"div",1),o.TgZ(2,"button",2),o.NdJ("click",function(){return t.openSendFundsModal()}),o._uU(3),o.qZA(),o.qZA(),o.qZA()),2&e&&(o.xp6(3),o.Oqu(t.sweepAll?"Sweep All":"Send Funds"))},directives:[l.xw,l.yH,l.Wh,q.lW],styles:[""]}),e})();function lm(e,t){1&e&&o._UZ(0,"mat-progress-bar",26)}function rm(e,t){if(1&e&&o._UZ(0,"rtl-node-info",27),2&e){const e=o.oxw(3);o.Q6J("information",e.information)("showColorFieldSeparately",!0)}}function cm(e,t){if(1&e&&o._UZ(0,"rtl-channel-status-info",28),2&e){const e=o.oxw(3);o.Q6J("channelsStatus",e.channelsStatus)("errorMessage",e.errorMessages[3]+" "+e.errorMessages[4])}}function um(e,t){if(1&e&&o._UZ(0,"rtl-fee-info",29),2&e){const e=o.oxw(3);o.Q6J("fees",e.fees)("errorMessage",e.errorMessages[2])}}const pm=function(e){return{"dashboard-card-content":!0,"error-border":e}};function dm(e,t){if(1&e&&(o.TgZ(0,"mat-grid-tile",13),o.TgZ(1,"div",14),o.TgZ(2,"div",15),o.TgZ(3,"div",16),o._UZ(4,"fa-icon",17),o.TgZ(5,"span"),o._uU(6),o.qZA(),o.qZA(),o.qZA(),o.TgZ(7,"div",18),o.TgZ(8,"mat-card",19),o.TgZ(9,"mat-card-content",20),o.YNc(10,lm,1,0,"mat-progress-bar",21),o.TgZ(11,"div",22),o.YNc(12,rm,1,2,"rtl-node-info",23),o.YNc(13,cm,1,2,"rtl-channel-status-info",24),o.YNc(14,um,1,2,"rtl-fee-info",25),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA()),2&e){const e=t.$implicit,n=o.oxw(2);o.Q6J("colspan",e.cols)("rowspan",e.rows),o.xp6(4),o.Q6J("icon",e.icon),o.xp6(2),o.Oqu(e.title),o.xp6(3),o.Q6J("ngClass",o.VKq(10,pm,"node"===e.id&&(null==n.apisCallStatus?null:n.apisCallStatus.FetchInfo.status)===n.apiCallStatusEnum.ERROR||"status"===e.id&&((null==n.apisCallStatus?null:n.apisCallStatus.FetchAllChannels.status)===n.apiCallStatusEnum.ERROR||n.apisCallStatus.FetchPendingChannels.status===n.apiCallStatusEnum.ERROR)||"fee"===e.id&&(null==n.apisCallStatus?null:n.apisCallStatus.FetchFees.status)===n.apiCallStatusEnum.ERROR)),o.xp6(1),o.Q6J("ngIf","node"===e.id&&(null==n.apisCallStatus?null:n.apisCallStatus.FetchInfo.status)===n.apiCallStatusEnum.INITIATED||"status"===e.id&&((null==n.apisCallStatus?null:n.apisCallStatus.FetchAllChannels.status)===n.apiCallStatusEnum.INITIATED||n.apisCallStatus.FetchPendingChannels.status===n.apiCallStatusEnum.INITIATED)||"fee"===e.id&&(null==n.apisCallStatus?null:n.apisCallStatus.FetchFees.status)===n.apiCallStatusEnum.INITIATED),o.xp6(1),o.Q6J("ngSwitch",e.id),o.xp6(1),o.Q6J("ngSwitchCase","node"),o.xp6(1),o.Q6J("ngSwitchCase","status"),o.xp6(1),o.Q6J("ngSwitchCase","fee")}}function hm(e,t){if(1&e&&(o.TgZ(0,"mat-grid-list",11),o.YNc(1,dm,15,12,"mat-grid-tile",12),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Q6J("ngForOf",e.nodeCards)}}function mm(e,t){1&e&&o._UZ(0,"mat-progress-bar",26)}function gm(e,t){1&e&&o.GkF(0)}function fm(e,t){if(1&e&&(o.TgZ(0,"div",33),o.YNc(1,gm,1,0,"ng-container",34),o.qZA()),2&e){const e=o.oxw(2),t=o.MAs(9),n=o.MAs(11);o.xp6(1),o.Q6J("ngTemplateOutlet",(null==e.apisCallStatus?null:e.apisCallStatus.FetchNetwork.status)===e.apiCallStatusEnum.ERROR?t:n)}}function xm(e,t){1&e&&o.GkF(0)}function Zm(e,t){if(1&e&&(o.TgZ(0,"div",33),o.YNc(1,xm,1,0,"ng-container",34),o.qZA()),2&e){const e=o.oxw(2),t=o.MAs(9),n=o.MAs(13);o.xp6(1),o.Q6J("ngTemplateOutlet",(null==e.apisCallStatus?null:e.apisCallStatus.FetchNetwork.status)===e.apiCallStatusEnum.ERROR?t:n)}}function ym(e,t){1&e&&o.GkF(0)}function Am(e,t){if(1&e&&(o.TgZ(0,"div",33),o.YNc(1,ym,1,0,"ng-container",34),o.qZA()),2&e){const e=o.oxw(2),t=o.MAs(9),n=o.MAs(15);o.xp6(1),o.Q6J("ngTemplateOutlet",(null==e.apisCallStatus?null:e.apisCallStatus.FetchNetwork.status)===e.apiCallStatusEnum.ERROR?t:n)}}function Cm(e,t){if(1&e&&(o.TgZ(0,"mat-grid-tile",30),o.TgZ(1,"mat-card",31),o.TgZ(2,"mat-card-content",20),o.YNc(3,mm,1,0,"mat-progress-bar",21),o.TgZ(4,"div",22),o.YNc(5,fm,2,1,"div",32),o.YNc(6,Zm,2,1,"div",32),o.YNc(7,Am,2,1,"div",32),o.qZA(),o.qZA(),o.qZA(),o.qZA()),2&e){const e=t.$implicit,n=o.oxw();o.Q6J("colspan",e.cols)("rowspan",e.rows),o.xp6(2),o.Q6J("ngClass",o.VKq(8,pm,(null==n.apisCallStatus?null:n.apisCallStatus.FetchNetwork.status)===n.apiCallStatusEnum.ERROR)),o.xp6(1),o.Q6J("ngIf",(null==n.apisCallStatus?null:n.apisCallStatus.FetchNetwork.status)===n.apiCallStatusEnum.INITIATED),o.xp6(1),o.Q6J("ngSwitch",e.id),o.xp6(1),o.Q6J("ngSwitchCase","general"),o.xp6(1),o.Q6J("ngSwitchCase","channels"),o.xp6(1),o.Q6J("ngSwitchCase","degrees")}}function Tm(e,t){if(1&e&&(o.TgZ(0,"div",35),o.TgZ(1,"p"),o._uU(2),o.qZA(),o.qZA()),2&e){const e=o.oxw();o.xp6(2),o.Oqu(e.errorMessages[1])}}function bm(e,t){if(1&e&&(o.TgZ(0,"div",36),o.TgZ(1,"div"),o.TgZ(2,"h4",37),o._uU(3,"Network Capacity"),o.qZA(),o.TgZ(4,"div",38),o._uU(5),o.ALo(6,"number"),o.qZA(),o.qZA(),o.TgZ(7,"div"),o.TgZ(8,"h4",37),o._uU(9,"Number of Nodes"),o.qZA(),o.TgZ(10,"div",38),o._uU(11),o.ALo(12,"number"),o.qZA(),o.qZA(),o.TgZ(13,"div"),o.TgZ(14,"h4",37),o._uU(15,"Number of Channels"),o.qZA(),o.TgZ(16,"span",38),o._uU(17),o.ALo(18,"number"),o.qZA(),o.qZA(),o.qZA()),2&e){const e=o.oxw();o.xp6(5),o.hij("",o.lcZ(6,3,e.networkInfo.total_network_capacity)," Sats"),o.xp6(6),o.Oqu(o.lcZ(12,5,e.networkInfo.num_nodes)),o.xp6(6),o.Oqu(o.lcZ(18,7,e.networkInfo.num_channels))}}function wm(e,t){if(1&e&&(o.TgZ(0,"div",36),o.TgZ(1,"div"),o.TgZ(2,"h4",37),o._uU(3,"Max Channel Size"),o.qZA(),o.TgZ(4,"div",38),o._uU(5),o.ALo(6,"number"),o.qZA(),o.qZA(),o.TgZ(7,"div"),o.TgZ(8,"h4",37),o._uU(9,"Avg Channel Size"),o.qZA(),o.TgZ(10,"div",38),o._uU(11),o.ALo(12,"number"),o.qZA(),o.qZA(),o.TgZ(13,"div"),o.TgZ(14,"h4",37),o._uU(15,"Min Channel Size"),o.qZA(),o.TgZ(16,"span",38),o._uU(17),o.ALo(18,"number"),o.qZA(),o.qZA(),o.qZA()),2&e){const e=o.oxw();o.xp6(5),o.Oqu(o.lcZ(6,3,e.networkInfo.max_channel_size)),o.xp6(6),o.Oqu(o.lcZ(12,5,e.networkInfo.avg_channel_size)),o.xp6(6),o.Oqu(o.lcZ(18,7,e.networkInfo.min_channel_size))}}function _m(e,t){if(1&e&&(o.TgZ(0,"div",36),o.TgZ(1,"div"),o.TgZ(2,"h4",37),o._uU(3,"Max Out Degree"),o.qZA(),o.TgZ(4,"div",38),o._uU(5),o.ALo(6,"number"),o.qZA(),o.qZA(),o.TgZ(7,"div"),o.TgZ(8,"h4",37),o._uU(9,"Avg Out Degree"),o.qZA(),o.TgZ(10,"div",38),o._uU(11),o.ALo(12,"number"),o.qZA(),o.qZA(),o.TgZ(13,"div",39),o._UZ(14,"h4",37),o._UZ(15,"span",38),o.qZA(),o.qZA()),2&e){const e=o.oxw();o.xp6(5),o.Oqu(o.lcZ(6,2,e.networkInfo.max_out_degree)),o.xp6(6),o.Oqu(o.xi3(12,4,e.networkInfo.avg_out_degree,"1.0-2"))}}const vm=function(e){return{"mt-1":e}};let qm=(()=>{class e{constructor(e,t,n){this.logger=e,this.commonService=t,this.store=n,this.faProjectDiagram=g.o4t,this.faBolt=g.BDt,this.faServer=g.xf3,this.faNetworkWired=g.kXW,this.selNode={},this.information={},this.channelsStatus={},this.networkInfo={},this.networkCards=[],this.nodeCards=[],this.screenSize="",this.screenSizeEnum=f.cu,this.userPersonaEnum=f.ol,this.errorMessages=["","","","",""],this.apisCallStatus=null,this.apiCallStatusEnum=f.Bn,this.unSubs=[new p.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===f.cu.XS?(this.networkCards=[{id:"general",cols:3,rows:1},{id:"channels",cols:3,rows:1},{id:"degrees",cols:3,rows:1}],this.nodeCards=[{id:"node",icon:this.faServer,title:"Node Information",cols:3,rows:1},{id:"status",icon:this.faNetworkWired,title:"Channels",cols:3,rows:1},{id:"fee",icon:this.faBolt,title:"Routing Fee",cols:3,rows:1}]):(this.networkCards=[{id:"general",cols:1,rows:1},{id:"channels",cols:1,rows:1},{id:"degrees",cols:1,rows:1}],this.nodeCards=[{id:"node",icon:this.faServer,title:"Node Information",cols:1,rows:1},{id:"status",icon:this.faNetworkWired,title:"Channels",cols:1,rows:1},{id:"fee",icon:this.faBolt,title:"Routing Fee",cols:1,rows:1}])}ngOnInit(){this.store.select("lnd").pipe((0,d.R)(this.unSubs[0])).subscribe(e=>{this.errorMessages=["","","","",""],this.apisCallStatus=e.apisCallStatus,e.apisCallStatus.FetchInfo.status===f.Bn.ERROR&&(this.errorMessages[0]="object"==typeof this.apisCallStatus.FetchInfo.message?JSON.stringify(this.apisCallStatus.FetchInfo.message):this.apisCallStatus.FetchInfo.message),e.apisCallStatus.FetchNetwork.status===f.Bn.ERROR&&(this.errorMessages[1]="object"==typeof this.apisCallStatus.FetchNetwork.message?JSON.stringify(this.apisCallStatus.FetchNetwork.message):this.apisCallStatus.FetchNetwork.message),e.apisCallStatus.FetchFees.status===f.Bn.ERROR&&(this.errorMessages[2]="object"==typeof this.apisCallStatus.FetchFees.message?JSON.stringify(this.apisCallStatus.FetchFees.message):this.apisCallStatus.FetchFees.message),e.apisCallStatus.FetchAllChannels.status===f.Bn.ERROR&&(this.errorMessages[3]="object"==typeof this.apisCallStatus.FetchAllChannels.message?JSON.stringify(this.apisCallStatus.FetchAllChannels.message):this.apisCallStatus.FetchAllChannels.message),e.apisCallStatus.FetchPendingChannels.status===f.Bn.ERROR&&(this.errorMessages[4]="object"==typeof this.apisCallStatus.FetchPendingChannels.message?JSON.stringify(this.apisCallStatus.FetchPendingChannels.message):this.apisCallStatus.FetchPendingChannels.message),this.selNode=e.nodeSettings,this.information=e.information,this.networkInfo=e.networkInfo,this.fees=e.fees,this.channelsStatus={active:{channels:e.numberOfActiveChannels,capacity:e.totalCapacityActive},inactive:{channels:e.numberOfInactiveChannels,capacity:e.totalCapacityInactive},pending:{channels:e.numberOfPendingChannels.open.num_channels,capacity:e.numberOfPendingChannels.open.limbo_balance},closing:{channels:e.numberOfPendingChannels.closing.num_channels+e.numberOfPendingChannels.force_closing.num_channels+e.numberOfPendingChannels.waiting_close.num_channels,capacity:e.numberOfPendingChannels.total_limbo_balance}},this.logger.info(e)})}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(Z.mQ),o.Y36(C.v),o.Y36(y.yh))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-network-info"]],decls:16,vars:6,consts:[["fxLayout","column","fxLayoutAlign","space-between stretch",1,"mb-4"],["cols","3","rowHeight","330px",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start end",1,"page-title-container",3,"ngClass"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["cols","3","rowHeight","250px"],["fxLayout","row",3,"colspan","rowspan",4,"ngFor","ngForOf"],["errorBlock",""],["generalBlock",""],["channelsBlock",""],["degreesBlock",""],["cols","3","rowHeight","330px"],["class","node-grid-tile",3,"colspan","rowspan",4,"ngFor","ngForOf"],[1,"node-grid-tile",3,"colspan","rowspan"],["fxLayout","column","fxLayoutAlign","stretch start","fxFlex","100",1,"h-100"],["fxLayout","row","fxLayoutAlign","start start",1,"w-100"],["fxLayout","row","fxLayoutAlign","start start",1,"page-title-container"],[1,"mr-1",3,"icon"],["fxLayout","column","fxLayoutAlign","stretch center","fxLayout.gt-sm","row","fxLayoutAlign.gt-sm","center stretch",1,"w-100","h-93"],["fxLayout","row","fxFlex","95","fxLayoutAlign","start stretch",1,"dashboard-card","w-96","h-93"],["fxLayout","column","fxFlex","100",3,"ngClass"],["mode","indeterminate",4,"ngIf"],["fxLayout","column","fxFlex","100",3,"ngSwitch"],["fxFlex","100",3,"information","showColorFieldSeparately",4,"ngSwitchCase"],["fxFlex","100",3,"channelsStatus","errorMessage",4,"ngSwitchCase"],["fxFlex","100",3,"fees","errorMessage",4,"ngSwitchCase"],["mode","indeterminate"],["fxFlex","100",3,"information","showColorFieldSeparately"],["fxFlex","100",3,"channelsStatus","errorMessage"],["fxFlex","100",3,"fees","errorMessage"],["fxLayout","row",3,"colspan","rowspan"],["fxLayout","row","fxFlex","95","fxLayoutAlign","start stretch",1,"dashboard-card","h-93"],["fxFlex","100",4,"ngSwitchCase"],["fxFlex","100"],[4,"ngTemplateOutlet"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between"],[1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],["fxFlex","20"]],template:function(e,t){1&e&&(o.TgZ(0,"div",0),o.YNc(1,hm,2,1,"mat-grid-list",1),o.TgZ(2,"div",2),o._UZ(3,"fa-icon",3),o.TgZ(4,"span",4),o._uU(5,"Network"),o.qZA(),o.qZA(),o.TgZ(6,"mat-grid-list",5),o.YNc(7,Cm,8,10,"mat-grid-tile",6),o.qZA(),o.qZA(),o.YNc(8,Tm,3,1,"ng-template",null,7,o.W1O),o.YNc(10,bm,19,9,"ng-template",null,8,o.W1O),o.YNc(12,wm,19,9,"ng-template",null,9,o.W1O),o.YNc(14,_m,16,7,"ng-template",null,10,o.W1O)),2&e&&(o.xp6(1),o.Q6J("ngIf",t.selNode.userPersona!==t.userPersonaEnum.OPERATOR),o.xp6(1),o.Q6J("ngClass",o.VKq(4,vm,t.screenSize!==t.screenSizeEnum.XS)),o.xp6(1),o.Q6J("icon",t.faProjectDiagram),o.xp6(4),o.Q6J("ngForOf",t.networkCards))},directives:[l.xw,l.Wh,a.O5,a.mk,v.oO,T.BN,b.Il,a.sg,b.DX,l.yH,w.a8,w.dn,a.RF,a.n9,r.pW,U,j,W,a.tP],pipes:[a.JJ],styles:[""]}),e})();function Sm(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"div",8),o.NdJ("click",function(){const t=o.CHM(e).$implicit;return o.oxw().activeLink=t.link}),o._uU(1),o.qZA()}if(2&e){const e=t.$implicit,n=o.oxw();o.s9C("routerLink",e.link),o.Q6J("active",n.activeLink===e.link),o.xp6(1),o.Oqu(e.name)}}let Fm=(()=>{class e{constructor(e){this.router=e,this.faDownload=g.q7m,this.links=[{link:"bckup",name:"Backup"},{link:"restore",name:"Restore"}],this.activeLink=this.links[0].link,this.unSubs=[new p.x,new p.x]}ngOnInit(){const e=this.links.find(e=>this.router.url.includes(e.link));this.activeLink=e?e.link:this.links[0].link,this.router.events.pipe((0,d.R)(this.unSubs[0]),(0,h.h)(e=>e instanceof i.Av)).subscribe(e=>{const t=this.links.find(t=>e.urlAfterRedirects.includes(t.link));this.activeLink=t?t.link:this.links[0].link})}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(i.F0))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-backup"]],decls:11,vars:2,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(e,t){1&e&&(o.TgZ(0,"div",0),o._UZ(1,"fa-icon",1),o.TgZ(2,"span",2),o._uU(3,"Channels Backup"),o.qZA(),o.qZA(),o.TgZ(4,"div",3),o.TgZ(5,"mat-card"),o.TgZ(6,"mat-card-content",4),o.TgZ(7,"nav",5),o.YNc(8,Sm,2,3,"div",6),o.qZA(),o.TgZ(9,"div",7),o._UZ(10,"router-outlet"),o.qZA(),o.qZA(),o.qZA(),o.qZA()),2&e&&(o.xp6(1),o.Q6J("icon",t.faDownload),o.xp6(7),o.Q6J("ngForOf",t.links))},directives:[l.xw,l.Wh,T.BN,w.a8,w.dn,ge.BU,a.sg,l.yH,i.lC,ge.Nj,i.rH],styles:[""]}),e})();function Lm(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"div",23),o.TgZ(1,"h4",24),o._uU(2),o.qZA(),o.TgZ(3,"div",25),o.TgZ(4,"button",26),o.NdJ("click",function(){return o.CHM(e),o.oxw().onRestoreChannels({})}),o._uU(5,"Restore All"),o.qZA(),o.qZA(),o.qZA()}if(2&e){const e=o.oxw();o.xp6(2),o.hij("Restore folder location: ",e.selNode.channelBackupPath,"/restore")}}function km(e,t){if(1&e&&(o.TgZ(0,"div",27),o.TgZ(1,"h4",24),o._uU(2),o.qZA(),o.TgZ(3,"h4",28),o._uU(4,"All channel backup file not found! To perform channel restoration, channel backup file/s must be placed at the above location."),o.qZA(),o.qZA()),2&e){const e=o.oxw();o.xp6(2),o.hij("Restore folder location: ",e.selNode.channelBackupPath,"/restore")}}function Nm(e,t){if(1&e&&(o.TgZ(0,"div",27),o.TgZ(1,"h4",24),o._uU(2),o.qZA(),o.qZA()),2&e){const e=o.oxw();o.xp6(2),o.hij("Restore folder location: ",e.selNode.channelBackupPath,"/restore")}}function Um(e,t){1&e&&o._UZ(0,"mat-progress-bar",29)}function Im(e,t){1&e&&(o.TgZ(0,"th",30),o._uU(1," Channel Point "),o.qZA())}const Om=function(e){return{"max-width":e}};function Jm(e,t){if(1&e&&(o.TgZ(0,"td",31),o._uU(1),o.qZA()),2&e){const e=t.$implicit,n=o.oxw();o.Q6J("ngStyle",o.VKq(2,Om,n.screenSize===n.screenSizeEnum.XS?"10rem":"45rem")),o.xp6(1),o.Oqu(null==e?null:e.channel_point)}}function Dm(e,t){1&e&&(o.TgZ(0,"th",32),o.TgZ(1,"span",33),o._uU(2,"Actions"),o.qZA(),o.qZA())}function Rm(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"td",34),o.TgZ(1,"span",33),o.TgZ(2,"button",35),o.NdJ("click",function(){const t=o.CHM(e).$implicit;return o.oxw().onRestoreChannels(t)}),o._uU(3,"Restore"),o.qZA(),o.qZA(),o.qZA()}}function Mm(e,t){1&e&&(o.TgZ(0,"p"),o._uU(1,"No singular channel backups available."),o.qZA())}function Em(e,t){if(1&e&&(o.TgZ(0,"td",36),o.YNc(1,Mm,2,0,"p",37),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Q6J("ngIf",!e.channels||!e.channels.data||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)}}const Qm=function(e){return{"display-none":e}};function Ym(e,t){if(1&e&&o._UZ(0,"tr",38),2&e){const e=o.oxw();o.Q6J("ngClass",o.VKq(1,Qm,e.channels&&e.channels.data&&(null==e.channels||null==e.channels.data?null:e.channels.data.length)>0))}}function Pm(e,t){1&e&&o._UZ(0,"tr",39)}function Bm(e,t){1&e&&o._UZ(0,"tr",40)}const Gm=function(e){return{"overflow-auto error-border":e,"overflow-auto":!0}},Hm=function(){return["no_channel"]};let zm=(()=>{class e{constructor(e,t,n,a){this.logger=e,this.store=t,this.lndEffects=n,this.commonService=a,this.pageSize=f.IV,this.pageSizeOptions=f.TJ,this.selNode={},this.displayedColumns=["channel_point","actions"],this.channelsData=[],this.allRestoreExists=!1,this.flgLoading=[!0],this.flgSticky=!1,this.screenSize="",this.screenSizeEnum=f.cu,this.unSubs=[new p.x,new p.x,new p.x,new p.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.dispatch(new x.gL),this.store.select("lnd").pipe((0,d.R)(this.unSubs[0])).subscribe(e=>{this.selNode=e.nodeSettings,this.logger.info(e)}),this.lndEffects.setRestoreChannelList.pipe((0,d.R)(this.unSubs[0])).subscribe(e=>{this.allRestoreExists=e.all_restore_exists,this.channelsData=e.files,this.channelsData.length>0&&this.loadRestoreTable(this.channelsData),("error"!==this.flgLoading[0]||e&&e.files)&&(this.flgLoading[0]=!1),this.logger.info(e)})}ngAfterViewInit(){this.channelsData&&this.channelsData.length>0&&this.loadRestoreTable(this.channelsData)}onRestoreChannels(e){this.store.dispatch(new x.Cd({channelPoint:e.channel_point?e.channel_point:"ALL"}))}applyFilter(e){this.channels.filter=e.value.trim().toLowerCase()}loadRestoreTable(e){this.channels=new Ze.by([...e]),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(e,t)=>e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():e[t]?+e[t]:null,this.channels.filterPredicate=(e,t)=>JSON.stringify(e).toLowerCase().includes(t),this.channels.paginator=this.paginator}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(Z.mQ),o.Y36(y.yh),o.Y36(Ft.l),o.Y36(C.v))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-channel-restore-table"]],viewQuery:function(e,t){if(1&e&&(o.Gf(xe.YE,5),o.Gf(fe.NW,5)),2&e){let e;o.iGM(e=o.CRH())&&(t.sort=e.first),o.iGM(e=o.CRH())&&(t.paginator=e.first)}},features:[o._Bn([{provide:fe.ye,useValue:(0,f.pt)("Channels")}])],decls:24,vars:16,consts:[["fxLayout","column",1,"mt-2"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap",4,"ngIf"],["fxLayout","column","fxLayoutAlign","space-between start","fxLayout.gt-md","row wrap",4,"ngIf"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container","mt-2"],["fxFlex","70"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"keyup"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","channel_point"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","pr-3",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","no_channel"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["fxFlex","100"],["fxLayout","row",1,"mt-2"],["mat-flat-button","","color","primary","tabindex","1",3,"click"],["fxLayout","column","fxLayoutAlign","space-between start","fxLayout.gt-md","row wrap"],["fxFlex","100",1,"mt-1"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"ngStyle"],["mat-header-cell","",1,"pr-3"],["fxLayoutAlign","end center"],["mat-cell",""],["mat-stroked-button","","color","primary","type","button","tabindex","1",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,t){1&e&&(o.TgZ(0,"div",0),o.YNc(1,Lm,6,1,"div",1),o.YNc(2,km,5,1,"div",2),o.YNc(3,Nm,3,1,"div",2),o.TgZ(4,"div",3),o._UZ(5,"div",4),o.TgZ(6,"mat-form-field",5),o.TgZ(7,"input",6),o.NdJ("keyup",function(e){return t.applyFilter(e.target)}),o.qZA(),o.qZA(),o.qZA(),o.TgZ(8,"div",7),o.YNc(9,Um,1,0,"mat-progress-bar",8),o.TgZ(10,"table",9,10),o.ynx(12,11),o.YNc(13,Im,2,0,"th",12),o.YNc(14,Jm,2,4,"td",13),o.BQk(),o.ynx(15,14),o.YNc(16,Dm,3,0,"th",15),o.YNc(17,Rm,4,0,"td",16),o.BQk(),o.ynx(18,17),o.YNc(19,Em,2,1,"td",18),o.BQk(),o.YNc(20,Ym,1,3,"tr",19),o.YNc(21,Pm,1,0,"tr",20),o.YNc(22,Bm,1,0,"tr",21),o.qZA(),o.qZA(),o._UZ(23,"mat-paginator",22),o.qZA()),2&e&&(o.xp6(1),o.Q6J("ngIf",t.allRestoreExists),o.xp6(1),o.Q6J("ngIf",!t.allRestoreExists&&(!t.channels||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<=0)),o.xp6(1),o.Q6J("ngIf",!t.allRestoreExists&&t.channels&&(null==t.channels||null==t.channels.data?null:t.channels.data.length)&&(null==t.channels||null==t.channels.data?null:t.channels.data.length)>0),o.xp6(6),o.Q6J("ngIf",!0===t.flgLoading[0]),o.xp6(1),o.Q6J("dataSource",t.channels)("ngClass",o.VKq(13,Gm,"error"===t.flgLoading[0])),o.xp6(10),o.Q6J("matFooterRowDef",o.DdM(15,Hm)),o.xp6(1),o.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),o.xp6(1),o.Q6J("matRowDefColumns",t.displayedColumns),o.xp6(1),o.Q6J("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS))},directives:[l.xw,a.O5,l.Wh,l.yH,D.KE,Ce.Nt,E.$V,Ze.BZ,xe.YE,a.mk,v.oO,Ze.w1,Ze.fO,Ze.Dz,Ze.mD,Ze.Ke,Ze.as,Ze.nj,fe.NW,q.lW,r.pW,Ze.ge,xe.nU,Ze.ev,a.PC,v.Zl,Ze.yh,Ze.Q2,Ze.XQ,Ze.Gk],styles:[".mat-column-channel_point[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),e})();function Vm(e,t){1&e&&o._UZ(0,"mat-progress-bar",31)}function Wm(e,t){1&e&&(o.TgZ(0,"th",32),o._uU(1," Channel Point "),o.qZA())}const Xm=function(e){return{"max-width":e}};function $m(e,t){if(1&e&&(o.TgZ(0,"td",33),o._uU(1),o.qZA()),2&e){const e=t.$implicit,n=o.oxw();o.Q6J("ngStyle",o.VKq(2,Xm,n.screenSize===n.screenSizeEnum.XS?"10rem":"28rem")),o.xp6(1),o.Oqu(null==e?null:e.channel_point)}}function jm(e,t){1&e&&(o.TgZ(0,"th",34),o.TgZ(1,"span",35),o._uU(2,"Actions"),o.qZA(),o.qZA())}function Km(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"td",36),o.TgZ(1,"div",37),o.TgZ(2,"mat-select",38),o._UZ(3,"mat-select-trigger"),o.TgZ(4,"mat-option",39),o.NdJ("click",function(t){const n=o.CHM(e).$implicit;return o.oxw().onChannelClick(n,t)}),o._uU(5,"View Info"),o.qZA(),o.TgZ(6,"mat-option",39),o.NdJ("click",function(){const t=o.CHM(e).$implicit;return o.oxw().onBackupChannels(t)}),o._uU(7,"Backup"),o.qZA(),o.TgZ(8,"mat-option",39),o.NdJ("click",function(){const t=o.CHM(e).$implicit;return o.oxw().onDownloadBackup(t)}),o._uU(9,"Download Backup"),o.qZA(),o.TgZ(10,"mat-option",39),o.NdJ("click",function(){const t=o.CHM(e).$implicit;return o.oxw().onVerifyChannels(t)}),o._uU(11,"Verify"),o.qZA(),o.qZA(),o.qZA(),o.qZA()}}function eg(e,t){1&e&&(o.TgZ(0,"p"),o._uU(1,"No channel available."),o.qZA())}function tg(e,t){1&e&&(o.TgZ(0,"p"),o._uU(1,"Getting channels..."),o.qZA())}function ng(e,t){if(1&e&&(o.TgZ(0,"p"),o._uU(1),o.qZA()),2&e){const e=o.oxw(2);o.xp6(1),o.Oqu(e.errorMessage)}}function ag(e,t){if(1&e&&(o.TgZ(0,"td",40),o.YNc(1,eg,2,0,"p",41),o.YNc(2,tg,2,0,"p",41),o.YNc(3,ng,2,1,"p",41),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Q6J("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.FetchAllChannels.status)===e.apiCallStatusEnum.COMPLETED),o.xp6(1),o.Q6J("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.FetchAllChannels.status)===e.apiCallStatusEnum.INITIATED),o.xp6(1),o.Q6J("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&(null==e.apisCallStatus?null:e.apisCallStatus.FetchAllChannels.status)===e.apiCallStatusEnum.ERROR)}}const ig=function(e){return{"display-none":e}};function sg(e,t){if(1&e&&o._UZ(0,"tr",42),2&e){const e=o.oxw();o.Q6J("ngClass",o.VKq(1,ig,(null==e.channels?null:e.channels.data)&&(null==e.channels||null==e.channels.data?null:e.channels.data.length)>0))}}function og(e,t){1&e&&o._UZ(0,"tr",43)}function lg(e,t){1&e&&o._UZ(0,"tr",44)}const rg=function(e){return{"overflow-auto error-border":e,"overflow-auto":!0}},cg=function(){return["no_channel"]};let ug=(()=>{class e{constructor(e,t,n,a){this.logger=e,this.store=t,this.actions=n,this.commonService=a,this.faInfoCircle=g.sqG,this.faExclamationTriangle=g.eHv,this.faArchive=g.N2j,this.pageSize=f.IV,this.pageSizeOptions=f.TJ,this.selNode={},this.displayedColumns=["channel_point","actions"],this.channelsData=[],this.flgSticky=!1,this.screenSize="",this.screenSizeEnum=f.cu,this.errorMessage="",this.apisCallStatus=null,this.apiCallStatusEnum=f.Bn,this.unSubs=[new p.x,new p.x,new p.x,new p.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select("lnd").pipe((0,d.R)(this.unSubs[0])).subscribe(e=>{this.errorMessage="",this.apisCallStatus=e.apisCallStatus,e.apisCallStatus.FetchAllChannels.status===f.Bn.ERROR&&(this.errorMessage="object"==typeof this.apisCallStatus.FetchAllChannels.message?JSON.stringify(this.apisCallStatus.FetchAllChannels.message):this.apisCallStatus.FetchAllChannels.message),this.selNode=e.nodeSettings,this.channelsData=e.allChannels,this.channelsData.length>0&&this.loadBackupTable(this.channelsData),this.logger.info(e)}),this.actions.pipe((0,d.R)(this.unSubs[1]),(0,h.h)(e=>e.type===x.P2||e.type===ee.BQ)).subscribe(e=>{e.type===x.P2&&(this.selectedChannel=null),e.type===ee.BQ&&(this.commonService.downloadFile(e.payload,"channel-"+(this.selectedChannel.channel_point?this.selectedChannel.channel_point:"all"),".bak",".bak"),this.selectedChannel=null)})}ngAfterViewInit(){this.channelsData.length>0&&this.loadBackupTable(this.channelsData)}onBackupChannels(e){this.store.dispatch(new x.FN({uiMessage:f.m6.BACKUP_CHANNEL,channelPoint:e.channel_point?e.channel_point:"ALL",showMessage:""}))}onVerifyChannels(e){this.store.dispatch(new x.gf({channelPoint:e.channel_point?e.channel_point:"ALL"}))}onDownloadBackup(e){this.selectedChannel=e,this.store.dispatch(new ee.nw({channelPoint:e.channel_point?e.channel_point:"all"}))}onChannelClick(e,t){this.store.dispatch(new ee.wu({data:{channel:e,showCopy:!1,component:Si}}))}applyFilter(e){this.channels.filter=e.value.trim().toLowerCase()}loadBackupTable(e){this.channels=new Ze.by(e?[...e]:[]),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(e,t)=>e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():e[t]?+e[t]:null,this.channels.paginator=this.paginator,this.channels.filterPredicate=(e,t)=>((e.active?"active":"inactive")+(e.channel_point?e.channel_point.toLowerCase():"")+(e.chan_id?e.chan_id.toLowerCase():"")+(e.remote_pubkey?e.remote_pubkey.toLowerCase():"")+(e.remote_alias?e.remote_alias.toLowerCase():"")+(e.capacity?e.capacity:"")+(e.local_balance?e.local_balance:"")+(e.remote_balance?e.remote_balance:"")+(e.total_satoshis_sent?e.total_satoshis_sent:"")+(e.total_satoshis_received?e.total_satoshis_received:"")+(e.commit_fee?e.commit_fee:"")+(e.private?"private":"public")).includes(t)}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(Z.mQ),o.Y36(y.yh),o.Y36(A.eX),o.Y36(C.v))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-channel-backup-table"]],viewQuery:function(e,t){if(1&e&&(o.Gf(xe.YE,5),o.Gf(fe.NW,5)),2&e){let e;o.iGM(e=o.CRH())&&(t.sort=e.first),o.iGM(e=o.CRH())&&(t.paginator=e.first)}},features:[o._Bn([{provide:fe.ye,useValue:(0,f.pt)("Channels")}])],decls:42,vars:17,consts:[["fxLayout","column"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["fxFlex","100",1,"alert","alert-info"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","1",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","2",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","3",3,"click"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container","mt-2"],["fxFlex","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"keyup"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","channel_point"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","pr-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_channel"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"ngStyle"],["mat-header-cell","",1,"pr-3"],["fxLayoutAlign","end center"],["mat-cell","","fxLayoutAlign","end center"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,t){1&e&&(o.TgZ(0,"div",0),o.TgZ(1,"div",1),o.TgZ(2,"div",2),o._UZ(3,"fa-icon",3),o.TgZ(4,"span"),o._uU(5,"Save your backup files in a redundant location."),o.qZA(),o.qZA(),o.TgZ(6,"div",4),o._UZ(7,"fa-icon",3),o.TgZ(8,"span"),o.TgZ(9,"strong"),o._uU(10,"Backup Folder Location: "),o.qZA(),o._uU(11),o.qZA(),o.qZA(),o.TgZ(12,"div",5),o.TgZ(13,"button",6),o.NdJ("click",function(){return t.onVerifyChannels({})}),o._uU(14,"Verify All"),o.qZA(),o.TgZ(15,"button",7),o.NdJ("click",function(){return t.onBackupChannels({})}),o._uU(16,"Backup All"),o.qZA(),o.TgZ(17,"button",8),o.NdJ("click",function(){return t.onDownloadBackup({})}),o._uU(18,"Download Backup"),o.qZA(),o.qZA(),o.qZA(),o.TgZ(19,"div",9),o.TgZ(20,"div",10),o._UZ(21,"fa-icon",11),o.TgZ(22,"span",12),o._uU(23,"Backups"),o.qZA(),o.qZA(),o.TgZ(24,"mat-form-field",13),o.TgZ(25,"input",14),o.NdJ("keyup",function(e){return t.applyFilter(e.target)}),o.qZA(),o.qZA(),o.qZA(),o.TgZ(26,"div",15),o.YNc(27,Vm,1,0,"mat-progress-bar",16),o.TgZ(28,"table",17,18),o.ynx(30,19),o.YNc(31,Wm,2,0,"th",20),o.YNc(32,$m,2,4,"td",21),o.BQk(),o.ynx(33,22),o.YNc(34,jm,3,0,"th",23),o.YNc(35,Km,12,0,"td",24),o.BQk(),o.ynx(36,25),o.YNc(37,ag,4,3,"td",26),o.BQk(),o.YNc(38,sg,1,3,"tr",27),o.YNc(39,og,1,0,"tr",28),o.YNc(40,lg,1,0,"tr",29),o.qZA(),o.qZA(),o._UZ(41,"mat-paginator",30),o.qZA()),2&e&&(o.xp6(3),o.Q6J("icon",t.faExclamationTriangle),o.xp6(4),o.Q6J("icon",t.faInfoCircle),o.xp6(4),o.hij("",t.selNode.channelBackupPath,"."),o.xp6(10),o.Q6J("icon",t.faArchive),o.xp6(6),o.Q6J("ngIf",(null==t.apisCallStatus?null:t.apisCallStatus.FetchAllChannels.status)===t.apiCallStatusEnum.INITIATED),o.xp6(1),o.Q6J("dataSource",t.channels)("ngClass",o.VKq(14,rg,""!==t.errorMessage)),o.xp6(10),o.Q6J("matFooterRowDef",o.DdM(16,cg)),o.xp6(1),o.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),o.xp6(1),o.Q6J("matRowDefColumns",t.displayedColumns),o.xp6(1),o.Q6J("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS))},directives:[l.xw,l.Wh,l.yH,T.BN,q.lW,D.KE,Ce.Nt,E.$V,a.O5,Ze.BZ,xe.YE,a.mk,v.oO,Ze.w1,Ze.fO,Ze.Dz,Ze.mD,Ze.Ke,Ze.as,Ze.nj,fe.NW,r.pW,Ze.ge,xe.nU,Ze.ev,a.PC,v.Zl,we.gD,we.$L,ve.ey,Ze.yh,Ze.Q2,Ze.XQ,Ze.Gk],styles:[".mat-column-channel_point[_ngcontent-%COMP%]{flex:1 1 70%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),e})();function pg(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"div",8),o.NdJ("click",function(){const t=o.CHM(e).$implicit;return o.oxw().activeLink=t.link}),o._uU(1),o.qZA()}if(2&e){const e=t.$implicit,n=o.oxw();o.s9C("routerLink",e.link),o.Q6J("active",n.activeLink===e.link),o.xp6(1),o.Oqu(e.name)}}let dg=(()=>{class e{constructor(e){this.router=e,this.faUserCheck=g.hkK,this.links=[{link:"sign",name:"Sign"},{link:"verify",name:"Verify"}],this.activeLink=this.links[0].link,this.unSubs=[new p.x,new p.x]}ngOnInit(){const e=this.links.find(e=>this.router.url.includes(e.link));this.activeLink=e?e.link:this.links[0].link,this.router.events.pipe((0,d.R)(this.unSubs[0]),(0,h.h)(e=>e instanceof i.Av)).subscribe(e=>{const t=this.links.find(t=>e.urlAfterRedirects.includes(t.link));this.activeLink=t?t.link:this.links[0].link})}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(i.F0))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-sign-verify-message"]],decls:11,vars:2,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(e,t){1&e&&(o.TgZ(0,"div",0),o._UZ(1,"fa-icon",1),o.TgZ(2,"span",2),o._uU(3,"Sign/Verify Message"),o.qZA(),o.qZA(),o.TgZ(4,"div",3),o.TgZ(5,"mat-card"),o.TgZ(6,"mat-card-content",4),o.TgZ(7,"nav",5),o.YNc(8,pg,2,3,"div",6),o.qZA(),o.TgZ(9,"div",7),o._UZ(10,"router-outlet"),o.qZA(),o.qZA(),o.qZA(),o.qZA()),2&e&&(o.xp6(1),o.Q6J("icon",t.faUserCheck),o.xp6(7),o.Q6J("ngForOf",t.links))},directives:[l.xw,l.Wh,T.BN,w.a8,w.dn,ge.BU,a.sg,l.yH,i.lC,ge.Nj,i.rH],styles:[""]}),e})();function hg(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Message is required."),o.qZA())}let mg=(()=>{class e{constructor(e,t,n){this.dataService=e,this.snackBar=t,this.logger=n,this.message="",this.signedMessage="",this.signature="",this.unSubs=[new p.x,new p.x]}onSign(){if(!this.message||""===this.message)return!0;this.dataService.signMessage(this.message).pipe((0,d.R)(this.unSubs[0])).subscribe(e=>{this.signedMessage=this.message,this.signature=e.signature})}onMessageChange(){this.signedMessage!==this.message&&(this.signature="")}onCopyField(e){this.snackBar.open("Signature copied."),this.logger.info("Copied Text: "+e)}resetData(){this.message="",this.signature="",this.signedMessage=""}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(dt.D),o.Y36(Ai.ux),o.Y36(Z.mQ))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-sign"]],decls:20,vars:5,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["form","ngForm"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start end"],["autoFocus","","matInput","","rows","1","placeholder","Message to sign","required","","tabindex","1","name","message",3,"ngModel","ngModelChange","keyup"],[4,"ngIf"],["fxLayout","row",1,"my-1"],["mat-stroked-button","","color","primary","tabindex","2","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","3","type","submit",3,"click"],[1,"my-2",3,"inset"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",1,"bordered-box","read-only","h-4","padding-gap"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","4","rtlClipboard","","type","button",3,"payload","copied"]],template:function(e,t){1&e&&(o.TgZ(0,"div",0),o.TgZ(1,"form",1,2),o.TgZ(3,"mat-form-field",3),o.TgZ(4,"textarea",4),o.NdJ("ngModelChange",function(e){return t.message=e})("keyup",function(){return t.onMessageChange()}),o.qZA(),o.YNc(5,hg,2,0,"mat-error",5),o.qZA(),o.TgZ(6,"div",6),o.TgZ(7,"button",7),o.NdJ("click",function(){return t.resetData()}),o._uU(8,"Clear Field"),o.qZA(),o.TgZ(9,"button",8),o.NdJ("click",function(){return t.onSign()}),o._uU(10,"Sign"),o.qZA(),o.qZA(),o._UZ(11,"mat-divider",9),o.TgZ(12,"div",10),o.TgZ(13,"p"),o._uU(14,"Generated Signature"),o.qZA(),o.qZA(),o.TgZ(15,"div",11),o._uU(16),o.qZA(),o.TgZ(17,"div",12),o.TgZ(18,"button",13),o.NdJ("copied",function(e){return t.onCopyField(e)}),o._uU(19,"Copy Signature"),o.qZA(),o.qZA(),o.qZA(),o.qZA()),2&e&&(o.xp6(4),o.Q6J("ngModel",t.message),o.xp6(1),o.Q6J("ngIf",!t.message),o.xp6(6),o.Q6J("inset",!0),o.xp6(5),o.Oqu(t.signature),o.xp6(2),o.Q6J("payload",t.signature))},directives:[l.xw,l.yH,l.Wh,Ae._Y,Ae.JL,Ae.F,D.KE,Ce.Nt,Ae.Fj,Te.h,Ae.Q7,Ae.JJ,Ae.On,a.O5,q.lW,M.d,Ci.y,D.TO],styles:[".mat-column-channel_point[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),e})();function gg(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Message is required."),o.qZA())}function fg(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1,"Signature is required."),o.qZA())}function xg(e,t){1&e&&(o.TgZ(0,"p",13),o.TgZ(1,"mat-icon",14),o._uU(2,"close"),o.qZA(),o._uU(3,"Verification failed, please double check message and signature"),o.qZA())}function Zg(e,t){1&e&&(o.TgZ(0,"p"),o._uU(1,"Pubkey Used"),o.qZA())}function yg(e,t){if(1&e&&(o.TgZ(0,"div",20),o.TgZ(1,"p"),o._uU(2),o.qZA(),o.qZA()),2&e){const e=o.oxw(2);o.xp6(2),o.Oqu(null==e.verifyRes?null:e.verifyRes.pubkey)}}function Ag(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"div",21),o.TgZ(1,"button",22),o.NdJ("copied",function(t){return o.CHM(e),o.oxw(2).onCopyField(t)}),o._uU(2,"Copy Pubkey"),o.qZA(),o.qZA()}if(2&e){const e=o.oxw(2);o.xp6(1),o.Q6J("payload",null==e.verifyRes?null:e.verifyRes.pubkey)}}function Cg(e,t){if(1&e&&(o.TgZ(0,"div",15),o._UZ(1,"mat-divider",16),o.TgZ(2,"div",17),o.YNc(3,Zg,2,0,"p",5),o.qZA(),o.YNc(4,yg,3,1,"div",18),o.YNc(5,Ag,3,1,"div",19),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Q6J("inset",!0),o.xp6(2),o.Q6J("ngIf",e.verifyRes.valid),o.xp6(1),o.Q6J("ngIf",e.verifyRes.valid),o.xp6(1),o.Q6J("ngIf",e.verifyRes.valid)}}let Tg=(()=>{class e{constructor(e,t,n){this.dataService=e,this.snackBar=t,this.logger=n,this.message="",this.verifiedMessage="",this.signature="",this.verifiedSignature="",this.showVerifyStatus=!1,this.verifyRes={pubkey:"",valid:null},this.unSubs=[new p.x,new p.x]}onVerify(){if(!this.message||""===this.message||!this.signature||""===this.signature)return!0;this.dataService.verifyMessage(this.message,this.signature).pipe((0,d.R)(this.unSubs[0])).subscribe(e=>{this.verifyRes=e,this.showVerifyStatus=!0,this.verifiedMessage=this.message,this.verifiedSignature=this.signature})}onChange(){this.verifiedMessage===this.message&&this.verifiedSignature===this.signature||(this.showVerifyStatus=!1,this.verifyRes={pubkey:"",valid:null})}resetData(){this.message="",this.signature="",this.verifyRes=null,this.showVerifyStatus=!1}onCopyField(e){this.snackBar.open("Pubkey copied."),this.logger.info("Copied Text: "+e)}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(dt.D),o.Y36(Ai.ux),o.Y36(Z.mQ))},e.\u0275cmp=o.Xpm({type:e,selectors:[["rtl-verify"]],decls:17,vars:6,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["form","ngForm"],["fxFlex","100","fxLayoutAlign","start end"],["autoFocus","","matInput","","rows","1","placeholder","Message to verify","required","","tabindex","1","name","message",3,"ngModel","ngModelChange","keyup"],[4,"ngIf"],["matInput","","placeholder","Signature provided","name","signature","tabindex","2","required","",3,"ngModel","ngModelChange","keyup"],["sign","ngModel"],["fxFlex","100","class","color-warn","fxLayoutAlign","start center",4,"ngIf"],["fxLayout","row",1,"my-1"],["mat-stroked-button","","color","primary","tabindex","3","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","4","type","submit",3,"click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap",4,"ngIf"],["fxFlex","100","fxLayoutAlign","start center",1,"color-warn"],[1,"mr-1","icon-small"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],[1,"my-2",3,"inset"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start","class","bordered-box read-only h-4 padding-gap",4,"ngIf"],["fxLayout","row","class","mt-2",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start",1,"bordered-box","read-only","h-4","padding-gap"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","5","rtlClipboard","","type","button",3,"payload","copied"]],template:function(e,t){1&e&&(o.TgZ(0,"div",0),o.TgZ(1,"form",1,2),o.TgZ(3,"mat-form-field",3),o.TgZ(4,"textarea",4),o.NdJ("ngModelChange",function(e){return t.message=e})("keyup",function(){return t.onChange()}),o.qZA(),o.YNc(5,gg,2,0,"mat-error",5),o.qZA(),o.TgZ(6,"mat-form-field",3),o.TgZ(7,"input",6,7),o.NdJ("ngModelChange",function(e){return t.signature=e})("keyup",function(){return t.onChange()}),o.qZA(),o.YNc(9,fg,2,0,"mat-error",5),o.qZA(),o.YNc(10,xg,4,0,"p",8),o.TgZ(11,"div",9),o.TgZ(12,"button",10),o.NdJ("click",function(){return t.resetData()}),o._uU(13,"Clear Fields"),o.qZA(),o.TgZ(14,"button",11),o.NdJ("click",function(){return t.onVerify()}),o._uU(15,"Verify"),o.qZA(),o.qZA(),o.YNc(16,Cg,6,4,"div",12),o.qZA(),o.qZA()),2&e&&(o.xp6(4),o.Q6J("ngModel",t.message),o.xp6(1),o.Q6J("ngIf",!t.message),o.xp6(2),o.Q6J("ngModel",t.signature),o.xp6(2),o.Q6J("ngIf",!t.signature),o.xp6(1),o.Q6J("ngIf",t.showVerifyStatus&&!t.verifyRes.valid),o.xp6(6),o.Q6J("ngIf",t.showVerifyStatus&&t.verifyRes.valid))},directives:[l.xw,l.yH,l.Wh,Ae._Y,Ae.JL,Ae.F,D.KE,Ce.Nt,Ae.Fj,Te.h,Ae.Q7,Ae.JJ,Ae.On,a.O5,q.lW,D.TO,S.Hw,M.d,Ci.y],styles:[".mat-column-channel_point[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),e})();var bg=n(8016),wg=n(6013);const _g=i.Bz.forChild([{path:"",component:u,children:[{path:"",pathMatch:"full",redirectTo:"home"},{path:"home",component:oa,canActivate:[wg.QM]},{path:"wallet",component:uc,canActivate:[wg.a1]},{path:"onchain",component:vh,canActivate:[wg.QM],children:[{path:"",pathMatch:"full",redirectTo:"receive/utxos"},{path:"receive/:selTab",component:Fh,canActivate:[wg.QM]},{path:"send/:selTab",component:om,data:{sweepAll:!1},canActivate:[wg.QM]},{path:"sweep/:selTab",component:om,data:{sweepAll:!0},canActivate:[wg.QM]}]},{path:"connections",component:pa,canActivate:[wg.QM],children:[{path:"",pathMatch:"full",redirectTo:"channels"},{path:"channels",component:yi,canActivate:[wg.QM],children:[{path:"",pathMatch:"full",redirectTo:"open"},{path:"open",component:Ws,canActivate:[wg.QM]},{path:"pending",component:Jl,canActivate:[wg.QM]},{path:"closed",component:lr,canActivate:[wg.QM]},{path:"activehtlcs",component:Mr,canActivate:[wg.QM]}]},{path:"peers",component:mi,data:{sweepAll:!1},canActivate:[wg.QM]}]},{path:"transactions",component:dc,canActivate:[wg.QM],children:[{path:"",pathMatch:"full",redirectTo:"payments"},{path:"payments",component:Un,canActivate:[wg.QM]},{path:"invoices",component:ut,canActivate:[wg.QM]},{path:"queryroutes",component:Ic,canActivate:[wg.QM]}]},{path:"messages",component:dg,canActivate:[wg.QM],children:[{path:"",pathMatch:"full",redirectTo:"sign"},{path:"sign",component:mg,canActivate:[wg.QM]},{path:"verify",component:Tg,canActivate:[wg.QM]}]},{path:"channelbackup",component:Fm,canActivate:[wg.QM],children:[{path:"",pathMatch:"full",redirectTo:"bckup"},{path:"bckup",component:ug,canActivate:[wg.QM]},{path:"restore",component:zm,canActivate:[wg.QM]}]},{path:"routing",component:mu,canActivate:[wg.QM],children:[{path:"",pathMatch:"full",redirectTo:"forwardinghistory"},{path:"forwardinghistory",component:Pu,canActivate:[wg.QM]},{path:"peers",component:Rp,canActivate:[wg.QM]}]},{path:"reports",component:Ep,canActivate:[wg.QM],children:[{path:"",pathMatch:"full",redirectTo:"routingfees"},{path:"routingfees",component:Kp,canActivate:[wg.QM]},{path:"transactions",component:pd,canActivate:[wg.QM]}]},{path:"lookups",component:cu,canActivate:[wg.QM]},{path:"network",component:qm,canActivate:[wg.QM]},{path:"**",component:bg.w},{path:"rates",redirectTo:"network"}]}]);var vg=n(253);let qg=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=o.oAB({type:e,bootstrap:[u]}),e.\u0275inj=o.cJS({providers:[wg.QM],imports:[[a.ez,vg.m,_g]]}),e})()}}]); \ No newline at end of file diff --git a/angular/958.88b5fa8d3b93e7a0e7b3.js b/angular/958.9e0e1f7340063e08f0c5.js similarity index 100% rename from angular/958.88b5fa8d3b93e7a0e7b3.js rename to angular/958.9e0e1f7340063e08f0c5.js diff --git a/angular/index.html b/angular/index.html index 463e8e3f..f063310a 100644 --- a/angular/index.html +++ b/angular/index.html @@ -13,6 +13,6 @@ - + \ No newline at end of file diff --git a/angular/main.065484d901c5e9c31fff.js b/angular/main.eecf078bfae29f102c6f.js similarity index 52% rename from angular/main.065484d901c5e9c31fff.js rename to angular/main.eecf078bfae29f102c6f.js index c938776a..1057b859 100644 --- a/angular/main.065484d901c5e9c31fff.js +++ b/angular/main.eecf078bfae29f102c6f.js @@ -1 +1 @@ -(self.webpackChunkrtl=self.webpackChunkrtl||[]).push([[179],{8255:t=>{function e(t){return Promise.resolve().then(()=>{var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}e.keys=()=>[],e.resolve=e,e.id=8255,t.exports=e},709:(t,e,i)=>{"use strict";i.d(e,{l3:()=>s,_j:()=>n,LC:()=>r,ZN:()=>y,jt:()=>a,pV:()=>f,ru:()=>l,F4:()=>d,IO:()=>m,vP:()=>c,SB:()=>u,oB:()=>h,eR:()=>p,X$:()=>o,ZE:()=>b,k1:()=>v});class n{}class r{}const s="*";function o(t,e){return{type:7,name:t,definitions:e,options:{}}}function a(t,e=null){return{type:4,styles:e,timings:t}}function l(t,e=null){return{type:3,steps:t,options:e}}function c(t,e=null){return{type:2,steps:t,options:e}}function h(t){return{type:6,styles:t,offset:null}}function u(t,e,i){return{type:0,name:t,styles:e,options:i}}function d(t){return{type:5,steps:t}}function p(t,e,i=null){return{type:1,expr:t,animation:e,options:i}}function f(t=null){return{type:9,options:t}}function m(t,e,i=null){return{type:11,selector:t,animation:e,options:i}}function g(t){Promise.resolve(null).then(t)}class y{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){g(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class b{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,i=0,n=0;const r=this.players.length;0==r?g(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==r&&this._onFinish()}),t.onDestroy(()=>{++i==r&&this._onDestroy()}),t.onStart(()=>{++n==r&&this._onStart()})}),this.totalTime=this.players.reduce((t,e)=>Math.max(t,e.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(t=>{const i=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(i)})}getPosition(){const t=this.players.reduce((t,e)=>null===t||e.totalTime>t.totalTime?e:t,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}const v="!"},4621:(t,e,i)=>{"use strict";i.d(e,{rt:()=>J,s1:()=>k,$s:()=>C,Qr:()=>Z,kH:()=>G,mK:()=>R,Em:()=>T,tE:()=>H,qV:()=>D,qm:()=>W,Kd:()=>F,X6:()=>B,yG:()=>U});var n=i(1511),r=i(1572),s=i(9666),o=i(6042),a=i(2041),l=i(5842),c=i(343),h=i(5057),u=i(8868),d=i(1681),p=i(9056),f=i(9861),m=i(1353),g=i(6337);function y(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}const b="cdk-describedby-message-container",v="cdk-describedby-host";let _=0;const w=new Map;let x=null,C=(()=>{class t{constructor(t){this._document=t}describe(t,e,i){if(!this._canBeDescribed(t,e))return;const n=A(e,i);"string"!=typeof e?(S(e),w.set(n,{messageElement:e,referenceCount:0})):w.has(n)||this._createMessageElement(e,i),this._isElementDescribedByMessage(t,n)||this._addMessageReference(t,n)}removeDescription(t,e,i){if(!e||!this._isElementNode(t))return;const n=A(e,i);if(this._isElementDescribedByMessage(t,n)&&this._removeMessageReference(t,n),"string"==typeof e){const t=w.get(n);t&&0===t.referenceCount&&this._deleteMessageElement(n)}x&&0===x.childNodes.length&&this._deleteMessagesContainer()}ngOnDestroy(){const t=this._document.querySelectorAll("[cdk-describedby-host]");for(let e=0;e0!=t.indexOf("cdk-describedby-message"));t.setAttribute("aria-describedby",e.join(" "))}_addMessageReference(t,e){const i=w.get(e);!function(t,e,i){const n=y(t,e);n.some(t=>t.trim()==i.trim())||(n.push(i.trim()),t.setAttribute(e,n.join(" ")))}(t,"aria-describedby",i.messageElement.id),t.setAttribute(v,""),i.referenceCount++}_removeMessageReference(t,e){const i=w.get(e);i.referenceCount--,function(t,e,i){const n=y(t,e).filter(t=>t!=i.trim());n.length?t.setAttribute(e,n.join(" ")):t.removeAttribute(e)}(t,"aria-describedby",i.messageElement.id),t.removeAttribute(v)}_isElementDescribedByMessage(t,e){const i=y(t,"aria-describedby"),n=w.get(e),r=n&&n.messageElement.id;return!!r&&-1!=i.indexOf(r)}_canBeDescribed(t,e){if(!this._isElementNode(t))return!1;if(e&&"object"==typeof e)return!0;const i=null==e?"":`${e}`.trim(),n=t.getAttribute("aria-label");return!(!i||n&&n.trim()===i)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(n.K0))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(n.K0))},token:t,providedIn:"root"}),t})();function A(t,e){return"string"==typeof t?`${e||""}/${t}`:t}function S(t){t.id||(t.id="cdk-describedby-message-"+_++)}class E{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new s.x,this._typeaheadSubscription=o.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new s.x,this.change=new s.x,t instanceof r.n_E&&t.changes.subscribe(t=>{if(this._activeItem){const e=t.toArray().indexOf(this._activeItem);e>-1&&e!==this._activeItemIndex&&(this._activeItemIndex=e)}})}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,c.b)(t=>this._pressedLetters.push(t)),(0,h.b)(t),(0,u.h)(()=>this._pressedLetters.length>0),(0,d.U)(()=>this._pressedLetters.join(""))).subscribe(t=>{const e=this._getItemsArray();for(let i=1;i!t[e]||this._allowedModifierKeys.indexOf(e)>-1);switch(e){case l.Mf:return void this.tabOut.next();case l.JH:if(this._vertical&&i){this.setNextItemActive();break}return;case l.LH:if(this._vertical&&i){this.setPreviousItemActive();break}return;case l.SV:if(this._horizontal&&i){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case l.oh:if(this._horizontal&&i){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case l.Sd:if(this._homeAndEnd&&i){this.setFirstItemActive();break}return;case l.uR:if(this._homeAndEnd&&i){this.setLastItemActive();break}return;default:return void((i||(0,l.Vb)(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=l.A&&e<=l.Z||e>=l.xE&&e<=l.aO)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(t){const e=this._getItemsArray(),i="number"==typeof t?t:e.indexOf(t),n=e[i];this._activeItem=null==n?null:n,this._activeItemIndex=i}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const n=(this._activeItemIndex+t*i+e.length)%e.length;if(!this._skipPredicateFn(e[n]))return void this.setActiveItem(n)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const i=this._getItemsArray();if(i[t]){for(;this._skipPredicateFn(i[t]);)if(!i[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof r.n_E?this._items.toArray():this._items}}class k extends E{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class T extends E{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}let M=(()=>{class t{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}isTabbable(t){if(!this._platform.isBrowser)return!1;const e=function(t){try{return t.frameElement}catch(e){return null}}((i=t).ownerDocument&&i.ownerDocument.defaultView||window);var i;if(e){if(-1===I(e))return!1;if(!this.isVisible(e))return!1}let n=t.nodeName.toLowerCase(),r=I(t);return t.hasAttribute("contenteditable")?-1!==r:"iframe"!==n&&"object"!==n&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){let e=t.nodeName.toLowerCase(),i="input"===e&&t.type;return"text"===i||"password"===i||"select"===e||"textarea"===e}(t))&&("audio"===n?!!t.hasAttribute("controls")&&-1!==r:"video"===n?-1!==r&&(null!==r||this._platform.FIREFOX||t.hasAttribute("controls")):t.tabIndex>=0)}isFocusable(t,e){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){let e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||L(t))}(t)&&!this.isDisabled(t)&&((null==e?void 0:e.ignoreVisibility)||this.isVisible(t))}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(m.t4))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(m.t4))},token:t,providedIn:"root"}),t})();function L(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function I(t){if(!L(t))return null;const e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}class O{constructor(t,e,i,n,r=!1){this._element=t,this._checker=e,this._ngZone=i,this._document=n,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,r||this.attachAnchors()}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),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(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(t)))})}focusFirstTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(t)))})}focusLastTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(t)))})}_getRegionBoundary(t){let e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);for(let i=0;i=0;i--){let t=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(t)return t}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe((0,p.q)(1)).subscribe(t)}}let D=(()=>{class t{constructor(t,e,i){this._checker=t,this._ngZone=e,this._document=i}create(t,e=!1){return new O(t,this._checker,this._ngZone,this._document,e)}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(M),r.LFG(r.R0b),r.LFG(n.K0))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(M),r.LFG(r.R0b),r.LFG(n.K0))},token:t,providedIn:"root"}),t})(),R=(()=>{class t{constructor(t,e,i){this._elementRef=t,this._focusTrapFactory=e,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(t){this.focusTrap.enabled=(0,f.Ig)(t)}get autoCapture(){return this._autoCapture}set autoCapture(t){this._autoCapture=(0,f.Ig)(t)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(t){const e=t.autoCapture;e&&!e.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,m.ht)(),this.focusTrap.focusInitialElementWhenReady()}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(D),r.Y36(n.K0))},t.\u0275dir=r.lG2({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[r.TTD]}),t})();"undefined"!=typeof Element&∈const N=new r.OlP("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),P=new r.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let F=(()=>{class t{constructor(t,e,i,n){this._ngZone=e,this._defaultOptions=n,this._document=i,this._liveElement=t||this._createLiveElement()}announce(t,...e){const i=this._defaultOptions;let n,r;return 1===e.length&&"number"==typeof e[0]?r=e[0]:[n,r]=e,this.clear(),clearTimeout(this._previousTimeout),n||(n=i&&i.politeness?i.politeness:"polite"),null==r&&i&&(r=i.duration),this._liveElement.setAttribute("aria-live",n),this._ngZone.runOutsideAngular(()=>new Promise(e=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=t,e(),"number"==typeof r&&(this._previousTimeout=setTimeout(()=>this.clear(),r))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}_createLiveElement(){const t="cdk-live-announcer-element",e=this._document.getElementsByClassName(t),i=this._document.createElement("div");for(let n=0;n{class t{constructor(t,e,i,n){this._elementRef=t,this._liveAnnouncer=e,this._contentObserver=i,this._ngZone=n,this._politeness="polite"}get politeness(){return this._politeness}set politeness(t){this._politeness="off"===t||"assertive"===t?t:"polite","off"===this._politeness?this._subscription&&(this._subscription.unsubscribe(),this._subscription=null):this._subscription||(this._subscription=this._ngZone.runOutsideAngular(()=>this._contentObserver.observe(this._elementRef).subscribe(()=>{const t=this._elementRef.nativeElement.textContent;t!==this._previousAnnouncedText&&(this._liveAnnouncer.announce(t,this._politeness),this._previousAnnouncedText=t)})))}ngOnDestroy(){this._subscription&&this._subscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(F),r.Y36(g.yq),r.Y36(r.R0b))},t.\u0275dir=r.lG2({type:t,selectors:[["","cdkAriaLive",""]],inputs:{politeness:["cdkAriaLive","politeness"]},exportAs:["cdkAriaLive"]}),t})();function B(t){return 0===t.buttons}function U(t){const e=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!(!e||-1!==e.identifier||null!=e.radiusX&&1!==e.radiusX||null!=e.radiusY&&1!==e.radiusY)}const q=new r.OlP("cdk-focus-monitor-default-options"),z=(0,m.i$)({passive:!0,capture:!0});let H=(()=>{class t{constructor(t,e,i,n){this._ngZone=t,this._platform=e,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=()=>{this._lastTouchTarget=null,this._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=t=>{if(!this._lastTouchTarget){const e=B(t)?"keyboard":"mouse";this._setOriginForCurrentEventQueue(e)}},this._documentTouchstartListener=t=>{U(t)?this._lastTouchTarget||this._setOriginForCurrentEventQueue("keyboard"):(null!=this._touchTimeoutId&&clearTimeout(this._touchTimeoutId),this._lastTouchTarget=Y(t),this._touchTimeoutId=setTimeout(()=>this._lastTouchTarget=null,650))},this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._rootNodeFocusAndBlurListener=t=>{const e=Y(t),i="focus"===t.type?this._onFocus:this._onBlur;for(let n=e;n;n=n.parentElement)i.call(this,t,n)},this._document=i,this._detectionMode=(null==n?void 0:n.detectionMode)||0}monitor(t,e=!1){const i=(0,f.fI)(t);if(!this._platform.isBrowser||1!==i.nodeType)return(0,a.of)(null);const n=(0,m.kV)(i)||this._getDocument(),r=this._elementInfo.get(i);if(r)return e&&(r.checkChildren=!0),r.subject;const o={checkChildren:e,subject:new s.x,rootNode:n};return this._elementInfo.set(i,o),this._registerGlobalListeners(o),o.subject}stopMonitoring(t){const e=(0,f.fI)(t),i=this._elementInfo.get(e);i&&(i.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(i))}focusVia(t,e,i){const n=(0,f.fI)(t);n===this._getDocument().activeElement?this._getClosestElementsInfo(n).forEach(([t,i])=>this._originChanged(t,e,i)):(this._setOriginForCurrentEventQueue(e),"function"==typeof n.focus&&n.focus(i))}ngOnDestroy(){this._elementInfo.forEach((t,e)=>this.stopMonitoring(e))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(t,e,i){i?t.classList.add(e):t.classList.remove(e)}_getFocusOrigin(t){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"}_setClasses(t,e){this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e)}_setOriginForCurrentEventQueue(t){this._ngZone.runOutsideAngular(()=>{this._origin=t,0===this._detectionMode&&(this._originTimeoutId=setTimeout(()=>this._origin=null,1))})}_wasCausedByTouch(t){const e=Y(t);return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}_onFocus(t,e){const i=this._elementInfo.get(e);i&&(i.checkChildren||e===Y(t))&&this._originChanged(e,this._getFocusOrigin(t),i)}_onBlur(t,e){const i=this._elementInfo.get(e);!i||i.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(i.subject,null))}_emitOrigin(t,e){this._ngZone.run(()=>t.next(e))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const e=t.rootNode,i=this._rootNodeFocusListenerCount.get(e)||0;i||this._ngZone.runOutsideAngular(()=>{e.addEventListener("focus",this._rootNodeFocusAndBlurListener,z),e.addEventListener("blur",this._rootNodeFocusAndBlurListener,z)}),this._rootNodeFocusListenerCount.set(e,i+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(()=>{const t=this._getDocument(),e=this._getWindow();t.addEventListener("keydown",this._documentKeydownListener,z),t.addEventListener("mousedown",this._documentMousedownListener,z),t.addEventListener("touchstart",this._documentTouchstartListener,z),e.addEventListener("focus",this._windowFocusListener)})}_removeGlobalListeners(t){const e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){const t=this._rootNodeFocusListenerCount.get(e);t>1?this._rootNodeFocusListenerCount.set(e,t-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,z),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,z),this._rootNodeFocusListenerCount.delete(e))}if(!--this._monitoredElementCount){const t=this._getDocument(),e=this._getWindow();t.removeEventListener("keydown",this._documentKeydownListener,z),t.removeEventListener("mousedown",this._documentMousedownListener,z),t.removeEventListener("touchstart",this._documentTouchstartListener,z),e.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}_originChanged(t,e,i){this._setClasses(t,e),this._emitOrigin(i.subject,e),this._lastFocusOrigin=e}_getClosestElementsInfo(t){const e=[];return this._elementInfo.forEach((i,n)=>{(n===t||i.checkChildren&&n.contains(t))&&e.push([n,i])}),e}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(r.R0b),r.LFG(m.t4),r.LFG(n.K0,8),r.LFG(q,8))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(r.R0b),r.LFG(m.t4),r.LFG(n.K0,8),r.LFG(q,8))},token:t,providedIn:"root"}),t})();function Y(t){return t.composedPath?t.composedPath()[0]:t.target}let G=(()=>{class t{constructor(t,e){this._elementRef=t,this._focusMonitor=e,this.cdkFocusChange=new r.vpe}ngAfterViewInit(){const t=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(t,1===t.nodeType&&t.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(t=>this.cdkFocusChange.emit(t))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(H))},t.\u0275dir=r.lG2({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),t})();const j="cdk-high-contrast-black-on-white",V="cdk-high-contrast-white-on-black",Q="cdk-high-contrast-active";let W=(()=>{class t{constructor(t,e){this._platform=t,this._document=e}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const e=this._document.defaultView||window,i=e&&e.getComputedStyle?e.getComputedStyle(t):null,n=(i&&i.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),n){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove(Q),t.remove(j),t.remove(V),this._hasCheckedHighContrastMode=!0;const e=this.getHighContrastMode();1===e?(t.add(Q),t.add(j)):2===e&&(t.add(Q),t.add(V))}}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(m.t4),r.LFG(n.K0))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(m.t4),r.LFG(n.K0))},token:t,providedIn:"root"}),t})(),J=(()=>{class t{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(W))},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[m.ud,g.Q8]]}),t})()},2526:(t,e,i)=>{"use strict";i.d(e,{vT:()=>a,Is:()=>o});var n=i(1572),r=i(1511);const s=new n.OlP("cdk-dir-doc",{providedIn:"root",factory:function(){return(0,n.f3M)(r.K0)}});let o=(()=>{class t{constructor(t){if(this.value="ltr",this.change=new n.vpe,t){const e=t.documentElement?t.documentElement.dir:null,i=(t.body?t.body.dir:null)||e;this.value="ltr"===i||"rtl"===i?i:"ltr"}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(s,8))},t.\u0275prov=n.Yz7({factory:function(){return new t(n.LFG(s,8))},token:t,providedIn:"root"}),t})(),a=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({}),t})()},9861:(t,e,i)=>{"use strict";i.d(e,{t6:()=>o,Eq:()=>a,Ig:()=>r,HM:()=>l,fI:()=>c,su:()=>s,du:()=>h});var n=i(1572);function r(t){return null!=t&&"false"!=`${t}`}function s(t,e=0){return o(t)?Number(t):e}function o(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function a(t){return Array.isArray(t)?t:[t]}function l(t){return null==t?"":"string"==typeof t?t:`${t}px`}function c(t){return t instanceof n.SBq?t.nativeElement:t}function h(t,e=/\s+/){const i=[];if(null!=t){const n=Array.isArray(t)?t:`${t}`.split(e);for(const t of n){const e=`${t}`.trim();e&&i.push(e)}}return i}},4230:(t,e,i)=>{"use strict";i.d(e,{P3:()=>c,o2:()=>a,Ov:()=>d,A8:()=>p,yy:()=>h,eX:()=>u,k:()=>f,Z9:()=>l});var n=i(4776),r=i(2041),s=i(9666),o=i(1572);class a{}function l(t){return t&&"function"==typeof t.connect}class c extends a{constructor(t){super(),this._data=t}connect(){return(0,n.b)(this._data)?this._data:(0,r.of)(this._data)}disconnect(){}}class h{applyChanges(t,e,i,n,r){t.forEachOperation((t,n,s)=>{let o,a;if(null==t.previousIndex){const r=i(t,n,s);o=e.createEmbeddedView(r.templateRef,r.context,r.index),a=1}else null==s?(e.remove(n),a=3):(o=e.get(n),e.move(o,s),a=2);r&&r({context:null==o?void 0:o.context,operation:a,record:t})})}detach(){}}class u{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(t,e,i,n,r){t.forEachOperation((t,s,o)=>{let a,l;null==t.previousIndex?(a=this._insertView(()=>i(t,s,o),o,e,n(t)),l=a?1:0):null==o?(this._detachAndCacheView(s,e),l=3):(a=this._moveView(s,o,e,n(t)),l=2),r&&r({context:null==a?void 0:a.context,operation:l,record:t})})}detach(){for(const t of this._viewCache)t.destroy();this._viewCache=[]}_insertView(t,e,i,n){const r=this._insertViewFromCache(e,i);if(r)return void(r.context.$implicit=n);const s=t();return i.createEmbeddedView(s.templateRef,s.context,s.index)}_detachAndCacheView(t,e){const i=e.detach(t);this._maybeCacheView(i,e)}_moveView(t,e,i,n){const r=i.get(t);return i.move(r,e),r.context.$implicit=n,r}_maybeCacheView(t,e){if(this._viewCache.lengththis._markSelected(t)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...t){this._verifyValueAssignment(t),t.forEach(t=>this._markSelected(t)),this._emitChangeEvent()}deselect(...t){this._verifyValueAssignment(t),t.forEach(t=>this._unmarkSelected(t)),this._emitChangeEvent()}toggle(t){this.isSelected(t)?this.deselect(t):this.select(t)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(t){return this._selection.has(t)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}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(t){this.isSelected(t)||(this._multiple||this._unmarkAll(),this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){}}let p=(()=>{class t{constructor(){this._listeners=[]}notify(t,e){for(let i of this._listeners)i(t,e)}listen(t){return this._listeners.push(t),()=>{this._listeners=this._listeners.filter(e=>t!==e)}}ngOnDestroy(){this._listeners=[]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=o.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})();const f=new o.OlP("_ViewRepeater")},5842:(t,e,i)=>{"use strict";i.d(e,{A:()=>b,ZH:()=>n,JH:()=>m,uR:()=>h,K5:()=>s,hY:()=>o,Sd:()=>u,oh:()=>d,aO:()=>y,VM:()=>c,Ku:()=>l,SV:()=>f,L_:()=>a,Mf:()=>r,LH:()=>p,Z:()=>v,xE:()=>g,Vb:()=>_});const n=8,r=9,s=13,o=27,a=32,l=33,c=34,h=35,u=36,d=37,p=38,f=39,m=40,g=48,y=57,b=65,v=90;function _(t,...e){return e.length?e.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}},72:(t,e,i)=>{"use strict";i.d(e,{Yg:()=>w,u3:()=>C,xu:()=>g});var n=i(1572),r=i(9861),s=i(9666),o=i(5868),a=i(5613),l=i(2391),c=i(9056),h=i(4444),u=i(5057),d=i(1681),p=i(1258),f=i(9568),m=i(1353);let g=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({}),t})();const y=new Set;let b,v=(()=>{class t{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):_}matchMedia(t){return this._platform.WEBKIT&&function(t){if(!y.has(t))try{b||(b=document.createElement("style"),b.setAttribute("type","text/css"),document.head.appendChild(b)),b.sheet&&(b.sheet.insertRule(`@media ${t} {.fx-query-test{ }}`,0),y.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(m.t4))},t.\u0275prov=n.Yz7({factory:function(){return new t(n.LFG(m.t4))},token:t,providedIn:"root"}),t})();function _(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let w=(()=>{class t{constructor(t,e){this._mediaMatcher=t,this._zone=e,this._queries=new Map,this._destroySubject=new s.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return x((0,r.Eq)(t)).some(t=>this._registerQuery(t).mql.matches)}observe(t){const e=x((0,r.Eq)(t)).map(t=>this._registerQuery(t).observable);let i=(0,o.a)(e);return i=(0,a.z)(i.pipe((0,c.q)(1)),i.pipe((0,h.T)(1),(0,u.b)(0))),i.pipe((0,d.U)(t=>{const e={matches:!1,breakpoints:{}};return t.forEach(({matches:t,query:i})=>{e.matches=e.matches||t,e.breakpoints[i]=t}),e}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const e=this._mediaMatcher.matchMedia(t),i={observable:new l.y(t=>{const i=e=>this._zone.run(()=>t.next(e));return e.addListener(i),()=>{e.removeListener(i)}}).pipe((0,p.O)(e),(0,d.U)(({matches:e})=>({query:t,matches:e})),(0,f.R)(this._destroySubject)),mql:e};return this._queries.set(t,i),i}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(v),n.LFG(n.R0b))},t.\u0275prov=n.Yz7({factory:function(){return new t(n.LFG(v),n.LFG(n.R0b))},token:t,providedIn:"root"}),t})();function x(t){return t.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}const C={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)"}},6337:(t,e,i)=>{"use strict";i.d(e,{wD:()=>h,yq:()=>c,Q8:()=>u});var n=i(9861),r=i(1572),s=i(2391),o=i(9666),a=i(5057);let l=(()=>{class t{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})(),c=(()=>{class t{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((t,e)=>this._cleanupObserver(e))}observe(t){const e=(0,n.fI)(t);return new s.y(t=>{const i=this._observeElement(e).subscribe(t);return()=>{i.unsubscribe(),this._unobserveElement(e)}})}_observeElement(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{const e=new o.x,i=this._mutationObserverFactory.create(t=>e.next(t));i&&i.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:i,stream:e,count:1})}return this._observedElements.get(t).stream}_unobserveElement(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}_cleanupObserver(t){if(this._observedElements.has(t)){const{observer:e,stream:i}=this._observedElements.get(t);e&&e.disconnect(),i.complete(),this._observedElements.delete(t)}}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(l))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(l))},token:t,providedIn:"root"}),t})(),h=(()=>{class t{constructor(t,e,i){this._contentObserver=t,this._elementRef=e,this._ngZone=i,this.event=new r.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(t){this._disabled=(0,n.Ig)(t),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=(0,n.su)(t),this._subscribe()}ngAfterContentInit(){this._currentSubscription||this.disabled||this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?t.pipe((0,a.b)(this.debounce)):t).subscribe(this.event)})}_unsubscribe(){var t;null===(t=this._currentSubscription)||void 0===t||t.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(c),r.Y36(r.SBq),r.Y36(r.R0b))},t.\u0275dir=r.lG2({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),u=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:[l]}),t})()},369:(t,e,i)=>{"use strict";i.d(e,{pI:()=>J,xu:()=>W,_G:()=>F,aV:()=>j,X_:()=>E,Xj:()=>D,U8:()=>K});var n=i(4894),r=i(1572),s=i(1353),o=i(2526),a=i(1511),l=i(9861),c=i(6899),h=i(9666),u=i(6042),d=i(5446),p=i(3386),f=i(4659),m=i(9056),g=i(9568),y=i(5842);const b=(0,s.Mq)();class v{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=(0,l.HM)(-this._previousScrollPosition.left),t.style.top=(0,l.HM)(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,e=t.style,i=this._document.body.style,n=e.scrollBehavior||"",r=i.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),b&&(e.scrollBehavior=i.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),b&&(e.scrollBehavior=n,i.scrollBehavior=r)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width}}class _{constructor(t,e,i,n){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=i,this._config=n,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class w{enable(){}disable(){}attach(){}}function x(t,e){return e.some(e=>t.bottome.bottom||t.righte.right)}function C(t,e){return e.some(e=>t.tope.bottom||t.lefte.right)}class A{constructor(t,e,i,n){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this._config=n,this._scrollSubscription=null}attach(t){this._overlayRef=t}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 t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:i}=this._viewportRuler.getViewportSize();x(t,[{width:e,height:i,bottom:i,right:e,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 S=(()=>{class t{constructor(t,e,i,n){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this.noop=()=>new w,this.close=t=>new _(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new v(this._viewportRuler,this._document),this.reposition=t=>new A(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=n}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(n.mF),r.LFG(n.rL),r.LFG(r.R0b),r.LFG(a.K0))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(n.mF),r.LFG(n.rL),r.LFG(r.R0b),r.LFG(a.K0))},token:t,providedIn:"root"}),t})();class E{constructor(t){if(this.scrollStrategy=new w,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const i of e)void 0!==t[i]&&(this[i]=t[i])}}}class k{constructor(t,e,i,n,r){this.offsetX=i,this.offsetY=n,this.panelClass=r,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class T{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let M=(()=>{class t{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this.detach()}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(a.K0))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(a.K0))},token:t,providedIn:"root"}),t})(),L=(()=>{class t extends M{constructor(t){super(t),this._keydownListener=t=>{const e=this._attachedOverlays;for(let i=e.length-1;i>-1;i--)if(e[i]._keydownEvents.observers.length>0){e[i]._keydownEvents.next(t);break}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(a.K0))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(a.K0))},token:t,providedIn:"root"}),t})(),I=(()=>{class t extends M{constructor(t,e){super(t),this._platform=e,this._cursorStyleIsSet=!1,this._clickListener=t=>{const e=t.composedPath?t.composedPath()[0]:t.target,i=this._attachedOverlays.slice();for(let n=i.length-1;n>-1;n--){const r=i[n];if(!(r._outsidePointerEvents.observers.length<1)&&r.hasAttached()){if(r.overlayElement.contains(e))break;r._outsidePointerEvents.next(t)}}}}add(t){if(super.add(t),!this._isAttached){const t=this._document.body;t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const t=this._document.body;t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(a.K0),r.LFG(s.t4))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(a.K0),r.LFG(s.t4))},token:t,providedIn:"root"}),t})();const O="undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha;let D=(()=>{class t{constructor(t,e){this._platform=e,this._document=t}ngOnDestroy(){const t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t="cdk-overlay-container";if(this._platform.isBrowser||O){const e=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let t=0;tthis._backdropClick.next(t),this._keydownEvents=new h.x,this._outsidePointerEvents=new h.x,n.scrollStrategy&&(this._scrollStrategy=n.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=n.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){let e=this._portalOutlet.attach(t);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,m.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),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),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),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&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,t&&this._detachments.next(),this._detachments.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(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=(0,l.HM)(this._config.width),t.height=(0,l.HM)(this._config.height),t.minWidth=(0,l.HM)(this._config.minWidth),t.minHeight=(0,l.HM)(this._config.minHeight),t.maxWidth=(0,l.HM)(this._config.maxWidth),t.maxHeight=(0,l.HM)(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){const t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),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),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let t,e=this._backdropElement;if(!e)return;let i=()=>{e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",i),e.parentNode&&e.parentNode.removeChild(e)),this._backdropElement==e&&(this._backdropElement=null),this._config.backdropClass&&this._toggleClasses(e,this._config.backdropClass,!1),clearTimeout(t)};e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",i)}),e.style.pointerEvents="none",t=this._ngZone.runOutsideAngular(()=>setTimeout(i,500))}_toggleClasses(t,e,i){const n=t.classList;(0,l.Eq)(e).forEach(t=>{t&&(i?n.add(t):n.remove(t))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe((0,g.R)((0,d.T)(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._previousHostParent.removeChild(this._host)),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}}const N="cdk-overlay-connected-position-bounding-box",P=/([A-Za-z%]+)$/;class F{constructor(t,e,i,n,r){this._viewportRuler=e,this._document=i,this._platform=n,this._overlayContainer=r,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new h.x,this._resizeSubscription=u.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){this._validatePositions(),t.hostElement.classList.add(N),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.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();const t=this._originRect,e=this._overlayRect,i=this._viewportRect,n=[];let r;for(let s of this._preferredPositions){let o=this._getOriginPoint(t,s),a=this._getOverlayPoint(o,e,s),l=this._getOverlayFit(a,e,i,s);if(l.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(s,o);this._canFitWithFlexibleDimensions(l,a,i)?n.push({position:s,origin:o,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(o,s)}):(!r||r.overlayFit.visibleAreae&&(e=n,t=i)}return this._isPushed=!1,void this._applyPosition(t.position,t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(r.position,r.originPoint);this._applyPosition(r.position,r.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Z(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(N),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e){let i,n;if("center"==e.originX)i=t.left+t.width/2;else{const n=this._isRtl()?t.right:t.left,r=this._isRtl()?t.left:t.right;i="start"==e.originX?n:r}return n="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:i,y:n}}_getOverlayPoint(t,e,i){let n,r;return n="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,r="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:t.x+n,y:t.y+r}}_getOverlayFit(t,e,i,n){const r=U(e);let{x:s,y:o}=t,a=this._getOffset(n,"x"),l=this._getOffset(n,"y");a&&(s+=a),l&&(o+=l);let c=0-o,h=o+r.height-i.height,u=this._subtractOverflows(r.width,0-s,s+r.width-i.width),d=this._subtractOverflows(r.height,c,h),p=u*d;return{visibleArea:p,isCompletelyWithinViewport:r.width*r.height===p,fitsInViewportVertically:d===r.height,fitsInViewportHorizontally:u==r.width}}_canFitWithFlexibleDimensions(t,e,i){if(this._hasFlexibleDimensions){const n=i.bottom-e.y,r=i.right-e.x,s=B(this._overlayRef.getConfig().minHeight),o=B(this._overlayRef.getConfig().minWidth),a=t.fitsInViewportHorizontally||null!=o&&o<=r;return(t.fitsInViewportVertically||null!=s&&s<=n)&&a}return!1}_pushOverlayOnScreen(t,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const n=U(e),r=this._viewportRect,s=Math.max(t.x+n.width-r.width,0),o=Math.max(t.y+n.height-r.height,0),a=Math.max(r.top-i.top-t.y,0),l=Math.max(r.left-i.left-t.x,0);let c=0,h=0;return c=n.width<=r.width?l||-s:t.xn&&!this._isInitialRender&&!this._growAfterOpen&&(s=t.y-n/2)}if("end"===e.overlayX&&!n||"start"===e.overlayX&&n)c=i.width-t.x+this._viewportMargin,a=t.x-this._viewportMargin;else if("start"===e.overlayX&&!n||"end"===e.overlayX&&n)l=t.x,a=i.right-t.x;else{const e=Math.min(i.right-t.x+i.left,t.x),n=this._lastBoundingBoxSize.width;a=2*e,l=t.x-e,a>n&&!this._isInitialRender&&!this._growAfterOpen&&(l=t.x-n/2)}return{top:s,left:l,bottom:o,right:c,width:a,height:r}}_setBoundingBoxStyles(t,e){const i=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const n={};if(this._hasExactPosition())n.top=n.left="0",n.bottom=n.right=n.maxHeight=n.maxWidth="",n.width=n.height="100%";else{const t=this._overlayRef.getConfig().maxHeight,r=this._overlayRef.getConfig().maxWidth;n.height=(0,l.HM)(i.height),n.top=(0,l.HM)(i.top),n.bottom=(0,l.HM)(i.bottom),n.width=(0,l.HM)(i.width),n.left=(0,l.HM)(i.left),n.right=(0,l.HM)(i.right),n.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",n.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",t&&(n.maxHeight=(0,l.HM)(t)),r&&(n.maxWidth=(0,l.HM)(r))}this._lastBoundingBoxSize=i,Z(this._boundingBox.style,n)}_resetBoundingBoxStyles(){Z(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Z(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const i={},n=this._hasExactPosition(),r=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(n){const n=this._viewportRuler.getViewportScrollPosition();Z(i,this._getExactOverlayY(e,t,n)),Z(i,this._getExactOverlayX(e,t,n))}else i.position="static";let o="",a=this._getOffset(e,"x"),c=this._getOffset(e,"y");a&&(o+=`translateX(${a}px) `),c&&(o+=`translateY(${c}px)`),i.transform=o.trim(),s.maxHeight&&(n?i.maxHeight=(0,l.HM)(s.maxHeight):r&&(i.maxHeight="")),s.maxWidth&&(n?i.maxWidth=(0,l.HM)(s.maxWidth):r&&(i.maxWidth="")),Z(this._pane.style,i)}_getExactOverlayY(t,e,i){let n={top:"",bottom:""},r=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,i));let s=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return r.y-=s,"bottom"===t.overlayY?n.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":n.top=(0,l.HM)(r.y),n}_getExactOverlayX(t,e,i){let n,r={left:"",right:""},s=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i)),n=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===n?r.right=this._document.documentElement.clientWidth-(s.x+this._overlayRect.width)+"px":r.left=(0,l.HM)(s.x),r}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(t=>t.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:C(t,i),isOriginOutsideView:x(t,i),isOverlayClipped:C(e,i),isOverlayOutsideView:x(e,i)}}_subtractOverflows(t,...e){return e.reduce((t,e)=>t-Math.max(e,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+t-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&(0,l.Eq)(t).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof r.SBq)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,i=t.height||0;return{top:t.y,bottom:t.y+i,left:t.x,right:t.x+e,height:i,width:e}}}function Z(t,e){for(let i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function B(t){if("number"!=typeof t&&null!=t){const[e,i]=t.split(P);return i&&"px"!==i?null:parseFloat(e)}return t||null}function U(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}class q{constructor(t,e,i,n,r,s,o){this._preferredPositions=[],this._positionStrategy=new F(i,n,r,s,o).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,e),this.onPositionChange=this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(t){this._overlayRef=t,this._positionStrategy.attach(t),this._direction&&(t.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(t){this._positionStrategy.withScrollableContainers(t)}withFallbackPosition(t,e,i,n){const r=new k(t,e,i,n);return this._preferredPositions.push(r),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(t){return this._overlayRef?this._overlayRef.setDirection(t):this._direction=t,this}withOffsetX(t){return this._positionStrategy.withDefaultOffsetX(t),this}withOffsetY(t){return this._positionStrategy.withDefaultOffsetY(t),this}withLockedPosition(t){return this._positionStrategy.withLockedPosition(t),this}withPositions(t){return this._preferredPositions=t.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(t){return this._positionStrategy.setOrigin(t),this}}const z="cdk-global-overlay-wrapper";class H{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(z),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._justifyContent="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:n,height:r,maxWidth:s,maxHeight:o}=i,a=!("100%"!==n&&"100vw"!==n||s&&"100%"!==s&&"100vw"!==s),l=!("100%"!==r&&"100vh"!==r||o&&"100%"!==o&&"100vh"!==o);t.position=this._cssPosition,t.marginLeft=a?"0":this._leftOffset,t.marginTop=l?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,a?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=l?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(z),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let Y=(()=>{class t{constructor(t,e,i,n){this._viewportRuler=t,this._document=e,this._platform=i,this._overlayContainer=n}global(){return new H}connectedTo(t,e,i){return new q(e,i,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new F(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(n.rL),r.LFG(a.K0),r.LFG(s.t4),r.LFG(D))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(n.rL),r.LFG(a.K0),r.LFG(s.t4),r.LFG(D))},token:t,providedIn:"root"}),t})(),G=0,j=(()=>{class t{constructor(t,e,i,n,r,s,o,a,l,c,h){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=i,this._positionBuilder=n,this._keyboardDispatcher=r,this._injector=s,this._ngZone=o,this._document=a,this._directionality=l,this._location=c,this._outsideClickDispatcher=h}create(t){const e=this._createHostElement(),i=this._createPaneElement(e),n=this._createPortalOutlet(i),r=new E(t);return r.direction=r.direction||this._directionality.value,new R(n,e,i,r,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(t){const e=this._document.createElement("div");return e.id="cdk-overlay-"+G++,e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(r.z2F)),new c.u0(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(S),r.LFG(D),r.LFG(r._Vd),r.LFG(Y),r.LFG(L),r.LFG(r.zs3),r.LFG(r.R0b),r.LFG(a.K0),r.LFG(o.Is),r.LFG(a.Ye),r.LFG(I))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})();const V=[{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"}],Q=new r.OlP("cdk-connected-overlay-scroll-strategy");let W=(()=>{class t{constructor(t){this.elementRef=t}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq))},t.\u0275dir=r.lG2({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),t})(),J=(()=>{class t{constructor(t,e,i,n,s){this._overlay=t,this._dir=s,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=u.w0.EMPTY,this._attachSubscription=u.w0.EMPTY,this._detachSubscription=u.w0.EMPTY,this._positionSubscription=u.w0.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new r.vpe,this.positionChange=new r.vpe,this.attach=new r.vpe,this.detach=new r.vpe,this.overlayKeydown=new r.vpe,this.overlayOutsideClick=new r.vpe,this._templatePortal=new c.UE(e,i),this._scrollStrategyFactory=n,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=(0,l.Ig)(t)}get lockPosition(){return this._lockPosition}set lockPosition(t){this._lockPosition=(0,l.Ig)(t)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(t){this._flexibleDimensions=(0,l.Ig)(t)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(t){this._growAfterOpen=(0,l.Ig)(t)}get push(){return this._push}set push(t){this._push=(0,l.Ig)(t)}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(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),t.origin&&this.open&&this._position.apply()),t.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){this.positions&&this.positions.length||(this.positions=V);const t=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=t.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=t.detachments().subscribe(()=>this.detach.emit()),t.keydownEvents().subscribe(t=>{this.overlayKeydown.next(t),t.keyCode!==y.hY||this.disableClose||(0,y.Vb)(t)||(t.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(t=>{this.overlayOutsideClick.next(t)})}_buildConfig(){const t=this._position=this.positionStrategy||this._createPositionStrategy(),e=new E({direction:this._dir,positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(e.width=this.width),(this.height||0===this.height)&&(e.height=this.height),(this.minWidth||0===this.minWidth)&&(e.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(e.minHeight=this.minHeight),this.backdropClass&&(e.backdropClass=this.backdropClass),this.panelClass&&(e.panelClass=this.panelClass),e}_updatePositionStrategy(t){const e=this.positions.map(t=>({originX:t.originX,originY:t.originY,overlayX:t.overlayX,overlayY:t.overlayY,offsetX:t.offsetX||this.offsetX,offsetY:t.offsetY||this.offsetY,panelClass:t.panelClass||void 0}));return t.setOrigin(this.origin.elementRef).withPositions(e).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const t=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(t),t}_attachOverlay(){var t,e;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(t=>{this.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe((t=()=>this.positionChange.observers.length>0,void 0===e&&(e=!1),(0,p.e)(function(i,n){i.subscribe(new f.Q(n,function(i){var r=t();(r||e)&&n.next(i),!r&&n.complete()}))}))).subscribe(t=>{this.positionChange.emit(t),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(j),r.Y36(r.Rgc),r.Y36(r.s_b),r.Y36(Q),r.Y36(o.Is,8))},t.\u0275dir=r.lG2({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[r.TTD]}),t})();const X={provide:Q,deps:[j],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let K=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:[j,X],imports:[[o.vT,c.eL,n.Cl],n.Cl]}),t})()},1353:(t,e,i)=>{"use strict";i.d(e,{t4:()=>a,ud:()=>l,ht:()=>v,kV:()=>b,_i:()=>y,qK:()=>h,i$:()=>m,Mq:()=>g});var n=i(1572),r=i(1511);let s;try{s="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(_){s=!1}let o,a=(()=>{class t{constructor(t){this._platformId=t,this.isBrowser=this._platformId?(0,r.NF)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!s)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(n.Lbi))},t.\u0275prov=n.Yz7({factory:function(){return new t(n.LFG(n.Lbi))},token:t,providedIn:"root"}),t})(),l=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({}),t})();const c=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function h(){if(o)return o;if("object"!=typeof document||!document)return o=new Set(c),o;let t=document.createElement("input");return o=new Set(c.filter(e=>(t.setAttribute("type",e),t.type===e))),o}let u,d,p,f;function m(t){return function(){if(null==u&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>u=!0}))}finally{u=u||!1}return u}()?t:!!t.capture}function g(){if(null==p){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return p=!1,p;if("scrollBehavior"in document.documentElement.style)p=!0;else{const t=Element.prototype.scrollTo;p=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return p}function y(){if("object"!=typeof document||!document)return 0;if(null==d){const t=document.createElement("div"),e=t.style;t.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";const i=document.createElement("div"),n=i.style;n.width="2px",n.height="1px",t.appendChild(i),document.body.appendChild(t),d=0,0===t.scrollLeft&&(t.scrollLeft=1,d=0===t.scrollLeft?1:2),t.parentNode.removeChild(t)}return d}function b(t){if(function(){if(null==f){const t="undefined"!=typeof document?document.head:null;f=!(!t||!t.createShadowRoot&&!t.attachShadow)}return f}()){const e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function v(){let t="undefined"!=typeof document&&document?document.activeElement:null;for(;t&&t.shadowRoot;){const e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}},6899:(t,e,i)=>{"use strict";i.d(e,{en:()=>c,ig:()=>d,Pl:()=>p,C5:()=>o,F0:()=>u,u0:()=>h,eL:()=>f,UE:()=>a});var n=i(1572),r=i(1511);class s{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class o extends s{constructor(t,e,i,n){super(),this.component=t,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=n}}class a extends s{constructor(t,e,i){super(),this.templateRef=t,this.viewContainerRef=e,this.context=i}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class l extends s{constructor(t){super(),this.element=t instanceof n.SBq?t.nativeElement:t}}class c{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof o?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof a?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof l?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class h extends c{constructor(t,e,i,n,r){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=n,this.attachDomPortal=t=>{const e=t.element,i=this._document.createComment("dom-portal");e.parentNode.insertBefore(i,e),this.outletElement.appendChild(e),this._attachedPortal=t,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(e,i)})},this._document=r}attachComponentPortal(t){const e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let i;return t.viewContainerRef?(i=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>i.destroy())):(i=e.create(t.injector||this._defaultInjector),this._appRef.attachView(i.hostView),this.setDisposeFn(()=>{this._appRef.detachView(i.hostView),i.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(i)),this._attachedPortal=t,i}attachTemplatePortal(t){let e=t.viewContainerRef,i=e.createEmbeddedView(t.templateRef,t.context);return i.rootNodes.forEach(t=>this.outletElement.appendChild(t)),i.detectChanges(),this.setDisposeFn(()=>{let t=e.indexOf(i);-1!==t&&e.remove(t)}),this._attachedPortal=t,i}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}class u extends h{}let d=(()=>{class t extends a{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.Rgc),n.Y36(n.s_b))},t.\u0275dir=n.lG2({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[n.qOj]}),t})(),p=(()=>{class t extends c{constructor(t,e,i){super(),this._componentFactoryResolver=t,this._viewContainerRef=e,this._isInitialized=!1,this.attached=new n.vpe,this.attachDomPortal=t=>{const e=t.element,i=this._document.createComment("dom-portal");t.setAttachedHost(this),e.parentNode.insertBefore(i,e),this._getRootNode().appendChild(e),this._attachedPortal=t,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(e,i)})},this._document=i}get portal(){return this._attachedPortal}set portal(t){(!this.hasAttached()||t||this._isInitialized)&&(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(t){t.setAttachedHost(this);const e=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),n=e.createComponent(i,e.length,t.injector||e.injector);return e!==this._viewContainerRef&&this._getRootNode().appendChild(n.hostView.rootNodes[0]),super.setDisposeFn(()=>n.destroy()),this._attachedPortal=t,this._attachedRef=n,this.attached.emit(n),n}attachTemplatePortal(t){t.setAttachedHost(this);const e=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=e,this.attached.emit(e),e}_getRootNode(){const t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n._Vd),n.Y36(n.s_b),n.Y36(r.K0))},t.\u0275dir=n.lG2({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[n.qOj]}),t})(),f=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({}),t})()},4894:(t,e,i)=>{"use strict";i.d(e,{PQ:()=>w,ZD:()=>C,mF:()=>_,Cl:()=>A,rL:()=>x});var n=i(9861),r=i(1572),s=i(9162),o=i(6551),a=i(6042),l={schedule:function(t){var e=requestAnimationFrame,i=cancelAnimationFrame,n=l.delegate;n&&(e=n.requestAnimationFrame,i=n.cancelAnimationFrame);var r=e(function(e){i=void 0,t(e)});return new a.w0(function(){return null==i?void 0:i(r)})},requestAnimationFrame:function(){for(var t=[],e=0;e0?t.prototype.requestAsyncId.call(this,e,i,n):(e.actions.push(this),e._scheduled||(e._scheduled=l.requestAnimationFrame(function(){return e.flush(void 0)})))},e.prototype.recycleAsyncId=function(e,i,n){if(void 0===n&&(n=0),null!=n&&n>0||null==n&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,i,n);0===e.actions.length&&(l.cancelAnimationFrame(i),e._scheduled=void 0)},e}(o.o),h=(new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,s.ZT)(e,t),e.prototype.flush=function(t){this._active=!0,this._scheduled=void 0;var e,i=this.actions,n=-1;t=t||i.shift();var r=i.length;do{if(e=t.execute(t.state,t.delay))break}while(++n{class t{constructor(t,e,i){this._ngZone=t,this._platform=e,this._scrolled=new h.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=i}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new d.y(e=>{this._globalSubscription||this._addGlobalListener();const i=t>0?this._scrolled.pipe((0,f.e)(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{i.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,u.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,e)=>this.deregister(e)),this._scrolled.complete()}ancestorScrolled(t,e){const i=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe((0,m.h)(t=>!t||i.indexOf(t)>-1))}getAncestorScrollContainers(t){const e=[];return this.scrollContainers.forEach((i,n)=>{this._scrollableContainsElement(n,t)&&e.push(n)}),e}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,e){let i=(0,n.fI)(e),r=t.getElementRef().nativeElement;do{if(i==r)return!0}while(i=i.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const t=this._getWindow();return(0,p.R)(t.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(r.R0b),r.LFG(y.t4),r.LFG(b.K0,8))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(r.R0b),r.LFG(y.t4),r.LFG(b.K0,8))},token:t,providedIn:"root"}),t})(),w=(()=>{class t{constructor(t,e,i,n){this.elementRef=t,this.scrollDispatcher=e,this.ngZone=i,this.dir=n,this._destroyed=new h.x,this._elementScrolled=new d.y(t=>this.ngZone.runOutsideAngular(()=>(0,p.R)(this.elementRef.nativeElement,"scroll").pipe((0,g.R)(this._destroyed)).subscribe(t)))}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(t){const e=this.elementRef.nativeElement,i=this.dir&&"rtl"==this.dir.value;null==t.left&&(t.left=i?t.end:t.start),null==t.right&&(t.right=i?t.start:t.end),null!=t.bottom&&(t.top=e.scrollHeight-e.clientHeight-t.bottom),i&&0!=(0,y._i)()?(null!=t.left&&(t.right=e.scrollWidth-e.clientWidth-t.left),2==(0,y._i)()?t.left=t.right:1==(0,y._i)()&&(t.left=t.right?-t.right:t.right)):null!=t.right&&(t.left=e.scrollWidth-e.clientWidth-t.right),this._applyScrollToOptions(t)}_applyScrollToOptions(t){const e=this.elementRef.nativeElement;(0,y.Mq)()?e.scrollTo(t):(null!=t.top&&(e.scrollTop=t.top),null!=t.left&&(e.scrollLeft=t.left))}measureScrollOffset(t){const e="left",i="right",n=this.elementRef.nativeElement;if("top"==t)return n.scrollTop;if("bottom"==t)return n.scrollHeight-n.clientHeight-n.scrollTop;const r=this.dir&&"rtl"==this.dir.value;return"start"==t?t=r?i:e:"end"==t&&(t=r?e:i),r&&2==(0,y._i)()?t==e?n.scrollWidth-n.clientWidth-n.scrollLeft:n.scrollLeft:r&&1==(0,y._i)()?t==e?n.scrollLeft+n.scrollWidth-n.clientWidth:-n.scrollLeft:t==e?n.scrollLeft:n.scrollWidth-n.clientWidth-n.scrollLeft}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(_),r.Y36(r.R0b),r.Y36(v.Is,8))},t.\u0275dir=r.lG2({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),t})(),x=(()=>{class t{constructor(t,e,i){this._platform=t,this._change=new h.x,this._changeListener=t=>{this._change.next(t)},this._document=i,e.runOutsideAngular(()=>{if(t.isBrowser){const t=this._getWindow();t.addEventListener("resize",this._changeListener),t.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._updateViewportSize())})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:e,height:i}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+i,right:t.left+e,height:i,width:e}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._document,e=this._getWindow(),i=t.documentElement,n=i.getBoundingClientRect();return{top:-n.top||t.body.scrollTop||e.scrollY||i.scrollTop||0,left:-n.left||t.body.scrollLeft||e.scrollX||i.scrollLeft||0}}change(t=20){return t>0?this._change.pipe((0,f.e)(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(y.t4),r.LFG(r.R0b),r.LFG(b.K0,8))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(y.t4),r.LFG(r.R0b),r.LFG(b.K0,8))},token:t,providedIn:"root"}),t})(),C=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({}),t})(),A=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[v.vT,y.ud,C],v.vT,C]}),t})()},8544:(t,e,i)=>{"use strict";i.d(e,{be:()=>x,KL:()=>m,u6:()=>g,B8:()=>C,U5:()=>E,st:()=>A,po:()=>S,gx:()=>w});var n=i(4621),r=i(2526),s=i(9861),o=i(5842),a=i(1511),l=i(1572),c=i(9666),h=i(2041),u=i(1258),d=i(9568);function p(t,e){1&t&&l.Hsn(0)}const f=["*"];let m=(()=>{class t{constructor(t){this._elementRef=t}focus(){this._elementRef.nativeElement.focus()}}return t.\u0275fac=function(e){return new(e||t)(l.Y36(l.SBq))},t.\u0275dir=l.lG2({type:t,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),t})(),g=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(l.Y36(l.Rgc))},t.\u0275dir=l.lG2({type:t,selectors:[["","cdkStepLabel",""]]}),t})(),y=0;const b="edit",v="done",_="error",w=new l.OlP("STEPPER_GLOBAL_OPTIONS");let x=(()=>{class t{constructor(t,e){this._stepper=t,this.interacted=!1,this.interactedStream=new l.vpe,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=e||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType,this._showError=!!this._stepperOptions.showError}get editable(){return this._editable}set editable(t){this._editable=(0,s.Ig)(t)}get optional(){return this._optional}set optional(t){this._optional=(0,s.Ig)(t)}get completed(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride}set completed(t){this._completedOverride=(0,s.Ig)(t)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return null==this._customError?this._getDefaultError():this._customError}set hasError(t){this._customError=(0,s.Ig)(t)}_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}select(){this._stepper.selected=this}reset(){this.interacted=!1,null!=this._completedOverride&&(this._completedOverride=!1),null!=this._customError&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}}return t.\u0275fac=function(e){return new(e||t)(l.Y36((0,l.Gpc)(()=>C)),l.Y36(w,8))},t.\u0275cmp=l.Xpm({type:t,selectors:[["cdk-step"]],contentQueries:function(t,e,i){if(1&t&&l.Suo(i,g,5),2&t){let t;l.iGM(t=l.CRH())&&(e.stepLabel=t.first)}},viewQuery:function(t,e){if(1&t&&l.Gf(l.Rgc,7),2&t){let t;l.iGM(t=l.CRH())&&(e.content=t.first)}},inputs:{editable:"editable",optional:"optional",completed:"completed",hasError:"hasError",stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state"},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[l.TTD],ngContentSelectors:f,decls:1,vars:0,template:function(t,e){1&t&&(l.F$t(),l.YNc(0,p,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),t})(),C=(()=>{class t{constructor(t,e,i,n){this._dir=t,this._changeDetectorRef=e,this._elementRef=i,this._destroyed=new c.x,this.steps=new l.n_E,this._linear=!1,this._selectedIndex=0,this.selectionChange=new l.vpe,this._orientation="horizontal",this._groupId=y++,this._document=n}get linear(){return this._linear}set linear(t){this._linear=(0,s.Ig)(t)}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){var e;const i=(0,s.su)(t);this.steps&&this._steps?(this._isValidIndex(t),null===(e=this.selected)||void 0===e||e._markAsInteracted(),this._selectedIndex!==i&&!this._anyControlsInvalidOrPending(i)&&(i>=this._selectedIndex||this.steps.toArray()[i].editable)&&this._updateSelectedItemIndex(t)):this._selectedIndex=i}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(t){this.selectedIndex=t&&this.steps?this.steps.toArray().indexOf(t):-1}get orientation(){return this._orientation}set orientation(t){this._orientation=t,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===t)}ngAfterContentInit(){this._steps.changes.pipe((0,u.O)(this._steps),(0,d.R)(this._destroyed)).subscribe(t=>{this.steps.reset(t.filter(t=>t._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._keyManager=new n.Em(this._stepHeader).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,h.of)()).pipe((0,u.O)(this._layoutDirection()),(0,d.R)(this._destroyed)).subscribe(t=>this._keyManager.withHorizontalOrientation(t)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0)}ngOnDestroy(){this.steps.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(t=>t.reset()),this._stateChanged()}_getStepLabelId(t){return`cdk-step-label-${this._groupId}-${t}`}_getStepContentId(t){return`cdk-step-content-${this._groupId}-${t}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(t){const e=t-this._selectedIndex;return e<0?"rtl"===this._layoutDirection()?"next":"previous":e>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(t,e="number"){const i=this.steps.toArray()[t],n=this._isCurrentStep(t);return i._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(i,n):this._getGuidelineLogic(i,n,e)}_getDefaultIndicatorLogic(t,e){return t._showError&&t.hasError&&!e?_:!t.completed||e?"number":t.editable?b:v}_getGuidelineLogic(t,e,i="number"){return t._showError&&t.hasError&&!e?_:t.completed&&!e?v:t.completed&&e?i:t.editable&&e?b:i}_isCurrentStep(t){return this._selectedIndex===t}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(t){const e=this.steps.toArray();this.selectionChange.emit({selectedIndex:t,previouslySelectedIndex:this._selectedIndex,selectedStep:e[t],previouslySelectedStep:e[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(t):this._keyManager.updateActiveItem(t),this._selectedIndex=t,this._stateChanged()}_onKeydown(t){const e=(0,o.Vb)(t),i=t.keyCode,n=this._keyManager;null==n.activeItemIndex||e||i!==o.L_&&i!==o.K5?n.onKeydown(t):(this.selectedIndex=n.activeItemIndex,t.preventDefault())}_anyControlsInvalidOrPending(t){return!!(this._linear&&t>=0)&&this.steps.toArray().slice(0,t).some(t=>{const e=t.stepControl;return(e?e.invalid||e.pending||!t.interacted:!t.completed)&&!t.optional&&!t._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){const t=this._elementRef.nativeElement,e=this._document.activeElement;return t===e||t.contains(e)}_isValidIndex(t){return t>-1&&(!this.steps||t{class t{constructor(t){this._stepper=t,this.type="submit"}_handleClick(){this._stepper.next()}}return t.\u0275fac=function(e){return new(e||t)(l.Y36(C))},t.\u0275dir=l.lG2({type:t,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(t,e){1&t&&l.NdJ("click",function(){return e._handleClick()}),2&t&&l.Ikx("type",e.type)},inputs:{type:"type"}}),t})(),S=(()=>{class t{constructor(t){this._stepper=t,this.type="button"}_handleClick(){this._stepper.previous()}}return t.\u0275fac=function(e){return new(e||t)(l.Y36(C))},t.\u0275dir=l.lG2({type:t,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(t,e){1&t&&l.NdJ("click",function(){return e._handleClick()}),2&t&&l.Ikx("type",e.type)},inputs:{type:"type"}}),t})(),E=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=l.oAB({type:t}),t.\u0275inj=l.cJS({imports:[[r.vT]]}),t})()},1709:(t,e,i)=>{"use strict";i.d(e,{HI:()=>m,Xx:()=>x,_0:()=>v,nZ:()=>E,Hs:()=>_,rO:()=>b,cu:()=>g,XJ:()=>A,Ud:()=>S,VY:()=>f});var n=i(4230),r=i(4776),s=i(9666),o=i(7425),a=i(2041),l=i(9056),c=i(8868),h=i(9568),u=i(1572),d=i(9861),p=i(2526);class f extends class{constructor(){this.expansionModel=new n.Ov(!0)}toggle(t){this.expansionModel.toggle(this._trackByValue(t))}expand(t){this.expansionModel.select(this._trackByValue(t))}collapse(t){this.expansionModel.deselect(this._trackByValue(t))}isExpanded(t){return this.expansionModel.isSelected(this._trackByValue(t))}toggleDescendants(t){this.expansionModel.isSelected(this._trackByValue(t))?this.collapseDescendants(t):this.expandDescendants(t)}collapseAll(){this.expansionModel.clear()}expandDescendants(t){let e=[t];e.push(...this.getDescendants(t)),this.expansionModel.select(...e.map(t=>this._trackByValue(t)))}collapseDescendants(t){let e=[t];e.push(...this.getDescendants(t)),this.expansionModel.deselect(...e.map(t=>this._trackByValue(t)))}_trackByValue(t){return this.trackBy?this.trackBy(t):t}}{constructor(t,e){super(),this.getChildren=t,this.options=e,this.options&&(this.trackBy=this.options.trackBy)}expandAll(){this.expansionModel.clear();const t=this.dataNodes.reduce((t,e)=>[...t,...this.getDescendants(e),e],[]);this.expansionModel.select(...t.map(t=>this._trackByValue(t)))}getDescendants(t){const e=[];return this._getDescendants(e,t),e.splice(1)}_getDescendants(t,e){t.push(e);const i=this.getChildren(e);Array.isArray(i)?i.forEach(e=>this._getDescendants(t,e)):(0,r.b)(i)&&i.pipe((0,l.q)(1),(0,c.h)(Boolean)).subscribe(e=>{for(const i of e)this._getDescendants(t,i)})}}const m=new u.OlP("CDK_TREE_NODE_OUTLET_NODE");let g=(()=>{class t{constructor(t,e){this.viewContainer=t,this._node=e}}return t.\u0275fac=function(e){return new(e||t)(u.Y36(u.s_b),u.Y36(m,8))},t.\u0275dir=u.lG2({type:t,selectors:[["","cdkTreeNodeOutlet",""]]}),t})();class y{constructor(t){this.$implicit=t}}let b=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(u.Y36(u.Rgc))},t.\u0275dir=u.lG2({type:t,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:["cdkTreeNodeDefWhen","when"]}}),t})(),v=(()=>{class t{constructor(t,e){this._differs=t,this._changeDetectorRef=e,this._onDestroy=new s.x,this._levels=new Map,this.viewChange=new o.X({start:0,end:Number.MAX_VALUE})}get dataSource(){return this._dataSource}set dataSource(t){this._dataSource!==t&&this._switchDataSource(t)}ngOnInit(){this._dataDiffer=this._differs.find([]).create(this.trackBy)}ngOnDestroy(){this._nodeOutlet.viewContainer.clear(),this.viewChange.complete(),this._onDestroy.next(),this._onDestroy.complete(),this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null)}ngAfterContentChecked(){const t=this._nodeDefs.filter(t=>!t.when);this._defaultNodeDef=t[0],this.dataSource&&this._nodeDefs&&!this._dataSubscription&&this._observeRenderChanges()}_switchDataSource(t){this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),t||this._nodeOutlet.viewContainer.clear(),this._dataSource=t,this._nodeDefs&&this._observeRenderChanges()}_observeRenderChanges(){let t;(0,n.Z9)(this._dataSource)?t=this._dataSource.connect(this):(0,r.b)(this._dataSource)?t=this._dataSource:Array.isArray(this._dataSource)&&(t=(0,a.of)(this._dataSource)),t&&(this._dataSubscription=t.pipe((0,h.R)(this._onDestroy)).subscribe(t=>this.renderNodeChanges(t)))}renderNodeChanges(t,e=this._dataDiffer,i=this._nodeOutlet.viewContainer,n){const r=e.diff(t);r&&(r.forEachOperation((e,r,s)=>{if(null==e.previousIndex)this.insertNode(t[s],s,i,n);else if(null==s)i.remove(r),this._levels.delete(e.item);else{const t=i.get(r);i.move(t,s)}}),this._changeDetectorRef.detectChanges())}_getNodeDef(t,e){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(i=>i.when&&i.when(e,t))||this._defaultNodeDef}insertNode(t,e,i,n){const r=this._getNodeDef(t,e),s=new y(t);s.level=this.treeControl.getLevel?this.treeControl.getLevel(t):void 0!==n&&this._levels.has(n)?this._levels.get(n)+1:0,this._levels.set(t,s.level),(i||this._nodeOutlet.viewContainer).createEmbeddedView(r.template,s,e),_.mostRecentTreeNode&&(_.mostRecentTreeNode.data=t)}}return t.\u0275fac=function(e){return new(e||t)(u.Y36(u.ZZ4),u.Y36(u.sBO))},t.\u0275cmp=u.Xpm({type:t,selectors:[["cdk-tree"]],contentQueries:function(t,e,i){if(1&t&&u.Suo(i,b,5),2&t){let t;u.iGM(t=u.CRH())&&(e._nodeDefs=t)}},viewQuery:function(t,e){if(1&t&&u.Gf(g,7),2&t){let t;u.iGM(t=u.CRH())&&(e._nodeOutlet=t.first)}},hostAttrs:["role","tree",1,"cdk-tree"],inputs:{dataSource:"dataSource",treeControl:"treeControl",trackBy:"trackBy"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(t,e){1&t&&u.GkF(0,0)},directives:[g],encapsulation:2}),t})(),_=(()=>{class t{constructor(e,i){this._elementRef=e,this._tree=i,this._destroyed=new s.x,this._dataChanges=new s.x,t.mostRecentTreeNode=this,this._elementRef.nativeElement.classList.add("cdk-tree-node"),this.role="treeitem"}get role(){return"treeitem"}set role(t){this._elementRef.nativeElement.setAttribute("role",t)}get data(){return this._data}set data(t){t!==this._data&&(this._data=t,this._setRoleFromData(),this._dataChanges.next())}get isExpanded(){return this._tree.treeControl.isExpanded(this._data)}_setExpanded(t){this._isAriaExpanded=t,this._elementRef.nativeElement.setAttribute("aria-expanded",`${t}`)}get level(){return this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._data):this._parentNodeAriaLevel}ngOnInit(){this._parentNodeAriaLevel=function(t){let e=t.parentElement;for(;e&&!w(e);)e=e.parentElement;return e?e.classList.contains("cdk-nested-tree-node")?(0,d.su)(e.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._elementRef.nativeElement.setAttribute("aria-level",`${this.level+1}`)}ngDoCheck(){this.isExpanded!=this._isAriaExpanded&&this._setExpanded(this.isExpanded)}ngOnDestroy(){t.mostRecentTreeNode===this&&(t.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}focus(){this._elementRef.nativeElement.focus()}_setRoleFromData(){this.role="treeitem"}}return t.\u0275fac=function(e){return new(e||t)(u.Y36(u.SBq),u.Y36(v))},t.\u0275dir=u.lG2({type:t,selectors:[["cdk-tree-node"]],inputs:{role:"role"},exportAs:["cdkTreeNode"]}),t.mostRecentTreeNode=null,t})();function w(t){const e=t.classList;return!(!(null==e?void 0:e.contains("cdk-nested-tree-node"))&&!(null==e?void 0:e.contains("cdk-tree")))}let x=(()=>{class t extends _{constructor(t,e,i){super(t,e),this._elementRef=t,this._tree=e,this._differs=i,this._elementRef.nativeElement.classList.add("cdk-nested-tree-node")}ngAfterContentInit(){this._dataDiffer=this._differs.find([]).create(this._tree.trackBy);const t=this._tree.treeControl.getChildren(this.data);Array.isArray(t)?this.updateChildrenNodes(t):(0,r.b)(t)&&t.pipe((0,h.R)(this._destroyed)).subscribe(t=>this.updateChildrenNodes(t)),this.nodeOutlet.changes.pipe((0,h.R)(this._destroyed)).subscribe(()=>this.updateChildrenNodes())}ngOnInit(){super.ngOnInit()}ngDoCheck(){super.ngDoCheck()}ngOnDestroy(){this._clear(),super.ngOnDestroy()}updateChildrenNodes(t){const e=this._getNodeOutlet();t&&(this._children=t),e&&this._children?this._tree.renderNodeChanges(this._children,this._dataDiffer,e.viewContainer,this._data):this._dataDiffer.diff([])}_clear(){const t=this._getNodeOutlet();t&&(t.viewContainer.clear(),this._dataDiffer.diff([]))}_getNodeOutlet(){const t=this.nodeOutlet;return t&&t.find(t=>!t._node||t._node===this)}}return t.\u0275fac=function(e){return new(e||t)(u.Y36(u.SBq),u.Y36(v),u.Y36(u.ZZ4))},t.\u0275dir=u.lG2({type:t,selectors:[["cdk-nested-tree-node"]],contentQueries:function(t,e,i){if(1&t&&u.Suo(i,g,5),2&t){let t;u.iGM(t=u.CRH())&&(e.nodeOutlet=t)}},inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["cdkNestedTreeNode"],features:[u._Bn([{provide:_,useExisting:t},{provide:m,useExisting:t}]),u.qOj]}),t})();const C=/([A-Za-z%]+)$/;let A=(()=>{class t{constructor(t,e,i,n){this._treeNode=t,this._tree=e,this._element=i,this._dir=n,this._destroyed=new s.x,this.indentUnits="px",this._indent=40,this._setPadding(),n&&n.change.pipe((0,h.R)(this._destroyed)).subscribe(()=>this._setPadding(!0)),t._dataChanges.subscribe(()=>this._setPadding())}get level(){return this._level}set level(t){this._setLevelInput(t)}get indent(){return this._indent}set indent(t){this._setIndentInput(t)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_paddingIndent(){const t=this._treeNode.data&&this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._treeNode.data):null,e=null==this._level?t:this._level;return"number"==typeof e?`${e*this._indent}${this.indentUnits}`:null}_setPadding(t=!1){const e=this._paddingIndent();if(e!==this._currentPadding||t){const t=this._element.nativeElement,i=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",n="paddingLeft"===i?"paddingRight":"paddingLeft";t.style[i]=e||"",t.style[n]="",this._currentPadding=e}}_setLevelInput(t){this._level=(0,d.su)(t,null),this._setPadding()}_setIndentInput(t){let e=t,i="px";if("string"==typeof t){const n=t.split(C);e=n[0],i=n[1]||i}this.indentUnits=i,this._indent=(0,d.su)(e),this._setPadding()}}return t.\u0275fac=function(e){return new(e||t)(u.Y36(_),u.Y36(v),u.Y36(u.SBq),u.Y36(p.Is,8))},t.\u0275dir=u.lG2({type:t,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:["cdkTreeNodePadding","level"],indent:["cdkTreeNodePaddingIndent","indent"]}}),t})(),S=(()=>{class t{constructor(t,e){this._tree=t,this._treeNode=e,this._recursive=!1}get recursive(){return this._recursive}set recursive(t){this._recursive=(0,d.Ig)(t)}_toggle(t){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),t.stopPropagation()}}return t.\u0275fac=function(e){return new(e||t)(u.Y36(v),u.Y36(_))},t.\u0275dir=u.lG2({type:t,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(t,e){1&t&&u.NdJ("click",function(t){return e._toggle(t)})},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}}),t})(),E=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=u.oAB({type:t}),t.\u0275inj=u.cJS({}),t})()},1511:(t,e,i)=>{"use strict";i.d(e,{mr:()=>_,Ov:()=>It,ez:()=>Ut,K0:()=>l,uU:()=>Pt,JJ:()=>Zt,Do:()=>x,Ts:()=>Ft,V_:()=>u,Ye:()=>C,S$:()=>b,i8:()=>Ot,mk:()=>pt,sg:()=>mt,O5:()=>yt,PC:()=>At,RF:()=>wt,n9:()=>xt,ED:()=>Ct,tP:()=>St,b0:()=>w,lw:()=>c,OU:()=>Bt,rS:()=>Rt,gd:()=>Nt,EM:()=>Yt,JF:()=>Vt,NF:()=>zt,PM:()=>Ht,w_:()=>a,bD:()=>qt,q:()=>s,Mx:()=>dt,HT:()=>o});var n=i(1572);let r=null;function s(){return r}function o(t){r||(r=t)}class a{}const l=new n.OlP("DocumentToken");let c=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,n.Yz7)({factory:h,token:t,providedIn:"platform"}),t})();function h(){return(0,n.LFG)(d)}const u=new n.OlP("Location Initialized");let d=(()=>{class t extends c{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return s().getBaseHref(this._doc)}onPopState(t){const e=s().getGlobalEventTarget(this._doc,"window");return e.addEventListener("popstate",t,!1),()=>e.removeEventListener("popstate",t)}onHashChange(t){const e=s().getGlobalEventTarget(this._doc,"window");return e.addEventListener("hashchange",t,!1),()=>e.removeEventListener("hashchange",t)}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(t){this.location.pathname=t}pushState(t,e,i){p()?this._history.pushState(t,e,i):this.location.hash=i}replaceState(t,e,i){p()?this._history.replaceState(t,e,i):this.location.hash=i}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(l))},t.\u0275prov=(0,n.Yz7)({factory:f,token:t,providedIn:"platform"}),t})();function p(){return!!window.history.pushState}function f(){return new d((0,n.LFG)(l))}function m(t,e){if(0==t.length)return e;if(0==e.length)return t;let i=0;return t.endsWith("/")&&i++,e.startsWith("/")&&i++,2==i?t+e.substring(1):1==i?t+e:t+"/"+e}function g(t){const e=t.match(/#|\?|$/),i=e&&e.index||t.length;return t.slice(0,i-("/"===t[i-1]?1:0))+t.slice(i)}function y(t){return t&&"?"!==t[0]?"?"+t:t}let b=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,n.Yz7)({factory:v,token:t,providedIn:"root"}),t})();function v(t){const e=(0,n.LFG)(l).location;return new w((0,n.LFG)(c),e&&e.origin||"")}const _=new n.OlP("appBaseHref");let w=(()=>{class t extends b{constructor(t,e){if(super(),this._platformLocation=t,this._removeListenerFns=[],null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=e}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return m(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+y(this._platformLocation.search),i=this._platformLocation.hash;return i&&t?`${e}${i}`:e}pushState(t,e,i,n){const r=this.prepareExternalUrl(i+y(n));this._platformLocation.pushState(t,e,r)}replaceState(t,e,i,n){const r=this.prepareExternalUrl(i+y(n));this._platformLocation.replaceState(t,e,r)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var e,i;null===(i=(e=this._platformLocation).historyGo)||void 0===i||i.call(e,t)}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(c),n.LFG(_,8))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})(),x=(()=>{class t extends b{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=e&&(this._baseHref=e)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=m(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,i,n){let r=this.prepareExternalUrl(i+y(n));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(t,e,r)}replaceState(t,e,i,n){let r=this.prepareExternalUrl(i+y(n));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,r)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var e,i;null===(i=(e=this._platformLocation).historyGo)||void 0===i||i.call(e,t)}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(c),n.LFG(_,8))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})(),C=(()=>{class t{constructor(t,e){this._subject=new n.vpe,this._urlChangeListeners=[],this._platformStrategy=t;const i=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=g(S(i)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+y(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,S(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",i=null){this._platformStrategy.pushState(i,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+y(e)),i)}replaceState(t,e="",i=null){this._platformStrategy.replaceState(i,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+y(e)),i)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(t=0){var e,i;null===(i=(e=this._platformStrategy).historyGo)||void 0===i||i.call(e,t)}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)}))}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(i=>i(t,e))}subscribe(t,e,i){return this._subject.subscribe({next:t,error:e,complete:i})}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(b),n.LFG(c))},t.normalizeQueryParams=y,t.joinWithSlash=m,t.stripTrailingSlash=g,t.\u0275prov=(0,n.Yz7)({factory:A,token:t,providedIn:"root"}),t})();function A(){return new C((0,n.LFG)(b),(0,n.LFG)(c))}function S(t){return t.replace(/\/index.html$/,"")}var E=function(t){return t[t.Decimal=0]="Decimal",t[t.Percent=1]="Percent",t[t.Currency=2]="Currency",t[t.Scientific=3]="Scientific",t}({}),k=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({}),T=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}({}),M=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}({}),L=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}({}),I=function(t){return t[t.Decimal=0]="Decimal",t[t.Group=1]="Group",t[t.List=2]="List",t[t.PercentSign=3]="PercentSign",t[t.PlusSign=4]="PlusSign",t[t.MinusSign=5]="MinusSign",t[t.Exponential=6]="Exponential",t[t.SuperscriptingExponent=7]="SuperscriptingExponent",t[t.PerMille=8]="PerMille",t[t[1/0]=9]="Infinity",t[t.NaN=10]="NaN",t[t.TimeSeparator=11]="TimeSeparator",t[t.CurrencyDecimal=12]="CurrencyDecimal",t[t.CurrencyGroup=13]="CurrencyGroup",t}({});function O(t,e){return Z((0,n.cg1)(t)[n.wAp.DateFormat],e)}function D(t,e){return Z((0,n.cg1)(t)[n.wAp.TimeFormat],e)}function R(t,e){return Z((0,n.cg1)(t)[n.wAp.DateTimeFormat],e)}function N(t,e){const i=(0,n.cg1)(t),r=i[n.wAp.NumberSymbols][e];if(void 0===r){if(e===I.CurrencyDecimal)return i[n.wAp.NumberSymbols][I.Decimal];if(e===I.CurrencyGroup)return i[n.wAp.NumberSymbols][I.Group]}return r}const P=n.kL8;function F(t){if(!t[n.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[n.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Z(t,e){for(let i=e;i>-1;i--)if(void 0!==t[i])return t[i];throw new Error("Locale data API: locale data undefined")}function B(t){const[e,i]=t.split(":");return{hours:+e,minutes:+i}}const U=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,q={},z=/((?:[^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 H=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}({}),Y=function(t){return t[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day",t}({}),G=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}({});function j(t,e,i,n){let r=function(t){if(st(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){const[e,i=1,n=1]=t.split("-").map(t=>+t);return V(e,i-1,n)}const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let i;if(i=t.match(U))return function(t){const e=new Date(0);let i=0,n=0;const r=t[8]?e.setUTCFullYear:e.setFullYear,s=t[8]?e.setUTCHours:e.setHours;t[9]&&(i=Number(t[9]+t[10]),n=Number(t[9]+t[11])),r.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));const o=Number(t[4]||0)-i,a=Number(t[5]||0)-n,l=Number(t[6]||0),c=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return s.call(e,o,a,l,c),e}(i)}const e=new Date(t);if(!st(e))throw new Error(`Unable to convert "${t}" into a date`);return e}(t);e=Q(i,e)||e;let s,o=[];for(;e;){if(s=z.exec(e),!s){o.push(e);break}{o=o.concat(s.slice(1));const t=o.pop();if(!t)break;e=t}}let a=r.getTimezoneOffset();n&&(a=rt(n,a),r=function(t,e,i){const n=t.getTimezoneOffset();return function(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}(t,-1*(rt(e,n)-n))}(r,n));let l="";return o.forEach(t=>{const e=function(t){if(nt[t])return nt[t];let e;switch(t){case"G":case"GG":case"GGG":e=K(G.Eras,M.Abbreviated);break;case"GGGG":e=K(G.Eras,M.Wide);break;case"GGGGG":e=K(G.Eras,M.Narrow);break;case"y":e=X(Y.FullYear,1,0,!1,!0);break;case"yy":e=X(Y.FullYear,2,0,!0,!0);break;case"yyy":e=X(Y.FullYear,3,0,!1,!0);break;case"yyyy":e=X(Y.FullYear,4,0,!1,!0);break;case"Y":e=it(1);break;case"YY":e=it(2,!0);break;case"YYY":e=it(3);break;case"YYYY":e=it(4);break;case"M":case"L":e=X(Y.Month,1,1);break;case"MM":case"LL":e=X(Y.Month,2,1);break;case"MMM":e=K(G.Months,M.Abbreviated);break;case"MMMM":e=K(G.Months,M.Wide);break;case"MMMMM":e=K(G.Months,M.Narrow);break;case"LLL":e=K(G.Months,M.Abbreviated,T.Standalone);break;case"LLLL":e=K(G.Months,M.Wide,T.Standalone);break;case"LLLLL":e=K(G.Months,M.Narrow,T.Standalone);break;case"w":e=et(1);break;case"ww":e=et(2);break;case"W":e=et(1,!0);break;case"d":e=X(Y.Date,1);break;case"dd":e=X(Y.Date,2);break;case"c":case"cc":e=X(Y.Day,1);break;case"ccc":e=K(G.Days,M.Abbreviated,T.Standalone);break;case"cccc":e=K(G.Days,M.Wide,T.Standalone);break;case"ccccc":e=K(G.Days,M.Narrow,T.Standalone);break;case"cccccc":e=K(G.Days,M.Short,T.Standalone);break;case"E":case"EE":case"EEE":e=K(G.Days,M.Abbreviated);break;case"EEEE":e=K(G.Days,M.Wide);break;case"EEEEE":e=K(G.Days,M.Narrow);break;case"EEEEEE":e=K(G.Days,M.Short);break;case"a":case"aa":case"aaa":e=K(G.DayPeriods,M.Abbreviated);break;case"aaaa":e=K(G.DayPeriods,M.Wide);break;case"aaaaa":e=K(G.DayPeriods,M.Narrow);break;case"b":case"bb":case"bbb":e=K(G.DayPeriods,M.Abbreviated,T.Standalone,!0);break;case"bbbb":e=K(G.DayPeriods,M.Wide,T.Standalone,!0);break;case"bbbbb":e=K(G.DayPeriods,M.Narrow,T.Standalone,!0);break;case"B":case"BB":case"BBB":e=K(G.DayPeriods,M.Abbreviated,T.Format,!0);break;case"BBBB":e=K(G.DayPeriods,M.Wide,T.Format,!0);break;case"BBBBB":e=K(G.DayPeriods,M.Narrow,T.Format,!0);break;case"h":e=X(Y.Hours,1,-12);break;case"hh":e=X(Y.Hours,2,-12);break;case"H":e=X(Y.Hours,1);break;case"HH":e=X(Y.Hours,2);break;case"m":e=X(Y.Minutes,1);break;case"mm":e=X(Y.Minutes,2);break;case"s":e=X(Y.Seconds,1);break;case"ss":e=X(Y.Seconds,2);break;case"S":e=X(Y.FractionalSeconds,1);break;case"SS":e=X(Y.FractionalSeconds,2);break;case"SSS":e=X(Y.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=$(H.Short);break;case"ZZZZZ":e=$(H.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=$(H.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=$(H.Long);break;default:return null}return nt[t]=e,e}(t);l+=e?e(r,i,a):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function V(t,e,i){const n=new Date(0);return n.setFullYear(t,e,i),n.setHours(0,0,0),n}function Q(t,e){const i=function(t){return(0,n.cg1)(t)[n.wAp.LocaleId]}(t);if(q[i]=q[i]||{},q[i][e])return q[i][e];let r="";switch(e){case"shortDate":r=O(t,L.Short);break;case"mediumDate":r=O(t,L.Medium);break;case"longDate":r=O(t,L.Long);break;case"fullDate":r=O(t,L.Full);break;case"shortTime":r=D(t,L.Short);break;case"mediumTime":r=D(t,L.Medium);break;case"longTime":r=D(t,L.Long);break;case"fullTime":r=D(t,L.Full);break;case"short":const e=Q(t,"shortTime"),i=Q(t,"shortDate");r=W(R(t,L.Short),[e,i]);break;case"medium":const n=Q(t,"mediumTime"),s=Q(t,"mediumDate");r=W(R(t,L.Medium),[n,s]);break;case"long":const o=Q(t,"longTime"),a=Q(t,"longDate");r=W(R(t,L.Long),[o,a]);break;case"full":const l=Q(t,"fullTime"),c=Q(t,"fullDate");r=W(R(t,L.Full),[l,c])}return r&&(q[i][e]=r),r}function W(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(t,i){return null!=e&&i in e?e[i]:t})),t}function J(t,e,i="-",n,r){let s="";(t<0||r&&t<=0)&&(r?t=1-t:(t=-t,s=i));let o=String(t);for(;o.length0||a>-i)&&(a+=i),t===Y.Hours)0===a&&-12===i&&(a=12);else if(t===Y.FractionalSeconds)return l=e,J(a,3).substr(0,l);var l;const c=N(o,I.MinusSign);return J(a,e,c,n,r)}}function K(t,e,i=T.Format,r=!1){return function(s,o){return function(t,e,i,r,s,o){switch(i){case G.Months:return function(t,e,i){const r=(0,n.cg1)(t),s=Z([r[n.wAp.MonthsFormat],r[n.wAp.MonthsStandalone]],e);return Z(s,i)}(e,s,r)[t.getMonth()];case G.Days:return function(t,e,i){const r=(0,n.cg1)(t),s=Z([r[n.wAp.DaysFormat],r[n.wAp.DaysStandalone]],e);return Z(s,i)}(e,s,r)[t.getDay()];case G.DayPeriods:const a=t.getHours(),l=t.getMinutes();if(o){const t=function(t){const e=(0,n.cg1)(t);return F(e),(e[n.wAp.ExtraData][2]||[]).map(t=>"string"==typeof t?B(t):[B(t[0]),B(t[1])])}(e),i=function(t,e,i){const r=(0,n.cg1)(t);F(r);const s=Z([r[n.wAp.ExtraData][0],r[n.wAp.ExtraData][1]],e)||[];return Z(s,i)||[]}(e,s,r),o=t.findIndex(t=>{if(Array.isArray(t)){const[e,i]=t,n=a>=e.hours&&l>=e.minutes,r=a0?Math.floor(r/60):Math.ceil(r/60);switch(t){case H.Short:return(r>=0?"+":"")+J(o,2,s)+J(Math.abs(r%60),2,s);case H.ShortGMT:return"GMT"+(r>=0?"+":"")+J(o,1,s);case H.Long:return"GMT"+(r>=0?"+":"")+J(o,2,s)+":"+J(Math.abs(r%60),2,s);case H.Extended:return 0===n?"Z":(r>=0?"+":"")+J(o,2,s)+":"+J(Math.abs(r%60),2,s);default:throw new Error(`Unknown zone width "${t}"`)}}}function tt(t){return V(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))}function et(t,e=!1){return function(i,n){let r;if(e){const t=new Date(i.getFullYear(),i.getMonth(),1).getDay()-1,e=i.getDate();r=1+Math.floor((e+t)/7)}else{const t=tt(i),e=function(t){const e=V(t,0,1).getDay();return V(t,0,1+(e<=4?4:11)-e)}(t.getFullYear()),n=t.getTime()-e.getTime();r=1+Math.round(n/6048e5)}return J(r,t,N(n,I.MinusSign))}}function it(t,e=!1){return function(i,n){return J(tt(i).getFullYear(),t,N(n,I.MinusSign),e)}}const nt={};function rt(t,e){t=t.replace(/:/g,"");const i=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(i)?e:i}function st(t){return t instanceof Date&&!isNaN(t.valueOf())}const ot=/^(\d+)?\.((\d+)(-(\d+))?)?$/,at=".",lt="0";function ct(t){const e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}class ht{}let ut=(()=>{class t extends ht{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(P(e||this.locale)(t)){case k.Zero:return"zero";case k.One:return"one";case k.Two:return"two";case k.Few:return"few";case k.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(n.soG))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})();function dt(t,e){e=encodeURIComponent(e);for(const i of t.split(";")){const t=i.indexOf("="),[n,r]=-1==t?[i,""]:[i.slice(0,t),i.slice(t+1)];if(n.trim()===e)return decodeURIComponent(r)}return null}let pt=(()=>{class t{constructor(t,e,i,n){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=i,this._renderer=n,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&((0,n.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachChangedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachRemovedItem(t=>{t.previousValue&&this._toggleClass(t.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(t=>{if("string"!=typeof t.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,n.AaK)(t.item)}`);this._toggleClass(t.item,!0)}),t.forEachRemovedItem(t=>this._toggleClass(t.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!0)):Object.keys(t).forEach(e=>this._toggleClass(e,!!t[e])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!1)):Object.keys(t).forEach(t=>this._toggleClass(t,!1)))}_toggleClass(t,e){(t=t.trim())&&t.split(/\s+/g).forEach(t=>{e?this._renderer.addClass(this._ngEl.nativeElement,t):this._renderer.removeClass(this._ngEl.nativeElement,t)})}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.ZZ4),n.Y36(n.aQg),n.Y36(n.SBq),n.Y36(n.Qsj))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class ft{constructor(t,e,i,n){this.$implicit=t,this.ngForOf=e,this.index=i,this.count=n}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 mt=(()=>{class t{constructor(t,e,i){this._viewContainer=t,this._template=e,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const i=this._ngForOf;if(!this._differ&&i)try{this._differ=this._differs.find(i).create(this.ngForTrackBy)}catch(e){throw new Error(`Cannot find a differ supporting object '${i}' of type '${t=i,t.name||typeof t}'. NgFor only supports binding to Iterables such as Arrays.`)}}var t;if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,i,n)=>{if(null==t.previousIndex){const i=this._viewContainer.createEmbeddedView(this._template,new ft(null,this._ngForOf,-1,-1),null===n?void 0:n),r=new gt(t,i);e.push(r)}else if(null==n)this._viewContainer.remove(null===i?void 0:i);else if(null!==i){const r=this._viewContainer.get(i);this._viewContainer.move(r,n);const s=new gt(t,r);e.push(s)}});for(let i=0;i{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.s_b),n.Y36(n.Rgc),n.Y36(n.ZZ4))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class gt{constructor(t,e){this.record=t,this.view=e}}let yt=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new bt,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){vt("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){vt("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.s_b),n.Y36(n.Rgc))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class bt{constructor(){this.$implicit=null,this.ngIf=null}}function vt(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${(0,n.AaK)(e)}'.`)}class _t{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let wt=(()=>{class t{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}_matchCase(t){const e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e}_updateDefaultCases(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let e=0;e{class t{constructor(t,e,i){this.ngSwitch=i,i._addCase(),this._view=new _t(t,e)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.s_b),n.Y36(n.Rgc),n.Y36(wt,9))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),Ct=(()=>{class t{constructor(t,e,i){i._addDefault(new _t(t,e))}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.s_b),n.Y36(n.Rgc),n.Y36(wt,9))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngSwitchDefault",""]]}),t})(),At=(()=>{class t{constructor(t,e,i){this._ngEl=t,this._differs=e,this._renderer=i,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,e){const[i,n]=t.split(".");null!=(e=null!=e&&n?`${e}${n}`:e)?this._renderer.setStyle(this._ngEl.nativeElement,i,e):this._renderer.removeStyle(this._ngEl.nativeElement,i)}_applyChanges(t){t.forEachRemovedItem(t=>this._setStyle(t.key,null)),t.forEachAddedItem(t=>this._setStyle(t.key,t.currentValue)),t.forEachChangedItem(t=>this._setStyle(t.key,t.currentValue))}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(n.aQg),n.Y36(n.Qsj))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),t})(),St=(()=>{class t{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(t){if(t.ngTemplateOutlet){const t=this._viewContainerRef;this._viewRef&&t.remove(t.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?t.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&t.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.s_b))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[n.TTD]}),t})();function Et(t,e){return Error(`InvalidPipeArgument: '${e}' for pipe '${(0,n.AaK)(t)}'`)}class kt{createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class Tt{createSubscription(t,e){return t.then(e,t=>{throw t})}dispose(t){}onDestroy(t){}}const Mt=new Tt,Lt=new kt;let It=(()=>{class t{constructor(t){this._ref=t,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,e=>this._updateLatestValue(t,e))}_selectStrategy(e){if((0,n.QGY)(e))return Mt;if((0,n.F4k)(e))return Lt;throw Et(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.sBO,16))},t.\u0275pipe=n.Yjl({name:"async",type:t,pure:!1}),t})(),Ot=(()=>{class t{transform(e){if(null==e)return null;if("string"!=typeof e)throw Et(t,e);return e.toLowerCase()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"lowercase",type:t,pure:!0}),t})();const Dt=/(?:[A-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\u0561-\u0587\u05D0-\u05EA\u05F0-\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\u08A0-\u08B4\u08B6-\u08BD\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\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\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\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\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-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\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-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\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-\u2C2E\u2C30-\u2C5E\u2C60-\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-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\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-\uAB65\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\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\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-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\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\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\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]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\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-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D])\S*/g;let Rt=(()=>{class t{transform(e){if(null==e)return null;if("string"!=typeof e)throw Et(t,e);return e.replace(Dt,t=>t[0].toUpperCase()+t.substr(1).toLowerCase())}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"titlecase",type:t,pure:!0}),t})(),Nt=(()=>{class t{transform(e){if(null==e)return null;if("string"!=typeof e)throw Et(t,e);return e.toUpperCase()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"uppercase",type:t,pure:!0}),t})(),Pt=(()=>{class t{constructor(t){this.locale=t}transform(e,i="mediumDate",n,r){if(null==e||""===e||e!=e)return null;try{return j(e,i,r||this.locale,n)}catch(s){throw Et(t,s.message)}}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.soG,16))},t.\u0275pipe=n.Yjl({name:"date",type:t,pure:!0}),t})(),Ft=(()=>{class t{transform(t){return JSON.stringify(t,null,2)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"json",type:t,pure:!1}),t})(),Zt=(()=>{class t{constructor(t){this._locale=t}transform(e,i,r){if(!function(t){return!(null==t||""===t||t!=t)}(e))return null;r=r||this._locale;try{return function(t,e,i){return function(t,e,i,n,r,s,o=!1){let a="",l=!1;if(isFinite(t)){let c=function(t){let e,i,n,r,s,o=Math.abs(t)+"",a=0;for((i=o.indexOf(at))>-1&&(o=o.replace(at,"")),(n=o.search(/e/i))>0?(i<0&&(i=n),i+=+o.slice(n+1),o=o.substring(0,n)):i<0&&(i=o.length),n=0;o.charAt(n)===lt;n++);if(n===(s=o.length))e=[0],i=1;else{for(s--;o.charAt(s)===lt;)s--;for(i-=n,e=[],r=0;n<=s;n++,r++)e[r]=Number(o.charAt(n))}return i>22&&(e=e.splice(0,21),a=i-1,i=1),{digits:e,exponent:a,integerLen:i}}(t);o&&(c=function(t){if(0===t.digits[0])return t;const e=t.digits.length-t.integerLen;return t.exponent?t.exponent+=2:(0===e?t.digits.push(0,0):1===e&&t.digits.push(0),t.integerLen+=2),t}(c));let h=e.minInt,u=e.minFrac,d=e.maxFrac;if(s){const t=s.match(ot);if(null===t)throw new Error(`${s} is not a valid digit info`);const e=t[1],i=t[3],n=t[5];null!=e&&(h=ct(e)),null!=i&&(u=ct(i)),null!=n?d=ct(n):null!=i&&u>d&&(d=u)}!function(t,e,i){if(e>i)throw new Error(`The minimum number of digits after fraction (${e}) is higher than the maximum (${i}).`);let n=t.digits,r=n.length-t.integerLen;const s=Math.min(Math.max(e,r),i);let o=s+t.integerLen,a=n[o];if(o>0){n.splice(Math.max(t.integerLen,o));for(let t=o;t=5)if(o-1<0){for(let e=0;e>o;e--)n.unshift(0),t.integerLen++;n.unshift(1),t.integerLen++}else n[o-1]++;for(;r=c?n.pop():l=!1),e>=10?1:0},0);h&&(n.unshift(h),t.integerLen++)}(c,u,d);let p=c.digits,f=c.integerLen;const m=c.exponent;let g=[];for(l=p.every(t=>!t);f0?g=p.splice(f,p.length):(g=p,p=[0]);const y=[];for(p.length>=e.lgSize&&y.unshift(p.splice(-e.lgSize,p.length).join(""));p.length>e.gSize;)y.unshift(p.splice(-e.gSize,p.length).join(""));p.length&&y.unshift(p.join("")),a=y.join(N(i,n)),g.length&&(a+=N(i,r)+g.join("")),m&&(a+=N(i,I.Exponential)+"+"+m)}else a=N(i,I.Infinity);return a=t<0&&!l?e.negPre+a+e.negSuf:e.posPre+a+e.posSuf,a}(t,function(t,e="-"){const i={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},n=t.split(";"),r=n[0],s=n[1],o=-1!==r.indexOf(at)?r.split(at):[r.substring(0,r.lastIndexOf(lt)+1),r.substring(r.lastIndexOf(lt)+1)],a=o[0],l=o[1]||"";i.posPre=a.substr(0,a.indexOf("#"));for(let h=0;h{class t{transform(e,i,n){if(null==e)return null;if(!this.supports(e))throw Et(t,e);return e.slice(i,n)}supports(t){return"string"==typeof t||Array.isArray(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"slice",type:t,pure:!1}),t})(),Ut=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({providers:[{provide:ht,useClass:ut}]}),t})();const qt="browser";function zt(t){return t===qt}function Ht(t){return"server"===t}let Yt=(()=>{class t{}return t.\u0275prov=(0,n.Yz7)({token:t,providedIn:"root",factory:()=>new Gt((0,n.LFG)(l),window)}),t})();class Gt{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const e=function(t,e){const i=t.getElementById(e)||t.getElementsByName(e)[0];if(i)return i;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let n=i.currentNode;for(;n;){const t=n.shadowRoot;if(t){const i=t.getElementById(e)||t.querySelector(`[name="${e}"]`);if(i)return i}n=i.nextNode()}}return null}(this.document,t);e&&(this.scrollToElement(e),this.attemptFocus(e))}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),i=e.left+this.window.pageXOffset,n=e.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(i-r[0],n-r[1])}attemptFocus(t){return t.focus(),this.document.activeElement===t}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=jt(this.window.history)||jt(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(t){return!1}}}function jt(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class Vt{}},9063:(t,e,i)=>{"use strict";i.d(e,{TP:()=>L,eN:()=>T,JF:()=>q,LE:()=>g});var n=i(1511),r=i(1572),s=i(2041),o=i(2391),a=i(8196),l=i(8868),c=i(1681);class h{}class u{}class d{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const i=t.slice(0,e),n=i.toLowerCase(),r=t.slice(e+1).trim();this.maybeSetNormalizedName(i,n),this.headers.has(n)?this.headers.get(n).push(r):this.headers.set(n,[r])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let i=t[e];const n=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(n,i),this.maybeSetNormalizedName(e,n))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof d?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new d;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof d?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let i=t.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(t.name,e);const n=("a"===t.op?this.headers.get(e):void 0)||[];n.push(...i),this.headers.set(e,n);break;case"d":const r=t.value;if(r){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===r.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class p{encodeKey(t){return f(t)}encodeValue(t){return f(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function f(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}function m(t){return`${t}`}class g{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new p,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const i=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(t=>{const n=t.indexOf("="),[r,s]=-1==n?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,n)),e.decodeValue(t.slice(n+1))],o=i.get(r)||[];o.push(s),i.set(r,o)}),i}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const i=t.fromObject[e];this.map.set(e,Array.isArray(i)?i:[i])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(i=>{const n=t[i];Array.isArray(n)?n.forEach(t=>{e.push({param:i,value:t,op:"a"})}):e.push({param:i,value:n,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new g({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(m(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const i=e.indexOf(m(t.value));-1!==i&&e.splice(i,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class y{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}keys(){return this.map.keys()}}function b(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function v(t){return"undefined"!=typeof Blob&&t instanceof Blob}function _(t){return"undefined"!=typeof FormData&&t instanceof FormData}class w{constructor(t,e,i,n){let r;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||n?(this.body=void 0!==i?i:null,r=n):r=i,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.context&&(this.context=r.context),r.params&&(this.params=r.params)),this.headers||(this.headers=new d),this.context||(this.context=new y),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const i=e.indexOf("?");this.urlWithParams=e+(-1===i?"?":ie.set(i,t.setHeaders[i]),l)),t.setParams&&(c=Object.keys(t.setParams).reduce((e,i)=>e.set(i,t.setParams[i]),c)),new w(i,n,s,{params:c,headers:l,context:h,reportProgress:a,responseType:r,withCredentials:o})}}var x=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}({});class C{constructor(t,e=200,i="OK"){this.headers=t.headers||new d,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class A extends C{constructor(t={}){super(t),this.type=x.ResponseHeader}clone(t={}){return new A({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class S extends C{constructor(t={}){super(t),this.type=x.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new S({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class E extends C{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function k(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let T=(()=>{class t{constructor(t){this.handler=t}request(t,e,i={}){let n;if(t instanceof w)n=t;else{let r,s;r=i.headers instanceof d?i.headers:new d(i.headers),i.params&&(s=i.params instanceof g?i.params:new g({fromObject:i.params})),n=new w(t,e,void 0!==i.body?i.body:null,{headers:r,context:i.context,params:s,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials})}const r=(0,s.of)(n).pipe((0,a.b)(t=>this.handler.handle(t)));if(t instanceof w||"events"===i.observe)return r;const o=r.pipe((0,l.h)(t=>t instanceof S));switch(i.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return o.pipe((0,c.U)(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return o.pipe((0,c.U)(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return o.pipe((0,c.U)(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return o.pipe((0,c.U)(t=>t.body))}case"response":return o;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new g).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,i={}){return this.request("PATCH",t,k(i,e))}post(t,e,i={}){return this.request("POST",t,k(i,e))}put(t,e,i={}){return this.request("PUT",t,k(i,e))}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(h))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})();class M{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const L=new r.OlP("HTTP_INTERCEPTORS");let I=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})();const O=/^\)\]\}',?\n/;let D=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new o.y(e=>{const i=this.xhrFactory.build();if(i.open(t.method,t.urlWithParams),t.withCredentials&&(i.withCredentials=!0),t.headers.forEach((t,e)=>i.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&i.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();i.responseType="json"!==e?e:"text"}const n=t.serializeBody();let r=null;const s=()=>{if(null!==r)return r;const e=1223===i.status?204:i.status,n=i.statusText||"OK",s=new d(i.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(i)||t.url;return r=new A({headers:s,status:e,statusText:n,url:o}),r},o=()=>{let{headers:n,status:r,statusText:o,url:a}=s(),l=null;204!==r&&(l=void 0===i.response?i.responseText:i.response),0===r&&(r=l?200:0);let c=r>=200&&r<300;if("json"===t.responseType&&"string"==typeof l){const t=l;l=l.replace(O,"");try{l=""!==l?JSON.parse(l):null}catch(h){l=t,c&&(c=!1,l={error:h,text:l})}}c?(e.next(new S({body:l,headers:n,status:r,statusText:o,url:a||void 0})),e.complete()):e.error(new E({error:l,headers:n,status:r,statusText:o,url:a||void 0}))},a=t=>{const{url:n}=s(),r=new E({error:t,status:i.status||0,statusText:i.statusText||"Unknown Error",url:n||void 0});e.error(r)};let l=!1;const c=n=>{l||(e.next(s()),l=!0);let r={type:x.DownloadProgress,loaded:n.loaded};n.lengthComputable&&(r.total=n.total),"text"===t.responseType&&i.responseText&&(r.partialText=i.responseText),e.next(r)},h=t=>{let i={type:x.UploadProgress,loaded:t.loaded};t.lengthComputable&&(i.total=t.total),e.next(i)};return i.addEventListener("load",o),i.addEventListener("error",a),i.addEventListener("timeout",a),i.addEventListener("abort",a),t.reportProgress&&(i.addEventListener("progress",c),null!==n&&i.upload&&i.upload.addEventListener("progress",h)),i.send(n),e.next({type:x.Sent}),()=>{i.removeEventListener("error",a),i.removeEventListener("abort",a),i.removeEventListener("load",o),i.removeEventListener("timeout",a),t.reportProgress&&(i.removeEventListener("progress",c),null!==n&&i.upload&&i.upload.removeEventListener("progress",h)),i.readyState!==i.DONE&&i.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(n.JF))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})();const R=new r.OlP("XSRF_COOKIE_NAME"),N=new r.OlP("XSRF_HEADER_NAME");class P{}let F=(()=>{class t{constructor(t,e,i){this.doc=t,this.platform=e,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,n.Mx)(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(n.K0),r.LFG(r.Lbi),r.LFG(R))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})(),Z=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const i=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||i.startsWith("http://")||i.startsWith("https://"))return e.handle(t);const n=this.tokenService.getToken();return null===n||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,n)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(P),r.LFG(N))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})(),B=(()=>{class t{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get(L,[]);this.chain=t.reduceRight((t,e)=>new M(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(u),r.LFG(r.zs3))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})(),U=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:Z,useClass:I}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:R,useValue:e.cookieName}:[],e.headerName?{provide:N,useValue:e.headerName}:[]]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:[Z,{provide:L,useExisting:Z,multi:!0},{provide:P,useClass:F},{provide:R,useValue:"XSRF-TOKEN"},{provide:N,useValue:"X-XSRF-TOKEN"}]}),t})(),q=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:[T,{provide:h,useClass:B},D,{provide:u,useExisting:D}],imports:[[U.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})()},1572:(t,e,i)=>{"use strict";i.d(e,{deG:()=>li,tb:()=>hc,AFp:()=>sc,ip1:()=>nc,CZH:()=>rc,hGG:()=>nh,z2F:()=>Vc,sBO:()=>Wa,Sil:()=>wc,_Vd:()=>va,EJc:()=>pc,SBq:()=>Ca,qLn:()=>Ln,vpe:()=>Fl,gxx:()=>vs,tBr:()=>Mi,XFs:()=>L,OlP:()=>ai,zs3:()=>Rs,ZZ4:()=>za,aQg:()=>Ya,soG:()=>dc,YKP:()=>sl,v3s:()=>Wc,h0i:()=>rl,PXZ:()=>zc,R0b:()=>Ac,FiY:()=>Li,Lbi:()=>cc,g9A:()=>lc,n_E:()=>Bl,Qsj:()=>Ea,FYo:()=>Sa,JOm:()=>Nn,Tiy:()=>Ta,q3G:()=>wn,PiD:()=>Ii,tp0:()=>Oi,EAV:()=>Kc,Rgc:()=>tl,dDg:()=>Ic,DyG:()=>ci,GfV:()=>Ma,s_b:()=>al,ifc:()=>P,eFA:()=>Hc,Ez6:()=>w,G48:()=>Uc,Gpc:()=>p,f3M:()=>Ei,X6Q:()=>Bc,_c5:()=>eh,VLi:()=>Rc,c2e:()=>uc,zSh:()=>ws,wAp:()=>sa,vHH:()=>g,EiD:()=>vn,mCW:()=>en,qzn:()=>Yi,JVY:()=>ji,pB0:()=>Ji,eBb:()=>Qi,L6k:()=>Vi,LAX:()=>Wi,cg1:()=>ia,Tjo:()=>th,kL8:()=>na,yhl:()=>Gi,dqk:()=>q,sIi:()=>Ys,CqO:()=>po,QGY:()=>ho,F4k:()=>uo,RDi:()=>Et,AaK:()=>h,z3N:()=>Hi,qOj:()=>Ps,TTD:()=>vt,_Bn:()=>ga,xp6:()=>xr,uIk:()=>Ws,Tol:()=>Do,Gre:()=>Jo,ekj:()=>Oo,Suo:()=>Xl,Xpm:()=>K,lG2:()=>st,Yz7:()=>_,cJS:()=>x,oAB:()=>it,Yjl:()=>ot,Y36:()=>$s,_UZ:()=>so,GkF:()=>lo,BQk:()=>ao,ynx:()=>oo,qZA:()=>ro,TgZ:()=>no,EpF:()=>co,n5z:()=>ii,Ikx:()=>Xo,LFG:()=>Si,$8M:()=>ri,$Z:()=>to,NdJ:()=>fo,CRH:()=>Kl,kcU:()=>_e,O4$:()=>ve,oxw:()=>vo,ALo:()=>Ll,lcZ:()=>Il,xi3:()=>Ol,Dn7:()=>Dl,Hsn:()=>xo,F$t:()=>wo,Q6J:()=>eo,s9C:()=>Co,MGl:()=>Ao,DdM:()=>xl,VKq:()=>Cl,WLB:()=>Al,kEZ:()=>Sl,iGM:()=>Wl,MAs:()=>Ks,pYS:()=>Dn,Jf7:()=>On,CHM:()=>Gt,oJD:()=>xn,LSH:()=>Cn,kYT:()=>nt,Udp:()=>Io,WFA:()=>mo,d8E:()=>Ko,YNc:()=>Xs,W1O:()=>ic,_uU:()=>Go,Oqu:()=>jo,hij:()=>Vo,AsE:()=>Qo,HOy:()=>Wo,Gf:()=>Jl});var n=i(9666),r=i(6042),s=i(2391),o=i(5446),a=i(7839);function l(t){for(let e in t)if(t[e]===l)return e;throw Error("Could not find renamed property on target object.")}function c(t,e){for(const i in e)e.hasOwnProperty(i)&&!t.hasOwnProperty(i)&&(t[i]=e[i])}function h(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(h).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const e=t.toString();if(null==e)return""+e;const i=e.indexOf("\n");return-1===i?e:e.substring(0,i)}function u(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const d=l({__forward_ref__:l});function p(t){return t.__forward_ref__=p,t.toString=function(){return h(this())},t}function f(t){return m(t)?t():t}function m(t){return"function"==typeof t&&t.hasOwnProperty(d)&&t.__forward_ref__===p}class g extends Error{constructor(t,e){super(function(t,e){return`${t?`NG0${t}: `:""}${e}`}(t,e)),this.code=t}}function y(t){return"string"==typeof t?t:null==t?"":String(t)}function b(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():y(t)}function v(t,e){const i=e?` in ${e}`:"";throw new g("201",`No provider for ${b(t)} found${i}`)}function _(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}const w=_;function x(t){return{providers:t.providers||[],imports:t.imports||[]}}function C(t){return A(t,E)||A(t,T)}function A(t,e){return t.hasOwnProperty(e)?t[e]:null}function S(t){return t&&(t.hasOwnProperty(k)||t.hasOwnProperty(M))?t[k]:null}const E=l({"\u0275prov":l}),k=l({"\u0275inj":l}),T=l({ngInjectableDef:l}),M=l({ngInjectorDef:l});var L=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});let I;function O(t){const e=I;return I=t,e}function D(t,e,i){const n=C(t);return n&&"root"==n.providedIn?void 0===n.value?n.value=n.factory():n.value:i&L.Optional?null:void 0!==e?e:void v(h(t),"Injector")}function R(t){return{toString:t}.toString()}var N=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),P=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({});const F="undefined"!=typeof globalThis&&globalThis,Z="undefined"!=typeof window&&window,B="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,U="undefined"!=typeof global&&global,q=F||U||Z||B,z={},H=[],Y=l({"\u0275cmp":l}),G=l({"\u0275dir":l}),j=l({"\u0275pipe":l}),V=l({"\u0275mod":l}),Q=l({"\u0275loc":l}),W=l({"\u0275fac":l}),J=l({__NG_ELEMENT_ID__:l});let X=0;function K(t){return R(()=>{const e={},i={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===N.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||H,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||P.Emulated,id:"c",styles:t.styles||H,_:null,setInput:null,schemas:t.schemas||null,tView:null},n=t.directives,r=t.features,s=t.pipes;return i.id+=X++,i.inputs=rt(t.inputs,e),i.outputs=rt(t.outputs),r&&r.forEach(t=>t(i)),i.directiveDefs=n?()=>("function"==typeof n?n():n).map($):null,i.pipeDefs=s?()=>("function"==typeof s?s():s).map(tt):null,i})}function $(t){return at(t)||function(t){return t[G]||null}(t)}function tt(t){return function(t){return t[j]||null}(t)}const et={};function it(t){return R(()=>{const e={type:t.type,bootstrap:t.bootstrap||H,declarations:t.declarations||H,imports:t.imports||H,exports:t.exports||H,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(et[t.id]=t.type),e})}function nt(t,e){return R(()=>{const i=lt(t,!0);i.declarations=e.declarations||H,i.imports=e.imports||H,i.exports=e.exports||H})}function rt(t,e){if(null==t)return z;const i={};for(const n in t)if(t.hasOwnProperty(n)){let r=t[n],s=r;Array.isArray(r)&&(s=r[1],r=r[0]),i[r]=n,e&&(e[r]=s)}return i}const st=K;function ot(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function at(t){return t[Y]||null}function lt(t,e){const i=t[V]||null;if(!i&&!0===e)throw new Error(`Type ${h(t)} does not have '\u0275mod' property.`);return i}const ct=20,ht=10;function ut(t){return Array.isArray(t)&&"object"==typeof t[1]}function dt(t){return Array.isArray(t)&&!0===t[1]}function pt(t){return 0!=(8&t.flags)}function ft(t){return 2==(2&t.flags)}function mt(t){return 1==(1&t.flags)}function gt(t){return null!==t.template}function yt(t,e){return t.hasOwnProperty(W)?t[W]:null}class bt{constructor(t,e,i){this.previousValue=t,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function vt(){return _t}function _t(t){return t.type.prototype.ngOnChanges&&(t.setInput=xt),wt}function wt(){const t=Ct(this),e=null==t?void 0:t.current;if(e){const i=t.previous;if(i===z)t.previous=e;else for(let t in e)i[t]=e[t];t.current=null,this.ngOnChanges(e)}}function xt(t,e,i,n){const r=Ct(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:z,current:null}),s=r.current||(r.current={}),o=r.previous,a=this.declaredInputs[i],l=o[a];s[a]=new bt(l&&l.currentValue,e,o===z),t[n]=e}function Ct(t){return t.__ngSimpleChanges__||null}vt.ngInherit=!0;const At="http://www.w3.org/2000/svg";let St;function Et(t){St=t}function kt(){return void 0!==St?St:"undefined"!=typeof document?document:void 0}function Tt(t){return!!t.listen}const Mt={createRenderer:(t,e)=>kt()};function Lt(t){for(;Array.isArray(t);)t=t[0];return t}function It(t,e){return Lt(e[t])}function Ot(t,e){return Lt(e[t.index])}function Dt(t,e){return t.data[e]}function Rt(t,e){return t[e]}function Nt(t,e){const i=e[t];return ut(i)?i:i[0]}function Pt(t){return 4==(4&t[2])}function Ft(t){return 128==(128&t[2])}function Zt(t,e){return null==e?null:t[e]}function Bt(t){t[18]=0}function Ut(t,e){t[5]+=e;let i=t,n=t[3];for(;null!==n&&(1===e&&1===i[5]||-1===e&&0===i[5]);)n[5]+=e,i=n,n=n[3]}const qt={lFrame:de(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function zt(){return qt.bindingsEnabled}function Ht(){return qt.lFrame.lView}function Yt(){return qt.lFrame.tView}function Gt(t){return qt.lFrame.contextLView=t,t[8]}function jt(){let t=Vt();for(;null!==t&&64===t.type;)t=t.parent;return t}function Vt(){return qt.lFrame.currentTNode}function Qt(t,e){const i=qt.lFrame;i.currentTNode=t,i.isParent=e}function Wt(){return qt.lFrame.isParent}function Jt(){qt.lFrame.isParent=!1}function Xt(){return qt.isInCheckNoChangesMode}function Kt(t){qt.isInCheckNoChangesMode=t}function $t(){const t=qt.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function te(){return qt.lFrame.bindingIndex}function ee(){return qt.lFrame.bindingIndex++}function ie(t){const e=qt.lFrame,i=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,i}function ne(t,e){const i=qt.lFrame;i.bindingIndex=i.bindingRootIndex=t,re(e)}function re(t){qt.lFrame.currentDirectiveIndex=t}function se(t){const e=qt.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function oe(){return qt.lFrame.currentQueryIndex}function ae(t){qt.lFrame.currentQueryIndex=t}function le(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function ce(t,e,i){if(i&L.SkipSelf){let n=e,r=t;for(;n=n.parent,!(null!==n||i&L.Host||(n=le(r),null===n)||(r=r[15],10&n.type)););if(null===n)return!1;e=n,t=r}const n=qt.lFrame=ue();return n.currentTNode=e,n.lView=t,!0}function he(t){const e=ue(),i=t[1];qt.lFrame=e,e.currentTNode=i.firstChild,e.lView=t,e.tView=i,e.contextLView=t,e.bindingIndex=i.bindingStartIndex,e.inI18n=!1}function ue(){const t=qt.lFrame,e=null===t?null:t.child;return null===e?de(t):e}function de(t){const e={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:t,child:null,inI18n:!1};return null!==t&&(t.child=e),e}function pe(){const t=qt.lFrame;return qt.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const fe=pe;function me(){const t=pe();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function ge(){return qt.lFrame.selectedIndex}function ye(t){qt.lFrame.selectedIndex=t}function be(){const t=qt.lFrame;return Dt(t.tView,t.selectedIndex)}function ve(){qt.lFrame.currentNamespace=At}function _e(){qt.lFrame.currentNamespace=null}function we(t,e){for(let i=e.directiveStart,n=e.directiveEnd;i=n)break}else e[a]<0&&(t[18]+=65536),(o>11>16&&(3&t[2])===e){t[2]+=2048;try{s.call(o)}finally{}}}else try{s.call(o)}finally{}}const ke=-1;class Te{constructor(t,e,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function Me(t,e,i){const n=Tt(t);let r=0;for(;re){o=s-1;break}}}for(;s>16,n=e;for(;i>0;)n=n[15],i--;return n}let Fe=!0;function Ze(t){const e=Fe;return Fe=t,e}let Be=0;function Ue(t,e){const i=ze(t,e);if(-1!==i)return i;const n=e[1];n.firstCreatePass&&(t.injectorIndex=e.length,qe(n.data,t),qe(e,null),qe(n.blueprint,null));const r=He(t,e),s=t.injectorIndex;if(Re(r)){const t=Ne(r),i=Pe(r,e),n=i[1].data;for(let r=0;r<8;r++)e[s+r]=i[t+r]|n[t+r]}return e[s+8]=r,s}function qe(t,e){t.push(0,0,0,0,0,0,0,0,e)}function ze(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function He(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let i=0,n=null,r=e;for(;null!==r;){const t=r[1],e=t.type;if(n=2===e?t.declTNode:1===e?r[6]:null,null===n)return ke;if(i++,r=r[15],-1!==n.injectorIndex)return n.injectorIndex|i<<16}return ke}function Ye(t,e,i){!function(t,e,i){let n;"string"==typeof i?n=i.charCodeAt(0)||0:i.hasOwnProperty(J)&&(n=i[J]),null==n&&(n=i[J]=Be++);const r=255&n;e.data[t+(r>>5)]|=1<=0?255&e:We:e}(i);if("function"==typeof s){if(!ce(e,t,n))return n&L.Host?Ge(r,i,n):je(e,i,n,r);try{const t=s(n);if(null!=t||n&L.Optional)return t;v(i)}finally{fe()}}else if("number"==typeof s){let r=null,o=ze(t,e),a=ke,l=n&L.Host?e[16][6]:null;for((-1===o||n&L.SkipSelf)&&(a=-1===o?He(t,e):e[o+8],a!==ke&&ti(n,!1)?(r=e[1],o=Ne(a),e=Pe(a,e)):o=-1);-1!==o;){const t=e[1];if($e(s,o,t.data)){const t=Je(o,e,i,r,n,l);if(t!==Qe)return t}a=e[o+8],a!==ke&&ti(n,e[1].data[o+8]===l)&&$e(s,o,e)?(r=t,o=Ne(a),e=Pe(a,e)):o=-1}}}return je(e,i,n,r)}const Qe={};function We(){return new ei(jt(),Ht())}function Je(t,e,i,n,r,s){const o=e[1],a=o.data[t+8],l=Xe(a,o,i,null==n?ft(a)&&Fe:n!=o&&0!=(3&a.type),r&L.Host&&s===a);return null!==l?Ke(e,o,l,a):Qe}function Xe(t,e,i,n,r){const s=t.providerIndexes,o=e.data,a=1048575&s,l=t.directiveStart,c=s>>20,h=r?a+c:t.directiveEnd;for(let u=n?a:a+c;u=l&&t.type===i)return u}if(r){const t=o[l];if(t&>(t)&&t.type===i)return l}return null}function Ke(t,e,i,n){let r=t[i];const s=e.data;if(r instanceof Te){const o=r;o.resolving&&function(t,e){throw new g("200",`Circular dependency in DI detected for ${t}`)}(b(s[i]));const a=Ze(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?O(o.injectImpl):null;ce(t,n,L.Default);try{r=t[i]=o.factory(void 0,s,t,n),e.firstCreatePass&&i>=n.directiveStart&&function(t,e,i){const{ngOnChanges:n,ngOnInit:r,ngDoCheck:s}=e.type.prototype;if(n){const n=_t(e);(i.preOrderHooks||(i.preOrderHooks=[])).push(t,n),(i.preOrderCheckHooks||(i.preOrderCheckHooks=[])).push(t,n)}r&&(i.preOrderHooks||(i.preOrderHooks=[])).push(0-t,r),s&&((i.preOrderHooks||(i.preOrderHooks=[])).push(t,s),(i.preOrderCheckHooks||(i.preOrderCheckHooks=[])).push(t,s))}(i,s[i],e)}finally{null!==l&&O(l),Ze(a),o.resolving=!1,fe()}}return r}function $e(t,e,i){return!!(i[e+(t>>5)]&1<{const e=t.prototype.constructor,i=e[W]||ni(e),n=Object.prototype;let r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==n;){const t=r[W]||ni(r);if(t&&t!==i)return t;r=Object.getPrototypeOf(r)}return t=>new t})}function ni(t){return m(t)?()=>{const e=ni(f(t));return e&&e()}:yt(t)}function ri(t){return function(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;const i=t.attrs;if(i){const t=i.length;let n=0;for(;n{const n=function(t){return function(...e){if(t){const i=t(...e);for(const t in i)this[t]=i[t]}}}(e);function r(...t){if(this instanceof r)return n.apply(this,t),this;const e=new r(...t);return i.annotation=e,i;function i(t,i,n){const r=t.hasOwnProperty(si)?t[si]:Object.defineProperty(t,si,{value:[]})[si];for(;r.length<=n;)r.push(null);return(r[n]=r[n]||[]).push(e),t}}return i&&(r.prototype=Object.create(i.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r})}class ai{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=_({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const li=new ai("AnalyzeForEntryComponents"),ci=Function;function hi(t,e){void 0===e&&(e=t);for(let i=0;iArray.isArray(t)?ui(t,e):e(t))}function di(t,e,i){e>=t.length?t.push(i):t.splice(e,0,i)}function pi(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function fi(t,e){const i=[];for(let n=0;n=0?t[1|n]=i:(n=~n,function(t,e,i,n){let r=t.length;if(r==e)t.push(i,n);else if(1===r)t.push(n,t[0]),t[0]=i;else{for(r--,t.push(t[r-1],t[r]);r>e;)t[r]=t[r-2],r--;t[e]=i,t[e+1]=n}}(t,n,e,i)),n}function gi(t,e){const i=yi(t,e);if(i>=0)return t[1|i]}function yi(t,e){return function(t,e,i){let n=0,r=t.length>>1;for(;r!==n;){const i=n+(r-n>>1),s=t[i<<1];if(e===s)return i<<1;s>e?r=i:n=i+1}return~(r<<1)}(t,e)}const bi={},vi=/\n/gm,_i="__source",wi=l({provide:String,useValue:l});let xi;function Ci(t){const e=xi;return xi=t,e}function Ai(t,e=L.Default){if(void 0===xi)throw new Error("inject() must be called from an injection context");return null===xi?D(t,void 0,e):xi.get(t,e&L.Optional?null:void 0,e)}function Si(t,e=L.Default){return(I||Ai)(f(t),e)}const Ei=Si;function ki(t){const e=[];for(let i=0;i({token:t})),-1),Li=Ti(oi("Optional"),8),Ii=Ti(oi("Self"),2),Oi=Ti(oi("SkipSelf"),4);let Di,Ri;function Ni(t){var e;return(null===(e=function(){if(void 0===Di&&(Di=null,q.trustedTypes))try{Di=q.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(e){}return Di}())||void 0===e?void 0:e.createHTML(t))||t}function Pi(t){var e;return(null===(e=function(){if(void 0===Ri&&(Ri=null,q.trustedTypes))try{Ri=q.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(e){}return Ri}())||void 0===e?void 0:e.createHTML(t))||t}class Fi{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Zi extends Fi{getTypeName(){return"HTML"}}class Bi extends Fi{getTypeName(){return"Style"}}class Ui extends Fi{getTypeName(){return"Script"}}class qi extends Fi{getTypeName(){return"URL"}}class zi extends Fi{getTypeName(){return"ResourceURL"}}function Hi(t){return t instanceof Fi?t.changingThisBreaksApplicationSecurity:t}function Yi(t,e){const i=Gi(t);if(null!=i&&i!==e){if("ResourceURL"===i&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${i} (see https://g.co/ng/security#xss)`)}return i===e}function Gi(t){return t instanceof Fi&&t.getTypeName()||null}function ji(t){return new Zi(t)}function Vi(t){return new Bi(t)}function Qi(t){return new Ui(t)}function Wi(t){return new qi(t)}function Ji(t){return new zi(t)}class Xi{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(Ni(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class Ki{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const e=this.inertDocument.createElement("body");t.appendChild(e)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=Ni(t),e;const i=this.inertDocument.createElement("body");return i.innerHTML=Ni(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const e=t.attributes;for(let n=e.length-1;0en(t.trim())).join(", ")),this.buf.push(" ",e,'="',yn(o),'"')}var n;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();cn.hasOwnProperty(e)&&!sn.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(yn(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const mn=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,gn=/([^\#-~ |!])/g;function yn(t){return t.replace(/&/g,"&").replace(mn,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(gn,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let bn;function vn(t,e){let i=null;try{bn=bn||function(t){const e=new Ki(t);return function(){try{return!!(new window.DOMParser).parseFromString(Ni(""),"text/html")}catch(t){return!1}}()?new Xi(e):e}(t);let n=e?String(e):"";i=bn.getInertBodyElement(n);let r=5,s=n;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,n=s,s=i.innerHTML,i=bn.getInertBodyElement(n)}while(n!==s);return Ni((new fn).sanitizeChildren(_n(i)||i))}finally{if(i){const t=_n(i)||i;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function _n(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var wn=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({});function xn(t){const e=An();return e?Pi(e.sanitize(wn.HTML,t)||""):Yi(t,"HTML")?Pi(Hi(t)):vn(kt(),y(t))}function Cn(t){const e=An();return e?e.sanitize(wn.URL,t)||"":Yi(t,"URL")?Hi(t):en(y(t))}function An(){const t=Ht();return t&&t[12]}function Sn(t,e){t.__ngContext__=e}function En(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function kn(t){return t.ngDebugContext}function Tn(t){return t.ngOriginalError}function Mn(t,...e){t.error(...e)}class Ln{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),i=this._findContext(t),n=function(t){return t.ngErrorLogger||Mn}(t);n(this._console,"ERROR",t),e&&n(this._console,"ORIGINAL ERROR",e),i&&n(this._console,"ERROR CONTEXT",i)}_findContext(t){return t?kn(t)?kn(t):this._findContext(Tn(t)):null}_findOriginalError(t){let e=Tn(t);for(;e&&Tn(e);)e=Tn(e);return e}}const In=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(q))();function On(t){return t.ownerDocument.defaultView}function Dn(t){return t.ownerDocument.body}function Rn(t){return t instanceof Function?t():t}var Nn=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({});function Pn(t,e){return(void 0)(t,e)}function Fn(t){const e=t[3];return dt(e)?e[3]:e}function Zn(t){return Un(t[13])}function Bn(t){return Un(t[4])}function Un(t){for(;null!==t&&!dt(t);)t=t[4];return t}function qn(t,e,i,n,r){if(null!=n){let s,o=!1;dt(n)?s=n:ut(n)&&(o=!0,n=n[0]);const a=Lt(n);0===t&&null!==i?null==r?Wn(e,i,a):Qn(e,i,a,r||null,!0):1===t&&null!==i?Qn(e,i,a,r||null,!0):2===t?function(t,e,i){const n=Xn(t,e);n&&function(t,e,i,n){Tt(t)?t.removeChild(e,i,n):e.removeChild(i)}(t,n,e,i)}(e,a,o):3===t&&e.destroyNode(a),null!=s&&function(t,e,i,n,r){const s=i[7];s!==Lt(i)&&qn(e,t,n,s,r);for(let o=ht;o0&&(t[i-1][4]=n[4]);const o=pi(t,ht+e);sr(n[1],r=n,r[11],2,null,null),r[0]=null,r[6]=null;const a=o[19];null!==a&&a.detachView(o[1]),n[3]=null,n[4]=null,n[2]&=-129}var r;return n}function Gn(t,e){if(!(256&e[2])){const i=e[11];Tt(i)&&i.destroyNode&&sr(t,e,i,3,null,null),function(t){let e=t[13];if(!e)return jn(t[1],t);for(;e;){let i=null;if(ut(e))i=e[13];else{const t=e[10];t&&(i=t)}if(!i){for(;e&&!e[4]&&e!==t;)ut(e)&&jn(e[1],e),e=e[3];null===e&&(e=t),ut(e)&&jn(e[1],e),i=e&&e[4]}e=i}}(e)}}function jn(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let i;if(null!=t&&null!=(i=t.destroyHooks))for(let n=0;n=0?n[r=l]():n[r=-l].unsubscribe(),s+=2}else{const t=n[r=i[s+1]];i[s].call(t)}if(null!==n){for(let t=r+1;ts?"":r[h+1].toLowerCase();const e=8&n?t:null;if(e&&-1!==cr(e,c,0)||2&n&&c!==t){if(mr(n))return!1;o=!0}}}}else{if(!o&&!mr(n)&&!mr(l))return!1;if(o&&mr(l))continue;o=!1,n=l|1&n}}return mr(n)||o}function mr(t){return 0==(1&t)}function gr(t,e,i,n){if(null===e)return-1;let r=0;if(n||!i){let i=!1;for(;r-1)for(i++;i0?'="'+e+'"':"")+"]"}else 8&n?r+="."+o:4&n&&(r+=" "+o);else""===r||mr(o)||(e+=vr(s,r),r=""),n=o,s=s||!mr(n);i++}return""!==r&&(e+=vr(s,r)),e}const wr={};function xr(t){Cr(Yt(),Ht(),ge()+t,Xt())}function Cr(t,e,i,n){if(!n)if(3==(3&e[2])){const n=t.preOrderCheckHooks;null!==n&&xe(e,n,i)}else{const n=t.preOrderHooks;null!==n&&Ce(e,n,0,i)}ye(i)}function Ar(t,e){return t<<17|e<<2}function Sr(t){return t>>17&32767}function Er(t){return 2|t}function kr(t){return(131068&t)>>2}function Tr(t,e){return-131069&t|e<<2}function Mr(t){return 1|t}function Lr(t,e){const i=t.contentQueries;if(null!==i)for(let n=0;nct&&Cr(t,e,ct,Xt()),i(n,r)}finally{ye(s)}}function Zr(t,e,i){if(pt(e)){const n=e.directiveEnd;for(let r=e.directiveStart;r0;){const i=t[--e];if("number"==typeof i&&i<0)return i}return 0})(i)!=s&&i.push(s),i.push(n,r,o)}}function Qr(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function Wr(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function Jr(t,e,i){if(i){if(e.exportAs)for(let n=0;n0&&rs(i)}}function rs(t){for(let i=Zn(t);null!==i;i=Bn(i))for(let t=ht;t0&&rs(e)}const e=t[1].components;if(null!==e)for(let i=0;i0&&rs(n)}}function ss(t,e){const i=Nt(e,t),n=i[1];!function(t,e){for(let i=e.length;iPromise.resolve(null))();function ds(t){return t[7]||(t[7]=[])}function ps(t){return t.cleanup||(t.cleanup=[])}function fs(t,e,i){return(null===t||gt(t))&&(i=function(t){for(;Array.isArray(t);){if("object"==typeof t[1])return t;t=t[0]}return null}(i[e.index])),i[11]}function ms(t,e){const i=t[9],n=i?i.get(Ln,null):null;n&&n.handleError(e)}function gs(t,e,i,n,r){for(let s=0;sthis.processProvider(i,t,e)),ui([t],t=>this.processInjectorType(t,[],r)),this.records.set(vs,Ls(void 0,this));const s=this.records.get(ws);this.scope=null!=s?s.value:null,this.source=n||("object"==typeof t?null:h(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=bi,i=L.Default){this.assertNotDestroyed();const n=Ci(this);try{if(!(i&L.SkipSelf)){let e=this.records.get(t);if(void 0===e){const i=("function"==typeof(r=t)||"object"==typeof r&&r instanceof ai)&&C(t);e=i&&this.injectableDefInScope(i)?Ls(Ts(t),xs):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(i&L.Self?Ss():this.parent).get(t,e=i&L.Optional&&e===bi?null:e)}catch(s){if("NullInjectorError"===s.name){if((s.ngTempTokenPath=s.ngTempTokenPath||[]).unshift(h(t)),n)throw s;return function(t,e,i,n){const r=t.ngTempTokenPath;throw e[_i]&&r.unshift(e[_i]),t.message=function(t,e,i,n=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let r=h(e);if(Array.isArray(e))r=e.map(h).join(" -> ");else if("object"==typeof e){let t=[];for(let i in e)if(e.hasOwnProperty(i)){let n=e[i];t.push(i+":"+("string"==typeof n?JSON.stringify(n):h(n)))}r=`{${t.join(", ")}}`}return`${i}${n?"("+n+")":""}[${r}]: ${t.replace(vi,"\n ")}`}("\n"+t.message,r,i,n),t.ngTokenPath=r,t.ngTempTokenPath=null,t}(s,t,"R3InjectorError",this.source)}throw s}finally{Ci(n)}var r}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,i)=>t.push(h(i))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,i){if(!(t=f(t)))return!1;let n=S(t);const r=null==n&&t.ngModule||void 0,s=void 0===r?t:r,o=-1!==i.indexOf(s);if(void 0!==r&&(n=S(r)),null==n)return!1;if(null!=n.imports&&!o){let t;i.push(s);try{ui(n.imports,n=>{this.processInjectorType(n,e,i)&&(void 0===t&&(t=[]),t.push(n))})}finally{}if(void 0!==t)for(let e=0;ethis.processProvider(t,i,n||H))}}this.injectorDefTypes.add(s);const a=yt(s)||(()=>new s);this.records.set(s,Ls(a,xs));const l=n.providers;if(null!=l&&!o){const e=t;ui(l,t=>this.processProvider(t,e,l))}return void 0!==r&&void 0!==t.providers}processProvider(t,e,i){let n=Os(t=f(t))?t:f(t&&t.provide);const r=function(t,e,i){return Is(t)?Ls(void 0,t.useValue):Ls(Ms(t),xs)}(t);if(Os(t)||!0!==t.multi)this.records.get(n);else{let e=this.records.get(n);e||(e=Ls(void 0,xs,!0),e.factory=()=>ki(e.multi),this.records.set(n,e)),n=t,e.multi.push(t)}this.records.set(n,r)}hydrate(t,e){var i;return e.value===xs&&(e.value=Cs,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(i=e.value)&&"object"==typeof i&&"function"==typeof i.ngOnDestroy&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=f(t.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function Ts(t){const e=C(t),i=null!==e?e.factory:yt(t);if(null!==i)return i;if(t instanceof ai)throw new Error(`Token ${h(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const i=fi(e,"?");throw new Error(`Can't resolve all parameters for ${h(t)}: (${i.join(", ")}).`)}const i=function(t){const e=t&&(t[E]||t[T]);if(e){const i=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${i}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${i}" class.`),e}return null}(t);return null!==i?()=>i.factory(t):()=>new t}(t);throw new Error("unreachable")}function Ms(t,e,i){let n;if(Os(t)){const e=f(t);return yt(e)||Ts(e)}if(Is(t))n=()=>f(t.useValue);else if((r=t)&&r.useFactory)n=()=>t.useFactory(...ki(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))n=()=>Si(f(t.useExisting));else{const e=f(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return yt(e)||Ts(e);n=()=>new e(...ki(t.deps))}var r;return n}function Ls(t,e,i=!1){return{factory:t,value:e,multi:i?[]:void 0}}function Is(t){return null!==t&&"object"==typeof t&&wi in t}function Os(t){return"function"==typeof t}const Ds=function(t,e,i){return function(t,e=null,i=null,n){const r=Es(t,e,i,n);return r._resolveInjectorDefTypes(),r}({name:i},e,t,i)};let Rs=(()=>{class t{static create(t,e){return Array.isArray(t)?Ds(t,e,""):Ds(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=bi,t.NULL=new _s,t.\u0275prov=_({token:t,providedIn:"any",factory:()=>Si(vs)}),t.__NG_ELEMENT_ID__=-1,t})();function Ns(t,e){we(En(t)[1],jt())}function Ps(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,i=!0;const n=[t];for(;e;){let r;if(gt(t))r=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");r=e.\u0275dir}if(r){if(i){n.push(r);const e=t;e.inputs=Fs(t.inputs),e.declaredInputs=Fs(t.declaredInputs),e.outputs=Fs(t.outputs);const i=r.hostBindings;i&&Us(t,i);const s=r.viewQuery,o=r.contentQueries;if(s&&Zs(t,s),o&&Bs(t,o),c(t.inputs,r.inputs),c(t.declaredInputs,r.declaredInputs),c(t.outputs,r.outputs),gt(r)&&r.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(r.data.animation)}}const e=r.features;if(e)for(let n=0;n=0;n--){const r=t[n];r.hostVars=e+=r.hostVars,r.hostAttrs=Oe(r.hostAttrs,i=Oe(i,r.hostAttrs))}}(n)}function Fs(t){return t===z?{}:t===H?[]:t}function Zs(t,e){const i=t.viewQuery;t.viewQuery=i?(t,n)=>{e(t,n),i(t,n)}:e}function Bs(t,e){const i=t.contentQueries;t.contentQueries=i?(t,n,r)=>{e(t,n,r),i(t,n,r)}:e}function Us(t,e){const i=t.hostBindings;t.hostBindings=i?(t,n)=>{e(t,n),i(t,n)}:e}let qs=null;function zs(){if(!qs){const t=q.Symbol;if(t&&t.iterator)qs=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(Lt(t[n.index])):n.index;if(Tt(i)){let o=null;if(!a&&l&&(o=function(t,e,i,n){const r=t.cleanup;if(null!=r)for(let s=0;si?t[i]:null}"string"==typeof t&&(s+=2)}return null}(t,e,r,n.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=s,o.__ngLastListenerFn__=s,u=!1;else{s=bo(n,e,0,s,!1);const t=i.listen(p,r,s);h.push(s,t),c&&c.push(r,m,f,f+1)}}else s=bo(n,e,0,s,!0),p.addEventListener(r,s,o),h.push(s),c&&c.push(r,m,f,o)}else s=bo(n,e,0,s,!1);const d=n.outputs;let p;if(u&&null!==d&&(p=d[r])){const t=p.length;if(t)for(let i=0;i0;)e=e[15],t--;return e}(t,qt.lFrame.contextLView))[8]}(t)}function _o(t,e){let i=null;const n=function(t){const e=t.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(t);for(let r=0;r=0}const ko={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function To(t){return t.substring(ko.key,ko.keyEnd)}function Mo(t,e){const i=ko.textEnd;return i===e?-1:(e=ko.keyEnd=function(t,e,i){for(;e32;)e++;return e}(t,ko.key=e,i),Lo(t,e,i))}function Lo(t,e,i){for(;e=0;i=Mo(e,i))mi(t,To(e),!0)}function No(t,e,i,n){const r=Ht(),s=Yt(),o=ie(2);s.firstUpdatePass&&Zo(s,t,o,n),e!==wr&&Vs(r,o,e)&&qo(s,s.data[ge()],r,r[11],t,r[o+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=h(Hi(t)))),t}(e,i),n,o)}function Po(t,e,i,n){const r=Yt(),s=ie(2);r.firstUpdatePass&&Zo(r,null,s,n);const o=Ht();if(i!==wr&&Vs(o,s,i)){const a=r.data[ge()];if(Yo(a,n)&&!Fo(r,s)){let t=n?a.classesWithoutHost:a.stylesWithoutHost;null!==t&&(i=u(t,i||"")),io(r,a,o,i,n)}else!function(t,e,i,n,r,s,o,a){r===wr&&(r=H);let l=0,c=0,h=0=t.expandoStartIndex}function Zo(t,e,i,n){const r=t.data;if(null===r[i+1]){const s=r[ge()],o=Fo(t,i);Yo(s,n)&&null===e&&!o&&(e=!1),e=function(t,e,i,n){const r=se(t);let s=n?e.residualClasses:e.residualStyles;if(null===r)0===(n?e.classBindings:e.styleBindings)&&(i=Uo(i=Bo(null,t,e,i,n),e.attrs,n),s=null);else{const o=e.directiveStylingLast;if(-1===o||t[o]!==r)if(i=Bo(r,t,e,i,n),null===s){let i=function(t,e,i){const n=i?e.classBindings:e.styleBindings;if(0!==kr(n))return t[Sr(n)]}(t,e,n);void 0!==i&&Array.isArray(i)&&(i=Bo(null,t,e,i[1],n),i=Uo(i,e.attrs,n),function(t,e,i,n){t[Sr(i?e.classBindings:e.styleBindings)]=n}(t,e,n,i))}else s=function(t,e,i){let n;const r=e.directiveEnd;for(let s=1+e.directiveStylingLast;s0)&&(h=!0)}else c=i;if(r)if(0!==l){const e=Sr(t[a+1]);t[n+1]=Ar(e,a),0!==e&&(t[e+1]=Tr(t[e+1],n)),t[a+1]=131071&t[a+1]|n<<17}else t[n+1]=Ar(a,0),0!==a&&(t[a+1]=Tr(t[a+1],n)),a=n;else t[n+1]=Ar(l,0),0===a?a=n:t[l+1]=Tr(t[l+1],n),l=n;h&&(t[n+1]=Er(t[n+1])),So(t,c,n,!0),So(t,c,n,!1),function(t,e,i,n,r){const s=r?t.residualClasses:t.residualStyles;null!=s&&"string"==typeof e&&yi(s,e)>=0&&(i[n+1]=Mr(i[n+1]))}(e,c,t,n,s),o=Ar(a,l),s?e.classBindings=o:e.styleBindings=o}(r,s,e,i,o,n)}}function Bo(t,e,i,n,r){let s=null;const o=i.directiveEnd;let a=i.directiveStylingLast;for(-1===a?a=i.directiveStart:a++;a0;){const e=t[r],s=Array.isArray(e),l=s?e[1]:e,c=null===l;let h=i[r+1];h===wr&&(h=c?H:void 0);let u=c?gi(h,n):l===n?h:void 0;if(s&&!Ho(u)&&(u=gi(e,n)),Ho(u)&&(a=u,o))return a;const d=t[r+1];r=o?Sr(d):kr(d)}if(null!==e){let t=s?e.residualClasses:e.residualStyles;null!=t&&(a=gi(t,n))}return a}function Ho(t){return void 0!==t}function Yo(t,e){return 0!=(t.flags&(e?16:32))}function Go(t,e=""){const i=Ht(),n=Yt(),r=t+ct,s=n.firstCreatePass?Or(n,r,1,e,null):n.data[r],o=i[r]=function(t,e){return Tt(t)?t.createText(e):t.createTextNode(e)}(i[11],e);tr(n,i,o,s),Qt(s,!1)}function jo(t){return Vo("",t,""),jo}function Vo(t,e,i){const n=Ht(),r=Js(n,t,e,i);return r!==wr&&ys(n,ge(),r),Vo}function Qo(t,e,i,n,r){const s=Ht(),o=function(t,e,i,n,r,s){const o=Qs(t,te(),i,r);return ie(2),o?e+y(i)+n+y(r)+s:wr}(s,t,e,i,n,r);return o!==wr&&ys(s,ge(),o),Qo}function Wo(t,e,i,n,r,s,o,a,l){const c=Ht(),h=function(t,e,i,n,r,s,o,a,l,c){const h=function(t,e,i,n,r,s){const o=Qs(t,e,i,n);return Qs(t,e+2,r,s)||o}(t,te(),i,r,o,l);return ie(4),h?e+y(i)+n+y(r)+s+y(o)+a+y(l)+c:wr}(c,t,e,i,n,r,s,o,a,l);return h!==wr&&ys(c,ge(),h),Wo}function Jo(t,e,i){Po(mi,Ro,Js(Ht(),t,e,i),!0)}function Xo(t,e,i){const n=Ht();return Vs(n,ee(),e)&&Gr(Yt(),be(),n,t,e,n[11],i,!0),Xo}function Ko(t,e,i){const n=Ht();if(Vs(n,ee(),e)){const r=Yt(),s=be();Gr(r,s,n,t,e,fs(se(r.data),s,n),i,!0)}return Ko}const $o=void 0;var ta=["en",[["a","p"],["AM","PM"],$o],[["AM","PM"],$o,$o],[["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"]],$o,[["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"]],$o,[["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}",$o,"{1} 'at' {0}",$o],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){let e=Math.floor(Math.abs(t)),i=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===i?1:5}];let ea={};function ia(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let i=ra(e);if(i)return i;const n=e.split("-")[0];if(i=ra(n),i)return i;if("en"===n)return ta;throw new Error(`Missing locale data for the locale "${t}".`)}function na(t){return ia(t)[sa.PluralCase]}function ra(t){return t in ea||(ea[t]=q.ng&&q.ng.common&&q.ng.common.locales&&q.ng.common.locales[t]),ea[t]}var sa=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}({});const oa="en-US";let aa=oa;function la(t){var e,i;i="Expected localeId to be defined",null==(e=t)&&function(t,e,i,n){throw new Error(`ASSERTION ERROR: ${t} [Expected=> null != ${e} <=Actual]`)}(i,e),"string"==typeof t&&(aa=t.toLowerCase().replace(/_/g,"-"))}function ca(t,e,i,n,r){if(t=f(t),Array.isArray(t))for(let s=0;s>20;if(Os(t)||!t.multi){const n=new Te(l,r,$s),p=da(a,e,r?h:h+d,u);-1===p?(Ye(Ue(c,o),s,a),ha(s,t,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),i.push(n),o.push(n)):(i[p]=n,o[p]=n)}else{const p=da(a,e,h+d,u),f=da(a,e,h,h+d),m=p>=0&&i[p],g=f>=0&&i[f];if(r&&!g||!r&&!m){Ye(Ue(c,o),s,a);const h=function(t,e,i,n,r){const s=new Te(t,i,$s);return s.multi=[],s.index=e,s.componentProviders=0,ua(s,r,n&&!i),s}(r?fa:pa,i.length,r,n,l);!r&&g&&(i[f].providerFactory=h),ha(s,t,e.length,0),e.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),i.push(h),o.push(h)}else ha(s,t,p>-1?p:f,ua(i[r?f:p],l,!r&&n));!r&&n&&g&&i[f].componentProviders++}}}function ha(t,e,i,n){const r=Os(e);if(r||e.useClass){const s=(e.useClass||e).prototype.ngOnDestroy;if(s){const o=t.destroyHooks||(t.destroyHooks=[]);if(!r&&e.multi){const t=o.indexOf(i);-1===t?o.push(i,[n,s]):o[t+1].push(n,s)}else o.push(i,s)}}}function ua(t,e,i){return i&&t.componentProviders++,t.multi.push(e)-1}function da(t,e,i,n){for(let r=i;r{i.providersResolver=(i,n)=>function(t,e,i){const n=Yt();if(n.firstCreatePass){const r=gt(t);ca(i,n.data,n.blueprint,r,!0),ca(e,n.data,n.blueprint,r,!1)}}(i,n?n(t):t,e)}}class ya{}class ba{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${h(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let va=(()=>{class t{}return t.NULL=new ba,t})();function _a(...t){}function wa(t,e){return new Ca(Ot(t,e))}const xa=function(){return wa(jt(),Ht())};let Ca=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=xa,t})();function Aa(t){return t instanceof Ca?t.nativeElement:t}class Sa{}let Ea=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>ka(),t})();const ka=function(){const t=Ht(),e=Nt(jt().index,t);return function(t){return t[11]}(ut(e)?e:t)};let Ta=(()=>{class t{}return t.\u0275prov=_({token:t,providedIn:"root",factory:()=>null}),t})();class Ma{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const La=new Ma("12.0.5");class Ia{constructor(){}supports(t){return Ys(t)}create(t){return new Da(t)}}const Oa=(t,e)=>e;class Da{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||Oa}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,i=this._removalsHead,n=0,r=null;for(;e||i;){const s=!i||e&&e.currentIndex{n=this._trackByFn(e,t),null!==r&&Object.is(r.trackById,n)?(s&&(r=this._verifyReinsertion(r,t,n,e)),Object.is(r.item,t)||this._addIdentityChange(r,t)):(r=this._mismatch(r,t,n,e),s=!0),r=r._next,e++}),this.length=e;return this._truncate(r),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,i,n){let r;return null===t?r=this._itTail:(r=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,r,n)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,n))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,r,n)):t=this._addAfter(new Ra(e,i),r,n),t}_verifyReinsertion(t,e,i,n){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==r?t=this._reinsertAfter(r,t._prev,n):t.currentIndex!=n&&(t.currentIndex=n,this._addToMoves(t,n)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}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,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const n=t._prevRemoved,r=t._nextRemoved;return null===n?this._removalsHead=r:n._nextRemoved=r,null===r?this._removalsTail=n:r._prevRemoved=n,this._insertAfter(t,e,i),this._addToMoves(t,i),t}_moveAfter(t,e,i){return this._unlink(t),this._insertAfter(t,e,i),this._addToMoves(t,i),t}_addAfter(t,e,i){return this._insertAfter(t,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,i){const n=null===e?this._itHead:e._next;return t._next=n,t._prev=e,null===n?this._itTail=t:n._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Pa),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,i=t._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Pa),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,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class Ra{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Na{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const e=t._prevDup,i=t._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class Pa{constructor(){this.map=new Map}put(t){const e=t.trackById;let i=this.map.get(e);i||(i=new Na,this.map.set(e,i)),i.add(t)}get(t,e){const i=this.map.get(t);return i?i.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Fa(t,e,i){const n=t.previousIndex;if(null===n)return n;let r=0;return i&&n{if(e&&e.key===i)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const n=this._getOrCreateRecordForKey(i,t);e=this._insertBeforeOrAppend(e,n)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const i=t._prev;return e._next=t,e._prev=i,t._prev=e,i&&(i._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const i=this._records.get(t);this._maybeAddToChanges(i,e);const n=i._prev,r=i._next;return n&&(n._next=r),r&&(r._prev=n),i._next=null,i._prev=null,i}const i=new Ua(t);return this._records.set(t,i),i.currentValue=e,this._addToAdditions(i),i}_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,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,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,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(i=>e(t[i],i))}}class Ua{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function qa(){return new za([new Ia])}let za=(()=>{class t{constructor(t){this.factories=t}static create(e,i){if(null!=i){const t=i.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||qa()),deps:[[t,new Oi,new Li]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${i=t,i.name||typeof i}'`);var i}}return t.\u0275prov=_({token:t,providedIn:"root",factory:qa}),t})();function Ha(){return new Ya([new Za])}let Ya=(()=>{class t{constructor(t){this.factories=t}static create(e,i){if(i){const t=i.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||Ha()),deps:[[t,new Oi,new Li]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=_({token:t,providedIn:"root",factory:Ha}),t})();function Ga(t,e,i,n,r=!1){for(;null!==i;){const s=e[i.index];if(null!==s&&n.push(Lt(s)),dt(s))for(let t=ht;t-1&&(Yn(t,i),pi(e,i))}this._attachedToViewContainer=!1}Gn(this._lView[1],this._lView)}onDestroy(t){Hr(this._lView[1],this._lView,null,t)}markForCheck(){as(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){ls(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,i){Kt(!0);try{ls(t,e,i)}finally{Kt(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var t;this._appRef=null,sr(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class Va extends ja{constructor(t){super(t),this._view=t}detectChanges(){cs(this._view)}checkNoChanges(){!function(t){Kt(!0);try{cs(t)}finally{Kt(!1)}}(this._view)}get context(){return null}}const Qa=function(t){return function(t,e,i){if(ft(t)&&!i){const i=Nt(t.index,e);return new ja(i,i)}return 47&t.type?new ja(e[16],e):null}(jt(),Ht(),16==(16&t))};let Wa=(()=>{class t{}return t.__NG_ELEMENT_ID__=Qa,t})();const Ja=[new Za],Xa=new za([new Ia]),Ka=new Ya(Ja),$a=function(){return nl(jt(),Ht())};let tl=(()=>{class t{}return t.__NG_ELEMENT_ID__=$a,t})();const el=tl,il=class extends el{constructor(t,e,i){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(t){const e=this._declarationTContainer.tViews,i=Ir(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const n=this._declarationLView[19];return null!==n&&(i[19]=n.createEmbeddedView(e)),Rr(e,i,t),new ja(i)}};function nl(t,e){return 4&t.type?new il(e,t,wa(t,e)):null}class rl{}class sl{}const ol=function(){return dl(jt(),Ht())};let al=(()=>{class t{}return t.__NG_ELEMENT_ID__=ol,t})();const ll=al,cl=class extends ll{constructor(t,e,i){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=i}get element(){return wa(this._hostTNode,this._hostLView)}get injector(){return new ei(this._hostTNode,this._hostLView)}get parentInjector(){const t=He(this._hostTNode,this._hostLView);if(Re(t)){const e=Pe(t,this._hostLView),i=Ne(t);return new ei(e[1].data[i+8],e)}return new ei(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=hl(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-ht}createEmbeddedView(t,e,i){const n=t.createEmbeddedView(e||{});return this.insert(n,i),n}createComponent(t,e,i,n,r){const s=i||this.parentInjector;if(!r&&null==t.ngModule&&s){const t=s.get(rl,null);t&&(r=t)}const o=t.create(s,n,void 0,r);return this.insert(o.hostView,e),o}insert(t,e){const i=t._lView,n=i[1];if(dt(i[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=i[3],n=new cl(e,e[6],e[3]);n.detach(n.indexOf(t))}}const r=this._adjustIndex(e),s=this._lContainer;!function(t,e,i,n){const r=ht+n,s=i.length;n>0&&(i[r-1][4]=e),nIn});class yl extends ya{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(_r).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return ml(this.componentDef.inputs)}get outputs(){return ml(this.componentDef.outputs)}create(t,e,i,n){const r=(n=n||this.ngModule)?function(t,e){return{get:(i,n,r)=>{const s=t.get(i,pl,r);return s!==pl||n===pl?s:e.get(i,n,r)}}}(t,n.injector):t,s=r.get(Sa,Mt),o=r.get(Ta,null),a=s.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=i?function(t,e,i){if(Tt(t))return t.selectRootElement(e,i===P.ShadowDom);let n="string"==typeof e?t.querySelector(e):e;return n.textContent="",n}(a,i,this.componentDef.encapsulation):zn(s.createRenderer(null,this.componentDef),l,function(t){const e=t.toLowerCase();return"svg"===e?At:"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),h=this.componentDef.onPush?576:528,u={components:[],scheduler:In,clean:us,playerHandler:null,flags:0},d=zr(0,null,null,1,0,null,null,null,null,null),p=Ir(null,d,u,h,null,null,s,a,o,r);let f,m;he(p);try{const t=function(t,e,i,n,r,s){const o=i[1];i[20]=t;const a=Or(o,20,2,"#host",null),l=a.mergedAttrs=e.hostAttrs;null!==l&&(bs(a,l,!0),null!==t&&(Me(r,t,l),null!==a.classes&&lr(r,t,a.classes),null!==a.styles&&ar(r,t,a.styles)));const c=n.createRenderer(t,e),h=Ir(i,qr(e),null,e.onPush?64:16,i[20],a,n,c,null,null);return o.firstCreatePass&&(Ye(Ue(a,i),o,e.type),Wr(o,a),Xr(a,i.length,1)),os(i,h),i[20]=h}(c,this.componentDef,p,s,a);if(c)if(i)Me(a,c,["ng-version",La.full]);else{const{attrs:t,classes:e}=function(t){const e=[],i=[];let n=1,r=2;for(;n0&&lr(a,c,e.join(" "))}if(m=Dt(d,ct),void 0!==e){const t=m.projection=[];for(let i=0;it(o,e)),e.contentQueries){const t=jt();e.contentQueries(1,o,t.directiveStart)}const a=jt();return!s.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(ye(a.index),Vr(i[1],a,0,a.directiveStart,a.directiveEnd,e),Qr(e,o)),o}(t,this.componentDef,p,u,[Ns]),Rr(d,p,null)}finally{me()}return new bl(this.componentType,f,wa(m,p),p,m)}}class bl extends class{}{constructor(t,e,i,n,r){super(),this.location=i,this._rootLView=n,this._tNode=r,this.instance=e,this.hostView=this.changeDetectorRef=new Va(n),this.componentType=t}get injector(){return new ei(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const vl=new Map;class _l extends rl{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new fl(this);const i=lt(t),n=t[Q]||null;n&&la(n),this._bootstrapComponents=Rn(i.bootstrap),this._r3Injector=Es(t,e,[{provide:rl,useValue:this},{provide:va,useValue:this.componentFactoryResolver}],h(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=Rs.THROW_IF_NOT_FOUND,i=L.Default){return t===Rs||t===rl||t===vs?this:this._r3Injector.get(t,e,i)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class wl extends sl{constructor(t){super(),this.moduleType=t,null!==lt(t)&&function(t){const e=new Set;!function t(i){const n=lt(i,!0),r=n.id;null!==r&&(function(t,e,i){if(e&&e!==i)throw new Error(`Duplicate module registered for ${t} - ${h(e)} vs ${h(e.name)}`)}(r,vl.get(r),i),vl.set(r,i));const s=Rn(n.imports);for(const o of s)e.has(o)||(e.add(o),t(o))}(t)}(t)}create(t){return new _l(this.moduleType,t)}}function xl(t,e,i){const n=$t()+t,r=Ht();return r[n]===wr?js(r,n,i?e.call(i):e()):function(t,e){return t[e]}(r,n)}function Cl(t,e,i,n){return kl(Ht(),$t(),t,e,i,n)}function Al(t,e,i,n,r){return Tl(Ht(),$t(),t,e,i,n,r)}function Sl(t,e,i,n,r,s){return Ml(Ht(),$t(),t,e,i,n,r,s)}function El(t,e){const i=t[e];return i===wr?void 0:i}function kl(t,e,i,n,r,s){const o=e+i;return Vs(t,o,r)?js(t,o+1,s?n.call(s,r):n(r)):El(t,o+1)}function Tl(t,e,i,n,r,s,o){const a=e+i;return Qs(t,a,r,s)?js(t,a+2,o?n.call(o,r,s):n(r,s)):El(t,a+2)}function Ml(t,e,i,n,r,s,o,a){const l=e+i;return function(t,e,i,n,r){const s=Qs(t,e,i,n);return Vs(t,e+2,r)||s}(t,l,r,s,o)?js(t,l+3,a?n.call(a,r,s,o):n(r,s,o)):El(t,l+3)}function Ll(t,e){const i=Yt();let n;const r=t+ct;i.firstCreatePass?(n=function(t,e){if(e)for(let i=e.length-1;i>=0;i--){const n=e[i];if(t===n.name)return n}throw new g("302",`The pipe '${t}' could not be found!`)}(e,i.pipeRegistry),i.data[r]=n,n.onDestroy&&(i.destroyHooks||(i.destroyHooks=[])).push(r,n.onDestroy)):n=i.data[r];const s=n.factory||(n.factory=yt(n.type)),o=O($s);try{const t=Ze(!1),e=s();return Ze(t),function(t,e,i,n){i>=t.data.length&&(t.data[i]=null,t.blueprint[i]=null),e[i]=n}(i,Ht(),r,e),e}finally{O(o)}}function Il(t,e,i){const n=t+ct,r=Ht(),s=Rt(r,n);return Nl(r,Rl(r,n)?kl(r,$t(),e,s.transform,i,s):s.transform(i))}function Ol(t,e,i,n){const r=t+ct,s=Ht(),o=Rt(s,r);return Nl(s,Rl(s,r)?Tl(s,$t(),e,o.transform,i,n,o):o.transform(i,n))}function Dl(t,e,i,n,r){const s=t+ct,o=Ht(),a=Rt(o,s);return Nl(o,Rl(o,s)?Ml(o,$t(),e,a.transform,i,n,r,a):a.transform(i,n,r))}function Rl(t,e){return t[1].data[e].pure}function Nl(t,e){return Hs.isWrapped(e)&&(e=Hs.unwrap(e),t[te()]=wr),e}function Pl(t){return e=>{setTimeout(t,void 0,e)}}const Fl=class extends n.x{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,i){var n,s,o;let a=t,l=e||(()=>null),c=i;if(t&&"object"==typeof t){const e=t;a=null===(n=e.next)||void 0===n?void 0:n.bind(e),l=null===(s=e.error)||void 0===s?void 0:s.bind(e),c=null===(o=e.complete)||void 0===o?void 0:o.bind(e)}this.__isAsync&&(l=Pl(l),a&&(a=Pl(a)),c&&(c=Pl(c)));const h=super.subscribe({next:a,error:l,complete:c});return t instanceof r.w0&&t.add(h),h}};function Zl(){return this._results[zs()]()}class Bl{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=zs(),i=Bl.prototype;i[e]||(i[e]=Zl)}get changes(){return this._changes||(this._changes=new Fl)}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,e){return this._results.reduce(t,e)}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,e){const i=this;i.dirty=!1;const n=hi(t);(this._changesDetected=!function(t,e,i){if(t.length!==e.length)return!1;for(let n=0;n0)n.push(o[t/2]);else{const r=s[t+1],o=e[-i];for(let t=ht;t{class t{constructor(t){this.appInits=t,this.resolve=_a,this.reject=_a,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let i=0;i{e.subscribe({complete:t,error:i})});t.push(i)}}Promise.all(t).then(()=>{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(Si(nc,8))},t.\u0275prov=_({token:t,factory:t.\u0275fac}),t})();const sc=new ai("AppId"),oc={provide:sc,useFactory:function(){return`${ac()}${ac()}${ac()}`},deps:[]};function ac(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const lc=new ai("Platform Initializer"),cc=new ai("Platform ID"),hc=new ai("appBootstrapListener");let uc=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_({token:t,factory:t.\u0275fac}),t})();const dc=new ai("LocaleId"),pc=new ai("DefaultCurrencyCode");class fc{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const mc=function(t){return new wl(t)},gc=mc,yc=function(t){return Promise.resolve(mc(t))},bc=function(t){const e=mc(t),i=Rn(lt(t).declarations).reduce((t,e)=>{const i=at(e);return i&&t.push(new yl(i)),t},[]);return new fc(e,i)},vc=bc,_c=function(t){return Promise.resolve(bc(t))};let wc=(()=>{class t{constructor(){this.compileModuleSync=gc,this.compileModuleAsync=yc,this.compileModuleAndAllComponentsSync=vc,this.compileModuleAndAllComponentsAsync=_c}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_({token:t,factory:t.\u0275fac}),t})();const xc=(()=>Promise.resolve(0))();function Cc(t){"undefined"==typeof Zone?xc.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class Ac{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Fl(!1),this.onMicrotaskEmpty=new Fl(!1),this.onStable=new Fl(!1),this.onError=new Fl(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const n=this;n._nesting=0,n._outer=n._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(n._inner=n._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(n._inner=n._inner.fork(Zone.longStackTraceZoneSpec)),n.shouldCoalesceEventChangeDetection=!i&&e,n.shouldCoalesceRunChangeDetection=i,n.lastRequestAnimationFrameId=-1,n.nativeRequestAnimationFrame=function(){let t=q.requestAnimationFrame,e=q.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i);const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=()=>{!function(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(q,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,kc(t),t.isCheckStableRunning=!0,Ec(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),kc(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(i,n,r,s,o,a)=>{try{return Tc(t),i.invokeTask(r,s,o,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||t.shouldCoalesceRunChangeDetection)&&e(),Mc(t)}},onInvoke:(i,n,r,s,o,a,l)=>{try{return Tc(t),i.invoke(r,s,o,a,l)}finally{t.shouldCoalesceRunChangeDetection&&e(),Mc(t)}},onHasTask:(e,i,n,r)=>{e.hasTask(n,r),i===n&&("microTask"==r.change?(t._hasPendingMicrotasks=r.microTask,kc(t),Ec(t)):"macroTask"==r.change&&(t.hasPendingMacrotasks=r.macroTask))},onHandleError:(e,i,n,r)=>(e.handleError(n,r),t.runOutsideAngular(()=>t.onError.emit(r)),!1)})}(n)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Ac.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Ac.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,i){return this._inner.run(t,e,i)}runTask(t,e,i,n){const r=this._inner,s=r.scheduleEventTask("NgZoneEvent: "+n,t,Sc,_a,_a);try{return r.runTask(s,e,i)}finally{r.cancelTask(s)}}runGuarded(t,e,i){return this._inner.runGuarded(t,e,i)}runOutsideAngular(t){return this._outer.run(t)}}const Sc={};function Ec(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function kc(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function Tc(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Mc(t){t._nesting--,Ec(t)}class Lc{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Fl,this.onMicrotaskEmpty=new Fl,this.onStable=new Fl,this.onError=new Fl}run(t,e,i){return t.apply(e,i)}runGuarded(t,e,i){return t.apply(e,i)}runOutsideAngular(t){return t()}runTask(t,e,i,n){return t.apply(e,i)}}let Ic=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Ac.assertNotInAngularZone(),Cc(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Cc(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,i){let n=-1;e&&e>0&&(n=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==n),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:n,updateCb:i})}whenStable(t,e,i){if(i&&!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(t,e,i),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,i){return[]}}return t.\u0275fac=function(e){return new(e||t)(Si(Ac))},t.\u0275prov=_({token:t,factory:t.\u0275fac}),t})(),Oc=(()=>{class t{constructor(){this._applications=new Map,Pc.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return Pc.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_({token:t,factory:t.\u0275fac}),t})();class Dc{addToWindow(t){}findTestabilityInTree(t,e,i){return null}}function Rc(t){Pc=t}let Nc,Pc=new Dc,Fc=!0,Zc=!1;function Bc(){return Zc=!0,Fc}function Uc(){if(Zc)throw new Error("Cannot enable prod mode after platform setup.");Fc=!1}const qc=new ai("AllowMultipleToken");class zc{constructor(t,e){this.name=t,this.token=e}}function Hc(t,e,i=[]){const n=`Platform: ${e}`,r=new ai(n);return(e=[])=>{let s=Yc();if(!s||s.injector.get(qc,!1))if(t)t(i.concat(e).concat({provide:r,useValue:!0}));else{const t=i.concat(e).concat({provide:r,useValue:!0},{provide:ws,useValue:"platform"});!function(t){if(Nc&&!Nc.destroyed&&!Nc.injector.get(qc,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Nc=t.get(Gc);const e=t.get(lc,null);e&&e.forEach(t=>t())}(Rs.create({providers:t,name:n}))}return function(t){const e=Yc();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(r)}}function Yc(){return Nc&&!Nc.destroyed?Nc:null}let Gc=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const i=function(t,e){let i;return i="noop"===t?new Lc:("zone.js"===t?void 0:t)||new Ac({enableLongStackTrace:Bc(),shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),i}(e?e.ngZone:void 0,{ngZoneEventCoalescing:e&&e.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:e&&e.ngZoneRunCoalescing||!1}),n=[{provide:Ac,useValue:i}];return i.run(()=>{const e=Rs.create({providers:n,parent:this.injector,name:t.moduleType.name}),r=t.create(e),s=r.injector.get(Ln,null);if(!s)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return i.runOutsideAngular(()=>{const t=i.onError.subscribe({next:t=>{s.handleError(t)}});r.onDestroy(()=>{Qc(this._modules,r),t.unsubscribe()})}),function(t,e,i){try{const n=i();return ho(n)?n.catch(i=>{throw e.runOutsideAngular(()=>t.handleError(i)),i}):n}catch(n){throw e.runOutsideAngular(()=>t.handleError(n)),n}}(s,i,()=>{const t=r.injector.get(rc);return t.runInitializers(),t.donePromise.then(()=>(la(r.injector.get(dc,oa)||oa),this._moduleDoBootstrap(r),r))})})}bootstrapModule(t,e=[]){const i=jc({},e);return function(t,e,i){const n=new wl(i);return Promise.resolve(n)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,i))}_moduleDoBootstrap(t){const e=t.injector.get(Vc);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${h(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(Si(Rs))},t.\u0275prov=_({token:t,factory:t.\u0275fac}),t})();function jc(t,e){return Array.isArray(e)?e.reduce(jc,t):Object.assign(Object.assign({},t),e)}let Vc=(()=>{class t{constructor(t,e,i,n,r){this._zone=t,this._injector=e,this._exceptionHandler=i,this._componentFactoryResolver=n,this._initStatus=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const l=new s.y(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),c=new s.y(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{Ac.assertNotInAngularZone(),Cc(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const i=this._zone.onUnstable.subscribe(()=>{Ac.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),i.unsubscribe()}});this.isStable=(0,o.T)(l,c.pipe((0,a.B)()))}bootstrap(t,e){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let i;i=t instanceof ya?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(i.componentType);const n=i.isBoundToModule?void 0:this._injector.get(rl),r=i.create(Rs.NULL,[],e||i.selector,n),s=r.location.nativeElement,o=r.injector.get(Ic,null),a=o&&r.injector.get(Oc);return o&&a&&a.registerApplication(s,o),r.onDestroy(()=>{this.detachView(r.hostView),Qc(this.components,r),a&&a.unregisterApplication(s)}),this._loadComponent(r),r}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;Qc(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(hc,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(Si(Ac),Si(Rs),Si(Ln),Si(va),Si(rc))},t.\u0275prov=_({token:t,factory:t.\u0275fac}),t})();function Qc(t,e){const i=t.indexOf(e);i>-1&&t.splice(i,1)}class Wc{}class Jc{}const Xc={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let Kc=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||Xc}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,n]=t.split("#");return void 0===n&&(n="default"),i(8255)(e).then(t=>t[n]).then(t=>$c(t,e,n)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,n]=t.split("#"),r="NgFactory";return void 0===n&&(n="default",r=""),i(8255)(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[n+r]).then(t=>$c(t,e,n))}}return t.\u0275fac=function(e){return new(e||t)(Si(wc),Si(Jc,8))},t.\u0275prov=_({token:t,factory:t.\u0275fac}),t})();function $c(t,e,i){if(!t)throw new Error(`Cannot find '${i}' in '${e}'`);return t}const th=function(t){return null},eh=Hc(null,"core",[{provide:cc,useValue:"unknown"},{provide:Gc,deps:[Rs]},{provide:Oc,deps:[]},{provide:uc,deps:[]}]),ih=[{provide:Vc,useClass:Vc,deps:[Ac,Rs,Ln,va,rc]},{provide:gl,deps:[Ac],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:rc,useClass:rc,deps:[[new Li,nc]]},{provide:wc,useClass:wc,deps:[]},oc,{provide:za,useFactory:function(){return Xa},deps:[]},{provide:Ya,useFactory:function(){return Ka},deps:[]},{provide:dc,useFactory:function(t){return la(t=t||"undefined"!=typeof $localize&&$localize.locale||oa),t},deps:[[new Mi(dc),new Li,new Oi]]},{provide:pc,useValue:"USD"}];let nh=(()=>{class t{constructor(t){}}return t.\u0275fac=function(e){return new(e||t)(Si(Vc))},t.\u0275mod=it({type:t}),t.\u0275inj=x({providers:ih}),t})()},1463:(t,e,i)=>{"use strict";i.d(e,{IR:()=>p,g5:()=>g,WU:()=>y,wY:()=>b,Bs:()=>v,iR:()=>A,RK:()=>V,QI:()=>Q,Ot:()=>W,yB:()=>X});var n=i(1572),r=i(1511),s=i(9666),o=i(7425),a=i(2391),l=i(5446),c=i(8868),h=i(343);const u={provide:n.tb,useFactory:function(t,e){return()=>{if((0,r.NF)(e)){const e=Array.from(t.querySelectorAll(`[class*=${d}]`)),i=/\bflex-layout-.+?\b/g;e.forEach(t=>{t.classList.contains(`${d}ssr`)&&t.parentNode?t.parentNode.removeChild(t):t.className.replace(i,"")})}}},deps:[r.K0,n.Lbi],multi:!0},d="flex-layout-";let p=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({providers:[u]}),t})();class f{constructor(t=!1,e="all",i="",n="",r=0){this.matches=t,this.mediaQuery=e,this.mqAlias=i,this.suffix=n,this.priority=r,this.property=""}clone(){return new f(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let m=(()=>{class t{constructor(){this.stylesheet=new Map}addStyleToElement(t,e,i){const n=this.stylesheet.get(t);n?n.set(e,i):this.stylesheet.set(t,new Map([[e,i]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(t,e){const i=this.stylesheet.get(t);let n="";if(i){const t=i.get(e);"number"!=typeof t&&"string"!=typeof t||(n=t+"")}return n}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,n.Yz7)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const g={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[]},y=new n.OlP("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>g}),b=new n.OlP("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),v=new n.OlP("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function _(t,e){return t=t?t.clone():new f,e&&(t.mqAlias=e.alias,t.mediaQuery=e.mediaQuery,t.suffix=e.suffix,t.priority=e.priority),t}const w="inline",x=["row","column","row-reverse","column-reverse"];function C(t){if(t)switch(t.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":t="wrap-reverse";break;case"no":case"none":case"nowrap":t="nowrap";break;default:t="wrap"}return t}let A=(()=>{class t{constructor(t,e,i,n){this.elementRef=t,this.styleBuilder=e,this.styler=i,this.marshal=n,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new s.x,this.styleCache=new Map}get parentElement(){return this.elementRef.nativeElement.parentElement}get nativeElement(){return this.elementRef.nativeElement}get activatedValue(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)}set activatedValue(t){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,t,this.marshal.activatedAlias)}ngOnChanges(t){Object.keys(t).forEach(e=>{if(-1!==this.inputs.indexOf(e)){const i=e.split(".").slice(1).join(".");this.setValue(t[e].currentValue,i)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(t=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),t)}addStyles(t,e){const i=this.styleBuilder,n=i.shouldCache;let r=this.styleCache.get(t);r&&n||(r=i.buildStyles(t,e),n&&this.styleCache.set(t,r)),this.mru=Object.assign({},r),this.applyStyleToElement(r),i.sideEffect(t,r,e)}clearStyles(){Object.keys(this.mru).forEach(t=>{this.mru[t]=""}),this.applyStyleToElement(this.mru),this.mru={}}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(t,e=!1){if(t){const[i,n]=this.styler.getFlowDirection(t);if(!n&&e){const e=function(t){let[e,i,n]=function(t){t=t?t.toLowerCase():"";let[e,i,n]=t.split(" ");return x.find(t=>t===e)||(e=x[0]),i===w&&(i=n!==w?n:"",n=w),[e,C(i),!!n]}(t);return function(t,e=null,i=!1){return{display:i?"inline-flex":"flex","box-sizing":"border-box","flex-direction":t,"flex-wrap":e||null}}(e,i,n)}(i);this.styler.applyStyleToElements(e,[t])}return i.trim()}return"row"}hasWrap(t){return this.styler.hasWrap(t)}applyStyleToElement(t,e,i=this.nativeElement){this.styler.applyStyleToElement(i,t,e)}setValue(t,e){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,t,e)}updateWithValue(t){this.currentValue!==t&&(this.addStyles(t),this.currentValue=t)}}return t.\u0275fac=function(t){n.$Z()},t.\u0275dir=n.lG2({type:t,features:[n.TTD]}),t})();const S=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.98px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.98px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.98px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.98px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.98px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.98px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.98px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.98px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.98px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}],E="(orientation: portrait) and (max-width: 599.98px)",k="(orientation: landscape) and (max-width: 959.98px)",T="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",M="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",L="(orientation: portrait) and (min-width: 840px)",I="(orientation: landscape) and (min-width: 1280px)",O={HANDSET:`${E}, ${k}`,TABLET:`${T} , ${M}`,WEB:`${L}, ${I} `,HANDSET_PORTRAIT:`${E}`,TABLET_PORTRAIT:`${T} `,WEB_PORTRAIT:`${L}`,HANDSET_LANDSCAPE:`${k}`,TABLET_LANDSCAPE:`${M}`,WEB_LANDSCAPE:`${I}`},D=[{alias:"handset",priority:2e3,mediaQuery:O.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:O.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:O.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:O.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:O.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:O.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:O.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:O.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:O.WEB_PORTRAIT,overlapping:!0}],R=/(\.|-|_)/g;function N(t){let e=t.length>0?t.charAt(0):"",i=t.length>1?t.slice(1):"";return e.toUpperCase()+i}const P=new n.OlP("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const t=(0,n.f3M)(v),e=(0,n.f3M)(y),i=[].concat.apply([],(t||[]).map(t=>Array.isArray(t)?t:[t]));return function(t,e=[]){const i={};return t.forEach(t=>{i[t.alias]=t}),e.forEach(t=>{i[t.alias]?function(t,...e){if(null==t)throw TypeError("Cannot convert undefined or null to object");for(let i of e)if(null!=i)for(let e in i)i.hasOwnProperty(e)&&(t[e]=i[e])}(i[t.alias],t):i[t.alias]=t}),(n=Object.keys(i).map(t=>i[t])).forEach(t=>{t.suffix||(t.suffix=t.alias.replace(R,"|").split("|").map(N).join(""),t.overlapping=!!t.overlapping)}),n;var n}((e.disableDefaultBps?[]:S).concat(e.addOrientationBps?D:[]),i)}});function F(t,e){return(e&&e.priority||0)-(t&&t.priority||0)}function Z(t,e){return(t.priority||0)-(e.priority||0)}let B=(()=>{class t{constructor(t){this.findByMap=new Map,this.items=[...t].sort(Z)}findByAlias(t){return t?this.findWithPredicate(t,e=>e.alias==t):null}findByQuery(t){return this.findWithPredicate(t,e=>e.mediaQuery==t)}get overlappings(){return this.items.filter(t=>1==t.overlapping)}get aliases(){return this.items.map(t=>t.alias)}get suffixes(){return this.items.map(t=>t.suffix?t.suffix:"")}findWithPredicate(t,e){let i=this.findByMap.get(t);return i||(i=this.items.find(e)||null,this.findByMap.set(t,i)),i||null}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(P))},t.\u0275prov=(0,n.Yz7)({factory:function(){return new t((0,n.LFG)(P))},token:t,providedIn:"root"}),t})(),U=(()=>{class t{constructor(t,e,i){this._zone=t,this._platformId=e,this._document=i,this.source=new o.X(new f(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const t=[];return this.registry.forEach((e,i)=>{e.matches&&t.push(i)}),t}isActive(t){const e=this.registry.get(t);return e?e.matches:this.registerQuery(t).some(t=>t.matches)}observe(t,e=!1){if(t&&t.length){const i=this._observable$.pipe((0,c.h)(i=>!e||t.indexOf(i.mediaQuery)>-1)),n=new a.y(e=>{const i=this.registerQuery(t);if(i.length){const t=i.pop();i.forEach(t=>{e.next(t)}),this.source.next(t)}e.complete()});return(0,l.T)(n,i)}return this._observable$}registerQuery(t){const e=Array.isArray(t)?t:[t],i=[];return function(t,e){const i=t.filter(t=>!q[t]);if(i.length>0){const t=i.join(", ");try{const n=e.createElement("style");n.setAttribute("type","text/css"),n.styleSheet||n.appendChild(e.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${t} {.fx-query-test{ }}\n`)),e.head.appendChild(n),i.forEach(t=>q[t]=n)}catch(n){console.error(n)}}}(e,this._document),e.forEach(t=>{const e=e=>{this._zone.run(()=>this.source.next(new f(e.matches,t)))};let n=this.registry.get(t);n||(n=this.buildMQL(t),n.addListener(e),this.pendingRemoveListenerFns.push(()=>n.removeListener(e)),this.registry.set(t,n)),n.matches&&i.push(new f(!0,t))}),i}ngOnDestroy(){let t;for(;t=this.pendingRemoveListenerFns.pop();)t()}buildMQL(t){return function(t,e){return e&&window.matchMedia("all").addListener?window.matchMedia(t):{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{},onchange:null,addEventListener(){},removeEventListener(){},dispatchEvent:()=>!1}}(t,(0,r.NF)(this._platformId))}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(n.R0b),n.LFG(n.Lbi),n.LFG(r.K0))},t.\u0275prov=(0,n.Yz7)({factory:function(){return new t((0,n.LFG)(n.R0b),(0,n.LFG)(n.Lbi),(0,n.LFG)(r.K0))},token:t,providedIn:"root"}),t})();const q={},z="print",H={alias:z,mediaQuery:z,priority:1e3};let Y=(()=>{class t{constructor(t,e,i){this.breakpoints=t,this.layoutConfig=e,this._document=i,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.isPrinting=!1,this.queue=new G,this.deactivations=[]}withPrintQuery(t){return[...t,z]}isPrintEvent(t){return t.mediaQuery.startsWith(z)}get printAlias(){return this.layoutConfig.printWithBreakpoints||[]}get printBreakPoints(){return this.printAlias.map(t=>this.breakpoints.findByAlias(t)).filter(t=>null!==t)}getEventBreakpoints({mediaQuery:t}){const e=this.breakpoints.findByQuery(t);return(e?[...this.printBreakPoints,e]:this.printBreakPoints).sort(F)}updateEvent(t){let e=this.breakpoints.findByQuery(t.mediaQuery);return this.isPrintEvent(t)&&(e=this.getEventBreakpoints(t)[0],t.mediaQuery=e?e.mediaQuery:""),_(t,e)}registerBeforeAfterPrintHooks(t){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const e=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(t,this.getEventBreakpoints(new f(!0,z))),t.updateStyles())},i=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(t),t.updateStyles())};this._document.defaultView.addEventListener("beforeprint",e),this._document.defaultView.addEventListener("afterprint",i),this.beforePrintEventListeners.push(e),this.afterPrintEventListeners.push(i)}interceptEvents(t){return this.registerBeforeAfterPrintHooks(t),e=>{this.isPrintEvent(e)?e.matches&&!this.isPrinting?(this.startPrinting(t,this.getEventBreakpoints(e)),t.updateStyles()):e.matches||!this.isPrinting||this.isPrintingBeforeAfterEvent||(this.stopPrinting(t),t.updateStyles()):this.collectActivations(e)}}blockPropagation(){return t=>!(this.isPrinting||this.isPrintEvent(t))}startPrinting(t,e){this.isPrinting=!0,t.activatedBreakpoints=this.queue.addPrintBreakpoints(e)}stopPrinting(t){t.activatedBreakpoints=this.deactivations,this.deactivations=[],this.queue.clear(),this.isPrinting=!1}collectActivations(t){if(!this.isPrinting||this.isPrintingBeforeAfterEvent)if(t.matches)this.isPrintingBeforeAfterEvent||(this.deactivations=[]);else{const e=this.breakpoints.findByQuery(t.mediaQuery);e&&(this.deactivations.push(e),this.deactivations.sort(F))}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(t=>this._document.defaultView.removeEventListener("beforeprint",t)),this.afterPrintEventListeners.forEach(t=>this._document.defaultView.removeEventListener("afterprint",t)))}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(B),n.LFG(y),n.LFG(r.K0))},t.\u0275prov=(0,n.Yz7)({factory:function(){return new t((0,n.LFG)(B),(0,n.LFG)(y),(0,n.LFG)(r.K0))},token:t,providedIn:"root"}),t})();class G{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(t){return t.push(H),t.sort(F),t.forEach(t=>this.addBreakpoint(t)),this.printBreakpoints}addBreakpoint(t){t&&void 0===this.printBreakpoints.find(e=>e.mediaQuery===t.mediaQuery)&&(this.printBreakpoints=function(t){return!!t&&t.mediaQuery.startsWith(z)}(t)?[t,...this.printBreakpoints]:[...this.printBreakpoints,t])}clear(){this.printBreakpoints=[]}}function j(t){for(let e in t){let i=t[e]||"";switch(e){case"display":t.display="flex"===i?["-webkit-flex","flex"]:"inline-flex"===i?["-webkit-inline-flex","inline-flex"]:i;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":t["-webkit-"+e]=i;break;case"flex-direction":i=i||"row",t["-webkit-flex-direction"]=i,t["flex-direction"]=i;break;case"order":t.order=t["-webkit-"+e]=isNaN(+i)?"0":i}}return t}let V=(()=>{class t{constructor(t,e,i,n){this._serverStylesheet=t,this._serverModuleLoaded=e,this._platformId=i,this.layoutConfig=n}applyStyleToElement(t,e,i=null){let n={};"string"==typeof e&&(n[e]=i,e=n),n=this.layoutConfig.disableVendorPrefixes?e:j(e),this._applyMultiValueStyleToElement(n,t)}applyStyleToElements(t,e=[]){const i=this.layoutConfig.disableVendorPrefixes?t:j(t);e.forEach(t=>{this._applyMultiValueStyleToElement(i,t)})}getFlowDirection(t){const e="flex-direction";let i=this.lookupStyle(t,e);return[i||"row",this.lookupInlineStyle(t,e)||(0,r.PM)(this._platformId)&&this._serverModuleLoaded?i:""]}hasWrap(t){return"wrap"===this.lookupStyle(t,"flex-wrap")}lookupAttributeValue(t,e){return t.getAttribute(e)||""}lookupInlineStyle(t,e){return(0,r.NF)(this._platformId)?t.style.getPropertyValue(e):this._getServerStyle(t,e)}lookupStyle(t,e,i=!1){let n="";return t&&((n=this.lookupInlineStyle(t,e))||((0,r.NF)(this._platformId)?i||(n=getComputedStyle(t).getPropertyValue(e)):this._serverModuleLoaded&&(n=this._serverStylesheet.getStyleForElement(t,e)))),n?n.trim():""}_applyMultiValueStyleToElement(t,e){Object.keys(t).sort().forEach(i=>{const n=t[i],s=Array.isArray(n)?n:[n];s.sort();for(let t of s)t=t?t+"":"",(0,r.NF)(this._platformId)||!this._serverModuleLoaded?(0,r.NF)(this._platformId)?e.style.setProperty(i,t):this._setServerStyle(e,i,t):this._serverStylesheet.addStyleToElement(e,i,t)})}_setServerStyle(t,e,i){e=e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const n=this._readStyleAttribute(t);n[e]=i||"",this._writeStyleAttribute(t,n)}_getServerStyle(t,e){return this._readStyleAttribute(t)[e]||""}_readStyleAttribute(t){const e={},i=t.getAttribute("style");if(i){const t=i.split(/;+/g);for(let i=0;i0){const t=n.indexOf(":");if(-1===t)throw new Error(`Invalid CSS style: ${n}`);e[n.substr(0,t).trim()]=n.substr(t+1).trim()}}}return e}_writeStyleAttribute(t,e){let i="";for(const n in e)e[n]&&(i+=n+":"+e[n]+";");t.setAttribute("style",i)}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(m),n.LFG(b),n.LFG(n.Lbi),n.LFG(y))},t.\u0275prov=(0,n.Yz7)({factory:function(){return new t((0,n.LFG)(m),(0,n.LFG)(b),(0,n.LFG)(n.Lbi),(0,n.LFG)(y))},token:t,providedIn:"root"}),t})();class Q{constructor(){this.shouldCache=!0}sideEffect(t,e,i){}}function W(t,e="1",i="1"){let n=[e,i,t],r=t.indexOf("calc");if(r>0){n[2]=J(t.substring(r).trim());let e=t.substr(0,r).trim().split(" ");2==e.length&&(n[0]=e[0],n[1]=e[1])}else if(0==r)n[2]=J(t.trim());else{let r=t.split(" ");n=3===r.length?r:[e,i,t]}return n}function J(t){return t.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}let X=(()=>{class t{constructor(t,e,i){this.matchMedia=t,this.breakpoints=e,this.hook=i,this.activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new s.x,this.observeActivations()}get activatedAlias(){return this.activatedBreakpoints[0]?this.activatedBreakpoints[0].alias:""}onMediaChange(t){const e=this.findByQuery(t.mediaQuery);e&&((t=_(t,e)).matches&&-1===this.activatedBreakpoints.indexOf(e)?(this.activatedBreakpoints.push(e),this.activatedBreakpoints.sort(F),this.updateStyles()):t.matches||-1===this.activatedBreakpoints.indexOf(e)||(this.activatedBreakpoints.splice(this.activatedBreakpoints.indexOf(e),1),this.activatedBreakpoints.sort(F),this.updateStyles()))}init(t,e,i,n,r=[]){K(this.updateMap,t,e,i),K(this.clearMap,t,e,n),this.buildElementKeyMap(t,e),this.watchExtraTriggers(t,e,r)}getValue(t,e,i){const n=this.elementMap.get(t);if(n){const t=void 0!==i?n.get(i):this.getActivatedValues(n,e);if(t)return t.get(e)}}hasValue(t,e){const i=this.elementMap.get(t);if(i){const t=this.getActivatedValues(i,e);if(t)return void 0!==t.get(e)||!1}return!1}setValue(t,e,i,n){let r=this.elementMap.get(t);if(r){const s=(r.get(n)||new Map).set(e,i);r.set(n,s),this.elementMap.set(t,r)}else r=(new Map).set(n,(new Map).set(e,i)),this.elementMap.set(t,r);const s=this.getValue(t,e);void 0!==s&&this.updateElement(t,e,s)}trackValue(t,e){return this.subject.asObservable().pipe((0,c.h)(i=>i.element===t&&i.key===e))}updateStyles(){this.elementMap.forEach((t,e)=>{const i=new Set(this.elementKeyMap.get(e));let n=this.getActivatedValues(t);n&&n.forEach((t,n)=>{this.updateElement(e,n,t),i.delete(n)}),i.forEach(i=>{if(n=this.getActivatedValues(t,i),n){const t=n.get(i);this.updateElement(e,i,t)}else this.clearElement(e,i)})})}clearElement(t,e){const i=this.clearMap.get(t);if(i){const n=i.get(e);n&&(n(),this.subject.next({element:t,key:e,value:""}))}}updateElement(t,e,i){const n=this.updateMap.get(t);if(n){const r=n.get(e);r&&(r(i),this.subject.next({element:t,key:e,value:i}))}}releaseElement(t){const e=this.watcherMap.get(t);e&&(e.forEach(t=>t.unsubscribe()),this.watcherMap.delete(t));const i=this.elementMap.get(t);i&&(i.forEach((t,e)=>i.delete(e)),this.elementMap.delete(t))}triggerUpdate(t,e){const i=this.elementMap.get(t);if(i){const n=this.getActivatedValues(i,e);n&&(e?this.updateElement(t,e,n.get(e)):n.forEach((e,i)=>this.updateElement(t,i,e)))}}buildElementKeyMap(t,e){let i=this.elementKeyMap.get(t);i||(i=new Set,this.elementKeyMap.set(t,i)),i.add(e)}watchExtraTriggers(t,e,i){if(i&&i.length){let n=this.watcherMap.get(t);if(n||(n=new Map,this.watcherMap.set(t,n)),!n.get(e)){const r=(0,l.T)(...i).subscribe(()=>{const i=this.getValue(t,e);this.updateElement(t,e,i)});n.set(e,r)}}}findByQuery(t){return this.breakpoints.findByQuery(t)}getActivatedValues(t,e){for(let n=0;nt.mediaQuery);this.matchMedia.observe(this.hook.withPrintQuery(t)).pipe((0,h.b)(this.hook.interceptEvents(this)),(0,c.h)(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(U),n.LFG(B),n.LFG(Y))},t.\u0275prov=(0,n.Yz7)({factory:function(){return new t((0,n.LFG)(U),(0,n.LFG)(B),(0,n.LFG)(Y))},token:t,providedIn:"root"}),t})();function K(t,e,i,n){if(void 0!==n){let r=t.get(e);r||(r=new Map,t.set(e,r)),r.set(i,n)}}},377:(t,e,i)=>{"use strict";i.d(e,{aT:()=>b,oO:()=>c,Zl:()=>g});var n=i(1572),r=i(1511),s=i(1463),o=(i(9861),i(9568),i(269));new Map;let a=(()=>{class t extends s.iR{constructor(t,e,i,n,s,o,a){super(t,null,e,i),this.ngClassInstance=a,this.DIRECTIVE_KEY="ngClass",this.ngClassInstance||(this.ngClassInstance=new r.mk(n,s,t,o)),this.init(),this.setValue("","")}set klass(t){this.ngClassInstance.klass=t,this.setValue(t,"")}updateWithValue(t){this.ngClassInstance.ngClass=t,this.ngClassInstance.ngDoCheck()}ngDoCheck(){this.ngClassInstance.ngDoCheck()}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(s.RK),n.Y36(s.yB),n.Y36(n.ZZ4),n.Y36(n.aQg),n.Y36(n.Qsj),n.Y36(r.mk,10))},t.\u0275dir=n.lG2({type:t,inputs:{klass:["class","klass"]},features:[n.qOj]}),t})();const l=["ngClass","ngClass.xs","ngClass.sm","ngClass.md","ngClass.lg","ngClass.xl","ngClass.lt-sm","ngClass.lt-md","ngClass.lt-lg","ngClass.lt-xl","ngClass.gt-xs","ngClass.gt-sm","ngClass.gt-md","ngClass.gt-lg"];let c=(()=>{class t extends a{constructor(){super(...arguments),this.inputs=l}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=n.n5z(t)))(i||t)}}(),t.\u0275dir=n.lG2({type:t,selectors:[["","ngClass",""],["","ngClass.xs",""],["","ngClass.sm",""],["","ngClass.md",""],["","ngClass.lg",""],["","ngClass.xl",""],["","ngClass.lt-sm",""],["","ngClass.lt-md",""],["","ngClass.lt-lg",""],["","ngClass.lt-xl",""],["","ngClass.gt-xs",""],["","ngClass.gt-sm",""],["","ngClass.gt-md",""],["","ngClass.gt-lg",""]],inputs:{ngClass:"ngClass","ngClass.xs":"ngClass.xs","ngClass.sm":"ngClass.sm","ngClass.md":"ngClass.md","ngClass.lg":"ngClass.lg","ngClass.xl":"ngClass.xl","ngClass.lt-sm":"ngClass.lt-sm","ngClass.lt-md":"ngClass.lt-md","ngClass.lt-lg":"ngClass.lt-lg","ngClass.lt-xl":"ngClass.lt-xl","ngClass.gt-xs":"ngClass.gt-xs","ngClass.gt-sm":"ngClass.gt-sm","ngClass.gt-md":"ngClass.gt-md","ngClass.gt-lg":"ngClass.gt-lg"},features:[n.qOj]}),t})();new WeakMap;class h{constructor(t,e,i=!0){this.key=t,this.value=e,this.key=i?t.replace(/['"]/g,"").trim():t.trim(),this.value=i?e.replace(/['"]/g,"").trim():e.trim(),this.value=this.value.replace(/;/,"")}}function u(t){let e=typeof t;return"object"===e?t.constructor===Array?"array":t.constructor===Set?"set":"object":e}function d(t){const[e,...i]=t.split(":");return new h(e,i.join(":"))}function p(t,e){return e.key&&(t[e.key]=e.value),t}let f=(()=>{class t extends s.iR{constructor(t,e,i,n,s,o,a,l,c){super(t,null,e,i),this.sanitizer=n,this.ngStyleInstance=a,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new r.PC(t,s,o)),this.init();const h=this.nativeElement.getAttribute("style")||"";this.fallbackStyles=this.buildStyleMap(h),this.isServer=l&&(0,r.PM)(c)}updateWithValue(t){const e=this.buildStyleMap(t);this.ngStyleInstance.ngStyle=Object.assign(Object.assign({},this.fallbackStyles),e),this.isServer&&this.applyStyleToElement(e),this.ngStyleInstance.ngDoCheck()}clearStyles(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}buildStyleMap(t){const e=t=>this.sanitizer.sanitize(n.q3G.STYLE,t)||"";if(t)switch(u(t)){case"string":return y(function(t,e=";"){return String(t).trim().split(e).map(t=>t.trim()).filter(t=>""!==t)}(t),e);case"array":return y(t,e);case"set":default:return function(t,e){let i=[];return"set"===u(t)?t.forEach(t=>i.push(t)):Object.keys(t).forEach(e=>{i.push(`${e}:${t[e]}`)}),function(t,e){return t.map(d).filter(t=>!!t).map(t=>(e&&(t.value=e(t.value)),t)).reduce(p,{})}(i,e)}(t,e)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(s.RK),n.Y36(s.yB),n.Y36(o.H7),n.Y36(n.aQg),n.Y36(n.Qsj),n.Y36(r.PC,10),n.Y36(s.wY),n.Y36(n.Lbi))},t.\u0275dir=n.lG2({type:t,features:[n.qOj]}),t})();const m=["ngStyle","ngStyle.xs","ngStyle.sm","ngStyle.md","ngStyle.lg","ngStyle.xl","ngStyle.lt-sm","ngStyle.lt-md","ngStyle.lt-lg","ngStyle.lt-xl","ngStyle.gt-xs","ngStyle.gt-sm","ngStyle.gt-md","ngStyle.gt-lg"];let g=(()=>{class t extends f{constructor(){super(...arguments),this.inputs=m}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=n.n5z(t)))(i||t)}}(),t.\u0275dir=n.lG2({type:t,selectors:[["","ngStyle",""],["","ngStyle.xs",""],["","ngStyle.sm",""],["","ngStyle.md",""],["","ngStyle.lg",""],["","ngStyle.xl",""],["","ngStyle.lt-sm",""],["","ngStyle.lt-md",""],["","ngStyle.lt-lg",""],["","ngStyle.lt-xl",""],["","ngStyle.gt-xs",""],["","ngStyle.gt-sm",""],["","ngStyle.gt-md",""],["","ngStyle.gt-lg",""]],inputs:{ngStyle:"ngStyle","ngStyle.xs":"ngStyle.xs","ngStyle.sm":"ngStyle.sm","ngStyle.md":"ngStyle.md","ngStyle.lg":"ngStyle.lg","ngStyle.xl":"ngStyle.xl","ngStyle.lt-sm":"ngStyle.lt-sm","ngStyle.lt-md":"ngStyle.lt-md","ngStyle.lt-lg":"ngStyle.lt-lg","ngStyle.lt-xl":"ngStyle.lt-xl","ngStyle.gt-xs":"ngStyle.gt-xs","ngStyle.gt-sm":"ngStyle.gt-sm","ngStyle.gt-md":"ngStyle.gt-md","ngStyle.gt-lg":"ngStyle.gt-lg"},features:[n.qOj]}),t})();function y(t,e){return t.map(d).filter(t=>!!t).map(t=>(e&&(t.value=e(t.value)),t)).reduce(p,{})}let b=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[s.IR]]}),t})()},3722:(t,e,i)=>{"use strict";i.d(e,{ae:()=>Z,yH:()=>w,xw:()=>m,Wh:()=>M});var n=i(1572),r=i(1463),s=i(2526),o=(i(9666),i(9568));const a="inline",l=["row","column","row-reverse","column-reverse"];function c(t){t=t?t.toLowerCase():"";let[e,i,n]=t.split(" ");return l.find(t=>t===e)||(e=l[0]),i===a&&(i=n!==a?n:"",n=a),[e,u(i),!!n]}function h(t){let[e]=c(t);return e.indexOf("row")>-1}function u(t){if(t)switch(t.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":t="wrap-reverse";break;case"no":case"none":case"nowrap":t="nowrap";break;default:t="wrap"}return t}let d=(()=>{class t extends r.QI{buildStyles(t){return function(t){let[e,i,n]=c(t);return function(t,e=null,i=!1){return{display:i?"inline-flex":"flex","box-sizing":"border-box","flex-direction":t,"flex-wrap":e||null}}(e,i,n)}(t)}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=n.n5z(t)))(i||t)}}(),t.\u0275prov=(0,n.Yz7)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const p=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"];let f=(()=>{class t extends r.iR{constructor(t,e,i,n){super(t,i,e,n),this.DIRECTIVE_KEY="layout",this.styleCache=g,this.init()}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(r.RK),n.Y36(d),n.Y36(r.yB))},t.\u0275dir=n.lG2({type:t,features:[n.qOj]}),t})(),m=(()=>{class t extends f{constructor(){super(...arguments),this.inputs=p}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=n.n5z(t)))(i||t)}}(),t.\u0275dir=n.lG2({type:t,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[n.qOj]}),t})();const g=new Map;function y(t,...e){if(null==t)throw TypeError("Cannot convert undefined or null to object");for(let i of e)if(null!=i)for(let e in i)i.hasOwnProperty(e)&&(t[e]=i[e]);return t}new Map,new Map,new Map,new Map;let b=(()=>{class t extends r.QI{constructor(t){super(),this.layoutConfig=t}buildStyles(t,e){let[i,n,...r]=t.split(" "),s=r.join(" ");const o=e.direction.indexOf("column")>-1?"column":"row",a=h(o)?"max-width":"max-height",l=h(o)?"min-width":"min-height",c=String(s).indexOf("calc")>-1,u=c||"auto"===s,d=String(s).indexOf("%")>-1&&!c,p=String(s).indexOf("px")>-1||String(s).indexOf("rem")>-1||String(s).indexOf("em")>-1||String(s).indexOf("vw")>-1||String(s).indexOf("vh")>-1;let f=c||p;i="0"==i?0:i,n="0"==n?0:n;const m=!i&&!n;let g={};const b={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(s||""){case"":const t=!1!==this.layoutConfig.useColumnBasisZero;s="row"===o?"0%":t?"0.000000001px":"auto";break;case"initial":case"nogrow":i=0,s="auto";break;case"grow":s="100%";break;case"noshrink":n=0,s="auto";break;case"auto":break;case"none":i=0,n=0,s="auto";break;default:f||d||isNaN(s)||(s+="%"),"0%"===s&&(f=!0),"0px"===s&&(s="0%"),g=y(b,c?{"flex-grow":i,"flex-shrink":n,"flex-basis":f?s:"100%"}:{flex:`${i} ${n} ${f?s:"100%"}`})}return g.flex||g["flex-grow"]||(g=y(b,c?{"flex-grow":i,"flex-shrink":n,"flex-basis":s}:{flex:`${i} ${n} ${s}`})),"0%"!==s&&"0px"!==s&&"0.000000001px"!==s&&"auto"!==s&&(g[l]=m||f&&i?s:null,g[a]=m||!u&&n?s:null),g[l]||g[a]?e.hasWrap&&(g[c?"flex-basis":"flex"]=g[a]?c?g[a]:`${i} ${n} ${g[a]}`:c?g[l]:`${i} ${n} ${g[l]}`):g=y(b,c?{"flex-grow":i,"flex-shrink":n,"flex-basis":s}:{flex:`${i} ${n} ${s}`}),y(g,{"box-sizing":"border-box"})}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(r.WU))},t.\u0275prov=(0,n.Yz7)({factory:function(){return new t((0,n.LFG)(r.WU))},token:t,providedIn:"root"}),t})();const v=["fxFlex","fxFlex.xs","fxFlex.sm","fxFlex.md","fxFlex.lg","fxFlex.xl","fxFlex.lt-sm","fxFlex.lt-md","fxFlex.lt-lg","fxFlex.lt-xl","fxFlex.gt-xs","fxFlex.gt-sm","fxFlex.gt-md","fxFlex.gt-lg"];let _=(()=>{class t extends r.iR{constructor(t,e,i,n,r){super(t,n,e,r),this.layoutConfig=i,this.marshal=r,this.DIRECTIVE_KEY="flex",this.direction=void 0,this.wrap=void 0,this.flexGrow="1",this.flexShrink="1",this.init()}get shrink(){return this.flexShrink}set shrink(t){this.flexShrink=t||"1",this.triggerReflow()}get grow(){return this.flexGrow}set grow(t){this.flexGrow=t||"1",this.triggerReflow()}ngOnInit(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe((0,o.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe((0,o.R)(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}onLayoutChange(t){const e=t.value.split(" ");this.direction=e[0],this.wrap=void 0!==e[1]&&"wrap"===e[1],this.triggerUpdate()}updateWithValue(t){void 0===this.direction&&(this.direction=this.getFlexFlowDirection(this.parentElement,!1!==this.layoutConfig.addFlexToParent)),void 0===this.wrap&&(this.wrap=this.hasWrap(this.parentElement));const e=this.direction,i=e.startsWith("row"),n=this.wrap;i&&n?this.styleCache=A:i&&!n?this.styleCache=x:!i&&n?this.styleCache=S:i||n||(this.styleCache=C);const s=String(t).replace(";",""),o=(0,r.Ot)(s,this.flexGrow,this.flexShrink);this.addStyles(o.join(" "),{direction:e,hasWrap:n})}triggerReflow(){const t=this.activatedValue;if(void 0!==t){const e=(0,r.Ot)(t+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,e.join(" "))}}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(r.RK),n.Y36(r.WU),n.Y36(b),n.Y36(r.yB))},t.\u0275dir=n.lG2({type:t,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[n.qOj]}),t})(),w=(()=>{class t extends _{constructor(){super(...arguments),this.inputs=v}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=n.n5z(t)))(i||t)}}(),t.\u0275dir=n.lG2({type:t,selectors:[["","fxFlex",""],["","fxFlex.xs",""],["","fxFlex.sm",""],["","fxFlex.md",""],["","fxFlex.lg",""],["","fxFlex.xl",""],["","fxFlex.lt-sm",""],["","fxFlex.lt-md",""],["","fxFlex.lt-lg",""],["","fxFlex.lt-xl",""],["","fxFlex.gt-xs",""],["","fxFlex.gt-sm",""],["","fxFlex.gt-md",""],["","fxFlex.gt-lg",""]],inputs:{fxFlex:"fxFlex","fxFlex.xs":"fxFlex.xs","fxFlex.sm":"fxFlex.sm","fxFlex.md":"fxFlex.md","fxFlex.lg":"fxFlex.lg","fxFlex.xl":"fxFlex.xl","fxFlex.lt-sm":"fxFlex.lt-sm","fxFlex.lt-md":"fxFlex.lt-md","fxFlex.lt-lg":"fxFlex.lt-lg","fxFlex.lt-xl":"fxFlex.lt-xl","fxFlex.gt-xs":"fxFlex.gt-xs","fxFlex.gt-sm":"fxFlex.gt-sm","fxFlex.gt-md":"fxFlex.gt-md","fxFlex.gt-lg":"fxFlex.gt-lg"},features:[n.qOj]}),t})();const x=new Map,C=new Map,A=new Map,S=new Map;new Map,new Map,new Map,new Map,new Map,new Map,new Map;let E=(()=>{class t extends r.QI{buildStyles(t,e){const i={},[n,r]=t.split(" ");switch(n){case"center":i["justify-content"]="center";break;case"space-around":i["justify-content"]="space-around";break;case"space-between":i["justify-content"]="space-between";break;case"space-evenly":i["justify-content"]="space-evenly";break;case"end":case"flex-end":i["justify-content"]="flex-end";break;case"start":case"flex-start":default:i["justify-content"]="flex-start"}switch(r){case"start":case"flex-start":i["align-items"]=i["align-content"]="flex-start";break;case"center":i["align-items"]=i["align-content"]="center";break;case"end":case"flex-end":i["align-items"]=i["align-content"]="flex-end";break;case"space-between":i["align-content"]="space-between",i["align-items"]="stretch";break;case"space-around":i["align-content"]="space-around",i["align-items"]="stretch";break;case"baseline":i["align-content"]="stretch",i["align-items"]="baseline";break;case"stretch":default:i["align-items"]=i["align-content"]="stretch"}return y(i,{display:e.inline?"inline-flex":"flex","flex-direction":e.layout,"box-sizing":"border-box","max-width":"stretch"===r?h(e.layout)?null:"100%":null,"max-height":"stretch"===r&&h(e.layout)?"100%":null})}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=n.n5z(t)))(i||t)}}(),t.\u0275prov=(0,n.Yz7)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const k=["fxLayoutAlign","fxLayoutAlign.xs","fxLayoutAlign.sm","fxLayoutAlign.md","fxLayoutAlign.lg","fxLayoutAlign.xl","fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg"];let T=(()=>{class t extends r.iR{constructor(t,e,i,n){super(t,i,e,n),this.DIRECTIVE_KEY="layout-align",this.layout="row",this.inline=!1,this.init(),this.marshal.trackValue(this.nativeElement,"layout").pipe((0,o.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}updateWithValue(t){const e=this.layout||"row",i=this.inline;"row"===e&&i?this.styleCache=R:"row"!==e||i?"row-reverse"===e&&i?this.styleCache=P:"row-reverse"!==e||i?"column"===e&&i?this.styleCache=N:"column"!==e||i?"column-reverse"===e&&i?this.styleCache=F:"column-reverse"!==e||i||(this.styleCache=D):this.styleCache=I:this.styleCache=O:this.styleCache=L,this.addStyles(t,{layout:e,inline:i})}onLayoutChange(t){const e=t.value.split(" ");this.layout=e[0],this.inline=t.value.includes("inline"),l.find(t=>t===this.layout)||(this.layout="row"),this.triggerUpdate()}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(r.RK),n.Y36(E),n.Y36(r.yB))},t.\u0275dir=n.lG2({type:t,features:[n.qOj]}),t})(),M=(()=>{class t extends T{constructor(){super(...arguments),this.inputs=k}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=n.n5z(t)))(i||t)}}(),t.\u0275dir=n.lG2({type:t,selectors:[["","fxLayoutAlign",""],["","fxLayoutAlign.xs",""],["","fxLayoutAlign.sm",""],["","fxLayoutAlign.md",""],["","fxLayoutAlign.lg",""],["","fxLayoutAlign.xl",""],["","fxLayoutAlign.lt-sm",""],["","fxLayoutAlign.lt-md",""],["","fxLayoutAlign.lt-lg",""],["","fxLayoutAlign.lt-xl",""],["","fxLayoutAlign.gt-xs",""],["","fxLayoutAlign.gt-sm",""],["","fxLayoutAlign.gt-md",""],["","fxLayoutAlign.gt-lg",""]],inputs:{fxLayoutAlign:"fxLayoutAlign","fxLayoutAlign.xs":"fxLayoutAlign.xs","fxLayoutAlign.sm":"fxLayoutAlign.sm","fxLayoutAlign.md":"fxLayoutAlign.md","fxLayoutAlign.lg":"fxLayoutAlign.lg","fxLayoutAlign.xl":"fxLayoutAlign.xl","fxLayoutAlign.lt-sm":"fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md":"fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg":"fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl":"fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs":"fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm":"fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md":"fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg":"fxLayoutAlign.gt-lg"},features:[n.qOj]}),t})();const L=new Map,I=new Map,O=new Map,D=new Map,R=new Map,N=new Map,P=new Map,F=new Map;let Z=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[r.IR,s.vT]]}),t})()},6073:(t,e,i)=>{"use strict";i.d(e,{Zs:()=>Bt,gN:()=>Z,Fj:()=>p,qu:()=>Ht,NI:()=>ut,oH:()=>Et,u:()=>Lt,sg:()=>Tt,u5:()=>qt,Fd:()=>Dt,qQ:()=>Nt,Cf:()=>g,JU:()=>h,a5:()=>B,JJ:()=>q,JL:()=>z,F:()=>gt,On:()=>vt,wV:()=>xt,UX:()=>zt,Q7:()=>Zt,kI:()=>v,_Y:()=>_t});var n=i(1572),r=i(1511),s=i(5630),o=i(6891),a=i(1681);let l=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}setProperty(t,e){this._renderer.setProperty(this._elementRef.nativeElement,t,e)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.Qsj),n.Y36(n.SBq))},t.\u0275dir=n.lG2({type:t}),t})(),c=(()=>{class t extends l{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=n.n5z(t)))(i||t)}}(),t.\u0275dir=n.lG2({type:t,features:[n.qOj]}),t})();const h=new n.OlP("NgValueAccessor"),u={provide:h,useExisting:(0,n.Gpc)(()=>p),multi:!0},d=new n.OlP("CompositionEventMode");let p=(()=>{class t extends l{constructor(t,e,i){super(t,e),this._compositionMode=i,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=(0,r.q)()?(0,r.q)().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this.setProperty("value",null==t?"":t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.Qsj),n.Y36(n.SBq),n.Y36(d,8))},t.\u0275dir=n.lG2({type:t,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(t,e){1&t&&n.NdJ("input",function(t){return e._handleInput(t.target.value)})("blur",function(){return e.onTouched()})("compositionstart",function(){return e._compositionStart()})("compositionend",function(t){return e._compositionEnd(t.target.value)})},features:[n._Bn([u]),n.qOj]}),t})();function f(t){return null==t||0===t.length}function m(t){return null!=t&&"number"==typeof t.length}const g=new n.OlP("NgValidators"),y=new n.OlP("NgAsyncValidators"),b=/^(?=.{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 v{static min(t){return _(t)}static max(t){return w(t)}static required(t){return x(t)}static requiredTrue(t){return C(t)}static email(t){return function(t){return f(t.value)||b.test(t.value)?null:{email:!0}}(t)}static minLength(t){return function(t){return e=>f(e.value)||!m(e.value)?null:e.value.lengthm(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}(t)}static pattern(t){return function(t){if(!t)return A;let e,i;return"string"==typeof t?(i="","^"!==t.charAt(0)&&(i+="^"),i+=t,"$"!==t.charAt(t.length-1)&&(i+="$"),e=new RegExp(i)):(i=t.toString(),e=t),t=>{if(f(t.value))return null;const n=t.value;return e.test(n)?null:{pattern:{requiredPattern:i,actualValue:n}}}}(t)}static nullValidator(t){return null}static compose(t){return L(t)}static composeAsync(t){return O(t)}}function _(t){return e=>{if(f(e.value)||f(t))return null;const i=parseFloat(e.value);return!isNaN(i)&&i{if(f(e.value)||f(t))return null;const i=parseFloat(e.value);return!isNaN(i)&&i>t?{max:{max:t,actual:e.value}}:null}}function x(t){return f(t.value)?{required:!0}:null}function C(t){return!0===t.value?null:{required:!0}}function A(t){return null}function S(t){return null!=t}function E(t){const e=(0,n.QGY)(t)?(0,s.Dp)(t):t;return(0,n.CqO)(e),e}function k(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function T(t,e){return e.map(e=>e(t))}function M(t){return t.map(t=>function(t){return!t.validate}(t)?t:e=>t.validate(e))}function L(t){if(!t)return null;const e=t.filter(S);return 0==e.length?null:function(t){return k(T(t,e))}}function I(t){return null!=t?L(M(t)):null}function O(t){if(!t)return null;const e=t.filter(S);return 0==e.length?null:function(t){const i=T(t,e).map(E);return(0,o.D)(i).pipe((0,a.U)(k))}}function D(t){return null!=t?O(M(t)):null}function R(t,e){return null===t?[e]:Array.isArray(t)?[...t,e]:[t,e]}function N(t){return t._rawValidators}function P(t){return t._rawAsyncValidators}let F=(()=>{class t{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=I(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=D(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.lG2({type:t}),t})(),Z=(()=>{class t extends F{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=n.n5z(t)))(i||t)}}(),t.\u0275dir=n.lG2({type:t,features:[n.qOj]}),t})();class B extends F{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class U{constructor(t){this._cd=t}is(t){var e,i;return!!(null===(i=null===(e=this._cd)||void 0===e?void 0:e.control)||void 0===i?void 0:i[t])}}let q=(()=>{class t extends U{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(B,2))},t.\u0275dir=n.lG2({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&n.ekj("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[n.qOj]}),t})(),z=(()=>{class t extends U{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(Z,10))},t.\u0275dir=n.lG2({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&n.ekj("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[n.qOj]}),t})();function H(t,e){return[...e.path,t]}function Y(t,e){V(t,e),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(i=>{t._pendingValue=i,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&W(t,e)})}(t,e),function(t,e){const i=(t,i)=>{e.valueAccessor.writeValue(t),i&&e.viewToModelUpdate(t)};t.registerOnChange(i),e._registerOnDestroy(()=>{t._unregisterOnChange(i)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&W(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),function(t,e){if(e.valueAccessor.setDisabledState){const i=t=>{e.valueAccessor.setDisabledState(t)};t.registerOnDisabledChange(i),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(i)})}}(t,e)}function G(t,e,i=!0){const n=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n)),Q(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function j(t,e){t.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function V(t,e){const i=N(t);null!==e.validator?t.setValidators(R(i,e.validator)):"function"==typeof i&&t.setValidators([i]);const n=P(t);null!==e.asyncValidator?t.setAsyncValidators(R(n,e.asyncValidator)):"function"==typeof n&&t.setAsyncValidators([n]);const r=()=>t.updateValueAndValidity();j(e._rawValidators,r),j(e._rawAsyncValidators,r)}function Q(t,e){let i=!1;if(null!==t){if(null!==e.validator){const n=N(t);if(Array.isArray(n)&&n.length>0){const r=n.filter(t=>t!==e.validator);r.length!==n.length&&(i=!0,t.setValidators(r))}}if(null!==e.asyncValidator){const n=P(t);if(Array.isArray(n)&&n.length>0){const r=n.filter(t=>t!==e.asyncValidator);r.length!==n.length&&(i=!0,t.setAsyncValidators(r))}}}const n=()=>{};return j(e._rawValidators,n),j(e._rawAsyncValidators,n),i}function W(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function J(t,e){V(t,e)}function X(t,e){if(!t.hasOwnProperty("model"))return!1;const i=t.model;return!!i.isFirstChange()||!Object.is(e,i.currentValue)}function K(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function $(t,e){if(!e)return null;let i,n,r;return Array.isArray(e),e.forEach(t=>{t.constructor===p?i=t:Object.getPrototypeOf(t.constructor)===c?n=t:r=t}),r||n||i||null}function tt(t,e){const i=t.indexOf(e);i>-1&&t.splice(i,1)}const et="VALID",it="INVALID",nt="PENDING",rt="DISABLED";function st(t){return(ct(t)?t.validators:t)||null}function ot(t){return Array.isArray(t)?I(t):t||null}function at(t,e){return(ct(e)?e.asyncValidators:t)||null}function lt(t){return Array.isArray(t)?D(t):t||null}function ct(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class ht{constructor(t,e){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=ot(this._rawValidators),this._composedAsyncValidatorFn=lt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===et}get invalid(){return this.status===it}get pending(){return this.status==nt}get disabled(){return this.status===rt}get enabled(){return this.status!==rt}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=ot(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=lt(t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=nt,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=rt,this.errors=null,this._forEachChild(e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=et,this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),this.status!==et&&this.status!==nt||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?rt:et}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=nt,this._hasOwnPendingAsyncValidator=!0;const e=E(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(e,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,i){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;let n=t;return e.forEach(t=>{n=n instanceof dt?n.controls.hasOwnProperty(t)?n.controls[t]:null:n instanceof pt&&n.at(t)||null}),n}(this,t)}getError(t,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new n.vpe,this.statusChanges=new n.vpe}_calculateStatus(){return this._allControlsDisabled()?rt:this.errors?it:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(nt)?nt:this._anyControlsHaveStatus(it)?it:et}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){ct(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class ut extends ht{constructor(t=null,e,i){super(st(e),at(i,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){tt(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){tt(this._onDisabledChange,t)}_forEachChild(t){}_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(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class dt extends ht{constructor(t,e,i){super(st(e),at(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,i={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(i=>{this._throwIfControlMissing(i),this.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(i=>{this.controls[i]&&this.controls[i].patchValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((i,n)=>{i.reset(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=e instanceof ut?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&t(i,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const i=this.controls[e];if(this.contains(e)&&t(i))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,i)=>((e.enabled||this.disabled)&&(t[i]=e.value),t))}_reduceChildren(t,e){let i=t;return this._forEachChild((t,n)=>{i=e(i,t,n)}),i}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,i)=>{if(void 0===t[i])throw new Error(`Must supply a value for form control with name: '${i}'.`)})}}class pt extends ht{constructor(t,e,i){super(st(e),at(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[t]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,i={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,i)=>{this._throwIfControlMissing(i),this.at(i).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach((t,i)=>{this.at(i)&&this.at(i).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((i,n)=>{i.reset(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof ut?t.value:t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error(`Cannot find form control at index ${t}`)}_forEachChild(t){this.controls.forEach((e,i)=>{t(e,i)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,i)=>{if(void 0===t[i])throw new Error(`Must supply a value for form control at index: ${i}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const ft={provide:Z,useExisting:(0,n.Gpc)(()=>gt)},mt=(()=>Promise.resolve(null))();let gt=(()=>{class t extends Z{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new n.vpe,this.form=new dt({},I(t),D(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){mt.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),Y(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){mt.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),tt(this._directives,t)})}addFormGroup(t){mt.then(()=>{const e=this._findContainer(t.path),i=new dt({});J(i,t),e.registerControl(t.name,i),i.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){mt.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){mt.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,K(this.form,this._directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(g,10),n.Y36(y,10))},t.\u0275dir=n.lG2({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&n.NdJ("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[n._Bn([ft]),n.qOj]}),t})();const yt={provide:B,useExisting:(0,n.Gpc)(()=>vt)},bt=(()=>Promise.resolve(null))();let vt=(()=>{class t extends B{constructor(t,e,i,r){super(),this.control=new ut,this._registered=!1,this.update=new n.vpe,this._parent=t,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=$(0,r)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),X(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?H(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_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(){Y(this.control,this),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(t){bt.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,i=""===e||e&&"false"!==e;bt.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(Z,9),n.Y36(g,10),n.Y36(y,10),n.Y36(h,10))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[n._Bn([yt]),n.qOj,n.TTD]}),t})(),_t=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.lG2({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const wt={provide:h,useExisting:(0,n.Gpc)(()=>xt),multi:!0};let xt=(()=>{class t extends c{writeValue(t){this.setProperty("value",null==t?"":t)}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=n.n5z(t)))(i||t)}}(),t.\u0275dir=n.lG2({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&n.NdJ("input",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},features:[n._Bn([wt]),n.qOj]}),t})(),Ct=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({}),t})();const At=new n.OlP("NgModelWithFormControlWarning"),St={provide:B,useExisting:(0,n.Gpc)(()=>Et)};let Et=(()=>{class t extends B{constructor(t,e,i,r){super(),this._ngModelWarningConfig=r,this.update=new n.vpe,this._ngModelWarningSent=!1,this._setValidators(t),this._setAsyncValidators(e),this.valueAccessor=$(0,i)}set isDisabled(t){}ngOnChanges(t){if(this._isControlChanged(t)){const e=t.form.previousValue;e&&G(e,this,!1),Y(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}X(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&G(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_isControlChanged(t){return t.hasOwnProperty("form")}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(g,10),n.Y36(y,10),n.Y36(h,10),n.Y36(At,8))},t.\u0275dir=n.lG2({type:t,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[n._Bn([St]),n.qOj,n.TTD]}),t._ngModelWarningSentOnce=!1,t})();const kt={provide:Z,useExisting:(0,n.Gpc)(()=>Tt)};let Tt=(()=>{class t extends Z{constructor(t,e){super(),this.validators=t,this.asyncValidators=e,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new n.vpe,this._setValidators(t),this._setAsyncValidators(e)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Q(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return Y(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){G(t.control||null,t,!1),tt(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,e){this.form.get(t.path).setValue(e)}onSubmit(t){return this.submitted=!0,K(this.form,this.directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const e=t.control,i=this.form.get(t.path);e!==i&&(G(e||null,t),i instanceof ut&&(Y(i,t),t.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const e=this.form.get(t.path);J(e,t),e.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const e=this.form.get(t.path);e&&function(t,e){return Q(t,e)}(e,t)&&e.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){V(this.form,this),this._oldForm&&Q(this._oldForm,this)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(g,10),n.Y36(y,10))},t.\u0275dir=n.lG2({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&n.NdJ("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[n._Bn([kt]),n.qOj,n.TTD]}),t})();const Mt={provide:B,useExisting:(0,n.Gpc)(()=>Lt)};let Lt=(()=>{class t extends B{constructor(t,e,i,r,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.update=new n.vpe,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=$(0,r)}set isDisabled(t){}ngOnChanges(t){this._added||this._setUpControl(),X(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return H(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.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(Z,13),n.Y36(g,10),n.Y36(y,10),n.Y36(h,10),n.Y36(At,8))},t.\u0275dir=n.lG2({type:t,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[n._Bn([Mt]),n.qOj,n.TTD]}),t._ngModelWarningSentOnce=!1,t})(),It=(()=>{class t{constructor(){this._validator=A}handleChanges(t){if(this.inputName in t){const e=this.normalizeInput(t[this.inputName].currentValue);this._validator=this.createValidator(e),this._onChange&&this._onChange()}}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.lG2({type:t}),t})();const Ot={provide:g,useExisting:(0,n.Gpc)(()=>Dt),multi:!0};let Dt=(()=>{class t extends It{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=t=>parseFloat(t),this.createValidator=t=>w(t)}ngOnChanges(t){this.handleChanges(t)}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=n.n5z(t)))(i||t)}}(),t.\u0275dir=n.lG2({type:t,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(t,e){if(2&t){let t;n.uIk("max",null!==(t=e.max)&&void 0!==t?t:null)}},inputs:{max:"max"},features:[n._Bn([Ot]),n.qOj,n.TTD]}),t})();const Rt={provide:g,useExisting:(0,n.Gpc)(()=>Nt),multi:!0};let Nt=(()=>{class t extends It{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=t=>parseFloat(t),this.createValidator=t=>_(t)}ngOnChanges(t){this.handleChanges(t)}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=n.n5z(t)))(i||t)}}(),t.\u0275dir=n.lG2({type:t,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(t,e){if(2&t){let t;n.uIk("min",null!==(t=e.min)&&void 0!==t?t:null)}},inputs:{min:"min"},features:[n._Bn([Rt]),n.qOj,n.TTD]}),t})();const Pt={provide:g,useExisting:(0,n.Gpc)(()=>Zt),multi:!0},Ft={provide:g,useExisting:(0,n.Gpc)(()=>Bt),multi:!0};let Zt=(()=>{class t{constructor(){this._required=!1}get required(){return this._required}set required(t){this._required=null!=t&&!1!==t&&"false"!=`${t}`,this._onChange&&this._onChange()}validate(t){return this.required?x(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.lG2({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&n.uIk("required",e.required?"":null)},inputs:{required:"required"},features:[n._Bn([Pt])]}),t})(),Bt=(()=>{class t extends Zt{validate(t){return this.required?C(t):null}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=n.n5z(t)))(i||t)}}(),t.\u0275dir=n.lG2({type:t,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&n.uIk("required",e.required?"":null)},features:[n._Bn([Ft]),n.qOj]}),t})(),Ut=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[Ct]]}),t})(),qt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[Ut]}),t})(),zt=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:At,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[Ut]}),t})(),Ht=(()=>{class t{group(t,e=null){const i=this._reduceControls(t);let n,r=null,s=null;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(r=null!=e.validators?e.validators:null,s=null!=e.asyncValidators?e.asyncValidators:null,n=null!=e.updateOn?e.updateOn:void 0):(r=null!=e.validator?e.validator:null,s=null!=e.asyncValidator?e.asyncValidator:null)),new dt(i,{asyncValidators:s,updateOn:n,validators:r})}control(t,e,i){return new ut(t,e,i)}array(t,e,i){const n=t.map(t=>this._createControl(t));return new pt(n,e,i)}_reduceControls(t){const e={};return Object.keys(t).forEach(i=>{e[i]=this._createControl(t[i])}),e}_createControl(t){return t instanceof ut||t instanceof dt||t instanceof pt?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,n.Yz7)({factory:function(){return new t},token:t,providedIn:zt}),t})()},84:(t,e,i)=>{"use strict";i.d(e,{XC:()=>F,Bb:()=>H,ZL:()=>z});var n=i(4621),r=i(9861),s=i(1353),o=i(1572),a=i(1522),l=i(6042),c=i(9666),h=i(970),u=i(5446),d=i(2041),p=i(5960),f=i(1511),m=i(369),g=i(4894),y=i(5842),b=i(6899),v=i(6073),_=i(6283),w=i(9056),x=i(4324),C=i(8868),A=i(1681),S=i(343),E=i(6493),k=i(2526);const T=["panel"];function M(t,e){if(1&t&&(o.TgZ(0,"div",0,1),o.Hsn(2),o.qZA()),2&t){const t=e.id,i=o.oxw();o.Q6J("id",i.id)("ngClass",i._classList),o.uIk("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby(t))}}const L=["*"];let I=0;class O{constructor(t,e){this.source=t,this.option=e}}class D{}const R=(0,a.Kr)(D),N=new o.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function(){return{autoActiveFirstOption:!1}}});let P=(()=>{class t extends R{constructor(t,e,i,n){super(),this._changeDetectorRef=t,this._elementRef=e,this._activeOptionChanges=l.w0.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new o.vpe,this.opened=new o.vpe,this.closed=new o.vpe,this.optionActivated=new o.vpe,this._classList={},this.id="mat-autocomplete-"+I++,this.inertGroups=(null==n?void 0:n.SAFARI)||!1,this._autoActiveFirstOption=!!i.autoActiveFirstOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(t){this._autoActiveFirstOption=(0,r.Ig)(t)}set classList(t){this._classList=t&&t.length?(0,r.du)(t).reduce((t,e)=>(t[e]=!0,t),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new n.s1(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(t=>{this.optionActivated.emit({source:this,option:this.options.toArray()[t]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(t){this.panel&&(this.panel.nativeElement.scrollTop=t)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(t){const e=new O(this,t);this.optionSelected.emit(e)}_getPanelAriaLabelledby(t){return this.ariaLabel?null:this.ariaLabelledby?(t?t+" ":"")+this.ariaLabelledby:t}_setVisibilityClasses(t){t[this._visibleClass]=this.showPanel,t[this._hiddenClass]=!this.showPanel}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.sBO),o.Y36(o.SBq),o.Y36(N),o.Y36(s.t4))},t.\u0275dir=o.lG2({type:t,viewQuery:function(t,e){if(1&t&&(o.Gf(o.Rgc,7),o.Gf(T,5)),2&t){let t;o.iGM(t=o.CRH())&&(e.template=t.first),o.iGM(t=o.CRH())&&(e.panel=t.first)}},inputs:{displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",classList:["class","classList"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],panelWidth:"panelWidth"},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[o.qOj]}),t})(),F=(()=>{class t extends P{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(t)))(i||t)}}(),t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(t,e,i){if(1&t&&(o.Suo(i,a.K7,5),o.Suo(i,a.ey,5)),2&t){let t;o.iGM(t=o.CRH())&&(e.optionGroups=t),o.iGM(t=o.CRH())&&(e.options=t)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[o._Bn([{provide:a.HF,useExisting:t}]),o.qOj],ngContentSelectors:L,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(t,e){1&t&&(o.F$t(),o.YNc(0,M,3,4,"ng-template"))},directives:[f.mk],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}\n"],encapsulation:2,changeDetection:0}),t})();const Z=new o.OlP("mat-autocomplete-scroll-strategy"),B={provide:Z,deps:[m.aV],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},U={provide:v.JU,useExisting:(0,o.Gpc)(()=>z),multi:!0};let q=(()=>{class t{constructor(t,e,i,n,r,s,o,a,d,p,f){this._element=t,this._overlay=e,this._viewContainerRef=i,this._zone=n,this._changeDetectorRef=r,this._dir=o,this._formField=a,this._document=d,this._viewportRuler=p,this._defaults=f,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=l.w0.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new c.x,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=(0,h.P)(()=>this.autocomplete&&this.autocomplete.options?(0,u.T)(...this.autocomplete.options.map(t=>t.onSelectionChange)):this._zone.onStable.pipe((0,w.q)(1),(0,x.w)(()=>this.optionSelections))),this._scrollStrategy=s}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(t){this._autocompleteDisabled=(0,r.Ig)(t)}ngAfterViewInit(){const t=this._getWindow();void 0!==t&&this._zone.runOutsideAngular(()=>t.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(t){t.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const t=this._getWindow();void 0!==t&&t.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this.autocomplete.closed.emit(),this.autocomplete._isOpen=this._overlayAttached=!1,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return(0,u.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,C.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,C.h)(()=>this._overlayAttached)):(0,d.of)()).pipe((0,A.U)(t=>t instanceof a.rN?t:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,u.T)((0,p.R)(this._document,"click"),(0,p.R)(this._document,"auxclick"),(0,p.R)(this._document,"touchend")).pipe((0,C.h)(t=>{const e=this._isInsideShadowRoot&&t.composedPath?t.composedPath()[0]:t.target,i=this._formField?this._formField._elementRef.nativeElement:null,n=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&e!==this._element.nativeElement&&(!i||!i.contains(e))&&(!n||!n.contains(e))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(e)}))}writeValue(t){Promise.resolve(null).then(()=>this._setTriggerValue(t))}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this._element.nativeElement.disabled=t}_handleKeydown(t){const e=t.keyCode;if(e!==y.hY||(0,y.Vb)(t)||t.preventDefault(),this.activeOption&&e===y.K5&&this.panelOpen)this.activeOption._selectViaInteraction(),this._resetActiveItem(),t.preventDefault();else if(this.autocomplete){const i=this.autocomplete._keyManager.activeItem,n=e===y.LH||e===y.JH;this.panelOpen||e===y.Mf?this.autocomplete._keyManager.onKeydown(t):n&&this._canOpen()&&this.openPanel(),(n||this.autocomplete._keyManager.activeItem!==i)&&this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0)}}_handleInput(t){let e=t.target,i=e.value;"number"===e.type&&(i=""==i?null:parseFloat(i)),this._previousValue!==i&&(this._previousValue=i,this._onChange(i),this._canOpen()&&this._document.activeElement===t.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_floatLabel(t=!1){this._formField&&"auto"===this._formField.floatLabel&&(t?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const t=this._zone.onStable.pipe((0,w.q)(1)),e=this.autocomplete.options.changes.pipe((0,S.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,E.g)(0));return(0,u.T)(t,e).pipe((0,x.w)(()=>{const t=this.panelOpen;return this._resetActiveItem(),this.autocomplete._setVisibility(),this.panelOpen&&(this._overlayRef.updatePosition(),t!==this.panelOpen&&this.autocomplete.opened.emit()),this.panelClosingActions}),(0,w.q)(1)).subscribe(t=>this._setValueAndClose(t))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_setTriggerValue(t){const e=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(t):t,i=null!=e?e:"";this._formField?this._formField._control.value=i:this._element.nativeElement.value=i,this._previousValue=i}_setValueAndClose(t){t&&t.source&&(this._clearPreviousSelectedOption(t.source),this._setTriggerValue(t.source.value),this._onChange(t.source.value),this._element.nativeElement.focus(),this.autocomplete._emitSelectEvent(t.source)),this.closePanel()}_clearPreviousSelectedOption(t){this.autocomplete.options.forEach(e=>{e!==t&&e.selected&&e.deselect()})}_attachOverlay(){var t;null==this._isInsideShadowRoot&&(this._isInsideShadowRoot=!!(0,s.kV)(this._element.nativeElement));let e=this._overlayRef;e?(this._positionStrategy.setOrigin(this._getConnectedElement()),e.updateSize({width:this._getPanelWidth()})):(this._portal=new b.UE(this.autocomplete.template,this._viewContainerRef,{id:null===(t=this._formField)||void 0===t?void 0:t.getLabelId()}),e=this._overlay.create(this._getOverlayConfig()),this._overlayRef=e,e.keydownEvents().subscribe(t=>{(t.keyCode===y.hY&&!(0,y.Vb)(t)||t.keyCode===y.LH&&(0,y.Vb)(t,"altKey"))&&(this._resetActiveItem(),this._closeKeyEventStream.next(),t.stopPropagation(),t.preventDefault())}),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&e&&e.updateSize({width:this._getPanelWidth()})})),e&&!e.hasAttached()&&(e.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const i=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&i!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){var t;return new m.X_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(t=this._defaults)||void 0===t?void 0:t.overlayPanelClass})}_getOverlayPosition(){const t=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(t),this._positionStrategy=t,t}_setStrategyPositions(t){const e=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],i=this._aboveClass,n=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:i},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:i}];let r;r="above"===this.position?n:"below"===this.position?e:[...e,...n],t.withPositions(r)}_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 t=this.autocomplete;t.autoActiveFirstOption?t._keyManager.setFirstItemActive():t._keyManager.setActiveItem(-1)}_canOpen(){const t=this._element.nativeElement;return!t.readOnly&&!t.disabled&&!this._autocompleteDisabled}_getWindow(){var t;return(null===(t=this._document)||void 0===t?void 0:t.defaultView)||window}_scrollToOption(t){const e=this.autocomplete,i=(0,a.CB)(t,e.options,e.optionGroups);if(0===t&&1===i)e._setScrollTop(0);else if(e.panel){const i=e.options.toArray()[t];if(i){const t=i._getHostElement(),n=(0,a.jH)(t.offsetTop,t.offsetHeight,e._getScrollTop(),e.panel.nativeElement.offsetHeight);e._setScrollTop(n)}}}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.SBq),o.Y36(m.aV),o.Y36(o.s_b),o.Y36(o.R0b),o.Y36(o.sBO),o.Y36(Z),o.Y36(k.Is,8),o.Y36(_.G_,9),o.Y36(f.K0,8),o.Y36(g.rL),o.Y36(N,8))},t.\u0275dir=o.lG2({type:t,inputs:{position:["matAutocompletePosition","position"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"],autocomplete:["matAutocomplete","autocomplete"],connectedTo:["matAutocompleteConnectedTo","connectedTo"]},features:[o.TTD]}),t})(),z=(()=>{class t extends q{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(t)))(i||t)}}(),t.\u0275dir=o.lG2({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(t,e){1&t&&o.NdJ("focusin",function(){return e._handleFocus()})("blur",function(){return e._onTouched()})("input",function(t){return e._handleInput(t)})("keydown",function(t){return e._handleKeydown(t)}),2&t&&o.uIk("autocomplete",e.autocompleteAttribute)("role",e.autocompleteDisabled?null:"combobox")("aria-autocomplete",e.autocompleteDisabled?null:"list")("aria-activedescendant",e.panelOpen&&e.activeOption?e.activeOption.id:null)("aria-expanded",e.autocompleteDisabled?null:e.panelOpen.toString())("aria-owns",e.autocompleteDisabled||!e.panelOpen||null==e.autocomplete?null:e.autocomplete.id)("aria-haspopup",!e.autocompleteDisabled)},exportAs:["matAutocompleteTrigger"],features:[o._Bn([U]),o.qOj]}),t})(),H=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({providers:[B],imports:[[m.U8,a.Ng,a.BQ,f.ez],g.ZD,a.Ng,a.BQ]}),t})()},1050:(t,e,i)=>{"use strict";i.d(e,{k:()=>u,g:()=>d});var n=i(1522),r=i(4621),s=i(9861),o=i(3490),a=i(1572);let l=0;class c{}const h=(0,n.Id)(c);let u=(()=>{class t extends h{constructor(t,e,i,n,r){super(),this._ngZone=t,this._elementRef=e,this._ariaDescriber=i,this._renderer=n,this._animationMode=r,this._hasContent=!1,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=l++}get color(){return this._color}set color(t){this._setColor(t),this._color=t}get overlap(){return this._overlap}set overlap(t){this._overlap=(0,s.Ig)(t)}get description(){return this._description}set description(t){if(t!==this._description){const e=this._badgeElement;this._updateHostAriaDescription(t,this._description),this._description=t,e&&(t?e.setAttribute("aria-label",t):e.removeAttribute("aria-label"))}}get hidden(){return this._hidden}set hidden(t){this._hidden=(0,s.Ig)(t)}isAbove(){return-1===this.position.indexOf("below")}isAfter(){return-1===this.position.indexOf("before")}ngOnChanges(t){const e=t.content;if(e){const t=e.currentValue;this._hasContent=null!=t&&`${t}`.trim().length>0,this._updateTextContent()}}ngOnDestroy(){const t=this._badgeElement;t&&(this.description&&this._ariaDescriber.removeDescription(t,this.description),this._renderer.destroyNode&&this._renderer.destroyNode(t))}getBadgeElement(){return this._badgeElement}_updateTextContent(){return this._badgeElement?this._badgeElement.textContent=this._stringifyContent():this._badgeElement=this._createBadgeElement(),this._badgeElement}_createBadgeElement(){const t=this._renderer.createElement("span"),e="mat-badge-active",i="mat-badge-content";return this._clearExistingBadges(i),t.setAttribute("id",`mat-badge-content-${this._id}`),t.classList.add(i),t.textContent=this._stringifyContent(),"NoopAnimations"===this._animationMode&&t.classList.add("_mat-animation-noopable"),this.description&&t.setAttribute("aria-label",this.description),this._elementRef.nativeElement.appendChild(t),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{t.classList.add(e)})}):t.classList.add(e),t}_updateHostAriaDescription(t,e){const i=this._updateTextContent();e&&this._ariaDescriber.removeDescription(i,e),t&&this._ariaDescriber.describe(i,t)}_setColor(t){if(t!==this._color){const e=this._elementRef.nativeElement.classList;this._color&&e.remove(`mat-badge-${this._color}`),t&&e.add(`mat-badge-${t}`)}}_clearExistingBadges(t){const e=this._elementRef.nativeElement;let i=e.children.length;for(;i--;){const n=e.children[i];n.classList.contains(t)&&e.removeChild(n)}}_stringifyContent(){const t=this.content;return null==t?"":`${t}`}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.R0b),a.Y36(a.SBq),a.Y36(r.$s),a.Y36(a.Qsj),a.Y36(o.Qb,8))},t.\u0275dir=a.lG2({type:t,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(t,e){2&t&&a.ekj("mat-badge-overlap",e.overlap)("mat-badge-above",e.isAbove())("mat-badge-below",!e.isAbove())("mat-badge-before",!e.isAfter())("mat-badge-after",e.isAfter())("mat-badge-small","small"===e.size)("mat-badge-medium","medium"===e.size)("mat-badge-large","large"===e.size)("mat-badge-hidden",e.hidden||!e._hasContent)("mat-badge-disabled",e.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],position:["matBadgePosition","position"],size:["matBadgeSize","size"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],description:["matBadgeDescription","description"],hidden:["matBadgeHidden","hidden"],content:["matBadge","content"]},features:[a.qOj,a.TTD]}),t})(),d=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=a.oAB({type:t}),t.\u0275inj=a.cJS({imports:[[r.rt,n.BQ],n.BQ]}),t})()},5980:(t,e,i)=>{"use strict";i.d(e,{lW:()=>d,ot:()=>p});var n=i(1522),r=i(3490),s=i(1572),o=i(4621);const a=["mat-button",""],l=["*"],c=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"];class h{constructor(t){this._elementRef=t}}const u=(0,n.pj)((0,n.Id)((0,n.Kr)(h)));let d=(()=>{class t extends u{constructor(t,e,i){super(t),this._focusMonitor=e,this._animationMode=i,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const n of c)this._hasHostAttributes(n)&&this._getHostElement().classList.add(n);t.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(t,e){t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...t){return t.some(t=>this._getHostElement().hasAttribute(t))}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(o.tE),s.Y36(r.Qb,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(t,e){if(1&t&&s.Gf(n.wG,5),2&t){let t;s.iGM(t=s.CRH())&&(e.ripple=t.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,e){2&t&&(s.uIk("disabled",e.disabled||null),s.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[s.qOj],attrs:a,ngContentSelectors:l,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,e){1&t&&(s.F$t(),s.TgZ(0,"span",0),s.Hsn(1),s.qZA(),s._UZ(2,"span",1),s._UZ(3,"span",2)),2&t&&(s.xp6(2),s.ekj("mat-button-ripple-round",e.isRoundButton||e.isIconButton),s.Q6J("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[n.wG],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),t})(),p=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[n.si,n.BQ],n.BQ]}),t})()},7439:(t,e,i)=>{"use strict";i.d(e,{a8:()=>p,dn:()=>h,dk:()=>f,QW:()=>m,$j:()=>d,n5:()=>u});var n=i(3490),r=i(1522),s=i(1572);const o=["*",[["mat-card-footer"]]],a=["*","mat-card-footer"],l=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],c=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"];let h=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),t})(),u=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),t})(),d=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),t})(),p=(()=>{class t{constructor(t){this._animationMode=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(n.Qb,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode)},exportAs:["matCard"],ngContentSelectors:a,decls:2,vars:0,template:function(t,e){1&t&&(s.F$t(o),s.Hsn(0),s.Hsn(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}._mat-animation-noopable.mat-card{transition:none;animation:none}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card .mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}\n"],encapsulation:2,changeDetection:0}),t})(),f=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:c,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(t,e){1&t&&(s.F$t(l),s.Hsn(0),s.TgZ(1,"div",0),s.Hsn(2,1),s.qZA(),s.Hsn(3,2))},encapsulation:2,changeDetection:0}),t})(),m=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[r.BQ],r.BQ]}),t})()},9236:(t,e,i)=>{"use strict";i.d(e,{oG:()=>w,p9:()=>C});var n=i(9861),r=i(1572),s=i(6073),o=i(1522),a=i(3490),l=i(6337),c=i(4621);const h=["input"],u=function(t){return{enterDuration:t}},d=["*"],p=new r.OlP("mat-checkbox-default-options",{providedIn:"root",factory:f});function f(){return{color:"accent",clickAction:"check-indeterminate"}}let m=0;const g=f(),y={provide:s.JU,useExisting:(0,r.Gpc)(()=>w),multi:!0};class b{}class v{constructor(t){this._elementRef=t}}const _=(0,o.sb)((0,o.pj)((0,o.Kr)((0,o.Id)(v))));let w=(()=>{class t extends _{constructor(t,e,i,n,s,o,a){super(t),this._changeDetectorRef=e,this._focusMonitor=i,this._ngZone=n,this._animationMode=o,this._options=a,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId="mat-checkbox-"+ ++m,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new r.vpe,this.indeterminateChange=new r.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||g,this.color=this.defaultColor=this._options.color||g.color,this.tabIndex=parseInt(s)||0}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(t){this._required=(0,n.Ig)(t)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{t||Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}ngAfterViewChecked(){}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}get checked(){return this._checked}set checked(t){t!=this.checked&&(this._checked=t,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(t){const e=(0,n.Ig)(t);e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(t){const e=t!=this._indeterminate;this._indeterminate=(0,n.Ig)(t),e&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(t){this.checked=!!t}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(t){let e=this._currentCheckState,i=this._elementRef.nativeElement;if(e!==t&&(this._currentAnimationClass.length>0&&i.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(e,t),this._currentCheckState=t,this._currentAnimationClass.length>0)){i.classList.add(this._currentAnimationClass);const t=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{i.classList.remove(t)},1e3)})}}_emitChangeEvent(){const t=new b;t.source=this,t.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(t),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked}_onInputClick(t){var e;const i=null===(e=this._options)||void 0===e?void 0:e.clickAction;t.stopPropagation(),this.disabled||"noop"===i?this.disabled||"noop"!==i||(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==i&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(t,e){t?this._focusMonitor.focusVia(this._inputElement,t,e):this._inputElement.nativeElement.focus(e)}_onInteractionEvent(t){t.stopPropagation()}_getAnimationClassForCheckStateTransition(t,e){if("NoopAnimations"===this._animationMode)return"";let i="";switch(t){case 0:if(1===e)i="unchecked-checked";else{if(3!=e)return"";i="unchecked-indeterminate"}break;case 2:i=1===e?"unchecked-checked":"unchecked-indeterminate";break;case 1:i=2===e?"checked-unchecked":"checked-indeterminate";break;case 3:i=1===e?"indeterminate-checked":"indeterminate-unchecked"}return`mat-checkbox-anim-${i}`}_syncIndeterminate(t){const e=this._inputElement;e&&(e.nativeElement.indeterminate=t)}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(r.sBO),r.Y36(c.tE),r.Y36(r.R0b),r.$8M("tabindex"),r.Y36(a.Qb,8),r.Y36(p,8))},t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-checkbox"]],viewQuery:function(t,e){if(1&t&&(r.Gf(h,5),r.Gf(o.wG,5)),2&t){let t;r.iGM(t=r.CRH())&&(e._inputElement=t.first),r.iGM(t=r.CRH())&&(e.ripple=t.first)}},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(t,e){2&t&&(r.Ikx("id",e.id),r.uIk("tabindex",null),r.ekj("mat-checkbox-indeterminate",e.indeterminate)("mat-checkbox-checked",e.checked)("mat-checkbox-disabled",e.disabled)("mat-checkbox-label-before","before"==e.labelPosition)("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",labelPosition:"labelPosition",name:"name",required:"required",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",ariaDescribedby:["aria-describedby","ariaDescribedby"],value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[r._Bn([y]),r.qOj],ngContentSelectors:d,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(t,e){if(1&t&&(r.F$t(),r.TgZ(0,"label",0,1),r.TgZ(2,"span",2),r.TgZ(3,"input",3,4),r.NdJ("change",function(t){return e._onInteractionEvent(t)})("click",function(t){return e._onInputClick(t)}),r.qZA(),r.TgZ(5,"span",5),r._UZ(6,"span",6),r.qZA(),r._UZ(7,"span",7),r.TgZ(8,"span",8),r.O4$(),r.TgZ(9,"svg",9),r._UZ(10,"path",10),r.qZA(),r.kcU(),r._UZ(11,"span",11),r.qZA(),r.qZA(),r.TgZ(12,"span",12,13),r.NdJ("cdkObserveContent",function(){return e._onLabelTextChange()}),r.TgZ(14,"span",14),r._uU(15,"\xa0"),r.qZA(),r.Hsn(16),r.qZA(),r.qZA()),2&t){const t=r.MAs(1),i=r.MAs(13);r.uIk("for",e.inputId),r.xp6(2),r.ekj("mat-checkbox-inner-container-no-side-margin",!i.textContent||!i.textContent.trim()),r.xp6(1),r.Q6J("id",e.inputId)("required",e.required)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex),r.uIk("value",e.value)("name",e.name)("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby)("aria-checked",e._getAriaChecked())("aria-describedby",e.ariaDescribedby),r.xp6(2),r.Q6J("matRippleTrigger",t)("matRippleDisabled",e._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",r.VKq(19,u,"NoopAnimations"===e._animationMode?0:150))}},directives:[o.wG,l.wD],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}\n"],encapsulation:2,changeDetection:0}),t})(),x=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({}),t})(),C=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[o.si,o.BQ,l.Q8,x],o.BQ,x]}),t})()},1522:(t,e,i)=>{"use strict";i.d(e,{yN:()=>b,mZ:()=>v,_A:()=>L,rD:()=>z,sG:()=>I,K7:()=>ct,HF:()=>rt,Y2:()=>$,BQ:()=>x,X2:()=>H,uc:()=>j,XK:()=>q,ey:()=>pt,Ng:()=>gt,rN:()=>ut,nP:()=>it,us:()=>nt,wG:()=>tt,si:()=>et,LF:()=>Z,IR:()=>K,CB:()=>ft,jH:()=>mt,pj:()=>A,Kr:()=>S,Id:()=>C,FD:()=>k,dB:()=>T,sb:()=>E,E0:()=>Y});var n=i(1572),r=i(4621),s=i(2526);const o=new n.GfV("12.0.5");var a=i(1511),l=i(9861),c=i(9666),h=i(2391),u=i(1353),d=i(1258),p=i(3490),f=i(5842);function m(t,e){if(1&t&&n._UZ(0,"mat-pseudo-checkbox",4),2&t){const t=n.oxw();n.Q6J("state",t.selected?"checked":"unchecked")("disabled",t.disabled)}}function g(t,e){if(1&t&&(n.TgZ(0,"span",5),n._uU(1),n.qZA()),2&t){const t=n.oxw();n.xp6(1),n.hij("(",t.group.label,")")}}const y=["*"];let b=(()=>{class t{}return t.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",t.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",t.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",t.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",t})(),v=(()=>{class t{}return t.COMPLEX="375ms",t.ENTERING="225ms",t.EXITING="195ms",t})();const _=new n.GfV("12.0.5"),w=new n.OlP("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let x=(()=>{class t{constructor(t,e,i){this._hasDoneGlobalChecks=!1,this._document=i,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=e,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_getWindow(){const t=this._document.defaultView||window;return"object"==typeof t&&t?t:null}_checksAreEnabled(){return(0,n.X6Q)()&&!this._isTestEnv()}_isTestEnv(){const t=this._getWindow();return t&&(t.__karma__||t.jasmine)}_checkDoctypeIsDefined(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype)&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){if(!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme||!this._document.body||"function"!=typeof getComputedStyle)return;const t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t);const e=getComputedStyle(t);e&&"none"!==e.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(t)}_checkCdkVersionMatch(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&_.full!==o.full&&console.warn("The Angular Material version ("+_.full+") does not match the Angular CDK version ("+o.full+").\nPlease ensure the versions of these two packages exactly match.")}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(r.qm),n.LFG(w,8),n.LFG(a.K0))},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[s.vT],s.vT]}),t})();function C(t){return class extends t{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=(0,l.Ig)(t)}}}function A(t,e){return class extends t{constructor(...t){super(...t),this.defaultColor=e,this.color=e}get color(){return this._color}set color(t){const e=t||this.defaultColor;e!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),e&&this._elementRef.nativeElement.classList.add(`mat-${e}`),this._color=e)}}}function S(t){return class extends t{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=(0,l.Ig)(t)}}}function E(t,e=0){return class extends t{constructor(...t){super(...t),this._tabIndex=e,this.defaultTabIndex=e}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(t){this._tabIndex=null!=t?(0,l.su)(t):this.defaultTabIndex}}}function k(t){return class extends t{constructor(...t){super(...t),this.errorState=!1,this.stateChanges=new c.x}updateErrorState(){const t=this.errorState,e=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);e!==t&&(this.errorState=e,this.stateChanges.next())}}}function T(t){return class extends t{constructor(...t){super(...t),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new h.y(t=>{this._isInitialized?this._notifySubscriber(t):this._pendingSubscribers.push(t)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(t){t.next(),t.complete()}}}const M=new n.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function(){return(0,n.f3M)(n.soG)}});class L{constructor(){this._localeChanges=new c.x,this.localeChanges=this._localeChanges}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,e){return this.getYear(t)-this.getYear(e)||this.getMonth(t)-this.getMonth(e)||this.getDate(t)-this.getDate(e)}sameDate(t,e){if(t&&e){let i=this.isValid(t),n=this.isValid(e);return i&&n?!this.compareDate(t,e):i==n}return t==e}clampDate(t,e,i){return e&&this.compareDate(t,e)<0?e:i&&this.compareDate(t,i)>0?i:t}}const I=new n.OlP("mat-date-formats");let O;try{O="undefined"!=typeof Intl}catch(yt){O=!1}const D={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},R=F(31,t=>String(t+1)),N={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},P=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function F(t,e){const i=Array(t);for(let n=0;n{class t extends L{constructor(t,e){super(),this.useUtcForDisplay=!0,super.setLocale(t),this.useUtcForDisplay=!e.TRIDENT,this._clampDate=e.TRIDENT||e.EDGE}getYear(t){return t.getFullYear()}getMonth(t){return t.getMonth()}getDate(t){return t.getDate()}getDayOfWeek(t){return t.getDay()}getMonthNames(t){if(O){const e=new Intl.DateTimeFormat(this.locale,{month:t,timeZone:"utc"});return F(12,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,t,1))))}return D[t]}getDateNames(){if(O){const t=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return F(31,e=>this._stripDirectionalityCharacters(this._format(t,new Date(2017,0,e+1))))}return R}getDayOfWeekNames(t){if(O){const e=new Intl.DateTimeFormat(this.locale,{weekday:t,timeZone:"utc"});return F(7,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,0,t+1))))}return N[t]}getYearName(t){if(O){const e=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._stripDirectionalityCharacters(this._format(e,t))}return String(this.getYear(t))}getFirstDayOfWeek(){return 0}getNumDaysInMonth(t){return this.getDate(this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+1,0))}clone(t){return new Date(t.getTime())}createDate(t,e,i){let n=this._createDateWithOverflow(t,e,i);return n.getMonth(),n}today(){return new Date}parse(t){return"number"==typeof t?new Date(t):t?new Date(Date.parse(t)):null}format(t,e){if(!this.isValid(t))throw Error("NativeDateAdapter: Cannot format invalid date.");if(O){this._clampDate&&(t.getFullYear()<1||t.getFullYear()>9999)&&(t=this.clone(t)).setFullYear(Math.max(1,Math.min(9999,t.getFullYear()))),e=Object.assign(Object.assign({},e),{timeZone:"utc"});const i=new Intl.DateTimeFormat(this.locale,e);return this._stripDirectionalityCharacters(this._format(i,t))}return this._stripDirectionalityCharacters(t.toDateString())}addCalendarYears(t,e){return this.addCalendarMonths(t,12*e)}addCalendarMonths(t,e){let i=this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+e,this.getDate(t));return this.getMonth(i)!=((this.getMonth(t)+e)%12+12)%12&&(i=this._createDateWithOverflow(this.getYear(i),this.getMonth(i),0)),i}addCalendarDays(t,e){return this._createDateWithOverflow(this.getYear(t),this.getMonth(t),this.getDate(t)+e)}toIso8601(t){return[t.getUTCFullYear(),this._2digit(t.getUTCMonth()+1),this._2digit(t.getUTCDate())].join("-")}deserialize(t){if("string"==typeof t){if(!t)return null;if(P.test(t)){let e=new Date(t);if(this.isValid(e))return e}}return super.deserialize(t)}isDateInstance(t){return t instanceof Date}isValid(t){return!isNaN(t.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(t,e,i){const n=new Date;return n.setFullYear(t,e,i),n.setHours(0,0,0,0),n}_2digit(t){return("00"+t).slice(-2)}_stripDirectionalityCharacters(t){return t.replace(/[\u200e\u200f]/g,"")}_format(t,e){const i=new Date;return i.setUTCFullYear(e.getFullYear(),e.getMonth(),e.getDate()),i.setUTCHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),t.format(i)}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(M,8),n.LFG(u.t4))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})(),B=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({providers:[{provide:L,useClass:Z}],imports:[[u.ud]]}),t})();const U={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let q=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({providers:[{provide:I,useValue:U}],imports:[[B]]}),t})(),z=(()=>{class t{isErrorState(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=n.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})(),H=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.lG2({type:t,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),t})();function Y(t,e,i="mat"){t.changes.pipe((0,d.O)(t)).subscribe(({length:t})=>{G(e,`${i}-2-line`,!1),G(e,`${i}-3-line`,!1),G(e,`${i}-multi-line`,!1),2===t||3===t?G(e,`${i}-${t}-line`,!0):t>3&&G(e,`${i}-multi-line`,!0)})}function G(t,e,i){const n=t.nativeElement.classList;i?n.add(e):n.remove(e)}let j=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[x],x]}),t})();class V{constructor(t,e,i){this._renderer=t,this.element=e,this.config=i,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Q={enterDuration:450,exitDuration:400},W=(0,u.i$)({passive:!0}),J=["mousedown","touchstart"],X=["mouseup","mouseleave","touchend","touchcancel"];class K{constructor(t,e,i,n){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,n.isBrowser&&(this._containerElement=(0,l.fI)(i))}fadeInRipple(t,e,i={}){const n=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=Object.assign(Object.assign({},Q),i.animation);i.centered&&(t=n.left+n.width/2,e=n.top+n.height/2);const s=i.radius||function(t,e,i){const n=Math.max(Math.abs(t-i.left),Math.abs(t-i.right)),r=Math.max(Math.abs(e-i.top),Math.abs(e-i.bottom));return Math.sqrt(n*n+r*r)}(t,e,n),o=t-n.left,a=e-n.top,l=r.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=o-s+"px",c.style.top=a-s+"px",c.style.height=2*s+"px",c.style.width=2*s+"px",null!=i.color&&(c.style.backgroundColor=i.color),c.style.transitionDuration=`${l}ms`,this._containerElement.appendChild(c),window.getComputedStyle(c).getPropertyValue("opacity"),c.style.transform="scale(1)";const h=new V(this,c,i);return h.state=0,this._activeRipples.add(h),i.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone(()=>{const t=h===this._mostRecentTransientRipple;h.state=1,i.persistent||t&&this._isPointerDown||h.fadeOut()},l),h}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const i=t.element,n=Object.assign(Object.assign({},Q),t.config.animation);i.style.transitionDuration=`${n.exitDuration}ms`,i.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,i.parentNode.removeChild(i)},n.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){const e=(0,l.fI)(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(J))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(X),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=(0,r.X6)(t),i=this._lastTouchStartEvent&&Date.now(){!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_registerEvents(t){this._ngZone.runOutsideAngular(()=>{t.forEach(t=>{this._triggerElement.addEventListener(t,this,W)})})}_removeTriggerEvents(){this._triggerElement&&(J.forEach(t=>{this._triggerElement.removeEventListener(t,this,W)}),this._pointerUpEventsRegistered&&X.forEach(t=>{this._triggerElement.removeEventListener(t,this,W)}))}}const $=new n.OlP("mat-ripple-global-options");let tt=(()=>{class t{constructor(t,e,i,n,r){this._elementRef=t,this._animationMode=r,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=n||{},this._rippleRenderer=new K(this,e,t,i)}get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}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:Object.assign(Object.assign(Object.assign({},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(t,e=0,i){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),i)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(u.t4),n.Y36($,8),n.Y36(p.Qb,8))},t.\u0275dir=n.lG2({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&n.ekj("mat-ripple-unbounded",e.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),t})(),et=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[x,u.ud],x]}),t})(),it=(()=>{class t{constructor(t){this._animationMode=t,this.state="unchecked",this.disabled=!1}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(p.Qb,8))},t.\u0275cmp=n.Xpm({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&n.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===e.state)("mat-pseudo-checkbox-checked","checked"===e.state)("mat-pseudo-checkbox-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(t,e){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;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-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),t})(),nt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[x]]}),t})();const rt=new n.OlP("MAT_OPTION_PARENT_COMPONENT");class st{}const ot=C(st);let at=0,lt=(()=>{class t extends ot{constructor(t){var e;super(),this._labelId="mat-optgroup-label-"+at++,this._inert=null!==(e=null==t?void 0:t.inertGroups)&&void 0!==e&&e}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(rt,8))},t.\u0275dir=n.lG2({type:t,inputs:{label:"label"},features:[n.qOj]}),t})();const ct=new n.OlP("MatOptgroup");let ht=0;class ut{constructor(t,e=!1){this.source=t,this.isUserInput=e}}let dt=(()=>{class t{constructor(t,e,i,r){this._element=t,this._changeDetectorRef=e,this._parent=i,this.group=r,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+ht++,this.onSelectionChange=new n.vpe,this._stateChanges=new c.x}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(t){this._disabled=(0,l.Ig)(t)}get disableRipple(){return this._parent&&this._parent.disableRipple}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(t,e){const i=this._getHostElement();"function"==typeof i.focus&&i.focus(e)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(t){t.keyCode!==f.K5&&t.keyCode!==f.L_||(0,f.Vb)(t)||(this._selectViaInteraction(),t.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue=t,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(t=!1){this.onSelectionChange.emit(new ut(this,t))}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(void 0),n.Y36(lt))},t.\u0275dir=n.lG2({type:t,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),t})(),pt=(()=>{class t extends dt{constructor(t,e,i,n){super(t,e,i,n)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(rt,8),n.Y36(ct,8))},t.\u0275cmp=n.Xpm({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&n.NdJ("click",function(){return e._selectViaInteraction()})("keydown",function(t){return e._handleKeydown(t)}),2&t&&(n.Ikx("id",e.id),n.uIk("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),n.ekj("mat-selected",e.selected)("mat-option-multiple",e.multiple)("mat-active",e.active)("mat-option-disabled",e.disabled))},exportAs:["matOption"],features:[n.qOj],ngContentSelectors:y,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(t,e){1&t&&(n.F$t(),n.YNc(0,m,1,2,"mat-pseudo-checkbox",0),n.TgZ(1,"span",1),n.Hsn(2),n.qZA(),n.YNc(3,g,2,1,"span",2),n._UZ(4,"div",3)),2&t&&(n.Q6J("ngIf",e.multiple),n.xp6(3),n.Q6J("ngIf",e.group&&e.group._inert),n.xp6(1),n.Q6J("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[a.O5,tt,it],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),t})();function ft(t,e,i){if(i.length){let n=e.toArray(),r=i.toArray(),s=0;for(let e=0;ei+n?Math.max(0,t-n+e):i}let gt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[et,a.ez,x,nt]]}),t})()},5812:(t,e,i)=>{"use strict";i.d(e,{Mq:()=>bt,hl:()=>Ct,FA:()=>Et,nW:()=>St});var n=i(4621),r=i(369),s=i(6899),o=i(1511),a=i(1572),l=i(5980),c=i(4894),h=i(1522),u=i(9666),d=i(6042),p=i(5446),f=i(2041),m=i(5842),g=i(9056),y=i(1258),b=i(8868),v=i(9861),_=i(1353),w=i(709),x=i(6073),C=i(6283),A=i(6756),S=i(2526);const E=["mat-calendar-body",""];function k(t,e){if(1&t&&(a.TgZ(0,"tr",2),a.TgZ(1,"td",3),a._uU(2),a.qZA(),a.qZA()),2&t){const t=a.oxw();a.xp6(1),a.Udp("padding-top",t._cellPadding)("padding-bottom",t._cellPadding),a.uIk("colspan",t.numCols),a.xp6(1),a.hij(" ",t.label," ")}}function T(t,e){if(1&t&&(a.TgZ(0,"td",7),a._uU(1),a.qZA()),2&t){const t=a.oxw(2);a.Udp("padding-top",t._cellPadding)("padding-bottom",t._cellPadding),a.uIk("colspan",t._firstRowOffset),a.xp6(1),a.hij(" ",t._firstRowOffset>=t.labelMinRequiredCells?t.label:""," ")}}function M(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"td",8),a.NdJ("click",function(e){const i=a.CHM(t).$implicit;return a.oxw(2)._cellClicked(i,e)}),a.TgZ(1,"div",9),a._uU(2),a.qZA(),a._UZ(3,"div",10),a.qZA()}if(2&t){const t=e.$implicit,i=e.index,n=a.oxw().index,r=a.oxw();a.Udp("width",r._cellWidth)("padding-top",r._cellPadding)("padding-bottom",r._cellPadding),a.ekj("mat-calendar-body-disabled",!t.enabled)("mat-calendar-body-active",r._isActiveCell(n,i))("mat-calendar-body-range-start",r._isRangeStart(t.compareValue))("mat-calendar-body-range-end",r._isRangeEnd(t.compareValue))("mat-calendar-body-in-range",r._isInRange(t.compareValue))("mat-calendar-body-comparison-bridge-start",r._isComparisonBridgeStart(t.compareValue,n,i))("mat-calendar-body-comparison-bridge-end",r._isComparisonBridgeEnd(t.compareValue,n,i))("mat-calendar-body-comparison-start",r._isComparisonStart(t.compareValue))("mat-calendar-body-comparison-end",r._isComparisonEnd(t.compareValue))("mat-calendar-body-in-comparison-range",r._isInComparisonRange(t.compareValue))("mat-calendar-body-preview-start",r._isPreviewStart(t.compareValue))("mat-calendar-body-preview-end",r._isPreviewEnd(t.compareValue))("mat-calendar-body-in-preview",r._isInPreview(t.compareValue)),a.Q6J("ngClass",t.cssClasses)("tabindex",r._isActiveCell(n,i)?0:-1),a.uIk("data-mat-row",n)("data-mat-col",i)("aria-label",t.ariaLabel)("aria-disabled",!t.enabled||null)("aria-selected",r._isSelected(t.compareValue)),a.xp6(1),a.ekj("mat-calendar-body-selected",r._isSelected(t.compareValue))("mat-calendar-body-comparison-identical",r._isComparisonIdentical(t.compareValue))("mat-calendar-body-today",r.todayValue===t.compareValue),a.xp6(1),a.hij(" ",t.displayValue," ")}}function L(t,e){if(1&t&&(a.TgZ(0,"tr",4),a.YNc(1,T,2,6,"td",5),a.YNc(2,M,4,46,"td",6),a.qZA()),2&t){const t=e.$implicit,i=e.index,n=a.oxw();a.xp6(1),a.Q6J("ngIf",0===i&&n._firstRowOffset),a.xp6(1),a.Q6J("ngForOf",t)}}function I(t,e){if(1&t&&(a.TgZ(0,"th",5),a._uU(1),a.qZA()),2&t){const t=e.$implicit;a.uIk("aria-label",t.long),a.xp6(1),a.Oqu(t.narrow)}}const O=["*"];function D(t,e){}function R(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"mat-month-view",5),a.NdJ("activeDateChange",function(e){return a.CHM(t),a.oxw().activeDate=e})("_userSelection",function(e){return a.CHM(t),a.oxw()._dateSelected(e)}),a.qZA()}if(2&t){const t=a.oxw();a.Q6J("activeDate",t.activeDate)("selected",t.selected)("dateFilter",t.dateFilter)("maxDate",t.maxDate)("minDate",t.minDate)("dateClass",t.dateClass)("comparisonStart",t.comparisonStart)("comparisonEnd",t.comparisonEnd)}}function N(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"mat-year-view",6),a.NdJ("activeDateChange",function(e){return a.CHM(t),a.oxw().activeDate=e})("monthSelected",function(e){return a.CHM(t),a.oxw()._monthSelectedInYearView(e)})("selectedChange",function(e){return a.CHM(t),a.oxw()._goToDateInView(e,"month")}),a.qZA()}if(2&t){const t=a.oxw();a.Q6J("activeDate",t.activeDate)("selected",t.selected)("dateFilter",t.dateFilter)("maxDate",t.maxDate)("minDate",t.minDate)("dateClass",t.dateClass)}}function P(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"mat-multi-year-view",7),a.NdJ("activeDateChange",function(e){return a.CHM(t),a.oxw().activeDate=e})("yearSelected",function(e){return a.CHM(t),a.oxw()._yearSelectedInMultiYearView(e)})("selectedChange",function(e){return a.CHM(t),a.oxw()._goToDateInView(e,"year")}),a.qZA()}if(2&t){const t=a.oxw();a.Q6J("activeDate",t.activeDate)("selected",t.selected)("dateFilter",t.dateFilter)("maxDate",t.maxDate)("minDate",t.minDate)("dateClass",t.dateClass)}}function F(t,e){}const Z=["button"];function B(t,e){1&t&&(a.O4$(),a.TgZ(0,"svg",3),a._UZ(1,"path",4),a.qZA())}const U=[[["","matDatepickerToggleIcon",""]]],q=["[matDatepickerToggleIcon]"];let z=(()=>{class t{constructor(){this.changes=new u.x,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}formatYearRange(t,e){return`${t} \u2013 ${e}`}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=a.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})();class H{constructor(t,e,i,n,r={},s=t,o){this.value=t,this.displayValue=e,this.ariaLabel=i,this.enabled=n,this.cssClasses=r,this.compareValue=s,this.rawValue=o}}let Y=(()=>{class t{constructor(t,e){this._elementRef=t,this._ngZone=e,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new a.vpe,this.previewChange=new a.vpe,this._enterHandler=t=>{if(this._skipNextFocus&&"focus"===t.type)this._skipNextFocus=!1;else if(t.target&&this.isRange){const e=this._getCellFromElement(t.target);e&&this._ngZone.run(()=>this.previewChange.emit({value:e.enabled?e:null,event:t}))}},this._leaveHandler=t=>{null!==this.previewEnd&&this.isRange&&t.target&&G(t.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:t}))},e.runOutsideAngular(()=>{const e=t.nativeElement;e.addEventListener("mouseenter",this._enterHandler,!0),e.addEventListener("focus",this._enterHandler,!0),e.addEventListener("mouseleave",this._leaveHandler,!0),e.addEventListener("blur",this._leaveHandler,!0)})}_cellClicked(t,e){t.enabled&&this.selectedValueChange.emit({value:t.value,event:e})}_isSelected(t){return this.startValue===t||this.endValue===t}ngOnChanges(t){const e=t.numCols,{rows:i,numCols:n}=this;(t.rows||e)&&(this._firstRowOffset=i&&i.length&&i[0].length?n-i[0].length:0),(t.cellAspectRatio||e||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/n+"%"),!e&&this._cellWidth||(this._cellWidth=100/n+"%")}ngOnDestroy(){const t=this._elementRef.nativeElement;t.removeEventListener("mouseenter",this._enterHandler,!0),t.removeEventListener("focus",this._enterHandler,!0),t.removeEventListener("mouseleave",this._leaveHandler,!0),t.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(t,e){let i=t*this.numCols+e;return t&&(i-=this._firstRowOffset),i==this.activeCell}_focusActiveCell(t=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,g.q)(1)).subscribe(()=>{const e=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");e&&(t||(this._skipNextFocus=!0),e.focus())})})}_isRangeStart(t){return j(t,this.startValue,this.endValue)}_isRangeEnd(t){return V(t,this.startValue,this.endValue)}_isInRange(t){return Q(t,this.startValue,this.endValue,this.isRange)}_isComparisonStart(t){return j(t,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(t,e,i){if(!this._isComparisonStart(t)||this._isRangeStart(t)||!this._isInRange(t))return!1;let n=this.rows[e][i-1];if(!n){const t=this.rows[e-1];n=t&&t[t.length-1]}return n&&!this._isRangeEnd(n.compareValue)}_isComparisonBridgeEnd(t,e,i){if(!this._isComparisonEnd(t)||this._isRangeEnd(t)||!this._isInRange(t))return!1;let n=this.rows[e][i+1];if(!n){const t=this.rows[e+1];n=t&&t[0]}return n&&!this._isRangeStart(n.compareValue)}_isComparisonEnd(t){return V(t,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(t){return Q(t,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(t){return this.comparisonStart===this.comparisonEnd&&t===this.comparisonStart}_isPreviewStart(t){return j(t,this.previewStart,this.previewEnd)}_isPreviewEnd(t){return V(t,this.previewStart,this.previewEnd)}_isInPreview(t){return Q(t,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(t){let e;if(G(t)?e=t:G(t.parentNode)&&(e=t.parentNode),e){const t=e.getAttribute("data-mat-row"),i=e.getAttribute("data-mat-col");if(t&&i)return this.rows[parseInt(t)][parseInt(i)]}return null}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(a.R0b))},t.\u0275cmp=a.Xpm({type:t,selectors:[["","mat-calendar-body",""]],hostAttrs:["role","grid","aria-readonly","true",1,"mat-calendar-body"],inputs:{numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",previewStart:"previewStart",previewEnd:"previewEnd",label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange"},exportAs:["matCalendarBody"],features:[a.TTD],attrs:E,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["aria-hidden","true","class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell",3,"ngClass","tabindex","mat-calendar-body-disabled","mat-calendar-body-active","mat-calendar-body-range-start","mat-calendar-body-range-end","mat-calendar-body-in-range","mat-calendar-body-comparison-bridge-start","mat-calendar-body-comparison-bridge-end","mat-calendar-body-comparison-start","mat-calendar-body-comparison-end","mat-calendar-body-in-comparison-range","mat-calendar-body-preview-start","mat-calendar-body-preview-end","mat-calendar-body-in-preview","width","paddingTop","paddingBottom","click",4,"ngFor","ngForOf"],["aria-hidden","true",1,"mat-calendar-body-label"],["role","gridcell",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],[1,"mat-calendar-body-cell-preview"]],template:function(t,e){1&t&&(a.YNc(0,k,3,6,"tr",0),a.YNc(1,L,3,2,"tr",1)),2&t&&(a.Q6J("ngIf",e._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){outline:dotted 2px}[dir=rtl] .mat-calendar-body-label{text-align:right}@media(hover: none){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){background-color:transparent}}\n'],encapsulation:2,changeDetection:0}),t})();function G(t){return"TD"===t.nodeName}function j(t,e,i){return null!==i&&e!==i&&t=e&&t===i}function Q(t,e,i,n){return n&&null!==e&&null!==i&&e!==i&&t>=e&&t<=i}class W{constructor(t,e){this.start=t,this.end=e}}let J=(()=>{class t{constructor(t,e){this.selection=t,this._adapter=e,this._selectionChanged=new u.x,this.selectionChanged=this._selectionChanged,this.selection=t}updateSelection(t,e){const i=this.selection;this.selection=t,this._selectionChanged.next({selection:t,source:e,oldValue:i})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(t){return this._adapter.isDateInstance(t)&&this._adapter.isValid(t)}}return t.\u0275fac=function(e){return new(e||t)(a.LFG(void 0),a.LFG(h._A))},t.\u0275prov=a.Yz7({token:t,factory:t.\u0275fac}),t})(),X=(()=>{class t extends J{constructor(t){super(null,t)}add(t){super.updateSelection(t,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const e=new t(this._adapter);return e.updateSelection(this.selection,this),e}}return t.\u0275fac=function(e){return new(e||t)(a.LFG(h._A))},t.\u0275prov=a.Yz7({token:t,factory:t.\u0275fac}),t})();const K={provide:J,deps:[[new a.FiY,new a.tp0,J],h._A],useFactory:function(t,e){return t||new X(e)}},$=new a.OlP("MAT_DATE_RANGE_SELECTION_STRATEGY");let tt=(()=>{class t{constructor(t,e,i,n,r){this._changeDetectorRef=t,this._dateFormats=e,this._dateAdapter=i,this._dir=n,this._rangeStrategy=r,this._rerenderSubscription=d.w0.EMPTY,this.selectedChange=new a.vpe,this._userSelection=new a.vpe,this.activeDateChange=new a.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){const e=this._activeDate,i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(i,this.minDate,this.maxDate),this._hasSameMonthAndYear(e,this._activeDate)||this._init()}get selected(){return this._selected}set selected(t){this._selected=t instanceof W?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,y.O)(null)).subscribe(()=>this._init())}ngOnChanges(t){const e=t.comparisonStart||t.comparisonEnd;e&&!e.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(t){const e=t.value,i=this._dateAdapter.getYear(this.activeDate),n=this._dateAdapter.getMonth(this.activeDate),r=this._dateAdapter.createDate(i,n,e);let s,o;this._selected instanceof W?(s=this._getDateInCurrentMonth(this._selected.start),o=this._getDateInCurrentMonth(this._selected.end)):s=o=this._getDateInCurrentMonth(this._selected),s===e&&o===e||this.selectedChange.emit(r),this._userSelection.emit({value:r,event:t.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_handleCalendarBodyKeydown(t){const e=this._activeDate,i=this._isRtl();switch(t.keyCode){case m.oh:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,i?1:-1);break;case m.SV:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,i?-1:1);break;case m.LH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case m.JH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case m.Sd:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case m.uR:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case m.Ku:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case m.VM:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case m.K5:case m.L_:return void(this.dateFilter&&!this.dateFilter(this._activeDate)||(this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:t}),t.preventDefault()));case m.hY:return void(null==this._previewEnd||(0,m.Vb)(t)||(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:t}),t.preventDefault(),t.stopPropagation()));default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(t)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(t){this._matCalendarBody._focusActiveCell(t)}_previewChanged({event:t,value:e}){if(this._rangeStrategy){const i=this._rangeStrategy.createPreview(e?e.rawValue:null,this.selected,t);this._previewStart=this._getCellCompareValue(i.start),this._previewEnd=this._getCellCompareValue(i.end),this._changeDetectorRef.detectChanges()}}_initWeekdays(){const t=this._dateAdapter.getFirstDayOfWeek(),e=this._dateAdapter.getDayOfWeekNames("narrow");let i=this._dateAdapter.getDayOfWeekNames("long").map((t,i)=>({long:t,narrow:e[i]}));this._weekdays=i.slice(t).concat(i.slice(0,t))}_createWeekCells(){const t=this._dateAdapter.getNumDaysInMonth(this.activeDate),e=this._dateAdapter.getDateNames();this._weeks=[[]];for(let i=0,n=this._firstWeekOffset;i=0)&&(!this.maxDate||this._dateAdapter.compareDate(t,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(t))}_getDateInCurrentMonth(t){return t&&this._hasSameMonthAndYear(t,this.activeDate)?this._dateAdapter.getDate(t):null}_hasSameMonthAndYear(t,e){return!(!t||!e||this._dateAdapter.getMonth(t)!=this._dateAdapter.getMonth(e)||this._dateAdapter.getYear(t)!=this._dateAdapter.getYear(e))}_getCellCompareValue(t){if(t){const e=this._dateAdapter.getYear(t),i=this._dateAdapter.getMonth(t),n=this._dateAdapter.getDate(t);return new Date(e,i,n).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(t){t instanceof W?(this._rangeStart=this._getCellCompareValue(t.start),this._rangeEnd=this._getCellCompareValue(t.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(t),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.sBO),a.Y36(h.sG,8),a.Y36(h._A,8),a.Y36(S.Is,8),a.Y36($,8))},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-month-view"]],viewQuery:function(t,e){if(1&t&&a.Gf(Y,5),2&t){let t;a.iGM(t=a.CRH())&&(e._matCalendarBody=t.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[a.TTD],decls:7,vars:13,consts:[["role","presentation",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["colspan","7","aria-hidden","true",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","previewChange","keydown"],["scope","col"]],template:function(t,e){1&t&&(a.TgZ(0,"table",0),a.TgZ(1,"thead",1),a.TgZ(2,"tr"),a.YNc(3,I,2,2,"th",2),a.qZA(),a.TgZ(4,"tr"),a._UZ(5,"th",3),a.qZA(),a.qZA(),a.TgZ(6,"tbody",4),a.NdJ("selectedValueChange",function(t){return e._dateSelected(t)})("previewChange",function(t){return e._previewChanged(t)})("keydown",function(t){return e._handleCalendarBodyKeydown(t)}),a.qZA(),a.qZA()),2&t&&(a.xp6(3),a.Q6J("ngForOf",e._weekdays),a.xp6(3),a.Q6J("label",e._monthLabel)("rows",e._weeks)("todayValue",e._todayDate)("startValue",e._rangeStart)("endValue",e._rangeEnd)("comparisonStart",e._comparisonRangeStart)("comparisonEnd",e._comparisonRangeEnd)("previewStart",e._previewStart)("previewEnd",e._previewEnd)("isRange",e._isRange)("labelMinRequiredCells",3)("activeCell",e._dateAdapter.getDate(e.activeDate)-1))},directives:[o.sg,Y],encapsulation:2,changeDetection:0}),t})();const et=24;let it=(()=>{class t{constructor(t,e,i){this._changeDetectorRef=t,this._dateAdapter=e,this._dir=i,this._rerenderSubscription=d.w0.EMPTY,this.selectedChange=new a.vpe,this.yearSelected=new a.vpe,this.activeDateChange=new a.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){let e=this._activeDate;const i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(i,this.minDate,this.maxDate),nt(this._dateAdapter,e,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(t){this._selected=t instanceof W?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setSelectedYear(t)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,y.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const t=this._dateAdapter.getYear(this._activeDate)-rt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let e=0,i=[];ethis._createCellForYear(t))),i=[]);this._changeDetectorRef.markForCheck()}_yearSelected(t){const e=t.value;this.yearSelected.emit(this._dateAdapter.createDate(e,0,1));let i=this._dateAdapter.getMonth(this.activeDate),n=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,i,1));this.selectedChange.emit(this._dateAdapter.createDate(e,i,Math.min(this._dateAdapter.getDate(this.activeDate),n)))}_handleCalendarBodyKeydown(t){const e=this._activeDate,i=this._isRtl();switch(t.keyCode){case m.oh:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,i?1:-1);break;case m.SV:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,i?-1:1);break;case m.LH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case m.JH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case m.Sd:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-rt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case m.uR:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,et-rt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case m.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-240:-24);break;case m.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?240:et);break;case m.K5:case m.L_:this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:t});break;default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}_getActiveCell(){return rt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_createCellForYear(t){const e=this._dateAdapter.createDate(t,0,1),i=this._dateAdapter.getYearName(e),n=this.dateClass?this.dateClass(e,"multi-year"):void 0;return new H(t,i,i,this._shouldEnableYear(t),n)}_shouldEnableYear(t){if(null==t||this.maxDate&&t>this._dateAdapter.getYear(this.maxDate)||this.minDate&&t{class t{constructor(t,e,i,n){this._changeDetectorRef=t,this._dateFormats=e,this._dateAdapter=i,this._dir=n,this._rerenderSubscription=d.w0.EMPTY,this.selectedChange=new a.vpe,this.monthSelected=new a.vpe,this.activeDateChange=new a.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){let e=this._activeDate;const i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(i,this.minDate,this.maxDate),this._dateAdapter.getYear(e)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(t){this._selected=t instanceof W?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setSelectedMonth(t)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,y.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(t){const e=t.value,i=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1);this.monthSelected.emit(i);const n=this._dateAdapter.getNumDaysInMonth(i);this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),n)))}_handleCalendarBodyKeydown(t){const e=this._activeDate,i=this._isRtl();switch(t.keyCode){case m.oh:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,i?1:-1);break;case m.SV:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,i?-1:1);break;case m.LH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case m.JH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case m.Sd:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case m.uR:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case m.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-10:-1);break;case m.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?10:1);break;case m.K5:case m.L_:this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:t});break;default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let t=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(e=>e.map(e=>this._createCellForMonth(e,t[e]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_getMonthInCurrentYear(t){return t&&this._dateAdapter.getYear(t)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(t):null}_createCellForMonth(t,e){const i=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1),n=this._dateAdapter.format(i,this._dateFormats.display.monthYearA11yLabel),r=this.dateClass?this.dateClass(i,"year"):void 0;return new H(t,e.toLocaleUpperCase(),n,this._shouldEnableMonth(t),r)}_shouldEnableMonth(t){const e=this._dateAdapter.getYear(this.activeDate);if(null==t||this._isYearAndMonthAfterMaxDate(e,t)||this._isYearAndMonthBeforeMinDate(e,t))return!1;if(!this.dateFilter)return!0;for(let i=this._dateAdapter.createDate(e,t,1);this._dateAdapter.getMonth(i)==t;i=this._dateAdapter.addCalendarDays(i,1))if(this.dateFilter(i))return!0;return!1}_isYearAndMonthAfterMaxDate(t,e){if(this.maxDate){const i=this._dateAdapter.getYear(this.maxDate),n=this._dateAdapter.getMonth(this.maxDate);return t>i||t===i&&e>n}return!1}_isYearAndMonthBeforeMinDate(t,e){if(this.minDate){const i=this._dateAdapter.getYear(this.minDate),n=this._dateAdapter.getMonth(this.minDate);return t{class t{constructor(t,e,i,n,r){this._intl=t,this.calendar=e,this._dateAdapter=i,this._dateFormats=n,this._buttonDescriptionId="mat-calendar-button-"+at++,this.calendar.stateChanges.subscribe(()=>r.markForCheck())}get periodButtonText(){if("month"==this.calendar.currentView)return this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase();if("year"==this.calendar.currentView)return this._dateAdapter.getYearName(this.calendar.activeDate);const t=this._dateAdapter.getYear(this.calendar.activeDate)-rt(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),e=t+et-1,i=this._dateAdapter.getYearName(this._dateAdapter.createDate(t,0,1)),n=this._dateAdapter.getYearName(this._dateAdapter.createDate(e,0,1));return this._intl.formatYearRange(i,n)}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-24)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:et)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(t,e){return"month"==this.calendar.currentView?this._dateAdapter.getYear(t)==this._dateAdapter.getYear(e)&&this._dateAdapter.getMonth(t)==this._dateAdapter.getMonth(e):"year"==this.calendar.currentView?this._dateAdapter.getYear(t)==this._dateAdapter.getYear(e):nt(this._dateAdapter,t,e,this.calendar.minDate,this.calendar.maxDate)}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(z),a.Y36((0,a.Gpc)(()=>ct)),a.Y36(h._A,8),a.Y36(h.sG,8),a.Y36(a.sBO))},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:O,decls:10,vars:10,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","cdkAriaLive","polite",1,"mat-calendar-period-button",3,"click"],[1,"mat-calendar-arrow"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"]],template:function(t,e){1&t&&(a.F$t(),a.TgZ(0,"div",0),a.TgZ(1,"div",1),a.TgZ(2,"button",2),a.NdJ("click",function(){return e.currentPeriodClicked()}),a.TgZ(3,"span"),a._uU(4),a.qZA(),a._UZ(5,"div",3),a.qZA(),a._UZ(6,"div",4),a.Hsn(7),a.TgZ(8,"button",5),a.NdJ("click",function(){return e.previousClicked()}),a.qZA(),a.TgZ(9,"button",6),a.NdJ("click",function(){return e.nextClicked()}),a.qZA(),a.qZA(),a.qZA()),2&t&&(a.xp6(2),a.uIk("aria-label",e.periodButtonLabel)("aria-describedby",e._buttonDescriptionId),a.xp6(1),a.uIk("id",e._buttonDescriptionId),a.xp6(1),a.Oqu(e.periodButtonText),a.xp6(1),a.ekj("mat-calendar-invert","month"!==e.calendar.currentView),a.xp6(3),a.Q6J("disabled",!e.previousEnabled()),a.uIk("aria-label",e.prevButtonLabel),a.xp6(1),a.Q6J("disabled",!e.nextEnabled()),a.uIk("aria-label",e.nextButtonLabel))},directives:[l.lW,n.Qr],encapsulation:2,changeDetection:0}),t})(),ct=(()=>{class t{constructor(t,e,i,n){this._dateAdapter=e,this._dateFormats=i,this._changeDetectorRef=n,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new a.vpe,this.yearSelected=new a.vpe,this.monthSelected=new a.vpe,this.viewChanged=new a.vpe(!0),this._userSelection=new a.vpe,this.stateChanges=new u.x,this._intlChanges=t.changes.subscribe(()=>{n.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(t){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get selected(){return this._selected}set selected(t){this._selected=t instanceof W?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get activeDate(){return this._clampedActiveDate}set activeDate(t){this._clampedActiveDate=this._dateAdapter.clampDate(t,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(t){const e=this._currentView!==t?t:null;this._currentView=t,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),e&&this.viewChanged.emit(e)}ngAfterContentInit(){this._calendarHeaderPortal=new s.C5(this.headerComponent||lt),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(t){const e=t.minDate||t.maxDate||t.dateFilter;if(e&&!e.firstChange){const t=this._getCurrentViewComponent();t&&(this._changeDetectorRef.detectChanges(),t._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){const t=this.currentView;let e;e="month"===t?this.monthView:"year"===t?this.yearView:this.multiYearView,e._init()}_dateSelected(t){const e=t.value;(this.selected instanceof W||e&&!this._dateAdapter.sameDate(e,this.selected))&&this.selectedChange.emit(e),this._userSelection.emit(t)}_yearSelectedInMultiYearView(t){this.yearSelected.emit(t)}_monthSelectedInYearView(t){this.monthSelected.emit(t)}_goToDateInView(t,e){this.activeDate=t,this.currentView=e}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(z),a.Y36(h._A,8),a.Y36(h.sG,8),a.Y36(a.sBO))},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-calendar"]],viewQuery:function(t,e){if(1&t&&(a.Gf(tt,5),a.Gf(ot,5),a.Gf(it,5)),2&t){let t;a.iGM(t=a.CRH())&&(e.monthView=t.first),a.iGM(t=a.CRH())&&(e.yearView=t.first),a.iGM(t=a.CRH())&&(e.multiYearView=t.first)}},hostAttrs:[1,"mat-calendar"],inputs:{startView:"startView",startAt:"startAt",selected:"selected",minDate:"minDate",maxDate:"maxDate",headerComponent:"headerComponent",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[a._Bn([K]),a.TTD],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange"]],template:function(t,e){1&t&&(a.YNc(0,D,0,0,"ng-template",0),a.TgZ(1,"div",1),a.YNc(2,R,1,8,"mat-month-view",2),a.YNc(3,N,1,6,"mat-year-view",3),a.YNc(4,P,1,6,"mat-multi-year-view",4),a.qZA()),2&t&&(a.Q6J("cdkPortalOutlet",e._calendarHeaderPortal),a.xp6(1),a.Q6J("ngSwitch",e.currentView),a.xp6(1),a.Q6J("ngSwitchCase","month"),a.xp6(1),a.Q6J("ngSwitchCase","year"),a.xp6(1),a.Q6J("ngSwitchCase","multi-year"))},directives:[s.Pl,n.kH,o.RF,o.n9,tt,ot,it],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(33% / 7 - 16px)}.mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:.04}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top-width:5px;border-top-style:solid;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}\n'],encapsulation:2,changeDetection:0}),t})();const ht={transformPanel:(0,w.X$)("transformPanel",[(0,w.eR)("void => enter-dropdown",(0,w.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,w.F4)([(0,w.oB)({opacity:0,transform:"scale(1, 0.8)"}),(0,w.oB)({opacity:1,transform:"scale(1, 1)"})]))),(0,w.eR)("void => enter-dialog",(0,w.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,w.F4)([(0,w.oB)({opacity:0,transform:"scale(0.7)"}),(0,w.oB)({transform:"none",opacity:1})]))),(0,w.eR)("* => void",(0,w.jt)("100ms linear",(0,w.oB)({opacity:0})))]),fadeInCalendar:(0,w.X$)("fadeInCalendar",[(0,w.SB)("void",(0,w.oB)({opacity:0})),(0,w.SB)("enter",(0,w.oB)({opacity:1})),(0,w.eR)("void => *",(0,w.jt)("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let ut=0;const dt=new a.OlP("mat-datepicker-scroll-strategy"),pt={provide:dt,deps:[r.aV],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class ft{constructor(t){this._elementRef=t}}const mt=(0,h.pj)(ft);let gt=(()=>{class t extends mt{constructor(t,e,i,n,r,s){super(t),this._changeDetectorRef=e,this._globalModel=i,this._dateAdapter=n,this._rangeSelectionStrategy=r,this._subscriptions=new d.w0,this._animationDone=new u.x,this._actionsPortal=null,this._closeButtonText=s.closeCalendarLabel}ngOnInit(){this._model=this._actionsPortal?this._globalModel.clone():this._globalModel,this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(t){const e=this._model.selection,i=t.value,n=e instanceof W;if(n&&this._rangeSelectionStrategy){const n=this._rangeSelectionStrategy.selectionFinished(i,e,t.event);this._model.updateSelection(n,this)}else!i||!n&&this._dateAdapter.sameDate(i,e)||this._model.add(i);this._model&&!this._model.isComplete()||this._actionsPortal||this.datepicker.close()}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(J),a.Y36(h._A),a.Y36($,8),a.Y36(z))},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-datepicker-content"]],viewQuery:function(t,e){if(1&t&&a.Gf(ct,5),2&t){let t;a.iGM(t=a.CRH())&&(e._calendar=t.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(t,e){1&t&&a.WFA("@transformPanel.done",function(){return e._animationDone.next()}),2&t&&(a.d8E("@transformPanel",e._animationState),a.ekj("mat-datepicker-content-touch",e.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[a.qOj],decls:5,vars:20,consts:[["cdkTrapFocus","",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","yearSelected","monthSelected","viewChanged","_userSelection"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(t,e){1&t&&(a.TgZ(0,"div",0),a.TgZ(1,"mat-calendar",1),a.NdJ("yearSelected",function(t){return e.datepicker._selectYear(t)})("monthSelected",function(t){return e.datepicker._selectMonth(t)})("viewChanged",function(t){return e.datepicker._viewChanged(t)})("_userSelection",function(t){return e._handleUserSelection(t)}),a.qZA(),a.YNc(2,F,0,0,"ng-template",2),a.TgZ(3,"button",3),a.NdJ("focus",function(){return e._closeButtonFocused=!0})("blur",function(){return e._closeButtonFocused=!1})("click",function(){return e.datepicker.close()}),a._uU(4),a.qZA(),a.qZA()),2&t&&(a.ekj("mat-datepicker-content-container-with-actions",e._actionsPortal),a.xp6(1),a.Q6J("id",e.datepicker.id)("ngClass",e.datepicker.panelClass)("startAt",e.datepicker.startAt)("startView",e.datepicker.startView)("minDate",e.datepicker._getMinDate())("maxDate",e.datepicker._getMaxDate())("dateFilter",e.datepicker._getDateFilter())("headerComponent",e.datepicker.calendarHeaderComponent)("selected",e._getSelected())("dateClass",e.datepicker.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)("@fadeInCalendar","enter"),a.xp6(1),a.Q6J("cdkPortalOutlet",e._actionsPortal),a.xp6(1),a.ekj("cdk-visually-hidden",!e._closeButtonFocused),a.Q6J("color",e.color||"primary"),a.xp6(1),a.Oqu(e._closeButtonText))},directives:[n.mK,ct,o.mk,s.Pl,l.lW],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}\n"],encapsulation:2,data:{animation:[ht.transformPanel,ht.fadeInCalendar]},changeDetection:0}),t})(),yt=(()=>{class t{constructor(t,e,i,n,r,s,o,l,c){this._overlay=e,this._ngZone=i,this._viewContainerRef=n,this._dateAdapter=s,this._dir=o,this._model=c,this._inputStateChanges=d.w0.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new a.vpe,this.monthSelected=new a.vpe,this.viewChanged=new a.vpe(!0),this.openedStream=new a.vpe,this.closedStream=new a.vpe,this._opened=!1,this.id="mat-datepicker-"+ut++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new u.x,this._scrollStrategy=r}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(t){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(t){this._color=t}get touchUi(){return this._touchUi}set touchUi(t){this._touchUi=(0,v.Ig)(t)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(t){const e=(0,v.Ig)(t);e!==this._disabled&&(this._disabled=e,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(t){this._restoreFocus=(0,v.Ig)(t)}get panelClass(){return this._panelClass}set panelClass(t){this._panelClass=(0,v.du)(t)}get opened(){return this._opened}set opened(t){(0,v.Ig)(t)?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}ngOnChanges(t){const e=t.xPosition||t.yPosition;if(e&&!e.firstChange&&this._overlayRef){const t=this._overlayRef.getConfig().positionStrategy;t instanceof r._G&&(this._setConnectedPositions(t),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(t){this._model.add(t)}_selectYear(t){this.yearSelected.emit(t)}_selectMonth(t){this.monthSelected.emit(t)}_viewChanged(t){this.viewChanged.emit(t)}registerInput(t){return this._inputStateChanges.unsubscribe(),this.datepickerInput=t,this._inputStateChanges=t.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(t){this._actionsPortal=t}removeActions(t){t===this._actionsPortal&&(this._actionsPortal=null)}open(){this._opened||this.disabled||(this._focusedElementBeforeOpen=(0,_.ht)(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened)return;if(this._componentRef){const t=this._componentRef.instance;t._startExitAnimation(),t._animationDone.pipe((0,g.q)(1)).subscribe(()=>this._destroyOverlay())}const t=()=>{this._opened&&(this._opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(t)):t()}_applyPendingSelection(){var t,e;null===(e=null===(t=this._componentRef)||void 0===t?void 0:t.instance)||void 0===e||e._applyPendingSelection()}_forwardContentValues(t){t.datepicker=this,t.color=this.color,t._actionsPortal=this._actionsPortal}_openOverlay(){this._destroyOverlay();const t=this.touchUi,e=this.datepickerInput.getOverlayLabelId(),i=new s.C5(gt,this._viewContainerRef),n=this._overlayRef=this._overlay.create(new r.X_({positionStrategy:t?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[t?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:t?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(t?"dialog":"popup")})),o=n.overlayElement;o.setAttribute("role","dialog"),e&&o.setAttribute("aria-labelledby",e),t&&o.setAttribute("aria-modal","true"),this._getCloseStream(n).subscribe(t=>{t&&t.preventDefault(),this.close()}),this._componentRef=n.attach(i),this._forwardContentValues(this._componentRef.instance),t||this._ngZone.onStable.pipe((0,g.q)(1)).subscribe(()=>n.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const t=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(t)}_setConnectedPositions(t){const e="end"===this.xPosition?"end":"start",i="start"===e?"end":"start",n="above"===this.yPosition?"bottom":"top",r="top"===n?"bottom":"top";return t.withPositions([{originX:e,originY:r,overlayX:e,overlayY:n},{originX:e,originY:n,overlayX:e,overlayY:r},{originX:i,originY:r,overlayX:i,overlayY:n},{originX:i,originY:n,overlayX:i,overlayY:r}])}_getCloseStream(t){return(0,p.T)(t.backdropClick(),t.detachments(),t.keydownEvents().pipe((0,b.h)(t=>t.keyCode===m.hY&&!(0,m.Vb)(t)||this.datepickerInput&&(0,m.Vb)(t,"altKey")&&t.keyCode===m.LH)))}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(r.aV),a.Y36(a.R0b),a.Y36(a.s_b),a.Y36(dt),a.Y36(h._A,8),a.Y36(S.Is,8),a.Y36(o.K0,8),a.Y36(J))},t.\u0275dir=a.lG2({type:t,inputs:{startView:"startView",xPosition:"xPosition",yPosition:"yPosition",startAt:"startAt",color:"color",touchUi:"touchUi",disabled:"disabled",restoreFocus:"restoreFocus",panelClass:"panelClass",opened:"opened",calendarHeaderComponent:"calendarHeaderComponent",dateClass:"dateClass"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[a.TTD]}),t})(),bt=(()=>{class t extends yt{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=a.n5z(t)))(i||t)}}(),t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[a._Bn([K,{provide:yt,useExisting:t}]),a.qOj],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),t})();class vt{constructor(t,e){this.target=t,this.targetElement=e,this.value=this.target.value}}let _t=(()=>{class t{constructor(t,e,i){this._elementRef=t,this._dateAdapter=e,this._dateFormats=i,this.dateChange=new a.vpe,this.dateInput=new a.vpe,this.stateChanges=new u.x,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=d.w0.EMPTY,this._localeSubscription=d.w0.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=t=>{const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t.value));return!e||this._matchesFilter(e)?null:{matDatepickerFilter:!0}},this._minValidator=t=>{const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t.value)),i=this._getMinDate();return!i||!e||this._dateAdapter.compareDate(i,e)<=0?null:{matDatepickerMin:{min:i,actual:e}}},this._maxValidator=t=>{const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t.value)),i=this._getMaxDate();return!i||!e||this._dateAdapter.compareDate(i,e)>=0?null:{matDatepickerMax:{max:i,actual:e}}},this._lastValueValid=!1,this._localeSubscription=e.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(t){this._assignValueProgrammatically(t)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(t){const e=(0,v.Ig)(t),i=this._elementRef.nativeElement;this._disabled!==e&&(this._disabled=e,this.stateChanges.next(void 0)),e&&this._isInitialized&&i.blur&&i.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(t){this._model=t,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(t=>{if(this._shouldHandleChangeEvent(t)){const e=this._getValueFromModel(t.selection);this._lastValueValid=this._isValidValue(e),this._cvaOnChange(e),this._onTouched(),this._formatValue(e),this.dateInput.emit(new vt(this,this._elementRef.nativeElement)),this.dateChange.emit(new vt(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(t){(function(t,e){const i=Object.keys(t);for(let n of i){const{previousValue:i,currentValue:r}=t[n];if(!e.isDateInstance(i)||!e.isDateInstance(r))return!0;if(!e.sameDate(i,r))return!0}return!1})(t,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(t){this._validatorOnChange=t}validate(t){return this._validator?this._validator(t):null}writeValue(t){this._assignValueProgrammatically(t)}registerOnChange(t){this._cvaOnChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_onKeydown(t){t.altKey&&t.keyCode===m.JH&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),t.preventDefault())}_onInput(t){const e=this._lastValueValid;let i=this._dateAdapter.parse(t,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(i),i=this._dateAdapter.getValidDateOrNull(i),this._dateAdapter.sameDate(i,this.value)?(t&&!this.value&&this._cvaOnChange(i),e!==this._lastValueValid&&this._validatorOnChange()):(this._assignValue(i),this._cvaOnChange(i),this.dateInput.emit(new vt(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new vt(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(t){this._elementRef.nativeElement.value=t?this._dateAdapter.format(t,this._dateFormats.display.dateInput):""}_assignValue(t){this._model?(this._assignValueToModel(t),this._pendingValue=null):this._pendingValue=t}_isValidValue(t){return!t||this._dateAdapter.isValid(t)}_parentDisabled(){return!1}_assignValueProgrammatically(t){t=this._dateAdapter.deserialize(t),this._lastValueValid=this._isValidValue(t),t=this._dateAdapter.getValidDateOrNull(t),this._assignValue(t),this._formatValue(t)}_matchesFilter(t){const e=this._getDateFilter();return!e||e(t)}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(h._A,8),a.Y36(h.sG,8))},t.\u0275dir=a.lG2({type:t,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[a.TTD]}),t})();const wt={provide:x.JU,useExisting:(0,a.Gpc)(()=>Ct),multi:!0},xt={provide:x.Cf,useExisting:(0,a.Gpc)(()=>Ct),multi:!0};let Ct=(()=>{class t extends _t{constructor(t,e,i,n){super(t,e,i),this._formField=n,this._closedSubscription=d.w0.EMPTY,this._validator=x.kI.compose(super._getValidators())}set matDatepicker(t){t&&(this._datepicker=t,this._closedSubscription=t.closedStream.subscribe(()=>this._onTouched()),this._registerModel(t.registerInput(this)))}get min(){return this._min}set min(t){const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t));this._dateAdapter.sameDate(e,this._min)||(this._min=e,this._validatorOnChange())}get max(){return this._max}set max(t){const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t));this._dateAdapter.sameDate(e,this._max)||(this._max=e,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(t){const e=this._matchesFilter(this.value);this._dateFilter=t,this._matchesFilter(this.value)!==e&&this._validatorOnChange()}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(t){return t}_assignValueToModel(t){this._model&&this._model.updateSelection(t,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(t){return t.source!==this}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(h._A,8),a.Y36(h.sG,8),a.Y36(C.G_,8))},t.\u0275dir=a.lG2({type:t,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(t,e){1&t&&a.NdJ("input",function(t){return e._onInput(t.target.value)})("change",function(){return e._onChange()})("blur",function(){return e._onBlur()})("keydown",function(t){return e._onKeydown(t)}),2&t&&(a.Ikx("disabled",e.disabled),a.uIk("aria-haspopup",e._datepicker?"dialog":null)("aria-owns",(null==e._datepicker?null:e._datepicker.opened)&&e._datepicker.id||null)("min",e.min?e._dateAdapter.toIso8601(e.min):null)("max",e.max?e._dateAdapter.toIso8601(e.max):null)("data-mat-calendar",e._datepicker?e._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[a._Bn([wt,xt,{provide:A.Jk,useExisting:t}]),a.qOj]}),t})(),At=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=a.lG2({type:t,selectors:[["","matDatepickerToggleIcon",""]]}),t})(),St=(()=>{class t{constructor(t,e,i){this._intl=t,this._changeDetectorRef=e,this._stateChanges=d.w0.EMPTY;const n=Number(i);this.tabIndex=n||0===n?n:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(t){this._disabled=(0,v.Ig)(t)}ngOnChanges(t){t.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(t){this.datepicker&&!this.disabled&&(this.datepicker.open(),t.stopPropagation())}_watchStateChanges(){const t=this.datepicker?this.datepicker.stateChanges:(0,f.of)(),e=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,f.of)(),i=this.datepicker?(0,p.T)(this.datepicker.openedStream,this.datepicker.closedStream):(0,f.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,p.T)(this._intl.changes,t,e,i).subscribe(()=>this._changeDetectorRef.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(z),a.Y36(a.sBO),a.$8M("tabindex"))},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-datepicker-toggle"]],contentQueries:function(t,e,i){if(1&t&&a.Suo(i,At,5),2&t){let t;a.iGM(t=a.CRH())&&(e._customIcon=t.first)}},viewQuery:function(t,e){if(1&t&&a.Gf(Z,5),2&t){let t;a.iGM(t=a.CRH())&&(e._button=t.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(t,e){1&t&&a.NdJ("click",function(t){return e._open(t)}),2&t&&(a.uIk("tabindex",null)("data-mat-calendar",e.datepicker?e.datepicker.id:null),a.ekj("mat-datepicker-toggle-active",e.datepicker&&e.datepicker.opened)("mat-accent",e.datepicker&&"accent"===e.datepicker.color)("mat-warn",e.datepicker&&"warn"===e.datepicker.color))},inputs:{tabIndex:"tabIndex",disabled:"disabled",datepicker:["for","datepicker"],ariaLabel:["aria-label","ariaLabel"],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[a.TTD],ngContentSelectors:q,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",4,"ngIf"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(t,e){1&t&&(a.F$t(U),a.TgZ(0,"button",0,1),a.YNc(2,B,2,0,"svg",2),a.Hsn(3),a.qZA()),2&t&&(a.Q6J("disabled",e.disabled)("disableRipple",e.disableRipple),a.uIk("aria-haspopup",e.datepicker?"dialog":null)("aria-label",e.ariaLabel||e._intl.openCalendarLabel)("tabindex",e.disabled?-1:e.tabIndex),a.xp6(2),a.Q6J("ngIf",!e._customIcon))},directives:[l.lW,o.O5],styles:[".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}\n"],encapsulation:2,changeDetection:0}),t})(),Et=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=a.oAB({type:t}),t.\u0275inj=a.cJS({providers:[z,pt],imports:[[o.ez,l.ot,r.U8,n.rt,s.eL,h.BQ],c.ZD]}),t})()},4608:(t,e,i)=>{"use strict";i.d(e,{WI:()=>k,Bq:()=>T,uw:()=>O,ZT:()=>D,Is:()=>R,so:()=>S});var n=i(369),r=i(6899),s=i(1572),o=i(1522),a=i(2526),l=i(1511),c=i(9666),h=i(970),u=i(2041),d=i(8868),p=i(9056),f=i(1258),m=i(1353),g=i(709),y=i(5842),b=i(4621);function v(t,e){}class _{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0}}const w={dialogContainer:(0,g.X$)("dialogContainer",[(0,g.SB)("void, exit",(0,g.oB)({opacity:0,transform:"scale(0.7)"})),(0,g.SB)("enter",(0,g.oB)({transform:"none"})),(0,g.eR)("* => enter",(0,g.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,g.oB)({transform:"none",opacity:1}))),(0,g.eR)("* => void, * => exit",(0,g.jt)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",(0,g.oB)({opacity:0})))])};let x=(()=>{class t extends r.en{constructor(t,e,i,n,r,o){super(),this._elementRef=t,this._focusTrapFactory=e,this._changeDetectorRef=i,this._config=r,this._focusMonitor=o,this._animationStateChanged=new s.vpe,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=t=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(t)),this._ariaLabelledBy=r.ariaLabelledBy||null,this._document=n}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}attachComponentPortal(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(t)}attachTemplatePortal(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(t)}_recaptureFocus(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}_trapFocus(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}_restoreFocus(){const t=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&t&&"function"==typeof t.focus){const e=(0,m.ht)(),i=this._elementRef.nativeElement;e&&e!==this._document.body&&e!==i&&!i.contains(e)||(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,m.ht)())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const t=this._elementRef.nativeElement,e=(0,m.ht)();return t===e||t.contains(e)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(b.qV),s.Y36(s.sBO),s.Y36(l.K0,8),s.Y36(_),s.Y36(b.tE))},t.\u0275dir=s.lG2({type:t,viewQuery:function(t,e){if(1&t&&s.Gf(r.Pl,7),2&t){let t;s.iGM(t=s.CRH())&&(e._portalOutlet=t.first)}},features:[s.qOj]}),t})(),C=(()=>{class t extends x{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:t,totalTime:e}){"enter"===t?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})):"exit"===t&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:e}))}_onAnimationStart({toState:t,totalTime:e}){"enter"===t?this._animationStateChanged.next({state:"opening",totalTime:e}):"exit"!==t&&"void"!==t||this._animationStateChanged.next({state:"closing",totalTime:e})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,e){1&t&&s.WFA("@dialogContainer.start",function(t){return e._onAnimationStart(t)})("@dialogContainer.done",function(t){return e._onAnimationDone(t)}),2&t&&(s.Ikx("id",e._id),s.uIk("role",e._config.role)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null),s.d8E("@dialogContainer",e._state))},features:[s.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&s.YNc(0,v,0,0,"ng-template",0)},directives:[r.Pl],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[w.dialogContainer]}}),t})(),A=0;class S{constructor(t,e,i="mat-dialog-"+A++){this._overlayRef=t,this._containerInstance=e,this.id=i,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new c.x,this._afterClosed=new c.x,this._beforeClosed=new c.x,this._state=0,e._id=i,e._animationStateChanged.pipe((0,d.h)(t=>"opened"===t.state),(0,p.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe((0,d.h)(t=>"closed"===t.state),(0,p.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),t.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),t.keydownEvents().pipe((0,d.h)(t=>t.keyCode===y.hY&&!this.disableClose&&!(0,y.Vb)(t))).subscribe(t=>{t.preventDefault(),E(this,"keyboard")}),t.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():E(this,"mouse")})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe((0,d.h)(t=>"closing"===t.state),(0,p.q)(1)).subscribe(e=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(t){let e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(t="",e=""){return this._overlayRef.updateSize({width:t,height:e}),this._overlayRef.updatePosition(),this}addPanelClass(t){return this._overlayRef.addPanelClass(t),this}removePanelClass(t){return this._overlayRef.removePanelClass(t),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function E(t,e,i){return void 0!==t._containerInstance&&(t._containerInstance._closeInteractionType=e),t.close(i)}const k=new s.OlP("MatDialogData"),T=new s.OlP("mat-dialog-default-options"),M=new s.OlP("mat-dialog-scroll-strategy"),L={provide:M,deps:[n.aV],useFactory:function(t){return()=>t.scrollStrategies.block()}};let I=(()=>{class t{constructor(t,e,i,n,r,s,o,a,l){this._overlay=t,this._injector=e,this._defaultOptions=i,this._parentDialog=n,this._overlayContainer=r,this._dialogRefConstructor=o,this._dialogContainerType=a,this._dialogDataToken=l,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new c.x,this._afterOpenedAtThisLevel=new c.x,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,h.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,f.O)(void 0))),this._scrollStrategy=s}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(t,e){(e=function(t,e){return Object.assign(Object.assign({},e),t)}(e,this._defaultOptions||new _)).id&&this.getDialogById(e.id);const i=this._createOverlay(e),n=this._attachDialogContainer(i,e),r=this._attachDialogContent(t,n,i,e);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(r),r.afterClosed().subscribe(()=>this._removeOpenDialog(r)),this.afterOpened.next(r),n._initializeWithAttachedContent(),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(t){return this.openDialogs.find(e=>e.id===t)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(t){const e=this._getOverlayConfig(t);return this._overlay.create(e)}_getOverlayConfig(t){const e=new n.X_({positionStrategy:this._overlay.position().global(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(e.backdropClass=t.backdropClass),e}_attachDialogContainer(t,e){const i=s.zs3.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:_,useValue:e}]}),n=new r.C5(this._dialogContainerType,e.viewContainerRef,i,e.componentFactoryResolver);return t.attach(n).instance}_attachDialogContent(t,e,i,n){const o=new this._dialogRefConstructor(i,e,n.id);if(t instanceof s.Rgc)e.attachTemplatePortal(new r.UE(t,null,{$implicit:n.data,dialogRef:o}));else{const i=this._createInjector(n,o,e),s=e.attachComponentPortal(new r.C5(t,n.viewContainerRef,i));o.componentInstance=s.instance}return o.updateSize(n.width,n.height).updatePosition(n.position),o}_createInjector(t,e,i){const n=t&&t.viewContainerRef&&t.viewContainerRef.injector,r=[{provide:this._dialogContainerType,useValue:i},{provide:this._dialogDataToken,useValue:t.data},{provide:this._dialogRefConstructor,useValue:e}];return!t.direction||n&&n.get(a.Is,null,s.XFs.Optional)||r.push({provide:a.Is,useValue:{value:t.direction,change:(0,u.of)()}}),s.zs3.create({parent:n||this._injector,providers:r})}_removeOpenDialog(t){const e=this.openDialogs.indexOf(t);e>-1&&(this.openDialogs.splice(e,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((t,e)=>{t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const t=this._overlayContainer.getContainerElement();if(t.parentElement){const e=t.parentElement.children;for(let i=e.length-1;i>-1;i--){let n=e[i];n===t||"SCRIPT"===n.nodeName||"STYLE"===n.nodeName||n.hasAttribute("aria-live")||(this._ariaHiddenElements.set(n,n.getAttribute("aria-hidden")),n.setAttribute("aria-hidden","true"))}}}_closeDialogs(t){let e=t.length;for(;e--;)t[e].close()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(n.aV),s.Y36(s.zs3),s.Y36(void 0),s.Y36(void 0),s.Y36(n.Xj),s.Y36(void 0),s.Y36(s.DyG),s.Y36(s.DyG),s.Y36(s.OlP))},t.\u0275dir=s.lG2({type:t}),t})(),O=(()=>{class t extends I{constructor(t,e,i,n,r,s,o){super(t,e,n,s,o,r,S,C,k)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.aV),s.LFG(s.zs3),s.LFG(l.Ye,8),s.LFG(T,8),s.LFG(M),s.LFG(t,12),s.LFG(n.Xj))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),D=(()=>{class t{constructor(t,e,i){this.dialogRef=t,this._elementRef=e,this._dialog=i,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=function(t,e){let i=t.nativeElement.parentElement;for(;i&&!i.classList.contains("mat-dialog-container");)i=i.parentElement;return i?e.find(t=>t.id===i.id):null}(this._elementRef,this._dialog.openDialogs))}ngOnChanges(t){const e=t._matDialogClose||t._matDialogCloseResult;e&&(this.dialogResult=e.currentValue)}_onButtonClick(t){E(this.dialogRef,0===t.screenX&&0===t.screenY?"keyboard":"mouse",this.dialogResult)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(S,8),s.Y36(s.SBq),s.Y36(O))},t.\u0275dir=s.lG2({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(t,e){1&t&&s.NdJ("click",function(t){return e._onButtonClick(t)}),2&t&&s.uIk("aria-label",e.ariaLabel||null)("type",e.type)},inputs:{type:"type",dialogResult:["mat-dialog-close","dialogResult"],ariaLabel:["aria-label","ariaLabel"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[s.TTD]}),t})(),R=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[O,L],imports:[[n.U8,r.eL,o.BQ],o.BQ]}),t})()},7679:(t,e,i)=>{"use strict";i.d(e,{d:()=>o,t:()=>a});var n=i(9861),r=i(1522),s=i(1572);let o=(()=>{class t{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(t){this._vertical=(0,n.Ig)(t)}get inset(){return this._inset}set inset(t){this._inset=(0,n.Ig)(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(t,e){2&t&&(s.uIk("aria-orientation",e.vertical?"vertical":"horizontal"),s.ekj("mat-divider-vertical",e.vertical)("mat-divider-horizontal",!e.vertical)("mat-divider-inset",e.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(t,e){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}\n"],encapsulation:2,changeDetection:0}),t})(),a=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[r.BQ],r.BQ]}),t})()},5001:(t,e,i)=>{"use strict";i.d(e,{pp:()=>Y,To:()=>G,ib:()=>U,u4:()=>z,yz:()=>q,yK:()=>H});var n=i(1572),r=i(9861),s=i(9666),o=i(6042),a=i(4230);let l=0;const c=new n.OlP("CdkAccordion");let h=(()=>{class t{constructor(){this._stateChanges=new s.x,this._openCloseAllActions=new s.x,this.id="cdk-accordion-"+l++,this._multi=!1}get multi(){return this._multi}set multi(t){this._multi=(0,r.Ig)(t)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(t){this._stateChanges.next(t)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.lG2({type:t,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[n._Bn([{provide:c,useExisting:t}]),n.TTD]}),t})(),u=0,d=(()=>{class t{constructor(t,e,i){this.accordion=t,this._changeDetectorRef=e,this._expansionDispatcher=i,this._openCloseAllSubscription=o.w0.EMPTY,this.closed=new n.vpe,this.opened=new n.vpe,this.destroyed=new n.vpe,this.expandedChange=new n.vpe,this.id="cdk-accordion-child-"+u++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=i.listen((t,e)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===e&&this.id!==t&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(t){t=(0,r.Ig)(t),this._expanded!==t&&(this._expanded=t,this.expandedChange.emit(t),t?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(t){this._disabled=(0,r.Ig)(t)}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(t=>{this.disabled||(this.expanded=t)})}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(c,12),n.Y36(n.sBO),n.Y36(a.A8))},t.\u0275dir=n.lG2({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[n._Bn([{provide:c,useValue:void 0}])]}),t})(),p=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({}),t})();var f=i(6899),m=i(1511),g=i(1522),y=i(4621),b=i(6424),v=i(1258),_=i(8868),w=i(9056),x=i(5842),C=i(3490),A=i(4951),S=i(5446),E=i(709);const k=["body"];function T(t,e){}const M=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],L=["mat-expansion-panel-header","*","mat-action-row"];function I(t,e){if(1&t&&n._UZ(0,"span",2),2&t){const t=n.oxw();n.Q6J("@indicatorRotate",t._getExpandedState())}}const O=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],D=["mat-panel-title","mat-panel-description","*"],R=new n.OlP("MAT_ACCORDION"),N="225ms cubic-bezier(0.4,0.0,0.2,1)",P={indicatorRotate:(0,E.X$)("indicatorRotate",[(0,E.SB)("collapsed, void",(0,E.oB)({transform:"rotate(0deg)"})),(0,E.SB)("expanded",(0,E.oB)({transform:"rotate(180deg)"})),(0,E.eR)("expanded <=> collapsed, void => collapsed",(0,E.jt)(N))]),bodyExpansion:(0,E.X$)("bodyExpansion",[(0,E.SB)("collapsed, void",(0,E.oB)({height:"0px",visibility:"hidden"})),(0,E.SB)("expanded",(0,E.oB)({height:"*",visibility:"visible"})),(0,E.eR)("expanded <=> collapsed, void => collapsed",(0,E.jt)(N))])};let F=(()=>{class t{constructor(t){this._template=t}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.Rgc))},t.\u0275dir=n.lG2({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]}),t})(),Z=0;const B=new n.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let U=(()=>{class t extends d{constructor(t,e,i,r,o,a,l){super(t,e,i),this._viewContainerRef=r,this._animationMode=a,this._hideToggle=!1,this.afterExpand=new n.vpe,this.afterCollapse=new n.vpe,this._inputChanges=new s.x,this._headerId="mat-expansion-panel-header-"+Z++,this._bodyAnimationDone=new s.x,this.accordion=t,this._document=o,this._bodyAnimationDone.pipe((0,b.x)((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{"void"!==t.fromState&&("expanded"===t.toState?this.afterExpand.emit():"collapsed"===t.toState&&this.afterCollapse.emit())}),l&&(this.hideToggle=l.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(t){this._hideToggle=(0,r.Ig)(t)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(t){this._togglePosition=t}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this.opened.pipe((0,v.O)(null),(0,_.h)(()=>this.expanded&&!this._portal),(0,w.q)(1)).subscribe(()=>{this._portal=new f.UE(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(t){this._inputChanges.next(t)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const t=this._document.activeElement,e=this._body.nativeElement;return t===e||e.contains(t)}return!1}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(R,12),n.Y36(n.sBO),n.Y36(a.A8),n.Y36(n.s_b),n.Y36(m.K0),n.Y36(C.Qb,8),n.Y36(B,8))},t.\u0275cmp=n.Xpm({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(t,e,i){if(1&t&&n.Suo(i,F,5),2&t){let t;n.iGM(t=n.CRH())&&(e._lazyContent=t.first)}},viewQuery:function(t,e){if(1&t&&n.Gf(k,5),2&t){let t;n.iGM(t=n.CRH())&&(e._body=t.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(t,e){2&t&&n.ekj("mat-expanded",e.expanded)("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-expansion-panel-spacing",e._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[n._Bn([{provide:R,useValue:void 0}]),n.qOj,n.TTD],ngContentSelectors:L,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(t,e){1&t&&(n.F$t(M),n.Hsn(0),n.TgZ(1,"div",0,1),n.NdJ("@bodyExpansion.done",function(t){return e._bodyAnimationDone.next(t)}),n.TgZ(3,"div",2),n.Hsn(4,1),n.YNc(5,T,0,0,"ng-template",3),n.qZA(),n.Hsn(6,2),n.qZA()),2&t&&(n.xp6(1),n.Q6J("@bodyExpansion",e._getExpandedState())("id",e.id),n.uIk("aria-labelledby",e._headerId),n.xp6(4),n.Q6J("cdkPortalOutlet",e._portal))},directives:[f.Pl],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[P.bodyExpansion]},changeDetection:0}),t})(),q=(()=>{class t{constructor(t,e,i,n,r,s){this.panel=t,this._element=e,this._focusMonitor=i,this._changeDetectorRef=n,this._animationMode=s,this._parentChangeSubscription=o.w0.EMPTY;const a=t.accordion?t.accordion._stateChanges.pipe((0,_.h)(t=>!(!t.hideToggle&&!t.togglePosition))):A.E;this._parentChangeSubscription=(0,S.T)(t.opened,t.closed,a,t._inputChanges.pipe((0,_.h)(t=>!!(t.hideToggle||t.disabled||t.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),t.closed.pipe((0,_.h)(()=>t._containsFocus())).subscribe(()=>i.focusVia(e,"program")),r&&(this.expandedHeight=r.expandedHeight,this.collapsedHeight=r.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const t=this._isExpanded();return t&&this.expandedHeight?this.expandedHeight:!t&&this.collapsedHeight?this.collapsedHeight:null}_keydown(t){switch(t.keyCode){case x.L_:case x.K5:(0,x.Vb)(t)||(t.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(t))}}focus(t,e){t?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(t=>{t&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(U,1),n.Y36(n.SBq),n.Y36(y.tE),n.Y36(n.sBO),n.Y36(B,8),n.Y36(C.Qb,8))},t.\u0275cmp=n.Xpm({type:t,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(t,e){1&t&&n.NdJ("click",function(){return e._toggle()})("keydown",function(t){return e._keydown(t)}),2&t&&(n.uIk("id",e.panel._headerId)("tabindex",e.disabled?-1:0)("aria-controls",e._getPanelId())("aria-expanded",e._isExpanded())("aria-disabled",e.panel.disabled),n.Udp("height",e._getHeaderHeight()),n.ekj("mat-expanded",e._isExpanded())("mat-expansion-toggle-indicator-after","after"===e._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===e._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},ngContentSelectors:D,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(t,e){1&t&&(n.F$t(O),n.TgZ(0,"span",0),n.Hsn(1),n.Hsn(2,1),n.Hsn(3,2),n.qZA(),n.YNc(4,I,1,1,"span",1)),2&t&&(n.xp6(4),n.Q6J("ngIf",e._showToggle()))},directives:[m.O5],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}\n'],encapsulation:2,data:{animation:[P.indicatorRotate]},changeDetection:0}),t})(),z=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.lG2({type:t,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),t})(),H=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.lG2({type:t,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),t})(),Y=(()=>{class t extends h{constructor(){super(...arguments),this._ownHeaders=new n.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(t){this._hideToggle=(0,r.Ig)(t)}ngAfterContentInit(){this._headers.changes.pipe((0,v.O)(this._headers)).subscribe(t=>{this._ownHeaders.reset(t.filter(t=>t.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new y.Em(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(t){this._keyManager.onKeydown(t)}_handleHeaderFocus(t){this._keyManager.updateActiveItem(t)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=n.n5z(t)))(i||t)}}(),t.\u0275dir=n.lG2({type:t,selectors:[["mat-accordion"]],contentQueries:function(t,e,i){if(1&t&&n.Suo(i,q,5),2&t){let t;n.iGM(t=n.CRH())&&(e._headers=t)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(t,e){2&t&&n.ekj("mat-accordion-multi",e.multi)},inputs:{multi:"multi",displayMode:"displayMode",togglePosition:"togglePosition",hideToggle:"hideToggle"},exportAs:["matAccordion"],features:[n._Bn([{provide:R,useExisting:t}]),n.qOj]}),t})(),G=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[m.ez,g.BQ,p,f.eL]]}),t})()},6283:(t,e,i)=>{"use strict";i.d(e,{G_:()=>K,TO:()=>F,KE:()=>$,Eo:()=>B,lN:()=>tt,bx:()=>z,R9:()=>V});var n=i(6337),r=i(1511),s=i(1572),o=i(1522),a=i(9861),l=i(9666),c=i(5446),h=i(5960),u=i(1258),d=i(9568),p=i(9056),f=i(709),m=i(3490),g=i(2526),y=i(1353);const b=["underline"],v=["connectionContainer"],_=["inputContainer"],w=["label"];function x(t,e){1&t&&(s.ynx(0),s.TgZ(1,"div",14),s._UZ(2,"div",15),s._UZ(3,"div",16),s._UZ(4,"div",17),s.qZA(),s.TgZ(5,"div",18),s._UZ(6,"div",15),s._UZ(7,"div",16),s._UZ(8,"div",17),s.qZA(),s.BQk())}function C(t,e){1&t&&(s.TgZ(0,"div",19),s.Hsn(1,1),s.qZA())}function A(t,e){if(1&t&&(s.ynx(0),s.Hsn(1,2),s.TgZ(2,"span"),s._uU(3),s.qZA(),s.BQk()),2&t){const t=s.oxw(2);s.xp6(3),s.Oqu(t._control.placeholder)}}function S(t,e){1&t&&s.Hsn(0,3,["*ngSwitchCase","true"])}function E(t,e){1&t&&(s.TgZ(0,"span",23),s._uU(1," *"),s.qZA())}function k(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"label",20,21),s.NdJ("cdkObserveContent",function(){return s.CHM(t),s.oxw().updateOutlineGap()}),s.YNc(2,A,4,1,"ng-container",12),s.YNc(3,S,1,0,"ng-content",12),s.YNc(4,E,2,0,"span",22),s.qZA()}if(2&t){const t=s.oxw();s.ekj("mat-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-form-field-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-accent","accent"==t.color)("mat-warn","warn"==t.color),s.Q6J("cdkObserveContentDisabled","outline"!=t.appearance)("id",t._labelId)("ngSwitch",t._hasLabel()),s.uIk("for",t._control.id)("aria-owns",t._control.id),s.xp6(2),s.Q6J("ngSwitchCase",!1),s.xp6(1),s.Q6J("ngSwitchCase",!0),s.xp6(1),s.Q6J("ngIf",!t.hideRequiredMarker&&t._control.required&&!t._control.disabled)}}function T(t,e){1&t&&(s.TgZ(0,"div",24),s.Hsn(1,4),s.qZA())}function M(t,e){if(1&t&&(s.TgZ(0,"div",25,26),s._UZ(2,"span",27),s.qZA()),2&t){const t=s.oxw();s.xp6(2),s.ekj("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)}}function L(t,e){if(1&t&&(s.TgZ(0,"div"),s.Hsn(1,5),s.qZA()),2&t){const t=s.oxw();s.Q6J("@transitionMessages",t._subscriptAnimationState)}}function I(t,e){if(1&t&&(s.TgZ(0,"div",31),s._uU(1),s.qZA()),2&t){const t=s.oxw(2);s.Q6J("id",t._hintLabelId),s.xp6(1),s.Oqu(t.hintLabel)}}function O(t,e){if(1&t&&(s.TgZ(0,"div",28),s.YNc(1,I,2,2,"div",29),s.Hsn(2,6),s._UZ(3,"div",30),s.Hsn(4,7),s.qZA()),2&t){const t=s.oxw();s.Q6J("@transitionMessages",t._subscriptAnimationState),s.xp6(1),s.Q6J("ngIf",t.hintLabel)}}const D=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],R=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let N=0;const P=new s.OlP("MatError");let F=(()=>{class t{constructor(t,e){this.id="mat-error-"+N++,t||e.nativeElement.setAttribute("aria-live","polite")}}return t.\u0275fac=function(e){return new(e||t)(s.$8M("aria-live"),s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(t,e){2&t&&s.uIk("id",e.id)},inputs:{id:"id"},features:[s._Bn([{provide:P,useExisting:t}])]}),t})();const Z={transitionMessages:(0,f.X$)("transitionMessages",[(0,f.SB)("enter",(0,f.oB)({opacity:1,transform:"translateY(0%)"})),(0,f.eR)("void => enter",[(0,f.oB)({opacity:0,transform:"translateY(-5px)"}),(0,f.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let B=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t}),t})(),U=0;const q=new s.OlP("MatHint");let z=(()=>{class t{constructor(){this.align="start",this.id="mat-hint-"+U++}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(t,e){2&t&&(s.uIk("id",e.id)("align",null),s.ekj("mat-form-field-hint-end","end"===e.align))},inputs:{align:"align",id:"id"},features:[s._Bn([{provide:q,useExisting:t}])]}),t})(),H=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["mat-label"]]}),t})(),Y=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["mat-placeholder"]]}),t})();const G=new s.OlP("MatPrefix"),j=new s.OlP("MatSuffix");let V=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["","matSuffix",""]],features:[s._Bn([{provide:j,useExisting:t}])]}),t})(),Q=0;class W{constructor(t){this._elementRef=t}}const J=(0,o.pj)(W,"primary"),X=new s.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),K=new s.OlP("MatFormField");let $=(()=>{class t extends J{constructor(t,e,i,n,r,s,o,a){super(t),this._elementRef=t,this._changeDetectorRef=e,this._dir=n,this._defaults=r,this._platform=s,this._ngZone=o,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new l.x,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+Q++,this._labelId="mat-form-field-label-"+Q++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==a,this.appearance=r&&r.appearance?r.appearance:"legacy",this._hideRequiredMarker=!(!r||null==r.hideRequiredMarker)&&r.hideRequiredMarker}get appearance(){return this._appearance}set appearance(t){const e=this._appearance;this._appearance=t||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&e!==t&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(t){this._hideRequiredMarker=(0,a.Ig)(t)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(t){this._hintLabel=t,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(t){t!==this._floatLabel&&(this._floatLabel=t||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(t){this._explicitFormFieldControl=t}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${t.controlType}`),t.stateChanges.pipe((0,u.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe((0,d.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,d.R)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,c.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,u.O)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,u.O)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,d.R)(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(t){const e=this._control?this._control.ngControl:null;return e&&e[t]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,h.R)(this._label.nativeElement,"transitionend").pipe((0,p.q)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let t=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&t.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const e=this._hintChildren?this._hintChildren.find(t=>"start"===t.align):null,i=this._hintChildren?this._hintChildren.find(t=>"end"===t.align):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),i&&t.push(i.id)}else this._errorChildren&&t.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(t)}}_validateControlChild(){}updateOutlineGap(){const t=this._label?this._label.nativeElement:null;if("outline"!==this.appearance||!t||!t.children.length||!t.textContent.trim())return;if(!this._platform.isBrowser)return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let e=0,i=0;const n=this._connectionContainerRef.nativeElement,r=n.querySelectorAll(".mat-form-field-outline-start"),s=n.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const r=n.getBoundingClientRect();if(0===r.width&&0===r.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const s=this._getStartEnd(r),o=t.children,a=this._getStartEnd(o[0].getBoundingClientRect());let l=0;for(let t=0;t0?.75*l+10:0}for(let o=0;o{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[r.ez,o.BQ,n.Q8],o.BQ]}),t})()},7271:(t,e,i)=>{"use strict";i.d(e,{Il:()=>_,N6:()=>w,DX:()=>d});var n=i(1572),r=i(1522),s=i(9861),o=i(2526);const a=["*"],l=".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}.mat-grid-tile-content{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}\n";class c{constructor(){this.columnIndex=0,this.rowIndex=0}get rowCount(){return this.rowIndex+1}get rowspan(){const t=Math.max(...this.tracker);return t>1?this.rowCount+t-1:this.rowCount}update(t,e){this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(t),this.tracker.fill(0,0,this.tracker.length),this.positions=e.map(t=>this._trackTile(t))}_trackTile(t){const e=this._findMatchingGap(t.colspan);return this._markTilePosition(e,t),this.columnIndex=e+t.colspan,new h(this.rowIndex,e)}_findMatchingGap(t){let e=-1,i=-1;do{this.columnIndex+t>this.tracker.length?(this._nextRow(),e=this.tracker.indexOf(0,this.columnIndex),i=this._findGapEndIndex(e)):(e=this.tracker.indexOf(0,this.columnIndex),-1!=e?(i=this._findGapEndIndex(e),this.columnIndex=e+1):(this._nextRow(),e=this.tracker.indexOf(0,this.columnIndex),i=this._findGapEndIndex(e)))}while(i-e{class t{constructor(t,e){this._element=t,this._gridList=e,this._rowspan=1,this._colspan=1}get rowspan(){return this._rowspan}set rowspan(t){this._rowspan=Math.round((0,s.su)(t))}get colspan(){return this._colspan}set colspan(t){this._colspan=Math.round((0,s.su)(t))}_setStyle(t,e){this._element.nativeElement.style[t]=e}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(u,8))},t.\u0275cmp=n.Xpm({type:t,selectors:[["mat-grid-tile"]],hostAttrs:[1,"mat-grid-tile"],hostVars:2,hostBindings:function(t,e){2&t&&n.uIk("rowspan",e.rowspan)("colspan",e.colspan)},inputs:{rowspan:"rowspan",colspan:"colspan"},exportAs:["matGridTile"],ngContentSelectors:a,decls:2,vars:0,consts:[[1,"mat-grid-tile-content"]],template:function(t,e){1&t&&(n.F$t(),n.TgZ(0,"div",0),n.Hsn(1),n.qZA())},styles:[l],encapsulation:2,changeDetection:0}),t})();const p=/^-?\d+((\.\d+)?[A-Za-z%$]?)+$/;class f{constructor(){this._rows=0,this._rowspan=0}init(t,e,i,n){this._gutterSize=v(t),this._rows=e.rowCount,this._rowspan=e.rowspan,this._cols=i,this._direction=n}getBaseTileSize(t,e){return`(${t}% - (${this._gutterSize} * ${e}))`}getTilePosition(t,e){return 0===e?"0":b(`(${t} + ${this._gutterSize}) * ${e}`)}getTileSize(t,e){return`(${t} * ${e}) + (${e-1} * ${this._gutterSize})`}setStyle(t,e,i){let n=100/this._cols,r=(this._cols-1)/this._cols;this.setColStyles(t,i,n,r),this.setRowStyles(t,e,n,r)}setColStyles(t,e,i,n){let r=this.getBaseTileSize(i,n);t._setStyle("rtl"===this._direction?"right":"left",this.getTilePosition(r,e)),t._setStyle("width",b(this.getTileSize(r,t.colspan)))}getGutterSpan(){return`${this._gutterSize} * (${this._rowspan} - 1)`}getTileSpan(t){return`${this._rowspan} * ${this.getTileSize(t,1)}`}getComputedHeight(){return null}}class m extends f{constructor(t){super(),this.fixedRowHeight=t}init(t,e,i,n){super.init(t,e,i,n),this.fixedRowHeight=v(this.fixedRowHeight),p.test(this.fixedRowHeight)}setRowStyles(t,e){t._setStyle("top",this.getTilePosition(this.fixedRowHeight,e)),t._setStyle("height",b(this.getTileSize(this.fixedRowHeight,t.rowspan)))}getComputedHeight(){return["height",b(`${this.getTileSpan(this.fixedRowHeight)} + ${this.getGutterSpan()}`)]}reset(t){t._setListStyle(["height",null]),t._tiles&&t._tiles.forEach(t=>{t._setStyle("top",null),t._setStyle("height",null)})}}class g extends f{constructor(t){super(),this._parseRatio(t)}setRowStyles(t,e,i,n){this.baseTileHeight=this.getBaseTileSize(i/this.rowHeightRatio,n),t._setStyle("marginTop",this.getTilePosition(this.baseTileHeight,e)),t._setStyle("paddingTop",b(this.getTileSize(this.baseTileHeight,t.rowspan)))}getComputedHeight(){return["paddingBottom",b(`${this.getTileSpan(this.baseTileHeight)} + ${this.getGutterSpan()}`)]}reset(t){t._setListStyle(["paddingBottom",null]),t._tiles.forEach(t=>{t._setStyle("marginTop",null),t._setStyle("paddingTop",null)})}_parseRatio(t){const e=t.split(":");this.rowHeightRatio=parseFloat(e[0])/parseFloat(e[1])}}class y extends f{setRowStyles(t,e){let i=this.getBaseTileSize(100/this._rowspan,(this._rows-1)/this._rows);t._setStyle("top",this.getTilePosition(i,e)),t._setStyle("height",b(this.getTileSize(i,t.rowspan)))}reset(t){t._tiles&&t._tiles.forEach(t=>{t._setStyle("top",null),t._setStyle("height",null)})}}function b(t){return`calc(${t})`}function v(t){return t.match(/([A-Za-z%]+)$/)?t:`${t}px`}let _=(()=>{class t{constructor(t,e){this._element=t,this._dir=e,this._gutter="1px"}get cols(){return this._cols}set cols(t){this._cols=Math.max(1,Math.round((0,s.su)(t)))}get gutterSize(){return this._gutter}set gutterSize(t){this._gutter=`${null==t?"":t}`}get rowHeight(){return this._rowHeight}set rowHeight(t){const e=`${null==t?"":t}`;e!==this._rowHeight&&(this._rowHeight=e,this._setTileStyler(this._rowHeight))}ngOnInit(){this._checkCols(),this._checkRowHeight()}ngAfterContentChecked(){this._layoutTiles()}_checkCols(){}_checkRowHeight(){this._rowHeight||this._setTileStyler("1:1")}_setTileStyler(t){this._tileStyler&&this._tileStyler.reset(this),this._tileStyler="fit"===t?new y:t&&t.indexOf(":")>-1?new g(t):new m(t)}_layoutTiles(){this._tileCoordinator||(this._tileCoordinator=new c);const t=this._tileCoordinator,e=this._tiles.filter(t=>!t._gridList||t._gridList===this),i=this._dir?this._dir.value:"ltr";this._tileCoordinator.update(this.cols,e),this._tileStyler.init(this.gutterSize,t,this.cols,i),e.forEach((e,i)=>{const n=t.positions[i];this._tileStyler.setStyle(e,n.row,n.col)}),this._setListStyle(this._tileStyler.getComputedHeight())}_setListStyle(t){t&&(this._element.nativeElement.style[t[0]]=t[1])}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(o.Is,8))},t.\u0275cmp=n.Xpm({type:t,selectors:[["mat-grid-list"]],contentQueries:function(t,e,i){if(1&t&&n.Suo(i,d,5),2&t){let t;n.iGM(t=n.CRH())&&(e._tiles=t)}},hostAttrs:[1,"mat-grid-list"],hostVars:1,hostBindings:function(t,e){2&t&&n.uIk("cols",e.cols)},inputs:{cols:"cols",gutterSize:"gutterSize",rowHeight:"rowHeight"},exportAs:["matGridList"],features:[n._Bn([{provide:u,useExisting:t}])],ngContentSelectors:a,decls:2,vars:0,template:function(t,e){1&t&&(n.F$t(),n.TgZ(0,"div"),n.Hsn(1),n.qZA())},styles:[l],encapsulation:2,changeDetection:0}),t})(),w=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[r.uc,r.BQ],r.uc,r.BQ]}),t})()},3691:(t,e,i)=>{"use strict";i.d(e,{Hw:()=>D,Ps:()=>R});var n=i(1572),r=i(1522),s=i(9861),o=i(1511),a=i(2041),l=i(9647),c=i(6891),h=i(6042),u=i(343),d=i(1681),p=i(1816),f=i(849),m=i(7839),g=i(9056),y=i(9063),b=i(269);const v=["*"];function _(t){return Error(`Unable to find icon with the name "${t}"`)}function w(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function x(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}class C{constructor(t,e,i){this.url=t,this.svgText=e,this.options=i}}let A=(()=>{class t{constructor(t,e,i,n){this._httpClient=t,this._sanitizer=e,this._errorHandler=n,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=i}addSvgIcon(t,e,i){return this.addSvgIconInNamespace("",t,e,i)}addSvgIconLiteral(t,e,i){return this.addSvgIconLiteralInNamespace("",t,e,i)}addSvgIconInNamespace(t,e,i,n){return this._addSvgIconConfig(t,e,new C(i,null,n))}addSvgIconResolver(t){return this._resolvers.push(t),this}addSvgIconLiteralInNamespace(t,e,i,r){const s=this._sanitizer.sanitize(n.q3G.HTML,i);if(!s)throw x(i);return this._addSvgIconConfig(t,e,new C("",s,r))}addSvgIconSet(t,e){return this.addSvgIconSetInNamespace("",t,e)}addSvgIconSetLiteral(t,e){return this.addSvgIconSetLiteralInNamespace("",t,e)}addSvgIconSetInNamespace(t,e,i){return this._addSvgIconSetConfig(t,new C(e,null,i))}addSvgIconSetLiteralInNamespace(t,e,i){const r=this._sanitizer.sanitize(n.q3G.HTML,e);if(!r)throw x(e);return this._addSvgIconSetConfig(t,new C("",r,i))}registerFontClassAlias(t,e=t){return this._fontCssClassesByAlias.set(t,e),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){const e=this._sanitizer.sanitize(n.q3G.RESOURCE_URL,t);if(!e)throw w(t);const i=this._cachedIconsByUrl.get(e);return i?(0,a.of)(S(i)):this._loadSvgIconFromConfig(new C(t,null)).pipe((0,u.b)(t=>this._cachedIconsByUrl.set(e,t)),(0,d.U)(t=>S(t)))}getNamedSvgIcon(t,e=""){const i=E(e,t);let n=this._svgIconConfigs.get(i);if(n)return this._getSvgFromConfig(n);if(n=this._getIconConfigFromResolvers(e,t),n)return this._svgIconConfigs.set(i,n),this._getSvgFromConfig(n);const r=this._iconSetConfigs.get(e);return r?this._getSvgFromIconSetConfigs(t,r):(0,l._)(_(i))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?(0,a.of)(S(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe((0,d.U)(t=>S(t)))}_getSvgFromIconSetConfigs(t,e){const i=this._extractIconWithNameFromAnySet(t,e);if(i)return(0,a.of)(i);const r=e.filter(t=>!t.svgText).map(t=>this._loadSvgIconSetFromConfig(t).pipe((0,p.K)(e=>{const i=this._sanitizer.sanitize(n.q3G.RESOURCE_URL,t.url);return this._errorHandler.handleError(new Error(`Loading icon set URL: ${i} failed: ${e.message}`)),(0,a.of)(null)})));return(0,c.D)(r).pipe((0,d.U)(()=>{const i=this._extractIconWithNameFromAnySet(t,e);if(!i)throw _(t);return i}))}_extractIconWithNameFromAnySet(t,e){for(let i=e.length-1;i>=0;i--){const n=e[i];if(n.svgText&&n.svgText.indexOf(t)>-1){const e=this._svgElementFromConfig(n),i=this._extractSvgIconFromSet(e,t,n.options);if(i)return i}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe((0,u.b)(e=>t.svgText=e),(0,d.U)(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?(0,a.of)(null):this._fetchIcon(t).pipe((0,u.b)(e=>t.svgText=e))}_extractSvgIconFromSet(t,e,i){const n=t.querySelector(`[id="${e}"]`);if(!n)return null;const r=n.cloneNode(!0);if(r.removeAttribute("id"),"svg"===r.nodeName.toLowerCase())return this._setSvgAttributes(r,i);if("symbol"===r.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(r),i);const s=this._svgElementFromString("");return s.appendChild(r),this._setSvgAttributes(s,i)}_svgElementFromString(t){const e=this._document.createElement("DIV");e.innerHTML=t;const i=e.querySelector("svg");if(!i)throw Error(" tag not found");return i}_toSvgElement(t){const e=this._svgElementFromString(""),i=t.attributes;for(let n=0;nthis._inProgressUrlFetches.delete(o)),(0,m.B)());return this._inProgressUrlFetches.set(o,l),l}_addSvgIconConfig(t,e,i){return this._svgIconConfigs.set(E(t,e),i),this}_addSvgIconSetConfig(t,e){const i=this._iconSetConfigs.get(t);return i?i.push(e):this._iconSetConfigs.set(t,[e]),this}_svgElementFromConfig(t){if(!t.svgElement){const e=this._svgElementFromString(t.svgText);this._setSvgAttributes(e,t.options),t.svgElement=e}return t.svgElement}_getIconConfigFromResolvers(t,e){for(let n=0;ne?e.pathname+e.search:""}}}),L=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],I=L.map(t=>`[${t}]`).join(", "),O=/^url\(['"]?#(.*?)['"]?\)$/;let D=(()=>{class t extends T{constructor(t,e,i,n,r){super(t),this._iconRegistry=e,this._location=n,this._errorHandler=r,this._inline=!1,this._currentIconFetch=h.w0.EMPTY,i||t.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(t){this._inline=(0,s.Ig)(t)}get svgIcon(){return this._svgIcon}set svgIcon(t){t!==this._svgIcon&&(t?this._updateSvgIcon(t):this._svgIcon&&this._clearSvgElement(),this._svgIcon=t)}get fontSet(){return this._fontSet}set fontSet(t){const e=this._cleanupFontValue(t);e!==this._fontSet&&(this._fontSet=e,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(t){const e=this._cleanupFontValue(t);e!==this._fontIcon&&(this._fontIcon=e,this._updateFontIconClasses())}_splitIconName(t){if(!t)return["",""];const e=t.split(":");switch(e.length){case 1:return["",e[0]];case 2:return e;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const t=this._elementsWithExternalReferences;if(t&&t.size){const t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(t){this._clearSvgElement();const e=t.querySelectorAll("style");for(let n=0;n{e.forEach(e=>{i.setAttribute(e.name,`url('${t}#${e.value}')`)})})}_cacheChildrenWithExternalReferences(t){const e=t.querySelectorAll(I),i=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let n=0;n{const r=e[n],s=r.getAttribute(t),o=s?s.match(O):null;if(o){let e=i.get(r);e||(e=[],i.set(r,e)),e.push({name:t,value:o[1]})}})}_updateSvgIcon(t){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),t){const[e,i]=this._splitIconName(t);e&&(this._svgNamespace=e),i&&(this._svgName=i),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(i,e).pipe((0,g.q)(1)).subscribe(t=>this._setSvgElement(t),t=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${e}:${i}! ${t.message}`))})}}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(A),n.$8M("aria-hidden"),n.Y36(M),n.Y36(n.qLn))},t.\u0275cmp=n.Xpm({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(t,e){2&t&&(n.uIk("data-mat-icon-type",e._usingFontIcon()?"font":"svg")("data-mat-icon-name",e._svgName||e.fontIcon)("data-mat-icon-namespace",e._svgNamespace||e.fontSet),n.ekj("mat-icon-inline",e.inline)("mat-icon-no-color","primary"!==e.color&&"accent"!==e.color&&"warn"!==e.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[n.qOj],ngContentSelectors:v,decls:1,vars:0,template:function(t,e){1&t&&(n.F$t(),n.Hsn(0))},styles:[".mat-icon{background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[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}\n"],encapsulation:2,changeDetection:0}),t})(),R=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[r.BQ],r.BQ]}),t})()},6756:(t,e,i)=>{"use strict";i.d(e,{Jk:()=>_,Nt:()=>S,c:()=>E,D7:()=>v});var n=i(1353),r=i(1572),s=i(9861),o=i(4951),a=i(9666),l=i(5960),c=i(9610),h=i(9568),u=i(1511);const d=(0,n.i$)({passive:!0});let p=(()=>{class t{constructor(t,e){this._platform=t,this._ngZone=e,this._monitoredElements=new Map}monitor(t){if(!this._platform.isBrowser)return o.E;const e=(0,s.fI)(t),i=this._monitoredElements.get(e);if(i)return i.subject;const n=new a.x,r="cdk-text-field-autofilled",l=t=>{"cdk-text-field-autofill-start"!==t.animationName||e.classList.contains(r)?"cdk-text-field-autofill-end"===t.animationName&&e.classList.contains(r)&&(e.classList.remove(r),this._ngZone.run(()=>n.next({target:t.target,isAutofilled:!1}))):(e.classList.add(r),this._ngZone.run(()=>n.next({target:t.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{e.addEventListener("animationstart",l,d),e.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(e,{subject:n,unlisten:()=>{e.removeEventListener("animationstart",l,d)}}),n}stopMonitoring(t){const e=(0,s.fI)(t),i=this._monitoredElements.get(e);i&&(i.unlisten(),i.subject.complete(),e.classList.remove("cdk-text-field-autofill-monitored"),e.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(e))}ngOnDestroy(){this._monitoredElements.forEach((t,e)=>this.stopMonitoring(e))}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(n.t4),r.LFG(r.R0b))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(n.t4),r.LFG(r.R0b))},token:t,providedIn:"root"}),t})(),f=(()=>{class t{constructor(t,e,i,n){this._elementRef=t,this._platform=e,this._ngZone=i,this._destroyed=new a.x,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._document=n,this._textareaElement=this._elementRef.nativeElement,this._measuringClass=e.FIREFOX?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring"}get minRows(){return this._minRows}set minRows(t){this._minRows=(0,s.su)(t),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(t){this._maxRows=(0,s.su)(t),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(t){t=(0,s.Ig)(t),this._enabled!==t&&((this._enabled=t)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(t){this._cachedPlaceholderHeight=void 0,this._textareaElement.placeholder=t,this._cacheTextareaPlaceholderHeight()}_setMinHeight(){const t=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;t&&(this._textareaElement.style.minHeight=t)}_setMaxHeight(){const t=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;t&&(this._textareaElement.style.maxHeight=t)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{const t=this._getWindow();(0,l.R)(t,"resize").pipe((0,c.e)(16),(0,h.R)(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0))}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let t=this._textareaElement.cloneNode(!1);t.rows=1,t.style.position="absolute",t.style.visibility="hidden",t.style.border="none",t.style.padding="0",t.style.height="",t.style.minHeight="",t.style.maxHeight="",t.style.overflow="hidden",this._textareaElement.parentNode.appendChild(t),this._cachedLineHeight=t.clientHeight,this._textareaElement.parentNode.removeChild(t),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){this._textareaElement.classList.add(this._measuringClass);const t=this._textareaElement.scrollHeight-4;return this._textareaElement.classList.remove(this._measuringClass),t}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const t=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=t}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(t=!1){if(!this._enabled)return;if(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight)return;const e=this._elementRef.nativeElement,i=e.value;if(!t&&this._minRows===this._previousMinRows&&i===this._previousValue)return;const n=this._measureScrollHeight(),r=Math.max(n,this._cachedPlaceholderHeight||0);e.style.height=`${r}px`,this._ngZone.runOutsideAngular(()=>{"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(()=>this._scrollToCaretPosition(e)):setTimeout(()=>this._scrollToCaretPosition(e))}),this._previousValue=i,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(t){const{selectionStart:e,selectionEnd:i}=t,n=this._getDocument();this._destroyed.isStopped||n.activeElement!==t||t.setSelectionRange(e,i)}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(n.t4),r.Y36(r.R0b),r.Y36(u.K0,8))},t.\u0275dir=r.lG2({type:t,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(t,e){1&t&&r.NdJ("input",function(){return e._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),t})(),m=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[n.ud]]}),t})();var g=i(1522),y=i(6283),b=i(6073);let v=(()=>{class t extends f{get matAutosizeMinRows(){return this.minRows}set matAutosizeMinRows(t){this.minRows=t}get matAutosizeMaxRows(){return this.maxRows}set matAutosizeMaxRows(t){this.maxRows=t}get matAutosize(){return this.enabled}set matAutosize(t){this.enabled=t}get matTextareaAutosize(){return this.enabled}set matTextareaAutosize(t){this.enabled=t}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=r.n5z(t)))(i||t)}}(),t.\u0275dir=r.lG2({type:t,selectors:[["textarea","mat-autosize",""],["textarea","matTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize","mat-autosize"],inputs:{cdkAutosizeMinRows:"cdkAutosizeMinRows",cdkAutosizeMaxRows:"cdkAutosizeMaxRows",matAutosizeMinRows:"matAutosizeMinRows",matAutosizeMaxRows:"matAutosizeMaxRows",matAutosize:["mat-autosize","matAutosize"],matTextareaAutosize:"matTextareaAutosize"},exportAs:["matTextareaAutosize"],features:[r.qOj]}),t})();const _=new r.OlP("MAT_INPUT_VALUE_ACCESSOR"),w=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let x=0;class C{constructor(t,e,i,n){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=i,this.ngControl=n}}const A=(0,g.FD)(C);let S=(()=>{class t extends A{constructor(t,e,i,r,s,o,l,c,h,u){super(o,r,s,i),this._elementRef=t,this._platform=e,this.ngControl=i,this._autofillMonitor=c,this._formField=u,this._uid="mat-input-"+x++,this.focused=!1,this.stateChanges=new a.x,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._required=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(t=>(0,n.qK)().has(t));const d=this._elementRef.nativeElement,p=d.nodeName.toLowerCase();this._inputValueAccessor=l||d,this._previousNativeValue=this.value,this.id=this.id,e.IOS&&h.runOutsideAngular(()=>{t.nativeElement.addEventListener("keyup",t=>{const e=t.target;e.value||0!==e.selectionStart||0!==e.selectionEnd||(e.setSelectionRange(1,1),e.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===p,this._isTextarea="textarea"===p,this._isNativeSelect&&(this.controlType=d.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(t){this._disabled=(0,s.Ig)(t),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(t){this._id=t||this._uid}get required(){return this._required}set required(t){this._required=(0,s.Ig)(t)}get type(){return this._type}set type(t){this._type=t||"text",this._validateType(),!this._isTextarea&&(0,n.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(t){this._readonly=(0,s.Ig)(t)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(t=>{this.autofilled=t.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(t){this._elementRef.nativeElement.focus(t)}_focusChanged(t){t===this.focused||this.readonly&&t||(this.focused=t,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var t,e;const i=(null===(e=null===(t=this._formField)||void 0===t?void 0:t._hideControlPlaceholder)||void 0===e?void 0:e.call(t))?null:this.placeholder;if(i!==this._previousPlaceholder){const t=this._elementRef.nativeElement;this._previousPlaceholder=i,i?t.setAttribute("placeholder",i):t.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}_validateType(){w.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let t=this._elementRef.nativeElement.validity;return t&&t.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const t=this._elementRef.nativeElement,e=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&e&&e.label)}return this.focused||!this.empty}setDescribedByIds(t){t.length?this._elementRef.nativeElement.setAttribute("aria-describedby",t.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(n.t4),r.Y36(b.a5,10),r.Y36(b.F,8),r.Y36(b.sg,8),r.Y36(g.rD),r.Y36(_,10),r.Y36(p),r.Y36(r.R0b),r.Y36(y.G_,8))},t.\u0275dir=r.lG2({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:9,hostBindings:function(t,e){1&t&&r.NdJ("focus",function(){return e._focusChanged(!0)})("blur",function(){return e._focusChanged(!1)})("input",function(){return e._onInput()}),2&t&&(r.Ikx("disabled",e.disabled)("required",e.required),r.uIk("id",e.id)("data-placeholder",e.placeholder)("readonly",e.readonly&&!e._isNativeSelect||null)("aria-invalid",e.empty&&e.required?null:e.errorState)("aria-required",e.required),r.ekj("mat-input-server",e._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[r._Bn([{provide:y.Eo,useExisting:t}]),r.qOj,r.TTD]}),t})(),E=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:[g.rD],imports:[[m,y.lN,g.BQ],m,y.lN]}),t})()},5250:(t,e,i)=>{"use strict";i.d(e,{i$:()=>v,Tg:()=>x,ie:()=>C});var n=i(1511),r=i(1572),s=i(1522),o=i(9861),a=i(9666),l=i(9568),c=(i(1258),i(4621),i(4230),i(5842),i(6073),i(7679));const h=["*"],u=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],d=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"];class p{}const f=(0,s.Id)((0,s.Kr)(p));class m{}const g=(0,s.Kr)(m),y=new r.OlP("MatList"),b=new r.OlP("MatNavList");let v=(()=>{class t extends f{constructor(t){super(),this._elementRef=t,this._stateChanges=new a.x,"action-list"===this._getListType()&&t.nativeElement.classList.add("mat-action-list")}_getListType(){const t=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===t?"list":"mat-action-list"===t?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq))},t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[r._Bn([{provide:y,useExisting:t}]),r.qOj,r.TTD],ngContentSelectors:h,decls:1,vars:0,template:function(t,e){1&t&&(r.F$t(),r.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],encapsulation:2,changeDetection:0}),t})(),_=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.lG2({type:t,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),t})(),w=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.lG2({type:t,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),t})(),x=(()=>{class t extends g{constructor(t,e,i,n){super(),this._element=t,this._isInteractiveList=!1,this._destroyed=new a.x,this._disabled=!1,this._isInteractiveList=!!(i||n&&"action-list"===n._getListType()),this._list=i||n;const r=this._getHostElement();"button"!==r.nodeName.toLowerCase()||r.hasAttribute("type")||r.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe((0,l.R)(this._destroyed)).subscribe(()=>{e.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(t){this._disabled=(0,o.Ig)(t)}ngAfterContentInit(){(0,s.E0)(this._lines,this._element)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_isRippleDisabled(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}_getHostElement(){return this._element.nativeElement}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(r.sBO),r.Y36(b,8),r.Y36(y,8))},t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(t,e,i){if(1&t&&(r.Suo(i,_,5),r.Suo(i,w,5),r.Suo(i,s.X2,5)),2&t){let t;r.iGM(t=r.CRH())&&(e._avatar=t.first),r.iGM(t=r.CRH())&&(e._icon=t.first),r.iGM(t=r.CRH())&&(e._lines=t)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(t,e){2&t&&r.ekj("mat-list-item-disabled",e.disabled)("mat-list-item-avatar",e._avatar||e._icon)("mat-list-item-with-avatar",e._avatar||e._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[r.qOj],ngContentSelectors:d,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(t,e){1&t&&(r.F$t(u),r.TgZ(0,"div",0),r._UZ(1,"div",1),r.Hsn(2),r.TgZ(3,"div",2),r.Hsn(4,1),r.qZA(),r.Hsn(5,2),r.qZA()),2&t&&(r.xp6(1),r.Q6J("matRippleTrigger",e._getHostElement())("matRippleDisabled",e._isRippleDisabled()))},directives:[s.wG],encapsulation:2,changeDetection:0}),t})(),C=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[s.uc,s.si,s.BQ,s.us,n.ez],s.uc,s.BQ,s.us,c.t]}),t})()},8055:(t,e,i)=>{"use strict";i.d(e,{VK:()=>Z,OP:()=>R,Tx:()=>Y,p6:()=>z});var n=i(4621),r=i(9861),s=i(5842),o=i(1572),a=i(9666),l=i(6042),c=i(5446),h=i(2041),u=i(7911),d=i(1258),p=i(4324),f=i(9056),m=i(8868),g=i(9568),y=i(6493),b=i(709),v=i(6899),_=i(1511),w=i(1522),x=i(369),C=i(1353),A=i(4894),S=i(2526);const E=["mat-menu-item",""],k=["*"];function T(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"div",0),o.NdJ("keydown",function(e){return o.CHM(t),o.oxw()._handleKeydown(e)})("click",function(){return o.CHM(t),o.oxw().closed.emit("click")})("@transformMenu.start",function(e){return o.CHM(t),o.oxw()._onAnimationStart(e)})("@transformMenu.done",function(e){return o.CHM(t),o.oxw()._onAnimationDone(e)}),o.TgZ(1,"div",1),o.Hsn(2),o.qZA(),o.qZA()}if(2&t){const t=o.oxw();o.Q6J("id",t.panelId)("ngClass",t._classList)("@transformMenu",t._panelAnimationState),o.uIk("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby||null)("aria-describedby",t.ariaDescribedby||null)}}const M={transformMenu:(0,b.X$)("transformMenu",[(0,b.SB)("void",(0,b.oB)({opacity:0,transform:"scale(0.8)"})),(0,b.eR)("void => enter",(0,b.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,b.oB)({opacity:1,transform:"scale(1)"}))),(0,b.eR)("* => void",(0,b.jt)("100ms 25ms linear",(0,b.oB)({opacity:0})))]),fadeInItems:(0,b.X$)("fadeInItems",[(0,b.SB)("showing",(0,b.oB)({opacity:1})),(0,b.eR)("void => *",[(0,b.oB)({opacity:0}),(0,b.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},L=new o.OlP("MatMenuContent"),I=new o.OlP("MAT_MENU_PANEL");class O{}const D=(0,w.Kr)((0,w.Id)(O));let R=(()=>{class t extends D{constructor(t,e,i,n){super(),this._elementRef=t,this._focusMonitor=i,this._parentMenu=n,this.role="menuitem",this._hovered=new a.x,this._focused=new a.x,this._highlighted=!1,this._triggersSubmenu=!1,n&&n.addItem&&n.addItem(this)}focus(t,e){this._focusMonitor&&t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e),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(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var t,e;const i=this._elementRef.nativeElement.cloneNode(!0),n=i.querySelectorAll("mat-icon, .material-icons");for(let r=0;r{class t{constructor(t,e,i){this._elementRef=t,this._ngZone=e,this._defaultOptions=i,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new o.n_E,this._tabSubscription=l.w0.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new a.x,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new o.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+P++}get xPosition(){return this._xPosition}set xPosition(t){this._xPosition=t,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(t){this._yPosition=t,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(t){this._overlapTrigger=(0,r.Ig)(t)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=(0,r.Ig)(t)}set panelClass(t){const e=this._previousPanelClass;e&&e.length&&e.split(" ").forEach(t=>{this._classList[t]=!1}),this._previousPanelClass=t,t&&t.length&&(t.split(" ").forEach(t=>{this._classList[t]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(t){this.panelClass=t}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new n.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,d.O)(this._directDescendantItems),(0,p.w)(t=>(0,c.T)(...t.map(t=>t._focused)))).subscribe(t=>this._keyManager.updateActiveItem(t))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe((0,d.O)(this._directDescendantItems),(0,p.w)(t=>(0,c.T)(...t.map(t=>t._hovered))))}addItem(t){}removeItem(t){}_handleKeydown(t){const e=t.keyCode,i=this._keyManager;switch(e){case s.hY:(0,s.Vb)(t)||(t.preventDefault(),this.closed.emit("keydown"));break;case s.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case s.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:e!==s.LH&&e!==s.JH||i.setFocusOrigin("keyboard"),i.onKeydown(t)}}focusFirstItem(t="program"){this.lazyContent?this._ngZone.onStable.pipe((0,f.q)(1)).subscribe(()=>this._focusFirstItem(t)):this._focusFirstItem(t)}_focusFirstItem(t){const e=this._keyManager;if(e.setFocusOrigin(t).setFirstItemActive(),!e.activeItem&&this._directDescendantItems.length){let t=this._directDescendantItems.first._getHostElement().parentElement;for(;t;){if("menu"===t.getAttribute("role")){t.focus();break}t=t.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(t){const e=`mat-elevation-z${Math.min(4+t,24)}`,i=Object.keys(this._classList).find(t=>t.startsWith("mat-elevation-z"));i&&i!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[e]=!0,this._previousElevation=e)}setPositionClasses(t=this.xPosition,e=this.yPosition){const i=this._classList;i["mat-menu-before"]="before"===t,i["mat-menu-after"]="after"===t,i["mat-menu-above"]="above"===e,i["mat-menu-below"]="below"===e}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(t){this._animationDone.next(t),this._isAnimating=!1}_onAnimationStart(t){this._isAnimating=!0,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,d.O)(this._allItems)).subscribe(t=>{this._directDescendantItems.reset(t.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.SBq),o.Y36(o.R0b),o.Y36(N))},t.\u0275dir=o.lG2({type:t,contentQueries:function(t,e,i){if(1&t&&(o.Suo(i,L,5),o.Suo(i,R,5),o.Suo(i,R,4)),2&t){let t;o.iGM(t=o.CRH())&&(e.lazyContent=t.first),o.iGM(t=o.CRH())&&(e._allItems=t),o.iGM(t=o.CRH())&&(e.items=t)}},viewQuery:function(t,e){if(1&t&&o.Gf(o.Rgc,5),2&t){let t;o.iGM(t=o.CRH())&&(e.templateRef=t.first)}},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),t})(),Z=(()=>{class t extends F{constructor(t,e,i){super(t,e,i)}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.SBq),o.Y36(o.R0b),o.Y36(N))},t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(t,e){2&t&&o.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[o._Bn([{provide:I,useExisting:t}]),o.qOj],ngContentSelectors:k,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(t,e){1&t&&(o.F$t(),o.YNc(0,T,3,6,"ng-template"))},directives:[_.mk],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:"";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,data:{animation:[M.transformMenu,M.fadeInItems]},changeDetection:0}),t})();const B=new o.OlP("mat-menu-scroll-strategy"),U={provide:B,deps:[x.aV],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},q=(0,C.i$)({passive:!0});let z=(()=>{class t{constructor(t,e,i,r,s,a,c,h){this._overlay=t,this._element=e,this._viewContainerRef=i,this._menuItemInstance=a,this._dir=c,this._focusMonitor=h,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=l.w0.EMPTY,this._hoverSubscription=l.w0.EMPTY,this._menuCloseSubscription=l.w0.EMPTY,this._handleTouchStart=t=>{(0,n.yG)(t)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new o.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new o.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=r,this._parentMaterialMenu=s instanceof F?s:void 0,e.nativeElement.addEventListener("touchstart",this._handleTouchStart,q),a&&(a._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(t){this.menu=t}get menu(){return this._menu}set menu(t){t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(this._menuCloseSubscription=t.close.subscribe(t=>{this._destroyMenu(t),"click"!==t&&"tab"!==t||!this._parentMaterialMenu||this._parentMaterialMenu.closed.emit(t)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,q),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)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const t=this._createOverlay(),e=t.getConfig();this._setPosition(e.positionStrategy),e.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,t.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof F&&this.menu._startAnimation()}closeMenu(){this.menu.close.emit()}focus(t,e){this._focusMonitor&&t?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}updatePosition(){var t;null===(t=this._overlayRef)||void 0===t||t.updatePosition()}_destroyMenu(t){if(!this._overlayRef||!this.menuOpen)return;const e=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),!this.restoreFocus||"keydown"!==t&&this._openedBy&&this.triggersSubmenu()||this.focus(this._openedBy),this._openedBy=void 0,e instanceof F?(e._resetAnimation(),e.lazyContent?e._animationDone.pipe((0,m.h)(t=>"void"===t.toState),(0,f.q)(1),(0,g.R)(e.lazyContent._attached)).subscribe({next:()=>e.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),e.lazyContent&&e.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let t=0,e=this.menu.parentMenu;for(;e;)t++,e=e.parentMenu;this.menu.setElevation(t)}}_setIsMenuOpen(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=t)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const t=this._getOverlayConfig();this._subscribeToPositions(t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new x.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(t){this.menu.setPositionClasses&&t.positionChanges.subscribe(t=>{this.menu.setPositionClasses("start"===t.connectionPair.overlayX?"after":"before","top"===t.connectionPair.overlayY?"below":"above")})}_setPosition(t){let[e,i]="before"===this.menu.xPosition?["end","start"]:["start","end"],[n,r]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[s,o]=[n,r],[a,l]=[e,i],c=0;this.triggersSubmenu()?(l=e="before"===this.menu.xPosition?"start":"end",i=a="end"===e?"start":"end",c="bottom"===n?8:-8):this.menu.overlapTrigger||(s="top"===n?"bottom":"top",o="top"===r?"bottom":"top"),t.withPositions([{originX:e,originY:s,overlayX:a,overlayY:n,offsetY:c},{originX:i,originY:s,overlayX:l,overlayY:n,offsetY:c},{originX:e,originY:o,overlayX:a,overlayY:r,offsetY:-c},{originX:i,originY:o,overlayX:l,overlayY:r,offsetY:-c}])}_menuClosingActions(){const t=this._overlayRef.backdropClick(),e=this._overlayRef.detachments(),i=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,h.of)(),n=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,m.h)(t=>t!==this._menuItemInstance),(0,m.h)(()=>this._menuOpen)):(0,h.of)();return(0,c.T)(t,i,n,e)}_handleMousedown(t){(0,n.X6)(t)||(this._openedBy=0===t.button?"mouse":void 0,this.triggersSubmenu()&&t.preventDefault())}_handleKeydown(t){const e=t.keyCode;e!==s.K5&&e!==s.L_||(this._openedBy="keyboard"),this.triggersSubmenu()&&(e===s.SV&&"ltr"===this.dir||e===s.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,m.h)(t=>t===this._menuItemInstance&&!t.disabled),(0,y.g)(0,u.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof F&&this.menu._isAnimating?this.menu._animationDone.pipe((0,f.q)(1),(0,y.g)(0,u.E),(0,g.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new v.UE(this.menu.templateRef,this._viewContainerRef)),this._portal}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(x.aV),o.Y36(o.SBq),o.Y36(o.s_b),o.Y36(B),o.Y36(I,8),o.Y36(R,10),o.Y36(S.Is,8),o.Y36(n.tE))},t.\u0275dir=o.lG2({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(t,e){1&t&&o.NdJ("mousedown",function(t){return e._handleMousedown(t)})("keydown",function(t){return e._handleKeydown(t)})("click",function(t){return e._handleClick(t)}),2&t&&o.uIk("aria-expanded",e.menuOpen||null)("aria-controls",e.menuOpen?e.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),t})(),H=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({providers:[U],imports:[w.BQ]}),t})(),Y=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({providers:[U],imports:[[_.ez,w.BQ,w.si,x.U8,H],A.ZD,w.BQ,H]}),t})()},3005:(t,e,i)=>{"use strict";i.d(e,{NW:()=>A,ye:()=>b,TU:()=>S});var n=i(1511),r=i(1572),s=i(1522),o=i(5980),a=i(4786),l=i(6828),c=i(9861),h=i(9666),u=i(6283);function d(t,e){if(1&t&&(r.TgZ(0,"mat-option",19),r._uU(1),r.qZA()),2&t){const t=e.$implicit;r.Q6J("value",t),r.xp6(1),r.hij(" ",t," ")}}function p(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"mat-form-field",16),r.TgZ(1,"mat-select",17),r.NdJ("selectionChange",function(e){return r.CHM(t),r.oxw(2)._changePageSize(e.value)}),r.YNc(2,d,2,2,"mat-option",18),r.qZA(),r.qZA()}if(2&t){const t=r.oxw(2);r.Q6J("appearance",t._formFieldAppearance)("color",t.color),r.xp6(1),r.Q6J("value",t.pageSize)("disabled",t.disabled)("aria-label",t._intl.itemsPerPageLabel),r.xp6(1),r.Q6J("ngForOf",t._displayedPageSizeOptions)}}function f(t,e){if(1&t&&(r.TgZ(0,"div",20),r._uU(1),r.qZA()),2&t){const t=r.oxw(2);r.xp6(1),r.Oqu(t.pageSize)}}function m(t,e){if(1&t&&(r.TgZ(0,"div",12),r.TgZ(1,"div",13),r._uU(2),r.qZA(),r.YNc(3,p,3,6,"mat-form-field",14),r.YNc(4,f,2,1,"div",15),r.qZA()),2&t){const t=r.oxw();r.xp6(2),r.hij(" ",t._intl.itemsPerPageLabel," "),r.xp6(1),r.Q6J("ngIf",t._displayedPageSizeOptions.length>1),r.xp6(1),r.Q6J("ngIf",t._displayedPageSizeOptions.length<=1)}}function g(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"button",21),r.NdJ("click",function(){return r.CHM(t),r.oxw().firstPage()}),r.O4$(),r.TgZ(1,"svg",7),r._UZ(2,"path",22),r.qZA(),r.qZA()}if(2&t){const t=r.oxw();r.Q6J("matTooltip",t._intl.firstPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),r.uIk("aria-label",t._intl.firstPageLabel)}}function y(t,e){if(1&t){const t=r.EpF();r.O4$(),r.kcU(),r.TgZ(0,"button",23),r.NdJ("click",function(){return r.CHM(t),r.oxw().lastPage()}),r.O4$(),r.TgZ(1,"svg",7),r._UZ(2,"path",24),r.qZA(),r.qZA()}if(2&t){const t=r.oxw();r.Q6J("matTooltip",t._intl.lastPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),r.uIk("aria-label",t._intl.lastPageLabel)}}let b=(()=>{class t{constructor(){this.changes=new h.x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(t,e,i)=>{if(0==i||0==e)return`0 of ${i}`;const n=t*e;return`${n+1} \u2013 ${n<(i=Math.max(i,0))?Math.min(n+e,i):n+e} of ${i}`}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})();const v={provide:b,deps:[[new r.FiY,new r.tp0,b]],useFactory:function(t){return t||new b}},_=new r.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS");class w{}const x=(0,s.Id)((0,s.dB)(w));let C=(()=>{class t extends x{constructor(t,e,i){if(super(),this._intl=t,this._changeDetectorRef=e,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.page=new r.vpe,this._intlChanges=t.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),i){const{pageSize:t,pageSizeOptions:e,hidePageSize:n,showFirstLastButtons:r}=i;null!=t&&(this._pageSize=t),null!=e&&(this._pageSizeOptions=e),null!=n&&(this._hidePageSize=n),null!=r&&(this._showFirstLastButtons=r)}}get pageIndex(){return this._pageIndex}set pageIndex(t){this._pageIndex=Math.max((0,c.su)(t),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(t){this._length=(0,c.su)(t),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(t){this._pageSize=Math.max((0,c.su)(t),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(t){this._pageSizeOptions=(t||[]).map(t=>(0,c.su)(t)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(t){this._hidePageSize=(0,c.Ig)(t)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(t){this._showFirstLastButtons=(0,c.Ig)(t)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const t=this.pageIndex;this.pageIndex++,this._emitPageEvent(t)}previousPage(){if(!this.hasPreviousPage())return;const t=this.pageIndex;this.pageIndex--,this._emitPageEvent(t)}firstPage(){if(!this.hasPreviousPage())return;const t=this.pageIndex;this.pageIndex=0,this._emitPageEvent(t)}lastPage(){if(!this.hasNextPage())return;const t=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(t)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const t=this.getNumberOfPages()-1;return this.pageIndext-e),this._changeDetectorRef.markForCheck())}_emitPageEvent(t){this.page.emit({previousPageIndex:t,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(b),r.Y36(r.sBO),r.Y36(void 0))},t.\u0275dir=r.lG2({type:t,inputs:{pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",color:"color"},outputs:{page:"page"},features:[r.qOj]}),t})(),A=(()=>{class t extends C{constructor(t,e,i){super(t,e,i),i&&null!=i.formFieldAppearance&&(this._formFieldAppearance=i.formFieldAppearance)}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(b),r.Y36(r.sBO),r.Y36(_,8))},t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[r.qOj],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(t,e){1&t&&(r.TgZ(0,"div",0),r.TgZ(1,"div",1),r.YNc(2,m,5,3,"div",2),r.TgZ(3,"div",3),r.TgZ(4,"div",4),r._uU(5),r.qZA(),r.YNc(6,g,3,5,"button",5),r.TgZ(7,"button",6),r.NdJ("click",function(){return e.previousPage()}),r.O4$(),r.TgZ(8,"svg",7),r._UZ(9,"path",8),r.qZA(),r.qZA(),r.kcU(),r.TgZ(10,"button",9),r.NdJ("click",function(){return e.nextPage()}),r.O4$(),r.TgZ(11,"svg",7),r._UZ(12,"path",10),r.qZA(),r.qZA(),r.YNc(13,y,3,5,"button",11),r.qZA(),r.qZA(),r.qZA()),2&t&&(r.xp6(2),r.Q6J("ngIf",!e.hidePageSize),r.xp6(3),r.hij(" ",e._intl.getRangeLabel(e.pageIndex,e.pageSize,e.length)," "),r.xp6(1),r.Q6J("ngIf",e.showFirstLastButtons),r.xp6(1),r.Q6J("matTooltip",e._intl.previousPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),r.uIk("aria-label",e._intl.previousPageLabel),r.xp6(3),r.Q6J("matTooltip",e._intl.nextPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),r.uIk("aria-label",e._intl.nextPageLabel),r.xp6(3),r.Q6J("ngIf",e.showFirstLastButtons))},directives:[n.O5,o.lW,l.gM,u.KE,a.gD,n.sg,s.ey],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}\n"],encapsulation:2,changeDetection:0}),t})(),S=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:[v],imports:[[n.ez,o.ot,a.LD,l.AV,s.BQ]]}),t})()},5994:(t,e,i)=>{"use strict";i.d(e,{pW:()=>g,Cv:()=>b});var n=i(1572),r=i(1511),s=i(1522),o=i(9861),a=i(3490),l=i(6042),c=i(5960),h=i(8868);const u=["primaryValueBar"];class d{constructor(t){this._elementRef=t}}const p=(0,s.pj)(d,"primary"),f=new n.OlP("mat-progress-bar-location",{providedIn:"root",factory:function(){const t=(0,n.f3M)(r.K0),e=t?t.location:null;return{getPathname:()=>e?e.pathname+e.search:""}}});let m=0,g=(()=>{class t extends p{constructor(t,e,i,r){super(t),this._elementRef=t,this._ngZone=e,this._animationMode=i,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new n.vpe,this._animationEndSubscription=l.w0.EMPTY,this.mode="determinate",this.progressbarId="mat-progress-bar-"+m++;const s=r?r.getPathname().split("#")[0]:"";this._rectangleFillValue=`url('${s}#${this.progressbarId}')`,this._isNoopAnimation="NoopAnimations"===i}get value(){return this._value}set value(t){this._value=y((0,o.su)(t)||0)}get bufferValue(){return this._bufferValue}set bufferValue(t){this._bufferValue=y(t||0)}_primaryTransform(){return{transform:`scale3d(${this.value/100}, 1, 1)`}}_bufferTransform(){return"buffer"===this.mode?{transform:`scale3d(${this.bufferValue/100}, 1, 1)`}:null}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{const t=this._primaryValueBar.nativeElement;this._animationEndSubscription=(0,c.R)(t,"transitionend").pipe((0,h.h)(e=>e.target===t)).subscribe(()=>{"determinate"!==this.mode&&"buffer"!==this.mode||this._ngZone.run(()=>this.animationEnd.next({value:this.value}))})})}ngOnDestroy(){this._animationEndSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(a.Qb,8),n.Y36(f,8))},t.\u0275cmp=n.Xpm({type:t,selectors:[["mat-progress-bar"]],viewQuery:function(t,e){if(1&t&&n.Gf(u,5),2&t){let t;n.iGM(t=n.CRH())&&(e._primaryValueBar=t.first)}},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-progress-bar"],hostVars:4,hostBindings:function(t,e){2&t&&(n.uIk("aria-valuenow","indeterminate"===e.mode||"query"===e.mode?null:e.value)("mode",e.mode),n.ekj("_mat-animation-noopable",e._isNoopAnimation))},inputs:{color:"color",mode:"mode",value:"value",bufferValue:"bufferValue"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[n.qOj],decls:10,vars:4,consts:[["aria-hidden","true"],["width","100%","height","4","focusable","false",1,"mat-progress-bar-background","mat-progress-bar-element"],["x","4","y","0","width","8","height","4","patternUnits","userSpaceOnUse",3,"id"],["cx","2","cy","2","r","2"],["width","100%","height","100%"],[1,"mat-progress-bar-buffer","mat-progress-bar-element",3,"ngStyle"],[1,"mat-progress-bar-primary","mat-progress-bar-fill","mat-progress-bar-element",3,"ngStyle"],["primaryValueBar",""],[1,"mat-progress-bar-secondary","mat-progress-bar-fill","mat-progress-bar-element"]],template:function(t,e){1&t&&(n.TgZ(0,"div",0),n.O4$(),n.TgZ(1,"svg",1),n.TgZ(2,"defs"),n.TgZ(3,"pattern",2),n._UZ(4,"circle",3),n.qZA(),n.qZA(),n._UZ(5,"rect",4),n.qZA(),n.kcU(),n._UZ(6,"div",5),n._UZ(7,"div",6,7),n._UZ(9,"div",8),n.qZA()),2&t&&(n.xp6(3),n.Q6J("id",e.progressbarId),n.xp6(2),n.uIk("fill",e._rectangleFillValue),n.xp6(1),n.Q6J("ngStyle",e._bufferTransform()),n.xp6(1),n.Q6J("ngStyle",e._primaryTransform()))},directives:[r.PC],styles:['.mat-progress-bar{display:block;height:4px;overflow:hidden;position:relative;transition:opacity 250ms linear;width:100%}._mat-animation-noopable.mat-progress-bar{transition:none;animation:none}.mat-progress-bar .mat-progress-bar-element,.mat-progress-bar .mat-progress-bar-fill::after{height:100%;position:absolute;width:100%}.mat-progress-bar .mat-progress-bar-background{width:calc(100% + 10px)}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-background{display:none}.mat-progress-bar .mat-progress-bar-buffer{transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-buffer{border-top:solid 5px;opacity:.5}.mat-progress-bar .mat-progress-bar-secondary{display:none}.mat-progress-bar .mat-progress-bar-fill{animation:none;transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-fill{border-top:solid 4px}.mat-progress-bar .mat-progress-bar-fill::after{animation:none;content:"";display:inline-block;left:0}.mat-progress-bar[dir=rtl],[dir=rtl] .mat-progress-bar{transform:rotateY(180deg)}.mat-progress-bar[mode=query]{transform:rotateZ(180deg)}.mat-progress-bar[mode=query][dir=rtl],[dir=rtl] .mat-progress-bar[mode=query]{transform:rotateZ(180deg) rotateY(180deg)}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-fill,.mat-progress-bar[mode=query] .mat-progress-bar-fill{transition:none}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary,.mat-progress-bar[mode=query] .mat-progress-bar-primary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-translate 2000ms infinite linear;left:-145.166611%}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-primary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary,.mat-progress-bar[mode=query] .mat-progress-bar-secondary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-translate 2000ms infinite linear;left:-54.888891%;display:block}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-secondary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=buffer] .mat-progress-bar-background{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-background-scroll 250ms infinite linear;display:block}.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-buffer,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-background{animation:none;transition-duration:1ms}@keyframes mat-progress-bar-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 mat-progress-bar-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 mat-progress-bar-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 mat-progress-bar-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-background-scroll{to{transform:translateX(-8px)}}\n'],encapsulation:2,changeDetection:0}),t})();function y(t,e=0,i=100){return Math.max(e,Math.min(i,t))}let b=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[r.ez,s.BQ],s.BQ]}),t})()},7806:(t,e,i)=>{"use strict";i.d(e,{Cq:()=>v,$g:()=>b});var n=i(1572),r=i(1511),s=i(1522),o=i(9861),a=i(1353),l=i(3490);function c(t,e){if(1&t&&(n.O4$(),n._UZ(0,"circle",3)),2&t){const t=n.oxw();n.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),n.uIk("r",t._getCircleRadius())}}function h(t,e){if(1&t&&(n.O4$(),n._UZ(0,"circle",3)),2&t){const t=n.oxw();n.Udp("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),n.uIk("r",t._getCircleRadius())}}function u(t,e){if(1&t&&(n.O4$(),n._UZ(0,"circle",3)),2&t){const t=n.oxw();n.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),n.uIk("r",t._getCircleRadius())}}function d(t,e){if(1&t&&(n.O4$(),n._UZ(0,"circle",3)),2&t){const t=n.oxw();n.Udp("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),n.uIk("r",t._getCircleRadius())}}const p=".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:currentColor;stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n";class f{constructor(t){this._elementRef=t}}const m=(0,s.pj)(f,"primary"),g=new n.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}});let y=(()=>{class t extends m{constructor(e,i,n,r,s){super(e),this._elementRef=e,this._document=n,this._diameter=100,this._value=0,this._fallbackAnimation=!1,this.mode="determinate";const o=t._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),o.has(n.head)||o.set(n.head,new Set([100])),this._fallbackAnimation=i.EDGE||i.TRIDENT,this._noopAnimations="NoopAnimations"===r&&!!s&&!s._forceAnimations,s&&(s.diameter&&(this.diameter=s.diameter),s.strokeWidth&&(this.strokeWidth=s.strokeWidth))}get diameter(){return this._diameter}set diameter(t){this._diameter=(0,o.su)(t),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(t){this._strokeWidth=(0,o.su)(t)}get value(){return"determinate"===this.mode?this._value:0}set value(t){this._value=Math.max(0,Math.min(100,(0,o.su)(t)))}ngOnInit(){const t=this._elementRef.nativeElement;this._styleRoot=(0,a.kV)(t)||this._document.head,this._attachStyleNode(),t.classList.add(`mat-progress-spinner-indeterminate${this._fallbackAnimation?"-fallback":""}-animation`)}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const t=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${t} ${t}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._getStrokeCircumference():null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_attachStyleNode(){const e=this._styleRoot,i=this._diameter,n=t._diameters;let r=n.get(e);if(!r||!r.has(i)){const t=this._document.createElement("style");t.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),t.textContent=this._getAnimationText(),e.appendChild(t),r||(r=new Set,n.set(e,r)),r.add(i)}}_getAnimationText(){const t=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*t).replace(/END_VALUE/g,""+.2*t).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(a.t4),n.Y36(r.K0,8),n.Y36(l.Qb,8),n.Y36(g))},t.\u0275cmp=n.Xpm({type:t,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(t,e){2&t&&(n.uIk("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),n.Udp("width",e.diameter,"px")("height",e.diameter,"px"),n.ekj("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[n.qOj],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(n.O4$(),n.TgZ(0,"svg",0),n.YNc(1,c,1,9,"circle",1),n.YNc(2,h,1,7,"circle",2),n.qZA()),2&t&&(n.Udp("width",e.diameter,"px")("height",e.diameter,"px"),n.Q6J("ngSwitch","indeterminate"===e.mode),n.uIk("viewBox",e._getViewBox()),n.xp6(1),n.Q6J("ngSwitchCase",!0),n.xp6(1),n.Q6J("ngSwitchCase",!1))},directives:[r.RF,r.n9],styles:[p],encapsulation:2,changeDetection:0}),t._diameters=new WeakMap,t})(),b=(()=>{class t extends y{constructor(t,e,i,n,r){super(t,e,i,n,r),this.mode="indeterminate"}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(a.t4),n.Y36(r.K0,8),n.Y36(l.Qb,8),n.Y36(g))},t.\u0275cmp=n.Xpm({type:t,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(t,e){2&t&&(n.Udp("width",e.diameter,"px")("height",e.diameter,"px"),n.ekj("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color"},features:[n.qOj],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(n.O4$(),n.TgZ(0,"svg",0),n.YNc(1,u,1,9,"circle",1),n.YNc(2,d,1,7,"circle",2),n.qZA()),2&t&&(n.Udp("width",e.diameter,"px")("height",e.diameter,"px"),n.Q6J("ngSwitch","indeterminate"===e.mode),n.uIk("viewBox",e._getViewBox()),n.xp6(1),n.Q6J("ngSwitchCase",!0),n.xp6(1),n.Q6J("ngSwitchCase",!1))},directives:[r.RF,r.n9],styles:[p],encapsulation:2,changeDetection:0}),t})(),v=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[s.BQ,r.ez],s.BQ]}),t})()},4810:(t,e,i)=>{"use strict";i.d(e,{U0:()=>C,VQ:()=>v,Fk:()=>A});var n=i(1572),r=i(1522),s=i(9861),o=i(6073),a=i(3490),l=i(4621),c=i(4230);const h=["input"],u=function(t){return{enterDuration:t}},d=["*"],p=new n.OlP("mat-radio-default-options",{providedIn:"root",factory:function(){return{color:"accent"}}});let f=0;const m={provide:o.JU,useExisting:(0,n.Gpc)(()=>v),multi:!0};class g{constructor(t,e){this.source=t,this.value=e}}const y=new n.OlP("MatRadioGroup");let b=(()=>{class t{constructor(t){this._changeDetector=t,this._value=null,this._name="mat-radio-group-"+f++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new n.vpe}get name(){return this._name}set name(t){this._name=t,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(t){this._labelPosition="before"===t?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(t){this._value!==t&&(this._value=t,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(t){this._selected=t,this.value=t?t.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(t){this._disabled=(0,s.Ig)(t),this._markRadiosForCheck()}get required(){return this._required}set required(t){this._required=(0,s.Ig)(t),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(t=>{t.name=this.name,t._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(t=>{t.checked=this.value===t.value,t.checked&&(this._selected=t)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new g(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(t=>t._markForCheck())}writeValue(t){this.value=t,this._changeDetector.markForCheck()}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetector.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.sBO))},t.\u0275dir=n.lG2({type:t,inputs:{name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"}}),t})(),v=(()=>{class t extends b{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=n.n5z(t)))(i||t)}}(),t.\u0275dir=n.lG2({type:t,selectors:[["mat-radio-group"]],contentQueries:function(t,e,i){if(1&t&&n.Suo(i,C,5),2&t){let t;n.iGM(t=n.CRH())&&(e._radios=t)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[n._Bn([m,{provide:y,useExisting:t}]),n.qOj]}),t})();class _{constructor(t){this._elementRef=t}}const w=(0,r.Kr)((0,r.sb)(_));let x=(()=>{class t extends w{constructor(t,e,i,r,o,a,l,c){super(e),this._changeDetector=i,this._focusMonitor=r,this._radioDispatcher=o,this._providerOverride=l,this._uniqueId="mat-radio-"+ ++f,this.id=this._uniqueId,this.change=new n.vpe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=t,this._noopAnimations="NoopAnimations"===a,c&&(this.tabIndex=(0,s.su)(c,0)),this._removeUniqueSelectionListener=o.listen((t,e)=>{t!==this.id&&e===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(t){const e=(0,s.Ig)(t);this._checked!==e&&(this._checked=e,e&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!e&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),e&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(t){this._value!==t&&(this._value=t,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===t),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(t){this._labelPosition=t}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(t){this._setDisabled((0,s.Ig)(t))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(t){this._required=(0,s.Ig)(t)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(t){this._color=t}get inputId(){return`${this.id||this._uniqueId}-input`}focus(t,e){e?this._focusMonitor.focusVia(this._inputElement,e,t):this._inputElement.nativeElement.focus(t)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{!t&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new g(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(t){t.stopPropagation()}_onInputChange(t){t.stopPropagation();const e=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),e&&this.radioGroup._emitChangeEvent())}_setDisabled(t){this._disabled!==t&&(this._disabled=t,this._changeDetector.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(b),n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(l.tE),n.Y36(c.A8),n.Y36(String),n.Y36(void 0),n.Y36(String))},t.\u0275dir=n.lG2({type:t,viewQuery:function(t,e){if(1&t&&n.Gf(h,5),2&t){let t;n.iGM(t=n.CRH())&&(e._inputElement=t.first)}},inputs:{id:"id",checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{change:"change"},features:[n.qOj]}),t})(),C=(()=>{class t extends x{constructor(t,e,i,n,r,s,o,a){super(t,e,i,n,r,s,o,a)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(y,8),n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(l.tE),n.Y36(c.A8),n.Y36(a.Qb,8),n.Y36(p,8),n.$8M("tabindex"))},t.\u0275cmp=n.Xpm({type:t,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(t,e){1&t&&n.NdJ("focus",function(){return e._inputElement.nativeElement.focus()}),2&t&&(n.uIk("tabindex",null)("id",e.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),n.ekj("mat-radio-checked",e.checked)("mat-radio-disabled",e.disabled)("_mat-animation-noopable",e._noopAnimations)("mat-primary","primary"===e.color)("mat-accent","accent"===e.color)("mat-warn","warn"===e.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[n.qOj],ngContentSelectors:d,decls:13,vars:20,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input","cdk-visually-hidden",3,"id","checked","disabled","tabIndex","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(t,e){if(1&t&&(n.F$t(),n.TgZ(0,"label",0,1),n.TgZ(2,"span",2),n._UZ(3,"span",3),n._UZ(4,"span",4),n.TgZ(5,"input",5,6),n.NdJ("change",function(t){return e._onInputChange(t)})("click",function(t){return e._onInputClick(t)}),n.qZA(),n.TgZ(7,"span",7),n._UZ(8,"span",8),n.qZA(),n.qZA(),n.TgZ(9,"span",9),n.TgZ(10,"span",10),n._uU(11,"\xa0"),n.qZA(),n.Hsn(12),n.qZA(),n.qZA()),2&t){const t=n.MAs(1);n.uIk("for",e.inputId),n.xp6(5),n.Q6J("id",e.inputId)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex)("required",e.required),n.uIk("name",e.name)("value",e.value)("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby)("aria-describedby",e.ariaDescribedby),n.xp6(2),n.Q6J("matRippleTrigger",t)("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",n.VKq(18,u,e._noopAnimations?0:150)),n.xp6(2),n.ekj("mat-radio-label-before","before"==e.labelPosition)}},directives:[r.wG],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;transition:transform ease 280ms,background-color ease 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5)}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}.mat-radio-label-content{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none;top:0;left:0}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{bottom:0;left:50%}.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-ripple,.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-ripple{outline:solid 3px}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n"],encapsulation:2,changeDetection:0}),t})(),A=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[r.si,r.BQ],r.BQ]}),t})()},4786:(t,e,i)=>{"use strict";i.d(e,{gD:()=>V,LD:()=>Q,$L:()=>G});var n=i(369),r=i(1511),s=i(1572),o=i(1522),a=i(6283),l=i(4894),c=i(4621),h=i(9861),u=i(4230),d=i(5842),p=i(9666),f=i(970),m=i(5446),g=i(1258),y=i(4324),b=i(9056),v=i(8868),_=i(1681),w=i(6424),x=i(9568),C=i(709),A=i(2526),S=i(6073);const E=["trigger"],k=["panel"];function T(t,e){if(1&t&&(s.TgZ(0,"span",8),s._uU(1),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Oqu(t.placeholder)}}function M(t,e){if(1&t&&(s.TgZ(0,"span",12),s._uU(1),s.qZA()),2&t){const t=s.oxw(2);s.xp6(1),s.Oqu(t.triggerValue)}}function L(t,e){1&t&&s.Hsn(0,0,["*ngSwitchCase","true"])}function I(t,e){if(1&t&&(s.TgZ(0,"span",9),s.YNc(1,M,2,1,"span",10),s.YNc(2,L,1,0,"ng-content",11),s.qZA()),2&t){const t=s.oxw();s.Q6J("ngSwitch",!!t.customTrigger),s.xp6(2),s.Q6J("ngSwitchCase",!0)}}function O(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",13),s.TgZ(1,"div",14,15),s.NdJ("@transformPanel.done",function(e){return s.CHM(t),s.oxw()._panelDoneAnimatingStream.next(e.toState)})("keydown",function(e){return s.CHM(t),s.oxw()._handleKeydown(e)}),s.Hsn(3,1),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("@transformPanelWrap",void 0),s.xp6(1),s.Gre("mat-select-panel ",t._getPanelTheme(),""),s.Udp("transform-origin",t._transformOrigin)("font-size",t._triggerFontSize,"px"),s.Q6J("ngClass",t.panelClass)("@transformPanel",t.multiple?"showing-multiple":"showing"),s.uIk("id",t.id+"-panel")("aria-multiselectable",t.multiple)("aria-label",t.ariaLabel||null)("aria-labelledby",t._getPanelAriaLabelledby())}}const D=[[["mat-select-trigger"]],"*"],R=["mat-select-trigger","*"],N={transformPanelWrap:(0,C.X$)("transformPanelWrap",[(0,C.eR)("* => void",(0,C.IO)("@transformPanel",[(0,C.pV)()],{optional:!0}))]),transformPanel:(0,C.X$)("transformPanel",[(0,C.SB)("void",(0,C.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,C.SB)("showing",(0,C.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,C.SB)("showing-multiple",(0,C.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,C.eR)("void => *",(0,C.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,C.eR)("* => void",(0,C.jt)("100ms 25ms linear",(0,C.oB)({opacity:0})))])};let P=0;const F=256,Z=new s.OlP("mat-select-scroll-strategy"),B=new s.OlP("MAT_SELECT_CONFIG"),U={provide:Z,deps:[n.aV],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class q{constructor(t,e){this.source=t,this.value=e}}class z{constructor(t,e,i,n,r){this._elementRef=t,this._defaultErrorStateMatcher=e,this._parentForm=i,this._parentFormGroup=n,this.ngControl=r}}const H=(0,o.Kr)((0,o.sb)((0,o.Id)((0,o.FD)(z)))),Y=new s.OlP("MatSelectTrigger");let G=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["mat-select-trigger"]],features:[s._Bn([{provide:Y,useExisting:t}])]}),t})(),j=(()=>{class t extends H{constructor(t,e,i,n,r,o,a,l,c,h,u,d,w,x){var C,A,S;super(r,n,a,l,h),this._viewportRuler=t,this._changeDetectorRef=e,this._ngZone=i,this._dir=o,this._parentFormField=c,this.ngControl=h,this._liveAnnouncer=w,this._defaultOptions=x,this._panelOpen=!1,this._compareWith=(t,e)=>t===e,this._uid="mat-select-"+P++,this._triggerAriaLabelledBy=null,this._destroy=new p.x,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+P++,this._panelDoneAnimatingStream=new p.x,this._overlayPanelClass=(null===(C=this._defaultOptions)||void 0===C?void 0:C.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._required=!1,this._multiple=!1,this._disableOptionCentering=null!==(S=null===(A=this._defaultOptions)||void 0===A?void 0:A.disableOptionCentering)&&void 0!==S&&S,this.ariaLabel="",this.optionSelectionChanges=(0,f.P)(()=>{const t=this.options;return t?t.changes.pipe((0,g.O)(t),(0,y.w)(()=>(0,m.T)(...t.map(t=>t.onSelectionChange)))):this._ngZone.onStable.pipe((0,b.q)(1),(0,y.w)(()=>this.optionSelectionChanges))}),this.openedChange=new s.vpe,this._openedStream=this.openedChange.pipe((0,v.h)(t=>t),(0,_.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,v.h)(t=>!t),(0,_.U)(()=>{})),this.selectionChange=new s.vpe,this.valueChange=new s.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==x?void 0:x.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=x.typeaheadDebounceInterval),this._scrollStrategyFactory=d,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(u)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(t){this._placeholder=t,this.stateChanges.next()}get required(){return this._required}set required(t){this._required=(0,h.Ig)(t),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(t){this._multiple=(0,h.Ig)(t)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(t){this._disableOptionCentering=(0,h.Ig)(t)}get compareWith(){return this._compareWith}set compareWith(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(t){(t!==this._value||this._multiple&&Array.isArray(t))&&(this.options&&this._setSelectionByValue(t),this._value=t)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(t){this._typeaheadDebounceInterval=(0,h.su)(t)}get id(){return this._id}set id(t){this._id=t||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new u.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,w.x)(),(0,x.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,x.R)(this._destroy)).subscribe(t=>{t.added.forEach(t=>t.select()),t.removed.forEach(t=>t.deselect())}),this.options.changes.pipe((0,g.O)(null),(0,x.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const t=this._getTriggerAriaLabelledby();if(t!==this._triggerAriaLabelledBy){const e=this._elementRef.nativeElement;this._triggerAriaLabelledBy=t,t?e.setAttribute("aria-labelledby",t):e.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}ngOnChanges(t){t.disabled&&this.stateChanges.next(),t.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(t){this.value=t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,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 t=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&t.reverse(),t.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(t){this.disabled||(this.panelOpen?this._handleOpenKeydown(t):this._handleClosedKeydown(t))}_handleClosedKeydown(t){const e=t.keyCode,i=e===d.JH||e===d.LH||e===d.oh||e===d.SV,n=e===d.K5||e===d.L_,r=this._keyManager;if(!r.isTyping()&&n&&!(0,d.Vb)(t)||(this.multiple||t.altKey)&&i)t.preventDefault(),this.open();else if(!this.multiple){const e=this.selected;r.onKeydown(t);const i=this.selected;i&&e!==i&&this._liveAnnouncer.announce(i.viewValue,1e4)}}_handleOpenKeydown(t){const e=this._keyManager,i=t.keyCode,n=i===d.JH||i===d.LH,r=e.isTyping();if(n&&t.altKey)t.preventDefault(),this.close();else if(r||i!==d.K5&&i!==d.L_||!e.activeItem||(0,d.Vb)(t))if(!r&&this._multiple&&i===d.A&&t.ctrlKey){t.preventDefault();const e=this.options.some(t=>!t.disabled&&!t.selected);this.options.forEach(t=>{t.disabled||(e?t.select():t.deselect())})}else{const i=e.activeItemIndex;e.onKeydown(t),this._multiple&&n&&t.shiftKey&&e.activeItem&&e.activeItemIndex!==i&&e.activeItem._selectViaInteraction()}else t.preventDefault(),e.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,b.q)(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._setSelectionByValue(this.ngControl?this.ngControl.value:this._value),this.stateChanges.next()})}_setSelectionByValue(t){if(this._selectionModel.selected.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&t)Array.isArray(t),t.forEach(t=>this._selectValue(t)),this._sortValues();else{const e=this._selectValue(t);e?this._keyManager.updateActiveItem(e):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(t){const e=this.options.find(e=>{if(this._selectionModel.isSelected(e))return!1;try{return null!=e.value&&this._compareWith(e.value,t)}catch(i){return!1}});return e&&this._selectionModel.select(e),e}_initKeyManager(){this._keyManager=new c.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,x.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe((0,x.R)(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):this._panelOpen||this.multiple||!this._keyManager.activeItem||this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const t=(0,m.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,x.R)(t)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,m.T)(...this.options.map(t=>t._stateChanges)).pipe((0,x.R)(t)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(t,e){const i=this._selectionModel.isSelected(t);null!=t.value||this._multiple?(i!==t.selected&&(t.selected?this._selectionModel.select(t):this._selectionModel.deselect(t)),e&&this._keyManager.setActiveItem(t),this.multiple&&(this._sortValues(),e&&this.focus())):(t.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(t.value)),i!==this._selectionModel.isSelected(t)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const t=this.options.toArray();this._selectionModel.sort((e,i)=>this.sortComparator?this.sortComparator(e,i,t):t.indexOf(e)-t.indexOf(i)),this.stateChanges.next()}}_propagateChanges(t){let e=null;e=this.multiple?this.selected.map(t=>t.value):this.selected?this.selected.value:t,this._value=e,this.valueChange.emit(e),this._onChange(e),this.selectionChange.emit(this._getChangeEvent(e)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var t;return!this._panelOpen&&!this.disabled&&(null===(t=this.options)||void 0===t?void 0:t.length)>0}focus(t){this._elementRef.nativeElement.focus(t)}_getPanelAriaLabelledby(){var t;if(this.ariaLabel)return null;const e=null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId();return this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var t;if(this.ariaLabel)return null;const e=null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId();let i=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(i+=" "+this.ariaLabelledby),i}_panelDoneAnimating(t){this.openedChange.emit(t)}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(l.rL),s.Y36(s.sBO),s.Y36(s.R0b),s.Y36(o.rD),s.Y36(s.SBq),s.Y36(A.Is,8),s.Y36(S.F,8),s.Y36(S.sg,8),s.Y36(a.G_,8),s.Y36(S.a5,10),s.$8M("tabindex"),s.Y36(Z),s.Y36(c.Kd),s.Y36(B,8))},t.\u0275dir=s.lG2({type:t,viewQuery:function(t,e){if(1&t&&(s.Gf(E,5),s.Gf(k,5),s.Gf(n.pI,5)),2&t){let t;s.iGM(t=s.CRH())&&(e.trigger=t.first),s.iGM(t=s.CRH())&&(e.panel=t.first),s.iGM(t=s.CRH())&&(e._overlayDir=t.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[s.qOj,s.TTD]}),t})(),V=(()=>{class t extends j{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(t,e,i){const n=this._getItemHeight();return Math.min(Math.max(0,n*t-e+n/2),i)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,x.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe((0,b.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(t){const e=(0,o.CB)(t,this.options,this.optionGroups),i=this._getItemHeight();this.panel.nativeElement.scrollTop=(0,o.jH)((t+e)*i,i,this.panel.nativeElement.scrollTop,F)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(t){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(t)}_getChangeEvent(t){return new q(this,t)}_calculateOverlayOffsetX(){const t=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),e=this._viewportRuler.getViewportSize(),i=this._isRtl(),n=this.multiple?56:32;let r;if(this.multiple)r=40;else if(this.disableOptionCentering)r=16;else{let t=this._selectionModel.selected[0]||this.options.first;r=t&&t.group?32:16}i||(r*=-1);const s=0-(t.left+r-(i?n:0)),o=t.right+r-e.width+(i?0:n);s>0?r+=s+8:o>0&&(r-=o+8),this._overlayDir.offsetX=Math.round(r),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(t,e,i){const n=this._getItemHeight(),r=(n-this._triggerRect.height)/2,s=Math.floor(F/n);let o;return this.disableOptionCentering?0:(o=0===this._scrollTop?t*n:this._scrollTop===i?(t-(this._getItemCount()-s))*n+(n-(this._getItemCount()*n-F)%n):e-n/2,Math.round(-1*o-r))}_checkOverlayWithinViewport(t){const e=this._getItemHeight(),i=this._viewportRuler.getViewportSize(),n=this._triggerRect.top-8,r=i.height-this._triggerRect.bottom-8,s=Math.abs(this._offsetY),o=Math.min(this._getItemCount()*e,F)-s-this._triggerRect.height;o>r?this._adjustPanelUp(o,r):s>n?this._adjustPanelDown(s,n,t):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(t,e){const i=Math.round(t-e);this._scrollTop-=i,this._offsetY-=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(t,e,i){const n=Math.round(t-e);if(this._scrollTop+=n,this._offsetY+=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=i)return this._scrollTop=i,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const t=this._getItemHeight(),e=this._getItemCount(),i=Math.min(e*t,F),n=e*t-i;let r;r=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),r+=(0,o.CB)(r,this.options,this.optionGroups);const s=i/2;this._scrollTop=this._calculateOverlayScroll(r,s,n),this._offsetY=this._calculateOverlayOffsetY(r,s,n),this._checkOverlayWithinViewport(n)}_getOriginBasedOnOption(){const t=this._getItemHeight(),e=(t-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-e+t/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-select"]],contentQueries:function(t,e,i){if(1&t&&(s.Suo(i,Y,5),s.Suo(i,o.ey,5),s.Suo(i,o.K7,5)),2&t){let t;s.iGM(t=s.CRH())&&(e.customTrigger=t.first),s.iGM(t=s.CRH())&&(e.options=t),s.iGM(t=s.CRH())&&(e.optionGroups=t)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(t,e){1&t&&s.NdJ("keydown",function(t){return e._handleKeydown(t)})("focus",function(){return e._onFocus()})("blur",function(){return e._onBlur()}),2&t&&(s.uIk("id",e.id)("tabindex",e.tabIndex)("aria-controls",e.panelOpen?e.id+"-panel":null)("aria-expanded",e.panelOpen)("aria-label",e.ariaLabel||null)("aria-required",e.required.toString())("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-describedby",e._ariaDescribedby||null)("aria-activedescendant",e._getAriaActiveDescendant()),s.ekj("mat-select-disabled",e.disabled)("mat-select-invalid",e.errorState)("mat-select-required",e.required)("mat-select-empty",e.empty)("mat-select-multiple",e.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[s._Bn([{provide:a.Eo,useExisting:t},{provide:o.HF,useExisting:t}]),s.qOj],ngContentSelectors:R,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(t,e){if(1&t&&(s.F$t(D),s.TgZ(0,"div",0,1),s.NdJ("click",function(){return e.toggle()}),s.TgZ(3,"div",2),s.YNc(4,T,2,1,"span",3),s.YNc(5,I,3,2,"span",4),s.qZA(),s.TgZ(6,"div",5),s._UZ(7,"div",6),s.qZA(),s.qZA(),s.YNc(8,O,4,14,"ng-template",7),s.NdJ("backdropClick",function(){return e.close()})("attach",function(){return e._onAttached()})("detach",function(){return e.close()})),2&t){const t=s.MAs(1);s.uIk("aria-owns",e.panelOpen?e.id+"-panel":null),s.xp6(3),s.Q6J("ngSwitch",e.empty),s.uIk("id",e._valueId),s.xp6(1),s.Q6J("ngSwitchCase",!0),s.xp6(1),s.Q6J("ngSwitchCase",!1),s.xp6(3),s.Q6J("cdkConnectedOverlayPanelClass",e._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",e._scrollStrategy)("cdkConnectedOverlayOrigin",t)("cdkConnectedOverlayOpen",e.panelOpen)("cdkConnectedOverlayPositions",e._positions)("cdkConnectedOverlayMinWidth",null==e._triggerRect?null:e._triggerRect.width)("cdkConnectedOverlayOffsetY",e._offsetY)}},directives:[n.xu,r.RF,r.n9,n.pI,r.ED,r.mk],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px}\n'],encapsulation:2,data:{animation:[N.transformPanelWrap,N.transformPanel]},changeDetection:0}),t})(),Q=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[U],imports:[[r.ez,n.U8,o.Ng,o.BQ],l.ZD,a.lN,o.Ng,o.BQ]}),t})()},5122:(t,e,i)=>{"use strict";i.d(e,{JX:()=>z,TM:()=>H,Rh:()=>q,SJ:()=>Y});var n=i(1353),r=i(4894),s=i(1511),o=i(1572),a=i(1522),l=i(9861),c=i(5842),h=i(9666),u=i(5960),d=i(5446),p=i(8868),f=i(1681),m=i(1096),g=i(9568),y=i(6424),b=i(9056),v=i(1258),_=i(5057),w=i(709),x=i(3490),C=i(4621),A=i(2526);const S=["*"];function E(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"div",2),o.NdJ("click",function(){return o.CHM(t),o.oxw()._onBackdropClicked()}),o.qZA()}if(2&t){const t=o.oxw();o.ekj("mat-drawer-shown",t._isShowingBackdrop())}}function k(t,e){1&t&&(o.TgZ(0,"mat-drawer-content"),o.Hsn(1,2),o.qZA())}const T=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],M=["mat-drawer","mat-drawer-content","*"];function L(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"div",2),o.NdJ("click",function(){return o.CHM(t),o.oxw()._onBackdropClicked()}),o.qZA()}if(2&t){const t=o.oxw();o.ekj("mat-drawer-shown",t._isShowingBackdrop())}}function I(t,e){1&t&&(o.TgZ(0,"mat-sidenav-content",3),o.Hsn(1,2),o.qZA())}const O=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],D=["mat-sidenav","mat-sidenav-content","*"],R=".mat-drawer-container{position:relative;z-index:1;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}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n",N={transformDrawer:(0,w.X$)("transform",[(0,w.SB)("open, open-instant",(0,w.oB)({transform:"none",visibility:"visible"})),(0,w.SB)("void",(0,w.oB)({"box-shadow":"none",visibility:"hidden"})),(0,w.eR)("void => open-instant",(0,w.jt)("0ms")),(0,w.eR)("void <=> open, open-instant => void",(0,w.jt)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},P=new o.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),F=new o.OlP("MAT_DRAWER_CONTAINER");let Z=(()=>{class t extends r.PQ{constructor(t,e,i,n,r){super(i,n,r),this._changeDetectorRef=t,this._container=e}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.sBO),o.Y36((0,o.Gpc)(()=>U)),o.Y36(o.SBq),o.Y36(r.mF),o.Y36(o.R0b))},t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(t,e){2&t&&o.Udp("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[o.qOj],ngContentSelectors:S,decls:1,vars:0,template:function(t,e){1&t&&(o.F$t(),o.Hsn(0))},encapsulation:2,changeDetection:0}),t})(),B=(()=>{class t{constructor(t,e,i,n,r,s,a){this._elementRef=t,this._focusTrapFactory=e,this._focusMonitor=i,this._platform=n,this._ngZone=r,this._doc=s,this._container=a,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new h.x,this._animationEnd=new h.x,this._animationState="void",this.openedChange=new o.vpe(!0),this._openedStream=this.openedChange.pipe((0,p.h)(t=>t),(0,f.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,p.h)(t=>t.fromState!==t.toState&&0===t.toState.indexOf("open")),(0,m.h)(void 0)),this._closedStream=this.openedChange.pipe((0,p.h)(t=>!t),(0,f.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,p.h)(t=>t.fromState!==t.toState&&"void"===t.toState),(0,m.h)(void 0)),this._destroyed=new h.x,this.onPositionChanged=new o.vpe,this._modeChanged=new h.x,this.openedChange.subscribe(t=>{t?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus()}),this._ngZone.runOutsideAngular(()=>{(0,u.R)(this._elementRef.nativeElement,"keydown").pipe((0,p.h)(t=>t.keyCode===c.hY&&!this.disableClose&&!(0,c.Vb)(t)),(0,g.R)(this._destroyed)).subscribe(t=>this._ngZone.run(()=>{this.close(),t.stopPropagation(),t.preventDefault()}))}),this._animationEnd.pipe((0,y.x)((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{const{fromState:e,toState:i}=t;(0===i.indexOf("open")&&"void"===e||"void"===i&&0===e.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(t){(t="end"===t?"end":"start")!=this._position&&(this._position=t,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(t){this._mode=t,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(t){this._disableClose=(0,l.Ig)(t)}get autoFocus(){const t=this._autoFocus;return null==t?"side"!==this.mode:t}set autoFocus(t){this._autoFocus=(0,l.Ig)(t)}get opened(){return this._opened}set opened(t){this.toggle((0,l.Ig)(t))}_takeFocus(){this.autoFocus&&this._focusTrap&&this._focusTrap.focusInitialElementWhenReady().then(t=>{t||"function"!=typeof this._elementRef.nativeElement.focus||this._elementRef.nativeElement.focus()})}_restoreFocus(){this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,this._openedVia):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null,this._openedVia=null)}_isFocusWithinDrawer(){var t;const e=null===(t=this._doc)||void 0===t?void 0:t.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}ngAfterContentInit(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState()}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(t){return this.toggle(!0,t)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0)}toggle(t=!this.opened,e){return this._setOpen(t,!t&&this._isFocusWithinDrawer(),e)}_setOpen(t,e,i="program"){return this._opened=t,t?(this._animationState=this._enableAnimations?"open":"open-instant",this._openedVia=i):(this._animationState="void",e&&this._restoreFocus()),this._updateFocusTrapState(),new Promise(t=>{this.openedChange.pipe((0,b.q)(1)).subscribe(e=>t(e?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_animationStartListener(t){this._animationStarted.next(t)}_animationDoneListener(t){this._animationEnd.next(t)}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.SBq),o.Y36(C.qV),o.Y36(C.tE),o.Y36(n.t4),o.Y36(o.R0b),o.Y36(s.K0,8),o.Y36(F,8))},t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-drawer"]],hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(t,e){1&t&&o.WFA("@transform.start",function(t){return e._animationStartListener(t)})("@transform.done",function(t){return e._animationDoneListener(t)}),2&t&&(o.uIk("align",null),o.d8E("@transform",e._animationState),o.ekj("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.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:S,decls:2,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(o.F$t(),o.TgZ(0,"div",0),o.Hsn(1),o.qZA())},directives:[r.PQ],encapsulation:2,data:{animation:[N.transformDrawer]},changeDetection:0}),t})(),U=(()=>{class t{constructor(t,e,i,n,r,s=!1,a){this._dir=t,this._element=e,this._ngZone=i,this._changeDetectorRef=n,this._animationMode=a,this._drawers=new o.n_E,this.backdropClick=new o.vpe,this._destroyed=new h.x,this._doCheckSubject=new h.x,this._contentMargins={left:null,right:null},this._contentMarginChanges=new h.x,t&&t.change.pipe((0,g.R)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),r.change().pipe((0,g.R)(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=s}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(t){this._autosize=(0,l.Ig)(t)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(t){this._backdropOverride=null==t?null:(0,l.Ig)(t)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe((0,v.O)(this._allDrawers),(0,g.R)(this._destroyed)).subscribe(t=>{this._drawers.reset(t.filter(t=>!t._container||t._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,v.O)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(t=>{this._watchDrawerToggle(t),this._watchDrawerPosition(t),this._watchDrawerMode(t)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,_.b)(10),(0,g.R)(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(t=>t.open())}close(){this._drawers.forEach(t=>t.close())}updateContentMargins(){let t=0,e=0;if(this._left&&this._left.opened)if("side"==this._left.mode)t+=this._left._getWidth();else if("push"==this._left.mode){const i=this._left._getWidth();t+=i,e-=i}if(this._right&&this._right.opened)if("side"==this._right.mode)e+=this._right._getWidth();else if("push"==this._right.mode){const i=this._right._getWidth();e+=i,t-=i}t=t||null,e=e||null,t===this._contentMargins.left&&e===this._contentMargins.right||(this._contentMargins={left:t,right:e},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(t){t._animationStarted.pipe((0,p.h)(t=>t.fromState!==t.toState),(0,g.R)(this._drawers.changes)).subscribe(t=>{"open-instant"!==t.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==t.mode&&t.openedChange.pipe((0,g.R)(this._drawers.changes)).subscribe(()=>this._setContainerClass(t.opened))}_watchDrawerPosition(t){t&&t.onPositionChanged.pipe((0,g.R)(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,b.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(t){t&&t._modeChanged.pipe((0,g.R)((0,d.T)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(t){const e=this._element.nativeElement.classList,i="mat-drawer-container-has-open";t?e.add(i):e.remove(i)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(t=>{"end"==t.position?this._end=t:this._start=t}),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(t=>t&&!t.disableClose&&this._canHaveBackdrop(t)).forEach(t=>t._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(t){return"side"!==t.mode||!!this._backdropOverride}_isDrawerOpen(t){return null!=t&&t.opened}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(A.Is,8),o.Y36(o.SBq),o.Y36(o.R0b),o.Y36(o.sBO),o.Y36(r.rL),o.Y36(P),o.Y36(x.Qb,8))},t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(t,e,i){if(1&t&&(o.Suo(i,Z,5),o.Suo(i,B,5)),2&t){let t;o.iGM(t=o.CRH())&&(e._content=t.first),o.iGM(t=o.CRH())&&(e._allDrawers=t)}},viewQuery:function(t,e){if(1&t&&o.Gf(Z,5),2&t){let t;o.iGM(t=o.CRH())&&(e._userContent=t.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(t,e){2&t&&o.ekj("mat-drawer-container-explicit-backdrop",e._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[o._Bn([{provide:F,useExisting:t}])],ngContentSelectors:M,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(t,e){1&t&&(o.F$t(T),o.YNc(0,E,1,2,"div",0),o.Hsn(1),o.Hsn(2,1),o.YNc(3,k,2,0,"mat-drawer-content",1)),2&t&&(o.Q6J("ngIf",e.hasBackdrop),o.xp6(3),o.Q6J("ngIf",!e._content))},directives:[s.O5,Z],styles:[R],encapsulation:2,changeDetection:0}),t})(),q=(()=>{class t extends Z{constructor(t,e,i,n,r){super(t,e,i,n,r)}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.sBO),o.Y36((0,o.Gpc)(()=>H)),o.Y36(o.SBq),o.Y36(r.mF),o.Y36(o.R0b))},t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(t,e){2&t&&o.Udp("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[o.qOj],ngContentSelectors:S,decls:1,vars:0,template:function(t,e){1&t&&(o.F$t(),o.Hsn(0))},encapsulation:2,changeDetection:0}),t})(),z=(()=>{class t extends B{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(t){this._fixedInViewport=(0,l.Ig)(t)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(t){this._fixedTopGap=(0,l.su)(t)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(t){this._fixedBottomGap=(0,l.su)(t)}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(t)))(i||t)}}(),t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(t,e){2&t&&(o.uIk("align",null),o.Udp("top",e.fixedInViewport?e.fixedTopGap:null,"px")("bottom",e.fixedInViewport?e.fixedBottomGap:null,"px"),o.ekj("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened)("mat-sidenav-fixed",e.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[o.qOj],ngContentSelectors:S,decls:2,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(o.F$t(),o.TgZ(0,"div",0),o.Hsn(1),o.qZA())},directives:[r.PQ],encapsulation:2,data:{animation:[N.transformDrawer]},changeDetection:0}),t})(),H=(()=>{class t extends U{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(t)))(i||t)}}(),t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-sidenav-container"]],contentQueries:function(t,e,i){if(1&t&&(o.Suo(i,q,5),o.Suo(i,z,5)),2&t){let t;o.iGM(t=o.CRH())&&(e._content=t.first),o.iGM(t=o.CRH())&&(e._allDrawers=t)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(t,e){2&t&&o.ekj("mat-drawer-container-explicit-backdrop",e._backdropOverride)},exportAs:["matSidenavContainer"],features:[o._Bn([{provide:F,useExisting:t}]),o.qOj],ngContentSelectors:D,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],["cdkScrollable","",4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"],["cdkScrollable",""]],template:function(t,e){1&t&&(o.F$t(O),o.YNc(0,L,1,2,"div",0),o.Hsn(1),o.Hsn(2,1),o.YNc(3,I,2,0,"mat-sidenav-content",1)),2&t&&(o.Q6J("ngIf",e.hasBackdrop),o.xp6(3),o.Q6J("ngIf",!e._content))},directives:[s.O5,q,r.PQ],styles:[R],encapsulation:2,changeDetection:0}),t})(),Y=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({imports:[[s.ez,a.BQ,n.ud,r.ZD],r.ZD,a.BQ]}),t})()},7521:(t,e,i)=>{"use strict";i.d(e,{Rr:()=>w,rP:()=>C});var n=i(6337),r=i(1572),s=i(1522),o=i(9861),a=i(6073),l=i(3490),c=i(4621);const h=["thumbContainer"],u=["toggleBar"],d=["input"],p=function(t){return{enterDuration:t}},f=["*"],m=new r.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let g=0;const y={provide:a.JU,useExisting:(0,r.Gpc)(()=>w),multi:!0};class b{constructor(t,e){this.source=t,this.checked=e}}class v{constructor(t){this._elementRef=t}}const _=(0,s.sb)((0,s.pj)((0,s.Kr)((0,s.Id)(v))));let w=(()=>{class t extends _{constructor(t,e,i,n,s,o){super(t),this._focusMonitor=e,this._changeDetectorRef=i,this.defaults=s,this._onChange=t=>{},this._onTouched=()=>{},this._uniqueId="mat-slide-toggle-"+ ++g,this._required=!1,this._checked=!1,this.name=null,this.id=this._uniqueId,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new r.vpe,this.toggleChange=new r.vpe,this.tabIndex=parseInt(n)||0,this.color=this.defaultColor=s.color||"accent",this._noopAnimations="NoopAnimations"===o}get required(){return this._required}set required(t){this._required=(0,o.Ig)(t)}get checked(){return this._checked}set checked(t){this._checked=(0,o.Ig)(t),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{"keyboard"===t||"program"===t?this._inputElement.nativeElement.focus():t||Promise.resolve().then(()=>this._onTouched())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onChangeEvent(t){t.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(t){t.stopPropagation()}writeValue(t){this.checked=!!t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetectorRef.markForCheck()}focus(t,e){e?this._focusMonitor.focusVia(this._inputElement,e,t):this._inputElement.nativeElement.focus(t)}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(new b(this,this.checked))}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(c.tE),r.Y36(r.sBO),r.$8M("tabindex"),r.Y36(m),r.Y36(l.Qb,8))},t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(t,e){if(1&t&&(r.Gf(h,5),r.Gf(u,5),r.Gf(d,5)),2&t){let t;r.iGM(t=r.CRH())&&(e._thumbEl=t.first),r.iGM(t=r.CRH())&&(e._thumbBarEl=t.first),r.iGM(t=r.CRH())&&(e._inputElement=t.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:12,hostBindings:function(t,e){2&t&&(r.Ikx("id",e.id),r.uIk("tabindex",e.disabled?null:-1)("aria-label",null)("aria-labelledby",null),r.ekj("mat-checked",e.checked)("mat-disabled",e.disabled)("mat-slide-toggle-label-before","before"==e.labelPosition)("_mat-animation-noopable",e._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[r._Bn([y]),r.qOj],ngContentSelectors:f,decls:16,vars:19,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["toggleBar",""],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],["thumbContainer",""],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(t,e){if(1&t&&(r.F$t(),r.TgZ(0,"label",0,1),r.TgZ(2,"div",2,3),r.TgZ(4,"input",4,5),r.NdJ("change",function(t){return e._onChangeEvent(t)})("click",function(t){return e._onInputClick(t)}),r.qZA(),r.TgZ(6,"div",6,7),r._UZ(8,"div",8),r.TgZ(9,"div",9),r._UZ(10,"div",10),r.qZA(),r.qZA(),r.qZA(),r.TgZ(11,"span",11,12),r.NdJ("cdkObserveContent",function(){return e._onLabelTextChange()}),r.TgZ(13,"span",13),r._uU(14,"\xa0"),r.qZA(),r.Hsn(15),r.qZA(),r.qZA()),2&t){const t=r.MAs(1),i=r.MAs(12);r.uIk("for",e.inputId),r.xp6(2),r.ekj("mat-slide-toggle-bar-no-side-margin",!i.textContent||!i.textContent.trim()),r.xp6(2),r.Q6J("id",e.inputId)("required",e.required)("tabIndex",e.tabIndex)("checked",e.checked)("disabled",e.disabled),r.uIk("name",e.name)("aria-checked",e.checked.toString())("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby),r.xp6(5),r.Q6J("matRippleTrigger",t)("matRippleDisabled",e.disableRipple||e.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",r.VKq(17,p,e._noopAnimations?0:150))}},directives:[s.wG,n.wD],styles:[".mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:transparent}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}.cdk-high-contrast-active .mat-slide-toggle.cdk-keyboard-focused .mat-slide-toggle-bar{outline:2px dotted;outline-offset:5px}\n"],encapsulation:2,changeDetection:0}),t})(),x=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({}),t})(),C=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[x,s.si,s.BQ,n.Q8],x,s.BQ]}),t})()},1403:(t,e,i)=>{"use strict";i.d(e,{Ve:()=>E,ux:()=>k,ZX:()=>S});var n=i(369),r=i(6899),s=i(1511),o=i(1572),a=i(1522),l=i(5980),c=i(9666),h=i(9056),u=i(9568),d=i(709),p=i(4621),f=i(72),m=i(1353);function g(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"div",1),o.TgZ(1,"button",2),o.NdJ("click",function(){return o.CHM(t),o.oxw().action()}),o._uU(2),o.qZA(),o.qZA()}if(2&t){const t=o.oxw();o.xp6(2),o.Oqu(t.data.action)}}function y(t,e){}const b=new o.OlP("MatSnackBarData");class v{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const _=Math.pow(2,31)-1;class w{constructor(t,e){this._overlayRef=e,this._afterDismissed=new c.x,this._afterOpened=new c.x,this._onAction=new c.x,this._dismissedByAction=!1,this.containerInstance=t,this.onAction().subscribe(()=>this.dismiss()),t._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(t){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(t,_))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}let x=(()=>{class t{constructor(t,e){this.snackBarRef=t,this.data=e}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(w),o.Y36(b))},t.\u0275cmp=o.Xpm({type:t,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(t,e){1&t&&(o.TgZ(0,"span"),o._uU(1),o.qZA(),o.YNc(2,g,3,1,"div",0)),2&t&&(o.xp6(1),o.Oqu(e.data.message),o.xp6(1),o.Q6J("ngIf",e.hasAction))},directives:[s.O5,l.lW],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}\n"],encapsulation:2,changeDetection:0}),t})();const C={snackBarState:(0,d.X$)("state",[(0,d.SB)("void, hidden",(0,d.oB)({transform:"scale(0.8)",opacity:0})),(0,d.SB)("visible",(0,d.oB)({transform:"scale(1)",opacity:1})),(0,d.eR)("* => visible",(0,d.jt)("150ms cubic-bezier(0, 0, 0.2, 1)")),(0,d.eR)("* => void, * => hidden",(0,d.jt)("75ms cubic-bezier(0.4, 0.0, 1, 1)",(0,d.oB)({opacity:0})))])};let A=(()=>{class t extends r.en{constructor(t,e,i,n,r){super(),this._ngZone=t,this._elementRef=e,this._changeDetectorRef=i,this._platform=n,this.snackBarConfig=r,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new c.x,this._onExit=new c.x,this._onEnter=new c.x,this._animationState="void",this.attachDomPortal=t=>(this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachDomPortal(t)),this._live="assertive"!==r.politeness||r.announcementMessage?"off"===r.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(t){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(t)}attachTemplatePortal(t){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(t)}onAnimationEnd(t){const{fromState:e,toState:i}=t;if(("void"===i&&"void"!==e||"hidden"===i)&&this._completeExit(),"visible"===i){const t=this._onEnter;this._ngZone.run(()=>{t.next(),t.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._onExit}ngOnDestroy(){this._destroyed=!0,this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe((0,h.q)(1)).subscribe(()=>{this._onExit.next(),this._onExit.complete()})}_applySnackBarClasses(){const t=this._elementRef.nativeElement,e=this.snackBarConfig.panelClass;e&&(Array.isArray(e)?e.forEach(e=>t.classList.add(e)):t.classList.add(e)),"center"===this.snackBarConfig.horizontalPosition&&t.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&t.classList.add("mat-snack-bar-top")}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const t=this._elementRef.nativeElement.querySelector("[aria-hidden]"),e=this._elementRef.nativeElement.querySelector("[aria-live]");if(t&&e){let i=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&t.contains(document.activeElement)&&(i=document.activeElement),t.removeAttribute("aria-hidden"),e.appendChild(t),null==i||i.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.R0b),o.Y36(o.SBq),o.Y36(o.sBO),o.Y36(m.t4),o.Y36(v))},t.\u0275cmp=o.Xpm({type:t,selectors:[["snack-bar-container"]],viewQuery:function(t,e){if(1&t&&o.Gf(r.Pl,7),2&t){let t;o.iGM(t=o.CRH())&&(e._portalOutlet=t.first)}},hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(t,e){1&t&&o.WFA("@state.done",function(t){return e.onAnimationEnd(t)}),2&t&&o.d8E("@state",e._animationState)},features:[o.qOj],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(t,e){1&t&&(o.TgZ(0,"div",0),o.YNc(1,y,0,0,"ng-template",1),o.qZA(),o._UZ(2,"div")),2&t&&(o.xp6(2),o.uIk("aria-live",e._live)("role",e._role))},directives:[r.Pl],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}\n"],encapsulation:2,data:{animation:[C.snackBarState]}}),t})(),S=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({imports:[[n.U8,r.eL,s.ez,l.ot,a.BQ],a.BQ]}),t})();const E=new o.OlP("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new v}});let k=(()=>{class t{constructor(t,e,i,n,r,s){this._overlay=t,this._live=e,this._injector=i,this._breakpointObserver=n,this._parentSnackBar=r,this._defaultConfig=s,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=x,this.snackBarContainerComponent=A,this.handsetCssClass="mat-snack-bar-handset"}get _openedSnackBarRef(){const t=this._parentSnackBar;return t?t._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(t){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=t:this._snackBarRefAtThisLevel=t}openFromComponent(t,e){return this._attach(t,e)}openFromTemplate(t,e){return this._attach(t,e)}open(t,e="",i){const n=Object.assign(Object.assign({},this._defaultConfig),i);return n.data={message:t,action:e},n.announcementMessage===t&&(n.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,n)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(t,e){const i=o.zs3.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:v,useValue:e}]}),n=new r.C5(this.snackBarContainerComponent,e.viewContainerRef,i),s=t.attach(n);return s.instance.snackBarConfig=e,s.instance}_attach(t,e){const i=Object.assign(Object.assign(Object.assign({},new v),this._defaultConfig),e),n=this._createOverlay(i),s=this._attachSnackBarContainer(n,i),a=new w(s,n);if(t instanceof o.Rgc){const e=new r.UE(t,null,{$implicit:i.data,snackBarRef:a});a.instance=s.attachTemplatePortal(e)}else{const e=this._createInjector(i,a),n=new r.C5(t,void 0,e),o=s.attachComponentPortal(n);a.instance=o.instance}return this._breakpointObserver.observe(f.u3.HandsetPortrait).pipe((0,u.R)(n.detachments())).subscribe(t=>{const e=n.overlayElement.classList;t.matches?e.add(this.handsetCssClass):e.remove(this.handsetCssClass)}),i.announcementMessage&&s._onAnnounce.subscribe(()=>{this._live.announce(i.announcementMessage,i.politeness)}),this._animateSnackBar(a,i),this._openedSnackBarRef=a,this._openedSnackBarRef}_animateSnackBar(t,e){t.afterDismissed().subscribe(()=>{this._openedSnackBarRef==t&&(this._openedSnackBarRef=null),e.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{t.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):t.containerInstance.enter(),e.duration&&e.duration>0&&t.afterOpened().subscribe(()=>t._dismissAfter(e.duration))}_createOverlay(t){const e=new n.X_;e.direction=t.direction;let i=this._overlay.position().global();const r="rtl"===t.direction,s="left"===t.horizontalPosition||"start"===t.horizontalPosition&&!r||"end"===t.horizontalPosition&&r,o=!s&&"center"!==t.horizontalPosition;return s?i.left("0"):o?i.right("0"):i.centerHorizontally(),"top"===t.verticalPosition?i.top("0"):i.bottom("0"),e.positionStrategy=i,this._overlay.create(e)}_createInjector(t,e){return o.zs3.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:w,useValue:e},{provide:b,useValue:t.data}]})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.aV),o.LFG(p.Kd),o.LFG(o.zs3),o.LFG(f.Yg),o.LFG(t,12),o.LFG(E))},t.\u0275prov=o.Yz7({factory:function(){return new t(o.LFG(n.aV),o.LFG(p.Kd),o.LFG(o.gxx),o.LFG(f.Yg),o.LFG(t,12),o.LFG(E))},token:t,providedIn:S}),t})()},2464:(t,e,i)=>{"use strict";i.d(e,{YE:()=>b,nU:()=>S,JX:()=>E});var n=i(1572),r=i(9861),s=i(1522),o=i(5842),a=i(9666),l=i(5446),c=i(709),h=i(1511),u=i(4621);const d=["mat-sort-header",""];function p(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"div",3),n.NdJ("@arrowPosition.start",function(){return n.CHM(t),n.oxw()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return n.CHM(t),n.oxw()._disableViewStateAnimation=!1}),n._UZ(1,"div",4),n.TgZ(2,"div",5),n._UZ(3,"div",6),n._UZ(4,"div",7),n._UZ(5,"div",8),n.qZA(),n.qZA()}if(2&t){const t=n.oxw();n.Q6J("@arrowOpacity",t._getArrowViewState())("@arrowPosition",t._getArrowViewState())("@allowChildren",t._getArrowDirectionState()),n.xp6(2),n.Q6J("@indicator",t._getArrowDirectionState()),n.xp6(1),n.Q6J("@leftPointer",t._getArrowDirectionState()),n.xp6(1),n.Q6J("@rightPointer",t._getArrowDirectionState())}}const f=["*"],m=new n.OlP("MAT_SORT_DEFAULT_OPTIONS");class g{}const y=(0,s.dB)((0,s.Id)(g));let b=(()=>{class t extends y{constructor(t){super(),this._defaultOptions=t,this.sortables=new Map,this._stateChanges=new a.x,this.start="asc",this._direction="",this.sortChange=new n.vpe}get direction(){return this._direction}set direction(t){this._direction=t}get disableClear(){return this._disableClear}set disableClear(t){this._disableClear=(0,r.Ig)(t)}register(t){this.sortables.set(t.id,t)}deregister(t){this.sortables.delete(t.id)}sort(t){this.active!=t.id?(this.active=t.id,this.direction=t.start?t.start:this.start):this.direction=this.getNextSortDirection(t),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(t){var e,i,n;if(!t)return"";const r=null!==(i=null!==(e=null==t?void 0:t.disableClear)&&void 0!==e?e:this.disableClear)&&void 0!==i?i:!!(null===(n=this._defaultOptions)||void 0===n?void 0:n.disableClear);let s=function(t,e){let i=["asc","desc"];return"desc"==t&&i.reverse(),e||i.push(""),i}(t.start||this.start,r),o=s.indexOf(this.direction)+1;return o>=s.length&&(o=0),s[o]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(m,8))},t.\u0275dir=n.lG2({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[n.qOj,n.TTD]}),t})();const v=s.mZ.ENTERING+" "+s.yN.STANDARD_CURVE,_={indicator:(0,c.X$)("indicator",[(0,c.SB)("active-asc, asc",(0,c.oB)({transform:"translateY(0px)"})),(0,c.SB)("active-desc, desc",(0,c.oB)({transform:"translateY(10px)"})),(0,c.eR)("active-asc <=> active-desc",(0,c.jt)(v))]),leftPointer:(0,c.X$)("leftPointer",[(0,c.SB)("active-asc, asc",(0,c.oB)({transform:"rotate(-45deg)"})),(0,c.SB)("active-desc, desc",(0,c.oB)({transform:"rotate(45deg)"})),(0,c.eR)("active-asc <=> active-desc",(0,c.jt)(v))]),rightPointer:(0,c.X$)("rightPointer",[(0,c.SB)("active-asc, asc",(0,c.oB)({transform:"rotate(45deg)"})),(0,c.SB)("active-desc, desc",(0,c.oB)({transform:"rotate(-45deg)"})),(0,c.eR)("active-asc <=> active-desc",(0,c.jt)(v))]),arrowOpacity:(0,c.X$)("arrowOpacity",[(0,c.SB)("desc-to-active, asc-to-active, active",(0,c.oB)({opacity:1})),(0,c.SB)("desc-to-hint, asc-to-hint, hint",(0,c.oB)({opacity:.54})),(0,c.SB)("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",(0,c.oB)({opacity:0})),(0,c.eR)("* => asc, * => desc, * => active, * => hint, * => void",(0,c.jt)("0ms")),(0,c.eR)("* <=> *",(0,c.jt)(v))]),arrowPosition:(0,c.X$)("arrowPosition",[(0,c.eR)("* => desc-to-hint, * => desc-to-active",(0,c.jt)(v,(0,c.F4)([(0,c.oB)({transform:"translateY(-25%)"}),(0,c.oB)({transform:"translateY(0)"})]))),(0,c.eR)("* => hint-to-desc, * => active-to-desc",(0,c.jt)(v,(0,c.F4)([(0,c.oB)({transform:"translateY(0)"}),(0,c.oB)({transform:"translateY(25%)"})]))),(0,c.eR)("* => asc-to-hint, * => asc-to-active",(0,c.jt)(v,(0,c.F4)([(0,c.oB)({transform:"translateY(25%)"}),(0,c.oB)({transform:"translateY(0)"})]))),(0,c.eR)("* => hint-to-asc, * => active-to-asc",(0,c.jt)(v,(0,c.F4)([(0,c.oB)({transform:"translateY(0)"}),(0,c.oB)({transform:"translateY(-25%)"})]))),(0,c.SB)("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",(0,c.oB)({transform:"translateY(0)"})),(0,c.SB)("hint-to-desc, active-to-desc, desc",(0,c.oB)({transform:"translateY(-25%)"})),(0,c.SB)("hint-to-asc, active-to-asc, asc",(0,c.oB)({transform:"translateY(25%)"}))]),allowChildren:(0,c.X$)("allowChildren",[(0,c.eR)("* <=> *",[(0,c.IO)("@*",(0,c.pV)(),{optional:!0})])])};let w=(()=>{class t{constructor(){this.changes=new a.x}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=n.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})();const x={provide:w,deps:[[new n.FiY,new n.tp0,w]],useFactory:function(t){return t||new w}};class C{}const A=(0,s.Id)(C);let S=(()=>{class t extends A{constructor(t,e,i,n,r,s){super(),this._intl=t,this._changeDetectorRef=e,this._sort=i,this._columnDef=n,this._focusMonitor=r,this._elementRef=s,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._handleStateChanges()}get disableClear(){return this._disableClear}set disableClear(t){this._disableClear=(0,r.Ig)(t)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{const e=!!t;e!==this._showIndicatorHint&&(this._setIndicatorHintVisible(e),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(t){this._isDisabled()&&t||(this._showIndicatorHint=t,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(t){this._viewState=t||{},this._disableViewStateAnimation&&(this._viewState={toState:t.toState})}_toggleOnInteraction(){this._sort.sort(this),"hint"!==this._viewState.toState&&"active"!==this._viewState.toState||(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(t){this._isDisabled()||t.keyCode!==o.L_&&t.keyCode!==o.K5||(t.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const t=this._viewState.fromState;return(t?`${t}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_handleStateChanges(){this._rerenderSubscription=(0,l.T)(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),"hint"!==this._viewState.toState&&"active"!==this._viewState.toState||(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(w),n.Y36(n.sBO),n.Y36(b,8),n.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),n.Y36(u.tE),n.Y36(n.SBq))},t.\u0275cmp=n.Xpm({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(t,e){1&t&&n.NdJ("click",function(){return e._handleClick()})("keydown",function(t){return e._handleKeydown(t)})("mouseenter",function(){return e._setIndicatorHintVisible(!0)})("mouseleave",function(){return e._setIndicatorHintVisible(!1)}),2&t&&(n.uIk("aria-sort",e._getAriaSortAttribute()),n.ekj("mat-sort-header-disabled",e._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[n.qOj],attrs:d,ngContentSelectors:f,decls:4,vars:6,consts:[["role","button",1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(t,e){1&t&&(n.F$t(),n.TgZ(0,"div",0),n.TgZ(1,"div",1),n.Hsn(2),n.qZA(),n.YNc(3,p,6,6,"div",2),n.qZA()),2&t&&(n.ekj("mat-sort-header-sorted",e._isSorted())("mat-sort-header-position-before","before"==e.arrowPosition),n.uIk("tabindex",e._isDisabled()?null:0),n.xp6(3),n.Q6J("ngIf",e._renderArrow()))},directives:[h.O5],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[_.indicator,_.leftPointer,_.rightPointer,_.arrowOpacity,_.arrowPosition,_.allowChildren]},changeDetection:0}),t})(),E=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({providers:[x],imports:[[h.ez,s.BQ]]}),t})()},7753:(t,e,i)=>{"use strict";i.d(e,{C0:()=>Q,VY:()=>B,Vq:()=>K,z9:()=>j,T5:()=>et,Ic:()=>$,fd:()=>tt});var n=i(6899),r=i(8544),s=i(1511),o=i(1572),a=i(5980),l=i(1522),c=i(3691),h=i(9666),u=i(6042),d=i(4324),p=i(1681),f=i(1258),m=i(9568),g=i(6424),y=i(709),b=i(4621),v=i(2526);function _(t,e){if(1&t&&o.GkF(0,8),2&t){const t=o.oxw();o.Q6J("ngTemplateOutlet",t.iconOverrides[t.state])("ngTemplateOutletContext",t._getIconContext())}}function w(t,e){if(1&t&&(o.TgZ(0,"span"),o._uU(1),o.qZA()),2&t){const t=o.oxw(2);o.xp6(1),o.Oqu(t._getDefaultTextForState(t.state))}}function x(t,e){if(1&t&&(o.TgZ(0,"mat-icon"),o._uU(1),o.qZA()),2&t){const t=o.oxw(2);o.xp6(1),o.Oqu(t._getDefaultTextForState(t.state))}}function C(t,e){if(1&t&&(o.ynx(0,9),o.YNc(1,w,2,1,"span",10),o.YNc(2,x,2,1,"mat-icon",11),o.BQk()),2&t){const t=o.oxw();o.Q6J("ngSwitch",t.state),o.xp6(1),o.Q6J("ngSwitchCase","number")}}function A(t,e){if(1&t&&(o.TgZ(0,"div",12),o.GkF(1,13),o.qZA()),2&t){const t=o.oxw();o.xp6(1),o.Q6J("ngTemplateOutlet",t._templateLabel().template)}}function S(t,e){if(1&t&&(o.TgZ(0,"div",12),o._uU(1),o.qZA()),2&t){const t=o.oxw();o.xp6(1),o.Oqu(t.label)}}function E(t,e){if(1&t&&(o.TgZ(0,"div",14),o._uU(1),o.qZA()),2&t){const t=o.oxw();o.xp6(1),o.Oqu(t._intl.optionalLabel)}}function k(t,e){if(1&t&&(o.TgZ(0,"div",15),o._uU(1),o.qZA()),2&t){const t=o.oxw();o.xp6(1),o.Oqu(t.errorMessage)}}function T(t,e){}function M(t,e){if(1&t&&(o.Hsn(0),o.YNc(1,T,0,0,"ng-template",0)),2&t){const t=o.oxw();o.xp6(1),o.Q6J("cdkPortalOutlet",t._portal)}}const L=["*"];function I(t,e){1&t&&o._UZ(0,"div",9)}const O=function(t,e){return{step:t,i:e}};function D(t,e){if(1&t&&(o.ynx(0),o.GkF(1,7),o.YNc(2,I,1,0,"div",8),o.BQk()),2&t){const t=e.$implicit,i=e.index,n=e.last;o.oxw(2);const r=o.MAs(4);o.xp6(1),o.Q6J("ngTemplateOutlet",r)("ngTemplateOutletContext",o.WLB(3,O,t,i)),o.xp6(1),o.Q6J("ngIf",!n)}}function R(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"div",10),o.NdJ("@horizontalStepTransition.done",function(e){return o.CHM(t),o.oxw(2)._animationDone.next(e)}),o.GkF(1,11),o.qZA()}if(2&t){const t=e.$implicit,i=e.index,n=o.oxw(2);o.Q6J("@horizontalStepTransition",n._getAnimationDirection(i))("id",n._getStepContentId(i)),o.uIk("aria-labelledby",n._getStepLabelId(i))("aria-expanded",n.selectedIndex===i),o.xp6(1),o.Q6J("ngTemplateOutlet",t.content)}}function N(t,e){if(1&t&&(o.ynx(0),o.TgZ(1,"div",3),o.YNc(2,D,3,6,"ng-container",4),o.qZA(),o.TgZ(3,"div",5),o.YNc(4,R,2,5,"div",6),o.qZA(),o.BQk()),2&t){const t=o.oxw();o.xp6(2),o.Q6J("ngForOf",t.steps),o.xp6(2),o.Q6J("ngForOf",t.steps)}}function P(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"div",13),o.GkF(1,7),o.TgZ(2,"div",14),o.TgZ(3,"div",15),o.NdJ("@verticalStepTransition.done",function(e){return o.CHM(t),o.oxw(2)._animationDone.next(e)}),o.TgZ(4,"div",16),o.GkF(5,11),o.qZA(),o.qZA(),o.qZA(),o.qZA()}if(2&t){const t=e.$implicit,i=e.index,n=e.last,r=o.oxw(2),s=o.MAs(4);o.xp6(1),o.Q6J("ngTemplateOutlet",s)("ngTemplateOutletContext",o.WLB(9,O,t,i)),o.xp6(1),o.ekj("mat-stepper-vertical-line",!n),o.xp6(1),o.Q6J("@verticalStepTransition",r._getAnimationDirection(i))("id",r._getStepContentId(i)),o.uIk("aria-labelledby",r._getStepLabelId(i))("aria-expanded",r.selectedIndex===i),o.xp6(2),o.Q6J("ngTemplateOutlet",t.content)}}function F(t,e){if(1&t&&(o.ynx(0),o.YNc(1,P,6,12,"div",12),o.BQk()),2&t){const t=o.oxw();o.xp6(1),o.Q6J("ngForOf",t.steps)}}function Z(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"mat-step-header",17),o.NdJ("click",function(){return e.step.select()})("keydown",function(e){return o.CHM(t),o.oxw()._onKeydown(e)}),o.qZA()}if(2&t){const t=e.step,i=e.i,n=o.oxw();o.ekj("mat-horizontal-stepper-header","horizontal"===n.orientation)("mat-vertical-stepper-header","vertical"===n.orientation),o.Q6J("tabIndex",n._getFocusIndex()===i?0:-1)("id",n._getStepLabelId(i))("index",i)("state",n._getIndicatorType(i,t.state))("label",t.stepLabel||t.label)("selected",n.selectedIndex===i)("active",t.completed||n.selectedIndex===i||!n.linear)("optional",t.optional)("errorMessage",t.errorMessage)("iconOverrides",n._iconOverrides)("disableRipple",n.disableRipple)("color",t.color||n.color),o.uIk("aria-posinset",i+1)("aria-setsize",n.steps.length)("aria-controls",n._getStepContentId(i))("aria-selected",n.selectedIndex==i)("aria-label",t.ariaLabel||null)("aria-labelledby",!t.ariaLabel&&t.ariaLabelledby?t.ariaLabelledby:null)}}let B=(()=>{class t extends r.u6{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(t)))(i||t)}}(),t.\u0275dir=o.lG2({type:t,selectors:[["","matStepLabel",""]],features:[o.qOj]}),t})(),U=(()=>{class t{constructor(){this.changes=new h.x,this.optionalLabel="Optional"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=o.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})();const q={provide:U,deps:[[new o.FiY,new o.tp0,U]],useFactory:function(t){return t||new U}};class z extends r.KL{constructor(t){super(t)}}const H=(0,l.pj)(z,"primary");let Y=(()=>{class t extends H{constructor(t,e,i,n){super(i),this._intl=t,this._focusMonitor=e,this._intlSubscription=t.changes.subscribe(()=>n.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(t,e){t?this._focusMonitor.focusVia(this._elementRef,t,e):this._elementRef.nativeElement.focus(e)}_stringLabel(){return this.label instanceof B?null:this.label}_templateLabel(){return this.label instanceof B?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(t){return"number"==t?`${this.index+1}`:"edit"==t?"create":"error"==t?"warning":t}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(U),o.Y36(b.tE),o.Y36(o.SBq),o.Y36(o.sBO))},t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],inputs:{color:"color",state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple"},features:[o.qOj],decls:10,vars:19,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content",3,"ngSwitch"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngSwitchCase"],[3,"ngSwitch",4,"ngSwitchDefault"],[1,"mat-step-label"],["class","mat-step-text-label",4,"ngIf"],["class","mat-step-optional",4,"ngIf"],["class","mat-step-sub-label-error",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[1,"mat-step-text-label"],[3,"ngTemplateOutlet"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function(t,e){1&t&&(o._UZ(0,"div",0),o.TgZ(1,"div"),o.TgZ(2,"div",1),o.YNc(3,_,1,2,"ng-container",2),o.YNc(4,C,3,2,"ng-container",3),o.qZA(),o.qZA(),o.TgZ(5,"div",4),o.YNc(6,A,2,1,"div",5),o.YNc(7,S,2,1,"div",5),o.YNc(8,E,2,1,"div",6),o.YNc(9,k,2,1,"div",7),o.qZA()),2&t&&(o.Q6J("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disableRipple),o.xp6(1),o.Gre("mat-step-icon-state-",e.state," mat-step-icon"),o.ekj("mat-step-icon-selected",e.selected),o.xp6(1),o.Q6J("ngSwitch",!(!e.iconOverrides||!e.iconOverrides[e.state])),o.xp6(1),o.Q6J("ngSwitchCase",!0),o.xp6(2),o.ekj("mat-step-label-active",e.active)("mat-step-label-selected",e.selected)("mat-step-label-error","error"==e.state),o.xp6(1),o.Q6J("ngIf",e._templateLabel()),o.xp6(1),o.Q6J("ngIf",e._stringLabel()),o.xp6(1),o.Q6J("ngIf",e.optional&&"error"!=e.state),o.xp6(1),o.Q6J("ngIf","error"==e.state))},directives:[l.wG,s.RF,s.n9,s.ED,s.O5,s.tP,c.Hw],styles:[".mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:transparent}.mat-step-optional,.mat-step-sub-label-error{font-size:12px}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative}.mat-step-icon-content,.mat-step-icon .mat-icon{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,changeDetection:0}),t})();const G={horizontalStepTransition:(0,y.X$)("horizontalStepTransition",[(0,y.SB)("previous",(0,y.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),(0,y.SB)("current",(0,y.oB)({transform:"none",visibility:"inherit"})),(0,y.SB)("next",(0,y.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),(0,y.eR)("* => *",(0,y.jt)("500ms cubic-bezier(0.35, 0, 0.25, 1)"))]),verticalStepTransition:(0,y.X$)("verticalStepTransition",[(0,y.SB)("previous",(0,y.oB)({height:"0px",visibility:"hidden"})),(0,y.SB)("next",(0,y.oB)({height:"0px",visibility:"hidden"})),(0,y.SB)("current",(0,y.oB)({height:"*",visibility:"inherit"})),(0,y.eR)("* <=> current",(0,y.jt)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])};let j=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.Rgc))},t.\u0275dir=o.lG2({type:t,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),t})(),V=(()=>{class t{constructor(t){this._template=t}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.Rgc))},t.\u0275dir=o.lG2({type:t,selectors:[["ng-template","matStepContent",""]]}),t})(),Q=(()=>{class t extends r.be{constructor(t,e,i,n){super(t,n),this._errorStateMatcher=e,this._viewContainerRef=i,this._isSelected=u.w0.EMPTY}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe((0,d.w)(()=>this._stepper.selectionChange.pipe((0,p.U)(t=>t.selectedStep===this),(0,f.O)(this._stepper.selected===this)))).subscribe(t=>{t&&this._lazyContent&&!this._portal&&(this._portal=new n.UE(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(t,e){return this._errorStateMatcher.isErrorState(t,e)||!!(t&&t.invalid&&this.interacted)}}return t.\u0275fac=function(e){return new(e||t)(o.Y36((0,o.Gpc)(()=>K)),o.Y36(l.rD,4),o.Y36(o.s_b),o.Y36(r.gx,8))},t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-step"]],contentQueries:function(t,e,i){if(1&t&&(o.Suo(i,B,5),o.Suo(i,V,5)),2&t){let t;o.iGM(t=o.CRH())&&(e.stepLabel=t.first),o.iGM(t=o.CRH())&&(e._lazyContent=t.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[o._Bn([{provide:l.rD,useExisting:t},{provide:r.be,useExisting:t}]),o.qOj],ngContentSelectors:L,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(t,e){1&t&&(o.F$t(),o.YNc(0,M,2,1,"ng-template"))},directives:[n.Pl],encapsulation:2,changeDetection:0}),t})(),W=(()=>{class t extends r.B8{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(t)))(i||t)}}(),t.\u0275dir=o.lG2({type:t,features:[o.qOj]}),t})(),J=(()=>{class t extends W{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(t)))(i||t)}}(),t.\u0275dir=o.lG2({type:t,selectors:[["mat-horizontal-stepper"]],features:[o.qOj]}),t})(),X=(()=>{class t extends W{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(t)))(i||t)}}(),t.\u0275dir=o.lG2({type:t,selectors:[["mat-vertical-stepper"]],features:[o.qOj]}),t})(),K=(()=>{class t extends r.B8{constructor(t,e,i,n){super(t,e,i,n),this.steps=new o.n_E,this.animationDone=new o.vpe,this.labelPosition="end",this._iconOverrides={},this._animationDone=new h.x;const r=i.nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===r?"vertical":"horizontal"}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:t,templateRef:e})=>this._iconOverrides[t]=e),this.steps.changes.pipe((0,m.R)(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe((0,g.x)((t,e)=>t.fromState===e.fromState&&t.toState===e.toState),(0,m.R)(this._destroyed)).subscribe(t=>{"current"===t.toState&&this.animationDone.emit()})}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(v.Is,8),o.Y36(o.sBO),o.Y36(o.SBq),o.Y36(s.K0))},t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(t,e,i){if(1&t&&(o.Suo(i,Q,5),o.Suo(i,j,5)),2&t){let t;o.iGM(t=o.CRH())&&(e._steps=t),o.iGM(t=o.CRH())&&(e._icons=t)}},viewQuery:function(t,e){if(1&t&&o.Gf(Y,5),2&t){let t;o.iGM(t=o.CRH())&&(e._stepHeader=t)}},hostAttrs:["role","tablist"],hostVars:9,hostBindings:function(t,e){2&t&&(o.uIk("aria-orientation",e.orientation),o.ekj("mat-stepper-horizontal","horizontal"===e.orientation)("mat-stepper-vertical","vertical"===e.orientation)("mat-stepper-label-position-end","horizontal"===e.orientation&&"end"==e.labelPosition)("mat-stepper-label-position-bottom","horizontal"===e.orientation&&"bottom"==e.labelPosition))},inputs:{selectedIndex:"selectedIndex",labelPosition:"labelPosition",disableRipple:"disableRipple",color:"color"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[o._Bn([{provide:r.B8,useExisting:t},{provide:J,useExisting:t},{provide:X,useExisting:t}]),o.qOj],decls:5,vars:3,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],["stepTemplate",""],[1,"mat-horizontal-stepper-header-container"],[4,"ngFor","ngForOf"],[1,"mat-horizontal-content-container"],["class","mat-horizontal-stepper-content","role","tabpanel",3,"id",4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","mat-stepper-horizontal-line",4,"ngIf"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],["class","mat-step",4,"ngFor","ngForOf"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color","click","keydown"]],template:function(t,e){1&t&&(o.ynx(0,0),o.YNc(1,N,5,2,"ng-container",1),o.YNc(2,F,2,1,"ng-container",1),o.BQk(),o.YNc(3,Z,1,22,"ng-template",null,2,o.W1O)),2&t&&(o.Q6J("ngSwitch",e.orientation),o.xp6(1),o.Q6J("ngSwitchCase","horizontal"),o.xp6(1),o.Q6J("ngSwitchCase","vertical"))},directives:[s.RF,s.n9,s.sg,s.tP,s.O5,Y],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content[aria-expanded=false]{height:0;overflow:hidden}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}\n'],encapsulation:2,data:{animation:[G.horizontalStepTransition,G.verticalStepTransition]},changeDetection:0}),t})(),$=(()=>{class t extends r.st{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(t)))(i||t)}}(),t.\u0275dir=o.lG2({type:t,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(t,e){2&t&&o.Ikx("type",e.type)},inputs:{type:"type"},features:[o.qOj]}),t})(),tt=(()=>{class t extends r.po{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(t)))(i||t)}}(),t.\u0275dir=o.lG2({type:t,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(t,e){2&t&&o.Ikx("type",e.type)},inputs:{type:"type"},features:[o.qOj]}),t})(),et=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({providers:[q,l.rD],imports:[[l.BQ,s.ez,n.eL,a.ot,r.U5,c.Ps,l.si],l.BQ]}),t})()},7033:(t,e,i)=>{"use strict";i.d(e,{ev:()=>gt,Dz:()=>ht,w1:()=>pt,yh:()=>mt,mD:()=>dt,Q2:()=>wt,Ke:()=>bt,ge:()=>ft,fO:()=>ut,XQ:()=>_t,as:()=>yt,Gk:()=>xt,nj:()=>vt,BZ:()=>ct,by:()=>St,p0:()=>Ct});var n=i(9861),r=i(4230),s=i(1572),o=i(2526),a=i(1353),l=i(4894),c=i(1511),h=i(9666),u=i(5630),d=i(7425),p=i(4776),f=i(2041),m=i(9568),g=i(9056);const y=[[["caption"]],[["colgroup"],["col"]]],b=["caption","colgroup, col"];function v(t){return class extends t{constructor(...t){super(...t),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(t){const e=this._sticky;this._sticky=(0,n.Ig)(t),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const t=this._hasStickyChanged;return this._hasStickyChanged=!1,t}resetStickyChanged(){this._hasStickyChanged=!1}}}const _=new s.OlP("CDK_TABLE");let w=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkCellDef",""]]}),t})(),x=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkHeaderCellDef",""]]}),t})(),C=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkFooterCellDef",""]]}),t})();class A{}const S=v(A);let E=(()=>{class t extends S{constructor(t){super(),this._table=t,this._stickyEnd=!1}get name(){return this._name}set name(t){this._setNameInput(t)}get stickyEnd(){return this._stickyEnd}set stickyEnd(t){const e=this._stickyEnd;this._stickyEnd=(0,n.Ig)(t),this._hasStickyChanged=e!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(t){t&&(this._name=t,this.cssClassFriendlyName=t.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(_,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(t,e,i){if(1&t&&(s.Suo(i,w,5),s.Suo(i,x,5),s.Suo(i,C,5)),2&t){let t;s.iGM(t=s.CRH())&&(e.cell=t.first),s.iGM(t=s.CRH())&&(e.headerCell=t.first),s.iGM(t=s.CRH())&&(e.footerCell=t.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[s._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),s.qOj]}),t})();class k{constructor(t,e){const i=e.nativeElement.classList;for(const n of t._columnCssClassName)i.add(n)}}let T=(()=>{class t extends k{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(E),s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[s.qOj]}),t})(),M=(()=>{class t extends k{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(E),s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:["role","gridcell",1,"cdk-footer-cell"],features:[s.qOj]}),t})(),L=(()=>{class t extends k{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(E),s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:["role","gridcell",1,"cdk-cell"],features:[s.qOj]}),t})();class I{constructor(){this.tasks=[],this.endTasks=[]}}const O=new s.OlP("_COALESCED_STYLE_SCHEDULER");let D=(()=>{class t{constructor(t){this._ngZone=t,this._currentSchedule=null,this._destroyed=new h.x}schedule(t){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(t)}scheduleEnd(t){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(t)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new I,this._getScheduleObservable().pipe((0,m.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const t=this._currentSchedule;this._currentSchedule=new I;for(const e of t.tasks)e();for(const e of t.endTasks)e()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,u.Dp)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,g.q)(1))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.R0b))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),R=(()=>{class t{constructor(t,e){this.template=t,this._differs=e}ngOnChanges(t){if(!this._columnsDiffer){const e=t.columns&&t.columns.currentValue||[];this._columnsDiffer=this._differs.find(e).create(),this._columnsDiffer.diff(e)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(t){return this instanceof F?t.headerCell.template:this instanceof U?t.footerCell.template:t.cell.template}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc),s.Y36(s.ZZ4))},t.\u0275dir=s.lG2({type:t,features:[s.TTD]}),t})();class N extends R{}const P=v(N);let F=(()=>{class t extends P{constructor(t,e,i){super(t,e),this._table=i}ngOnChanges(t){super.ngOnChanges(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc),s.Y36(s.ZZ4),s.Y36(_,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[s.qOj,s.TTD]}),t})();class Z extends R{}const B=v(Z);let U=(()=>{class t extends B{constructor(t,e,i){super(t,e),this._table=i}ngOnChanges(t){super.ngOnChanges(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc),s.Y36(s.ZZ4),s.Y36(_,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[s.qOj,s.TTD]}),t})(),q=(()=>{class t extends R{constructor(t,e,i){super(t,e),this._table=i}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc),s.Y36(s.ZZ4),s.Y36(_,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[s.qOj]}),t})(),z=(()=>{class t{constructor(e){this._viewContainer=e,t.mostRecentCellOutlet=this}ngOnDestroy(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.s_b))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkCellOutlet",""]]}),t.mostRecentCellOutlet=null,t})(),H=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&s.GkF(0,0)},directives:[z],encapsulation:2}),t})(),Y=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&s.GkF(0,0)},directives:[z],encapsulation:2}),t})(),G=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&s.GkF(0,0)},directives:[z],encapsulation:2}),t})(),j=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc))},t.\u0275dir=s.lG2({type:t,selectors:[["ng-template","cdkNoDataRow",""]]}),t})();const V=["top","bottom","left","right"];class Q{constructor(t,e,i,n,r=!0,s=!0,o){this._isNativeHtmlTable=t,this._stickCellCss=e,this.direction=i,this._coalescedStyleScheduler=n,this._isBrowser=r,this._needsPositionStickyOnElement=s,this._positionListener=o,this._cachedCellWidths=[],this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(t,e){const i=[];for(const n of t)if(n.nodeType===n.ELEMENT_NODE){i.push(n);for(let t=0;t{for(const t of i)this._removeStickyStyle(t,e)})}updateStickyColumns(t,e,i,n=!0){if(!t.length||!this._isBrowser||!e.some(t=>t)&&!i.some(t=>t))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const r=t[0],s=r.children.length,o=this._getCellWidths(r,n),a=this._getStickyStartColumnPositions(o,e),l=this._getStickyEndColumnPositions(o,i),c=e.lastIndexOf(!0),h=i.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const n="rtl"===this.direction,r=n?"right":"left",u=n?"left":"right";for(const o of t)for(let t=0;te[i]?t:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===h?[]:o.slice(h).map((t,e)=>i[e+h]?t:null).reverse()}))})}stickRows(t,e,i){if(!this._isBrowser)return;const n="bottom"===i?t.slice().reverse():t,r="bottom"===i?e.slice().reverse():e,s=[],o=[],a=[];for(let c=0,h=0;c{var t,e;for(let o=0;o{e.some(t=>!t)?this._removeStickyStyle(i,["bottom"]):this._addStickyStyle(i,"bottom",0,!1)})}_removeStickyStyle(t,e){for(const i of e)t.style[i]="",t.classList.remove(this._borderCellCss[i]);V.some(i=>-1===e.indexOf(i)&&t.style[i])?t.style.zIndex=this._getCalculatedZIndex(t):(t.style.zIndex="",this._needsPositionStickyOnElement&&(t.style.position=""),t.classList.remove(this._stickCellCss))}_addStickyStyle(t,e,i,n){t.classList.add(this._stickCellCss),n&&t.classList.add(this._borderCellCss[e]),t.style[e]=`${i}px`,t.style.zIndex=this._getCalculatedZIndex(t),this._needsPositionStickyOnElement&&(t.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(t){const e={top:100,bottom:10,left:1,right:1};let i=0;for(const n of V)t.style[n]&&(i+=e[n]);return i?`${i}`:""}_getCellWidths(t,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const i=[],n=t.children;for(let r=0;r0;r--)e[r]&&(i[r]=n,n+=t[r]);return i}}const W=new s.OlP("CDK_SPL");let J=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.s_b),s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["","rowOutlet",""]]}),t})(),X=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.s_b),s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["","headerRowOutlet",""]]}),t})(),K=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.s_b),s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["","footerRowOutlet",""]]}),t})(),$=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.s_b),s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["","noDataRowOutlet",""]]}),t})(),tt=(()=>{class t{constructor(t,e,i,n,r,s,o,a,l,c,u){this._differs=t,this._changeDetectorRef=e,this._elementRef=i,this._dir=r,this._platform=o,this._viewRepeater=a,this._coalescedStyleScheduler=l,this._viewportRuler=c,this._stickyPositioningListener=u,this._onDestroy=new h.x,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.viewChange=new d.X({start:0,end:Number.MAX_VALUE}),n||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=s,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(t){this._trackByFn=t}get dataSource(){return this._dataSource}set dataSource(t){this._dataSource!==t&&this._switchDataSource(t)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(t){this._multiTemplateDataRows=(0,n.Ig)(t),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(t){this._fixedLayout=(0,n.Ig)(t),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((t,e)=>this.trackBy?this.trackBy(e.dataIndex,e.data):e),this._viewportRuler.change().pipe((0,m.R)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const t=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||t,this._forceRecalculateCellWidths=t,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){this._rowOutlet.viewContainer.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),(0,r.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const t=this._dataDiffer.diff(this._renderRows);if(!t)return void this._updateNoDataRow();const e=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(t,e,(t,e,i)=>this._getEmbeddedViewArgs(t.item,i),t=>t.item.data,t=>{1===t.operation&&t.context&&this._renderCellTemplateForItem(t.record.item.rowDef,t.context)}),this._updateRowIndexContext(),t.forEachIdentityChange(t=>{e.get(t.currentIndex).context.$implicit=t.item.data}),this._updateNoDataRow(),this.updateStickyColumnStyles()}addColumnDef(t){this._customColumnDefs.add(t)}removeColumnDef(t){this._customColumnDefs.delete(t)}addRowDef(t){this._customRowDefs.add(t)}removeRowDef(t){this._customRowDefs.delete(t)}addHeaderRowDef(t){this._customHeaderRowDefs.add(t),this._headerRowDefChanged=!0}removeHeaderRowDef(t){this._customHeaderRowDefs.delete(t),this._headerRowDefChanged=!0}addFooterRowDef(t){this._customFooterRowDefs.add(t),this._footerRowDefChanged=!0}removeFooterRowDef(t){this._customFooterRowDefs.delete(t),this._footerRowDefChanged=!0}setNoDataRow(t){this._customNoDataRow=t}updateStickyHeaderRowStyles(){const t=this._getRenderedRows(this._headerRowOutlet),e=this._elementRef.nativeElement.querySelector("thead");e&&(e.style.display=t.length?"":"none");const i=this._headerRowDefs.map(t=>t.sticky);this._stickyStyler.clearStickyPositioning(t,["top"]),this._stickyStyler.stickRows(t,i,"top"),this._headerRowDefs.forEach(t=>t.resetStickyChanged())}updateStickyFooterRowStyles(){const t=this._getRenderedRows(this._footerRowOutlet),e=this._elementRef.nativeElement.querySelector("tfoot");e&&(e.style.display=t.length?"":"none");const i=this._footerRowDefs.map(t=>t.sticky);this._stickyStyler.clearStickyPositioning(t,["bottom"]),this._stickyStyler.stickRows(t,i,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,i),this._footerRowDefs.forEach(t=>t.resetStickyChanged())}updateStickyColumnStyles(){const t=this._getRenderedRows(this._headerRowOutlet),e=this._getRenderedRows(this._rowOutlet),i=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...t,...e,...i],["left","right"]),this._stickyColumnStylesNeedReset=!1),t.forEach((t,e)=>{this._addStickyColumnStyles([t],this._headerRowDefs[e])}),this._rowDefs.forEach(t=>{const i=[];for(let n=0;n{this._addStickyColumnStyles([t],this._footerRowDefs[e])}),Array.from(this._columnDefsByName.values()).forEach(t=>t.resetStickyChanged())}_getAllRenderRows(){const t=[],e=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let i=0;i{const r=i&&i.has(n)?i.get(n):[];if(r.length){const t=r.shift();return t.dataIndex=e,t}return{data:t,rowDef:n,dataIndex:e}})}_cacheColumnDefs(){this._columnDefsByName.clear(),et(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{this._columnDefsByName.has(t.name),this._columnDefsByName.set(t.name,t)})}_cacheRowDefs(){this._headerRowDefs=et(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=et(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=et(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const t=this._rowDefs.filter(t=>!t.when);this._defaultRowDef=t[0]}_renderUpdatedColumns(){const t=(t,e)=>t||!!e.getColumnsDiff(),e=this._rowDefs.reduce(t,!1);e&&this._forceRenderDataRows();const i=this._headerRowDefs.reduce(t,!1);i&&this._forceRenderHeaderRows();const n=this._footerRowDefs.reduce(t,!1);return n&&this._forceRenderFooterRows(),e||i||n}_switchDataSource(t){this._data=[],(0,r.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),t||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=t}_observeRenderChanges(){if(!this.dataSource)return;let t;(0,r.Z9)(this.dataSource)?t=this.dataSource.connect(this):(0,p.b)(this.dataSource)?t=this.dataSource:Array.isArray(this.dataSource)&&(t=(0,f.of)(this.dataSource)),this._renderChangeSubscription=t.pipe((0,m.R)(this._onDestroy)).subscribe(t=>{this._data=t||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((t,e)=>this._renderRow(this._headerRowOutlet,t,e)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((t,e)=>this._renderRow(this._footerRowOutlet,t,e)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(t,e){const i=Array.from(e.columns||[]).map(t=>this._columnDefsByName.get(t)),n=i.map(t=>t.sticky),r=i.map(t=>t.stickyEnd);this._stickyStyler.updateStickyColumns(t,n,r,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(t){const e=[];for(let i=0;i!i.when||i.when(e,t));else{let n=this._rowDefs.find(i=>i.when&&i.when(e,t))||this._defaultRowDef;n&&i.push(n)}return i}_getEmbeddedViewArgs(t,e){return{templateRef:t.rowDef.template,context:{$implicit:t.data},index:e}}_renderRow(t,e,i,n={}){const r=t.viewContainer.createEmbeddedView(e.template,n,i);return this._renderCellTemplateForItem(e,n),r}_renderCellTemplateForItem(t,e){for(let i of this._getCellTemplates(t))z.mostRecentCellOutlet&&z.mostRecentCellOutlet._viewContainer.createEmbeddedView(i,e);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const t=this._rowOutlet.viewContainer;for(let e=0,i=t.length;e{const i=this._columnDefsByName.get(e);return t.extractCellTemplate(i)}):[]}_applyNativeTableSections(){const t=this._document.createDocumentFragment(),e=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const i of e){const e=this._document.createElement(i.tag);e.setAttribute("role","rowgroup");for(const t of i.outlets)e.appendChild(t.elementRef.nativeElement);t.appendChild(e)}this._elementRef.nativeElement.appendChild(t)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const t=(t,e)=>t||e.hasStickyChanged();this._headerRowDefs.reduce(t,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(t,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(t,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new Q(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:(0,f.of)()).pipe((0,m.R)(this._onDestroy)).subscribe(t=>{this._stickyStyler.direction=t,this.updateStickyColumnStyles()})}_getOwnDefs(t){return t.filter(t=>!t._table||t._table===this)}_updateNoDataRow(){const t=this._customNoDataRow||this._noDataRow;if(t){const e=0===this._rowOutlet.viewContainer.length;if(e!==this._isShowingNoDataRow){const i=this._noDataRowOutlet.viewContainer;e?i.createEmbeddedView(t.templateRef):i.clear(),this._isShowingNoDataRow=e}}}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.ZZ4),s.Y36(s.sBO),s.Y36(s.SBq),s.$8M("role"),s.Y36(o.Is,8),s.Y36(c.K0),s.Y36(a.t4),s.Y36(r.k),s.Y36(O),s.Y36(l.rL),s.Y36(W,12))},t.\u0275cmp=s.Xpm({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(t,e,i){if(1&t&&(s.Suo(i,j,5),s.Suo(i,E,5),s.Suo(i,q,5),s.Suo(i,F,5),s.Suo(i,U,5)),2&t){let t;s.iGM(t=s.CRH())&&(e._noDataRow=t.first),s.iGM(t=s.CRH())&&(e._contentColumnDefs=t),s.iGM(t=s.CRH())&&(e._contentRowDefs=t),s.iGM(t=s.CRH())&&(e._contentHeaderRowDefs=t),s.iGM(t=s.CRH())&&(e._contentFooterRowDefs=t)}},viewQuery:function(t,e){if(1&t&&(s.Gf(J,7),s.Gf(X,7),s.Gf(K,7),s.Gf($,7)),2&t){let t;s.iGM(t=s.CRH())&&(e._rowOutlet=t.first),s.iGM(t=s.CRH())&&(e._headerRowOutlet=t.first),s.iGM(t=s.CRH())&&(e._footerRowOutlet=t.first),s.iGM(t=s.CRH())&&(e._noDataRowOutlet=t.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("cdk-table-fixed-layout",e.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},exportAs:["cdkTable"],features:[s._Bn([{provide:_,useExisting:t},{provide:r.k,useClass:r.yy},{provide:O,useClass:D},{provide:W,useValue:null}])],ngContentSelectors:b,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,e){1&t&&(s.F$t(y),s.Hsn(0),s.Hsn(1,1),s.GkF(2,0),s.GkF(3,1),s.GkF(4,2),s.GkF(5,3))},directives:[X,J,$,K],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),t})();function et(t,e){return t.concat(Array.from(e))}let it=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[l.Cl]]}),t})();var nt=i(1522),rt=i(5446),st=i(5868),ot=i(1681);const at=[[["caption"]],[["colgroup"],["col"]]],lt=["caption","colgroup, col"];let ct=(()=>{class t extends tt{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("mat-table-fixed-layout",e.fixedLayout)},exportAs:["matTable"],features:[s._Bn([{provide:r.k,useClass:r.yy},{provide:tt,useExisting:t},{provide:_,useExisting:t},{provide:O,useClass:D},{provide:W,useValue:null}]),s.qOj],ngContentSelectors:lt,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,e){1&t&&(s.F$t(at),s.Hsn(0),s.Hsn(1,1),s.GkF(2,0),s.GkF(3,1),s.GkF(4,2),s.GkF(5,3))},directives:[X,J,$,K],styles:['mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-row::after,mat-header-row::after,mat-footer-row::after{display:inline-block;min-height:inherit;content:""}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:-webkit-sticky !important;position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}\n'],encapsulation:2}),t})(),ht=(()=>{class t extends w{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["","matCellDef",""]],features:[s._Bn([{provide:w,useExisting:t}]),s.qOj]}),t})(),ut=(()=>{class t extends x{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["","matHeaderCellDef",""]],features:[s._Bn([{provide:x,useExisting:t}]),s.qOj]}),t})(),dt=(()=>{class t extends C{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["","matFooterCellDef",""]],features:[s._Bn([{provide:C,useExisting:t}]),s.qOj]}),t})(),pt=(()=>{class t extends E{get name(){return this._name}set name(t){this._setNameInput(t)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[s._Bn([{provide:E,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),s.qOj]}),t})(),ft=(()=>{class t extends T{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[s.qOj]}),t})(),mt=(()=>{class t extends M{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:["role","gridcell",1,"mat-footer-cell"],features:[s.qOj]}),t})(),gt=(()=>{class t extends L{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[s.qOj]}),t})(),yt=(()=>{class t extends F{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[s._Bn([{provide:F,useExisting:t}]),s.qOj]}),t})(),bt=(()=>{class t extends U{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[s._Bn([{provide:U,useExisting:t}]),s.qOj]}),t})(),vt=(()=>{class t extends q{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[s._Bn([{provide:q,useExisting:t}]),s.qOj]}),t})(),_t=(()=>{class t extends H{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[s._Bn([{provide:H,useExisting:t}]),s.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&s.GkF(0,0)},directives:[z],encapsulation:2}),t})(),wt=(()=>{class t extends Y{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-footer-row"],exportAs:["matFooterRow"],features:[s._Bn([{provide:Y,useExisting:t}]),s.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&s.GkF(0,0)},directives:[z],encapsulation:2}),t})(),xt=(()=>{class t extends G{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[s._Bn([{provide:G,useExisting:t}]),s.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&s.GkF(0,0)},directives:[z],encapsulation:2}),t})(),Ct=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[it,nt.BQ],nt.BQ]}),t})();class At extends r.o2{constructor(t=[]){super(),this._renderData=new d.X([]),this._filter=new d.X(""),this._internalPageChanges=new h.x,this._renderChangesSubscription=null,this.sortingDataAccessor=(t,e)=>{const i=t[e];if((0,n.t6)(i)){const t=Number(i);return t<9007199254740991?t:i}return i},this.sortData=(t,e)=>{const i=e.active,n=e.direction;return i&&""!=n?t.sort((t,e)=>{let r=this.sortingDataAccessor(t,i),s=this.sortingDataAccessor(e,i);const o=typeof r,a=typeof s;o!==a&&("number"===o&&(r+=""),"number"===a&&(s+=""));let l=0;return null!=r&&null!=s?r>s?l=1:r{const i=Object.keys(t).reduce((e,i)=>e+t[i]+"\u25ec","").toLowerCase(),n=e.trim().toLowerCase();return-1!=i.indexOf(n)},this._data=new d.X(t),this._updateChangeSubscription()}get data(){return this._data.value}set data(t){this._data.next(t),this._renderChangesSubscription||this._filterData(t)}get filter(){return this._filter.value}set filter(t){this._filter.next(t),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(t){this._sort=t,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(t){this._paginator=t,this._updateChangeSubscription()}_updateChangeSubscription(){var t;const e=this._sort?(0,rt.T)(this._sort.sortChange,this._sort.initialized):(0,f.of)(null),i=this._paginator?(0,rt.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,f.of)(null),n=(0,st.a)([this._data,this._filter]).pipe((0,ot.U)(([t])=>this._filterData(t))),r=(0,st.a)([n,e]).pipe((0,ot.U)(([t])=>this._orderData(t))),s=(0,st.a)([r,i]).pipe((0,ot.U)(([t])=>this._pageData(t)));null===(t=this._renderChangesSubscription)||void 0===t||t.unsubscribe(),this._renderChangesSubscription=s.subscribe(t=>this._renderData.next(t))}_filterData(t){return this.filteredData=null==this.filter||""===this.filter?t:t.filter(t=>this.filterPredicate(t,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(t){return this.sort?this.sortData(t.slice(),this.sort):t}_pageData(t){if(!this.paginator)return t;const e=this.paginator.pageIndex*this.paginator.pageSize;return t.slice(e,e+this.paginator.pageSize)}_updatePaginator(t){Promise.resolve().then(()=>{const e=this.paginator;if(e&&(e.length=t,e.pageIndex>0)){const t=Math.ceil(e.length/e.pageSize)-1||0,i=Math.min(e.pageIndex,t);i!==e.pageIndex&&(e.pageIndex=i,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var t;null===(t=this._renderChangesSubscription)||void 0===t||t.unsubscribe(),this._renderChangesSubscription=null}}class St extends At{}},5109:(t,e,i)=>{"use strict";i.d(e,{uX:()=>J,SP:()=>at,uD:()=>j,Nj:()=>_t,BU:()=>gt,Nh:()=>wt});var n=i(4621),r=i(6337),s=i(6899),o=i(1511),a=i(1572),l=i(1522),c=i(3490),h=i(9666),u=i(6042),d=i(5446),p=i(5960),f=i(2041),m=i(8431),g=i(709),y=i(1258),b=i(6424),v=i(9568),_=i(9861),w=i(1353),x=i(5842),C=i(2526),A=i(4894);function S(t,e){1&t&&a.Hsn(0)}const E=["*"];function k(t,e){}const T=function(t){return{animationDuration:t}},M=function(t,e){return{value:t,params:e}},L=["tabBodyWrapper"],I=["tabHeader"];function O(t,e){}function D(t,e){if(1&t&&a.YNc(0,O,0,0,"ng-template",9),2&t){const t=a.oxw().$implicit;a.Q6J("cdkPortalOutlet",t.templateLabel)}}function R(t,e){if(1&t&&a._uU(0),2&t){const t=a.oxw().$implicit;a.Oqu(t.textLabel)}}function N(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"div",6),a.NdJ("click",function(){const e=a.CHM(t),i=e.$implicit,n=e.index,r=a.oxw(),s=a.MAs(1);return r._handleClick(i,s,n)})("cdkFocusChange",function(e){const i=a.CHM(t).index;return a.oxw()._tabFocusChanged(e,i)}),a.TgZ(1,"div",7),a.YNc(2,D,1,1,"ng-template",8),a.YNc(3,R,1,1,"ng-template",8),a.qZA(),a.qZA()}if(2&t){const t=e.$implicit,i=e.index,n=a.oxw();a.ekj("mat-tab-label-active",n.selectedIndex==i),a.Q6J("id",n._getTabLabelId(i))("disabled",t.disabled)("matRippleDisabled",t.disabled||n.disableRipple),a.uIk("tabIndex",n._getTabIndex(t,i))("aria-posinset",i+1)("aria-setsize",n._tabs.length)("aria-controls",n._getTabContentId(i))("aria-selected",n.selectedIndex==i)("aria-label",t.ariaLabel||null)("aria-labelledby",!t.ariaLabel&&t.ariaLabelledby?t.ariaLabelledby:null),a.xp6(2),a.Q6J("ngIf",t.templateLabel),a.xp6(1),a.Q6J("ngIf",!t.templateLabel)}}function P(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"mat-tab-body",10),a.NdJ("_onCentered",function(){return a.CHM(t),a.oxw()._removeTabBodyWrapperHeight()})("_onCentering",function(e){return a.CHM(t),a.oxw()._setTabBodyWrapperHeight(e)}),a.qZA()}if(2&t){const t=e.$implicit,i=e.index,n=a.oxw();a.ekj("mat-tab-body-active",n.selectedIndex==i),a.Q6J("id",n._getTabContentId(i))("content",t.content)("position",t.position)("origin",t.origin)("animationDuration",n.animationDuration),a.uIk("aria-labelledby",n._getTabLabelId(i))}}const F=["tabListContainer"],Z=["tabList"],B=["nextPaginator"],U=["previousPaginator"],q=["mat-tab-nav-bar",""],z=new a.OlP("MatInkBarPositioner",{providedIn:"root",factory:function(){return t=>({left:t?(t.offsetLeft||0)+"px":"0",width:t?(t.offsetWidth||0)+"px":"0"})}});let H=(()=>{class t{constructor(t,e,i,n){this._elementRef=t,this._ngZone=e,this._inkBarPositioner=i,this._animationMode=n}alignToElement(t){this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._setStyles(t))}):this._setStyles(t)}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}_setStyles(t){const e=this._inkBarPositioner(t),i=this._elementRef.nativeElement;i.style.left=e.left,i.style.width=e.width}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(z),a.Y36(c.Qb,8))},t.\u0275dir=a.lG2({type:t,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(t,e){2&t&&a.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode)}}),t})();const Y=new a.OlP("MatTabContent"),G=new a.OlP("MatTabLabel");let j=(()=>{class t extends s.ig{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=a.n5z(t)))(i||t)}}(),t.\u0275dir=a.lG2({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[a._Bn([{provide:G,useExisting:t}]),a.qOj]}),t})();class V{}const Q=(0,l.Id)(V),W=new a.OlP("MAT_TAB_GROUP");let J=(()=>{class t extends Q{constructor(t,e){super(),this._viewContainerRef=t,this._closestTabGroup=e,this.textLabel="",this._contentPortal=null,this._stateChanges=new h.x,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(t){this._setTemplateLabelInput(t)}get content(){return this._contentPortal}ngOnChanges(t){(t.hasOwnProperty("textLabel")||t.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new s.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(t){t&&(this._templateLabel=t)}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.s_b),a.Y36(W,8))},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-tab"]],contentQueries:function(t,e,i){if(1&t&&(a.Suo(i,G,5),a.Suo(i,Y,7,a.Rgc)),2&t){let t;a.iGM(t=a.CRH())&&(e.templateLabel=t.first),a.iGM(t=a.CRH())&&(e._explicitContent=t.first)}},viewQuery:function(t,e){if(1&t&&a.Gf(a.Rgc,7),2&t){let t;a.iGM(t=a.CRH())&&(e._implicitContent=t.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[a.qOj,a.TTD],ngContentSelectors:E,decls:1,vars:0,template:function(t,e){1&t&&(a.F$t(),a.YNc(0,S,1,0,"ng-template"))},encapsulation:2}),t})();const X={translateTab:(0,g.X$)("translateTab",[(0,g.SB)("center, void, left-origin-center, right-origin-center",(0,g.oB)({transform:"none"})),(0,g.SB)("left",(0,g.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),(0,g.SB)("right",(0,g.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),(0,g.eR)("* => left, * => right, left => center, right => center",(0,g.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,g.eR)("void => left-origin-center",[(0,g.oB)({transform:"translate3d(-100%, 0, 0)"}),(0,g.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,g.eR)("void => right-origin-center",[(0,g.oB)({transform:"translate3d(100%, 0, 0)"}),(0,g.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let K=(()=>{class t extends s.Pl{constructor(t,e,i,n){super(t,e,n),this._host=i,this._centeringSub=u.w0.EMPTY,this._leavingSub=u.w0.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,y.O)(this._host._isCenterPosition(this._host._position))).subscribe(t=>{t&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a._Vd),a.Y36(a.s_b),a.Y36((0,a.Gpc)(()=>tt)),a.Y36(o.K0))},t.\u0275dir=a.lG2({type:t,selectors:[["","matTabBodyHost",""]],features:[a.qOj]}),t})(),$=(()=>{class t{constructor(t,e,i){this._elementRef=t,this._dir=e,this._dirChangeSubscription=u.w0.EMPTY,this._translateTabComplete=new h.x,this._onCentering=new a.vpe,this._beforeCentering=new a.vpe,this._afterLeavingCenter=new a.vpe,this._onCentered=new a.vpe(!0),this.animationDuration="500ms",e&&(this._dirChangeSubscription=e.change.subscribe(t=>{this._computePositionAnimationState(t),i.markForCheck()})),this._translateTabComplete.pipe((0,b.x)((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{this._isCenterPosition(t.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(t.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(t){this._positionIndex=t,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(t){const e=this._isCenterPosition(t.toState);this._beforeCentering.emit(e),e&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(t){return"center"==t||"left-origin-center"==t||"right-origin-center"==t}_computePositionAnimationState(t=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==t?"left":"right":this._positionIndex>0?"ltr"==t?"right":"left":"center"}_computePositionFromOrigin(t){const e=this._getLayoutDirection();return"ltr"==e&&t<=0||"rtl"==e&&t>0?"left-origin-center":"right-origin-center"}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(C.Is,8),a.Y36(a.sBO))},t.\u0275dir=a.lG2({type:t,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),t})(),tt=(()=>{class t extends ${constructor(t,e,i){super(t,e,i)}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(C.Is,8),a.Y36(a.sBO))},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-tab-body"]],viewQuery:function(t,e){if(1&t&&a.Gf(s.Pl,5),2&t){let t;a.iGM(t=a.CRH())&&(e._portalHost=t.first)}},hostAttrs:[1,"mat-tab-body"],features:[a.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(t,e){1&t&&(a.TgZ(0,"div",0,1),a.NdJ("@translateTab.start",function(t){return e._onTranslateTabStarted(t)})("@translateTab.done",function(t){return e._translateTabComplete.next(t)}),a.YNc(2,k,0,0,"ng-template",2),a.qZA()),2&t&&a.Q6J("@translateTab",a.WLB(3,M,e._position,a.VKq(1,T,e.animationDuration)))},directives:[K],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[X.translateTab]}}),t})();const et=new a.OlP("MAT_TABS_CONFIG");let it=0;class nt{}class rt{constructor(t){this._elementRef=t}}const st=(0,l.pj)((0,l.Kr)(rt),"primary");let ot=(()=>{class t extends st{constructor(t,e,i,n){super(t),this._changeDetectorRef=e,this._animationMode=n,this._tabs=new a.n_E,this._indexToSelect=0,this._tabBodyWrapperHeight=0,this._tabsSubscription=u.w0.EMPTY,this._tabLabelSubscription=u.w0.EMPTY,this._selectedIndex=null,this.headerPosition="above",this.selectedIndexChange=new a.vpe,this.focusChange=new a.vpe,this.animationDone=new a.vpe,this.selectedTabChange=new a.vpe(!0),this._groupId=it++,this.animationDuration=i&&i.animationDuration?i.animationDuration:"500ms",this.disablePagination=!(!i||null==i.disablePagination)&&i.disablePagination,this.dynamicHeight=!(!i||null==i.dynamicHeight)&&i.dynamicHeight}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(t){this._dynamicHeight=(0,_.Ig)(t)}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){this._indexToSelect=(0,_.su)(t,null)}get animationDuration(){return this._animationDuration}set animationDuration(t){this._animationDuration=/^\d+$/.test(t)?t+"ms":t}get backgroundColor(){return this._backgroundColor}set backgroundColor(t){const e=this._elementRef.nativeElement;e.classList.remove(`mat-background-${this.backgroundColor}`),t&&e.classList.add(`mat-background-${t}`),this._backgroundColor=t}ngAfterContentChecked(){const t=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=t){const e=null==this._selectedIndex;if(!e){this.selectedTabChange.emit(this._createChangeEvent(t));const e=this._tabBodyWrapper.nativeElement;e.style.minHeight=e.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((e,i)=>e.isActive=i===t),e||(this.selectedIndexChange.emit(t),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((e,i)=>{e.position=i-t,null==this._selectedIndex||0!=e.position||e.origin||(e.origin=t-this._selectedIndex)}),this._selectedIndex!==t&&(this._selectedIndex=t,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{if(this._clampTabIndex(this._indexToSelect)===this._selectedIndex){const t=this._tabs.toArray();for(let e=0;e{this._tabs.reset(t.filter(t=>t._closestTabGroup===this||!t._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}focusTab(t){const e=this._tabHeader;e&&(e.focusIndex=t)}_focusChanged(t){this.focusChange.emit(this._createChangeEvent(t))}_createChangeEvent(t){const e=new nt;return e.index=t,this._tabs&&this._tabs.length&&(e.tab=this._tabs.toArray()[t]),e}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,d.T)(...this._tabs.map(t=>t._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(t){return Math.min(this._tabs.length-1,Math.max(t||0,0))}_getTabLabelId(t){return`mat-tab-label-${this._groupId}-${t}`}_getTabContentId(t){return`mat-tab-content-${this._groupId}-${t}`}_setTabBodyWrapperHeight(t){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const e=this._tabBodyWrapper.nativeElement;e.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(e.style.height=t+"px")}_removeTabBodyWrapperHeight(){const t=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=t.clientHeight,t.style.height="",this.animationDone.emit()}_handleClick(t,e,i){t.disabled||(this.selectedIndex=e.focusIndex=i)}_getTabIndex(t,e){return t.disabled?null:this.selectedIndex===e?0:-1}_tabFocusChanged(t,e){t&&(this._tabHeader.focusIndex=e)}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(et,8),a.Y36(c.Qb,8))},t.\u0275dir=a.lG2({type:t,inputs:{headerPosition:"headerPosition",animationDuration:"animationDuration",disablePagination:"disablePagination",dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[a.qOj]}),t})(),at=(()=>{class t extends ot{constructor(t,e,i,n){super(t,e,i,n)}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(et,8),a.Y36(c.Qb,8))},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-tab-group"]],contentQueries:function(t,e,i){if(1&t&&a.Suo(i,J,5),2&t){let t;a.iGM(t=a.CRH())&&(e._allTabs=t)}},viewQuery:function(t,e){if(1&t&&(a.Gf(L,5),a.Gf(I,5)),2&t){let t;a.iGM(t=a.CRH())&&(e._tabBodyWrapper=t.first),a.iGM(t=a.CRH())&&(e._tabHeader=t.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(t,e){2&t&&a.ekj("mat-tab-group-dynamic-height",e.dynamicHeight)("mat-tab-group-inverted-header","below"===e.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[a._Bn([{provide:W,useExisting:t}]),a.qOj],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(t,e){1&t&&(a.TgZ(0,"mat-tab-header",0,1),a.NdJ("indexFocused",function(t){return e._focusChanged(t)})("selectFocusedIndex",function(t){return e.selectedIndex=t}),a.YNc(2,N,4,14,"div",2),a.qZA(),a.TgZ(3,"div",3,4),a.YNc(5,P,1,8,"mat-tab-body",5),a.qZA()),2&t&&(a.Q6J("selectedIndex",e.selectedIndex||0)("disableRipple",e.disableRipple)("disablePagination",e.disablePagination),a.xp6(2),a.Q6J("ngForOf",e._tabs),a.xp6(1),a.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode),a.xp6(2),a.Q6J("ngForOf",e._tabs))},directives:function(){return[ft,o.sg,ht,l.wG,n.kH,o.O5,s.Pl,tt]},styles:[".mat-tab-group{display:flex;flex-direction:column}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),t})();class lt{}const ct=(0,l.Id)(lt);let ht=(()=>{class t extends ct{constructor(t){super(),this.elementRef=t}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq))},t.\u0275dir=a.lG2({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(t,e){2&t&&(a.uIk("aria-disabled",!!e.disabled),a.ekj("mat-tab-disabled",e.disabled))},inputs:{disabled:"disabled"},features:[a.qOj]}),t})();const ut=(0,w.i$)({passive:!0});let dt=(()=>{class t{constructor(t,e,i,n,r,s,o){this._elementRef=t,this._changeDetectorRef=e,this._viewportRuler=i,this._dir=n,this._ngZone=r,this._platform=s,this._animationMode=o,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new h.x,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new h.x,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new a.vpe,this.indexFocused=new a.vpe,r.runOutsideAngular(()=>{(0,p.R)(t.nativeElement,"mouseleave").pipe((0,v.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){t=(0,_.su)(t),this._selectedIndex!=t&&(this._selectedIndexChanged=!0,this._selectedIndex=t,this._keyManager&&this._keyManager.updateActiveItem(t))}ngAfterViewInit(){(0,p.R)(this._previousPaginator.nativeElement,"touchstart",ut).pipe((0,v.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,p.R)(this._nextPaginator.nativeElement,"touchstart",ut).pipe((0,v.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const t=this._dir?this._dir.change:(0,f.of)("ltr"),e=this._viewportRuler.change(150),i=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new n.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(i):i(),(0,d.T)(t,e,this._items.changes).pipe((0,v.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>Promise.resolve().then(i)),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe((0,v.R)(this._destroyed)).subscribe(t=>{this.indexFocused.emit(t),this._setTabFocus(t)})}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(t){if(!(0,x.Vb)(t))switch(t.keyCode){case x.K5:case x.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(t));break;default:this._keyManager.onKeydown(t)}}_onContentChanges(){const t=this._elementRef.nativeElement.textContent;t!==this._currentTextContent&&(this._currentTextContent=t||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(t){this._isValidIndex(t)&&this.focusIndex!==t&&this._keyManager&&this._keyManager.setActiveItem(t)}_isValidIndex(t){if(!this._items)return!0;const e=this._items?this._items.toArray()[t]:null;return!!e&&!e.disabled}_setTabFocus(t){if(this._showPaginationControls&&this._scrollToLabel(t),this._items&&this._items.length){this._items.toArray()[t].focus();const e=this._tabListContainer.nativeElement,i=this._getLayoutDirection();e.scrollLeft="ltr"==i?0:e.scrollWidth-e.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const t=this.scrollDistance,e="ltr"===this._getLayoutDirection()?-t:t;this._tabList.nativeElement.style.transform=`translateX(${Math.round(e)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(t){this._scrollTo(t)}_scrollHeader(t){return this._scrollTo(this._scrollDistance+("before"==t?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(t){this._stopInterval(),this._scrollHeader(t)}_scrollToLabel(t){if(this.disablePagination)return;const e=this._items?this._items.toArray()[t]:null;if(!e)return;const i=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:n,offsetWidth:r}=e.elementRef.nativeElement;let s,o;"ltr"==this._getLayoutDirection()?(s=n,o=s+r):(o=this._tabList.nativeElement.offsetWidth-n,s=o-r);const a=this.scrollDistance,l=this.scrollDistance+i;sl&&(this.scrollDistance+=o-l+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const t=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;t||(this.scrollDistance=0),t!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=t}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const t=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,e=t?t.elementRef.nativeElement:null;e?this._inkBar.alignToElement(e):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(t,e){e&&null!=e.button&&0!==e.button||(this._stopInterval(),(0,m.H)(650,100).pipe((0,v.R)((0,d.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:e,distance:i}=this._scrollHeader(t);(0===i||i>=e)&&this._stopInterval()}))}_scrollTo(t){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const e=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(e,t)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:e,distance:this._scrollDistance}}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(A.rL),a.Y36(C.Is,8),a.Y36(a.R0b),a.Y36(w.t4),a.Y36(c.Qb,8))},t.\u0275dir=a.lG2({type:t,inputs:{disablePagination:"disablePagination"}}),t})(),pt=(()=>{class t extends dt{constructor(t,e,i,n,r,s,o){super(t,e,i,n,r,s,o),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=(0,_.Ig)(t)}_itemSelected(t){t.preventDefault()}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(A.rL),a.Y36(C.Is,8),a.Y36(a.R0b),a.Y36(w.t4),a.Y36(c.Qb,8))},t.\u0275dir=a.lG2({type:t,inputs:{disableRipple:"disableRipple"},features:[a.qOj]}),t})(),ft=(()=>{class t extends pt{constructor(t,e,i,n,r,s,o){super(t,e,i,n,r,s,o)}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(A.rL),a.Y36(C.Is,8),a.Y36(a.R0b),a.Y36(w.t4),a.Y36(c.Qb,8))},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-tab-header"]],contentQueries:function(t,e,i){if(1&t&&a.Suo(i,ht,4),2&t){let t;a.iGM(t=a.CRH())&&(e._items=t)}},viewQuery:function(t,e){if(1&t&&(a.Gf(H,7),a.Gf(F,7),a.Gf(Z,7),a.Gf(B,5),a.Gf(U,5)),2&t){let t;a.iGM(t=a.CRH())&&(e._inkBar=t.first),a.iGM(t=a.CRH())&&(e._tabListContainer=t.first),a.iGM(t=a.CRH())&&(e._tabList=t.first),a.iGM(t=a.CRH())&&(e._nextPaginator=t.first),a.iGM(t=a.CRH())&&(e._previousPaginator=t.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(t,e){2&t&&a.ekj("mat-tab-header-pagination-controls-enabled",e._showPaginationControls)("mat-tab-header-rtl","rtl"==e._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[a.qOj],ngContentSelectors:E,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(t,e){1&t&&(a.F$t(),a.TgZ(0,"div",0,1),a.NdJ("click",function(){return e._handlePaginatorClick("before")})("mousedown",function(t){return e._handlePaginatorPress("before",t)})("touchend",function(){return e._stopInterval()}),a._UZ(2,"div",2),a.qZA(),a.TgZ(3,"div",3,4),a.NdJ("keydown",function(t){return e._handleKeydown(t)}),a.TgZ(5,"div",5,6),a.NdJ("cdkObserveContent",function(){return e._onContentChanges()}),a.TgZ(7,"div",7),a.Hsn(8),a.qZA(),a._UZ(9,"mat-ink-bar"),a.qZA(),a.qZA(),a.TgZ(10,"div",8,9),a.NdJ("mousedown",function(t){return e._handlePaginatorPress("after",t)})("click",function(){return e._handlePaginatorClick("after")})("touchend",function(){return e._stopInterval()}),a._UZ(12,"div",2),a.qZA()),2&t&&(a.ekj("mat-tab-header-pagination-disabled",e._disableScrollBefore),a.Q6J("matRippleDisabled",e._disableScrollBefore||e.disableRipple),a.xp6(5),a.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode),a.xp6(5),a.ekj("mat-tab-header-pagination-disabled",e._disableScrollAfter),a.Q6J("matRippleDisabled",e._disableScrollAfter||e.disableRipple))},directives:[l.wG,r.wD,H],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n'],encapsulation:2}),t})(),mt=(()=>{class t extends dt{constructor(t,e,i,n,r,s,o){super(t,n,r,e,i,s,o),this._disableRipple=!1,this.color="primary"}get backgroundColor(){return this._backgroundColor}set backgroundColor(t){const e=this._elementRef.nativeElement.classList;e.remove(`mat-background-${this.backgroundColor}`),t&&e.add(`mat-background-${t}`),this._backgroundColor=t}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=(0,_.Ig)(t)}_itemSelected(){}ngAfterContentInit(){this._items.changes.pipe((0,y.O)(null),(0,v.R)(this._destroyed)).subscribe(()=>{this.updateActiveLink()}),super.ngAfterContentInit()}updateActiveLink(){if(!this._items)return;const t=this._items.toArray();for(let e=0;e{class t extends mt{constructor(t,e,i,n,r,s,o){super(t,e,i,n,r,s,o)}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(C.Is,8),a.Y36(a.R0b),a.Y36(a.sBO),a.Y36(A.rL),a.Y36(w.t4),a.Y36(c.Qb,8))},t.\u0275cmp=a.Xpm({type:t,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(t,e,i){if(1&t&&a.Suo(i,_t,5),2&t){let t;a.iGM(t=a.CRH())&&(e._items=t)}},viewQuery:function(t,e){if(1&t&&(a.Gf(H,7),a.Gf(F,7),a.Gf(Z,7),a.Gf(B,5),a.Gf(U,5)),2&t){let t;a.iGM(t=a.CRH())&&(e._inkBar=t.first),a.iGM(t=a.CRH())&&(e._tabListContainer=t.first),a.iGM(t=a.CRH())&&(e._tabList=t.first),a.iGM(t=a.CRH())&&(e._nextPaginator=t.first),a.iGM(t=a.CRH())&&(e._previousPaginator=t.first)}},hostAttrs:[1,"mat-tab-nav-bar","mat-tab-header"],hostVars:10,hostBindings:function(t,e){2&t&&a.ekj("mat-tab-header-pagination-controls-enabled",e._showPaginationControls)("mat-tab-header-rtl","rtl"==e._getLayoutDirection())("mat-primary","warn"!==e.color&&"accent"!==e.color)("mat-accent","accent"===e.color)("mat-warn","warn"===e.color)},inputs:{color:"color"},exportAs:["matTabNavBar","matTabNav"],features:[a.qOj],attrs:q,ngContentSelectors:E,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-link-container",3,"keydown"],["tabListContainer",""],[1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-links"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(t,e){1&t&&(a.F$t(),a.TgZ(0,"div",0,1),a.NdJ("click",function(){return e._handlePaginatorClick("before")})("mousedown",function(t){return e._handlePaginatorPress("before",t)})("touchend",function(){return e._stopInterval()}),a._UZ(2,"div",2),a.qZA(),a.TgZ(3,"div",3,4),a.NdJ("keydown",function(t){return e._handleKeydown(t)}),a.TgZ(5,"div",5,6),a.NdJ("cdkObserveContent",function(){return e._onContentChanges()}),a.TgZ(7,"div",7),a.Hsn(8),a.qZA(),a._UZ(9,"mat-ink-bar"),a.qZA(),a.qZA(),a.TgZ(10,"div",8,9),a.NdJ("mousedown",function(t){return e._handlePaginatorPress("after",t)})("click",function(){return e._handlePaginatorClick("after")})("touchend",function(){return e._stopInterval()}),a._UZ(12,"div",2),a.qZA()),2&t&&(a.ekj("mat-tab-header-pagination-disabled",e._disableScrollBefore),a.Q6J("matRippleDisabled",e._disableScrollBefore||e.disableRipple),a.xp6(5),a.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode),a.xp6(5),a.ekj("mat-tab-header-pagination-disabled",e._disableScrollAfter),a.Q6J("matRippleDisabled",e._disableScrollAfter||e.disableRipple))},directives:[l.wG,r.wD,H],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-links{display:flex}[mat-align-tabs=center]>.mat-tab-link-container .mat-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-tab-link-container .mat-tab-links{justify-content:flex-end}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-link{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;vertical-align:top;text-decoration:none;position:relative;overflow:hidden;-webkit-tap-highlight-color:transparent}.mat-tab-link:focus{outline:none}.mat-tab-link:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-link:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-link.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-link.mat-tab-disabled{opacity:.5}.mat-tab-link .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-link{opacity:1}[mat-stretch-tabs] .mat-tab-link{flex-basis:0;flex-grow:1}.mat-tab-link.mat-tab-disabled{pointer-events:none}@media(max-width: 599px){.mat-tab-link{min-width:72px}}\n'],encapsulation:2}),t})();class yt{}const bt=(0,l.sb)((0,l.Kr)((0,l.Id)(yt)));let vt=(()=>{class t extends bt{constructor(t,e,i,n,r,s){super(),this._tabNavBar=t,this.elementRef=e,this._focusMonitor=r,this._isActive=!1,this.rippleConfig=i||{},this.tabIndex=parseInt(n)||0,"NoopAnimations"===s&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0})}get active(){return this._isActive}set active(t){(0,_.Ig)(t)!==this._isActive&&(this._isActive=t,this._tabNavBar.updateActiveLink())}get rippleDisabled(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}focus(){this.elementRef.nativeElement.focus()}ngAfterViewInit(){this._focusMonitor.monitor(this.elementRef)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this.elementRef)}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(mt),a.Y36(a.SBq),a.Y36(l.Y2,8),a.$8M("tabindex"),a.Y36(n.tE),a.Y36(c.Qb,8))},t.\u0275dir=a.lG2({type:t,inputs:{active:"active"},features:[a.qOj]}),t})(),_t=(()=>{class t extends vt{constructor(t,e,i,n,r,s,o,a){super(t,e,r,s,o,a),this._tabLinkRipple=new l.IR(this,i,e,n),this._tabLinkRipple.setupTriggerEvents(e.nativeElement)}ngOnDestroy(){super.ngOnDestroy(),this._tabLinkRipple._removeTriggerEvents()}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(gt),a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(w.t4),a.Y36(l.Y2,8),a.$8M("tabindex"),a.Y36(n.tE),a.Y36(c.Qb,8))},t.\u0275dir=a.lG2({type:t,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:7,hostBindings:function(t,e){2&t&&(a.uIk("aria-current",e.active?"page":null)("aria-disabled",e.disabled)("tabIndex",e.tabIndex),a.ekj("mat-tab-disabled",e.disabled)("mat-tab-label-active",e.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[a.qOj]}),t})(),wt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=a.oAB({type:t}),t.\u0275inj=a.cJS({imports:[[o.ez,l.BQ,s.eL,l.si,r.Q8,n.rt],l.BQ]}),t})()},3104:(t,e,i)=>{"use strict";i.d(e,{Ye:()=>d,g0:()=>p});var n=i(1522),r=i(1511),s=i(1572),o=i(1353);const a=["*",[["mat-toolbar-row"]]],l=["*","mat-toolbar-row"];class c{constructor(t){this._elementRef=t}}const h=(0,n.pj)(c);let u=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),t})(),d=(()=>{class t extends h{constructor(t,e,i){super(t),this._platform=e,this._document=i}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(o.t4),s.Y36(r.K0))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-toolbar"]],contentQueries:function(t,e,i){if(1&t&&s.Suo(i,u,5),2&t){let t;s.iGM(t=s.CRH())&&(e._toolbarRows=t)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(t,e){2&t&&s.ekj("mat-toolbar-multiple-rows",e._toolbarRows.length>0)("mat-toolbar-single-row",0===e._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[s.qOj],ngContentSelectors:l,decls:2,vars:0,template:function(t,e){1&t&&(s.F$t(a),s.Hsn(0),s.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),t})(),p=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[n.BQ],n.BQ]}),t})()},6828:(t,e,i)=>{"use strict";i.d(e,{gM:()=>S,AV:()=>T});var n=i(369),r=i(4621),s=i(1511),o=i(1572),a=i(1522),l=i(4894),c=i(9861),h=i(5842),u=i(72),d=i(1353),p=i(6899),f=i(9666),m=i(9568),g=i(9056),y=i(709),b=i(2526);const v={tooltipState:(0,y.X$)("state",[(0,y.SB)("initial, void, hidden",(0,y.oB)({opacity:0,transform:"scale(0)"})),(0,y.SB)("visible",(0,y.oB)({transform:"scale(1)"})),(0,y.eR)("* => visible",(0,y.jt)("200ms cubic-bezier(0, 0, 0.2, 1)",(0,y.F4)([(0,y.oB)({opacity:0,transform:"scale(0)",offset:0}),(0,y.oB)({opacity:.5,transform:"scale(0.99)",offset:.5}),(0,y.oB)({opacity:1,transform:"scale(1)",offset:1})]))),(0,y.eR)("* => hidden",(0,y.jt)("100ms cubic-bezier(0, 0, 0.2, 1)",(0,y.oB)({opacity:0})))])},_=(0,d.i$)({passive:!0}),w=new o.OlP("mat-tooltip-scroll-strategy"),x={provide:w,deps:[n.aV],useFactory:function(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},C=new o.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let A=(()=>{class t{constructor(t,e,i,n,r,s,o,a,l,c,u,d){this._overlay=t,this._elementRef=e,this._scrollDispatcher=i,this._viewContainerRef=n,this._ngZone=r,this._platform=s,this._ariaDescriber=o,this._focusMonitor=a,this._dir=c,this._defaultOptions=u,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new f.x,this._handleKeydown=t=>{this._isTooltipVisible()&&t.keyCode===h.hY&&!(0,h.Vb)(t)&&(t.preventDefault(),t.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=l,this._document=d,u&&(u.position&&(this.position=u.position),u.touchGestures&&(this.touchGestures=u.touchGestures)),c.change.pipe((0,m.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),r.runOutsideAngular(()=>{e.nativeElement.addEventListener("keydown",this._handleKeydown)})}get position(){return this._position}set position(t){var e;t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(e=this._tooltipInstance)||void 0===e||e.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(t){this._disabled=(0,c.Ig)(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get message(){return this._message}set message(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=t?String(t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,m.R)(this._destroyed)).subscribe(t=>{t?"keyboard"===t&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),t.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(([e,i])=>{t.removeEventListener(e,i,_)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const e=this._createOverlay();this._detach(),this._portal=this._portal||new p.C5(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=e.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe((0,m.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}hide(t=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(t)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),e=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(t);return e.positionChanges.pipe((0,m.R)(this._destroyed)).subscribe(t=>{this._updateCurrentPositionClass(t.connectionPair),this._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:e,panelClass:`${this._cssClassPrefix}-tooltip-panel`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,m.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(t){const e=t.getConfig().positionStrategy,i=this._getOrigin(),n=this._getOverlayPosition();e.withPositions([this._addOffset(Object.assign(Object.assign({},i.main),n.main)),this._addOffset(Object.assign(Object.assign({},i.fallback),n.fallback))])}_addOffset(t){return t}_getOrigin(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let i;"above"==e||"below"==e?i={originX:"center",originY:"above"==e?"top":"bottom"}:"before"==e||"left"==e&&t||"right"==e&&!t?i={originX:"start",originY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(i={originX:"end",originY:"center"});const{x:n,y:r}=this._invertPosition(i.originX,i.originY);return{main:i,fallback:{originX:n,originY:r}}}_getOverlayPosition(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let i;"above"==e?i={overlayX:"center",overlayY:"bottom"}:"below"==e?i={overlayX:"center",overlayY:"top"}:"before"==e||"left"==e&&t||"right"==e&&!t?i={overlayX:"end",overlayY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(i={overlayX:"start",overlayY:"center"});const{x:n,y:r}=this._invertPosition(i.overlayX,i.overlayY);return{main:i,fallback:{overlayX:n,overlayY:r}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,g.q)(1),(0,m.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,e){return"above"===this.position||"below"===this.position?"top"===e?e="bottom":"bottom"===e&&(e="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:e}}_updateCurrentPositionClass(t){const{overlayY:e,originX:i,originY:n}=t;let r;if(r="center"===e?this._dir&&"rtl"===this._dir.value?"end"===i?"left":"right":"start"===i?"left":"right":"bottom"===e&&"top"===n?"above":"below",r!==this._currentPosition){const t=this._overlayRef;if(t){const e=`${this._cssClassPrefix}-tooltip-panel-`;t.removePanelClass(e+this._currentPosition),t.addPanelClass(e+r)}this._currentPosition=r}}_setupPointerEnterEventsIfNeeded(){!this._disabled&&this.message&&this._viewInitialized&&!this._passiveListeners.length&&(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const t=[];if(this._platformSupportsMouseEvents())t.push(["mouseleave",()=>this.hide()],["wheel",t=>this._wheelListener(t)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const e=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};t.push(["touchend",e],["touchcancel",e])}this._addListeners(t),this._passiveListeners.push(...t)}_addListeners(t){t.forEach(([t,e])=>{this._elementRef.nativeElement.addEventListener(t,e,_)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(t){if(this._isTooltipVisible()){const e=this._document.elementFromPoint(t.clientX,t.clientY),i=this._elementRef.nativeElement;e===i||i.contains(e)||this.hide()}}_disableNativeGesturesIfNecessary(){const t=this.touchGestures;if("off"!==t){const e=this._elementRef.nativeElement,i=e.style;("on"===t||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName)&&(i.userSelect=i.msUserSelect=i.webkitUserSelect=i.MozUserSelect="none"),"on"!==t&&e.draggable||(i.webkitUserDrag="none"),i.touchAction="none",i.webkitTapHighlightColor="transparent"}}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(n.aV),o.Y36(o.SBq),o.Y36(l.mF),o.Y36(o.s_b),o.Y36(o.R0b),o.Y36(d.t4),o.Y36(r.$s),o.Y36(r.tE),o.Y36(void 0),o.Y36(b.Is),o.Y36(void 0),o.Y36(s.K0))},t.\u0275dir=o.lG2({type:t,inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),t})(),S=(()=>{class t extends A{constructor(t,e,i,n,r,s,o,a,l,c,h,u){super(t,e,i,n,r,s,o,a,l,c,h,u),this._tooltipComponent=k}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(n.aV),o.Y36(o.SBq),o.Y36(l.mF),o.Y36(o.s_b),o.Y36(o.R0b),o.Y36(d.t4),o.Y36(r.$s),o.Y36(r.tE),o.Y36(w),o.Y36(b.Is,8),o.Y36(C,8),o.Y36(s.K0))},t.\u0275dir=o.lG2({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[o.qOj]}),t})(),E=(()=>{class t{constructor(t){this._changeDetectorRef=t,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new f.x}show(t){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._markForCheck()},t)}hide(t){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},t)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(t){const e=t.toState;"hidden"!==e||this.isVisible()||this._onHide.next(),"visible"!==e&&"hidden"!==e||(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.sBO))},t.\u0275dir=o.lG2({type:t}),t})(),k=(()=>{class t extends E{constructor(t,e){super(t),this._breakpointObserver=e,this._isHandset=this._breakpointObserver.observe(u.u3.Handset)}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.sBO),o.Y36(u.Yg))},t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){1&t&&o.NdJ("click",function(){return e._handleBodyInteraction()},!1,o.pYS)("auxclick",function(){return e._handleBodyInteraction()},!1,o.pYS),2&t&&o.Udp("zoom","visible"===e._visibility?1:null)},features:[o.qOj],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){if(1&t&&(o.TgZ(0,"div",0),o.NdJ("@state.start",function(){return e._animationStart()})("@state.done",function(t){return e._animationDone(t)}),o.ALo(1,"async"),o._uU(2),o.qZA()),2&t){let t;o.ekj("mat-tooltip-handset",null==(t=o.lcZ(1,5,e._isHandset))?null:t.matches),o.Q6J("ngClass",e.tooltipClass)("@state",e._visibility),o.xp6(2),o.Oqu(e.message)}},directives:[s.mk],pipes:[s.Ov],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[v.tooltipState]},changeDetection:0}),t})(),T=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({providers:[x],imports:[[r.rt,s.ez,n.U8,a.BQ],a.BQ,l.ZD]}),t})()},1010:(t,e,i)=>{"use strict";i.d(e,{GZ:()=>f,gi:()=>g,dp:()=>b,WX:()=>v,uo:()=>d,fQ:()=>p,Ar:()=>m,eu:()=>y});var n=i(1709),r=i(1522),s=i(9861),o=i(4230),a=i(7425),l=i(5446),c=i(1681),h=i(1572);const u=(0,r.sb)((0,r.Id)(n.Hs));let d=(()=>{class t extends u{constructor(t,e,i){super(t,e),this._elementRef=t,this._tree=e,this.tabIndex=Number(i)||0,this._elementRef.nativeElement.classList.add("mat-tree-node")}ngOnInit(){super.ngOnInit()}ngDoCheck(){super.ngDoCheck()}ngOnDestroy(){super.ngOnDestroy()}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(h.SBq),h.Y36(n._0),h.$8M("tabindex"))},t.\u0275dir=h.lG2({type:t,selectors:[["mat-tree-node"]],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["matTreeNode"],features:[h._Bn([{provide:n.Hs,useExisting:t}]),h.qOj]}),t})(),p=(()=>{class t extends n.rO{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=h.n5z(t)))(i||t)}}(),t.\u0275dir=h.lG2({type:t,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[h._Bn([{provide:n.rO,useExisting:t}]),h.qOj]}),t})(),f=(()=>{class t extends n.Xx{constructor(t,e,i,n){super(t,e,i),this._elementRef=t,this._tree=e,this._differs=i,this._disabled=!1,this.tabIndex=Number(n)||0,this._elementRef.nativeElement.classList.add("mat-nested-tree-node")}get disabled(){return this._disabled}set disabled(t){this._disabled=(0,s.Ig)(t)}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(t){this._tabIndex=null!=t?t:0}ngOnInit(){super.ngOnInit()}ngDoCheck(){super.ngDoCheck()}ngAfterContentInit(){super.ngAfterContentInit()}ngOnDestroy(){super.ngOnDestroy()}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(h.SBq),h.Y36(n._0),h.Y36(h.ZZ4),h.$8M("tabindex"))},t.\u0275dir=h.lG2({type:t,selectors:[["mat-nested-tree-node"]],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex",node:["matNestedTreeNode","node"]},exportAs:["matNestedTreeNode"],features:[h._Bn([{provide:n.Xx,useExisting:t},{provide:n.Hs,useExisting:t},{provide:n.HI,useExisting:t}]),h.qOj]}),t})(),m=(()=>{class t{constructor(t,e){this.viewContainer=t,this._node=e}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(h.s_b),h.Y36(n.HI,8))},t.\u0275dir=h.lG2({type:t,selectors:[["","matTreeNodeOutlet",""]],features:[h._Bn([{provide:n.cu,useExisting:t}])]}),t})(),g=(()=>{class t extends n._0{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=h.n5z(t)))(i||t)}}(),t.\u0275cmp=h.Xpm({type:t,selectors:[["mat-tree"]],viewQuery:function(t,e){if(1&t&&h.Gf(m,7),2&t){let t;h.iGM(t=h.CRH())&&(e._nodeOutlet=t.first)}},hostAttrs:["role","tree",1,"mat-tree","cdk-tree"],exportAs:["matTree"],features:[h._Bn([{provide:n._0,useExisting:t}]),h.qOj],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(t,e){1&t&&h.GkF(0,0)},directives:[m],styles:[".mat-tree{display:block}.mat-tree-node{display:flex;align-items:center;flex:1;word-wrap:break-word}.mat-nested-tree-node{border-bottom-width:0}\n"],encapsulation:2}),t})(),y=(()=>{class t extends n.Ud{get recursive(){return this._recursive}set recursive(t){this._recursive=(0,s.Ig)(t)}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=h.n5z(t)))(i||t)}}(),t.\u0275dir=h.lG2({type:t,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[h._Bn([{provide:n.Ud,useExisting:t}]),h.qOj]}),t})(),b=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=h.oAB({type:t}),t.\u0275inj=h.cJS({imports:[[n.nZ,r.BQ],r.BQ]}),t})();class v extends o.o2{constructor(){super(...arguments),this._data=new a.X([])}get data(){return this._data.value}set data(t){this._data.next(t)}connect(t){return(0,l.T)(t.viewChange,this._data).pipe((0,c.U)(()=>this.data))}disconnect(){}}},3490:(t,e,i)=>{"use strict";i.d(e,{Qb:()=>Oe,PW:()=>Pe});var n=i(1572),r=i(269),s=i(709);function o(){return"undefined"!=typeof window&&void 0!==window.document}function a(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function l(t){switch(t.length){case 0:return new s.ZN;case 1:return t[0];default:return new s.ZE(t)}}function c(t,e,i,n,r={},o={}){const a=[],l=[];let c=-1,h=null;if(n.forEach(t=>{const i=t.offset,n=i==c,u=n&&h||{};Object.keys(t).forEach(i=>{let n=i,l=t[i];if("offset"!==i)switch(n=e.normalizePropertyName(n,a),l){case s.k1:l=r[i];break;case s.l3:l=o[i];break;default:l=e.normalizeStyleValue(i,n,l,a)}u[n]=l}),n||l.push(u),h=u,c=i}),a.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${a.join(t)}`)}return l}function h(t,e,i,n){switch(e){case"start":t.onStart(()=>n(i&&u(i,"start",t)));break;case"done":t.onDone(()=>n(i&&u(i,"done",t)));break;case"destroy":t.onDestroy(()=>n(i&&u(i,"destroy",t)))}}function u(t,e,i){const n=i.totalTime,r=d(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==n?t.totalTime:n,!!i.disabled),s=t._data;return null!=s&&(r._data=s),r}function d(t,e,i,n,r="",s=0,o){return{element:t,triggerName:e,fromState:i,toState:n,phaseName:r,totalTime:s,disabled:!!o}}function p(t,e,i){let n;return t instanceof Map?(n=t.get(e),n||t.set(e,n=i)):(n=t[e],n||(n=t[e]=i)),n}function f(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let m=(t,e)=>!1,g=(t,e)=>!1,y=(t,e,i)=>[];const b=a();(b||"undefined"!=typeof Element)&&(m=o()?(t,e)=>{for(;e&&e!==document.documentElement;){if(e===t)return!0;e=e.parentNode||e.host}return!1}:(t,e)=>t.contains(e),g=(()=>{if(b||Element.prototype.matches)return(t,e)=>t.matches(e);{const t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?(t,i)=>e.apply(t,[i]):g}})(),y=(t,e,i)=>{let n=[];if(i){const i=t.querySelectorAll(e);for(let t=0;t{const n=i.replace(/([a-z])([A-Z])/g,"$1-$2");e[n]=t[i]}),e}let E=(()=>{class t{validateStyleProperty(t){return w(t)}matchesElement(t,e){return x(t,e)}containsElement(t,e){return C(t,e)}query(t,e,i){return A(t,e,i)}computeStyle(t,e,i){return i||""}animate(t,e,i,n,r,o=[],a){return new s.ZN(i,n)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})(),k=(()=>{class t{}return t.NOOP=new E,t})();const T="ng-enter",M="ng-leave",L="ng-trigger",I=".ng-trigger",O="ng-animating",D=".ng-animating";function R(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:N(parseFloat(e[1]),e[2])}function N(t,e){switch(e){case"s":return 1e3*t;default:return t}}function P(t,e,i){return t.hasOwnProperty("duration")?t:function(t,e,i){let n,r=0,s="";if("string"==typeof t){const i=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===i)return e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};n=N(parseFloat(i[1]),i[2]);const o=i[3];null!=o&&(r=N(parseFloat(o),i[4]));const a=i[5];a&&(s=a)}else n=t;if(!i){let i=!1,s=e.length;n<0&&(e.push("Duration values below 0 are not allowed for this animation step."),i=!0),r<0&&(e.push("Delay values below 0 are not allowed for this animation step."),i=!0),i&&e.splice(s,0,`The provided timing value "${t}" is invalid.`)}return{duration:n,delay:r,easing:s}}(t,e,i)}function F(t,e={}){return Object.keys(t).forEach(i=>{e[i]=t[i]}),e}function Z(t,e,i={}){if(e)for(let n in t)i[n]=t[n];else F(t,i);return i}function B(t,e,i){return i?e+":"+i+";":""}function U(t){let e="";for(let i=0;i{const r=W(n);i&&!i.hasOwnProperty(n)&&(i[n]=t.style[r]),t.style[r]=e[n]}),a()&&U(t))}function z(t,e){t.style&&(Object.keys(e).forEach(e=>{const i=W(e);t.style[i]=""}),a()&&U(t))}function H(t){return Array.isArray(t)?1==t.length?t[0]:(0,s.vP)(t):t}const Y=new RegExp("{{\\s*(.+?)\\s*}}","g");function G(t){let e=[];if("string"==typeof t){let i;for(;i=Y.exec(t);)e.push(i[1]);Y.lastIndex=0}return e}function j(t,e,i){const n=t.toString(),r=n.replace(Y,(t,n)=>{let r=e[n];return e.hasOwnProperty(n)||(i.push(`Please provide a value for the animation param ${n}`),r=""),r.toString()});return r==n?t:r}function V(t){const e=[];let i=t.next();for(;!i.done;)e.push(i.value),i=t.next();return e}const Q=/-+([a-z0-9])/g;function W(t){return t.replace(Q,(...t)=>t[1].toUpperCase())}function J(t,e){return 0===t||0===e}function X(t,e,i){const n=Object.keys(i);if(n.length&&e.length){let s=e[0],o=[];if(n.forEach(t=>{s.hasOwnProperty(t)||o.push(t),s[t]=i[t]}),o.length)for(var r=1;rfunction(t,e,i){if(":"==t[0]){const n=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,e)=>parseFloat(e)>parseFloat(t);case":decrement":return(t,e)=>parseFloat(e) *"}}(t,i);if("function"==typeof n)return void e.push(n);t=n}const n=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==n||n.length<4)return i.push(`The provided transition expression "${t}" is not supported`),e;const r=n[1],s=n[2],o=n[3];e.push(rt(r,o)),"<"!=s[0]||r==tt&&o==tt||e.push(rt(o,r))}(t,i,e)):i.push(t),i}const it=new Set(["true","1"]),nt=new Set(["false","0"]);function rt(t,e){const i=it.has(t)||nt.has(t),n=it.has(e)||nt.has(e);return(r,s)=>{let o=t==tt||t==r,a=e==tt||e==s;return!o&&i&&"boolean"==typeof r&&(o=r?it.has(t):nt.has(t)),!a&&n&&"boolean"==typeof s&&(a=s?it.has(e):nt.has(e)),o&&a}}const st=new RegExp("s*:selfs*,?","g");function ot(t,e,i){return new at(t).build(e,i)}class at{constructor(t){this._driver=t}build(t,e){const i=new lt(e);return this._resetContextStyleTimingState(i),K(this,H(t),i)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let i=e.queryCount=0,n=e.depCount=0;const r=[],s=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(t=>{if(this._resetContextStyleTimingState(e),0==t.type){const i=t,n=i.name;n.toString().split(/\s*,\s*/).forEach(t=>{i.name=t,r.push(this.visitState(i,e))}),i.name=n}else if(1==t.type){const r=this.visitTransition(t,e);i+=r.queryCount,n+=r.depCount,s.push(r)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:r,transitions:s,queryCount:i,depCount:n,options:null}}visitState(t,e){const i=this.visitStyle(t.styles,e),n=t.options&&t.options.params||null;if(i.containsDynamicStyles){const r=new Set,s=n||{};if(i.styles.forEach(t=>{if(ct(t)){const e=t;Object.keys(e).forEach(t=>{G(e[t]).forEach(t=>{s.hasOwnProperty(t)||r.add(t)})})}}),r.size){const i=V(r.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${i.join(", ")}`)}}return{type:0,name:t.name,style:i,options:n?{params:n}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const i=K(this,H(t.animation),e);return{type:1,matchers:et(t.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:ht(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>K(this,t,e)),options:ht(t.options)}}visitGroup(t,e){const i=e.currentTime;let n=0;const r=t.steps.map(t=>{e.currentTime=i;const r=K(this,t,e);return n=Math.max(n,e.currentTime),r});return e.currentTime=n,{type:3,steps:r,options:ht(t.options)}}visitAnimate(t,e){const i=function(t,e){let i=null;if(t.hasOwnProperty("duration"))i=t;else if("number"==typeof t)return ut(P(t,e).duration,0,"");const n=t;if(n.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=ut(0,0,"");return t.dynamic=!0,t.strValue=n,t}return i=i||P(n,e),ut(i.duration,i.delay,i.easing)}(t.timings,e.errors);let n;e.currentAnimateTimings=i;let r=t.styles?t.styles:(0,s.oB)({});if(5==r.type)n=this.visitKeyframes(r,e);else{let r=t.styles,o=!1;if(!r){o=!0;const t={};i.easing&&(t.easing=i.easing),r=(0,s.oB)(t)}e.currentTime+=i.duration+i.delay;const a=this.visitStyle(r,e);a.isEmptyStep=o,n=a}return e.currentAnimateTimings=null,{type:4,timings:i,style:n,options:null}}visitStyle(t,e){const i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}_makeStyleAst(t,e){const i=[];Array.isArray(t.styles)?t.styles.forEach(t=>{"string"==typeof t?t==s.l3?i.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):i.push(t)}):i.push(t.styles);let n=!1,r=null;return i.forEach(t=>{if(ct(t)){const e=t,i=e.easing;if(i&&(r=i,delete e.easing),!n)for(let t in e)if(e[t].toString().indexOf("{{")>=0){n=!0;break}}}),{type:6,styles:i,easing:r,offset:t.offset,containsDynamicStyles:n,options:null}}_validateStyleAst(t,e){const i=e.currentAnimateTimings;let n=e.currentTime,r=e.currentTime;i&&r>0&&(r-=i.duration+i.delay),t.styles.forEach(t=>{"string"!=typeof t&&Object.keys(t).forEach(i=>{if(!this._driver.validateStyleProperty(i))return void e.errors.push(`The provided animation property "${i}" is not a supported CSS property for animations`);const s=e.collectedStyles[e.currentQuerySelector],o=s[i];let a=!0;o&&(r!=n&&r>=o.startTime&&n<=o.endTime&&(e.errors.push(`The CSS property "${i}" that exists between the times of "${o.startTime}ms" and "${o.endTime}ms" is also being animated in a parallel animation between the times of "${r}ms" and "${n}ms"`),a=!1),r=o.startTime),a&&(s[i]={startTime:r,endTime:n}),e.options&&function(t,e,i){const n=e.params||{},r=G(t);r.length&&r.forEach(t=>{n.hasOwnProperty(t)||i.push(`Unable to resolve the local animation param ${t} in the given list of values`)})}(t[i],e.options,e.errors)})})}visitKeyframes(t,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),i;let n=0;const r=[];let s=!1,o=!1,a=0;const l=t.steps.map(t=>{const i=this._makeStyleAst(t,e);let l=null!=i.offset?i.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(t=>{if(ct(t)&&t.hasOwnProperty("offset")){const i=t;e=parseFloat(i.offset),delete i.offset}});else if(ct(t)&&t.hasOwnProperty("offset")){const i=t;e=parseFloat(i.offset),delete i.offset}return e}(i.styles),c=0;return null!=l&&(n++,c=i.offset=l),o=o||c<0||c>1,s=s||c0&&n{const s=h>0?n==u?1:h*n:r[n],o=s*f;e.currentTime=d+p.delay+o,p.duration=o,this._validateStyleAst(t,e),t.offset=s,i.styles.push(t)}),i}visitReference(t,e){return{type:8,animation:K(this,H(t.animation),e),options:ht(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:ht(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:ht(t.options)}}visitQuery(t,e){const i=e.currentQuerySelector,n=t.options||{};e.queryCount++,e.currentQuery=t;const[r,s]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(st,"")),[t=t.replace(/@\*/g,I).replace(/@\w+/g,t=>".ng-trigger-"+t.substr(1)).replace(/:animating/g,D),e]}(t.selector);e.currentQuerySelector=i.length?i+" "+r:r,p(e.collectedStyles,e.currentQuerySelector,{});const o=K(this,H(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:r,limit:n.limit||0,optional:!!n.optional,includeSelf:s,animation:o,originalSelector:t.selector,options:ht(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const i="full"===t.timings?{duration:0,delay:0,easing:"full"}:P(t.timings,e.errors,!0);return{type:12,animation:K(this,H(t.animation),e),timings:i,options:null}}}class lt{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function ct(t){return!Array.isArray(t)&&"object"==typeof t}function ht(t){var e;return t?(t=F(t)).params&&(t.params=(e=t.params)?F(e):null):t={},t}function ut(t,e,i){return{duration:t,delay:e,easing:i}}function dt(t,e,i,n,r,s,o=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:i,postStyleProps:n,duration:r,delay:s,totalTime:r+s,easing:o,subTimeline:a}}class pt{constructor(){this._map=new Map}consume(t){let e=this._map.get(t);return e?this._map.delete(t):e=[],e}append(t,e){let i=this._map.get(t);i||this._map.set(t,i=[]),i.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const ft=new RegExp(":enter","g"),mt=new RegExp(":leave","g");function gt(t,e,i,n,r,s={},o={},a,l,c=[]){return(new yt).buildKeyframes(t,e,i,n,r,s,o,a,l,c)}class yt{buildKeyframes(t,e,i,n,r,s,o,a,l,c=[]){l=l||new pt;const h=new vt(t,e,l,n,r,c,[]);h.options=a,h.currentTimeline.setStyles([s],null,h.errors,a),K(this,i,h);const u=h.timelines.filter(t=>t.containsAnimation());if(u.length&&Object.keys(o).length){const t=u[u.length-1];t.allowOnlyTimelineStyles()||t.setStyles([o],null,h.errors,a)}return u.length?u.map(t=>t.buildKeyframes()):[dt(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const i=e.subInstructions.consume(e.element);if(i){const n=e.createSubContext(t.options),r=e.currentTimeline.currentTime,s=this._visitSubInstructions(i,n,n.options);r!=s&&e.transformIntoNewTimeline(s)}e.previousNode=t}visitAnimateRef(t,e){const i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,i){let n=e.currentTimeline.currentTime;const r=null!=i.duration?R(i.duration):null,s=null!=i.delay?R(i.delay):null;return 0!==r&&t.forEach(t=>{const i=e.appendInstructionToTimeline(t,r,s);n=Math.max(n,i.duration+i.delay)}),n}visitReference(t,e){e.updateOptions(t.options,!0),K(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const i=e.subContextCount;let n=e;const r=t.options;if(r&&(r.params||r.delay)&&(n=e.createSubContext(r),n.transformIntoNewTimeline(),null!=r.delay)){6==n.previousNode.type&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=bt);const t=R(r.delay);n.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>K(this,t,n)),n.currentTimeline.applyStylesToKeyframe(),n.subContextCount>i&&n.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const i=[];let n=e.currentTimeline.currentTime;const r=t.options&&t.options.delay?R(t.options.delay):0;t.steps.forEach(s=>{const o=e.createSubContext(t.options);r&&o.delayNextStep(r),K(this,s,o),n=Math.max(n,o.currentTimeline.currentTime),i.push(o.currentTimeline)}),i.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(n),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const i=t.strValue;return P(e.params?j(i,e.params,e.errors):i,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const i=e.currentAnimateTimings=this._visitTiming(t.timings,e),n=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),n.snapshotCurrentStyles());const r=t.style;5==r.type?this.visitKeyframes(r,e):(e.incrementTime(i.duration),this.visitStyle(r,e),n.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const i=e.currentTimeline,n=e.currentAnimateTimings;!n&&i.getCurrentStyleProperties().length&&i.forwardFrame();const r=n&&n.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(r):i.setStyles(t.styles,r,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const i=e.currentAnimateTimings,n=e.currentTimeline.duration,r=i.duration,s=e.createSubContext().currentTimeline;s.easing=i.easing,t.styles.forEach(t=>{s.forwardTime((t.offset||0)*r),s.setStyles(t.styles,t.easing,e.errors,e.options),s.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(s),e.transformIntoNewTimeline(n+r),e.previousNode=t}visitQuery(t,e){const i=e.currentTimeline.currentTime,n=t.options||{},r=n.delay?R(n.delay):0;r&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=bt);let s=i;const o=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!n.optional,e.errors);e.currentQueryTotal=o.length;let a=null;o.forEach((i,n)=>{e.currentQueryIndex=n;const o=e.createSubContext(t.options,i);r&&o.delayNextStep(r),i===e.element&&(a=o.currentTimeline),K(this,t.animation,o),o.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,o.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const i=e.parentContext,n=e.currentTimeline,r=t.timings,s=Math.abs(r.duration),o=s*(e.currentQueryTotal-1);let a=s*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":a=o-a;break;case"full":a=i.currentStaggerTime}const l=e.currentTimeline;a&&l.delayNextStep(a);const c=l.currentTime;K(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=n.currentTime-c+(n.startTime-i.currentTimeline.startTime)}}const bt={};class vt{constructor(t,e,i,n,r,s,o,a){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=n,this._leaveClassName=r,this.errors=s,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=bt,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new _t(this._driver,e,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const i=t;let n=this.options;null!=i.duration&&(n.duration=R(i.duration)),null!=i.delay&&(n.delay=R(i.delay));const r=i.params;if(r){let t=n.params;t||(t=this.options.params={}),Object.keys(r).forEach(i=>{e&&t.hasOwnProperty(i)||(t[i]=j(r[i],t,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const i=t.params={};Object.keys(e).forEach(t=>{i[t]=e[t]})}}return t}createSubContext(t=null,e,i){const n=e||this.element,r=new vt(this._driver,n,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(n,i||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(t),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(t){return this.previousNode=bt,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,i){const n={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+t.delay,easing:""},r=new wt(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,n,t.stretchStartingKeyframe);return this.timelines.push(r),n}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,n,r,s){let o=[];if(n&&o.push(this.element),t.length>0){t=(t=t.replace(ft,"."+this._enterClassName)).replace(mt,"."+this._leaveClassName);let e=this._driver.query(this.element,t,1!=i);0!==i&&(e=i<0?e.slice(e.length+i,e.length):e.slice(0,i)),o.push(...e)}return r||0!=o.length||s.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),o}}class _t{constructor(t,e,i,n){this._driver=t,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=n,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new _t(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||s.l3,this._currentKeyframe[t]=s.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,n){e&&(this._previousKeyframe.easing=e);const r=n&&n.params||{},o=function(t,e){const i={};let n;return t.forEach(t=>{"*"===t?(n=n||Object.keys(e),n.forEach(t=>{i[t]=s.l3})):Z(t,!1,i)}),i}(t,this._globalTimelineStyles);Object.keys(o).forEach(t=>{const e=j(o[t],r,i);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:s.l3),this._updateStyle(t,e)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(e=>{this._currentKeyframe[e]=t[e]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const i=this._styleSummary[e],n=t._styleSummary[e];(!i||n.time>i.time)&&this._updateStyle(e,n.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let n=[];this._keyframes.forEach((r,o)=>{const a=Z(r,!0);Object.keys(a).forEach(i=>{const n=a[i];n==s.k1?t.add(i):n==s.l3&&e.add(i)}),i||(a.offset=o/this.duration),n.push(a)});const r=t.size?V(t.values()):[],o=e.size?V(e.values()):[];if(i){const t=n[0],e=F(t);t.offset=0,e.offset=1,n=[t,e]}return dt(this.element,n,r,o,this.duration,this.startTime,this.easing,!1)}}class wt extends _t{constructor(t,e,i,n,r,s,o=!1){super(t,e,s.delay),this.element=e,this.keyframes=i,this.preStyleProps=n,this.postStyleProps=r,this._stretchStartingKeyframe=o,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:i,easing:n}=this.timings;if(this._stretchStartingKeyframe&&e){const r=[],s=i+e,o=e/s,a=Z(t[0],!1);a.offset=0,r.push(a);const l=Z(t[0],!1);l.offset=xt(o),r.push(l);const c=t.length-1;for(let n=1;n<=c;n++){let o=Z(t[n],!1);o.offset=xt((e+o.offset*i)/s),r.push(o)}i=s,e=0,n="",t=r}return dt(this.element,t,this.preStyleProps,this.postStyleProps,i,e,n,!0)}}function xt(t,e=3){const i=Math.pow(10,e-1);return Math.round(t*i)/i}class Ct{}class At extends Ct{normalizePropertyName(t,e){return W(t)}normalizeStyleValue(t,e,i,n){let r="";const s=i.toString().trim();if(St[e]&&0!==i&&"0"!==i)if("number"==typeof i)r="px";else{const e=i.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&n.push(`Please provide a CSS unit value for ${t}:${i}`)}return s+r}}const St=(()=>function(t){const e={};return t.forEach(t=>e[t]=!0),e}("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".split(",")))();function Et(t,e,i,n,r,s,o,a,l,c,h,u,d){return{type:0,element:t,triggerName:e,isRemovalTransition:r,fromState:i,fromStyles:s,toState:n,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:h,totalTime:u,errors:d}}const kt={};class Tt{constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,n){return function(t,e,i,n,r){return t.some(t=>t(e,i,n,r))}(this.ast.matchers,t,e,i,n)}buildStyles(t,e,i){const n=this._stateStyles["*"],r=this._stateStyles[t],s=n?n.buildStyles(e,i):{};return r?r.buildStyles(e,i):s}build(t,e,i,n,r,s,o,a,l,c){const h=[],u=this.ast.options&&this.ast.options.params||kt,d=this.buildStyles(i,o&&o.params||kt,h),f=a&&a.params||kt,m=this.buildStyles(n,f,h),g=new Set,y=new Map,b=new Map,v="void"===n,_={params:Object.assign(Object.assign({},u),f)},w=c?[]:gt(t,e,this.ast.animation,r,s,d,m,_,l,h);let x=0;if(w.forEach(t=>{x=Math.max(t.duration+t.delay,x)}),h.length)return Et(e,this._triggerName,i,n,v,d,m,[],[],y,b,x,h);w.forEach(t=>{const i=t.element,n=p(y,i,{});t.preStyleProps.forEach(t=>n[t]=!0);const r=p(b,i,{});t.postStyleProps.forEach(t=>r[t]=!0),i!==e&&g.add(i)});const C=V(g.values());return Et(e,this._triggerName,i,n,v,d,m,w,C,y,b,x)}}class Mt{constructor(t,e){this.styles=t,this.defaultParams=e}buildStyles(t,e){const i={},n=F(this.defaultParams);return Object.keys(t).forEach(e=>{const i=t[e];null!=i&&(n[e]=i)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const r=t;Object.keys(r).forEach(t=>{let s=r[t];s.length>1&&(s=j(s,n,e)),i[t]=s})}}),i}}class Lt{constructor(t,e){this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new Mt(t.style,t.options&&t.options.params||{})}),It(this.states,"true","1"),It(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new Tt(t,e,this.states))}),this.fallbackTransition=new Tt(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(t,e)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,i,n){return this.transitionFactories.find(r=>r.match(t,e,i,n))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}}function It(t,e,i){t.hasOwnProperty(e)?t.hasOwnProperty(i)||(t[i]=t[e]):t.hasOwnProperty(i)&&(t[e]=t[i])}const Ot=new pt;class Dt{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}register(t,e){const i=[],n=ot(this._driver,e,i);if(i.length)throw new Error(`Unable to build the animation due to the following errors: ${i.join("\n")}`);this._animations[t]=n}_buildPlayer(t,e,i){const n=t.element,r=c(0,this._normalizer,0,t.keyframes,e,i);return this._driver.animate(n,r,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){const n=[],r=this._animations[t];let o;const a=new Map;if(r?(o=gt(this._driver,e,r,T,M,{},{},i,Ot,n),o.forEach(t=>{const e=p(a,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(n.push("The requested animation doesn't exist or has already been destroyed"),o=[]),n.length)throw new Error(`Unable to create the animation due to the following errors: ${n.join("\n")}`);a.forEach((t,e)=>{Object.keys(t).forEach(i=>{t[i]=this._driver.computeStyle(e,i,s.l3)})});const c=l(o.map(t=>{const e=a.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=c,c.onDestroy(()=>this.destroy(t)),this.players.push(c),c}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error(`Unable to find the timeline player referenced by ${t}`);return e}listen(t,e,i,n){const r=d(e,"","","");return h(this._getPlayer(t),i,r,n),()=>{}}command(t,e,i,n){if("register"==i)return void this.register(t,n[0]);if("create"==i)return void this.create(t,e,n[0]||{});const r=this._getPlayer(t);switch(i){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(n[0]));break;case"destroy":this.destroy(t)}}}const Rt="ng-animate-queued",Nt="ng-animate-disabled",Pt=".ng-animate-disabled",Ft=[],Zt={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Bt={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class Ut{constructor(t,e=""){this.namespaceId=e;const i=t&&t.hasOwnProperty("value");if(this.value=null!=(n=i?t.value:t)?n:null,i){const e=F(t);delete e.value,this.options=e}else this.options={};var n;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const t=this.options.params;Object.keys(e).forEach(i=>{null==t[i]&&(t[i]=e[i])})}}}const qt="void",zt=new Ut(qt);class Ht{constructor(t,e,i){this.id=t,this.hostElement=e,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Jt(e,this._hostClassName)}listen(t,e,i,n){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${i}" because the animation trigger "${e}" doesn't exist!`);if(null==i||0==i.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if("start"!=(r=i)&&"done"!=r)throw new Error(`The provided animation trigger event "${i}" for the animation trigger "${e}" is not supported!`);var r;const s=p(this._elementListeners,t,[]),o={name:e,phase:i,callback:n};s.push(o);const a=p(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(Jt(t,L),Jt(t,"ng-trigger-"+e),a[e]=zt),()=>{this._engine.afterFlush(()=>{const t=s.indexOf(o);t>=0&&s.splice(t,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,i,n=!0){const r=this._getTrigger(e),s=new Gt(this.id,e,t);let o=this._engine.statesByElement.get(t);o||(Jt(t,L),Jt(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,o={}));let a=o[e];const l=new Ut(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),o[e]=l,a||(a=zt),l.value!==qt&&a.value===l.value){if(!function(t,e){const i=Object.keys(t),n=Object.keys(e);if(i.length!=n.length)return!1;for(let r=0;r{z(t,i),q(t,n)})}return}const c=p(this._engine.playersByElement,t,[]);c.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let h=r.matchTransition(a.value,l.value,t,l.params),u=!1;if(!h){if(!n)return;h=r.fallbackTransition,u=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:h,fromState:a,toState:l,player:s,isFallbackTransition:u}),u||(Jt(t,Rt),s.onStart(()=>{Xt(t,Rt)})),s.onDone(()=>{let e=this.players.indexOf(s);e>=0&&this.players.splice(e,1);const i=this._engine.playersByElement.get(t);if(i){let t=i.indexOf(s);t>=0&&i.splice(t,1)}}),this.players.push(s),c.push(s),s}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,i)=>{delete e[t]}),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(e=>e.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const i=this._engine.driver.query(t,I,!0);i.forEach(t=>{if(t.__ng_removed)return;const i=this._engine.fetchNamespacesByElement(t);i.size?i.forEach(i=>i.triggerLeaveAnimation(t,e,!1,!0)):this.clearElementCache(t)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(t=>this.clearElementCache(t)))}triggerLeaveAnimation(t,e,i,n){const r=this._engine.statesByElement.get(t);if(r){const s=[];if(Object.keys(r).forEach(e=>{if(this._triggers[e]){const i=this.trigger(t,e,qt,n);i&&s.push(i)}}),s.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),i&&l(s).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),i=this._engine.statesByElement.get(t);if(e&&i){const n=new Set;e.forEach(e=>{const r=e.name;if(n.has(r))return;n.add(r);const s=this._triggers[r].fallbackTransition,o=i[r]||zt,a=new Ut(qt),l=new Gt(this.id,r,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:r,transition:s,fromState:o,toState:a,player:l,isFallbackTransition:!0})})}}removeNode(t,e){const i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let n=!1;if(i.totalAnimations){const e=i.players.length?i.playersByQueriedElement.get(t):[];if(e&&e.length)n=!0;else{let e=t;for(;e=e.parentNode;)if(i.statesByElement.get(e)){n=!0;break}}}if(this.prepareLeaveAnimationListeners(t),n)i.markElementAsRemoved(this.id,t,!1,e);else{const n=t.__ng_removed;n&&n!==Zt||(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){Jt(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(i=>{const n=i.player;if(n.destroyed)return;const r=i.element,s=this._elementListeners.get(r);s&&s.forEach(e=>{if(e.name==i.triggerName){const n=d(r,i.triggerName,i.fromState.value,i.toState.value);n._data=t,h(i.player,e.phase,n,e.callback)}}),n.markedForDestroy?this._engine.afterFlush(()=>{n.destroy()}):e.push(i)}),this._queue=[],e.sort((t,e)=>{const i=t.transition.ast.depCount,n=e.transition.ast.depCount;return 0==i||0==n?i-n:this._engine.driver.containsElement(t.element,e.element)?1:-1})}destroy(t){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(e=>e.element===t)||e,e}}class Yt{constructor(t,e,i){this.bodyNode=t,this.driver=e,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(t,e)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(e=>{e.queued&&t.push(e)})}),t}createNamespace(t,e){const i=new Ht(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[t]=i}_balanceNamespaceList(t,e){const i=this._namespaceList.length-1;if(i>=0){let n=!1;for(let r=i;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,e)){this._namespaceList.splice(r+1,0,t),n=!0;break}n||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}registerTrigger(t,e,i){let n=this._namespaceLookup[t];n&&n.register(e,i)&&this.totalAnimations++}destroy(t,e){if(!t)return;const i=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[t];const e=this._namespaceList.indexOf(i);e>=0&&this._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,i=this.statesByElement.get(t);if(i){const t=Object.keys(i);for(let n=0;n=0&&this.collectedLeaveElements.splice(t,1)}if(t){const n=this._fetchNamespace(t);n&&n.insertNode(e,i)}n&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Jt(t,Nt)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Xt(t,Nt))}removeNode(t,e,i,n){if(jt(e)){const r=t?this._fetchNamespace(t):null;if(r?r.removeNode(e,n):this.markElementAsRemoved(t,e,!1,n),i){const i=this.namespacesByHostElement.get(e);i&&i.id!==t&&i.removeNode(e,n)}}else this._onRemovalComplete(e,n)}markElementAsRemoved(t,e,i,n){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:n,hasAnimation:i,removedBeforeQueried:!1}}listen(t,e,i,n,r){return jt(e)?this._fetchNamespace(t).listen(e,i,n,r):()=>{}}_buildInstruction(t,e,i,n,r){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,n,t.fromState.options,t.toState.options,e,r)}destroyInnerAnimations(t){let e=this.driver.query(t,I,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,D,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return l(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t.__ng_removed;if(e&&e.setForRemoval){if(t.__ng_removed=Zt,e.namespaceId){this.destroyInnerAnimations(t);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,Pt)&&this.markElementAsDisabled(t,!1),this.driver.query(t,Pt,!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,e)=>this._balanceNamespaceList(t,e)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;it()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?l(e).onDone(()=>{t.forEach(t=>t())}):t.forEach(t=>t())}}reportError(t){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${t.join("\n")}`)}_flushAnimations(t,e){const i=new pt,n=[],r=new Map,o=[],a=new Map,c=new Map,h=new Map,u=new Set;this.disabledNodes.forEach(t=>{u.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let i=0;i{const i=T+y++;g.set(e,i),t.forEach(t=>Jt(t,i))});const b=[],v=new Set,_=new Set;for(let s=0;sv.add(t)):_.add(t))}const w=new Map,x=Wt(f,Array.from(v));x.forEach((t,e)=>{const i=M+y++;w.set(e,i),t.forEach(t=>Jt(t,i))}),t.push(()=>{m.forEach((t,e)=>{const i=g.get(e);t.forEach(t=>Xt(t,i))}),x.forEach((t,e)=>{const i=w.get(e);t.forEach(t=>Xt(t,i))}),b.forEach(t=>{this.processLeaveNode(t)})});const C=[],A=[];for(let s=this._namespaceList.length-1;s>=0;s--)this._namespaceList[s].drainQueuedTransitions(e).forEach(t=>{const e=t.player,r=t.element;if(C.push(e),this.collectedEnterElements.length){const t=r.__ng_removed;if(t&&t.setForMove)return void e.destroy()}const s=!d||!this.driver.containsElement(d,r),l=w.get(r),u=g.get(r),f=this._buildInstruction(t,i,u,l,s);if(f.errors&&f.errors.length)A.push(f);else{if(s)return e.onStart(()=>z(r,f.fromStyles)),e.onDestroy(()=>q(r,f.toStyles)),void n.push(e);if(t.isFallbackTransition)return e.onStart(()=>z(r,f.fromStyles)),e.onDestroy(()=>q(r,f.toStyles)),void n.push(e);f.timelines.forEach(t=>t.stretchStartingKeyframe=!0),i.append(r,f.timelines),o.push({instruction:f,player:e,element:r}),f.queriedElements.forEach(t=>p(a,t,[]).push(e)),f.preStyleProps.forEach((t,e)=>{const i=Object.keys(t);if(i.length){let t=c.get(e);t||c.set(e,t=new Set),i.forEach(e=>t.add(e))}}),f.postStyleProps.forEach((t,e)=>{const i=Object.keys(t);let n=h.get(e);n||h.set(e,n=new Set),i.forEach(t=>n.add(t))})}});if(A.length){const t=[];A.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),C.forEach(t=>t.destroy()),this.reportError(t)}const S=new Map,E=new Map;o.forEach(t=>{const e=t.element;i.has(e)&&(E.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,S))}),n.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{p(S,e,[]).push(t),t.destroy()})});const k=b.filter(t=>te(t,c,h)),L=new Map;Qt(L,this.driver,_,h,s.l3).forEach(t=>{te(t,c,h)&&k.push(t)});const I=new Map;m.forEach((t,e)=>{Qt(I,this.driver,new Set(t),c,s.k1)}),k.forEach(t=>{const e=L.get(t),i=I.get(t);L.set(t,Object.assign(Object.assign({},e),i))});const O=[],R=[],N={};o.forEach(t=>{const{element:e,player:s,instruction:o}=t;if(i.has(e)){if(u.has(e))return s.onDestroy(()=>q(e,o.toStyles)),s.disabled=!0,s.overrideTotalTime(o.totalTime),void n.push(s);let t=N;if(E.size>1){let i=e;const n=[];for(;i=i.parentNode;){const e=E.get(i);if(e){t=e;break}n.push(i)}n.forEach(e=>E.set(e,t))}const i=this._buildAnimation(s.namespaceId,o,S,r,I,L);if(s.setRealPlayer(i),t===N)O.push(s);else{const e=this.playersByElement.get(t);e&&e.length&&(s.parentPlayer=l(e)),n.push(s)}}else z(e,o.fromStyles),s.onDestroy(()=>q(e,o.toStyles)),R.push(s),u.has(e)&&n.push(s)}),R.forEach(t=>{const e=r.get(t.element);if(e&&e.length){const i=l(e);t.setRealPlayer(i)}}),n.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let s=0;s!t.destroyed);n.length?Kt(this,t,n):this.processLeaveNode(t)}return b.length=0,O.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),O}elementContainsData(t,e){let i=!1;const n=e.__ng_removed;return n&&n.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(t).elementContainsData(e)||i}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,i,n,r){let s=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(s=e)}else{const e=this.playersByElement.get(t);if(e){const t=!r||r==qt;e.forEach(e=>{e.queued||(t||e.triggerName==n)&&s.push(e)})}}return(i||n)&&(s=s.filter(t=>!(i&&i!=t.namespaceId||n&&n!=t.triggerName))),s}_beforeAnimationBuild(t,e,i){const n=e.element,r=e.isRemovalTransition?void 0:t,s=e.isRemovalTransition?void 0:e.triggerName;for(const o of e.timelines){const t=o.element,a=t!==n,l=p(i,t,[]);this._getPreviousPlayers(t,a,r,s,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),l.push(t)})}z(n,e.fromStyles)}_buildAnimation(t,e,i,n,r,o){const a=e.triggerName,h=e.element,u=[],d=new Set,f=new Set,m=e.timelines.map(e=>{const l=e.element;d.add(l);const p=l.__ng_removed;if(p&&p.removedBeforeQueried)return new s.ZN(e.duration,e.delay);const m=l!==h,g=function(t){const e=[];return $t(t,e),e}((i.get(l)||Ft).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===l),y=r.get(l),b=o.get(l),v=c(0,this._normalizer,0,e.keyframes,y,b),_=this._buildPlayer(e,v,g);if(e.subTimeline&&n&&f.add(l),m){const e=new Gt(t,a,l);e.setRealPlayer(_),u.push(e)}return _});u.forEach(t=>{p(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,i){let n;if(t instanceof Map){if(n=t.get(e),n){if(n.length){const t=n.indexOf(i);n.splice(t,1)}0==n.length&&t.delete(e)}}else if(n=t[e],n){if(n.length){const t=n.indexOf(i);n.splice(t,1)}0==n.length&&delete t[e]}return n}(this.playersByQueriedElement,t.element,t))}),d.forEach(t=>Jt(t,O));const g=l(m);return g.onDestroy(()=>{d.forEach(t=>Xt(t,O)),q(h,e.toStyles)}),f.forEach(t=>{p(n,t,[]).push(g)}),g}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new s.ZN(t.duration,t.delay)}}class Gt{constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,this._player=new s.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(i=>h(t,e,void 0,i))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){p(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}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(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function jt(t){return t&&1===t.nodeType}function Vt(t,e){const i=t.style.display;return t.style.display=null!=e?e:"none",i}function Qt(t,e,i,n,r){const s=[];i.forEach(t=>s.push(Vt(t)));const o=[];n.forEach((i,n)=>{const s={};i.forEach(t=>{const i=s[t]=e.computeStyle(n,t,r);i&&0!=i.length||(n.__ng_removed=Bt,o.push(n))}),t.set(n,s)});let a=0;return i.forEach(t=>Vt(t,s[a++])),o}function Wt(t,e){const i=new Map;if(t.forEach(t=>i.set(t,[])),0==e.length)return i;const n=new Set(e),r=new Map;function s(t){if(!t)return 1;let e=r.get(t);if(e)return e;const o=t.parentNode;return e=i.has(o)?o:n.has(o)?1:s(o),r.set(t,e),e}return e.forEach(t=>{const e=s(t);1!==e&&i.get(e).push(t)}),i}function Jt(t,e){if(t.classList)t.classList.add(e);else{let i=t.$$classes;i||(i=t.$$classes={}),i[e]=!0}}function Xt(t,e){if(t.classList)t.classList.remove(e);else{let i=t.$$classes;i&&delete i[e]}}function Kt(t,e,i){l(i).onDone(()=>t.processLeaveNode(e))}function $t(t,e){for(let i=0;ir.add(t)):e.set(t,n),i.delete(t),!0}class ee{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new Yt(t,e,i),this._timelineEngine=new Dt(t,e,i),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,i,n,r){const s=t+"-"+n;let o=this._triggerCache[s];if(!o){const t=[],e=ot(this._driver,r,t);if(t.length)throw new Error(`The animation trigger "${n}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);o=function(t,e){return new Lt(t,e)}(n,e),this._triggerCache[s]=o}this._transitionEngine.registerTrigger(e,n,o)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,i,n){this._transitionEngine.insertNode(t,e,i,n)}onRemove(t,e,i,n){this._transitionEngine.removeNode(t,e,n||!1,i)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,i,n){if("@"==i.charAt(0)){const[t,r]=f(i);this._timelineEngine.command(t,e,r,n)}else this._transitionEngine.trigger(t,e,i,n)}listen(t,e,i,n,r){if("@"==i.charAt(0)){const[t,n]=f(i);return this._timelineEngine.listen(t,e,n,r)}return this._transitionEngine.listen(t,e,i,n,r)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function ie(t,e){let i=null,n=null;return Array.isArray(e)&&e.length?(i=re(e[0]),e.length>1&&(n=re(e[e.length-1]))):e&&(i=re(e)),i||n?new ne(t,i,n):null}let ne=(()=>{class t{constructor(e,i,n){this._element=e,this._startStyles=i,this._endStyles=n,this._state=0;let r=t.initialStylesByElement.get(e);r||t.initialStylesByElement.set(e,r={}),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&q(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(q(this._element,this._initialStyles),this._endStyles&&(q(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(z(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(z(this._element,this._endStyles),this._endStyles=null),q(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function re(t){let e=null;const i=Object.keys(t);for(let n=0;nthis._handleCallback(t)}apply(){!function(t,e){const i=fe(t,"").trim();i.length&&(function(t,e){let i=0;for(let n=0;n=this._delay&&i>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),de(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const i=fe(t,"").split(","),n=ue(i,e);n>=0&&(i.splice(n,1),pe(t,"",i.join(",")))}(this._element,this._name))}}function ce(t,e,i){pe(t,"PlayState",i,he(t,e))}function he(t,e){const i=fe(t,"");return i.indexOf(",")>0?ue(i.split(","),e):ue([i],e)}function ue(t,e){for(let i=0;i=0)return i;return-1}function de(t,e,i){i?t.removeEventListener(ae,e):t.addEventListener(ae,e)}function pe(t,e,i,n){const r=oe+e;if(null!=n){const e=t.style[r];if(e.length){const t=e.split(",");t[n]=i,i=t.join(",")}}t.style[r]=i}function fe(t,e){return t.style[oe+e]||""}class me{constructor(t,e,i,n,r,s,o,a){this.element=t,this.keyframes=e,this.animationName=i,this._duration=n,this._delay=r,this._finalStyles=o,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=s||"linear",this.totalTime=n+r,this._buildStyler()}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(t){this._styler.setPosition(t)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new le(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(i=>{"offset"!=i&&(t[i]=e?this._finalStyles[i]:$(this.element,i))})}this.currentSnapshot=t}}class ge extends s.ZN{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=S(e)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(t=>{this._startingStyles[t]=this.element.style[t]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(t=>this.element.style.setProperty(t,this._styles[t])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(t=>{const e=this._startingStyles[t];e?this.element.style.setProperty(t,e):this.element.style.removeProperty(t)}),this._startingStyles=null,super.destroy())}}class ye{constructor(){this._count=0}validateStyleProperty(t){return w(t)}matchesElement(t,e){return x(t,e)}containsElement(t,e){return C(t,e)}query(t,e,i){return A(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,i){i=i.map(t=>S(t));let n=`@keyframes ${e} {\n`,r="";i.forEach(t=>{r=" ";const e=parseFloat(t.offset);n+=`${r}${100*e}% {\n`,r+=" ",Object.keys(t).forEach(e=>{const i=t[e];switch(e){case"offset":return;case"easing":return void(i&&(n+=`${r}animation-timing-function: ${i};\n`));default:return void(n+=`${r}${e}: ${i};\n`)}}),n+=`${r}}\n`}),n+="}\n";const s=document.createElement("style");return s.textContent=n,s}animate(t,e,i,n,r,s=[],o){const a=s.filter(t=>t instanceof me),l={};J(i,n)&&a.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const c=function(t){let e={};return t&&(Array.isArray(t)?t:[t]).forEach(t=>{Object.keys(t).forEach(i=>{"offset"!=i&&"easing"!=i&&(e[i]=t[i])})}),e}(e=X(t,e,l));if(0==i)return new ge(t,c);const h="gen_css_kf_"+this._count++,u=this.buildKeyframeElement(t,h,e);(function(t){var e;const i=null===(e=t.getRootNode)||void 0===e?void 0:e.call(t);return"undefined"!=typeof ShadowRoot&&i instanceof ShadowRoot?i:document.head})(t).appendChild(u);const d=ie(t,e),p=new me(t,e,h,i,n,r,c,d);return p.onDestroy(()=>{var t;(t=u).parentNode.removeChild(t)}),p}}class be{constructor(t,e,i,n){this.element=t,this.keyframes=e,this.options=i,this._specialStyles=n,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,i){return t.animate(e,i)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),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}_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(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(e=>{"offset"!=e&&(t[e]=this._finished?this._finalKeyframe[e]:$(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class ve{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(_e().toString()),this._cssKeyframesDriver=new ye}validateStyleProperty(t){return w(t)}matchesElement(t,e){return x(t,e)}containsElement(t,e){return C(t,e)}query(t,e,i){return A(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,i,n,r,s=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,i,n,r,s);const a={duration:i,delay:n,fill:0==n?"both":"forwards"};r&&(a.easing=r);const l={},c=s.filter(t=>t instanceof be);J(i,n)&&c.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const h=ie(t,e=X(t,e=e.map(t=>Z(t,!1)),l));return new be(t,e,a,h)}}function _e(){return o()&&Element.prototype.animate||{}}var we=i(1511);let xe=(()=>{class t extends s._j{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:n.ifc.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const i=Array.isArray(t)?(0,s.vP)(t):t;return Se(this._renderer,null,e,"register",[i]),new Ce(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(n.FYo),n.LFG(we.K0))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})();class Ce extends s.LC{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new Ae(this._id,t,e||{},this._renderer)}}class Ae{constructor(t,e,i,n){this.id=t,this.element=e,this._renderer=n,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return Se(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}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(t){this._command("setPosition",t)}getPosition(){var t,e;return null!==(e=null===(t=this._renderer.engine.players[+this.id])||void 0===t?void 0:t.getPosition())&&void 0!==e?e:0}}function Se(t,e,i,n,r){return t.setProperty(e,`@@${i}:${n}`,r)}const Ee="@",ke="@.disabled";let Te=(()=>{class t{constructor(t,e,i){this.delegate=t,this.engine=e,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=(t,e)=>{e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}createRenderer(t,e){const i=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){let t=this._rendererCache.get(i);return t||(t=new Me("",i,this.engine),this._rendererCache.set(i,t)),t}const n=e.id,r=e.id+"-"+this._currentId;this._currentId++,this.engine.register(r,t);const s=e=>{Array.isArray(e)?e.forEach(s):this.engine.registerTrigger(n,r,t,e.name,e)};return e.data.animation.forEach(s),new Le(this,r,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,i){t>=0&&te(i)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(t=>{const[e,i]=t;e(i)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,i]))}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()}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(n.FYo),n.LFG(ee),n.LFG(n.R0b))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})();class Me{constructor(t,e,i){this.namespaceId=t,this.delegate=e,this.engine=i,this.destroyNode=this.delegate.destroyNode?t=>e.destroyNode(t):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,i,n=!0){this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,n)}removeChild(t,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,i,n){this.delegate.setAttribute(t,e,i,n)}removeAttribute(t,e,i){this.delegate.removeAttribute(t,e,i)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,i,n){this.delegate.setStyle(t,e,i,n)}removeStyle(t,e,i){this.delegate.removeStyle(t,e,i)}setProperty(t,e,i){e.charAt(0)==Ee&&e==ke?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,i){return this.delegate.listen(t,e,i)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class Le extends Me{constructor(t,e,i,n){super(e,i,n),this.factory=t,this.namespaceId=e}setProperty(t,e,i){e.charAt(0)==Ee?"."==e.charAt(1)&&e==ke?this.disableAnimations(t,i=void 0===i||!!i):this.engine.process(this.namespaceId,t,e.substr(1),i):this.delegate.setProperty(t,e,i)}listen(t,e,i){if(e.charAt(0)==Ee){const n=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let r=e.substr(1),s="";return r.charAt(0)!=Ee&&([r,s]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(r)),this.engine.listen(this.namespaceId,n,r,s,t=>{this.factory.scheduleListenerCallback(t._data||-1,i,t)})}return this.delegate.listen(t,e,i)}}let Ie=(()=>{class t extends ee{constructor(t,e,i){super(t.body,e,i)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(we.K0),n.LFG(k),n.LFG(Ct))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})();const Oe=new n.OlP("AnimationModuleType"),De=[{provide:s._j,useClass:xe},{provide:Ct,useFactory:function(){return new At}},{provide:ee,useClass:Ie},{provide:n.FYo,useFactory:function(t,e,i){return new Te(t,e,i)},deps:[r.se,ee,n.R0b]}],Re=[{provide:k,useFactory:function(){return"function"==typeof _e()?new ve:new ye}},{provide:Oe,useValue:"BrowserAnimations"},...De],Ne=[{provide:k,useClass:E},{provide:Oe,useValue:"NoopAnimations"},...De];let Pe=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?Ne:Re}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({providers:Re,imports:[r.b2]}),t})()},269:(t,e,i)=>{"use strict";i.d(e,{b2:()=>Y,H7:()=>B,t6:()=>D,q6:()=>z,se:()=>C});var n=i(1511),r=i(1572);class s extends n.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class o extends s{static makeCurrent(){(0,n.HT)(new o)}onAndCancel(t,e,i){return t.addEventListener(e,i,!1),()=>{t.removeEventListener(e,i,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=(l=l||document.querySelector("base"),l?l.getAttribute("href"):null);return null==e?null:function(t){a=a||document.createElement("a"),a.setAttribute("href",t);const e=a.pathname;return"/"===e.charAt(0)?e:`/${e}`}(e)}resetBaseElement(){l=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return(0,n.Mx)(document.cookie,t)}}let a,l=null;const c=new r.OlP("TRANSITION_ID"),h=[{provide:r.ip1,useFactory:function(t,e,i){return()=>{i.get(r.CZH).donePromise.then(()=>{const i=(0,n.q)();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>i.remove(t))})}},deps:[c,n.K0,r.zs3],multi:!0}];class u{static init(){(0,r.VLi)(new u)}addToWindow(t){r.dqk.getAngularTestability=(e,i=!0)=>{const n=t.findTestabilityInTree(e,i);if(null==n)throw new Error("Could not find testability for element.");return n},r.dqk.getAllAngularTestabilities=()=>t.getAllTestabilities(),r.dqk.getAllAngularRootElements=()=>t.getAllRootElements(),r.dqk.frameworkStabilizers||(r.dqk.frameworkStabilizers=[]),r.dqk.frameworkStabilizers.push(t=>{const e=r.dqk.getAllAngularTestabilities();let i=e.length,n=!1;const s=function(e){n=n||e,i--,0==i&&t(n)};e.forEach(function(t){t.whenStable(s)})})}findTestabilityInTree(t,e,i){if(null==e)return null;const r=t.getTestability(e);return null!=r?r:i?(0,n.q)().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}let d=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})();const p=new r.OlP("EventManagerPlugins");let f=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,i){return this._findPluginFor(e).addEventListener(t,e,i)}addGlobalEventListener(t,e,i){return this._findPluginFor(e).addGlobalEventListener(t,e,i)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const i=this._plugins;for(let n=0;n{class t{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})(),y=(()=>{class t extends g{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,e,i){t.forEach(t=>{const n=this._doc.createElement("style");n.textContent=t,i.push(e.appendChild(n))})}addHost(t){const e=[];this._addStylesToHost(this._stylesSet,t,e),this._hostNodes.set(t,e)}removeHost(t){const e=this._hostNodes.get(t);e&&e.forEach(b),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((e,i)=>{this._addStylesToHost(t,i,e)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(b))}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(n.K0))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})();function b(t){(0,n.q)().remove(t)}const v={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/"},_=/%COMP%/g;function w(t,e,i){for(let n=0;n{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let C=(()=>{class t{constructor(t,e,i){this.eventManager=t,this.sharedStylesHost=e,this.appId=i,this.rendererByCompId=new Map,this.defaultRenderer=new A(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case r.ifc.Emulated:{let i=this.rendererByCompId.get(e.id);return i||(i=new S(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,i)),i.applyToHost(t),i}case 1:case r.ifc.ShadowDom:return new E(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=w(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(f),r.LFG(y),r.LFG(r.AFp))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})();class A{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(v[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,i){t&&t.insertBefore(e,i)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let i="string"==typeof t?document.querySelector(t):t;if(!i)throw new Error(`The selector "${t}" did not match any elements`);return e||(i.textContent=""),i}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,i,n){if(n){e=n+":"+e;const r=v[n];r?t.setAttributeNS(r,e,i):t.setAttribute(e,i)}else t.setAttribute(e,i)}removeAttribute(t,e,i){if(i){const n=v[i];n?t.removeAttributeNS(n,e):t.removeAttribute(`${i}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,i,n){n&(r.JOm.DashCase|r.JOm.Important)?t.style.setProperty(e,i,n&r.JOm.Important?"important":""):t.style[e]=i}removeStyle(t,e,i){i&r.JOm.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,i){t[e]=i}setValue(t,e){t.nodeValue=e}listen(t,e,i){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,x(i)):this.eventManager.addEventListener(t,e,x(i))}}class S extends A{constructor(t,e,i,n){super(t),this.component=i;const r=w(n+"-"+i.id,i.styles,[]);e.addStyles(r),this.contentAttr="_ngcontent-%COMP%".replace(_,n+"-"+i.id),this.hostAttr="_nghost-%COMP%".replace(_,n+"-"+i.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const i=super.createElement(t,e);return super.setAttribute(i,this.contentAttr,""),i}}class E extends A{constructor(t,e,i,n){super(t),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const r=w(n.id,n.styles,[]);for(let s=0;s{class t extends m{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,i){return t.addEventListener(e,i,!1),()=>this.removeEventListener(t,e,i)}removeEventListener(t,e,i){return t.removeEventListener(e,i)}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(n.K0))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})();const T={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0,doubletap:!0},M=new r.OlP("HammerGestureConfig"),L=new r.OlP("HammerLoader");let I=(()=>{class t{constructor(){this.events=[],this.overrides={}}buildHammer(t){const e=new Hammer(t,this.options);e.get("pinch").set({enable:!0}),e.get("rotate").set({enable:!0});for(const i in this.overrides)e.get(i).set(this.overrides[i]);return e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})();const O=[{provide:p,useClass:(()=>{class t extends m{constructor(t,e,i,n){super(t),this._config=e,this.console=i,this.loader=n,this._loaderPromise=null}supports(t){return!(!T.hasOwnProperty(t.toLowerCase())&&!this.isCustomEvent(t)||!window.Hammer&&!this.loader)}addEventListener(t,e,i){const n=this.manager.getZone();if(e=e.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||this.loader();let n=!1,r=()=>{n=!0};return this._loaderPromise.then(()=>{window.Hammer?n||(r=this.addEventListener(t,e,i)):r=()=>{}}).catch(()=>{r=()=>{}}),()=>{r()}}return n.runOutsideAngular(()=>{const r=this._config.buildHammer(t),s=function(t){n.runGuarded(function(){i(t)})};return r.on(e,s),()=>{r.off(e,s),"function"==typeof r.destroy&&r.destroy()}})}isCustomEvent(t){return this._config.events.indexOf(t)>-1}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(n.K0),r.LFG(M),r.LFG(r.c2e),r.LFG(L,8))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})(),multi:!0,deps:[n.K0,M,r.c2e,[new r.FiY,L]]},{provide:M,useClass:I,deps:[]}];let D=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:O}),t})();const R=["alt","control","meta","shift"],N={"\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"},P={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},F={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let Z=(()=>{class t extends m{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,r){const s=t.parseEventName(i),o=t.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,n.q)().onAndCancel(e,s.domEventName,o))}static parseEventName(e){const i=e.toLowerCase().split("."),n=i.shift();if(0===i.length||"keydown"!==n&&"keyup"!==n)return null;const r=t._normalizeKey(i.pop());let s="";if(R.forEach(t=>{const e=i.indexOf(t);e>-1&&(i.splice(e,1),s+=t+".")}),s+=r,0!=i.length||0===r.length)return null;const o={};return o.domEventName=n,o.fullKey=s,o}static getEventFullKey(t){let e="",i=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&P.hasOwnProperty(e)&&(e=P[e]))}return N[e]||e}(t);return i=i.toLowerCase()," "===i?i="space":"."===i&&(i="dot"),R.forEach(n=>{n!=i&&(0,F[n])(t)&&(e+=n+".")}),e+=i,e}static eventCallback(e,i,n){return r=>{t.getEventFullKey(r)===e&&n.runGuarded(()=>i(r))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(n.K0))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})(),B=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,r.Yz7)({factory:function(){return(0,r.LFG)(q)},token:t,providedIn:"root"}),t})();function U(t){return new q(t.get(n.K0))}let q=(()=>{class t extends B{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case r.q3G.NONE:return e;case r.q3G.HTML:return(0,r.qzn)(e,"HTML")?(0,r.z3N)(e):(0,r.EiD)(this._doc,String(e)).toString();case r.q3G.STYLE:return(0,r.qzn)(e,"Style")?(0,r.z3N)(e):e;case r.q3G.SCRIPT:if((0,r.qzn)(e,"Script"))return(0,r.z3N)(e);throw new Error("unsafe value used in a script context");case r.q3G.URL:return(0,r.yhl)(e),(0,r.qzn)(e,"URL")?(0,r.z3N)(e):(0,r.mCW)(String(e));case r.q3G.RESOURCE_URL:if((0,r.qzn)(e,"ResourceURL"))return(0,r.z3N)(e);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return(0,r.JVY)(t)}bypassSecurityTrustStyle(t){return(0,r.L6k)(t)}bypassSecurityTrustScript(t){return(0,r.eBb)(t)}bypassSecurityTrustUrl(t){return(0,r.LAX)(t)}bypassSecurityTrustResourceUrl(t){return(0,r.pB0)(t)}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(n.K0))},t.\u0275prov=(0,r.Yz7)({factory:function(){return U((0,r.LFG)(r.gxx))},token:t,providedIn:"root"}),t})();const z=(0,r.eFA)(r._c5,"browser",[{provide:r.Lbi,useValue:n.bD},{provide:r.g9A,useValue:function(){o.makeCurrent(),u.init()},multi:!0},{provide:n.K0,useFactory:function(){return(0,r.RDi)(document),document},deps:[]}]),H=[[],{provide:r.zSh,useValue:"root"},{provide:r.qLn,useFactory:function(){return new r.qLn},deps:[]},{provide:p,useClass:k,multi:!0,deps:[n.K0,r.R0b,r.Lbi]},{provide:p,useClass:Z,multi:!0,deps:[n.K0]},[],{provide:C,useClass:C,deps:[f,y,r.AFp]},{provide:r.FYo,useExisting:C},{provide:g,useExisting:y},{provide:y,useClass:y,deps:[n.K0]},{provide:r.dDg,useClass:r.dDg,deps:[r.R0b]},{provide:f,useClass:f,deps:[p,r.R0b]},{provide:n.JF,useClass:d,deps:[]},[]];let Y=(()=>{class t{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:r.AFp,useValue:e.appId},{provide:c,useExisting:r.AFp},h]}}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(t,12))},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:H,imports:[n.ez,r.hGG]}),t})();"undefined"!=typeof window&&window},6853:(t,e,i)=>{"use strict";i.d(e,{gz:()=>Gt,gk:()=>q,m2:()=>U,Q3:()=>z,OD:()=>B,Av:()=>V,F0:()=>pi,rH:()=>fi,Od:()=>yi,yS:()=>mi,Bz:()=>Ti,lC:()=>bi});var n=i(1511),r=i(1572),s=i(9162),o=i(2391),a=i(6042),l=i(3386),c=i(4659);function h(){return(0,l.e)(function(t,e){var i=null;t._refCount++;var n=new c.Q(e,void 0,void 0,void 0,function(){if(!t||t._refCount<=0||0<--t._refCount)i=null;else{var n=t._connection,r=i;i=null,!n||r&&n!==r||n.unsubscribe(),e.unsubscribe()}});t.subscribe(n),n.closed||(i=t.connect())})}var u=function(t){function e(e,i){var n=t.call(this)||this;return n.source=e,n.subjectFactory=i,n._subject=null,n._refCount=0,n._connection=null,(0,l.A)(e)&&(n.lift=e.lift),n}return(0,s.ZT)(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype._teardown=function(){this._refCount=0;var t=this._connection;this._subject=this._connection=null,null==t||t.unsubscribe()},e.prototype.connect=function(){var t=this,e=this._connection;if(!e){e=this._connection=new a.w0;var i=this.getSubject();e.add(this.source.subscribe(new c.Q(i,void 0,function(){t._teardown(),i.complete()},function(e){t._teardown(),i.error(e)},function(){return t._teardown()}))),e.closed&&(this._connection=null,e=a.w0.EMPTY)}return e},e.prototype.refCount=function(){return h()(this)},e}(o.y),d=i(5630),p=i(2041),f=i(7425),m=i(5868),g=i(7325),y=i(5613),b=i(970),v=i(4951),_=i(9666),w=i(8868);function x(t){return t<=0?function(){return v.E}:(0,l.e)(function(e,i){var n=[];e.subscribe(new c.Q(i,function(e){n.push(e),tt.length)return null;if("full"===i.pathMatch&&(e.hasChildren()||n.lengthn[e]===t)}return t===e}function lt(t){return Array.prototype.concat.apply([],t)}function ct(t){return t.length>0?t[t.length-1]:null}function ht(t,e){for(const i in t)t.hasOwnProperty(i)&&e(t[i],i)}function ut(t){return(0,r.CqO)(t)?t:(0,r.QGY)(t)?(0,d.Dp)(Promise.resolve(t)):(0,p.of)(t)}const dt={exact:function t(e,i,n){if(!wt(e.segments,i.segments))return!1;if(!yt(e.segments,i.segments,n))return!1;if(e.numberOfChildren!==i.numberOfChildren)return!1;for(const r in i.children){if(!e.children[r])return!1;if(!t(e.children[r],i.children[r],n))return!1}return!0},subset:mt},pt={exact:function(t,e){return ot(t,e)},subset:function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(i=>at(t[i],e[i]))},ignored:()=>!0};function ft(t,e,i){return dt[i.paths](t.root,e.root,i.matrixParams)&&pt[i.queryParams](t.queryParams,e.queryParams)&&!("exact"===i.fragment&&t.fragment!==e.fragment)}function mt(t,e,i){return gt(t,e,e.segments,i)}function gt(t,e,i,n){if(t.segments.length>i.length){const r=t.segments.slice(0,i.length);return!!wt(r,i)&&!e.hasChildren()&&!!yt(r,i,n)}if(t.segments.length===i.length){if(!wt(t.segments,i))return!1;if(!yt(t.segments,i,n))return!1;for(const i in e.children){if(!t.children[i])return!1;if(!mt(t.children[i],e.children[i],n))return!1}return!0}{const r=i.slice(0,t.segments.length),s=i.slice(t.segments.length);return!!wt(t.segments,r)&&!!yt(t.segments,r,n)&&!!t.children.primary&>(t.children.primary,e,s,n)}}function yt(t,e,i){return e.every((e,n)=>pt[i](t[n].parameters,e.parameters))}class bt{constructor(t,e,i){this.root=t,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=nt(this.queryParams)),this._queryParamMap}toString(){return At.serialize(this)}}class vt{constructor(t,e){this.segments=t,this.children=e,this.parent=null,ht(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return St(this)}}class _t{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=nt(this.parameters)),this._parameterMap}toString(){return Ot(this)}}function wt(t,e){return t.length===e.length&&t.every((t,i)=>t.path===e[i].path)}class xt{}class Ct{parse(t){const e=new Ft(t);return new bt(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){var e;return`/${Et(t.root,!0)}${function(t){const e=Object.keys(t).map(e=>{const i=t[e];return Array.isArray(i)?i.map(t=>`${Tt(e)}=${Tt(t)}`).join("&"):`${Tt(e)}=${Tt(i)}`}).filter(t=>!!t);return e.length?`?${e.join("&")}`:""}(t.queryParams)}${"string"==typeof t.fragment?`#${e=t.fragment,encodeURI(e)}`:""}`}}const At=new Ct;function St(t){return t.segments.map(t=>Ot(t)).join("/")}function Et(t,e){if(!t.hasChildren())return St(t);if(e){const e=t.children.primary?Et(t.children.primary,!1):"",i=[];return ht(t.children,(t,e)=>{e!==et&&i.push(`${e}:${Et(t,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function(t,e){let i=[];return ht(t.children,(t,n)=>{n===et&&(i=i.concat(e(t,n)))}),ht(t.children,(t,n)=>{n!==et&&(i=i.concat(e(t,n)))}),i}(t,(e,i)=>i===et?[Et(t.children.primary,!1)]:[`${i}:${Et(e,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children.primary?`${St(t)}/${e[0]}`:`${St(t)}/(${e.join("//")})`}}function kt(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Tt(t){return kt(t).replace(/%3B/gi,";")}function Mt(t){return kt(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Lt(t){return decodeURIComponent(t)}function It(t){return Lt(t.replace(/\+/g,"%20"))}function Ot(t){return`${Mt(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${Mt(t)}=${Mt(e[t])}`).join("")}`;var e}const Dt=/^[^\/()?;=#]+/;function Rt(t){const e=t.match(Dt);return e?e[0]:""}const Nt=/^[^=?&#]+/,Pt=/^[^?&#]+/;class Ft{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new vt([],{}):new vt([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(i.primary=new vt(t,e)),i}parseSegment(){const t=Rt(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new _t(Lt(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=Rt(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const t=Rt(this.remaining);t&&(i=t,this.capture(i))}t[Lt(e)]=Lt(i)}parseQueryParam(t){const e=function(t){const e=t.match(Nt);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const t=function(t){const e=t.match(Pt);return e?e[0]:""}(this.remaining);t&&(i=t,this.capture(i))}const n=It(e),r=It(i);if(t.hasOwnProperty(n)){let e=t[n];Array.isArray(e)||(e=[e],t[n]=e),e.push(r)}else t[n]=r}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=Rt(this.remaining),n=this.remaining[i.length];if("/"!==n&&")"!==n&&";"!==n)throw new Error(`Cannot parse url '${this.url}'`);let r;i.indexOf(":")>-1?(r=i.substr(0,i.indexOf(":")),this.capture(r),this.capture(":")):t&&(r=et);const s=this.parseChildren();e[r]=1===Object.keys(s).length?s.primary:new vt([],s),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class Zt{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=Bt(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=Bt(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=Ut(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return Ut(t,this._root).map(t=>t.value)}}function Bt(t,e){if(t===e.value)return e;for(const i of e.children){const e=Bt(t,i);if(e)return e}return null}function Ut(t,e){if(t===e.value)return[e];for(const i of e.children){const n=Ut(t,i);if(n.length)return n.unshift(e),n}return[]}class qt{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function zt(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class Ht extends Zt{constructor(t,e){super(t),this.snapshot=e,Wt(this,t)}toString(){return this.snapshot.toString()}}function Yt(t,e){const i=function(t,e){const i=new Vt([],{},{},"",{},et,e,null,t.root,-1,{});return new Qt("",new qt(i,[]))}(t,e),n=new f.X([new _t("",{})]),r=new f.X({}),s=new f.X({}),o=new f.X({}),a=new f.X(""),l=new Gt(n,r,o,a,s,et,e,i.root);return l.snapshot=i.root,new Ht(new qt(l,[]),i)}class Gt{constructor(t,e,i,n,r,s,o,a){this.url=t,this.params=e,this.queryParams=i,this.fragment=n,this.data=r,this.outlet=s,this.component=o,this._futureSnapshot=a}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._paramMap=this.params.pipe((0,E.U)(t=>nt(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,E.U)(t=>nt(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function jt(t,e="emptyOnly"){const i=t.pathFromRoot;let n=0;if("always"!==e)for(n=i.length-1;n>=1;){const t=i[n],e=i[n-1];if(t.routeConfig&&""===t.routeConfig.path)n--;else{if(e.component)break;n--}}return function(t){return t.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(i.slice(n))}class Vt{constructor(t,e,i,n,r,s,o,a,l,c,h){this.url=t,this.params=e,this.queryParams=i,this.fragment=n,this.data=r,this.outlet=s,this.component=o,this.routeConfig=a,this._urlSegment=l,this._lastPathIndex=c,this._resolve=h}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._paramMap=nt(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=nt(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Qt extends Zt{constructor(t,e){super(e),this.url=t,Wt(this,e)}toString(){return Jt(this._root)}}function Wt(t,e){e.value._routerState=t,e.children.forEach(e=>Wt(t,e))}function Jt(t){const e=t.children.length>0?` { ${t.children.map(Jt).join(", ")} } `:"";return`${t.value}${e}`}function Xt(t){if(t.snapshot){const e=t.snapshot,i=t._futureSnapshot;t.snapshot=i,ot(e.queryParams,i.queryParams)||t.queryParams.next(i.queryParams),e.fragment!==i.fragment&&t.fragment.next(i.fragment),ot(e.params,i.params)||t.params.next(i.params),function(t,e){if(t.length!==e.length)return!1;for(let i=0;iot(t.parameters,n[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||Kt(t.parent,e.parent))}function $t(t,e,i){if(i&&t.shouldReuseRoute(e.value,i.value.snapshot)){const n=i.value;n._futureSnapshot=e.value;const r=function(t,e,i){return e.children.map(e=>{for(const n of i.children)if(t.shouldReuseRoute(e.value,n.value.snapshot))return $t(t,e,n);return $t(t,e)})}(t,e,i);return new qt(n,r)}{if(t.shouldAttach(e.value)){const i=t.retrieve(e.value);if(null!==i){const t=i.route;return te(e,t),t}}const i=new Gt(new f.X((n=e.value).url),new f.X(n.params),new f.X(n.queryParams),new f.X(n.fragment),new f.X(n.data),n.outlet,n.component,n),r=e.children.map(e=>$t(t,e));return new qt(i,r)}var n}function te(t,e){if(t.value.routeConfig!==e.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==e.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");e.value._futureSnapshot=t.value;for(let i=0;i{s[e]=Array.isArray(t)?t.map(t=>`${t}`):`${t}`}),new bt(i.root===t?e:re(i.root,t,e),s,r)}function re(t,e,i){const n={};return ht(t.children,(t,r)=>{n[r]=t===e?i:re(t,e,i)}),new vt(t.segments,n)}class se{constructor(t,e,i){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=i,t&&i.length>0&&ee(i[0]))throw new Error("Root segment cannot have matrix parameters");const n=i.find(ie);if(n&&n!==ct(i))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class oe{constructor(t,e,i){this.segmentGroup=t,this.processChildren=e,this.index=i}}function ae(t,e,i){if(t||(t=new vt([],{})),0===t.segments.length&&t.hasChildren())return le(t,e,i);const n=function(t,e,i){let n=0,r=e;const s={match:!1,pathIndex:0,commandIndex:0};for(;r=i.length)return s;const e=t.segments[r],o=i[n];if(ie(o))break;const a=`${o}`,l=n0&&void 0===a)break;if(a&&l&&"object"==typeof l&&void 0===l.outlets){if(!de(a,l,e))return s;n+=2}else{if(!de(a,{},e))return s;n++}r++}return{match:!0,pathIndex:r,commandIndex:n}}(t,e,i),r=i.slice(n.commandIndex);if(n.match&&n.pathIndex{"string"==typeof i&&(i=[i]),null!==i&&(r[n]=ae(t.children[n],e,i))}),ht(t.children,(t,e)=>{void 0===n[e]&&(r[e]=t)}),new vt(t.segments,r)}}function ce(t,e,i){const n=t.segments.slice(0,e);let r=0;for(;r{"string"==typeof t&&(t=[t]),null!==t&&(e[i]=ce(new vt([],{}),0,t))}),e}function ue(t){const e={};return ht(t,(t,i)=>e[i]=`${t}`),e}function de(t,e,i){return t==i.path&&ot(e,i.parameters)}class pe{constructor(t,e,i,n){this.routeReuseStrategy=t,this.futureState=e,this.currState=i,this.forwardEvent=n}activate(t){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,t),Xt(this.futureState.root),this.activateChildRoutes(e,i,t)}deactivateChildRoutes(t,e,i){const n=zt(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,n[e],i),delete n[e]}),ht(n,(t,e)=>{this.deactivateRouteAndItsChildren(t,i)})}deactivateRoutes(t,e,i){const n=t.value,r=e?e.value:null;if(n===r)if(n.component){const r=i.getContext(n.outlet);r&&this.deactivateChildRoutes(t,e,r.children)}else this.deactivateChildRoutes(t,e,i);else r&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const i=e.getContext(t.value.outlet);if(i&&i.outlet){const e=i.outlet.detach(),n=i.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:n})}}deactivateRouteAndOutlet(t,e){const i=e.getContext(t.value.outlet),n=i&&t.value.component?i.children:e,r=zt(t);for(const s of Object.keys(r))this.deactivateRouteAndItsChildren(r[s],n);i&&i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated(),i.attachRef=null,i.resolver=null,i.route=null)}activateChildRoutes(t,e,i){const n=zt(e);t.children.forEach(t=>{this.activateRoutes(t,n[t.value.outlet],i),this.forwardEvent(new $(t.value.snapshot))}),t.children.length&&this.forwardEvent(new X(t.value.snapshot))}activateRoutes(t,e,i){const n=t.value,r=e?e.value:null;if(Xt(n),n===r)if(n.component){const r=i.getOrCreateContext(n.outlet);this.activateChildRoutes(t,e,r.children)}else this.activateChildRoutes(t,e,i);else if(n.component){const e=i.getOrCreateContext(n.outlet);if(this.routeReuseStrategy.shouldAttach(n.snapshot)){const t=this.routeReuseStrategy.retrieve(n.snapshot);this.routeReuseStrategy.store(n.snapshot,null),e.children.onOutletReAttached(t.contexts),e.attachRef=t.componentRef,e.route=t.route.value,e.outlet&&e.outlet.attach(t.componentRef,t.route.value),fe(t.route)}else{const i=function(t){for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(n.snapshot),r=i?i.module.componentFactoryResolver:null;e.attachRef=null,e.route=n,e.resolver=r,e.outlet&&e.outlet.activateWith(n,r),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,i)}}function fe(t){Xt(t.value),t.children.forEach(fe)}class me{constructor(t,e){this.routes=t,this.module=e}}function ge(t){return"function"==typeof t}function ye(t){return t instanceof bt}const be=Symbol("INITIAL_VALUE");function ve(){return(0,k.w)(t=>(0,m.a)(t.map(t=>t.pipe((0,T.q)(1),(0,M.O)(be)))).pipe((0,L.R)((t,e)=>{let i=!1;return e.reduce((t,n,r)=>{if(t!==be)return t;if(n===be&&(i=!0),!i){if(!1===n)return n;if(r===e.length-1||ye(n))return n}return t},t)},be),(0,w.h)(t=>t!==be),(0,E.U)(t=>ye(t)?t:!0===t),(0,T.q)(1)))}let _e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=r.Xpm({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&r._UZ(0,"router-outlet")},directives:function(){return[bi]},encapsulation:2}),t})();function we(t,e=""){for(let i=0;iSe(t)===e);return i.push(...t.filter(t=>Se(t)!==e)),i}const ke={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function Te(t,e,i){var n;if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||i.length>0)?Object.assign({},ke):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const r=(e.matcher||st)(i,t,e);if(!r)return Object.assign({},ke);const s={};ht(r.posParams,(t,e)=>{s[e]=t.path});const o=r.consumed.length>0?Object.assign(Object.assign({},s),r.consumed[r.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:o,positionalParamSegments:null!==(n=r.posParams)&&void 0!==n?n:{}}}function Me(t,e,i,n,r="corrected"){if(i.length>0&&function(t,e,i){return i.some(i=>Le(t,e,i)&&Se(i)!==et)}(t,i,n)){const r=new vt(e,function(t,e,i,n){const r={};r.primary=n,n._sourceSegment=t,n._segmentIndexShift=e.length;for(const s of i)if(""===s.path&&Se(s)!==et){const i=new vt([],{});i._sourceSegment=t,i._segmentIndexShift=e.length,r[Se(s)]=i}return r}(t,e,n,new vt(i,t.children)));return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:[]}}if(0===i.length&&function(t,e,i){return i.some(i=>Le(t,e,i))}(t,i,n)){const s=new vt(t.segments,function(t,e,i,n,r,s){const o={};for(const a of n)if(Le(t,i,a)&&!r[Se(a)]){const i=new vt([],{});i._sourceSegment=t,i._segmentIndexShift="legacy"===s?t.segments.length:e.length,o[Se(a)]=i}return Object.assign(Object.assign({},r),o)}(t,e,i,n,t.children,r));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:i}}const s=new vt(t.segments,t.children);return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:i}}function Le(t,e,i){return(!(t.hasChildren()||e.length>0)||"full"!==i.pathMatch)&&""===i.path}function Ie(t,e,i,n){return!!(Se(t)===n||n!==et&&Le(e,i,t))&&("**"===t.path||Te(e,t,i).matched)}function Oe(t,e,i){return 0===e.length&&!t.children[i]}class De{constructor(t){this.segmentGroup=t||null}}class Re{constructor(t){this.urlTree=t}}function Ne(t){return new o.y(e=>e.error(new De(t)))}function Pe(t){return new o.y(e=>e.error(new Re(t)))}function Fe(t){return new o.y(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class Ze{constructor(t,e,i,n,s){this.configLoader=e,this.urlSerializer=i,this.urlTree=n,this.config=s,this.allowRedirects=!0,this.ngModule=t.get(r.h0i)}apply(){const t=Me(this.urlTree.root,[],[],this.config).segmentGroup,e=new vt(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,e,et).pipe((0,E.U)(t=>this.createUrlTree(Be(t),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,I.K)(t=>{if(t instanceof Re)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof De)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,et).pipe((0,E.U)(e=>this.createUrlTree(Be(e),t.queryParams,t.fragment))).pipe((0,I.K)(t=>{if(t instanceof De)throw this.noMatchError(t);throw t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,i){const n=t.segments.length>0?new vt([],{[et]:t}):t;return new bt(n,e,i)}expandSegmentGroup(t,e,i,n){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(t,e,i).pipe((0,E.U)(t=>new vt([],t))):this.expandSegment(t,i,e,i.segments,n,!0)}expandChildren(t,e,i){const n=[];for(const r of Object.keys(i.children))"primary"===r?n.unshift(r):n.push(r);return(0,d.Dp)(n).pipe((0,O.b)(n=>{const r=i.children[n],s=Ee(e,n);return this.expandSegmentGroup(t,s,r,n).pipe((0,E.U)(t=>({segment:t,outlet:n})))}),(0,L.R)((t,e)=>(t[e.outlet]=e.segment,t),{}),function(t,e){var i=arguments.length>=2;return function(n){return n.pipe(t?(0,w.h)(function(e,i){return t(e,i,n)}):S.y,x(1),i?(0,A.d)(e):(0,C.T)(function(){return new g.K}))}}())}expandSegment(t,e,i,n,r,s){return(0,d.Dp)(i).pipe((0,O.b)(o=>this.expandSegmentAgainstRoute(t,e,i,o,n,r,s).pipe((0,I.K)(t=>{if(t instanceof De)return(0,p.of)(null);throw t}))),(0,D.P)(t=>!!t),(0,I.K)((t,i)=>{if(t instanceof g.K||"EmptyError"===t.name){if(Oe(e,n,r))return(0,p.of)(new vt([],{}));throw new De(e)}throw t}))}expandSegmentAgainstRoute(t,e,i,n,r,s,o){return Ie(n,e,r,s)?void 0===n.redirectTo?this.matchSegmentAgainstRoute(t,e,n,r,s):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,i,n,r,s):Ne(e):Ne(e)}expandSegmentAgainstRouteUsingRedirect(t,e,i,n,r,s){return"**"===n.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,i,n,s):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,n,r,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,i,n){const r=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?Pe(r):this.lineralizeSegments(i,r).pipe((0,R.z)(i=>{const r=new vt(i,{});return this.expandSegment(t,r,e,i,n,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,n,r,s){const{matched:o,consumedSegments:a,lastChild:l,positionalParamSegments:c}=Te(e,n,r);if(!o)return Ne(e);const h=this.applyRedirectCommands(a,n.redirectTo,c);return n.redirectTo.startsWith("/")?Pe(h):this.lineralizeSegments(n,h).pipe((0,R.z)(n=>this.expandSegment(t,e,i,n.concat(r.slice(l)),s,!1)))}matchSegmentAgainstRoute(t,e,i,n,r){if("**"===i.path)return i.loadChildren?(i._loadedConfig?(0,p.of)(i._loadedConfig):this.configLoader.load(t.injector,i)).pipe((0,E.U)(t=>(i._loadedConfig=t,new vt(n,{})))):(0,p.of)(new vt(n,{}));const{matched:s,consumedSegments:o,lastChild:a}=Te(e,i,n);if(!s)return Ne(e);const l=n.slice(a);return this.getChildConfig(t,i,n).pipe((0,R.z)(t=>{const n=t.module,s=t.routes,{segmentGroup:a,slicedSegments:c}=Me(e,o,l,s),h=new vt(a.segments,a.children);if(0===c.length&&h.hasChildren())return this.expandChildren(n,s,h).pipe((0,E.U)(t=>new vt(o,t)));if(0===s.length&&0===c.length)return(0,p.of)(new vt(o,{}));const u=Se(i)===r;return this.expandSegment(n,h,s,c,u?et:r,!0).pipe((0,E.U)(t=>new vt(o.concat(t.segments),t.children)))}))}getChildConfig(t,e,i){return e.children?(0,p.of)(new me(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?(0,p.of)(e._loadedConfig):this.runCanLoadGuards(t.injector,e,i).pipe((0,R.z)(i=>i?this.configLoader.load(t.injector,e).pipe((0,E.U)(t=>(e._loadedConfig=t,t))):function(t){return new o.y(e=>e.error(rt(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):(0,p.of)(new me([],t))}runCanLoadGuards(t,e,i){const n=e.canLoad;if(!n||0===n.length)return(0,p.of)(!0);const r=n.map(n=>{const r=t.get(n);let s;if(function(t){return t&&ge(t.canLoad)}(r))s=r.canLoad(e,i);else{if(!ge(r))throw new Error("Invalid CanLoad guard");s=r(e,i)}return ut(s)});return(0,p.of)(r).pipe(ve(),(0,N.b)(t=>{if(!ye(t))return;const e=rt(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e}),(0,E.U)(t=>!0===t))}lineralizeSegments(t,e){let i=[],n=e.root;for(;;){if(i=i.concat(n.segments),0===n.numberOfChildren)return(0,p.of)(i);if(n.numberOfChildren>1||!n.children.primary)return Fe(t.redirectTo);n=n.children.primary}}applyRedirectCommands(t,e,i){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,i)}applyRedirectCreatreUrlTree(t,e,i,n){const r=this.createSegmentGroup(t,e.root,i,n);return new bt(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const i={};return ht(t,(t,n)=>{if("string"==typeof t&&t.startsWith(":")){const r=t.substring(1);i[n]=e[r]}else i[n]=t}),i}createSegmentGroup(t,e,i,n){const r=this.createSegments(t,e.segments,i,n);let s={};return ht(e.children,(e,r)=>{s[r]=this.createSegmentGroup(t,e,i,n)}),new vt(r,s)}createSegments(t,e,i,n){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,n):this.findOrReturn(e,i))}findPosParam(t,e,i){const n=i[e.path.substring(1)];if(!n)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return n}findOrReturn(t,e){let i=0;for(const n of e){if(n.path===t.path)return e.splice(i),n;i++}return t}}function Be(t){const e={};for(const i of Object.keys(t.children)){const n=Be(t.children[i]);(n.segments.length>0||n.hasChildren())&&(e[i]=n)}return function(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new vt(t.segments.concat(e.segments),e.children)}return t}(new vt(t.segments,e))}class Ue{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class qe{constructor(t,e){this.component=t,this.route=e}}function ze(t,e,i){const n=t._root;return Ye(n,e?e._root:null,i,[n.value])}function He(t,e,i){const n=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(n?n.module.injector:i).get(t)}function Ye(t,e,i,n,r={canDeactivateChecks:[],canActivateChecks:[]}){const s=zt(e);return t.children.forEach(t=>{!function(t,e,i,n,r={canDeactivateChecks:[],canActivateChecks:[]}){const s=t.value,o=e?e.value:null,a=i?i.getContext(t.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){const l=function(t,e,i){if("function"==typeof i)return i(t,e);switch(i){case"pathParamsChange":return!wt(t.url,e.url);case"pathParamsOrQueryParamsChange":return!wt(t.url,e.url)||!ot(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Kt(t,e)||!ot(t.queryParams,e.queryParams);case"paramsChange":default:return!Kt(t,e)}}(o,s,s.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new Ue(n)):(s.data=o.data,s._resolvedData=o._resolvedData),Ye(t,e,s.component?a?a.children:null:i,n,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new qe(a.outlet.component,o))}else o&&Ge(e,a,r),r.canActivateChecks.push(new Ue(n)),Ye(t,null,s.component?a?a.children:null:i,n,r)}(t,s[t.value.outlet],i,n.concat([t.value]),r),delete s[t.value.outlet]}),ht(s,(t,e)=>Ge(t,i.getContext(e),r)),r}function Ge(t,e,i){const n=zt(t),r=t.value;ht(n,(t,n)=>{Ge(t,r.component?e?e.children.getContext(n):null:e,i)}),i.canDeactivateChecks.push(new qe(r.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,r))}class je{}function Ve(t){return new o.y(e=>e.error(t))}class Qe{constructor(t,e,i,n,r,s){this.rootComponentType=t,this.config=e,this.urlTree=i,this.url=n,this.paramsInheritanceStrategy=r,this.relativeLinkResolution=s}recognize(){const t=Me(this.urlTree.root,[],[],this.config.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,et);if(null===e)return null;const i=new Vt([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},et,this.rootComponentType,null,this.urlTree.root,-1,{}),n=new qt(i,e),r=new Qt(this.url,n);return this.inheritParamsAndData(r._root),r}inheritParamsAndData(t){const e=t.value,i=jt(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,i){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,i)}processChildren(t,e){const i=[];for(const r of Object.keys(e.children)){const n=e.children[r],s=Ee(t,r),o=this.processSegmentGroup(s,n,r);if(null===o)return null;i.push(...o)}const n=Je(i);return n.sort((t,e)=>t.value.outlet===et?-1:e.value.outlet===et?1:t.value.outlet.localeCompare(e.value.outlet)),n}processSegment(t,e,i,n){for(const r of t){const t=this.processSegmentAgainstRoute(r,e,i,n);if(null!==t)return t}return Oe(e,i,n)?[]:null}processSegmentAgainstRoute(t,e,i,n){if(t.redirectTo||!Ie(t,e,i,n))return null;let r,s=[],o=[];if("**"===t.path){const n=i.length>0?ct(i).parameters:{};r=new Vt(i,n,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,$e(t),Se(t),t.component,t,Xe(e),Ke(e)+i.length,ti(t))}else{const n=Te(e,t,i);if(!n.matched)return null;s=n.consumedSegments,o=i.slice(n.lastChild),r=new Vt(s,n.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,$e(t),Se(t),t.component,t,Xe(e),Ke(e)+s.length,ti(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:l,slicedSegments:c}=Me(e,s,o,a.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution);if(0===c.length&&l.hasChildren()){const t=this.processChildren(a,l);return null===t?null:[new qt(r,t)]}if(0===a.length&&0===c.length)return[new qt(r,[])];const h=Se(t)===n,u=this.processSegment(a,l,c,h?et:n);return null===u?null:[new qt(r,u)]}}function We(t){const e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function Je(t){const e=[],i=new Set;for(const n of t){if(!We(n)){e.push(n);continue}const t=e.find(t=>n.value.routeConfig===t.value.routeConfig);void 0!==t?(t.children.push(...n.children),i.add(t)):e.push(n)}for(const n of i){const t=Je(n.children);e.push(new qt(n.value,t))}return e.filter(t=>!i.has(t))}function Xe(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function Ke(t){let e=t,i=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,i+=e._segmentIndexShift?e._segmentIndexShift:0;return i-1}function $e(t){return t.data||{}}function ti(t){return t.resolve||{}}function ei(t){return(0,k.w)(e=>{const i=t(e);return i?(0,d.Dp)(i).pipe((0,E.U)(()=>e)):(0,p.of)(e)})}class ii extends class{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}const ni=new r.OlP("ROUTES");class ri{constructor(t,e,i,n){this.loader=t,this.compiler=e,this.onLoadStartListener=i,this.onLoadEndListener=n}load(t,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const i=this.loadModuleFactory(e.loadChildren).pipe((0,E.U)(i=>{this.onLoadEndListener&&this.onLoadEndListener(e);const n=i.create(t);return new me(lt(n.injector.get(ni,void 0,r.XFs.Self|r.XFs.Optional)).map(Ae),n)}),(0,I.K)(t=>{throw e._loader$=void 0,t}));return e._loader$=new u(i,()=>new _.x).pipe(h()),e._loader$}loadModuleFactory(t){return"string"==typeof t?(0,d.Dp)(this.loader.load(t)):ut(t()).pipe((0,R.z)(t=>t instanceof r.YKP?(0,p.of)(t):(0,d.Dp)(this.compiler.compileModuleAsync(t))))}}class si{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new oi,this.attachRef=null}}class oi{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const i=this.getOrCreateContext(t);i.outlet=e,this.contexts.set(t,i)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new si,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class ai{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function li(t){throw t}function ci(t,e,i){return e.parse("/")}function hi(t,e){return(0,p.of)(null)}const ui={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},di={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let pi=(()=>{class t{constructor(t,e,i,n,s,o,a,l){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=i,this.location=n,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new _.x,this.errorHandler=li,this.malformedUriErrorHandler=ci,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:hi,afterPreactivation:hi},this.urlHandlingStrategy=new ai,this.routeReuseStrategy=new ii,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=s.get(r.h0i),this.console=s.get(r.c2e);const c=s.get(r.R0b);this.isNgZoneEnabled=c instanceof r.R0b&&r.R0b.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=new bt(new vt([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new ri(o,a,t=>this.triggerEvent(new Q(t)),t=>this.triggerEvent(new W(t))),this.routerState=Yt(this.currentUrlTree,this.rootComponentType),this.transitions=new f.X({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}setupNavigations(t){const e=this.events;return t.pipe((0,w.h)(t=>0!==t.id),(0,E.U)(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),(0,k.w)(t=>{let i=!1,n=!1;return(0,p.of)(t).pipe((0,N.b)(t=>{this.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,k.w)(t=>{const i=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||i)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return(0,p.of)(t).pipe((0,k.w)(t=>{const i=this.transitions.getValue();return e.next(new B(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),i!==this.transitions.getValue()?v.E:Promise.resolve(t)}),(n=this.ngModule.injector,r=this.configLoader,s=this.urlSerializer,o=this.config,(0,k.w)(t=>function(t,e,i,n,r){return new Ze(t,e,i,n,r).apply()}(n,r,s,t.extractedUrl,o).pipe((0,E.U)(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e}))))),(0,N.b)(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,i,n,r){return(0,R.z)(s=>function(t,e,i,n,r="emptyOnly",s="legacy"){try{const o=new Qe(t,e,i,n,r,s).recognize();return null===o?Ve(new je):(0,p.of)(o)}catch(o){return Ve(o)}}(t,e,s.urlAfterRedirects,i(s.urlAfterRedirects),n,r).pipe((0,E.U)(t=>Object.assign(Object.assign({},s),{targetSnapshot:t}))))}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,N.b)(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,t),this.browserUrlTree=t.urlAfterRedirects);const i=new H(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(i)}));var n,r,s,o;if(i&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:i,extractedUrl:n,source:r,restoredState:s,extras:o}=t,a=new B(i,this.serializeUrl(n),r,s);e.next(a);const l=Yt(n,this.rootComponentType).snapshot;return(0,p.of)(Object.assign(Object.assign({},t),{targetSnapshot:l,urlAfterRedirects:n,extras:Object.assign(Object.assign({},o),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),v.E}),ei(t=>{const{targetSnapshot:e,id:i,extractedUrl:n,rawUrl:r,extras:{skipLocationChange:s,replaceUrl:o}}=t;return this.hooks.beforePreactivation(e,{navigationId:i,appliedUrlTree:n,rawUrlTree:r,skipLocationChange:!!s,replaceUrl:!!o})}),(0,N.b)(t=>{const e=new Y(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),(0,E.U)(t=>Object.assign(Object.assign({},t),{guards:ze(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return(0,R.z)(i=>{const{targetSnapshot:n,currentSnapshot:r,guards:{canActivateChecks:s,canDeactivateChecks:o}}=i;return 0===o.length&&0===s.length?(0,p.of)(Object.assign(Object.assign({},i),{guardsResult:!0})):function(t,e,i,n){return(0,d.Dp)(t).pipe((0,R.z)(t=>function(t,e,i,n,r){const s=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!s||0===s.length)return(0,p.of)(!0);const o=s.map(s=>{const o=He(s,e,r);let a;if(function(t){return t&&ge(t.canDeactivate)}(o))a=ut(o.canDeactivate(t,e,i,n));else{if(!ge(o))throw new Error("Invalid CanDeactivate guard");a=ut(o(t,e,i,n))}return a.pipe((0,D.P)())});return(0,p.of)(o).pipe(ve())}(t.component,t.route,i,e,n)),(0,D.P)(t=>!0!==t,!0))}(o,n,r,t).pipe((0,R.z)(i=>i&&"boolean"==typeof i?function(t,e,i,n){return(0,d.Dp)(e).pipe((0,O.b)(e=>(0,y.z)(function(t,e){return null!==t&&e&&e(new J(t)),(0,p.of)(!0)}(e.route.parent,n),function(t,e){return null!==t&&e&&e(new K(t)),(0,p.of)(!0)}(e.route,n),function(t,e,i){const n=e[e.length-1],r=e.slice(0,e.length-1).reverse().map(t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)).filter(t=>null!==t).map(e=>(0,b.P)(()=>{const r=e.guards.map(r=>{const s=He(r,e.node,i);let o;if(function(t){return t&&ge(t.canActivateChild)}(s))o=ut(s.canActivateChild(n,t));else{if(!ge(s))throw new Error("Invalid CanActivateChild guard");o=ut(s(n,t))}return o.pipe((0,D.P)())});return(0,p.of)(r).pipe(ve())}));return(0,p.of)(r).pipe(ve())}(t,e.path,i),function(t,e,i){const n=e.routeConfig?e.routeConfig.canActivate:null;if(!n||0===n.length)return(0,p.of)(!0);const r=n.map(n=>(0,b.P)(()=>{const r=He(n,e,i);let s;if(function(t){return t&&ge(t.canActivate)}(r))s=ut(r.canActivate(e,t));else{if(!ge(r))throw new Error("Invalid CanActivate guard");s=ut(r(e,t))}return s.pipe((0,D.P)())}));return(0,p.of)(r).pipe(ve())}(t,e.route,i))),(0,D.P)(t=>!0!==t,!0))}(n,s,t,e):(0,p.of)(i)),(0,E.U)(t=>Object.assign(Object.assign({},i),{guardsResult:t})))})}(this.ngModule.injector,t=>this.triggerEvent(t)),(0,N.b)(t=>{if(ye(t.guardsResult)){const e=rt(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}const e=new G(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),(0,w.h)(t=>!!t.guardsResult||(this.cancelNavigationTransition(t,""),!1)),ei(t=>{if(t.guards.canActivateChecks.length)return(0,p.of)(t).pipe((0,N.b)(t=>{const e=new j(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),(0,k.w)(t=>{let e=!1;return(0,p.of)(t).pipe((i=this.paramsInheritanceStrategy,n=this.ngModule.injector,(0,R.z)(t=>{const{targetSnapshot:e,guards:{canActivateChecks:r}}=t;if(!r.length)return(0,p.of)(t);let s=0;return(0,d.Dp)(r).pipe((0,O.b)(t=>function(t,e,i,n){return function(t,e,i,n){const r=Object.keys(t);if(0===r.length)return(0,p.of)({});const s={};return(0,d.Dp)(r).pipe((0,R.z)(r=>function(t,e,i,n){const r=He(t,e,n);return ut(r.resolve?r.resolve(e,i):r(e,i))}(t[r],e,i,n).pipe((0,N.b)(t=>{s[r]=t}))),x(1),(0,R.z)(()=>Object.keys(s).length===r.length?(0,p.of)(s):v.E))}(t._resolve,t,e,n).pipe((0,E.U)(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),jt(t,i).resolve),null)))}(t.route,e,i,n)),(0,N.b)(()=>s++),x(1),(0,R.z)(e=>s===r.length?(0,p.of)(t):v.E))})),(0,N.b)({next:()=>e=!0,complete:()=>{e||this.cancelNavigationTransition(t,"At least one route resolver didn't emit any value.")}}));var i,n}),(0,N.b)(t=>{const e=new V(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),ei(t=>{const{targetSnapshot:e,id:i,extractedUrl:n,rawUrl:r,extras:{skipLocationChange:s,replaceUrl:o}}=t;return this.hooks.afterPreactivation(e,{navigationId:i,appliedUrlTree:n,rawUrlTree:r,skipLocationChange:!!s,replaceUrl:!!o})}),(0,E.U)(t=>{const e=function(t,e,i){const n=$t(t,e._root,i?i._root:void 0);return new Ht(n,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),(0,N.b)(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,t),this.browserUrlTree=t.urlAfterRedirects)}),(r=this.rootContexts,s=this.routeReuseStrategy,o=t=>this.triggerEvent(t),(0,E.U)(t=>(new pe(s,t.targetRouterState,t.currentRouterState,o).activate(r),t))),(0,N.b)({next(){i=!0},complete(){i=!0}}),(0,P.x)(()=>{i||n||this.cancelNavigationTransition(t,`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`),this.currentNavigation=null}),(0,I.K)(i=>{if(n=!0,(r=i)&&r.ngNavigationCancelingError){const n=ye(i.url);n||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const r=new q(t.id,this.serializeUrl(t.extractedUrl),i.message);e.next(r),n?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(i.url,this.rawUrlTree);this.scheduleNavigation(e,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);const n=new z(t.id,this.serializeUrl(t.extractedUrl),i);e.next(n);try{t.resolve(this.errorHandler(i))}catch(s){t.reject(s)}}var r;return v.E}));var r,s,o}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const e=this.extractLocationChangeInfoFromEvent(t);this.shouldScheduleNavigation(this.lastLocationChangeInfo,e)&&setTimeout(()=>{const{source:t,state:i,urlTree:n}=e,r={replaceUrl:!0};if(i){const t=Object.assign({},i);delete t.navigationId,delete t.\u0275routerPageId,0!==Object.keys(t).length&&(r.state=t)}this.scheduleNavigation(n,t,i,r)},0),this.lastLocationChangeInfo=e}))}extractLocationChangeInfoFromEvent(t){var e;return{source:"popstate"===t.type?"popstate":"hashchange",urlTree:this.parseUrl(t.url),state:(null===(e=t.state)||void 0===e?void 0:e.navigationId)?t.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(t,e){if(!t)return!0;const i=e.urlTree.toString()===t.urlTree.toString();return!(e.transitionId===t.transitionId&&i&&("hashchange"===e.source&&"popstate"===t.source||"popstate"===e.source&&"hashchange"===t.source))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){we(t),this.config=t.map(Ae),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(t,e={}){const{relativeTo:i,queryParams:n,fragment:r,queryParamsHandling:s,preserveFragment:o}=e,a=i||this.routerState.root,l=o?this.currentUrlTree.fragment:r;let c=null;switch(s){case"merge":c=Object.assign(Object.assign({},this.currentUrlTree.queryParams),n);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=n||null}return null!==c&&(c=this.removeEmptyProps(c)),function(t,e,i,n,r){if(0===i.length)return ne(e.root,e.root,e,n,r);const s=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new se(!0,0,t);let e=0,i=!1;const n=t.reduce((t,n,r)=>{if("object"==typeof n&&null!=n){if(n.outlets){const e={};return ht(n.outlets,(t,i)=>{e[i]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(n.segmentPath)return[...t,n.segmentPath]}return"string"!=typeof n?[...t,n]:0===r?(n.split("/").forEach((n,r)=>{0==r&&"."===n||(0==r&&""===n?i=!0:".."===n?e++:""!=n&&t.push(n))}),t):[...t,n]},[]);return new se(i,e,n)}(i);if(s.toRoot())return ne(e.root,new vt([],{}),e,n,r);const o=function(t,e,i){if(t.isAbsolute)return new oe(e.root,!0,0);if(-1===i.snapshot._lastPathIndex){const t=i.snapshot._urlSegment;return new oe(t,t===e.root,0)}const n=ee(t.commands[0])?0:1;return function(t,e,i){let n=t,r=e,s=i;for(;s>r;){if(s-=r,n=n.parent,!n)throw new Error("Invalid number of '../'");r=n.segments.length}return new oe(n,!1,r-s)}(i.snapshot._urlSegment,i.snapshot._lastPathIndex+n,t.numberOfDoubleDots)}(s,e,t),a=o.processChildren?le(o.segmentGroup,o.index,s.commands):ae(o.segmentGroup,o.index,s.commands);return ne(o.segmentGroup,a,e,n,r)}(a,this.currentUrlTree,t,c,null!=l?l:null)}navigateByUrl(t,e={skipLocationChange:!1}){const i=ye(t)?t:this.parseUrl(t),n=this.urlHandlingStrategy.merge(i,this.rawUrlTree);let r=null;return"computed"===this.canceledNavigationResolution&&(0===this.currentPageId||e.skipLocationChange||e.replaceUrl)&&(r=this.location.getState()),this.scheduleNavigation(n,"imperative",r,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e{const n=t[i];return null!=n&&(e[i]=n),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.currentPageId=t.targetPageId,this.events.next(new U(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,i,n,r){if(this.disposed)return Promise.resolve(!1);const s=this.getTransition(),o="imperative"!==e&&"imperative"===(null==s?void 0:s.source),a=(this.lastSuccessfulId===s.id||this.currentNavigation?s.rawUrl:s.urlAfterRedirects).toString()===t.toString();if(o&&a)return Promise.resolve(!0);let l,c,h;r?(l=r.resolve,c=r.reject,h=r.promise):h=new Promise((t,e)=>{l=t,c=e});const u=++this.navigationId;let d;return d="computed"===this.canceledNavigationResolution?i&&i.\u0275routerPageId?i.\u0275routerPageId:this.currentPageId+1:0,this.setTransition({id:u,targetPageId:d,source:e,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:n,resolve:l,reject:c,promise:h,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),h.catch(t=>Promise.reject(t))}setBrowserUrl(t,e){const i=this.urlSerializer.serialize(t),n=Object.assign(Object.assign({},e.extras.state),this.generateNgRouterState(e.id,e.targetPageId));this.location.isCurrentPathEqualTo(i)||e.extras.replaceUrl?this.location.replaceState(i,"",n):this.location.go(i,"",n)}resetStateAndUrl(t,e,i){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,i),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(t,e){"computed"===this.canceledNavigationResolution?"popstate"!==t.source&&"eager"!==this.urlUpdateStrategy||this.location.historyGo(this.currentPageId-t.targetPageId):this.resetUrlToCurrentUrlTree();const i=new q(t.id,this.serializeUrl(t.extractedUrl),e);this.triggerEvent(i),t.resolve(!1)}generateNgRouterState(t,e){return"computed"===this.canceledNavigationResolution?{navigationId:t,"\u0275routerPageId":e}:{navigationId:t}}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(r.DyG),r.LFG(xt),r.LFG(oi),r.LFG(n.Ye),r.LFG(r.zs3),r.LFG(r.v3s),r.LFG(r.Sil),r.LFG(void 0))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})(),fi=(()=>{class t{constructor(t,e,i,n,r){this.router=t,this.route=e,this.commands=[],this.onChanges=new _.x,null==i&&n.setAttribute(r.nativeElement,"tabindex","0")}ngOnChanges(t){this.onChanges.next(this)}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}onClick(){const t={skipLocationChange:gi(this.skipLocationChange),replaceUrl:gi(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,t),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:gi(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(pi),r.Y36(Gt),r.$8M("tabindex"),r.Y36(r.Qsj),r.Y36(r.SBq))},t.\u0275dir=r.lG2({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&r.NdJ("click",function(){return e.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[r.TTD]}),t})(),mi=(()=>{class t{constructor(t,e,i){this.router=t,this.route=e,this.locationStrategy=i,this.commands=[],this.onChanges=new _.x,this.subscription=t.events.subscribe(t=>{t instanceof U&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}ngOnChanges(t){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,i,n,r){if(0!==t||e||i||n||r)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const s={skipLocationChange:gi(this.skipLocationChange),replaceUrl:gi(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,s),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:gi(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(pi),r.Y36(Gt),r.Y36(n.S$))},t.\u0275dir=r.lG2({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&r.NdJ("click",function(t){return e.onClick(t.button,t.ctrlKey,t.shiftKey,t.altKey,t.metaKey)}),2&t&&(r.Ikx("href",e.href,r.LSH),r.uIk("target",e.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[r.TTD]}),t})();function gi(t){return""===t||!!t}let yi=(()=>{class t{constructor(t,e,i,n,r,s){this.router=t,this.element=e,this.renderer=i,this.cdr=n,this.link=r,this.linkWithHref=s,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.routerEventsSubscription=t.events.subscribe(t=>{t instanceof U&&this.update()})}ngAfterContentInit(){(0,p.of)(this.links.changes,this.linksWithHrefs.changes,(0,p.of)(null)).pipe((0,F.J)()).subscribe(t=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var t;null===(t=this.linkInputChangesSubscription)||void 0===t||t.unsubscribe();const e=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(t=>!!t).map(t=>t.onChanges);this.linkInputChangesSubscription=(0,d.Dp)(e).pipe((0,F.J)()).subscribe(t=>{this.isActive!==this.isLinkActive(this.router)(t)&&this.update()})}set routerLinkActive(t){const e=Array.isArray(t)?t:t.split(" ");this.classes=e.filter(t=>!!t)}ngOnChanges(t){this.update()}ngOnDestroy(){var t;this.routerEventsSubscription.unsubscribe(),null===(t=this.linkInputChangesSubscription)||void 0===t||t.unsubscribe()}update(){this.links&&this.linksWithHrefs&&this.router.navigated&&Promise.resolve().then(()=>{const t=this.hasActiveLinks();this.isActive!==t&&(this.isActive=t,this.cdr.markForCheck(),this.classes.forEach(e=>{t?this.renderer.addClass(this.element.nativeElement,e):this.renderer.removeClass(this.element.nativeElement,e)}))})}isLinkActive(t){const e="paths"in this.routerLinkActiveOptions?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return i=>t.isActive(i.urlTree,e)}hasActiveLinks(){const t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.linkWithHref&&t(this.linkWithHref)||this.links.some(t)||this.linksWithHrefs.some(t)}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(pi),r.Y36(r.SBq),r.Y36(r.Qsj),r.Y36(r.sBO),r.Y36(fi,8),r.Y36(mi,8))},t.\u0275dir=r.lG2({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(t,e,i){if(1&t&&(r.Suo(i,fi,5),r.Suo(i,mi,5)),2&t){let t;r.iGM(t=r.CRH())&&(e.links=t),r.iGM(t=r.CRH())&&(e.linksWithHrefs=t)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},exportAs:["routerLinkActive"],features:[r.TTD]}),t})(),bi=(()=>{class t{constructor(t,e,i,n,s){this.parentContexts=t,this.location=e,this.resolver=i,this.changeDetector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new r.vpe,this.deactivateEvents=new r.vpe,this.name=n||et,t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const i=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),n=this.parentContexts.getOrCreateContext(this.name).children,r=new vi(t,n,this.location.injector);this.activated=this.location.createComponent(i,this.location.length,r),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(oi),r.Y36(r.s_b),r.Y36(r._Vd),r.$8M("name"),r.Y36(r.sBO))},t.\u0275dir=r.lG2({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class vi{constructor(t,e,i){this.route=t,this.childContexts=e,this.parent=i}get(t,e){return t===Gt?this.route:t===oi?this.childContexts:this.parent.get(t,e)}}class _i{}class wi{preload(t,e){return(0,p.of)(null)}}let xi=(()=>{class t{constructor(t,e,i,n,r){this.router=t,this.injector=n,this.preloadingStrategy=r,this.loader=new ri(e,i,e=>t.triggerEvent(new Q(e)),e=>t.triggerEvent(new W(e)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,w.h)(t=>t instanceof U),(0,O.b)(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(r.h0i);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,e){const i=[];for(const n of e)if(n.loadChildren&&!n.canLoad&&n._loadedConfig){const t=n._loadedConfig;i.push(this.processRoutes(t.module,t.routes))}else n.loadChildren&&!n.canLoad?i.push(this.preloadConfig(t,n)):n.children&&i.push(this.processRoutes(t,n.children));return(0,d.Dp)(i).pipe((0,F.J)(),(0,E.U)(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>(e._loadedConfig?(0,p.of)(e._loadedConfig):this.loader.load(t.injector,e)).pipe((0,R.z)(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(pi),r.LFG(r.v3s),r.LFG(r.Sil),r.LFG(r.zs3),r.LFG(_i))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})(),Ci=(()=>{class t{constructor(t,e,i={}){this.router=t,this.viewportScroller=e,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(t=>{t instanceof B?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof U&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof tt&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,e){this.router.triggerEvent(new tt(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(pi),r.LFG(n.EM),r.LFG(void 0))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})();const Ai=new r.OlP("ROUTER_CONFIGURATION"),Si=new r.OlP("ROUTER_FORROOT_GUARD"),Ei=[n.Ye,{provide:xt,useClass:Ct},{provide:pi,useFactory:function(t,e,i,n,r,s,o,a={},l,c){const h=new pi(null,t,e,i,n,r,s,lt(o));return l&&(h.urlHandlingStrategy=l),c&&(h.routeReuseStrategy=c),function(t,e){t.errorHandler&&(e.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(e.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(e.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(e.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(e.urlUpdateStrategy=t.urlUpdateStrategy)}(a,h),a.enableTracing&&h.events.subscribe(t=>{var e,i;null===(e=console.group)||void 0===e||e.call(console,`Router Event: ${t.constructor.name}`),console.log(t.toString()),console.log(t),null===(i=console.groupEnd)||void 0===i||i.call(console)}),h},deps:[xt,oi,n.Ye,r.zs3,r.v3s,r.Sil,ni,Ai,[class{},new r.FiY],[class{},new r.FiY]]},oi,{provide:Gt,useFactory:function(t){return t.routerState.root},deps:[pi]},{provide:r.v3s,useClass:r.EAV},xi,wi,class{preload(t,e){return e().pipe((0,I.K)(()=>(0,p.of)(null)))}},{provide:Ai,useValue:{enableTracing:!1}}];function ki(){return new r.PXZ("Router",pi)}let Ti=(()=>{class t{constructor(t,e){}static forRoot(e,i){return{ngModule:t,providers:[Ei,Oi(e),{provide:Si,useFactory:Ii,deps:[[pi,new r.FiY,new r.tp0]]},{provide:Ai,useValue:i||{}},{provide:n.S$,useFactory:Li,deps:[n.lw,[new r.tBr(n.mr),new r.FiY],Ai]},{provide:Ci,useFactory:Mi,deps:[pi,n.EM,Ai]},{provide:_i,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:wi},{provide:r.PXZ,multi:!0,useFactory:ki},[Di,{provide:r.ip1,multi:!0,useFactory:Ri,deps:[Di]},{provide:Pi,useFactory:Ni,deps:[Di]},{provide:r.tb,multi:!0,useExisting:Pi}]]}}static forChild(e){return{ngModule:t,providers:[Oi(e)]}}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(Si,8),r.LFG(pi,8))},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({}),t})();function Mi(t,e,i){return i.scrollOffset&&e.setOffset(i.scrollOffset),new Ci(t,e,i)}function Li(t,e,i={}){return i.useHash?new n.Do(t,e):new n.b0(t,e)}function Ii(t){return"guarded"}function Oi(t){return[{provide:r.deG,multi:!0,useValue:t},{provide:ni,multi:!0,useValue:t}]}let Di=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new _.x}appInitializer(){return this.injector.get(n.V_,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),i=this.injector.get(pi),n=this.injector.get(Ai);return"disabled"===n.initialNavigation?(i.setUpLocationChangeListener(),t(!0)):"enabled"===n.initialNavigation||"enabledBlocking"===n.initialNavigation?(i.hooks.afterPreactivation=()=>this.initNavigation?(0,p.of)(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),i.initialNavigation()):t(!0),e})}bootstrapListener(t){const e=this.injector.get(Ai),i=this.injector.get(xi),n=this.injector.get(Ci),s=this.injector.get(pi),o=this.injector.get(r.z2F);t===o.components[0]&&("enabledNonBlocking"!==e.initialNavigation&&void 0!==e.initialNavigation||s.initialNavigation(),i.setUpPreloading(),n.init(),s.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(r.zs3))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})();function Ri(t){return t.appInitializer.bind(t)}function Ni(t){return t.bootstrapListener.bind(t)}const Pi=new r.OlP("Router Initializer")},7592:(t,e,i)=>{"use strict";i.d(e,{BN:()=>kt,uH:()=>Tt});var n=i(1572);function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function o(t){for(var e=1;e0;)e+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return e}function Q(t){return"".concat(t).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function W(t){return Object.keys(t||{}).reduce(function(e,i){return e+"".concat(i,": ").concat(t[i],";")},"")}function J(t){return t.size!==j.size||t.x!==j.x||t.y!==j.y||t.rotate!==j.rotate||t.flipX||t.flipY}function X(t){var e=t.transform,i=t.iconWidth,n={transform:"translate(".concat(t.containerWidth/2," 256)")},r="translate(".concat(32*e.x,", ").concat(32*e.y,") "),s="scale(".concat(e.size/16*(e.flipX?-1:1),", ").concat(e.size/16*(e.flipY?-1:1),") "),o="rotate(".concat(e.rotate," 0 0)");return{outer:n,inner:{transform:"".concat(r," ").concat(s," ").concat(o)},path:{transform:"translate(".concat(i/2*-1," -256)")}}}var K={x:0,y:0,width:"100%",height:"100%"};function $(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return t.attributes&&(t.attributes.fill||e)&&(t.attributes.fill="black"),t}function tt(t){var e=t.icons,i=e.main,n=e.mask,r=t.prefix,s=t.iconName,a=t.transform,l=t.symbol,c=t.title,h=t.maskId,u=t.titleId,d=t.extra,p=t.watchable,f=void 0!==p&&p,m=n.found?n:i,g=m.width,y=m.height,b="fak"===r,v=b?"":"fa-w-".concat(Math.ceil(g/y*16)),_=[w.replacementClass,s?"".concat(w.familyPrefix,"-").concat(s):"",v].filter(function(t){return-1===d.classes.indexOf(t)}).filter(function(t){return""!==t||!!t}).concat(d.classes).join(" "),x={children:[],attributes:o({},d.attributes,{"data-prefix":r,"data-icon":s,class:_,role:d.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(g," ").concat(y)})},C=b&&!~d.classes.indexOf("fa-fw")?{width:"".concat(g/y*16*.0625,"em")}:{};f&&(x.attributes["data-fa-i2svg"]=""),c&&x.children.push({tag:"title",attributes:{id:x.attributes["aria-labelledby"]||"title-".concat(u||V())},children:[c]});var A=o({},x,{prefix:r,iconName:s,main:i,mask:n,maskId:h,transform:a,symbol:l,styles:o({},C,d.styles)}),S=n.found&&i.found?function(t){var e,i=t.children,n=t.attributes,r=t.main,s=t.mask,a=t.maskId,l=r.icon,c=s.icon,h=X({transform:t.transform,containerWidth:s.width,iconWidth:r.width}),u={tag:"rect",attributes:o({},K,{fill:"white"})},d=l.children?{children:l.children.map($)}:{},p={tag:"g",attributes:o({},h.inner),children:[$(o({tag:l.tag,attributes:o({},l.attributes,h.path)},d))]},f={tag:"g",attributes:o({},h.outer),children:[p]},m="mask-".concat(a||V()),g="clip-".concat(a||V()),y={tag:"mask",attributes:o({},K,{id:m,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[u,f]},b={tag:"defs",children:[{tag:"clipPath",attributes:{id:g},children:(e=c,"g"===e.tag?e.children:[e])},y]};return i.push(b,{tag:"rect",attributes:o({fill:"currentColor","clip-path":"url(#".concat(g,")"),mask:"url(#".concat(m,")")},K)}),{children:i,attributes:n}}(A):function(t){var e=t.children,i=t.attributes,n=t.main,r=t.transform,s=W(t.styles);if(s.length>0&&(i.style=s),J(r)){var a=X({transform:r,containerWidth:n.width,iconWidth:n.width});e.push({tag:"g",attributes:o({},a.outer),children:[{tag:"g",attributes:o({},a.inner),children:[{tag:n.icon.tag,children:n.icon.children,attributes:o({},n.icon.attributes,a.path)}]}]})}else e.push(n.icon);return{children:e,attributes:i}}(A),E=S.attributes;return A.children=S.children,A.attributes=E,l?function(t){var e=t.iconName,i=t.children,n=t.symbol;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:o({},t.attributes,{id:!0===n?"".concat(t.prefix,"-").concat(w.familyPrefix,"-").concat(e):n}),children:i}]}]}(A):function(t){var e=t.children,i=t.main,n=t.mask,r=t.attributes,s=t.styles,a=t.transform;if(J(a)&&i.found&&!n.found){var l={x:i.width/i.height/2,y:.5};r.style=W(o({},s,{"transform-origin":"".concat(l.x+a.x/16,"em ").concat(l.y+a.y/16,"em")}))}return[{tag:"svg",attributes:r,children:e}]}(A)}var et=function(t,e,i,n){var r,s,o,a=Object.keys(t),l=a.length,c=void 0!==n?function(t,e){return function(i,n,r,s){return t.call(e,i,n,r,s)}}(e,n):e;for(void 0===i?(r=1,o=t[a[0]]):(r=0,o=i);r2&&void 0!==arguments[2]?arguments[2]:{},n=i.skipHooks,r=void 0!==n&&n,s=Object.keys(e).reduce(function(t,i){var n=e[i];return n.icon?t[n.iconName]=n.icon:t[i]=n,t},{});"function"!=typeof C.hooks.addPack||r?C.styles[t]=o({},C.styles[t]||{},s):C.hooks.addPack(t,s),"fas"===t&&it("fa",e)}var nt=C.styles,rt=C.shims,st=function(){var t=function(t){return et(nt,function(e,i,n){return e[n]=et(i,t,{}),e},{})};t(function(t,e,i){return e[3]&&(t[e[3]]=i),t}),t(function(t,e,i){var n=e[2];return t[i]=i,n.forEach(function(e){t[e]=i}),t});var e="far"in nt;et(rt,function(t,i){var n=i[1];return"far"!==n||e||(n="fas"),t[i[0]]={prefix:n,iconName:i[2]},t},{})};function ot(t,e,i){if(t&&t[e]&&t[e][i])return{prefix:e,iconName:i,icon:t[e][i]}}function at(t){var e=t.tag,i=t.attributes,n=void 0===i?{}:i,r=t.children,s=void 0===r?[]:r;return"string"==typeof t?Q(t):"<".concat(e," ").concat(function(t){return Object.keys(t||{}).reduce(function(e,i){return e+"".concat(i,'="').concat(Q(t[i]),'" ')},"").trim()}(n),">").concat(s.map(at).join(""),"")}function lt(t){this.name="MissingIcon",this.message=t||"Icon unavailable",this.stack=(new Error).stack}st(),(lt.prototype=Object.create(Error.prototype)).constructor=lt;var ct={fill:"currentColor"},ht={attributeType:"XML",repeatCount:"indefinite",dur:"2s"},ut=(o({},ct,{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"}),o({},ht,{attributeName:"opacity"}));function dt(t){var e=t[0],i=t[1],n=a(t.slice(4),1)[0];return{found:!0,width:e,height:i,icon:Array.isArray(n)?{tag:"g",attributes:{class:"".concat(w.familyPrefix,"-").concat(b.GROUP)},children:[{tag:"path",attributes:{class:"".concat(w.familyPrefix,"-").concat(b.SECONDARY),fill:"currentColor",d:n[0]}},{tag:"path",attributes:{class:"".concat(w.familyPrefix,"-").concat(b.PRIMARY),fill:"currentColor",d:n[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:n}}}}function pt(){w.autoAddCss&&!bt&&(function(t){if(t&&f){var e=p.createElement("style");e.setAttribute("type","text/css"),e.innerHTML=t;for(var i=p.head.childNodes,n=null,r=i.length-1;r>-1;r--){var s=i[r],o=(s.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(o)>-1&&(n=s)}p.head.insertBefore(e,n)}}(function(){var t="fa",e=m,i=w.familyPrefix,n=w.replacementClass,r='svg:not(:root).svg-inline--fa {\n overflow: visible;\n}\n\n.svg-inline--fa {\n display: inline-block;\n font-size: inherit;\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.225em;\n}\n.svg-inline--fa.fa-w-1 {\n width: 0.0625em;\n}\n.svg-inline--fa.fa-w-2 {\n width: 0.125em;\n}\n.svg-inline--fa.fa-w-3 {\n width: 0.1875em;\n}\n.svg-inline--fa.fa-w-4 {\n width: 0.25em;\n}\n.svg-inline--fa.fa-w-5 {\n width: 0.3125em;\n}\n.svg-inline--fa.fa-w-6 {\n width: 0.375em;\n}\n.svg-inline--fa.fa-w-7 {\n width: 0.4375em;\n}\n.svg-inline--fa.fa-w-8 {\n width: 0.5em;\n}\n.svg-inline--fa.fa-w-9 {\n width: 0.5625em;\n}\n.svg-inline--fa.fa-w-10 {\n width: 0.625em;\n}\n.svg-inline--fa.fa-w-11 {\n width: 0.6875em;\n}\n.svg-inline--fa.fa-w-12 {\n width: 0.75em;\n}\n.svg-inline--fa.fa-w-13 {\n width: 0.8125em;\n}\n.svg-inline--fa.fa-w-14 {\n width: 0.875em;\n}\n.svg-inline--fa.fa-w-15 {\n width: 0.9375em;\n}\n.svg-inline--fa.fa-w-16 {\n width: 1em;\n}\n.svg-inline--fa.fa-w-17 {\n width: 1.0625em;\n}\n.svg-inline--fa.fa-w-18 {\n width: 1.125em;\n}\n.svg-inline--fa.fa-w-19 {\n width: 1.1875em;\n}\n.svg-inline--fa.fa-w-20 {\n width: 1.25em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-border {\n height: 1.5em;\n}\n.svg-inline--fa.fa-li {\n width: 2em;\n}\n.svg-inline--fa.fa-fw {\n width: 1.25em;\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: #ff253a;\n border-radius: 1em;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: #fff;\n height: 1.5em;\n line-height: 1;\n max-width: 5em;\n min-width: 1.5em;\n overflow: hidden;\n padding: 0.25em;\n right: 0;\n text-overflow: ellipsis;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: 0;\n right: 0;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: 0;\n left: 0;\n right: auto;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n right: 0;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: 0;\n right: auto;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-lg {\n font-size: 1.3333333333em;\n line-height: 0.75em;\n vertical-align: -0.0667em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: 2.5em;\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: -2em;\n position: absolute;\n text-align: center;\n width: 2em;\n line-height: inherit;\n}\n\n.fa-border {\n border: solid 0.08em #eee;\n border-radius: 0.1em;\n padding: 0.2em 0.25em 0.15em;\n}\n\n.fa-pull-left {\n float: left;\n}\n\n.fa-pull-right {\n float: right;\n}\n\n.fa.fa-pull-left,\n.fas.fa-pull-left,\n.far.fa-pull-left,\n.fal.fa-pull-left,\n.fab.fa-pull-left {\n margin-right: 0.3em;\n}\n.fa.fa-pull-right,\n.fas.fa-pull-right,\n.far.fa-pull-right,\n.fal.fa-pull-right,\n.fab.fa-pull-right {\n margin-left: 0.3em;\n}\n\n.fa-spin {\n -webkit-animation: fa-spin 2s infinite linear;\n animation: fa-spin 2s infinite linear;\n}\n\n.fa-pulse {\n -webkit-animation: fa-spin 1s infinite steps(8);\n animation: fa-spin 1s infinite steps(8);\n}\n\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both, .fa-flip-horizontal.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n:root .fa-rotate-90,\n:root .fa-rotate-180,\n:root .fa-rotate-270,\n:root .fa-flip-horizontal,\n:root .fa-flip-vertical,\n:root .fa-flip-both {\n -webkit-filter: none;\n filter: none;\n}\n\n.fa-stack {\n display: inline-block;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: #fff;\n}\n\n.sr-only {\n border: 0;\n clip: rect(0, 0, 0, 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n}\n\n.sr-only-focusable:active, .sr-only-focusable:focus {\n clip: auto;\n height: auto;\n margin: 0;\n overflow: visible;\n position: static;\n width: auto;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: 1;\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: 1;\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse {\n color: #fff;\n}';if(i!==t||n!==e){var s=new RegExp("\\.".concat(t,"\\-"),"g"),o=new RegExp("\\--".concat(t,"\\-"),"g"),a=new RegExp("\\.".concat(e),"g");r=r.replace(s,".".concat(i,"-")).replace(o,"--".concat(i,"-")).replace(a,".".concat(n))}return r}()),bt=!0)}function ft(t,e){return Object.defineProperty(t,"abstract",{get:e}),Object.defineProperty(t,"html",{get:function(){return t.abstract.map(function(t){return at(t)})}}),Object.defineProperty(t,"node",{get:function(){if(f){var e=p.createElement("div");return e.innerHTML=t.html,e.children}}}),t}function mt(t){var e=t.prefix,i=void 0===e?"fa":e,n=t.iconName;if(n)return ot(yt.definitions,i,n)||ot(C.styles,i,n)}o({},ct,{cx:"256",cy:"364",r:"28"}),o({},ht,{attributeName:"r",values:"28;14;28;28;14;28;"}),o({},ut,{values:"1;0;1;1;0;1;"}),o({},ct,{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),o({},ut,{values:"1;0;0;0;0;1;"}),o({},ct,{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),o({},ut,{values:"0;0;1;1;0;0;"});var gt,yt=new(function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.definitions={}}var e;return(e=[{key:"add",value:function(){for(var t=this,e=arguments.length,i=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:{},i=e.transform,n=void 0===i?j:i,r=e.symbol,s=void 0!==r&&r,a=e.mask,l=void 0===a?null:a,c=e.maskId,h=void 0===c?null:c,u=e.title,d=void 0===u?null:u,p=e.titleId,f=void 0===p?null:p,m=e.classes,g=void 0===m?[]:m,y=e.attributes,b=void 0===y?{}:y,v=e.styles,_=void 0===v?{}:v;if(t){var x=t.prefix,C=t.iconName,A=t.icon;return ft(o({type:"icon"},t),function(){return pt(),w.autoA11y&&(d?b["aria-labelledby"]="".concat(w.replacementClass,"-title-").concat(f||V()):(b["aria-hidden"]="true",b.focusable="false")),tt({icons:{main:dt(A),mask:l?dt(l.icon):{found:!1,width:null,height:null,icon:{}}},prefix:x,iconName:C,transform:o({},j,n),symbol:s,title:d,maskId:h,titleId:f,extra:{attributes:b,styles:_,classes:g}})})}},function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=(t||{}).icon?t:mt(t||{}),n=e.mask;return n&&(n=(n||{}).icon?n:mt(n||{})),gt(i,o({},e,{mask:n}))}),_t=i(269);const wt=["*"];let xt=(()=>{class t{constructor(){this.defaultPrefix="fas",this.fallbackIcon=null,this.globalLibrary=!1}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,n.Yz7)({factory:function(){return new t},token:t,providedIn:"root"}),t})(),Ct=(()=>{class t{constructor(){this.definitions={}}addIcons(...t){for(const e of t)e.prefix in this.definitions||(this.definitions[e.prefix]={}),this.definitions[e.prefix][e.iconName]=e}addIconPacks(...t){for(const e of t){const t=Object.keys(e).map(t=>e[t]);this.addIcons(...t)}}getIconDefinition(t,e){return t in this.definitions&&e in this.definitions[t]?this.definitions[t][e]:null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,n.Yz7)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const At=t=>{const e={"fa-spin":t.spin,"fa-pulse":t.pulse,"fa-fw":t.fixedWidth,"fa-border":t.border,"fa-inverse":t.inverse,"fa-layers-counter":t.counter,"fa-flip-horizontal":"horizontal"===t.flip||"both"===t.flip,"fa-flip-vertical":"vertical"===t.flip||"both"===t.flip,[`fa-${t.size}`]:null!==t.size,[`fa-rotate-${t.rotate}`]:null!==t.rotate,[`fa-pull-${t.pull}`]:null!==t.pull,[`fa-stack-${t.stackItemSize}`]:null!=t.stackItemSize};return Object.keys(e).map(t=>e[t]?t:null).filter(t=>t)};let St=(()=>{class t{constructor(){this.stackItemSize="1x"}ngOnChanges(t){if("size"in t)throw new Error('fa-icon is not allowed to customize size when used inside fa-stack. Set size on the enclosing fa-stack instead: ....')}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.lG2({type:t,selectors:[["fa-icon","stackItemSize",""],["fa-duotone-icon","stackItemSize",""]],inputs:{stackItemSize:"stackItemSize",size:"size"},features:[n.TTD]}),t})(),Et=(()=>{class t{constructor(t,e){this.renderer=t,this.elementRef=e}ngOnInit(){this.renderer.addClass(this.elementRef.nativeElement,"fa-stack")}ngOnChanges(t){"size"in t&&(null!=t.size.currentValue&&this.renderer.addClass(this.elementRef.nativeElement,`fa-${t.size.currentValue}`),null!=t.size.previousValue&&this.renderer.removeClass(this.elementRef.nativeElement,`fa-${t.size.previousValue}`))}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.Qsj),n.Y36(n.SBq))},t.\u0275cmp=n.Xpm({type:t,selectors:[["fa-stack"]],inputs:{size:"size"},features:[n.TTD],ngContentSelectors:wt,decls:1,vars:0,template:function(t,e){1&t&&(n.F$t(),n.Hsn(0))},encapsulation:2}),t})(),kt=(()=>{class t{constructor(t,e,i,n,r){this.sanitizer=t,this.config=e,this.iconLibrary=i,this.stackItem=n,this.classes=[],null!=r&&null==n&&console.error('FontAwesome: fa-icon and fa-duotone-icon elements must specify stackItemSize attribute when wrapped into fa-stack. Example: .')}ngOnChanges(t){if(null==this.icon&&null==this.config.fallbackIcon)return(()=>{throw new Error("Property `icon` is required for `fa-icon`/`fa-duotone-icon` components.")})();let e=null;if(e=null==this.icon?this.config.fallbackIcon:this.icon,t){const t=this.findIconDefinition(e);if(null!=t){const e=this.buildParams();this.renderIcon(t,e)}}}render(){this.ngOnChanges({})}findIconDefinition(t){const e=((t,e)=>{return void 0!==(i=t).prefix&&void 0!==i.iconName?t:Array.isArray(t)&&2===t.length?{prefix:t[0],iconName:t[1]}:"string"==typeof t?{prefix:e,iconName:t}:void 0;var i})(t,this.config.defaultPrefix);if("icon"in e)return e;const i=this.iconLibrary.getIconDefinition(e.prefix,e.iconName);if(null!=i)return i;const n=mt(e);if(null!=n){const t="Global icon library is deprecated. Consult https://github.com/FortAwesome/angular-fontawesome/blob/master/UPGRADING.md for the migration instructions.";if("unset"===this.config.globalLibrary)console.error("FontAwesome: "+t);else if(!this.config.globalLibrary)throw new Error(t);return n}return(t=>{throw new Error(`Could not find icon with iconName=${t.iconName} and prefix=${t.prefix} in the icon library.`)})(e),null}buildParams(){const t={flip:this.flip,spin:this.spin,pulse:this.pulse,border:this.border,inverse:this.inverse,size:this.size||null,pull:this.pull||null,rotate:this.rotate||null,fixedWidth:"boolean"==typeof this.fixedWidth?this.fixedWidth:this.config.fixedWidth,stackItemSize:null!=this.stackItem?this.stackItem.stackItemSize:null},e="string"==typeof this.transform?function(t){var e={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t?t.toLowerCase().split(" ").reduce(function(t,e){var i=e.toLowerCase().split("-"),n=i[0],r=i.slice(1).join("-");if(n&&"h"===r)return t.flipX=!0,t;if(n&&"v"===r)return t.flipY=!0,t;if(r=parseFloat(r),isNaN(r))return t;switch(n){case"grow":t.size=t.size+r;break;case"shrink":t.size=t.size-r;break;case"left":t.x=t.x-r;break;case"right":t.x=t.x+r;break;case"up":t.y=t.y-r;break;case"down":t.y=t.y+r;break;case"rotate":t.rotate=t.rotate+r}return t},e):e}(this.transform):this.transform;return{title:this.title,transform:e,classes:[...At(t),...this.classes],mask:null!=this.mask?this.findIconDefinition(this.mask):null,styles:null!=this.styles?this.styles:{},symbol:this.symbol,attributes:{role:this.a11yRole}}}renderIcon(t,e){const i=vt(t,e);this.renderedIconHTML=this.sanitizer.bypassSecurityTrustHtml(i.html.join("\n"))}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(_t.H7),n.Y36(xt),n.Y36(Ct),n.Y36(St,8),n.Y36(Et,8))},t.\u0275cmp=n.Xpm({type:t,selectors:[["fa-icon"]],hostAttrs:[1,"ng-fa-icon"],hostVars:2,hostBindings:function(t,e){2&t&&(n.Ikx("innerHTML",e.renderedIconHTML,n.oJD),n.uIk("title",e.title))},inputs:{classes:"classes",icon:"icon",title:"title",spin:"spin",pulse:"pulse",mask:"mask",styles:"styles",flip:"flip",size:"size",pull:"pull",border:"border",inverse:"inverse",symbol:"symbol",rotate:"rotate",fixedWidth:"fixedWidth",transform:"transform",a11yRole:"a11yRole"},features:[n.TTD],decls:0,vars:0,template:function(t,e){},encapsulation:2}),t})(),Tt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({}),t})()},5291:(t,e,i)=>{"use strict";i.d(e,{Sbq:()=>n,Vfw:()=>r,N2j:()=>s,DL8:()=>o,BDt:()=>a,koM:()=>l,OS1:()=>c,mh3:()=>h,b7W:()=>u,kZ_:()=>d,q7m:()=>p,FlN:()=>f,KOR:()=>m,Ssp:()=>g,eHv:()=>y,Mdf:()=>b,Aq:()=>v,qO$:()=>_,vqe:()=>w,sqG:()=>x,Krp:()=>C,uli:()=>A,nNP:()=>S,byT:()=>E,SuH:()=>k,co4:()=>T,aj4:()=>M,kXW:()=>L,XsY:()=>I,USL:()=>O,r8p:()=>D,o4t:()=>R,Psp:()=>N,dLy:()=>P,FpQ:()=>F,wn1:()=>Z,xf3:()=>B,HLz:()=>U,NBC:()=>q,CgH:()=>z,B$L:()=>H,hkK:()=>Y,hnx:()=>G,gNZ:()=>j,FJU:()=>V,FVb:()=>Q,X5K:()=>W,wyP:()=>J});var n={prefix:"fas",iconName:"angle-double-down",icon:[320,512,[],"f103","M143 256.3L7 120.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0L313 86.3c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.4 9.5-24.6 9.5-34 .1zm34 192l136-136c9.4-9.4 9.4-24.6 0-33.9l-22.6-22.6c-9.4-9.4-24.6-9.4-33.9 0L160 352.1l-96.4-96.4c-9.4-9.4-24.6-9.4-33.9 0L7 278.3c-9.4 9.4-9.4 24.6 0 33.9l136 136c9.4 9.5 24.6 9.5 34 .1z"]},r={prefix:"fas",iconName:"angle-double-up",icon:[320,512,[],"f102","M177 255.7l136 136c9.4 9.4 9.4 24.6 0 33.9l-22.6 22.6c-9.4 9.4-24.6 9.4-33.9 0L160 351.9l-96.4 96.4c-9.4 9.4-24.6 9.4-33.9 0L7 425.7c-9.4-9.4-9.4-24.6 0-33.9l136-136c9.4-9.5 24.6-9.5 34-.1zm-34-192L7 199.7c-9.4 9.4-9.4 24.6 0 33.9l22.6 22.6c9.4 9.4 24.6 9.4 33.9 0l96.4-96.4 96.4 96.4c9.4 9.4 24.6 9.4 33.9 0l22.6-22.6c9.4-9.4 9.4-24.6 0-33.9l-136-136c-9.2-9.4-24.4-9.4-33.8 0z"]},s={prefix:"fas",iconName:"archive",icon:[512,512,[],"f187","M32 448c0 17.7 14.3 32 32 32h384c17.7 0 32-14.3 32-32V160H32v288zm160-212c0-6.6 5.4-12 12-12h104c6.6 0 12 5.4 12 12v8c0 6.6-5.4 12-12 12H204c-6.6 0-12-5.4-12-12v-8zM480 32H32C14.3 32 0 46.3 0 64v48c0 8.8 7.2 16 16 16h480c8.8 0 16-7.2 16-16V64c0-17.7-14.3-32-32-32z"]},o={prefix:"fas",iconName:"balance-scale",icon:[640,512,[],"f24e","M256 336h-.02c0-16.18 1.34-8.73-85.05-181.51-17.65-35.29-68.19-35.36-85.87 0C-2.06 328.75.02 320.33.02 336H0c0 44.18 57.31 80 128 80s128-35.82 128-80zM128 176l72 144H56l72-144zm511.98 160c0-16.18 1.34-8.73-85.05-181.51-17.65-35.29-68.19-35.36-85.87 0-87.12 174.26-85.04 165.84-85.04 181.51H384c0 44.18 57.31 80 128 80s128-35.82 128-80h-.02zM440 320l72-144 72 144H440zm88 128H352V153.25c23.51-10.29 41.16-31.48 46.39-57.25H528c8.84 0 16-7.16 16-16V48c0-8.84-7.16-16-16-16H383.64C369.04 12.68 346.09 0 320 0s-49.04 12.68-63.64 32H112c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h129.61c5.23 25.76 22.87 46.96 46.39 57.25V448H112c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h416c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z"]},a={prefix:"fas",iconName:"bolt",icon:[320,512,[],"f0e7","M296 160H180.6l42.6-129.8C227.2 15 215.7 0 200 0H56C44 0 33.8 8.9 32.2 20.8l-32 240C-1.7 275.2 9.5 288 24 288h118.7L96.6 482.5c-3.6 15.2 8 29.5 23.3 29.5 8.4 0 16.4-4.4 20.8-12l176-304c9.3-15.9-2.2-36-20.7-36z"]},l={prefix:"fas",iconName:"chart-bar",icon:[512,512,[],"f080","M332.8 320h38.4c6.4 0 12.8-6.4 12.8-12.8V172.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h38.4c6.4 0 12.8-6.4 12.8-12.8V76.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-288 0h38.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h38.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zM496 384H64V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z"]},c={prefix:"fas",iconName:"chart-pie",icon:[544,512,[],"f200","M527.79 288H290.5l158.03 158.03c6.04 6.04 15.98 6.53 22.19.68 38.7-36.46 65.32-85.61 73.13-140.86 1.34-9.46-6.51-17.85-16.06-17.85zm-15.83-64.8C503.72 103.74 408.26 8.28 288.8.04 279.68-.59 272 7.1 272 16.24V240h223.77c9.14 0 16.82-7.68 16.19-16.8zM224 288V50.71c0-9.55-8.39-17.4-17.84-16.06C86.99 51.49-4.1 155.6.14 280.37 4.5 408.51 114.83 513.59 243.03 511.98c50.4-.63 96.97-16.87 135.26-44.03 7.9-5.6 8.42-17.23 1.57-24.08L224 288z"]},h={prefix:"fas",iconName:"code-branch",icon:[384,512,[],"f126","M384 144c0-44.2-35.8-80-80-80s-80 35.8-80 80c0 36.4 24.3 67.1 57.5 76.8-.6 16.1-4.2 28.5-11 36.9-15.4 19.2-49.3 22.4-85.2 25.7-28.2 2.6-57.4 5.4-81.3 16.9v-144c32.5-10.2 56-40.5 56-76.3 0-44.2-35.8-80-80-80S0 35.8 0 80c0 35.8 23.5 66.1 56 76.3v199.3C23.5 365.9 0 396.2 0 432c0 44.2 35.8 80 80 80s80-35.8 80-80c0-34-21.2-63.1-51.2-74.6 3.1-5.2 7.8-9.8 14.9-13.4 16.2-8.2 40.4-10.4 66.1-12.8 42.2-3.9 90-8.4 118.2-43.4 14-17.4 21.1-39.8 21.6-67.9 31.6-10.8 54.4-40.7 54.4-75.9zM80 64c8.8 0 16 7.2 16 16s-7.2 16-16 16-16-7.2-16-16 7.2-16 16-16zm0 384c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm224-320c8.8 0 16 7.2 16 16s-7.2 16-16 16-16-7.2-16-16 7.2-16 16-16z"]},u={prefix:"fas",iconName:"cog",icon:[512,512,[],"f013","M487.4 315.7l-42.6-24.6c4.3-23.2 4.3-47 0-70.2l42.6-24.6c4.9-2.8 7.1-8.6 5.5-14-11.1-35.6-30-67.8-54.7-94.6-3.8-4.1-10-5.1-14.8-2.3L380.8 110c-17.9-15.4-38.5-27.3-60.8-35.1V25.8c0-5.6-3.9-10.5-9.4-11.7-36.7-8.2-74.3-7.8-109.2 0-5.5 1.2-9.4 6.1-9.4 11.7V75c-22.2 7.9-42.8 19.8-60.8 35.1L88.7 85.5c-4.9-2.8-11-1.9-14.8 2.3-24.7 26.7-43.6 58.9-54.7 94.6-1.7 5.4.6 11.2 5.5 14L67.3 221c-4.3 23.2-4.3 47 0 70.2l-42.6 24.6c-4.9 2.8-7.1 8.6-5.5 14 11.1 35.6 30 67.8 54.7 94.6 3.8 4.1 10 5.1 14.8 2.3l42.6-24.6c17.9 15.4 38.5 27.3 60.8 35.1v49.2c0 5.6 3.9 10.5 9.4 11.7 36.7 8.2 74.3 7.8 109.2 0 5.5-1.2 9.4-6.1 9.4-11.7v-49.2c22.2-7.9 42.8-19.8 60.8-35.1l42.6 24.6c4.9 2.8 11 1.9 14.8-2.3 24.7-26.7 43.6-58.9 54.7-94.6 1.5-5.5-.7-11.3-5.6-14.1zM256 336c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"]},d={prefix:"fas",iconName:"copy",icon:[448,512,[],"f0c5","M320 448v40c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V120c0-13.255 10.745-24 24-24h72v296c0 30.879 25.121 56 56 56h168zm0-344V0H152c-13.255 0-24 10.745-24 24v368c0 13.255 10.745 24 24 24h272c13.255 0 24-10.745 24-24V128H344c-13.2 0-24-10.8-24-24zm120.971-31.029L375.029 7.029A24 24 0 0 0 358.059 0H352v96h96v-6.059a24 24 0 0 0-7.029-16.97z"]},p={prefix:"fas",iconName:"download",icon:[512,512,[],"f019","M216 0h80c13.3 0 24 10.7 24 24v168h87.7c17.8 0 26.7 21.5 14.1 34.1L269.7 378.3c-7.5 7.5-19.8 7.5-27.3 0L90.1 226.1c-12.6-12.6-3.7-34.1 14.1-34.1H192V24c0-13.3 10.7-24 24-24zm296 376v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h146.7l49 49c20.1 20.1 52.5 20.1 72.6 0l49-49H488c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z"]},f={prefix:"fas",iconName:"dumbbell",icon:[640,512,[],"f44b","M104 96H56c-13.3 0-24 10.7-24 24v104H8c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h24v104c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V120c0-13.3-10.7-24-24-24zm528 128h-24V120c0-13.3-10.7-24-24-24h-48c-13.3 0-24 10.7-24 24v272c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V288h24c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM456 32h-48c-13.3 0-24 10.7-24 24v168H256V56c0-13.3-10.7-24-24-24h-48c-13.3 0-24 10.7-24 24v400c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V288h128v168c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24z"]},m={prefix:"fas",iconName:"eject",icon:[448,512,[],"f052","M448 384v64c0 17.673-14.327 32-32 32H32c-17.673 0-32-14.327-32-32v-64c0-17.673 14.327-32 32-32h384c17.673 0 32 14.327 32 32zM48.053 320h351.886c41.651 0 63.581-49.674 35.383-80.435L259.383 47.558c-19.014-20.743-51.751-20.744-70.767 0L12.67 239.565C-15.475 270.268 6.324 320 48.053 320z"]},g={prefix:"fas",iconName:"exchange-alt",icon:[512,512,[],"f362","M0 168v-16c0-13.255 10.745-24 24-24h360V80c0-21.367 25.899-32.042 40.971-16.971l80 80c9.372 9.373 9.372 24.569 0 33.941l-80 80C409.956 271.982 384 261.456 384 240v-48H24c-13.255 0-24-10.745-24-24zm488 152H128v-48c0-21.314-25.862-32.08-40.971-16.971l-80 80c-9.372 9.373-9.372 24.569 0 33.941l80 80C102.057 463.997 128 453.437 128 432v-48h360c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24z"]},y={prefix:"fas",iconName:"exclamation-triangle",icon:[576,512,[],"f071","M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"]},b={prefix:"fas",iconName:"eye",icon:[576,512,[],"f06e","M572.52 241.4C518.29 135.59 410.93 64 288 64S57.68 135.64 3.48 241.41a32.35 32.35 0 0 0 0 29.19C57.71 376.41 165.07 448 288 448s230.32-71.64 284.52-177.41a32.35 32.35 0 0 0 0-29.19zM288 400a144 144 0 1 1 144-144 143.93 143.93 0 0 1-144 144zm0-240a95.31 95.31 0 0 0-25.31 3.79 47.85 47.85 0 0 1-66.9 66.9A95.78 95.78 0 1 0 288 160z"]},v={prefix:"fas",iconName:"eye-slash",icon:[640,512,[],"f070","M320 400c-75.85 0-137.25-58.71-142.9-133.11L72.2 185.82c-13.79 17.3-26.48 35.59-36.72 55.59a32.35 32.35 0 0 0 0 29.19C89.71 376.41 197.07 448 320 448c26.91 0 52.87-4 77.89-10.46L346 397.39a144.13 144.13 0 0 1-26 2.61zm313.82 58.1l-110.55-85.44a331.25 331.25 0 0 0 81.25-102.07 32.35 32.35 0 0 0 0-29.19C550.29 135.59 442.93 64 320 64a308.15 308.15 0 0 0-147.32 37.7L45.46 3.37A16 16 0 0 0 23 6.18L3.37 31.45A16 16 0 0 0 6.18 53.9l588.36 454.73a16 16 0 0 0 22.46-2.81l19.64-25.27a16 16 0 0 0-2.82-22.45zm-183.72-142l-39.3-30.38A94.75 94.75 0 0 0 416 256a94.76 94.76 0 0 0-121.31-92.21A47.65 47.65 0 0 1 304 192a46.64 46.64 0 0 1-1.54 10l-73.61-56.89A142.31 142.31 0 0 1 320 112a143.92 143.92 0 0 1 144 144c0 21.63-5.29 41.79-13.9 60.11z"]},_={prefix:"fas",iconName:"history",icon:[512,512,[],"f1da","M504 255.531c.253 136.64-111.18 248.372-247.82 248.468-59.015.042-113.223-20.53-155.822-54.911-11.077-8.94-11.905-25.541-1.839-35.607l11.267-11.267c8.609-8.609 22.353-9.551 31.891-1.984C173.062 425.135 212.781 440 256 440c101.705 0 184-82.311 184-184 0-101.705-82.311-184-184-184-48.814 0-93.149 18.969-126.068 49.932l50.754 50.754c10.08 10.08 2.941 27.314-11.313 27.314H24c-8.837 0-16-7.163-16-16V38.627c0-14.254 17.234-21.393 27.314-11.314l49.372 49.372C129.209 34.136 189.552 8 256 8c136.81 0 247.747 110.78 248 247.531zm-180.912 78.784l9.823-12.63c8.138-10.463 6.253-25.542-4.21-33.679L288 256.349V152c0-13.255-10.745-24-24-24h-16c-13.255 0-24 10.745-24 24v135.651l65.409 50.874c10.463 8.137 25.541 6.253 33.679-4.21z"]},w={prefix:"fas",iconName:"infinity",icon:[640,512,[],"f534","M471.1 96C405 96 353.3 137.3 320 174.6 286.7 137.3 235 96 168.9 96 75.8 96 0 167.8 0 256s75.8 160 168.9 160c66.1 0 117.8-41.3 151.1-78.6 33.3 37.3 85 78.6 151.1 78.6 93.1 0 168.9-71.8 168.9-160S564.2 96 471.1 96zM168.9 320c-40.2 0-72.9-28.7-72.9-64s32.7-64 72.9-64c38.2 0 73.4 36.1 94 64-20.4 27.6-55.9 64-94 64zm302.2 0c-38.2 0-73.4-36.1-94-64 20.4-27.6 55.9-64 94-64 40.2 0 72.9 28.7 72.9 64s-32.7 64-72.9 64z"]},x={prefix:"fas",iconName:"info-circle",icon:[512,512,[],"f05a","M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z"]},C={prefix:"fas",iconName:"layer-group",icon:[512,512,[],"f5fd","M12.41 148.02l232.94 105.67c6.8 3.09 14.49 3.09 21.29 0l232.94-105.67c16.55-7.51 16.55-32.52 0-40.03L266.65 2.31a25.607 25.607 0 0 0-21.29 0L12.41 107.98c-16.55 7.51-16.55 32.53 0 40.04zm487.18 88.28l-58.09-26.33-161.64 73.27c-7.56 3.43-15.59 5.17-23.86 5.17s-16.29-1.74-23.86-5.17L70.51 209.97l-58.1 26.33c-16.55 7.5-16.55 32.5 0 40l232.94 105.59c6.8 3.08 14.49 3.08 21.29 0L499.59 276.3c16.55-7.5 16.55-32.5 0-40zm0 127.8l-57.87-26.23-161.86 73.37c-7.56 3.43-15.59 5.17-23.86 5.17s-16.29-1.74-23.86-5.17L70.29 337.87 12.41 364.1c-16.55 7.5-16.55 32.5 0 40l232.94 105.59c6.8 3.08 14.49 3.08 21.29 0L499.59 404.1c16.55-7.5 16.55-32.5 0-40z"]},A={prefix:"fas",iconName:"life-ring",icon:[512,512,[],"f1cd","M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm173.696 119.559l-63.399 63.399c-10.987-18.559-26.67-34.252-45.255-45.255l63.399-63.399a218.396 218.396 0 0 1 45.255 45.255zM256 352c-53.019 0-96-42.981-96-96s42.981-96 96-96 96 42.981 96 96-42.981 96-96 96zM127.559 82.304l63.399 63.399c-18.559 10.987-34.252 26.67-45.255 45.255l-63.399-63.399a218.372 218.372 0 0 1 45.255-45.255zM82.304 384.441l63.399-63.399c10.987 18.559 26.67 34.252 45.255 45.255l-63.399 63.399a218.396 218.396 0 0 1-45.255-45.255zm302.137 45.255l-63.399-63.399c18.559-10.987 34.252-26.67 45.255-45.255l63.399 63.399a218.403 218.403 0 0 1-45.255 45.255z"]},S={prefix:"fas",iconName:"link",icon:[512,512,[],"f0c1","M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"]},E={prefix:"fas",iconName:"lock",icon:[448,512,[],"f023","M400 224h-24v-72C376 68.2 307.8 0 224 0S72 68.2 72 152v72H48c-26.5 0-48 21.5-48 48v192c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48zm-104 0H152v-72c0-39.7 32.3-72 72-72s72 32.3 72 72v72z"]},k={prefix:"fas",iconName:"map-signs",icon:[512,512,[],"f277","M507.31 84.69L464 41.37c-6-6-14.14-9.37-22.63-9.37H288V16c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v16H56c-13.25 0-24 10.75-24 24v80c0 13.25 10.75 24 24 24h385.37c8.49 0 16.62-3.37 22.63-9.37l43.31-43.31c6.25-6.26 6.25-16.38 0-22.63zM224 496c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16V384h-64v112zm232-272H288v-32h-64v32H70.63c-8.49 0-16.62 3.37-22.63 9.37L4.69 276.69c-6.25 6.25-6.25 16.38 0 22.63L48 342.63c6 6 14.14 9.37 22.63 9.37H456c13.25 0 24-10.75 24-24v-80c0-13.25-10.75-24-24-24z"]},T={prefix:"fas",iconName:"money-bill-alt",icon:[640,512,[],"f3d1","M352 288h-16v-88c0-4.42-3.58-8-8-8h-13.58c-4.74 0-9.37 1.4-13.31 4.03l-15.33 10.22a7.994 7.994 0 0 0-2.22 11.09l8.88 13.31a7.994 7.994 0 0 0 11.09 2.22l.47-.31V288h-16c-4.42 0-8 3.58-8 8v16c0 4.42 3.58 8 8 8h64c4.42 0 8-3.58 8-8v-16c0-4.42-3.58-8-8-8zM608 64H32C14.33 64 0 78.33 0 96v320c0 17.67 14.33 32 32 32h576c17.67 0 32-14.33 32-32V96c0-17.67-14.33-32-32-32zM48 400v-64c35.35 0 64 28.65 64 64H48zm0-224v-64h64c0 35.35-28.65 64-64 64zm272 192c-53.02 0-96-50.15-96-112 0-61.86 42.98-112 96-112s96 50.14 96 112c0 61.87-43 112-96 112zm272 32h-64c0-35.35 28.65-64 64-64v64zm0-224c-35.35 0-64-28.65-64-64h64v64z"]},M={prefix:"fas",iconName:"money-bill-wave",icon:[640,512,[],"f53a","M621.16 54.46C582.37 38.19 543.55 32 504.75 32c-123.17-.01-246.33 62.34-369.5 62.34-30.89 0-61.76-3.92-92.65-13.72-3.47-1.1-6.95-1.62-10.35-1.62C15.04 79 0 92.32 0 110.81v317.26c0 12.63 7.23 24.6 18.84 29.46C57.63 473.81 96.45 480 135.25 480c123.17 0 246.34-62.35 369.51-62.35 30.89 0 61.76 3.92 92.65 13.72 3.47 1.1 6.95 1.62 10.35 1.62 17.21 0 32.25-13.32 32.25-31.81V83.93c-.01-12.64-7.24-24.6-18.85-29.47zM48 132.22c20.12 5.04 41.12 7.57 62.72 8.93C104.84 170.54 79 192.69 48 192.69v-60.47zm0 285v-47.78c34.37 0 62.18 27.27 63.71 61.4-22.53-1.81-43.59-6.31-63.71-13.62zM320 352c-44.19 0-80-42.99-80-96 0-53.02 35.82-96 80-96s80 42.98 80 96c0 53.03-35.83 96-80 96zm272 27.78c-17.52-4.39-35.71-6.85-54.32-8.44 5.87-26.08 27.5-45.88 54.32-49.28v57.72zm0-236.11c-30.89-3.91-54.86-29.7-55.81-61.55 19.54 2.17 38.09 6.23 55.81 12.66v48.89z"]},L={prefix:"fas",iconName:"network-wired",icon:[640,512,[],"f6ff","M640 264v-16c0-8.84-7.16-16-16-16H344v-40h72c17.67 0 32-14.33 32-32V32c0-17.67-14.33-32-32-32H224c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h72v40H16c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16h104v40H64c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h160c17.67 0 32-14.33 32-32V352c0-17.67-14.33-32-32-32h-56v-40h304v40h-56c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h160c17.67 0 32-14.33 32-32V352c0-17.67-14.33-32-32-32h-56v-40h104c8.84 0 16-7.16 16-16zM256 128V64h128v64H256zm-64 320H96v-64h96v64zm352 0h-96v-64h96v64z"]},I={prefix:"fas",iconName:"paint-brush",icon:[512,512,[],"f1fc","M167.02 309.34c-40.12 2.58-76.53 17.86-97.19 72.3-2.35 6.21-8 9.98-14.59 9.98-11.11 0-45.46-27.67-55.25-34.35C0 439.62 37.93 512 128 512c75.86 0 128-43.77 128-120.19 0-3.11-.65-6.08-.97-9.13l-88.01-73.34zM457.89 0c-15.16 0-29.37 6.71-40.21 16.45C213.27 199.05 192 203.34 192 257.09c0 13.7 3.25 26.76 8.73 38.7l63.82 53.18c7.21 1.8 14.64 3.03 22.39 3.03 62.11 0 98.11-45.47 211.16-256.46 7.38-14.35 13.9-29.85 13.9-45.99C512 20.64 486 0 457.89 0z"]},O={prefix:"fas",iconName:"percentage",icon:[384,512,[],"f541","M109.25 173.25c24.99-24.99 24.99-65.52 0-90.51-24.99-24.99-65.52-24.99-90.51 0-24.99 24.99-24.99 65.52 0 90.51 25 25 65.52 25 90.51 0zm256 165.49c-24.99-24.99-65.52-24.99-90.51 0-24.99 24.99-24.99 65.52 0 90.51 24.99 24.99 65.52 24.99 90.51 0 25-24.99 25-65.51 0-90.51zm-1.94-231.43l-22.62-22.62c-12.5-12.5-32.76-12.5-45.25 0L20.69 359.44c-12.5 12.5-12.5 32.76 0 45.25l22.62 22.62c12.5 12.5 32.76 12.5 45.25 0l274.75-274.75c12.5-12.49 12.5-32.75 0-45.25z"]},D={prefix:"fas",iconName:"plus",icon:[448,512,[],"f067","M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"]},R={prefix:"fas",iconName:"project-diagram",icon:[640,512,[],"f542","M384 320H256c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h128c17.67 0 32-14.33 32-32V352c0-17.67-14.33-32-32-32zM192 32c0-17.67-14.33-32-32-32H32C14.33 0 0 14.33 0 32v128c0 17.67 14.33 32 32 32h95.72l73.16 128.04C211.98 300.98 232.4 288 256 288h.28L192 175.51V128h224V64H192V32zM608 0H480c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h128c17.67 0 32-14.33 32-32V32c0-17.67-14.33-32-32-32z"]},N={prefix:"fas",iconName:"question",icon:[384,512,[],"f128","M202.021 0C122.202 0 70.503 32.703 29.914 91.026c-7.363 10.58-5.093 25.086 5.178 32.874l43.138 32.709c10.373 7.865 25.132 6.026 33.253-4.148 25.049-31.381 43.63-49.449 82.757-49.449 30.764 0 68.816 19.799 68.816 49.631 0 22.552-18.617 34.134-48.993 51.164-35.423 19.86-82.299 44.576-82.299 106.405V320c0 13.255 10.745 24 24 24h72.471c13.255 0 24-10.745 24-24v-5.773c0-42.86 125.268-44.645 125.268-160.627C377.504 66.256 286.902 0 202.021 0zM192 373.459c-38.196 0-69.271 31.075-69.271 69.271 0 38.195 31.075 69.27 69.271 69.27s69.271-31.075 69.271-69.271-31.075-69.27-69.271-69.27z"]},P={prefix:"fas",iconName:"receipt",icon:[384,512,[],"f543","M358.4 3.2L320 48 265.6 3.2a15.9 15.9 0 0 0-19.2 0L192 48 137.6 3.2a15.9 15.9 0 0 0-19.2 0L64 48 25.6 3.2C15-4.7 0 2.8 0 16v480c0 13.2 15 20.7 25.6 12.8L64 464l54.4 44.8a15.9 15.9 0 0 0 19.2 0L192 464l54.4 44.8a15.9 15.9 0 0 0 19.2 0L320 464l38.4 44.8c10.5 7.9 25.6.4 25.6-12.8V16c0-13.2-15-20.7-25.6-12.8zM320 360c0 4.4-3.6 8-8 8H72c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h240c4.4 0 8 3.6 8 8v16zm0-96c0 4.4-3.6 8-8 8H72c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h240c4.4 0 8 3.6 8 8v16zm0-96c0 4.4-3.6 8-8 8H72c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h240c4.4 0 8 3.6 8 8v16z"]},F={prefix:"fas",iconName:"route",icon:[512,512,[],"f4d7","M416 320h-96c-17.6 0-32-14.4-32-32s14.4-32 32-32h96s96-107 96-160-43-96-96-96-96 43-96 96c0 25.5 22.2 63.4 45.3 96H320c-52.9 0-96 43.1-96 96s43.1 96 96 96h96c17.6 0 32 14.4 32 32s-14.4 32-32 32H185.5c-16 24.8-33.8 47.7-47.3 64H416c52.9 0 96-43.1 96-96s-43.1-96-96-96zm0-256c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zM96 256c-53 0-96 43-96 96s96 160 96 160 96-107 96-160-43-96-96-96zm0 128c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"]},Z={prefix:"fas",iconName:"search",icon:[512,512,[],"f002","M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"]},B={prefix:"fas",iconName:"server",icon:[512,512,[],"f233","M480 160H32c-17.673 0-32-14.327-32-32V64c0-17.673 14.327-32 32-32h448c17.673 0 32 14.327 32 32v64c0 17.673-14.327 32-32 32zm-48-88c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm-64 0c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm112 248H32c-17.673 0-32-14.327-32-32v-64c0-17.673 14.327-32 32-32h448c17.673 0 32 14.327 32 32v64c0 17.673-14.327 32-32 32zm-48-88c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm-64 0c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm112 248H32c-17.673 0-32-14.327-32-32v-64c0-17.673 14.327-32 32-32h448c17.673 0 32 14.327 32 32v64c0 17.673-14.327 32-32 32zm-48-88c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm-64 0c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24z"]},U={prefix:"fas",iconName:"tachometer-alt",icon:[576,512,[],"f3fd","M288 32C128.94 32 0 160.94 0 320c0 52.8 14.25 102.26 39.06 144.8 5.61 9.62 16.3 15.2 27.44 15.2h443c11.14 0 21.83-5.58 27.44-15.2C561.75 422.26 576 372.8 576 320c0-159.06-128.94-288-288-288zm0 64c14.71 0 26.58 10.13 30.32 23.65-1.11 2.26-2.64 4.23-3.45 6.67l-9.22 27.67c-5.13 3.49-10.97 6.01-17.64 6.01-17.67 0-32-14.33-32-32S270.33 96 288 96zM96 384c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm48-160c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm246.77-72.41l-61.33 184C343.13 347.33 352 364.54 352 384c0 11.72-3.38 22.55-8.88 32H232.88c-5.5-9.45-8.88-20.28-8.88-32 0-33.94 26.5-61.43 59.9-63.59l61.34-184.01c4.17-12.56 17.73-19.45 30.36-15.17 12.57 4.19 19.35 17.79 15.17 30.36zm14.66 57.2l15.52-46.55c3.47-1.29 7.13-2.23 11.05-2.23 17.67 0 32 14.33 32 32s-14.33 32-32 32c-11.38-.01-20.89-6.28-26.57-15.22zM480 384c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"]},q={prefix:"fas",iconName:"times",icon:[352,512,[],"f00d","M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"]},z={prefix:"fas",iconName:"tools",icon:[512,512,[],"f7d9","M501.1 395.7L384 278.6c-23.1-23.1-57.6-27.6-85.4-13.9L192 158.1V96L64 0 0 64l96 128h62.1l106.6 106.6c-13.6 27.8-9.2 62.3 13.9 85.4l117.1 117.1c14.6 14.6 38.2 14.6 52.7 0l52.7-52.7c14.5-14.6 14.5-38.2 0-52.7zM331.7 225c28.3 0 54.9 11 74.9 31l19.4 19.4c15.8-6.9 30.8-16.5 43.8-29.5 37.1-37.1 49.7-89.3 37.9-136.7-2.2-9-13.5-12.1-20.1-5.5l-74.4 74.4-67.9-11.3L334 98.9l74.4-74.4c6.6-6.6 3.4-17.9-5.7-20.2-47.4-11.7-99.6.9-136.6 37.9-28.5 28.5-41.9 66.1-41.2 103.6l82.1 82.1c8.1-1.9 16.5-2.9 24.7-2.9zm-103.9 82l-56.7-56.7L18.7 402.8c-25 25-25 65.5 0 90.5s65.5 25 90.5 0l123.6-123.6c-7.6-19.9-9.9-41.6-5-62.7zM64 472c-13.2 0-24-10.8-24-24 0-13.3 10.7-24 24-24s24 10.7 24 24c0 13.2-10.7 24-24 24z"]},H={prefix:"fas",iconName:"unlock-alt",icon:[448,512,[],"f13e","M400 256H152V152.9c0-39.6 31.7-72.5 71.3-72.9 40-.4 72.7 32.1 72.7 72v16c0 13.3 10.7 24 24 24h32c13.3 0 24-10.7 24-24v-16C376 68 307.5-.3 223.5 0 139.5.3 72 69.5 72 153.5V256H48c-26.5 0-48 21.5-48 48v160c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V304c0-26.5-21.5-48-48-48zM264 408c0 22.1-17.9 40-40 40s-40-17.9-40-40v-48c0-22.1 17.9-40 40-40s40 17.9 40 40v48z"]},Y={prefix:"fas",iconName:"user-check",icon:[640,512,[],"f4fc","M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4zm323-128.4l-27.8-28.1c-4.6-4.7-12.1-4.7-16.8-.1l-104.8 104-45.5-45.8c-4.6-4.7-12.1-4.7-16.8-.1l-28.1 27.9c-4.7 4.6-4.7 12.1-.1 16.8l81.7 82.3c4.6 4.7 12.1 4.7 16.8.1l141.3-140.2c4.6-4.7 4.7-12.2.1-16.8z"]},G={prefix:"fas",iconName:"user-clock",icon:[640,512,[],"f4fd","M496 224c-79.6 0-144 64.4-144 144s64.4 144 144 144 144-64.4 144-144-64.4-144-144-144zm64 150.3c0 5.3-4.4 9.7-9.7 9.7h-60.6c-5.3 0-9.7-4.4-9.7-9.7v-76.6c0-5.3 4.4-9.7 9.7-9.7h12.6c5.3 0 9.7 4.4 9.7 9.7V352h38.3c5.3 0 9.7 4.4 9.7 9.7v12.6zM320 368c0-27.8 6.7-54.1 18.2-77.5-8-1.5-16.2-2.5-24.6-2.5h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h347.1c-45.3-31.9-75.1-84.5-75.1-144zm-96-112c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128z"]},j={prefix:"fas",iconName:"user-cog",icon:[640,512,[],"f4fe","M610.5 373.3c2.6-14.1 2.6-28.5 0-42.6l25.8-14.9c3-1.7 4.3-5.2 3.3-8.5-6.7-21.6-18.2-41.2-33.2-57.4-2.3-2.5-6-3.1-9-1.4l-25.8 14.9c-10.9-9.3-23.4-16.5-36.9-21.3v-29.8c0-3.4-2.4-6.4-5.7-7.1-22.3-5-45-4.8-66.2 0-3.3.7-5.7 3.7-5.7 7.1v29.8c-13.5 4.8-26 12-36.9 21.3l-25.8-14.9c-2.9-1.7-6.7-1.1-9 1.4-15 16.2-26.5 35.8-33.2 57.4-1 3.3.4 6.8 3.3 8.5l25.8 14.9c-2.6 14.1-2.6 28.5 0 42.6l-25.8 14.9c-3 1.7-4.3 5.2-3.3 8.5 6.7 21.6 18.2 41.1 33.2 57.4 2.3 2.5 6 3.1 9 1.4l25.8-14.9c10.9 9.3 23.4 16.5 36.9 21.3v29.8c0 3.4 2.4 6.4 5.7 7.1 22.3 5 45 4.8 66.2 0 3.3-.7 5.7-3.7 5.7-7.1v-29.8c13.5-4.8 26-12 36.9-21.3l25.8 14.9c2.9 1.7 6.7 1.1 9-1.4 15-16.2 26.5-35.8 33.2-57.4 1-3.3-.4-6.8-3.3-8.5l-25.8-14.9zM496 400.5c-26.8 0-48.5-21.8-48.5-48.5s21.8-48.5 48.5-48.5 48.5 21.8 48.5 48.5-21.7 48.5-48.5 48.5zM224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm201.2 226.5c-2.3-1.2-4.6-2.6-6.8-3.9l-7.9 4.6c-6 3.4-12.8 5.3-19.6 5.3-10.9 0-21.4-4.6-28.9-12.6-18.3-19.8-32.3-43.9-40.2-69.6-5.5-17.7 1.9-36.4 17.9-45.7l7.9-4.6c-.1-2.6-.1-5.2 0-7.8l-7.9-4.6c-16-9.2-23.4-28-17.9-45.7.9-2.9 2.2-5.8 3.2-8.7-3.8-.3-7.5-1.2-11.4-1.2h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c10.1 0 19.5-3.2 27.2-8.5-1.2-3.8-2-7.7-2-11.8v-9.2z"]},V={prefix:"fas",iconName:"user-lock",icon:[640,512,[],"f502","M224 256A128 128 0 1 0 96 128a128 128 0 0 0 128 128zm96 64a63.08 63.08 0 0 1 8.1-30.5c-4.8-.5-9.5-1.5-14.5-1.5h-16.7a174.08 174.08 0 0 1-145.8 0h-16.7A134.43 134.43 0 0 0 0 422.4V464a48 48 0 0 0 48 48h280.9a63.54 63.54 0 0 1-8.9-32zm288-32h-32v-80a80 80 0 0 0-160 0v80h-32a32 32 0 0 0-32 32v160a32 32 0 0 0 32 32h224a32 32 0 0 0 32-32V320a32 32 0 0 0-32-32zM496 432a32 32 0 1 1 32-32 32 32 0 0 1-32 32zm32-144h-64v-80a32 32 0 0 1 64 0z"]},Q={prefix:"fas",iconName:"users",icon:[640,512,[],"f0c0","M96 224c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm448 0c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm32 32h-64c-17.6 0-33.5 7.1-45.1 18.6 40.3 22.1 68.9 62 75.1 109.4h66c17.7 0 32-14.3 32-32v-32c0-35.3-28.7-64-64-64zm-256 0c61.9 0 112-50.1 112-112S381.9 32 320 32 208 82.1 208 144s50.1 112 112 112zm76.8 32h-8.3c-20.8 10-43.9 16-68.5 16s-47.6-6-68.5-16h-8.3C179.6 288 128 339.6 128 403.2V432c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48v-28.8c0-63.6-51.6-115.2-115.2-115.2zm-223.7-13.4C161.5 263.1 145.6 256 128 256H64c-35.3 0-64 28.7-64 64v32c0 17.7 14.3 32 32 32h65.9c6.3-47.4 34.9-87.3 75.2-109.4z"]},W={prefix:"fas",iconName:"wallet",icon:[512,512,[],"f555","M461.2 128H80c-8.84 0-16-7.16-16-16s7.16-16 16-16h384c8.84 0 16-7.16 16-16 0-26.51-21.49-48-48-48H64C28.65 32 0 60.65 0 96v320c0 35.35 28.65 64 64 64h397.2c28.02 0 50.8-21.53 50.8-48V176c0-26.47-22.78-48-50.8-48zM416 336c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"]},J={prefix:"fas",iconName:"window-restore",icon:[512,512,[],"f2d2","M512 48v288c0 26.5-21.5 48-48 48h-48V176c0-44.1-35.9-80-80-80H128V48c0-26.5 21.5-48 48-48h288c26.5 0 48 21.5 48 48zM384 176v288c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V176c0-26.5 21.5-48 48-48h288c26.5 0 48 21.5 48 48zm-68 28c0-6.6-5.4-12-12-12H76c-6.6 0-12 5.4-12 12v52h252v-52z"]}},5573:(t,e,i)=>{"use strict";i.d(e,{eX:()=>F,sQ:()=>tt,GW:()=>L,l4:()=>Z});var n,r=i(964),s=i(5446),o=i(2391),a=i(9666),l=i(4951),c=i(2041),h=i(9647),u=i(7849);!function(t){t.NEXT="N",t.ERROR="E",t.COMPLETE="C"}(n||(n={}));var d=function(){function t(t,e,i){this.kind=t,this.value=e,this.error=i,this.hasValue="N"===t}return t.prototype.observe=function(t){return p(this,t)},t.prototype.do=function(t,e,i){var n=this,r=n.kind,s=n.error;return"N"===r?null==t?void 0:t(n.value):"E"===r?null==e?void 0:e(s):null==i?void 0:i()},t.prototype.accept=function(t,e,i){var n;return(0,u.m)(null===(n=t)||void 0===n?void 0:n.next)?this.observe(t):this.do(t,e,i)},t.prototype.toObservable=function(){var t=this,e=t.kind,i=t.error,n="N"===e?(0,c.of)(t.value):"E"===e?(0,h._)(function(){return i}):"C"===e?l.E:0;if(!n)throw new TypeError("Unexpected notification kind "+e);return n},t.createNext=function(e){return new t("N",e)},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t}();function p(t,e){var i,n,r,s=t.kind,o=t.value,a=t.error;if("string"!=typeof s)throw new TypeError('Invalid notification, missing "kind"');"N"===s?null===(i=e.next)||void 0===i||i.call(e,o):"E"===s?null===(n=e.error)||void 0===n||n.call(e,a):null===(r=e.complete)||void 0===r||r.call(e)}var f=i(3386),m=i(4659),g=i(9162),y=i(5630);function b(t,e,i,n){return(0,f.e)(function(r,s){var l;e&&"function"!=typeof e?(i=e.duration,l=e.element,n=e.connector):l=e;var c=new Map,h=function(t){c.forEach(t),t(s)},u=function(t){return h(function(e){return e.error(t)})},d=new v(s,function(e){try{var r=t(e),h=c.get(r);if(!h){c.set(r,h=n?n():new a.x);var p=(g=r,b=h,(v=new o.y(function(t){d.activeGroups++;var e=b.subscribe(t);return function(){e.unsubscribe(),0==--d.activeGroups&&d.teardownAttempted&&d.unsubscribe()}})).key=g,v);if(s.next(p),i){var f=new m.Q(h,function(){h.complete(),null==f||f.unsubscribe()},void 0,void 0,function(){return c.delete(r)});d.add((0,y.Xf)(i(p)).subscribe(f))}}h.next(l?l(e):e)}catch(_){u(_)}var g,b,v},function(){return h(function(t){return t.complete()})},u,function(){return c.clear()});r.subscribe(d)})}var v=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.activeGroups=0,e.teardownAttempted=!1,e}return(0,g.ZT)(e,t),e.prototype.unsubscribe=function(){this.teardownAttempted=!0,0===this.activeGroups&&t.prototype.unsubscribe.call(this)},e}(m.Q),_=i(1681);function w(t,e){return e?function(i){return i.pipe(w(function(i,n){return(0,y.Xf)(t(i,n)).pipe((0,_.U)(function(t,r){return e(i,t,n,r)}))}))}:(0,f.e)(function(e,i){var n=0,r=null,s=!1;e.subscribe(new m.Q(i,function(e){r||(r=new m.Q(i,void 0,function(){r=null,s&&i.complete()}),(0,y.Xf)(t(e,n++)).subscribe(r))},function(){s=!0,!r&&i.complete()}))})}var x=i(3286),C=i(1816),A=i(8868),S=i(7228),E=i(9056),k=i(1572);const T={dispatch:!0,useEffectsErrorHandler:!0},M="__@ngrx/effects_create__";function L(t,e){const i=t(),n=Object.assign(Object.assign({},T),e);return Object.defineProperty(i,M,{value:n}),i}function I(t){return Object.getOwnPropertyNames(t).filter(e=>!(!t[e]||!t[e].hasOwnProperty(M))&&t[e][M].hasOwnProperty("dispatch")).map(e=>Object.assign({propertyName:e},t[e][M]))}function O(t){return Object.getPrototypeOf(t)}const D="__@ngrx/effects__";function R(t){return(0,r.qC)(N,O)(t)}function N(t){return function(t){return t.constructor.hasOwnProperty(D)}(t)?t.constructor[D]:[]}function P(t,e,i=10){return t.pipe((0,C.K)(n=>(e&&e.handleError(n),i<=1?t:P(t,e,i-1))))}let F=(()=>{class t extends o.y{constructor(t){super(),t&&(this.source=t)}lift(e){const i=new t;return i.source=this,i.operator=e,i}}return t.\u0275fac=function(e){return new(e||t)(k.LFG(r.Y$))},t.\u0275prov=k.Yz7({token:t,factory:t.\u0275fac}),t})();function Z(...t){return(0,A.h)(e=>t.some(t=>"string"==typeof t?t===e.type:t.type===e.type))}function B(t){return U(t,"ngrxOnInitEffects")}function U(t,e){return t&&e in t&&"function"==typeof t[e]}const q=new k.OlP("@ngrx/effects Internal Root Guard"),z=new k.OlP("@ngrx/effects User Provided Effects"),H=new k.OlP("@ngrx/effects Internal Root Effects"),Y=new k.OlP("@ngrx/effects Root Effects"),G=new k.OlP("@ngrx/effects Internal Feature Effects"),j=new k.OlP("@ngrx/effects Feature Effects"),V=new k.OlP("@ngrx/effects Effects Error Handler");let Q=(()=>{class t extends a.x{constructor(t,e){super(),this.errorHandler=t,this.effectsErrorHandler=e}addEffects(t){this.next(t)}toActions(){return this.pipe(b(O),(0,S.z)(t=>t.pipe(b(W))),(0,S.z)(t=>{const e=t.pipe(w(t=>{return(e=this.errorHandler,i=this.effectsErrorHandler,t=>{const n=function(t,e,i){const n=O(t).constructor.name,r=(o=t,[R,I].reduce((t,e)=>t.concat(e(o)),[])).map(({propertyName:r,dispatch:s,useEffectsErrorHandler:o})=>{const a="function"==typeof t[r]?t[r]():t[r],l=o?i(a,e):a;return!1===s?l.pipe((0,x.l)()):l.pipe((0,f.e)(function(t,e){t.subscribe(new m.Q(e,function(t){e.next(d.createNext(t))},function(){e.next(d.createComplete()),e.complete()},function(t){e.next(d.createError(t)),e.complete()}))})).pipe((0,_.U)(e=>({effect:t[r],notification:e,propertyName:r,sourceName:n,sourceInstance:t})))});var o;return(0,s.T)(...r)}(t,e,i);return U(t,"ngrxOnRunEffects")?t.ngrxOnRunEffects(n):n})(t);var e,i}),(0,_.U)(t=>(function(t,e){if("N"===t.notification.kind){const i=t.notification.value;!function(t){return"function"!=typeof t&&t&&t.type&&"string"==typeof t.type}(i)&&e.handleError(new Error(`Effect ${function({propertyName:t,sourceInstance:e,sourceName:i}){const n="function"==typeof e[t];return`"${i}.${String(t)}${n?"()":""}"`}(t)} dispatched an invalid action: ${function(t){try{return JSON.stringify(t)}catch(e){return t}}(i)}`))}}(t,this.errorHandler),t.notification)),(0,A.h)(t=>"N"===t.kind&&null!=t.value),(0,f.e)(function(t,e){t.subscribe(new m.Q(e,function(t){return p(t,e)}))})),i=t.pipe((0,E.q)(1),(0,A.h)(B),(0,_.U)(t=>t.ngrxOnInitEffects()));return(0,s.T)(e,i)}))}}return t.\u0275fac=function(e){return new(e||t)(k.LFG(k.qLn),k.LFG(V))},t.\u0275prov=k.Yz7({token:t,factory:t.\u0275fac}),t})();function W(t){return U(t,"ngrxOnIdentifyEffects")?t.ngrxOnIdentifyEffects():""}let J=(()=>{class t{constructor(t,e){this.effectSources=t,this.store=e,this.effectsSubscription=null}start(){this.effectsSubscription||(this.effectsSubscription=this.effectSources.toActions().subscribe(this.store))}ngOnDestroy(){this.effectsSubscription&&(this.effectsSubscription.unsubscribe(),this.effectsSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(k.LFG(Q),k.LFG(r.yh))},t.\u0275prov=k.Yz7({token:t,factory:t.\u0275fac}),t})();const X="@ngrx/effects/init";(0,r.PH)(X);let K=(()=>{class t{constructor(t,e,i,n,r,s,o){this.sources=t,e.start(),n.forEach(e=>t.addEffects(e)),i.dispatch({type:X})}addEffects(t){this.sources.addEffects(t)}}return t.\u0275fac=function(e){return new(e||t)(k.LFG(Q),k.LFG(J),k.LFG(r.yh),k.LFG(Y),k.LFG(r.cr,8),k.LFG(r.CK,8),k.LFG(q,8))},t.\u0275mod=k.oAB({type:t}),t.\u0275inj=k.cJS({}),t})(),$=(()=>{class t{constructor(t,e,i,n){e.forEach(e=>e.forEach(e=>t.addEffects(e)))}}return t.\u0275fac=function(e){return new(e||t)(k.LFG(K),k.LFG(j),k.LFG(r.cr,8),k.LFG(r.CK,8))},t.\u0275mod=k.oAB({type:t}),t.\u0275inj=k.cJS({}),t})(),tt=(()=>{class t{static forFeature(t=[]){return{ngModule:$,providers:[t,{provide:G,multi:!0,useValue:t},{provide:z,multi:!0,useValue:[]},{provide:j,multi:!0,useFactory:et,deps:[k.zs3,G,z]}]}}static forRoot(t=[]){return{ngModule:K,providers:[{provide:V,useValue:P},J,Q,F,t,{provide:H,useValue:[t]},{provide:q,useFactory:it,deps:[[J,new k.FiY,new k.tp0],[H,new k.PiD]]},{provide:z,multi:!0,useValue:[]},{provide:Y,useFactory:et,deps:[k.zs3,H,z]}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=k.oAB({type:t}),t.\u0275inj=k.cJS({}),t})();function et(t,e,i){const n=[];for(const r of e)n.push(...r);for(const r of i)n.push(...r);return function(t,e){return e.map(e=>t.get(e))}(t,n)}function it(t,e){if((1!==e.length||0!==e[0].length)&&t)throw new TypeError("EffectsModule.forRoot() called twice. Feature modules should use EffectsModule.forFeature() instead.");return"guarded"}},7876:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{FT:()=>StoreDevtoolsModule});var _angular_core__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1572),_ngrx_store__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(964),rxjs__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(4951),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(2391),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(2041),rxjs__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(5446),rxjs__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(2873),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(6407),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(7839),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(8868),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(1681),rxjs_operators__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(8196),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(7411),rxjs_operators__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(5057),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(1816),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(9056),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(9568),rxjs_operators__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(4324),rxjs_operators__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(4444),rxjs_operators__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(8919),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(5653),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(8193);class StoreDevtoolsConfig{constructor(){this.maxAge=!1}}const STORE_DEVTOOLS_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_0__.OlP("@ngrx/store-devtools Options"),INITIAL_OPTIONS=new _angular_core__WEBPACK_IMPORTED_MODULE_0__.OlP("@ngrx/store-devtools Initial Config");function noMonitor(){return null}const DEFAULT_NAME="NgRx Store DevTools";function createConfig(t){const e={maxAge:!1,monitor:noMonitor,actionSanitizer:void 0,stateSanitizer:void 0,name:DEFAULT_NAME,serialize:!1,logOnly:!1,autoPause:!1,features:{pause:!0,lock:!0,persist:!0,export:!0,import:"custom",jump:!0,skip:!0,reorder:!0,dispatch:!0,test:!0}},i="function"==typeof t?t():t,n=Object.assign({},e,{features:i.features||!!i.logOnly&&{pause:!0,export:!0,test:!0}||e.features},i);if(n.maxAge&&n.maxAge<2)throw new Error(`Devtools 'maxAge' cannot be less than 2, got ${n.maxAge}`);return n}const PERFORM_ACTION="PERFORM_ACTION",REFRESH="REFRESH",RESET="RESET",ROLLBACK="ROLLBACK",COMMIT="COMMIT",SWEEP="SWEEP",TOGGLE_ACTION="TOGGLE_ACTION",SET_ACTIONS_ACTIVE="SET_ACTIONS_ACTIVE",JUMP_TO_STATE="JUMP_TO_STATE",JUMP_TO_ACTION="JUMP_TO_ACTION",IMPORT_STATE="IMPORT_STATE",LOCK_CHANGES="LOCK_CHANGES",PAUSE_RECORDING="PAUSE_RECORDING";class PerformAction{constructor(t,e){if(this.action=t,this.timestamp=e,this.type=PERFORM_ACTION,void 0===t.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?')}}class Refresh{constructor(){this.type=REFRESH}}class Reset{constructor(t){this.timestamp=t,this.type=RESET}}class Rollback{constructor(t){this.timestamp=t,this.type=ROLLBACK}}class Commit{constructor(t){this.timestamp=t,this.type=COMMIT}}class Sweep{constructor(){this.type=SWEEP}}class ToggleAction{constructor(t){this.id=t,this.type=TOGGLE_ACTION}}class SetActionsActive{constructor(t,e,i=!0){this.start=t,this.end=e,this.active=i,this.type=SET_ACTIONS_ACTIVE}}class JumpToState{constructor(t){this.index=t,this.type=JUMP_TO_STATE}}class JumpToAction{constructor(t){this.actionId=t,this.type=JUMP_TO_ACTION}}class ImportState{constructor(t){this.nextLiftedState=t,this.type=IMPORT_STATE}}class LockChanges{constructor(t){this.status=t,this.type=LOCK_CHANGES}}class PauseRecording{constructor(t){this.status=t,this.type=PAUSE_RECORDING}}let DevtoolsDispatcher=(()=>{class t extends _ngrx_store__WEBPACK_IMPORTED_MODULE_1__.UO{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=_angular_core__WEBPACK_IMPORTED_MODULE_0__.n5z(t)))(i||t)}}(),t.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:t,factory:t.\u0275fac}),t})();function difference(t,e){return t.filter(t=>e.indexOf(t)<0)}function unliftState(t){const{computedStates:e,currentStateIndex:i}=t;if(i>=e.length){const{state:t}=e[e.length-1];return t}const{state:n}=e[i];return n}function unliftAction(t){return t.actionsById[t.nextActionId-1]}function liftAction(t){return new PerformAction(t,+Date.now())}function sanitizeActions(t,e){return Object.keys(e).reduce((i,n)=>{const r=Number(n);return i[r]=sanitizeAction(t,e[r],r),i},{})}function sanitizeAction(t,e,i){return Object.assign(Object.assign({},e),{action:t(e.action,i)})}function sanitizeStates(t,e){return e.map((e,i)=>({state:sanitizeState(t,e.state,i),error:e.error}))}function sanitizeState(t,e,i){return t(e,i)}function shouldFilterActions(t){return t.predicate||t.actionsSafelist||t.actionsBlocklist}function filterLiftedState(t,e,i,n){const r=[],s={},o=[];return t.stagedActionIds.forEach((a,l)=>{const c=t.actionsById[a];c&&(l&&isActionFiltered(t.computedStates[l],c,e,i,n)||(s[a]=c,r.push(a),o.push(t.computedStates[l])))}),Object.assign(Object.assign({},t),{stagedActionIds:r,actionsById:s,computedStates:o})}function isActionFiltered(t,e,i,n,r){const s=i&&!i(t,e.action),o=n&&!e.action.type.match(n.map(t=>escapeRegExp(t)).join("|")),a=r&&e.action.type.match(r.map(t=>escapeRegExp(t)).join("|"));return s||o||a}function escapeRegExp(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const ExtensionActionTypes={START:"START",DISPATCH:"DISPATCH",STOP:"STOP",ACTION:"ACTION"},REDUX_DEVTOOLS_EXTENSION=new _angular_core__WEBPACK_IMPORTED_MODULE_0__.OlP("@ngrx/store-devtools Redux Devtools Extension");let DevtoolsExtension=(()=>{class DevtoolsExtension{constructor(t,e,i){this.config=e,this.dispatcher=i,this.devtoolsExtension=t,this.createActionStreams()}notify(t,e){if(this.devtoolsExtension)if(t.type===PERFORM_ACTION){if(e.isLocked||e.isPaused)return;const i=unliftState(e);if(shouldFilterActions(this.config)&&isActionFiltered(i,t,this.config.predicate,this.config.actionsSafelist,this.config.actionsBlocklist))return;const n=this.config.stateSanitizer?sanitizeState(this.config.stateSanitizer,i,e.currentStateIndex):i,r=this.config.actionSanitizer?sanitizeAction(this.config.actionSanitizer,t,e.nextActionId):t;this.sendToReduxDevtools(()=>this.extensionConnection.send(r,n))}else{const t=Object.assign(Object.assign({},e),{stagedActionIds:e.stagedActionIds,actionsById:this.config.actionSanitizer?sanitizeActions(this.config.actionSanitizer,e.actionsById):e.actionsById,computedStates:this.config.stateSanitizer?sanitizeStates(this.config.stateSanitizer,e.computedStates):e.computedStates});this.sendToReduxDevtools(()=>this.devtoolsExtension.send(null,t,this.getExtensionConfig(this.config)))}}createChangesObservable(){return this.devtoolsExtension?new rxjs__WEBPACK_IMPORTED_MODULE_3__.y(t=>{const e=this.devtoolsExtension.connect(this.getExtensionConfig(this.config));return this.extensionConnection=e,e.init(),e.subscribe(e=>t.next(e)),e.unsubscribe}):rxjs__WEBPACK_IMPORTED_MODULE_2__.E}createActionStreams(){const t=this.createChangesObservable().pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.B)()),e=t.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(t=>t.type===ExtensionActionTypes.START)),i=t.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(t=>t.type===ExtensionActionTypes.STOP)),n=t.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(t=>t.type===ExtensionActionTypes.DISPATCH),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(t=>this.unwrapAction(t.payload)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.b)(t=>t.type===IMPORT_STATE?this.dispatcher.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(t=>t.type===_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.wb),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.V)(1e3),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_9__.b)(1e3),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(()=>t),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.K)(()=>(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.of)(t)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.q)(1)):(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.of)(t))),r=t.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(t=>t.type===ExtensionActionTypes.ACTION),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(t=>this.unwrapAction(t.payload))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.R)(i)),s=n.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.R)(i));this.start$=e.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.R)(i)),this.actions$=this.start$.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.w)(()=>r)),this.liftedActions$=this.start$.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.w)(()=>s))}unwrapAction(action){return"string"==typeof action?eval(`(${action})`):action}getExtensionConfig(t){var e;const i={name:t.name,features:t.features,serialize:t.serialize,autoPause:null!==(e=t.autoPause)&&void 0!==e&&e};return!1!==t.maxAge&&(i.maxAge=t.maxAge),i}sendToReduxDevtools(t){try{t()}catch(e){console.warn("@ngrx/store-devtools: something went wrong inside the redux devtools",e)}}}return DevtoolsExtension.\u0275fac=function(t){return new(t||DevtoolsExtension)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(REDUX_DEVTOOLS_EXTENSION),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(STORE_DEVTOOLS_CONFIG),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(DevtoolsDispatcher))},DevtoolsExtension.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:DevtoolsExtension,factory:DevtoolsExtension.\u0275fac}),DevtoolsExtension})();const INIT_ACTION={type:_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.qg},RECOMPUTE="@ngrx/store-devtools/recompute",RECOMPUTE_ACTION={type:RECOMPUTE};function computeNextEntry(t,e,i,n,r){if(n)return{state:i,error:"Interrupted by an error up the chain"};let s,o=i;try{o=t(i,e)}catch(a){s=a.toString(),r.handleError(a)}return{state:o,error:s}}function recomputeStates(t,e,i,n,r,s,o,a,l){if(e>=t.length&&t.length===s.length)return t;const c=t.slice(0,e),h=s.length-(l?1:0);for(let u=e;u-1?l:computeNextEntry(i,e,h,d,a);c.push(p)}return l&&c.push(t[t.length-1]),c}function liftInitialState(t,e){return{monitorState:e(void 0,{}),nextActionId:1,actionsById:{0:liftAction(INIT_ACTION)},stagedActionIds:[0],skippedActionIds:[],committedState:t,currentStateIndex:0,computedStates:[],isLocked:!1,isPaused:!1}}function liftReducerWith(t,e,i,n,r={}){return s=>(o,a)=>{let{monitorState:l,actionsById:c,nextActionId:h,stagedActionIds:u,skippedActionIds:d,committedState:p,currentStateIndex:f,computedStates:m,isLocked:g,isPaused:y}=o||e;function b(t){let e=t,i=u.slice(1,e+1);for(let n=0;n-1===i.indexOf(t)),u=[0,...u.slice(e+1)],p=m[e].state,m=m.slice(e),f=f>e?f-e:0}function v(){c={0:liftAction(INIT_ACTION)},h=1,u=[0],d=[],p=m[f].state,f=0,m=[]}o||(c=Object.create(c));let _=0;switch(a.type){case LOCK_CHANGES:g=a.status,_=1/0;break;case PAUSE_RECORDING:y=a.status,y?(u=[...u,h],c[h]=new PerformAction({type:"@ngrx/devtools/pause"},+Date.now()),h++,_=u.length-1,m=m.concat(m[m.length-1]),f===u.length-2&&f++,_=1/0):v();break;case RESET:c={0:liftAction(INIT_ACTION)},h=1,u=[0],d=[],p=t,f=0,m=[];break;case COMMIT:v();break;case ROLLBACK:c={0:liftAction(INIT_ACTION)},h=1,u=[0],d=[],f=0,m=[];break;case TOGGLE_ACTION:{const{id:t}=a,e=d.indexOf(t);d=-1===e?[t,...d]:d.filter(e=>e!==t),_=u.indexOf(t);break}case SET_ACTIONS_ACTIVE:{const{start:t,end:e,active:i}=a,n=[];for(let r=t;rr.maxAge&&(m=recomputeStates(m,_,s,p,c,u,d,i,y),b(u.length-r.maxAge),_=1/0);break;case _ngrx_store__WEBPACK_IMPORTED_MODULE_1__.wb:if(m.filter(t=>t.error).length>0)_=0,r.maxAge&&u.length>r.maxAge&&(m=recomputeStates(m,_,s,p,c,u,d,i,y),b(u.length-r.maxAge),_=1/0);else{if(!y&&!g){f===u.length-1&&f++;const t=h++;c[t]=new PerformAction(a,+Date.now()),u=[...u,t],_=u.length-1,m=recomputeStates(m,_,s,p,c,u,d,i,y)}m=m.map(t=>Object.assign(Object.assign({},t),{state:s(t.state,RECOMPUTE_ACTION)})),f=u.length-1,r.maxAge&&u.length>r.maxAge&&b(u.length-r.maxAge),_=1/0}break;default:_=1/0}return m=recomputeStates(m,_,s,p,c,u,d,i,y),l=n(l,a),{monitorState:l,actionsById:c,nextActionId:h,stagedActionIds:u,skippedActionIds:d,committedState:p,currentStateIndex:f,computedStates:m,isLocked:g,isPaused:y}}}let StoreDevtools=(()=>{class t{constructor(t,e,i,n,r,s,o,a){const l=liftInitialState(o,a.monitor),c=liftReducerWith(o,l,s,a.monitor,a),h=(0,rxjs__WEBPACK_IMPORTED_MODULE_15__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_15__.T)(e.asObservable().pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_16__.T)(1)),n.actions$).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(liftAction)),t,n.liftedActions$).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_17__.Q)(rxjs__WEBPACK_IMPORTED_MODULE_18__.N)),u=i.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(c)),d=new rxjs__WEBPACK_IMPORTED_MODULE_19__.t(1),p=h.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.M)(u),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.R)(({state:t},[e,i])=>{let r=i(t,e);return e.type!==PERFORM_ACTION&&shouldFilterActions(a)&&(r=filterLiftedState(r,a.predicate,a.actionsSafelist,a.actionsBlocklist)),n.notify(e,r),{state:r,action:e}},{state:l,action:null})).subscribe(({state:t,action:e})=>{d.next(t),e.type===PERFORM_ACTION&&r.next(e.action)}),f=n.start$.subscribe(()=>{this.refresh()}),m=d.asObservable(),g=m.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(unliftState));this.extensionStartSubscription=f,this.stateSubscription=p,this.dispatcher=t,this.liftedState=m,this.state=g}dispatch(t){this.dispatcher.next(t)}next(t){this.dispatcher.next(t)}error(t){}complete(){}performAction(t){this.dispatch(new PerformAction(t,+Date.now()))}refresh(){this.dispatch(new Refresh)}reset(){this.dispatch(new Reset(+Date.now()))}rollback(){this.dispatch(new Rollback(+Date.now()))}commit(){this.dispatch(new Commit(+Date.now()))}sweep(){this.dispatch(new Sweep)}toggleAction(t){this.dispatch(new ToggleAction(t))}jumpToAction(t){this.dispatch(new JumpToAction(t))}jumpToState(t){this.dispatch(new JumpToState(t))}importState(t){this.dispatch(new ImportState(t))}lockChanges(t){this.dispatch(new LockChanges(t))}pauseRecording(t){this.dispatch(new PauseRecording(t))}}return t.\u0275fac=function(e){return new(e||t)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(DevtoolsDispatcher),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.UO),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.n$),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(DevtoolsExtension),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.Y$),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_angular_core__WEBPACK_IMPORTED_MODULE_0__.qLn),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.Y6),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(STORE_DEVTOOLS_CONFIG))},t.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:t,factory:t.\u0275fac}),t})();const IS_EXTENSION_OR_MONITOR_PRESENT=new _angular_core__WEBPACK_IMPORTED_MODULE_0__.OlP("@ngrx/store-devtools Is Devtools Extension or Monitor Present");function createIsExtensionOrMonitorPresent(t,e){return Boolean(t)||e.monitor!==noMonitor}function createReduxDevtoolsExtension(){const t="__REDUX_DEVTOOLS_EXTENSION__";return"object"==typeof window&&void 0!==window[t]?window[t]:null}function createStateObservable(t){return t.state}let StoreDevtoolsModule=(()=>{class t{static instrument(e={}){return{ngModule:t,providers:[DevtoolsExtension,DevtoolsDispatcher,StoreDevtools,{provide:INITIAL_OPTIONS,useValue:e},{provide:IS_EXTENSION_OR_MONITOR_PRESENT,deps:[REDUX_DEVTOOLS_EXTENSION,STORE_DEVTOOLS_CONFIG],useFactory:createIsExtensionOrMonitorPresent},{provide:REDUX_DEVTOOLS_EXTENSION,useFactory:createReduxDevtoolsExtension},{provide:STORE_DEVTOOLS_CONFIG,deps:[INITIAL_OPTIONS],useFactory:createConfig},{provide:_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.FR,deps:[StoreDevtools],useFactory:createStateObservable},{provide:_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.mK,useExisting:DevtoolsDispatcher}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_0__.oAB({type:t}),t.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_0__.cJS({}),t})()},964:(t,e,i)=>{"use strict";i.d(e,{UO:()=>y,qg:()=>g,Y6:()=>w,mK:()=>Y,n$:()=>H,Y$:()=>Q,FR:()=>J,yh:()=>tt,CK:()=>wt,Aw:()=>xt,cr:()=>_t,wb:()=>G,qC:()=>q,PH:()=>f});var n=i(1572),r=i(7425),s=i(2391),o=i(9666),a=i(2873),l=i(1681),c=i(8919),h=i(5653),u=i(8193),d=i(6424);const p={};function f(t,e){if(p[t]=(p[t]||0)+1,"function"==typeof e)return m(t,(...i)=>Object.assign(Object.assign({},e(...i)),{type:t}));switch(e?e._as:"empty"){case"empty":return m(t,()=>({type:t}));case"props":return m(t,e=>Object.assign(Object.assign({},e),{type:t}));default:throw new Error("Unexpected config.")}}function m(t,e){return Object.defineProperty(e,"type",{value:t,writable:!1})}const g="@ngrx/store/init";let y=(()=>{class t extends r.X{constructor(){super({type:g})}next(t){if("function"==typeof t)throw new TypeError("\n Dispatch expected an object, instead it received a function.\n If you're using the createAction function, make sure to invoke the function\n before dispatching the action. For example, someAction should be someAction().");if(void 0===t)throw new TypeError("Actions must be objects");if(void 0===t.type)throw new TypeError("Actions must have a type property");super.next(t)}complete(){}ngOnDestroy(){super.complete()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})();const b=[y],v=new n.OlP("@ngrx/store Internal Root Guard"),_=new n.OlP("@ngrx/store Internal Initial State"),w=new n.OlP("@ngrx/store Initial State"),x=new n.OlP("@ngrx/store Reducer Factory"),C=new n.OlP("@ngrx/store Internal Reducer Factory Provider"),A=new n.OlP("@ngrx/store Initial Reducers"),S=new n.OlP("@ngrx/store Internal Initial Reducers"),E=new n.OlP("@ngrx/store Store Features"),k=new n.OlP("@ngrx/store Internal Store Reducers"),T=new n.OlP("@ngrx/store Internal Feature Reducers"),M=new n.OlP("@ngrx/store Internal Feature Configs"),L=new n.OlP("@ngrx/store Internal Store Features"),I=new n.OlP("@ngrx/store Internal Feature Reducers Token"),O=new n.OlP("@ngrx/store Feature Reducers"),D=new n.OlP("@ngrx/store User Provided Meta Reducers"),R=new n.OlP("@ngrx/store Meta Reducers"),N=new n.OlP("@ngrx/store Internal Resolved Meta Reducers"),P=new n.OlP("@ngrx/store User Runtime Checks Config"),F=new n.OlP("@ngrx/store Internal User Runtime Checks Config"),Z=new n.OlP("@ngrx/store Internal Runtime Checks"),B=new n.OlP("@ngrx/store Check if Action types are unique");function U(t,e={}){const i=Object.keys(t),n={};for(let s=0;se(t),i(e))}}function z(t,e){return Array.isArray(e)&&e.length>0&&(t=q.apply(null,[...e,t])),(e,i)=>{const n=t(e);return(t,e)=>n(t=void 0===t?i:t,e)}}class H extends s.y{}class Y extends y{}const G="@ngrx/store/update-reducers";let j=(()=>{class t extends r.X{constructor(t,e,i,n){super(n(i,e)),this.dispatcher=t,this.initialState=e,this.reducers=i,this.reducerFactory=n}addFeature(t){this.addFeatures([t])}addFeatures(t){const e=t.reduce((t,{reducers:e,reducerFactory:i,metaReducers:n,initialState:r,key:s})=>{const o="function"==typeof e?function(t){const e=Array.isArray(t)&&t.length>0?q(...t):t=>t;return(t,i)=>(t=e(t),(e,n)=>t(e=void 0===e?i:e,n))}(n)(e,r):z(i,n)(e,r);return t[s]=o,t},{});this.addReducers(e)}removeFeature(t){this.removeFeatures([t])}removeFeatures(t){this.removeReducers(t.map(t=>t.key))}addReducer(t,e){this.addReducers({[t]:e})}addReducers(t){this.reducers=Object.assign(Object.assign({},this.reducers),t),this.updateReducers(Object.keys(t))}removeReducer(t){this.removeReducers([t])}removeReducers(t){t.forEach(t=>{var e,i;this.reducers=(e=this.reducers,i=t,Object.keys(e).filter(t=>t!==i).reduce((t,i)=>Object.assign(t,{[i]:e[i]}),{}))}),this.updateReducers(t)}updateReducers(t){this.next(this.reducerFactory(this.reducers,this.initialState)),this.dispatcher.next({type:G,features:t})}ngOnDestroy(){this.complete()}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(Y),n.LFG(w),n.LFG(A),n.LFG(x))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})();const V=[j,{provide:H,useExisting:j},{provide:Y,useExisting:y}];let Q=(()=>{class t extends o.x{ngOnDestroy(){this.complete()}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=n.n5z(t)))(i||t)}}(),t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})();const W=[Q];class J extends s.y{}let X=(()=>{class t extends r.X{constructor(t,e,i,n){super(n);const r=t.pipe((0,c.Q)(a.N)).pipe((0,h.M)(e)).pipe((0,u.R)(K,{state:n}));this.stateSubscription=r.subscribe(({state:t,action:e})=>{this.next(t),i.next(e)})}ngOnDestroy(){this.stateSubscription.unsubscribe(),this.complete()}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(y),n.LFG(H),n.LFG(Q),n.LFG(w))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t.INIT=g,t})();function K(t={state:void 0},[e,i]){const{state:n}=t;return{state:i(n,e),action:e}}const $=[X,{provide:J,useExisting:X}];let tt=(()=>{class t extends s.y{constructor(t,e,i){super(),this.actionsObserver=e,this.reducerManager=i,this.source=t}select(t,...e){return it.call(null,t,...e)(this)}lift(e){const i=new t(this,this.actionsObserver,this.reducerManager);return i.operator=e,i}dispatch(t){this.actionsObserver.next(t)}next(t){this.actionsObserver.next(t)}error(t){this.actionsObserver.error(t)}complete(){this.actionsObserver.complete()}addReducer(t,e){this.reducerManager.addReducer(t,e)}removeReducer(t){this.reducerManager.removeReducer(t)}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(J),n.LFG(y),n.LFG(j))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})();const et=[tt];function it(t,e,...i){return function(n){let r;if("string"==typeof t){const s=[e,...i].filter(Boolean);r=n.pipe(function(){for(var t=[],e=0;et(i,e)))}return r.pipe((0,d.x)())}}const nt="https://ngrx.io/guide/store/configuration/runtime-checks";function rt(t){return void 0===t}function st(t){return null===t}function ot(t){return Array.isArray(t)}function at(t){return"object"==typeof t&&null!==t}function lt(t){return"function"==typeof t}function ct(t){Object.freeze(t);const e=lt(t);return Object.getOwnPropertyNames(t).forEach(i=>{if(!i.startsWith("\u0275")&&function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}(t,i)&&(!e||"caller"!==i&&"callee"!==i&&"arguments"!==i)){const e=t[i];!at(e)&&!lt(e)||Object.isFrozen(e)||ct(e)}}),t}function ht(t,e=[]){return(rt(t)||st(t))&&0===e.length?{path:["root"],value:t}:Object.keys(t).reduce((i,n)=>{if(i)return i;const r=t[n];return function(t){return lt(t)&&t.hasOwnProperty("\u0275cmp")}(r)?i:!(rt(r)||st(r)||function(t){return"number"==typeof t}(r)||function(t){return"boolean"==typeof t}(r)||function(t){return"string"==typeof t}(r)||ot(r))&&(function(t){if(!function(t){return at(t)&&!ot(t)}(t))return!1;const e=Object.getPrototypeOf(t);return e===Object.prototype||null===e}(r)?ht(r,[...e,n]):{path:[...e,n],value:r})},!1)}function ut(t,e){if(!1===t)return;const i=t.path.join("."),n=new Error(`Detected unserializable ${e} at "${i}". ${nt}#strict${e}serializability`);throw n.value=t.value,n.unserializablePath=i,n}function dt(t){return(0,n.X6Q)()?Object.assign({strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!0,strictActionImmutability:!0,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1},t):{strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!1,strictActionImmutability:!1,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1}}function pt({strictActionSerializability:t,strictStateSerializability:e}){return i=>t||e?function(t,e){return function(i,n){e.action(n)&&ut(ht(n),"action");const r=t(i,n);return e.state()&&ut(ht(r),"state"),r}}(i,{action:e=>t&&!mt(e),state:()=>e}):i}function ft({strictActionImmutability:t,strictStateImmutability:e}){return i=>t||e?function(t,e){return function(i,n){const r=e.action(n)?ct(n):n,s=t(i,r);return e.state()?ct(s):s}}(i,{action:e=>t&&!mt(e),state:()=>e}):i}function mt(t){return t.type.startsWith("@ngrx")}function gt({strictActionWithinNgZone:t}){return e=>t?function(t,e){return function(i,r){if(e.action(r)&&!n.R0b.isInAngularZone())throw new Error(`Action '${r.type}' running outside NgZone. ${nt}#strictactionwithinngzone`);return t(i,r)}}(e,{action:e=>t&&!mt(e)}):e}function yt(){return[{provide:B,multi:!0,deps:[Z],useFactory:vt}]}function bt(t){return t}function vt(t){if(!t.strictActionTypeUniqueness)return;const e=Object.entries(p).filter(([,t])=>t>1).map(([t])=>t);if(e.length)throw new Error(`Action types are registered more than once, ${e.map(t=>`"${t}"`).join(", ")}. ${nt}#strictactiontypeuniqueness`)}let _t=(()=>{class t{constructor(t,e,i,n,r,s){}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(y),n.LFG(H),n.LFG(Q),n.LFG(tt),n.LFG(v,8),n.LFG(B,8))},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({}),t})(),wt=(()=>{class t{constructor(t,e,i,n,r){this.features=t,this.featureReducers=e,this.reducerManager=i;const s=t.map((t,i)=>{const n=e.shift()[i];return Object.assign(Object.assign({},t),{reducers:n,initialState:Et(t.initialState)})});i.addFeatures(s)}ngOnDestroy(){this.reducerManager.removeFeatures(this.features)}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(L),n.LFG(O),n.LFG(j),n.LFG(_t),n.LFG(B,8))},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({}),t})(),xt=(()=>{class t{static forRoot(t,e={}){return{ngModule:_t,providers:[{provide:v,useFactory:Tt,deps:[[tt,new n.FiY,new n.tp0]]},{provide:_,useValue:e.initialState},{provide:w,useFactory:Et,deps:[_]},{provide:S,useValue:t},{provide:k,useExisting:t instanceof n.OlP?t:S},{provide:A,deps:[n.zs3,S,[new n.tBr(k)]],useFactory:Ct},{provide:D,useValue:e.metaReducers?e.metaReducers:[]},{provide:N,deps:[R,D],useFactory:kt},{provide:C,useValue:e.reducerFactory?e.reducerFactory:U},{provide:x,deps:[C,N],useFactory:z},b,V,W,$,et,(i=e.runtimeChecks,[{provide:F,useValue:i},{provide:P,useFactory:bt,deps:[F]},{provide:Z,deps:[P],useFactory:dt},{provide:R,multi:!0,deps:[Z],useFactory:ft},{provide:R,multi:!0,deps:[Z],useFactory:pt},{provide:R,multi:!0,deps:[Z],useFactory:gt}]),yt()]};var i}static forFeature(t,e,i={}){return{ngModule:wt,providers:[{provide:M,multi:!0,useValue:t instanceof Object?{}:i},{provide:E,multi:!0,useValue:{key:t instanceof Object?t.name:t,reducerFactory:i instanceof n.OlP||!i.reducerFactory?U:i.reducerFactory,metaReducers:i instanceof n.OlP||!i.metaReducers?[]:i.metaReducers,initialState:i instanceof n.OlP||!i.initialState?void 0:i.initialState}},{provide:L,deps:[n.zs3,M,E],useFactory:At},{provide:T,multi:!0,useValue:t instanceof Object?t.reducer:e},{provide:I,multi:!0,useExisting:e instanceof n.OlP?e:T},{provide:O,multi:!0,deps:[n.zs3,T,[new n.tBr(I)]],useFactory:St},yt()]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({}),t})();function Ct(t,e){return e instanceof n.OlP?t.get(e):e}function At(t,e,i){return i.map((i,r)=>{if(e[r]instanceof n.OlP){const n=t.get(e[r]);return{key:i.key,reducerFactory:n.reducerFactory?n.reducerFactory:U,metaReducers:n.metaReducers?n.metaReducers:[],initialState:n.initialState}}return i})}function St(t,e){return e.map(e=>e instanceof n.OlP?t.get(e):e)}function Et(t){return"function"==typeof t?t():t}function kt(t,e){return t.concat(e)}function Tt(t){if(t)throw new TypeError("StoreModule.forRoot() called twice. Feature modules should use StoreModule.forFeature() instead.");return"guarded"}},2281:(t,e)=>{"use strict";function i(t){return Object.keys(t).map(e=>t[e])}var n;Object.defineProperty(e,"__esModule",{value:!0}),(n=e.HashAlgorithms||(e.HashAlgorithms={})).SHA1="sha1",n.SHA256="sha256",n.SHA512="sha512";const r=i(e.HashAlgorithms);var s;(s=e.KeyEncodings||(e.KeyEncodings={})).ASCII="ascii",s.BASE64="base64",s.HEX="hex",s.LATIN1="latin1",s.UTF8="utf8";const o=i(e.KeyEncodings);var a;(a=e.Strategy||(e.Strategy={})).HOTP="hotp",a.TOTP="totp";const l=i(e.Strategy),c=()=>{throw new Error("Please provide an options.createDigest implementation.")};function h(t){return/^(\d+)$/.test(t)}function u(t,e,i){return t.length>=e?t:`${Array(e+1).join(i)}${t}`.slice(-1*e)}function d(t){const e=`otpauth://${t.type}/{labelPrefix}:{accountName}?secret={secret}{query}`,i=[];if(l.indexOf(t.type)<0)throw new Error(`Expecting options.type to be one of ${l.join(", ")}. Received ${t.type}.`);if("hotp"===t.type){if(null==t.counter||"number"!=typeof t.counter)throw new Error('Expecting options.counter to be a number when options.type is "hotp".');i.push(`&counter=${t.counter}`)}return"totp"===t.type&&t.step&&i.push(`&period=${t.step}`),t.digits&&i.push(`&digits=${t.digits}`),t.algorithm&&i.push(`&algorithm=${t.algorithm.toUpperCase()}`),t.issuer&&i.push(`&issuer=${encodeURIComponent(t.issuer)}`),e.replace("{labelPrefix}",encodeURIComponent(t.issuer||t.accountName)).replace("{accountName}",encodeURIComponent(t.accountName)).replace("{secret}",t.secret).replace("{query}",i.join(""))}class p{constructor(t={}){this._defaultOptions=Object.freeze({...t}),this._options=Object.freeze({})}create(t={}){return new p(t)}clone(t={}){const e=this.create({...this._defaultOptions,...t});return e.options=this._options,e}get options(){return Object.freeze({...this._defaultOptions,...this._options})}set options(t){this._options=Object.freeze({...this._options,...t})}allOptions(){return this.options}resetOptions(){this._options=Object.freeze({})}}function f(t){if("function"!=typeof t.createDigest)throw new Error("Expecting options.createDigest to be a function.");if("function"!=typeof t.createHmacKey)throw new Error("Expecting options.createHmacKey to be a function.");if("number"!=typeof t.digits)throw new Error("Expecting options.digits to be a number.");if(!t.algorithm||r.indexOf(t.algorithm)<0)throw new Error(`Expecting options.algorithm to be one of ${r.join(", ")}. Received ${t.algorithm}.`);if(!t.encoding||o.indexOf(t.encoding)<0)throw new Error(`Expecting options.encoding to be one of ${o.join(", ")}. Received ${t.encoding}.`)}const m=(t,e,i)=>Buffer.from(e,i).toString("hex");function g(){return{algorithm:e.HashAlgorithms.SHA1,createHmacKey:m,createDigest:c,digits:6,encoding:e.KeyEncodings.ASCII}}function y(t){const e={...g(),...t};return f(e),Object.freeze(e)}function b(t){return u(t.toString(16),16,"0")}function v(t,e){const i=Buffer.from(t,"hex"),n=15&i[i.length-1],r=((127&i[n])<<24|(255&i[n+1])<<16|(255&i[n+2])<<8|255&i[n+3])%Math.pow(10,e);return u(String(r),e,"0")}function _(t,e,i){return v(i.digest||function(t,e,i){const n=b(e),r=i.createHmacKey(i.algorithm,t,i.encoding);return i.createDigest(i.algorithm,r,n)}(t,e,i),i.digits)}function w(t,e,i,n){return!!h(t)&&t===_(e,i,n)}function x(t,i,n,r,s){return d({algorithm:s.algorithm,digits:s.digits,type:e.Strategy.HOTP,accountName:t,counter:r,issuer:i,secret:n})}class C extends p{create(t={}){return new C(t)}allOptions(){return y(this.options)}generate(t,e){return _(t,e,this.allOptions())}check(t,e,i){return w(t,e,i,this.allOptions())}verify(t){if("object"!=typeof t)throw new Error("Expecting argument 0 of verify to be an object");return this.check(t.token,t.secret,t.counter)}keyuri(t,e,i,n){return x(t,e,i,n,this.allOptions())}}function A(t){if("number"==typeof t)return[Math.abs(t),Math.abs(t)];if(Array.isArray(t)){const[e,i]=t;if("number"==typeof e&&"number"==typeof i)return[Math.abs(e),Math.abs(i)]}throw new Error("Expecting options.window to be an number or [number, number].")}function S(t){if(f(t),A(t.window),"number"!=typeof t.epoch)throw new Error("Expecting options.epoch to be a number.");if("number"!=typeof t.step)throw new Error("Expecting options.step to be a number.")}const E=(t,e,i)=>{const n=t.length,r=Buffer.from(t,e).toString("hex");if(n{switch(t){case e.HashAlgorithms.SHA1:return E(i,n,20);case e.HashAlgorithms.SHA256:return E(i,n,32);case e.HashAlgorithms.SHA512:return E(i,n,64);default:throw new Error(`Expecting algorithm to be one of ${r.join(", ")}. Received ${t}.`)}};function T(){return{algorithm:e.HashAlgorithms.SHA1,createDigest:c,createHmacKey:k,digits:6,encoding:e.KeyEncodings.ASCII,epoch:Date.now(),step:30,window:0}}function M(t){const e={...T(),...t};return S(e),Object.freeze(e)}function L(t,e){return Math.floor(t/e/1e3)}function I(t,e){return _(t,L(e.epoch,e.step),e)}function O(t,e,i,n){const r=[];if(0===n)return r;for(let s=1;s<=n;s++)r.push(t+e*s*i);return r}function D(t,e,i){const n=A(i),r=1e3*e;return{current:t,past:O(t,-1,r,n[0]),future:O(t,1,r,n[1])}}function R(t,e,i){return!!h(t)&&t===I(e,i)}function N(t,e,i,n){let r=null;return t.some((t,s)=>!!R(e,i,{...n,epoch:t})&&(r=s+1,!0)),r}function P(t,e,i){if(R(t,e,i))return 0;const n=D(i.epoch,i.step,i.window),r=N(n.past,t,e,i);return null!==r?-1*r:N(n.future,t,e,i)}function F(t,e){return Math.floor(t/1e3)%e}function Z(t,e){return e-F(t,e)}function B(t,i,n,r){return d({algorithm:r.algorithm,digits:r.digits,step:r.step,type:e.Strategy.TOTP,accountName:t,issuer:i,secret:n})}class U extends C{create(t={}){return new U(t)}allOptions(){return M(this.options)}generate(t){return I(t,this.allOptions())}checkDelta(t,e){return P(t,e,this.allOptions())}check(t,e){return"number"==typeof this.checkDelta(t,e)}verify(t){if("object"!=typeof t)throw new Error("Expecting argument 0 of verify to be an object");return this.check(t.token,t.secret)}timeRemaining(){const t=this.allOptions();return Z(t.epoch,t.step)}timeUsed(){const t=this.allOptions();return F(t.epoch,t.step)}keyuri(t,e,i){return B(t,e,i,this.allOptions())}}function q(t){if(S(t),"function"!=typeof t.keyDecoder)throw new Error("Expecting options.keyDecoder to be a function.");if(t.keyEncoder&&"function"!=typeof t.keyEncoder)throw new Error("Expecting options.keyEncoder to be a function.")}function z(){return{algorithm:e.HashAlgorithms.SHA1,createDigest:c,createHmacKey:k,digits:6,encoding:e.KeyEncodings.HEX,epoch:Date.now(),step:30,window:0}}function H(t){const e={...z(),...t};return q(e),Object.freeze(e)}function Y(t,e){return e.keyEncoder(t,e.encoding)}function G(t,e){return e.keyDecoder(t,e.encoding)}function j(t,e){return Y(e.createRandomBytes(t,e.encoding),e)}function V(t,e){return I(G(t,e),e)}function Q(t,e,i){return P(t,G(e,i),i)}class W extends U{create(t={}){return new W(t)}allOptions(){return H(this.options)}generate(t){return V(t,this.allOptions())}checkDelta(t,e){return Q(t,e,this.allOptions())}encode(t){return Y(t,this.allOptions())}decode(t){return G(t,this.allOptions())}generateSecret(t=10){return j(t,this.allOptions())}}e.Authenticator=W,e.HASH_ALGORITHMS=r,e.HOTP=C,e.KEY_ENCODINGS=o,e.OTP=p,e.STRATEGY=l,e.TOTP=U,e.authenticatorCheckWithWindow=Q,e.authenticatorDecoder=G,e.authenticatorDefaultOptions=z,e.authenticatorEncoder=Y,e.authenticatorGenerateSecret=j,e.authenticatorOptionValidator=q,e.authenticatorOptions=H,e.authenticatorToken=V,e.createDigestPlaceholder=c,e.hotpCheck=w,e.hotpCounter=b,e.hotpCreateHmacKey=m,e.hotpDefaultOptions=g,e.hotpDigestToToken=v,e.hotpKeyuri=x,e.hotpOptions=y,e.hotpOptionsValidator=f,e.hotpToken=_,e.isTokenValid=h,e.keyuri=d,e.objectValues=i,e.padStart=u,e.totpCheck=R,e.totpCheckByEpoch=N,e.totpCheckWithWindow=P,e.totpCounter=L,e.totpCreateHmacKey=k,e.totpDefaultOptions=T,e.totpEpochAvailable=D,e.totpKeyuri=B,e.totpOptions=M,e.totpOptionsValidator=S,e.totpPadSecret=E,e.totpTimeRemaining=Z,e.totpTimeUsed=F,e.totpToken=I},6801:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,r=(n=i(7508))&&"object"==typeof n&&"default"in n?n.default:n;e.createDigest=(t,e,i)=>r.createHmac(t,Buffer.from(e,"hex")).update(Buffer.from(i,"hex")).digest().toString("hex"),e.createRandomBytes=(t,e)=>r.randomBytes(t).toString(e)},9906:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,r=(n=i(115))&&"object"==typeof n&&"default"in n?n.default:n;e.keyDecoder=(t,e)=>r.decode(t).toString(e),e.keyEncoder=(t,e)=>r.encode(Buffer.from(t,e).toString("ascii")).toString().replace(/=/g,"")},5097:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(6801),r=i(9906),s=i(2281);const o=new s.HOTP({createDigest:n.createDigest}),a=new s.TOTP({createDigest:n.createDigest}),l=new s.Authenticator({createDigest:n.createDigest,createRandomBytes:n.createRandomBytes,keyDecoder:r.keyDecoder,keyEncoder:r.keyEncoder});e.authenticator=l,e.hotp=o,e.totp=a},1905:(t,e,i)=>{"use strict";i.d(e,{H5:()=>va,K$:()=>ba,a4:()=>Oa});var n=i(1572),r=i(1511),s=i(709),o=i(6899),a=i(5960),l=i(5057);function c(){}function h(t){return null==t?c:function(){return this.querySelector(t)}}function u(){return[]}function d(t){return null==t?u:function(){return this.querySelectorAll(t)}}function p(t){return function(){return this.matches(t)}}function f(t){return new Array(t.length)}function m(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function g(t,e,i,n,r,s){for(var o,a=0,l=e.length,c=s.length;ae?1:t>=e?0:NaN}m.prototype={constructor:m,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var v="http://www.w3.org/1999/xhtml";const _={svg:"http://www.w3.org/2000/svg",xhtml:v,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function w(t){var e=t+="",i=e.indexOf(":");return i>=0&&"xmlns"!==(e=t.slice(0,i))&&(t=t.slice(i+1)),_.hasOwnProperty(e)?{space:_[e],local:t}:t}function x(t){return function(){this.removeAttribute(t)}}function C(t){return function(){this.removeAttributeNS(t.space,t.local)}}function A(t,e){return function(){this.setAttribute(t,e)}}function S(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function E(t,e){return function(){var i=e.apply(this,arguments);null==i?this.removeAttribute(t):this.setAttribute(t,i)}}function k(t,e){return function(){var i=e.apply(this,arguments);null==i?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,i)}}function T(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function M(t){return function(){this.style.removeProperty(t)}}function L(t,e,i){return function(){this.style.setProperty(t,e,i)}}function I(t,e,i){return function(){var n=e.apply(this,arguments);null==n?this.style.removeProperty(t):this.style.setProperty(t,n,i)}}function O(t,e){return t.style.getPropertyValue(e)||T(t).getComputedStyle(t,null).getPropertyValue(e)}function D(t){return function(){delete this[t]}}function R(t,e){return function(){this[t]=e}}function N(t,e){return function(){var i=e.apply(this,arguments);null==i?delete this[t]:this[t]=i}}function P(t){return t.trim().split(/^|\s+/)}function F(t){return t.classList||new Z(t)}function Z(t){this._node=t,this._names=P(t.getAttribute("class")||"")}function B(t,e){for(var i=F(t),n=-1,r=e.length;++n=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var st={},ot=null;function at(t,e,i){return t=lt(t,e,i),function(e){var i=e.relatedTarget;i&&(i===this||8&i.compareDocumentPosition(this))||t.call(this,e)}}function lt(t,e,i){return function(n){var r=ot;ot=n;try{t.call(this,this.__data__,e,i)}finally{ot=r}}}function ct(t){return t.trim().split(/^|\s+/).map(function(t){var e="",i=t.indexOf(".");return i>=0&&(e=t.slice(i+1),t=t.slice(0,i)),{type:t,name:e}})}function ht(t){return function(){var e=this.__on;if(e){for(var i,n=0,r=-1,s=e.length;n=C&&(C=x+1);!(w=v[C])&&++C=0;)(n=r[s])&&(o&&4^n.compareDocumentPosition(o)&&o.parentNode.insertBefore(n,o),o=n);return this},sort:function(t){function e(e,i){return e&&i?t(e.__data__,i.__data__):!e-!i}t||(t=b);for(var i=this._groups,n=i.length,r=new Array(n),s=0;s1?this.each((null==e?M:"function"==typeof e?I:L)(t,e,null==i?"":i)):O(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?D:"function"==typeof e?N:R)(t,e)):this.node()[t]},classed:function(t,e){var i=P(t+"");if(arguments.length<2){for(var n=F(this.node()),r=-1,s=i.length;++r=0&&(i=t.slice(n+1),t=t.slice(0,n)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:i}})}function Ct(t,e){for(var i,n=0,r=t.length;n0)for(var i,n,r=new Array(i),s=0;s>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===i?jt(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===i?jt(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Nt.exec(t))?new Wt(e[1],e[2],e[3],1):(e=Pt.exec(t))?new Wt(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Ft.exec(t))?jt(e[1],e[2],e[3],e[4]):(e=Zt.exec(t))?jt(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Bt.exec(t))?$t(e[1],e[2]/100,e[3]/100,1):(e=Ut.exec(t))?$t(e[1],e[2]/100,e[3]/100,e[4]):qt.hasOwnProperty(t)?Gt(qt[t]):"transparent"===t?new Wt(NaN,NaN,NaN,0):null}function Gt(t){return new Wt(t>>16&255,t>>8&255,255&t,1)}function jt(t,e,i,n){return n<=0&&(t=e=i=NaN),new Wt(t,e,i,n)}function Vt(t){return t instanceof Tt||(t=Yt(t)),t?new Wt((t=t.rgb()).r,t.g,t.b,t.opacity):new Wt}function Qt(t,e,i,n){return 1===arguments.length?Vt(t):new Wt(t,e,i,null==n?1:n)}function Wt(t,e,i,n){this.r=+t,this.g=+e,this.b=+i,this.opacity=+n}function Jt(){return"#"+Kt(this.r)+Kt(this.g)+Kt(this.b)}function Xt(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function Kt(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function $t(t,e,i,n){return n<=0?t=e=i=NaN:i<=0||i>=1?t=e=NaN:e<=0&&(t=NaN),new ee(t,e,i,n)}function te(t){if(t instanceof ee)return new ee(t.h,t.s,t.l,t.opacity);if(t instanceof Tt||(t=Yt(t)),!t)return new ee;if(t instanceof ee)return t;var e=(t=t.rgb()).r/255,i=t.g/255,n=t.b/255,r=Math.min(e,i,n),s=Math.max(e,i,n),o=NaN,a=s-r,l=(s+r)/2;return a?(o=e===s?(i-n)/a+6*(i0&&l<1?0:o,new ee(o,a,l,t.opacity)}function ee(t,e,i,n){this.h=+t,this.s=+e,this.l=+i,this.opacity=+n}function ie(t,e,i){return 255*(t<60?e+(i-e)*t/60:t<180?i:t<240?e+(i-e)*(240-t)/60:e)}function ne(t,e,i,n,r){var s=t*t,o=s*t;return((1-3*t+3*s-o)*e+(4-6*s+3*o)*i+(1+3*t+3*s-3*o)*n+o*r)/6}function re(t){return function(){return t}}function se(t,e){var i=e-t;return i?function(t,e){return function(i){return t+i*e}}(t,i):re(isNaN(t)?e:t)}Et(Tt,Yt,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:zt,formatHex:zt,formatHsl:function(){return te(this).formatHsl()},formatRgb:Ht,toString:Ht}),Et(Wt,Qt,kt(Tt,{brighter:function(t){return t=null==t?Lt:Math.pow(Lt,t),new Wt(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?Mt:Math.pow(Mt,t),new Wt(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Jt,formatHex:Jt,formatRgb:Xt,toString:Xt})),Et(ee,function(t,e,i,n){return 1===arguments.length?te(t):new ee(t,e,i,null==n?1:n)},kt(Tt,{brighter:function(t){return t=null==t?Lt:Math.pow(Lt,t),new ee(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?Mt:Math.pow(Mt,t),new ee(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,i=this.l,n=i+(i<.5?i:1-i)*e,r=2*i-n;return new Wt(ie(t>=240?t-240:t+120,r,n),ie(t,r,n),ie(t<120?t+240:t-120,r,n),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));const oe=function t(e){var i=function(t){return 1==(t=+t)?se:function(e,i){return i-e?function(t,e,i){return t=Math.pow(t,i),e=Math.pow(e,i)-t,i=1/i,function(n){return Math.pow(t+n*e,i)}}(e,i,t):re(isNaN(e)?i:e)}}(e);function n(t,e){var n=i((t=Qt(t)).r,(e=Qt(e)).r),r=i(t.g,e.g),s=i(t.b,e.b),o=se(t.opacity,e.opacity);return function(e){return t.r=n(e),t.g=r(e),t.b=s(e),t.opacity=o(e),t+""}}return n.gamma=t,n}(1);function ae(t){return function(e){var i,n,r=e.length,s=new Array(r),o=new Array(r),a=new Array(r);for(i=0;i=1?(i=1,e-1):Math.floor(i*e),r=t[n],s=t[n+1];return ne((i-n/e)*e,n>0?t[n-1]:2*r-s,r,s,ns&&(r=e.slice(s,r),a[o]?a[o]+=r:a[++o]=r),(i=i[0])===(n=n[0])?a[o]?a[o]+=n:a[++o]=n:(a[++o]=null,l.push({i:o,x:he(i,n)})),s=pe.lastIndex;return s=0&&e._call.call(null,t),e=e._next;--ve}()}finally{ve=0,function(){for(var t,e,i=ye,n=1/0;i;)i._call?(n>i._time&&(n=i._time),t=i,i=i._next):(e=i._next,i._next=null,i=t?t._next=e:ye=e);be=t,De(n)}(),Ce=0}}function Oe(){var t=Se.now(),e=t-xe;e>1e3&&(Ae-=e,xe=t)}function De(t){ve||(_e&&(_e=clearTimeout(_e)),t-Ce>24?(t<1/0&&(_e=setTimeout(Ie,t-Se.now()-Ae)),we&&(we=clearInterval(we))):(we||(xe=Se.now(),we=setInterval(Oe,1e3)),ve=1,Ee(Ie)))}function Re(t,e,i){var n=new Me;return n.restart(function(i){n.stop(),t(i+e)},e=null==e?0:+e,i),n}Me.prototype=Le.prototype={constructor:Me,restart:function(t,e,i){if("function"!=typeof t)throw new TypeError("callback is not a function");i=(null==i?ke():+i)+(null==e?0:+e),this._next||be===this||(be?be._next=this:ye=this,be=this),this._call=t,this._time=i,De()},stop:function(){this._call&&(this._call=null,this._time=1/0,De())}};var Ne=St("start","end","cancel","interrupt"),Pe=[];function Fe(t,e,i,n,r,s){var o=t.__transition;if(o){if(i in o)return}else t.__transition={};!function(t,e,i){var n,r=t.__transition;function s(l){var c,h,u,d;if(1!==i.state)return a();for(c in r)if((d=r[c]).name===i.name){if(3===d.state)return Re(s);4===d.state?(d.state=6,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete r[c]):+c0)throw new Error("too late; already scheduled");return i}function Be(t,e){var i=Ue(t,e);if(i.state>3)throw new Error("too late; already running");return i}function Ue(t,e){var i=t.__transition;if(!i||!(i=i[e]))throw new Error("transition not found");return i}var qe,ze,He,Ye,Ge=180/Math.PI,je={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Ve(t,e,i,n,r,s){var o,a,l;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(l=t*i+e*n)&&(i-=t*l,n-=e*l),(a=Math.sqrt(i*i+n*n))&&(i/=a,n/=a,l/=a),t*n180?e+=360:e-t>180&&(t+=360),s.push({i:i.push(r(i)+"rotate(",null,n)-2,x:he(t,e)})):e&&i.push(r(i)+"rotate("+e+n)}(s.rotate,o.rotate,a,l),function(t,e,i,s){t!==e?s.push({i:i.push(r(i)+"skewX(",null,n)-2,x:he(t,e)}):e&&i.push(r(i)+"skewX("+e+n)}(s.skewX,o.skewX,a,l),function(t,e,i,n,s,o){if(t!==i||e!==n){var a=s.push(r(s)+"scale(",null,",",null,")");o.push({i:a-4,x:he(t,i)},{i:a-2,x:he(e,n)})}else 1===i&&1===n||s.push(r(s)+"scale("+i+","+n+")")}(s.scaleX,s.scaleY,o.scaleX,o.scaleY,a,l),s=o=null,function(t){for(var e,i=-1,n=l.length;++i=0&&(t=t.slice(0,e)),!t||"start"===t})}(e)?Ze:Be;return function(){var o=s(this,t),a=o.on;a!==n&&(r=(n=a).copy()).on(e,i),o.on=r}}var yi=bt.prototype.constructor;function bi(t){return function(){this.style.removeProperty(t)}}function vi(t,e,i){return function(n){this.style.setProperty(t,e.call(this,n),i)}}function _i(t,e,i){var n,r;function s(){var s=e.apply(this,arguments);return s!==r&&(n=(r=s)&&vi(t,s,i)),n}return s._value=e,s}function wi(t){return function(e){this.textContent=t.call(this,e)}}function xi(t){var e,i;function n(){var n=t.apply(this,arguments);return n!==i&&(e=(i=n)&&wi(n)),e}return n._value=t,n}var Ci=0;function Ai(t,e,i,n){this._groups=t,this._parents=e,this._name=i,this._id=n}function Si(){return++Ci}var Ei=bt.prototype;Ai.prototype=(function(t){return bt().transition(t)}).prototype={constructor:Ai,select:function(t){var e=this._name,i=this._id;"function"!=typeof t&&(t=h(t));for(var n=this._groups,r=n.length,s=new Array(r),o=0;oe?1:t>=e?0:NaN}function Ii(t){let e=t,i=t;function n(t,e,n,r){for(null==n&&(n=0),null==r&&(r=t.length);n>>1;i(t[s],e)<0?n=s+1:r=s}return n}return 1===t.length&&(e=(e,i)=>t(e)-i,i=function(t){return(e,i)=>Li(t(e),i)}(t)),{left:n,center:function(t,i,r,s){null==r&&(r=0),null==s&&(s=t.length);const o=n(t,i,r,s-1);return o>r&&e(t[o-1],i)>-e(t[o],i)?o-1:o},right:function(t,e,n,r){for(null==n&&(n=0),null==r&&(r=t.length);n>>1;i(t[s],e)>0?r=s:n=s+1}return n}}}bt.prototype.interrupt=function(t){return this.each(function(){!function(t,e){var i,n,r,s=t.__transition,o=!0;if(s){for(r in e=null==e?null:e+"",s)(i=s[r]).name===e?(n=i.state>2&&i.state<5,i.state=6,i.timer.stop(),i.on.call(n?"interrupt":"cancel",t,t.__data__,i.index,i.group),delete s[r]):o=!1;o&&delete t.__transition}}(this,t)})},bt.prototype.transition=function(t){var e,i;t instanceof Ai?(e=t._id,t=t._name):(e=Si(),(i=ki).time=ke(),t=null==t?null:t+"");for(var n=this._groups,r=n.length,s=0;s=0?(s>=Oi?10:s>=Di?5:s>=Ri?2:1)*Math.pow(10,r):-Math.pow(10,-r)/(s>=Oi?10:s>=Di?5:s>=Ri?2:1)}function Pi(t,e,i){var n=Math.abs(e-t)/Math.max(0,i),r=Math.pow(10,Math.floor(Math.log(n)/Math.LN10)),s=n/r;return s>=Oi?r*=10:s>=Di?r*=5:s>=Ri&&(r*=2),e0))return a;do{a.push(o=new Date(+i)),e(i,s),t(i)}while(o=e)for(;t(e),!i(e);)e.setTime(e-1)},function(t,n){if(t>=t)if(n<0)for(;++n<=0;)for(;e(t,-1),!i(t););else for(;--n>=0;)for(;e(t,1),!i(t););})},i&&(r.count=function(e,n){return Hi.setTime(+e),Yi.setTime(+n),t(Hi),t(Yi),Math.floor(i(Hi,Yi))},r.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?r.filter(n?function(e){return n(e)%t==0}:function(e){return r.count(0,e)%t==0}):r:null}),r}var ji=Gi(function(){},function(t,e){t.setTime(+t+e)},function(t,e){return e-t});ji.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Gi(function(e){e.setTime(Math.floor(e/t)*t)},function(e,i){e.setTime(+e+i*t)},function(e,i){return(i-e)/t}):ji:null};const Vi=ji,Qi=Gi(function(t){t.setTime(t-t.getMilliseconds())},function(t,e){t.setTime(+t+e*Fi)},function(t,e){return(e-t)/Fi},function(t){return t.getUTCSeconds()}),Wi=Gi(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Fi)},function(t,e){t.setTime(+t+e*Zi)},function(t,e){return(e-t)/Zi},function(t){return t.getMinutes()}),Ji=Gi(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Fi-t.getMinutes()*Zi)},function(t,e){t.setTime(+t+e*Bi)},function(t,e){return(e-t)/Bi},function(t){return t.getHours()}),Xi=Gi(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Zi)/Ui,t=>t.getDate()-1);function Ki(t){return Gi(function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+7*e)},function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Zi)/qi})}var $i=Ki(0);const tn=(Ki(1),Ki(2),Ki(3),Ki(4),Ki(5),Ki(6),Gi(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,e){t.setMonth(t.getMonth()+e)},function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())},function(t){return t.getMonth()}));var en=Gi(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t,e){return e.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});en.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Gi(function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,i){e.setFullYear(e.getFullYear()+i*t)}):null};const nn=en,rn=Gi(function(t){t.setUTCSeconds(0,0)},function(t,e){t.setTime(+t+e*Zi)},function(t,e){return(e-t)/Zi},function(t){return t.getUTCMinutes()}),sn=Gi(function(t){t.setUTCMinutes(0,0,0)},function(t,e){t.setTime(+t+e*Bi)},function(t,e){return(e-t)/Bi},function(t){return t.getUTCHours()}),on=Gi(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/Ui},function(t){return t.getUTCDate()-1});function an(t){return Gi(function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+7*e)},function(t,e){return(e-t)/qi})}var ln=an(0);const cn=(an(1),an(2),an(3),an(4),an(5),an(6),Gi(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCMonth(t.getUTCMonth()+e)},function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())},function(t){return t.getUTCMonth()}));var hn=Gi(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)},function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});hn.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Gi(function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,i){e.setUTCFullYear(e.getUTCFullYear()+i*t)}):null};const un=hn;function dn(t,e,i,n,r,s){const o=[[Qi,1,Fi],[Qi,5,5e3],[Qi,15,15e3],[Qi,30,3e4],[s,1,Zi],[s,5,3e5],[s,15,9e5],[s,30,18e5],[r,1,Bi],[r,3,108e5],[r,6,216e5],[r,12,432e5],[n,1,Ui],[n,2,1728e5],[i,1,qi],[e,1,2592e6],[e,3,7776e6],[t,1,zi]];function a(e,i,n){const r=Math.abs(i-e)/n,s=Ii(([,,t])=>t).right(o,r);if(s===o.length)return t.every(Pi(e/zi,i/zi,n));if(0===s)return Vi.every(Math.max(Pi(e,i,n),1));const[a,l]=o[r/o[s-1][2]0))return a;do{a.push(o=new Date(+i)),e(i,s),t(i)}while(o=e)for(;t(e),!i(e);)e.setTime(e-1)},function(t,n){if(t>=t)if(n<0)for(;++n<=0;)for(;e(t,-1),!i(t););else for(;--n>=0;)for(;e(t,1),!i(t););})},i&&(r.count=function(e,n){return yn.setTime(+e),bn.setTime(+n),t(yn),t(bn),Math.floor(i(yn,bn))},r.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?r.filter(n?function(e){return n(e)%t==0}:function(e){return r.count(0,e)%t==0}):r:null}),r}var _n=864e5,wn=6048e5;function xn(t){return vn(function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+7*e)},function(t,e){return(e-t)/wn})}var Cn=xn(0),An=xn(1),Sn=(xn(2),xn(3),xn(4));const En=(xn(5),xn(6),vn(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/_n},function(t){return t.getUTCDate()-1}));function kn(t){return vn(function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+7*e)},function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/wn})}var Tn=kn(0),Mn=kn(1),Ln=(kn(2),kn(3),kn(4));const In=(kn(5),kn(6),vn(function(t){t.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+e)},function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/_n},function(t){return t.getDate()-1}));var On=vn(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t,e){return e.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});On.every=function(t){return isFinite(t=Math.floor(t))&&t>0?vn(function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,i){e.setFullYear(e.getFullYear()+i*t)}):null};const Dn=On;var Rn=vn(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)},function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});Rn.every=function(t){return isFinite(t=Math.floor(t))&&t>0?vn(function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,i){e.setUTCFullYear(e.getUTCFullYear()+i*t)}):null};const Nn=Rn;var Pn={"-":"",_:" ",0:"0"},Fn=/[\\^$*+?|[\]().{}]/g;function Zn(t,e,i){var n=t<0?"-":"",r=(n?-t:t)+"",s=r.length;return n+(s=4||0===e?Ln(t):Ln.ceil(t)}function tr(t,e){return t=$n(t),Zn(Ln.count(Dn(t),t)+(4===Dn(t).getDay()),e,2)}function er(t){return t.getDay()}function ir(t,e){return Zn(Mn.count(Dn(t)-1,t),e,2)}function nr(t,e){return Zn(t.getFullYear()%100,e,2)}function rr(t,e){return Zn((t=$n(t)).getFullYear()%100,e,2)}function sr(t,e){return Zn(t.getFullYear()%1e4,e,4)}function or(t,e){var i=t.getDay();return Zn((t=i>=4||0===i?Ln(t):Ln.ceil(t)).getFullYear()%1e4,e,4)}function ar(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Zn(e/60|0,"0",2)+Zn(e%60,"0",2)}function lr(t,e){return Zn(t.getUTCDate(),e,2)}function cr(t,e){return Zn(t.getUTCHours(),e,2)}function hr(t,e){return Zn(t.getUTCHours()%12||12,e,2)}function ur(t,e){return Zn(1+En.count(Nn(t),t),e,3)}function dr(t,e){return Zn(t.getUTCMilliseconds(),e,3)}function pr(t,e){return dr(t,e)+"000"}function fr(t,e){return Zn(t.getUTCMonth()+1,e,2)}function mr(t,e){return Zn(t.getUTCMinutes(),e,2)}function gr(t,e){return Zn(t.getUTCSeconds(),e,2)}function yr(t){var e=t.getUTCDay();return 0===e?7:e}function br(t,e){return Zn(Cn.count(Nn(t)-1,t),e,2)}function vr(t){var e=t.getUTCDay();return e>=4||0===e?Sn(t):Sn.ceil(t)}function _r(t,e){return t=vr(t),Zn(Sn.count(Nn(t),t)+(4===Nn(t).getUTCDay()),e,2)}function wr(t){return t.getUTCDay()}function xr(t,e){return Zn(An.count(Nn(t)-1,t),e,2)}function Cr(t,e){return Zn(t.getUTCFullYear()%100,e,2)}function Ar(t,e){return Zn((t=vr(t)).getUTCFullYear()%100,e,2)}function Sr(t,e){return Zn(t.getUTCFullYear()%1e4,e,4)}function Er(t,e){var i=t.getUTCDay();return Zn((t=i>=4||0===i?Sn(t):Sn.ceil(t)).getUTCFullYear()%1e4,e,4)}function kr(){return"+0000"}function Tr(){return"%"}function Mr(t){return+t}function Lr(t){return Math.floor(+t/1e3)}function Ir(t){return null===t?NaN:+t}!function(t){var e=t.dateTime,i=t.date,n=t.time,r=t.periods,s=t.days,o=t.shortDays,a=t.months,l=t.shortMonths,c=(Un(r),qn(r),Un(s),qn(s),Un(o),qn(o),Un(a),qn(a),Un(l),qn(l),{a:function(t){return o[t.getDay()]},A:function(t){return s[t.getDay()]},b:function(t){return l[t.getMonth()]},B:function(t){return a[t.getMonth()]},c:null,d:zn,e:zn,f:Vn,g:rr,G:or,H:Hn,I:Yn,j:Gn,L:jn,m:Qn,M:Wn,p:function(t){return r[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Mr,s:Lr,S:Jn,u:Xn,U:Kn,V:tr,w:er,W:ir,x:null,X:null,y:nr,Y:sr,Z:ar,"%":Tr}),h={a:function(t){return o[t.getUTCDay()]},A:function(t){return s[t.getUTCDay()]},b:function(t){return l[t.getUTCMonth()]},B:function(t){return a[t.getUTCMonth()]},c:null,d:lr,e:lr,f:pr,g:Ar,G:Er,H:cr,I:hr,j:ur,L:dr,m:fr,M:mr,p:function(t){return r[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Mr,s:Lr,S:gr,u:yr,U:br,V:_r,w:wr,W:xr,x:null,X:null,y:Cr,Y:Sr,Z:kr,"%":Tr};function u(t,e){return function(i){var n,r,s,o=[],a=-1,l=0,c=t.length;for(i instanceof Date||(i=new Date(+i));++a(e=o[l-1])&&(i=t,t=e,e=i),c=function(i){return Math.max(t,Math.min(e,i))}),n=l>2?Ur:Br,r=s=null,u}function u(e){return null==e||isNaN(e=+e)?i:(r||(r=n(o.map(t),a,l)))(t(c(e)))}return u.invert=function(i){return c(e((s||(s=n(a,o.map(t),he)))(i)))},u.domain=function(t){return arguments.length?(o=Array.from(t,Nr),h()):o.slice()},u.range=function(t){return arguments.length?(a=Array.from(t),h()):a.slice()},u.rangeRound=function(t){return a=Array.from(t),l=Rr,h()},u.clamp=function(t){return arguments.length?(c=!!t||Fr,h()):c!==Fr},u.interpolate=function(t){return arguments.length?(l=t,h()):l},u.unknown=function(t){return arguments.length?(i=t,u):i},function(i,n){return t=i,e=n,h()}}()(Fr,Fr)}function Hr(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}var Yr,Gr=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function jr(t){if(!(e=Gr.exec(t)))throw new Error("invalid format: "+t);var e;return new Vr({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function Vr(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function Qr(t,e){if((i=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var i,n=t.slice(0,i);return[n.length>1?n[0]+n.slice(2):n,+t.slice(i+1)]}function Wr(t){return(t=Qr(Math.abs(t)))?t[1]:NaN}function Jr(t,e){var i=Qr(t,e);if(!i)return t+"";var n=i[0],r=i[1];return r<0?"0."+new Array(-r).join("0")+n:n.length>r+1?n.slice(0,r+1)+"."+n.slice(r+1):n+new Array(r-n.length+2).join("0")}jr.prototype=Vr.prototype,Vr.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const Xr={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return Jr(100*t,e)},r:Jr,s:function(t,e){var i=Qr(t,e);if(!i)return t+"";var n=i[0],r=i[1],s=r-(Yr=3*Math.max(-8,Math.min(8,Math.floor(r/3))))+1,o=n.length;return s===o?n:s>o?n+new Array(s-o+1).join("0"):s>0?n.slice(0,s)+"."+n.slice(s):"0."+new Array(1-s).join("0")+Qr(t,Math.max(0,e+s-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function Kr(t){return t}var $r,ts,es,is=Array.prototype.map,ns=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function rs(t){var e=t.domain;return t.ticks=function(t){var i=e();return function(t,e,i){var n,r,s,o,a=-1;if(i=+i,(t=+t)==(e=+e)&&i>0)return[t];if((n=e0){let i=Math.round(t/o),n=Math.round(e/o);for(i*oe&&--n,s=new Array(r=n-i+1);++ae&&--n,s=new Array(r=n-i+1);++a0;){if((r=Ni(l,c,i))===n)return s[o]=l,s[a]=c,e(s);if(r>0)l=Math.floor(l/r)*r,c=Math.ceil(c/r)*r;else{if(!(r<0))break;l=Math.ceil(l*r)/r,c=Math.floor(c*r)/r}n=r}return t},t}function ss(){var t=zr();return t.copy=function(){return qr(t,ss())},Hr.apply(t,arguments),rs(t)}function os(t,e,i){t=+t,e=+e,i=(r=arguments.length)<2?(e=t,t=0,1):r<3?1:+i;for(var n=-1,r=0|Math.max(0,Math.ceil((e-t)/i)),s=new Array(r);++n0&&a>0&&(l+a+1>n&&(a=Math.max(1,n-l)),s.push(t.substring(r-=a,r+a)),!((l+=a+1)>n));)a=e[o=(o+1)%e.length];return s.reverse().join(i)}),r=void 0===t.currency?"":t.currency[0]+"",s=void 0===t.currency?"":t.currency[1]+"",o=void 0===t.decimal?".":t.decimal+"",a=void 0===t.numerals?Kr:function(t){return function(e){return e.replace(/[0-9]/g,function(e){return t[+e]})}}(is.call(t.numerals,String)),l=void 0===t.percent?"%":t.percent+"",c=void 0===t.minus?"-":t.minus+"",h=void 0===t.nan?"NaN":t.nan+"";function u(t){var e=(t=jr(t)).fill,i=t.align,u=t.sign,d=t.symbol,p=t.zero,f=t.width,m=t.comma,g=t.precision,y=t.trim,b=t.type;"n"===b?(m=!0,b="g"):Xr[b]||(void 0===g&&(g=12),y=!0,b="g"),(p||"0"===e&&"="===i)&&(p=!0,e="0",i="=");var v="$"===d?r:"#"===d&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",_="$"===d?s:/[%p]/.test(b)?l:"",w=Xr[b],x=/[defgprs%]/.test(b);function C(t){var r,s,l,d=v,C=_;if("c"===b)C=w(t)+C,t="";else{var A=(t=+t)<0||1/t<0;if(t=isNaN(t)?h:w(Math.abs(t),g),y&&(t=function(t){t:for(var e,i=t.length,n=1,r=-1;n0&&(r=0)}return r>0?t.slice(0,r)+t.slice(e+1):t}(t)),A&&0==+t&&"+"!==u&&(A=!1),d=(A?"("===u?u:c:"-"===u||"("===u?"":u)+d,C=("s"===b?ns[8+Yr/3]:"")+C+(A&&"("===u?")":""),x)for(r=-1,s=t.length;++r(l=t.charCodeAt(r))||l>57){C=(46===l?o+t.slice(r+1):t.slice(r))+C,t=t.slice(0,r);break}}m&&!p&&(t=n(t,1/0));var S=d.length+t.length+C.length,E=S>1)+d+t+C+E.slice(S);break;default:t=E+d+t+C}return a(t)}return g=void 0===g?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),C.toString=function(){return t+""},C}return{format:u,formatPrefix:function(t,e){var i=u(((t=jr(t)).type="f",t)),n=3*Math.max(-8,Math.min(8,Math.floor(Wr(e)/3))),r=Math.pow(10,-n),s=ns[8+n/3];return function(t){return i(r*t)+s}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),ts=$r.format,es=$r.formatPrefix;const as=Symbol("implicit");function ls(){var t=new Map,e=[],i=[],n=as;function r(r){var s=r+"",o=t.get(s);if(!o){if(n!==as)return n;t.set(s,o=e.push(r))}return i[(o-1)%i.length]}return r.domain=function(i){if(!arguments.length)return e.slice();e=[],t=new Map;for(const n of i){const i=n+"";t.has(i)||t.set(i,e.push(n))}return r},r.range=function(t){return arguments.length?(i=Array.from(t),r):i.slice()},r.unknown=function(t){return arguments.length?(n=t,r):n},r.copy=function(){return ls(e,i).unknown(n)},Hr.apply(r,arguments),r}function cs(){var t,e,i=ls().unknown(void 0),n=i.domain,r=i.range,s=0,o=1,a=!1,l=0,c=0,h=.5;function u(){var i=n().length,u=o=1)return+i(t[n-1],n-1,t);var n,r=(n-1)*e,s=Math.floor(r),o=+i(t[s],s,t);return o+(+i(t[s+1],s+1,t)-o)*(r-s)}}function us(){var t,e=[],i=[],n=[];function r(){var t=0,r=Math.max(1,i.length);for(n=new Array(r-1);++t0?n[r-1]:e[0],r=0;)e+=i[n].value;else e=1;t.value=e}function Es(t,e){var i,n,r,s,o,a=new Ls(t),l=+t.value&&(a.value=t.value),c=[a];for(null==e&&(e=ks);i=c.pop();)if(l&&(i.value=+i.data.value),(r=e(i.data))&&(o=r.length))for(i.children=new Array(o),s=o-1;s>=0;--s)c.push(n=i.children[s]=new Ls(r[s])),n.parent=i,n.depth=i.depth+1;return a.eachBefore(Ms)}function ks(t){return t.children}function Ts(t){t.data=t.data.data}function Ms(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function Ls(t){this.data=t,this.depth=this.height=0,this.parent=null}ys.prototype=(function(){return new ys}).prototype={constructor:ys,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,i,n){this._+="Q"+ +t+","+ +e+","+(this._x1=+i)+","+(this._y1=+n)},bezierCurveTo:function(t,e,i,n,r,s){this._+="C"+ +t+","+ +e+","+ +i+","+ +n+","+(this._x1=+r)+","+(this._y1=+s)},arcTo:function(t,e,i,n,r){var s=this._x1,o=this._y1,a=(i=+i)-(t=+t),l=(n=+n)-(e=+e),c=s-t,h=o-e,u=c*c+h*h;if((r=+r)<0)throw new Error("negative radius: "+r);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(u>ms)if(Math.abs(h*a-l*c)>ms&&r){var d=i-s,p=n-o,f=a*a+l*l,m=d*d+p*p,g=Math.sqrt(f),y=Math.sqrt(u),b=r*Math.tan((ps-Math.acos((f+u-m)/(2*g*y)))/2),v=b/y,_=b/g;Math.abs(v-1)>ms&&(this._+="L"+(t+v*c)+","+(e+v*h)),this._+="A"+r+","+r+",0,0,"+ +(h*d>c*p)+","+(this._x1=t+_*a)+","+(this._y1=e+_*l)}else this._+="L"+(this._x1=t)+","+(this._y1=e)},arc:function(t,e,i,n,r,s){t=+t,e=+e,s=!!s;var o=(i=+i)*Math.cos(n),a=i*Math.sin(n),l=t+o,c=e+a,h=1^s,u=s?n-r:r-n;if(i<0)throw new Error("negative radius: "+i);null===this._x1?this._+="M"+l+","+c:(Math.abs(this._x1-l)>ms||Math.abs(this._y1-c)>ms)&&(this._+="L"+l+","+c),i&&(u<0&&(u=u%fs+fs),u>gs?this._+="A"+i+","+i+",0,1,"+h+","+(t-o)+","+(e-a)+"A"+i+","+i+",0,1,"+h+","+(this._x1=l)+","+(this._y1=c):u>ms&&(this._+="A"+i+","+i+",0,"+ +(u>=ps)+","+h+","+(this._x1=t+i*Math.cos(r))+","+(this._y1=e+i*Math.sin(r))))},rect:function(t,e,i,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +i+"v"+ +n+"h"+-i+"Z"},toString:function(){return this._}},_s.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:vs(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:vs(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},function t(e){function i(t){return new _s(t,e)}return i.tension=function(e){return t(+e)},i}(0),ws.prototype={areaStart:bs,areaEnd:bs,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:vs(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},function t(e){function i(t){return new ws(t,e)}return i.tension=function(e){return t(+e)},i}(0),xs.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}},Math,Math,Math,Math,Math,Math,Math,Math,function t(e){function i(t,i,n,r,s){!function(t,e,i,n,r,s){for(var o,a,l,c,h,u,d,p,f,m,g,y=[],b=e.children,v=0,_=0,w=b.length,x=e.value;vd&&(d=a),g=h*h*m,(p=Math.max(d/g,g/u))>f){h-=a;break}f=p}y.push(o={value:h,dice:l1?e:1)},i}((1+Math.sqrt(5))/2),Ls.prototype=Es.prototype={constructor:Ls,count:function(){return this.eachAfter(Ss)},each:function(t){var e,i,n,r,s=this,o=[s];do{for(e=o.reverse(),o=[];s=e.pop();)if(t(s),i=s.children)for(n=0,r=i.length;n=0;--i)r.push(e[i]);return this},sum:function(t){return this.eachAfter(function(e){for(var i=+t(e.data)||0,n=e.children,r=n&&n.length;--r>=0;)i+=n[r].value;e.value=i})},sort:function(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})},path:function(t){for(var e=this,i=function(t,e){if(t===e)return t;var i=t.ancestors(),n=e.ancestors(),r=null;for(t=i.pop(),e=n.pop();t===e;)r=t,t=i.pop(),e=n.pop();return r}(e,t),n=[e];e!==i;)n.push(e=e.parent);for(var r=n.length;t!==i;)n.splice(r,0,t),t=t.parent;return n},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){var t=[];return this.each(function(e){t.push(e)}),t},leaves:function(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t},links:function(){var t=this,e=[];return t.each(function(i){i!==t&&e.push({source:i.parent,target:i})}),e},copy:function(){return Es(this).eachBefore(Ts)}};var Is=i(269);const Os=["caretElm"];function Ds(t,e){}const Rs=function(t){return{model:t}};function Ns(t,e){if(1&t&&(n.TgZ(0,"span"),n.YNc(1,Ds,0,0,"ng-template",5),n.qZA()),2&t){const t=n.oxw();n.xp6(1),n.Q6J("ngTemplateOutlet",t.template)("ngTemplateOutletContext",n.VKq(2,Rs,t.context))}}function Ps(t,e){if(1&t&&n._UZ(0,"span",6),2&t){const t=n.oxw();n.Q6J("innerHTML",t.title,n.oJD)}}function Fs(t,e){if(1&t&&(n.O4$(),n.kcU(),n._UZ(0,"ngx-charts-scale-legend",4)),2&t){const t=n.oxw();n.Q6J("horizontal",t.legendOptions&&"below"===t.legendOptions.position)("valueRange",t.legendOptions.domain)("colors",t.legendOptions.colors)("height",t.view[1])("width",t.legendWidth)}}function Zs(t,e){if(1&t){const t=n.EpF();n.O4$(),n.kcU(),n.TgZ(0,"ngx-charts-legend",5),n.NdJ("labelClick",function(e){return n.CHM(t),n.oxw().legendLabelClick.emit(e)})("labelActivate",function(e){return n.CHM(t),n.oxw().legendLabelActivate.emit(e)})("labelDeactivate",function(e){return n.CHM(t),n.oxw().legendLabelDeactivate.emit(e)}),n.qZA()}if(2&t){const t=n.oxw();n.Q6J("horizontal",t.legendOptions&&"below"===t.legendOptions.position)("data",t.legendOptions.domain)("title",t.legendOptions.title)("colors",t.legendOptions.colors)("height",t.view[1])("width",t.legendWidth)("activeEntries",t.activeEntries)}}const Bs=["*"],Us=["ngx-charts-axis-label",""],qs=["ticksel"],zs=["ngx-charts-x-axis-ticks",""];function Hs(t,e){if(1&t&&(n.O4$(),n.TgZ(0,"g",3),n.TgZ(1,"title"),n._uU(2),n.qZA(),n.TgZ(3,"text",4),n._uU(4),n.qZA(),n.qZA()),2&t){const t=e.$implicit,i=n.oxw();n.uIk("transform",i.tickTransform(t)),n.xp6(2),n.Oqu(i.tickFormat(t)),n.xp6(1),n.Udp("font-size","12px"),n.uIk("text-anchor",i.textAnchor)("transform",i.textTransform),n.xp6(1),n.hij(" ",i.tickTrim(i.tickFormat(t))," ")}}function Ys(t,e){if(1&t&&(n.O4$(),n.TgZ(0,"g"),n._UZ(1,"line",6),n.qZA()),2&t){const t=n.oxw(2);n.uIk("transform",t.gridLineTransform()),n.xp6(1),n.uIk("y1",-t.gridLineHeight)}}function Gs(t,e){if(1&t&&(n.O4$(),n.TgZ(0,"g"),n.YNc(1,Ys,2,2,"g",5),n.qZA()),2&t){const t=e.$implicit,i=n.oxw();n.uIk("transform",i.tickTransform(t)),n.xp6(1),n.Q6J("ngIf",i.showGridLines)}}const js=["ngx-charts-x-axis",""];function Vs(t,e){if(1&t){const t=n.EpF();n.O4$(),n.TgZ(0,"g",2),n.NdJ("dimensionsChanged",function(e){return n.CHM(t),n.oxw().emitTicksHeight(e)}),n.qZA()}if(2&t){const t=n.oxw();n.Q6J("trimTicks",t.trimTicks)("rotateTicks",t.rotateTicks)("maxTickLength",t.maxTickLength)("tickFormatting",t.tickFormatting)("tickArguments",t.tickArguments)("tickStroke",t.tickStroke)("scale",t.xScale)("orient",t.xOrient)("showGridLines",t.showGridLines)("gridLineHeight",t.dims.height)("width",t.dims.width)("tickValues",t.ticks)}}function Qs(t,e){if(1&t&&(n.O4$(),n._UZ(0,"g",3)),2&t){const t=n.oxw();n.Q6J("label",t.labelText)("offset",t.labelOffset)("orient","bottom")("height",t.dims.height)("width",t.dims.width)}}const Ws=["ngx-charts-y-axis-ticks",""];function Js(t,e){if(1&t&&(n.O4$(),n.TgZ(0,"g",4),n.TgZ(1,"title"),n._uU(2),n.qZA(),n.TgZ(3,"text",5),n._uU(4),n.qZA(),n.qZA()),2&t){const t=e.$implicit,i=n.oxw();n.uIk("transform",i.transform(t)),n.xp6(2),n.Oqu(i.tickFormat(t)),n.xp6(1),n.Udp("font-size","12px"),n.uIk("dy",i.dy)("x",i.x1)("y",i.y1)("text-anchor",i.textAnchor),n.xp6(1),n.hij(" ",i.tickTrim(i.tickFormat(t))," ")}}function Xs(t,e){if(1&t&&(n.O4$(),n._UZ(0,"path",6)),2&t){const t=n.oxw();n.uIk("d",t.referenceAreaPath)("transform",t.gridLineTransform())}}function Ks(t,e){if(1&t&&(n.O4$(),n._UZ(0,"line",9)),2&t){const t=n.oxw(3);n.uIk("x2",t.gridLineWidth)}}function $s(t,e){if(1&t&&(n.O4$(),n._UZ(0,"line",9)),2&t){const t=n.oxw(3);n.uIk("x2",-t.gridLineWidth)}}function to(t,e){if(1&t&&(n.O4$(),n.TgZ(0,"g"),n.YNc(1,Ks,1,1,"line",8),n.YNc(2,$s,1,1,"line",8),n.qZA()),2&t){const t=n.oxw(2);n.uIk("transform",t.gridLineTransform()),n.xp6(1),n.Q6J("ngIf","left"===t.orient),n.xp6(1),n.Q6J("ngIf","right"===t.orient)}}function eo(t,e){if(1&t&&(n.O4$(),n.TgZ(0,"g"),n.YNc(1,to,3,3,"g",7),n.qZA()),2&t){const t=e.$implicit,i=n.oxw();n.uIk("transform",i.transform(t)),n.xp6(1),n.Q6J("ngIf",i.showGridLines)}}function io(t,e){if(1&t&&(n.O4$(),n.TgZ(0,"g"),n.TgZ(1,"title"),n._uU(2),n.qZA(),n.TgZ(3,"text",11),n._uU(4),n.qZA(),n.qZA()),2&t){const t=n.oxw(2).$implicit,e=n.oxw();n.xp6(2),n.Oqu(e.tickTrim(e.tickFormat(t.value))),n.xp6(1),n.uIk("dy",e.dy)("y",-6)("x",e.gridLineWidth)("text-anchor",e.textAnchor),n.xp6(1),n.hij(" ",t.name," ")}}function no(t,e){if(1&t&&(n.O4$(),n.TgZ(0,"g"),n._UZ(1,"line",10),n.YNc(2,io,5,6,"g",7),n.qZA()),2&t){const t=n.oxw().$implicit,e=n.oxw();n.uIk("transform",e.transform(t.value)),n.xp6(1),n.uIk("x2",e.gridLineWidth)("transform",e.gridLineTransform()),n.xp6(1),n.Q6J("ngIf",e.showRefLabels)}}function ro(t,e){if(1&t&&(n.O4$(),n.TgZ(0,"g"),n.YNc(1,no,3,4,"g",7),n.qZA()),2&t){const t=n.oxw();n.xp6(1),n.Q6J("ngIf",t.showRefLines)}}const so=["ngx-charts-y-axis",""];function oo(t,e){if(1&t){const t=n.EpF();n.O4$(),n.TgZ(0,"g",2),n.NdJ("dimensionsChanged",function(e){return n.CHM(t),n.oxw().emitTicksWidth(e)}),n.qZA()}if(2&t){const t=n.oxw();n.Q6J("trimTicks",t.trimTicks)("maxTickLength",t.maxTickLength)("tickFormatting",t.tickFormatting)("tickArguments",t.tickArguments)("tickValues",t.ticks)("tickStroke",t.tickStroke)("scale",t.yScale)("orient",t.yOrient)("showGridLines",t.showGridLines)("gridLineWidth",t.dims.width)("referenceLines",t.referenceLines)("showRefLines",t.showRefLines)("showRefLabels",t.showRefLabels)("height",t.dims.height)}}function ao(t,e){if(1&t&&(n.O4$(),n._UZ(0,"g",3)),2&t){const t=n.oxw();n.Q6J("label",t.labelText)("offset",t.labelOffset)("orient",t.yOrient)("height",t.dims.height)("width",t.dims.width)}}const lo=["ngx-charts-grid-panel",""],co=["ngx-charts-grid-panel-series",""];function ho(t,e){if(1&t&&(n.O4$(),n._UZ(0,"g",1)),2&t){const t=e.$implicit;n.ekj("grid-panel",!0)("odd","odd"===t.class)("even","even"===t.class),n.Q6J("height",t.height)("width",t.width)("x",t.x)("y",t.y)}}const uo=["ngx-charts-svg-linear-gradient",""];function po(t,e){if(1&t&&(n.O4$(),n._UZ(0,"stop")),2&t){const t=e.$implicit;n.Udp("stop-color",t.color)("stop-opacity",t.opacity),n.uIk("offset",t.offset+"%")}}function fo(t,e){if(1&t&&(n.TgZ(0,"header",4),n.TgZ(1,"span",5),n._uU(2),n.qZA(),n.qZA()),2&t){const t=n.oxw();n.xp6(2),n.Oqu(t.title)}}function mo(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"li",6),n.TgZ(1,"ngx-charts-legend-entry",7),n.NdJ("select",function(e){return n.CHM(t),n.oxw().labelClick.emit(e)})("activate",function(e){return n.CHM(t),n.oxw().activate(e)})("deactivate",function(e){return n.CHM(t),n.oxw().deactivate(e)}),n.qZA(),n.qZA()}if(2&t){const t=e.$implicit,i=n.oxw();n.xp6(1),n.Q6J("label",t.label)("formattedLabel",t.formattedLabel)("color",t.color)("isActive",i.isActive(t))}}const go=["tooltipTemplate"],yo=function(t,e){return[t,e]},bo=".ngx-charts{float:left;overflow:visible}.ngx-charts .arc,.ngx-charts .bar,.ngx-charts .circle{cursor:pointer}.ngx-charts .arc.active,.ngx-charts .arc:hover,.ngx-charts .bar.active,.ngx-charts .bar:hover,.ngx-charts .card.active,.ngx-charts .card:hover,.ngx-charts .cell.active,.ngx-charts .cell:hover{opacity:.8;transition:opacity .1s ease-in-out}.ngx-charts .arc:focus,.ngx-charts .bar:focus,.ngx-charts .card:focus,.ngx-charts .cell:focus{outline:none}.ngx-charts .arc.hidden,.ngx-charts .bar.hidden,.ngx-charts .card.hidden,.ngx-charts .cell.hidden{display:none}.ngx-charts g:focus{outline:none}.ngx-charts .area-series.inactive,.ngx-charts .line-series-range.inactive,.ngx-charts .line-series.inactive,.ngx-charts .polar-series-area.inactive,.ngx-charts .polar-series-path.inactive{opacity:.2;transition:opacity .1s ease-in-out}.ngx-charts .line-highlight{display:none}.ngx-charts .line-highlight.active{display:block}.ngx-charts .area{opacity:.6}.ngx-charts .circle:hover{cursor:pointer}.ngx-charts .label{font-size:12px;font-weight:400}.ngx-charts .tooltip-anchor{fill:#000}.ngx-charts .gridline-path{fill:none;stroke:#ddd;stroke-width:1}.ngx-charts .refline-path{stroke:#a8b2c7;stroke-dasharray:5;stroke-dashoffset:5;stroke-width:1}.ngx-charts .refline-label{font-size:9px}.ngx-charts .reference-area{fill:#000;fill-opacity:.05}.ngx-charts .gridline-path-dotted{fill:none;stroke:#ddd;stroke-dasharray:1,20;stroke-dashoffset:3;stroke-width:1}.ngx-charts .grid-panel rect{fill:none}.ngx-charts .grid-panel.odd rect{fill:rgba(0,0,0,.05)}",vo=["ngx-charts-bar",""];function _o(t,e){if(1&t&&(n.O4$(),n.TgZ(0,"defs"),n._UZ(1,"g",2),n.qZA()),2&t){const t=n.oxw();n.xp6(1),n.Q6J("orientation",t.orientation)("name",t.gradientId)("stops",t.gradientStops)}}function wo(t,e){if(1&t){const t=n.EpF();n.O4$(),n.TgZ(0,"g",5),n.NdJ("dimensionsChanged",function(e){return n.CHM(t),n.oxw().updateXAxisHeight(e)}),n.qZA()}if(2&t){const t=n.oxw();n.Q6J("xScale",t.xScale)("dims",t.dims)("showLabel",t.showXAxisLabel)("labelText",t.xAxisLabel)("trimTicks",t.trimXAxisTicks)("rotateTicks",t.rotateXAxisTicks)("maxTickLength",t.maxXAxisTickLength)("tickFormatting",t.xAxisTickFormatting)("ticks",t.xAxisTicks)("xAxisOffset",t.dataLabelMaxHeight.negative)}}function xo(t,e){if(1&t){const t=n.EpF();n.O4$(),n.TgZ(0,"g",6),n.NdJ("dimensionsChanged",function(e){return n.CHM(t),n.oxw().updateYAxisWidth(e)}),n.qZA()}if(2&t){const t=n.oxw();n.Q6J("yScale",t.yScale)("dims",t.dims)("showGridLines",t.showGridLines)("showLabel",t.showYAxisLabel)("labelText",t.yAxisLabel)("trimTicks",t.trimYAxisTicks)("maxTickLength",t.maxYAxisTickLength)("tickFormatting",t.yAxisTickFormatting)("ticks",t.yAxisTicks)}}function Co(t,e){if(1&t){const t=n.EpF();n.O4$(),n.TgZ(0,"g",6),n.NdJ("dimensionsChanged",function(e){return n.CHM(t),n.oxw().updateXAxisHeight(e)}),n.qZA()}if(2&t){const t=n.oxw();n.Q6J("xScale",t.groupScale)("dims",t.dims)("showLabel",t.showXAxisLabel)("labelText",t.xAxisLabel)("trimTicks",t.trimXAxisTicks)("rotateTicks",t.rotateXAxisTicks)("maxTickLength",t.maxXAxisTickLength)("tickFormatting",t.xAxisTickFormatting)("ticks",t.xAxisTicks)("xAxisOffset",t.dataLabelMaxHeight.negative)}}function Ao(t,e){if(1&t){const t=n.EpF();n.O4$(),n.TgZ(0,"g",7),n.NdJ("dimensionsChanged",function(e){return n.CHM(t),n.oxw().updateYAxisWidth(e)}),n.qZA()}if(2&t){const t=n.oxw();n.Q6J("yScale",t.valueScale)("dims",t.dims)("showGridLines",t.showGridLines)("showLabel",t.showYAxisLabel)("labelText",t.yAxisLabel)("trimTicks",t.trimYAxisTicks)("maxTickLength",t.maxYAxisTickLength)("tickFormatting",t.yAxisTickFormatting)("ticks",t.yAxisTicks)}}function So(t,e){if(1&t){const t=n.EpF();n.O4$(),n.TgZ(0,"g",8),n.NdJ("select",function(e){const i=n.CHM(t).$implicit;return n.oxw().onClick(e,i)})("activate",function(e){const i=n.CHM(t).$implicit;return n.oxw().onActivate(e,i)})("deactivate",function(e){const i=n.CHM(t).$implicit;return n.oxw().onDeactivate(e,i)})("dataLabelHeightChanged",function(e){const i=n.CHM(t).index;return n.oxw().onDataLabelMaxHeightChanged(e,i)}),n.qZA()}if(2&t){const t=e.$implicit,i=n.oxw();n.Q6J("@animationState","active")("activeEntries",i.activeEntries)("xScale",i.innerScale)("yScale",i.valueScale)("colors",i.colors)("series",t.series)("dims",i.dims)("gradient",i.gradient)("tooltipDisabled",i.tooltipDisabled)("tooltipTemplate",i.tooltipTemplate)("showDataLabel",i.showDataLabel)("dataLabelFormatting",i.dataLabelFormatting)("seriesName",t.name)("roundEdges",i.roundEdges)("animations",i.animations)("noBarWhenZero",i.noBarWhenZero),n.uIk("transform",i.groupTransform(t))}}const Eo=["ngx-charts-series-vertical",""];function ko(t,e){if(1&t){const t=n.EpF();n.O4$(),n.TgZ(0,"g",2),n.NdJ("select",function(e){return n.CHM(t),n.oxw().onClick(e)})("activate",function(e){return n.CHM(t),n.oxw().activate.emit(e)})("deactivate",function(e){return n.CHM(t),n.oxw().deactivate.emit(e)}),n.qZA()}if(2&t){const t=e.$implicit,i=n.oxw();n.Q6J("@animationState","active")("@.disabled",!i.animations)("width",t.width)("height",t.height)("x",t.x)("y",t.y)("fill",t.color)("stops",t.gradientStops)("data",t.data)("orientation","vertical")("roundEdges",t.roundEdges)("gradient",i.gradient)("ariaLabel",t.ariaLabel)("isActive",i.isActive(t.data))("tooltipDisabled",i.tooltipDisabled)("tooltipPlacement",i.tooltipPlacement)("tooltipType",i.tooltipType)("tooltipTitle",i.tooltipTemplate?void 0:t.tooltipText)("tooltipTemplate",i.tooltipTemplate)("tooltipContext",t.data)("noBarWhenZero",i.noBarWhenZero)("animations",i.animations)}}function To(t,e){if(1&t){const t=n.EpF();n.O4$(),n.TgZ(0,"g",4),n.NdJ("dimensionsChanged",function(e){const i=n.CHM(t).index;return n.oxw(2).dataLabelHeightChanged.emit({size:e,index:i})}),n.qZA()}if(2&t){const t=e.$implicit,i=n.oxw(2);n.Q6J("barX",t.x)("barY",t.y)("barWidth",t.width)("barHeight",t.height)("value",t.total)("valueFormatting",i.dataLabelFormatting)("orientation","vertical")}}function Mo(t,e){if(1&t&&(n.O4$(),n.TgZ(0,"g"),n.YNc(1,To,1,7,"g",3),n.qZA()),2&t){const t=n.oxw();n.xp6(1),n.Q6J("ngForOf",t.barsForDataLabels)("ngForTrackBy",t.trackDataLabelBy)}}const Lo=["ngx-charts-bar-label",""];let Io=(()=>{class t{constructor(t,e,i){this.applicationRef=t,this.componentFactoryResolver=e,this.injector=i}static setGlobalRootViewContainer(e){t.globalRootViewContainer=e}getRootViewContainer(){if(this._container)return this._container;if(t.globalRootViewContainer)return t.globalRootViewContainer;if(this.applicationRef.components.length)return this.applicationRef.components[0];throw new Error("View Container not found! ngUpgrade needs to manually set this via setRootViewContainer or setGlobalRootViewContainer.")}setRootViewContainer(t){this._container=t}getComponentRootNode(t){return t.element?t.element.nativeElement:t.hostView&&t.hostView.rootNodes.length>0?t.hostView.rootNodes[0]:t.location.nativeElement}getRootViewContainerNode(t){return this.getComponentRootNode(t)}projectComponentBindings(t,e){if(e){if(void 0!==e.inputs){const i=Object.getOwnPropertyNames(e.inputs);for(const n of i)t.instance[n]=e.inputs[n]}if(void 0!==e.outputs){const i=Object.getOwnPropertyNames(e.outputs);for(const n of i)t.instance[n]=e.outputs[n]}}return t}appendComponent(t,e={},i){i||(i=this.getRootViewContainer());const n=this.getComponentRootNode(i),r=new o.F0(n,this.componentFactoryResolver,this.applicationRef,this.injector),s=new o.C5(t),a=r.attach(s);return this.projectComponentBindings(a,e),a}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(n.z2F),n.LFG(n._Vd),n.LFG(n.zs3))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t.globalRootViewContainer=null,t})();function Oo(t,e,i){let n,r,s;i=i||{};let o=null,a=0;function l(){a=!1===i.leading?0:+new Date,o=null,s=t.apply(n,r)}return function(){const c=+new Date;a||!1!==i.leading||(a=c);const h=e-(c-a);return n=this,r=arguments,h<=0?(clearTimeout(o),o=null,a=c,s=t.apply(n,r)):o||!1===i.trailing||(o=setTimeout(l,h)),s}}var Do=function(t){return t[t.top="top"]="top",t[t.bottom="bottom"]="bottom",t[t.left="left"]="left",t[t.right="right"]="right",t}({});function Ro(t,e,i){return"top"===i?t.top-7:"bottom"===i?t.top+t.height-e.height+7:"center"===i?t.top+t.height/2-e.height/2:void 0}function No(t,e,i){return"left"===i?t.left-7:"right"===i?t.left+t.width-e.width+7:"center"===i?t.left+t.width/2-e.width/2:void 0}class Po{static calculateVerticalAlignment(t,e,i){let n=Ro(t,e,i);return n+e.height>window.innerHeight&&(n=window.innerHeight-e.height),n}static calculateVerticalCaret(t,e,i,n){let r;"top"===n&&(r=t.height/2-i.height/2+7),"bottom"===n&&(r=e.height-t.height/2-i.height/2-7),"center"===n&&(r=e.height/2-i.height/2);const s=Ro(t,e,n);return s+e.height>window.innerHeight&&(r+=s+e.height-window.innerHeight),r}static calculateHorizontalAlignment(t,e,i){let n=No(t,e,i);return n+e.width>window.innerWidth&&(n=window.innerWidth-e.width),n}static calculateHorizontalCaret(t,e,i,n){let r;"left"===n&&(r=t.width/2-i.width/2+7),"right"===n&&(r=e.width-t.width/2-i.width/2-7),"center"===n&&(r=e.width/2-i.width/2);const s=No(t,e,n);return s+e.width>window.innerWidth&&(r+=s+e.width-window.innerWidth),r}static shouldFlip(t,e,i,n){let r=!1;return"right"===i&&t.left+t.width+e.width+n>window.innerWidth&&(r=!0),"left"===i&&t.left-e.width-n<0&&(r=!0),"top"===i&&t.top-e.height-n<0&&(r=!0),"bottom"===i&&t.top+t.height+e.height+n>window.innerHeight&&(r=!0),r}static positionCaret(t,e,i,n,r){let s=0,o=0;return t===Do.right?(o=-7,s=Po.calculateVerticalCaret(i,e,n,r)):t===Do.left?(o=e.width,s=Po.calculateVerticalCaret(i,e,n,r)):t===Do.top?(s=e.height,o=Po.calculateHorizontalCaret(i,e,n,r)):t===Do.bottom&&(s=-7,o=Po.calculateHorizontalCaret(i,e,n,r)),{top:s,left:o}}static positionContent(t,e,i,n,r){let s=0,o=0;return t===Do.right?(o=i.left+i.width+n,s=Po.calculateVerticalAlignment(i,e,r)):t===Do.left?(o=i.left-e.width-n,s=Po.calculateVerticalAlignment(i,e,r)):t===Do.top?(s=i.top-e.height-n,o=Po.calculateHorizontalAlignment(i,e,r)):t===Do.bottom&&(s=i.top+i.height+n,o=Po.calculateHorizontalAlignment(i,e,r)),{top:s,left:o}}static determinePlacement(t,e,i,n){if(Po.shouldFlip(i,e,t,n)){if(t===Do.right)return Do.left;if(t===Do.left)return Do.right;if(t===Do.top)return Do.bottom;if(t===Do.bottom)return Do.top}return t}}let Fo=(()=>{class t{constructor(t,e){this.element=t,this.renderer=e}get cssClasses(){let t="ngx-charts-tooltip-content";return t+=` position-${this.placement}`,t+=` type-${this.type}`,t+=` ${this.cssClass}`,t}ngAfterViewInit(){setTimeout(this.position.bind(this))}position(){const t=this.element.nativeElement,e=this.host.nativeElement.getBoundingClientRect();if(!e.height&&!e.width)return;const i=t.getBoundingClientRect();this.checkFlip(e,i),this.positionContent(t,e,i),this.showCaret&&this.positionCaret(e,i),setTimeout(()=>this.renderer.addClass(t,"animate"),1)}positionContent(t,e,i){const{top:n,left:r}=Po.positionContent(this.placement,i,e,this.spacing,this.alignment);this.renderer.setStyle(t,"top",`${n}px`),this.renderer.setStyle(t,"left",`${r}px`)}positionCaret(t,e){const i=this.caretElm.nativeElement,n=i.getBoundingClientRect(),{top:r,left:s}=Po.positionCaret(this.placement,e,t,n,this.alignment);this.renderer.setStyle(i,"top",`${r}px`),this.renderer.setStyle(i,"left",`${s}px`)}checkFlip(t,e){this.placement=Po.determinePlacement(this.placement,e,t,this.spacing)}onWindowResize(){this.position()}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(n.Qsj))},t.\u0275cmp=n.Xpm({type:t,selectors:[["ngx-tooltip-content"]],viewQuery:function(t,e){if(1&t&&n.Gf(Os,5),2&t){let t;n.iGM(t=n.CRH())&&(e.caretElm=t.first)}},hostVars:2,hostBindings:function(t,e){1&t&&n.NdJ("resize",function(){return e.onWindowResize()},!1,n.Jf7),2&t&&n.Tol(e.cssClasses)},inputs:{placement:"placement",host:"host",showCaret:"showCaret",type:"type",alignment:"alignment",spacing:"spacing",cssClass:"cssClass",title:"title",template:"template",context:"context"},decls:6,vars:6,consts:[[3,"hidden"],["caretElm",""],[1,"tooltip-content"],[4,"ngIf"],[3,"innerHTML",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"innerHTML"]],template:function(t,e){1&t&&(n.TgZ(0,"div"),n._UZ(1,"span",0,1),n.TgZ(3,"div",2),n.YNc(4,Ns,2,4,"span",3),n.YNc(5,Ps,1,1,"span",4),n.qZA(),n.qZA()),2&t&&(n.xp6(1),n.Gre("tooltip-caret position-",e.placement,""),n.Q6J("hidden",!e.showCaret),n.xp6(3),n.Q6J("ngIf",!e.title),n.xp6(1),n.Q6J("ngIf",e.title))},directives:[r.O5,r.tP],styles:[".ngx-charts-tooltip-content{border-radius:3px;display:block;font-weight:400;opacity:0;pointer-events:none!important;position:fixed;z-index:5000}.ngx-charts-tooltip-content.type-popover{background:#fff;border:1px solid #72809b;box-shadow:0 1px 3px 0 rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 2px 1px -1px rgba(0,0,0,.12);color:#060709;font-size:13px;padding:4px}.ngx-charts-tooltip-content.type-popover .tooltip-caret{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid #fff;border-top:7px solid transparent}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-right{border-bottom:7px solid transparent;border-right:7px solid #fff;border-top:7px solid transparent}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-bottom{border-bottom:7px solid #fff;border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip{background:rgba(0,0,0,.75);color:#fff;font-size:12px;padding:0 10px;pointer-events:auto;text-align:center}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-right{border-bottom:7px solid transparent;border-right:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-bottom{border-bottom:7px solid rgba(0,0,0,.75);border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content .tooltip-label{display:block;font-size:1em;line-height:1em;padding:8px 5px 5px}.ngx-charts-tooltip-content .tooltip-val{display:block;font-size:1.3em;line-height:1em;padding:0 5px 8px}.ngx-charts-tooltip-content .tooltip-caret{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.position-right{transform:translate3d(10px,0,0)}.ngx-charts-tooltip-content.position-left{transform:translate3d(-10px,0,0)}.ngx-charts-tooltip-content.position-top{transform:translate3d(0,-10px,0)}.ngx-charts-tooltip-content.position-bottom{transform:translate3d(0,10px,0)}.ngx-charts-tooltip-content.animate{opacity:1;pointer-events:auto;transform:translateZ(0);transition:opacity .3s,transform .3s}.area-tooltip-container{padding:5px 0;pointer-events:none}.tooltip-item{line-height:1.2em;padding:5px 0;text-align:left}.tooltip-item .tooltip-item-color{border-radius:3px;color:#5b646b;display:inline-block;height:12px;margin-right:5px;width:12px}"],encapsulation:2}),function(t,e,i,n){var r,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(o=(s<3?r(o):s>3?r(e,i,o):r(e,i))||o);s>3&&o&&Object.defineProperty(e,i,o)}([(100,function(t,e,i){return{configurable:!0,enumerable:i.enumerable,get:function(){return Object.defineProperty(this,e,{configurable:!0,enumerable:i.enumerable,value:Oo(i.value,100,undefined)}),this[e]}}})],t.prototype,"onWindowResize",null),t})(),Zo=(()=>{class t extends class{constructor(t){this.injectionService=t,this.defaults={},this.components=new Map}getByType(t=this.type){return this.components.get(t)}create(t){return this.createByType(this.type,t)}createByType(t,e){e=this.assignDefaults(e);const i=this.injectComponent(t,e);return this.register(t,i),i}destroy(t){const e=this.components.get(t.componentType);if(e&&e.length){const i=e.indexOf(t);i>-1&&(e[i].destroy(),e.splice(i,1))}}destroyAll(){this.destroyByType(this.type)}destroyByType(t){const e=this.components.get(t);if(e&&e.length){let t=e.length-1;for(;t>=0;)this.destroy(e[t--])}}injectComponent(t,e){return this.injectionService.appendComponent(t,e)}assignDefaults(t){const e=Object.assign({},this.defaults.inputs),i=Object.assign({},this.defaults.outputs);return t.inputs||t.outputs||(t={inputs:t}),e&&(t.inputs=Object.assign(Object.assign({},e),t.inputs)),i&&(t.outputs=Object.assign(Object.assign({},i),t.outputs)),t}register(t,e){this.components.has(t)||this.components.set(t,[]),this.components.get(t).push(e)}}{constructor(t){super(t),this.type=Fo}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(Io))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})(),Bo=(()=>{class t{constructor(){this.showLegend=!1,this.animations=!0,this.legendLabelClick=new n.vpe,this.legendLabelActivate=new n.vpe,this.legendLabelDeactivate=new n.vpe}ngOnChanges(t){this.update()}update(){let t=0;this.showLegend&&(this.legendType=this.getLegendType(),this.legendOptions&&"right"!==this.legendOptions.position||(t="scaleLegend"===this.legendType?1:2)),this.chartWidth=Math.floor(this.view[0]*(12-t)/12),this.legendWidth=this.legendOptions&&"right"!==this.legendOptions.position?this.chartWidth:Math.floor(this.view[0]*t/12)}getLegendType(){return"linear"===this.legendOptions.scaleType?"scaleLegend":"legend"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["ngx-charts-chart"]],inputs:{showLegend:"showLegend",animations:"animations",legendType:"legendType",view:"view",legendOptions:"legendOptions",data:"data",legendData:"legendData",colors:"colors",activeEntries:"activeEntries"},outputs:{legendLabelClick:"legendLabelClick",legendLabelActivate:"legendLabelActivate",legendLabelDeactivate:"legendLabelDeactivate"},features:[n._Bn([Zo]),n.TTD],ngContentSelectors:Bs,decls:5,vars:8,consts:[[1,"ngx-charts-outer"],[1,"ngx-charts"],["class","chart-legend",3,"horizontal","valueRange","colors","height","width",4,"ngIf"],["class","chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate",4,"ngIf"],[1,"chart-legend",3,"horizontal","valueRange","colors","height","width"],[1,"chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate"]],template:function(t,e){1&t&&(n.F$t(),n.TgZ(0,"div",0),n.O4$(),n.TgZ(1,"svg",1),n.Hsn(2),n.qZA(),n.YNc(3,Fs,1,5,"ngx-charts-scale-legend",2),n.YNc(4,Zs,1,7,"ngx-charts-legend",3),n.qZA()),2&t&&(n.Udp("width",e.view[0],"px"),n.Q6J("@animationState","active")("@.disabled",!e.animations),n.xp6(1),n.uIk("width",e.chartWidth)("height",e.view[1]),n.xp6(2),n.Q6J("ngIf",e.showLegend&&"scaleLegend"===e.legendType),n.xp6(1),n.Q6J("ngIf",e.showLegend&&"legend"===e.legendType))},directives:function(){return[r.O5,ua,ca]},encapsulation:2,data:{animation:[(0,s.X$)("animationState",[(0,s.eR)(":enter",[(0,s.oB)({opacity:0}),(0,s.jt)("500ms 100ms",(0,s.oB)({opacity:1}))])])]},changeDetection:0}),t})(),Uo=(()=>{class t{constructor(t,e){this.element=t,this.zone=e,this.visible=new n.vpe,this.isVisible=!1,this.runCheck()}destroy(){clearTimeout(this.timeout)}onVisibilityChange(){this.zone.run(()=>{this.isVisible=!0,this.visible.emit(!0)})}runCheck(){const t=()=>{if(!this.element)return;const{offsetHeight:e,offsetWidth:i}=this.element.nativeElement;e&&i?(clearTimeout(this.timeout),this.onVisibilityChange()):(clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>t(),100)}))};this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>t())})}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(n.R0b))},t.\u0275dir=n.lG2({type:t,selectors:[["visibility-observer"]],outputs:{visible:"visible"}}),t})(),qo=(()=>{class t{constructor(t,e,i){this.chartElement=t,this.zone=e,this.cd=i,this.scheme="cool",this.schemeType="ordinal",this.animations=!0,this.select=new n.vpe}ngAfterViewInit(){this.bindWindowResizeEvent(),this.visibilityObserver=new Uo(this.chartElement,this.zone),this.visibilityObserver.visible.subscribe(this.update.bind(this))}ngOnDestroy(){this.unbindEvents(),this.visibilityObserver&&(this.visibilityObserver.visible.unsubscribe(),this.visibilityObserver.destroy())}ngOnChanges(t){this.update()}update(){if(this.results=this.results?this.cloneData(this.results):[],this.view)this.width=this.view[0],this.height=this.view[1];else{const t=this.getContainerDims();t&&(this.width=t.width,this.height=t.height)}this.width||(this.width=600),this.height||(this.height=400),this.width=Math.floor(this.width),this.height=Math.floor(this.height),this.cd&&this.cd.markForCheck()}getContainerDims(){let t,e;const i=this.chartElement.nativeElement;if(null!==i.parentNode){const n=i.parentNode.getBoundingClientRect();t=n.width,e=n.height}return t&&e?{width:t,height:e}:null}formatDates(){for(let t=0;t{this.update(),this.cd&&this.cd.markForCheck()});this.resizeSubscription=t}cloneData(t){const e=[];for(const i of t){const t={name:i.name};if(void 0!==i.value&&(t.value=i.value),void 0!==i.series){t.series=[];for(const e of i.series){const i=Object.assign({},e);t.series.push(i)}}void 0!==i.extra&&(t.extra=JSON.parse(JSON.stringify(i.extra))),e.push(t)}return e}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(n.sBO))},t.\u0275cmp=n.Xpm({type:t,selectors:[["base-chart"]],inputs:{scheme:"scheme",schemeType:"schemeType",animations:"animations",results:"results",view:"view",customColors:"customColors"},outputs:{select:"select"},features:[n.TTD],decls:1,vars:0,template:function(t,e){1&t&&n._UZ(0,"div")},encapsulation:2}),t})(),zo=(()=>{class t{constructor(t){this.textHeight=25,this.margin=5,this.element=t.nativeElement}ngOnChanges(t){this.update()}update(){switch(this.strokeWidth="0.01",this.textAnchor="middle",this.transform="",this.orient){case"top":case"bottom":this.y=this.offset,this.x=this.width/2;break;case"left":this.y=-(this.offset+this.textHeight+this.margin),this.x=-this.height/2,this.transform="rotate(270)";break;case"right":this.y=this.offset+this.margin,this.x=-this.height/2,this.transform="rotate(270)"}}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq))},t.\u0275cmp=n.Xpm({type:t,selectors:[["g","ngx-charts-axis-label",""]],inputs:{orient:"orient",label:"label",offset:"offset",width:"width",height:"height"},features:[n.TTD],attrs:Us,decls:2,vars:6,template:function(t,e){1&t&&(n.O4$(),n.TgZ(0,"text"),n._uU(1),n.qZA()),2&t&&(n.uIk("stroke-width",e.strokeWidth)("x",e.x)("y",e.y)("text-anchor",e.textAnchor)("transform",e.transform),n.xp6(1),n.hij(" ",e.label," "))},encapsulation:2,changeDetection:0}),t})();function Ho(t,e=16){return"string"!=typeof t?"number"==typeof t?t+"":"":(t=t.trim()).length<=e?t:`${t.slice(0,e)}...`}function Yo(t,e){if(t.length>e){const i=[],n=Math.floor(t.length/e);for(let e=0;e{class t{constructor(){this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.rotateTicks=!0,this.dimensionsChanged=new n.vpe,this.verticalSpacing=20,this.rotateLabels=!1,this.innerTickSize=6,this.outerTickSize=6,this.tickPadding=3,this.textAnchor="middle",this.maxTicksLength=0,this.maxAllowedLength=16,this.height=0}ngOnChanges(t){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){const t=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().height,10);t!==this.height&&(this.height=t,this.dimensionsChanged.emit({height:t}),setTimeout(()=>this.updateDims()))}update(){const t=this.scale;this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:t.tickFormat?t.tickFormat.apply(t,this.tickArguments):function(t){return"Date"===t.constructor.name?t.toLocaleDateString():t.toLocaleString()};const e=this.rotateTicks?this.getRotationAngle(this.ticks):null;this.adjustedScale=this.scale.bandwidth?function(t){return this.scale(t)+.5*this.scale.bandwidth()}:this.scale,this.textTransform="",e&&0!==e?(this.textTransform=`rotate(${e})`,this.textAnchor="end",this.verticalSpacing=10):this.textAnchor="middle",setTimeout(()=>this.updateDims())}getRotationAngle(t){let e=0;this.maxTicksLength=0;for(let s=0;sthis.maxTicksLength&&(this.maxTicksLength=i)}const i=8*Math.min(this.maxTicksLength,this.maxAllowedLength);let n=i;const r=Math.floor(this.width/t.length);for(;n>r&&e>-90;)e-=30,n=Math.cos(e*(Math.PI/180))*i;return e}getTicks(){let t;const e=this.getMaxTicks(20),i=this.getMaxTicks(100);return this.tickValues?t=this.tickValues:this.scale.ticks?t=this.scale.ticks.apply(this.scale,[i]):(t=this.scale.domain(),t=Yo(t,e)),t}getMaxTicks(t){return Math.floor(this.width/t)}tickTransform(t){return"translate("+this.adjustedScale(t)+","+this.verticalSpacing+")"}gridLineTransform(){return`translate(0,${-this.verticalSpacing-5})`}tickTrim(t){return this.trimTicks?Ho(t,this.maxTickLength):t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["g","ngx-charts-x-axis-ticks",""]],viewQuery:function(t,e){if(1&t&&n.Gf(qs,5),2&t){let t;n.iGM(t=n.CRH())&&(e.ticksElement=t.first)}},inputs:{tickArguments:"tickArguments",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",showGridLines:"showGridLines",rotateTicks:"rotateTicks",scale:"scale",orient:"orient",tickValues:"tickValues",tickFormatting:"tickFormatting",gridLineHeight:"gridLineHeight",width:"width"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[n.TTD],attrs:zs,decls:4,vars:2,consts:[["ticksel",""],["class","tick",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,"tick"],["stroke-width","0.01"],[4,"ngIf"],["y2","0",1,"gridline-path","gridline-path-vertical"]],template:function(t,e){1&t&&(n.O4$(),n.TgZ(0,"g",null,0),n.YNc(2,Hs,5,7,"g",1),n.qZA(),n.YNc(3,Gs,2,2,"g",2)),2&t&&(n.xp6(2),n.Q6J("ngForOf",e.ticks),n.xp6(1),n.Q6J("ngForOf",e.ticks))},directives:[r.sg,r.O5],encapsulation:2,changeDetection:0}),t})(),jo=(()=>{class t{constructor(){this.rotateTicks=!0,this.showGridLines=!1,this.xOrient="bottom",this.xAxisOffset=0,this.dimensionsChanged=new n.vpe,this.xAxisClassName="x axis",this.labelOffset=0,this.fill="none",this.stroke="stroke",this.tickStroke="#ccc",this.strokeWidth="none",this.padding=5}ngOnChanges(t){this.update()}update(){this.transform=`translate(0,${this.xAxisOffset+this.padding+this.dims.height})`,void 0!==this.xAxisTickCount&&(this.tickArguments=[this.xAxisTickCount])}emitTicksHeight({height:t}){const e=t+25+5;e!==this.labelOffset&&(this.labelOffset=e,setTimeout(()=>{this.dimensionsChanged.emit({height:t})},0))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["g","ngx-charts-x-axis",""]],viewQuery:function(t,e){if(1&t&&n.Gf(Go,5),2&t){let t;n.iGM(t=n.CRH())&&(e.ticksComponent=t.first)}},inputs:{rotateTicks:"rotateTicks",showGridLines:"showGridLines",xOrient:"xOrient",xAxisOffset:"xAxisOffset",xScale:"xScale",dims:"dims",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",showLabel:"showLabel",labelText:"labelText",ticks:"ticks",xAxisTickInterval:"xAxisTickInterval",xAxisTickCount:"xAxisTickCount"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[n.TTD],attrs:js,decls:3,vars:4,consts:[["ngx-charts-x-axis-ticks","",3,"trimTicks","rotateTicks","maxTickLength","tickFormatting","tickArguments","tickStroke","scale","orient","showGridLines","gridLineHeight","width","tickValues","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],["ngx-charts-x-axis-ticks","",3,"trimTicks","rotateTicks","maxTickLength","tickFormatting","tickArguments","tickStroke","scale","orient","showGridLines","gridLineHeight","width","tickValues","dimensionsChanged"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(t,e){1&t&&(n.O4$(),n.TgZ(0,"g"),n.YNc(1,Vs,1,12,"g",0),n.YNc(2,Qs,1,5,"g",1),n.qZA()),2&t&&(n.uIk("class",e.xAxisClassName)("transform",e.transform),n.xp6(1),n.Q6J("ngIf",e.xScale),n.xp6(1),n.Q6J("ngIf",e.showLabel))},directives:[r.O5,Go,zo],encapsulation:2,changeDetection:0}),t})();function Vo(t,e,i,n,r,[s,o,a,l]){let c="";return c=`M${[t+r,e]}`,c+="h"+((i=0===(i=Math.floor(i))?1:i)-2*r),c+=o?`a${[r,r]} 0 0 1 ${[r,r]}`:`h${r}v${r}`,c+="v"+((n=0===(n=Math.floor(n))?1:n)-2*r),c+=l?`a${[r,r]} 0 0 1 ${[-r,r]}`:`v${r}h${-r}`,c+="h"+(2*r-i),c+=a?`a${[r,r]} 0 0 1 ${[-r,-r]}`:`h${-r}v${-r}`,c+="v"+(2*r-n),c+=s?`a${[r,r]} 0 0 1 ${[r,-r]}`:`v${-r}h${r}`,c+="z",c}let Qo=(()=>{class t{constructor(){this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.showRefLabels=!1,this.showRefLines=!1,this.dimensionsChanged=new n.vpe,this.innerTickSize=6,this.tickPadding=3,this.verticalSpacing=20,this.textAnchor="middle",this.width=0,this.outerTickSize=6,this.rotateLabels=!1,this.referenceLineLength=0}ngOnChanges(t){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){const t=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().width,10);t!==this.width&&(this.width=t,this.dimensionsChanged.emit({width:t}),setTimeout(()=>this.updateDims()))}update(){let t;const e="top"===this.orient||"right"===this.orient?-1:1;switch(this.tickSpacing=Math.max(this.innerTickSize,0)+this.tickPadding,t=this.scale,this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:t.tickFormat?t.tickFormat.apply(t,this.tickArguments):function(t){return"Date"===t.constructor.name?t.toLocaleDateString():t.toLocaleString()},this.adjustedScale=t.bandwidth?function(e){return t(e)+.5*t.bandwidth()}:t,this.showRefLines&&this.referenceLines&&this.setReferencelines(),this.orient){case"top":case"bottom":this.transform=function(t){return"translate("+this.adjustedScale(t)+",0)"},this.textAnchor="middle",this.y2=this.innerTickSize*e,this.y1=this.tickSpacing*e,this.dy=e<0?"0em":".71em";break;case"left":this.transform=function(t){return"translate(0,"+this.adjustedScale(t)+")"},this.textAnchor="end",this.x2=this.innerTickSize*-e,this.x1=this.tickSpacing*-e,this.dy=".32em";break;case"right":this.transform=function(t){return"translate(0,"+this.adjustedScale(t)+")"},this.textAnchor="start",this.x2=this.innerTickSize*-e,this.x1=this.tickSpacing*-e,this.dy=".32em"}setTimeout(()=>this.updateDims())}setReferencelines(){this.refMin=this.adjustedScale(Math.min.apply(null,this.referenceLines.map(t=>t.value))),this.refMax=this.adjustedScale(Math.max.apply(null,this.referenceLines.map(t=>t.value))),this.referenceLineLength=this.referenceLines.length,this.referenceAreaPath=Vo(0,this.refMax,this.gridLineWidth,this.refMin-this.refMax,0,[!1,!1,!1,!1])}getTicks(){let t;const e=this.getMaxTicks(20),i=this.getMaxTicks(50);return this.tickValues?t=this.tickValues:this.scale.ticks?t=this.scale.ticks.apply(this.scale,[i]):(t=this.scale.domain(),t=Yo(t,e)),t}getMaxTicks(t){return Math.floor(this.height/t)}tickTransform(t){return`translate(${this.adjustedScale(t)},${this.verticalSpacing})`}gridLineTransform(){return"translate(5,0)"}tickTrim(t){return this.trimTicks?Ho(t,this.maxTickLength):t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["g","ngx-charts-y-axis-ticks",""]],viewQuery:function(t,e){if(1&t&&n.Gf(qs,5),2&t){let t;n.iGM(t=n.CRH())&&(e.ticksElement=t.first)}},inputs:{tickArguments:"tickArguments",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",showGridLines:"showGridLines",showRefLabels:"showRefLabels",showRefLines:"showRefLines",scale:"scale",orient:"orient",tickValues:"tickValues",tickFormatting:"tickFormatting",gridLineWidth:"gridLineWidth",height:"height",referenceLines:"referenceLines"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[n.TTD],attrs:Ws,decls:6,vars:4,consts:[["ticksel",""],["class","tick",4,"ngFor","ngForOf"],["class","reference-area",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"tick"],["stroke-width","0.01"],[1,"reference-area"],[4,"ngIf"],["class","gridline-path gridline-path-horizontal","x1","0",4,"ngIf"],["x1","0",1,"gridline-path","gridline-path-horizontal"],["x1","0",1,"refline-path","gridline-path-horizontal"],[1,"refline-label"]],template:function(t,e){1&t&&(n.O4$(),n.TgZ(0,"g",null,0),n.YNc(2,Js,5,9,"g",1),n.qZA(),n.YNc(3,Xs,1,2,"path",2),n.YNc(4,eo,2,2,"g",3),n.YNc(5,ro,2,1,"g",3)),2&t&&(n.xp6(2),n.Q6J("ngForOf",e.ticks),n.xp6(1),n.Q6J("ngIf",e.referenceLineLength>1&&e.refMax&&e.refMin&&e.showRefLines),n.xp6(1),n.Q6J("ngForOf",e.ticks),n.xp6(1),n.Q6J("ngForOf",e.referenceLines))},directives:[r.sg,r.O5],encapsulation:2,changeDetection:0}),t})(),Wo=(()=>{class t{constructor(){this.showGridLines=!1,this.yOrient="left",this.yAxisOffset=0,this.dimensionsChanged=new n.vpe,this.yAxisClassName="y axis",this.labelOffset=15,this.fill="none",this.stroke="#CCC",this.tickStroke="#CCC",this.strokeWidth=1,this.padding=5}ngOnChanges(t){this.update()}update(){this.offset=-(this.yAxisOffset+this.padding),"right"===this.yOrient?(this.labelOffset=65,this.transform=`translate(${this.offset+this.dims.width} , 0)`):(this.offset=this.offset,this.transform=`translate(${this.offset} , 0)`),void 0!==this.yAxisTickCount&&(this.tickArguments=[this.yAxisTickCount])}emitTicksWidth({width:t}){t!==this.labelOffset&&"right"===this.yOrient?(this.labelOffset=t+this.labelOffset,setTimeout(()=>{this.dimensionsChanged.emit({width:t})},0)):t!==this.labelOffset&&(this.labelOffset=t,setTimeout(()=>{this.dimensionsChanged.emit({width:t})},0))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["g","ngx-charts-y-axis",""]],viewQuery:function(t,e){if(1&t&&n.Gf(Qo,5),2&t){let t;n.iGM(t=n.CRH())&&(e.ticksComponent=t.first)}},inputs:{showGridLines:"showGridLines",yOrient:"yOrient",yAxisOffset:"yAxisOffset",yScale:"yScale",dims:"dims",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",ticks:"ticks",showLabel:"showLabel",labelText:"labelText",yAxisTickInterval:"yAxisTickInterval",yAxisTickCount:"yAxisTickCount",referenceLines:"referenceLines",showRefLines:"showRefLines",showRefLabels:"showRefLabels"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[n.TTD],attrs:so,decls:3,vars:4,consts:[["ngx-charts-y-axis-ticks","",3,"trimTicks","maxTickLength","tickFormatting","tickArguments","tickValues","tickStroke","scale","orient","showGridLines","gridLineWidth","referenceLines","showRefLines","showRefLabels","height","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],["ngx-charts-y-axis-ticks","",3,"trimTicks","maxTickLength","tickFormatting","tickArguments","tickValues","tickStroke","scale","orient","showGridLines","gridLineWidth","referenceLines","showRefLines","showRefLabels","height","dimensionsChanged"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(t,e){1&t&&(n.O4$(),n.TgZ(0,"g"),n.YNc(1,oo,1,14,"g",0),n.YNc(2,ao,1,5,"g",1),n.qZA()),2&t&&(n.uIk("class",e.yAxisClassName)("transform",e.transform),n.xp6(1),n.Q6J("ngIf",e.yScale),n.xp6(1),n.Q6J("ngIf",e.showLabel))},directives:[r.O5,Qo,zo],encapsulation:2,changeDetection:0}),t})(),Jo=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[r.ez]]}),t})();var Xo=function(t){return t[t.popover="popover"]="popover",t[t.tooltip="tooltip"]="tooltip",t}({}),Ko=function(t){return t[t.left="left"]="left",t[t.center="center"]="center",t[t.right="right"]="right",t}({}),$o=function(t){return t[t.all="all"]="all",t[t.focus="focus"]="focus",t[t.mouseover="mouseover"]="mouseover",t}({});let ta=(()=>{class t{constructor(t,e,i){this.tooltipService=t,this.viewContainerRef=e,this.renderer=i,this.tooltipCssClass="",this.tooltipTitle="",this.tooltipAppendToBody=!0,this.tooltipSpacing=10,this.tooltipDisabled=!1,this.tooltipShowCaret=!0,this.tooltipPlacement=Do.top,this.tooltipAlignment=Ko.center,this.tooltipType=Xo.popover,this.tooltipCloseOnClickOutside=!0,this.tooltipCloseOnMouseLeave=!0,this.tooltipHideTimeout=300,this.tooltipShowTimeout=100,this.tooltipShowEvent=$o.all,this.tooltipImmediateExit=!1,this.show=new n.vpe,this.hide=new n.vpe}get listensForFocus(){return this.tooltipShowEvent===$o.all||this.tooltipShowEvent===$o.focus}get listensForHover(){return this.tooltipShowEvent===$o.all||this.tooltipShowEvent===$o.mouseover}ngOnDestroy(){this.hideTooltip(!0)}onFocus(){this.listensForFocus&&this.showTooltip()}onBlur(){this.listensForFocus&&this.hideTooltip(!0)}onMouseEnter(){this.listensForHover&&this.showTooltip()}onMouseLeave(t){if(this.listensForHover&&this.tooltipCloseOnMouseLeave){if(clearTimeout(this.timeout),this.component&&this.component.instance.element.nativeElement.contains(t))return;this.hideTooltip(this.tooltipImmediateExit)}}onMouseClick(){this.listensForHover&&this.hideTooltip(!0)}showTooltip(t){if(this.component||this.tooltipDisabled)return;const e=t?0:this.tooltipShowTimeout;clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.tooltipService.destroyAll();const t=this.createBoundOptions();this.component=this.tooltipService.create(t),setTimeout(()=>{this.component&&this.addHideListeners(this.component.instance.element.nativeElement)},10),this.show.emit(!0)},e)}addHideListeners(t){this.mouseEnterContentEvent=this.renderer.listen(t,"mouseenter",()=>{clearTimeout(this.timeout)}),this.tooltipCloseOnMouseLeave&&(this.mouseLeaveContentEvent=this.renderer.listen(t,"mouseleave",()=>{this.hideTooltip(this.tooltipImmediateExit)})),this.tooltipCloseOnClickOutside&&(this.documentClickEvent=this.renderer.listen(document,"click",e=>{t.contains(e.target)||this.hideTooltip()}))}hideTooltip(t=!1){if(!this.component)return;const e=()=>{this.mouseLeaveContentEvent&&this.mouseLeaveContentEvent(),this.mouseEnterContentEvent&&this.mouseEnterContentEvent(),this.documentClickEvent&&this.documentClickEvent(),this.hide.emit(!0),this.tooltipService.destroy(this.component),this.component=void 0};clearTimeout(this.timeout),t?e():this.timeout=setTimeout(e,this.tooltipHideTimeout)}createBoundOptions(){return{title:this.tooltipTitle,template:this.tooltipTemplate,host:this.viewContainerRef.element,placement:this.tooltipPlacement,alignment:this.tooltipAlignment,type:this.tooltipType,showCaret:this.tooltipShowCaret,cssClass:this.tooltipCssClass,spacing:this.tooltipSpacing,context:this.tooltipContext}}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(Zo),n.Y36(n.s_b),n.Y36(n.Qsj))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngx-tooltip",""]],hostBindings:function(t,e){1&t&&n.NdJ("focusin",function(){return e.onFocus()})("blur",function(){return e.onBlur()})("mouseenter",function(){return e.onMouseEnter()})("mouseleave",function(t){return e.onMouseLeave(t.target)})("click",function(){return e.onMouseClick()})},inputs:{tooltipCssClass:"tooltipCssClass",tooltipTitle:"tooltipTitle",tooltipAppendToBody:"tooltipAppendToBody",tooltipSpacing:"tooltipSpacing",tooltipDisabled:"tooltipDisabled",tooltipShowCaret:"tooltipShowCaret",tooltipPlacement:"tooltipPlacement",tooltipAlignment:"tooltipAlignment",tooltipType:"tooltipType",tooltipCloseOnClickOutside:"tooltipCloseOnClickOutside",tooltipCloseOnMouseLeave:"tooltipCloseOnMouseLeave",tooltipHideTimeout:"tooltipHideTimeout",tooltipShowTimeout:"tooltipShowTimeout",tooltipShowEvent:"tooltipShowEvent",tooltipImmediateExit:"tooltipImmediateExit",tooltipTemplate:"tooltipTemplate",tooltipContext:"tooltipContext"},outputs:{show:"show",hide:"hide"}}),t})(),ea=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({providers:[Io,Zo],imports:[[r.ez]]}),t})();function ia(t){return t instanceof Date?t.toLocaleDateString():t.toLocaleString()}const na={};function ra(){let t=("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4);return t=`a${t}`,na[t]?ra():(na[t]=!0,t)}let sa,oa=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["g","ngx-charts-grid-panel",""]],inputs:{path:"path",width:"width",height:"height",x:"x",y:"y"},attrs:lo,decls:1,vars:4,consts:[["stroke","none",1,"gridpanel"]],template:function(t,e){1&t&&(n.O4$(),n._UZ(0,"rect",0)),2&t&&n.uIk("height",e.height)("width",e.width)("x",e.x)("y",e.y)},encapsulation:2,changeDetection:0}),t})(),aa=(()=>{class t{ngOnChanges(t){this.update()}update(){this.gridPanels=this.getGridPanels()}getGridPanels(){return this.data.map(t=>{let e,i,n,r,s,o="odd";if("vertical"===this.orient){const a=this.xScale(t.name);Number.parseInt((a/this.xScale.step()).toString(),10)%2==1&&(o="even"),e=this.xScale.bandwidth()*this.xScale.paddingInner(),i=this.xScale.bandwidth()+e,n=this.dims.height,r=this.xScale(t.name)-e/2,s=0}else if("horizontal"===this.orient){const a=this.yScale(t.name);Number.parseInt((a/this.yScale.step()).toString(),10)%2==1&&(o="even"),e=this.yScale.bandwidth()*this.yScale.paddingInner(),i=this.dims.width,n=this.yScale.bandwidth()+e,r=0,s=this.yScale(t.name)-e/2}return{name:t.name,class:o,height:n,width:i,x:r,y:s}})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["g","ngx-charts-grid-panel-series",""]],inputs:{data:"data",dims:"dims",xScale:"xScale",yScale:"yScale",orient:"orient"},features:[n.TTD],attrs:co,decls:1,vars:1,consts:[["ngx-charts-grid-panel","",3,"height","width","x","y","grid-panel","odd","even",4,"ngFor","ngForOf"],["ngx-charts-grid-panel","",3,"height","width","x","y"]],template:function(t,e){1&t&&n.YNc(0,ho,1,10,"g",0),2&t&&n.Q6J("ngForOf",e.gridPanels)},directives:[r.sg,oa],encapsulation:2,changeDetection:0}),t})(),la=(()=>{class t{constructor(){this.orientation="vertical"}ngOnChanges(t){this.x1="0%",this.x2="0%",this.y1="0%",this.y2="0%","horizontal"===this.orientation?this.x2="100%":"vertical"===this.orientation&&(this.y1="100%")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["g","ngx-charts-svg-linear-gradient",""]],inputs:{orientation:"orientation",name:"name",stops:"stops"},features:[n.TTD],attrs:uo,decls:2,vars:6,consts:[[3,"id"],[3,"stop-color","stop-opacity",4,"ngFor","ngForOf"]],template:function(t,e){1&t&&(n.O4$(),n.TgZ(0,"linearGradient",0),n.YNc(1,po,1,5,"stop",1),n.qZA()),2&t&&(n.Q6J("id",e.name),n.uIk("x1",e.x1)("y1",e.y1)("x2",e.x2)("y2",e.y2),n.xp6(1),n.Q6J("ngForOf",e.stops))},directives:[r.sg],encapsulation:2,changeDetection:0}),t})();"undefined"!=typeof window?sa=window:"undefined"!=typeof global&&(sa=global);let ca=(()=>{class t{constructor(t){this.cd=t,this.horizontal=!1,this.labelClick=new n.vpe,this.labelActivate=new n.vpe,this.labelDeactivate=new n.vpe,this.legendEntries=[]}ngOnChanges(t){this.update()}update(){this.cd.markForCheck(),this.legendEntries=this.getLegendEntries()}getLegendEntries(){const t=[];for(const e of this.data){const i=ia(e);-1===t.findIndex(t=>t.label===i)&&t.push({label:e,formattedLabel:i,color:this.colors.getColor(e)})}return t}isActive(t){return!!this.activeEntries&&void 0!==this.activeEntries.find(e=>t.label===e.name)}activate(t){this.labelActivate.emit(t)}deactivate(t){this.labelDeactivate.emit(t)}trackBy(t,e){return e.label}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.sBO))},t.\u0275cmp=n.Xpm({type:t,selectors:[["ngx-charts-legend"]],inputs:{horizontal:"horizontal",data:"data",title:"title",colors:"colors",height:"height",width:"width",activeEntries:"activeEntries"},outputs:{labelClick:"labelClick",labelActivate:"labelActivate",labelDeactivate:"labelDeactivate"},features:[n.TTD],decls:5,vars:9,consts:[["class","legend-title",4,"ngIf"],[1,"legend-wrap"],[1,"legend-labels"],["class","legend-label",4,"ngFor","ngForOf","ngForTrackBy"],[1,"legend-title"],[1,"legend-title-text"],[1,"legend-label"],[3,"label","formattedLabel","color","isActive","select","activate","deactivate"]],template:function(t,e){1&t&&(n.TgZ(0,"div"),n.YNc(1,fo,3,1,"header",0),n.TgZ(2,"div",1),n.TgZ(3,"ul",2),n.YNc(4,mo,2,4,"li",3),n.qZA(),n.qZA(),n.qZA()),2&t&&(n.Udp("width",e.width,"px"),n.xp6(1),n.Q6J("ngIf",(null==e.title?null:e.title.length)>0),n.xp6(2),n.Udp("max-height",e.height-45,"px"),n.ekj("horizontal-legend",e.horizontal),n.xp6(1),n.Q6J("ngForOf",e.legendEntries)("ngForTrackBy",e.trackBy))},directives:function(){return[r.O5,r.sg,ha]},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .legend-title{font-size:14px;font-weight:700;margin-bottom:5px;margin-left:10px;overflow:hidden;white-space:nowrap}.chart-legend li,.chart-legend ul{list-style:none;margin:0;padding:0}.chart-legend .horizontal-legend li{display:inline-block}.chart-legend .legend-wrap{width:calc(100% - 10px)}.chart-legend .legend-labels{background:rgba(0,0,0,.05);border-radius:3px;float:left;line-height:85%;list-style:none;overflow-x:hidden;overflow-y:auto;text-align:left;white-space:nowrap;width:100%}.chart-legend .legend-label{color:#afb7c8;cursor:pointer;font-size:90%;margin:8px}.chart-legend .legend-label:hover{color:#000;transition:.2s}.chart-legend .legend-label .active .legend-label-text{color:#000}.chart-legend .legend-label-color{border-radius:3px;color:#5b646b;display:inline-block;height:15px;margin-right:5px;width:15px}.chart-legend .legend-label-text{font-size:12px;line-height:15px;vertical-align:top;width:calc(100% - 20px)}.chart-legend .legend-label-text,.chart-legend .legend-title-text{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chart-legend .legend-title-text{line-height:16px;vertical-align:bottom}"],encapsulation:2,changeDetection:0}),t})(),ha=(()=>{class t{constructor(){this.isActive=!1,this.select=new n.vpe,this.activate=new n.vpe,this.deactivate=new n.vpe,this.toggle=new n.vpe}get trimmedLabel(){return this.formattedLabel||"(empty)"}onMouseEnter(){this.activate.emit({name:this.label})}onMouseLeave(){this.deactivate.emit({name:this.label})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["ngx-charts-legend-entry"]],hostBindings:function(t,e){1&t&&n.NdJ("mouseenter",function(){return e.onMouseEnter()})("mouseleave",function(){return e.onMouseLeave()})},inputs:{isActive:"isActive",color:"color",label:"label",formattedLabel:"formattedLabel"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",toggle:"toggle"},decls:4,vars:6,consts:[["tabindex","-1",3,"title","click"],[1,"legend-label-color",3,"click"],[1,"legend-label-text"]],template:function(t,e){1&t&&(n.TgZ(0,"span",0),n.NdJ("click",function(){return e.select.emit(e.formattedLabel)}),n.TgZ(1,"span",1),n.NdJ("click",function(){return e.toggle.emit(e.formattedLabel)}),n.qZA(),n.TgZ(2,"span",2),n._uU(3),n.qZA(),n.qZA()),2&t&&(n.ekj("active",e.isActive),n.Q6J("title",e.formattedLabel),n.xp6(1),n.Udp("background-color",e.color),n.xp6(2),n.hij(" ",e.trimmedLabel," "))},encapsulation:2,changeDetection:0}),t})(),ua=(()=>{class t{constructor(t){this.sanitizer=t,this.horizontal=!1}ngOnChanges(t){const e=this.gradientString(this.colors.range(),this.colors.domain());this.gradient=this.sanitizer.bypassSecurityTrustStyle(`linear-gradient(to ${this.horizontal?"right":"bottom"}, ${e})`)}gradientString(t,e){e.push(1);const i=[];return t.reverse().forEach((t,n)=>{i.push(`${t} ${Math.round(100*e[n])}%`)}),i.join(", ")}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(Is.H7))},t.\u0275cmp=n.Xpm({type:t,selectors:[["ngx-charts-scale-legend"]],inputs:{horizontal:"horizontal",valueRange:"valueRange",colors:"colors",height:"height",width:"width"},features:[n.TTD],decls:8,vars:10,consts:[[1,"scale-legend"],[1,"scale-legend-label"],[1,"scale-legend-wrap"]],template:function(t,e){1&t&&(n.TgZ(0,"div",0),n.TgZ(1,"div",1),n.TgZ(2,"span"),n._uU(3),n.qZA(),n.qZA(),n._UZ(4,"div",2),n.TgZ(5,"div",1),n.TgZ(6,"span"),n._uU(7),n.qZA(),n.qZA(),n.qZA()),2&t&&(n.Udp("height",e.horizontal?void 0:e.height,"px")("width",e.width,"px"),n.ekj("horizontal-legend",e.horizontal),n.xp6(3),n.Oqu(e.valueRange[1].toLocaleString()),n.xp6(1),n.Udp("background",e.gradient),n.xp6(3),n.Oqu(e.valueRange[0].toLocaleString()))},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .scale-legend{display:flex;flex-direction:column;text-align:center}.chart-legend .scale-legend-wrap{border-radius:5px;display:inline-block;flex:1;margin:0 auto;width:30px}.chart-legend .scale-legend-label{font-size:12px}.chart-legend .horizontal-legend.scale-legend{flex-direction:row}.chart-legend .horizontal-legend .scale-legend-wrap{height:30px;margin:0 16px;width:auto}"],encapsulation:2,changeDetection:0}),t})(),da=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[r.ez,Jo,ea],r.ez,Jo,ea]}),t})();function pa({width:t,height:e,margins:i,showXAxis:n=!1,showYAxis:r=!1,xAxisHeight:s=0,yAxisWidth:o=0,showXLabel:a=!1,showYLabel:l=!1,showLegend:c=!1,legendType:h="ordinal",legendPosition:u="right",columns:d=12}){let p=i[3],f=t,m=e-i[0]-i[2];if(c&&"right"===u&&(d-="ordinal"===h?2:1),f=f*d/12,f=f-i[1]-i[3],n&&(m-=5,m-=s,a)&&(m-=30),r&&(f-=5,f-=o,p+=o,p+=10,l)){const t=30;f-=t,p+=t}return f=Math.max(0,f),m=Math.max(0,m),{width:Math.floor(f),height:Math.floor(m),xOffset:Math.floor(p)}}let fa=[{name:"vivid",selectable:!0,group:"Ordinal",domain:["#647c8a","#3f51b5","#2196f3","#00b862","#afdf0a","#a7b61a","#f3e562","#ff9800","#ff5722","#ff4514"]},{name:"natural",selectable:!0,group:"Ordinal",domain:["#bf9d76","#e99450","#d89f59","#f2dfa7","#a5d7c6","#7794b1","#afafaf","#707160","#ba9383","#d9d5c3"]},{name:"cool",selectable:!0,group:"Ordinal",domain:["#a8385d","#7aa3e5","#a27ea8","#aae3f5","#adcded","#a95963","#8796c0","#7ed3ed","#50abcc","#ad6886"]},{name:"fire",selectable:!0,group:"Ordinal",domain:["#ff3d00","#bf360c","#ff8f00","#ff6f00","#ff5722","#e65100","#ffca28","#ffab00"]},{name:"solar",selectable:!0,group:"Continuous",domain:["#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"]},{name:"air",selectable:!0,group:"Continuous",domain:["#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"]},{name:"aqua",selectable:!0,group:"Continuous",domain:["#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"]},{name:"flame",selectable:!1,group:"Ordinal",domain:["#A10A28","#D3342D","#EF6D49","#FAAD67","#FDDE90","#DBED91","#A9D770","#6CBA67","#2C9653","#146738"]},{name:"ocean",selectable:!1,group:"Ordinal",domain:["#1D68FB","#33C0FC","#4AFFFE","#AFFFFF","#FFFC63","#FDBD2D","#FC8A25","#FA4F1E","#FA141B","#BA38D1"]},{name:"forest",selectable:!1,group:"Ordinal",domain:["#55C22D","#C1F33D","#3CC099","#AFFFFF","#8CFC9D","#76CFFA","#BA60FB","#EE6490","#C42A1C","#FC9F32"]},{name:"horizon",selectable:!1,group:"Ordinal",domain:["#2597FB","#65EBFD","#99FDD0","#FCEE4B","#FEFCFA","#FDD6E3","#FCB1A8","#EF6F7B","#CB96E8","#EFDEE0"]},{name:"neons",selectable:!1,group:"Ordinal",domain:["#FF3333","#FF33FF","#CC33FF","#0000FF","#33CCFF","#33FFFF","#33FF66","#CCFF33","#FFCC00","#FF6600"]},{name:"picnic",selectable:!1,group:"Ordinal",domain:["#FAC51D","#66BD6D","#FAA026","#29BB9C","#E96B56","#55ACD2","#B7332F","#2C83C9","#9166B8","#92E7E8"]},{name:"night",selectable:!1,group:"Ordinal",domain:["#2B1B5A","#501356","#183356","#28203F","#391B3C","#1E2B3C","#120634","#2D0432","#051932","#453080","#75267D","#2C507D","#4B3880","#752F7D","#35547D"]},{name:"nightLights",selectable:!1,group:"Ordinal",domain:["#4e31a5","#9c25a7","#3065ab","#57468b","#904497","#46648b","#32118d","#a00fb3","#1052a2","#6e51bd","#b63cc3","#6c97cb","#8671c1","#b455be","#7496c3"]}];class ma{constructor(t,e,i,n){"string"==typeof t&&(t=fa.find(e=>e.name===t)),this.colorDomain=t.domain,this.scaleType=e,this.domain=i,this.customColors=n,this.scale=this.generateColorScheme(t,e,this.domain)}generateColorScheme(t,e,i){let n;if("string"==typeof t&&(t=fa.find(e=>e.name===t)),"quantile"===e)n=us().range(t.domain).domain(i);else if("ordinal"===e)n=ls().range(t.domain).domain(i);else if("linear"===e){const e=[...t.domain];1===e.length&&(e.push(e[0]),this.colorDomain=e);const i=os(0,1,1/e.length);n=ss().domain(i).range(e)}return n}getColor(t){if(null==t)throw new Error("Value can not be null");if("linear"===this.scaleType){const e=ss().domain(this.domain).range([0,1]);return this.scale(e(t))}{if("function"==typeof this.customColors)return this.customColors(t);const e=t.toString();let i;return this.customColors&&this.customColors.length>0&&(i=this.customColors.find(t=>t.name.toLowerCase()===e.toLowerCase())),i?i.value:this.scale(t)}}getLinearGradientStops(t,e){void 0===e&&(e=this.domain[0]);const i=ss().domain(this.domain).range([0,1]),n=cs().domain(this.colorDomain).range([0,1]),r=this.getColor(t),s=i(e),o=this.getColor(e),a=i(t);let l=1,c=s;const h=[];for(h.push({color:o,offset:s,originalOffset:s,opacity:1});c=(a-n.bandwidth()).toFixed(4))break;h.push({color:t,offset:e,opacity:1}),c=e,l++}}if(h[h.length-1].offset<100&&h.push({color:r,offset:a,opacity:1}),a===s)h[0].offset=0,h[1].offset=100;else if(100!==h[h.length-1].offset)for(const u of h)u.offset=(u.offset-s)/(a-s)*100;return h}}let ga=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[da]]}),t})(),ya=(()=>{class t{constructor(t){this.roundEdges=!0,this.gradient=!1,this.offset=0,this.isActive=!1,this.animations=!0,this.noBarWhenZero=!0,this.select=new n.vpe,this.activate=new n.vpe,this.deactivate=new n.vpe,this.hasGradient=!1,this.hideBar=!1,this.element=t.nativeElement}ngOnChanges(t){t.roundEdges&&this.loadAnimation(),this.update()}update(){this.gradientId="grad"+ra().toString(),this.gradientFill=`url(#${this.gradientId})`,this.gradient||this.stops?(this.gradientStops=this.getGradient(),this.hasGradient=!0):this.hasGradient=!1,this.updatePathEl(),this.checkToHideBar()}loadAnimation(){this.path=this.getStartingPath(),setTimeout(this.update.bind(this),100)}updatePathEl(){const t=function(t){return"string"==typeof t?new gt([[document.querySelector(t)]],[document.documentElement]):new gt([[t]],mt)}(this.element).select(".bar"),e=this.getPath();this.animations?t.transition().duration(500).attr("d",e):t.attr("d",e)}getGradient(){return this.stops?this.stops:[{offset:0,color:this.fill,opacity:this.getStartOpacity()},{offset:100,color:this.fill,opacity:1}]}getStartingPath(){if(!this.animations)return this.getPath();let t,e=this.getRadius();return this.roundEdges?"vertical"===this.orientation?(e=Math.min(this.height,e),t=Vo(this.x,this.y+this.height,this.width,1,0,this.edges)):"horizontal"===this.orientation&&(e=Math.min(this.width,e),t=Vo(this.x,this.y,1,this.height,0,this.edges)):"vertical"===this.orientation?t=Vo(this.x,this.y+this.height,this.width,1,0,this.edges):"horizontal"===this.orientation&&(t=Vo(this.x,this.y,1,this.height,0,this.edges)),t}getPath(){let t,e=this.getRadius();return this.roundEdges?"vertical"===this.orientation?(e=Math.min(this.height,e),t=Vo(this.x,this.y,this.width,this.height,e,this.edges)):"horizontal"===this.orientation&&(e=Math.min(this.width,e),t=Vo(this.x,this.y,this.width,this.height,e,this.edges)):t=Vo(this.x,this.y,this.width,this.height,e,this.edges),t}getRadius(){let t=0;return this.roundEdges&&this.height>5&&this.width>5&&(t=Math.floor(Math.min(5,this.height/2,this.width/2))),t}getStartOpacity(){return this.roundEdges?.2:.5}get edges(){let t=[!1,!1,!1,!1];return this.roundEdges&&("vertical"===this.orientation?t=this.data.value>0?[!0,!0,!1,!1]:[!1,!1,!0,!0]:"horizontal"===this.orientation&&(t=this.data.value>0?[!1,!0,!1,!0]:[!0,!1,!0,!1])),t}onMouseEnter(){this.activate.emit(this.data)}onMouseLeave(){this.deactivate.emit(this.data)}checkToHideBar(){this.hideBar=this.noBarWhenZero&&("vertical"===this.orientation&&0===this.height||"horizontal"===this.orientation&&0===this.width)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq))},t.\u0275cmp=n.Xpm({type:t,selectors:[["g","ngx-charts-bar",""]],hostBindings:function(t,e){1&t&&n.NdJ("mouseenter",function(){return e.onMouseEnter()})("mouseleave",function(){return e.onMouseLeave()})},inputs:{roundEdges:"roundEdges",gradient:"gradient",offset:"offset",isActive:"isActive",animations:"animations",noBarWhenZero:"noBarWhenZero",fill:"fill",data:"data",width:"width",height:"height",x:"x",y:"y",orientation:"orientation",stops:"stops",ariaLabel:"ariaLabel"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[n.TTD],attrs:vo,decls:2,vars:8,consts:[[4,"ngIf"],["stroke","none","role","img","tabIndex","-1",1,"bar",3,"click"],["ngx-charts-svg-linear-gradient","",3,"orientation","name","stops"]],template:function(t,e){1&t&&(n.YNc(0,_o,2,3,"defs",0),n.O4$(),n.TgZ(1,"path",1),n.NdJ("click",function(){return e.select.emit(e.data)}),n.qZA()),2&t&&(n.Q6J("ngIf",e.hasGradient),n.xp6(1),n.ekj("active",e.isActive)("hidden",e.hideBar),n.uIk("d",e.path)("aria-label",e.ariaLabel)("fill",e.hasGradient?e.gradientFill:e.fill))},directives:[r.O5,la],encapsulation:2,changeDetection:0}),t})(),ba=(()=>{class t extends qo{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition="right",this.tooltipDisabled=!1,this.showGridLines=!0,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.barPadding=8,this.roundDomains=!1,this.roundEdges=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.activate=new n.vpe,this.deactivate=new n.vpe,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.dataLabelMaxHeight={negative:0,positive:0}}update(){super.update(),this.showDataLabel||(this.dataLabelMaxHeight={negative:0,positive:0}),this.margin=[10+this.dataLabelMaxHeight.positive,20,10+this.dataLabelMaxHeight.negative,20],this.dims=pa({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.formatDates(),this.showDataLabel&&(this.dims.height-=this.dataLabelMaxHeight.negative),this.xScale=this.getXScale(),this.yScale=this.getYScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]+this.dataLabelMaxHeight.negative})`}getXScale(){this.xDomain=this.getXDomain();const t=this.xDomain.length/(this.dims.width/this.barPadding+1);return cs().range([0,this.dims.width]).paddingInner(t).domain(this.xDomain)}getYScale(){this.yDomain=this.getYDomain();const t=ss().range([this.dims.height,0]).domain(this.yDomain);return this.roundDomains?t.nice():t}getXDomain(){return this.results.map(t=>t.label)}getYDomain(){const t=this.results.map(t=>t.value);let e=this.yScaleMin?Math.min(this.yScaleMin,...t):Math.min(0,...t);this.yAxisTicks&&!this.yAxisTicks.some(isNaN)&&(e=Math.min(e,...this.yAxisTicks));let i=this.yScaleMax?Math.max(this.yScaleMax,...t):Math.max(0,...t);return this.yAxisTicks&&!this.yAxisTicks.some(isNaN)&&(i=Math.max(i,...this.yAxisTicks)),[e,i]}onClick(t){this.select.emit(t)}setColors(){let t;t="ordinal"===this.schemeType?this.xDomain:this.yDomain,this.colors=new ma(this.scheme,this.schemeType,t,this.customColors)}getLegendOptions(){const t={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return"ordinal"===t.scaleType?(t.domain=this.xDomain,t.colors=this.colors,t.title=this.legendTitle):(t.domain=this.yDomain,t.colors=this.colors.scale),t}updateYAxisWidth({width:t}){this.yAxisWidth=t,this.update()}updateXAxisHeight({height:t}){this.xAxisHeight=t,this.update()}onDataLabelMaxHeightChanged(t){t.size.negative?this.dataLabelMaxHeight.negative=Math.max(this.dataLabelMaxHeight.negative,t.size.height):this.dataLabelMaxHeight.positive=Math.max(this.dataLabelMaxHeight.positive,t.size.height),t.index===this.results.length-1&&setTimeout(()=>this.update())}onActivate(t,e=!1){t=this.results.find(i=>e?i.label===t.name:i.name===t.name),this.activeEntries.findIndex(e=>e.name===t.name&&e.value===t.value&&e.series===t.series)>-1||(this.activeEntries=[t,...this.activeEntries],this.activate.emit({value:t,entries:this.activeEntries}))}onDeactivate(t,e=!1){t=this.results.find(i=>e?i.label===t.name:i.name===t.name);const i=this.activeEntries.findIndex(e=>e.name===t.name&&e.value===t.value&&e.series===t.series);this.activeEntries.splice(i,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:t,entries:this.activeEntries})}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=n.n5z(t)))(i||t)}}(),t.\u0275cmp=n.Xpm({type:t,selectors:[["ngx-charts-bar-vertical"]],contentQueries:function(t,e,i){if(1&t&&n.Suo(i,go,5),2&t){let t;n.iGM(t=n.CRH())&&(e.tooltipTemplate=t.first)}},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",tooltipDisabled:"tooltipDisabled",showGridLines:"showGridLines",activeEntries:"activeEntries",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",barPadding:"barPadding",roundDomains:"roundDomains",roundEdges:"roundEdges",showDataLabel:"showDataLabel",noBarWhenZero:"noBarWhenZero",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",gradient:"gradient",schemeType:"schemeType",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",yScaleMax:"yScaleMax",yScaleMin:"yScaleMin",dataLabelFormatting:"dataLabelFormatting"},outputs:{activate:"activate",deactivate:"deactivate"},features:[n.qOj],decls:5,vars:25,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"bar-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-series-vertical","",3,"xScale","yScale","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","showDataLabel","dataLabelFormatting","activeEntries","roundEdges","animations","noBarWhenZero","activate","deactivate","select","dataLabelHeightChanged"],["ngx-charts-x-axis","",3,"xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"]],template:function(t,e){1&t&&(n.TgZ(0,"ngx-charts-chart",0),n.NdJ("legendLabelClick",function(t){return e.onClick(t)})("legendLabelActivate",function(t){return e.onActivate(t,!0)})("legendLabelDeactivate",function(t){return e.onDeactivate(t,!0)}),n.O4$(),n.TgZ(1,"g",1),n.YNc(2,wo,1,10,"g",2),n.YNc(3,xo,1,9,"g",3),n.TgZ(4,"g",4),n.NdJ("activate",function(t){return e.onActivate(t)})("deactivate",function(t){return e.onDeactivate(t)})("select",function(t){return e.onClick(t)})("dataLabelHeightChanged",function(t){return e.onDataLabelMaxHeightChanged(t)}),n.qZA(),n.qZA(),n.qZA()),2&t&&(n.Q6J("view",n.WLB(22,yo,e.width,e.height))("showLegend",e.legend)("legendOptions",e.legendOptions)("activeEntries",e.activeEntries)("animations",e.animations),n.xp6(1),n.uIk("transform",e.transform),n.xp6(1),n.Q6J("ngIf",e.xAxis),n.xp6(1),n.Q6J("ngIf",e.yAxis),n.xp6(1),n.Q6J("xScale",e.xScale)("yScale",e.yScale)("colors",e.colors)("series",e.results)("dims",e.dims)("gradient",e.gradient)("tooltipDisabled",e.tooltipDisabled)("tooltipTemplate",e.tooltipTemplate)("showDataLabel",e.showDataLabel)("dataLabelFormatting",e.dataLabelFormatting)("activeEntries",e.activeEntries)("roundEdges",e.roundEdges)("animations",e.animations)("noBarWhenZero",e.noBarWhenZero))},directives:function(){return[Bo,r.O5,wa,jo,Wo]},styles:[bo],encapsulation:2,changeDetection:0}),t})(),va=(()=>{class t extends qo{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition="right",this.tooltipDisabled=!1,this.scaleType="ordinal",this.showGridLines=!0,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.groupPadding=16,this.barPadding=8,this.roundDomains=!1,this.roundEdges=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.activate=new n.vpe,this.deactivate=new n.vpe,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.dataLabelMaxHeight={negative:0,positive:0}}update(){super.update(),this.showDataLabel||(this.dataLabelMaxHeight={negative:0,positive:0}),this.margin=[10+this.dataLabelMaxHeight.positive,20,10+this.dataLabelMaxHeight.negative,20],this.dims=pa({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.showDataLabel&&(this.dims.height-=this.dataLabelMaxHeight.negative),this.formatDates(),this.groupDomain=this.getGroupDomain(),this.innerDomain=this.getInnerDomain(),this.valuesDomain=this.getValueDomain(),this.groupScale=this.getGroupScale(),this.innerScale=this.getInnerScale(),this.valueScale=this.getValueScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]+this.dataLabelMaxHeight.negative})`}onDataLabelMaxHeightChanged(t,e){t.size.negative?this.dataLabelMaxHeight.negative=Math.max(this.dataLabelMaxHeight.negative,t.size.height):this.dataLabelMaxHeight.positive=Math.max(this.dataLabelMaxHeight.positive,t.size.height),e===this.results.length-1&&setTimeout(()=>this.update())}getGroupScale(){const t=this.groupDomain.length/(this.dims.height/this.groupPadding+1);return cs().rangeRound([0,this.dims.width]).paddingInner(t).paddingOuter(t/2).domain(this.groupDomain)}getInnerScale(){const t=this.groupScale.bandwidth(),e=this.innerDomain.length/(t/this.barPadding+1);return cs().rangeRound([0,t]).paddingInner(e).domain(this.innerDomain)}getValueScale(){const t=ss().range([this.dims.height,0]).domain(this.valuesDomain);return this.roundDomains?t.nice():t}getGroupDomain(){const t=[];for(const e of this.results)t.includes(e.label)||t.push(e.label);return t}getInnerDomain(){const t=[];for(const e of this.results)for(const i of e.series)t.includes(i.label)||t.push(i.label);return t}getValueDomain(){const t=[];for(const e of this.results)for(const i of e.series)t.includes(i.value)||t.push(i.value);return[Math.min(0,...t),this.yScaleMax?Math.max(this.yScaleMax,...t):Math.max(0,...t)]}groupTransform(t){return`translate(${this.groupScale(t.label)}, 0)`}onClick(t,e){e&&(t.series=e.name),this.select.emit(t)}trackBy(t,e){return e.name}setColors(){let t;t="ordinal"===this.schemeType?this.innerDomain:this.valuesDomain,this.colors=new ma(this.scheme,this.schemeType,t,this.customColors)}getLegendOptions(){const t={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return"ordinal"===t.scaleType?(t.domain=this.innerDomain,t.colors=this.colors,t.title=this.legendTitle):(t.domain=this.valuesDomain,t.colors=this.colors.scale),t}updateYAxisWidth({width:t}){this.yAxisWidth=t,this.update()}updateXAxisHeight({height:t}){this.xAxisHeight=t,this.update()}onActivate(t,e,i=!1){const n=Object.assign({},t);e&&(n.series=e.name);const r=this.results.map(t=>t.series).flat().filter(t=>i?t.label===n.name:t.name===n.name&&t.series===n.series);this.activeEntries=[...r],this.activate.emit({value:n,entries:this.activeEntries})}onDeactivate(t,e,i=!1){const n=Object.assign({},t);e&&(n.series=e.name),this.activeEntries=this.activeEntries.filter(t=>i?t.label!==n.name:!(t.name===n.name&&t.series===n.series)),this.deactivate.emit({value:n,entries:this.activeEntries})}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=n.n5z(t)))(i||t)}}(),t.\u0275cmp=n.Xpm({type:t,selectors:[["ngx-charts-bar-vertical-2d"]],contentQueries:function(t,e,i){if(1&t&&n.Suo(i,go,5),2&t){let t;n.iGM(t=n.CRH())&&(e.tooltipTemplate=t.first)}},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",tooltipDisabled:"tooltipDisabled",scaleType:"scaleType",showGridLines:"showGridLines",activeEntries:"activeEntries",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",groupPadding:"groupPadding",barPadding:"barPadding",roundDomains:"roundDomains",roundEdges:"roundEdges",showDataLabel:"showDataLabel",noBarWhenZero:"noBarWhenZero",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",gradient:"gradient",schemeType:"schemeType",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",yScaleMax:"yScaleMax",dataLabelFormatting:"dataLabelFormatting"},outputs:{activate:"activate",deactivate:"deactivate"},features:[n.qOj],decls:6,vars:17,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelActivate","legendLabelDeactivate","legendLabelClick"],[1,"bar-chart","chart"],["ngx-charts-grid-panel-series","","orient","vertical",3,"xScale","yScale","data","dims"],["ngx-charts-x-axis","",3,"xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-series-vertical","",3,"activeEntries","xScale","yScale","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","showDataLabel","dataLabelFormatting","seriesName","roundEdges","animations","noBarWhenZero","select","activate","deactivate","dataLabelHeightChanged",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-x-axis","",3,"xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-series-vertical","",3,"activeEntries","xScale","yScale","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","showDataLabel","dataLabelFormatting","seriesName","roundEdges","animations","noBarWhenZero","select","activate","deactivate","dataLabelHeightChanged"]],template:function(t,e){1&t&&(n.TgZ(0,"ngx-charts-chart",0),n.NdJ("legendLabelActivate",function(t){return e.onActivate(t,void 0,!0)})("legendLabelDeactivate",function(t){return e.onDeactivate(t,void 0,!0)})("legendLabelClick",function(t){return e.onClick(t)}),n.O4$(),n.TgZ(1,"g",1),n._UZ(2,"g",2),n.YNc(3,Co,1,10,"g",3),n.YNc(4,Ao,1,9,"g",4),n.YNc(5,So,1,17,"g",5),n.qZA(),n.qZA()),2&t&&(n.Q6J("view",n.WLB(14,yo,e.width,e.height))("showLegend",e.legend)("legendOptions",e.legendOptions)("activeEntries",e.activeEntries)("animations",e.animations),n.xp6(1),n.uIk("transform",e.transform),n.xp6(1),n.Q6J("xScale",e.groupScale)("yScale",e.valueScale)("data",e.results)("dims",e.dims),n.xp6(1),n.Q6J("ngIf",e.xAxis),n.xp6(1),n.Q6J("ngIf",e.yAxis),n.xp6(1),n.Q6J("ngForOf",e.results)("ngForTrackBy",e.trackBy))},directives:function(){return[Bo,aa,r.O5,r.sg,jo,Wo,wa]},styles:[bo],encapsulation:2,data:{animation:[(0,s.X$)("animationState",[(0,s.eR)(":leave",[(0,s.oB)({opacity:1,transform:"*"}),(0,s.jt)(500,(0,s.oB)({opacity:0,transform:"scale(0)"}))])])]},changeDetection:0}),t})();var _a=function(t){return t.positive="positive",t.negative="negative",t}({});let wa=(()=>{class t{constructor(){this.type="standard",this.tooltipDisabled=!1,this.animations=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.select=new n.vpe,this.activate=new n.vpe,this.deactivate=new n.vpe,this.dataLabelHeightChanged=new n.vpe,this.barsForDataLabels=[]}ngOnChanges(t){this.update()}update(){let t;this.updateTooltipSettings(),this.series.length&&(t=this.xScale.bandwidth()),t=Math.round(t);const e=Math.max(this.yScale.domain()[0],0),i={[_a.positive]:0,[_a.negative]:0};let n,r=_a.positive;"normalized"===this.type&&(n=this.series.map(t=>t.value).reduce((t,e)=>t+e,0)),this.bars=this.series.map((s,o)=>{let a=s.value;const l=this.getLabel(s),c=ia(l);r=a>0?_a.positive:_a.negative;const h={value:a,label:l,roundEdges:this.roundEdges,data:s,width:t,formattedLabel:c,height:0,x:0,y:0};if("standard"===this.type)h.height=Math.abs(this.yScale(a)-this.yScale(e)),h.x=this.xScale(l),h.y=this.yScale(a<0?0:a);else if("stacked"===this.type){const t=i[r],e=t+a;i[r]+=a,h.height=this.yScale(t)-this.yScale(e),h.x=0,h.y=this.yScale(e),h.offset0=t,h.offset1=e}else if("normalized"===this.type){let t=i[r],e=t+a;i[r]+=a,n>0?(t=100*t/n,e=100*e/n):(t=0,e=0),h.height=this.yScale(t)-this.yScale(e),h.x=0,h.y=this.yScale(e),h.offset0=t,h.offset1=e,a=(e-t).toFixed(2)+"%"}"ordinal"===this.colors.scaleType?h.color=this.colors.getColor(l):"standard"===this.type?(h.color=this.colors.getColor(a),h.gradientStops=this.colors.getLinearGradientStops(a)):(h.color=this.colors.getColor(h.offset1),h.gradientStops=this.colors.getLinearGradientStops(h.offset1,h.offset0));let u=c;return h.ariaLabel=c+" "+a.toLocaleString(),this.seriesName&&(u=`${this.seriesName} \u2022 ${c}`,h.data.series=this.seriesName,h.ariaLabel=this.seriesName+" "+h.ariaLabel),h.tooltipText=this.tooltipDisabled?void 0:`\n ${function(t){return t.toLocaleString().replace(/[&'`"<>]/g,t=>({"&":"&","'":"'","`":"`",'"':""","<":"<",">":">"}[t]))}(u)}\n ${this.dataLabelFormatting?this.dataLabelFormatting(a):a.toLocaleString()}\n `,h}),this.updateDataLabels()}updateDataLabels(){if("stacked"===this.type){this.barsForDataLabels=[];const t={};t.series=this.seriesName;const e=this.series.map(t=>t.value).reduce((t,e)=>e>0?t+e:t,0),i=this.series.map(t=>t.value).reduce((t,e)=>e<0?t+e:t,0);t.total=e+i,t.x=0,t.y=0,t.height=this.yScale(t.total>0?e:i),t.width=this.xScale.bandwidth(),this.barsForDataLabels.push(t)}else this.barsForDataLabels=this.series.map(t=>{const e={};return e.series=this.seriesName?this.seriesName:t.label,e.total=t.value,e.x=this.xScale(t.label),e.y=this.yScale(0),e.height=this.yScale(e.total)-this.yScale(0),e.width=this.xScale.bandwidth(),e})}updateTooltipSettings(){this.tooltipPlacement=this.tooltipDisabled?void 0:"top",this.tooltipType=this.tooltipDisabled?void 0:"tooltip"}isActive(t){return!!this.activeEntries&&void 0!==this.activeEntries.find(e=>t.name===e.name&&t.series===e.series)}onClick(t){this.select.emit(t)}getLabel(t){return t.label?t.label:t.name}trackBy(t,e){return e.label}trackDataLabelBy(t,e){return t+"#"+e.series+"#"+e.total}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["g","ngx-charts-series-vertical",""]],inputs:{type:"type",tooltipDisabled:"tooltipDisabled",animations:"animations",showDataLabel:"showDataLabel",noBarWhenZero:"noBarWhenZero",dims:"dims",series:"series",xScale:"xScale",yScale:"yScale",colors:"colors",gradient:"gradient",activeEntries:"activeEntries",seriesName:"seriesName",tooltipTemplate:"tooltipTemplate",roundEdges:"roundEdges",dataLabelFormatting:"dataLabelFormatting"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",dataLabelHeightChanged:"dataLabelHeightChanged"},features:[n.TTD],attrs:Eo,decls:2,vars:3,consts:[["ngx-charts-bar","","ngx-tooltip","",3,"width","height","x","y","fill","stops","data","orientation","roundEdges","gradient","ariaLabel","isActive","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","noBarWhenZero","animations","select","activate","deactivate",4,"ngFor","ngForOf","ngForTrackBy"],[4,"ngIf"],["ngx-charts-bar","","ngx-tooltip","",3,"width","height","x","y","fill","stops","data","orientation","roundEdges","gradient","ariaLabel","isActive","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","noBarWhenZero","animations","select","activate","deactivate"],["ngx-charts-bar-label","",3,"barX","barY","barWidth","barHeight","value","valueFormatting","orientation","dimensionsChanged",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-bar-label","",3,"barX","barY","barWidth","barHeight","value","valueFormatting","orientation","dimensionsChanged"]],template:function(t,e){1&t&&(n.YNc(0,ko,1,22,"g",0),n.YNc(1,Mo,2,2,"g",1)),2&t&&(n.Q6J("ngForOf",e.bars)("ngForTrackBy",e.trackBy),n.xp6(1),n.Q6J("ngIf",e.showDataLabel))},directives:function(){return[r.sg,r.O5,ya,ta,xa]},encapsulation:2,data:{animation:[(0,s.X$)("animationState",[(0,s.eR)(":leave",[(0,s.oB)({opacity:1}),(0,s.jt)(500,(0,s.oB)({opacity:0}))])])]},changeDetection:0}),t})(),xa=(()=>{class t{constructor(t){this.dimensionsChanged=new n.vpe,this.horizontalPadding=2,this.verticalPadding=5,this.element=t.nativeElement}ngOnChanges(t){this.update()}getSize(){return{height:this.element.getBoundingClientRect().height,width:this.element.getBoundingClientRect().width,negative:this.value<0}}ngAfterViewInit(){this.dimensionsChanged.emit(this.getSize())}update(){this.formatedValue=this.valueFormatting?this.valueFormatting(this.value):ia(this.value),"horizontal"===this.orientation?(this.x=this.barX+this.barWidth,this.value<0?(this.x=this.x-this.horizontalPadding,this.textAnchor="end"):(this.x=this.x+this.horizontalPadding,this.textAnchor="start"),this.y=this.barY+this.barHeight/2):(this.x=this.barX+this.barWidth/2,this.y=this.barY+this.barHeight,this.value<0?(this.y=this.y+this.verticalPadding,this.textAnchor="end"):(this.y=this.y-this.verticalPadding,this.textAnchor="start"),this.transform=`rotate(-45, ${this.x} , ${this.y})`)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq))},t.\u0275cmp=n.Xpm({type:t,selectors:[["g","ngx-charts-bar-label",""]],inputs:{value:"value",valueFormatting:"valueFormatting",barX:"barX",barY:"barY",barWidth:"barWidth",barHeight:"barHeight",orientation:"orientation"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[n.TTD],attrs:Lo,decls:2,vars:5,consts:[["alignment-baseline","middle",1,"textDataLabel"]],template:function(t,e){1&t&&(n.O4$(),n.TgZ(0,"text",0),n._uU(1),n.qZA()),2&t&&(n.uIk("text-anchor",e.textAnchor)("transform",e.transform)("x",e.x)("y",e.y),n.xp6(1),n.hij(" ",e.formatedValue," "))},styles:[".textDataLabel[_ngcontent-%COMP%]{font-size:11px}"],changeDetection:0}),t})(),Ca=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[da]]}),t})(),Aa=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[da]]}),t})(),Sa=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[da]]}),t})(),Ea=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[da]]}),t})();Math;let ka=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[da]]}),t})(),Ta=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[da,ka,Ea]]}),t})(),Ma=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[da]]}),t})(),La=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[da]]}),t})(),Ia=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[da,ka,Ca]]}),t})(),Oa=(()=>{class t{constructor(){"undefined"!=typeof SVGElement&&void 0===SVGElement.prototype.contains&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[da,ga,Ca,Aa,Sa,Ea,Ta,Ma,ka,La,Ia]}),t})()},3600:(t,e,i)=>{"use strict";i.d(e,{V:()=>o,N:()=>a});var n=i(9176),r=i(1572);const s=["qrcElement"];let o=(()=>{class t{constructor(t){this.renderer=t,this.colordark="",this.colorlight="",this.level="",this.hidetitle=!1,this.size=0,this.usesvg=!1,this.allowEmptyString=!1,this.qrdata="",this.colorDark="#000000ff",this.colorLight="#ffffffff",this.cssClass="qrcode",this.elementType="canvas",this.errorCorrectionLevel="M",this.margin=4,this.scale=4,this.width=10,""!==this.colordark&&console.warn("[angularx-qrcode] colordark is deprecated, use colorDark."),""!==this.colorlight&&console.warn("[angularx-qrcode] colorlight is deprecated, use colorLight."),""!==this.level&&console.warn("[angularx-qrcode] level is deprecated, use errorCorrectionLevel."),!1!==this.hidetitle&&console.warn("[angularx-qrcode] hidetitle is deprecated."),0!==this.size&&console.warn("[angularx-qrcode] size is deprecated, use `width`. Defaults to 10."),!1!==this.usesvg&&console.warn("[angularx-qrcode] usesvg is deprecated, use [elementType]=\"'svg'\".")}ngOnChanges(){this.createQRCode()}isValidQrCodeText(t){return!1===this.allowEmptyString?!(void 0===t||""===t||"null"===t||null===t):!(void 0===t)}toDataURL(){return new Promise((t,e)=>{(0,n.hz)(this.qrdata,{color:{dark:this.colorDark,light:this.colorLight},errorCorrectionLevel:this.errorCorrectionLevel,margin:this.margin,scale:this.scale,version:this.version,width:this.width},(i,n)=>{i?e(i):t(n)})})}toCanvas(t){return new Promise((e,i)=>{(0,n.rT)(t,this.qrdata,{color:{dark:this.colorDark,light:this.colorLight},errorCorrectionLevel:this.errorCorrectionLevel,margin:this.margin,scale:this.scale,version:this.version,width:this.width},t=>{t?i(t):e("success")})})}toSVG(){return new Promise((t,e)=>{(0,n.toString)(this.qrdata,{color:{dark:this.colorDark,light:this.colorLight},errorCorrectionLevel:this.errorCorrectionLevel,margin:this.margin,scale:this.scale,type:"svg",version:this.version,width:this.width},(i,n)=>{i?e(i):t(n)})})}renderElement(t){for(const e of this.qrcElement.nativeElement.childNodes)this.renderer.removeChild(this.qrcElement.nativeElement,e);this.renderer.appendChild(this.qrcElement.nativeElement,t)}createQRCode(){this.version&&this.version>40?(console.warn("[angularx-qrcode] max value for `version` is 40"),this.version=40):this.version&&this.version<1?(console.warn("[angularx-qrcode]`min value for `version` is 1"),this.version=1):void 0!==this.version&&isNaN(this.version)&&(console.warn("[angularx-qrcode] version should be a number, defaulting to auto."),this.version=void 0);try{if(!this.isValidQrCodeText(this.qrdata))throw new Error('[angularx-qrcode] Field `qrdata` is empty, set`allowEmptyString="true"` to overwrite this behaviour.');let t;switch(this.elementType){case"canvas":t=this.renderer.createElement("canvas"),this.toCanvas(t).then(()=>{this.renderElement(t)}).catch(t=>{console.error("[angularx-qrcode] canvas error: ",t)});break;case"svg":t=this.renderer.createElement("div"),this.toSVG().then(e=>{this.renderer.setProperty(t,"innerHTML",e);const i=t.firstChild;this.renderer.setAttribute(i,"height",`${this.width}`),this.renderer.setAttribute(i,"width",`${this.width}`),this.renderElement(i)}).catch(t=>{console.error("[angularx-qrcode] svg error: ",t)});break;case"url":case"img":default:t=this.renderer.createElement("img"),this.toDataURL().then(e=>{t.setAttribute("src",e),this.renderElement(t)}).catch(t=>{console.error("[angularx-qrcode] img/url error: ",t)})}}catch(t){console.error("[angularx-qrcode] Error generating QR Code: ",t.message)}}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.Qsj))},t.\u0275cmp=r.Xpm({type:t,selectors:[["qrcode"]],viewQuery:function(t,e){if(1&t&&r.Gf(s,7),2&t){let t;r.iGM(t=r.CRH())&&(e.qrcElement=t.first)}},inputs:{colordark:"colordark",colorlight:"colorlight",level:"level",hidetitle:"hidetitle",size:"size",usesvg:"usesvg",allowEmptyString:"allowEmptyString",qrdata:"qrdata",colorDark:"colorDark",colorLight:"colorLight",cssClass:"cssClass",elementType:"elementType",errorCorrectionLevel:"errorCorrectionLevel",margin:"margin",scale:"scale",width:"width",version:"version"},features:[r.TTD],decls:2,vars:2,consts:[["qrcElement",""]],template:function(t,e){1&t&&r._UZ(0,"div",null,0),2&t&&r.Tol(e.cssClass)},encapsulation:2,changeDetection:0}),t})(),a=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:[]}),t})()},6309:(t,e,i)=>{"use strict";const n=e;n.bignum=i(5514),n.define=i(4493).define,n.base=i(8887),n.constants=i(5537),n.decoders=i(9127),n.encoders=i(3939)},4493:(t,e,i)=>{"use strict";const n=i(3939),r=i(9127),s=i(5457);function o(t,e){this.name=t,this.body=e,this.decoders={},this.encoders={}}e.define=function(t,e){return new o(t,e)},o.prototype._createNamed=function(t){const e=this.name;function i(t){this._initNamed(t,e)}return s(i,t),i.prototype._initNamed=function(e,i){t.call(this,e,i)},new i(this)},o.prototype._getDecoder=function(t){return this.decoders.hasOwnProperty(t=t||"der")||(this.decoders[t]=this._createNamed(r[t])),this.decoders[t]},o.prototype.decode=function(t,e,i){return this._getDecoder(e).decode(t,i)},o.prototype._getEncoder=function(t){return this.encoders.hasOwnProperty(t=t||"der")||(this.encoders[t]=this._createNamed(n[t])),this.encoders[t]},o.prototype.encode=function(t,e,i){return this._getEncoder(e).encode(t,i)}},3914:(t,e,i)=>{"use strict";const n=i(5457),r=i(1034).b,s=i(5968).Buffer;function o(t,e){r.call(this,e),s.isBuffer(t)?(this.base=t,this.offset=0,this.length=t.length):this.error("Input not Buffer")}function a(t,e){if(Array.isArray(t))this.length=0,this.value=t.map(function(t){return a.isEncoderBuffer(t)||(t=new a(t,e)),this.length+=t.length,t},this);else if("number"==typeof t){if(!(0<=t&&t<=255))return e.error("non-byte EncoderBuffer value");this.value=t,this.length=1}else if("string"==typeof t)this.value=t,this.length=s.byteLength(t);else{if(!s.isBuffer(t))return e.error("Unsupported type: "+typeof t);this.value=t,this.length=t.length}}n(o,r),e.C=o,o.isDecoderBuffer=function(t){return t instanceof o||"object"==typeof t&&s.isBuffer(t.base)&&"DecoderBuffer"===t.constructor.name&&"number"==typeof t.offset&&"number"==typeof t.length&&"function"==typeof t.save&&"function"==typeof t.restore&&"function"==typeof t.isEmpty&&"function"==typeof t.readUInt8&&"function"==typeof t.skip&&"function"==typeof t.raw},o.prototype.save=function(){return{offset:this.offset,reporter:r.prototype.save.call(this)}},o.prototype.restore=function(t){const e=new o(this.base);return e.offset=t.offset,e.length=this.offset,this.offset=t.offset,r.prototype.restore.call(this,t.reporter),e},o.prototype.isEmpty=function(){return this.offset===this.length},o.prototype.readUInt8=function(t){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(t||"DecoderBuffer overrun")},o.prototype.skip=function(t,e){if(!(this.offset+t<=this.length))return this.error(e||"DecoderBuffer overrun");const i=new o(this.base);return i._reporterState=this._reporterState,i.offset=this.offset,i.length=this.offset+t,this.offset+=t,i},o.prototype.raw=function(t){return this.base.slice(t?t.offset:this.offset,this.length)},e.R=a,a.isEncoderBuffer=function(t){return t instanceof a||"object"==typeof t&&"EncoderBuffer"===t.constructor.name&&"number"==typeof t.length&&"function"==typeof t.join},a.prototype.join=function(t,e){return t||(t=s.alloc(this.length)),e||(e=0),0===this.length||(Array.isArray(this.value)?this.value.forEach(function(i){i.join(t,e),e+=i.length}):("number"==typeof this.value?t[e]=this.value:"string"==typeof this.value?t.write(this.value,e):s.isBuffer(this.value)&&this.value.copy(t,e),e+=this.length)),t}},8887:(t,e,i)=>{"use strict";const n=e;n.Reporter=i(1034).b,n.DecoderBuffer=i(3914).C,n.EncoderBuffer=i(3914).R,n.Node=i(5502)},5502:(t,e,i)=>{"use strict";const n=i(1034).b,r=i(3914).R,s=i(3914).C,o=i(523),a=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],l=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(a);function c(t,e,i){const n={};this._baseState=n,n.name=i,n.enc=t,n.parent=e||null,n.children=null,n.tag=null,n.args=null,n.reverseArgs=null,n.choice=null,n.optional=!1,n.any=!1,n.obj=!1,n.use=null,n.useDecoder=null,n.key=null,n.default=null,n.explicit=null,n.implicit=null,n.contains=null,n.parent||(n.children=[],this._wrap())}t.exports=c;const h=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];c.prototype.clone=function(){const t=this._baseState,e={};h.forEach(function(i){e[i]=t[i]});const i=new this.constructor(e.parent);return i._baseState=e,i},c.prototype._wrap=function(){const t=this._baseState;l.forEach(function(e){this[e]=function(){const i=new this.constructor(this);return t.children.push(i),i[e].apply(i,arguments)}},this)},c.prototype._init=function(t){const e=this._baseState;o(null===e.parent),t.call(this),e.children=e.children.filter(function(t){return t._baseState.parent===this},this),o.equal(e.children.length,1,"Root node can have only one child")},c.prototype._useArgs=function(t){const e=this._baseState,i=t.filter(function(t){return t instanceof this.constructor},this);t=t.filter(function(t){return!(t instanceof this.constructor)},this),0!==i.length&&(o(null===e.children),e.children=i,i.forEach(function(t){t._baseState.parent=this},this)),0!==t.length&&(o(null===e.args),e.args=t,e.reverseArgs=t.map(function(t){if("object"!=typeof t||t.constructor!==Object)return t;const e={};return Object.keys(t).forEach(function(i){i==(0|i)&&(i|=0),e[t[i]]=i}),e}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(t){c.prototype[t]=function(){throw new Error(t+" not implemented for encoding: "+this._baseState.enc)}}),a.forEach(function(t){c.prototype[t]=function(){const e=this._baseState,i=Array.prototype.slice.call(arguments);return o(null===e.tag),e.tag=t,this._useArgs(i),this}}),c.prototype.use=function(t){o(t);const e=this._baseState;return o(null===e.use),e.use=t,this},c.prototype.optional=function(){return this._baseState.optional=!0,this},c.prototype.def=function(t){const e=this._baseState;return o(null===e.default),e.default=t,e.optional=!0,this},c.prototype.explicit=function(t){const e=this._baseState;return o(null===e.explicit&&null===e.implicit),e.explicit=t,this},c.prototype.implicit=function(t){const e=this._baseState;return o(null===e.explicit&&null===e.implicit),e.implicit=t,this},c.prototype.obj=function(){const t=this._baseState,e=Array.prototype.slice.call(arguments);return t.obj=!0,0!==e.length&&this._useArgs(e),this},c.prototype.key=function(t){const e=this._baseState;return o(null===e.key),e.key=t,this},c.prototype.any=function(){return this._baseState.any=!0,this},c.prototype.choice=function(t){const e=this._baseState;return o(null===e.choice),e.choice=t,this._useArgs(Object.keys(t).map(function(e){return t[e]})),this},c.prototype.contains=function(t){const e=this._baseState;return o(null===e.use),e.contains=t,this},c.prototype._decode=function(t,e){const i=this._baseState;if(null===i.parent)return t.wrapResult(i.children[0]._decode(t,e));let n,r=i.default,o=!0,a=null;if(null!==i.key&&(a=t.enterKey(i.key)),i.optional){let n=null;if(null!==i.explicit?n=i.explicit:null!==i.implicit?n=i.implicit:null!==i.tag&&(n=i.tag),null!==n||i.any){if(o=this._peekTag(t,n,i.any),t.isError(o))return o}else{const n=t.save();try{null===i.choice?this._decodeGeneric(i.tag,t,e):this._decodeChoice(t,e),o=!0}catch(l){o=!1}t.restore(n)}}if(i.obj&&o&&(n=t.enterObject()),o){if(null!==i.explicit){const e=this._decodeTag(t,i.explicit);if(t.isError(e))return e;t=e}const n=t.offset;if(null===i.use&&null===i.choice){let e;i.any&&(e=t.save());const n=this._decodeTag(t,null!==i.implicit?i.implicit:i.tag,i.any);if(t.isError(n))return n;i.any?r=t.raw(e):t=n}if(e&&e.track&&null!==i.tag&&e.track(t.path(),n,t.length,"tagged"),e&&e.track&&null!==i.tag&&e.track(t.path(),t.offset,t.length,"content"),i.any||(r=null===i.choice?this._decodeGeneric(i.tag,t,e):this._decodeChoice(t,e)),t.isError(r))return r;if(i.any||null!==i.choice||null===i.children||i.children.forEach(function(i){i._decode(t,e)}),i.contains&&("octstr"===i.tag||"bitstr"===i.tag)){const n=new s(r);r=this._getUse(i.contains,t._reporterState.obj)._decode(n,e)}}return i.obj&&o&&(r=t.leaveObject(n)),null===i.key||null===r&&!0!==o?null!==a&&t.exitKey(a):t.leaveKey(a,i.key,r),r},c.prototype._decodeGeneric=function(t,e,i){const n=this._baseState;return"seq"===t||"set"===t?null:"seqof"===t||"setof"===t?this._decodeList(e,t,n.args[0],i):/str$/.test(t)?this._decodeStr(e,t,i):"objid"===t&&n.args?this._decodeObjid(e,n.args[0],n.args[1],i):"objid"===t?this._decodeObjid(e,null,null,i):"gentime"===t||"utctime"===t?this._decodeTime(e,t,i):"null_"===t?this._decodeNull(e,i):"bool"===t?this._decodeBool(e,i):"objDesc"===t?this._decodeStr(e,t,i):"int"===t||"enum"===t?this._decodeInt(e,n.args&&n.args[0],i):null!==n.use?this._getUse(n.use,e._reporterState.obj)._decode(e,i):e.error("unknown tag: "+t)},c.prototype._getUse=function(t,e){const i=this._baseState;return i.useDecoder=this._use(t,e),o(null===i.useDecoder._baseState.parent),i.useDecoder=i.useDecoder._baseState.children[0],i.implicit!==i.useDecoder._baseState.implicit&&(i.useDecoder=i.useDecoder.clone(),i.useDecoder._baseState.implicit=i.implicit),i.useDecoder},c.prototype._decodeChoice=function(t,e){const i=this._baseState;let n=null,r=!1;return Object.keys(i.choice).some(function(s){const o=t.save(),a=i.choice[s];try{const i=a._decode(t,e);if(t.isError(i))return!1;n={type:s,value:i},r=!0}catch(l){return t.restore(o),!1}return!0},this),r?n:t.error("Choice not matched")},c.prototype._createEncoderBuffer=function(t){return new r(t,this.reporter)},c.prototype._encode=function(t,e,i){const n=this._baseState;if(null!==n.default&&n.default===t)return;const r=this._encodeValue(t,e,i);return void 0===r||this._skipDefault(r,e,i)?void 0:r},c.prototype._encodeValue=function(t,e,i){const r=this._baseState;if(null===r.parent)return r.children[0]._encode(t,e||new n);let s=null;if(this.reporter=e,r.optional&&void 0===t){if(null===r.default)return;t=r.default}let o=null,a=!1;if(r.any)s=this._createEncoderBuffer(t);else if(r.choice)s=this._encodeChoice(t,e);else if(r.contains)o=this._getUse(r.contains,i)._encode(t,e),a=!0;else if(r.children)o=r.children.map(function(i){if("null_"===i._baseState.tag)return i._encode(null,e,t);if(null===i._baseState.key)return e.error("Child should have a key");const n=e.enterKey(i._baseState.key);if("object"!=typeof t)return e.error("Child expected, but input is not object");const r=i._encode(t[i._baseState.key],e,t);return e.leaveKey(n),r},this).filter(function(t){return t}),o=this._createEncoderBuffer(o);else if("seqof"===r.tag||"setof"===r.tag){if(!r.args||1!==r.args.length)return e.error("Too many args for : "+r.tag);if(!Array.isArray(t))return e.error("seqof/setof, but data is not Array");const i=this.clone();i._baseState.implicit=null,o=this._createEncoderBuffer(t.map(function(i){return this._getUse(this._baseState.args[0],t)._encode(i,e)},i))}else null!==r.use?s=this._getUse(r.use,i)._encode(t,e):(o=this._encodePrimitive(r.tag,t),a=!0);if(!r.any&&null===r.choice){const t=null!==r.implicit?r.implicit:r.tag,i=null===r.implicit?"universal":"context";null===t?null===r.use&&e.error("Tag could be omitted only for .use()"):null===r.use&&(s=this._encodeComposite(t,a,i,o))}return null!==r.explicit&&(s=this._encodeComposite(r.explicit,!1,"context",s)),s},c.prototype._encodeChoice=function(t,e){const i=this._baseState,n=i.choice[t.type];return n||o(!1,t.type+" not found in "+JSON.stringify(Object.keys(i.choice))),n._encode(t.value,e)},c.prototype._encodePrimitive=function(t,e){const i=this._baseState;if(/str$/.test(t))return this._encodeStr(e,t);if("objid"===t&&i.args)return this._encodeObjid(e,i.reverseArgs[0],i.args[1]);if("objid"===t)return this._encodeObjid(e,null,null);if("gentime"===t||"utctime"===t)return this._encodeTime(e,t);if("null_"===t)return this._encodeNull();if("int"===t||"enum"===t)return this._encodeInt(e,i.args&&i.reverseArgs[0]);if("bool"===t)return this._encodeBool(e);if("objDesc"===t)return this._encodeStr(e,t);throw new Error("Unsupported tag: "+t)},c.prototype._isNumstr=function(t){return/^[0-9 ]*$/.test(t)},c.prototype._isPrintstr=function(t){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(t)}},1034:(t,e,i)=>{"use strict";const n=i(5457);function r(t){this._reporterState={obj:null,path:[],options:t||{},errors:[]}}function s(t,e){this.path=t,this.rethrow(e)}e.b=r,r.prototype.isError=function(t){return t instanceof s},r.prototype.save=function(){const t=this._reporterState;return{obj:t.obj,pathLen:t.path.length}},r.prototype.restore=function(t){const e=this._reporterState;e.obj=t.obj,e.path=e.path.slice(0,t.pathLen)},r.prototype.enterKey=function(t){return this._reporterState.path.push(t)},r.prototype.exitKey=function(t){const e=this._reporterState;e.path=e.path.slice(0,t-1)},r.prototype.leaveKey=function(t,e,i){const n=this._reporterState;this.exitKey(t),null!==n.obj&&(n.obj[e]=i)},r.prototype.path=function(){return this._reporterState.path.join("/")},r.prototype.enterObject=function(){const t=this._reporterState,e=t.obj;return t.obj={},e},r.prototype.leaveObject=function(t){const e=this._reporterState,i=e.obj;return e.obj=t,i},r.prototype.error=function(t){let e;const i=this._reporterState,n=t instanceof s;if(e=n?t:new s(i.path.map(function(t){return"["+JSON.stringify(t)+"]"}).join(""),t.message||t,t.stack),!i.options.partial)throw e;return n||i.errors.push(e),e},r.prototype.wrapResult=function(t){const e=this._reporterState;return e.options.partial?{result:this.isError(t)?null:t,errors:e.errors}:t},n(s,Error),s.prototype.rethrow=function(t){if(this.message=t+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,s),!this.stack)try{throw new Error(this.message)}catch(e){this.stack=e.stack}return this}},901:(t,e)=>{"use strict";function i(t){const e={};return Object.keys(t).forEach(function(i){(0|i)==i&&(i|=0),e[t[i]]=i}),e}e.tagClass={0:"universal",1:"application",2:"context",3:"private"},e.tagClassByName=i(e.tagClass),e.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},e.tagByName=i(e.tag)},5537:(t,e,i)=>{"use strict";const n=e;n._reverse=function(t){const e={};return Object.keys(t).forEach(function(i){(0|i)==i&&(i|=0),e[t[i]]=i}),e},n.der=i(901)},6797:(t,e,i)=>{"use strict";const n=i(5457),r=i(5514),s=i(3914).C,o=i(5502),a=i(901);function l(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new c,this.tree._init(t.body)}function c(t){o.call(this,"der",t)}function h(t,e){let i=t.readUInt8(e);if(t.isError(i))return i;const n=a.tagClass[i>>6],r=0==(32&i);if(31==(31&i)){let n=i;for(i=0;128==(128&n);){if(n=t.readUInt8(e),t.isError(n))return n;i<<=7,i|=127&n}}else i&=31;return{cls:n,primitive:r,tag:i,tagStr:a.tag[i]}}function u(t,e,i){let n=t.readUInt8(i);if(t.isError(n))return n;if(!e&&128===n)return null;if(0==(128&n))return n;const r=127&n;if(r>4)return t.error("length octect is too long");n=0;for(let s=0;s{"use strict";const n=e;n.der=i(6797),n.pem=i(124)},124:(t,e,i)=>{"use strict";const n=i(5457),r=i(5968).Buffer,s=i(6797);function o(t){s.call(this,t),this.enc="pem"}n(o,s),t.exports=o,o.prototype.decode=function(t,e){const i=t.toString().split(/[\r\n]+/g),n=e.label.toUpperCase(),o=/^-----(BEGIN|END) ([^-]+)-----$/;let a=-1,l=-1;for(let r=0;r{"use strict";const n=i(5457),r=i(5968).Buffer,s=i(5502),o=i(901);function a(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new l,this.tree._init(t.body)}function l(t){s.call(this,"der",t)}function c(t){return t<10?"0"+t:t}t.exports=a,a.prototype.encode=function(t,e){return this.tree._encode(t,e).join()},n(l,s),l.prototype._encodeComposite=function(t,e,i,n){const s=function(t,e,i,n){let r;if("seqof"===t?t="seq":"setof"===t&&(t="set"),o.tagByName.hasOwnProperty(t))r=o.tagByName[t];else{if("number"!=typeof t||(0|t)!==t)return n.error("Unknown tag: "+t);r=t}return r>=31?n.error("Multi-octet tag encoding unsupported"):(e||(r|=32),r|=o.tagClassByName[i||"universal"]<<6,r)}(t,e,i,this.reporter);if(n.length<128){const t=r.alloc(2);return t[0]=s,t[1]=n.length,this._createEncoderBuffer([t,n])}let a=1;for(let r=n.length;r>=256;r>>=8)a++;const l=r.alloc(2+a);l[0]=s,l[1]=128|a;for(let r=1+a,o=n.length;o>0;r--,o>>=8)l[r]=255&o;return this._createEncoderBuffer([l,n])},l.prototype._encodeStr=function(t,e){if("bitstr"===e)return this._createEncoderBuffer([0|t.unused,t.data]);if("bmpstr"===e){const e=r.alloc(2*t.length);for(let i=0;i=40)return this.reporter.error("Second objid identifier OOB");t.splice(0,2,40*t[0]+t[1])}let n=0;for(let r=0;r=128;e>>=7)n++}const s=r.alloc(n);let o=s.length-1;for(let r=t.length-1;r>=0;r--){let e=t[r];for(s[o--]=127&e;(e>>=7)>0;)s[o--]=128|127&e}return this._createEncoderBuffer(s)},l.prototype._encodeTime=function(t,e){let i;const n=new Date(t);return"gentime"===e?i=[c(n.getUTCFullYear()),c(n.getUTCMonth()+1),c(n.getUTCDate()),c(n.getUTCHours()),c(n.getUTCMinutes()),c(n.getUTCSeconds()),"Z"].join(""):"utctime"===e?i=[c(n.getUTCFullYear()%100),c(n.getUTCMonth()+1),c(n.getUTCDate()),c(n.getUTCHours()),c(n.getUTCMinutes()),c(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+e+" time is not supported yet"),this._encodeStr(i,"octstr")},l.prototype._encodeNull=function(){return this._createEncoderBuffer("")},l.prototype._encodeInt=function(t,e){if("string"==typeof t){if(!e)return this.reporter.error("String int or enum given, but no values map");if(!e.hasOwnProperty(t))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(t));t=e[t]}if("number"!=typeof t&&!r.isBuffer(t)){const e=t.toArray();!t.sign&&128&e[0]&&e.unshift(0),t=r.from(e)}if(r.isBuffer(t)){let e=t.length;0===t.length&&e++;const i=r.alloc(e);return t.copy(i),0===t.length&&(i[0]=0),this._createEncoderBuffer(i)}if(t<128)return this._createEncoderBuffer(t);if(t<256)return this._createEncoderBuffer([0,t]);let i=1;for(let r=t;r>=256;r>>=8)i++;const n=new Array(i);for(let r=n.length-1;r>=0;r--)n[r]=255&t,t>>=8;return 128&n[0]&&n.unshift(0),this._createEncoderBuffer(r.from(n))},l.prototype._encodeBool=function(t){return this._createEncoderBuffer(t?255:0)},l.prototype._use=function(t,e){return"function"==typeof t&&(t=t(e)),t._getEncoder("der").tree},l.prototype._skipDefault=function(t,e,i){const n=this._baseState;let r;if(null===n.default)return!1;const s=t.join();if(void 0===n.defaultBuffer&&(n.defaultBuffer=this._encodeValue(n.default,e,i).join()),s.length!==n.defaultBuffer.length)return!1;for(r=0;r{"use strict";const n=e;n.der=i(1965),n.pem=i(2191)},2191:(t,e,i)=>{"use strict";const n=i(5457),r=i(1965);function s(t){r.call(this,t),this.enc="pem"}n(s,r),t.exports=s,s.prototype.encode=function(t,e){const i=r.prototype.encode.call(this,t).toString("base64"),n=["-----BEGIN "+e.label+"-----"];for(let r=0;r=65&&i<=70?i-55:i>=97&&i<=102?i-87:i-48&15}function l(t,e,i){var n=a(t,i);return i-1>=e&&(n|=a(t,i-1)<<4),n}function c(t,e,i,n){for(var r=0,s=Math.min(t.length,i),o=e;o=49?a-49+10:a>=17?a-17+10:a}return r}s.isBN=function(t){return t instanceof s||null!==t&&"object"==typeof t&&t.constructor.wordSize===s.wordSize&&Array.isArray(t.words)},s.max=function(t,e){return t.cmp(e)>0?t:e},s.min=function(t,e){return t.cmp(e)<0?t:e},s.prototype._init=function(t,e,i){if("number"==typeof t)return this._initNumber(t,e,i);if("object"==typeof t)return this._initArray(t,e,i);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var r=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(r++,this.negative=1),r=0;r-=3)this.words[s]|=(o=t[r]|t[r-1]<<8|t[r-2]<<16)<>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);else if("le"===i)for(r=0,s=0;r>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);return this.strip()},s.prototype._parseHex=function(t,e,i){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n=e;n-=2)r=l(t,e,n)<=18?(s-=18,this.words[o+=1]|=r>>>26):s+=8;else for(n=(t.length-e)%2==0?e+1:e;n=18?(s-=18,this.words[o+=1]|=r>>>26):s+=8;this.strip()},s.prototype._parseBase=function(t,e,i){this.words=[0],this.length=1;for(var n=0,r=1;r<=67108863;r*=e)n++;n--,r=r/e|0;for(var s=t.length-i,o=s%n,a=Math.min(s,s-o)+i,l=0,h=i;h1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?""};var h=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],u=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(t,e,i){i.negative=e.negative^t.negative;var n=t.length+e.length|0;i.length=n,n=n-1|0;var r=0|t.words[0],s=0|e.words[0],o=r*s,a=o/67108864|0;i.words[0]=67108863&o;for(var l=1;l>>26,h=67108863&a,u=Math.min(l,e.length-1),d=Math.max(0,l-t.length+1);d<=u;d++)c+=(o=(r=0|t.words[l-d|0])*(s=0|e.words[d])+h)/67108864|0,h=67108863&o;i.words[l]=0|h,a=0|c}return 0!==a?i.words[l]=0|a:i.length--,i.strip()}s.prototype.toString=function(t,e){var i;if(e=0|e||1,16===(t=t||10)||"hex"===t){i="";for(var r=0,s=0,o=0;o>>24-r&16777215)||o!==this.length-1?h[6-l.length]+l+i:l+i,(r+=2)>=26&&(r-=26,o--)}for(0!==s&&(i=s.toString(16)+i);i.length%e!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(t===(0|t)&&t>=2&&t<=36){var c=u[t],p=d[t];i="";var f=this.clone();for(f.negative=0;!f.isZero();){var m=f.modn(p).toString(t);i=(f=f.idivn(p)).isZero()?m+i:h[c-m.length]+m+i}for(this.isZero()&&(i="0"+i);i.length%e!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}n(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(t,e){return n(void 0!==o),this.toArrayLike(o,t,e)},s.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},s.prototype.toArrayLike=function(t,e,i){var r=this.byteLength(),s=i||Math.max(1,r);n(r<=s,"byte array longer than desired length"),n(s>0,"Requested array length <= 0"),this.strip();var o,a,l="le"===e,c=new t(s),h=this.clone();if(l){for(a=0;!h.isZero();a++)o=h.andln(255),h.iushrn(8),c[a]=o;for(;a=4096&&(i+=13,e>>>=13),e>=64&&(i+=7,e>>>=7),e>=8&&(i+=4,e>>>=4),e>=2&&(i+=2,e>>>=2),i+e},s.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,i=0;return 0==(8191&e)&&(i+=13,e>>>=13),0==(127&e)&&(i+=7,e>>>=7),0==(15&e)&&(i+=4,e>>>=4),0==(3&e)&&(i+=2,e>>>=2),0==(1&e)&&i++,i},s.prototype.bitLength=function(){var t=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+t},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},s.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},s.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var i=0;it.length?this.clone().iand(t):t.clone().iand(this)},s.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},s.prototype.iuxor=function(t){var e,i;this.length>t.length?(e=this,i=t):(e=t,i=this);for(var n=0;nt.length?this.clone().ixor(t):t.clone().ixor(this)},s.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},s.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),i=t%26;this._expand(e),i>0&&e--;for(var r=0;r0&&(this.words[r]=~this.words[r]&67108863>>26-i),this.strip()},s.prototype.notn=function(t){return this.clone().inotn(t)},s.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var i=t/26|0,r=t%26;return this._expand(i+1),this.words[i]=e?this.words[i]|1<t.length?(i=this,n=t):(i=t,n=this);for(var r=0,s=0;s>>26;for(;0!==r&&s>>26;if(this.length=i.length,0!==r)this.words[this.length]=r,this.length++;else if(i!==this)for(;st.length?this.clone().iadd(t):t.clone().iadd(this)},s.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,n,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(i=this,n=t):(i=t,n=this);for(var s=0,o=0;o>26,this.words[o]=67108863&e;for(;0!==s&&o>26,this.words[o]=67108863&e;if(0===s&&o>>13,p=0|o[1],f=8191&p,m=p>>>13,g=0|o[2],y=8191&g,b=g>>>13,v=0|o[3],_=8191&v,w=v>>>13,x=0|o[4],C=8191&x,A=x>>>13,S=0|o[5],E=8191&S,k=S>>>13,T=0|o[6],M=8191&T,L=T>>>13,I=0|o[7],O=8191&I,D=I>>>13,R=0|o[8],N=8191&R,P=R>>>13,F=0|o[9],Z=8191&F,B=F>>>13,U=0|a[0],q=8191&U,z=U>>>13,H=0|a[1],Y=8191&H,G=H>>>13,j=0|a[2],V=8191&j,Q=j>>>13,W=0|a[3],J=8191&W,X=W>>>13,K=0|a[4],$=8191&K,tt=K>>>13,et=0|a[5],it=8191&et,nt=et>>>13,rt=0|a[6],st=8191&rt,ot=rt>>>13,at=0|a[7],lt=8191&at,ct=at>>>13,ht=0|a[8],ut=8191&ht,dt=ht>>>13,pt=0|a[9],ft=8191&pt,mt=pt>>>13;i.negative=t.negative^e.negative,i.length=19;var gt=(c+(n=Math.imul(u,q))|0)+((8191&(r=(r=Math.imul(u,z))+Math.imul(d,q)|0))<<13)|0;c=((s=Math.imul(d,z))+(r>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(f,q),r=(r=Math.imul(f,z))+Math.imul(m,q)|0,s=Math.imul(m,z);var yt=(c+(n=n+Math.imul(u,Y)|0)|0)+((8191&(r=(r=r+Math.imul(u,G)|0)+Math.imul(d,Y)|0))<<13)|0;c=((s=s+Math.imul(d,G)|0)+(r>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(y,q),r=(r=Math.imul(y,z))+Math.imul(b,q)|0,s=Math.imul(b,z),n=n+Math.imul(f,Y)|0,r=(r=r+Math.imul(f,G)|0)+Math.imul(m,Y)|0,s=s+Math.imul(m,G)|0;var bt=(c+(n=n+Math.imul(u,V)|0)|0)+((8191&(r=(r=r+Math.imul(u,Q)|0)+Math.imul(d,V)|0))<<13)|0;c=((s=s+Math.imul(d,Q)|0)+(r>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(_,q),r=(r=Math.imul(_,z))+Math.imul(w,q)|0,s=Math.imul(w,z),n=n+Math.imul(y,Y)|0,r=(r=r+Math.imul(y,G)|0)+Math.imul(b,Y)|0,s=s+Math.imul(b,G)|0,n=n+Math.imul(f,V)|0,r=(r=r+Math.imul(f,Q)|0)+Math.imul(m,V)|0,s=s+Math.imul(m,Q)|0;var vt=(c+(n=n+Math.imul(u,J)|0)|0)+((8191&(r=(r=r+Math.imul(u,X)|0)+Math.imul(d,J)|0))<<13)|0;c=((s=s+Math.imul(d,X)|0)+(r>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(C,q),r=(r=Math.imul(C,z))+Math.imul(A,q)|0,s=Math.imul(A,z),n=n+Math.imul(_,Y)|0,r=(r=r+Math.imul(_,G)|0)+Math.imul(w,Y)|0,s=s+Math.imul(w,G)|0,n=n+Math.imul(y,V)|0,r=(r=r+Math.imul(y,Q)|0)+Math.imul(b,V)|0,s=s+Math.imul(b,Q)|0,n=n+Math.imul(f,J)|0,r=(r=r+Math.imul(f,X)|0)+Math.imul(m,J)|0,s=s+Math.imul(m,X)|0;var _t=(c+(n=n+Math.imul(u,$)|0)|0)+((8191&(r=(r=r+Math.imul(u,tt)|0)+Math.imul(d,$)|0))<<13)|0;c=((s=s+Math.imul(d,tt)|0)+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(E,q),r=(r=Math.imul(E,z))+Math.imul(k,q)|0,s=Math.imul(k,z),n=n+Math.imul(C,Y)|0,r=(r=r+Math.imul(C,G)|0)+Math.imul(A,Y)|0,s=s+Math.imul(A,G)|0,n=n+Math.imul(_,V)|0,r=(r=r+Math.imul(_,Q)|0)+Math.imul(w,V)|0,s=s+Math.imul(w,Q)|0,n=n+Math.imul(y,J)|0,r=(r=r+Math.imul(y,X)|0)+Math.imul(b,J)|0,s=s+Math.imul(b,X)|0,n=n+Math.imul(f,$)|0,r=(r=r+Math.imul(f,tt)|0)+Math.imul(m,$)|0,s=s+Math.imul(m,tt)|0;var wt=(c+(n=n+Math.imul(u,it)|0)|0)+((8191&(r=(r=r+Math.imul(u,nt)|0)+Math.imul(d,it)|0))<<13)|0;c=((s=s+Math.imul(d,nt)|0)+(r>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(M,q),r=(r=Math.imul(M,z))+Math.imul(L,q)|0,s=Math.imul(L,z),n=n+Math.imul(E,Y)|0,r=(r=r+Math.imul(E,G)|0)+Math.imul(k,Y)|0,s=s+Math.imul(k,G)|0,n=n+Math.imul(C,V)|0,r=(r=r+Math.imul(C,Q)|0)+Math.imul(A,V)|0,s=s+Math.imul(A,Q)|0,n=n+Math.imul(_,J)|0,r=(r=r+Math.imul(_,X)|0)+Math.imul(w,J)|0,s=s+Math.imul(w,X)|0,n=n+Math.imul(y,$)|0,r=(r=r+Math.imul(y,tt)|0)+Math.imul(b,$)|0,s=s+Math.imul(b,tt)|0,n=n+Math.imul(f,it)|0,r=(r=r+Math.imul(f,nt)|0)+Math.imul(m,it)|0,s=s+Math.imul(m,nt)|0;var xt=(c+(n=n+Math.imul(u,st)|0)|0)+((8191&(r=(r=r+Math.imul(u,ot)|0)+Math.imul(d,st)|0))<<13)|0;c=((s=s+Math.imul(d,ot)|0)+(r>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(O,q),r=(r=Math.imul(O,z))+Math.imul(D,q)|0,s=Math.imul(D,z),n=n+Math.imul(M,Y)|0,r=(r=r+Math.imul(M,G)|0)+Math.imul(L,Y)|0,s=s+Math.imul(L,G)|0,n=n+Math.imul(E,V)|0,r=(r=r+Math.imul(E,Q)|0)+Math.imul(k,V)|0,s=s+Math.imul(k,Q)|0,n=n+Math.imul(C,J)|0,r=(r=r+Math.imul(C,X)|0)+Math.imul(A,J)|0,s=s+Math.imul(A,X)|0,n=n+Math.imul(_,$)|0,r=(r=r+Math.imul(_,tt)|0)+Math.imul(w,$)|0,s=s+Math.imul(w,tt)|0,n=n+Math.imul(y,it)|0,r=(r=r+Math.imul(y,nt)|0)+Math.imul(b,it)|0,s=s+Math.imul(b,nt)|0,n=n+Math.imul(f,st)|0,r=(r=r+Math.imul(f,ot)|0)+Math.imul(m,st)|0,s=s+Math.imul(m,ot)|0;var Ct=(c+(n=n+Math.imul(u,lt)|0)|0)+((8191&(r=(r=r+Math.imul(u,ct)|0)+Math.imul(d,lt)|0))<<13)|0;c=((s=s+Math.imul(d,ct)|0)+(r>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(N,q),r=(r=Math.imul(N,z))+Math.imul(P,q)|0,s=Math.imul(P,z),n=n+Math.imul(O,Y)|0,r=(r=r+Math.imul(O,G)|0)+Math.imul(D,Y)|0,s=s+Math.imul(D,G)|0,n=n+Math.imul(M,V)|0,r=(r=r+Math.imul(M,Q)|0)+Math.imul(L,V)|0,s=s+Math.imul(L,Q)|0,n=n+Math.imul(E,J)|0,r=(r=r+Math.imul(E,X)|0)+Math.imul(k,J)|0,s=s+Math.imul(k,X)|0,n=n+Math.imul(C,$)|0,r=(r=r+Math.imul(C,tt)|0)+Math.imul(A,$)|0,s=s+Math.imul(A,tt)|0,n=n+Math.imul(_,it)|0,r=(r=r+Math.imul(_,nt)|0)+Math.imul(w,it)|0,s=s+Math.imul(w,nt)|0,n=n+Math.imul(y,st)|0,r=(r=r+Math.imul(y,ot)|0)+Math.imul(b,st)|0,s=s+Math.imul(b,ot)|0,n=n+Math.imul(f,lt)|0,r=(r=r+Math.imul(f,ct)|0)+Math.imul(m,lt)|0,s=s+Math.imul(m,ct)|0;var At=(c+(n=n+Math.imul(u,ut)|0)|0)+((8191&(r=(r=r+Math.imul(u,dt)|0)+Math.imul(d,ut)|0))<<13)|0;c=((s=s+Math.imul(d,dt)|0)+(r>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(Z,q),r=(r=Math.imul(Z,z))+Math.imul(B,q)|0,s=Math.imul(B,z),n=n+Math.imul(N,Y)|0,r=(r=r+Math.imul(N,G)|0)+Math.imul(P,Y)|0,s=s+Math.imul(P,G)|0,n=n+Math.imul(O,V)|0,r=(r=r+Math.imul(O,Q)|0)+Math.imul(D,V)|0,s=s+Math.imul(D,Q)|0,n=n+Math.imul(M,J)|0,r=(r=r+Math.imul(M,X)|0)+Math.imul(L,J)|0,s=s+Math.imul(L,X)|0,n=n+Math.imul(E,$)|0,r=(r=r+Math.imul(E,tt)|0)+Math.imul(k,$)|0,s=s+Math.imul(k,tt)|0,n=n+Math.imul(C,it)|0,r=(r=r+Math.imul(C,nt)|0)+Math.imul(A,it)|0,s=s+Math.imul(A,nt)|0,n=n+Math.imul(_,st)|0,r=(r=r+Math.imul(_,ot)|0)+Math.imul(w,st)|0,s=s+Math.imul(w,ot)|0,n=n+Math.imul(y,lt)|0,r=(r=r+Math.imul(y,ct)|0)+Math.imul(b,lt)|0,s=s+Math.imul(b,ct)|0,n=n+Math.imul(f,ut)|0,r=(r=r+Math.imul(f,dt)|0)+Math.imul(m,ut)|0,s=s+Math.imul(m,dt)|0;var St=(c+(n=n+Math.imul(u,ft)|0)|0)+((8191&(r=(r=r+Math.imul(u,mt)|0)+Math.imul(d,ft)|0))<<13)|0;c=((s=s+Math.imul(d,mt)|0)+(r>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(Z,Y),r=(r=Math.imul(Z,G))+Math.imul(B,Y)|0,s=Math.imul(B,G),n=n+Math.imul(N,V)|0,r=(r=r+Math.imul(N,Q)|0)+Math.imul(P,V)|0,s=s+Math.imul(P,Q)|0,n=n+Math.imul(O,J)|0,r=(r=r+Math.imul(O,X)|0)+Math.imul(D,J)|0,s=s+Math.imul(D,X)|0,n=n+Math.imul(M,$)|0,r=(r=r+Math.imul(M,tt)|0)+Math.imul(L,$)|0,s=s+Math.imul(L,tt)|0,n=n+Math.imul(E,it)|0,r=(r=r+Math.imul(E,nt)|0)+Math.imul(k,it)|0,s=s+Math.imul(k,nt)|0,n=n+Math.imul(C,st)|0,r=(r=r+Math.imul(C,ot)|0)+Math.imul(A,st)|0,s=s+Math.imul(A,ot)|0,n=n+Math.imul(_,lt)|0,r=(r=r+Math.imul(_,ct)|0)+Math.imul(w,lt)|0,s=s+Math.imul(w,ct)|0,n=n+Math.imul(y,ut)|0,r=(r=r+Math.imul(y,dt)|0)+Math.imul(b,ut)|0,s=s+Math.imul(b,dt)|0;var Et=(c+(n=n+Math.imul(f,ft)|0)|0)+((8191&(r=(r=r+Math.imul(f,mt)|0)+Math.imul(m,ft)|0))<<13)|0;c=((s=s+Math.imul(m,mt)|0)+(r>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(Z,V),r=(r=Math.imul(Z,Q))+Math.imul(B,V)|0,s=Math.imul(B,Q),n=n+Math.imul(N,J)|0,r=(r=r+Math.imul(N,X)|0)+Math.imul(P,J)|0,s=s+Math.imul(P,X)|0,n=n+Math.imul(O,$)|0,r=(r=r+Math.imul(O,tt)|0)+Math.imul(D,$)|0,s=s+Math.imul(D,tt)|0,n=n+Math.imul(M,it)|0,r=(r=r+Math.imul(M,nt)|0)+Math.imul(L,it)|0,s=s+Math.imul(L,nt)|0,n=n+Math.imul(E,st)|0,r=(r=r+Math.imul(E,ot)|0)+Math.imul(k,st)|0,s=s+Math.imul(k,ot)|0,n=n+Math.imul(C,lt)|0,r=(r=r+Math.imul(C,ct)|0)+Math.imul(A,lt)|0,s=s+Math.imul(A,ct)|0,n=n+Math.imul(_,ut)|0,r=(r=r+Math.imul(_,dt)|0)+Math.imul(w,ut)|0,s=s+Math.imul(w,dt)|0;var kt=(c+(n=n+Math.imul(y,ft)|0)|0)+((8191&(r=(r=r+Math.imul(y,mt)|0)+Math.imul(b,ft)|0))<<13)|0;c=((s=s+Math.imul(b,mt)|0)+(r>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(Z,J),r=(r=Math.imul(Z,X))+Math.imul(B,J)|0,s=Math.imul(B,X),n=n+Math.imul(N,$)|0,r=(r=r+Math.imul(N,tt)|0)+Math.imul(P,$)|0,s=s+Math.imul(P,tt)|0,n=n+Math.imul(O,it)|0,r=(r=r+Math.imul(O,nt)|0)+Math.imul(D,it)|0,s=s+Math.imul(D,nt)|0,n=n+Math.imul(M,st)|0,r=(r=r+Math.imul(M,ot)|0)+Math.imul(L,st)|0,s=s+Math.imul(L,ot)|0,n=n+Math.imul(E,lt)|0,r=(r=r+Math.imul(E,ct)|0)+Math.imul(k,lt)|0,s=s+Math.imul(k,ct)|0,n=n+Math.imul(C,ut)|0,r=(r=r+Math.imul(C,dt)|0)+Math.imul(A,ut)|0,s=s+Math.imul(A,dt)|0;var Tt=(c+(n=n+Math.imul(_,ft)|0)|0)+((8191&(r=(r=r+Math.imul(_,mt)|0)+Math.imul(w,ft)|0))<<13)|0;c=((s=s+Math.imul(w,mt)|0)+(r>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(Z,$),r=(r=Math.imul(Z,tt))+Math.imul(B,$)|0,s=Math.imul(B,tt),n=n+Math.imul(N,it)|0,r=(r=r+Math.imul(N,nt)|0)+Math.imul(P,it)|0,s=s+Math.imul(P,nt)|0,n=n+Math.imul(O,st)|0,r=(r=r+Math.imul(O,ot)|0)+Math.imul(D,st)|0,s=s+Math.imul(D,ot)|0,n=n+Math.imul(M,lt)|0,r=(r=r+Math.imul(M,ct)|0)+Math.imul(L,lt)|0,s=s+Math.imul(L,ct)|0,n=n+Math.imul(E,ut)|0,r=(r=r+Math.imul(E,dt)|0)+Math.imul(k,ut)|0,s=s+Math.imul(k,dt)|0;var Mt=(c+(n=n+Math.imul(C,ft)|0)|0)+((8191&(r=(r=r+Math.imul(C,mt)|0)+Math.imul(A,ft)|0))<<13)|0;c=((s=s+Math.imul(A,mt)|0)+(r>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(Z,it),r=(r=Math.imul(Z,nt))+Math.imul(B,it)|0,s=Math.imul(B,nt),n=n+Math.imul(N,st)|0,r=(r=r+Math.imul(N,ot)|0)+Math.imul(P,st)|0,s=s+Math.imul(P,ot)|0,n=n+Math.imul(O,lt)|0,r=(r=r+Math.imul(O,ct)|0)+Math.imul(D,lt)|0,s=s+Math.imul(D,ct)|0,n=n+Math.imul(M,ut)|0,r=(r=r+Math.imul(M,dt)|0)+Math.imul(L,ut)|0,s=s+Math.imul(L,dt)|0;var Lt=(c+(n=n+Math.imul(E,ft)|0)|0)+((8191&(r=(r=r+Math.imul(E,mt)|0)+Math.imul(k,ft)|0))<<13)|0;c=((s=s+Math.imul(k,mt)|0)+(r>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,n=Math.imul(Z,st),r=(r=Math.imul(Z,ot))+Math.imul(B,st)|0,s=Math.imul(B,ot),n=n+Math.imul(N,lt)|0,r=(r=r+Math.imul(N,ct)|0)+Math.imul(P,lt)|0,s=s+Math.imul(P,ct)|0,n=n+Math.imul(O,ut)|0,r=(r=r+Math.imul(O,dt)|0)+Math.imul(D,ut)|0,s=s+Math.imul(D,dt)|0;var It=(c+(n=n+Math.imul(M,ft)|0)|0)+((8191&(r=(r=r+Math.imul(M,mt)|0)+Math.imul(L,ft)|0))<<13)|0;c=((s=s+Math.imul(L,mt)|0)+(r>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(Z,lt),r=(r=Math.imul(Z,ct))+Math.imul(B,lt)|0,s=Math.imul(B,ct),n=n+Math.imul(N,ut)|0,r=(r=r+Math.imul(N,dt)|0)+Math.imul(P,ut)|0,s=s+Math.imul(P,dt)|0;var Ot=(c+(n=n+Math.imul(O,ft)|0)|0)+((8191&(r=(r=r+Math.imul(O,mt)|0)+Math.imul(D,ft)|0))<<13)|0;c=((s=s+Math.imul(D,mt)|0)+(r>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(Z,ut),r=(r=Math.imul(Z,dt))+Math.imul(B,ut)|0,s=Math.imul(B,dt);var Dt=(c+(n=n+Math.imul(N,ft)|0)|0)+((8191&(r=(r=r+Math.imul(N,mt)|0)+Math.imul(P,ft)|0))<<13)|0;c=((s=s+Math.imul(P,mt)|0)+(r>>>13)|0)+(Dt>>>26)|0,Dt&=67108863;var Rt=(c+(n=Math.imul(Z,ft))|0)+((8191&(r=(r=Math.imul(Z,mt))+Math.imul(B,ft)|0))<<13)|0;return c=((s=Math.imul(B,mt))+(r>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,l[0]=gt,l[1]=yt,l[2]=bt,l[3]=vt,l[4]=_t,l[5]=wt,l[6]=xt,l[7]=Ct,l[8]=At,l[9]=St,l[10]=Et,l[11]=kt,l[12]=Tt,l[13]=Mt,l[14]=Lt,l[15]=It,l[16]=Ot,l[17]=Dt,l[18]=Rt,0!==c&&(l[19]=c,i.length++),i};function m(t,e,i){return(new g).mulp(t,e,i)}function g(t,e){this.x=t,this.y=e}Math.imul||(f=p),s.prototype.mulTo=function(t,e){var i=this.length+t.length;return 10===this.length&&10===t.length?f(this,t,e):i<63?p(this,t,e):i<1024?function(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var n=0,r=0,s=0;s>>26)|0)>>>26,o&=67108863}i.words[s]=a,n=o,o=r}return 0!==n?i.words[s]=n:i.length--,i.strip()}(this,t,e):m(this,t,e)},g.prototype.makeRBT=function(t){for(var e=new Array(t),i=s.prototype._countBits(t)-1,n=0;n>=1;return n},g.prototype.permute=function(t,e,i,n,r,s){for(var o=0;o>>=1)r++;return 1<>>=13),s>>>=13;for(o=2*e;o>=26,e+=r/67108864|0,e+=s>>>26,this.words[i]=67108863&s}return 0!==e&&(this.words[i]=e,this.length++),this},s.prototype.muln=function(t){return this.clone().imuln(t)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),i=0;i>>n}return e}(t);if(0===e.length)return new s(1);for(var i=this,n=0;n=0);var e,i=t%26,r=(t-i)/26,s=67108863>>>26-i<<26-i;if(0!==i){var o=0;for(e=0;e>>26-i}o&&(this.words[e]=o,this.length++)}if(0!==r){for(e=this.length-1;e>=0;e--)this.words[e+r]=this.words[e];for(e=0;e=0),r=e?(e-e%26)/26:0;var s=t%26,o=Math.min((t-s)/26,this.length),a=67108863^67108863>>>s<o)for(this.length-=o,c=0;c=0&&(0!==h||c>=r);c--){var u=0|this.words[c];this.words[c]=h<<26-s|u>>>s,h=u&a}return l&&0!==h&&(l.words[l.length++]=h),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(t,e,i){return n(0===this.negative),this.iushrn(t,e,i)},s.prototype.shln=function(t){return this.clone().ishln(t)},s.prototype.ushln=function(t){return this.clone().iushln(t)},s.prototype.shrn=function(t){return this.clone().ishrn(t)},s.prototype.ushrn=function(t){return this.clone().iushrn(t)},s.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,i=(t-e)/26;return!(this.length<=i||!(this.words[i]&1<=0);var e=t%26,i=(t-e)/26;return n(0===this.negative,"imaskn works only with positive numbers"),this.length<=i?this:(0!==e&&i++,this.length=Math.min(i,this.length),0!==e&&(this.words[this.length-1]&=67108863^67108863>>>e<=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},s.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(a/67108864|0),this.words[r+i]=67108863&s}for(;r>26,this.words[r+i]=67108863&s;if(0===o)return this.strip();for(n(-1===o),o=0,r=0;r>26,this.words[r]=67108863&s;return this.negative=1,this.strip()},s.prototype._wordDiv=function(t,e){var i,n=this.clone(),r=t,o=0|r.words[r.length-1];0!=(i=26-this._countBits(o))&&(r=r.ushln(i),n.iushln(i),o=0|r.words[r.length-1]);var a,l=n.length-r.length;if("mod"!==e){(a=new s(null)).length=l+1,a.words=new Array(a.length);for(var c=0;c=0;u--){var d=67108864*(0|n.words[r.length+u])+(0|n.words[r.length+u-1]);for(d=Math.min(d/o|0,67108863),n._ishlnsubmul(r,d,u);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(r,1,u),n.isZero()||(n.negative^=1);a&&(a.words[u]=d)}return a&&a.strip(),n.strip(),"div"!==e&&0!==i&&n.iushrn(i),{div:a||null,mod:n}},s.prototype.divmod=function(t,e,i){return n(!t.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(r=a.div.neg()),"div"!==e&&(o=a.mod.neg(),i&&0!==o.negative&&o.iadd(t)),{div:r,mod:o}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(r=a.div.neg()),{div:r,mod:a.mod}):0!=(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(o=a.mod.neg(),i&&0!==o.negative&&o.isub(t)),{div:a.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new s(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new s(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new s(this.modn(t.words[0]))}:this._wordDiv(t,e);var r,o,a},s.prototype.div=function(t){return this.divmod(t,"div",!1).div},s.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},s.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},s.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var i=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),r=t.andln(1),s=i.cmp(n);return s<0||1===r&&0===s?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},s.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,i=0,r=this.length-1;r>=0;r--)i=(e*i+(0|this.words[r]))%t;return i},s.prototype.idivn=function(t){n(t<=67108863);for(var e=0,i=this.length-1;i>=0;i--){var r=(0|this.words[i])+67108864*e;this.words[i]=r/t|0,e=r%t}return this.strip()},s.prototype.divn=function(t){return this.clone().idivn(t)},s.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var r=new s(1),o=new s(0),a=new s(0),l=new s(1),c=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++c;for(var h=i.clone(),u=e.clone();!e.isZero();){for(var d=0,p=1;0==(e.words[0]&p)&&d<26;++d,p<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(r.isOdd()||o.isOdd())&&(r.iadd(h),o.isub(u)),r.iushrn(1),o.iushrn(1);for(var f=0,m=1;0==(i.words[0]&m)&&f<26;++f,m<<=1);if(f>0)for(i.iushrn(f);f-- >0;)(a.isOdd()||l.isOdd())&&(a.iadd(h),l.isub(u)),a.iushrn(1),l.iushrn(1);e.cmp(i)>=0?(e.isub(i),r.isub(a),o.isub(l)):(i.isub(e),a.isub(r),l.isub(o))}return{a:a,b:l,gcd:i.iushln(c)}},s.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var r,o=new s(1),a=new s(0),l=i.clone();e.cmpn(1)>0&&i.cmpn(1)>0;){for(var c=0,h=1;0==(e.words[0]&h)&&c<26;++c,h<<=1);if(c>0)for(e.iushrn(c);c-- >0;)o.isOdd()&&o.iadd(l),o.iushrn(1);for(var u=0,d=1;0==(i.words[0]&d)&&u<26;++u,d<<=1);if(u>0)for(i.iushrn(u);u-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);e.cmp(i)>=0?(e.isub(i),o.isub(a)):(i.isub(e),a.isub(o))}return(r=0===e.cmpn(1)?o:a).cmpn(0)<0&&r.iadd(t),r},s.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),i=t.clone();e.negative=0,i.negative=0;for(var n=0;e.isEven()&&i.isEven();n++)e.iushrn(1),i.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;i.isEven();)i.iushrn(1);var r=e.cmp(i);if(r<0){var s=e;e=i,i=s}else if(0===r||0===i.cmpn(1))break;e.isub(i)}return i.iushln(n)},s.prototype.invm=function(t){return this.egcd(t).a.umod(t)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(t){return this.words[0]&t},s.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,i=(t-e)/26,r=1<>>26,this.words[o]=a&=67108863}return 0!==s&&(this.words[o]=s,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(t){var e,i=t<0;if(0!==this.negative&&!i)return-1;if(0===this.negative&&i)return 1;if(this.strip(),this.length>1)e=1;else{i&&(t=-t),n(t<=67108863,"Number is too big");var r=0|this.words[0];e=r===t?0:rt.length)return 1;if(this.length=0;i--){var n=0|this.words[i],r=0|t.words[i];if(n!==r){nr&&(e=1);break}}return e},s.prototype.gtn=function(t){return 1===this.cmpn(t)},s.prototype.gt=function(t){return 1===this.cmp(t)},s.prototype.gten=function(t){return this.cmpn(t)>=0},s.prototype.gte=function(t){return this.cmp(t)>=0},s.prototype.ltn=function(t){return-1===this.cmpn(t)},s.prototype.lt=function(t){return-1===this.cmp(t)},s.prototype.lten=function(t){return this.cmpn(t)<=0},s.prototype.lte=function(t){return this.cmp(t)<=0},s.prototype.eqn=function(t){return 0===this.cmpn(t)},s.prototype.eq=function(t){return 0===this.cmp(t)},s.red=function(t){return new C(t)},s.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},s.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(t){return this.red=t,this},s.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},s.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},s.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},s.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},s.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},s.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},s.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},s.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},s.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var y={k256:null,p224:null,p192:null,p25519:null};function b(t,e){this.name=t,this.p=new s(e,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function C(t){if("string"==typeof t){var e=s._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function A(t){C.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}b.prototype._tmp=function(){var t=new s(null);return t.words=new Array(Math.ceil(this.n/13)),t},b.prototype.ireduce=function(t){var e,i=t;do{this.split(i,this.tmp),e=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e0?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},b.prototype.split=function(t,e){t.iushrn(this.n,0,e)},b.prototype.imulK=function(t){return t.imul(this.k)},r(v,b),v.prototype.split=function(t,e){for(var i=4194303,n=Math.min(t.length,9),r=0;r>>22,s=o}t.words[r-10]=s>>>=22,t.length-=0===s&&t.length>10?10:9},v.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i>>=26,t.words[i]=r,e=n}return 0!==e&&(t.words[t.length++]=e),t},s._prime=function(t){if(y[t])return y[t];var e;if("k256"===t)e=new v;else if("p224"===t)e=new _;else if("p192"===t)e=new w;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new x}return y[t]=e,e},C.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},C.prototype._verify2=function(t,e){n(0==(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},C.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},C.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},C.prototype.add=function(t,e){this._verify2(t,e);var i=t.add(e);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},C.prototype.iadd=function(t,e){this._verify2(t,e);var i=t.iadd(e);return i.cmp(this.m)>=0&&i.isub(this.m),i},C.prototype.sub=function(t,e){this._verify2(t,e);var i=t.sub(e);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},C.prototype.isub=function(t,e){this._verify2(t,e);var i=t.isub(e);return i.cmpn(0)<0&&i.iadd(this.m),i},C.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},C.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},C.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},C.prototype.isqr=function(t){return this.imul(t,t.clone())},C.prototype.sqr=function(t){return this.mul(t,t)},C.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var i=this.m.add(new s(1)).iushrn(2);return this.pow(t,i)}for(var r=this.m.subn(1),o=0;!r.isZero()&&0===r.andln(1);)o++,r.iushrn(1);n(!r.isZero());var a=new s(1).toRed(this),l=a.redNeg(),c=this.m.subn(1).iushrn(1),h=this.m.bitLength();for(h=new s(2*h*h).toRed(this);0!==this.pow(h,c).cmp(l);)h.redIAdd(l);for(var u=this.pow(h,r),d=this.pow(t,r.addn(1).iushrn(1)),p=this.pow(t,r),f=o;0!==p.cmp(a);){for(var m=p,g=0;0!==m.cmp(a);g++)m=m.redSqr();n(g=0;n--){for(var c=e.words[n],h=l-1;h>=0;h--){var u=c>>h&1;r!==i[0]&&(r=this.sqr(r)),0!==u||0!==o?(o<<=1,o|=u,(4==++a||0===n&&0===h)&&(r=this.mul(r,i[o]),a=0,o=0)):a=0}l=26}return r},C.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},C.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},s.mont=function(t){return new A(t)},r(A,C),A.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},A.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},A.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var i=t.imul(e),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),s=r;return r.cmp(this.m)>=0?s=r.isub(this.m):r.cmpn(0)<0&&(s=r.iadd(this.m)),s._forceRed(this)},A.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new s(0)._forceRed(this);var i=t.mul(e),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),o=r;return r.cmp(this.m)>=0?o=r.isub(this.m):r.cmpn(0)<0&&(o=r.iadd(this.m)),o._forceRed(this)},A.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=i.nmd(t),this)},6698:(t,e)=>{"use strict";e.byteLength=function(t){var e=l(t),i=e[1];return 3*(e[0]+i)/4-i},e.toByteArray=function(t){var e,i,s=l(t),o=s[0],a=s[1],c=new r(function(t,e,i){return 3*(e+i)/4-i}(0,o,a)),h=0,u=a>0?o-4:o;for(i=0;i>16&255,c[h++]=e>>8&255,c[h++]=255&e;return 2===a&&(e=n[t.charCodeAt(i)]<<2|n[t.charCodeAt(i+1)]>>4,c[h++]=255&e),1===a&&(e=n[t.charCodeAt(i)]<<10|n[t.charCodeAt(i+1)]<<4|n[t.charCodeAt(i+2)]>>2,c[h++]=e>>8&255,c[h++]=255&e),c},e.fromByteArray=function(t){for(var e,n=t.length,r=n%3,s=[],o=16383,a=0,l=n-r;al?l:a+o));return 1===r?s.push(i[(e=t[n-1])>>2]+i[e<<4&63]+"=="):2===r&&s.push(i[(e=(t[n-2]<<8)+t[n-1])>>10]+i[e>>4&63]+i[e<<2&63]+"="),s.join("")};for(var i=[],n=[],r="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,a=s.length;o0)throw new Error("Invalid string. Length must be a multiple of 4");var i=t.indexOf("=");return-1===i&&(i=e),[i,i===e?0:4-i%4]}function c(t,e,n){for(var r,s=[],o=e;o>18&63]+i[r>>12&63]+i[r>>6&63]+i[63&r]);return s.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},4724:function(t,e,i){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function r(t,e){t.super_=e;var i=function(){};i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}function s(t,e,i){if(s.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(i=e,e=10),this._init(t||0,e||10,i||"be"))}var o;"object"==typeof t?t.exports=s:e.BN=s,s.BN=s,s.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:i(6601).Buffer}catch(T){}function a(t,e){var i=t.charCodeAt(e);return i>=48&&i<=57?i-48:i>=65&&i<=70?i-55:i>=97&&i<=102?i-87:void n(!1,"Invalid character in "+t)}function l(t,e,i){var n=a(t,i);return i-1>=e&&(n|=a(t,i-1)<<4),n}function c(t,e,i,r){for(var s=0,o=0,a=Math.min(t.length,i),l=e;l=49?c-49+10:c>=17?c-17+10:c,n(c>=0&&o0?t:e},s.min=function(t,e){return t.cmp(e)<0?t:e},s.prototype._init=function(t,e,i){if("number"==typeof t)return this._initNumber(t,e,i);if("object"==typeof t)return this._initArray(t,e,i);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var r=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(r++,this.negative=1),r=0;r-=3)this.words[s]|=(o=t[r]|t[r-1]<<8|t[r-2]<<16)<>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);else if("le"===i)for(r=0,s=0;r>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);return this._strip()},s.prototype._parseHex=function(t,e,i){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n=e;n-=2)r=l(t,e,n)<=18?(s-=18,this.words[o+=1]|=r>>>26):s+=8;else for(n=(t.length-e)%2==0?e+1:e;n=18?(s-=18,this.words[o+=1]|=r>>>26):s+=8;this._strip()},s.prototype._parseBase=function(t,e,i){this.words=[0],this.length=1;for(var n=0,r=1;r<=67108863;r*=e)n++;n--,r=r/e|0;for(var s=t.length-i,o=s%n,a=Math.min(s,s-o)+i,l=0,h=i;h1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{s.prototype[Symbol.for("nodejs.util.inspect.custom")]=u}catch(T){s.prototype.inspect=u}else s.prototype.inspect=u;function u(){return(this.red?""}var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],p=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],f=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function m(t,e,i){i.negative=e.negative^t.negative;var n=t.length+e.length|0;i.length=n,n=n-1|0;var r=0|t.words[0],s=0|e.words[0],o=r*s,a=o/67108864|0;i.words[0]=67108863&o;for(var l=1;l>>26,h=67108863&a,u=Math.min(l,e.length-1),d=Math.max(0,l-t.length+1);d<=u;d++)c+=(o=(r=0|t.words[l-d|0])*(s=0|e.words[d])+h)/67108864|0,h=67108863&o;i.words[l]=0|h,a=0|c}return 0!==a?i.words[l]=0|a:i.length--,i._strip()}s.prototype.toString=function(t,e){var i;if(e=0|e||1,16===(t=t||10)||"hex"===t){i="";for(var r=0,s=0,o=0;o>>24-r&16777215)||o!==this.length-1?d[6-l.length]+l+i:l+i,(r+=2)>=26&&(r-=26,o--)}for(0!==s&&(i=s.toString(16)+i);i.length%e!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(t===(0|t)&&t>=2&&t<=36){var c=p[t],h=f[t];i="";var u=this.clone();for(u.negative=0;!u.isZero();){var m=u.modrn(h).toString(t);i=(u=u.idivn(h)).isZero()?m+i:d[c-m.length]+m+i}for(this.isZero()&&(i="0"+i);i.length%e!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}n(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},s.prototype.toJSON=function(){return this.toString(16,2)},o&&(s.prototype.toBuffer=function(t,e){return this.toArrayLike(o,t,e)}),s.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},s.prototype.toArrayLike=function(t,e,i){this._strip();var r=this.byteLength(),s=i||Math.max(1,r);n(r<=s,"byte array longer than desired length"),n(s>0,"Requested array length <= 0");var o=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e)}(t,s);return this["_toArrayLike"+("le"===e?"LE":"BE")](o,r),o},s.prototype._toArrayLikeLE=function(t,e){for(var i=0,n=0,r=0,s=0;r>8&255),i>16&255),6===s?(i>24&255),n=0,s=0):(n=o>>>24,s+=2)}if(i=0&&(t[i--]=o>>8&255),i>=0&&(t[i--]=o>>16&255),6===s?(i>=0&&(t[i--]=o>>24&255),n=0,s=0):(n=o>>>24,s+=2)}if(i>=0)for(t[i--]=n;i>=0;)t[i--]=0},s.prototype._countBits=Math.clz32?function(t){return 32-Math.clz32(t)}:function(t){var e=t,i=0;return e>=4096&&(i+=13,e>>>=13),e>=64&&(i+=7,e>>>=7),e>=8&&(i+=4,e>>>=4),e>=2&&(i+=2,e>>>=2),i+e},s.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,i=0;return 0==(8191&e)&&(i+=13,e>>>=13),0==(127&e)&&(i+=7,e>>>=7),0==(15&e)&&(i+=4,e>>>=4),0==(3&e)&&(i+=2,e>>>=2),0==(1&e)&&i++,i},s.prototype.bitLength=function(){var t=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+t},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},s.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},s.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var i=0;it.length?this.clone().iand(t):t.clone().iand(this)},s.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},s.prototype.iuxor=function(t){var e,i;this.length>t.length?(e=this,i=t):(e=t,i=this);for(var n=0;nt.length?this.clone().ixor(t):t.clone().ixor(this)},s.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},s.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),i=t%26;this._expand(e),i>0&&e--;for(var r=0;r0&&(this.words[r]=~this.words[r]&67108863>>26-i),this._strip()},s.prototype.notn=function(t){return this.clone().inotn(t)},s.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var i=t/26|0,r=t%26;return this._expand(i+1),this.words[i]=e?this.words[i]|1<t.length?(i=this,n=t):(i=t,n=this);for(var r=0,s=0;s>>26;for(;0!==r&&s>>26;if(this.length=i.length,0!==r)this.words[this.length]=r,this.length++;else if(i!==this)for(;st.length?this.clone().iadd(t):t.clone().iadd(this)},s.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,n,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(i=this,n=t):(i=t,n=this);for(var s=0,o=0;o>26,this.words[o]=67108863&e;for(;0!==s&&o>26,this.words[o]=67108863&e;if(0===s&&o>>13,p=0|o[1],f=8191&p,m=p>>>13,g=0|o[2],y=8191&g,b=g>>>13,v=0|o[3],_=8191&v,w=v>>>13,x=0|o[4],C=8191&x,A=x>>>13,S=0|o[5],E=8191&S,k=S>>>13,T=0|o[6],M=8191&T,L=T>>>13,I=0|o[7],O=8191&I,D=I>>>13,R=0|o[8],N=8191&R,P=R>>>13,F=0|o[9],Z=8191&F,B=F>>>13,U=0|a[0],q=8191&U,z=U>>>13,H=0|a[1],Y=8191&H,G=H>>>13,j=0|a[2],V=8191&j,Q=j>>>13,W=0|a[3],J=8191&W,X=W>>>13,K=0|a[4],$=8191&K,tt=K>>>13,et=0|a[5],it=8191&et,nt=et>>>13,rt=0|a[6],st=8191&rt,ot=rt>>>13,at=0|a[7],lt=8191&at,ct=at>>>13,ht=0|a[8],ut=8191&ht,dt=ht>>>13,pt=0|a[9],ft=8191&pt,mt=pt>>>13;i.negative=t.negative^e.negative,i.length=19;var gt=(c+(n=Math.imul(u,q))|0)+((8191&(r=(r=Math.imul(u,z))+Math.imul(d,q)|0))<<13)|0;c=((s=Math.imul(d,z))+(r>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(f,q),r=(r=Math.imul(f,z))+Math.imul(m,q)|0,s=Math.imul(m,z);var yt=(c+(n=n+Math.imul(u,Y)|0)|0)+((8191&(r=(r=r+Math.imul(u,G)|0)+Math.imul(d,Y)|0))<<13)|0;c=((s=s+Math.imul(d,G)|0)+(r>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(y,q),r=(r=Math.imul(y,z))+Math.imul(b,q)|0,s=Math.imul(b,z),n=n+Math.imul(f,Y)|0,r=(r=r+Math.imul(f,G)|0)+Math.imul(m,Y)|0,s=s+Math.imul(m,G)|0;var bt=(c+(n=n+Math.imul(u,V)|0)|0)+((8191&(r=(r=r+Math.imul(u,Q)|0)+Math.imul(d,V)|0))<<13)|0;c=((s=s+Math.imul(d,Q)|0)+(r>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(_,q),r=(r=Math.imul(_,z))+Math.imul(w,q)|0,s=Math.imul(w,z),n=n+Math.imul(y,Y)|0,r=(r=r+Math.imul(y,G)|0)+Math.imul(b,Y)|0,s=s+Math.imul(b,G)|0,n=n+Math.imul(f,V)|0,r=(r=r+Math.imul(f,Q)|0)+Math.imul(m,V)|0,s=s+Math.imul(m,Q)|0;var vt=(c+(n=n+Math.imul(u,J)|0)|0)+((8191&(r=(r=r+Math.imul(u,X)|0)+Math.imul(d,J)|0))<<13)|0;c=((s=s+Math.imul(d,X)|0)+(r>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(C,q),r=(r=Math.imul(C,z))+Math.imul(A,q)|0,s=Math.imul(A,z),n=n+Math.imul(_,Y)|0,r=(r=r+Math.imul(_,G)|0)+Math.imul(w,Y)|0,s=s+Math.imul(w,G)|0,n=n+Math.imul(y,V)|0,r=(r=r+Math.imul(y,Q)|0)+Math.imul(b,V)|0,s=s+Math.imul(b,Q)|0,n=n+Math.imul(f,J)|0,r=(r=r+Math.imul(f,X)|0)+Math.imul(m,J)|0,s=s+Math.imul(m,X)|0;var _t=(c+(n=n+Math.imul(u,$)|0)|0)+((8191&(r=(r=r+Math.imul(u,tt)|0)+Math.imul(d,$)|0))<<13)|0;c=((s=s+Math.imul(d,tt)|0)+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(E,q),r=(r=Math.imul(E,z))+Math.imul(k,q)|0,s=Math.imul(k,z),n=n+Math.imul(C,Y)|0,r=(r=r+Math.imul(C,G)|0)+Math.imul(A,Y)|0,s=s+Math.imul(A,G)|0,n=n+Math.imul(_,V)|0,r=(r=r+Math.imul(_,Q)|0)+Math.imul(w,V)|0,s=s+Math.imul(w,Q)|0,n=n+Math.imul(y,J)|0,r=(r=r+Math.imul(y,X)|0)+Math.imul(b,J)|0,s=s+Math.imul(b,X)|0,n=n+Math.imul(f,$)|0,r=(r=r+Math.imul(f,tt)|0)+Math.imul(m,$)|0,s=s+Math.imul(m,tt)|0;var wt=(c+(n=n+Math.imul(u,it)|0)|0)+((8191&(r=(r=r+Math.imul(u,nt)|0)+Math.imul(d,it)|0))<<13)|0;c=((s=s+Math.imul(d,nt)|0)+(r>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(M,q),r=(r=Math.imul(M,z))+Math.imul(L,q)|0,s=Math.imul(L,z),n=n+Math.imul(E,Y)|0,r=(r=r+Math.imul(E,G)|0)+Math.imul(k,Y)|0,s=s+Math.imul(k,G)|0,n=n+Math.imul(C,V)|0,r=(r=r+Math.imul(C,Q)|0)+Math.imul(A,V)|0,s=s+Math.imul(A,Q)|0,n=n+Math.imul(_,J)|0,r=(r=r+Math.imul(_,X)|0)+Math.imul(w,J)|0,s=s+Math.imul(w,X)|0,n=n+Math.imul(y,$)|0,r=(r=r+Math.imul(y,tt)|0)+Math.imul(b,$)|0,s=s+Math.imul(b,tt)|0,n=n+Math.imul(f,it)|0,r=(r=r+Math.imul(f,nt)|0)+Math.imul(m,it)|0,s=s+Math.imul(m,nt)|0;var xt=(c+(n=n+Math.imul(u,st)|0)|0)+((8191&(r=(r=r+Math.imul(u,ot)|0)+Math.imul(d,st)|0))<<13)|0;c=((s=s+Math.imul(d,ot)|0)+(r>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(O,q),r=(r=Math.imul(O,z))+Math.imul(D,q)|0,s=Math.imul(D,z),n=n+Math.imul(M,Y)|0,r=(r=r+Math.imul(M,G)|0)+Math.imul(L,Y)|0,s=s+Math.imul(L,G)|0,n=n+Math.imul(E,V)|0,r=(r=r+Math.imul(E,Q)|0)+Math.imul(k,V)|0,s=s+Math.imul(k,Q)|0,n=n+Math.imul(C,J)|0,r=(r=r+Math.imul(C,X)|0)+Math.imul(A,J)|0,s=s+Math.imul(A,X)|0,n=n+Math.imul(_,$)|0,r=(r=r+Math.imul(_,tt)|0)+Math.imul(w,$)|0,s=s+Math.imul(w,tt)|0,n=n+Math.imul(y,it)|0,r=(r=r+Math.imul(y,nt)|0)+Math.imul(b,it)|0,s=s+Math.imul(b,nt)|0,n=n+Math.imul(f,st)|0,r=(r=r+Math.imul(f,ot)|0)+Math.imul(m,st)|0,s=s+Math.imul(m,ot)|0;var Ct=(c+(n=n+Math.imul(u,lt)|0)|0)+((8191&(r=(r=r+Math.imul(u,ct)|0)+Math.imul(d,lt)|0))<<13)|0;c=((s=s+Math.imul(d,ct)|0)+(r>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(N,q),r=(r=Math.imul(N,z))+Math.imul(P,q)|0,s=Math.imul(P,z),n=n+Math.imul(O,Y)|0,r=(r=r+Math.imul(O,G)|0)+Math.imul(D,Y)|0,s=s+Math.imul(D,G)|0,n=n+Math.imul(M,V)|0,r=(r=r+Math.imul(M,Q)|0)+Math.imul(L,V)|0,s=s+Math.imul(L,Q)|0,n=n+Math.imul(E,J)|0,r=(r=r+Math.imul(E,X)|0)+Math.imul(k,J)|0,s=s+Math.imul(k,X)|0,n=n+Math.imul(C,$)|0,r=(r=r+Math.imul(C,tt)|0)+Math.imul(A,$)|0,s=s+Math.imul(A,tt)|0,n=n+Math.imul(_,it)|0,r=(r=r+Math.imul(_,nt)|0)+Math.imul(w,it)|0,s=s+Math.imul(w,nt)|0,n=n+Math.imul(y,st)|0,r=(r=r+Math.imul(y,ot)|0)+Math.imul(b,st)|0,s=s+Math.imul(b,ot)|0,n=n+Math.imul(f,lt)|0,r=(r=r+Math.imul(f,ct)|0)+Math.imul(m,lt)|0,s=s+Math.imul(m,ct)|0;var At=(c+(n=n+Math.imul(u,ut)|0)|0)+((8191&(r=(r=r+Math.imul(u,dt)|0)+Math.imul(d,ut)|0))<<13)|0;c=((s=s+Math.imul(d,dt)|0)+(r>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(Z,q),r=(r=Math.imul(Z,z))+Math.imul(B,q)|0,s=Math.imul(B,z),n=n+Math.imul(N,Y)|0,r=(r=r+Math.imul(N,G)|0)+Math.imul(P,Y)|0,s=s+Math.imul(P,G)|0,n=n+Math.imul(O,V)|0,r=(r=r+Math.imul(O,Q)|0)+Math.imul(D,V)|0,s=s+Math.imul(D,Q)|0,n=n+Math.imul(M,J)|0,r=(r=r+Math.imul(M,X)|0)+Math.imul(L,J)|0,s=s+Math.imul(L,X)|0,n=n+Math.imul(E,$)|0,r=(r=r+Math.imul(E,tt)|0)+Math.imul(k,$)|0,s=s+Math.imul(k,tt)|0,n=n+Math.imul(C,it)|0,r=(r=r+Math.imul(C,nt)|0)+Math.imul(A,it)|0,s=s+Math.imul(A,nt)|0,n=n+Math.imul(_,st)|0,r=(r=r+Math.imul(_,ot)|0)+Math.imul(w,st)|0,s=s+Math.imul(w,ot)|0,n=n+Math.imul(y,lt)|0,r=(r=r+Math.imul(y,ct)|0)+Math.imul(b,lt)|0,s=s+Math.imul(b,ct)|0,n=n+Math.imul(f,ut)|0,r=(r=r+Math.imul(f,dt)|0)+Math.imul(m,ut)|0,s=s+Math.imul(m,dt)|0;var St=(c+(n=n+Math.imul(u,ft)|0)|0)+((8191&(r=(r=r+Math.imul(u,mt)|0)+Math.imul(d,ft)|0))<<13)|0;c=((s=s+Math.imul(d,mt)|0)+(r>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(Z,Y),r=(r=Math.imul(Z,G))+Math.imul(B,Y)|0,s=Math.imul(B,G),n=n+Math.imul(N,V)|0,r=(r=r+Math.imul(N,Q)|0)+Math.imul(P,V)|0,s=s+Math.imul(P,Q)|0,n=n+Math.imul(O,J)|0,r=(r=r+Math.imul(O,X)|0)+Math.imul(D,J)|0,s=s+Math.imul(D,X)|0,n=n+Math.imul(M,$)|0,r=(r=r+Math.imul(M,tt)|0)+Math.imul(L,$)|0,s=s+Math.imul(L,tt)|0,n=n+Math.imul(E,it)|0,r=(r=r+Math.imul(E,nt)|0)+Math.imul(k,it)|0,s=s+Math.imul(k,nt)|0,n=n+Math.imul(C,st)|0,r=(r=r+Math.imul(C,ot)|0)+Math.imul(A,st)|0,s=s+Math.imul(A,ot)|0,n=n+Math.imul(_,lt)|0,r=(r=r+Math.imul(_,ct)|0)+Math.imul(w,lt)|0,s=s+Math.imul(w,ct)|0,n=n+Math.imul(y,ut)|0,r=(r=r+Math.imul(y,dt)|0)+Math.imul(b,ut)|0,s=s+Math.imul(b,dt)|0;var Et=(c+(n=n+Math.imul(f,ft)|0)|0)+((8191&(r=(r=r+Math.imul(f,mt)|0)+Math.imul(m,ft)|0))<<13)|0;c=((s=s+Math.imul(m,mt)|0)+(r>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(Z,V),r=(r=Math.imul(Z,Q))+Math.imul(B,V)|0,s=Math.imul(B,Q),n=n+Math.imul(N,J)|0,r=(r=r+Math.imul(N,X)|0)+Math.imul(P,J)|0,s=s+Math.imul(P,X)|0,n=n+Math.imul(O,$)|0,r=(r=r+Math.imul(O,tt)|0)+Math.imul(D,$)|0,s=s+Math.imul(D,tt)|0,n=n+Math.imul(M,it)|0,r=(r=r+Math.imul(M,nt)|0)+Math.imul(L,it)|0,s=s+Math.imul(L,nt)|0,n=n+Math.imul(E,st)|0,r=(r=r+Math.imul(E,ot)|0)+Math.imul(k,st)|0,s=s+Math.imul(k,ot)|0,n=n+Math.imul(C,lt)|0,r=(r=r+Math.imul(C,ct)|0)+Math.imul(A,lt)|0,s=s+Math.imul(A,ct)|0,n=n+Math.imul(_,ut)|0,r=(r=r+Math.imul(_,dt)|0)+Math.imul(w,ut)|0,s=s+Math.imul(w,dt)|0;var kt=(c+(n=n+Math.imul(y,ft)|0)|0)+((8191&(r=(r=r+Math.imul(y,mt)|0)+Math.imul(b,ft)|0))<<13)|0;c=((s=s+Math.imul(b,mt)|0)+(r>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(Z,J),r=(r=Math.imul(Z,X))+Math.imul(B,J)|0,s=Math.imul(B,X),n=n+Math.imul(N,$)|0,r=(r=r+Math.imul(N,tt)|0)+Math.imul(P,$)|0,s=s+Math.imul(P,tt)|0,n=n+Math.imul(O,it)|0,r=(r=r+Math.imul(O,nt)|0)+Math.imul(D,it)|0,s=s+Math.imul(D,nt)|0,n=n+Math.imul(M,st)|0,r=(r=r+Math.imul(M,ot)|0)+Math.imul(L,st)|0,s=s+Math.imul(L,ot)|0,n=n+Math.imul(E,lt)|0,r=(r=r+Math.imul(E,ct)|0)+Math.imul(k,lt)|0,s=s+Math.imul(k,ct)|0,n=n+Math.imul(C,ut)|0,r=(r=r+Math.imul(C,dt)|0)+Math.imul(A,ut)|0,s=s+Math.imul(A,dt)|0;var Tt=(c+(n=n+Math.imul(_,ft)|0)|0)+((8191&(r=(r=r+Math.imul(_,mt)|0)+Math.imul(w,ft)|0))<<13)|0;c=((s=s+Math.imul(w,mt)|0)+(r>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(Z,$),r=(r=Math.imul(Z,tt))+Math.imul(B,$)|0,s=Math.imul(B,tt),n=n+Math.imul(N,it)|0,r=(r=r+Math.imul(N,nt)|0)+Math.imul(P,it)|0,s=s+Math.imul(P,nt)|0,n=n+Math.imul(O,st)|0,r=(r=r+Math.imul(O,ot)|0)+Math.imul(D,st)|0,s=s+Math.imul(D,ot)|0,n=n+Math.imul(M,lt)|0,r=(r=r+Math.imul(M,ct)|0)+Math.imul(L,lt)|0,s=s+Math.imul(L,ct)|0,n=n+Math.imul(E,ut)|0,r=(r=r+Math.imul(E,dt)|0)+Math.imul(k,ut)|0,s=s+Math.imul(k,dt)|0;var Mt=(c+(n=n+Math.imul(C,ft)|0)|0)+((8191&(r=(r=r+Math.imul(C,mt)|0)+Math.imul(A,ft)|0))<<13)|0;c=((s=s+Math.imul(A,mt)|0)+(r>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(Z,it),r=(r=Math.imul(Z,nt))+Math.imul(B,it)|0,s=Math.imul(B,nt),n=n+Math.imul(N,st)|0,r=(r=r+Math.imul(N,ot)|0)+Math.imul(P,st)|0,s=s+Math.imul(P,ot)|0,n=n+Math.imul(O,lt)|0,r=(r=r+Math.imul(O,ct)|0)+Math.imul(D,lt)|0,s=s+Math.imul(D,ct)|0,n=n+Math.imul(M,ut)|0,r=(r=r+Math.imul(M,dt)|0)+Math.imul(L,ut)|0,s=s+Math.imul(L,dt)|0;var Lt=(c+(n=n+Math.imul(E,ft)|0)|0)+((8191&(r=(r=r+Math.imul(E,mt)|0)+Math.imul(k,ft)|0))<<13)|0;c=((s=s+Math.imul(k,mt)|0)+(r>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,n=Math.imul(Z,st),r=(r=Math.imul(Z,ot))+Math.imul(B,st)|0,s=Math.imul(B,ot),n=n+Math.imul(N,lt)|0,r=(r=r+Math.imul(N,ct)|0)+Math.imul(P,lt)|0,s=s+Math.imul(P,ct)|0,n=n+Math.imul(O,ut)|0,r=(r=r+Math.imul(O,dt)|0)+Math.imul(D,ut)|0,s=s+Math.imul(D,dt)|0;var It=(c+(n=n+Math.imul(M,ft)|0)|0)+((8191&(r=(r=r+Math.imul(M,mt)|0)+Math.imul(L,ft)|0))<<13)|0;c=((s=s+Math.imul(L,mt)|0)+(r>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(Z,lt),r=(r=Math.imul(Z,ct))+Math.imul(B,lt)|0,s=Math.imul(B,ct),n=n+Math.imul(N,ut)|0,r=(r=r+Math.imul(N,dt)|0)+Math.imul(P,ut)|0,s=s+Math.imul(P,dt)|0;var Ot=(c+(n=n+Math.imul(O,ft)|0)|0)+((8191&(r=(r=r+Math.imul(O,mt)|0)+Math.imul(D,ft)|0))<<13)|0;c=((s=s+Math.imul(D,mt)|0)+(r>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(Z,ut),r=(r=Math.imul(Z,dt))+Math.imul(B,ut)|0,s=Math.imul(B,dt);var Dt=(c+(n=n+Math.imul(N,ft)|0)|0)+((8191&(r=(r=r+Math.imul(N,mt)|0)+Math.imul(P,ft)|0))<<13)|0;c=((s=s+Math.imul(P,mt)|0)+(r>>>13)|0)+(Dt>>>26)|0,Dt&=67108863;var Rt=(c+(n=Math.imul(Z,ft))|0)+((8191&(r=(r=Math.imul(Z,mt))+Math.imul(B,ft)|0))<<13)|0;return c=((s=Math.imul(B,mt))+(r>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,l[0]=gt,l[1]=yt,l[2]=bt,l[3]=vt,l[4]=_t,l[5]=wt,l[6]=xt,l[7]=Ct,l[8]=At,l[9]=St,l[10]=Et,l[11]=kt,l[12]=Tt,l[13]=Mt,l[14]=Lt,l[15]=It,l[16]=Ot,l[17]=Dt,l[18]=Rt,0!==c&&(l[19]=c,i.length++),i};function y(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var n=0,r=0,s=0;s>>26)|0)>>>26,o&=67108863}i.words[s]=a,n=o,o=r}return 0!==n?i.words[s]=n:i.length--,i._strip()}function b(t,e,i){return y(t,e,i)}function v(t,e){this.x=t,this.y=e}Math.imul||(g=m),s.prototype.mulTo=function(t,e){var i=this.length+t.length;return 10===this.length&&10===t.length?g(this,t,e):i<63?m(this,t,e):i<1024?y(this,t,e):b(this,t,e)},v.prototype.makeRBT=function(t){for(var e=new Array(t),i=s.prototype._countBits(t)-1,n=0;n>=1;return n},v.prototype.permute=function(t,e,i,n,r,s){for(var o=0;o>>=1)r++;return 1<>>=13),s>>>=13;for(o=2*e;o>=26,i+=s/67108864|0,i+=o>>>26,this.words[r]=67108863&o}return 0!==i&&(this.words[r]=i,this.length++),e?this.ineg():this},s.prototype.muln=function(t){return this.clone().imuln(t)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),i=0;i>>i%26&1;return e}(t);if(0===e.length)return new s(1);for(var i=this,n=0;n=0);var e,i=t%26,r=(t-i)/26,s=67108863>>>26-i<<26-i;if(0!==i){var o=0;for(e=0;e>>26-i}o&&(this.words[e]=o,this.length++)}if(0!==r){for(e=this.length-1;e>=0;e--)this.words[e+r]=this.words[e];for(e=0;e=0),r=e?(e-e%26)/26:0;var s=t%26,o=Math.min((t-s)/26,this.length),a=67108863^67108863>>>s<o)for(this.length-=o,c=0;c=0&&(0!==h||c>=r);c--){var u=0|this.words[c];this.words[c]=h<<26-s|u>>>s,h=u&a}return l&&0!==h&&(l.words[l.length++]=h),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},s.prototype.ishrn=function(t,e,i){return n(0===this.negative),this.iushrn(t,e,i)},s.prototype.shln=function(t){return this.clone().ishln(t)},s.prototype.ushln=function(t){return this.clone().iushln(t)},s.prototype.shrn=function(t){return this.clone().ishrn(t)},s.prototype.ushrn=function(t){return this.clone().iushrn(t)},s.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,i=(t-e)/26;return!(this.length<=i||!(this.words[i]&1<=0);var e=t%26,i=(t-e)/26;return n(0===this.negative,"imaskn works only with positive numbers"),this.length<=i?this:(0!==e&&i++,this.length=Math.min(i,this.length),0!==e&&(this.words[this.length-1]&=67108863^67108863>>>e<=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},s.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(a/67108864|0),this.words[r+i]=67108863&s}for(;r>26,this.words[r+i]=67108863&s;if(0===o)return this._strip();for(n(-1===o),o=0,r=0;r>26,this.words[r]=67108863&s;return this.negative=1,this._strip()},s.prototype._wordDiv=function(t,e){var i,n=this.clone(),r=t,o=0|r.words[r.length-1];0!=(i=26-this._countBits(o))&&(r=r.ushln(i),n.iushln(i),o=0|r.words[r.length-1]);var a,l=n.length-r.length;if("mod"!==e){(a=new s(null)).length=l+1,a.words=new Array(a.length);for(var c=0;c=0;u--){var d=67108864*(0|n.words[r.length+u])+(0|n.words[r.length+u-1]);for(d=Math.min(d/o|0,67108863),n._ishlnsubmul(r,d,u);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(r,1,u),n.isZero()||(n.negative^=1);a&&(a.words[u]=d)}return a&&a._strip(),n._strip(),"div"!==e&&0!==i&&n.iushrn(i),{div:a||null,mod:n}},s.prototype.divmod=function(t,e,i){return n(!t.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(r=a.div.neg()),"div"!==e&&(o=a.mod.neg(),i&&0!==o.negative&&o.iadd(t)),{div:r,mod:o}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(r=a.div.neg()),{div:r,mod:a.mod}):0!=(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(o=a.mod.neg(),i&&0!==o.negative&&o.isub(t)),{div:a.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new s(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new s(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new s(this.modrn(t.words[0]))}:this._wordDiv(t,e);var r,o,a},s.prototype.div=function(t){return this.divmod(t,"div",!1).div},s.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},s.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},s.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var i=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),r=t.andln(1),s=i.cmp(n);return s<0||1===r&&0===s?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},s.prototype.modrn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var i=(1<<26)%t,r=0,s=this.length-1;s>=0;s--)r=(i*r+(0|this.words[s]))%t;return e?-r:r},s.prototype.modn=function(t){return this.modrn(t)},s.prototype.idivn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var i=0,r=this.length-1;r>=0;r--){var s=(0|this.words[r])+67108864*i;this.words[r]=s/t|0,i=s%t}return this._strip(),e?this.ineg():this},s.prototype.divn=function(t){return this.clone().idivn(t)},s.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var r=new s(1),o=new s(0),a=new s(0),l=new s(1),c=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++c;for(var h=i.clone(),u=e.clone();!e.isZero();){for(var d=0,p=1;0==(e.words[0]&p)&&d<26;++d,p<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(r.isOdd()||o.isOdd())&&(r.iadd(h),o.isub(u)),r.iushrn(1),o.iushrn(1);for(var f=0,m=1;0==(i.words[0]&m)&&f<26;++f,m<<=1);if(f>0)for(i.iushrn(f);f-- >0;)(a.isOdd()||l.isOdd())&&(a.iadd(h),l.isub(u)),a.iushrn(1),l.iushrn(1);e.cmp(i)>=0?(e.isub(i),r.isub(a),o.isub(l)):(i.isub(e),a.isub(r),l.isub(o))}return{a:a,b:l,gcd:i.iushln(c)}},s.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var r,o=new s(1),a=new s(0),l=i.clone();e.cmpn(1)>0&&i.cmpn(1)>0;){for(var c=0,h=1;0==(e.words[0]&h)&&c<26;++c,h<<=1);if(c>0)for(e.iushrn(c);c-- >0;)o.isOdd()&&o.iadd(l),o.iushrn(1);for(var u=0,d=1;0==(i.words[0]&d)&&u<26;++u,d<<=1);if(u>0)for(i.iushrn(u);u-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);e.cmp(i)>=0?(e.isub(i),o.isub(a)):(i.isub(e),a.isub(o))}return(r=0===e.cmpn(1)?o:a).cmpn(0)<0&&r.iadd(t),r},s.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),i=t.clone();e.negative=0,i.negative=0;for(var n=0;e.isEven()&&i.isEven();n++)e.iushrn(1),i.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;i.isEven();)i.iushrn(1);var r=e.cmp(i);if(r<0){var s=e;e=i,i=s}else if(0===r||0===i.cmpn(1))break;e.isub(i)}return i.iushln(n)},s.prototype.invm=function(t){return this.egcd(t).a.umod(t)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(t){return this.words[0]&t},s.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,i=(t-e)/26,r=1<>>26,this.words[o]=a&=67108863}return 0!==s&&(this.words[o]=s,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(t){var e,i=t<0;if(0!==this.negative&&!i)return-1;if(0===this.negative&&i)return 1;if(this._strip(),this.length>1)e=1;else{i&&(t=-t),n(t<=67108863,"Number is too big");var r=0|this.words[0];e=r===t?0:rt.length)return 1;if(this.length=0;i--){var n=0|this.words[i],r=0|t.words[i];if(n!==r){nr&&(e=1);break}}return e},s.prototype.gtn=function(t){return 1===this.cmpn(t)},s.prototype.gt=function(t){return 1===this.cmp(t)},s.prototype.gten=function(t){return this.cmpn(t)>=0},s.prototype.gte=function(t){return this.cmp(t)>=0},s.prototype.ltn=function(t){return-1===this.cmpn(t)},s.prototype.lt=function(t){return-1===this.cmp(t)},s.prototype.lten=function(t){return this.cmpn(t)<=0},s.prototype.lte=function(t){return this.cmp(t)<=0},s.prototype.eqn=function(t){return 0===this.cmpn(t)},s.prototype.eq=function(t){return 0===this.cmp(t)},s.red=function(t){return new E(t)},s.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},s.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(t){return this.red=t,this},s.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},s.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},s.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},s.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},s.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},s.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},s.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},s.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},s.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var _={k256:null,p224:null,p192:null,p25519:null};function w(t,e){this.name=t,this.p=new s(e,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function x(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function C(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function A(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(t){if("string"==typeof t){var e=s._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function k(t){E.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}w.prototype._tmp=function(){var t=new s(null);return t.words=new Array(Math.ceil(this.n/13)),t},w.prototype.ireduce=function(t){var e,i=t;do{this.split(i,this.tmp),e=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e0?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},w.prototype.split=function(t,e){t.iushrn(this.n,0,e)},w.prototype.imulK=function(t){return t.imul(this.k)},r(x,w),x.prototype.split=function(t,e){for(var i=4194303,n=Math.min(t.length,9),r=0;r>>22,s=o}t.words[r-10]=s>>>=22,t.length-=0===s&&t.length>10?10:9},x.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i>>=26,t.words[i]=r,e=n}return 0!==e&&(t.words[t.length++]=e),t},s._prime=function(t){if(_[t])return _[t];var e;if("k256"===t)e=new x;else if("p224"===t)e=new C;else if("p192"===t)e=new A;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new S}return _[t]=e,e},E.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},E.prototype._verify2=function(t,e){n(0==(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},E.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(h(t,t.umod(this.m)._forceRed(this)),t)},E.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},E.prototype.add=function(t,e){this._verify2(t,e);var i=t.add(e);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},E.prototype.iadd=function(t,e){this._verify2(t,e);var i=t.iadd(e);return i.cmp(this.m)>=0&&i.isub(this.m),i},E.prototype.sub=function(t,e){this._verify2(t,e);var i=t.sub(e);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},E.prototype.isub=function(t,e){this._verify2(t,e);var i=t.isub(e);return i.cmpn(0)<0&&i.iadd(this.m),i},E.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},E.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},E.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},E.prototype.isqr=function(t){return this.imul(t,t.clone())},E.prototype.sqr=function(t){return this.mul(t,t)},E.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var i=this.m.add(new s(1)).iushrn(2);return this.pow(t,i)}for(var r=this.m.subn(1),o=0;!r.isZero()&&0===r.andln(1);)o++,r.iushrn(1);n(!r.isZero());var a=new s(1).toRed(this),l=a.redNeg(),c=this.m.subn(1).iushrn(1),h=this.m.bitLength();for(h=new s(2*h*h).toRed(this);0!==this.pow(h,c).cmp(l);)h.redIAdd(l);for(var u=this.pow(h,r),d=this.pow(t,r.addn(1).iushrn(1)),p=this.pow(t,r),f=o;0!==p.cmp(a);){for(var m=p,g=0;0!==m.cmp(a);g++)m=m.redSqr();n(g=0;n--){for(var c=e.words[n],h=l-1;h>=0;h--){var u=c>>h&1;r!==i[0]&&(r=this.sqr(r)),0!==u||0!==o?(o<<=1,o|=u,(4==++a||0===n&&0===h)&&(r=this.mul(r,i[o]),a=0,o=0)):a=0}l=26}return r},E.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},E.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},s.mont=function(t){return new k(t)},r(k,E),k.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},k.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},k.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var i=t.imul(e),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),s=r;return r.cmp(this.m)>=0?s=r.isub(this.m):r.cmpn(0)<0&&(s=r.iadd(this.m)),s._forceRed(this)},k.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new s(0)._forceRed(this);var i=t.mul(e),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),o=r;return r.cmp(this.m)>=0?o=r.isub(this.m):r.cmpn(0)<0&&(o=r.iadd(this.m)),o._forceRed(this)},k.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=i.nmd(t),this)},8520:(t,e,i)=>{var n;function r(t){this.rand=t}if(t.exports=function(t){return n||(n=new r(null)),n.generate(t)},t.exports.Rand=r,r.prototype.generate=function(t){return this._rand(t)},r.prototype._rand=function(t){if(this.rand.getBytes)return this.rand.getBytes(t);for(var e=new Uint8Array(t),i=0;i{var n=i(545).Buffer;function r(t){n.isBuffer(t)||(t=n.from(t));for(var e=t.length/4|0,i=new Array(e),r=0;r>>24]^h[f>>>16&255]^u[m>>>8&255]^d[255&g]^e[y++],o=c[f>>>24]^h[m>>>16&255]^u[g>>>8&255]^d[255&p]^e[y++],a=c[m>>>24]^h[g>>>16&255]^u[p>>>8&255]^d[255&f]^e[y++],l=c[g>>>24]^h[p>>>16&255]^u[f>>>8&255]^d[255&m]^e[y++],p=s,f=o,m=a,g=l;return s=(n[p>>>24]<<24|n[f>>>16&255]<<16|n[m>>>8&255]<<8|n[255&g])^e[y++],o=(n[f>>>24]<<24|n[m>>>16&255]<<16|n[g>>>8&255]<<8|n[255&p])^e[y++],a=(n[m>>>24]<<24|n[g>>>16&255]<<16|n[p>>>8&255]<<8|n[255&f])^e[y++],l=(n[g>>>24]<<24|n[p>>>16&255]<<16|n[f>>>8&255]<<8|n[255&m])^e[y++],[s>>>=0,o>>>=0,a>>>=0,l>>>=0]}var a=[0,1,2,4,8,16,32,64,128,27,54],l=function(){for(var t=new Array(256),e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;for(var i=[],n=[],r=[[],[],[],[]],s=[[],[],[],[]],o=0,a=0,l=0;l<256;++l){var c=a^a<<1^a<<2^a<<3^a<<4;i[o]=c=c>>>8^255&c^99,n[c]=o;var h=t[o],u=t[h],d=t[u],p=257*t[c]^16843008*c;r[0][o]=p<<24|p>>>8,r[1][o]=p<<16|p>>>16,r[2][o]=p<<8|p>>>24,r[3][o]=p,s[0][c]=(p=16843009*d^65537*u^257*h^16843008*o)<<24|p>>>8,s[1][c]=p<<16|p>>>16,s[2][c]=p<<8|p>>>24,s[3][c]=p,0===o?o=a=1:(o=h^t[t[t[d^h]]],a^=t[t[a]])}return{SBOX:i,INV_SBOX:n,SUB_MIX:r,INV_SUB_MIX:s}}();function c(t){this._key=r(t),this._reset()}c.blockSize=16,c.keySize=32,c.prototype.blockSize=c.blockSize,c.prototype.keySize=c.keySize,c.prototype._reset=function(){for(var t=this._key,e=t.length,i=e+6,n=4*(i+1),r=[],s=0;s>>24)>>>24]<<24|l.SBOX[o>>>16&255]<<16|l.SBOX[o>>>8&255]<<8|l.SBOX[255&o],o^=a[s/e|0]<<24):e>6&&s%e==4&&(o=l.SBOX[o>>>24]<<24|l.SBOX[o>>>16&255]<<16|l.SBOX[o>>>8&255]<<8|l.SBOX[255&o]),r[s]=r[s-e]^o}for(var c=[],h=0;h>>24]]^l.INV_SUB_MIX[1][l.SBOX[d>>>16&255]]^l.INV_SUB_MIX[2][l.SBOX[d>>>8&255]]^l.INV_SUB_MIX[3][l.SBOX[255&d]]}this._nRounds=i,this._keySchedule=r,this._invKeySchedule=c},c.prototype.encryptBlockRaw=function(t){return o(t=r(t),this._keySchedule,l.SUB_MIX,l.SBOX,this._nRounds)},c.prototype.encryptBlock=function(t){var e=this.encryptBlockRaw(t),i=n.allocUnsafe(16);return i.writeUInt32BE(e[0],0),i.writeUInt32BE(e[1],4),i.writeUInt32BE(e[2],8),i.writeUInt32BE(e[3],12),i},c.prototype.decryptBlock=function(t){var e=(t=r(t))[1];t[1]=t[3],t[3]=e;var i=o(t,this._invKeySchedule,l.INV_SUB_MIX,l.INV_SBOX,this._nRounds),s=n.allocUnsafe(16);return s.writeUInt32BE(i[0],0),s.writeUInt32BE(i[3],4),s.writeUInt32BE(i[2],8),s.writeUInt32BE(i[1],12),s},c.prototype.scrub=function(){s(this._keySchedule),s(this._invKeySchedule),s(this._key)},t.exports.AES=c},5266:(t,e,i)=>{var n=i(830),r=i(545).Buffer,s=i(478),o=i(5457),a=i(2104),l=i(9694),c=i(2305);function h(t,e,i,o){s.call(this);var l=r.alloc(4,0);this._cipher=new n.AES(e);var h=this._cipher.encryptBlock(l);this._ghash=new a(h),i=function(t,e,i){if(12===e.length)return t._finID=r.concat([e,r.from([0,0,0,1])]),r.concat([e,r.from([0,0,0,2])]);var n=new a(i),s=e.length,o=s%16;n.update(e),o&&n.update(r.alloc(o=16-o,0)),n.update(r.alloc(8,0));var l=8*s,h=r.alloc(8);h.writeUIntBE(l,0,8),n.update(h),t._finID=n.state;var u=r.from(t._finID);return c(u),u}(this,i,h),this._prev=r.from(i),this._cache=r.allocUnsafe(0),this._secCache=r.allocUnsafe(0),this._decrypt=o,this._alen=0,this._len=0,this._mode=t,this._authTag=null,this._called=!1}o(h,s),h.prototype._update=function(t){if(!this._called&&this._alen){var e=16-this._alen%16;e<16&&(e=r.alloc(e,0),this._ghash.update(e))}this._called=!0;var i=this._mode.encrypt(this,t);return this._ghash.update(this._decrypt?t:i),this._len+=t.length,i},h.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var t=l(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(t,e){var i=0;t.length!==e.length&&i++;for(var n=Math.min(t.length,e.length),r=0;r{var n=i(1898),r=i(1938),s=i(5415);e.createCipher=e.Cipher=n.createCipher,e.createCipheriv=e.Cipheriv=n.createCipheriv,e.createDecipher=e.Decipher=r.createDecipher,e.createDecipheriv=e.Decipheriv=r.createDecipheriv,e.listCiphers=e.getCiphers=function(){return Object.keys(s)}},1938:(t,e,i)=>{var n=i(5266),r=i(545).Buffer,s=i(7957),o=i(7750),a=i(478),l=i(830),c=i(8386);function h(t,e,i){a.call(this),this._cache=new u,this._last=void 0,this._cipher=new l.AES(e),this._prev=r.from(i),this._mode=t,this._autopadding=!0}function u(){this.cache=r.allocUnsafe(0)}function d(t,e,i){var a=s[t.toLowerCase()];if(!a)throw new TypeError("invalid suite type");if("string"==typeof i&&(i=r.from(i)),"GCM"!==a.mode&&i.length!==a.iv)throw new TypeError("invalid iv length "+i.length);if("string"==typeof e&&(e=r.from(e)),e.length!==a.key/8)throw new TypeError("invalid key length "+e.length);return"stream"===a.type?new o(a.module,e,i,!0):"auth"===a.type?new n(a.module,e,i,!0):new h(a.module,e,i)}i(5457)(h,a),h.prototype._update=function(t){var e,i;this._cache.add(t);for(var n=[];e=this._cache.get(this._autopadding);)i=this._mode.decrypt(this,e),n.push(i);return r.concat(n)},h.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return function(t){var e=t[15];if(e<1||e>16)throw new Error("unable to decrypt data");for(var i=-1;++i16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e}else if(this.cache.length>=16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e;return null},u.prototype.flush=function(){if(this.cache.length)return this.cache},e.createDecipher=function(t,e){var i=s[t.toLowerCase()];if(!i)throw new TypeError("invalid suite type");var n=c(e,!1,i.key,i.iv);return d(t,n.key,n.iv)},e.createDecipheriv=d},1898:(t,e,i)=>{var n=i(7957),r=i(5266),s=i(545).Buffer,o=i(7750),a=i(478),l=i(830),c=i(8386);function h(t,e,i){a.call(this),this._cache=new d,this._cipher=new l.AES(e),this._prev=s.from(i),this._mode=t,this._autopadding=!0}i(5457)(h,a),h.prototype._update=function(t){var e,i;this._cache.add(t);for(var n=[];e=this._cache.get();)i=this._mode.encrypt(this,e),n.push(i);return s.concat(n)};var u=s.alloc(16,16);function d(){this.cache=s.allocUnsafe(0)}function p(t,e,i){var a=n[t.toLowerCase()];if(!a)throw new TypeError("invalid suite type");if("string"==typeof e&&(e=s.from(e)),e.length!==a.key/8)throw new TypeError("invalid key length "+e.length);if("string"==typeof i&&(i=s.from(i)),"GCM"!==a.mode&&i.length!==a.iv)throw new TypeError("invalid iv length "+i.length);return"stream"===a.type?new o(a.module,e,i):"auth"===a.type?new r(a.module,e,i):new h(a.module,e,i)}h.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return t=this._mode.encrypt(this,t),this._cipher.scrub(),t;if(!t.equals(u))throw this._cipher.scrub(),new Error("data not multiple of block length")},h.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this},d.prototype.add=function(t){this.cache=s.concat([this.cache,t])},d.prototype.get=function(){if(this.cache.length>15){var t=this.cache.slice(0,16);return this.cache=this.cache.slice(16),t}return null},d.prototype.flush=function(){for(var t=16-this.cache.length,e=s.allocUnsafe(t),i=-1;++i{var n=i(545).Buffer,r=n.alloc(16,0);function s(t){var e=n.allocUnsafe(16);return e.writeUInt32BE(t[0]>>>0,0),e.writeUInt32BE(t[1]>>>0,4),e.writeUInt32BE(t[2]>>>0,8),e.writeUInt32BE(t[3]>>>0,12),e}function o(t){this.h=t,this.state=n.alloc(16,0),this.cache=n.allocUnsafe(0)}o.prototype.ghash=function(t){for(var e=-1;++e0;e--)n[e]=n[e]>>>1|(1&n[e-1])<<31;n[0]=n[0]>>>1,i&&(n[0]=n[0]^225<<24)}this.state=s(r)},o.prototype.update=function(t){var e;for(this.cache=n.concat([this.cache,t]);this.cache.length>=16;)e=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(e)},o.prototype.final=function(t,e){return this.cache.length&&this.ghash(n.concat([this.cache,r],16)),this.ghash(s([0,t,0,e])),this.state},t.exports=o},2305:t=>{t.exports=function(t){for(var e,i=t.length;i--;){if(255!==(e=t.readUInt8(i))){e++,t.writeUInt8(e,i);break}t.writeUInt8(0,i)}}},2570:(t,e,i)=>{var n=i(9694);e.encrypt=function(t,e){var i=n(e,t._prev);return t._prev=t._cipher.encryptBlock(i),t._prev},e.decrypt=function(t,e){var i=t._prev;t._prev=e;var r=t._cipher.decryptBlock(e);return n(r,i)}},1722:(t,e,i)=>{var n=i(545).Buffer,r=i(9694);function s(t,e,i){var s=e.length,o=r(e,t._cache);return t._cache=t._cache.slice(s),t._prev=n.concat([t._prev,i?e:o]),o}e.encrypt=function(t,e,i){for(var r,o=n.allocUnsafe(0);e.length;){if(0===t._cache.length&&(t._cache=t._cipher.encryptBlock(t._prev),t._prev=n.allocUnsafe(0)),!(t._cache.length<=e.length)){o=n.concat([o,s(t,e,i)]);break}o=n.concat([o,s(t,e.slice(0,r=t._cache.length),i)]),e=e.slice(r)}return o}},3819:(t,e,i)=>{var n=i(545).Buffer;function r(t,e,i){for(var n,r,o=-1,a=0;++o<8;)a+=(128&(r=t._cipher.encryptBlock(t._prev)[0]^(n=e&1<<7-o?128:0)))>>o%8,t._prev=s(t._prev,i?n:r);return a}function s(t,e){var i=t.length,r=-1,s=n.allocUnsafe(t.length);for(t=n.concat([t,n.from([e])]);++r>7;return s}e.encrypt=function(t,e,i){for(var s=e.length,o=n.allocUnsafe(s),a=-1;++a{var n=i(545).Buffer;function r(t,e,i){var r=t._cipher.encryptBlock(t._prev)[0]^e;return t._prev=n.concat([t._prev.slice(1),n.from([i?e:r])]),r}e.encrypt=function(t,e,i){for(var s=e.length,o=n.allocUnsafe(s),a=-1;++a{var n=i(9694),r=i(545).Buffer,s=i(2305);function o(t){var e=t._cipher.encryptBlockRaw(t._prev);return s(t._prev),e}e.encrypt=function(t,e){var i=Math.ceil(e.length/16),s=t._cache.length;t._cache=r.concat([t._cache,r.allocUnsafe(16*i)]);for(var a=0;a{e.encrypt=function(t,e){return t._cipher.encryptBlock(e)},e.decrypt=function(t,e){return t._cipher.decryptBlock(e)}},7957:(t,e,i)=>{var n={ECB:i(3021),CBC:i(2570),CFB:i(1722),CFB8:i(121),CFB1:i(3819),OFB:i(7373),CTR:i(2319),GCM:i(2319)},r=i(5415);for(var s in r)r[s].module=n[r[s].mode];t.exports=r},7373:(t,e,i)=>{var n=i(9694);function r(t){return t._prev=t._cipher.encryptBlock(t._prev),t._prev}e.encrypt=function(t,e){for(;t._cache.length{var n=i(830),r=i(545).Buffer,s=i(478);function o(t,e,i,o){s.call(this),this._cipher=new n.AES(e),this._prev=r.from(i),this._cache=r.allocUnsafe(0),this._secCache=r.allocUnsafe(0),this._decrypt=o,this._mode=t}i(5457)(o,s),o.prototype._update=function(t){return this._mode.encrypt(this,t,this._decrypt)},o.prototype._final=function(){this._cipher.scrub()},t.exports=o},3320:(t,e,i)=>{var n=i(7321),r=i(3079),s=i(7957),o=i(1395),a=i(8386);function l(t,e,i){if(t=t.toLowerCase(),s[t])return r.createCipheriv(t,e,i);if(o[t])return new n({key:e,iv:i,mode:t});throw new TypeError("invalid suite type")}function c(t,e,i){if(t=t.toLowerCase(),s[t])return r.createDecipheriv(t,e,i);if(o[t])return new n({key:e,iv:i,mode:t,decrypt:!0});throw new TypeError("invalid suite type")}e.createCipher=e.Cipher=function(t,e){var i,n;if(t=t.toLowerCase(),s[t])i=s[t].key,n=s[t].iv;else{if(!o[t])throw new TypeError("invalid suite type");i=8*o[t].key,n=o[t].iv}var r=a(e,!1,i,n);return l(t,r.key,r.iv)},e.createCipheriv=e.Cipheriv=l,e.createDecipher=e.Decipher=function(t,e){var i,n;if(t=t.toLowerCase(),s[t])i=s[t].key,n=s[t].iv;else{if(!o[t])throw new TypeError("invalid suite type");i=8*o[t].key,n=o[t].iv}var r=a(e,!1,i,n);return c(t,r.key,r.iv)},e.createDecipheriv=e.Decipheriv=c,e.listCiphers=e.getCiphers=function(){return Object.keys(o).concat(r.getCiphers())}},7321:(t,e,i)=>{var n=i(478),r=i(6504),s=i(5457),o=i(545).Buffer,a={"des-ede3-cbc":r.CBC.instantiate(r.EDE),"des-ede3":r.EDE,"des-ede-cbc":r.CBC.instantiate(r.EDE),"des-ede":r.EDE,"des-cbc":r.CBC.instantiate(r.DES),"des-ecb":r.DES};function l(t){n.call(this);var e,i=t.mode.toLowerCase(),r=a[i];e=t.decrypt?"decrypt":"encrypt";var s=t.key;o.isBuffer(s)||(s=o.from(s)),"des-ede"!==i&&"des-ede-cbc"!==i||(s=o.concat([s,s.slice(0,8)]));var l=t.iv;o.isBuffer(l)||(l=o.from(l)),this._des=r.create({key:s,iv:l,type:e})}a.des=a["des-cbc"],a.des3=a["des-ede3-cbc"],t.exports=l,s(l,n),l.prototype._update=function(t){return o.from(this._des.update(t))},l.prototype._final=function(){return o.from(this._des.final())}},1395:(t,e)=>{e["des-ecb"]={key:8,iv:0},e["des-cbc"]=e.des={key:8,iv:8},e["des-ede3-cbc"]=e.des3={key:24,iv:8},e["des-ede3"]={key:24,iv:0},e["des-ede-cbc"]={key:16,iv:8},e["des-ede"]={key:16,iv:0}},4467:(t,e,i)=>{var n=i(4724),r=i(6716);function s(t){var e,i=t.modulus.byteLength();do{e=new n(r(i))}while(e.cmp(t.modulus)>=0||!e.umod(t.prime1)||!e.umod(t.prime2));return e}function o(t,e){var i=function(t){var e=s(t);return{blinder:e.toRed(n.mont(t.modulus)).redPow(new n(t.publicExponent)).fromRed(),unblinder:e.invm(t.modulus)}}(e),r=e.modulus.byteLength(),o=new n(t).mul(i.blinder).umod(e.modulus),a=o.toRed(n.mont(e.prime1)),l=o.toRed(n.mont(e.prime2)),c=e.coefficient,h=e.prime1,u=e.prime2,d=a.redPow(e.exponent1).fromRed(),p=l.redPow(e.exponent2).fromRed(),f=d.isub(p).imul(c).umod(h).imul(u);return p.iadd(f).imul(i.unblinder).umod(e.modulus).toArrayLike(Buffer,"be",r)}o.getr=s,t.exports=o},3373:(t,e,i)=>{t.exports=i(2063)},6865:(t,e,i)=>{var n=i(9851).Buffer,r=i(4500),s=i(7612),o=i(5457),a=i(6360),l=i(2210),c=i(2063);function h(t){s.Writable.call(this);var e=c[t];if(!e)throw new Error("Unknown message digest");this._hashType=e.hash,this._hash=r(e.hash),this._tag=e.id,this._signType=e.sign}function u(t){s.Writable.call(this);var e=c[t];if(!e)throw new Error("Unknown message digest");this._hash=r(e.hash),this._tag=e.id,this._signType=e.sign}function d(t){return new h(t)}function p(t){return new u(t)}Object.keys(c).forEach(function(t){c[t].id=n.from(c[t].id,"hex"),c[t.toLowerCase()]=c[t]}),o(h,s.Writable),h.prototype._write=function(t,e,i){this._hash.update(t),i()},h.prototype.update=function(t,e){return"string"==typeof t&&(t=n.from(t,e)),this._hash.update(t),this},h.prototype.sign=function(t,e){this.end();var i=this._hash.digest(),n=a(i,t,this._hashType,this._signType,this._tag);return e?n.toString(e):n},o(u,s.Writable),u.prototype._write=function(t,e,i){this._hash.update(t),i()},u.prototype.update=function(t,e){return"string"==typeof t&&(t=n.from(t,e)),this._hash.update(t),this},u.prototype.verify=function(t,e,i){"string"==typeof e&&(e=n.from(e,i)),this.end();var r=this._hash.digest();return l(e,r,t,this._signType,this._tag)},t.exports={Sign:d,Verify:p,createSign:d,createVerify:p}},6360:(t,e,i)=>{var n=i(9851).Buffer,r=i(9452),s=i(4467),o=i(905).ec,a=i(4724),l=i(2291),c=i(2236);function h(t,e,i,s){if((t=n.from(t.toArray())).length0&&i.ishrn(n),i}function d(t,e,i){var s,o;do{for(s=n.alloc(0);8*s.length{var n=i(9851).Buffer,r=i(4724),s=i(905).ec,o=i(2291),a=i(2236);function l(t,e){if(t.cmpn(0)<=0)throw new Error("invalid sig");if(t.cmp(e)>=e)throw new Error("invalid sig")}t.exports=function(t,e,i,c,h){var u=o(i);if("ec"===u.type){if("ecdsa"!==c&&"ecdsa/rsa"!==c)throw new Error("wrong public key type");return function(t,e,i){var n=a[i.data.algorithm.curve.join(".")];if(!n)throw new Error("unknown curve "+i.data.algorithm.curve.join("."));return new s(n).verify(e,t,i.data.subjectPrivateKey.data)}(t,e,u)}if("dsa"===u.type){if("dsa"!==c)throw new Error("wrong public key type");return function(t,e,i){var n=i.data.p,s=i.data.q,a=i.data.g,c=i.data.pub_key,h=o.signature.decode(t,"der"),u=h.s,d=h.r;l(u,s),l(d,s);var p=r.mont(n),f=u.invm(s);return 0===a.toRed(p).redPow(new r(e).mul(f).mod(s)).fromRed().mul(c.toRed(p).redPow(d.mul(f).mod(s)).fromRed()).mod(n).mod(s).cmp(d)}(t,e,u)}if("rsa"!==c&&"ecdsa/rsa"!==c)throw new Error("wrong public key type");e=n.concat([h,e]);for(var d=u.modulus.byteLength(),p=[1],f=0;e.length+p.length+2{var n=i(3833),r=n.Buffer;function s(t,e){for(var i in t)e[i]=t[i]}function o(t,e,i){return r(t,e,i)}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?t.exports=n:(s(n,e),e.Buffer=o),o.prototype=Object.create(r.prototype),s(r,o),o.from=function(t,e,i){if("number"==typeof t)throw new TypeError("Argument must not be a number");return r(t,e,i)},o.alloc=function(t,e,i){if("number"!=typeof t)throw new TypeError("Argument must be a number");var n=r(t);return void 0!==e?"string"==typeof i?n.fill(e,i):n.fill(e):n.fill(0),n},o.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return r(t)},o.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},9694:t=>{t.exports=function(t,e){for(var i=Math.min(t.length,e.length),n=new Buffer(i),r=0;r{"use strict";var n=i(6698),r=i(2390),s="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=l,e.SlowBuffer=function(t){return+t!=t&&(t=0),l.alloc(+t)},e.INSPECT_MAX_BYTES=50;var o=2147483647;function a(t){if(t>o)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,l.prototype),e}function l(t,e,i){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return u(t)}return c(t,e,i)}function c(t,e,i){if("string"==typeof t)return function(t,e){if("string"==typeof e&&""!==e||(e="utf8"),!l.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var i=0|m(t,e),n=a(i),r=n.write(t,e);return r!==i&&(n=n.slice(0,r)),n}(t,e);if(ArrayBuffer.isView(t))return function(t){if(q(t,Uint8Array)){var e=new Uint8Array(t);return p(e.buffer,e.byteOffset,e.byteLength)}return d(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(q(t,ArrayBuffer)||t&&q(t.buffer,ArrayBuffer))return p(t,e,i);if("undefined"!=typeof SharedArrayBuffer&&(q(t,SharedArrayBuffer)||t&&q(t.buffer,SharedArrayBuffer)))return p(t,e,i);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return l.from(n,e,i);var r=function(t){if(l.isBuffer(t)){var e=0|f(t.length),i=a(e);return 0===i.length||t.copy(i,0,0,e),i}return void 0!==t.length?"number"!=typeof t.length||z(t.length)?a(0):d(t):"Buffer"===t.type&&Array.isArray(t.data)?d(t.data):void 0}(t);if(r)return r;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return l.from(t[Symbol.toPrimitive]("string"),e,i);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function h(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function u(t){return h(t),a(t<0?0:0|f(t))}function d(t){for(var e=t.length<0?0:0|f(t.length),i=a(e),n=0;n=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|t}function m(t,e){if(l.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||q(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var i=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===i)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":return Z(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return B(t).length;default:if(r)return n?-1:Z(t).length;e=(""+e).toLowerCase(),r=!0}}function g(t,e,i){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===i||i>this.length)&&(i=this.length),i<=0)return"";if((i>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return L(this,e,i);case"utf8":case"utf-8":return E(this,e,i);case"ascii":return T(this,e,i);case"latin1":case"binary":return M(this,e,i);case"base64":return S(this,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,e,i);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function y(t,e,i){var n=t[e];t[e]=t[i],t[i]=n}function b(t,e,i,n,r){if(0===t.length)return-1;if("string"==typeof i?(n=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),z(i=+i)&&(i=r?0:t.length-1),i<0&&(i=t.length+i),i>=t.length){if(r)return-1;i=t.length-1}else if(i<0){if(!r)return-1;i=0}if("string"==typeof e&&(e=l.from(e,n)),l.isBuffer(e))return 0===e.length?-1:v(t,e,i,n,r);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(t,e,i):Uint8Array.prototype.lastIndexOf.call(t,e,i):v(t,[e],i,n,r);throw new TypeError("val must be string, number or Buffer")}function v(t,e,i,n,r){var s,o=1,a=t.length,l=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;o=2,a/=2,l/=2,i/=2}function c(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(r){var h=-1;for(s=i;sa&&(i=a-l),s=i;s>=0;s--){for(var u=!0,d=0;dr&&(n=r):n=r;var s=e.length;n>s/2&&(n=s/2);for(var o=0;o>8,r.push(i%256),r.push(n);return r}(e,t.length-i),t,i,n)}function S(t,e,i){return n.fromByteArray(0===e&&i===t.length?t:t.slice(e,i))}function E(t,e,i){i=Math.min(t.length,i);for(var n=[],r=e;r239?4:c>223?3:c>191?2:1;if(r+u<=i)switch(u){case 1:c<128&&(h=c);break;case 2:128==(192&(s=t[r+1]))&&(l=(31&c)<<6|63&s)>127&&(h=l);break;case 3:o=t[r+2],128==(192&(s=t[r+1]))&&128==(192&o)&&(l=(15&c)<<12|(63&s)<<6|63&o)>2047&&(l<55296||l>57343)&&(h=l);break;case 4:o=t[r+2],a=t[r+3],128==(192&(s=t[r+1]))&&128==(192&o)&&128==(192&a)&&(l=(15&c)<<18|(63&s)<<12|(63&o)<<6|63&a)>65535&&l<1114112&&(h=l)}null===h?(h=65533,u=1):h>65535&&(n.push((h-=65536)>>>10&1023|55296),h=56320|1023&h),n.push(h),r+=u}return function(t){var e=t.length;if(e<=k)return String.fromCharCode.apply(String,t);for(var i="",n=0;nn.length?l.from(s).copy(n,r):Uint8Array.prototype.set.call(n,s,r);else{if(!l.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(n,r)}r+=s.length}return n},l.byteLength=m,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;ei&&(t+=" ... "),""},s&&(l.prototype[s]=l.prototype.inspect),l.prototype.compare=function(t,e,i,n,r){if(q(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===i&&(i=t?t.length:0),void 0===n&&(n=0),void 0===r&&(r=this.length),e<0||i>t.length||n<0||r>this.length)throw new RangeError("out of range index");if(n>=r&&e>=i)return 0;if(n>=r)return-1;if(e>=i)return 1;if(this===t)return 0;for(var s=(r>>>=0)-(n>>>=0),o=(i>>>=0)-(e>>>=0),a=Math.min(s,o),c=this.slice(n,r),h=t.slice(e,i),u=0;u>>=0,isFinite(i)?(i>>>=0,void 0===n&&(n="utf8")):(n=i,i=void 0)}var r=this.length-e;if((void 0===i||i>r)&&(i=r),t.length>0&&(i<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var s=!1;;)switch(n){case"hex":return _(this,t,e,i);case"utf8":case"utf-8":return w(this,t,e,i);case"ascii":case"latin1":case"binary":return x(this,t,e,i);case"base64":return C(this,t,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,t,e,i);default:if(s)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),s=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var k=4096;function T(t,e,i){var n="";i=Math.min(t.length,i);for(var r=e;rn)&&(i=n);for(var r="",s=e;si)throw new RangeError("Trying to access beyond buffer length")}function D(t,e,i,n,r,s){if(!l.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>r||et.length)throw new RangeError("Index out of range")}function R(t,e,i,n,r,s){if(i+n>t.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function N(t,e,i,n,s){return e=+e,i>>>=0,s||R(t,0,i,4),r.write(t,e,i,n,23,4),i+4}function P(t,e,i,n,s){return e=+e,i>>>=0,s||R(t,0,i,8),r.write(t,e,i,n,52,8),i+8}l.prototype.slice=function(t,e){var i=this.length;(t=~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),(e=void 0===e?i:~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),e>>=0,e>>>=0,i||O(t,e,this.length);for(var n=this[t],r=1,s=0;++s>>=0,e>>>=0,i||O(t,e,this.length);for(var n=this[t+--e],r=1;e>0&&(r*=256);)n+=this[t+--e]*r;return n},l.prototype.readUint8=l.prototype.readUInt8=function(t,e){return t>>>=0,e||O(t,1,this.length),this[t]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(t,e){return t>>>=0,e||O(t,2,this.length),this[t]|this[t+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(t,e){return t>>>=0,e||O(t,2,this.length),this[t]<<8|this[t+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(t,e){return t>>>=0,e||O(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(t,e){return t>>>=0,e||O(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},l.prototype.readIntLE=function(t,e,i){t>>>=0,e>>>=0,i||O(t,e,this.length);for(var n=this[t],r=1,s=0;++s=(r*=128)&&(n-=Math.pow(2,8*e)),n},l.prototype.readIntBE=function(t,e,i){t>>>=0,e>>>=0,i||O(t,e,this.length);for(var n=e,r=1,s=this[t+--n];n>0&&(r*=256);)s+=this[t+--n]*r;return s>=(r*=128)&&(s-=Math.pow(2,8*e)),s},l.prototype.readInt8=function(t,e){return t>>>=0,e||O(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},l.prototype.readInt16LE=function(t,e){t>>>=0,e||O(t,2,this.length);var i=this[t]|this[t+1]<<8;return 32768&i?4294901760|i:i},l.prototype.readInt16BE=function(t,e){t>>>=0,e||O(t,2,this.length);var i=this[t+1]|this[t]<<8;return 32768&i?4294901760|i:i},l.prototype.readInt32LE=function(t,e){return t>>>=0,e||O(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},l.prototype.readInt32BE=function(t,e){return t>>>=0,e||O(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},l.prototype.readFloatLE=function(t,e){return t>>>=0,e||O(t,4,this.length),r.read(this,t,!0,23,4)},l.prototype.readFloatBE=function(t,e){return t>>>=0,e||O(t,4,this.length),r.read(this,t,!1,23,4)},l.prototype.readDoubleLE=function(t,e){return t>>>=0,e||O(t,8,this.length),r.read(this,t,!0,52,8)},l.prototype.readDoubleBE=function(t,e){return t>>>=0,e||O(t,8,this.length),r.read(this,t,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(t,e,i,n){t=+t,e>>>=0,i>>>=0,n||D(this,t,e,i,Math.pow(2,8*i)-1,0);var r=1,s=0;for(this[e]=255&t;++s>>=0,i>>>=0,n||D(this,t,e,i,Math.pow(2,8*i)-1,0);var r=i-1,s=1;for(this[e+r]=255&t;--r>=0&&(s*=256);)this[e+r]=t/s&255;return e+i},l.prototype.writeUint8=l.prototype.writeUInt8=function(t,e,i){return t=+t,e>>>=0,i||D(this,t,e,1,255,0),this[e]=255&t,e+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(t,e,i){return t=+t,e>>>=0,i||D(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(t,e,i){return t=+t,e>>>=0,i||D(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(t,e,i){return t=+t,e>>>=0,i||D(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(t,e,i){return t=+t,e>>>=0,i||D(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},l.prototype.writeIntLE=function(t,e,i,n){if(t=+t,e>>>=0,!n){var r=Math.pow(2,8*i-1);D(this,t,e,i,r-1,-r)}var s=0,o=1,a=0;for(this[e]=255&t;++s>0)-a&255;return e+i},l.prototype.writeIntBE=function(t,e,i,n){if(t=+t,e>>>=0,!n){var r=Math.pow(2,8*i-1);D(this,t,e,i,r-1,-r)}var s=i-1,o=1,a=0;for(this[e+s]=255&t;--s>=0&&(o*=256);)t<0&&0===a&&0!==this[e+s+1]&&(a=1),this[e+s]=(t/o>>0)-a&255;return e+i},l.prototype.writeInt8=function(t,e,i){return t=+t,e>>>=0,i||D(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},l.prototype.writeInt16LE=function(t,e,i){return t=+t,e>>>=0,i||D(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},l.prototype.writeInt16BE=function(t,e,i){return t=+t,e>>>=0,i||D(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},l.prototype.writeInt32LE=function(t,e,i){return t=+t,e>>>=0,i||D(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},l.prototype.writeInt32BE=function(t,e,i){return t=+t,e>>>=0,i||D(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},l.prototype.writeFloatLE=function(t,e,i){return N(this,t,e,!0,i)},l.prototype.writeFloatBE=function(t,e,i){return N(this,t,e,!1,i)},l.prototype.writeDoubleLE=function(t,e,i){return P(this,t,e,!0,i)},l.prototype.writeDoubleBE=function(t,e,i){return P(this,t,e,!1,i)},l.prototype.copy=function(t,e,i,n){if(!l.isBuffer(t))throw new TypeError("argument should be a Buffer");if(i||(i=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e>>=0,i=void 0===i?this.length:i>>>0,t||(t=0),"number"==typeof t)for(s=e;s55295&&i<57344){if(!r){if(i>56319){(e-=3)>-1&&s.push(239,191,189);continue}if(o+1===n){(e-=3)>-1&&s.push(239,191,189);continue}r=i;continue}if(i<56320){(e-=3)>-1&&s.push(239,191,189),r=i;continue}i=65536+(r-55296<<10|i-56320)}else r&&(e-=3)>-1&&s.push(239,191,189);if(r=null,i<128){if((e-=1)<0)break;s.push(i)}else if(i<2048){if((e-=2)<0)break;s.push(i>>6|192,63&i|128)}else if(i<65536){if((e-=3)<0)break;s.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;s.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return s}function B(t){return n.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(F,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function U(t,e,i,n){for(var r=0;r=e.length||r>=t.length);++r)e[r+i]=t[r];return r}function q(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function z(t){return t!=t}var H=function(){for(var t="0123456789abcdef",e=new Array(256),i=0;i<16;++i)for(var n=16*i,r=0;r<16;++r)e[n+r]=t[i]+t[r];return e}()},478:(t,e,i)=>{var n=i(545).Buffer,r=i(7562).Transform,s=i(4706).s;function o(t){r.call(this),this.hashMode="string"==typeof t,this.hashMode?this[t]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}i(5457)(o,r),o.prototype.update=function(t,e,i){"string"==typeof t&&(t=n.from(t,e));var r=this._update(t);return this.hashMode?this:(i&&(r=this._toString(r,i)),r)},o.prototype.setAutoPadding=function(){},o.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},o.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},o.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},o.prototype._transform=function(t,e,i){var n;try{this.hashMode?this._update(t):this.push(this._update(t))}catch(r){n=r}finally{i(n)}},o.prototype._flush=function(t){var e;try{this.push(this.__final())}catch(i){e=i}t(e)},o.prototype._finalOrDigest=function(t){var e=this.__final()||n.alloc(0);return t&&(e=this._toString(e,t,!0)),e},o.prototype._toString=function(t,e,i){if(this._decoder||(this._decoder=new s(e),this._encoding=e),this._encoding!==e)throw new Error("can't switch encodings");var n=this._decoder.write(t);return i&&(n+=this._decoder.end()),n},t.exports=o},1774:function(t){!function(e){"use strict";var i={bytesToHex:function(t){return function(t){return t.map(function(t){return(e=t.toString(16)).length>2?e:Array(2-e.length+1).join("0")+e;var e}).join("")}(t)},hexToBytes:function(t){if(t.length%2==1)throw new Error("hexToBytes can't have a string with an odd number of characters.");return 0===t.indexOf("0x")&&(t=t.slice(2)),t.match(/../g).map(function(t){return parseInt(t,16)})}};t.exports?t.exports=i:e.convertHex=i}(this)},906:function(t){!function(e){"use strict";var i={bytesToString:function(t){return t.map(function(t){return String.fromCharCode(t)}).join("")},stringToBytes:function(t){return t.split("").map(function(t){return t.charCodeAt(0)})}};i.UTF8={bytesToString:function(t){return decodeURIComponent(escape(i.bytesToString(t)))},stringToBytes:function(t){return i.stringToBytes(unescape(encodeURIComponent(t)))}},t.exports?t.exports=i:e.convertString=i}(this)},3513:(t,e,i)=>{var n=i(905),r=i(9680);t.exports=function(t){return new o(t)};var s={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function o(t){this.curveType=s[t],this.curveType||(this.curveType={name:t}),this.curve=new n.ec(this.curveType.name),this.keys=void 0}function a(t,e,i){Array.isArray(t)||(t=t.toArray());var n=new Buffer(t);if(i&&n.length=65&&i<=70?i-55:i>=97&&i<=102?i-87:i-48&15}function l(t,e,i){var n=a(t,i);return i-1>=e&&(n|=a(t,i-1)<<4),n}function c(t,e,i,n){for(var r=0,s=Math.min(t.length,i),o=e;o=49?a-49+10:a>=17?a-17+10:a}return r}s.isBN=function(t){return t instanceof s||null!==t&&"object"==typeof t&&t.constructor.wordSize===s.wordSize&&Array.isArray(t.words)},s.max=function(t,e){return t.cmp(e)>0?t:e},s.min=function(t,e){return t.cmp(e)<0?t:e},s.prototype._init=function(t,e,i){if("number"==typeof t)return this._initNumber(t,e,i);if("object"==typeof t)return this._initArray(t,e,i);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var r=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(r++,this.negative=1),r=0;r-=3)this.words[s]|=(o=t[r]|t[r-1]<<8|t[r-2]<<16)<>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);else if("le"===i)for(r=0,s=0;r>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);return this.strip()},s.prototype._parseHex=function(t,e,i){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n=e;n-=2)r=l(t,e,n)<=18?(s-=18,this.words[o+=1]|=r>>>26):s+=8;else for(n=(t.length-e)%2==0?e+1:e;n=18?(s-=18,this.words[o+=1]|=r>>>26):s+=8;this.strip()},s.prototype._parseBase=function(t,e,i){this.words=[0],this.length=1;for(var n=0,r=1;r<=67108863;r*=e)n++;n--,r=r/e|0;for(var s=t.length-i,o=s%n,a=Math.min(s,s-o)+i,l=0,h=i;h1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?""};var h=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],u=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(t,e,i){i.negative=e.negative^t.negative;var n=t.length+e.length|0;i.length=n,n=n-1|0;var r=0|t.words[0],s=0|e.words[0],o=r*s,a=o/67108864|0;i.words[0]=67108863&o;for(var l=1;l>>26,h=67108863&a,u=Math.min(l,e.length-1),d=Math.max(0,l-t.length+1);d<=u;d++)c+=(o=(r=0|t.words[l-d|0])*(s=0|e.words[d])+h)/67108864|0,h=67108863&o;i.words[l]=0|h,a=0|c}return 0!==a?i.words[l]=0|a:i.length--,i.strip()}s.prototype.toString=function(t,e){var i;if(e=0|e||1,16===(t=t||10)||"hex"===t){i="";for(var r=0,s=0,o=0;o>>24-r&16777215)||o!==this.length-1?h[6-l.length]+l+i:l+i,(r+=2)>=26&&(r-=26,o--)}for(0!==s&&(i=s.toString(16)+i);i.length%e!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(t===(0|t)&&t>=2&&t<=36){var c=u[t],p=d[t];i="";var f=this.clone();for(f.negative=0;!f.isZero();){var m=f.modn(p).toString(t);i=(f=f.idivn(p)).isZero()?m+i:h[c-m.length]+m+i}for(this.isZero()&&(i="0"+i);i.length%e!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}n(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(t,e){return n(void 0!==o),this.toArrayLike(o,t,e)},s.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},s.prototype.toArrayLike=function(t,e,i){var r=this.byteLength(),s=i||Math.max(1,r);n(r<=s,"byte array longer than desired length"),n(s>0,"Requested array length <= 0"),this.strip();var o,a,l="le"===e,c=new t(s),h=this.clone();if(l){for(a=0;!h.isZero();a++)o=h.andln(255),h.iushrn(8),c[a]=o;for(;a=4096&&(i+=13,e>>>=13),e>=64&&(i+=7,e>>>=7),e>=8&&(i+=4,e>>>=4),e>=2&&(i+=2,e>>>=2),i+e},s.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,i=0;return 0==(8191&e)&&(i+=13,e>>>=13),0==(127&e)&&(i+=7,e>>>=7),0==(15&e)&&(i+=4,e>>>=4),0==(3&e)&&(i+=2,e>>>=2),0==(1&e)&&i++,i},s.prototype.bitLength=function(){var t=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+t},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},s.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},s.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var i=0;it.length?this.clone().iand(t):t.clone().iand(this)},s.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},s.prototype.iuxor=function(t){var e,i;this.length>t.length?(e=this,i=t):(e=t,i=this);for(var n=0;nt.length?this.clone().ixor(t):t.clone().ixor(this)},s.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},s.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),i=t%26;this._expand(e),i>0&&e--;for(var r=0;r0&&(this.words[r]=~this.words[r]&67108863>>26-i),this.strip()},s.prototype.notn=function(t){return this.clone().inotn(t)},s.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var i=t/26|0,r=t%26;return this._expand(i+1),this.words[i]=e?this.words[i]|1<t.length?(i=this,n=t):(i=t,n=this);for(var r=0,s=0;s>>26;for(;0!==r&&s>>26;if(this.length=i.length,0!==r)this.words[this.length]=r,this.length++;else if(i!==this)for(;st.length?this.clone().iadd(t):t.clone().iadd(this)},s.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,n,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(i=this,n=t):(i=t,n=this);for(var s=0,o=0;o>26,this.words[o]=67108863&e;for(;0!==s&&o>26,this.words[o]=67108863&e;if(0===s&&o>>13,p=0|o[1],f=8191&p,m=p>>>13,g=0|o[2],y=8191&g,b=g>>>13,v=0|o[3],_=8191&v,w=v>>>13,x=0|o[4],C=8191&x,A=x>>>13,S=0|o[5],E=8191&S,k=S>>>13,T=0|o[6],M=8191&T,L=T>>>13,I=0|o[7],O=8191&I,D=I>>>13,R=0|o[8],N=8191&R,P=R>>>13,F=0|o[9],Z=8191&F,B=F>>>13,U=0|a[0],q=8191&U,z=U>>>13,H=0|a[1],Y=8191&H,G=H>>>13,j=0|a[2],V=8191&j,Q=j>>>13,W=0|a[3],J=8191&W,X=W>>>13,K=0|a[4],$=8191&K,tt=K>>>13,et=0|a[5],it=8191&et,nt=et>>>13,rt=0|a[6],st=8191&rt,ot=rt>>>13,at=0|a[7],lt=8191&at,ct=at>>>13,ht=0|a[8],ut=8191&ht,dt=ht>>>13,pt=0|a[9],ft=8191&pt,mt=pt>>>13;i.negative=t.negative^e.negative,i.length=19;var gt=(c+(n=Math.imul(u,q))|0)+((8191&(r=(r=Math.imul(u,z))+Math.imul(d,q)|0))<<13)|0;c=((s=Math.imul(d,z))+(r>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(f,q),r=(r=Math.imul(f,z))+Math.imul(m,q)|0,s=Math.imul(m,z);var yt=(c+(n=n+Math.imul(u,Y)|0)|0)+((8191&(r=(r=r+Math.imul(u,G)|0)+Math.imul(d,Y)|0))<<13)|0;c=((s=s+Math.imul(d,G)|0)+(r>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(y,q),r=(r=Math.imul(y,z))+Math.imul(b,q)|0,s=Math.imul(b,z),n=n+Math.imul(f,Y)|0,r=(r=r+Math.imul(f,G)|0)+Math.imul(m,Y)|0,s=s+Math.imul(m,G)|0;var bt=(c+(n=n+Math.imul(u,V)|0)|0)+((8191&(r=(r=r+Math.imul(u,Q)|0)+Math.imul(d,V)|0))<<13)|0;c=((s=s+Math.imul(d,Q)|0)+(r>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(_,q),r=(r=Math.imul(_,z))+Math.imul(w,q)|0,s=Math.imul(w,z),n=n+Math.imul(y,Y)|0,r=(r=r+Math.imul(y,G)|0)+Math.imul(b,Y)|0,s=s+Math.imul(b,G)|0,n=n+Math.imul(f,V)|0,r=(r=r+Math.imul(f,Q)|0)+Math.imul(m,V)|0,s=s+Math.imul(m,Q)|0;var vt=(c+(n=n+Math.imul(u,J)|0)|0)+((8191&(r=(r=r+Math.imul(u,X)|0)+Math.imul(d,J)|0))<<13)|0;c=((s=s+Math.imul(d,X)|0)+(r>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(C,q),r=(r=Math.imul(C,z))+Math.imul(A,q)|0,s=Math.imul(A,z),n=n+Math.imul(_,Y)|0,r=(r=r+Math.imul(_,G)|0)+Math.imul(w,Y)|0,s=s+Math.imul(w,G)|0,n=n+Math.imul(y,V)|0,r=(r=r+Math.imul(y,Q)|0)+Math.imul(b,V)|0,s=s+Math.imul(b,Q)|0,n=n+Math.imul(f,J)|0,r=(r=r+Math.imul(f,X)|0)+Math.imul(m,J)|0,s=s+Math.imul(m,X)|0;var _t=(c+(n=n+Math.imul(u,$)|0)|0)+((8191&(r=(r=r+Math.imul(u,tt)|0)+Math.imul(d,$)|0))<<13)|0;c=((s=s+Math.imul(d,tt)|0)+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(E,q),r=(r=Math.imul(E,z))+Math.imul(k,q)|0,s=Math.imul(k,z),n=n+Math.imul(C,Y)|0,r=(r=r+Math.imul(C,G)|0)+Math.imul(A,Y)|0,s=s+Math.imul(A,G)|0,n=n+Math.imul(_,V)|0,r=(r=r+Math.imul(_,Q)|0)+Math.imul(w,V)|0,s=s+Math.imul(w,Q)|0,n=n+Math.imul(y,J)|0,r=(r=r+Math.imul(y,X)|0)+Math.imul(b,J)|0,s=s+Math.imul(b,X)|0,n=n+Math.imul(f,$)|0,r=(r=r+Math.imul(f,tt)|0)+Math.imul(m,$)|0,s=s+Math.imul(m,tt)|0;var wt=(c+(n=n+Math.imul(u,it)|0)|0)+((8191&(r=(r=r+Math.imul(u,nt)|0)+Math.imul(d,it)|0))<<13)|0;c=((s=s+Math.imul(d,nt)|0)+(r>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(M,q),r=(r=Math.imul(M,z))+Math.imul(L,q)|0,s=Math.imul(L,z),n=n+Math.imul(E,Y)|0,r=(r=r+Math.imul(E,G)|0)+Math.imul(k,Y)|0,s=s+Math.imul(k,G)|0,n=n+Math.imul(C,V)|0,r=(r=r+Math.imul(C,Q)|0)+Math.imul(A,V)|0,s=s+Math.imul(A,Q)|0,n=n+Math.imul(_,J)|0,r=(r=r+Math.imul(_,X)|0)+Math.imul(w,J)|0,s=s+Math.imul(w,X)|0,n=n+Math.imul(y,$)|0,r=(r=r+Math.imul(y,tt)|0)+Math.imul(b,$)|0,s=s+Math.imul(b,tt)|0,n=n+Math.imul(f,it)|0,r=(r=r+Math.imul(f,nt)|0)+Math.imul(m,it)|0,s=s+Math.imul(m,nt)|0;var xt=(c+(n=n+Math.imul(u,st)|0)|0)+((8191&(r=(r=r+Math.imul(u,ot)|0)+Math.imul(d,st)|0))<<13)|0;c=((s=s+Math.imul(d,ot)|0)+(r>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(O,q),r=(r=Math.imul(O,z))+Math.imul(D,q)|0,s=Math.imul(D,z),n=n+Math.imul(M,Y)|0,r=(r=r+Math.imul(M,G)|0)+Math.imul(L,Y)|0,s=s+Math.imul(L,G)|0,n=n+Math.imul(E,V)|0,r=(r=r+Math.imul(E,Q)|0)+Math.imul(k,V)|0,s=s+Math.imul(k,Q)|0,n=n+Math.imul(C,J)|0,r=(r=r+Math.imul(C,X)|0)+Math.imul(A,J)|0,s=s+Math.imul(A,X)|0,n=n+Math.imul(_,$)|0,r=(r=r+Math.imul(_,tt)|0)+Math.imul(w,$)|0,s=s+Math.imul(w,tt)|0,n=n+Math.imul(y,it)|0,r=(r=r+Math.imul(y,nt)|0)+Math.imul(b,it)|0,s=s+Math.imul(b,nt)|0,n=n+Math.imul(f,st)|0,r=(r=r+Math.imul(f,ot)|0)+Math.imul(m,st)|0,s=s+Math.imul(m,ot)|0;var Ct=(c+(n=n+Math.imul(u,lt)|0)|0)+((8191&(r=(r=r+Math.imul(u,ct)|0)+Math.imul(d,lt)|0))<<13)|0;c=((s=s+Math.imul(d,ct)|0)+(r>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(N,q),r=(r=Math.imul(N,z))+Math.imul(P,q)|0,s=Math.imul(P,z),n=n+Math.imul(O,Y)|0,r=(r=r+Math.imul(O,G)|0)+Math.imul(D,Y)|0,s=s+Math.imul(D,G)|0,n=n+Math.imul(M,V)|0,r=(r=r+Math.imul(M,Q)|0)+Math.imul(L,V)|0,s=s+Math.imul(L,Q)|0,n=n+Math.imul(E,J)|0,r=(r=r+Math.imul(E,X)|0)+Math.imul(k,J)|0,s=s+Math.imul(k,X)|0,n=n+Math.imul(C,$)|0,r=(r=r+Math.imul(C,tt)|0)+Math.imul(A,$)|0,s=s+Math.imul(A,tt)|0,n=n+Math.imul(_,it)|0,r=(r=r+Math.imul(_,nt)|0)+Math.imul(w,it)|0,s=s+Math.imul(w,nt)|0,n=n+Math.imul(y,st)|0,r=(r=r+Math.imul(y,ot)|0)+Math.imul(b,st)|0,s=s+Math.imul(b,ot)|0,n=n+Math.imul(f,lt)|0,r=(r=r+Math.imul(f,ct)|0)+Math.imul(m,lt)|0,s=s+Math.imul(m,ct)|0;var At=(c+(n=n+Math.imul(u,ut)|0)|0)+((8191&(r=(r=r+Math.imul(u,dt)|0)+Math.imul(d,ut)|0))<<13)|0;c=((s=s+Math.imul(d,dt)|0)+(r>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(Z,q),r=(r=Math.imul(Z,z))+Math.imul(B,q)|0,s=Math.imul(B,z),n=n+Math.imul(N,Y)|0,r=(r=r+Math.imul(N,G)|0)+Math.imul(P,Y)|0,s=s+Math.imul(P,G)|0,n=n+Math.imul(O,V)|0,r=(r=r+Math.imul(O,Q)|0)+Math.imul(D,V)|0,s=s+Math.imul(D,Q)|0,n=n+Math.imul(M,J)|0,r=(r=r+Math.imul(M,X)|0)+Math.imul(L,J)|0,s=s+Math.imul(L,X)|0,n=n+Math.imul(E,$)|0,r=(r=r+Math.imul(E,tt)|0)+Math.imul(k,$)|0,s=s+Math.imul(k,tt)|0,n=n+Math.imul(C,it)|0,r=(r=r+Math.imul(C,nt)|0)+Math.imul(A,it)|0,s=s+Math.imul(A,nt)|0,n=n+Math.imul(_,st)|0,r=(r=r+Math.imul(_,ot)|0)+Math.imul(w,st)|0,s=s+Math.imul(w,ot)|0,n=n+Math.imul(y,lt)|0,r=(r=r+Math.imul(y,ct)|0)+Math.imul(b,lt)|0,s=s+Math.imul(b,ct)|0,n=n+Math.imul(f,ut)|0,r=(r=r+Math.imul(f,dt)|0)+Math.imul(m,ut)|0,s=s+Math.imul(m,dt)|0;var St=(c+(n=n+Math.imul(u,ft)|0)|0)+((8191&(r=(r=r+Math.imul(u,mt)|0)+Math.imul(d,ft)|0))<<13)|0;c=((s=s+Math.imul(d,mt)|0)+(r>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(Z,Y),r=(r=Math.imul(Z,G))+Math.imul(B,Y)|0,s=Math.imul(B,G),n=n+Math.imul(N,V)|0,r=(r=r+Math.imul(N,Q)|0)+Math.imul(P,V)|0,s=s+Math.imul(P,Q)|0,n=n+Math.imul(O,J)|0,r=(r=r+Math.imul(O,X)|0)+Math.imul(D,J)|0,s=s+Math.imul(D,X)|0,n=n+Math.imul(M,$)|0,r=(r=r+Math.imul(M,tt)|0)+Math.imul(L,$)|0,s=s+Math.imul(L,tt)|0,n=n+Math.imul(E,it)|0,r=(r=r+Math.imul(E,nt)|0)+Math.imul(k,it)|0,s=s+Math.imul(k,nt)|0,n=n+Math.imul(C,st)|0,r=(r=r+Math.imul(C,ot)|0)+Math.imul(A,st)|0,s=s+Math.imul(A,ot)|0,n=n+Math.imul(_,lt)|0,r=(r=r+Math.imul(_,ct)|0)+Math.imul(w,lt)|0,s=s+Math.imul(w,ct)|0,n=n+Math.imul(y,ut)|0,r=(r=r+Math.imul(y,dt)|0)+Math.imul(b,ut)|0,s=s+Math.imul(b,dt)|0;var Et=(c+(n=n+Math.imul(f,ft)|0)|0)+((8191&(r=(r=r+Math.imul(f,mt)|0)+Math.imul(m,ft)|0))<<13)|0;c=((s=s+Math.imul(m,mt)|0)+(r>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(Z,V),r=(r=Math.imul(Z,Q))+Math.imul(B,V)|0,s=Math.imul(B,Q),n=n+Math.imul(N,J)|0,r=(r=r+Math.imul(N,X)|0)+Math.imul(P,J)|0,s=s+Math.imul(P,X)|0,n=n+Math.imul(O,$)|0,r=(r=r+Math.imul(O,tt)|0)+Math.imul(D,$)|0,s=s+Math.imul(D,tt)|0,n=n+Math.imul(M,it)|0,r=(r=r+Math.imul(M,nt)|0)+Math.imul(L,it)|0,s=s+Math.imul(L,nt)|0,n=n+Math.imul(E,st)|0,r=(r=r+Math.imul(E,ot)|0)+Math.imul(k,st)|0,s=s+Math.imul(k,ot)|0,n=n+Math.imul(C,lt)|0,r=(r=r+Math.imul(C,ct)|0)+Math.imul(A,lt)|0,s=s+Math.imul(A,ct)|0,n=n+Math.imul(_,ut)|0,r=(r=r+Math.imul(_,dt)|0)+Math.imul(w,ut)|0,s=s+Math.imul(w,dt)|0;var kt=(c+(n=n+Math.imul(y,ft)|0)|0)+((8191&(r=(r=r+Math.imul(y,mt)|0)+Math.imul(b,ft)|0))<<13)|0;c=((s=s+Math.imul(b,mt)|0)+(r>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(Z,J),r=(r=Math.imul(Z,X))+Math.imul(B,J)|0,s=Math.imul(B,X),n=n+Math.imul(N,$)|0,r=(r=r+Math.imul(N,tt)|0)+Math.imul(P,$)|0,s=s+Math.imul(P,tt)|0,n=n+Math.imul(O,it)|0,r=(r=r+Math.imul(O,nt)|0)+Math.imul(D,it)|0,s=s+Math.imul(D,nt)|0,n=n+Math.imul(M,st)|0,r=(r=r+Math.imul(M,ot)|0)+Math.imul(L,st)|0,s=s+Math.imul(L,ot)|0,n=n+Math.imul(E,lt)|0,r=(r=r+Math.imul(E,ct)|0)+Math.imul(k,lt)|0,s=s+Math.imul(k,ct)|0,n=n+Math.imul(C,ut)|0,r=(r=r+Math.imul(C,dt)|0)+Math.imul(A,ut)|0,s=s+Math.imul(A,dt)|0;var Tt=(c+(n=n+Math.imul(_,ft)|0)|0)+((8191&(r=(r=r+Math.imul(_,mt)|0)+Math.imul(w,ft)|0))<<13)|0;c=((s=s+Math.imul(w,mt)|0)+(r>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(Z,$),r=(r=Math.imul(Z,tt))+Math.imul(B,$)|0,s=Math.imul(B,tt),n=n+Math.imul(N,it)|0,r=(r=r+Math.imul(N,nt)|0)+Math.imul(P,it)|0,s=s+Math.imul(P,nt)|0,n=n+Math.imul(O,st)|0,r=(r=r+Math.imul(O,ot)|0)+Math.imul(D,st)|0,s=s+Math.imul(D,ot)|0,n=n+Math.imul(M,lt)|0,r=(r=r+Math.imul(M,ct)|0)+Math.imul(L,lt)|0,s=s+Math.imul(L,ct)|0,n=n+Math.imul(E,ut)|0,r=(r=r+Math.imul(E,dt)|0)+Math.imul(k,ut)|0,s=s+Math.imul(k,dt)|0;var Mt=(c+(n=n+Math.imul(C,ft)|0)|0)+((8191&(r=(r=r+Math.imul(C,mt)|0)+Math.imul(A,ft)|0))<<13)|0;c=((s=s+Math.imul(A,mt)|0)+(r>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(Z,it),r=(r=Math.imul(Z,nt))+Math.imul(B,it)|0,s=Math.imul(B,nt),n=n+Math.imul(N,st)|0,r=(r=r+Math.imul(N,ot)|0)+Math.imul(P,st)|0,s=s+Math.imul(P,ot)|0,n=n+Math.imul(O,lt)|0,r=(r=r+Math.imul(O,ct)|0)+Math.imul(D,lt)|0,s=s+Math.imul(D,ct)|0,n=n+Math.imul(M,ut)|0,r=(r=r+Math.imul(M,dt)|0)+Math.imul(L,ut)|0,s=s+Math.imul(L,dt)|0;var Lt=(c+(n=n+Math.imul(E,ft)|0)|0)+((8191&(r=(r=r+Math.imul(E,mt)|0)+Math.imul(k,ft)|0))<<13)|0;c=((s=s+Math.imul(k,mt)|0)+(r>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,n=Math.imul(Z,st),r=(r=Math.imul(Z,ot))+Math.imul(B,st)|0,s=Math.imul(B,ot),n=n+Math.imul(N,lt)|0,r=(r=r+Math.imul(N,ct)|0)+Math.imul(P,lt)|0,s=s+Math.imul(P,ct)|0,n=n+Math.imul(O,ut)|0,r=(r=r+Math.imul(O,dt)|0)+Math.imul(D,ut)|0,s=s+Math.imul(D,dt)|0;var It=(c+(n=n+Math.imul(M,ft)|0)|0)+((8191&(r=(r=r+Math.imul(M,mt)|0)+Math.imul(L,ft)|0))<<13)|0;c=((s=s+Math.imul(L,mt)|0)+(r>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(Z,lt),r=(r=Math.imul(Z,ct))+Math.imul(B,lt)|0,s=Math.imul(B,ct),n=n+Math.imul(N,ut)|0,r=(r=r+Math.imul(N,dt)|0)+Math.imul(P,ut)|0,s=s+Math.imul(P,dt)|0;var Ot=(c+(n=n+Math.imul(O,ft)|0)|0)+((8191&(r=(r=r+Math.imul(O,mt)|0)+Math.imul(D,ft)|0))<<13)|0;c=((s=s+Math.imul(D,mt)|0)+(r>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(Z,ut),r=(r=Math.imul(Z,dt))+Math.imul(B,ut)|0,s=Math.imul(B,dt);var Dt=(c+(n=n+Math.imul(N,ft)|0)|0)+((8191&(r=(r=r+Math.imul(N,mt)|0)+Math.imul(P,ft)|0))<<13)|0;c=((s=s+Math.imul(P,mt)|0)+(r>>>13)|0)+(Dt>>>26)|0,Dt&=67108863;var Rt=(c+(n=Math.imul(Z,ft))|0)+((8191&(r=(r=Math.imul(Z,mt))+Math.imul(B,ft)|0))<<13)|0;return c=((s=Math.imul(B,mt))+(r>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,l[0]=gt,l[1]=yt,l[2]=bt,l[3]=vt,l[4]=_t,l[5]=wt,l[6]=xt,l[7]=Ct,l[8]=At,l[9]=St,l[10]=Et,l[11]=kt,l[12]=Tt,l[13]=Mt,l[14]=Lt,l[15]=It,l[16]=Ot,l[17]=Dt,l[18]=Rt,0!==c&&(l[19]=c,i.length++),i};function m(t,e,i){return(new g).mulp(t,e,i)}function g(t,e){this.x=t,this.y=e}Math.imul||(f=p),s.prototype.mulTo=function(t,e){var i=this.length+t.length;return 10===this.length&&10===t.length?f(this,t,e):i<63?p(this,t,e):i<1024?function(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var n=0,r=0,s=0;s>>26)|0)>>>26,o&=67108863}i.words[s]=a,n=o,o=r}return 0!==n?i.words[s]=n:i.length--,i.strip()}(this,t,e):m(this,t,e)},g.prototype.makeRBT=function(t){for(var e=new Array(t),i=s.prototype._countBits(t)-1,n=0;n>=1;return n},g.prototype.permute=function(t,e,i,n,r,s){for(var o=0;o>>=1)r++;return 1<>>=13),s>>>=13;for(o=2*e;o>=26,e+=r/67108864|0,e+=s>>>26,this.words[i]=67108863&s}return 0!==e&&(this.words[i]=e,this.length++),this},s.prototype.muln=function(t){return this.clone().imuln(t)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),i=0;i>>n}return e}(t);if(0===e.length)return new s(1);for(var i=this,n=0;n=0);var e,i=t%26,r=(t-i)/26,s=67108863>>>26-i<<26-i;if(0!==i){var o=0;for(e=0;e>>26-i}o&&(this.words[e]=o,this.length++)}if(0!==r){for(e=this.length-1;e>=0;e--)this.words[e+r]=this.words[e];for(e=0;e=0),r=e?(e-e%26)/26:0;var s=t%26,o=Math.min((t-s)/26,this.length),a=67108863^67108863>>>s<o)for(this.length-=o,c=0;c=0&&(0!==h||c>=r);c--){var u=0|this.words[c];this.words[c]=h<<26-s|u>>>s,h=u&a}return l&&0!==h&&(l.words[l.length++]=h),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(t,e,i){return n(0===this.negative),this.iushrn(t,e,i)},s.prototype.shln=function(t){return this.clone().ishln(t)},s.prototype.ushln=function(t){return this.clone().iushln(t)},s.prototype.shrn=function(t){return this.clone().ishrn(t)},s.prototype.ushrn=function(t){return this.clone().iushrn(t)},s.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,i=(t-e)/26;return!(this.length<=i||!(this.words[i]&1<=0);var e=t%26,i=(t-e)/26;return n(0===this.negative,"imaskn works only with positive numbers"),this.length<=i?this:(0!==e&&i++,this.length=Math.min(i,this.length),0!==e&&(this.words[this.length-1]&=67108863^67108863>>>e<=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},s.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(a/67108864|0),this.words[r+i]=67108863&s}for(;r>26,this.words[r+i]=67108863&s;if(0===o)return this.strip();for(n(-1===o),o=0,r=0;r>26,this.words[r]=67108863&s;return this.negative=1,this.strip()},s.prototype._wordDiv=function(t,e){var i,n=this.clone(),r=t,o=0|r.words[r.length-1];0!=(i=26-this._countBits(o))&&(r=r.ushln(i),n.iushln(i),o=0|r.words[r.length-1]);var a,l=n.length-r.length;if("mod"!==e){(a=new s(null)).length=l+1,a.words=new Array(a.length);for(var c=0;c=0;u--){var d=67108864*(0|n.words[r.length+u])+(0|n.words[r.length+u-1]);for(d=Math.min(d/o|0,67108863),n._ishlnsubmul(r,d,u);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(r,1,u),n.isZero()||(n.negative^=1);a&&(a.words[u]=d)}return a&&a.strip(),n.strip(),"div"!==e&&0!==i&&n.iushrn(i),{div:a||null,mod:n}},s.prototype.divmod=function(t,e,i){return n(!t.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(r=a.div.neg()),"div"!==e&&(o=a.mod.neg(),i&&0!==o.negative&&o.iadd(t)),{div:r,mod:o}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(r=a.div.neg()),{div:r,mod:a.mod}):0!=(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(o=a.mod.neg(),i&&0!==o.negative&&o.isub(t)),{div:a.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new s(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new s(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new s(this.modn(t.words[0]))}:this._wordDiv(t,e);var r,o,a},s.prototype.div=function(t){return this.divmod(t,"div",!1).div},s.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},s.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},s.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var i=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),r=t.andln(1),s=i.cmp(n);return s<0||1===r&&0===s?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},s.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,i=0,r=this.length-1;r>=0;r--)i=(e*i+(0|this.words[r]))%t;return i},s.prototype.idivn=function(t){n(t<=67108863);for(var e=0,i=this.length-1;i>=0;i--){var r=(0|this.words[i])+67108864*e;this.words[i]=r/t|0,e=r%t}return this.strip()},s.prototype.divn=function(t){return this.clone().idivn(t)},s.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var r=new s(1),o=new s(0),a=new s(0),l=new s(1),c=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++c;for(var h=i.clone(),u=e.clone();!e.isZero();){for(var d=0,p=1;0==(e.words[0]&p)&&d<26;++d,p<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(r.isOdd()||o.isOdd())&&(r.iadd(h),o.isub(u)),r.iushrn(1),o.iushrn(1);for(var f=0,m=1;0==(i.words[0]&m)&&f<26;++f,m<<=1);if(f>0)for(i.iushrn(f);f-- >0;)(a.isOdd()||l.isOdd())&&(a.iadd(h),l.isub(u)),a.iushrn(1),l.iushrn(1);e.cmp(i)>=0?(e.isub(i),r.isub(a),o.isub(l)):(i.isub(e),a.isub(r),l.isub(o))}return{a:a,b:l,gcd:i.iushln(c)}},s.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var r,o=new s(1),a=new s(0),l=i.clone();e.cmpn(1)>0&&i.cmpn(1)>0;){for(var c=0,h=1;0==(e.words[0]&h)&&c<26;++c,h<<=1);if(c>0)for(e.iushrn(c);c-- >0;)o.isOdd()&&o.iadd(l),o.iushrn(1);for(var u=0,d=1;0==(i.words[0]&d)&&u<26;++u,d<<=1);if(u>0)for(i.iushrn(u);u-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);e.cmp(i)>=0?(e.isub(i),o.isub(a)):(i.isub(e),a.isub(o))}return(r=0===e.cmpn(1)?o:a).cmpn(0)<0&&r.iadd(t),r},s.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),i=t.clone();e.negative=0,i.negative=0;for(var n=0;e.isEven()&&i.isEven();n++)e.iushrn(1),i.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;i.isEven();)i.iushrn(1);var r=e.cmp(i);if(r<0){var s=e;e=i,i=s}else if(0===r||0===i.cmpn(1))break;e.isub(i)}return i.iushln(n)},s.prototype.invm=function(t){return this.egcd(t).a.umod(t)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(t){return this.words[0]&t},s.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,i=(t-e)/26,r=1<>>26,this.words[o]=a&=67108863}return 0!==s&&(this.words[o]=s,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(t){var e,i=t<0;if(0!==this.negative&&!i)return-1;if(0===this.negative&&i)return 1;if(this.strip(),this.length>1)e=1;else{i&&(t=-t),n(t<=67108863,"Number is too big");var r=0|this.words[0];e=r===t?0:rt.length)return 1;if(this.length=0;i--){var n=0|this.words[i],r=0|t.words[i];if(n!==r){nr&&(e=1);break}}return e},s.prototype.gtn=function(t){return 1===this.cmpn(t)},s.prototype.gt=function(t){return 1===this.cmp(t)},s.prototype.gten=function(t){return this.cmpn(t)>=0},s.prototype.gte=function(t){return this.cmp(t)>=0},s.prototype.ltn=function(t){return-1===this.cmpn(t)},s.prototype.lt=function(t){return-1===this.cmp(t)},s.prototype.lten=function(t){return this.cmpn(t)<=0},s.prototype.lte=function(t){return this.cmp(t)<=0},s.prototype.eqn=function(t){return 0===this.cmpn(t)},s.prototype.eq=function(t){return 0===this.cmp(t)},s.red=function(t){return new C(t)},s.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},s.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(t){return this.red=t,this},s.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},s.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},s.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},s.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},s.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},s.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},s.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},s.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},s.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var y={k256:null,p224:null,p192:null,p25519:null};function b(t,e){this.name=t,this.p=new s(e,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function C(t){if("string"==typeof t){var e=s._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function A(t){C.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}b.prototype._tmp=function(){var t=new s(null);return t.words=new Array(Math.ceil(this.n/13)),t},b.prototype.ireduce=function(t){var e,i=t;do{this.split(i,this.tmp),e=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e0?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},b.prototype.split=function(t,e){t.iushrn(this.n,0,e)},b.prototype.imulK=function(t){return t.imul(this.k)},r(v,b),v.prototype.split=function(t,e){for(var i=4194303,n=Math.min(t.length,9),r=0;r>>22,s=o}t.words[r-10]=s>>>=22,t.length-=0===s&&t.length>10?10:9},v.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i>>=26,t.words[i]=r,e=n}return 0!==e&&(t.words[t.length++]=e),t},s._prime=function(t){if(y[t])return y[t];var e;if("k256"===t)e=new v;else if("p224"===t)e=new _;else if("p192"===t)e=new w;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new x}return y[t]=e,e},C.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},C.prototype._verify2=function(t,e){n(0==(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},C.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},C.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},C.prototype.add=function(t,e){this._verify2(t,e);var i=t.add(e);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},C.prototype.iadd=function(t,e){this._verify2(t,e);var i=t.iadd(e);return i.cmp(this.m)>=0&&i.isub(this.m),i},C.prototype.sub=function(t,e){this._verify2(t,e);var i=t.sub(e);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},C.prototype.isub=function(t,e){this._verify2(t,e);var i=t.isub(e);return i.cmpn(0)<0&&i.iadd(this.m),i},C.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},C.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},C.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},C.prototype.isqr=function(t){return this.imul(t,t.clone())},C.prototype.sqr=function(t){return this.mul(t,t)},C.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var i=this.m.add(new s(1)).iushrn(2);return this.pow(t,i)}for(var r=this.m.subn(1),o=0;!r.isZero()&&0===r.andln(1);)o++,r.iushrn(1);n(!r.isZero());var a=new s(1).toRed(this),l=a.redNeg(),c=this.m.subn(1).iushrn(1),h=this.m.bitLength();for(h=new s(2*h*h).toRed(this);0!==this.pow(h,c).cmp(l);)h.redIAdd(l);for(var u=this.pow(h,r),d=this.pow(t,r.addn(1).iushrn(1)),p=this.pow(t,r),f=o;0!==p.cmp(a);){for(var m=p,g=0;0!==m.cmp(a);g++)m=m.redSqr();n(g=0;n--){for(var c=e.words[n],h=l-1;h>=0;h--){var u=c>>h&1;r!==i[0]&&(r=this.sqr(r)),0!==u||0!==o?(o<<=1,o|=u,(4==++a||0===n&&0===h)&&(r=this.mul(r,i[o]),a=0,o=0)):a=0}l=26}return r},C.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},C.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},s.mont=function(t){return new A(t)},r(A,C),A.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},A.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},A.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var i=t.imul(e),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),s=r;return r.cmp(this.m)>=0?s=r.isub(this.m):r.cmpn(0)<0&&(s=r.iadd(this.m)),s._forceRed(this)},A.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new s(0)._forceRed(this);var i=t.mul(e),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),o=r;return r.cmp(this.m)>=0?o=r.isub(this.m):r.cmpn(0)<0&&(o=r.iadd(this.m)),o._forceRed(this)},A.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=i.nmd(t),this)},4500:(t,e,i)=>{"use strict";var n=i(5457),r=i(9233),s=i(3827),o=i(8687),a=i(478);function l(t){a.call(this,"digest"),this._hash=t}n(l,a),l.prototype._update=function(t){this._hash.update(t)},l.prototype._final=function(){return this._hash.digest()},t.exports=function(t){return"md5"===(t=t.toLowerCase())?new r:"rmd160"===t||"ripemd160"===t?new s:new l(o(t))}},3072:(t,e,i)=>{var n=i(9233);t.exports=function(t){return(new n).update(t).digest()}},9452:(t,e,i)=>{"use strict";var n=i(5457),r=i(7107),s=i(478),o=i(545).Buffer,a=i(3072),l=i(3827),c=i(8687),h=o.alloc(128);function u(t,e){s.call(this,"digest"),"string"==typeof e&&(e=o.from(e));var i="sha512"===t||"sha384"===t?128:64;this._alg=t,this._key=e,e.length>i?e=("rmd160"===t?new l:c(t)).update(e).digest():e.length{"use strict";var n=i(5457),r=i(545).Buffer,s=i(478),o=r.alloc(128),a=64;function l(t,e){s.call(this,"digest"),"string"==typeof e&&(e=r.from(e)),this._alg=t,this._key=e,e.length>a?e=t(e):e.length{"use strict";e.randomBytes=e.rng=e.pseudoRandomBytes=e.prng=i(6716),e.createHash=e.Hash=i(4500),e.createHmac=e.Hmac=i(9452);var n=i(3373),r=Object.keys(n),s=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(r);e.getHashes=function(){return s};var o=i(8094);e.pbkdf2=o.pbkdf2,e.pbkdf2Sync=o.pbkdf2Sync;var a=i(3320);e.Cipher=a.Cipher,e.createCipher=a.createCipher,e.Cipheriv=a.Cipheriv,e.createCipheriv=a.createCipheriv,e.Decipher=a.Decipher,e.createDecipher=a.createDecipher,e.Decipheriv=a.Decipheriv,e.createDecipheriv=a.createDecipheriv,e.getCiphers=a.getCiphers,e.listCiphers=a.listCiphers;var l=i(223);e.DiffieHellmanGroup=l.DiffieHellmanGroup,e.createDiffieHellmanGroup=l.createDiffieHellmanGroup,e.getDiffieHellman=l.getDiffieHellman,e.createDiffieHellman=l.createDiffieHellman,e.DiffieHellman=l.DiffieHellman;var c=i(6865);e.createSign=c.createSign,e.Sign=c.Sign,e.createVerify=c.createVerify,e.Verify=c.Verify,e.createECDH=i(3513);var h=i(7351);e.publicEncrypt=h.publicEncrypt,e.privateEncrypt=h.privateEncrypt,e.publicDecrypt=h.publicDecrypt,e.privateDecrypt=h.privateDecrypt;var u=i(1999);e.randomFill=u.randomFill,e.randomFillSync=u.randomFillSync,e.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},e.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},6504:(t,e,i)=>{"use strict";e.utils=i(3777),e.Cipher=i(1887),e.DES=i(8276),e.CBC=i(7029),e.EDE=i(7e3)},7029:(t,e,i)=>{"use strict";var n=i(523),r=i(5457),s={};function o(t){n.equal(t.length,8,"Invalid IV length"),this.iv=new Array(8);for(var e=0;e{"use strict";var n=i(523);function r(t){this.options=t,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}t.exports=r,r.prototype._init=function(){},r.prototype.update=function(t){return 0===t.length?[]:"decrypt"===this.type?this._updateDecrypt(t):this._updateEncrypt(t)},r.prototype._buffer=function(t,e){for(var i=Math.min(this.buffer.length-this.bufferOff,t.length-e),n=0;n0;n--)e+=this._buffer(t,e),i+=this._flushBuffer(r,i);return e+=this._buffer(t,e),r},r.prototype.final=function(t){var e,i;return t&&(e=this.update(t)),i="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),e?e.concat(i):i},r.prototype._pad=function(t,e){if(0===e)return!1;for(;e{"use strict";var n=i(523),r=i(5457),s=i(3777),o=i(1887);function a(){this.tmp=new Array(2),this.keys=null}function l(t){o.call(this,t);var e=new a;this._desState=e,this.deriveKeys(e,t.key)}r(l,o),t.exports=l,l.create=function(t){return new l(t)};var c=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];l.prototype.deriveKeys=function(t,e){t.keys=new Array(32),n.equal(e.length,this.blockSize,"Invalid key length");var i=s.readUInt32BE(e,0),r=s.readUInt32BE(e,4);s.pc1(i,r,t.tmp,0),i=t.tmp[0],r=t.tmp[1];for(var o=0;o>>1];i=s.r28shl(i,a),r=s.r28shl(r,a),s.pc2(i,r,t.keys,o)}},l.prototype._update=function(t,e,i,n){var r=this._desState,o=s.readUInt32BE(t,e),a=s.readUInt32BE(t,e+4);s.ip(o,a,r.tmp,0),o=r.tmp[0],a=r.tmp[1],"encrypt"===this.type?this._encrypt(r,o,a,r.tmp,0):this._decrypt(r,o,a,r.tmp,0),a=r.tmp[1],s.writeUInt32BE(i,o=r.tmp[0],n),s.writeUInt32BE(i,a,n+4)},l.prototype._pad=function(t,e){for(var i=t.length-e,n=e;n>>0,o=d}s.rip(a,o,n,r)},l.prototype._decrypt=function(t,e,i,n,r){for(var o=i,a=e,l=t.keys.length-2;l>=0;l-=2){var c=t.keys[l],h=t.keys[l+1];s.expand(o,t.tmp,0);var u=s.substitute(c^=t.tmp[0],h^=t.tmp[1]),d=o;o=(a^s.permute(u))>>>0,a=d}s.rip(o,a,n,r)}},7e3:(t,e,i)=>{"use strict";var n=i(523),r=i(5457),s=i(1887),o=i(8276);function a(t,e){n.equal(e.length,24,"Invalid key length");var i=e.slice(0,8),r=e.slice(8,16),s=e.slice(16,24);this.ciphers="encrypt"===t?[o.create({type:"encrypt",key:i}),o.create({type:"decrypt",key:r}),o.create({type:"encrypt",key:s})]:[o.create({type:"decrypt",key:s}),o.create({type:"encrypt",key:r}),o.create({type:"decrypt",key:i})]}function l(t){s.call(this,t);var e=new a(this.type,this.options.key);this._edeState=e}r(l,s),t.exports=l,l.create=function(t){return new l(t)},l.prototype._update=function(t,e,i,n){var r=this._edeState;r.ciphers[0]._update(t,e,i,n),r.ciphers[1]._update(i,n,i,n),r.ciphers[2]._update(i,n,i,n)},l.prototype._pad=o.prototype._pad,l.prototype._unpad=o.prototype._unpad},3777:(t,e)=>{"use strict";e.readUInt32BE=function(t,e){return(t[0+e]<<24|t[1+e]<<16|t[2+e]<<8|t[3+e])>>>0},e.writeUInt32BE=function(t,e,i){t[0+i]=e>>>24,t[1+i]=e>>>16&255,t[2+i]=e>>>8&255,t[3+i]=255&e},e.ip=function(t,e,i,n){for(var r=0,s=0,o=6;o>=0;o-=2){for(var a=0;a<=24;a+=8)r<<=1,r|=e>>>a+o&1;for(a=0;a<=24;a+=8)r<<=1,r|=t>>>a+o&1}for(o=6;o>=0;o-=2){for(a=1;a<=25;a+=8)s<<=1,s|=e>>>a+o&1;for(a=1;a<=25;a+=8)s<<=1,s|=t>>>a+o&1}i[n+0]=r>>>0,i[n+1]=s>>>0},e.rip=function(t,e,i,n){for(var r=0,s=0,o=0;o<4;o++)for(var a=24;a>=0;a-=8)r<<=1,r|=e>>>a+o&1,r<<=1,r|=t>>>a+o&1;for(o=4;o<8;o++)for(a=24;a>=0;a-=8)s<<=1,s|=e>>>a+o&1,s<<=1,s|=t>>>a+o&1;i[n+0]=r>>>0,i[n+1]=s>>>0},e.pc1=function(t,e,i,n){for(var r=0,s=0,o=7;o>=5;o--){for(var a=0;a<=24;a+=8)r<<=1,r|=e>>a+o&1;for(a=0;a<=24;a+=8)r<<=1,r|=t>>a+o&1}for(a=0;a<=24;a+=8)r<<=1,r|=e>>a+o&1;for(o=1;o<=3;o++){for(a=0;a<=24;a+=8)s<<=1,s|=e>>a+o&1;for(a=0;a<=24;a+=8)s<<=1,s|=t>>a+o&1}for(a=0;a<=24;a+=8)s<<=1,s|=t>>a+o&1;i[n+0]=r>>>0,i[n+1]=s>>>0},e.r28shl=function(t,e){return t<>>28-e};var i=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];e.pc2=function(t,e,n,r){for(var s=0,o=0,a=i.length>>>1,l=0;l>>i[l]&1;for(l=a;l>>i[l]&1;n[r+0]=s>>>0,n[r+1]=o>>>0},e.expand=function(t,e,i){var n=0,r=0;n=(1&t)<<5|t>>>27;for(var s=23;s>=15;s-=4)n<<=6,n|=t>>>s&63;for(s=11;s>=3;s-=4)r|=t>>>s&63,r<<=6;r|=(31&t)<<1|t>>>31,e[i+0]=n>>>0,e[i+1]=r>>>0};var n=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];e.substitute=function(t,e){for(var i=0,r=0;r<4;r++)i<<=4,i|=n[64*r+(t>>>18-6*r&63)];for(r=0;r<4;r++)i<<=4,i|=n[256+64*r+(e>>>18-6*r&63)];return i>>>0};var r=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];e.permute=function(t){for(var e=0,i=0;i>>r[i]&1;return e>>>0},e.padSplit=function(t,e,i){for(var n=t.toString(2);n.length{var n=i(1901),r=i(1930),s=i(429),o={binary:!0,hex:!0,base64:!0};e.DiffieHellmanGroup=e.createDiffieHellmanGroup=e.getDiffieHellman=function(t){var e=new Buffer(r[t].prime,"hex"),i=new Buffer(r[t].gen,"hex");return new s(e,i)},e.createDiffieHellman=e.DiffieHellman=function t(e,i,r,a){return Buffer.isBuffer(i)||void 0===o[i]?t(e,"binary",i,r):(i=i||"binary",a=a||"binary",r=r||new Buffer([2]),Buffer.isBuffer(r)||(r=new Buffer(r,a)),"number"==typeof e?new s(n(e,r),r,!0):(Buffer.isBuffer(e)||(e=new Buffer(e,i)),new s(e,r,!0)))}},429:(t,e,i)=>{var n=i(7299),r=new(i(2533)),s=new n(24),o=new n(11),a=new n(10),l=new n(3),c=new n(7),h=i(1901),u=i(6716);function d(t,e){return e=e||"utf8",Buffer.isBuffer(t)||(t=new Buffer(t,e)),this._pub=new n(t),this}function p(t,e){return e=e||"utf8",Buffer.isBuffer(t)||(t=new Buffer(t,e)),this._priv=new n(t),this}t.exports=m;var f={};function m(t,e,i){this.setGenerator(e),this.__prime=new n(t),this._prime=n.mont(this.__prime),this._primeLen=t.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,i?(this.setPublicKey=d,this.setPrivateKey=p):this._primeCode=8}function g(t,e){var i=new Buffer(t.toArray());return e?i.toString(e):i}Object.defineProperty(m.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(t,e){var i=e.toString("hex"),n=[i,t.toString(16)].join("_");if(n in f)return f[n];var u,d=0;if(t.isEven()||!h.simpleSieve||!h.fermatTest(t)||!r.test(t))return d+=1,f[n]=d+="02"===i||"05"===i?8:4,d;switch(r.test(t.shrn(1))||(d+=2),i){case"02":t.mod(s).cmp(o)&&(d+=8);break;case"05":(u=t.mod(a)).cmp(l)&&u.cmp(c)&&(d+=8);break;default:d+=4}return f[n]=d,d}(this.__prime,this.__gen)),this._primeCode}}),m.prototype.generateKeys=function(){return this._priv||(this._priv=new n(u(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},m.prototype.computeSecret=function(t){var e=(t=(t=new n(t)).toRed(this._prime)).redPow(this._priv).fromRed(),i=new Buffer(e.toArray()),r=this.getPrime();if(i.length{var n=i(6716);t.exports=b,b.simpleSieve=g,b.fermatTest=y;var r=i(7299),s=new r(24),o=new(i(2533)),a=new r(1),l=new r(2),c=new r(5),h=(new r(16),new r(8),new r(10)),u=new r(3),d=(new r(7),new r(11)),p=new r(4),f=(new r(12),null);function m(){if(null!==f)return f;var t=[];t[0]=2;for(var e=1,i=3;i<1048576;i+=2){for(var n=Math.ceil(Math.sqrt(i)),r=0;rt;)i.ishrn(1);if(i.isEven()&&i.iadd(a),i.testn(1)||i.iadd(l),e.cmp(l)){if(!e.cmp(c))for(;i.mod(h).cmp(u);)i.iadd(p)}else for(;i.mod(s).cmp(d);)i.iadd(p);if(g(f=i.shrn(1))&&g(i)&&y(f)&&y(i)&&o.test(f)&&o.test(i))return i}}},7299:function(t,e,i){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function r(t,e){t.super_=e;var i=function(){};i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}function s(t,e,i){if(s.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(i=e,e=10),this._init(t||0,e||10,i||"be"))}var o;"object"==typeof t?t.exports=s:e.BN=s,s.BN=s,s.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:i(8623).Buffer}catch(S){}function a(t,e){var i=t.charCodeAt(e);return i>=65&&i<=70?i-55:i>=97&&i<=102?i-87:i-48&15}function l(t,e,i){var n=a(t,i);return i-1>=e&&(n|=a(t,i-1)<<4),n}function c(t,e,i,n){for(var r=0,s=Math.min(t.length,i),o=e;o=49?a-49+10:a>=17?a-17+10:a}return r}s.isBN=function(t){return t instanceof s||null!==t&&"object"==typeof t&&t.constructor.wordSize===s.wordSize&&Array.isArray(t.words)},s.max=function(t,e){return t.cmp(e)>0?t:e},s.min=function(t,e){return t.cmp(e)<0?t:e},s.prototype._init=function(t,e,i){if("number"==typeof t)return this._initNumber(t,e,i);if("object"==typeof t)return this._initArray(t,e,i);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var r=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(r++,this.negative=1),r=0;r-=3)this.words[s]|=(o=t[r]|t[r-1]<<8|t[r-2]<<16)<>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);else if("le"===i)for(r=0,s=0;r>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);return this.strip()},s.prototype._parseHex=function(t,e,i){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n=e;n-=2)r=l(t,e,n)<=18?(s-=18,this.words[o+=1]|=r>>>26):s+=8;else for(n=(t.length-e)%2==0?e+1:e;n=18?(s-=18,this.words[o+=1]|=r>>>26):s+=8;this.strip()},s.prototype._parseBase=function(t,e,i){this.words=[0],this.length=1;for(var n=0,r=1;r<=67108863;r*=e)n++;n--,r=r/e|0;for(var s=t.length-i,o=s%n,a=Math.min(s,s-o)+i,l=0,h=i;h1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?""};var h=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],u=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(t,e,i){i.negative=e.negative^t.negative;var n=t.length+e.length|0;i.length=n,n=n-1|0;var r=0|t.words[0],s=0|e.words[0],o=r*s,a=o/67108864|0;i.words[0]=67108863&o;for(var l=1;l>>26,h=67108863&a,u=Math.min(l,e.length-1),d=Math.max(0,l-t.length+1);d<=u;d++)c+=(o=(r=0|t.words[l-d|0])*(s=0|e.words[d])+h)/67108864|0,h=67108863&o;i.words[l]=0|h,a=0|c}return 0!==a?i.words[l]=0|a:i.length--,i.strip()}s.prototype.toString=function(t,e){var i;if(e=0|e||1,16===(t=t||10)||"hex"===t){i="";for(var r=0,s=0,o=0;o>>24-r&16777215)||o!==this.length-1?h[6-l.length]+l+i:l+i,(r+=2)>=26&&(r-=26,o--)}for(0!==s&&(i=s.toString(16)+i);i.length%e!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(t===(0|t)&&t>=2&&t<=36){var c=u[t],p=d[t];i="";var f=this.clone();for(f.negative=0;!f.isZero();){var m=f.modn(p).toString(t);i=(f=f.idivn(p)).isZero()?m+i:h[c-m.length]+m+i}for(this.isZero()&&(i="0"+i);i.length%e!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}n(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(t,e){return n(void 0!==o),this.toArrayLike(o,t,e)},s.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},s.prototype.toArrayLike=function(t,e,i){var r=this.byteLength(),s=i||Math.max(1,r);n(r<=s,"byte array longer than desired length"),n(s>0,"Requested array length <= 0"),this.strip();var o,a,l="le"===e,c=new t(s),h=this.clone();if(l){for(a=0;!h.isZero();a++)o=h.andln(255),h.iushrn(8),c[a]=o;for(;a=4096&&(i+=13,e>>>=13),e>=64&&(i+=7,e>>>=7),e>=8&&(i+=4,e>>>=4),e>=2&&(i+=2,e>>>=2),i+e},s.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,i=0;return 0==(8191&e)&&(i+=13,e>>>=13),0==(127&e)&&(i+=7,e>>>=7),0==(15&e)&&(i+=4,e>>>=4),0==(3&e)&&(i+=2,e>>>=2),0==(1&e)&&i++,i},s.prototype.bitLength=function(){var t=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+t},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},s.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},s.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var i=0;it.length?this.clone().iand(t):t.clone().iand(this)},s.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},s.prototype.iuxor=function(t){var e,i;this.length>t.length?(e=this,i=t):(e=t,i=this);for(var n=0;nt.length?this.clone().ixor(t):t.clone().ixor(this)},s.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},s.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),i=t%26;this._expand(e),i>0&&e--;for(var r=0;r0&&(this.words[r]=~this.words[r]&67108863>>26-i),this.strip()},s.prototype.notn=function(t){return this.clone().inotn(t)},s.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var i=t/26|0,r=t%26;return this._expand(i+1),this.words[i]=e?this.words[i]|1<t.length?(i=this,n=t):(i=t,n=this);for(var r=0,s=0;s>>26;for(;0!==r&&s>>26;if(this.length=i.length,0!==r)this.words[this.length]=r,this.length++;else if(i!==this)for(;st.length?this.clone().iadd(t):t.clone().iadd(this)},s.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,n,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(i=this,n=t):(i=t,n=this);for(var s=0,o=0;o>26,this.words[o]=67108863&e;for(;0!==s&&o>26,this.words[o]=67108863&e;if(0===s&&o>>13,p=0|o[1],f=8191&p,m=p>>>13,g=0|o[2],y=8191&g,b=g>>>13,v=0|o[3],_=8191&v,w=v>>>13,x=0|o[4],C=8191&x,A=x>>>13,S=0|o[5],E=8191&S,k=S>>>13,T=0|o[6],M=8191&T,L=T>>>13,I=0|o[7],O=8191&I,D=I>>>13,R=0|o[8],N=8191&R,P=R>>>13,F=0|o[9],Z=8191&F,B=F>>>13,U=0|a[0],q=8191&U,z=U>>>13,H=0|a[1],Y=8191&H,G=H>>>13,j=0|a[2],V=8191&j,Q=j>>>13,W=0|a[3],J=8191&W,X=W>>>13,K=0|a[4],$=8191&K,tt=K>>>13,et=0|a[5],it=8191&et,nt=et>>>13,rt=0|a[6],st=8191&rt,ot=rt>>>13,at=0|a[7],lt=8191&at,ct=at>>>13,ht=0|a[8],ut=8191&ht,dt=ht>>>13,pt=0|a[9],ft=8191&pt,mt=pt>>>13;i.negative=t.negative^e.negative,i.length=19;var gt=(c+(n=Math.imul(u,q))|0)+((8191&(r=(r=Math.imul(u,z))+Math.imul(d,q)|0))<<13)|0;c=((s=Math.imul(d,z))+(r>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(f,q),r=(r=Math.imul(f,z))+Math.imul(m,q)|0,s=Math.imul(m,z);var yt=(c+(n=n+Math.imul(u,Y)|0)|0)+((8191&(r=(r=r+Math.imul(u,G)|0)+Math.imul(d,Y)|0))<<13)|0;c=((s=s+Math.imul(d,G)|0)+(r>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(y,q),r=(r=Math.imul(y,z))+Math.imul(b,q)|0,s=Math.imul(b,z),n=n+Math.imul(f,Y)|0,r=(r=r+Math.imul(f,G)|0)+Math.imul(m,Y)|0,s=s+Math.imul(m,G)|0;var bt=(c+(n=n+Math.imul(u,V)|0)|0)+((8191&(r=(r=r+Math.imul(u,Q)|0)+Math.imul(d,V)|0))<<13)|0;c=((s=s+Math.imul(d,Q)|0)+(r>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(_,q),r=(r=Math.imul(_,z))+Math.imul(w,q)|0,s=Math.imul(w,z),n=n+Math.imul(y,Y)|0,r=(r=r+Math.imul(y,G)|0)+Math.imul(b,Y)|0,s=s+Math.imul(b,G)|0,n=n+Math.imul(f,V)|0,r=(r=r+Math.imul(f,Q)|0)+Math.imul(m,V)|0,s=s+Math.imul(m,Q)|0;var vt=(c+(n=n+Math.imul(u,J)|0)|0)+((8191&(r=(r=r+Math.imul(u,X)|0)+Math.imul(d,J)|0))<<13)|0;c=((s=s+Math.imul(d,X)|0)+(r>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(C,q),r=(r=Math.imul(C,z))+Math.imul(A,q)|0,s=Math.imul(A,z),n=n+Math.imul(_,Y)|0,r=(r=r+Math.imul(_,G)|0)+Math.imul(w,Y)|0,s=s+Math.imul(w,G)|0,n=n+Math.imul(y,V)|0,r=(r=r+Math.imul(y,Q)|0)+Math.imul(b,V)|0,s=s+Math.imul(b,Q)|0,n=n+Math.imul(f,J)|0,r=(r=r+Math.imul(f,X)|0)+Math.imul(m,J)|0,s=s+Math.imul(m,X)|0;var _t=(c+(n=n+Math.imul(u,$)|0)|0)+((8191&(r=(r=r+Math.imul(u,tt)|0)+Math.imul(d,$)|0))<<13)|0;c=((s=s+Math.imul(d,tt)|0)+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(E,q),r=(r=Math.imul(E,z))+Math.imul(k,q)|0,s=Math.imul(k,z),n=n+Math.imul(C,Y)|0,r=(r=r+Math.imul(C,G)|0)+Math.imul(A,Y)|0,s=s+Math.imul(A,G)|0,n=n+Math.imul(_,V)|0,r=(r=r+Math.imul(_,Q)|0)+Math.imul(w,V)|0,s=s+Math.imul(w,Q)|0,n=n+Math.imul(y,J)|0,r=(r=r+Math.imul(y,X)|0)+Math.imul(b,J)|0,s=s+Math.imul(b,X)|0,n=n+Math.imul(f,$)|0,r=(r=r+Math.imul(f,tt)|0)+Math.imul(m,$)|0,s=s+Math.imul(m,tt)|0;var wt=(c+(n=n+Math.imul(u,it)|0)|0)+((8191&(r=(r=r+Math.imul(u,nt)|0)+Math.imul(d,it)|0))<<13)|0;c=((s=s+Math.imul(d,nt)|0)+(r>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(M,q),r=(r=Math.imul(M,z))+Math.imul(L,q)|0,s=Math.imul(L,z),n=n+Math.imul(E,Y)|0,r=(r=r+Math.imul(E,G)|0)+Math.imul(k,Y)|0,s=s+Math.imul(k,G)|0,n=n+Math.imul(C,V)|0,r=(r=r+Math.imul(C,Q)|0)+Math.imul(A,V)|0,s=s+Math.imul(A,Q)|0,n=n+Math.imul(_,J)|0,r=(r=r+Math.imul(_,X)|0)+Math.imul(w,J)|0,s=s+Math.imul(w,X)|0,n=n+Math.imul(y,$)|0,r=(r=r+Math.imul(y,tt)|0)+Math.imul(b,$)|0,s=s+Math.imul(b,tt)|0,n=n+Math.imul(f,it)|0,r=(r=r+Math.imul(f,nt)|0)+Math.imul(m,it)|0,s=s+Math.imul(m,nt)|0;var xt=(c+(n=n+Math.imul(u,st)|0)|0)+((8191&(r=(r=r+Math.imul(u,ot)|0)+Math.imul(d,st)|0))<<13)|0;c=((s=s+Math.imul(d,ot)|0)+(r>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(O,q),r=(r=Math.imul(O,z))+Math.imul(D,q)|0,s=Math.imul(D,z),n=n+Math.imul(M,Y)|0,r=(r=r+Math.imul(M,G)|0)+Math.imul(L,Y)|0,s=s+Math.imul(L,G)|0,n=n+Math.imul(E,V)|0,r=(r=r+Math.imul(E,Q)|0)+Math.imul(k,V)|0,s=s+Math.imul(k,Q)|0,n=n+Math.imul(C,J)|0,r=(r=r+Math.imul(C,X)|0)+Math.imul(A,J)|0,s=s+Math.imul(A,X)|0,n=n+Math.imul(_,$)|0,r=(r=r+Math.imul(_,tt)|0)+Math.imul(w,$)|0,s=s+Math.imul(w,tt)|0,n=n+Math.imul(y,it)|0,r=(r=r+Math.imul(y,nt)|0)+Math.imul(b,it)|0,s=s+Math.imul(b,nt)|0,n=n+Math.imul(f,st)|0,r=(r=r+Math.imul(f,ot)|0)+Math.imul(m,st)|0,s=s+Math.imul(m,ot)|0;var Ct=(c+(n=n+Math.imul(u,lt)|0)|0)+((8191&(r=(r=r+Math.imul(u,ct)|0)+Math.imul(d,lt)|0))<<13)|0;c=((s=s+Math.imul(d,ct)|0)+(r>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(N,q),r=(r=Math.imul(N,z))+Math.imul(P,q)|0,s=Math.imul(P,z),n=n+Math.imul(O,Y)|0,r=(r=r+Math.imul(O,G)|0)+Math.imul(D,Y)|0,s=s+Math.imul(D,G)|0,n=n+Math.imul(M,V)|0,r=(r=r+Math.imul(M,Q)|0)+Math.imul(L,V)|0,s=s+Math.imul(L,Q)|0,n=n+Math.imul(E,J)|0,r=(r=r+Math.imul(E,X)|0)+Math.imul(k,J)|0,s=s+Math.imul(k,X)|0,n=n+Math.imul(C,$)|0,r=(r=r+Math.imul(C,tt)|0)+Math.imul(A,$)|0,s=s+Math.imul(A,tt)|0,n=n+Math.imul(_,it)|0,r=(r=r+Math.imul(_,nt)|0)+Math.imul(w,it)|0,s=s+Math.imul(w,nt)|0,n=n+Math.imul(y,st)|0,r=(r=r+Math.imul(y,ot)|0)+Math.imul(b,st)|0,s=s+Math.imul(b,ot)|0,n=n+Math.imul(f,lt)|0,r=(r=r+Math.imul(f,ct)|0)+Math.imul(m,lt)|0,s=s+Math.imul(m,ct)|0;var At=(c+(n=n+Math.imul(u,ut)|0)|0)+((8191&(r=(r=r+Math.imul(u,dt)|0)+Math.imul(d,ut)|0))<<13)|0;c=((s=s+Math.imul(d,dt)|0)+(r>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(Z,q),r=(r=Math.imul(Z,z))+Math.imul(B,q)|0,s=Math.imul(B,z),n=n+Math.imul(N,Y)|0,r=(r=r+Math.imul(N,G)|0)+Math.imul(P,Y)|0,s=s+Math.imul(P,G)|0,n=n+Math.imul(O,V)|0,r=(r=r+Math.imul(O,Q)|0)+Math.imul(D,V)|0,s=s+Math.imul(D,Q)|0,n=n+Math.imul(M,J)|0,r=(r=r+Math.imul(M,X)|0)+Math.imul(L,J)|0,s=s+Math.imul(L,X)|0,n=n+Math.imul(E,$)|0,r=(r=r+Math.imul(E,tt)|0)+Math.imul(k,$)|0,s=s+Math.imul(k,tt)|0,n=n+Math.imul(C,it)|0,r=(r=r+Math.imul(C,nt)|0)+Math.imul(A,it)|0,s=s+Math.imul(A,nt)|0,n=n+Math.imul(_,st)|0,r=(r=r+Math.imul(_,ot)|0)+Math.imul(w,st)|0,s=s+Math.imul(w,ot)|0,n=n+Math.imul(y,lt)|0,r=(r=r+Math.imul(y,ct)|0)+Math.imul(b,lt)|0,s=s+Math.imul(b,ct)|0,n=n+Math.imul(f,ut)|0,r=(r=r+Math.imul(f,dt)|0)+Math.imul(m,ut)|0,s=s+Math.imul(m,dt)|0;var St=(c+(n=n+Math.imul(u,ft)|0)|0)+((8191&(r=(r=r+Math.imul(u,mt)|0)+Math.imul(d,ft)|0))<<13)|0;c=((s=s+Math.imul(d,mt)|0)+(r>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(Z,Y),r=(r=Math.imul(Z,G))+Math.imul(B,Y)|0,s=Math.imul(B,G),n=n+Math.imul(N,V)|0,r=(r=r+Math.imul(N,Q)|0)+Math.imul(P,V)|0,s=s+Math.imul(P,Q)|0,n=n+Math.imul(O,J)|0,r=(r=r+Math.imul(O,X)|0)+Math.imul(D,J)|0,s=s+Math.imul(D,X)|0,n=n+Math.imul(M,$)|0,r=(r=r+Math.imul(M,tt)|0)+Math.imul(L,$)|0,s=s+Math.imul(L,tt)|0,n=n+Math.imul(E,it)|0,r=(r=r+Math.imul(E,nt)|0)+Math.imul(k,it)|0,s=s+Math.imul(k,nt)|0,n=n+Math.imul(C,st)|0,r=(r=r+Math.imul(C,ot)|0)+Math.imul(A,st)|0,s=s+Math.imul(A,ot)|0,n=n+Math.imul(_,lt)|0,r=(r=r+Math.imul(_,ct)|0)+Math.imul(w,lt)|0,s=s+Math.imul(w,ct)|0,n=n+Math.imul(y,ut)|0,r=(r=r+Math.imul(y,dt)|0)+Math.imul(b,ut)|0,s=s+Math.imul(b,dt)|0;var Et=(c+(n=n+Math.imul(f,ft)|0)|0)+((8191&(r=(r=r+Math.imul(f,mt)|0)+Math.imul(m,ft)|0))<<13)|0;c=((s=s+Math.imul(m,mt)|0)+(r>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(Z,V),r=(r=Math.imul(Z,Q))+Math.imul(B,V)|0,s=Math.imul(B,Q),n=n+Math.imul(N,J)|0,r=(r=r+Math.imul(N,X)|0)+Math.imul(P,J)|0,s=s+Math.imul(P,X)|0,n=n+Math.imul(O,$)|0,r=(r=r+Math.imul(O,tt)|0)+Math.imul(D,$)|0,s=s+Math.imul(D,tt)|0,n=n+Math.imul(M,it)|0,r=(r=r+Math.imul(M,nt)|0)+Math.imul(L,it)|0,s=s+Math.imul(L,nt)|0,n=n+Math.imul(E,st)|0,r=(r=r+Math.imul(E,ot)|0)+Math.imul(k,st)|0,s=s+Math.imul(k,ot)|0,n=n+Math.imul(C,lt)|0,r=(r=r+Math.imul(C,ct)|0)+Math.imul(A,lt)|0,s=s+Math.imul(A,ct)|0,n=n+Math.imul(_,ut)|0,r=(r=r+Math.imul(_,dt)|0)+Math.imul(w,ut)|0,s=s+Math.imul(w,dt)|0;var kt=(c+(n=n+Math.imul(y,ft)|0)|0)+((8191&(r=(r=r+Math.imul(y,mt)|0)+Math.imul(b,ft)|0))<<13)|0;c=((s=s+Math.imul(b,mt)|0)+(r>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(Z,J),r=(r=Math.imul(Z,X))+Math.imul(B,J)|0,s=Math.imul(B,X),n=n+Math.imul(N,$)|0,r=(r=r+Math.imul(N,tt)|0)+Math.imul(P,$)|0,s=s+Math.imul(P,tt)|0,n=n+Math.imul(O,it)|0,r=(r=r+Math.imul(O,nt)|0)+Math.imul(D,it)|0,s=s+Math.imul(D,nt)|0,n=n+Math.imul(M,st)|0,r=(r=r+Math.imul(M,ot)|0)+Math.imul(L,st)|0,s=s+Math.imul(L,ot)|0,n=n+Math.imul(E,lt)|0,r=(r=r+Math.imul(E,ct)|0)+Math.imul(k,lt)|0,s=s+Math.imul(k,ct)|0,n=n+Math.imul(C,ut)|0,r=(r=r+Math.imul(C,dt)|0)+Math.imul(A,ut)|0,s=s+Math.imul(A,dt)|0;var Tt=(c+(n=n+Math.imul(_,ft)|0)|0)+((8191&(r=(r=r+Math.imul(_,mt)|0)+Math.imul(w,ft)|0))<<13)|0;c=((s=s+Math.imul(w,mt)|0)+(r>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(Z,$),r=(r=Math.imul(Z,tt))+Math.imul(B,$)|0,s=Math.imul(B,tt),n=n+Math.imul(N,it)|0,r=(r=r+Math.imul(N,nt)|0)+Math.imul(P,it)|0,s=s+Math.imul(P,nt)|0,n=n+Math.imul(O,st)|0,r=(r=r+Math.imul(O,ot)|0)+Math.imul(D,st)|0,s=s+Math.imul(D,ot)|0,n=n+Math.imul(M,lt)|0,r=(r=r+Math.imul(M,ct)|0)+Math.imul(L,lt)|0,s=s+Math.imul(L,ct)|0,n=n+Math.imul(E,ut)|0,r=(r=r+Math.imul(E,dt)|0)+Math.imul(k,ut)|0,s=s+Math.imul(k,dt)|0;var Mt=(c+(n=n+Math.imul(C,ft)|0)|0)+((8191&(r=(r=r+Math.imul(C,mt)|0)+Math.imul(A,ft)|0))<<13)|0;c=((s=s+Math.imul(A,mt)|0)+(r>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(Z,it),r=(r=Math.imul(Z,nt))+Math.imul(B,it)|0,s=Math.imul(B,nt),n=n+Math.imul(N,st)|0,r=(r=r+Math.imul(N,ot)|0)+Math.imul(P,st)|0,s=s+Math.imul(P,ot)|0,n=n+Math.imul(O,lt)|0,r=(r=r+Math.imul(O,ct)|0)+Math.imul(D,lt)|0,s=s+Math.imul(D,ct)|0,n=n+Math.imul(M,ut)|0,r=(r=r+Math.imul(M,dt)|0)+Math.imul(L,ut)|0,s=s+Math.imul(L,dt)|0;var Lt=(c+(n=n+Math.imul(E,ft)|0)|0)+((8191&(r=(r=r+Math.imul(E,mt)|0)+Math.imul(k,ft)|0))<<13)|0;c=((s=s+Math.imul(k,mt)|0)+(r>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,n=Math.imul(Z,st),r=(r=Math.imul(Z,ot))+Math.imul(B,st)|0,s=Math.imul(B,ot),n=n+Math.imul(N,lt)|0,r=(r=r+Math.imul(N,ct)|0)+Math.imul(P,lt)|0,s=s+Math.imul(P,ct)|0,n=n+Math.imul(O,ut)|0,r=(r=r+Math.imul(O,dt)|0)+Math.imul(D,ut)|0,s=s+Math.imul(D,dt)|0;var It=(c+(n=n+Math.imul(M,ft)|0)|0)+((8191&(r=(r=r+Math.imul(M,mt)|0)+Math.imul(L,ft)|0))<<13)|0;c=((s=s+Math.imul(L,mt)|0)+(r>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(Z,lt),r=(r=Math.imul(Z,ct))+Math.imul(B,lt)|0,s=Math.imul(B,ct),n=n+Math.imul(N,ut)|0,r=(r=r+Math.imul(N,dt)|0)+Math.imul(P,ut)|0,s=s+Math.imul(P,dt)|0;var Ot=(c+(n=n+Math.imul(O,ft)|0)|0)+((8191&(r=(r=r+Math.imul(O,mt)|0)+Math.imul(D,ft)|0))<<13)|0;c=((s=s+Math.imul(D,mt)|0)+(r>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(Z,ut),r=(r=Math.imul(Z,dt))+Math.imul(B,ut)|0,s=Math.imul(B,dt);var Dt=(c+(n=n+Math.imul(N,ft)|0)|0)+((8191&(r=(r=r+Math.imul(N,mt)|0)+Math.imul(P,ft)|0))<<13)|0;c=((s=s+Math.imul(P,mt)|0)+(r>>>13)|0)+(Dt>>>26)|0,Dt&=67108863;var Rt=(c+(n=Math.imul(Z,ft))|0)+((8191&(r=(r=Math.imul(Z,mt))+Math.imul(B,ft)|0))<<13)|0;return c=((s=Math.imul(B,mt))+(r>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,l[0]=gt,l[1]=yt,l[2]=bt,l[3]=vt,l[4]=_t,l[5]=wt,l[6]=xt,l[7]=Ct,l[8]=At,l[9]=St,l[10]=Et,l[11]=kt,l[12]=Tt,l[13]=Mt,l[14]=Lt,l[15]=It,l[16]=Ot,l[17]=Dt,l[18]=Rt,0!==c&&(l[19]=c,i.length++),i};function m(t,e,i){return(new g).mulp(t,e,i)}function g(t,e){this.x=t,this.y=e}Math.imul||(f=p),s.prototype.mulTo=function(t,e){var i=this.length+t.length;return 10===this.length&&10===t.length?f(this,t,e):i<63?p(this,t,e):i<1024?function(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var n=0,r=0,s=0;s>>26)|0)>>>26,o&=67108863}i.words[s]=a,n=o,o=r}return 0!==n?i.words[s]=n:i.length--,i.strip()}(this,t,e):m(this,t,e)},g.prototype.makeRBT=function(t){for(var e=new Array(t),i=s.prototype._countBits(t)-1,n=0;n>=1;return n},g.prototype.permute=function(t,e,i,n,r,s){for(var o=0;o>>=1)r++;return 1<>>=13),s>>>=13;for(o=2*e;o>=26,e+=r/67108864|0,e+=s>>>26,this.words[i]=67108863&s}return 0!==e&&(this.words[i]=e,this.length++),this},s.prototype.muln=function(t){return this.clone().imuln(t)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),i=0;i>>n}return e}(t);if(0===e.length)return new s(1);for(var i=this,n=0;n=0);var e,i=t%26,r=(t-i)/26,s=67108863>>>26-i<<26-i;if(0!==i){var o=0;for(e=0;e>>26-i}o&&(this.words[e]=o,this.length++)}if(0!==r){for(e=this.length-1;e>=0;e--)this.words[e+r]=this.words[e];for(e=0;e=0),r=e?(e-e%26)/26:0;var s=t%26,o=Math.min((t-s)/26,this.length),a=67108863^67108863>>>s<o)for(this.length-=o,c=0;c=0&&(0!==h||c>=r);c--){var u=0|this.words[c];this.words[c]=h<<26-s|u>>>s,h=u&a}return l&&0!==h&&(l.words[l.length++]=h),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(t,e,i){return n(0===this.negative),this.iushrn(t,e,i)},s.prototype.shln=function(t){return this.clone().ishln(t)},s.prototype.ushln=function(t){return this.clone().iushln(t)},s.prototype.shrn=function(t){return this.clone().ishrn(t)},s.prototype.ushrn=function(t){return this.clone().iushrn(t)},s.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,i=(t-e)/26;return!(this.length<=i||!(this.words[i]&1<=0);var e=t%26,i=(t-e)/26;return n(0===this.negative,"imaskn works only with positive numbers"),this.length<=i?this:(0!==e&&i++,this.length=Math.min(i,this.length),0!==e&&(this.words[this.length-1]&=67108863^67108863>>>e<=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},s.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(a/67108864|0),this.words[r+i]=67108863&s}for(;r>26,this.words[r+i]=67108863&s;if(0===o)return this.strip();for(n(-1===o),o=0,r=0;r>26,this.words[r]=67108863&s;return this.negative=1,this.strip()},s.prototype._wordDiv=function(t,e){var i,n=this.clone(),r=t,o=0|r.words[r.length-1];0!=(i=26-this._countBits(o))&&(r=r.ushln(i),n.iushln(i),o=0|r.words[r.length-1]);var a,l=n.length-r.length;if("mod"!==e){(a=new s(null)).length=l+1,a.words=new Array(a.length);for(var c=0;c=0;u--){var d=67108864*(0|n.words[r.length+u])+(0|n.words[r.length+u-1]);for(d=Math.min(d/o|0,67108863),n._ishlnsubmul(r,d,u);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(r,1,u),n.isZero()||(n.negative^=1);a&&(a.words[u]=d)}return a&&a.strip(),n.strip(),"div"!==e&&0!==i&&n.iushrn(i),{div:a||null,mod:n}},s.prototype.divmod=function(t,e,i){return n(!t.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(r=a.div.neg()),"div"!==e&&(o=a.mod.neg(),i&&0!==o.negative&&o.iadd(t)),{div:r,mod:o}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(r=a.div.neg()),{div:r,mod:a.mod}):0!=(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(o=a.mod.neg(),i&&0!==o.negative&&o.isub(t)),{div:a.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new s(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new s(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new s(this.modn(t.words[0]))}:this._wordDiv(t,e);var r,o,a},s.prototype.div=function(t){return this.divmod(t,"div",!1).div},s.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},s.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},s.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var i=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),r=t.andln(1),s=i.cmp(n);return s<0||1===r&&0===s?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},s.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,i=0,r=this.length-1;r>=0;r--)i=(e*i+(0|this.words[r]))%t;return i},s.prototype.idivn=function(t){n(t<=67108863);for(var e=0,i=this.length-1;i>=0;i--){var r=(0|this.words[i])+67108864*e;this.words[i]=r/t|0,e=r%t}return this.strip()},s.prototype.divn=function(t){return this.clone().idivn(t)},s.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var r=new s(1),o=new s(0),a=new s(0),l=new s(1),c=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++c;for(var h=i.clone(),u=e.clone();!e.isZero();){for(var d=0,p=1;0==(e.words[0]&p)&&d<26;++d,p<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(r.isOdd()||o.isOdd())&&(r.iadd(h),o.isub(u)),r.iushrn(1),o.iushrn(1);for(var f=0,m=1;0==(i.words[0]&m)&&f<26;++f,m<<=1);if(f>0)for(i.iushrn(f);f-- >0;)(a.isOdd()||l.isOdd())&&(a.iadd(h),l.isub(u)),a.iushrn(1),l.iushrn(1);e.cmp(i)>=0?(e.isub(i),r.isub(a),o.isub(l)):(i.isub(e),a.isub(r),l.isub(o))}return{a:a,b:l,gcd:i.iushln(c)}},s.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var r,o=new s(1),a=new s(0),l=i.clone();e.cmpn(1)>0&&i.cmpn(1)>0;){for(var c=0,h=1;0==(e.words[0]&h)&&c<26;++c,h<<=1);if(c>0)for(e.iushrn(c);c-- >0;)o.isOdd()&&o.iadd(l),o.iushrn(1);for(var u=0,d=1;0==(i.words[0]&d)&&u<26;++u,d<<=1);if(u>0)for(i.iushrn(u);u-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);e.cmp(i)>=0?(e.isub(i),o.isub(a)):(i.isub(e),a.isub(o))}return(r=0===e.cmpn(1)?o:a).cmpn(0)<0&&r.iadd(t),r},s.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),i=t.clone();e.negative=0,i.negative=0;for(var n=0;e.isEven()&&i.isEven();n++)e.iushrn(1),i.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;i.isEven();)i.iushrn(1);var r=e.cmp(i);if(r<0){var s=e;e=i,i=s}else if(0===r||0===i.cmpn(1))break;e.isub(i)}return i.iushln(n)},s.prototype.invm=function(t){return this.egcd(t).a.umod(t)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(t){return this.words[0]&t},s.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,i=(t-e)/26,r=1<>>26,this.words[o]=a&=67108863}return 0!==s&&(this.words[o]=s,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(t){var e,i=t<0;if(0!==this.negative&&!i)return-1;if(0===this.negative&&i)return 1;if(this.strip(),this.length>1)e=1;else{i&&(t=-t),n(t<=67108863,"Number is too big");var r=0|this.words[0];e=r===t?0:rt.length)return 1;if(this.length=0;i--){var n=0|this.words[i],r=0|t.words[i];if(n!==r){nr&&(e=1);break}}return e},s.prototype.gtn=function(t){return 1===this.cmpn(t)},s.prototype.gt=function(t){return 1===this.cmp(t)},s.prototype.gten=function(t){return this.cmpn(t)>=0},s.prototype.gte=function(t){return this.cmp(t)>=0},s.prototype.ltn=function(t){return-1===this.cmpn(t)},s.prototype.lt=function(t){return-1===this.cmp(t)},s.prototype.lten=function(t){return this.cmpn(t)<=0},s.prototype.lte=function(t){return this.cmp(t)<=0},s.prototype.eqn=function(t){return 0===this.cmpn(t)},s.prototype.eq=function(t){return 0===this.cmp(t)},s.red=function(t){return new C(t)},s.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},s.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(t){return this.red=t,this},s.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},s.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},s.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},s.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},s.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},s.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},s.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},s.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},s.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var y={k256:null,p224:null,p192:null,p25519:null};function b(t,e){this.name=t,this.p=new s(e,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function C(t){if("string"==typeof t){var e=s._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function A(t){C.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}b.prototype._tmp=function(){var t=new s(null);return t.words=new Array(Math.ceil(this.n/13)),t},b.prototype.ireduce=function(t){var e,i=t;do{this.split(i,this.tmp),e=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e0?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},b.prototype.split=function(t,e){t.iushrn(this.n,0,e)},b.prototype.imulK=function(t){return t.imul(this.k)},r(v,b),v.prototype.split=function(t,e){for(var i=4194303,n=Math.min(t.length,9),r=0;r>>22,s=o}t.words[r-10]=s>>>=22,t.length-=0===s&&t.length>10?10:9},v.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i>>=26,t.words[i]=r,e=n}return 0!==e&&(t.words[t.length++]=e),t},s._prime=function(t){if(y[t])return y[t];var e;if("k256"===t)e=new v;else if("p224"===t)e=new _;else if("p192"===t)e=new w;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new x}return y[t]=e,e},C.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},C.prototype._verify2=function(t,e){n(0==(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},C.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},C.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},C.prototype.add=function(t,e){this._verify2(t,e);var i=t.add(e);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},C.prototype.iadd=function(t,e){this._verify2(t,e);var i=t.iadd(e);return i.cmp(this.m)>=0&&i.isub(this.m),i},C.prototype.sub=function(t,e){this._verify2(t,e);var i=t.sub(e);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},C.prototype.isub=function(t,e){this._verify2(t,e);var i=t.isub(e);return i.cmpn(0)<0&&i.iadd(this.m),i},C.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},C.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},C.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},C.prototype.isqr=function(t){return this.imul(t,t.clone())},C.prototype.sqr=function(t){return this.mul(t,t)},C.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var i=this.m.add(new s(1)).iushrn(2);return this.pow(t,i)}for(var r=this.m.subn(1),o=0;!r.isZero()&&0===r.andln(1);)o++,r.iushrn(1);n(!r.isZero());var a=new s(1).toRed(this),l=a.redNeg(),c=this.m.subn(1).iushrn(1),h=this.m.bitLength();for(h=new s(2*h*h).toRed(this);0!==this.pow(h,c).cmp(l);)h.redIAdd(l);for(var u=this.pow(h,r),d=this.pow(t,r.addn(1).iushrn(1)),p=this.pow(t,r),f=o;0!==p.cmp(a);){for(var m=p,g=0;0!==m.cmp(a);g++)m=m.redSqr();n(g=0;n--){for(var c=e.words[n],h=l-1;h>=0;h--){var u=c>>h&1;r!==i[0]&&(r=this.sqr(r)),0!==u||0!==o?(o<<=1,o|=u,(4==++a||0===n&&0===h)&&(r=this.mul(r,i[o]),a=0,o=0)):a=0}l=26}return r},C.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},C.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},s.mont=function(t){return new A(t)},r(A,C),A.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},A.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},A.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var i=t.imul(e),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),s=r;return r.cmp(this.m)>=0?s=r.isub(this.m):r.cmpn(0)<0&&(s=r.iadd(this.m)),s._forceRed(this)},A.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new s(0)._forceRed(this);var i=t.mul(e),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),o=r;return r.cmp(this.m)>=0?o=r.isub(this.m):r.cmpn(0)<0&&(o=r.iadd(this.m)),o._forceRed(this)},A.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=i.nmd(t),this)},45:t=>{"use strict";var e={single_source_shortest_paths:function(t,i,n){var r={},s={};s[i]=0;var o,a,l,c,h,u,d=e.PriorityQueue.make();for(d.push(i,0);!d.empty();)for(l in c=(o=d.pop()).cost,h=t[a=o.value]||{})h.hasOwnProperty(l)&&(u=c+h[l],(void 0===s[l]||s[l]>u)&&(s[l]=u,d.push(l,u),r[l]=a));if(void 0!==n&&void 0===s[n]){var p=["Could not find a path from ",i," to ",n,"."].join("");throw new Error(p)}return r},extract_shortest_path_from_predecessor_list:function(t,e){for(var i=[],n=e;n;)i.push(n),n=t[n];return i.reverse(),i},find_path:function(t,i,n){var r=e.single_source_shortest_paths(t,i,n);return e.extract_shortest_path_from_predecessor_list(r,n)},PriorityQueue:{make:function(t){var i,n=e.PriorityQueue,r={};for(i in t=t||{},n)n.hasOwnProperty(i)&&(r[i]=n[i]);return r.queue=[],r.sorter=t.sorter||n.default_sorter,r},default_sorter:function(t,e){return t.cost-e.cost},push:function(t,e){this.queue.push({value:t,cost:e}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};t.exports=e},905:(t,e,i)=>{"use strict";var n=e;n.version=i(7519).i8,n.utils=i(3930),n.rand=i(8520),n.curve=i(4367),n.curves=i(2709),n.ec=i(260),n.eddsa=i(2038)},2134:(t,e,i)=>{"use strict";var n=i(8183),r=i(3930),s=r.getNAF,o=r.getJSF,a=r.assert;function l(t,e){this.type=t,this.p=new n(e.p,16),this.red=e.prime?n.red(e.prime):n.mont(this.p),this.zero=new n(0).toRed(this.red),this.one=new n(1).toRed(this.red),this.two=new n(2).toRed(this.red),this.n=e.n&&new n(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var i=this.n&&this.p.div(this.n);!i||i.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function c(t,e){this.curve=t,this.type=e,this.precomputed=null}t.exports=l,l.prototype.point=function(){throw new Error("Not implemented")},l.prototype.validate=function(){throw new Error("Not implemented")},l.prototype._fixedNafMul=function(t,e){a(t.precomputed);var i=t._getDoubles(),n=s(e,1,this._bitLength),r=(1<=o;h--)l=(l<<1)+n[h];c.push(l)}for(var u=this.jpoint(null,null,null),d=this.jpoint(null,null,null),p=r;p>0;p--){for(o=0;o=0;c--){for(var h=0;c>=0&&0===o[c];c--)h++;if(c>=0&&h++,l=l.dblp(h),c<0)break;var u=o[c];a(0!==u),l="affine"===t.type?l.mixedAdd(u>0?r[u-1>>1]:r[-u-1>>1].neg()):l.add(u>0?r[u-1>>1]:r[-u-1>>1].neg())}return"affine"===t.type?l.toP():l},l.prototype._wnafMulAdd=function(t,e,i,n,r){var a,l,c,h=this._wnafT1,u=this._wnafT2,d=this._wnafT3,p=0;for(a=0;a=1;a-=2){var m=a-1,g=a;if(1===h[m]&&1===h[g]){var y=[e[m],null,null,e[g]];0===e[m].y.cmp(e[g].y)?(y[1]=e[m].add(e[g]),y[2]=e[m].toJ().mixedAdd(e[g].neg())):0===e[m].y.cmp(e[g].y.redNeg())?(y[1]=e[m].toJ().mixedAdd(e[g]),y[2]=e[m].add(e[g].neg())):(y[1]=e[m].toJ().mixedAdd(e[g]),y[2]=e[m].toJ().mixedAdd(e[g].neg()));var b=[-3,-1,-5,-7,0,7,5,1,3],v=o(i[m],i[g]);for(p=Math.max(v[0].length,p),d[m]=new Array(p),d[g]=new Array(p),l=0;l=0;a--){for(var x=0;a>=0;){var C=!0;for(l=0;l=0&&x++,_=_.dblp(x),a<0)break;for(l=0;l0?c=u[l][A-1>>1]:A<0&&(c=u[l][-A-1>>1].neg()),_="affine"===c.type?_.mixedAdd(c):_.add(c))}}for(a=0;a=Math.ceil((t.bitLength()+1)/e.step)},c.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var i=[this],n=this,r=0;r{"use strict";var n=i(3930),r=i(8183),s=i(5457),o=i(2134),a=n.assert;function l(t){this.twisted=1!=(0|t.a),this.mOneA=this.twisted&&-1==(0|t.a),this.extended=this.mOneA,o.call(this,"edwards",t),this.a=new r(t.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new r(t.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new r(t.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),a(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|t.c)}function c(t,e,i,n,s){o.BasePoint.call(this,t,"projective"),null===e&&null===i&&null===n?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new r(e,16),this.y=new r(i,16),this.z=n?new r(n,16):this.curve.one,this.t=s&&new r(s,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}s(l,o),t.exports=l,l.prototype._mulA=function(t){return this.mOneA?t.redNeg():this.a.redMul(t)},l.prototype._mulC=function(t){return this.oneC?t:this.c.redMul(t)},l.prototype.jpoint=function(t,e,i,n){return this.point(t,e,i,n)},l.prototype.pointFromX=function(t,e){(t=new r(t,16)).red||(t=t.toRed(this.red));var i=t.redSqr(),n=this.c2.redSub(this.a.redMul(i)),s=this.one.redSub(this.c2.redMul(this.d).redMul(i)),o=n.redMul(s.redInvm()),a=o.redSqrt();if(0!==a.redSqr().redSub(o).cmp(this.zero))throw new Error("invalid point");var l=a.fromRed().isOdd();return(e&&!l||!e&&l)&&(a=a.redNeg()),this.point(t,a)},l.prototype.pointFromY=function(t,e){(t=new r(t,16)).red||(t=t.toRed(this.red));var i=t.redSqr(),n=i.redSub(this.c2),s=i.redMul(this.d).redMul(this.c2).redSub(this.a),o=n.redMul(s.redInvm());if(0===o.cmp(this.zero)){if(e)throw new Error("invalid point");return this.point(this.zero,t)}var a=o.redSqrt();if(0!==a.redSqr().redSub(o).cmp(this.zero))throw new Error("invalid point");return a.fromRed().isOdd()!==e&&(a=a.redNeg()),this.point(a,t)},l.prototype.validate=function(t){if(t.isInfinity())return!0;t.normalize();var e=t.x.redSqr(),i=t.y.redSqr(),n=e.redMul(this.a).redAdd(i),r=this.c2.redMul(this.one.redAdd(this.d.redMul(e).redMul(i)));return 0===n.cmp(r)},s(c,o.BasePoint),l.prototype.pointFromJSON=function(t){return c.fromJSON(this,t)},l.prototype.point=function(t,e,i,n){return new c(this,t,e,i,n)},c.fromJSON=function(t,e){return new c(t,e[0],e[1],e[2])},c.prototype.inspect=function(){return this.isInfinity()?"":""},c.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},c.prototype._extDbl=function(){var t=this.x.redSqr(),e=this.y.redSqr(),i=this.z.redSqr();i=i.redIAdd(i);var n=this.curve._mulA(t),r=this.x.redAdd(this.y).redSqr().redISub(t).redISub(e),s=n.redAdd(e),o=s.redSub(i),a=n.redSub(e),l=r.redMul(o),c=s.redMul(a),h=r.redMul(a),u=o.redMul(s);return this.curve.point(l,c,u,h)},c.prototype._projDbl=function(){var t,e,i,n,r,s,o=this.x.redAdd(this.y).redSqr(),a=this.x.redSqr(),l=this.y.redSqr();if(this.curve.twisted){var c=(n=this.curve._mulA(a)).redAdd(l);this.zOne?(t=o.redSub(a).redSub(l).redMul(c.redSub(this.curve.two)),e=c.redMul(n.redSub(l)),i=c.redSqr().redSub(c).redSub(c)):(r=this.z.redSqr(),s=c.redSub(r).redISub(r),t=o.redSub(a).redISub(l).redMul(s),e=c.redMul(n.redSub(l)),i=c.redMul(s))}else n=a.redAdd(l),r=this.curve._mulC(this.z).redSqr(),s=n.redSub(r).redSub(r),t=this.curve._mulC(o.redISub(n)).redMul(s),e=this.curve._mulC(n).redMul(a.redISub(l)),i=n.redMul(s);return this.curve.point(t,e,i)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.prototype._extAdd=function(t){var e=this.y.redSub(this.x).redMul(t.y.redSub(t.x)),i=this.y.redAdd(this.x).redMul(t.y.redAdd(t.x)),n=this.t.redMul(this.curve.dd).redMul(t.t),r=this.z.redMul(t.z.redAdd(t.z)),s=i.redSub(e),o=r.redSub(n),a=r.redAdd(n),l=i.redAdd(e),c=s.redMul(o),h=a.redMul(l),u=s.redMul(l),d=o.redMul(a);return this.curve.point(c,h,d,u)},c.prototype._projAdd=function(t){var e,i,n=this.z.redMul(t.z),r=n.redSqr(),s=this.x.redMul(t.x),o=this.y.redMul(t.y),a=this.curve.d.redMul(s).redMul(o),l=r.redSub(a),c=r.redAdd(a),h=this.x.redAdd(this.y).redMul(t.x.redAdd(t.y)).redISub(s).redISub(o),u=n.redMul(l).redMul(h);return this.curve.twisted?(e=n.redMul(c).redMul(o.redSub(this.curve._mulA(s))),i=l.redMul(c)):(e=n.redMul(c).redMul(o.redSub(s)),i=this.curve._mulC(l).redMul(c)),this.curve.point(u,e,i)},c.prototype.add=function(t){return this.isInfinity()?t:t.isInfinity()?this:this.curve.extended?this._extAdd(t):this._projAdd(t)},c.prototype.mul=function(t){return this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve._wnafMul(this,t)},c.prototype.mulAdd=function(t,e,i){return this.curve._wnafMulAdd(1,[this,e],[t,i],2,!1)},c.prototype.jmulAdd=function(t,e,i){return this.curve._wnafMulAdd(1,[this,e],[t,i],2,!0)},c.prototype.normalize=function(){if(this.zOne)return this;var t=this.z.redInvm();return this.x=this.x.redMul(t),this.y=this.y.redMul(t),this.t&&(this.t=this.t.redMul(t)),this.z=this.curve.one,this.zOne=!0,this},c.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()},c.prototype.getY=function(){return this.normalize(),this.y.fromRed()},c.prototype.eq=function(t){return this===t||0===this.getX().cmp(t.getX())&&0===this.getY().cmp(t.getY())},c.prototype.eqXToP=function(t){var e=t.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(e))return!0;for(var i=t.clone(),n=this.curve.redN.redMul(this.z);;){if(i.iadd(this.curve.n),i.cmp(this.curve.p)>=0)return!1;if(e.redIAdd(n),0===this.x.cmp(e))return!0}},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add},4367:(t,e,i)=>{"use strict";var n=e;n.base=i(2134),n.short=i(6460),n.mont=i(1289),n.edwards=i(4177)},1289:(t,e,i)=>{"use strict";var n=i(8183),r=i(5457),s=i(2134),o=i(3930);function a(t){s.call(this,"mont",t),this.a=new n(t.a,16).toRed(this.red),this.b=new n(t.b,16).toRed(this.red),this.i4=new n(4).toRed(this.red).redInvm(),this.two=new n(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function l(t,e,i){s.BasePoint.call(this,t,"projective"),null===e&&null===i?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(e,16),this.z=new n(i,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}r(a,s),t.exports=a,a.prototype.validate=function(t){var e=t.normalize().x,i=e.redSqr(),n=i.redMul(e).redAdd(i.redMul(this.a)).redAdd(e);return 0===n.redSqrt().redSqr().cmp(n)},r(l,s.BasePoint),a.prototype.decodePoint=function(t,e){return this.point(o.toArray(t,e),1)},a.prototype.point=function(t,e){return new l(this,t,e)},a.prototype.pointFromJSON=function(t){return l.fromJSON(this,t)},l.prototype.precompute=function(){},l.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},l.fromJSON=function(t,e){return new l(t,e[0],e[1]||t.one)},l.prototype.inspect=function(){return this.isInfinity()?"":""},l.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},l.prototype.dbl=function(){var t=this.x.redAdd(this.z).redSqr(),e=this.x.redSub(this.z).redSqr(),i=t.redSub(e),n=t.redMul(e),r=i.redMul(e.redAdd(this.curve.a24.redMul(i)));return this.curve.point(n,r)},l.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},l.prototype.diffAdd=function(t,e){var i=this.x.redAdd(this.z),n=this.x.redSub(this.z),r=t.x.redAdd(t.z),s=t.x.redSub(t.z).redMul(i),o=r.redMul(n),a=e.z.redMul(s.redAdd(o).redSqr()),l=e.x.redMul(s.redISub(o).redSqr());return this.curve.point(a,l)},l.prototype.mul=function(t){for(var e=t.clone(),i=this,n=this.curve.point(null,null),r=[];0!==e.cmpn(0);e.iushrn(1))r.push(e.andln(1));for(var s=r.length-1;s>=0;s--)0===r[s]?(i=i.diffAdd(n,this),n=n.dbl()):(n=i.diffAdd(n,this),i=i.dbl());return n},l.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},l.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},l.prototype.eq=function(t){return 0===this.getX().cmp(t.getX())},l.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},l.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},6460:(t,e,i)=>{"use strict";var n=i(3930),r=i(8183),s=i(5457),o=i(2134),a=n.assert;function l(t){o.call(this,"short",t),this.a=new r(t.a,16).toRed(this.red),this.b=new r(t.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(t),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function c(t,e,i,n){o.BasePoint.call(this,t,"affine"),null===e&&null===i?(this.x=null,this.y=null,this.inf=!0):(this.x=new r(e,16),this.y=new r(i,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function h(t,e,i,n){o.BasePoint.call(this,t,"jacobian"),null===e&&null===i&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new r(0)):(this.x=new r(e,16),this.y=new r(i,16),this.z=new r(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}s(l,o),t.exports=l,l.prototype._getEndomorphism=function(t){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var e,i;if(t.beta)e=new r(t.beta,16).toRed(this.red);else{var n=this._getEndoRoots(this.p);e=(e=n[0].cmp(n[1])<0?n[0]:n[1]).toRed(this.red)}if(t.lambda)i=new r(t.lambda,16);else{var s=this._getEndoRoots(this.n);0===this.g.mul(s[0]).x.cmp(this.g.x.redMul(e))?i=s[0]:a(0===this.g.mul(i=s[1]).x.cmp(this.g.x.redMul(e)))}return{beta:e,lambda:i,basis:t.basis?t.basis.map(function(t){return{a:new r(t.a,16),b:new r(t.b,16)}}):this._getEndoBasis(i)}}},l.prototype._getEndoRoots=function(t){var e=t===this.p?this.red:r.mont(t),i=new r(2).toRed(e).redInvm(),n=i.redNeg(),s=new r(3).toRed(e).redNeg().redSqrt().redMul(i);return[n.redAdd(s).fromRed(),n.redSub(s).fromRed()]},l.prototype._getEndoBasis=function(t){for(var e,i,n,s,o,a,l,c,h,u=this.n.ushrn(Math.floor(this.n.bitLength()/2)),d=t,p=this.n.clone(),f=new r(1),m=new r(0),g=new r(0),y=new r(1),b=0;0!==d.cmpn(0);){var v=p.div(d);c=p.sub(v.mul(d)),h=g.sub(v.mul(f));var _=y.sub(v.mul(m));if(!n&&c.cmp(u)<0)e=l.neg(),i=f,n=c.neg(),s=h;else if(n&&2==++b)break;l=c,p=d,d=c,g=f,f=h,y=m,m=_}o=c.neg(),a=h;var w=n.sqr().add(s.sqr());return o.sqr().add(a.sqr()).cmp(w)>=0&&(o=e,a=i),n.negative&&(n=n.neg(),s=s.neg()),o.negative&&(o=o.neg(),a=a.neg()),[{a:n,b:s},{a:o,b:a}]},l.prototype._endoSplit=function(t){var e=this.endo.basis,i=e[0],n=e[1],r=n.b.mul(t).divRound(this.n),s=i.b.neg().mul(t).divRound(this.n),o=r.mul(i.a),a=s.mul(n.a),l=r.mul(i.b),c=s.mul(n.b);return{k1:t.sub(o).sub(a),k2:l.add(c).neg()}},l.prototype.pointFromX=function(t,e){(t=new r(t,16)).red||(t=t.toRed(this.red));var i=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),n=i.redSqrt();if(0!==n.redSqr().redSub(i).cmp(this.zero))throw new Error("invalid point");var s=n.fromRed().isOdd();return(e&&!s||!e&&s)&&(n=n.redNeg()),this.point(t,n)},l.prototype.validate=function(t){if(t.inf)return!0;var e=t.x,i=t.y,n=this.a.redMul(e),r=e.redSqr().redMul(e).redIAdd(n).redIAdd(this.b);return 0===i.redSqr().redISub(r).cmpn(0)},l.prototype._endoWnafMulAdd=function(t,e,i){for(var n=this._endoWnafT1,r=this._endoWnafT2,s=0;s":""},c.prototype.isInfinity=function(){return this.inf},c.prototype.add=function(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t))return this.curve.point(null,null);if(0===this.x.cmp(t.x))return this.curve.point(null,null);var e=this.y.redSub(t.y);0!==e.cmpn(0)&&(e=e.redMul(this.x.redSub(t.x).redInvm()));var i=e.redSqr().redISub(this.x).redISub(t.x),n=e.redMul(this.x.redSub(i)).redISub(this.y);return this.curve.point(i,n)},c.prototype.dbl=function(){if(this.inf)return this;var t=this.y.redAdd(this.y);if(0===t.cmpn(0))return this.curve.point(null,null);var e=this.curve.a,i=this.x.redSqr(),n=t.redInvm(),r=i.redAdd(i).redIAdd(i).redIAdd(e).redMul(n),s=r.redSqr().redISub(this.x.redAdd(this.x)),o=r.redMul(this.x.redSub(s)).redISub(this.y);return this.curve.point(s,o)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(t){return t=new r(t,16),this.isInfinity()?this:this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve.endo?this.curve._endoWnafMulAdd([this],[t]):this.curve._wnafMul(this,t)},c.prototype.mulAdd=function(t,e,i){var n=[this,e],r=[t,i];return this.curve.endo?this.curve._endoWnafMulAdd(n,r):this.curve._wnafMulAdd(1,n,r,2)},c.prototype.jmulAdd=function(t,e,i){var n=[this,e],r=[t,i];return this.curve.endo?this.curve._endoWnafMulAdd(n,r,!0):this.curve._wnafMulAdd(1,n,r,2,!0)},c.prototype.eq=function(t){return this===t||this.inf===t.inf&&(this.inf||0===this.x.cmp(t.x)&&0===this.y.cmp(t.y))},c.prototype.neg=function(t){if(this.inf)return this;var e=this.curve.point(this.x,this.y.redNeg());if(t&&this.precomputed){var i=this.precomputed,n=function(t){return t.neg()};e.precomputed={naf:i.naf&&{wnd:i.naf.wnd,points:i.naf.points.map(n)},doubles:i.doubles&&{step:i.doubles.step,points:i.doubles.points.map(n)}}}return e},c.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},s(h,o.BasePoint),l.prototype.jpoint=function(t,e,i){return new h(this,t,e,i)},h.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),e=t.redSqr(),i=this.x.redMul(e),n=this.y.redMul(e).redMul(t);return this.curve.point(i,n)},h.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},h.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.z.redSqr(),i=this.z.redSqr(),n=this.x.redMul(e),r=t.x.redMul(i),s=this.y.redMul(e.redMul(t.z)),o=t.y.redMul(i.redMul(this.z)),a=n.redSub(r),l=s.redSub(o);if(0===a.cmpn(0))return 0!==l.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=a.redSqr(),h=c.redMul(a),u=n.redMul(c),d=l.redSqr().redIAdd(h).redISub(u).redISub(u),p=l.redMul(u.redISub(d)).redISub(s.redMul(h)),f=this.z.redMul(t.z).redMul(a);return this.curve.jpoint(d,p,f)},h.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var e=this.z.redSqr(),i=this.x,n=t.x.redMul(e),r=this.y,s=t.y.redMul(e).redMul(this.z),o=i.redSub(n),a=r.redSub(s);if(0===o.cmpn(0))return 0!==a.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var l=o.redSqr(),c=l.redMul(o),h=i.redMul(l),u=a.redSqr().redIAdd(c).redISub(h).redISub(h),d=a.redMul(h.redISub(u)).redISub(r.redMul(c)),p=this.z.redMul(o);return this.curve.jpoint(u,d,p)},h.prototype.dblp=function(t){if(0===t)return this;if(this.isInfinity())return this;if(!t)return this.dbl();var e;if(this.curve.zeroA||this.curve.threeA){var i=this;for(e=0;e=0)return!1;if(i.redIAdd(r),0===this.x.cmp(i))return!0}},h.prototype.inspect=function(){return this.isInfinity()?"":""},h.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},2709:(t,e,i)=>{"use strict";var n,r=e,s=i(7749),o=i(4367),a=i(3930).assert;function l(t){this.curve="short"===t.type?new o.short(t):"edwards"===t.type?new o.edwards(t):new o.mont(t),this.g=this.curve.g,this.n=this.curve.n,this.hash=t.hash,a(this.g.validate(),"Invalid curve"),a(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function c(t,e){Object.defineProperty(r,t,{configurable:!0,enumerable:!0,get:function(){var i=new l(e);return Object.defineProperty(r,t,{configurable:!0,enumerable:!0,value:i}),i}})}r.PresetCurve=l,c("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:s.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),c("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:s.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),c("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:s.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),c("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:s.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),c("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:s.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),c("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:s.sha256,gRed:!1,g:["9"]}),c("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:s.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=i(5621)}catch(h){n=void 0}c("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:s.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},260:(t,e,i)=>{"use strict";var n=i(8183),r=i(1753),s=i(3930),o=i(2709),a=i(8520),l=s.assert,c=i(3145),h=i(6032);function u(t){if(!(this instanceof u))return new u(t);"string"==typeof t&&(l(Object.prototype.hasOwnProperty.call(o,t),"Unknown curve "+t),t=o[t]),t instanceof o.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash}t.exports=u,u.prototype.keyPair=function(t){return new c(this,t)},u.prototype.keyFromPrivate=function(t,e){return c.fromPrivate(this,t,e)},u.prototype.keyFromPublic=function(t,e){return c.fromPublic(this,t,e)},u.prototype.genKeyPair=function(t){t||(t={});for(var e=new r({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||a(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),i=this.n.byteLength(),s=this.n.sub(new n(2));;){var o=new n(e.generate(i));if(!(o.cmp(s)>0))return o.iaddn(1),this.keyFromPrivate(o)}},u.prototype._truncateToN=function(t,e){var i=8*t.byteLength()-this.n.bitLength();return i>0&&(t=t.ushrn(i)),!e&&t.cmp(this.n)>=0?t.sub(this.n):t},u.prototype.sign=function(t,e,i,s){"object"==typeof i&&(s=i,i=null),s||(s={}),e=this.keyFromPrivate(e,i),t=this._truncateToN(new n(t,16));for(var o=this.n.byteLength(),a=e.getPrivate().toArray("be",o),l=t.toArray("be",o),c=new r({hash:this.hash,entropy:a,nonce:l,pers:s.pers,persEnc:s.persEnc||"utf8"}),u=this.n.sub(new n(1)),d=0;;d++){var p=s.k?s.k(d):new n(c.generate(this.n.byteLength()));if(!((p=this._truncateToN(p,!0)).cmpn(1)<=0||p.cmp(u)>=0)){var f=this.g.mul(p);if(!f.isInfinity()){var m=f.getX(),g=m.umod(this.n);if(0!==g.cmpn(0)){var y=p.invm(this.n).mul(g.mul(e.getPrivate()).iadd(t));if(0!==(y=y.umod(this.n)).cmpn(0)){var b=(f.getY().isOdd()?1:0)|(0!==m.cmp(g)?2:0);return s.canonical&&y.cmp(this.nh)>0&&(y=this.n.sub(y),b^=1),new h({r:g,s:y,recoveryParam:b})}}}}}},u.prototype.verify=function(t,e,i,r){t=this._truncateToN(new n(t,16)),i=this.keyFromPublic(i,r);var s=(e=new h(e,"hex")).r,o=e.s;if(s.cmpn(1)<0||s.cmp(this.n)>=0)return!1;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;var a,l=o.invm(this.n),c=l.mul(t).umod(this.n),u=l.mul(s).umod(this.n);return this.curve._maxwellTrick?!(a=this.g.jmulAdd(c,i.getPublic(),u)).isInfinity()&&a.eqXToP(s):!(a=this.g.mulAdd(c,i.getPublic(),u)).isInfinity()&&0===a.getX().umod(this.n).cmp(s)},u.prototype.recoverPubKey=function(t,e,i,r){l((3&i)===i,"The recovery param is more than two bits"),e=new h(e,r);var s=this.n,o=new n(t),a=e.r,c=e.s,u=1&i,d=i>>1;if(a.cmp(this.curve.p.umod(this.curve.n))>=0&&d)throw new Error("Unable to find sencond key candinate");a=this.curve.pointFromX(d?a.add(this.curve.n):a,u);var p=e.r.invm(s),f=s.sub(o).mul(p).umod(s),m=c.mul(p).umod(s);return this.g.mulAdd(f,a,m)},u.prototype.getKeyRecoveryParam=function(t,e,i,n){if(null!==(e=new h(e,n)).recoveryParam)return e.recoveryParam;for(var r=0;r<4;r++){var s;try{s=this.recoverPubKey(t,e,r)}catch(t){continue}if(s.eq(i))return r}throw new Error("Unable to find valid recovery factor")}},3145:(t,e,i)=>{"use strict";var n=i(8183),r=i(3930).assert;function s(t,e){this.ec=t,this.priv=null,this.pub=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc)}t.exports=s,s.fromPublic=function(t,e,i){return e instanceof s?e:new s(t,{pub:e,pubEnc:i})},s.fromPrivate=function(t,e,i){return e instanceof s?e:new s(t,{priv:e,privEnc:i})},s.prototype.validate=function(){var t=this.getPublic();return t.isInfinity()?{result:!1,reason:"Invalid public key"}:t.validate()?t.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},s.prototype.getPublic=function(t,e){return"string"==typeof t&&(e=t,t=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),e?this.pub.encode(e,t):this.pub},s.prototype.getPrivate=function(t){return"hex"===t?this.priv.toString(16,2):this.priv},s.prototype._importPrivate=function(t,e){this.priv=new n(t,e||16),this.priv=this.priv.umod(this.ec.curve.n)},s.prototype._importPublic=function(t,e){if(t.x||t.y)return"mont"===this.ec.curve.type?r(t.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||r(t.x&&t.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(t.x,t.y));this.pub=this.ec.curve.decodePoint(t,e)},s.prototype.derive=function(t){return t.validate()||r(t.validate(),"public point not validated"),t.mul(this.priv).getX()},s.prototype.sign=function(t,e,i){return this.ec.sign(t,this,e,i)},s.prototype.verify=function(t,e){return this.ec.verify(t,e,this)},s.prototype.inspect=function(){return""}},6032:(t,e,i)=>{"use strict";var n=i(8183),r=i(3930),s=r.assert;function o(t,e){if(t instanceof o)return t;this._importDER(t,e)||(s(t.r&&t.s,"Signature without r or s"),this.r=new n(t.r,16),this.s=new n(t.s,16),this.recoveryParam=void 0===t.recoveryParam?null:t.recoveryParam)}function a(){this.place=0}function l(t,e){var i=t[e.place++];if(!(128&i))return i;var n=15&i;if(0===n||n>4)return!1;for(var r=0,s=0,o=e.place;s>>=0;return!(r<=127)&&(e.place=o,r)}function c(t){for(var e=0,i=t.length-1;!t[e]&&!(128&t[e+1])&&e>>3);for(t.push(128|i);--i;)t.push(e>>>(i<<3)&255);t.push(e)}}t.exports=o,o.prototype._importDER=function(t,e){t=r.toArray(t,e);var i=new a;if(48!==t[i.place++])return!1;var s=l(t,i);if(!1===s)return!1;if(s+i.place!==t.length)return!1;if(2!==t[i.place++])return!1;var o=l(t,i);if(!1===o)return!1;var c=t.slice(i.place,o+i.place);if(i.place+=o,2!==t[i.place++])return!1;var h=l(t,i);if(!1===h)return!1;if(t.length!==h+i.place)return!1;var u=t.slice(i.place,h+i.place);if(0===c[0]){if(!(128&c[1]))return!1;c=c.slice(1)}if(0===u[0]){if(!(128&u[1]))return!1;u=u.slice(1)}return this.r=new n(c),this.s=new n(u),this.recoveryParam=null,!0},o.prototype.toDER=function(t){var e=this.r.toArray(),i=this.s.toArray();for(128&e[0]&&(e=[0].concat(e)),128&i[0]&&(i=[0].concat(i)),e=c(e),i=c(i);!(i[0]||128&i[1]);)i=i.slice(1);var n=[2];h(n,e.length),(n=n.concat(e)).push(2),h(n,i.length);var s=n.concat(i),o=[48];return h(o,s.length),o=o.concat(s),r.encode(o,t)}},2038:(t,e,i)=>{"use strict";var n=i(7749),r=i(2709),s=i(3930),o=s.assert,a=s.parseBytes,l=i(3426),c=i(613);function h(t){if(o("ed25519"===t,"only tested with ed25519 so far"),!(this instanceof h))return new h(t);this.curve=t=r[t].curve,this.g=t.g,this.g.precompute(t.n.bitLength()+1),this.pointClass=t.point().constructor,this.encodingLength=Math.ceil(t.n.bitLength()/8),this.hash=n.sha512}t.exports=h,h.prototype.sign=function(t,e){t=a(t);var i=this.keyFromSecret(e),n=this.hashInt(i.messagePrefix(),t),r=this.g.mul(n),s=this.encodePoint(r),o=this.hashInt(s,i.pubBytes(),t).mul(i.priv()),l=n.add(o).umod(this.curve.n);return this.makeSignature({R:r,S:l,Rencoded:s})},h.prototype.verify=function(t,e,i){t=a(t),e=this.makeSignature(e);var n=this.keyFromPublic(i),r=this.hashInt(e.Rencoded(),n.pubBytes(),t),s=this.g.mul(e.S());return e.R().add(n.pub().mul(r)).eq(s)},h.prototype.hashInt=function(){for(var t=this.hash(),e=0;e{"use strict";var n=i(3930),r=n.assert,s=n.parseBytes,o=n.cachedProperty;function a(t,e){this.eddsa=t,this._secret=s(e.secret),t.isPoint(e.pub)?this._pub=e.pub:this._pubBytes=s(e.pub)}a.fromPublic=function(t,e){return e instanceof a?e:new a(t,{pub:e})},a.fromSecret=function(t,e){return e instanceof a?e:new a(t,{secret:e})},a.prototype.secret=function(){return this._secret},o(a,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),o(a,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),o(a,"privBytes",function(){var t=this.eddsa,e=this.hash(),i=t.encodingLength-1,n=e.slice(0,t.encodingLength);return n[0]&=248,n[i]&=127,n[i]|=64,n}),o(a,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),o(a,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),o(a,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),a.prototype.sign=function(t){return r(this._secret,"KeyPair can only verify"),this.eddsa.sign(t,this)},a.prototype.verify=function(t,e){return this.eddsa.verify(t,e,this)},a.prototype.getSecret=function(t){return r(this._secret,"KeyPair is public only"),n.encode(this.secret(),t)},a.prototype.getPublic=function(t){return n.encode(this.pubBytes(),t)},t.exports=a},613:(t,e,i)=>{"use strict";var n=i(8183),r=i(3930),s=r.assert,o=r.cachedProperty,a=r.parseBytes;function l(t,e){this.eddsa=t,"object"!=typeof e&&(e=a(e)),Array.isArray(e)&&(e={R:e.slice(0,t.encodingLength),S:e.slice(t.encodingLength)}),s(e.R&&e.S,"Signature without R or S"),t.isPoint(e.R)&&(this._R=e.R),e.S instanceof n&&(this._S=e.S),this._Rencoded=Array.isArray(e.R)?e.R:e.Rencoded,this._Sencoded=Array.isArray(e.S)?e.S:e.Sencoded}o(l,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),o(l,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),o(l,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),o(l,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),l.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},l.prototype.toHex=function(){return r.encode(this.toBytes(),"hex").toUpperCase()},t.exports=l},5621:t=>{t.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},3930:(t,e,i)=>{"use strict";var n=e,r=i(8183),s=i(523),o=i(5856);n.assert=s,n.toArray=o.toArray,n.zero2=o.zero2,n.toHex=o.toHex,n.encode=o.encode,n.getNAF=function(t,e,i){var n=new Array(Math.max(t.bitLength(),i)+1);n.fill(0);for(var r=1<(r>>1)-1?(r>>1)-l:l):a=0,n[o]=a,s.iushrn(1)}return n},n.getJSF=function(t,e){var i=[[],[]];t=t.clone(),e=e.clone();for(var n,r=0,s=0;t.cmpn(-r)>0||e.cmpn(-s)>0;){var o,a,l=t.andln(3)+r&3,c=e.andln(3)+s&3;3===l&&(l=-1),3===c&&(c=-1),o=0==(1&l)?0:3!=(n=t.andln(7)+r&7)&&5!==n||2!==c?l:-l,i[0].push(o),a=0==(1&c)?0:3!=(n=e.andln(7)+s&7)&&5!==n||2!==l?c:-c,i[1].push(a),2*r===o+1&&(r=1-r),2*s===a+1&&(s=1-s),t.iushrn(1),e.iushrn(1)}return i},n.cachedProperty=function(t,e,i){var n="_"+e;t.prototype[e]=function(){return void 0!==this[n]?this[n]:this[n]=i.call(this)}},n.parseBytes=function(t){return"string"==typeof t?n.toArray(t,"hex"):t},n.intFromLE=function(t){return new r(t,"hex","le")}},8183:function(t,e,i){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function r(t,e){t.super_=e;var i=function(){};i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}function s(t,e,i){if(s.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(i=e,e=10),this._init(t||0,e||10,i||"be"))}var o;"object"==typeof t?t.exports=s:e.BN=s,s.BN=s,s.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:i(8623).Buffer}catch(S){}function a(t,e){var i=t.charCodeAt(e);return i>=65&&i<=70?i-55:i>=97&&i<=102?i-87:i-48&15}function l(t,e,i){var n=a(t,i);return i-1>=e&&(n|=a(t,i-1)<<4),n}function c(t,e,i,n){for(var r=0,s=Math.min(t.length,i),o=e;o=49?a-49+10:a>=17?a-17+10:a}return r}s.isBN=function(t){return t instanceof s||null!==t&&"object"==typeof t&&t.constructor.wordSize===s.wordSize&&Array.isArray(t.words)},s.max=function(t,e){return t.cmp(e)>0?t:e},s.min=function(t,e){return t.cmp(e)<0?t:e},s.prototype._init=function(t,e,i){if("number"==typeof t)return this._initNumber(t,e,i);if("object"==typeof t)return this._initArray(t,e,i);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var r=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(r++,this.negative=1),r=0;r-=3)this.words[s]|=(o=t[r]|t[r-1]<<8|t[r-2]<<16)<>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);else if("le"===i)for(r=0,s=0;r>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);return this.strip()},s.prototype._parseHex=function(t,e,i){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n=e;n-=2)r=l(t,e,n)<=18?(s-=18,this.words[o+=1]|=r>>>26):s+=8;else for(n=(t.length-e)%2==0?e+1:e;n=18?(s-=18,this.words[o+=1]|=r>>>26):s+=8;this.strip()},s.prototype._parseBase=function(t,e,i){this.words=[0],this.length=1;for(var n=0,r=1;r<=67108863;r*=e)n++;n--,r=r/e|0;for(var s=t.length-i,o=s%n,a=Math.min(s,s-o)+i,l=0,h=i;h1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?""};var h=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],u=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(t,e,i){i.negative=e.negative^t.negative;var n=t.length+e.length|0;i.length=n,n=n-1|0;var r=0|t.words[0],s=0|e.words[0],o=r*s,a=o/67108864|0;i.words[0]=67108863&o;for(var l=1;l>>26,h=67108863&a,u=Math.min(l,e.length-1),d=Math.max(0,l-t.length+1);d<=u;d++)c+=(o=(r=0|t.words[l-d|0])*(s=0|e.words[d])+h)/67108864|0,h=67108863&o;i.words[l]=0|h,a=0|c}return 0!==a?i.words[l]=0|a:i.length--,i.strip()}s.prototype.toString=function(t,e){var i;if(e=0|e||1,16===(t=t||10)||"hex"===t){i="";for(var r=0,s=0,o=0;o>>24-r&16777215)||o!==this.length-1?h[6-l.length]+l+i:l+i,(r+=2)>=26&&(r-=26,o--)}for(0!==s&&(i=s.toString(16)+i);i.length%e!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(t===(0|t)&&t>=2&&t<=36){var c=u[t],p=d[t];i="";var f=this.clone();for(f.negative=0;!f.isZero();){var m=f.modn(p).toString(t);i=(f=f.idivn(p)).isZero()?m+i:h[c-m.length]+m+i}for(this.isZero()&&(i="0"+i);i.length%e!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}n(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(t,e){return n(void 0!==o),this.toArrayLike(o,t,e)},s.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},s.prototype.toArrayLike=function(t,e,i){var r=this.byteLength(),s=i||Math.max(1,r);n(r<=s,"byte array longer than desired length"),n(s>0,"Requested array length <= 0"),this.strip();var o,a,l="le"===e,c=new t(s),h=this.clone();if(l){for(a=0;!h.isZero();a++)o=h.andln(255),h.iushrn(8),c[a]=o;for(;a=4096&&(i+=13,e>>>=13),e>=64&&(i+=7,e>>>=7),e>=8&&(i+=4,e>>>=4),e>=2&&(i+=2,e>>>=2),i+e},s.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,i=0;return 0==(8191&e)&&(i+=13,e>>>=13),0==(127&e)&&(i+=7,e>>>=7),0==(15&e)&&(i+=4,e>>>=4),0==(3&e)&&(i+=2,e>>>=2),0==(1&e)&&i++,i},s.prototype.bitLength=function(){var t=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+t},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},s.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},s.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var i=0;it.length?this.clone().iand(t):t.clone().iand(this)},s.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},s.prototype.iuxor=function(t){var e,i;this.length>t.length?(e=this,i=t):(e=t,i=this);for(var n=0;nt.length?this.clone().ixor(t):t.clone().ixor(this)},s.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},s.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),i=t%26;this._expand(e),i>0&&e--;for(var r=0;r0&&(this.words[r]=~this.words[r]&67108863>>26-i),this.strip()},s.prototype.notn=function(t){return this.clone().inotn(t)},s.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var i=t/26|0,r=t%26;return this._expand(i+1),this.words[i]=e?this.words[i]|1<t.length?(i=this,n=t):(i=t,n=this);for(var r=0,s=0;s>>26;for(;0!==r&&s>>26;if(this.length=i.length,0!==r)this.words[this.length]=r,this.length++;else if(i!==this)for(;st.length?this.clone().iadd(t):t.clone().iadd(this)},s.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,n,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(i=this,n=t):(i=t,n=this);for(var s=0,o=0;o>26,this.words[o]=67108863&e;for(;0!==s&&o>26,this.words[o]=67108863&e;if(0===s&&o>>13,p=0|o[1],f=8191&p,m=p>>>13,g=0|o[2],y=8191&g,b=g>>>13,v=0|o[3],_=8191&v,w=v>>>13,x=0|o[4],C=8191&x,A=x>>>13,S=0|o[5],E=8191&S,k=S>>>13,T=0|o[6],M=8191&T,L=T>>>13,I=0|o[7],O=8191&I,D=I>>>13,R=0|o[8],N=8191&R,P=R>>>13,F=0|o[9],Z=8191&F,B=F>>>13,U=0|a[0],q=8191&U,z=U>>>13,H=0|a[1],Y=8191&H,G=H>>>13,j=0|a[2],V=8191&j,Q=j>>>13,W=0|a[3],J=8191&W,X=W>>>13,K=0|a[4],$=8191&K,tt=K>>>13,et=0|a[5],it=8191&et,nt=et>>>13,rt=0|a[6],st=8191&rt,ot=rt>>>13,at=0|a[7],lt=8191&at,ct=at>>>13,ht=0|a[8],ut=8191&ht,dt=ht>>>13,pt=0|a[9],ft=8191&pt,mt=pt>>>13;i.negative=t.negative^e.negative,i.length=19;var gt=(c+(n=Math.imul(u,q))|0)+((8191&(r=(r=Math.imul(u,z))+Math.imul(d,q)|0))<<13)|0;c=((s=Math.imul(d,z))+(r>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(f,q),r=(r=Math.imul(f,z))+Math.imul(m,q)|0,s=Math.imul(m,z);var yt=(c+(n=n+Math.imul(u,Y)|0)|0)+((8191&(r=(r=r+Math.imul(u,G)|0)+Math.imul(d,Y)|0))<<13)|0;c=((s=s+Math.imul(d,G)|0)+(r>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(y,q),r=(r=Math.imul(y,z))+Math.imul(b,q)|0,s=Math.imul(b,z),n=n+Math.imul(f,Y)|0,r=(r=r+Math.imul(f,G)|0)+Math.imul(m,Y)|0,s=s+Math.imul(m,G)|0;var bt=(c+(n=n+Math.imul(u,V)|0)|0)+((8191&(r=(r=r+Math.imul(u,Q)|0)+Math.imul(d,V)|0))<<13)|0;c=((s=s+Math.imul(d,Q)|0)+(r>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(_,q),r=(r=Math.imul(_,z))+Math.imul(w,q)|0,s=Math.imul(w,z),n=n+Math.imul(y,Y)|0,r=(r=r+Math.imul(y,G)|0)+Math.imul(b,Y)|0,s=s+Math.imul(b,G)|0,n=n+Math.imul(f,V)|0,r=(r=r+Math.imul(f,Q)|0)+Math.imul(m,V)|0,s=s+Math.imul(m,Q)|0;var vt=(c+(n=n+Math.imul(u,J)|0)|0)+((8191&(r=(r=r+Math.imul(u,X)|0)+Math.imul(d,J)|0))<<13)|0;c=((s=s+Math.imul(d,X)|0)+(r>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(C,q),r=(r=Math.imul(C,z))+Math.imul(A,q)|0,s=Math.imul(A,z),n=n+Math.imul(_,Y)|0,r=(r=r+Math.imul(_,G)|0)+Math.imul(w,Y)|0,s=s+Math.imul(w,G)|0,n=n+Math.imul(y,V)|0,r=(r=r+Math.imul(y,Q)|0)+Math.imul(b,V)|0,s=s+Math.imul(b,Q)|0,n=n+Math.imul(f,J)|0,r=(r=r+Math.imul(f,X)|0)+Math.imul(m,J)|0,s=s+Math.imul(m,X)|0;var _t=(c+(n=n+Math.imul(u,$)|0)|0)+((8191&(r=(r=r+Math.imul(u,tt)|0)+Math.imul(d,$)|0))<<13)|0;c=((s=s+Math.imul(d,tt)|0)+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(E,q),r=(r=Math.imul(E,z))+Math.imul(k,q)|0,s=Math.imul(k,z),n=n+Math.imul(C,Y)|0,r=(r=r+Math.imul(C,G)|0)+Math.imul(A,Y)|0,s=s+Math.imul(A,G)|0,n=n+Math.imul(_,V)|0,r=(r=r+Math.imul(_,Q)|0)+Math.imul(w,V)|0,s=s+Math.imul(w,Q)|0,n=n+Math.imul(y,J)|0,r=(r=r+Math.imul(y,X)|0)+Math.imul(b,J)|0,s=s+Math.imul(b,X)|0,n=n+Math.imul(f,$)|0,r=(r=r+Math.imul(f,tt)|0)+Math.imul(m,$)|0,s=s+Math.imul(m,tt)|0;var wt=(c+(n=n+Math.imul(u,it)|0)|0)+((8191&(r=(r=r+Math.imul(u,nt)|0)+Math.imul(d,it)|0))<<13)|0;c=((s=s+Math.imul(d,nt)|0)+(r>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(M,q),r=(r=Math.imul(M,z))+Math.imul(L,q)|0,s=Math.imul(L,z),n=n+Math.imul(E,Y)|0,r=(r=r+Math.imul(E,G)|0)+Math.imul(k,Y)|0,s=s+Math.imul(k,G)|0,n=n+Math.imul(C,V)|0,r=(r=r+Math.imul(C,Q)|0)+Math.imul(A,V)|0,s=s+Math.imul(A,Q)|0,n=n+Math.imul(_,J)|0,r=(r=r+Math.imul(_,X)|0)+Math.imul(w,J)|0,s=s+Math.imul(w,X)|0,n=n+Math.imul(y,$)|0,r=(r=r+Math.imul(y,tt)|0)+Math.imul(b,$)|0,s=s+Math.imul(b,tt)|0,n=n+Math.imul(f,it)|0,r=(r=r+Math.imul(f,nt)|0)+Math.imul(m,it)|0,s=s+Math.imul(m,nt)|0;var xt=(c+(n=n+Math.imul(u,st)|0)|0)+((8191&(r=(r=r+Math.imul(u,ot)|0)+Math.imul(d,st)|0))<<13)|0;c=((s=s+Math.imul(d,ot)|0)+(r>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(O,q),r=(r=Math.imul(O,z))+Math.imul(D,q)|0,s=Math.imul(D,z),n=n+Math.imul(M,Y)|0,r=(r=r+Math.imul(M,G)|0)+Math.imul(L,Y)|0,s=s+Math.imul(L,G)|0,n=n+Math.imul(E,V)|0,r=(r=r+Math.imul(E,Q)|0)+Math.imul(k,V)|0,s=s+Math.imul(k,Q)|0,n=n+Math.imul(C,J)|0,r=(r=r+Math.imul(C,X)|0)+Math.imul(A,J)|0,s=s+Math.imul(A,X)|0,n=n+Math.imul(_,$)|0,r=(r=r+Math.imul(_,tt)|0)+Math.imul(w,$)|0,s=s+Math.imul(w,tt)|0,n=n+Math.imul(y,it)|0,r=(r=r+Math.imul(y,nt)|0)+Math.imul(b,it)|0,s=s+Math.imul(b,nt)|0,n=n+Math.imul(f,st)|0,r=(r=r+Math.imul(f,ot)|0)+Math.imul(m,st)|0,s=s+Math.imul(m,ot)|0;var Ct=(c+(n=n+Math.imul(u,lt)|0)|0)+((8191&(r=(r=r+Math.imul(u,ct)|0)+Math.imul(d,lt)|0))<<13)|0;c=((s=s+Math.imul(d,ct)|0)+(r>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(N,q),r=(r=Math.imul(N,z))+Math.imul(P,q)|0,s=Math.imul(P,z),n=n+Math.imul(O,Y)|0,r=(r=r+Math.imul(O,G)|0)+Math.imul(D,Y)|0,s=s+Math.imul(D,G)|0,n=n+Math.imul(M,V)|0,r=(r=r+Math.imul(M,Q)|0)+Math.imul(L,V)|0,s=s+Math.imul(L,Q)|0,n=n+Math.imul(E,J)|0,r=(r=r+Math.imul(E,X)|0)+Math.imul(k,J)|0,s=s+Math.imul(k,X)|0,n=n+Math.imul(C,$)|0,r=(r=r+Math.imul(C,tt)|0)+Math.imul(A,$)|0,s=s+Math.imul(A,tt)|0,n=n+Math.imul(_,it)|0,r=(r=r+Math.imul(_,nt)|0)+Math.imul(w,it)|0,s=s+Math.imul(w,nt)|0,n=n+Math.imul(y,st)|0,r=(r=r+Math.imul(y,ot)|0)+Math.imul(b,st)|0,s=s+Math.imul(b,ot)|0,n=n+Math.imul(f,lt)|0,r=(r=r+Math.imul(f,ct)|0)+Math.imul(m,lt)|0,s=s+Math.imul(m,ct)|0;var At=(c+(n=n+Math.imul(u,ut)|0)|0)+((8191&(r=(r=r+Math.imul(u,dt)|0)+Math.imul(d,ut)|0))<<13)|0;c=((s=s+Math.imul(d,dt)|0)+(r>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(Z,q),r=(r=Math.imul(Z,z))+Math.imul(B,q)|0,s=Math.imul(B,z),n=n+Math.imul(N,Y)|0,r=(r=r+Math.imul(N,G)|0)+Math.imul(P,Y)|0,s=s+Math.imul(P,G)|0,n=n+Math.imul(O,V)|0,r=(r=r+Math.imul(O,Q)|0)+Math.imul(D,V)|0,s=s+Math.imul(D,Q)|0,n=n+Math.imul(M,J)|0,r=(r=r+Math.imul(M,X)|0)+Math.imul(L,J)|0,s=s+Math.imul(L,X)|0,n=n+Math.imul(E,$)|0,r=(r=r+Math.imul(E,tt)|0)+Math.imul(k,$)|0,s=s+Math.imul(k,tt)|0,n=n+Math.imul(C,it)|0,r=(r=r+Math.imul(C,nt)|0)+Math.imul(A,it)|0,s=s+Math.imul(A,nt)|0,n=n+Math.imul(_,st)|0,r=(r=r+Math.imul(_,ot)|0)+Math.imul(w,st)|0,s=s+Math.imul(w,ot)|0,n=n+Math.imul(y,lt)|0,r=(r=r+Math.imul(y,ct)|0)+Math.imul(b,lt)|0,s=s+Math.imul(b,ct)|0,n=n+Math.imul(f,ut)|0,r=(r=r+Math.imul(f,dt)|0)+Math.imul(m,ut)|0,s=s+Math.imul(m,dt)|0;var St=(c+(n=n+Math.imul(u,ft)|0)|0)+((8191&(r=(r=r+Math.imul(u,mt)|0)+Math.imul(d,ft)|0))<<13)|0;c=((s=s+Math.imul(d,mt)|0)+(r>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(Z,Y),r=(r=Math.imul(Z,G))+Math.imul(B,Y)|0,s=Math.imul(B,G),n=n+Math.imul(N,V)|0,r=(r=r+Math.imul(N,Q)|0)+Math.imul(P,V)|0,s=s+Math.imul(P,Q)|0,n=n+Math.imul(O,J)|0,r=(r=r+Math.imul(O,X)|0)+Math.imul(D,J)|0,s=s+Math.imul(D,X)|0,n=n+Math.imul(M,$)|0,r=(r=r+Math.imul(M,tt)|0)+Math.imul(L,$)|0,s=s+Math.imul(L,tt)|0,n=n+Math.imul(E,it)|0,r=(r=r+Math.imul(E,nt)|0)+Math.imul(k,it)|0,s=s+Math.imul(k,nt)|0,n=n+Math.imul(C,st)|0,r=(r=r+Math.imul(C,ot)|0)+Math.imul(A,st)|0,s=s+Math.imul(A,ot)|0,n=n+Math.imul(_,lt)|0,r=(r=r+Math.imul(_,ct)|0)+Math.imul(w,lt)|0,s=s+Math.imul(w,ct)|0,n=n+Math.imul(y,ut)|0,r=(r=r+Math.imul(y,dt)|0)+Math.imul(b,ut)|0,s=s+Math.imul(b,dt)|0;var Et=(c+(n=n+Math.imul(f,ft)|0)|0)+((8191&(r=(r=r+Math.imul(f,mt)|0)+Math.imul(m,ft)|0))<<13)|0;c=((s=s+Math.imul(m,mt)|0)+(r>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(Z,V),r=(r=Math.imul(Z,Q))+Math.imul(B,V)|0,s=Math.imul(B,Q),n=n+Math.imul(N,J)|0,r=(r=r+Math.imul(N,X)|0)+Math.imul(P,J)|0,s=s+Math.imul(P,X)|0,n=n+Math.imul(O,$)|0,r=(r=r+Math.imul(O,tt)|0)+Math.imul(D,$)|0,s=s+Math.imul(D,tt)|0,n=n+Math.imul(M,it)|0,r=(r=r+Math.imul(M,nt)|0)+Math.imul(L,it)|0,s=s+Math.imul(L,nt)|0,n=n+Math.imul(E,st)|0,r=(r=r+Math.imul(E,ot)|0)+Math.imul(k,st)|0,s=s+Math.imul(k,ot)|0,n=n+Math.imul(C,lt)|0,r=(r=r+Math.imul(C,ct)|0)+Math.imul(A,lt)|0,s=s+Math.imul(A,ct)|0,n=n+Math.imul(_,ut)|0,r=(r=r+Math.imul(_,dt)|0)+Math.imul(w,ut)|0,s=s+Math.imul(w,dt)|0;var kt=(c+(n=n+Math.imul(y,ft)|0)|0)+((8191&(r=(r=r+Math.imul(y,mt)|0)+Math.imul(b,ft)|0))<<13)|0;c=((s=s+Math.imul(b,mt)|0)+(r>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(Z,J),r=(r=Math.imul(Z,X))+Math.imul(B,J)|0,s=Math.imul(B,X),n=n+Math.imul(N,$)|0,r=(r=r+Math.imul(N,tt)|0)+Math.imul(P,$)|0,s=s+Math.imul(P,tt)|0,n=n+Math.imul(O,it)|0,r=(r=r+Math.imul(O,nt)|0)+Math.imul(D,it)|0,s=s+Math.imul(D,nt)|0,n=n+Math.imul(M,st)|0,r=(r=r+Math.imul(M,ot)|0)+Math.imul(L,st)|0,s=s+Math.imul(L,ot)|0,n=n+Math.imul(E,lt)|0,r=(r=r+Math.imul(E,ct)|0)+Math.imul(k,lt)|0,s=s+Math.imul(k,ct)|0,n=n+Math.imul(C,ut)|0,r=(r=r+Math.imul(C,dt)|0)+Math.imul(A,ut)|0,s=s+Math.imul(A,dt)|0;var Tt=(c+(n=n+Math.imul(_,ft)|0)|0)+((8191&(r=(r=r+Math.imul(_,mt)|0)+Math.imul(w,ft)|0))<<13)|0;c=((s=s+Math.imul(w,mt)|0)+(r>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(Z,$),r=(r=Math.imul(Z,tt))+Math.imul(B,$)|0,s=Math.imul(B,tt),n=n+Math.imul(N,it)|0,r=(r=r+Math.imul(N,nt)|0)+Math.imul(P,it)|0,s=s+Math.imul(P,nt)|0,n=n+Math.imul(O,st)|0,r=(r=r+Math.imul(O,ot)|0)+Math.imul(D,st)|0,s=s+Math.imul(D,ot)|0,n=n+Math.imul(M,lt)|0,r=(r=r+Math.imul(M,ct)|0)+Math.imul(L,lt)|0,s=s+Math.imul(L,ct)|0,n=n+Math.imul(E,ut)|0,r=(r=r+Math.imul(E,dt)|0)+Math.imul(k,ut)|0,s=s+Math.imul(k,dt)|0;var Mt=(c+(n=n+Math.imul(C,ft)|0)|0)+((8191&(r=(r=r+Math.imul(C,mt)|0)+Math.imul(A,ft)|0))<<13)|0;c=((s=s+Math.imul(A,mt)|0)+(r>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(Z,it),r=(r=Math.imul(Z,nt))+Math.imul(B,it)|0,s=Math.imul(B,nt),n=n+Math.imul(N,st)|0,r=(r=r+Math.imul(N,ot)|0)+Math.imul(P,st)|0,s=s+Math.imul(P,ot)|0,n=n+Math.imul(O,lt)|0,r=(r=r+Math.imul(O,ct)|0)+Math.imul(D,lt)|0,s=s+Math.imul(D,ct)|0,n=n+Math.imul(M,ut)|0,r=(r=r+Math.imul(M,dt)|0)+Math.imul(L,ut)|0,s=s+Math.imul(L,dt)|0;var Lt=(c+(n=n+Math.imul(E,ft)|0)|0)+((8191&(r=(r=r+Math.imul(E,mt)|0)+Math.imul(k,ft)|0))<<13)|0;c=((s=s+Math.imul(k,mt)|0)+(r>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,n=Math.imul(Z,st),r=(r=Math.imul(Z,ot))+Math.imul(B,st)|0,s=Math.imul(B,ot),n=n+Math.imul(N,lt)|0,r=(r=r+Math.imul(N,ct)|0)+Math.imul(P,lt)|0,s=s+Math.imul(P,ct)|0,n=n+Math.imul(O,ut)|0,r=(r=r+Math.imul(O,dt)|0)+Math.imul(D,ut)|0,s=s+Math.imul(D,dt)|0;var It=(c+(n=n+Math.imul(M,ft)|0)|0)+((8191&(r=(r=r+Math.imul(M,mt)|0)+Math.imul(L,ft)|0))<<13)|0;c=((s=s+Math.imul(L,mt)|0)+(r>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(Z,lt),r=(r=Math.imul(Z,ct))+Math.imul(B,lt)|0,s=Math.imul(B,ct),n=n+Math.imul(N,ut)|0,r=(r=r+Math.imul(N,dt)|0)+Math.imul(P,ut)|0,s=s+Math.imul(P,dt)|0;var Ot=(c+(n=n+Math.imul(O,ft)|0)|0)+((8191&(r=(r=r+Math.imul(O,mt)|0)+Math.imul(D,ft)|0))<<13)|0;c=((s=s+Math.imul(D,mt)|0)+(r>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(Z,ut),r=(r=Math.imul(Z,dt))+Math.imul(B,ut)|0,s=Math.imul(B,dt);var Dt=(c+(n=n+Math.imul(N,ft)|0)|0)+((8191&(r=(r=r+Math.imul(N,mt)|0)+Math.imul(P,ft)|0))<<13)|0;c=((s=s+Math.imul(P,mt)|0)+(r>>>13)|0)+(Dt>>>26)|0,Dt&=67108863;var Rt=(c+(n=Math.imul(Z,ft))|0)+((8191&(r=(r=Math.imul(Z,mt))+Math.imul(B,ft)|0))<<13)|0;return c=((s=Math.imul(B,mt))+(r>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,l[0]=gt,l[1]=yt,l[2]=bt,l[3]=vt,l[4]=_t,l[5]=wt,l[6]=xt,l[7]=Ct,l[8]=At,l[9]=St,l[10]=Et,l[11]=kt,l[12]=Tt,l[13]=Mt,l[14]=Lt,l[15]=It,l[16]=Ot,l[17]=Dt,l[18]=Rt,0!==c&&(l[19]=c,i.length++),i};function m(t,e,i){return(new g).mulp(t,e,i)}function g(t,e){this.x=t,this.y=e}Math.imul||(f=p),s.prototype.mulTo=function(t,e){var i=this.length+t.length;return 10===this.length&&10===t.length?f(this,t,e):i<63?p(this,t,e):i<1024?function(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var n=0,r=0,s=0;s>>26)|0)>>>26,o&=67108863}i.words[s]=a,n=o,o=r}return 0!==n?i.words[s]=n:i.length--,i.strip()}(this,t,e):m(this,t,e)},g.prototype.makeRBT=function(t){for(var e=new Array(t),i=s.prototype._countBits(t)-1,n=0;n>=1;return n},g.prototype.permute=function(t,e,i,n,r,s){for(var o=0;o>>=1)r++;return 1<>>=13),s>>>=13;for(o=2*e;o>=26,e+=r/67108864|0,e+=s>>>26,this.words[i]=67108863&s}return 0!==e&&(this.words[i]=e,this.length++),this},s.prototype.muln=function(t){return this.clone().imuln(t)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),i=0;i>>n}return e}(t);if(0===e.length)return new s(1);for(var i=this,n=0;n=0);var e,i=t%26,r=(t-i)/26,s=67108863>>>26-i<<26-i;if(0!==i){var o=0;for(e=0;e>>26-i}o&&(this.words[e]=o,this.length++)}if(0!==r){for(e=this.length-1;e>=0;e--)this.words[e+r]=this.words[e];for(e=0;e=0),r=e?(e-e%26)/26:0;var s=t%26,o=Math.min((t-s)/26,this.length),a=67108863^67108863>>>s<o)for(this.length-=o,c=0;c=0&&(0!==h||c>=r);c--){var u=0|this.words[c];this.words[c]=h<<26-s|u>>>s,h=u&a}return l&&0!==h&&(l.words[l.length++]=h),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(t,e,i){return n(0===this.negative),this.iushrn(t,e,i)},s.prototype.shln=function(t){return this.clone().ishln(t)},s.prototype.ushln=function(t){return this.clone().iushln(t)},s.prototype.shrn=function(t){return this.clone().ishrn(t)},s.prototype.ushrn=function(t){return this.clone().iushrn(t)},s.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,i=(t-e)/26;return!(this.length<=i||!(this.words[i]&1<=0);var e=t%26,i=(t-e)/26;return n(0===this.negative,"imaskn works only with positive numbers"),this.length<=i?this:(0!==e&&i++,this.length=Math.min(i,this.length),0!==e&&(this.words[this.length-1]&=67108863^67108863>>>e<=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},s.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(a/67108864|0),this.words[r+i]=67108863&s}for(;r>26,this.words[r+i]=67108863&s;if(0===o)return this.strip();for(n(-1===o),o=0,r=0;r>26,this.words[r]=67108863&s;return this.negative=1,this.strip()},s.prototype._wordDiv=function(t,e){var i,n=this.clone(),r=t,o=0|r.words[r.length-1];0!=(i=26-this._countBits(o))&&(r=r.ushln(i),n.iushln(i),o=0|r.words[r.length-1]);var a,l=n.length-r.length;if("mod"!==e){(a=new s(null)).length=l+1,a.words=new Array(a.length);for(var c=0;c=0;u--){var d=67108864*(0|n.words[r.length+u])+(0|n.words[r.length+u-1]);for(d=Math.min(d/o|0,67108863),n._ishlnsubmul(r,d,u);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(r,1,u),n.isZero()||(n.negative^=1);a&&(a.words[u]=d)}return a&&a.strip(),n.strip(),"div"!==e&&0!==i&&n.iushrn(i),{div:a||null,mod:n}},s.prototype.divmod=function(t,e,i){return n(!t.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(r=a.div.neg()),"div"!==e&&(o=a.mod.neg(),i&&0!==o.negative&&o.iadd(t)),{div:r,mod:o}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(r=a.div.neg()),{div:r,mod:a.mod}):0!=(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(o=a.mod.neg(),i&&0!==o.negative&&o.isub(t)),{div:a.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new s(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new s(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new s(this.modn(t.words[0]))}:this._wordDiv(t,e);var r,o,a},s.prototype.div=function(t){return this.divmod(t,"div",!1).div},s.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},s.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},s.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var i=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),r=t.andln(1),s=i.cmp(n);return s<0||1===r&&0===s?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},s.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,i=0,r=this.length-1;r>=0;r--)i=(e*i+(0|this.words[r]))%t;return i},s.prototype.idivn=function(t){n(t<=67108863);for(var e=0,i=this.length-1;i>=0;i--){var r=(0|this.words[i])+67108864*e;this.words[i]=r/t|0,e=r%t}return this.strip()},s.prototype.divn=function(t){return this.clone().idivn(t)},s.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var r=new s(1),o=new s(0),a=new s(0),l=new s(1),c=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++c;for(var h=i.clone(),u=e.clone();!e.isZero();){for(var d=0,p=1;0==(e.words[0]&p)&&d<26;++d,p<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(r.isOdd()||o.isOdd())&&(r.iadd(h),o.isub(u)),r.iushrn(1),o.iushrn(1);for(var f=0,m=1;0==(i.words[0]&m)&&f<26;++f,m<<=1);if(f>0)for(i.iushrn(f);f-- >0;)(a.isOdd()||l.isOdd())&&(a.iadd(h),l.isub(u)),a.iushrn(1),l.iushrn(1);e.cmp(i)>=0?(e.isub(i),r.isub(a),o.isub(l)):(i.isub(e),a.isub(r),l.isub(o))}return{a:a,b:l,gcd:i.iushln(c)}},s.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var r,o=new s(1),a=new s(0),l=i.clone();e.cmpn(1)>0&&i.cmpn(1)>0;){for(var c=0,h=1;0==(e.words[0]&h)&&c<26;++c,h<<=1);if(c>0)for(e.iushrn(c);c-- >0;)o.isOdd()&&o.iadd(l),o.iushrn(1);for(var u=0,d=1;0==(i.words[0]&d)&&u<26;++u,d<<=1);if(u>0)for(i.iushrn(u);u-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);e.cmp(i)>=0?(e.isub(i),o.isub(a)):(i.isub(e),a.isub(o))}return(r=0===e.cmpn(1)?o:a).cmpn(0)<0&&r.iadd(t),r},s.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),i=t.clone();e.negative=0,i.negative=0;for(var n=0;e.isEven()&&i.isEven();n++)e.iushrn(1),i.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;i.isEven();)i.iushrn(1);var r=e.cmp(i);if(r<0){var s=e;e=i,i=s}else if(0===r||0===i.cmpn(1))break;e.isub(i)}return i.iushln(n)},s.prototype.invm=function(t){return this.egcd(t).a.umod(t)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(t){return this.words[0]&t},s.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,i=(t-e)/26,r=1<>>26,this.words[o]=a&=67108863}return 0!==s&&(this.words[o]=s,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(t){var e,i=t<0;if(0!==this.negative&&!i)return-1;if(0===this.negative&&i)return 1;if(this.strip(),this.length>1)e=1;else{i&&(t=-t),n(t<=67108863,"Number is too big");var r=0|this.words[0];e=r===t?0:rt.length)return 1;if(this.length=0;i--){var n=0|this.words[i],r=0|t.words[i];if(n!==r){nr&&(e=1);break}}return e},s.prototype.gtn=function(t){return 1===this.cmpn(t)},s.prototype.gt=function(t){return 1===this.cmp(t)},s.prototype.gten=function(t){return this.cmpn(t)>=0},s.prototype.gte=function(t){return this.cmp(t)>=0},s.prototype.ltn=function(t){return-1===this.cmpn(t)},s.prototype.lt=function(t){return-1===this.cmp(t)},s.prototype.lten=function(t){return this.cmpn(t)<=0},s.prototype.lte=function(t){return this.cmp(t)<=0},s.prototype.eqn=function(t){return 0===this.cmpn(t)},s.prototype.eq=function(t){return 0===this.cmp(t)},s.red=function(t){return new C(t)},s.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},s.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(t){return this.red=t,this},s.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},s.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},s.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},s.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},s.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},s.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},s.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},s.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},s.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var y={k256:null,p224:null,p192:null,p25519:null};function b(t,e){this.name=t,this.p=new s(e,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function C(t){if("string"==typeof t){var e=s._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function A(t){C.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}b.prototype._tmp=function(){var t=new s(null);return t.words=new Array(Math.ceil(this.n/13)),t},b.prototype.ireduce=function(t){var e,i=t;do{this.split(i,this.tmp),e=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e0?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},b.prototype.split=function(t,e){t.iushrn(this.n,0,e)},b.prototype.imulK=function(t){return t.imul(this.k)},r(v,b),v.prototype.split=function(t,e){for(var i=4194303,n=Math.min(t.length,9),r=0;r>>22,s=o}t.words[r-10]=s>>>=22,t.length-=0===s&&t.length>10?10:9},v.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i>>=26,t.words[i]=r,e=n}return 0!==e&&(t.words[t.length++]=e),t},s._prime=function(t){if(y[t])return y[t];var e;if("k256"===t)e=new v;else if("p224"===t)e=new _;else if("p192"===t)e=new w;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new x}return y[t]=e,e},C.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},C.prototype._verify2=function(t,e){n(0==(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},C.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},C.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},C.prototype.add=function(t,e){this._verify2(t,e);var i=t.add(e);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},C.prototype.iadd=function(t,e){this._verify2(t,e);var i=t.iadd(e);return i.cmp(this.m)>=0&&i.isub(this.m),i},C.prototype.sub=function(t,e){this._verify2(t,e);var i=t.sub(e);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},C.prototype.isub=function(t,e){this._verify2(t,e);var i=t.isub(e);return i.cmpn(0)<0&&i.iadd(this.m),i},C.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},C.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},C.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},C.prototype.isqr=function(t){return this.imul(t,t.clone())},C.prototype.sqr=function(t){return this.mul(t,t)},C.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var i=this.m.add(new s(1)).iushrn(2);return this.pow(t,i)}for(var r=this.m.subn(1),o=0;!r.isZero()&&0===r.andln(1);)o++,r.iushrn(1);n(!r.isZero());var a=new s(1).toRed(this),l=a.redNeg(),c=this.m.subn(1).iushrn(1),h=this.m.bitLength();for(h=new s(2*h*h).toRed(this);0!==this.pow(h,c).cmp(l);)h.redIAdd(l);for(var u=this.pow(h,r),d=this.pow(t,r.addn(1).iushrn(1)),p=this.pow(t,r),f=o;0!==p.cmp(a);){for(var m=p,g=0;0!==m.cmp(a);g++)m=m.redSqr();n(g=0;n--){for(var c=e.words[n],h=l-1;h>=0;h--){var u=c>>h&1;r!==i[0]&&(r=this.sqr(r)),0!==u||0!==o?(o<<=1,o|=u,(4==++a||0===n&&0===h)&&(r=this.mul(r,i[o]),a=0,o=0)):a=0}l=26}return r},C.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},C.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},s.mont=function(t){return new A(t)},r(A,C),A.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},A.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},A.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var i=t.imul(e),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),s=r;return r.cmp(this.m)>=0?s=r.isub(this.m):r.cmpn(0)<0&&(s=r.iadd(this.m)),s._forceRed(this)},A.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new s(0)._forceRed(this);var i=t.mul(e),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),o=r;return r.cmp(this.m)>=0?o=r.isub(this.m):r.cmpn(0)<0&&(o=r.iadd(this.m)),o._forceRed(this)},A.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=i.nmd(t),this)},5068:t=>{"use strict";var e,i="object"==typeof Reflect?Reflect:null,n=i&&"function"==typeof i.apply?i.apply:function(t,e,i){return Function.prototype.apply.call(t,e,i)};e=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var r=Number.isNaN||function(t){return t!=t};function s(){s.init.call(this)}t.exports=s,t.exports.once=function(t,e){return new Promise(function(i,n){function r(i){t.removeListener(e,s),n(i)}function s(){"function"==typeof t.removeListener&&t.removeListener("error",r),i([].slice.call(arguments))}m(t,e,s,{once:!0}),"error"!==e&&function(t,e,i){"function"==typeof t.on&&m(t,"error",e,{once:!0})}(t,r)})},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var o=10;function a(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function l(t){return void 0===t._maxListeners?s.defaultMaxListeners:t._maxListeners}function c(t,e,i,n){var r,s,o;if(a(i),void 0===(s=t._events)?(s=t._events=Object.create(null),t._eventsCount=0):(void 0!==s.newListener&&(t.emit("newListener",e,i.listener?i.listener:i),s=t._events),o=s[e]),void 0===o)o=s[e]=i,++t._eventsCount;else if("function"==typeof o?o=s[e]=n?[i,o]:[o,i]:n?o.unshift(i):o.push(i),(r=l(t))>0&&o.length>r&&!o.warned){o.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=t,c.type=e,c.count=o.length,console&&console.warn&&console.warn(c)}return t}function h(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function u(t,e,i){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:i},r=h.bind(n);return r.listener=i,n.wrapFn=r,r}function d(t,e,i){var n=t._events;if(void 0===n)return[];var r=n[e];return void 0===r?[]:"function"==typeof r?i?[r.listener||r]:[r]:i?function(t){for(var e=new Array(t.length),i=0;i0&&(o=e[0]),o instanceof Error)throw o;var a=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw a.context=o,a}var l=s[t];if(void 0===l)return!1;if("function"==typeof l)n(l,this,e);else{var c=l.length,h=f(l,c);for(i=0;i=0;s--)if(i[s]===e||i[s].listener===e){o=i[s].listener,r=s;break}if(r<0)return this;0===r?i.shift():function(t,e){for(;e+1=0;n--)this.removeListener(t,e[n]);return this},s.prototype.listeners=function(t){return d(this,t,!0)},s.prototype.rawListeners=function(t){return d(this,t,!1)},s.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):p.call(t,e)},s.prototype.listenerCount=p,s.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}},8386:(t,e,i)=>{var n=i(545).Buffer,r=i(9233);t.exports=function(t,e,i,s){if(n.isBuffer(t)||(t=n.from(t,"binary")),e&&(n.isBuffer(e)||(e=n.from(e,"binary")),8!==e.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var o=i/8,a=n.alloc(o),l=n.alloc(s||0),c=n.alloc(0);o>0||s>0;){var h=new r;h.update(c),h.update(t),e&&h.update(e),c=h.digest();var u=0;if(o>0){var d=a.length-o;u=Math.min(o,c.length),c.copy(a,d,0,u),o-=u}if(u0){var p=l.length-s,f=Math.min(s,c.length-u);c.copy(l,p,u,u+f),s-=f}}return c.fill(0),{key:a,iv:l}}},7338:(t,e,i)=>{"use strict";var n=i(932).Buffer,r=i(7612).Transform;function s(t){r.call(this),this._block=n.allocUnsafe(t),this._blockSize=t,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}i(5457)(s,r),s.prototype._transform=function(t,e,i){var n=null;try{this.update(t,e)}catch(r){n=r}i(n)},s.prototype._flush=function(t){var e=null;try{this.push(this.digest())}catch(i){e=i}t(e)},s.prototype.update=function(t,e){if(function(t,e){if(!n.isBuffer(t)&&"string"!=typeof t)throw new TypeError("Data must be a string or a buffer")}(t),this._finalized)throw new Error("Digest already called");n.isBuffer(t)||(t=n.from(t,e));for(var i=this._block,r=0;this._blockOffset+t.length-r>=this._blockSize;){for(var s=this._blockOffset;s0;++o)this._length[o]+=a,(a=this._length[o]/4294967296|0)>0&&(this._length[o]-=4294967296*a);return this},s.prototype._update=function(){throw new Error("_update is not implemented")},s.prototype.digest=function(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();void 0!==t&&(e=e.toString(t)),this._block.fill(0),this._blockOffset=0;for(var i=0;i<4;++i)this._length[i]=0;return e},s.prototype._digest=function(){throw new Error("_digest is not implemented")},t.exports=s},932:(t,e,i)=>{var n=i(3833),r=n.Buffer;function s(t,e){for(var i in t)e[i]=t[i]}function o(t,e,i){return r(t,e,i)}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?t.exports=n:(s(n,e),e.Buffer=o),o.prototype=Object.create(r.prototype),s(r,o),o.from=function(t,e,i){if("number"==typeof t)throw new TypeError("Argument must not be a number");return r(t,e,i)},o.alloc=function(t,e,i){if("number"!=typeof t)throw new TypeError("Argument must be a number");var n=r(t);return void 0!==e?"string"==typeof i?n.fill(e,i):n.fill(e):n.fill(0),n},o.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return r(t)},o.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},7749:(t,e,i)=>{var n=e;n.utils=i(9898),n.common=i(4901),n.sha=i(3205),n.ripemd=i(6425),n.hmac=i(4554),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},4901:(t,e,i)=>{"use strict";var n=i(9898),r=i(523);function s(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}e.BlockHash=s,s.prototype.update=function(t,e){if(t=n.toArray(t,e),this.pending=this.pending?this.pending.concat(t):t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){var i=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-i,t.length),0===this.pending.length&&(this.pending=null),t=n.join32(t,0,t.length-i,this.endian);for(var r=0;r>>24&255,n[r++]=t>>>16&255,n[r++]=t>>>8&255,n[r++]=255&t}else for(n[r++]=255&t,n[r++]=t>>>8&255,n[r++]=t>>>16&255,n[r++]=t>>>24&255,n[r++]=0,n[r++]=0,n[r++]=0,n[r++]=0,s=8;s{"use strict";var n=i(9898),r=i(523);function s(t,e,i){if(!(this instanceof s))return new s(t,e,i);this.Hash=t,this.blockSize=t.blockSize/8,this.outSize=t.outSize/8,this.inner=null,this.outer=null,this._init(n.toArray(e,i))}t.exports=s,s.prototype._init=function(t){t.length>this.blockSize&&(t=(new this.Hash).update(t).digest()),r(t.length<=this.blockSize);for(var e=t.length;e{"use strict";var n=i(9898),r=i(4901),s=n.rotl32,o=n.sum32,a=n.sum32_3,l=n.sum32_4,c=r.BlockHash;function h(){if(!(this instanceof h))return new h;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function u(t,e,i,n){return t<=15?e^i^n:t<=31?e&i|~e&n:t<=47?(e|~i)^n:t<=63?e&n|i&~n:e^(i|~n)}function d(t){return t<=15?0:t<=31?1518500249:t<=47?1859775393:t<=63?2400959708:2840853838}function p(t){return t<=15?1352829926:t<=31?1548603684:t<=47?1836072691:t<=63?2053994217:0}n.inherits(h,c),e.ripemd160=h,h.blockSize=512,h.outSize=160,h.hmacStrength=192,h.padLength=64,h.prototype._update=function(t,e){for(var i=this.h[0],n=this.h[1],r=this.h[2],c=this.h[3],h=this.h[4],b=i,v=n,_=r,w=c,x=h,C=0;C<80;C++){var A=o(s(l(i,u(C,n,r,c),t[f[C]+e],d(C)),g[C]),h);i=h,h=c,c=s(r,10),r=n,n=A,A=o(s(l(b,u(79-C,v,_,w),t[m[C]+e],p(C)),y[C]),x),b=x,x=w,w=s(_,10),_=v,v=A}A=a(this.h[1],r,w),this.h[1]=a(this.h[2],c,x),this.h[2]=a(this.h[3],h,b),this.h[3]=a(this.h[4],i,v),this.h[4]=a(this.h[0],n,_),this.h[0]=A},h.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h,"little"):n.split32(this.h,"little")};var f=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],m=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],g=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],y=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},3205:(t,e,i)=>{"use strict";e.sha1=i(6126),e.sha224=i(4615),e.sha256=i(1801),e.sha384=i(8391),e.sha512=i(940)},6126:(t,e,i)=>{"use strict";var n=i(9898),r=i(4901),s=i(1866),o=n.rotl32,a=n.sum32,l=n.sum32_5,c=s.ft_1,h=r.BlockHash,u=[1518500249,1859775393,2400959708,3395469782];function d(){if(!(this instanceof d))return new d;h.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}n.inherits(d,h),t.exports=d,d.blockSize=512,d.outSize=160,d.hmacStrength=80,d.padLength=64,d.prototype._update=function(t,e){for(var i=this.W,n=0;n<16;n++)i[n]=t[e+n];for(;n{"use strict";var n=i(9898),r=i(1801);function s(){if(!(this instanceof s))return new s;r.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}n.inherits(s,r),t.exports=s,s.blockSize=512,s.outSize=224,s.hmacStrength=192,s.padLength=64,s.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h.slice(0,7),"big"):n.split32(this.h.slice(0,7),"big")}},1801:(t,e,i)=>{"use strict";var n=i(9898),r=i(4901),s=i(1866),o=i(523),a=n.sum32,l=n.sum32_4,c=n.sum32_5,h=s.ch32,u=s.maj32,d=s.s0_256,p=s.s1_256,f=s.g0_256,m=s.g1_256,g=r.BlockHash,y=[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];function b(){if(!(this instanceof b))return new b;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=y,this.W=new Array(64)}n.inherits(b,g),t.exports=b,b.blockSize=512,b.outSize=256,b.hmacStrength=192,b.padLength=64,b.prototype._update=function(t,e){for(var i=this.W,n=0;n<16;n++)i[n]=t[e+n];for(;n{"use strict";var n=i(9898),r=i(940);function s(){if(!(this instanceof s))return new s;r.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}n.inherits(s,r),t.exports=s,s.blockSize=1024,s.outSize=384,s.hmacStrength=192,s.padLength=128,s.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h.slice(0,12),"big"):n.split32(this.h.slice(0,12),"big")}},940:(t,e,i)=>{"use strict";var n=i(9898),r=i(4901),s=i(523),o=n.rotr64_hi,a=n.rotr64_lo,l=n.shr64_hi,c=n.shr64_lo,h=n.sum64,u=n.sum64_hi,d=n.sum64_lo,p=n.sum64_4_hi,f=n.sum64_4_lo,m=n.sum64_5_hi,g=n.sum64_5_lo,y=r.BlockHash,b=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function v(){if(!(this instanceof v))return new v;y.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=b,this.W=new Array(160)}function _(t,e,i,n,r){var s=t&i^~t&r;return s<0&&(s+=4294967296),s}function w(t,e,i,n,r,s){var o=e&n^~e&s;return o<0&&(o+=4294967296),o}function x(t,e,i,n,r){var s=t&i^t&r^i&r;return s<0&&(s+=4294967296),s}function C(t,e,i,n,r,s){var o=e&n^e&s^n&s;return o<0&&(o+=4294967296),o}function A(t,e){var i=o(t,e,28)^o(e,t,2)^o(e,t,7);return i<0&&(i+=4294967296),i}function S(t,e){var i=a(t,e,28)^a(e,t,2)^a(e,t,7);return i<0&&(i+=4294967296),i}function E(t,e){var i=a(t,e,14)^a(t,e,18)^a(e,t,9);return i<0&&(i+=4294967296),i}function k(t,e){var i=o(t,e,1)^o(t,e,8)^l(t,e,7);return i<0&&(i+=4294967296),i}function T(t,e){var i=a(t,e,1)^a(t,e,8)^c(t,e,7);return i<0&&(i+=4294967296),i}function M(t,e){var i=a(t,e,19)^a(e,t,29)^c(t,e,6);return i<0&&(i+=4294967296),i}n.inherits(v,y),t.exports=v,v.blockSize=1024,v.outSize=512,v.hmacStrength=192,v.padLength=128,v.prototype._prepareBlock=function(t,e){for(var i=this.W,n=0;n<32;n++)i[n]=t[e+n];for(;n{"use strict";var n=i(9898).rotr32;function r(t,e,i){return t&e^~t&i}function s(t,e,i){return t&e^t&i^e&i}function o(t,e,i){return t^e^i}e.ft_1=function(t,e,i,n){return 0===t?r(e,i,n):1===t||3===t?o(e,i,n):2===t?s(e,i,n):void 0},e.ch32=r,e.maj32=s,e.p32=o,e.s0_256=function(t){return n(t,2)^n(t,13)^n(t,22)},e.s1_256=function(t){return n(t,6)^n(t,11)^n(t,25)},e.g0_256=function(t){return n(t,7)^n(t,18)^t>>>3},e.g1_256=function(t){return n(t,17)^n(t,19)^t>>>10}},9898:(t,e,i)=>{"use strict";var n=i(523),r=i(5457);function s(t,e){return 55296==(64512&t.charCodeAt(e))&&!(e<0||e+1>=t.length)&&56320==(64512&t.charCodeAt(e+1))}function o(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function a(t){return 1===t.length?"0"+t:t}function l(t){return 7===t.length?"0"+t:6===t.length?"00"+t:5===t.length?"000"+t:4===t.length?"0000"+t:3===t.length?"00000"+t:2===t.length?"000000"+t:1===t.length?"0000000"+t:t}e.inherits=r,e.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var i=[];if("string"==typeof t)if(e){if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t),r=0;r>6|192,i[n++]=63&o|128):s(t,r)?(o=65536+((1023&o)<<10)+(1023&t.charCodeAt(++r)),i[n++]=o>>18|240,i[n++]=o>>12&63|128,i[n++]=o>>6&63|128,i[n++]=63&o|128):(i[n++]=o>>12|224,i[n++]=o>>6&63|128,i[n++]=63&o|128)}else for(r=0;r>>0;return o},e.split32=function(t,e){for(var i=new Array(4*t.length),n=0,r=0;n>>24,i[r+1]=s>>>16&255,i[r+2]=s>>>8&255,i[r+3]=255&s):(i[r+3]=s>>>24,i[r+2]=s>>>16&255,i[r+1]=s>>>8&255,i[r]=255&s)}return i},e.rotr32=function(t,e){return t>>>e|t<<32-e},e.rotl32=function(t,e){return t<>>32-e},e.sum32=function(t,e){return t+e>>>0},e.sum32_3=function(t,e,i){return t+e+i>>>0},e.sum32_4=function(t,e,i,n){return t+e+i+n>>>0},e.sum32_5=function(t,e,i,n,r){return t+e+i+n+r>>>0},e.sum64=function(t,e,i,n){var r=n+t[e+1]>>>0;t[e]=(r>>0,t[e+1]=r},e.sum64_hi=function(t,e,i,n){return(e+n>>>0>>0},e.sum64_lo=function(t,e,i,n){return e+n>>>0},e.sum64_4_hi=function(t,e,i,n,r,s,o,a){var l=0,c=e;return l+=(c=c+n>>>0)>>0)>>0)>>0},e.sum64_4_lo=function(t,e,i,n,r,s,o,a){return e+n+s+a>>>0},e.sum64_5_hi=function(t,e,i,n,r,s,o,a,l,c){var h=0,u=e;return h+=(u=u+n>>>0)>>0)>>0)>>0)>>0},e.sum64_5_lo=function(t,e,i,n,r,s,o,a,l,c){return e+n+s+a+c>>>0},e.rotr64_hi=function(t,e,i){return(e<<32-i|t>>>i)>>>0},e.rotr64_lo=function(t,e,i){return(t<<32-i|e>>>i)>>>0},e.shr64_hi=function(t,e,i){return t>>>i},e.shr64_lo=function(t,e,i){return(t<<32-i|e>>>i)>>>0}},1753:(t,e,i)=>{"use strict";var n=i(7749),r=i(5856),s=i(523);function o(t){if(!(this instanceof o))return new o(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=r.toArray(t.entropy,t.entropyEnc||"hex"),i=r.toArray(t.nonce,t.nonceEnc||"hex"),n=r.toArray(t.pers,t.persEnc||"hex");s(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,i,n)}t.exports=o,o.prototype._init=function(t,e,i){var n=t.concat(e).concat(i);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var r=0;r=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(i||[])),this._reseed=1},o.prototype.generate=function(t,e,i,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof e&&(n=i,i=e,e=null),i&&(i=r.toArray(i,n||"hex"),this._update(i));for(var s=[];s.length{e.read=function(t,e,i,n,r){var s,o,a=8*r-n-1,l=(1<>1,h=-7,u=i?r-1:0,d=i?-1:1,p=t[e+u];for(u+=d,s=p&(1<<-h)-1,p>>=-h,h+=a;h>0;s=256*s+t[e+u],u+=d,h-=8);for(o=s&(1<<-h)-1,s>>=-h,h+=n;h>0;o=256*o+t[e+u],u+=d,h-=8);if(0===s)s=1-c;else{if(s===l)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,n),s-=c}return(p?-1:1)*o*Math.pow(2,s-n)},e.write=function(t,e,i,n,r,s){var o,a,l,c=8*s-r-1,h=(1<>1,d=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:s-1,f=n?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,o=h):(o=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-o))<1&&(o--,l*=2),(e+=o+u>=1?d/l:d*Math.pow(2,1-u))*l>=2&&(o++,l/=2),o+u>=h?(a=0,o=h):o+u>=1?(a=(e*l-1)*Math.pow(2,r),o+=u):(a=e*Math.pow(2,u-1)*Math.pow(2,r),o=0));r>=8;t[i+p]=255&a,p+=f,a/=256,r-=8);for(o=o<0;t[i+p]=255&o,p+=f,o/=256,c-=8);t[i+p-f]|=128*m}},5457:t=>{t.exports="function"==typeof Object.create?function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:function(t,e){if(e){t.super_=e;var i=function(){};i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}}},6265:t=>{var e={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==e.call(t)}},9233:(t,e,i)=>{"use strict";var n=i(5457),r=i(7338),s=i(545).Buffer,o=new Array(16);function a(){r.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function l(t,e){return t<>>32-e}function c(t,e,i,n,r,s,o){return l(t+(e&i|~e&n)+r+s|0,o)+e|0}function h(t,e,i,n,r,s,o){return l(t+(e&n|i&~n)+r+s|0,o)+e|0}function u(t,e,i,n,r,s,o){return l(t+(e^i^n)+r+s|0,o)+e|0}function d(t,e,i,n,r,s,o){return l(t+(i^(e|~n))+r+s|0,o)+e|0}n(a,r),a.prototype._update=function(){for(var t=o,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);var i=this._a,n=this._b,r=this._c,s=this._d;i=c(i,n,r,s,t[0],3614090360,7),s=c(s,i,n,r,t[1],3905402710,12),r=c(r,s,i,n,t[2],606105819,17),n=c(n,r,s,i,t[3],3250441966,22),i=c(i,n,r,s,t[4],4118548399,7),s=c(s,i,n,r,t[5],1200080426,12),r=c(r,s,i,n,t[6],2821735955,17),n=c(n,r,s,i,t[7],4249261313,22),i=c(i,n,r,s,t[8],1770035416,7),s=c(s,i,n,r,t[9],2336552879,12),r=c(r,s,i,n,t[10],4294925233,17),n=c(n,r,s,i,t[11],2304563134,22),i=c(i,n,r,s,t[12],1804603682,7),s=c(s,i,n,r,t[13],4254626195,12),r=c(r,s,i,n,t[14],2792965006,17),i=h(i,n=c(n,r,s,i,t[15],1236535329,22),r,s,t[1],4129170786,5),s=h(s,i,n,r,t[6],3225465664,9),r=h(r,s,i,n,t[11],643717713,14),n=h(n,r,s,i,t[0],3921069994,20),i=h(i,n,r,s,t[5],3593408605,5),s=h(s,i,n,r,t[10],38016083,9),r=h(r,s,i,n,t[15],3634488961,14),n=h(n,r,s,i,t[4],3889429448,20),i=h(i,n,r,s,t[9],568446438,5),s=h(s,i,n,r,t[14],3275163606,9),r=h(r,s,i,n,t[3],4107603335,14),n=h(n,r,s,i,t[8],1163531501,20),i=h(i,n,r,s,t[13],2850285829,5),s=h(s,i,n,r,t[2],4243563512,9),r=h(r,s,i,n,t[7],1735328473,14),i=u(i,n=h(n,r,s,i,t[12],2368359562,20),r,s,t[5],4294588738,4),s=u(s,i,n,r,t[8],2272392833,11),r=u(r,s,i,n,t[11],1839030562,16),n=u(n,r,s,i,t[14],4259657740,23),i=u(i,n,r,s,t[1],2763975236,4),s=u(s,i,n,r,t[4],1272893353,11),r=u(r,s,i,n,t[7],4139469664,16),n=u(n,r,s,i,t[10],3200236656,23),i=u(i,n,r,s,t[13],681279174,4),s=u(s,i,n,r,t[0],3936430074,11),r=u(r,s,i,n,t[3],3572445317,16),n=u(n,r,s,i,t[6],76029189,23),i=u(i,n,r,s,t[9],3654602809,4),s=u(s,i,n,r,t[12],3873151461,11),r=u(r,s,i,n,t[15],530742520,16),i=d(i,n=u(n,r,s,i,t[2],3299628645,23),r,s,t[0],4096336452,6),s=d(s,i,n,r,t[7],1126891415,10),r=d(r,s,i,n,t[14],2878612391,15),n=d(n,r,s,i,t[5],4237533241,21),i=d(i,n,r,s,t[12],1700485571,6),s=d(s,i,n,r,t[3],2399980690,10),r=d(r,s,i,n,t[10],4293915773,15),n=d(n,r,s,i,t[1],2240044497,21),i=d(i,n,r,s,t[8],1873313359,6),s=d(s,i,n,r,t[15],4264355552,10),r=d(r,s,i,n,t[6],2734768916,15),n=d(n,r,s,i,t[13],1309151649,21),i=d(i,n,r,s,t[4],4149444226,6),s=d(s,i,n,r,t[11],3174756917,10),r=d(r,s,i,n,t[2],718787259,15),n=d(n,r,s,i,t[9],3951481745,21),this._a=this._a+i|0,this._b=this._b+n|0,this._c=this._c+r|0,this._d=this._d+s|0},a.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=s.allocUnsafe(16);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t},t.exports=a},2533:(t,e,i)=>{var n=i(4870),r=i(8520);function s(t){this.rand=t||new r.Rand}t.exports=s,s.create=function(t){return new s(t)},s.prototype._randbelow=function(t){var e=t.bitLength(),i=Math.ceil(e/8);do{var r=new n(this.rand.generate(i))}while(r.cmp(t)>=0);return r},s.prototype._randrange=function(t,e){var i=e.sub(t);return t.add(this._randbelow(i))},s.prototype.test=function(t,e,i){var r=t.bitLength(),s=n.mont(t),o=new n(1).toRed(s);e||(e=Math.max(1,r/48|0));for(var a=t.subn(1),l=0;!a.testn(l);l++);for(var c=t.shrn(l),h=a.toRed(s);e>0;e--){var u=this._randrange(new n(2),a);i&&i(u);var d=u.toRed(s).redPow(c);if(0!==d.cmp(o)&&0!==d.cmp(h)){for(var p=1;p0;e--){var h=this._randrange(new n(2),o),u=t.gcd(h);if(0!==u.cmpn(1))return u;var d=h.toRed(r).redPow(l);if(0!==d.cmp(s)&&0!==d.cmp(c)){for(var p=1;p=65&&i<=70?i-55:i>=97&&i<=102?i-87:i-48&15}function l(t,e,i){var n=a(t,i);return i-1>=e&&(n|=a(t,i-1)<<4),n}function c(t,e,i,n){for(var r=0,s=Math.min(t.length,i),o=e;o=49?a-49+10:a>=17?a-17+10:a}return r}s.isBN=function(t){return t instanceof s||null!==t&&"object"==typeof t&&t.constructor.wordSize===s.wordSize&&Array.isArray(t.words)},s.max=function(t,e){return t.cmp(e)>0?t:e},s.min=function(t,e){return t.cmp(e)<0?t:e},s.prototype._init=function(t,e,i){if("number"==typeof t)return this._initNumber(t,e,i);if("object"==typeof t)return this._initArray(t,e,i);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var r=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(r++,this.negative=1),r=0;r-=3)this.words[s]|=(o=t[r]|t[r-1]<<8|t[r-2]<<16)<>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);else if("le"===i)for(r=0,s=0;r>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);return this.strip()},s.prototype._parseHex=function(t,e,i){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n=e;n-=2)r=l(t,e,n)<=18?(s-=18,this.words[o+=1]|=r>>>26):s+=8;else for(n=(t.length-e)%2==0?e+1:e;n=18?(s-=18,this.words[o+=1]|=r>>>26):s+=8;this.strip()},s.prototype._parseBase=function(t,e,i){this.words=[0],this.length=1;for(var n=0,r=1;r<=67108863;r*=e)n++;n--,r=r/e|0;for(var s=t.length-i,o=s%n,a=Math.min(s,s-o)+i,l=0,h=i;h1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?""};var h=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],u=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(t,e,i){i.negative=e.negative^t.negative;var n=t.length+e.length|0;i.length=n,n=n-1|0;var r=0|t.words[0],s=0|e.words[0],o=r*s,a=o/67108864|0;i.words[0]=67108863&o;for(var l=1;l>>26,h=67108863&a,u=Math.min(l,e.length-1),d=Math.max(0,l-t.length+1);d<=u;d++)c+=(o=(r=0|t.words[l-d|0])*(s=0|e.words[d])+h)/67108864|0,h=67108863&o;i.words[l]=0|h,a=0|c}return 0!==a?i.words[l]=0|a:i.length--,i.strip()}s.prototype.toString=function(t,e){var i;if(e=0|e||1,16===(t=t||10)||"hex"===t){i="";for(var r=0,s=0,o=0;o>>24-r&16777215)||o!==this.length-1?h[6-l.length]+l+i:l+i,(r+=2)>=26&&(r-=26,o--)}for(0!==s&&(i=s.toString(16)+i);i.length%e!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(t===(0|t)&&t>=2&&t<=36){var c=u[t],p=d[t];i="";var f=this.clone();for(f.negative=0;!f.isZero();){var m=f.modn(p).toString(t);i=(f=f.idivn(p)).isZero()?m+i:h[c-m.length]+m+i}for(this.isZero()&&(i="0"+i);i.length%e!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}n(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(t,e){return n(void 0!==o),this.toArrayLike(o,t,e)},s.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},s.prototype.toArrayLike=function(t,e,i){var r=this.byteLength(),s=i||Math.max(1,r);n(r<=s,"byte array longer than desired length"),n(s>0,"Requested array length <= 0"),this.strip();var o,a,l="le"===e,c=new t(s),h=this.clone();if(l){for(a=0;!h.isZero();a++)o=h.andln(255),h.iushrn(8),c[a]=o;for(;a=4096&&(i+=13,e>>>=13),e>=64&&(i+=7,e>>>=7),e>=8&&(i+=4,e>>>=4),e>=2&&(i+=2,e>>>=2),i+e},s.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,i=0;return 0==(8191&e)&&(i+=13,e>>>=13),0==(127&e)&&(i+=7,e>>>=7),0==(15&e)&&(i+=4,e>>>=4),0==(3&e)&&(i+=2,e>>>=2),0==(1&e)&&i++,i},s.prototype.bitLength=function(){var t=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+t},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},s.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},s.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var i=0;it.length?this.clone().iand(t):t.clone().iand(this)},s.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},s.prototype.iuxor=function(t){var e,i;this.length>t.length?(e=this,i=t):(e=t,i=this);for(var n=0;nt.length?this.clone().ixor(t):t.clone().ixor(this)},s.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},s.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),i=t%26;this._expand(e),i>0&&e--;for(var r=0;r0&&(this.words[r]=~this.words[r]&67108863>>26-i),this.strip()},s.prototype.notn=function(t){return this.clone().inotn(t)},s.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var i=t/26|0,r=t%26;return this._expand(i+1),this.words[i]=e?this.words[i]|1<t.length?(i=this,n=t):(i=t,n=this);for(var r=0,s=0;s>>26;for(;0!==r&&s>>26;if(this.length=i.length,0!==r)this.words[this.length]=r,this.length++;else if(i!==this)for(;st.length?this.clone().iadd(t):t.clone().iadd(this)},s.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,n,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(i=this,n=t):(i=t,n=this);for(var s=0,o=0;o>26,this.words[o]=67108863&e;for(;0!==s&&o>26,this.words[o]=67108863&e;if(0===s&&o>>13,p=0|o[1],f=8191&p,m=p>>>13,g=0|o[2],y=8191&g,b=g>>>13,v=0|o[3],_=8191&v,w=v>>>13,x=0|o[4],C=8191&x,A=x>>>13,S=0|o[5],E=8191&S,k=S>>>13,T=0|o[6],M=8191&T,L=T>>>13,I=0|o[7],O=8191&I,D=I>>>13,R=0|o[8],N=8191&R,P=R>>>13,F=0|o[9],Z=8191&F,B=F>>>13,U=0|a[0],q=8191&U,z=U>>>13,H=0|a[1],Y=8191&H,G=H>>>13,j=0|a[2],V=8191&j,Q=j>>>13,W=0|a[3],J=8191&W,X=W>>>13,K=0|a[4],$=8191&K,tt=K>>>13,et=0|a[5],it=8191&et,nt=et>>>13,rt=0|a[6],st=8191&rt,ot=rt>>>13,at=0|a[7],lt=8191&at,ct=at>>>13,ht=0|a[8],ut=8191&ht,dt=ht>>>13,pt=0|a[9],ft=8191&pt,mt=pt>>>13;i.negative=t.negative^e.negative,i.length=19;var gt=(c+(n=Math.imul(u,q))|0)+((8191&(r=(r=Math.imul(u,z))+Math.imul(d,q)|0))<<13)|0;c=((s=Math.imul(d,z))+(r>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(f,q),r=(r=Math.imul(f,z))+Math.imul(m,q)|0,s=Math.imul(m,z);var yt=(c+(n=n+Math.imul(u,Y)|0)|0)+((8191&(r=(r=r+Math.imul(u,G)|0)+Math.imul(d,Y)|0))<<13)|0;c=((s=s+Math.imul(d,G)|0)+(r>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(y,q),r=(r=Math.imul(y,z))+Math.imul(b,q)|0,s=Math.imul(b,z),n=n+Math.imul(f,Y)|0,r=(r=r+Math.imul(f,G)|0)+Math.imul(m,Y)|0,s=s+Math.imul(m,G)|0;var bt=(c+(n=n+Math.imul(u,V)|0)|0)+((8191&(r=(r=r+Math.imul(u,Q)|0)+Math.imul(d,V)|0))<<13)|0;c=((s=s+Math.imul(d,Q)|0)+(r>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(_,q),r=(r=Math.imul(_,z))+Math.imul(w,q)|0,s=Math.imul(w,z),n=n+Math.imul(y,Y)|0,r=(r=r+Math.imul(y,G)|0)+Math.imul(b,Y)|0,s=s+Math.imul(b,G)|0,n=n+Math.imul(f,V)|0,r=(r=r+Math.imul(f,Q)|0)+Math.imul(m,V)|0,s=s+Math.imul(m,Q)|0;var vt=(c+(n=n+Math.imul(u,J)|0)|0)+((8191&(r=(r=r+Math.imul(u,X)|0)+Math.imul(d,J)|0))<<13)|0;c=((s=s+Math.imul(d,X)|0)+(r>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(C,q),r=(r=Math.imul(C,z))+Math.imul(A,q)|0,s=Math.imul(A,z),n=n+Math.imul(_,Y)|0,r=(r=r+Math.imul(_,G)|0)+Math.imul(w,Y)|0,s=s+Math.imul(w,G)|0,n=n+Math.imul(y,V)|0,r=(r=r+Math.imul(y,Q)|0)+Math.imul(b,V)|0,s=s+Math.imul(b,Q)|0,n=n+Math.imul(f,J)|0,r=(r=r+Math.imul(f,X)|0)+Math.imul(m,J)|0,s=s+Math.imul(m,X)|0;var _t=(c+(n=n+Math.imul(u,$)|0)|0)+((8191&(r=(r=r+Math.imul(u,tt)|0)+Math.imul(d,$)|0))<<13)|0;c=((s=s+Math.imul(d,tt)|0)+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(E,q),r=(r=Math.imul(E,z))+Math.imul(k,q)|0,s=Math.imul(k,z),n=n+Math.imul(C,Y)|0,r=(r=r+Math.imul(C,G)|0)+Math.imul(A,Y)|0,s=s+Math.imul(A,G)|0,n=n+Math.imul(_,V)|0,r=(r=r+Math.imul(_,Q)|0)+Math.imul(w,V)|0,s=s+Math.imul(w,Q)|0,n=n+Math.imul(y,J)|0,r=(r=r+Math.imul(y,X)|0)+Math.imul(b,J)|0,s=s+Math.imul(b,X)|0,n=n+Math.imul(f,$)|0,r=(r=r+Math.imul(f,tt)|0)+Math.imul(m,$)|0,s=s+Math.imul(m,tt)|0;var wt=(c+(n=n+Math.imul(u,it)|0)|0)+((8191&(r=(r=r+Math.imul(u,nt)|0)+Math.imul(d,it)|0))<<13)|0;c=((s=s+Math.imul(d,nt)|0)+(r>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(M,q),r=(r=Math.imul(M,z))+Math.imul(L,q)|0,s=Math.imul(L,z),n=n+Math.imul(E,Y)|0,r=(r=r+Math.imul(E,G)|0)+Math.imul(k,Y)|0,s=s+Math.imul(k,G)|0,n=n+Math.imul(C,V)|0,r=(r=r+Math.imul(C,Q)|0)+Math.imul(A,V)|0,s=s+Math.imul(A,Q)|0,n=n+Math.imul(_,J)|0,r=(r=r+Math.imul(_,X)|0)+Math.imul(w,J)|0,s=s+Math.imul(w,X)|0,n=n+Math.imul(y,$)|0,r=(r=r+Math.imul(y,tt)|0)+Math.imul(b,$)|0,s=s+Math.imul(b,tt)|0,n=n+Math.imul(f,it)|0,r=(r=r+Math.imul(f,nt)|0)+Math.imul(m,it)|0,s=s+Math.imul(m,nt)|0;var xt=(c+(n=n+Math.imul(u,st)|0)|0)+((8191&(r=(r=r+Math.imul(u,ot)|0)+Math.imul(d,st)|0))<<13)|0;c=((s=s+Math.imul(d,ot)|0)+(r>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(O,q),r=(r=Math.imul(O,z))+Math.imul(D,q)|0,s=Math.imul(D,z),n=n+Math.imul(M,Y)|0,r=(r=r+Math.imul(M,G)|0)+Math.imul(L,Y)|0,s=s+Math.imul(L,G)|0,n=n+Math.imul(E,V)|0,r=(r=r+Math.imul(E,Q)|0)+Math.imul(k,V)|0,s=s+Math.imul(k,Q)|0,n=n+Math.imul(C,J)|0,r=(r=r+Math.imul(C,X)|0)+Math.imul(A,J)|0,s=s+Math.imul(A,X)|0,n=n+Math.imul(_,$)|0,r=(r=r+Math.imul(_,tt)|0)+Math.imul(w,$)|0,s=s+Math.imul(w,tt)|0,n=n+Math.imul(y,it)|0,r=(r=r+Math.imul(y,nt)|0)+Math.imul(b,it)|0,s=s+Math.imul(b,nt)|0,n=n+Math.imul(f,st)|0,r=(r=r+Math.imul(f,ot)|0)+Math.imul(m,st)|0,s=s+Math.imul(m,ot)|0;var Ct=(c+(n=n+Math.imul(u,lt)|0)|0)+((8191&(r=(r=r+Math.imul(u,ct)|0)+Math.imul(d,lt)|0))<<13)|0;c=((s=s+Math.imul(d,ct)|0)+(r>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(N,q),r=(r=Math.imul(N,z))+Math.imul(P,q)|0,s=Math.imul(P,z),n=n+Math.imul(O,Y)|0,r=(r=r+Math.imul(O,G)|0)+Math.imul(D,Y)|0,s=s+Math.imul(D,G)|0,n=n+Math.imul(M,V)|0,r=(r=r+Math.imul(M,Q)|0)+Math.imul(L,V)|0,s=s+Math.imul(L,Q)|0,n=n+Math.imul(E,J)|0,r=(r=r+Math.imul(E,X)|0)+Math.imul(k,J)|0,s=s+Math.imul(k,X)|0,n=n+Math.imul(C,$)|0,r=(r=r+Math.imul(C,tt)|0)+Math.imul(A,$)|0,s=s+Math.imul(A,tt)|0,n=n+Math.imul(_,it)|0,r=(r=r+Math.imul(_,nt)|0)+Math.imul(w,it)|0,s=s+Math.imul(w,nt)|0,n=n+Math.imul(y,st)|0,r=(r=r+Math.imul(y,ot)|0)+Math.imul(b,st)|0,s=s+Math.imul(b,ot)|0,n=n+Math.imul(f,lt)|0,r=(r=r+Math.imul(f,ct)|0)+Math.imul(m,lt)|0,s=s+Math.imul(m,ct)|0;var At=(c+(n=n+Math.imul(u,ut)|0)|0)+((8191&(r=(r=r+Math.imul(u,dt)|0)+Math.imul(d,ut)|0))<<13)|0;c=((s=s+Math.imul(d,dt)|0)+(r>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(Z,q),r=(r=Math.imul(Z,z))+Math.imul(B,q)|0,s=Math.imul(B,z),n=n+Math.imul(N,Y)|0,r=(r=r+Math.imul(N,G)|0)+Math.imul(P,Y)|0,s=s+Math.imul(P,G)|0,n=n+Math.imul(O,V)|0,r=(r=r+Math.imul(O,Q)|0)+Math.imul(D,V)|0,s=s+Math.imul(D,Q)|0,n=n+Math.imul(M,J)|0,r=(r=r+Math.imul(M,X)|0)+Math.imul(L,J)|0,s=s+Math.imul(L,X)|0,n=n+Math.imul(E,$)|0,r=(r=r+Math.imul(E,tt)|0)+Math.imul(k,$)|0,s=s+Math.imul(k,tt)|0,n=n+Math.imul(C,it)|0,r=(r=r+Math.imul(C,nt)|0)+Math.imul(A,it)|0,s=s+Math.imul(A,nt)|0,n=n+Math.imul(_,st)|0,r=(r=r+Math.imul(_,ot)|0)+Math.imul(w,st)|0,s=s+Math.imul(w,ot)|0,n=n+Math.imul(y,lt)|0,r=(r=r+Math.imul(y,ct)|0)+Math.imul(b,lt)|0,s=s+Math.imul(b,ct)|0,n=n+Math.imul(f,ut)|0,r=(r=r+Math.imul(f,dt)|0)+Math.imul(m,ut)|0,s=s+Math.imul(m,dt)|0;var St=(c+(n=n+Math.imul(u,ft)|0)|0)+((8191&(r=(r=r+Math.imul(u,mt)|0)+Math.imul(d,ft)|0))<<13)|0;c=((s=s+Math.imul(d,mt)|0)+(r>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(Z,Y),r=(r=Math.imul(Z,G))+Math.imul(B,Y)|0,s=Math.imul(B,G),n=n+Math.imul(N,V)|0,r=(r=r+Math.imul(N,Q)|0)+Math.imul(P,V)|0,s=s+Math.imul(P,Q)|0,n=n+Math.imul(O,J)|0,r=(r=r+Math.imul(O,X)|0)+Math.imul(D,J)|0,s=s+Math.imul(D,X)|0,n=n+Math.imul(M,$)|0,r=(r=r+Math.imul(M,tt)|0)+Math.imul(L,$)|0,s=s+Math.imul(L,tt)|0,n=n+Math.imul(E,it)|0,r=(r=r+Math.imul(E,nt)|0)+Math.imul(k,it)|0,s=s+Math.imul(k,nt)|0,n=n+Math.imul(C,st)|0,r=(r=r+Math.imul(C,ot)|0)+Math.imul(A,st)|0,s=s+Math.imul(A,ot)|0,n=n+Math.imul(_,lt)|0,r=(r=r+Math.imul(_,ct)|0)+Math.imul(w,lt)|0,s=s+Math.imul(w,ct)|0,n=n+Math.imul(y,ut)|0,r=(r=r+Math.imul(y,dt)|0)+Math.imul(b,ut)|0,s=s+Math.imul(b,dt)|0;var Et=(c+(n=n+Math.imul(f,ft)|0)|0)+((8191&(r=(r=r+Math.imul(f,mt)|0)+Math.imul(m,ft)|0))<<13)|0;c=((s=s+Math.imul(m,mt)|0)+(r>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(Z,V),r=(r=Math.imul(Z,Q))+Math.imul(B,V)|0,s=Math.imul(B,Q),n=n+Math.imul(N,J)|0,r=(r=r+Math.imul(N,X)|0)+Math.imul(P,J)|0,s=s+Math.imul(P,X)|0,n=n+Math.imul(O,$)|0,r=(r=r+Math.imul(O,tt)|0)+Math.imul(D,$)|0,s=s+Math.imul(D,tt)|0,n=n+Math.imul(M,it)|0,r=(r=r+Math.imul(M,nt)|0)+Math.imul(L,it)|0,s=s+Math.imul(L,nt)|0,n=n+Math.imul(E,st)|0,r=(r=r+Math.imul(E,ot)|0)+Math.imul(k,st)|0,s=s+Math.imul(k,ot)|0,n=n+Math.imul(C,lt)|0,r=(r=r+Math.imul(C,ct)|0)+Math.imul(A,lt)|0,s=s+Math.imul(A,ct)|0,n=n+Math.imul(_,ut)|0,r=(r=r+Math.imul(_,dt)|0)+Math.imul(w,ut)|0,s=s+Math.imul(w,dt)|0;var kt=(c+(n=n+Math.imul(y,ft)|0)|0)+((8191&(r=(r=r+Math.imul(y,mt)|0)+Math.imul(b,ft)|0))<<13)|0;c=((s=s+Math.imul(b,mt)|0)+(r>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(Z,J),r=(r=Math.imul(Z,X))+Math.imul(B,J)|0,s=Math.imul(B,X),n=n+Math.imul(N,$)|0,r=(r=r+Math.imul(N,tt)|0)+Math.imul(P,$)|0,s=s+Math.imul(P,tt)|0,n=n+Math.imul(O,it)|0,r=(r=r+Math.imul(O,nt)|0)+Math.imul(D,it)|0,s=s+Math.imul(D,nt)|0,n=n+Math.imul(M,st)|0,r=(r=r+Math.imul(M,ot)|0)+Math.imul(L,st)|0,s=s+Math.imul(L,ot)|0,n=n+Math.imul(E,lt)|0,r=(r=r+Math.imul(E,ct)|0)+Math.imul(k,lt)|0,s=s+Math.imul(k,ct)|0,n=n+Math.imul(C,ut)|0,r=(r=r+Math.imul(C,dt)|0)+Math.imul(A,ut)|0,s=s+Math.imul(A,dt)|0;var Tt=(c+(n=n+Math.imul(_,ft)|0)|0)+((8191&(r=(r=r+Math.imul(_,mt)|0)+Math.imul(w,ft)|0))<<13)|0;c=((s=s+Math.imul(w,mt)|0)+(r>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(Z,$),r=(r=Math.imul(Z,tt))+Math.imul(B,$)|0,s=Math.imul(B,tt),n=n+Math.imul(N,it)|0,r=(r=r+Math.imul(N,nt)|0)+Math.imul(P,it)|0,s=s+Math.imul(P,nt)|0,n=n+Math.imul(O,st)|0,r=(r=r+Math.imul(O,ot)|0)+Math.imul(D,st)|0,s=s+Math.imul(D,ot)|0,n=n+Math.imul(M,lt)|0,r=(r=r+Math.imul(M,ct)|0)+Math.imul(L,lt)|0,s=s+Math.imul(L,ct)|0,n=n+Math.imul(E,ut)|0,r=(r=r+Math.imul(E,dt)|0)+Math.imul(k,ut)|0,s=s+Math.imul(k,dt)|0;var Mt=(c+(n=n+Math.imul(C,ft)|0)|0)+((8191&(r=(r=r+Math.imul(C,mt)|0)+Math.imul(A,ft)|0))<<13)|0;c=((s=s+Math.imul(A,mt)|0)+(r>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(Z,it),r=(r=Math.imul(Z,nt))+Math.imul(B,it)|0,s=Math.imul(B,nt),n=n+Math.imul(N,st)|0,r=(r=r+Math.imul(N,ot)|0)+Math.imul(P,st)|0,s=s+Math.imul(P,ot)|0,n=n+Math.imul(O,lt)|0,r=(r=r+Math.imul(O,ct)|0)+Math.imul(D,lt)|0,s=s+Math.imul(D,ct)|0,n=n+Math.imul(M,ut)|0,r=(r=r+Math.imul(M,dt)|0)+Math.imul(L,ut)|0,s=s+Math.imul(L,dt)|0;var Lt=(c+(n=n+Math.imul(E,ft)|0)|0)+((8191&(r=(r=r+Math.imul(E,mt)|0)+Math.imul(k,ft)|0))<<13)|0;c=((s=s+Math.imul(k,mt)|0)+(r>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,n=Math.imul(Z,st),r=(r=Math.imul(Z,ot))+Math.imul(B,st)|0,s=Math.imul(B,ot),n=n+Math.imul(N,lt)|0,r=(r=r+Math.imul(N,ct)|0)+Math.imul(P,lt)|0,s=s+Math.imul(P,ct)|0,n=n+Math.imul(O,ut)|0,r=(r=r+Math.imul(O,dt)|0)+Math.imul(D,ut)|0,s=s+Math.imul(D,dt)|0;var It=(c+(n=n+Math.imul(M,ft)|0)|0)+((8191&(r=(r=r+Math.imul(M,mt)|0)+Math.imul(L,ft)|0))<<13)|0;c=((s=s+Math.imul(L,mt)|0)+(r>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(Z,lt),r=(r=Math.imul(Z,ct))+Math.imul(B,lt)|0,s=Math.imul(B,ct),n=n+Math.imul(N,ut)|0,r=(r=r+Math.imul(N,dt)|0)+Math.imul(P,ut)|0,s=s+Math.imul(P,dt)|0;var Ot=(c+(n=n+Math.imul(O,ft)|0)|0)+((8191&(r=(r=r+Math.imul(O,mt)|0)+Math.imul(D,ft)|0))<<13)|0;c=((s=s+Math.imul(D,mt)|0)+(r>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(Z,ut),r=(r=Math.imul(Z,dt))+Math.imul(B,ut)|0,s=Math.imul(B,dt);var Dt=(c+(n=n+Math.imul(N,ft)|0)|0)+((8191&(r=(r=r+Math.imul(N,mt)|0)+Math.imul(P,ft)|0))<<13)|0;c=((s=s+Math.imul(P,mt)|0)+(r>>>13)|0)+(Dt>>>26)|0,Dt&=67108863;var Rt=(c+(n=Math.imul(Z,ft))|0)+((8191&(r=(r=Math.imul(Z,mt))+Math.imul(B,ft)|0))<<13)|0;return c=((s=Math.imul(B,mt))+(r>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,l[0]=gt,l[1]=yt,l[2]=bt,l[3]=vt,l[4]=_t,l[5]=wt,l[6]=xt,l[7]=Ct,l[8]=At,l[9]=St,l[10]=Et,l[11]=kt,l[12]=Tt,l[13]=Mt,l[14]=Lt,l[15]=It,l[16]=Ot,l[17]=Dt,l[18]=Rt,0!==c&&(l[19]=c,i.length++),i};function m(t,e,i){return(new g).mulp(t,e,i)}function g(t,e){this.x=t,this.y=e}Math.imul||(f=p),s.prototype.mulTo=function(t,e){var i=this.length+t.length;return 10===this.length&&10===t.length?f(this,t,e):i<63?p(this,t,e):i<1024?function(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var n=0,r=0,s=0;s>>26)|0)>>>26,o&=67108863}i.words[s]=a,n=o,o=r}return 0!==n?i.words[s]=n:i.length--,i.strip()}(this,t,e):m(this,t,e)},g.prototype.makeRBT=function(t){for(var e=new Array(t),i=s.prototype._countBits(t)-1,n=0;n>=1;return n},g.prototype.permute=function(t,e,i,n,r,s){for(var o=0;o>>=1)r++;return 1<>>=13),s>>>=13;for(o=2*e;o>=26,e+=r/67108864|0,e+=s>>>26,this.words[i]=67108863&s}return 0!==e&&(this.words[i]=e,this.length++),this},s.prototype.muln=function(t){return this.clone().imuln(t)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),i=0;i>>n}return e}(t);if(0===e.length)return new s(1);for(var i=this,n=0;n=0);var e,i=t%26,r=(t-i)/26,s=67108863>>>26-i<<26-i;if(0!==i){var o=0;for(e=0;e>>26-i}o&&(this.words[e]=o,this.length++)}if(0!==r){for(e=this.length-1;e>=0;e--)this.words[e+r]=this.words[e];for(e=0;e=0),r=e?(e-e%26)/26:0;var s=t%26,o=Math.min((t-s)/26,this.length),a=67108863^67108863>>>s<o)for(this.length-=o,c=0;c=0&&(0!==h||c>=r);c--){var u=0|this.words[c];this.words[c]=h<<26-s|u>>>s,h=u&a}return l&&0!==h&&(l.words[l.length++]=h),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(t,e,i){return n(0===this.negative),this.iushrn(t,e,i)},s.prototype.shln=function(t){return this.clone().ishln(t)},s.prototype.ushln=function(t){return this.clone().iushln(t)},s.prototype.shrn=function(t){return this.clone().ishrn(t)},s.prototype.ushrn=function(t){return this.clone().iushrn(t)},s.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,i=(t-e)/26;return!(this.length<=i||!(this.words[i]&1<=0);var e=t%26,i=(t-e)/26;return n(0===this.negative,"imaskn works only with positive numbers"),this.length<=i?this:(0!==e&&i++,this.length=Math.min(i,this.length),0!==e&&(this.words[this.length-1]&=67108863^67108863>>>e<=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},s.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(a/67108864|0),this.words[r+i]=67108863&s}for(;r>26,this.words[r+i]=67108863&s;if(0===o)return this.strip();for(n(-1===o),o=0,r=0;r>26,this.words[r]=67108863&s;return this.negative=1,this.strip()},s.prototype._wordDiv=function(t,e){var i,n=this.clone(),r=t,o=0|r.words[r.length-1];0!=(i=26-this._countBits(o))&&(r=r.ushln(i),n.iushln(i),o=0|r.words[r.length-1]);var a,l=n.length-r.length;if("mod"!==e){(a=new s(null)).length=l+1,a.words=new Array(a.length);for(var c=0;c=0;u--){var d=67108864*(0|n.words[r.length+u])+(0|n.words[r.length+u-1]);for(d=Math.min(d/o|0,67108863),n._ishlnsubmul(r,d,u);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(r,1,u),n.isZero()||(n.negative^=1);a&&(a.words[u]=d)}return a&&a.strip(),n.strip(),"div"!==e&&0!==i&&n.iushrn(i),{div:a||null,mod:n}},s.prototype.divmod=function(t,e,i){return n(!t.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(r=a.div.neg()),"div"!==e&&(o=a.mod.neg(),i&&0!==o.negative&&o.iadd(t)),{div:r,mod:o}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(r=a.div.neg()),{div:r,mod:a.mod}):0!=(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(o=a.mod.neg(),i&&0!==o.negative&&o.isub(t)),{div:a.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new s(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new s(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new s(this.modn(t.words[0]))}:this._wordDiv(t,e);var r,o,a},s.prototype.div=function(t){return this.divmod(t,"div",!1).div},s.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},s.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},s.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var i=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),r=t.andln(1),s=i.cmp(n);return s<0||1===r&&0===s?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},s.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,i=0,r=this.length-1;r>=0;r--)i=(e*i+(0|this.words[r]))%t;return i},s.prototype.idivn=function(t){n(t<=67108863);for(var e=0,i=this.length-1;i>=0;i--){var r=(0|this.words[i])+67108864*e;this.words[i]=r/t|0,e=r%t}return this.strip()},s.prototype.divn=function(t){return this.clone().idivn(t)},s.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var r=new s(1),o=new s(0),a=new s(0),l=new s(1),c=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++c;for(var h=i.clone(),u=e.clone();!e.isZero();){for(var d=0,p=1;0==(e.words[0]&p)&&d<26;++d,p<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(r.isOdd()||o.isOdd())&&(r.iadd(h),o.isub(u)),r.iushrn(1),o.iushrn(1);for(var f=0,m=1;0==(i.words[0]&m)&&f<26;++f,m<<=1);if(f>0)for(i.iushrn(f);f-- >0;)(a.isOdd()||l.isOdd())&&(a.iadd(h),l.isub(u)),a.iushrn(1),l.iushrn(1);e.cmp(i)>=0?(e.isub(i),r.isub(a),o.isub(l)):(i.isub(e),a.isub(r),l.isub(o))}return{a:a,b:l,gcd:i.iushln(c)}},s.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var r,o=new s(1),a=new s(0),l=i.clone();e.cmpn(1)>0&&i.cmpn(1)>0;){for(var c=0,h=1;0==(e.words[0]&h)&&c<26;++c,h<<=1);if(c>0)for(e.iushrn(c);c-- >0;)o.isOdd()&&o.iadd(l),o.iushrn(1);for(var u=0,d=1;0==(i.words[0]&d)&&u<26;++u,d<<=1);if(u>0)for(i.iushrn(u);u-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);e.cmp(i)>=0?(e.isub(i),o.isub(a)):(i.isub(e),a.isub(o))}return(r=0===e.cmpn(1)?o:a).cmpn(0)<0&&r.iadd(t),r},s.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),i=t.clone();e.negative=0,i.negative=0;for(var n=0;e.isEven()&&i.isEven();n++)e.iushrn(1),i.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;i.isEven();)i.iushrn(1);var r=e.cmp(i);if(r<0){var s=e;e=i,i=s}else if(0===r||0===i.cmpn(1))break;e.isub(i)}return i.iushln(n)},s.prototype.invm=function(t){return this.egcd(t).a.umod(t)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(t){return this.words[0]&t},s.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,i=(t-e)/26,r=1<>>26,this.words[o]=a&=67108863}return 0!==s&&(this.words[o]=s,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(t){var e,i=t<0;if(0!==this.negative&&!i)return-1;if(0===this.negative&&i)return 1;if(this.strip(),this.length>1)e=1;else{i&&(t=-t),n(t<=67108863,"Number is too big");var r=0|this.words[0];e=r===t?0:rt.length)return 1;if(this.length=0;i--){var n=0|this.words[i],r=0|t.words[i];if(n!==r){nr&&(e=1);break}}return e},s.prototype.gtn=function(t){return 1===this.cmpn(t)},s.prototype.gt=function(t){return 1===this.cmp(t)},s.prototype.gten=function(t){return this.cmpn(t)>=0},s.prototype.gte=function(t){return this.cmp(t)>=0},s.prototype.ltn=function(t){return-1===this.cmpn(t)},s.prototype.lt=function(t){return-1===this.cmp(t)},s.prototype.lten=function(t){return this.cmpn(t)<=0},s.prototype.lte=function(t){return this.cmp(t)<=0},s.prototype.eqn=function(t){return 0===this.cmpn(t)},s.prototype.eq=function(t){return 0===this.cmp(t)},s.red=function(t){return new C(t)},s.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},s.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(t){return this.red=t,this},s.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},s.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},s.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},s.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},s.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},s.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},s.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},s.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},s.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var y={k256:null,p224:null,p192:null,p25519:null};function b(t,e){this.name=t,this.p=new s(e,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function C(t){if("string"==typeof t){var e=s._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function A(t){C.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}b.prototype._tmp=function(){var t=new s(null);return t.words=new Array(Math.ceil(this.n/13)),t},b.prototype.ireduce=function(t){var e,i=t;do{this.split(i,this.tmp),e=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e0?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},b.prototype.split=function(t,e){t.iushrn(this.n,0,e)},b.prototype.imulK=function(t){return t.imul(this.k)},r(v,b),v.prototype.split=function(t,e){for(var i=4194303,n=Math.min(t.length,9),r=0;r>>22,s=o}t.words[r-10]=s>>>=22,t.length-=0===s&&t.length>10?10:9},v.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i>>=26,t.words[i]=r,e=n}return 0!==e&&(t.words[t.length++]=e),t},s._prime=function(t){if(y[t])return y[t];var e;if("k256"===t)e=new v;else if("p224"===t)e=new _;else if("p192"===t)e=new w;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new x}return y[t]=e,e},C.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},C.prototype._verify2=function(t,e){n(0==(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},C.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},C.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},C.prototype.add=function(t,e){this._verify2(t,e);var i=t.add(e);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},C.prototype.iadd=function(t,e){this._verify2(t,e);var i=t.iadd(e);return i.cmp(this.m)>=0&&i.isub(this.m),i},C.prototype.sub=function(t,e){this._verify2(t,e);var i=t.sub(e);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},C.prototype.isub=function(t,e){this._verify2(t,e);var i=t.isub(e);return i.cmpn(0)<0&&i.iadd(this.m),i},C.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},C.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},C.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},C.prototype.isqr=function(t){return this.imul(t,t.clone())},C.prototype.sqr=function(t){return this.mul(t,t)},C.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var i=this.m.add(new s(1)).iushrn(2);return this.pow(t,i)}for(var r=this.m.subn(1),o=0;!r.isZero()&&0===r.andln(1);)o++,r.iushrn(1);n(!r.isZero());var a=new s(1).toRed(this),l=a.redNeg(),c=this.m.subn(1).iushrn(1),h=this.m.bitLength();for(h=new s(2*h*h).toRed(this);0!==this.pow(h,c).cmp(l);)h.redIAdd(l);for(var u=this.pow(h,r),d=this.pow(t,r.addn(1).iushrn(1)),p=this.pow(t,r),f=o;0!==p.cmp(a);){for(var m=p,g=0;0!==m.cmp(a);g++)m=m.redSqr();n(g=0;n--){for(var c=e.words[n],h=l-1;h>=0;h--){var u=c>>h&1;r!==i[0]&&(r=this.sqr(r)),0!==u||0!==o?(o<<=1,o|=u,(4==++a||0===n&&0===h)&&(r=this.mul(r,i[o]),a=0,o=0)):a=0}l=26}return r},C.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},C.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},s.mont=function(t){return new A(t)},r(A,C),A.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},A.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},A.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var i=t.imul(e),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),s=r;return r.cmp(this.m)>=0?s=r.isub(this.m):r.cmpn(0)<0&&(s=r.iadd(this.m)),s._forceRed(this)},A.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new s(0)._forceRed(this);var i=t.mul(e),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),o=r;return r.cmp(this.m)>=0?o=r.isub(this.m):r.cmpn(0)<0&&(o=r.iadd(this.m)),o._forceRed(this)},A.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=i.nmd(t),this)},523:t=>{function e(t,e){if(!t)throw new Error(e||"Assertion failed")}t.exports=e,e.equal=function(t,e,i){if(t!=e)throw new Error(i||"Assertion failed: "+t+" != "+e)}},5856:(t,e)=>{"use strict";var i=e;function n(t){return 1===t.length?"0"+t:t}function r(t){for(var e="",i=0;i>8,o=255&r;s?i.push(s,o):i.push(o)}return i},i.zero2=n,i.toHex=r,i.encode=function(t,e){return"hex"===e?r(t):t}},7038:(t,e,i)=>{"use strict";i.d(e,{op:()=>st,$V:()=>ht,Xd:()=>ut});var n=i(9666),r=i(5960),s=(i(5446),i(9610)),o=i(9568),a=(i(6424),i(1096),i(1572)),l=i(1511);function c(t){return getComputedStyle(t)}function h(t,e){for(var i in e){var n=e[i];"number"==typeof n&&(n+="px"),t.style[i]=n}return t}function u(t){var e=document.createElement("div");return e.className=t,e}var d="undefined"!=typeof Element&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function p(t,e){if(!d)throw new Error("No element matching method supported");return d.call(t,e)}function f(t){t.remove?t.remove():t.parentNode&&t.parentNode.removeChild(t)}function m(t,e){return Array.prototype.filter.call(t.children,function(t){return p(t,e)})}var g=function(t){return"ps__thumb-"+t},y=function(t){return"ps__rail-"+t},b="ps__child--consume",v="ps--focus",_="ps--clicking",w=function(t){return"ps--active-"+t},x=function(t){return"ps--scrolling-"+t},C={x:null,y:null};function A(t,e){var i=t.element.classList,n=x(e);i.contains(n)?clearTimeout(C[e]):i.add(n)}function S(t,e){C[e]=setTimeout(function(){return t.isAlive&&t.element.classList.remove(x(e))},t.settings.scrollingThreshold)}var E=function(t){this.element=t,this.handlers={}},k={isEmpty:{configurable:!0}};E.prototype.bind=function(t,e){void 0===this.handlers[t]&&(this.handlers[t]=[]),this.handlers[t].push(e),this.element.addEventListener(t,e,!1)},E.prototype.unbind=function(t,e){var i=this;this.handlers[t]=this.handlers[t].filter(function(n){return!(!e||n===e)||(i.element.removeEventListener(t,n,!1),!1)})},E.prototype.unbindAll=function(){for(var t in this.handlers)this.unbind(t)},k.isEmpty.get=function(){var t=this;return Object.keys(this.handlers).every(function(e){return 0===t.handlers[e].length})},Object.defineProperties(E.prototype,k);var T=function(){this.eventElements=[]};function M(t){if("function"==typeof window.CustomEvent)return new CustomEvent(t);var e=document.createEvent("CustomEvent");return e.initCustomEvent(t,!1,!1,void 0),e}function L(t,e,i,n,r){var s;if(void 0===n&&(n=!0),void 0===r&&(r=!1),"top"===e)s=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==e)throw new Error("A proper axis should be provided");s=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function(t,e,i,n,r){var s=i[0],o=i[1],a=i[2],l=i[3],c=i[4],h=i[5];void 0===n&&(n=!0),void 0===r&&(r=!1);var u=t.element;t.reach[l]=null,u[a]<1&&(t.reach[l]="start"),u[a]>t[s]-t[o]-1&&(t.reach[l]="end"),e&&(u.dispatchEvent(M("ps-scroll-"+l)),e<0?u.dispatchEvent(M("ps-scroll-"+c)):e>0&&u.dispatchEvent(M("ps-scroll-"+h)),n&&function(t,e){A(t,e),S(t,e)}(t,l)),t.reach[l]&&(e||r)&&u.dispatchEvent(M("ps-"+l+"-reach-"+t.reach[l]))}(t,i,s,n,r)}function I(t){return parseInt(t,10)||0}T.prototype.eventElement=function(t){var e=this.eventElements.filter(function(e){return e.element===t})[0];return e||(e=new E(t),this.eventElements.push(e)),e},T.prototype.bind=function(t,e,i){this.eventElement(t).bind(e,i)},T.prototype.unbind=function(t,e,i){var n=this.eventElement(t);n.unbind(e,i),n.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(n),1)},T.prototype.unbindAll=function(){this.eventElements.forEach(function(t){return t.unbindAll()}),this.eventElements=[]},T.prototype.once=function(t,e,i){var n=this.eventElement(t),r=function(t){n.unbind(e,r),i(t)};n.bind(e,r)};var O={isWebKit:"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style,supportsTouch:"undefined"!=typeof window&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:"undefined"!=typeof navigator&&navigator.msMaxTouchPoints,isChrome:"undefined"!=typeof navigator&&/Chrome/i.test(navigator&&navigator.userAgent)};function D(t){var e=t.element,i=Math.floor(e.scrollTop),n=e.getBoundingClientRect();t.containerWidth=Math.ceil(n.width),t.containerHeight=Math.ceil(n.height),t.contentWidth=e.scrollWidth,t.contentHeight=e.scrollHeight,e.contains(t.scrollbarXRail)||(m(e,y("x")).forEach(function(t){return f(t)}),e.appendChild(t.scrollbarXRail)),e.contains(t.scrollbarYRail)||(m(e,y("y")).forEach(function(t){return f(t)}),e.appendChild(t.scrollbarYRail)),!t.settings.suppressScrollX&&t.containerWidth+t.settings.scrollXMarginOffset=t.railXWidth-t.scrollbarXWidth&&(t.scrollbarXLeft=t.railXWidth-t.scrollbarXWidth),t.scrollbarYTop>=t.railYHeight-t.scrollbarYHeight&&(t.scrollbarYTop=t.railYHeight-t.scrollbarYHeight),function(t,e){var i={width:e.railXWidth},n=Math.floor(t.scrollTop);i.left=e.isRtl?e.negativeScrollAdjustment+t.scrollLeft+e.containerWidth-e.contentWidth:t.scrollLeft,e.isScrollbarXUsingBottom?i.bottom=e.scrollbarXBottom-n:i.top=e.scrollbarXTop+n,h(e.scrollbarXRail,i);var r={top:n,height:e.railYHeight};e.isScrollbarYUsingRight?r.right=e.isRtl?e.contentWidth-(e.negativeScrollAdjustment+t.scrollLeft)-e.scrollbarYRight-e.scrollbarYOuterWidth-9:e.scrollbarYRight-t.scrollLeft:r.left=e.isRtl?e.negativeScrollAdjustment+t.scrollLeft+2*e.containerWidth-e.contentWidth-e.scrollbarYLeft-e.scrollbarYOuterWidth:e.scrollbarYLeft+t.scrollLeft,h(e.scrollbarYRail,r),h(e.scrollbarX,{left:e.scrollbarXLeft,width:e.scrollbarXWidth-e.railBorderXWidth}),h(e.scrollbarY,{top:e.scrollbarYTop,height:e.scrollbarYHeight-e.railBorderYWidth})}(e,t),t.scrollbarXActive?e.classList.add(w("x")):(e.classList.remove(w("x")),t.scrollbarXWidth=0,t.scrollbarXLeft=0,e.scrollLeft=!0===t.isRtl?t.contentWidth:0),t.scrollbarYActive?e.classList.add(w("y")):(e.classList.remove(w("y")),t.scrollbarYHeight=0,t.scrollbarYTop=0,e.scrollTop=0)}function R(t,e){return t.settings.minScrollbarLength&&(e=Math.max(e,t.settings.minScrollbarLength)),t.settings.maxScrollbarLength&&(e=Math.min(e,t.settings.maxScrollbarLength)),e}function N(t,e){var i=e[0],n=e[1],r=e[2],s=e[3],o=e[4],a=e[5],l=e[6],c=e[7],h=e[8],u=t.element,d=null,p=null,f=null;function m(e){e.touches&&e.touches[0]&&(e[r]=e.touches[0].pageY),u[l]=d+f*(e[r]-p),A(t,c),D(t),e.stopPropagation(),e.preventDefault()}function g(){S(t,c),t[h].classList.remove(_),t.event.unbind(t.ownerDocument,"mousemove",m)}function y(e,o){d=u[l],o&&e.touches&&(e[r]=e.touches[0].pageY),p=e[r],f=(t[n]-t[i])/(t[s]-t[a]),o?t.event.bind(t.ownerDocument,"touchmove",m):(t.event.bind(t.ownerDocument,"mousemove",m),t.event.once(t.ownerDocument,"mouseup",g),e.preventDefault()),t[h].classList.add(_),e.stopPropagation()}t.event.bind(t[o],"mousedown",function(t){y(t)}),t.event.bind(t[o],"touchstart",function(t){y(t,!0)})}var P={"click-rail":function(t){t.event.bind(t.scrollbarY,"mousedown",function(t){return t.stopPropagation()}),t.event.bind(t.scrollbarYRail,"mousedown",function(e){var i=e.pageY-window.pageYOffset-t.scrollbarYRail.getBoundingClientRect().top;t.element.scrollTop+=(i>t.scrollbarYTop?1:-1)*t.containerHeight,D(t),e.stopPropagation()}),t.event.bind(t.scrollbarX,"mousedown",function(t){return t.stopPropagation()}),t.event.bind(t.scrollbarXRail,"mousedown",function(e){var i=e.pageX-window.pageXOffset-t.scrollbarXRail.getBoundingClientRect().left;t.element.scrollLeft+=(i>t.scrollbarXLeft?1:-1)*t.containerWidth,D(t),e.stopPropagation()})},"drag-thumb":function(t){N(t,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),N(t,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function(t){var e=t.element;t.event.bind(t.ownerDocument,"keydown",function(i){if(!(i.isDefaultPrevented&&i.isDefaultPrevented()||i.defaultPrevented)&&(p(e,":hover")||p(t.scrollbarX,":focus")||p(t.scrollbarY,":focus"))){var n,r=document.activeElement?document.activeElement:t.ownerDocument.activeElement;if(r){if("IFRAME"===r.tagName)r=r.contentDocument.activeElement;else for(;r.shadowRoot;)r=r.shadowRoot.activeElement;if(p(n=r,"input,[contenteditable]")||p(n,"select,[contenteditable]")||p(n,"textarea,[contenteditable]")||p(n,"button,[contenteditable]"))return}var s=0,o=0;switch(i.which){case 37:s=i.metaKey?-t.contentWidth:i.altKey?-t.containerWidth:-30;break;case 38:o=i.metaKey?t.contentHeight:i.altKey?t.containerHeight:30;break;case 39:s=i.metaKey?t.contentWidth:i.altKey?t.containerWidth:30;break;case 40:o=i.metaKey?-t.contentHeight:i.altKey?-t.containerHeight:-30;break;case 32:o=i.shiftKey?t.containerHeight:-t.containerHeight;break;case 33:o=t.containerHeight;break;case 34:o=-t.containerHeight;break;case 36:o=t.contentHeight;break;case 35:o=-t.contentHeight;break;default:return}t.settings.suppressScrollX&&0!==s||t.settings.suppressScrollY&&0!==o||(e.scrollTop-=o,e.scrollLeft+=s,D(t),function(i,n){var r=Math.floor(e.scrollTop);if(0===i){if(!t.scrollbarYActive)return!1;if(0===r&&n>0||r>=t.contentHeight-t.containerHeight&&n<0)return!t.settings.wheelPropagation}var s=e.scrollLeft;if(0===n){if(!t.scrollbarXActive)return!1;if(0===s&&i<0||s>=t.contentWidth-t.containerWidth&&i>0)return!t.settings.wheelPropagation}return!0}(s,o)&&i.preventDefault())}})},wheel:function(t){var e=t.element;function i(i){var n=function(t){var e=t.deltaX,i=-1*t.deltaY;return void 0!==e&&void 0!==i||(e=-1*t.wheelDeltaX/6,i=t.wheelDeltaY/6),t.deltaMode&&1===t.deltaMode&&(e*=10,i*=10),e!=e&&i!=i&&(e=0,i=t.wheelDelta),t.shiftKey?[-i,-e]:[e,i]}(i),r=n[0],s=n[1];if(!function(t,i,n){if(!O.isWebKit&&e.querySelector("select:focus"))return!0;if(!e.contains(t))return!1;for(var r=t;r&&r!==e;){if(r.classList.contains(b))return!0;var s=c(r);if(n&&s.overflowY.match(/(scroll|auto)/)){var o=r.scrollHeight-r.clientHeight;if(o>0&&(r.scrollTop>0&&n<0||r.scrollTop0))return!0}if(i&&s.overflowX.match(/(scroll|auto)/)){var a=r.scrollWidth-r.clientWidth;if(a>0&&(r.scrollLeft>0&&i<0||r.scrollLeft0))return!0}r=r.parentNode}return!1}(i.target,r,s)){var o=!1;t.settings.useBothWheelAxes?t.scrollbarYActive&&!t.scrollbarXActive?(s?e.scrollTop-=s*t.settings.wheelSpeed:e.scrollTop+=r*t.settings.wheelSpeed,o=!0):t.scrollbarXActive&&!t.scrollbarYActive&&(r?e.scrollLeft+=r*t.settings.wheelSpeed:e.scrollLeft-=s*t.settings.wheelSpeed,o=!0):(e.scrollTop-=s*t.settings.wheelSpeed,e.scrollLeft+=r*t.settings.wheelSpeed),D(t),(o=o||function(i,n){var r=Math.floor(e.scrollTop),s=0===e.scrollTop,o=r+e.offsetHeight===e.scrollHeight,a=0===e.scrollLeft,l=e.scrollLeft+e.offsetWidth===e.scrollWidth;return!(Math.abs(n)>Math.abs(i)?s||o:a||l)||!t.settings.wheelPropagation}(r,s))&&!i.ctrlKey&&(i.stopPropagation(),i.preventDefault())}}void 0!==window.onwheel?t.event.bind(e,"wheel",i):void 0!==window.onmousewheel&&t.event.bind(e,"mousewheel",i)},touch:function(t){if(O.supportsTouch||O.supportsIePointer){var e=t.element,i={},n=0,r={},s=null;O.supportsTouch?(t.event.bind(e,"touchstart",h),t.event.bind(e,"touchmove",u),t.event.bind(e,"touchend",d)):O.supportsIePointer&&(window.PointerEvent?(t.event.bind(e,"pointerdown",h),t.event.bind(e,"pointermove",u),t.event.bind(e,"pointerup",d)):window.MSPointerEvent&&(t.event.bind(e,"MSPointerDown",h),t.event.bind(e,"MSPointerMove",u),t.event.bind(e,"MSPointerUp",d)))}function o(i,n){e.scrollTop-=n,e.scrollLeft-=i,D(t)}function a(t){return t.targetTouches?t.targetTouches[0]:t}function l(t){return!(t.pointerType&&"pen"===t.pointerType&&0===t.buttons||(!t.targetTouches||1!==t.targetTouches.length)&&(!t.pointerType||"mouse"===t.pointerType||t.pointerType===t.MSPOINTER_TYPE_MOUSE))}function h(t){if(l(t)){var e=a(t);i.pageX=e.pageX,i.pageY=e.pageY,n=(new Date).getTime(),null!==s&&clearInterval(s)}}function u(s){if(l(s)){var h=a(s),u={pageX:h.pageX,pageY:h.pageY},d=u.pageX-i.pageX,p=u.pageY-i.pageY;if(function(t,i,n){if(!e.contains(t))return!1;for(var r=t;r&&r!==e;){if(r.classList.contains(b))return!0;var s=c(r);if(n&&s.overflowY.match(/(scroll|auto)/)){var o=r.scrollHeight-r.clientHeight;if(o>0&&(r.scrollTop>0&&n<0||r.scrollTop0))return!0}if(i&&s.overflowX.match(/(scroll|auto)/)){var a=r.scrollWidth-r.clientWidth;if(a>0&&(r.scrollLeft>0&&i<0||r.scrollLeft0))return!0}r=r.parentNode}return!1}(s.target,d,p))return;o(d,p),i=u;var f=(new Date).getTime(),m=f-n;m>0&&(r.x=d/m,r.y=p/m,n=f),function(i,n){var r=Math.floor(e.scrollTop),s=e.scrollLeft,o=Math.abs(i),a=Math.abs(n);if(a>o){if(n<0&&r===t.contentHeight-t.containerHeight||n>0&&0===r)return 0===window.scrollY&&n>0&&O.isChrome}else if(o>a&&(i<0&&s===t.contentWidth-t.containerWidth||i>0&&0===s))return!0;return!0}(d,p)&&s.preventDefault()}}function d(){t.settings.swipeEasing&&(clearInterval(s),s=setInterval(function(){t.isInitialized?clearInterval(s):r.x||r.y?Math.abs(r.x)<.01&&Math.abs(r.y)<.01?clearInterval(s):(o(30*r.x,30*r.y),r.x*=.8,r.y*=.8):clearInterval(s)},10))}}},F=function(t,e){var i=this;if(void 0===e&&(e={}),"string"==typeof t&&(t=document.querySelector(t)),!t||!t.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var n in this.element=t,t.classList.add("ps"),this.settings={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1},e)this.settings[n]=e[n];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var r,s,o=function(){return t.classList.add(v)},a=function(){return t.classList.remove(v)};this.isRtl="rtl"===c(t).direction,!0===this.isRtl&&t.classList.add("ps__rtl"),this.isNegativeScroll=(s=t.scrollLeft,t.scrollLeft=-1,r=t.scrollLeft<0,t.scrollLeft=s,r),this.negativeScrollAdjustment=this.isNegativeScroll?t.scrollWidth-t.clientWidth:0,this.event=new T,this.ownerDocument=t.ownerDocument||document,this.scrollbarXRail=u(y("x")),t.appendChild(this.scrollbarXRail),this.scrollbarX=u(g("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",o),this.event.bind(this.scrollbarX,"blur",a),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var l=c(this.scrollbarXRail);this.scrollbarXBottom=parseInt(l.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=I(l.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=I(l.borderLeftWidth)+I(l.borderRightWidth),h(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=I(l.marginLeft)+I(l.marginRight),h(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=u(y("y")),t.appendChild(this.scrollbarYRail),this.scrollbarY=u(g("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",o),this.event.bind(this.scrollbarY,"blur",a),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var d=c(this.scrollbarYRail);this.scrollbarYRight=parseInt(d.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=I(d.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function(t){var e=c(t);return I(e.width)+I(e.paddingLeft)+I(e.paddingRight)+I(e.borderLeftWidth)+I(e.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=I(d.borderTopWidth)+I(d.borderBottomWidth),h(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=I(d.marginTop)+I(d.marginBottom),h(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:t.scrollLeft<=0?"start":t.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:t.scrollTop<=0?"start":t.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(t){return P[t](i)}),this.lastScrollTop=Math.floor(t.scrollTop),this.lastScrollLeft=t.scrollLeft,this.event.bind(this.element,"scroll",function(t){return i.onScroll(t)}),D(this)};F.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,h(this.scrollbarXRail,{display:"block"}),h(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=I(c(this.scrollbarXRail).marginLeft)+I(c(this.scrollbarXRail).marginRight),this.railYMarginHeight=I(c(this.scrollbarYRail).marginTop)+I(c(this.scrollbarYRail).marginBottom),h(this.scrollbarXRail,{display:"none"}),h(this.scrollbarYRail,{display:"none"}),D(this),L(this,"top",0,!1,!0),L(this,"left",0,!1,!0),h(this.scrollbarXRail,{display:""}),h(this.scrollbarYRail,{display:""}))},F.prototype.onScroll=function(t){this.isAlive&&(D(this),L(this,"top",this.element.scrollTop-this.lastScrollTop),L(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},F.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),f(this.scrollbarX),f(this.scrollbarY),f(this.scrollbarXRail),f(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},F.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(t){return!t.match(/^ps([-_].+|)$/)}).join(" ")};const Z=F;var B=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var i=-1;return t.some(function(t,n){return t[0]===e&&(i=n,!0)}),i}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var i=t(this.__entries__,e),n=this.__entries__[i];return n&&n[1]},e.prototype.set=function(e,i){var n=t(this.__entries__,e);~n?this.__entries__[n][1]=i:this.__entries__.push([e,i])},e.prototype.delete=function(e){var i=this.__entries__,n=t(i,e);~n&&i.splice(n,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var i=0,n=this.__entries__;i0},t.prototype.connect_=function(){U&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Y?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){U&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,i=void 0===e?"":e;H.some(function(t){return!!~i.indexOf(t)})&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),j=function(t,e){for(var i=0,n=Object.keys(e);i0},t}(),it="undefined"!=typeof WeakMap?new WeakMap:new B,nt=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var i=G.getInstance(),n=new et(e,i,this);it.set(this,n)};["observe","unobserve","disconnect"].forEach(function(t){nt.prototype[t]=function(){var e;return(e=it.get(this))[t].apply(e,arguments)}});const rt=void 0!==q.ResizeObserver?q.ResizeObserver:nt,st=new a.OlP("PERFECT_SCROLLBAR_CONFIG");class ot{constructor(t,e,i,n){this.x=t,this.y=e,this.w=i,this.h=n}}class at{constructor(t,e){this.x=t,this.y=e}}const lt=["psScrollY","psScrollX","psScrollUp","psScrollDown","psScrollLeft","psScrollRight","psYReachEnd","psYReachStart","psXReachEnd","psXReachStart"];class ct{constructor(t={}){this.assign(t)}assign(t={}){for(const e in t)this[e]=t[e]}}let ht=(()=>{class t{constructor(t,e,i,r,s){this.zone=t,this.differs=e,this.elementRef=i,this.platformId=r,this.defaults=s,this.instance=null,this.ro=null,this.timeout=null,this.animation=null,this.configDiff=null,this.ngDestroy=new n.x,this.disabled=!1,this.psScrollY=new a.vpe,this.psScrollX=new a.vpe,this.psScrollUp=new a.vpe,this.psScrollDown=new a.vpe,this.psScrollLeft=new a.vpe,this.psScrollRight=new a.vpe,this.psYReachEnd=new a.vpe,this.psYReachStart=new a.vpe,this.psXReachEnd=new a.vpe,this.psXReachStart=new a.vpe}ngOnInit(){if(!this.disabled&&(0,l.NF)(this.platformId)){const t=new ct(this.defaults);t.assign(this.config),this.zone.runOutsideAngular(()=>{this.instance=new Z(this.elementRef.nativeElement,t)}),this.configDiff||(this.configDiff=this.differs.find(this.config||{}).create(),this.configDiff.diff(this.config||{})),this.zone.runOutsideAngular(()=>{this.ro=new rt(()=>{this.update()}),this.elementRef.nativeElement.children[0]&&this.ro.observe(this.elementRef.nativeElement.children[0]),this.ro.observe(this.elementRef.nativeElement)}),this.zone.runOutsideAngular(()=>{lt.forEach(t=>{const e=t.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`);(0,r.R)(this.elementRef.nativeElement,e).pipe((0,s.e)(20),(0,o.R)(this.ngDestroy)).subscribe(e=>{this[t].emit(e)})})})}}ngOnDestroy(){(0,l.NF)(this.platformId)&&(this.ngDestroy.next(),this.ngDestroy.complete(),this.ro&&this.ro.disconnect(),this.timeout&&"undefined"!=typeof window&&window.clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.instance&&this.instance.destroy()}),this.instance=null)}ngDoCheck(){!this.disabled&&this.configDiff&&(0,l.NF)(this.platformId)&&this.configDiff.diff(this.config||{})&&(this.ngOnDestroy(),this.ngOnInit())}ngOnChanges(t){t.disabled&&!t.disabled.isFirstChange()&&(0,l.NF)(this.platformId)&&t.disabled.currentValue!==t.disabled.previousValue&&(!0===t.disabled.currentValue?this.ngOnDestroy():!1===t.disabled.currentValue&&this.ngOnInit())}ps(){return this.instance}update(){"undefined"!=typeof window&&(this.timeout&&window.clearTimeout(this.timeout),this.timeout=window.setTimeout(()=>{if(!this.disabled&&this.configDiff)try{this.zone.runOutsideAngular(()=>{this.instance&&this.instance.update()})}catch(t){}},0))}geometry(t="scroll"){return new ot(this.elementRef.nativeElement[t+"Left"],this.elementRef.nativeElement[t+"Top"],this.elementRef.nativeElement[t+"Width"],this.elementRef.nativeElement[t+"Height"])}position(t=!1){return!t&&this.instance?new at(this.instance.reach.x||0,this.instance.reach.y||0):new at(this.elementRef.nativeElement.scrollLeft,this.elementRef.nativeElement.scrollTop)}scrollable(t="any"){const e=this.elementRef.nativeElement;return"any"===t?e.classList.contains("ps--active-x")||e.classList.contains("ps--active-y"):"both"===t?e.classList.contains("ps--active-x")&&e.classList.contains("ps--active-y"):e.classList.contains("ps--active-"+t)}scrollTo(t,e,i){this.disabled||(null==e&&null==i?this.animateScrolling("scrollTop",t,i):(null!=t&&this.animateScrolling("scrollLeft",t,i),null!=e&&this.animateScrolling("scrollTop",e,i)))}scrollToX(t,e){this.animateScrolling("scrollLeft",t,e)}scrollToY(t,e){this.animateScrolling("scrollTop",t,e)}scrollToTop(t,e){this.animateScrolling("scrollTop",t||0,e)}scrollToLeft(t,e){this.animateScrolling("scrollLeft",t||0,e)}scrollToRight(t,e){this.animateScrolling("scrollLeft",this.elementRef.nativeElement.scrollWidth-this.elementRef.nativeElement.clientWidth-(t||0),e)}scrollToBottom(t,e){this.animateScrolling("scrollTop",this.elementRef.nativeElement.scrollHeight-this.elementRef.nativeElement.clientHeight-(t||0),e)}scrollToElement(t,e,i){if("string"==typeof t&&(t=this.elementRef.nativeElement.querySelector(t)),t){const n=t.getBoundingClientRect(),r=this.elementRef.nativeElement.getBoundingClientRect();this.elementRef.nativeElement.classList.contains("ps--active-x")&&this.animateScrolling("scrollLeft",n.left-r.left+this.elementRef.nativeElement.scrollLeft+(e||0),i),this.elementRef.nativeElement.classList.contains("ps--active-y")&&this.animateScrolling("scrollTop",n.top-r.top+this.elementRef.nativeElement.scrollTop+(e||0),i)}}animateScrolling(t,e,i){if(this.animation&&(window.cancelAnimationFrame(this.animation),this.animation=null),i&&"undefined"!=typeof window){if(e!==this.elementRef.nativeElement[t]){let n=0,r=0,s=performance.now(),o=this.elementRef.nativeElement[t];const a=(o-e)/2,l=c=>{r+=Math.PI/(i/(c-s)),n=Math.round(e+a+a*Math.cos(r)),this.elementRef.nativeElement[t]===o&&(r>=Math.PI?this.animateScrolling(t,e,0):(this.elementRef.nativeElement[t]=n,o=this.elementRef.nativeElement[t],s=c,this.animation=window.requestAnimationFrame(l)))};window.requestAnimationFrame(l)}}else this.elementRef.nativeElement[t]=e}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.R0b),a.Y36(a.aQg),a.Y36(a.SBq),a.Y36(a.Lbi),a.Y36(st,8))},t.\u0275dir=a.lG2({type:t,selectors:[["","perfectScrollbar",""]],inputs:{disabled:"disabled",config:["perfectScrollbar","config"]},outputs:{psScrollY:"psScrollY",psScrollX:"psScrollX",psScrollUp:"psScrollUp",psScrollDown:"psScrollDown",psScrollLeft:"psScrollLeft",psScrollRight:"psScrollRight",psYReachEnd:"psYReachEnd",psYReachStart:"psYReachStart",psXReachEnd:"psXReachEnd",psXReachStart:"psXReachStart"},exportAs:["ngxPerfectScrollbar"],features:[a.TTD]}),t})(),ut=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=a.oAB({type:t}),t.\u0275inj=a.cJS({imports:[[l.ez],l.ez]}),t})()},4499:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(5097);Object.keys(n).forEach(function(t){"default"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return n[t]}})})},6730:(t,e,i)=>{"use strict";var n=i(6309);e.certificate=i(8840);var r=n.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});e.RSAPrivateKey=r;var s=n.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});e.RSAPublicKey=s;var o=n.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())});e.PublicKey=o;var a=n.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),l=n.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(a),this.key("subjectPrivateKey").octstr())});e.PrivateKey=l;var c=n.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});e.EncryptedPrivateKey=c;var h=n.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});e.DSAPrivateKey=h,e.DSAparam=n.define("DSAparam",function(){this.int()});var u=n.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(d),this.key("publicKey").optional().explicit(1).bitstr())});e.ECPrivateKey=u;var d=n.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});e.signature=n.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},8840:(t,e,i)=>{"use strict";var n=i(6309),r=n.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),s=n.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),o=n.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),a=n.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(o),this.key("subjectPublicKey").bitstr())}),l=n.define("RelativeDistinguishedName",function(){this.setof(s)}),c=n.define("RDNSequence",function(){this.seqof(l)}),h=n.define("Name",function(){this.choice({rdnSequence:this.use(c)})}),u=n.define("Validity",function(){this.seq().obj(this.key("notBefore").use(r),this.key("notAfter").use(r))}),d=n.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),p=n.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(o),this.key("issuer").use(h),this.key("validity").use(u),this.key("subject").use(h),this.key("subjectPublicKeyInfo").use(a),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(d).optional())}),f=n.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(p),this.key("signatureAlgorithm").use(o),this.key("signatureValue").bitstr())});t.exports=f},4153:(t,e,i)=>{var n=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,r=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,s=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,o=i(8386),a=i(3079),l=i(545).Buffer;t.exports=function(t,e){var i,c=t.toString(),h=c.match(n);if(h){var u="aes"+h[1],d=l.from(h[2],"hex"),p=l.from(h[3].replace(/[\r\n]/g,""),"base64"),f=o(e,d.slice(0,8),parseInt(h[1],10)).key,m=[],g=a.createDecipheriv(u,f,d);m.push(g.update(p)),m.push(g.final()),i=l.concat(m)}else{var y=c.match(s);i=l.from(y[2].replace(/[\r\n]/g,""),"base64")}return{tag:c.match(r)[1],data:i}}},2291:(t,e,i)=>{var n=i(6730),r=i(873),s=i(4153),o=i(3079),a=i(8094),l=i(545).Buffer;function c(t){var e;"object"!=typeof t||l.isBuffer(t)||(e=t.passphrase,t=t.key),"string"==typeof t&&(t=l.from(t));var i,c,h=s(t,e),u=h.tag,d=h.data;switch(u){case"CERTIFICATE":c=n.certificate.decode(d,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(c||(c=n.PublicKey.decode(d,"der")),i=c.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPublicKey.decode(c.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return c.subjectPrivateKey=c.subjectPublicKey,{type:"ec",data:c};case"1.2.840.10040.4.1":return c.algorithm.params.pub_key=n.DSAparam.decode(c.subjectPublicKey.data,"der"),{type:"dsa",data:c.algorithm.params};default:throw new Error("unknown key id "+i)}case"ENCRYPTED PRIVATE KEY":d=function(t,e){var i=t.algorithm.decrypt.kde.kdeparams.salt,n=parseInt(t.algorithm.decrypt.kde.kdeparams.iters.toString(),10),s=r[t.algorithm.decrypt.cipher.algo.join(".")],c=t.algorithm.decrypt.cipher.iv,h=t.subjectPrivateKey,u=parseInt(s.split("-")[1],10)/8,d=a.pbkdf2Sync(e,i,n,u,"sha1"),p=o.createDecipheriv(s,d,c),f=[];return f.push(p.update(h)),f.push(p.final()),l.concat(f)}(d=n.EncryptedPrivateKey.decode(d,"der"),e);case"PRIVATE KEY":switch(i=(c=n.PrivateKey.decode(d,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPrivateKey.decode(c.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:c.algorithm.curve,privateKey:n.ECPrivateKey.decode(c.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return c.algorithm.params.priv_key=n.DSAparam.decode(c.subjectPrivateKey,"der"),{type:"dsa",params:c.algorithm.params};default:throw new Error("unknown key id "+i)}case"RSA PUBLIC KEY":return n.RSAPublicKey.decode(d,"der");case"RSA PRIVATE KEY":return n.RSAPrivateKey.decode(d,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:n.DSAPrivateKey.decode(d,"der")};case"EC PRIVATE KEY":return{curve:(d=n.ECPrivateKey.decode(d,"der")).parameters.value,privateKey:d.privateKey};default:throw new Error("unknown key type "+u)}}t.exports=c,c.signature=n.signature},8094:(t,e,i)=>{e.pbkdf2=i(2795),e.pbkdf2Sync=i(4315)},2795:(t,e,i)=>{var n,r,s=i(545).Buffer,o=i(5456),a=i(7072),l=i(4315),c=i(6123),h=global.crypto&&global.crypto.subtle,u={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},d=[];function p(){return r||(r=global.process&&global.process.nextTick?global.process.nextTick:global.queueMicrotask?global.queueMicrotask:global.setImmediate?global.setImmediate:global.setTimeout)}function f(t,e,i,n,r){return h.importKey("raw",t,{name:"PBKDF2"},!1,["deriveBits"]).then(function(t){return h.deriveBits({name:"PBKDF2",salt:e,iterations:i,hash:{name:r}},t,n<<3)}).then(function(t){return s.from(t)})}t.exports=function(t,e,i,r,m,g){"function"==typeof m&&(g=m,m=void 0);var y=u[(m=m||"sha1").toLowerCase()];if(y&&"function"==typeof global.Promise){if(o(i,r),t=c(t,a,"Password"),e=c(e,a,"Salt"),"function"!=typeof g)throw new Error("No callback provided to pbkdf2");!function(t,e){t.then(function(t){p()(function(){e(null,t)})},function(t){p()(function(){e(t)})})}(function(t){if(global.process&&!global.process.browser)return Promise.resolve(!1);if(!h||!h.importKey||!h.deriveBits)return Promise.resolve(!1);if(void 0!==d[t])return d[t];var e=f(n=n||s.alloc(8),n,10,128,t).then(function(){return!0}).catch(function(){return!1});return d[t]=e,e}(y).then(function(n){return n?f(t,e,i,r,y):l(t,e,i,r,m)}),g)}else p()(function(){var n;try{n=l(t,e,i,r,m)}catch(s){return g(s)}g(null,n)})}},7072:t=>{var e;e=global.process&&global.process.browser?"utf-8":global.process&&global.process.version?parseInt(process.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary":"utf-8",t.exports=e},5456:t=>{var e=Math.pow(2,30)-1;t.exports=function(t,i){if("number"!=typeof t)throw new TypeError("Iterations not a number");if(t<0)throw new TypeError("Bad iterations");if("number"!=typeof i)throw new TypeError("Key length not a number");if(i<0||i>e||i!=i)throw new TypeError("Bad key length")}},4315:(t,e,i)=>{var n=i(3072),r=i(3827),s=i(8687),o=i(545).Buffer,a=i(5456),l=i(7072),c=i(6123),h=o.alloc(128),u={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function d(t,e,i){var a=function(t){return"rmd160"===t||"ripemd160"===t?function(t){return(new r).update(t).digest()}:"md5"===t?n:function(e){return s(t).update(e).digest()}}(t),l="sha512"===t||"sha384"===t?128:64;e.length>l?e=a(e):e.length{var n=i(545).Buffer;t.exports=function(t,e,i){if(n.isBuffer(t))return t;if("string"==typeof t)return n.from(t,e);if(ArrayBuffer.isView(t))return n.from(t.buffer);throw new TypeError(i+" must be a string, a Buffer, a typed array or a DataView")}},7351:(t,e,i)=>{e.publicEncrypt=i(3714),e.privateDecrypt=i(864),e.privateEncrypt=function(t,i){return e.publicEncrypt(t,i,!0)},e.publicDecrypt=function(t,i){return e.privateDecrypt(t,i,!0)}},6859:(t,e,i)=>{var n=i(4500),r=i(545).Buffer;function s(t){var e=r.allocUnsafe(4);return e.writeUInt32BE(t,0),e}t.exports=function(t,e){for(var i,o=r.alloc(0),a=0;o.length=65&&i<=70?i-55:i>=97&&i<=102?i-87:i-48&15}function l(t,e,i){var n=a(t,i);return i-1>=e&&(n|=a(t,i-1)<<4),n}function c(t,e,i,n){for(var r=0,s=Math.min(t.length,i),o=e;o=49?a-49+10:a>=17?a-17+10:a}return r}s.isBN=function(t){return t instanceof s||null!==t&&"object"==typeof t&&t.constructor.wordSize===s.wordSize&&Array.isArray(t.words)},s.max=function(t,e){return t.cmp(e)>0?t:e},s.min=function(t,e){return t.cmp(e)<0?t:e},s.prototype._init=function(t,e,i){if("number"==typeof t)return this._initNumber(t,e,i);if("object"==typeof t)return this._initArray(t,e,i);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var r=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(r++,this.negative=1),r=0;r-=3)this.words[s]|=(o=t[r]|t[r-1]<<8|t[r-2]<<16)<>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);else if("le"===i)for(r=0,s=0;r>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);return this.strip()},s.prototype._parseHex=function(t,e,i){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n=e;n-=2)r=l(t,e,n)<=18?(s-=18,this.words[o+=1]|=r>>>26):s+=8;else for(n=(t.length-e)%2==0?e+1:e;n=18?(s-=18,this.words[o+=1]|=r>>>26):s+=8;this.strip()},s.prototype._parseBase=function(t,e,i){this.words=[0],this.length=1;for(var n=0,r=1;r<=67108863;r*=e)n++;n--,r=r/e|0;for(var s=t.length-i,o=s%n,a=Math.min(s,s-o)+i,l=0,h=i;h1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?""};var h=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],u=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(t,e,i){i.negative=e.negative^t.negative;var n=t.length+e.length|0;i.length=n,n=n-1|0;var r=0|t.words[0],s=0|e.words[0],o=r*s,a=o/67108864|0;i.words[0]=67108863&o;for(var l=1;l>>26,h=67108863&a,u=Math.min(l,e.length-1),d=Math.max(0,l-t.length+1);d<=u;d++)c+=(o=(r=0|t.words[l-d|0])*(s=0|e.words[d])+h)/67108864|0,h=67108863&o;i.words[l]=0|h,a=0|c}return 0!==a?i.words[l]=0|a:i.length--,i.strip()}s.prototype.toString=function(t,e){var i;if(e=0|e||1,16===(t=t||10)||"hex"===t){i="";for(var r=0,s=0,o=0;o>>24-r&16777215)||o!==this.length-1?h[6-l.length]+l+i:l+i,(r+=2)>=26&&(r-=26,o--)}for(0!==s&&(i=s.toString(16)+i);i.length%e!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(t===(0|t)&&t>=2&&t<=36){var c=u[t],p=d[t];i="";var f=this.clone();for(f.negative=0;!f.isZero();){var m=f.modn(p).toString(t);i=(f=f.idivn(p)).isZero()?m+i:h[c-m.length]+m+i}for(this.isZero()&&(i="0"+i);i.length%e!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}n(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(t,e){return n(void 0!==o),this.toArrayLike(o,t,e)},s.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},s.prototype.toArrayLike=function(t,e,i){var r=this.byteLength(),s=i||Math.max(1,r);n(r<=s,"byte array longer than desired length"),n(s>0,"Requested array length <= 0"),this.strip();var o,a,l="le"===e,c=new t(s),h=this.clone();if(l){for(a=0;!h.isZero();a++)o=h.andln(255),h.iushrn(8),c[a]=o;for(;a=4096&&(i+=13,e>>>=13),e>=64&&(i+=7,e>>>=7),e>=8&&(i+=4,e>>>=4),e>=2&&(i+=2,e>>>=2),i+e},s.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,i=0;return 0==(8191&e)&&(i+=13,e>>>=13),0==(127&e)&&(i+=7,e>>>=7),0==(15&e)&&(i+=4,e>>>=4),0==(3&e)&&(i+=2,e>>>=2),0==(1&e)&&i++,i},s.prototype.bitLength=function(){var t=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+t},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},s.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},s.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var i=0;it.length?this.clone().iand(t):t.clone().iand(this)},s.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},s.prototype.iuxor=function(t){var e,i;this.length>t.length?(e=this,i=t):(e=t,i=this);for(var n=0;nt.length?this.clone().ixor(t):t.clone().ixor(this)},s.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},s.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),i=t%26;this._expand(e),i>0&&e--;for(var r=0;r0&&(this.words[r]=~this.words[r]&67108863>>26-i),this.strip()},s.prototype.notn=function(t){return this.clone().inotn(t)},s.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var i=t/26|0,r=t%26;return this._expand(i+1),this.words[i]=e?this.words[i]|1<t.length?(i=this,n=t):(i=t,n=this);for(var r=0,s=0;s>>26;for(;0!==r&&s>>26;if(this.length=i.length,0!==r)this.words[this.length]=r,this.length++;else if(i!==this)for(;st.length?this.clone().iadd(t):t.clone().iadd(this)},s.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,n,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(i=this,n=t):(i=t,n=this);for(var s=0,o=0;o>26,this.words[o]=67108863&e;for(;0!==s&&o>26,this.words[o]=67108863&e;if(0===s&&o>>13,p=0|o[1],f=8191&p,m=p>>>13,g=0|o[2],y=8191&g,b=g>>>13,v=0|o[3],_=8191&v,w=v>>>13,x=0|o[4],C=8191&x,A=x>>>13,S=0|o[5],E=8191&S,k=S>>>13,T=0|o[6],M=8191&T,L=T>>>13,I=0|o[7],O=8191&I,D=I>>>13,R=0|o[8],N=8191&R,P=R>>>13,F=0|o[9],Z=8191&F,B=F>>>13,U=0|a[0],q=8191&U,z=U>>>13,H=0|a[1],Y=8191&H,G=H>>>13,j=0|a[2],V=8191&j,Q=j>>>13,W=0|a[3],J=8191&W,X=W>>>13,K=0|a[4],$=8191&K,tt=K>>>13,et=0|a[5],it=8191&et,nt=et>>>13,rt=0|a[6],st=8191&rt,ot=rt>>>13,at=0|a[7],lt=8191&at,ct=at>>>13,ht=0|a[8],ut=8191&ht,dt=ht>>>13,pt=0|a[9],ft=8191&pt,mt=pt>>>13;i.negative=t.negative^e.negative,i.length=19;var gt=(c+(n=Math.imul(u,q))|0)+((8191&(r=(r=Math.imul(u,z))+Math.imul(d,q)|0))<<13)|0;c=((s=Math.imul(d,z))+(r>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(f,q),r=(r=Math.imul(f,z))+Math.imul(m,q)|0,s=Math.imul(m,z);var yt=(c+(n=n+Math.imul(u,Y)|0)|0)+((8191&(r=(r=r+Math.imul(u,G)|0)+Math.imul(d,Y)|0))<<13)|0;c=((s=s+Math.imul(d,G)|0)+(r>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(y,q),r=(r=Math.imul(y,z))+Math.imul(b,q)|0,s=Math.imul(b,z),n=n+Math.imul(f,Y)|0,r=(r=r+Math.imul(f,G)|0)+Math.imul(m,Y)|0,s=s+Math.imul(m,G)|0;var bt=(c+(n=n+Math.imul(u,V)|0)|0)+((8191&(r=(r=r+Math.imul(u,Q)|0)+Math.imul(d,V)|0))<<13)|0;c=((s=s+Math.imul(d,Q)|0)+(r>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(_,q),r=(r=Math.imul(_,z))+Math.imul(w,q)|0,s=Math.imul(w,z),n=n+Math.imul(y,Y)|0,r=(r=r+Math.imul(y,G)|0)+Math.imul(b,Y)|0,s=s+Math.imul(b,G)|0,n=n+Math.imul(f,V)|0,r=(r=r+Math.imul(f,Q)|0)+Math.imul(m,V)|0,s=s+Math.imul(m,Q)|0;var vt=(c+(n=n+Math.imul(u,J)|0)|0)+((8191&(r=(r=r+Math.imul(u,X)|0)+Math.imul(d,J)|0))<<13)|0;c=((s=s+Math.imul(d,X)|0)+(r>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(C,q),r=(r=Math.imul(C,z))+Math.imul(A,q)|0,s=Math.imul(A,z),n=n+Math.imul(_,Y)|0,r=(r=r+Math.imul(_,G)|0)+Math.imul(w,Y)|0,s=s+Math.imul(w,G)|0,n=n+Math.imul(y,V)|0,r=(r=r+Math.imul(y,Q)|0)+Math.imul(b,V)|0,s=s+Math.imul(b,Q)|0,n=n+Math.imul(f,J)|0,r=(r=r+Math.imul(f,X)|0)+Math.imul(m,J)|0,s=s+Math.imul(m,X)|0;var _t=(c+(n=n+Math.imul(u,$)|0)|0)+((8191&(r=(r=r+Math.imul(u,tt)|0)+Math.imul(d,$)|0))<<13)|0;c=((s=s+Math.imul(d,tt)|0)+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(E,q),r=(r=Math.imul(E,z))+Math.imul(k,q)|0,s=Math.imul(k,z),n=n+Math.imul(C,Y)|0,r=(r=r+Math.imul(C,G)|0)+Math.imul(A,Y)|0,s=s+Math.imul(A,G)|0,n=n+Math.imul(_,V)|0,r=(r=r+Math.imul(_,Q)|0)+Math.imul(w,V)|0,s=s+Math.imul(w,Q)|0,n=n+Math.imul(y,J)|0,r=(r=r+Math.imul(y,X)|0)+Math.imul(b,J)|0,s=s+Math.imul(b,X)|0,n=n+Math.imul(f,$)|0,r=(r=r+Math.imul(f,tt)|0)+Math.imul(m,$)|0,s=s+Math.imul(m,tt)|0;var wt=(c+(n=n+Math.imul(u,it)|0)|0)+((8191&(r=(r=r+Math.imul(u,nt)|0)+Math.imul(d,it)|0))<<13)|0;c=((s=s+Math.imul(d,nt)|0)+(r>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(M,q),r=(r=Math.imul(M,z))+Math.imul(L,q)|0,s=Math.imul(L,z),n=n+Math.imul(E,Y)|0,r=(r=r+Math.imul(E,G)|0)+Math.imul(k,Y)|0,s=s+Math.imul(k,G)|0,n=n+Math.imul(C,V)|0,r=(r=r+Math.imul(C,Q)|0)+Math.imul(A,V)|0,s=s+Math.imul(A,Q)|0,n=n+Math.imul(_,J)|0,r=(r=r+Math.imul(_,X)|0)+Math.imul(w,J)|0,s=s+Math.imul(w,X)|0,n=n+Math.imul(y,$)|0,r=(r=r+Math.imul(y,tt)|0)+Math.imul(b,$)|0,s=s+Math.imul(b,tt)|0,n=n+Math.imul(f,it)|0,r=(r=r+Math.imul(f,nt)|0)+Math.imul(m,it)|0,s=s+Math.imul(m,nt)|0;var xt=(c+(n=n+Math.imul(u,st)|0)|0)+((8191&(r=(r=r+Math.imul(u,ot)|0)+Math.imul(d,st)|0))<<13)|0;c=((s=s+Math.imul(d,ot)|0)+(r>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(O,q),r=(r=Math.imul(O,z))+Math.imul(D,q)|0,s=Math.imul(D,z),n=n+Math.imul(M,Y)|0,r=(r=r+Math.imul(M,G)|0)+Math.imul(L,Y)|0,s=s+Math.imul(L,G)|0,n=n+Math.imul(E,V)|0,r=(r=r+Math.imul(E,Q)|0)+Math.imul(k,V)|0,s=s+Math.imul(k,Q)|0,n=n+Math.imul(C,J)|0,r=(r=r+Math.imul(C,X)|0)+Math.imul(A,J)|0,s=s+Math.imul(A,X)|0,n=n+Math.imul(_,$)|0,r=(r=r+Math.imul(_,tt)|0)+Math.imul(w,$)|0,s=s+Math.imul(w,tt)|0,n=n+Math.imul(y,it)|0,r=(r=r+Math.imul(y,nt)|0)+Math.imul(b,it)|0,s=s+Math.imul(b,nt)|0,n=n+Math.imul(f,st)|0,r=(r=r+Math.imul(f,ot)|0)+Math.imul(m,st)|0,s=s+Math.imul(m,ot)|0;var Ct=(c+(n=n+Math.imul(u,lt)|0)|0)+((8191&(r=(r=r+Math.imul(u,ct)|0)+Math.imul(d,lt)|0))<<13)|0;c=((s=s+Math.imul(d,ct)|0)+(r>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(N,q),r=(r=Math.imul(N,z))+Math.imul(P,q)|0,s=Math.imul(P,z),n=n+Math.imul(O,Y)|0,r=(r=r+Math.imul(O,G)|0)+Math.imul(D,Y)|0,s=s+Math.imul(D,G)|0,n=n+Math.imul(M,V)|0,r=(r=r+Math.imul(M,Q)|0)+Math.imul(L,V)|0,s=s+Math.imul(L,Q)|0,n=n+Math.imul(E,J)|0,r=(r=r+Math.imul(E,X)|0)+Math.imul(k,J)|0,s=s+Math.imul(k,X)|0,n=n+Math.imul(C,$)|0,r=(r=r+Math.imul(C,tt)|0)+Math.imul(A,$)|0,s=s+Math.imul(A,tt)|0,n=n+Math.imul(_,it)|0,r=(r=r+Math.imul(_,nt)|0)+Math.imul(w,it)|0,s=s+Math.imul(w,nt)|0,n=n+Math.imul(y,st)|0,r=(r=r+Math.imul(y,ot)|0)+Math.imul(b,st)|0,s=s+Math.imul(b,ot)|0,n=n+Math.imul(f,lt)|0,r=(r=r+Math.imul(f,ct)|0)+Math.imul(m,lt)|0,s=s+Math.imul(m,ct)|0;var At=(c+(n=n+Math.imul(u,ut)|0)|0)+((8191&(r=(r=r+Math.imul(u,dt)|0)+Math.imul(d,ut)|0))<<13)|0;c=((s=s+Math.imul(d,dt)|0)+(r>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(Z,q),r=(r=Math.imul(Z,z))+Math.imul(B,q)|0,s=Math.imul(B,z),n=n+Math.imul(N,Y)|0,r=(r=r+Math.imul(N,G)|0)+Math.imul(P,Y)|0,s=s+Math.imul(P,G)|0,n=n+Math.imul(O,V)|0,r=(r=r+Math.imul(O,Q)|0)+Math.imul(D,V)|0,s=s+Math.imul(D,Q)|0,n=n+Math.imul(M,J)|0,r=(r=r+Math.imul(M,X)|0)+Math.imul(L,J)|0,s=s+Math.imul(L,X)|0,n=n+Math.imul(E,$)|0,r=(r=r+Math.imul(E,tt)|0)+Math.imul(k,$)|0,s=s+Math.imul(k,tt)|0,n=n+Math.imul(C,it)|0,r=(r=r+Math.imul(C,nt)|0)+Math.imul(A,it)|0,s=s+Math.imul(A,nt)|0,n=n+Math.imul(_,st)|0,r=(r=r+Math.imul(_,ot)|0)+Math.imul(w,st)|0,s=s+Math.imul(w,ot)|0,n=n+Math.imul(y,lt)|0,r=(r=r+Math.imul(y,ct)|0)+Math.imul(b,lt)|0,s=s+Math.imul(b,ct)|0,n=n+Math.imul(f,ut)|0,r=(r=r+Math.imul(f,dt)|0)+Math.imul(m,ut)|0,s=s+Math.imul(m,dt)|0;var St=(c+(n=n+Math.imul(u,ft)|0)|0)+((8191&(r=(r=r+Math.imul(u,mt)|0)+Math.imul(d,ft)|0))<<13)|0;c=((s=s+Math.imul(d,mt)|0)+(r>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(Z,Y),r=(r=Math.imul(Z,G))+Math.imul(B,Y)|0,s=Math.imul(B,G),n=n+Math.imul(N,V)|0,r=(r=r+Math.imul(N,Q)|0)+Math.imul(P,V)|0,s=s+Math.imul(P,Q)|0,n=n+Math.imul(O,J)|0,r=(r=r+Math.imul(O,X)|0)+Math.imul(D,J)|0,s=s+Math.imul(D,X)|0,n=n+Math.imul(M,$)|0,r=(r=r+Math.imul(M,tt)|0)+Math.imul(L,$)|0,s=s+Math.imul(L,tt)|0,n=n+Math.imul(E,it)|0,r=(r=r+Math.imul(E,nt)|0)+Math.imul(k,it)|0,s=s+Math.imul(k,nt)|0,n=n+Math.imul(C,st)|0,r=(r=r+Math.imul(C,ot)|0)+Math.imul(A,st)|0,s=s+Math.imul(A,ot)|0,n=n+Math.imul(_,lt)|0,r=(r=r+Math.imul(_,ct)|0)+Math.imul(w,lt)|0,s=s+Math.imul(w,ct)|0,n=n+Math.imul(y,ut)|0,r=(r=r+Math.imul(y,dt)|0)+Math.imul(b,ut)|0,s=s+Math.imul(b,dt)|0;var Et=(c+(n=n+Math.imul(f,ft)|0)|0)+((8191&(r=(r=r+Math.imul(f,mt)|0)+Math.imul(m,ft)|0))<<13)|0;c=((s=s+Math.imul(m,mt)|0)+(r>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(Z,V),r=(r=Math.imul(Z,Q))+Math.imul(B,V)|0,s=Math.imul(B,Q),n=n+Math.imul(N,J)|0,r=(r=r+Math.imul(N,X)|0)+Math.imul(P,J)|0,s=s+Math.imul(P,X)|0,n=n+Math.imul(O,$)|0,r=(r=r+Math.imul(O,tt)|0)+Math.imul(D,$)|0,s=s+Math.imul(D,tt)|0,n=n+Math.imul(M,it)|0,r=(r=r+Math.imul(M,nt)|0)+Math.imul(L,it)|0,s=s+Math.imul(L,nt)|0,n=n+Math.imul(E,st)|0,r=(r=r+Math.imul(E,ot)|0)+Math.imul(k,st)|0,s=s+Math.imul(k,ot)|0,n=n+Math.imul(C,lt)|0,r=(r=r+Math.imul(C,ct)|0)+Math.imul(A,lt)|0,s=s+Math.imul(A,ct)|0,n=n+Math.imul(_,ut)|0,r=(r=r+Math.imul(_,dt)|0)+Math.imul(w,ut)|0,s=s+Math.imul(w,dt)|0;var kt=(c+(n=n+Math.imul(y,ft)|0)|0)+((8191&(r=(r=r+Math.imul(y,mt)|0)+Math.imul(b,ft)|0))<<13)|0;c=((s=s+Math.imul(b,mt)|0)+(r>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(Z,J),r=(r=Math.imul(Z,X))+Math.imul(B,J)|0,s=Math.imul(B,X),n=n+Math.imul(N,$)|0,r=(r=r+Math.imul(N,tt)|0)+Math.imul(P,$)|0,s=s+Math.imul(P,tt)|0,n=n+Math.imul(O,it)|0,r=(r=r+Math.imul(O,nt)|0)+Math.imul(D,it)|0,s=s+Math.imul(D,nt)|0,n=n+Math.imul(M,st)|0,r=(r=r+Math.imul(M,ot)|0)+Math.imul(L,st)|0,s=s+Math.imul(L,ot)|0,n=n+Math.imul(E,lt)|0,r=(r=r+Math.imul(E,ct)|0)+Math.imul(k,lt)|0,s=s+Math.imul(k,ct)|0,n=n+Math.imul(C,ut)|0,r=(r=r+Math.imul(C,dt)|0)+Math.imul(A,ut)|0,s=s+Math.imul(A,dt)|0;var Tt=(c+(n=n+Math.imul(_,ft)|0)|0)+((8191&(r=(r=r+Math.imul(_,mt)|0)+Math.imul(w,ft)|0))<<13)|0;c=((s=s+Math.imul(w,mt)|0)+(r>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(Z,$),r=(r=Math.imul(Z,tt))+Math.imul(B,$)|0,s=Math.imul(B,tt),n=n+Math.imul(N,it)|0,r=(r=r+Math.imul(N,nt)|0)+Math.imul(P,it)|0,s=s+Math.imul(P,nt)|0,n=n+Math.imul(O,st)|0,r=(r=r+Math.imul(O,ot)|0)+Math.imul(D,st)|0,s=s+Math.imul(D,ot)|0,n=n+Math.imul(M,lt)|0,r=(r=r+Math.imul(M,ct)|0)+Math.imul(L,lt)|0,s=s+Math.imul(L,ct)|0,n=n+Math.imul(E,ut)|0,r=(r=r+Math.imul(E,dt)|0)+Math.imul(k,ut)|0,s=s+Math.imul(k,dt)|0;var Mt=(c+(n=n+Math.imul(C,ft)|0)|0)+((8191&(r=(r=r+Math.imul(C,mt)|0)+Math.imul(A,ft)|0))<<13)|0;c=((s=s+Math.imul(A,mt)|0)+(r>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(Z,it),r=(r=Math.imul(Z,nt))+Math.imul(B,it)|0,s=Math.imul(B,nt),n=n+Math.imul(N,st)|0,r=(r=r+Math.imul(N,ot)|0)+Math.imul(P,st)|0,s=s+Math.imul(P,ot)|0,n=n+Math.imul(O,lt)|0,r=(r=r+Math.imul(O,ct)|0)+Math.imul(D,lt)|0,s=s+Math.imul(D,ct)|0,n=n+Math.imul(M,ut)|0,r=(r=r+Math.imul(M,dt)|0)+Math.imul(L,ut)|0,s=s+Math.imul(L,dt)|0;var Lt=(c+(n=n+Math.imul(E,ft)|0)|0)+((8191&(r=(r=r+Math.imul(E,mt)|0)+Math.imul(k,ft)|0))<<13)|0;c=((s=s+Math.imul(k,mt)|0)+(r>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,n=Math.imul(Z,st),r=(r=Math.imul(Z,ot))+Math.imul(B,st)|0,s=Math.imul(B,ot),n=n+Math.imul(N,lt)|0,r=(r=r+Math.imul(N,ct)|0)+Math.imul(P,lt)|0,s=s+Math.imul(P,ct)|0,n=n+Math.imul(O,ut)|0,r=(r=r+Math.imul(O,dt)|0)+Math.imul(D,ut)|0,s=s+Math.imul(D,dt)|0;var It=(c+(n=n+Math.imul(M,ft)|0)|0)+((8191&(r=(r=r+Math.imul(M,mt)|0)+Math.imul(L,ft)|0))<<13)|0;c=((s=s+Math.imul(L,mt)|0)+(r>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(Z,lt),r=(r=Math.imul(Z,ct))+Math.imul(B,lt)|0,s=Math.imul(B,ct),n=n+Math.imul(N,ut)|0,r=(r=r+Math.imul(N,dt)|0)+Math.imul(P,ut)|0,s=s+Math.imul(P,dt)|0;var Ot=(c+(n=n+Math.imul(O,ft)|0)|0)+((8191&(r=(r=r+Math.imul(O,mt)|0)+Math.imul(D,ft)|0))<<13)|0;c=((s=s+Math.imul(D,mt)|0)+(r>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(Z,ut),r=(r=Math.imul(Z,dt))+Math.imul(B,ut)|0,s=Math.imul(B,dt);var Dt=(c+(n=n+Math.imul(N,ft)|0)|0)+((8191&(r=(r=r+Math.imul(N,mt)|0)+Math.imul(P,ft)|0))<<13)|0;c=((s=s+Math.imul(P,mt)|0)+(r>>>13)|0)+(Dt>>>26)|0,Dt&=67108863;var Rt=(c+(n=Math.imul(Z,ft))|0)+((8191&(r=(r=Math.imul(Z,mt))+Math.imul(B,ft)|0))<<13)|0;return c=((s=Math.imul(B,mt))+(r>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,l[0]=gt,l[1]=yt,l[2]=bt,l[3]=vt,l[4]=_t,l[5]=wt,l[6]=xt,l[7]=Ct,l[8]=At,l[9]=St,l[10]=Et,l[11]=kt,l[12]=Tt,l[13]=Mt,l[14]=Lt,l[15]=It,l[16]=Ot,l[17]=Dt,l[18]=Rt,0!==c&&(l[19]=c,i.length++),i};function m(t,e,i){return(new g).mulp(t,e,i)}function g(t,e){this.x=t,this.y=e}Math.imul||(f=p),s.prototype.mulTo=function(t,e){var i=this.length+t.length;return 10===this.length&&10===t.length?f(this,t,e):i<63?p(this,t,e):i<1024?function(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var n=0,r=0,s=0;s>>26)|0)>>>26,o&=67108863}i.words[s]=a,n=o,o=r}return 0!==n?i.words[s]=n:i.length--,i.strip()}(this,t,e):m(this,t,e)},g.prototype.makeRBT=function(t){for(var e=new Array(t),i=s.prototype._countBits(t)-1,n=0;n>=1;return n},g.prototype.permute=function(t,e,i,n,r,s){for(var o=0;o>>=1)r++;return 1<>>=13),s>>>=13;for(o=2*e;o>=26,e+=r/67108864|0,e+=s>>>26,this.words[i]=67108863&s}return 0!==e&&(this.words[i]=e,this.length++),this},s.prototype.muln=function(t){return this.clone().imuln(t)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),i=0;i>>n}return e}(t);if(0===e.length)return new s(1);for(var i=this,n=0;n=0);var e,i=t%26,r=(t-i)/26,s=67108863>>>26-i<<26-i;if(0!==i){var o=0;for(e=0;e>>26-i}o&&(this.words[e]=o,this.length++)}if(0!==r){for(e=this.length-1;e>=0;e--)this.words[e+r]=this.words[e];for(e=0;e=0),r=e?(e-e%26)/26:0;var s=t%26,o=Math.min((t-s)/26,this.length),a=67108863^67108863>>>s<o)for(this.length-=o,c=0;c=0&&(0!==h||c>=r);c--){var u=0|this.words[c];this.words[c]=h<<26-s|u>>>s,h=u&a}return l&&0!==h&&(l.words[l.length++]=h),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(t,e,i){return n(0===this.negative),this.iushrn(t,e,i)},s.prototype.shln=function(t){return this.clone().ishln(t)},s.prototype.ushln=function(t){return this.clone().iushln(t)},s.prototype.shrn=function(t){return this.clone().ishrn(t)},s.prototype.ushrn=function(t){return this.clone().iushrn(t)},s.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,i=(t-e)/26;return!(this.length<=i||!(this.words[i]&1<=0);var e=t%26,i=(t-e)/26;return n(0===this.negative,"imaskn works only with positive numbers"),this.length<=i?this:(0!==e&&i++,this.length=Math.min(i,this.length),0!==e&&(this.words[this.length-1]&=67108863^67108863>>>e<=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},s.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(a/67108864|0),this.words[r+i]=67108863&s}for(;r>26,this.words[r+i]=67108863&s;if(0===o)return this.strip();for(n(-1===o),o=0,r=0;r>26,this.words[r]=67108863&s;return this.negative=1,this.strip()},s.prototype._wordDiv=function(t,e){var i,n=this.clone(),r=t,o=0|r.words[r.length-1];0!=(i=26-this._countBits(o))&&(r=r.ushln(i),n.iushln(i),o=0|r.words[r.length-1]);var a,l=n.length-r.length;if("mod"!==e){(a=new s(null)).length=l+1,a.words=new Array(a.length);for(var c=0;c=0;u--){var d=67108864*(0|n.words[r.length+u])+(0|n.words[r.length+u-1]);for(d=Math.min(d/o|0,67108863),n._ishlnsubmul(r,d,u);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(r,1,u),n.isZero()||(n.negative^=1);a&&(a.words[u]=d)}return a&&a.strip(),n.strip(),"div"!==e&&0!==i&&n.iushrn(i),{div:a||null,mod:n}},s.prototype.divmod=function(t,e,i){return n(!t.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(r=a.div.neg()),"div"!==e&&(o=a.mod.neg(),i&&0!==o.negative&&o.iadd(t)),{div:r,mod:o}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(r=a.div.neg()),{div:r,mod:a.mod}):0!=(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(o=a.mod.neg(),i&&0!==o.negative&&o.isub(t)),{div:a.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new s(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new s(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new s(this.modn(t.words[0]))}:this._wordDiv(t,e);var r,o,a},s.prototype.div=function(t){return this.divmod(t,"div",!1).div},s.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},s.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},s.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var i=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),r=t.andln(1),s=i.cmp(n);return s<0||1===r&&0===s?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},s.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,i=0,r=this.length-1;r>=0;r--)i=(e*i+(0|this.words[r]))%t;return i},s.prototype.idivn=function(t){n(t<=67108863);for(var e=0,i=this.length-1;i>=0;i--){var r=(0|this.words[i])+67108864*e;this.words[i]=r/t|0,e=r%t}return this.strip()},s.prototype.divn=function(t){return this.clone().idivn(t)},s.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var r=new s(1),o=new s(0),a=new s(0),l=new s(1),c=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++c;for(var h=i.clone(),u=e.clone();!e.isZero();){for(var d=0,p=1;0==(e.words[0]&p)&&d<26;++d,p<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(r.isOdd()||o.isOdd())&&(r.iadd(h),o.isub(u)),r.iushrn(1),o.iushrn(1);for(var f=0,m=1;0==(i.words[0]&m)&&f<26;++f,m<<=1);if(f>0)for(i.iushrn(f);f-- >0;)(a.isOdd()||l.isOdd())&&(a.iadd(h),l.isub(u)),a.iushrn(1),l.iushrn(1);e.cmp(i)>=0?(e.isub(i),r.isub(a),o.isub(l)):(i.isub(e),a.isub(r),l.isub(o))}return{a:a,b:l,gcd:i.iushln(c)}},s.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var r,o=new s(1),a=new s(0),l=i.clone();e.cmpn(1)>0&&i.cmpn(1)>0;){for(var c=0,h=1;0==(e.words[0]&h)&&c<26;++c,h<<=1);if(c>0)for(e.iushrn(c);c-- >0;)o.isOdd()&&o.iadd(l),o.iushrn(1);for(var u=0,d=1;0==(i.words[0]&d)&&u<26;++u,d<<=1);if(u>0)for(i.iushrn(u);u-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);e.cmp(i)>=0?(e.isub(i),o.isub(a)):(i.isub(e),a.isub(o))}return(r=0===e.cmpn(1)?o:a).cmpn(0)<0&&r.iadd(t),r},s.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),i=t.clone();e.negative=0,i.negative=0;for(var n=0;e.isEven()&&i.isEven();n++)e.iushrn(1),i.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;i.isEven();)i.iushrn(1);var r=e.cmp(i);if(r<0){var s=e;e=i,i=s}else if(0===r||0===i.cmpn(1))break;e.isub(i)}return i.iushln(n)},s.prototype.invm=function(t){return this.egcd(t).a.umod(t)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(t){return this.words[0]&t},s.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,i=(t-e)/26,r=1<>>26,this.words[o]=a&=67108863}return 0!==s&&(this.words[o]=s,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(t){var e,i=t<0;if(0!==this.negative&&!i)return-1;if(0===this.negative&&i)return 1;if(this.strip(),this.length>1)e=1;else{i&&(t=-t),n(t<=67108863,"Number is too big");var r=0|this.words[0];e=r===t?0:rt.length)return 1;if(this.length=0;i--){var n=0|this.words[i],r=0|t.words[i];if(n!==r){nr&&(e=1);break}}return e},s.prototype.gtn=function(t){return 1===this.cmpn(t)},s.prototype.gt=function(t){return 1===this.cmp(t)},s.prototype.gten=function(t){return this.cmpn(t)>=0},s.prototype.gte=function(t){return this.cmp(t)>=0},s.prototype.ltn=function(t){return-1===this.cmpn(t)},s.prototype.lt=function(t){return-1===this.cmp(t)},s.prototype.lten=function(t){return this.cmpn(t)<=0},s.prototype.lte=function(t){return this.cmp(t)<=0},s.prototype.eqn=function(t){return 0===this.cmpn(t)},s.prototype.eq=function(t){return 0===this.cmp(t)},s.red=function(t){return new C(t)},s.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},s.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(t){return this.red=t,this},s.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},s.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},s.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},s.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},s.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},s.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},s.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},s.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},s.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var y={k256:null,p224:null,p192:null,p25519:null};function b(t,e){this.name=t,this.p=new s(e,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function C(t){if("string"==typeof t){var e=s._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function A(t){C.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}b.prototype._tmp=function(){var t=new s(null);return t.words=new Array(Math.ceil(this.n/13)),t},b.prototype.ireduce=function(t){var e,i=t;do{this.split(i,this.tmp),e=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e0?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},b.prototype.split=function(t,e){t.iushrn(this.n,0,e)},b.prototype.imulK=function(t){return t.imul(this.k)},r(v,b),v.prototype.split=function(t,e){for(var i=4194303,n=Math.min(t.length,9),r=0;r>>22,s=o}t.words[r-10]=s>>>=22,t.length-=0===s&&t.length>10?10:9},v.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i>>=26,t.words[i]=r,e=n}return 0!==e&&(t.words[t.length++]=e),t},s._prime=function(t){if(y[t])return y[t];var e;if("k256"===t)e=new v;else if("p224"===t)e=new _;else if("p192"===t)e=new w;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new x}return y[t]=e,e},C.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},C.prototype._verify2=function(t,e){n(0==(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},C.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},C.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},C.prototype.add=function(t,e){this._verify2(t,e);var i=t.add(e);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},C.prototype.iadd=function(t,e){this._verify2(t,e);var i=t.iadd(e);return i.cmp(this.m)>=0&&i.isub(this.m),i},C.prototype.sub=function(t,e){this._verify2(t,e);var i=t.sub(e);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},C.prototype.isub=function(t,e){this._verify2(t,e);var i=t.isub(e);return i.cmpn(0)<0&&i.iadd(this.m),i},C.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},C.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},C.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},C.prototype.isqr=function(t){return this.imul(t,t.clone())},C.prototype.sqr=function(t){return this.mul(t,t)},C.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var i=this.m.add(new s(1)).iushrn(2);return this.pow(t,i)}for(var r=this.m.subn(1),o=0;!r.isZero()&&0===r.andln(1);)o++,r.iushrn(1);n(!r.isZero());var a=new s(1).toRed(this),l=a.redNeg(),c=this.m.subn(1).iushrn(1),h=this.m.bitLength();for(h=new s(2*h*h).toRed(this);0!==this.pow(h,c).cmp(l);)h.redIAdd(l);for(var u=this.pow(h,r),d=this.pow(t,r.addn(1).iushrn(1)),p=this.pow(t,r),f=o;0!==p.cmp(a);){for(var m=p,g=0;0!==m.cmp(a);g++)m=m.redSqr();n(g=0;n--){for(var c=e.words[n],h=l-1;h>=0;h--){var u=c>>h&1;r!==i[0]&&(r=this.sqr(r)),0!==u||0!==o?(o<<=1,o|=u,(4==++a||0===n&&0===h)&&(r=this.mul(r,i[o]),a=0,o=0)):a=0}l=26}return r},C.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},C.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},s.mont=function(t){return new A(t)},r(A,C),A.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},A.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},A.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var i=t.imul(e),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),s=r;return r.cmp(this.m)>=0?s=r.isub(this.m):r.cmpn(0)<0&&(s=r.iadd(this.m)),s._forceRed(this)},A.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new s(0)._forceRed(this);var i=t.mul(e),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),o=r;return r.cmp(this.m)>=0?o=r.isub(this.m):r.cmpn(0)<0&&(o=r.iadd(this.m)),o._forceRed(this)},A.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=i.nmd(t),this)},864:(t,e,i)=>{var n=i(2291),r=i(6859),s=i(5669),o=i(8466),a=i(4467),l=i(4500),c=i(9597),h=i(545).Buffer;t.exports=function(t,e,i){var u;u=t.padding?t.padding:i?1:4;var d,p=n(t),f=p.modulus.byteLength();if(e.length>f||new o(e).cmp(p.modulus)>=0)throw new Error("decryption error");d=i?c(new o(e),p):a(e,p);var m=h.alloc(f-d.length);if(d=h.concat([m,d],f),4===u)return function(t,e){var i=t.modulus.byteLength(),n=l("sha1").update(h.alloc(0)).digest(),o=n.length;if(0!==e[0])throw new Error("decryption error");var a=e.slice(1,o+1),c=e.slice(o+1),u=s(a,r(c,o)),d=s(c,r(u,i-o-1));if(function(t,e){t=h.from(t),e=h.from(e);var i=0,n=t.length;t.length!==e.length&&(i++,n=Math.min(t.length,e.length));for(var r=-1;++r=e.length){s++;break}var o=e.slice(2,r-1);if(("0002"!==n.toString("hex")&&!i||"0001"!==n.toString("hex")&&i)&&s++,o.length<8&&s++,s)throw new Error("decryption error");return e.slice(r)}(0,d,i);if(3===u)return d;throw new Error("unknown padding")}},3714:(t,e,i)=>{var n=i(2291),r=i(6716),s=i(4500),o=i(6859),a=i(5669),l=i(8466),c=i(9597),h=i(4467),u=i(545).Buffer;t.exports=function(t,e,i){var d;d=t.padding?t.padding:i?1:4;var p,f=n(t);if(4===d)p=function(t,e){var i=t.modulus.byteLength(),n=e.length,c=s("sha1").update(u.alloc(0)).digest(),h=c.length,d=2*h;if(n>i-d-2)throw new Error("message too long");var p=u.alloc(i-n-d-2),f=i-h-1,m=r(h),g=a(u.concat([c,p,u.alloc(1,1),e],f),o(m,f)),y=a(m,o(g,h));return new l(u.concat([u.alloc(1),y,g],i))}(f,e);else if(1===d)p=function(t,e,i){var n,s=e.length,o=t.modulus.byteLength();if(s>o-11)throw new Error("message too long");return n=i?u.alloc(o-s-3,255):function(t){for(var e,i=u.allocUnsafe(t),n=0,s=r(2*t),o=0;n=0)throw new Error("data too long for modulus")}return i?h(p,f):c(p,f)}},9597:(t,e,i)=>{var n=i(8466),r=i(545).Buffer;t.exports=function(t,e){return r.from(t.toRed(n.mont(e.modulus)).redPow(new n(e.publicExponent)).fromRed().toArray())}},5669:t=>{t.exports=function(t,e){for(var i=t.length,n=-1;++n{var n=i(422),r=i(348),s=i(2253),o=i(3657);function a(t,e,i,s,o){var a=[].slice.call(arguments,1),l=a.length,c="function"==typeof a[l-1];if(!c&&!n())throw new Error("Callback required as last argument");if(!c){if(l<1)throw new Error("Too few arguments provided");return 1===l?(i=e,e=s=void 0):2!==l||e.getContext||(s=i,i=e,e=void 0),new Promise(function(n,o){try{var a=r.create(i,s);n(t(a,e,s))}catch(l){o(l)}})}if(l<2)throw new Error("Too few arguments provided");2===l?(o=i,i=e,e=s=void 0):3===l&&(e.getContext&&void 0===o?(o=s,s=void 0):(o=s,s=i,i=e,e=void 0));try{var h=r.create(i,s);o(null,t(h,e,s))}catch(u){o(u)}}e.rT=a.bind(null,s.render),e.hz=a.bind(null,s.renderToDataURL),e.toString=a.bind(null,function(t,e,i){return o.render(t,i)})},422:t=>{t.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},6831:(t,e,i)=>{var n=i(1893).getSymbolSize;e.getRowColCoords=function(t){if(1===t)return[];for(var e=Math.floor(t/7)+2,i=n(t),r=145===i?26:2*Math.ceil((i-13)/(2*e-2)),s=[i-7],o=1;o{var n=i(4358),r=["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 s(t){this.mode=n.ALPHANUMERIC,this.data=t}s.getBitsLength=function(t){return 11*Math.floor(t/2)+t%2*6},s.prototype.getLength=function(){return this.data.length},s.prototype.getBitsLength=function(){return s.getBitsLength(this.data.length)},s.prototype.write=function(t){var e;for(e=0;e+2<=this.data.length;e+=2){var i=45*r.indexOf(this.data[e]);i+=r.indexOf(this.data[e+1]),t.put(i,11)}this.data.length%2&&t.put(r.indexOf(this.data[e]),6)},t.exports=s},1401:t=>{function e(){this.buffer=[],this.length=0}e.prototype={get:function(t){var e=Math.floor(t/8);return 1==(this.buffer[e]>>>7-t%8&1)},put:function(t,e){for(var i=0;i>>e-i-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}},t.exports=e},9834:(t,e,i)=>{var n=i(2060);function r(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new n(t*t),this.data.fill(0),this.reservedBit=new n(t*t),this.reservedBit.fill(0)}r.prototype.set=function(t,e,i,n){var r=t*this.size+e;this.data[r]=i,n&&(this.reservedBit[r]=!0)},r.prototype.get=function(t,e){return this.data[t*this.size+e]},r.prototype.xor=function(t,e,i){this.data[t*this.size+e]^=i},r.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]},t.exports=r},3964:(t,e,i)=>{var n=i(2060),r=i(4358);function s(t){this.mode=r.BYTE,this.data=new n(t)}s.getBitsLength=function(t){return 8*t},s.prototype.getLength=function(){return this.data.length},s.prototype.getBitsLength=function(){return s.getBitsLength(this.data.length)},s.prototype.write=function(t){for(var e=0,i=this.data.length;e{var n=i(3076),r=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],s=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];e.getBlocksCount=function(t,e){switch(e){case n.L:return r[4*(t-1)+0];case n.M:return r[4*(t-1)+1];case n.Q:return r[4*(t-1)+2];case n.H:return r[4*(t-1)+3];default:return}},e.getTotalCodewordsCount=function(t,e){switch(e){case n.L:return s[4*(t-1)+0];case n.M:return s[4*(t-1)+1];case n.Q:return s[4*(t-1)+2];case n.H:return s[4*(t-1)+3];default:return}}},3076:(t,e)=>{e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2},e.isValid=function(t){return t&&void 0!==t.bit&&t.bit>=0&&t.bit<4},e.from=function(t,i){if(e.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+t)}}(t)}catch(n){return i}}},8902:(t,e,i)=>{var n=i(1893).getSymbolSize;e.getPositions=function(t){var e=n(t);return[[0,0],[e-7,0],[0,e-7]]}},2256:(t,e,i)=>{var n=i(1893),r=n.getBCHDigit(1335);e.getEncodedBits=function(t,e){for(var i=t.bit<<3|e,s=i<<10;n.getBCHDigit(s)-r>=0;)s^=1335<{var n,r,s=i(2060);s.alloc?(n=s.alloc(512),r=s.alloc(256)):(n=new s(512),r=new s(256)),function(){for(var t=1,e=0;e<255;e++)n[e]=t,r[t]=e,256&(t<<=1)&&(t^=285);for(e=255;e<512;e++)n[e]=n[e-255]}(),e.log=function(t){if(t<1)throw new Error("log("+t+")");return r[t]},e.exp=function(t){return n[t]},e.mul=function(t,e){return 0===t||0===e?0:n[r[t]+r[e]]}},9889:(t,e,i)=>{var n=i(4358),r=i(1893);function s(t){this.mode=n.KANJI,this.data=t}s.getBitsLength=function(t){return 13*t},s.prototype.getLength=function(){return this.data.length},s.prototype.getBitsLength=function(){return s.getBitsLength(this.data.length)},s.prototype.write=function(t){var e;for(e=0;e=33088&&i<=40956)i-=33088;else{if(!(i>=57408&&i<=60351))throw new Error("Invalid SJIS character: "+this.data[e]+"\nMake sure your charset is UTF-8");i-=49472}t.put(i=192*(i>>>8&255)+(255&i),13)}},t.exports=s},4740:(t,e)=>{function i(t,i,n){switch(t){case e.Patterns.PATTERN000:return(i+n)%2==0;case e.Patterns.PATTERN001:return i%2==0;case e.Patterns.PATTERN010:return n%3==0;case e.Patterns.PATTERN011:return(i+n)%3==0;case e.Patterns.PATTERN100:return(Math.floor(i/2)+Math.floor(n/3))%2==0;case e.Patterns.PATTERN101:return i*n%2+i*n%3==0;case e.Patterns.PATTERN110:return(i*n%2+i*n%3)%2==0;case e.Patterns.PATTERN111:return(i*n%3+(i+n)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}}e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},e.isValid=function(t){return null!=t&&""!==t&&!isNaN(t)&&t>=0&&t<=7},e.from=function(t){return e.isValid(t)?parseInt(t,10):void 0},e.getPenaltyN1=function(t){for(var e=t.size,i=0,n=0,r=0,s=null,o=null,a=0;a=5&&(i+=n-5+3),s=c,n=1),(c=t.get(l,a))===o?r++:(r>=5&&(i+=r-5+3),o=c,r=1)}n>=5&&(i+=n-5+3),r>=5&&(i+=r-5+3)}return i},e.getPenaltyN2=function(t){for(var e=t.size,i=0,n=0;n=10&&(1488===n||93===n)&&i++,r=r<<1&2047|t.get(o,s),o>=10&&(1488===r||93===r)&&i++}return 40*i},e.getPenaltyN4=function(t){for(var e=0,i=t.data.length,n=0;n{var n=i(3893),r=i(9947);e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(t,e){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!n.isValid(e))throw new Error("Invalid version: "+e);return e>=1&&e<10?t.ccBits[0]:e<27?t.ccBits[1]:t.ccBits[2]},e.getBestModeForData=function(t){return r.testNumeric(t)?e.NUMERIC:r.testAlphanumeric(t)?e.ALPHANUMERIC:r.testKanji(t)?e.KANJI:e.BYTE},e.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")},e.isValid=function(t){return t&&t.bit&&t.ccBits},e.from=function(t,i){if(e.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+t)}}(t)}catch(n){return i}}},9246:(t,e,i)=>{var n=i(4358);function r(t){this.mode=n.NUMERIC,this.data=t.toString()}r.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(t){var e,i,n;for(e=0;e+3<=this.data.length;e+=3)i=this.data.substr(e,3),n=parseInt(i,10),t.put(n,10);var r=this.data.length-e;r>0&&(i=this.data.substr(e),n=parseInt(i,10),t.put(n,3*r+1))},t.exports=r},507:(t,e,i)=>{var n=i(2060),r=i(5076);e.mul=function(t,e){var i=new n(t.length+e.length-1);i.fill(0);for(var s=0;s=0;){for(var s=i[0],o=0;o{var n=i(2060),r=i(1893),s=i(3076),o=i(1401),a=i(9834),l=i(6831),c=i(8902),h=i(4740),u=i(3347),d=i(278),p=i(9471),f=i(2256),m=i(4358),g=i(388),y=i(6265);function b(t,e,i){var n,r,s=t.size,o=f.getEncodedBits(e,i);for(n=0;n<15;n++)t.set(n<6?n:n<8?n+1:s-15+n,8,r=1==(o>>n&1),!0),t.set(8,n<8?s-n-1:n<9?15-n-1+1:15-n-1,r,!0);t.set(s-8,8,1,!0)}e.create=function(t,e){if(void 0===t||""===t)throw new Error("No input text");var i,f,v=s.M;return void 0!==e&&(v=s.from(e.errorCorrectionLevel,s.M),i=p.from(e.version),f=h.from(e.maskPattern),e.toSJISFunc&&r.setToSJISFunction(e.toSJISFunc)),function(t,e,i,s){var f;if(y(t))f=g.fromArray(t);else{if("string"!=typeof t)throw new Error("Invalid data");var v=e;if(!v){var _=g.rawSplit(t);v=p.getBestVersionForData(_,i)}f=g.fromString(t,v||40)}var w=p.getBestVersionForData(f,i);if(!w)throw new Error("The amount of data is too big to be stored in a QR Code");if(e){if(e=0&&a<=6&&(0===l||6===l)||l>=0&&l<=6&&(0===a||6===a)||a>=2&&a<=4&&l>=2&&l<=4,!0)}(A,e),function(t){for(var e=t.size,i=8;i=7&&function(t,e){for(var i,n,r,s=t.size,o=p.getEncodedBits(e),a=0;a<18;a++)i=Math.floor(a/3),t.set(i,n=a%3+s-8-3,r=1==(o>>a&1),!0),t.set(n,i,r,!0)}(A,e),function(t,e){for(var i=t.size,n=-1,r=i-1,s=7,o=0,a=i-1;a>0;a-=2)for(6===a&&a--;;){for(var l=0;l<2;l++)if(!t.isReserved(r,a-l)){var c=!1;o>>s&1)),t.set(r,a-l,c),-1==--s&&(o++,s=7)}if((r+=n)<0||i<=r){r-=n,n=-n;break}}}(A,x),isNaN(s)&&(s=h.getBestMask(A,b.bind(null,A,i))),h.applyMask(s,A),b(A,i,s),{modules:A,version:e,errorCorrectionLevel:i,maskPattern:s,segments:f}}(t,i,v,f)}},278:(t,e,i)=>{var n=i(2060),r=i(507);function s(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}s.prototype.initialize=function(t){this.degree=t,this.genPoly=r.generateECPolynomial(this.degree)},s.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");var e=new n(this.degree);e.fill(0);var i=n.concat([t,e],t.length+this.degree),s=r.mod(i,this.genPoly),o=this.degree-s.length;if(o>0){var a=new n(this.degree);return a.fill(0),s.copy(a,o),a}return s},t.exports=s},9947:(t,e)=>{var i="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+",n="(?:(?![A-Z0-9 $%*+\\-./:]|"+(i=i.replace(/u/g,"\\u"))+")(?:.|[\r\n]))+";e.KANJI=new RegExp(i,"g"),e.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),e.BYTE=new RegExp(n,"g"),e.NUMERIC=new RegExp("[0-9]+","g"),e.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");var r=new RegExp("^"+i+"$"),s=new RegExp("^[0-9]+$"),o=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");e.testKanji=function(t){return r.test(t)},e.testNumeric=function(t){return s.test(t)},e.testAlphanumeric=function(t){return o.test(t)}},388:(t,e,i)=>{var n=i(4358),r=i(9246),s=i(9946),o=i(3964),a=i(9889),l=i(9947),c=i(1893),h=i(45);function u(t){return unescape(encodeURIComponent(t)).length}function d(t,e,i){for(var n,r=[];null!==(n=t.exec(i));)r.push({data:n[0],index:n.index,mode:e,length:n[0].length});return r}function p(t){var e,i,r=d(l.NUMERIC,n.NUMERIC,t),s=d(l.ALPHANUMERIC,n.ALPHANUMERIC,t);return c.isKanjiModeEnabled()?(e=d(l.BYTE,n.BYTE,t),i=d(l.KANJI,n.KANJI,t)):(e=d(l.BYTE_KANJI,n.BYTE,t),i=[]),r.concat(s,e,i).sort(function(t,e){return t.index-e.index}).map(function(t){return{data:t.data,mode:t.mode,length:t.length}})}function f(t,e){switch(e){case n.NUMERIC:return r.getBitsLength(t);case n.ALPHANUMERIC:return s.getBitsLength(t);case n.KANJI:return a.getBitsLength(t);case n.BYTE:return o.getBitsLength(t)}}function m(t,e){var i,l=n.getBestModeForData(t);if((i=n.from(e,l))!==n.BYTE&&i.bit=0?t[t.length-1]:null;return i&&i.mode===e.mode?(t[t.length-1].data+=e.data,t):(t.push(e),t)},[]))},e.rawSplit=function(t){return e.fromArray(p(t,c.isKanjiModeEnabled()))}},1893:(t,e)=>{var i,n=[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];e.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return 4*t+17},e.getSymbolTotalCodewords=function(t){return n[t]},e.getBCHDigit=function(t){for(var e=0;0!==t;)e++,t>>>=1;return e},e.setToSJISFunction=function(t){if("function"!=typeof t)throw new Error('"toSJISFunc" is not a valid function.');i=t},e.isKanjiModeEnabled=function(){return void 0!==i},e.toSJIS=function(t){return i(t)}},3893:(t,e)=>{e.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}},9471:(t,e,i)=>{var n=i(1893),r=i(3347),s=i(3076),o=i(4358),a=i(3893),l=i(6265),c=n.getBCHDigit(7973);function h(t,e){return o.getCharCountIndicator(t,e)+4}function u(t,e){var i=0;return t.forEach(function(t){var n=h(t.mode,e);i+=n+t.getBitsLength()}),i}e.from=function(t,e){return a.isValid(t)?parseInt(t,10):e},e.getCapacity=function(t,e,i){if(!a.isValid(t))throw new Error("Invalid QR Code version");void 0===i&&(i=o.BYTE);var s=8*(n.getSymbolTotalCodewords(t)-r.getTotalCodewordsCount(t,e));if(i===o.MIXED)return s;var l=s-h(i,t);switch(i){case o.NUMERIC:return Math.floor(l/10*3);case o.ALPHANUMERIC:return Math.floor(l/11*2);case o.KANJI:return Math.floor(l/13);case o.BYTE:default:return Math.floor(l/8)}},e.getBestVersionForData=function(t,i){var n,r=s.from(i,s.M);if(l(t)){if(t.length>1)return function(t,i){for(var n=1;n<=40;n++)if(u(t,n)<=e.getCapacity(n,i,o.MIXED))return n}(t,r);if(0===t.length)return 1;n=t[0]}else n=t;return function(t,i,n){for(var r=1;r<=40;r++)if(i<=e.getCapacity(r,n,t))return r}(n.mode,n.getLength(),r)},e.getEncodedBits=function(t){if(!a.isValid(t)||t<7)throw new Error("Invalid QR Code version");for(var e=t<<12;n.getBCHDigit(e)-c>=0;)e^=7973<{var n=i(717);e.render=function(t,e,i){var r=i,s=e;void 0!==r||e&&e.getContext||(r=e,e=void 0),e||(s=function(){try{return document.createElement("canvas")}catch(t){throw new Error("You need to specify a canvas element")}}()),r=n.getOptions(r);var o=n.getImageWidth(t.modules.size,r),a=s.getContext("2d"),l=a.createImageData(o,o);return n.qrToImageData(l.data,t,r),function(t,e,i){t.clearRect(0,0,e.width,e.height),e.style||(e.style={}),e.height=i,e.width=i,e.style.height=i+"px",e.style.width=i+"px"}(a,s,o),a.putImageData(l,0,0),s},e.renderToDataURL=function(t,i,n){var r=n;return void 0!==r||i&&i.getContext||(r=i,i=void 0),r||(r={}),e.render(t,i,r).toDataURL(r.type||"image/png",(r.rendererOpts||{}).quality)}},3657:(t,e,i)=>{var n=i(717);function r(t,e){var i=t.a/255,n=e+'="'+t.hex+'"';return i<1?n+" "+e+'-opacity="'+i.toFixed(2).slice(1)+'"':n}function s(t,e,i){var n=t+e;return void 0!==i&&(n+=" "+i),n}e.render=function(t,e,i){var o=n.getOptions(e),a=t.modules.size,l=t.modules.data,c=a+2*o.margin,h=o.color.light.a?"':"",u="0&&c>0&&t[l-1]||(n+=o?s("M",c+i,.5+h+i):s("m",r,0),r=0,o=!1),c+1',d=''+h+u+"\n";return"function"==typeof i&&i(null,d),d}},717:(t,e)=>{function i(t){if("number"==typeof t&&(t=t.toString()),"string"!=typeof t)throw new Error("Color should be defined as hex string");var e=t.slice().replace("#","").split("");if(e.length<3||5===e.length||e.length>8)throw new Error("Invalid hex color: "+t);3!==e.length&&4!==e.length||(e=Array.prototype.concat.apply([],e.map(function(t){return[t,t]}))),6===e.length&&e.push("F","F");var i=parseInt(e.join(""),16);return{r:i>>24&255,g:i>>16&255,b:i>>8&255,a:255&i,hex:"#"+e.slice(0,6).join("")}}e.getOptions=function(t){t||(t={}),t.color||(t.color={});var e=t.width&&t.width>=21?t.width:void 0;return{width:e,scale:e?4:t.scale||4,margin:null==t.margin||t.margin<0?4:t.margin,color:{dark:i(t.color.dark||"#000000ff"),light:i(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}},e.getScale=function(t,e){return e.width&&e.width>=t+2*e.margin?e.width/(t+2*e.margin):e.scale},e.getImageWidth=function(t,i){var n=e.getScale(t,i);return Math.floor((t+2*i.margin)*n)},e.qrToImageData=function(t,i,n){for(var r=i.modules.size,s=i.modules.data,o=e.getScale(r,n),a=Math.floor((r+2*n.margin)*o),l=n.margin*o,c=[n.color.light,n.color.dark],h=0;h=l&&u>=l&&h{"use strict";var n=i(6265),r=(s.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()}catch(e){return!1}}())?2147483647:1073741823;function s(t,e,i){return s.TYPED_ARRAY_SUPPORT||this instanceof s?"number"==typeof t?l(this,t):function(t,e,i,n){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,i,n){if(i<0||e.byteLength=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return 0|t}function a(t,e){var i;return s.TYPED_ARRAY_SUPPORT?(i=new Uint8Array(e)).__proto__=s.prototype:(null===(i=t)&&(i=new s(e)),i.length=e),i}function l(t,e){var i=a(t,e<0?0:0|o(e));if(!s.TYPED_ARRAY_SUPPORT)for(var n=0;n55295&&i<57344){if(!r){if(i>56319){(e-=3)>-1&&s.push(239,191,189);continue}if(o+1===n){(e-=3)>-1&&s.push(239,191,189);continue}r=i;continue}if(i<56320){(e-=3)>-1&&s.push(239,191,189),r=i;continue}i=65536+(r-55296<<10|i-56320)}else r&&(e-=3)>-1&&s.push(239,191,189);if(r=null,i<128){if((e-=1)<0)break;s.push(i)}else if(i<2048){if((e-=2)<0)break;s.push(i>>6|192,63&i|128)}else if(i<65536){if((e-=3)<0)break;s.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;s.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return s}function u(t){return s.isBuffer(t)?t.length:"undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer)?t.byteLength:("string"!=typeof t&&(t=""+t),0===t.length?0:h(t).length)}s.TYPED_ARRAY_SUPPORT&&(s.prototype.__proto__=Uint8Array.prototype,s.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&s[Symbol.species]===s&&Object.defineProperty(s,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1})),s.prototype.write=function(t,e,i){void 0===e||void 0===i&&"string"==typeof e?(i=this.length,e=0):isFinite(e)&&(e|=0,isFinite(i)?i|=0:i=void 0);var n=this.length-e;if((void 0===i||i>n)&&(i=n),t.length>0&&(i<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");return function(t,e,i,n){return function(t,e,i,n){for(var r=0;r=e.length||r>=t.length);++r)e[r+i]=t[r];return r}(h(e,t.length-i),t,i,n)}(this,t,e,i)},s.prototype.slice=function(t,e){var i,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e=t.length&&(e=t.length),e||(e=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e=0;--r)t[r+e]=this[r+i];else if(o<1e3||!s.TYPED_ARRAY_SUPPORT)for(r=0;r>>=0,i=void 0===i?this.length:i>>>0,t||(t=0),"number"==typeof t)for(r=e;r{"use strict";var n=65536,r=i(545).Buffer,s=global.crypto||global.msCrypto;t.exports=s&&s.getRandomValues?function(t,e){if(t>4294967295)throw new RangeError("requested too many random bytes");var i=r.allocUnsafe(t);if(t>0)if(t>n)for(var o=0;o{"use strict";function n(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var r=i(545),s=i(6716),o=r.Buffer,a=r.kMaxLength,l=global.crypto||global.msCrypto,c=Math.pow(2,32)-1;function h(t,e){if("number"!=typeof t||t!=t)throw new TypeError("offset must be a number");if(t>c||t<0)throw new TypeError("offset must be a uint32");if(t>a||t>e)throw new RangeError("offset out of range")}function u(t,e,i){if("number"!=typeof t||t!=t)throw new TypeError("size must be a number");if(t>c||t<0)throw new TypeError("size must be a uint32");if(t+e>i||t>a)throw new RangeError("buffer too small")}function d(t,e,i,n){if(process.browser){var r=new Uint8Array(t.buffer,e,i);return l.getRandomValues(r),n?void process.nextTick(function(){n(null,t)}):t}if(!n)return s(i).copy(t,e),t;s(i,function(i,r){if(i)return n(i);r.copy(t,e),n(null,t)})}l&&l.getRandomValues||!process.browser?(e.randomFill=function(t,e,i,n){if(!(o.isBuffer(t)||t instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof e)n=e,e=0,i=t.length;else if("function"==typeof i)n=i,i=t.length-e;else if("function"!=typeof n)throw new TypeError('"cb" argument must be a function');return h(e,t.length),u(i,e,t.length),d(t,e,i,n)},e.randomFillSync=function(t,e,i){if(void 0===e&&(e=0),!(o.isBuffer(t)||t instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return h(e,t.length),void 0===i&&(i=t.length-e),u(i,e,t.length),d(t,e,i)}):(e.randomFill=n,e.randomFillSync=n)},1552:t=>{"use strict";var e={};function i(t,i,n){n||(n=Error);var r=function(t){var e,n;function r(e,n,r){return t.call(this,function(t,e,n){return"string"==typeof i?i:i(t,e,n)}(e,n,r))||this}return n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,r}(n);r.prototype.name=n.name,r.prototype.code=t,e[t]=r}function n(t,e){if(Array.isArray(t)){var i=t.length;return t=t.map(function(t){return String(t)}),i>2?"one of ".concat(e," ").concat(t.slice(0,i-1).join(", "),", or ")+t[i-1]:2===i?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}i("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError),i("ERR_INVALID_ARG_TYPE",function(t,e,i){var r,s,o,a;if("string"==typeof e&&"not "===e.substr(0,"not ".length)?(r="must not be",e=e.replace(/^not /,"")):r="must be",function(t,e,i){return(void 0===i||i>t.length)&&(i=t.length),t.substring(i-e.length,i)===e}(t," argument"))s="The ".concat(t," ").concat(r," ").concat(n(e,"type"));else{var l=("number"!=typeof a&&(a=0),a+".".length>(o=t).length||-1===o.indexOf(".",a)?"argument":"property");s='The "'.concat(t,'" ').concat(l," ").concat(r," ").concat(n(e,"type"))}return s+". Received type ".concat(typeof i)},TypeError),i("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),i("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"}),i("ERR_STREAM_PREMATURE_CLOSE","Premature close"),i("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"}),i("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),i("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),i("ERR_STREAM_WRITE_AFTER_END","write after end"),i("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),i("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError),i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.q=e},9847:(t,e,i)=>{"use strict";var n=Object.keys||function(t){var e=[];for(var i in t)e.push(i);return e};t.exports=c;var r=i(617),s=i(4374);i(5457)(c,r);for(var o=n(s.prototype),a=0;a{"use strict";t.exports=r;var n=i(5774);function r(t){if(!(this instanceof r))return new r(t);n.call(this,t)}i(5457)(r,n),r.prototype._transform=function(t,e,i){i(null,t)}},617:(t,e,i)=>{"use strict";var n;t.exports=A,A.ReadableState=C,i(5068);var r,s=function(t,e){return t.listeners(e).length},o=i(6787),a=i(3833).Buffer,l=global.Uint8Array||function(){},c=i(4616);r=c&&c.debuglog?c.debuglog("stream"):function(){};var h,u,d,p=i(1062),f=i(2742),m=i(6187).getHighWaterMark,g=i(1552).q,y=g.ERR_INVALID_ARG_TYPE,b=g.ERR_STREAM_PUSH_AFTER_EOF,v=g.ERR_METHOD_NOT_IMPLEMENTED,_=g.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;i(5457)(A,o);var w=f.errorOrDestroy,x=["error","close","destroy","pause","resume"];function C(t,e,r){n=n||i(9847),"boolean"!=typeof r&&(r=e instanceof n),this.objectMode=!!(t=t||{}).objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=m(this,t,"readableHighWaterMark",r),this.buffer=new p,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(h||(h=i(4706).s),this.decoder=new h(t.encoding),this.encoding=t.encoding)}function A(t){if(n=n||i(9847),!(this instanceof A))return new A(t);this._readableState=new C(t,this,this instanceof n),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),o.call(this)}function S(t,e,i,n,s){r("readableAddChunk",e);var o,c=t._readableState;if(null===e)c.reading=!1,function(t,e){if(r("onEofChunk"),!e.ended){if(e.decoder){var i=e.decoder.end();i&&i.length&&(e.buffer.push(i),e.length+=e.objectMode?1:i.length)}e.ended=!0,e.sync?M(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,L(t)))}}(t,c);else if(s||(o=function(t,e){var i,n;return a.isBuffer(n=e)||n instanceof l||"string"==typeof e||void 0===e||t.objectMode||(i=new y("chunk",["string","Buffer","Uint8Array"],e)),i}(c,e)),o)w(t,o);else if(c.objectMode||e&&e.length>0)if("string"==typeof e||c.objectMode||Object.getPrototypeOf(e)===a.prototype||(e=function(t){return a.from(t)}(e)),n)c.endEmitted?w(t,new _):E(t,c,e,!0);else if(c.ended)w(t,new b);else{if(c.destroyed)return!1;c.reading=!1,c.decoder&&!i?(e=c.decoder.write(e),c.objectMode||0!==e.length?E(t,c,e,!1):I(t,c)):E(t,c,e,!1)}else n||(c.reading=!1,I(t,c));return!c.ended&&(c.lengthe.highWaterMark&&(e.highWaterMark=function(t){return t>=k?t=k:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function M(t){var e=t._readableState;r("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(r("emitReadable",e.flowing),e.emittedReadable=!0,process.nextTick(L,t))}function L(t){var e=t._readableState;r("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||!e.length&&!e.ended||(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,P(t)}function I(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(O,t,e))}function O(t,e){for(;!e.reading&&!e.ended&&(e.length0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function R(t){r("readable nexttick read 0"),t.read(0)}function N(t,e){r("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),P(t),e.flowing&&!e.reading&&t.read(0)}function P(t){var e=t._readableState;for(r("flow",e.flowing);e.flowing&&null!==t.read(););}function F(t,e){return 0===e.length?null:(e.objectMode?i=e.buffer.shift():!t||t>=e.length?(i=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):i=e.buffer.consume(t,e.decoder),i);var i}function Z(t){var e=t._readableState;r("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,process.nextTick(B,e,t))}function B(t,e){if(r("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&0===t.length&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var i=e._writableState;(!i||i.autoDestroy&&i.finished)&&e.destroy()}}function U(t,e){for(var i=0,n=t.length;i=e.highWaterMark:e.length>0)||e.ended))return r("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?Z(this):M(this),null;if(0===(t=T(t,e))&&e.ended)return 0===e.length&&Z(this),null;var n,s=e.needReadable;return r("need readable",s),(0===e.length||e.length-t0?F(t,e):null)?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),0===e.length&&(e.ended||(e.needReadable=!0),i!==t&&e.ended&&Z(this)),null!==n&&this.emit("data",n),n},A.prototype._read=function(t){w(this,new v("_read()"))},A.prototype.pipe=function(t,e){var i=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=t;break;case 1:n.pipes=[n.pipes,t];break;default:n.pipes.push(t)}n.pipesCount+=1,r("pipe count=%d opts=%j",n.pipesCount,e);var o=e&&!1===e.end||t===process.stdout||t===process.stderr?f:a;function a(){r("onend"),t.end()}n.endEmitted?process.nextTick(o):i.once("end",o),t.on("unpipe",function e(s,o){r("onunpipe"),s===i&&o&&!1===o.hasUnpiped&&(o.hasUnpiped=!0,r("cleanup"),t.removeListener("close",d),t.removeListener("finish",p),t.removeListener("drain",l),t.removeListener("error",u),t.removeListener("unpipe",e),i.removeListener("end",a),i.removeListener("end",f),i.removeListener("data",h),c=!0,!n.awaitDrain||t._writableState&&!t._writableState.needDrain||l())});var l=function(t){return function(){var e=t._readableState;r("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&s(t,"data")&&(e.flowing=!0,P(t))}}(i);t.on("drain",l);var c=!1;function h(e){r("ondata");var s=t.write(e);r("dest.write",s),!1===s&&((1===n.pipesCount&&n.pipes===t||n.pipesCount>1&&-1!==U(n.pipes,t))&&!c&&(r("false write response, pause",n.awaitDrain),n.awaitDrain++),i.pause())}function u(e){r("onerror",e),f(),t.removeListener("error",u),0===s(t,"error")&&w(t,e)}function d(){t.removeListener("finish",p),f()}function p(){r("onfinish"),t.removeListener("close",d),f()}function f(){r("unpipe"),i.unpipe(t)}return i.on("data",h),function(t,e,i){if("function"==typeof t.prependListener)return t.prependListener(e,i);t._events&&t._events.error?Array.isArray(t._events.error)?t._events.error.unshift(i):t._events.error=[i,t._events.error]:t.on(e,i)}(t,"error",u),t.once("close",d),t.once("finish",p),t.emit("pipe",i),n.flowing||(r("pipe resume"),i.resume()),t},A.prototype.unpipe=function(t){var e=this._readableState,i={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,i)),this;if(!t){var n=e.pipes,r=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var s=0;s0,!1!==n.flowing&&this.resume()):"readable"===t&&(n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,r("on readable",n.length,n.reading),n.length?M(this):n.reading||process.nextTick(R,this))),i},A.prototype.removeListener=function(t,e){var i=o.prototype.removeListener.call(this,t,e);return"readable"===t&&process.nextTick(D,this),i},A.prototype.removeAllListeners=function(t){var e=o.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||process.nextTick(D,this),e},A.prototype.resume=function(){var t=this._readableState;return t.flowing||(r("resume"),t.flowing=!t.readableListening,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(N,t,e))}(this,t)),t.paused=!1,this},A.prototype.pause=function(){return r("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(r("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},A.prototype.wrap=function(t){var e=this,i=this._readableState,n=!1;for(var s in t.on("end",function(){if(r("wrapped end"),i.decoder&&!i.ended){var t=i.decoder.end();t&&t.length&&e.push(t)}e.push(null)}),t.on("data",function(s){r("wrapped data"),i.decoder&&(s=i.decoder.write(s)),i.objectMode&&null==s||(i.objectMode||s&&s.length)&&(e.push(s)||(n=!0,t.pause()))}),t)void 0===this[s]&&"function"==typeof t[s]&&(this[s]=function(e){return function(){return t[e].apply(t,arguments)}}(s));for(var o=0;o{"use strict";t.exports=h;var n=i(1552).q,r=n.ERR_METHOD_NOT_IMPLEMENTED,s=n.ERR_MULTIPLE_CALLBACK,o=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=n.ERR_TRANSFORM_WITH_LENGTH_0,l=i(9847);function c(t,e){var i=this._transformState;i.transforming=!1;var n=i.writecb;if(null===n)return this.emit("error",new s);i.writechunk=null,i.writecb=null,null!=e&&this.push(e),n(t);var r=this._readableState;r.reading=!1,(r.needReadable||r.length{"use strict";function n(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,i){var n=t.entry;for(t.entry=null;n;){var r=n.callback;e.pendingcb--,r(void 0),n=n.next}e.corkedRequestsFree.next=t}(e,t)}}var r;t.exports=A,A.WritableState=C;var s,o={deprecate:i(5435)},a=i(6787),l=i(3833).Buffer,c=global.Uint8Array||function(){},h=i(2742),u=i(6187).getHighWaterMark,d=i(1552).q,p=d.ERR_INVALID_ARG_TYPE,f=d.ERR_METHOD_NOT_IMPLEMENTED,m=d.ERR_MULTIPLE_CALLBACK,g=d.ERR_STREAM_CANNOT_PIPE,y=d.ERR_STREAM_DESTROYED,b=d.ERR_STREAM_NULL_VALUES,v=d.ERR_STREAM_WRITE_AFTER_END,_=d.ERR_UNKNOWN_ENCODING,w=h.errorOrDestroy;function x(){}function C(t,e,s){r=r||i(9847),"boolean"!=typeof s&&(s=e instanceof r),this.objectMode=!!(t=t||{}).objectMode,s&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=u(this,t,"writableHighWaterMark",s),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1,this.decodeStrings=!(!1===t.decodeStrings),this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var i=t._writableState,n=i.sync,r=i.writecb;if("function"!=typeof r)throw new m;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(i),e)!function(t,e,i,n,r){--e.pendingcb,i?(process.nextTick(r,n),process.nextTick(L,t,e),t._writableState.errorEmitted=!0,w(t,n)):(r(n),t._writableState.errorEmitted=!0,w(t,n),L(t,e))}(t,i,n,e,r);else{var s=T(i)||t.destroyed;s||i.corked||i.bufferProcessing||!i.bufferedRequest||k(t,i),n?process.nextTick(E,t,i,s,r):E(t,i,s,r)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new n(this)}function A(t){var e=this instanceof(r=r||i(9847));if(!e&&!s.call(A,this))return new A(t);this._writableState=new C(t,this,e),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),a.call(this)}function S(t,e,i,n,r,s,o){e.writelen=n,e.writecb=o,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new y("write")):i?t._writev(r,e.onwrite):t._write(r,s,e.onwrite),e.sync=!1}function E(t,e,i,n){i||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,n(),L(t,e)}function k(t,e){e.bufferProcessing=!0;var i=e.bufferedRequest;if(t._writev&&i&&i.next){var r=new Array(e.bufferedRequestCount),s=e.corkedRequestsFree;s.entry=i;for(var o=0,a=!0;i;)r[o]=i,i.isBuf||(a=!1),i=i.next,o+=1;r.allBuffers=a,S(t,e,!0,e.length,r,"",s.finish),e.pendingcb++,e.lastBufferedRequest=null,s.next?(e.corkedRequestsFree=s.next,s.next=null):e.corkedRequestsFree=new n(e),e.bufferedRequestCount=0}else{for(;i;){var l=i.chunk;if(S(t,e,!1,e.objectMode?1:l.length,l,i.encoding,i.callback),i=i.next,e.bufferedRequestCount--,e.writing)break}null===i&&(e.lastBufferedRequest=null)}e.bufferedRequest=i,e.bufferProcessing=!1}function T(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function M(t,e){t._final(function(i){e.pendingcb--,i&&w(t,i),e.prefinished=!0,t.emit("prefinish"),L(t,e)})}function L(t,e){var i=T(e);if(i&&(function(t,e){e.prefinished||e.finalCalled||("function"!=typeof t._final||e.destroyed?(e.prefinished=!0,t.emit("prefinish")):(e.pendingcb++,e.finalCalled=!0,process.nextTick(M,t,e)))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var n=t._readableState;(!n||n.autoDestroy&&n.endEmitted)&&t.destroy()}return i}i(5457)(A,a),C.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(C.prototype,"buffer",{get:o.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(s=Function.prototype[Symbol.hasInstance],Object.defineProperty(A,Symbol.hasInstance,{value:function(t){return!!s.call(this,t)||this===A&&t&&t._writableState instanceof C}})):s=function(t){return t instanceof this},A.prototype.pipe=function(){w(this,new g)},A.prototype.write=function(t,e,i){var n,r=this._writableState,s=!1,o=!r.objectMode&&(l.isBuffer(n=t)||n instanceof c);return o&&!l.isBuffer(t)&&(t=function(t){return l.from(t)}(t)),"function"==typeof e&&(i=e,e=null),o?e="buffer":e||(e=r.defaultEncoding),"function"!=typeof i&&(i=x),r.ending?function(t,e){var i=new v;w(t,i),process.nextTick(e,i)}(this,i):(o||function(t,e,i,n){var r;return null===i?r=new b:"string"==typeof i||e.objectMode||(r=new p("chunk",["string","Buffer"],i)),!r||(w(t,r),process.nextTick(n,r),!1)}(this,r,t,i))&&(r.pendingcb++,s=function(t,e,i,n,r,s){if(!i){var o=function(t,e,i){return t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=l.from(e,i)),e}(e,n,r);n!==o&&(i=!0,r="buffer",n=o)}var a=e.objectMode?1:n.length;e.length+=a;var c=e.length-1))throw new _(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(A.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(A.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),A.prototype._write=function(t,e,i){i(new f("_write()"))},A.prototype._writev=null,A.prototype.end=function(t,e,i){var n=this._writableState;return"function"==typeof t?(i=t,t=null,e=null):"function"==typeof e&&(i=e,e=null),null!=t&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||function(t,e,i){e.ending=!0,L(t,e),i&&(e.finished?process.nextTick(i):t.once("finish",i)),e.ended=!0,t.writable=!1}(this,n,i),this},Object.defineProperty(A.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(A.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),A.prototype.destroy=h.destroy,A.prototype._undestroy=h.undestroy,A.prototype._destroy=function(t,e){e(t)}},4536:(t,e,i)=>{"use strict";var n;function r(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var s=i(6484),o=Symbol("lastResolve"),a=Symbol("lastReject"),l=Symbol("error"),c=Symbol("ended"),h=Symbol("lastPromise"),u=Symbol("handlePromise"),d=Symbol("stream");function p(t,e){return{value:t,done:e}}function f(t){var e=t[o];if(null!==e){var i=t[d].read();null!==i&&(t[h]=null,t[o]=null,t[a]=null,e(p(i,!1)))}}function m(t){process.nextTick(f,t)}var g=Object.getPrototypeOf(function(){}),y=Object.setPrototypeOf((r(n={get stream(){return this[d]},next:function(){var t=this,e=this[l];if(null!==e)return Promise.reject(e);if(this[c])return Promise.resolve(p(void 0,!0));if(this[d].destroyed)return new Promise(function(e,i){process.nextTick(function(){t[l]?i(t[l]):e(p(void 0,!0))})});var i,n=this[h];if(n)i=new Promise(function(t,e){return function(i,n){t.then(function(){e[c]?i(p(void 0,!0)):e[u](i,n)},n)}}(n,this));else{var r=this[d].read();if(null!==r)return Promise.resolve(p(r,!1));i=new Promise(this[u])}return this[h]=i,i}},Symbol.asyncIterator,function(){return this}),r(n,"return",function(){var t=this;return new Promise(function(e,i){t[d].destroy(null,function(t){t?i(t):e(p(void 0,!0))})})}),n),g);t.exports=function(t){var e,i=Object.create(y,(r(e={},d,{value:t,writable:!0}),r(e,o,{value:null,writable:!0}),r(e,a,{value:null,writable:!0}),r(e,l,{value:null,writable:!0}),r(e,c,{value:t._readableState.endEmitted,writable:!0}),r(e,u,{value:function(t,e){var n=i[d].read();n?(i[h]=null,i[o]=null,i[a]=null,t(p(n,!1))):(i[o]=t,i[a]=e)},writable:!0}),e));return i[h]=null,s(t,function(t){if(t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code){var e=i[a];return null!==e&&(i[h]=null,i[o]=null,i[a]=null,e(t)),void(i[l]=t)}var n=i[o];null!==n&&(i[h]=null,i[o]=null,i[a]=null,n(p(void 0,!0))),i[c]=!0}),t.on("readable",m.bind(null,i)),i}},1062:(t,e,i)=>{"use strict";function n(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,n)}return i}function r(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var s=i(3833).Buffer,o=i(2361).inspect,a=o&&o.custom||"inspect";t.exports=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.head=null,this.tail=null,this.length=0}var e;return(e=[{key:"push",value:function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:"unshift",value:function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}},{key:"shift",value:function(){if(0!==this.length){var t=this.head.data;return this.head=1===this.length?this.tail=null:this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(0===this.length)return"";for(var e=this.head,i=""+e.data;e=e.next;)i+=t+e.data;return i}},{key:"concat",value:function(t){if(0===this.length)return s.alloc(0);for(var e=s.allocUnsafe(t>>>0),i=this.head,n=0;i;)s.prototype.copy.call(i.data,e,n),n+=i.data.length,i=i.next;return e}},{key:"consume",value:function(t,e){var i;return tr.length?r.length:t;if(n+=s===r.length?r:r.slice(0,t),0==(t-=s)){s===r.length?(++i,this.head=e.next?e.next:this.tail=null):(this.head=e,e.data=r.slice(s));break}++i}return this.length-=i,n}},{key:"_getBuffer",value:function(t){var e=s.allocUnsafe(t),i=this.head,n=1;for(i.data.copy(e),t-=i.data.length;i=i.next;){var r=i.data,o=t>r.length?r.length:t;if(r.copy(e,e.length-t,0,o),0==(t-=o)){o===r.length?(++n,this.head=i.next?i.next:this.tail=null):(this.head=i,i.data=r.slice(o));break}++n}return this.length-=n,e}},{key:a,value:function(t,e){return o(this,function(t){for(var e=1;e{"use strict";function e(t,e){n(t,e),i(t)}function i(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function n(t,e){t.emit("error",e)}t.exports={destroy:function(t,r){var s=this;return this._readableState&&this._readableState.destroyed||this._writableState&&this._writableState.destroyed?(r?r(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(n,this,t)):process.nextTick(n,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(t){!r&&t?s._writableState?s._writableState.errorEmitted?process.nextTick(i,s):(s._writableState.errorEmitted=!0,process.nextTick(e,s,t)):process.nextTick(e,s,t):r?(process.nextTick(i,s),r(t)):process.nextTick(i,s)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(t,e){var i=t._readableState,n=t._writableState;i&&i.autoDestroy||n&&n.autoDestroy?t.destroy(e):t.emit("error",e)}}},6484:(t,e,i)=>{"use strict";var n=i(1552).q.ERR_STREAM_PREMATURE_CLOSE;function r(){}t.exports=function t(e,i,s){if("function"==typeof i)return t(e,null,i);i||(i={}),s=function(t){var e=!1;return function(){if(!e){e=!0;for(var i=arguments.length,n=new Array(i),r=0;r{t.exports=function(){throw new Error("Readable.from is not available in the browser")}},5802:(t,e,i)=>{"use strict";var n,r=i(1552).q,s=r.ERR_MISSING_ARGS,o=r.ERR_STREAM_DESTROYED;function a(t){if(t)throw t}function l(t,e,r,s){s=function(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}(s);var a=!1;t.on("close",function(){a=!0}),void 0===n&&(n=i(6484)),n(t,{readable:e,writable:r},function(t){if(t)return s(t);a=!0,s()});var l=!1;return function(e){if(!a&&!l)return l=!0,function(t){return t.setHeader&&"function"==typeof t.abort}(t)?t.abort():"function"==typeof t.destroy?t.destroy():void s(e||new o("pipe"))}}function c(t){t()}function h(t,e){return t.pipe(e)}function u(t){return t.length?"function"!=typeof t[t.length-1]?a:t.pop():a}t.exports=function(){for(var t=arguments.length,e=new Array(t),i=0;i0,function(t){n||(n=t),t&&o.forEach(c),s||(o.forEach(c),r(n))})});return e.reduce(h)}},6187:(t,e,i)=>{"use strict";var n=i(1552).q.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(t,e,i,r){var s=function(t,e,i){return null!=t.highWaterMark?t.highWaterMark:e?t[i]:null}(e,r,i);if(null!=s){if(!isFinite(s)||Math.floor(s)!==s||s<0)throw new n(r?i:"highWaterMark",s);return Math.floor(s)}return t.objectMode?16:16384}}},6787:(t,e,i)=>{t.exports=i(5068).EventEmitter},7612:(t,e,i)=>{(e=t.exports=i(617)).Stream=e,e.Readable=e,e.Writable=i(4374),e.Duplex=i(9847),e.Transform=i(5774),e.PassThrough=i(9591),e.finished=i(6484),e.pipeline=i(5802)},3827:(t,e,i)=>{"use strict";var n=i(3833).Buffer,r=i(5457),s=i(7338),o=new Array(16),a=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],l=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],c=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],h=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],u=[0,1518500249,1859775393,2400959708,2840853838],d=[1352829926,1548603684,1836072691,2053994217,0];function p(){s.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function f(t,e){return t<>>32-e}function m(t,e,i,n,r,s,o,a){return f(t+(e^i^n)+s+o|0,a)+r|0}function g(t,e,i,n,r,s,o,a){return f(t+(e&i|~e&n)+s+o|0,a)+r|0}function y(t,e,i,n,r,s,o,a){return f(t+((e|~i)^n)+s+o|0,a)+r|0}function b(t,e,i,n,r,s,o,a){return f(t+(e&n|i&~n)+s+o|0,a)+r|0}function v(t,e,i,n,r,s,o,a){return f(t+(e^(i|~n))+s+o|0,a)+r|0}r(p,s),p.prototype._update=function(){for(var t=o,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);for(var i=0|this._a,n=0|this._b,r=0|this._c,s=0|this._d,p=0|this._e,_=0|this._a,w=0|this._b,x=0|this._c,C=0|this._d,A=0|this._e,S=0;S<80;S+=1){var E,k;S<16?(E=m(i,n,r,s,p,t[a[S]],u[0],c[S]),k=v(_,w,x,C,A,t[l[S]],d[0],h[S])):S<32?(E=g(i,n,r,s,p,t[a[S]],u[1],c[S]),k=b(_,w,x,C,A,t[l[S]],d[1],h[S])):S<48?(E=y(i,n,r,s,p,t[a[S]],u[2],c[S]),k=y(_,w,x,C,A,t[l[S]],d[2],h[S])):S<64?(E=b(i,n,r,s,p,t[a[S]],u[3],c[S]),k=g(_,w,x,C,A,t[l[S]],d[3],h[S])):(E=v(i,n,r,s,p,t[a[S]],u[4],c[S]),k=m(_,w,x,C,A,t[l[S]],d[4],h[S])),i=p,p=s,s=f(r,10),r=n,n=E,_=A,A=C,C=f(x,10),x=w,w=k}var T=this._b+r+C|0;this._b=this._c+s+A|0,this._c=this._d+p+_|0,this._d=this._e+i+w|0,this._e=this._a+n+x|0,this._a=T},p.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=n.alloc?n.alloc(20):new n(20);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t.writeInt32LE(this._e,16),t},t.exports=p},7425:(t,e,i)=>{"use strict";i.d(e,{X:()=>r});var n=i(9162),r=function(t){function e(e){var i=t.call(this)||this;return i._value=e,i}return(0,n.ZT)(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),e.prototype._subscribe=function(e){var i=t.prototype._subscribe.call(this,e);return!i.closed&&e.next(this._value),i},e.prototype.getValue=function(){var t=this,e=t._value;if(t.hasError)throw t.thrownError;return this._throwIfClosed(),e},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(i(9666).x)},2391:(t,e,i)=>{"use strict";i.d(e,{y:()=>h});var n=i(9643),r=i(6042),s=i(3004),o=i(1879);function a(t){return 0===t.length?o.y:1===t.length?t[0]:function(e){return t.reduce(function(t,e){return e(t)},e)}}var l=i(7296),c=i(7849),h=function(){function t(t){t&&(this._subscribe=t)}return t.prototype.lift=function(e){var i=new t;return i.source=this,i.operator=e,i},t.prototype.subscribe=function(t,e,i){var s,o=(s=t)&&s instanceof n.Lv||function(t){return t&&(0,c.m)(t.next)&&(0,c.m)(t.error)&&(0,c.m)(t.complete)}(s)&&(0,r.Nn)(s)?t:new n.Hp(t,e,i);if(l.v.useDeprecatedSynchronousErrorHandling)this._deprecatedSyncErrorSubscribe(o);else{var a=this.operator,h=this.source;o.add(a?a.call(o,h):h?this._subscribe(o):this._trySubscribe(o))}return o},t.prototype._deprecatedSyncErrorSubscribe=function(t){var e=t;e._syncErrorHack_isSubscribing=!0;var i=this.operator;if(i)t.add(i.call(t,this.source));else try{t.add(this._subscribe(t))}catch(r){e.__syncError=r}for(var n=e;n;){if("__syncError"in n)try{throw n.__syncError}finally{t.unsubscribe()}n=n.destination}e._syncErrorHack_isSubscribing=!1},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},t.prototype.forEach=function(t,e){var i=this;return new(e=u(e))(function(e,n){var r;r=i.subscribe(function(e){try{t(e)}catch(i){n(i),null==r||r.unsubscribe()}},n,e)})},t.prototype._subscribe=function(t){var e;return null===(e=this.source)||void 0===e?void 0:e.subscribe(t)},t.prototype[s.L]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e{"use strict";i.d(e,{t:()=>o});var n=i(9162),r=i(9666),s=i(5170),o=function(t){function e(e,i,n){void 0===e&&(e=1/0),void 0===i&&(i=1/0),void 0===n&&(n=s.l);var r=t.call(this)||this;return r._bufferSize=e,r._windowTime=i,r._timestampProvider=n,r._buffer=[],r._infiniteTimeWindow=!0,r._infiniteTimeWindow=i===1/0,r._bufferSize=Math.max(1,e),r._windowTime=Math.max(1,i),r}return(0,n.ZT)(e,t),e.prototype.next=function(e){var i=this,n=i._buffer,r=i._infiniteTimeWindow,s=i._timestampProvider,o=i._windowTime;i.isStopped||(n.push(e),!r&&n.push(s.now()+o)),this._trimBuffer(),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var e=this._innerSubscribe(t),i=this._infiniteTimeWindow,n=this._buffer.slice(),r=0;r{"use strict";i.d(e,{x:()=>l});var n=i(9162),r=i(2391),s=i(6042),o=(0,i(9951).d)(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),a=i(8764),l=function(t){function e(){var e=t.call(this)||this;return e.closed=!1,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return(0,n.ZT)(e,t),e.prototype.lift=function(t){var e=new c(this,this);return e.operator=t,e},e.prototype._throwIfClosed=function(){if(this.closed)throw new o},e.prototype.next=function(t){var e,i;if(this._throwIfClosed(),!this.isStopped){var r=this.observers.slice();try{for(var s=(0,n.XA)(r),o=s.next();!o.done;o=s.next())o.value.next(t)}catch(a){e={error:a}}finally{try{o&&!o.done&&(i=s.return)&&i.call(s)}finally{if(e)throw e.error}}}},e.prototype.error=function(t){if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;for(var e=this.observers;e.length;)e.shift().error(t)}},e.prototype.complete=function(){if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;for(var t=this.observers;t.length;)t.shift().complete()}},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(e){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},e.prototype._innerSubscribe=function(t){var e=this,i=e.observers;return e.hasError||e.isStopped?s.Lc:(i.push(t),new s.w0(function(){return(0,a.P)(i,t)}))},e.prototype._checkFinalizedStatuses=function(t){var e=this,i=e.isStopped;e.hasError?t.error(e.thrownError):i&&t.complete()},e.prototype.asObservable=function(){var t=new r.y;return t.source=this,t},e.create=function(t,e){return new c(t,e)},e}(r.y),c=function(t){function e(e,i){var n=t.call(this)||this;return n.destination=e,n.source=i,n}return(0,n.ZT)(e,t),e.prototype.next=function(t){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===i||i.call(e,t)},e.prototype.error=function(t){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===i||i.call(e,t)},e.prototype.complete=function(){var t,e;null===(e=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===e||e.call(t)},e.prototype._subscribe=function(t){var e,i;return null!==(i=null===(e=this.source)||void 0===e?void 0:e.subscribe(t))&&void 0!==i?i:s.Lc},e}(l)},9643:(t,e,i)=>{"use strict";i.d(e,{Hp:()=>p,Lv:()=>d});var n=i(9162),r=i(7849),s=i(6042),o=i(7296),a=i(2765),l=i(5397),c=h("C",void 0,void 0);function h(t,e,i){return{kind:t,value:e,error:i}}var u=i(4490),d=function(t){function e(e){var i=t.call(this)||this;return i.isStopped=!1,e?(i.destination=e,(0,s.Nn)(e)&&e.add(i)):i.destination=y,i}return(0,n.ZT)(e,t),e.create=function(t,e,i){return new p(t,e,i)},e.prototype.next=function(t){this.isStopped?g(function(t){return h("N",t,void 0)}(t),this):this._next(t)},e.prototype.error=function(t){this.isStopped?g(h("E",void 0,t),this):(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped?g(c,this):(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(s.w0),p=function(t){function e(e,i,n){var s,a=t.call(this)||this;if((0,r.m)(e))s=e;else if(e){var c;s=e.next,i=e.error,n=e.complete,a&&o.v.useDeprecatedNextContext?(c=Object.create(e)).unsubscribe=function(){return a.unsubscribe()}:c=e,s=null==s?void 0:s.bind(c),i=null==i?void 0:i.bind(c),n=null==n?void 0:n.bind(c)}return a.destination={next:s?f(s,a):l.Z,error:f(null!=i?i:m,a),complete:n?f(n,a):l.Z},a}return(0,n.ZT)(e,t),e}(d);function f(t,e){return function(){for(var i=[],r=0;r{"use strict";i.d(e,{Lc:()=>l,w0:()=>a,Nn:()=>c});var n=i(9162),r=i(7849),s=(0,i(9951).d)(function(t){return function(e){t(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map(function(t,e){return e+1+") "+t.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=e}}),o=i(8764),a=function(){function t(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._teardowns=null}var e;return t.prototype.unsubscribe=function(){var t,e,i,o,a;if(!this.closed){this.closed=!0;var l=this._parentage;if(l)if(this._parentage=null,Array.isArray(l))try{for(var c=(0,n.XA)(l),u=c.next();!u.done;u=c.next())u.value.remove(this)}catch(y){t={error:y}}finally{try{u&&!u.done&&(e=c.return)&&e.call(c)}finally{if(t)throw t.error}}else l.remove(this);var d=this.initialTeardown;if((0,r.m)(d))try{d()}catch(b){a=b instanceof s?b.errors:[b]}var p=this._teardowns;if(p){this._teardowns=null;try{for(var f=(0,n.XA)(p),m=f.next();!m.done;m=f.next()){var g=m.value;try{h(g)}catch(v){a=null!=a?a:[],v instanceof s?a=(0,n.ev)((0,n.ev)([],(0,n.CR)(a)),(0,n.CR)(v.errors)):a.push(v)}}}catch(_){i={error:_}}finally{try{m&&!m.done&&(o=f.return)&&o.call(f)}finally{if(i)throw i.error}}}if(a)throw new s(a)}},t.prototype.add=function(e){var i;if(e&&e!==this)if(this.closed)h(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._teardowns=null!==(i=this._teardowns)&&void 0!==i?i:[]).push(e)}},t.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},t.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},t.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&(0,o.P)(e,t)},t.prototype.remove=function(e){var i=this._teardowns;i&&(0,o.P)(i,e),e instanceof t&&e._removeParent(this)},t.EMPTY=((e=new t).closed=!0,e),t}(),l=a.EMPTY;function c(t){return t instanceof a||t&&"closed"in t&&(0,r.m)(t.remove)&&(0,r.m)(t.add)&&(0,r.m)(t.unsubscribe)}function h(t){(0,r.m)(t)?t():t.unsubscribe()}},7296:(t,e,i)=>{"use strict";i.d(e,{v:()=>n});var n={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},5868:(t,e,i)=>{"use strict";i.d(e,{a:()=>u});var n=i(2391),r=i(2846),s=i(5630),o=i(1879),a=i(8432),l=i(7070),c=i(9211),h=i(4659);function u(){for(var t=[],e=0;e{"use strict";i.d(e,{z:()=>a});var n=i(5813);function r(){return(0,n.J)(1)}var s=i(5622),o=i(7070);function a(){for(var t=[],e=0;e{"use strict";i.d(e,{P:()=>s});var n=i(2391),r=i(5630);function s(t){return new n.y(function(e){(0,r.Xf)(t()).subscribe(e)})}},4951:(t,e,i)=>{"use strict";i.d(e,{E:()=>n});var n=new(i(2391).y)(function(t){return t.complete()})},6891:(t,e,i)=>{"use strict";i.d(e,{D:()=>h});var n=i(2391),r=i(2846),s=i(5630),o=i(7070),a=i(4659),l=i(8432),c=i(9211);function h(){for(var t=[],e=0;e{"use strict";i.d(e,{Dp:()=>w,OO:()=>C,Xf:()=>x});var n=i(9162),r=i(3345),s=i(7849);function o(t){return(0,s.m)(null==t?void 0:t.then)}var a=i(3004),l=i(2391),c=i(6042),h=i(8006),u="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator",d=i(7491);function p(t,e){if(!t)throw new Error("Iterable cannot be null");return new l.y(function(i){var n=new c.w0;return n.add(e.schedule(function(){var r=t[Symbol.asyncIterator]();n.add(e.schedule(function(){var t=this;r.next().then(function(e){e.done?i.complete():(i.next(e.value),t.schedule())})}))})),n})}function f(t){return(0,s.m)(t[a.L])}function m(t){return(0,s.m)(null==t?void 0:t[u])}function g(t){return Symbol.asyncIterator&&(0,s.m)(null==t?void 0:t[Symbol.asyncIterator])}function y(t){return new TypeError("You provided "+(null!==t&&"object"==typeof t?"an invalid object":"'"+t+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function b(t){return(0,n.FC)(this,arguments,function(){var e,i,r;return(0,n.Jh)(this,function(s){switch(s.label){case 0:e=t.getReader(),s.label=1;case 1:s.trys.push([1,,9,10]),s.label=2;case 2:return[4,(0,n.qq)(e.read())];case 3:return i=s.sent(),r=i.value,i.done?[4,(0,n.qq)(void 0)]:[3,5];case 4:return[2,s.sent()];case 5:return[4,(0,n.qq)(r)];case 6:return[4,s.sent()];case 7:return s.sent(),[3,2];case 8:return[3,10];case 9:return e.releaseLock(),[7];case 10:return[2]}})})}function v(t){return(0,s.m)(null==t?void 0:t.getReader)}var _=i(2765);function w(t,e){return e?function(t,e){if(null!=t){if(f(t))return function(t,e){return new l.y(function(i){var n=new c.w0;return n.add(e.schedule(function(){var r=t[a.L]();n.add(r.subscribe({next:function(t){n.add(e.schedule(function(){return i.next(t)}))},error:function(t){n.add(e.schedule(function(){return i.error(t)}))},complete:function(){n.add(e.schedule(function(){return i.complete()}))}}))})),n})}(t,e);if((0,r.z)(t))return(0,h.r)(t,e);if(o(t))return function(t,e){return new l.y(function(i){return e.schedule(function(){return t.then(function(t){i.add(e.schedule(function(){i.next(t),i.add(e.schedule(function(){return i.complete()}))}))},function(t){i.add(e.schedule(function(){return i.error(t)}))})})})}(t,e);if(g(t))return p(t,e);if(m(t))return function(t,e){return new l.y(function(i){var n;return i.add(e.schedule(function(){n=t[u](),(0,d.A)(i,e,function(){var t=n.next(),e=t.value;t.done?i.complete():(i.next(e),this.schedule())})})),function(){return(0,s.m)(null==n?void 0:n.return)&&n.return()}})}(t,e);if(v(t))return function(t,e){return p(b(t),e)}(t,e)}throw y(t)}(t,e):x(t)}function x(t){if(t instanceof l.y)return t;if(null!=t){if(f(t))return c=t,new l.y(function(t){var e=c[a.L]();if((0,s.m)(e.subscribe))return e.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")});if((0,r.z)(t))return C(t);if(o(t))return i=t,new l.y(function(t){i.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,_.h)});if(g(t))return A(t);if(m(t))return e=t,new l.y(function(t){var i,r;try{for(var s=(0,n.XA)(e),o=s.next();!o.done;o=s.next())if(t.next(o.value),t.closed)return}catch(a){i={error:a}}finally{try{o&&!o.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}t.complete()});if(v(t))return A(b(t))}var e,i,c;throw y(t)}function C(t){return new l.y(function(e){for(var i=0;i{"use strict";i.d(e,{h:()=>s});var n=i(8006),r=i(5630);function s(t,e){return e?(0,n.r)(t,e):(0,r.OO)(t)}},5960:(t,e,i)=>{"use strict";i.d(e,{R:()=>p});var n=i(9162),r=i(2391),s=i(7228),o=i(3345),a=i(7849),l=i(8432),c=i(5622),h=["addListener","removeListener"],u=["addEventListener","removeEventListener"],d=["on","off"];function p(t,e,i,m){if((0,a.m)(i)&&(m=i,i=void 0),m)return p(t,e,i).pipe((0,l.Z)(m));var g=(0,n.CR)(function(t){return(0,a.m)(t.addEventListener)&&(0,a.m)(t.removeEventListener)}(t)?u.map(function(n){return function(r){return t[n](e,r,i)}}):function(t){return(0,a.m)(t.addListener)&&(0,a.m)(t.removeListener)}(t)?h.map(f(t,e)):function(t){return(0,a.m)(t.on)&&(0,a.m)(t.off)}(t)?d.map(f(t,e)):[],2),y=g[0],b=g[1];if(!y&&(0,o.z)(t))return(0,s.z)(function(t){return p(t,e,i)})((0,c.h)(t));if(!y)throw new TypeError("Invalid event target");return new r.y(function(t){var e=function(){for(var e=[],i=0;i{"use strict";i.d(e,{T:()=>l});var n=i(5813),r=i(5622),s=i(5630),o=i(4951),a=i(7070);function l(){for(var t=[],e=0;e{"use strict";i.d(e,{of:()=>o});var n=i(5622),r=i(8006),s=i(7070);function o(){for(var t=[],e=0;e{"use strict";i.d(e,{_:()=>s});var n=i(2391),r=i(7849);function s(t,e){var i=(0,r.m)(t)?t:function(){return t},s=function(t){return t.error(i())};return new n.y(e?function(t){return e.schedule(s,0,t)}:s)}},8431:(t,e,i)=>{"use strict";i.d(e,{H:()=>a});var n=i(2391),r=i(2948),s=i(1495),o=i(2841);function a(t,e,i){void 0===t&&(t=0),void 0===i&&(i=r.P);var a=-1;return null!=e&&((0,s.K)(e)?i=e:a=e),new n.y(function(e){var n=(0,o.q)(t)?+t-i.now():t;n<0&&(n=0);var r=0;return i.schedule(function(){e.closed||(e.next(r++),0<=a?this.schedule(void 0,a):e.complete())},n)})}},4659:(t,e,i)=>{"use strict";i.d(e,{Q:()=>r});var n=i(9162),r=function(t){function e(e,i,n,r,s){var o=t.call(this,e)||this;return o.onFinalize=s,o._next=i?function(t){try{i(t)}catch(n){e.error(n)}}:t.prototype._next,o._error=r?function(t){try{r(t)}catch(t){e.error(t)}finally{this.unsubscribe()}}:t.prototype._error,o._complete=n?function(){try{n()}catch(t){e.error(t)}finally{this.unsubscribe()}}:t.prototype._complete,o}return(0,n.ZT)(e,t),e.prototype.unsubscribe=function(){var e,i=this.closed;t.prototype.unsubscribe.call(this),!i&&(null===(e=this.onFinalize)||void 0===e||e.call(this))},e}(i(9643).Lv)},9610:(t,e,i)=>{"use strict";i.d(e,{e:()=>l});var n=i(2948),r=i(3386),s=i(5630),o=i(4659),a=i(8431);function l(t,e){return void 0===e&&(e=n.P),i=function(){return(0,a.H)(t,e)},(0,r.e)(function(t,e){var n=!1,r=null,a=null,l=!1,c=function(){if(null==a||a.unsubscribe(),a=null,n){n=!1;var t=r;r=null,e.next(t)}l&&e.complete()},h=function(){a=null,l&&e.complete()};t.subscribe(new o.Q(e,function(t){n=!0,r=t,a||(0,s.Xf)(i()).subscribe(a=new o.Q(e,c,h))},function(){l=!0,(!n||!a||a.closed)&&e.complete()}))});var i}},1816:(t,e,i)=>{"use strict";i.d(e,{K:()=>o});var n=i(5630),r=i(4659),s=i(3386);function o(t){return(0,s.e)(function(e,i){var s,a=null,l=!1;a=e.subscribe(new r.Q(i,void 0,void 0,function(r){s=(0,n.Xf)(t(r,o(t)(e))),a?(a.unsubscribe(),a=null,s.subscribe(i)):l=!0})),l&&(a.unsubscribe(),a=null,s.subscribe(i))})}},8196:(t,e,i)=>{"use strict";i.d(e,{b:()=>s});var n=i(7228),r=i(7849);function s(t,e){return(0,r.m)(e)?(0,n.z)(t,e,1):(0,n.z)(t,1)}},5057:(t,e,i)=>{"use strict";i.d(e,{b:()=>o});var n=i(2948),r=i(3386),s=i(4659);function o(t,e){return void 0===e&&(e=n.z),(0,r.e)(function(i,n){var r=null,o=null,a=null,l=function(){if(r){r.unsubscribe(),r=null;var t=o;o=null,n.next(t)}};function c(){var i=a+t,n=e.now();n{"use strict";i.d(e,{d:()=>s});var n=i(3386),r=i(4659);function s(t){return(0,n.e)(function(e,i){var n=!1;e.subscribe(new r.Q(i,function(t){n=!0,i.next(t)},function(){n||i.next(t),i.complete()}))})}},6493:(t,e,i)=>{"use strict";i.d(e,{g:()=>u});var n=i(2948),r=i(5613),s=i(9056),o=i(3286),a=i(1096),l=i(7228);function c(t,e){return e?function(i){return(0,r.z)(e.pipe((0,s.q)(1),(0,o.l)()),i.pipe(c(t)))}:(0,l.z)(function(e,i){return t(e,i).pipe((0,s.q)(1),(0,a.h)(e))})}var h=i(8431);function u(t,e){void 0===e&&(e=n.z);var i=(0,h.H)(t,e);return c(function(){return i})}},6424:(t,e,i)=>{"use strict";i.d(e,{x:()=>o});var n=i(1879),r=i(3386),s=i(4659);function o(t,e){return void 0===e&&(e=n.y),t=null!=t?t:a,(0,r.e)(function(i,n){var r,o=!0;i.subscribe(new s.Q(n,function(i){var s=e(i);!o&&t(r,s)||(o=!1,r=s,n.next(i))}))})}function a(t,e){return t===e}},8868:(t,e,i)=>{"use strict";i.d(e,{h:()=>s});var n=i(3386),r=i(4659);function s(t,e){return(0,n.e)(function(i,n){var s=0;i.subscribe(new r.Q(n,function(i){return t.call(e,i,s++)&&n.next(i)}))})}},849:(t,e,i)=>{"use strict";i.d(e,{x:()=>r});var n=i(3386);function r(t){return(0,n.e)(function(e,i){try{e.subscribe(i)}finally{i.add(t)}})}},8606:(t,e,i)=>{"use strict";i.d(e,{P:()=>c});var n=i(7325),r=i(8868),s=i(9056),o=i(4370),a=i(5334),l=i(1879);function c(t,e){var i=arguments.length>=2;return function(c){return c.pipe(t?(0,r.h)(function(e,i){return t(e,i,c)}):l.y,(0,s.q)(1),i?(0,o.d)(e):(0,a.T)(function(){return new n.K}))}}},3286:(t,e,i)=>{"use strict";i.d(e,{l:()=>o});var n=i(3386),r=i(4659),s=i(5397);function o(){return(0,n.e)(function(t,e){t.subscribe(new r.Q(e,s.Z))})}},1681:(t,e,i)=>{"use strict";i.d(e,{U:()=>s});var n=i(3386),r=i(4659);function s(t,e){return(0,n.e)(function(i,n){var s=0;i.subscribe(new r.Q(n,function(i){n.next(t.call(e,i,s++))}))})}},1096:(t,e,i)=>{"use strict";i.d(e,{h:()=>r});var n=i(1681);function r(t){return(0,n.U)(function(){return t})}},5813:(t,e,i)=>{"use strict";i.d(e,{J:()=>s});var n=i(7228),r=i(1879);function s(t){return void 0===t&&(t=1/0),(0,n.z)(r.y,t)}},7228:(t,e,i)=>{"use strict";i.d(e,{z:()=>l});var n=i(1681),r=i(5630),s=i(3386),o=i(4659),a=i(7849);function l(t,e,i){return void 0===i&&(i=1/0),(0,a.m)(e)?l(function(i,s){return(0,n.U)(function(t,n){return e(i,t,s,n)})((0,r.Xf)(t(i,s)))},i):("number"==typeof e&&(i=e),(0,s.e)(function(e,n){return function(t,e,i,n,s,a,l,c){var h=[],u=0,d=0,p=!1,f=function(){!p||h.length||u||e.complete()},m=function(t){u++;var s=!1;(0,r.Xf)(i(t,d++)).subscribe(new o.Q(e,function(t){e.next(t)},function(){s=!0},void 0,function(){if(s)try{for(u--;h.length&&u{"use strict";i.d(e,{Q:()=>s});var n=i(3386),r=i(4659);function s(t,e){return void 0===e&&(e=0),(0,n.e)(function(i,n){i.subscribe(new r.Q(n,function(i){return n.add(t.schedule(function(){return n.next(i)},e))},function(){return n.add(t.schedule(function(){return n.complete()},e))},function(i){return n.add(t.schedule(function(){return n.error(i)},e))}))})}},8193:(t,e,i)=>{"use strict";i.d(e,{R:()=>o});var n=i(3386),r=i(4659);function s(t,e,i,n,s){return function(o,a){var l=i,c=e,h=0;o.subscribe(new r.Q(a,function(e){var i=h++;c=l?t(c,e,i):(l=!0,e),n&&a.next(c)},s&&function(){l&&a.next(c),a.complete()}))}}function o(t,e){return(0,n.e)(s(t,e,arguments.length>=2,!0))}},7839:(t,e,i)=>{"use strict";i.d(e,{B:()=>c});var n=i(9162),r=i(5630),s=i(9056),o=i(9666),a=i(9643),l=i(3386);function c(t){void 0===t&&(t={});var e=t.connector,i=void 0===e?function(){return new o.x}:e,n=t.resetOnError,s=void 0===n||n,c=t.resetOnComplete,u=void 0===c||c,d=t.resetOnRefCountZero,p=void 0===d||d;return function(t){var e=null,n=null,o=null,c=0,d=!1,f=!1,m=function(){null==n||n.unsubscribe(),n=null},g=function(){m(),e=o=null,d=f=!1},y=function(){var t=e;g(),null==t||t.unsubscribe()};return(0,l.e)(function(t,l){c++,f||d||m();var b=o=null!=o?o:i();l.add(function(){0!=--c||f||d||(n=h(y,p))}),b.subscribe(l),e||(e=new a.Hp({next:function(t){return b.next(t)},error:function(t){f=!0,m(),n=h(g,s,t),b.error(t)},complete:function(){d=!0,m(),n=h(g,u),b.complete()}}),(0,r.Dp)(t).subscribe(e))})(t)}}function h(t,e){for(var i=[],r=2;r{"use strict";i.d(e,{T:()=>r});var n=i(8868);function r(t){return(0,n.h)(function(e,i){return t<=i})}},1258:(t,e,i)=>{"use strict";i.d(e,{O:()=>o});var n=i(5613),r=i(7070),s=i(3386);function o(){for(var t=[],e=0;e{"use strict";i.d(e,{w:()=>o});var n=i(5630),r=i(3386),s=i(4659);function o(t,e){return(0,r.e)(function(i,r){var o=null,a=0,l=!1,c=function(){return l&&!o&&r.complete()};i.subscribe(new s.Q(r,function(i){null==o||o.unsubscribe();var l=0,h=a++;(0,n.Xf)(t(i,h)).subscribe(o=new s.Q(r,function(t){return r.next(e?e(i,t,h,l++):t)},function(){o=null,c()}))},function(){l=!0,c()}))})}},9056:(t,e,i)=>{"use strict";i.d(e,{q:()=>o});var n=i(4951),r=i(3386),s=i(4659);function o(t){return t<=0?function(){return n.E}:(0,r.e)(function(e,i){var n=0;e.subscribe(new s.Q(i,function(e){++n<=t&&(i.next(e),t<=n&&i.complete())}))})}},9568:(t,e,i)=>{"use strict";i.d(e,{R:()=>a});var n=i(3386),r=i(4659),s=i(5630),o=i(5397);function a(t){return(0,n.e)(function(e,i){(0,s.Xf)(t).subscribe(new r.Q(i,function(){return i.complete()},o.Z)),!i.closed&&e.subscribe(i)})}},343:(t,e,i)=>{"use strict";i.d(e,{b:()=>a});var n=i(7849),r=i(3386),s=i(4659),o=i(1879);function a(t,e,i){var a=(0,n.m)(t)||e||i?{next:t,error:e,complete:i}:t;return a?(0,r.e)(function(t,e){t.subscribe(new s.Q(e,function(t){var i;null===(i=a.next)||void 0===i||i.call(a,t),e.next(t)},function(){var t;null===(t=a.complete)||void 0===t||t.call(a),e.complete()},function(t){var i;null===(i=a.error)||void 0===i||i.call(a,t),e.error(t)}))}):o.y}},5334:(t,e,i)=>{"use strict";i.d(e,{T:()=>o});var n=i(7325),r=i(3386),s=i(4659);function o(t){return void 0===t&&(t=a),(0,r.e)(function(e,i){var n=!1;e.subscribe(new s.Q(i,function(t){n=!0,i.next(t)},function(){return n?i.complete():i.error(t())}))})}function a(){return new n.K}},7411:(t,e,i)=>{"use strict";i.d(e,{V:()=>u});var n=i(2948),r=i(2841),s=i(3386),o=i(5630),a=i(9951),l=i(7491),c=i(4659),h=(0,a.d)(function(t){return function(e){void 0===e&&(e=null),t(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=e}});function u(t,e){var i=(0,r.q)(t)?{first:t}:"number"==typeof t?{each:t}:t,a=i.first,h=i.each,u=i.with,p=void 0===u?d:u,f=i.scheduler,m=void 0===f?null!=e?e:n.z:f,g=i.meta,y=void 0===g?null:g;if(null==a&&null==h)throw new TypeError("No timeout provided.");return(0,s.e)(function(t,e){var i,n,r=null,s=0,u=function(t){n=(0,l.A)(e,m,function(){i.unsubscribe(),(0,o.Xf)(p({meta:y,lastValue:r,seen:s})).subscribe(e)},t)};i=t.subscribe(new c.Q(e,function(t){null==n||n.unsubscribe(),s++,e.next(r=t),h>0&&u(h)},void 0,void 0,function(){(null==n?void 0:n.closed)||null==n||n.unsubscribe(),r=null})),u(null!=a?"number"==typeof a?a:+a-m.now():h)})}function d(t){throw new h(t)}},5653:(t,e,i)=>{"use strict";i.d(e,{M:()=>h});var n=i(9162),r=i(3386),s=i(4659),o=i(5630),a=i(1879),l=i(5397),c=i(7070);function h(){for(var t=[],e=0;e{"use strict";i.d(e,{r:()=>r});var n=i(2391);function r(t,e){return new n.y(function(i){var n=0;return e.schedule(function(){n===t.length?i.complete():(i.next(t[n++]),i.closed||this.schedule())})})}},6551:(t,e,i)=>{"use strict";i.d(e,{o:()=>a});var n=i(9162),r=function(t){function e(e,i){return t.call(this)||this}return(0,n.ZT)(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(i(6042).w0),s={setInterval:function(){for(var t=[],e=0;e{"use strict";i.d(e,{v:()=>o});var n=i(9162),r=i(5170),s=function(){function t(e,i){void 0===i&&(i=t.now),this.schedulerActionCtor=e,this.now=i}return t.prototype.schedule=function(t,e,i){return void 0===e&&(e=0),new this.schedulerActionCtor(this,t).schedule(i,e)},t.now=r.l.now,t}(),o=function(t){function e(e,i){void 0===i&&(i=s.now);var n=t.call(this,e,i)||this;return n.actions=[],n._active=!1,n._scheduled=void 0,n}return(0,n.ZT)(e,t),e.prototype.flush=function(t){var e=this.actions;if(this._active)e.push(t);else{var i;this._active=!0;do{if(i=t.execute(t.state,t.delay))break}while(t=e.shift());if(this._active=!1,i){for(;t=e.shift();)t.unsubscribe();throw i}}},e}(s)},7911:(t,e,i)=>{"use strict";i.d(e,{E:()=>p});var n,r=i(9162),s=i(6551),o=1,a={};function l(t){return t in a&&(delete a[t],!0)}var c=function(t){var e=o++;return a[e]=!0,n||(n=Promise.resolve()),n.then(function(){return l(e)&&t()}),e},h=function(t){l(t)},u={setImmediate:function(){for(var t=[],e=0;e0?t.prototype.requestAsyncId.call(this,e,i,n):(e.actions.push(this),e._scheduled||(e._scheduled=u.setImmediate(e.flush.bind(e,void 0))))},e.prototype.recycleAsyncId=function(e,i,n){if(void 0===n&&(n=0),null!=n&&n>0||null==n&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,i,n);0===e.actions.length&&(u.clearImmediate(i),e._scheduled=void 0)},e}(s.o),p=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.ZT)(e,t),e.prototype.flush=function(t){this._active=!0,this._scheduled=void 0;var e,i=this.actions,n=-1;t=t||i.shift();var r=i.length;do{if(e=t.execute(t.state,t.delay))break}while(++n{"use strict";i.d(e,{z:()=>r,P:()=>s});var n=i(6551),r=new(i(8106).v)(n.o),s=r},5170:(t,e,i)=>{"use strict";i.d(e,{l:()=>n});var n={now:function(){return(n.delegate||Date).now()},delegate:void 0}},2873:(t,e,i)=>{"use strict";i.d(e,{N:()=>s});var n=i(9162),r=function(t){function e(e,i){var n=t.call(this,e,i)||this;return n.scheduler=e,n.work=i,n}return(0,n.ZT)(e,t),e.prototype.schedule=function(e,i){return void 0===i&&(i=0),i>0?t.prototype.schedule.call(this,e,i):(this.delay=i,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,i){return i>0||this.closed?t.prototype.execute.call(this,e,i):this._execute(e,i)},e.prototype.requestAsyncId=function(e,i,n){return void 0===n&&(n=0),null!=n&&n>0||null==n&&this.delay>0?t.prototype.requestAsyncId.call(this,e,i,n):e.flush(this)},e}(i(6551).o),s=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,n.ZT)(e,t),e}(i(8106).v))(r)},4490:(t,e,i)=>{"use strict";i.d(e,{z:()=>r});var n=i(9162),r={setTimeout:function(){for(var t=[],e=0;e{"use strict";i.d(e,{L:()=>n});var n="function"==typeof Symbol&&Symbol.observable||"@@observable"},7325:(t,e,i)=>{"use strict";i.d(e,{K:()=>n});var n=(0,i(9951).d)(function(t){return function(){t(this),this.name="EmptyError",this.message="no elements in sequence"}})},7070:(t,e,i)=>{"use strict";i.d(e,{jO:()=>o,yG:()=>a,_6:()=>l});var n=i(7849),r=i(1495);function s(t){return t[t.length-1]}function o(t){return(0,n.m)(s(t))?t.pop():void 0}function a(t){return(0,r.K)(s(t))?t.pop():void 0}function l(t,e){return"number"==typeof s(t)?t.pop():e}},2846:(t,e,i)=>{"use strict";i.d(e,{D:()=>a});var n=Array.isArray,r=Object.getPrototypeOf,s=Object.prototype,o=Object.keys;function a(t){if(1===t.length){var e=t[0];if(n(e))return{args:e,keys:null};if((a=e)&&"object"==typeof a&&r(a)===s){var i=o(e);return{args:i.map(function(t){return e[t]}),keys:i}}}var a;return{args:t,keys:null}}},8764:(t,e,i)=>{"use strict";function n(t,e){if(t){var i=t.indexOf(e);0<=i&&t.splice(i,1)}}i.d(e,{P:()=>n})},7491:(t,e,i)=>{"use strict";function n(t,e,i,n){void 0===n&&(n=0);var r=e.schedule(function(){try{i.call(this)}catch(e){t.error(e)}},n);return t.add(r),r}i.d(e,{A:()=>n})},9951:(t,e,i)=>{"use strict";function n(t){var e=t(function(t){Error.call(t),t.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}i.d(e,{d:()=>n})},9211:(t,e,i)=>{"use strict";function n(t,e){return t.reduce(function(t,i,n){return t[i]=e[n],t},{})}i.d(e,{n:()=>n})},1879:(t,e,i)=>{"use strict";function n(t){return t}i.d(e,{y:()=>n})},3345:(t,e,i)=>{"use strict";i.d(e,{z:()=>n});var n=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t}},2841:(t,e,i)=>{"use strict";function n(t){return t instanceof Date&&!isNaN(t)}i.d(e,{q:()=>n})},7849:(t,e,i)=>{"use strict";function n(t){return"function"==typeof t}i.d(e,{m:()=>n})},4776:(t,e,i)=>{"use strict";i.d(e,{b:()=>s});var n=i(2391),r=i(7849);function s(t){return!!t&&(t instanceof n.y||(0,r.m)(t.lift)&&(0,r.m)(t.subscribe))}},1495:(t,e,i)=>{"use strict";i.d(e,{K:()=>r});var n=i(7849);function r(t){return t&&(0,n.m)(t.schedule)}},3386:(t,e,i)=>{"use strict";i.d(e,{A:()=>r,e:()=>s});var n=i(7849);function r(t){return(0,n.m)(null==t?void 0:t.lift)}function s(t){return function(e){if(r(e))return e.lift(function(e){try{return t(e,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}},8432:(t,e,i)=>{"use strict";i.d(e,{Z:()=>o});var n=i(9162),r=i(1681),s=Array.isArray;function o(t){return(0,r.U)(function(e){return function(t,e){return s(e)?t.apply(void 0,(0,n.ev)([],(0,n.CR)(e))):t(e)}(t,e)})}},5397:(t,e,i)=>{"use strict";function n(){}i.d(e,{Z:()=>n})},2765:(t,e,i)=>{"use strict";i.d(e,{h:()=>s});var n=i(7296),r=i(4490);function s(t){r.z.setTimeout(function(){var e=n.v.onUnhandledError;if(!e)throw t;e(t)})}},545:(t,e,i)=>{var n=i(3833),r=n.Buffer;function s(t,e){for(var i in t)e[i]=t[i]}function o(t,e,i){return r(t,e,i)}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?t.exports=n:(s(n,e),e.Buffer=o),s(r,o),o.from=function(t,e,i){if("number"==typeof t)throw new TypeError("Argument must not be a number");return r(t,e,i)},o.alloc=function(t,e,i){if("number"!=typeof t)throw new TypeError("Argument must be a number");var n=r(t);return void 0!==e?"string"==typeof i?n.fill(e,i):n.fill(e):n.fill(0),n},o.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return r(t)},o.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},5968:(t,e,i)=>{"use strict";var n,r=i(3833),s=r.Buffer,o={};for(n in r)r.hasOwnProperty(n)&&"SlowBuffer"!==n&&"Buffer"!==n&&(o[n]=r[n]);var a=o.Buffer={};for(n in s)s.hasOwnProperty(n)&&"allocUnsafe"!==n&&"allocUnsafeSlow"!==n&&(a[n]=s[n]);if(o.Buffer.prototype=s.prototype,a.from&&a.from!==Uint8Array.from||(a.from=function(t,e,i){if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof t);if(t&&void 0===t.length)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);return s(t,e,i)}),a.alloc||(a.alloc=function(t,e,i){if("number"!=typeof t)throw new TypeError('The "size" argument must be of type number. Received type '+typeof t);if(t<0||t>=2*(1<<30))throw new RangeError('The value "'+t+'" is invalid for option "size"');var n=s(t);return e&&0!==e.length?"string"==typeof i?n.fill(e,i):n.fill(e):n.fill(0),n}),!o.kStringMaxLength)try{o.kStringMaxLength=process.binding("buffer").kStringMaxLength}catch(l){}o.constants||(o.constants={MAX_LENGTH:o.kMaxLength},o.kStringMaxLength&&(o.constants.MAX_STRING_LENGTH=o.kStringMaxLength)),t.exports=o},3747:(t,e,i)=>{var n=i(545).Buffer;function r(t,e){this._block=n.alloc(t),this._finalSize=e,this._blockSize=t,this._len=0}r.prototype.update=function(t,e){"string"==typeof t&&(t=n.from(t,e=e||"utf8"));for(var i=this._block,r=this._blockSize,s=t.length,o=this._len,a=0;a=this._finalSize&&(this._update(this._block),this._block.fill(0));var i=8*this._len;if(i<=4294967295)this._block.writeUInt32BE(i,this._blockSize-4);else{var n=(4294967295&i)>>>0;this._block.writeUInt32BE((i-n)/4294967296,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var r=this._hash();return t?r.toString(t):r},r.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=r},8687:(t,e,i)=>{var n=t.exports=function(t){t=t.toLowerCase();var e=n[t];if(!e)throw new Error(t+" is not supported (we accept pull requests)");return new e};n.sha=i(4673),n.sha1=i(766),n.sha224=i(3263),n.sha256=i(9201),n.sha384=i(7566),n.sha512=i(9248)},4673:(t,e,i)=>{var n=i(5457),r=i(3747),s=i(545).Buffer,o=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function l(){this.init(),this._w=a,r.call(this,64,56)}function c(t){return t<<30|t>>>2}function h(t,e,i,n){return 0===t?e&i|~e&n:2===t?e&i|e&n|i&n:e^i^n}n(l,r),l.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},l.prototype._update=function(t){for(var e,i=this._w,n=0|this._a,r=0|this._b,s=0|this._c,a=0|this._d,l=0|this._e,u=0;u<16;++u)i[u]=t.readInt32BE(4*u);for(;u<80;++u)i[u]=i[u-3]^i[u-8]^i[u-14]^i[u-16];for(var d=0;d<80;++d){var p=~~(d/20),f=0|((e=n)<<5|e>>>27)+h(p,r,s,a)+l+i[d]+o[p];l=a,a=s,s=c(r),r=n,n=f}this._a=n+this._a|0,this._b=r+this._b|0,this._c=s+this._c|0,this._d=a+this._d|0,this._e=l+this._e|0},l.prototype._hash=function(){var t=s.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},t.exports=l},766:(t,e,i)=>{var n=i(5457),r=i(3747),s=i(545).Buffer,o=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function l(){this.init(),this._w=a,r.call(this,64,56)}function c(t){return t<<5|t>>>27}function h(t){return t<<30|t>>>2}function u(t,e,i,n){return 0===t?e&i|~e&n:2===t?e&i|e&n|i&n:e^i^n}n(l,r),l.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},l.prototype._update=function(t){for(var e,i=this._w,n=0|this._a,r=0|this._b,s=0|this._c,a=0|this._d,l=0|this._e,d=0;d<16;++d)i[d]=t.readInt32BE(4*d);for(;d<80;++d)i[d]=(e=i[d-3]^i[d-8]^i[d-14]^i[d-16])<<1|e>>>31;for(var p=0;p<80;++p){var f=~~(p/20),m=c(n)+u(f,r,s,a)+l+i[p]+o[f]|0;l=a,a=s,s=h(r),r=n,n=m}this._a=n+this._a|0,this._b=r+this._b|0,this._c=s+this._c|0,this._d=a+this._d|0,this._e=l+this._e|0},l.prototype._hash=function(){var t=s.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},t.exports=l},3263:(t,e,i)=>{var n=i(5457),r=i(9201),s=i(3747),o=i(545).Buffer,a=new Array(64);function l(){this.init(),this._w=a,s.call(this,64,56)}n(l,r),l.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},l.prototype._hash=function(){var t=o.allocUnsafe(28);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t},t.exports=l},9201:(t,e,i)=>{var n=i(5457),r=i(3747),s=i(545).Buffer,o=[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],a=new Array(64);function l(){this.init(),this._w=a,r.call(this,64,56)}function c(t,e,i){return i^t&(e^i)}function h(t,e,i){return t&e|i&(t|e)}function u(t){return(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10)}function d(t){return(t>>>6|t<<26)^(t>>>11|t<<21)^(t>>>25|t<<7)}function p(t){return(t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3}n(l,r),l.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},l.prototype._update=function(t){for(var e,i=this._w,n=0|this._a,r=0|this._b,s=0|this._c,a=0|this._d,l=0|this._e,f=0|this._f,m=0|this._g,g=0|this._h,y=0;y<16;++y)i[y]=t.readInt32BE(4*y);for(;y<64;++y)i[y]=0|(((e=i[y-2])>>>17|e<<15)^(e>>>19|e<<13)^e>>>10)+i[y-7]+p(i[y-15])+i[y-16];for(var b=0;b<64;++b){var v=g+d(l)+c(l,f,m)+o[b]+i[b]|0,_=u(n)+h(n,r,s)|0;g=m,m=f,f=l,l=a+v|0,a=s,s=r,r=n,n=v+_|0}this._a=n+this._a|0,this._b=r+this._b|0,this._c=s+this._c|0,this._d=a+this._d|0,this._e=l+this._e|0,this._f=f+this._f|0,this._g=m+this._g|0,this._h=g+this._h|0},l.prototype._hash=function(){var t=s.allocUnsafe(32);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t.writeInt32BE(this._h,28),t},t.exports=l},7566:(t,e,i)=>{var n=i(5457),r=i(9248),s=i(3747),o=i(545).Buffer,a=new Array(160);function l(){this.init(),this._w=a,s.call(this,128,112)}n(l,r),l.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},l.prototype._hash=function(){var t=o.allocUnsafe(48);function e(e,i,n){t.writeInt32BE(e,n),t.writeInt32BE(i,n+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),t},t.exports=l},9248:(t,e,i)=>{var n=i(5457),r=i(3747),s=i(545).Buffer,o=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],a=new Array(160);function l(){this.init(),this._w=a,r.call(this,128,112)}function c(t,e,i){return i^t&(e^i)}function h(t,e,i){return t&e|i&(t|e)}function u(t,e){return(t>>>28|e<<4)^(e>>>2|t<<30)^(e>>>7|t<<25)}function d(t,e){return(t>>>14|e<<18)^(t>>>18|e<<14)^(e>>>9|t<<23)}function p(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^t>>>7}function f(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^(t>>>7|e<<25)}function m(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^t>>>6}function g(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^(t>>>6|e<<26)}function y(t,e){return t>>>0>>0?1:0}n(l,r),l.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},l.prototype._update=function(t){for(var e=this._w,i=0|this._ah,n=0|this._bh,r=0|this._ch,s=0|this._dh,a=0|this._eh,l=0|this._fh,b=0|this._gh,v=0|this._hh,_=0|this._al,w=0|this._bl,x=0|this._cl,C=0|this._dl,A=0|this._el,S=0|this._fl,E=0|this._gl,k=0|this._hl,T=0;T<32;T+=2)e[T]=t.readInt32BE(4*T),e[T+1]=t.readInt32BE(4*T+4);for(;T<160;T+=2){var M=e[T-30],L=e[T-30+1],I=p(M,L),O=f(L,M),D=m(M=e[T-4],L=e[T-4+1]),R=g(L,M),N=e[T-32],P=e[T-32+1],F=O+e[T-14+1]|0,Z=I+e[T-14]+y(F,O)|0;Z=(Z=Z+D+y(F=F+R|0,R)|0)+N+y(F=F+P|0,P)|0,e[T]=Z,e[T+1]=F}for(var B=0;B<160;B+=2){Z=e[B],F=e[B+1];var U=h(i,n,r),q=h(_,w,x),z=u(i,_),H=u(_,i),Y=d(a,A),G=d(A,a),j=o[B],V=o[B+1],Q=c(a,l,b),W=c(A,S,E),J=k+G|0,X=v+Y+y(J,k)|0;X=(X=(X=X+Q+y(J=J+W|0,W)|0)+j+y(J=J+V|0,V)|0)+Z+y(J=J+F|0,F)|0;var K=H+q|0,$=z+U+y(K,H)|0;v=b,k=E,b=l,E=S,l=a,S=A,a=s+X+y(A=C+J|0,C)|0,s=r,C=x,r=n,x=w,n=i,w=_,i=X+$+y(_=J+K|0,J)|0}this._al=this._al+_|0,this._bl=this._bl+w|0,this._cl=this._cl+x|0,this._dl=this._dl+C|0,this._el=this._el+A|0,this._fl=this._fl+S|0,this._gl=this._gl+E|0,this._hl=this._hl+k|0,this._ah=this._ah+i+y(this._al,_)|0,this._bh=this._bh+n+y(this._bl,w)|0,this._ch=this._ch+r+y(this._cl,x)|0,this._dh=this._dh+s+y(this._dl,C)|0,this._eh=this._eh+a+y(this._el,A)|0,this._fh=this._fh+l+y(this._fl,S)|0,this._gh=this._gh+b+y(this._gl,E)|0,this._hh=this._hh+v+y(this._hl,k)|0},l.prototype._hash=function(){var t=s.allocUnsafe(64);function e(e,i,n){t.writeInt32BE(e,n),t.writeInt32BE(i,n+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),e(this._gh,this._gl,48),e(this._hh,this._hl,56),t},t.exports=l},1339:function(t,e,i){!function(e){"use strict";var n={};t.exports?(n.bytesToHex=i(1774).bytesToHex,n.convertString=i(906),t.exports=a):(n.bytesToHex=e.convertHex.bytesToHex,n.convertString=e.convertString,e.sha256=a);var r=[];!function(){function t(t){for(var e=Math.sqrt(t),i=2;i<=e;i++)if(!(t%i))return!1;return!0}function e(t){return 4294967296*(t-(0|t))|0}for(var i=2,n=0;n<64;)t(i)&&(r[n]=e(Math.pow(i,1/3)),n++),i++}();var s=[],o=function(t,e,i){for(var n=t[0],o=t[1],a=t[2],l=t[3],c=t[4],h=t[5],u=t[6],d=t[7],p=0;p<64;p++){if(p<16)s[p]=0|e[i+p];else{var f=s[p-15],m=s[p-2];s[p]=((f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3)+s[p-7]+((m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10)+s[p-16]}var g=n&o^n&a^o&a,y=d+((c<<26|c>>>6)^(c<<21|c>>>11)^(c<<7|c>>>25))+(c&h^~c&u)+r[p]+s[p];d=u,u=h,h=c,c=l+y|0,l=a,a=o,o=n,n=y+(((n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22))+g)|0}t[0]=t[0]+n|0,t[1]=t[1]+o|0,t[2]=t[2]+a|0,t[3]=t[3]+l|0,t[4]=t[4]+c|0,t[5]=t[5]+h|0,t[6]=t[6]+u|0,t[7]=t[7]+d|0};function a(t,e){t.constructor===String&&(t=n.convertString.UTF8.stringToBytes(t));var i=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],r=function(t){for(var e=[],i=0,n=0;i>>5]|=t[i]<<24-n%32;return e}(t),s=8*t.length;r[s>>5]|=128<<24-s%32,r[15+(s+64>>9<<4)]=s;for(var a=0;a>>5]>>>24-i%32&255);return e}(i);return e&&e.asBytes?l:e&&e.asString?n.convertString.bytesToString(l):n.bytesToHex(l)}a.x2=function(t,e){return a(a(t,{asBytes:!0}),e)}}(this)},7562:(t,e,i)=>{t.exports=r;var n=i(5068).EventEmitter;function r(){n.call(this)}i(5457)(r,n),r.Readable=i(617),r.Writable=i(4374),r.Duplex=i(9847),r.Transform=i(5774),r.PassThrough=i(9591),r.finished=i(6484),r.pipeline=i(5802),r.Stream=r,r.prototype.pipe=function(t,e){var i=this;function r(e){t.writable&&!1===t.write(e)&&i.pause&&i.pause()}function s(){i.readable&&i.resume&&i.resume()}i.on("data",r),t.on("drain",s),t._isStdio||e&&!1===e.end||(i.on("end",a),i.on("close",l));var o=!1;function a(){o||(o=!0,t.end())}function l(){o||(o=!0,"function"==typeof t.destroy&&t.destroy())}function c(t){if(h(),0===n.listenerCount(this,"error"))throw t}function h(){i.removeListener("data",r),t.removeListener("drain",s),i.removeListener("end",a),i.removeListener("close",l),i.removeListener("error",c),t.removeListener("error",c),i.removeListener("end",h),i.removeListener("close",h),t.removeListener("close",h)}return i.on("error",c),t.on("error",c),i.on("end",h),i.on("close",h),t.on("close",h),t.emit("pipe",i),t}},4706:(t,e,i)=>{"use strict";var n=i(4160).Buffer,r=n.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function s(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(n.isEncoding===r||!r(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=l,this.end=c,e=4;break;case"utf8":this.fillLast=a,e=4;break;case"base64":this.text=h,this.end=u,e=3;break;default:return this.write=d,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(e)}function o(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function a(t){var e=this.lastTotal-this.lastNeed,i=function(t,e,i){if(128!=(192&e[0]))return t.lastNeed=0,"\ufffd";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"\ufffd";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"\ufffd"}}(this,t);return void 0!==i?i:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function l(t,e){if((t.length-e)%2==0){var i=t.toString("utf16le",e);if(i){var n=i.charCodeAt(i.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],i.slice(0,-1)}return i}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function c(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("utf16le",0,this.lastTotal-this.lastNeed):e}function h(t,e){var i=(t.length-e)%3;return 0===i?t.toString("base64",e):(this.lastNeed=3-i,this.lastTotal=3,1===i?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-i))}function u(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function d(t){return t.toString(this.encoding)}function p(t){return t&&t.length?this.write(t):""}e.s=s,s.prototype.write=function(t){if(0===t.length)return"";var e,i;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";i=this.lastNeed,this.lastNeed=0}else i=0;return i=0?(r>0&&(t.lastNeed=r-1),r):--n=0?(r>0&&(t.lastNeed=r-2),r):--n=0?(r>0&&(2===r?r=0:t.lastNeed=r-3),r):0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=i;var n=t.length-(i-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)},s.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},4160:(t,e,i)=>{var n=i(3833),r=n.Buffer;function s(t,e){for(var i in t)e[i]=t[i]}function o(t,e,i){return r(t,e,i)}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?t.exports=n:(s(n,e),e.Buffer=o),o.prototype=Object.create(r.prototype),s(r,o),o.from=function(t,e,i){if("number"==typeof t)throw new TypeError("Argument must not be a number");return r(t,e,i)},o.alloc=function(t,e,i){if("number"!=typeof t)throw new TypeError("Argument must be a number");var n=r(t);return void 0!==e?"string"==typeof i?n.fill(e,i):n.fill(e):n.fill(0),n},o.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return r(t)},o.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},115:(t,e,i)=>{var n=i(5370);e.encode=n.encode,e.decode=n.decode},5370:(t,e)=>{"use strict";var i=[255,255,26,27,28,29,30,31,255,255,255,255,255,255,255,255,255,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,255,255,255,255,255,255,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,255,255,255,255,255];e.encode=function(t){Buffer.isBuffer(t)||(t=new Buffer(t));for(var e,i,n=0,r=0,s=0,o=0,a=new Buffer(8*(e=t,i=Math.floor(e.length/5),e.length%5==0?i:i+1));n3?(o=(o=l&255>>s)<<(s=(s+5)%8)|(n+1>8-s,n++):(o=l>>8-(s+5)&31,0==(s=(s+5)%8)&&n++),a[r]="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567".charCodeAt(o),r++}for(n=r;n>>(n=(n+5)%8),s++,e=255&r<<8-n)}return o.slice(0,s)}},5435:t=>{function e(t){try{if(!global.localStorage)return!1}catch(i){return!1}var e=global.localStorage[t];return null!=e&&"true"===String(e).toLowerCase()}t.exports=function(t,i){if(e("noDeprecation"))return t;var n=!1;return function(){if(!n){if(e("throwDeprecation"))throw new Error(i);e("traceDeprecation")?console.trace(i):console.warn(i),n=!0}return t.apply(this,arguments)}}},9939:(t,e,i)=>{"use strict";i.d(e,{uq:()=>n,qe:()=>r,Xj:()=>s,gj:()=>o,Ql:()=>a,yA:()=>l,iK:()=>c,j5:()=>h,XQ:()=>u,BI:()=>d,UO:()=>p,RA:()=>f,qt:()=>m,cd:()=>g,Un:()=>y,ei:()=>b,Q2:()=>v,hc:()=>_,sX:()=>w,HI:()=>x,ab:()=>C,W2:()=>A,AE:()=>S,qH:()=>E,GL:()=>k,zj:()=>T,rR:()=>M,as:()=>L,kL:()=>I,Vb:()=>O,FA:()=>D,nL:()=>R,bJ:()=>N,q9:()=>P,dP:()=>F,zm:()=>Z,l3:()=>B,PP:()=>U,IR:()=>q,RE:()=>z,LW:()=>H,CR:()=>Y,y3:()=>G,bH:()=>j,o_:()=>V,gM:()=>Q,eW:()=>W,yL:()=>J,tk:()=>X,G0:()=>K,or:()=>$,zH:()=>tt,IZ:()=>et,ob:()=>it,np:()=>nt,UA:()=>rt,vI:()=>st,z6:()=>ot,od:()=>at,Nn:()=>lt,D8:()=>ct,LT:()=>ht,ER:()=>ut,N9:()=>dt,RS:()=>pt,rF:()=>ft,yw:()=>mt,xt:()=>gt,pu:()=>yt,p$:()=>bt,Ar:()=>vt,bm:()=>_t,lO:()=>wt,iG:()=>xt,k:()=>Ct,nb:()=>At,e8:()=>St,x$:()=>Et,IG:()=>kt,oP:()=>Tt,qs:()=>Mt,KK:()=>Lt,Is:()=>It,nz:()=>Ot,_O:()=>Dt,H1:()=>Rt,cU:()=>Nt,nB:()=>Pt,uj:()=>Ft,Zt:()=>Zt});const n="RESET_CL_STORE",r="UPDATE_API_CALL_STATUS_CL",s="SET_CHILD_NODE_SETTINGS_CL",o="FETCH_INFO_CL_CL",a="SET_INFO_CL",l="FETCH_FEES_CL",c="SET_FEES_CL",h="FETCH_FEE_RATES_CL",u="SET_FEE_RATES_CL",d="FETCH_BALANCE_CL",p="SET_BALANCE_CL",f="FETCH_LOCAL_REMOTE_BALANCE_CL",m="SET_LOCAL_REMOTE_BALANCE_CL",g="GET_NEW_ADDRESS_CL",y="SET_NEW_ADDRESS_CL",b="FETCH_UTXOS_CL",v="SET_UTXOS_CL",_="FETCH_PEERS_CL",w="SET_PEERS_CL",x="SAVE_NEW_PEER_CL",C="NEWLY_ADDED_PEER_CL",A="ADD_PEER_CL",S="DETACH_PEER_CL",E="REMOVE_PEER_CL",k="FETCH_CHANNELS_CL",T="SET_CHANNELS_CL",M="UPDATE_CHANNELS_CL",L="SAVE_NEW_CHANNEL_CL",I="CLOSE_CHANNEL_CL",O="REMOVE_CHANNEL_CL",D="FETCH_PAYMENTS_CL",R="SET_PAYMENTS_CL",N="DECODE_PAYMENT_CL",P="SET_DECODED_PAYMENT_CL",F="SEND_PAYMENT_CL",Z="SEND_PAYMENT_STATUS_CL",B="GET_QUERY_ROUTES_CL",U="SET_QUERY_ROUTES_CL",q="PEER_LOOKUP_CL",z="CHANNEL_LOOKUP_CL",H="INVOICE_LOOKUP_CL",Y="SET_LOOKUP_CL",G="GET_FORWARDING_HISTORY_CL",j="SET_FORWARDING_HISTORY_CL",V="GET_FAILED_FORWARDING_HISTORY_CL",Q="SET_FAILED_FORWARDING_HISTORY_CL",W="FETCH_INVOICES_CL",J="SET_INVOICES_CL",X="SAVE_NEW_INVOICE_CL",K="ADD_INVOICE_CL",$="UPDATE_INVOICE_CL",tt="DELETE_EXPIRED_INVOICE_CL",et="SET_CHANNEL_TRANSACTION_CL",it="SET_CHANNEL_TRANSACTION_RES_CL";class nt{constructor(t){this.payload=t,this.type=r}}class rt{constructor(t){this.payload=t,this.type=n}}class st{constructor(t){this.payload=t,this.type=s}}class ot{constructor(t){this.payload=t,this.type=o}}class at{constructor(){this.type=l}}class lt{constructor(t){this.payload=t,this.type=h}}class ct{constructor(){this.type=d}}class ht{constructor(){this.type=f}}class ut{constructor(t){this.payload=t,this.type=g}}class dt{constructor(){this.type=_}}class pt{constructor(t){this.payload=t,this.type=w}}class ft{constructor(t){this.payload=t,this.type=x}}class mt{constructor(t){this.payload=t,this.type=S}}class gt{constructor(){this.type=D}}class yt{constructor(t){this.payload=t,this.type=N}}class bt{constructor(t){this.payload=t,this.type=P}}class vt{constructor(t){this.payload=t,this.type=F}}class _t{constructor(t){this.payload=t,this.type=B}}class wt{constructor(t){this.payload=t,this.type=U}}class xt{constructor(){this.type=k}}class Ct{constructor(t){this.payload=t,this.type=M}}class At{constructor(t){this.payload=t,this.type=L}}class St{constructor(t){this.payload=t,this.type=I}}class Et{constructor(t){this.payload=t,this.type=q}}class kt{constructor(t){this.payload=t,this.type=z}}class Tt{constructor(t){this.payload=t,this.type=H}}class Mt{constructor(t){this.payload=t,this.type=Y}}class Lt{constructor(t){this.payload=t,this.type=G}}class It{constructor(){this.type=V}}class Ot{constructor(t){this.payload=t,this.type=Q}}class Dt{constructor(t){this.payload=t,this.type=W}}class Rt{constructor(t){this.payload=t,this.type=X}}class Nt{constructor(t){this.payload=t,this.type=$}}class Pt{constructor(t){this.payload=t,this.type=tt}}class Ft{constructor(t){this.payload=t,this.type=et}}class Zt{constructor(){this.type=b}}},8640:(t,e,i)=>{"use strict";i.d(e,{s:()=>k});var n=i(5573),r=i(9666),s=i(2041),o=i(2391),a=i(6891),l=i(5653),c=i(7228),h=i(9568),u=i(1681),d=i(1816),p=i(5963),f=i(2427),m=i(3793),g=i(9421),y=i(3929),b=i(9939),v=i(1572),_=i(9063),w=i(964),x=i(3191),C=i(1084),A=i(3869),S=i(6853),E=i(1511);let k=(()=>{class t{constructor(t,e,i,f,v,_,w,x){this.actions=t,this.httpClient=e,this.store=i,this.sessionService=f,this.commonService=v,this.logger=_,this.router=w,this.location=x,this.CHILD_API_URL=p.T+"/cl",this.flgInitialized=!1,this.unSubs=[new r.x,new r.x],this.infoFetchCL=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(b.gj),(0,l.M)(this.store.select("root")),(0,c.z)(([t,e])=>(this.flgInitialized=!1,this.store.dispatch(new b.np({action:"FetchInfo",status:g.Bn.INITIATED})),this.store.dispatch(new y.Fk(g.m6.GET_NODE_INFO)),this.httpClient.get(this.CHILD_API_URL+p.N.GETINFO_API).pipe((0,h.R)(this.actions.pipe((0,n.l4)(y.RP))),(0,u.U)(e=>(this.logger.info(e),e.chains&&e.chains.length&&e.chains[0]&&"object"==typeof e.chains[0]&&e.chains[0].hasOwnProperty("chain")&&e.chains[0].chain.toLowerCase().indexOf("bitcoin")<0?(this.store.dispatch(new b.np({action:"FetchInfo",status:g.Bn.COMPLETED})),this.store.dispatch(new y.Iv(g.m6.GET_NODE_INFO)),this.store.dispatch(new y.Ac),this.store.dispatch(new y.wu({data:{type:g.n_.ERROR,alertTitle:"Shitcoin Found",titleMessage:"Sorry Not Sorry, RTL is Bitcoin Only!"}})),{type:y.Nv}):(this.initializeRemainingData(e,t.payload.loadPage),this.store.dispatch(new b.np({action:"FetchInfo",status:g.Bn.COMPLETED})),this.store.dispatch(new y.Iv(g.m6.GET_NODE_INFO)),{type:b.Ql,payload:e||{}}))),(0,d.K)(t=>{const e=this.commonService.extractErrorCode(t),i="ETIMEDOUT"===e?"Unable to Connect to C-Lightning Server.":this.commonService.extractErrorMessage(t);return this.router.navigate(["/error"],{state:{errorCode:e,errorMessage:i}}),this.handleErrorWithoutAlert("FetchInfo",g.m6.GET_NODE_INFO,"Fetching Node Info Failed.",{status:e,error:i}),(0,s.of)({type:y.Zn})})))))),this.fetchFeesCL=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(b.yA),(0,c.z)(t=>(this.store.dispatch(new b.np({action:"FetchFees",status:g.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+p.N.FEES_API))),(0,u.U)(t=>(this.logger.info(t),this.store.dispatch(new b.np({action:"FetchFees",status:g.Bn.COMPLETED})),{type:b.iK,payload:t||{}})),(0,d.K)(t=>(this.handleErrorWithoutAlert("FetchFees",g.m6.NO_SPINNER,"Fetching Fees Failed.",t),(0,s.of)({type:y.Zn}))))),this.fetchFeeRatesCL=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(b.j5),(0,c.z)(t=>(this.store.dispatch(new b.np({action:"FetchFeeRates"+t.payload,status:g.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+p.N.NETWORK_API+"/feeRates/"+t.payload).pipe((0,u.U)(e=>(this.logger.info(e),this.store.dispatch(new b.np({action:"FetchFeeRates"+t.payload,status:g.Bn.COMPLETED})),{type:b.XQ,payload:e||{}})),(0,d.K)(e=>(this.handleErrorWithoutAlert("FetchFeeRates"+t.payload,g.m6.NO_SPINNER,"Fetching Fee Rates Failed.",e),(0,s.of)({type:y.Zn})))))))),this.fetchBalanceCL=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(b.BI),(0,c.z)(t=>(this.store.dispatch(new b.np({action:"FetchBalance",status:g.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+p.N.BALANCE_API))),(0,u.U)(t=>(this.logger.info(t),this.store.dispatch(new b.np({action:"FetchBalance",status:g.Bn.COMPLETED})),{type:b.UO,payload:t||{}})),(0,d.K)(t=>(this.handleErrorWithoutAlert("FetchBalance",g.m6.NO_SPINNER,"Fetching Balances Failed.",t),(0,s.of)({type:y.Zn}))))),this.fetchLocalRemoteBalanceCL=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(b.RA),(0,c.z)(t=>(this.store.dispatch(new b.np({action:"FetchLocalRemoteBalance",status:g.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+p.N.CHANNELS_API+"/localremotebalance"))),(0,u.U)(t=>(this.logger.info(t),this.store.dispatch(new b.np({action:"FetchLocalRemoteBalance",status:g.Bn.COMPLETED})),{type:b.qt,payload:t||{}})),(0,d.K)(t=>(this.handleErrorWithoutAlert("FetchLocalRemoteBalance",g.m6.NO_SPINNER,"Fetching Balances Failed.",t),(0,s.of)({type:y.Zn}))))),this.getNewAddressCL=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(b.cd),(0,c.z)(t=>(this.store.dispatch(new y.Fk(g.m6.GENERATE_NEW_ADDRESS)),this.httpClient.get(this.CHILD_API_URL+p.N.ON_CHAIN_API+"?type="+t.payload.addressCode).pipe((0,u.U)(t=>(this.logger.info(t),this.store.dispatch(new y.Iv(g.m6.GENERATE_NEW_ADDRESS)),{type:b.Un,payload:t&&t.address?t.address:{}})),(0,d.K)(e=>(this.handleErrorWithAlert("GenerateNewAddress",g.m6.GENERATE_NEW_ADDRESS,"Generate New Address Failed",this.CHILD_API_URL+p.N.ON_CHAIN_API+"?type="+t.payload.addressId,e),(0,s.of)({type:y.Zn})))))))),this.setNewAddressCL=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(b.Un),(0,u.U)(t=>(this.logger.info(t.payload),t.payload))),{dispatch:!1}),this.peersFetchCL=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(b.hc),(0,c.z)(t=>(this.store.dispatch(new b.np({action:"FetchPeers",status:g.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+p.N.PEERS_API).pipe((0,u.U)(t=>(this.logger.info(t),this.store.dispatch(new b.np({action:"FetchPeers",status:g.Bn.COMPLETED})),{type:b.sX,payload:t||[]})),(0,d.K)(t=>(this.handleErrorWithoutAlert("FetchPeers",g.m6.NO_SPINNER,"Fetching Peers Failed.",t),(0,s.of)({type:y.Zn})))))))),this.saveNewPeerCL=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(b.HI),(0,l.M)(this.store.select("cl")),(0,c.z)(([t,e])=>(this.store.dispatch(new y.Fk(g.m6.CONNECT_PEER)),this.store.dispatch(new b.np({action:"SaveNewPeer",status:g.Bn.INITIATED})),this.httpClient.post(this.CHILD_API_URL+p.N.PEERS_API,{id:t.payload.id}).pipe((0,u.U)(e=>(this.logger.info(e),this.store.dispatch(new b.np({action:"SaveNewPeer",status:g.Bn.COMPLETED})),this.store.dispatch(new y.Iv(g.m6.CONNECT_PEER)),this.store.dispatch(new b.RS(e&&e.length>0?e:[])),{type:b.ab,payload:{peer:e.find(e=>0===t.payload.id.indexOf(e.id))}})),(0,d.K)(t=>(this.handleErrorWithoutAlert("SaveNewPeer",g.m6.CONNECT_PEER,"Peer Connection Failed.",t),(0,s.of)({type:y.Zn})))))))),this.detachPeerCL=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(b.AE),(0,c.z)(t=>(this.store.dispatch(new y.Fk(g.m6.DISCONNECT_PEER)),this.httpClient.delete(this.CHILD_API_URL+p.N.PEERS_API+"/"+t.payload.id+"?force="+t.payload.force).pipe((0,u.U)(e=>(this.logger.info(e),this.store.dispatch(new y.Iv(g.m6.DISCONNECT_PEER)),this.store.dispatch(new y.Lw("Peer Disconnected Successfully!")),{type:b.qH,payload:{id:t.payload.id}})),(0,d.K)(e=>(this.handleErrorWithAlert("PeerDisconnect",g.m6.DISCONNECT_PEER,"Unable to Detach Peer. Try again later.",this.CHILD_API_URL+p.N.PEERS_API+"/"+t.payload.id,e),(0,s.of)({type:y.Zn})))))))),this.channelsFetchCL=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(b.GL),(0,c.z)(t=>(this.store.dispatch(new b.np({action:"FetchChannels",status:g.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+p.N.CHANNELS_API+"/listChannels"))),(0,u.U)(t=>(this.logger.info(t),this.store.dispatch(new b.np({action:"FetchChannels",status:g.Bn.COMPLETED})),this.store.dispatch(new b.KK({status:"settled"})),{type:b.zj,payload:t&&t.length>0?t:[]})),(0,d.K)(t=>(this.handleErrorWithoutAlert("FetchChannels",g.m6.NO_SPINNER,"Fetching Channels Failed.",t),(0,s.of)({type:y.Zn}))))),this.openNewChannelCL=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(b.as),(0,c.z)(t=>{this.store.dispatch(new y.Fk(g.m6.OPEN_CHANNEL)),this.store.dispatch(new b.np({action:"SaveNewChannel",status:g.Bn.INITIATED}));const e={id:t.payload.peerId,satoshis:t.payload.satoshis,feeRate:t.payload.feeRate,announce:t.payload.announce,minconf:t.payload.minconf?t.payload.minconf:null};return t.payload.utxos&&(e.utxos=t.payload.utxos),this.httpClient.post(this.CHILD_API_URL+p.N.CHANNELS_API,e).pipe((0,u.U)(t=>(this.logger.info(t),this.store.dispatch(new b.np({action:"SaveNewChannel",status:g.Bn.COMPLETED})),this.store.dispatch(new y.Iv(g.m6.OPEN_CHANNEL)),this.store.dispatch(new y.Lw("Channel Added Successfully!")),this.store.dispatch(new b.D8),this.store.dispatch(new b.Zt),{type:b.GL})),(0,d.K)(t=>(this.handleErrorWithoutAlert("SaveNewChannel",g.m6.OPEN_CHANNEL,"Opening Channel Failed.",t),(0,s.of)({type:y.Zn}))))}))),this.updateChannelCL=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(b.rR),(0,c.z)(t=>(this.store.dispatch(new y.Fk(g.m6.UPDATE_CHAN_POLICY)),this.httpClient.post(this.CHILD_API_URL+p.N.CHANNELS_API+"/setChannelFee",{id:t.payload.channelId,base:t.payload.baseFeeMsat,ppm:t.payload.feeRate}).pipe((0,u.U)(e=>(this.logger.info(e),this.store.dispatch(new y.Iv(g.m6.UPDATE_CHAN_POLICY)),this.store.dispatch(new y.Lw("all"===t.payload.channelId?{message:"All Channels Updated Successfully. Fee policy updates may take some time to reflect on the channel.",duration:5e3}:{message:"Channel Updated Successfully. Fee policy updates may take some time to reflect on the channel.",duration:5e3})),{type:b.GL})),(0,d.K)(t=>(this.handleErrorWithAlert("UpdateChannel",g.m6.UPDATE_CHAN_POLICY,"Update Channel Failed",this.CHILD_API_URL+p.N.CHANNELS_API,t),(0,s.of)({type:y.Zn})))))))),this.closeChannelCL=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(b.kL),(0,c.z)(t=>(this.store.dispatch(new y.Fk(t.payload.force?g.m6.FORCE_CLOSE_CHANNEL:g.m6.CLOSE_CHANNEL)),this.httpClient.delete(this.CHILD_API_URL+p.N.CHANNELS_API+"/"+t.payload.channelId+(t.payload.force?"?force="+t.payload.force:"")).pipe((0,u.U)(e=>(this.logger.info(e),this.store.dispatch(new y.Iv(t.payload.force?g.m6.FORCE_CLOSE_CHANNEL:g.m6.CLOSE_CHANNEL)),this.store.dispatch(new b.iG),this.store.dispatch(new y.Lw("Channel Closed Successfully!")),{type:b.Vb,payload:{channelId:t.payload.channelId}})),(0,d.K)(e=>(this.handleErrorWithAlert("CloseChannel",t.payload.force?g.m6.FORCE_CLOSE_CHANNEL:g.m6.CLOSE_CHANNEL,"Unable to Close Channel. Try again later.",this.CHILD_API_URL+p.N.CHANNELS_API,e),(0,s.of)({type:y.Zn})))))))),this.paymentsFetchCL=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(b.FA),(0,c.z)(t=>(this.store.dispatch(new b.np({action:"FetchPayments",status:g.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+p.N.PAYMENTS_API))),(0,u.U)(t=>(this.logger.info(t),this.store.dispatch(new b.np({action:"FetchPayments",status:g.Bn.COMPLETED})),{type:b.nL,payload:t||[]})),(0,d.K)(t=>(this.handleErrorWithoutAlert("FetchPayments",g.m6.NO_SPINNER,"Fetching Payments Failed.",t),(0,s.of)({type:y.Zn}))))),this.decodePaymentCL=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(b.bJ),(0,c.z)(t=>(this.store.dispatch(new y.Fk(g.m6.DECODE_PAYMENT)),this.store.dispatch(new b.np({action:"DecodePayment",status:g.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+p.N.PAYMENTS_API+"/"+t.payload.routeParam).pipe((0,u.U)(t=>(this.logger.info(t),this.store.dispatch(new b.np({action:"DecodePayment",status:g.Bn.COMPLETED})),this.store.dispatch(new y.Iv(g.m6.DECODE_PAYMENT)),{type:b.q9,payload:t||{}})),(0,d.K)(e=>(t.payload.fromDialog?this.handleErrorWithoutAlert("DecodePayment",g.m6.DECODE_PAYMENT,"Decode Payment Failed.",e):this.handleErrorWithAlert("DecodePayment",g.m6.DECODE_PAYMENT,"Decode Payment Failed",this.CHILD_API_URL+p.N.PAYMENTS_API+"/"+t.payload,e),(0,s.of)({type:y.Zn})))))))),this.setDecodedPaymentCL=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(b.q9),(0,u.U)(t=>(this.logger.info(t.payload),t.payload))),{dispatch:!1}),this.sendPaymentCL=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(b.dP),(0,l.M)(this.store.select("root")),(0,c.z)(([t,e])=>(this.store.dispatch(new y.Fk(t.payload.uiMessage)),this.store.dispatch(new b.np({action:"SendPayment",status:g.Bn.INITIATED})),this.httpClient.post(t.payload.pubkey&&""!==t.payload.pubkey?this.CHILD_API_URL+p.N.PAYMENTS_API+"/keysend":this.CHILD_API_URL+p.N.PAYMENTS_API+"/invoice",t.payload).pipe((0,u.U)(e=>(this.logger.info(e),this.store.dispatch(new y.Iv(t.payload.uiMessage)),this.store.dispatch(new b.np({action:"SendPayment",status:g.Bn.COMPLETED})),this.store.dispatch(new y.Lw("Payment Sent Successfully!")),this.store.dispatch(new b.p$({})),setTimeout(()=>{this.store.dispatch(new b.iG),this.store.dispatch(new b.D8),this.store.dispatch(new b.xt)},1e3),{type:b.zm,payload:e})),(0,d.K)(e=>(this.logger.error("Error: "+JSON.stringify(e)),t.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",t.payload.uiMessage,"Send Payment Failed.",e):this.handleErrorWithAlert("SendPayment",t.payload.uiMessage,"Send Payment Failed",this.CHILD_API_URL+p.N.PAYMENTS_API,e),(0,s.of)({type:y.Zn})))))))),this.queryRoutesFetchCL=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(b.l3),(0,c.z)(t=>(this.store.dispatch(new b.np({action:"GetQueryRoutes",status:g.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+p.N.NETWORK_API+"/getRoute/"+t.payload.destPubkey+"/"+t.payload.amount).pipe((0,u.U)(t=>(this.logger.info(t),this.store.dispatch(new b.np({action:"GetQueryRoutes",status:g.Bn.COMPLETED})),{type:b.PP,payload:t})),(0,d.K)(e=>(this.store.dispatch(new b.lO({routes:[]})),this.handleErrorWithAlert("GetQueryRoutes",g.m6.NO_SPINNER,"Get Query Routes Failed",this.CHILD_API_URL+p.N.NETWORK_API+"/getRoute/"+t.payload.destPubkey+"/"+t.payload.amount,e),(0,s.of)({type:y.Zn})))))))),this.setQueryRoutesCL=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(b.PP),(0,u.U)(t=>t.payload)),{dispatch:!1}),this.peerLookupCL=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(b.IR),(0,c.z)(t=>(this.store.dispatch(new y.Fk(g.m6.SEARCHING_NODE)),this.store.dispatch(new b.np({action:"Lookup",status:g.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+p.N.NETWORK_API+"/listNode/"+t.payload).pipe((0,u.U)(t=>(this.logger.info(t),this.store.dispatch(new b.np({action:"Lookup",status:g.Bn.COMPLETED})),this.store.dispatch(new y.Iv(g.m6.SEARCHING_NODE)),{type:b.CR,payload:t})),(0,d.K)(e=>(this.handleErrorWithAlert("Lookup",g.m6.SEARCHING_NODE,"Peer Lookup Failed",this.CHILD_API_URL+p.N.NETWORK_API+"/listNode/"+t.payload,e),(0,s.of)({type:y.Zn})))))))),this.channelLookupCL=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(b.RE),(0,c.z)(t=>(this.store.dispatch(new y.Fk(t.payload.uiMessage)),this.store.dispatch(new b.np({action:"Lookup",status:g.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+p.N.NETWORK_API+"/listChannel/"+t.payload.shortChannelID).pipe((0,u.U)(e=>(this.logger.info(e),this.store.dispatch(new b.np({action:"Lookup",status:g.Bn.COMPLETED})),this.store.dispatch(new y.Iv(t.payload.uiMessage)),{type:b.CR,payload:e})),(0,d.K)(e=>(t.payload.showError?this.handleErrorWithAlert("Lookup",t.payload.uiMessage,"Channel Lookup Failed",this.CHILD_API_URL+p.N.NETWORK_API+"/listChannel/"+t.payload.shortChannelID,e):this.store.dispatch(new y.Iv(t.payload.uiMessage)),this.store.dispatch(new b.qs([])),(0,s.of)({type:y.Zn})))))))),this.invoiceLookupCL=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(b.LW),(0,c.z)(t=>(this.store.dispatch(new y.Fk(g.m6.SEARCHING_INVOICE)),this.store.dispatch(new b.np({action:"Lookup",status:g.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+p.N.INVOICES_API+"?label="+t.payload).pipe((0,u.U)(t=>(this.logger.info(t),this.store.dispatch(new b.np({action:"Lookup",status:g.Bn.COMPLETED})),this.store.dispatch(new y.Iv(g.m6.SEARCHING_INVOICE)),t.invoices&&t.invoices.length&&t.invoices.length>0&&this.store.dispatch(new b.cU(t.invoices[0])),{type:b.CR,payload:t.invoices&&t.invoices.length&&t.invoices.length>0?t.invoices[0]:t})),(0,d.K)(t=>(this.handleErrorWithoutAlert("Lookup",g.m6.SEARCHING_INVOICE,"Invoice Lookup Failed",t),this.store.dispatch(new y.Lw({message:"Invoice Refresh Failed.",type:"ERROR"})),(0,s.of)({type:y.Zn})))))))),this.setLookupCL=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(b.CR),(0,u.U)(t=>(this.logger.info(t.payload),t.payload))),{dispatch:!1}),this.fetchForwardingHistoryCL=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(b.y3),(0,l.M)(this.store.select("cl")),(0,c.z)(([t,e])=>(this.store.dispatch(new b.np({action:"GetForwardingHistory",status:g.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+p.N.CHANNELS_API+"/listForwards?status="+t.payload.status).pipe((0,u.U)(t=>{if(this.logger.info(t),this.store.dispatch(new b.np({action:"GetForwardingHistory",status:g.Bn.COMPLETED})),!e.information.api_version||!this.commonService.isVersionCompatible(e.information.api_version,"0.5.0")){const e=[],i=[];t.forEach(t=>{"settled"===t.status?i.push(t):"failed"!==t.status&&"local_failed"!==t.status||e.push(t)}),t=JSON.parse(JSON.stringify(i)),this.store.dispatch(new b.nz(e))}return{type:b.bH,payload:t}}),(0,d.K)(e=>(this.handleErrorWithAlert("GetForwardingHistory",g.m6.NO_SPINNER,"Get Forwarding History Failed",this.CHILD_API_URL+p.N.CHANNELS_API+"/listForwards?status="+t.payload.status,e),(0,s.of)({type:y.Zn})))))))),this.fetchFailedForwardingHistoryCL=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(b.o_),(0,l.M)(this.store.select("cl")),(0,c.z)(([t,e])=>{if(this.store.dispatch(new b.np({action:"GetFailedForwardingHistory",status:g.Bn.INITIATED})),!e.information.api_version||!this.commonService.isVersionCompatible(e.information.api_version,"0.5.0"))return this.store.dispatch(new b.np({action:"GetFailedForwardingHistory",status:g.Bn.COMPLETED})),(0,s.of)({type:y.Zn});let i=new o.y;const n=this.httpClient.get(this.CHILD_API_URL+p.N.CHANNELS_API+"/listForwards?status=failed"),r=this.httpClient.get(this.CHILD_API_URL+p.N.CHANNELS_API+"/listForwards?status=local_failed");return i=(0,a.D)([n,r]),i.pipe((0,u.U)(t=>(this.logger.info(t),this.store.dispatch(new b.np({action:"GetFailedForwardingHistory",status:g.Bn.COMPLETED})),{type:b.gM,payload:this.commonService.sortDescByKey([...t[0],...t[1]],"received_time")})),(0,d.K)(t=>(this.handleErrorWithAlert("GetFailedForwardingHistory",g.m6.NO_SPINNER,"Get Failed Forwarding History Failed",this.CHILD_API_URL+p.N.CHANNELS_API+"/listForwards?status=failed",t),(0,s.of)({type:y.Zn}))))}))),this.deleteExpiredInvoiceCL=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(b.zH),(0,c.z)(t=>(this.store.dispatch(new y.Fk(g.m6.DELETE_INVOICE)),this.httpClient.delete(this.CHILD_API_URL+p.N.INVOICES_API+(t.payload?"?maxexpiry="+t.payload:"")).pipe((0,u.U)(t=>(this.logger.info(t),this.store.dispatch(new y.Iv(g.m6.DELETE_INVOICE)),this.store.dispatch(new y.Lw("Invoices Deleted Successfully!")),{type:b.eW,payload:{num_max_invoices:1e6,reversed:!0}})),(0,d.K)(t=>(this.handleErrorWithAlert("DeleteInvoices",g.m6.DELETE_INVOICE,"Delete Invoice Failed",this.CHILD_API_URL+p.N.INVOICES_API,t),(0,s.of)({type:y.Zn})))))))),this.saveNewInvoiceCL=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(b.tk),(0,c.z)(t=>(this.store.dispatch(new y.Fk(g.m6.ADD_INVOICE)),this.store.dispatch(new b.np({action:"SaveNewInvoice",status:g.Bn.INITIATED})),this.httpClient.post(this.CHILD_API_URL+p.N.INVOICES_API,{label:t.payload.label,amount:t.payload.amount,description:t.payload.description,expiry:t.payload.expiry,private:t.payload.private}).pipe((0,u.U)(e=>(this.logger.info(e),this.store.dispatch(new b.np({action:"SaveNewInvoice",status:g.Bn.COMPLETED})),this.store.dispatch(new y.Iv(g.m6.ADD_INVOICE)),e.msatoshi=t.payload.amount,e.label=t.payload.label,e.expires_at=Math.round((new Date).getTime()/1e3+t.payload.expiry),e.description=t.payload.description,e.status="unpaid",this.store.dispatch(new y.wu({data:{invoice:e,newlyAdded:!1,component:m.$}})),{type:b.G0,payload:e})),(0,d.K)(t=>(this.handleErrorWithoutAlert("SaveNewInvoice",g.m6.ADD_INVOICE,"Add Invoice Failed.",t),(0,s.of)({type:y.Zn})))))))),this.invoicesFetchCL=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(b.eW),(0,c.z)(t=>(this.store.dispatch(new b.np({action:"FetchInvoices",status:g.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+p.N.INVOICES_API+"?num_max_invoices="+(t.payload.num_max_invoices?t.payload.num_max_invoices:1e6)+"&index_offset="+(t.payload.index_offset?t.payload.index_offset:0)+"&reversed="+(!t.payload.reversed||t.payload.reversed)).pipe((0,u.U)(t=>(this.logger.info(t),this.store.dispatch(new b.np({action:"FetchInvoices",status:g.Bn.COMPLETED})),{type:b.yL,payload:t})),(0,d.K)(t=>(this.handleErrorWithoutAlert("FetchInvoices",g.m6.NO_SPINNER,"Fetching Invoices Failed.",t),(0,s.of)({type:y.Zn})))))))),this.SetChannelTransactionCL=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(b.IZ),(0,c.z)(t=>(this.store.dispatch(new y.Fk(g.m6.SEND_FUNDS)),this.store.dispatch(new b.np({action:"SetChannelTransaction",status:g.Bn.INITIATED})),this.httpClient.post(this.CHILD_API_URL+p.N.ON_CHAIN_API,t.payload).pipe((0,u.U)(t=>(this.logger.info(t),this.store.dispatch(new b.np({action:"SetChannelTransaction",status:g.Bn.COMPLETED})),this.store.dispatch(new y.Iv(g.m6.SEND_FUNDS)),this.store.dispatch(new b.D8),this.store.dispatch(new b.Zt),{type:b.ob,payload:t})),(0,d.K)(t=>(this.handleErrorWithoutAlert("SetChannelTransaction",g.m6.SEND_FUNDS,"Sending Fund Failed.",t),(0,s.of)({type:y.Zn})))))))),this.utxosFetch=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(b.ei),(0,c.z)(t=>(this.store.dispatch(new b.np({action:"FetchUTXOs",status:g.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+p.N.ON_CHAIN_API+"/utxos"))),(0,u.U)(t=>(this.logger.info(t),this.store.dispatch(new b.np({action:"FetchUTXOs",status:g.Bn.COMPLETED})),{type:b.Q2,payload:t&&t.outputs&&t.outputs.length>0?t.outputs:[]})),(0,d.K)(t=>(this.handleErrorWithoutAlert("FetchUTXOs",g.m6.NO_SPINNER,"Fetching UTXOs Failed.",t),(0,s.of)({type:y.Zn}))))),this.store.select("cl").pipe((0,h.R)(this.unSubs[0])).subscribe(t=>{t.apisCallStatus.FetchInfo.status!==g.Bn.COMPLETED&&t.apisCallStatus.FetchInfo.status!==g.Bn.ERROR||t.apisCallStatus.FetchFees.status!==g.Bn.COMPLETED&&t.apisCallStatus.FetchFees.status!==g.Bn.ERROR||t.apisCallStatus.FetchChannels.status!==g.Bn.COMPLETED&&t.apisCallStatus.FetchChannels.status!==g.Bn.ERROR||t.apisCallStatus.FetchBalance.status!==g.Bn.COMPLETED&&t.apisCallStatus.FetchBalance.status!==g.Bn.ERROR||t.apisCallStatus.FetchLocalRemoteBalance.status!==g.Bn.COMPLETED&&t.apisCallStatus.FetchLocalRemoteBalance.status!==g.Bn.ERROR||this.flgInitialized||(this.store.dispatch(new y.Iv(g.m6.INITALIZE_NODE_DATA)),this.flgInitialized=!0)})}initializeRemainingData(t,e){this.sessionService.setItem("clUnlocked","true");const i={identity_pubkey:t.id,alias:t.alias,testnet:"testnet"===t.network.toLowerCase(),chains:t.chains,uris:t.uris,version:t.version,api_version:t.api_version,numberOfPendingChannels:t.num_pending_channels};this.store.dispatch(new y.Fk(g.m6.INITALIZE_NODE_DATA)),this.store.dispatch(new y.e6(i)),this.store.dispatch(new b._O({num_max_invoices:1e6,index_offset:0,reversed:!0})),this.store.dispatch(new b.od),this.store.dispatch(new b.iG),this.store.dispatch(new b.D8),this.store.dispatch(new b.LT),this.store.dispatch(new b.Nn("perkw")),this.store.dispatch(new b.Nn("perkb")),this.store.dispatch(new b.N9),this.store.dispatch(new b.Zt),this.store.dispatch(new b.xt);let n=this.location.path();n.includes("/lnd/")?n=n.replace("/lnd/","/cl/"):n.includes("/ecl/")&&(n=n.replace("/ecl/","/cl/")),(n.includes("/login")||n.includes("/error")||""===n||"HOME"===e||n.includes("?access-key="))&&(n="/cl/home"),this.router.navigate([n])}handleErrorWithoutAlert(t,e,i,n){if(this.logger.error("ERROR IN: "+t+"\n"+JSON.stringify(n)),401===n.status)this.logger.info("Redirecting to Login"),this.store.dispatch(new y.Ac),this.store.dispatch(new y.RD),this.store.dispatch(new y.Lw("Authentication Failed. Redirecting to Login."));else{this.store.dispatch(new y.Iv(e));const r=this.commonService.extractErrorMessage(n,i);this.store.dispatch(new b.np({action:t,status:g.Bn.ERROR,statusCode:n.status.toString(),message:r}))}}handleErrorWithAlert(t,e,i,n,r){if(this.logger.error(r),401===r.status)this.logger.info("Redirecting to Login"),this.store.dispatch(new y.Ac),this.store.dispatch(new y.RD),this.store.dispatch(new y.Lw("Authentication Failed. Redirecting to Login."));else{this.store.dispatch(new y.Iv(e));const s=this.commonService.extractErrorMessage(r);this.store.dispatch(new y.wu({data:{type:"ERROR",alertTitle:i,message:{code:r.status,message:s,URL:n},component:f.H}})),this.store.dispatch(new b.np({action:t,status:g.Bn.ERROR,statusCode:r.status.toString(),message:s,URL:n}))}}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(v.LFG(n.eX),v.LFG(_.eN),v.LFG(w.yh),v.LFG(x.m),v.LFG(C.v),v.LFG(A.mQ),v.LFG(S.F0),v.LFG(E.Ye))},t.\u0275prov=v.Yz7({token:t,factory:t.\u0275fac}),t})()},3793:(t,e,i)=>{"use strict";i.d(e,{$:()=>N});var n=i(4608),r=i(5291),s=i(9421),o=i(1572),a=i(3869),l=i(1084),c=i(1403),h=i(3722),u=i(1511),d=i(377),p=i(7439),f=i(7592),m=i(5980),g=i(7679),y=i(3600),b=i(6880),v=i(2609);function _(t,e){if(1&t&&o._UZ(0,"qrcode",30),2&t){const t=o.oxw();o.Q6J("qrdata",t.invoice.bolt11)("margin",2)("width",t.qrWidth)("errorCorrectionLevel","L")("allowEmptyString",!0)}}function w(t,e){1&t&&(o.TgZ(0,"span",31),o._uU(1,"N/A"),o.qZA())}function x(t,e){if(1&t&&o._UZ(0,"qrcode",30),2&t){const t=o.oxw();o.Q6J("qrdata",t.invoice.bolt11)("margin",2)("width",t.qrWidth)("errorCorrectionLevel","L")("allowEmptyString",!0)}}function C(t,e){1&t&&(o.TgZ(0,"span",32),o._uU(1,"QR Code Not Applicable"),o.qZA())}function A(t,e){1&t&&o._UZ(0,"mat-divider",33),2&t&&o.Q6J("inset",!0)}function S(t,e){if(1&t&&(o.TgZ(0,"div",16),o.TgZ(1,"div",34),o._UZ(2,"fa-icon",35),o.TgZ(3,"span"),o._uU(4),o.qZA(),o.qZA(),o.qZA()),2&t){const t=o.oxw();o.xp6(2),o.Q6J("icon",t.faExclamationTriangle),o.xp6(2),o.Oqu(t.invoice.warning_capacity)}}function E(t,e){1&t&&(o.ynx(0),o._uU(1," (zero amount) "),o.BQk())}function k(t,e){if(1&t&&(o.TgZ(0,"div"),o._UZ(1,"mat-divider",21),o.TgZ(2,"div",16),o.TgZ(3,"div",22),o.TgZ(4,"h4",18),o._uU(5,"Payment Hash"),o.qZA(),o.TgZ(6,"span",23),o._uU(7),o.qZA(),o.qZA(),o.qZA(),o._UZ(8,"mat-divider",21),o.TgZ(9,"div",16),o.TgZ(10,"div",17),o.TgZ(11,"h4",18),o._uU(12,"Status"),o.qZA(),o.TgZ(13,"span",23),o._uU(14),o.ALo(15,"titlecase"),o.qZA(),o.qZA(),o.TgZ(16,"div",17),o.TgZ(17,"h4",18),o._uU(18,"Label"),o.qZA(),o.TgZ(19,"span",23),o._uU(20),o.qZA(),o.qZA(),o.qZA(),o._UZ(21,"mat-divider",21),o.TgZ(22,"div",16),o.TgZ(23,"div",17),o.TgZ(24,"h4",18),o._uU(25,"Amount Received"),o.qZA(),o.TgZ(26,"span",23),o._uU(27),o.ALo(28,"number"),o.qZA(),o.qZA(),o.TgZ(29,"div",17),o.TgZ(30,"h4",18),o._uU(31,"Date Settled"),o.qZA(),o.TgZ(32,"span",19),o._uU(33),o.ALo(34,"date"),o.qZA(),o.qZA(),o.qZA(),o._UZ(35,"mat-divider",21),o.qZA()),2&t){const t=o.oxw();o.xp6(7),o.Oqu(t.invoice.payment_hash),o.xp6(7),o.Oqu(o.lcZ(15,6,t.invoice.status)),o.xp6(6),o.Oqu(t.invoice.label),o.xp6(7),o.AsE("",o.lcZ(28,8,t.invoice.msatoshi_received/1e3)," ",t.invoice.msatoshi_received?"Sats":"",""),o.xp6(6),o.Oqu(o.xi3(34,10,1e3*t.invoice.paid_at,"dd/MMM/YYYY HH:mm")||"-")}}function T(t,e){1&t&&(o.TgZ(0,"p"),o._uU(1,"Show Advanced"),o.qZA())}function M(t,e){1&t&&(o.TgZ(0,"p"),o._uU(1,"Hide Advanced"),o.qZA())}function L(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"button",36),o.NdJ("copied",function(e){return o.CHM(t),o.oxw().onCopyPayment(e)}),o._uU(1,"Copy Invoice"),o.qZA()}if(2&t){const t=o.oxw();o.Q6J("payload",t.invoice.bolt11)}}function I(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"button",37),o.NdJ("click",function(){return o.CHM(t),o.oxw().onClose()}),o._uU(1,"OK"),o.qZA()}}const O=function(t){return{"display-none":t}},D=function(t){return{"xs-scroll-y":t}},R=function(t,e){return{"mt-2":t,"mt-1":e}};let N=(()=>{class t{constructor(t,e,i,n,o){this.dialogRef=t,this.data=e,this.logger=i,this.commonService=n,this.snackBar=o,this.faReceipt=r.dLy,this.faExclamationTriangle=r.eHv,this.showAdvanced=!1,this.newlyAdded=!1,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=s.cu}ngOnInit(){this.invoice=this.data.invoice,this.newlyAdded=this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===s.cu.XS&&(this.qrWidth=220)}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyPayment(t){this.snackBar.open("Invoice copied."),this.logger.info("Copied Text: "+t)}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(n.so),o.Y36(n.WI),o.Y36(a.mQ),o.Y36(l.v),o.Y36(c.ux))},t.\u0275cmp=o.Xpm({type:t,selectors:[["rtl-cl-invoice-information"]],decls:55,vars:39,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","35",1,"modal-qr-code-container","padding-gap-large",3,"fxLayoutAlign","ngClass"],[3,"qrdata","margin","width","errorCorrectionLevel","allowEmptyString",4,"ngIf"],["class","font-size-300",4,"ngIf"],["fxFlex","65"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large",3,"ngClass"],["fxLayout","column"],["fxFlex","30",1,"modal-qr-code-container","padding-gap",3,"fxLayoutAlign","ngClass"],["class","font-size-120",4,"ngIf"],["class","my-1",3,"inset",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[4,"ngIf"],[1,"w-100","my-1"],["fxFlex","100"],[1,"overflow-wrap","foreground-secondary-text"],["fxLayout","row","fxLayoutAlign","end center",3,"ngClass"],["mat-stroked-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["hideAdvancedText",""],["autoFocus","","mat-flat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["autoFocus","","mat-flat-button","","color","primary","tabindex","2","type","button",3,"click",4,"ngIf"],[3,"qrdata","margin","width","errorCorrectionLevel","allowEmptyString"],[1,"font-size-300"],[1,"font-size-120"],[1,"my-1",3,"inset"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["autoFocus","","mat-flat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["autoFocus","","mat-flat-button","","color","primary","tabindex","2","type","button",3,"click"]],template:function(t,e){if(1&t&&(o.TgZ(0,"div",0),o.TgZ(1,"div",1),o.YNc(2,_,1,5,"qrcode",2),o.YNc(3,w,2,0,"span",3),o.qZA(),o.TgZ(4,"div",4),o.TgZ(5,"mat-card-header",5),o.TgZ(6,"div",6),o._UZ(7,"fa-icon",7),o.TgZ(8,"span",8),o._uU(9),o.qZA(),o.qZA(),o.TgZ(10,"button",9),o.NdJ("click",function(){return e.onClose()}),o._uU(11,"X"),o.qZA(),o.qZA(),o.TgZ(12,"mat-card-content",10),o.TgZ(13,"div",11),o.TgZ(14,"div",12),o.YNc(15,x,1,5,"qrcode",2),o.YNc(16,C,2,0,"span",13),o.qZA(),o.YNc(17,A,1,1,"mat-divider",14),o.YNc(18,S,5,2,"div",15),o.TgZ(19,"div",16),o.TgZ(20,"div",17),o.TgZ(21,"h4",18),o._uU(22),o.qZA(),o.TgZ(23,"span",19),o._uU(24),o.ALo(25,"number"),o.YNc(26,E,2,0,"ng-container",20),o.qZA(),o.qZA(),o.TgZ(27,"div",17),o.TgZ(28,"h4",18),o._uU(29,"Date Expiry"),o.qZA(),o.TgZ(30,"span",19),o._uU(31),o.ALo(32,"date"),o.qZA(),o.qZA(),o.qZA(),o._UZ(33,"mat-divider",21),o.TgZ(34,"div",16),o.TgZ(35,"div",22),o.TgZ(36,"h4",18),o._uU(37,"Description"),o.qZA(),o.TgZ(38,"span",19),o._uU(39),o.qZA(),o.qZA(),o.qZA(),o._UZ(40,"mat-divider",21),o.TgZ(41,"div",16),o.TgZ(42,"div",22),o.TgZ(43,"h4",18),o._uU(44,"Invoice"),o.qZA(),o.TgZ(45,"span",23),o._uU(46),o.qZA(),o.qZA(),o.qZA(),o.YNc(47,k,36,13,"div",20),o.TgZ(48,"div",24),o.TgZ(49,"button",25),o.NdJ("click",function(){return e.onShowAdvanced()}),o.YNc(50,T,2,0,"p",26),o.YNc(51,M,2,0,"ng-template",null,27,o.W1O),o.qZA(),o.YNc(53,L,2,1,"button",28),o.YNc(54,I,2,0,"button",29),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA()),2&t){const t=o.MAs(52);o.xp6(1),o.Q6J("fxLayoutAlign",e.invoice.bolt11&&""!==e.invoice.bolt11?"center start":"center center")("ngClass",o.VKq(30,O,e.screenSize===e.screenSizeEnum.XS||e.screenSize===e.screenSizeEnum.SM)),o.xp6(1),o.Q6J("ngIf",e.invoice.bolt11&&""!==e.invoice.bolt11),o.xp6(1),o.Q6J("ngIf",!e.invoice.bolt11||""===e.invoice.bolt11),o.xp6(4),o.Q6J("icon",e.faReceipt),o.xp6(2),o.Oqu(e.screenSize===e.screenSizeEnum.XS?e.newlyAdded?"Created":"Invoice":e.newlyAdded?"Invoice Created":"Invoice Information"),o.xp6(3),o.Q6J("ngClass",o.VKq(32,D,e.screenSize===e.screenSizeEnum.XS)),o.xp6(2),o.Q6J("fxLayoutAlign",e.invoice.bolt11&&""!==e.invoice.bolt11?"center start":"center center")("ngClass",o.VKq(34,O,e.screenSize!==e.screenSizeEnum.XS&&e.screenSize!==e.screenSizeEnum.SM)),o.xp6(1),o.Q6J("ngIf",e.invoice.bolt11&&""!==e.invoice.bolt11),o.xp6(1),o.Q6J("ngIf",!e.invoice.bolt11||""===e.invoice.bolt11),o.xp6(1),o.Q6J("ngIf",e.screenSize===e.screenSizeEnum.XS||e.screenSize===e.screenSizeEnum.SM),o.xp6(1),o.Q6J("ngIf",e.invoice.warning_capacity),o.xp6(4),o.Oqu(e.screenSize===e.screenSizeEnum.XS?"Amount":"Amount Requested"),o.xp6(2),o.hij("",o.lcZ(25,25,e.invoice.msatoshi/1e3||0)," Sats"),o.xp6(2),o.Q6J("ngIf",!e.invoice.msatoshi),o.xp6(5),o.Oqu(o.xi3(32,27,1e3*e.invoice.expires_at,"dd/MMM/YYYY HH:mm")),o.xp6(8),o.Oqu(e.invoice.description||"-"),o.xp6(7),o.Oqu(e.invoice.bolt11||"N/A"),o.xp6(1),o.Q6J("ngIf",e.showAdvanced),o.xp6(1),o.Q6J("ngClass",o.WLB(36,R,!e.showAdvanced,e.showAdvanced)),o.xp6(2),o.Q6J("ngIf",!e.showAdvanced)("ngIfElse",t),o.xp6(3),o.Q6J("ngIf",e.invoice.bolt11&&""!==e.invoice.bolt11),o.xp6(1),o.Q6J("ngIf",!e.invoice.bolt11||""===e.invoice.bolt11)}},directives:[h.xw,h.Wh,h.yH,u.mk,d.oO,u.O5,p.dk,f.BN,m.lW,p.dn,g.d,y.V,b.h,v.y],pipes:[u.JJ,u.uU,u.rS],styles:[""]}),t})()},6124:(t,e,i)=>{"use strict";i.d(e,{ok:()=>n,f:()=>r,gk:()=>s,Go:()=>o,ml:()=>a,iR:()=>l,UA:()=>c,M8:()=>h,L2:()=>u,JI:()=>d,ct:()=>p,Oy:()=>f,ro:()=>m,we:()=>g,CF:()=>y,$9:()=>b,mn:()=>v,Tt:()=>_,IH:()=>w,md:()=>x,Ae:()=>C,BX:()=>A,J4:()=>S,JR:()=>E,gu:()=>k,nG:()=>T,yH:()=>M,r7:()=>L,Cu:()=>I,GT:()=>O,Wn:()=>D,iW:()=>R,Ao:()=>N,Pm:()=>P,qC:()=>F,k5:()=>Z,Qu:()=>B,xX:()=>U,wL:()=>q,N$:()=>z,oY:()=>H,WJ:()=>Y,Wk:()=>G,fw:()=>j,d2:()=>V,Lg:()=>Q,ht:()=>W,np:()=>J,IF:()=>X,vI:()=>K,z6:()=>$,od:()=>tt,iG:()=>et,vN:()=>it,SF:()=>nt,oI:()=>rt,DM:()=>st,eb:()=>ot,N9:()=>at,RS:()=>lt,rF:()=>ct,hF:()=>ht,ER:()=>ut,nb:()=>dt,k:()=>pt,e8:()=>ft,xt:()=>mt,bm:()=>gt,lO:()=>yt,Ar:()=>bt,T$:()=>vt,eL:()=>_t,J6:()=>wt,_O:()=>xt,Ks:()=>Ct,cU:()=>At,x$:()=>St,oP:()=>Et});const n="RESET_ECL_STORE",r="UPDATE_API_CALL_STATUS_ECL",s="SET_CHILD_NODE_SETTINGS_ECL",o="FETCH_INFO_ECL",a="SET_INFO_ECL",l="FETCH_FEES_ECL",c="SET_FEES_ECL",h="FETCH_CHANNELS_ECL",u="SET_ACTIVE_CHANNELS_ECL",d="SET_PENDING_CHANNELS_ECL",p="SET_INACTIVE_CHANNELS_ECL",f="FETCH_CHANNEL_STATS_ECL",m="SET_CHANNEL_STATS_ECL",g="FETCH_ONCHAIN_BALANCE_ECL",y="SET_ONCHAIN_BALANCE_ECL",b="SET_LIGHTNING_BALANCE_ECL",v="SET_CHANNELS_STATUS_ECL",_="FETCH_PEERS_ECL",w="SET_PEERS_ECL",x="SAVE_NEW_PEER_ECL",C="NEWLY_ADDED_PEER_ECL",A="DETACH_PEER_ECL",S="REMOVE_PEER_ECL",E="GET_NEW_ADDRESS_ECL",k="SET_NEW_ADDRESS_ECL",T="SAVE_NEW_CHANNEL_ECL",M="UPDATE_CHANNELS_ECL",L="CLOSE_CHANNEL_ECL",I="REMOVE_CHANNEL_ECL",O="FETCH_PAYMENTS_ECL",D="SET_PAYMENTS_ECL",R="GET_QUERY_ROUTES_ECL",N="SET_QUERY_ROUTES_ECL",P="SEND_PAYMENT_ECL",F="SEND_PAYMENT_STATUS_ECL",Z="FETCH_TRANSACTIONS_ECL",B="SET_TRANSACTIONS_ECL",U="SEND_ONCHAIN_FUNDS_ECL",q="SEND_ONCHAIN_FUNDS_RES_ECL",z="FETCH_INVOICES_ECL",H="SET_INVOICES_ECL",Y="CREATE_INVOICE_ECL",G="ADD_INVOICE_ECL",j="UPDATE_INVOICE_ECL",V="PEER_LOOKUP_ECL",Q="INVOICE_LOOKUP_ECL",W="SET_LOOKUP_ECL";class J{constructor(t){this.payload=t,this.type=r}}class X{constructor(t){this.payload=t,this.type=n}}class K{constructor(t){this.payload=t,this.type=s}}class ${constructor(t){this.payload=t,this.type=o}}class tt{constructor(){this.type=l}}class et{constructor(t){this.payload=t,this.type=h}}class it{constructor(t){this.payload=t,this.type=u}}class nt{constructor(t){this.payload=t,this.type=d}}class rt{constructor(t){this.payload=t,this.type=p}}class st{constructor(){this.type=g}}class ot{constructor(t){this.payload=t,this.type=b}}class at{constructor(){this.type=_}}class lt{constructor(t){this.payload=t,this.type=w}}class ct{constructor(t){this.payload=t,this.type=x}}class ht{constructor(t){this.payload=t,this.type=A}}class ut{constructor(){this.type=E}}class dt{constructor(t){this.payload=t,this.type=T}}class pt{constructor(t){this.payload=t,this.type=M}}class ft{constructor(t){this.payload=t,this.type=L}}class mt{constructor(){this.type=O}}class gt{constructor(t){this.payload=t,this.type=R}}class yt{constructor(t){this.payload=t,this.type=N}}class bt{constructor(t){this.payload=t,this.type=P}}class vt{constructor(t){this.payload=t,this.type=F}}class _t{constructor(){this.type=Z}}class wt{constructor(t){this.payload=t,this.type=U}}class xt{constructor(){this.type=z}}class Ct{constructor(t){this.payload=t,this.type=Y}}class At{constructor(t){this.payload=t,this.type=j}}class St{constructor(t){this.payload=t,this.type=V}}class Et{constructor(t){this.payload=t,this.type=Q}}},4147:(t,e,i)=>{"use strict";i.d(e,{o:()=>S});var n=i(5573),r=i(9666),s=i(2041),o=i(7228),a=i(9568),l=i(1681),c=i(1816),h=i(5653),u=i(5963),d=i(2427),p=i(9421),f=i(3921),m=i(6124),g=i(3929),y=i(1572),b=i(9063),v=i(964),_=i(3191),w=i(1084),x=i(3869),C=i(6853),A=i(1511);let S=(()=>{class t{constructor(t,e,i,d,y,b,v,_){this.actions=t,this.httpClient=e,this.store=i,this.sessionService=d,this.commonService=y,this.logger=b,this.router=v,this.location=_,this.CHILD_API_URL=u.T+"/ecl",this.flgInitialized=!1,this.unSubs=[new r.x,new r.x],this.infoFetchECL=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(m.Go),(0,o.z)(t=>(this.flgInitialized=!1,this.store.dispatch(new g.Fk(p.m6.GET_NODE_INFO)),this.store.dispatch(new m.np({action:"FetchInfo",status:p.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+u.N.GETINFO_API).pipe((0,a.R)(this.actions.pipe((0,n.l4)(g.RP))),(0,l.U)(e=>(this.logger.info(e),this.initializeRemainingData(e,t.payload.loadPage),this.store.dispatch(new m.np({action:"FetchInfo",status:p.Bn.COMPLETED})),this.store.dispatch(new g.Iv(p.m6.GET_NODE_INFO)),{type:m.ml,payload:e||{}})),(0,c.K)(t=>{const e=this.commonService.extractErrorCode(t),i=503===e?"Unable to Connect to Eclair Server.":this.commonService.extractErrorMessage(t);return this.router.navigate(["/error"],{state:{errorCode:e,errorMessage:i}}),this.handleErrorWithoutAlert("FetchInfo",p.m6.GET_NODE_INFO,"Fetching Node Info Failed.",{status:e,error:i}),(0,s.of)({type:g.Zn})})))))),this.fetchFees=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(m.iR),(0,o.z)(t=>(this.store.dispatch(new m.np({action:"FetchFees",status:p.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+u.N.FEES_API+"/fees").pipe((0,l.U)(t=>(this.logger.info(t),this.store.dispatch(new m.np({action:"FetchFees",status:p.Bn.COMPLETED})),{type:m.UA,payload:t||{}})),(0,c.K)(t=>(this.handleErrorWithoutAlert("FetchFees",p.m6.NO_SPINNER,"Fetching Fees Failed.",t),(0,s.of)({type:g.Zn})))))))),this.fetchPayments=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(m.GT),(0,o.z)(t=>(this.store.dispatch(new m.np({action:"FetchPayments",status:p.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+u.N.FEES_API+"/payments").pipe((0,l.U)(t=>(this.logger.info(t),this.store.dispatch(new m.np({action:"FetchPayments",status:p.Bn.COMPLETED})),{type:m.Wn,payload:t||{}})),(0,c.K)(t=>(this.handleErrorWithoutAlert("FetchPayments",p.m6.NO_SPINNER,"Fetching Payments Failed.",t),(0,s.of)({type:g.Zn})))))))),this.channelsFetch=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(m.M8),(0,o.z)(t=>(this.store.dispatch(new m.np({action:"FetchChannels",status:p.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+u.N.CHANNELS_API).pipe((0,l.U)(e=>(this.logger.info(e),this.store.dispatch(new m.np({action:"FetchChannels",status:p.Bn.COMPLETED})),this.store.dispatch(new m.vN(e&&e.activeChannels.length>0?e.activeChannels:[])),this.store.dispatch(new m.SF(e&&e.pendingChannels.length>0?e.pendingChannels:[])),this.store.dispatch(new m.oI(e&&e.inactiveChannels.length>0?e.inactiveChannels:[])),this.store.dispatch(new m.eb(e.lightningBalances)),t.payload&&t.payload.fetchPayments&&this.store.dispatch(new m.xt),{type:m.mn,payload:e.channelStatus})),(0,c.K)(t=>(this.handleErrorWithoutAlert("FetchChannels",p.m6.NO_SPINNER,"Fetching Channels Failed.",t),(0,s.of)({type:g.Zn})))))))),this.channelStatsFetch=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(m.Oy),(0,o.z)(t=>(this.store.dispatch(new m.np({action:"FetchChannelStats",status:p.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+u.N.CHANNELS_API+"/stats").pipe((0,l.U)(t=>(this.logger.info(t),this.store.dispatch(new m.np({action:"FetchChannelStats",status:p.Bn.COMPLETED})),{type:m.ro,payload:t&&t.length>0?t:[]})),(0,c.K)(t=>(this.handleErrorWithoutAlert("FetchChannelStats",p.m6.NO_SPINNER,"Fetching Channel Stats Failed.",t),(0,s.of)({type:g.Zn})))))))),this.fetchOnchainBalance=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(m.we),(0,o.z)(t=>(this.store.dispatch(new m.np({action:"FetchOnchainBalance",status:p.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+u.N.ON_CHAIN_API+"/balance"))),(0,l.U)(t=>(this.logger.info(t),this.store.dispatch(new m.np({action:"FetchOnchainBalance",status:p.Bn.COMPLETED})),{type:m.CF,payload:t||{}})),(0,c.K)(t=>(this.handleErrorWithoutAlert("FetchOnchainBalance",p.m6.NO_SPINNER,"Fetching Onchain Balances Failed.",t),(0,s.of)({type:g.Zn}))))),this.peersFetch=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(m.Tt),(0,o.z)(t=>(this.store.dispatch(new m.np({action:"FetchPeers",status:p.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+u.N.PEERS_API).pipe((0,l.U)(t=>(this.logger.info(t),this.store.dispatch(new m.np({action:"FetchPeers",status:p.Bn.COMPLETED})),{type:m.IH,payload:t&&t.length?t:[]})),(0,c.K)(t=>(this.handleErrorWithoutAlert("FetchPeers",p.m6.NO_SPINNER,"Fetching Peers Failed.",t),(0,s.of)({type:g.Zn})))))))),this.getNewAddress=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(m.JR),(0,o.z)(t=>(this.store.dispatch(new g.Fk(p.m6.GENERATE_NEW_ADDRESS)),this.httpClient.get(this.CHILD_API_URL+u.N.ON_CHAIN_API).pipe((0,l.U)(t=>(this.logger.info(t),this.store.dispatch(new g.Iv(p.m6.GENERATE_NEW_ADDRESS)),{type:m.gu,payload:t})),(0,c.K)(t=>(this.handleErrorWithAlert("GetNewAddress",p.m6.GENERATE_NEW_ADDRESS,"Generate New Address Failed",this.CHILD_API_URL+u.N.ON_CHAIN_API,t),(0,s.of)({type:g.Zn})))))))),this.setNewAddress=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(m.gu),(0,l.U)(t=>(this.logger.info(t.payload),t.payload))),{dispatch:!1}),this.saveNewPeer=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(m.md),(0,h.M)(this.store.select("ecl")),(0,o.z)(([t,e])=>(this.store.dispatch(new g.Fk(p.m6.CONNECT_PEER)),this.store.dispatch(new m.np({action:"SaveNewPeer",status:p.Bn.INITIATED})),this.httpClient.post(this.CHILD_API_URL+u.N.PEERS_API+(t.payload.id.includes("@")?"?uri=":"?nodeId=")+t.payload.id,{}).pipe((0,l.U)(e=>(this.logger.info(e),this.store.dispatch(new m.np({action:"SaveNewPeer",status:p.Bn.COMPLETED})),e=e&&e.length?e:[],this.store.dispatch(new g.Iv(p.m6.CONNECT_PEER)),this.store.dispatch(new m.RS(e)),{type:m.Ae,payload:{peer:e.find(e=>e.nodeId===(t.payload.id.includes("@")?t.payload.id.substring(0,t.payload.id.indexOf("@")):t.payload.id))}})),(0,c.K)(t=>(this.handleErrorWithoutAlert("SaveNewPeer",p.m6.CONNECT_PEER,"Peer Connection Failed.",t),(0,s.of)({type:g.Zn})))))))),this.detachPeer=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(m.BX),(0,o.z)(t=>(this.store.dispatch(new g.Fk(p.m6.DISCONNECT_PEER)),this.httpClient.delete(this.CHILD_API_URL+u.N.PEERS_API+"/"+t.payload.nodeId).pipe((0,l.U)(e=>(this.logger.info(e),this.store.dispatch(new g.Iv(p.m6.DISCONNECT_PEER)),this.store.dispatch(new g.Lw("Disconnecting Peer!")),{type:m.J4,payload:{nodeId:t.payload.nodeId}})),(0,c.K)(e=>(this.handleErrorWithAlert("DisconnectPeer",p.m6.DISCONNECT_PEER,"Unable to Detach Peer. Try again later.",this.CHILD_API_URL+u.N.PEERS_API+"/"+t.payload.nodeId,e),(0,s.of)({type:g.Zn})))))))),this.openNewChannel=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(m.nG),(0,o.z)(t=>(this.store.dispatch(new g.Fk(p.m6.OPEN_CHANNEL)),this.store.dispatch(new m.np({action:"SaveNewChannel",status:p.Bn.INITIATED})),this.httpClient.post(this.CHILD_API_URL+u.N.CHANNELS_API,t.payload.feeRate&&t.payload.feeRate>0?{nodeId:t.payload.nodeId,fundingSatoshis:t.payload.amount,channelFlags:+!t.payload.private,fundingFeerateSatByte:t.payload.feeRate}:{nodeId:t.payload.nodeId,fundingSatoshis:t.payload.amount,channelFlags:+!t.payload.private}).pipe((0,l.U)(t=>(this.logger.info(t),this.store.dispatch(new m.np({action:"SaveNewChannel",status:p.Bn.COMPLETED})),this.store.dispatch(new m.N9),this.store.dispatch(new m.DM),this.store.dispatch(new g.Iv(p.m6.OPEN_CHANNEL)),this.store.dispatch(new g.Lw("Channel Added Successfully!")),{type:m.M8,payload:{fetchPayments:!1}})),(0,c.K)(t=>(this.handleErrorWithoutAlert("SaveNewChannel",p.m6.OPEN_CHANNEL,"Opening Channel Failed.",t),(0,s.of)({type:g.Zn})))))))),this.updateChannel=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(m.yH),(0,o.z)(t=>{this.store.dispatch(new g.Fk(p.m6.UPDATE_CHAN_POLICY));let e="?feeBaseMsat="+t.payload.baseFeeMsat+"&feeProportionalMillionths="+t.payload.feeRate;return e=t.payload.channelIds?e+"&channelIds="+t.payload.channelIds:e+"&channelId="+t.payload.channelId,this.httpClient.post(this.CHILD_API_URL+u.N.CHANNELS_API+"/updateRelayFee"+e,{}).pipe((0,l.U)(e=>(this.logger.info(e),this.store.dispatch(new g.Iv(p.m6.UPDATE_CHAN_POLICY)),this.store.dispatch(new g.Lw(t.payload.channelIds?"Channels Updated Successfully.":"Channel Updated Successfully!")),{type:m.M8,payload:{fetchPayments:!1}})),(0,c.K)(t=>(this.handleErrorWithAlert("UpdateChannels",p.m6.UPDATE_CHAN_POLICY,"Update Channel Failed",this.CHILD_API_URL+u.N.CHANNELS_API,t),(0,s.of)({type:g.Zn}))))}))),this.closeChannel=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(m.r7),(0,o.z)(t=>(this.store.dispatch(new g.Fk(t.payload.force?p.m6.FORCE_CLOSE_CHANNEL:p.m6.CLOSE_CHANNEL)),this.httpClient.delete(this.CHILD_API_URL+u.N.CHANNELS_API+"?channelId="+t.payload.channelId+"&force="+t.payload.force).pipe((0,l.U)(e=>(this.logger.info(e),setTimeout(()=>{this.store.dispatch(new g.Iv(t.payload.force?p.m6.FORCE_CLOSE_CHANNEL:p.m6.CLOSE_CHANNEL)),this.store.dispatch(new m.iG({fetchPayments:!1})),this.store.dispatch(new g.Lw(t.payload.force?"Channel Force Closed Successfully!":"Channel Closed Successfully!"))},2e3),{type:g.Zn})),(0,c.K)(e=>(this.handleErrorWithAlert("CloseChannel",t.payload.force?p.m6.FORCE_CLOSE_CHANNEL:p.m6.CLOSE_CHANNEL,"Unable to Close Channel. Try again later.",this.CHILD_API_URL+u.N.CHANNELS_API,e),(0,s.of)({type:g.Zn})))))))),this.queryRoutesFetch=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(m.iW),(0,o.z)(t=>this.httpClient.get(this.CHILD_API_URL+u.N.PAYMENTS_API+"/route?nodeId="+t.payload.nodeId+"&amountMsat="+t.payload.amount).pipe((0,l.U)(t=>(this.logger.info(t),{type:m.Ao,payload:t})),(0,c.K)(e=>(this.store.dispatch(new m.lO([])),this.handleErrorWithAlert("GetQueryRoutes",p.m6.NO_SPINNER,"Get Query Routes Failed",this.CHILD_API_URL+u.N.PAYMENTS_API+"/route?nodeId="+t.payload.nodeId+"&amountMsat="+t.payload.amount,e),(0,s.of)({type:g.Zn}))))))),this.setQueryRoutes=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(m.Ao),(0,l.U)(t=>t.payload)),{dispatch:!1}),this.sendPayment=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(m.Pm),(0,h.M)(this.store.select("root")),(0,o.z)(([t,e])=>(this.store.dispatch(new g.Fk(p.m6.SEND_PAYMENT)),this.store.dispatch(new m.np({action:"SendPayment",status:p.Bn.INITIATED})),this.httpClient.post(this.CHILD_API_URL+u.N.PAYMENTS_API,t.payload).pipe((0,l.U)(t=>(this.logger.info(t),setTimeout(()=>{this.store.dispatch(new m.np({action:"SendPayment",status:p.Bn.COMPLETED})),this.store.dispatch(new m.T$(t)),this.store.dispatch(new g.Iv(p.m6.SEND_PAYMENT)),this.store.dispatch(new m.iG({fetchPayments:!0})),this.store.dispatch(new m.xt),this.store.dispatch(new g.Lw("Payment Submitted!"))},3e3),{type:g.Zn})),(0,c.K)(e=>(this.logger.error("Error: "+JSON.stringify(e)),t.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",p.m6.SEND_PAYMENT,"Send Payment Failed.",e):this.handleErrorWithAlert("SendPayment",p.m6.SEND_PAYMENT,"Send Payment Failed",this.CHILD_API_URL+u.N.PAYMENTS_API,e),(0,s.of)({type:g.Zn})))))))),this.transactionsFetch=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(m.k5),(0,o.z)(t=>(this.store.dispatch(new m.np({action:"FetchTransactions",status:p.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+u.N.ON_CHAIN_API+"/transactions?count=1000&skip=0"))),(0,l.U)(t=>(this.logger.info(t),this.store.dispatch(new m.np({action:"FetchTransactions",status:p.Bn.COMPLETED})),{type:m.Qu,payload:t&&t.length>0?t:[]})),(0,c.K)(t=>(this.handleErrorWithoutAlert("FetchTransactions",p.m6.NO_SPINNER,"Fetching Transactions Failed.",t),(0,s.of)({type:g.Zn}))))),this.SendOnchainFunds=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(m.xX),(0,o.z)(t=>(this.store.dispatch(new g.Fk(p.m6.SEND_FUNDS)),this.store.dispatch(new m.np({action:"SendOnchainFunds",status:p.Bn.INITIATED})),this.httpClient.post(this.CHILD_API_URL+u.N.ON_CHAIN_API,t.payload).pipe((0,l.U)(t=>(this.logger.info(t),this.store.dispatch(new m.np({action:"SendOnchainFunds",status:p.Bn.COMPLETED})),this.store.dispatch(new g.Iv(p.m6.SEND_FUNDS)),this.store.dispatch(new m.DM),{type:m.wL,payload:t})),(0,c.K)(t=>(this.handleErrorWithoutAlert("SendOnchainFunds",p.m6.SEND_FUNDS,"Sending Fund Failed.",t),(0,s.of)({type:g.Zn})))))))),this.createInvoice=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(m.WJ),(0,o.z)(t=>(this.store.dispatch(new g.Fk(p.m6.CREATE_INVOICE)),this.store.dispatch(new m.np({action:"CreateInvoice",status:p.Bn.INITIATED})),this.httpClient.post(this.CHILD_API_URL+u.N.INVOICES_API,t.payload).pipe((0,l.U)(e=>(this.logger.info(e),this.store.dispatch(new m.np({action:"CreateInvoice",status:p.Bn.COMPLETED})),this.store.dispatch(new g.Iv(p.m6.CREATE_INVOICE)),e.timestamp=(new Date).getTime()/1e3,e.expiresAt=Math.round(e.timestamp+t.payload.expireIn),e.description=t.payload.description,e.status="unpaid",this.store.dispatch(new g.wu({data:{invoice:e,newlyAdded:!1,component:f.R}})),{type:m.Wk,payload:e})),(0,c.K)(t=>(this.handleErrorWithoutAlert("CreateInvoice",p.m6.CREATE_INVOICE,"Create Invoice Failed.",t),(0,s.of)({type:g.Zn})))))))),this.invoicesFetch=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(m.N$),(0,o.z)(t=>(this.store.dispatch(new m.np({action:"FetchInvoices",status:p.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+u.N.INVOICES_API).pipe((0,l.U)(t=>(this.logger.info(t),this.store.dispatch(new m.np({action:"FetchInvoices",status:p.Bn.COMPLETED})),{type:m.oY,payload:t})),(0,c.K)(t=>(this.handleErrorWithoutAlert("FetchInvoices",p.m6.NO_SPINNER,"Fetching Invoices Failed.",t),(0,s.of)({type:g.Zn})))))))),this.peerLookup=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(m.d2),(0,o.z)(t=>(this.store.dispatch(new g.Fk(p.m6.SEARCHING_NODE)),this.store.dispatch(new m.np({action:"Lookup",status:p.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+u.N.NETWORK_API+"/nodes/"+t.payload).pipe((0,l.U)(t=>(this.logger.info(t),this.store.dispatch(new m.np({action:"Lookup",status:p.Bn.COMPLETED})),this.store.dispatch(new g.Iv(p.m6.SEARCHING_NODE)),{type:m.ht,payload:t})),(0,c.K)(e=>(this.handleErrorWithAlert("Lookup",p.m6.SEARCHING_NODE,"Peer Lookup Failed",this.CHILD_API_URL+u.N.NETWORK_API+"/nodes/"+t.payload,e),(0,s.of)({type:g.Zn})))))))),this.invoiceLookup=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(m.Lg),(0,o.z)(t=>(this.store.dispatch(new g.Fk(p.m6.SEARCHING_INVOICE)),this.store.dispatch(new m.np({action:"Lookup",status:p.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+u.N.INVOICES_API+"/"+t.payload).pipe((0,l.U)(t=>(this.logger.info(t),this.store.dispatch(new m.np({action:"Lookup",status:p.Bn.COMPLETED})),this.store.dispatch(new g.Iv(p.m6.SEARCHING_INVOICE)),this.store.dispatch(new m.cU(t)),{type:m.ht,payload:t})),(0,c.K)(t=>(this.handleErrorWithoutAlert("Lookup",p.m6.SEARCHING_INVOICE,"Invoice Lookup Failed",t),this.store.dispatch(new g.Lw({message:"Invoice Refresh Failed.",type:"ERROR"})),(0,s.of)({type:g.Zn})))))))),this.setLookup=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(m.ht),(0,l.U)(t=>(this.logger.info(t.payload),t.payload))),{dispatch:!1}),this.store.select("ecl").pipe((0,a.R)(this.unSubs[0])).subscribe(t=>{t.apisCallStatus.FetchInfo.status!==p.Bn.COMPLETED&&t.apisCallStatus.FetchInfo.status!==p.Bn.ERROR||t.apisCallStatus.FetchFees.status!==p.Bn.COMPLETED&&t.apisCallStatus.FetchFees.status!==p.Bn.ERROR||t.apisCallStatus.FetchOnchainBalance.status!==p.Bn.COMPLETED&&t.apisCallStatus.FetchOnchainBalance.status!==p.Bn.ERROR||t.apisCallStatus.FetchChannels.status!==p.Bn.COMPLETED&&t.apisCallStatus.FetchChannels.status!==p.Bn.ERROR||this.flgInitialized||(this.store.dispatch(new g.Iv(p.m6.INITALIZE_NODE_DATA)),this.flgInitialized=!0)})}initializeRemainingData(t,e){this.sessionService.setItem("eclUnlocked","true");const i={identity_pubkey:t.nodeId,alias:t.alias,testnet:"testnet"===t.network,chains:t.publicAddresses,uris:t.uris,version:t.version,numberOfPendingChannels:0};this.store.dispatch(new g.Fk(p.m6.INITALIZE_NODE_DATA)),this.store.dispatch(new g.e6(i)),this.store.dispatch(new m._O),this.store.dispatch(new m.iG({fetchPayments:!0})),this.store.dispatch(new m.od),this.store.dispatch(new m.DM),this.store.dispatch(new m.N9);let n=this.location.path();n.includes("/lnd/")?n=n.replace("/lnd/","/ecl/"):n.includes("/cl/")&&(n=n.replace("/cl/","/ecl/")),(n.includes("/login")||n.includes("/error")||""===n||"HOME"===e||n.includes("?access-key="))&&(n="/ecl/home"),this.router.navigate([n])}handleErrorWithoutAlert(t,e,i,n){this.logger.error("ERROR IN: "+t+"\n"+JSON.stringify(n)),401===n.status?(this.logger.info("Redirecting to Login"),this.store.dispatch(new g.Ac),this.store.dispatch(new g.RD),this.store.dispatch(new g.Lw("Authentication Failed. Redirecting to Login."))):(this.store.dispatch(new g.Iv(e)),this.store.dispatch(new m.np({action:t,status:p.Bn.ERROR,statusCode:n.status.toString(),message:this.commonService.extractErrorMessage(n,i)})))}handleErrorWithAlert(t,e,i,n,r){if(this.logger.error(r),401===r.status)this.logger.info("Redirecting to Login"),this.store.dispatch(new g.Ac),this.store.dispatch(new g.RD),this.store.dispatch(new g.Lw("Authentication Failed. Redirecting to Login."));else{this.store.dispatch(new g.Iv(e));const s=this.commonService.extractErrorMessage(r);this.store.dispatch(new g.wu({data:{type:"ERROR",alertTitle:i,message:{code:r.status,message:s,URL:n},component:d.H}})),this.store.dispatch(new m.np({action:t,status:p.Bn.ERROR,statusCode:r.status.toString(),message:s,URL:n}))}}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(y.LFG(n.eX),y.LFG(b.eN),y.LFG(v.yh),y.LFG(_.m),y.LFG(w.v),y.LFG(x.mQ),y.LFG(C.F0),y.LFG(A.Ye))},t.\u0275prov=y.Yz7({token:t,factory:t.\u0275fac}),t})()},3921:(t,e,i)=>{"use strict";i.d(e,{R:()=>P});var n=i(4608),r=i(5291),s=i(9421),o=i(1572),a=i(3869),l=i(1084),c=i(1403),h=i(3722),u=i(1511),d=i(377),p=i(7439),f=i(7592),m=i(5980),g=i(7679),y=i(3600),b=i(6880),v=i(2609);function _(t,e){if(1&t&&o._UZ(0,"qrcode",29),2&t){const t=o.oxw();o.Q6J("qrdata",t.invoice.serialized)("margin",2)("width",t.qrWidth)("errorCorrectionLevel","L")("allowEmptyString",!0)}}function w(t,e){1&t&&(o.TgZ(0,"span",30),o._uU(1,"N/A"),o.qZA())}function x(t,e){if(1&t&&o._UZ(0,"qrcode",29),2&t){const t=o.oxw();o.Q6J("qrdata",t.invoice.serialized)("margin",2)("width",t.qrWidth)("errorCorrectionLevel","L")("allowEmptyString",!0)}}function C(t,e){1&t&&(o.TgZ(0,"span",31),o._uU(1,"QR Code Not Applicable"),o.qZA())}function A(t,e){1&t&&o._UZ(0,"mat-divider",32),2&t&&o.Q6J("inset",!0)}function S(t,e){1&t&&(o.ynx(0),o._uU(1," (zero amount) "),o.BQk())}function E(t,e){if(1&t&&(o.ynx(0),o._uU(1),o.ALo(2,"number"),o.BQk()),2&t){const t=o.oxw();o.xp6(1),o.hij("",o.lcZ(2,1,t.invoice.amountSettled)," Sats")}}function k(t,e){1&t&&(o.ynx(0),o._uU(1,"-"),o.BQk())}function T(t,e){if(1&t&&(o.TgZ(0,"div"),o._UZ(1,"mat-divider",20),o.TgZ(2,"div",15),o.TgZ(3,"div",33),o.TgZ(4,"h4",17),o._uU(5,"Date Expiry"),o.qZA(),o.TgZ(6,"span",18),o._uU(7),o.ALo(8,"date"),o.qZA(),o.qZA(),o.TgZ(9,"div",34),o.TgZ(10,"h4",17),o._uU(11,"Date Settled"),o.qZA(),o.TgZ(12,"span",21),o._uU(13),o.ALo(14,"date"),o.qZA(),o.qZA(),o.qZA(),o._UZ(15,"mat-divider",20),o.TgZ(16,"div",15),o.TgZ(17,"div",22),o.TgZ(18,"h4",17),o._uU(19,"Payment Hash"),o.qZA(),o.TgZ(20,"span",21),o._uU(21),o.qZA(),o.qZA(),o.qZA(),o._UZ(22,"mat-divider",20),o.TgZ(23,"div",15),o.TgZ(24,"div",22),o.TgZ(25,"h4",17),o._uU(26,"Node Id"),o.qZA(),o.TgZ(27,"span",21),o._uU(28),o.qZA(),o.qZA(),o.qZA(),o._UZ(29,"mat-divider",20),o.qZA()),2&t){const t=o.oxw();o.xp6(7),o.Oqu(o.xi3(8,4,1e3*t.invoice.expiresAt,"dd/MMM/YYYY HH:mm")),o.xp6(6),o.Oqu(o.xi3(14,7,1e3*t.invoice.receivedAt,"dd/MMM/YYYY HH:mm")),o.xp6(8),o.Oqu(t.invoice.paymentHash),o.xp6(7),o.Oqu(t.invoice.nodeId)}}function M(t,e){1&t&&(o.TgZ(0,"p"),o._uU(1,"Show Advanced"),o.qZA())}function L(t,e){1&t&&(o.TgZ(0,"p"),o._uU(1,"Hide Advanced"),o.qZA())}function I(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"button",35),o.NdJ("copied",function(e){return o.CHM(t),o.oxw().onCopyPayment(e)}),o._uU(1,"Copy Invoice"),o.qZA()}if(2&t){const t=o.oxw();o.Q6J("payload",t.invoice.serialized)}}function O(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"button",36),o.NdJ("click",function(){return o.CHM(t),o.oxw().onClose()}),o._uU(1,"OK"),o.qZA()}}const D=function(t){return{"display-none":t}},R=function(t){return{"xs-scroll-y":t}},N=function(t,e){return{"mt-2":t,"mt-1":e}};let P=(()=>{class t{constructor(t,e,i,n,o){this.dialogRef=t,this.data=e,this.logger=i,this.commonService=n,this.snackBar=o,this.faReceipt=r.dLy,this.faExclamationTriangle=r.eHv,this.showAdvanced=!1,this.newlyAdded=!1,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=s.cu}ngOnInit(){this.invoice=this.data.invoice,this.newlyAdded=this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===s.cu.XS&&(this.qrWidth=220)}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyPayment(t){this.snackBar.open("Invoice copied."),this.logger.info("Copied Text: "+t)}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(n.so),o.Y36(n.WI),o.Y36(a.mQ),o.Y36(l.v),o.Y36(c.ux))},t.\u0275cmp=o.Xpm({type:t,selectors:[["rtl-ecl-invoice-information"]],decls:68,vars:42,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","35",1,"modal-qr-code-container","padding-gap-large",3,"fxLayoutAlign","ngClass"],[3,"qrdata","margin","width","errorCorrectionLevel","allowEmptyString",4,"ngIf"],["class","font-size-300",4,"ngIf"],["fxFlex","65"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large",3,"ngClass"],["fxLayout","column"],["fxFlex","30",1,"modal-qr-code-container","padding-gap",3,"fxLayoutAlign","ngClass"],["class","font-size-120",4,"ngIf"],["class","my-1",3,"inset",4,"ngIf"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[4,"ngIf"],[1,"w-100","my-1"],[1,"overflow-wrap","foreground-secondary-text"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","end center",3,"ngClass"],["mat-stroked-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["hideAdvancedText",""],["autoFocus","","mat-flat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["autoFocus","","mat-flat-button","","color","primary","tabindex","2","type","button",3,"click",4,"ngIf"],[3,"qrdata","margin","width","errorCorrectionLevel","allowEmptyString"],[1,"font-size-300"],[1,"font-size-120"],[1,"my-1",3,"inset"],["fxFlex","40"],["fxFlex","60"],["autoFocus","","mat-flat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["autoFocus","","mat-flat-button","","color","primary","tabindex","2","type","button",3,"click"]],template:function(t,e){if(1&t&&(o.TgZ(0,"div",0),o.TgZ(1,"div",1),o.YNc(2,_,1,5,"qrcode",2),o.YNc(3,w,2,0,"span",3),o.qZA(),o.TgZ(4,"div",4),o.TgZ(5,"mat-card-header",5),o.TgZ(6,"div",6),o._UZ(7,"fa-icon",7),o.TgZ(8,"span",8),o._uU(9),o.qZA(),o.qZA(),o.TgZ(10,"button",9),o.NdJ("click",function(){return e.onClose()}),o._uU(11,"X"),o.qZA(),o.qZA(),o.TgZ(12,"mat-card-content",10),o.TgZ(13,"div",11),o.TgZ(14,"div",12),o.YNc(15,x,1,5,"qrcode",2),o.YNc(16,C,2,0,"span",13),o.qZA(),o.YNc(17,A,1,1,"mat-divider",14),o.TgZ(18,"div",15),o.TgZ(19,"div",16),o.TgZ(20,"h4",17),o._uU(21,"Amount Requested"),o.qZA(),o.TgZ(22,"span",18),o._uU(23),o.ALo(24,"number"),o.YNc(25,S,2,0,"ng-container",19),o.qZA(),o.qZA(),o.TgZ(26,"div",16),o.TgZ(27,"h4",17),o._uU(28,"Amount Settled"),o.qZA(),o.TgZ(29,"span",18),o.YNc(30,E,3,3,"ng-container",19),o.YNc(31,k,2,0,"ng-container",19),o.qZA(),o.qZA(),o.qZA(),o._UZ(32,"mat-divider",20),o.TgZ(33,"div",15),o.TgZ(34,"div",16),o.TgZ(35,"h4",17),o._uU(36,"Date Created"),o.qZA(),o.TgZ(37,"span",21),o._uU(38),o.ALo(39,"date"),o.qZA(),o.qZA(),o.TgZ(40,"div",16),o.TgZ(41,"h4",17),o._uU(42,"Status"),o.qZA(),o.TgZ(43,"span",21),o._uU(44),o.ALo(45,"titlecase"),o.qZA(),o.qZA(),o.qZA(),o._UZ(46,"mat-divider",20),o.TgZ(47,"div",15),o.TgZ(48,"div",22),o.TgZ(49,"h4",17),o._uU(50,"Description"),o.qZA(),o.TgZ(51,"span",18),o._uU(52),o.qZA(),o.qZA(),o.qZA(),o._UZ(53,"mat-divider",20),o.TgZ(54,"div",15),o.TgZ(55,"div",22),o.TgZ(56,"h4",17),o._uU(57,"Invoice"),o.qZA(),o.TgZ(58,"span",21),o._uU(59),o.qZA(),o.qZA(),o.qZA(),o.YNc(60,T,30,10,"div",19),o.TgZ(61,"div",23),o.TgZ(62,"button",24),o.NdJ("click",function(){return e.onShowAdvanced()}),o.YNc(63,M,2,0,"p",25),o.YNc(64,L,2,0,"ng-template",null,26,o.W1O),o.qZA(),o.YNc(66,I,2,1,"button",27),o.YNc(67,O,2,0,"button",28),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA()),2&t){const t=o.MAs(65);o.xp6(1),o.Q6J("fxLayoutAlign",e.invoice.serialized&&""!==e.invoice.serialized?"center start":"center center")("ngClass",o.VKq(33,D,e.screenSize===e.screenSizeEnum.XS||e.screenSize===e.screenSizeEnum.SM)),o.xp6(1),o.Q6J("ngIf",e.invoice.serialized&&""!==e.invoice.serialized),o.xp6(1),o.Q6J("ngIf",!e.invoice.serialized||""===e.invoice.serialized),o.xp6(4),o.Q6J("icon",e.faReceipt),o.xp6(2),o.Oqu(e.screenSize===e.screenSizeEnum.XS?e.newlyAdded?"Created":"Invoice":e.newlyAdded?"Invoice Created":"Invoice Information"),o.xp6(3),o.Q6J("ngClass",o.VKq(35,R,e.screenSize===e.screenSizeEnum.XS)),o.xp6(2),o.Q6J("fxLayoutAlign",e.invoice.serialized&&""!==e.invoice.serialized?"center start":"center center")("ngClass",o.VKq(37,D,e.screenSize!==e.screenSizeEnum.XS&&e.screenSize!==e.screenSizeEnum.SM)),o.xp6(1),o.Q6J("ngIf",e.invoice.serialized&&""!==e.invoice.serialized),o.xp6(1),o.Q6J("ngIf",!e.invoice.serialized||""===e.invoice.serialized),o.xp6(1),o.Q6J("ngIf",e.screenSize===e.screenSizeEnum.XS||e.screenSize===e.screenSizeEnum.SM),o.xp6(6),o.hij("",o.lcZ(24,26,e.invoice.amount||0)," Sats"),o.xp6(2),o.Q6J("ngIf",!e.invoice.amount),o.xp6(5),o.Q6J("ngIf",e.invoice.amountSettled),o.xp6(1),o.Q6J("ngIf",!e.invoice.amountSettled),o.xp6(7),o.Oqu(o.xi3(39,28,1e3*e.invoice.timestamp,"dd/MMM/YYYY HH:mm")),o.xp6(6),o.Oqu(o.lcZ(45,31,e.invoice.status)),o.xp6(8),o.Oqu(e.invoice.description||"-"),o.xp6(7),o.Oqu(e.invoice.serialized||"N/A"),o.xp6(1),o.Q6J("ngIf",e.showAdvanced),o.xp6(1),o.Q6J("ngClass",o.WLB(39,N,!e.showAdvanced,e.showAdvanced)),o.xp6(2),o.Q6J("ngIf",!e.showAdvanced)("ngIfElse",t),o.xp6(3),o.Q6J("ngIf",e.invoice.serialized&&""!==e.invoice.serialized),o.xp6(1),o.Q6J("ngIf",!e.invoice.serialized||""===e.invoice.serialized)}},directives:[h.xw,h.Wh,h.yH,u.mk,d.oO,u.O5,p.dk,f.BN,m.lW,p.dn,g.d,y.V,b.h,v.y],pipes:[u.JJ,u.uU,u.rS],styles:[""]}),t})()},5678:(t,e,i)=>{"use strict";i.d(e,{AL:()=>n,JE:()=>r,Os:()=>s,kY:()=>o,Uy:()=>a,lH:()=>l,Ah:()=>c,Qm:()=>h,X_:()=>u,Ff:()=>d,pK:()=>p,jc:()=>f,mZ:()=>m,c_:()=>g,VS:()=>y,HS:()=>b,Dn:()=>v,hn:()=>_,wE:()=>w,_s:()=>x,Mx:()=>C,W8:()=>A,nZ:()=>S,P2:()=>E,oS:()=>k,S1:()=>T,u9:()=>M,D3:()=>L,G4:()=>I,bq:()=>O,o4:()=>D,MQ:()=>R,ES:()=>N,$i:()=>P,AV:()=>F,S:()=>Z,Bg:()=>B,i9:()=>U,Ov:()=>q,_V:()=>z,aB:()=>H,mU:()=>Y,c4:()=>G,kz:()=>j,s0:()=>V,b:()=>Q,dG:()=>W,Bj:()=>J,xn:()=>X,ug:()=>K,Pp:()=>$,RN:()=>tt,t7:()=>et,i_:()=>it,s8:()=>nt,__:()=>rt,U8:()=>st,ZV:()=>ot,$L:()=>at,hL:()=>lt,As:()=>ct,gk:()=>ht,K4:()=>ut,lf:()=>dt,RP:()=>pt,LC:()=>ft,x:()=>mt,on:()=>gt,qs:()=>yt,YA:()=>bt,tB:()=>vt,np:()=>_t,Mo:()=>wt,vI:()=>xt,z6:()=>Ct,N9:()=>At,RS:()=>St,rF:()=>Et,yw:()=>kt,H1:()=>Tt,od:()=>Mt,D8:()=>Lt,h7:()=>It,jh:()=>Ot,Zb:()=>Dt,Ao:()=>Rt,k:()=>Nt,nb:()=>Pt,e8:()=>Ft,FN:()=>Zt,gf:()=>Bt,gL:()=>Ut,j4:()=>qt,Cd:()=>zt,_O:()=>Ht,cU:()=>Yt,rc:()=>Gt,eL:()=>jt,Zt:()=>Vt,xt:()=>Qt,Ar:()=>Wt,RR:()=>Jt,ER:()=>Xt,uj:()=>Kt,$b:()=>$t,My:()=>te,l8:()=>ee,x$:()=>ie,IG:()=>ne,oP:()=>re,O_:()=>se,KK:()=>oe,Fn:()=>ae,bm:()=>le,lO:()=>ce,dw:()=>he});const n="RESET_LND_STORE",r="UPDATE_API_CALL_STATUS_LND",s="SET_CHILD_NODE_SETTINGS_LND",o="FETCH_INFO_LND",a="SET_INFO_LND",l="FETCH_PEERS_LND",c="SET_PEERS_LND",h="SAVE_NEW_PEER_LND",u="NEWLY_ADDED_PEER_LND",d="DETACH_PEER_LND",p="REMOVE_PEER_LND",f="SAVE_NEW_INVOICE_LND",m="NEWLY_SAVED_INVOICE_LND",g="ADD_INVOICE_LND",y="FETCH_FEES_LND",b="SET_FEES_LND",v="FETCH_BALANCE_LND",_="SET_BALANCE_LND",w="FETCH_NETWORK_LND",x="SET_NETWORK_LND",C="FETCH_ALL_CHANNELS_LND",A="FETCH_PENDING_CHANNELS_LND",S="FETCH_CLOSED_CHANNELS_LND",E="SET_ALL_CHANNELS_LND",k="SET_PENDING_CHANNELS_LND",T="SET_CLOSED_CHANNELS_LND",M="UPDATE_CHANNELS_LND",L="SAVE_NEW_CHANNEL_LND",I="CLOSE_CHANNEL_LND",O="REMOVE_CHANNEL_LND",D="BACKUP_CHANNELS_LND",R="VERIFY_CHANNELS_LND",N="BACKUP_CHANNELS_RES_LND",P="VERIFY_CHANNELS_RES_LND",F="RESTORE_CHANNELS_LIST_LND",Z="SET_RESTORE_CHANNELS_LIST_LND",B="RESTORE_CHANNELS_LND",U="RESTORE_CHANNELS_RES_LND",q="FETCH_INVOICES_LND",z="SET_INVOICES_LND",H="UPDATE_INVOICE_LND",Y="SET_TOTAL_INVOICES_LND",G="FETCH_TRANSACTIONS_LND",j="SET_TRANSACTIONS_LND",V="FETCH_UTXOS_LND",Q="SET_UTXOS_LND",W="FETCH_PAYMENTS_LND",J="SET_PAYMENTS_LND",X="SEND_PAYMENT_LND",K="SEND_PAYMENT_STATUS_LND",$="FETCH_GRAPH_NODE_LND",tt="SET_GRAPH_NODE_LND",et="GET_NEW_ADDRESS_LND",it="SET_NEW_ADDRESS_LND",nt="SET_CHANNEL_TRANSACTION_LND",rt="SET_CHANNEL_TRANSACTION_RES_LND",st="GEN_SEED_LND",ot="GEN_SEED_RESPONSE_LND",at="INIT_WALLET_LND",lt="INIT_WALLET_RESPONSE_LND",ct="UNLOCK_WALLET_LND",ht="PEER_LOOKUP_LND",ut="CHANNEL_LOOKUP_LND",dt="INVOICE_LOOKUP_LND",pt="SET_LOOKUP_LND",ft="GET_FORWARDING_HISTORY_LND",mt="SET_FORWARDING_HISTORY_LND",gt="GET_QUERY_ROUTES_LND",yt="SET_QUERY_ROUTES_LND",bt="GET_ALL_LIGHTNING_TRANSATIONS_LND",vt="SET_ALL_LIGHTNING_TRANSATIONS_LND";class _t{constructor(t){this.payload=t,this.type=r}}class wt{constructor(t){this.payload=t,this.type=n}}class xt{constructor(t){this.payload=t,this.type=s}}class Ct{constructor(t){this.payload=t,this.type=o}}class At{constructor(){this.type=l}}class St{constructor(t){this.payload=t,this.type=c}}class Et{constructor(t){this.payload=t,this.type=h}}class kt{constructor(t){this.payload=t,this.type=d}}class Tt{constructor(t){this.payload=t,this.type=f}}class Mt{constructor(){this.type=y}}class Lt{constructor(t){this.payload=t,this.type=v}}class It{constructor(){this.type=w}}class Ot{constructor(){this.type=C}}class Dt{constructor(){this.type=A}}class Rt{constructor(){this.type=S}}class Nt{constructor(t){this.payload=t,this.type=M}}class Pt{constructor(t){this.payload=t,this.type=L}}class Ft{constructor(t){this.payload=t,this.type=I}}class Zt{constructor(t){this.payload=t,this.type=D}}class Bt{constructor(t){this.payload=t,this.type=R}}class Ut{constructor(){this.type=F}}class qt{constructor(t){this.payload=t,this.type=Z}}class zt{constructor(t){this.payload=t,this.type=B}}class Ht{constructor(t){this.payload=t,this.type=q}}class Yt{constructor(t){this.payload=t,this.type=H}}class Gt{constructor(t){this.payload=t,this.type=Y}}class jt{constructor(){this.type=G}}class Vt{constructor(){this.type=V}}class Qt{constructor(t){this.payload=t,this.type=W}}class Wt{constructor(t){this.payload=t,this.type=X}}class Jt{constructor(t){this.payload=t,this.type=$}}class Xt{constructor(t){this.payload=t,this.type=et}}class Kt{constructor(t){this.payload=t,this.type=nt}}class $t{constructor(t){this.payload=t,this.type=st}}class te{constructor(t){this.payload=t,this.type=at}}class ee{constructor(t){this.payload=t,this.type=ct}}class ie{constructor(t){this.payload=t,this.type=ht}}class ne{constructor(t){this.payload=t,this.type=ut}}class re{constructor(t){this.payload=t,this.type=dt}}class se{constructor(t){this.payload=t,this.type=pt}}class oe{constructor(t){this.payload=t,this.type=ft}}class ae{constructor(t){this.payload=t,this.type=mt}}class le{constructor(t){this.payload=t,this.type=gt}}class ce{constructor(t){this.payload=t,this.type=yt}}class he{constructor(){this.type=bt}}},8248:(t,e,i)=>{"use strict";i.d(e,{l:()=>E});var n=i(5573),r=i(9666),s=i(2041),o=i(5653),a=i(7228),l=i(9568),c=i(1681),h=i(1816),u=i(5963),d=i(1827),p=i(2427),f=i(9421),m=i(3929),g=i(5678),y=i(1572),b=i(9063),v=i(964),_=i(3869),w=i(1084),x=i(3191),C=i(4608),A=i(6853),S=i(1511);let E=(()=>{class t{constructor(t,e,i,p,y,b,v,_,w){this.actions=t,this.httpClient=e,this.store=i,this.logger=p,this.commonService=y,this.sessionService=b,this.dialog=v,this.router=_,this.location=w,this.CHILD_API_URL=u.T+"/lnd",this.flgInitialized=!1,this.unSubs=[new r.x,new r.x],this.infoFetch=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.kY),(0,o.M)(this.store.select("root")),(0,a.z)(([t,e])=>(this.flgInitialized=!1,this.store.dispatch(new m.Fk(f.m6.GET_NODE_INFO)),this.store.dispatch(new g.np({action:"FetchInfo",status:f.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+u.N.GETINFO_API).pipe((0,l.R)(this.actions.pipe((0,n.l4)(m.RP))),(0,c.U)(e=>(this.logger.info(e),e.chains&&e.chains.length&&e.chains[0]&&("string"==typeof e.chains[0]&&e.chains[0].toLowerCase().indexOf("bitcoin")<0||"object"==typeof e.chains[0]&&e.chains[0].hasOwnProperty("chain")&&e.chains[0].chain.toLowerCase().indexOf("bitcoin")<0)?(this.store.dispatch(new g.np({action:"FetchInfo",status:f.Bn.COMPLETED})),this.store.dispatch(new m.Ac),this.store.dispatch(new m.wu({data:{type:f.n_.ERROR,alertTitle:"Shitcoin Found",titleMessage:"Sorry Not Sorry, RTL is Bitcoin Only!"}})),{type:m.Nv}):e.identity_pubkey?(e.lnImplementation="LND",this.initializeRemainingData(e,t.payload.loadPage),this.store.dispatch(new g.np({action:"FetchInfo",status:f.Bn.COMPLETED})),this.store.dispatch(new m.Ac),{type:g.Uy,payload:e||{}}):(this.store.dispatch(new g.np({action:"FetchInfo",status:f.Bn.COMPLETED})),this.store.dispatch(new m.Ac),this.sessionService.removeItem("lndUnlocked"),this.logger.info("Redirecting to Unlock"),this.router.navigate(["/lnd/wallet"]),{type:g.Uy,payload:{}}))),(0,h.K)(t=>{if("string"==typeof t.error.error&&t.error.error.includes("Not Found")||"string"==typeof t.error.error&&t.error.error.includes("wallet locked")||502===t.status)this.sessionService.removeItem("lndUnlocked"),this.logger.info("Redirecting to Unlock"),this.router.navigate(["/lnd/wallet"]),this.handleErrorWithoutAlert("FetchInfo",f.m6.GET_NODE_INFO,"Fetching Node Info Failed.",t);else if("string"==typeof t.error.error&&t.error.error.includes("starting up")&&500===t.status)setTimeout(()=>{this.store.dispatch(new g.z6({loadPage:"HOME"}))},2e3);else{const e=this.commonService.extractErrorCode(t),i=503===e?"Unable to Connect to LND Server.":this.commonService.extractErrorMessage(t);this.router.navigate(["/error"],{state:{errorCode:e,errorMessage:i}}),this.handleErrorWithoutAlert("FetchInfo",f.m6.GET_NODE_INFO,"Fetching Node Info Failed.",{status:e,error:i})}return(0,s.of)({type:m.Zn})})))))),this.peersFetch=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.lH),(0,a.z)(t=>(this.store.dispatch(new g.np({action:"FetchPeers",status:f.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+u.N.PEERS_API).pipe((0,c.U)(t=>(this.logger.info(t),this.store.dispatch(new g.np({action:"FetchPeers",status:f.Bn.COMPLETED})),{type:g.Ah,payload:t||[]})),(0,h.K)(t=>(this.handleErrorWithoutAlert("FetchPeers",f.m6.NO_SPINNER,"Fetching Peers Failed.",t),(0,s.of)({type:m.Zn})))))))),this.saveNewPeer=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.Qm),(0,o.M)(this.store.select("lnd")),(0,a.z)(([t,e])=>(this.store.dispatch(new m.Fk(f.m6.CONNECT_PEER)),this.store.dispatch(new g.np({action:"SaveNewPeer",status:f.Bn.INITIATED})),this.httpClient.post(this.CHILD_API_URL+u.N.PEERS_API,{pubkey:t.payload.pubkey,host:t.payload.host,perm:t.payload.perm}).pipe((0,c.U)(t=>(this.logger.info(t),this.store.dispatch(new g.np({action:"SaveNewPeer",status:f.Bn.COMPLETED})),this.store.dispatch(new m.Iv(f.m6.CONNECT_PEER)),this.store.dispatch(new g.RS(t&&t.length>0?t:[])),{type:g.X_,payload:{peer:t[0]}})),(0,h.K)(t=>(this.handleErrorWithoutAlert("SaveNewPeer",f.m6.CONNECT_PEER,"Peer Connection Failed.",t),(0,s.of)({type:m.Zn})))))))),this.detachPeer=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.Ff),(0,a.z)(t=>(this.store.dispatch(new m.Fk(f.m6.DISCONNECT_PEER)),this.httpClient.delete(this.CHILD_API_URL+u.N.PEERS_API+"/"+t.payload.pubkey).pipe((0,c.U)(e=>(this.logger.info(e),this.store.dispatch(new m.Iv(f.m6.DISCONNECT_PEER)),this.store.dispatch(new m.Lw("Peer Disconnected Successfully.")),{type:g.pK,payload:{pubkey:t.payload.pubkey}})),(0,h.K)(e=>(this.handleErrorWithAlert("DetachPeer",f.m6.DISCONNECT_PEER,"Unable to Detach Peer. Try again later.",this.CHILD_API_URL+u.N.PEERS_API+"/"+t.payload.pubkey,e),(0,s.of)({type:m.Zn})))))))),this.saveNewInvoice=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.jc),(0,a.z)(t=>(this.store.dispatch(new m.Fk(t.payload.uiMessage)),this.store.dispatch(new g.np({action:"SaveNewInvoice",status:f.Bn.INITIATED})),this.httpClient.post(this.CHILD_API_URL+u.N.INVOICES_API,{memo:t.payload.memo,amount:t.payload.invoiceValue,private:t.payload.private,expiry:t.payload.expiry}).pipe((0,c.U)(e=>(this.logger.info(e),this.store.dispatch(new g.np({action:"SaveNewInvoice",status:f.Bn.COMPLETED})),this.store.dispatch(new g._O({num_max_invoices:t.payload.pageSize,reversed:!0})),t.payload.openModal?(e.memo=t.payload.memo,e.value=t.payload.invoiceValue,e.expiry=t.payload.expiry,e.cltv_expiry="144",e.private=t.payload.private,e.creation_date=Math.round((new Date).getTime()/1e3).toString(),this.store.dispatch(new m.Iv(t.payload.uiMessage)),{type:m.fW,payload:{data:{invoice:e,newlyAdded:!0,component:d.v}}}):{type:g.mZ,payload:{paymentRequest:e.payment_request}})),(0,h.K)(e=>(this.handleErrorWithoutAlert("SaveNewInvoice",t.payload.uiMessage,"Add Invoice Failed.",e),(0,s.of)({type:m.Zn})))))))),this.openNewChannel=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.D3),(0,a.z)(t=>(this.store.dispatch(new m.Fk(f.m6.OPEN_CHANNEL)),this.store.dispatch(new g.np({action:"SaveNewChannel",status:f.Bn.INITIATED})),this.httpClient.post(this.CHILD_API_URL+u.N.CHANNELS_API,{node_pubkey:t.payload.selectedPeerPubkey,local_funding_amount:t.payload.fundingAmount,private:t.payload.private,trans_type:t.payload.transType,trans_type_value:t.payload.transTypeValue,spend_unconfirmed:t.payload.spendUnconfirmed}).pipe((0,c.U)(t=>(this.logger.info(t),this.store.dispatch(new g.np({action:"SaveNewChannel",status:f.Bn.COMPLETED})),this.store.dispatch(new m.Iv(f.m6.OPEN_CHANNEL)),this.store.dispatch(new g.D8("Blockchain")),this.store.dispatch(new g.jh),this.store.dispatch(new g.FN({uiMessage:f.m6.NO_SPINNER,channelPoint:"ALL",showMessage:"Channel Added Successfully!"})),{type:g.W8})),(0,h.K)(t=>(this.handleErrorWithoutAlert("SaveNewChannel",f.m6.OPEN_CHANNEL,"Opening Channel Failed.",t),(0,s.of)({type:m.Zn})))))))),this.updateChannel=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.u9),(0,a.z)(t=>(this.store.dispatch(new m.Fk(f.m6.UPDATE_CHAN_POLICY)),this.httpClient.post(this.CHILD_API_URL+u.N.CHANNELS_API+"/chanPolicy",{baseFeeMsat:t.payload.baseFeeMsat,feeRate:t.payload.feeRate,timeLockDelta:t.payload.timeLockDelta,chanPoint:t.payload.chanPoint}).pipe((0,c.U)(e=>(this.logger.info(e),this.store.dispatch(new m.Iv(f.m6.UPDATE_CHAN_POLICY)),this.store.dispatch(new m.Lw("all"===t.payload.chanPoint?"All Channels Updated Successfully.":"Channel Updated Successfully!")),{type:g.Mx})),(0,h.K)(t=>(this.handleErrorWithAlert("UpdateChannels",f.m6.UPDATE_CHAN_POLICY,"Update Channel Failed",this.CHILD_API_URL+u.N.CHANNELS_API+"/chanPolicy",t),(0,s.of)({type:m.Zn})))))))),this.closeChannel=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.G4),(0,a.z)(t=>{this.store.dispatch(new m.Fk(t.payload.forcibly?f.m6.FORCE_CLOSE_CHANNEL:f.m6.CLOSE_CHANNEL));let e=this.CHILD_API_URL+u.N.CHANNELS_API+"/"+t.payload.channelPoint+"?force="+t.payload.forcibly;return t.payload.targetConf&&(e=e+"&target_conf="+t.payload.targetConf),t.payload.satPerByte&&(e=e+"&sat_per_byte="+t.payload.satPerByte),this.httpClient.delete(e).pipe((0,c.U)(e=>(this.logger.info(e),this.store.dispatch(new m.Iv(t.payload.forcibly?f.m6.FORCE_CLOSE_CHANNEL:f.m6.CLOSE_CHANNEL)),this.store.dispatch(new g.jh),this.store.dispatch(new g.Zb),this.store.dispatch(new g.FN({uiMessage:f.m6.NO_SPINNER,channelPoint:"ALL",showMessage:e.message})),{type:m.Zn})),(0,h.K)(e=>(this.handleErrorWithAlert("CloseChannel",t.payload.forcibly?f.m6.FORCE_CLOSE_CHANNEL:f.m6.CLOSE_CHANNEL,"Unable to Close Channel. Try again later.",this.CHILD_API_URL+u.N.CHANNELS_API+"/"+t.payload.channelPoint+"?force="+t.payload.forcibly,e),(0,s.of)({type:m.Zn}))))}))),this.backupChannels=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.o4),(0,a.z)(t=>(this.store.dispatch(new m.Fk(t.payload.uiMessage)),this.store.dispatch(new g.np({action:"BackupChannels",status:f.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+u.N.CHANNELS_BACKUP_API+"/"+t.payload.channelPoint).pipe((0,c.U)(e=>(this.logger.info(e),this.store.dispatch(new g.np({action:"BackupChannels",status:f.Bn.COMPLETED})),this.store.dispatch(new m.Iv(t.payload.uiMessage)),this.store.dispatch(new m.Lw(t.payload.showMessage+" "+e.message)),{type:g.ES,payload:e.message})),(0,h.K)(e=>(this.handleErrorWithAlert("BackupChannels",t.payload.uiMessage,t.payload.showMessage+" Unable to Backup Channel. Try again later.",this.CHILD_API_URL+u.N.CHANNELS_BACKUP_API+"/"+t.payload.channelPoint,e),(0,s.of)({type:m.Zn})))))))),this.verifyChannels=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.MQ),(0,a.z)(t=>(this.store.dispatch(new m.Fk(f.m6.VERIFY_CHANNEL)),this.store.dispatch(new g.np({action:"VerifyChannels",status:f.Bn.INITIATED})),this.httpClient.post(this.CHILD_API_URL+u.N.CHANNELS_BACKUP_API+"/verify/"+t.payload.channelPoint,{}).pipe((0,c.U)(t=>(this.logger.info(t),this.store.dispatch(new g.np({action:"VerifyChannels",status:f.Bn.COMPLETED})),this.store.dispatch(new m.Iv(f.m6.VERIFY_CHANNEL)),this.store.dispatch(new m.Lw(t.message)),{type:g.$i,payload:t.message})),(0,h.K)(e=>(this.handleErrorWithAlert("VerifyChannels",f.m6.VERIFY_CHANNEL,"Unable to Verify Channel. Try again later.",this.CHILD_API_URL+u.N.CHANNELS_BACKUP_API+"/verify/"+t.payload.channelPoint,e),(0,s.of)({type:m.Zn})))))))),this.restoreChannels=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.Bg),(0,a.z)(t=>(this.store.dispatch(new m.Fk(f.m6.RESTORE_CHANNEL)),this.store.dispatch(new g.np({action:"RestoreChannels",status:f.Bn.INITIATED})),this.httpClient.post(this.CHILD_API_URL+u.N.CHANNELS_BACKUP_API+"/restore/"+t.payload.channelPoint,{}).pipe((0,c.U)(t=>(this.logger.info(t),this.store.dispatch(new g.np({action:"RestoreChannels",status:f.Bn.COMPLETED})),this.store.dispatch(new m.Iv(f.m6.RESTORE_CHANNEL)),this.store.dispatch(new m.Lw(t.message)),this.store.dispatch(new g.j4(t.list)),{type:g.i9,payload:t.message})),(0,h.K)(e=>(this.handleErrorWithAlert("RestoreChannels",f.m6.RESTORE_CHANNEL,"Unable to Restore Channel. Try again later.",this.CHILD_API_URL+u.N.CHANNELS_BACKUP_API+"/restore/"+t.payload.channelPoint,e),(0,s.of)({type:m.Zn})))))))),this.fetchFees=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.VS),(0,a.z)(t=>(this.store.dispatch(new g.np({action:"FetchFees",status:f.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+u.N.FEES_API))),(0,c.U)(t=>(this.logger.info(t),this.store.dispatch(new g.np({action:"FetchFees",status:f.Bn.COMPLETED})),t.forwarding_events_history&&(this.store.dispatch(new g.Fn(t.forwarding_events_history)),delete t.forwarding_events_history),{type:g.HS,payload:t||{}})),(0,h.K)(t=>(this.handleErrorWithoutAlert("FetchFees",f.m6.NO_SPINNER,"Fetching Fees Failed.",t),(0,s.of)({type:m.Zn}))))),this.balanceFetch=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.Dn),(0,a.z)(t=>(this.store.dispatch(new g.np({action:"FetchBalance"+t.payload,status:f.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+u.N.BALANCE_API+"/"+t.payload).pipe((0,c.U)(e=>(this.store.dispatch(new g.np({action:"FetchBalance"+t.payload,status:f.Bn.COMPLETED})),this.logger.info(e),{type:g.hn,payload:e?{target:t.payload,balance:e}:{target:t.payload,balance:"channels"===t.payload?{balance:""}:{total_balance:""}}})),(0,h.K)(e=>(this.handleErrorWithoutAlert("FetchBalance"+t.payload,f.m6.NO_SPINNER,"Fetching"+this.commonService.titleCase(t.payload)+" Balance Failed.",e),(0,s.of)({type:m.Zn})))))))),this.networkInfoFetch=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.wE),(0,a.z)(t=>(this.store.dispatch(new g.np({action:"FetchNetwork",status:f.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+u.N.NETWORK_API+"/info"))),(0,c.U)(t=>(this.logger.info(t),this.store.dispatch(new g.np({action:"FetchNetwork",status:f.Bn.COMPLETED})),{type:g._s,payload:t||{}})),(0,h.K)(t=>(this.handleErrorWithoutAlert("FetchNetwork",f.m6.NO_SPINNER,"Fetching Network Failed.",t),(0,s.of)({type:m.Zn}))))),this.channelsAllFetch=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.Mx),(0,a.z)(t=>(this.store.dispatch(new g.np({action:"FetchAllChannels",status:f.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+u.N.CHANNELS_API).pipe((0,c.U)(t=>(this.logger.info(t),this.store.dispatch(new g.np({action:"FetchAllChannels",status:f.Bn.COMPLETED})),{type:g.P2,payload:t&&t.channels&&t.channels.length>0?t.channels:[]})),(0,h.K)(t=>(this.handleErrorWithoutAlert("FetchAllChannels",f.m6.NO_SPINNER,"Fetching All Channels Failed.",t),(0,s.of)({type:m.Zn})))))))),this.channelsPendingFetch=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.W8),(0,a.z)(t=>(this.store.dispatch(new g.np({action:"FetchPendingChannels",status:f.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+u.N.CHANNELS_API+"/pending").pipe((0,c.U)(t=>{this.logger.info(t),this.store.dispatch(new g.np({action:"FetchPendingChannels",status:f.Bn.COMPLETED}));const e={open:{num_channels:0,limbo_balance:0},closing:{num_channels:0,limbo_balance:0},force_closing:{num_channels:0,limbo_balance:0},waiting_close:{num_channels:0,limbo_balance:0},total_channels:0,total_limbo_balance:0};return t&&(e.total_limbo_balance=t.total_limbo_balance,t.pending_closing_channels&&(e.closing.num_channels=t.pending_closing_channels.length,e.total_channels=e.total_channels+t.pending_closing_channels.length,t.pending_closing_channels.forEach(t=>{e.closing.limbo_balance=+e.closing.limbo_balance+(t.channel.local_balance?+t.channel.local_balance:0)})),t.pending_force_closing_channels&&(e.force_closing.num_channels=t.pending_force_closing_channels.length,e.total_channels=e.total_channels+t.pending_force_closing_channels.length,t.pending_force_closing_channels.forEach(t=>{e.force_closing.limbo_balance=+e.force_closing.limbo_balance+(t.channel.local_balance?+t.channel.local_balance:0)})),t.pending_open_channels&&(e.open.num_channels=t.pending_open_channels.length,e.total_channels=e.total_channels+t.pending_open_channels.length,t.pending_open_channels.forEach(t=>{e.open.limbo_balance=+e.open.limbo_balance+(t.channel.local_balance?+t.channel.local_balance:0)})),t.waiting_close_channels&&(e.waiting_close.num_channels=t.waiting_close_channels.length,e.total_channels=e.total_channels+t.waiting_close_channels.length,t.waiting_close_channels.forEach(t=>{e.waiting_close.limbo_balance=+e.waiting_close.limbo_balance+(t.channel.local_balance?+t.channel.local_balance:0)}))),{type:g.oS,payload:t?{channels:t,pendingChannels:e}:{channels:{},pendingChannels:e}}}),(0,h.K)(t=>(this.handleErrorWithoutAlert("FetchPendingChannels",f.m6.NO_SPINNER,"Fetching Pending Channels Failed.",t),(0,s.of)({type:m.Zn})))))))),this.channelsClosedFetch=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.nZ),(0,a.z)(t=>(this.store.dispatch(new g.np({action:"FetchClosedChannels",status:f.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+u.N.CHANNELS_API+"/closed").pipe((0,c.U)(t=>(this.logger.info(t),this.store.dispatch(new g.np({action:"FetchClosedChannels",status:f.Bn.COMPLETED})),{type:g.S1,payload:t&&t.channels&&t.channels.length>0?t.channels:[]})),(0,h.K)(t=>(this.handleErrorWithoutAlert("FetchClosedChannels",f.m6.NO_SPINNER,"Fetching Closed Channels Failed.",t),(0,s.of)({type:m.Zn})))))))),this.invoicesFetch=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.Ov),(0,a.z)(t=>(this.store.dispatch(new g.np({action:"FetchInvoices",status:f.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+u.N.INVOICES_API+"?num_max_invoices="+(t.payload.num_max_invoices?t.payload.num_max_invoices:100)+"&index_offset="+(t.payload.index_offset?t.payload.index_offset:0)+"&reversed="+(!!t.payload.reversed&&t.payload.reversed)).pipe((0,c.U)(e=>(this.logger.info(e),this.store.dispatch(new g.np({action:"FetchInvoices",status:f.Bn.COMPLETED})),t.payload.reversed&&!t.payload.index_offset&&this.store.dispatch(new g.rc(+e.last_index_offset)),{type:g._V,payload:e})),(0,h.K)(t=>(this.handleErrorWithoutAlert("FetchInvoices",f.m6.NO_SPINNER,"Fetching Invoices Failed.",t),(0,s.of)({type:m.Zn})))))))),this.transactionsFetch=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.c4),(0,a.z)(t=>(this.store.dispatch(new g.np({action:"FetchTransactions",status:f.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+u.N.TRANSACTIONS_API))),(0,c.U)(t=>(this.logger.info(t),this.store.dispatch(new g.np({action:"FetchTransactions",status:f.Bn.COMPLETED})),{type:g.kz,payload:t&&t.length>0?t:[]})),(0,h.K)(t=>(this.handleErrorWithoutAlert("FetchTransactions",f.m6.NO_SPINNER,"Fetching Transactions Failed.",t),(0,s.of)({type:m.Zn}))))),this.utxosFetch=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.s0),(0,o.M)(this.store.select("lnd")),(0,a.z)(([t,e])=>(this.store.dispatch(new g.np({action:"FetchUTXOs",status:f.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+u.N.WALLET_API+"/getUTXOs?max_confs="+(e.information&&e.information.block_height?e.information.block_height:1e9)))),(0,c.U)(t=>(this.logger.info(t),this.store.dispatch(new g.np({action:"FetchUTXOs",status:f.Bn.COMPLETED})),{type:g.b,payload:t&&t.length>0?t:[]})),(0,h.K)(t=>(this.handleErrorWithoutAlert("FetchUTXOs",f.m6.NO_SPINNER,"Fetching UTXOs Failed.",t),(0,s.of)({type:m.Zn}))))),this.paymentsFetch=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.dG),(0,a.z)(t=>(this.store.dispatch(new g.np({action:"FetchPayments",status:f.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+u.N.PAYMENTS_API+"?max_payments="+(t.payload.max_payments?t.payload.max_payments:100)+"&index_offset="+(t.payload.index_offset?t.payload.index_offset:0)+"&reversed="+(!!t.payload.reversed&&t.payload.reversed)).pipe((0,c.U)(t=>(this.logger.info(t),this.store.dispatch(new g.np({action:"FetchPayments",status:f.Bn.COMPLETED})),{type:g.Bj,payload:t})),(0,h.K)(t=>(this.handleErrorWithoutAlert("FetchPayments",f.m6.NO_SPINNER,"Fetching Payments Failed.",t),(0,s.of)({type:g.Bj,payload:{payments:[]}})))))))),this.sendPayment=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.xn),(0,a.z)(t=>{this.store.dispatch(new m.Fk(t.payload.uiMessage)),this.store.dispatch(new g.np({action:"SendPayment",status:f.Bn.INITIATED}));const e={};return e.paymentReq=t.payload.paymentReq,t.payload.paymentAmount&&(e.paymentAmount=t.payload.paymentAmount),t.payload.outgoingChannel&&(e.outgoingChannel=t.payload.outgoingChannel.chan_id),t.payload.allowSelfPayment&&(e.allowSelfPayment=t.payload.allowSelfPayment),t.payload.lastHopPubkey&&(e.lastHopPubkey=t.payload.lastHopPubkey),t.payload.feeLimitType&&t.payload.feeLimitType!==f.Vc[0]&&(e.feeLimit={},e.feeLimit[t.payload.feeLimitType.id]=t.payload.feeLimit),this.httpClient.post(this.CHILD_API_URL+u.N.CHANNELS_API+"/transactions",e).pipe((0,c.U)(e=>{if(this.logger.info(e),this.store.dispatch(new m.Iv(t.payload.uiMessage)),this.store.dispatch(new g.np({action:"SendPayment",status:f.Bn.COMPLETED})),e.payment_error)return t.payload.allowSelfPayment?(this.store.dispatch(new g._O({num_max_invoices:f.IV,reversed:!0})),{type:g.ug,payload:e}):(t.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",t.payload.uiMessage,"Send Payment Failed.",e.payment_error):this.handleErrorWithAlert("SendPayment",t.payload.uiMessage,"Send Payment Failed",this.CHILD_API_URL+u.N.CHANNELS_API+"/transactions",e.payment_error),{type:m.Zn});if(this.store.dispatch(new m.Iv(t.payload.uiMessage)),this.store.dispatch(new g.np({action:"SendPayment",status:f.Bn.COMPLETED})),this.store.dispatch(new g.jh),this.store.dispatch(new g.xt({max_payments:f.IV,reversed:!0})),t.payload.allowSelfPayment)this.store.dispatch(new g._O({num_max_invoices:f.IV,reversed:!0}));else{let t="Payment Sent Successfully.";e.payment_route&&e.payment_route.total_fees_msat&&(t="Payment sent successfully with the total fee "+e.payment_route.total_fees_msat+" (mSats)."),this.store.dispatch(new m.Lw(t))}return{type:g.ug,payload:e}}),(0,h.K)(e=>(this.logger.error("Error: "+JSON.stringify(e)),t.payload.allowSelfPayment?(this.handleErrorWithoutAlert("SendPayment",t.payload.uiMessage,"Send Payment Failed.",e),this.store.dispatch(new g._O({num_max_invoices:f.IV,reversed:!0})),(0,s.of)({type:g.ug,payload:{error:this.commonService.extractErrorMessage(e)}})):(t.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",t.payload.uiMessage,"Send Payment Failed.",e):this.handleErrorWithAlert("SendPayment",t.payload.uiMessage,"Send Payment Failed",this.CHILD_API_URL+u.N.CHANNELS_API+"/transactions",e),(0,s.of)({type:m.Zn})))))}))),this.graphNodeFetch=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.Pp),(0,a.z)(t=>(this.store.dispatch(new m.Fk(f.m6.GET_NODE_ADDRESS)),this.store.dispatch(new g.np({action:"FetchGraphNode",status:f.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+u.N.NETWORK_API+"/node/"+t.payload.pubkey).pipe((0,c.U)(t=>(this.logger.info(t),this.store.dispatch(new m.Iv(f.m6.GET_NODE_ADDRESS)),this.store.dispatch(new g.np({action:"FetchGraphNode",status:f.Bn.COMPLETED})),{type:g.RN,payload:t&&t.node?{node:t.node}:{node:null}})),(0,h.K)(t=>(this.handleErrorWithoutAlert("FetchGraphNode",f.m6.GET_NODE_ADDRESS,"Fetching Graph Node Failed.",t),(0,s.of)({type:m.Zn})))))))),this.setGraphNode=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.RN),(0,c.U)(t=>(this.logger.info(t.payload),t.payload))),{dispatch:!1}),this.getNewAddress=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.t7),(0,a.z)(t=>(this.store.dispatch(new m.Fk(f.m6.GENERATE_NEW_ADDRESS)),this.httpClient.get(this.CHILD_API_URL+u.N.NEW_ADDRESS_API+"?type="+t.payload.addressId).pipe((0,c.U)(t=>(this.logger.info(t),this.store.dispatch(new m.Iv(f.m6.GENERATE_NEW_ADDRESS)),{type:g.i_,payload:t&&t.address?t.address:{}})),(0,h.K)(e=>(this.handleErrorWithAlert("GetNewAddress",f.m6.GENERATE_NEW_ADDRESS,"Generate New Address Failed",this.CHILD_API_URL+u.N.NEW_ADDRESS_API+"?type="+t.payload.addressId,e),(0,s.of)({type:m.Zn})))))))),this.setNewAddress=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.i_),(0,c.U)(t=>(this.logger.info(t.payload),t.payload))),{dispatch:!1}),this.SetChannelTransaction=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.s8),(0,a.z)(t=>(this.store.dispatch(new m.Fk(f.m6.SEND_FUNDS)),this.store.dispatch(new g.np({action:"SetChannelTransaction",status:f.Bn.INITIATED})),this.httpClient.post(this.CHILD_API_URL+u.N.TRANSACTIONS_API,{amount:t.payload.amount,address:t.payload.address,sendAll:t.payload.sendAll,fees:t.payload.fees,blocks:t.payload.blocks}).pipe((0,c.U)(t=>(this.logger.info(t),this.store.dispatch(new g.np({action:"SetChannelTransaction",status:f.Bn.COMPLETED})),this.store.dispatch(new m.Iv(f.m6.SEND_FUNDS)),this.store.dispatch(new g.eL),this.store.dispatch(new g.D8("Blockchain")),this.store.dispatch(new g.jh),{type:g.__,payload:t})),(0,h.K)(t=>(this.handleErrorWithoutAlert("SetChannelTransaction",f.m6.SEND_FUNDS,"Sending Fund Failed.",t),(0,s.of)({type:m.Zn})))))))),this.fetchForwardingHistory=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.LC),(0,a.z)(t=>(this.store.dispatch(new g.np({action:"GetForwardingHistory",status:f.Bn.INITIATED})),this.httpClient.post(this.CHILD_API_URL+u.N.SWITCH_API,{num_max_events:t.payload.num_max_events,index_offset:t.payload.index_offset,end_time:t.payload.end_time,start_time:t.payload.start_time}).pipe((0,c.U)(t=>(this.logger.info(t),this.store.dispatch(new g.np({action:"GetForwardingHistory",status:f.Bn.COMPLETED})),{type:g.x,payload:t})),(0,h.K)(t=>(this.handleErrorWithAlert("GetForwardingHistory",f.m6.NO_SPINNER,"Get Forwarding History Failed",this.CHILD_API_URL+u.N.SWITCH_API,t),(0,s.of)({type:m.Zn})))))))),this.queryRoutesFetch=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.on),(0,a.z)(t=>{let e=this.CHILD_API_URL+u.N.NETWORK_API+"/routes/"+t.payload.destPubkey+"/"+t.payload.amount;return t.payload.outgoingChanId&&(e=e+"?outgoing_chan_id="+t.payload.outgoingChanId),this.httpClient.get(e).pipe((0,c.U)(t=>(this.logger.info(t),{type:g.qs,payload:t})),(0,h.K)(t=>(this.store.dispatch(new g.lO({})),this.handleErrorWithAlert("GetQueryRoutes",f.m6.NO_SPINNER,"Get Query Routes Failed",this.CHILD_API_URL+u.N.NETWORK_API,t),(0,s.of)({type:m.Zn}))))}))),this.setQueryRoutes=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.qs),(0,c.U)(t=>t.payload)),{dispatch:!1}),this.genSeed=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.U8),(0,a.z)(t=>(this.store.dispatch(new m.Fk(f.m6.GEN_SEED)),this.httpClient.get(this.CHILD_API_URL+u.N.WALLET_API+"/genseed/"+t.payload).pipe((0,c.U)(t=>(this.logger.info("Generated GenSeed!"),this.logger.info(t),this.store.dispatch(new m.Iv(f.m6.GEN_SEED)),{type:g.ZV,payload:t.cipher_seed_mnemonic})),(0,h.K)(e=>(this.handleErrorWithAlert("GenSeed",f.m6.GEN_SEED,"Genseed Generation Failed",this.CHILD_API_URL+u.N.WALLET_API+"/genseed/"+t.payload,e),(0,s.of)({type:m.Zn})))))))),this.updateSelNodeOptions=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(m.SK),(0,a.z)(t=>this.httpClient.get(this.CHILD_API_URL+u.N.WALLET_API+"/updateSelNodeOptions").pipe((0,c.U)(t=>(this.logger.info("Update Sel Node Successfull"),this.logger.info(t),{type:m.Zn})),(0,h.K)(t=>(this.handleErrorWithAlert("UpdateSelectedNodeOptions",f.m6.NO_SPINNER,"Update macaroon for newly initialized node failed! Please check the macaroon path and restart the server!","Update Macaroon",t),(0,s.of)({type:m.Zn}))))))),this.genSeedResponse=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.ZV),(0,c.U)(t=>t.payload)),{dispatch:!1}),this.initWalletRes=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.hL),(0,c.U)(t=>t.payload)),{dispatch:!1}),this.initWallet=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.$L),(0,a.z)(t=>(this.store.dispatch(new m.Fk(f.m6.INITIALIZE_WALLET)),this.httpClient.post(this.CHILD_API_URL+u.N.WALLET_API+"/wallet/initwallet",{wallet_password:t.payload.pwd,cipher_seed_mnemonic:t.payload.cipher?t.payload.cipher:"",aezeed_passphrase:t.payload.passphrase?t.payload.passphrase:""}).pipe((0,c.U)(t=>(this.logger.info(t),this.store.dispatch(new m.Iv(f.m6.INITIALIZE_WALLET)),{type:g.hL,payload:t})),(0,h.K)(t=>(this.handleErrorWithAlert("InitWallet",f.m6.INITIALIZE_WALLET,"Wallet Initialization Failed",this.CHILD_API_URL+u.N.WALLET_API+"/initwallet",t),(0,s.of)({type:m.Zn})))))))),this.unlockWallet=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.As),(0,a.z)(t=>(this.store.dispatch(new m.Fk(f.m6.UNLOCK_WALLET)),this.httpClient.post(this.CHILD_API_URL+u.N.WALLET_API+"/wallet/unlockwallet",{wallet_password:t.payload.pwd}).pipe((0,c.U)(t=>(this.logger.info(t),this.logger.info("Successfully Unlocked!"),this.sessionService.setItem("lndUnlocked","true"),this.store.dispatch(new m.Iv(f.m6.UNLOCK_WALLET)),this.store.dispatch(new m.Fk(f.m6.WAIT_SYNC_NODE)),setTimeout(()=>{this.store.dispatch(new m.Iv(f.m6.WAIT_SYNC_NODE)),this.store.dispatch(new g.z6({loadPage:"HOME"}))},5e3),{type:m.Zn})),(0,h.K)(t=>(this.handleErrorWithAlert("UnlockWallet",f.m6.UNLOCK_WALLET,"Unlock Wallet Failed",this.CHILD_API_URL+u.N.WALLET_API+"/unlockwallet",t),(0,s.of)({type:m.Zn}))))))),{dispatch:!1}),this.peerLookup=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.gk),(0,a.z)(t=>(this.store.dispatch(new m.Fk(f.m6.SEARCHING_NODE)),this.store.dispatch(new g.np({action:"Lookup",status:f.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+u.N.NETWORK_API+"/node/"+t.payload).pipe((0,c.U)(t=>(this.logger.info(t),this.store.dispatch(new m.Iv(f.m6.SEARCHING_NODE)),this.store.dispatch(new g.np({action:"Lookup",status:f.Bn.COMPLETED})),{type:g.RP,payload:t})),(0,h.K)(e=>(this.handleErrorWithAlert("Lookup",f.m6.SEARCHING_NODE,"Peer Lookup Failed",this.CHILD_API_URL+u.N.NETWORK_API+"/node/"+t.payload,e),(0,s.of)({type:m.Zn})))))))),this.channelLookup=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.K4),(0,a.z)(t=>(this.store.dispatch(new m.Fk(t.payload.uiMessage)),this.store.dispatch(new g.np({action:"Lookup",status:f.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+u.N.NETWORK_API+"/edge/"+t.payload.channelID).pipe((0,c.U)(e=>(this.logger.info(e),this.store.dispatch(new m.Iv(t.payload.uiMessage)),this.store.dispatch(new g.np({action:"Lookup",status:f.Bn.COMPLETED})),{type:g.RP,payload:e})),(0,h.K)(e=>(this.handleErrorWithAlert("Lookup",t.payload.uiMessage,"Channel Lookup Failed",this.CHILD_API_URL+u.N.NETWORK_API+"/edge/"+t.payload.channelID,e),this.store.dispatch(new g.O_({})),(0,s.of)({type:m.Zn})))))))),this.invoiceLookup=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.lf),(0,a.z)(t=>(this.store.dispatch(new m.Fk(f.m6.SEARCHING_INVOICE)),this.store.dispatch(new g.np({action:"Lookup",status:f.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+u.N.INVOICES_API+"/"+t.payload).pipe((0,c.U)(t=>(this.logger.info(t),this.store.dispatch(new m.Iv(f.m6.SEARCHING_INVOICE)),this.store.dispatch(new g.np({action:"Lookup",status:f.Bn.COMPLETED})),this.store.dispatch(new g.cU(t)),{type:g.RP,payload:t})),(0,h.K)(t=>(this.handleErrorWithoutAlert("Lookup",f.m6.SEARCHING_INVOICE,"Invoice Lookup Failed",t),this.store.dispatch(new m.Lw({message:"Invoice Refresh Failed.",type:"ERROR"})),(0,s.of)({type:m.Zn})))))))),this.setLookup=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.RP),(0,c.U)(t=>(this.logger.info(t.payload),t.payload))),{dispatch:!1}),this.getRestoreChannelList=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.AV),(0,a.z)(t=>(this.store.dispatch(new g.np({action:"RestoreChannelsList",status:f.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+u.N.CHANNELS_BACKUP_API+"/restore/list").pipe((0,c.U)(t=>(this.logger.info(t),this.store.dispatch(new g.np({action:"RestoreChannelsList",status:f.Bn.COMPLETED})),{type:g.S,payload:t||{all_restore_exists:!1,files:[]}})),(0,h.K)(t=>(this.handleErrorWithAlert("RestoreChannelsList",f.m6.NO_SPINNER,"Restore Channels List Failed",this.CHILD_API_URL+u.N.CHANNELS_BACKUP_API,t),(0,s.of)({type:m.Zn})))))))),this.setRestoreChannelList=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.S),(0,c.U)(t=>(this.logger.info(t.payload),t.payload))),{dispatch:!1}),this.allLightningTransactionsFetch=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.YA),(0,a.z)(t=>(this.store.dispatch(new g.np({action:"FetchLightningTransactions",status:f.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+u.N.PAYMENTS_API+"/alltransactions").pipe((0,c.U)(t=>(this.logger.info(t),this.store.dispatch(new g.np({action:"FetchLightningTransactions",status:f.Bn.COMPLETED})),{type:g.tB,payload:t})),(0,h.K)(t=>(this.handleErrorWithoutAlert("FetchLightningTransactions",f.m6.NO_SPINNER,"Fetching All Lightning Transaction Failed.",t),(0,s.of)({type:m.Zn})))))))),this.store.select("lnd").pipe((0,l.R)(this.unSubs[0])).subscribe(t=>{t.apisCallStatus.FetchInfo.status!==f.Bn.COMPLETED&&t.apisCallStatus.FetchInfo.status!==f.Bn.ERROR||t.apisCallStatus.FetchFees.status!==f.Bn.COMPLETED&&t.apisCallStatus.FetchFees.status!==f.Bn.ERROR||t.apisCallStatus.FetchBalanceBlockchain.status!==f.Bn.COMPLETED&&t.apisCallStatus.FetchBalanceBlockchain.status!==f.Bn.ERROR||t.apisCallStatus.FetchAllChannels.status!==f.Bn.COMPLETED&&t.apisCallStatus.FetchAllChannels.status!==f.Bn.ERROR||t.apisCallStatus.FetchPendingChannels.status!==f.Bn.COMPLETED&&t.apisCallStatus.FetchPendingChannels.status!==f.Bn.ERROR||this.flgInitialized||(this.store.dispatch(new m.Iv(f.m6.INITALIZE_NODE_DATA)),this.flgInitialized=!0)})}initializeRemainingData(t,e){this.sessionService.setItem("lndUnlocked","true");const i={identity_pubkey:t.identity_pubkey,alias:t.alias,testnet:t.testnet,chains:t.chains,uris:t.uris,version:t.version?t.version.split(" ")[0]:""};this.store.dispatch(new m.Fk(f.m6.INITALIZE_NODE_DATA)),this.store.dispatch(new m.e6(i)),this.store.dispatch(new g.od),this.store.dispatch(new g.D8("Blockchain")),this.store.dispatch(new g.jh),this.store.dispatch(new g.Zb),this.store.dispatch(new g.Ao),this.store.dispatch(new g.N9),this.store.dispatch(new g.h7),this.store.dispatch(new g.dw),this.store.dispatch(new g._O({num_max_invoices:10,reversed:!0})),this.store.dispatch(new g.xt({max_payments:10,reversed:!0}));let n=this.location.path();n.includes("/cl/")?n=n.replace("/cl/","/lnd/"):n.includes("/ecl/")&&(n=n.replace("/ecl/","/lnd/")),(n.includes("/unlock")||n.includes("/login")||n.includes("/error")||""===n||"HOME"===e||n.includes("?access-key="))&&(n="/lnd/home"),this.router.navigate([n])}handleErrorWithoutAlert(t,e,i,n){this.logger.error("ERROR IN: "+t+"\n"+JSON.stringify(n)),401===n.status?(this.logger.info("Redirecting to Login"),this.store.dispatch(new m.Ac),this.store.dispatch(new m.RD),this.store.dispatch(new m.Lw("Authentication Failed. Redirecting to Login."))):(this.store.dispatch(new m.Iv(e)),this.store.dispatch(new g.np({action:t,status:f.Bn.ERROR,statusCode:n.status.toString(),message:this.commonService.extractErrorMessage(n,i)})))}handleErrorWithAlert(t,e,i,n,r){if(this.logger.error(r),401===r.status)this.logger.info("Redirecting to Login"),this.store.dispatch(new m.Ac),this.store.dispatch(new m.RD),this.store.dispatch(new m.Lw("Authentication Failed. Redirecting to Login."));else{this.store.dispatch(new m.Iv(e));const s=this.commonService.extractErrorMessage(r);this.store.dispatch(new m.wu({data:{type:"ERROR",alertTitle:i,message:{code:r.status,message:s,URL:n},component:p.H}})),this.store.dispatch(new g.np({action:t,status:f.Bn.ERROR,statusCode:r.status.toString(),message:s,URL:n}))}}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(y.LFG(n.eX),y.LFG(b.eN),y.LFG(v.yh),y.LFG(_.mQ),y.LFG(w.v),y.LFG(x.m),y.LFG(C.uw),y.LFG(A.F0),y.LFG(S.Ye))},t.\u0275prov=y.Yz7({token:t,factory:t.\u0275fac}),t})()},1827:(t,e,i)=>{"use strict";i.d(e,{v:()=>V});var n=i(4608),r=i(5291),s=i(9421),o=i(1572),a=i(3869),l=i(1084),c=i(1403),h=i(3722),u=i(1511),d=i(377),p=i(7439),f=i(7592),m=i(5980),g=i(7038),y=i(7679),b=i(3600),v=i(5001),_=i(6828),w=i(3691),x=i(6880),C=i(2609);const A=["scrollContainer"];function S(t,e){if(1&t&&o._UZ(0,"qrcode",32),2&t){const t=o.oxw();o.Q6J("qrdata",t.invoice.payment_request)("margin",2)("width",t.qrWidth)("errorCorrectionLevel","L")("allowEmptyString",!0)}}function E(t,e){1&t&&(o.TgZ(0,"span",33),o._uU(1,"N/A"),o.qZA())}function k(t,e){if(1&t&&o._UZ(0,"qrcode",32),2&t){const t=o.oxw();o.Q6J("qrdata",t.invoice.payment_request)("margin",2)("width",t.qrWidth)("errorCorrectionLevel","L")("allowEmptyString",!0)}}function T(t,e){1&t&&(o.TgZ(0,"span",34),o._uU(1,"QR Code Not Applicable"),o.qZA())}function M(t,e){1&t&&o._UZ(0,"mat-divider",22),2&t&&o.Q6J("inset",!0)}function L(t,e){1&t&&(o.ynx(0),o._uU(1," (zero amount) "),o.BQk())}const I=function(t){return{"mr-0":t}};function O(t,e){if(1&t&&o._UZ(0,"span",51),2&t){const t=o.oxw(4);o.Q6J("ngClass",o.VKq(1,I,t.screenSize===t.screenSizeEnum.XS))}}function D(t,e){if(1&t&&o._UZ(0,"span",52),2&t){const t=o.oxw(4);o.Q6J("ngClass",o.VKq(1,I,t.screenSize===t.screenSizeEnum.XS))}}function R(t,e){if(1&t&&o._UZ(0,"span",53),2&t){const t=o.oxw(4);o.Q6J("ngClass",o.VKq(1,I,t.screenSize===t.screenSizeEnum.XS))}}function N(t,e){if(1&t&&(o.TgZ(0,"div",40),o.TgZ(1,"div",45),o.TgZ(2,"span",46),o.YNc(3,O,1,3,"span",47),o.YNc(4,D,1,3,"span",48),o.YNc(5,R,1,3,"span",49),o._uU(6),o.qZA(),o.TgZ(7,"span",50),o._uU(8),o.ALo(9,"number"),o.qZA(),o.qZA(),o._UZ(10,"mat-divider",22),o.qZA()),2&t){const t=e.$implicit,i=o.oxw(3);o.xp6(3),o.Q6J("ngIf","SETTLED"===t.state),o.xp6(1),o.Q6J("ngIf","ACCEPTED"===t.state),o.xp6(1),o.Q6J("ngIf","CANCELED"===t.state),o.xp6(1),o.hij(" ",t.chan_id," "),o.xp6(2),o.Oqu(o.xi3(9,6,+t.amt_msat/1e3||0,i.getDecimalFormat(t))),o.xp6(2),o.Q6J("inset",!0)}}function P(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"div",17),o.TgZ(1,"mat-expansion-panel",38),o.NdJ("opened",function(){return o.CHM(t),o.oxw(2).flgOpened=!0})("closed",function(){return o.CHM(t),o.oxw(2).onExpansionClosed()}),o.TgZ(2,"mat-expansion-panel-header"),o.TgZ(3,"mat-panel-title"),o.TgZ(4,"h4",39),o._uU(5,"HTLCs"),o.qZA(),o.qZA(),o.qZA(),o.TgZ(6,"div",40),o.TgZ(7,"div",41),o.TgZ(8,"span",42),o._uU(9,"Channel ID"),o.qZA(),o.TgZ(10,"span",43),o._uU(11,"Amount (Sats)"),o.qZA(),o.qZA(),o._UZ(12,"mat-divider",22),o.YNc(13,N,11,9,"div",44),o.qZA(),o.qZA(),o.qZA()}if(2&t){const t=o.oxw(2);o.xp6(12),o.Q6J("inset",!0),o.xp6(1),o.Q6J("ngForOf",t.invoice.htlcs)}}function F(t,e){1&t&&o._UZ(0,"mat-divider",22),2&t&&o.Q6J("inset",!0)}function Z(t,e){if(1&t&&(o.TgZ(0,"div"),o._UZ(1,"mat-divider",22),o.TgZ(2,"div",17),o.TgZ(3,"div",23),o.TgZ(4,"h4",19),o._uU(5,"R Preimage"),o.qZA(),o.TgZ(6,"span",24),o._uU(7),o.qZA(),o.qZA(),o.qZA(),o._UZ(8,"mat-divider",22),o.TgZ(9,"div",17),o.TgZ(10,"div",35),o.TgZ(11,"h4",19),o._uU(12,"State"),o.qZA(),o.TgZ(13,"span",24),o._uU(14),o.qZA(),o.qZA(),o.TgZ(15,"div",36),o.TgZ(16,"h4",19),o._uU(17,"Expiry"),o.qZA(),o.TgZ(18,"span",24),o._uU(19),o.qZA(),o.qZA(),o.TgZ(20,"div",36),o.TgZ(21,"h4",19),o._uU(22,"Private Routing Hints"),o.qZA(),o.TgZ(23,"span",24),o._uU(24),o.qZA(),o.qZA(),o.qZA(),o._UZ(25,"mat-divider",22),o.YNc(26,P,14,2,"div",37),o.YNc(27,F,1,1,"mat-divider",14),o.qZA()),2&t){const t=o.oxw();o.xp6(1),o.Q6J("inset",!0),o.xp6(6),o.Oqu(t.invoice.r_preimage||"-"),o.xp6(1),o.Q6J("inset",!0),o.xp6(6),o.Oqu(t.invoice.state),o.xp6(5),o.Oqu(t.invoice.expiry),o.xp6(5),o.Oqu(t.invoice.private?"Yes":"No"),o.xp6(1),o.Q6J("inset",!0),o.xp6(1),o.Q6J("ngIf",t.invoice.htlcs&&t.invoice.htlcs.length>0),o.xp6(1),o.Q6J("ngIf",t.invoice.htlcs&&t.invoice.htlcs.length>0)}}function B(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"div",54),o.TgZ(1,"button",55),o.NdJ("click",function(){return o.CHM(t),o.oxw().onScrollDown()}),o.TgZ(2,"mat-icon",56),o._uU(3,"arrow_downward"),o.qZA(),o.qZA(),o.qZA()}}function U(t,e){1&t&&(o.TgZ(0,"p"),o._uU(1,"Show Advanced"),o.qZA())}function q(t,e){1&t&&(o.TgZ(0,"p"),o._uU(1,"Hide Advanced"),o.qZA())}function z(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"button",57),o.NdJ("copied",function(e){return o.CHM(t),o.oxw().onCopyPayment(e)}),o._uU(1),o.qZA()}if(2&t){const t=o.oxw();o.Q6J("payload",t.invoice.payment_request),o.xp6(1),o.Oqu(t.screenSize===t.screenSizeEnum.XS?"Copy Payment":"Copy Payment Request")}}function H(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"button",58),o.NdJ("click",function(){return o.CHM(t),o.oxw().onClose()}),o._uU(1,"OK"),o.qZA()}}const Y=function(t){return{"display-none":t}},G=function(t){return{"xs-scroll-y":t}},j=function(t){return{"h-46":t}};let V=(()=>{class t{constructor(t,e,i,n,o){this.dialogRef=t,this.data=e,this.logger=i,this.commonService=n,this.snackBar=o,this.faReceipt=r.dLy,this.showAdvanced=!1,this.newlyAdded=!1,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=s.cu,this.flgOpened=!1}set container(t){t&&(this.scrollContainer=t)}ngOnInit(){this.invoice=this.data.invoice,this.newlyAdded=this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===s.cu.XS&&(this.qrWidth=220)}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced,this.flgOpened=!1}onScrollDown(){this.scrollContainer.nativeElement.scrollTop=this.scrollContainer.nativeElement.scrollTop+60}onExpansionClosed(){this.flgOpened=!1,this.scrollContainer.nativeElement.scrollTop=0}onCopyPayment(t){this.snackBar.open("Payment request copied."),this.logger.info("Copied Text: "+t)}getDecimalFormat(t){return t.amt_msat<1e3?"1.0-4":"1.0-0"}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(n.so),o.Y36(n.WI),o.Y36(a.mQ),o.Y36(l.v),o.Y36(c.ux))},t.\u0275cmp=o.Xpm({type:t,selectors:[["rtl-invoice-information"]],viewQuery:function(t,e){if(1&t&&o.Gf(A,5),2&t){let t;o.iGM(t=o.CRH())&&(e.container=t.first)}},decls:63,vars:44,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign.gt-sm","space-between stretch"],["fxFlex","35",1,"modal-qr-code-container","padding-gap-large",3,"fxLayoutAlign","ngClass"],[3,"qrdata","margin","width","errorCorrectionLevel","allowEmptyString",4,"ngIf"],["class","font-size-300",4,"ngIf"],["fxLayout","column","fxFlex","65"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large",3,"ngClass"],["fxLayout","column"],["fxFlex","30",1,"modal-qr-code-container","padding-gap",3,"fxLayoutAlign","ngClass"],["class","font-size-120",4,"ngIf"],["class","my-1",3,"inset",4,"ngIf"],[3,"perfectScrollbar","ngClass"],["scrollContainer",""],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[4,"ngIf"],[1,"my-1",3,"inset"],["fxFlex","100"],[1,"overflow-wrap","foreground-secondary-text"],["fxLayout","row","fxLayoutAlign","start end","class","btn-sticky-container padding-gap-x-large",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center","fxFlex","100",1,"padding-gap-x-large","padding-gap-bottom-large"],["mat-stroked-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["hideAdvancedText",""],["autoFocus","","mat-flat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["autoFocus","","mat-flat-button","","color","primary","tabindex","2","type","button",3,"click",4,"ngIf"],[3,"qrdata","margin","width","errorCorrectionLevel","allowEmptyString"],[1,"font-size-300"],[1,"font-size-120"],["fxFlex","34"],["fxFlex","33"],["fxLayout","row",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"flat-expansion-panel",3,"opened","closed"],["fxLayoutAlign","start center","fxFlex","100",1,"font-bold-500"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100"],["fxLayout","row","fxLayoutAlign","start start","fxFlex","100",1,"mt-minus-1"],["fxFlex","60",1,"foreground-secondary-text","font-bold-500"],["fxFlex","40",1,"foreground-secondary-text","font-bold-500"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start start","fxFlex","100"],["fxFlex","60",1,"foreground-secondary-text"],["class","dot green","matTooltip","Settled","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot yellow","matTooltip","Accepted","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red","matTooltip","Cancelled","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["fxFlex","40",1,"foreground-secondary-text"],["matTooltip","Settled","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Accepted","matTooltipPosition","right",1,"dot","yellow",3,"ngClass"],["matTooltip","Cancelled","matTooltipPosition","right",1,"dot","red",3,"ngClass"],["fxLayout","row","fxLayoutAlign","start end",1,"btn-sticky-container","padding-gap-x-large"],["mat-mini-fab","","aria-label","Scroll Down","fxLayoutAlign","center center",3,"click"],["fxLayoutAlign","center center"],["autoFocus","","mat-flat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["autoFocus","","mat-flat-button","","color","primary","tabindex","2","type","button",3,"click"]],template:function(t,e){if(1&t&&(o.TgZ(0,"div",0),o.TgZ(1,"div",1),o.YNc(2,S,1,5,"qrcode",2),o.YNc(3,E,2,0,"span",3),o.qZA(),o.TgZ(4,"div",4),o.TgZ(5,"mat-card-header",5),o.TgZ(6,"div",6),o._UZ(7,"fa-icon",7),o.TgZ(8,"span",8),o._uU(9),o.qZA(),o.qZA(),o.TgZ(10,"button",9),o.NdJ("click",function(){return e.onClose()}),o._uU(11,"X"),o.qZA(),o.qZA(),o.TgZ(12,"mat-card-content",10),o.TgZ(13,"div",11),o.TgZ(14,"div",12),o.YNc(15,k,1,5,"qrcode",2),o.YNc(16,T,2,0,"span",13),o.qZA(),o.YNc(17,M,1,1,"mat-divider",14),o.TgZ(18,"div",15,16),o.TgZ(20,"div",17),o.TgZ(21,"div",18),o.TgZ(22,"h4",19),o._uU(23),o.qZA(),o.TgZ(24,"span",20),o._uU(25),o.ALo(26,"number"),o.YNc(27,L,2,0,"ng-container",21),o.qZA(),o.qZA(),o.TgZ(28,"div",18),o.TgZ(29,"h4",19),o._uU(30,"Memo"),o.qZA(),o.TgZ(31,"span",20),o._uU(32),o.qZA(),o.qZA(),o.qZA(),o._UZ(33,"mat-divider",22),o.TgZ(34,"div",17),o.TgZ(35,"div",18),o.TgZ(36,"h4",19),o._uU(37,"Date Created"),o.qZA(),o.TgZ(38,"span",20),o._uU(39),o.ALo(40,"date"),o.qZA(),o.qZA(),o.TgZ(41,"div",18),o.TgZ(42,"h4",19),o._uU(43,"Date Settled"),o.qZA(),o.TgZ(44,"span",20),o._uU(45),o.ALo(46,"date"),o.qZA(),o.qZA(),o.qZA(),o._UZ(47,"mat-divider",22),o.TgZ(48,"div",17),o.TgZ(49,"div",23),o.TgZ(50,"h4",19),o._uU(51,"Payment Request"),o.qZA(),o.TgZ(52,"span",24),o._uU(53),o.qZA(),o.qZA(),o.qZA(),o.YNc(54,Z,28,9,"div",21),o.qZA(),o.qZA(),o.qZA(),o.YNc(55,B,4,0,"div",25),o.TgZ(56,"div",26),o.TgZ(57,"button",27),o.NdJ("click",function(){return e.onShowAdvanced()}),o.YNc(58,U,2,0,"p",28),o.YNc(59,q,2,0,"ng-template",null,29,o.W1O),o.qZA(),o.YNc(61,z,2,2,"button",30),o.YNc(62,H,2,0,"button",31),o.qZA(),o.qZA(),o.qZA()),2&t){const t=o.MAs(60);o.xp6(1),o.Q6J("fxLayoutAlign",e.invoice.payment_request&&""!==e.invoice.payment_request?"center start":"center center")("ngClass",o.VKq(36,Y,e.screenSize===e.screenSizeEnum.XS||e.screenSize===e.screenSizeEnum.SM)),o.xp6(1),o.Q6J("ngIf",e.invoice.payment_request&&""!==e.invoice.payment_request),o.xp6(1),o.Q6J("ngIf",!e.invoice.payment_request||""===e.invoice.payment_request),o.xp6(4),o.Q6J("icon",e.faReceipt),o.xp6(2),o.Oqu(e.screenSize===e.screenSizeEnum.XS?e.newlyAdded?"Created":"Invoice":e.newlyAdded?"Invoice Created":"Invoice Information"),o.xp6(3),o.Q6J("ngClass",o.VKq(38,G,e.screenSize===e.screenSizeEnum.XS)),o.xp6(2),o.Q6J("fxLayoutAlign",e.invoice.payment_request&&""!==e.invoice.payment_request?"center start":"center center")("ngClass",o.VKq(40,Y,e.screenSize!==e.screenSizeEnum.XS&&e.screenSize!==e.screenSizeEnum.SM)),o.xp6(1),o.Q6J("ngIf",e.invoice.payment_request&&""!==e.invoice.payment_request),o.xp6(1),o.Q6J("ngIf",!e.invoice.payment_request||""===e.invoice.payment_request),o.xp6(1),o.Q6J("ngIf",e.screenSize===e.screenSizeEnum.XS||e.screenSize===e.screenSizeEnum.SM),o.xp6(1),o.Q6J("ngClass",o.VKq(42,j,e.invoice.htlcs&&e.invoice.htlcs.length>0&&e.showAdvanced)),o.xp6(5),o.Oqu(e.screenSize===e.screenSizeEnum.XS?"Amount":"Amount Requested"),o.xp6(2),o.hij("",o.lcZ(26,28,e.invoice.value||0)," Sats"),o.xp6(2),o.Q6J("ngIf",!e.invoice.value),o.xp6(5),o.Oqu(e.invoice.memo),o.xp6(1),o.Q6J("inset",!0),o.xp6(6),o.Oqu(o.xi3(40,30,1e3*e.invoice.creation_date,"dd/MMM/YYYY HH:mm")),o.xp6(6),o.Oqu(0!=+e.invoice.settle_date?o.xi3(46,33,1e3*+e.invoice.settle_date,"dd/MMM/YYYY HH:mm"):"-"),o.xp6(2),o.Q6J("inset",!0),o.xp6(6),o.Oqu(e.invoice.payment_request||"N/A"),o.xp6(1),o.Q6J("ngIf",e.showAdvanced),o.xp6(1),o.Q6J("ngIf",e.invoice.htlcs&&e.invoice.htlcs.length>0&&e.showAdvanced&&e.flgOpened),o.xp6(3),o.Q6J("ngIf",!e.showAdvanced)("ngIfElse",t),o.xp6(3),o.Q6J("ngIf",e.invoice.payment_request&&""!==e.invoice.payment_request),o.xp6(1),o.Q6J("ngIf",!e.invoice.payment_request||""===e.invoice.payment_request)}},directives:[h.xw,h.Wh,h.yH,u.mk,d.oO,u.O5,p.dk,f.BN,m.lW,p.dn,g.$V,y.d,b.V,v.ib,v.yz,v.yK,u.sg,_.gM,w.Hw,x.h,C.y],pipes:[u.JJ,u.uU],styles:[""]}),t})()},4833:(t,e,i)=>{"use strict";i.d(e,{_:()=>r,J:()=>s});var n=i(709);const r=[(0,n.X$)("opacityAnimation",[(0,n.eR)(":enter",[(0,n.oB)({opacity:0}),(0,n.jt)("1000ms ease-in",(0,n.oB)({opacity:1}))]),(0,n.eR)(":leave",[(0,n.jt)("0ms",(0,n.oB)({opacity:0}))])])],s=[(0,n.X$)("fadeIn",[(0,n.eR)("void => *",[]),(0,n.eR)("* => void",[]),(0,n.eR)("* => *",[(0,n.jt)(800,(0,n.F4)([(0,n.oB)({opacity:0,transform:"translateY(100%)"}),(0,n.oB)({opacity:1,transform:"translateY(0%)"})]))])])]},2865:(t,e,i)=>{"use strict";i.d(e,{g:()=>r});var n=i(709);const r=(0,n.X$)("routeAnimation",[(0,n.eR)("* => *",[(0,n.IO)(":enter, :leave",(0,n.oB)({position:"fixed",width:"100%"}),{optional:!0}),(0,n.ru)([(0,n.IO)(":enter",[(0,n.oB)({transform:"translateX(100%)"}),(0,n.jt)("1000ms ease-in-out",(0,n.oB)({transform:"translateX(0%)"}))],{optional:!0}),(0,n.IO)(":leave",[(0,n.oB)({transform:"translateX(0%)"}),(0,n.jt)("1000ms ease-in-out",(0,n.oB)({transform:"translateX(-100%)"}))],{optional:!0})])])])},194:(t,e,i)=>{"use strict";i.d(e,{l:()=>r});var n=i(709);const r=[(0,n.X$)("sliderAnimation",[(0,n.SB)("*",(0,n.oB)({transform:"translateX(0)"})),(0,n.eR)("void => backward",[(0,n.oB)({transform:"translateX(-100%"}),(0,n.jt)("800ms")]),(0,n.eR)("backward => void",[(0,n.jt)("0ms",(0,n.oB)({transform:"translateX(100%)"}))]),(0,n.eR)("void => forward",[(0,n.oB)({transform:"translateX(100%"}),(0,n.jt)("800ms")]),(0,n.eR)("forward => void",[(0,n.jt)("0ms",(0,n.oB)({transform:"translateX(-100%)"}))])])]},2427:(t,e,i)=>{"use strict";i.d(e,{H:()=>p});var n=i(4608),r=i(1572),s=i(3869),o=i(3722),a=i(7439),l=i(5980),c=i(1511),h=i(7679),u=i(6880);function d(t,e){if(1&t&&(r.TgZ(0,"p",14),r._uU(1),r.qZA()),2&t){const t=r.oxw();r.xp6(1),r.Oqu(t.data.titleMessage)}}let p=(()=>{class t{constructor(t,e,i){this.dialogRef=t,this.data=e,this.logger=i,this.errorMessage=""}ngOnInit(){this.errorMessage="object"==typeof this.data.message.message?JSON.stringify(this.data.message.message):this.data.message.message,this.data.message||this.data.titleMessage||this.data.message||(this.data.titleMessage="Please Check Server Connection"),this.logger.info(this.data.message)}onClose(){this.dialogRef.close(!1)}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(n.so),r.Y36(n.WI),r.Y36(s.mQ))},t.\u0275cmp=r.Xpm({type:t,selectors:[["rtl-error-message"]],decls:29,vars:6,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large","error-alert-block"],["fxLayout","column"],["fxLayoutAlign","start center","class","pb-1",4,"ngIf"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"w-100","my-1"],[1,"word-break"],["fxLayout","row","fxLayoutAlign","end center"],["tabindex","1","autoFocus","","mat-flat-button","","color","primary","type","submit","default","",3,"mat-dialog-close"],["fxLayoutAlign","start center",1,"pb-1"]],template:function(t,e){1&t&&(r.TgZ(0,"div",0),r.TgZ(1,"div",1),r.TgZ(2,"mat-card-header",2),r.TgZ(3,"div",3),r.TgZ(4,"span",4),r._uU(5),r.qZA(),r.qZA(),r.TgZ(6,"button",5),r.NdJ("click",function(){return e.onClose()}),r._uU(7,"X"),r.qZA(),r.qZA(),r.TgZ(8,"mat-card-content",6),r.TgZ(9,"div",7),r.YNc(10,d,2,1,"p",8),r.TgZ(11,"h4",9),r._uU(12,"Error Code"),r.qZA(),r.TgZ(13,"span"),r._uU(14),r.qZA(),r._UZ(15,"mat-divider",10),r.TgZ(16,"h4",9),r._uU(17,"Error Message"),r.qZA(),r.TgZ(18,"span",11),r._uU(19),r.qZA(),r._UZ(20,"mat-divider",10),r.TgZ(21,"h4",9),r._uU(22,"API URL"),r.qZA(),r.TgZ(23,"span",11),r._uU(24),r.qZA(),r._UZ(25,"mat-divider",10),r.TgZ(26,"div",12),r.TgZ(27,"button",13),r._uU(28,"OK"),r.qZA(),r.qZA(),r.qZA(),r.qZA(),r.qZA(),r.qZA()),2&t&&(r.xp6(5),r.Oqu(e.data.alertTitle||"ERROR"),r.xp6(5),r.Q6J("ngIf",e.data.titleMessage),r.xp6(4),r.Oqu(e.data.message.code),r.xp6(5),r.Oqu(e.errorMessage),r.xp6(5),r.Oqu(e.data.message.URL),r.xp6(3),r.Q6J("mat-dialog-close",!1))},directives:[o.xw,o.yH,a.dk,o.Wh,l.lW,a.dn,c.O5,h.d,u.h,n.ZT],styles:[".display-block[_ngcontent-%COMP%]{display:block}"]}),t})()},8016:(t,e,i)=>{"use strict";i.d(e,{w:()=>h});var n=i(5291),r=i(1572),s=i(6853),o=i(3722),a=i(7592),l=i(7439),c=i(5980);let h=(()=>{class t{constructor(t){this.router=t,this.faTimes=n.NBC}goToHelp(){this.router.navigate(["/help"])}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(s.F0))},t.\u0275cmp=r.Xpm({type:t,selectors:[["rtl-not-found"]],decls:13,vars:1,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column",1,"padding-gap-large"],["fxLayout","column","fxLayoutAlign","start start"],[1,"box-text"],["fxLayout","row","fxLayoutAlign","center","fxFlex","80"],["mat-flat-button","","color","primary","type","button",1,"mt-2",3,"click"]],template:function(t,e){1&t&&(r.TgZ(0,"div",0),r._UZ(1,"fa-icon",1),r.TgZ(2,"span",2),r._uU(3,"Page Not Found"),r.qZA(),r.qZA(),r.TgZ(4,"div",3),r.TgZ(5,"mat-card"),r.TgZ(6,"mat-card-content",4),r.TgZ(7,"div",5),r.TgZ(8,"div",6),r._uU(9,"This page does not exist!"),r.qZA(),r.TgZ(10,"span",7),r.TgZ(11,"button",8),r.NdJ("click",function(){return e.goToHelp()}),r._uU(12,"Go To Help"),r.qZA(),r.qZA(),r.qZA(),r.qZA(),r.qZA(),r.qZA()),2&t&&(r.xp6(1),r.Q6J("icon",e.faTimes))},directives:[o.xw,o.Wh,a.BN,l.a8,l.dn,o.yH,c.lW],encapsulation:2}),t})()},5028:(t,e,i)=>{"use strict";i.d(e,{a:()=>Qt});var n=i(6073),r=i(9666),s=i(9568),o=i(4608),a=i(5291),l=i(4833),c=i(9421),h=i(1572),u=i(964),d=i(2969),p=i(1511),f=i(3869),m=i(6853),g=i(1084),y=i(3722),b=i(7439),v=i(5980),_=i(7753),w=i(5001),x=i(377),C=i(6828),A=i(7679);function S(t,e){1&t&&h.GkF(0)}function E(t,e){1&t&&h.GkF(0)}const k=function(t){return{"h-5":t}};function T(t,e){if(1&t&&(h.TgZ(0,"mat-expansion-panel",3),h.TgZ(1,"mat-expansion-panel-header"),h.TgZ(2,"mat-panel-title"),h.TgZ(3,"span",4),h._uU(4),h.ALo(5,"number"),h.qZA(),h.qZA(),h.qZA(),h.YNc(6,E,1,0,"ng-container",0),h.qZA()),2&t){const t=h.oxw(),e=h.MAs(4);h.Q6J("expanded",t.panelExpanded)("ngClass",h.VKq(7,k,!t.flgShowPanel)),h.xp6(4),h.AsE("Quote for ",t.termCaption," amount (",h.lcZ(5,5,t.quote.amount)," Sats)"),h.xp6(2),h.Q6J("ngTemplateOutlet",e)}}function M(t,e){if(1&t&&(h.TgZ(0,"div",17),h.TgZ(1,"h4",8),h._uU(2,"Prepay Amount (Sats)"),h.qZA(),h.TgZ(3,"span",9),h._uU(4),h.ALo(5,"number"),h.qZA(),h.qZA()),2&t){const t=h.oxw(2);h.xp6(4),h.Oqu(h.lcZ(5,1,null==t.quote?null:t.quote.prepay_amt_sat))}}function L(t,e){1&t&&h._UZ(0,"mat-divider",12)}function I(t,e){if(1&t&&(h.TgZ(0,"div",6),h.TgZ(1,"div",18),h.TgZ(2,"h4",8),h._uU(3,"Swap Server Node Pubkey"),h.qZA(),h.TgZ(4,"span",9),h._uU(5),h.qZA(),h.qZA(),h.qZA()),2&t){const t=h.oxw(2);h.xp6(5),h.Oqu(null==t.quote?null:t.quote.swap_payment_dest)}}function O(t,e){if(1&t&&(h.TgZ(0,"div",5),h.TgZ(1,"div",6),h.TgZ(2,"div",7),h.TgZ(3,"h4",8),h._uU(4,"Swap Fee (Sats)"),h.qZA(),h.TgZ(5,"span",9),h._uU(6),h.ALo(7,"number"),h.qZA(),h.qZA(),h.TgZ(8,"div",10),h.TgZ(9,"h4",8),h._uU(10),h.qZA(),h.TgZ(11,"span",9),h._uU(12),h.ALo(13,"number"),h.qZA(),h.qZA(),h.YNc(14,M,6,3,"div",11),h.qZA(),h._UZ(15,"mat-divider",12),h.TgZ(16,"div",6),h.TgZ(17,"div",13),h.TgZ(18,"h4",8),h._uU(19,"Max Off-chain Swap Routing Fee (Sats)"),h.qZA(),h.TgZ(20,"span",9),h._uU(21),h.ALo(22,"number"),h.qZA(),h.qZA(),h.TgZ(23,"div",14),h.TgZ(24,"h4",8),h._uU(25,"Max Off-chain Prepay Routing Fee (Sats)"),h.qZA(),h.TgZ(26,"span",9),h._uU(27,"36"),h.qZA(),h.qZA(),h.qZA(),h.YNc(28,L,1,0,"mat-divider",15),h.YNc(29,I,6,1,"div",16),h.qZA()),2&t){const t=h.oxw();h.xp6(2),h.Q6J("fxFlex",null!=t.quote&&t.quote.prepay_amt_sat?"30":"50"),h.xp6(4),h.Oqu(h.lcZ(7,9,null==t.quote?null:t.quote.swap_fee_sat)),h.xp6(2),h.Q6J("fxFlex",null!=t.quote&&t.quote.prepay_amt_sat?"30":"50"),h.xp6(2),h.Oqu(null!=t.quote&&t.quote.htlc_sweep_fee_sat?"HTLC Sweep Fee (Sats)":null!=t.quote&&t.quote.htlc_publish_fee_sat?"HTLC Publish Fee (Sats)":""),h.xp6(2),h.Oqu(h.lcZ(13,11,null!=t.quote&&t.quote.htlc_sweep_fee_sat?t.quote.htlc_sweep_fee_sat:null!=t.quote&&t.quote.htlc_publish_fee_sat?t.quote.htlc_publish_fee_sat:0)),h.xp6(2),h.Q6J("ngIf",null==t.quote?null:t.quote.prepay_amt_sat),h.xp6(7),h.Oqu(h.lcZ(22,13,(null==t.quote?null:t.quote.amount)*((null!=t.quote&&t.quote.off_chain_swap_routing_fee_percentage?null==t.quote?null:t.quote.off_chain_swap_routing_fee_percentage:2)/100))),h.xp6(7),h.Q6J("ngIf",""!==(null==t.quote?null:t.quote.swap_payment_dest)),h.xp6(1),h.Q6J("ngIf",""!==(null==t.quote?null:t.quote.swap_payment_dest))}}let D=(()=>{class t{constructor(){this.quote={},this.termCaption="",this.showPanel=!0,this.panelExpanded=!1,this.flgShowPanel=!1}ngOnInit(){setTimeout(()=>{this.flgShowPanel=!0},1200)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=h.Xpm({type:t,selectors:[["rtl-loop-quote"]],inputs:{quote:"quote",termCaption:"termCaption",showPanel:"showPanel",panelExpanded:"panelExpanded"},decls:5,vars:1,consts:[[4,"ngTemplateOutlet"],["informationBlock",""],["quoteDetailsBlock",""],["fxFlex","100",1,"flat-expansion-panel","mb-1",3,"expanded","ngClass"],["fxLayoutAlign","start center","fxFlex","100"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row"],["matTooltip","Estimated fee charged by the loop server for the swap",3,"fxFlex"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],["matTooltip","An estimate of the on-chain fee that needs to be paid to sweep the HTLC",3,"fxFlex"],["fxFlex","40","matTooltip","The part of the swap fee that is requested as a prepayment",4,"ngIf"],[1,"w-100","my-1"],["fxFlex","50","matTooltip","Maximum off-chain fee that may be paid for routing the payment amount to the server"],["fxFlex","50","matTooltip","Maximum off-chain fee that may be paid for routing the pre-payment amount to the server"],["class","w-100 my-1",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxFlex","40","matTooltip","The part of the swap fee that is requested as a prepayment"],["fxFlex","100","matTooltip","The node pubkey, where the swap payments will be sent"]],template:function(t,e){if(1&t&&(h.YNc(0,S,1,0,"ng-container",0),h.YNc(1,T,7,9,"ng-template",null,1,h.W1O),h.YNc(3,O,30,15,"ng-template",null,2,h.W1O)),2&t){const t=h.MAs(2),i=h.MAs(4);h.Q6J("ngTemplateOutlet",e.showPanel?t:i)}},directives:[p.tP,w.ib,y.yH,p.mk,x.oO,w.yz,w.yK,y.Wh,y.xw,C.gM,p.O5,A.d],pipes:[p.JJ],styles:[""]}),t})();var R=i(6283),N=i(6756),P=i(6880),F=i(7521),Z=i(3691),B=i(4810),U=i(5994);function q(t,e){1&t&&h.GkF(0)}function z(t,e){if(1&t&&(h.TgZ(0,"div",3),h.TgZ(1,"span",4),h._uU(2),h.qZA(),h.qZA()),2&t){const t=h.oxw();h.xp6(2),h.Oqu(null!=t.loopStatus&&t.loopStatus.error?null==t.loopStatus?null:t.loopStatus.error:"Unknown Error.")}}function H(t,e){if(1&t&&(h.TgZ(0,"div",3),h.TgZ(1,"div",5),h.TgZ(2,"div",6),h.TgZ(3,"h4",7),h._uU(4,"ID"),h.qZA(),h.TgZ(5,"span",4),h._uU(6),h.qZA(),h.qZA(),h.qZA(),h._UZ(7,"mat-divider",8),h.TgZ(8,"div",5),h.TgZ(9,"div",6),h.TgZ(10,"h4",7),h._uU(11,"HTLC Address"),h.qZA(),h.TgZ(12,"span",4),h._uU(13),h.qZA(),h.qZA(),h.qZA(),h.qZA()),2&t){const t=h.oxw();h.xp6(6),h.Oqu(null==t.loopStatus?null:t.loopStatus.id_bytes),h.xp6(7),h.Oqu(null==t.loopStatus?null:t.loopStatus.htlc_address)}}let Y=(()=>{class t{constructor(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=h.Xpm({type:t,selectors:[["rtl-loop-status"]],inputs:{loopStatus:"loopStatus"},decls:5,vars:1,consts:[[4,"ngTemplateOutlet"],["loopFailedBlock",""],["loopSuccessfulBlock",""],["fxLayout","column"],[1,"foreground-secondary-text"],["fxLayout","row"],["fxFlex","100"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"w-100","my-1"]],template:function(t,e){if(1&t&&(h.YNc(0,q,1,0,"ng-container",0),h.YNc(1,z,3,1,"ng-template",null,1,h.W1O),h.YNc(3,H,14,2,"ng-template",null,2,h.W1O)),2&t){const t=h.MAs(2),i=h.MAs(4);h.Q6J("ngTemplateOutlet",null!=e.loopStatus&&e.loopStatus.error?t:i)}},directives:[p.tP,y.xw,y.yH,y.Wh,A.d],styles:[""]}),t})();var G=i(194);function j(t,e){1&t&&h.GkF(0)}const V=function(t,e){return{"small-svg":t,"large-svg":e}};function Q(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",6),h.NdJ("swipe",function(e){return h.CHM(t),h.oxw().onSwipe(e)}),h.O4$(),h.TgZ(1,"svg",7),h.TgZ(2,"desc"),h._uU(3,"Created with Sketch."),h.qZA(),h.TgZ(4,"g",8),h.TgZ(5,"g",9),h.TgZ(6,"g",10),h.TgZ(7,"g",11),h._UZ(8,"circle",12),h._UZ(9,"path",13),h.qZA(),h.TgZ(10,"g",14),h._UZ(11,"ellipse",15),h._UZ(12,"ellipse",16),h._UZ(13,"rect",17),h._UZ(14,"rect",18),h._UZ(15,"rect",19),h._UZ(16,"rect",20),h._UZ(17,"rect",21),h._UZ(18,"rect",22),h._UZ(19,"rect",23),h._UZ(20,"rect",24),h._UZ(21,"rect",25),h._UZ(22,"rect",26),h._UZ(23,"rect",27),h._UZ(24,"rect",28),h._UZ(25,"rect",29),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.kcU(),h.TgZ(26,"div",30),h.TgZ(27,"mat-card-title"),h._uU(28,"Loop Out explained."),h.qZA(),h.qZA(),h.TgZ(29,"div",31),h.TgZ(30,"mat-card-subtitle",32),h._uU(31," Lightning Loop is a non custodial service offered by Lightning Labs to bridge on-chain and off-chain Bitcoin using Submarine swaps. "),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=h.oxw();h.Q6J("@sliderAnimation",t.animationDirection),h.xp6(1),h.Q6J("ngClass",h.WLB(2,V,t.screenSize===t.screenSizeEnum.XS,t.screenSize!==t.screenSizeEnum.XS))}}function W(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",6),h.NdJ("swipe",function(e){return h.CHM(t),h.oxw().onSwipe(e)}),h.O4$(),h.TgZ(1,"svg",33),h.TgZ(2,"desc"),h._uU(3,"Created with Sketch."),h.qZA(),h.TgZ(4,"defs"),h.TgZ(5,"linearGradient",34),h._UZ(6,"stop",35),h._UZ(7,"stop",36),h._UZ(8,"stop",37),h.qZA(),h.qZA(),h.TgZ(9,"g",8),h.TgZ(10,"g",38),h.TgZ(11,"g",39),h.TgZ(12,"g",40),h.TgZ(13,"g",41),h.TgZ(14,"g",42),h._UZ(15,"rect",43),h._UZ(16,"rect",44),h._UZ(17,"rect",45),h._UZ(18,"circle",46),h._UZ(19,"rect",47),h._UZ(20,"rect",48),h._UZ(21,"circle",49),h._UZ(22,"rect",50),h._UZ(23,"rect",51),h._UZ(24,"rect",52),h._UZ(25,"rect",53),h._UZ(26,"circle",54),h._UZ(27,"circle",55),h.qZA(),h.TgZ(28,"g",56),h._UZ(29,"path",57),h._UZ(30,"rect",58),h._UZ(31,"polygon",59),h._UZ(32,"circle",60),h._UZ(33,"path",61),h._UZ(34,"rect",62),h._UZ(35,"rect",63),h._UZ(36,"rect",64),h._UZ(37,"rect",65),h._UZ(38,"rect",66),h._UZ(39,"rect",67),h._UZ(40,"rect",68),h._UZ(41,"path",69),h._UZ(42,"path",70),h.qZA(),h._UZ(43,"path",71),h.qZA(),h.qZA(),h._UZ(44,"circle",72),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.kcU(),h.TgZ(45,"div",30),h.TgZ(46,"mat-card-title"),h._uU(47,"Step 1: Deciding to Loop Out"),h.qZA(),h.qZA(),h.TgZ(48,"div",31),h.TgZ(49,"mat-card-subtitle",32),h._uU(50," You have a channel with a local balance amount and you want to gain inbound liquidity. "),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=h.oxw();h.Q6J("@sliderAnimation",t.animationDirection),h.xp6(1),h.Q6J("ngClass",h.WLB(2,V,t.screenSize===t.screenSizeEnum.XS,t.screenSize!==t.screenSizeEnum.XS))}}function J(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",6),h.NdJ("swipe",function(e){return h.CHM(t),h.oxw().onSwipe(e)}),h.O4$(),h.TgZ(1,"svg",73),h.TgZ(2,"desc"),h._uU(3,"Created with Sketch."),h.qZA(),h.TgZ(4,"defs"),h.TgZ(5,"linearGradient",74),h._UZ(6,"stop",35),h._UZ(7,"stop",36),h._UZ(8,"stop",37),h.qZA(),h.qZA(),h.TgZ(9,"g",8),h.TgZ(10,"g",75),h.TgZ(11,"g",76),h._UZ(12,"circle",77),h._UZ(13,"path",78),h.TgZ(14,"g",79),h._UZ(15,"polygon",80),h._UZ(16,"polygon",81),h._UZ(17,"path",82),h.qZA(),h.TgZ(18,"g",83),h._UZ(19,"polygon",84),h._UZ(20,"path",85),h._UZ(21,"rect",86),h._UZ(22,"path",87),h._UZ(23,"rect",88),h._UZ(24,"rect",89),h._UZ(25,"rect",90),h._UZ(26,"rect",91),h._UZ(27,"circle",92),h._UZ(28,"path",93),h.TgZ(29,"g",94),h.TgZ(30,"g",95),h._UZ(31,"g",96),h.qZA(),h._UZ(32,"g",97),h.qZA(),h._UZ(33,"path",98),h.qZA(),h.TgZ(34,"g",99),h.TgZ(35,"g",41),h.TgZ(36,"g",42),h._UZ(37,"rect",43),h._UZ(38,"rect",44),h._UZ(39,"rect",45),h._UZ(40,"circle",46),h._UZ(41,"rect",47),h._UZ(42,"rect",48),h._UZ(43,"circle",49),h._UZ(44,"rect",50),h._UZ(45,"rect",51),h._UZ(46,"rect",52),h._UZ(47,"rect",53),h._UZ(48,"circle",100),h._UZ(49,"circle",54),h._UZ(50,"circle",55),h._UZ(51,"circle",101),h.qZA(),h.TgZ(52,"g",56),h._UZ(53,"path",57),h._UZ(54,"rect",102),h._UZ(55,"polygon",103),h._UZ(56,"circle",104),h._UZ(57,"path",61),h._UZ(58,"rect",105),h._UZ(59,"rect",106),h._UZ(60,"rect",107),h._UZ(61,"rect",108),h._UZ(62,"rect",109),h._UZ(63,"rect",110),h._UZ(64,"rect",68),h._UZ(65,"path",69),h._UZ(66,"path",70),h.qZA(),h._UZ(67,"path",111),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.kcU(),h.TgZ(68,"div",30),h.TgZ(69,"mat-card-title"),h._uU(70,"Step 2: Send lightning payment"),h.qZA(),h.qZA(),h.TgZ(71,"div",31),h.TgZ(72,"mat-card-subtitle",32),h._uU(73," Your node pays a lightning invoice for the amount requested via the loop service. This moves the local balance, for the amount paid, to the remote side of the channel. "),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=h.oxw();h.Q6J("@sliderAnimation",t.animationDirection),h.xp6(1),h.Q6J("ngClass",h.WLB(2,V,t.screenSize===t.screenSizeEnum.XS,t.screenSize!==t.screenSizeEnum.XS))}}function X(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",6),h.NdJ("swipe",function(e){return h.CHM(t),h.oxw().onSwipe(e)}),h.O4$(),h.TgZ(1,"svg",112),h.TgZ(2,"desc"),h._uU(3,"Created with Sketch."),h.qZA(),h.TgZ(4,"g",8),h.TgZ(5,"g",113),h.TgZ(6,"g",114),h.TgZ(7,"g",115),h.TgZ(8,"g",116),h._UZ(9,"circle",12),h._UZ(10,"path",117),h.qZA(),h.TgZ(11,"g",14),h._UZ(12,"ellipse",118),h._UZ(13,"ellipse",16),h._UZ(14,"rect",17),h._UZ(15,"rect",18),h._UZ(16,"rect",19),h._UZ(17,"rect",20),h._UZ(18,"rect",21),h._UZ(19,"rect",22),h._UZ(20,"rect",23),h._UZ(21,"rect",24),h._UZ(22,"rect",25),h._UZ(23,"rect",26),h._UZ(24,"rect",27),h._UZ(25,"rect",28),h._UZ(26,"rect",29),h.qZA(),h.qZA(),h.TgZ(27,"g",119),h._UZ(28,"polygon",80),h._UZ(29,"polygon",120),h._UZ(30,"path",82),h.qZA(),h.TgZ(31,"g",121),h._UZ(32,"polygon",84),h._UZ(33,"path",85),h._UZ(34,"rect",86),h._UZ(35,"path",87),h._UZ(36,"rect",88),h._UZ(37,"rect",89),h._UZ(38,"rect",90),h._UZ(39,"rect",91),h._UZ(40,"circle",122),h._UZ(41,"path",93),h.TgZ(42,"g",94),h.TgZ(43,"g",95),h._UZ(44,"g",96),h.qZA(),h._UZ(45,"g",97),h.qZA(),h._UZ(46,"path",123),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.kcU(),h.TgZ(47,"div",30),h.TgZ(48,"mat-card-title"),h._uU(49,"Step 3: Receive funds back"),h.qZA(),h.qZA(),h.TgZ(50,"div",31),h.TgZ(51,"mat-card-subtitle",32),h._uU(52," Loop service then sends you a payment on-chain for the amount same as the lightning payment minus the fee. "),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=h.oxw();h.Q6J("@sliderAnimation",t.animationDirection),h.xp6(1),h.Q6J("ngClass",h.WLB(2,V,t.screenSize===t.screenSizeEnum.XS,t.screenSize!==t.screenSizeEnum.XS))}}function K(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",6),h.NdJ("swipe",function(e){return h.CHM(t),h.oxw().onSwipe(e)}),h.O4$(),h.TgZ(1,"svg",124),h.TgZ(2,"desc"),h._uU(3,"Created with Sketch."),h.qZA(),h.TgZ(4,"defs"),h.TgZ(5,"linearGradient",34),h._UZ(6,"stop",35),h._UZ(7,"stop",36),h._UZ(8,"stop",37),h.qZA(),h.qZA(),h.TgZ(9,"g",8),h.TgZ(10,"g",125),h.TgZ(11,"g",126),h.TgZ(12,"g",42),h._UZ(13,"rect",127),h._UZ(14,"rect",128),h._UZ(15,"rect",129),h._UZ(16,"circle",130),h._UZ(17,"rect",131),h._UZ(18,"rect",132),h._UZ(19,"circle",133),h._UZ(20,"rect",134),h._UZ(21,"rect",135),h._UZ(22,"rect",136),h._UZ(23,"rect",137),h._UZ(24,"rect",138),h._UZ(25,"circle",139),h._UZ(26,"circle",140),h._UZ(27,"circle",141),h.qZA(),h.TgZ(28,"g",142),h.TgZ(29,"g",143),h.TgZ(30,"g",144),h._UZ(31,"path",145),h._UZ(32,"rect",146),h._UZ(33,"polygon",147),h.TgZ(34,"g",148),h._UZ(35,"path",149),h.qZA(),h._UZ(36,"rect",150),h._UZ(37,"rect",151),h._UZ(38,"rect",152),h._UZ(39,"rect",153),h._UZ(40,"rect",154),h._UZ(41,"rect",155),h._UZ(42,"rect",156),h._UZ(43,"path",157),h._UZ(44,"path",158),h.qZA(),h.TgZ(45,"g",159),h._UZ(46,"path",160),h._UZ(47,"path",161),h._UZ(48,"path",162),h._UZ(49,"path",163),h._UZ(50,"path",164),h._UZ(51,"path",165),h._UZ(52,"path",166),h._UZ(53,"path",167),h._UZ(54,"path",168),h._UZ(55,"path",169),h._UZ(56,"path",170),h._UZ(57,"circle",171),h._UZ(58,"circle",172),h.qZA(),h._UZ(59,"path",173),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.kcU(),h.TgZ(60,"div",30),h.TgZ(61,"mat-card-title"),h._uU(62,"Done!"),h.qZA(),h.qZA(),h.TgZ(63,"div",31),h.TgZ(64,"mat-card-subtitle",32),h._uU(65," Final settlement occurs when your node sweeps the on-chain payment and the loop server settles the lightning invoice. You receive the payment on-chain in your wallet and also move local balance to the remote side of the channel, gaining inbound capacity. "),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=h.oxw();h.Q6J("@sliderAnimation",t.animationDirection),h.xp6(1),h.Q6J("ngClass",h.WLB(2,V,t.screenSize===t.screenSizeEnum.XS,t.screenSize!==t.screenSizeEnum.XS))}}let $=(()=>{class t{constructor(t){this.commonService=t,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new h.vpe,this.screenSize="",this.screenSizeEnum=c.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(t){2===t.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===t.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(g.v))},t.\u0275cmp=h.Xpm({type:t,selectors:[["rtl-loop-out-info-graphics"]],inputs:{animationDirection:"animationDirection",stepNumber:"stepNumber"},outputs:{stepNumberChange:"stepNumberChange"},decls:11,vars:1,consts:[[4,"ngTemplateOutlet"],["loopStepBlock1",""],["loopStepBlock2",""],["loopStepBlock3",""],["loopStepBlock4",""],["loopStepBlock5",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",3,"swipe"],["fxFlex","30","viewBox","0 0 108 118","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["id","Loopv0.2","stroke","none","stroke-width","1","fill","none","fill-rule","evenodd"],["id","LoopOut_Step01","transform","translate(-594.000000, -215.000000)","fill-rule","nonzero"],["id","Loop_Step01","transform","translate(594.000000, 215.000000)"],["id","Group-16","transform","translate(23.000000, 0.000000)"],["id","Oval","cx","42.4877419","cy","42.4877419","r","42.4877419",1,"fill-color-2"],["d","M56.0827415,28.5000036 C60.4468211,28.5000036 63.9999285,25.1343958 63.9999285,21.0000215 C63.9999285,16.8656472 60.4468211,13.5000393 56.0827415,13.5000393 C52.9843297,13.5000393 50.5608889,15.4359631 48.9999642,17.1843872 C47.4390396,15.4359631 45.0155987,13.5000393 41.9171869,13.5000393 C37.5531074,13.5000393 34,16.8656472 34,21.0000215 C34,25.1343958 37.5531074,28.5000036 41.9171869,28.5000036 C45.0155987,28.5000036 47.4390396,26.5640798 48.9999642,24.8156557 C50.5608889,26.5640798 52.9843297,28.5000036 56.0827415,28.5000036 Z M41.9171869,24.0000143 C40.0328073,24.0000143 38.4999893,22.6546959 38.4999893,21.0000286 C38.4999893,19.3453471 40.0328073,18.0000286 41.9171869,18.0000286 C43.707771,18.0000286 45.3577763,19.6921938 46.3234264,21.0000286 C45.3671604,22.2937501 43.7031019,24.0000143 41.9171869,24.0000143 Z M56.0827415,24.0000143 C54.2921574,24.0000143 52.6421522,22.3078492 51.676502,21.0000286 C52.6327681,19.7062929 54.2968266,18.0000286 56.0827415,18.0000286 C57.9671212,18.0000286 59.4999392,19.3453471 59.4999392,21.0000286 C59.4999392,22.6546959 57.9671212,24.0000143 56.0827415,24.0000143 Z","id","i",1,"fill-color-primary"],["id","Group-21","transform","translate(0.000000, 36.000000)"],["id","Oval","cx","48.644129","cy","75.1589677","rx","48.644129","ry","6.61766437",1,"fill-color-7"],["id","Oval","opacity","0.1","cx","48.644129","cy","75.1589677","rx","40.8402581","ry","5.55600756",1,"fill-color-27"],["id","Rectangle","x","25.2325161","y","6.09470968","width","54.1068387","height","62.9512258",1,"fill-color-26"],["id","Rectangle","x","20","y","1.24344979e-14","width","65.0322581","height","22.3710968",1,"fill-color-19"],["id","Rectangle","x","20","y","26","width","65.0322581","height","22.3710968",1,"fill-color-19"],["id","Rectangle","x","19.7698065","y","52.9179355","width","65.0322581","height","22.3710968",1,"fill-color-19"],["id","Rectangle","x","67.6335484","y","3.75354839","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","73.6165161","y","3.75354839","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","79.5994839","y","3.75354839","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","67.6335484","y","30.0265806","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","73.6165161","y","30.0265806","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","79.5994839","y","30.0265806","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","67.6335484","y","56.2996129","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","73.6165161","y","56.2996129","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","79.5994839","y","56.2996129","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["fxFlex","20","fxLayoutAlign","center end"],["fxFlex","40"],[1,"font-size-120"],["fxFlex","30","viewBox","0 0 205 121","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["x1","50%","y1","100%","x2","50%","y2","0%","id","linearGradient-1"],["stop-color","#808080","stop-opacity","0.25","offset","0%"],["stop-color","#808080","stop-opacity","0.12","offset","54%"],["stop-color","#808080","stop-opacity","0.1","offset","100%"],["id","LoopOut_Step02","transform","translate(-540.000000, -210.000000)","fill-rule","nonzero"],["id","Loop_Step02","transform","translate(540.000000, 210.000000)"],["id","Illustration_Step02"],["id","Group-31"],["id","Group-2"],["id","Rectangle","x","0","y","0","width","90.1490688","height","100.616012",1,"fill-color-10"],["id","Rectangle","x","1.48932403","y","67.1775068","width","87.1682273","height","31.2472904",1,"fill-color-1"],["id","Rectangle","x","8.64422093","y","74.5890324","width","51.2","height","16.0118784",1,"fill-color-primary-lighter"],["id","Oval","cx","76.317438","cy","82.4918815","r","8.15070413",1,"fill-color-primary-darker"],["id","Rectangle","x","1.48932403","y","34.712875","width","87.1682273","height","31.2472904",1,"fill-color-1"],["id","Rectangle","x","8.64422093","y","42.1244006","width","51.2","height","16.0118784",1,"fill-color-primary-lighter"],["id","Oval","cx","76.317438","cy","50.0294431","r","8.15070413",1,"fill-color-primary-darker"],["id","Rectangle","x","1.48932403","y","2.2482432","width","87.1682273","height","31.2472904",1,"fill-color-1"],["id","Rectangle","x","8.64422093","y","74.5890324","width","24","height","16.0118784",1,"fill-color-primary"],["id","Rectangle","x","8.64422093","y","42.1244006","width","36.8","height","16.0118784",1,"fill-color-primary"],["id","Rectangle","x","8.64422093","y","9.66196224","width","51.2","height","16.0118784",1,"fill-color-primary"],["id","Oval","fill","url(#linearGradient-1)","cx","76.317438","cy","50.2465905","r","8.78679245"],["id","Oval","fill","url(#linearGradient-1)","cx","76.317438","cy","82.7090289","r","8.78679245"],["id","Group","transform","translate(60.115627, 35.744427)"],["d","M133.318807,1.04548939 L82.5936439,1.04548939 L82.5936439,0 L59.5928852,0 L59.5928852,1.04548939 L8.65861943,1.04548939 C7.74861523,1.04548887 6.87588228,1.4069864 6.23241214,2.05045654 C5.58894199,2.69392669 5.22744498,3.56665964 5.22744498,4.47666384 L5.22744498,73.9350108 C5.22744498,74.8450173 5.5889387,75.7177532 6.23240879,76.3612266 C6.87587888,77.0047 7.74861298,77.3662028 8.65861943,77.3662028 L133.318807,77.3662028 C135.213795,77.3662028 136.749981,75.8300048 136.749981,73.9350167 L136.749981,4.47666384 C136.749981,3.56665964 136.388484,2.69392669 135.745014,2.05045654 C135.101544,1.4069864 134.228811,1.04548887 133.318807,1.04548939 Z","id","Path",1,"fill-color-20"],["id","Rectangle","x","9.82759671","y","7.10932665","width","122.322231","height","69.0022838",1,"fill-color-25"],["id","Path","opacity","0.257273065","points","97.1677755 76.1116475 9.82763376 76.1116475 9.82763376 7.10937149",1,"fill-color-24"],["id","Oval","cx","28.9673627","cy","59.1901502","r","11.7579927",1,"fill-color-25"],["d","M31.5848237,68.0274261 C25.669241,68.0274261 20.3361447,64.4639649 18.0723494,58.9986791 C15.808554,53.5333932 17.0598755,47.2425772 21.2428244,43.0596288 C25.4257733,38.8766804 31.7165895,37.6253598 37.1818751,39.8891559 C42.6471607,42.1529519 46.2106203,47.4860487 46.2106203,53.4016314 C46.2014756,61.4754447 39.6586369,68.0182825 31.5848237,68.0274261 L31.5848237,68.0274261 Z M31.5848237,38.967022 C23.612809,38.967022 17.1502143,45.4296168 17.1502143,53.4016314 C17.1502143,61.3736461 23.612809,67.8362409 31.5848237,67.8362409 C39.5568383,67.8362409 46.0194331,61.3736461 46.0194331,53.4016314 C46.010427,45.4333502 39.5531049,38.9760281 31.5848237,38.967022 L31.5848237,38.967022 Z","id","Shape",1,"fill-color-primary"],["id","Rectangle","x","99.4252759","y","44.3228077","width","11.4262324","height","2.38757043",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","25.733862","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","28.9741379","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","32.2144137","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","35.4546875","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","38.6949634","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","119.89017","y","8.50924347","width","4.7751428","height","4.7751428",1,"fill-color-6"],["d","M126.882344,15.5014148 L121.083948,15.5014148 L121.083948,9.70301894 L126.882344,9.70301894 L126.882344,15.5014148 Z M121.336061,15.2493191 L126.63024,15.2493191 L126.63024,9.95513218 L121.336061,9.95513218 L121.336061,15.2493191 Z","id","Shape",1,"fill-color-19"],["d","M140.184525,74.8570201 L128.246669,74.8570201 L128.246669,73.9969059 C128.246671,73.9516751 128.228704,73.9082962 128.196721,73.876313 C128.164738,73.8443298 128.12136,73.826364 128.076129,73.826364 L123.98315,73.826364 C123.937919,73.826364 123.89454,73.8443305 123.862558,73.8763135 C123.830575,73.9082966 123.812608,73.9516752 123.81261,73.9969059 L123.81261,74.8570201 L121.254497,74.8570201 L121.254497,73.9969059 C121.254499,73.9516752 121.236532,73.9082966 121.204549,73.8763135 C121.172566,73.8443305 121.129188,73.826364 121.083957,73.826364 L116.990978,73.826364 C116.945747,73.826364 116.902368,73.8443297 116.870385,73.8763129 C116.838402,73.908296 116.820435,73.9516749 116.820436,73.9969059 L116.820436,74.8570201 L114.262326,74.8570201 L114.262326,73.9969059 C114.262328,73.9516749 114.24436,73.908296 114.212377,73.8763129 C114.180394,73.8443297 114.137015,73.826364 114.091784,73.826364 L109.998805,73.826364 C109.953574,73.826364 109.910196,73.8443305 109.878213,73.8763135 C109.84623,73.9082966 109.828263,73.9516752 109.828265,73.9969059 L109.828265,74.8570201 L107.270153,74.8570201 L107.270153,73.9969059 C107.270154,73.9516752 107.252187,73.9082966 107.220204,73.8763135 C107.188222,73.8443305 107.144843,73.826364 107.099613,73.826364 L103.00663,73.826364 C102.961399,73.826364 102.91802,73.8443298 102.886037,73.876313 C102.854054,73.9082962 102.836088,73.9516751 102.83609,73.9969059 L102.83609,74.8570201 L100.277981,74.8570201 L100.277981,73.9969059 C100.277983,73.9516749 100.260016,73.908296 100.228032,73.8763129 C100.196049,73.8443297 100.15267,73.826364 100.107439,73.826364 L96.0144621,73.826364 C95.9692311,73.826364 95.9258522,73.8443297 95.8938691,73.8763129 C95.861886,73.908296 95.8439187,73.9516749 95.8439202,73.9969059 L95.8439202,74.8570201 L93.285808,74.8570201 L93.285808,73.9969059 C93.2858095,73.9516752 93.2678425,73.9082966 93.2358598,73.8763135 C93.2038771,73.8443305 93.1604987,73.826364 93.1152681,73.826364 L89.0222888,73.826364 C88.9770581,73.826364 88.9336797,73.8443305 88.901697,73.8763135 C88.8697143,73.9082966 88.8517473,73.9516752 88.8517489,73.9969059 L88.8517489,74.8570201 L86.2936405,74.8570201 L86.2936405,73.9969059 C86.293642,73.9516752 86.2756751,73.9082966 86.2436923,73.8763135 C86.2117096,73.8443305 86.1683312,73.826364 86.1231006,73.826364 L54.061428,73.826364 C54.0161974,73.826364 53.972819,73.8443305 53.9408363,73.8763135 C53.9088536,73.9082966 53.8908866,73.9516752 53.8908881,73.9969059 L53.8908881,74.8570201 L51.3327759,74.8570201 L51.3327759,73.9969059 C51.3327774,73.9516749 51.3148102,73.908296 51.282827,73.8763129 C51.2508439,73.8443297 51.207465,73.826364 51.162234,73.826364 L47.0692664,73.826364 C47.0240354,73.826364 46.9806565,73.8443297 46.9486734,73.8763129 C46.9166903,73.908296 46.898723,73.9516749 46.8987246,73.9969059 L46.8987246,74.8570201 L44.3406025,74.8570201 L44.3406025,73.9969059 C44.3406046,73.9516751 44.3226378,73.9082962 44.290655,73.876313 C44.2586721,73.8443298 44.2152934,73.826364 44.1700626,73.826364 L40.0770834,73.826364 C40.0318527,73.826364 39.9884743,73.8443305 39.9564916,73.8763135 C39.9245089,73.9082966 39.9065419,73.9516752 39.9065435,73.9969059 L39.9065435,74.8570201 L37.3484312,74.8570201 L37.3484312,73.9969059 C37.3484327,73.9516752 37.3304657,73.9082966 37.298483,73.8763135 C37.2665003,73.8443305 37.2231219,73.826364 37.1778913,73.826364 L33.084912,73.826364 C33.039681,73.826364 32.9963021,73.8443297 32.964319,73.8763129 C32.9323358,73.908296 32.9143686,73.9516749 32.9143701,73.9969059 L32.9143701,74.8570201 L30.3562598,74.8570201 L30.3562598,73.9969059 C30.3562614,73.9516749 30.3382941,73.908296 30.306311,73.8763129 C30.2743278,73.8443297 30.2309489,73.826364 30.1857179,73.826364 L26.0927387,73.826364 C26.047508,73.826364 26.0041296,73.8443305 25.9721469,73.8763135 C25.9401642,73.9082966 25.9221972,73.9516752 25.9221988,73.9969059 L25.9221988,74.8570201 L23.3640826,74.8570201 L23.3640826,73.9969059 C23.3640841,73.9516752 23.3461171,73.9082966 23.3141344,73.8763135 C23.2821517,73.8443305 23.2387733,73.826364 23.1935427,73.826364 L19.1005673,73.826364 C19.0553365,73.826364 19.0119578,73.8443298 18.979975,73.876313 C18.9479921,73.9082962 18.9300253,73.9516751 18.9300274,73.9969059 L18.9300274,74.8570201 L16.3719151,74.8570201 L16.3719151,73.9969059 C16.3719167,73.9516749 16.3539494,73.908296 16.3219663,73.8763129 C16.2899831,73.8443297 16.2466042,73.826364 16.2013733,73.826364 L12.1083959,73.826364 C12.0631649,73.826364 12.0197861,73.8443297 11.9878029,73.8763129 C11.9558198,73.908296 11.9378525,73.9516749 11.9378541,73.9969059 L11.9378541,74.8570201 L4.09297732,74.8570201 C1.83248849,74.8570223 0,76.6895106 0,78.9499994 L0,80.8007483 C0,83.061233 1.83249262,84.8937159 4.09297732,84.8937159 L140.184525,84.8937159 C142.44501,84.8937159 144.277504,83.0612333 144.277504,80.8007483 L144.277504,78.9499994 C144.277504,76.6895102 142.445014,74.8570223 140.184525,74.8570201 Z","id","Path",1,"fill-color-20"],["d","M88.0406297,103.870828 C88.3071704,103.870828 88.5610365,103.731189 88.7006752,103.490029 L94.2857286,93.8431185 C94.5808417,93.3385473 94.2159092,92.7007212 93.6288439,92.7007212 L89.9668136,92.7007212 L91.318669,88.5817505 C91.445602,88.0993988 91.0806695,87.6234 90.5824512,87.6234 L86.0128621,87.6234 C85.632063,87.6234 85.3083776,87.9058383 85.2576168,88.2834455 L84.2421525,95.8994274 C84.1818469,96.3563987 84.5372656,96.7625782 84.9973979,96.7625782 L88.7641417,96.7625782 L87.30122,102.934697 C87.1869926,103.417048 87.555086,103.870828 88.0406297,103.870828 Z","id","b","transform","translate(89.312846, 95.747114) rotate(14.000000) translate(-89.312846, -95.747114) ",1,"fill-color-21"],["id","Oval","cx","74.1507041","cy","17.5648113","r","8.15070413",1,"fill-color-primary"],["fxFlex","30","viewBox","0 0 373 121","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["x1","50%","y1","100%","x2","50%","y2","8.86848147e-15%","id","linearGradient-1"],["id","LoopOut_Step03","transform","translate(-460.000000, -210.000000)"],["id","Loop_Step03","transform","translate(460.000000, 210.000000)"],["id","Oval","fill-rule","nonzero","cx","330.487742","cy","57.4877419","r","42.4877419",1,"fill-color-2"],["d","M345.082742,43.5000036 C349.446821,43.5000036 352.999928,40.1343958 352.999928,36.0000215 C352.999928,31.8656472 349.446821,28.5000393 345.082742,28.5000393 C341.98433,28.5000393 339.560889,30.4359631 337.999964,32.1843872 C336.43904,30.4359631 334.015599,28.5000393 330.917187,28.5000393 C326.553107,28.5000393 323,31.8656472 323,36.0000215 C323,40.1343958 326.553107,43.5000036 330.917187,43.5000036 C334.015599,43.5000036 336.43904,41.5640798 337.999964,39.8156557 C339.560889,41.5640798 341.98433,43.5000036 345.082742,43.5000036 Z M330.917187,39.0000143 C329.032807,39.0000143 327.499989,37.6546959 327.499989,36.0000286 C327.499989,34.3453471 329.032807,33.0000286 330.917187,33.0000286 C332.707771,33.0000286 334.357776,34.6921938 335.323426,36.0000286 C334.36716,37.2937501 332.703102,39.0000143 330.917187,39.0000143 Z M345.082742,39.0000143 C343.292157,39.0000143 341.642152,37.3078492 340.676502,36.0000286 C341.632768,34.7062929 343.296827,33.0000286 345.082742,33.0000286 C346.967121,33.0000286 348.499939,34.3453471 348.499939,36.0000286 C348.499939,37.6546959 346.967121,39.0000143 345.082742,39.0000143 Z","id","i","fill-rule","nonzero",1,"fill-color-primary"],["id","Group-44","transform","translate(113.000000, 79.000000)","fill-rule","nonzero"],["id","Path","transform","translate(118.400000, 7.089946) scale(-1, 1) translate(-118.400000, -7.089946) ","points","234.731878 6.60770626 8.52651283e-14 6.60770626 8.52651283e-14 7.57218541 236.8 7.57218541",1,"fill-color-19"],["id","Path","transform","translate(118.400000, 8.960000) scale(-1, 1) translate(-118.400000, -8.960000) ","points","113.024 5.376 123.776 5.376 123.776 12.544 113.024 12.544",1,"fill-color-22"],["d","M120.192,8.96 L105.856,8.96 L105.856,1.86517468e-14 L120.192,1.86517468e-14 L120.192,8.96 Z M106.479304,8.57043501 L119.568696,8.57043501 L119.568696,0.389564988 L106.479304,0.389564988 L106.479304,8.57043501 Z","id","Shape","transform","translate(113.024000, 4.480000) scale(-1, 1) translate(-113.024000, -4.480000) ",1,"fill-color-19"],["id","Group-43","transform","translate(265.000000, 50.000000)"],["id","Path","fill-rule","nonzero","points","-9.84073267e-14 7.36243469 92.3919279 7.36243469 92.3919279 70.3073253 -1.13686838e-13 70.3073253",1,"fill-color-23"],["d","M97.5448374,1.70530257e-13 L6.62592538,1.70530257e-13 C6.01615907,0.000922175294 5.52114394,0.495001701 5.52114394,1.104768 L5.52114394,62.57664 C5.52114394,62.8696481 5.63752746,63.150658 5.84471672,63.3578447 C6.05190598,63.5650315 6.3329173,63.681408 6.62592538,63.681408 L97.5448374,63.681408 C97.8378436,63.681408 98.1188523,63.5650282 98.3260389,63.3578415 C98.5332256,63.1506549 98.6496054,62.8696462 98.6496054,62.57664 L98.6496054,1.104768 C98.6496054,0.495005713 98.1545997,0.000926622272 97.5448374,1.70530257e-13 L97.5448374,1.70530257e-13 Z M97.9130952,62.57664 C97.9130952,62.6744022 97.8747043,62.7682496 97.8055756,62.8373783 C97.736447,62.9065069 97.6425996,62.9448978 97.5448374,62.9448978 L6.62592538,62.9448978 C6.52816341,62.9448978 6.4343164,62.906506 6.3651879,62.8373775 C6.29605941,62.768249 6.25766754,62.674402 6.25766754,62.57664 L6.25766754,1.104768 C6.25766754,0.901512883 6.42267026,0.736512 6.62592538,0.736512 L97.5448374,0.736512 C97.7480931,0.736512 97.9130952,0.901512271 97.9130952,1.104768 L97.9130952,62.57664 Z","id","Shape","fill-rule","nonzero",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","10.3066764","y","43.4358624","width","41.5947948","height","4.78524211","rx","0.5376",1,"fill-color-19"],["d","M89.8141359,39.3872559 L76.5649839,39.3872559 C76.2719769,39.3872559 75.9909677,39.5036372 75.7837792,39.7108232 C75.5765907,39.9180091 75.4602025,40.1990169 75.4602025,40.4920239 L75.4602025,50.7978159 C75.4602025,51.090824 75.576586,51.3718339 75.7837753,51.5790207 C75.9909645,51.7862074 76.2719759,51.9025839 76.5649839,51.9025839 L89.8141359,51.9025839 C90.107143,51.9025839 90.3881533,51.7862079 90.5953406,51.5790206 C90.8025279,51.3718333 90.9189039,51.090823 90.9189039,50.7978159 L90.9189039,40.4920239 C90.9189039,40.199018 90.8025232,39.9180097 90.5953367,39.7108232 C90.3881502,39.5036367 90.1071419,39.3872559 89.8141359,39.3872559 Z M90.1823938,50.7978159 C90.182087,51.0010717 90.0173917,51.165767 89.8141359,51.1660719 L76.5649839,51.1660719 C76.3617256,51.165767 76.1970256,51.0010743 76.19671,50.7978159 L76.19671,40.4920239 C76.1964064,40.3942603 76.2351088,40.3004129 76.30424,40.2312847 C76.3733712,40.1621565 76.4672203,40.1234582 76.5649839,40.1237661 L89.8141359,40.1237661 C89.9118981,40.1234582 90.0057456,40.162157 90.0748742,40.2312857 C90.1440029,40.3004143 90.1827017,40.3942617 90.1823938,40.4920239 L90.1823938,50.7978159 Z","id","Shape","fill-rule","nonzero",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","78.6733409","y","41.7652758","width","9.03249715","height","1.86879168","rx","0.5376",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","78.6733409","y","44.7100416","width","9.03249715","height","1.86879168","rx","0.5376",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","78.6733409","y","47.6548047","width","9.03249715","height","1.86879168","rx","0.5376",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","11.4109632","y","4.41773875","width","19.1409684","height","8.09810266","rx","0.5376",1,"fill-color-19"],["id","Oval","fill-rule","nonzero","cx","47.2929593","cy","42.2294561","r","12.9683743",1,"fill-color-3"],["d","M50.1798649,51.9764517 C43.6553251,51.9764517 37.7732336,48.0461636 35.2764005,42.0182748 C32.7795674,35.990386 34.1597014,29.0519859 38.773248,24.4384399 C43.3867946,19.824894 50.3251948,18.4447609 56.3530833,20.9415948 C62.3809718,23.4384287 66.3112582,29.3205207 66.3112582,35.8450605 C66.3011721,44.7500015 59.0848059,51.9663668 50.1798649,51.9764517 L50.1798649,51.9764517 Z M50.1798649,19.9245354 C41.3872016,19.9245354 34.2593397,27.0523972 34.2593397,35.8450605 C34.2593397,44.6377237 41.3872016,51.7655856 50.1798649,51.7655856 C58.9725281,51.7655856 66.10039,44.6377237 66.10039,35.8450605 C66.0904567,27.056515 58.9684103,19.9344686 50.1798649,19.9245354 L50.1798649,19.9245354 Z","id","Shape","fill-rule","nonzero",1,"fill-color-primary"],["id","Group-23","transform","translate(5.000000, 0.001193)"],["id","Group-22"],["id","Group","transform","translate(0.378134, 0.000000)"],["id","Group-24","transform","translate(29.048000, 19.712000)"],["d","M46.60483,51.432122 C46.8713708,51.432122 47.1252368,51.2924832 47.2648756,51.0513229 L52.8499289,41.4044125 C53.145042,40.8998413 52.7801095,40.2620153 52.1930443,40.2620153 L48.5310139,40.2620153 L49.8828693,36.1430446 C50.0098023,35.6606929 49.6448699,35.184694 49.1466515,35.184694 L44.5770624,35.184694 C44.1962633,35.184694 43.8725779,35.4671324 43.8218171,35.8447396 L42.8063528,43.4607214 C42.7460473,43.9176927 43.1014659,44.3238722 43.5615982,44.3238722 L47.3283421,44.3238722 L45.8654203,50.4959909 C45.751193,50.9783426 46.1192864,51.432122 46.60483,51.432122 Z","id","b","fill-rule","nonzero","transform","translate(47.877046, 43.308408) rotate(14.000000) translate(-47.877046, -43.308408) ",1,"fill-color-12"],["id","Group-34","fill-rule","nonzero"],["id","Oval","fill","url(#linearGradient-1)","cx","76.317438","cy","17.5648113","r","8.78679245"],["id","Oval","cx","76.317438","cy","17.5648113","r","8.15070413",1,"fill-color-primary"],["id","Rectangle","x","9.82759671","y","7.10932665","width","122.322231","height","69.0022838",1,"fill-color-8"],["id","Path","opacity","0.222721354","points","97.1677755 76.1116475 9.82763376 76.1116475 9.82763376 7.10937149",1,"fill-color-18"],["id","Oval","cx","28.9673627","cy","59.1901502","r","11.7579927",1,"fill-color-8"],["id","Rectangle","x","99.4252759","y","44.3228077","width","11.4262324","height","2.38757043",1,"fill-color-14"],["id","Rectangle","x","85.6114731","y","25.733862","width","39.05384","height","1.0232453",1,"fill-color-14"],["id","Rectangle","x","85.6114731","y","28.9741379","width","39.05384","height","1.0232453",1,"fill-color-14"],["id","Rectangle","x","85.6114731","y","32.2144137","width","39.05384","height","1.0232453",1,"fill-color-14"],["id","Rectangle","x","85.6114731","y","35.4546875","width","39.05384","height","1.0232453",1,"fill-color-14"],["id","Rectangle","x","85.6114731","y","38.6949634","width","39.05384","height","1.0232453",1,"fill-color-14"],["d","M88.0406297,103.870828 C88.3071704,103.870828 88.5610365,103.731189 88.7006752,103.490029 L94.2857286,93.8431185 C94.5808417,93.3385473 94.2159092,92.7007212 93.6288439,92.7007212 L89.9668136,92.7007212 L91.318669,88.5817505 C91.445602,88.0993988 91.0806695,87.6234 90.5824512,87.6234 L86.0128621,87.6234 C85.632063,87.6234 85.3083776,87.9058383 85.2576168,88.2834455 L84.2421525,95.8994274 C84.1818469,96.3563987 84.5372656,96.7625782 84.9973979,96.7625782 L88.7641417,96.7625782 L87.30122,102.934697 C87.1869926,103.417048 87.555086,103.870828 88.0406297,103.870828 Z","id","b","transform","translate(89.312846, 95.747114) rotate(14.000000) translate(-89.312846, -95.747114) ",1,"fill-color-12"],["fxFlex","30","viewBox","0 0 278 118","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["id","LoopOut_Step04","transform","translate(-503.000000, -212.000000)"],["id","Loop_Step04","transform","translate(503.000000, 212.000000)"],["id","Loop","fill-rule","nonzero"],["id","Group-16","transform","translate(24.000000, 0.000000)"],["d","M55.0827415,28.5000036 C59.4468211,28.5000036 62.9999285,25.1343958 62.9999285,21.0000215 C62.9999285,16.8656472 59.4468211,13.5000393 55.0827415,13.5000393 C51.9843297,13.5000393 49.5608889,15.4359631 47.9999642,17.1843872 C46.4390396,15.4359631 44.0155987,13.5000393 40.9171869,13.5000393 C36.5531074,13.5000393 33,16.8656472 33,21.0000215 C33,25.1343958 36.5531074,28.5000036 40.9171869,28.5000036 C44.0155987,28.5000036 46.4390396,26.5640798 47.9999642,24.8156557 C49.5608889,26.5640798 51.9843297,28.5000036 55.0827415,28.5000036 Z M40.9171869,24.0000143 C39.0328073,24.0000143 37.4999893,22.6546959 37.4999893,21.0000286 C37.4999893,19.3453471 39.0328073,18.0000286 40.9171869,18.0000286 C42.707771,18.0000286 44.3577763,19.6921938 45.3234264,21.0000286 C44.3671604,22.2937501 42.7031019,24.0000143 40.9171869,24.0000143 Z M55.0827415,24.0000143 C53.2921574,24.0000143 51.6421522,22.3078492 50.676502,21.0000286 C51.6327681,19.7062929 53.2968266,18.0000286 55.0827415,18.0000286 C56.9671212,18.0000286 58.4999392,19.3453471 58.4999392,21.0000286 C58.4999392,22.6546959 56.9671212,24.0000143 55.0827415,24.0000143 Z","id","i",1,"fill-color-primary"],["id","Oval","cx","48.644129","cy","75.1589677","rx","48.644129","ry","6.61766437",1,"fill-color-2"],["id","Group-44","transform","translate(27.000000, 69.000000)","fill-rule","nonzero"],["id","Path","transform","translate(118.400000, 8.960000) scale(-1, 1) translate(-118.400000, -8.960000) ","points","113.024 5.376 123.776 5.376 123.776 12.544 113.024 12.544",1,"fill-color-23"],["id","Group-43","transform","translate(179.000000, 40.000000)"],["id","Oval","fill-rule","nonzero","cx","47.2929593","cy","42.2294561","r","12.9683743",1,"fill-color-4"],["d","M46.519593,50.6740439 L46.519593,48.5460252 C46.9395628,48.5560039 47.349554,48.5560039 47.739557,48.5560039 L47.739557,50.6740439 L49.2794877,50.6740439 L49.2794877,48.5160274 C51.8593644,48.3760168 53.5840235,47.7260428 53.8140277,45.2961554 C53.9939838,43.3462645 53.0739982,42.476265 51.6140824,42.1263004 C52.4940295,41.6763328 53.054041,40.8763386 52.92404,39.5463928 C52.7540005,37.7264719 51.2593765,37.1164744 49.2794567,36.9465279 L49.2794567,34.4266159 L47.739526,34.4266159 L47.739526,36.8765226 C47.3395134,36.8765226 46.9295222,36.8865012 46.519562,36.8965108 L46.519562,34.4266159 L44.9796003,34.4266159 L44.9796003,36.9465279 C44.413422,36.9636341 43.7539962,36.9552669 41.8897293,36.9465279 L41.8897293,38.5864308 C43.1055717,38.564924 43.7434908,38.4867995 43.8896683,39.2663716 L43.8896683,46.1661239 C43.7968547,46.7846435 43.3018283,46.6955796 42.1997174,46.6760872 L41.8897293,48.5060178 C44.6975648,48.5060178 44.9796313,48.5160274 44.9796313,48.5160274 L44.9796313,50.6740439 L46.519593,50.6740439 Z M46.5495908,41.7662953 L46.5495908,38.6964125 C47.4195593,38.6964125 50.1394466,38.4264629 50.1394466,40.2363742 C50.1394466,41.9663016 47.4195903,41.7662953 46.5495908,41.7662953 Z M46.5495908,46.6860969 L46.5495908,43.306257 C47.5895368,43.306257 50.7741427,43.0162572 50.7741427,44.9962079 C50.7741427,46.9060914 47.5895368,46.6860969 46.5495908,46.6860969 Z","id","B","fill-rule","nonzero","transform","translate(47.863077, 42.550330) rotate(14.000000) translate(-47.863077, -42.550330) ",1,"fill-color-29"],["fxFlex","30","viewBox","0 0 200 120","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["id","LoopOut_Step05","transform","translate(-542.000000, -210.000000)","fill-rule","nonzero"],["id","Loop_Step05","transform","translate(542.000000, 210.000000)"],["id","Rectangle","x","0","y","0","width","81.4032636","height","90.8547569",1,"fill-color-11"],["id","Rectangle","x","1.34483737","y","60.660286","width","78.7116083","height","28.2158368",1,"fill-color-9"],["id","Rectangle","x","7.80560248","y","67.352783","width","46.2328358","height","14.4584872",1,"fill-color-primary-lighter"],["id","Oval","cx","68.9135074","cy","74.4889377","r","7.35996418",1,"fill-color-primary-darker"],["id","Rectangle","x","1.34483737","y","31.345208","width","78.7116083","height","28.2158368",1,"fill-color-9"],["id","Rectangle","x","7.80560248","y","38.0377051","width","46.2328358","height","14.4584872",1,"fill-color-primary-lighter"],["id","Oval","cx","68.9135074","cy","45.1758404","r","7.35996418",1,"fill-color-primary-darker"],["id","Rectangle","x","1.34483737","y","2.03013005","width","78.7116083","height","28.2158368",1,"fill-color-9"],["id","Rectangle","x","7.80560248","y","8.72460769","width","46.2328358","height","14.4584872",1,"fill-color-primary-lighter"],["id","Rectangle","x","7.80560248","y","67.352783","width","23.1164179","height","14.4584872",1,"fill-color-primary"],["id","Rectangle","x","7.80560248","y","38.0377051","width","33.2298507","height","14.4584872",1,"fill-color-primary"],["id","Rectangle","x","7.80560248","y","8.72460769","width","23.1164179","height","14.4584872",1,"fill-color-primary"],["id","Oval","cx","68.9135074","cy","15.8607624","r","7.93434243",1,"fill-color-31"],["id","Oval","fill","url(#linearGradient-1)","cx","68.9135074","cy","45.3719212","r","7.93434243"],["id","Oval","fill","url(#linearGradient-1)","cx","68.9135074","cy","74.6850186","r","7.93434243"],["id","Group-16","transform","translate(55.804478, 34.674627)"],["id","Group-29","transform","translate(0.310627, 0.751284)"],["id","Group"],["d","M132.777455,1.04124409 L82.2582659,1.04124409 L82.2582659,0 L59.3509036,0 L59.3509036,1.04124409 L8.62346042,1.04124409 C7.71715136,1.04124358 6.84796221,1.40127322 6.20710493,2.0421305 C5.56624765,2.68298778 5.20621852,3.55217693 5.20621852,4.45848599 L5.20621852,73.6347918 C5.20621852,74.5411031 5.56624437,75.4102953 6.2071016,76.0511558 C6.84795882,76.6920163 7.71714912,77.0520512 8.62346042,77.0520512 L132.777455,77.0520512 C134.664749,77.0520512 136.194697,75.522091 136.194697,73.6347977 L136.194697,4.45848599 C136.194697,3.55217693 135.834668,2.68298778 135.193811,2.0421305 C134.552953,1.40127322 133.683764,1.04124358 132.777455,1.04124409 Z","id","Path",1,"fill-color-20"],["id","Rectangle","x","9.78769098","y","7.08045867","width","121.825532","height","68.7220946",1,"fill-color-7"],["id","Path","opacity","0.306775484","points","96.7732181 75.8025901 9.78772787 75.8025901 9.78772787 7.08050333",1,"fill-color-27"],["id","Group-24","transform","translate(16.889738, 38.617955)",1,"fill-color-primary-darker"],["d","M14.5668332,29.1332406 C8.67527117,29.1332406 3.36383033,25.5842492 1.10922733,20.1411555 C-1.14537566,14.6980619 0.100864684,8.43279022 4.26682842,4.26682704 C8.43279215,0.100863866 14.698064,-1.14537564 20.1411573,1.10922807 C25.5842507,3.36383179 29.1332406,8.67527311 29.1332406,14.5668351 C29.124133,22.607864 22.6078621,29.1241341 14.5668332,29.1332406 L14.5668332,29.1332406 Z M14.5668332,0.190838576 C6.62718953,0.190838576 0.190836635,6.62719147 0.190836635,14.5668351 C0.190836635,22.5064788 6.62718953,28.9428317 14.5668332,28.9428317 C22.5064768,28.9428317 28.9428297,22.5064788 28.9428297,14.5668351 C28.9338602,6.63090975 22.5027586,0.199808125 14.5668332,0.190838576 L14.5668332,0.190838576 Z","id","Shape"],["id","Rectangle","x","99.0215517","y","44.1428314","width","11.3798353","height","2.37787551",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","25.6293676","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","28.8564861","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","32.0836045","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","35.310721","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","38.5378394","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","119.403347","y","8.47469101","width","4.75575295","height","4.75575295",1,"fill-color-5"],["d","M126.367128,15.4384701 L120.592277,15.4384701 L120.592277,9.66361906 L126.367128,9.66361906 L126.367128,15.4384701 Z M120.843366,15.1873981 L126.116048,15.1873981 L126.116048,9.91470857 L120.843366,9.91470857 L120.843366,15.1873981 Z","id","Shape",1,"fill-color-19"],["d","M139.615294,74.5530572 L127.725913,74.5530572 L127.725913,73.6964356 C127.725915,73.6513884 127.708021,73.6081857 127.676168,73.5763323 C127.644315,73.544479 127.601113,73.5265862 127.556065,73.5265862 L123.479706,73.5265862 C123.434659,73.5265862 123.391457,73.5444797 123.359604,73.5763329 C123.327751,73.6081861 123.309857,73.6513886 123.309859,73.6964356 L123.309859,74.5530572 L120.762134,74.5530572 L120.762134,73.6964356 C120.762135,73.6513886 120.744241,73.6081861 120.712388,73.5763329 C120.680536,73.5444797 120.637333,73.5265862 120.592286,73.5265862 L116.515927,73.5265862 C116.47088,73.5265862 116.427677,73.5444789 116.395824,73.5763322 C116.36397,73.6081855 116.346076,73.6513882 116.346078,73.6964356 L116.346078,74.5530572 L113.798355,74.5530572 L113.798355,73.6964356 C113.798356,73.6513882 113.780462,73.6081855 113.748609,73.5763322 C113.716755,73.5444789 113.673553,73.5265862 113.628505,73.5265862 L109.552146,73.5265862 C109.507099,73.5265862 109.463897,73.5444797 109.432044,73.5763329 C109.400191,73.6081861 109.382297,73.6513886 109.382299,73.6964356 L109.382299,74.5530572 L106.834574,74.5530572 L106.834574,73.6964356 C106.834575,73.6513886 106.816681,73.6081861 106.784828,73.5763329 C106.752975,73.5444797 106.709773,73.5265862 106.664726,73.5265862 L102.588363,73.5265862 C102.543316,73.5265862 102.500113,73.544479 102.46826,73.5763323 C102.436407,73.6081857 102.418513,73.6513884 102.418516,73.6964356 L102.418516,74.5530572 L99.8707946,74.5530572 L99.8707946,73.6964356 C99.8707961,73.6513882 99.8529018,73.6081855 99.8210486,73.5763322 C99.7891953,73.5444789 99.7459925,73.5265862 99.7009452,73.5265862 L95.6245878,73.5265862 C95.5795404,73.5265862 95.5363377,73.5444789 95.5044844,73.5763322 C95.4726311,73.6081855 95.4547369,73.6513882 95.4547384,73.6964356 L95.4547384,74.5530572 L92.9070135,74.5530572 L92.9070135,73.6964356 C92.9070151,73.6513886 92.889121,73.6081861 92.8572682,73.5763329 C92.8254153,73.5444797 92.7822131,73.5265862 92.7371661,73.5265862 L88.6608067,73.5265862 C88.6157597,73.5265862 88.5725575,73.5444797 88.5407046,73.5763329 C88.5088518,73.6081861 88.4909577,73.6513886 88.4909593,73.6964356 L88.4909593,74.5530572 L85.9432383,74.5530572 L85.9432383,73.6964356 C85.9432399,73.6513886 85.9253458,73.6081861 85.893493,73.5763329 C85.8616401,73.5444797 85.8184379,73.5265862 85.7733909,73.5265862 L53.8419073,73.5265862 C53.7968603,73.5265862 53.7536581,73.5444797 53.7218052,73.5763329 C53.6899524,73.6081861 53.6720584,73.6513886 53.6720599,73.6964356 L53.6720599,74.5530572 L51.124335,74.5530572 L51.124335,73.6964356 C51.1243366,73.6513882 51.1064423,73.6081855 51.074589,73.5763322 C51.0427358,73.5444789 50.999533,73.5265862 50.9544857,73.5265862 L46.8781379,73.5265862 C46.8330906,73.5265862 46.7898879,73.5444789 46.7580346,73.5763322 C46.7261813,73.6081855 46.708287,73.6513882 46.7082886,73.6964356 L46.7082886,74.5530572 L44.160554,74.5530572 L44.160554,73.6964356 C44.1605561,73.6513884 44.1426622,73.6081857 44.1108092,73.5763323 C44.0789563,73.544479 44.0357537,73.5265862 43.9907066,73.5265862 L39.9143472,73.5265862 C39.8693002,73.5265862 39.8260979,73.5444797 39.7942451,73.5763329 C39.7623922,73.6081861 39.7444982,73.6513886 39.7444998,73.6964356 L39.7444998,74.5530572 L37.1967749,74.5530572 L37.1967749,73.6964356 C37.1967764,73.6513886 37.1788824,73.6081861 37.1470296,73.5763329 C37.1151767,73.5444797 37.0719745,73.5265862 37.0269275,73.5265862 L32.9505681,73.5265862 C32.9055208,73.5265862 32.862318,73.5444789 32.8304647,73.5763322 C32.7986115,73.6081855 32.7807172,73.6513882 32.7807187,73.6964356 L32.7807187,74.5530572 L30.2329958,74.5530572 L30.2329958,73.6964356 C30.2329973,73.6513882 30.215103,73.6081855 30.1832498,73.5763322 C30.1513965,73.5444789 30.1081938,73.5265862 30.0631464,73.5265862 L25.986787,73.5265862 C25.94174,73.5265862 25.8985378,73.5444797 25.866685,73.5763329 C25.8348321,73.6081861 25.8169381,73.6513886 25.8169396,73.6964356 L25.8169396,74.5530572 L23.2692109,74.5530572 L23.2692109,73.6964356 C23.2692124,73.6513886 23.2513184,73.6081861 23.2194655,73.5763329 C23.1876127,73.5444797 23.1444104,73.5265862 23.0993634,73.5265862 L19.0230079,73.5265862 C18.9779608,73.5265862 18.9347582,73.544479 18.9029053,73.5763323 C18.8710523,73.6081857 18.8531585,73.6513884 18.8531605,73.6964356 L18.8531605,74.5530572 L16.3054357,74.5530572 L16.3054357,73.6964356 C16.3054372,73.6513882 16.2875429,73.6081855 16.2556896,73.5763322 C16.2238364,73.5444789 16.1806336,73.5265862 16.1355863,73.5265862 L12.0592288,73.5265862 C12.0141815,73.5265862 11.9709788,73.5444789 11.9391255,73.5763322 C11.9072722,73.6081855 11.8893779,73.6513882 11.8893795,73.6964356 L11.8893795,74.5530572 L4.07635746,74.5530572 C1.82504753,74.5530594 0,76.3781067 0,78.6294166 L0,80.4726504 C0,82.7239563 1.82505163,84.5489982 4.07635746,84.5489982 L139.615294,84.5489982 C141.8666,84.5489982 143.691654,82.7239566 143.691654,80.4726504 L143.691654,78.6294166 C143.691654,76.3781064 141.866605,74.5530594 139.615294,74.5530572 Z","id","Path",1,"fill-color-20"],["id","Group","transform","translate(14.563343, 25.890388)"],["d","M34.1898756,18.6935074 C34.8335754,18.7760331 35.5015474,18.8284611 36.1180622,18.6284578 C36.2151512,18.5983603 36.321949,18.5313689 36.3122401,18.4342799 C36.3052976,18.3990002 36.2903506,18.3657846 36.2685501,18.337191 C36.0361522,17.9886397 35.8409087,17.6167008 35.6860164,17.2274642 C35.6798777,17.2071636 35.6672606,17.1894314 35.6500935,17.176978 C35.6300188,17.1697099 35.6080312,17.1697099 35.5879565,17.176978 C35.3034859,17.2517365 35.0578508,17.4352346 34.775322,17.5138766 C34.6312683,17.5533966 34.4809179,17.5646069 34.3325963,17.5468869 C34.2044389,17.5323235 34.0296788,17.4264966 33.9131721,17.440089 C33.9791925,17.8643678 34.1403602,18.2604907 34.1898756,18.6935074 Z","id","Path",1,"fill-color-primary-darker"],["d","M46.3638597,17.6187327 C46.7881384,17.3274658 47.2279514,17.0216356 47.4784409,16.5721138 C47.4963243,16.5452282 47.5067138,16.5140596 47.5085385,16.481821 C47.5042662,16.4500929 47.4918946,16.4199997 47.4726155,16.394441 C47.2340087,16.0151166 46.9268212,15.6835648 46.5667756,15.4167552 C46.3789189,15.549458 46.2091963,15.7061249 46.061913,15.8827822 C45.9551152,15.9954054 45.6599648,16.1740491 45.6570521,16.3458965 C45.6570521,16.4429855 45.7696753,16.5556086 45.8221033,16.6371634 C45.8929782,16.7420194 45.9599696,16.8488173 46.0240483,16.9575569 C46.0609421,17.0109558 46.3978408,17.5973731 46.3638597,17.6187327 Z","id","Path",1,"fill-color-primary-darker"],["d","M36.7132175,19.9935285 C36.7207976,20.0935521 36.6933371,20.1930963 36.6355464,20.2750865 C36.5902231,20.3206727 36.5341172,20.3540691 36.4724369,20.3721755 C35.5724223,20.6945108 34.5306578,20.2925625 33.632585,20.6100434 C33.448116,20.675093 33.2733558,20.7692693 33.0879159,20.8314062 C32.8668382,20.8978733 32.6387504,20.9382775 32.4082933,20.9517965 C32.0908124,20.9818941 31.7713897,21.0013119 31.4529379,21.0100499 C31.2109788,21.0271812 30.9678332,21.0058814 30.7325379,20.9469421 C30.494578,20.8860354 30.29373,20.7268395 30.1801017,20.5090709 C30.1312849,20.4125511 30.1215484,20.3009295 30.1529168,20.1974154 C30.1669968,20.1619216 30.1870252,20.1290882 30.2121411,20.1003264 C30.2730042,20.0320475 30.3444715,19.9740213 30.423795,19.9284789 L30.7548683,19.7148832 C30.9101158,19.6051008 31.0788103,19.515696 31.2568182,19.4488595 C31.3878883,19.4061404 31.5267255,19.3876935 31.6597374,19.3517706 C32.1247935,19.215846 32.4801391,18.846908 32.8102415,18.4925333 L33.2607343,18.011943 C33.3028503,17.9590638 33.3562578,17.9162715 33.4170475,17.8866982 C33.4795282,17.8658617 33.5459388,17.8595527 33.6112254,17.8682513 C34.0488232,17.8994947 34.4713668,18.041122 34.8394007,18.2799085 C34.9334629,18.3504651 35.0350556,18.4103788 35.1423182,18.4585522 C35.4064002,18.5614665 35.7452406,18.4837953 35.9889339,18.3536961 C36.1044698,18.2915592 36.0792267,18.2566071 36.1277711,18.1459257 C36.1763156,18.0352443 36.2947641,17.9643694 36.3976784,18.0653419 C36.4287289,18.1002598 36.4507324,18.1422664 36.4617571,18.187674 C36.5588461,18.5080675 36.5219523,18.8527333 36.5219523,19.1886611 C36.519104,19.2411857 36.5256803,19.2937961 36.5413701,19.3440034 C36.566144,19.3946232 36.5957307,19.4427421 36.629721,19.4876951 C36.6366398,19.4995928 36.642801,19.5119152 36.6481679,19.5245889 C36.7075588,19.673314 36.7298837,19.8342531 36.7132175,19.9935285 Z","id","Path",1,"fill-color-primary-darker"],["d","M36.7132175,19.9935285 C36.7207976,20.0935521 36.6933371,20.1930963 36.6355464,20.2750865 C36.5902231,20.3206727 36.5341172,20.3540691 36.4724369,20.3721755 C35.5724223,20.6945108 34.5306578,20.2925625 33.632585,20.6100434 C33.448116,20.675093 33.2733558,20.7692693 33.0879159,20.8314062 C32.8668382,20.8978733 32.6387504,20.9382775 32.4082933,20.9517965 C32.0908124,20.9818941 31.7713897,21.0013119 31.4529379,21.0100499 C31.2109788,21.0271812 30.9678332,21.0058814 30.7325379,20.9469421 C30.494578,20.8860354 30.29373,20.7268395 30.1801017,20.5090709 C30.1312849,20.4125511 30.1215484,20.3009295 30.1529168,20.1974154 C30.1669968,20.1619216 30.1870252,20.1290882 30.2121411,20.1003264 C30.2645691,20.2100369 30.3024338,20.3556704 30.3354441,20.4080984 C30.4256618,20.5652773 30.5791886,20.6760005 30.7568101,20.7119868 C30.8882242,20.7200556 31.0199808,20.7032567 31.1451659,20.6624715 C31.9607132,20.4605264 32.8277175,20.4576138 33.6112254,20.1517835 C33.8801618,20.0459566 34.1364767,19.9051776 34.4190055,19.8410989 C34.7015344,19.7770202 35.0015392,19.7944962 35.2928061,19.770224 C35.7530078,19.7333301 36.1986461,19.5944929 36.6520515,19.5216762 C36.7105975,19.6716231 36.7315958,19.83361 36.7132175,19.9935285 L36.7132175,19.9935285 Z","id","Path",1,"fill-color-primary-darker"],["d","M48.4250582,17.5595084 C48.3823391,17.9012616 48.1658307,18.1954411 47.9279627,18.4449597 C47.6900948,18.6944783 47.4211584,18.9187538 47.2318349,19.2061371 C46.9988214,19.5624536 46.8939654,20.0042083 46.5910478,20.3051841 C46.4747693,20.4146353 46.3441148,20.5077266 46.202692,20.5818876 C46.0442646,20.6753601 45.8767312,20.752458 45.7026839,20.8119884 C45.2502494,20.956651 44.7628628,20.9236407 44.2900396,20.8886887 C44.1365309,20.8872131 43.9845596,20.8579372 43.8414886,20.8022795 C43.7763574,20.7691922 43.7140162,20.7308783 43.6550778,20.6877146 C43.5365551,20.6147292 43.4367964,20.5149704 43.363811,20.3964477 C43.3279723,20.332004 43.3179103,20.2563656 43.3356552,20.1847938 C43.3626747,20.1059564 43.4090817,20.0351774 43.4706088,19.9789652 C43.5770067,19.8683202 43.6912186,19.7654647 43.8123619,19.6711932 C43.9785829,19.5639234 44.1283649,19.4331094 44.2570293,19.2828374 C44.335968,19.1640934 44.3940832,19.0327597 44.4288768,18.8944816 C44.4976483,18.652227 44.5396476,18.4031617 44.5541216,18.1517511 C44.5535898,17.9846963 44.5708393,17.8180593 44.6055787,17.6546556 C44.6774245,17.3983408 44.8677189,17.1692108 44.8463593,16.904158 C44.8377185,16.866204 44.8411119,16.8265011 44.8560682,16.7905639 C44.8786704,16.7624825 44.9101823,16.7429588 44.94539,16.7352232 C45.0937604,16.6760869 45.2502282,16.6397523 45.4094752,16.6274545 C45.571226,16.6162976 45.7294484,16.6783037 45.8405502,16.7963893 C45.9065707,16.8760022 45.9502607,16.9905672 46.0473497,17.0216356 C46.0954598,17.0347655 46.1459295,17.0367577 46.1949249,17.027461 C46.4337637,17.0031887 46.686195,16.9730912 46.8745476,16.8187197 C47.0505482,16.6608586 47.152616,16.4366614 47.1561056,16.2002631 C47.1561056,16.1119121 47.1162991,16.0196776 47.2531945,16.0060852 C47.3561088,15.9924927 47.4376635,16.1031741 47.4900916,16.1711364 C47.679415,16.4245386 47.8735929,16.6895914 47.9444679,16.9983343 C47.9720312,16.9876362 48.0013112,16.9820434 48.030877,16.9818292 C48.1537854,16.9807475 48.2694521,17.0398499 48.3405908,17.1400842 C48.4179108,17.2653269 48.447872,17.4140998 48.4250582,17.5595084 L48.4250582,17.5595084 Z","id","Path",1,"fill-color-primary-darker"],["d","M48.4250582,17.5595084 C48.3823391,17.9012616 48.1658307,18.1954411 47.9279627,18.4449597 C47.6900948,18.6944783 47.4211584,18.9187538 47.2318349,19.2061371 C46.9988214,19.5624536 46.8939654,20.0042083 46.5910478,20.3051841 C46.4747693,20.4146353 46.3441148,20.5077266 46.202692,20.5818876 C46.0442646,20.6753601 45.8767312,20.752458 45.7026839,20.8119884 C45.2502494,20.956651 44.7628628,20.9236407 44.2900396,20.8886887 C44.1365309,20.8872131 43.9845596,20.8579372 43.8414886,20.8022795 C43.7763574,20.7691922 43.7140162,20.7308783 43.6550778,20.6877146 C43.5365551,20.6147292 43.4367964,20.5149704 43.363811,20.3964477 C43.4548211,20.3526902 43.5541213,20.3288581 43.6550778,20.3265437 C43.86479,20.3381943 44.0181905,20.5362558 44.2191647,20.5974219 C44.5055771,20.683831 44.7910186,20.481886 45.0813146,20.4129528 C45.270638,20.3682919 45.4696704,20.3799426 45.6570521,20.3158639 C45.8132081,20.2555144 45.9574928,20.168089 46.0832726,20.0576073 C46.2556706,19.9343474 46.4090818,19.786497 46.5386198,19.6187652 C46.646198,19.4510234 46.735696,19.2723528 46.8056144,19.0857468 C46.9589198,18.7281302 47.1393856,18.3827784 47.345429,18.0527203 C47.375905,18.0004629 47.4127576,17.9521958 47.4551395,17.9090287 C47.5007713,17.8672804 47.5522285,17.8381537 47.6036856,17.8012599 C47.7978635,17.6546556 47.8784474,17.4129041 47.9464096,17.1760071 C47.9648208,17.1040024 47.9905203,17.0340608 48.0231099,16.9672512 C48.1460183,16.9661841 48.2616849,17.0252865 48.3328237,17.1255208 C48.4163608,17.2537243 48.4492363,17.4084124 48.4250582,17.5595084 L48.4250582,17.5595084 Z","id","Path",1,"fill-color-primary-darker"],["d","M54.316416,4.55250111 L54.316416,3.34665629 C54.316416,1.49819202 52.8172532,0 50.9687888,0 L3.34762718,0 C1.49916283,0 0,1.49819202 0,3.34665629 L0,5.56999336 L54.316416,4.55250111 Z","id","Path",1,"fill-color-16"],["d","M55.6018738,5.73601547 L55.6018738,39.231705 C55.6018738,39.9999836 55.2966099,40.7367813 54.7532639,41.2799452 C54.2099179,41.8231092 53.4730179,42.1278687 52.7047393,42.1278687 L2.89810531,42.1278687 C1.29897753,42.1273325 0.00291266866,40.8308329 0.00291266866,39.231705 L0.00291266866,2.35926161 C1.43012031,2.88936731 1.43012031,2.88936731 2.89810531,2.84470639 L52.7047393,2.84470639 C54.3025103,2.84470316 55.5986611,4.13824772 55.6018738,5.73601547 Z","id","Path","opacity","0.1",1,"fill-color-27"],["d","M55.6018738,6.16223599 L55.6018738,39.6579255 C55.6018738,41.2575895 54.3044034,42.5540891 52.7047393,42.5540891 L2.89810531,42.5540891 C1.29897753,42.553553 0.00291266866,41.2570534 0.00291266866,39.6579255 L0.00291266866,2.78451124 C1.43012031,3.31364604 1.43012031,3.31364604 2.89810531,3.26995601 L52.7047393,3.26995601 C54.3028886,3.26995377 55.5991959,4.56408894 55.6018738,6.16223599 Z","id","Path",1,"fill-color-19"],["d","M55.4601239,18.5459322 L55.4601239,29.2577567 L45.0716057,29.2577567 C42.141738,29.2183086 39.7873207,26.8319777 39.7873207,23.9018444 C39.7873207,20.9717112 42.141738,18.5853803 45.0716057,18.5459322 L55.4601239,18.5459322 Z","id","Path","opacity","0.1",1,"fill-color-27"],["d","M55.6018738,18.2604907 L55.6018738,28.9742569 L45.2133556,28.9742569 C42.2834879,28.9348088 39.9290706,26.5484779 39.9290706,23.6183447 C39.9290706,20.6882114 42.2834879,18.3018806 45.2133556,18.2624325 L55.6018738,18.2604907 Z","id","Path",1,"fill-color-17"],["id","Oval","opacity","0.1","cx","45.7114219","cy","23.9023299","r","2.08838343",1,"fill-color-27"],["id","Oval","cx","45.8531718","cy","23.6188301","r","2.08838343",1,"fill-color-28"],["d","M37.114137,56.485738 L37.114137,54.3663604 C37.5324015,54.3762985 37.9407279,54.3762985 38.3291472,54.3762985 L38.3291472,56.485738 L39.8628249,56.485738 L39.8628249,54.3364843 C42.4322258,54.1970423 44.1498818,53.5497076 44.378952,51.1296869 C44.5581774,49.1877136 43.6419275,48.3212469 42.1879398,47.9727034 C43.0643138,47.5245628 43.6220513,46.7278171 43.4925782,45.4032717 C43.3232292,43.5907407 41.8346742,42.9832201 39.8627941,42.8139637 L39.8627941,40.3042841 L38.3291164,40.3042841 L38.3291164,42.7442427 C37.9307281,42.7442427 37.5224017,42.7541808 37.1141061,42.7641498 L37.1141061,40.3042841 L35.5803975,40.3042841 L35.5803975,42.8139637 C35.0165182,42.8310005 34.3597701,42.8226673 32.5030732,42.8139637 L32.5030732,44.4472076 C33.7139786,44.4257882 34.3493073,44.3479809 34.4948913,45.1243875 L34.4948913,51.9961228 C34.4024546,52.6121309 33.9094382,52.5234287 32.8118025,52.5040154 L32.5030732,54.3265154 L33.46474,54.3269705 C35.3673259,54.328922 35.5804284,54.3364843 35.5804284,54.3364843 L35.5804284,56.485738 L37.114137,56.485738 Z M37.144013,47.6141601 L37.144013,44.5567428 C38.0104489,44.5567428 40.7192919,44.2878893 40.7192919,46.0904514 C40.7192919,47.8133542 38.0104798,47.6141601 37.144013,47.6141601 Z M37.144013,52.5139844 L37.144013,49.1478686 C38.1797362,49.1478686 41.3514108,48.8590464 41.3514108,50.8309574 C41.3514108,52.7330856 38.1797362,52.5139844 37.144013,52.5139844 Z","id","b","transform","translate(38.452166, 48.395011) rotate(14.000000) translate(-38.452166, -48.395011) ",1,"fill-color-30"]],template:function(t,e){if(1&t&&(h.YNc(0,j,1,0,"ng-container",0),h.YNc(1,Q,32,5,"ng-template",null,1,h.W1O),h.YNc(3,W,51,5,"ng-template",null,2,h.W1O),h.YNc(5,J,74,5,"ng-template",null,3,h.W1O),h.YNc(7,X,53,5,"ng-template",null,4,h.W1O),h.YNc(9,K,66,5,"ng-template",null,5,h.W1O)),2&t){const t=h.MAs(2),i=h.MAs(4),n=h.MAs(6),r=h.MAs(8),s=h.MAs(10);h.Q6J("ngTemplateOutlet",1===e.stepNumber?t:2===e.stepNumber?i:3===e.stepNumber?n:4===e.stepNumber?r:s)}},directives:[p.tP,y.xw,y.yH,y.Wh,p.mk,x.oO,b.n5,b.$j],styles:["svg.small-svg[_ngcontent-%COMP%]{height:50%;min-height:50%;max-width:100%}svg.large-svg[_ngcontent-%COMP%]{height:60%;min-height:60%;max-width:100%}"],data:{animation:[G.l]}}),t})();function tt(t,e){1&t&&h.GkF(0)}const et=function(t,e){return{"small-svg":t,"large-svg":e}};function it(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",6),h.NdJ("swipe",function(e){return h.CHM(t),h.oxw().onSwipe(e)}),h.O4$(),h.TgZ(1,"svg",7),h.TgZ(2,"desc"),h._uU(3,"Created with Sketch."),h.qZA(),h.TgZ(4,"g",8),h.TgZ(5,"g",9),h.TgZ(6,"g",10),h.TgZ(7,"g",11),h._UZ(8,"circle",12),h._UZ(9,"path",13),h.qZA(),h.TgZ(10,"g",14),h._UZ(11,"ellipse",15),h._UZ(12,"ellipse",16),h._UZ(13,"rect",17),h._UZ(14,"rect",18),h._UZ(15,"rect",19),h._UZ(16,"rect",20),h._UZ(17,"rect",21),h._UZ(18,"rect",22),h._UZ(19,"rect",23),h._UZ(20,"rect",24),h._UZ(21,"rect",25),h._UZ(22,"rect",26),h._UZ(23,"rect",27),h._UZ(24,"rect",28),h._UZ(25,"rect",29),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.kcU(),h.TgZ(26,"div",30),h.TgZ(27,"mat-card-title"),h._uU(28,"Loop In explained."),h.qZA(),h.qZA(),h.TgZ(29,"div",31),h.TgZ(30,"mat-card-subtitle",32),h._uU(31," Lightning Loop is a non custodial service offered by Lightning Labs to bridge on-chain and off-chain Bitcoin using Submarine swaps. "),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=h.oxw();h.Q6J("@sliderAnimation",t.animationDirection),h.xp6(1),h.Q6J("ngClass",h.WLB(2,et,t.screenSize===t.screenSizeEnum.XS,t.screenSize!==t.screenSizeEnum.XS))}}function nt(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",6),h.NdJ("swipe",function(e){return h.CHM(t),h.oxw().onSwipe(e)}),h.O4$(),h.TgZ(1,"svg",33),h.TgZ(2,"desc"),h._uU(3,"Created with Sketch."),h.qZA(),h.TgZ(4,"defs"),h.TgZ(5,"linearGradient",34),h._UZ(6,"stop",35),h._UZ(7,"stop",36),h._UZ(8,"stop",37),h.qZA(),h.qZA(),h.TgZ(9,"g",8),h.TgZ(10,"g",38),h.TgZ(11,"g",39),h.TgZ(12,"g",40),h._UZ(13,"rect",41),h._UZ(14,"rect",42),h._UZ(15,"rect",43),h._UZ(16,"circle",44),h._UZ(17,"rect",45),h._UZ(18,"rect",46),h._UZ(19,"circle",47),h._UZ(20,"rect",48),h._UZ(21,"rect",49),h._UZ(22,"rect",50),h._UZ(23,"rect",51),h._UZ(24,"rect",52),h._UZ(25,"circle",53),h._UZ(26,"circle",54),h._UZ(27,"circle",55),h.qZA(),h.TgZ(28,"g",56),h.TgZ(29,"g",57),h.TgZ(30,"g",58),h._UZ(31,"path",59),h._UZ(32,"rect",60),h._UZ(33,"polygon",61),h.TgZ(34,"g",62),h._UZ(35,"path",63),h.qZA(),h._UZ(36,"rect",64),h._UZ(37,"rect",65),h._UZ(38,"rect",66),h._UZ(39,"rect",67),h._UZ(40,"rect",68),h._UZ(41,"rect",69),h._UZ(42,"rect",70),h._UZ(43,"path",71),h._UZ(44,"path",72),h.qZA(),h.TgZ(45,"g",73),h._UZ(46,"path",74),h._UZ(47,"path",75),h._UZ(48,"path",76),h._UZ(49,"path",77),h._UZ(50,"path",78),h._UZ(51,"path",79),h._UZ(52,"path",80),h._UZ(53,"path",81),h._UZ(54,"path",82),h._UZ(55,"path",83),h._UZ(56,"path",84),h._UZ(57,"circle",85),h._UZ(58,"circle",86),h.qZA(),h._UZ(59,"path",87),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.kcU(),h.TgZ(60,"div",30),h.TgZ(61,"mat-card-title"),h._uU(62,"Step 1: Deciding to Loop In"),h.qZA(),h.qZA(),h.TgZ(63,"div",31),h.TgZ(64,"mat-card-subtitle",32),h._uU(65," Your outgoing capacity is depleted and you want to regain it without opening new channels. "),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=h.oxw();h.Q6J("@sliderAnimation",t.animationDirection),h.xp6(1),h.Q6J("ngClass",h.WLB(2,et,t.screenSize===t.screenSizeEnum.XS,t.screenSize!==t.screenSizeEnum.XS))}}function rt(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",6),h.NdJ("swipe",function(e){return h.CHM(t),h.oxw().onSwipe(e)}),h.O4$(),h.TgZ(1,"svg",88),h.TgZ(2,"desc"),h._uU(3,"Created with Sketch."),h.qZA(),h.TgZ(4,"defs"),h.TgZ(5,"linearGradient",89),h._UZ(6,"stop",35),h._UZ(7,"stop",36),h._UZ(8,"stop",37),h.qZA(),h.qZA(),h.TgZ(9,"g",90),h.TgZ(10,"g",91),h.TgZ(11,"g",92),h.TgZ(12,"g",93),h.TgZ(13,"g",94),h._UZ(14,"circle",95),h._UZ(15,"path",96),h.TgZ(16,"g",97),h._UZ(17,"polygon",98),h._UZ(18,"polygon",99),h._UZ(19,"path",100),h.qZA(),h.TgZ(20,"g",101),h._UZ(21,"polygon",102),h._UZ(22,"path",103),h._UZ(23,"rect",104),h._UZ(24,"path",105),h._UZ(25,"rect",106),h._UZ(26,"rect",107),h._UZ(27,"rect",108),h._UZ(28,"rect",109),h._UZ(29,"circle",110),h._UZ(30,"path",111),h.TgZ(31,"g",112),h.TgZ(32,"g",113),h._UZ(33,"g",114),h.qZA(),h._UZ(34,"g",115),h.qZA(),h.qZA(),h.qZA(),h.TgZ(35,"g",116),h.TgZ(36,"g",40),h._UZ(37,"rect",117),h._UZ(38,"rect",42),h._UZ(39,"rect",43),h._UZ(40,"circle",118),h._UZ(41,"rect",45),h._UZ(42,"rect",46),h._UZ(43,"circle",119),h._UZ(44,"rect",48),h._UZ(45,"rect",49),h._UZ(46,"rect",50),h._UZ(47,"rect",51),h._UZ(48,"rect",52),h._UZ(49,"circle",120),h._UZ(50,"circle",54),h._UZ(51,"circle",55),h._UZ(52,"circle",121),h.qZA(),h.TgZ(53,"g",56),h.TgZ(54,"g",57),h.TgZ(55,"g",58),h._UZ(56,"path",59),h._UZ(57,"rect",60),h._UZ(58,"polygon",61),h.TgZ(59,"g",122),h._UZ(60,"path",63),h.qZA(),h._UZ(61,"rect",123),h._UZ(62,"rect",124),h._UZ(63,"rect",125),h._UZ(64,"rect",126),h._UZ(65,"rect",127),h._UZ(66,"rect",128),h._UZ(67,"rect",129),h._UZ(68,"path",130),h._UZ(69,"path",72),h.qZA(),h.TgZ(70,"g",73),h._UZ(71,"path",131),h._UZ(72,"path",132),h._UZ(73,"path",133),h._UZ(74,"path",134),h._UZ(75,"path",135),h._UZ(76,"path",136),h._UZ(77,"path",80),h._UZ(78,"path",81),h._UZ(79,"path",137),h._UZ(80,"path",83),h._UZ(81,"path",138),h._UZ(82,"circle",85),h._UZ(83,"circle",86),h.qZA(),h._UZ(84,"path",139),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h._UZ(85,"path",140),h._UZ(86,"path",141),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.kcU(),h.TgZ(87,"div",30),h.TgZ(88,"mat-card-title"),h._uU(89,"Step 2: Send payment out"),h.qZA(),h.qZA(),h.TgZ(90,"div",31),h.TgZ(91,"mat-card-subtitle",32),h._uU(92," Your node sends funds on-chain to loop server to be swapped with off-chain liquidity. "),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=h.oxw();h.Q6J("@sliderAnimation",t.animationDirection),h.xp6(1),h.Q6J("ngClass",h.WLB(2,et,t.screenSize===t.screenSizeEnum.XS,t.screenSize!==t.screenSizeEnum.XS))}}function st(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",6),h.NdJ("swipe",function(e){return h.CHM(t),h.oxw().onSwipe(e)}),h.O4$(),h.TgZ(1,"svg",142),h.TgZ(2,"desc"),h._uU(3,"Created with Sketch."),h.qZA(),h.TgZ(4,"g",90),h.TgZ(5,"g",143),h.TgZ(6,"g",144),h.TgZ(7,"g"),h.TgZ(8,"g",145),h.TgZ(9,"g",146),h._UZ(10,"circle",12),h._UZ(11,"path",147),h.qZA(),h.TgZ(12,"g",14),h._UZ(13,"ellipse",148),h._UZ(14,"ellipse",16),h._UZ(15,"rect",17),h._UZ(16,"rect",18),h._UZ(17,"rect",19),h._UZ(18,"rect",20),h._UZ(19,"rect",21),h._UZ(20,"rect",22),h._UZ(21,"rect",23),h._UZ(22,"rect",24),h._UZ(23,"rect",25),h._UZ(24,"rect",26),h._UZ(25,"rect",27),h._UZ(26,"rect",28),h._UZ(27,"rect",29),h.qZA(),h.qZA(),h.TgZ(28,"g",149),h._UZ(29,"polygon",150),h._UZ(30,"polygon",99),h._UZ(31,"path",151),h.qZA(),h.TgZ(32,"g",152),h._UZ(33,"polygon",102),h._UZ(34,"path",103),h._UZ(35,"rect",104),h._UZ(36,"path",105),h._UZ(37,"rect",106),h._UZ(38,"rect",107),h._UZ(39,"rect",108),h._UZ(40,"rect",109),h._UZ(41,"circle",110),h._UZ(42,"path",111),h.TgZ(43,"g",112),h.TgZ(44,"g",113),h._UZ(45,"g",114),h.qZA(),h._UZ(46,"g",115),h.qZA(),h.qZA(),h.qZA(),h._UZ(47,"path",153),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.kcU(),h.TgZ(48,"div",30),h.TgZ(49,"mat-card-title"),h._uU(50,"Step 3: Recieve Funds Off-chain"),h.qZA(),h.qZA(),h.TgZ(51,"div",31),h.TgZ(52,"mat-card-subtitle",32),h._uU(53," Loop server sends equivalent funds off-chain to your node by making a lightning payment to you. "),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=h.oxw();h.Q6J("@sliderAnimation",t.animationDirection),h.xp6(1),h.Q6J("ngClass",h.WLB(2,et,t.screenSize===t.screenSizeEnum.XS,t.screenSize!==t.screenSizeEnum.XS))}}function ot(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",6),h.NdJ("swipe",function(e){return h.CHM(t),h.oxw().onSwipe(e)}),h.O4$(),h.TgZ(1,"svg",154),h.TgZ(2,"desc"),h._uU(3,"Created with Sketch."),h.qZA(),h.TgZ(4,"defs"),h.TgZ(5,"linearGradient",34),h._UZ(6,"stop",35),h._UZ(7,"stop",36),h._UZ(8,"stop",37),h.qZA(),h.qZA(),h.TgZ(9,"g",90),h.TgZ(10,"g",155),h.TgZ(11,"g",156),h.TgZ(12,"g",157),h.TgZ(13,"g",158),h.TgZ(14,"g",40),h._UZ(15,"rect",159),h._UZ(16,"rect",160),h._UZ(17,"rect",161),h._UZ(18,"circle",162),h._UZ(19,"rect",163),h._UZ(20,"rect",164),h._UZ(21,"circle",165),h._UZ(22,"rect",166),h._UZ(23,"rect",167),h._UZ(24,"rect",168),h._UZ(25,"rect",169),h._UZ(26,"circle",170),h._UZ(27,"circle",171),h.qZA(),h.TgZ(28,"g",172),h._UZ(29,"path",173),h._UZ(30,"rect",174),h._UZ(31,"polygon",175),h._UZ(32,"circle",176),h._UZ(33,"path",177),h._UZ(34,"rect",178),h._UZ(35,"rect",179),h._UZ(36,"rect",180),h._UZ(37,"rect",181),h._UZ(38,"rect",182),h._UZ(39,"rect",183),h._UZ(40,"rect",184),h._UZ(41,"path",185),h._UZ(42,"path",186),h.qZA(),h._UZ(43,"path",187),h.qZA(),h.qZA(),h._UZ(44,"circle",188),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.kcU(),h.TgZ(45,"div",30),h.TgZ(46,"mat-card-title"),h._uU(47,"Done!"),h.qZA(),h.qZA(),h.TgZ(48,"div",31),h.TgZ(49,"mat-card-subtitle",32),h._uU(50," You send the payment on-chain from your wallet and also move remote balance to the local side of the node, gaining outgoing capacity. "),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=h.oxw();h.Q6J("@sliderAnimation",t.animationDirection),h.xp6(1),h.Q6J("ngClass",h.WLB(2,et,t.screenSize===t.screenSizeEnum.XS,t.screenSize!==t.screenSizeEnum.XS))}}let at=(()=>{class t{constructor(t){this.commonService=t,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new h.vpe,this.screenSize="",this.screenSizeEnum=c.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(t){2===t.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===t.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(g.v))},t.\u0275cmp=h.Xpm({type:t,selectors:[["rtl-loop-in-info-graphics"]],inputs:{animationDirection:"animationDirection",stepNumber:"stepNumber"},outputs:{stepNumberChange:"stepNumberChange"},decls:11,vars:1,consts:[[4,"ngTemplateOutlet"],["loopStepBlock1",""],["loopStepBlock2",""],["loopStepBlock3",""],["loopStepBlock4",""],["loopStepBlock5",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",3,"swipe"],["fxFlex","30","viewBox","0 0 108 118","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["id","Loopv0.2","stroke","none","stroke-width","1","fill","none","fill-rule","evenodd"],["id","LoopIn_Step01","transform","translate(-594.000000, -215.000000)","fill-rule","nonzero"],["id","Loop_Step01","transform","translate(594.000000, 215.000000)"],["id","Group-16","transform","translate(23.000000, 0.000000)"],["id","Oval","cx","42.4877419","cy","42.4877419","r","42.4877419",1,"fill-color-2"],["d","M56.0827415,28.5000036 C60.4468211,28.5000036 63.9999285,25.1343958 63.9999285,21.0000215 C63.9999285,16.8656472 60.4468211,13.5000393 56.0827415,13.5000393 C52.9843297,13.5000393 50.5608889,15.4359631 48.9999642,17.1843872 C47.4390396,15.4359631 45.0155987,13.5000393 41.9171869,13.5000393 C37.5531074,13.5000393 34,16.8656472 34,21.0000215 C34,25.1343958 37.5531074,28.5000036 41.9171869,28.5000036 C45.0155987,28.5000036 47.4390396,26.5640798 48.9999642,24.8156557 C50.5608889,26.5640798 52.9843297,28.5000036 56.0827415,28.5000036 Z M41.9171869,24.0000143 C40.0328073,24.0000143 38.4999893,22.6546959 38.4999893,21.0000286 C38.4999893,19.3453471 40.0328073,18.0000286 41.9171869,18.0000286 C43.707771,18.0000286 45.3577763,19.6921938 46.3234264,21.0000286 C45.3671604,22.2937501 43.7031019,24.0000143 41.9171869,24.0000143 Z M56.0827415,24.0000143 C54.2921574,24.0000143 52.6421522,22.3078492 51.676502,21.0000286 C52.6327681,19.7062929 54.2968266,18.0000286 56.0827415,18.0000286 C57.9671212,18.0000286 59.4999392,19.3453471 59.4999392,21.0000286 C59.4999392,22.6546959 57.9671212,24.0000143 56.0827415,24.0000143 Z","id","i",1,"fill-color-primary"],["id","Group-21","transform","translate(0.000000, 36.000000)"],["id","Oval","cx","48.644129","cy","75.1589677","rx","48.644129","ry","6.61766437",1,"fill-color-7"],["id","Oval","opacity","0.1","cx","48.644129","cy","75.1589677","rx","40.8402581","ry","5.55600756",1,"fill-color-27"],["id","Rectangle","x","25.2325161","y","6.09470968","width","54.1068387","height","62.9512258",1,"fill-color-26"],["id","Rectangle","x","20","y","1.24344979e-14","width","65.0322581","height","22.3710968",1,"fill-color-19"],["id","Rectangle","x","20","y","26","width","65.0322581","height","22.3710968",1,"fill-color-19"],["id","Rectangle","x","19.7698065","y","52.9179355","width","65.0322581","height","22.3710968",1,"fill-color-19"],["id","Rectangle","x","67.6335484","y","3.75354839","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","73.6165161","y","3.75354839","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","79.5994839","y","3.75354839","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","67.6335484","y","30.0265806","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","73.6165161","y","30.0265806","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","79.5994839","y","30.0265806","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","67.6335484","y","56.2996129","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","73.6165161","y","56.2996129","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","79.5994839","y","56.2996129","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["fxFlex","20","fxLayoutAlign","center end"],["fxFlex","40"],[1,"font-size-120"],["fxFlex","30","viewBox","0 0 200 120","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["x1","50%","y1","100%","x2","50%","y2","0%","id","linearGradient-1"],["stop-color","#808080","stop-opacity","0.25","offset","0%"],["stop-color","#808080","stop-opacity","0.12","offset","54%"],["stop-color","#808080","stop-opacity","0.1","offset","100%"],["id","LoopIn_Step02","transform","translate(-542.000000, -210.000000)","fill-rule","nonzero"],["id","Loop_Step02","transform","translate(542.000000, 210.000000)"],["id","Group-2"],["id","Rectangle","x","0","y","0","width","81.4032636","height","90.8547569",1,"fill-color-11"],["id","Rectangle","x","1.34483737","y","60.660286","width","78.7116083","height","28.2158368",1,"fill-color-9"],["id","Rectangle","x","7.80560248","y","67.352783","width","46.2328358","height","14.4584872",1,"fill-color-primary-lighter"],["id","Oval","cx","68.9135074","cy","74.4889377","r","7.35996418",1,"fill-color-primary-darker"],["id","Rectangle","x","1.34483737","y","31.345208","width","78.7116083","height","28.2158368",1,"fill-color-9"],["id","Rectangle","x","7.80560248","y","38.0377051","width","46.2328358","height","14.4584872",1,"fill-color-primary-lighter"],["id","Oval","cx","68.9135074","cy","45.1758404","r","7.35996418",1,"fill-color-primary-darker"],["id","Rectangle","x","1.34483737","y","2.03013005","width","78.7116083","height","28.2158368",1,"fill-color-9"],["id","Rectangle","x","7.80560248","y","8.72460769","width","46.2328358","height","14.4584872",1,"fill-color-primary-lighter"],["id","Rectangle","x","7.80560248","y","67.352783","width","23.1164179","height","14.4584872",1,"fill-color-primary"],["id","Rectangle","x","7.80560248","y","38.0377051","width","33.2298507","height","14.4584872",1,"fill-color-primary"],["id","Rectangle","x","7.80560248","y","8.72460769","width","23.1164179","height","14.4584872",1,"fill-color-primary"],["id","Oval","cx","68.9135074","cy","15.8607624","r","7.93434243",1,"fill-color-31"],["id","Oval","fill","url(#linearGradient-1)","cx","68.9135074","cy","45.3719212","r","7.93434243"],["id","Oval","fill","url(#linearGradient-1)","cx","68.9135074","cy","74.6850186","r","7.93434243"],["id","Group-16","transform","translate(55.804478, 34.674627)"],["id","Group-29","transform","translate(0.310627, 0.751284)"],["id","Group"],["d","M132.777455,1.04124409 L82.2582659,1.04124409 L82.2582659,0 L59.3509036,0 L59.3509036,1.04124409 L8.62346042,1.04124409 C7.71715136,1.04124358 6.84796221,1.40127322 6.20710493,2.0421305 C5.56624765,2.68298778 5.20621852,3.55217693 5.20621852,4.45848599 L5.20621852,73.6347918 C5.20621852,74.5411031 5.56624437,75.4102953 6.2071016,76.0511558 C6.84795882,76.6920163 7.71714912,77.0520512 8.62346042,77.0520512 L132.777455,77.0520512 C134.664749,77.0520512 136.194697,75.522091 136.194697,73.6347977 L136.194697,4.45848599 C136.194697,3.55217693 135.834668,2.68298778 135.193811,2.0421305 C134.552953,1.40127322 133.683764,1.04124358 132.777455,1.04124409 Z","id","Path",1,"fill-color-20"],["id","Rectangle","x","9.78769098","y","7.08045867","width","121.825532","height","68.7220946",1,"fill-color-7"],["id","Path","opacity","0.306775484","points","96.7732181 75.8025901 9.78772787 75.8025901 9.78772787 7.08050333",1,"fill-color-27"],["id","Group-24","transform","translate(16.889738, 38.617955)",1,"fill-color-primary-darker"],["d","M14.5668332,29.1332406 C8.67527117,29.1332406 3.36383033,25.5842492 1.10922733,20.1411555 C-1.14537566,14.6980619 0.100864684,8.43279022 4.26682842,4.26682704 C8.43279215,0.100863866 14.698064,-1.14537564 20.1411573,1.10922807 C25.5842507,3.36383179 29.1332406,8.67527311 29.1332406,14.5668351 C29.124133,22.607864 22.6078621,29.1241341 14.5668332,29.1332406 L14.5668332,29.1332406 Z M14.5668332,0.190838576 C6.62718953,0.190838576 0.190836635,6.62719147 0.190836635,14.5668351 C0.190836635,22.5064788 6.62718953,28.9428317 14.5668332,28.9428317 C22.5064768,28.9428317 28.9428297,22.5064788 28.9428297,14.5668351 C28.9338602,6.63090975 22.5027586,0.199808125 14.5668332,0.190838576 L14.5668332,0.190838576 Z","id","Shape"],["id","Rectangle","x","99.0215517","y","44.1428314","width","11.3798353","height","2.37787551",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","25.6293676","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","28.8564861","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","32.0836045","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","35.310721","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","38.5378394","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","119.403347","y","8.47469101","width","4.75575295","height","4.75575295",1,"fill-color-5"],["d","M126.367128,15.4384701 L120.592277,15.4384701 L120.592277,9.66361906 L126.367128,9.66361906 L126.367128,15.4384701 Z M120.843366,15.1873981 L126.116048,15.1873981 L126.116048,9.91470857 L120.843366,9.91470857 L120.843366,15.1873981 Z","id","Shape",1,"fill-color-19"],["d","M139.615294,74.5530572 L127.725913,74.5530572 L127.725913,73.6964356 C127.725915,73.6513884 127.708021,73.6081857 127.676168,73.5763323 C127.644315,73.544479 127.601113,73.5265862 127.556065,73.5265862 L123.479706,73.5265862 C123.434659,73.5265862 123.391457,73.5444797 123.359604,73.5763329 C123.327751,73.6081861 123.309857,73.6513886 123.309859,73.6964356 L123.309859,74.5530572 L120.762134,74.5530572 L120.762134,73.6964356 C120.762135,73.6513886 120.744241,73.6081861 120.712388,73.5763329 C120.680536,73.5444797 120.637333,73.5265862 120.592286,73.5265862 L116.515927,73.5265862 C116.47088,73.5265862 116.427677,73.5444789 116.395824,73.5763322 C116.36397,73.6081855 116.346076,73.6513882 116.346078,73.6964356 L116.346078,74.5530572 L113.798355,74.5530572 L113.798355,73.6964356 C113.798356,73.6513882 113.780462,73.6081855 113.748609,73.5763322 C113.716755,73.5444789 113.673553,73.5265862 113.628505,73.5265862 L109.552146,73.5265862 C109.507099,73.5265862 109.463897,73.5444797 109.432044,73.5763329 C109.400191,73.6081861 109.382297,73.6513886 109.382299,73.6964356 L109.382299,74.5530572 L106.834574,74.5530572 L106.834574,73.6964356 C106.834575,73.6513886 106.816681,73.6081861 106.784828,73.5763329 C106.752975,73.5444797 106.709773,73.5265862 106.664726,73.5265862 L102.588363,73.5265862 C102.543316,73.5265862 102.500113,73.544479 102.46826,73.5763323 C102.436407,73.6081857 102.418513,73.6513884 102.418516,73.6964356 L102.418516,74.5530572 L99.8707946,74.5530572 L99.8707946,73.6964356 C99.8707961,73.6513882 99.8529018,73.6081855 99.8210486,73.5763322 C99.7891953,73.5444789 99.7459925,73.5265862 99.7009452,73.5265862 L95.6245878,73.5265862 C95.5795404,73.5265862 95.5363377,73.5444789 95.5044844,73.5763322 C95.4726311,73.6081855 95.4547369,73.6513882 95.4547384,73.6964356 L95.4547384,74.5530572 L92.9070135,74.5530572 L92.9070135,73.6964356 C92.9070151,73.6513886 92.889121,73.6081861 92.8572682,73.5763329 C92.8254153,73.5444797 92.7822131,73.5265862 92.7371661,73.5265862 L88.6608067,73.5265862 C88.6157597,73.5265862 88.5725575,73.5444797 88.5407046,73.5763329 C88.5088518,73.6081861 88.4909577,73.6513886 88.4909593,73.6964356 L88.4909593,74.5530572 L85.9432383,74.5530572 L85.9432383,73.6964356 C85.9432399,73.6513886 85.9253458,73.6081861 85.893493,73.5763329 C85.8616401,73.5444797 85.8184379,73.5265862 85.7733909,73.5265862 L53.8419073,73.5265862 C53.7968603,73.5265862 53.7536581,73.5444797 53.7218052,73.5763329 C53.6899524,73.6081861 53.6720584,73.6513886 53.6720599,73.6964356 L53.6720599,74.5530572 L51.124335,74.5530572 L51.124335,73.6964356 C51.1243366,73.6513882 51.1064423,73.6081855 51.074589,73.5763322 C51.0427358,73.5444789 50.999533,73.5265862 50.9544857,73.5265862 L46.8781379,73.5265862 C46.8330906,73.5265862 46.7898879,73.5444789 46.7580346,73.5763322 C46.7261813,73.6081855 46.708287,73.6513882 46.7082886,73.6964356 L46.7082886,74.5530572 L44.160554,74.5530572 L44.160554,73.6964356 C44.1605561,73.6513884 44.1426622,73.6081857 44.1108092,73.5763323 C44.0789563,73.544479 44.0357537,73.5265862 43.9907066,73.5265862 L39.9143472,73.5265862 C39.8693002,73.5265862 39.8260979,73.5444797 39.7942451,73.5763329 C39.7623922,73.6081861 39.7444982,73.6513886 39.7444998,73.6964356 L39.7444998,74.5530572 L37.1967749,74.5530572 L37.1967749,73.6964356 C37.1967764,73.6513886 37.1788824,73.6081861 37.1470296,73.5763329 C37.1151767,73.5444797 37.0719745,73.5265862 37.0269275,73.5265862 L32.9505681,73.5265862 C32.9055208,73.5265862 32.862318,73.5444789 32.8304647,73.5763322 C32.7986115,73.6081855 32.7807172,73.6513882 32.7807187,73.6964356 L32.7807187,74.5530572 L30.2329958,74.5530572 L30.2329958,73.6964356 C30.2329973,73.6513882 30.215103,73.6081855 30.1832498,73.5763322 C30.1513965,73.5444789 30.1081938,73.5265862 30.0631464,73.5265862 L25.986787,73.5265862 C25.94174,73.5265862 25.8985378,73.5444797 25.866685,73.5763329 C25.8348321,73.6081861 25.8169381,73.6513886 25.8169396,73.6964356 L25.8169396,74.5530572 L23.2692109,74.5530572 L23.2692109,73.6964356 C23.2692124,73.6513886 23.2513184,73.6081861 23.2194655,73.5763329 C23.1876127,73.5444797 23.1444104,73.5265862 23.0993634,73.5265862 L19.0230079,73.5265862 C18.9779608,73.5265862 18.9347582,73.544479 18.9029053,73.5763323 C18.8710523,73.6081857 18.8531585,73.6513884 18.8531605,73.6964356 L18.8531605,74.5530572 L16.3054357,74.5530572 L16.3054357,73.6964356 C16.3054372,73.6513882 16.2875429,73.6081855 16.2556896,73.5763322 C16.2238364,73.5444789 16.1806336,73.5265862 16.1355863,73.5265862 L12.0592288,73.5265862 C12.0141815,73.5265862 11.9709788,73.5444789 11.9391255,73.5763322 C11.9072722,73.6081855 11.8893779,73.6513882 11.8893795,73.6964356 L11.8893795,74.5530572 L4.07635746,74.5530572 C1.82504753,74.5530594 0,76.3781067 0,78.6294166 L0,80.4726504 C0,82.7239563 1.82505163,84.5489982 4.07635746,84.5489982 L139.615294,84.5489982 C141.8666,84.5489982 143.691654,82.7239566 143.691654,80.4726504 L143.691654,78.6294166 C143.691654,76.3781064 141.866605,74.5530594 139.615294,74.5530572 Z","id","Path",1,"fill-color-20"],["id","Group","transform","translate(14.563343, 25.890388)"],["d","M34.1898756,18.6935074 C34.8335754,18.7760331 35.5015474,18.8284611 36.1180622,18.6284578 C36.2151512,18.5983603 36.321949,18.5313689 36.3122401,18.4342799 C36.3052976,18.3990002 36.2903506,18.3657846 36.2685501,18.337191 C36.0361522,17.9886397 35.8409087,17.6167008 35.6860164,17.2274642 C35.6798777,17.2071636 35.6672606,17.1894314 35.6500935,17.176978 C35.6300188,17.1697099 35.6080312,17.1697099 35.5879565,17.176978 C35.3034859,17.2517365 35.0578508,17.4352346 34.775322,17.5138766 C34.6312683,17.5533966 34.4809179,17.5646069 34.3325963,17.5468869 C34.2044389,17.5323235 34.0296788,17.4264966 33.9131721,17.440089 C33.9791925,17.8643678 34.1403602,18.2604907 34.1898756,18.6935074 Z","id","Path",1,"fill-color-primary-darker"],["d","M46.3638597,17.6187327 C46.7881384,17.3274658 47.2279514,17.0216356 47.4784409,16.5721138 C47.4963243,16.5452282 47.5067138,16.5140596 47.5085385,16.481821 C47.5042662,16.4500929 47.4918946,16.4199997 47.4726155,16.394441 C47.2340087,16.0151166 46.9268212,15.6835648 46.5667756,15.4167552 C46.3789189,15.549458 46.2091963,15.7061249 46.061913,15.8827822 C45.9551152,15.9954054 45.6599648,16.1740491 45.6570521,16.3458965 C45.6570521,16.4429855 45.7696753,16.5556086 45.8221033,16.6371634 C45.8929782,16.7420194 45.9599696,16.8488173 46.0240483,16.9575569 C46.0609421,17.0109558 46.3978408,17.5973731 46.3638597,17.6187327 Z","id","Path",1,"fill-color-primary-darker"],["d","M36.7132175,19.9935285 C36.7207976,20.0935521 36.6933371,20.1930963 36.6355464,20.2750865 C36.5902231,20.3206727 36.5341172,20.3540691 36.4724369,20.3721755 C35.5724223,20.6945108 34.5306578,20.2925625 33.632585,20.6100434 C33.448116,20.675093 33.2733558,20.7692693 33.0879159,20.8314062 C32.8668382,20.8978733 32.6387504,20.9382775 32.4082933,20.9517965 C32.0908124,20.9818941 31.7713897,21.0013119 31.4529379,21.0100499 C31.2109788,21.0271812 30.9678332,21.0058814 30.7325379,20.9469421 C30.494578,20.8860354 30.29373,20.7268395 30.1801017,20.5090709 C30.1312849,20.4125511 30.1215484,20.3009295 30.1529168,20.1974154 C30.1669968,20.1619216 30.1870252,20.1290882 30.2121411,20.1003264 C30.2730042,20.0320475 30.3444715,19.9740213 30.423795,19.9284789 L30.7548683,19.7148832 C30.9101158,19.6051008 31.0788103,19.515696 31.2568182,19.4488595 C31.3878883,19.4061404 31.5267255,19.3876935 31.6597374,19.3517706 C32.1247935,19.215846 32.4801391,18.846908 32.8102415,18.4925333 L33.2607343,18.011943 C33.3028503,17.9590638 33.3562578,17.9162715 33.4170475,17.8866982 C33.4795282,17.8658617 33.5459388,17.8595527 33.6112254,17.8682513 C34.0488232,17.8994947 34.4713668,18.041122 34.8394007,18.2799085 C34.9334629,18.3504651 35.0350556,18.4103788 35.1423182,18.4585522 C35.4064002,18.5614665 35.7452406,18.4837953 35.9889339,18.3536961 C36.1044698,18.2915592 36.0792267,18.2566071 36.1277711,18.1459257 C36.1763156,18.0352443 36.2947641,17.9643694 36.3976784,18.0653419 C36.4287289,18.1002598 36.4507324,18.1422664 36.4617571,18.187674 C36.5588461,18.5080675 36.5219523,18.8527333 36.5219523,19.1886611 C36.519104,19.2411857 36.5256803,19.2937961 36.5413701,19.3440034 C36.566144,19.3946232 36.5957307,19.4427421 36.629721,19.4876951 C36.6366398,19.4995928 36.642801,19.5119152 36.6481679,19.5245889 C36.7075588,19.673314 36.7298837,19.8342531 36.7132175,19.9935285 Z","id","Path",1,"fill-color-primary-darker"],["d","M36.7132175,19.9935285 C36.7207976,20.0935521 36.6933371,20.1930963 36.6355464,20.2750865 C36.5902231,20.3206727 36.5341172,20.3540691 36.4724369,20.3721755 C35.5724223,20.6945108 34.5306578,20.2925625 33.632585,20.6100434 C33.448116,20.675093 33.2733558,20.7692693 33.0879159,20.8314062 C32.8668382,20.8978733 32.6387504,20.9382775 32.4082933,20.9517965 C32.0908124,20.9818941 31.7713897,21.0013119 31.4529379,21.0100499 C31.2109788,21.0271812 30.9678332,21.0058814 30.7325379,20.9469421 C30.494578,20.8860354 30.29373,20.7268395 30.1801017,20.5090709 C30.1312849,20.4125511 30.1215484,20.3009295 30.1529168,20.1974154 C30.1669968,20.1619216 30.1870252,20.1290882 30.2121411,20.1003264 C30.2645691,20.2100369 30.3024338,20.3556704 30.3354441,20.4080984 C30.4256618,20.5652773 30.5791886,20.6760005 30.7568101,20.7119868 C30.8882242,20.7200556 31.0199808,20.7032567 31.1451659,20.6624715 C31.9607132,20.4605264 32.8277175,20.4576138 33.6112254,20.1517835 C33.8801618,20.0459566 34.1364767,19.9051776 34.4190055,19.8410989 C34.7015344,19.7770202 35.0015392,19.7944962 35.2928061,19.770224 C35.7530078,19.7333301 36.1986461,19.5944929 36.6520515,19.5216762 C36.7105975,19.6716231 36.7315958,19.83361 36.7132175,19.9935285 L36.7132175,19.9935285 Z","id","Path",1,"fill-color-primary-darker"],["d","M48.4250582,17.5595084 C48.3823391,17.9012616 48.1658307,18.1954411 47.9279627,18.4449597 C47.6900948,18.6944783 47.4211584,18.9187538 47.2318349,19.2061371 C46.9988214,19.5624536 46.8939654,20.0042083 46.5910478,20.3051841 C46.4747693,20.4146353 46.3441148,20.5077266 46.202692,20.5818876 C46.0442646,20.6753601 45.8767312,20.752458 45.7026839,20.8119884 C45.2502494,20.956651 44.7628628,20.9236407 44.2900396,20.8886887 C44.1365309,20.8872131 43.9845596,20.8579372 43.8414886,20.8022795 C43.7763574,20.7691922 43.7140162,20.7308783 43.6550778,20.6877146 C43.5365551,20.6147292 43.4367964,20.5149704 43.363811,20.3964477 C43.3279723,20.332004 43.3179103,20.2563656 43.3356552,20.1847938 C43.3626747,20.1059564 43.4090817,20.0351774 43.4706088,19.9789652 C43.5770067,19.8683202 43.6912186,19.7654647 43.8123619,19.6711932 C43.9785829,19.5639234 44.1283649,19.4331094 44.2570293,19.2828374 C44.335968,19.1640934 44.3940832,19.0327597 44.4288768,18.8944816 C44.4976483,18.652227 44.5396476,18.4031617 44.5541216,18.1517511 C44.5535898,17.9846963 44.5708393,17.8180593 44.6055787,17.6546556 C44.6774245,17.3983408 44.8677189,17.1692108 44.8463593,16.904158 C44.8377185,16.866204 44.8411119,16.8265011 44.8560682,16.7905639 C44.8786704,16.7624825 44.9101823,16.7429588 44.94539,16.7352232 C45.0937604,16.6760869 45.2502282,16.6397523 45.4094752,16.6274545 C45.571226,16.6162976 45.7294484,16.6783037 45.8405502,16.7963893 C45.9065707,16.8760022 45.9502607,16.9905672 46.0473497,17.0216356 C46.0954598,17.0347655 46.1459295,17.0367577 46.1949249,17.027461 C46.4337637,17.0031887 46.686195,16.9730912 46.8745476,16.8187197 C47.0505482,16.6608586 47.152616,16.4366614 47.1561056,16.2002631 C47.1561056,16.1119121 47.1162991,16.0196776 47.2531945,16.0060852 C47.3561088,15.9924927 47.4376635,16.1031741 47.4900916,16.1711364 C47.679415,16.4245386 47.8735929,16.6895914 47.9444679,16.9983343 C47.9720312,16.9876362 48.0013112,16.9820434 48.030877,16.9818292 C48.1537854,16.9807475 48.2694521,17.0398499 48.3405908,17.1400842 C48.4179108,17.2653269 48.447872,17.4140998 48.4250582,17.5595084 L48.4250582,17.5595084 Z","id","Path",1,"fill-color-primary-darker"],["d","M48.4250582,17.5595084 C48.3823391,17.9012616 48.1658307,18.1954411 47.9279627,18.4449597 C47.6900948,18.6944783 47.4211584,18.9187538 47.2318349,19.2061371 C46.9988214,19.5624536 46.8939654,20.0042083 46.5910478,20.3051841 C46.4747693,20.4146353 46.3441148,20.5077266 46.202692,20.5818876 C46.0442646,20.6753601 45.8767312,20.752458 45.7026839,20.8119884 C45.2502494,20.956651 44.7628628,20.9236407 44.2900396,20.8886887 C44.1365309,20.8872131 43.9845596,20.8579372 43.8414886,20.8022795 C43.7763574,20.7691922 43.7140162,20.7308783 43.6550778,20.6877146 C43.5365551,20.6147292 43.4367964,20.5149704 43.363811,20.3964477 C43.4548211,20.3526902 43.5541213,20.3288581 43.6550778,20.3265437 C43.86479,20.3381943 44.0181905,20.5362558 44.2191647,20.5974219 C44.5055771,20.683831 44.7910186,20.481886 45.0813146,20.4129528 C45.270638,20.3682919 45.4696704,20.3799426 45.6570521,20.3158639 C45.8132081,20.2555144 45.9574928,20.168089 46.0832726,20.0576073 C46.2556706,19.9343474 46.4090818,19.786497 46.5386198,19.6187652 C46.646198,19.4510234 46.735696,19.2723528 46.8056144,19.0857468 C46.9589198,18.7281302 47.1393856,18.3827784 47.345429,18.0527203 C47.375905,18.0004629 47.4127576,17.9521958 47.4551395,17.9090287 C47.5007713,17.8672804 47.5522285,17.8381537 47.6036856,17.8012599 C47.7978635,17.6546556 47.8784474,17.4129041 47.9464096,17.1760071 C47.9648208,17.1040024 47.9905203,17.0340608 48.0231099,16.9672512 C48.1460183,16.9661841 48.2616849,17.0252865 48.3328237,17.1255208 C48.4163608,17.2537243 48.4492363,17.4084124 48.4250582,17.5595084 L48.4250582,17.5595084 Z","id","Path",1,"fill-color-primary-darker"],["d","M54.316416,4.55250111 L54.316416,3.34665629 C54.316416,1.49819202 52.8172532,0 50.9687888,0 L3.34762718,0 C1.49916283,0 0,1.49819202 0,3.34665629 L0,5.56999336 L54.316416,4.55250111 Z","id","Path",1,"fill-color-16"],["d","M55.6018738,5.73601547 L55.6018738,39.231705 C55.6018738,39.9999836 55.2966099,40.7367813 54.7532639,41.2799452 C54.2099179,41.8231092 53.4730179,42.1278687 52.7047393,42.1278687 L2.89810531,42.1278687 C1.29897753,42.1273325 0.00291266866,40.8308329 0.00291266866,39.231705 L0.00291266866,2.35926161 C1.43012031,2.88936731 1.43012031,2.88936731 2.89810531,2.84470639 L52.7047393,2.84470639 C54.3025103,2.84470316 55.5986611,4.13824772 55.6018738,5.73601547 Z","id","Path","opacity","0.1",1,"fill-color-27"],["d","M55.6018738,6.16223599 L55.6018738,39.6579255 C55.6018738,41.2575895 54.3044034,42.5540891 52.7047393,42.5540891 L2.89810531,42.5540891 C1.29897753,42.553553 0.00291266866,41.2570534 0.00291266866,39.6579255 L0.00291266866,2.78451124 C1.43012031,3.31364604 1.43012031,3.31364604 2.89810531,3.26995601 L52.7047393,3.26995601 C54.3028886,3.26995377 55.5991959,4.56408894 55.6018738,6.16223599 Z","id","Path",1,"fill-color-19"],["d","M55.4601239,18.5459322 L55.4601239,29.2577567 L45.0716057,29.2577567 C42.141738,29.2183086 39.7873207,26.8319777 39.7873207,23.9018444 C39.7873207,20.9717112 42.141738,18.5853803 45.0716057,18.5459322 L55.4601239,18.5459322 Z","id","Path","opacity","0.1",1,"fill-color-27"],["d","M55.6018738,18.2604907 L55.6018738,28.9742569 L45.2133556,28.9742569 C42.2834879,28.9348088 39.9290706,26.5484779 39.9290706,23.6183447 C39.9290706,20.6882114 42.2834879,18.3018806 45.2133556,18.2624325 L55.6018738,18.2604907 Z","id","Path",1,"fill-color-17"],["id","Oval","opacity","0.1","cx","45.7114219","cy","23.9023299","r","2.08838343",1,"fill-color-27"],["id","Oval","cx","45.8531718","cy","23.6188301","r","2.08838343",1,"fill-color-28"],["d","M37.114137,56.485738 L37.114137,54.3663604 C37.5324015,54.3762985 37.9407279,54.3762985 38.3291472,54.3762985 L38.3291472,56.485738 L39.8628249,56.485738 L39.8628249,54.3364843 C42.4322258,54.1970423 44.1498818,53.5497076 44.378952,51.1296869 C44.5581774,49.1877136 43.6419275,48.3212469 42.1879398,47.9727034 C43.0643138,47.5245628 43.6220513,46.7278171 43.4925782,45.4032717 C43.3232292,43.5907407 41.8346742,42.9832201 39.8627941,42.8139637 L39.8627941,40.3042841 L38.3291164,40.3042841 L38.3291164,42.7442427 C37.9307281,42.7442427 37.5224017,42.7541808 37.1141061,42.7641498 L37.1141061,40.3042841 L35.5803975,40.3042841 L35.5803975,42.8139637 C35.0165182,42.8310005 34.3597701,42.8226673 32.5030732,42.8139637 L32.5030732,44.4472076 C33.7139786,44.4257882 34.3493073,44.3479809 34.4948913,45.1243875 L34.4948913,51.9961228 C34.4024546,52.6121309 33.9094382,52.5234287 32.8118025,52.5040154 L32.5030732,54.3265154 L33.46474,54.3269705 C35.3673259,54.328922 35.5804284,54.3364843 35.5804284,54.3364843 L35.5804284,56.485738 L37.114137,56.485738 Z M37.144013,47.6141601 L37.144013,44.5567428 C38.0104489,44.5567428 40.7192919,44.2878893 40.7192919,46.0904514 C40.7192919,47.8133542 38.0104798,47.6141601 37.144013,47.6141601 Z M37.144013,52.5139844 L37.144013,49.1478686 C38.1797362,49.1478686 41.3514108,48.8590464 41.3514108,50.8309574 C41.3514108,52.7330856 38.1797362,52.5139844 37.144013,52.5139844 Z","id","b","transform","translate(38.452166, 48.395011) rotate(14.000000) translate(-38.452166, -48.395011) ",1,"fill-color-30"],["fxFlex","30","viewBox","0 0 364 120","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["x1","50%","y1","100%","x2","50%","y2","8.86848147e-15%","id","linearGradient-1"],["id","Loopv0.3","stroke","none","stroke-width","1","fill","none","fill-rule","evenodd"],["id","LoopIn_Step03","transform","translate(-1127.000000, -164.000000)"],["id","LoopIn_Step03","transform","translate(1127.000000, 164.000000)"],["id","Group-21"],["id","Group-35","transform","translate(107.000000, 10.000000)"],["id","Oval","fill-rule","nonzero","cx","214.487742","cy","42.4877419","r","42.4877419",1,"fill-color-2"],["d","M232.082742,28.5000036 C236.446821,28.5000036 239.999928,25.1343958 239.999928,21.0000215 C239.999928,16.8656472 236.446821,13.5000393 232.082742,13.5000393 C228.98433,13.5000393 226.560889,15.4359631 224.999964,17.1843872 C223.43904,15.4359631 221.015599,13.5000393 217.917187,13.5000393 C213.553107,13.5000393 210,16.8656472 210,21.0000215 C210,25.1343958 213.553107,28.5000036 217.917187,28.5000036 C221.015599,28.5000036 223.43904,26.5640798 224.999964,24.8156557 C226.560889,26.5640798 228.98433,28.5000036 232.082742,28.5000036 Z M217.917187,24.0000143 C216.032807,24.0000143 214.499989,22.6546959 214.499989,21.0000286 C214.499989,19.3453471 216.032807,18.0000286 217.917187,18.0000286 C219.707771,18.0000286 221.357776,19.6921938 222.323426,21.0000286 C221.36716,22.2937501 219.703102,24.0000143 217.917187,24.0000143 Z M232.082742,24.0000143 C230.292157,24.0000143 228.642152,22.3078492 227.676502,21.0000286 C228.632768,19.7062929 230.296827,18.0000286 232.082742,18.0000286 C233.967121,18.0000286 235.499939,19.3453471 235.499939,21.0000286 C235.499939,22.6546959 233.967121,24.0000143 232.082742,24.0000143 Z","id","i","fill-rule","nonzero",1,"fill-color-primary"],["id","Group-44","transform","translate(0.000000, 64.000000)","fill-rule","nonzero"],["id","Path","transform","translate(118.400000, 7.089946) scale(-1, 1) translate(-118.400000, -7.089946) ","points","234.731878 6.60770626 8.52651283e-14 6.60770626 8.52651283e-14 7.57218541 236.8 7.57218541",1,"fill-color-20"],["id","Path","transform","translate(118.400000, 8.960000) scale(-1, 1) translate(-118.400000, -8.960000) ","points","113.024 5.376 123.776 5.376 123.776 12.544 113.024 12.544",1,"fill-color-23"],["d","M120.192,8.96 L105.856,8.96 L105.856,1.86517468e-14 L120.192,1.86517468e-14 L120.192,8.96 Z M106.479304,8.57043501 L119.568696,8.57043501 L119.568696,0.389564988 L106.479304,0.389564988 L106.479304,8.57043501 Z","id","Shape","transform","translate(113.024000, 4.480000) scale(-1, 1) translate(-113.024000, -4.480000) ",1,"fill-color-20"],["id","Group-43","transform","translate(152.000000, 35.000000)"],["id","Path","fill-rule","nonzero","points","-9.84073267e-14 7.36243469 92.3919279 7.36243469 92.3919279 70.3073253 -1.13686838e-13 70.3073253",1,"fill-color-23"],["d","M97.5448374,1.70530257e-13 L6.62592538,1.70530257e-13 C6.01615907,0.000922175294 5.52114394,0.495001701 5.52114394,1.104768 L5.52114394,62.57664 C5.52114394,62.8696481 5.63752746,63.150658 5.84471672,63.3578447 C6.05190598,63.5650315 6.3329173,63.681408 6.62592538,63.681408 L97.5448374,63.681408 C97.8378436,63.681408 98.1188523,63.5650282 98.3260389,63.3578415 C98.5332256,63.1506549 98.6496054,62.8696462 98.6496054,62.57664 L98.6496054,1.104768 C98.6496054,0.495005713 98.1545997,0.000926622272 97.5448374,1.70530257e-13 L97.5448374,1.70530257e-13 Z M97.9130952,62.57664 C97.9130952,62.6744022 97.8747043,62.7682496 97.8055756,62.8373783 C97.736447,62.9065069 97.6425996,62.9448978 97.5448374,62.9448978 L6.62592538,62.9448978 C6.52816341,62.9448978 6.4343164,62.906506 6.3651879,62.8373775 C6.29605941,62.768249 6.25766754,62.674402 6.25766754,62.57664 L6.25766754,1.104768 C6.25766754,0.901512883 6.42267026,0.736512 6.62592538,0.736512 L97.5448374,0.736512 C97.7480931,0.736512 97.9130952,0.901512271 97.9130952,1.104768 L97.9130952,62.57664 Z","id","Shape","fill-rule","nonzero",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","10.3066764","y","43.4358624","width","41.5947948","height","4.78524211","rx","0.5376",1,"fill-color-19"],["d","M89.8141359,39.3872559 L76.5649839,39.3872559 C76.2719769,39.3872559 75.9909677,39.5036372 75.7837792,39.7108232 C75.5765907,39.9180091 75.4602025,40.1990169 75.4602025,40.4920239 L75.4602025,50.7978159 C75.4602025,51.090824 75.576586,51.3718339 75.7837753,51.5790207 C75.9909645,51.7862074 76.2719759,51.9025839 76.5649839,51.9025839 L89.8141359,51.9025839 C90.107143,51.9025839 90.3881533,51.7862079 90.5953406,51.5790206 C90.8025279,51.3718333 90.9189039,51.090823 90.9189039,50.7978159 L90.9189039,40.4920239 C90.9189039,40.199018 90.8025232,39.9180097 90.5953367,39.7108232 C90.3881502,39.5036367 90.1071419,39.3872559 89.8141359,39.3872559 Z M90.1823938,50.7978159 C90.182087,51.0010717 90.0173917,51.165767 89.8141359,51.1660719 L76.5649839,51.1660719 C76.3617256,51.165767 76.1970256,51.0010743 76.19671,50.7978159 L76.19671,40.4920239 C76.1964064,40.3942603 76.2351088,40.3004129 76.30424,40.2312847 C76.3733712,40.1621565 76.4672203,40.1234582 76.5649839,40.1237661 L89.8141359,40.1237661 C89.9118981,40.1234582 90.0057456,40.162157 90.0748742,40.2312857 C90.1440029,40.3004143 90.1827017,40.3942617 90.1823938,40.4920239 L90.1823938,50.7978159 Z","id","Shape","fill-rule","nonzero",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","78.6733409","y","41.7652758","width","9.03249715","height","1.86879168","rx","0.5376",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","78.6733409","y","44.7100416","width","9.03249715","height","1.86879168","rx","0.5376",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","78.6733409","y","47.6548047","width","9.03249715","height","1.86879168","rx","0.5376",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","11.4109632","y","4.41773875","width","19.1409684","height","8.09810266","rx","0.5376",1,"fill-color-19"],["id","Oval","fill-rule","nonzero","cx","47.2929593","cy","42.2294561","r","12.9683743",1,"fill-color-4"],["d","M50.1798649,51.9764517 C43.6553251,51.9764517 37.7732336,48.0461636 35.2764005,42.0182748 C32.7795674,35.990386 34.1597014,29.0519859 38.773248,24.4384399 C43.3867946,19.824894 50.3251948,18.4447609 56.3530833,20.9415948 C62.3809718,23.4384287 66.3112582,29.3205207 66.3112582,35.8450605 C66.3011721,44.7500015 59.0848059,51.9663668 50.1798649,51.9764517 L50.1798649,51.9764517 Z M50.1798649,19.9245354 C41.3872016,19.9245354 34.2593397,27.0523972 34.2593397,35.8450605 C34.2593397,44.6377237 41.3872016,51.7655856 50.1798649,51.7655856 C58.9725281,51.7655856 66.10039,44.6377237 66.10039,35.8450605 C66.0904567,27.056515 58.9684103,19.9344686 50.1798649,19.9245354 L50.1798649,19.9245354 Z","id","Shape","fill-rule","nonzero",1,"fill-color-primary"],["id","Group-23","transform","translate(5.000000, 0.001193)"],["id","Group-22"],["id","Group","transform","translate(0.378134, 0.000000)"],["id","Group-24","transform","translate(29.048000, 19.712000)"],["id","LoopIn_Step03","fill-rule","nonzero"],["id","Rectangle","x","0","y","0","width","81.4032636","height","90.8547569",1,"fill-color-10"],["id","Oval","cx","68.9135074","cy","74.4889377","r","7.35996418",1,"fill-color-primary"],["id","Oval","cx","68.9135074","cy","45.1758404","r","7.35996418",1,"fill-color-primary"],["id","Oval","fill","url(#linearGradient-1)","cx","68.9135074","cy","15.8607624","r","7.93434243"],["id","Oval","cx","68.9135074","cy","15.8607624","r","7.35996418",1,"fill-color-31"],["id","Group-24","transform","translate(16.889738, 38.617955)",1,"fill-color-primary"],["id","Rectangle","x","99.0215517","y","44.1428314","width","11.3798353","height","2.37787551",1,"fill-color-20"],["id","Rectangle","x","85.2638409","y","25.6293676","width","38.8952588","height","1.01909033",1,"fill-color-20"],["id","Rectangle","x","85.2638409","y","28.8564861","width","38.8952588","height","1.01909033",1,"fill-color-20"],["id","Rectangle","x","85.2638409","y","32.0836045","width","38.8952588","height","1.01909033",1,"fill-color-20"],["id","Rectangle","x","85.2638409","y","35.310721","width","38.8952588","height","1.01909033",1,"fill-color-20"],["id","Rectangle","x","85.2638409","y","38.5378394","width","38.8952588","height","1.01909033",1,"fill-color-20"],["id","Rectangle","x","119.403347","y","8.47469101","width","4.75575295","height","4.75575295",1,"fill-color-4"],["d","M126.367128,15.4384701 L120.592277,15.4384701 L120.592277,9.66361906 L126.367128,9.66361906 L126.367128,15.4384701 Z M120.843366,15.1873981 L126.116048,15.1873981 L126.116048,9.91470857 L120.843366,9.91470857 L120.843366,15.1873981 Z","id","Shape",1,"fill-color-20"],["d","M34.1898756,18.6935074 C34.8335754,18.7760331 35.5015474,18.8284611 36.1180622,18.6284578 C36.2151512,18.5983603 36.321949,18.5313689 36.3122401,18.4342799 C36.3052976,18.3990002 36.2903506,18.3657846 36.2685501,18.337191 C36.0361522,17.9886397 35.8409087,17.6167008 35.6860164,17.2274642 C35.6798777,17.2071636 35.6672606,17.1894314 35.6500935,17.176978 C35.6300188,17.1697099 35.6080312,17.1697099 35.5879565,17.176978 C35.3034859,17.2517365 35.0578508,17.4352346 34.775322,17.5138766 C34.6312683,17.5533966 34.4809179,17.5646069 34.3325963,17.5468869 C34.2044389,17.5323235 34.0296788,17.4264966 33.9131721,17.440089 C33.9791925,17.8643678 34.1403602,18.2604907 34.1898756,18.6935074 Z","id","Path",1,"fill-color-primary"],["d","M46.3638597,17.6187327 C46.7881384,17.3274658 47.2279514,17.0216356 47.4784409,16.5721138 C47.4963243,16.5452282 47.5067138,16.5140596 47.5085385,16.481821 C47.5042662,16.4500929 47.4918946,16.4199997 47.4726155,16.394441 C47.2340087,16.0151166 46.9268212,15.6835648 46.5667756,15.4167552 C46.3789189,15.549458 46.2091963,15.7061249 46.061913,15.8827822 C45.9551152,15.9954054 45.6599648,16.1740491 45.6570521,16.3458965 C45.6570521,16.4429855 45.7696753,16.5556086 45.8221033,16.6371634 C45.8929782,16.7420194 45.9599696,16.8488173 46.0240483,16.9575569 C46.0609421,17.0109558 46.3978408,17.5973731 46.3638597,17.6187327 Z","id","Path",1,"fill-color-primary"],["d","M36.7132175,19.9935285 C36.7207976,20.0935521 36.6933371,20.1930963 36.6355464,20.2750865 C36.5902231,20.3206727 36.5341172,20.3540691 36.4724369,20.3721755 C35.5724223,20.6945108 34.5306578,20.2925625 33.632585,20.6100434 C33.448116,20.675093 33.2733558,20.7692693 33.0879159,20.8314062 C32.8668382,20.8978733 32.6387504,20.9382775 32.4082933,20.9517965 C32.0908124,20.9818941 31.7713897,21.0013119 31.4529379,21.0100499 C31.2109788,21.0271812 30.9678332,21.0058814 30.7325379,20.9469421 C30.494578,20.8860354 30.29373,20.7268395 30.1801017,20.5090709 C30.1312849,20.4125511 30.1215484,20.3009295 30.1529168,20.1974154 C30.1669968,20.1619216 30.1870252,20.1290882 30.2121411,20.1003264 C30.2730042,20.0320475 30.3444715,19.9740213 30.423795,19.9284789 L30.7548683,19.7148832 C30.9101158,19.6051008 31.0788103,19.515696 31.2568182,19.4488595 C31.3878883,19.4061404 31.5267255,19.3876935 31.6597374,19.3517706 C32.1247935,19.215846 32.4801391,18.846908 32.8102415,18.4925333 L33.2607343,18.011943 C33.3028503,17.9590638 33.3562578,17.9162715 33.4170475,17.8866982 C33.4795282,17.8658617 33.5459388,17.8595527 33.6112254,17.8682513 C34.0488232,17.8994947 34.4713668,18.041122 34.8394007,18.2799085 C34.9334629,18.3504651 35.0350556,18.4103788 35.1423182,18.4585522 C35.4064002,18.5614665 35.7452406,18.4837953 35.9889339,18.3536961 C36.1044698,18.2915592 36.0792267,18.2566071 36.1277711,18.1459257 C36.1763156,18.0352443 36.2947641,17.9643694 36.3976784,18.0653419 C36.4287289,18.1002598 36.4507324,18.1422664 36.4617571,18.187674 C36.5588461,18.5080675 36.5219523,18.8527333 36.5219523,19.1886611 C36.519104,19.2411857 36.5256803,19.2937961 36.5413701,19.3440034 C36.566144,19.3946232 36.5957307,19.4427421 36.629721,19.4876951 C36.6366398,19.4995928 36.642801,19.5119152 36.6481679,19.5245889 C36.7075588,19.673314 36.7298837,19.8342531 36.7132175,19.9935285 Z","id","Path",1,"fill-color-primary"],["d","M36.7132175,19.9935285 C36.7207976,20.0935521 36.6933371,20.1930963 36.6355464,20.2750865 C36.5902231,20.3206727 36.5341172,20.3540691 36.4724369,20.3721755 C35.5724223,20.6945108 34.5306578,20.2925625 33.632585,20.6100434 C33.448116,20.675093 33.2733558,20.7692693 33.0879159,20.8314062 C32.8668382,20.8978733 32.6387504,20.9382775 32.4082933,20.9517965 C32.0908124,20.9818941 31.7713897,21.0013119 31.4529379,21.0100499 C31.2109788,21.0271812 30.9678332,21.0058814 30.7325379,20.9469421 C30.494578,20.8860354 30.29373,20.7268395 30.1801017,20.5090709 C30.1312849,20.4125511 30.1215484,20.3009295 30.1529168,20.1974154 C30.1669968,20.1619216 30.1870252,20.1290882 30.2121411,20.1003264 C30.2645691,20.2100369 30.3024338,20.3556704 30.3354441,20.4080984 C30.4256618,20.5652773 30.5791886,20.6760005 30.7568101,20.7119868 C30.8882242,20.7200556 31.0199808,20.7032567 31.1451659,20.6624715 C31.9607132,20.4605264 32.8277175,20.4576138 33.6112254,20.1517835 C33.8801618,20.0459566 34.1364767,19.9051776 34.4190055,19.8410989 C34.7015344,19.7770202 35.0015392,19.7944962 35.2928061,19.770224 C35.7530078,19.7333301 36.1986461,19.5944929 36.6520515,19.5216762 C36.7105975,19.6716231 36.7315958,19.83361 36.7132175,19.9935285 L36.7132175,19.9935285 Z","id","Path",1,"fill-color-primary"],["d","M48.4250582,17.5595084 C48.3823391,17.9012616 48.1658307,18.1954411 47.9279627,18.4449597 C47.6900948,18.6944783 47.4211584,18.9187538 47.2318349,19.2061371 C46.9988214,19.5624536 46.8939654,20.0042083 46.5910478,20.3051841 C46.4747693,20.4146353 46.3441148,20.5077266 46.202692,20.5818876 C46.0442646,20.6753601 45.8767312,20.752458 45.7026839,20.8119884 C45.2502494,20.956651 44.7628628,20.9236407 44.2900396,20.8886887 C44.1365309,20.8872131 43.9845596,20.8579372 43.8414886,20.8022795 C43.7763574,20.7691922 43.7140162,20.7308783 43.6550778,20.6877146 C43.5365551,20.6147292 43.4367964,20.5149704 43.363811,20.3964477 C43.3279723,20.332004 43.3179103,20.2563656 43.3356552,20.1847938 C43.3626747,20.1059564 43.4090817,20.0351774 43.4706088,19.9789652 C43.5770067,19.8683202 43.6912186,19.7654647 43.8123619,19.6711932 C43.9785829,19.5639234 44.1283649,19.4331094 44.2570293,19.2828374 C44.335968,19.1640934 44.3940832,19.0327597 44.4288768,18.8944816 C44.4976483,18.652227 44.5396476,18.4031617 44.5541216,18.1517511 C44.5535898,17.9846963 44.5708393,17.8180593 44.6055787,17.6546556 C44.6774245,17.3983408 44.8677189,17.1692108 44.8463593,16.904158 C44.8377185,16.866204 44.8411119,16.8265011 44.8560682,16.7905639 C44.8786704,16.7624825 44.9101823,16.7429588 44.94539,16.7352232 C45.0937604,16.6760869 45.2502282,16.6397523 45.4094752,16.6274545 C45.571226,16.6162976 45.7294484,16.6783037 45.8405502,16.7963893 C45.9065707,16.8760022 45.9502607,16.9905672 46.0473497,17.0216356 C46.0954598,17.0347655 46.1459295,17.0367577 46.1949249,17.027461 C46.4337637,17.0031887 46.686195,16.9730912 46.8745476,16.8187197 C47.0505482,16.6608586 47.152616,16.4366614 47.1561056,16.2002631 C47.1561056,16.1119121 47.1162991,16.0196776 47.2531945,16.0060852 C47.3561088,15.9924927 47.4376635,16.1031741 47.4900916,16.1711364 C47.679415,16.4245386 47.8735929,16.6895914 47.9444679,16.9983343 C47.9720312,16.9876362 48.0013112,16.9820434 48.030877,16.9818292 C48.1537854,16.9807475 48.2694521,17.0398499 48.3405908,17.1400842 C48.4179108,17.2653269 48.447872,17.4140998 48.4250582,17.5595084 L48.4250582,17.5595084 Z","id","Path",1,"fill-color-primary"],["d","M48.4250582,17.5595084 C48.3823391,17.9012616 48.1658307,18.1954411 47.9279627,18.4449597 C47.6900948,18.6944783 47.4211584,18.9187538 47.2318349,19.2061371 C46.9988214,19.5624536 46.8939654,20.0042083 46.5910478,20.3051841 C46.4747693,20.4146353 46.3441148,20.5077266 46.202692,20.5818876 C46.0442646,20.6753601 45.8767312,20.752458 45.7026839,20.8119884 C45.2502494,20.956651 44.7628628,20.9236407 44.2900396,20.8886887 C44.1365309,20.8872131 43.9845596,20.8579372 43.8414886,20.8022795 C43.7763574,20.7691922 43.7140162,20.7308783 43.6550778,20.6877146 C43.5365551,20.6147292 43.4367964,20.5149704 43.363811,20.3964477 C43.4548211,20.3526902 43.5541213,20.3288581 43.6550778,20.3265437 C43.86479,20.3381943 44.0181905,20.5362558 44.2191647,20.5974219 C44.5055771,20.683831 44.7910186,20.481886 45.0813146,20.4129528 C45.270638,20.3682919 45.4696704,20.3799426 45.6570521,20.3158639 C45.8132081,20.2555144 45.9574928,20.168089 46.0832726,20.0576073 C46.2556706,19.9343474 46.4090818,19.786497 46.5386198,19.6187652 C46.646198,19.4510234 46.735696,19.2723528 46.8056144,19.0857468 C46.9589198,18.7281302 47.1393856,18.3827784 47.345429,18.0527203 C47.375905,18.0004629 47.4127576,17.9521958 47.4551395,17.9090287 C47.5007713,17.8672804 47.5522285,17.8381537 47.6036856,17.8012599 C47.7978635,17.6546556 47.8784474,17.4129041 47.9464096,17.1760071 C47.9648208,17.1040024 47.9905203,17.0340608 48.0231099,16.9672512 C48.1460183,16.9661841 48.2616849,17.0252865 48.3328237,17.1255208 C48.4163608,17.2537243 48.4492363,17.4084124 48.4250582,17.5595084 L48.4250582,17.5595084 Z","id","Path",1,"fill-color-primary"],["d","M55.6018738,6.16223599 L55.6018738,39.6579255 C55.6018738,41.2575895 54.3044034,42.5540891 52.7047393,42.5540891 L2.89810531,42.5540891 C1.29897753,42.553553 0.00291266866,41.2570534 0.00291266866,39.6579255 L0.00291266866,2.78451124 C1.43012031,3.31364604 1.43012031,3.31364604 2.89810531,3.26995601 L52.7047393,3.26995601 C54.3028886,3.26995377 55.5991959,4.56408894 55.6018738,6.16223599 Z","id","Path",1,"fill-color-20"],["d","M55.6018738,18.2604907 L55.6018738,28.9742569 L45.2133556,28.9742569 C42.2834879,28.9348088 39.9290706,26.5484779 39.9290706,23.6183447 C39.9290706,20.6882114 42.2834879,18.3018806 45.2133556,18.2624325 L55.6018738,18.2604907 Z","id","Path",1,"fill-color-16"],["d","M37.114137,56.485738 L37.114137,54.3663604 C37.5324015,54.3762985 37.9407279,54.3762985 38.3291472,54.3762985 L38.3291472,56.485738 L39.8628249,56.485738 L39.8628249,54.3364843 C42.4322258,54.1970423 44.1498818,53.5497076 44.378952,51.1296869 C44.5581774,49.1877136 43.6419275,48.3212469 42.1879398,47.9727034 C43.0643138,47.5245628 43.6220513,46.7278171 43.4925782,45.4032717 C43.3232292,43.5907407 41.8346742,42.9832201 39.8627941,42.8139637 L39.8627941,40.3042841 L38.3291164,40.3042841 L38.3291164,42.7442427 C37.9307281,42.7442427 37.5224017,42.7541808 37.1141061,42.7641498 L37.1141061,40.3042841 L35.5803975,40.3042841 L35.5803975,42.8139637 C35.0165182,42.8310005 34.3597701,42.8226673 32.5030732,42.8139637 L32.5030732,44.4472076 C33.7139786,44.4257882 34.3493073,44.3479809 34.4948913,45.1243875 L34.4948913,51.9961228 C34.4024546,52.6121309 33.9094382,52.5234287 32.8118025,52.5040154 L32.5030732,54.3265154 L33.46474,54.3269705 C35.3673259,54.328922 35.5804284,54.3364843 35.5804284,54.3364843 L35.5804284,56.485738 L37.114137,56.485738 Z M37.144013,47.6141601 L37.144013,44.5567428 C38.0104489,44.5567428 40.7192919,44.2878893 40.7192919,46.0904514 C40.7192919,47.8133542 38.0104798,47.6141601 37.144013,47.6141601 Z M37.144013,52.5139844 L37.144013,49.1478686 C38.1797362,49.1478686 41.3514108,48.8590464 41.3514108,50.8309574 C41.3514108,52.7330856 38.1797362,52.5139844 37.144013,52.5139844 Z","id","b","transform","translate(38.452166, 48.395011) rotate(14.000000) translate(-38.452166, -48.395011) ",1,"fill-color-9"],["d","M93.2292414,91.9116485 L93.2292414,89.7922708 C93.647506,89.8022089 94.0558324,89.8022089 94.4442517,89.8022089 L94.4442517,91.9116485 L95.9779294,91.9116485 L95.9779294,89.7623948 C98.5473303,89.6229527 100.264986,88.975618 100.494057,86.5555973 C100.673282,84.6136241 99.757032,83.7471573 98.3030443,83.3986138 C99.1794183,82.9504733 99.7371558,82.1537275 99.6076827,80.8291821 C99.4383337,79.0166511 97.9497787,78.4091306 95.9778985,78.2398742 L95.9778985,75.7301945 L94.4442208,75.7301945 L94.4442208,78.1701531 C94.0458325,78.1701531 93.6375061,78.1800912 93.2292106,78.1900602 L93.2292106,75.7301945 L91.695502,75.7301945 L91.695502,78.2398742 C91.1316227,78.2569109 90.4748746,78.2485777 88.6181777,78.2398742 L88.6181777,79.8731181 C89.8290831,79.8516987 90.4644118,79.7738914 90.6099957,80.5502979 L90.6099957,87.4220333 C90.517559,88.0380413 90.0245427,87.9493391 88.926907,87.9299259 L88.6181777,89.7524258 L89.5798445,89.7528809 C91.4824304,89.7548325 91.6955329,89.7623948 91.6955329,89.7623948 L91.6955329,91.9116485 L93.2292414,91.9116485 Z M93.2591175,83.0400705 L93.2591175,79.9826533 C94.1255534,79.9826533 96.8343964,79.7137998 96.8343964,81.5163618 C96.8343964,83.2392647 94.1255843,83.0400705 93.2591175,83.0400705 Z M93.2591175,87.9398948 L93.2591175,84.5737791 C94.2948407,84.5737791 97.4665153,84.2849568 97.4665153,86.2568678 C97.4665153,88.1589961 94.2948407,87.9398948 93.2591175,87.9398948 Z","id","b","fill-rule","nonzero","transform","translate(94.567271, 83.820921) rotate(14.000000) translate(-94.567271, -83.820921) ",1,"fill-color-9"],["d","M305.611064,96.181454 L305.611064,94.0620763 C306.029328,94.0720144 306.437655,94.0720144 306.826074,94.0720144 L306.826074,96.181454 L308.359752,96.181454 L308.359752,94.0322003 C310.929153,93.8927582 312.646809,93.2454235 312.875879,90.8254028 C313.055104,88.8834296 312.138854,88.0169628 310.684867,87.6684193 C311.561241,87.2202788 312.118978,86.423533 311.989505,85.0989876 C311.820156,83.2864566 310.331601,82.678936 308.359721,82.5096797 L308.359721,80 L306.826043,80 L306.826043,82.4399586 C306.427655,82.4399586 306.019328,82.4498967 305.611033,82.4598657 L305.611033,80 L304.077324,80 L304.077324,82.5096797 C303.513445,82.5267164 302.856697,82.5183832 301,82.5096797 L301,84.1429236 C302.210905,84.1215042 302.846234,84.0436969 302.991818,84.8201034 L302.991818,91.6918387 C302.899381,92.3078468 302.406365,92.2191446 301.308729,92.1997314 L301,94.0222313 L301.961667,94.0226864 C303.864253,94.024638 304.077355,94.0322003 304.077355,94.0322003 L304.077355,96.181454 L305.611064,96.181454 Z M305.64094,87.309876 L305.64094,84.2524587 C306.507376,84.2524587 309.216219,83.9836053 309.216219,85.7861673 C309.216219,87.5090702 306.507407,87.309876 305.64094,87.309876 Z M305.64094,92.2097003 L305.64094,88.8435846 C306.676663,88.8435846 309.848338,88.5547623 309.848338,90.5266733 C309.848338,92.4288016 306.676663,92.2097003 305.64094,92.2097003 Z","id","b","fill-rule","nonzero","transform","translate(306.949093, 88.090727) rotate(14.000000) translate(-306.949093, -88.090727) ",1,"fill-color-26"],["fxFlex","30","viewBox","0 0 278 118","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["id","LoopIn_Step04","transform","translate(-1799.000000, -756.000000)"],["id","LoopIn_Step04","transform","translate(1799.000000, 756.000000)"],["id","Loop","fill-rule","nonzero"],["id","Group-16","transform","translate(24.000000, 0.000000)"],["d","M55.0827415,28.5000036 C59.4468211,28.5000036 62.9999285,25.1343958 62.9999285,21.0000215 C62.9999285,16.8656472 59.4468211,13.5000393 55.0827415,13.5000393 C51.9843297,13.5000393 49.5608889,15.4359631 47.9999642,17.1843872 C46.4390396,15.4359631 44.0155987,13.5000393 40.9171869,13.5000393 C36.5531074,13.5000393 33,16.8656472 33,21.0000215 C33,25.1343958 36.5531074,28.5000036 40.9171869,28.5000036 C44.0155987,28.5000036 46.4390396,26.5640798 47.9999642,24.8156557 C49.5608889,26.5640798 51.9843297,28.5000036 55.0827415,28.5000036 Z M40.9171869,24.0000143 C39.0328073,24.0000143 37.4999893,22.6546959 37.4999893,21.0000286 C37.4999893,19.3453471 39.0328073,18.0000286 40.9171869,18.0000286 C42.707771,18.0000286 44.3577763,19.6921938 45.3234264,21.0000286 C44.3671604,22.2937501 42.7031019,24.0000143 40.9171869,24.0000143 Z M55.0827415,24.0000143 C53.2921574,24.0000143 51.6421522,22.3078492 50.676502,21.0000286 C51.6327681,19.7062929 53.2968266,18.0000286 55.0827415,18.0000286 C56.9671212,18.0000286 58.4999392,19.3453471 58.4999392,21.0000286 C58.4999392,22.6546959 56.9671212,24.0000143 55.0827415,24.0000143 Z","id","i",1,"fill-color-primary"],["id","Oval","cx","48.644129","cy","75.1589677","rx","48.644129","ry","6.61766437",1,"fill-color-2"],["id","Group-44","transform","translate(27.000000, 69.000000)","fill-rule","nonzero"],["id","Path","transform","translate(118.400000, 7.089946) scale(-1, 1) translate(-118.400000, -7.089946) ","points","234.731878 6.60770626 8.52651283e-14 6.60770626 8.52651283e-14 7.57218541 236.8 7.57218541",1,"fill-color-19"],["d","M120.192,8.96 L105.856,8.96 L105.856,1.86517468e-14 L120.192,1.86517468e-14 L120.192,8.96 Z M106.479304,8.57043501 L119.568696,8.57043501 L119.568696,0.389564988 L106.479304,0.389564988 L106.479304,8.57043501 Z","id","Shape","transform","translate(113.024000, 4.480000) scale(-1, 1) translate(-113.024000, -4.480000) ",1,"fill-color-19"],["id","Group-43","transform","translate(179.000000, 40.000000)"],["d","M225.805162,92.2474279 C226.071703,92.2474279 226.325569,92.1077892 226.465207,91.8666288 L232.050261,82.2197185 C232.345374,81.7151473 231.980441,81.0773212 231.393376,81.0773212 L227.731346,81.0773212 L229.083201,76.9583506 C229.210134,76.4759989 228.845202,76 228.346983,76 L223.777394,76 C223.396595,76 223.07291,76.2824384 223.022149,76.6600456 L222.006685,84.2760274 C221.946379,84.7329987 222.301798,85.1391782 222.76193,85.1391782 L226.528674,85.1391782 L225.065752,91.3112968 C224.951525,91.7936485 225.319618,92.2474279 225.805162,92.2474279 Z","id","b","fill-rule","nonzero","transform","translate(227.077378, 84.123714) rotate(14.000000) translate(-227.077378, -84.123714) ",1,"fill-color-12"],["fxFlex","30","viewBox","0 0 205 121","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["id","LoopIn_Step05","transform","translate(-2386.000000, -764.000000)","fill-rule","nonzero"],["id","LoopIn_Step05","transform","translate(2386.000000, 764.000000)"],["id","Illustration_Step02"],["id","Group-31"],["id","Rectangle","x","0","y","0","width","90.1490688","height","100.616012",1,"fill-color-10"],["id","Rectangle","x","1.48932403","y","67.1775068","width","87.1682273","height","31.2472904",1,"fill-color-1"],["id","Rectangle","x","8.64422093","y","74.5890324","width","51.2","height","16.0118784",1,"fill-color-primary-lighter"],["id","Oval","cx","76.317438","cy","82.4918815","r","8.15070413",1,"fill-color-primary-darker"],["id","Rectangle","x","1.48932403","y","34.712875","width","87.1682273","height","31.2472904",1,"fill-color-1"],["id","Rectangle","x","8.64422093","y","42.1244006","width","51.2","height","16.0118784",1,"fill-color-primary-lighter"],["id","Oval","cx","76.317438","cy","50.0294431","r","8.15070413",1,"fill-color-primary-darker"],["id","Rectangle","x","1.48932403","y","2.2482432","width","87.1682273","height","31.2472904",1,"fill-color-1"],["id","Rectangle","x","8.64422093","y","74.5890324","width","24","height","16.0118784",1,"fill-color-primary"],["id","Rectangle","x","8.64422093","y","42.1244006","width","36.8","height","16.0118784",1,"fill-color-primary"],["id","Rectangle","x","8.64422093","y","9.66196224","width","51.2","height","16.0118784",1,"fill-color-primary"],["id","Oval","fill","url(#linearGradient-1)","cx","76.317438","cy","50.2465905","r","8.78679245"],["id","Oval","fill","url(#linearGradient-1)","cx","76.317438","cy","82.7090289","r","8.78679245"],["id","Group","transform","translate(60.115627, 35.744427)"],["d","M133.318807,1.04548939 L82.5936439,1.04548939 L82.5936439,0 L59.5928852,0 L59.5928852,1.04548939 L8.65861943,1.04548939 C7.74861523,1.04548887 6.87588228,1.4069864 6.23241214,2.05045654 C5.58894199,2.69392669 5.22744498,3.56665964 5.22744498,4.47666384 L5.22744498,73.9350108 C5.22744498,74.8450173 5.5889387,75.7177532 6.23240879,76.3612266 C6.87587888,77.0047 7.74861298,77.3662028 8.65861943,77.3662028 L133.318807,77.3662028 C135.213795,77.3662028 136.749981,75.8300048 136.749981,73.9350167 L136.749981,4.47666384 C136.749981,3.56665964 136.388484,2.69392669 135.745014,2.05045654 C135.101544,1.4069864 134.228811,1.04548887 133.318807,1.04548939 Z","id","Path",1,"fill-color-20"],["id","Rectangle","x","9.82759671","y","7.10932665","width","122.322231","height","69.0022838",1,"fill-color-25"],["id","Path","opacity","0.257273065","points","97.1677755 76.1116475 9.82763376 76.1116475 9.82763376 7.10937149",1,"fill-color-24"],["id","Oval","cx","28.9673627","cy","59.1901502","r","11.7579927",1,"fill-color-25"],["d","M31.5848237,68.0274261 C25.669241,68.0274261 20.3361447,64.4639649 18.0723494,58.9986791 C15.808554,53.5333932 17.0598755,47.2425772 21.2428244,43.0596288 C25.4257733,38.8766804 31.7165895,37.6253598 37.1818751,39.8891559 C42.6471607,42.1529519 46.2106203,47.4860487 46.2106203,53.4016314 C46.2014756,61.4754447 39.6586369,68.0182825 31.5848237,68.0274261 L31.5848237,68.0274261 Z M31.5848237,38.967022 C23.612809,38.967022 17.1502143,45.4296168 17.1502143,53.4016314 C17.1502143,61.3736461 23.612809,67.8362409 31.5848237,67.8362409 C39.5568383,67.8362409 46.0194331,61.3736461 46.0194331,53.4016314 C46.010427,45.4333502 39.5531049,38.9760281 31.5848237,38.967022 L31.5848237,38.967022 Z","id","Shape",1,"fill-color-primary"],["id","Rectangle","x","99.4252759","y","44.3228077","width","11.4262324","height","2.38757043",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","25.733862","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","28.9741379","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","32.2144137","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","35.4546875","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","38.6949634","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","119.89017","y","8.50924347","width","4.7751428","height","4.7751428",1,"fill-color-6"],["d","M126.882344,15.5014148 L121.083948,15.5014148 L121.083948,9.70301894 L126.882344,9.70301894 L126.882344,15.5014148 Z M121.336061,15.2493191 L126.63024,15.2493191 L126.63024,9.95513218 L121.336061,9.95513218 L121.336061,15.2493191 Z","id","Shape",1,"fill-color-19"],["d","M140.184525,74.8570201 L128.246669,74.8570201 L128.246669,73.9969059 C128.246671,73.9516751 128.228704,73.9082962 128.196721,73.876313 C128.164738,73.8443298 128.12136,73.826364 128.076129,73.826364 L123.98315,73.826364 C123.937919,73.826364 123.89454,73.8443305 123.862558,73.8763135 C123.830575,73.9082966 123.812608,73.9516752 123.81261,73.9969059 L123.81261,74.8570201 L121.254497,74.8570201 L121.254497,73.9969059 C121.254499,73.9516752 121.236532,73.9082966 121.204549,73.8763135 C121.172566,73.8443305 121.129188,73.826364 121.083957,73.826364 L116.990978,73.826364 C116.945747,73.826364 116.902368,73.8443297 116.870385,73.8763129 C116.838402,73.908296 116.820435,73.9516749 116.820436,73.9969059 L116.820436,74.8570201 L114.262326,74.8570201 L114.262326,73.9969059 C114.262328,73.9516749 114.24436,73.908296 114.212377,73.8763129 C114.180394,73.8443297 114.137015,73.826364 114.091784,73.826364 L109.998805,73.826364 C109.953574,73.826364 109.910196,73.8443305 109.878213,73.8763135 C109.84623,73.9082966 109.828263,73.9516752 109.828265,73.9969059 L109.828265,74.8570201 L107.270153,74.8570201 L107.270153,73.9969059 C107.270154,73.9516752 107.252187,73.9082966 107.220204,73.8763135 C107.188222,73.8443305 107.144843,73.826364 107.099613,73.826364 L103.00663,73.826364 C102.961399,73.826364 102.91802,73.8443298 102.886037,73.876313 C102.854054,73.9082962 102.836088,73.9516751 102.83609,73.9969059 L102.83609,74.8570201 L100.277981,74.8570201 L100.277981,73.9969059 C100.277983,73.9516749 100.260016,73.908296 100.228032,73.8763129 C100.196049,73.8443297 100.15267,73.826364 100.107439,73.826364 L96.0144621,73.826364 C95.9692311,73.826364 95.9258522,73.8443297 95.8938691,73.8763129 C95.861886,73.908296 95.8439187,73.9516749 95.8439202,73.9969059 L95.8439202,74.8570201 L93.285808,74.8570201 L93.285808,73.9969059 C93.2858095,73.9516752 93.2678425,73.9082966 93.2358598,73.8763135 C93.2038771,73.8443305 93.1604987,73.826364 93.1152681,73.826364 L89.0222888,73.826364 C88.9770581,73.826364 88.9336797,73.8443305 88.901697,73.8763135 C88.8697143,73.9082966 88.8517473,73.9516752 88.8517489,73.9969059 L88.8517489,74.8570201 L86.2936405,74.8570201 L86.2936405,73.9969059 C86.293642,73.9516752 86.2756751,73.9082966 86.2436923,73.8763135 C86.2117096,73.8443305 86.1683312,73.826364 86.1231006,73.826364 L54.061428,73.826364 C54.0161974,73.826364 53.972819,73.8443305 53.9408363,73.8763135 C53.9088536,73.9082966 53.8908866,73.9516752 53.8908881,73.9969059 L53.8908881,74.8570201 L51.3327759,74.8570201 L51.3327759,73.9969059 C51.3327774,73.9516749 51.3148102,73.908296 51.282827,73.8763129 C51.2508439,73.8443297 51.207465,73.826364 51.162234,73.826364 L47.0692664,73.826364 C47.0240354,73.826364 46.9806565,73.8443297 46.9486734,73.8763129 C46.9166903,73.908296 46.898723,73.9516749 46.8987246,73.9969059 L46.8987246,74.8570201 L44.3406025,74.8570201 L44.3406025,73.9969059 C44.3406046,73.9516751 44.3226378,73.9082962 44.290655,73.876313 C44.2586721,73.8443298 44.2152934,73.826364 44.1700626,73.826364 L40.0770834,73.826364 C40.0318527,73.826364 39.9884743,73.8443305 39.9564916,73.8763135 C39.9245089,73.9082966 39.9065419,73.9516752 39.9065435,73.9969059 L39.9065435,74.8570201 L37.3484312,74.8570201 L37.3484312,73.9969059 C37.3484327,73.9516752 37.3304657,73.9082966 37.298483,73.8763135 C37.2665003,73.8443305 37.2231219,73.826364 37.1778913,73.826364 L33.084912,73.826364 C33.039681,73.826364 32.9963021,73.8443297 32.964319,73.8763129 C32.9323358,73.908296 32.9143686,73.9516749 32.9143701,73.9969059 L32.9143701,74.8570201 L30.3562598,74.8570201 L30.3562598,73.9969059 C30.3562614,73.9516749 30.3382941,73.908296 30.306311,73.8763129 C30.2743278,73.8443297 30.2309489,73.826364 30.1857179,73.826364 L26.0927387,73.826364 C26.047508,73.826364 26.0041296,73.8443305 25.9721469,73.8763135 C25.9401642,73.9082966 25.9221972,73.9516752 25.9221988,73.9969059 L25.9221988,74.8570201 L23.3640826,74.8570201 L23.3640826,73.9969059 C23.3640841,73.9516752 23.3461171,73.9082966 23.3141344,73.8763135 C23.2821517,73.8443305 23.2387733,73.826364 23.1935427,73.826364 L19.1005673,73.826364 C19.0553365,73.826364 19.0119578,73.8443298 18.979975,73.876313 C18.9479921,73.9082962 18.9300253,73.9516751 18.9300274,73.9969059 L18.9300274,74.8570201 L16.3719151,74.8570201 L16.3719151,73.9969059 C16.3719167,73.9516749 16.3539494,73.908296 16.3219663,73.8763129 C16.2899831,73.8443297 16.2466042,73.826364 16.2013733,73.826364 L12.1083959,73.826364 C12.0631649,73.826364 12.0197861,73.8443297 11.9878029,73.8763129 C11.9558198,73.908296 11.9378525,73.9516749 11.9378541,73.9969059 L11.9378541,74.8570201 L4.09297732,74.8570201 C1.83248849,74.8570223 0,76.6895106 0,78.9499994 L0,80.8007483 C0,83.061233 1.83249262,84.8937159 4.09297732,84.8937159 L140.184525,84.8937159 C142.44501,84.8937159 144.277504,83.0612333 144.277504,80.8007483 L144.277504,78.9499994 C144.277504,76.6895102 142.445014,74.8570223 140.184525,74.8570201 Z","id","Path",1,"fill-color-20"],["d","M88.0406297,103.870828 C88.3071704,103.870828 88.5610365,103.731189 88.7006752,103.490029 L94.2857286,93.8431185 C94.5808417,93.3385473 94.2159092,92.7007212 93.6288439,92.7007212 L89.9668136,92.7007212 L91.318669,88.5817505 C91.445602,88.0993988 91.0806695,87.6234 90.5824512,87.6234 L86.0128621,87.6234 C85.632063,87.6234 85.3083776,87.9058383 85.2576168,88.2834455 L84.2421525,95.8994274 C84.1818469,96.3563987 84.5372656,96.7625782 84.9973979,96.7625782 L88.7641417,96.7625782 L87.30122,102.934697 C87.1869926,103.417048 87.555086,103.870828 88.0406297,103.870828 Z","id","b","transform","translate(89.312846, 95.747114) rotate(14.000000) translate(-89.312846, -95.747114) ",1,"fill-color-21"],["id","Oval","cx","74.1507041","cy","17.5648113","r","8.15070413",1,"fill-color-primary"]],template:function(t,e){if(1&t&&(h.YNc(0,tt,1,0,"ng-container",0),h.YNc(1,it,32,5,"ng-template",null,1,h.W1O),h.YNc(3,nt,66,5,"ng-template",null,2,h.W1O),h.YNc(5,rt,93,5,"ng-template",null,3,h.W1O),h.YNc(7,st,54,5,"ng-template",null,4,h.W1O),h.YNc(9,ot,51,5,"ng-template",null,5,h.W1O)),2&t){const t=h.MAs(2),i=h.MAs(4),n=h.MAs(6),r=h.MAs(8),s=h.MAs(10);h.Q6J("ngTemplateOutlet",1===e.stepNumber?t:2===e.stepNumber?i:3===e.stepNumber?n:4===e.stepNumber?r:s)}},directives:[p.tP,y.xw,y.yH,y.Wh,p.mk,x.oO,b.n5,b.$j],styles:["svg.small-svg[_ngcontent-%COMP%]{height:50%;min-height:50%;max-width:100%}svg.large-svg[_ngcontent-%COMP%]{height:60%;min-height:60%;max-width:100%}"],data:{animation:[G.l]}}),t})();const lt=["stepper"];function ct(t,e){if(1&t&&(h.TgZ(0,"div",48),h.TgZ(1,"p",49),h.TgZ(2,"strong"),h._uU(3,"Channel Peer:\xa0"),h.qZA(),h._uU(4),h.ALo(5,"titlecase"),h.qZA(),h.TgZ(6,"p",50),h.TgZ(7,"strong"),h._uU(8,"Channel ID:\xa0"),h.qZA(),h._uU(9),h.qZA(),h._UZ(10,"p",50),h.qZA()),2&t){const t=h.oxw(2);h.xp6(4),h.Oqu(h.lcZ(5,2,t.channel.remote_alias)),h.xp6(5),h.Oqu(t.channel.chan_id)}}function ht(t,e){if(1&t&&h._uU(0),2&t){const t=h.oxw(2);h.Oqu(t.inputFormLabel)}}function ut(t,e){1&t&&(h.TgZ(0,"mat-error"),h._uU(1,"Amount is required."),h.qZA())}function dt(t,e){if(1&t&&(h.TgZ(0,"mat-error"),h._uU(1),h.ALo(2,"number"),h.qZA()),2&t){const t=h.oxw(2);h.xp6(1),h.hij("Amount must be greater than or equal to ",h.lcZ(2,1,t.minQuote.amount),".")}}function pt(t,e){if(1&t&&(h.TgZ(0,"mat-error"),h._uU(1),h.ALo(2,"number"),h.qZA()),2&t){const t=h.oxw(2);h.xp6(1),h.hij("Amount must be less than or equal to ",h.lcZ(2,1,t.maxQuote.amount),".")}}function ft(t,e){1&t&&(h.TgZ(0,"mat-error"),h._uU(1,"Confirmation target is required."),h.qZA())}function mt(t,e){1&t&&(h.TgZ(0,"mat-error"),h._uU(1,"Confirmation target must be a positive number."),h.qZA())}function gt(t,e){1&t&&(h.TgZ(0,"mat-error"),h._uU(1,"Percentage is required."),h.qZA())}function yt(t,e){1&t&&(h.TgZ(0,"mat-error"),h._uU(1,"Percentage must be a positive number."),h.qZA())}function bt(t,e){if(1&t&&(h.TgZ(0,"mat-form-field",50),h._UZ(1,"input",51),h.YNc(2,gt,2,0,"mat-error",25),h.YNc(3,yt,2,0,"mat-error",25),h.qZA()),2&t){const t=h.oxw(2);h.xp6(1),h.Q6J("step",1),h.xp6(1),h.Q6J("ngIf",null==t.inputFormGroup.controls.routingFeePercent.errors?null:t.inputFormGroup.controls.routingFeePercent.errors.required),h.xp6(1),h.Q6J("ngIf",null==t.inputFormGroup.controls.routingFeePercent.errors?null:t.inputFormGroup.controls.routingFeePercent.errors.min)}}function vt(t,e){1&t&&(h.TgZ(0,"mat-slide-toggle",52),h._uU(1,"Fast"),h.qZA())}function _t(t,e){if(1&t&&h._uU(0),2&t){const t=h.oxw(2);h.Oqu(t.quoteFormLabel)}}function wt(t,e){1&t&&(h.TgZ(0,"p",53),h.TgZ(1,"mat-icon",54),h._uU(2,"close"),h.qZA(),h._uU(3,"Local balance amount is insufficient for swap."),h.qZA())}function xt(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",55),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).onValidateAmount()}),h._uU(1,"Next"),h.qZA()}}function Ct(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",56),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).onLoop()}),h._uU(1),h.qZA()}if(2&t){const t=h.oxw(2);h.xp6(1),h.hij("Initiate ",t.loopDirectionCaption,"")}}function At(t,e){if(1&t&&h._uU(0),2&t){const t=h.oxw(3);h.Oqu(t.addressFormLabel)}}function St(t,e){1&t&&(h.TgZ(0,"mat-error"),h._uU(1,"Address is required."),h.qZA())}function Et(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"mat-step",16),h.TgZ(1,"form",17),h.YNc(2,At,1,1,"ng-template",18),h.TgZ(3,"div",57),h.TgZ(4,"mat-radio-group",58),h.NdJ("change",function(e){return h.CHM(t),h.oxw(2).onAddressTypeChange(e)}),h.TgZ(5,"mat-radio-button",59),h._uU(6,"Node Local Address"),h.qZA(),h.TgZ(7,"mat-radio-button",60),h._uU(8,"External Address"),h.qZA(),h.qZA(),h.TgZ(9,"mat-form-field",61),h._UZ(10,"input",62),h.YNc(11,St,2,0,"mat-error",25),h.qZA(),h.qZA(),h.TgZ(12,"div",29),h.TgZ(13,"button",63),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).onLoop()}),h._uU(14),h.qZA(),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=h.oxw(2);h.Q6J("stepControl",t.addressFormGroup)("editable",t.flgEditable),h.xp6(1),h.Q6J("formGroup",t.addressFormGroup),h.xp6(9),h.Q6J("required","external"===t.addressFormGroup.controls.addressType.value),h.xp6(1),h.Q6J("ngIf",null==t.addressFormGroup.controls.address.errors?null:t.addressFormGroup.controls.address.errors.required),h.xp6(3),h.hij("Initiate ",t.loopDirectionCaption,"")}}function kt(t,e){if(1&t&&h._uU(0),2&t){const t=h.oxw(2);h.hij("",t.loopDirectionCaption," Status")}}function Tt(t,e){if(1&t&&(h.TgZ(0,"mat-icon",64),h._uU(1),h.qZA()),2&t){const t=h.oxw(2);h.xp6(1),h.Oqu(t.loopStatus&&null!=t.loopStatus&&t.loopStatus.id_bytes?"check":"close")}}function Mt(t,e){1&t&&h._UZ(0,"div")}function Lt(t,e){1&t&&h._UZ(0,"mat-progress-bar",65)}function It(t,e){if(1&t&&(h.TgZ(0,"h4",66),h._uU(1),h.qZA()),2&t){const t=h.oxw(2);h.xp6(1),h.Oqu(t.loopStatus&&t.loopStatus.error?t.loopDirectionCaption+" failed.":t.loopStatus&&t.loopStatus.id_bytes&&t.channel?t.loopDirectionCaption+" request placed successfully. You can check the status of the request on the 'Loop' menu.":t.loopDirectionCaption+" request placed successfully.")}}function Ot(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",67),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).goToLoop()}),h._uU(1,"Check Status"),h.qZA()}}function Dt(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",68),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).onRestart()}),h._uU(1,"Start Again"),h.qZA()}}function Rt(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",3),h.TgZ(1,"div",4),h.TgZ(2,"mat-card-header",5),h.TgZ(3,"div",6),h.TgZ(4,"span",7),h._uU(5),h.qZA(),h.qZA(),h.TgZ(6,"div",8),h.TgZ(7,"button",9),h.NdJ("click",function(){return h.CHM(t),h.oxw().showInfo()}),h._uU(8,"?"),h.qZA(),h.TgZ(9,"button",10),h.NdJ("click",function(){return h.CHM(t),h.oxw().onClose()}),h._uU(10,"X"),h.qZA(),h.qZA(),h.qZA(),h.TgZ(11,"mat-card-content",11),h.TgZ(12,"div",12),h.YNc(13,ct,11,4,"div",13),h.TgZ(14,"mat-vertical-stepper",14,15),h.NdJ("selectionChange",function(e){return h.CHM(t),h.oxw().stepSelectionChanged(e)}),h.TgZ(16,"mat-step",16),h.TgZ(17,"form",17),h.YNc(18,ht,1,1,"ng-template",18),h.TgZ(19,"div",19),h._UZ(20,"rtl-loop-quote",20),h._UZ(21,"rtl-loop-quote",20),h.qZA(),h.TgZ(22,"div",21),h.TgZ(23,"mat-form-field",22),h._UZ(24,"input",23),h.TgZ(25,"mat-hint"),h._uU(26),h.ALo(27,"number"),h.ALo(28,"number"),h.qZA(),h.TgZ(29,"span",24),h._uU(30,"Sats"),h.qZA(),h.YNc(31,ut,2,0,"mat-error",25),h.YNc(32,dt,3,3,"mat-error",25),h.YNc(33,pt,3,3,"mat-error",25),h.qZA(),h.TgZ(34,"mat-form-field",22),h._UZ(35,"input",26),h.YNc(36,ft,2,0,"mat-error",25),h.YNc(37,mt,2,0,"mat-error",25),h.qZA(),h.YNc(38,bt,4,3,"mat-form-field",27),h.YNc(39,vt,2,0,"mat-slide-toggle",28),h.qZA(),h.TgZ(40,"div",29),h.TgZ(41,"button",30),h.NdJ("click",function(){return h.CHM(t),h.oxw().onEstimateQuote()}),h._uU(42,"Estimate Quote"),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.TgZ(43,"mat-step",16),h.TgZ(44,"form",17),h.YNc(45,_t,1,1,"ng-template",18),h._UZ(46,"rtl-loop-quote",31),h.YNc(47,wt,4,0,"p",32),h.TgZ(48,"div",29),h.YNc(49,xt,2,0,"button",33),h.YNc(50,Ct,2,1,"button",34),h.qZA(),h.qZA(),h.qZA(),h.YNc(51,Et,15,6,"mat-step",35),h.TgZ(52,"mat-step",36),h.TgZ(53,"form",17),h.YNc(54,kt,1,1,"ng-template",18),h.TgZ(55,"div",37),h.TgZ(56,"mat-expansion-panel",38),h.TgZ(57,"mat-expansion-panel-header"),h.TgZ(58,"mat-panel-title"),h.TgZ(59,"span",39),h._uU(60),h.YNc(61,Tt,2,1,"mat-icon",40),h.qZA(),h.qZA(),h.qZA(),h.YNc(62,Mt,1,0,"div",41),h.qZA(),h.YNc(63,Lt,1,0,"mat-progress-bar",42),h.qZA(),h.YNc(64,It,2,1,"h4",43),h.TgZ(65,"div",29),h.YNc(66,Ot,2,0,"button",44),h.YNc(67,Dt,2,0,"button",45),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.TgZ(68,"div",46),h.TgZ(69,"button",47),h._uU(70,"Close"),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=h.oxw(),e=h.MAs(2);h.Q6J("@opacityAnimation",void 0),h.xp6(3),h.Q6J("fxFlex",t.screenSize===t.screenSizeEnum.XS||t.screenSize===t.screenSizeEnum.SM?"83":"91"),h.xp6(2),h.Oqu(t.channel?"Channel "+t.loopDirectionCaption:t.loopDirectionCaption),h.xp6(1),h.Q6J("fxFlex",t.screenSize===t.screenSizeEnum.XS||t.screenSize===t.screenSizeEnum.SM?"17":"9"),h.xp6(7),h.Q6J("ngIf",t.channel),h.xp6(1),h.Q6J("linear",!0),h.xp6(2),h.Q6J("stepControl",t.inputFormGroup)("editable",t.flgEditable),h.xp6(1),h.Q6J("formGroup",t.inputFormGroup),h.xp6(3),h.Q6J("quote",t.minQuote)("termCaption","min")("panelExpanded",!1)("showPanel",!0),h.xp6(1),h.Q6J("quote",t.maxQuote)("termCaption","max")("panelExpanded",!1)("showPanel",!0),h.xp6(2),h.Q6J("fxFlex",t.direction===t.LoopTypeEnum.LOOP_OUT?"30":"48"),h.xp6(1),h.Q6J("step",1e3),h.xp6(2),h.AsE("Range: ",h.lcZ(27,51,t.minQuote.amount),"-",h.lcZ(28,53,t.maxQuote.amount),""),h.xp6(5),h.Q6J("ngIf",null==t.inputFormGroup.controls.amount.errors?null:t.inputFormGroup.controls.amount.errors.required),h.xp6(1),h.Q6J("ngIf",null==t.inputFormGroup.controls.amount.errors?null:t.inputFormGroup.controls.amount.errors.min),h.xp6(1),h.Q6J("ngIf",null==t.inputFormGroup.controls.amount.errors?null:t.inputFormGroup.controls.amount.errors.max),h.xp6(1),h.Q6J("fxFlex",t.direction===t.LoopTypeEnum.LOOP_OUT?"20":"48"),h.xp6(1),h.Q6J("step",1),h.xp6(1),h.Q6J("ngIf",null==t.inputFormGroup.controls.sweepConfTarget.errors?null:t.inputFormGroup.controls.sweepConfTarget.errors.required),h.xp6(1),h.Q6J("ngIf",null==t.inputFormGroup.controls.sweepConfTarget.errors?null:t.inputFormGroup.controls.sweepConfTarget.errors.min),h.xp6(1),h.Q6J("ngIf",t.direction===t.LoopTypeEnum.LOOP_OUT),h.xp6(1),h.Q6J("ngIf",t.direction===t.LoopTypeEnum.LOOP_OUT),h.xp6(4),h.Q6J("stepControl",t.quoteFormGroup)("editable",t.flgEditable),h.xp6(1),h.Q6J("formGroup",t.quoteFormGroup),h.xp6(2),h.Q6J("quote",t.quote)("showPanel",!1),h.xp6(1),h.Q6J("ngIf",t.inputFormGroup.controls.amount.value>t.localBalanceToCompare),h.xp6(2),h.Q6J("ngIf",t.direction===t.LoopTypeEnum.LOOP_OUT),h.xp6(1),h.Q6J("ngIf",t.direction===t.LoopTypeEnum.LOOP_IN),h.xp6(1),h.Q6J("ngIf",t.direction===t.LoopTypeEnum.LOOP_OUT),h.xp6(1),h.Q6J("stepControl",t.statusFormGroup),h.xp6(1),h.Q6J("formGroup",t.statusFormGroup),h.xp6(3),h.Q6J("expanded",!!t.loopStatus),h.xp6(4),h.Oqu(t.loopStatus?t.loopStatus.id_bytes?t.loopDirectionCaption+" request details":t.loopDirectionCaption+" error details":"Waiting for "+t.loopDirectionCaption+" request..."),h.xp6(1),h.Q6J("ngIf",t.loopStatus),h.xp6(1),h.Q6J("ngIf",!t.loopStatus)("ngIfElse",e),h.xp6(1),h.Q6J("ngIf",!t.loopStatus),h.xp6(1),h.Q6J("ngIf",t.loopStatus),h.xp6(2),h.Q6J("ngIf",t.loopStatus&&t.loopStatus.id_bytes&&t.channel),h.xp6(1),h.Q6J("ngIf",t.loopStatus&&(t.loopStatus.error||!t.loopStatus.id_bytes)),h.xp6(2),h.Q6J("mat-dialog-close",!1)}}function Nt(t,e){if(1&t&&h._UZ(0,"rtl-loop-status",69),2&t){const t=h.oxw();h.Q6J("loopStatus",t.loopStatus)}}function Pt(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"rtl-loop-out-info-graphics",86),h.NdJ("stepNumberChange",function(e){return h.CHM(t),h.oxw(2).stepNumber=e}),h.qZA()}if(2&t){const t=h.oxw(2);h.Q6J("stepNumber",t.stepNumber)("animationDirection",t.animationDirection)}}function Ft(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"rtl-loop-in-info-graphics",86),h.NdJ("stepNumberChange",function(e){return h.CHM(t),h.oxw(2).stepNumber=e}),h.qZA()}if(2&t){const t=h.oxw(2);h.Q6J("stepNumber",t.stepNumber)("animationDirection",t.animationDirection)}}const Zt=function(t,e){return{"dot-primary":t,"dot-primary-lighter":e}};function Bt(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"span",87),h.NdJ("click",function(){const e=h.CHM(t).$implicit;return h.oxw(2).onStepChanged(e)}),h._UZ(1,"p",88),h.qZA()}if(2&t){const t=e.$implicit,i=h.oxw(2);h.xp6(1),h.Q6J("ngClass",h.WLB(1,Zt,i.stepNumber===t,i.stepNumber!==t))}}function Ut(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",89),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).onReadMore()}),h._uU(1,"Read More"),h.qZA()}}function qt(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",90),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).onStepChanged(4)}),h._uU(1,"Back"),h.qZA()}}function zt(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",91),h.NdJ("click",function(){h.CHM(t);const e=h.oxw(2);return e.flgShowInfo=!1,e.stepNumber=1}),h._uU(1,"Close"),h.qZA()}}function Ht(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",92),h.NdJ("click",function(){h.CHM(t);const e=h.oxw(2);return e.flgShowInfo=!1,e.stepNumber=1}),h._uU(1,"Close"),h.qZA()}}function Yt(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",93),h.NdJ("click",function(){h.CHM(t);const e=h.oxw(2);return e.onStepChanged(e.stepNumber-1)}),h._uU(1,"Back"),h.qZA()}}function Gt(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",94),h.NdJ("click",function(){h.CHM(t);const e=h.oxw(2);return e.onStepChanged(e.stepNumber+1)}),h._uU(1,"Next"),h.qZA()}}const jt=function(){return[1,2,3,4,5]};function Vt(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",70),h.TgZ(1,"div",19),h.TgZ(2,"mat-card-header",71),h.TgZ(3,"div",72),h._UZ(4,"span",7),h.qZA(),h.TgZ(5,"div",73),h.TgZ(6,"button",74),h.NdJ("click",function(){h.CHM(t);const e=h.oxw();return e.flgShowInfo=!1,e.stepNumber=1}),h._uU(7,"X"),h.qZA(),h.qZA(),h.qZA(),h.TgZ(8,"mat-card-content",75),h.YNc(9,Pt,1,2,"rtl-loop-out-info-graphics",76),h.YNc(10,Ft,1,2,"rtl-loop-in-info-graphics",76),h.qZA(),h.TgZ(11,"div",77),h.YNc(12,Bt,2,4,"span",78),h.qZA(),h.TgZ(13,"div",79),h.YNc(14,Ut,2,0,"button",80),h.YNc(15,qt,2,0,"button",81),h.YNc(16,zt,2,0,"button",82),h.YNc(17,Ht,2,0,"button",83),h.YNc(18,Yt,2,0,"button",84),h.YNc(19,Gt,2,0,"button",85),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=h.oxw();h.Q6J("@opacityAnimation",void 0),h.xp6(9),h.Q6J("ngIf",t.direction===t.LoopTypeEnum.LOOP_OUT),h.xp6(1),h.Q6J("ngIf",t.direction===t.LoopTypeEnum.LOOP_IN),h.xp6(2),h.Q6J("ngForOf",h.DdM(10,jt)),h.xp6(2),h.Q6J("ngIf",5===t.stepNumber),h.xp6(1),h.Q6J("ngIf",5===t.stepNumber),h.xp6(1),h.Q6J("ngIf",5===t.stepNumber),h.xp6(1),h.Q6J("ngIf",t.stepNumber<5),h.xp6(1),h.Q6J("ngIf",t.stepNumber>1&&t.stepNumber<5),h.xp6(1),h.Q6J("ngIf",t.stepNumber<5)}}let Qt=(()=>{class t{constructor(t,e,i,n,s,o,l,h,u){this.dialogRef=t,this.data=e,this.store=i,this.loopService=n,this.formBuilder=s,this.decimalPipe=o,this.logger=l,this.router=h,this.commonService=u,this.faInfoCircle=a.sqG,this.LoopTypeEnum=c.$I,this.direction=c.$I.LOOP_OUT,this.loopDirectionCaption="Loop out",this.loopStatus=null,this.inputFormLabel="Amount to loop out",this.quoteFormLabel="Confirm Quote",this.addressFormLabel="Withdrawal Address",this.prepayRoutingFee=36,this.flgShowInfo=!1,this.stepNumber=1,this.screenSize="",this.screenSizeEnum=c.cu,this.animationDirection="forward",this.flgEditable=!0,this.localBalanceToCompare=null,this.unSubs=[new r.x,new r.x,new r.x,new r.x,new r.x,new r.x,new r.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.channel=this.data.channel,this.minQuote=this.data.minQuote?this.data.minQuote:{},this.maxQuote=this.data.maxQuote?this.data.maxQuote:{},this.direction=this.data.direction,this.loopDirectionCaption=this.direction===c.$I.LOOP_IN?"Loop in":"Loop out",this.inputFormLabel="Amount to "+this.loopDirectionCaption,this.inputFormGroup=this.formBuilder.group({amount:[this.minQuote.amount,[n.kI.required,n.kI.min(this.minQuote.amount),n.kI.max(this.maxQuote.amount)]],sweepConfTarget:[6,[n.kI.required,n.kI.min(1)]],routingFeePercent:[2,[n.kI.required,n.kI.min(0)]],fast:[!1,[n.kI.required]]}),this.quoteFormGroup=this.formBuilder.group({}),this.addressFormGroup=this.formBuilder.group({addressType:["local",[n.kI.required]],address:[{value:"",disabled:!0}]}),this.statusFormGroup=this.formBuilder.group({}),this.onFormValueChanges(),this.store.select("lnd").pipe((0,s.R)(this.unSubs[6])).subscribe(t=>{this.localBalanceToCompare=this.channel?+this.channel.local_balance:+t.totalLocalBalance})}ngAfterViewInit(){this.inputFormGroup.setErrors({Invalid:!0}),this.direction===c.$I.LOOP_OUT&&this.addressFormGroup.setErrors({Invalid:!0})}onFormValueChanges(){this.inputFormGroup.valueChanges.pipe((0,s.R)(this.unSubs[4])).subscribe(t=>{this.inputFormGroup.setErrors({Invalid:!0})}),this.direction===c.$I.LOOP_OUT&&this.addressFormGroup.valueChanges.pipe((0,s.R)(this.unSubs[5])).subscribe(t=>{this.addressFormGroup.setErrors({Invalid:!0})})}onAddressTypeChange(t){"external"===t.value?(this.addressFormGroup.controls.address.setValidators([n.kI.required]),this.addressFormGroup.controls.address.markAsTouched(),this.addressFormGroup.controls.address.enable()):(this.addressFormGroup.controls.address.setValidators(null),this.addressFormGroup.controls.address.markAsPristine(),this.addressFormGroup.controls.address.disable(),this.addressFormGroup.controls.address.setValue("")),this.addressFormGroup.setErrors({Invalid:!0})}onValidateAmount(){this.inputFormGroup.controls.amount.value<=this.localBalanceToCompare&&this.stepper.next()}onLoop(){if(!this.inputFormGroup.controls.amount.value||this.inputFormGroup.controls.amount.valuethis.maxQuote.amount||!this.inputFormGroup.controls.sweepConfTarget.value||this.inputFormGroup.controls.sweepConfTarget.value<2||this.direction===c.$I.LOOP_OUT&&(!this.inputFormGroup.controls.routingFeePercent.value||this.inputFormGroup.controls.routingFeePercent.value<0)||this.direction===c.$I.LOOP_OUT&&"external"===this.addressFormGroup.controls.addressType.value&&(!this.addressFormGroup.controls.address.value||""===this.addressFormGroup.controls.address.value.trim()))return!0;if(this.flgEditable=!1,this.stepper.selected.stepControl.setErrors(null),this.stepper.next(),this.direction===c.$I.LOOP_IN)this.loopService.loopIn(this.inputFormGroup.controls.amount.value,+this.quote.swap_fee_sat,+this.quote.htlc_publish_fee_sat,"",!0).pipe((0,s.R)(this.unSubs[0])).subscribe({next:t=>{this.loopStatus=t,this.loopService.listSwaps(),this.flgEditable=!0},error:t=>{this.loopStatus={error:t},this.flgEditable=!0,this.logger.error(t)}});else{const t=Math.ceil(this.inputFormGroup.controls.amount.value*(this.inputFormGroup.controls.routingFeePercent.value/100)),e="external"===this.addressFormGroup.controls.addressType.value?this.addressFormGroup.controls.address.value:"",i=this.inputFormGroup.controls.fast.value?0:(new Date).getTime()+18e5;this.loopService.loopOut(this.inputFormGroup.controls.amount.value,this.channel&&this.channel.chan_id?this.channel.chan_id:"",this.inputFormGroup.controls.sweepConfTarget.value,t,+this.quote.htlc_sweep_fee_sat,this.prepayRoutingFee,+this.quote.prepay_amt_sat,+this.quote.swap_fee_sat,i,e).pipe((0,s.R)(this.unSubs[1])).subscribe({next:t=>{this.loopStatus=t,this.loopService.listSwaps(),this.flgEditable=!0},error:t=>{this.loopStatus={error:t},this.flgEditable=!0,this.logger.error(t)}})}}onEstimateQuote(){if(!this.inputFormGroup.controls.amount.value||this.inputFormGroup.controls.amount.valuethis.maxQuote.amount||!this.inputFormGroup.controls.sweepConfTarget.value||this.inputFormGroup.controls.sweepConfTarget.value<2)return!0;const t=this.inputFormGroup.controls.fast.value?0:(new Date).getTime()+18e5;this.direction===c.$I.LOOP_IN?this.loopService.getLoopInQuote(this.inputFormGroup.controls.amount.value,this.inputFormGroup.controls.sweepConfTarget.value,t).pipe((0,s.R)(this.unSubs[2])).subscribe(t=>{this.quote=t,this.quote.off_chain_swap_routing_fee_percentage=this.inputFormGroup.controls.routingFeePercent.value?this.inputFormGroup.controls.routingFeePercent.value:2}):this.loopService.getLoopOutQuote(this.inputFormGroup.controls.amount.value,this.inputFormGroup.controls.sweepConfTarget.value,t).pipe((0,s.R)(this.unSubs[3])).subscribe(t=>{this.quote=t,this.quote.off_chain_swap_routing_fee_percentage=this.inputFormGroup.controls.routingFeePercent.value?this.inputFormGroup.controls.routingFeePercent.value:2}),this.stepper.selected.stepControl.setErrors(null),this.stepper.next()}stepSelectionChanged(t){switch(t.selectedIndex){case 0:this.inputFormLabel="Amount to "+this.loopDirectionCaption,this.quoteFormLabel="Confirm Quote",this.addressFormLabel="Withdrawal Address";break;case 1:this.inputFormLabel=this.inputFormGroup.controls.amount.value||this.inputFormGroup.controls.sweepConfTarget.value?this.direction===c.$I.LOOP_IN?this.loopDirectionCaption+" Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.amount.value?this.inputFormGroup.controls.amount.value:0)+" Sats | Target Confirmation: "+(this.inputFormGroup.controls.sweepConfTarget.value?this.inputFormGroup.controls.sweepConfTarget.value:6):this.loopDirectionCaption+" Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.amount.value?this.inputFormGroup.controls.amount.value:0)+" Sats | Target Confirmation: "+(this.inputFormGroup.controls.sweepConfTarget.value?this.inputFormGroup.controls.sweepConfTarget.value:6)+" | Percentage: "+(this.inputFormGroup.controls.routingFeePercent.value?this.inputFormGroup.controls.routingFeePercent.value:"2")+" | Fast: "+(this.inputFormGroup.controls.fast.value?"Enabled":"Disabled"):"Amount to "+this.loopDirectionCaption,this.quoteFormLabel="Confirm Quote",this.addressFormLabel="Withdrawal Address";break;case 2:this.inputFormLabel=this.inputFormGroup.controls.amount.value||this.inputFormGroup.controls.sweepConfTarget.value?this.direction===c.$I.LOOP_IN?this.loopDirectionCaption+" Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.amount.value?this.inputFormGroup.controls.amount.value:0)+" Sats | Target Confirmation: "+(this.inputFormGroup.controls.sweepConfTarget.value?this.inputFormGroup.controls.sweepConfTarget.value:6):this.loopDirectionCaption+" Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.amount.value?this.inputFormGroup.controls.amount.value:0)+" Sats | Target Confirmation: "+(this.inputFormGroup.controls.sweepConfTarget.value?this.inputFormGroup.controls.sweepConfTarget.value:6)+" | Fast: "+(this.inputFormGroup.controls.fast.value?"Enabled":"Disabled"):"Amount to "+this.loopDirectionCaption,this.quoteFormLabel=this.quote&&this.quote.swap_fee_sat&&(this.quote.htlc_sweep_fee_sat||this.quote.htlc_publish_fee_sat)&&this.quote.prepay_amt_sat?"Quote confirmed | Estimated Fees: "+this.decimalPipe.transform(+this.quote.swap_fee_sat+ +(this.quote.htlc_sweep_fee_sat?this.quote.htlc_sweep_fee_sat:this.quote.htlc_publish_fee_sat?this.quote.htlc_publish_fee_sat:0))+" Sats":"Quote confirmed",this.addressFormLabel=this.addressFormGroup.controls.addressType.value?"Withdrawal Address | Type: "+this.addressFormGroup.controls.addressType.value:"Withdrawal Address";break;default:this.inputFormLabel="Amount to "+this.loopDirectionCaption,this.quoteFormLabel="Confirm Quote",this.addressFormLabel="Withdrawal Address"}(this.direction===c.$I.LOOP_OUT&&1!==t.selectedIndex&&t.selectedIndex{t.next(null),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(o.so),h.Y36(o.WI),h.Y36(u.yh),h.Y36(d.W),h.Y36(n.qu),h.Y36(p.JJ),h.Y36(f.mQ),h.Y36(m.F0),h.Y36(g.v))},t.\u0275cmp=h.Xpm({type:t,selectors:[["rtl-loop-modal"]],viewQuery:function(t,e){if(1&t&&h.Gf(lt,5),2&t){let t;h.iGM(t=h.CRH())&&(e.stepper=t.first)}},decls:4,vars:2,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf"],["loopStatusBlock",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch","class","info-graphics-container",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxLayoutAlign","start start",3,"fxFlex"],[1,"page-title"],["fxLayoutAlign","space-between end",3,"fxFlex"],["tabindex","21","mat-button","",1,"btn-close-x","p-0",3,"click"],["tabindex","22","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],["class","padding-gap-large","fxLayout","row wrap","fxLayoutAlign","space-between stretch",4,"ngIf"],[3,"linear","selectionChange"],["stepper",""],[3,"stepControl","editable"],["fxLayout","column","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"my-1",3,"formGroup"],["matStepLabel",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],[3,"quote","termCaption","panelExpanded","showPanel"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between center",1,"mt-1"],[3,"fxFlex"],["autoFocus","","matInput","","placeholder","Amount","type","number","tabindex","1","formControlName","amount","required","",3,"step"],["matSuffix",""],[4,"ngIf"],["matInput","","placeholder","Sweep Confirmation Target","type","number","tabindex","2","formControlName","sweepConfTarget","required","",3,"step"],["fxFlex","30",4,"ngIf"],["matTooltip","Swap immediately (Might end up paying a higher on-chain fee)","fxFlex","15","tabindex","4","color","primary","formControlName","fast",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","5","type","button",3,"click"],[3,"quote","showPanel"],["fxFlex","100","class","color-warn mt-2","fxLayoutAlign","start center",4,"ngIf"],["mat-stroked-button","","color","primary","tabindex","6","type","button",3,"click",4,"ngIf"],["mat-stroked-button","","color","primary","tabindex","7","type","button",3,"click",4,"ngIf"],[3,"stepControl","editable",4,"ngIf"],[3,"stepControl"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"flat-expansion-panel",3,"expanded"],["fxLayoutAlign","start center","fxFlex","100"],["class","ml-1 icon-small",4,"ngIf"],[4,"ngIf","ngIfElse"],["fxFlex","100","color","primary","mode","indeterminate",4,"ngIf"],["fxLayoutAlign","start","class","font-bold-500 mt-2",4,"ngIf"],["mat-flat-button","","color","primary","tabindex","12","type","button",3,"click",4,"ngIf"],["mat-flat-button","","color","primary","tabindex","13","type","button",3,"click",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end end"],["mat-stroked-button","","color","primary","tabindex","14","type","button","default","",3,"mat-dialog-close"],["fxLayout","row wrap","fxLayoutAlign","space-between stretch",1,"padding-gap-large"],["fxFlex","40"],["fxFlex","30"],["matInput","","placeholder","Max Off-chain Routing Fee (%)","type","number","tabindex","3","formControlName","routingFeePercent","required","",3,"step"],["matTooltip","Swap immediately (Might end up paying a higher on-chain fee)","fxFlex","15","tabindex","4","color","primary","formControlName","fast"],["fxFlex","100","fxLayoutAlign","start center",1,"color-warn","mt-2"],[1,"mr-1","icon-small"],["mat-stroked-button","","color","primary","tabindex","6","type","button",3,"click"],["mat-stroked-button","","color","primary","tabindex","7","type","button",3,"click"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mt-1"],["color","primary","name","addressType","formControlName","addressType","fxFlex","100","fxLayoutAlign","space-between stretch",3,"change"],["fxFlex","48","tabindex","8","value","local"],["fxFlex","48","tabindex","9","value","external"],["fxFlex","100",1,"mt-1"],["matInput","","placeholder","Address","tabindex","10","formControlName","address",3,"required"],["mat-stroked-button","","color","primary","tabindex","11","type","button",3,"click"],[1,"ml-1","icon-small"],["fxFlex","100","color","primary","mode","indeterminate"],["fxLayoutAlign","start",1,"font-bold-500","mt-2"],["mat-flat-button","","color","primary","tabindex","12","type","button",3,"click"],["mat-flat-button","","color","primary","tabindex","13","type","button",3,"click"],["fxLayout","column",3,"loopStatus"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"info-graphics-container"],["fxLayout","row","fxFlex","8","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],["fxFlex","5","fxLayoutAlign","end center"],["tabindex","19","mat-button","",1,"btn-close-x","p-0",3,"click"],["fxLayout","column","fxFlex","70","fxLayoutAlign","space-between center",1,"padding-gap-x-large"],["fxFlex","100",3,"stepNumber","animationDirection","stepNumberChange",4,"ngIf"],["fxLayout","row","fxFlex","10","fxLayoutAlign","center end",1,"padding-gap-x-large","padding-gap-bottom-large"],["fxLayoutAlign","center center","class","dots-stepper-block",3,"click",4,"ngFor","ngForOf"],["fxLayout","row","fxFlex","10","fxLayoutAlign","end end",1,"padding-gap-x-large","padding-gap-bottom-large"],["mat-stroked-button","","class","mr-1","color","primary","tabindex","15","type","button",3,"click",4,"ngIf"],["mat-flat-button","","class","mr-1","color","primary","tabindex","16","type","button",3,"click",4,"ngIf"],["mat-flat-button","","color","primary","tabindex","17","type","button",3,"click",4,"ngIf"],["mat-stroked-button","","class","mr-1","color","primary","tabindex","18","type","button",3,"click",4,"ngIf"],["mat-flat-button","","class","mr-1","color","primary","tabindex","19","type","button",3,"click",4,"ngIf"],["mat-flat-button","","color","primary","tabindex","20","type","button",3,"click",4,"ngIf"],["fxFlex","100",3,"stepNumber","animationDirection","stepNumberChange"],["fxLayoutAlign","center center",1,"dots-stepper-block",3,"click"],[1,"dot","tiny-dot","mr-0",3,"ngClass"],["mat-stroked-button","","color","primary","tabindex","15","type","button",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","16","type","button",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","17","type","button",3,"click"],["mat-stroked-button","","color","primary","tabindex","18","type","button",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","19","type","button",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","20","type","button",3,"click"]],template:function(t,e){1&t&&(h.YNc(0,Rt,71,55,"div",0),h.YNc(1,Nt,1,1,"ng-template",null,1,h.W1O),h.YNc(3,Vt,20,11,"div",2)),2&t&&(h.Q6J("ngIf",!e.flgShowInfo),h.xp6(3),h.Q6J("ngIf",e.flgShowInfo))},directives:[p.O5,y.xw,y.yH,y.Wh,b.dk,v.lW,b.dn,_.Vq,_.C0,n._Y,n.JL,n.sg,_.VY,D,R.KE,N.Nt,n.wV,n.Fj,P.h,n.JJ,n.u,n.Q7,R.bx,R.R9,w.ib,w.yz,w.yK,o.ZT,R.TO,F.Rr,C.gM,Z.Hw,B.VQ,B.U0,U.pW,Y,p.sg,$,at,p.mk,x.oO],pipes:[p.JJ,p.rS],styles:[".dots-stepper-block[_ngcontent-%COMP%]{width:3rem}.info-graphics-container[_ngcontent-%COMP%]{max-height:60rem;min-height:60rem}"],data:{animation:[l._]}}),t})()},6880:(t,e,i)=>{"use strict";i.d(e,{h:()=>r});var n=i(1572);let r=(()=>{class t{constructor(t){this.el=t}ngAfterContentInit(){setTimeout(()=>{this.el.nativeElement.focus()},500)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq))},t.\u0275dir=n.lG2({type:t,selectors:[["","autoFocus",""]],inputs:{appAutoFocus:"appAutoFocus"}}),t})()},2609:(t,e,i)=>{"use strict";i.d(e,{y:()=>r});var n=i(1572);let r=(()=>{class t{constructor(){this.copied=new n.vpe}onClick(t){if(t.preventDefault(),!this.payload)return;const e=t=>{(t.clipboardData||window.clipboardData).setData("text",this.payload.toString()),t.preventDefault(),this.copied.emit(this.payload)};document.addEventListener("copy",e,!1),document.execCommand("copy"),document.removeEventListener("copy",e,!1)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.lG2({type:t,selectors:[["","rtlClipboard",""]],hostBindings:function(t,e){1&t&&n.NdJ("click",function(t){return e.onClick(t)})},inputs:{payload:"payload"},outputs:{copied:"copied"}}),t})()},5095:(t,e,i)=>{"use strict";i.d(e,{q:()=>s});var n=i(6073),r=i(1572);let s=(()=>{class t{validate(t){return this.min?n.kI.min(+this.min)(t):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.lG2({type:t,selectors:[["input","min",""]],inputs:{min:"min"},features:[r._Bn([{provide:n.Cf,useExisting:t,multi:!0}])]}),t})()},6013:(t,e,i)=>{"use strict";i.d(e,{a1:()=>a,QM:()=>l,lB:()=>c,fY:()=>h});var n=i(1681),r=i(1572),s=i(6853),o=i(3191);let a=(()=>{class t{constructor(t,e){this.router=t,this.sessionService=e}canActivate(t){return!(!this.sessionService.getItem("token")||"settings"!==t.url[0].path&&"auth"!==t.url[0].path&&"true"===this.sessionService.getItem("defaultPassword")&&(this.router.navigate(["/settings/auth"]),1))}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(s.F0),r.LFG(o.m))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})(),l=(()=>{class t{constructor(t){this.sessionService=t}canActivate(){return!!this.sessionService.watchSession().pipe((0,n.U)(t=>t.lndUnlocked))}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(o.m))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})(),c=(()=>{class t{constructor(t){this.sessionService=t}canActivate(){return!!this.sessionService.watchSession().pipe((0,n.U)(t=>t.clUnlocked))}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(o.m))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})(),h=(()=>{class t{constructor(t){this.sessionService=t}canActivate(){return!!this.sessionService.watchSession().pipe((0,n.U)(t=>t.eclUnlocked))}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(o.m))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})()},1084:(t,e,i)=>{"use strict";i.d(e,{v:()=>d});var n=i(2041),r=i(9647),s=i(9056),o=i(1681),a=i(1816),l=i(9421),c=i(1572),h=i(3556),u=i(3869);let d=(()=>{class t{constructor(t,e){this.dataService=t,this.logger=e,this.currencyUnits=[],this.CurrencyUnitEnum=l.NT,this.conversionData={data:null,last_fetched:null},this.ratesAPIStatus=l.Bn.UN_INITIATED,this.screenSize=l.cu.MD,this.containerSize={width:1200,height:800}}getScreenSize(){return this.screenSize}setScreenSize(t){this.screenSize=t}getContainerSize(){return this.containerSize}setContainerSize(t,e){this.containerSize={width:t,height:e}}sortByKey(t,e,i,n="asc"){return t.sort("number"===i?"desc"===n?(t,i)=>+t[e]>+i[e]?-1:1:(t,i)=>+t[e]>+i[e]?1:-1:"desc"===n?(t,i)=>t[e]>i[e]?-1:1:(t,i)=>t[e]>i[e]?1:-1)}sortDescByKey(t,e){return t.sort((t,i)=>{const n=+t[e],r=+i[e];return n>r?-1:n{const n=+t[e],r=+i[e];return nr?1:0})}camelCase(t){return t.replace(/(?:^\w|[A-Z]|\b\w)/g,(t,e)=>0===e?t.toLowerCase():t.toUpperCase()).replace(/\s+/g,"")}titleCase(t){return t.indexOf("!\n")>0||t.indexOf(".\n")>0?t.split("\n").reduce((t,e)=>t+e.charAt(0).toUpperCase()+e.substring(1).toLowerCase()+"\n",""):t.charAt(0).toUpperCase()+t.substring(1).toLowerCase()}convertCurrency(t,e,i,c,h){const u=(new Date).valueOf();return h&&c&&this.ratesAPIStatus!==l.Bn.INITIATED&&(e===l.NT.OTHER||i===l.NT.OTHER)?this.conversionData.data&&this.conversionData.last_fetched&&u(this.ratesAPIStatus=l.Bn.COMPLETED,this.conversionData.data=i&&"object"==typeof i?i:i&&"string"==typeof i?JSON.parse(i):{},this.conversionData.last_fetched=u,this.convertWithFiat(t,e,c))),(0,a.K)(t=>(this.ratesAPIStatus=l.Bn.ERROR,(0,r._)(()=>this.extractErrorMessage(t,"Currency Conversion Error.")))))):(0,n.of)(this.convertWithoutFiat(t,e))}convertWithoutFiat(t,e){const i={};switch(i[l.NT.SATS]=0,i[l.NT.BTC]=0,e){case l.NT.SATS:i[l.NT.SATS]=t,i[l.NT.BTC]=1e-8*t;break;case l.NT.BTC:i[l.NT.SATS]=1e8*t,i[l.NT.BTC]=t}return i}convertWithFiat(t,e,i){const n={unit:i,symbol:this.conversionData.data[i].symbol};switch(n[l.NT.SATS]=0,n[l.NT.BTC]=0,n[l.NT.OTHER]=0,e){case l.NT.SATS:n[l.NT.SATS]=t,n[l.NT.BTC]=1e-8*t,n[l.NT.OTHER]=1e-8*t*this.conversionData.data[i].last;break;case l.NT.BTC:n[l.NT.SATS]=1e8*t,n[l.NT.BTC]=t,n[l.NT.OTHER]=t*this.conversionData.data[i].last;break;case l.NT.OTHER:n[l.NT.SATS]=t/this.conversionData.data[i].last*1e8,n[l.NT.BTC]=t/this.conversionData.data[i].last,n[l.NT.OTHER]=t}return n}convertTime(t,e,i){switch(e){case l.Qk.SECS:switch(i){case l.Qk.MINS:t/=60;break;case l.Qk.HOURS:t/=3600;break;case l.Qk.DAYS:t/=86400}break;case l.Qk.MINS:switch(i){case l.Qk.SECS:t*=60;break;case l.Qk.HOURS:t/=60;break;case l.Qk.DAYS:t/=1440}break;case l.Qk.HOURS:switch(i){case l.Qk.SECS:t*=3600;break;case l.Qk.MINS:t*=60;break;case l.Qk.DAYS:t/=24}break;case l.Qk.DAYS:switch(i){case l.Qk.SECS:t=3600*t*24;break;case l.Qk.MINS:t=60*t*24;break;case l.Qk.HOURS:t*=24}}return t}downloadFile(t,e,i=".json",n=".csv"){let r=new Blob;r=".json"===i?new Blob(["\ufeff"+this.convertToCSV(t)],{type:"text/csv;charset=utf-8;"}):new Blob([t.toString()],{type:"text/plain;charset=utf-8"});const s=document.createElement("a"),o=URL.createObjectURL(r);-1!==navigator.userAgent.indexOf("Safari")&&-1===navigator.userAgent.indexOf("Chrome")&&s.setAttribute("target","_blank"),s.setAttribute("href",o),s.setAttribute("download",e+n),s.style.visibility="hidden",document.body.appendChild(s),s.click(),document.body.removeChild(s)}convertToCSV(t){const e=[];let i="",n="",r="";"object"!=typeof t&&(t=JSON.parse(t)),t.forEach((t,i)=>{for(const n in t)e.findIndex(t=>t===n)<0&&e.push(n)});const s=e.join(",");return r=s+"\r\n",t.forEach(t=>{i="",e.forEach(e=>{t.hasOwnProperty(e)?Array.isArray(t[e])?(n="",t[e].forEach((t,e)=>{n+="object"==typeof t?"("+JSON.stringify(t).replace(/\,/g,";")+")":"("+t+")"}),i+=n+","):i+="object"==typeof t[e]?JSON.stringify(t[e]).replace(/\,/g,";")+",":t[e]+",":i+=","}),r+=i.slice(0,-1)+"\r\n"}),r}isVersionCompatible(t,e){const i=t?t.trim().replace("v","").split("-")[0].split("."):[],n=e.split(".");return+i[0]>+n[0]||+i[0]==+n[0]&&+i[1]>+n[1]||+i[0]==+n[0]&&+i[1]==+n[1]&&+i[2]>=+n[2]}extractErrorMessage(t,e="Unknown Error."){const i=this.titleCase(t.error&&t.error.error&&t.error.error.error&&t.error.error.error.error&&t.error.error.error.error.error&&"string"==typeof t.error.error.error.error.error?t.error.error.error.error.error:t.error&&t.error.error&&t.error.error.error&&t.error.error.error.error&&"string"==typeof t.error.error.error.error?t.error.error.error.error:t.error&&t.error.error&&t.error.error.error&&"string"==typeof t.error.error.error?t.error.error.error:t.error&&t.error.error&&"string"==typeof t.error.error?t.error.error:t.error&&"string"==typeof t.error?t.error:t.error&&t.error.error&&t.error.error.error&&t.error.error.error.error&&t.error.error.error.error.message&&"string"==typeof t.error.error.error.error.message?t.error.error.error.error.message:t.error&&t.error.error&&t.error.error.error&&t.error.error.error.message&&"string"==typeof t.error.error.error.message?t.error.error.error.message:t.error&&t.error.error&&t.error.error.message&&"string"==typeof t.error.error.message?t.error.error.message:t.error&&t.error.message&&"string"==typeof t.error.message?t.error.message:t.message&&"string"==typeof t.message?t.message:e);return this.logger.info("Error Message: "+i),i}extractErrorCode(t,e=500){const i=t.error&&t.error.error&&t.error.error.message&&t.error.error.message.code?t.error.error.message.code:t.error&&t.error.error&&t.error.error.code?t.error.error.code:t.error&&t.error.code?t.error.code:t.code?t.code:t.status?t.status:e;return this.logger.info("Error Code: "+i),i}extractErrorNumber(t,e=500){const i=t.error&&t.error.error&&t.error.error.errno?t.error.error.errno:t.error&&t.error.errno?t.error.errno:t.errno?t.errno:t.status?t.status:e;return this.logger.info("Error Number: "+i),i}}return t.\u0275fac=function(e){return new(e||t)(c.LFG(h.D),c.LFG(u.mQ))},t.\u0275prov=c.Yz7({token:t,factory:t.\u0275fac}),t})()},9421:(t,e,i)=>{"use strict";i.d(e,{pt:()=>r,uA:()=>s,Xz:()=>o,Er:()=>a,LO:()=>l,IV:()=>c,TJ:()=>h,_t:()=>u,Dr:()=>d,Vc:()=>p,vn:()=>f,wZ:()=>m,ol:()=>g,n_:()=>y,OJ:()=>b,Qk:()=>v,NT:()=>_,Gi:()=>w,cu:()=>x,HW:()=>C,x$:()=>A,uX:()=>S,Fq:()=>E,$I:()=>k,hc:()=>T,Qw:()=>M,gg:()=>L,op:()=>I,JX:()=>O,kO:()=>D,Bn:()=>R,m6:()=>N});var n=i(3005);function r(t){const e=new n.ye;return e.itemsPerPageLabel=t+" per page:",e}const s=["Sats","BTC"],o={Sats:"1.0-0",BTC:"1.6-6",OTHER:"1.2-2"},a=[{id:"USD",name:"USD"},{id:"AUD",name:"AUD"},{id:"BRL",name:"BRL"},{id:"CAD",name:"CAD"},{id:"CHF",name:"CHF"},{id:"CLP",name:"CLP"},{id:"CNY",name:"CNY"},{id:"DKK",name:"DKK"},{id:"EUR",name:"EUR"},{id:"GBP",name:"GBP"},{id:"HKD",name:"HKD"},{id:"INR",name:"INR"},{id:"ISK",name:"ISK"},{id:"JPY",name:"JPY"},{id:"KRW",name:"KRW"},{id:"NZD",name:"NZD"},{id:"PLN",name:"PLN"},{id:"RUB",name:"RUB"},{id:"SEK",name:"SEK"},{id:"SGD",name:"SGD"},{id:"THB",name:"THB"},{id:"TWD",name:"TWD"}],l=["SECS","MINS","HOURS","DAYS"],c=10,h=[5,10,25,100],u=[{addressId:"0",addressCode:"bech32",addressTp:"Bech32 (P2WKH)",addressDetails:"Pay to witness key hash"},{addressId:"1",addressCode:"p2sh-segwit",addressTp:"P2SH (NP2WKH)",addressDetails:"Pay to nested witness key hash (default)"}],d=[{id:"0",name:"Priority (Default)"},{id:"1",name:"Target Confirmation Blocks"},{id:"2",name:"Fee"}],p=[{id:"none",name:"No Fee Limit",placeholder:"No Limit"},{id:"fixed",name:"Fixed Limit (Sats)",placeholder:"Fixed Limit in Sats"},{id:"percent",name:"Percentage of Payment Amount",placeholder:"Percentage Limit"}],f=[{feeRateId:"urgent",feeRateType:"Urgent"},{feeRateId:"normal",feeRateType:"Normal"},{feeRateId:"slow",feeRateType:"Slow"},{feeRateId:"customperkb",feeRateType:"Custom (Sats/vB)"}],m={themes:[{id:"PURPLE",name:"Diogo"},{id:"TEAL",name:"My2Sats"},{id:"INDIGO",name:"RTL"},{id:"PINK",name:"BK"},{id:"YELLOW",name:"Gold"}],modes:[{id:"DAY",name:"Day"},{id:"NIGHT",name:"Night"}]};var g=function(t){return t.OPERATOR="OPERATOR",t.MERCHANT="MERCHANT",t.ALL="ALL",t}({}),y=function(t){return t.INFORMATION="Information",t.WARNING="Warning",t.ERROR="Error",t.SUCCESS="Success",t.CONFIRM="Confirm",t}({}),b=function(t){return t.JWT="JWT",t.PASSWORD="PASSWORD",t}({}),v=function(t){return t.SECS="SECS",t.MINS="MINS",t.HOURS="HOURS",t.DAYS="DAYS",t}({}),_=function(t){return t.SATS="Sats",t.BTC="BTC",t.OTHER="OTHER",t}({}),w=function(t){return t.ARRAY="ARRAY",t.NUMBER="NUMBER",t.STRING="STRING",t.BOOLEAN="BOOLEAN",t.PASSWORD="PASSWORD",t.DATE="DATE",t.DATE_TIME="DATE_TIME",t}({}),x=function(t){return t.XS="XS",t.SM="SM",t.MD="MD",t.LG="LG",t.XL="XL",t}({});const C={COOPERATIVE_CLOSE:{name:"Co-operative Close",tooltip:"Channel closed cooperatively"},LOCAL_FORCE_CLOSE:{name:"Local Force Close",tooltip:"Channel force-closed by the local node"},REMOTE_FORCE_CLOSE:{name:"Remote Force Close",tooltip:"Channel force-closed by the remote node"},BREACH_CLOSE:{name:"Breach Close",tooltip:"Remote node attempted to broadcast a prior revoked channel state"},FUNDING_CANCELED:{name:"Funding Canceled",tooltip:"Channel never fully opened"},ABANDONED:{name:"Abandoned",tooltip:"Channel abandoned by the local node"}},A={WITNESS_PUBKEY_HASH:{name:"Witness Pubkey Hash",tooltip:""},NESTED_PUBKEY_HASH:{name:"Nested Pubkey Hash",tooltip:""},UNUSED_WITNESS_PUBKEY_HASH:{name:"Unused Witness Pubkey Hash",tooltip:""},UNUSED_NESTED_PUBKEY_HASH:{name:"Unused Nested Pubkey Hash",tooltip:""}};var S=function(t){return t.CHANNELD_NORMAL="Active",t.OPENINGD="Opening",t.CHANNELD_AWAITING_LOCKIN="Pending Open",t.CHANNELD_SHUTTING_DOWN="Shutting Down",t.CLOSINGD_SIGEXCHANGE="Closing: Sig Exchange",t.CLOSINGD_COMPLETE="Closed",t.AWAITING_UNILATERAL="Awaiting Unilateral Close",t.FUNDING_SPEND_SEEN="Funding Spend Seen",t.ONCHAIN="Onchain",t.DUALOPEND_OPEN_INIT="Dual Open Initialized",t.DUALOPEND_AWAITING_LOCKIN="Dual Pending Open",t}({}),E=function(t){return t.INITIATED="Initiated",t.PREIMAGE_REVEALED="Preimage Revealed",t.HTLC_PUBLISHED="HTLC Published",t.SUCCESS="Successful",t.FAILED="Failed",t.INVOICE_SETTLED="Invoice Settled",t}({}),k=function(t){return t.LOOP_OUT="LOOP_OUT",t.LOOP_IN="LOOP_IN",t}({}),T=function(t){return t.SWAP_OUT="SWAP_OUT",t.SWAP_IN="SWAP_IN",t}({}),M=function(t){return t["swap.created"]="Swap Created",t["swap.expired"]="Swap Expired",t["invoice.set"]="Invoice Set",t["invoice.paid"]="Invoice Paid",t["invoice.pending"]="Invoice Pending",t["invoice.settled"]="Invoice Settled",t["invoice.failedToPay"]="Invoice Failed To Pay",t["channel.created"]="Channel Created",t["transaction.failed"]="Transaction Failed",t["transaction.mempool"]="Transaction Mempool",t["transaction.claimed"]="Transaction Claimed",t["transaction.refunded"]="Transaction Refunded",t["transaction.confirmed"]="Transaction Confirmed",t["swap.refunded"]="Swap Refunded",t["swap.abandoned"]="Swap Abandoned",t}({});const L=[{name:"Jan",days:31},{name:"Feb",days:28},{name:"Mar",days:31},{name:"Apr",days:30},{name:"May",days:31},{name:"Jun",days:30},{name:"Jul",days:31},{name:"Aug",days:31},{name:"Sep",days:30},{name:"Oct",days:31},{name:"Nov",days:30},{name:"Dec",days:31}],I=["MONTHLY","YEARLY"];var O=function(t){return t.LOOP="LOOP",t.BOLTZ="BOLTZ",t}({});const D=["password","changeme","moneyprintergobrrr"];var R=function(t){return t.UN_INITIATED="UN_INITIATED",t.INITIATED="INITIATED",t.COMPLETED="COMPLETED",t.ERROR="ERROR",t}({});const N={NO_SPINNER:"No Spinner...",GET_NODE_INFO:"Getting Node Information...",INITALIZE_NODE_DATA:"Initializing Node Data...",GENERATE_NEW_ADDRESS:"Getting New Address...",SEND_FUNDS:"Sending Funds...",UPDATE_CHAN_POLICY:"Updating Channel Policy...",GET_CHAN_POLICY:"Fetching Channel Policy...",GET_REMOTE_POLICY:"Fetching Remote Policy...",CLOSE_CHANNEL:"Closing Channel...",FORCE_CLOSE_CHANNEL:"Force Closing Channel...",OPEN_CHANNEL:"Opening Channel...",CONNECT_PEER:"Connecting Peer...",DISCONNECT_PEER:"Disconnecting Peer...",ADD_INVOICE:"Adding Invoice...",CREATE_INVOICE:"Creating Invoice...",DELETE_INVOICE:"Deleting Invoices...",DECODE_PAYMENT:"Decoding Payment...",DECODE_PAYMENTS:"Decoding Payments...",GET_SENT_PAYMENTS:"Getting Sent Payments...",SEND_PAYMENT:"Sending Payment...",SEND_KEYSEND:"Sending Keysend Payment...",SEARCHING_NODE:"Searching Node...",SEARCHING_CHANNEL:"Searching Channel...",SEARCHING_INVOICE:"Searching Invoice...",BACKUP_CHANNEL:"Backup Channels...",VERIFY_CHANNEL:"Verify Channels...",DOWNLOAD_BACKUP_FILE:"Downloading Backup File...",RESTORE_CHANNEL:"Restoring Channels...",GET_TERMS_QUOTES:"Getting Terms and Quotes...",LABEL_UTXO:"Labelling UTXO...",GET_NODE_ADDRESS:"Getting Node Address...",GEN_SEED:"Generating Seed...",INITIALIZE_WALLET:"Initializing Wallet...",UNLOCK_WALLET:"Unlocking Wallet...",WAIT_SYNC_NODE:"Waiting for Node Sync...",UPDATE_BOLTZ_SETTINGS:"Updating Boltz Service Settings...",UPDATE_LOOP_SETTINGS:"Updating Loop Service Settings...",UPDATE_UI_SETTINGS:"Updating Settings...",UPDATE_NODE_SETTINGS:"Updating Node Settings...",UPDATE_SELECTED_NODE:"Updating Selected Node...",OPEN_CONFIG_FILE:"Opening Config File...",GET_SERVICE_INFO:"Getting Service Info...",GET_QUOTE:"Getting Quotes...",UPDATE_DEFAULT_NODE_SETTING:"Updating Defaule Node Settings...",GET_BOLTZ_SWAPS:"Getting Boltz Swaps...",SIGN_MESSAGE:"Signing Message...",VERIFY_MESSAGE:"Verifying Message...",BUMP_FEE:"Bumping Fee...",LEASE_UTXO:"Leasing UTXO...",GET_LOOP_SWAPS:"Getting List Swaps...",GET_FEE_REPORT:"Getting fee report...",GET_LOOKUP_DETAILS:"Getting lookup details...",GET_RTL_CONFIG:"Getting RTL Config...",VERIFY_TOKEN:"Verify Token..."}},3556:(t,e,i)=>{"use strict";i.d(e,{D:()=>x});var n=i(9063),r=i(9666),s=i(9647),o=i(2041),a=i(9568),l=i(1681),c=i(1816),h=i(5653),u=i(7228),d=i(5963),p=i(9421),f=i(2427),m=i(3929),g=i(5678),y=i(1572),b=i(964),v=i(3869),_=i(1403),w=i(1511);let x=(()=>{class t{constructor(t,e,i,n,s){this.httpClient=t,this.store=e,this.logger=i,this.snackBar=n,this.titleCasePipe=s,this.lnImplementation="LND",this.childAPIUrl=d.T,this.unSubs=[new r.x,new r.x,new r.x,new r.x,new r.x,new r.x,new r.x,new r.x,new r.x,new r.x,new r.x,new r.x,new r.x]}getChildAPIUrl(){return this.childAPIUrl}getLnImplementation(){return this.lnImplementation}setChildAPIUrl(t){switch(this.lnImplementation=t,t){case"CLT":this.childAPIUrl=d.T+"/cl";break;case"ECL":this.childAPIUrl=d.T+"/ecl";break;default:this.childAPIUrl=d.T+"/lnd"}}getFiatRates(){return this.httpClient.get(d.N.CONF_API+"/rates")}decodePayment(t,e){let i=this.childAPIUrl+d.N.PAYREQUEST_API+"/"+t;return"ECL"===this.getLnImplementation()&&(i=this.childAPIUrl+d.N.PAYMENTS_API+"/"+t),this.store.dispatch(new m.Fk(p.m6.DECODE_PAYMENT)),this.httpClient.get(i).pipe((0,a.R)(this.unSubs[0]),(0,l.U)(t=>(this.store.dispatch(new m.Iv(p.m6.DECODE_PAYMENT)),t)),(0,c.K)(t=>(e?this.handleErrorWithoutAlert("Decode Payment",p.m6.DECODE_PAYMENT,t):this.handleErrorWithAlert("decodePaymentData",p.m6.DECODE_PAYMENT,"Decode Payment Failed",this.childAPIUrl+d.N.PAYREQUEST_API,t),(0,s._)(()=>new Error(this.extractErrorMessage(t))))))}decodePayments(t){let e=this.childAPIUrl+d.N.PAYREQUEST_API,i=p.m6.DECODE_PAYMENTS;return"ECL"===this.getLnImplementation()&&(e=this.childAPIUrl+d.N.PAYMENTS_API+"/getsentinfos",i=p.m6.GET_SENT_PAYMENTS),this.store.dispatch(new m.Fk(i)),this.httpClient.post(e,{payments:t}).pipe((0,a.R)(this.unSubs[1]),(0,l.U)(t=>(this.store.dispatch(new m.Iv(i)),t)),(0,c.K)(t=>(this.handleErrorWithAlert("decodePaymentsData",i,i+" Failed",e,t),(0,s._)(()=>new Error(this.extractErrorMessage(t))))))}getAliasesFromPubkeys(t,e){if(e){const e=(new n.LE).set("pubkeys",t);return this.httpClient.get(this.childAPIUrl+d.N.NETWORK_API+"/nodes",{params:e})}return this.httpClient.get(this.childAPIUrl+d.N.NETWORK_API+"/node/"+t)}signMessage(t){return this.store.dispatch(new m.Fk(p.m6.SIGN_MESSAGE)),this.httpClient.post(this.childAPIUrl+d.N.MESSAGE_API+"/sign",{message:t}).pipe((0,a.R)(this.unSubs[2]),(0,l.U)(t=>(this.store.dispatch(new m.Iv(p.m6.SIGN_MESSAGE)),t)),(0,c.K)(t=>(this.handleErrorWithAlert("signMessageData",p.m6.SIGN_MESSAGE,"Sign Message Failed",this.childAPIUrl+d.N.MESSAGE_API+"/sign",t),(0,s._)(()=>new Error(this.extractErrorMessage(t))))))}verifyMessage(t,e){return this.store.dispatch(new m.Fk(p.m6.VERIFY_MESSAGE)),this.httpClient.post(this.childAPIUrl+d.N.MESSAGE_API+"/verify",{message:t,signature:e}).pipe((0,a.R)(this.unSubs[3]),(0,l.U)(t=>(this.store.dispatch(new m.Iv(p.m6.VERIFY_MESSAGE)),t)),(0,c.K)(t=>(this.handleErrorWithAlert("verifyMessageData",p.m6.VERIFY_MESSAGE,"Verify Message Failed",this.childAPIUrl+d.N.MESSAGE_API+"/verify",t),(0,s._)(()=>new Error(this.extractErrorMessage(t))))))}bumpFee(t,e,i,n){const r={txid:t,outputIndex:e};return i&&(r.targetConf=i),n&&(r.satPerByte=n),this.store.dispatch(new m.Fk(p.m6.BUMP_FEE)),this.httpClient.post(this.childAPIUrl+d.N.WALLET_API+"/bumpfee",r).pipe((0,a.R)(this.unSubs[4]),(0,l.U)(t=>(this.store.dispatch(new m.Iv(p.m6.BUMP_FEE)),this.snackBar.open("Successfully bumped the fee. Use the block explorer to verify transaction."),t)),(0,c.K)(t=>(this.handleErrorWithoutAlert("Bump Fee",p.m6.BUMP_FEE,t),(0,s._)(()=>new Error(this.extractErrorMessage(t))))))}labelUTXO(t,e,i=!0){const n={txid:t,label:e,overwrite:i};return this.store.dispatch(new m.Fk(p.m6.LABEL_UTXO)),this.httpClient.post(this.childAPIUrl+d.N.WALLET_API+"/label",n).pipe((0,a.R)(this.unSubs[5]),(0,l.U)(t=>(this.store.dispatch(new m.Iv(p.m6.LABEL_UTXO)),t)),(0,c.K)(t=>(this.handleErrorWithoutAlert("Lease UTXO",p.m6.LABEL_UTXO,t),(0,s._)(()=>new Error(this.extractErrorMessage(t))))))}leaseUTXO(t,e){const i={txid:t,outputIndex:e};return this.store.dispatch(new m.Fk(p.m6.LEASE_UTXO)),this.httpClient.post(this.childAPIUrl+d.N.WALLET_API+"/lease",i).pipe((0,a.R)(this.unSubs[6])).subscribe({next:t=>{this.store.dispatch(new m.Iv(p.m6.LEASE_UTXO)),this.store.dispatch(new g.eL),this.store.dispatch(new g.Zt);const e=new Date(1e3*t.expiration),i=Math.round(e.getTime())-60*e.getTimezoneOffset();this.snackBar.open("The UTXO has been leased till "+new Date(i).toString().substring(4,21).replace(" ","/").replace(" ","/").toUpperCase()+".")},error:t=>(this.handleErrorWithoutAlert("Lease UTXO",p.m6.LEASE_UTXO,t),(0,s._)(()=>new Error(this.extractErrorMessage(t))))})}getForwardingHistory(t,e){const i={end_time:e,start_time:t};return this.store.dispatch(new m.Fk(p.m6.GET_FEE_REPORT)),this.httpClient.post(this.childAPIUrl+d.N.SWITCH_API,i).pipe((0,a.R)(this.unSubs[7]),(0,h.M)(this.store.select("lnd")),(0,u.z)(([t,e])=>{if(t.forwarding_events){const i=[...e.allChannels,...e.closedChannels];t.forwarding_events.forEach(t=>{if(i&&i.length>0)for(let e=0;e(this.handleErrorWithAlert("getForwardingHistoryData",p.m6.GET_FEE_REPORT,"Forwarding History Failed",this.childAPIUrl+d.N.SWITCH_API,t),(0,s._)(()=>new Error(this.extractErrorMessage(t))))))}extractErrorMessage(t,e="Unknown Error."){return this.titleCasePipe.transform(t.error&&t.error.error&&t.error.error.error&&t.error.error.error.error&&t.error.error.error.error.error&&"string"==typeof t.error.error.error.error.error?t.error.error.error.error.error:t.error&&t.error.error&&t.error.error.error&&t.error.error.error.error&&"string"==typeof t.error.error.error.error?t.error.error.error.error:t.error&&t.error.error&&t.error.error.error&&"string"==typeof t.error.error.error?t.error.error.error:t.error&&t.error.error&&"string"==typeof t.error.error?t.error.error:t.error&&"string"==typeof t.error?t.error:t.error&&t.error.error&&t.error.error.error&&t.error.error.error.error&&t.error.error.error.error.message&&"string"==typeof t.error.error.error.error.message?t.error.error.error.error.message:t.error&&t.error.error&&t.error.error.error&&t.error.error.error.message&&"string"==typeof t.error.error.error.message?t.error.error.error.message:t.error&&t.error.error&&t.error.error.message&&"string"==typeof t.error.error.message?t.error.error.message:t.error&&t.error.message&&"string"==typeof t.error.message?t.error.message:t.message&&"string"==typeof t.message?t.message:e)}handleErrorWithoutAlert(t,e,i){this.logger.error("ERROR IN: "+t+"\n"+JSON.stringify(i)),401===i.status&&"Login"!==t?(this.logger.info("Redirecting to Login"),this.store.dispatch(new m.Ac),this.store.dispatch(new m.RD),this.store.dispatch(new m.Lw("Authentication Failed. Redirecting to Login."))):(this.store.dispatch(new m.Iv(e)),this.store.dispatch(new m.np({action:t,status:p.Bn.ERROR,statusCode:i.status.toString(),message:this.extractErrorMessage(i)})))}handleErrorWithAlert(t,e,i,n,r){if(this.logger.error(r),401===r.status)this.logger.info("Redirecting to Login"),this.store.dispatch(new m.Ac),this.store.dispatch(new m.RD),this.store.dispatch(new m.Lw("Authentication Failed. Redirecting to Login."));else{this.store.dispatch(new m.Iv(e));const s=this.extractErrorMessage(r);this.store.dispatch(new m.wu({data:{type:"ERROR",alertTitle:i,message:{code:r.status?r.status:"Unknown Error",message:s,URL:n},component:f.H}})),this.store.dispatch(new m.np({action:t,status:p.Bn.ERROR,statusCode:r.status.toString(),message:s,URL:n}))}}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(y.LFG(n.eN),y.LFG(b.yh),y.LFG(v.mQ),y.LFG(_.ux),y.LFG(w.rS))},t.\u0275prov=y.Yz7({token:t,factory:t.\u0275fac}),t})()},3869:(t,e,i)=>{"use strict";i.d(e,{mQ:()=>a,LG:()=>l});var n=i(5963),r=i(1572);const{isDebugMode:s}=n.N,o=()=>null;let a=(()=>{class t{invokeConsoleMethod(t,e){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})(),l=(()=>{class t{get info(){return s?console.log.bind(console):o}get warn(){return s?console.warn.bind(console):o}get error(){return s?console.error.bind(console):o}invokeConsoleMethod(t,e){(console[t]||console.log||o).apply(console,[e])}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})()},2969:(t,e,i)=>{"use strict";i.d(e,{W:()=>b});var n=i(9063),r=i(7425),s=i(9666),o=i(9647),a=i(9568),l=i(1816),c=i(1681),h=i(5963),u=i(9421),d=i(2427),p=i(3929),f=i(1572),m=i(3869),g=i(964),y=i(1084);let b=(()=>{class t{constructor(t,e,i,n){this.httpClient=t,this.logger=e,this.store=i,this.commonService=n,this.CHILD_API_URL=h.T+"/lnd",this.loopUrl="",this.swaps=[],this.swapsChanged=new r.X([]),this.unSubs=[new s.x,new s.x,new s.x,new s.x,new s.x]}getSwapsList(){return this.swaps}listSwaps(){this.store.dispatch(new p.Fk(u.m6.GET_LOOP_SWAPS)),this.loopUrl=this.CHILD_API_URL+h.N.LOOP_API+"/swaps",this.httpClient.get(this.loopUrl).pipe((0,a.R)(this.unSubs[0])).subscribe({next:t=>{this.store.dispatch(new p.Iv(u.m6.GET_LOOP_SWAPS)),this.swaps=t,this.swapsChanged.next(this.swaps)},error:t=>this.handleErrorWithAlert(u.m6.GET_LOOP_SWAPS,this.loopUrl,t)})}loopOut(t,e,i,n,r,s,o,a,c,d){const p={amount:t,targetConf:i,swapRoutingFee:n,minerFee:r,prepayRoutingFee:s,prepayAmt:o,swapFee:a,swapPublicationDeadline:c,destAddress:d};return""!==e&&(p.chanId=e),this.loopUrl=this.CHILD_API_URL+h.N.LOOP_API+"/out",this.httpClient.post(this.loopUrl,p).pipe((0,l.K)(t=>this.handleErrorWithoutAlert("Loop Out for Channel: "+e,u.m6.NO_SPINNER,t)))}getLoopOutTerms(){return this.loopUrl=this.CHILD_API_URL+h.N.LOOP_API+"/out/terms",this.httpClient.get(this.loopUrl).pipe((0,l.K)(t=>this.handleErrorWithoutAlert("Loop Out Terms",u.m6.NO_SPINNER,t)))}getLoopOutQuote(t,e,i){let r=new n.LE;return r=r.append("targetConf",e.toString()),r=r.append("swapPublicationDeadline",i.toString()),this.loopUrl=this.CHILD_API_URL+h.N.LOOP_API+"/out/quote/"+t,this.store.dispatch(new p.Fk(u.m6.GET_QUOTE)),this.httpClient.get(this.loopUrl,{params:r}).pipe((0,a.R)(this.unSubs[1]),(0,c.U)(t=>(this.store.dispatch(new p.Iv(u.m6.GET_QUOTE)),t)),(0,l.K)(t=>this.handleErrorWithoutAlert("Loop Out Quote",u.m6.GET_QUOTE,t)))}getLoopOutTermsAndQuotes(t){let e=new n.LE;return e=e.append("targetConf",t.toString()),e=e.append("swapPublicationDeadline",((new Date).getTime()+18e5).toString()),this.loopUrl=this.CHILD_API_URL+h.N.LOOP_API+"/out/termsAndQuotes",this.store.dispatch(new p.Fk(u.m6.GET_TERMS_QUOTES)),this.httpClient.get(this.loopUrl,{params:e}).pipe((0,a.R)(this.unSubs[2]),(0,c.U)(t=>(this.store.dispatch(new p.Iv(u.m6.GET_TERMS_QUOTES)),t)),(0,l.K)(t=>this.handleErrorWithAlert(u.m6.GET_TERMS_QUOTES,this.loopUrl,t)))}loopIn(t,e,i,n,r){const s={amount:t,swapFee:e,minerFee:i,lastHop:n,externalHtlc:r};return this.loopUrl=this.CHILD_API_URL+h.N.LOOP_API+"/in",this.httpClient.post(this.loopUrl,s).pipe((0,l.K)(t=>this.handleErrorWithoutAlert("Loop In",u.m6.NO_SPINNER,t)))}getLoopInTerms(){return this.loopUrl=this.CHILD_API_URL+h.N.LOOP_API+"/in/terms",this.httpClient.get(this.loopUrl).pipe((0,l.K)(t=>this.handleErrorWithoutAlert("Loop In Terms",u.m6.NO_SPINNER,t)))}getLoopInQuote(t,e,i){let r=new n.LE;return r=r.append("targetConf",e.toString()),r=r.append("swapPublicationDeadline",i.toString()),this.loopUrl=this.CHILD_API_URL+h.N.LOOP_API+"/in/quote/"+t,this.store.dispatch(new p.Fk(u.m6.GET_QUOTE)),this.httpClient.get(this.loopUrl,{params:r}).pipe((0,a.R)(this.unSubs[3]),(0,c.U)(t=>(this.store.dispatch(new p.Iv(u.m6.GET_QUOTE)),t)),(0,l.K)(t=>this.handleErrorWithoutAlert("Loop In Qoute",u.m6.GET_QUOTE,t)))}getLoopInTermsAndQuotes(t){let e=new n.LE;return e=e.append("targetConf",t.toString()),e=e.append("swapPublicationDeadline",((new Date).getTime()+18e5).toString()),this.loopUrl=this.CHILD_API_URL+h.N.LOOP_API+"/in/termsAndQuotes",this.store.dispatch(new p.Fk(u.m6.GET_TERMS_QUOTES)),this.httpClient.get(this.loopUrl,{params:e}).pipe((0,a.R)(this.unSubs[4]),(0,c.U)(t=>(this.store.dispatch(new p.Iv(u.m6.GET_TERMS_QUOTES)),t)),(0,l.K)(t=>this.handleErrorWithAlert(u.m6.GET_TERMS_QUOTES,this.loopUrl,t)))}getSwap(t){return this.loopUrl=this.CHILD_API_URL+h.N.LOOP_API+"/swap/"+t,this.httpClient.get(this.loopUrl).pipe((0,l.K)(e=>this.handleErrorWithoutAlert("Loop Get Swap for ID: "+t,u.m6.NO_SPINNER,e)))}handleErrorWithoutAlert(t,e,i){let n="";return this.logger.error("ERROR IN: "+t+"\n"+JSON.stringify(i)),this.store.dispatch(new p.Iv(e)),401===i.status?(n="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch(new p.RD)):503===i.status?(n="Unable to Connect to Loop Server.",this.store.dispatch(new p.wu({data:{type:"ERROR",alertTitle:"Loop Not Connected",message:{code:i.status,message:"Unable to Connect to Loop Server",URL:t},component:d.H}}))):n=this.commonService.extractErrorMessage(i),(0,o._)(()=>new Error(n))}handleErrorWithAlert(t,e,i){let n="";return this.logger.error(i),this.store.dispatch(new p.Iv(t)),401===i.status?(n="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch(new p.RD)):503===i.status?(n="Unable to Connect to Loop Server.",this.store.dispatch(new p.wu({data:{type:"ERROR",alertTitle:"Loop Not Connected",message:{code:i.status,message:"Unable to Connect to Loop Server",URL:e},component:d.H}}))):(n=this.commonService.extractErrorMessage(i),this.store.dispatch(new p.wu({data:{type:u.n_.ERROR,alertTitle:"ERROR",message:{code:i.error&&i.error.error&&i.error.error.code?i.error.error.code:i.error&&i.error.code?i.error.code:i.code?i.code:i.status,message:n,URL:e},component:d.H}}))),(0,o._)(()=>new Error(n))}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(f.LFG(n.eN),f.LFG(m.mQ),f.LFG(g.yh),f.LFG(y.v))},t.\u0275prov=f.Yz7({token:t,factory:t.\u0275fac}),t})()},3191:(t,e,i)=>{"use strict";i.d(e,{m:()=>s});var n=i(9666),r=i(1572);let s=(()=>{class t{constructor(){this.sessionSub=new n.x}watchSession(){return this.sessionSub.asObservable()}getItem(t){return sessionStorage.getItem(t)}getAllItems(){return sessionStorage}setItem(t,e){sessionStorage.setItem(t,e),this.sessionSub.next(sessionStorage)}removeItem(t){sessionStorage.removeItem(t),this.sessionSub.next(sessionStorage)}clearAll(){sessionStorage.clear(),this.sessionSub.next(sessionStorage)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})()},253:(t,e,i)=>{"use strict";i.d(e,{m:()=>it});var n=i(1511),r=i(6853),s=i(6073),o=i(9063),a=i(7592),l=i(1572),c=i(1463),h=i(377),u=i(3722);i(9861),new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map;let d=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=l.oAB({type:t}),t.\u0275inj=l.cJS({imports:[[c.IR]]}),t})();new l.GfV("12.0.0-beta.34");let p=(()=>{class t{constructor(t,e){(0,n.PM)(e)&&!t&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(e,i=[]){return{ngModule:t,providers:e.serverLoaded?[{provide:c.WU,useValue:Object.assign(Object.assign({},c.g5),e)},{provide:c.Bs,useValue:i,multi:!0},{provide:c.wY,useValue:!0}]:[{provide:c.WU,useValue:Object.assign(Object.assign({},c.g5),e)},{provide:c.Bs,useValue:i,multi:!0}]}}}return t.\u0275fac=function(e){return new(e||t)(l.LFG(c.wY),l.LFG(l.Lbi))},t.\u0275mod=l.oAB({type:t}),t.\u0275inj=l.cJS({imports:[[u.ae,h.aT,d],u.ae,h.aT,d]}),t})();var f=i(72),m=i(1522),g=i(4608),y=i(84),b=i(1050),v=i(5980);i(4230),i(4621);let _=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=l.oAB({type:t}),t.\u0275inj=l.cJS({imports:[[m.BQ,m.si],m.BQ]}),t})();var w=i(7439),x=i(9236),C=i(5812),A=i(5001),S=i(7271),E=i(3691),k=i(6756),T=i(5250),M=i(8055),L=i(3005),I=i(5994),O=i(7806),D=i(4810),R=i(4786),N=i(5122),P=i(7521);i(5842),i(3490),i(1353),i(6042),i(2526);let F=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=l.oAB({type:t}),t.\u0275inj=l.cJS({imports:[[n.ez,m.BQ],m.BQ]}),t})();var Z=i(1403),B=i(2464),U=i(7753),q=i(7033),z=i(5109),H=i(3104),Y=i(6828),G=i(1010),j=i(1905),V=i(3600),Q=i(7038),W=i(369);let J=(()=>{class t extends W.Xj{_createContainer(){const t=document.createElement("div");t.classList.add("cdk-overlay-container"),document.getElementById("rtl-container").appendChild(t),this._containerElement=t}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=l.n5z(t)))(i||t)}}(),t.\u0275prov=l.Yz7({token:t,factory:t.\u0275fac}),t})();var X=i(3869),K=i(9421);const $={suppressScrollX:!1,suppressScrollY:!1};let tt=(()=>{class t extends m.LF{format(t,e){if("input"===e){let e=t.getDate().toString();return e=+e<10?"0"+e:e,e+"/"+K.gg[t.getMonth()].name.toUpperCase()+"/"+t.getFullYear()}return K.gg[t.getMonth()].name.toUpperCase()+" "+t.getFullYear()}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=l.n5z(t)))(i||t)}}(),t.\u0275prov=l.Yz7({token:t,factory:t.\u0275fac}),t})();const et={parse:{dateInput:{day:"numeric",month:"short",year:"numeric"}},display:{dateInput:"input",monthYearLabel:{month:"short",year:"numeric"},dateA11yLabel:{day:"numeric",month:"short",year:"numeric"},monthYearA11yLabel:{month:"short",year:"numeric"}}};let it=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=l.oAB({type:t}),t.\u0275inj=l.cJS({providers:[{provide:X.mQ,useClass:X.LG},{provide:Q.op,useValue:$},{provide:Z.Ve,useValue:{duration:2e3,verticalPosition:"bottom",panelClass:"rtl-snack-bar"}},{provide:g.Bq,useValue:{hasBackdrop:!0,autoFocus:!0,disableClose:!0,role:"dialog",width:"55%"}},{provide:m._A,useClass:tt},{provide:m.sG,useValue:et},{provide:W.Xj,useClass:J},n.JJ,n.rS,n.uU],imports:[[n.ez,s.u5,s.UX,a.uH,p,f.xu,g.Is,v.ot,_,w.QW,x.p9,A.To,S.N6,C.FA,m.XK,E.Ps,k.c,T.ie,M.Tx,I.Cv,O.Cq,D.Fk,G.dp,R.LD,N.SJ,P.rP,B.JX,q.p0,H.g0,Y.AV,b.g,L.TU,U.T5,F,z.Nh,Z.ZX,y.Bb,j.a4,V.N,r.Bz,o.JF,Q.Xd],s.u5,s.UX,a.uH,p,f.xu,g.Is,v.ot,_,w.QW,x.p9,A.To,S.N6,C.FA,m.XK,E.Ps,k.c,T.ie,M.Tx,I.Cv,O.Cq,D.Fk,G.dp,R.LD,N.SJ,P.rP,B.JX,q.p0,H.g0,Y.AV,b.g,L.TU,U.T5,F,z.Nh,Z.ZX,y.Bb,j.a4,V.N,Q.Xd]}),t})()},3929:(t,e,i)=>{"use strict";i.d(e,{Zn:()=>n,SK:()=>r,O3:()=>s,dh:()=>o,VO:()=>a,mm:()=>l,ow:()=>c,S7:()=>h,fW:()=>u,r3:()=>d,yL:()=>p,Vt:()=>f,oO:()=>m,Ih:()=>g,mG:()=>y,vH:()=>b,rZ:()=>v,Ol:()=>_,xh:()=>w,RP:()=>x,Tb:()=>C,zH:()=>A,s3:()=>S,JU:()=>E,ym:()=>k,gK:()=>T,Nv:()=>M,bk:()=>L,Gs:()=>I,bE:()=>O,BQ:()=>D,np:()=>R,Ac:()=>N,Lw:()=>P,Fk:()=>F,Iv:()=>Z,wu:()=>B,YY:()=>U,b_:()=>q,Ws:()=>z,fD:()=>H,Fj:()=>Y,uQ:()=>G,$A:()=>j,XF:()=>V,j_:()=>Q,z2:()=>W,ZG:()=>J,wq:()=>X,e6:()=>K,RD:()=>$,tq:()=>tt,ZF:()=>et,m3:()=>it,nw:()=>nt});const n="VOID",r="UPDATE_SELECTED_NODE_OPTIONS",s="UPDATE_API_CALL_STATUS_ROOT",o="RESET_ROOT_STORE",a="CLOSE_ALL_DIALOGS",l="OPEN_SNACKBAR",c="OPEN_SPINNER",h="CLOSE_SPINNER",u="OPEN_ALERT",d="CLOSE_ALERT",p="OPEN_CONFIRMATION",f="CLOSE_CONFIRMATION",m="SHOW_PUBKEY",g="FETCH_CONFIG",y="SHOW_CONFIG",b="FETCH_RTL_CONFIG",v="SET_RTL_CONFIG",_="SAVE_SETTINGS",w="TWO_FA_SAVE_SETTINGS",x="SET_SELECTED_NODE",C="UPDATE_SERVICE_SETTINGS",A="SET_NODE_DATA",S="IS_AUTHORIZED",E="IS_AUTHORIZED_RES",k="LOGIN",T="VERIFY_TWO_FA",M="LOGOUT",L="RESET_PASSWORD",I="RESET_PASSWORD_RES",O="FETCH_FILE",D="SHOW_FILE";class R{constructor(t){this.payload=t,this.type=s}}class N{constructor(){this.type=a}}class P{constructor(t){this.payload=t,this.type=l}}class F{constructor(t){this.payload=t,this.type=c}}class Z{constructor(t){this.payload=t,this.type=h}}class B{constructor(t){this.payload=t,this.type=u}}class U{constructor(t){this.payload=t,this.type=d}}class q{constructor(t){this.payload=t,this.type=p}}class z{constructor(t){this.payload=t,this.type=f}}class H{constructor(){this.type=m}}class Y{constructor(t){this.payload=t,this.type=g}}class G{constructor(){this.type=r}}class j{constructor(t){this.payload=t,this.type=o}}class V{constructor(){this.type=b}}class Q{constructor(t){this.payload=t,this.type=_}}class W{constructor(t){this.payload=t,this.type=w}}class J{constructor(t){this.payload=t,this.type=x}}class X{constructor(t){this.payload=t,this.type=C}}class K{constructor(t){this.payload=t,this.type=A}}class ${constructor(){this.type=M}}class tt{constructor(t){this.payload=t,this.type=L}}class et{constructor(t){this.payload=t,this.type=S}}class it{constructor(t){this.payload=t,this.type=k}}class nt{constructor(t){this.payload=t,this.type=O}}},8914:(t,e,i)=>{"use strict";i.d(e,{V:()=>oe});var n=i(5573),r=i(9666),s=i(2041),o=i(2391),a=i(6891),l=i(1681),c=i(9056),h=i(5653),u=i(7228),d=i(1816),p=i(9568),f=i(5963),m=i(9421),g=i(4608),y=i(1572),b=i(3722),v=i(7806);let _=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e}}return t.\u0275fac=function(e){return new(e||t)(y.Y36(g.so),y.Y36(g.WI))},t.\u0275cmp=y.Xpm({type:t,selectors:[["rtl-spinner-dialog"]],decls:5,vars:1,consts:[[1,"spinner-container"],["fxLayout","column","fxLayoutAlign","center center",1,"spinner-circle"]],template:function(t,e){1&t&&(y.TgZ(0,"div",0),y.TgZ(1,"div",1),y._UZ(2,"mat-spinner"),y.TgZ(3,"h1"),y._uU(4),y.qZA(),y.qZA(),y.qZA()),2&t&&(y.xp6(4),y.Oqu(e.data.titleMessage))},directives:[b.xw,b.Wh,v.$g],styles:[".spinner-container[_ngcontent-%COMP%]{position:absolute;left:40%;top:35%}"]}),t})();var w=i(3869),x=i(1403),C=i(1084),A=i(1511),S=i(377),E=i(7439),k=i(5980),T=i(3600),M=i(7038),L=i(3691),I=i(6880),O=i(2609),D=i(7679);const R=["scrollContainer"];function N(t,e){if(1&t&&y._UZ(0,"qrcode",15),2&t){const t=y.oxw();y.Q6J("qrdata",t.showQRField)("margin",2)("width",240)("errorCorrectionLevel","L")("allowEmptyString",!0)}}function P(t,e){1&t&&y.GkF(0)}const F=function(t){return{"h-40":t}};function Z(t,e){if(1&t&&(y.ynx(0),y.TgZ(1,"mat-card-content",16,17),y.YNc(3,P,1,0,"ng-container",18),y.qZA(),y.BQk()),2&t){const t=y.oxw(),e=y.MAs(20);y.xp6(1),y.Q6J("ngClass",y.VKq(2,F,t.data.scrollable)),y.xp6(2),y.Q6J("ngTemplateOutlet",e)}}function B(t,e){1&t&&y.GkF(0)}function U(t,e){if(1&t&&(y.ynx(0),y.TgZ(1,"mat-card-content",19),y.YNc(2,B,1,0,"ng-container",18),y.qZA(),y.BQk()),2&t){y.oxw();const t=y.MAs(20);y.xp6(2),y.Q6J("ngTemplateOutlet",t)}}function q(t,e){1&t&&(y.TgZ(0,"mat-icon",23),y._uU(1,"arrow_downward"),y.qZA())}function z(t,e){1&t&&(y.TgZ(0,"mat-icon",23),y._uU(1,"arrow_upward"),y.qZA())}function H(t,e){if(1&t){const t=y.EpF();y.TgZ(0,"div",20),y.TgZ(1,"button",21),y.NdJ("click",function(){return y.CHM(t),y.oxw().onScroll()}),y.YNc(2,q,2,0,"mat-icon",22),y.YNc(3,z,2,0,"mat-icon",22),y.qZA(),y.qZA()}if(2&t){const t=y.oxw();y.xp6(2),y.Q6J("ngIf","DOWN"===t.scrollDirection),y.xp6(1),y.Q6J("ngIf","UP"===t.scrollDirection)}}function Y(t,e){1&t&&(y.TgZ(0,"button",24),y._uU(1,"OK"),y.qZA()),2&t&&y.Q6J("mat-dialog-close",!1)}function G(t,e){1&t&&(y.TgZ(0,"button",25),y._uU(1,"Close"),y.qZA()),2&t&&y.Q6J("mat-dialog-close",!1)}function j(t,e){if(1&t){const t=y.EpF();y.TgZ(0,"button",26),y.NdJ("copied",function(e){return y.CHM(t),y.oxw().onCopyField(e)}),y._uU(1),y.qZA()}if(2&t){const t=y.oxw();y.Q6J("payload",t.showCopyField),y.xp6(1),y.hij("Copy ",t.showCopyName,"")}}function V(t,e){1&t&&(y.TgZ(0,"button",25),y._uU(1,"Close"),y.qZA()),2&t&&y.Q6J("mat-dialog-close",!1)}function Q(t,e){if(1&t){const t=y.EpF();y.TgZ(0,"button",26),y.NdJ("copied",function(e){return y.CHM(t),y.oxw().onCopyField(e)}),y._uU(1),y.qZA()}if(2&t){const t=y.oxw();y.Q6J("payload",t.showQRField),y.xp6(1),y.hij("Copy ",t.showQRName,"")}}function W(t,e){if(1&t&&y._UZ(0,"qrcode",15),2&t){const t=y.oxw(2);y.Q6J("qrdata",t.showQRField)("margin",2)("width",240)("errorCorrectionLevel","L")("allowEmptyString",!0)}}function J(t,e){if(1&t&&(y.TgZ(0,"p",32),y._uU(1),y.qZA()),2&t){const t=y.oxw(2);y.xp6(1),y.Oqu(t.data.titleMessage)}}function X(t,e){1&t&&y._UZ(0,"span",46),2&t&&y.Q6J("innerHTML",e.$implicit,y.oJD)}function K(t,e){if(1&t&&(y.ynx(0),y.YNc(1,X,1,1,"span",45),y.BQk()),2&t){const t=y.oxw(2).$implicit;y.xp6(1),y.Q6J("ngForOf",t.value)}}function $(t,e){if(1&t&&(y.ynx(0),y._uU(1),y.ALo(2,"date"),y.BQk()),2&t){const t=y.oxw(2).$implicit;y.xp6(1),y.Oqu(y.xi3(2,1,1e3*t.value,"dd/MMM/YYYY HH:mm"))}}function tt(t,e){if(1&t&&(y.ynx(0),y._uU(1),y.ALo(2,"number"),y.BQk()),2&t){const t=y.oxw(2).$implicit;y.xp6(1),y.Oqu(y.xi3(2,1,t.value,t.digitsInfo?t.digitsInfo:"1.0-3"))}}function et(t,e){if(1&t&&(y.ynx(0),y._uU(1),y.BQk()),2&t){const t=y.oxw(2).$implicit;y.xp6(1),y.Oqu(t.value?"True":"False")}}function it(t,e){1&t&&(y.TgZ(0,"mat-icon",51),y._uU(1,"info"),y.qZA())}const nt=function(t){return{"failed-status":t}};function rt(t,e){if(1&t&&(y.TgZ(0,"p",49),y._uU(1),y.YNc(2,it,2,0,"mat-icon",50),y.qZA()),2&t){const t=y.oxw(3).$implicit,e=y.oxw(4);y.Q6J("ngClass",y.VKq(3,nt,t.value===e.LoopStateEnum.FAILED)),y.xp6(1),y.hij(" ",t.value," "),y.xp6(1),y.Q6J("ngIf",t.value===e.LoopStateEnum.FAILED)}}function st(t,e){if(1&t&&y._uU(0),2&t){const t=y.oxw(3).$implicit;y.Oqu(t.value)}}function ot(t,e){if(1&t&&(y.ynx(0),y.YNc(1,rt,3,5,"p",47),y.YNc(2,st,1,1,"ng-template",null,48,y.W1O),y.BQk()),2&t){const t=y.MAs(3),e=y.oxw(2).$implicit,i=y.oxw(4);y.xp6(1),y.Q6J("ngIf","SWAP"===i.data.openedBy&&"state"===e.key)("ngIfElse",t)}}function at(t,e){if(1&t&&(y.TgZ(0,"span"),y.TgZ(1,"span",42),y.YNc(2,K,2,1,"ng-container",43),y.YNc(3,$,3,4,"ng-container",43),y.YNc(4,tt,3,4,"ng-container",43),y.YNc(5,et,2,1,"ng-container",43),y.YNc(6,ot,4,2,"ng-container",44),y.qZA(),y.qZA()),2&t){const t=y.oxw().$implicit,e=y.oxw(4);y.xp6(1),y.Q6J("ngSwitch",t.type),y.xp6(1),y.Q6J("ngSwitchCase",e.dataTypeEnum.ARRAY),y.xp6(1),y.Q6J("ngSwitchCase",e.dataTypeEnum.DATE_TIME),y.xp6(1),y.Q6J("ngSwitchCase",e.dataTypeEnum.NUMBER),y.xp6(1),y.Q6J("ngSwitchCase",e.dataTypeEnum.BOOLEAN)}}function lt(t,e){1&t&&(y.TgZ(0,"span",52),y._uU(1,"\xa0"),y.qZA())}function ct(t,e){if(1&t&&(y.TgZ(0,"div",37),y.TgZ(1,"h4",38),y._uU(2),y.qZA(),y.YNc(3,at,7,5,"span",39),y.YNc(4,lt,2,0,"ng-template",null,40,y.W1O),y._UZ(6,"mat-divider",41),y.qZA()),2&t){const t=e.$implicit,i=y.MAs(5);y.s9C("fxFlex.gt-md",t.width),y.xp6(2),y.Oqu(t.title),y.xp6(1),y.Q6J("ngIf",t&&(!!t.value||0===t.value))("ngIfElse",i)}}function ht(t,e){if(1&t&&(y.TgZ(0,"div"),y.TgZ(1,"div",35),y.YNc(2,ct,7,4,"div",36),y.qZA(),y.qZA()),2&t){const t=e.$implicit;y.xp6(2),y.Q6J("ngForOf",t)}}function ut(t,e){if(1&t&&(y.TgZ(0,"div",33),y.YNc(1,ht,3,1,"div",34),y.qZA()),2&t){const t=y.oxw(2);y.xp6(1),y.Q6J("ngForOf",t.messageObjs)}}const dt=function(t){return{"display-none":t}};function pt(t,e){if(1&t&&(y.TgZ(0,"div",27),y.TgZ(1,"div",28),y.YNc(2,W,1,5,"qrcode",2),y.qZA(),y.TgZ(3,"div",29),y.YNc(4,J,2,1,"p",30),y.YNc(5,ut,2,1,"div",31),y.qZA(),y.qZA()),2&t){const t=y.oxw();y.xp6(1),y.Q6J("ngClass",y.VKq(4,dt,""===t.showQRField||t.screenSize!==t.screenSizeEnum.XS&&t.screenSize!==t.screenSizeEnum.SM)),y.xp6(1),y.Q6J("ngIf",""!==t.showQRField),y.xp6(2),y.Q6J("ngIf",t.data.titleMessage),y.xp6(1),y.Q6J("ngIf",(null==t.messageObjs?null:t.messageObjs.length)>0)}}let ft=(()=>{class t{constructor(t,e,i,n,r,s){this.dialogRef=t,this.data=e,this.logger=i,this.snackBar=n,this.commonService=r,this.renderer=s,this.LoopStateEnum=m.Fq,this.showQRField="",this.showQRName="",this.showCopyName="",this.showCopyField="",this.errorMessage="",this.messageObjs=[],this.alertTypeEnum=m.n_,this.dataTypeEnum=m.Gi,this.screenSize="",this.screenSizeEnum=m.cu,this.scrollDirection="DOWN",this.shouldScroll=!0}set container(t){t&&(this.scrollContainer=t,this.scrollContainer&&this.scrollContainer.nativeElement&&(this.unlistenEnd=this.renderer.listen(this.scrollContainer.nativeElement,"ps-y-reach-end",t=>{this.scrollDirection="UP"}),this.unlistenStart=this.renderer.listen(this.scrollContainer.nativeElement,"ps-y-reach-start",t=>{this.scrollDirection="DOWN"})))}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.messageObjs=this.data.message,this.showQRField=this.data.showQRField?this.data.showQRField:"",this.showQRName=this.data.showQRName?this.data.showQRName:"",this.showCopyName=this.data.showCopyName?this.data.showCopyName:"",this.showCopyField=this.data.showCopyField?this.data.showCopyField:"",this.data.type===m.n_.ERROR&&!this.data.message&&!this.data.titleMessage&&this.messageObjs.length<=0&&(this.data.titleMessage="Please Check Server Connection"),this.logger.info(this.messageObjs)}ngAfterViewChecked(){setTimeout(()=>{this.shouldScroll=this.scrollContainer&&this.scrollContainer.nativeElement&&this.scrollContainer.nativeElement.classList.value.includes("ps--active-y")},500)}onScroll(){this.scrollContainer.nativeElement.scrollTop="DOWN"===this.scrollDirection?this.scrollContainer.nativeElement.scrollTop+62.6:this.scrollContainer.nativeElement.scrollTop-62.6}onCopyField(t){this.snackBar.open((this.showQRName?this.showQRName:this.showCopyName)+" copied."),this.logger.info("Copied Text: "+t)}onClose(){this.dialogRef.close(!1)}ngOnDestroy(){this.unlistenStart&&this.unlistenStart(),this.unlistenEnd&&this.unlistenEnd()}}return t.\u0275fac=function(e){return new(e||t)(y.Y36(g.so),y.Y36(g.WI),y.Y36(w.mQ),y.Y36(x.ux),y.Y36(C.v),y.Y36(y.Qsj))},t.\u0275cmp=y.Xpm({type:t,selectors:[["rtl-alert-message"]],viewQuery:function(t,e){if(1&t&&y.Gf(R,5),2&t){let t;y.iGM(t=y.CRH())&&(e.container=t.first)}},decls:21,vars:14,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","30","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap-large",3,"ngClass"],[3,"qrdata","margin","width","errorCorrectionLevel","allowEmptyString",4,"ngIf"],[3,"fxFlex"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","start end","class","btn-sticky-container padding-gap-x-large",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",1,"padding-gap-x-large","padding-gap-bottom-large"],["tabindex","1","autoFocus","","mat-flat-button","","color","primary","type","submit","default","",3,"mat-dialog-close",4,"ngIf"],["class","mr-1","fxLayoutAlign","center center","tabindex","1","mat-stroked-button","","color","primary","type","button","default","",3,"mat-dialog-close",4,"ngIf"],["autoFocus","","mat-flat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["contentBlock",""],[3,"qrdata","margin","width","errorCorrectionLevel","allowEmptyString"],[1,"padding-gap-x-large",3,"perfectScrollbar","ngClass"],["scrollContainer",""],[4,"ngTemplateOutlet"],[1,"padding-gap-x-large"],["fxLayout","row","fxLayoutAlign","start end",1,"btn-sticky-container","padding-gap-x-large"],["mat-mini-fab","","aria-label","Scroll","fxLayoutAlign","center center",3,"click"],["fxLayoutAlign","center center",4,"ngIf"],["fxLayoutAlign","center center"],["tabindex","1","autoFocus","","mat-flat-button","","color","primary","type","submit","default","",3,"mat-dialog-close"],["fxLayoutAlign","center center","tabindex","1","mat-stroked-button","","color","primary","type","button","default","",1,"mr-1",3,"mat-dialog-close"],["autoFocus","","mat-flat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["fxLayout","column"],["fxFlex","50","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap-large","mb-1",3,"ngClass"],["fxLayout","row","fxFlex","100"],["fxLayoutAlign","start center","class","pb-1",4,"ngIf"],["fxFlex","100",4,"ngIf"],["fxLayoutAlign","start center",1,"pb-1"],["fxFlex","100"],[4,"ngFor","ngForOf"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","start center","fxLayoutAlign.gt-md","space-between start"],["fxLayout","column","fxFlex","100",3,"fxFlex.gt-md",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100",3,"fxFlex.gt-md"],["fxLayoutAlign","start",1,"font-bold-500"],[4,"ngIf","ngIfElse"],["emptyField",""],[1,"w-100","my-1"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"foreground-secondary-text",3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["class","display-block w-100",3,"innerHTML",4,"ngFor","ngForOf"],[1,"display-block","w-100",3,"innerHTML"],["fxLayout","row",3,"ngClass",4,"ngIf","ngIfElse"],["noStyleBlock",""],["fxLayout","row",3,"ngClass"],["fxLayoutAlign","end end","class","icon-failed-status",4,"ngIf"],["fxLayoutAlign","end end",1,"icon-failed-status"],["fxFlex","100",1,"foreground-secondary-text"]],template:function(t,e){1&t&&(y.TgZ(0,"div",0),y.TgZ(1,"div",1),y.YNc(2,N,1,5,"qrcode",2),y.qZA(),y.TgZ(3,"div",3),y.TgZ(4,"mat-card-header",4),y.TgZ(5,"div",5),y.TgZ(6,"span",6),y._uU(7),y.qZA(),y.qZA(),y.TgZ(8,"button",7),y.NdJ("click",function(){return e.onClose()}),y._uU(9,"X"),y.qZA(),y.qZA(),y.YNc(10,Z,4,4,"ng-container",8),y.YNc(11,U,3,1,"ng-container",8),y.YNc(12,H,4,2,"div",9),y.TgZ(13,"div",10),y.YNc(14,Y,2,1,"button",11),y.YNc(15,G,2,1,"button",12),y.YNc(16,j,2,2,"button",13),y.YNc(17,V,2,1,"button",12),y.YNc(18,Q,2,2,"button",13),y.qZA(),y.qZA(),y.qZA(),y.YNc(19,pt,6,6,"ng-template",null,14,y.W1O)),2&t&&(y.xp6(1),y.Q6J("ngClass",y.VKq(12,dt,""===e.showQRField||e.screenSize===e.screenSizeEnum.XS||e.screenSize===e.screenSizeEnum.SM)),y.xp6(1),y.Q6J("ngIf",""!==e.showQRField),y.xp6(1),y.Q6J("fxFlex",""===e.showQRField||e.screenSize===e.screenSizeEnum.XS||e.screenSize===e.screenSizeEnum.SM?"100":"70"),y.xp6(4),y.Oqu(e.data.alertTitle||e.alertTypeEnum[e.data.type]),y.xp6(3),y.Q6J("ngIf",e.data.scrollable),y.xp6(1),y.Q6J("ngIf",!e.data.scrollable),y.xp6(1),y.Q6J("ngIf",e.data.scrollable&&e.shouldScroll),y.xp6(2),y.Q6J("ngIf",(!e.showQRField||""===e.showQRField)&&""===e.showCopyName),y.xp6(1),y.Q6J("ngIf",""!==e.showCopyName),y.xp6(1),y.Q6J("ngIf",""!==e.showCopyName),y.xp6(1),y.Q6J("ngIf",""!==e.showQRField),y.xp6(1),y.Q6J("ngIf",""!==e.showQRField))},directives:[b.xw,b.Wh,b.yH,A.mk,S.oO,A.O5,E.dk,k.lW,T.V,E.dn,M.$V,A.tP,L.Hw,I.h,g.ZT,O.y,A.sg,D.d,A.RF,A.n9,A.ED],pipes:[A.uU,A.JJ],styles:[".display-block[_ngcontent-%COMP%]{display:block}"]}),t})();var mt=i(5291),gt=i(3929),yt=i(964),bt=i(6073),vt=i(7592),_t=i(6283),wt=i(6756),xt=i(5095);function Ct(t,e){if(1&t&&(y.TgZ(0,"div",17),y._UZ(1,"fa-icon",18),y.TgZ(2,"span"),y._uU(3),y.qZA(),y.qZA()),2&t){const t=y.oxw();y.xp6(1),y.Q6J("icon",t.faExclamationTriangle),y.xp6(2),y.Oqu(t.warningMessage)}}function At(t,e){if(1&t&&(y.TgZ(0,"div",19),y._UZ(1,"fa-icon",18),y.TgZ(2,"span"),y._uU(3),y.qZA(),y.qZA()),2&t){const t=y.oxw();y.xp6(1),y.Q6J("icon",t.faInfoCircle),y.xp6(2),y.Oqu(t.informationMessage)}}function St(t,e){if(1&t&&(y.TgZ(0,"p",20),y._uU(1),y.qZA()),2&t){const t=y.oxw();y.xp6(1),y.Oqu(t.data.titleMessage)}}function Et(t,e){if(1&t&&(y.TgZ(0,"span",33),y._uU(1),y.qZA()),2&t){const t=e.$implicit;y.xp6(1),y.Oqu(t)}}function kt(t,e){if(1&t&&(y.ynx(0),y.YNc(1,Et,2,1,"span",32),y.BQk()),2&t){const t=y.oxw(2).$implicit;y.xp6(1),y.Q6J("ngForOf",t.value)}}function Tt(t,e){if(1&t&&(y.ynx(0),y._uU(1),y.ALo(2,"date"),y.BQk()),2&t){const t=y.oxw(2).$implicit;y.xp6(1),y.Oqu(y.xi3(2,1,1e3*t.value,"dd/MMM/YYYY HH:mm"))}}function Mt(t,e){if(1&t&&(y.ynx(0),y._uU(1),y.ALo(2,"number"),y.BQk()),2&t){const t=y.oxw(2).$implicit;y.xp6(1),y.Oqu(y.xi3(2,1,t.value,"1.0-3"))}}function Lt(t,e){if(1&t&&(y.ynx(0),y._uU(1),y.BQk()),2&t){const t=y.oxw(2).$implicit;y.xp6(1),y.Oqu(!0===t.value?"True":"False")}}function It(t,e){if(1&t&&(y.ynx(0),y._uU(1),y.BQk()),2&t){const t=y.oxw(2).$implicit;y.xp6(1),y.Oqu(t.value)}}function Ot(t,e){if(1&t&&(y.TgZ(0,"span"),y.TgZ(1,"span",29),y.YNc(2,kt,2,1,"ng-container",30),y.YNc(3,Tt,3,4,"ng-container",30),y.YNc(4,Mt,3,4,"ng-container",30),y.YNc(5,Lt,2,1,"ng-container",30),y.YNc(6,It,2,1,"ng-container",31),y.qZA(),y.qZA()),2&t){const t=y.oxw().$implicit,e=y.oxw(3);y.xp6(1),y.Q6J("ngSwitch",t.type),y.xp6(1),y.Q6J("ngSwitchCase",e.dataTypeEnum.ARRAY),y.xp6(1),y.Q6J("ngSwitchCase",e.dataTypeEnum.DATE_TIME),y.xp6(1),y.Q6J("ngSwitchCase",e.dataTypeEnum.NUMBER),y.xp6(1),y.Q6J("ngSwitchCase",e.dataTypeEnum.BOOLEAN)}}function Dt(t,e){1&t&&(y.TgZ(0,"span",34),y._uU(1,"\xa0"),y.qZA())}function Rt(t,e){if(1&t&&(y.TgZ(0,"div",24),y.TgZ(1,"h4",25),y._uU(2),y.qZA(),y.YNc(3,Ot,7,5,"span",26),y.YNc(4,Dt,2,0,"ng-template",null,27,y.W1O),y._UZ(6,"mat-divider",28),y.qZA()),2&t){const t=e.$implicit,i=y.MAs(5);y.s9C("fxFlex.gt-md",t.width),y.xp6(2),y.Oqu(t.title),y.xp6(1),y.Q6J("ngIf",t&&t.value)("ngIfElse",i)}}function Nt(t,e){if(1&t&&(y.TgZ(0,"div"),y.TgZ(1,"div",22),y.YNc(2,Rt,7,4,"div",23),y.qZA(),y.qZA()),2&t){const t=e.$implicit;y.xp6(2),y.Q6J("ngForOf",t)}}function Pt(t,e){if(1&t&&(y.TgZ(0,"div"),y.YNc(1,Nt,3,1,"div",21),y.qZA()),2&t){const t=y.oxw();y.xp6(1),y.Q6J("ngForOf",t.messageObjs)}}function Ft(t,e){if(1&t&&(y.TgZ(0,"p",20),y._uU(1),y.qZA()),2&t){const t=y.oxw(2);y.xp6(1),y.Oqu(t.data.titleMessage)}}function Zt(t,e){if(1&t){const t=y.EpF();y.TgZ(0,"input",41),y.NdJ("ngModelChange",function(e){return y.CHM(t),y.oxw().$implicit.inputValue=e}),y.ALo(1,"lowercase"),y.qZA()}if(2&t){const t=y.oxw(),e=t.index,i=t.$implicit;y.MGl("name","input",e,""),y.Q6J("placeholder",i.placeholder)("min",i.min)("step",i.step)("type",y.lcZ(1,7,i.inputType))("ngModel",i.inputValue)("tabindex",e+1)}}function Bt(t,e){if(1&t){const t=y.EpF();y.TgZ(0,"input",42),y.NdJ("ngModelChange",function(e){return y.CHM(t),y.oxw().$implicit.inputValue=e}),y.ALo(1,"lowercase"),y.qZA()}if(2&t){const t=y.oxw(),e=t.index,i=t.$implicit;y.MGl("name","input",e,""),y.Q6J("placeholder",i.placeholder)("min",i.min)("step",i.step)("type",y.lcZ(1,7,i.inputType))("ngModel",i.inputValue)("tabindex",e+1)}}function Ut(t,e){if(1&t&&(y.TgZ(0,"mat-error"),y._uU(1),y.qZA()),2&t){const t=y.oxw().$implicit;y.xp6(1),y.hij("",t.placeholder," is required.")}}function qt(t,e){if(1&t&&(y.TgZ(0,"mat-form-field",38),y.YNc(1,Zt,2,9,"input",39),y.YNc(2,Bt,2,9,"input",40),y.YNc(3,Ut,2,1,"mat-error",11),y.TgZ(4,"mat-hint"),y._uU(5),y.qZA(),y.qZA()),2&t){const t=e.$implicit,i=e.index;y.Q6J("fxFlex",t.width),y.xp6(1),y.Q6J("ngIf",0===i),y.xp6(1),y.Q6J("ngIf",0!==i),y.xp6(1),y.Q6J("ngIf",!t.inputValue),y.xp6(2),y.Oqu(t.hintFunction?t.hintFunction(t.inputValue):t.hintText)}}function zt(t,e){if(1&t&&(y.TgZ(0,"div",35),y.YNc(1,Ft,2,1,"p",10),y.TgZ(2,"div",36),y.YNc(3,qt,6,5,"mat-form-field",37),y.qZA(),y.qZA()),2&t){const t=y.oxw();y.xp6(1),y.Q6J("ngIf",t.data.titleMessage),y.xp6(2),y.Q6J("ngForOf",t.getInputs)}}function Ht(t,e){if(1&t){const t=y.EpF();y.TgZ(0,"button",43),y.NdJ("click",function(){y.CHM(t);const e=y.oxw();return e.onClose(e.getInputs)}),y._uU(1),y.qZA()}if(2&t){const t=y.oxw();y.xp6(1),y.Oqu(t.yesBtnText)}}function Yt(t,e){if(1&t){const t=y.EpF();y.TgZ(0,"button",44),y.NdJ("click",function(){return y.CHM(t),y.oxw().onClose(!0)}),y._uU(1),y.qZA()}if(2&t){const t=y.oxw();y.xp6(1),y.Oqu(t.yesBtnText)}}let Gt=(()=>{class t{constructor(t,e,i,n){this.dialogRef=t,this.data=e,this.logger=i,this.store=n,this.faInfoCircle=mt.sqG,this.faExclamationTriangle=mt.eHv,this.informationMessage="",this.warningMessage="",this.noBtnText="No",this.yesBtnText="Yes",this.messageObjs=[],this.flgShowInput=!1,this.alertTypeEnum=m.n_,this.dataTypeEnum=m.Gi,this.getInputs=[{placeholder:"",inputType:"text",inputValue:"",hintText:"",hintFunction:null}]}ngOnInit(){this.informationMessage=this.data.informationMessage,this.warningMessage=this.data.warningMessage,this.flgShowInput=this.data.flgShowInput,this.getInputs=this.data.getInputs,this.noBtnText=this.data.noBtnText?this.data.noBtnText:"No",this.yesBtnText=this.data.yesBtnText?this.data.yesBtnText:"Yes",this.messageObjs=this.data.message,this.data.type===m.n_.ERROR&&!this.data.message&&!this.data.titleMessage&&this.messageObjs.length<=0&&(this.data.titleMessage="Please Check Server Connection")}onClose(t){if(t&&this.getInputs&&this.getInputs.some(t=>!t.inputValue))return!0;this.store.dispatch(new gt.Ws(t))}}return t.\u0275fac=function(e){return new(e||t)(y.Y36(g.so),y.Y36(g.WI),y.Y36(w.mQ),y.Y36(yt.yh))},t.\u0275cmp=y.Xpm({type:t,selectors:[["rtl-confirmation-message"]],decls:20,vars:9,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],["fxFlex","100","class","alert alert-warn",4,"ngIf"],["fxFlex","100","class","alert alert-info",4,"ngIf"],["fxLayoutAlign","start center","class","pb-1",4,"ngIf"],[4,"ngIf"],["fxLayout","column","class","bordered-box my-2 p-2",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","reset","tabindex","2",1,"mr-1",3,"click"],["autoFocus","","mat-flat-button","","color","primary","type","submit","tabindex","3","default","",3,"click",4,"ngIf"],["autoFocus","","mat-flat-button","","color","primary","type","submit","tabindex","4","default","",3,"click",4,"ngIf"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["fxFlex","100",1,"alert","alert-info"],["fxLayoutAlign","start center",1,"pb-1"],[4,"ngFor","ngForOf"],["fxLayout","row wrap","fxLayoutAlign","start center","fxLayoutAlign.gt-md","space-between start"],["fxLayout","column","fxFlex","100",3,"fxFlex.gt-md",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100",3,"fxFlex.gt-md"],["fxLayoutAlign","start",1,"font-bold-500"],[4,"ngIf","ngIfElse"],["emptyField",""],[1,"w-100","my-1"],[1,"foreground-secondary-text",3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["class","display-block",4,"ngFor","ngForOf"],[1,"display-block"],["fxFlex","100",1,"foreground-secondary-text"],["fxLayout","column",1,"bordered-box","my-2","p-2"],["fxLayoutAlign","space-between center"],[3,"fxFlex",4,"ngFor","ngForOf"],[3,"fxFlex"],["autoFocus","","matInput","","required","",3,"placeholder","name","min","step","type","ngModel","tabindex","ngModelChange",4,"ngIf"],["matInput","","required","",3,"placeholder","name","min","step","type","ngModel","tabindex","ngModelChange",4,"ngIf"],["autoFocus","","matInput","","required","",3,"placeholder","name","min","step","type","ngModel","tabindex","ngModelChange"],["matInput","","required","",3,"placeholder","name","min","step","type","ngModel","tabindex","ngModelChange"],["autoFocus","","mat-flat-button","","color","primary","type","submit","tabindex","3","default","",3,"click"],["autoFocus","","mat-flat-button","","color","primary","type","submit","tabindex","4","default","",3,"click"]],template:function(t,e){1&t&&(y.TgZ(0,"div",0),y.TgZ(1,"div",1),y.TgZ(2,"mat-card-header",2),y.TgZ(3,"div",3),y.TgZ(4,"span",4),y._uU(5),y.qZA(),y.qZA(),y.TgZ(6,"button",5),y.NdJ("click",function(){return e.onClose(!1)}),y._uU(7,"X"),y.qZA(),y.qZA(),y.TgZ(8,"mat-card-content",6),y.TgZ(9,"form",7),y.YNc(10,Ct,4,2,"div",8),y.YNc(11,At,4,2,"div",9),y.YNc(12,St,2,1,"p",10),y.YNc(13,Pt,2,1,"div",11),y.YNc(14,zt,4,2,"div",12),y.TgZ(15,"div",13),y.TgZ(16,"button",14),y.NdJ("click",function(){return e.onClose(!1)}),y._uU(17),y.qZA(),y.YNc(18,Ht,2,1,"button",15),y.YNc(19,Yt,2,1,"button",16),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.qZA()),2&t&&(y.xp6(5),y.Oqu(e.data.alertTitle||e.alertTypeEnum[e.data.type]),y.xp6(5),y.Q6J("ngIf",e.warningMessage&&""!==e.warningMessage),y.xp6(1),y.Q6J("ngIf",e.informationMessage&&""!==e.informationMessage),y.xp6(1),y.Q6J("ngIf",e.data.titleMessage&&!e.flgShowInput),y.xp6(1),y.Q6J("ngIf",(null==e.messageObjs?null:e.messageObjs.length)>0),y.xp6(1),y.Q6J("ngIf",e.flgShowInput),y.xp6(3),y.Oqu(e.noBtnText),y.xp6(1),y.Q6J("ngIf",e.flgShowInput),y.xp6(1),y.Q6J("ngIf",!e.flgShowInput))},directives:[b.xw,b.yH,E.dk,b.Wh,k.lW,E.dn,bt._Y,bt.JL,bt.F,A.O5,vt.BN,A.sg,D.d,A.RF,A.n9,A.ED,_t.KE,_t.bx,wt.Nt,xt.q,bt.Fj,I.h,bt.Q7,bt.JJ,bt.On,_t.TO],pipes:[A.uU,A.JJ,A.i8],styles:[""]}),t})();var jt=i(2427),Vt=i(4786),Qt=i(1522);function Wt(t,e){if(1&t&&(y.TgZ(0,"mat-option",23),y._uU(1),y.qZA()),2&t){const t=e.$implicit;y.Q6J("value",t),y.xp6(1),y.hij(" ",t.infoName," ")}}function Jt(t,e){if(1&t){const t=y.EpF();y.TgZ(0,"div",13),y.TgZ(1,"mat-form-field",20),y.TgZ(2,"mat-select",21),y.NdJ("valueChange",function(e){return y.CHM(t),y.oxw().selInfoType=e}),y.YNc(3,Wt,2,2,"mat-option",22),y.qZA(),y.qZA(),y.qZA()}if(2&t){const t=y.oxw();y.xp6(2),y.Q6J("value",t.selInfoType),y.xp6(1),y.Q6J("ngForOf",t.infoTypes)}}const Xt=function(t){return{"display-none":t}};let Kt=(()=>{class t{constructor(t,e,i,n,r){this.dialogRef=t,this.data=e,this.logger=i,this.snackBar=n,this.commonService=r,this.faReceipt=mt.dLy,this.infoTypes=[{infoID:0,infoKey:"node pubkey",infoName:"Node pubkey"}],this.selInfoType=this.infoTypes[0],this.qrWidth=210,this.screenSize="",this.screenSizeEnum=m.cu}ngOnInit(){this.information=this.data.information,this.information.uris&&(1===this.information.uris.length?this.infoTypes.push({infoID:1,infoKey:"node URI",infoName:"Node URI"}):this.information.uris.length>1&&this.information.uris.forEach((t,e)=>{this.infoTypes.push({infoID:e+1,infoKey:"node URI "+(e+1),infoName:"Node URI "+(e+1)})})),this.screenSize=this.commonService.getScreenSize()}onClose(){this.dialogRef.close(!1)}onCopyPubkey(t){this.snackBar.open(this.selInfoType.infoName+" copied."),this.logger.info("Copied Text: "+t)}}return t.\u0275fac=function(e){return new(e||t)(y.Y36(g.so),y.Y36(g.WI),y.Y36(w.mQ),y.Y36(x.ux),y.Y36(C.v))},t.\u0275cmp=y.Xpm({type:t,selectors:[["rtl-show-pubkey"]],decls:26,vars:23,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","30","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap-large",3,"ngClass"],[3,"qrdata","margin","width","errorCorrectionLevel","allowEmptyString"],["fxFlex","100","fxFlex.gt-sm","70"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],["fxFlex","50","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap-large",3,"ngClass"],["fxLayout","row",4,"ngIf"],["fxLayout","row"],["fxFlex","100"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"w-100","my-1"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-2"],["autoFocus","","mat-flat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["fxFlex","100","fxFlex.gt-sm","40","fxLayoutAlign","start end"],["tabindex","1",3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(t,e){1&t&&(y.TgZ(0,"div",0),y.TgZ(1,"div",1),y._UZ(2,"qrcode",2),y.qZA(),y.TgZ(3,"div",3),y.TgZ(4,"mat-card-header",4),y.TgZ(5,"div",5),y._UZ(6,"fa-icon",6),y.TgZ(7,"span",7),y._uU(8),y.qZA(),y.qZA(),y.TgZ(9,"button",8),y.NdJ("click",function(){return e.onClose()}),y._uU(10,"X"),y.qZA(),y.qZA(),y.TgZ(11,"mat-card-content",9),y.TgZ(12,"div",10),y.TgZ(13,"div",11),y._UZ(14,"qrcode",2),y.qZA(),y.YNc(15,Jt,4,2,"div",12),y.TgZ(16,"div",13),y.TgZ(17,"div",14),y.TgZ(18,"h4",15),y._uU(19),y.qZA(),y.TgZ(20,"span",16),y._uU(21),y.qZA(),y.qZA(),y.qZA(),y._UZ(22,"mat-divider",17),y.TgZ(23,"div",18),y.TgZ(24,"button",19),y.NdJ("copied",function(t){return e.onCopyPubkey(t)}),y._uU(25),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.qZA()),2&t&&(y.xp6(1),y.Q6J("ngClass",y.VKq(19,Xt,e.screenSize===e.screenSizeEnum.XS||e.screenSize===e.screenSizeEnum.SM)),y.xp6(1),y.s9C("qrdata",0===e.selInfoType.infoID?e.information.identity_pubkey:e.information.uris[e.selInfoType.infoID-1]),y.Q6J("margin",2)("width",e.qrWidth)("errorCorrectionLevel","L")("allowEmptyString",!0),y.xp6(4),y.Q6J("icon",e.faReceipt),y.xp6(2),y.Oqu(e.selInfoType.infoName),y.xp6(5),y.Q6J("ngClass",y.VKq(21,Xt,e.screenSize!==e.screenSizeEnum.XS&&e.screenSize!==e.screenSizeEnum.SM)),y.xp6(1),y.s9C("qrdata",0===e.selInfoType.infoID?e.information.identity_pubkey:e.information.uris[e.selInfoType.infoID-1]),y.Q6J("margin",2)("width",e.qrWidth)("errorCorrectionLevel","L")("allowEmptyString",!0),y.xp6(1),y.Q6J("ngIf",e.information.uris&&e.information.uris.length>0),y.xp6(4),y.Oqu(e.selInfoType.infoName),y.xp6(2),y.Oqu(0===e.selInfoType.infoID?e.information.identity_pubkey:e.information.uris[e.selInfoType.infoID-1]),y.xp6(3),y.s9C("payload",0===e.selInfoType.infoID?e.information.identity_pubkey:e.information.uris[e.selInfoType.infoID-1]),y.xp6(1),y.hij("Copy ",e.selInfoType.infoKey,""))},directives:[b.xw,b.Wh,b.yH,A.mk,S.oO,T.V,E.dk,vt.BN,k.lW,E.dn,A.O5,D.d,I.h,O.y,_t.KE,Vt.gD,A.sg,Qt.ey],styles:[""]}),t})();var $t=i(6124),te=i(9939),ee=i(5678),ie=i(9063),ne=i(3191),re=i(3556),se=i(6853);let oe=(()=>{class t{constructor(t,e,i,g,y,b,v,w,x,C){this.actions=t,this.httpClient=e,this.store=i,this.logger=g,this.sessionService=y,this.commonService=b,this.dataService=v,this.dialog=w,this.snackBar=x,this.router=C,this.screenSize="",this.alertWidth="55%",this.confirmWidth="70%",this.unSubs=[new r.x,new r.x],this.closeAllDialogs=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(gt.VO),(0,l.U)(t=>{this.dialog.closeAll()})),{dispatch:!1}),this.openSnackBar=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(gt.mm),(0,l.U)(t=>{"string"==typeof t.payload?this.snackBar.open(t.payload):this.snackBar.open(t.payload.message,"","ERROR"===t.payload.type?{duration:t.payload.duration?t.payload.duration:2e3,panelClass:"rtl-warn-snack-bar"}:"WARN"===t.payload.type?{duration:t.payload.duration?t.payload.duration:2e3,panelClass:"rtl-accent-snack-bar"}:{duration:t.payload.duration?t.payload.duration:2e3,panelClass:"rtl-snack-bar"})})),{dispatch:!1}),this.openSpinner=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(gt.ow),(0,l.U)(t=>{t.payload!==m.m6.NO_SPINNER&&(this.dialogRef=this.dialog.open(_,{data:{titleMessage:t.payload}}))})),{dispatch:!1}),this.closeSpinner=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(gt.S7),(0,l.U)(t=>{if(t.payload!==m.m6.NO_SPINNER)try{this.dialogRef&&this.dialogRef.componentInstance&&this.dialogRef.componentInstance.data&&this.dialogRef.componentInstance.data.titleMessage&&this.dialogRef.componentInstance.data.titleMessage===t.payload?this.dialogRef.close():this.dialog.openDialogs.forEach(e=>{e.componentInstance&&e.componentInstance.data&&e.componentInstance.data.titleMessage&&e.componentInstance.data.titleMessage===t.payload&&e.close()})}catch(e){this.logger.error(e)}})),{dispatch:!1}),this.openAlert=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(gt.fW),(0,l.U)(t=>{t.payload.width=this.alertWidth,this.dialogRef=this.dialog.open(t.payload.data.component?t.payload.data.component:ft,t.payload)})),{dispatch:!1}),this.closeAlert=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(gt.r3),(0,l.U)(t=>(this.dialogRef&&this.dialogRef.close(),t.payload))),{dispatch:!1}),this.openConfirm=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(gt.yL),(0,l.U)(t=>{t.payload.width=this.confirmWidth,this.dialogRef=this.dialog.open(Gt,t.payload)})),{dispatch:!1}),this.closeConfirm=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(gt.Vt),(0,c.q)(1),(0,l.U)(t=>(this.dialogRef&&this.dialogRef.close(),this.logger.info(t.payload),t.payload))),{dispatch:!1}),this.showNodePubkey=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(gt.oO),(0,h.M)(this.store.select("root")),(0,u.z)(([t,e])=>(this.sessionService.getItem("token")&&e.nodeData.identity_pubkey?this.store.dispatch(new gt.wu({width:"70%",data:{information:e.nodeData,component:Kt}})):this.snackBar.open("Node Pubkey does not exist."),(0,s.of)({type:gt.Zn}))))),this.appConfigFetch=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(gt.vH),(0,u.z)(t=>(this.screenSize=this.commonService.getScreenSize(),this.screenSize===m.cu.XS||this.screenSize===m.cu.SM?(this.alertWidth="95%",this.confirmWidth="95%"):this.screenSize===m.cu.MD?(this.alertWidth="80%",this.confirmWidth="80%"):(this.alertWidth="55%",this.confirmWidth="60%"),this.store.dispatch(new gt.Fk(m.m6.GET_RTL_CONFIG)),this.store.dispatch(new gt.np({action:"FetchRTLConfig",status:m.Bn.INITIATED})),this.sessionService.getItem("token")?this.httpClient.get(f.N.CONF_API+"/rtlconf"):this.httpClient.get(f.N.CONF_API+"/rtlconfinit"))),(0,l.U)(t=>{let e;return this.logger.info(t),this.store.dispatch(new gt.Iv(m.m6.GET_RTL_CONFIG)),this.store.dispatch(new gt.np({action:"FetchRTLConfig",status:m.Bn.COMPLETED})),t.nodes.forEach(i=>{i.settings.currencyUnits=[...m.uA,i.settings.currencyUnit],+i.index===t.selectedNodeIndex&&(e=i)}),e?(this.store.dispatch(new gt.ZG({uiMessage:m.m6.NO_SPINNER,lnNode:e,isInitialSetup:!0})),{type:gt.rZ,payload:t}):{type:gt.Zn}}),(0,d.K)(t=>(this.handleErrorWithoutAlert("FetchRTLConfig",m.m6.GET_RTL_CONFIG,t),(0,s.of)({type:gt.Zn}))))),this.settingSave=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(gt.Ol),(0,u.z)(t=>{this.store.dispatch(new gt.Fk(t.payload.uiMessage)),this.store.dispatch(new gt.np({action:"UpdateSettings",status:m.Bn.INITIATED}));let e=new o.y;if(t.payload.settings&&t.payload.defaultNodeIndex){const i=this.httpClient.post(f.N.CONF_API,{updatedSettings:t.payload.settings}),n=this.httpClient.post(f.N.CONF_API+"/updateDefaultNode",{defaultNodeIndex:t.payload.defaultNodeIndex});e=(0,a.D)([i,n])}else t.payload.settings&&!t.payload.defaultNodeIndex?e=this.httpClient.post(f.N.CONF_API,{updatedSettings:t.payload.settings}):!t.payload.settings&&t.payload.defaultNodeIndex&&(e=this.httpClient.post(f.N.CONF_API+"/updateDefaultNode",{defaultNodeIndex:t.payload.defaultNodeIndex}));return e.pipe((0,l.U)(e=>(this.logger.info(e),this.store.dispatch(new gt.np({action:"UpdateSettings",status:m.Bn.COMPLETED})),this.store.dispatch(new gt.Iv(t.payload.uiMessage)),{type:gt.mm,payload:e.length?e[0].message+".":e.message+"."})),(0,d.K)(e=>(this.handleErrorWithAlert("UpdateSettings",t.payload.uiMessage,"Update Settings Failed!",f.N.CONF_API,e.length?e[0]:e),(0,s.of)({type:gt.Zn}))))}))),this.updateServicesettings=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(gt.Tb),(0,u.z)(t=>(this.store.dispatch(new gt.Fk(t.payload.uiMessage)),this.store.dispatch(new gt.np({action:"UpdateServiceSettings",status:m.Bn.INITIATED})),this.httpClient.post(f.N.CONF_API+"/updateServiceSettings",t.payload).pipe((0,l.U)(e=>(this.logger.info(e),this.store.dispatch(new gt.np({action:"UpdateServiceSettings",status:m.Bn.COMPLETED})),this.store.dispatch(new gt.Iv(t.payload.uiMessage)),{type:gt.mm,payload:e.message+"."})),(0,d.K)(e=>(this.handleErrorWithAlert("UpdateServiceSettings",t.payload.uiMessage,"Update Service Settings Failed!",f.N.CONF_API,e),(0,s.of)({type:gt.Zn})))))))),this.twoFASettingSave=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(gt.xh),(0,u.z)(t=>(this.store.dispatch(new gt.Fk(m.m6.UPDATE_UI_SETTINGS)),this.store.dispatch(new gt.np({action:"Update2FASettings",status:m.Bn.INITIATED})),this.httpClient.post(f.N.CONF_API+"/update2FA",{secret2fa:t.payload.secret2fa}))),(0,l.U)(t=>(this.logger.info(t),this.store.dispatch(new gt.np({action:"Update2FASettings",status:m.Bn.COMPLETED})),this.store.dispatch(new gt.Iv(m.m6.UPDATE_UI_SETTINGS)),{type:gt.Zn})),(0,d.K)(t=>(this.handleErrorWithAlert("Update2FASettings",m.m6.UPDATE_UI_SETTINGS,"Update 2FA Settings Failed!",f.N.CONF_API,t),(0,s.of)({type:gt.Zn}))))),this.configFetch=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(gt.Ih),(0,u.z)(t=>(this.store.dispatch(new gt.Fk(m.m6.OPEN_CONFIG_FILE)),this.store.dispatch(new gt.np({action:"fetchConfig",status:m.Bn.INITIATED})),this.httpClient.get(f.N.CONF_API+"/config/"+t.payload).pipe((0,l.U)(t=>(this.store.dispatch(new gt.np({action:"fetchConfig",status:m.Bn.COMPLETED})),this.store.dispatch(new gt.Iv(m.m6.OPEN_CONFIG_FILE)),{type:gt.mG,payload:t})),(0,d.K)(e=>(this.handleErrorWithAlert("fetchConfig",m.m6.OPEN_CONFIG_FILE,"Fetch Config Failed!",f.N.CONF_API+"/config/"+t.payload,e),(0,s.of)({type:gt.Zn})))))))),this.showLnConfig=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(gt.mG),(0,l.U)(t=>t.payload)),{dispatch:!1}),this.isAuthorized=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(gt.s3),(0,h.M)(this.store.select("root")),(0,u.z)(([t,e])=>(this.store.dispatch(new gt.np({action:"IsAuthorized",status:m.Bn.INITIATED})),this.httpClient.post(f.N.AUTHENTICATE_API,{authenticateWith:t.payload&&""!==t.payload.trim()?m.OJ.PASSWORD:m.OJ.JWT,authenticationValue:t.payload&&""!==t.payload.trim()?t.payload:this.sessionService.getItem("token")?this.sessionService.getItem("token"):""}).pipe((0,l.U)(t=>(this.logger.info(t),this.store.dispatch(new gt.np({action:"IsAuthorized",status:m.Bn.COMPLETED})),this.logger.info("Successfully Authorized!"),{type:gt.JU,payload:t})),(0,d.K)(t=>(this.handleErrorWithAlert("IsAuthorized",m.m6.NO_SPINNER,"Authorization Failed",f.N.AUTHENTICATE_API,t),(0,s.of)({type:gt.JU,payload:"ERROR"})))))))),this.isAuthorizedRes=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(gt.JU),(0,l.U)(t=>t.payload)),{dispatch:!1}),this.authLogin=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(gt.ym),(0,h.M)(this.store.select("root")),(0,u.z)(([t,e])=>(this.store.dispatch(new ee.Mo({})),this.store.dispatch(new te.UA({})),this.store.dispatch(new $t.IF({})),this.store.dispatch(new gt.np({action:"Login",status:m.Bn.INITIATED})),this.httpClient.post(f.N.AUTHENTICATE_API,{authenticateWith:t.payload.password?m.OJ.PASSWORD:m.OJ.JWT,authenticationValue:t.payload.password?t.payload.password:this.sessionService.getItem("token")?this.sessionService.getItem("token"):"",twoFAToken:t.payload.twoFAToken?t.payload.twoFAToken:""}).pipe((0,l.U)(i=>{this.logger.info(i),this.store.dispatch(new gt.np({action:"Login",status:m.Bn.COMPLETED})),this.setLoggedInDetails(t.payload.defaultPassword,i,e)}),(0,d.K)(t=>(this.logger.info("Redirecting to Login Error Page"),0===t.status&&t.statusText&&"Unknown Error"===t.statusText&&(t.status="400",t.error.error="Origin Not Allowed"),this.handleErrorWithoutAlert("Login",m.m6.NO_SPINNER,t),+e.appConfig.sso.rtlSSO?this.router.navigate(["/error"],{state:{errorCode:"406",errorMessage:t.error&&t.error.error?t.error.error:"Single Sign On Failed!"}}):this.router.navigate(["./login"]),(0,s.of)({type:gt.Zn}))))))),{dispatch:!1}),this.tokenVerify=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(gt.gK),(0,h.M)(this.store.select("root")),(0,u.z)(([t,e])=>(this.store.dispatch(new gt.Fk(m.m6.VERIFY_TOKEN)),this.store.dispatch(new gt.np({action:"VerifyToken",status:m.Bn.INITIATED})),this.httpClient.post(f.N.AUTHENTICATE_API+"/token",{authentication2FA:t.payload.token}).pipe((0,l.U)(i=>{this.logger.info(i),this.store.dispatch(new gt.Fk(m.m6.VERIFY_TOKEN)),this.store.dispatch(new gt.np({action:"VerifyToken",status:m.Bn.COMPLETED})),this.logger.info("Token Successfully Verified!"),this.setLoggedInDetails(!1,t.payload.authResponse,e)}),(0,d.K)(t=>(this.handleErrorWithAlert("VerifyToken",m.m6.VERIFY_TOKEN,"Authorization Failed!",f.N.AUTHENTICATE_API+"/token",t),(0,s.of)({type:gt.Zn}))))))),{dispatch:!1}),this.logOut=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(gt.Nv),(0,h.M)(this.store.select("root")),(0,u.z)(([t,e])=>(+e.appConfig.sso.rtlSSO?window.location.href=e.appConfig.sso.logoutRedirectLink:this.router.navigate(["./login"]),this.sessionService.clearAll(),this.store.dispatch(new gt.e6({})),this.logger.warn("LOGGED OUT"),(0,s.of)()))),{dispatch:!1}),this.resetPassword=(0,n.GW)(()=>this.actions.pipe((0,p.R)(this.unSubs[1]),(0,n.l4)(gt.bk),(0,h.M)(this.store.select("root")),(0,u.z)(([t,e])=>(this.store.dispatch(new gt.np({action:"ResetPassword",status:m.Bn.INITIATED})),this.httpClient.post(f.N.AUTHENTICATE_API+"/reset",{currPassword:t.payload.currPassword,newPassword:t.payload.newPassword}).pipe((0,p.R)(this.unSubs[0]),(0,l.U)(t=>(this.logger.info(t),this.store.dispatch(new gt.np({action:"ResetPassword",status:m.Bn.COMPLETED})),this.sessionService.setItem("defaultPassword",!1),this.logger.info("Password Reset Successful!"),this.store.dispatch(new gt.Lw("Password Reset Successful!")),this.SetToken(t.token),{type:gt.Gs,payload:t.token})),(0,d.K)(t=>(this.handleErrorWithAlert("ResetPassword",m.m6.NO_SPINNER,"Password Reset Failed!",f.N.AUTHENTICATE_API+"/reset",t),(0,s.of)({type:gt.Zn})))))))),this.setSelectedNode=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(gt.RP),(0,u.z)(t=>(this.store.dispatch(new gt.Fk(t.payload.uiMessage)),this.store.dispatch(new gt.np({action:"UpdateSelNode",status:m.Bn.INITIATED})),this.httpClient.post(f.N.CONF_API+"/updateSelNode",{selNodeIndex:t.payload.lnNode.index}).pipe((0,l.U)(e=>(this.logger.info(e),this.store.dispatch(new gt.np({action:"UpdateSelNode",status:m.Bn.COMPLETED})),this.store.dispatch(new gt.Iv(t.payload.uiMessage)),this.initializeNode(t.payload.lnNode,t.payload.isInitialSetup),{type:gt.Zn})),(0,d.K)(e=>(0===e.status&&e.statusText&&"Unknown Error"===e.statusText&&(e.status="400",e.error.message="Origin Not Allowed"),this.handleErrorWithAlert("UpdateSelNode",t.payload.uiMessage,"Update Selected Node Failed!",f.N.CONF_API+"/updateSelNode",e),(0,s.of)({type:gt.Zn})))))))),this.fetchFile=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(gt.bE),(0,u.z)(t=>{this.store.dispatch(new gt.Fk(m.m6.DOWNLOAD_BACKUP_FILE)),this.store.dispatch(new gt.np({action:"fetchFile",status:m.Bn.INITIATED}));const e="?channel="+t.payload.channelPoint+(t.payload.path?"&path="+t.payload.path:"");return this.httpClient.get(f.N.CONF_API+"/file"+e).pipe((0,l.U)(t=>(this.store.dispatch(new gt.np({action:"fetchFile",status:m.Bn.COMPLETED})),this.store.dispatch(new gt.Iv(m.m6.DOWNLOAD_BACKUP_FILE)),{type:gt.BQ,payload:t})),(0,d.K)(t=>(this.handleErrorWithAlert("fetchFile",m.m6.DOWNLOAD_BACKUP_FILE,"Download Backup File Failed!",f.N.CONF_API+"/file"+e,{status:this.commonService.extractErrorNumber(t),error:{error:this.commonService.extractErrorCode(t)}}),(0,s.of)({type:gt.Zn}))))}))),this.showFile=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(gt.BQ),(0,l.U)(t=>t.payload)),{dispatch:!1})}initializeNode(t,e){const i=e?"":"HOME";let n={};if(n=t.settings.fiatConversion&&t.settings.currencyUnit?{userPersona:t.settings.userPersona,channelBackupPath:t.settings.channelBackupPath,selCurrencyUnit:t.settings.currencyUnit,currencyUnits:[...m.uA,t.settings.currencyUnit],fiatConversion:t.settings.fiatConversion,lnImplementation:t.lnImplementation,swapServerUrl:t.settings.swapServerUrl,boltzServerUrl:t.settings.boltzServerUrl}:{userPersona:t.settings.userPersona,channelBackupPath:t.settings.channelBackupPath,selCurrencyUnit:t.settings.currencyUnit,currencyUnits:m.uA,fiatConversion:t.settings.fiatConversion,lnImplementation:t.lnImplementation,swapServerUrl:t.settings.swapServerUrl,boltzServerUrl:t.settings.boltzServerUrl},this.sessionService.removeItem("lndUnlocked"),this.sessionService.removeItem("clUnlocked"),this.sessionService.removeItem("eclUnlocked"),this.store.dispatch(new gt.$A(t)),this.store.dispatch(new ee.Mo(n)),this.store.dispatch(new te.UA(n)),this.store.dispatch(new $t.IF(n)),this.sessionService.getItem("token"))switch(t.lnImplementation=t.lnImplementation.toUpperCase(),this.dataService.setChildAPIUrl(t.lnImplementation),t.lnImplementation){case"CLT":this.store.dispatch(new te.z6({loadPage:i}));break;case"ECL":this.store.dispatch(new $t.z6({loadPage:i}));break;default:this.store.dispatch(new ee.z6({loadPage:i}))}}SetToken(t){t?(this.sessionService.setItem("lndUnlocked","true"),this.sessionService.setItem("token",t)):(this.sessionService.removeItem("lndUnlocked"),this.sessionService.removeItem("token"))}setLoggedInDetails(t,e,i){this.logger.info("Successfully Authorized!"),this.SetToken(e.token),this.store.dispatch(new gt.XF),i.selNode.settings.currencyUnits=[...m.uA,i.selNode.settings.currencyUnit],this.sessionService.setItem("defaultPassword",t),t&&(this.sessionService.setItem("defaultPassword","true"),this.store.dispatch(new gt.Lw("Reset your password.")),this.router.navigate(["/settings/auth"]))}handleErrorWithoutAlert(t,e,i){this.logger.error("ERROR IN: "+t+"\n"+JSON.stringify(i)),401===i.status&&"Login"!==t?(this.logger.info("Redirecting to Login"),this.store.dispatch(new gt.Ac),this.store.dispatch(new gt.RD),this.store.dispatch(new gt.Lw("Authentication Failed. Redirecting to Login."))):(this.store.dispatch(new gt.Iv(e)),this.store.dispatch(new gt.np({action:t,status:m.Bn.ERROR,statusCode:i.status.toString(),message:this.commonService.extractErrorMessage(i)})))}handleErrorWithAlert(t,e,i,n,r){if(this.logger.error(r),401===r.status&&"Login"!==t)this.logger.info("Redirecting to Login"),this.store.dispatch(new gt.Ac),this.store.dispatch(new gt.RD),this.store.dispatch(new gt.Lw("Authentication Failed. Redirecting to Login."));else{this.store.dispatch(new gt.Iv(e));const s=this.commonService.extractErrorMessage(r);this.store.dispatch(new gt.wu({data:{type:"ERROR",alertTitle:i,message:{code:r.status?r.status:"Unknown Error",message:s,URL:n},component:jt.H}})),this.store.dispatch(new gt.np({action:t,status:m.Bn.ERROR,statusCode:r.status.toString(),message:s,URL:n}))}}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(y.LFG(n.eX),y.LFG(ie.eN),y.LFG(yt.yh),y.LFG(w.mQ),y.LFG(ne.m),y.LFG(C.v),y.LFG(re.D),y.LFG(g.uw),y.LFG(x.ux),y.LFG(se.F0))},t.\u0275prov=y.Yz7({token:t,factory:t.\u0275fac}),t})()},5963:(t,e,i)=>{"use strict";i.d(e,{T:()=>n,N:()=>r});const n="./api",r={production:!0,isDebugMode:!1,AUTHENTICATE_API:n+"/authenticate",CONF_API:n+"/conf",BALANCE_API:"/balance",FEES_API:"/fees",PEERS_API:"/peers",CHANNELS_API:"/channels",CHANNELS_BACKUP_API:"/channels/backup",GETINFO_API:"/getinfo",WALLET_API:"/wallet",NETWORK_API:"/network",NEW_ADDRESS_API:"/newaddress",TRANSACTIONS_API:"/transactions",PAYREQUEST_API:"/payreq",PAYMENTS_API:"/payments",INVOICES_API:"/invoices",SWITCH_API:"/switch",ON_CHAIN_API:"/onchain",MESSAGE_API:"/message",LOOP_API:"/loop",BOLTZ_API:"/boltz",VERSION:"0.11.1-beta"}},7015:(t,e,i)=>{"use strict";var n=i(269),r=i(1572),s=i(3490),o=i(9063),a=i(964),l=i(5573),c=i(7876),h=i(9666),u=i(5446),d=i(5960),p=i(5630),f=i(2948),m=i(8431);function g(t,e){return void 0===t&&(t=0),void 0===e&&(e=f.z),t<0&&(t=0),(0,m.H)(t,t,e)}var y=i(2041),b=i(9162),v=i(6042),_=i(3386),w=i(4659),x=i(8764),C=i(7070),A=i(8868),S=i(343),E=i(4324),k=i(9568),T=i(849),M=i(6424),L=i(1681);class I{}let O=(()=>{class t{constructor(t,e){this._ngZone=e,this.timerStart$=new h.x,this.idleDetected$=new h.x,this.timeout$=new h.x,this.idleMillisec=6e5,this.idleSensitivityMillisec=1e3,this.timeout=300,this.pingMillisec=12e4,t&&this.setConfig(t)}startWatching(){this.activityEvents$||(this.activityEvents$=(0,u.T)((0,d.R)(window,"mousemove"),(0,d.R)(window,"resize"),(0,d.R)(document,"keydown"))),this.idle$=(0,p.Dp)(this.activityEvents$),this.idleSubscription&&this.idleSubscription.unsubscribe(),this.idleSubscription=this.idle$.pipe(function(t){for(var e,i,n=[],r=1;r=0?i.add(s.schedule(function(){c(),!this.closed&&i.add(this.schedule(null,o))},o)):r=!0,c();var h=new w.Q(i,function(t){var e,i,r=n.slice();try{for(var s=(0,b.XA)(r),o=s.next();!o.done;o=s.next()){var c=o.value,h=c.buffer;h.push(t),a<=h.length&&l(c)}}catch(u){e={error:u}}finally{try{o&&!o.done&&(i=s.return)&&i.call(s)}finally{if(e)throw e.error}}},function(){for(;null==n?void 0:n.length;)i.next(n.shift().buffer);null==h||h.unsubscribe(),i.complete(),i.unsubscribe()},void 0,function(){return n=null});e.subscribe(h)})}(this.idleSensitivityMillisec),(0,A.h)(t=>!t.length&&!this.isIdleDetected&&!this.isInactivityTimer),(0,S.b)(()=>{this.isIdleDetected=!0,this.idleDetected$.next(!0)}),(0,E.w)(()=>this._ngZone.runOutsideAngular(()=>g(1e3).pipe((0,k.R)((0,u.T)(this.activityEvents$,(0,m.H)(this.idleMillisec).pipe((0,S.b)(()=>{this.isInactivityTimer=!0,this.timerStart$.next(!0)})))),(0,T.x)(()=>{this.isIdleDetected=!1,this.idleDetected$.next(!1)}))))).subscribe(),this.setupTimer(this.timeout),this.setupPing(this.pingMillisec)}stopWatching(){this.stopTimer(),this.idleSubscription&&this.idleSubscription.unsubscribe()}stopTimer(){this.isInactivityTimer=!1,this.timerStart$.next(!1)}resetTimer(){this.stopTimer(),this.isTimeout=!1}onTimerStart(){return this.timerStart$.pipe((0,M.x)(),(0,E.w)(t=>t?this.timer$:(0,y.of)(null)))}onIdleStatusChanged(){return this.idleDetected$.asObservable()}onTimeout(){return this.timeout$.pipe((0,A.h)(t=>!!t),(0,S.b)(()=>this.isTimeout=!0),(0,L.U)(()=>!0))}getConfigValue(){return{idle:this.idleMillisec/1e3,idleSensitivity:this.idleSensitivityMillisec/1e3,timeout:this.timeout,ping:this.pingMillisec/1e3}}setConfigValues(t){!this.idleSubscription||this.idleSubscription.closed?this.setConfig(t):console.error("Call stopWatching() before set config values")}setConfig(t){t.idle&&(this.idleMillisec=1e3*t.idle),t.ping&&(this.pingMillisec=1e3*t.ping),t.idleSensitivity&&(this.idleSensitivityMillisec=1e3*t.idleSensitivity),t.timeout&&(this.timeout=t.timeout)}setCustomActivityEvents(t){!this.idleSubscription||this.idleSubscription.closed?this.activityEvents$=t:console.error("Call stopWatching() before set custom activity events")}setupTimer(t){this._ngZone.runOutsideAngular(()=>{this.timer$=(0,y.of)(new Date).pipe((0,E.w)(e=>g(1e3).pipe((0,L.U)(()=>Math.round(((new Date).valueOf()-e.valueOf())/1e3)),(0,S.b)(e=>{e>=t&&this.timeout$.next(!0)}))))})}setupPing(t){this.ping$=g(t).pipe((0,A.h)(()=>!this.isTimeout))}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(I,8),r.LFG(r.R0b))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t.ngInjectableDef=(0,r.Ez6)({factory:function(){return new t((0,r.f3M)(I,8),(0,r.f3M)(r.R0b))},token:t,providedIn:"root"}),t})(),D=(()=>{class t{static forRoot(e){return{ngModule:t,providers:[{provide:I,useValue:e}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[]]}),t})();var R=i(6853),N=i(5291),P=i(3722),F=i(7592),Z=i(7439),B=i(5109),U=i(1511);const q=function(){return{initial:!1}};function z(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div",10),r.NdJ("click",function(){r.CHM(t);const e=r.oxw();return e.activeLink=e.links[1].link}),r._uU(1),r.qZA()}if(2&t){const t=r.oxw();r.s9C("routerLink",t.links[1].link),r.Q6J("active",t.activeLink===t.links[1].link)("state",r.DdM(4,q)),r.xp6(1),r.Oqu(t.links[1].name)}}function H(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div",6),r.NdJ("click",function(){r.CHM(t);const e=r.oxw();return e.activeLink=e.links[2].link}),r._uU(1),r.qZA()}if(2&t){const t=r.oxw();r.s9C("routerLink",t.links[2].link),r.Q6J("active",t.activeLink===t.links[2].link),r.xp6(1),r.Oqu(t.links[2].name)}}let Y=(()=>{class t{constructor(t,e){this.store=t,this.router=e,this.faUserCog=N.gNZ,this.showBitcoind=!1,this.links=[{link:"app",name:"Application"},{link:"auth",name:"Authentication"},{link:"bconfig",name:"BitcoinD Config"}],this.activeLink="",this.unSubs=[new h.x,new h.x,new h.x]}ngOnInit(){const t=this.links.find(t=>this.router.url.includes(t.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe((0,k.R)(this.unSubs[0]),(0,A.h)(t=>t instanceof R.Av)).subscribe(t=>{const e=this.links.find(e=>t.urlAfterRedirects.includes(e.link));this.activeLink=e?e.link:this.links[0].link}),this.store.select("root").pipe((0,k.R)(this.unSubs[1])).subscribe(t=>{this.showBitcoind=!1,this.appConfig=t.appConfig,this.selNode=t.selNode,this.selNode.settings&&this.selNode.settings.bitcoindConfigPath&&""!==this.selNode.settings.bitcoindConfigPath.trim()&&(this.showBitcoind=!0)})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(a.yh),r.Y36(R.F0))},t.\u0275cmp=r.Xpm({type:t,selectors:[["rtl-settings"]],decls:14,vars:6,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","state","click",4,"ngIf"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","state","click"]],template:function(t,e){1&t&&(r.TgZ(0,"div",0),r._UZ(1,"fa-icon",1),r.TgZ(2,"span",2),r._uU(3,"Settings"),r.qZA(),r.qZA(),r.TgZ(4,"div",3),r.TgZ(5,"mat-card"),r.TgZ(6,"mat-card-content",4),r.TgZ(7,"nav",5),r.TgZ(8,"div",6),r.NdJ("click",function(){return e.activeLink=e.links[0].link}),r._uU(9),r.qZA(),r.YNc(10,z,2,5,"div",7),r.YNc(11,H,2,3,"div",8),r.qZA(),r.TgZ(12,"div",9),r._UZ(13,"router-outlet"),r.qZA(),r.qZA(),r.qZA(),r.qZA()),2&t&&(r.xp6(1),r.Q6J("icon",e.faUserCog),r.xp6(7),r.s9C("routerLink",e.links[0].link),r.Q6J("active",e.activeLink===e.links[0].link),r.xp6(1),r.Oqu(e.links[0].name),r.xp6(1),r.Q6J("ngIf",!+e.appConfig.sso.rtlSSO),r.xp6(1),r.Q6J("ngIf",e.showBitcoind))},directives:[P.xw,P.Wh,F.BN,Z.a8,Z.dn,B.BU,B.Nj,R.rH,U.O5,P.yH,R.lC],styles:[""]}),t})();var G=i(9421),j=i(3929),V=i(3869),Q=i(7038),W=i(6073),J=i(6283),X=i(4786),K=i(6880),$=i(5980),tt=i(1522);function et(t,e){if(1&t&&(r.TgZ(0,"mat-option",16),r._uU(1),r.qZA()),2&t){const t=e.$implicit;r.Q6J("value",t.index),r.xp6(1),r.AsE(" ",t.lnNode," (",t.lnImplementation,") ")}}function it(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"form",2,3),r.TgZ(2,"div",4),r._UZ(3,"fa-icon",5),r.TgZ(4,"span",6),r._uU(5,"Default Node"),r.qZA(),r.qZA(),r.TgZ(6,"div",7),r.TgZ(7,"div",8),r._UZ(8,"fa-icon",9),r.TgZ(9,"span"),r._uU(10,"The setting will apply after RTL server restarts."),r.qZA(),r.qZA(),r.TgZ(11,"div",10),r.TgZ(12,"mat-form-field",10),r.TgZ(13,"mat-select",11),r.NdJ("ngModelChange",function(e){return r.CHM(t),r.oxw().appConfig.defaultNodeIndex=e}),r.YNc(14,et,2,3,"mat-option",12),r.qZA(),r.qZA(),r.qZA(),r.TgZ(15,"div",13),r.TgZ(16,"div",10),r.TgZ(17,"button",14),r.NdJ("click",function(){return r.CHM(t),r.oxw().onResetSettings()}),r._uU(18,"Reset"),r.qZA(),r.TgZ(19,"button",15),r.NdJ("click",function(){return r.CHM(t),r.oxw().onUpdateSettings()}),r._uU(20,"Update"),r.qZA(),r.qZA(),r.qZA(),r.qZA(),r.qZA()}if(2&t){const t=r.oxw();r.xp6(3),r.Q6J("icon",t.faWindowRestore),r.xp6(5),r.Q6J("icon",t.faInfoCircle),r.xp6(5),r.Q6J("ngModel",t.appConfig.defaultNodeIndex),r.xp6(1),r.Q6J("ngForOf",t.appConfig.nodes)}}let nt=(()=>{class t{constructor(t,e){this.logger=t,this.store=e,this.faInfoCircle=N.sqG,this.faWindowRestore=N.wyP,this.faPlus=N.r8p,this.previousDefaultNode=0,this.unSubs=[new h.x,new h.x]}ngOnInit(){this.store.select("root").pipe((0,k.R)(this.unSubs[0])).subscribe(t=>{this.appConfig=t.appConfig,this.previousDefaultNode=this.appConfig.defaultNodeIndex,this.selNode=t.selNode,this.logger.info(t)})}onAddNewNode(){this.logger.warn("ADD NEW NODE")}onUpdateSettings(){this.store.dispatch(new j.j_({uiMessage:G.m6.UPDATE_DEFAULT_NODE_SETTING,defaultNodeIndex:this.appConfig.defaultNodeIndex?this.appConfig.defaultNodeIndex:+this.appConfig.nodes[0].index}))}onResetSettings(){this.appConfig.defaultNodeIndex=this.previousDefaultNode}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(V.mQ),r.Y36(a.yh))},t.\u0275cmp=r.Xpm({type:t,selectors:[["rtl-app-settings"]],decls:2,vars:1,consts:[["fxLayout","column","fxFlex","100",1,"padding-gap-x-large",3,"perfectScrollbar"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch","class","settings-container page-sub-title-container mt-1",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"settings-container","page-sub-title-container","mt-1"],["form","ngForm"],["fxLayout","row"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"my-2"],["fxLayout","row","fxFlex","100",1,"alert","alert-info"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","row","fxLayoutAlign","start start"],["autoFocus","","tabindex","1","name","defaultNode",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start start",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","2",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","3",3,"click"],[3,"value"]],template:function(t,e){1&t&&(r.TgZ(0,"div",0),r.YNc(1,it,21,4,"form",1),r.qZA()),2&t&&(r.xp6(1),r.Q6J("ngIf",e.appConfig.nodes&&e.appConfig.nodes.length&&e.appConfig.nodes.length>0))},directives:[P.xw,P.yH,Q.$V,U.O5,W._Y,W.JL,W.F,P.Wh,F.BN,J.KE,X.gD,K.h,W.JJ,W.On,U.sg,$.lW,tt.ey],styles:[""]}),t})();var rt=i(1339),st=i(9056),ot=i(4608),at=i(4499),lt=i(8914),ct=i(1403),ht=i(7753),ut=i(6756),dt=i(3600),pt=i(2609);const ft=["stepper"];function mt(t,e){if(1&t&&r._uU(0),2&t){const t=r.oxw();r.Oqu(t.passwordFormLabel)}}function gt(t,e){1&t&&(r.TgZ(0,"mat-error"),r._uU(1,"Password is required."),r.qZA())}function yt(t,e){if(1&t&&r._uU(0),2&t){const t=r.oxw(2);r.Oqu(t.secretFormLabel)}}function bt(t,e){1&t&&(r.TgZ(0,"mat-error"),r._uU(1,"Secret Code is required."),r.qZA())}function vt(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"mat-step",10),r.TgZ(1,"form",21),r.YNc(2,yt,1,1,"ng-template",22),r.TgZ(3,"div",23),r._UZ(4,"qrcode",24),r.qZA(),r.TgZ(5,"div",25),r._UZ(6,"fa-icon",26),r.TgZ(7,"span"),r._uU(8,"You can use a compatible authentication app to get an authentication code when you log in to RTL. e.g.: Google Authenticator."),r.qZA(),r.qZA(),r.TgZ(9,"div",27),r.TgZ(10,"mat-form-field",1),r._UZ(11,"input",28),r.TgZ(12,"fa-icon",29),r.NdJ("copied",function(e){return r.CHM(t),r.oxw().onCopySecret(e)}),r.qZA(),r.YNc(13,bt,2,0,"mat-error",14),r.qZA(),r.qZA(),r.TgZ(14,"div",30),r.TgZ(15,"button",31),r._uU(16,"Next"),r.qZA(),r.qZA(),r.qZA(),r.qZA()}if(2&t){const t=r.oxw();r.Q6J("stepControl",t.secretFormGroup)("editable",t.flgEditable),r.xp6(1),r.Q6J("formGroup",t.secretFormGroup),r.xp6(3),r.Q6J("qrdata",t.otpauth)("margin",1)("width",180)("errorCorrectionLevel","L")("allowEmptyString",!0),r.xp6(2),r.Q6J("icon",t.faInfoCircle),r.xp6(6),r.Q6J("icon",t.faCopy)("payload",null==t.secretFormGroup||null==t.secretFormGroup.controls||null==t.secretFormGroup.controls.secret?null:t.secretFormGroup.controls.secret.value),r.xp6(1),r.Q6J("ngIf",null==t.secretFormGroup||null==t.secretFormGroup.controls||null==t.secretFormGroup.controls.secret||null==t.secretFormGroup.controls.secret.errors?null:t.secretFormGroup.controls.secret.errors.required)}}function _t(t,e){if(1&t&&r._uU(0),2&t){const t=r.oxw(2);r.Oqu(t.tokenFormLabel)}}function wt(t,e){1&t&&(r.TgZ(0,"mat-error"),r._uU(1,"Token is required."),r.qZA())}function xt(t,e){1&t&&(r.TgZ(0,"mat-error"),r._uU(1,"Token is invalid."),r.qZA())}function Ct(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div",7),r.TgZ(1,"div",27),r.TgZ(2,"mat-form-field",1),r._UZ(3,"input",35),r.YNc(4,wt,2,0,"mat-error",14),r.YNc(5,xt,2,0,"mat-error",14),r.qZA(),r.qZA(),r.TgZ(6,"div",30),r.TgZ(7,"button",36),r.NdJ("click",function(){return r.CHM(t),r.oxw(2).onVerifyToken()}),r._uU(8),r.qZA(),r.qZA(),r.qZA()}if(2&t){const t=r.oxw(2);r.xp6(4),r.Q6J("ngIf",null==t.tokenFormGroup||null==t.tokenFormGroup.controls||null==t.tokenFormGroup.controls.token||null==t.tokenFormGroup.controls.token.errors?null:t.tokenFormGroup.controls.token.errors.required),r.xp6(1),r.Q6J("ngIf",null==t.tokenFormGroup||null==t.tokenFormGroup.controls||null==t.tokenFormGroup.controls.token||null==t.tokenFormGroup.controls.token.errors?null:t.tokenFormGroup.controls.token.errors.notValid),r.xp6(3),r.Oqu(null!=t.tokenFormGroup&&null!=t.tokenFormGroup.controls&&null!=t.tokenFormGroup.controls.token&&null!=t.tokenFormGroup.controls.token.errors&&t.tokenFormGroup.controls.token.errors.notValid?"Retry":"Verify")}}function At(t,e){1&t&&(r.TgZ(0,"div"),r.TgZ(1,"strong"),r._uU(2,"Success! You are all set."),r.qZA(),r.qZA())}function St(t,e){if(1&t&&(r.TgZ(0,"mat-step",32),r.TgZ(1,"form",33),r.YNc(2,_t,1,1,"ng-template",12),r.YNc(3,Ct,9,3,"div",34),r.YNc(4,At,3,0,"div",14),r.qZA(),r.qZA()),2&t){const t=r.oxw();r.Q6J("stepControl",t.tokenFormGroup),r.xp6(1),r.Q6J("formGroup",t.tokenFormGroup),r.xp6(2),r.Q6J("ngIf",!t.flgValidated||!t.isTokenValid),r.xp6(1),r.Q6J("ngIf",t.flgValidated&&t.isTokenValid)}}function Et(t,e){if(1&t&&r._uU(0),2&t){const t=r.oxw(2);r.Oqu(t.disableFormLabel)}}function kt(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div",7),r.TgZ(1,"div",37),r._UZ(2,"fa-icon",26),r.TgZ(3,"span"),r._uU(4,"You are about to disable two-factor authentication security from RTL. Are you sure you want to turn it off?"),r.qZA(),r.qZA(),r.TgZ(5,"div",30),r.TgZ(6,"button",36),r.NdJ("click",function(){return r.CHM(t),r.oxw(2).onVerifyToken()}),r._uU(7,"Disable"),r.qZA(),r.qZA(),r.qZA()}if(2&t){const t=r.oxw(2);r.xp6(2),r.Q6J("icon",t.faExclamationTriangle)}}function Tt(t,e){1&t&&(r.TgZ(0,"div"),r.TgZ(1,"strong"),r._uU(2,"Two factor authentication removed from RTL."),r.qZA(),r.qZA())}function Mt(t,e){if(1&t&&(r.TgZ(0,"mat-step",32),r.TgZ(1,"form",33),r.YNc(2,Et,1,1,"ng-template",12),r.YNc(3,kt,8,1,"div",34),r.YNc(4,Tt,3,0,"div",14),r.qZA(),r.qZA()),2&t){const t=r.oxw();r.Q6J("stepControl",t.disableFormGroup),r.xp6(1),r.Q6J("formGroup",t.disableFormGroup),r.xp6(2),r.Q6J("ngIf",!t.flgValidated||!t.isTokenValid),r.xp6(1),r.Q6J("ngIf",t.flgValidated&&t.isTokenValid)}}let Lt=(()=>{class t{constructor(t,e,i,n,r,s){this.dialogRef=t,this.data=e,this.store=i,this.formBuilder=n,this.rtlEffects=r,this.snackBar=s,this.faExclamationTriangle=N.eHv,this.faCopy=N.kZ_,this.faInfoCircle=N.sqG,this.flgValidated=!1,this.isTokenValid=!0,this.otpauth="",this.flgEditable=!0,this.showDisableStepper=!1,this.passwordFormLabel="Authenticate with your RTL password",this.secretFormLabel="Scan or copy the secret",this.tokenFormLabel="Verify your authentication is working",this.disableFormLabel="Disable two factor authentication",this.passwordFormGroup=this.formBuilder.group({hiddenPassword:["",[W.kI.required]],password:["",[W.kI.required]]}),this.secretFormGroup=this.formBuilder.group({secret:[{value:"",disabled:!0},W.kI.required]}),this.tokenFormGroup=this.formBuilder.group({token:["",W.kI.required]}),this.disableFormGroup=this.formBuilder.group({}),this.unSubs=[new h.x,new h.x]}ngOnInit(){this.appConfig=this.data.appConfig,this.showDisableStepper=!!this.appConfig.enable2FA,this.secretFormGroup=this.formBuilder.group({secret:[{value:this.appConfig.enable2FA?"":this.generateSecret(),disabled:!0},W.kI.required]})}generateSecret(){const t=at.authenticator.generateSecret();return this.otpauth=at.authenticator.keyuri("","Ride The Lightning (RTL)",t),t}onAuthenticate(){if(!this.passwordFormGroup.controls.password.value)return!0;this.flgValidated=!1,this.store.dispatch(new j.ZF(rt(this.passwordFormGroup.controls.password.value))),this.rtlEffects.isAuthorizedRes.pipe((0,st.q)(1)).subscribe(t=>{"ERROR"!==t?(this.passwordFormGroup.controls.hiddenPassword.setValue(this.passwordFormGroup.controls.password.value),this.stepper.next()):(this.dialogRef.close(),this.snackBar.open("Unauthorized User. Logging out from RTL."))})}onCopySecret(t){this.snackBar.open("Secret code "+this.secretFormGroup.controls.secret.value+" copied.")}onVerifyToken(){if(this.appConfig.enable2FA)this.store.dispatch(new j.z2({secret2fa:""})),this.generateSecret(),this.isTokenValid=!0;else{if(!this.tokenFormGroup.controls.token.value)return!0;if(this.isTokenValid=at.authenticator.check(this.tokenFormGroup.controls.token.value,this.secretFormGroup.controls.secret.value),!this.isTokenValid)return this.tokenFormGroup.controls.token.setErrors({notValid:!0}),!0;this.store.dispatch(new j.z2({secret2fa:this.secretFormGroup.controls.secret.value})),this.tokenFormGroup.controls.token.setValue("")}this.flgValidated=!0,this.appConfig.enable2FA=!this.appConfig.enable2FA}stepSelectionChanged(t){switch(t.selectedIndex){case 0:this.passwordFormLabel="Authenticate with your RTL password";break;case 1:case 2:this.passwordFormLabel="User authenticated successfully";break;default:this.passwordFormLabel="Authenticate with your RTL password"}t.selectedIndex{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(ot.so),r.Y36(ot.WI),r.Y36(a.yh),r.Y36(W.qu),r.Y36(lt.V),r.Y36(ct.ux))},t.\u0275cmp=r.Xpm({type:t,selectors:[["rtl-two-factor-auth"]],viewQuery:function(t,e){if(1&t&&r.Gf(ft,5),2&t){let t;r.iGM(t=r.CRH())&&(e.stepper=t.first)}},decls:28,vars:11,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","15","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayout","column"],[3,"linear","selectionChange"],["stepper",""],[3,"stepControl","editable"],["fxLayout","column","fxLayoutAlign","space-between",1,"my-1","pr-1",3,"formGroup"],["matStepLabel",""],["autoFocus","","matInput","","placeholder","Password","type","password","tabindex","1","formControlName","password","required",""],[4,"ngIf"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","3","type","button",3,"click"],[3,"stepControl","editable",4,"ngIf"],[3,"stepControl",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","tabindex","12","type","button","default","",3,"mat-dialog-close"],["fxLayout","column",1,"my-1","pr-1",3,"formGroup"],["matStepLabel","","disabled","true"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start"],[3,"qrdata","margin","width","errorCorrectionLevel","allowEmptyString"],["fxFlex","100",1,"w-100","alert","alert-info"],[1,"mt-1","mr-1","alert-icon",3,"icon"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between stretch"],["autoFocus","","matInput","","placeholder","Secret Code","type","text","tabindex","4","formControlName","secret","required",""],["matSuffix","","rtlClipboard","",3,"icon","payload","copied"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","6","type","button","matStepperNext",""],[3,"stepControl"],["fxLayout","column","fxLayoutAlign","start",1,"my-1","pr-1",3,"formGroup"],["fxLayout","column",4,"ngIf"],["autoFocus","","matInput","","placeholder","Token","type","text","tabindex","7","formControlName","token","required",""],["mat-stroked-button","","color","primary","tabindex","8","type","button",3,"click"],["fxFlex","100",1,"w-100","alert","alert-warn"]],template:function(t,e){1&t&&(r.TgZ(0,"div",0),r.TgZ(1,"div",1),r.TgZ(2,"mat-card-header",2),r.TgZ(3,"div",3),r.TgZ(4,"span",4),r._uU(5,"Setup Two Factor Authentication"),r.qZA(),r.qZA(),r.TgZ(6,"button",5),r._uU(7,"X"),r.qZA(),r.qZA(),r.TgZ(8,"mat-card-content",6),r.TgZ(9,"div",7),r.TgZ(10,"mat-vertical-stepper",8,9),r.NdJ("selectionChange",function(t){return e.stepSelectionChanged(t)}),r.TgZ(12,"mat-step",10),r.TgZ(13,"form",11),r.YNc(14,mt,1,1,"ng-template",12),r.TgZ(15,"div",0),r.TgZ(16,"mat-form-field",1),r._UZ(17,"input",13),r.YNc(18,gt,2,0,"mat-error",14),r.qZA(),r.qZA(),r.TgZ(19,"div",15),r.TgZ(20,"button",16),r.NdJ("click",function(){return e.onAuthenticate()}),r._uU(21,"Confirm"),r.qZA(),r.qZA(),r.qZA(),r.qZA(),r.YNc(22,vt,17,12,"mat-step",17),r.YNc(23,St,5,4,"mat-step",18),r.YNc(24,Mt,5,4,"mat-step",18),r.qZA(),r.TgZ(25,"div",19),r.TgZ(26,"button",20),r._uU(27),r.qZA(),r.qZA(),r.qZA(),r.qZA(),r.qZA(),r.qZA()),2&t&&(r.xp6(6),r.Q6J("mat-dialog-close",!1),r.xp6(4),r.Q6J("linear",!0),r.xp6(2),r.Q6J("stepControl",e.passwordFormGroup)("editable",e.flgEditable),r.xp6(1),r.Q6J("formGroup",e.passwordFormGroup),r.xp6(5),r.Q6J("ngIf",null==e.passwordFormGroup||null==e.passwordFormGroup.controls||null==e.passwordFormGroup.controls.password||null==e.passwordFormGroup.controls.password.errors?null:e.passwordFormGroup.controls.password.errors.required),r.xp6(4),r.Q6J("ngIf",!e.showDisableStepper),r.xp6(1),r.Q6J("ngIf",!e.showDisableStepper),r.xp6(1),r.Q6J("ngIf",e.showDisableStepper),r.xp6(2),r.Q6J("mat-dialog-close",!1),r.xp6(1),r.Oqu(e.flgValidated&&e.isTokenValid?"Close":"Cancel"))},directives:[P.xw,P.yH,Z.dk,P.Wh,$.lW,ot.ZT,Z.dn,ht.Vq,ht.C0,W._Y,W.JL,W.sg,ht.VY,J.KE,ut.Nt,W.Fj,K.h,W.JJ,W.u,W.Q7,U.O5,J.TO,dt.V,F.BN,J.R9,pt.y,ht.Ic],styles:[""]}),t})();var It=i(3191),Ot=i(7679);const Dt=["authForm"];function Rt(t,e){1&t&&(r.TgZ(0,"mat-error"),r._uU(1,"Current password is required."),r.qZA())}function Nt(t,e){if(1&t&&(r.TgZ(0,"mat-error"),r._uU(1),r.qZA()),2&t){const t=r.oxw();r.xp6(1),r.Oqu(t.errorMsg)}}function Pt(t,e){if(1&t&&(r.TgZ(0,"mat-error"),r._uU(1),r.qZA()),2&t){const t=r.oxw();r.xp6(1),r.Oqu(t.errorConfirmMsg)}}let Ft=(()=>{class t{constructor(t,e,i,n,r){this.store=t,this.logger=e,this.actions=i,this.router=n,this.sessionService=r,this.faInfoCircle=N.sqG,this.faUserLock=N.FJU,this.faUserClock=N.hnx,this.faLock=N.byT,this.currPassword="",this.newPassword="",this.confirmPassword="",this.errorMsg="",this.errorConfirmMsg="",this.initializeNodeData=!1,this.unSubs=[new h.x,new h.x,new h.x]}ngOnInit(){this.initializeNodeData="true"===this.sessionService.getItem("defaultPassword"),this.store.select("root").pipe((0,k.R)(this.unSubs[1])).subscribe(t=>{this.appConfig=t.appConfig,this.selNode=t.selNode,this.logger.info(t)}),this.actions.pipe((0,k.R)(this.unSubs[2]),(0,A.h)(t=>t.type===j.Gs)).subscribe(t=>{if(G.kO.includes(this.currPassword.toLowerCase()))switch(this.selNode.lnImplementation.toUpperCase()){case"CLT":this.router.navigate(["/cl/home"]);break;case"ECL":this.router.navigate(["/ecl/home"]);break;default:this.router.navigate(["/lnd/home"])}this.form.resetForm()})}onChangePassword(){if(!this.currPassword||!this.newPassword||!this.confirmPassword||this.currPassword===this.newPassword||this.newPassword!==this.confirmPassword||G.kO.includes(this.newPassword.toLowerCase()))return!0;this.store.dispatch(new j.tq({currPassword:rt(this.currPassword),newPassword:rt(this.newPassword)}))}matchOldAndNewPasswords(){let t=!1;return this.form.controls.newpassword&&(this.newPassword?""!==this.currPassword&&""!==this.newPassword&&this.currPassword===this.newPassword?(this.form.controls.newpassword.setErrors({invalid:!0}),this.errorMsg="Old and New password cannot be same.",t=!0):G.kO.includes(this.newPassword.toLowerCase())?(this.form.controls.newpassword.setErrors({invalid:!0}),this.errorMsg=G.kO.reduce((t,e,i)=>i{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(a.yh),r.Y36(V.mQ),r.Y36(l.eX),r.Y36(R.F0),r.Y36(It.m))},t.\u0275cmp=r.Xpm({type:t,selectors:[["rtl-auth-settings"]],viewQuery:function(t,e){if(1&t&&r.Gf(Dt,7),2&t){let t;r.iGM(t=r.CRH())&&(e.form=t.first)}},decls:35,vars:11,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap-x-large"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"page-sub-title-container","mt-1"],["authForm","ngForm"],["fxLayout","row","fxLayoutAlign","start start",1,"mb-2"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["matInput","","placeholder","Current Password","type","password","id","currpassword","name","currpassword","tabindex","6","required","",3,"ngModel","ngModelChange"],[4,"ngIf"],["matInput","","placeholder","New Password","type","password","id","newpassword","name","newpassword","tabindex","7","required","",3,"ngModel","ngModelChange"],["matInput","","placeholder","Confirm New Password","type","password","id","confirmpassword","name","confirmpassword","tabindex","8","required","",3,"ngModel","ngModelChange"],["fxLayout","row","fxLayoutAlign","start start",1,"mt-1"],["mat-stroked-button","","color","primary","type","reset","tabindex","9",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","10","type","button",3,"click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","end stretch",1,"my-2"],[3,"inset"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],[1,"mb-1","settings-container","page-sub-title-container","mt-1"],[1,"alert","alert-info"],[1,"mt-1","mr-1","alert-icon",3,"icon"],[1,"mt-1"],["mat-flat-button","","color","primary","tabindex","11",1,"mb-2",3,"click"]],template:function(t,e){1&t&&(r.TgZ(0,"div",0),r.TgZ(1,"form",1,2),r.TgZ(3,"div",3),r._UZ(4,"fa-icon",4),r.TgZ(5,"span",5),r._uU(6,"Password"),r.qZA(),r.qZA(),r.TgZ(7,"mat-form-field"),r.TgZ(8,"input",6),r.NdJ("ngModelChange",function(t){return e.currPassword=t}),r.qZA(),r.YNc(9,Rt,2,0,"mat-error",7),r.qZA(),r.TgZ(10,"mat-form-field"),r.TgZ(11,"input",8),r.NdJ("ngModelChange",function(t){return e.newPassword=t}),r.qZA(),r.YNc(12,Nt,2,1,"mat-error",7),r.qZA(),r.TgZ(13,"mat-form-field"),r.TgZ(14,"input",9),r.NdJ("ngModelChange",function(t){return e.confirmPassword=t}),r.qZA(),r.YNc(15,Pt,2,1,"mat-error",7),r.qZA(),r.TgZ(16,"div",10),r.TgZ(17,"button",11),r.NdJ("click",function(){return e.onResetPassword()}),r._uU(18,"Reset"),r.qZA(),r.TgZ(19,"button",12),r.NdJ("click",function(){return e.onChangePassword()}),r._uU(20,"Change Password"),r.qZA(),r.qZA(),r.qZA(),r.TgZ(21,"div",13),r._UZ(22,"mat-divider",14),r.qZA(),r.TgZ(23,"div",15),r.TgZ(24,"div",16),r._UZ(25,"fa-icon",4),r.TgZ(26,"span",5),r._uU(27,"Two Factor Authentication"),r.qZA(),r.qZA(),r.TgZ(28,"div",17),r._UZ(29,"fa-icon",18),r.TgZ(30,"span"),r._uU(31,"Protect your account from unauthorized access by requiring a second authentication method in addition to your password."),r.qZA(),r.qZA(),r.TgZ(32,"div",19),r.TgZ(33,"button",20),r.NdJ("click",function(){return e.on2FAuth()}),r._uU(34),r.qZA(),r.qZA(),r.qZA(),r.qZA()),2&t&&(r.xp6(4),r.Q6J("icon",e.faLock),r.xp6(4),r.Q6J("ngModel",e.currPassword),r.xp6(1),r.Q6J("ngIf",!e.currPassword),r.xp6(2),r.Q6J("ngModel",e.newPassword),r.xp6(1),r.Q6J("ngIf",e.matchOldAndNewPasswords()),r.xp6(2),r.Q6J("ngModel",e.confirmPassword),r.xp6(1),r.Q6J("ngIf",e.matchNewPasswords()),r.xp6(7),r.Q6J("inset",!0),r.xp6(3),r.Q6J("icon",e.faUserClock),r.xp6(4),r.Q6J("icon",e.faInfoCircle),r.xp6(5),r.Oqu(e.appConfig.enable2FA?"Disable 2FA":"Enable 2FA"))},directives:[P.xw,P.yH,P.Wh,W._Y,W.JL,W.F,F.BN,J.KE,ut.Nt,W.Fj,W.Q7,W.JJ,W.On,U.O5,$.lW,Ot.d,J.TO],styles:[""]}),t})();var Zt=i(5250);function Bt(t,e){1&t&&r._UZ(0,"mat-divider",7)}function Ut(t,e){if(1&t&&(r.TgZ(0,"div",4),r.TgZ(1,"pre",5),r._uU(2),r.ALo(3,"json"),r.qZA(),r.YNc(4,Bt,1,0,"mat-divider",6),r.qZA()),2&t){const t=r.oxw();r.xp6(2),r.Oqu(r.lcZ(3,2,t.configData)),r.xp6(2),r.Q6J("ngIf",""!==t.configData)}}function qt(t,e){if(1&t&&(r.TgZ(0,"h2"),r._uU(1),r.qZA()),2&t){const t=r.oxw().$implicit;r.xp6(1),r.Oqu(t)}}function zt(t,e){if(1&t&&(r.TgZ(0,"h4",14),r._uU(1),r.qZA()),2&t){const t=r.oxw().$implicit;r.xp6(1),r.Oqu(t)}}function Ht(t,e){1&t&&r._UZ(0,"mat-divider",15),2&t&&r.Q6J("inset",!0)}function Yt(t,e){if(1&t&&(r.TgZ(0,"mat-list-item"),r.TgZ(1,"mat-card-subtitle",7),r.YNc(2,qt,2,1,"h2",10),r.qZA(),r.TgZ(3,"mat-card-subtitle",11),r.YNc(4,zt,2,1,"h4",12),r.qZA(),r.YNc(5,Ht,1,1,"mat-divider",13),r.qZA()),2&t){const t=e.$implicit;r.xp6(2),r.Q6J("ngIf",t.indexOf("[")>=0),r.xp6(2),r.Q6J("ngIf",t.indexOf("[")<0),r.xp6(1),r.Q6J("ngIf",t.indexOf("[")<0)}}function Gt(t,e){if(1&t&&(r.TgZ(0,"div",8),r.TgZ(1,"mat-list"),r.YNc(2,Yt,6,3,"mat-list-item",9),r.qZA(),r.qZA()),2&t){const t=r.oxw();r.xp6(2),r.Q6J("ngForOf",t.configData)}}let jt=(()=>{class t{constructor(t,e,i){this.store=t,this.rtlEffects=e,this.router=i,this.selectedNodeType="",this.configData="",this.fileFormat="INI",this.faCog=N.b7W,this.unSubs=[new h.x,new h.x]}ngOnInit(){this.selectedNodeType=this.router.url.includes("bconfig")?"bitcoind":"ln",this.router.events.pipe((0,k.R)(this.unSubs[0]),(0,A.h)(t=>t instanceof R.Av)).subscribe(t=>{this.selectedNodeType=t.urlAfterRedirects.includes("bconfig")?"bitcoind":"ln"}),this.store.dispatch(new j.Fj(this.selectedNodeType)),this.rtlEffects.showLnConfig.pipe((0,k.R)(this.unSubs[1])).subscribe(t=>{const e=t.data;this.fileFormat=t.format,this.configData=""===e||!e||"INI"!==this.fileFormat&&"HOCON"!==this.fileFormat?""!==e&&e&&"JSON"===this.fileFormat?e:"":e.split("\n")})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(a.yh),r.Y36(lt.V),r.Y36(R.F0))},t.\u0275cmp=r.Xpm({type:t,selectors:[["rtl-bitcoin-config"]],decls:4,vars:2,consts:[["fxLayout","column","fxFlex","100"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start"],["fxFlex","100","class","mb-6",4,"ngIf"],["fxFlex","100",4,"ngIf"],["fxFlex","100",1,"mb-6"],[1,"pre-wrap"],["class","my-1",4,"ngIf"],[1,"my-1"],["fxFlex","100"],[4,"ngFor","ngForOf"],[4,"ngIf"],[1,"m-0"],["class","ml-4",4,"ngIf"],[3,"inset",4,"ngIf"],[1,"ml-4"],[3,"inset"]],template:function(t,e){1&t&&(r.TgZ(0,"div",0),r.TgZ(1,"div",1),r.YNc(2,Ut,5,4,"div",2),r.YNc(3,Gt,3,1,"div",3),r.qZA(),r.qZA()),2&t&&(r.xp6(2),r.Q6J("ngIf",""!==e.configData&&"JSON"===e.fileFormat),r.xp6(1),r.Q6J("ngIf",""!==e.configData&&("INI"===e.fileFormat||"HOCON"===e.fileFormat)))},directives:[P.xw,P.yH,P.Wh,U.O5,Ot.d,Zt.i$,U.sg,Zt.Tg,Z.$j],pipes:[U.Ts],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),t})();const Vt=function(){return{initial:!1}};function Qt(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div",10),r.NdJ("click",function(){r.CHM(t);const e=r.oxw();return e.activeLink=e.links[1].link}),r._uU(1),r.qZA()}if(2&t){const t=r.oxw();r.s9C("routerLink",t.links[1].link),r.Q6J("active",t.activeLink===t.links[1].link)("state",r.DdM(4,Vt)),r.xp6(1),r.Oqu(t.links[1].name)}}function Wt(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div",6),r.NdJ("click",function(){r.CHM(t);const e=r.oxw();return e.activeLink=e.links[2].link}),r._uU(1),r.qZA()}if(2&t){const t=r.oxw();r.s9C("routerLink",t.links[2].link),r.Q6J("active",t.activeLink===t.links[2].link),r.xp6(1),r.Oqu(t.links[2].name)}}let Jt=(()=>{class t{constructor(t,e){this.store=t,this.router=e,this.faTools=N.CgH,this.showLnConfig=!1,this.lnImplementationStr="",this.links=[{link:"node",name:"Node"},{link:"services",name:"Services"},{link:"lnconfig",name:this.lnImplementationStr}],this.activeLink="",this.unSubs=[new h.x,new h.x,new h.x]}ngOnInit(){const t=this.links.find(t=>this.router.url.includes(t.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe((0,k.R)(this.unSubs[0]),(0,A.h)(t=>t instanceof R.Av)).subscribe(t=>{const e=this.links.find(e=>t.urlAfterRedirects.includes(e.link));this.activeLink=e?e.link:this.links[0].link}),this.store.select("root").pipe((0,k.R)(this.unSubs[1])).subscribe(t=>{switch(this.showLnConfig=!1,this.appConfig=t.appConfig,this.selNode=t.selNode,this.selNode.lnImplementation.toUpperCase()){case"CLT":this.lnImplementationStr="C-Lightning Config";break;case"ECL":this.lnImplementationStr="Eclair Config";break;default:this.lnImplementationStr="LND Config"}this.selNode.authentication&&this.selNode.authentication.configPath&&""!==this.selNode.authentication.configPath.trim()&&(this.links[2].name=this.lnImplementationStr,this.showLnConfig=!0)})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(a.yh),r.Y36(R.F0))},t.\u0275cmp=r.Xpm({type:t,selectors:[["rtl-node-config"]],decls:14,vars:6,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","state","click",4,"ngIf"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","state","click"]],template:function(t,e){1&t&&(r.TgZ(0,"div",0),r._UZ(1,"fa-icon",1),r.TgZ(2,"span",2),r._uU(3,"Node Config"),r.qZA(),r.qZA(),r.TgZ(4,"div",3),r.TgZ(5,"mat-card"),r.TgZ(6,"mat-card-content",4),r.TgZ(7,"nav",5),r.TgZ(8,"div",6),r.NdJ("click",function(){return e.activeLink=e.links[0].link}),r._uU(9),r.qZA(),r.YNc(10,Qt,2,5,"div",7),r.YNc(11,Wt,2,3,"div",8),r.qZA(),r.TgZ(12,"div",9),r._UZ(13,"router-outlet"),r.qZA(),r.qZA(),r.qZA(),r.qZA()),2&t&&(r.xp6(1),r.Q6J("icon",e.faTools),r.xp6(7),r.s9C("routerLink",e.links[0].link),r.Q6J("active",e.activeLink===e.links[0].link),r.xp6(1),r.Oqu(e.links[0].name),r.xp6(1),r.Q6J("ngIf","LND"===e.selNode.lnImplementation.toUpperCase()),r.xp6(1),r.Q6J("ngIf",e.showLnConfig))},directives:[P.xw,P.Wh,F.BN,Z.a8,Z.dn,B.BU,B.Nj,R.rH,U.O5,P.yH,R.lC],styles:[""]}),t})();function Xt(t,e){1&t&&r._UZ(0,"mat-divider",7)}function Kt(t,e){if(1&t&&(r.TgZ(0,"div",4),r.TgZ(1,"pre",5),r._uU(2),r.ALo(3,"json"),r.qZA(),r.YNc(4,Xt,1,0,"mat-divider",6),r.qZA()),2&t){const t=r.oxw();r.xp6(2),r.Oqu(r.lcZ(3,2,t.configData)),r.xp6(2),r.Q6J("ngIf",""!==t.configData)}}function $t(t,e){if(1&t&&(r.TgZ(0,"h2"),r._uU(1),r.qZA()),2&t){const t=r.oxw().$implicit;r.xp6(1),r.Oqu(t)}}function te(t,e){if(1&t&&(r.TgZ(0,"h4",14),r._uU(1),r.qZA()),2&t){const t=r.oxw().$implicit;r.xp6(1),r.Oqu(t)}}function ee(t,e){1&t&&r._UZ(0,"mat-divider",15),2&t&&r.Q6J("inset",!0)}function ie(t,e){if(1&t&&(r.TgZ(0,"mat-list-item"),r.TgZ(1,"mat-card-subtitle",7),r.YNc(2,$t,2,1,"h2",10),r.qZA(),r.TgZ(3,"mat-card-subtitle",11),r.YNc(4,te,2,1,"h4",12),r.qZA(),r.YNc(5,ee,1,1,"mat-divider",13),r.qZA()),2&t){const t=e.$implicit;r.xp6(2),r.Q6J("ngIf",t.indexOf("[")>=0),r.xp6(2),r.Q6J("ngIf",t.indexOf("[")<0),r.xp6(1),r.Q6J("ngIf",t.indexOf("[")<0)}}function ne(t,e){if(1&t&&(r.TgZ(0,"div",8),r.TgZ(1,"mat-list"),r.YNc(2,ie,6,3,"mat-list-item",9),r.qZA(),r.qZA()),2&t){const t=r.oxw();r.xp6(2),r.Q6J("ngForOf",t.configData)}}let re=(()=>{class t{constructor(t,e,i){this.store=t,this.rtlEffects=e,this.router=i,this.selectedNodeType="",this.configData="",this.fileFormat="INI",this.faCog=N.b7W,this.unSubs=[new h.x,new h.x]}ngOnInit(){this.selectedNodeType=this.router.url.includes("bconfig")?"bitcoind":"ln",this.router.events.pipe((0,k.R)(this.unSubs[0]),(0,A.h)(t=>t instanceof R.Av)).subscribe(t=>{this.selectedNodeType=t.urlAfterRedirects.includes("bconfig")?"bitcoind":"ln"}),this.store.dispatch(new j.Fj(this.selectedNodeType)),this.rtlEffects.showLnConfig.pipe((0,k.R)(this.unSubs[1])).subscribe(t=>{const e=t.data;this.fileFormat=t.format,this.configData=""===e||!e||"INI"!==this.fileFormat&&"HOCON"!==this.fileFormat?""!==e&&e&&"JSON"===this.fileFormat?e:"":e.split("\n")})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(a.yh),r.Y36(lt.V),r.Y36(R.F0))},t.\u0275cmp=r.Xpm({type:t,selectors:[["rtl-lnp-config"]],decls:4,vars:2,consts:[["fxLayout","column","fxFlex","100"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start"],["fxFlex","100","class","mb-6",4,"ngIf"],["fxFlex","100",4,"ngIf"],["fxFlex","100",1,"mb-6"],[1,"pre-wrap"],["class","my-1",4,"ngIf"],[1,"my-1"],["fxFlex","100"],[4,"ngFor","ngForOf"],[4,"ngIf"],[1,"m-0"],["class","ml-4",4,"ngIf"],[3,"inset",4,"ngIf"],[1,"ml-4"],[3,"inset"]],template:function(t,e){1&t&&(r.TgZ(0,"div",0),r.TgZ(1,"div",1),r.YNc(2,Kt,5,4,"div",2),r.YNc(3,ne,3,1,"div",3),r.qZA(),r.qZA()),2&t&&(r.xp6(2),r.Q6J("ngIf",""!==e.configData&&"JSON"===e.fileFormat),r.xp6(1),r.Q6J("ngIf",""!==e.configData&&("INI"===e.fileFormat||"HOCON"===e.fileFormat)))},directives:[P.xw,P.yH,P.Wh,U.O5,Ot.d,Zt.i$,U.sg,Zt.Tg,Z.$j],pipes:[U.Ts],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),t})();var se=i(6124),oe=i(9939),ae=i(5678),le=i(1084),ce=i(7521),he=i(4810),ue=i(377);function de(t,e){if(1&t&&(r.TgZ(0,"mat-option",35),r._uU(1),r.qZA()),2&t){const t=e.$implicit;r.Q6J("value",t.id),r.xp6(1),r.hij(" ",t.id," ")}}function pe(t,e){1&t&&(r.TgZ(0,"mat-error"),r._uU(1,"Currency unit is required."),r.qZA())}function fe(t,e){if(1&t&&(r.TgZ(0,"mat-radio-button",36),r._uU(1),r.ALo(2,"titlecase"),r.qZA()),2&t){const t=e.$implicit,i=r.oxw();r.Q6J("value",t)("checked",i.selNode.settings.userPersona===t),r.xp6(1),r.hij(" ",r.lcZ(2,3,t)," ")}}const me=function(t){return{"mr-4":t}};function ge(t,e){if(1&t&&(r.TgZ(0,"mat-radio-button",37),r._uU(1),r.qZA()),2&t){const t=e.$implicit,i=r.oxw();r.Q6J("value",t)("ngClass",r.VKq(3,me,i.screenSize===i.screenSizeEnum.XS||i.screenSize===i.screenSizeEnum.SM)),r.xp6(1),r.hij("",t.name," ")}}const ye=function(t){return{skin:!0,"selected-color":t}};function be(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"span",38),r.TgZ(1,"div",39),r.NdJ("click",function(){const e=r.CHM(t).$implicit;return r.oxw().changeThemeColor(e.id)}),r.ALo(2,"lowercase"),r.qZA(),r._uU(3),r.qZA()}if(2&t){const t=e.$implicit,i=r.oxw();r.xp6(1),r.Tol(r.lcZ(2,4,t.id)),r.Q6J("ngClass",r.VKq(6,ye,i.selectedThemeColor===t.id)),r.xp6(2),r.hij(" ",t.name," ")}}let ve=(()=>{class t{constructor(t,e,i){this.logger=t,this.commonService=e,this.store=i,this.faExclamationTriangle=N.eHv,this.faMoneyBillAlt=N.co4,this.faPaintBrush=N.XsY,this.faInfoCircle=N.sqG,this.information={},this.userPersonas=[G.ol.OPERATOR,G.ol.MERCHANT],this.currencyUnits=G.Er,this.themeModes=G.wZ.modes,this.themeColors=G.wZ.themes,this.selectedThemeMode=G.wZ.modes[0],this.selectedThemeColor=G.wZ.themes[0].id,this.currencyUnit="BTC",this.smallerCurrencyUnit="Sats",this.showSettingOption=!0,this.screenSize="",this.screenSizeEnum=G.cu,this.unSubs=[new h.x,new h.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select("root").pipe((0,k.R)(this.unSubs[0])).subscribe(t=>{this.appConfig=t.appConfig,this.selNode=t.selNode,this.selectedThemeMode=this.themeModes.find(t=>this.selNode.settings.themeMode===t.id),this.selectedThemeColor=this.selNode.settings.themeColor,this.information=t.nodeData,this.selNode.settings.fiatConversion||(this.selNode.settings.currencyUnit=null),this.previousSettings=JSON.parse(JSON.stringify(this.selNode.settings)),this.logger.info(t)})}onCurrencyChange(t){this.selNode.settings.currencyUnits=[...G.uA,t.value],this.store.dispatch(new ae.vI({userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:t.value,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl})),this.store.dispatch(new oe.vI({userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:t.value,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl})),this.store.dispatch(new se.vI({userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:t.value,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}))}toggleSettings(t,e){this.selNode.settings[t]=!this.selNode.settings[t]}changeThemeColor(t){this.selectedThemeColor=t,this.selNode.settings.themeColor=t}chooseThemeMode(){this.selNode.settings.themeMode=this.selectedThemeMode.id}onUpdateSettings(){if(this.selNode.settings.fiatConversion&&!this.selNode.settings.currencyUnit)return!0;this.logger.info(this.selNode.settings),this.store.dispatch(new j.j_({uiMessage:G.m6.UPDATE_NODE_SETTINGS,settings:this.selNode.settings})),this.store.dispatch(new ae.vI({userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl})),this.store.dispatch(new oe.vI({userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl})),this.store.dispatch(new se.vI({userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}))}onResetSettings(){this.selNode.settings=this.previousSettings,this.selectedThemeMode=this.themeModes.find(t=>t.id===this.previousSettings.themeMode),this.selectedThemeColor=this.previousSettings.themeColor,this.store.dispatch(new j.ZG({uiMessage:G.m6.NO_SPINNER,lnNode:this.selNode,isInitialSetup:!0}))}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(V.mQ),r.Y36(le.v),r.Y36(a.yh))},t.\u0275cmp=r.Xpm({type:t,selectors:[["rtl-node-settings"]],decls:60,vars:17,consts:[["fxLayout","column","fxFlex","100",3,"perfectScrollbar"],["fxLayout","column","fxLayoutAlign","start stretch",1,"settings-container","page-sub-title-container","mt-1"],["form","ngForm"],["fxLayout","row"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column","fxLayoutAlign","start stretch",1,"mt-1","bordered-box","padding-gap-large"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["href","https://www.blockchain.com/api/exchange_rates_api","target","blank"],["fxLayout","row wrap","fxLayoutAlign","start center"],["tabindex","2","color","primary","name","fiatConversion",3,"ngModel","ngModelChange","change"],["autoFocus","","placeholder","Fiat Currency","tabindex","3","name","currencyUnit",3,"ngModel","disabled","required","ngModelChange","selectionChange"],["currencyUnit","ngModel"],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","row wrap","fxLayoutAlign","start start","fxLayout.gt-sm","column","fxFlex","100","fxLayoutAlign.gt-sm","space-between stretch",1,"settings-container","page-sub-title-container","mt-1"],[1,"mt-1"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100"],["fxLayout","row","fxFlex","100",1,"alert","alert-info","mb-0"],["fxLayout","column","fxLayoutAlign","start start","fxFlex","100"],["color","primary","tabindex","1","name","userPersona",3,"ngModel","ngModelChange"],["class","mr-4",3,"value","checked",4,"ngFor","ngForOf"],[1,"mt-1",3,"inset"],["fxLayout","column","fxLayout.gt-xs","row","fxFlex","100","fxLayoutAlign","space-between stretch","fxLayoutAlign.gt-xs","start stretch"],["fxFlex.gt-xs","20","fxFlex.gt-md","15","fxLayout","column","fxLayoutAlign","space-between stretch"],["color","primary","name","themeMode",3,"ngModel","ngModelChange","change"],["tabindex","5",3,"value","ngClass",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex.gt-xs","50","fxFlex.gt-md","40","fxLayoutAlign","space-between stretch"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start"],["fxLayout","row","class","theme-name",4,"ngFor","ngForOf"],["fxLayout","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","10",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","11",3,"click"],[3,"value"],[1,"mr-4",3,"value","checked"],["tabindex","5",3,"value","ngClass"],["fxLayout","row",1,"theme-name"],["tabindex","9",3,"ngClass","click"]],template:function(t,e){1&t&&(r.TgZ(0,"div",0),r.TgZ(1,"form",1,2),r.TgZ(3,"div",3),r._UZ(4,"fa-icon",4),r.TgZ(5,"span",5),r._uU(6,"Balance Display"),r.qZA(),r.qZA(),r.TgZ(7,"div",6),r.TgZ(8,"div",7),r._UZ(9,"fa-icon",8),r.TgZ(10,"span"),r._uU(11,"Fiat conversion calls "),r.TgZ(12,"strong"),r.TgZ(13,"a",9),r._uU(14,"Blockchain.com"),r.qZA(),r.qZA(),r._uU(15," API to get conversion rates."),r.qZA(),r.qZA(),r.TgZ(16,"div",10),r.TgZ(17,"mat-slide-toggle",11),r.NdJ("ngModelChange",function(t){return e.selNode.settings.fiatConversion=t})("change",function(t){return e.selNode.settings.currencyUnit=t.checked?e.selNode.settings.currencyUnit:null}),r._uU(18,"Enable Fiat Conversion"),r.qZA(),r.TgZ(19,"mat-form-field"),r.TgZ(20,"mat-select",12,13),r.NdJ("ngModelChange",function(t){return e.selNode.settings.currencyUnit=t})("selectionChange",function(t){return e.onCurrencyChange(t)}),r.YNc(22,de,2,2,"mat-option",14),r.qZA(),r.YNc(23,pe,2,0,"mat-error",15),r.qZA(),r.qZA(),r.qZA(),r.TgZ(24,"div",16),r.TgZ(25,"div",17),r.TgZ(26,"div",18),r._UZ(27,"fa-icon",4),r.TgZ(28,"span",5),r._uU(29,"Customization"),r.qZA(),r.qZA(),r.TgZ(30,"div",6),r.TgZ(31,"div",19),r.TgZ(32,"div",20),r._UZ(33,"fa-icon",8),r.TgZ(34,"span"),r._uU(35,"Dashboard layout will be tailored based on the role selected to better serve its needs."),r.qZA(),r.qZA(),r.TgZ(36,"div",21),r.TgZ(37,"h4"),r._uU(38,"Dashboard Layout"),r.qZA(),r.TgZ(39,"mat-radio-group",22),r.NdJ("ngModelChange",function(t){return e.selNode.settings.userPersona=t}),r.YNc(40,fe,3,5,"mat-radio-button",23),r.qZA(),r.qZA(),r.qZA(),r._UZ(41,"mat-divider",24),r.TgZ(42,"div",25),r.TgZ(43,"div",26),r.TgZ(44,"h4"),r._uU(45,"Mode"),r.qZA(),r.TgZ(46,"mat-radio-group",27),r.NdJ("ngModelChange",function(t){return e.selectedThemeMode=t})("change",function(){return e.chooseThemeMode()}),r.YNc(47,ge,2,5,"mat-radio-button",28),r.qZA(),r.qZA(),r.qZA(),r._UZ(48,"mat-divider",24),r.TgZ(49,"div",25),r.TgZ(50,"div",29),r.TgZ(51,"h4"),r._uU(52,"Themes"),r.qZA(),r.TgZ(53,"div",30),r.YNc(54,be,4,8,"span",31),r.qZA(),r.qZA(),r.qZA(),r.qZA(),r.qZA(),r.qZA(),r.qZA(),r.TgZ(55,"div",32),r.TgZ(56,"button",33),r.NdJ("click",function(){return e.onResetSettings()}),r._uU(57,"Reset"),r.qZA(),r.TgZ(58,"button",34),r.NdJ("click",function(){return e.onUpdateSettings()}),r._uU(59,"Update"),r.qZA(),r.qZA(),r.qZA()),2&t&&(r.xp6(4),r.Q6J("icon",e.faMoneyBillAlt),r.xp6(5),r.Q6J("icon",e.faExclamationTriangle),r.xp6(8),r.Q6J("ngModel",e.selNode.settings.fiatConversion),r.xp6(3),r.Q6J("ngModel",e.selNode.settings.currencyUnit)("disabled",!e.selNode.settings.fiatConversion)("required",e.selNode.settings.fiatConversion),r.xp6(2),r.Q6J("ngForOf",e.currencyUnits),r.xp6(1),r.Q6J("ngIf",e.selNode.settings.fiatConversion&&!e.selNode.settings.currencyUnit),r.xp6(4),r.Q6J("icon",e.faPaintBrush),r.xp6(6),r.Q6J("icon",e.faInfoCircle),r.xp6(6),r.Q6J("ngModel",e.selNode.settings.userPersona),r.xp6(1),r.Q6J("ngForOf",e.userPersonas),r.xp6(1),r.Q6J("inset",!0),r.xp6(5),r.Q6J("ngModel",e.selectedThemeMode),r.xp6(1),r.Q6J("ngForOf",e.themeModes),r.xp6(1),r.Q6J("inset",!0),r.xp6(6),r.Q6J("ngForOf",e.themeColors))},directives:[P.xw,P.yH,Q.$V,W._Y,W.JL,W.F,P.Wh,F.BN,ce.Rr,W.JJ,W.On,J.KE,X.gD,K.h,W.Q7,U.sg,U.O5,he.VQ,Ot.d,$.lW,tt.ey,J.TO,he.U0,U.mk,ue.oO],pipes:[U.rS,U.i8],styles:[""]}),t})();const _e=function(){return{initial:!1}};let we=(()=>{class t{constructor(t,e){this.store=t,this.router=e,this.faLayerGroup=N.Krp,this.links=[{link:"loop",name:"Loop"},{link:"boltz",name:"Boltz"}],this.activeLink="",this.unSubs=[new h.x,new h.x,new h.x]}ngOnInit(){const t=this.links.find(t=>this.router.url.includes(t.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe((0,k.R)(this.unSubs[0]),(0,A.h)(t=>t instanceof R.Av)).subscribe(t=>{const e=this.links.find(e=>t.urlAfterRedirects.includes(e.link));this.activeLink=e?e.link:this.links[0].link}),this.store.select("root").pipe((0,k.R)(this.unSubs[1])).subscribe(t=>{this.appConfig=t.appConfig,this.selNode=t.selNode})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(a.yh),r.Y36(R.F0))},t.\u0275cmp=r.Xpm({type:t,selectors:[["rtl-services-settings"]],decls:14,vars:9,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container","mt-1"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","state","click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"]],template:function(t,e){1&t&&(r.TgZ(0,"div",0),r._UZ(1,"fa-icon",1),r.TgZ(2,"span",2),r._uU(3,"Services"),r.qZA(),r.qZA(),r.TgZ(4,"div",3),r.TgZ(5,"mat-card"),r.TgZ(6,"mat-card-content",4),r.TgZ(7,"nav",5),r.TgZ(8,"div",6),r.NdJ("click",function(){return e.activeLink=e.links[0].link}),r._uU(9),r.qZA(),r.TgZ(10,"div",7),r.NdJ("click",function(){return e.activeLink=e.links[1].link}),r._uU(11),r.qZA(),r.qZA(),r.TgZ(12,"div",8),r._UZ(13,"router-outlet"),r.qZA(),r.qZA(),r.qZA(),r.qZA()),2&t&&(r.xp6(1),r.Q6J("icon",e.faLayerGroup),r.xp6(7),r.s9C("routerLink",e.links[0].link),r.Q6J("active",e.activeLink===e.links[0].link),r.xp6(1),r.Oqu(e.links[0].name),r.xp6(1),r.s9C("routerLink",e.links[1].link),r.Q6J("active",e.activeLink===e.links[1].link)("state",r.DdM(8,_e)),r.xp6(1),r.Oqu(e.links[1].name))},directives:[P.xw,P.Wh,F.BN,Z.a8,Z.dn,B.BU,B.Nj,R.rH,P.yH,R.lC],styles:[""]}),t})();const xe=["form"];function Ce(t,e){1&t&&(r.TgZ(0,"mat-error"),r._uU(1,"Loop server URL is required."),r.qZA())}function Ae(t,e){1&t&&(r.TgZ(0,"mat-error"),r._uU(1,"Specify the loop server url with 'https://'."),r.qZA())}function Se(t,e){1&t&&(r.TgZ(0,"mat-error"),r._uU(1,"Loop macaroon path is required."),r.qZA())}let Ee=(()=>{class t{constructor(t,e){this.logger=t,this.store=e,this.faInfoCircle=N.sqG,this.enableLoop=!1,this.unSubs=[new h.x,new h.x]}ngOnInit(){this.store.select("root").pipe((0,k.R)(this.unSubs[0])).subscribe(t=>{this.appConfig=t.appConfig,this.selNode=t.selNode,this.enableLoop=t.selNode.settings.swapServerUrl&&""!==t.selNode.settings.swapServerUrl.trim(),this.previousSelNode=JSON.parse(JSON.stringify(this.selNode)),this.logger.info(t)})}onEnableServiceChanged(t){this.enableLoop=t.checked,this.enableLoop||(this.selNode.authentication.swapMacaroonPath="",this.selNode.settings.swapServerUrl="")}onUpdateService(){if(this.selNode.settings.swapServerUrl&&""!==this.selNode.settings.swapServerUrl.trim()&&!this.form.controls.srvrUrl.value.includes("https://")&&this.form.controls.srvrUrl.setErrors({invalid:!0}),this.enableLoop&&(!this.selNode.settings.swapServerUrl||""===this.selNode.settings.swapServerUrl.trim()||!this.selNode.authentication.swapMacaroonPath||""===this.selNode.authentication.swapMacaroonPath.trim()))return!0;this.logger.info(this.selNode),this.store.dispatch(new j.wq({uiMessage:G.m6.UPDATE_LOOP_SETTINGS,service:G.JX.LOOP,settings:{enable:this.enableLoop,serverUrl:this.selNode.settings.swapServerUrl,macaroonPath:this.selNode.authentication.swapMacaroonPath}})),this.store.dispatch(new ae.vI({userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl})),this.store.dispatch(new oe.vI({userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl})),this.store.dispatch(new se.vI({userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}))}onReset(){this.selNode=JSON.parse(JSON.stringify(this.previousSelNode)),this.enableLoop=this.selNode.settings.swapServerUrl&&""!==this.selNode.settings.swapServerUrl.trim()}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(V.mQ),r.Y36(a.yh))},t.\u0275cmp=r.Xpm({type:t,selectors:[["rtl-loop-service-settings"]],viewQuery:function(t,e){if(1&t&&r.Gf(xe,7),2&t){let t;r.iGM(t=r.CRH())&&(e.form=t.first)}},decls:34,vars:11,consts:[["fxLayout","column","fxFlex","100",3,"perfectScrollbar"],["fxFlex","100",1,"alert","alert-info","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["href","https://github.com/lightninglabs/loop","target","_blank"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"settings-container","page-sub-title-container","mt-1"],["form","ngForm"],["fxLayout","column","fxFlex","50","fxLayoutAlign","start stretch"],["autoFocus","","tabindex","1","color","primary","name","loop",1,"mb-1",3,"ngModel","ngModelChange","change"],[1,"mb-2"],["matInput","","placeholder","Loop Server URL","type","text","id","swapServerUrl","name","srvrUrl","tabindex","2",3,"ngModel","required","disabled","ngModelChange"],["srvrUrl","ngModel"],[4,"ngIf"],["matInput","","placeholder","Loop Macaroon Path","type","text","id","swapMacaroonPath","name","swapMacaroonPath","tabindex","3",3,"ngModel","required","disabled","ngModelChange"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","type","reset","tabindex","4",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","5",3,"click"]],template:function(t,e){if(1&t&&(r.TgZ(0,"div",0),r.TgZ(1,"div",1),r._UZ(2,"fa-icon",2),r.TgZ(3,"span"),r._uU(4,"Please ensure that "),r.TgZ(5,"strong"),r._uU(6,"loopd"),r.qZA(),r._uU(7," is running and accessible to RTL before enabling this service. Click "),r.TgZ(8,"strong"),r.TgZ(9,"a",3),r._uU(10,"here"),r.qZA(),r.qZA(),r._uU(11," to learn more about the installation."),r.qZA(),r.qZA(),r.TgZ(12,"form",4,5),r.TgZ(14,"div",6),r.TgZ(15,"mat-slide-toggle",7),r.NdJ("ngModelChange",function(t){return e.enableLoop=t})("change",function(t){return e.onEnableServiceChanged(t)}),r._uU(16,"Enable Loop Service"),r.qZA(),r.TgZ(17,"mat-form-field",8),r.TgZ(18,"input",9,10),r.NdJ("ngModelChange",function(t){return e.selNode.settings.swapServerUrl=t}),r.qZA(),r.TgZ(20,"mat-hint"),r._uU(21,"Service url for loop server REST APIs, eg. https://localhost:8081"),r.qZA(),r.YNc(22,Ce,2,0,"mat-error",11),r.YNc(23,Ae,2,0,"mat-error",11),r.qZA(),r.TgZ(24,"mat-form-field"),r.TgZ(25,"input",12),r.NdJ("ngModelChange",function(t){return e.selNode.authentication.swapMacaroonPath=t}),r.qZA(),r.TgZ(26,"mat-hint"),r._uU(27,"Path for the folder containing service 'loop.macaroon', eg. D:\\\\xyz\\\\AppData\\\\Local\\\\Loop\\\\testnet"),r.qZA(),r.YNc(28,Se,2,0,"mat-error",11),r.qZA(),r.qZA(),r.qZA(),r.TgZ(29,"div",13),r.TgZ(30,"button",14),r.NdJ("click",function(){return e.onReset()}),r._uU(31,"Reset"),r.qZA(),r.TgZ(32,"button",15),r.NdJ("click",function(){return e.onUpdateService()}),r._uU(33,"Update"),r.qZA(),r.qZA(),r.qZA()),2&t){const t=r.MAs(19);r.xp6(2),r.Q6J("icon",e.faInfoCircle),r.xp6(13),r.Q6J("ngModel",e.enableLoop),r.xp6(3),r.Q6J("ngModel",e.selNode.settings.swapServerUrl)("required",e.enableLoop)("disabled",!e.enableLoop),r.xp6(4),r.Q6J("ngIf",!e.selNode.settings.swapServerUrl&&e.enableLoop),r.xp6(1),r.Q6J("ngIf",(null==t||null==t.errors?null:t.errors.invalid)&&e.enableLoop),r.xp6(2),r.Q6J("ngModel",e.selNode.authentication.swapMacaroonPath)("required",e.enableLoop)("disabled",!e.enableLoop),r.xp6(3),r.Q6J("ngIf",!e.selNode.authentication.swapMacaroonPath&&e.enableLoop)}},directives:[P.xw,P.yH,Q.$V,F.BN,W._Y,W.JL,W.F,P.Wh,ce.Rr,K.h,W.JJ,W.On,J.KE,ut.Nt,W.Fj,W.Q7,J.bx,U.O5,$.lW,J.TO],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),t})();const ke=["form"];function Te(t,e){1&t&&(r.TgZ(0,"mat-error"),r._uU(1,"Boltz server URL is required."),r.qZA())}function Me(t,e){1&t&&(r.TgZ(0,"mat-error"),r._uU(1,"Specify the boltz server url with 'https://'."),r.qZA())}function Le(t,e){1&t&&(r.TgZ(0,"mat-error"),r._uU(1,"Boltz macaroon path is required."),r.qZA())}let Ie=(()=>{class t{constructor(t,e){this.logger=t,this.store=e,this.faInfoCircle=N.sqG,this.enableBoltz=!1,this.serverUrl="",this.macaroonPath="",this.unSubs=[new h.x,new h.x]}ngOnInit(){this.store.select("root").pipe((0,k.R)(this.unSubs[0])).subscribe(t=>{this.appConfig=t.appConfig,this.selNode=t.selNode,this.enableBoltz=t.selNode.settings.boltzServerUrl&&""!==t.selNode.settings.boltzServerUrl.trim(),this.serverUrl=this.selNode.settings.boltzServerUrl,this.macaroonPath=this.selNode.authentication.boltzMacaroonPath,this.previousSelNode=JSON.parse(JSON.stringify(this.selNode)),this.logger.info(t)})}onEnableServiceChanged(t){this.enableBoltz=t.checked,this.enableBoltz||(this.macaroonPath="",this.serverUrl="")}onUpdateService(){if(this.serverUrl&&""!==this.serverUrl.trim()&&!this.form.controls.srvrUrl.value.includes("https://")&&this.form.controls.srvrUrl.setErrors({invalid:!0}),this.enableBoltz&&(!this.serverUrl||""===this.serverUrl.trim()||!this.serverUrl.includes("https://")||!this.macaroonPath||""===this.macaroonPath.trim()))return!0;this.logger.info(this.selNode),this.selNode.settings.boltzServerUrl=this.serverUrl,this.selNode.authentication.boltzMacaroonPath=this.macaroonPath,this.store.dispatch(new j.wq({uiMessage:G.m6.UPDATE_BOLTZ_SETTINGS,service:G.JX.BOLTZ,settings:{enable:this.enableBoltz,serverUrl:this.serverUrl,macaroonPath:this.macaroonPath}})),this.store.dispatch(new ae.vI({userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.serverUrl})),this.store.dispatch(new oe.vI({userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.serverUrl})),this.store.dispatch(new se.vI({userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.serverUrl}))}onReset(){this.selNode=JSON.parse(JSON.stringify(this.previousSelNode)),this.serverUrl=this.selNode.settings.boltzServerUrl,this.macaroonPath=this.selNode.authentication.boltzMacaroonPath,this.enableBoltz=this.serverUrl&&""!==this.serverUrl.trim()}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(V.mQ),r.Y36(a.yh))},t.\u0275cmp=r.Xpm({type:t,selectors:[["rtl-boltz-service-settings"]],viewQuery:function(t,e){if(1&t&&r.Gf(ke,7),2&t){let t;r.iGM(t=r.CRH())&&(e.form=t.first)}},decls:34,vars:11,consts:[["fxLayout","column","fxFlex","100",3,"perfectScrollbar"],["fxFlex","100",1,"alert","alert-info","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["href","https://lnd.docs.boltz.exchange/en/latest/","target","_blank"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"settings-container","page-sub-title-container","mt-1"],["form","ngForm"],["fxLayout","column","fxFlex","50","fxLayoutAlign","start stretch"],["autoFocus","","tabindex","1","color","primary","name","boltz",1,"mb-1",3,"ngModel","ngModelChange","change"],[1,"mb-2"],["matInput","","placeholder","Boltz Server URL","type","text","id","boltzServerUrl","name","srvrUrl","tabindex","2",3,"ngModel","required","disabled","ngModelChange"],["srvrUrl","ngModel"],[4,"ngIf"],["matInput","","placeholder","Boltz Macaroon Path","type","text","id","boltzMacaroonPath","name","boltzMacaroonPath","tabindex","3",3,"ngModel","required","disabled","ngModelChange"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","type","reset","tabindex","4",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","5",3,"click"]],template:function(t,e){if(1&t&&(r.TgZ(0,"div",0),r.TgZ(1,"div",1),r._UZ(2,"fa-icon",2),r.TgZ(3,"span"),r._uU(4,"Please ensure that "),r.TgZ(5,"strong"),r._uU(6,"boltzd"),r.qZA(),r._uU(7," is running and accessible to RTL before enabling this service. Click "),r.TgZ(8,"strong"),r.TgZ(9,"a",3),r._uU(10,"here"),r.qZA(),r.qZA(),r._uU(11," to learn more about the installation."),r.qZA(),r.qZA(),r.TgZ(12,"form",4,5),r.TgZ(14,"div",6),r.TgZ(15,"mat-slide-toggle",7),r.NdJ("ngModelChange",function(t){return e.enableBoltz=t})("change",function(t){return e.onEnableServiceChanged(t)}),r._uU(16,"Enable Boltz Service"),r.qZA(),r.TgZ(17,"mat-form-field",8),r.TgZ(18,"input",9,10),r.NdJ("ngModelChange",function(t){return e.serverUrl=t}),r.qZA(),r.TgZ(20,"mat-hint"),r._uU(21,"Service url for boltz server REST APIs, eg. https://localhost:9003"),r.qZA(),r.YNc(22,Te,2,0,"mat-error",11),r.YNc(23,Me,2,0,"mat-error",11),r.qZA(),r.TgZ(24,"mat-form-field"),r.TgZ(25,"input",12),r.NdJ("ngModelChange",function(t){return e.macaroonPath=t}),r.qZA(),r.TgZ(26,"mat-hint"),r._uU(27,"Path for the folder containing boltz 'admin.macaroon', eg. D:\\\\xyz\\\\AppData\\\\Boltz\\\\testnet"),r.qZA(),r.YNc(28,Le,2,0,"mat-error",11),r.qZA(),r.qZA(),r.qZA(),r.TgZ(29,"div",13),r.TgZ(30,"button",14),r.NdJ("click",function(){return e.onReset()}),r._uU(31,"Reset"),r.qZA(),r.TgZ(32,"button",15),r.NdJ("click",function(){return e.onUpdateService()}),r._uU(33,"Update"),r.qZA(),r.qZA(),r.qZA()),2&t){const t=r.MAs(19);r.xp6(2),r.Q6J("icon",e.faInfoCircle),r.xp6(13),r.Q6J("ngModel",e.enableBoltz),r.xp6(3),r.Q6J("ngModel",e.serverUrl)("required",e.enableBoltz)("disabled",!e.enableBoltz),r.xp6(4),r.Q6J("ngIf",(!e.serverUrl||""===e.serverUrl.trim())&&e.enableBoltz),r.xp6(1),r.Q6J("ngIf",(null==t||null==t.errors?null:t.errors.invalid)&&e.enableBoltz),r.xp6(2),r.Q6J("ngModel",e.macaroonPath)("required",e.enableBoltz)("disabled",!e.enableBoltz),r.xp6(3),r.Q6J("ngIf",!e.macaroonPath&&e.enableBoltz)}},directives:[P.xw,P.yH,Q.$V,F.BN,W._Y,W.JL,W.F,P.Wh,ce.Rr,K.h,W.JJ,W.On,J.KE,ut.Nt,W.Fj,W.Q7,J.bx,U.O5,$.lW,J.TO],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),t})(),Oe=(()=>{class t{constructor(t,e){this.store=t,this.router=e,this.faLayerGroup=N.Krp,this.showLnConfig=!1,this.showBitcoind=!1,this.lnImplementationStr="",this.links=[{link:"layout",name:"Layout"},{link:"auth",name:"Authentication"},{link:"lnconfig",name:this.lnImplementationStr},{link:"bconfig",name:"BitcoinD Config"}],this.activeLink="",this.unSubs=[new h.x,new h.x,new h.x]}ngOnInit(){const t=this.links.find(t=>this.router.url.includes(t.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe((0,k.R)(this.unSubs[0]),(0,A.h)(t=>t instanceof R.Av)).subscribe(t=>{const e=this.links.find(e=>t.urlAfterRedirects.includes(e.link));this.activeLink=e?e.link:this.links[0].link}),this.store.select("root").pipe((0,k.R)(this.unSubs[1])).subscribe(t=>{switch(this.showLnConfig=!1,this.showBitcoind=!1,this.appConfig=t.appConfig,this.selNode=t.selNode,this.selNode.lnImplementation.toUpperCase()){case"CLT":this.lnImplementationStr="C-Lightning Config";break;case"ECL":this.lnImplementationStr="Eclair Config";break;default:this.lnImplementationStr="LND Config"}this.selNode.authentication&&this.selNode.authentication.configPath&&""!==this.selNode.authentication.configPath.trim()&&(this.links[2].name=this.lnImplementationStr,this.showLnConfig=!0),this.selNode.settings&&this.selNode.settings.bitcoindConfigPath&&""!==this.selNode.settings.bitcoindConfigPath.trim()&&(this.showBitcoind=!0)})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(a.yh),r.Y36(R.F0))},t.\u0275cmp=r.Xpm({type:t,selectors:[["rtl-services"]],decls:1,vars:0,template:function(t,e){1&t&&r._UZ(0,"router-outlet")},directives:[R.lC],styles:[""]}),t})();var De=i(5028),Re=i(2969),Ne=i(3005),Pe=i(2464),Fe=i(7033),Ze=i(5994);function Be(t,e){1&t&&r._UZ(0,"mat-progress-bar",34)}function Ue(t,e){1&t&&(r.TgZ(0,"th",35),r._uU(1," Initiation Time "),r.qZA())}function qe(t,e){if(1&t&&(r.TgZ(0,"td",36),r._uU(1),r.ALo(2,"date"),r.qZA()),2&t){const t=e.$implicit;r.xp6(1),r.Oqu(r.xi3(2,1,t.initiation_time/1e6,"dd/MMM/YYYY HH:mm"))}}function ze(t,e){1&t&&(r.TgZ(0,"th",35),r._uU(1," Last Update Time "),r.qZA())}function He(t,e){if(1&t&&(r.TgZ(0,"td",36),r._uU(1),r.ALo(2,"date"),r.qZA()),2&t){const t=e.$implicit;r.xp6(1),r.Oqu(r.xi3(2,1,t.last_update_time/1e6,"dd/MMM/YYYY HH:mm"))}}function Ye(t,e){1&t&&(r.TgZ(0,"th",35),r._uU(1," ID "),r.qZA())}function Ge(t,e){if(1&t&&(r.TgZ(0,"td",36),r._uU(1),r.qZA()),2&t){const t=e.$implicit;r.xp6(1),r.Oqu(t.id)}}function je(t,e){1&t&&(r.TgZ(0,"th",35),r._uU(1," ID (Bytes) "),r.qZA())}function Ve(t,e){if(1&t&&(r.TgZ(0,"td",36),r._uU(1),r.qZA()),2&t){const t=e.$implicit;r.xp6(1),r.Oqu(t.id_bytes)}}function Qe(t,e){1&t&&(r.TgZ(0,"th",35),r._uU(1," State "),r.qZA())}function We(t,e){if(1&t&&(r.TgZ(0,"td",36),r._uU(1),r.qZA()),2&t){const t=e.$implicit,i=r.oxw();r.xp6(1),r.Oqu(i.LoopStateEnum[t.state])}}function Je(t,e){1&t&&(r.TgZ(0,"th",35),r._uU(1," HTLC Address "),r.qZA())}function Xe(t,e){if(1&t&&(r.TgZ(0,"td",36),r._uU(1),r.qZA()),2&t){const t=e.$implicit;r.xp6(1),r.Oqu(t.htlc_address)}}function Ke(t,e){1&t&&(r.TgZ(0,"th",37),r._uU(1," Amount (Sats) "),r.qZA())}function $e(t,e){if(1&t&&(r.TgZ(0,"td",36),r.TgZ(1,"span",38),r._uU(2),r.ALo(3,"number"),r.qZA(),r.qZA()),2&t){const t=e.$implicit;r.xp6(2),r.Oqu(r.lcZ(3,1,t.amt))}}function ti(t,e){1&t&&(r.TgZ(0,"th",37),r._uU(1," Cost Server (Sats) "),r.qZA())}function ei(t,e){if(1&t&&(r.TgZ(0,"td",36),r.TgZ(1,"span",38),r._uU(2),r.ALo(3,"number"),r.qZA(),r.qZA()),2&t){const t=e.$implicit;r.xp6(2),r.Oqu(r.lcZ(3,1,t.cost_server))}}function ii(t,e){1&t&&(r.TgZ(0,"th",37),r._uU(1," Cost Offchain (Sats) "),r.qZA())}function ni(t,e){if(1&t&&(r.TgZ(0,"td",36),r.TgZ(1,"span",38),r._uU(2),r.ALo(3,"number"),r.qZA(),r.qZA()),2&t){const t=e.$implicit;r.xp6(2),r.Oqu(r.lcZ(3,1,t.cost_offchain))}}function ri(t,e){1&t&&(r.TgZ(0,"th",37),r._uU(1," Cost Onchain (Sats) "),r.qZA())}function si(t,e){if(1&t&&(r.TgZ(0,"td",36),r.TgZ(1,"span",38),r._uU(2),r.ALo(3,"number"),r.qZA(),r.qZA()),2&t){const t=e.$implicit;r.xp6(2),r.hij(" ",r.lcZ(3,1,null==t?null:t.cost_onchain)," ")}}function oi(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"th",39),r.TgZ(1,"div",40),r.TgZ(2,"mat-select",41),r._UZ(3,"mat-select-trigger"),r.TgZ(4,"mat-option",42),r.NdJ("click",function(){return r.CHM(t),r.oxw().onDownloadCSV()}),r._uU(5,"Download CSV"),r.qZA(),r.qZA(),r.qZA(),r.qZA()}}function ai(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"td",43),r.TgZ(1,"button",44),r.NdJ("click",function(e){const i=r.CHM(t).$implicit;return r.oxw().onSwapClick(i,e)}),r._uU(2,"View Info"),r.qZA(),r.qZA()}}function li(t,e){if(1&t&&(r.TgZ(0,"p"),r._uU(1),r.qZA()),2&t){const t=r.oxw(2);r.xp6(1),r.Oqu(t.emptyTableMessage)}}function ci(t,e){if(1&t&&(r.TgZ(0,"td",45),r.YNc(1,li,2,1,"p",46),r.qZA()),2&t){const t=r.oxw();r.xp6(1),r.Q6J("ngIf",!(null!=t.listSwaps&&t.listSwaps.data)||(null==t.listSwaps||null==t.listSwaps.data?null:t.listSwaps.data.length)<1)}}const hi=function(t){return{"display-none":t}};function ui(t,e){if(1&t&&r._UZ(0,"tr",47),2&t){const t=r.oxw();r.Q6J("ngClass",r.VKq(1,hi,(null==t.listSwaps?null:t.listSwaps.data)&&(null==t.listSwaps||null==t.listSwaps.data?null:t.listSwaps.data.length)>0))}}function di(t,e){1&t&&r._UZ(0,"tr",48)}function pi(t,e){1&t&&r._UZ(0,"tr",49)}const fi=function(t){return{"overflow-auto error-border":t,"overflow-auto":!0}},mi=function(){return["no_swap"]};let gi=(()=>{class t{constructor(t,e,i,n){this.logger=t,this.commonService=e,this.store=i,this.loopService=n,this.selectedSwapType=G.$I.LOOP_OUT,this.swapsData=[],this.flgLoading=[!0],this.emptyTableMessage="No swaps available.",this.LoopStateEnum=G.Fq,this.faHistory=N.qO$,this.swapCaption="Loop Out",this.displayedColumns=[],this.flgSticky=!1,this.pageSize=G.IV,this.pageSizeOptions=G.TJ,this.screenSize="",this.screenSizeEnum=G.cu,this.unSubs=[new h.x,new h.x,new h.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===G.cu.XS||this.screenSize===G.cu.SM?(this.flgSticky=!1,this.displayedColumns=["state","amt","actions"]):this.screenSize===G.cu.MD?(this.flgSticky=!1,this.displayedColumns=["state","initiation_time","amt","actions"]):(this.flgSticky=!0,this.displayedColumns=["state","initiation_time","amt","cost_server","cost_offchain","cost_onchain","actions"])}ngAfterViewInit(){this.swapsData&&this.swapsData.length>0&&this.loadSwapsTable(this.swapsData)}ngOnChanges(t){this.swapCaption=this.selectedSwapType===G.$I.LOOP_IN?"Loop In":"Loop Out",this.loadSwapsTable(this.swapsData)}applyFilter(t){this.listSwaps.filter=t.value.trim().toLowerCase()}onSwapClick(t,e){this.loopService.getSwap(t.id_bytes.replace(/\//g,"_").replace(/\+/g,"-")).pipe((0,k.R)(this.unSubs[2])).subscribe(t=>{this.store.dispatch(new j.wu({data:{type:G.n_.INFORMATION,alertTitle:this.swapCaption+" Status",message:[[{key:"state",value:G.Fq[t.state],title:"Status",width:50,type:G.Gi.STRING},{key:"amt",value:t.amt,title:"Amount (Sats)",width:50,type:G.Gi.NUMBER}],[{key:"initiation_time",value:t.initiation_time/1e9,title:"Initiation Time",width:50,type:G.Gi.DATE_TIME},{key:"last_update_time",value:t.last_update_time/1e9,title:"Last Update Time",width:50,type:G.Gi.DATE_TIME}],[{key:"cost_server",value:t.cost_server,title:"Server Cost (Sats)",width:33,type:G.Gi.NUMBER},{key:"cost_offchain",value:t.cost_offchain,title:"Offchain Cost (Sats)",width:33,type:G.Gi.NUMBER},{key:"cost_onchain",value:t.cost_onchain,title:"Onchain Cost (Sats)",width:34,type:G.Gi.NUMBER}],[{key:"id_bytes",value:t.id_bytes,title:"ID",width:100,type:G.Gi.STRING}],[{key:"htlc_address",value:t.htlc_address,title:"HTLC Address",width:100,type:G.Gi.STRING}]],openedBy:"SWAP"}}))})}loadSwapsTable(t){this.listSwaps=new Fe.by([...t]),this.listSwaps.sort=this.sort,this.listSwaps.sortingDataAccessor=(t,e)=>t[e]&&isNaN(t[e])?t[e].toLocaleLowerCase():t[e]?+t[e]:null,this.listSwaps.filterPredicate=(t,e)=>JSON.stringify(t).toLowerCase().includes(e),this.listSwaps.paginator=this.paginator,this.logger.info(this.listSwaps)}onDownloadCSV(){this.listSwaps.data&&this.listSwaps.data.length>0&&this.commonService.downloadFile(this.listSwaps.data,this.selectedSwapType===G.$I.LOOP_IN?"Loop in":"Loop out")}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(V.mQ),r.Y36(le.v),r.Y36(a.yh),r.Y36(Re.W))},t.\u0275cmp=r.Xpm({type:t,selectors:[["rtl-swaps"]],viewQuery:function(t,e){if(1&t&&(r.Gf(Pe.YE,5),r.Gf(Ne.NW,5)),2&t){let t;r.iGM(t=r.CRH())&&(e.sort=t.first),r.iGM(t=r.CRH())&&(e.paginator=t.first)}},inputs:{selectedSwapType:"selectedSwapType",swapsData:"swapsData",flgLoading:"flgLoading",emptyTableMessage:"emptyTableMessage"},features:[r._Bn([{provide:Ne.ye,useValue:(0,G.pt)("Swaps")}]),r.TTD],decls:52,vars:15,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start start",1,"card-content-gap"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch","fxFlex","100",1,"page-sub-title-container","w-100"],["fxFlex","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"keyup"],["fxLayout","row","fxLayoutAlign","start center",1,"w-100"],["fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","initiation_time"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","last_update_time"],["matColumnDef","id"],["matColumnDef","id_bytes"],["matColumnDef","state"],["matColumnDef","htlc_address"],["matColumnDef","amt"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","cost_server"],["matColumnDef","cost_offchain"],["matColumnDef","cost_onchain"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-3","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_swap"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,e){1&t&&(r.TgZ(0,"div",0),r.TgZ(1,"div",1),r.TgZ(2,"div",2),r._UZ(3,"fa-icon",3),r.TgZ(4,"span",4),r._uU(5),r.qZA(),r.qZA(),r.TgZ(6,"mat-form-field",5),r.TgZ(7,"input",6),r.NdJ("keyup",function(t){return e.applyFilter(t.target)}),r.qZA(),r.qZA(),r.qZA(),r.TgZ(8,"div",7),r.TgZ(9,"div",8),r.YNc(10,Be,1,0,"mat-progress-bar",9),r.TgZ(11,"table",10,11),r.ynx(13,12),r.YNc(14,Ue,2,0,"th",13),r.YNc(15,qe,3,4,"td",14),r.BQk(),r.ynx(16,15),r.YNc(17,ze,2,0,"th",13),r.YNc(18,He,3,4,"td",14),r.BQk(),r.ynx(19,16),r.YNc(20,Ye,2,0,"th",13),r.YNc(21,Ge,2,1,"td",14),r.BQk(),r.ynx(22,17),r.YNc(23,je,2,0,"th",13),r.YNc(24,Ve,2,1,"td",14),r.BQk(),r.ynx(25,18),r.YNc(26,Qe,2,0,"th",13),r.YNc(27,We,2,1,"td",14),r.BQk(),r.ynx(28,19),r.YNc(29,Je,2,0,"th",13),r.YNc(30,Xe,2,1,"td",14),r.BQk(),r.ynx(31,20),r.YNc(32,Ke,2,0,"th",21),r.YNc(33,$e,4,3,"td",14),r.BQk(),r.ynx(34,22),r.YNc(35,ti,2,0,"th",21),r.YNc(36,ei,4,3,"td",14),r.BQk(),r.ynx(37,23),r.YNc(38,ii,2,0,"th",21),r.YNc(39,ni,4,3,"td",14),r.BQk(),r.ynx(40,24),r.YNc(41,ri,2,0,"th",21),r.YNc(42,si,4,3,"td",14),r.BQk(),r.ynx(43,25),r.YNc(44,oi,6,0,"th",26),r.YNc(45,ai,3,0,"td",27),r.BQk(),r.ynx(46,28),r.YNc(47,ci,2,1,"td",29),r.BQk(),r.YNc(48,ui,1,3,"tr",30),r.YNc(49,di,1,0,"tr",31),r.YNc(50,pi,1,0,"tr",32),r.qZA(),r._UZ(51,"mat-paginator",33),r.qZA(),r.qZA(),r.qZA()),2&t&&(r.xp6(3),r.Q6J("icon",e.faHistory),r.xp6(2),r.hij("",e.swapCaption," History"),r.xp6(5),r.Q6J("ngIf",!0===e.flgLoading[0]),r.xp6(1),r.Q6J("dataSource",e.listSwaps)("ngClass",r.VKq(12,fi,"error"===e.flgLoading[0])),r.xp6(37),r.Q6J("matFooterRowDef",r.DdM(14,mi)),r.xp6(1),r.Q6J("matHeaderRowDef",e.displayedColumns)("matHeaderRowDefSticky",e.flgSticky),r.xp6(1),r.Q6J("matRowDefColumns",e.displayedColumns),r.xp6(1),r.Q6J("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)("showFirstLastButtons",e.screenSize!==e.screenSizeEnum.XS))},directives:[P.xw,P.yH,P.Wh,F.BN,J.KE,ut.Nt,Q.$V,U.O5,Fe.BZ,Pe.YE,U.mk,ue.oO,Fe.w1,Fe.fO,Fe.Dz,Fe.mD,Fe.Ke,Fe.as,Fe.nj,Ne.NW,Ze.pW,Fe.ge,Pe.nU,Fe.ev,X.gD,X.$L,tt.ey,$.lW,Fe.yh,Fe.Q2,Fe.XQ,Fe.Gk],pipes:[U.uU,U.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),t})();const yi=function(t){return["../",t]};function bi(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div",10),r.NdJ("click",function(){const e=r.CHM(t).$implicit;return r.oxw().onSelectedIndexChange(e)}),r._uU(1),r.qZA()}if(2&t){const t=e.$implicit,i=r.oxw();r.Q6J("active",i.activeTab.link===t.link)("routerLink",r.VKq(3,yi,t.link)),r.xp6(1),r.Oqu(t.name)}}let vi=(()=>{class t{constructor(t,e,i){this.router=t,this.loopService=e,this.store=i,this.faInfinity=N.vqe,this.targetConf=2,this.inAmount=25e4,this.quotes=[],this.LoopTypeEnum=G.$I,this.selectedSwapType=G.$I.LOOP_OUT,this.storedSwaps=[],this.filteredSwaps=[],this.emptyTableMessage="No swap data available.",this.flgLoading=[!0],this.links=[{link:"loopout",name:"Loop Out"},{link:"loopin",name:"Loop In"}],this.activeTab=this.links[0],this.unSubs=[new h.x,new h.x,new h.x,new h.x]}ngOnInit(){this.loopService.listSwaps();const t=this.links.find(t=>this.router.url.includes(t.link));this.activeTab=t||this.links[0],this.selectedSwapType=t&&"loopin"===t.link?G.$I.LOOP_IN:G.$I.LOOP_OUT,this.router.events.pipe((0,k.R)(this.unSubs[0]),(0,A.h)(t=>t instanceof R.Av)).subscribe(t=>{const e=this.links.find(e=>t.urlAfterRedirects.includes(e.link));this.activeTab=e||this.links[0],this.selectedSwapType=e&&"loopin"===e.link?G.$I.LOOP_IN:G.$I.LOOP_OUT}),this.loopService.swapsChanged.pipe((0,k.R)(this.unSubs[1])).subscribe({next:t=>{this.flgLoading[0]=!1,this.storedSwaps=t,this.filteredSwaps=this.storedSwaps.filter(t=>t.type===this.selectedSwapType)},error:t=>{this.flgLoading[0]="error",this.emptyTableMessage=t.message?t.message:"No loop "+(this.selectedSwapType===G.$I.LOOP_IN?"in":"out")+" available."}})}onSelectedIndexChange(t){this.selectedSwapType="loopin"===t.link?G.$I.LOOP_IN:G.$I.LOOP_OUT,this.filteredSwaps=this.storedSwaps.filter(t=>t.type===this.selectedSwapType)}onLoop(t){t===G.$I.LOOP_IN?this.loopService.getLoopInTermsAndQuotes(this.targetConf).pipe((0,k.R)(this.unSubs[2])).subscribe(e=>{this.store.dispatch(new j.wu({data:{minQuote:e[0],maxQuote:e[1],direction:t,component:De.a}}))}):this.loopService.getLoopOutTermsAndQuotes(this.targetConf).pipe((0,k.R)(this.unSubs[3])).subscribe(e=>{this.store.dispatch(new j.wu({data:{minQuote:e[0],maxQuote:e[1],direction:t,component:De.a}}))})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(R.F0),r.Y36(Re.W),r.Y36(a.yh))},t.\u0275cmp=r.Xpm({type:t,selectors:[["rtl-loop"]],decls:13,vars:7,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start start",1,"padding-gap-x-large","mt-1"],["mat-flat-button","","color","primary","type","button","tabindex","1",3,"click"],["fxLayout","row","fxFlex","100",3,"selectedSwapType","swapsData","flgLoading","emptyTableMessage"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(t,e){1&t&&(r.TgZ(0,"div",0),r._UZ(1,"fa-icon",1),r.TgZ(2,"span",2),r._uU(3,"Loop"),r.qZA(),r.qZA(),r.TgZ(4,"div",3),r.TgZ(5,"mat-card"),r.TgZ(6,"mat-card-content",4),r.TgZ(7,"nav",5),r.YNc(8,bi,2,5,"div",6),r.qZA(),r.TgZ(9,"div",7),r.TgZ(10,"button",8),r.NdJ("click",function(){return e.onLoop(e.selectedSwapType)}),r._uU(11),r.qZA(),r.qZA(),r._UZ(12,"rtl-swaps",9),r.qZA(),r.qZA(),r.qZA()),2&t&&(r.xp6(1),r.Q6J("icon",e.faInfinity),r.xp6(7),r.Q6J("ngForOf",e.links),r.xp6(3),r.hij("Start ",e.activeTab.name,""),r.xp6(1),r.Q6J("selectedSwapType",e.selectedSwapType)("swapsData",e.filteredSwaps)("flgLoading",e.flgLoading)("emptyTableMessage",e.emptyTableMessage))},directives:[P.xw,P.Wh,F.BN,Z.a8,Z.dn,B.BU,U.sg,$.lW,gi,P.yH,B.Nj,R.rH],styles:[""]}),t})();var _i=i(4833),wi=i(7425),xi=i(9647),Ci=i(1816),Ai=i(5963),Si=i(2427);let Ei=(()=>{class t{constructor(t,e,i,n){this.httpClient=t,this.logger=e,this.store=i,this.commonService=n,this.swapUrl="",this.swaps={},this.swapsChanged=new wi.X({}),this.unSubs=[new h.x,new h.x,new h.x]}getSwapsList(){return this.swaps}listSwaps(){this.store.dispatch(new j.Fk(G.m6.GET_BOLTZ_SWAPS)),this.swapUrl=Ai.T+Ai.N.BOLTZ_API+"/listSwaps",this.httpClient.get(this.swapUrl).pipe((0,k.R)(this.unSubs[0])).subscribe({next:t=>{this.store.dispatch(new j.Iv(G.m6.GET_BOLTZ_SWAPS)),this.swaps=t,this.swapsChanged.next(this.swaps)},error:t=>this.handleErrorWithAlert(G.m6.GET_BOLTZ_SWAPS,this.swapUrl,t)})}swapInfo(t){return this.swapUrl=Ai.T+Ai.N.BOLTZ_API+"/swapInfo/"+t,this.httpClient.get(this.swapUrl).pipe((0,Ci.K)(t=>this.handleErrorWithAlert(G.m6.NO_SPINNER,this.swapUrl,t)))}serviceInfo(){return this.store.dispatch(new j.Fk(G.m6.GET_SERVICE_INFO)),this.swapUrl=Ai.T+Ai.N.BOLTZ_API+"/serviceInfo",this.httpClient.get(this.swapUrl).pipe((0,k.R)(this.unSubs[1]),(0,L.U)(t=>(this.store.dispatch(new j.Iv(G.m6.GET_SERVICE_INFO)),t)),(0,Ci.K)(t=>this.handleErrorWithAlert(G.m6.GET_SERVICE_INFO,this.swapUrl,t)))}swapOut(t,e){const i={amount:t,address:e};return this.swapUrl=Ai.T+Ai.N.BOLTZ_API+"/createreverseswap",this.httpClient.post(this.swapUrl,i).pipe((0,Ci.K)(t=>this.handleErrorWithoutAlert("Swap Out for Address: "+e,G.m6.NO_SPINNER,t)))}swapIn(t){const e={amount:t};return this.swapUrl=Ai.T+Ai.N.BOLTZ_API+"/createswap",this.httpClient.post(this.swapUrl,e).pipe((0,Ci.K)(e=>this.handleErrorWithoutAlert("Swap In for Amount: "+t,G.m6.NO_SPINNER,e)))}handleErrorWithoutAlert(t,e,i){let n="";return this.logger.error("ERROR IN: "+t+"\n"+JSON.stringify(i)),this.store.dispatch(new j.Iv(e)),401===i.status?(n="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch(new j.RD)):503===i.status?(n="Unable to Connect to Boltz Server.",this.store.dispatch(new j.wu({data:{type:"ERROR",alertTitle:"Boltz Not Connected",message:{code:i.status,message:"Unable to Connect to Boltz Server",URL:t},component:Si.H}}))):n=this.commonService.extractErrorMessage(i),(0,xi._)(()=>new Error(n))}handleErrorWithAlert(t,e,i){let n="";return 401===i.status&&(this.logger.info("Redirecting to Login"),this.store.dispatch(new j.RD)),this.logger.error(i),this.store.dispatch(new j.Iv(t)),401===i.status?(n="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch(new j.RD)):503===i.status?(n="Unable to Connect to Boltz Server.",this.store.dispatch(new j.wu({data:{type:"ERROR",alertTitle:"Boltz Not Connected",message:{code:i.status,message:"Unable to Connect to Boltz Server",URL:e},component:Si.H}}))):(n=this.commonService.extractErrorMessage(i),this.store.dispatch(new j.wu({data:{type:G.n_.ERROR,alertTitle:"ERROR",message:{code:i.error&&i.error.error&&i.error.error.code?i.error.error.code:i.error&&i.error.code?i.error.code:i.code?i.code:i.status,message:n,URL:e},component:Si.H}}))),(0,xi._)(()=>new Error(n))}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(o.eN),r.LFG(V.mQ),r.LFG(a.yh),r.LFG(le.v))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})();var ki=i(5001);let Ti=(()=>{class t{constructor(){this.serviceInfo={},this.direction=G.hc.SWAP_OUT,this.swapTypeEnum=G.hc}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=r.Xpm({type:t,selectors:[["rtl-boltz-service-info"]],inputs:{serviceInfo:"serviceInfo",direction:"direction"},decls:33,vars:13,consts:[["fxFlex","100",1,"flat-expansion-panel","mb-1",3,"expanded"],["fxLayoutAlign","start center","fxFlex","100"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"w-100","my-1"]],template:function(t,e){1&t&&(r.TgZ(0,"mat-expansion-panel",0),r.TgZ(1,"mat-expansion-panel-header"),r.TgZ(2,"mat-panel-title"),r.TgZ(3,"span",1),r._uU(4,"Service Information"),r.qZA(),r.qZA(),r.qZA(),r.TgZ(5,"div",2),r.TgZ(6,"div",3),r.TgZ(7,"div",4),r.TgZ(8,"h4",5),r._uU(9,"Minimum Amount (Sats)"),r.qZA(),r.TgZ(10,"span",6),r._uU(11),r.ALo(12,"number"),r.qZA(),r.qZA(),r.TgZ(13,"div",4),r.TgZ(14,"h4",5),r._uU(15,"Maximum Amount (Sats)"),r.qZA(),r.TgZ(16,"span",6),r._uU(17),r.ALo(18,"number"),r.qZA(),r.qZA(),r.qZA(),r._UZ(19,"mat-divider",7),r.TgZ(20,"div",3),r.TgZ(21,"div",4),r.TgZ(22,"h4",5),r._uU(23,"Fee Percentage"),r.qZA(),r.TgZ(24,"span",6),r._uU(25),r.ALo(26,"number"),r.qZA(),r.qZA(),r.TgZ(27,"div",4),r.TgZ(28,"h4",5),r._uU(29,"Miner Fee (Sats)"),r.qZA(),r.TgZ(30,"span",6),r._uU(31),r.ALo(32,"number"),r.qZA(),r.qZA(),r.qZA(),r.qZA(),r.qZA()),2&t&&(r.Q6J("expanded",!0),r.xp6(11),r.Oqu(r.lcZ(12,5,null==e.serviceInfo||null==e.serviceInfo.limits?null:e.serviceInfo.limits.minimal)),r.xp6(6),r.Oqu(r.lcZ(18,7,null==e.serviceInfo||null==e.serviceInfo.limits?null:e.serviceInfo.limits.maximal)),r.xp6(8),r.Oqu(r.lcZ(26,9,null==e.serviceInfo||null==e.serviceInfo.fees?null:e.serviceInfo.fees.percentage)),r.xp6(6),r.Oqu(r.lcZ(32,11,e.direction===e.swapTypeEnum.SWAP_OUT?null==e.serviceInfo||null==e.serviceInfo.fees||null==e.serviceInfo.fees.miner?null:e.serviceInfo.fees.miner.reverse:null==e.serviceInfo||null==e.serviceInfo.fees||null==e.serviceInfo.fees.miner?null:e.serviceInfo.fees.miner.normal)))},directives:[ki.ib,P.yH,ki.yz,ki.yK,P.Wh,P.xw,Ot.d],pipes:[U.JJ],styles:[""]}),t})();var Mi=i(3691);function Li(t,e){1&t&&r.GkF(0)}function Ii(t,e){if(1&t&&(r.TgZ(0,"div",4),r.TgZ(1,"span",5),r._uU(2),r.qZA(),r.qZA()),2&t){const t=r.oxw();r.xp6(2),r.Oqu(null!=t.swapStatus&&t.swapStatus.error?null==t.swapStatus?null:t.swapStatus.error:"Unknown Error.")}}function Oi(t,e){if(1&t&&(r.TgZ(0,"div",4),r.TgZ(1,"div",6),r.TgZ(2,"div",7),r.TgZ(3,"h4",8),r._uU(4,"ID"),r.qZA(),r.TgZ(5,"span",5),r._uU(6),r.qZA(),r.qZA(),r.TgZ(7,"div",7),r.TgZ(8,"h4",8),r._uU(9,"Routing Fee (mSats)"),r.qZA(),r.TgZ(10,"span",5),r._uU(11),r.ALo(12,"number"),r.qZA(),r.qZA(),r.qZA(),r._UZ(13,"mat-divider",9),r.TgZ(14,"div",6),r.TgZ(15,"div",7),r.TgZ(16,"h4",8),r._uU(17,"Claim Transaction ID"),r.qZA(),r.TgZ(18,"span",5),r._uU(19),r.qZA(),r.qZA(),r.TgZ(20,"div",7),r.TgZ(21,"h4",8),r._uU(22,"Lockup Address"),r.qZA(),r.TgZ(23,"span",5),r._uU(24),r.qZA(),r.qZA(),r.qZA(),r.qZA()),2&t){const t=r.oxw();r.xp6(6),r.Oqu(null==t.swapStatus?null:t.swapStatus.id),r.xp6(5),r.Oqu(r.lcZ(12,4,null==t.swapStatus?null:t.swapStatus.routingFeeMilliSat)),r.xp6(8),r.Oqu(null==t.swapStatus?null:t.swapStatus.claimTransactionId),r.xp6(5),r.Oqu(null==t.swapStatus?null:t.swapStatus.lockupAddress)}}function Di(t,e){if(1&t&&(r.TgZ(0,"div",4),r.TgZ(1,"div",6),r.TgZ(2,"div",7),r.TgZ(3,"h4",8),r._uU(4,"ID"),r.qZA(),r.TgZ(5,"span",5),r._uU(6),r.qZA(),r.qZA(),r.TgZ(7,"div",7),r.TgZ(8,"h4",8),r._uU(9,"Expected Amount (Sats)"),r.qZA(),r.TgZ(10,"span",5),r._uU(11),r.ALo(12,"number"),r.qZA(),r.qZA(),r.qZA(),r._UZ(13,"mat-divider",9),r.TgZ(14,"div",6),r.TgZ(15,"div",10),r.TgZ(16,"h4",8),r._uU(17,"Address"),r.qZA(),r.TgZ(18,"span",5),r._uU(19),r.qZA(),r.qZA(),r.qZA(),r._UZ(20,"mat-divider",9),r.TgZ(21,"div",6),r.TgZ(22,"div",10),r.TgZ(23,"h4",8),r._uU(24,"BIP 21"),r.qZA(),r.TgZ(25,"span",5),r._uU(26),r.qZA(),r.qZA(),r.qZA(),r.qZA()),2&t){const t=r.oxw();r.xp6(6),r.Oqu(null==t.swapStatus?null:t.swapStatus.id),r.xp6(5),r.Oqu(r.lcZ(12,4,null==t.swapStatus?null:t.swapStatus.expectedAmount)),r.xp6(8),r.Oqu(null==t.swapStatus?null:t.swapStatus.address),r.xp6(7),r.Oqu(null==t.swapStatus?null:t.swapStatus.bip21)}}let Ri=(()=>{class t{constructor(){this.swapStatus=null,this.direction=G.hc.SWAP_OUT,this.swapTypeEnum=G.hc}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=r.Xpm({type:t,selectors:[["rtl-boltz-swap-status"]],inputs:{swapStatus:"swapStatus",direction:"direction"},decls:7,vars:1,consts:[[4,"ngTemplateOutlet"],["swapFailedBlock",""],["swapOutBlock",""],["swapInBlock",""],["fxLayout","column"],[1,"foreground-secondary-text"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"w-100","my-1"],["fxFlex","100"]],template:function(t,e){if(1&t&&(r.YNc(0,Li,1,0,"ng-container",0),r.YNc(1,Ii,3,1,"ng-template",null,1,r.W1O),r.YNc(3,Oi,25,6,"ng-template",null,2,r.W1O),r.YNc(5,Di,27,6,"ng-template",null,3,r.W1O)),2&t){const t=r.MAs(2),i=r.MAs(4),n=r.MAs(6);r.Q6J("ngTemplateOutlet",null!=e.swapStatus&&e.swapStatus.error?t:e.direction===e.swapTypeEnum.SWAP_OUT?i:n)}},directives:[U.tP,P.xw,P.yH,P.Wh,Ot.d],pipes:[U.JJ],styles:[""]}),t})();var Ni=i(194);function Pi(t,e){1&t&&r.GkF(0)}const Fi=function(t,e){return{"small-svg":t,"large-svg":e}};function Zi(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div",6),r.NdJ("swipe",function(e){return r.CHM(t),r.oxw().onSwipe(e)}),r.O4$(),r.TgZ(1,"svg",7),r._UZ(2,"path",8),r._UZ(3,"path",9),r._UZ(4,"path",10),r._UZ(5,"path",11),r._UZ(6,"path",12),r._UZ(7,"path",13),r._UZ(8,"path",14),r._UZ(9,"path",15),r._UZ(10,"path",16),r._UZ(11,"path",17),r.qZA(),r.kcU(),r.TgZ(12,"div",18),r.TgZ(13,"mat-card-title"),r._uU(14,"Boltz Reverse Submarine Swap explained."),r.qZA(),r.qZA(),r.TgZ(15,"div",19),r.TgZ(16,"mat-card-subtitle",20),r._uU(17," Boltz is a privacy-first account free exchange and a Lightning Service Provider. By doing a Reverse Submarine Swap on Boltz, you can swap your Lightning Bitcoin for on-chain Bitcoin. "),r.qZA(),r.qZA(),r.qZA()}if(2&t){const t=r.oxw();r.Q6J("@sliderAnimation",t.animationDirection),r.xp6(1),r.Q6J("ngClass",r.WLB(2,Fi,t.screenSize===t.screenSizeEnum.XS,t.screenSize!==t.screenSizeEnum.XS))}}function Bi(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div",6),r.NdJ("swipe",function(e){return r.CHM(t),r.oxw().onSwipe(e)}),r.O4$(),r.TgZ(1,"svg",21),r.TgZ(2,"g",22),r._UZ(3,"path",23),r._UZ(4,"path",24),r._UZ(5,"path",25),r._UZ(6,"path",26),r._UZ(7,"path",27),r._UZ(8,"path",28),r.qZA(),r._UZ(9,"path",29),r.TgZ(10,"defs"),r.TgZ(11,"clipPath",30),r._UZ(12,"rect",31),r.qZA(),r.qZA(),r.qZA(),r.kcU(),r.TgZ(13,"div",18),r.TgZ(14,"mat-card-title"),r._uU(15,"Step 1: Deciding to Reverse Submarine Swap"),r.qZA(),r.qZA(),r.TgZ(16,"div",19),r.TgZ(17,"mat-card-subtitle",20),r._uU(18," You have one or more channels that are running low on inbound capacity or you want to move some of your Lightning Bitcoin to your onchain wallet. "),r.qZA(),r.qZA(),r.qZA()}if(2&t){const t=r.oxw();r.Q6J("@sliderAnimation",t.animationDirection),r.xp6(1),r.Q6J("ngClass",r.WLB(2,Fi,t.screenSize===t.screenSizeEnum.XS,t.screenSize!==t.screenSizeEnum.XS))}}function Ui(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div",6),r.NdJ("swipe",function(e){return r.CHM(t),r.oxw().onSwipe(e)}),r.O4$(),r.TgZ(1,"svg",32),r._UZ(2,"path",33),r._UZ(3,"path",34),r._UZ(4,"path",35),r._UZ(5,"path",36),r._UZ(6,"path",37),r._UZ(7,"circle",38),r._UZ(8,"rect",39),r.TgZ(9,"defs"),r.TgZ(10,"pattern",40),r._UZ(11,"use",41),r.qZA(),r._UZ(12,"image",42),r.qZA(),r.qZA(),r.kcU(),r.TgZ(13,"div",18),r.TgZ(14,"mat-card-title"),r._uU(15,"Step 2: Paying the Lightning Invoice"),r.qZA(),r.qZA(),r.TgZ(16,"div",19),r.TgZ(17,"mat-card-subtitle",20),r._uU(18," Your Boltz client generates a secret which is sent to Boltz. In return Boltz sends a Lightning invoice based on that secret. Your Lightning node pays that invoice which moves some of your local balance to the other side of the channel. "),r.qZA(),r.qZA(),r.qZA()}if(2&t){const t=r.oxw();r.Q6J("@sliderAnimation",t.animationDirection),r.xp6(1),r.Q6J("ngClass",r.WLB(2,Fi,t.screenSize===t.screenSizeEnum.XS,t.screenSize!==t.screenSizeEnum.XS))}}function qi(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div",6),r.NdJ("swipe",function(e){return r.CHM(t),r.oxw().onSwipe(e)}),r.O4$(),r.TgZ(1,"svg",43),r.TgZ(2,"g",22),r._UZ(3,"path",44),r._UZ(4,"path",45),r._UZ(5,"path",46),r._UZ(6,"path",47),r._UZ(7,"path",48),r.qZA(),r.TgZ(8,"defs"),r.TgZ(9,"clipPath",30),r._UZ(10,"rect",49),r.qZA(),r.qZA(),r.qZA(),r.kcU(),r.TgZ(11,"div",18),r.TgZ(12,"mat-card-title"),r._uU(13,"Step 3: Receiving the funds on-chain"),r.qZA(),r.qZA(),r.TgZ(14,"div",19),r.TgZ(15,"mat-card-subtitle",20),r._uU(16," In return for paying the invoice, Boltz locks on-chain BTC. Your node claims that onchain BTC to your wallet and by doing that, reveals the secret. With that secret Boltz can settle the Lightning invoice paid by your node. "),r.qZA(),r.qZA(),r.qZA()}if(2&t){const t=r.oxw();r.Q6J("@sliderAnimation",t.animationDirection),r.xp6(1),r.Q6J("ngClass",r.WLB(2,Fi,t.screenSize===t.screenSizeEnum.XS,t.screenSize!==t.screenSizeEnum.XS))}}function zi(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div",6),r.NdJ("swipe",function(e){return r.CHM(t),r.oxw().onSwipe(e)}),r.O4$(),r.TgZ(1,"svg",50),r._UZ(2,"path",51),r._UZ(3,"path",52),r._UZ(4,"path",53),r._UZ(5,"path",54),r._UZ(6,"path",55),r.qZA(),r.kcU(),r.TgZ(7,"div",18),r.TgZ(8,"mat-card-title"),r._uU(9,"Done!"),r.qZA(),r.qZA(),r.TgZ(10,"div",19),r.TgZ(11,"mat-card-subtitle",20),r._uU(12," You have now successfully received your funds in your on-chain wallet and also spent your local balance to increase the inbound capacity of your node - all in a non-custodial manner. "),r.qZA(),r.qZA(),r.qZA()}if(2&t){const t=r.oxw();r.Q6J("@sliderAnimation",t.animationDirection),r.xp6(1),r.Q6J("ngClass",r.WLB(2,Fi,t.screenSize===t.screenSizeEnum.XS,t.screenSize!==t.screenSizeEnum.XS))}}let Hi=(()=>{class t{constructor(t){this.commonService=t,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new r.vpe,this.screenSize="",this.screenSizeEnum=G.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(t){2===t.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===t.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(le.v))},t.\u0275cmp=r.Xpm({type:t,selectors:[["rtl-boltz-swapout-info-graphics"]],inputs:{animationDirection:"animationDirection",stepNumber:"stepNumber"},outputs:{stepNumberChange:"stepNumberChange"},decls:11,vars:1,consts:[[4,"ngTemplateOutlet"],["swapStepBlock1",""],["swapStepBlock2",""],["swapStepBlock3",""],["swapStepBlock4",""],["swapStepBlock5",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between center",3,"swipe"],["fxFlex","30","width","368","height","368","viewBox","0 0 368 368","fill","none","xmlns","http://www.w3.org/2000/svg",3,"ngClass"],["d","M306.667 153.333H276L260.667 184L233.797 153.763C229.441 148.861 224.595 144.24 218.529 141.746C212.54 139.284 206.099 138 199.561 138H92C41.19 138 1.52588e-05 179.19 1.52588e-05 230C1.52588e-05 280.81 41.19 322 92 322H199.561C206.099 322 212.54 320.715 218.529 318.254C224.595 315.761 229.441 311.139 233.797 306.237L260.667 276L276 306.667H306.667L291.333 260.667L306.667 230L291.333 199.333L306.667 153.333Z",1,"fill-color-0"],["d","M337.333 122.667H306.667L291.333 153.333L264.464 123.097C260.107 118.194 255.261 113.573 249.195 111.079C243.206 108.618 236.766 107.333 230.228 107.333H122.667C71.8566 107.333 30.6667 148.523 30.6667 199.333C30.6667 250.143 71.8566 291.333 122.667 291.333H230.228C236.766 291.333 243.206 290.048 249.195 287.587C255.261 285.094 260.107 280.473 264.464 275.571L291.333 245.333L306.667 276H337.333L322 230L337.333 199.333L322 168.667L337.333 122.667Z",1,"stroke-color-thicker"],["d","M214.667 245.333C206.198 245.333 199.333 238.468 199.333 230C199.333 221.532 206.198 214.667 214.667 214.667C223.135 214.667 230 221.532 230 230C230 238.468 223.135 245.333 214.667 245.333Z",1,"fill-color-15"],["d","M245.333 214.667C236.865 214.667 230 207.802 230 199.333C230 190.865 236.865 184 245.333 184C253.802 184 260.667 190.865 260.667 199.333C260.667 207.802 253.802 214.667 245.333 214.667Z",1,"stroke-color-thicker"],["d","M138 245.333C129.532 245.333 122.667 238.468 122.667 230C122.667 221.532 129.532 214.667 138 214.667C146.468 214.667 153.333 221.532 153.333 230C153.333 238.468 146.468 245.333 138 245.333Z",1,"fill-color-15"],["d","M168.667 214.667C160.198 214.667 153.333 207.802 153.333 199.333C153.333 190.865 160.198 184 168.667 184C177.135 184 184 190.865 184 199.333C184 207.802 177.135 214.667 168.667 214.667Z",1,"stroke-color-thicker"],["d","M61.3334 245.333C52.865 245.333 46 238.468 46 230C46 221.532 52.865 214.667 61.3334 214.667C69.8017 214.667 76.6667 221.532 76.6667 230C76.6667 238.468 69.8017 245.333 61.3334 245.333Z",1,"fill-color-15"],["d","M92 214.667C83.5316 214.667 76.6666 207.802 76.6666 199.333C76.6666 190.865 83.5316 184 92 184C100.468 184 107.333 190.865 107.333 199.333C107.333 207.802 100.468 214.667 92 214.667Z",1,"stroke-color-thicker"],["d","M239.077 111C241.796 111 244 113.204 244 115.923V126.077C244 128.796 241.796 131 239.077 131H191.923C189.204 131 187 128.796 187 126.077V115.923C187 113.204 189.204 111 191.923 111H239.077Z",1,"fill-color-15"],["d","M184 76.6666V107.333H122.667V76.6666H184Z",1,"stroke-color-thicker"],["fxFlex","20","fxLayoutAlign","center end"],["fxFlex","40"],[1,"font-size-120"],["fxFlex","30","width","383","height","279","viewBox","0 0 383 279","fill","none","xmlns","http://www.w3.org/2000/svg",3,"ngClass"],["clip-path","url(#clip0)"],["d","M267.882 220.417V104.583C267.882 98.2125 263.809 93 258.832 93H114.029C109.051 93 104.978 98.2125 104.978 104.583V220.417C104.978 226.787 109.051 232 114.029 232H258.832C263.809 232 267.882 226.787 267.882 220.417Z",1,"fill-color-0"],["d","M357.75 197.625V81.375C357.75 74.9812 352.069 69.75 345.125 69.75H143.125C136.181 69.75 130.5 74.9812 130.5 81.375V197.625C130.5 204.019 136.181 209.25 143.125 209.25H345.125C352.069 209.25 357.75 204.019 357.75 197.625Z",1,"stroke-color-thin"],["d","M86.3125 186H105.25V139.5H86.3125C82.7775 139.5 80 142.057 80 145.312V180.188C80 183.443 82.7775 186 86.3125 186Z",1,"fill-color-15"],["d","M111.562 162.75H130.5V116.25H111.562C108.027 116.25 105.25 118.807 105.25 122.062V156.938C105.25 160.193 108.027 162.75 111.562 162.75Z",1,"stroke-color-thin"],["d","M205.979 116V150.875",1,"stroke-color-thin"],["d","M205.979 185.634V185.749",1,"stroke-color-thin"],["d","M2.44963 159.45C0.488815 161.41 0.488815 164.59 2.44963 166.55L34.403 198.504C36.3638 200.465 39.5429 200.465 41.5037 198.504C43.4645 196.543 43.4645 193.364 41.5037 191.403L13.1007 163L41.5037 134.597C43.4645 132.636 43.4645 129.457 41.5037 127.496C39.5429 125.535 36.3638 125.535 34.403 127.496L2.44963 159.45ZM65 157.979H6V168.021H65V157.979Z",1,"fill-color-15"],["id","clip0"],["width","303","height","279","transform","matrix(-1 0 0 1 383 0)",1,"fill-color-30"],["fxFlex","30","width","454","height","243","viewBox","0 0 454 243","fill","none","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["d","M141.75 172.125C178.098 172.125 207.562 142.66 207.562 106.312C207.562 69.9653 178.098 40.5 141.75 40.5C105.403 40.5 75.9375 69.9653 75.9375 106.312C75.9375 142.66 105.403 172.125 141.75 172.125Z",1,"fill-color-0"],["d","M121.5 151.875C157.848 151.875 187.312 122.41 187.312 86.0625C187.312 49.7153 157.848 20.25 121.5 20.25C85.1528 20.25 55.6875 49.7153 55.6875 86.0625C55.6875 122.41 85.1528 151.875 121.5 151.875Z",1,"stroke-color-thiner"],["d","M20.25 192.375H222.75",1,"stroke-color-thiner"],["d","M192.375 222.75L222.75 192.375L192.375 162",1,"stroke-color-thiner"],["d","M138.762 67C136.099 73.913 133.436 81.3578 130.24 88.8025C130.24 88.8025 130.24 89.8661 131.305 89.8661H153.143C153.143 89.8661 153.143 90.3979 153.676 90.9296L121.718 126.558C121.185 126.026 121.185 125.495 121.185 124.963L132.371 101.033V98.9062H110V96.7791L137.164 67H138.762Z",1,"fill-color-15"],["cx","371.815","cy","95.815","r","81.815",1,"fill-color-boltz-bk"],["x","317","y","81","width","110.745","height","30.1472","fill","url(#pattern0)"],["id","pattern0","patternContentUnits","objectBoundingBox","width","1","height","1"],[0,"xlink","href","#image0","transform","scale(0.00185185 0.00680272)"],["id","image0","width","540","height","147",0,"xlink","href","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAACTCAYAAADFh8BYAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAACHKADAAQAAAABAAAAkwAAAABS37hiAABAAElEQVR4Aex9CaAkVXV2VfebfWWG1QWQRYddNgmCO6CiIGrAKC6gUWOIUROz/CYm+OdP/P9f82viEmNUcCFRUVFQlMUIgpIoCgwO2ww7IjLMMMub5b3XXfWf75z7Vd2urn69vK5+/d7Ufa/qnDr33HPPdm/drqquDoNdvMTxhSPBE5vODuL6BUEcHiDumBcE8Y+DYORT4V4fu3YXd09pfumB0gOlB0oPlB7oiwfCvkiZoULiDe9eGtSCH8RxfCJMCOUvlj/AIAyjoBL/abjHJz4+Q80r1S49UHqg9EDpgdIDQ+OBXXbBEW/8i2XB+ParZYHxHDohlrAAB0QJw2AiCOccGu75sXVGKfelB0oPlB4oPVB6oPRALx6o9NJopreJ469Xg4ltX8NiA8sLLDD8xQYWHbrwiOM5QVC7YKbbW+pfeqD0QOmB0gOlB6bbAyPTrcC09P/bH39EbqO8NF1mRKoGbqbYAgRQCkAU47mOspQeKD1QeqD0QOmB0gNT8MAud4UjfvyCt8Rx9D5dbMg9kwT6OK95xHrtY/EU/Fs2LT1QeqD0QOmB0gOlB8QDu9SCI37sghPievyvSeR1QSFHgD7uGPRmSxj8POEvkdIDpQdKD5QeKD1QeqAnD+wyt1TiJ9731Hhi52WytJinFzDy3OUueOitFNTjAkcU3ZDHWtJKD5QeKD3QLw/Ej55/TL0e7tcveamcmqCY5gGDoFqdf0P4lM8+oQflrvTAgD2wSyw45F0b84PHHr9MntvYJ5RbJ/aYqHgat1FwZUNvp7gHRYWEdQdKWAk3BXvt+UM7KvelB0oPlB4oxgMT9VjeAxS9FXMTv56vPeFDDz8IAW2cspLpixdos/XWGIsNm9XiaOeL5eBHspWl9MDAPbBLLDii3zz2OfHs8fCuLDpSJxN3kDUpjP+9Gl64M21QYqUHSg+UHijAA3Gkc5N+IBIcEAVzkbfeUJq/c2z8zJSzAJEljAgJQ85qfusSLz0wWA/M+gVH/Ngf/GW9Hp8Lt+av/jmkwUHcBmclnnMRqGUpPVB6oPRAoR6QVYVe2ZDVgS06bA5Cn/xcZP1z+eEWJBl+tk0WLNl6d6WjUFtK4aUHWnhgVi844t+883T5sPD3/BQAH/i4fFvFDW77WqwNVqMJfke4zydvbuG3klx6oPRA6YH+eUDWF7z6Sgjh7RYQ4PH5iRNm24O/LKUHpssDs/ZbKvGj71glnxX+I4qj1EZ+VAD0ced9DlLAOIi+MF1BKfstPVB6YNfzgLtmwactxAG4HYIrHQZ9HDRsfhvDcaUkLfhQhQJIPK0tsdIDg/VAejIebL+F9hY/+d7lcRxeHkX1pRh8HGxYRigO6AYrIQcpoFwFqVeqI5cUqmQpvPRA6YHSA4kHbE7CIbC0ELcFhtFJw9xmuH5I8hYnkGKbzoCC68yWii2x0gPT4IFZd0sFry2v/+bar8lgOxj+bBi8GIMcf6jDg1T45wNVimuj74d7fvoxwcrSgwfih9940EQU/lleU/mcJS9/CQNAFOKARRR8vsOq2j7npThX2j3rE8by6H+4Qz447qxUgh0y4T8hv/b368pI8Os54fyHy68eFhHNXVAmhok3ZyV4h8MFCxF7ds3GmwnbBf1YmjwUHph1C47oNz/8R3l3xmnwbu5YFWIyVjkGCW1kBtVK9aKhiM4MVaIWB/vIQu8deerb3MlLwRKjzHM0CEXD/CoxsUkziVqDWNYBorAtubP3sPP5PX2kYSiyYiegiZ/6JD3JzTcwY2IP6kFcC4PxeFsw/uCbHpeF7K2ShLdVK+F/VaPFPwr3+5cnG5QvD0oP0AO6IraPR0i9dErKyX+Xm2iKFv7XaN1nKMlhE4z819wELEvpgWn2wKxacNQeeft5UVR7j/68vDhWx5gMPH+sNQw7DEoQ3ODEya8ShhuCffb57jTHZeZ37xYAGRc32WXzoUyaLjCMD6Gd8DFnWpAYLtarQFfXJFwI2t7BpN7jt/7THMntT/iT/og7GWqf4C6FbLGCjuJoTyGeJvTT5FtSQT3cUh974I03i6Dvz60El4RP/8q6RJ8SKT2AS26SLMwzwtx8FFbWq+NcLuY5MTf/8xhLWumBAXhg1iw44kfeeWI9qH/GX+0nZwF3NsAgBcrBqrjsXLW6Wz5oXCLv3hgfgO/LLsQDmBAREYNwSWOU9EhY0phlPtGhrfxxkWnS/JhaLSnMD/Ij+CobDbUIopc3SGjUh32lSwxKZvtGflLFzKpwniD9nTBWDy4ce+Dcm8KwctGcfatfDsOLy3e90FG7KIwj3NxDzjXmjx4JGRAlm3/ZfPYl+C2yWWp15b70wGA9wFvZg+21z73FG37/aVFY+5YMxnkNA4srf0DZ9KTmoL/yx2DmgB4JRi7us3q7pDhMjPiz5YBB4IgDIXAthDggDigb/ggVBwtorUqmvbKRJgdsC6h/rg/kAxc9hGgLHkIfV6LsmDfMIfAABzQ8hbRbfRLHJ8pDzZ8de3Di/rEHz/3zeP1bl1BmCXdhDzBXAV1uEiKTUAhzvZRpbw388YK3jpal9MD0eGDGLzji+H0Lajvib0dRvLcORR1wGGCy6XV6B5Nr9jxFpAPXTgloE94ePvUzt0xPKGZnrzx5Jyd0cb/S3BlaoyE7d6gIaQ1n8xbuwW0wFP32keISTQc1B6xW9z3tMhO46iY06qtZg/7dhj6As7S3P95beP7PxLaxdeMPveE8wbULti/hruEB5hMSSxMgIYj9Ssj3Q+H5n99tSS090JMHZvyCo/7o5s/LGeZYWN80ucuJR2k4AelJCEx2gsrjr5Tv3oBbBlqyMcOxv8mBi6Gcxj2cPFCWMlRxf2HpP6AhbdG+adOn7IQO6OPk9WUIrn05SB182KSPKtV6R93lfTF7RvX4op0PnnvD2P2vX9W6RVkzGz0gjx5rbvm5pLnh5Txy16cxdwjVL8hXFEBsyGNC4OUFDvNPuZ8WD8zoZzgmHnnrB+Iofr0MIy0YajIkGz4QuOGn9awDRPH55WnuWmVk7r9rRbnrgwfMx00+F7LSGDT0hInQFcaLEEHSJ+4dgXRChFLnWIqgLELI9XF21ClkW8K28hJFtIeu7Y/jk8Tmn8szHu+ct/8lZT52GqdZwse8Jpz2/J9mv8oPb86dePjeI+WL7cfJkuy4MIqPkxl+N3m4/6Nz97vkE9OsXtl9lx6YsQuO2iPnv1Im878zeznJY5gCt+GKlT+/Fgk+4vpVMRCkJAM7Dr4b7v2Zx41a7qfqAX7q0ofaEAfGROLDB93QB/FW9RpOMDLEwLPFq2snrzFDbC2iNCdD20+ib7brqcrL01ceWl0s32u5ZOcDb3juvP2e+cdheGF6WS6rQHk8qzxgC1R9ysfsYm4T5lnr1eXlE2nWNJnx8iRNKw3vUBp/5LLDwnrluCiMj5c55LixB+46UsybS8XMVHgpWEZaCWeOB2bkgiP+zfmH1iaiS+TUJbeEkIJuEOklcRxaWloYUtzud+KyOOfv9HQRVoOLjb/c98MDnNZs0YcTu8XBru5iIWi9NF0BEDJpnejB6HtRds1SiuVIvjTqSZjVF6mlujsGAPZJiWyLY+KEWXld2R9HF4w/ePfKOH7Hm8PwsxPsr4Sz0wPMe8JOrGQuptlOjBBSfLwTqcXzyJWLyvgDdz8zrITHy92k4+phdNzYg986WlRdEMn7bDCFcwwRFq9V2UPRHphxC45407t2m9i6/TvimKXpQLIB5c5p3hV0d889Sd2sO62dnATWV58y58psbXncuwe4wMDKwk7Y3rSRg5JkJ2jGLad/O2PLbORaSNBj0oSd32jlo5f8dAeIgogDs8gDEcxrn70KppO/1AOiaI6JAOZa0tbTJ6GhAdqyDxyjONV9lKSs/XL8e2MPbFkon/5eE4bn1LV9uZuVHtC8lFxhDuYayVz18q2b/J+uRzh2PvSWA8OgJrdEouPltTTHyWLjGBlTS+SWuJrJz4jZ/G/ygbPfv0rdxFMShtYDM2rBgUtuEw999+syIg+CR/VkILM3TwbZkws4rPBkYZ+s9QQgFRzYMtC/Un6CdK7qC5BpLT2DGu7O0I0RyelM2ml8kvYIlGyuIdGkWhClJYRG/uzr67M5ArHaXmBPhSsPQhUmUhN9HD4F+yW/zxy7/5v/LPpd0JOOZaPh94DkB/OeUJXOJChzNUkvQZSWEKSVEszkbP4PYsKXH85cOD6++WVRGB4X1oPj5LcFjotrO3eDKSy8xszjBIrundif8JfIjPLAIPKvbw6pP/Ldj8kq4ZTk7KODUXbM5MwtFczx/EBAJTSZeeDgSDjn4gypPJyqB5KYiCDgLSbEpm7YjhCNedkCopSOyZktudx0BAY8+QTo+nbV+DYAlDEIGbgCYTQcEfdvu7EN6pPJvJU91IsQfMBb8UOmX9iO0NkvVv7hzvted9f8A75WPijn+2u24Yw7YZ/zvxYWf41jorbtMHmP2TeR+Dp00+GVjoXEvkwASSdsYX8QcUBl2peHQ+2BGfO12PGH3vzWehS/GycCLBq4cCCEl4m3quc5CNDOSxGucvwyfPrnVg91lGagclgG4E+CkkDgWgjlQHkcNNzxoy02DZqDPs56E6h7Q70+0I+e8B3kHEWYtmqJNenXZI/IVnvQb6q7YVanMsCjfGADr5Um+Z4MyGu0P/jo2MPnHsG2JZw9HojwtVjEe9L4azKnOaH88EGaT0luMd/y8r9wt9WcFaKX6NG//Pftb3mNpHDryg5698CMWHBM/Pr858oPav0LzGw8V3Cg2UA1N5CGcWk4IDYsRAi5OJGnky7q3X1lyzwP4DMU4uSmhwRaNGxatUlS4qECDOby64QlTG4C1biB5jY0T2Kpshp3eGU0ir46Wl8f7XDQrCaBoJh2BrE3nVL90MR01saurcmCPN8GH0ddXn8mK5Xvy1B+z36xc259fOJieeBuRl2ZNE+V+8k8gIk4N1+8+GMMTDX/J9Ohn3WwJdceN8I4YrrJf9/+crnRz2gNTtbQLzjiX5//9Hhi4luRTLZ6QpBBx2RFAioOqDgOdZpWD/JEBJi3SbKPzwmD/1Dmctc3D/hnQ5tQbPLRCUhiQagxwQSE+Lg/rRMc0MeTernKARzP3yTP4IDmYgwjgLOAB4X8yBejudzR2pRfDyfZUTb7Ux2dTdaT6U0RPs3nZXu1qyv7g2N2PHjHeyi/hLPDAziBal57UPMF+epozHvC3vJ/sP7qf/7b+B/6E9dg3TxjehvquMUPv2/BRG3i23I62CvXo9lslsGpoxNQN7TyTybErV72V4RP+9KGXNklsWcP1OQSR3JCdQsBHkMo8NaFdRYjC5/gyaHheqJ2sQWeFuLWwPoSDqeHTt6CA/o46yFK21hzE0uROMrknPIKje3bQYjQNkByCztzCuih7JJDQerBX8aPn704t3lJnOEe0ICLDUnADU8OBdF/GwEwtpv8B3/hRb7A3WocoO8p57/YX17hKDyKhXQw1AuOiejxi+TKxjE6wjCs9ESVnjyyyctEbpXs/gnG4RcV4tVSqJ2Yxcl6gcFB4NkNk6fyCNSJFDHGv1sgZGOMuKEAGm6LhzRHUIscgQyTTYh+iLNeuYWPRXWRA+qJZ4asHZ4dElzqCPP6N6XQMYSYHELK9GFv9se7j28P/5g6l3CWeEBzFjvkGOc7w2mh5VySXkLuLv8pp3BYaP4H8sWXssxEDwxt3MYeOvev5Cvar8OAkvGnG3IYuMvlZOK3B0ndvXr9xoGFonlwWltX+9i8/Q66yvBy33cPuDO6LgLd5MlJ1IcaX/C6KPN2R6tbICpPeCkDehuNFkAWisls5udEnvZJXsBm/kb57AvQx61PdOv6BySPg2zjQ79P4J3aX69H7ymf5Ui8PgsQu6nSafyZQzCceWhOcPnXMv8H5KqC8x8P2ZZl5nlgKBcctYfeeKY8JCqvLc+u3u0k0fFg46ATmP2Th0W/LK+MLv47YjMvJ6ZVY06erWM8repJ540TumlD2tR168L+PcfuX3P61HssJQyTB7qI/zCp3TdddnX7++bIIRU0dAuOsQffclg9ir4it1L0AgUWCmkhDujjKUcDhlU2ilttN8Bg5ItWWe6L8ECrBUO7CaW5nlcSGPMshPbMBYTa8LT/ydsbv/H4uMnM9sV+CJs919x/qpNq2qRfu/rW+ssYOa9Zg5Iykz3QnD+t4285CmvTfGzffjDegR6+LuzVp/l463rKyY5FtijhTPLAUC044offtiKOJy6XRFyCMYRbJYSKi2cJ4WQ/YRVnkmNSx4YlC6F3f0W+3/Czeft9cQ1klKUID9S82152lQrxwWbPQxgELgFSGqCP8zkHcBgfsObSlAPCQlozd/cUpA8KoI8bVWsc6vTXI7PZ0s/wIuwXv7w8jt89L9WlxGa2B9KxMCz536s/kftF53+vupXtps8D/jcYp08L6Rn3o8cevPtSQQ7gkxZ6PpI6QijYiGOSt5dVo86ODOJYCR60AYAHjsKLQS5LgR5wgdJXoQjuXomiHfoxtEWIfa21F200+ljIMDM0yCKJnaAOs7dbLWRzBHXUAf0TB0RpV69M3i7LX6T9ouP8nQ/85kTp/jpPhRKdgR6I8JsiLue6Ub/b/A+C4u8i41cGMeRQisp/ueVuHZT7GeWBoVlwjD14z8fl5Uwv1kz1HvxMVw2WxHZCMB8Tb3VyyEYCfJUwHJtTCb6arSuP++0BmxCw5xpAe+A84aDWSVzc/NS0aGRb1ifChCAn97rE9F91cvMnoITZdQ6pjsYqQsyIirsVEfGkXtpCvkxwc+VHslbIBL+b4PuKxAPzPdZoII4gi9QEcQSt69F+7T+WMVMuONQVM3mHS81IiWy+MHcAtWQJyB1LIq3GMPAOHZ6OLydlAMASPGtP3/J/qK7ND8Cds6SLoVhw7Hjg9b8fx/ULbOZ3IwYObsrWyb0uF+2VgbCpvYxEuUnz7XC/f39yckll7VQ94J//fbw5qE0zqHRNmnFDF4ushxhhYuGB35qWHzSL7z977x1x/WR51Oj8MIjk1oZO+8mHVN9mH++z/dJf+Bz4pyyzxQONkx7znjAZCAlB7PZwveIhBF7xw1xIGjxEetHe8nPex/uV/2H5WypFh7AQ+dO+4Jh48PUny0Oin9Ixg8zEvJ1kKHGcgGSxoO9BkOndXQEBVR6c09OTMigGScZvNG8P3rBysUcp0cI84GZBhsMdWojkwIWIi0NCqOPjWfU4eQIOavLM6oDj8BmXPibgG9jG1r3u8CisfVqutjwvO8HryQC2FmC/SIUfn6mw3M1oD/hf8+w0/2FwNt/YlhB5x1+MHZSD5khHE0x45H0B+T8oW8p++uuBab0wFT/65n0narVvykQ9N1lkJIsNGMpZGpALC4NcUhAqt2uLWyfYdDg6qLLC8NF5+7/6GvCWpWAPmPvTyQaBYrAI81RoDLmETQgqCxDTaAqTSTVPzgBp8w762q/mH3AEbm18QtWznekNW6F/QfZLnu8Xx2fLa//LMis8gFxBAdRNdglszn+d64RBoRsrwJP2efmnHRS3m5DlxqT992H8F6d9KblID0zbgiN+9B0Lx8Z2fkeM25MG6kCRAw6eLAQfeXycfPqWfRlsgNhQCPUgir4UhufUFS93xXqAJ1hMfjrpYRK0iZGQcfMheDXGbA8tgQ95wTtdFh70rT+W50q+1qB/8fZXxu6L9hty95TqtfMAvpDncoUwyftJ8h8PKaMAYsOShBC4jjUHgQ+scPwWn/8DM6nsaOoemLZbKmM7N10st0OebXdQ0oGgg83ZZXUYTEawwSRjCAPIFR8njRBfodXB527ByAOjF7OuhAV7gJMbYsdJR9C8p9Z9TRB/a5LG2J8o8XQ6aob1KfUFixe9bcfW0ZPEjqepXQXbD1/Uw2CZ78OZiss31So7fr36KSPj8cpaVF1UqdQX1aPKokoYLZKoy53UyrZKpbItrkTbqlF129xKsN7d2pqpJjfozbwnTCo5loSQzX8dC0LnaGFbQJRs/QC+pOI6dhqZQqK4kfs1/stfUzF/zrT9tCw4xu4754PyyxRn5wyHBv9xnBGikgMrYfQI5CNUfncgC4+b5h9w6d1JuxIp1APJQpDxSeYf+RQmMeHzF+ADTn7irNeJCm3dhKVt8UlO40rhhZrSlfBw7y9v237vWR+V0+PHtSFVLMR+U60S1WfUD7lJ7MLxB1+zKqoFJ8s8cKRYcYDE/8Dt627ZXwI9b1xzIg7quBYZ1oMIb7FG/MMoqEd1OemGwURcDyaEvm3dq7ZLBt0nGXGfpMS91aB6SzCneuOC/S+9X1rMoIIRkI6FzvLfzGOK2ZGe4QW1AaMf1oSBH9oG5RCOZzHJioM6vvsw/pESZZl5Hhj4gmPs/nPOiuL6h/R8If6yEwcd1zhYSE0hspY8oBK3wdW8gPHrw4tSOSVWrAcmJDIWk8YFgkQIH3Hwn3wN1RYbCb836UJHx65QdUYKqAA9GsrdgiVzPr9jc+0jMunOKdp+nEiiOBz6BceO+16zX1yPXytxf/62ta8+WQK6EsHTE5CLOY79k67WW7pMFv+FMokcLoIOR8bV5S+cqAfb1r7qUfni0I3ybYYfLawE3woPuuxxyBveYiOgW/sRf8ylXFBYe/Oj2srFGs/QHd5E37b2LDyPdHpWftZ/GI7wuw5LxWU8R/V5yXjG4kKEcJ7v1/iX/v5k2z1nnZ/VL6uPKtaooCkLmuqbHoqm/2/RwZd9ymo63+9Yd9YH5TUq56FFUz5n7E+clfTfZv4TmbQJ8hlrQJR+2g957eSDxy/UzamTb381+OeFB377n9BuoAuOsYded3h9vP5l1crXOsGptsF845HA1sAmczjJ+M35ab15TwfEjvlx/PWkmxIp3AOY+FA0JoI3xsybgBwf+cGob5N1DRozAgJtAOrAdXmgHQ3RLtzz0tFt6866WfLyxELtF5t1DFT1GsAQecBUGZWvDlfqE2dLDF8vJ6HfERjKlR8JcZ/i7+y3nHGZQtlh+BRxzjlygjtnexB+cnTtWf8ZVsKvLqzE3wqf8e1NQ+csGQfMe0LoOGn+T26/mcgxQmjUTvZ7ie/kypMUjjngOZOyzr/JeG3UuLD8D4LdRL/d2LdC1dXlltNH5wmlY+dKxhfUuBIGu5GlG1iP4t2lnwPQhvMYIdSQq3iTzH/WE3Xoav5Dfy4e/bBf9Xe+sR8WcfnXQ/x9++WJhhVm5QAXHPEjb165c2z75TLlLOYoglJcEUIhTkSAVhAG4AwH8U7rnZggviw88BubeVTCAXjALQIZOUL0nAyOTtTITnCdtBkCHrH3Z2LoibSbEKr12/5KUNkyBCYnKoze9+qjglr0l2Ft/Gx5TquqNie1/bdfHOpJz6BSJ7VV4TlV7sKcKvdfPiW3YS6uzhn5yPz9vnlfhnv4DjvJ/zb269mOPGGnbxqVSyLiuOycDE9zFlZnUS5hxoOMDCGq+53/7eLfaD8UkM2dQlRtwQEjd9UVOnZdZoH9tNmPVT/in57P8ZbvARS8tnzHztFL5amvZ2D1jinAFhuIPRYdLonxkKfgyuMe9NTVvtORiQqIzXj99ilNebC2NL6LBmBm2UWeBxAkFAY5C1mnTBZ7oK1yQOWwDWW7tsME5OE+u4RPHbN285i2OOWZ753aj/FTCYdjwbHj3lefvG3tmVcGtfqtEsHfk7FXbYoX7Sbsg/3oA37AnyROAoFr/4TgiwK52Bn/QX28ds/oPWf++9h9r8UzJENTeol/N/Z3ZSj85XwH6OPqV8QQhdCOGvesA8zbwE0eQQu3H2dT9AeIDYXQjrrfT3YWpW15tvt1rtdpt9/XSXA/5j6exBJ6s02e5zJ1A7mlsuO+1bh/8yJE1r+iwTgTQl+dNBLFWUMI7YGbFeaA9PIsyBgfqQO0t4fnHXDkfwbBNxOpJTIID1jMONdrXHK61QhJJSCKroalKVfFiDFX2VovdRpiE69thnMXy9tsMUlbOhZpfxTWp/UKx7aHznxKPBZ8rFavndM4Qm08Kq1FvPoS/1bOlcTQ/JHc0rmCiSK6SGRw5eX1ovPrtq494zOLR6p/NQy3WnrK/y7sryVXj+mMfKiPfIhcxs5Gp/DqtXY40CiYr/EQL+dt5Rc28kM1pQ1Z/Gm15h9sSDRmTRdQLwaZgTPd/ux4YewYz57i7105mmxt1oXHW7PKvex3iBF/iISEMQlEJuLfQeBaCPNEuqse+Jiim3pDcEDFPQg5wiep9EV5R4KOnzyRJa1YDzBRGaIsRD5Y6Cw3JCGEoomB5LBpwEHjS0M9WaoUa1V76TKvLwQXdEbJ2s3jqdoPOfNrizZqJwPeyQvHqqNrz3hvtCO4S8bxOXndD8J+5AH9KUnjfK4TgFMpzZSsPvKJsiLz4R9uq0V37Vh75hvzbBgELdY7/aJnl/kPe7qxf6qfMHW+Rp/QUzYUQj3I7LL+ZpwI+5H/3dif1QfeM5rZklG/w8PWp5dsf7SbcLjspw8Im81nrLuNPyUVuuCQJ9OfL6vfT7IzLq4BsamzHQSeHWzgAE0hcC2E7tAHXEkBygbO6rzqF32WEh+MB1olZDZhJfw6YQH6ONtnIXLBZCC6k+TCYMxs2YvcPlzp20pGnwbct9nHUZe3Ze2XNr8OD75k4Fc4tq99zdO2rxu7UULwsTCMl0D3PP1hN232cdrmt/Fx1mdh1n7I9POAfbGdL1NxUZgQM4TyAUbRXrUo+rIsoC6P7z9ruckd3B46+bpS/yycqv2dPsFBy+EjFPWV7P15W+dxqUsg+LycBo5C6OO0y7fZx1mfhVO1H3ZoP7QI4wx/0HUKz15DZp7+vs0+Trv8Nj7O+iws0n71gShJqPqKbwjVd6IkYRJ3oUH3PP3R1ndrYQsOfA0uqsffkN8ImCMWwAozxEEY5SuouJhCCKPU2YSQIaXBGe6KB+576b0v7QZXP8AoD6iEwQ3zn37pOm1Y7qbFA4yXxjInhk1KIQFQAGVDUhMqjkPyCD6sJY7CQ6Fb0faLS28ftA+2rjvjxVEw8UuxTb554sYlxqmHU6fi7Xf9iyP8vti/TQY4sknBUsfmGaYRobaJ4zNGJ+o364OvqZDBYVQGULZ2+e/b7OOpwuYf2t/pFY6K+As3SvBPqC6EYIpU1A4s+inO/n2dfJz1TbBg+038JPFvUqgzwmyxX2MtJgMy7oRJ3HuIP71YyIIjfuxNi6J69B25TLgHAtwyGM4C1pMX0BIjhaYwLQX0cVebWYDI9/AvtppyP1APTMjnqFZB9AMruC4UHbRFo2QD4ojFiZ5ERHMHQSLO+oHa1WFnMrHKLeH4eblJ3G/7w3CgC47Re854v1w8vFq+3rqHnkA0NhYrjQnsQ6AAfVvpO58meF/ir4lhHXAxCohNVXEQOHROIRLKaNba4XF8YFCbuElsfQPpRUP4gXlPCEWhK6GPa4USrJ76tbO/0ysc+IFMja/6Lo2nT5uN8acfu4aIBTbxVwKBoxD6OGiyDWX+i2o2Tswextz0TWkdx99bZXgovDH1IkqE27du/aIMlaPgeFHPApAzODQwXr1vgI8rnycLMimXUHm8GUa+c7994dLdLoX4skynBzRCooCLmuaB4IB5OdFWVY5eN2Lb8g+eYdu6M0+VXt13z4u2P75lUBbKw5V/LxPkR+T2gzxw6eKpndPGPE1Y5/j7Hn/IRS6YfJ03BAf0cdabhtTJNQXRTyfBpe0CuRj8lW33vOId1mZY9lAUhQr3Yr9J6Gjvj1E/drMx/j2fDb18anIq6wBl833o+7apXStCP+JPnaSPrDh0SxpwX0df967jD2EFfC12+7pX/Y1MSq9tUNT6EuXdwzX6CdbDWU9DAX2c9WokDlzwlO45r8E5wTfCPb6wNWlaIoP1AGLhx8P17pagEkH7A5m0fAUZX4s5Hq6zFngg2OVQfsPpo8bx/1DbC7ZfrqLUFy2Yf9UgDB295xUfkZuxH2CsWsbPt9nHnZJt2zcZ0z7+k+WBLTqQitKz04dQu/J19HGplEM8DfaZrXe/8o+a1BoYof/2T0X1tvHzfejjrtO27ZuU67/9LePf43RCDVV132Yfnwn25+ibDUfb+PkyiHsPcfS8pssqguPt9575GgF/C6VMsRSmpxXWmAQ/WEwEQMNTqO3VAKMpD3oBb9Jf2os8en6x9VDup9MDFkdM3hYrrCOBp2tKwxE526CtnxU4Tgu/vgZIPK2dfmzb2jPeJva9kJoUbP8N4dMvLfwbKlvufsVHxY73Iy7mc4P0PyFt9mHB9ktXqU5p3rTOH1+3PDyrrxzLK1WiTxS/6Og1//trf+ITOfmaL2zcmm/TvhBzxp0waeshWX/2f/ynOvUj/p7qHaP8bJzXYKbZn9UXPmUeALdYG2TcCSezn3WdPkNE/pZw9L4zj4xr8ZfkzYLyVfI0BCkmTbFg4G0PHFr28SvdYoyapxAdYQgaDUcp3iDTqnSP+2H2Pfb4gfkHXn5depnEYyrRgXiAiWvhlgT1gubjWWXQjm2ydTi2OoN59dNJ27H2jBfUorr+FgNSHYW2+Db7uHGl++7sD7+dtiwG23L3K98eBtGf0h4blejLDMzGIzPEC7ZftMjNF+d80TLr/3z+1HfN/My1+OOjd52+bvGqK3+Qcvcf60w/6tS9/fi1mY6KfBTF5Z1sPBl3wtkU/17fNKoX7uEsKVl/ZfMJPKC1KkXHvzP56XydtYdxJ+wk/r6tfbnCET/6+t3ljbnfkcXGIpzwYZRubnUkR/qHjoGlhTigtSFEe0SPEDjqEpjHDw600XdvuAxIOyuxAXlgQvpBIloypgsIjY2LaSvcbwMcMSfU+KsNyIXhKqP3nP4eeYnUNaLVPNgGnX1bWtmbpfttaDehb7/QxoKRyleL9MKOe05/fiWIdAEFHagHIfSB/oS0mxB8xAE72fw27IfQt59288MNoOHwPRKHeoETfUMXxsQg5RLmy2dPcTWuBF/ded+ZzyKlnzCSy86+r6AT9SLM1w+2grcz+7vV2fpu7S/obP61+IKfdvh4J7FnO0Lre/Lxb7Hu3H7TqZU93XqH/BY76k048+xHLFEIzU+gwJa8eMDWdvFHe5YpX+GI43fMGV376Dcky/aHRrjK4DRD5hmuSqFLzUaDOFQ6aSBISW0VMbZ4YVI1idOJRNqzkfCjRXVu/EWVVe6mzQOWiAh/NoZ2QmB9VkHSCVGfh/u0rIxBHcuLr+Zuu3v7OfJR8M+jKD5C+3W5Tv0KtP+LSw64/LdF2brj3jP2rdXq3xQ75vh9tLOHdhO24/dlA2c7Qp/m43496H5prOOEYpBTESHa+fzECX25Ms0sm5ioXR6vPff4ot59wn4Ju9LPKeu3TeZGzpHJ9eMGy5oP5Ef28Jct7eLJvgnb8Wflsx0h6vNwn9ZKhtFpQ2fxz8rq5DisyJeII7tyRL0IZ5r91Jswa387e9iOEPzy8HUiZsoLDlls/LMsMl4AiXoJTpK04dqCP7KTBGbwbfXqKwfclEwTjfUG7QSm/enJzN1GAQF9heH1C/a/4n4clmU6PcAYQwf7hEltGE87Bp+3aExw0NIaO4KklCb34iryfMHzlLHFDmdLXHHhWZM4YDelEtTnxpVwtyCurJCHJ/eVtieN3rPtBLFsQZLWKrBBQ03JfttfCcNoZKTy0W7075ZXFhuflzjtnvF41/bY8C8o/h0YxczKzZ8O2ufY/8zRaCN8X8C3V/zc6SD/O9A/a38HTTIsvk7iDRx2MZ675U9HdzH2N1qTMbXHQ/nWlteysYeZb//U7IH9uuZwHprSgmPb2le8Sz7Z/QEHM2T6eM5g1c4tCKZB48nHadUjUFmVcK3odaaKkKWn5EJVf66yA5lYo4KXdzmJd9q+XRe+fFmkPb5k4cI1g3jor51exdS7TGDGMeggM4e14wwhwy9PBOkspxBNXT2g/M2Va1o/Bs5Faiocnchiw/WlEAQRRxoOmwp1s+Y2WkR+BD00MbBzOkOXpuLqOBLA42xQ1kx1IqsFf579ssT+4vwDv7u2qes+EbbcffrvyyR6iukrCtMGJWQdlO00YyDb0leZ6l7shz81D6Tr7CeubPy1W2eC2WPm0N1Z7ZPcZGgZO0AtWDyFb5dv7Xx98TO/d21T+ykRnKLsU2TlxX8q9tOK9mrKSVRD7emkjWZz/Dv3TqP//AUHZNBHQAX34smpI82/yfn7HX/0yzHRaIM7ouqAKNTdy/90zBpL476FPY6p5wWHfCf/BVG99k/UK+3UpxAn5EQBpZptsRMHHEJ+QBoAfrRPr2gQBzR5Ul+vv11ODm/HcSy/Rw0/1SguSQQjZCcrdFsXfnZPHNDk2Ykt1c/o6Z66ugaZ/mBLLaEFwej2bcHWu1/x9cqC6vsW7Xv5o6mc2YA5p6srBG/lEvUH7PX4EQDyg04ZwmV5b1fGtJXwgsaYEDc+NACXFEJ0A9x1l+CsB29DIaNBVU0u4TFHrD/qhYaN/Nav0Cgf1X7/efyT2F+phOsXL5r3Zw0q9vFg+92vfGotqHlXTxrtmW77La7TH/96VP+3+PGzjwj3vHS0b+5n3AlVMHPH4jBl+zt981di1K4e/8QRHSKN/ur3+J9y/KGeP/8Q5/zUZGWjPb2N/1RoTw+N7rj/rP2DqP4NUYVXqp1EXzlOCgYbHQU+TNop9HGbtH1ZqcKTYTzpAPYmz++zUYYvu7UOje19m32c9pme0Tn17RM/ie89e1lruTOtRpZVjIEHcZbGH6HiSoHfuMFW+hGshreSp7zK02F7GVgqEwPMwylfNXR6mn7oIdVHlrRQUJpKXqNGeAkTGWjvNkGsP4GKoz1o7s+kQyY3SAduBXJQKE/WOu8Ln3bZBqvt/34invhHeYvoslQ/05A9Tbf96jvnS+DqK8LEb63958fcx+lftVvk8Q92A2dJ7Jdn1rZt2PpXpE8d4kMT+yEUitpmUHHoBho3tFEetGE7QmsH3Whf0OFHTJNmcnLtl76Y94Tsw4fQzddXZYHm/qCz0mTfkf4ZedqmG/u9MZ+Nf8OPfsBpXRTfZh+fSfar3ohGQ3wsQnRFkv/Cx7gT+nYTh/14IJql6wUHXlteGxu/XAS6+7sQxWRphOhU1YUBHp7ysy2gFOVx0Me1EtWmOKCPu2o0JKfhrk+V2w95Kp194IC42WnHKe7b7OMpXyJj/9Hatn9Q8bNk587nelIHjsGNjbg7VA8CT7wmcVIcUDatc9BvS3kQbUIV0zbA0FbbSyNCLPqIJ/WOF7LzNuX35IEJtIRZ6vz+IQOFsoAozRGIu8Pu7A+DLyxe9f1LrIf+70fvfuVRMiHoT8wn+nkxoN2Eid1qlOlDlO37aj+6EMHaR9KB0ax3Fxs5gI7Y/Jj7eFLveCkuC1WGJw+dg6YwDP5YXgewF/ueKkzy3usP+lAH4FO1Xy6xdlToB/YNmNjt7LdAmE4Uqjo6Up6+Pg04bCYchP1qj3RIe7Rv5AkNmCKkHEDFZUcIhDggtmGynzr5UP0FPacQf3+R4eMidvIinYajm5/4sqxZ5Il8uAqF0I6627MtoI9Tik/zcav3Fx0+ztYWXTmiB9EHcO0rT57REueCE4MrKcQBfTxh6BLxZUQv7rLxULPTQ+pL0ZQ+lWnLcED5QzgINUyyS6AgWuegthDBCVT3yZGDqEFbQuDol9BiCf5EO+UGPwtko2gfHs76hJUiQNAmRlBUCHZk/SsufaoPUAfc/aluggPqJrsECgI+vToWxj9Z8qyl70r0KACJ4trf4T06EE39iCfdmYFms+KyI9RWaQuQzVYHaTchbAOPg4ndQoPNukBAneDUR5oaDuj6JUQNZBACR/+EwFFHCNwKodYqif3hAHhSiAoUOQvj8Z0fSOqmiEBPtZtQCOi7v/Z3tuLoxH5zCxwBw7GjpwwqRXyeQMXlmFBqNDYODsZ+65/6QnNngKE972eH/RYti6SPJ26BmShmriFKa21/en0j6PQCm3YRyLsGLpRkebUdSZ+SOHwOgjQfWjLZBAo6VCINx8QBtejIEi5AFJFvow0tc9oLH3UwBtNH2+XxS49wIr48i0KcjlV90KXWYqdfs1WYkDyEfQPmFZUnFZQHLtLAT9zBfUCbLaWVzVn76HtCTRIwOZeqb5BnrqHFzGKXykr9TzmEJiqtt4i2zoFm/jTvtC6b86KYxt8pqPoKY6pvGme0zxbqSUi7CVVOHKwJ5yx6TRheOp5t36/jzfecfkJcr50BeYkugjfZMwD7ZU65TZT4mSx9HpdPRL+Vr709XonDqiizRxQGe1biYC+ZxE4Sv68y+9P4UnfCZnsmnwOa+dvFP3zn9nWnfXThQVc/bLr0vledaYqD6v8+5n+XU/60xF89WJD9k41/nhe6jqC78o52TePFo+XJZZ4SctwT9jv+k9lP/RJdPN2hB0rTOU8q2s1/Fe97qx3e0QuCrXee/to4rn3QPgBZNqjy4mwGClQ6XLXjgdNWvy4rOL8228QvA0uLg9rcG2xW6e8dP6NjjT2Gxh7oSEJz/iT6Z/RJpx7rt5/2i6yB/QiX56DCUF5xwoJR8RaLyGRB2aLelhqIGJMICS5qu8MmA1AJWYwdcSefsScEH994q7La8UM08s3v38Npax/tvzWszj11yUGXPdFkax8JYX3C3iY6TfbLF8puFDdeUh2Jv7fwoKs6OnnvvOcVB0zEtdPlm3LniSuOVXcMOP4y2c6r1cI/kr7/Qvuf6i6jf7/zXx6h70jDyrzqH4/U6+7qjZfgSeL7tFTk+ER8thz9Qx/zX8RhxLn+BMBF8vD0x+eMBPpSurT3TjFfd+JhMG9Otbdno0aq/2teGH0i7Z0yQSFOmHINCpOYnCQuuxj9cd4jLHr+kx9R/fXI3MpFtLWjBcfo3S89qh7VvmhRF9VdodKEIKe1lhhKIzELJQZIniQmYPYK6xSCnuEnnVCbsg9ln/zTDPUmtAUIUtuSA3TSVHamA7YjRLXXvdkGGolZ6NsTB9eo+Nm2o/GEsM/Hs/aa61vmhHpYFw/OmQBoQ99C3mTyUd9NgSyehNGOuOoAQq4CqLBCXQhB9XHHloAG+8Nrls5feE74jG9vSuoLQLaue/We8fjoWbmii7Y/DO6vBJU/W7Lqqm/m9j8Jcf4zv3efVH9STvqf2nLPy94YRtGHJRpPndS/k8jLrerI/uA8eQncB/tyBaoh/nkauXxkwuemH4hTK4ufceVjvUjYctdpv23wP3OdEEJ9PNtJ5/ZvmH/Q1euyzafjeMnB318v/WIbuhLff9by8Yntf9KzYh3lf9MErN3JFLkhrMw5dcEB33uQ/bd9hmPr2pfvUY+C70iDRUmiQAkmDaEw+Lni4+zMJmccYUBwUBCmXAnmC/HxhCGDUBenn66yBQfkiptQWzbxm124RKSXiYSJMI+/gSYHvoo+rnzG7NCM/TLpLlm89GMp3yzGfMcIrv51kH73oTAYD2Ll4eSBp1QGXZaRjza2IGF7uRivcvJzgvmR5IzqJm0gF1uTPMptkTPUizCjn+qufVh7s0WvI3546arnvqzoxQbUqo+Pni9W6DfOBmm/vKDxn5ZWq4csOaT7xQbdCSi3YOJlz7rqy0uWzX+m4F/UOvgZW1O8+h9/+VbPnpvvfjJ/wabKtN/JVRpRtXmzXLUc83HyQrLljOsDNqO0sN8qi9036JPtKqOf8gqN9mShb7OPSxTL0sYD8aNnLNy6c/uVklVHwnfmv/7nP+PCuFtMw63VcM7Lljzze3f6ak664MBry6OJ+jflva37qcJIFg5glyRI7CRJZBGhOKCPu4FE3laDQRX1Bh36Ig249GT9Azr5hMrn6ZT0AZ25QQZwQMW1gdAEygadCRUXHkLjd22dPL9P4PpHiCPigLKhb0LqEcpbcQW/QF4AtkOkz7oCn6Cob3J8AlfCJ86lTRBtUcfCq0+APs569a8cAPo469tB9kV9oL7SYIaZksJ2wrRJ9/bLPZ4nlyyc+5EwvLDweVV8hMx/O00ZlP0SnP+1ZNU17w0P/v4Y+54qDJ9yxXa5UnJ+UAk/PfD4R+GU3jyKiZg550P4hDEx3I6Kyn/00c9S1Pif9MTVTwNmqCz87MKWzTsvk3FwIufBTkxhrjEHe5n/ZNE/Jm9DftWiVVfenO1z0rhtvuu+T8rs+rxOTxYyibjJWSZZD6fyMBx4q8kgayz6VX6BmrgQK3/4x4YlAqGPs14dDZZWJx+hawF0uhGyX0LVAHLwB+j4CVV3TwblEKocrw3aoch8/z+XPevq7+vBLNo5TyXxg/3qIw+auS4GLmjOKwyh+VsYKU99jyPxXwPuONTPgrM/8CjN8aNP0FggF4XyiSvR0UlTHsjBX4fysvpAFmhpoS6AkIwSrdiybXzd5jtOex8mDiUVtNt892nHSp8HOqu0F2qBA+Ksb/C58+Nk/syzX57+/Jtlh177wSJM0qsdq66+oFqpfJxxJ6SehHn2+TQfb2e/rNpehKvBvduEtaXvbRwZJYVSn8k/1Ys0aZH1N/iz9veuY+ct6a+sPpAAWlos41NrUWN+SO2mH1L7vVc7pKJKTD0QxxdWtt616RJJltPy4l9E/ieuD+XdmWHldbLw/1FC85CWC47Nd5x6QRDF79DQY2LBhkJoB7pHOlhK4LB1sqS1wFCcTLZX2S6pBOdAATQcD3hKK3eLRHsFnkiyvk2uL1sYwCO8hCoDump7tGv+g634A9TNGqsM2/l9KKeQDaLGtXbQeMmF9rJI+vbSVVd9CPhsK2nM0jgy0Qlhc6MHXZyFzvbgAc6Ci1EogD5u1GZ5jIfV+L1ZC8oGxNZugPp9qg5oB11c+yxsJ8/XCLjqIFA0WSELj/+3+a5Nd2258zT99oiS+7yrxvErIJJ6t9N3qvbLguCaJYde83d9NqNJ3OJnLXu/PAz8y0HFXxKnEtfqpzcp0iHBlhtp/BkPNAfOkvU/6KQBz+ZTvv3gLK5Qd8B2+ZTVV9tIO8qAlsBZaKvcjitLCw9svuunn5Gvt/+u+ZZnHBz53rbG9C393S5e9D+gbiKGsIJP/XHlrXJOwyMYuSU3bFvveumLpO3HIUkVUomC4cQL3J2AoRxwQMXRH2hqmJ1ogEOGypE6Qm0HPrR1fyoa/MJk3RieyBe6yocQFeRB9Kp9GwQOFsIcdtTKhmI6G4+1U1yUIEzsNsUg2Ppz0Pruwv4guH3J7ru9CZ/ITIfZtYc/zCcWA1rnxwF4dmO8kvaUI1B9jliB5v6IA+Zt4l+lA/o4eVVH14fiyi6yqBjkAnfys/yqB9rzjzgg2mhTg8AhCoXisxBtrDvXPoqeEUX1yzff8ZKPF3G1Qx4deCVsQ7+qr3ROmNhtCqkPtM7jl1bWthP7w2DHvOrcPzAPFLuXBzjrc6Lg9yuVSl0U1NgXHf8oiHTx1otlmIgZd0Lf17ABG/4IfZz1WejbrHgvynXTRh74Uy1djqCp2uFkwDYUwLwNvJ3YL75WOeWu0QOb7jjlf8tbwN/OPGiKP/w72TlMnK/xYnCE3wXE8g7HsoFHN0QbOP7C8H3LDr3qS40aNR41LTh23HWaTHC1S6M4GpFnN0SYBJabZoIcO2WgN3BAxaVjQmmoihCqEU45ESgNoTiUcRBA+zGouNQROmbjRzMU8BP6uFGtf8HpHMigHiqvXf8iswj7xUcb5lUqr+rr7zA4m4cC1OSrdy43VB/grlg8ERPzbRainfK0aE85CaTshF+CqjQEN413kgNSpzmQ8Aub8icSGxHWJfyN8kWY9qMQOPgI/bZOaq/2i8j3bL7zyZ9uuueUAxoV7P1o9P7T9xZljx2U/fJtlAvdN0t6V7qLlosOu/YWyTJ5GNvygHEnTOxmnPJksw5Q8Unj/1I895Ynph1N9JS0sbmVsB/6qa2+/e0UmWo9fumygPyfqlq7QvtNd57yl3JO/IskTwc4/4Vx+KFlq675p3Z+blhwyI8RLR6LIry2fGVuQyQSCqBsmswOWmKD7HiMUfdCRSMPd2gDLa8+M9pVttAA2Q8hRXpQNNQjQB/3WLpD2Zfrvxf75cpRTR6o+d0Fq66+v7vOZxi385FqTb91YgJ5k/aMNWLp4a6+OQbiYZXBMwTaAbf2VifZIDw+znrLK9cPdfAhVtQ4BtTVNcRDviuoQ2Eb4krsYNfU3umitkfHhrX4xi13vuSZHUhqy1LfOf5i8UFIP6gPtP8i7JcHYeeMtJ2Q2irdJUN1ZM7/lWtbE4wvbQX0cdZPKf5xvHTrXfce16WKjeyTxb8P+S8/zNfYX7+P9BeVRSjs8G3ptB+/jeKUI9C3333W7FTsbOfbdOdL3im/8PxhzHWW15iTsMFvhI0536/8l3fofGLZYddeKB21LcmCQzoPNz+x8ctxVD+crUwh5A0VNbxVvXAZL6AaCnNhcH5pJ1/uYbuGgPhEDFkG/bapdPYFaJfmCHlKIESb7KdNn2a4yeur/WH4niWHXHsd5M/mkvrMcgJxsA1WM06IweQ+bucjxhPQ8DTuaT9pf838bJffU5N+HAvQ2+meQFjWZE9/7Rf5+0gXP9q87qUH5WvcBTWO9ORIn+S1bLJHOlca7HS2JnAS+8Mw+mo/v5GSp2seTd+REAZXso62Avo467Owa/ujuLcFh7rT8pR9ZnXJO/ZtMHzy/O/oxUt5HXVIqwe24oANZkcK88YjbU350zHUYZe7PNumNaecIzfmP91J/JvzJR0HeY5sig/j6sa/3J75ytJV17wnr20eLVlwbFrzkv8pKyT9Lnnr4NuAsMQRXLV3UHA9dFBx76SPNqa8Qd+QVLGMfK0gLeVKMdYB5slPaYnOerIzfpNDGcLhJtCi7Jf+/mXZoT/8dKr/7MVwnxAbfEno+5eWow6lU35fho9TnkRcUUD9wwDBH2DOBmbK8XHyUnfqBx7q3Ak/5FAG+yH0ZVF+O37Uy/aUaOf4j7avffnTIKPXIs9v6Ns5fX2Iu34S3akf+urFfgnBxb3qOdV28nHlYtqThZBNm32cfIxdp/aLc3pbcGDe7GC8UFfq5+usuDiaMMl7L/8Lvr4RVOUPutFfxFvpCz6UTvkhxwo/jLrDXRRsvuslLwvi+lfEL3ouR8xRNPaMO6HNHRqfVvGgf1nv56QfK/QhM/wVSw953vlCZ1BAnrSokpvXvPjlouJfQ00rgEgaHBkEDiUIVTFngFSgUusJqbAPIUvbaT/t5fttrZ3pYDqmOPmoG6CPsz4L1TronhTiBdgfBNcvO/SgjleCiUozFunMh9mY+HHzcfL5NB9nPdwFnAU8KIA+blTsyWv6Gp205nqTbXkM3NfB5Kd5Ddk+zeelvlno8/g4+Tza08YndspEc2HyocF072xv7eJjBmG/uP7OZYf9588606z/XMsPOfB78q2GJ+A7FEI7Yqz7Fn97xboJ73wv3eflk0/zcdjg5YK2RT0KIXDaSn7Qii31JOeLzP9ibZgZ0rfc+eLnRrX4m3Lmn4OYM+6EsCIv/qSZlT3mfxBfv3Th08+RdwV1tYatxA+fvUB+/VXeSc8Bl0JTPJ1coaBvjCnc+56yAH28tcTJnePL8PHO5aW2wx8mow/2h+GDI3Pnnx2Gn5V7ybtGge9ss5zBXIjN/GoQuBVCd9gAWAcImag06OMmS07w2tYgcOhAaPE0mrK5euDUF3KMz/ozPupgR/7el0kZjZCyAdEytQG4FUJ32ABYB5i2hSx5xvAFm++4vqff8Nh69/UHi7jFWf2tD+urE/2y7RttN33lJui0vrYf4070utHXlS72aYZPOf6HYE6l/KnDSeKvVWlOIF6d5P/UdWotATdU4Md04zEg2jXqa5Joox017lkH6Ldt5NrVjkbvftFRUT3+njxisJB+hX86iT9zHj4jzniZj83XwK0QusMw+MXy6pIzwmdcvNNROgaVzVvX/4l0HVEB2gAAPCxJREFU9ow84c3KpAqih+Z6SzSTleKJMS4RNfPMSxCSKNtOnvEKP9qwHaEpZLJcvcoTPOlfExb9tdpUiMkAl5Odtk9pytlUn9qMPlz7bXG1cqZ7334ie1dBuJr2P2GRZj5ALFAsJuYzP2aNPmfbVvKaYiaMSksaSD8qhDnAvlWJpl2TPGjq4t7EnEPQroSedO/wlHWK9sfxhzbd+aKuP1XH9fAA8zk0oQ6pVsRoK6CPs74dNPun/4cJw0r1liTuBcZffFQZ3fHk/u380lyPWwT0cZH539xzkZSi8r9InYdd9uY1Lz2oXguvktXFcuhKHwP3x6jiUknYj/yXBc1dleril4WrLt+K/rotFXkG8xQ2yioLQ0AD9HHQSCdEPQqhj7O9TwOeTnSc/LPQ5xHc9aFQdZNB6qD/AChaoVCX1v0bH/ewBaWVfbS1VT3ask/gchlXflQ7fMuKVT9cjeNdsWR9ipgbjbGGV8zv+f5hnfGzLWPQVh6+aogCqLjIIUz6ZR/KqOyQa5tP83HWZ6HPIxIyOQWZtCFfPtr7hbpZP2xL+0XanKAef8Rv0QkuVzX3ze+/sT+TRRqOiJs+duzjPo/Uiv1zRuJbTM707WXavSWJe8Hxr9ejp/fP0kZ/Z+MP/5PWGBungdoqOCDx/inXQhJ1li4Lyv8WHc968va7X/zUOBi7Rl5bsRfjTthZ/CU2veZ/GD40d978U5c+64qef7m6Im8kOxoK+4nRKmp8NgQQG9oQUsak0A0OaWl/6Jc0lZU+ZOg/rNJKJtYfqoNAxUUWYSLXk99KDumwG3ir0rX9QXDh8kN+1PWvYLbqf2bS6U9AH6c1Po08PrSIWoR9nDw+zcdZj36As4AHBdDHldh2x/zoNGfSvlvpQ91Yn4W+TT5OPhkzQfyiLWtOObmt8g0MoSw4irdfFuBji5558B0NXU/DwchI5BY9vs0+3plSHcU/xmKu2yILAs1TxpXQj7mPd1oPPcA7XYV9U1/oQZqPsz4LfZt9HP7atYp8HX7lWK1+tZyi9k9zxfeJj9OP8JHvb/CgAPq4Elvu5AHRx+XnAk5dePD3H2nJ1EGFfEsq/o3wLTNeKEalpcadfAlVbzyQSv1lNpFfSpQmVLyxvSgprFgEWH1jLXpspFh30gJkKaqJHKTSTRZkWlEOx+lIDaBRfkOVHmTbN/LTbkJTV3iS7lvbLwumby0/9Dp5hTO1b+59NlPoM6QGcKaI4eI3F2R/YQl/gGxt6B0626BFzHJC8kqeUAsu8n0MLkYVErI5aFLTmDA/mVPt+MNKuESU3COoBHsI7x5ix960DbJpa2pfSkvr+2O/2uLGYxRO/I0cn6a0DnYybuWkCKsbx5TFQ35CgEZpQERgEi/DWY2ufDzH/juG4dmlhQdf98imX73gSdFvN0sQy6ci7Jdrm+Lb3ko3+a89cD4GlNLsf8u1JJ5dPeKnInvaFZ3/QZSO4Z4UnGGN4jUvXLypVv+BqH2o5awzoNv4Z8ZzR/lfCTcL30uXHvLDe6bqthF5//l/ylWOVakgS9z02MMYY8KM8saZtpdXCmFOk/sKjqa4cLnDZOC3kEc2QvBrIjt+4kxuqxf5lKcKJa1NvYY96whR6eMNzKlcym9hv0zAty3fff6bZZBPIiwje9YdmulwEQqh4a3dQtcSWo5Iq4TgoWEwsfyw65JfOoXsQZcda07ZdyysnSYGnio2vlIsXWgaDsB+MRa5j5OJ/Lz5qXiWQ66o/aITH8ivFON9Hpbu8G2LkDRNSBII0vL7gaBUoHweWZ/PNw3UMMCl4N20Z+ZTo7pNStFWQJT8BanfTOIRxfv4lG5wqkWYuDIhePkvghn/ZA50tJZ9Fv0iDn0PB5Q1f3HcE0IvX9esnjSTsKX9PX03K9vbzDiO17583uax7ZeLL5rem9N1/OlYwvb5v2MkGDlj6WE/vLUf3hqJFsz9QLBt7HQZUPtDB/avwvHRBZniPsJkjVN+VFOTDH/StiHbyJwDtZ+0v+b2WQ2pLaBT1UEcZ7lB80tj6xz+jD2d2C99PhGMVM8K9756m9/XroTjbYbMiXY+Vp+KcwCT4qFu3rLETBgM8dkyVQM7XHDYtQ9JZ5/DNrrmhXtPBPFfibLvEPv1V16LtJ9G0ndRPTpHaB0tOGSBIgsj8yDbQx5xQhsCWNRYb6CTZpTGPdiUJyGHWxJ0mhG5dY1Pak1a0FZUECekrd3YL9/KEd92V3BbPdHNV5E4YY5Y6ooqLD5xzCsaxMkT4mcHCi7ap+sDamtOuGPiLp2SXKF+yubbSpzQyYl2kSsc8vtJ1U2/evyrkhsvcqY3Ad937eLf1FgIfnvigBKjiWo1+N2lh/7whrx2vdAqKw68dvO8ufNPkjz9OhJeB5imvkRYOtVBIBC4DjoHyUdIPkK/rUkRGWKB1iPbgCOJHLQu8BZR0AFlk+oEwjqpBA3Q8BSihroAYkMhBK5tHQRu/AYNT2VoT9qf9YH+VJaDefzyjuiJoBq+drdDrntAxJdFPdDodYsg9vYHFqN15i4XVqSN3NUYrrL4sOse2+3wH79bHhY+XD4J323aFWe/7wv0Jcev7tQj8uZPXXCYDMlta6/NKRcHGGqEPm5UrXEoGH1bHTmMNzts+kEYy+LH19HsBq2f9ocxfFtMYWxa6ysrFymcQ4krcWA7+lh7d71afthY5+g3vl7G/7CN/SJcKyf9cNOa335e/KMv5EQfU48/Y2PxMHnN+S/nt0h+guMtyw79cfKW3n7YqBfYFq265lER9jr5us276sHOw6pxtGcqnCY6in+oZ2ChEypLA0NzI5+XrIQN7nRNE5oMokiu11XkC31yI12uIZ8pE+DbyAXor84SOv0rBHSDQ3aHCVRpjkcvlwoREAUDgZdQHUGBChHM2lqwUCH8715x6I9/bEy79t6fRHxcfaeOc/4hbi5HEMWxcgCIkqlXsqt2HMY3RHsZpGs3PfiKE4MtWy4TtV5QlP1qMl2lMD546x0vPHzJodf9qgN36LsiqBshHG44HI8CLwN33s4cukFgLMplfJQnNxWH5gqH5JTpojkmyubo2xf7w7D393CobgyqKEjXu3D4+a8GkNXV5zZoGE8JozYvasf4Q76PZ9Mpa1+n439X+LVYeeboY+K7tyQ+gy/d+FMI53YdfyfEpQFjQ5jkf1z5o2VHXP8f6KKfpeGO3rLDrtoowvt2+aSfimZlbVx90vvh/dRR4ioZWHopyC1qsnOjLkgcD+XZ9GhHMYIAmRyTxBldDlwnnzIAZWHyqd2OvPFffVqJw52yIPN8ThzQikRAURcJ4qwGUx4Omk83YUOzX77f956Ue69nPrljK97/cAAXw321n9Z6fqjZzxO0XXDIh6fklgrFAOKTselon5SJJ/FiX4Ro5OM49koUD88tFZksNqe5lq90P+wXyT1c4UD+e2PBVy8Pz6Op39040rMUCNljZRrYrrDxPzALpqejJ9c8/2/lwe73aO95sc6jKXM23tljNATNF6ANrbWO/+pfrTji+n9Jqf3DGhYc/RNbrKRNq08+QFa4J6vPPN/ZggKTpnOy+FTRBt8yAKJjk++lTnnT9hoctocwbWP1jkto4XXLjxh5b7FWzzDpLgbmzvQqEKygO3MtUh8Lh2sPH6vLHTPxSWXkCh48UX6sbMum21/4ujiu/VR6T362fFLdu7S/2T/xczqyNI70qnRTe7c4TBYYoo/iLh5NsrMByQisVMLiHxpoUqoFIZRvNcmEKga1zq8+2C8fWKotNGhPnnL8dcZKxxhtBRxE0XWqJAHyQIr2ihyyw5TmHTegndo/KHsalBvMwZNrXvDuuF6/EL1lhlMyF9Kf7eqTXKe/2vi3Elb+cbcjrv+HoiydkbfC6kF0PnKYCwtAw1OoodKklx2gAsNxVQR/Pk1xBAP/Tl4WagKAh0WiLlc27h+ZN0deW37d8Eys1G86IUaEbOotB4GrTwnVz3heB3Gz53agMnAWiEFx4hRRWkKw+mHdLz/iupuDSniJ2i5K9tt+nUfEF4DY5MpF8mvPk/lEvqWyQ50KJvgyKcxvaowK0lKMtRgOigMCUR0MGh4vhYShKHG0RG2ForCZdhOqkjACBdDHldhAUQ7ZJRAI7I/i7cbd+R63CJj3hGhN1QAVlx0hkKb4g0/oqhMEYGw5aAHCQYFFzijMA+infXv69C3/CzRhOkVvvP15b4yj2j9RB3GdFkDFZUfYU/zRuFX+h+FFyw+//s+sx2L2M27BIQmLL5u+yaUyvNfSMxy4gD6eNmBbQK7CDSIu2Q1DV+Ml0A3j0SCsvmrps67r+c1rqS6zDDOX2uAQnL70/Wy4eRTPyuDPfGzQvNy4FwbzvZM/E7w2Uqn+Y1H2YwJXn+DEIpsMjv3xnf12fpGT4g7lF0ZCjQRkOJrKdjjloQ6llT3QxRQyIMLdO35An94ShfEy2KR/9Jeo1G/75YS/o1tLMRH3kv8aI6RAK3vEWo2nWd2tWt3z+1c4RC/NFwctd0wfzRHVzbTrevx3r9nQt9j4qxecIYG8SO7pyyku/0/IWgOouMSdkHlMyLgTJnkPCZl8kaciv7Xi8L3fLlczIbmwMuMWHBtuP/El8lrX/eAwdb2DPk5nItuVDx6XDYAQOOoITZ7jB58Un+bzoo0ESJY+8ZtXHPnj25W53DV4AP7SjckNKH/qbwfpe0Lf3xSGiQil1YREvmGG+hBnGN9alP2QyyLv1JGHJuqH8rgVlDnNfQpnWxtPxk9a8xjQKCK27g/8fv9+DBUPg6G5whHGoerCnGq0tZ/293CFQ7r3fWe6Wd4Dnyz/G/zvcoHxQTvgbE+5xUG7OglbdEPvXr70a/zLj5YVZ8I0SH5y9fNeEEd1fFN0hHkANZirjB9jCYg/FEIfZ31e/ClTG6uM8Nrl85e8IQwvxW/vFVpm3IJDTvXntfYIJ0qbPOxUZSc5TXRJfEIGlRAy/asgPp72l8qXoP3N7kfchG8hlCXrAfmuPy7r6uVe+NycDgfbEHEQ3kQdIfkIjV9qld+GEHFA3bJ9D+mxaH+96S4K9tF+uBbyABUXKFNx2wWHfHVzB/UgRByIA2JjLAAVRz/syPEDtOQfoiscEoOlah9u2Tn7fJt9nPW92C+iu7/CQf96PlddMTqExj/iiX7O9wgJw0JoVVwA8CrvAO78Oht831Ff38fAwUOYz9/C/lm03pBnEo+Nw+gKWRrOh5/oBz/WfYs/cqkh/8P/XlEdebU8bzaGfCm6zKiHRuO7TlqyYWctfdeAZq+4iBDeEoeycDGRQK1P2TEwwe0P0LTWMQO4DjzR31h+xE/+PttSWctdEIyMBHF9wjwhoweDJTlLwYk6y1icbE8PSxNMQMrjHEmcztegQYbxOq6hB2E88vNYnlnU/OyX/WI1fcUch1/kpV4r2zlELoRs8Lzekl1jh37cGACwb3O5JrQFkHyCk18u0eovWjru6Qami+ZQZ6rQDsJO7A/Date3WOWqrYVDdGNMVcPJ8l8YyOvHX4eKhcPGCZTmcWdmT43Liz/GuvrO5Uff8r86SIOm5o7JWm9Z/cJVtXjiBxK/JcpXdPwx4cJ1mhLhmmp10enhYVeNTqZjP+tm1BWOjeP13xNPeV85g/dQAH1cic07nrQAfdxxctACGp5Cypfhc+uKPfZ8S9H3upqVn0EUvM2QIVFfi+7O5zr5wL/uD1YprVPz/DAT77TtNPJVwvrj8IHa2m/7s36IApu8JrM3DB5CtX8lz8cna+rX+W3sk5OTmcQ/8H42wW85WHzjvacsk7G7j/bq+atJf2EgrRMNyQuouMiW1wU93EnbnnioO/0LIaTlCWSdz5/H10ca/aB66biHjqJAP/N/Flzh2Ljm5H0ngvFr5IHh3Tt2f148ScsTwjpAD5cr9PfPmxec5l6FkdeyENqMWnDE9eg8eCFdEBhOz2QXDOQjZNtW/FiEgxfQ8BRivEjt+nDO3FeFT7mi66fQ2eeuDnn/ENBw3A5wS26cjtXRBg1vjLGywologm2GlDAc2QRVzVaDtJtQLO3afl3AiB8AFYf/Qvk2RtsSy0kRvkcxSHcSao0lfssxR15AH0dbFInhbpvuev4z7Gj69uG2sWeLKaKiN+sWZH81jnUx1721EsEu819jrlal8U/ywMVOhHavyhRaMA/yRPQt/2fUmavZE1vXnbZnXIuuldg8rd/jf/L4Y34IH6tU4lMXrfoJXvg50DJjbqlsvuOEgyfG4+diQOp7AcRNxG2Qmt/8sQU+8uR6FeMQo8ONR+UVQp48YZuQV72+dsVhN/Y4meRqMIuJ5tSMi5vsNffzxNd80sLgIQ8a4xlqlWnim+QNKyEOJ5boRJBRkLYBomRhW/vVD84pFBB38qBm/DDGir+wRvOm/jwa6sFhOloATIa0skORZzgfdldyrXaMNLxfm0/TTm5ZHA3bkuRJ9BWS4PADSj/sl9dw9HyFo0/xTxIpa09SYeYWsJdXnag/zcHYwyY7au7O6phTqXb0Q1Z/jn+5b9gsbIZQcLVtfHT0KrHt4F7thx+0KJQdj+ls58Am/wXhk5Kfpy0/4sf3Toe7Zsw6cWIM796wJEsuX4rHSMtzHhcOgLkbphfUuT/IAM7CpAeU7YIVR/3sBtaVsDcPZHyq/gaNMYD3DQdMJysXgyb+3rQYfKt6LViBXvttvy4YxCuAhmsfba9wjFSrD/EkS6hewdkCBdDHjarjxaolSqjXBYZBXQ2iMpkNrVFUj481bPr28lsIRyOjzNbUX9Co3/ZX5o082L2lHAHQEn+AGssEIndQQ6i4HBDCDm3jIHCrNWi1Six2l4m/3xl0RwHElrXH7AbV2eJBn7/wr1NIv0WU+OGzF8Sj278r1j3btwcW25/5pJ395LaYp/mMdswD4CbNoODbxOmvmM5vVs6IBUccX1gRL75J/TfpzlwMJ+umE6bgnDyzUOPANnrgpFt7nVAhK44/ufLon/+bqyxBBx7gAk+uF+mJCdDHWQ9R5mcnVGOmRI2b1gkt4ddwYAce12YGAPmxtAMKs9/3A3zVwZsul9YWyuvP5W0cnm/V1zILEuKMQJx8Pg04Jk1C4OAjNDzGt2aeO90hkicsToQOao+DtMmHUF55YISHk8enAQcbIXAx/9EpvZdHBGgBlE11cdBwpx/YGHdCNMy0T2QpUvwukpWA+SEd99C77+O/eFP63kMcv2POxo0Pf0Oe8jk5ySfpRePK3jLxs5i3mf86iL8sQsbDSuU1K4/86U3sajrgjFhwbLztylOjqP40OMi/okG85RUPnQ2kEaCPQ5AWRgrQx121AAnUj1Yevfh9KaXEuvEAB1OrAeaHxceTPnyijycMMwOJ4uAk3xfU2jfJx1nfkLc5DM1jQPI4jrYl7Vsg4VFX49PO3Zr3KrfVGPDHhS0m0AZNsGF+JPTnSnYLm+Vk8/wn73jufqQNGj6x5kS87v1g7VdtFYwGYNwrDXZiQyH0cau35pPYHwa/UBE97HzVkuY+0ccdQ178jdbKnkRyYQjzAB34Oe/j7Nw3ycdZb7GRI1R6DJJTyU8FJLxDjOBD88bVq78kvjmdfoC6nkkNeGJKG4ZO4i+3N2W9XTl35RE/vTqRO03IjFhwRFF0nvmHE0H+YGIgAfM2TCTGY+2J5/FqXRjcN3depXxteYHJaTGwiUnj4GIkkdI/nNHwB6gbcUDdClSuT6LxyUbmjZPzxPXHfvjCFVkhy1HbBQe4ZRqykyN8y0I88bdorjTMfCLb4RorwfWP0MVD40V5AqU6jCY4hr2KQaG14Hy1AbpnN+gAGgtx8uE0oLTO7BcP9bjgwLdccvzpaIne8LHqA52pN6GQcD0dBRAbeAm1nVUXuc/Gf7K+es7/OBqaF8pNZh/rNqz+wafEVvmWZWPp2X6NPeNOKLLz4h+E71x51E/lysr0l6FfcGy899hlksBnYXDZeDHo4zbw7FMHcJsaxPfwv7dhIOAY0MfJw7YqL4xHq5XgVUsP+dmG6Q/TTNQAg8D8TIgj4upjPYZt6YBBLFDSmBhu1Jm537D69tfLQ4srBmK/DAw56XW04JCHqjs4OTI2FjuLAGlpbNJ4pePQj7VMrOfJxvAOLJDx/S+cLx/wmib6zhWgrZ3ZL28z7cCnrXung1J/pj5u3cqr4aIC0Mc9lqJRs8H85ee8j095/Mfh0Lwyv50/N972O38vVyL+oK/2t+rUj7ng8mNsf77yqP/6XCv2QdOHfsFR3xq8XpJzPhwjE6n6B9DH6TQLKKc5ORKH6x+gCwQh2qCO0MdlkRhXgsobVxx1s9znLkv3HsBLv2zC4Ve+APEH/xMyFoTohzig4SnUiGkcjUbe7vUbXAtcSpUHFt9flP30EyEsk9s3v+3EwmqlcqPvY/qTEDKIA+ZtfkyAZzfYbbRg/w2/eq58cBhseWLz9reIVsupe1Zfsy+1DdoZzfQkzvZZ6MsTS+vVOQF+Gbjnku3Pl+/jWT14jI4pw8fTenlHTqEFD/anecD49z3/g2jfQs3ok/ANt534fvmw8YG+299yPHrxr1T+94qjbvpIn0zpi5ihX3DI15/OZwLLE25itDyEJlBxD8ooM4cQ6pGjuQFgA9GbXIRXaWjjbXL017sfffN3+uLhXVwIJz9OeHZ1VxYdMjv7eKt6uA98LMTZnvRhhRtXX/lBse2IVvaBTj/4uG8fbYaNxFvVY3yEQeW+Tvyx7PAbfxFWQl2cUJ6vg4+zPgt9nfL6hAwUhfXoExvWnjCwS+Gja164t0z0H4ZPWhXYg0K7fJt9nPVZyLYqJAj+a9lhN210eFcAX8DL6y8jv6P4W8ewmXYTdqVSX5g17tBE8iDPPp/m4/QzlADOQlxIxwq/V0OO4YEbbj3hrfLsoZ7wYVuefT7Nx9vaL5YnvmjwgsVaSP+6+5E3/Y/h8YZpMtQLjidWH7tK3Pcct17Qz0rA4V/6mBDmND1AI5VKcw2UV3buUD2gNMVkp3Xh1/c8+pf/QFIJe/MABxhaA29V/EED3B90lNEIjQciJxHbqruB0jeu/p2Xi45/U6z9mMhgFnY2qVWq0b2dGKpvy42D75svO5sQG2NhfRvN4pHiJk81c4GSuqfK0yUD+8S1c3z7J0Sr3aATJ3CoYnmWr6+fgz5udplNjTjkOD+Ewfc68XseTygzcdf9ubibe9P4i0ZOp3QxC9nY8BLgogv0oY/QF/BWBTqhUD/wAmf7Zmh1chVv+cbbTm77m0EmffD7Dbed8FrR/bPoGTa0Kr3abz5W6SLfoPRkfYXx11Yc9fI/bNXndNKHesERT9Tf6idc4lBOrh4UV6sfCe3ABdpFR+sE55/KczKAS7Ru2X2f8PzpDMhs6RvziM0l+MSNgliI53V0GPRjS1w5bQQBbSrZAdrEMCSEjbcd/664Xv+O2CW3VFCKsV/9LDuF0ov4J96tsqCjKxzQSvi/x9uTOO6+uDHm7KOt1Ad2k6bxD6K3r7/td87svp/uWjxx23PeLFn2u5Zv0jPGvWywlZB2E3bXA7lT+yuV3hcc8gVlNzZMV0rPwmz+q59ll/rbcLbL2l/0mx7lF7Tli7EWc8adUOPfx/EfhLXfp53DBDfcfsKp8kT2v4u9VfoCsN/2Ixc07oRwQhj+YPejjn5TGF4o18yGrwztgiOOz5ZghW+UUagrXjgXISPUYY5JBD5FEoPP4RoEJRuNkw14dAA6frBrW8AweLw6d468tvwX5WvL4Y8pFsRFY+PB3kT6UjgpG+Rk2pvcYlqtv+2kZ62/9fiv1qPg0zLi9at7tKC3HtkasNl+oWhOK4TH4/DO8LDrRjvua2FwtbRKft206SohenUv3OtEZqO21oI0HGGYhlH9Gxtuec7ZncjrhWfDrce9VTq6KK8t/ISS+MvhSgTubAX0cdZPAu9dccR/r56kvscqeg/QYk2o85qjtbIn22nRFzjkMcUn0adpa73TgqwunR2zdZ790Xmb15yoL9TrTFbxXHJl43eienSZrB/n+pr33rMvpU38w/gnu++512vD8LPulzN777WolkO74HjiF2tfJg/b7APDO1owOL4Gfo8Guq1IHMQCBgsPXcjE43I38DUrj/h5z68kVvnlLvFAEjNvkrRpCCwcREAdniwC5VhpoGPD8pHQx1kv1dNcnrzlhcs33vqcVz5x6/HfCKKxO0T/1w3WfvjCinzCvJF4J3Dlwf+9Rbz69Va8OkaksrU9jINB47eJ0ccthqan1M4R7D823Pact7Xqt1f6hluOe6/I/pz0LXOb9ZfC7qWaDe3tlw9CU/smAD6PMu8Jk7yHHcj9VvlPO2EfcUAfR13xpRoF8q2+yeOf6iX6qK0O0m7CNvZLbJZPjE98oXirOuth423HHS6vcLhSbFqEvLHcSWFqN+MyNfsb5YW3jcSLXznsv/NV9BW2ziKVwyUhOa+ZjEBx0KGWOCBKpl4vhwgNMKda+WWlEVbiP9zz6Nt+Ykzlvh8eSFwuA4+/aQO5FhLQXC8KESM7xlxjPHbc9NscKk8iBxjH1fWrn/OGoC5XcatyQQxF0AAooJYsgZWOP3OYyIJMFMj15FfqMpmEoXyqimSr7C56HFsPR4+QD8S2eIcdfsoVaD/Uo28B9TgIblCki10lqP5bPai9BU3UryLKJstm+eBJYqcNQJBNbEbRug7slzdzVMVnn5NF2tmVMH7/VL8Rtn71CccG9egf5WHyF6giTh+85xTfEND3nUI/hwNqwWu4wetex92L/eL72vw5wcUmsMc9sgeqyNZp/qOnbPzNFpOF+ib78bBIgSWqhhsCuYzCHDF/iv9hmBSzrT/j3wl81eO3HPfJPZ69+L1heF3RF3C0y7zdptXHHzBRi6+WPNoNMRiU/S7+6xbOqb508RHX6Q9E5uk3LLShXHDgMtnOndvOwH1NDig4zHCZQFw0ccmTtPx6aS8VTHYdzaAkyY+JKP7nvY5Z/Xm0L0v/PcBYEWYnoGyPFk+Lu9a5E7YfM+BO3py4Vr9E29RsgaAnlBrizhMK4i0fH5Ocqbuccfx1mwxDgdaf7OV+iE7cINTw0TOF8tNUMqdo3gjRZEUuT5UPOydKUddvQfaLK8wXBoNowdwFP0z06BBZcfR//eSJW46/Q8bCoVSdUCdPyLHzhQDzLSBKU7yUqFW6o92Evr5gkOOXisRT1t963MVBFH5596MX/aTTE0e85uy5G8YeeL4s9d4S12vnqivE+dqHC4L2qycAsyjbvy1AzCboQ7sJYabik9gvi5zLFx9282No33ORHyNT30q+UEeVxVwXiGL2WMxxTF5AFLUHbZwlWfsloZWvqN28BSMbdo6mV/QZd8Ksvlk9wEcerevM/gvW3zr67A23HP/n8hMUXX0tGeeasfHxl4Rh5Qj5APNb+Xbip7I6tTtef8ex+0yMB9eIy/WKvHO9NqPdhLSN8crK7sX+kcrI+YsOf/n6OH55savJrLIdH/+tfEazFf1QLjjGdm5/g2TdPLPHjfQ84zgrEGZmB5IJIYmnChUXBj/c65gVf5onuqT17gGd0twE2CxFplUNKeOK6FhkjJd0g1bD05vETxorzZfv402fWDFJY2I26dqbHCQ54fCGCYDM0iR7hcV1bipDc8dLaL1Mti/U/usXHXrDbybrfZI6vAnRJtsB2y+fwquy2HibePNtG24d3fL4L4+7RmL233Ll8fGoHj4ezqmsD+tRRZ4P2LMSxHvEUbSXROa5T4zf92IJ66LQWx/qlQpLEDUVphQdf5lM5dsw/SouUTXRLM38OWvK+c/E75e6GTmLD9p7485b78NwaNFTYfl/knwYkIXzcT+X24o/qFbCm+TK2T2VkeqmJavqWzbfvmDxRLxzz5Ew3GuiHu1ViStHSq6cNj4+fpxMGRV9ZicIbhdzul5wBGPBp6X9ARlXtDjsv/31qHbD+luu0P6Y64AoufkvdAZHhwr4wJxT2snLadJECoMr7hLiIagYygWHBO88m8BttUv3ICmAG8REYjggima50lq6T3kgQ9junT9/0TmdfprSDspdhx6owcMteEl3MZNU109lnGBd6NJzXmMONAttHDL21XwMapOPvQ4617CR24h+tii/kK21yyk5snzUzFGc9klPDfrTFta7bj1AyQaz7Wk3IXrkWPCEeGiDRf/hVXSFrpy7/+eeGLvvL6TRvpQIATqmEh2Kt1+uFuA9HfKVQtnsIlQQT9TUy7iihBnA9JM9EHfkDkRfi+Cg4i8K/OceR998HTSZWrEraYw7YZfxb2v/1HRs3zoML62v/+Wxj0gUnp7PXWj+46V3x4sTjueFyXCiHuy8BV6056InXCZFyCTNn3wtu6HKFc8ljbfsbE7Il1Gs/YPO/+z8lTf/0WL4Y+guwWy87cjDZZI71oLFjAD0cVfrRiUmRZuUhSsdqcbk753lstjYKpehzuz1JT2+yBLP9wASMfcPscJfi5jxRA1oOAev5QDaIhf4h0OlGVnrQLN8Ma5GfkdDnmiueBCSHK2VftqXp0G2f62HyFZ/sBt/gNoX1FCFobSz2WB39ofb51QX9vx7CeFhl45L539nurTWD7qjACrubFWyh7O+CRZmvyplO1URO6ejg6avo8Hn6ncPgs/RABkXQhGokgghSZ5/+Wsc96tYzHuJv2hAuwlVWxyYzdgPqNyQ9pjB4Ff8tfBv4fa7/jX2gqvTCHt0ji42KAo+1v+M3Wa12T209ltcNF9axAdWodA6HCoNZA9nvUFtoruhW3BMTNTPT9Uz49QSmOUSo1WyGh9aO+uzUNrjl/MqYXjuymNuuSPtp8QG5gEudwGxIVSEOQkLvTShgaA0pkTalvLAA5ylW/6mDiCIQoA6HNDH2V87SN2oL8QBB4RI2ymk3YQqGnwojp9tK9Xgc8uPvFG/kmgM3e93f/aSi0XeOmvJDnDEToE6fMjsVz/4vjUjUtVpDn1N/4OP7bQNbWUDEEkD6nCBcu3pypXH/OwmbdaPnYjuNf4d298PPdvJiOPrW7LQ1/Q/3AkccBD2sy/2D0WBD6qwL/Y/dPZDIRQXkARXRMiuvsfxP1QLjjh+4Ugchee2NNbZnILJnZP1jS5UovCv9zh2td3wSgWVWL890CIhbdGIvJWpFTwy8Ah9PKknXyJP2gBvMSBUFmrZTm7Qmnz05doSksdBv23iDu1LBVq/mChA44SRhawD9Ns6gX4fppfpSnk+TXGRQWjyKFeg+kBVmQirlY+6LnoGuL0orvkT7Y9SfBuAD6H99ANUpu6AihcV/0owFo5U/pRu6gsU35rOBhWnHfA9Nj0rM/aAKITWTilsl7Vf+YvdhXPCH6uuqi/Um0w/p7MbR4XbD13ajP+evMN5QOU7m2k3oZLNF7DTt3Uq47+r+Kt+ogMgdXBQ9fF0VD+AD8XxT3X8D9WC47c3rz9dkmEvBiML5ROFBgnQx8nnOxC4PtrhIHDZvrr3c371YfNguR+IBzIJi3GpsRGguMZSiahooGk94oZq7BTxoKD+IPFxqcovvgzB9dBBv4qN3XATzaCdFUI9ytjXQMNBpl77QE5KlfWX2tyz/WHwhX69Q2aPY395hbwaVd6SaIW2DrX9omoyBzjcqd8M/CALrocO+lVs2Mp++XHHD+1+5C/wMFwfS5oL0MXXzUsYJo726+e8j/dRqa5FqV9C9wOCg8h/0bCf8e/aYDSAnb6tFOLTBNeYOmj5lsZcBFi9g4XE3zq1HBLc78OvStR3yJTHv5MzVA+NysLzPHw5jIbDSOAc9E7nlkCWI9rCIBsKTcnhL/bee+lbWzYuKwrygMUkjSIjalHGRIH7tpwsVQk0YSFOCLqHN0qTOqwsMch1tQlekU+aa8o2cpj0zXvHyB3Vx3VCPKlvo2+W35Rt7DGlQb0p2h+G6+fOm/cB2NKvMm9R5T07tkXyeuZ4j6w97fTN8qe2Mmj0BWAf7IcM2UwaEMEKjr8sNn658tlL+vqbMPqlWOiNQlf5eB5N6hu9CcLk9kPkIIpo8UNR+Q1pdGhAo8bt8inxBZtDeQ9vlCZ1bexHU7aBKM1XNwZx3EtB7KjUrpD/9Fniq4Z46KUA9avV0+N2NDRXOLbcfOzuMtm/EoFDEmLDxEGoOAILmvsjDqgbUgm4phTTCu4Jfjt3bvWs8Ok3Ja9wTpxVIgV5AHFA/CDeoIaJuIuhRQknXYsauIGzEGd9FoKPPMA1Xxz0cdTlF1VQqkxf4yENR8St3vpqrW+Wv2j7ZQC/v98PPy991i+eEMPf1eiL4bQfOg42/uEOeRXc+f3+dhsmYtpB6NsGWt7m8wD3c97HUTfIUqniq8Izdfx356nGk2jjfFH0+Iemfr74Mffx1hY16mt8pOGIOKDNe4Tsl7CxrfHTfqsbom+pbI+2nyvpqb89kYwsGKvWmPKNBuEIdBTWZyCsDYNx+bnu16w8avUjxlvuB+EBiaX+IX7AkphaTIQoNMvGFEIxnya4tnVQj4gD5mxIF9ABfZy81gXyxIo/KNmOMK895RBCCnAW1Rc091ek/dLLFbsfc8uX2Hc/4V7H3PJNuTL0YfqC9mYh+pwu+7O64NiPmY+Tt0lfFzvW+218PKkPg7euOPb/t3etMXZVVfieM3f6VCxtZ4YpD1tUhLRAOzNtobwMglhNeBiRYtSUABHjDxOj+E78YQw+0R8S+SMxEiQSFDUgjxgaUAq10047FJGBQqEPoEUstPIovcfvW2uvc/Y9c2/n0XvPnal7z9zzrbPPfq1vrb3Pvvuex4YmvDPFWc98iYiP+JND2TOZWOPjt9mXLa2rpekw5/QNj8IYDzXT/00nH32dfdnSHNr+emvyWMnBKzjSLGIv7ImtsJ1c+o/cf4xHw2F8Uudh+mf8VE/OJGnLNquphJjKdSS2ROO0TSabspKaaSWXpE7VZTkSktJ1XcseH9PT5zRj2DaEAbEpSiLyo6NAOgERmyLObCod1NIxLYMhRS6ZOvRlicRmWIf34jSN8wvzGinOtQvysPYwv+nAAlz9gpAlu0NtWVVzmdlVCzS9DGvV58WlelvBUr3uxHE8VJ5V/qwW3pxtx5JLvg3V/jwR9afti7Y/6vt+R8/G25vBNk9avu+J7c3uhp79x69/c5806nMDE/2wWf4/fv0P3f/99o9axuPiaSIzk6Hkb1L/b5b+vg9avzcUfWDUFNkHuePQ9DaUdKa/7EyQFY6X1y1cjA63mA2lckSRcVIwtGmFIVKqsg79vCxDyomin3Uve+IWp2uAohjgmMZ+7fftenXTcAxENXaGUgY2KapdOYiZjekPIhOZUP4tT67MUZTPprD8usGOEV07DNkOqd8hZQmGtQodh/542uTrcVy5bPb7+vfWKrJRcXzFdTTzXbhrTJ7AqMVSNwbRUbkvWn+/PrE62mJ/TbN/FP0Bk42GPnNDiXTbovy/uPlGae7ijfegM29J+0GVwp7eFIvSn+5r4wDltK9ix3yb7RlLcJPFovp/S/zf+DCOhLex9/8JscLxTkmfvSEGg2JyAskpRJJlbHYoPgNDG9rTRw0x63qga+mirxhPAVvFgDtByahjndohbKmdVNG3/2hb6+bY8AP9g/eIRJQP/YgyUWTuMq5OECfDMaIvu+Q8sTEQVc6QsRoMNWUWh/hce8aqP75M7Eva4pVzFm/a4iprKnSc/PfXZ8Qx3jURbVJtWqt/Xtli7B/d1TntA6vAgW/YfFMOax9PyIRrOG4P5Z+5Wsalf66MZu2SL7z78FtaPnUTJTOEnmP1/3xbx6X/GPjN11d73+lWQP/P199w/f0xz5ddxTrm0ZLZuKdxxgETUrbgyxNghSNZ39sOr+O7U9BCfAwpy/KNQ8iimENVUhU31QxhhKdnTGu/go/ZtbiARTPg7CnVUq4dfJ+mTLsaUtZSDFmGykSRnb9w4Ko1YFvNmho5+G2EOeVbif62mE5SJV5zZOVZuVqCtlfb6LcdWV3Q/NY+jbQ4S5OhX4bpbUhNtVZFELMviaOPdi0ZKPTNxu/u2bh76rTp5+P80a/tbY3+yqLjwphpsv2h7x2dPbMulyexZmZruMRvfmZ3w7z9G6F/wxs+QoFzlwz8EX7z83rJ1J+y+T11bqb+I/X/eu0cfbz1de25ms/ihpcy0fT3x1CVYRHvnKztHX//b/kKx64K3gqbVHiHiljDUHecoaiwnVAc+sSkZsQxzEdeS8rli2edNnhYT11MywzCuBigfeQDu6ZYw8a+HSnLYOOQcv7DE7k5vZzU5Usn/INoX0ANXX4qkJYDQWQiBR5zKLJrI6e3MsWVtjgdqBP/DF1axlnI6zPW9GyK8UDZ+zwfJ+3nFT3ZML14J0w5af8wGvRwi/QXLoq0P17+9auO3pOubPQdKcapjxW+Ldb5vaFn+9QPDld/v86i5I6k/avoIY9ZPzFk/dTV0PQ2bIb+7OtSLpECgqHuHd42r08D+3/h/t+o8U+/4imvLZ9wJMnB1ZmJbeAm1vowpaXxZZcWjy3H8U/P6338nzwaQqsYwMvb0Iv5obkMKctg45CyJlEUmYMus/GkLoNRhpKbpmYpLAMfjhmGKnOiwDjNNxztmObDVvITfTktX9qigxLbxbJTdPX49VFX1tlQ/UulB6eX2ns7+vo3oMqWhdl9/Xs7e2afH8XxjcIDWiK6OjS9Dc3uhqQYbAvVRP6JrR2KLNxpuSxHcjhUmeojJ4vBR7l3dnHt8O3BMqo/zJflt7KIqRwlb2Px9wudvYNXF7VKGmMkLkJ/sld0iPr6D0wptX8KFL9Cm+s/pYlm//EzYz7WlP5PRydpZIzgkHJT/N8vHxVIPUD6J+tLkS3BQcYdSn+9pBaJEFo64XhpcFEX3rS3UpRAY8QBHYo7QpkUPcXS9F6cKh5/s3v50N1ULITWMpA5oHNKGI2OSu81pMx0hiIjjSE9mYcNfVk9P0tr9VFryU8BQepyqLKrH56FlEyCYKh7/lbqZAok0Q/bTFnbzjIpE3253nFmlnZoIZKXcZZedUUFKA8J38At3d/o6p39kaP65NkYftNaIvPbflfvpi+jeTiBJK/7Ovuy6ePHmd6Gprch81Trr5xrXLWs/Cj3lkfyi61QjgtSF2SiyiPYPyo939YWn9PVt+mXVkYRiAUO8QHTJdOPjVfdSY/J2fGMs9HpX4Q2w+vAZPX59nLblVDyzQlt/+FNHzkGF+CYf9EGlIm+bMcRqX5IY7o0hmI/lzezL6pvqP1H8P+ctmwmg2sucOzj34RZ4ajsf/szeNNe2YyjijkNRc38xo4RfZk2iW7rXv6vH+RzhP1WMaA2kk4EW43axr5ZRcbGkIL0AId+b6ijptbPbNoGJrM4X86OWzpWmnXOdMBALGULVla9/Hp87PpjIv7XqNR+amffphuKWNI3fUaLnX2Dd5SiqUtA0b3M02j9xeZmd8Mm2h8a8Ar0m6dNKS2eu3jTutHy0PB0oisJdR/RmbW4iAb4P0trRZizZOCBtlJ5JZzl9br1F6C/9Vm2wWTrp3XbNcKBye7/9dqvY52OgzbuGeb5Mw4N6bMqZ+S1dIUD126sRouy1phM9DuW62ymCFFkNxvEbdDru4859uqsoCBNXgb0Qs5SiejLtTUyh059InVyN0BLNs/HahdTN9YuKJWLzfiLHYLF1c10GAfwg8wjUdR2UdfSzRd09fU/cxhFNT0r29e1dHAlXhz3SVT2QmMq9G3uy7VLb4T98WVlY1spXtHVO3hd66/98nX25ebpX7vk5sR2LB1YE5XL5+KkNVS7Bl9nX66duhH2r11yq2J9nX25dnuarb+NdY0a/1o24dj52Af7MG1YpDTqyQH72OVW/3hM4zRVfptgHRKO++KUg/Gl0YI1b+aPh/1WMuBO+P7E0SaKDv3OkrXUlg+Iej2EoaaHR1iZ8A4NhlkpqSRpsUd09RrWqt+P8+W0vJzgp1E51z5r6yHqhxrv4KT3p6gturBr6eNnYTn//lw1E3q3q2fznaUp8Sm4aPc7MNlu44G9V3g3HAX/tLWG5tsfbRvCe1Gu6ew7eencvs2PTQySm6v/O6UCH8RRh9DOJQMD0fS5PfCO3zCJ9SFN3lz9pS7nh1avYZ3mjiqaZWg5GU50/ze9DamoyURfrkeCn0Zly8cx2ev/roCWvbwtOXhgNZvkB/+CG43HUo4MQJoSHLjfx/Qo0r+FC1Ium7viqR1+OUGeQAz44wealdsVp+YSnTmuympnasF9Oq6iiCo755F45xdMmaV1PoMYudpajml55kcaZWW7AiXSl11GB5zpq5/atw9OiiibZtXp02h32FLhjaxsNS8C/W1pWunWrlMHX8rlnFS7x5y+eT8a/L3khTN/8vKu164Cq3gGTrKgnv7GA+2uNlfOVVY7kQC1u9kIEWSNmZ2JTNZ0zGFpNQG3w+xfivqxonFDR98nfs+Hm5VKzXtSOVs0uqADNfXw/VP1Mp1Q0mHq37IBP0dC58I1+xD1uV3rF94SR9GNlUpyOpM0W/98+Xl/yTVzVLu48YEtr53Woh3mdv9/xj/HTkv8Lxl6/9Sdeyq8gAgOxgHbDQ4C7HjaOnUOr7PJKEOTaYI4jj5/zPKnH61t6RDbSgbMpmZfIoOeYDKbj3S8pg7OP3iME1J4jCD3h5XP4/Qz/KXHXZxE5DZS3iHS549LsQnK1uKH1+/8G77Ka6eextntMTyW/L4ZUfl+Pt8iV/2k33UvSLwpSS6/eff6Jy+CbVZhQnYJOvpRVG6YfRw/9fyjJiHjsD++mLwIL/gdVpFuP6ZncK2WOxEmGpmG2XiX9Y/sqCeNQ3/z/9avb3h6QOzu2/Jgkny356X+O1fhJ9QvJZVkmY0J1Sm9vcPQ38YCYqOCcDtC/6/n36ZrveM12+g1XcajSTD+mR4tmXDs2H3wYjRgNhtRbXhjUtF8wtBPj1nxT7uXP/NrxoUwcRkw+xqypb48Ust1ENZvPpKWrsHO7VyFZcmu5yTV5Vf7FMtDA/RbsorptyrsMkYhRT8OstVNlIDljTh+Az/v4Se96A0Utg9ZdwJ3YBDZjju1t0Xlts1JW7TZrQJYxiMa3e2keLR16Z7k2Q9Ne/nfe1biW+ylGCDPgX0WjFb58dof+WjILcCHYIs7O3suX6OrGaOtufB0qUf5NY9X/6yMan8u28w4S9ByydnlNjTkthf7TzsjqhzEzQTRJeiLxzVaf5ZX1f9L0au4ruBhfBG4v9xevmtcZKBMf8ypJdeKG01dTdcf7mF1aHuq/aU6DnvCn0MA9bJJk6atwYWQrkdrOrllbBZuXzv/bgwHHxvW+mEVUnnTkAdVxqB137wz+z5e1D3yw5oVIgIDgYFxM7B7fW837o48C9357EqSLER/PhED1wlYDSnLNKGqy2OHk8l00Ko5JrxZiuLnkHBrFMWb4iT6G27BfOToJQP/GXcjQ8aWMgB/iF75x6K+g3FyLqb0y9CYZbD8fNgYYpWDYN/isiNMwWBHkijCs1VKz+ILwBB85IlSnGzGz2ob5vQMPokTJpOFUAADZpcCqtIqdq8/pfvtt994ARZuy7xBj9nSOJEhv1xEP8Ptgk/NmPGe5WEwUc7CNjBwJDCAn2DaXhwYOj6qHDgRPz4dDZ1morPPEMQr5JK4UsEzSf6Lycd+DA/7S23xfuzviduirXNOH9gZThpHghccWgeulO3Z++oJlQMH34s5wjxMRGZiSgEfiWbgiVI8acA3nH/QV+LSPlwUvKcytbKjc9Hgy8FHDs1vEUcLn3DsWDv/eiytyvMyWDm9JG2Ere24bzP55Ro84XBvnCRnzFvx3JNFkBPqCAwEBgIDgYHAQGCgMQwUflssVkdX6zRDVzFUVmX0an/EYOrqyzyKOQie51a5Mkw2lKuwDQwEBgIDgYHAwGRioNAJxwtr5y/HTOIUWdbAfEN+OnGoP6doHFc8dNVDLwhkLPa/fvyZ2/4ymcgNbQ0MBAYCA4GBwEBgQBko9C6V6GDlKt5ByAmEBu5QdtMLd3EYf0qxIEej6NZjV2z7kcUFDAwEBgIDgYHAQGBgcjFQ2ApH8uz8aZg8XIEVjowhk4m+bCk4D4lK646dF19rUQEDA4GBwEBgIDAQGJh8DBQ24dixq3IBZhWz7A4UUmUrGUSVM+TKB6J3YZZyWbTgufDY8snnW6HFgYHAQGAgMBAYSBko7CcV3P/Me+7dQ0L4KGgGPlGPsv6kIlHpJnqrPU4u7VixfWcaFYTAQGAgMBAYCAwEBiYlA4WtcOAWk6VkyFY1KNuzfIj88FiGlWu7V2xv3Wui2cAQAgOBgcBAYCAwEBhoCAOFTTiSKOHLeqoWM/xbX30ZD2j58XFn7ZA3CTZEy1BIYCAwEBgIDAQGAgMtZaCwCQcuydjK6zfkeg0i/hgMReYKR6l073FnXfM1ORg2gYHAQGAgMBAYCAwcEQwUNuGIytFNmE0c0Ks1ONmwu1UMufiRrJs5fdqqCf6SpSPC8EGJwEBgIDAQGAgMFMlAYROO48/YPoRJxvX48DGiAF3tMMTu2plTZl44u2/r3iIJCHUFBgIDgYHAQGAgMNB8BnTBofn1pDVse3jeBaj0i5hynIe5x1t4y+Mz2P/F8WefdEcUrXknTRiEwEBgIDAQGAgMBAaOGAb+B5nwCpLPLNx7AAAAAElFTkSuQmCC"],["fxFlex","30","width","295","height","295","viewBox","0 0 295 295","fill","none","xmlns","http://www.w3.org/2000/svg",3,"ngClass"],["d","M182.629 183.635C213.842 170.774 228.719 135.046 215.857 103.833C202.996 72.6204 167.268 57.7435 136.055 70.6048C104.843 83.4659 89.966 119.195 102.827 150.407C115.688 181.62 151.417 196.496 182.629 183.635Z",1,"fill-color-0"],["fill-rule","evenodd","clip-rule","evenodd","d","M169.522 122.093C171.059 115.241 166.054 111.136 159.022 108.13L162.04 98.916L156.431 97.0797L153.493 106.051C152.019 105.569 150.502 105.104 148.995 104.643L151.953 95.613L146.348 93.7769L143.329 102.988C142.106 102.615 140.906 102.247 139.743 101.867L139.752 101.838L132.017 99.3019L130.057 105.293C130.057 105.293 134.224 106.57 134.131 106.624C136.402 107.369 136.71 108.93 136.552 110.138L133.115 120.635C133.271 120.687 133.473 120.761 133.695 120.869C133.66 120.857 133.626 120.846 133.591 120.834C133.562 120.825 133.534 120.816 133.505 120.806C133.375 120.763 133.24 120.719 133.102 120.675L128.284 135.38C127.95 136.062 127.157 137.065 125.569 136.548C125.62 136.635 121.492 135.211 121.492 135.211L118.184 141.544L125.483 143.935C126.298 144.203 127.103 144.476 127.899 144.746L127.901 144.747C128.431 144.927 128.956 145.105 129.479 145.28L126.429 154.6L132.031 156.436L135.051 147.215C136.579 147.75 138.064 148.25 139.517 148.725L136.509 157.902L142.118 159.739L145.166 150.437C154.773 152.984 162.15 152.77 165.87 144.183C168.867 137.27 166.555 132.99 161.623 129.952C165.417 129.361 168.406 127.109 169.522 122.093ZM155.149 139.449C153.059 145.84 143.068 142.413 138.496 140.845L138.496 140.845C138.085 140.704 137.718 140.578 137.404 140.476L141.449 128.129C141.831 128.254 142.299 128.395 142.829 128.555L142.829 128.555C147.571 129.985 157.289 132.916 155.149 139.449ZM144.22 122.79C148.031 124.108 156.343 126.982 158.247 121.175C160.192 115.234 152.086 112.815 148.127 111.634C147.682 111.501 147.289 111.383 146.969 111.279L143.301 122.477C143.565 122.563 143.874 122.67 144.22 122.79Z",1,"fill-color-15"],["d","M158.075 173.411C189.288 160.55 204.164 124.822 191.303 93.6088C178.442 62.3964 142.714 47.5195 111.501 60.3808C80.2885 73.2419 65.4118 108.971 78.2729 140.183C91.1342 171.396 126.863 186.272 158.075 173.411Z",1,"stroke-color-thinest"],["d","M259.352 172.363L85.4595 244.016",1,"stroke-color-thinest"],["d","M122.291 259.352L85.4593 244.016L100.795 207.184",1,"stroke-color-thinest"],["width","225.692","height","225.692","transform","translate(0 85.983) rotate(-22.3941)",1,"fill-color-30"],["fxFlex","30","width","298","height","300","viewBox","0 0 298 300","fill","none","xmlns","http://www.w3.org/2000/svg",3,"ngClass"],["d","M248.333 237.5V112.5C248.333 105.625 242.746 100 235.917 100H37.2501C30.421 100 24.8335 105.625 24.8335 112.5V237.5C24.8335 244.375 30.421 250 37.2501 250H235.917C242.746 250 248.333 244.375 248.333 237.5Z",1,"fill-color-0"],["d","M273.167 212.5V87.5C273.167 80.625 267.579 75 260.75 75H62.0832C55.254 75 49.6665 80.625 49.6665 87.5V212.5C49.6665 219.375 55.254 225 62.0832 225H260.75C267.579 225 273.167 219.375 273.167 212.5Z",1,"stroke-color"],["d","M6.20851 200H24.8335V150H6.20851C2.73185 150 0.000183105 152.75 0.000183105 156.25V193.75C0.000183105 197.25 2.73185 200 6.20851 200Z",1,"fill-color-0"],["d","M31.0415 175H49.6665V125H31.0415C27.5648 125 24.8331 127.75 24.8331 131.25V168.75C24.8331 172.25 27.5648 175 31.0415 175Z",1,"stroke-color"],["d","M161.417 187.5L142.792 150H180.042L161.417 112.5",1,"stroke-color"]],template:function(t,e){if(1&t&&(r.YNc(0,Pi,1,0,"ng-container",0),r.YNc(1,Zi,18,5,"ng-template",null,1,r.W1O),r.YNc(3,Bi,19,5,"ng-template",null,2,r.W1O),r.YNc(5,Ui,19,5,"ng-template",null,3,r.W1O),r.YNc(7,qi,17,5,"ng-template",null,4,r.W1O),r.YNc(9,zi,13,5,"ng-template",null,5,r.W1O)),2&t){const t=r.MAs(2),i=r.MAs(4),n=r.MAs(6),s=r.MAs(8),o=r.MAs(10);r.Q6J("ngTemplateOutlet",1===e.stepNumber?t:2===e.stepNumber?i:3===e.stepNumber?n:4===e.stepNumber?s:o)}},directives:[U.tP,P.xw,P.yH,P.Wh,U.mk,ue.oO,Z.n5,Z.$j],styles:["svg.small-svg[_ngcontent-%COMP%]{height:50%;min-height:50%;max-width:100%}svg.large-svg[_ngcontent-%COMP%]{height:60%;min-height:60%;max-width:100%}"],data:{animation:[Ni.l]}}),t})();function Yi(t,e){1&t&&r.GkF(0)}const Gi=function(t,e){return{"small-svg":t,"large-svg":e}};function ji(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div",6),r.NdJ("swipe",function(e){return r.CHM(t),r.oxw().onSwipe(e)}),r.O4$(),r.TgZ(1,"svg",7),r._UZ(2,"path",8),r._UZ(3,"path",9),r._UZ(4,"path",10),r._UZ(5,"path",11),r._UZ(6,"path",12),r._UZ(7,"path",13),r._UZ(8,"path",14),r._UZ(9,"path",15),r._UZ(10,"path",16),r._UZ(11,"path",17),r.qZA(),r.kcU(),r.TgZ(12,"div",18),r.TgZ(13,"mat-card-title"),r._uU(14,"Boltz Submarine Swaps explained."),r.qZA(),r.qZA(),r.TgZ(15,"div",19),r.TgZ(16,"mat-card-subtitle",20),r._uU(17," Boltz is a privacy-first account free exchange and a Lightning service provider. By doing a Submarine Swap on Boltz, you can swap your on-chain Bitcoin for Lightning Bitcoin. "),r.qZA(),r.qZA(),r.qZA()}if(2&t){const t=r.oxw();r.Q6J("@sliderAnimation",t.animationDirection),r.xp6(1),r.Q6J("ngClass",r.WLB(2,Gi,t.screenSize===t.screenSizeEnum.XS,t.screenSize!==t.screenSizeEnum.XS))}}function Vi(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div",6),r.NdJ("swipe",function(e){return r.CHM(t),r.oxw().onSwipe(e)}),r.O4$(),r.TgZ(1,"svg",21),r._UZ(2,"path",22),r._UZ(3,"path",23),r._UZ(4,"path",24),r._UZ(5,"path",25),r._UZ(6,"path",26),r._UZ(7,"path",27),r._UZ(8,"path",28),r.qZA(),r.kcU(),r.TgZ(9,"div",18),r.TgZ(10,"mat-card-title"),r._uU(11,"Step 1: Deciding to Submarine Swap"),r.qZA(),r.qZA(),r.TgZ(12,"div",19),r.TgZ(13,"mat-card-subtitle",20),r._uU(14," You have one or more Lightning channels that are running low on outbound liquidity and you want to fund it using your on-chain Bitcoin. "),r.qZA(),r.qZA(),r.qZA()}if(2&t){const t=r.oxw();r.Q6J("@sliderAnimation",t.animationDirection),r.xp6(1),r.Q6J("ngClass",r.WLB(2,Gi,t.screenSize===t.screenSizeEnum.XS,t.screenSize!==t.screenSizeEnum.XS))}}function Qi(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div",6),r.NdJ("swipe",function(e){return r.CHM(t),r.oxw().onSwipe(e)}),r.O4$(),r.TgZ(1,"svg",29),r._UZ(2,"path",30),r._UZ(3,"path",31),r._UZ(4,"path",32),r._UZ(5,"path",33),r._UZ(6,"path",34),r._UZ(7,"circle",35),r._UZ(8,"rect",36),r.TgZ(9,"defs"),r.TgZ(10,"pattern",37),r._UZ(11,"use",38),r.qZA(),r._UZ(12,"image",39),r.qZA(),r.qZA(),r.kcU(),r.TgZ(13,"div",18),r.TgZ(14,"mat-card-title"),r._uU(15,"Step 2: Sending the on-chain funds"),r.qZA(),r.qZA(),r.TgZ(16,"div",19),r.TgZ(17,"mat-card-subtitle",20),r._uU(18," You send the on-chain funds to an address which can only be spent by Boltz when it pays a Lightning invoice to your node. "),r.qZA(),r.qZA(),r.qZA()}if(2&t){const t=r.oxw();r.Q6J("@sliderAnimation",t.animationDirection),r.xp6(1),r.Q6J("ngClass",r.WLB(2,Gi,t.screenSize===t.screenSizeEnum.XS,t.screenSize!==t.screenSizeEnum.XS))}}function Wi(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div",6),r.NdJ("swipe",function(e){return r.CHM(t),r.oxw().onSwipe(e)}),r.O4$(),r.TgZ(1,"svg",40),r.TgZ(2,"g",41),r._UZ(3,"path",42),r._UZ(4,"path",43),r._UZ(5,"path",44),r._UZ(6,"path",45),r._UZ(7,"path",46),r.qZA(),r.TgZ(8,"defs"),r.TgZ(9,"clipPath",47),r._UZ(10,"rect",48),r.qZA(),r.qZA(),r.qZA(),r.kcU(),r.TgZ(11,"div",18),r.TgZ(12,"mat-card-title"),r._uU(13,"Step 3: Receiving the funds on Lightning"),r.qZA(),r.qZA(),r.TgZ(14,"div",19),r.TgZ(15,"mat-card-subtitle",20),r._uU(16," Boltz pays the Lightning invoice to your node and claims the on-chain funds locked in the previous step. "),r.qZA(),r.qZA(),r.qZA()}if(2&t){const t=r.oxw();r.Q6J("@sliderAnimation",t.animationDirection),r.xp6(1),r.Q6J("ngClass",r.WLB(2,Gi,t.screenSize===t.screenSizeEnum.XS,t.screenSize!==t.screenSizeEnum.XS))}}function Ji(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div",6),r.NdJ("swipe",function(e){return r.CHM(t),r.oxw().onSwipe(e)}),r.O4$(),r.TgZ(1,"svg",49),r._UZ(2,"path",50),r._UZ(3,"path",51),r._UZ(4,"path",52),r._UZ(5,"path",53),r._UZ(6,"path",54),r.qZA(),r.kcU(),r.TgZ(7,"div",18),r.TgZ(8,"mat-card-title"),r._uU(9,"Done!"),r.qZA(),r.qZA(),r.TgZ(10,"div",19),r.TgZ(11,"mat-card-subtitle",20),r._uU(12," You swapped your on-chain Bitcoin for Lightning Bitcoin, while also adding outbound capacity for your channels in the process - all in a non-custodial manner. "),r.qZA(),r.qZA(),r.qZA()}if(2&t){const t=r.oxw();r.Q6J("@sliderAnimation",t.animationDirection),r.xp6(1),r.Q6J("ngClass",r.WLB(2,Gi,t.screenSize===t.screenSizeEnum.XS,t.screenSize!==t.screenSizeEnum.XS))}}let Xi=(()=>{class t{constructor(t){this.commonService=t,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new r.vpe,this.screenSize="",this.screenSizeEnum=G.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(t){2===t.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===t.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(le.v))},t.\u0275cmp=r.Xpm({type:t,selectors:[["rtl-boltz-swapin-info-graphics"]],inputs:{animationDirection:"animationDirection",stepNumber:"stepNumber"},outputs:{stepNumberChange:"stepNumberChange"},decls:11,vars:1,consts:[[4,"ngTemplateOutlet"],["swapStepBlock1",""],["swapStepBlock2",""],["swapStepBlock3",""],["swapStepBlock4",""],["swapStepBlock5",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between center",3,"swipe"],["fxFlex","30","width","323","height","323","viewBox","0 0 323 323","fill","none","xmlns","http://www.w3.org/2000/svg",3,"ngClass"],["d","M53.8333 134.583H80.75L94.2083 161.5L117.792 134.961C121.616 130.658 125.869 126.602 131.194 124.413C136.45 122.252 142.103 121.125 147.842 121.125H242.25C286.847 121.125 323 157.278 323 201.875C323 246.472 286.847 282.625 242.25 282.625H147.842C142.103 282.625 136.45 281.497 131.194 279.337C125.869 277.149 121.616 273.092 117.792 268.79L94.2083 242.25L80.75 269.167H53.8333L67.2917 228.792L53.8333 201.875L67.2917 174.958L53.8333 134.583Z",1,"fill-color-0"],["d","M26.9167 107.667H53.8333L67.2917 134.583L90.8755 108.044C94.6993 103.741 98.9527 99.6849 104.277 97.4963C109.534 95.3357 115.187 94.2083 120.925 94.2083H215.333C259.93 94.2083 296.083 130.361 296.083 174.958C296.083 219.555 259.93 255.708 215.333 255.708H120.925C115.187 255.708 109.534 254.581 104.277 252.42C98.9527 250.232 94.6993 246.176 90.8755 241.873L67.2917 215.333L53.8333 242.25H26.9167L40.375 201.875L26.9167 174.958L40.375 148.042L26.9167 107.667Z",1,"stroke-color-thick"],["d","M134.583 215.333C142.016 215.333 148.042 209.308 148.042 201.875C148.042 194.442 142.016 188.417 134.583 188.417C127.151 188.417 121.125 194.442 121.125 201.875C121.125 209.308 127.151 215.333 134.583 215.333Z",1,"fill-color-15"],["d","M107.667 188.417C115.1 188.417 121.125 182.391 121.125 174.958C121.125 167.526 115.1 161.5 107.667 161.5C100.234 161.5 94.2083 167.526 94.2083 174.958C94.2083 182.391 100.234 188.417 107.667 188.417Z",1,"stroke-color-thick"],["d","M201.875 215.333C209.308 215.333 215.333 209.308 215.333 201.875C215.333 194.442 209.308 188.417 201.875 188.417C194.442 188.417 188.417 194.442 188.417 201.875C188.417 209.308 194.442 215.333 201.875 215.333Z",1,"fill-color-15"],["d","M174.958 188.417C182.391 188.417 188.417 182.391 188.417 174.958C188.417 167.526 182.391 161.5 174.958 161.5C167.526 161.5 161.5 167.526 161.5 174.958C161.5 182.391 167.526 188.417 174.958 188.417Z",1,"stroke-color-thick"],["d","M269.167 215.333C276.599 215.333 282.625 209.308 282.625 201.875C282.625 194.442 276.599 188.417 269.167 188.417C261.734 188.417 255.708 194.442 255.708 201.875C255.708 209.308 261.734 215.333 269.167 215.333Z",1,"fill-color-15"],["d","M242.25 188.417C249.683 188.417 255.708 182.391 255.708 174.958C255.708 167.526 249.683 161.5 242.25 161.5C234.817 161.5 228.792 167.526 228.792 174.958C228.792 182.391 234.817 188.417 242.25 188.417Z",1,"stroke-color-thick"],["d","M189.321 97C186.935 97 185 98.9345 185 101.321V112.679C185 115.065 186.935 117 189.321 117H237.679C240.065 117 242 115.065 242 112.679V101.321C242 98.9345 240.065 97 237.679 97H189.321Z",1,"fill-color-15"],["d","M161.5 67.2917V94.2083H215.333V67.2917H161.5Z",1,"stroke-color-thick"],["fxFlex","20","fxLayoutAlign","center end"],["fxFlex","40"],[1,"font-size-120"],["fxFlex","30","width","347","height","169","viewBox","0 0 347 169","fill","none","xmlns","http://www.w3.org/2000/svg",3,"ngClass"],["d","M89 157.417V41.5833C89 35.2125 92.75 30 97.3333 30H230.667C235.25 30 239 35.2125 239 41.5833V157.417C239 163.787 235.25 169 230.667 169H97.3333C92.75 169 89 163.787 89 157.417Z",1,"fill-color-0"],["d","M6.25 134.625V18.375C6.25 11.9812 11.4812 6.75 17.875 6.75H203.875C210.269 6.75 215.5 11.9812 215.5 18.375V134.625C215.5 141.019 210.269 146.25 203.875 146.25H17.875C11.4812 146.25 6.25 141.019 6.25 134.625Z",1,"stroke-color-thin"],["d","M256.188 123H238.75V76.5H256.188C259.442 76.5 262 79.0575 262 82.3125V117.188C262 120.443 259.442 123 256.188 123Z",1,"fill-color-15"],["d","M232.938 99.75H215.5V53.25H232.938C236.193 53.25 238.75 55.8075 238.75 59.0625V93.9375C238.75 97.1925 236.193 99.75 232.938 99.75Z",1,"stroke-color-thin"],["d","M146 53V87.875",1,"stroke-color-thin"],["d","M146 122.634V122.749",1,"stroke-color-thin"],["d","M344.698 95.3022C346.74 97.3445 346.74 100.656 344.698 102.698L311.418 135.978C309.376 138.02 306.065 138.02 304.022 135.978C301.98 133.935 301.98 130.624 304.022 128.582L333.604 99L304.022 69.418C301.98 67.3758 301.98 64.0647 304.022 62.0225C306.065 59.9803 309.376 59.9803 311.418 62.0225L344.698 95.3022ZM277 93.7706L341 93.7706V104.229L277 104.229V93.7706Z",1,"fill-color-15"],["fxFlex","30","width","454","height","243","viewBox","0 0 454 243","fill","none","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["d","M141.75 172.125C178.098 172.125 207.562 142.66 207.562 106.312C207.562 69.9653 178.098 40.5 141.75 40.5C105.403 40.5 75.9375 69.9653 75.9375 106.312C75.9375 142.66 105.403 172.125 141.75 172.125Z",1,"fill-color-0"],["d","M121.5 151.875C157.848 151.875 187.312 122.41 187.312 86.0625C187.312 49.7153 157.848 20.25 121.5 20.25C85.1528 20.25 55.6875 49.7153 55.6875 86.0625C55.6875 122.41 85.1528 151.875 121.5 151.875Z",1,"stroke-color-thiner"],["d","M20.25 192.375H222.75",1,"stroke-color-thiner"],["d","M192.375 222.75L222.75 192.375L192.375 162",1,"stroke-color-thiner"],["fill-rule","evenodd","clip-rule","evenodd","d","M161.033 82.5635C162.307 74.0523 155.826 69.4769 146.965 66.4247L149.84 54.8952L142.822 53.1462L140.023 64.3718C138.178 63.9121 136.283 63.4783 134.4 63.0486L137.219 51.749L130.205 50L127.328 61.5255C125.801 61.1777 124.302 60.8338 122.847 60.4721L122.855 60.4361L113.177 58.0194L111.31 65.5152C111.31 65.5152 116.517 66.7085 116.407 66.7825C119.249 67.4921 119.763 69.373 119.677 70.8641L116.403 83.9987C116.599 84.0487 116.852 84.1206 117.132 84.2326C117.096 84.2236 117.06 84.2146 117.023 84.2054C116.981 84.1948 116.938 84.184 116.894 84.1731C116.732 84.1323 116.563 84.09 116.391 84.0487L111.801 102.448C111.453 103.312 110.572 104.607 108.585 104.115C108.655 104.217 103.484 102.842 103.484 102.842L100 110.875L109.133 113.152C110.152 113.408 111.16 113.67 112.156 113.93L112.158 113.931L112.159 113.931C112.823 114.104 113.481 114.276 114.136 114.443L111.232 126.105L118.242 127.854L121.118 116.316C123.033 116.836 124.892 117.316 126.711 117.768L123.844 129.251L130.862 131L133.767 119.361C145.734 121.625 154.733 120.712 158.521 109.888C161.573 101.173 158.369 96.1458 152.072 92.8677C156.658 91.8103 160.112 88.794 161.033 82.5635ZM144.998 105.049C143.008 113.044 130.493 109.739 124.766 108.226L124.766 108.226C124.251 108.09 123.791 107.969 123.398 107.871L127.252 92.4219C127.73 92.5412 128.314 92.6723 128.976 92.8208L128.976 92.8208C134.899 94.1498 147.037 96.8734 144.998 105.049ZM130.167 85.6513C134.942 86.9255 145.356 89.7047 147.17 82.4376C149.022 75.0044 138.901 72.7637 133.957 71.6694C133.401 71.5463 132.911 71.4377 132.51 71.3379L129.016 85.3499C129.346 85.4322 129.733 85.5356 130.167 85.6513Z",1,"fill-color-15"],["cx","371.815","cy","95.815","r","81.815",1,"fill-color-boltz-bk"],["x","313.615","y","82.836","width","110.745","height","30.1472","fill","url(#pattern0)"],["id","pattern0","patternContentUnits","objectBoundingBox","width","1","height","1"],[0,"xlink","href","#image0","transform","scale(0.00185185 0.00680272)"],["id","image0","width","540","height","147",0,"xlink","href","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAACTCAYAAADFh8BYAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAACHKADAAQAAAABAAAAkwAAAABS37hiAABAAElEQVR4Aex9CaAkVXV2VfebfWWG1QWQRYddNgmCO6CiIGrAKC6gUWOIUROz/CYm+OdP/P9f82viEmNUcCFRUVFQlMUIgpIoCgwO2ww7IjLMMMub5b3XXfWf75z7Vd2urn69vK5+/d7Ufa/qnDr33HPPdm/drqquDoNdvMTxhSPBE5vODuL6BUEcHiDumBcE8Y+DYORT4V4fu3YXd09pfumB0gOlB0oPlB7oiwfCvkiZoULiDe9eGtSCH8RxfCJMCOUvlj/AIAyjoBL/abjHJz4+Q80r1S49UHqg9EDpgdIDQ+OBXXbBEW/8i2XB+ParZYHxHDohlrAAB0QJw2AiCOccGu75sXVGKfelB0oPlB4oPVB6oPRALx6o9NJopreJ469Xg4ltX8NiA8sLLDD8xQYWHbrwiOM5QVC7YKbbW+pfeqD0QOmB0gOlB6bbAyPTrcC09P/bH39EbqO8NF1mRKoGbqbYAgRQCkAU47mOspQeKD1QeqD0QOmB0gNT8MAud4UjfvyCt8Rx9D5dbMg9kwT6OK95xHrtY/EU/Fs2LT1QeqD0QOmB0gOlB8QDu9SCI37sghPievyvSeR1QSFHgD7uGPRmSxj8POEvkdIDpQdKD5QeKD1QeqAnD+wyt1TiJ9731Hhi52WytJinFzDy3OUueOitFNTjAkcU3ZDHWtJKD5QeKD3QLw/Ej55/TL0e7tcveamcmqCY5gGDoFqdf0P4lM8+oQflrvTAgD2wSyw45F0b84PHHr9MntvYJ5RbJ/aYqHgat1FwZUNvp7gHRYWEdQdKWAk3BXvt+UM7KvelB0oPlB4oxgMT9VjeAxS9FXMTv56vPeFDDz8IAW2cspLpixdos/XWGIsNm9XiaOeL5eBHspWl9MDAPbBLLDii3zz2OfHs8fCuLDpSJxN3kDUpjP+9Gl64M21QYqUHSg+UHijAA3Gkc5N+IBIcEAVzkbfeUJq/c2z8zJSzAJEljAgJQ85qfusSLz0wWA/M+gVH/Ngf/GW9Hp8Lt+av/jmkwUHcBmclnnMRqGUpPVB6oPRAoR6QVYVe2ZDVgS06bA5Cn/xcZP1z+eEWJBl+tk0WLNl6d6WjUFtK4aUHWnhgVi844t+883T5sPD3/BQAH/i4fFvFDW77WqwNVqMJfke4zydvbuG3klx6oPRA6YH+eUDWF7z6Sgjh7RYQ4PH5iRNm24O/LKUHpssDs/ZbKvGj71glnxX+I4qj1EZ+VAD0ced9DlLAOIi+MF1BKfstPVB6YNfzgLtmwactxAG4HYIrHQZ9HDRsfhvDcaUkLfhQhQJIPK0tsdIDg/VAejIebL+F9hY/+d7lcRxeHkX1pRh8HGxYRigO6AYrIQcpoFwFqVeqI5cUqmQpvPRA6YHSA4kHbE7CIbC0ELcFhtFJw9xmuH5I8hYnkGKbzoCC68yWii2x0gPT4IFZd0sFry2v/+bar8lgOxj+bBi8GIMcf6jDg1T45wNVimuj74d7fvoxwcrSgwfih9940EQU/lleU/mcJS9/CQNAFOKARRR8vsOq2j7npThX2j3rE8by6H+4Qz447qxUgh0y4T8hv/b368pI8Os54fyHy68eFhHNXVAmhok3ZyV4h8MFCxF7ds3GmwnbBf1YmjwUHph1C47oNz/8R3l3xmnwbu5YFWIyVjkGCW1kBtVK9aKhiM4MVaIWB/vIQu8deerb3MlLwRKjzHM0CEXD/CoxsUkziVqDWNYBorAtubP3sPP5PX2kYSiyYiegiZ/6JD3JzTcwY2IP6kFcC4PxeFsw/uCbHpeF7K2ShLdVK+F/VaPFPwr3+5cnG5QvD0oP0AO6IraPR0i9dErKyX+Xm2iKFv7XaN1nKMlhE4z819wELEvpgWn2wKxacNQeeft5UVR7j/68vDhWx5gMPH+sNQw7DEoQ3ODEya8ShhuCffb57jTHZeZ37xYAGRc32WXzoUyaLjCMD6Gd8DFnWpAYLtarQFfXJFwI2t7BpN7jt/7THMntT/iT/og7GWqf4C6FbLGCjuJoTyGeJvTT5FtSQT3cUh974I03i6Dvz60El4RP/8q6RJ8SKT2AS26SLMwzwtx8FFbWq+NcLuY5MTf/8xhLWumBAXhg1iw44kfeeWI9qH/GX+0nZwF3NsAgBcrBqrjsXLW6Wz5oXCLv3hgfgO/LLsQDmBAREYNwSWOU9EhY0phlPtGhrfxxkWnS/JhaLSnMD/Ij+CobDbUIopc3SGjUh32lSwxKZvtGflLFzKpwniD9nTBWDy4ce+Dcm8KwctGcfatfDsOLy3e90FG7KIwj3NxDzjXmjx4JGRAlm3/ZfPYl+C2yWWp15b70wGA9wFvZg+21z73FG37/aVFY+5YMxnkNA4srf0DZ9KTmoL/yx2DmgB4JRi7us3q7pDhMjPiz5YBB4IgDIXAthDggDigb/ggVBwtorUqmvbKRJgdsC6h/rg/kAxc9hGgLHkIfV6LsmDfMIfAABzQ8hbRbfRLHJ8pDzZ8de3Di/rEHz/3zeP1bl1BmCXdhDzBXAV1uEiKTUAhzvZRpbw388YK3jpal9MD0eGDGLzji+H0Lajvib0dRvLcORR1wGGCy6XV6B5Nr9jxFpAPXTgloE94ePvUzt0xPKGZnrzx5Jyd0cb/S3BlaoyE7d6gIaQ1n8xbuwW0wFP32keISTQc1B6xW9z3tMhO46iY06qtZg/7dhj6As7S3P95beP7PxLaxdeMPveE8wbULti/hruEB5hMSSxMgIYj9Ssj3Q+H5n99tSS090JMHZvyCo/7o5s/LGeZYWN80ucuJR2k4AelJCEx2gsrjr5Tv3oBbBlqyMcOxv8mBi6Gcxj2cPFCWMlRxf2HpP6AhbdG+adOn7IQO6OPk9WUIrn05SB182KSPKtV6R93lfTF7RvX4op0PnnvD2P2vX9W6RVkzGz0gjx5rbvm5pLnh5Txy16cxdwjVL8hXFEBsyGNC4OUFDvNPuZ8WD8zoZzgmHnnrB+Iofr0MIy0YajIkGz4QuOGn9awDRPH55WnuWmVk7r9rRbnrgwfMx00+F7LSGDT0hInQFcaLEEHSJ+4dgXRChFLnWIqgLELI9XF21ClkW8K28hJFtIeu7Y/jk8Tmn8szHu+ct/8lZT52GqdZwse8Jpz2/J9mv8oPb86dePjeI+WL7cfJkuy4MIqPkxl+N3m4/6Nz97vkE9OsXtl9lx6YsQuO2iPnv1Im878zeznJY5gCt+GKlT+/Fgk+4vpVMRCkJAM7Dr4b7v2Zx41a7qfqAX7q0ofaEAfGROLDB93QB/FW9RpOMDLEwLPFq2snrzFDbC2iNCdD20+ib7brqcrL01ceWl0s32u5ZOcDb3juvP2e+cdheGF6WS6rQHk8qzxgC1R9ysfsYm4T5lnr1eXlE2nWNJnx8iRNKw3vUBp/5LLDwnrluCiMj5c55LixB+46UsybS8XMVHgpWEZaCWeOB2bkgiP+zfmH1iaiS+TUJbeEkIJuEOklcRxaWloYUtzud+KyOOfv9HQRVoOLjb/c98MDnNZs0YcTu8XBru5iIWi9NF0BEDJpnejB6HtRds1SiuVIvjTqSZjVF6mlujsGAPZJiWyLY+KEWXld2R9HF4w/ePfKOH7Hm8PwsxPsr4Sz0wPMe8JOrGQuptlOjBBSfLwTqcXzyJWLyvgDdz8zrITHy92k4+phdNzYg986WlRdEMn7bDCFcwwRFq9V2UPRHphxC45407t2m9i6/TvimKXpQLIB5c5p3hV0d889Sd2sO62dnATWV58y58psbXncuwe4wMDKwk7Y3rSRg5JkJ2jGLad/O2PLbORaSNBj0oSd32jlo5f8dAeIgogDs8gDEcxrn70KppO/1AOiaI6JAOZa0tbTJ6GhAdqyDxyjONV9lKSs/XL8e2MPbFkon/5eE4bn1LV9uZuVHtC8lFxhDuYayVz18q2b/J+uRzh2PvSWA8OgJrdEouPltTTHyWLjGBlTS+SWuJrJz4jZ/G/ygbPfv0rdxFMShtYDM2rBgUtuEw999+syIg+CR/VkILM3TwbZkws4rPBkYZ+s9QQgFRzYMtC/Un6CdK7qC5BpLT2DGu7O0I0RyelM2ml8kvYIlGyuIdGkWhClJYRG/uzr67M5ArHaXmBPhSsPQhUmUhN9HD4F+yW/zxy7/5v/LPpd0JOOZaPh94DkB/OeUJXOJChzNUkvQZSWEKSVEszkbP4PYsKXH85cOD6++WVRGB4X1oPj5LcFjotrO3eDKSy8xszjBIrundif8JfIjPLAIPKvbw6pP/Ldj8kq4ZTk7KODUXbM5MwtFczx/EBAJTSZeeDgSDjn4gypPJyqB5KYiCDgLSbEpm7YjhCNedkCopSOyZktudx0BAY8+QTo+nbV+DYAlDEIGbgCYTQcEfdvu7EN6pPJvJU91IsQfMBb8UOmX9iO0NkvVv7hzvted9f8A75WPijn+2u24Yw7YZ/zvxYWf41jorbtMHmP2TeR+Dp00+GVjoXEvkwASSdsYX8QcUBl2peHQ+2BGfO12PGH3vzWehS/GycCLBq4cCCEl4m3quc5CNDOSxGucvwyfPrnVg91lGagclgG4E+CkkDgWgjlQHkcNNzxoy02DZqDPs56E6h7Q70+0I+e8B3kHEWYtmqJNenXZI/IVnvQb6q7YVanMsCjfGADr5Um+Z4MyGu0P/jo2MPnHsG2JZw9HojwtVjEe9L4azKnOaH88EGaT0luMd/y8r9wt9WcFaKX6NG//Pftb3mNpHDryg5698CMWHBM/Pr858oPav0LzGw8V3Cg2UA1N5CGcWk4IDYsRAi5OJGnky7q3X1lyzwP4DMU4uSmhwRaNGxatUlS4qECDOby64QlTG4C1biB5jY0T2Kpshp3eGU0ir46Wl8f7XDQrCaBoJh2BrE3nVL90MR01saurcmCPN8GH0ddXn8mK5Xvy1B+z36xc259fOJieeBuRl2ZNE+V+8k8gIk4N1+8+GMMTDX/J9Ohn3WwJdceN8I4YrrJf9/+crnRz2gNTtbQLzjiX5//9Hhi4luRTLZ6QpBBx2RFAioOqDgOdZpWD/JEBJi3SbKPzwmD/1Dmctc3D/hnQ5tQbPLRCUhiQagxwQSE+Lg/rRMc0MeTernKARzP3yTP4IDmYgwjgLOAB4X8yBejudzR2pRfDyfZUTb7Ux2dTdaT6U0RPs3nZXu1qyv7g2N2PHjHeyi/hLPDAziBal57UPMF+epozHvC3vJ/sP7qf/7b+B/6E9dg3TxjehvquMUPv2/BRG3i23I62CvXo9lslsGpoxNQN7TyTybErV72V4RP+9KGXNklsWcP1OQSR3JCdQsBHkMo8NaFdRYjC5/gyaHheqJ2sQWeFuLWwPoSDqeHTt6CA/o46yFK21hzE0uROMrknPIKje3bQYjQNkByCztzCuih7JJDQerBX8aPn704t3lJnOEe0ICLDUnADU8OBdF/GwEwtpv8B3/hRb7A3WocoO8p57/YX17hKDyKhXQw1AuOiejxi+TKxjE6wjCs9ESVnjyyyctEbpXs/gnG4RcV4tVSqJ2Yxcl6gcFB4NkNk6fyCNSJFDHGv1sgZGOMuKEAGm6LhzRHUIscgQyTTYh+iLNeuYWPRXWRA+qJZ4asHZ4dElzqCPP6N6XQMYSYHELK9GFv9se7j28P/5g6l3CWeEBzFjvkGOc7w2mh5VySXkLuLv8pp3BYaP4H8sWXssxEDwxt3MYeOvev5Cvar8OAkvGnG3IYuMvlZOK3B0ndvXr9xoGFonlwWltX+9i8/Q66yvBy33cPuDO6LgLd5MlJ1IcaX/C6KPN2R6tbICpPeCkDehuNFkAWisls5udEnvZJXsBm/kb57AvQx61PdOv6BySPg2zjQ79P4J3aX69H7ymf5Ui8PgsQu6nSafyZQzCceWhOcPnXMv8H5KqC8x8P2ZZl5nlgKBcctYfeeKY8JCqvLc+u3u0k0fFg46ATmP2Th0W/LK+MLv47YjMvJ6ZVY06erWM8repJ540TumlD2tR168L+PcfuX3P61HssJQyTB7qI/zCp3TdddnX7++bIIRU0dAuOsQffclg9ir4it1L0AgUWCmkhDujjKUcDhlU2ilttN8Bg5ItWWe6L8ECrBUO7CaW5nlcSGPMshPbMBYTa8LT/ydsbv/H4uMnM9sV+CJs919x/qpNq2qRfu/rW+ssYOa9Zg5Iykz3QnD+t4285CmvTfGzffjDegR6+LuzVp/l463rKyY5FtijhTPLAUC044offtiKOJy6XRFyCMYRbJYSKi2cJ4WQ/YRVnkmNSx4YlC6F3f0W+3/Czeft9cQ1klKUID9S82152lQrxwWbPQxgELgFSGqCP8zkHcBgfsObSlAPCQlozd/cUpA8KoI8bVWsc6vTXI7PZ0s/wIuwXv7w8jt89L9WlxGa2B9KxMCz536s/kftF53+vupXtps8D/jcYp08L6Rn3o8cevPtSQQ7gkxZ6PpI6QijYiGOSt5dVo86ODOJYCR60AYAHjsKLQS5LgR5wgdJXoQjuXomiHfoxtEWIfa21F200+ljIMDM0yCKJnaAOs7dbLWRzBHXUAf0TB0RpV69M3i7LX6T9ouP8nQ/85kTp/jpPhRKdgR6I8JsiLue6Ub/b/A+C4u8i41cGMeRQisp/ueVuHZT7GeWBoVlwjD14z8fl5Uwv1kz1HvxMVw2WxHZCMB8Tb3VyyEYCfJUwHJtTCb6arSuP++0BmxCw5xpAe+A84aDWSVzc/NS0aGRb1ifChCAn97rE9F91cvMnoITZdQ6pjsYqQsyIirsVEfGkXtpCvkxwc+VHslbIBL+b4PuKxAPzPdZoII4gi9QEcQSt69F+7T+WMVMuONQVM3mHS81IiWy+MHcAtWQJyB1LIq3GMPAOHZ6OLydlAMASPGtP3/J/qK7ND8Cds6SLoVhw7Hjg9b8fx/ULbOZ3IwYObsrWyb0uF+2VgbCpvYxEuUnz7XC/f39yckll7VQ94J//fbw5qE0zqHRNmnFDF4ushxhhYuGB35qWHzSL7z977x1x/WR51Oj8MIjk1oZO+8mHVN9mH++z/dJf+Bz4pyyzxQONkx7znjAZCAlB7PZwveIhBF7xw1xIGjxEetHe8nPex/uV/2H5WypFh7AQ+dO+4Jh48PUny0Oin9Ixg8zEvJ1kKHGcgGSxoO9BkOndXQEBVR6c09OTMigGScZvNG8P3rBysUcp0cI84GZBhsMdWojkwIWIi0NCqOPjWfU4eQIOavLM6oDj8BmXPibgG9jG1r3u8CisfVqutjwvO8HryQC2FmC/SIUfn6mw3M1oD/hf8+w0/2FwNt/YlhB5x1+MHZSD5khHE0x45H0B+T8oW8p++uuBab0wFT/65n0narVvykQ9N1lkJIsNGMpZGpALC4NcUhAqt2uLWyfYdDg6qLLC8NF5+7/6GvCWpWAPmPvTyQaBYrAI81RoDLmETQgqCxDTaAqTSTVPzgBp8w762q/mH3AEbm18QtWznekNW6F/QfZLnu8Xx2fLa//LMis8gFxBAdRNdglszn+d64RBoRsrwJP2efmnHRS3m5DlxqT992H8F6d9KblID0zbgiN+9B0Lx8Z2fkeM25MG6kCRAw6eLAQfeXycfPqWfRlsgNhQCPUgir4UhufUFS93xXqAJ1hMfjrpYRK0iZGQcfMheDXGbA8tgQ95wTtdFh70rT+W50q+1qB/8fZXxu6L9hty95TqtfMAvpDncoUwyftJ8h8PKaMAYsOShBC4jjUHgQ+scPwWn/8DM6nsaOoemLZbKmM7N10st0OebXdQ0oGgg83ZZXUYTEawwSRjCAPIFR8njRBfodXB527ByAOjF7OuhAV7gJMbYsdJR9C8p9Z9TRB/a5LG2J8o8XQ6aob1KfUFixe9bcfW0ZPEjqepXQXbD1/Uw2CZ78OZiss31So7fr36KSPj8cpaVF1UqdQX1aPKokoYLZKoy53UyrZKpbItrkTbqlF129xKsN7d2pqpJjfozbwnTCo5loSQzX8dC0LnaGFbQJRs/QC+pOI6dhqZQqK4kfs1/stfUzF/zrT9tCw4xu4754PyyxRn5wyHBv9xnBGikgMrYfQI5CNUfncgC4+b5h9w6d1JuxIp1APJQpDxSeYf+RQmMeHzF+ADTn7irNeJCm3dhKVt8UlO40rhhZrSlfBw7y9v237vWR+V0+PHtSFVLMR+U60S1WfUD7lJ7MLxB1+zKqoFJ8s8cKRYcYDE/8Dt627ZXwI9b1xzIg7quBYZ1oMIb7FG/MMoqEd1OemGwURcDyaEvm3dq7ZLBt0nGXGfpMS91aB6SzCneuOC/S+9X1rMoIIRkI6FzvLfzGOK2ZGe4QW1AaMf1oSBH9oG5RCOZzHJioM6vvsw/pESZZl5Hhj4gmPs/nPOiuL6h/R8If6yEwcd1zhYSE0hspY8oBK3wdW8gPHrw4tSOSVWrAcmJDIWk8YFgkQIH3Hwn3wN1RYbCb836UJHx65QdUYKqAA9GsrdgiVzPr9jc+0jMunOKdp+nEiiOBz6BceO+16zX1yPXytxf/62ta8+WQK6EsHTE5CLOY79k67WW7pMFv+FMokcLoIOR8bV5S+cqAfb1r7qUfni0I3ybYYfLawE3woPuuxxyBveYiOgW/sRf8ylXFBYe/Oj2srFGs/QHd5E37b2LDyPdHpWftZ/GI7wuw5LxWU8R/V5yXjG4kKEcJ7v1/iX/v5k2z1nnZ/VL6uPKtaooCkLmuqbHoqm/2/RwZd9ymo63+9Yd9YH5TUq56FFUz5n7E+clfTfZv4TmbQJ8hlrQJR+2g957eSDxy/UzamTb381+OeFB377n9BuoAuOsYded3h9vP5l1crXOsGptsF845HA1sAmczjJ+M35ab15TwfEjvlx/PWkmxIp3AOY+FA0JoI3xsybgBwf+cGob5N1DRozAgJtAOrAdXmgHQ3RLtzz0tFt6866WfLyxELtF5t1DFT1GsAQecBUGZWvDlfqE2dLDF8vJ6HfERjKlR8JcZ/i7+y3nHGZQtlh+BRxzjlygjtnexB+cnTtWf8ZVsKvLqzE3wqf8e1NQ+csGQfMe0LoOGn+T26/mcgxQmjUTvZ7ie/kypMUjjngOZOyzr/JeG3UuLD8D4LdRL/d2LdC1dXlltNH5wmlY+dKxhfUuBIGu5GlG1iP4t2lnwPQhvMYIdSQq3iTzH/WE3Xoav5Dfy4e/bBf9Xe+sR8WcfnXQ/x9++WJhhVm5QAXHPEjb165c2z75TLlLOYoglJcEUIhTkSAVhAG4AwH8U7rnZggviw88BubeVTCAXjALQIZOUL0nAyOTtTITnCdtBkCHrH3Z2LoibSbEKr12/5KUNkyBCYnKoze9+qjglr0l2Ft/Gx5TquqNie1/bdfHOpJz6BSJ7VV4TlV7sKcKvdfPiW3YS6uzhn5yPz9vnlfhnv4DjvJ/zb269mOPGGnbxqVSyLiuOycDE9zFlZnUS5hxoOMDCGq+53/7eLfaD8UkM2dQlRtwQEjd9UVOnZdZoH9tNmPVT/in57P8ZbvARS8tnzHztFL5amvZ2D1jinAFhuIPRYdLonxkKfgyuMe9NTVvtORiQqIzXj99ilNebC2NL6LBmBm2UWeBxAkFAY5C1mnTBZ7oK1yQOWwDWW7tsME5OE+u4RPHbN285i2OOWZ753aj/FTCYdjwbHj3lefvG3tmVcGtfqtEsHfk7FXbYoX7Sbsg/3oA37AnyROAoFr/4TgiwK52Bn/QX28ds/oPWf++9h9r8UzJENTeol/N/Z3ZSj85XwH6OPqV8QQhdCOGvesA8zbwE0eQQu3H2dT9AeIDYXQjrrfT3YWpW15tvt1rtdpt9/XSXA/5j6exBJ6s02e5zJ1A7mlsuO+1bh/8yJE1r+iwTgTQl+dNBLFWUMI7YGbFeaA9PIsyBgfqQO0t4fnHXDkfwbBNxOpJTIID1jMONdrXHK61QhJJSCKroalKVfFiDFX2VovdRpiE69thnMXy9tsMUlbOhZpfxTWp/UKx7aHznxKPBZ8rFavndM4Qm08Kq1FvPoS/1bOlcTQ/JHc0rmCiSK6SGRw5eX1ovPrtq494zOLR6p/NQy3WnrK/y7sryVXj+mMfKiPfIhcxs5Gp/DqtXY40CiYr/EQL+dt5Rc28kM1pQ1Z/Gm15h9sSDRmTRdQLwaZgTPd/ux4YewYz57i7105mmxt1oXHW7PKvex3iBF/iISEMQlEJuLfQeBaCPNEuqse+Jiim3pDcEDFPQg5wiep9EV5R4KOnzyRJa1YDzBRGaIsRD5Y6Cw3JCGEoomB5LBpwEHjS0M9WaoUa1V76TKvLwQXdEbJ2s3jqdoPOfNrizZqJwPeyQvHqqNrz3hvtCO4S8bxOXndD8J+5AH9KUnjfK4TgFMpzZSsPvKJsiLz4R9uq0V37Vh75hvzbBgELdY7/aJnl/kPe7qxf6qfMHW+Rp/QUzYUQj3I7LL+ZpwI+5H/3dif1QfeM5rZklG/w8PWp5dsf7SbcLjspw8Im81nrLuNPyUVuuCQJ9OfL6vfT7IzLq4BsamzHQSeHWzgAE0hcC2E7tAHXEkBygbO6rzqF32WEh+MB1olZDZhJfw6YQH6ONtnIXLBZCC6k+TCYMxs2YvcPlzp20pGnwbct9nHUZe3Ze2XNr8OD75k4Fc4tq99zdO2rxu7UULwsTCMl0D3PP1hN232cdrmt/Fx1mdh1n7I9POAfbGdL1NxUZgQM4TyAUbRXrUo+rIsoC6P7z9ruckd3B46+bpS/yycqv2dPsFBy+EjFPWV7P15W+dxqUsg+LycBo5C6OO0y7fZx1mfhVO1H3ZoP7QI4wx/0HUKz15DZp7+vs0+Trv8Nj7O+iws0n71gShJqPqKbwjVd6IkYRJ3oUH3PP3R1ndrYQsOfA0uqsffkN8ImCMWwAozxEEY5SuouJhCCKPU2YSQIaXBGe6KB+576b0v7QZXP8AoD6iEwQ3zn37pOm1Y7qbFA4yXxjInhk1KIQFQAGVDUhMqjkPyCD6sJY7CQ6Fb0faLS28ftA+2rjvjxVEw8UuxTb554sYlxqmHU6fi7Xf9iyP8vti/TQY4sknBUsfmGaYRobaJ4zNGJ+o364OvqZDBYVQGULZ2+e/b7OOpwuYf2t/pFY6K+As3SvBPqC6EYIpU1A4s+inO/n2dfJz1TbBg+038JPFvUqgzwmyxX2MtJgMy7oRJ3HuIP71YyIIjfuxNi6J69B25TLgHAtwyGM4C1pMX0BIjhaYwLQX0cVebWYDI9/AvtppyP1APTMjnqFZB9AMruC4UHbRFo2QD4ojFiZ5ERHMHQSLO+oHa1WFnMrHKLeH4eblJ3G/7w3CgC47Re854v1w8vFq+3rqHnkA0NhYrjQnsQ6AAfVvpO58meF/ir4lhHXAxCohNVXEQOHROIRLKaNba4XF8YFCbuElsfQPpRUP4gXlPCEWhK6GPa4USrJ76tbO/0ysc+IFMja/6Lo2nT5uN8acfu4aIBTbxVwKBoxD6OGiyDWX+i2o2Tswextz0TWkdx99bZXgovDH1IkqE27du/aIMlaPgeFHPApAzODQwXr1vgI8rnycLMimXUHm8GUa+c7994dLdLoX4skynBzRCooCLmuaB4IB5OdFWVY5eN2Lb8g+eYdu6M0+VXt13z4u2P75lUBbKw5V/LxPkR+T2gzxw6eKpndPGPE1Y5/j7Hn/IRS6YfJ03BAf0cdabhtTJNQXRTyfBpe0CuRj8lW33vOId1mZY9lAUhQr3Yr9J6Gjvj1E/drMx/j2fDb18anIq6wBl833o+7apXStCP+JPnaSPrDh0SxpwX0df967jD2EFfC12+7pX/Y1MSq9tUNT6EuXdwzX6CdbDWU9DAX2c9WokDlzwlO45r8E5wTfCPb6wNWlaIoP1AGLhx8P17pagEkH7A5m0fAUZX4s5Hq6zFngg2OVQfsPpo8bx/1DbC7ZfrqLUFy2Yf9UgDB295xUfkZuxH2CsWsbPt9nHnZJt2zcZ0z7+k+WBLTqQitKz04dQu/J19HGplEM8DfaZrXe/8o+a1BoYof/2T0X1tvHzfejjrtO27ZuU67/9LePf43RCDVV132Yfnwn25+ibDUfb+PkyiHsPcfS8pssqguPt9575GgF/C6VMsRSmpxXWmAQ/WEwEQMNTqO3VAKMpD3oBb9Jf2os8en6x9VDup9MDFkdM3hYrrCOBp2tKwxE526CtnxU4Tgu/vgZIPK2dfmzb2jPeJva9kJoUbP8N4dMvLfwbKlvufsVHxY73Iy7mc4P0PyFt9mHB9ktXqU5p3rTOH1+3PDyrrxzLK1WiTxS/6Og1//trf+ITOfmaL2zcmm/TvhBzxp0waeshWX/2f/ynOvUj/p7qHaP8bJzXYKbZn9UXPmUeALdYG2TcCSezn3WdPkNE/pZw9L4zj4xr8ZfkzYLyVfI0BCkmTbFg4G0PHFr28SvdYoyapxAdYQgaDUcp3iDTqnSP+2H2Pfb4gfkHXn5depnEYyrRgXiAiWvhlgT1gubjWWXQjm2ydTi2OoN59dNJ27H2jBfUorr+FgNSHYW2+Db7uHGl++7sD7+dtiwG23L3K98eBtGf0h4blejLDMzGIzPEC7ZftMjNF+d80TLr/3z+1HfN/My1+OOjd52+bvGqK3+Qcvcf60w/6tS9/fi1mY6KfBTF5Z1sPBl3wtkU/17fNKoX7uEsKVl/ZfMJPKC1KkXHvzP56XydtYdxJ+wk/r6tfbnCET/6+t3ljbnfkcXGIpzwYZRubnUkR/qHjoGlhTigtSFEe0SPEDjqEpjHDw600XdvuAxIOyuxAXlgQvpBIloypgsIjY2LaSvcbwMcMSfU+KsNyIXhKqP3nP4eeYnUNaLVPNgGnX1bWtmbpfttaDehb7/QxoKRyleL9MKOe05/fiWIdAEFHagHIfSB/oS0mxB8xAE72fw27IfQt59288MNoOHwPRKHeoETfUMXxsQg5RLmy2dPcTWuBF/ded+ZzyKlnzCSy86+r6AT9SLM1w+2grcz+7vV2fpu7S/obP61+IKfdvh4J7FnO0Lre/Lxb7Hu3H7TqZU93XqH/BY76k048+xHLFEIzU+gwJa8eMDWdvFHe5YpX+GI43fMGV376Dcky/aHRrjK4DRD5hmuSqFLzUaDOFQ6aSBISW0VMbZ4YVI1idOJRNqzkfCjRXVu/EWVVe6mzQOWiAh/NoZ2QmB9VkHSCVGfh/u0rIxBHcuLr+Zuu3v7OfJR8M+jKD5C+3W5Tv0KtP+LSw64/LdF2brj3jP2rdXq3xQ75vh9tLOHdhO24/dlA2c7Qp/m43496H5prOOEYpBTESHa+fzECX25Ms0sm5ioXR6vPff4ot59wn4Ju9LPKeu3TeZGzpHJ9eMGy5oP5Ef28Jct7eLJvgnb8Wflsx0h6vNwn9ZKhtFpQ2fxz8rq5DisyJeII7tyRL0IZ5r91Jswa387e9iOEPzy8HUiZsoLDlls/LMsMl4AiXoJTpK04dqCP7KTBGbwbfXqKwfclEwTjfUG7QSm/enJzN1GAQF9heH1C/a/4n4clmU6PcAYQwf7hEltGE87Bp+3aExw0NIaO4KklCb34iryfMHzlLHFDmdLXHHhWZM4YDelEtTnxpVwtyCurJCHJ/eVtieN3rPtBLFsQZLWKrBBQ03JfttfCcNoZKTy0W7075ZXFhuflzjtnvF41/bY8C8o/h0YxczKzZ8O2ufY/8zRaCN8X8C3V/zc6SD/O9A/a38HTTIsvk7iDRx2MZ675U9HdzH2N1qTMbXHQ/nWlteysYeZb//U7IH9uuZwHprSgmPb2le8Sz7Z/QEHM2T6eM5g1c4tCKZB48nHadUjUFmVcK3odaaKkKWn5EJVf66yA5lYo4KXdzmJd9q+XRe+fFmkPb5k4cI1g3jor51exdS7TGDGMeggM4e14wwhwy9PBOkspxBNXT2g/M2Va1o/Bs5Faiocnchiw/WlEAQRRxoOmwp1s+Y2WkR+BD00MbBzOkOXpuLqOBLA42xQ1kx1IqsFf579ssT+4vwDv7u2qes+EbbcffrvyyR6iukrCtMGJWQdlO00YyDb0leZ6l7shz81D6Tr7CeubPy1W2eC2WPm0N1Z7ZPcZGgZO0AtWDyFb5dv7Xx98TO/d21T+ykRnKLsU2TlxX8q9tOK9mrKSVRD7emkjWZz/Dv3TqP//AUHZNBHQAX34smpI82/yfn7HX/0yzHRaIM7ouqAKNTdy/90zBpL476FPY6p5wWHfCf/BVG99k/UK+3UpxAn5EQBpZptsRMHHEJ+QBoAfrRPr2gQBzR5Ul+vv11ODm/HcSy/Rw0/1SguSQQjZCcrdFsXfnZPHNDk2Ykt1c/o6Z66ugaZ/mBLLaEFwej2bcHWu1/x9cqC6vsW7Xv5o6mc2YA5p6srBG/lEvUH7PX4EQDyg04ZwmV5b1fGtJXwgsaYEDc+NACXFEJ0A9x1l+CsB29DIaNBVU0u4TFHrD/qhYaN/Nav0Cgf1X7/efyT2F+phOsXL5r3Zw0q9vFg+92vfGotqHlXTxrtmW77La7TH/96VP+3+PGzjwj3vHS0b+5n3AlVMHPH4jBl+zt981di1K4e/8QRHSKN/ur3+J9y/KGeP/8Q5/zUZGWjPb2N/1RoTw+N7rj/rP2DqP4NUYVXqp1EXzlOCgYbHQU+TNop9HGbtH1ZqcKTYTzpAPYmz++zUYYvu7UOje19m32c9pme0Tn17RM/ie89e1lruTOtRpZVjIEHcZbGH6HiSoHfuMFW+hGshreSp7zK02F7GVgqEwPMwylfNXR6mn7oIdVHlrRQUJpKXqNGeAkTGWjvNkGsP4GKoz1o7s+kQyY3SAduBXJQKE/WOu8Ln3bZBqvt/34invhHeYvoslQ/05A9Tbf96jvnS+DqK8LEb63958fcx+lftVvk8Q92A2dJ7Jdn1rZt2PpXpE8d4kMT+yEUitpmUHHoBho3tFEetGE7QmsH3Whf0OFHTJNmcnLtl76Y94Tsw4fQzddXZYHm/qCz0mTfkf4ZedqmG/u9MZ+Nf8OPfsBpXRTfZh+fSfar3ohGQ3wsQnRFkv/Cx7gT+nYTh/14IJql6wUHXlteGxu/XAS6+7sQxWRphOhU1YUBHp7ysy2gFOVx0Me1EtWmOKCPu2o0JKfhrk+V2w95Kp194IC42WnHKe7b7OMpXyJj/9Hatn9Q8bNk587nelIHjsGNjbg7VA8CT7wmcVIcUDatc9BvS3kQbUIV0zbA0FbbSyNCLPqIJ/WOF7LzNuX35IEJtIRZ6vz+IQOFsoAozRGIu8Pu7A+DLyxe9f1LrIf+70fvfuVRMiHoT8wn+nkxoN2Eid1qlOlDlO37aj+6EMHaR9KB0ax3Fxs5gI7Y/Jj7eFLveCkuC1WGJw+dg6YwDP5YXgewF/ueKkzy3usP+lAH4FO1Xy6xdlToB/YNmNjt7LdAmE4Uqjo6Up6+Pg04bCYchP1qj3RIe7Rv5AkNmCKkHEDFZUcIhDggtmGynzr5UP0FPacQf3+R4eMidvIinYajm5/4sqxZ5Il8uAqF0I6627MtoI9Tik/zcav3Fx0+ztYWXTmiB9EHcO0rT57REueCE4MrKcQBfTxh6BLxZUQv7rLxULPTQ+pL0ZQ+lWnLcED5QzgINUyyS6AgWuegthDBCVT3yZGDqEFbQuDol9BiCf5EO+UGPwtko2gfHs76hJUiQNAmRlBUCHZk/SsufaoPUAfc/aluggPqJrsECgI+vToWxj9Z8qyl70r0KACJ4trf4T06EE39iCfdmYFms+KyI9RWaQuQzVYHaTchbAOPg4ndQoPNukBAneDUR5oaDuj6JUQNZBACR/+EwFFHCNwKodYqif3hAHhSiAoUOQvj8Z0fSOqmiEBPtZtQCOi7v/Z3tuLoxH5zCxwBw7GjpwwqRXyeQMXlmFBqNDYODsZ+65/6QnNngKE972eH/RYti6SPJ26BmShmriFKa21/en0j6PQCm3YRyLsGLpRkebUdSZ+SOHwOgjQfWjLZBAo6VCINx8QBtejIEi5AFJFvow0tc9oLH3UwBtNH2+XxS49wIr48i0KcjlV90KXWYqdfs1WYkDyEfQPmFZUnFZQHLtLAT9zBfUCbLaWVzVn76HtCTRIwOZeqb5BnrqHFzGKXykr9TzmEJiqtt4i2zoFm/jTvtC6b86KYxt8pqPoKY6pvGme0zxbqSUi7CVVOHKwJ5yx6TRheOp5t36/jzfecfkJcr50BeYkugjfZMwD7ZU65TZT4mSx9HpdPRL+Vr709XonDqiizRxQGe1biYC+ZxE4Sv68y+9P4UnfCZnsmnwOa+dvFP3zn9nWnfXThQVc/bLr0vledaYqD6v8+5n+XU/60xF89WJD9k41/nhe6jqC78o52TePFo+XJZZ4SctwT9jv+k9lP/RJdPN2hB0rTOU8q2s1/Fe97qx3e0QuCrXee/to4rn3QPgBZNqjy4mwGClQ6XLXjgdNWvy4rOL8228QvA0uLg9rcG2xW6e8dP6NjjT2Gxh7oSEJz/iT6Z/RJpx7rt5/2i6yB/QiX56DCUF5xwoJR8RaLyGRB2aLelhqIGJMICS5qu8MmA1AJWYwdcSefsScEH994q7La8UM08s3v38Npax/tvzWszj11yUGXPdFkax8JYX3C3iY6TfbLF8puFDdeUh2Jv7fwoKs6OnnvvOcVB0zEtdPlm3LniSuOVXcMOP4y2c6r1cI/kr7/Qvuf6i6jf7/zXx6h70jDyrzqH4/U6+7qjZfgSeL7tFTk+ER8thz9Qx/zX8RhxLn+BMBF8vD0x+eMBPpSurT3TjFfd+JhMG9Otbdno0aq/2teGH0i7Z0yQSFOmHINCpOYnCQuuxj9cd4jLHr+kx9R/fXI3MpFtLWjBcfo3S89qh7VvmhRF9VdodKEIKe1lhhKIzELJQZIniQmYPYK6xSCnuEnnVCbsg9ln/zTDPUmtAUIUtuSA3TSVHamA7YjRLXXvdkGGolZ6NsTB9eo+Nm2o/GEsM/Hs/aa61vmhHpYFw/OmQBoQ99C3mTyUd9NgSyehNGOuOoAQq4CqLBCXQhB9XHHloAG+8Nrls5feE74jG9vSuoLQLaue/We8fjoWbmii7Y/DO6vBJU/W7Lqqm/m9j8Jcf4zv3efVH9STvqf2nLPy94YRtGHJRpPndS/k8jLrerI/uA8eQncB/tyBaoh/nkauXxkwuemH4hTK4ufceVjvUjYctdpv23wP3OdEEJ9PNtJ5/ZvmH/Q1euyzafjeMnB318v/WIbuhLff9by8Yntf9KzYh3lf9MErN3JFLkhrMw5dcEB33uQ/bd9hmPr2pfvUY+C70iDRUmiQAkmDaEw+Lni4+zMJmccYUBwUBCmXAnmC/HxhCGDUBenn66yBQfkiptQWzbxm124RKSXiYSJMI+/gSYHvoo+rnzG7NCM/TLpLlm89GMp3yzGfMcIrv51kH73oTAYD2Ll4eSBp1QGXZaRjza2IGF7uRivcvJzgvmR5IzqJm0gF1uTPMptkTPUizCjn+qufVh7s0WvI3546arnvqzoxQbUqo+Pni9W6DfOBmm/vKDxn5ZWq4csOaT7xQbdCSi3YOJlz7rqy0uWzX+m4F/UOvgZW1O8+h9/+VbPnpvvfjJ/wabKtN/JVRpRtXmzXLUc83HyQrLljOsDNqO0sN8qi9036JPtKqOf8gqN9mShb7OPSxTL0sYD8aNnLNy6c/uVklVHwnfmv/7nP+PCuFtMw63VcM7Lljzze3f6ak664MBry6OJ+jflva37qcJIFg5glyRI7CRJZBGhOKCPu4FE3laDQRX1Bh36Ig249GT9Azr5hMrn6ZT0AZ25QQZwQMW1gdAEygadCRUXHkLjd22dPL9P4PpHiCPigLKhb0LqEcpbcQW/QF4AtkOkz7oCn6Cob3J8AlfCJ86lTRBtUcfCq0+APs569a8cAPo469tB9kV9oL7SYIaZksJ2wrRJ9/bLPZ4nlyyc+5EwvLDweVV8hMx/O00ZlP0SnP+1ZNU17w0P/v4Y+54qDJ9yxXa5UnJ+UAk/PfD4R+GU3jyKiZg550P4hDEx3I6Kyn/00c9S1Pif9MTVTwNmqCz87MKWzTsvk3FwIufBTkxhrjEHe5n/ZNE/Jm9DftWiVVfenO1z0rhtvuu+T8rs+rxOTxYyibjJWSZZD6fyMBx4q8kgayz6VX6BmrgQK3/4x4YlAqGPs14dDZZWJx+hawF0uhGyX0LVAHLwB+j4CVV3TwblEKocrw3aoch8/z+XPevq7+vBLNo5TyXxg/3qIw+auS4GLmjOKwyh+VsYKU99jyPxXwPuONTPgrM/8CjN8aNP0FggF4XyiSvR0UlTHsjBX4fysvpAFmhpoS6AkIwSrdiybXzd5jtOex8mDiUVtNt892nHSp8HOqu0F2qBA+Ksb/C58+Nk/syzX57+/Jtlh177wSJM0qsdq66+oFqpfJxxJ6SehHn2+TQfb2e/rNpehKvBvduEtaXvbRwZJYVSn8k/1Ys0aZH1N/iz9veuY+ct6a+sPpAAWlos41NrUWN+SO2mH1L7vVc7pKJKTD0QxxdWtt616RJJltPy4l9E/ieuD+XdmWHldbLw/1FC85CWC47Nd5x6QRDF79DQY2LBhkJoB7pHOlhK4LB1sqS1wFCcTLZX2S6pBOdAATQcD3hKK3eLRHsFnkiyvk2uL1sYwCO8hCoDump7tGv+g634A9TNGqsM2/l9KKeQDaLGtXbQeMmF9rJI+vbSVVd9CPhsK2nM0jgy0Qlhc6MHXZyFzvbgAc6Ci1EogD5u1GZ5jIfV+L1ZC8oGxNZugPp9qg5oB11c+yxsJ8/XCLjqIFA0WSELj/+3+a5Nd2258zT99oiS+7yrxvErIJJ6t9N3qvbLguCaJYde83d9NqNJ3OJnLXu/PAz8y0HFXxKnEtfqpzcp0iHBlhtp/BkPNAfOkvU/6KQBz+ZTvv3gLK5Qd8B2+ZTVV9tIO8qAlsBZaKvcjitLCw9svuunn5Gvt/+u+ZZnHBz53rbG9C393S5e9D+gbiKGsIJP/XHlrXJOwyMYuSU3bFvveumLpO3HIUkVUomC4cQL3J2AoRxwQMXRH2hqmJ1ogEOGypE6Qm0HPrR1fyoa/MJk3RieyBe6yocQFeRB9Kp9GwQOFsIcdtTKhmI6G4+1U1yUIEzsNsUg2Ppz0Pruwv4guH3J7ru9CZ/ITIfZtYc/zCcWA1rnxwF4dmO8kvaUI1B9jliB5v6IA+Zt4l+lA/o4eVVH14fiyi6yqBjkAnfys/yqB9rzjzgg2mhTg8AhCoXisxBtrDvXPoqeEUX1yzff8ZKPF3G1Qx4deCVsQ7+qr3ROmNhtCqkPtM7jl1bWthP7w2DHvOrcPzAPFLuXBzjrc6Lg9yuVSl0U1NgXHf8oiHTx1otlmIgZd0Lf17ABG/4IfZz1WejbrHgvynXTRh74Uy1djqCp2uFkwDYUwLwNvJ3YL75WOeWu0QOb7jjlf8tbwN/OPGiKP/w72TlMnK/xYnCE3wXE8g7HsoFHN0QbOP7C8H3LDr3qS40aNR41LTh23HWaTHC1S6M4GpFnN0SYBJabZoIcO2WgN3BAxaVjQmmoihCqEU45ESgNoTiUcRBA+zGouNQROmbjRzMU8BP6uFGtf8HpHMigHiqvXf8iswj7xUcb5lUqr+rr7zA4m4cC1OSrdy43VB/grlg8ERPzbRainfK0aE85CaTshF+CqjQEN413kgNSpzmQ8Aub8icSGxHWJfyN8kWY9qMQOPgI/bZOaq/2i8j3bL7zyZ9uuueUAxoV7P1o9P7T9xZljx2U/fJtlAvdN0t6V7qLlosOu/YWyTJ5GNvygHEnTOxmnPJksw5Q8Unj/1I895Ynph1N9JS0sbmVsB/6qa2+/e0UmWo9fumygPyfqlq7QvtNd57yl3JO/IskTwc4/4Vx+KFlq675p3Z+blhwyI8RLR6LIry2fGVuQyQSCqBsmswOWmKD7HiMUfdCRSMPd2gDLa8+M9pVttAA2Q8hRXpQNNQjQB/3WLpD2Zfrvxf75cpRTR6o+d0Fq66+v7vOZxi385FqTb91YgJ5k/aMNWLp4a6+OQbiYZXBMwTaAbf2VifZIDw+znrLK9cPdfAhVtQ4BtTVNcRDviuoQ2Eb4krsYNfU3umitkfHhrX4xi13vuSZHUhqy1LfOf5i8UFIP6gPtP8i7JcHYeeMtJ2Q2irdJUN1ZM7/lWtbE4wvbQX0cdZPKf5xvHTrXfce16WKjeyTxb8P+S8/zNfYX7+P9BeVRSjs8G3ptB+/jeKUI9C3333W7FTsbOfbdOdL3im/8PxhzHWW15iTsMFvhI0536/8l3fofGLZYddeKB21LcmCQzoPNz+x8ctxVD+crUwh5A0VNbxVvXAZL6AaCnNhcH5pJ1/uYbuGgPhEDFkG/bapdPYFaJfmCHlKIESb7KdNn2a4yeur/WH4niWHXHsd5M/mkvrMcgJxsA1WM06IweQ+bucjxhPQ8DTuaT9pf838bJffU5N+HAvQ2+meQFjWZE9/7Rf5+0gXP9q87qUH5WvcBTWO9ORIn+S1bLJHOlca7HS2JnAS+8Mw+mo/v5GSp2seTd+REAZXso62Avo467Owa/ujuLcFh7rT8pR9ZnXJO/ZtMHzy/O/oxUt5HXVIqwe24oANZkcK88YjbU350zHUYZe7PNumNaecIzfmP91J/JvzJR0HeY5sig/j6sa/3J75ytJV17wnr20eLVlwbFrzkv8pKyT9Lnnr4NuAsMQRXLV3UHA9dFBx76SPNqa8Qd+QVLGMfK0gLeVKMdYB5slPaYnOerIzfpNDGcLhJtCi7Jf+/mXZoT/8dKr/7MVwnxAbfEno+5eWow6lU35fho9TnkRcUUD9wwDBH2DOBmbK8XHyUnfqBx7q3Ak/5FAG+yH0ZVF+O37Uy/aUaOf4j7avffnTIKPXIs9v6Ns5fX2Iu34S3akf+urFfgnBxb3qOdV28nHlYtqThZBNm32cfIxdp/aLc3pbcGDe7GC8UFfq5+usuDiaMMl7L/8Lvr4RVOUPutFfxFvpCz6UTvkhxwo/jLrDXRRsvuslLwvi+lfEL3ouR8xRNPaMO6HNHRqfVvGgf1nv56QfK/QhM/wVSw953vlCZ1BAnrSokpvXvPjlouJfQ00rgEgaHBkEDiUIVTFngFSgUusJqbAPIUvbaT/t5fttrZ3pYDqmOPmoG6CPsz4L1TronhTiBdgfBNcvO/SgjleCiUozFunMh9mY+HHzcfL5NB9nPdwFnAU8KIA+blTsyWv6Gp205nqTbXkM3NfB5Kd5Ddk+zeelvlno8/g4+Tza08YndspEc2HyocF072xv7eJjBmG/uP7OZYf9588606z/XMsPOfB78q2GJ+A7FEI7Yqz7Fn97xboJ73wv3eflk0/zcdjg5YK2RT0KIXDaSn7Qii31JOeLzP9ibZgZ0rfc+eLnRrX4m3Lmn4OYM+6EsCIv/qSZlT3mfxBfv3Th08+RdwV1tYatxA+fvUB+/VXeSc8Bl0JTPJ1coaBvjCnc+56yAH28tcTJnePL8PHO5aW2wx8mow/2h+GDI3Pnnx2Gn5V7ybtGge9ss5zBXIjN/GoQuBVCd9gAWAcImag06OMmS07w2tYgcOhAaPE0mrK5euDUF3KMz/ozPupgR/7el0kZjZCyAdEytQG4FUJ32ABYB5i2hSx5xvAFm++4vqff8Nh69/UHi7jFWf2tD+urE/2y7RttN33lJui0vrYf4070utHXlS72aYZPOf6HYE6l/KnDSeKvVWlOIF6d5P/UdWotATdU4Md04zEg2jXqa5Joox017lkH6Ldt5NrVjkbvftFRUT3+njxisJB+hX86iT9zHj4jzniZj83XwK0QusMw+MXy6pIzwmdcvNNROgaVzVvX/4l0HVEB2gAAPCxJREFU9ow84c3KpAqih+Z6SzSTleKJMS4RNfPMSxCSKNtOnvEKP9qwHaEpZLJcvcoTPOlfExb9tdpUiMkAl5Odtk9pytlUn9qMPlz7bXG1cqZ7334ie1dBuJr2P2GRZj5ALFAsJuYzP2aNPmfbVvKaYiaMSksaSD8qhDnAvlWJpl2TPGjq4t7EnEPQroSedO/wlHWK9sfxhzbd+aKuP1XH9fAA8zk0oQ6pVsRoK6CPs74dNPun/4cJw0r1liTuBcZffFQZ3fHk/u380lyPWwT0cZH539xzkZSi8r9InYdd9uY1Lz2oXguvktXFcuhKHwP3x6jiUknYj/yXBc1dleril4WrLt+K/rotFXkG8xQ2yioLQ0AD9HHQSCdEPQqhj7O9TwOeTnSc/LPQ5xHc9aFQdZNB6qD/AChaoVCX1v0bH/ewBaWVfbS1VT3ask/gchlXflQ7fMuKVT9cjeNdsWR9ipgbjbGGV8zv+f5hnfGzLWPQVh6+aogCqLjIIUz6ZR/KqOyQa5tP83HWZ6HPIxIyOQWZtCFfPtr7hbpZP2xL+0XanKAef8Rv0QkuVzX3ze+/sT+TRRqOiJs+duzjPo/Uiv1zRuJbTM707WXavSWJe8Hxr9ejp/fP0kZ/Z+MP/5PWGBungdoqOCDx/inXQhJ1li4Lyv8WHc968va7X/zUOBi7Rl5bsRfjTthZ/CU2veZ/GD40d978U5c+64qef7m6Im8kOxoK+4nRKmp8NgQQG9oQUsak0A0OaWl/6Jc0lZU+ZOg/rNJKJtYfqoNAxUUWYSLXk99KDumwG3ir0rX9QXDh8kN+1PWvYLbqf2bS6U9AH6c1Po08PrSIWoR9nDw+zcdZj36As4AHBdDHldh2x/zoNGfSvlvpQ91Yn4W+TT5OPhkzQfyiLWtOObmt8g0MoSw4irdfFuBji5558B0NXU/DwchI5BY9vs0+3plSHcU/xmKu2yILAs1TxpXQj7mPd1oPPcA7XYV9U1/oQZqPsz4LfZt9HP7atYp8HX7lWK1+tZyi9k9zxfeJj9OP8JHvb/CgAPq4Elvu5AHRx+XnAk5dePD3H2nJ1EGFfEsq/o3wLTNeKEalpcadfAlVbzyQSv1lNpFfSpQmVLyxvSgprFgEWH1jLXpspFh30gJkKaqJHKTSTRZkWlEOx+lIDaBRfkOVHmTbN/LTbkJTV3iS7lvbLwumby0/9Dp5hTO1b+59NlPoM6QGcKaI4eI3F2R/YQl/gGxt6B0626BFzHJC8kqeUAsu8n0MLkYVErI5aFLTmDA/mVPt+MNKuESU3COoBHsI7x5ix960DbJpa2pfSkvr+2O/2uLGYxRO/I0cn6a0DnYybuWkCKsbx5TFQ35CgEZpQERgEi/DWY2ufDzH/juG4dmlhQdf98imX73gSdFvN0sQy6ci7Jdrm+Lb3ko3+a89cD4GlNLsf8u1JJ5dPeKnInvaFZ3/QZSO4Z4UnGGN4jUvXLypVv+BqH2o5awzoNv4Z8ZzR/lfCTcL30uXHvLDe6bqthF5//l/ylWOVakgS9z02MMYY8KM8saZtpdXCmFOk/sKjqa4cLnDZOC3kEc2QvBrIjt+4kxuqxf5lKcKJa1NvYY96whR6eMNzKlcym9hv0zAty3fff6bZZBPIiwje9YdmulwEQqh4a3dQtcSWo5Iq4TgoWEwsfyw65JfOoXsQZcda07ZdyysnSYGnio2vlIsXWgaDsB+MRa5j5OJ/Lz5qXiWQ66o/aITH8ivFON9Hpbu8G2LkDRNSBII0vL7gaBUoHweWZ/PNw3UMMCl4N20Z+ZTo7pNStFWQJT8BanfTOIRxfv4lG5wqkWYuDIhePkvghn/ZA50tJZ9Fv0iDn0PB5Q1f3HcE0IvX9esnjSTsKX9PX03K9vbzDiO17583uax7ZeLL5rem9N1/OlYwvb5v2MkGDlj6WE/vLUf3hqJFsz9QLBt7HQZUPtDB/avwvHRBZniPsJkjVN+VFOTDH/StiHbyJwDtZ+0v+b2WQ2pLaBT1UEcZ7lB80tj6xz+jD2d2C99PhGMVM8K9756m9/XroTjbYbMiXY+Vp+KcwCT4qFu3rLETBgM8dkyVQM7XHDYtQ9JZ5/DNrrmhXtPBPFfibLvEPv1V16LtJ9G0ndRPTpHaB0tOGSBIgsj8yDbQx5xQhsCWNRYb6CTZpTGPdiUJyGHWxJ0mhG5dY1Pak1a0FZUECekrd3YL9/KEd92V3BbPdHNV5E4YY5Y6ooqLD5xzCsaxMkT4mcHCi7ap+sDamtOuGPiLp2SXKF+yubbSpzQyYl2kSsc8vtJ1U2/evyrkhsvcqY3Ad937eLf1FgIfnvigBKjiWo1+N2lh/7whrx2vdAqKw68dvO8ufNPkjz9OhJeB5imvkRYOtVBIBC4DjoHyUdIPkK/rUkRGWKB1iPbgCOJHLQu8BZR0AFlk+oEwjqpBA3Q8BSihroAYkMhBK5tHQRu/AYNT2VoT9qf9YH+VJaDefzyjuiJoBq+drdDrntAxJdFPdDodYsg9vYHFqN15i4XVqSN3NUYrrL4sOse2+3wH79bHhY+XD4J323aFWe/7wv0Jcev7tQj8uZPXXCYDMlta6/NKRcHGGqEPm5UrXEoGH1bHTmMNzts+kEYy+LH19HsBq2f9ocxfFtMYWxa6ysrFymcQ4krcWA7+lh7d71afthY5+g3vl7G/7CN/SJcKyf9cNOa335e/KMv5EQfU48/Y2PxMHnN+S/nt0h+guMtyw79cfKW3n7YqBfYFq265lER9jr5us276sHOw6pxtGcqnCY6in+oZ2ChEypLA0NzI5+XrIQN7nRNE5oMokiu11XkC31yI12uIZ8pE+DbyAXor84SOv0rBHSDQ3aHCVRpjkcvlwoREAUDgZdQHUGBChHM2lqwUCH8715x6I9/bEy79t6fRHxcfaeOc/4hbi5HEMWxcgCIkqlXsqt2HMY3RHsZpGs3PfiKE4MtWy4TtV5QlP1qMl2lMD546x0vPHzJodf9qgN36LsiqBshHG44HI8CLwN33s4cukFgLMplfJQnNxWH5gqH5JTpojkmyubo2xf7w7D393CobgyqKEjXu3D4+a8GkNXV5zZoGE8JozYvasf4Q76PZ9Mpa1+n439X+LVYeeboY+K7tyQ+gy/d+FMI53YdfyfEpQFjQ5jkf1z5o2VHXP8f6KKfpeGO3rLDrtoowvt2+aSfimZlbVx90vvh/dRR4ioZWHopyC1qsnOjLkgcD+XZ9GhHMYIAmRyTxBldDlwnnzIAZWHyqd2OvPFffVqJw52yIPN8ThzQikRAURcJ4qwGUx4Omk83YUOzX77f956Ue69nPrljK97/cAAXw321n9Z6fqjZzxO0XXDIh6fklgrFAOKTselon5SJJ/FiX4Ro5OM49koUD88tFZksNqe5lq90P+wXyT1c4UD+e2PBVy8Pz6Op39040rMUCNljZRrYrrDxPzALpqejJ9c8/2/lwe73aO95sc6jKXM23tljNATNF6ANrbWO/+pfrTji+n9Jqf3DGhYc/RNbrKRNq08+QFa4J6vPPN/ZggKTpnOy+FTRBt8yAKJjk++lTnnT9hoctocwbWP1jkto4XXLjxh5b7FWzzDpLgbmzvQqEKygO3MtUh8Lh2sPH6vLHTPxSWXkCh48UX6sbMum21/4ujiu/VR6T362fFLdu7S/2T/xczqyNI70qnRTe7c4TBYYoo/iLh5NsrMByQisVMLiHxpoUqoFIZRvNcmEKga1zq8+2C8fWKotNGhPnnL8dcZKxxhtBRxE0XWqJAHyQIr2ihyyw5TmHTegndo/KHsalBvMwZNrXvDuuF6/EL1lhlMyF9Kf7eqTXKe/2vi3Elb+cbcjrv+HoiydkbfC6kF0PnKYCwtAw1OoodKklx2gAsNxVQR/Pk1xBAP/Tl4WagKAh0WiLlc27h+ZN0deW37d8Eys1G86IUaEbOotB4GrTwnVz3heB3Gz53agMnAWiEFx4hRRWkKw+mHdLz/iupuDSniJ2i5K9tt+nUfEF4DY5MpF8mvPk/lEvqWyQ50KJvgyKcxvaowK0lKMtRgOigMCUR0MGh4vhYShKHG0RG2ForCZdhOqkjACBdDHldhAUQ7ZJRAI7I/i7cbd+R63CJj3hGhN1QAVlx0hkKb4g0/oqhMEYGw5aAHCQYFFzijMA+infXv69C3/CzRhOkVvvP15b4yj2j9RB3GdFkDFZUfYU/zRuFX+h+FFyw+//s+sx2L2M27BIQmLL5u+yaUyvNfSMxy4gD6eNmBbQK7CDSIu2Q1DV+Ml0A3j0SCsvmrps67r+c1rqS6zDDOX2uAQnL70/Wy4eRTPyuDPfGzQvNy4FwbzvZM/E7w2Uqn+Y1H2YwJXn+DEIpsMjv3xnf12fpGT4g7lF0ZCjQRkOJrKdjjloQ6llT3QxRQyIMLdO35An94ShfEy2KR/9Jeo1G/75YS/o1tLMRH3kv8aI6RAK3vEWo2nWd2tWt3z+1c4RC/NFwctd0wfzRHVzbTrevx3r9nQt9j4qxecIYG8SO7pyyku/0/IWgOouMSdkHlMyLgTJnkPCZl8kaciv7Xi8L3fLlczIbmwMuMWHBtuP/El8lrX/eAwdb2DPk5nItuVDx6XDYAQOOoITZ7jB58Un+bzoo0ESJY+8ZtXHPnj25W53DV4AP7SjckNKH/qbwfpe0Lf3xSGiQil1YREvmGG+hBnGN9alP2QyyLv1JGHJuqH8rgVlDnNfQpnWxtPxk9a8xjQKCK27g/8fv9+DBUPg6G5whHGoerCnGq0tZ/293CFQ7r3fWe6Wd4Dnyz/G/zvcoHxQTvgbE+5xUG7OglbdEPvXr70a/zLj5YVZ8I0SH5y9fNeEEd1fFN0hHkANZirjB9jCYg/FEIfZ31e/ClTG6uM8Nrl85e8IQwvxW/vFVpm3IJDTvXntfYIJ0qbPOxUZSc5TXRJfEIGlRAy/asgPp72l8qXoP3N7kfchG8hlCXrAfmuPy7r6uVe+NycDgfbEHEQ3kQdIfkIjV9qld+GEHFA3bJ9D+mxaH+96S4K9tF+uBbyABUXKFNx2wWHfHVzB/UgRByIA2JjLAAVRz/syPEDtOQfoiscEoOlah9u2Tn7fJt9nPW92C+iu7/CQf96PlddMTqExj/iiX7O9wgJw0JoVVwA8CrvAO78Oht831Ff38fAwUOYz9/C/lm03pBnEo+Nw+gKWRrOh5/oBz/WfYs/cqkh/8P/XlEdebU8bzaGfCm6zKiHRuO7TlqyYWctfdeAZq+4iBDeEoeycDGRQK1P2TEwwe0P0LTWMQO4DjzR31h+xE/+PttSWctdEIyMBHF9wjwhoweDJTlLwYk6y1icbE8PSxNMQMrjHEmcztegQYbxOq6hB2E88vNYnlnU/OyX/WI1fcUch1/kpV4r2zlELoRs8Lzekl1jh37cGACwb3O5JrQFkHyCk18u0eovWjru6Qami+ZQZ6rQDsJO7A/Date3WOWqrYVDdGNMVcPJ8l8YyOvHX4eKhcPGCZTmcWdmT43Liz/GuvrO5Uff8r86SIOm5o7JWm9Z/cJVtXjiBxK/JcpXdPwx4cJ1mhLhmmp10enhYVeNTqZjP+tm1BWOjeP13xNPeV85g/dQAH1cic07nrQAfdxxctACGp5Cypfhc+uKPfZ8S9H3upqVn0EUvM2QIVFfi+7O5zr5wL/uD1YprVPz/DAT77TtNPJVwvrj8IHa2m/7s36IApu8JrM3DB5CtX8lz8cna+rX+W3sk5OTmcQ/8H42wW85WHzjvacsk7G7j/bq+atJf2EgrRMNyQuouMiW1wU93EnbnnioO/0LIaTlCWSdz5/H10ca/aB66biHjqJAP/N/Flzh2Ljm5H0ngvFr5IHh3Tt2f148ScsTwjpAD5cr9PfPmxec5l6FkdeyENqMWnDE9eg8eCFdEBhOz2QXDOQjZNtW/FiEgxfQ8BRivEjt+nDO3FeFT7mi66fQ2eeuDnn/ENBw3A5wS26cjtXRBg1vjLGywologm2GlDAc2QRVzVaDtJtQLO3afl3AiB8AFYf/Qvk2RtsSy0kRvkcxSHcSao0lfssxR15AH0dbFInhbpvuev4z7Gj69uG2sWeLKaKiN+sWZH81jnUx1721EsEu819jrlal8U/ywMVOhHavyhRaMA/yRPQt/2fUmavZE1vXnbZnXIuuldg8rd/jf/L4Y34IH6tU4lMXrfoJXvg50DJjbqlsvuOEgyfG4+diQOp7AcRNxG2Qmt/8sQU+8uR6FeMQo8ONR+UVQp48YZuQV72+dsVhN/Y4meRqMIuJ5tSMi5vsNffzxNd80sLgIQ8a4xlqlWnim+QNKyEOJ5boRJBRkLYBomRhW/vVD84pFBB38qBm/DDGir+wRvOm/jwa6sFhOloATIa0skORZzgfdldyrXaMNLxfm0/TTm5ZHA3bkuRJ9BWS4PADSj/sl9dw9HyFo0/xTxIpa09SYeYWsJdXnag/zcHYwyY7au7O6phTqXb0Q1Z/jn+5b9gsbIZQcLVtfHT0KrHt4F7thx+0KJQdj+ls58Am/wXhk5Kfpy0/4sf3Toe7Zsw6cWIM796wJEsuX4rHSMtzHhcOgLkbphfUuT/IAM7CpAeU7YIVR/3sBtaVsDcPZHyq/gaNMYD3DQdMJysXgyb+3rQYfKt6LViBXvttvy4YxCuAhmsfba9wjFSrD/EkS6hewdkCBdDHjarjxaolSqjXBYZBXQ2iMpkNrVFUj481bPr28lsIRyOjzNbUX9Co3/ZX5o082L2lHAHQEn+AGssEIndQQ6i4HBDCDm3jIHCrNWi1Six2l4m/3xl0RwHElrXH7AbV2eJBn7/wr1NIv0WU+OGzF8Sj278r1j3btwcW25/5pJ395LaYp/mMdswD4CbNoODbxOmvmM5vVs6IBUccX1gRL75J/TfpzlwMJ+umE6bgnDyzUOPANnrgpFt7nVAhK44/ufLon/+bqyxBBx7gAk+uF+mJCdDHWQ9R5mcnVGOmRI2b1gkt4ddwYAce12YGAPmxtAMKs9/3A3zVwZsul9YWyuvP5W0cnm/V1zILEuKMQJx8Pg04Jk1C4OAjNDzGt2aeO90hkicsToQOao+DtMmHUF55YISHk8enAQcbIXAx/9EpvZdHBGgBlE11cdBwpx/YGHdCNMy0T2QpUvwukpWA+SEd99C77+O/eFP63kMcv2POxo0Pf0Oe8jk5ySfpRePK3jLxs5i3mf86iL8sQsbDSuU1K4/86U3sajrgjFhwbLztylOjqP40OMi/okG85RUPnQ2kEaCPQ5AWRgrQx121AAnUj1Yevfh9KaXEuvEAB1OrAeaHxceTPnyijycMMwOJ4uAk3xfU2jfJx1nfkLc5DM1jQPI4jrYl7Vsg4VFX49PO3Zr3KrfVGPDHhS0m0AZNsGF+JPTnSnYLm+Vk8/wn73jufqQNGj6x5kS87v1g7VdtFYwGYNwrDXZiQyH0cau35pPYHwa/UBE97HzVkuY+0ccdQ178jdbKnkRyYQjzAB34Oe/j7Nw3ycdZb7GRI1R6DJJTyU8FJLxDjOBD88bVq78kvjmdfoC6nkkNeGJKG4ZO4i+3N2W9XTl35RE/vTqRO03IjFhwRFF0nvmHE0H+YGIgAfM2TCTGY+2J5/FqXRjcN3depXxteYHJaTGwiUnj4GIkkdI/nNHwB6gbcUDdClSuT6LxyUbmjZPzxPXHfvjCFVkhy1HbBQe4ZRqykyN8y0I88bdorjTMfCLb4RorwfWP0MVD40V5AqU6jCY4hr2KQaG14Hy1AbpnN+gAGgtx8uE0oLTO7BcP9bjgwLdccvzpaIne8LHqA52pN6GQcD0dBRAbeAm1nVUXuc/Gf7K+es7/OBqaF8pNZh/rNqz+wafEVvmWZWPp2X6NPeNOKLLz4h+E71x51E/lysr0l6FfcGy899hlksBnYXDZeDHo4zbw7FMHcJsaxPfwv7dhIOAY0MfJw7YqL4xHq5XgVUsP+dmG6Q/TTNQAg8D8TIgj4upjPYZt6YBBLFDSmBhu1Jm537D69tfLQ4srBmK/DAw56XW04JCHqjs4OTI2FjuLAGlpbNJ4pePQj7VMrOfJxvAOLJDx/S+cLx/wmib6zhWgrZ3ZL28z7cCnrXung1J/pj5u3cqr4aIC0Mc9lqJRs8H85ee8j095/Mfh0Lwyv50/N972O38vVyL+oK/2t+rUj7ng8mNsf77yqP/6XCv2QdOHfsFR3xq8XpJzPhwjE6n6B9DH6TQLKKc5ORKH6x+gCwQh2qCO0MdlkRhXgsobVxx1s9znLkv3HsBLv2zC4Ve+APEH/xMyFoTohzig4SnUiGkcjUbe7vUbXAtcSpUHFt9flP30EyEsk9s3v+3EwmqlcqPvY/qTEDKIA+ZtfkyAZzfYbbRg/w2/eq58cBhseWLz9reIVsupe1Zfsy+1DdoZzfQkzvZZ6MsTS+vVOQF+Gbjnku3Pl+/jWT14jI4pw8fTenlHTqEFD/anecD49z3/g2jfQs3ok/ANt534fvmw8YG+299yPHrxr1T+94qjbvpIn0zpi5ihX3DI15/OZwLLE25itDyEJlBxD8ooM4cQ6pGjuQFgA9GbXIRXaWjjbXL017sfffN3+uLhXVwIJz9OeHZ1VxYdMjv7eKt6uA98LMTZnvRhhRtXX/lBse2IVvaBTj/4uG8fbYaNxFvVY3yEQeW+Tvyx7PAbfxFWQl2cUJ6vg4+zPgt9nfL6hAwUhfXoExvWnjCwS+Gja164t0z0H4ZPWhXYg0K7fJt9nPVZyLYqJAj+a9lhN210eFcAX8DL6y8jv6P4W8ewmXYTdqVSX5g17tBE8iDPPp/m4/QzlADOQlxIxwq/V0OO4YEbbj3hrfLsoZ7wYVuefT7Nx9vaL5YnvmjwgsVaSP+6+5E3/Y/h8YZpMtQLjidWH7tK3Pcct17Qz0rA4V/6mBDmND1AI5VKcw2UV3buUD2gNMVkp3Xh1/c8+pf/QFIJe/MABxhaA29V/EED3B90lNEIjQciJxHbqruB0jeu/p2Xi45/U6z9mMhgFnY2qVWq0b2dGKpvy42D75svO5sQG2NhfRvN4pHiJk81c4GSuqfK0yUD+8S1c3z7J0Sr3aATJ3CoYnmWr6+fgz5udplNjTjkOD+Ewfc68XseTygzcdf9ubibe9P4i0ZOp3QxC9nY8BLgogv0oY/QF/BWBTqhUD/wAmf7Zmh1chVv+cbbTm77m0EmffD7Dbed8FrR/bPoGTa0Kr3abz5W6SLfoPRkfYXx11Yc9fI/bNXndNKHesERT9Tf6idc4lBOrh4UV6sfCe3ABdpFR+sE55/KczKAS7Ru2X2f8PzpDMhs6RvziM0l+MSNgliI53V0GPRjS1w5bQQBbSrZAdrEMCSEjbcd/664Xv+O2CW3VFCKsV/9LDuF0ov4J96tsqCjKxzQSvi/x9uTOO6+uDHm7KOt1Ad2k6bxD6K3r7/td87svp/uWjxx23PeLFn2u5Zv0jPGvWywlZB2E3bXA7lT+yuV3hcc8gVlNzZMV0rPwmz+q59ll/rbcLbL2l/0mx7lF7Tli7EWc8adUOPfx/EfhLXfp53DBDfcfsKp8kT2v4u9VfoCsN/2Ixc07oRwQhj+YPejjn5TGF4o18yGrwztgiOOz5ZghW+UUagrXjgXISPUYY5JBD5FEoPP4RoEJRuNkw14dAA6frBrW8AweLw6d468tvwX5WvL4Y8pFsRFY+PB3kT6UjgpG+Rk2pvcYlqtv+2kZ62/9fiv1qPg0zLi9at7tKC3HtkasNl+oWhOK4TH4/DO8LDrRjvua2FwtbRKft206SohenUv3OtEZqO21oI0HGGYhlH9Gxtuec7ZncjrhWfDrce9VTq6KK8t/ISS+MvhSgTubAX0cdZPAu9dccR/r56kvscqeg/QYk2o85qjtbIn22nRFzjkMcUn0adpa73TgqwunR2zdZ790Xmb15yoL9TrTFbxXHJl43eienSZrB/n+pr33rMvpU38w/gnu++512vD8LPulzN777WolkO74HjiF2tfJg/b7APDO1owOL4Gfo8Guq1IHMQCBgsPXcjE43I38DUrj/h5z68kVvnlLvFAEjNvkrRpCCwcREAdniwC5VhpoGPD8pHQx1kv1dNcnrzlhcs33vqcVz5x6/HfCKKxO0T/1w3WfvjCinzCvJF4J3Dlwf+9Rbz69Va8OkaksrU9jINB47eJ0ccthqan1M4R7D823Pact7Xqt1f6hluOe6/I/pz0LXOb9ZfC7qWaDe3tlw9CU/smAD6PMu8Jk7yHHcj9VvlPO2EfcUAfR13xpRoF8q2+yeOf6iX6qK0O0m7CNvZLbJZPjE98oXirOuth423HHS6vcLhSbFqEvLHcSWFqN+MyNfsb5YW3jcSLXznsv/NV9BW2ziKVwyUhOa+ZjEBx0KGWOCBKpl4vhwgNMKda+WWlEVbiP9zz6Nt+Ykzlvh8eSFwuA4+/aQO5FhLQXC8KESM7xlxjPHbc9NscKk8iBxjH1fWrn/OGoC5XcatyQQxF0AAooJYsgZWOP3OYyIJMFMj15FfqMpmEoXyqimSr7C56HFsPR4+QD8S2eIcdfsoVaD/Uo28B9TgIblCki10lqP5bPai9BU3UryLKJstm+eBJYqcNQJBNbEbRug7slzdzVMVnn5NF2tmVMH7/VL8Rtn71CccG9egf5WHyF6giTh+85xTfEND3nUI/hwNqwWu4wetex92L/eL72vw5wcUmsMc9sgeqyNZp/qOnbPzNFpOF+ib78bBIgSWqhhsCuYzCHDF/iv9hmBSzrT/j3wl81eO3HPfJPZ69+L1heF3RF3C0y7zdptXHHzBRi6+WPNoNMRiU/S7+6xbOqb508RHX6Q9E5uk3LLShXHDgMtnOndvOwH1NDig4zHCZQFw0ccmTtPx6aS8VTHYdzaAkyY+JKP7nvY5Z/Xm0L0v/PcBYEWYnoGyPFk+Lu9a5E7YfM+BO3py4Vr9E29RsgaAnlBrizhMK4i0fH5Ocqbuccfx1mwxDgdaf7OV+iE7cINTw0TOF8tNUMqdo3gjRZEUuT5UPOydKUddvQfaLK8wXBoNowdwFP0z06BBZcfR//eSJW46/Q8bCoVSdUCdPyLHzhQDzLSBKU7yUqFW6o92Evr5gkOOXisRT1t963MVBFH5596MX/aTTE0e85uy5G8YeeL4s9d4S12vnqivE+dqHC4L2qycAsyjbvy1AzCboQ7sJYabik9gvi5zLFx9282No33ORHyNT30q+UEeVxVwXiGL2WMxxTF5AFLUHbZwlWfsloZWvqN28BSMbdo6mV/QZd8Ksvlk9wEcerevM/gvW3zr67A23HP/n8hMUXX0tGeeasfHxl4Rh5Qj5APNb+Xbip7I6tTtef8ex+0yMB9eIy/WKvHO9NqPdhLSN8crK7sX+kcrI+YsOf/n6OH55savJrLIdH/+tfEazFf1QLjjGdm5/g2TdPLPHjfQ84zgrEGZmB5IJIYmnChUXBj/c65gVf5onuqT17gGd0twE2CxFplUNKeOK6FhkjJd0g1bD05vETxorzZfv402fWDFJY2I26dqbHCQ54fCGCYDM0iR7hcV1bipDc8dLaL1Mti/U/usXHXrDbybrfZI6vAnRJtsB2y+fwquy2HibePNtG24d3fL4L4+7RmL233Ll8fGoHj4ezqmsD+tRRZ4P2LMSxHvEUbSXROa5T4zf92IJ66LQWx/qlQpLEDUVphQdf5lM5dsw/SouUTXRLM38OWvK+c/E75e6GTmLD9p7485b78NwaNFTYfl/knwYkIXzcT+X24o/qFbCm+TK2T2VkeqmJavqWzbfvmDxRLxzz5Ew3GuiHu1ViStHSq6cNj4+fpxMGRV9ZicIbhdzul5wBGPBp6X9ARlXtDjsv/31qHbD+luu0P6Y64AoufkvdAZHhwr4wJxT2snLadJECoMr7hLiIagYygWHBO88m8BttUv3ICmAG8REYjggima50lq6T3kgQ9junT9/0TmdfprSDspdhx6owcMteEl3MZNU109lnGBd6NJzXmMONAttHDL21XwMapOPvQ4617CR24h+tii/kK21yyk5snzUzFGc9klPDfrTFta7bj1AyQaz7Wk3IXrkWPCEeGiDRf/hVXSFrpy7/+eeGLvvL6TRvpQIATqmEh2Kt1+uFuA9HfKVQtnsIlQQT9TUy7iihBnA9JM9EHfkDkRfi+Cg4i8K/OceR998HTSZWrEraYw7YZfxb2v/1HRs3zoML62v/+Wxj0gUnp7PXWj+46V3x4sTjueFyXCiHuy8BV6056InXCZFyCTNn3wtu6HKFc8ljbfsbE7Il1Gs/YPO/+z8lTf/0WL4Y+guwWy87cjDZZI71oLFjAD0cVfrRiUmRZuUhSsdqcbk753lstjYKpehzuz1JT2+yBLP9wASMfcPscJfi5jxRA1oOAev5QDaIhf4h0OlGVnrQLN8Ma5GfkdDnmiueBCSHK2VftqXp0G2f62HyFZ/sBt/gNoX1FCFobSz2WB39ofb51QX9vx7CeFhl45L539nurTWD7qjACrubFWyh7O+CRZmvyplO1URO6ejg6avo8Hn6ncPgs/RABkXQhGokgghSZ5/+Wsc96tYzHuJv2hAuwlVWxyYzdgPqNyQ9pjB4Ff8tfBv4fa7/jX2gqvTCHt0ji42KAo+1v+M3Wa12T209ltcNF9axAdWodA6HCoNZA9nvUFtoruhW3BMTNTPT9Uz49QSmOUSo1WyGh9aO+uzUNrjl/MqYXjuymNuuSPtp8QG5gEudwGxIVSEOQkLvTShgaA0pkTalvLAA5ylW/6mDiCIQoA6HNDH2V87SN2oL8QBB4RI2ymk3YQqGnwojp9tK9Xgc8uPvFG/kmgM3e93f/aSi0XeOmvJDnDEToE6fMjsVz/4vjUjUtVpDn1N/4OP7bQNbWUDEEkD6nCBcu3pypXH/OwmbdaPnYjuNf4d298PPdvJiOPrW7LQ1/Q/3AkccBD2sy/2D0WBD6qwL/Y/dPZDIRQXkARXRMiuvsfxP1QLjjh+4Ugchee2NNbZnILJnZP1jS5UovCv9zh2td3wSgWVWL890CIhbdGIvJWpFTwy8Ah9PKknXyJP2gBvMSBUFmrZTm7Qmnz05doSksdBv23iDu1LBVq/mChA44SRhawD9Ns6gX4fppfpSnk+TXGRQWjyKFeg+kBVmQirlY+6LnoGuL0orvkT7Y9SfBuAD6H99ANUpu6AihcV/0owFo5U/pRu6gsU35rOBhWnHfA9Nj0rM/aAKITWTilsl7Vf+YvdhXPCH6uuqi/Um0w/p7MbR4XbD13ajP+evMN5QOU7m2k3oZLNF7DTt3Uq47+r+Kt+ogMgdXBQ9fF0VD+AD8XxT3X8D9WC47c3rz9dkmEvBiML5ROFBgnQx8nnOxC4PtrhIHDZvrr3c371YfNguR+IBzIJi3GpsRGguMZSiahooGk94oZq7BTxoKD+IPFxqcovvgzB9dBBv4qN3XATzaCdFUI9ytjXQMNBpl77QE5KlfWX2tyz/WHwhX69Q2aPY395hbwaVd6SaIW2DrX9omoyBzjcqd8M/CALrocO+lVs2Mp++XHHD+1+5C/wMFwfS5oL0MXXzUsYJo726+e8j/dRqa5FqV9C9wOCg8h/0bCf8e/aYDSAnb6tFOLTBNeYOmj5lsZcBFi9g4XE3zq1HBLc78OvStR3yJTHv5MzVA+NysLzPHw5jIbDSOAc9E7nlkCWI9rCIBsKTcnhL/bee+lbWzYuKwrygMUkjSIjalHGRIH7tpwsVQk0YSFOCLqHN0qTOqwsMch1tQlekU+aa8o2cpj0zXvHyB3Vx3VCPKlvo2+W35Rt7DGlQb0p2h+G6+fOm/cB2NKvMm9R5T07tkXyeuZ4j6w97fTN8qe2Mmj0BWAf7IcM2UwaEMEKjr8sNn658tlL+vqbMPqlWOiNQlf5eB5N6hu9CcLk9kPkIIpo8UNR+Q1pdGhAo8bt8inxBZtDeQ9vlCZ1bexHU7aBKM1XNwZx3EtB7KjUrpD/9Fniq4Z46KUA9avV0+N2NDRXOLbcfOzuMtm/EoFDEmLDxEGoOAILmvsjDqgbUgm4phTTCu4Jfjt3bvWs8Ok3Ja9wTpxVIgV5AHFA/CDeoIaJuIuhRQknXYsauIGzEGd9FoKPPMA1Xxz0cdTlF1VQqkxf4yENR8St3vpqrW+Wv2j7ZQC/v98PPy991i+eEMPf1eiL4bQfOg42/uEOeRXc+f3+dhsmYtpB6NsGWt7m8wD3c97HUTfIUqniq8Izdfx356nGk2jjfFH0+Iemfr74Mffx1hY16mt8pOGIOKDNe4Tsl7CxrfHTfqsbom+pbI+2nyvpqb89kYwsGKvWmPKNBuEIdBTWZyCsDYNx+bnu16w8avUjxlvuB+EBiaX+IX7AkphaTIQoNMvGFEIxnya4tnVQj4gD5mxIF9ABfZy81gXyxIo/KNmOMK895RBCCnAW1Rc091ek/dLLFbsfc8uX2Hc/4V7H3PJNuTL0YfqC9mYh+pwu+7O64NiPmY+Tt0lfFzvW+218PKkPg7euOPb/t3etMXZVVfieM3f6VCxtZ4YpD1tUhLRAOzNtobwMglhNeBiRYtSUABHjDxOj+E78YQw+0R8S+SMxEiQSFDUgjxgaUAq10047FJGBQqEPoEUstPIovcfvW2uvc/Y9c2/n0XvPnal7z9zzrbPPfq1vrb3Pvvuex4YmvDPFWc98iYiP+JND2TOZWOPjt9mXLa2rpekw5/QNj8IYDzXT/00nH32dfdnSHNr+emvyWMnBKzjSLGIv7ImtsJ1c+o/cf4xHw2F8Uudh+mf8VE/OJGnLNquphJjKdSS2ROO0TSabspKaaSWXpE7VZTkSktJ1XcseH9PT5zRj2DaEAbEpSiLyo6NAOgERmyLObCod1NIxLYMhRS6ZOvRlicRmWIf34jSN8wvzGinOtQvysPYwv+nAAlz9gpAlu0NtWVVzmdlVCzS9DGvV58WlelvBUr3uxHE8VJ5V/qwW3pxtx5JLvg3V/jwR9afti7Y/6vt+R8/G25vBNk9avu+J7c3uhp79x69/c5806nMDE/2wWf4/fv0P3f/99o9axuPiaSIzk6Hkb1L/b5b+vg9avzcUfWDUFNkHuePQ9DaUdKa/7EyQFY6X1y1cjA63mA2lckSRcVIwtGmFIVKqsg79vCxDyomin3Uve+IWp2uAohjgmMZ+7fftenXTcAxENXaGUgY2KapdOYiZjekPIhOZUP4tT67MUZTPprD8usGOEV07DNkOqd8hZQmGtQodh/542uTrcVy5bPb7+vfWKrJRcXzFdTTzXbhrTJ7AqMVSNwbRUbkvWn+/PrE62mJ/TbN/FP0Bk42GPnNDiXTbovy/uPlGae7ijfegM29J+0GVwp7eFIvSn+5r4wDltK9ix3yb7RlLcJPFovp/S/zf+DCOhLex9/8JscLxTkmfvSEGg2JyAskpRJJlbHYoPgNDG9rTRw0x63qga+mirxhPAVvFgDtByahjndohbKmdVNG3/2hb6+bY8AP9g/eIRJQP/YgyUWTuMq5OECfDMaIvu+Q8sTEQVc6QsRoMNWUWh/hce8aqP75M7Eva4pVzFm/a4iprKnSc/PfXZ8Qx3jURbVJtWqt/Xtli7B/d1TntA6vAgW/YfFMOax9PyIRrOG4P5Z+5Wsalf66MZu2SL7z78FtaPnUTJTOEnmP1/3xbx6X/GPjN11d73+lWQP/P199w/f0xz5ddxTrm0ZLZuKdxxgETUrbgyxNghSNZ39sOr+O7U9BCfAwpy/KNQ8iimENVUhU31QxhhKdnTGu/go/ZtbiARTPg7CnVUq4dfJ+mTLsaUtZSDFmGykSRnb9w4Ko1YFvNmho5+G2EOeVbif62mE5SJV5zZOVZuVqCtlfb6LcdWV3Q/NY+jbQ4S5OhX4bpbUhNtVZFELMviaOPdi0ZKPTNxu/u2bh76rTp5+P80a/tbY3+yqLjwphpsv2h7x2dPbMulyexZmZruMRvfmZ3w7z9G6F/wxs+QoFzlwz8EX7z83rJ1J+y+T11bqb+I/X/eu0cfbz1de25ms/ihpcy0fT3x1CVYRHvnKztHX//b/kKx64K3gqbVHiHiljDUHecoaiwnVAc+sSkZsQxzEdeS8rli2edNnhYT11MywzCuBigfeQDu6ZYw8a+HSnLYOOQcv7DE7k5vZzU5Usn/INoX0ANXX4qkJYDQWQiBR5zKLJrI6e3MsWVtjgdqBP/DF1axlnI6zPW9GyK8UDZ+zwfJ+3nFT3ZML14J0w5af8wGvRwi/QXLoq0P17+9auO3pOubPQdKcapjxW+Ldb5vaFn+9QPDld/v86i5I6k/avoIY9ZPzFk/dTV0PQ2bIb+7OtSLpECgqHuHd42r08D+3/h/t+o8U+/4imvLZ9wJMnB1ZmJbeAm1vowpaXxZZcWjy3H8U/P6338nzwaQqsYwMvb0Iv5obkMKctg45CyJlEUmYMus/GkLoNRhpKbpmYpLAMfjhmGKnOiwDjNNxztmObDVvITfTktX9qigxLbxbJTdPX49VFX1tlQ/UulB6eX2ns7+vo3oMqWhdl9/Xs7e2afH8XxjcIDWiK6OjS9Dc3uhqQYbAvVRP6JrR2KLNxpuSxHcjhUmeojJ4vBR7l3dnHt8O3BMqo/zJflt7KIqRwlb2Px9wudvYNXF7VKGmMkLkJ/sld0iPr6D0wptX8KFL9Cm+s/pYlm//EzYz7WlP5PRydpZIzgkHJT/N8vHxVIPUD6J+tLkS3BQcYdSn+9pBaJEFo64XhpcFEX3rS3UpRAY8QBHYo7QpkUPcXS9F6cKh5/s3v50N1ULITWMpA5oHNKGI2OSu81pMx0hiIjjSE9mYcNfVk9P0tr9VFryU8BQepyqLKrH56FlEyCYKh7/lbqZAok0Q/bTFnbzjIpE3253nFmlnZoIZKXcZZedUUFKA8J38At3d/o6p39kaP65NkYftNaIvPbflfvpi+jeTiBJK/7Ovuy6ePHmd6Gprch81Trr5xrXLWs/Cj3lkfyi61QjgtSF2SiyiPYPyo939YWn9PVt+mXVkYRiAUO8QHTJdOPjVfdSY/J2fGMs9HpX4Q2w+vAZPX59nLblVDyzQlt/+FNHzkGF+CYf9EGlIm+bMcRqX5IY7o0hmI/lzezL6pvqP1H8P+ctmwmg2sucOzj34RZ4ajsf/szeNNe2YyjijkNRc38xo4RfZk2iW7rXv6vH+RzhP1WMaA2kk4EW43axr5ZRcbGkIL0AId+b6ijptbPbNoGJrM4X86OWzpWmnXOdMBALGULVla9/Hp87PpjIv7XqNR+amffphuKWNI3fUaLnX2Dd5SiqUtA0b3M02j9xeZmd8Mm2h8a8Ar0m6dNKS2eu3jTutHy0PB0oisJdR/RmbW4iAb4P0trRZizZOCBtlJ5JZzl9br1F6C/9Vm2wWTrp3XbNcKBye7/9dqvY52OgzbuGeb5Mw4N6bMqZ+S1dIUD126sRouy1phM9DuW62ymCFFkNxvEbdDru4859uqsoCBNXgb0Qs5SiejLtTUyh059InVyN0BLNs/HahdTN9YuKJWLzfiLHYLF1c10GAfwg8wjUdR2UdfSzRd09fU/cxhFNT0r29e1dHAlXhz3SVT2QmMq9G3uy7VLb4T98WVlY1spXtHVO3hd66/98nX25ebpX7vk5sR2LB1YE5XL5+KkNVS7Bl9nX66duhH2r11yq2J9nX25dnuarb+NdY0a/1o24dj52Af7MG1YpDTqyQH72OVW/3hM4zRVfptgHRKO++KUg/Gl0YI1b+aPh/1WMuBO+P7E0SaKDv3OkrXUlg+Iej2EoaaHR1iZ8A4NhlkpqSRpsUd09RrWqt+P8+W0vJzgp1E51z5r6yHqhxrv4KT3p6gturBr6eNnYTn//lw1E3q3q2fznaUp8Sm4aPc7MNlu44G9V3g3HAX/tLWG5tsfbRvCe1Gu6ew7eencvs2PTQySm6v/O6UCH8RRh9DOJQMD0fS5PfCO3zCJ9SFN3lz9pS7nh1avYZ3mjiqaZWg5GU50/ze9DamoyURfrkeCn0Zly8cx2ev/roCWvbwtOXhgNZvkB/+CG43HUo4MQJoSHLjfx/Qo0r+FC1Ium7viqR1+OUGeQAz44wealdsVp+YSnTmuympnasF9Oq6iiCo755F45xdMmaV1PoMYudpajml55kcaZWW7AiXSl11GB5zpq5/atw9OiiibZtXp02h32FLhjaxsNS8C/W1pWunWrlMHX8rlnFS7x5y+eT8a/L3khTN/8vKu164Cq3gGTrKgnv7GA+2uNlfOVVY7kQC1u9kIEWSNmZ2JTNZ0zGFpNQG3w+xfivqxonFDR98nfs+Hm5VKzXtSOVs0uqADNfXw/VP1Mp1Q0mHq37IBP0dC58I1+xD1uV3rF94SR9GNlUpyOpM0W/98+Xl/yTVzVLu48YEtr53Woh3mdv9/xj/HTkv8Lxl6/9Sdeyq8gAgOxgHbDQ4C7HjaOnUOr7PJKEOTaYI4jj5/zPKnH61t6RDbSgbMpmZfIoOeYDKbj3S8pg7OP3iME1J4jCD3h5XP4/Qz/KXHXZxE5DZS3iHS549LsQnK1uKH1+/8G77Ka6eextntMTyW/L4ZUfl+Pt8iV/2k33UvSLwpSS6/eff6Jy+CbVZhQnYJOvpRVG6YfRw/9fyjJiHjsD++mLwIL/gdVpFuP6ZncK2WOxEmGpmG2XiX9Y/sqCeNQ3/z/9avb3h6QOzu2/Jgkny356X+O1fhJ9QvJZVkmY0J1Sm9vcPQ38YCYqOCcDtC/6/n36ZrveM12+g1XcajSTD+mR4tmXDs2H3wYjRgNhtRbXhjUtF8wtBPj1nxT7uXP/NrxoUwcRkw+xqypb48Ust1ENZvPpKWrsHO7VyFZcmu5yTV5Vf7FMtDA/RbsorptyrsMkYhRT8OstVNlIDljTh+Az/v4Se96A0Utg9ZdwJ3YBDZjju1t0Xlts1JW7TZrQJYxiMa3e2keLR16Z7k2Q9Ne/nfe1biW+ylGCDPgX0WjFb58dof+WjILcCHYIs7O3suX6OrGaOtufB0qUf5NY9X/6yMan8u28w4S9ByydnlNjTkthf7TzsjqhzEzQTRJeiLxzVaf5ZX1f9L0au4ruBhfBG4v9xevmtcZKBMf8ypJdeKG01dTdcf7mF1aHuq/aU6DnvCn0MA9bJJk6atwYWQrkdrOrllbBZuXzv/bgwHHxvW+mEVUnnTkAdVxqB137wz+z5e1D3yw5oVIgIDgYFxM7B7fW837o48C9357EqSLER/PhED1wlYDSnLNKGqy2OHk8l00Ko5JrxZiuLnkHBrFMWb4iT6G27BfOToJQP/GXcjQ8aWMgB/iF75x6K+g3FyLqb0y9CYZbD8fNgYYpWDYN/isiNMwWBHkijCs1VKz+ILwBB85IlSnGzGz2ob5vQMPokTJpOFUAADZpcCqtIqdq8/pfvtt994ARZuy7xBj9nSOJEhv1xEP8Ptgk/NmPGe5WEwUc7CNjBwJDCAn2DaXhwYOj6qHDgRPz4dDZ1morPPEMQr5JK4UsEzSf6Lycd+DA/7S23xfuzviduirXNOH9gZThpHghccWgeulO3Z++oJlQMH34s5wjxMRGZiSgEfiWbgiVI8acA3nH/QV+LSPlwUvKcytbKjc9Hgy8FHDs1vEUcLn3DsWDv/eiytyvMyWDm9JG2Ere24bzP55Ro84XBvnCRnzFvx3JNFkBPqCAwEBgIDgYHAQGCgMQwUflssVkdX6zRDVzFUVmX0an/EYOrqyzyKOQie51a5Mkw2lKuwDQwEBgIDgYHAwGRioNAJxwtr5y/HTOIUWdbAfEN+OnGoP6doHFc8dNVDLwhkLPa/fvyZ2/4ymcgNbQ0MBAYCA4GBwEBgQBko9C6V6GDlKt5ByAmEBu5QdtMLd3EYf0qxIEej6NZjV2z7kcUFDAwEBgIDgYHAQGBgcjFQ2ApH8uz8aZg8XIEVjowhk4m+bCk4D4lK646dF19rUQEDA4GBwEBgIDAQGJh8DBQ24dixq3IBZhWz7A4UUmUrGUSVM+TKB6J3YZZyWbTgufDY8snnW6HFgYHAQGAgMBAYSBko7CcV3P/Me+7dQ0L4KGgGPlGPsv6kIlHpJnqrPU4u7VixfWcaFYTAQGAgMBAYCAwEBiYlA4WtcOAWk6VkyFY1KNuzfIj88FiGlWu7V2xv3Wui2cAQAgOBgcBAYCAwEBhoCAOFTTiSKOHLeqoWM/xbX30ZD2j58XFn7ZA3CTZEy1BIYCAwEBgIDAQGAgMtZaCwCQcuydjK6zfkeg0i/hgMReYKR6l073FnXfM1ORg2gYHAQGAgMBAYCAwcEQwUNuGIytFNmE0c0Ks1ONmwu1UMufiRrJs5fdqqCf6SpSPC8EGJwEBgIDAQGAgMFMlAYROO48/YPoRJxvX48DGiAF3tMMTu2plTZl44u2/r3iIJCHUFBgIDgYHAQGAgMNB8BnTBofn1pDVse3jeBaj0i5hynIe5x1t4y+Mz2P/F8WefdEcUrXknTRiEwEBgIDAQGAgMBAaOGAb+B5nwCpLPLNx7AAAAAElFTkSuQmCC"],["fxFlex","30","width","295","height","295","viewBox","0 0 295 295","fill","none","xmlns","http://www.w3.org/2000/svg",3,"ngClass"],["clip-path","url(#clip0)"],["d","M182.629 183.635C213.842 170.774 228.719 135.046 215.857 103.833C202.996 72.6204 167.268 57.7435 136.055 70.6048C104.843 83.4659 89.966 119.195 102.827 150.407C115.688 181.62 151.417 196.496 182.629 183.635Z",1,"fill-color-0"],["d","M154.81 93.8059C152.146 100.719 149.483 108.164 146.287 115.608C146.287 115.608 146.287 116.672 147.353 116.672H169.191C169.191 116.672 169.191 117.204 169.723 117.736L137.765 153.364C137.233 152.832 137.233 152.301 137.233 151.769L148.418 127.839V125.712H126.047V123.585L153.212 93.8059H154.81Z",1,"fill-color-15"],["d","M158.075 173.411C189.288 160.55 204.164 124.822 191.303 93.6088C178.442 62.3964 142.714 47.5195 111.501 60.3808C80.2885 73.2419 65.4118 108.971 78.2729 140.183C91.1342 171.396 126.863 186.272 158.075 173.411Z",1,"stroke-color-thinest"],["d","M259.352 172.363L85.4595 244.016",1,"stroke-color-thinest"],["d","M122.291 259.352L85.4593 244.016L100.795 207.184",1,"stroke-color-thinest"],["id","clip0"],["width","225.692","height","225.692","transform","translate(0 85.9831) rotate(-22.3941)",1,"fill-color-30"],["fxFlex","30","width","300","height","300","viewBox","0 0 300 300","fill","none","xmlns","http://www.w3.org/2000/svg",3,"ngClass"],["d","M50 237.5V112.5C50 105.625 55.625 100 62.5 100H262.5C269.375 100 275 105.625 275 112.5V237.5C275 244.375 269.375 250 262.5 250H62.5C55.625 250 50 244.375 50 237.5Z",1,"fill-color-0"],["d","M25 212.5V87.5C25 80.625 30.625 75 37.5 75H237.5C244.375 75 250 80.625 250 87.5V212.5C250 219.375 244.375 225 237.5 225H37.5C30.625 225 25 219.375 25 212.5Z",1,"stroke-color"],["d","M293.75 200H275V150H293.75C297.25 150 300 152.75 300 156.25V193.75C300 197.25 297.25 200 293.75 200Z",1,"fill-color-0"],["d","M268.75 175H250V125H268.75C272.25 125 275 127.75 275 131.25V168.75C275 172.25 272.25 175 268.75 175Z",1,"stroke-color"],["d","M137.5 187.5L156.25 150H118.75L137.5 112.5",1,"stroke-color"]],template:function(t,e){if(1&t&&(r.YNc(0,Yi,1,0,"ng-container",0),r.YNc(1,ji,18,5,"ng-template",null,1,r.W1O),r.YNc(3,Vi,15,5,"ng-template",null,2,r.W1O),r.YNc(5,Qi,19,5,"ng-template",null,3,r.W1O),r.YNc(7,Wi,17,5,"ng-template",null,4,r.W1O),r.YNc(9,Ji,13,5,"ng-template",null,5,r.W1O)),2&t){const t=r.MAs(2),i=r.MAs(4),n=r.MAs(6),s=r.MAs(8),o=r.MAs(10);r.Q6J("ngTemplateOutlet",1===e.stepNumber?t:2===e.stepNumber?i:3===e.stepNumber?n:4===e.stepNumber?s:o)}},directives:[U.tP,P.xw,P.yH,P.Wh,U.mk,ue.oO,Z.n5,Z.$j],styles:["svg.small-svg[_ngcontent-%COMP%]{height:50%;min-height:50%;max-width:100%}svg.large-svg[_ngcontent-%COMP%]{height:60%;min-height:60%;max-width:100%}"],data:{animation:[Ni.l]}}),t})();const Ki=["stepper"];function $i(t,e){if(1&t&&r._uU(0),2&t){const t=r.oxw(2);r.Oqu(t.inputFormLabel)}}function tn(t,e){1&t&&(r.TgZ(0,"mat-error"),r._uU(1,"Amount is required."),r.qZA())}function en(t,e){if(1&t&&(r.TgZ(0,"mat-error"),r._uU(1),r.ALo(2,"number"),r.qZA()),2&t){const t=r.oxw(2);r.xp6(1),r.hij("Amount must be greater than or equal to ",r.lcZ(2,1,null==t.serviceInfo||null==t.serviceInfo.limits?null:t.serviceInfo.limits.minimal),".")}}function nn(t,e){if(1&t&&(r.TgZ(0,"mat-error"),r._uU(1),r.ALo(2,"number"),r.qZA()),2&t){const t=r.oxw(2);r.xp6(1),r.hij("Amount must be less than or equal to ",r.lcZ(2,1,null==t.serviceInfo||null==t.serviceInfo.limits?null:t.serviceInfo.limits.maximal),".")}}function rn(t,e){1&t&&(r.TgZ(0,"button",40),r._uU(1,"Next"),r.qZA())}function sn(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"button",41),r.NdJ("click",function(){return r.CHM(t),r.oxw(2).onSwap()}),r._uU(1),r.qZA()}if(2&t){const t=r.oxw(2);r.xp6(1),r.hij("Initiate ",t.swapDirectionCaption,"")}}function on(t,e){if(1&t&&r._uU(0),2&t){const t=r.oxw(3);r.Oqu(t.addressFormLabel)}}function an(t,e){1&t&&(r.TgZ(0,"mat-error"),r._uU(1,"Address is required."),r.qZA())}function ln(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"mat-step",15),r.TgZ(1,"form",16),r.YNc(2,on,1,1,"ng-template",17),r.TgZ(3,"div",42),r.TgZ(4,"mat-radio-group",43),r.NdJ("change",function(e){return r.CHM(t),r.oxw(2).onAddressTypeChange(e)}),r.TgZ(5,"mat-radio-button",44),r._uU(6,"Node Local Address"),r.qZA(),r.TgZ(7,"mat-radio-button",45),r._uU(8,"External Address"),r.qZA(),r.qZA(),r.TgZ(9,"mat-form-field",46),r._UZ(10,"input",47),r.YNc(11,an,2,0,"mat-error",24),r.qZA(),r.qZA(),r.TgZ(12,"div",25),r.TgZ(13,"button",48),r.NdJ("click",function(){return r.CHM(t),r.oxw(2).onSwap()}),r._uU(14),r.qZA(),r.qZA(),r.qZA(),r.qZA()}if(2&t){const t=r.oxw(2);r.Q6J("stepControl",t.addressFormGroup)("editable",t.flgEditable),r.xp6(1),r.Q6J("formGroup",t.addressFormGroup),r.xp6(9),r.Q6J("required","external"===t.addressFormGroup.controls.addressType.value),r.xp6(1),r.Q6J("ngIf",null==t.addressFormGroup.controls.address.errors?null:t.addressFormGroup.controls.address.errors.required),r.xp6(3),r.hij("Initiate ",t.swapDirectionCaption,"")}}function cn(t,e){if(1&t&&r._uU(0),2&t){const t=r.oxw(2);r.hij("",t.swapDirectionCaption," Status")}}function hn(t,e){if(1&t&&(r.TgZ(0,"mat-icon",49),r._uU(1),r.qZA()),2&t){const t=r.oxw(2);r.xp6(1),r.Oqu(t.swapStatus&&null!=t.swapStatus&&t.swapStatus.id?"check":"close")}}function un(t,e){1&t&&r._UZ(0,"div")}function dn(t,e){1&t&&r._UZ(0,"mat-progress-bar",50)}function pn(t,e){if(1&t&&(r.TgZ(0,"h4",51),r._uU(1),r.qZA()),2&t){const t=r.oxw(2);r.xp6(1),r.Oqu(t.swapStatus&&t.swapStatus.error?t.swapDirectionCaption+" failed.":t.swapStatus&&t.swapStatus.id?t.swapDirectionCaption+" request placed successfully. You can check the status of the request on the 'Boltz' menu.":t.swapDirectionCaption+" request placed successfully.")}}function fn(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"button",52),r.NdJ("click",function(){return r.CHM(t),r.oxw(2).onRestart()}),r._uU(1,"Start Again"),r.qZA()}}function mn(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div",3),r.TgZ(1,"div",4),r.TgZ(2,"mat-card-header",5),r.TgZ(3,"div",6),r.TgZ(4,"span",7),r._uU(5),r.qZA(),r.qZA(),r.TgZ(6,"div",8),r.TgZ(7,"button",9),r.NdJ("click",function(){return r.CHM(t),r.oxw().showInfo()}),r._uU(8,"?"),r.qZA(),r.TgZ(9,"button",10),r.NdJ("click",function(){return r.CHM(t),r.oxw().onClose()}),r._uU(10,"X"),r.qZA(),r.qZA(),r.qZA(),r.TgZ(11,"mat-card-content",11),r.TgZ(12,"div",12),r.TgZ(13,"mat-vertical-stepper",13,14),r.NdJ("selectionChange",function(e){return r.CHM(t),r.oxw().stepSelectionChanged(e)}),r.TgZ(15,"mat-step",15),r.TgZ(16,"form",16),r.YNc(17,$i,1,1,"ng-template",17),r.TgZ(18,"div",18),r._UZ(19,"rtl-boltz-service-info",19),r.qZA(),r.TgZ(20,"div",20),r.TgZ(21,"mat-form-field",21),r._UZ(22,"input",22),r.TgZ(23,"mat-hint"),r._uU(24),r.ALo(25,"number"),r.ALo(26,"number"),r.qZA(),r.TgZ(27,"span",23),r._uU(28,"Sats"),r.qZA(),r.YNc(29,tn,2,0,"mat-error",24),r.YNc(30,en,3,3,"mat-error",24),r.YNc(31,nn,3,3,"mat-error",24),r.qZA(),r.qZA(),r.TgZ(32,"div",25),r.YNc(33,rn,2,0,"button",26),r.YNc(34,sn,2,1,"button",27),r.qZA(),r.qZA(),r.qZA(),r.YNc(35,ln,15,6,"mat-step",28),r.TgZ(36,"mat-step",29),r.TgZ(37,"form",16),r.YNc(38,cn,1,1,"ng-template",17),r.TgZ(39,"div",30),r.TgZ(40,"mat-expansion-panel",31),r.TgZ(41,"mat-expansion-panel-header"),r.TgZ(42,"mat-panel-title"),r.TgZ(43,"span",32),r._uU(44),r.YNc(45,hn,2,1,"mat-icon",33),r.qZA(),r.qZA(),r.qZA(),r.YNc(46,un,1,0,"div",34),r.qZA(),r.YNc(47,dn,1,0,"mat-progress-bar",35),r.qZA(),r.YNc(48,pn,2,1,"h4",36),r.TgZ(49,"div",25),r.YNc(50,fn,2,0,"button",37),r.qZA(),r.qZA(),r.qZA(),r.qZA(),r.TgZ(51,"div",38),r.TgZ(52,"button",39),r._uU(53,"Close"),r.qZA(),r.qZA(),r.qZA(),r.qZA(),r.qZA(),r.qZA()}if(2&t){const t=r.oxw(),e=r.MAs(2);r.Q6J("@opacityAnimation",void 0),r.xp6(3),r.Q6J("fxFlex",t.screenSize===t.screenSizeEnum.XS||t.screenSize===t.screenSizeEnum.SM?"83":"91"),r.xp6(2),r.Oqu(t.swapDirectionCaption),r.xp6(1),r.Q6J("fxFlex",t.screenSize===t.screenSizeEnum.XS||t.screenSize===t.screenSizeEnum.SM?"17":"9"),r.xp6(7),r.Q6J("linear",!0),r.xp6(2),r.Q6J("stepControl",t.inputFormGroup)("editable",t.flgEditable),r.xp6(1),r.Q6J("formGroup",t.inputFormGroup),r.xp6(3),r.Q6J("serviceInfo",t.serviceInfo)("direction",t.direction),r.xp6(3),r.Q6J("step",1e3),r.xp6(2),r.AsE("Range: ",r.lcZ(25,30,null==t.serviceInfo||null==t.serviceInfo.limits?null:t.serviceInfo.limits.minimal),"-",r.lcZ(26,32,null==t.serviceInfo||null==t.serviceInfo.limits?null:t.serviceInfo.limits.maximal),""),r.xp6(5),r.Q6J("ngIf",null==t.inputFormGroup||null==t.inputFormGroup.controls||null==t.inputFormGroup.controls.amount||null==t.inputFormGroup.controls.amount.errors?null:t.inputFormGroup.controls.amount.errors.required),r.xp6(1),r.Q6J("ngIf",null==t.inputFormGroup||null==t.inputFormGroup.controls||null==t.inputFormGroup.controls.amount||null==t.inputFormGroup.controls.amount.errors?null:t.inputFormGroup.controls.amount.errors.min),r.xp6(1),r.Q6J("ngIf",null==t.inputFormGroup||null==t.inputFormGroup.controls||null==t.inputFormGroup.controls.amount||null==t.inputFormGroup.controls.amount.errors?null:t.inputFormGroup.controls.amount.errors.max),r.xp6(2),r.Q6J("ngIf",t.direction===t.swapTypeEnum.SWAP_OUT),r.xp6(1),r.Q6J("ngIf",t.direction===t.swapTypeEnum.SWAP_IN),r.xp6(1),r.Q6J("ngIf",t.direction===t.swapTypeEnum.SWAP_OUT),r.xp6(1),r.Q6J("stepControl",t.statusFormGroup),r.xp6(1),r.Q6J("formGroup",t.statusFormGroup),r.xp6(3),r.Q6J("expanded",!!t.swapStatus),r.xp6(4),r.Oqu(t.swapStatus?t.swapStatus.id?t.swapDirectionCaption+" request details":t.swapDirectionCaption+" error details":"Waiting for "+t.swapDirectionCaption+" request..."),r.xp6(1),r.Q6J("ngIf",t.swapStatus),r.xp6(1),r.Q6J("ngIf",!t.swapStatus)("ngIfElse",e),r.xp6(1),r.Q6J("ngIf",!t.swapStatus),r.xp6(1),r.Q6J("ngIf",t.swapStatus),r.xp6(2),r.Q6J("ngIf",t.swapStatus&&(t.swapStatus.error||!t.swapStatus.id)),r.xp6(2),r.Q6J("mat-dialog-close",!1)}}function gn(t,e){if(1&t&&r._UZ(0,"rtl-boltz-swap-status",53),2&t){const t=r.oxw();r.Q6J("swapStatus",t.swapStatus)("direction",t.direction)}}function yn(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"rtl-boltz-swapout-info-graphics",70),r.NdJ("stepNumberChange",function(e){return r.CHM(t),r.oxw(2).stepNumber=e}),r.qZA()}if(2&t){const t=r.oxw(2);r.Q6J("stepNumber",t.stepNumber)("animationDirection",t.animationDirection)}}function bn(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"rtl-boltz-swapin-info-graphics",70),r.NdJ("stepNumberChange",function(e){return r.CHM(t),r.oxw(2).stepNumber=e}),r.qZA()}if(2&t){const t=r.oxw(2);r.Q6J("stepNumber",t.stepNumber)("animationDirection",t.animationDirection)}}const vn=function(t,e){return{"dot-primary":t,"dot-primary-lighter":e}};function _n(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"span",71),r.NdJ("click",function(){const e=r.CHM(t).$implicit;return r.oxw(2).onStepChanged(e)}),r._UZ(1,"p",72),r.qZA()}if(2&t){const t=e.$implicit,i=r.oxw(2);r.xp6(1),r.Q6J("ngClass",r.WLB(1,vn,i.stepNumber===t,i.stepNumber!==t))}}function wn(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"button",73),r.NdJ("click",function(){return r.CHM(t),r.oxw(2).onReadMore()}),r._uU(1,"Read More"),r.qZA()}}function xn(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"button",74),r.NdJ("click",function(){return r.CHM(t),r.oxw(2).onStepChanged(4)}),r._uU(1,"Back"),r.qZA()}}function Cn(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"button",75),r.NdJ("click",function(){r.CHM(t);const e=r.oxw(2);return e.flgShowInfo=!1,e.stepNumber=1}),r._uU(1,"Close"),r.qZA()}}function An(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"button",76),r.NdJ("click",function(){r.CHM(t);const e=r.oxw(2);return e.flgShowInfo=!1,e.stepNumber=1}),r._uU(1,"Close"),r.qZA()}}function Sn(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"button",77),r.NdJ("click",function(){r.CHM(t);const e=r.oxw(2);return e.onStepChanged(e.stepNumber-1)}),r._uU(1,"Back"),r.qZA()}}function En(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"button",78),r.NdJ("click",function(){r.CHM(t);const e=r.oxw(2);return e.onStepChanged(e.stepNumber+1)}),r._uU(1,"Next"),r.qZA()}}const kn=function(){return[1,2,3,4,5]};function Tn(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div",54),r.TgZ(1,"div",18),r.TgZ(2,"mat-card-header",55),r.TgZ(3,"div",56),r._UZ(4,"span",7),r.qZA(),r.TgZ(5,"div",57),r.TgZ(6,"button",58),r.NdJ("click",function(){r.CHM(t);const e=r.oxw();return e.flgShowInfo=!1,e.stepNumber=1}),r._uU(7,"X"),r.qZA(),r.qZA(),r.qZA(),r.TgZ(8,"mat-card-content",59),r.YNc(9,yn,1,2,"rtl-boltz-swapout-info-graphics",60),r.YNc(10,bn,1,2,"rtl-boltz-swapin-info-graphics",60),r.qZA(),r.TgZ(11,"div",61),r.YNc(12,_n,2,4,"span",62),r.qZA(),r.TgZ(13,"div",63),r.YNc(14,wn,2,0,"button",64),r.YNc(15,xn,2,0,"button",65),r.YNc(16,Cn,2,0,"button",66),r.YNc(17,An,2,0,"button",67),r.YNc(18,Sn,2,0,"button",68),r.YNc(19,En,2,0,"button",69),r.qZA(),r.qZA(),r.qZA()}if(2&t){const t=r.oxw();r.Q6J("@opacityAnimation",void 0),r.xp6(9),r.Q6J("ngIf",t.direction===t.swapTypeEnum.SWAP_OUT),r.xp6(1),r.Q6J("ngIf",t.direction===t.swapTypeEnum.SWAP_IN),r.xp6(2),r.Q6J("ngForOf",r.DdM(10,kn)),r.xp6(2),r.Q6J("ngIf",5===t.stepNumber),r.xp6(1),r.Q6J("ngIf",5===t.stepNumber),r.xp6(1),r.Q6J("ngIf",5===t.stepNumber),r.xp6(1),r.Q6J("ngIf",t.stepNumber<5),r.xp6(1),r.Q6J("ngIf",t.stepNumber>1&&t.stepNumber<5),r.xp6(1),r.Q6J("ngIf",t.stepNumber<5)}}let Mn=(()=>{class t{constructor(t,e,i,n,r,s,o,a,l){this.dialogRef=t,this.data=e,this.store=i,this.boltzService=n,this.formBuilder=r,this.decimalPipe=s,this.logger=o,this.router=a,this.commonService=l,this.faInfoCircle=N.sqG,this.serviceInfo={fees:{percentage:null,miner:{normal:null,reverse:null}},limits:{minimal:1e4,maximal:5e7}},this.swapTypeEnum=G.hc,this.direction=G.hc.SWAP_OUT,this.swapDirectionCaption="Swap out",this.swapStatus=null,this.inputFormLabel="Amount to swap out",this.addressFormLabel="Withdrawal Address",this.flgShowInfo=!1,this.stepNumber=1,this.screenSize="",this.screenSizeEnum=G.cu,this.animationDirection="forward",this.flgEditable=!0,this.unSubs=[new h.x,new h.x,new h.x,new h.x,new h.x,new h.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.serviceInfo=this.data.serviceInfo,this.direction=this.data.direction,this.swapDirectionCaption=this.direction===G.hc.SWAP_OUT?"Swap Out":"Swap in",this.inputFormLabel="Amount to "+this.swapDirectionCaption,this.inputFormGroup=this.formBuilder.group({amount:[this.serviceInfo.limits.minimal,[W.kI.required,W.kI.min(this.serviceInfo.limits.minimal),W.kI.max(this.serviceInfo.limits.maximal)]]}),this.addressFormGroup=this.formBuilder.group({addressType:["local",[W.kI.required]],address:[{value:"",disabled:!0}]}),this.statusFormGroup=this.formBuilder.group({}),this.onFormValueChanges()}ngAfterViewInit(){this.direction===G.hc.SWAP_OUT&&this.addressFormGroup.setErrors({Invalid:!0})}onFormValueChanges(){this.direction===G.hc.SWAP_OUT&&this.addressFormGroup.valueChanges.pipe((0,k.R)(this.unSubs[2])).subscribe(t=>{this.addressFormGroup.setErrors({Invalid:!0})})}onAddressTypeChange(t){"external"===t.value?(this.addressFormGroup.controls.address.setValidators([W.kI.required]),this.addressFormGroup.controls.address.markAsTouched(),this.addressFormGroup.controls.address.enable()):(this.addressFormGroup.controls.address.setValidators(null),this.addressFormGroup.controls.address.markAsPristine(),this.addressFormGroup.controls.address.disable(),this.addressFormGroup.controls.address.setValue("")),this.addressFormGroup.setErrors({Invalid:!0})}onSwap(){if(!this.inputFormGroup.controls.amount.value||this.inputFormGroup.controls.amount.value<+this.serviceInfo.limits.minimal||this.inputFormGroup.controls.amount.value>+this.serviceInfo.limits.maximal||this.direction===G.hc.SWAP_OUT&&"external"===this.addressFormGroup.controls.addressType.value&&(!this.addressFormGroup.controls.address.value||""===this.addressFormGroup.controls.address.value.trim()))return!0;this.flgEditable=!1,this.stepper.selected.stepControl.setErrors(null),this.stepper.next(),this.direction===G.hc.SWAP_IN?this.boltzService.swapIn(this.inputFormGroup.controls.amount.value).pipe((0,k.R)(this.unSubs[3])).subscribe({next:t=>{this.swapStatus=t,this.boltzService.listSwaps(),this.flgEditable=!0},error:t=>{this.swapStatus={error:t},this.flgEditable=!0,this.logger.error(t)}}):this.boltzService.swapOut(this.inputFormGroup.controls.amount.value,"external"===this.addressFormGroup.controls.addressType.value?this.addressFormGroup.controls.address.value:"").pipe((0,k.R)(this.unSubs[4])).subscribe({next:t=>{this.swapStatus=t,this.boltzService.listSwaps(),this.flgEditable=!0},error:t=>{this.swapStatus={error:t},this.flgEditable=!0,this.logger.error(t)}})}stepSelectionChanged(t){switch(t.selectedIndex){case 0:this.inputFormLabel="Amount to "+this.swapDirectionCaption,this.addressFormLabel="Withdrawal Address";break;case 1:this.inputFormLabel=this.inputFormGroup.controls.amount.value?this.swapDirectionCaption+" Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.amount.value?this.inputFormGroup.controls.amount.value:0)+" Sats":"Amount to "+this.swapDirectionCaption,this.addressFormLabel="Withdrawal Address";break;default:this.inputFormLabel="Amount to "+this.swapDirectionCaption,this.addressFormLabel="Withdrawal Address"}t.selectedIndex{t.next(null),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(ot.so),r.Y36(ot.WI),r.Y36(a.yh),r.Y36(Ei),r.Y36(W.qu),r.Y36(U.JJ),r.Y36(V.mQ),r.Y36(R.F0),r.Y36(le.v))},t.\u0275cmp=r.Xpm({type:t,selectors:[["rtl-boltz-swap-modal"]],viewQuery:function(t,e){if(1&t&&r.Gf(Ki,5),2&t){let t;r.iGM(t=r.CRH())&&(e.stepper=t.first)}},decls:4,vars:2,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf"],["swapStatusBlock",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch","class","info-graphics-container",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxLayoutAlign","start start",3,"fxFlex"],[1,"page-title"],["fxLayoutAlign","space-between end",3,"fxFlex"],["tabindex","21","mat-button","",1,"btn-close-x","p-0",3,"click"],["tabindex","22","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],[3,"linear","selectionChange"],["stepper",""],[3,"stepControl","editable"],["fxLayout","column","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"my-1",3,"formGroup"],["matStepLabel",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],[3,"serviceInfo","direction"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between center",1,"mt-1"],["fxFlex","48"],["autoFocus","","matInput","","placeholder","Amount","type","number","tabindex","1","formControlName","amount","required","",3,"step"],["matSuffix",""],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","2","type","button","matStepperNext","",4,"ngIf"],["mat-stroked-button","","color","primary","tabindex","3","type","button",3,"click",4,"ngIf"],[3,"stepControl","editable",4,"ngIf"],[3,"stepControl"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"flat-expansion-panel",3,"expanded"],["fxLayoutAlign","start center","fxFlex","100"],["class","ml-1 icon-small",4,"ngIf"],[4,"ngIf","ngIfElse"],["fxFlex","100","color","primary","mode","indeterminate",4,"ngIf"],["fxLayoutAlign","start","class","font-bold-500 mt-2",4,"ngIf"],["mat-flat-button","","color","primary","tabindex","13","type","button",3,"click",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end end"],["mat-stroked-button","","color","primary","tabindex","14","type","button","default","",3,"mat-dialog-close"],["mat-stroked-button","","color","primary","tabindex","2","type","button","matStepperNext",""],["mat-stroked-button","","color","primary","tabindex","3","type","button",3,"click"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mt-1"],["color","primary","name","addressType","formControlName","addressType","fxFlex","100","fxLayoutAlign","space-between stretch",3,"change"],["fxFlex","48","tabindex","8","value","local"],["fxFlex","48","tabindex","9","value","external"],["fxFlex","100",1,"mt-1"],["matInput","","placeholder","Address","tabindex","10","formControlName","address",3,"required"],["mat-stroked-button","","color","primary","tabindex","11","type","button",3,"click"],[1,"ml-1","icon-small"],["fxFlex","100","color","primary","mode","indeterminate"],["fxLayoutAlign","start",1,"font-bold-500","mt-2"],["mat-flat-button","","color","primary","tabindex","13","type","button",3,"click"],["fxLayout","column",3,"swapStatus","direction"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"info-graphics-container"],["fxLayout","row","fxFlex","8","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],["fxFlex","5","fxLayoutAlign","end center"],["tabindex","19","mat-button","",1,"btn-close-x","p-0",3,"click"],["fxLayout","column","fxFlex","70","fxLayoutAlign","space-between center",1,"padding-gap-x-large"],["fxFlex","100",3,"stepNumber","animationDirection","stepNumberChange",4,"ngIf"],["fxLayout","row","fxFlex","10","fxLayoutAlign","center end",1,"padding-gap-x-large","padding-gap-bottom-large"],["fxLayoutAlign","center center","class","dots-stepper-block",3,"click",4,"ngFor","ngForOf"],["fxLayout","row","fxFlex","10","fxLayoutAlign","end end",1,"padding-gap-x-large","padding-gap-bottom-large"],["mat-stroked-button","","class","mr-1","color","primary","tabindex","15","type","button",3,"click",4,"ngIf"],["mat-flat-button","","class","mr-1","color","primary","tabindex","16","type","button",3,"click",4,"ngIf"],["mat-flat-button","","color","primary","tabindex","17","type","button",3,"click",4,"ngIf"],["mat-stroked-button","","class","mr-1","color","primary","tabindex","18","type","button",3,"click",4,"ngIf"],["mat-flat-button","","class","mr-1","color","primary","tabindex","19","type","button",3,"click",4,"ngIf"],["mat-flat-button","","color","primary","tabindex","20","type","button",3,"click",4,"ngIf"],["fxFlex","100",3,"stepNumber","animationDirection","stepNumberChange"],["fxLayoutAlign","center center",1,"dots-stepper-block",3,"click"],[1,"dot","tiny-dot","mr-0",3,"ngClass"],["mat-stroked-button","","color","primary","tabindex","15","type","button",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","16","type","button",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","17","type","button",3,"click"],["mat-stroked-button","","color","primary","tabindex","18","type","button",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","19","type","button",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","20","type","button",3,"click"]],template:function(t,e){1&t&&(r.YNc(0,mn,54,34,"div",0),r.YNc(1,gn,1,2,"ng-template",null,1,r.W1O),r.YNc(3,Tn,20,11,"div",2)),2&t&&(r.Q6J("ngIf",!e.flgShowInfo),r.xp6(3),r.Q6J("ngIf",e.flgShowInfo))},directives:[U.O5,P.xw,P.yH,P.Wh,Z.dk,$.lW,Z.dn,ht.Vq,ht.C0,W._Y,W.JL,W.sg,ht.VY,Ti,J.KE,ut.Nt,W.wV,W.Fj,K.h,W.JJ,W.u,W.Q7,J.bx,J.R9,ki.ib,ki.yz,ki.yK,ot.ZT,J.TO,ht.Ic,he.VQ,he.U0,Mi.Hw,Ze.pW,Ri,U.sg,Hi,Xi,U.mk,ue.oO],pipes:[U.JJ],styles:[".dots-stepper-block[_ngcontent-%COMP%]{width:3rem}.info-graphics-container[_ngcontent-%COMP%]{max-height:60rem;min-height:60rem}"],data:{animation:[_i._]}}),t})();function Ln(t,e){1&t&&r._UZ(0,"mat-progress-bar",32)}function In(t,e){1&t&&(r.TgZ(0,"th",33),r._uU(1," Status "),r.qZA())}function On(t,e){if(1&t&&(r.TgZ(0,"td",34),r._uU(1),r.qZA()),2&t){const t=e.$implicit,i=r.oxw();r.xp6(1),r.Oqu(i.swapStateEnum[t.status])}}function Dn(t,e){1&t&&(r.TgZ(0,"th",33),r._uU(1," Swap ID "),r.qZA())}function Rn(t,e){if(1&t&&(r.TgZ(0,"td",34),r._uU(1),r.qZA()),2&t){const t=e.$implicit;r.xp6(1),r.Oqu(t.id)}}function Nn(t,e){1&t&&(r.TgZ(0,"th",33),r._uU(1," Claim Address "),r.qZA())}function Pn(t,e){if(1&t&&(r.TgZ(0,"td",34),r._uU(1),r.qZA()),2&t){const t=e.$implicit;r.xp6(1),r.Oqu(t.claimAddress)}}function Fn(t,e){1&t&&(r.TgZ(0,"th",35),r._uU(1," Onchain Amount (Sats) "),r.qZA())}function Zn(t,e){if(1&t&&(r.TgZ(0,"td",34),r.TgZ(1,"span",36),r._uU(2),r.ALo(3,"number"),r.qZA(),r.qZA()),2&t){const t=e.$implicit;r.xp6(2),r.Oqu(r.lcZ(3,1,t.onchainAmount))}}function Bn(t,e){1&t&&(r.TgZ(0,"th",33),r._uU(1," Lockup Address "),r.qZA())}function Un(t,e){if(1&t&&(r.TgZ(0,"td",34),r._uU(1),r.qZA()),2&t){const t=e.$implicit;r.xp6(1),r.Oqu(t.lockupAddress)}}function qn(t,e){1&t&&(r.TgZ(0,"th",35),r._uU(1," Expected Amount (Sats) "),r.qZA())}function zn(t,e){if(1&t&&(r.TgZ(0,"td",34),r.TgZ(1,"span",36),r._uU(2),r.ALo(3,"number"),r.qZA(),r.qZA()),2&t){const t=e.$implicit;r.xp6(2),r.Oqu(r.lcZ(3,1,t.expectedAmount))}}function Hn(t,e){1&t&&(r.TgZ(0,"th",35),r._uU(1," Timeout Block Height "),r.qZA())}function Yn(t,e){if(1&t&&(r.TgZ(0,"td",34),r.TgZ(1,"span",36),r._uU(2),r.ALo(3,"number"),r.qZA(),r.qZA()),2&t){const t=e.$implicit;r.xp6(2),r.Oqu(r.lcZ(3,1,t.timeoutBlockHeight))}}function Gn(t,e){1&t&&(r.TgZ(0,"th",35),r._uU(1," Amount (Sats) "),r.qZA())}function jn(t,e){if(1&t&&(r.TgZ(0,"td",34),r.TgZ(1,"span",36),r._uU(2),r.ALo(3,"number"),r.qZA(),r.qZA()),2&t){const t=e.$implicit;r.xp6(2),r.Oqu(r.lcZ(3,1,t.amt))}}function Vn(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"th",37),r.TgZ(1,"div",38),r.TgZ(2,"mat-select",39),r._UZ(3,"mat-select-trigger"),r.TgZ(4,"mat-option",40),r.NdJ("click",function(){return r.CHM(t),r.oxw().onDownloadCSV()}),r._uU(5,"Download CSV"),r.qZA(),r.qZA(),r.qZA(),r.qZA()}}function Qn(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"td",41),r.TgZ(1,"button",42),r.NdJ("click",function(e){const i=r.CHM(t).$implicit;return r.oxw().onSwapClick(i,e)}),r._uU(2,"View Info"),r.qZA(),r.qZA()}}function Wn(t,e){if(1&t&&(r.TgZ(0,"p"),r._uU(1),r.qZA()),2&t){const t=r.oxw(2);r.xp6(1),r.Oqu(t.emptyTableMessage)}}function Jn(t,e){if(1&t&&(r.TgZ(0,"td",43),r.YNc(1,Wn,2,1,"p",44),r.qZA()),2&t){const t=r.oxw();r.xp6(1),r.Q6J("ngIf",!(null!=t.listSwaps&&t.listSwaps.data)||(null==t.listSwaps||null==t.listSwaps.data?null:t.listSwaps.data.length)<1)}}const Xn=function(t){return{"display-none":t}};function Kn(t,e){if(1&t&&r._UZ(0,"tr",45),2&t){const t=r.oxw();r.Q6J("ngClass",r.VKq(1,Xn,(null==t.listSwaps?null:t.listSwaps.data)&&(null==t.listSwaps||null==t.listSwaps.data?null:t.listSwaps.data.length)>0))}}function $n(t,e){1&t&&r._UZ(0,"tr",46)}function tr(t,e){1&t&&r._UZ(0,"tr",47)}const er=function(t){return{"overflow-auto error-border":t,"overflow-auto":!0}},ir=function(){return["no_swap"]};let nr=(()=>{class t{constructor(t,e,i,n){this.logger=t,this.commonService=e,this.store=i,this.boltzService=n,this.selectedSwapType=G.hc.SWAP_OUT,this.swapsData=[],this.flgLoading=[!0],this.emptyTableMessage="No swaps available.",this.swapStateEnum=G.Qw,this.faHistory=N.qO$,this.swapCaption="Swap Out",this.displayedColumns=[],this.flgSticky=!1,this.pageSize=G.IV,this.pageSizeOptions=G.TJ,this.screenSize="",this.screenSizeEnum=G.cu,this.unSubs=[new h.x,new h.x,new h.x],this.screenSize=this.commonService.getScreenSize(),this.setTableColumns()}ngAfterViewInit(){this.swapsData&&this.swapsData.length>0&&this.loadSwapsTable(this.swapsData)}ngOnChanges(t){t.selectedSwapType&&!t.selectedSwapType.firstChange&&this.setTableColumns(),this.swapCaption=this.selectedSwapType===G.hc.SWAP_IN?"Swap In":"Swap Out",this.loadSwapsTable(this.swapsData)}setTableColumns(){this.screenSize===G.cu.XS||this.screenSize===G.cu.SM?(this.flgSticky=!1,this.displayedColumns=this.selectedSwapType===G.hc.SWAP_IN?["status","id","expectedAmount","actions"]:["status","id","onchainAmount","actions"]):this.screenSize===G.cu.MD?(this.flgSticky=!1,this.displayedColumns=this.selectedSwapType===G.hc.SWAP_IN?["status","id","expectedAmount","timeoutBlockHeight","actions"]:["status","id","onchainAmount","timeoutBlockHeight","actions"]):(this.flgSticky=!0,this.displayedColumns=this.selectedSwapType===G.hc.SWAP_IN?["status","id","lockupAddress","expectedAmount","timeoutBlockHeight","actions"]:["status","id","claimAddress","onchainAmount","timeoutBlockHeight","actions"])}applyFilter(t){this.listSwaps&&(this.listSwaps.filter=t.value.trim().toLowerCase())}onSwapClick(t,e){this.boltzService.swapInfo(t.id).pipe((0,k.R)(this.unSubs[1])).subscribe(t=>{this.store.dispatch(new j.wu({data:{type:G.n_.INFORMATION,alertTitle:this.swapCaption+" Status",message:[[{key:"status",value:G.Qw[(t=this.selectedSwapType===G.hc.SWAP_IN?t.swap:t.reverseSwap).status],title:"Status",width:50,type:G.Gi.STRING},{key:"id",value:t.id,title:"ID",width:50,type:G.Gi.STRING}],[{key:"amount",value:t.onchainAmount?t.onchainAmount:t.expectedAmount?t.expectedAmount:0,title:t.onchainAmount?"Onchain Amount (Sats)":t.expectedAmount?"Expected Amount (Sats)":"Amount (Sats)",width:50,type:G.Gi.NUMBER},{key:"timeoutBlockHeight",value:t.timeoutBlockHeight,title:"Timeout Block Height",width:50,type:G.Gi.NUMBER}],[{key:"address",value:t.claimAddress?t.claimAddress:t.lockupAddress?t.lockupAddress:"",title:t.claimAddress?"Claim Address":t.lockupAddress?"Lockup Address":"Address",width:100,type:G.Gi.STRING}],[{key:"invoice",value:t.invoice,title:"Invoice",width:100,type:G.Gi.STRING}],[{key:"privateKey",value:t.privateKey,title:"Private Key",width:100,type:G.Gi.STRING}],[{key:"preimage",value:t.preimage,title:"Preimage",width:100,type:G.Gi.STRING}],[{key:"redeemScript",value:t.redeemScript,title:"Redeem Script",width:100,type:G.Gi.STRING}],[{key:"lockupTransactionId",value:t.lockupTransactionId,title:"Lockup Transaction ID",width:50,type:G.Gi.STRING},{key:"transactionId",value:t.claimTransactionId?t.claimTransactionId:t.refundTransactionId?t.refundTransactionId:"",title:t.claimTransactionId?"Claim Transaction ID":t.refundTransactionId?"Refund Transaction ID":"Transaction ID",width:50,type:G.Gi.STRING}]],openedBy:"SWAP"}}))})}loadSwapsTable(t){this.listSwaps=new Fe.by(t?[...t]:[]),this.listSwaps.sort=this.sort,this.listSwaps.sortingDataAccessor=(t,e)=>t[e]&&isNaN(t[e])?t[e].toLocaleLowerCase():t[e]?+t[e]:null,this.listSwaps.filterPredicate=(t,e)=>JSON.stringify(t).toLowerCase().includes(e),this.paginator&&this.paginator.firstPage(),this.listSwaps.paginator=this.paginator,this.logger.info(this.listSwaps)}onDownloadCSV(){this.listSwaps.data&&this.listSwaps.data.length>0&&this.commonService.downloadFile(this.listSwaps.data,this.selectedSwapType===G.hc.SWAP_IN?"Swap in":"Swap out")}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(V.mQ),r.Y36(le.v),r.Y36(a.yh),r.Y36(Ei))},t.\u0275cmp=r.Xpm({type:t,selectors:[["rtl-boltz-swaps"]],viewQuery:function(t,e){if(1&t&&(r.Gf(Pe.YE,5),r.Gf(Ne.NW,5)),2&t){let t;r.iGM(t=r.CRH())&&(e.sort=t.first),r.iGM(t=r.CRH())&&(e.paginator=t.first)}},inputs:{selectedSwapType:"selectedSwapType",swapsData:"swapsData",flgLoading:"flgLoading",emptyTableMessage:"emptyTableMessage"},features:[r._Bn([{provide:Ne.ye,useValue:(0,G.pt)("Swaps")}]),r.TTD],decls:46,vars:15,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start start",1,"card-content-gap"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch","fxFlex","100",1,"page-sub-title-container","w-100"],["fxFlex","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"keyup"],["fxLayout","row","fxLayoutAlign","start center",1,"w-100"],["fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","status"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","id"],["matColumnDef","claimAddress"],["matColumnDef","onchainAmount"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","lockupAddress"],["matColumnDef","expectedAmount"],["matColumnDef","timeoutBlockHeight"],["matColumnDef","amt"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-3","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_swap"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,e){1&t&&(r.TgZ(0,"div",0),r.TgZ(1,"div",1),r.TgZ(2,"div",2),r._UZ(3,"fa-icon",3),r.TgZ(4,"span",4),r._uU(5),r.qZA(),r.qZA(),r.TgZ(6,"mat-form-field",5),r.TgZ(7,"input",6),r.NdJ("keyup",function(t){return e.applyFilter(t.target)}),r.qZA(),r.qZA(),r.qZA(),r.TgZ(8,"div",7),r.TgZ(9,"div",8),r.YNc(10,Ln,1,0,"mat-progress-bar",9),r.TgZ(11,"table",10,11),r.ynx(13,12),r.YNc(14,In,2,0,"th",13),r.YNc(15,On,2,1,"td",14),r.BQk(),r.ynx(16,15),r.YNc(17,Dn,2,0,"th",13),r.YNc(18,Rn,2,1,"td",14),r.BQk(),r.ynx(19,16),r.YNc(20,Nn,2,0,"th",13),r.YNc(21,Pn,2,1,"td",14),r.BQk(),r.ynx(22,17),r.YNc(23,Fn,2,0,"th",18),r.YNc(24,Zn,4,3,"td",14),r.BQk(),r.ynx(25,19),r.YNc(26,Bn,2,0,"th",13),r.YNc(27,Un,2,1,"td",14),r.BQk(),r.ynx(28,20),r.YNc(29,qn,2,0,"th",18),r.YNc(30,zn,4,3,"td",14),r.BQk(),r.ynx(31,21),r.YNc(32,Hn,2,0,"th",18),r.YNc(33,Yn,4,3,"td",14),r.BQk(),r.ynx(34,22),r.YNc(35,Gn,2,0,"th",18),r.YNc(36,jn,4,3,"td",14),r.BQk(),r.ynx(37,23),r.YNc(38,Vn,6,0,"th",24),r.YNc(39,Qn,3,0,"td",25),r.BQk(),r.ynx(40,26),r.YNc(41,Jn,2,1,"td",27),r.BQk(),r.YNc(42,Kn,1,3,"tr",28),r.YNc(43,$n,1,0,"tr",29),r.YNc(44,tr,1,0,"tr",30),r.qZA(),r._UZ(45,"mat-paginator",31),r.qZA(),r.qZA(),r.qZA()),2&t&&(r.xp6(3),r.Q6J("icon",e.faHistory),r.xp6(2),r.hij("",e.swapCaption," History"),r.xp6(5),r.Q6J("ngIf",!0===e.flgLoading[0]),r.xp6(1),r.Q6J("dataSource",e.listSwaps)("ngClass",r.VKq(12,er,"error"===e.flgLoading[0])),r.xp6(31),r.Q6J("matFooterRowDef",r.DdM(14,ir)),r.xp6(1),r.Q6J("matHeaderRowDef",e.displayedColumns)("matHeaderRowDefSticky",e.flgSticky),r.xp6(1),r.Q6J("matRowDefColumns",e.displayedColumns),r.xp6(1),r.Q6J("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)("showFirstLastButtons",e.screenSize!==e.screenSizeEnum.XS))},directives:[P.xw,P.yH,P.Wh,F.BN,J.KE,ut.Nt,Q.$V,U.O5,Fe.BZ,Pe.YE,U.mk,ue.oO,Fe.w1,Fe.fO,Fe.Dz,Fe.mD,Fe.Ke,Fe.as,Fe.nj,Ne.NW,Ze.pW,Fe.ge,Pe.nU,Fe.ev,X.gD,X.$L,tt.ey,$.lW,Fe.yh,Fe.Q2,Fe.XQ,Fe.Gk],pipes:[U.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),t})();const rr=function(t){return["../",t]};function sr(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div",15),r.NdJ("click",function(){const e=r.CHM(t).$implicit;return r.oxw().onSelectedIndexChange(e)}),r._uU(1),r.qZA()}if(2&t){const t=e.$implicit,i=r.oxw();r.Q6J("active",i.activeTab.link===t.link)("routerLink",r.VKq(3,rr,t.link)),r.xp6(1),r.Oqu(t.name)}}let or=(()=>{class t{constructor(t,e,i){this.router=t,this.store=e,this.boltzService=i,this.swapTypeEnum=G.hc,this.selectedSwapType=G.hc.SWAP_OUT,this.swaps={},this.swapsData=[],this.emptyTableMessage="No swap data available.",this.flgLoading=[!0],this.links=[{link:"swapout",name:"Swap Out"},{link:"swapin",name:"Swap In"}],this.activeTab=this.links[0],this.unSubs=[new h.x,new h.x,new h.x,new h.x]}ngOnInit(){this.boltzService.listSwaps();const t=this.links.find(t=>this.router.url.includes(t.link));this.activeTab=t||this.links[0],this.selectedSwapType=t&&"swapin"===t.link?G.hc.SWAP_IN:G.hc.SWAP_OUT,this.router.events.pipe((0,k.R)(this.unSubs[0]),(0,A.h)(t=>t instanceof R.Av)).subscribe(t=>{const e=this.links.find(e=>t.urlAfterRedirects.includes(e.link));this.activeTab=e||this.links[0],this.selectedSwapType=e&&"swapin"===e.link?G.hc.SWAP_IN:G.hc.SWAP_OUT}),this.boltzService.swapsChanged.pipe((0,k.R)(this.unSubs[1])).subscribe({next:t=>{this.swaps=t,this.swapsData=this.selectedSwapType===G.hc.SWAP_IN?t.swaps:t.reverseSwaps,this.flgLoading[0]=!1},error:t=>{this.flgLoading[0]="error",this.emptyTableMessage=t.message?t.message:"No swap "+(this.selectedSwapType===G.hc.SWAP_IN?"in":"out")+" available."}})}onSelectedIndexChange(t){"swapin"===t.link?(this.selectedSwapType=G.hc.SWAP_IN,this.swapsData=this.swaps.swaps):(this.selectedSwapType=G.hc.SWAP_OUT,this.swapsData=this.swaps.reverseSwaps)}onSwap(t){this.boltzService.serviceInfo().pipe((0,k.R)(this.unSubs[2])).subscribe(e=>{this.store.dispatch(new j.wu({data:{serviceInfo:e,direction:t,component:Mn}}))})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(R.F0),r.Y36(a.yh),r.Y36(Ei))},t.\u0275cmp=r.Xpm({type:t,selectors:[["rtl-boltz-root"]],decls:18,vars:6,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],["viewBox","0 0 78 78","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",1,"botlz-icon-sm","mr-1"],["id","Logo","stroke","none","stroke-width","1","fill","none","fill-rule","evenodd"],["id","Group"],["id","Oval","cx","39","cy","39","r","37.5",1,"boltz-icon"],["d","M36.4583326,43.7755404 L40.53965,35.2316544 L39.4324865,35.2316544 L46.0754873,17.6071752 C46.292579,17.0204094 46.3287609,16.5159331 46.1840331,16.0937464 C46.0393053,15.671561 45.7860319,15.3674444 45.4242131,15.1813966 C45.0623942,14.9953487 44.6535376,14.9524146 44.1976433,15.0525945 C43.7417511,15.1527743 43.3256596,15.4461573 42.9493689,15.9327433 L22.6078557,40.7701025 C22.2026186,41.2710003 22,41.7575877 22,42.2298646 C22,42.6735173 22.1592003,43.0420366 22.477601,43.3354226 C22.7960017,43.6288058 23.1940025,43.7755404 23.6716036,43.7755404 L36.4583326,43.7755404 Z","id","Path",1,"boltz-icon-fill"],["d","M44.4883879,63.7755404 L48.8604707,55.165009 L47.6744296,55.165009 L54.7906978,37.4030526 C55.0232558,36.8117097 55.0620155,36.3032983 54.9069768,35.8778185 C54.7519381,35.4523399 54.4806208,35.1458511 54.0930248,34.958352 C53.7054289,34.7708528 53.2674441,34.7275839 52.7790706,34.8285452 C52.2906992,34.9295065 51.8449641,35.2251779 51.4418653,35.7155595 L29.6511611,60.746659 C29.2170537,61.251464 29,61.7418469 29,62.2178078 C29,62.6649211 29.1705423,63.036315 29.5116268,63.3319895 C29.8527113,63.6276613 30.2790669,63.7755404 30.7906936,63.7755404 L44.4883879,63.7755404 Z","id","Path-Copy","transform","translate(42.000000, 49.275540) rotate(-180.000000) translate(-42.000000, -49.275540) ",1,"boltz-icon-fill"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start start",1,"padding-gap-x-large","mt-1"],["mat-flat-button","","color","primary","type","button","tabindex","1",3,"click"],["fxLayout","row","fxFlex","100",3,"selectedSwapType","swapsData","flgLoading","emptyTableMessage"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(t,e){1&t&&(r.TgZ(0,"div",0),r.O4$(),r.TgZ(1,"svg",1),r.TgZ(2,"g",2),r.TgZ(3,"g",3),r._UZ(4,"circle",4),r._UZ(5,"path",5),r._UZ(6,"path",6),r.qZA(),r.qZA(),r.qZA(),r.kcU(),r.TgZ(7,"span",7),r._uU(8,"Boltz"),r.qZA(),r.qZA(),r.TgZ(9,"div",8),r.TgZ(10,"mat-card"),r.TgZ(11,"mat-card-content",9),r.TgZ(12,"nav",10),r.YNc(13,sr,2,5,"div",11),r.qZA(),r.TgZ(14,"div",12),r.TgZ(15,"button",13),r.NdJ("click",function(){return e.onSwap(e.selectedSwapType)}),r._uU(16),r.qZA(),r.qZA(),r._UZ(17,"rtl-boltz-swaps",14),r.qZA(),r.qZA(),r.qZA()),2&t&&(r.xp6(13),r.Q6J("ngForOf",e.links),r.xp6(3),r.hij("Start ",e.activeTab.name,""),r.xp6(1),r.Q6J("selectedSwapType",e.selectedSwapType)("swapsData",e.swapsData)("flgLoading",e.flgLoading)("emptyTableMessage",e.emptyTableMessage))},directives:[P.xw,P.Wh,Z.a8,Z.dn,P.yH,B.BU,U.sg,$.lW,nr,B.Nj,R.rH],styles:[""]}),t})();class ar{constructor(t){this.help=t}}function lr(t,e){if(1&t&&(r.TgZ(0,"mat-expansion-panel",8),r.TgZ(1,"mat-expansion-panel-header"),r.TgZ(2,"mat-panel-title"),r._uU(3),r.qZA(),r.qZA(),r.TgZ(4,"mat-panel-description",9),r._UZ(5,"span",10),r.TgZ(6,"a",11),r._uU(7),r.qZA(),r.qZA(),r.qZA()),2&t){const t=r.oxw().$implicit,e=r.oxw();r.xp6(3),r.Oqu(t.help.question),r.xp6(2),r.Q6J("innerHTML",t.help.answer,r.oJD),r.xp6(1),r.Q6J("routerLink",e.flgLoggedIn?e.LNPLink+t.help.link:"/login"),r.xp6(1),r.Oqu(e.flgLoggedIn?t.help.linkCaption:"Login to go to the page")}}function cr(t,e){if(1&t&&(r.TgZ(0,"div",6),r.YNc(1,lr,8,4,"mat-expansion-panel",7),r.qZA()),2&t){const t=e.$implicit,i=r.oxw();r.xp6(1),r.Q6J("ngIf","ALL"===t.help.lnImplementation||t.help.lnImplementation===i.selNode.lnImplementation)}}let hr=(()=>{class t{constructor(t,e){this.store=t,this.sessionService=e,this.helpTopics=[],this.faQuestion=N.Psp,this.LNPLink="/lnd/",this.flgLoggedIn=!1,this.unSubs=[new h.x,new h.x,new h.x,new h.x],this.helpTopics.push(new ar({question:"Getting started",answer:'Funding your node is the first step to get started.\nGo to the "On-chain" page of the app:\n1. Generate a new address on the "Recieve" tab.\n2. Send funds to the address.\n3. Wait for the balance to be confirmed on-chain before proceeding further.\n3. Connecting with network peers and opening channels is next.\n',link:"onchain",linkCaption:"On-Chain page",lnImplementation:"ALL"})),this.helpTopics.push(new ar({question:"Connect with peers",answer:'Connect with network peers to open channels with them.\nGo to "Peer/Channels" page under the "Lightning" menu :\n1. Get the peer pubkey and host address in the pubkey@ip:port format.\n2. On the "Peers" enter the peer address and connect.\n3. Once the peer is connected, you can open channel with the peer.\n4. A variety of actions can be performed on the connected peers page for each peer:\n a. View Info - View the peer details.\n b. Open Channel - Open channel with the peer.\n c. Disconnect - Disconnect from the peer.\n',link:"peerschannels",linkCaption:"Peers/Channels page",lnImplementation:"ALL"})),this.helpTopics.push(new ar({question:"Opening Channels",answer:'Open channels with a connected network peer.\nGo to "Peer/Channels" page under the "Lightning" menu:\n1. On the "Channels" section, select the alias of the connected peer from the drop-down\n2. Specify the amount to commit to the channel and click on "Open Channel".\n3. There are a variety of options available while opening a channel. \n a. Private Channel - When this option is selected, a private channel is opened with the peer. \n b. Priority (advanced option) - Specify either Target confirmation Block or Fee in Sat/vByte. \n c. Spend Unconfirmd Output (advanced option) - Allow channels to be opened with unconfirmed UTXOs.\n4. Track the pending open channels under the "Pending" tab . \n5. Wait for the channel to be confirmed. Only a confimed channel can be used for payments or routing. \n',link:"peerschannels",linkCaption:"Peers/Channels page",lnImplementation:"ALL"})),this.helpTopics.push(new ar({question:"Channel Management",answer:'Channel maintenance and balance score.\nGo to "Peer/Channels" page under the "Lightning" menu:\n1. A variety of actions can be perfomed on the open channels under the "Open" tab, with the "Actions" button:\n a. View Info - View the channel details.\n b. View Remote Fee - View the fee policy on the channel of the remote peer.\n c. Update Fee Policy - Modify the fee policy on the channel.\n d. Close Channel - Close the channel.\n2. Balance Score is a "balancedness" metric score for the channel. \n a. It helps measure how balanced the remote and local balances are, on a channel.\n b. A perfectly balanced channel has a score of one, where as a completely lopsided one has a score of zero.\n c. The formula for calculating the score is "1 - abs((local bal - remote bal)/total bal)".\n',link:"peerschannels",linkCaption:"Peers/Channels page",lnImplementation:"ALL"})),this.helpTopics.push(new ar({question:"Lightning Transactions - Payments",answer:'Sending Payments from your node.\nGo to the "Transactions" page under the "Lightning" menu :\nPayments tab is for making payments via your node\n 1. Input a non-expired lightning invoice (Bolt11 format) in the "Payment request" field and click on "Send Payment" to send.\n 2. Advanced option # 1 (LND only) - Specify a limit on the routing fee which you are willing to pay, for the payment.\n 3. Advanced option # 2 (LND only) - Specify the outgoing channel which you want the payment to go through.\n',link:"transactions",linkCaption:"Transactions page",lnImplementation:"ALL"})),this.helpTopics.push(new ar({question:"Lightning Transactions - Invoices",answer:'Receiving Payments on your node.\nGo to the "Transactions" page under the "Lightning" menu :\nInvoices tab is for receiving payments on your node.\n 1. Memo - Description you want to provide on the invoice.\n 2. Expiry - The time period, after which the invoice will be invalid.\n 3. Private Routing Hints - Generate an invoice with routing hints for private channels.\n',link:"transactions",linkCaption:"Transactions page",lnImplementation:"ALL"})),this.helpTopics.push(new ar({question:"Lightning Transactions - Query Route",answer:'Querying Payment Routes.\nGo to the "Transactions" page under the "Lightning" menu :\nQuery Routes tab is for querying a potential path to a node and a routing fee estimate for a payment amount.\n 1. Destination Pubkey - Pubkey of the node, you want to send the payment to.\n 2. Amount - Amount in Sats, which you want to send to the node.\n',link:"transactions",linkCaption:"Transactions page",lnImplementation:"ALL"})),this.helpTopics.push(new ar({question:"Channel Backups",answer:'Channel Backups are important to ensure that you have means to recover funds in case of node failures.\nBackup folder location can be customized in the RTL config file with the channelBackupPath field.\nRTL automatically creates all channel backup on server startup, as well as everytime a channel is opened or closed\nYou can verify the all channel backup file by clicking on "Verify All" Button on the backup page.\nYou can also backup each channel individually and verify them.\n** Keep taking backups of your channels regularly and store them in redundant locations **.\n',link:"backup",linkCaption:"Channel Backups",lnImplementation:"LND"})),this.helpTopics.push(new ar({question:"Channel Restore",answer:'Channel Restore is used to recover funds from the channel backup files in case of node failures.\nFollow the below steps to perform fund restoration.\n\nPrerequisite:\n1. The node has been restored with the LND recovery seed.\n2. RTL generated channel backup file/s is available (all channel backup file is channel-all.bak).\n\nRecovery:\n1. Create a restore folder in your folder backup location, as specified in the RTL config file.\n2. Place the channel backup file in the restore folder.\n3. Go to the "Restore" tab under the "Backup" page of RTL.\n4. RTL will list the options to restore funds from the all channel file or individual channel backup file.\n5. Click on the Restore icon on the grid to restore the funds.\n6. Once the restore function is executed successfully, RTL will rename the backup file and it will not be accessible from the UI.\n7. Restore function will force close the channels and recover the funds from them.\n8. The pending close channels can be viewed under the "Pending" tab on the "Peer/Channels" page.\n9. Once the channel is closed, the corresponding pending on-chain transactions can be viewed on the "On-Chain" page.\n10. Once the transactions are confirmed, the channels funds will be restored to your LND Wallet.\n',link:"backup",linkCaption:"Channel Backups",lnImplementation:"LND"})),this.helpTopics.push(new ar({question:"Forwarding History",answer:'Transactions routed by the node.\nGo to "Routing" page under the "Lightning" menu :\nTransactions routed by the node are listed on this page along with channels and the fee earned by transaction.\n',link:"routing",linkCaption:"Forwarding History",lnImplementation:"ALL"})),this.helpTopics.push(new ar({question:"Graph Lookup",answer:'Querying your node graph for network node and channel information.\nGo to "Graph Lookup" page under the "Lightning" menu :\nEach node maintains a network graph for the information on all the nodes and channels on the network.\nYou can lookup information on nodes and channels from your graph:\n 1. Node Lookup - Enter the pubkey to perform the lookup.\n 2. Channel Lookup - Enter the short channel ID to perform the lookup.\n',link:"lookups",linkCaption:"Graph Lookup page",lnImplementation:"ALL"})),this.helpTopics.push(new ar({question:"Settings",answer:'RTL Offers certain customizations on the UI to personalize your experience on the app\nGo to "Settings" page to access the customization options.\nNode Layout Options\n 1. User Persona - Two options are available to change the dashboard based on the persona.\n 2. Currency Unit - You can choose your preferred fiat currency, to view the onchain and channel balances in the choosen fiat currency.\n 3. Default Node - If you are managing multiple nodes via RTL UI, you can select the default node to load upon login.\nOther Customizations include day and night mode and a choice of color themes to select from.\n',lnImplementation:"ALL"}))}ngOnInit(){this.store.select("root").pipe((0,k.R)(this.unSubs[0])).subscribe(t=>{switch(this.selNode=t.selNode,this.selNode.lnImplementation.toUpperCase()){case"CLT":this.LNPLink="/cl/";break;case"ECL":this.LNPLink="/ecl/";break;default:this.LNPLink="/lnd/"}}),this.sessionService.watchSession().pipe((0,k.R)(this.unSubs[1])).subscribe(t=>{this.flgLoggedIn=!!t.token}),this.sessionService.getItem("token")&&(this.flgLoggedIn=!0)}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(a.yh),r.Y36(It.m))},t.\u0275cmp=r.Xpm({type:t,selectors:[["rtl-help"]],decls:8,vars:2,consts:[["fxLayout","column","fxFlex","100"],["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start",1,"padding-gap-x"],["fxFlex","100",4,"ngFor","ngForOf"],["fxFlex","100"],["class","flat-expansion-panel help-expansion mb-2px",4,"ngIf"],[1,"flat-expansion-panel","help-expansion","mb-2px"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start"],[1,"pre-wrap",3,"innerHTML"],[1,"mt-2",3,"routerLink"]],template:function(t,e){1&t&&(r.TgZ(0,"div",0),r.TgZ(1,"div",1),r._UZ(2,"fa-icon",2),r.TgZ(3,"span",3),r._uU(4,"Help"),r.qZA(),r.qZA(),r.TgZ(5,"div",4),r.TgZ(6,"div",0),r.YNc(7,cr,2,1,"div",5),r.qZA(),r.qZA(),r.qZA()),2&t&&(r.xp6(2),r.Q6J("icon",e.faQuestion),r.xp6(5),r.Q6J("ngForOf",e.helpTopics))},directives:[P.xw,P.yH,P.Wh,F.BN,U.sg,U.O5,ki.ib,ki.yz,ki.yK,ki.u4,R.yS],styles:[".mat-card-content[_ngcontent-%COMP%]{margin-bottom:4px}"]}),t})();function ur(t,e){1&t&&(r.TgZ(0,"mat-error"),r._uU(1,"Token is required."),r.qZA())}let dr=(()=>{class t{constructor(t,e){this.dialogRef=t,this.store=e,this.faUserClock=N.hnx,this.token=""}onClose(){this.dialogRef.close(null)}onVerifyToken(){if(!this.token)return!0;this.dialogRef.close(),this.store.dispatch(new j.YY({twoFAToken:this.token}))}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(ot.so),r.Y36(a.yh))},t.\u0275cmp=r.Xpm({type:t,selectors:[["rtl-login-token"]],decls:17,vars:2,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],["fxLayout","row",1,"padding-gap-x-large"],["fxLayout","column","fxFlex","100",3,"ngSubmit"],["tokenForm","ngForm"],["autoFocus","","matInput","","placeholder","Token","type","text","id","token","name","token","tabindex","2","required","",3,"ngModel","ngModelChange"],[4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-1"],["mat-flat-button","","color","primary","tabindex","4","type","submit"]],template:function(t,e){1&t&&(r.TgZ(0,"div",0),r.TgZ(1,"div",1),r.TgZ(2,"mat-card-header",2),r.TgZ(3,"div",3),r.TgZ(4,"span",4),r._uU(5,"Two Factor Token"),r.qZA(),r.qZA(),r.TgZ(6,"button",5),r.NdJ("click",function(){return e.onClose()}),r._uU(7,"X"),r.qZA(),r.qZA(),r.TgZ(8,"mat-card-content",6),r.TgZ(9,"form",7,8),r.NdJ("ngSubmit",function(){return e.onVerifyToken()}),r.TgZ(11,"mat-form-field"),r.TgZ(12,"input",9),r.NdJ("ngModelChange",function(t){return e.token=t}),r.qZA(),r.YNc(13,ur,2,0,"mat-error",10),r.qZA(),r.TgZ(14,"div",11),r.TgZ(15,"button",12),r._uU(16,"Verify Token"),r.qZA(),r.qZA(),r.qZA(),r.qZA(),r.qZA(),r.qZA()),2&t&&(r.xp6(12),r.Q6J("ngModel",e.token),r.xp6(1),r.Q6J("ngIf",!e.token))},directives:[P.xw,P.Wh,P.yH,Z.dk,$.lW,Z.dn,W._Y,W.JL,W.F,J.KE,ut.Nt,W.Fj,K.h,W.Q7,W.JJ,W.On,U.O5,J.TO],styles:[""]}),t})();function pr(t,e){1&t&&(r.TgZ(0,"mat-error"),r._uU(1,"Password is required."),r.qZA())}function fr(t,e){if(1&t&&(r.TgZ(0,"p",20),r.TgZ(1,"mat-icon",21),r._uU(2,"close"),r.qZA(),r._uU(3),r.qZA()),2&t){const t=r.oxw();r.xp6(3),r.hij(" ",t.loginErrorMessage," ")}}const mr=function(t){return{"padding-gap-large":t}},gr=function(t,e){return{"font-size-200":t,"font-size-300":e}};let yr=(()=>{class t{constructor(t,e,i,n){this.logger=t,this.store=e,this.rtlEffects=i,this.commonService=n,this.faUnlockAlt=N.B$L,this.password="",this.rtlSSO=0,this.rtlCookiePath="",this.accessKey="",this.flgShow=!1,this.screenSize="",this.screenSizeEnum=G.cu,this.loginErrorMessage="",this.apisCallStatus=null,this.apiCallStatusEnum=G.Bn,this.unSubs=[new h.x,new h.x,new h.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.store.select("root").pipe((0,k.R)(this.unSubs[0])).subscribe(t=>{this.loginErrorMessage="",this.apisCallStatus=t.apisCallStatus,t.apisCallStatus.Login.status===G.Bn.ERROR&&(this.loginErrorMessage=this.loginErrorMessage+("object"==typeof this.apisCallStatus.Login.message?JSON.stringify(this.apisCallStatus.Login.message):this.apisCallStatus.Login.message),this.logger.error(this.apisCallStatus.Login.message)),t.apisCallStatus.IsAuthorized.status===G.Bn.ERROR&&(this.loginErrorMessage=this.loginErrorMessage+("object"==typeof this.apisCallStatus.IsAuthorized.message?JSON.stringify(this.apisCallStatus.IsAuthorized.message):this.apisCallStatus.IsAuthorized.message),this.logger.error(this.apisCallStatus.IsAuthorized.message)),this.selNode=t.selNode,this.appConfig=t.appConfig,this.logger.info(t)})}onLogin(){if(!this.password)return!0;this.loginErrorMessage="",this.appConfig.enable2FA?(this.store.dispatch(new j.wu({maxWidth:"35rem",data:{component:dr}})),this.rtlEffects.closeAlert.pipe((0,st.q)(1)).subscribe(t=>{t&&this.store.dispatch(new j.m3({password:rt(this.password),defaultPassword:G.kO.includes(this.password.toLowerCase()),twoFAToken:t.twoFAToken}))})):this.store.dispatch(new j.m3({password:rt(this.password),defaultPassword:G.kO.includes(this.password.toLowerCase())}))}resetData(){this.password="",this.loginErrorMessage="",this.flgShow=!1}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(V.mQ),r.Y36(a.yh),r.Y36(lt.V),r.Y36(le.v))},t.\u0275cmp=r.Xpm({type:t,selectors:[["rtl-login"]],decls:25,vars:12,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","center stretch",1,"login-container"],["fxLayout","row","fxFlex","50","fxLayoutAlign","center stretch"],["fxLayout","column","fxLayout.gt-sm","row","fxFlex","100","fxLayoutAlign","stretch stretch"],["fxFlex","35","fxLayoutAlign","center center",1,"bg-primary"],["src","assets/images/RTL-Horse-BY.svg","alt","RTL Logo",1,"rtl-logo-svg"],["fxFlex","65","fxLayout","column","fxLayoutAlign","center stretch",3,"ngClass"],["fxLayout","row","fxLayoutAlign","center center",1,"page-title-container","p-0"],[1,"font-bold-500",3,"ngClass"],[1,"page-title"],[1,"mt-5px","mb-0","px-2"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between"],["loginForm","ngForm"],["fxFlex","100","fxLayoutAlign","start"],["autoFocus","","matInput","","placeholder","Password","id","password","name","password","tabindex","1","required","",3,"type","ngModel","ngModelChange"],["tabindex","2","matSuffix","",3,"click"],[4,"ngIf"],["fxFlex","100","class","color-warn pre-wrap","fxLayoutAlign","start start",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","2","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","3","type","submit",3,"click"],["fxFlex","100","fxLayoutAlign","start start",1,"color-warn","pre-wrap"],[1,"mr-1","icon-small"]],template:function(t,e){1&t&&(r.TgZ(0,"div",0),r.TgZ(1,"div",1),r.TgZ(2,"mat-card",1),r.TgZ(3,"div",2),r.TgZ(4,"div",3),r._UZ(5,"img",4),r.qZA(),r.TgZ(6,"div",5),r.TgZ(7,"mat-card-header",6),r.TgZ(8,"mat-card-title",7),r.TgZ(9,"span",8),r._uU(10,"Welcome"),r.qZA(),r.qZA(),r.qZA(),r.TgZ(11,"mat-card-content",9),r.TgZ(12,"form",10,11),r.TgZ(14,"mat-form-field",12),r.TgZ(15,"input",13),r.NdJ("ngModelChange",function(t){return e.password=t}),r.qZA(),r.TgZ(16,"mat-icon",14),r.NdJ("click",function(){return e.flgShow=!e.flgShow}),r._uU(17),r.qZA(),r.YNc(18,pr,2,0,"mat-error",15),r.qZA(),r.YNc(19,fr,4,1,"p",16),r.TgZ(20,"div",17),r.TgZ(21,"button",18),r.NdJ("click",function(){return e.resetData()}),r._uU(22,"Clear"),r.qZA(),r.TgZ(23,"button",19),r.NdJ("click",function(){return e.onLogin()}),r._uU(24,"Login"),r.qZA(),r.qZA(),r.qZA(),r.qZA(),r.qZA(),r.qZA(),r.qZA(),r.qZA(),r.qZA()),2&t&&(r.xp6(6),r.Q6J("ngClass",r.VKq(7,mr,e.screenSize===e.screenSizeEnum.XS)),r.xp6(2),r.Q6J("ngClass",r.WLB(9,gr,e.screenSize===e.screenSizeEnum.XS,e.screenSize!==e.screenSizeEnum.XS)),r.xp6(7),r.Q6J("type",e.flgShow?"text":"password")("ngModel",e.password),r.xp6(2),r.Oqu(e.flgShow?"visibility_off":"visibility"),r.xp6(1),r.Q6J("ngIf",!e.password),r.xp6(1),r.Q6J("ngIf",""!==e.loginErrorMessage))},directives:[P.xw,P.yH,P.Wh,Z.a8,U.mk,ue.oO,Z.dk,Z.n5,Z.dn,W._Y,W.JL,W.F,J.KE,ut.Nt,W.Fj,K.h,W.Q7,W.JJ,W.On,Mi.Hw,J.R9,U.O5,$.lW,J.TO],styles:[".login-container[_ngcontent-%COMP%]{height:90vh}.login-container[_ngcontent-%COMP%] .mat-card[_ngcontent-%COMP%]{height:30rem}.login-container[_ngcontent-%COMP%] .rtl-logo-svg[_ngcontent-%COMP%]{width:100%}@media only screen and (max-width:56.25em){.login-container[_ngcontent-%COMP%] .rtl-logo-svg[_ngcontent-%COMP%]{width:37%}}@media only screen and (max-width:37.5em){.login-container[_ngcontent-%COMP%] .rtl-logo-svg[_ngcontent-%COMP%]{width:70%}}.login-container[_ngcontent-%COMP%] .material-icons.mat-icon[_ngcontent-%COMP%]{font-size:120%;cursor:pointer}"]}),t})();var br=i(8016);let vr=(()=>{class t{constructor(t,e){this.activatedRoute=t,this.router=e,this.error={errorCode:"",errorMessage:""},this.faTimes=N.NBC,this.unsubs=[new h.x,new h.x]}ngOnInit(){this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.activatedRoute.paramMap.pipe((0,k.R)(this.unsubs[0])).subscribe(t=>{this.error=window.history.state})}goToHelp(){this.router.navigate(["/help"])}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(R.gz),r.Y36(R.F0))},t.\u0275cmp=r.Xpm({type:t,selectors:[["rtl-error"]],decls:13,vars:3,consts:[["fxLayout","row","fxFlex","100","fxLayoutAlign","center center"],["fxLayout","column","fxFlex","60","fxLayoutAlign","start center"],["fxLayout","row","fxLayoutAlign","center center",1,"page-title-container","padding-gap-large"],[1,"font-size-300","font-bold-500"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column","fxLayoutAlign","center center",1,"padding-gap-large"],[1,"box-text","font-size-120"],["fxLayout","row","fxLayoutAlign","center","fxFlex","80"],["mat-flat-button","","color","primary","type","button",1,"mt-2",3,"click"]],template:function(t,e){1&t&&(r.TgZ(0,"div",0),r.TgZ(1,"mat-card",1),r.TgZ(2,"mat-card-header",2),r.TgZ(3,"mat-card-title",3),r._UZ(4,"fa-icon",4),r.TgZ(5,"span",5),r._uU(6),r.qZA(),r.qZA(),r.qZA(),r.TgZ(7,"mat-card-content",6),r.TgZ(8,"div",7),r._uU(9),r.qZA(),r.TgZ(10,"span",8),r.TgZ(11,"button",9),r.NdJ("click",function(){return e.goToHelp()}),r._uU(12,"Go To Help"),r.qZA(),r.qZA(),r.qZA(),r.qZA(),r.qZA()),2&t&&(r.xp6(4),r.Q6J("icon",e.faTimes),r.xp6(2),r.hij("Error ",e.error.errorCode,""),r.xp6(3),r.Oqu(e.error.errorMessage))},directives:[P.xw,P.yH,P.Wh,Z.a8,Z.dk,Z.n5,F.BN,Z.dn,$.lW],encapsulation:2}),t})();var _r=i(6013);const wr=R.Bz.forRoot([{path:"",pathMatch:"full",redirectTo:"login"},{path:"lnd",loadChildren:()=>Promise.all([i.e(958),i.e(891)]).then(i.bind(i,7891)).then(t=>t.LNDModule),canActivate:[_r.a1]},{path:"cl",loadChildren:()=>Promise.all([i.e(958),i.e(145)]).then(i.bind(i,2462)).then(t=>t.CLModule),canActivate:[_r.a1]},{path:"ecl",loadChildren:()=>Promise.all([i.e(958),i.e(432)]).then(i.bind(i,1432)).then(t=>t.ECLModule),canActivate:[_r.a1]},{path:"settings",component:Y,canActivate:[_r.a1],children:[{path:"",pathMatch:"full",redirectTo:"app"},{path:"app",component:nt,canActivate:[_r.a1]},{path:"auth",component:Ft,canActivate:[_r.a1]},{path:"bconfig",component:jt,canActivate:[_r.a1]}]},{path:"config",component:Jt,canActivate:[_r.a1],children:[{path:"",pathMatch:"full",redirectTo:"node"},{path:"node",component:ve,canActivate:[_r.a1]},{path:"services",component:we,canActivate:[_r.a1],children:[{path:"",pathMatch:"full",redirectTo:"loop"},{path:"loop",component:Ee,canActivate:[_r.a1]},{path:"boltz",component:Ie,canActivate:[_r.a1]}]},{path:"lnconfig",component:re,canActivate:[_r.a1]}]},{path:"services",component:Oe,canActivate:[_r.a1],children:[{path:"",pathMatch:"full",redirectTo:"loop"},{path:"loop",pathMatch:"full",redirectTo:"loop/loopout"},{path:"loop/:selTab",component:vi},{path:"boltz",pathMatch:"full",redirectTo:"boltz/swapout"},{path:"boltz/:selTab",component:or}]},{path:"help",component:hr},{path:"login",component:yr},{path:"error",component:vr},{path:"**",component:br.w}]);var xr=i(253),Cr=i(72),Ar=i(2865),Sr=i(3104),Er=i(8055);function kr(t,e){if(1&t&&(r.TgZ(0,"a",10),r._UZ(1,"fa-icon",3),r.TgZ(2,"span",11),r._uU(3,"Settings"),r.qZA(),r.qZA()),2&t){const t=r.oxw();r.xp6(1),r.Q6J("icon",t.faUserCog)}}function Tr(t,e){if(1&t&&(r.TgZ(0,"a",12),r._UZ(1,"fa-icon",3),r.TgZ(2,"span",13),r._uU(3,"Help"),r.qZA(),r.qZA()),2&t){const t=r.oxw();r.xp6(1),r.Q6J("icon",t.faLifeRing)}}function Mr(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"a",14),r.NdJ("click",function(){return r.CHM(t),r.oxw().onClick()}),r._UZ(1,"fa-icon",3),r.TgZ(2,"span"),r._uU(3,"Logout"),r.qZA(),r.qZA()}if(2&t){const t=r.oxw();r.xp6(1),r.Q6J("icon",t.faEject)}}let Lr=(()=>{class t{constructor(t,e,i,n,r){this.logger=t,this.sessionService=e,this.store=i,this.rtlEffects=n,this.actions=r,this.faUserCog=N.gNZ,this.faCodeBranch=N.mh3,this.faCog=N.b7W,this.faLifeRing=N.uli,this.faEject=N.KOR,this.version="",this.information={},this.informationChain={},this.flgLoading=!0,this.showLogout=!1,this.unSubs=[new h.x,new h.x,new h.x,new h.x],this.version=Ai.N.VERSION}ngOnInit(){this.store.select("root").pipe((0,k.R)(this.unSubs[0])).subscribe(t=>{if(this.selNode=t.selNode,this.information=t.nodeData,this.flgLoading=!this.information.identity_pubkey,this.information.identity_pubkey){if(this.information.chains&&"string"==typeof this.information.chains[0])this.informationChain.chain=this.information.chains[0].toString(),this.informationChain.network=this.information.testnet?"Testnet":"Mainnet";else if("object"==typeof this.information.chains[0]&&this.information.chains[0].hasOwnProperty("chain")){const t=this.information.chains[0];this.informationChain.chain=t.chain,this.informationChain.network=t.network}}else this.informationChain.chain="",this.informationChain.network="";this.logger.info(t)}),this.sessionService.watchSession().pipe((0,k.R)(this.unSubs[1])).subscribe(t=>{this.showLogout=!!t.token,this.flgLoading=!!t.token}),this.actions.pipe((0,k.R)(this.unSubs[2]),(0,A.h)(t=>t.type===j.Nv)).subscribe(()=>{this.showLogout=!1})}onClick(){this.store.dispatch(new j.b_({data:{type:G.n_.CONFIRM,alertTitle:"Logout",titleMessage:"Logout from this device?",noBtnText:"Cancel",yesBtnText:"Logout"}})),this.rtlEffects.closeConfirm.pipe((0,k.R)(this.unSubs[3])).subscribe(t=>{t&&(this.showLogout=!1,this.store.dispatch(new j.RD))})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(V.mQ),r.Y36(It.m),r.Y36(a.yh),r.Y36(lt.V),r.Y36(l.eX))},t.\u0275cmp=r.Xpm({type:t,selectors:[["rtl-top-menu"]],decls:13,vars:7,consts:[[1,"top-menu",3,"overlapTrigger"],["topMenu","matMenu"],["mat-menu-item",""],[1,"fa-icon-small","mr-1",3,"icon"],["mat-menu-item","","routerLink","/settings",4,"ngIf"],["mat-menu-item","","routerLink","/help",4,"ngIf"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-icon-button","",1,"top-toolbar-icon",3,"matMenuTriggerFor"],["src","assets/images/RTL-Horse-BY.svg","alt","RTL Logo",2,"width","3.2rem"],[2,"font-size","2rem","text-align","start"],["mat-menu-item","","routerLink","/settings"],["routerLink","/settings"],["mat-menu-item","","routerLink","/help"],["routerLink","/help"],["mat-menu-item","",3,"click"]],template:function(t,e){if(1&t&&(r.TgZ(0,"mat-menu",0,1),r.TgZ(2,"p",2),r._UZ(3,"fa-icon",3),r.TgZ(4,"span"),r._uU(5),r.qZA(),r.qZA(),r.YNc(6,kr,4,1,"a",4),r.YNc(7,Tr,4,1,"a",5),r.YNc(8,Mr,4,1,"a",6),r.qZA(),r.TgZ(9,"button",7),r._UZ(10,"img",8),r.TgZ(11,"mat-icon",9),r._uU(12,"arrow_drop_down"),r.qZA(),r.qZA()),2&t){const t=r.MAs(1);r.Q6J("overlapTrigger",!1),r.xp6(3),r.Q6J("icon",e.faCodeBranch),r.xp6(2),r.hij("Version: ",e.version,""),r.xp6(1),r.Q6J("ngIf",e.showLogout),r.xp6(1),r.Q6J("ngIf",e.showLogout),r.xp6(1),r.Q6J("ngIf",e.showLogout),r.xp6(1),r.Q6J("matMenuTriggerFor",t)}},directives:[Er.VK,Er.OP,F.BN,U.O5,$.lW,Er.p6,Mi.Hw,R.yS,R.rH],styles:[".mat-menu-content,.mat-menu-content p.mat-menu-item,.mat-menu-content p.mat-menu-item div,.mat-menu-content p.mat-menu-item fa-icon,.mat-menu-content p.mat-menu-item span{cursor:default}.mat-menu-content p.mat-menu-item:hover{cursor:default!important}"],encapsulation:2}),t})();var Ir=i(5122),Or=i(1709),Dr=i(1010);const Rr={LNDChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:N.HLz,link:"/lnd/home",userPersona:G.ol.ALL},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:N.nNP,link:"/lnd/onchain",userPersona:G.ol.ALL},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:N.BDt,link:"/lnd/connections",userPersona:G.ol.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:N.FVb,link:"/lnd/connections",userPersona:G.ol.ALL},{id:32,parentId:3,name:"Transactions",iconType:"FA",icon:N.Ssp,link:"/lnd/transactions",userPersona:G.ol.ALL},{id:33,parentId:3,name:"Routing",iconType:"FA",icon:N.SuH,link:"/lnd/routing",userPersona:G.ol.ALL},{id:34,parentId:3,name:"Reports",iconType:"FA",icon:N.koM,link:"/lnd/reports",userPersona:G.ol.ALL},{id:35,parentId:3,name:"Graph Lookup",iconType:"FA",icon:N.wn1,link:"/lnd/lookups",userPersona:G.ol.ALL},{id:36,parentId:3,name:"Sign/Verify",iconType:"FA",icon:N.hkK,link:"/lnd/messages",userPersona:G.ol.ALL},{id:37,parentId:3,name:"Backup",iconType:"FA",icon:N.q7m,link:"/lnd/channelbackup",userPersona:G.ol.ALL},{id:38,parentId:3,name:"Network",iconType:"FA",icon:N.o4t,link:"/lnd/network",userPersona:G.ol.OPERATOR},{id:39,parentId:3,name:"Node/Network",iconType:"FA",icon:N.xf3,link:"/lnd/network",userPersona:G.ol.MERCHANT}]},{id:4,parentId:0,name:"Services",iconType:"FA",icon:N.Krp,link:"/services/loop",userPersona:G.ol.ALL,children:[{id:41,parentId:4,name:"Loop",iconType:"FA",icon:N.vqe,link:"/services/loop",userPersona:G.ol.ALL},{id:42,parentId:4,name:"Boltz",iconType:"SVG",icon:"boltzIconBlock",link:"/services/boltz",userPersona:G.ol.ALL}]},{id:5,parentId:0,name:"Node Config",iconType:"FA",icon:N.CgH,link:"/config",userPersona:G.ol.ALL},{id:6,parentId:0,name:"Help",iconType:"FA",icon:N.Psp,link:"/help",userPersona:G.ol.ALL}],CLChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:N.HLz,link:"/cl/home",userPersona:G.ol.ALL},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:N.nNP,link:"/cl/onchain",userPersona:G.ol.ALL},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:N.BDt,link:"/cl/connections",userPersona:G.ol.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:N.FVb,link:"/cl/connections",userPersona:G.ol.ALL},{id:32,parentId:3,name:"Transactions",iconType:"FA",icon:N.Ssp,link:"/cl/transactions",userPersona:G.ol.ALL},{id:33,parentId:3,name:"Routing",iconType:"FA",icon:N.SuH,link:"/cl/routing",userPersona:G.ol.ALL},{id:34,parentId:3,name:"Reports",iconType:"FA",icon:N.koM,link:"/cl/reports",userPersona:G.ol.ALL},{id:35,parentId:3,name:"Graph Lookup",iconType:"FA",icon:N.wn1,link:"/cl/lookups",userPersona:G.ol.ALL},{id:36,parentId:3,name:"Sign/Verify",iconType:"FA",icon:N.hkK,link:"/cl/messages",userPersona:G.ol.ALL},{id:37,parentId:3,name:"Fee Rates",iconType:"FA",icon:N.USL,link:"/cl/rates",userPersona:G.ol.OPERATOR},{id:38,parentId:3,name:"Node/Fee Rates",iconType:"FA",icon:N.xf3,link:"/cl/rates",userPersona:G.ol.MERCHANT}]},{id:4,parentId:0,name:"Node Config",iconType:"FA",icon:N.CgH,link:"/config",userPersona:G.ol.ALL},{id:5,parentId:0,name:"Help",iconType:"FA",icon:N.Psp,link:"/help",userPersona:G.ol.ALL}],ECLChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:N.HLz,link:"/ecl/home",userPersona:G.ol.ALL},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:N.nNP,link:"/ecl/onchain",userPersona:G.ol.ALL},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:N.BDt,link:"/ecl/connections",userPersona:G.ol.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:N.FVb,link:"/ecl/connections",userPersona:G.ol.ALL},{id:32,parentId:3,name:"Transactions",iconType:"FA",icon:N.Ssp,link:"/ecl/transactions",userPersona:G.ol.ALL},{id:33,parentId:3,name:"Routing",iconType:"FA",icon:N.SuH,link:"/ecl/routing",userPersona:G.ol.ALL},{id:34,parentId:3,name:"Reports",iconType:"FA",icon:N.koM,link:"/ecl/reports",userPersona:G.ol.ALL},{id:35,parentId:3,name:"Graph Lookup",iconType:"FA",icon:N.wn1,link:"/ecl/lookups",userPersona:G.ol.ALL}]},{id:4,parentId:0,name:"Node Config",iconType:"FA",icon:N.CgH,link:"/config",userPersona:G.ol.ALL},{id:5,parentId:0,name:"Help",iconType:"FA",icon:N.Psp,link:"/help",userPersona:G.ol.ALL}]};var Nr=i(6828);function Pr(t,e){if(1&t&&(r.TgZ(0,"mat-option",11),r._uU(1),r.qZA()),2&t){const t=e.$implicit;r.Q6J("value",t),r.xp6(1),r.AsE(" ",t.lnNode," (",t.lnImplementation,") ")}}function Fr(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"mat-select",9),r.NdJ("selectionChange",function(e){return r.CHM(t),r.oxw().onNodeSelectionChange(e.value)}),r.YNc(1,Pr,2,3,"mat-option",10),r.qZA()}if(2&t){const t=r.oxw();r.Q6J("value",t.selNode),r.xp6(1),r.Q6J("ngForOf",t.appConfig.nodes)}}function Zr(t,e){if(1&t&&(r.TgZ(0,"span",21),r.GkF(1,22),r.qZA()),2&t){const t=r.oxw().$implicit;r.oxw(2);const e=r.MAs(11);r.xp6(1),r.Q6J("ngTemplateOutlet","boltzIconBlock"===t.icon?e:null)}}function Br(t,e){if(1&t&&r._UZ(0,"fa-icon",23),2&t){const t=r.oxw().$implicit;r.Q6J("icon",t.icon)}}function Ur(t,e){if(1&t&&(r.TgZ(0,"mat-icon",24),r._uU(1),r.qZA()),2&t){const t=r.oxw().$implicit;r.xp6(1),r.Oqu(t.icon)}}function qr(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"mat-tree-node",15),r.TgZ(1,"div",16),r.NdJ("click",function(){const e=r.CHM(t).$implicit;return r.oxw(2).onChildNavClicked(e)}),r.TgZ(2,"div",17),r.YNc(3,Zr,2,1,"span",18),r.YNc(4,Br,1,1,"fa-icon",19),r.YNc(5,Ur,2,1,"mat-icon",20),r.TgZ(6,"span"),r._uU(7),r.qZA(),r.qZA(),r.qZA(),r.qZA()}if(2&t){const t=e.$implicit;r.s9C("routerLink",t.link),r.xp6(3),r.Q6J("ngIf","SVG"===t.iconType),r.xp6(1),r.Q6J("ngIf","FA"===t.iconType),r.xp6(1),r.Q6J("ngIf",!t.iconType),r.xp6(2),r.Oqu(t.name)}}function zr(t,e){if(1&t&&(r.TgZ(0,"span",33),r.GkF(1,22),r.qZA()),2&t){const t=r.oxw().$implicit;r.xp6(1),r.Q6J("ngTemplateOutlet",t.icon)}}function Hr(t,e){if(1&t&&r._UZ(0,"fa-icon",23),2&t){const t=r.oxw().$implicit;r.Q6J("icon",t.icon)}}function Yr(t,e){if(1&t&&(r.TgZ(0,"mat-icon",24),r._uU(1),r.qZA()),2&t){const t=r.oxw().$implicit;r.xp6(1),r.Oqu(t.icon)}}function Gr(t,e){if(1&t&&(r.TgZ(0,"mat-nested-tree-node",25),r.TgZ(1,"div",26),r.TgZ(2,"div",27),r.YNc(3,zr,2,1,"span",28),r.YNc(4,Hr,1,1,"fa-icon",19),r.YNc(5,Yr,2,1,"mat-icon",20),r.TgZ(6,"span"),r._uU(7),r.qZA(),r.qZA(),r.TgZ(8,"button",29),r.TgZ(9,"mat-icon",30),r._uU(10),r.qZA(),r.qZA(),r.qZA(),r.TgZ(11,"div",31),r.GkF(12,32),r.qZA(),r.qZA()),2&t){const t=e.$implicit,i=r.oxw(2);r.xp6(3),r.Q6J("ngIf","SVG"===t.iconType),r.xp6(1),r.Q6J("ngIf","FA"===t.iconType),r.xp6(1),r.Q6J("ngIf",!t.iconType),r.xp6(2),r.Oqu(t.name),r.xp6(1),r.uIk("aria-label","toggle "+t.name),r.xp6(2),r.Oqu(i.treeControlNested.isExpanded(t)?"arrow_drop_up":"arrow_drop_down"),r.xp6(1),r.ekj("tree-children-invisible",!i.treeControlNested.isExpanded(t))}}function jr(t,e){if(1&t&&(r.TgZ(0,"mat-tree",5,12),r.YNc(2,qr,8,5,"mat-tree-node",13),r.YNc(3,Gr,13,8,"mat-nested-tree-node",14),r.qZA()),2&t){const t=r.oxw();r.Q6J("dataSource",t.navMenus)("treeControl",t.treeControlNested),r.xp6(3),r.Q6J("matTreeNodeDefWhen",t.hasChild)}}function Vr(t,e){if(1&t&&(r.TgZ(0,"span",21),r.GkF(1,22),r.qZA()),2&t){const t=r.oxw().$implicit;r.xp6(1),r.Q6J("ngTemplateOutlet",t.icon)}}function Qr(t,e){if(1&t&&r._UZ(0,"fa-icon",36),2&t){const t=r.oxw().$implicit;r.s9C("matTooltip",t.name),r.Q6J("icon",t.icon)}}function Wr(t,e){if(1&t&&(r.TgZ(0,"mat-icon",37),r._uU(1),r.qZA()),2&t){const t=r.oxw().$implicit;r.s9C("matTooltip",t.name),r.xp6(1),r.Oqu(t.icon)}}function Jr(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"mat-tree-node",16),r.NdJ("click",function(){const e=r.CHM(t).$implicit;return r.oxw().onShowData(e)}),r.YNc(1,Vr,2,1,"span",18),r.YNc(2,Qr,1,2,"fa-icon",34),r.YNc(3,Wr,2,2,"mat-icon",35),r.TgZ(4,"span"),r._uU(5),r.qZA(),r.qZA()}if(2&t){const t=e.$implicit;r.xp6(1),r.Q6J("ngIf","SVG"===t.iconType),r.xp6(1),r.Q6J("ngIf","FA"===t.iconType),r.xp6(1),r.Q6J("ngIf",!t.iconType),r.xp6(2),r.Oqu(t.name)}}function Xr(t,e){if(1&t&&(r.TgZ(0,"span",33),r.GkF(1,22),r.qZA()),2&t){const t=r.oxw().$implicit;r.xp6(1),r.Q6J("ngTemplateOutlet",t.icon)}}function Kr(t,e){if(1&t&&r._UZ(0,"fa-icon",36),2&t){const t=r.oxw().$implicit;r.s9C("matTooltip",t.name),r.Q6J("icon",t.icon)}}function $r(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"mat-tree-node",16),r.NdJ("click",function(){const e=r.CHM(t).$implicit;return r.oxw(2).onClick(e)}),r.YNc(1,Xr,2,1,"span",28),r.YNc(2,Kr,1,2,"fa-icon",34),r.TgZ(3,"span"),r._uU(4),r.qZA(),r.qZA()}if(2&t){const t=e.$implicit;r.xp6(1),r.Q6J("ngIf","SVG"===t.iconType),r.xp6(1),r.Q6J("ngIf","FA"===t.iconType),r.xp6(2),r.Oqu(t.name)}}function ts(t,e){if(1&t&&(r.TgZ(0,"mat-tree",5),r.YNc(1,$r,5,3,"mat-tree-node",6),r.qZA()),2&t){const t=r.oxw();r.Q6J("dataSource",t.navMenusLogout)("treeControl",t.treeControlLogout)}}function es(t,e){1&t&&(r.O4$(),r.TgZ(0,"svg",38),r.TgZ(1,"g",39),r.TgZ(2,"g",40),r._UZ(3,"circle",41),r._UZ(4,"path",42),r._UZ(5,"path",43),r.qZA(),r.qZA(),r.qZA())}let is=(()=>{class t{constructor(t,e,i,n,s,o){this.logger=t,this.commonService=e,this.sessionService=i,this.store=n,this.actions=s,this.rtlEffects=o,this.ChildNavClicked=new r.vpe,this.faEject=N.KOR,this.faEye=N.Mdf,this.version="",this.information={},this.informationChain={},this.flgLoading=!0,this.logoutNode=[{id:200,parentId:0,name:"Logout",iconType:"FA",icon:N.KOR}],this.showDataNodes=[{id:1e3,parentId:0,name:"Public Key",iconType:"FA",icon:N.Mdf}],this.showLogout=!1,this.numPendingChannels=0,this.smallScreen=!1,this.childRootRoute="",this.userPersonaEnum=G.ol,this.unSubs=[new h.x,new h.x,new h.x,new h.x],this.treeControlNested=new Or.VY(t=>t.children),this.treeControlLogout=new Or.VY(t=>t.children),this.treeControlShowData=new Or.VY(t=>t.children),this.navMenus=new Dr.WX,this.navMenusLogout=new Dr.WX,this.navMenusShowData=new Dr.WX,this.hasChild=(t,e)=>!!e.children&&e.children.length>0,this.version=Ai.N.VERSION,200===Rr.LNDChildren[Rr.LNDChildren.length-1].id&&Rr.LNDChildren.pop(),this.navMenus.data=Rr.LNDChildren,this.navMenusLogout.data=this.logoutNode,this.navMenusShowData.data=this.showDataNodes}ngOnInit(){const t=this.sessionService.getItem("token");this.showLogout=!!t,this.flgLoading=!!t,this.store.select("root").pipe((0,k.R)(this.unSubs[0])).subscribe(t=>{if(this.appConfig=t.appConfig,this.selNode=t.selNode,this.settings=this.selNode.settings,this.information=t.nodeData,this.information.identity_pubkey){if(this.information.chains&&"string"==typeof this.information.chains[0])this.informationChain.chain=this.information.chains[0].toString(),this.informationChain.network=this.information.testnet?"Testnet":"Mainnet";else if("object"==typeof this.information.chains[0]&&this.information.chains[0].hasOwnProperty("chain")){const t=this.information.chains[0];this.informationChain.chain=t.chain,this.informationChain.network=t.network}}else this.informationChain.chain="",this.informationChain.network="";this.flgLoading=!this.information.identity_pubkey,window.innerWidth<=414&&(this.smallScreen=!0),this.selNode&&this.selNode.lnImplementation&&this.filterSideMenuNodes(),this.logger.info(t)}),this.sessionService.watchSession().pipe((0,k.R)(this.unSubs[1])).subscribe(t=>{this.showLogout=!!t.token,this.flgLoading=!!t.token}),this.actions.pipe((0,k.R)(this.unSubs[2]),(0,A.h)(t=>t.type===j.Nv)).subscribe(t=>{this.showLogout=!1})}onClick(t){"Logout"===t.name&&(this.store.dispatch(new j.b_({data:{type:G.n_.CONFIRM,alertTitle:"Logout",titleMessage:"Logout from this device?",noBtnText:"Cancel",yesBtnText:"Logout"}})),this.rtlEffects.closeConfirm.pipe((0,k.R)(this.unSubs[3])).subscribe(t=>{t&&(this.showLogout=!1,this.store.dispatch(new j.RD))})),this.ChildNavClicked.emit(t)}onChildNavClicked(t){this.ChildNavClicked.emit(t)}filterSideMenuNodes(){switch(this.selNode.lnImplementation.toUpperCase()){case"CLT":this.loadCLTMenu();break;case"ECL":this.loadECLMenu();break;default:this.loadLNDMenu()}}loadLNDMenu(){let t=[];t=JSON.parse(JSON.stringify(Rr.LNDChildren)),this.navMenus.data=t.filter(t=>t.children&&t.children.length?(t.children=t.children.filter(t=>(t.userPersona===G.ol.ALL||t.userPersona===this.settings.userPersona)&&"/services/loop"!==t.link&&"/services/boltz"!==t.link||"/services/loop"===t.link&&this.settings.swapServerUrl&&""!==this.settings.swapServerUrl.trim()||"/services/boltz"===t.link&&this.settings.boltzServerUrl&&""!==this.settings.boltzServerUrl.trim()),t.children.length>0):t.userPersona===G.ol.ALL||t.userPersona===this.settings.userPersona)}loadCLTMenu(){let t=[];t=JSON.parse(JSON.stringify(Rr.CLChildren)),this.navMenus.data=t.filter(t=>(t.children&&t.children.length&&(t.children=t.children.filter(t=>(t.userPersona===G.ol.ALL||t.userPersona===this.settings.userPersona)&&"/cl/messages"!==t.link||"/cl/messages"===t.link&&this.information.api_version&&this.commonService.isVersionCompatible(this.information.api_version,"0.2.2"))),t.userPersona===G.ol.ALL||t.userPersona===this.settings.userPersona))}loadECLMenu(){this.navMenus.data=JSON.parse(JSON.stringify(Rr.ECLChildren))}onShowData(t){this.store.dispatch(new j.fD),this.ChildNavClicked.emit("showData")}onNodeSelectionChange(t){this.selNode=t,this.store.dispatch(new j.ZG({uiMessage:G.m6.UPDATE_SELECTED_NODE,lnNode:t,isInitialSetup:!1})),this.ChildNavClicked.emit("selectNode")}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(V.mQ),r.Y36(le.v),r.Y36(It.m),r.Y36(a.yh),r.Y36(l.eX),r.Y36(lt.V))},t.\u0275cmp=r.Xpm({type:t,selectors:[["rtl-side-navigation"]],viewQuery:function(t,e){if(1&t&&r.Gf(Dr.gi,5),2&t){let t;r.iGM(t=r.CRH())&&(e.tree=t.first)}},outputs:{ChildNavClicked:"ChildNavClicked"},decls:12,vars:5,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between start",3,"perfectScrollbar"],["fxLayout","column","fxFlex","90","fxLayoutAlign","start stretch",1,"w-100"],["class","m-2 multi-node-select",3,"value","selectionChange",4,"ngIf"],[1,"w-100"],[3,"dataSource","treeControl",4,"ngIf"],[3,"dataSource","treeControl"],[3,"click",4,"matTreeNodeDef"],["fxLayout","column","fxFlex","10","fxLayoutAlign","end stretch",1,"w-100"],["boltzIconBlock",""],[1,"m-2","multi-node-select",3,"value","selectionChange"],["tabindex","1",3,"value",4,"ngFor","ngForOf"],["tabindex","1",3,"value"],["tree",""],["matTreeNodeToggle","","routerLinkActive","active-link",3,"routerLink",4,"matTreeNodeDef"],["fxLayout","column","matTreeNodeToggle","",4,"matTreeNodeDef","matTreeNodeDefWhen"],["matTreeNodeToggle","","routerLinkActive","active-link",3,"routerLink"],[3,"click"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],["class","fa-icon-small mr-2",4,"ngIf"],["class","fa-icon-small mr-2",3,"icon",4,"ngIf"],["class","mat-icon-36",4,"ngIf"],[1,"fa-icon-small","mr-2"],[3,"ngTemplateOutlet"],[1,"fa-icon-small","mr-2",3,"icon"],[1,"mat-icon-36"],["fxLayout","column","matTreeNodeToggle",""],["fxLayout","row","fxLayoutAlign","start center",1,"mat-nested-tree-node-parent"],["fxFlex","89","fxLayoutAlign","start center"],["class","mr-2",4,"ngIf"],["fxFlex","11","mat-icon-button","","fxLayoutAlign","end center"],[1,"mat-icon-rtl-mirror"],[1,"mat-nested-tree-node-child"],["matTreeNodeOutlet",""],[1,"mr-2"],["class","fa-icon-small mr-2","matTooltipPosition","right",3,"icon","matTooltip",4,"ngIf"],["class","mat-icon-36","matTooltipPosition","right",3,"matTooltip",4,"ngIf"],["matTooltipPosition","right",1,"fa-icon-small","mr-2",3,"icon","matTooltip"],["matTooltipPosition","right",1,"mat-icon-36",3,"matTooltip"],["viewBox","0 0 78 78","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink"],["id","Logo","stroke","none","stroke-width","1","fill","none","fill-rule","evenodd"],["id","Group"],["id","Oval","cx","39","cy","39","r","37.5",1,"boltz-icon"],["d","M36.4583326,43.7755404 L40.53965,35.2316544 L39.4324865,35.2316544 L46.0754873,17.6071752 C46.292579,17.0204094 46.3287609,16.5159331 46.1840331,16.0937464 C46.0393053,15.671561 45.7860319,15.3674444 45.4242131,15.1813966 C45.0623942,14.9953487 44.6535376,14.9524146 44.1976433,15.0525945 C43.7417511,15.1527743 43.3256596,15.4461573 42.9493689,15.9327433 L22.6078557,40.7701025 C22.2026186,41.2710003 22,41.7575877 22,42.2298646 C22,42.6735173 22.1592003,43.0420366 22.477601,43.3354226 C22.7960017,43.6288058 23.1940025,43.7755404 23.6716036,43.7755404 L36.4583326,43.7755404 Z","id","Path",1,"boltz-icon-fill"],["d","M44.4883879,63.7755404 L48.8604707,55.165009 L47.6744296,55.165009 L54.7906978,37.4030526 C55.0232558,36.8117097 55.0620155,36.3032983 54.9069768,35.8778185 C54.7519381,35.4523399 54.4806208,35.1458511 54.0930248,34.958352 C53.7054289,34.7708528 53.2674441,34.7275839 52.7790706,34.8285452 C52.2906992,34.9295065 51.8449641,35.2251779 51.4418653,35.7155595 L29.6511611,60.746659 C29.2170537,61.251464 29,61.7418469 29,62.2178078 C29,62.6649211 29.1705423,63.036315 29.5116268,63.3319895 C29.8527113,63.6276613 30.2790669,63.7755404 30.7906936,63.7755404 L44.4883879,63.7755404 Z","id","Path-Copy","transform","translate(42.000000, 49.275540) rotate(-180.000000) translate(-42.000000, -49.275540) ",1,"boltz-icon-fill"]],template:function(t,e){1&t&&(r.TgZ(0,"div",0),r.TgZ(1,"div",1),r.YNc(2,Fr,2,2,"mat-select",2),r._UZ(3,"mat-divider",3),r.YNc(4,jr,4,3,"mat-tree",4),r._UZ(5,"mat-divider",3),r.TgZ(6,"mat-tree",5),r.YNc(7,Jr,6,4,"mat-tree-node",6),r.qZA(),r.qZA(),r.TgZ(8,"div",7),r.YNc(9,ts,2,2,"mat-tree",4),r.qZA(),r.qZA(),r.YNc(10,es,6,0,"ng-template",null,8,r.W1O)),2&t&&(r.xp6(2),r.Q6J("ngIf",e.appConfig.nodes.length>1),r.xp6(2),r.Q6J("ngIf",e.settings.lnServerUrl),r.xp6(2),r.Q6J("dataSource",e.navMenusShowData)("treeControl",e.treeControlShowData),r.xp6(3),r.Q6J("ngIf",e.showLogout))},directives:[P.xw,P.yH,P.Wh,Q.$V,U.O5,Ot.d,Dr.gi,Dr.fQ,X.gD,U.sg,tt.ey,Dr.uo,Dr.eu,R.Od,R.rH,U.tP,F.BN,Mi.Hw,Dr.GZ,$.lW,Dr.Ar,Nr.gM],styles:[".tree-children-invisible[_ngcontent-%COMP%]{display:none}"]}),t})();var ns=i(7806);const rs=["sideNavigation"],ss=["sideNavContent"];function os(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"button",13),r.NdJ("click",function(){return r.CHM(t),r.oxw().sideNavToggle()}),r.TgZ(1,"mat-icon"),r._uU(2,"menu"),r.qZA(),r.qZA()}if(2&t){const t=r.oxw();r.Q6J("matTooltip",t.flgSideNavOpened?"Hide Navigation Menu":"Show Navigation Menu")("matTooltipDisabled",t.smallScreen)}}function as(t,e){1&t&&(r.O4$(),r._UZ(0,"path",18))}function ls(t,e){1&t&&(r.O4$(),r._UZ(0,"path",19))}function cs(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"button",14),r.NdJ("click",function(){r.CHM(t);const e=r.oxw();return e.flgSidenavPinned=!e.flgSidenavPinned}),r.O4$(),r.TgZ(1,"svg",15),r.YNc(2,as,1,0,"path",16),r.YNc(3,ls,1,0,"path",17),r.qZA(),r.qZA()}if(2&t){const t=r.oxw();r.Q6J("matTooltip",t.flgSidenavPinned?"Unpin Navigation Menu":"Pin Navigation Menu"),r.xp6(2),r.Q6J("ngIf",!t.flgSidenavPinned),r.xp6(1),r.Q6J("ngIf",t.flgSidenavPinned)}}function hs(t,e){if(1&t&&(r.TgZ(0,"span"),r._uU(1),r.qZA()),2&t){const t=r.oxw();r.xp6(1),r.Oqu(t.information.alias?"RTL - "+t.information.alias:"RTL")}}function us(t,e){if(1&t&&(r.TgZ(0,"span"),r._uU(1),r.qZA()),2&t){const t=r.oxw();r.xp6(1),r.Oqu(t.information.alias?"Ride The Lightning - "+t.information.alias:"Ride The Lightning")}}function ds(t,e){1&t&&(r.TgZ(0,"div",20),r._UZ(1,"mat-spinner",21),r.TgZ(2,"h4"),r._uU(3,"Loading RTL..."),r.qZA(),r.qZA())}const ps=function(t,e){return[t,e]};let fs=(()=>{class t{constructor(t,e,i,n,r,s,o,a,l){this.logger=t,this.commonService=e,this.store=i,this.actions=n,this.userIdle=r,this.router=s,this.sessionService=o,this.breakpointObserver=a,this.renderer=l,this.information={},this.flgLoading=[!0],this.flgSideNavOpened=!0,this.flgCopied=!1,this.accessKey="",this.xSmallScreen=!1,this.smallScreen=!1,this.flgSidenavPinned=!0,this.flgLoggedIn=!1,this.unSubs=[new h.x,new h.x,new h.x,new h.x,new h.x,new h.x]}ngOnInit(){this.router.events.subscribe(t=>{t instanceof R.m2&&document.getElementsByTagName("mat-sidenav-content")[0].scrollTo(0,0)}),this.breakpointObserver.observe([Cr.u3.XSmall,Cr.u3.TabletPortrait,Cr.u3.Small,Cr.u3.Medium,Cr.u3.Large,Cr.u3.XLarge]).pipe((0,k.R)(this.unSubs[0])).subscribe(t=>{t.breakpoints[Cr.u3.XSmall]?(this.commonService.setScreenSize(G.cu.XS),this.smallScreen=!0):t.breakpoints[Cr.u3.TabletPortrait]?(this.commonService.setScreenSize(G.cu.SM),this.smallScreen=!0):t.breakpoints[Cr.u3.Small]||t.breakpoints[Cr.u3.Medium]?(this.commonService.setScreenSize(G.cu.MD),this.smallScreen=!1):t.breakpoints[Cr.u3.Large]?(this.commonService.setScreenSize(G.cu.LG),this.smallScreen=!1):(this.commonService.setScreenSize(G.cu.XL),this.smallScreen=!1)}),this.store.dispatch(new j.XF),this.accessKey=this.readAccessKey(),this.store.select("root").pipe((0,k.R)(this.unSubs[1])).subscribe(t=>{this.selNode=t.selNode,this.settings=this.selNode.settings,this.appConfig=t.appConfig,this.information=t.nodeData,this.flgLoading[0]=!this.information.identity_pubkey,this.logger.info(this.settings),this.sessionService.getItem("token")?(this.flgLoggedIn=!0,this.userIdle.startWatching()):(this.flgLoggedIn=!1,this.flgLoading[0]=!1)}),"true"===this.sessionService.getItem("defaultPassword")&&(this.flgSideNavOpened=!1),this.actions.pipe((0,k.R)(this.unSubs[2]),(0,A.h)(t=>t.type===j.rZ||t.type===j.Nv)).subscribe(t=>{t.type===j.rZ&&(this.sessionService.getItem("token")||(+t.payload.sso.rtlSSO?!this.accessKey||this.accessKey.trim().length<32?this.router.navigate(["./error"],{state:{errorCode:"406",errorMessage:"Access key too short. It should be at least 32 characters long."}}):this.store.dispatch(new j.m3({password:rt(this.accessKey),defaultPassword:!1})):this.router.navigate(["./login"]))),t.type===j.Nv&&(this.flgLoggedIn=!1,this.userIdle.stopWatching(),this.userIdle.stopTimer())}),this.userIdle.onTimerStart().pipe((0,k.R)(this.unSubs[3])).subscribe(t=>{this.logger.info("Counting Down: "+(11-t))}),this.userIdle.onTimeout().pipe((0,k.R)(this.unSubs[4])).subscribe(()=>{this.logger.info("Time Out!"),this.sessionService.getItem("token")&&(this.flgLoggedIn=!1,this.logger.warn("Time limit exceeded for session inactivity."),this.store.dispatch(new j.Ac),this.store.dispatch(new j.wu({data:{type:G.n_.WARNING,alertTitle:"Logging out",titleMessage:"Time limit exceeded for session inactivity."}})),this.store.dispatch(new j.RD))}),"true"===this.sessionService.getItem("defaultPassword")&&(this.flgSideNavOpened=!1)}readAccessKey(){const t=window.location.href;return t.includes("access-key=")?t.substring(t.lastIndexOf("access-key=")+11).trim():null}ngAfterViewInit(){this.smallScreen?(this.sideNavigation.close(),this.commonService.setContainerSize(this.sideNavContent.elementRef.nativeElement.clientWidth,this.sideNavContent.elementRef.nativeElement.clientHeight)):setTimeout(()=>{this.flgLoggedIn&&this.renderer.setStyle(this.sideNavContent.elementRef.nativeElement,"marginLeft","22rem"),this.commonService.setContainerSize(this.sideNavContent.elementRef.nativeElement.clientWidth,this.sideNavContent.elementRef.nativeElement.clientHeight)},100)}sideNavToggle(){this.flgSideNavOpened=!this.flgSideNavOpened,this.sideNavigation.toggle()}onNavigationClicked(t){this.smallScreen&&this.sideNavigation.close()}copiedText(t){this.flgCopied=!0,setTimeout(()=>{this.flgCopied=!1},5e3),this.logger.info("Copied Text: "+t)}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(V.mQ),r.Y36(le.v),r.Y36(a.yh),r.Y36(l.eX),r.Y36(O),r.Y36(R.F0),r.Y36(It.m),r.Y36(Cr.Yg),r.Y36(r.Qsj))},t.\u0275cmp=r.Xpm({type:t,selectors:[["rtl-app"]],viewQuery:function(t,e){if(1&t&&(r.Gf(rs,5),r.Gf(ss,5)),2&t){let t;r.iGM(t=r.CRH())&&(e.sideNavigation=t.first),r.iGM(t=r.CRH())&&(e.sideNavContent=t.first)}},decls:23,vars:15,consts:[["fxLayout","column","id","rtl-container",1,"rtl-container","medium",3,"ngClass"],["fxLayout","row","fxLayoutAlign","space-between center",1,"padding-gap-x","bg-primary","rtl-top-toolbar"],["class","top-toolbar-icon mr-1","mat-icon-button","","matTooltipPosition","right",3,"matTooltip","matTooltipDisabled","click",4,"ngIf"],["mat-icon-button","","matTooltipPosition","right",3,"matTooltip","click",4,"ngIf"],[4,"ngIf"],[1,"sidenav","mat-elevation-z6",3,"perfectScrollbar","opened","mode"],["sideNavigation",""],["fxFlex","100",3,"ChildNavClicked"],[3,"perfectScrollbar"],["sideNavContent",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"inner-sidenav-content"],["outlet","outlet"],["class","rtl-spinner",4,"ngIf"],["mat-icon-button","","matTooltipPosition","right",1,"top-toolbar-icon","mr-1",3,"matTooltip","matTooltipDisabled","click"],["mat-icon-button","","matTooltipPosition","right",3,"matTooltip","click"],["viewBox","0 0 32 32",1,"top-toolbar-icon","icon-pinned"],["fill","currentColor","d","M16,12V4H17V2H7V4H8V12L6,14V16H11.2V22H12.8V16H18V14L16,12Z",4,"ngIf"],["fill","currentColor","d","M2,5.27L3.28,4L20,20.72L18.73,22L12.8,16.07V22H11.2V16H6V14L8,12V11.27L2,5.27M16,12L18,14V16H17.82L8,6.18V4H7V2H17V4H16V12Z",4,"ngIf"],["fill","currentColor","d","M16,12V4H17V2H7V4H8V12L6,14V16H11.2V22H12.8V16H18V14L16,12Z"],["fill","currentColor","d","M2,5.27L3.28,4L20,20.72L18.73,22L12.8,16.07V22H11.2V16H6V14L8,12V11.27L2,5.27M16,12L18,14V16H17.82L8,6.18V4H7V2H17V4H16V12Z"],[1,"rtl-spinner"],["color","accent"]],template:function(t,e){1&t&&(r.TgZ(0,"div",0),r.ALo(1,"lowercase"),r.ALo(2,"lowercase"),r.TgZ(3,"mat-toolbar",1),r.TgZ(4,"div"),r.YNc(5,os,3,2,"button",2),r.YNc(6,cs,4,3,"button",3),r.qZA(),r.TgZ(7,"div"),r.YNc(8,hs,2,1,"span",4),r.YNc(9,us,2,1,"span",4),r.qZA(),r.TgZ(10,"div"),r._UZ(11,"rtl-top-menu"),r.qZA(),r.qZA(),r.TgZ(12,"mat-sidenav-container"),r.TgZ(13,"mat-sidenav",5,6),r.TgZ(15,"rtl-side-navigation",7),r.NdJ("ChildNavClicked",function(t){return e.onNavigationClicked(t)}),r.qZA(),r.qZA(),r.TgZ(16,"mat-sidenav-content",8,9),r.TgZ(18,"div",10),r._UZ(19,"router-outlet",null,11),r.qZA(),r.qZA(),r._uU(21,"> "),r.qZA(),r.YNc(22,ds,4,0,"div",12),r.qZA()),2&t&&(r.Q6J("ngClass",r.WLB(12,ps,r.lcZ(1,8,e.settings.themeColor),r.lcZ(2,10,e.settings.themeMode))),r.xp6(5),r.Q6J("ngIf",e.flgLoggedIn),r.xp6(1),r.Q6J("ngIf",!e.smallScreen&&e.flgLoggedIn),r.xp6(2),r.Q6J("ngIf",e.smallScreen),r.xp6(1),r.Q6J("ngIf",!e.smallScreen),r.xp6(4),r.Q6J("opened",e.flgSideNavOpened&&e.flgLoggedIn)("mode",e.flgSidenavPinned&&!e.smallScreen?"side":"over"),r.xp6(9),r.Q6J("ngIf",!e.settings.themeColor))},directives:[P.xw,U.mk,ue.oO,Sr.Ye,P.Wh,U.O5,Lr,Ir.TM,Ir.JX,Q.$V,is,P.yH,Ir.Rh,R.lC,$.lW,Nr.gM,Mi.Hw,ns.$g],pipes:[U.i8],styles:[".inline-spinner[_ngcontent-%COMP%]{display:inline-flex!important;top:0!important}"],data:{animation:[Ar.g]}}),t})(),ms=(()=>{class t{constructor(t){this.sessionService=t}intercept(t,e){if(this.sessionService.getItem("token")){const i=t.clone({headers:t.headers.set("Authorization","Bearer "+this.sessionService.getItem("token"))});return e.handle(i)}return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(It.m))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})();var gs=i(3556);const ys={apisCallStatus:{FetchInfo:{status:G.Bn.UN_INITIATED},FetchFees:{status:G.Bn.UN_INITIATED},FetchChannels:{status:G.Bn.UN_INITIATED},FetchOnchainBalance:{status:G.Bn.UN_INITIATED},FetchPeers:{status:G.Bn.UN_INITIATED},FetchPayments:{status:G.Bn.UN_INITIATED},FetchInvoices:{status:G.Bn.UN_INITIATED},FetchTransactions:{status:G.Bn.UN_INITIATED}},nodeSettings:{userPersona:G.ol.OPERATOR,selCurrencyUnit:"USD",fiatConversion:!1,channelBackupPath:"",currencyUnits:[]},information:{},fees:{},activeChannels:[],pendingChannels:[],inactiveChannels:[],channelsStatus:{},channelStats:[],onchainBalance:{total:0,confirmed:0,unconfirmed:0},lightningBalance:{localBalance:-1,remoteBalance:-1},peers:[],payments:{},transactions:[],invoices:[]},bs={apisCallStatus:{FetchInfo:{status:G.Bn.UN_INITIATED},FetchInvoices:{status:G.Bn.UN_INITIATED},FetchFees:{status:G.Bn.UN_INITIATED},FetchChannels:{status:G.Bn.UN_INITIATED},FetchBalance:{status:G.Bn.UN_INITIATED},FetchLocalRemoteBalance:{status:G.Bn.UN_INITIATED},FetchFeeRatesperkb:{status:G.Bn.UN_INITIATED},FetchFeeRatesperkw:{status:G.Bn.UN_INITIATED},FetchPeers:{status:G.Bn.UN_INITIATED},FetchUTXOs:{status:G.Bn.UN_INITIATED},FetchPayments:{status:G.Bn.UN_INITIATED},GetForwardingHistory:{status:G.Bn.UN_INITIATED},GetFailedForwardingHistory:{status:G.Bn.UN_INITIATED}},nodeSettings:{userPersona:G.ol.OPERATOR,selCurrencyUnit:"USD",fiatConversion:!1,channelBackupPath:"",currencyUnits:[]},information:{},fees:{},feeRatesPerKB:{},feeRatesPerKW:{},balance:{},localRemoteBalance:{localBalance:-1,remoteBalance:-1},peers:[],allChannels:[],payments:[],forwardingHistory:[],failedForwardingHistory:[],invoices:{invoices:[]},utxos:[]};let vs=!1,_s=!1;const ws={apisCallStatus:{FetchInfo:{status:G.Bn.UN_INITIATED},FetchFees:{status:G.Bn.UN_INITIATED},FetchPeers:{status:G.Bn.UN_INITIATED},FetchClosedChannels:{status:G.Bn.UN_INITIATED},FetchPendingChannels:{status:G.Bn.UN_INITIATED},FetchAllChannels:{status:G.Bn.UN_INITIATED},FetchBalanceBlockchain:{status:G.Bn.UN_INITIATED},FetchInvoices:{status:G.Bn.UN_INITIATED},FetchPayments:{status:G.Bn.UN_INITIATED},GetForwardingHistory:{status:G.Bn.UN_INITIATED},FetchUTXOs:{status:G.Bn.UN_INITIATED},FetchTransactions:{status:G.Bn.UN_INITIATED},FetchLightningTransactions:{status:G.Bn.UN_INITIATED},FetchNetwork:{status:G.Bn.UN_INITIATED}},nodeSettings:{userPersona:G.ol.OPERATOR,fiatConversion:!1,channelBackupPath:"",currencyUnits:[],selCurrencyUnit:"",lnImplementation:"",swapServerUrl:""},information:{},peers:[],fees:{},networkInfo:{},blockchainBalance:{total_balance:-1},allChannels:[],closedChannels:[],pendingChannels:{},numberOfActiveChannels:0,numberOfInactiveChannels:0,numberOfPendingChannels:{open:{num_channels:0,limbo_balance:0},closing:{num_channels:0,limbo_balance:0},force_closing:{num_channels:0,limbo_balance:0},waiting_close:{num_channels:0,limbo_balance:0},total_channels:0,total_limbo_balance:0},totalCapacityActive:0,totalCapacityInactive:0,totalLocalBalance:-1,totalRemoteBalance:-1,totalInvoices:-1,transactions:[],utxos:[],payments:{payments:[]},invoices:{invoices:[]},allLightningTransactions:{paymentsAll:null,invoicesAll:null},forwardingHistory:{}},xs={userPersona:"OPERATOR",themeMode:"DAY",themeColor:"PURPLE",channelBackupPath:"",selCurrencyUnit:"USD",fiatConversion:!1,currencyUnits:["Sats","BTC","USD"],bitcoindConfigPath:""},Cs={configPath:"",swapMacaroonPath:"",boltzMacaroonPath:""},As={apisCallStatus:{Login:{status:G.Bn.UN_INITIATED},IsAuthorized:{status:G.Bn.UN_INITIATED}},selNode:{settings:xs,authentication:Cs,lnImplementation:"LND"},appConfig:{defaultNodeIndex:-1,selectedNodeIndex:-1,sso:{rtlSSO:0,logoutRedirectLink:""},enable2FA:!1,nodes:[{settings:xs,authentication:Cs}]},nodeData:{}},Ss={root:function(t=As,e){switch(e.type){case j.O3:const i=t.apisCallStatus;return i[e.payload.action]={status:e.payload.status,statusCode:e.payload.statusCode,message:e.payload.message,URL:e.payload.URL,filePath:e.payload.filePath},Object.assign(Object.assign({},t),{apisCallStatus:i});case j.dh:return Object.assign(Object.assign({},As),{appConfig:t.appConfig,selNode:e.payload});case j.RP:return Object.assign(Object.assign({},t),{selNode:e.payload.lnNode});case j.zH:return Object.assign(Object.assign({},t),{nodeData:e.payload});case j.rZ:return Object.assign(Object.assign({},t),{appConfig:e.payload});default:return t}},lnd:function(t=ws,e){switch(e.type){case ae.JE:const i=t.apisCallStatus;return i[e.payload.action]={status:e.payload.status,statusCode:e.payload.statusCode,message:e.payload.message,URL:e.payload.URL,filePath:e.payload.filePath},Object.assign(Object.assign({},t),{apisCallStatus:i});case ae.Os:return Object.assign(Object.assign({},t),{nodeSettings:e.payload});case ae.AL:return Object.assign(Object.assign({},ws),{nodeSettings:e.payload});case ae.Uy:return Object.assign(Object.assign({},t),{information:e.payload});case ae.Ah:return Object.assign(Object.assign({},t),{peers:e.payload});case ae.pK:const n=[...t.peers],r=t.peers.findIndex(t=>t.pub_key===e.payload.pubkey);return r>-1&&n.splice(r,1),Object.assign(Object.assign({},t),{peers:n});case ae.c_:const s=t.invoices;return s.invoices.unshift(e.payload),Object.assign(Object.assign({},t),{invoices:s});case ae.aB:const o=t.invoices;return o.invoices=o.invoices.map(t=>t.r_hash===e.payload.r_hash?e.payload:t),Object.assign(Object.assign({},t),{invoices:o});case ae.HS:return Object.assign(Object.assign({},t),{fees:e.payload});case ae.S1:return Object.assign(Object.assign({},t),{closedChannels:e.payload});case ae.oS:return Object.assign(Object.assign({},t),{pendingChannels:e.payload.channels,numberOfPendingChannels:e.payload.pendingChannels});case ae.P2:let a=0,l=0,c=0,h=0,u=0,d=0;return e.payload&&e.payload.forEach(t=>{t.local_balance||(t.local_balance=0),!0===t.active?(u+=+t.local_balance,c+=1,t.local_balance?a=+a+ +t.local_balance:t.local_balance=0,t.remote_balance?l=+l+ +t.remote_balance:t.remote_balance=0):(d+=+t.local_balance,h+=1)}),Object.assign(Object.assign({},t),{allChannels:e.payload,numberOfActiveChannels:c,numberOfInactiveChannels:h,totalCapacityActive:u,totalCapacityInactive:d,totalLocalBalance:a,totalRemoteBalance:l});case ae.bq:const p=[...t.allChannels],f=t.allChannels.findIndex(t=>t.channel_point===e.payload.channelPoint);return f>-1&&p.splice(f,1),Object.assign(Object.assign({},t),{allChannels:p});case ae.hn:return"Blockchain"===e.payload.target?Object.assign(Object.assign({},t),{blockchainBalance:e.payload.balance}):Object.assign({},t);case ae._s:return Object.assign(Object.assign({},t),{networkInfo:e.payload});case ae._V:return Object.assign(Object.assign({},t),{invoices:e.payload});case ae.mU:return Object.assign(Object.assign({},t),{totalInvoices:e.payload});case ae.kz:if(vs=!0,e.payload.length&&_s){const i=[...t.utxos];return i.forEach(t=>{const i=e.payload.find(e=>e.tx_hash===t.outpoint.txid_str);t.label=i&&i.label?i.label:""}),Object.assign(Object.assign({},t),{utxos:i,transactions:e.payload})}return Object.assign(Object.assign({},t),{transactions:e.payload});case ae.b:if(_s=!0,e.payload.length&&vs){const i=[...t.transactions];e.payload.forEach(t=>{const e=i.find(e=>e.tx_hash===t.outpoint.txid_str);t.label=e&&e.label?e.label:""})}return Object.assign(Object.assign({},t),{utxos:e.payload});case ae.Bj:return Object.assign(Object.assign({},t),{payments:e.payload});case ae.tB:return Object.assign(Object.assign({},t),{allLightningTransactions:e.payload});case ae.x:if(e.payload.forwarding_events){const i=[...t.allChannels,...t.closedChannels];e.payload.forwarding_events.forEach(t=>{if(i&&i.length>0)for(let e=0;et.id===e.payload.id);return r>-1&&n.splice(r,1),Object.assign(Object.assign({},t),{peers:n});case oe.zj:return Object.assign(Object.assign({},t),{allChannels:e.payload});case oe.Vb:const s=[...t.allChannels],o=t.allChannels.findIndex(t=>t.channel_id===e.payload.channelId);return o>-1&&s.splice(o,1),Object.assign(Object.assign({},t),{allChannels:s});case oe.nL:return Object.assign(Object.assign({},t),{payments:e.payload});case oe.bH:const a=t.fees;if(e.payload&&e.payload.length>0){const i=[...t.allChannels];e.payload.forEach((t,e)=>{if(i&&i.length>0)for(let n=0;n0){const i=[...t.allChannels];e.payload.forEach((t,e)=>{if(i&&i.length>0)for(let n=0;nt.label===e.payload.label?e.payload:t),Object.assign(Object.assign({},t),{invoices:c});case oe.Q2:return Object.assign(Object.assign({},t),{utxos:e.payload});default:return t}},ecl:function(t=ys,e){switch(e.type){case se.f:const i=t.apisCallStatus;return i[e.payload.action]={status:e.payload.status,statusCode:e.payload.statusCode,message:e.payload.message,URL:e.payload.URL,filePath:e.payload.filePath},Object.assign(Object.assign({},t),{apisCallStatus:i});case se.gk:return Object.assign(Object.assign({},t),{nodeSettings:e.payload});case se.ok:return Object.assign(Object.assign({},ys),{nodeSettings:e.payload});case se.ml:return Object.assign(Object.assign({},t),{information:e.payload});case se.UA:return Object.assign(Object.assign({},t),{fees:e.payload});case se.L2:return Object.assign(Object.assign({},t),{activeChannels:e.payload});case se.JI:return Object.assign(Object.assign({},t),{pendingChannels:e.payload});case se.ct:return Object.assign(Object.assign({},t),{inactiveChannels:e.payload});case se.mn:return Object.assign(Object.assign({},t),{channelsStatus:e.payload});case se.ro:return Object.assign(Object.assign({},t),{channelStats:e.payload});case se.CF:return Object.assign(Object.assign({},t),{onchainBalance:e.payload});case se.$9:return Object.assign(Object.assign({},t),{lightningBalance:e.payload});case se.IH:return Object.assign(Object.assign({},t),{peers:e.payload});case se.J4:const n=[...t.peers],r=t.peers.findIndex(t=>t.nodeId===e.payload.nodeId);return r>-1&&n.splice(r,1),Object.assign(Object.assign({},t),{peers:n});case se.Cu:const s=[...t.activeChannels],o=t.activeChannels.findIndex(t=>t.channelId===e.payload.channelId);return o>-1&&s.splice(o,1),Object.assign(Object.assign({},t),{activeChannels:s});case se.Wn:if(e.payload&&e.payload.relayed){const i=[...t.activeChannels,...t.pendingChannels,...t.inactiveChannels];e.payload.relayed.forEach(t=>{if(i&&i.length>0)for(let e=0;et.paymentHash===e.payload.paymentHash?e.payload:t),Object.assign(Object.assign({},t),{invoices:l});default:return t}}};var Es=i(8248),ks=i(8640),Ts=i(4147);let Ms=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t,bootstrap:[fs]}),t.\u0275inj=r.cJS({providers:[{provide:o.TP,useClass:ms,multi:!0},_r.a1,It.m,gs.D,Re.W,le.v,Ei],imports:[[s.PW,xr.m,wr,Cr.xu,n.t6,D.forRoot({idle:3590,timeout:10,ping:12e3}),a.Aw.forRoot(Ss,{runtimeChecks:{strictStateImmutability:!1,strictActionImmutability:!1}}),l.sQ.forRoot([lt.V,Es.l,ks.s,Ts.o]),Ai.N.production?[]:c.FT.instrument()]]}),t})();Ai.N.production&&(0,r.G48)(),n.q6().bootstrapModule(Ms).catch(t=>console.log(t))},9162:(t,e,i)=>{"use strict";i.d(e,{ZT:()=>r,mG:()=>s,Jh:()=>o,XA:()=>a,CR:()=>l,ev:()=>c,qq:()=>h,FC:()=>u,KL:()=>d});var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)};function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}function s(t,e,i,n){return new(i||(i=Promise))(function(r,s){function o(t){try{l(n.next(t))}catch(e){s(e)}}function a(t){try{l(n.throw(t))}catch(e){s(e)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(o,a)}l((n=n.apply(t,e||[])).next())})}function o(t,e){var i,n,r,s,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(i)throw new TypeError("Generator is already executing.");for(;o;)try{if(i=1,n&&(r=2&s[0]?n.return:s[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,s[1])).done)return r;switch(n=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,n=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((r=(r=o.trys).length>0&&r[r.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function l(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var n,r,s=i.call(t),o=[];try{for(;(void 0===e||e-- >0)&&!(n=s.next()).done;)o.push(n.value)}catch(a){r={error:a}}finally{try{n&&!n.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}return o}function c(t,e){for(var i=0,n=e.length,r=t.length;i1||a(t,e)})})}function a(t,e){try{(i=r[t](e)).value instanceof h?Promise.resolve(i.value.v).then(l,c):u(s[0][2],i)}catch(n){u(s[0][3],n)}var i}function l(t){a("next",t)}function c(t){a("throw",t)}function u(t,e){t(e),s.shift(),s.length&&a(s[0][0],s[0][1])}}function d(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,i=t[Symbol.asyncIterator];return i?i.call(t):(t=a(t),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(i){e[i]=t[i]&&function(e){return new Promise(function(n,r){!function(t,e,i,n){Promise.resolve(n).then(function(e){t({value:e,done:i})},e)}(n,r,(e=t[i](e)).done,e.value)})}}}},5415:t=>{"use strict";t.exports=JSON.parse('{"aes-128-ecb":{"cipher":"AES","key":128,"iv":0,"mode":"ECB","type":"block"},"aes-192-ecb":{"cipher":"AES","key":192,"iv":0,"mode":"ECB","type":"block"},"aes-256-ecb":{"cipher":"AES","key":256,"iv":0,"mode":"ECB","type":"block"},"aes-128-cbc":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes-192-cbc":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes-256-cbc":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes128":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes192":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes256":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes-128-cfb":{"cipher":"AES","key":128,"iv":16,"mode":"CFB","type":"stream"},"aes-192-cfb":{"cipher":"AES","key":192,"iv":16,"mode":"CFB","type":"stream"},"aes-256-cfb":{"cipher":"AES","key":256,"iv":16,"mode":"CFB","type":"stream"},"aes-128-cfb8":{"cipher":"AES","key":128,"iv":16,"mode":"CFB8","type":"stream"},"aes-192-cfb8":{"cipher":"AES","key":192,"iv":16,"mode":"CFB8","type":"stream"},"aes-256-cfb8":{"cipher":"AES","key":256,"iv":16,"mode":"CFB8","type":"stream"},"aes-128-cfb1":{"cipher":"AES","key":128,"iv":16,"mode":"CFB1","type":"stream"},"aes-192-cfb1":{"cipher":"AES","key":192,"iv":16,"mode":"CFB1","type":"stream"},"aes-256-cfb1":{"cipher":"AES","key":256,"iv":16,"mode":"CFB1","type":"stream"},"aes-128-ofb":{"cipher":"AES","key":128,"iv":16,"mode":"OFB","type":"stream"},"aes-192-ofb":{"cipher":"AES","key":192,"iv":16,"mode":"OFB","type":"stream"},"aes-256-ofb":{"cipher":"AES","key":256,"iv":16,"mode":"OFB","type":"stream"},"aes-128-ctr":{"cipher":"AES","key":128,"iv":16,"mode":"CTR","type":"stream"},"aes-192-ctr":{"cipher":"AES","key":192,"iv":16,"mode":"CTR","type":"stream"},"aes-256-ctr":{"cipher":"AES","key":256,"iv":16,"mode":"CTR","type":"stream"},"aes-128-gcm":{"cipher":"AES","key":128,"iv":12,"mode":"GCM","type":"auth"},"aes-192-gcm":{"cipher":"AES","key":192,"iv":12,"mode":"GCM","type":"auth"},"aes-256-gcm":{"cipher":"AES","key":256,"iv":12,"mode":"GCM","type":"auth"}}')},2063:t=>{"use strict";t.exports=JSON.parse('{"sha224WithRSAEncryption":{"sign":"rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"RSA-SHA224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha256WithRSAEncryption":{"sign":"rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"RSA-SHA256":{"sign":"ecdsa/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha384WithRSAEncryption":{"sign":"rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"RSA-SHA384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512WithRSAEncryption":{"sign":"rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA1":{"sign":"rsa","hash":"sha1","id":"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{"sign":"ecdsa","hash":"sha1","id":""},"sha256":{"sign":"ecdsa","hash":"sha256","id":""},"sha224":{"sign":"ecdsa","hash":"sha224","id":""},"sha384":{"sign":"ecdsa","hash":"sha384","id":""},"sha512":{"sign":"ecdsa","hash":"sha512","id":""},"DSA-SHA":{"sign":"dsa","hash":"sha1","id":""},"DSA-SHA1":{"sign":"dsa","hash":"sha1","id":""},"DSA":{"sign":"dsa","hash":"sha1","id":""},"DSA-WITH-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-WITH-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-WITH-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-WITH-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-RIPEMD160":{"sign":"dsa","hash":"rmd160","id":""},"ripemd160WithRSA":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"RSA-RIPEMD160":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"md5WithRSAEncryption":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"},"RSA-MD5":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"}}')},2236:t=>{"use strict";t.exports=JSON.parse('{"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}')},1930:t=>{"use strict";t.exports=JSON.parse('{"modp1":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},"modp2":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},"modp5":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},"modp14":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},"modp15":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},"modp16":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},"modp17":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"modp18":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}')},7519:t=>{"use strict";t.exports={i8:"6.5.4"}},873:t=>{"use strict";t.exports=JSON.parse('{"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}')},6601:()=>{},8623:()=>{},2361:()=>{},4616:()=>{}},t=>{"use strict";t(t.s=7015)}]); \ No newline at end of file +(self.webpackChunkrtl=self.webpackChunkrtl||[]).push([[179],{8255:t=>{function e(t){return Promise.resolve().then(()=>{var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}e.keys=()=>[],e.resolve=e,e.id=8255,t.exports=e},709:(t,e,i)=>{"use strict";i.d(e,{l3:()=>s,_j:()=>n,LC:()=>r,ZN:()=>y,jt:()=>a,pV:()=>f,ru:()=>l,F4:()=>d,IO:()=>m,vP:()=>c,SB:()=>u,oB:()=>h,eR:()=>p,X$:()=>o,ZE:()=>b,k1:()=>v});class n{}class r{}const s="*";function o(t,e){return{type:7,name:t,definitions:e,options:{}}}function a(t,e=null){return{type:4,styles:e,timings:t}}function l(t,e=null){return{type:3,steps:t,options:e}}function c(t,e=null){return{type:2,steps:t,options:e}}function h(t){return{type:6,styles:t,offset:null}}function u(t,e,i){return{type:0,name:t,styles:e,options:i}}function d(t){return{type:5,steps:t}}function p(t,e,i=null){return{type:1,expr:t,animation:e,options:i}}function f(t=null){return{type:9,options:t}}function m(t,e,i=null){return{type:11,selector:t,animation:e,options:i}}function g(t){Promise.resolve(null).then(t)}class y{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){g(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class b{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,i=0,n=0;const r=this.players.length;0==r?g(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==r&&this._onFinish()}),t.onDestroy(()=>{++i==r&&this._onDestroy()}),t.onStart(()=>{++n==r&&this._onStart()})}),this.totalTime=this.players.reduce((t,e)=>Math.max(t,e.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(t=>{const i=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(i)})}getPosition(){const t=this.players.reduce((t,e)=>null===t||e.totalTime>t.totalTime?e:t,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}const v="!"},4621:(t,e,i)=>{"use strict";i.d(e,{rt:()=>J,s1:()=>k,$s:()=>C,Qr:()=>Z,kH:()=>G,mK:()=>R,Em:()=>T,tE:()=>H,qV:()=>D,qm:()=>W,Kd:()=>F,X6:()=>B,yG:()=>U});var n=i(1511),r=i(1572),s=i(9666),o=i(6042),a=i(2041),l=i(5842),c=i(343),h=i(5057),u=i(8868),d=i(1681),p=i(9056),f=i(9861),m=i(1353),g=i(6337);function y(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}const b="cdk-describedby-message-container",v="cdk-describedby-host";let _=0;const w=new Map;let x=null,C=(()=>{class t{constructor(t){this._document=t}describe(t,e,i){if(!this._canBeDescribed(t,e))return;const n=A(e,i);"string"!=typeof e?(S(e),w.set(n,{messageElement:e,referenceCount:0})):w.has(n)||this._createMessageElement(e,i),this._isElementDescribedByMessage(t,n)||this._addMessageReference(t,n)}removeDescription(t,e,i){if(!e||!this._isElementNode(t))return;const n=A(e,i);if(this._isElementDescribedByMessage(t,n)&&this._removeMessageReference(t,n),"string"==typeof e){const t=w.get(n);t&&0===t.referenceCount&&this._deleteMessageElement(n)}x&&0===x.childNodes.length&&this._deleteMessagesContainer()}ngOnDestroy(){const t=this._document.querySelectorAll("[cdk-describedby-host]");for(let e=0;e0!=t.indexOf("cdk-describedby-message"));t.setAttribute("aria-describedby",e.join(" "))}_addMessageReference(t,e){const i=w.get(e);!function(t,e,i){const n=y(t,e);n.some(t=>t.trim()==i.trim())||(n.push(i.trim()),t.setAttribute(e,n.join(" ")))}(t,"aria-describedby",i.messageElement.id),t.setAttribute(v,""),i.referenceCount++}_removeMessageReference(t,e){const i=w.get(e);i.referenceCount--,function(t,e,i){const n=y(t,e).filter(t=>t!=i.trim());n.length?t.setAttribute(e,n.join(" ")):t.removeAttribute(e)}(t,"aria-describedby",i.messageElement.id),t.removeAttribute(v)}_isElementDescribedByMessage(t,e){const i=y(t,"aria-describedby"),n=w.get(e),r=n&&n.messageElement.id;return!!r&&-1!=i.indexOf(r)}_canBeDescribed(t,e){if(!this._isElementNode(t))return!1;if(e&&"object"==typeof e)return!0;const i=null==e?"":`${e}`.trim(),n=t.getAttribute("aria-label");return!(!i||n&&n.trim()===i)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(n.K0))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(n.K0))},token:t,providedIn:"root"}),t})();function A(t,e){return"string"==typeof t?`${e||""}/${t}`:t}function S(t){t.id||(t.id="cdk-describedby-message-"+_++)}class E{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new s.x,this._typeaheadSubscription=o.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new s.x,this.change=new s.x,t instanceof r.n_E&&t.changes.subscribe(t=>{if(this._activeItem){const e=t.toArray().indexOf(this._activeItem);e>-1&&e!==this._activeItemIndex&&(this._activeItemIndex=e)}})}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,c.b)(t=>this._pressedLetters.push(t)),(0,h.b)(t),(0,u.h)(()=>this._pressedLetters.length>0),(0,d.U)(()=>this._pressedLetters.join(""))).subscribe(t=>{const e=this._getItemsArray();for(let i=1;i!t[e]||this._allowedModifierKeys.indexOf(e)>-1);switch(e){case l.Mf:return void this.tabOut.next();case l.JH:if(this._vertical&&i){this.setNextItemActive();break}return;case l.LH:if(this._vertical&&i){this.setPreviousItemActive();break}return;case l.SV:if(this._horizontal&&i){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case l.oh:if(this._horizontal&&i){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case l.Sd:if(this._homeAndEnd&&i){this.setFirstItemActive();break}return;case l.uR:if(this._homeAndEnd&&i){this.setLastItemActive();break}return;default:return void((i||(0,l.Vb)(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=l.A&&e<=l.Z||e>=l.xE&&e<=l.aO)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(t){const e=this._getItemsArray(),i="number"==typeof t?t:e.indexOf(t),n=e[i];this._activeItem=null==n?null:n,this._activeItemIndex=i}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const n=(this._activeItemIndex+t*i+e.length)%e.length;if(!this._skipPredicateFn(e[n]))return void this.setActiveItem(n)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const i=this._getItemsArray();if(i[t]){for(;this._skipPredicateFn(i[t]);)if(!i[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof r.n_E?this._items.toArray():this._items}}class k extends E{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class T extends E{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}let M=(()=>{class t{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}isTabbable(t){if(!this._platform.isBrowser)return!1;const e=function(t){try{return t.frameElement}catch(e){return null}}((i=t).ownerDocument&&i.ownerDocument.defaultView||window);var i;if(e){if(-1===I(e))return!1;if(!this.isVisible(e))return!1}let n=t.nodeName.toLowerCase(),r=I(t);return t.hasAttribute("contenteditable")?-1!==r:"iframe"!==n&&"object"!==n&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){let e=t.nodeName.toLowerCase(),i="input"===e&&t.type;return"text"===i||"password"===i||"select"===e||"textarea"===e}(t))&&("audio"===n?!!t.hasAttribute("controls")&&-1!==r:"video"===n?-1!==r&&(null!==r||this._platform.FIREFOX||t.hasAttribute("controls")):t.tabIndex>=0)}isFocusable(t,e){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){let e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||L(t))}(t)&&!this.isDisabled(t)&&((null==e?void 0:e.ignoreVisibility)||this.isVisible(t))}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(m.t4))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(m.t4))},token:t,providedIn:"root"}),t})();function L(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function I(t){if(!L(t))return null;const e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}class O{constructor(t,e,i,n,r=!1){this._element=t,this._checker=e,this._ngZone=i,this._document=n,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,r||this.attachAnchors()}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),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(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(t)))})}focusFirstTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(t)))})}focusLastTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(t)))})}_getRegionBoundary(t){let e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);for(let i=0;i=0;i--){let t=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(t)return t}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe((0,p.q)(1)).subscribe(t)}}let D=(()=>{class t{constructor(t,e,i){this._checker=t,this._ngZone=e,this._document=i}create(t,e=!1){return new O(t,this._checker,this._ngZone,this._document,e)}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(M),r.LFG(r.R0b),r.LFG(n.K0))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(M),r.LFG(r.R0b),r.LFG(n.K0))},token:t,providedIn:"root"}),t})(),R=(()=>{class t{constructor(t,e,i){this._elementRef=t,this._focusTrapFactory=e,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(t){this.focusTrap.enabled=(0,f.Ig)(t)}get autoCapture(){return this._autoCapture}set autoCapture(t){this._autoCapture=(0,f.Ig)(t)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(t){const e=t.autoCapture;e&&!e.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,m.ht)(),this.focusTrap.focusInitialElementWhenReady()}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(D),r.Y36(n.K0))},t.\u0275dir=r.lG2({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[r.TTD]}),t})();"undefined"!=typeof Element&∈const N=new r.OlP("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),P=new r.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let F=(()=>{class t{constructor(t,e,i,n){this._ngZone=e,this._defaultOptions=n,this._document=i,this._liveElement=t||this._createLiveElement()}announce(t,...e){const i=this._defaultOptions;let n,r;return 1===e.length&&"number"==typeof e[0]?r=e[0]:[n,r]=e,this.clear(),clearTimeout(this._previousTimeout),n||(n=i&&i.politeness?i.politeness:"polite"),null==r&&i&&(r=i.duration),this._liveElement.setAttribute("aria-live",n),this._ngZone.runOutsideAngular(()=>new Promise(e=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=t,e(),"number"==typeof r&&(this._previousTimeout=setTimeout(()=>this.clear(),r))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}_createLiveElement(){const t="cdk-live-announcer-element",e=this._document.getElementsByClassName(t),i=this._document.createElement("div");for(let n=0;n{class t{constructor(t,e,i,n){this._elementRef=t,this._liveAnnouncer=e,this._contentObserver=i,this._ngZone=n,this._politeness="polite"}get politeness(){return this._politeness}set politeness(t){this._politeness="off"===t||"assertive"===t?t:"polite","off"===this._politeness?this._subscription&&(this._subscription.unsubscribe(),this._subscription=null):this._subscription||(this._subscription=this._ngZone.runOutsideAngular(()=>this._contentObserver.observe(this._elementRef).subscribe(()=>{const t=this._elementRef.nativeElement.textContent;t!==this._previousAnnouncedText&&(this._liveAnnouncer.announce(t,this._politeness),this._previousAnnouncedText=t)})))}ngOnDestroy(){this._subscription&&this._subscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(F),r.Y36(g.yq),r.Y36(r.R0b))},t.\u0275dir=r.lG2({type:t,selectors:[["","cdkAriaLive",""]],inputs:{politeness:["cdkAriaLive","politeness"]},exportAs:["cdkAriaLive"]}),t})();function B(t){return 0===t.buttons}function U(t){const e=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!(!e||-1!==e.identifier||null!=e.radiusX&&1!==e.radiusX||null!=e.radiusY&&1!==e.radiusY)}const q=new r.OlP("cdk-focus-monitor-default-options"),z=(0,m.i$)({passive:!0,capture:!0});let H=(()=>{class t{constructor(t,e,i,n){this._ngZone=t,this._platform=e,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=()=>{this._lastTouchTarget=null,this._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=t=>{if(!this._lastTouchTarget){const e=B(t)?"keyboard":"mouse";this._setOriginForCurrentEventQueue(e)}},this._documentTouchstartListener=t=>{U(t)?this._lastTouchTarget||this._setOriginForCurrentEventQueue("keyboard"):(null!=this._touchTimeoutId&&clearTimeout(this._touchTimeoutId),this._lastTouchTarget=Y(t),this._touchTimeoutId=setTimeout(()=>this._lastTouchTarget=null,650))},this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._rootNodeFocusAndBlurListener=t=>{const e=Y(t),i="focus"===t.type?this._onFocus:this._onBlur;for(let n=e;n;n=n.parentElement)i.call(this,t,n)},this._document=i,this._detectionMode=(null==n?void 0:n.detectionMode)||0}monitor(t,e=!1){const i=(0,f.fI)(t);if(!this._platform.isBrowser||1!==i.nodeType)return(0,a.of)(null);const n=(0,m.kV)(i)||this._getDocument(),r=this._elementInfo.get(i);if(r)return e&&(r.checkChildren=!0),r.subject;const o={checkChildren:e,subject:new s.x,rootNode:n};return this._elementInfo.set(i,o),this._registerGlobalListeners(o),o.subject}stopMonitoring(t){const e=(0,f.fI)(t),i=this._elementInfo.get(e);i&&(i.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(i))}focusVia(t,e,i){const n=(0,f.fI)(t);n===this._getDocument().activeElement?this._getClosestElementsInfo(n).forEach(([t,i])=>this._originChanged(t,e,i)):(this._setOriginForCurrentEventQueue(e),"function"==typeof n.focus&&n.focus(i))}ngOnDestroy(){this._elementInfo.forEach((t,e)=>this.stopMonitoring(e))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(t,e,i){i?t.classList.add(e):t.classList.remove(e)}_getFocusOrigin(t){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"}_setClasses(t,e){this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e)}_setOriginForCurrentEventQueue(t){this._ngZone.runOutsideAngular(()=>{this._origin=t,0===this._detectionMode&&(this._originTimeoutId=setTimeout(()=>this._origin=null,1))})}_wasCausedByTouch(t){const e=Y(t);return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}_onFocus(t,e){const i=this._elementInfo.get(e);i&&(i.checkChildren||e===Y(t))&&this._originChanged(e,this._getFocusOrigin(t),i)}_onBlur(t,e){const i=this._elementInfo.get(e);!i||i.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(i.subject,null))}_emitOrigin(t,e){this._ngZone.run(()=>t.next(e))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const e=t.rootNode,i=this._rootNodeFocusListenerCount.get(e)||0;i||this._ngZone.runOutsideAngular(()=>{e.addEventListener("focus",this._rootNodeFocusAndBlurListener,z),e.addEventListener("blur",this._rootNodeFocusAndBlurListener,z)}),this._rootNodeFocusListenerCount.set(e,i+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(()=>{const t=this._getDocument(),e=this._getWindow();t.addEventListener("keydown",this._documentKeydownListener,z),t.addEventListener("mousedown",this._documentMousedownListener,z),t.addEventListener("touchstart",this._documentTouchstartListener,z),e.addEventListener("focus",this._windowFocusListener)})}_removeGlobalListeners(t){const e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){const t=this._rootNodeFocusListenerCount.get(e);t>1?this._rootNodeFocusListenerCount.set(e,t-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,z),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,z),this._rootNodeFocusListenerCount.delete(e))}if(!--this._monitoredElementCount){const t=this._getDocument(),e=this._getWindow();t.removeEventListener("keydown",this._documentKeydownListener,z),t.removeEventListener("mousedown",this._documentMousedownListener,z),t.removeEventListener("touchstart",this._documentTouchstartListener,z),e.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}_originChanged(t,e,i){this._setClasses(t,e),this._emitOrigin(i.subject,e),this._lastFocusOrigin=e}_getClosestElementsInfo(t){const e=[];return this._elementInfo.forEach((i,n)=>{(n===t||i.checkChildren&&n.contains(t))&&e.push([n,i])}),e}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(r.R0b),r.LFG(m.t4),r.LFG(n.K0,8),r.LFG(q,8))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(r.R0b),r.LFG(m.t4),r.LFG(n.K0,8),r.LFG(q,8))},token:t,providedIn:"root"}),t})();function Y(t){return t.composedPath?t.composedPath()[0]:t.target}let G=(()=>{class t{constructor(t,e){this._elementRef=t,this._focusMonitor=e,this.cdkFocusChange=new r.vpe}ngAfterViewInit(){const t=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(t,1===t.nodeType&&t.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(t=>this.cdkFocusChange.emit(t))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(H))},t.\u0275dir=r.lG2({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),t})();const j="cdk-high-contrast-black-on-white",V="cdk-high-contrast-white-on-black",Q="cdk-high-contrast-active";let W=(()=>{class t{constructor(t,e){this._platform=t,this._document=e}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const e=this._document.defaultView||window,i=e&&e.getComputedStyle?e.getComputedStyle(t):null,n=(i&&i.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),n){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove(Q),t.remove(j),t.remove(V),this._hasCheckedHighContrastMode=!0;const e=this.getHighContrastMode();1===e?(t.add(Q),t.add(j)):2===e&&(t.add(Q),t.add(V))}}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(m.t4),r.LFG(n.K0))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(m.t4),r.LFG(n.K0))},token:t,providedIn:"root"}),t})(),J=(()=>{class t{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(W))},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[m.ud,g.Q8]]}),t})()},2526:(t,e,i)=>{"use strict";i.d(e,{vT:()=>a,Is:()=>o});var n=i(1572),r=i(1511);const s=new n.OlP("cdk-dir-doc",{providedIn:"root",factory:function(){return(0,n.f3M)(r.K0)}});let o=(()=>{class t{constructor(t){if(this.value="ltr",this.change=new n.vpe,t){const e=t.documentElement?t.documentElement.dir:null,i=(t.body?t.body.dir:null)||e;this.value="ltr"===i||"rtl"===i?i:"ltr"}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(s,8))},t.\u0275prov=n.Yz7({factory:function(){return new t(n.LFG(s,8))},token:t,providedIn:"root"}),t})(),a=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({}),t})()},9861:(t,e,i)=>{"use strict";i.d(e,{t6:()=>o,Eq:()=>a,Ig:()=>r,HM:()=>l,fI:()=>c,su:()=>s,du:()=>h});var n=i(1572);function r(t){return null!=t&&"false"!=`${t}`}function s(t,e=0){return o(t)?Number(t):e}function o(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function a(t){return Array.isArray(t)?t:[t]}function l(t){return null==t?"":"string"==typeof t?t:`${t}px`}function c(t){return t instanceof n.SBq?t.nativeElement:t}function h(t,e=/\s+/){const i=[];if(null!=t){const n=Array.isArray(t)?t:`${t}`.split(e);for(const t of n){const e=`${t}`.trim();e&&i.push(e)}}return i}},4230:(t,e,i)=>{"use strict";i.d(e,{P3:()=>c,o2:()=>a,Ov:()=>d,A8:()=>p,yy:()=>h,eX:()=>u,k:()=>f,Z9:()=>l});var n=i(4776),r=i(2041),s=i(9666),o=i(1572);class a{}function l(t){return t&&"function"==typeof t.connect}class c extends a{constructor(t){super(),this._data=t}connect(){return(0,n.b)(this._data)?this._data:(0,r.of)(this._data)}disconnect(){}}class h{applyChanges(t,e,i,n,r){t.forEachOperation((t,n,s)=>{let o,a;if(null==t.previousIndex){const r=i(t,n,s);o=e.createEmbeddedView(r.templateRef,r.context,r.index),a=1}else null==s?(e.remove(n),a=3):(o=e.get(n),e.move(o,s),a=2);r&&r({context:null==o?void 0:o.context,operation:a,record:t})})}detach(){}}class u{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(t,e,i,n,r){t.forEachOperation((t,s,o)=>{let a,l;null==t.previousIndex?(a=this._insertView(()=>i(t,s,o),o,e,n(t)),l=a?1:0):null==o?(this._detachAndCacheView(s,e),l=3):(a=this._moveView(s,o,e,n(t)),l=2),r&&r({context:null==a?void 0:a.context,operation:l,record:t})})}detach(){for(const t of this._viewCache)t.destroy();this._viewCache=[]}_insertView(t,e,i,n){const r=this._insertViewFromCache(e,i);if(r)return void(r.context.$implicit=n);const s=t();return i.createEmbeddedView(s.templateRef,s.context,s.index)}_detachAndCacheView(t,e){const i=e.detach(t);this._maybeCacheView(i,e)}_moveView(t,e,i,n){const r=i.get(t);return i.move(r,e),r.context.$implicit=n,r}_maybeCacheView(t,e){if(this._viewCache.lengththis._markSelected(t)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...t){this._verifyValueAssignment(t),t.forEach(t=>this._markSelected(t)),this._emitChangeEvent()}deselect(...t){this._verifyValueAssignment(t),t.forEach(t=>this._unmarkSelected(t)),this._emitChangeEvent()}toggle(t){this.isSelected(t)?this.deselect(t):this.select(t)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(t){return this._selection.has(t)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}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(t){this.isSelected(t)||(this._multiple||this._unmarkAll(),this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){}}let p=(()=>{class t{constructor(){this._listeners=[]}notify(t,e){for(let i of this._listeners)i(t,e)}listen(t){return this._listeners.push(t),()=>{this._listeners=this._listeners.filter(e=>t!==e)}}ngOnDestroy(){this._listeners=[]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=o.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})();const f=new o.OlP("_ViewRepeater")},5842:(t,e,i)=>{"use strict";i.d(e,{A:()=>b,ZH:()=>n,JH:()=>m,uR:()=>h,K5:()=>s,hY:()=>o,Sd:()=>u,oh:()=>d,aO:()=>y,VM:()=>c,Ku:()=>l,SV:()=>f,L_:()=>a,Mf:()=>r,LH:()=>p,Z:()=>v,xE:()=>g,Vb:()=>_});const n=8,r=9,s=13,o=27,a=32,l=33,c=34,h=35,u=36,d=37,p=38,f=39,m=40,g=48,y=57,b=65,v=90;function _(t,...e){return e.length?e.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}},72:(t,e,i)=>{"use strict";i.d(e,{Yg:()=>w,u3:()=>C,xu:()=>g});var n=i(1572),r=i(9861),s=i(9666),o=i(5868),a=i(5613),l=i(2391),c=i(9056),h=i(4444),u=i(5057),d=i(1681),p=i(1258),f=i(9568),m=i(1353);let g=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({}),t})();const y=new Set;let b,v=(()=>{class t{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):_}matchMedia(t){return this._platform.WEBKIT&&function(t){if(!y.has(t))try{b||(b=document.createElement("style"),b.setAttribute("type","text/css"),document.head.appendChild(b)),b.sheet&&(b.sheet.insertRule(`@media ${t} {.fx-query-test{ }}`,0),y.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(m.t4))},t.\u0275prov=n.Yz7({factory:function(){return new t(n.LFG(m.t4))},token:t,providedIn:"root"}),t})();function _(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let w=(()=>{class t{constructor(t,e){this._mediaMatcher=t,this._zone=e,this._queries=new Map,this._destroySubject=new s.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return x((0,r.Eq)(t)).some(t=>this._registerQuery(t).mql.matches)}observe(t){const e=x((0,r.Eq)(t)).map(t=>this._registerQuery(t).observable);let i=(0,o.a)(e);return i=(0,a.z)(i.pipe((0,c.q)(1)),i.pipe((0,h.T)(1),(0,u.b)(0))),i.pipe((0,d.U)(t=>{const e={matches:!1,breakpoints:{}};return t.forEach(({matches:t,query:i})=>{e.matches=e.matches||t,e.breakpoints[i]=t}),e}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const e=this._mediaMatcher.matchMedia(t),i={observable:new l.y(t=>{const i=e=>this._zone.run(()=>t.next(e));return e.addListener(i),()=>{e.removeListener(i)}}).pipe((0,p.O)(e),(0,d.U)(({matches:e})=>({query:t,matches:e})),(0,f.R)(this._destroySubject)),mql:e};return this._queries.set(t,i),i}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(v),n.LFG(n.R0b))},t.\u0275prov=n.Yz7({factory:function(){return new t(n.LFG(v),n.LFG(n.R0b))},token:t,providedIn:"root"}),t})();function x(t){return t.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}const C={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)"}},6337:(t,e,i)=>{"use strict";i.d(e,{wD:()=>h,yq:()=>c,Q8:()=>u});var n=i(9861),r=i(1572),s=i(2391),o=i(9666),a=i(5057);let l=(()=>{class t{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})(),c=(()=>{class t{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((t,e)=>this._cleanupObserver(e))}observe(t){const e=(0,n.fI)(t);return new s.y(t=>{const i=this._observeElement(e).subscribe(t);return()=>{i.unsubscribe(),this._unobserveElement(e)}})}_observeElement(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{const e=new o.x,i=this._mutationObserverFactory.create(t=>e.next(t));i&&i.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:i,stream:e,count:1})}return this._observedElements.get(t).stream}_unobserveElement(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}_cleanupObserver(t){if(this._observedElements.has(t)){const{observer:e,stream:i}=this._observedElements.get(t);e&&e.disconnect(),i.complete(),this._observedElements.delete(t)}}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(l))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(l))},token:t,providedIn:"root"}),t})(),h=(()=>{class t{constructor(t,e,i){this._contentObserver=t,this._elementRef=e,this._ngZone=i,this.event=new r.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(t){this._disabled=(0,n.Ig)(t),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=(0,n.su)(t),this._subscribe()}ngAfterContentInit(){this._currentSubscription||this.disabled||this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?t.pipe((0,a.b)(this.debounce)):t).subscribe(this.event)})}_unsubscribe(){var t;null===(t=this._currentSubscription)||void 0===t||t.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(c),r.Y36(r.SBq),r.Y36(r.R0b))},t.\u0275dir=r.lG2({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),u=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:[l]}),t})()},369:(t,e,i)=>{"use strict";i.d(e,{pI:()=>J,xu:()=>W,_G:()=>F,aV:()=>j,X_:()=>E,Xj:()=>D,U8:()=>K});var n=i(4894),r=i(1572),s=i(1353),o=i(2526),a=i(1511),l=i(9861),c=i(6899),h=i(9666),u=i(6042),d=i(5446),p=i(3386),f=i(4659),m=i(9056),g=i(9568),y=i(5842);const b=(0,s.Mq)();class v{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=(0,l.HM)(-this._previousScrollPosition.left),t.style.top=(0,l.HM)(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,e=t.style,i=this._document.body.style,n=e.scrollBehavior||"",r=i.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),b&&(e.scrollBehavior=i.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),b&&(e.scrollBehavior=n,i.scrollBehavior=r)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width}}class _{constructor(t,e,i,n){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=i,this._config=n,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class w{enable(){}disable(){}attach(){}}function x(t,e){return e.some(e=>t.bottome.bottom||t.righte.right)}function C(t,e){return e.some(e=>t.tope.bottom||t.lefte.right)}class A{constructor(t,e,i,n){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this._config=n,this._scrollSubscription=null}attach(t){this._overlayRef=t}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 t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:i}=this._viewportRuler.getViewportSize();x(t,[{width:e,height:i,bottom:i,right:e,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 S=(()=>{class t{constructor(t,e,i,n){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this.noop=()=>new w,this.close=t=>new _(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new v(this._viewportRuler,this._document),this.reposition=t=>new A(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=n}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(n.mF),r.LFG(n.rL),r.LFG(r.R0b),r.LFG(a.K0))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(n.mF),r.LFG(n.rL),r.LFG(r.R0b),r.LFG(a.K0))},token:t,providedIn:"root"}),t})();class E{constructor(t){if(this.scrollStrategy=new w,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const i of e)void 0!==t[i]&&(this[i]=t[i])}}}class k{constructor(t,e,i,n,r){this.offsetX=i,this.offsetY=n,this.panelClass=r,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class T{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let M=(()=>{class t{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this.detach()}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(a.K0))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(a.K0))},token:t,providedIn:"root"}),t})(),L=(()=>{class t extends M{constructor(t){super(t),this._keydownListener=t=>{const e=this._attachedOverlays;for(let i=e.length-1;i>-1;i--)if(e[i]._keydownEvents.observers.length>0){e[i]._keydownEvents.next(t);break}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(a.K0))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(a.K0))},token:t,providedIn:"root"}),t})(),I=(()=>{class t extends M{constructor(t,e){super(t),this._platform=e,this._cursorStyleIsSet=!1,this._clickListener=t=>{const e=t.composedPath?t.composedPath()[0]:t.target,i=this._attachedOverlays.slice();for(let n=i.length-1;n>-1;n--){const r=i[n];if(!(r._outsidePointerEvents.observers.length<1)&&r.hasAttached()){if(r.overlayElement.contains(e))break;r._outsidePointerEvents.next(t)}}}}add(t){if(super.add(t),!this._isAttached){const t=this._document.body;t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const t=this._document.body;t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(a.K0),r.LFG(s.t4))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(a.K0),r.LFG(s.t4))},token:t,providedIn:"root"}),t})();const O="undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha;let D=(()=>{class t{constructor(t,e){this._platform=e,this._document=t}ngOnDestroy(){const t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t="cdk-overlay-container";if(this._platform.isBrowser||O){const e=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let t=0;tthis._backdropClick.next(t),this._keydownEvents=new h.x,this._outsidePointerEvents=new h.x,n.scrollStrategy&&(this._scrollStrategy=n.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=n.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){let e=this._portalOutlet.attach(t);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,m.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),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),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),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&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,t&&this._detachments.next(),this._detachments.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(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=(0,l.HM)(this._config.width),t.height=(0,l.HM)(this._config.height),t.minWidth=(0,l.HM)(this._config.minWidth),t.minHeight=(0,l.HM)(this._config.minHeight),t.maxWidth=(0,l.HM)(this._config.maxWidth),t.maxHeight=(0,l.HM)(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){const t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),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),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let t,e=this._backdropElement;if(!e)return;let i=()=>{e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",i),e.parentNode&&e.parentNode.removeChild(e)),this._backdropElement==e&&(this._backdropElement=null),this._config.backdropClass&&this._toggleClasses(e,this._config.backdropClass,!1),clearTimeout(t)};e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",i)}),e.style.pointerEvents="none",t=this._ngZone.runOutsideAngular(()=>setTimeout(i,500))}_toggleClasses(t,e,i){const n=t.classList;(0,l.Eq)(e).forEach(t=>{t&&(i?n.add(t):n.remove(t))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe((0,g.R)((0,d.T)(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._previousHostParent.removeChild(this._host)),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}}const N="cdk-overlay-connected-position-bounding-box",P=/([A-Za-z%]+)$/;class F{constructor(t,e,i,n,r){this._viewportRuler=e,this._document=i,this._platform=n,this._overlayContainer=r,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new h.x,this._resizeSubscription=u.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){this._validatePositions(),t.hostElement.classList.add(N),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.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();const t=this._originRect,e=this._overlayRect,i=this._viewportRect,n=[];let r;for(let s of this._preferredPositions){let o=this._getOriginPoint(t,s),a=this._getOverlayPoint(o,e,s),l=this._getOverlayFit(a,e,i,s);if(l.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(s,o);this._canFitWithFlexibleDimensions(l,a,i)?n.push({position:s,origin:o,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(o,s)}):(!r||r.overlayFit.visibleAreae&&(e=n,t=i)}return this._isPushed=!1,void this._applyPosition(t.position,t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(r.position,r.originPoint);this._applyPosition(r.position,r.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Z(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(N),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e){let i,n;if("center"==e.originX)i=t.left+t.width/2;else{const n=this._isRtl()?t.right:t.left,r=this._isRtl()?t.left:t.right;i="start"==e.originX?n:r}return n="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:i,y:n}}_getOverlayPoint(t,e,i){let n,r;return n="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,r="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:t.x+n,y:t.y+r}}_getOverlayFit(t,e,i,n){const r=U(e);let{x:s,y:o}=t,a=this._getOffset(n,"x"),l=this._getOffset(n,"y");a&&(s+=a),l&&(o+=l);let c=0-o,h=o+r.height-i.height,u=this._subtractOverflows(r.width,0-s,s+r.width-i.width),d=this._subtractOverflows(r.height,c,h),p=u*d;return{visibleArea:p,isCompletelyWithinViewport:r.width*r.height===p,fitsInViewportVertically:d===r.height,fitsInViewportHorizontally:u==r.width}}_canFitWithFlexibleDimensions(t,e,i){if(this._hasFlexibleDimensions){const n=i.bottom-e.y,r=i.right-e.x,s=B(this._overlayRef.getConfig().minHeight),o=B(this._overlayRef.getConfig().minWidth),a=t.fitsInViewportHorizontally||null!=o&&o<=r;return(t.fitsInViewportVertically||null!=s&&s<=n)&&a}return!1}_pushOverlayOnScreen(t,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const n=U(e),r=this._viewportRect,s=Math.max(t.x+n.width-r.width,0),o=Math.max(t.y+n.height-r.height,0),a=Math.max(r.top-i.top-t.y,0),l=Math.max(r.left-i.left-t.x,0);let c=0,h=0;return c=n.width<=r.width?l||-s:t.xn&&!this._isInitialRender&&!this._growAfterOpen&&(s=t.y-n/2)}if("end"===e.overlayX&&!n||"start"===e.overlayX&&n)c=i.width-t.x+this._viewportMargin,a=t.x-this._viewportMargin;else if("start"===e.overlayX&&!n||"end"===e.overlayX&&n)l=t.x,a=i.right-t.x;else{const e=Math.min(i.right-t.x+i.left,t.x),n=this._lastBoundingBoxSize.width;a=2*e,l=t.x-e,a>n&&!this._isInitialRender&&!this._growAfterOpen&&(l=t.x-n/2)}return{top:s,left:l,bottom:o,right:c,width:a,height:r}}_setBoundingBoxStyles(t,e){const i=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const n={};if(this._hasExactPosition())n.top=n.left="0",n.bottom=n.right=n.maxHeight=n.maxWidth="",n.width=n.height="100%";else{const t=this._overlayRef.getConfig().maxHeight,r=this._overlayRef.getConfig().maxWidth;n.height=(0,l.HM)(i.height),n.top=(0,l.HM)(i.top),n.bottom=(0,l.HM)(i.bottom),n.width=(0,l.HM)(i.width),n.left=(0,l.HM)(i.left),n.right=(0,l.HM)(i.right),n.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",n.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",t&&(n.maxHeight=(0,l.HM)(t)),r&&(n.maxWidth=(0,l.HM)(r))}this._lastBoundingBoxSize=i,Z(this._boundingBox.style,n)}_resetBoundingBoxStyles(){Z(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Z(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const i={},n=this._hasExactPosition(),r=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(n){const n=this._viewportRuler.getViewportScrollPosition();Z(i,this._getExactOverlayY(e,t,n)),Z(i,this._getExactOverlayX(e,t,n))}else i.position="static";let o="",a=this._getOffset(e,"x"),c=this._getOffset(e,"y");a&&(o+=`translateX(${a}px) `),c&&(o+=`translateY(${c}px)`),i.transform=o.trim(),s.maxHeight&&(n?i.maxHeight=(0,l.HM)(s.maxHeight):r&&(i.maxHeight="")),s.maxWidth&&(n?i.maxWidth=(0,l.HM)(s.maxWidth):r&&(i.maxWidth="")),Z(this._pane.style,i)}_getExactOverlayY(t,e,i){let n={top:"",bottom:""},r=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,i));let s=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return r.y-=s,"bottom"===t.overlayY?n.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":n.top=(0,l.HM)(r.y),n}_getExactOverlayX(t,e,i){let n,r={left:"",right:""},s=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i)),n=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===n?r.right=this._document.documentElement.clientWidth-(s.x+this._overlayRect.width)+"px":r.left=(0,l.HM)(s.x),r}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(t=>t.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:C(t,i),isOriginOutsideView:x(t,i),isOverlayClipped:C(e,i),isOverlayOutsideView:x(e,i)}}_subtractOverflows(t,...e){return e.reduce((t,e)=>t-Math.max(e,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+t-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&(0,l.Eq)(t).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof r.SBq)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,i=t.height||0;return{top:t.y,bottom:t.y+i,left:t.x,right:t.x+e,height:i,width:e}}}function Z(t,e){for(let i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function B(t){if("number"!=typeof t&&null!=t){const[e,i]=t.split(P);return i&&"px"!==i?null:parseFloat(e)}return t||null}function U(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}class q{constructor(t,e,i,n,r,s,o){this._preferredPositions=[],this._positionStrategy=new F(i,n,r,s,o).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,e),this.onPositionChange=this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(t){this._overlayRef=t,this._positionStrategy.attach(t),this._direction&&(t.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(t){this._positionStrategy.withScrollableContainers(t)}withFallbackPosition(t,e,i,n){const r=new k(t,e,i,n);return this._preferredPositions.push(r),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(t){return this._overlayRef?this._overlayRef.setDirection(t):this._direction=t,this}withOffsetX(t){return this._positionStrategy.withDefaultOffsetX(t),this}withOffsetY(t){return this._positionStrategy.withDefaultOffsetY(t),this}withLockedPosition(t){return this._positionStrategy.withLockedPosition(t),this}withPositions(t){return this._preferredPositions=t.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(t){return this._positionStrategy.setOrigin(t),this}}const z="cdk-global-overlay-wrapper";class H{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(z),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._justifyContent="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:n,height:r,maxWidth:s,maxHeight:o}=i,a=!("100%"!==n&&"100vw"!==n||s&&"100%"!==s&&"100vw"!==s),l=!("100%"!==r&&"100vh"!==r||o&&"100%"!==o&&"100vh"!==o);t.position=this._cssPosition,t.marginLeft=a?"0":this._leftOffset,t.marginTop=l?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,a?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=l?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(z),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let Y=(()=>{class t{constructor(t,e,i,n){this._viewportRuler=t,this._document=e,this._platform=i,this._overlayContainer=n}global(){return new H}connectedTo(t,e,i){return new q(e,i,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new F(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(n.rL),r.LFG(a.K0),r.LFG(s.t4),r.LFG(D))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(n.rL),r.LFG(a.K0),r.LFG(s.t4),r.LFG(D))},token:t,providedIn:"root"}),t})(),G=0,j=(()=>{class t{constructor(t,e,i,n,r,s,o,a,l,c,h){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=i,this._positionBuilder=n,this._keyboardDispatcher=r,this._injector=s,this._ngZone=o,this._document=a,this._directionality=l,this._location=c,this._outsideClickDispatcher=h}create(t){const e=this._createHostElement(),i=this._createPaneElement(e),n=this._createPortalOutlet(i),r=new E(t);return r.direction=r.direction||this._directionality.value,new R(n,e,i,r,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(t){const e=this._document.createElement("div");return e.id="cdk-overlay-"+G++,e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(r.z2F)),new c.u0(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(S),r.LFG(D),r.LFG(r._Vd),r.LFG(Y),r.LFG(L),r.LFG(r.zs3),r.LFG(r.R0b),r.LFG(a.K0),r.LFG(o.Is),r.LFG(a.Ye),r.LFG(I))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})();const V=[{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"}],Q=new r.OlP("cdk-connected-overlay-scroll-strategy");let W=(()=>{class t{constructor(t){this.elementRef=t}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq))},t.\u0275dir=r.lG2({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),t})(),J=(()=>{class t{constructor(t,e,i,n,s){this._overlay=t,this._dir=s,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=u.w0.EMPTY,this._attachSubscription=u.w0.EMPTY,this._detachSubscription=u.w0.EMPTY,this._positionSubscription=u.w0.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new r.vpe,this.positionChange=new r.vpe,this.attach=new r.vpe,this.detach=new r.vpe,this.overlayKeydown=new r.vpe,this.overlayOutsideClick=new r.vpe,this._templatePortal=new c.UE(e,i),this._scrollStrategyFactory=n,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=(0,l.Ig)(t)}get lockPosition(){return this._lockPosition}set lockPosition(t){this._lockPosition=(0,l.Ig)(t)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(t){this._flexibleDimensions=(0,l.Ig)(t)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(t){this._growAfterOpen=(0,l.Ig)(t)}get push(){return this._push}set push(t){this._push=(0,l.Ig)(t)}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(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),t.origin&&this.open&&this._position.apply()),t.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){this.positions&&this.positions.length||(this.positions=V);const t=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=t.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=t.detachments().subscribe(()=>this.detach.emit()),t.keydownEvents().subscribe(t=>{this.overlayKeydown.next(t),t.keyCode!==y.hY||this.disableClose||(0,y.Vb)(t)||(t.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(t=>{this.overlayOutsideClick.next(t)})}_buildConfig(){const t=this._position=this.positionStrategy||this._createPositionStrategy(),e=new E({direction:this._dir,positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(e.width=this.width),(this.height||0===this.height)&&(e.height=this.height),(this.minWidth||0===this.minWidth)&&(e.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(e.minHeight=this.minHeight),this.backdropClass&&(e.backdropClass=this.backdropClass),this.panelClass&&(e.panelClass=this.panelClass),e}_updatePositionStrategy(t){const e=this.positions.map(t=>({originX:t.originX,originY:t.originY,overlayX:t.overlayX,overlayY:t.overlayY,offsetX:t.offsetX||this.offsetX,offsetY:t.offsetY||this.offsetY,panelClass:t.panelClass||void 0}));return t.setOrigin(this.origin.elementRef).withPositions(e).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const t=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(t),t}_attachOverlay(){var t,e;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(t=>{this.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe((t=()=>this.positionChange.observers.length>0,void 0===e&&(e=!1),(0,p.e)(function(i,n){i.subscribe(new f.Q(n,function(i){var r=t();(r||e)&&n.next(i),!r&&n.complete()}))}))).subscribe(t=>{this.positionChange.emit(t),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(j),r.Y36(r.Rgc),r.Y36(r.s_b),r.Y36(Q),r.Y36(o.Is,8))},t.\u0275dir=r.lG2({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[r.TTD]}),t})();const X={provide:Q,deps:[j],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let K=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:[j,X],imports:[[o.vT,c.eL,n.Cl],n.Cl]}),t})()},1353:(t,e,i)=>{"use strict";i.d(e,{t4:()=>a,ud:()=>l,ht:()=>v,kV:()=>b,_i:()=>y,qK:()=>h,i$:()=>m,Mq:()=>g});var n=i(1572),r=i(1511);let s;try{s="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(_){s=!1}let o,a=(()=>{class t{constructor(t){this._platformId=t,this.isBrowser=this._platformId?(0,r.NF)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!s)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(n.Lbi))},t.\u0275prov=n.Yz7({factory:function(){return new t(n.LFG(n.Lbi))},token:t,providedIn:"root"}),t})(),l=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({}),t})();const c=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function h(){if(o)return o;if("object"!=typeof document||!document)return o=new Set(c),o;let t=document.createElement("input");return o=new Set(c.filter(e=>(t.setAttribute("type",e),t.type===e))),o}let u,d,p,f;function m(t){return function(){if(null==u&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>u=!0}))}finally{u=u||!1}return u}()?t:!!t.capture}function g(){if(null==p){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return p=!1,p;if("scrollBehavior"in document.documentElement.style)p=!0;else{const t=Element.prototype.scrollTo;p=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return p}function y(){if("object"!=typeof document||!document)return 0;if(null==d){const t=document.createElement("div"),e=t.style;t.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";const i=document.createElement("div"),n=i.style;n.width="2px",n.height="1px",t.appendChild(i),document.body.appendChild(t),d=0,0===t.scrollLeft&&(t.scrollLeft=1,d=0===t.scrollLeft?1:2),t.parentNode.removeChild(t)}return d}function b(t){if(function(){if(null==f){const t="undefined"!=typeof document?document.head:null;f=!(!t||!t.createShadowRoot&&!t.attachShadow)}return f}()){const e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function v(){let t="undefined"!=typeof document&&document?document.activeElement:null;for(;t&&t.shadowRoot;){const e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}},6899:(t,e,i)=>{"use strict";i.d(e,{en:()=>c,ig:()=>d,Pl:()=>p,C5:()=>o,F0:()=>u,u0:()=>h,eL:()=>f,UE:()=>a});var n=i(1572),r=i(1511);class s{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class o extends s{constructor(t,e,i,n){super(),this.component=t,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=n}}class a extends s{constructor(t,e,i){super(),this.templateRef=t,this.viewContainerRef=e,this.context=i}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class l extends s{constructor(t){super(),this.element=t instanceof n.SBq?t.nativeElement:t}}class c{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof o?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof a?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof l?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class h extends c{constructor(t,e,i,n,r){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=n,this.attachDomPortal=t=>{const e=t.element,i=this._document.createComment("dom-portal");e.parentNode.insertBefore(i,e),this.outletElement.appendChild(e),this._attachedPortal=t,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(e,i)})},this._document=r}attachComponentPortal(t){const e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let i;return t.viewContainerRef?(i=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>i.destroy())):(i=e.create(t.injector||this._defaultInjector),this._appRef.attachView(i.hostView),this.setDisposeFn(()=>{this._appRef.detachView(i.hostView),i.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(i)),this._attachedPortal=t,i}attachTemplatePortal(t){let e=t.viewContainerRef,i=e.createEmbeddedView(t.templateRef,t.context);return i.rootNodes.forEach(t=>this.outletElement.appendChild(t)),i.detectChanges(),this.setDisposeFn(()=>{let t=e.indexOf(i);-1!==t&&e.remove(t)}),this._attachedPortal=t,i}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}class u extends h{}let d=(()=>{class t extends a{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.Rgc),n.Y36(n.s_b))},t.\u0275dir=n.lG2({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[n.qOj]}),t})(),p=(()=>{class t extends c{constructor(t,e,i){super(),this._componentFactoryResolver=t,this._viewContainerRef=e,this._isInitialized=!1,this.attached=new n.vpe,this.attachDomPortal=t=>{const e=t.element,i=this._document.createComment("dom-portal");t.setAttachedHost(this),e.parentNode.insertBefore(i,e),this._getRootNode().appendChild(e),this._attachedPortal=t,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(e,i)})},this._document=i}get portal(){return this._attachedPortal}set portal(t){(!this.hasAttached()||t||this._isInitialized)&&(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(t){t.setAttachedHost(this);const e=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),n=e.createComponent(i,e.length,t.injector||e.injector);return e!==this._viewContainerRef&&this._getRootNode().appendChild(n.hostView.rootNodes[0]),super.setDisposeFn(()=>n.destroy()),this._attachedPortal=t,this._attachedRef=n,this.attached.emit(n),n}attachTemplatePortal(t){t.setAttachedHost(this);const e=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=e,this.attached.emit(e),e}_getRootNode(){const t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n._Vd),n.Y36(n.s_b),n.Y36(r.K0))},t.\u0275dir=n.lG2({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[n.qOj]}),t})(),f=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({}),t})()},4894:(t,e,i)=>{"use strict";i.d(e,{PQ:()=>w,ZD:()=>C,mF:()=>_,Cl:()=>A,rL:()=>x});var n=i(9861),r=i(1572),s=i(9162),o=i(6551),a=i(6042),l={schedule:function(t){var e=requestAnimationFrame,i=cancelAnimationFrame,n=l.delegate;n&&(e=n.requestAnimationFrame,i=n.cancelAnimationFrame);var r=e(function(e){i=void 0,t(e)});return new a.w0(function(){return null==i?void 0:i(r)})},requestAnimationFrame:function(){for(var t=[],e=0;e0?t.prototype.requestAsyncId.call(this,e,i,n):(e.actions.push(this),e._scheduled||(e._scheduled=l.requestAnimationFrame(function(){return e.flush(void 0)})))},e.prototype.recycleAsyncId=function(e,i,n){if(void 0===n&&(n=0),null!=n&&n>0||null==n&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,i,n);0===e.actions.length&&(l.cancelAnimationFrame(i),e._scheduled=void 0)},e}(o.o),h=(new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,s.ZT)(e,t),e.prototype.flush=function(t){this._active=!0,this._scheduled=void 0;var e,i=this.actions,n=-1;t=t||i.shift();var r=i.length;do{if(e=t.execute(t.state,t.delay))break}while(++n{class t{constructor(t,e,i){this._ngZone=t,this._platform=e,this._scrolled=new h.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=i}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new d.y(e=>{this._globalSubscription||this._addGlobalListener();const i=t>0?this._scrolled.pipe((0,f.e)(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{i.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,u.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,e)=>this.deregister(e)),this._scrolled.complete()}ancestorScrolled(t,e){const i=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe((0,m.h)(t=>!t||i.indexOf(t)>-1))}getAncestorScrollContainers(t){const e=[];return this.scrollContainers.forEach((i,n)=>{this._scrollableContainsElement(n,t)&&e.push(n)}),e}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,e){let i=(0,n.fI)(e),r=t.getElementRef().nativeElement;do{if(i==r)return!0}while(i=i.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const t=this._getWindow();return(0,p.R)(t.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(r.R0b),r.LFG(y.t4),r.LFG(b.K0,8))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(r.R0b),r.LFG(y.t4),r.LFG(b.K0,8))},token:t,providedIn:"root"}),t})(),w=(()=>{class t{constructor(t,e,i,n){this.elementRef=t,this.scrollDispatcher=e,this.ngZone=i,this.dir=n,this._destroyed=new h.x,this._elementScrolled=new d.y(t=>this.ngZone.runOutsideAngular(()=>(0,p.R)(this.elementRef.nativeElement,"scroll").pipe((0,g.R)(this._destroyed)).subscribe(t)))}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(t){const e=this.elementRef.nativeElement,i=this.dir&&"rtl"==this.dir.value;null==t.left&&(t.left=i?t.end:t.start),null==t.right&&(t.right=i?t.start:t.end),null!=t.bottom&&(t.top=e.scrollHeight-e.clientHeight-t.bottom),i&&0!=(0,y._i)()?(null!=t.left&&(t.right=e.scrollWidth-e.clientWidth-t.left),2==(0,y._i)()?t.left=t.right:1==(0,y._i)()&&(t.left=t.right?-t.right:t.right)):null!=t.right&&(t.left=e.scrollWidth-e.clientWidth-t.right),this._applyScrollToOptions(t)}_applyScrollToOptions(t){const e=this.elementRef.nativeElement;(0,y.Mq)()?e.scrollTo(t):(null!=t.top&&(e.scrollTop=t.top),null!=t.left&&(e.scrollLeft=t.left))}measureScrollOffset(t){const e="left",i="right",n=this.elementRef.nativeElement;if("top"==t)return n.scrollTop;if("bottom"==t)return n.scrollHeight-n.clientHeight-n.scrollTop;const r=this.dir&&"rtl"==this.dir.value;return"start"==t?t=r?i:e:"end"==t&&(t=r?e:i),r&&2==(0,y._i)()?t==e?n.scrollWidth-n.clientWidth-n.scrollLeft:n.scrollLeft:r&&1==(0,y._i)()?t==e?n.scrollLeft+n.scrollWidth-n.clientWidth:-n.scrollLeft:t==e?n.scrollLeft:n.scrollWidth-n.clientWidth-n.scrollLeft}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(_),r.Y36(r.R0b),r.Y36(v.Is,8))},t.\u0275dir=r.lG2({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),t})(),x=(()=>{class t{constructor(t,e,i){this._platform=t,this._change=new h.x,this._changeListener=t=>{this._change.next(t)},this._document=i,e.runOutsideAngular(()=>{if(t.isBrowser){const t=this._getWindow();t.addEventListener("resize",this._changeListener),t.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._updateViewportSize())})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:e,height:i}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+i,right:t.left+e,height:i,width:e}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._document,e=this._getWindow(),i=t.documentElement,n=i.getBoundingClientRect();return{top:-n.top||t.body.scrollTop||e.scrollY||i.scrollTop||0,left:-n.left||t.body.scrollLeft||e.scrollX||i.scrollLeft||0}}change(t=20){return t>0?this._change.pipe((0,f.e)(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(y.t4),r.LFG(r.R0b),r.LFG(b.K0,8))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(y.t4),r.LFG(r.R0b),r.LFG(b.K0,8))},token:t,providedIn:"root"}),t})(),C=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({}),t})(),A=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[v.vT,y.ud,C],v.vT,C]}),t})()},8544:(t,e,i)=>{"use strict";i.d(e,{be:()=>x,KL:()=>m,u6:()=>g,B8:()=>C,U5:()=>E,st:()=>A,po:()=>S,gx:()=>w});var n=i(4621),r=i(2526),s=i(9861),o=i(5842),a=i(1511),l=i(1572),c=i(9666),h=i(2041),u=i(1258),d=i(9568);function p(t,e){1&t&&l.Hsn(0)}const f=["*"];let m=(()=>{class t{constructor(t){this._elementRef=t}focus(){this._elementRef.nativeElement.focus()}}return t.\u0275fac=function(e){return new(e||t)(l.Y36(l.SBq))},t.\u0275dir=l.lG2({type:t,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),t})(),g=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(l.Y36(l.Rgc))},t.\u0275dir=l.lG2({type:t,selectors:[["","cdkStepLabel",""]]}),t})(),y=0;const b="edit",v="done",_="error",w=new l.OlP("STEPPER_GLOBAL_OPTIONS");let x=(()=>{class t{constructor(t,e){this._stepper=t,this.interacted=!1,this.interactedStream=new l.vpe,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=e||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType,this._showError=!!this._stepperOptions.showError}get editable(){return this._editable}set editable(t){this._editable=(0,s.Ig)(t)}get optional(){return this._optional}set optional(t){this._optional=(0,s.Ig)(t)}get completed(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride}set completed(t){this._completedOverride=(0,s.Ig)(t)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return null==this._customError?this._getDefaultError():this._customError}set hasError(t){this._customError=(0,s.Ig)(t)}_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}select(){this._stepper.selected=this}reset(){this.interacted=!1,null!=this._completedOverride&&(this._completedOverride=!1),null!=this._customError&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}}return t.\u0275fac=function(e){return new(e||t)(l.Y36((0,l.Gpc)(()=>C)),l.Y36(w,8))},t.\u0275cmp=l.Xpm({type:t,selectors:[["cdk-step"]],contentQueries:function(t,e,i){if(1&t&&l.Suo(i,g,5),2&t){let t;l.iGM(t=l.CRH())&&(e.stepLabel=t.first)}},viewQuery:function(t,e){if(1&t&&l.Gf(l.Rgc,7),2&t){let t;l.iGM(t=l.CRH())&&(e.content=t.first)}},inputs:{editable:"editable",optional:"optional",completed:"completed",hasError:"hasError",stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state"},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[l.TTD],ngContentSelectors:f,decls:1,vars:0,template:function(t,e){1&t&&(l.F$t(),l.YNc(0,p,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),t})(),C=(()=>{class t{constructor(t,e,i,n){this._dir=t,this._changeDetectorRef=e,this._elementRef=i,this._destroyed=new c.x,this.steps=new l.n_E,this._linear=!1,this._selectedIndex=0,this.selectionChange=new l.vpe,this._orientation="horizontal",this._groupId=y++,this._document=n}get linear(){return this._linear}set linear(t){this._linear=(0,s.Ig)(t)}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){var e;const i=(0,s.su)(t);this.steps&&this._steps?(this._isValidIndex(t),null===(e=this.selected)||void 0===e||e._markAsInteracted(),this._selectedIndex!==i&&!this._anyControlsInvalidOrPending(i)&&(i>=this._selectedIndex||this.steps.toArray()[i].editable)&&this._updateSelectedItemIndex(t)):this._selectedIndex=i}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(t){this.selectedIndex=t&&this.steps?this.steps.toArray().indexOf(t):-1}get orientation(){return this._orientation}set orientation(t){this._orientation=t,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===t)}ngAfterContentInit(){this._steps.changes.pipe((0,u.O)(this._steps),(0,d.R)(this._destroyed)).subscribe(t=>{this.steps.reset(t.filter(t=>t._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._keyManager=new n.Em(this._stepHeader).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,h.of)()).pipe((0,u.O)(this._layoutDirection()),(0,d.R)(this._destroyed)).subscribe(t=>this._keyManager.withHorizontalOrientation(t)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0)}ngOnDestroy(){this.steps.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(t=>t.reset()),this._stateChanged()}_getStepLabelId(t){return`cdk-step-label-${this._groupId}-${t}`}_getStepContentId(t){return`cdk-step-content-${this._groupId}-${t}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(t){const e=t-this._selectedIndex;return e<0?"rtl"===this._layoutDirection()?"next":"previous":e>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(t,e="number"){const i=this.steps.toArray()[t],n=this._isCurrentStep(t);return i._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(i,n):this._getGuidelineLogic(i,n,e)}_getDefaultIndicatorLogic(t,e){return t._showError&&t.hasError&&!e?_:!t.completed||e?"number":t.editable?b:v}_getGuidelineLogic(t,e,i="number"){return t._showError&&t.hasError&&!e?_:t.completed&&!e?v:t.completed&&e?i:t.editable&&e?b:i}_isCurrentStep(t){return this._selectedIndex===t}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(t){const e=this.steps.toArray();this.selectionChange.emit({selectedIndex:t,previouslySelectedIndex:this._selectedIndex,selectedStep:e[t],previouslySelectedStep:e[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(t):this._keyManager.updateActiveItem(t),this._selectedIndex=t,this._stateChanged()}_onKeydown(t){const e=(0,o.Vb)(t),i=t.keyCode,n=this._keyManager;null==n.activeItemIndex||e||i!==o.L_&&i!==o.K5?n.onKeydown(t):(this.selectedIndex=n.activeItemIndex,t.preventDefault())}_anyControlsInvalidOrPending(t){return!!(this._linear&&t>=0)&&this.steps.toArray().slice(0,t).some(t=>{const e=t.stepControl;return(e?e.invalid||e.pending||!t.interacted:!t.completed)&&!t.optional&&!t._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){const t=this._elementRef.nativeElement,e=this._document.activeElement;return t===e||t.contains(e)}_isValidIndex(t){return t>-1&&(!this.steps||t{class t{constructor(t){this._stepper=t,this.type="submit"}_handleClick(){this._stepper.next()}}return t.\u0275fac=function(e){return new(e||t)(l.Y36(C))},t.\u0275dir=l.lG2({type:t,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(t,e){1&t&&l.NdJ("click",function(){return e._handleClick()}),2&t&&l.Ikx("type",e.type)},inputs:{type:"type"}}),t})(),S=(()=>{class t{constructor(t){this._stepper=t,this.type="button"}_handleClick(){this._stepper.previous()}}return t.\u0275fac=function(e){return new(e||t)(l.Y36(C))},t.\u0275dir=l.lG2({type:t,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(t,e){1&t&&l.NdJ("click",function(){return e._handleClick()}),2&t&&l.Ikx("type",e.type)},inputs:{type:"type"}}),t})(),E=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=l.oAB({type:t}),t.\u0275inj=l.cJS({imports:[[r.vT]]}),t})()},1709:(t,e,i)=>{"use strict";i.d(e,{HI:()=>m,Xx:()=>x,_0:()=>v,nZ:()=>E,Hs:()=>_,rO:()=>b,cu:()=>g,XJ:()=>A,Ud:()=>S,VY:()=>f});var n=i(4230),r=i(4776),s=i(9666),o=i(7425),a=i(2041),l=i(9056),c=i(8868),h=i(9568),u=i(1572),d=i(9861),p=i(2526);class f extends class{constructor(){this.expansionModel=new n.Ov(!0)}toggle(t){this.expansionModel.toggle(this._trackByValue(t))}expand(t){this.expansionModel.select(this._trackByValue(t))}collapse(t){this.expansionModel.deselect(this._trackByValue(t))}isExpanded(t){return this.expansionModel.isSelected(this._trackByValue(t))}toggleDescendants(t){this.expansionModel.isSelected(this._trackByValue(t))?this.collapseDescendants(t):this.expandDescendants(t)}collapseAll(){this.expansionModel.clear()}expandDescendants(t){let e=[t];e.push(...this.getDescendants(t)),this.expansionModel.select(...e.map(t=>this._trackByValue(t)))}collapseDescendants(t){let e=[t];e.push(...this.getDescendants(t)),this.expansionModel.deselect(...e.map(t=>this._trackByValue(t)))}_trackByValue(t){return this.trackBy?this.trackBy(t):t}}{constructor(t,e){super(),this.getChildren=t,this.options=e,this.options&&(this.trackBy=this.options.trackBy)}expandAll(){this.expansionModel.clear();const t=this.dataNodes.reduce((t,e)=>[...t,...this.getDescendants(e),e],[]);this.expansionModel.select(...t.map(t=>this._trackByValue(t)))}getDescendants(t){const e=[];return this._getDescendants(e,t),e.splice(1)}_getDescendants(t,e){t.push(e);const i=this.getChildren(e);Array.isArray(i)?i.forEach(e=>this._getDescendants(t,e)):(0,r.b)(i)&&i.pipe((0,l.q)(1),(0,c.h)(Boolean)).subscribe(e=>{for(const i of e)this._getDescendants(t,i)})}}const m=new u.OlP("CDK_TREE_NODE_OUTLET_NODE");let g=(()=>{class t{constructor(t,e){this.viewContainer=t,this._node=e}}return t.\u0275fac=function(e){return new(e||t)(u.Y36(u.s_b),u.Y36(m,8))},t.\u0275dir=u.lG2({type:t,selectors:[["","cdkTreeNodeOutlet",""]]}),t})();class y{constructor(t){this.$implicit=t}}let b=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(u.Y36(u.Rgc))},t.\u0275dir=u.lG2({type:t,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:["cdkTreeNodeDefWhen","when"]}}),t})(),v=(()=>{class t{constructor(t,e){this._differs=t,this._changeDetectorRef=e,this._onDestroy=new s.x,this._levels=new Map,this.viewChange=new o.X({start:0,end:Number.MAX_VALUE})}get dataSource(){return this._dataSource}set dataSource(t){this._dataSource!==t&&this._switchDataSource(t)}ngOnInit(){this._dataDiffer=this._differs.find([]).create(this.trackBy)}ngOnDestroy(){this._nodeOutlet.viewContainer.clear(),this.viewChange.complete(),this._onDestroy.next(),this._onDestroy.complete(),this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null)}ngAfterContentChecked(){const t=this._nodeDefs.filter(t=>!t.when);this._defaultNodeDef=t[0],this.dataSource&&this._nodeDefs&&!this._dataSubscription&&this._observeRenderChanges()}_switchDataSource(t){this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),t||this._nodeOutlet.viewContainer.clear(),this._dataSource=t,this._nodeDefs&&this._observeRenderChanges()}_observeRenderChanges(){let t;(0,n.Z9)(this._dataSource)?t=this._dataSource.connect(this):(0,r.b)(this._dataSource)?t=this._dataSource:Array.isArray(this._dataSource)&&(t=(0,a.of)(this._dataSource)),t&&(this._dataSubscription=t.pipe((0,h.R)(this._onDestroy)).subscribe(t=>this.renderNodeChanges(t)))}renderNodeChanges(t,e=this._dataDiffer,i=this._nodeOutlet.viewContainer,n){const r=e.diff(t);r&&(r.forEachOperation((e,r,s)=>{if(null==e.previousIndex)this.insertNode(t[s],s,i,n);else if(null==s)i.remove(r),this._levels.delete(e.item);else{const t=i.get(r);i.move(t,s)}}),this._changeDetectorRef.detectChanges())}_getNodeDef(t,e){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(i=>i.when&&i.when(e,t))||this._defaultNodeDef}insertNode(t,e,i,n){const r=this._getNodeDef(t,e),s=new y(t);s.level=this.treeControl.getLevel?this.treeControl.getLevel(t):void 0!==n&&this._levels.has(n)?this._levels.get(n)+1:0,this._levels.set(t,s.level),(i||this._nodeOutlet.viewContainer).createEmbeddedView(r.template,s,e),_.mostRecentTreeNode&&(_.mostRecentTreeNode.data=t)}}return t.\u0275fac=function(e){return new(e||t)(u.Y36(u.ZZ4),u.Y36(u.sBO))},t.\u0275cmp=u.Xpm({type:t,selectors:[["cdk-tree"]],contentQueries:function(t,e,i){if(1&t&&u.Suo(i,b,5),2&t){let t;u.iGM(t=u.CRH())&&(e._nodeDefs=t)}},viewQuery:function(t,e){if(1&t&&u.Gf(g,7),2&t){let t;u.iGM(t=u.CRH())&&(e._nodeOutlet=t.first)}},hostAttrs:["role","tree",1,"cdk-tree"],inputs:{dataSource:"dataSource",treeControl:"treeControl",trackBy:"trackBy"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(t,e){1&t&&u.GkF(0,0)},directives:[g],encapsulation:2}),t})(),_=(()=>{class t{constructor(e,i){this._elementRef=e,this._tree=i,this._destroyed=new s.x,this._dataChanges=new s.x,t.mostRecentTreeNode=this,this._elementRef.nativeElement.classList.add("cdk-tree-node"),this.role="treeitem"}get role(){return"treeitem"}set role(t){this._elementRef.nativeElement.setAttribute("role",t)}get data(){return this._data}set data(t){t!==this._data&&(this._data=t,this._setRoleFromData(),this._dataChanges.next())}get isExpanded(){return this._tree.treeControl.isExpanded(this._data)}_setExpanded(t){this._isAriaExpanded=t,this._elementRef.nativeElement.setAttribute("aria-expanded",`${t}`)}get level(){return this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._data):this._parentNodeAriaLevel}ngOnInit(){this._parentNodeAriaLevel=function(t){let e=t.parentElement;for(;e&&!w(e);)e=e.parentElement;return e?e.classList.contains("cdk-nested-tree-node")?(0,d.su)(e.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._elementRef.nativeElement.setAttribute("aria-level",`${this.level+1}`)}ngDoCheck(){this.isExpanded!=this._isAriaExpanded&&this._setExpanded(this.isExpanded)}ngOnDestroy(){t.mostRecentTreeNode===this&&(t.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}focus(){this._elementRef.nativeElement.focus()}_setRoleFromData(){this.role="treeitem"}}return t.\u0275fac=function(e){return new(e||t)(u.Y36(u.SBq),u.Y36(v))},t.\u0275dir=u.lG2({type:t,selectors:[["cdk-tree-node"]],inputs:{role:"role"},exportAs:["cdkTreeNode"]}),t.mostRecentTreeNode=null,t})();function w(t){const e=t.classList;return!(!(null==e?void 0:e.contains("cdk-nested-tree-node"))&&!(null==e?void 0:e.contains("cdk-tree")))}let x=(()=>{class t extends _{constructor(t,e,i){super(t,e),this._elementRef=t,this._tree=e,this._differs=i,this._elementRef.nativeElement.classList.add("cdk-nested-tree-node")}ngAfterContentInit(){this._dataDiffer=this._differs.find([]).create(this._tree.trackBy);const t=this._tree.treeControl.getChildren(this.data);Array.isArray(t)?this.updateChildrenNodes(t):(0,r.b)(t)&&t.pipe((0,h.R)(this._destroyed)).subscribe(t=>this.updateChildrenNodes(t)),this.nodeOutlet.changes.pipe((0,h.R)(this._destroyed)).subscribe(()=>this.updateChildrenNodes())}ngOnInit(){super.ngOnInit()}ngDoCheck(){super.ngDoCheck()}ngOnDestroy(){this._clear(),super.ngOnDestroy()}updateChildrenNodes(t){const e=this._getNodeOutlet();t&&(this._children=t),e&&this._children?this._tree.renderNodeChanges(this._children,this._dataDiffer,e.viewContainer,this._data):this._dataDiffer.diff([])}_clear(){const t=this._getNodeOutlet();t&&(t.viewContainer.clear(),this._dataDiffer.diff([]))}_getNodeOutlet(){const t=this.nodeOutlet;return t&&t.find(t=>!t._node||t._node===this)}}return t.\u0275fac=function(e){return new(e||t)(u.Y36(u.SBq),u.Y36(v),u.Y36(u.ZZ4))},t.\u0275dir=u.lG2({type:t,selectors:[["cdk-nested-tree-node"]],contentQueries:function(t,e,i){if(1&t&&u.Suo(i,g,5),2&t){let t;u.iGM(t=u.CRH())&&(e.nodeOutlet=t)}},inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["cdkNestedTreeNode"],features:[u._Bn([{provide:_,useExisting:t},{provide:m,useExisting:t}]),u.qOj]}),t})();const C=/([A-Za-z%]+)$/;let A=(()=>{class t{constructor(t,e,i,n){this._treeNode=t,this._tree=e,this._element=i,this._dir=n,this._destroyed=new s.x,this.indentUnits="px",this._indent=40,this._setPadding(),n&&n.change.pipe((0,h.R)(this._destroyed)).subscribe(()=>this._setPadding(!0)),t._dataChanges.subscribe(()=>this._setPadding())}get level(){return this._level}set level(t){this._setLevelInput(t)}get indent(){return this._indent}set indent(t){this._setIndentInput(t)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_paddingIndent(){const t=this._treeNode.data&&this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._treeNode.data):null,e=null==this._level?t:this._level;return"number"==typeof e?`${e*this._indent}${this.indentUnits}`:null}_setPadding(t=!1){const e=this._paddingIndent();if(e!==this._currentPadding||t){const t=this._element.nativeElement,i=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",n="paddingLeft"===i?"paddingRight":"paddingLeft";t.style[i]=e||"",t.style[n]="",this._currentPadding=e}}_setLevelInput(t){this._level=(0,d.su)(t,null),this._setPadding()}_setIndentInput(t){let e=t,i="px";if("string"==typeof t){const n=t.split(C);e=n[0],i=n[1]||i}this.indentUnits=i,this._indent=(0,d.su)(e),this._setPadding()}}return t.\u0275fac=function(e){return new(e||t)(u.Y36(_),u.Y36(v),u.Y36(u.SBq),u.Y36(p.Is,8))},t.\u0275dir=u.lG2({type:t,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:["cdkTreeNodePadding","level"],indent:["cdkTreeNodePaddingIndent","indent"]}}),t})(),S=(()=>{class t{constructor(t,e){this._tree=t,this._treeNode=e,this._recursive=!1}get recursive(){return this._recursive}set recursive(t){this._recursive=(0,d.Ig)(t)}_toggle(t){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),t.stopPropagation()}}return t.\u0275fac=function(e){return new(e||t)(u.Y36(v),u.Y36(_))},t.\u0275dir=u.lG2({type:t,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(t,e){1&t&&u.NdJ("click",function(t){return e._toggle(t)})},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}}),t})(),E=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=u.oAB({type:t}),t.\u0275inj=u.cJS({}),t})()},1511:(t,e,i)=>{"use strict";i.d(e,{mr:()=>_,Ov:()=>It,ez:()=>Ut,K0:()=>l,uU:()=>Pt,JJ:()=>Zt,Do:()=>x,Ts:()=>Ft,V_:()=>u,Ye:()=>C,S$:()=>b,i8:()=>Ot,mk:()=>pt,sg:()=>mt,O5:()=>yt,PC:()=>At,RF:()=>wt,n9:()=>xt,ED:()=>Ct,tP:()=>St,b0:()=>w,lw:()=>c,OU:()=>Bt,rS:()=>Rt,gd:()=>Nt,EM:()=>Yt,JF:()=>Vt,NF:()=>zt,PM:()=>Ht,w_:()=>a,bD:()=>qt,q:()=>s,Mx:()=>dt,HT:()=>o});var n=i(1572);let r=null;function s(){return r}function o(t){r||(r=t)}class a{}const l=new n.OlP("DocumentToken");let c=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,n.Yz7)({factory:h,token:t,providedIn:"platform"}),t})();function h(){return(0,n.LFG)(d)}const u=new n.OlP("Location Initialized");let d=(()=>{class t extends c{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return s().getBaseHref(this._doc)}onPopState(t){const e=s().getGlobalEventTarget(this._doc,"window");return e.addEventListener("popstate",t,!1),()=>e.removeEventListener("popstate",t)}onHashChange(t){const e=s().getGlobalEventTarget(this._doc,"window");return e.addEventListener("hashchange",t,!1),()=>e.removeEventListener("hashchange",t)}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(t){this.location.pathname=t}pushState(t,e,i){p()?this._history.pushState(t,e,i):this.location.hash=i}replaceState(t,e,i){p()?this._history.replaceState(t,e,i):this.location.hash=i}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(l))},t.\u0275prov=(0,n.Yz7)({factory:f,token:t,providedIn:"platform"}),t})();function p(){return!!window.history.pushState}function f(){return new d((0,n.LFG)(l))}function m(t,e){if(0==t.length)return e;if(0==e.length)return t;let i=0;return t.endsWith("/")&&i++,e.startsWith("/")&&i++,2==i?t+e.substring(1):1==i?t+e:t+"/"+e}function g(t){const e=t.match(/#|\?|$/),i=e&&e.index||t.length;return t.slice(0,i-("/"===t[i-1]?1:0))+t.slice(i)}function y(t){return t&&"?"!==t[0]?"?"+t:t}let b=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,n.Yz7)({factory:v,token:t,providedIn:"root"}),t})();function v(t){const e=(0,n.LFG)(l).location;return new w((0,n.LFG)(c),e&&e.origin||"")}const _=new n.OlP("appBaseHref");let w=(()=>{class t extends b{constructor(t,e){if(super(),this._platformLocation=t,this._removeListenerFns=[],null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=e}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return m(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+y(this._platformLocation.search),i=this._platformLocation.hash;return i&&t?`${e}${i}`:e}pushState(t,e,i,n){const r=this.prepareExternalUrl(i+y(n));this._platformLocation.pushState(t,e,r)}replaceState(t,e,i,n){const r=this.prepareExternalUrl(i+y(n));this._platformLocation.replaceState(t,e,r)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var e,i;null===(i=(e=this._platformLocation).historyGo)||void 0===i||i.call(e,t)}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(c),n.LFG(_,8))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})(),x=(()=>{class t extends b{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=e&&(this._baseHref=e)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=m(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,i,n){let r=this.prepareExternalUrl(i+y(n));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(t,e,r)}replaceState(t,e,i,n){let r=this.prepareExternalUrl(i+y(n));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,r)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var e,i;null===(i=(e=this._platformLocation).historyGo)||void 0===i||i.call(e,t)}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(c),n.LFG(_,8))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})(),C=(()=>{class t{constructor(t,e){this._subject=new n.vpe,this._urlChangeListeners=[],this._platformStrategy=t;const i=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=g(S(i)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+y(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,S(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",i=null){this._platformStrategy.pushState(i,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+y(e)),i)}replaceState(t,e="",i=null){this._platformStrategy.replaceState(i,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+y(e)),i)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(t=0){var e,i;null===(i=(e=this._platformStrategy).historyGo)||void 0===i||i.call(e,t)}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)}))}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(i=>i(t,e))}subscribe(t,e,i){return this._subject.subscribe({next:t,error:e,complete:i})}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(b),n.LFG(c))},t.normalizeQueryParams=y,t.joinWithSlash=m,t.stripTrailingSlash=g,t.\u0275prov=(0,n.Yz7)({factory:A,token:t,providedIn:"root"}),t})();function A(){return new C((0,n.LFG)(b),(0,n.LFG)(c))}function S(t){return t.replace(/\/index.html$/,"")}var E=function(t){return t[t.Decimal=0]="Decimal",t[t.Percent=1]="Percent",t[t.Currency=2]="Currency",t[t.Scientific=3]="Scientific",t}({}),k=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({}),T=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}({}),M=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}({}),L=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}({}),I=function(t){return t[t.Decimal=0]="Decimal",t[t.Group=1]="Group",t[t.List=2]="List",t[t.PercentSign=3]="PercentSign",t[t.PlusSign=4]="PlusSign",t[t.MinusSign=5]="MinusSign",t[t.Exponential=6]="Exponential",t[t.SuperscriptingExponent=7]="SuperscriptingExponent",t[t.PerMille=8]="PerMille",t[t[1/0]=9]="Infinity",t[t.NaN=10]="NaN",t[t.TimeSeparator=11]="TimeSeparator",t[t.CurrencyDecimal=12]="CurrencyDecimal",t[t.CurrencyGroup=13]="CurrencyGroup",t}({});function O(t,e){return Z((0,n.cg1)(t)[n.wAp.DateFormat],e)}function D(t,e){return Z((0,n.cg1)(t)[n.wAp.TimeFormat],e)}function R(t,e){return Z((0,n.cg1)(t)[n.wAp.DateTimeFormat],e)}function N(t,e){const i=(0,n.cg1)(t),r=i[n.wAp.NumberSymbols][e];if(void 0===r){if(e===I.CurrencyDecimal)return i[n.wAp.NumberSymbols][I.Decimal];if(e===I.CurrencyGroup)return i[n.wAp.NumberSymbols][I.Group]}return r}const P=n.kL8;function F(t){if(!t[n.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[n.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Z(t,e){for(let i=e;i>-1;i--)if(void 0!==t[i])return t[i];throw new Error("Locale data API: locale data undefined")}function B(t){const[e,i]=t.split(":");return{hours:+e,minutes:+i}}const U=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,q={},z=/((?:[^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 H=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}({}),Y=function(t){return t[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day",t}({}),G=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}({});function j(t,e,i,n){let r=function(t){if(st(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){const[e,i=1,n=1]=t.split("-").map(t=>+t);return V(e,i-1,n)}const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let i;if(i=t.match(U))return function(t){const e=new Date(0);let i=0,n=0;const r=t[8]?e.setUTCFullYear:e.setFullYear,s=t[8]?e.setUTCHours:e.setHours;t[9]&&(i=Number(t[9]+t[10]),n=Number(t[9]+t[11])),r.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));const o=Number(t[4]||0)-i,a=Number(t[5]||0)-n,l=Number(t[6]||0),c=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return s.call(e,o,a,l,c),e}(i)}const e=new Date(t);if(!st(e))throw new Error(`Unable to convert "${t}" into a date`);return e}(t);e=Q(i,e)||e;let s,o=[];for(;e;){if(s=z.exec(e),!s){o.push(e);break}{o=o.concat(s.slice(1));const t=o.pop();if(!t)break;e=t}}let a=r.getTimezoneOffset();n&&(a=rt(n,a),r=function(t,e,i){const n=t.getTimezoneOffset();return function(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}(t,-1*(rt(e,n)-n))}(r,n));let l="";return o.forEach(t=>{const e=function(t){if(nt[t])return nt[t];let e;switch(t){case"G":case"GG":case"GGG":e=K(G.Eras,M.Abbreviated);break;case"GGGG":e=K(G.Eras,M.Wide);break;case"GGGGG":e=K(G.Eras,M.Narrow);break;case"y":e=X(Y.FullYear,1,0,!1,!0);break;case"yy":e=X(Y.FullYear,2,0,!0,!0);break;case"yyy":e=X(Y.FullYear,3,0,!1,!0);break;case"yyyy":e=X(Y.FullYear,4,0,!1,!0);break;case"Y":e=it(1);break;case"YY":e=it(2,!0);break;case"YYY":e=it(3);break;case"YYYY":e=it(4);break;case"M":case"L":e=X(Y.Month,1,1);break;case"MM":case"LL":e=X(Y.Month,2,1);break;case"MMM":e=K(G.Months,M.Abbreviated);break;case"MMMM":e=K(G.Months,M.Wide);break;case"MMMMM":e=K(G.Months,M.Narrow);break;case"LLL":e=K(G.Months,M.Abbreviated,T.Standalone);break;case"LLLL":e=K(G.Months,M.Wide,T.Standalone);break;case"LLLLL":e=K(G.Months,M.Narrow,T.Standalone);break;case"w":e=et(1);break;case"ww":e=et(2);break;case"W":e=et(1,!0);break;case"d":e=X(Y.Date,1);break;case"dd":e=X(Y.Date,2);break;case"c":case"cc":e=X(Y.Day,1);break;case"ccc":e=K(G.Days,M.Abbreviated,T.Standalone);break;case"cccc":e=K(G.Days,M.Wide,T.Standalone);break;case"ccccc":e=K(G.Days,M.Narrow,T.Standalone);break;case"cccccc":e=K(G.Days,M.Short,T.Standalone);break;case"E":case"EE":case"EEE":e=K(G.Days,M.Abbreviated);break;case"EEEE":e=K(G.Days,M.Wide);break;case"EEEEE":e=K(G.Days,M.Narrow);break;case"EEEEEE":e=K(G.Days,M.Short);break;case"a":case"aa":case"aaa":e=K(G.DayPeriods,M.Abbreviated);break;case"aaaa":e=K(G.DayPeriods,M.Wide);break;case"aaaaa":e=K(G.DayPeriods,M.Narrow);break;case"b":case"bb":case"bbb":e=K(G.DayPeriods,M.Abbreviated,T.Standalone,!0);break;case"bbbb":e=K(G.DayPeriods,M.Wide,T.Standalone,!0);break;case"bbbbb":e=K(G.DayPeriods,M.Narrow,T.Standalone,!0);break;case"B":case"BB":case"BBB":e=K(G.DayPeriods,M.Abbreviated,T.Format,!0);break;case"BBBB":e=K(G.DayPeriods,M.Wide,T.Format,!0);break;case"BBBBB":e=K(G.DayPeriods,M.Narrow,T.Format,!0);break;case"h":e=X(Y.Hours,1,-12);break;case"hh":e=X(Y.Hours,2,-12);break;case"H":e=X(Y.Hours,1);break;case"HH":e=X(Y.Hours,2);break;case"m":e=X(Y.Minutes,1);break;case"mm":e=X(Y.Minutes,2);break;case"s":e=X(Y.Seconds,1);break;case"ss":e=X(Y.Seconds,2);break;case"S":e=X(Y.FractionalSeconds,1);break;case"SS":e=X(Y.FractionalSeconds,2);break;case"SSS":e=X(Y.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=$(H.Short);break;case"ZZZZZ":e=$(H.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=$(H.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=$(H.Long);break;default:return null}return nt[t]=e,e}(t);l+=e?e(r,i,a):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function V(t,e,i){const n=new Date(0);return n.setFullYear(t,e,i),n.setHours(0,0,0),n}function Q(t,e){const i=function(t){return(0,n.cg1)(t)[n.wAp.LocaleId]}(t);if(q[i]=q[i]||{},q[i][e])return q[i][e];let r="";switch(e){case"shortDate":r=O(t,L.Short);break;case"mediumDate":r=O(t,L.Medium);break;case"longDate":r=O(t,L.Long);break;case"fullDate":r=O(t,L.Full);break;case"shortTime":r=D(t,L.Short);break;case"mediumTime":r=D(t,L.Medium);break;case"longTime":r=D(t,L.Long);break;case"fullTime":r=D(t,L.Full);break;case"short":const e=Q(t,"shortTime"),i=Q(t,"shortDate");r=W(R(t,L.Short),[e,i]);break;case"medium":const n=Q(t,"mediumTime"),s=Q(t,"mediumDate");r=W(R(t,L.Medium),[n,s]);break;case"long":const o=Q(t,"longTime"),a=Q(t,"longDate");r=W(R(t,L.Long),[o,a]);break;case"full":const l=Q(t,"fullTime"),c=Q(t,"fullDate");r=W(R(t,L.Full),[l,c])}return r&&(q[i][e]=r),r}function W(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(t,i){return null!=e&&i in e?e[i]:t})),t}function J(t,e,i="-",n,r){let s="";(t<0||r&&t<=0)&&(r?t=1-t:(t=-t,s=i));let o=String(t);for(;o.length0||a>-i)&&(a+=i),t===Y.Hours)0===a&&-12===i&&(a=12);else if(t===Y.FractionalSeconds)return l=e,J(a,3).substr(0,l);var l;const c=N(o,I.MinusSign);return J(a,e,c,n,r)}}function K(t,e,i=T.Format,r=!1){return function(s,o){return function(t,e,i,r,s,o){switch(i){case G.Months:return function(t,e,i){const r=(0,n.cg1)(t),s=Z([r[n.wAp.MonthsFormat],r[n.wAp.MonthsStandalone]],e);return Z(s,i)}(e,s,r)[t.getMonth()];case G.Days:return function(t,e,i){const r=(0,n.cg1)(t),s=Z([r[n.wAp.DaysFormat],r[n.wAp.DaysStandalone]],e);return Z(s,i)}(e,s,r)[t.getDay()];case G.DayPeriods:const a=t.getHours(),l=t.getMinutes();if(o){const t=function(t){const e=(0,n.cg1)(t);return F(e),(e[n.wAp.ExtraData][2]||[]).map(t=>"string"==typeof t?B(t):[B(t[0]),B(t[1])])}(e),i=function(t,e,i){const r=(0,n.cg1)(t);F(r);const s=Z([r[n.wAp.ExtraData][0],r[n.wAp.ExtraData][1]],e)||[];return Z(s,i)||[]}(e,s,r),o=t.findIndex(t=>{if(Array.isArray(t)){const[e,i]=t,n=a>=e.hours&&l>=e.minutes,r=a0?Math.floor(r/60):Math.ceil(r/60);switch(t){case H.Short:return(r>=0?"+":"")+J(o,2,s)+J(Math.abs(r%60),2,s);case H.ShortGMT:return"GMT"+(r>=0?"+":"")+J(o,1,s);case H.Long:return"GMT"+(r>=0?"+":"")+J(o,2,s)+":"+J(Math.abs(r%60),2,s);case H.Extended:return 0===n?"Z":(r>=0?"+":"")+J(o,2,s)+":"+J(Math.abs(r%60),2,s);default:throw new Error(`Unknown zone width "${t}"`)}}}function tt(t){return V(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))}function et(t,e=!1){return function(i,n){let r;if(e){const t=new Date(i.getFullYear(),i.getMonth(),1).getDay()-1,e=i.getDate();r=1+Math.floor((e+t)/7)}else{const t=tt(i),e=function(t){const e=V(t,0,1).getDay();return V(t,0,1+(e<=4?4:11)-e)}(t.getFullYear()),n=t.getTime()-e.getTime();r=1+Math.round(n/6048e5)}return J(r,t,N(n,I.MinusSign))}}function it(t,e=!1){return function(i,n){return J(tt(i).getFullYear(),t,N(n,I.MinusSign),e)}}const nt={};function rt(t,e){t=t.replace(/:/g,"");const i=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(i)?e:i}function st(t){return t instanceof Date&&!isNaN(t.valueOf())}const ot=/^(\d+)?\.((\d+)(-(\d+))?)?$/,at=".",lt="0";function ct(t){const e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}class ht{}let ut=(()=>{class t extends ht{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(P(e||this.locale)(t)){case k.Zero:return"zero";case k.One:return"one";case k.Two:return"two";case k.Few:return"few";case k.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(n.soG))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})();function dt(t,e){e=encodeURIComponent(e);for(const i of t.split(";")){const t=i.indexOf("="),[n,r]=-1==t?[i,""]:[i.slice(0,t),i.slice(t+1)];if(n.trim()===e)return decodeURIComponent(r)}return null}let pt=(()=>{class t{constructor(t,e,i,n){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=i,this._renderer=n,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&((0,n.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachChangedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachRemovedItem(t=>{t.previousValue&&this._toggleClass(t.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(t=>{if("string"!=typeof t.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,n.AaK)(t.item)}`);this._toggleClass(t.item,!0)}),t.forEachRemovedItem(t=>this._toggleClass(t.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!0)):Object.keys(t).forEach(e=>this._toggleClass(e,!!t[e])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!1)):Object.keys(t).forEach(t=>this._toggleClass(t,!1)))}_toggleClass(t,e){(t=t.trim())&&t.split(/\s+/g).forEach(t=>{e?this._renderer.addClass(this._ngEl.nativeElement,t):this._renderer.removeClass(this._ngEl.nativeElement,t)})}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.ZZ4),n.Y36(n.aQg),n.Y36(n.SBq),n.Y36(n.Qsj))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class ft{constructor(t,e,i,n){this.$implicit=t,this.ngForOf=e,this.index=i,this.count=n}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 mt=(()=>{class t{constructor(t,e,i){this._viewContainer=t,this._template=e,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const i=this._ngForOf;if(!this._differ&&i)try{this._differ=this._differs.find(i).create(this.ngForTrackBy)}catch(e){throw new Error(`Cannot find a differ supporting object '${i}' of type '${t=i,t.name||typeof t}'. NgFor only supports binding to Iterables such as Arrays.`)}}var t;if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,i,n)=>{if(null==t.previousIndex){const i=this._viewContainer.createEmbeddedView(this._template,new ft(null,this._ngForOf,-1,-1),null===n?void 0:n),r=new gt(t,i);e.push(r)}else if(null==n)this._viewContainer.remove(null===i?void 0:i);else if(null!==i){const r=this._viewContainer.get(i);this._viewContainer.move(r,n);const s=new gt(t,r);e.push(s)}});for(let i=0;i{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.s_b),n.Y36(n.Rgc),n.Y36(n.ZZ4))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class gt{constructor(t,e){this.record=t,this.view=e}}let yt=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new bt,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){vt("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){vt("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.s_b),n.Y36(n.Rgc))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class bt{constructor(){this.$implicit=null,this.ngIf=null}}function vt(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${(0,n.AaK)(e)}'.`)}class _t{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let wt=(()=>{class t{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}_matchCase(t){const e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e}_updateDefaultCases(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let e=0;e{class t{constructor(t,e,i){this.ngSwitch=i,i._addCase(),this._view=new _t(t,e)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.s_b),n.Y36(n.Rgc),n.Y36(wt,9))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),Ct=(()=>{class t{constructor(t,e,i){i._addDefault(new _t(t,e))}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.s_b),n.Y36(n.Rgc),n.Y36(wt,9))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngSwitchDefault",""]]}),t})(),At=(()=>{class t{constructor(t,e,i){this._ngEl=t,this._differs=e,this._renderer=i,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,e){const[i,n]=t.split(".");null!=(e=null!=e&&n?`${e}${n}`:e)?this._renderer.setStyle(this._ngEl.nativeElement,i,e):this._renderer.removeStyle(this._ngEl.nativeElement,i)}_applyChanges(t){t.forEachRemovedItem(t=>this._setStyle(t.key,null)),t.forEachAddedItem(t=>this._setStyle(t.key,t.currentValue)),t.forEachChangedItem(t=>this._setStyle(t.key,t.currentValue))}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(n.aQg),n.Y36(n.Qsj))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),t})(),St=(()=>{class t{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(t){if(t.ngTemplateOutlet){const t=this._viewContainerRef;this._viewRef&&t.remove(t.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?t.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&t.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.s_b))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[n.TTD]}),t})();function Et(t,e){return Error(`InvalidPipeArgument: '${e}' for pipe '${(0,n.AaK)(t)}'`)}class kt{createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class Tt{createSubscription(t,e){return t.then(e,t=>{throw t})}dispose(t){}onDestroy(t){}}const Mt=new Tt,Lt=new kt;let It=(()=>{class t{constructor(t){this._ref=t,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,e=>this._updateLatestValue(t,e))}_selectStrategy(e){if((0,n.QGY)(e))return Mt;if((0,n.F4k)(e))return Lt;throw Et(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.sBO,16))},t.\u0275pipe=n.Yjl({name:"async",type:t,pure:!1}),t})(),Ot=(()=>{class t{transform(e){if(null==e)return null;if("string"!=typeof e)throw Et(t,e);return e.toLowerCase()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"lowercase",type:t,pure:!0}),t})();const Dt=/(?:[A-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\u0561-\u0587\u05D0-\u05EA\u05F0-\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\u08A0-\u08B4\u08B6-\u08BD\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\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\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\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\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-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\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-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\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-\u2C2E\u2C30-\u2C5E\u2C60-\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-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\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-\uAB65\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\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\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-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\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\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\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]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\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-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D])\S*/g;let Rt=(()=>{class t{transform(e){if(null==e)return null;if("string"!=typeof e)throw Et(t,e);return e.replace(Dt,t=>t[0].toUpperCase()+t.substr(1).toLowerCase())}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"titlecase",type:t,pure:!0}),t})(),Nt=(()=>{class t{transform(e){if(null==e)return null;if("string"!=typeof e)throw Et(t,e);return e.toUpperCase()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"uppercase",type:t,pure:!0}),t})(),Pt=(()=>{class t{constructor(t){this.locale=t}transform(e,i="mediumDate",n,r){if(null==e||""===e||e!=e)return null;try{return j(e,i,r||this.locale,n)}catch(s){throw Et(t,s.message)}}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.soG,16))},t.\u0275pipe=n.Yjl({name:"date",type:t,pure:!0}),t})(),Ft=(()=>{class t{transform(t){return JSON.stringify(t,null,2)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"json",type:t,pure:!1}),t})(),Zt=(()=>{class t{constructor(t){this._locale=t}transform(e,i,r){if(!function(t){return!(null==t||""===t||t!=t)}(e))return null;r=r||this._locale;try{return function(t,e,i){return function(t,e,i,n,r,s,o=!1){let a="",l=!1;if(isFinite(t)){let c=function(t){let e,i,n,r,s,o=Math.abs(t)+"",a=0;for((i=o.indexOf(at))>-1&&(o=o.replace(at,"")),(n=o.search(/e/i))>0?(i<0&&(i=n),i+=+o.slice(n+1),o=o.substring(0,n)):i<0&&(i=o.length),n=0;o.charAt(n)===lt;n++);if(n===(s=o.length))e=[0],i=1;else{for(s--;o.charAt(s)===lt;)s--;for(i-=n,e=[],r=0;n<=s;n++,r++)e[r]=Number(o.charAt(n))}return i>22&&(e=e.splice(0,21),a=i-1,i=1),{digits:e,exponent:a,integerLen:i}}(t);o&&(c=function(t){if(0===t.digits[0])return t;const e=t.digits.length-t.integerLen;return t.exponent?t.exponent+=2:(0===e?t.digits.push(0,0):1===e&&t.digits.push(0),t.integerLen+=2),t}(c));let h=e.minInt,u=e.minFrac,d=e.maxFrac;if(s){const t=s.match(ot);if(null===t)throw new Error(`${s} is not a valid digit info`);const e=t[1],i=t[3],n=t[5];null!=e&&(h=ct(e)),null!=i&&(u=ct(i)),null!=n?d=ct(n):null!=i&&u>d&&(d=u)}!function(t,e,i){if(e>i)throw new Error(`The minimum number of digits after fraction (${e}) is higher than the maximum (${i}).`);let n=t.digits,r=n.length-t.integerLen;const s=Math.min(Math.max(e,r),i);let o=s+t.integerLen,a=n[o];if(o>0){n.splice(Math.max(t.integerLen,o));for(let t=o;t=5)if(o-1<0){for(let e=0;e>o;e--)n.unshift(0),t.integerLen++;n.unshift(1),t.integerLen++}else n[o-1]++;for(;r=c?n.pop():l=!1),e>=10?1:0},0);h&&(n.unshift(h),t.integerLen++)}(c,u,d);let p=c.digits,f=c.integerLen;const m=c.exponent;let g=[];for(l=p.every(t=>!t);f0?g=p.splice(f,p.length):(g=p,p=[0]);const y=[];for(p.length>=e.lgSize&&y.unshift(p.splice(-e.lgSize,p.length).join(""));p.length>e.gSize;)y.unshift(p.splice(-e.gSize,p.length).join(""));p.length&&y.unshift(p.join("")),a=y.join(N(i,n)),g.length&&(a+=N(i,r)+g.join("")),m&&(a+=N(i,I.Exponential)+"+"+m)}else a=N(i,I.Infinity);return a=t<0&&!l?e.negPre+a+e.negSuf:e.posPre+a+e.posSuf,a}(t,function(t,e="-"){const i={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},n=t.split(";"),r=n[0],s=n[1],o=-1!==r.indexOf(at)?r.split(at):[r.substring(0,r.lastIndexOf(lt)+1),r.substring(r.lastIndexOf(lt)+1)],a=o[0],l=o[1]||"";i.posPre=a.substr(0,a.indexOf("#"));for(let h=0;h{class t{transform(e,i,n){if(null==e)return null;if(!this.supports(e))throw Et(t,e);return e.slice(i,n)}supports(t){return"string"==typeof t||Array.isArray(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"slice",type:t,pure:!1}),t})(),Ut=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({providers:[{provide:ht,useClass:ut}]}),t})();const qt="browser";function zt(t){return t===qt}function Ht(t){return"server"===t}let Yt=(()=>{class t{}return t.\u0275prov=(0,n.Yz7)({token:t,providedIn:"root",factory:()=>new Gt((0,n.LFG)(l),window)}),t})();class Gt{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const e=function(t,e){const i=t.getElementById(e)||t.getElementsByName(e)[0];if(i)return i;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let n=i.currentNode;for(;n;){const t=n.shadowRoot;if(t){const i=t.getElementById(e)||t.querySelector(`[name="${e}"]`);if(i)return i}n=i.nextNode()}}return null}(this.document,t);e&&(this.scrollToElement(e),this.attemptFocus(e))}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),i=e.left+this.window.pageXOffset,n=e.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(i-r[0],n-r[1])}attemptFocus(t){return t.focus(),this.document.activeElement===t}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=jt(this.window.history)||jt(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(t){return!1}}}function jt(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class Vt{}},9063:(t,e,i)=>{"use strict";i.d(e,{TP:()=>L,eN:()=>T,JF:()=>q,LE:()=>g});var n=i(1511),r=i(1572),s=i(2041),o=i(2391),a=i(8196),l=i(8868),c=i(1681);class h{}class u{}class d{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const i=t.slice(0,e),n=i.toLowerCase(),r=t.slice(e+1).trim();this.maybeSetNormalizedName(i,n),this.headers.has(n)?this.headers.get(n).push(r):this.headers.set(n,[r])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let i=t[e];const n=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(n,i),this.maybeSetNormalizedName(e,n))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof d?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new d;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof d?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let i=t.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(t.name,e);const n=("a"===t.op?this.headers.get(e):void 0)||[];n.push(...i),this.headers.set(e,n);break;case"d":const r=t.value;if(r){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===r.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class p{encodeKey(t){return f(t)}encodeValue(t){return f(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function f(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}function m(t){return`${t}`}class g{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new p,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const i=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(t=>{const n=t.indexOf("="),[r,s]=-1==n?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,n)),e.decodeValue(t.slice(n+1))],o=i.get(r)||[];o.push(s),i.set(r,o)}),i}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const i=t.fromObject[e];this.map.set(e,Array.isArray(i)?i:[i])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(i=>{const n=t[i];Array.isArray(n)?n.forEach(t=>{e.push({param:i,value:t,op:"a"})}):e.push({param:i,value:n,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new g({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(m(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const i=e.indexOf(m(t.value));-1!==i&&e.splice(i,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class y{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}keys(){return this.map.keys()}}function b(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function v(t){return"undefined"!=typeof Blob&&t instanceof Blob}function _(t){return"undefined"!=typeof FormData&&t instanceof FormData}class w{constructor(t,e,i,n){let r;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||n?(this.body=void 0!==i?i:null,r=n):r=i,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.context&&(this.context=r.context),r.params&&(this.params=r.params)),this.headers||(this.headers=new d),this.context||(this.context=new y),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const i=e.indexOf("?");this.urlWithParams=e+(-1===i?"?":ie.set(i,t.setHeaders[i]),l)),t.setParams&&(c=Object.keys(t.setParams).reduce((e,i)=>e.set(i,t.setParams[i]),c)),new w(i,n,s,{params:c,headers:l,context:h,reportProgress:a,responseType:r,withCredentials:o})}}var x=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}({});class C{constructor(t,e=200,i="OK"){this.headers=t.headers||new d,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class A extends C{constructor(t={}){super(t),this.type=x.ResponseHeader}clone(t={}){return new A({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class S extends C{constructor(t={}){super(t),this.type=x.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new S({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class E extends C{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function k(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let T=(()=>{class t{constructor(t){this.handler=t}request(t,e,i={}){let n;if(t instanceof w)n=t;else{let r,s;r=i.headers instanceof d?i.headers:new d(i.headers),i.params&&(s=i.params instanceof g?i.params:new g({fromObject:i.params})),n=new w(t,e,void 0!==i.body?i.body:null,{headers:r,context:i.context,params:s,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials})}const r=(0,s.of)(n).pipe((0,a.b)(t=>this.handler.handle(t)));if(t instanceof w||"events"===i.observe)return r;const o=r.pipe((0,l.h)(t=>t instanceof S));switch(i.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return o.pipe((0,c.U)(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return o.pipe((0,c.U)(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return o.pipe((0,c.U)(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return o.pipe((0,c.U)(t=>t.body))}case"response":return o;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new g).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,i={}){return this.request("PATCH",t,k(i,e))}post(t,e,i={}){return this.request("POST",t,k(i,e))}put(t,e,i={}){return this.request("PUT",t,k(i,e))}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(h))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})();class M{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const L=new r.OlP("HTTP_INTERCEPTORS");let I=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})();const O=/^\)\]\}',?\n/;let D=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new o.y(e=>{const i=this.xhrFactory.build();if(i.open(t.method,t.urlWithParams),t.withCredentials&&(i.withCredentials=!0),t.headers.forEach((t,e)=>i.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&i.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();i.responseType="json"!==e?e:"text"}const n=t.serializeBody();let r=null;const s=()=>{if(null!==r)return r;const e=1223===i.status?204:i.status,n=i.statusText||"OK",s=new d(i.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(i)||t.url;return r=new A({headers:s,status:e,statusText:n,url:o}),r},o=()=>{let{headers:n,status:r,statusText:o,url:a}=s(),l=null;204!==r&&(l=void 0===i.response?i.responseText:i.response),0===r&&(r=l?200:0);let c=r>=200&&r<300;if("json"===t.responseType&&"string"==typeof l){const t=l;l=l.replace(O,"");try{l=""!==l?JSON.parse(l):null}catch(h){l=t,c&&(c=!1,l={error:h,text:l})}}c?(e.next(new S({body:l,headers:n,status:r,statusText:o,url:a||void 0})),e.complete()):e.error(new E({error:l,headers:n,status:r,statusText:o,url:a||void 0}))},a=t=>{const{url:n}=s(),r=new E({error:t,status:i.status||0,statusText:i.statusText||"Unknown Error",url:n||void 0});e.error(r)};let l=!1;const c=n=>{l||(e.next(s()),l=!0);let r={type:x.DownloadProgress,loaded:n.loaded};n.lengthComputable&&(r.total=n.total),"text"===t.responseType&&i.responseText&&(r.partialText=i.responseText),e.next(r)},h=t=>{let i={type:x.UploadProgress,loaded:t.loaded};t.lengthComputable&&(i.total=t.total),e.next(i)};return i.addEventListener("load",o),i.addEventListener("error",a),i.addEventListener("timeout",a),i.addEventListener("abort",a),t.reportProgress&&(i.addEventListener("progress",c),null!==n&&i.upload&&i.upload.addEventListener("progress",h)),i.send(n),e.next({type:x.Sent}),()=>{i.removeEventListener("error",a),i.removeEventListener("abort",a),i.removeEventListener("load",o),i.removeEventListener("timeout",a),t.reportProgress&&(i.removeEventListener("progress",c),null!==n&&i.upload&&i.upload.removeEventListener("progress",h)),i.readyState!==i.DONE&&i.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(n.JF))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})();const R=new r.OlP("XSRF_COOKIE_NAME"),N=new r.OlP("XSRF_HEADER_NAME");class P{}let F=(()=>{class t{constructor(t,e,i){this.doc=t,this.platform=e,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,n.Mx)(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(n.K0),r.LFG(r.Lbi),r.LFG(R))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})(),Z=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const i=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||i.startsWith("http://")||i.startsWith("https://"))return e.handle(t);const n=this.tokenService.getToken();return null===n||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,n)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(P),r.LFG(N))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})(),B=(()=>{class t{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get(L,[]);this.chain=t.reduceRight((t,e)=>new M(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(u),r.LFG(r.zs3))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})(),U=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:Z,useClass:I}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:R,useValue:e.cookieName}:[],e.headerName?{provide:N,useValue:e.headerName}:[]]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:[Z,{provide:L,useExisting:Z,multi:!0},{provide:P,useClass:F},{provide:R,useValue:"XSRF-TOKEN"},{provide:N,useValue:"X-XSRF-TOKEN"}]}),t})(),q=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:[T,{provide:h,useClass:B},D,{provide:u,useExisting:D}],imports:[[U.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})()},1572:(t,e,i)=>{"use strict";i.d(e,{deG:()=>li,tb:()=>hc,AFp:()=>sc,ip1:()=>nc,CZH:()=>rc,hGG:()=>nh,z2F:()=>Vc,sBO:()=>Wa,Sil:()=>wc,_Vd:()=>va,EJc:()=>pc,SBq:()=>Ca,qLn:()=>Ln,vpe:()=>Fl,gxx:()=>vs,tBr:()=>Mi,XFs:()=>L,OlP:()=>ai,zs3:()=>Rs,ZZ4:()=>za,aQg:()=>Ya,soG:()=>dc,YKP:()=>sl,v3s:()=>Wc,h0i:()=>rl,PXZ:()=>zc,R0b:()=>Ac,FiY:()=>Li,Lbi:()=>cc,g9A:()=>lc,n_E:()=>Bl,Qsj:()=>Ea,FYo:()=>Sa,JOm:()=>Nn,Tiy:()=>Ta,q3G:()=>wn,PiD:()=>Ii,tp0:()=>Oi,EAV:()=>Kc,Rgc:()=>tl,dDg:()=>Ic,DyG:()=>ci,GfV:()=>Ma,s_b:()=>al,ifc:()=>P,eFA:()=>Hc,Ez6:()=>w,G48:()=>Uc,Gpc:()=>p,f3M:()=>Ei,X6Q:()=>Bc,_c5:()=>eh,VLi:()=>Rc,c2e:()=>uc,zSh:()=>ws,wAp:()=>sa,vHH:()=>g,EiD:()=>vn,mCW:()=>en,qzn:()=>Yi,JVY:()=>ji,pB0:()=>Ji,eBb:()=>Qi,L6k:()=>Vi,LAX:()=>Wi,cg1:()=>ia,Tjo:()=>th,kL8:()=>na,yhl:()=>Gi,dqk:()=>q,sIi:()=>Ys,CqO:()=>po,QGY:()=>ho,F4k:()=>uo,RDi:()=>Et,AaK:()=>h,z3N:()=>Hi,qOj:()=>Ps,TTD:()=>vt,_Bn:()=>ga,xp6:()=>xr,uIk:()=>Ws,Tol:()=>Do,Gre:()=>Jo,ekj:()=>Oo,Suo:()=>Xl,Xpm:()=>K,lG2:()=>st,Yz7:()=>_,cJS:()=>x,oAB:()=>it,Yjl:()=>ot,Y36:()=>$s,_UZ:()=>so,GkF:()=>lo,BQk:()=>ao,ynx:()=>oo,qZA:()=>ro,TgZ:()=>no,EpF:()=>co,n5z:()=>ii,Ikx:()=>Xo,LFG:()=>Si,$8M:()=>ri,$Z:()=>to,NdJ:()=>fo,CRH:()=>Kl,kcU:()=>_e,O4$:()=>ve,oxw:()=>vo,ALo:()=>Ll,lcZ:()=>Il,xi3:()=>Ol,Dn7:()=>Dl,Hsn:()=>xo,F$t:()=>wo,Q6J:()=>eo,s9C:()=>Co,MGl:()=>Ao,DdM:()=>xl,VKq:()=>Cl,WLB:()=>Al,kEZ:()=>Sl,iGM:()=>Wl,MAs:()=>Ks,pYS:()=>Dn,Jf7:()=>On,CHM:()=>Gt,oJD:()=>xn,LSH:()=>Cn,kYT:()=>nt,Udp:()=>Io,WFA:()=>mo,d8E:()=>Ko,YNc:()=>Xs,W1O:()=>ic,_uU:()=>Go,Oqu:()=>jo,hij:()=>Vo,AsE:()=>Qo,HOy:()=>Wo,Gf:()=>Jl});var n=i(9666),r=i(6042),s=i(2391),o=i(5446),a=i(7839);function l(t){for(let e in t)if(t[e]===l)return e;throw Error("Could not find renamed property on target object.")}function c(t,e){for(const i in e)e.hasOwnProperty(i)&&!t.hasOwnProperty(i)&&(t[i]=e[i])}function h(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(h).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const e=t.toString();if(null==e)return""+e;const i=e.indexOf("\n");return-1===i?e:e.substring(0,i)}function u(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const d=l({__forward_ref__:l});function p(t){return t.__forward_ref__=p,t.toString=function(){return h(this())},t}function f(t){return m(t)?t():t}function m(t){return"function"==typeof t&&t.hasOwnProperty(d)&&t.__forward_ref__===p}class g extends Error{constructor(t,e){super(function(t,e){return`${t?`NG0${t}: `:""}${e}`}(t,e)),this.code=t}}function y(t){return"string"==typeof t?t:null==t?"":String(t)}function b(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():y(t)}function v(t,e){const i=e?` in ${e}`:"";throw new g("201",`No provider for ${b(t)} found${i}`)}function _(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}const w=_;function x(t){return{providers:t.providers||[],imports:t.imports||[]}}function C(t){return A(t,E)||A(t,T)}function A(t,e){return t.hasOwnProperty(e)?t[e]:null}function S(t){return t&&(t.hasOwnProperty(k)||t.hasOwnProperty(M))?t[k]:null}const E=l({"\u0275prov":l}),k=l({"\u0275inj":l}),T=l({ngInjectableDef:l}),M=l({ngInjectorDef:l});var L=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});let I;function O(t){const e=I;return I=t,e}function D(t,e,i){const n=C(t);return n&&"root"==n.providedIn?void 0===n.value?n.value=n.factory():n.value:i&L.Optional?null:void 0!==e?e:void v(h(t),"Injector")}function R(t){return{toString:t}.toString()}var N=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),P=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({});const F="undefined"!=typeof globalThis&&globalThis,Z="undefined"!=typeof window&&window,B="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,U="undefined"!=typeof global&&global,q=F||U||Z||B,z={},H=[],Y=l({"\u0275cmp":l}),G=l({"\u0275dir":l}),j=l({"\u0275pipe":l}),V=l({"\u0275mod":l}),Q=l({"\u0275loc":l}),W=l({"\u0275fac":l}),J=l({__NG_ELEMENT_ID__:l});let X=0;function K(t){return R(()=>{const e={},i={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===N.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||H,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||P.Emulated,id:"c",styles:t.styles||H,_:null,setInput:null,schemas:t.schemas||null,tView:null},n=t.directives,r=t.features,s=t.pipes;return i.id+=X++,i.inputs=rt(t.inputs,e),i.outputs=rt(t.outputs),r&&r.forEach(t=>t(i)),i.directiveDefs=n?()=>("function"==typeof n?n():n).map($):null,i.pipeDefs=s?()=>("function"==typeof s?s():s).map(tt):null,i})}function $(t){return at(t)||function(t){return t[G]||null}(t)}function tt(t){return function(t){return t[j]||null}(t)}const et={};function it(t){return R(()=>{const e={type:t.type,bootstrap:t.bootstrap||H,declarations:t.declarations||H,imports:t.imports||H,exports:t.exports||H,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(et[t.id]=t.type),e})}function nt(t,e){return R(()=>{const i=lt(t,!0);i.declarations=e.declarations||H,i.imports=e.imports||H,i.exports=e.exports||H})}function rt(t,e){if(null==t)return z;const i={};for(const n in t)if(t.hasOwnProperty(n)){let r=t[n],s=r;Array.isArray(r)&&(s=r[1],r=r[0]),i[r]=n,e&&(e[r]=s)}return i}const st=K;function ot(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function at(t){return t[Y]||null}function lt(t,e){const i=t[V]||null;if(!i&&!0===e)throw new Error(`Type ${h(t)} does not have '\u0275mod' property.`);return i}const ct=20,ht=10;function ut(t){return Array.isArray(t)&&"object"==typeof t[1]}function dt(t){return Array.isArray(t)&&!0===t[1]}function pt(t){return 0!=(8&t.flags)}function ft(t){return 2==(2&t.flags)}function mt(t){return 1==(1&t.flags)}function gt(t){return null!==t.template}function yt(t,e){return t.hasOwnProperty(W)?t[W]:null}class bt{constructor(t,e,i){this.previousValue=t,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function vt(){return _t}function _t(t){return t.type.prototype.ngOnChanges&&(t.setInput=xt),wt}function wt(){const t=Ct(this),e=null==t?void 0:t.current;if(e){const i=t.previous;if(i===z)t.previous=e;else for(let t in e)i[t]=e[t];t.current=null,this.ngOnChanges(e)}}function xt(t,e,i,n){const r=Ct(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:z,current:null}),s=r.current||(r.current={}),o=r.previous,a=this.declaredInputs[i],l=o[a];s[a]=new bt(l&&l.currentValue,e,o===z),t[n]=e}function Ct(t){return t.__ngSimpleChanges__||null}vt.ngInherit=!0;const At="http://www.w3.org/2000/svg";let St;function Et(t){St=t}function kt(){return void 0!==St?St:"undefined"!=typeof document?document:void 0}function Tt(t){return!!t.listen}const Mt={createRenderer:(t,e)=>kt()};function Lt(t){for(;Array.isArray(t);)t=t[0];return t}function It(t,e){return Lt(e[t])}function Ot(t,e){return Lt(e[t.index])}function Dt(t,e){return t.data[e]}function Rt(t,e){return t[e]}function Nt(t,e){const i=e[t];return ut(i)?i:i[0]}function Pt(t){return 4==(4&t[2])}function Ft(t){return 128==(128&t[2])}function Zt(t,e){return null==e?null:t[e]}function Bt(t){t[18]=0}function Ut(t,e){t[5]+=e;let i=t,n=t[3];for(;null!==n&&(1===e&&1===i[5]||-1===e&&0===i[5]);)n[5]+=e,i=n,n=n[3]}const qt={lFrame:de(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function zt(){return qt.bindingsEnabled}function Ht(){return qt.lFrame.lView}function Yt(){return qt.lFrame.tView}function Gt(t){return qt.lFrame.contextLView=t,t[8]}function jt(){let t=Vt();for(;null!==t&&64===t.type;)t=t.parent;return t}function Vt(){return qt.lFrame.currentTNode}function Qt(t,e){const i=qt.lFrame;i.currentTNode=t,i.isParent=e}function Wt(){return qt.lFrame.isParent}function Jt(){qt.lFrame.isParent=!1}function Xt(){return qt.isInCheckNoChangesMode}function Kt(t){qt.isInCheckNoChangesMode=t}function $t(){const t=qt.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function te(){return qt.lFrame.bindingIndex}function ee(){return qt.lFrame.bindingIndex++}function ie(t){const e=qt.lFrame,i=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,i}function ne(t,e){const i=qt.lFrame;i.bindingIndex=i.bindingRootIndex=t,re(e)}function re(t){qt.lFrame.currentDirectiveIndex=t}function se(t){const e=qt.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function oe(){return qt.lFrame.currentQueryIndex}function ae(t){qt.lFrame.currentQueryIndex=t}function le(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function ce(t,e,i){if(i&L.SkipSelf){let n=e,r=t;for(;n=n.parent,!(null!==n||i&L.Host||(n=le(r),null===n)||(r=r[15],10&n.type)););if(null===n)return!1;e=n,t=r}const n=qt.lFrame=ue();return n.currentTNode=e,n.lView=t,!0}function he(t){const e=ue(),i=t[1];qt.lFrame=e,e.currentTNode=i.firstChild,e.lView=t,e.tView=i,e.contextLView=t,e.bindingIndex=i.bindingStartIndex,e.inI18n=!1}function ue(){const t=qt.lFrame,e=null===t?null:t.child;return null===e?de(t):e}function de(t){const e={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:t,child:null,inI18n:!1};return null!==t&&(t.child=e),e}function pe(){const t=qt.lFrame;return qt.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const fe=pe;function me(){const t=pe();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function ge(){return qt.lFrame.selectedIndex}function ye(t){qt.lFrame.selectedIndex=t}function be(){const t=qt.lFrame;return Dt(t.tView,t.selectedIndex)}function ve(){qt.lFrame.currentNamespace=At}function _e(){qt.lFrame.currentNamespace=null}function we(t,e){for(let i=e.directiveStart,n=e.directiveEnd;i=n)break}else e[a]<0&&(t[18]+=65536),(o>11>16&&(3&t[2])===e){t[2]+=2048;try{s.call(o)}finally{}}}else try{s.call(o)}finally{}}const ke=-1;class Te{constructor(t,e,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function Me(t,e,i){const n=Tt(t);let r=0;for(;re){o=s-1;break}}}for(;s>16,n=e;for(;i>0;)n=n[15],i--;return n}let Fe=!0;function Ze(t){const e=Fe;return Fe=t,e}let Be=0;function Ue(t,e){const i=ze(t,e);if(-1!==i)return i;const n=e[1];n.firstCreatePass&&(t.injectorIndex=e.length,qe(n.data,t),qe(e,null),qe(n.blueprint,null));const r=He(t,e),s=t.injectorIndex;if(Re(r)){const t=Ne(r),i=Pe(r,e),n=i[1].data;for(let r=0;r<8;r++)e[s+r]=i[t+r]|n[t+r]}return e[s+8]=r,s}function qe(t,e){t.push(0,0,0,0,0,0,0,0,e)}function ze(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function He(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let i=0,n=null,r=e;for(;null!==r;){const t=r[1],e=t.type;if(n=2===e?t.declTNode:1===e?r[6]:null,null===n)return ke;if(i++,r=r[15],-1!==n.injectorIndex)return n.injectorIndex|i<<16}return ke}function Ye(t,e,i){!function(t,e,i){let n;"string"==typeof i?n=i.charCodeAt(0)||0:i.hasOwnProperty(J)&&(n=i[J]),null==n&&(n=i[J]=Be++);const r=255&n;e.data[t+(r>>5)]|=1<=0?255&e:We:e}(i);if("function"==typeof s){if(!ce(e,t,n))return n&L.Host?Ge(r,i,n):je(e,i,n,r);try{const t=s(n);if(null!=t||n&L.Optional)return t;v(i)}finally{fe()}}else if("number"==typeof s){let r=null,o=ze(t,e),a=ke,l=n&L.Host?e[16][6]:null;for((-1===o||n&L.SkipSelf)&&(a=-1===o?He(t,e):e[o+8],a!==ke&&ti(n,!1)?(r=e[1],o=Ne(a),e=Pe(a,e)):o=-1);-1!==o;){const t=e[1];if($e(s,o,t.data)){const t=Je(o,e,i,r,n,l);if(t!==Qe)return t}a=e[o+8],a!==ke&&ti(n,e[1].data[o+8]===l)&&$e(s,o,e)?(r=t,o=Ne(a),e=Pe(a,e)):o=-1}}}return je(e,i,n,r)}const Qe={};function We(){return new ei(jt(),Ht())}function Je(t,e,i,n,r,s){const o=e[1],a=o.data[t+8],l=Xe(a,o,i,null==n?ft(a)&&Fe:n!=o&&0!=(3&a.type),r&L.Host&&s===a);return null!==l?Ke(e,o,l,a):Qe}function Xe(t,e,i,n,r){const s=t.providerIndexes,o=e.data,a=1048575&s,l=t.directiveStart,c=s>>20,h=r?a+c:t.directiveEnd;for(let u=n?a:a+c;u=l&&t.type===i)return u}if(r){const t=o[l];if(t&>(t)&&t.type===i)return l}return null}function Ke(t,e,i,n){let r=t[i];const s=e.data;if(r instanceof Te){const o=r;o.resolving&&function(t,e){throw new g("200",`Circular dependency in DI detected for ${t}`)}(b(s[i]));const a=Ze(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?O(o.injectImpl):null;ce(t,n,L.Default);try{r=t[i]=o.factory(void 0,s,t,n),e.firstCreatePass&&i>=n.directiveStart&&function(t,e,i){const{ngOnChanges:n,ngOnInit:r,ngDoCheck:s}=e.type.prototype;if(n){const n=_t(e);(i.preOrderHooks||(i.preOrderHooks=[])).push(t,n),(i.preOrderCheckHooks||(i.preOrderCheckHooks=[])).push(t,n)}r&&(i.preOrderHooks||(i.preOrderHooks=[])).push(0-t,r),s&&((i.preOrderHooks||(i.preOrderHooks=[])).push(t,s),(i.preOrderCheckHooks||(i.preOrderCheckHooks=[])).push(t,s))}(i,s[i],e)}finally{null!==l&&O(l),Ze(a),o.resolving=!1,fe()}}return r}function $e(t,e,i){return!!(i[e+(t>>5)]&1<{const e=t.prototype.constructor,i=e[W]||ni(e),n=Object.prototype;let r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==n;){const t=r[W]||ni(r);if(t&&t!==i)return t;r=Object.getPrototypeOf(r)}return t=>new t})}function ni(t){return m(t)?()=>{const e=ni(f(t));return e&&e()}:yt(t)}function ri(t){return function(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;const i=t.attrs;if(i){const t=i.length;let n=0;for(;n{const n=function(t){return function(...e){if(t){const i=t(...e);for(const t in i)this[t]=i[t]}}}(e);function r(...t){if(this instanceof r)return n.apply(this,t),this;const e=new r(...t);return i.annotation=e,i;function i(t,i,n){const r=t.hasOwnProperty(si)?t[si]:Object.defineProperty(t,si,{value:[]})[si];for(;r.length<=n;)r.push(null);return(r[n]=r[n]||[]).push(e),t}}return i&&(r.prototype=Object.create(i.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r})}class ai{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=_({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const li=new ai("AnalyzeForEntryComponents"),ci=Function;function hi(t,e){void 0===e&&(e=t);for(let i=0;iArray.isArray(t)?ui(t,e):e(t))}function di(t,e,i){e>=t.length?t.push(i):t.splice(e,0,i)}function pi(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function fi(t,e){const i=[];for(let n=0;n=0?t[1|n]=i:(n=~n,function(t,e,i,n){let r=t.length;if(r==e)t.push(i,n);else if(1===r)t.push(n,t[0]),t[0]=i;else{for(r--,t.push(t[r-1],t[r]);r>e;)t[r]=t[r-2],r--;t[e]=i,t[e+1]=n}}(t,n,e,i)),n}function gi(t,e){const i=yi(t,e);if(i>=0)return t[1|i]}function yi(t,e){return function(t,e,i){let n=0,r=t.length>>1;for(;r!==n;){const i=n+(r-n>>1),s=t[i<<1];if(e===s)return i<<1;s>e?r=i:n=i+1}return~(r<<1)}(t,e)}const bi={},vi=/\n/gm,_i="__source",wi=l({provide:String,useValue:l});let xi;function Ci(t){const e=xi;return xi=t,e}function Ai(t,e=L.Default){if(void 0===xi)throw new Error("inject() must be called from an injection context");return null===xi?D(t,void 0,e):xi.get(t,e&L.Optional?null:void 0,e)}function Si(t,e=L.Default){return(I||Ai)(f(t),e)}const Ei=Si;function ki(t){const e=[];for(let i=0;i({token:t})),-1),Li=Ti(oi("Optional"),8),Ii=Ti(oi("Self"),2),Oi=Ti(oi("SkipSelf"),4);let Di,Ri;function Ni(t){var e;return(null===(e=function(){if(void 0===Di&&(Di=null,q.trustedTypes))try{Di=q.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(e){}return Di}())||void 0===e?void 0:e.createHTML(t))||t}function Pi(t){var e;return(null===(e=function(){if(void 0===Ri&&(Ri=null,q.trustedTypes))try{Ri=q.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(e){}return Ri}())||void 0===e?void 0:e.createHTML(t))||t}class Fi{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Zi extends Fi{getTypeName(){return"HTML"}}class Bi extends Fi{getTypeName(){return"Style"}}class Ui extends Fi{getTypeName(){return"Script"}}class qi extends Fi{getTypeName(){return"URL"}}class zi extends Fi{getTypeName(){return"ResourceURL"}}function Hi(t){return t instanceof Fi?t.changingThisBreaksApplicationSecurity:t}function Yi(t,e){const i=Gi(t);if(null!=i&&i!==e){if("ResourceURL"===i&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${i} (see https://g.co/ng/security#xss)`)}return i===e}function Gi(t){return t instanceof Fi&&t.getTypeName()||null}function ji(t){return new Zi(t)}function Vi(t){return new Bi(t)}function Qi(t){return new Ui(t)}function Wi(t){return new qi(t)}function Ji(t){return new zi(t)}class Xi{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(Ni(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class Ki{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const e=this.inertDocument.createElement("body");t.appendChild(e)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=Ni(t),e;const i=this.inertDocument.createElement("body");return i.innerHTML=Ni(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const e=t.attributes;for(let n=e.length-1;0en(t.trim())).join(", ")),this.buf.push(" ",e,'="',yn(o),'"')}var n;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();cn.hasOwnProperty(e)&&!sn.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(yn(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const mn=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,gn=/([^\#-~ |!])/g;function yn(t){return t.replace(/&/g,"&").replace(mn,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(gn,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let bn;function vn(t,e){let i=null;try{bn=bn||function(t){const e=new Ki(t);return function(){try{return!!(new window.DOMParser).parseFromString(Ni(""),"text/html")}catch(t){return!1}}()?new Xi(e):e}(t);let n=e?String(e):"";i=bn.getInertBodyElement(n);let r=5,s=n;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,n=s,s=i.innerHTML,i=bn.getInertBodyElement(n)}while(n!==s);return Ni((new fn).sanitizeChildren(_n(i)||i))}finally{if(i){const t=_n(i)||i;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function _n(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var wn=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({});function xn(t){const e=An();return e?Pi(e.sanitize(wn.HTML,t)||""):Yi(t,"HTML")?Pi(Hi(t)):vn(kt(),y(t))}function Cn(t){const e=An();return e?e.sanitize(wn.URL,t)||"":Yi(t,"URL")?Hi(t):en(y(t))}function An(){const t=Ht();return t&&t[12]}function Sn(t,e){t.__ngContext__=e}function En(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function kn(t){return t.ngDebugContext}function Tn(t){return t.ngOriginalError}function Mn(t,...e){t.error(...e)}class Ln{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),i=this._findContext(t),n=function(t){return t.ngErrorLogger||Mn}(t);n(this._console,"ERROR",t),e&&n(this._console,"ORIGINAL ERROR",e),i&&n(this._console,"ERROR CONTEXT",i)}_findContext(t){return t?kn(t)?kn(t):this._findContext(Tn(t)):null}_findOriginalError(t){let e=Tn(t);for(;e&&Tn(e);)e=Tn(e);return e}}const In=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(q))();function On(t){return t.ownerDocument.defaultView}function Dn(t){return t.ownerDocument.body}function Rn(t){return t instanceof Function?t():t}var Nn=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({});function Pn(t,e){return(void 0)(t,e)}function Fn(t){const e=t[3];return dt(e)?e[3]:e}function Zn(t){return Un(t[13])}function Bn(t){return Un(t[4])}function Un(t){for(;null!==t&&!dt(t);)t=t[4];return t}function qn(t,e,i,n,r){if(null!=n){let s,o=!1;dt(n)?s=n:ut(n)&&(o=!0,n=n[0]);const a=Lt(n);0===t&&null!==i?null==r?Wn(e,i,a):Qn(e,i,a,r||null,!0):1===t&&null!==i?Qn(e,i,a,r||null,!0):2===t?function(t,e,i){const n=Xn(t,e);n&&function(t,e,i,n){Tt(t)?t.removeChild(e,i,n):e.removeChild(i)}(t,n,e,i)}(e,a,o):3===t&&e.destroyNode(a),null!=s&&function(t,e,i,n,r){const s=i[7];s!==Lt(i)&&qn(e,t,n,s,r);for(let o=ht;o0&&(t[i-1][4]=n[4]);const o=pi(t,ht+e);sr(n[1],r=n,r[11],2,null,null),r[0]=null,r[6]=null;const a=o[19];null!==a&&a.detachView(o[1]),n[3]=null,n[4]=null,n[2]&=-129}var r;return n}function Gn(t,e){if(!(256&e[2])){const i=e[11];Tt(i)&&i.destroyNode&&sr(t,e,i,3,null,null),function(t){let e=t[13];if(!e)return jn(t[1],t);for(;e;){let i=null;if(ut(e))i=e[13];else{const t=e[10];t&&(i=t)}if(!i){for(;e&&!e[4]&&e!==t;)ut(e)&&jn(e[1],e),e=e[3];null===e&&(e=t),ut(e)&&jn(e[1],e),i=e&&e[4]}e=i}}(e)}}function jn(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let i;if(null!=t&&null!=(i=t.destroyHooks))for(let n=0;n=0?n[r=l]():n[r=-l].unsubscribe(),s+=2}else{const t=n[r=i[s+1]];i[s].call(t)}if(null!==n){for(let t=r+1;ts?"":r[h+1].toLowerCase();const e=8&n?t:null;if(e&&-1!==cr(e,c,0)||2&n&&c!==t){if(mr(n))return!1;o=!0}}}}else{if(!o&&!mr(n)&&!mr(l))return!1;if(o&&mr(l))continue;o=!1,n=l|1&n}}return mr(n)||o}function mr(t){return 0==(1&t)}function gr(t,e,i,n){if(null===e)return-1;let r=0;if(n||!i){let i=!1;for(;r-1)for(i++;i0?'="'+e+'"':"")+"]"}else 8&n?r+="."+o:4&n&&(r+=" "+o);else""===r||mr(o)||(e+=vr(s,r),r=""),n=o,s=s||!mr(n);i++}return""!==r&&(e+=vr(s,r)),e}const wr={};function xr(t){Cr(Yt(),Ht(),ge()+t,Xt())}function Cr(t,e,i,n){if(!n)if(3==(3&e[2])){const n=t.preOrderCheckHooks;null!==n&&xe(e,n,i)}else{const n=t.preOrderHooks;null!==n&&Ce(e,n,0,i)}ye(i)}function Ar(t,e){return t<<17|e<<2}function Sr(t){return t>>17&32767}function Er(t){return 2|t}function kr(t){return(131068&t)>>2}function Tr(t,e){return-131069&t|e<<2}function Mr(t){return 1|t}function Lr(t,e){const i=t.contentQueries;if(null!==i)for(let n=0;nct&&Cr(t,e,ct,Xt()),i(n,r)}finally{ye(s)}}function Zr(t,e,i){if(pt(e)){const n=e.directiveEnd;for(let r=e.directiveStart;r0;){const i=t[--e];if("number"==typeof i&&i<0)return i}return 0})(i)!=s&&i.push(s),i.push(n,r,o)}}function Qr(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function Wr(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function Jr(t,e,i){if(i){if(e.exportAs)for(let n=0;n0&&rs(i)}}function rs(t){for(let i=Zn(t);null!==i;i=Bn(i))for(let t=ht;t0&&rs(e)}const e=t[1].components;if(null!==e)for(let i=0;i0&&rs(n)}}function ss(t,e){const i=Nt(e,t),n=i[1];!function(t,e){for(let i=e.length;iPromise.resolve(null))();function ds(t){return t[7]||(t[7]=[])}function ps(t){return t.cleanup||(t.cleanup=[])}function fs(t,e,i){return(null===t||gt(t))&&(i=function(t){for(;Array.isArray(t);){if("object"==typeof t[1])return t;t=t[0]}return null}(i[e.index])),i[11]}function ms(t,e){const i=t[9],n=i?i.get(Ln,null):null;n&&n.handleError(e)}function gs(t,e,i,n,r){for(let s=0;sthis.processProvider(i,t,e)),ui([t],t=>this.processInjectorType(t,[],r)),this.records.set(vs,Ls(void 0,this));const s=this.records.get(ws);this.scope=null!=s?s.value:null,this.source=n||("object"==typeof t?null:h(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=bi,i=L.Default){this.assertNotDestroyed();const n=Ci(this);try{if(!(i&L.SkipSelf)){let e=this.records.get(t);if(void 0===e){const i=("function"==typeof(r=t)||"object"==typeof r&&r instanceof ai)&&C(t);e=i&&this.injectableDefInScope(i)?Ls(Ts(t),xs):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(i&L.Self?Ss():this.parent).get(t,e=i&L.Optional&&e===bi?null:e)}catch(s){if("NullInjectorError"===s.name){if((s.ngTempTokenPath=s.ngTempTokenPath||[]).unshift(h(t)),n)throw s;return function(t,e,i,n){const r=t.ngTempTokenPath;throw e[_i]&&r.unshift(e[_i]),t.message=function(t,e,i,n=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let r=h(e);if(Array.isArray(e))r=e.map(h).join(" -> ");else if("object"==typeof e){let t=[];for(let i in e)if(e.hasOwnProperty(i)){let n=e[i];t.push(i+":"+("string"==typeof n?JSON.stringify(n):h(n)))}r=`{${t.join(", ")}}`}return`${i}${n?"("+n+")":""}[${r}]: ${t.replace(vi,"\n ")}`}("\n"+t.message,r,i,n),t.ngTokenPath=r,t.ngTempTokenPath=null,t}(s,t,"R3InjectorError",this.source)}throw s}finally{Ci(n)}var r}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,i)=>t.push(h(i))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,i){if(!(t=f(t)))return!1;let n=S(t);const r=null==n&&t.ngModule||void 0,s=void 0===r?t:r,o=-1!==i.indexOf(s);if(void 0!==r&&(n=S(r)),null==n)return!1;if(null!=n.imports&&!o){let t;i.push(s);try{ui(n.imports,n=>{this.processInjectorType(n,e,i)&&(void 0===t&&(t=[]),t.push(n))})}finally{}if(void 0!==t)for(let e=0;ethis.processProvider(t,i,n||H))}}this.injectorDefTypes.add(s);const a=yt(s)||(()=>new s);this.records.set(s,Ls(a,xs));const l=n.providers;if(null!=l&&!o){const e=t;ui(l,t=>this.processProvider(t,e,l))}return void 0!==r&&void 0!==t.providers}processProvider(t,e,i){let n=Os(t=f(t))?t:f(t&&t.provide);const r=function(t,e,i){return Is(t)?Ls(void 0,t.useValue):Ls(Ms(t),xs)}(t);if(Os(t)||!0!==t.multi)this.records.get(n);else{let e=this.records.get(n);e||(e=Ls(void 0,xs,!0),e.factory=()=>ki(e.multi),this.records.set(n,e)),n=t,e.multi.push(t)}this.records.set(n,r)}hydrate(t,e){var i;return e.value===xs&&(e.value=Cs,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(i=e.value)&&"object"==typeof i&&"function"==typeof i.ngOnDestroy&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=f(t.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function Ts(t){const e=C(t),i=null!==e?e.factory:yt(t);if(null!==i)return i;if(t instanceof ai)throw new Error(`Token ${h(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const i=fi(e,"?");throw new Error(`Can't resolve all parameters for ${h(t)}: (${i.join(", ")}).`)}const i=function(t){const e=t&&(t[E]||t[T]);if(e){const i=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${i}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${i}" class.`),e}return null}(t);return null!==i?()=>i.factory(t):()=>new t}(t);throw new Error("unreachable")}function Ms(t,e,i){let n;if(Os(t)){const e=f(t);return yt(e)||Ts(e)}if(Is(t))n=()=>f(t.useValue);else if((r=t)&&r.useFactory)n=()=>t.useFactory(...ki(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))n=()=>Si(f(t.useExisting));else{const e=f(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return yt(e)||Ts(e);n=()=>new e(...ki(t.deps))}var r;return n}function Ls(t,e,i=!1){return{factory:t,value:e,multi:i?[]:void 0}}function Is(t){return null!==t&&"object"==typeof t&&wi in t}function Os(t){return"function"==typeof t}const Ds=function(t,e,i){return function(t,e=null,i=null,n){const r=Es(t,e,i,n);return r._resolveInjectorDefTypes(),r}({name:i},e,t,i)};let Rs=(()=>{class t{static create(t,e){return Array.isArray(t)?Ds(t,e,""):Ds(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=bi,t.NULL=new _s,t.\u0275prov=_({token:t,providedIn:"any",factory:()=>Si(vs)}),t.__NG_ELEMENT_ID__=-1,t})();function Ns(t,e){we(En(t)[1],jt())}function Ps(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,i=!0;const n=[t];for(;e;){let r;if(gt(t))r=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");r=e.\u0275dir}if(r){if(i){n.push(r);const e=t;e.inputs=Fs(t.inputs),e.declaredInputs=Fs(t.declaredInputs),e.outputs=Fs(t.outputs);const i=r.hostBindings;i&&Us(t,i);const s=r.viewQuery,o=r.contentQueries;if(s&&Zs(t,s),o&&Bs(t,o),c(t.inputs,r.inputs),c(t.declaredInputs,r.declaredInputs),c(t.outputs,r.outputs),gt(r)&&r.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(r.data.animation)}}const e=r.features;if(e)for(let n=0;n=0;n--){const r=t[n];r.hostVars=e+=r.hostVars,r.hostAttrs=Oe(r.hostAttrs,i=Oe(i,r.hostAttrs))}}(n)}function Fs(t){return t===z?{}:t===H?[]:t}function Zs(t,e){const i=t.viewQuery;t.viewQuery=i?(t,n)=>{e(t,n),i(t,n)}:e}function Bs(t,e){const i=t.contentQueries;t.contentQueries=i?(t,n,r)=>{e(t,n,r),i(t,n,r)}:e}function Us(t,e){const i=t.hostBindings;t.hostBindings=i?(t,n)=>{e(t,n),i(t,n)}:e}let qs=null;function zs(){if(!qs){const t=q.Symbol;if(t&&t.iterator)qs=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(Lt(t[n.index])):n.index;if(Tt(i)){let o=null;if(!a&&l&&(o=function(t,e,i,n){const r=t.cleanup;if(null!=r)for(let s=0;si?t[i]:null}"string"==typeof t&&(s+=2)}return null}(t,e,r,n.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=s,o.__ngLastListenerFn__=s,u=!1;else{s=bo(n,e,0,s,!1);const t=i.listen(p,r,s);h.push(s,t),c&&c.push(r,m,f,f+1)}}else s=bo(n,e,0,s,!0),p.addEventListener(r,s,o),h.push(s),c&&c.push(r,m,f,o)}else s=bo(n,e,0,s,!1);const d=n.outputs;let p;if(u&&null!==d&&(p=d[r])){const t=p.length;if(t)for(let i=0;i0;)e=e[15],t--;return e}(t,qt.lFrame.contextLView))[8]}(t)}function _o(t,e){let i=null;const n=function(t){const e=t.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(t);for(let r=0;r=0}const ko={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function To(t){return t.substring(ko.key,ko.keyEnd)}function Mo(t,e){const i=ko.textEnd;return i===e?-1:(e=ko.keyEnd=function(t,e,i){for(;e32;)e++;return e}(t,ko.key=e,i),Lo(t,e,i))}function Lo(t,e,i){for(;e=0;i=Mo(e,i))mi(t,To(e),!0)}function No(t,e,i,n){const r=Ht(),s=Yt(),o=ie(2);s.firstUpdatePass&&Zo(s,t,o,n),e!==wr&&Vs(r,o,e)&&qo(s,s.data[ge()],r,r[11],t,r[o+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=h(Hi(t)))),t}(e,i),n,o)}function Po(t,e,i,n){const r=Yt(),s=ie(2);r.firstUpdatePass&&Zo(r,null,s,n);const o=Ht();if(i!==wr&&Vs(o,s,i)){const a=r.data[ge()];if(Yo(a,n)&&!Fo(r,s)){let t=n?a.classesWithoutHost:a.stylesWithoutHost;null!==t&&(i=u(t,i||"")),io(r,a,o,i,n)}else!function(t,e,i,n,r,s,o,a){r===wr&&(r=H);let l=0,c=0,h=0=t.expandoStartIndex}function Zo(t,e,i,n){const r=t.data;if(null===r[i+1]){const s=r[ge()],o=Fo(t,i);Yo(s,n)&&null===e&&!o&&(e=!1),e=function(t,e,i,n){const r=se(t);let s=n?e.residualClasses:e.residualStyles;if(null===r)0===(n?e.classBindings:e.styleBindings)&&(i=Uo(i=Bo(null,t,e,i,n),e.attrs,n),s=null);else{const o=e.directiveStylingLast;if(-1===o||t[o]!==r)if(i=Bo(r,t,e,i,n),null===s){let i=function(t,e,i){const n=i?e.classBindings:e.styleBindings;if(0!==kr(n))return t[Sr(n)]}(t,e,n);void 0!==i&&Array.isArray(i)&&(i=Bo(null,t,e,i[1],n),i=Uo(i,e.attrs,n),function(t,e,i,n){t[Sr(i?e.classBindings:e.styleBindings)]=n}(t,e,n,i))}else s=function(t,e,i){let n;const r=e.directiveEnd;for(let s=1+e.directiveStylingLast;s0)&&(h=!0)}else c=i;if(r)if(0!==l){const e=Sr(t[a+1]);t[n+1]=Ar(e,a),0!==e&&(t[e+1]=Tr(t[e+1],n)),t[a+1]=131071&t[a+1]|n<<17}else t[n+1]=Ar(a,0),0!==a&&(t[a+1]=Tr(t[a+1],n)),a=n;else t[n+1]=Ar(l,0),0===a?a=n:t[l+1]=Tr(t[l+1],n),l=n;h&&(t[n+1]=Er(t[n+1])),So(t,c,n,!0),So(t,c,n,!1),function(t,e,i,n,r){const s=r?t.residualClasses:t.residualStyles;null!=s&&"string"==typeof e&&yi(s,e)>=0&&(i[n+1]=Mr(i[n+1]))}(e,c,t,n,s),o=Ar(a,l),s?e.classBindings=o:e.styleBindings=o}(r,s,e,i,o,n)}}function Bo(t,e,i,n,r){let s=null;const o=i.directiveEnd;let a=i.directiveStylingLast;for(-1===a?a=i.directiveStart:a++;a0;){const e=t[r],s=Array.isArray(e),l=s?e[1]:e,c=null===l;let h=i[r+1];h===wr&&(h=c?H:void 0);let u=c?gi(h,n):l===n?h:void 0;if(s&&!Ho(u)&&(u=gi(e,n)),Ho(u)&&(a=u,o))return a;const d=t[r+1];r=o?Sr(d):kr(d)}if(null!==e){let t=s?e.residualClasses:e.residualStyles;null!=t&&(a=gi(t,n))}return a}function Ho(t){return void 0!==t}function Yo(t,e){return 0!=(t.flags&(e?16:32))}function Go(t,e=""){const i=Ht(),n=Yt(),r=t+ct,s=n.firstCreatePass?Or(n,r,1,e,null):n.data[r],o=i[r]=function(t,e){return Tt(t)?t.createText(e):t.createTextNode(e)}(i[11],e);tr(n,i,o,s),Qt(s,!1)}function jo(t){return Vo("",t,""),jo}function Vo(t,e,i){const n=Ht(),r=Js(n,t,e,i);return r!==wr&&ys(n,ge(),r),Vo}function Qo(t,e,i,n,r){const s=Ht(),o=function(t,e,i,n,r,s){const o=Qs(t,te(),i,r);return ie(2),o?e+y(i)+n+y(r)+s:wr}(s,t,e,i,n,r);return o!==wr&&ys(s,ge(),o),Qo}function Wo(t,e,i,n,r,s,o,a,l){const c=Ht(),h=function(t,e,i,n,r,s,o,a,l,c){const h=function(t,e,i,n,r,s){const o=Qs(t,e,i,n);return Qs(t,e+2,r,s)||o}(t,te(),i,r,o,l);return ie(4),h?e+y(i)+n+y(r)+s+y(o)+a+y(l)+c:wr}(c,t,e,i,n,r,s,o,a,l);return h!==wr&&ys(c,ge(),h),Wo}function Jo(t,e,i){Po(mi,Ro,Js(Ht(),t,e,i),!0)}function Xo(t,e,i){const n=Ht();return Vs(n,ee(),e)&&Gr(Yt(),be(),n,t,e,n[11],i,!0),Xo}function Ko(t,e,i){const n=Ht();if(Vs(n,ee(),e)){const r=Yt(),s=be();Gr(r,s,n,t,e,fs(se(r.data),s,n),i,!0)}return Ko}const $o=void 0;var ta=["en",[["a","p"],["AM","PM"],$o],[["AM","PM"],$o,$o],[["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"]],$o,[["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"]],$o,[["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}",$o,"{1} 'at' {0}",$o],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){let e=Math.floor(Math.abs(t)),i=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===i?1:5}];let ea={};function ia(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let i=ra(e);if(i)return i;const n=e.split("-")[0];if(i=ra(n),i)return i;if("en"===n)return ta;throw new Error(`Missing locale data for the locale "${t}".`)}function na(t){return ia(t)[sa.PluralCase]}function ra(t){return t in ea||(ea[t]=q.ng&&q.ng.common&&q.ng.common.locales&&q.ng.common.locales[t]),ea[t]}var sa=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}({});const oa="en-US";let aa=oa;function la(t){var e,i;i="Expected localeId to be defined",null==(e=t)&&function(t,e,i,n){throw new Error(`ASSERTION ERROR: ${t} [Expected=> null != ${e} <=Actual]`)}(i,e),"string"==typeof t&&(aa=t.toLowerCase().replace(/_/g,"-"))}function ca(t,e,i,n,r){if(t=f(t),Array.isArray(t))for(let s=0;s>20;if(Os(t)||!t.multi){const n=new Te(l,r,$s),p=da(a,e,r?h:h+d,u);-1===p?(Ye(Ue(c,o),s,a),ha(s,t,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),i.push(n),o.push(n)):(i[p]=n,o[p]=n)}else{const p=da(a,e,h+d,u),f=da(a,e,h,h+d),m=p>=0&&i[p],g=f>=0&&i[f];if(r&&!g||!r&&!m){Ye(Ue(c,o),s,a);const h=function(t,e,i,n,r){const s=new Te(t,i,$s);return s.multi=[],s.index=e,s.componentProviders=0,ua(s,r,n&&!i),s}(r?fa:pa,i.length,r,n,l);!r&&g&&(i[f].providerFactory=h),ha(s,t,e.length,0),e.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),i.push(h),o.push(h)}else ha(s,t,p>-1?p:f,ua(i[r?f:p],l,!r&&n));!r&&n&&g&&i[f].componentProviders++}}}function ha(t,e,i,n){const r=Os(e);if(r||e.useClass){const s=(e.useClass||e).prototype.ngOnDestroy;if(s){const o=t.destroyHooks||(t.destroyHooks=[]);if(!r&&e.multi){const t=o.indexOf(i);-1===t?o.push(i,[n,s]):o[t+1].push(n,s)}else o.push(i,s)}}}function ua(t,e,i){return i&&t.componentProviders++,t.multi.push(e)-1}function da(t,e,i,n){for(let r=i;r{i.providersResolver=(i,n)=>function(t,e,i){const n=Yt();if(n.firstCreatePass){const r=gt(t);ca(i,n.data,n.blueprint,r,!0),ca(e,n.data,n.blueprint,r,!1)}}(i,n?n(t):t,e)}}class ya{}class ba{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${h(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let va=(()=>{class t{}return t.NULL=new ba,t})();function _a(...t){}function wa(t,e){return new Ca(Ot(t,e))}const xa=function(){return wa(jt(),Ht())};let Ca=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=xa,t})();function Aa(t){return t instanceof Ca?t.nativeElement:t}class Sa{}let Ea=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>ka(),t})();const ka=function(){const t=Ht(),e=Nt(jt().index,t);return function(t){return t[11]}(ut(e)?e:t)};let Ta=(()=>{class t{}return t.\u0275prov=_({token:t,providedIn:"root",factory:()=>null}),t})();class Ma{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const La=new Ma("12.0.5");class Ia{constructor(){}supports(t){return Ys(t)}create(t){return new Da(t)}}const Oa=(t,e)=>e;class Da{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||Oa}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,i=this._removalsHead,n=0,r=null;for(;e||i;){const s=!i||e&&e.currentIndex{n=this._trackByFn(e,t),null!==r&&Object.is(r.trackById,n)?(s&&(r=this._verifyReinsertion(r,t,n,e)),Object.is(r.item,t)||this._addIdentityChange(r,t)):(r=this._mismatch(r,t,n,e),s=!0),r=r._next,e++}),this.length=e;return this._truncate(r),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,i,n){let r;return null===t?r=this._itTail:(r=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,r,n)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,n))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,r,n)):t=this._addAfter(new Ra(e,i),r,n),t}_verifyReinsertion(t,e,i,n){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==r?t=this._reinsertAfter(r,t._prev,n):t.currentIndex!=n&&(t.currentIndex=n,this._addToMoves(t,n)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}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,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const n=t._prevRemoved,r=t._nextRemoved;return null===n?this._removalsHead=r:n._nextRemoved=r,null===r?this._removalsTail=n:r._prevRemoved=n,this._insertAfter(t,e,i),this._addToMoves(t,i),t}_moveAfter(t,e,i){return this._unlink(t),this._insertAfter(t,e,i),this._addToMoves(t,i),t}_addAfter(t,e,i){return this._insertAfter(t,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,i){const n=null===e?this._itHead:e._next;return t._next=n,t._prev=e,null===n?this._itTail=t:n._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Pa),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,i=t._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Pa),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,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class Ra{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Na{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const e=t._prevDup,i=t._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class Pa{constructor(){this.map=new Map}put(t){const e=t.trackById;let i=this.map.get(e);i||(i=new Na,this.map.set(e,i)),i.add(t)}get(t,e){const i=this.map.get(t);return i?i.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Fa(t,e,i){const n=t.previousIndex;if(null===n)return n;let r=0;return i&&n{if(e&&e.key===i)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const n=this._getOrCreateRecordForKey(i,t);e=this._insertBeforeOrAppend(e,n)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const i=t._prev;return e._next=t,e._prev=i,t._prev=e,i&&(i._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const i=this._records.get(t);this._maybeAddToChanges(i,e);const n=i._prev,r=i._next;return n&&(n._next=r),r&&(r._prev=n),i._next=null,i._prev=null,i}const i=new Ua(t);return this._records.set(t,i),i.currentValue=e,this._addToAdditions(i),i}_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,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,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,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(i=>e(t[i],i))}}class Ua{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function qa(){return new za([new Ia])}let za=(()=>{class t{constructor(t){this.factories=t}static create(e,i){if(null!=i){const t=i.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||qa()),deps:[[t,new Oi,new Li]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${i=t,i.name||typeof i}'`);var i}}return t.\u0275prov=_({token:t,providedIn:"root",factory:qa}),t})();function Ha(){return new Ya([new Za])}let Ya=(()=>{class t{constructor(t){this.factories=t}static create(e,i){if(i){const t=i.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||Ha()),deps:[[t,new Oi,new Li]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=_({token:t,providedIn:"root",factory:Ha}),t})();function Ga(t,e,i,n,r=!1){for(;null!==i;){const s=e[i.index];if(null!==s&&n.push(Lt(s)),dt(s))for(let t=ht;t-1&&(Yn(t,i),pi(e,i))}this._attachedToViewContainer=!1}Gn(this._lView[1],this._lView)}onDestroy(t){Hr(this._lView[1],this._lView,null,t)}markForCheck(){as(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){ls(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,i){Kt(!0);try{ls(t,e,i)}finally{Kt(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var t;this._appRef=null,sr(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class Va extends ja{constructor(t){super(t),this._view=t}detectChanges(){cs(this._view)}checkNoChanges(){!function(t){Kt(!0);try{cs(t)}finally{Kt(!1)}}(this._view)}get context(){return null}}const Qa=function(t){return function(t,e,i){if(ft(t)&&!i){const i=Nt(t.index,e);return new ja(i,i)}return 47&t.type?new ja(e[16],e):null}(jt(),Ht(),16==(16&t))};let Wa=(()=>{class t{}return t.__NG_ELEMENT_ID__=Qa,t})();const Ja=[new Za],Xa=new za([new Ia]),Ka=new Ya(Ja),$a=function(){return nl(jt(),Ht())};let tl=(()=>{class t{}return t.__NG_ELEMENT_ID__=$a,t})();const el=tl,il=class extends el{constructor(t,e,i){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(t){const e=this._declarationTContainer.tViews,i=Ir(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const n=this._declarationLView[19];return null!==n&&(i[19]=n.createEmbeddedView(e)),Rr(e,i,t),new ja(i)}};function nl(t,e){return 4&t.type?new il(e,t,wa(t,e)):null}class rl{}class sl{}const ol=function(){return dl(jt(),Ht())};let al=(()=>{class t{}return t.__NG_ELEMENT_ID__=ol,t})();const ll=al,cl=class extends ll{constructor(t,e,i){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=i}get element(){return wa(this._hostTNode,this._hostLView)}get injector(){return new ei(this._hostTNode,this._hostLView)}get parentInjector(){const t=He(this._hostTNode,this._hostLView);if(Re(t)){const e=Pe(t,this._hostLView),i=Ne(t);return new ei(e[1].data[i+8],e)}return new ei(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=hl(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-ht}createEmbeddedView(t,e,i){const n=t.createEmbeddedView(e||{});return this.insert(n,i),n}createComponent(t,e,i,n,r){const s=i||this.parentInjector;if(!r&&null==t.ngModule&&s){const t=s.get(rl,null);t&&(r=t)}const o=t.create(s,n,void 0,r);return this.insert(o.hostView,e),o}insert(t,e){const i=t._lView,n=i[1];if(dt(i[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=i[3],n=new cl(e,e[6],e[3]);n.detach(n.indexOf(t))}}const r=this._adjustIndex(e),s=this._lContainer;!function(t,e,i,n){const r=ht+n,s=i.length;n>0&&(i[r-1][4]=e),nIn});class yl extends ya{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(_r).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return ml(this.componentDef.inputs)}get outputs(){return ml(this.componentDef.outputs)}create(t,e,i,n){const r=(n=n||this.ngModule)?function(t,e){return{get:(i,n,r)=>{const s=t.get(i,pl,r);return s!==pl||n===pl?s:e.get(i,n,r)}}}(t,n.injector):t,s=r.get(Sa,Mt),o=r.get(Ta,null),a=s.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=i?function(t,e,i){if(Tt(t))return t.selectRootElement(e,i===P.ShadowDom);let n="string"==typeof e?t.querySelector(e):e;return n.textContent="",n}(a,i,this.componentDef.encapsulation):zn(s.createRenderer(null,this.componentDef),l,function(t){const e=t.toLowerCase();return"svg"===e?At:"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),h=this.componentDef.onPush?576:528,u={components:[],scheduler:In,clean:us,playerHandler:null,flags:0},d=zr(0,null,null,1,0,null,null,null,null,null),p=Ir(null,d,u,h,null,null,s,a,o,r);let f,m;he(p);try{const t=function(t,e,i,n,r,s){const o=i[1];i[20]=t;const a=Or(o,20,2,"#host",null),l=a.mergedAttrs=e.hostAttrs;null!==l&&(bs(a,l,!0),null!==t&&(Me(r,t,l),null!==a.classes&&lr(r,t,a.classes),null!==a.styles&&ar(r,t,a.styles)));const c=n.createRenderer(t,e),h=Ir(i,qr(e),null,e.onPush?64:16,i[20],a,n,c,null,null);return o.firstCreatePass&&(Ye(Ue(a,i),o,e.type),Wr(o,a),Xr(a,i.length,1)),os(i,h),i[20]=h}(c,this.componentDef,p,s,a);if(c)if(i)Me(a,c,["ng-version",La.full]);else{const{attrs:t,classes:e}=function(t){const e=[],i=[];let n=1,r=2;for(;n0&&lr(a,c,e.join(" "))}if(m=Dt(d,ct),void 0!==e){const t=m.projection=[];for(let i=0;it(o,e)),e.contentQueries){const t=jt();e.contentQueries(1,o,t.directiveStart)}const a=jt();return!s.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(ye(a.index),Vr(i[1],a,0,a.directiveStart,a.directiveEnd,e),Qr(e,o)),o}(t,this.componentDef,p,u,[Ns]),Rr(d,p,null)}finally{me()}return new bl(this.componentType,f,wa(m,p),p,m)}}class bl extends class{}{constructor(t,e,i,n,r){super(),this.location=i,this._rootLView=n,this._tNode=r,this.instance=e,this.hostView=this.changeDetectorRef=new Va(n),this.componentType=t}get injector(){return new ei(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const vl=new Map;class _l extends rl{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new fl(this);const i=lt(t),n=t[Q]||null;n&&la(n),this._bootstrapComponents=Rn(i.bootstrap),this._r3Injector=Es(t,e,[{provide:rl,useValue:this},{provide:va,useValue:this.componentFactoryResolver}],h(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=Rs.THROW_IF_NOT_FOUND,i=L.Default){return t===Rs||t===rl||t===vs?this:this._r3Injector.get(t,e,i)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class wl extends sl{constructor(t){super(),this.moduleType=t,null!==lt(t)&&function(t){const e=new Set;!function t(i){const n=lt(i,!0),r=n.id;null!==r&&(function(t,e,i){if(e&&e!==i)throw new Error(`Duplicate module registered for ${t} - ${h(e)} vs ${h(e.name)}`)}(r,vl.get(r),i),vl.set(r,i));const s=Rn(n.imports);for(const o of s)e.has(o)||(e.add(o),t(o))}(t)}(t)}create(t){return new _l(this.moduleType,t)}}function xl(t,e,i){const n=$t()+t,r=Ht();return r[n]===wr?js(r,n,i?e.call(i):e()):function(t,e){return t[e]}(r,n)}function Cl(t,e,i,n){return kl(Ht(),$t(),t,e,i,n)}function Al(t,e,i,n,r){return Tl(Ht(),$t(),t,e,i,n,r)}function Sl(t,e,i,n,r,s){return Ml(Ht(),$t(),t,e,i,n,r,s)}function El(t,e){const i=t[e];return i===wr?void 0:i}function kl(t,e,i,n,r,s){const o=e+i;return Vs(t,o,r)?js(t,o+1,s?n.call(s,r):n(r)):El(t,o+1)}function Tl(t,e,i,n,r,s,o){const a=e+i;return Qs(t,a,r,s)?js(t,a+2,o?n.call(o,r,s):n(r,s)):El(t,a+2)}function Ml(t,e,i,n,r,s,o,a){const l=e+i;return function(t,e,i,n,r){const s=Qs(t,e,i,n);return Vs(t,e+2,r)||s}(t,l,r,s,o)?js(t,l+3,a?n.call(a,r,s,o):n(r,s,o)):El(t,l+3)}function Ll(t,e){const i=Yt();let n;const r=t+ct;i.firstCreatePass?(n=function(t,e){if(e)for(let i=e.length-1;i>=0;i--){const n=e[i];if(t===n.name)return n}throw new g("302",`The pipe '${t}' could not be found!`)}(e,i.pipeRegistry),i.data[r]=n,n.onDestroy&&(i.destroyHooks||(i.destroyHooks=[])).push(r,n.onDestroy)):n=i.data[r];const s=n.factory||(n.factory=yt(n.type)),o=O($s);try{const t=Ze(!1),e=s();return Ze(t),function(t,e,i,n){i>=t.data.length&&(t.data[i]=null,t.blueprint[i]=null),e[i]=n}(i,Ht(),r,e),e}finally{O(o)}}function Il(t,e,i){const n=t+ct,r=Ht(),s=Rt(r,n);return Nl(r,Rl(r,n)?kl(r,$t(),e,s.transform,i,s):s.transform(i))}function Ol(t,e,i,n){const r=t+ct,s=Ht(),o=Rt(s,r);return Nl(s,Rl(s,r)?Tl(s,$t(),e,o.transform,i,n,o):o.transform(i,n))}function Dl(t,e,i,n,r){const s=t+ct,o=Ht(),a=Rt(o,s);return Nl(o,Rl(o,s)?Ml(o,$t(),e,a.transform,i,n,r,a):a.transform(i,n,r))}function Rl(t,e){return t[1].data[e].pure}function Nl(t,e){return Hs.isWrapped(e)&&(e=Hs.unwrap(e),t[te()]=wr),e}function Pl(t){return e=>{setTimeout(t,void 0,e)}}const Fl=class extends n.x{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,i){var n,s,o;let a=t,l=e||(()=>null),c=i;if(t&&"object"==typeof t){const e=t;a=null===(n=e.next)||void 0===n?void 0:n.bind(e),l=null===(s=e.error)||void 0===s?void 0:s.bind(e),c=null===(o=e.complete)||void 0===o?void 0:o.bind(e)}this.__isAsync&&(l=Pl(l),a&&(a=Pl(a)),c&&(c=Pl(c)));const h=super.subscribe({next:a,error:l,complete:c});return t instanceof r.w0&&t.add(h),h}};function Zl(){return this._results[zs()]()}class Bl{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=zs(),i=Bl.prototype;i[e]||(i[e]=Zl)}get changes(){return this._changes||(this._changes=new Fl)}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,e){return this._results.reduce(t,e)}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,e){const i=this;i.dirty=!1;const n=hi(t);(this._changesDetected=!function(t,e,i){if(t.length!==e.length)return!1;for(let n=0;n0)n.push(o[t/2]);else{const r=s[t+1],o=e[-i];for(let t=ht;t{class t{constructor(t){this.appInits=t,this.resolve=_a,this.reject=_a,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let i=0;i{e.subscribe({complete:t,error:i})});t.push(i)}}Promise.all(t).then(()=>{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(Si(nc,8))},t.\u0275prov=_({token:t,factory:t.\u0275fac}),t})();const sc=new ai("AppId"),oc={provide:sc,useFactory:function(){return`${ac()}${ac()}${ac()}`},deps:[]};function ac(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const lc=new ai("Platform Initializer"),cc=new ai("Platform ID"),hc=new ai("appBootstrapListener");let uc=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_({token:t,factory:t.\u0275fac}),t})();const dc=new ai("LocaleId"),pc=new ai("DefaultCurrencyCode");class fc{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const mc=function(t){return new wl(t)},gc=mc,yc=function(t){return Promise.resolve(mc(t))},bc=function(t){const e=mc(t),i=Rn(lt(t).declarations).reduce((t,e)=>{const i=at(e);return i&&t.push(new yl(i)),t},[]);return new fc(e,i)},vc=bc,_c=function(t){return Promise.resolve(bc(t))};let wc=(()=>{class t{constructor(){this.compileModuleSync=gc,this.compileModuleAsync=yc,this.compileModuleAndAllComponentsSync=vc,this.compileModuleAndAllComponentsAsync=_c}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_({token:t,factory:t.\u0275fac}),t})();const xc=(()=>Promise.resolve(0))();function Cc(t){"undefined"==typeof Zone?xc.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class Ac{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Fl(!1),this.onMicrotaskEmpty=new Fl(!1),this.onStable=new Fl(!1),this.onError=new Fl(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const n=this;n._nesting=0,n._outer=n._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(n._inner=n._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(n._inner=n._inner.fork(Zone.longStackTraceZoneSpec)),n.shouldCoalesceEventChangeDetection=!i&&e,n.shouldCoalesceRunChangeDetection=i,n.lastRequestAnimationFrameId=-1,n.nativeRequestAnimationFrame=function(){let t=q.requestAnimationFrame,e=q.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i);const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=()=>{!function(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(q,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,kc(t),t.isCheckStableRunning=!0,Ec(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),kc(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(i,n,r,s,o,a)=>{try{return Tc(t),i.invokeTask(r,s,o,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||t.shouldCoalesceRunChangeDetection)&&e(),Mc(t)}},onInvoke:(i,n,r,s,o,a,l)=>{try{return Tc(t),i.invoke(r,s,o,a,l)}finally{t.shouldCoalesceRunChangeDetection&&e(),Mc(t)}},onHasTask:(e,i,n,r)=>{e.hasTask(n,r),i===n&&("microTask"==r.change?(t._hasPendingMicrotasks=r.microTask,kc(t),Ec(t)):"macroTask"==r.change&&(t.hasPendingMacrotasks=r.macroTask))},onHandleError:(e,i,n,r)=>(e.handleError(n,r),t.runOutsideAngular(()=>t.onError.emit(r)),!1)})}(n)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Ac.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Ac.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,i){return this._inner.run(t,e,i)}runTask(t,e,i,n){const r=this._inner,s=r.scheduleEventTask("NgZoneEvent: "+n,t,Sc,_a,_a);try{return r.runTask(s,e,i)}finally{r.cancelTask(s)}}runGuarded(t,e,i){return this._inner.runGuarded(t,e,i)}runOutsideAngular(t){return this._outer.run(t)}}const Sc={};function Ec(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function kc(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function Tc(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Mc(t){t._nesting--,Ec(t)}class Lc{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Fl,this.onMicrotaskEmpty=new Fl,this.onStable=new Fl,this.onError=new Fl}run(t,e,i){return t.apply(e,i)}runGuarded(t,e,i){return t.apply(e,i)}runOutsideAngular(t){return t()}runTask(t,e,i,n){return t.apply(e,i)}}let Ic=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Ac.assertNotInAngularZone(),Cc(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Cc(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,i){let n=-1;e&&e>0&&(n=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==n),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:n,updateCb:i})}whenStable(t,e,i){if(i&&!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(t,e,i),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,i){return[]}}return t.\u0275fac=function(e){return new(e||t)(Si(Ac))},t.\u0275prov=_({token:t,factory:t.\u0275fac}),t})(),Oc=(()=>{class t{constructor(){this._applications=new Map,Pc.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return Pc.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_({token:t,factory:t.\u0275fac}),t})();class Dc{addToWindow(t){}findTestabilityInTree(t,e,i){return null}}function Rc(t){Pc=t}let Nc,Pc=new Dc,Fc=!0,Zc=!1;function Bc(){return Zc=!0,Fc}function Uc(){if(Zc)throw new Error("Cannot enable prod mode after platform setup.");Fc=!1}const qc=new ai("AllowMultipleToken");class zc{constructor(t,e){this.name=t,this.token=e}}function Hc(t,e,i=[]){const n=`Platform: ${e}`,r=new ai(n);return(e=[])=>{let s=Yc();if(!s||s.injector.get(qc,!1))if(t)t(i.concat(e).concat({provide:r,useValue:!0}));else{const t=i.concat(e).concat({provide:r,useValue:!0},{provide:ws,useValue:"platform"});!function(t){if(Nc&&!Nc.destroyed&&!Nc.injector.get(qc,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Nc=t.get(Gc);const e=t.get(lc,null);e&&e.forEach(t=>t())}(Rs.create({providers:t,name:n}))}return function(t){const e=Yc();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(r)}}function Yc(){return Nc&&!Nc.destroyed?Nc:null}let Gc=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const i=function(t,e){let i;return i="noop"===t?new Lc:("zone.js"===t?void 0:t)||new Ac({enableLongStackTrace:Bc(),shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),i}(e?e.ngZone:void 0,{ngZoneEventCoalescing:e&&e.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:e&&e.ngZoneRunCoalescing||!1}),n=[{provide:Ac,useValue:i}];return i.run(()=>{const e=Rs.create({providers:n,parent:this.injector,name:t.moduleType.name}),r=t.create(e),s=r.injector.get(Ln,null);if(!s)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return i.runOutsideAngular(()=>{const t=i.onError.subscribe({next:t=>{s.handleError(t)}});r.onDestroy(()=>{Qc(this._modules,r),t.unsubscribe()})}),function(t,e,i){try{const n=i();return ho(n)?n.catch(i=>{throw e.runOutsideAngular(()=>t.handleError(i)),i}):n}catch(n){throw e.runOutsideAngular(()=>t.handleError(n)),n}}(s,i,()=>{const t=r.injector.get(rc);return t.runInitializers(),t.donePromise.then(()=>(la(r.injector.get(dc,oa)||oa),this._moduleDoBootstrap(r),r))})})}bootstrapModule(t,e=[]){const i=jc({},e);return function(t,e,i){const n=new wl(i);return Promise.resolve(n)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,i))}_moduleDoBootstrap(t){const e=t.injector.get(Vc);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${h(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(Si(Rs))},t.\u0275prov=_({token:t,factory:t.\u0275fac}),t})();function jc(t,e){return Array.isArray(e)?e.reduce(jc,t):Object.assign(Object.assign({},t),e)}let Vc=(()=>{class t{constructor(t,e,i,n,r){this._zone=t,this._injector=e,this._exceptionHandler=i,this._componentFactoryResolver=n,this._initStatus=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const l=new s.y(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),c=new s.y(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{Ac.assertNotInAngularZone(),Cc(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const i=this._zone.onUnstable.subscribe(()=>{Ac.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),i.unsubscribe()}});this.isStable=(0,o.T)(l,c.pipe((0,a.B)()))}bootstrap(t,e){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let i;i=t instanceof ya?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(i.componentType);const n=i.isBoundToModule?void 0:this._injector.get(rl),r=i.create(Rs.NULL,[],e||i.selector,n),s=r.location.nativeElement,o=r.injector.get(Ic,null),a=o&&r.injector.get(Oc);return o&&a&&a.registerApplication(s,o),r.onDestroy(()=>{this.detachView(r.hostView),Qc(this.components,r),a&&a.unregisterApplication(s)}),this._loadComponent(r),r}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;Qc(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(hc,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(Si(Ac),Si(Rs),Si(Ln),Si(va),Si(rc))},t.\u0275prov=_({token:t,factory:t.\u0275fac}),t})();function Qc(t,e){const i=t.indexOf(e);i>-1&&t.splice(i,1)}class Wc{}class Jc{}const Xc={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let Kc=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||Xc}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,n]=t.split("#");return void 0===n&&(n="default"),i(8255)(e).then(t=>t[n]).then(t=>$c(t,e,n)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,n]=t.split("#"),r="NgFactory";return void 0===n&&(n="default",r=""),i(8255)(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[n+r]).then(t=>$c(t,e,n))}}return t.\u0275fac=function(e){return new(e||t)(Si(wc),Si(Jc,8))},t.\u0275prov=_({token:t,factory:t.\u0275fac}),t})();function $c(t,e,i){if(!t)throw new Error(`Cannot find '${i}' in '${e}'`);return t}const th=function(t){return null},eh=Hc(null,"core",[{provide:cc,useValue:"unknown"},{provide:Gc,deps:[Rs]},{provide:Oc,deps:[]},{provide:uc,deps:[]}]),ih=[{provide:Vc,useClass:Vc,deps:[Ac,Rs,Ln,va,rc]},{provide:gl,deps:[Ac],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:rc,useClass:rc,deps:[[new Li,nc]]},{provide:wc,useClass:wc,deps:[]},oc,{provide:za,useFactory:function(){return Xa},deps:[]},{provide:Ya,useFactory:function(){return Ka},deps:[]},{provide:dc,useFactory:function(t){return la(t=t||"undefined"!=typeof $localize&&$localize.locale||oa),t},deps:[[new Mi(dc),new Li,new Oi]]},{provide:pc,useValue:"USD"}];let nh=(()=>{class t{constructor(t){}}return t.\u0275fac=function(e){return new(e||t)(Si(Vc))},t.\u0275mod=it({type:t}),t.\u0275inj=x({providers:ih}),t})()},1463:(t,e,i)=>{"use strict";i.d(e,{IR:()=>p,g5:()=>g,WU:()=>y,wY:()=>b,Bs:()=>v,iR:()=>A,RK:()=>V,QI:()=>Q,Ot:()=>W,yB:()=>X});var n=i(1572),r=i(1511),s=i(9666),o=i(7425),a=i(2391),l=i(5446),c=i(8868),h=i(343);const u={provide:n.tb,useFactory:function(t,e){return()=>{if((0,r.NF)(e)){const e=Array.from(t.querySelectorAll(`[class*=${d}]`)),i=/\bflex-layout-.+?\b/g;e.forEach(t=>{t.classList.contains(`${d}ssr`)&&t.parentNode?t.parentNode.removeChild(t):t.className.replace(i,"")})}}},deps:[r.K0,n.Lbi],multi:!0},d="flex-layout-";let p=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({providers:[u]}),t})();class f{constructor(t=!1,e="all",i="",n="",r=0){this.matches=t,this.mediaQuery=e,this.mqAlias=i,this.suffix=n,this.priority=r,this.property=""}clone(){return new f(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let m=(()=>{class t{constructor(){this.stylesheet=new Map}addStyleToElement(t,e,i){const n=this.stylesheet.get(t);n?n.set(e,i):this.stylesheet.set(t,new Map([[e,i]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(t,e){const i=this.stylesheet.get(t);let n="";if(i){const t=i.get(e);"number"!=typeof t&&"string"!=typeof t||(n=t+"")}return n}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,n.Yz7)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const g={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[]},y=new n.OlP("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>g}),b=new n.OlP("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),v=new n.OlP("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function _(t,e){return t=t?t.clone():new f,e&&(t.mqAlias=e.alias,t.mediaQuery=e.mediaQuery,t.suffix=e.suffix,t.priority=e.priority),t}const w="inline",x=["row","column","row-reverse","column-reverse"];function C(t){if(t)switch(t.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":t="wrap-reverse";break;case"no":case"none":case"nowrap":t="nowrap";break;default:t="wrap"}return t}let A=(()=>{class t{constructor(t,e,i,n){this.elementRef=t,this.styleBuilder=e,this.styler=i,this.marshal=n,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new s.x,this.styleCache=new Map}get parentElement(){return this.elementRef.nativeElement.parentElement}get nativeElement(){return this.elementRef.nativeElement}get activatedValue(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)}set activatedValue(t){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,t,this.marshal.activatedAlias)}ngOnChanges(t){Object.keys(t).forEach(e=>{if(-1!==this.inputs.indexOf(e)){const i=e.split(".").slice(1).join(".");this.setValue(t[e].currentValue,i)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(t=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),t)}addStyles(t,e){const i=this.styleBuilder,n=i.shouldCache;let r=this.styleCache.get(t);r&&n||(r=i.buildStyles(t,e),n&&this.styleCache.set(t,r)),this.mru=Object.assign({},r),this.applyStyleToElement(r),i.sideEffect(t,r,e)}clearStyles(){Object.keys(this.mru).forEach(t=>{this.mru[t]=""}),this.applyStyleToElement(this.mru),this.mru={}}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(t,e=!1){if(t){const[i,n]=this.styler.getFlowDirection(t);if(!n&&e){const e=function(t){let[e,i,n]=function(t){t=t?t.toLowerCase():"";let[e,i,n]=t.split(" ");return x.find(t=>t===e)||(e=x[0]),i===w&&(i=n!==w?n:"",n=w),[e,C(i),!!n]}(t);return function(t,e=null,i=!1){return{display:i?"inline-flex":"flex","box-sizing":"border-box","flex-direction":t,"flex-wrap":e||null}}(e,i,n)}(i);this.styler.applyStyleToElements(e,[t])}return i.trim()}return"row"}hasWrap(t){return this.styler.hasWrap(t)}applyStyleToElement(t,e,i=this.nativeElement){this.styler.applyStyleToElement(i,t,e)}setValue(t,e){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,t,e)}updateWithValue(t){this.currentValue!==t&&(this.addStyles(t),this.currentValue=t)}}return t.\u0275fac=function(t){n.$Z()},t.\u0275dir=n.lG2({type:t,features:[n.TTD]}),t})();const S=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.98px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.98px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.98px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.98px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.98px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.98px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.98px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.98px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.98px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}],E="(orientation: portrait) and (max-width: 599.98px)",k="(orientation: landscape) and (max-width: 959.98px)",T="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",M="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",L="(orientation: portrait) and (min-width: 840px)",I="(orientation: landscape) and (min-width: 1280px)",O={HANDSET:`${E}, ${k}`,TABLET:`${T} , ${M}`,WEB:`${L}, ${I} `,HANDSET_PORTRAIT:`${E}`,TABLET_PORTRAIT:`${T} `,WEB_PORTRAIT:`${L}`,HANDSET_LANDSCAPE:`${k}`,TABLET_LANDSCAPE:`${M}`,WEB_LANDSCAPE:`${I}`},D=[{alias:"handset",priority:2e3,mediaQuery:O.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:O.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:O.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:O.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:O.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:O.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:O.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:O.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:O.WEB_PORTRAIT,overlapping:!0}],R=/(\.|-|_)/g;function N(t){let e=t.length>0?t.charAt(0):"",i=t.length>1?t.slice(1):"";return e.toUpperCase()+i}const P=new n.OlP("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const t=(0,n.f3M)(v),e=(0,n.f3M)(y),i=[].concat.apply([],(t||[]).map(t=>Array.isArray(t)?t:[t]));return function(t,e=[]){const i={};return t.forEach(t=>{i[t.alias]=t}),e.forEach(t=>{i[t.alias]?function(t,...e){if(null==t)throw TypeError("Cannot convert undefined or null to object");for(let i of e)if(null!=i)for(let e in i)i.hasOwnProperty(e)&&(t[e]=i[e])}(i[t.alias],t):i[t.alias]=t}),(n=Object.keys(i).map(t=>i[t])).forEach(t=>{t.suffix||(t.suffix=t.alias.replace(R,"|").split("|").map(N).join(""),t.overlapping=!!t.overlapping)}),n;var n}((e.disableDefaultBps?[]:S).concat(e.addOrientationBps?D:[]),i)}});function F(t,e){return(e&&e.priority||0)-(t&&t.priority||0)}function Z(t,e){return(t.priority||0)-(e.priority||0)}let B=(()=>{class t{constructor(t){this.findByMap=new Map,this.items=[...t].sort(Z)}findByAlias(t){return t?this.findWithPredicate(t,e=>e.alias==t):null}findByQuery(t){return this.findWithPredicate(t,e=>e.mediaQuery==t)}get overlappings(){return this.items.filter(t=>1==t.overlapping)}get aliases(){return this.items.map(t=>t.alias)}get suffixes(){return this.items.map(t=>t.suffix?t.suffix:"")}findWithPredicate(t,e){let i=this.findByMap.get(t);return i||(i=this.items.find(e)||null,this.findByMap.set(t,i)),i||null}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(P))},t.\u0275prov=(0,n.Yz7)({factory:function(){return new t((0,n.LFG)(P))},token:t,providedIn:"root"}),t})(),U=(()=>{class t{constructor(t,e,i){this._zone=t,this._platformId=e,this._document=i,this.source=new o.X(new f(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const t=[];return this.registry.forEach((e,i)=>{e.matches&&t.push(i)}),t}isActive(t){const e=this.registry.get(t);return e?e.matches:this.registerQuery(t).some(t=>t.matches)}observe(t,e=!1){if(t&&t.length){const i=this._observable$.pipe((0,c.h)(i=>!e||t.indexOf(i.mediaQuery)>-1)),n=new a.y(e=>{const i=this.registerQuery(t);if(i.length){const t=i.pop();i.forEach(t=>{e.next(t)}),this.source.next(t)}e.complete()});return(0,l.T)(n,i)}return this._observable$}registerQuery(t){const e=Array.isArray(t)?t:[t],i=[];return function(t,e){const i=t.filter(t=>!q[t]);if(i.length>0){const t=i.join(", ");try{const n=e.createElement("style");n.setAttribute("type","text/css"),n.styleSheet||n.appendChild(e.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${t} {.fx-query-test{ }}\n`)),e.head.appendChild(n),i.forEach(t=>q[t]=n)}catch(n){console.error(n)}}}(e,this._document),e.forEach(t=>{const e=e=>{this._zone.run(()=>this.source.next(new f(e.matches,t)))};let n=this.registry.get(t);n||(n=this.buildMQL(t),n.addListener(e),this.pendingRemoveListenerFns.push(()=>n.removeListener(e)),this.registry.set(t,n)),n.matches&&i.push(new f(!0,t))}),i}ngOnDestroy(){let t;for(;t=this.pendingRemoveListenerFns.pop();)t()}buildMQL(t){return function(t,e){return e&&window.matchMedia("all").addListener?window.matchMedia(t):{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{},onchange:null,addEventListener(){},removeEventListener(){},dispatchEvent:()=>!1}}(t,(0,r.NF)(this._platformId))}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(n.R0b),n.LFG(n.Lbi),n.LFG(r.K0))},t.\u0275prov=(0,n.Yz7)({factory:function(){return new t((0,n.LFG)(n.R0b),(0,n.LFG)(n.Lbi),(0,n.LFG)(r.K0))},token:t,providedIn:"root"}),t})();const q={},z="print",H={alias:z,mediaQuery:z,priority:1e3};let Y=(()=>{class t{constructor(t,e,i){this.breakpoints=t,this.layoutConfig=e,this._document=i,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.isPrinting=!1,this.queue=new G,this.deactivations=[]}withPrintQuery(t){return[...t,z]}isPrintEvent(t){return t.mediaQuery.startsWith(z)}get printAlias(){return this.layoutConfig.printWithBreakpoints||[]}get printBreakPoints(){return this.printAlias.map(t=>this.breakpoints.findByAlias(t)).filter(t=>null!==t)}getEventBreakpoints({mediaQuery:t}){const e=this.breakpoints.findByQuery(t);return(e?[...this.printBreakPoints,e]:this.printBreakPoints).sort(F)}updateEvent(t){let e=this.breakpoints.findByQuery(t.mediaQuery);return this.isPrintEvent(t)&&(e=this.getEventBreakpoints(t)[0],t.mediaQuery=e?e.mediaQuery:""),_(t,e)}registerBeforeAfterPrintHooks(t){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const e=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(t,this.getEventBreakpoints(new f(!0,z))),t.updateStyles())},i=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(t),t.updateStyles())};this._document.defaultView.addEventListener("beforeprint",e),this._document.defaultView.addEventListener("afterprint",i),this.beforePrintEventListeners.push(e),this.afterPrintEventListeners.push(i)}interceptEvents(t){return this.registerBeforeAfterPrintHooks(t),e=>{this.isPrintEvent(e)?e.matches&&!this.isPrinting?(this.startPrinting(t,this.getEventBreakpoints(e)),t.updateStyles()):e.matches||!this.isPrinting||this.isPrintingBeforeAfterEvent||(this.stopPrinting(t),t.updateStyles()):this.collectActivations(e)}}blockPropagation(){return t=>!(this.isPrinting||this.isPrintEvent(t))}startPrinting(t,e){this.isPrinting=!0,t.activatedBreakpoints=this.queue.addPrintBreakpoints(e)}stopPrinting(t){t.activatedBreakpoints=this.deactivations,this.deactivations=[],this.queue.clear(),this.isPrinting=!1}collectActivations(t){if(!this.isPrinting||this.isPrintingBeforeAfterEvent)if(t.matches)this.isPrintingBeforeAfterEvent||(this.deactivations=[]);else{const e=this.breakpoints.findByQuery(t.mediaQuery);e&&(this.deactivations.push(e),this.deactivations.sort(F))}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(t=>this._document.defaultView.removeEventListener("beforeprint",t)),this.afterPrintEventListeners.forEach(t=>this._document.defaultView.removeEventListener("afterprint",t)))}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(B),n.LFG(y),n.LFG(r.K0))},t.\u0275prov=(0,n.Yz7)({factory:function(){return new t((0,n.LFG)(B),(0,n.LFG)(y),(0,n.LFG)(r.K0))},token:t,providedIn:"root"}),t})();class G{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(t){return t.push(H),t.sort(F),t.forEach(t=>this.addBreakpoint(t)),this.printBreakpoints}addBreakpoint(t){t&&void 0===this.printBreakpoints.find(e=>e.mediaQuery===t.mediaQuery)&&(this.printBreakpoints=function(t){return!!t&&t.mediaQuery.startsWith(z)}(t)?[t,...this.printBreakpoints]:[...this.printBreakpoints,t])}clear(){this.printBreakpoints=[]}}function j(t){for(let e in t){let i=t[e]||"";switch(e){case"display":t.display="flex"===i?["-webkit-flex","flex"]:"inline-flex"===i?["-webkit-inline-flex","inline-flex"]:i;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":t["-webkit-"+e]=i;break;case"flex-direction":i=i||"row",t["-webkit-flex-direction"]=i,t["flex-direction"]=i;break;case"order":t.order=t["-webkit-"+e]=isNaN(+i)?"0":i}}return t}let V=(()=>{class t{constructor(t,e,i,n){this._serverStylesheet=t,this._serverModuleLoaded=e,this._platformId=i,this.layoutConfig=n}applyStyleToElement(t,e,i=null){let n={};"string"==typeof e&&(n[e]=i,e=n),n=this.layoutConfig.disableVendorPrefixes?e:j(e),this._applyMultiValueStyleToElement(n,t)}applyStyleToElements(t,e=[]){const i=this.layoutConfig.disableVendorPrefixes?t:j(t);e.forEach(t=>{this._applyMultiValueStyleToElement(i,t)})}getFlowDirection(t){const e="flex-direction";let i=this.lookupStyle(t,e);return[i||"row",this.lookupInlineStyle(t,e)||(0,r.PM)(this._platformId)&&this._serverModuleLoaded?i:""]}hasWrap(t){return"wrap"===this.lookupStyle(t,"flex-wrap")}lookupAttributeValue(t,e){return t.getAttribute(e)||""}lookupInlineStyle(t,e){return(0,r.NF)(this._platformId)?t.style.getPropertyValue(e):this._getServerStyle(t,e)}lookupStyle(t,e,i=!1){let n="";return t&&((n=this.lookupInlineStyle(t,e))||((0,r.NF)(this._platformId)?i||(n=getComputedStyle(t).getPropertyValue(e)):this._serverModuleLoaded&&(n=this._serverStylesheet.getStyleForElement(t,e)))),n?n.trim():""}_applyMultiValueStyleToElement(t,e){Object.keys(t).sort().forEach(i=>{const n=t[i],s=Array.isArray(n)?n:[n];s.sort();for(let t of s)t=t?t+"":"",(0,r.NF)(this._platformId)||!this._serverModuleLoaded?(0,r.NF)(this._platformId)?e.style.setProperty(i,t):this._setServerStyle(e,i,t):this._serverStylesheet.addStyleToElement(e,i,t)})}_setServerStyle(t,e,i){e=e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const n=this._readStyleAttribute(t);n[e]=i||"",this._writeStyleAttribute(t,n)}_getServerStyle(t,e){return this._readStyleAttribute(t)[e]||""}_readStyleAttribute(t){const e={},i=t.getAttribute("style");if(i){const t=i.split(/;+/g);for(let i=0;i0){const t=n.indexOf(":");if(-1===t)throw new Error(`Invalid CSS style: ${n}`);e[n.substr(0,t).trim()]=n.substr(t+1).trim()}}}return e}_writeStyleAttribute(t,e){let i="";for(const n in e)e[n]&&(i+=n+":"+e[n]+";");t.setAttribute("style",i)}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(m),n.LFG(b),n.LFG(n.Lbi),n.LFG(y))},t.\u0275prov=(0,n.Yz7)({factory:function(){return new t((0,n.LFG)(m),(0,n.LFG)(b),(0,n.LFG)(n.Lbi),(0,n.LFG)(y))},token:t,providedIn:"root"}),t})();class Q{constructor(){this.shouldCache=!0}sideEffect(t,e,i){}}function W(t,e="1",i="1"){let n=[e,i,t],r=t.indexOf("calc");if(r>0){n[2]=J(t.substring(r).trim());let e=t.substr(0,r).trim().split(" ");2==e.length&&(n[0]=e[0],n[1]=e[1])}else if(0==r)n[2]=J(t.trim());else{let r=t.split(" ");n=3===r.length?r:[e,i,t]}return n}function J(t){return t.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}let X=(()=>{class t{constructor(t,e,i){this.matchMedia=t,this.breakpoints=e,this.hook=i,this.activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new s.x,this.observeActivations()}get activatedAlias(){return this.activatedBreakpoints[0]?this.activatedBreakpoints[0].alias:""}onMediaChange(t){const e=this.findByQuery(t.mediaQuery);e&&((t=_(t,e)).matches&&-1===this.activatedBreakpoints.indexOf(e)?(this.activatedBreakpoints.push(e),this.activatedBreakpoints.sort(F),this.updateStyles()):t.matches||-1===this.activatedBreakpoints.indexOf(e)||(this.activatedBreakpoints.splice(this.activatedBreakpoints.indexOf(e),1),this.activatedBreakpoints.sort(F),this.updateStyles()))}init(t,e,i,n,r=[]){K(this.updateMap,t,e,i),K(this.clearMap,t,e,n),this.buildElementKeyMap(t,e),this.watchExtraTriggers(t,e,r)}getValue(t,e,i){const n=this.elementMap.get(t);if(n){const t=void 0!==i?n.get(i):this.getActivatedValues(n,e);if(t)return t.get(e)}}hasValue(t,e){const i=this.elementMap.get(t);if(i){const t=this.getActivatedValues(i,e);if(t)return void 0!==t.get(e)||!1}return!1}setValue(t,e,i,n){let r=this.elementMap.get(t);if(r){const s=(r.get(n)||new Map).set(e,i);r.set(n,s),this.elementMap.set(t,r)}else r=(new Map).set(n,(new Map).set(e,i)),this.elementMap.set(t,r);const s=this.getValue(t,e);void 0!==s&&this.updateElement(t,e,s)}trackValue(t,e){return this.subject.asObservable().pipe((0,c.h)(i=>i.element===t&&i.key===e))}updateStyles(){this.elementMap.forEach((t,e)=>{const i=new Set(this.elementKeyMap.get(e));let n=this.getActivatedValues(t);n&&n.forEach((t,n)=>{this.updateElement(e,n,t),i.delete(n)}),i.forEach(i=>{if(n=this.getActivatedValues(t,i),n){const t=n.get(i);this.updateElement(e,i,t)}else this.clearElement(e,i)})})}clearElement(t,e){const i=this.clearMap.get(t);if(i){const n=i.get(e);n&&(n(),this.subject.next({element:t,key:e,value:""}))}}updateElement(t,e,i){const n=this.updateMap.get(t);if(n){const r=n.get(e);r&&(r(i),this.subject.next({element:t,key:e,value:i}))}}releaseElement(t){const e=this.watcherMap.get(t);e&&(e.forEach(t=>t.unsubscribe()),this.watcherMap.delete(t));const i=this.elementMap.get(t);i&&(i.forEach((t,e)=>i.delete(e)),this.elementMap.delete(t))}triggerUpdate(t,e){const i=this.elementMap.get(t);if(i){const n=this.getActivatedValues(i,e);n&&(e?this.updateElement(t,e,n.get(e)):n.forEach((e,i)=>this.updateElement(t,i,e)))}}buildElementKeyMap(t,e){let i=this.elementKeyMap.get(t);i||(i=new Set,this.elementKeyMap.set(t,i)),i.add(e)}watchExtraTriggers(t,e,i){if(i&&i.length){let n=this.watcherMap.get(t);if(n||(n=new Map,this.watcherMap.set(t,n)),!n.get(e)){const r=(0,l.T)(...i).subscribe(()=>{const i=this.getValue(t,e);this.updateElement(t,e,i)});n.set(e,r)}}}findByQuery(t){return this.breakpoints.findByQuery(t)}getActivatedValues(t,e){for(let n=0;nt.mediaQuery);this.matchMedia.observe(this.hook.withPrintQuery(t)).pipe((0,h.b)(this.hook.interceptEvents(this)),(0,c.h)(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(U),n.LFG(B),n.LFG(Y))},t.\u0275prov=(0,n.Yz7)({factory:function(){return new t((0,n.LFG)(U),(0,n.LFG)(B),(0,n.LFG)(Y))},token:t,providedIn:"root"}),t})();function K(t,e,i,n){if(void 0!==n){let r=t.get(e);r||(r=new Map,t.set(e,r)),r.set(i,n)}}},377:(t,e,i)=>{"use strict";i.d(e,{aT:()=>b,oO:()=>c,Zl:()=>g});var n=i(1572),r=i(1511),s=i(1463),o=(i(9861),i(9568),i(269));new Map;let a=(()=>{class t extends s.iR{constructor(t,e,i,n,s,o,a){super(t,null,e,i),this.ngClassInstance=a,this.DIRECTIVE_KEY="ngClass",this.ngClassInstance||(this.ngClassInstance=new r.mk(n,s,t,o)),this.init(),this.setValue("","")}set klass(t){this.ngClassInstance.klass=t,this.setValue(t,"")}updateWithValue(t){this.ngClassInstance.ngClass=t,this.ngClassInstance.ngDoCheck()}ngDoCheck(){this.ngClassInstance.ngDoCheck()}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(s.RK),n.Y36(s.yB),n.Y36(n.ZZ4),n.Y36(n.aQg),n.Y36(n.Qsj),n.Y36(r.mk,10))},t.\u0275dir=n.lG2({type:t,inputs:{klass:["class","klass"]},features:[n.qOj]}),t})();const l=["ngClass","ngClass.xs","ngClass.sm","ngClass.md","ngClass.lg","ngClass.xl","ngClass.lt-sm","ngClass.lt-md","ngClass.lt-lg","ngClass.lt-xl","ngClass.gt-xs","ngClass.gt-sm","ngClass.gt-md","ngClass.gt-lg"];let c=(()=>{class t extends a{constructor(){super(...arguments),this.inputs=l}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=n.n5z(t)))(i||t)}}(),t.\u0275dir=n.lG2({type:t,selectors:[["","ngClass",""],["","ngClass.xs",""],["","ngClass.sm",""],["","ngClass.md",""],["","ngClass.lg",""],["","ngClass.xl",""],["","ngClass.lt-sm",""],["","ngClass.lt-md",""],["","ngClass.lt-lg",""],["","ngClass.lt-xl",""],["","ngClass.gt-xs",""],["","ngClass.gt-sm",""],["","ngClass.gt-md",""],["","ngClass.gt-lg",""]],inputs:{ngClass:"ngClass","ngClass.xs":"ngClass.xs","ngClass.sm":"ngClass.sm","ngClass.md":"ngClass.md","ngClass.lg":"ngClass.lg","ngClass.xl":"ngClass.xl","ngClass.lt-sm":"ngClass.lt-sm","ngClass.lt-md":"ngClass.lt-md","ngClass.lt-lg":"ngClass.lt-lg","ngClass.lt-xl":"ngClass.lt-xl","ngClass.gt-xs":"ngClass.gt-xs","ngClass.gt-sm":"ngClass.gt-sm","ngClass.gt-md":"ngClass.gt-md","ngClass.gt-lg":"ngClass.gt-lg"},features:[n.qOj]}),t})();new WeakMap;class h{constructor(t,e,i=!0){this.key=t,this.value=e,this.key=i?t.replace(/['"]/g,"").trim():t.trim(),this.value=i?e.replace(/['"]/g,"").trim():e.trim(),this.value=this.value.replace(/;/,"")}}function u(t){let e=typeof t;return"object"===e?t.constructor===Array?"array":t.constructor===Set?"set":"object":e}function d(t){const[e,...i]=t.split(":");return new h(e,i.join(":"))}function p(t,e){return e.key&&(t[e.key]=e.value),t}let f=(()=>{class t extends s.iR{constructor(t,e,i,n,s,o,a,l,c){super(t,null,e,i),this.sanitizer=n,this.ngStyleInstance=a,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new r.PC(t,s,o)),this.init();const h=this.nativeElement.getAttribute("style")||"";this.fallbackStyles=this.buildStyleMap(h),this.isServer=l&&(0,r.PM)(c)}updateWithValue(t){const e=this.buildStyleMap(t);this.ngStyleInstance.ngStyle=Object.assign(Object.assign({},this.fallbackStyles),e),this.isServer&&this.applyStyleToElement(e),this.ngStyleInstance.ngDoCheck()}clearStyles(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}buildStyleMap(t){const e=t=>this.sanitizer.sanitize(n.q3G.STYLE,t)||"";if(t)switch(u(t)){case"string":return y(function(t,e=";"){return String(t).trim().split(e).map(t=>t.trim()).filter(t=>""!==t)}(t),e);case"array":return y(t,e);case"set":default:return function(t,e){let i=[];return"set"===u(t)?t.forEach(t=>i.push(t)):Object.keys(t).forEach(e=>{i.push(`${e}:${t[e]}`)}),function(t,e){return t.map(d).filter(t=>!!t).map(t=>(e&&(t.value=e(t.value)),t)).reduce(p,{})}(i,e)}(t,e)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(s.RK),n.Y36(s.yB),n.Y36(o.H7),n.Y36(n.aQg),n.Y36(n.Qsj),n.Y36(r.PC,10),n.Y36(s.wY),n.Y36(n.Lbi))},t.\u0275dir=n.lG2({type:t,features:[n.qOj]}),t})();const m=["ngStyle","ngStyle.xs","ngStyle.sm","ngStyle.md","ngStyle.lg","ngStyle.xl","ngStyle.lt-sm","ngStyle.lt-md","ngStyle.lt-lg","ngStyle.lt-xl","ngStyle.gt-xs","ngStyle.gt-sm","ngStyle.gt-md","ngStyle.gt-lg"];let g=(()=>{class t extends f{constructor(){super(...arguments),this.inputs=m}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=n.n5z(t)))(i||t)}}(),t.\u0275dir=n.lG2({type:t,selectors:[["","ngStyle",""],["","ngStyle.xs",""],["","ngStyle.sm",""],["","ngStyle.md",""],["","ngStyle.lg",""],["","ngStyle.xl",""],["","ngStyle.lt-sm",""],["","ngStyle.lt-md",""],["","ngStyle.lt-lg",""],["","ngStyle.lt-xl",""],["","ngStyle.gt-xs",""],["","ngStyle.gt-sm",""],["","ngStyle.gt-md",""],["","ngStyle.gt-lg",""]],inputs:{ngStyle:"ngStyle","ngStyle.xs":"ngStyle.xs","ngStyle.sm":"ngStyle.sm","ngStyle.md":"ngStyle.md","ngStyle.lg":"ngStyle.lg","ngStyle.xl":"ngStyle.xl","ngStyle.lt-sm":"ngStyle.lt-sm","ngStyle.lt-md":"ngStyle.lt-md","ngStyle.lt-lg":"ngStyle.lt-lg","ngStyle.lt-xl":"ngStyle.lt-xl","ngStyle.gt-xs":"ngStyle.gt-xs","ngStyle.gt-sm":"ngStyle.gt-sm","ngStyle.gt-md":"ngStyle.gt-md","ngStyle.gt-lg":"ngStyle.gt-lg"},features:[n.qOj]}),t})();function y(t,e){return t.map(d).filter(t=>!!t).map(t=>(e&&(t.value=e(t.value)),t)).reduce(p,{})}let b=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[s.IR]]}),t})()},3722:(t,e,i)=>{"use strict";i.d(e,{ae:()=>Z,yH:()=>w,xw:()=>m,Wh:()=>M});var n=i(1572),r=i(1463),s=i(2526),o=(i(9666),i(9568));const a="inline",l=["row","column","row-reverse","column-reverse"];function c(t){t=t?t.toLowerCase():"";let[e,i,n]=t.split(" ");return l.find(t=>t===e)||(e=l[0]),i===a&&(i=n!==a?n:"",n=a),[e,u(i),!!n]}function h(t){let[e]=c(t);return e.indexOf("row")>-1}function u(t){if(t)switch(t.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":t="wrap-reverse";break;case"no":case"none":case"nowrap":t="nowrap";break;default:t="wrap"}return t}let d=(()=>{class t extends r.QI{buildStyles(t){return function(t){let[e,i,n]=c(t);return function(t,e=null,i=!1){return{display:i?"inline-flex":"flex","box-sizing":"border-box","flex-direction":t,"flex-wrap":e||null}}(e,i,n)}(t)}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=n.n5z(t)))(i||t)}}(),t.\u0275prov=(0,n.Yz7)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const p=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"];let f=(()=>{class t extends r.iR{constructor(t,e,i,n){super(t,i,e,n),this.DIRECTIVE_KEY="layout",this.styleCache=g,this.init()}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(r.RK),n.Y36(d),n.Y36(r.yB))},t.\u0275dir=n.lG2({type:t,features:[n.qOj]}),t})(),m=(()=>{class t extends f{constructor(){super(...arguments),this.inputs=p}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=n.n5z(t)))(i||t)}}(),t.\u0275dir=n.lG2({type:t,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[n.qOj]}),t})();const g=new Map;function y(t,...e){if(null==t)throw TypeError("Cannot convert undefined or null to object");for(let i of e)if(null!=i)for(let e in i)i.hasOwnProperty(e)&&(t[e]=i[e]);return t}new Map,new Map,new Map,new Map;let b=(()=>{class t extends r.QI{constructor(t){super(),this.layoutConfig=t}buildStyles(t,e){let[i,n,...r]=t.split(" "),s=r.join(" ");const o=e.direction.indexOf("column")>-1?"column":"row",a=h(o)?"max-width":"max-height",l=h(o)?"min-width":"min-height",c=String(s).indexOf("calc")>-1,u=c||"auto"===s,d=String(s).indexOf("%")>-1&&!c,p=String(s).indexOf("px")>-1||String(s).indexOf("rem")>-1||String(s).indexOf("em")>-1||String(s).indexOf("vw")>-1||String(s).indexOf("vh")>-1;let f=c||p;i="0"==i?0:i,n="0"==n?0:n;const m=!i&&!n;let g={};const b={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(s||""){case"":const t=!1!==this.layoutConfig.useColumnBasisZero;s="row"===o?"0%":t?"0.000000001px":"auto";break;case"initial":case"nogrow":i=0,s="auto";break;case"grow":s="100%";break;case"noshrink":n=0,s="auto";break;case"auto":break;case"none":i=0,n=0,s="auto";break;default:f||d||isNaN(s)||(s+="%"),"0%"===s&&(f=!0),"0px"===s&&(s="0%"),g=y(b,c?{"flex-grow":i,"flex-shrink":n,"flex-basis":f?s:"100%"}:{flex:`${i} ${n} ${f?s:"100%"}`})}return g.flex||g["flex-grow"]||(g=y(b,c?{"flex-grow":i,"flex-shrink":n,"flex-basis":s}:{flex:`${i} ${n} ${s}`})),"0%"!==s&&"0px"!==s&&"0.000000001px"!==s&&"auto"!==s&&(g[l]=m||f&&i?s:null,g[a]=m||!u&&n?s:null),g[l]||g[a]?e.hasWrap&&(g[c?"flex-basis":"flex"]=g[a]?c?g[a]:`${i} ${n} ${g[a]}`:c?g[l]:`${i} ${n} ${g[l]}`):g=y(b,c?{"flex-grow":i,"flex-shrink":n,"flex-basis":s}:{flex:`${i} ${n} ${s}`}),y(g,{"box-sizing":"border-box"})}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(r.WU))},t.\u0275prov=(0,n.Yz7)({factory:function(){return new t((0,n.LFG)(r.WU))},token:t,providedIn:"root"}),t})();const v=["fxFlex","fxFlex.xs","fxFlex.sm","fxFlex.md","fxFlex.lg","fxFlex.xl","fxFlex.lt-sm","fxFlex.lt-md","fxFlex.lt-lg","fxFlex.lt-xl","fxFlex.gt-xs","fxFlex.gt-sm","fxFlex.gt-md","fxFlex.gt-lg"];let _=(()=>{class t extends r.iR{constructor(t,e,i,n,r){super(t,n,e,r),this.layoutConfig=i,this.marshal=r,this.DIRECTIVE_KEY="flex",this.direction=void 0,this.wrap=void 0,this.flexGrow="1",this.flexShrink="1",this.init()}get shrink(){return this.flexShrink}set shrink(t){this.flexShrink=t||"1",this.triggerReflow()}get grow(){return this.flexGrow}set grow(t){this.flexGrow=t||"1",this.triggerReflow()}ngOnInit(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe((0,o.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe((0,o.R)(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}onLayoutChange(t){const e=t.value.split(" ");this.direction=e[0],this.wrap=void 0!==e[1]&&"wrap"===e[1],this.triggerUpdate()}updateWithValue(t){void 0===this.direction&&(this.direction=this.getFlexFlowDirection(this.parentElement,!1!==this.layoutConfig.addFlexToParent)),void 0===this.wrap&&(this.wrap=this.hasWrap(this.parentElement));const e=this.direction,i=e.startsWith("row"),n=this.wrap;i&&n?this.styleCache=A:i&&!n?this.styleCache=x:!i&&n?this.styleCache=S:i||n||(this.styleCache=C);const s=String(t).replace(";",""),o=(0,r.Ot)(s,this.flexGrow,this.flexShrink);this.addStyles(o.join(" "),{direction:e,hasWrap:n})}triggerReflow(){const t=this.activatedValue;if(void 0!==t){const e=(0,r.Ot)(t+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,e.join(" "))}}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(r.RK),n.Y36(r.WU),n.Y36(b),n.Y36(r.yB))},t.\u0275dir=n.lG2({type:t,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[n.qOj]}),t})(),w=(()=>{class t extends _{constructor(){super(...arguments),this.inputs=v}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=n.n5z(t)))(i||t)}}(),t.\u0275dir=n.lG2({type:t,selectors:[["","fxFlex",""],["","fxFlex.xs",""],["","fxFlex.sm",""],["","fxFlex.md",""],["","fxFlex.lg",""],["","fxFlex.xl",""],["","fxFlex.lt-sm",""],["","fxFlex.lt-md",""],["","fxFlex.lt-lg",""],["","fxFlex.lt-xl",""],["","fxFlex.gt-xs",""],["","fxFlex.gt-sm",""],["","fxFlex.gt-md",""],["","fxFlex.gt-lg",""]],inputs:{fxFlex:"fxFlex","fxFlex.xs":"fxFlex.xs","fxFlex.sm":"fxFlex.sm","fxFlex.md":"fxFlex.md","fxFlex.lg":"fxFlex.lg","fxFlex.xl":"fxFlex.xl","fxFlex.lt-sm":"fxFlex.lt-sm","fxFlex.lt-md":"fxFlex.lt-md","fxFlex.lt-lg":"fxFlex.lt-lg","fxFlex.lt-xl":"fxFlex.lt-xl","fxFlex.gt-xs":"fxFlex.gt-xs","fxFlex.gt-sm":"fxFlex.gt-sm","fxFlex.gt-md":"fxFlex.gt-md","fxFlex.gt-lg":"fxFlex.gt-lg"},features:[n.qOj]}),t})();const x=new Map,C=new Map,A=new Map,S=new Map;new Map,new Map,new Map,new Map,new Map,new Map,new Map;let E=(()=>{class t extends r.QI{buildStyles(t,e){const i={},[n,r]=t.split(" ");switch(n){case"center":i["justify-content"]="center";break;case"space-around":i["justify-content"]="space-around";break;case"space-between":i["justify-content"]="space-between";break;case"space-evenly":i["justify-content"]="space-evenly";break;case"end":case"flex-end":i["justify-content"]="flex-end";break;case"start":case"flex-start":default:i["justify-content"]="flex-start"}switch(r){case"start":case"flex-start":i["align-items"]=i["align-content"]="flex-start";break;case"center":i["align-items"]=i["align-content"]="center";break;case"end":case"flex-end":i["align-items"]=i["align-content"]="flex-end";break;case"space-between":i["align-content"]="space-between",i["align-items"]="stretch";break;case"space-around":i["align-content"]="space-around",i["align-items"]="stretch";break;case"baseline":i["align-content"]="stretch",i["align-items"]="baseline";break;case"stretch":default:i["align-items"]=i["align-content"]="stretch"}return y(i,{display:e.inline?"inline-flex":"flex","flex-direction":e.layout,"box-sizing":"border-box","max-width":"stretch"===r?h(e.layout)?null:"100%":null,"max-height":"stretch"===r&&h(e.layout)?"100%":null})}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=n.n5z(t)))(i||t)}}(),t.\u0275prov=(0,n.Yz7)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const k=["fxLayoutAlign","fxLayoutAlign.xs","fxLayoutAlign.sm","fxLayoutAlign.md","fxLayoutAlign.lg","fxLayoutAlign.xl","fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg"];let T=(()=>{class t extends r.iR{constructor(t,e,i,n){super(t,i,e,n),this.DIRECTIVE_KEY="layout-align",this.layout="row",this.inline=!1,this.init(),this.marshal.trackValue(this.nativeElement,"layout").pipe((0,o.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}updateWithValue(t){const e=this.layout||"row",i=this.inline;"row"===e&&i?this.styleCache=R:"row"!==e||i?"row-reverse"===e&&i?this.styleCache=P:"row-reverse"!==e||i?"column"===e&&i?this.styleCache=N:"column"!==e||i?"column-reverse"===e&&i?this.styleCache=F:"column-reverse"!==e||i||(this.styleCache=D):this.styleCache=I:this.styleCache=O:this.styleCache=L,this.addStyles(t,{layout:e,inline:i})}onLayoutChange(t){const e=t.value.split(" ");this.layout=e[0],this.inline=t.value.includes("inline"),l.find(t=>t===this.layout)||(this.layout="row"),this.triggerUpdate()}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(r.RK),n.Y36(E),n.Y36(r.yB))},t.\u0275dir=n.lG2({type:t,features:[n.qOj]}),t})(),M=(()=>{class t extends T{constructor(){super(...arguments),this.inputs=k}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=n.n5z(t)))(i||t)}}(),t.\u0275dir=n.lG2({type:t,selectors:[["","fxLayoutAlign",""],["","fxLayoutAlign.xs",""],["","fxLayoutAlign.sm",""],["","fxLayoutAlign.md",""],["","fxLayoutAlign.lg",""],["","fxLayoutAlign.xl",""],["","fxLayoutAlign.lt-sm",""],["","fxLayoutAlign.lt-md",""],["","fxLayoutAlign.lt-lg",""],["","fxLayoutAlign.lt-xl",""],["","fxLayoutAlign.gt-xs",""],["","fxLayoutAlign.gt-sm",""],["","fxLayoutAlign.gt-md",""],["","fxLayoutAlign.gt-lg",""]],inputs:{fxLayoutAlign:"fxLayoutAlign","fxLayoutAlign.xs":"fxLayoutAlign.xs","fxLayoutAlign.sm":"fxLayoutAlign.sm","fxLayoutAlign.md":"fxLayoutAlign.md","fxLayoutAlign.lg":"fxLayoutAlign.lg","fxLayoutAlign.xl":"fxLayoutAlign.xl","fxLayoutAlign.lt-sm":"fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md":"fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg":"fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl":"fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs":"fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm":"fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md":"fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg":"fxLayoutAlign.gt-lg"},features:[n.qOj]}),t})();const L=new Map,I=new Map,O=new Map,D=new Map,R=new Map,N=new Map,P=new Map,F=new Map;let Z=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[r.IR,s.vT]]}),t})()},6073:(t,e,i)=>{"use strict";i.d(e,{Zs:()=>Bt,gN:()=>Z,Fj:()=>p,qu:()=>Ht,NI:()=>ut,oH:()=>Et,u:()=>Lt,sg:()=>Tt,u5:()=>qt,Fd:()=>Dt,qQ:()=>Nt,Cf:()=>g,JU:()=>h,a5:()=>B,JJ:()=>q,JL:()=>z,F:()=>gt,On:()=>vt,wV:()=>xt,UX:()=>zt,Q7:()=>Zt,kI:()=>v,_Y:()=>_t});var n=i(1572),r=i(1511),s=i(5630),o=i(6891),a=i(1681);let l=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}setProperty(t,e){this._renderer.setProperty(this._elementRef.nativeElement,t,e)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.Qsj),n.Y36(n.SBq))},t.\u0275dir=n.lG2({type:t}),t})(),c=(()=>{class t extends l{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=n.n5z(t)))(i||t)}}(),t.\u0275dir=n.lG2({type:t,features:[n.qOj]}),t})();const h=new n.OlP("NgValueAccessor"),u={provide:h,useExisting:(0,n.Gpc)(()=>p),multi:!0},d=new n.OlP("CompositionEventMode");let p=(()=>{class t extends l{constructor(t,e,i){super(t,e),this._compositionMode=i,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=(0,r.q)()?(0,r.q)().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this.setProperty("value",null==t?"":t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.Qsj),n.Y36(n.SBq),n.Y36(d,8))},t.\u0275dir=n.lG2({type:t,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(t,e){1&t&&n.NdJ("input",function(t){return e._handleInput(t.target.value)})("blur",function(){return e.onTouched()})("compositionstart",function(){return e._compositionStart()})("compositionend",function(t){return e._compositionEnd(t.target.value)})},features:[n._Bn([u]),n.qOj]}),t})();function f(t){return null==t||0===t.length}function m(t){return null!=t&&"number"==typeof t.length}const g=new n.OlP("NgValidators"),y=new n.OlP("NgAsyncValidators"),b=/^(?=.{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 v{static min(t){return _(t)}static max(t){return w(t)}static required(t){return x(t)}static requiredTrue(t){return C(t)}static email(t){return function(t){return f(t.value)||b.test(t.value)?null:{email:!0}}(t)}static minLength(t){return function(t){return e=>f(e.value)||!m(e.value)?null:e.value.lengthm(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}(t)}static pattern(t){return function(t){if(!t)return A;let e,i;return"string"==typeof t?(i="","^"!==t.charAt(0)&&(i+="^"),i+=t,"$"!==t.charAt(t.length-1)&&(i+="$"),e=new RegExp(i)):(i=t.toString(),e=t),t=>{if(f(t.value))return null;const n=t.value;return e.test(n)?null:{pattern:{requiredPattern:i,actualValue:n}}}}(t)}static nullValidator(t){return null}static compose(t){return L(t)}static composeAsync(t){return O(t)}}function _(t){return e=>{if(f(e.value)||f(t))return null;const i=parseFloat(e.value);return!isNaN(i)&&i{if(f(e.value)||f(t))return null;const i=parseFloat(e.value);return!isNaN(i)&&i>t?{max:{max:t,actual:e.value}}:null}}function x(t){return f(t.value)?{required:!0}:null}function C(t){return!0===t.value?null:{required:!0}}function A(t){return null}function S(t){return null!=t}function E(t){const e=(0,n.QGY)(t)?(0,s.Dp)(t):t;return(0,n.CqO)(e),e}function k(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function T(t,e){return e.map(e=>e(t))}function M(t){return t.map(t=>function(t){return!t.validate}(t)?t:e=>t.validate(e))}function L(t){if(!t)return null;const e=t.filter(S);return 0==e.length?null:function(t){return k(T(t,e))}}function I(t){return null!=t?L(M(t)):null}function O(t){if(!t)return null;const e=t.filter(S);return 0==e.length?null:function(t){const i=T(t,e).map(E);return(0,o.D)(i).pipe((0,a.U)(k))}}function D(t){return null!=t?O(M(t)):null}function R(t,e){return null===t?[e]:Array.isArray(t)?[...t,e]:[t,e]}function N(t){return t._rawValidators}function P(t){return t._rawAsyncValidators}let F=(()=>{class t{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=I(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=D(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.lG2({type:t}),t})(),Z=(()=>{class t extends F{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=n.n5z(t)))(i||t)}}(),t.\u0275dir=n.lG2({type:t,features:[n.qOj]}),t})();class B extends F{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class U{constructor(t){this._cd=t}is(t){var e,i;return!!(null===(i=null===(e=this._cd)||void 0===e?void 0:e.control)||void 0===i?void 0:i[t])}}let q=(()=>{class t extends U{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(B,2))},t.\u0275dir=n.lG2({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&n.ekj("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[n.qOj]}),t})(),z=(()=>{class t extends U{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(Z,10))},t.\u0275dir=n.lG2({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&n.ekj("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[n.qOj]}),t})();function H(t,e){return[...e.path,t]}function Y(t,e){V(t,e),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(i=>{t._pendingValue=i,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&W(t,e)})}(t,e),function(t,e){const i=(t,i)=>{e.valueAccessor.writeValue(t),i&&e.viewToModelUpdate(t)};t.registerOnChange(i),e._registerOnDestroy(()=>{t._unregisterOnChange(i)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&W(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),function(t,e){if(e.valueAccessor.setDisabledState){const i=t=>{e.valueAccessor.setDisabledState(t)};t.registerOnDisabledChange(i),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(i)})}}(t,e)}function G(t,e,i=!0){const n=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n)),Q(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function j(t,e){t.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function V(t,e){const i=N(t);null!==e.validator?t.setValidators(R(i,e.validator)):"function"==typeof i&&t.setValidators([i]);const n=P(t);null!==e.asyncValidator?t.setAsyncValidators(R(n,e.asyncValidator)):"function"==typeof n&&t.setAsyncValidators([n]);const r=()=>t.updateValueAndValidity();j(e._rawValidators,r),j(e._rawAsyncValidators,r)}function Q(t,e){let i=!1;if(null!==t){if(null!==e.validator){const n=N(t);if(Array.isArray(n)&&n.length>0){const r=n.filter(t=>t!==e.validator);r.length!==n.length&&(i=!0,t.setValidators(r))}}if(null!==e.asyncValidator){const n=P(t);if(Array.isArray(n)&&n.length>0){const r=n.filter(t=>t!==e.asyncValidator);r.length!==n.length&&(i=!0,t.setAsyncValidators(r))}}}const n=()=>{};return j(e._rawValidators,n),j(e._rawAsyncValidators,n),i}function W(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function J(t,e){V(t,e)}function X(t,e){if(!t.hasOwnProperty("model"))return!1;const i=t.model;return!!i.isFirstChange()||!Object.is(e,i.currentValue)}function K(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function $(t,e){if(!e)return null;let i,n,r;return Array.isArray(e),e.forEach(t=>{t.constructor===p?i=t:Object.getPrototypeOf(t.constructor)===c?n=t:r=t}),r||n||i||null}function tt(t,e){const i=t.indexOf(e);i>-1&&t.splice(i,1)}const et="VALID",it="INVALID",nt="PENDING",rt="DISABLED";function st(t){return(ct(t)?t.validators:t)||null}function ot(t){return Array.isArray(t)?I(t):t||null}function at(t,e){return(ct(e)?e.asyncValidators:t)||null}function lt(t){return Array.isArray(t)?D(t):t||null}function ct(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class ht{constructor(t,e){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=ot(this._rawValidators),this._composedAsyncValidatorFn=lt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===et}get invalid(){return this.status===it}get pending(){return this.status==nt}get disabled(){return this.status===rt}get enabled(){return this.status!==rt}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=ot(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=lt(t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=nt,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=rt,this.errors=null,this._forEachChild(e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=et,this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),this.status!==et&&this.status!==nt||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?rt:et}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=nt,this._hasOwnPendingAsyncValidator=!0;const e=E(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(e,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,i){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;let n=t;return e.forEach(t=>{n=n instanceof dt?n.controls.hasOwnProperty(t)?n.controls[t]:null:n instanceof pt&&n.at(t)||null}),n}(this,t)}getError(t,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new n.vpe,this.statusChanges=new n.vpe}_calculateStatus(){return this._allControlsDisabled()?rt:this.errors?it:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(nt)?nt:this._anyControlsHaveStatus(it)?it:et}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){ct(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class ut extends ht{constructor(t=null,e,i){super(st(e),at(i,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){tt(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){tt(this._onDisabledChange,t)}_forEachChild(t){}_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(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class dt extends ht{constructor(t,e,i){super(st(e),at(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,i={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(i=>{this._throwIfControlMissing(i),this.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(i=>{this.controls[i]&&this.controls[i].patchValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((i,n)=>{i.reset(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=e instanceof ut?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&t(i,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const i=this.controls[e];if(this.contains(e)&&t(i))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,i)=>((e.enabled||this.disabled)&&(t[i]=e.value),t))}_reduceChildren(t,e){let i=t;return this._forEachChild((t,n)=>{i=e(i,t,n)}),i}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,i)=>{if(void 0===t[i])throw new Error(`Must supply a value for form control with name: '${i}'.`)})}}class pt extends ht{constructor(t,e,i){super(st(e),at(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[t]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,i={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,i)=>{this._throwIfControlMissing(i),this.at(i).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach((t,i)=>{this.at(i)&&this.at(i).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((i,n)=>{i.reset(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof ut?t.value:t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error(`Cannot find form control at index ${t}`)}_forEachChild(t){this.controls.forEach((e,i)=>{t(e,i)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,i)=>{if(void 0===t[i])throw new Error(`Must supply a value for form control at index: ${i}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const ft={provide:Z,useExisting:(0,n.Gpc)(()=>gt)},mt=(()=>Promise.resolve(null))();let gt=(()=>{class t extends Z{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new n.vpe,this.form=new dt({},I(t),D(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){mt.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),Y(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){mt.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),tt(this._directives,t)})}addFormGroup(t){mt.then(()=>{const e=this._findContainer(t.path),i=new dt({});J(i,t),e.registerControl(t.name,i),i.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){mt.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){mt.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,K(this.form,this._directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(g,10),n.Y36(y,10))},t.\u0275dir=n.lG2({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&n.NdJ("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[n._Bn([ft]),n.qOj]}),t})();const yt={provide:B,useExisting:(0,n.Gpc)(()=>vt)},bt=(()=>Promise.resolve(null))();let vt=(()=>{class t extends B{constructor(t,e,i,r){super(),this.control=new ut,this._registered=!1,this.update=new n.vpe,this._parent=t,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=$(0,r)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),X(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?H(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_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(){Y(this.control,this),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(t){bt.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,i=""===e||e&&"false"!==e;bt.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(Z,9),n.Y36(g,10),n.Y36(y,10),n.Y36(h,10))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[n._Bn([yt]),n.qOj,n.TTD]}),t})(),_t=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.lG2({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const wt={provide:h,useExisting:(0,n.Gpc)(()=>xt),multi:!0};let xt=(()=>{class t extends c{writeValue(t){this.setProperty("value",null==t?"":t)}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=n.n5z(t)))(i||t)}}(),t.\u0275dir=n.lG2({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&n.NdJ("input",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},features:[n._Bn([wt]),n.qOj]}),t})(),Ct=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({}),t})();const At=new n.OlP("NgModelWithFormControlWarning"),St={provide:B,useExisting:(0,n.Gpc)(()=>Et)};let Et=(()=>{class t extends B{constructor(t,e,i,r){super(),this._ngModelWarningConfig=r,this.update=new n.vpe,this._ngModelWarningSent=!1,this._setValidators(t),this._setAsyncValidators(e),this.valueAccessor=$(0,i)}set isDisabled(t){}ngOnChanges(t){if(this._isControlChanged(t)){const e=t.form.previousValue;e&&G(e,this,!1),Y(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}X(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&G(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_isControlChanged(t){return t.hasOwnProperty("form")}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(g,10),n.Y36(y,10),n.Y36(h,10),n.Y36(At,8))},t.\u0275dir=n.lG2({type:t,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[n._Bn([St]),n.qOj,n.TTD]}),t._ngModelWarningSentOnce=!1,t})();const kt={provide:Z,useExisting:(0,n.Gpc)(()=>Tt)};let Tt=(()=>{class t extends Z{constructor(t,e){super(),this.validators=t,this.asyncValidators=e,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new n.vpe,this._setValidators(t),this._setAsyncValidators(e)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Q(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return Y(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){G(t.control||null,t,!1),tt(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,e){this.form.get(t.path).setValue(e)}onSubmit(t){return this.submitted=!0,K(this.form,this.directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const e=t.control,i=this.form.get(t.path);e!==i&&(G(e||null,t),i instanceof ut&&(Y(i,t),t.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const e=this.form.get(t.path);J(e,t),e.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const e=this.form.get(t.path);e&&function(t,e){return Q(t,e)}(e,t)&&e.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){V(this.form,this),this._oldForm&&Q(this._oldForm,this)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(g,10),n.Y36(y,10))},t.\u0275dir=n.lG2({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&n.NdJ("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[n._Bn([kt]),n.qOj,n.TTD]}),t})();const Mt={provide:B,useExisting:(0,n.Gpc)(()=>Lt)};let Lt=(()=>{class t extends B{constructor(t,e,i,r,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.update=new n.vpe,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=$(0,r)}set isDisabled(t){}ngOnChanges(t){this._added||this._setUpControl(),X(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return H(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.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(Z,13),n.Y36(g,10),n.Y36(y,10),n.Y36(h,10),n.Y36(At,8))},t.\u0275dir=n.lG2({type:t,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[n._Bn([Mt]),n.qOj,n.TTD]}),t._ngModelWarningSentOnce=!1,t})(),It=(()=>{class t{constructor(){this._validator=A}handleChanges(t){if(this.inputName in t){const e=this.normalizeInput(t[this.inputName].currentValue);this._validator=this.createValidator(e),this._onChange&&this._onChange()}}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.lG2({type:t}),t})();const Ot={provide:g,useExisting:(0,n.Gpc)(()=>Dt),multi:!0};let Dt=(()=>{class t extends It{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=t=>parseFloat(t),this.createValidator=t=>w(t)}ngOnChanges(t){this.handleChanges(t)}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=n.n5z(t)))(i||t)}}(),t.\u0275dir=n.lG2({type:t,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(t,e){if(2&t){let t;n.uIk("max",null!==(t=e.max)&&void 0!==t?t:null)}},inputs:{max:"max"},features:[n._Bn([Ot]),n.qOj,n.TTD]}),t})();const Rt={provide:g,useExisting:(0,n.Gpc)(()=>Nt),multi:!0};let Nt=(()=>{class t extends It{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=t=>parseFloat(t),this.createValidator=t=>_(t)}ngOnChanges(t){this.handleChanges(t)}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=n.n5z(t)))(i||t)}}(),t.\u0275dir=n.lG2({type:t,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(t,e){if(2&t){let t;n.uIk("min",null!==(t=e.min)&&void 0!==t?t:null)}},inputs:{min:"min"},features:[n._Bn([Rt]),n.qOj,n.TTD]}),t})();const Pt={provide:g,useExisting:(0,n.Gpc)(()=>Zt),multi:!0},Ft={provide:g,useExisting:(0,n.Gpc)(()=>Bt),multi:!0};let Zt=(()=>{class t{constructor(){this._required=!1}get required(){return this._required}set required(t){this._required=null!=t&&!1!==t&&"false"!=`${t}`,this._onChange&&this._onChange()}validate(t){return this.required?x(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.lG2({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&n.uIk("required",e.required?"":null)},inputs:{required:"required"},features:[n._Bn([Pt])]}),t})(),Bt=(()=>{class t extends Zt{validate(t){return this.required?C(t):null}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=n.n5z(t)))(i||t)}}(),t.\u0275dir=n.lG2({type:t,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&n.uIk("required",e.required?"":null)},features:[n._Bn([Ft]),n.qOj]}),t})(),Ut=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[Ct]]}),t})(),qt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[Ut]}),t})(),zt=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:At,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[Ut]}),t})(),Ht=(()=>{class t{group(t,e=null){const i=this._reduceControls(t);let n,r=null,s=null;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(r=null!=e.validators?e.validators:null,s=null!=e.asyncValidators?e.asyncValidators:null,n=null!=e.updateOn?e.updateOn:void 0):(r=null!=e.validator?e.validator:null,s=null!=e.asyncValidator?e.asyncValidator:null)),new dt(i,{asyncValidators:s,updateOn:n,validators:r})}control(t,e,i){return new ut(t,e,i)}array(t,e,i){const n=t.map(t=>this._createControl(t));return new pt(n,e,i)}_reduceControls(t){const e={};return Object.keys(t).forEach(i=>{e[i]=this._createControl(t[i])}),e}_createControl(t){return t instanceof ut||t instanceof dt||t instanceof pt?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,n.Yz7)({factory:function(){return new t},token:t,providedIn:zt}),t})()},84:(t,e,i)=>{"use strict";i.d(e,{XC:()=>F,Bb:()=>H,ZL:()=>z});var n=i(4621),r=i(9861),s=i(1353),o=i(1572),a=i(1522),l=i(6042),c=i(9666),h=i(970),u=i(5446),d=i(2041),p=i(5960),f=i(1511),m=i(369),g=i(4894),y=i(5842),b=i(6899),v=i(6073),_=i(6283),w=i(9056),x=i(4324),C=i(8868),A=i(1681),S=i(343),E=i(6493),k=i(2526);const T=["panel"];function M(t,e){if(1&t&&(o.TgZ(0,"div",0,1),o.Hsn(2),o.qZA()),2&t){const t=e.id,i=o.oxw();o.Q6J("id",i.id)("ngClass",i._classList),o.uIk("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby(t))}}const L=["*"];let I=0;class O{constructor(t,e){this.source=t,this.option=e}}class D{}const R=(0,a.Kr)(D),N=new o.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function(){return{autoActiveFirstOption:!1}}});let P=(()=>{class t extends R{constructor(t,e,i,n){super(),this._changeDetectorRef=t,this._elementRef=e,this._activeOptionChanges=l.w0.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new o.vpe,this.opened=new o.vpe,this.closed=new o.vpe,this.optionActivated=new o.vpe,this._classList={},this.id="mat-autocomplete-"+I++,this.inertGroups=(null==n?void 0:n.SAFARI)||!1,this._autoActiveFirstOption=!!i.autoActiveFirstOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(t){this._autoActiveFirstOption=(0,r.Ig)(t)}set classList(t){this._classList=t&&t.length?(0,r.du)(t).reduce((t,e)=>(t[e]=!0,t),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new n.s1(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(t=>{this.optionActivated.emit({source:this,option:this.options.toArray()[t]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(t){this.panel&&(this.panel.nativeElement.scrollTop=t)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(t){const e=new O(this,t);this.optionSelected.emit(e)}_getPanelAriaLabelledby(t){return this.ariaLabel?null:this.ariaLabelledby?(t?t+" ":"")+this.ariaLabelledby:t}_setVisibilityClasses(t){t[this._visibleClass]=this.showPanel,t[this._hiddenClass]=!this.showPanel}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.sBO),o.Y36(o.SBq),o.Y36(N),o.Y36(s.t4))},t.\u0275dir=o.lG2({type:t,viewQuery:function(t,e){if(1&t&&(o.Gf(o.Rgc,7),o.Gf(T,5)),2&t){let t;o.iGM(t=o.CRH())&&(e.template=t.first),o.iGM(t=o.CRH())&&(e.panel=t.first)}},inputs:{displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",classList:["class","classList"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],panelWidth:"panelWidth"},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[o.qOj]}),t})(),F=(()=>{class t extends P{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(t)))(i||t)}}(),t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(t,e,i){if(1&t&&(o.Suo(i,a.K7,5),o.Suo(i,a.ey,5)),2&t){let t;o.iGM(t=o.CRH())&&(e.optionGroups=t),o.iGM(t=o.CRH())&&(e.options=t)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[o._Bn([{provide:a.HF,useExisting:t}]),o.qOj],ngContentSelectors:L,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(t,e){1&t&&(o.F$t(),o.YNc(0,M,3,4,"ng-template"))},directives:[f.mk],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}\n"],encapsulation:2,changeDetection:0}),t})();const Z=new o.OlP("mat-autocomplete-scroll-strategy"),B={provide:Z,deps:[m.aV],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},U={provide:v.JU,useExisting:(0,o.Gpc)(()=>z),multi:!0};let q=(()=>{class t{constructor(t,e,i,n,r,s,o,a,d,p,f){this._element=t,this._overlay=e,this._viewContainerRef=i,this._zone=n,this._changeDetectorRef=r,this._dir=o,this._formField=a,this._document=d,this._viewportRuler=p,this._defaults=f,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=l.w0.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new c.x,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=(0,h.P)(()=>this.autocomplete&&this.autocomplete.options?(0,u.T)(...this.autocomplete.options.map(t=>t.onSelectionChange)):this._zone.onStable.pipe((0,w.q)(1),(0,x.w)(()=>this.optionSelections))),this._scrollStrategy=s}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(t){this._autocompleteDisabled=(0,r.Ig)(t)}ngAfterViewInit(){const t=this._getWindow();void 0!==t&&this._zone.runOutsideAngular(()=>t.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(t){t.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const t=this._getWindow();void 0!==t&&t.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this.autocomplete.closed.emit(),this.autocomplete._isOpen=this._overlayAttached=!1,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return(0,u.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,C.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,C.h)(()=>this._overlayAttached)):(0,d.of)()).pipe((0,A.U)(t=>t instanceof a.rN?t:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,u.T)((0,p.R)(this._document,"click"),(0,p.R)(this._document,"auxclick"),(0,p.R)(this._document,"touchend")).pipe((0,C.h)(t=>{const e=this._isInsideShadowRoot&&t.composedPath?t.composedPath()[0]:t.target,i=this._formField?this._formField._elementRef.nativeElement:null,n=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&e!==this._element.nativeElement&&(!i||!i.contains(e))&&(!n||!n.contains(e))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(e)}))}writeValue(t){Promise.resolve(null).then(()=>this._setTriggerValue(t))}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this._element.nativeElement.disabled=t}_handleKeydown(t){const e=t.keyCode;if(e!==y.hY||(0,y.Vb)(t)||t.preventDefault(),this.activeOption&&e===y.K5&&this.panelOpen)this.activeOption._selectViaInteraction(),this._resetActiveItem(),t.preventDefault();else if(this.autocomplete){const i=this.autocomplete._keyManager.activeItem,n=e===y.LH||e===y.JH;this.panelOpen||e===y.Mf?this.autocomplete._keyManager.onKeydown(t):n&&this._canOpen()&&this.openPanel(),(n||this.autocomplete._keyManager.activeItem!==i)&&this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0)}}_handleInput(t){let e=t.target,i=e.value;"number"===e.type&&(i=""==i?null:parseFloat(i)),this._previousValue!==i&&(this._previousValue=i,this._onChange(i),this._canOpen()&&this._document.activeElement===t.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_floatLabel(t=!1){this._formField&&"auto"===this._formField.floatLabel&&(t?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const t=this._zone.onStable.pipe((0,w.q)(1)),e=this.autocomplete.options.changes.pipe((0,S.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,E.g)(0));return(0,u.T)(t,e).pipe((0,x.w)(()=>{const t=this.panelOpen;return this._resetActiveItem(),this.autocomplete._setVisibility(),this.panelOpen&&(this._overlayRef.updatePosition(),t!==this.panelOpen&&this.autocomplete.opened.emit()),this.panelClosingActions}),(0,w.q)(1)).subscribe(t=>this._setValueAndClose(t))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_setTriggerValue(t){const e=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(t):t,i=null!=e?e:"";this._formField?this._formField._control.value=i:this._element.nativeElement.value=i,this._previousValue=i}_setValueAndClose(t){t&&t.source&&(this._clearPreviousSelectedOption(t.source),this._setTriggerValue(t.source.value),this._onChange(t.source.value),this._element.nativeElement.focus(),this.autocomplete._emitSelectEvent(t.source)),this.closePanel()}_clearPreviousSelectedOption(t){this.autocomplete.options.forEach(e=>{e!==t&&e.selected&&e.deselect()})}_attachOverlay(){var t;null==this._isInsideShadowRoot&&(this._isInsideShadowRoot=!!(0,s.kV)(this._element.nativeElement));let e=this._overlayRef;e?(this._positionStrategy.setOrigin(this._getConnectedElement()),e.updateSize({width:this._getPanelWidth()})):(this._portal=new b.UE(this.autocomplete.template,this._viewContainerRef,{id:null===(t=this._formField)||void 0===t?void 0:t.getLabelId()}),e=this._overlay.create(this._getOverlayConfig()),this._overlayRef=e,e.keydownEvents().subscribe(t=>{(t.keyCode===y.hY&&!(0,y.Vb)(t)||t.keyCode===y.LH&&(0,y.Vb)(t,"altKey"))&&(this._resetActiveItem(),this._closeKeyEventStream.next(),t.stopPropagation(),t.preventDefault())}),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&e&&e.updateSize({width:this._getPanelWidth()})})),e&&!e.hasAttached()&&(e.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const i=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&i!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){var t;return new m.X_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(t=this._defaults)||void 0===t?void 0:t.overlayPanelClass})}_getOverlayPosition(){const t=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(t),this._positionStrategy=t,t}_setStrategyPositions(t){const e=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],i=this._aboveClass,n=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:i},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:i}];let r;r="above"===this.position?n:"below"===this.position?e:[...e,...n],t.withPositions(r)}_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 t=this.autocomplete;t.autoActiveFirstOption?t._keyManager.setFirstItemActive():t._keyManager.setActiveItem(-1)}_canOpen(){const t=this._element.nativeElement;return!t.readOnly&&!t.disabled&&!this._autocompleteDisabled}_getWindow(){var t;return(null===(t=this._document)||void 0===t?void 0:t.defaultView)||window}_scrollToOption(t){const e=this.autocomplete,i=(0,a.CB)(t,e.options,e.optionGroups);if(0===t&&1===i)e._setScrollTop(0);else if(e.panel){const i=e.options.toArray()[t];if(i){const t=i._getHostElement(),n=(0,a.jH)(t.offsetTop,t.offsetHeight,e._getScrollTop(),e.panel.nativeElement.offsetHeight);e._setScrollTop(n)}}}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.SBq),o.Y36(m.aV),o.Y36(o.s_b),o.Y36(o.R0b),o.Y36(o.sBO),o.Y36(Z),o.Y36(k.Is,8),o.Y36(_.G_,9),o.Y36(f.K0,8),o.Y36(g.rL),o.Y36(N,8))},t.\u0275dir=o.lG2({type:t,inputs:{position:["matAutocompletePosition","position"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"],autocomplete:["matAutocomplete","autocomplete"],connectedTo:["matAutocompleteConnectedTo","connectedTo"]},features:[o.TTD]}),t})(),z=(()=>{class t extends q{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(t)))(i||t)}}(),t.\u0275dir=o.lG2({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(t,e){1&t&&o.NdJ("focusin",function(){return e._handleFocus()})("blur",function(){return e._onTouched()})("input",function(t){return e._handleInput(t)})("keydown",function(t){return e._handleKeydown(t)}),2&t&&o.uIk("autocomplete",e.autocompleteAttribute)("role",e.autocompleteDisabled?null:"combobox")("aria-autocomplete",e.autocompleteDisabled?null:"list")("aria-activedescendant",e.panelOpen&&e.activeOption?e.activeOption.id:null)("aria-expanded",e.autocompleteDisabled?null:e.panelOpen.toString())("aria-owns",e.autocompleteDisabled||!e.panelOpen||null==e.autocomplete?null:e.autocomplete.id)("aria-haspopup",!e.autocompleteDisabled)},exportAs:["matAutocompleteTrigger"],features:[o._Bn([U]),o.qOj]}),t})(),H=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({providers:[B],imports:[[m.U8,a.Ng,a.BQ,f.ez],g.ZD,a.Ng,a.BQ]}),t})()},1050:(t,e,i)=>{"use strict";i.d(e,{k:()=>u,g:()=>d});var n=i(1522),r=i(4621),s=i(9861),o=i(3490),a=i(1572);let l=0;class c{}const h=(0,n.Id)(c);let u=(()=>{class t extends h{constructor(t,e,i,n,r){super(),this._ngZone=t,this._elementRef=e,this._ariaDescriber=i,this._renderer=n,this._animationMode=r,this._hasContent=!1,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=l++}get color(){return this._color}set color(t){this._setColor(t),this._color=t}get overlap(){return this._overlap}set overlap(t){this._overlap=(0,s.Ig)(t)}get description(){return this._description}set description(t){if(t!==this._description){const e=this._badgeElement;this._updateHostAriaDescription(t,this._description),this._description=t,e&&(t?e.setAttribute("aria-label",t):e.removeAttribute("aria-label"))}}get hidden(){return this._hidden}set hidden(t){this._hidden=(0,s.Ig)(t)}isAbove(){return-1===this.position.indexOf("below")}isAfter(){return-1===this.position.indexOf("before")}ngOnChanges(t){const e=t.content;if(e){const t=e.currentValue;this._hasContent=null!=t&&`${t}`.trim().length>0,this._updateTextContent()}}ngOnDestroy(){const t=this._badgeElement;t&&(this.description&&this._ariaDescriber.removeDescription(t,this.description),this._renderer.destroyNode&&this._renderer.destroyNode(t))}getBadgeElement(){return this._badgeElement}_updateTextContent(){return this._badgeElement?this._badgeElement.textContent=this._stringifyContent():this._badgeElement=this._createBadgeElement(),this._badgeElement}_createBadgeElement(){const t=this._renderer.createElement("span"),e="mat-badge-active",i="mat-badge-content";return this._clearExistingBadges(i),t.setAttribute("id",`mat-badge-content-${this._id}`),t.classList.add(i),t.textContent=this._stringifyContent(),"NoopAnimations"===this._animationMode&&t.classList.add("_mat-animation-noopable"),this.description&&t.setAttribute("aria-label",this.description),this._elementRef.nativeElement.appendChild(t),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{t.classList.add(e)})}):t.classList.add(e),t}_updateHostAriaDescription(t,e){const i=this._updateTextContent();e&&this._ariaDescriber.removeDescription(i,e),t&&this._ariaDescriber.describe(i,t)}_setColor(t){if(t!==this._color){const e=this._elementRef.nativeElement.classList;this._color&&e.remove(`mat-badge-${this._color}`),t&&e.add(`mat-badge-${t}`)}}_clearExistingBadges(t){const e=this._elementRef.nativeElement;let i=e.children.length;for(;i--;){const n=e.children[i];n.classList.contains(t)&&e.removeChild(n)}}_stringifyContent(){const t=this.content;return null==t?"":`${t}`}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.R0b),a.Y36(a.SBq),a.Y36(r.$s),a.Y36(a.Qsj),a.Y36(o.Qb,8))},t.\u0275dir=a.lG2({type:t,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(t,e){2&t&&a.ekj("mat-badge-overlap",e.overlap)("mat-badge-above",e.isAbove())("mat-badge-below",!e.isAbove())("mat-badge-before",!e.isAfter())("mat-badge-after",e.isAfter())("mat-badge-small","small"===e.size)("mat-badge-medium","medium"===e.size)("mat-badge-large","large"===e.size)("mat-badge-hidden",e.hidden||!e._hasContent)("mat-badge-disabled",e.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],position:["matBadgePosition","position"],size:["matBadgeSize","size"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],description:["matBadgeDescription","description"],hidden:["matBadgeHidden","hidden"],content:["matBadge","content"]},features:[a.qOj,a.TTD]}),t})(),d=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=a.oAB({type:t}),t.\u0275inj=a.cJS({imports:[[r.rt,n.BQ],n.BQ]}),t})()},5980:(t,e,i)=>{"use strict";i.d(e,{lW:()=>d,ot:()=>p});var n=i(1522),r=i(3490),s=i(1572),o=i(4621);const a=["mat-button",""],l=["*"],c=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"];class h{constructor(t){this._elementRef=t}}const u=(0,n.pj)((0,n.Id)((0,n.Kr)(h)));let d=(()=>{class t extends u{constructor(t,e,i){super(t),this._focusMonitor=e,this._animationMode=i,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const n of c)this._hasHostAttributes(n)&&this._getHostElement().classList.add(n);t.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(t,e){t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...t){return t.some(t=>this._getHostElement().hasAttribute(t))}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(o.tE),s.Y36(r.Qb,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(t,e){if(1&t&&s.Gf(n.wG,5),2&t){let t;s.iGM(t=s.CRH())&&(e.ripple=t.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,e){2&t&&(s.uIk("disabled",e.disabled||null),s.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[s.qOj],attrs:a,ngContentSelectors:l,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,e){1&t&&(s.F$t(),s.TgZ(0,"span",0),s.Hsn(1),s.qZA(),s._UZ(2,"span",1),s._UZ(3,"span",2)),2&t&&(s.xp6(2),s.ekj("mat-button-ripple-round",e.isRoundButton||e.isIconButton),s.Q6J("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[n.wG],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),t})(),p=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[n.si,n.BQ],n.BQ]}),t})()},7439:(t,e,i)=>{"use strict";i.d(e,{a8:()=>p,dn:()=>h,dk:()=>f,QW:()=>m,$j:()=>d,n5:()=>u});var n=i(3490),r=i(1522),s=i(1572);const o=["*",[["mat-card-footer"]]],a=["*","mat-card-footer"],l=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],c=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"];let h=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),t})(),u=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),t})(),d=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),t})(),p=(()=>{class t{constructor(t){this._animationMode=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(n.Qb,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode)},exportAs:["matCard"],ngContentSelectors:a,decls:2,vars:0,template:function(t,e){1&t&&(s.F$t(o),s.Hsn(0),s.Hsn(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}._mat-animation-noopable.mat-card{transition:none;animation:none}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card .mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}\n"],encapsulation:2,changeDetection:0}),t})(),f=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:c,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(t,e){1&t&&(s.F$t(l),s.Hsn(0),s.TgZ(1,"div",0),s.Hsn(2,1),s.qZA(),s.Hsn(3,2))},encapsulation:2,changeDetection:0}),t})(),m=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[r.BQ],r.BQ]}),t})()},9236:(t,e,i)=>{"use strict";i.d(e,{oG:()=>w,p9:()=>C});var n=i(9861),r=i(1572),s=i(6073),o=i(1522),a=i(3490),l=i(6337),c=i(4621);const h=["input"],u=function(t){return{enterDuration:t}},d=["*"],p=new r.OlP("mat-checkbox-default-options",{providedIn:"root",factory:f});function f(){return{color:"accent",clickAction:"check-indeterminate"}}let m=0;const g=f(),y={provide:s.JU,useExisting:(0,r.Gpc)(()=>w),multi:!0};class b{}class v{constructor(t){this._elementRef=t}}const _=(0,o.sb)((0,o.pj)((0,o.Kr)((0,o.Id)(v))));let w=(()=>{class t extends _{constructor(t,e,i,n,s,o,a){super(t),this._changeDetectorRef=e,this._focusMonitor=i,this._ngZone=n,this._animationMode=o,this._options=a,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId="mat-checkbox-"+ ++m,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new r.vpe,this.indeterminateChange=new r.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||g,this.color=this.defaultColor=this._options.color||g.color,this.tabIndex=parseInt(s)||0}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(t){this._required=(0,n.Ig)(t)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{t||Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}ngAfterViewChecked(){}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}get checked(){return this._checked}set checked(t){t!=this.checked&&(this._checked=t,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(t){const e=(0,n.Ig)(t);e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(t){const e=t!=this._indeterminate;this._indeterminate=(0,n.Ig)(t),e&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(t){this.checked=!!t}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(t){let e=this._currentCheckState,i=this._elementRef.nativeElement;if(e!==t&&(this._currentAnimationClass.length>0&&i.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(e,t),this._currentCheckState=t,this._currentAnimationClass.length>0)){i.classList.add(this._currentAnimationClass);const t=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{i.classList.remove(t)},1e3)})}}_emitChangeEvent(){const t=new b;t.source=this,t.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(t),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked}_onInputClick(t){var e;const i=null===(e=this._options)||void 0===e?void 0:e.clickAction;t.stopPropagation(),this.disabled||"noop"===i?this.disabled||"noop"!==i||(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==i&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(t,e){t?this._focusMonitor.focusVia(this._inputElement,t,e):this._inputElement.nativeElement.focus(e)}_onInteractionEvent(t){t.stopPropagation()}_getAnimationClassForCheckStateTransition(t,e){if("NoopAnimations"===this._animationMode)return"";let i="";switch(t){case 0:if(1===e)i="unchecked-checked";else{if(3!=e)return"";i="unchecked-indeterminate"}break;case 2:i=1===e?"unchecked-checked":"unchecked-indeterminate";break;case 1:i=2===e?"checked-unchecked":"checked-indeterminate";break;case 3:i=1===e?"indeterminate-checked":"indeterminate-unchecked"}return`mat-checkbox-anim-${i}`}_syncIndeterminate(t){const e=this._inputElement;e&&(e.nativeElement.indeterminate=t)}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(r.sBO),r.Y36(c.tE),r.Y36(r.R0b),r.$8M("tabindex"),r.Y36(a.Qb,8),r.Y36(p,8))},t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-checkbox"]],viewQuery:function(t,e){if(1&t&&(r.Gf(h,5),r.Gf(o.wG,5)),2&t){let t;r.iGM(t=r.CRH())&&(e._inputElement=t.first),r.iGM(t=r.CRH())&&(e.ripple=t.first)}},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(t,e){2&t&&(r.Ikx("id",e.id),r.uIk("tabindex",null),r.ekj("mat-checkbox-indeterminate",e.indeterminate)("mat-checkbox-checked",e.checked)("mat-checkbox-disabled",e.disabled)("mat-checkbox-label-before","before"==e.labelPosition)("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",labelPosition:"labelPosition",name:"name",required:"required",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",ariaDescribedby:["aria-describedby","ariaDescribedby"],value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[r._Bn([y]),r.qOj],ngContentSelectors:d,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(t,e){if(1&t&&(r.F$t(),r.TgZ(0,"label",0,1),r.TgZ(2,"span",2),r.TgZ(3,"input",3,4),r.NdJ("change",function(t){return e._onInteractionEvent(t)})("click",function(t){return e._onInputClick(t)}),r.qZA(),r.TgZ(5,"span",5),r._UZ(6,"span",6),r.qZA(),r._UZ(7,"span",7),r.TgZ(8,"span",8),r.O4$(),r.TgZ(9,"svg",9),r._UZ(10,"path",10),r.qZA(),r.kcU(),r._UZ(11,"span",11),r.qZA(),r.qZA(),r.TgZ(12,"span",12,13),r.NdJ("cdkObserveContent",function(){return e._onLabelTextChange()}),r.TgZ(14,"span",14),r._uU(15,"\xa0"),r.qZA(),r.Hsn(16),r.qZA(),r.qZA()),2&t){const t=r.MAs(1),i=r.MAs(13);r.uIk("for",e.inputId),r.xp6(2),r.ekj("mat-checkbox-inner-container-no-side-margin",!i.textContent||!i.textContent.trim()),r.xp6(1),r.Q6J("id",e.inputId)("required",e.required)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex),r.uIk("value",e.value)("name",e.name)("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby)("aria-checked",e._getAriaChecked())("aria-describedby",e.ariaDescribedby),r.xp6(2),r.Q6J("matRippleTrigger",t)("matRippleDisabled",e._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",r.VKq(19,u,"NoopAnimations"===e._animationMode?0:150))}},directives:[o.wG,l.wD],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}\n"],encapsulation:2,changeDetection:0}),t})(),x=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({}),t})(),C=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[o.si,o.BQ,l.Q8,x],o.BQ,x]}),t})()},1522:(t,e,i)=>{"use strict";i.d(e,{yN:()=>b,mZ:()=>v,_A:()=>L,rD:()=>z,sG:()=>I,K7:()=>ct,HF:()=>rt,Y2:()=>$,BQ:()=>x,X2:()=>H,uc:()=>j,XK:()=>q,ey:()=>pt,Ng:()=>gt,rN:()=>ut,nP:()=>it,us:()=>nt,wG:()=>tt,si:()=>et,LF:()=>Z,IR:()=>K,CB:()=>ft,jH:()=>mt,pj:()=>A,Kr:()=>S,Id:()=>C,FD:()=>k,dB:()=>T,sb:()=>E,E0:()=>Y});var n=i(1572),r=i(4621),s=i(2526);const o=new n.GfV("12.0.5");var a=i(1511),l=i(9861),c=i(9666),h=i(2391),u=i(1353),d=i(1258),p=i(3490),f=i(5842);function m(t,e){if(1&t&&n._UZ(0,"mat-pseudo-checkbox",4),2&t){const t=n.oxw();n.Q6J("state",t.selected?"checked":"unchecked")("disabled",t.disabled)}}function g(t,e){if(1&t&&(n.TgZ(0,"span",5),n._uU(1),n.qZA()),2&t){const t=n.oxw();n.xp6(1),n.hij("(",t.group.label,")")}}const y=["*"];let b=(()=>{class t{}return t.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",t.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",t.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",t.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",t})(),v=(()=>{class t{}return t.COMPLEX="375ms",t.ENTERING="225ms",t.EXITING="195ms",t})();const _=new n.GfV("12.0.5"),w=new n.OlP("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let x=(()=>{class t{constructor(t,e,i){this._hasDoneGlobalChecks=!1,this._document=i,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=e,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_getWindow(){const t=this._document.defaultView||window;return"object"==typeof t&&t?t:null}_checksAreEnabled(){return(0,n.X6Q)()&&!this._isTestEnv()}_isTestEnv(){const t=this._getWindow();return t&&(t.__karma__||t.jasmine)}_checkDoctypeIsDefined(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype)&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){if(!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme||!this._document.body||"function"!=typeof getComputedStyle)return;const t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t);const e=getComputedStyle(t);e&&"none"!==e.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(t)}_checkCdkVersionMatch(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&_.full!==o.full&&console.warn("The Angular Material version ("+_.full+") does not match the Angular CDK version ("+o.full+").\nPlease ensure the versions of these two packages exactly match.")}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(r.qm),n.LFG(w,8),n.LFG(a.K0))},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[s.vT],s.vT]}),t})();function C(t){return class extends t{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=(0,l.Ig)(t)}}}function A(t,e){return class extends t{constructor(...t){super(...t),this.defaultColor=e,this.color=e}get color(){return this._color}set color(t){const e=t||this.defaultColor;e!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),e&&this._elementRef.nativeElement.classList.add(`mat-${e}`),this._color=e)}}}function S(t){return class extends t{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=(0,l.Ig)(t)}}}function E(t,e=0){return class extends t{constructor(...t){super(...t),this._tabIndex=e,this.defaultTabIndex=e}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(t){this._tabIndex=null!=t?(0,l.su)(t):this.defaultTabIndex}}}function k(t){return class extends t{constructor(...t){super(...t),this.errorState=!1,this.stateChanges=new c.x}updateErrorState(){const t=this.errorState,e=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);e!==t&&(this.errorState=e,this.stateChanges.next())}}}function T(t){return class extends t{constructor(...t){super(...t),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new h.y(t=>{this._isInitialized?this._notifySubscriber(t):this._pendingSubscribers.push(t)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(t){t.next(),t.complete()}}}const M=new n.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function(){return(0,n.f3M)(n.soG)}});class L{constructor(){this._localeChanges=new c.x,this.localeChanges=this._localeChanges}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,e){return this.getYear(t)-this.getYear(e)||this.getMonth(t)-this.getMonth(e)||this.getDate(t)-this.getDate(e)}sameDate(t,e){if(t&&e){let i=this.isValid(t),n=this.isValid(e);return i&&n?!this.compareDate(t,e):i==n}return t==e}clampDate(t,e,i){return e&&this.compareDate(t,e)<0?e:i&&this.compareDate(t,i)>0?i:t}}const I=new n.OlP("mat-date-formats");let O;try{O="undefined"!=typeof Intl}catch(yt){O=!1}const D={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},R=F(31,t=>String(t+1)),N={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},P=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function F(t,e){const i=Array(t);for(let n=0;n{class t extends L{constructor(t,e){super(),this.useUtcForDisplay=!0,super.setLocale(t),this.useUtcForDisplay=!e.TRIDENT,this._clampDate=e.TRIDENT||e.EDGE}getYear(t){return t.getFullYear()}getMonth(t){return t.getMonth()}getDate(t){return t.getDate()}getDayOfWeek(t){return t.getDay()}getMonthNames(t){if(O){const e=new Intl.DateTimeFormat(this.locale,{month:t,timeZone:"utc"});return F(12,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,t,1))))}return D[t]}getDateNames(){if(O){const t=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return F(31,e=>this._stripDirectionalityCharacters(this._format(t,new Date(2017,0,e+1))))}return R}getDayOfWeekNames(t){if(O){const e=new Intl.DateTimeFormat(this.locale,{weekday:t,timeZone:"utc"});return F(7,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,0,t+1))))}return N[t]}getYearName(t){if(O){const e=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._stripDirectionalityCharacters(this._format(e,t))}return String(this.getYear(t))}getFirstDayOfWeek(){return 0}getNumDaysInMonth(t){return this.getDate(this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+1,0))}clone(t){return new Date(t.getTime())}createDate(t,e,i){let n=this._createDateWithOverflow(t,e,i);return n.getMonth(),n}today(){return new Date}parse(t){return"number"==typeof t?new Date(t):t?new Date(Date.parse(t)):null}format(t,e){if(!this.isValid(t))throw Error("NativeDateAdapter: Cannot format invalid date.");if(O){this._clampDate&&(t.getFullYear()<1||t.getFullYear()>9999)&&(t=this.clone(t)).setFullYear(Math.max(1,Math.min(9999,t.getFullYear()))),e=Object.assign(Object.assign({},e),{timeZone:"utc"});const i=new Intl.DateTimeFormat(this.locale,e);return this._stripDirectionalityCharacters(this._format(i,t))}return this._stripDirectionalityCharacters(t.toDateString())}addCalendarYears(t,e){return this.addCalendarMonths(t,12*e)}addCalendarMonths(t,e){let i=this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+e,this.getDate(t));return this.getMonth(i)!=((this.getMonth(t)+e)%12+12)%12&&(i=this._createDateWithOverflow(this.getYear(i),this.getMonth(i),0)),i}addCalendarDays(t,e){return this._createDateWithOverflow(this.getYear(t),this.getMonth(t),this.getDate(t)+e)}toIso8601(t){return[t.getUTCFullYear(),this._2digit(t.getUTCMonth()+1),this._2digit(t.getUTCDate())].join("-")}deserialize(t){if("string"==typeof t){if(!t)return null;if(P.test(t)){let e=new Date(t);if(this.isValid(e))return e}}return super.deserialize(t)}isDateInstance(t){return t instanceof Date}isValid(t){return!isNaN(t.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(t,e,i){const n=new Date;return n.setFullYear(t,e,i),n.setHours(0,0,0,0),n}_2digit(t){return("00"+t).slice(-2)}_stripDirectionalityCharacters(t){return t.replace(/[\u200e\u200f]/g,"")}_format(t,e){const i=new Date;return i.setUTCFullYear(e.getFullYear(),e.getMonth(),e.getDate()),i.setUTCHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),t.format(i)}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(M,8),n.LFG(u.t4))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})(),B=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({providers:[{provide:L,useClass:Z}],imports:[[u.ud]]}),t})();const U={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let q=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({providers:[{provide:I,useValue:U}],imports:[[B]]}),t})(),z=(()=>{class t{isErrorState(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=n.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})(),H=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.lG2({type:t,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),t})();function Y(t,e,i="mat"){t.changes.pipe((0,d.O)(t)).subscribe(({length:t})=>{G(e,`${i}-2-line`,!1),G(e,`${i}-3-line`,!1),G(e,`${i}-multi-line`,!1),2===t||3===t?G(e,`${i}-${t}-line`,!0):t>3&&G(e,`${i}-multi-line`,!0)})}function G(t,e,i){const n=t.nativeElement.classList;i?n.add(e):n.remove(e)}let j=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[x],x]}),t})();class V{constructor(t,e,i){this._renderer=t,this.element=e,this.config=i,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Q={enterDuration:450,exitDuration:400},W=(0,u.i$)({passive:!0}),J=["mousedown","touchstart"],X=["mouseup","mouseleave","touchend","touchcancel"];class K{constructor(t,e,i,n){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,n.isBrowser&&(this._containerElement=(0,l.fI)(i))}fadeInRipple(t,e,i={}){const n=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=Object.assign(Object.assign({},Q),i.animation);i.centered&&(t=n.left+n.width/2,e=n.top+n.height/2);const s=i.radius||function(t,e,i){const n=Math.max(Math.abs(t-i.left),Math.abs(t-i.right)),r=Math.max(Math.abs(e-i.top),Math.abs(e-i.bottom));return Math.sqrt(n*n+r*r)}(t,e,n),o=t-n.left,a=e-n.top,l=r.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=o-s+"px",c.style.top=a-s+"px",c.style.height=2*s+"px",c.style.width=2*s+"px",null!=i.color&&(c.style.backgroundColor=i.color),c.style.transitionDuration=`${l}ms`,this._containerElement.appendChild(c),window.getComputedStyle(c).getPropertyValue("opacity"),c.style.transform="scale(1)";const h=new V(this,c,i);return h.state=0,this._activeRipples.add(h),i.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone(()=>{const t=h===this._mostRecentTransientRipple;h.state=1,i.persistent||t&&this._isPointerDown||h.fadeOut()},l),h}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const i=t.element,n=Object.assign(Object.assign({},Q),t.config.animation);i.style.transitionDuration=`${n.exitDuration}ms`,i.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,i.parentNode.removeChild(i)},n.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){const e=(0,l.fI)(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(J))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(X),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=(0,r.X6)(t),i=this._lastTouchStartEvent&&Date.now(){!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_registerEvents(t){this._ngZone.runOutsideAngular(()=>{t.forEach(t=>{this._triggerElement.addEventListener(t,this,W)})})}_removeTriggerEvents(){this._triggerElement&&(J.forEach(t=>{this._triggerElement.removeEventListener(t,this,W)}),this._pointerUpEventsRegistered&&X.forEach(t=>{this._triggerElement.removeEventListener(t,this,W)}))}}const $=new n.OlP("mat-ripple-global-options");let tt=(()=>{class t{constructor(t,e,i,n,r){this._elementRef=t,this._animationMode=r,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=n||{},this._rippleRenderer=new K(this,e,t,i)}get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}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:Object.assign(Object.assign(Object.assign({},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(t,e=0,i){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),i)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(u.t4),n.Y36($,8),n.Y36(p.Qb,8))},t.\u0275dir=n.lG2({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&n.ekj("mat-ripple-unbounded",e.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),t})(),et=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[x,u.ud],x]}),t})(),it=(()=>{class t{constructor(t){this._animationMode=t,this.state="unchecked",this.disabled=!1}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(p.Qb,8))},t.\u0275cmp=n.Xpm({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&n.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===e.state)("mat-pseudo-checkbox-checked","checked"===e.state)("mat-pseudo-checkbox-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(t,e){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;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-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),t})(),nt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[x]]}),t})();const rt=new n.OlP("MAT_OPTION_PARENT_COMPONENT");class st{}const ot=C(st);let at=0,lt=(()=>{class t extends ot{constructor(t){var e;super(),this._labelId="mat-optgroup-label-"+at++,this._inert=null!==(e=null==t?void 0:t.inertGroups)&&void 0!==e&&e}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(rt,8))},t.\u0275dir=n.lG2({type:t,inputs:{label:"label"},features:[n.qOj]}),t})();const ct=new n.OlP("MatOptgroup");let ht=0;class ut{constructor(t,e=!1){this.source=t,this.isUserInput=e}}let dt=(()=>{class t{constructor(t,e,i,r){this._element=t,this._changeDetectorRef=e,this._parent=i,this.group=r,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+ht++,this.onSelectionChange=new n.vpe,this._stateChanges=new c.x}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(t){this._disabled=(0,l.Ig)(t)}get disableRipple(){return this._parent&&this._parent.disableRipple}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(t,e){const i=this._getHostElement();"function"==typeof i.focus&&i.focus(e)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(t){t.keyCode!==f.K5&&t.keyCode!==f.L_||(0,f.Vb)(t)||(this._selectViaInteraction(),t.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue=t,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(t=!1){this.onSelectionChange.emit(new ut(this,t))}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(void 0),n.Y36(lt))},t.\u0275dir=n.lG2({type:t,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),t})(),pt=(()=>{class t extends dt{constructor(t,e,i,n){super(t,e,i,n)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(rt,8),n.Y36(ct,8))},t.\u0275cmp=n.Xpm({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&n.NdJ("click",function(){return e._selectViaInteraction()})("keydown",function(t){return e._handleKeydown(t)}),2&t&&(n.Ikx("id",e.id),n.uIk("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),n.ekj("mat-selected",e.selected)("mat-option-multiple",e.multiple)("mat-active",e.active)("mat-option-disabled",e.disabled))},exportAs:["matOption"],features:[n.qOj],ngContentSelectors:y,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(t,e){1&t&&(n.F$t(),n.YNc(0,m,1,2,"mat-pseudo-checkbox",0),n.TgZ(1,"span",1),n.Hsn(2),n.qZA(),n.YNc(3,g,2,1,"span",2),n._UZ(4,"div",3)),2&t&&(n.Q6J("ngIf",e.multiple),n.xp6(3),n.Q6J("ngIf",e.group&&e.group._inert),n.xp6(1),n.Q6J("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[a.O5,tt,it],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),t})();function ft(t,e,i){if(i.length){let n=e.toArray(),r=i.toArray(),s=0;for(let e=0;ei+n?Math.max(0,t-n+e):i}let gt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[et,a.ez,x,nt]]}),t})()},5812:(t,e,i)=>{"use strict";i.d(e,{Mq:()=>bt,hl:()=>Ct,FA:()=>Et,nW:()=>St});var n=i(4621),r=i(369),s=i(6899),o=i(1511),a=i(1572),l=i(5980),c=i(4894),h=i(1522),u=i(9666),d=i(6042),p=i(5446),f=i(2041),m=i(5842),g=i(9056),y=i(1258),b=i(8868),v=i(9861),_=i(1353),w=i(709),x=i(6073),C=i(6283),A=i(6756),S=i(2526);const E=["mat-calendar-body",""];function k(t,e){if(1&t&&(a.TgZ(0,"tr",2),a.TgZ(1,"td",3),a._uU(2),a.qZA(),a.qZA()),2&t){const t=a.oxw();a.xp6(1),a.Udp("padding-top",t._cellPadding)("padding-bottom",t._cellPadding),a.uIk("colspan",t.numCols),a.xp6(1),a.hij(" ",t.label," ")}}function T(t,e){if(1&t&&(a.TgZ(0,"td",7),a._uU(1),a.qZA()),2&t){const t=a.oxw(2);a.Udp("padding-top",t._cellPadding)("padding-bottom",t._cellPadding),a.uIk("colspan",t._firstRowOffset),a.xp6(1),a.hij(" ",t._firstRowOffset>=t.labelMinRequiredCells?t.label:""," ")}}function M(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"td",8),a.NdJ("click",function(e){const i=a.CHM(t).$implicit;return a.oxw(2)._cellClicked(i,e)}),a.TgZ(1,"div",9),a._uU(2),a.qZA(),a._UZ(3,"div",10),a.qZA()}if(2&t){const t=e.$implicit,i=e.index,n=a.oxw().index,r=a.oxw();a.Udp("width",r._cellWidth)("padding-top",r._cellPadding)("padding-bottom",r._cellPadding),a.ekj("mat-calendar-body-disabled",!t.enabled)("mat-calendar-body-active",r._isActiveCell(n,i))("mat-calendar-body-range-start",r._isRangeStart(t.compareValue))("mat-calendar-body-range-end",r._isRangeEnd(t.compareValue))("mat-calendar-body-in-range",r._isInRange(t.compareValue))("mat-calendar-body-comparison-bridge-start",r._isComparisonBridgeStart(t.compareValue,n,i))("mat-calendar-body-comparison-bridge-end",r._isComparisonBridgeEnd(t.compareValue,n,i))("mat-calendar-body-comparison-start",r._isComparisonStart(t.compareValue))("mat-calendar-body-comparison-end",r._isComparisonEnd(t.compareValue))("mat-calendar-body-in-comparison-range",r._isInComparisonRange(t.compareValue))("mat-calendar-body-preview-start",r._isPreviewStart(t.compareValue))("mat-calendar-body-preview-end",r._isPreviewEnd(t.compareValue))("mat-calendar-body-in-preview",r._isInPreview(t.compareValue)),a.Q6J("ngClass",t.cssClasses)("tabindex",r._isActiveCell(n,i)?0:-1),a.uIk("data-mat-row",n)("data-mat-col",i)("aria-label",t.ariaLabel)("aria-disabled",!t.enabled||null)("aria-selected",r._isSelected(t.compareValue)),a.xp6(1),a.ekj("mat-calendar-body-selected",r._isSelected(t.compareValue))("mat-calendar-body-comparison-identical",r._isComparisonIdentical(t.compareValue))("mat-calendar-body-today",r.todayValue===t.compareValue),a.xp6(1),a.hij(" ",t.displayValue," ")}}function L(t,e){if(1&t&&(a.TgZ(0,"tr",4),a.YNc(1,T,2,6,"td",5),a.YNc(2,M,4,46,"td",6),a.qZA()),2&t){const t=e.$implicit,i=e.index,n=a.oxw();a.xp6(1),a.Q6J("ngIf",0===i&&n._firstRowOffset),a.xp6(1),a.Q6J("ngForOf",t)}}function I(t,e){if(1&t&&(a.TgZ(0,"th",5),a._uU(1),a.qZA()),2&t){const t=e.$implicit;a.uIk("aria-label",t.long),a.xp6(1),a.Oqu(t.narrow)}}const O=["*"];function D(t,e){}function R(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"mat-month-view",5),a.NdJ("activeDateChange",function(e){return a.CHM(t),a.oxw().activeDate=e})("_userSelection",function(e){return a.CHM(t),a.oxw()._dateSelected(e)}),a.qZA()}if(2&t){const t=a.oxw();a.Q6J("activeDate",t.activeDate)("selected",t.selected)("dateFilter",t.dateFilter)("maxDate",t.maxDate)("minDate",t.minDate)("dateClass",t.dateClass)("comparisonStart",t.comparisonStart)("comparisonEnd",t.comparisonEnd)}}function N(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"mat-year-view",6),a.NdJ("activeDateChange",function(e){return a.CHM(t),a.oxw().activeDate=e})("monthSelected",function(e){return a.CHM(t),a.oxw()._monthSelectedInYearView(e)})("selectedChange",function(e){return a.CHM(t),a.oxw()._goToDateInView(e,"month")}),a.qZA()}if(2&t){const t=a.oxw();a.Q6J("activeDate",t.activeDate)("selected",t.selected)("dateFilter",t.dateFilter)("maxDate",t.maxDate)("minDate",t.minDate)("dateClass",t.dateClass)}}function P(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"mat-multi-year-view",7),a.NdJ("activeDateChange",function(e){return a.CHM(t),a.oxw().activeDate=e})("yearSelected",function(e){return a.CHM(t),a.oxw()._yearSelectedInMultiYearView(e)})("selectedChange",function(e){return a.CHM(t),a.oxw()._goToDateInView(e,"year")}),a.qZA()}if(2&t){const t=a.oxw();a.Q6J("activeDate",t.activeDate)("selected",t.selected)("dateFilter",t.dateFilter)("maxDate",t.maxDate)("minDate",t.minDate)("dateClass",t.dateClass)}}function F(t,e){}const Z=["button"];function B(t,e){1&t&&(a.O4$(),a.TgZ(0,"svg",3),a._UZ(1,"path",4),a.qZA())}const U=[[["","matDatepickerToggleIcon",""]]],q=["[matDatepickerToggleIcon]"];let z=(()=>{class t{constructor(){this.changes=new u.x,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}formatYearRange(t,e){return`${t} \u2013 ${e}`}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=a.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})();class H{constructor(t,e,i,n,r={},s=t,o){this.value=t,this.displayValue=e,this.ariaLabel=i,this.enabled=n,this.cssClasses=r,this.compareValue=s,this.rawValue=o}}let Y=(()=>{class t{constructor(t,e){this._elementRef=t,this._ngZone=e,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new a.vpe,this.previewChange=new a.vpe,this._enterHandler=t=>{if(this._skipNextFocus&&"focus"===t.type)this._skipNextFocus=!1;else if(t.target&&this.isRange){const e=this._getCellFromElement(t.target);e&&this._ngZone.run(()=>this.previewChange.emit({value:e.enabled?e:null,event:t}))}},this._leaveHandler=t=>{null!==this.previewEnd&&this.isRange&&t.target&&G(t.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:t}))},e.runOutsideAngular(()=>{const e=t.nativeElement;e.addEventListener("mouseenter",this._enterHandler,!0),e.addEventListener("focus",this._enterHandler,!0),e.addEventListener("mouseleave",this._leaveHandler,!0),e.addEventListener("blur",this._leaveHandler,!0)})}_cellClicked(t,e){t.enabled&&this.selectedValueChange.emit({value:t.value,event:e})}_isSelected(t){return this.startValue===t||this.endValue===t}ngOnChanges(t){const e=t.numCols,{rows:i,numCols:n}=this;(t.rows||e)&&(this._firstRowOffset=i&&i.length&&i[0].length?n-i[0].length:0),(t.cellAspectRatio||e||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/n+"%"),!e&&this._cellWidth||(this._cellWidth=100/n+"%")}ngOnDestroy(){const t=this._elementRef.nativeElement;t.removeEventListener("mouseenter",this._enterHandler,!0),t.removeEventListener("focus",this._enterHandler,!0),t.removeEventListener("mouseleave",this._leaveHandler,!0),t.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(t,e){let i=t*this.numCols+e;return t&&(i-=this._firstRowOffset),i==this.activeCell}_focusActiveCell(t=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,g.q)(1)).subscribe(()=>{const e=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");e&&(t||(this._skipNextFocus=!0),e.focus())})})}_isRangeStart(t){return j(t,this.startValue,this.endValue)}_isRangeEnd(t){return V(t,this.startValue,this.endValue)}_isInRange(t){return Q(t,this.startValue,this.endValue,this.isRange)}_isComparisonStart(t){return j(t,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(t,e,i){if(!this._isComparisonStart(t)||this._isRangeStart(t)||!this._isInRange(t))return!1;let n=this.rows[e][i-1];if(!n){const t=this.rows[e-1];n=t&&t[t.length-1]}return n&&!this._isRangeEnd(n.compareValue)}_isComparisonBridgeEnd(t,e,i){if(!this._isComparisonEnd(t)||this._isRangeEnd(t)||!this._isInRange(t))return!1;let n=this.rows[e][i+1];if(!n){const t=this.rows[e+1];n=t&&t[0]}return n&&!this._isRangeStart(n.compareValue)}_isComparisonEnd(t){return V(t,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(t){return Q(t,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(t){return this.comparisonStart===this.comparisonEnd&&t===this.comparisonStart}_isPreviewStart(t){return j(t,this.previewStart,this.previewEnd)}_isPreviewEnd(t){return V(t,this.previewStart,this.previewEnd)}_isInPreview(t){return Q(t,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(t){let e;if(G(t)?e=t:G(t.parentNode)&&(e=t.parentNode),e){const t=e.getAttribute("data-mat-row"),i=e.getAttribute("data-mat-col");if(t&&i)return this.rows[parseInt(t)][parseInt(i)]}return null}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(a.R0b))},t.\u0275cmp=a.Xpm({type:t,selectors:[["","mat-calendar-body",""]],hostAttrs:["role","grid","aria-readonly","true",1,"mat-calendar-body"],inputs:{numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",previewStart:"previewStart",previewEnd:"previewEnd",label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange"},exportAs:["matCalendarBody"],features:[a.TTD],attrs:E,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["aria-hidden","true","class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell",3,"ngClass","tabindex","mat-calendar-body-disabled","mat-calendar-body-active","mat-calendar-body-range-start","mat-calendar-body-range-end","mat-calendar-body-in-range","mat-calendar-body-comparison-bridge-start","mat-calendar-body-comparison-bridge-end","mat-calendar-body-comparison-start","mat-calendar-body-comparison-end","mat-calendar-body-in-comparison-range","mat-calendar-body-preview-start","mat-calendar-body-preview-end","mat-calendar-body-in-preview","width","paddingTop","paddingBottom","click",4,"ngFor","ngForOf"],["aria-hidden","true",1,"mat-calendar-body-label"],["role","gridcell",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],[1,"mat-calendar-body-cell-preview"]],template:function(t,e){1&t&&(a.YNc(0,k,3,6,"tr",0),a.YNc(1,L,3,2,"tr",1)),2&t&&(a.Q6J("ngIf",e._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){outline:dotted 2px}[dir=rtl] .mat-calendar-body-label{text-align:right}@media(hover: none){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){background-color:transparent}}\n'],encapsulation:2,changeDetection:0}),t})();function G(t){return"TD"===t.nodeName}function j(t,e,i){return null!==i&&e!==i&&t=e&&t===i}function Q(t,e,i,n){return n&&null!==e&&null!==i&&e!==i&&t>=e&&t<=i}class W{constructor(t,e){this.start=t,this.end=e}}let J=(()=>{class t{constructor(t,e){this.selection=t,this._adapter=e,this._selectionChanged=new u.x,this.selectionChanged=this._selectionChanged,this.selection=t}updateSelection(t,e){const i=this.selection;this.selection=t,this._selectionChanged.next({selection:t,source:e,oldValue:i})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(t){return this._adapter.isDateInstance(t)&&this._adapter.isValid(t)}}return t.\u0275fac=function(e){return new(e||t)(a.LFG(void 0),a.LFG(h._A))},t.\u0275prov=a.Yz7({token:t,factory:t.\u0275fac}),t})(),X=(()=>{class t extends J{constructor(t){super(null,t)}add(t){super.updateSelection(t,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const e=new t(this._adapter);return e.updateSelection(this.selection,this),e}}return t.\u0275fac=function(e){return new(e||t)(a.LFG(h._A))},t.\u0275prov=a.Yz7({token:t,factory:t.\u0275fac}),t})();const K={provide:J,deps:[[new a.FiY,new a.tp0,J],h._A],useFactory:function(t,e){return t||new X(e)}},$=new a.OlP("MAT_DATE_RANGE_SELECTION_STRATEGY");let tt=(()=>{class t{constructor(t,e,i,n,r){this._changeDetectorRef=t,this._dateFormats=e,this._dateAdapter=i,this._dir=n,this._rangeStrategy=r,this._rerenderSubscription=d.w0.EMPTY,this.selectedChange=new a.vpe,this._userSelection=new a.vpe,this.activeDateChange=new a.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){const e=this._activeDate,i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(i,this.minDate,this.maxDate),this._hasSameMonthAndYear(e,this._activeDate)||this._init()}get selected(){return this._selected}set selected(t){this._selected=t instanceof W?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,y.O)(null)).subscribe(()=>this._init())}ngOnChanges(t){const e=t.comparisonStart||t.comparisonEnd;e&&!e.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(t){const e=t.value,i=this._dateAdapter.getYear(this.activeDate),n=this._dateAdapter.getMonth(this.activeDate),r=this._dateAdapter.createDate(i,n,e);let s,o;this._selected instanceof W?(s=this._getDateInCurrentMonth(this._selected.start),o=this._getDateInCurrentMonth(this._selected.end)):s=o=this._getDateInCurrentMonth(this._selected),s===e&&o===e||this.selectedChange.emit(r),this._userSelection.emit({value:r,event:t.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_handleCalendarBodyKeydown(t){const e=this._activeDate,i=this._isRtl();switch(t.keyCode){case m.oh:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,i?1:-1);break;case m.SV:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,i?-1:1);break;case m.LH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case m.JH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case m.Sd:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case m.uR:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case m.Ku:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case m.VM:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case m.K5:case m.L_:return void(this.dateFilter&&!this.dateFilter(this._activeDate)||(this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:t}),t.preventDefault()));case m.hY:return void(null==this._previewEnd||(0,m.Vb)(t)||(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:t}),t.preventDefault(),t.stopPropagation()));default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(t)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(t){this._matCalendarBody._focusActiveCell(t)}_previewChanged({event:t,value:e}){if(this._rangeStrategy){const i=this._rangeStrategy.createPreview(e?e.rawValue:null,this.selected,t);this._previewStart=this._getCellCompareValue(i.start),this._previewEnd=this._getCellCompareValue(i.end),this._changeDetectorRef.detectChanges()}}_initWeekdays(){const t=this._dateAdapter.getFirstDayOfWeek(),e=this._dateAdapter.getDayOfWeekNames("narrow");let i=this._dateAdapter.getDayOfWeekNames("long").map((t,i)=>({long:t,narrow:e[i]}));this._weekdays=i.slice(t).concat(i.slice(0,t))}_createWeekCells(){const t=this._dateAdapter.getNumDaysInMonth(this.activeDate),e=this._dateAdapter.getDateNames();this._weeks=[[]];for(let i=0,n=this._firstWeekOffset;i=0)&&(!this.maxDate||this._dateAdapter.compareDate(t,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(t))}_getDateInCurrentMonth(t){return t&&this._hasSameMonthAndYear(t,this.activeDate)?this._dateAdapter.getDate(t):null}_hasSameMonthAndYear(t,e){return!(!t||!e||this._dateAdapter.getMonth(t)!=this._dateAdapter.getMonth(e)||this._dateAdapter.getYear(t)!=this._dateAdapter.getYear(e))}_getCellCompareValue(t){if(t){const e=this._dateAdapter.getYear(t),i=this._dateAdapter.getMonth(t),n=this._dateAdapter.getDate(t);return new Date(e,i,n).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(t){t instanceof W?(this._rangeStart=this._getCellCompareValue(t.start),this._rangeEnd=this._getCellCompareValue(t.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(t),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.sBO),a.Y36(h.sG,8),a.Y36(h._A,8),a.Y36(S.Is,8),a.Y36($,8))},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-month-view"]],viewQuery:function(t,e){if(1&t&&a.Gf(Y,5),2&t){let t;a.iGM(t=a.CRH())&&(e._matCalendarBody=t.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[a.TTD],decls:7,vars:13,consts:[["role","presentation",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["colspan","7","aria-hidden","true",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","previewChange","keydown"],["scope","col"]],template:function(t,e){1&t&&(a.TgZ(0,"table",0),a.TgZ(1,"thead",1),a.TgZ(2,"tr"),a.YNc(3,I,2,2,"th",2),a.qZA(),a.TgZ(4,"tr"),a._UZ(5,"th",3),a.qZA(),a.qZA(),a.TgZ(6,"tbody",4),a.NdJ("selectedValueChange",function(t){return e._dateSelected(t)})("previewChange",function(t){return e._previewChanged(t)})("keydown",function(t){return e._handleCalendarBodyKeydown(t)}),a.qZA(),a.qZA()),2&t&&(a.xp6(3),a.Q6J("ngForOf",e._weekdays),a.xp6(3),a.Q6J("label",e._monthLabel)("rows",e._weeks)("todayValue",e._todayDate)("startValue",e._rangeStart)("endValue",e._rangeEnd)("comparisonStart",e._comparisonRangeStart)("comparisonEnd",e._comparisonRangeEnd)("previewStart",e._previewStart)("previewEnd",e._previewEnd)("isRange",e._isRange)("labelMinRequiredCells",3)("activeCell",e._dateAdapter.getDate(e.activeDate)-1))},directives:[o.sg,Y],encapsulation:2,changeDetection:0}),t})();const et=24;let it=(()=>{class t{constructor(t,e,i){this._changeDetectorRef=t,this._dateAdapter=e,this._dir=i,this._rerenderSubscription=d.w0.EMPTY,this.selectedChange=new a.vpe,this.yearSelected=new a.vpe,this.activeDateChange=new a.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){let e=this._activeDate;const i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(i,this.minDate,this.maxDate),nt(this._dateAdapter,e,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(t){this._selected=t instanceof W?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setSelectedYear(t)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,y.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const t=this._dateAdapter.getYear(this._activeDate)-rt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let e=0,i=[];ethis._createCellForYear(t))),i=[]);this._changeDetectorRef.markForCheck()}_yearSelected(t){const e=t.value;this.yearSelected.emit(this._dateAdapter.createDate(e,0,1));let i=this._dateAdapter.getMonth(this.activeDate),n=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,i,1));this.selectedChange.emit(this._dateAdapter.createDate(e,i,Math.min(this._dateAdapter.getDate(this.activeDate),n)))}_handleCalendarBodyKeydown(t){const e=this._activeDate,i=this._isRtl();switch(t.keyCode){case m.oh:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,i?1:-1);break;case m.SV:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,i?-1:1);break;case m.LH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case m.JH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case m.Sd:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-rt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case m.uR:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,et-rt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case m.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-240:-24);break;case m.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?240:et);break;case m.K5:case m.L_:this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:t});break;default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}_getActiveCell(){return rt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_createCellForYear(t){const e=this._dateAdapter.createDate(t,0,1),i=this._dateAdapter.getYearName(e),n=this.dateClass?this.dateClass(e,"multi-year"):void 0;return new H(t,i,i,this._shouldEnableYear(t),n)}_shouldEnableYear(t){if(null==t||this.maxDate&&t>this._dateAdapter.getYear(this.maxDate)||this.minDate&&t{class t{constructor(t,e,i,n){this._changeDetectorRef=t,this._dateFormats=e,this._dateAdapter=i,this._dir=n,this._rerenderSubscription=d.w0.EMPTY,this.selectedChange=new a.vpe,this.monthSelected=new a.vpe,this.activeDateChange=new a.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){let e=this._activeDate;const i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(i,this.minDate,this.maxDate),this._dateAdapter.getYear(e)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(t){this._selected=t instanceof W?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setSelectedMonth(t)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,y.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(t){const e=t.value,i=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1);this.monthSelected.emit(i);const n=this._dateAdapter.getNumDaysInMonth(i);this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),n)))}_handleCalendarBodyKeydown(t){const e=this._activeDate,i=this._isRtl();switch(t.keyCode){case m.oh:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,i?1:-1);break;case m.SV:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,i?-1:1);break;case m.LH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case m.JH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case m.Sd:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case m.uR:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case m.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-10:-1);break;case m.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?10:1);break;case m.K5:case m.L_:this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:t});break;default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let t=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(e=>e.map(e=>this._createCellForMonth(e,t[e]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_getMonthInCurrentYear(t){return t&&this._dateAdapter.getYear(t)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(t):null}_createCellForMonth(t,e){const i=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1),n=this._dateAdapter.format(i,this._dateFormats.display.monthYearA11yLabel),r=this.dateClass?this.dateClass(i,"year"):void 0;return new H(t,e.toLocaleUpperCase(),n,this._shouldEnableMonth(t),r)}_shouldEnableMonth(t){const e=this._dateAdapter.getYear(this.activeDate);if(null==t||this._isYearAndMonthAfterMaxDate(e,t)||this._isYearAndMonthBeforeMinDate(e,t))return!1;if(!this.dateFilter)return!0;for(let i=this._dateAdapter.createDate(e,t,1);this._dateAdapter.getMonth(i)==t;i=this._dateAdapter.addCalendarDays(i,1))if(this.dateFilter(i))return!0;return!1}_isYearAndMonthAfterMaxDate(t,e){if(this.maxDate){const i=this._dateAdapter.getYear(this.maxDate),n=this._dateAdapter.getMonth(this.maxDate);return t>i||t===i&&e>n}return!1}_isYearAndMonthBeforeMinDate(t,e){if(this.minDate){const i=this._dateAdapter.getYear(this.minDate),n=this._dateAdapter.getMonth(this.minDate);return t{class t{constructor(t,e,i,n,r){this._intl=t,this.calendar=e,this._dateAdapter=i,this._dateFormats=n,this._buttonDescriptionId="mat-calendar-button-"+at++,this.calendar.stateChanges.subscribe(()=>r.markForCheck())}get periodButtonText(){if("month"==this.calendar.currentView)return this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase();if("year"==this.calendar.currentView)return this._dateAdapter.getYearName(this.calendar.activeDate);const t=this._dateAdapter.getYear(this.calendar.activeDate)-rt(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),e=t+et-1,i=this._dateAdapter.getYearName(this._dateAdapter.createDate(t,0,1)),n=this._dateAdapter.getYearName(this._dateAdapter.createDate(e,0,1));return this._intl.formatYearRange(i,n)}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-24)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:et)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(t,e){return"month"==this.calendar.currentView?this._dateAdapter.getYear(t)==this._dateAdapter.getYear(e)&&this._dateAdapter.getMonth(t)==this._dateAdapter.getMonth(e):"year"==this.calendar.currentView?this._dateAdapter.getYear(t)==this._dateAdapter.getYear(e):nt(this._dateAdapter,t,e,this.calendar.minDate,this.calendar.maxDate)}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(z),a.Y36((0,a.Gpc)(()=>ct)),a.Y36(h._A,8),a.Y36(h.sG,8),a.Y36(a.sBO))},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:O,decls:10,vars:10,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","cdkAriaLive","polite",1,"mat-calendar-period-button",3,"click"],[1,"mat-calendar-arrow"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"]],template:function(t,e){1&t&&(a.F$t(),a.TgZ(0,"div",0),a.TgZ(1,"div",1),a.TgZ(2,"button",2),a.NdJ("click",function(){return e.currentPeriodClicked()}),a.TgZ(3,"span"),a._uU(4),a.qZA(),a._UZ(5,"div",3),a.qZA(),a._UZ(6,"div",4),a.Hsn(7),a.TgZ(8,"button",5),a.NdJ("click",function(){return e.previousClicked()}),a.qZA(),a.TgZ(9,"button",6),a.NdJ("click",function(){return e.nextClicked()}),a.qZA(),a.qZA(),a.qZA()),2&t&&(a.xp6(2),a.uIk("aria-label",e.periodButtonLabel)("aria-describedby",e._buttonDescriptionId),a.xp6(1),a.uIk("id",e._buttonDescriptionId),a.xp6(1),a.Oqu(e.periodButtonText),a.xp6(1),a.ekj("mat-calendar-invert","month"!==e.calendar.currentView),a.xp6(3),a.Q6J("disabled",!e.previousEnabled()),a.uIk("aria-label",e.prevButtonLabel),a.xp6(1),a.Q6J("disabled",!e.nextEnabled()),a.uIk("aria-label",e.nextButtonLabel))},directives:[l.lW,n.Qr],encapsulation:2,changeDetection:0}),t})(),ct=(()=>{class t{constructor(t,e,i,n){this._dateAdapter=e,this._dateFormats=i,this._changeDetectorRef=n,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new a.vpe,this.yearSelected=new a.vpe,this.monthSelected=new a.vpe,this.viewChanged=new a.vpe(!0),this._userSelection=new a.vpe,this.stateChanges=new u.x,this._intlChanges=t.changes.subscribe(()=>{n.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(t){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get selected(){return this._selected}set selected(t){this._selected=t instanceof W?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get activeDate(){return this._clampedActiveDate}set activeDate(t){this._clampedActiveDate=this._dateAdapter.clampDate(t,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(t){const e=this._currentView!==t?t:null;this._currentView=t,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),e&&this.viewChanged.emit(e)}ngAfterContentInit(){this._calendarHeaderPortal=new s.C5(this.headerComponent||lt),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(t){const e=t.minDate||t.maxDate||t.dateFilter;if(e&&!e.firstChange){const t=this._getCurrentViewComponent();t&&(this._changeDetectorRef.detectChanges(),t._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){const t=this.currentView;let e;e="month"===t?this.monthView:"year"===t?this.yearView:this.multiYearView,e._init()}_dateSelected(t){const e=t.value;(this.selected instanceof W||e&&!this._dateAdapter.sameDate(e,this.selected))&&this.selectedChange.emit(e),this._userSelection.emit(t)}_yearSelectedInMultiYearView(t){this.yearSelected.emit(t)}_monthSelectedInYearView(t){this.monthSelected.emit(t)}_goToDateInView(t,e){this.activeDate=t,this.currentView=e}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(z),a.Y36(h._A,8),a.Y36(h.sG,8),a.Y36(a.sBO))},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-calendar"]],viewQuery:function(t,e){if(1&t&&(a.Gf(tt,5),a.Gf(ot,5),a.Gf(it,5)),2&t){let t;a.iGM(t=a.CRH())&&(e.monthView=t.first),a.iGM(t=a.CRH())&&(e.yearView=t.first),a.iGM(t=a.CRH())&&(e.multiYearView=t.first)}},hostAttrs:[1,"mat-calendar"],inputs:{startView:"startView",startAt:"startAt",selected:"selected",minDate:"minDate",maxDate:"maxDate",headerComponent:"headerComponent",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[a._Bn([K]),a.TTD],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange"]],template:function(t,e){1&t&&(a.YNc(0,D,0,0,"ng-template",0),a.TgZ(1,"div",1),a.YNc(2,R,1,8,"mat-month-view",2),a.YNc(3,N,1,6,"mat-year-view",3),a.YNc(4,P,1,6,"mat-multi-year-view",4),a.qZA()),2&t&&(a.Q6J("cdkPortalOutlet",e._calendarHeaderPortal),a.xp6(1),a.Q6J("ngSwitch",e.currentView),a.xp6(1),a.Q6J("ngSwitchCase","month"),a.xp6(1),a.Q6J("ngSwitchCase","year"),a.xp6(1),a.Q6J("ngSwitchCase","multi-year"))},directives:[s.Pl,n.kH,o.RF,o.n9,tt,ot,it],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(33% / 7 - 16px)}.mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:.04}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top-width:5px;border-top-style:solid;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}\n'],encapsulation:2,changeDetection:0}),t})();const ht={transformPanel:(0,w.X$)("transformPanel",[(0,w.eR)("void => enter-dropdown",(0,w.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,w.F4)([(0,w.oB)({opacity:0,transform:"scale(1, 0.8)"}),(0,w.oB)({opacity:1,transform:"scale(1, 1)"})]))),(0,w.eR)("void => enter-dialog",(0,w.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,w.F4)([(0,w.oB)({opacity:0,transform:"scale(0.7)"}),(0,w.oB)({transform:"none",opacity:1})]))),(0,w.eR)("* => void",(0,w.jt)("100ms linear",(0,w.oB)({opacity:0})))]),fadeInCalendar:(0,w.X$)("fadeInCalendar",[(0,w.SB)("void",(0,w.oB)({opacity:0})),(0,w.SB)("enter",(0,w.oB)({opacity:1})),(0,w.eR)("void => *",(0,w.jt)("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let ut=0;const dt=new a.OlP("mat-datepicker-scroll-strategy"),pt={provide:dt,deps:[r.aV],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class ft{constructor(t){this._elementRef=t}}const mt=(0,h.pj)(ft);let gt=(()=>{class t extends mt{constructor(t,e,i,n,r,s){super(t),this._changeDetectorRef=e,this._globalModel=i,this._dateAdapter=n,this._rangeSelectionStrategy=r,this._subscriptions=new d.w0,this._animationDone=new u.x,this._actionsPortal=null,this._closeButtonText=s.closeCalendarLabel}ngOnInit(){this._model=this._actionsPortal?this._globalModel.clone():this._globalModel,this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(t){const e=this._model.selection,i=t.value,n=e instanceof W;if(n&&this._rangeSelectionStrategy){const n=this._rangeSelectionStrategy.selectionFinished(i,e,t.event);this._model.updateSelection(n,this)}else!i||!n&&this._dateAdapter.sameDate(i,e)||this._model.add(i);this._model&&!this._model.isComplete()||this._actionsPortal||this.datepicker.close()}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(J),a.Y36(h._A),a.Y36($,8),a.Y36(z))},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-datepicker-content"]],viewQuery:function(t,e){if(1&t&&a.Gf(ct,5),2&t){let t;a.iGM(t=a.CRH())&&(e._calendar=t.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(t,e){1&t&&a.WFA("@transformPanel.done",function(){return e._animationDone.next()}),2&t&&(a.d8E("@transformPanel",e._animationState),a.ekj("mat-datepicker-content-touch",e.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[a.qOj],decls:5,vars:20,consts:[["cdkTrapFocus","",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","yearSelected","monthSelected","viewChanged","_userSelection"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(t,e){1&t&&(a.TgZ(0,"div",0),a.TgZ(1,"mat-calendar",1),a.NdJ("yearSelected",function(t){return e.datepicker._selectYear(t)})("monthSelected",function(t){return e.datepicker._selectMonth(t)})("viewChanged",function(t){return e.datepicker._viewChanged(t)})("_userSelection",function(t){return e._handleUserSelection(t)}),a.qZA(),a.YNc(2,F,0,0,"ng-template",2),a.TgZ(3,"button",3),a.NdJ("focus",function(){return e._closeButtonFocused=!0})("blur",function(){return e._closeButtonFocused=!1})("click",function(){return e.datepicker.close()}),a._uU(4),a.qZA(),a.qZA()),2&t&&(a.ekj("mat-datepicker-content-container-with-actions",e._actionsPortal),a.xp6(1),a.Q6J("id",e.datepicker.id)("ngClass",e.datepicker.panelClass)("startAt",e.datepicker.startAt)("startView",e.datepicker.startView)("minDate",e.datepicker._getMinDate())("maxDate",e.datepicker._getMaxDate())("dateFilter",e.datepicker._getDateFilter())("headerComponent",e.datepicker.calendarHeaderComponent)("selected",e._getSelected())("dateClass",e.datepicker.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)("@fadeInCalendar","enter"),a.xp6(1),a.Q6J("cdkPortalOutlet",e._actionsPortal),a.xp6(1),a.ekj("cdk-visually-hidden",!e._closeButtonFocused),a.Q6J("color",e.color||"primary"),a.xp6(1),a.Oqu(e._closeButtonText))},directives:[n.mK,ct,o.mk,s.Pl,l.lW],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}\n"],encapsulation:2,data:{animation:[ht.transformPanel,ht.fadeInCalendar]},changeDetection:0}),t})(),yt=(()=>{class t{constructor(t,e,i,n,r,s,o,l,c){this._overlay=e,this._ngZone=i,this._viewContainerRef=n,this._dateAdapter=s,this._dir=o,this._model=c,this._inputStateChanges=d.w0.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new a.vpe,this.monthSelected=new a.vpe,this.viewChanged=new a.vpe(!0),this.openedStream=new a.vpe,this.closedStream=new a.vpe,this._opened=!1,this.id="mat-datepicker-"+ut++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new u.x,this._scrollStrategy=r}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(t){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(t){this._color=t}get touchUi(){return this._touchUi}set touchUi(t){this._touchUi=(0,v.Ig)(t)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(t){const e=(0,v.Ig)(t);e!==this._disabled&&(this._disabled=e,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(t){this._restoreFocus=(0,v.Ig)(t)}get panelClass(){return this._panelClass}set panelClass(t){this._panelClass=(0,v.du)(t)}get opened(){return this._opened}set opened(t){(0,v.Ig)(t)?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}ngOnChanges(t){const e=t.xPosition||t.yPosition;if(e&&!e.firstChange&&this._overlayRef){const t=this._overlayRef.getConfig().positionStrategy;t instanceof r._G&&(this._setConnectedPositions(t),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(t){this._model.add(t)}_selectYear(t){this.yearSelected.emit(t)}_selectMonth(t){this.monthSelected.emit(t)}_viewChanged(t){this.viewChanged.emit(t)}registerInput(t){return this._inputStateChanges.unsubscribe(),this.datepickerInput=t,this._inputStateChanges=t.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(t){this._actionsPortal=t}removeActions(t){t===this._actionsPortal&&(this._actionsPortal=null)}open(){this._opened||this.disabled||(this._focusedElementBeforeOpen=(0,_.ht)(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened)return;if(this._componentRef){const t=this._componentRef.instance;t._startExitAnimation(),t._animationDone.pipe((0,g.q)(1)).subscribe(()=>this._destroyOverlay())}const t=()=>{this._opened&&(this._opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(t)):t()}_applyPendingSelection(){var t,e;null===(e=null===(t=this._componentRef)||void 0===t?void 0:t.instance)||void 0===e||e._applyPendingSelection()}_forwardContentValues(t){t.datepicker=this,t.color=this.color,t._actionsPortal=this._actionsPortal}_openOverlay(){this._destroyOverlay();const t=this.touchUi,e=this.datepickerInput.getOverlayLabelId(),i=new s.C5(gt,this._viewContainerRef),n=this._overlayRef=this._overlay.create(new r.X_({positionStrategy:t?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[t?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:t?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(t?"dialog":"popup")})),o=n.overlayElement;o.setAttribute("role","dialog"),e&&o.setAttribute("aria-labelledby",e),t&&o.setAttribute("aria-modal","true"),this._getCloseStream(n).subscribe(t=>{t&&t.preventDefault(),this.close()}),this._componentRef=n.attach(i),this._forwardContentValues(this._componentRef.instance),t||this._ngZone.onStable.pipe((0,g.q)(1)).subscribe(()=>n.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const t=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(t)}_setConnectedPositions(t){const e="end"===this.xPosition?"end":"start",i="start"===e?"end":"start",n="above"===this.yPosition?"bottom":"top",r="top"===n?"bottom":"top";return t.withPositions([{originX:e,originY:r,overlayX:e,overlayY:n},{originX:e,originY:n,overlayX:e,overlayY:r},{originX:i,originY:r,overlayX:i,overlayY:n},{originX:i,originY:n,overlayX:i,overlayY:r}])}_getCloseStream(t){return(0,p.T)(t.backdropClick(),t.detachments(),t.keydownEvents().pipe((0,b.h)(t=>t.keyCode===m.hY&&!(0,m.Vb)(t)||this.datepickerInput&&(0,m.Vb)(t,"altKey")&&t.keyCode===m.LH)))}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(r.aV),a.Y36(a.R0b),a.Y36(a.s_b),a.Y36(dt),a.Y36(h._A,8),a.Y36(S.Is,8),a.Y36(o.K0,8),a.Y36(J))},t.\u0275dir=a.lG2({type:t,inputs:{startView:"startView",xPosition:"xPosition",yPosition:"yPosition",startAt:"startAt",color:"color",touchUi:"touchUi",disabled:"disabled",restoreFocus:"restoreFocus",panelClass:"panelClass",opened:"opened",calendarHeaderComponent:"calendarHeaderComponent",dateClass:"dateClass"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[a.TTD]}),t})(),bt=(()=>{class t extends yt{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=a.n5z(t)))(i||t)}}(),t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[a._Bn([K,{provide:yt,useExisting:t}]),a.qOj],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),t})();class vt{constructor(t,e){this.target=t,this.targetElement=e,this.value=this.target.value}}let _t=(()=>{class t{constructor(t,e,i){this._elementRef=t,this._dateAdapter=e,this._dateFormats=i,this.dateChange=new a.vpe,this.dateInput=new a.vpe,this.stateChanges=new u.x,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=d.w0.EMPTY,this._localeSubscription=d.w0.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=t=>{const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t.value));return!e||this._matchesFilter(e)?null:{matDatepickerFilter:!0}},this._minValidator=t=>{const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t.value)),i=this._getMinDate();return!i||!e||this._dateAdapter.compareDate(i,e)<=0?null:{matDatepickerMin:{min:i,actual:e}}},this._maxValidator=t=>{const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t.value)),i=this._getMaxDate();return!i||!e||this._dateAdapter.compareDate(i,e)>=0?null:{matDatepickerMax:{max:i,actual:e}}},this._lastValueValid=!1,this._localeSubscription=e.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(t){this._assignValueProgrammatically(t)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(t){const e=(0,v.Ig)(t),i=this._elementRef.nativeElement;this._disabled!==e&&(this._disabled=e,this.stateChanges.next(void 0)),e&&this._isInitialized&&i.blur&&i.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(t){this._model=t,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(t=>{if(this._shouldHandleChangeEvent(t)){const e=this._getValueFromModel(t.selection);this._lastValueValid=this._isValidValue(e),this._cvaOnChange(e),this._onTouched(),this._formatValue(e),this.dateInput.emit(new vt(this,this._elementRef.nativeElement)),this.dateChange.emit(new vt(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(t){(function(t,e){const i=Object.keys(t);for(let n of i){const{previousValue:i,currentValue:r}=t[n];if(!e.isDateInstance(i)||!e.isDateInstance(r))return!0;if(!e.sameDate(i,r))return!0}return!1})(t,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(t){this._validatorOnChange=t}validate(t){return this._validator?this._validator(t):null}writeValue(t){this._assignValueProgrammatically(t)}registerOnChange(t){this._cvaOnChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_onKeydown(t){t.altKey&&t.keyCode===m.JH&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),t.preventDefault())}_onInput(t){const e=this._lastValueValid;let i=this._dateAdapter.parse(t,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(i),i=this._dateAdapter.getValidDateOrNull(i),this._dateAdapter.sameDate(i,this.value)?(t&&!this.value&&this._cvaOnChange(i),e!==this._lastValueValid&&this._validatorOnChange()):(this._assignValue(i),this._cvaOnChange(i),this.dateInput.emit(new vt(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new vt(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(t){this._elementRef.nativeElement.value=t?this._dateAdapter.format(t,this._dateFormats.display.dateInput):""}_assignValue(t){this._model?(this._assignValueToModel(t),this._pendingValue=null):this._pendingValue=t}_isValidValue(t){return!t||this._dateAdapter.isValid(t)}_parentDisabled(){return!1}_assignValueProgrammatically(t){t=this._dateAdapter.deserialize(t),this._lastValueValid=this._isValidValue(t),t=this._dateAdapter.getValidDateOrNull(t),this._assignValue(t),this._formatValue(t)}_matchesFilter(t){const e=this._getDateFilter();return!e||e(t)}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(h._A,8),a.Y36(h.sG,8))},t.\u0275dir=a.lG2({type:t,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[a.TTD]}),t})();const wt={provide:x.JU,useExisting:(0,a.Gpc)(()=>Ct),multi:!0},xt={provide:x.Cf,useExisting:(0,a.Gpc)(()=>Ct),multi:!0};let Ct=(()=>{class t extends _t{constructor(t,e,i,n){super(t,e,i),this._formField=n,this._closedSubscription=d.w0.EMPTY,this._validator=x.kI.compose(super._getValidators())}set matDatepicker(t){t&&(this._datepicker=t,this._closedSubscription=t.closedStream.subscribe(()=>this._onTouched()),this._registerModel(t.registerInput(this)))}get min(){return this._min}set min(t){const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t));this._dateAdapter.sameDate(e,this._min)||(this._min=e,this._validatorOnChange())}get max(){return this._max}set max(t){const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t));this._dateAdapter.sameDate(e,this._max)||(this._max=e,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(t){const e=this._matchesFilter(this.value);this._dateFilter=t,this._matchesFilter(this.value)!==e&&this._validatorOnChange()}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(t){return t}_assignValueToModel(t){this._model&&this._model.updateSelection(t,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(t){return t.source!==this}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(h._A,8),a.Y36(h.sG,8),a.Y36(C.G_,8))},t.\u0275dir=a.lG2({type:t,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(t,e){1&t&&a.NdJ("input",function(t){return e._onInput(t.target.value)})("change",function(){return e._onChange()})("blur",function(){return e._onBlur()})("keydown",function(t){return e._onKeydown(t)}),2&t&&(a.Ikx("disabled",e.disabled),a.uIk("aria-haspopup",e._datepicker?"dialog":null)("aria-owns",(null==e._datepicker?null:e._datepicker.opened)&&e._datepicker.id||null)("min",e.min?e._dateAdapter.toIso8601(e.min):null)("max",e.max?e._dateAdapter.toIso8601(e.max):null)("data-mat-calendar",e._datepicker?e._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[a._Bn([wt,xt,{provide:A.Jk,useExisting:t}]),a.qOj]}),t})(),At=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=a.lG2({type:t,selectors:[["","matDatepickerToggleIcon",""]]}),t})(),St=(()=>{class t{constructor(t,e,i){this._intl=t,this._changeDetectorRef=e,this._stateChanges=d.w0.EMPTY;const n=Number(i);this.tabIndex=n||0===n?n:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(t){this._disabled=(0,v.Ig)(t)}ngOnChanges(t){t.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(t){this.datepicker&&!this.disabled&&(this.datepicker.open(),t.stopPropagation())}_watchStateChanges(){const t=this.datepicker?this.datepicker.stateChanges:(0,f.of)(),e=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,f.of)(),i=this.datepicker?(0,p.T)(this.datepicker.openedStream,this.datepicker.closedStream):(0,f.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,p.T)(this._intl.changes,t,e,i).subscribe(()=>this._changeDetectorRef.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(z),a.Y36(a.sBO),a.$8M("tabindex"))},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-datepicker-toggle"]],contentQueries:function(t,e,i){if(1&t&&a.Suo(i,At,5),2&t){let t;a.iGM(t=a.CRH())&&(e._customIcon=t.first)}},viewQuery:function(t,e){if(1&t&&a.Gf(Z,5),2&t){let t;a.iGM(t=a.CRH())&&(e._button=t.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(t,e){1&t&&a.NdJ("click",function(t){return e._open(t)}),2&t&&(a.uIk("tabindex",null)("data-mat-calendar",e.datepicker?e.datepicker.id:null),a.ekj("mat-datepicker-toggle-active",e.datepicker&&e.datepicker.opened)("mat-accent",e.datepicker&&"accent"===e.datepicker.color)("mat-warn",e.datepicker&&"warn"===e.datepicker.color))},inputs:{tabIndex:"tabIndex",disabled:"disabled",datepicker:["for","datepicker"],ariaLabel:["aria-label","ariaLabel"],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[a.TTD],ngContentSelectors:q,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",4,"ngIf"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(t,e){1&t&&(a.F$t(U),a.TgZ(0,"button",0,1),a.YNc(2,B,2,0,"svg",2),a.Hsn(3),a.qZA()),2&t&&(a.Q6J("disabled",e.disabled)("disableRipple",e.disableRipple),a.uIk("aria-haspopup",e.datepicker?"dialog":null)("aria-label",e.ariaLabel||e._intl.openCalendarLabel)("tabindex",e.disabled?-1:e.tabIndex),a.xp6(2),a.Q6J("ngIf",!e._customIcon))},directives:[l.lW,o.O5],styles:[".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}\n"],encapsulation:2,changeDetection:0}),t})(),Et=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=a.oAB({type:t}),t.\u0275inj=a.cJS({providers:[z,pt],imports:[[o.ez,l.ot,r.U8,n.rt,s.eL,h.BQ],c.ZD]}),t})()},4608:(t,e,i)=>{"use strict";i.d(e,{WI:()=>k,Bq:()=>T,uw:()=>O,ZT:()=>D,Is:()=>R,so:()=>S});var n=i(369),r=i(6899),s=i(1572),o=i(1522),a=i(2526),l=i(1511),c=i(9666),h=i(970),u=i(2041),d=i(8868),p=i(9056),f=i(1258),m=i(1353),g=i(709),y=i(5842),b=i(4621);function v(t,e){}class _{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0}}const w={dialogContainer:(0,g.X$)("dialogContainer",[(0,g.SB)("void, exit",(0,g.oB)({opacity:0,transform:"scale(0.7)"})),(0,g.SB)("enter",(0,g.oB)({transform:"none"})),(0,g.eR)("* => enter",(0,g.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,g.oB)({transform:"none",opacity:1}))),(0,g.eR)("* => void, * => exit",(0,g.jt)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",(0,g.oB)({opacity:0})))])};let x=(()=>{class t extends r.en{constructor(t,e,i,n,r,o){super(),this._elementRef=t,this._focusTrapFactory=e,this._changeDetectorRef=i,this._config=r,this._focusMonitor=o,this._animationStateChanged=new s.vpe,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=t=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(t)),this._ariaLabelledBy=r.ariaLabelledBy||null,this._document=n}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}attachComponentPortal(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(t)}attachTemplatePortal(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(t)}_recaptureFocus(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}_trapFocus(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}_restoreFocus(){const t=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&t&&"function"==typeof t.focus){const e=(0,m.ht)(),i=this._elementRef.nativeElement;e&&e!==this._document.body&&e!==i&&!i.contains(e)||(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,m.ht)())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const t=this._elementRef.nativeElement,e=(0,m.ht)();return t===e||t.contains(e)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(b.qV),s.Y36(s.sBO),s.Y36(l.K0,8),s.Y36(_),s.Y36(b.tE))},t.\u0275dir=s.lG2({type:t,viewQuery:function(t,e){if(1&t&&s.Gf(r.Pl,7),2&t){let t;s.iGM(t=s.CRH())&&(e._portalOutlet=t.first)}},features:[s.qOj]}),t})(),C=(()=>{class t extends x{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:t,totalTime:e}){"enter"===t?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})):"exit"===t&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:e}))}_onAnimationStart({toState:t,totalTime:e}){"enter"===t?this._animationStateChanged.next({state:"opening",totalTime:e}):"exit"!==t&&"void"!==t||this._animationStateChanged.next({state:"closing",totalTime:e})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,e){1&t&&s.WFA("@dialogContainer.start",function(t){return e._onAnimationStart(t)})("@dialogContainer.done",function(t){return e._onAnimationDone(t)}),2&t&&(s.Ikx("id",e._id),s.uIk("role",e._config.role)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null),s.d8E("@dialogContainer",e._state))},features:[s.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&s.YNc(0,v,0,0,"ng-template",0)},directives:[r.Pl],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[w.dialogContainer]}}),t})(),A=0;class S{constructor(t,e,i="mat-dialog-"+A++){this._overlayRef=t,this._containerInstance=e,this.id=i,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new c.x,this._afterClosed=new c.x,this._beforeClosed=new c.x,this._state=0,e._id=i,e._animationStateChanged.pipe((0,d.h)(t=>"opened"===t.state),(0,p.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe((0,d.h)(t=>"closed"===t.state),(0,p.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),t.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),t.keydownEvents().pipe((0,d.h)(t=>t.keyCode===y.hY&&!this.disableClose&&!(0,y.Vb)(t))).subscribe(t=>{t.preventDefault(),E(this,"keyboard")}),t.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():E(this,"mouse")})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe((0,d.h)(t=>"closing"===t.state),(0,p.q)(1)).subscribe(e=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(t){let e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(t="",e=""){return this._overlayRef.updateSize({width:t,height:e}),this._overlayRef.updatePosition(),this}addPanelClass(t){return this._overlayRef.addPanelClass(t),this}removePanelClass(t){return this._overlayRef.removePanelClass(t),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function E(t,e,i){return void 0!==t._containerInstance&&(t._containerInstance._closeInteractionType=e),t.close(i)}const k=new s.OlP("MatDialogData"),T=new s.OlP("mat-dialog-default-options"),M=new s.OlP("mat-dialog-scroll-strategy"),L={provide:M,deps:[n.aV],useFactory:function(t){return()=>t.scrollStrategies.block()}};let I=(()=>{class t{constructor(t,e,i,n,r,s,o,a,l){this._overlay=t,this._injector=e,this._defaultOptions=i,this._parentDialog=n,this._overlayContainer=r,this._dialogRefConstructor=o,this._dialogContainerType=a,this._dialogDataToken=l,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new c.x,this._afterOpenedAtThisLevel=new c.x,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,h.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,f.O)(void 0))),this._scrollStrategy=s}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(t,e){(e=function(t,e){return Object.assign(Object.assign({},e),t)}(e,this._defaultOptions||new _)).id&&this.getDialogById(e.id);const i=this._createOverlay(e),n=this._attachDialogContainer(i,e),r=this._attachDialogContent(t,n,i,e);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(r),r.afterClosed().subscribe(()=>this._removeOpenDialog(r)),this.afterOpened.next(r),n._initializeWithAttachedContent(),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(t){return this.openDialogs.find(e=>e.id===t)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(t){const e=this._getOverlayConfig(t);return this._overlay.create(e)}_getOverlayConfig(t){const e=new n.X_({positionStrategy:this._overlay.position().global(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(e.backdropClass=t.backdropClass),e}_attachDialogContainer(t,e){const i=s.zs3.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:_,useValue:e}]}),n=new r.C5(this._dialogContainerType,e.viewContainerRef,i,e.componentFactoryResolver);return t.attach(n).instance}_attachDialogContent(t,e,i,n){const o=new this._dialogRefConstructor(i,e,n.id);if(t instanceof s.Rgc)e.attachTemplatePortal(new r.UE(t,null,{$implicit:n.data,dialogRef:o}));else{const i=this._createInjector(n,o,e),s=e.attachComponentPortal(new r.C5(t,n.viewContainerRef,i));o.componentInstance=s.instance}return o.updateSize(n.width,n.height).updatePosition(n.position),o}_createInjector(t,e,i){const n=t&&t.viewContainerRef&&t.viewContainerRef.injector,r=[{provide:this._dialogContainerType,useValue:i},{provide:this._dialogDataToken,useValue:t.data},{provide:this._dialogRefConstructor,useValue:e}];return!t.direction||n&&n.get(a.Is,null,s.XFs.Optional)||r.push({provide:a.Is,useValue:{value:t.direction,change:(0,u.of)()}}),s.zs3.create({parent:n||this._injector,providers:r})}_removeOpenDialog(t){const e=this.openDialogs.indexOf(t);e>-1&&(this.openDialogs.splice(e,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((t,e)=>{t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const t=this._overlayContainer.getContainerElement();if(t.parentElement){const e=t.parentElement.children;for(let i=e.length-1;i>-1;i--){let n=e[i];n===t||"SCRIPT"===n.nodeName||"STYLE"===n.nodeName||n.hasAttribute("aria-live")||(this._ariaHiddenElements.set(n,n.getAttribute("aria-hidden")),n.setAttribute("aria-hidden","true"))}}}_closeDialogs(t){let e=t.length;for(;e--;)t[e].close()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(n.aV),s.Y36(s.zs3),s.Y36(void 0),s.Y36(void 0),s.Y36(n.Xj),s.Y36(void 0),s.Y36(s.DyG),s.Y36(s.DyG),s.Y36(s.OlP))},t.\u0275dir=s.lG2({type:t}),t})(),O=(()=>{class t extends I{constructor(t,e,i,n,r,s,o){super(t,e,n,s,o,r,S,C,k)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.aV),s.LFG(s.zs3),s.LFG(l.Ye,8),s.LFG(T,8),s.LFG(M),s.LFG(t,12),s.LFG(n.Xj))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),D=(()=>{class t{constructor(t,e,i){this.dialogRef=t,this._elementRef=e,this._dialog=i,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=function(t,e){let i=t.nativeElement.parentElement;for(;i&&!i.classList.contains("mat-dialog-container");)i=i.parentElement;return i?e.find(t=>t.id===i.id):null}(this._elementRef,this._dialog.openDialogs))}ngOnChanges(t){const e=t._matDialogClose||t._matDialogCloseResult;e&&(this.dialogResult=e.currentValue)}_onButtonClick(t){E(this.dialogRef,0===t.screenX&&0===t.screenY?"keyboard":"mouse",this.dialogResult)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(S,8),s.Y36(s.SBq),s.Y36(O))},t.\u0275dir=s.lG2({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(t,e){1&t&&s.NdJ("click",function(t){return e._onButtonClick(t)}),2&t&&s.uIk("aria-label",e.ariaLabel||null)("type",e.type)},inputs:{type:"type",dialogResult:["mat-dialog-close","dialogResult"],ariaLabel:["aria-label","ariaLabel"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[s.TTD]}),t})(),R=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[O,L],imports:[[n.U8,r.eL,o.BQ],o.BQ]}),t})()},7679:(t,e,i)=>{"use strict";i.d(e,{d:()=>o,t:()=>a});var n=i(9861),r=i(1522),s=i(1572);let o=(()=>{class t{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(t){this._vertical=(0,n.Ig)(t)}get inset(){return this._inset}set inset(t){this._inset=(0,n.Ig)(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(t,e){2&t&&(s.uIk("aria-orientation",e.vertical?"vertical":"horizontal"),s.ekj("mat-divider-vertical",e.vertical)("mat-divider-horizontal",!e.vertical)("mat-divider-inset",e.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(t,e){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}\n"],encapsulation:2,changeDetection:0}),t})(),a=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[r.BQ],r.BQ]}),t})()},5001:(t,e,i)=>{"use strict";i.d(e,{pp:()=>Y,To:()=>G,ib:()=>U,u4:()=>z,yz:()=>q,yK:()=>H});var n=i(1572),r=i(9861),s=i(9666),o=i(6042),a=i(4230);let l=0;const c=new n.OlP("CdkAccordion");let h=(()=>{class t{constructor(){this._stateChanges=new s.x,this._openCloseAllActions=new s.x,this.id="cdk-accordion-"+l++,this._multi=!1}get multi(){return this._multi}set multi(t){this._multi=(0,r.Ig)(t)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(t){this._stateChanges.next(t)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.lG2({type:t,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[n._Bn([{provide:c,useExisting:t}]),n.TTD]}),t})(),u=0,d=(()=>{class t{constructor(t,e,i){this.accordion=t,this._changeDetectorRef=e,this._expansionDispatcher=i,this._openCloseAllSubscription=o.w0.EMPTY,this.closed=new n.vpe,this.opened=new n.vpe,this.destroyed=new n.vpe,this.expandedChange=new n.vpe,this.id="cdk-accordion-child-"+u++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=i.listen((t,e)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===e&&this.id!==t&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(t){t=(0,r.Ig)(t),this._expanded!==t&&(this._expanded=t,this.expandedChange.emit(t),t?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(t){this._disabled=(0,r.Ig)(t)}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(t=>{this.disabled||(this.expanded=t)})}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(c,12),n.Y36(n.sBO),n.Y36(a.A8))},t.\u0275dir=n.lG2({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[n._Bn([{provide:c,useValue:void 0}])]}),t})(),p=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({}),t})();var f=i(6899),m=i(1511),g=i(1522),y=i(4621),b=i(6424),v=i(1258),_=i(8868),w=i(9056),x=i(5842),C=i(3490),A=i(4951),S=i(5446),E=i(709);const k=["body"];function T(t,e){}const M=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],L=["mat-expansion-panel-header","*","mat-action-row"];function I(t,e){if(1&t&&n._UZ(0,"span",2),2&t){const t=n.oxw();n.Q6J("@indicatorRotate",t._getExpandedState())}}const O=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],D=["mat-panel-title","mat-panel-description","*"],R=new n.OlP("MAT_ACCORDION"),N="225ms cubic-bezier(0.4,0.0,0.2,1)",P={indicatorRotate:(0,E.X$)("indicatorRotate",[(0,E.SB)("collapsed, void",(0,E.oB)({transform:"rotate(0deg)"})),(0,E.SB)("expanded",(0,E.oB)({transform:"rotate(180deg)"})),(0,E.eR)("expanded <=> collapsed, void => collapsed",(0,E.jt)(N))]),bodyExpansion:(0,E.X$)("bodyExpansion",[(0,E.SB)("collapsed, void",(0,E.oB)({height:"0px",visibility:"hidden"})),(0,E.SB)("expanded",(0,E.oB)({height:"*",visibility:"visible"})),(0,E.eR)("expanded <=> collapsed, void => collapsed",(0,E.jt)(N))])};let F=(()=>{class t{constructor(t){this._template=t}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.Rgc))},t.\u0275dir=n.lG2({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]}),t})(),Z=0;const B=new n.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let U=(()=>{class t extends d{constructor(t,e,i,r,o,a,l){super(t,e,i),this._viewContainerRef=r,this._animationMode=a,this._hideToggle=!1,this.afterExpand=new n.vpe,this.afterCollapse=new n.vpe,this._inputChanges=new s.x,this._headerId="mat-expansion-panel-header-"+Z++,this._bodyAnimationDone=new s.x,this.accordion=t,this._document=o,this._bodyAnimationDone.pipe((0,b.x)((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{"void"!==t.fromState&&("expanded"===t.toState?this.afterExpand.emit():"collapsed"===t.toState&&this.afterCollapse.emit())}),l&&(this.hideToggle=l.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(t){this._hideToggle=(0,r.Ig)(t)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(t){this._togglePosition=t}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this.opened.pipe((0,v.O)(null),(0,_.h)(()=>this.expanded&&!this._portal),(0,w.q)(1)).subscribe(()=>{this._portal=new f.UE(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(t){this._inputChanges.next(t)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const t=this._document.activeElement,e=this._body.nativeElement;return t===e||e.contains(t)}return!1}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(R,12),n.Y36(n.sBO),n.Y36(a.A8),n.Y36(n.s_b),n.Y36(m.K0),n.Y36(C.Qb,8),n.Y36(B,8))},t.\u0275cmp=n.Xpm({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(t,e,i){if(1&t&&n.Suo(i,F,5),2&t){let t;n.iGM(t=n.CRH())&&(e._lazyContent=t.first)}},viewQuery:function(t,e){if(1&t&&n.Gf(k,5),2&t){let t;n.iGM(t=n.CRH())&&(e._body=t.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(t,e){2&t&&n.ekj("mat-expanded",e.expanded)("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-expansion-panel-spacing",e._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[n._Bn([{provide:R,useValue:void 0}]),n.qOj,n.TTD],ngContentSelectors:L,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(t,e){1&t&&(n.F$t(M),n.Hsn(0),n.TgZ(1,"div",0,1),n.NdJ("@bodyExpansion.done",function(t){return e._bodyAnimationDone.next(t)}),n.TgZ(3,"div",2),n.Hsn(4,1),n.YNc(5,T,0,0,"ng-template",3),n.qZA(),n.Hsn(6,2),n.qZA()),2&t&&(n.xp6(1),n.Q6J("@bodyExpansion",e._getExpandedState())("id",e.id),n.uIk("aria-labelledby",e._headerId),n.xp6(4),n.Q6J("cdkPortalOutlet",e._portal))},directives:[f.Pl],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[P.bodyExpansion]},changeDetection:0}),t})(),q=(()=>{class t{constructor(t,e,i,n,r,s){this.panel=t,this._element=e,this._focusMonitor=i,this._changeDetectorRef=n,this._animationMode=s,this._parentChangeSubscription=o.w0.EMPTY;const a=t.accordion?t.accordion._stateChanges.pipe((0,_.h)(t=>!(!t.hideToggle&&!t.togglePosition))):A.E;this._parentChangeSubscription=(0,S.T)(t.opened,t.closed,a,t._inputChanges.pipe((0,_.h)(t=>!!(t.hideToggle||t.disabled||t.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),t.closed.pipe((0,_.h)(()=>t._containsFocus())).subscribe(()=>i.focusVia(e,"program")),r&&(this.expandedHeight=r.expandedHeight,this.collapsedHeight=r.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const t=this._isExpanded();return t&&this.expandedHeight?this.expandedHeight:!t&&this.collapsedHeight?this.collapsedHeight:null}_keydown(t){switch(t.keyCode){case x.L_:case x.K5:(0,x.Vb)(t)||(t.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(t))}}focus(t,e){t?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(t=>{t&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(U,1),n.Y36(n.SBq),n.Y36(y.tE),n.Y36(n.sBO),n.Y36(B,8),n.Y36(C.Qb,8))},t.\u0275cmp=n.Xpm({type:t,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(t,e){1&t&&n.NdJ("click",function(){return e._toggle()})("keydown",function(t){return e._keydown(t)}),2&t&&(n.uIk("id",e.panel._headerId)("tabindex",e.disabled?-1:0)("aria-controls",e._getPanelId())("aria-expanded",e._isExpanded())("aria-disabled",e.panel.disabled),n.Udp("height",e._getHeaderHeight()),n.ekj("mat-expanded",e._isExpanded())("mat-expansion-toggle-indicator-after","after"===e._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===e._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},ngContentSelectors:D,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(t,e){1&t&&(n.F$t(O),n.TgZ(0,"span",0),n.Hsn(1),n.Hsn(2,1),n.Hsn(3,2),n.qZA(),n.YNc(4,I,1,1,"span",1)),2&t&&(n.xp6(4),n.Q6J("ngIf",e._showToggle()))},directives:[m.O5],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}\n'],encapsulation:2,data:{animation:[P.indicatorRotate]},changeDetection:0}),t})(),z=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.lG2({type:t,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),t})(),H=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.lG2({type:t,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),t})(),Y=(()=>{class t extends h{constructor(){super(...arguments),this._ownHeaders=new n.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(t){this._hideToggle=(0,r.Ig)(t)}ngAfterContentInit(){this._headers.changes.pipe((0,v.O)(this._headers)).subscribe(t=>{this._ownHeaders.reset(t.filter(t=>t.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new y.Em(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(t){this._keyManager.onKeydown(t)}_handleHeaderFocus(t){this._keyManager.updateActiveItem(t)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=n.n5z(t)))(i||t)}}(),t.\u0275dir=n.lG2({type:t,selectors:[["mat-accordion"]],contentQueries:function(t,e,i){if(1&t&&n.Suo(i,q,5),2&t){let t;n.iGM(t=n.CRH())&&(e._headers=t)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(t,e){2&t&&n.ekj("mat-accordion-multi",e.multi)},inputs:{multi:"multi",displayMode:"displayMode",togglePosition:"togglePosition",hideToggle:"hideToggle"},exportAs:["matAccordion"],features:[n._Bn([{provide:R,useExisting:t}]),n.qOj]}),t})(),G=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[m.ez,g.BQ,p,f.eL]]}),t})()},6283:(t,e,i)=>{"use strict";i.d(e,{G_:()=>K,TO:()=>F,KE:()=>$,Eo:()=>B,lN:()=>tt,bx:()=>z,R9:()=>V});var n=i(6337),r=i(1511),s=i(1572),o=i(1522),a=i(9861),l=i(9666),c=i(5446),h=i(5960),u=i(1258),d=i(9568),p=i(9056),f=i(709),m=i(3490),g=i(2526),y=i(1353);const b=["underline"],v=["connectionContainer"],_=["inputContainer"],w=["label"];function x(t,e){1&t&&(s.ynx(0),s.TgZ(1,"div",14),s._UZ(2,"div",15),s._UZ(3,"div",16),s._UZ(4,"div",17),s.qZA(),s.TgZ(5,"div",18),s._UZ(6,"div",15),s._UZ(7,"div",16),s._UZ(8,"div",17),s.qZA(),s.BQk())}function C(t,e){1&t&&(s.TgZ(0,"div",19),s.Hsn(1,1),s.qZA())}function A(t,e){if(1&t&&(s.ynx(0),s.Hsn(1,2),s.TgZ(2,"span"),s._uU(3),s.qZA(),s.BQk()),2&t){const t=s.oxw(2);s.xp6(3),s.Oqu(t._control.placeholder)}}function S(t,e){1&t&&s.Hsn(0,3,["*ngSwitchCase","true"])}function E(t,e){1&t&&(s.TgZ(0,"span",23),s._uU(1," *"),s.qZA())}function k(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"label",20,21),s.NdJ("cdkObserveContent",function(){return s.CHM(t),s.oxw().updateOutlineGap()}),s.YNc(2,A,4,1,"ng-container",12),s.YNc(3,S,1,0,"ng-content",12),s.YNc(4,E,2,0,"span",22),s.qZA()}if(2&t){const t=s.oxw();s.ekj("mat-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-form-field-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-accent","accent"==t.color)("mat-warn","warn"==t.color),s.Q6J("cdkObserveContentDisabled","outline"!=t.appearance)("id",t._labelId)("ngSwitch",t._hasLabel()),s.uIk("for",t._control.id)("aria-owns",t._control.id),s.xp6(2),s.Q6J("ngSwitchCase",!1),s.xp6(1),s.Q6J("ngSwitchCase",!0),s.xp6(1),s.Q6J("ngIf",!t.hideRequiredMarker&&t._control.required&&!t._control.disabled)}}function T(t,e){1&t&&(s.TgZ(0,"div",24),s.Hsn(1,4),s.qZA())}function M(t,e){if(1&t&&(s.TgZ(0,"div",25,26),s._UZ(2,"span",27),s.qZA()),2&t){const t=s.oxw();s.xp6(2),s.ekj("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)}}function L(t,e){if(1&t&&(s.TgZ(0,"div"),s.Hsn(1,5),s.qZA()),2&t){const t=s.oxw();s.Q6J("@transitionMessages",t._subscriptAnimationState)}}function I(t,e){if(1&t&&(s.TgZ(0,"div",31),s._uU(1),s.qZA()),2&t){const t=s.oxw(2);s.Q6J("id",t._hintLabelId),s.xp6(1),s.Oqu(t.hintLabel)}}function O(t,e){if(1&t&&(s.TgZ(0,"div",28),s.YNc(1,I,2,2,"div",29),s.Hsn(2,6),s._UZ(3,"div",30),s.Hsn(4,7),s.qZA()),2&t){const t=s.oxw();s.Q6J("@transitionMessages",t._subscriptAnimationState),s.xp6(1),s.Q6J("ngIf",t.hintLabel)}}const D=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],R=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let N=0;const P=new s.OlP("MatError");let F=(()=>{class t{constructor(t,e){this.id="mat-error-"+N++,t||e.nativeElement.setAttribute("aria-live","polite")}}return t.\u0275fac=function(e){return new(e||t)(s.$8M("aria-live"),s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(t,e){2&t&&s.uIk("id",e.id)},inputs:{id:"id"},features:[s._Bn([{provide:P,useExisting:t}])]}),t})();const Z={transitionMessages:(0,f.X$)("transitionMessages",[(0,f.SB)("enter",(0,f.oB)({opacity:1,transform:"translateY(0%)"})),(0,f.eR)("void => enter",[(0,f.oB)({opacity:0,transform:"translateY(-5px)"}),(0,f.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let B=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t}),t})(),U=0;const q=new s.OlP("MatHint");let z=(()=>{class t{constructor(){this.align="start",this.id="mat-hint-"+U++}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(t,e){2&t&&(s.uIk("id",e.id)("align",null),s.ekj("mat-form-field-hint-end","end"===e.align))},inputs:{align:"align",id:"id"},features:[s._Bn([{provide:q,useExisting:t}])]}),t})(),H=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["mat-label"]]}),t})(),Y=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["mat-placeholder"]]}),t})();const G=new s.OlP("MatPrefix"),j=new s.OlP("MatSuffix");let V=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["","matSuffix",""]],features:[s._Bn([{provide:j,useExisting:t}])]}),t})(),Q=0;class W{constructor(t){this._elementRef=t}}const J=(0,o.pj)(W,"primary"),X=new s.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),K=new s.OlP("MatFormField");let $=(()=>{class t extends J{constructor(t,e,i,n,r,s,o,a){super(t),this._elementRef=t,this._changeDetectorRef=e,this._dir=n,this._defaults=r,this._platform=s,this._ngZone=o,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new l.x,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+Q++,this._labelId="mat-form-field-label-"+Q++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==a,this.appearance=r&&r.appearance?r.appearance:"legacy",this._hideRequiredMarker=!(!r||null==r.hideRequiredMarker)&&r.hideRequiredMarker}get appearance(){return this._appearance}set appearance(t){const e=this._appearance;this._appearance=t||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&e!==t&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(t){this._hideRequiredMarker=(0,a.Ig)(t)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(t){this._hintLabel=t,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(t){t!==this._floatLabel&&(this._floatLabel=t||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(t){this._explicitFormFieldControl=t}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${t.controlType}`),t.stateChanges.pipe((0,u.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe((0,d.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,d.R)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,c.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,u.O)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,u.O)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,d.R)(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(t){const e=this._control?this._control.ngControl:null;return e&&e[t]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,h.R)(this._label.nativeElement,"transitionend").pipe((0,p.q)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let t=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&t.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const e=this._hintChildren?this._hintChildren.find(t=>"start"===t.align):null,i=this._hintChildren?this._hintChildren.find(t=>"end"===t.align):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),i&&t.push(i.id)}else this._errorChildren&&t.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(t)}}_validateControlChild(){}updateOutlineGap(){const t=this._label?this._label.nativeElement:null;if("outline"!==this.appearance||!t||!t.children.length||!t.textContent.trim())return;if(!this._platform.isBrowser)return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let e=0,i=0;const n=this._connectionContainerRef.nativeElement,r=n.querySelectorAll(".mat-form-field-outline-start"),s=n.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const r=n.getBoundingClientRect();if(0===r.width&&0===r.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const s=this._getStartEnd(r),o=t.children,a=this._getStartEnd(o[0].getBoundingClientRect());let l=0;for(let t=0;t0?.75*l+10:0}for(let o=0;o{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[r.ez,o.BQ,n.Q8],o.BQ]}),t})()},7271:(t,e,i)=>{"use strict";i.d(e,{Il:()=>_,N6:()=>w,DX:()=>d});var n=i(1572),r=i(1522),s=i(9861),o=i(2526);const a=["*"],l=".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}.mat-grid-tile-content{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}\n";class c{constructor(){this.columnIndex=0,this.rowIndex=0}get rowCount(){return this.rowIndex+1}get rowspan(){const t=Math.max(...this.tracker);return t>1?this.rowCount+t-1:this.rowCount}update(t,e){this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(t),this.tracker.fill(0,0,this.tracker.length),this.positions=e.map(t=>this._trackTile(t))}_trackTile(t){const e=this._findMatchingGap(t.colspan);return this._markTilePosition(e,t),this.columnIndex=e+t.colspan,new h(this.rowIndex,e)}_findMatchingGap(t){let e=-1,i=-1;do{this.columnIndex+t>this.tracker.length?(this._nextRow(),e=this.tracker.indexOf(0,this.columnIndex),i=this._findGapEndIndex(e)):(e=this.tracker.indexOf(0,this.columnIndex),-1!=e?(i=this._findGapEndIndex(e),this.columnIndex=e+1):(this._nextRow(),e=this.tracker.indexOf(0,this.columnIndex),i=this._findGapEndIndex(e)))}while(i-e{class t{constructor(t,e){this._element=t,this._gridList=e,this._rowspan=1,this._colspan=1}get rowspan(){return this._rowspan}set rowspan(t){this._rowspan=Math.round((0,s.su)(t))}get colspan(){return this._colspan}set colspan(t){this._colspan=Math.round((0,s.su)(t))}_setStyle(t,e){this._element.nativeElement.style[t]=e}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(u,8))},t.\u0275cmp=n.Xpm({type:t,selectors:[["mat-grid-tile"]],hostAttrs:[1,"mat-grid-tile"],hostVars:2,hostBindings:function(t,e){2&t&&n.uIk("rowspan",e.rowspan)("colspan",e.colspan)},inputs:{rowspan:"rowspan",colspan:"colspan"},exportAs:["matGridTile"],ngContentSelectors:a,decls:2,vars:0,consts:[[1,"mat-grid-tile-content"]],template:function(t,e){1&t&&(n.F$t(),n.TgZ(0,"div",0),n.Hsn(1),n.qZA())},styles:[l],encapsulation:2,changeDetection:0}),t})();const p=/^-?\d+((\.\d+)?[A-Za-z%$]?)+$/;class f{constructor(){this._rows=0,this._rowspan=0}init(t,e,i,n){this._gutterSize=v(t),this._rows=e.rowCount,this._rowspan=e.rowspan,this._cols=i,this._direction=n}getBaseTileSize(t,e){return`(${t}% - (${this._gutterSize} * ${e}))`}getTilePosition(t,e){return 0===e?"0":b(`(${t} + ${this._gutterSize}) * ${e}`)}getTileSize(t,e){return`(${t} * ${e}) + (${e-1} * ${this._gutterSize})`}setStyle(t,e,i){let n=100/this._cols,r=(this._cols-1)/this._cols;this.setColStyles(t,i,n,r),this.setRowStyles(t,e,n,r)}setColStyles(t,e,i,n){let r=this.getBaseTileSize(i,n);t._setStyle("rtl"===this._direction?"right":"left",this.getTilePosition(r,e)),t._setStyle("width",b(this.getTileSize(r,t.colspan)))}getGutterSpan(){return`${this._gutterSize} * (${this._rowspan} - 1)`}getTileSpan(t){return`${this._rowspan} * ${this.getTileSize(t,1)}`}getComputedHeight(){return null}}class m extends f{constructor(t){super(),this.fixedRowHeight=t}init(t,e,i,n){super.init(t,e,i,n),this.fixedRowHeight=v(this.fixedRowHeight),p.test(this.fixedRowHeight)}setRowStyles(t,e){t._setStyle("top",this.getTilePosition(this.fixedRowHeight,e)),t._setStyle("height",b(this.getTileSize(this.fixedRowHeight,t.rowspan)))}getComputedHeight(){return["height",b(`${this.getTileSpan(this.fixedRowHeight)} + ${this.getGutterSpan()}`)]}reset(t){t._setListStyle(["height",null]),t._tiles&&t._tiles.forEach(t=>{t._setStyle("top",null),t._setStyle("height",null)})}}class g extends f{constructor(t){super(),this._parseRatio(t)}setRowStyles(t,e,i,n){this.baseTileHeight=this.getBaseTileSize(i/this.rowHeightRatio,n),t._setStyle("marginTop",this.getTilePosition(this.baseTileHeight,e)),t._setStyle("paddingTop",b(this.getTileSize(this.baseTileHeight,t.rowspan)))}getComputedHeight(){return["paddingBottom",b(`${this.getTileSpan(this.baseTileHeight)} + ${this.getGutterSpan()}`)]}reset(t){t._setListStyle(["paddingBottom",null]),t._tiles.forEach(t=>{t._setStyle("marginTop",null),t._setStyle("paddingTop",null)})}_parseRatio(t){const e=t.split(":");this.rowHeightRatio=parseFloat(e[0])/parseFloat(e[1])}}class y extends f{setRowStyles(t,e){let i=this.getBaseTileSize(100/this._rowspan,(this._rows-1)/this._rows);t._setStyle("top",this.getTilePosition(i,e)),t._setStyle("height",b(this.getTileSize(i,t.rowspan)))}reset(t){t._tiles&&t._tiles.forEach(t=>{t._setStyle("top",null),t._setStyle("height",null)})}}function b(t){return`calc(${t})`}function v(t){return t.match(/([A-Za-z%]+)$/)?t:`${t}px`}let _=(()=>{class t{constructor(t,e){this._element=t,this._dir=e,this._gutter="1px"}get cols(){return this._cols}set cols(t){this._cols=Math.max(1,Math.round((0,s.su)(t)))}get gutterSize(){return this._gutter}set gutterSize(t){this._gutter=`${null==t?"":t}`}get rowHeight(){return this._rowHeight}set rowHeight(t){const e=`${null==t?"":t}`;e!==this._rowHeight&&(this._rowHeight=e,this._setTileStyler(this._rowHeight))}ngOnInit(){this._checkCols(),this._checkRowHeight()}ngAfterContentChecked(){this._layoutTiles()}_checkCols(){}_checkRowHeight(){this._rowHeight||this._setTileStyler("1:1")}_setTileStyler(t){this._tileStyler&&this._tileStyler.reset(this),this._tileStyler="fit"===t?new y:t&&t.indexOf(":")>-1?new g(t):new m(t)}_layoutTiles(){this._tileCoordinator||(this._tileCoordinator=new c);const t=this._tileCoordinator,e=this._tiles.filter(t=>!t._gridList||t._gridList===this),i=this._dir?this._dir.value:"ltr";this._tileCoordinator.update(this.cols,e),this._tileStyler.init(this.gutterSize,t,this.cols,i),e.forEach((e,i)=>{const n=t.positions[i];this._tileStyler.setStyle(e,n.row,n.col)}),this._setListStyle(this._tileStyler.getComputedHeight())}_setListStyle(t){t&&(this._element.nativeElement.style[t[0]]=t[1])}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(o.Is,8))},t.\u0275cmp=n.Xpm({type:t,selectors:[["mat-grid-list"]],contentQueries:function(t,e,i){if(1&t&&n.Suo(i,d,5),2&t){let t;n.iGM(t=n.CRH())&&(e._tiles=t)}},hostAttrs:[1,"mat-grid-list"],hostVars:1,hostBindings:function(t,e){2&t&&n.uIk("cols",e.cols)},inputs:{cols:"cols",gutterSize:"gutterSize",rowHeight:"rowHeight"},exportAs:["matGridList"],features:[n._Bn([{provide:u,useExisting:t}])],ngContentSelectors:a,decls:2,vars:0,template:function(t,e){1&t&&(n.F$t(),n.TgZ(0,"div"),n.Hsn(1),n.qZA())},styles:[l],encapsulation:2,changeDetection:0}),t})(),w=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[r.uc,r.BQ],r.uc,r.BQ]}),t})()},3691:(t,e,i)=>{"use strict";i.d(e,{Hw:()=>D,Ps:()=>R});var n=i(1572),r=i(1522),s=i(9861),o=i(1511),a=i(2041),l=i(9647),c=i(6891),h=i(6042),u=i(343),d=i(1681),p=i(1816),f=i(849),m=i(7839),g=i(9056),y=i(9063),b=i(269);const v=["*"];function _(t){return Error(`Unable to find icon with the name "${t}"`)}function w(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function x(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}class C{constructor(t,e,i){this.url=t,this.svgText=e,this.options=i}}let A=(()=>{class t{constructor(t,e,i,n){this._httpClient=t,this._sanitizer=e,this._errorHandler=n,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=i}addSvgIcon(t,e,i){return this.addSvgIconInNamespace("",t,e,i)}addSvgIconLiteral(t,e,i){return this.addSvgIconLiteralInNamespace("",t,e,i)}addSvgIconInNamespace(t,e,i,n){return this._addSvgIconConfig(t,e,new C(i,null,n))}addSvgIconResolver(t){return this._resolvers.push(t),this}addSvgIconLiteralInNamespace(t,e,i,r){const s=this._sanitizer.sanitize(n.q3G.HTML,i);if(!s)throw x(i);return this._addSvgIconConfig(t,e,new C("",s,r))}addSvgIconSet(t,e){return this.addSvgIconSetInNamespace("",t,e)}addSvgIconSetLiteral(t,e){return this.addSvgIconSetLiteralInNamespace("",t,e)}addSvgIconSetInNamespace(t,e,i){return this._addSvgIconSetConfig(t,new C(e,null,i))}addSvgIconSetLiteralInNamespace(t,e,i){const r=this._sanitizer.sanitize(n.q3G.HTML,e);if(!r)throw x(e);return this._addSvgIconSetConfig(t,new C("",r,i))}registerFontClassAlias(t,e=t){return this._fontCssClassesByAlias.set(t,e),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){const e=this._sanitizer.sanitize(n.q3G.RESOURCE_URL,t);if(!e)throw w(t);const i=this._cachedIconsByUrl.get(e);return i?(0,a.of)(S(i)):this._loadSvgIconFromConfig(new C(t,null)).pipe((0,u.b)(t=>this._cachedIconsByUrl.set(e,t)),(0,d.U)(t=>S(t)))}getNamedSvgIcon(t,e=""){const i=E(e,t);let n=this._svgIconConfigs.get(i);if(n)return this._getSvgFromConfig(n);if(n=this._getIconConfigFromResolvers(e,t),n)return this._svgIconConfigs.set(i,n),this._getSvgFromConfig(n);const r=this._iconSetConfigs.get(e);return r?this._getSvgFromIconSetConfigs(t,r):(0,l._)(_(i))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?(0,a.of)(S(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe((0,d.U)(t=>S(t)))}_getSvgFromIconSetConfigs(t,e){const i=this._extractIconWithNameFromAnySet(t,e);if(i)return(0,a.of)(i);const r=e.filter(t=>!t.svgText).map(t=>this._loadSvgIconSetFromConfig(t).pipe((0,p.K)(e=>{const i=this._sanitizer.sanitize(n.q3G.RESOURCE_URL,t.url);return this._errorHandler.handleError(new Error(`Loading icon set URL: ${i} failed: ${e.message}`)),(0,a.of)(null)})));return(0,c.D)(r).pipe((0,d.U)(()=>{const i=this._extractIconWithNameFromAnySet(t,e);if(!i)throw _(t);return i}))}_extractIconWithNameFromAnySet(t,e){for(let i=e.length-1;i>=0;i--){const n=e[i];if(n.svgText&&n.svgText.indexOf(t)>-1){const e=this._svgElementFromConfig(n),i=this._extractSvgIconFromSet(e,t,n.options);if(i)return i}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe((0,u.b)(e=>t.svgText=e),(0,d.U)(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?(0,a.of)(null):this._fetchIcon(t).pipe((0,u.b)(e=>t.svgText=e))}_extractSvgIconFromSet(t,e,i){const n=t.querySelector(`[id="${e}"]`);if(!n)return null;const r=n.cloneNode(!0);if(r.removeAttribute("id"),"svg"===r.nodeName.toLowerCase())return this._setSvgAttributes(r,i);if("symbol"===r.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(r),i);const s=this._svgElementFromString("");return s.appendChild(r),this._setSvgAttributes(s,i)}_svgElementFromString(t){const e=this._document.createElement("DIV");e.innerHTML=t;const i=e.querySelector("svg");if(!i)throw Error(" tag not found");return i}_toSvgElement(t){const e=this._svgElementFromString(""),i=t.attributes;for(let n=0;nthis._inProgressUrlFetches.delete(o)),(0,m.B)());return this._inProgressUrlFetches.set(o,l),l}_addSvgIconConfig(t,e,i){return this._svgIconConfigs.set(E(t,e),i),this}_addSvgIconSetConfig(t,e){const i=this._iconSetConfigs.get(t);return i?i.push(e):this._iconSetConfigs.set(t,[e]),this}_svgElementFromConfig(t){if(!t.svgElement){const e=this._svgElementFromString(t.svgText);this._setSvgAttributes(e,t.options),t.svgElement=e}return t.svgElement}_getIconConfigFromResolvers(t,e){for(let n=0;ne?e.pathname+e.search:""}}}),L=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],I=L.map(t=>`[${t}]`).join(", "),O=/^url\(['"]?#(.*?)['"]?\)$/;let D=(()=>{class t extends T{constructor(t,e,i,n,r){super(t),this._iconRegistry=e,this._location=n,this._errorHandler=r,this._inline=!1,this._currentIconFetch=h.w0.EMPTY,i||t.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(t){this._inline=(0,s.Ig)(t)}get svgIcon(){return this._svgIcon}set svgIcon(t){t!==this._svgIcon&&(t?this._updateSvgIcon(t):this._svgIcon&&this._clearSvgElement(),this._svgIcon=t)}get fontSet(){return this._fontSet}set fontSet(t){const e=this._cleanupFontValue(t);e!==this._fontSet&&(this._fontSet=e,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(t){const e=this._cleanupFontValue(t);e!==this._fontIcon&&(this._fontIcon=e,this._updateFontIconClasses())}_splitIconName(t){if(!t)return["",""];const e=t.split(":");switch(e.length){case 1:return["",e[0]];case 2:return e;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const t=this._elementsWithExternalReferences;if(t&&t.size){const t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(t){this._clearSvgElement();const e=t.querySelectorAll("style");for(let n=0;n{e.forEach(e=>{i.setAttribute(e.name,`url('${t}#${e.value}')`)})})}_cacheChildrenWithExternalReferences(t){const e=t.querySelectorAll(I),i=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let n=0;n{const r=e[n],s=r.getAttribute(t),o=s?s.match(O):null;if(o){let e=i.get(r);e||(e=[],i.set(r,e)),e.push({name:t,value:o[1]})}})}_updateSvgIcon(t){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),t){const[e,i]=this._splitIconName(t);e&&(this._svgNamespace=e),i&&(this._svgName=i),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(i,e).pipe((0,g.q)(1)).subscribe(t=>this._setSvgElement(t),t=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${e}:${i}! ${t.message}`))})}}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(A),n.$8M("aria-hidden"),n.Y36(M),n.Y36(n.qLn))},t.\u0275cmp=n.Xpm({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(t,e){2&t&&(n.uIk("data-mat-icon-type",e._usingFontIcon()?"font":"svg")("data-mat-icon-name",e._svgName||e.fontIcon)("data-mat-icon-namespace",e._svgNamespace||e.fontSet),n.ekj("mat-icon-inline",e.inline)("mat-icon-no-color","primary"!==e.color&&"accent"!==e.color&&"warn"!==e.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[n.qOj],ngContentSelectors:v,decls:1,vars:0,template:function(t,e){1&t&&(n.F$t(),n.Hsn(0))},styles:[".mat-icon{background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[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}\n"],encapsulation:2,changeDetection:0}),t})(),R=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[r.BQ],r.BQ]}),t})()},6756:(t,e,i)=>{"use strict";i.d(e,{Jk:()=>_,Nt:()=>S,c:()=>E,D7:()=>v});var n=i(1353),r=i(1572),s=i(9861),o=i(4951),a=i(9666),l=i(5960),c=i(9610),h=i(9568),u=i(1511);const d=(0,n.i$)({passive:!0});let p=(()=>{class t{constructor(t,e){this._platform=t,this._ngZone=e,this._monitoredElements=new Map}monitor(t){if(!this._platform.isBrowser)return o.E;const e=(0,s.fI)(t),i=this._monitoredElements.get(e);if(i)return i.subject;const n=new a.x,r="cdk-text-field-autofilled",l=t=>{"cdk-text-field-autofill-start"!==t.animationName||e.classList.contains(r)?"cdk-text-field-autofill-end"===t.animationName&&e.classList.contains(r)&&(e.classList.remove(r),this._ngZone.run(()=>n.next({target:t.target,isAutofilled:!1}))):(e.classList.add(r),this._ngZone.run(()=>n.next({target:t.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{e.addEventListener("animationstart",l,d),e.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(e,{subject:n,unlisten:()=>{e.removeEventListener("animationstart",l,d)}}),n}stopMonitoring(t){const e=(0,s.fI)(t),i=this._monitoredElements.get(e);i&&(i.unlisten(),i.subject.complete(),e.classList.remove("cdk-text-field-autofill-monitored"),e.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(e))}ngOnDestroy(){this._monitoredElements.forEach((t,e)=>this.stopMonitoring(e))}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(n.t4),r.LFG(r.R0b))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(n.t4),r.LFG(r.R0b))},token:t,providedIn:"root"}),t})(),f=(()=>{class t{constructor(t,e,i,n){this._elementRef=t,this._platform=e,this._ngZone=i,this._destroyed=new a.x,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._document=n,this._textareaElement=this._elementRef.nativeElement,this._measuringClass=e.FIREFOX?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring"}get minRows(){return this._minRows}set minRows(t){this._minRows=(0,s.su)(t),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(t){this._maxRows=(0,s.su)(t),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(t){t=(0,s.Ig)(t),this._enabled!==t&&((this._enabled=t)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(t){this._cachedPlaceholderHeight=void 0,this._textareaElement.placeholder=t,this._cacheTextareaPlaceholderHeight()}_setMinHeight(){const t=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;t&&(this._textareaElement.style.minHeight=t)}_setMaxHeight(){const t=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;t&&(this._textareaElement.style.maxHeight=t)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{const t=this._getWindow();(0,l.R)(t,"resize").pipe((0,c.e)(16),(0,h.R)(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0))}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let t=this._textareaElement.cloneNode(!1);t.rows=1,t.style.position="absolute",t.style.visibility="hidden",t.style.border="none",t.style.padding="0",t.style.height="",t.style.minHeight="",t.style.maxHeight="",t.style.overflow="hidden",this._textareaElement.parentNode.appendChild(t),this._cachedLineHeight=t.clientHeight,this._textareaElement.parentNode.removeChild(t),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){this._textareaElement.classList.add(this._measuringClass);const t=this._textareaElement.scrollHeight-4;return this._textareaElement.classList.remove(this._measuringClass),t}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const t=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=t}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(t=!1){if(!this._enabled)return;if(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight)return;const e=this._elementRef.nativeElement,i=e.value;if(!t&&this._minRows===this._previousMinRows&&i===this._previousValue)return;const n=this._measureScrollHeight(),r=Math.max(n,this._cachedPlaceholderHeight||0);e.style.height=`${r}px`,this._ngZone.runOutsideAngular(()=>{"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(()=>this._scrollToCaretPosition(e)):setTimeout(()=>this._scrollToCaretPosition(e))}),this._previousValue=i,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(t){const{selectionStart:e,selectionEnd:i}=t,n=this._getDocument();this._destroyed.isStopped||n.activeElement!==t||t.setSelectionRange(e,i)}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(n.t4),r.Y36(r.R0b),r.Y36(u.K0,8))},t.\u0275dir=r.lG2({type:t,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(t,e){1&t&&r.NdJ("input",function(){return e._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),t})(),m=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[n.ud]]}),t})();var g=i(1522),y=i(6283),b=i(6073);let v=(()=>{class t extends f{get matAutosizeMinRows(){return this.minRows}set matAutosizeMinRows(t){this.minRows=t}get matAutosizeMaxRows(){return this.maxRows}set matAutosizeMaxRows(t){this.maxRows=t}get matAutosize(){return this.enabled}set matAutosize(t){this.enabled=t}get matTextareaAutosize(){return this.enabled}set matTextareaAutosize(t){this.enabled=t}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=r.n5z(t)))(i||t)}}(),t.\u0275dir=r.lG2({type:t,selectors:[["textarea","mat-autosize",""],["textarea","matTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize","mat-autosize"],inputs:{cdkAutosizeMinRows:"cdkAutosizeMinRows",cdkAutosizeMaxRows:"cdkAutosizeMaxRows",matAutosizeMinRows:"matAutosizeMinRows",matAutosizeMaxRows:"matAutosizeMaxRows",matAutosize:["mat-autosize","matAutosize"],matTextareaAutosize:"matTextareaAutosize"},exportAs:["matTextareaAutosize"],features:[r.qOj]}),t})();const _=new r.OlP("MAT_INPUT_VALUE_ACCESSOR"),w=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let x=0;class C{constructor(t,e,i,n){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=i,this.ngControl=n}}const A=(0,g.FD)(C);let S=(()=>{class t extends A{constructor(t,e,i,r,s,o,l,c,h,u){super(o,r,s,i),this._elementRef=t,this._platform=e,this.ngControl=i,this._autofillMonitor=c,this._formField=u,this._uid="mat-input-"+x++,this.focused=!1,this.stateChanges=new a.x,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._required=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(t=>(0,n.qK)().has(t));const d=this._elementRef.nativeElement,p=d.nodeName.toLowerCase();this._inputValueAccessor=l||d,this._previousNativeValue=this.value,this.id=this.id,e.IOS&&h.runOutsideAngular(()=>{t.nativeElement.addEventListener("keyup",t=>{const e=t.target;e.value||0!==e.selectionStart||0!==e.selectionEnd||(e.setSelectionRange(1,1),e.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===p,this._isTextarea="textarea"===p,this._isNativeSelect&&(this.controlType=d.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(t){this._disabled=(0,s.Ig)(t),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(t){this._id=t||this._uid}get required(){return this._required}set required(t){this._required=(0,s.Ig)(t)}get type(){return this._type}set type(t){this._type=t||"text",this._validateType(),!this._isTextarea&&(0,n.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(t){this._readonly=(0,s.Ig)(t)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(t=>{this.autofilled=t.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(t){this._elementRef.nativeElement.focus(t)}_focusChanged(t){t===this.focused||this.readonly&&t||(this.focused=t,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var t,e;const i=(null===(e=null===(t=this._formField)||void 0===t?void 0:t._hideControlPlaceholder)||void 0===e?void 0:e.call(t))?null:this.placeholder;if(i!==this._previousPlaceholder){const t=this._elementRef.nativeElement;this._previousPlaceholder=i,i?t.setAttribute("placeholder",i):t.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}_validateType(){w.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let t=this._elementRef.nativeElement.validity;return t&&t.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const t=this._elementRef.nativeElement,e=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&e&&e.label)}return this.focused||!this.empty}setDescribedByIds(t){t.length?this._elementRef.nativeElement.setAttribute("aria-describedby",t.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(n.t4),r.Y36(b.a5,10),r.Y36(b.F,8),r.Y36(b.sg,8),r.Y36(g.rD),r.Y36(_,10),r.Y36(p),r.Y36(r.R0b),r.Y36(y.G_,8))},t.\u0275dir=r.lG2({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:9,hostBindings:function(t,e){1&t&&r.NdJ("focus",function(){return e._focusChanged(!0)})("blur",function(){return e._focusChanged(!1)})("input",function(){return e._onInput()}),2&t&&(r.Ikx("disabled",e.disabled)("required",e.required),r.uIk("id",e.id)("data-placeholder",e.placeholder)("readonly",e.readonly&&!e._isNativeSelect||null)("aria-invalid",e.empty&&e.required?null:e.errorState)("aria-required",e.required),r.ekj("mat-input-server",e._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[r._Bn([{provide:y.Eo,useExisting:t}]),r.qOj,r.TTD]}),t})(),E=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:[g.rD],imports:[[m,y.lN,g.BQ],m,y.lN]}),t})()},5250:(t,e,i)=>{"use strict";i.d(e,{i$:()=>v,Tg:()=>x,ie:()=>C});var n=i(1511),r=i(1572),s=i(1522),o=i(9861),a=i(9666),l=i(9568),c=(i(1258),i(4621),i(4230),i(5842),i(6073),i(7679));const h=["*"],u=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],d=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"];class p{}const f=(0,s.Id)((0,s.Kr)(p));class m{}const g=(0,s.Kr)(m),y=new r.OlP("MatList"),b=new r.OlP("MatNavList");let v=(()=>{class t extends f{constructor(t){super(),this._elementRef=t,this._stateChanges=new a.x,"action-list"===this._getListType()&&t.nativeElement.classList.add("mat-action-list")}_getListType(){const t=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===t?"list":"mat-action-list"===t?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq))},t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[r._Bn([{provide:y,useExisting:t}]),r.qOj,r.TTD],ngContentSelectors:h,decls:1,vars:0,template:function(t,e){1&t&&(r.F$t(),r.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],encapsulation:2,changeDetection:0}),t})(),_=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.lG2({type:t,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),t})(),w=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.lG2({type:t,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),t})(),x=(()=>{class t extends g{constructor(t,e,i,n){super(),this._element=t,this._isInteractiveList=!1,this._destroyed=new a.x,this._disabled=!1,this._isInteractiveList=!!(i||n&&"action-list"===n._getListType()),this._list=i||n;const r=this._getHostElement();"button"!==r.nodeName.toLowerCase()||r.hasAttribute("type")||r.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe((0,l.R)(this._destroyed)).subscribe(()=>{e.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(t){this._disabled=(0,o.Ig)(t)}ngAfterContentInit(){(0,s.E0)(this._lines,this._element)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_isRippleDisabled(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}_getHostElement(){return this._element.nativeElement}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(r.sBO),r.Y36(b,8),r.Y36(y,8))},t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(t,e,i){if(1&t&&(r.Suo(i,_,5),r.Suo(i,w,5),r.Suo(i,s.X2,5)),2&t){let t;r.iGM(t=r.CRH())&&(e._avatar=t.first),r.iGM(t=r.CRH())&&(e._icon=t.first),r.iGM(t=r.CRH())&&(e._lines=t)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(t,e){2&t&&r.ekj("mat-list-item-disabled",e.disabled)("mat-list-item-avatar",e._avatar||e._icon)("mat-list-item-with-avatar",e._avatar||e._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[r.qOj],ngContentSelectors:d,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(t,e){1&t&&(r.F$t(u),r.TgZ(0,"div",0),r._UZ(1,"div",1),r.Hsn(2),r.TgZ(3,"div",2),r.Hsn(4,1),r.qZA(),r.Hsn(5,2),r.qZA()),2&t&&(r.xp6(1),r.Q6J("matRippleTrigger",e._getHostElement())("matRippleDisabled",e._isRippleDisabled()))},directives:[s.wG],encapsulation:2,changeDetection:0}),t})(),C=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[s.uc,s.si,s.BQ,s.us,n.ez],s.uc,s.BQ,s.us,c.t]}),t})()},8055:(t,e,i)=>{"use strict";i.d(e,{VK:()=>Z,OP:()=>R,Tx:()=>Y,p6:()=>z});var n=i(4621),r=i(9861),s=i(5842),o=i(1572),a=i(9666),l=i(6042),c=i(5446),h=i(2041),u=i(7911),d=i(1258),p=i(4324),f=i(9056),m=i(8868),g=i(9568),y=i(6493),b=i(709),v=i(6899),_=i(1511),w=i(1522),x=i(369),C=i(1353),A=i(4894),S=i(2526);const E=["mat-menu-item",""],k=["*"];function T(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"div",0),o.NdJ("keydown",function(e){return o.CHM(t),o.oxw()._handleKeydown(e)})("click",function(){return o.CHM(t),o.oxw().closed.emit("click")})("@transformMenu.start",function(e){return o.CHM(t),o.oxw()._onAnimationStart(e)})("@transformMenu.done",function(e){return o.CHM(t),o.oxw()._onAnimationDone(e)}),o.TgZ(1,"div",1),o.Hsn(2),o.qZA(),o.qZA()}if(2&t){const t=o.oxw();o.Q6J("id",t.panelId)("ngClass",t._classList)("@transformMenu",t._panelAnimationState),o.uIk("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby||null)("aria-describedby",t.ariaDescribedby||null)}}const M={transformMenu:(0,b.X$)("transformMenu",[(0,b.SB)("void",(0,b.oB)({opacity:0,transform:"scale(0.8)"})),(0,b.eR)("void => enter",(0,b.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,b.oB)({opacity:1,transform:"scale(1)"}))),(0,b.eR)("* => void",(0,b.jt)("100ms 25ms linear",(0,b.oB)({opacity:0})))]),fadeInItems:(0,b.X$)("fadeInItems",[(0,b.SB)("showing",(0,b.oB)({opacity:1})),(0,b.eR)("void => *",[(0,b.oB)({opacity:0}),(0,b.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},L=new o.OlP("MatMenuContent"),I=new o.OlP("MAT_MENU_PANEL");class O{}const D=(0,w.Kr)((0,w.Id)(O));let R=(()=>{class t extends D{constructor(t,e,i,n){super(),this._elementRef=t,this._focusMonitor=i,this._parentMenu=n,this.role="menuitem",this._hovered=new a.x,this._focused=new a.x,this._highlighted=!1,this._triggersSubmenu=!1,n&&n.addItem&&n.addItem(this)}focus(t,e){this._focusMonitor&&t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e),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(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var t,e;const i=this._elementRef.nativeElement.cloneNode(!0),n=i.querySelectorAll("mat-icon, .material-icons");for(let r=0;r{class t{constructor(t,e,i){this._elementRef=t,this._ngZone=e,this._defaultOptions=i,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new o.n_E,this._tabSubscription=l.w0.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new a.x,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new o.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+P++}get xPosition(){return this._xPosition}set xPosition(t){this._xPosition=t,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(t){this._yPosition=t,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(t){this._overlapTrigger=(0,r.Ig)(t)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=(0,r.Ig)(t)}set panelClass(t){const e=this._previousPanelClass;e&&e.length&&e.split(" ").forEach(t=>{this._classList[t]=!1}),this._previousPanelClass=t,t&&t.length&&(t.split(" ").forEach(t=>{this._classList[t]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(t){this.panelClass=t}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new n.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,d.O)(this._directDescendantItems),(0,p.w)(t=>(0,c.T)(...t.map(t=>t._focused)))).subscribe(t=>this._keyManager.updateActiveItem(t))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe((0,d.O)(this._directDescendantItems),(0,p.w)(t=>(0,c.T)(...t.map(t=>t._hovered))))}addItem(t){}removeItem(t){}_handleKeydown(t){const e=t.keyCode,i=this._keyManager;switch(e){case s.hY:(0,s.Vb)(t)||(t.preventDefault(),this.closed.emit("keydown"));break;case s.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case s.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:e!==s.LH&&e!==s.JH||i.setFocusOrigin("keyboard"),i.onKeydown(t)}}focusFirstItem(t="program"){this.lazyContent?this._ngZone.onStable.pipe((0,f.q)(1)).subscribe(()=>this._focusFirstItem(t)):this._focusFirstItem(t)}_focusFirstItem(t){const e=this._keyManager;if(e.setFocusOrigin(t).setFirstItemActive(),!e.activeItem&&this._directDescendantItems.length){let t=this._directDescendantItems.first._getHostElement().parentElement;for(;t;){if("menu"===t.getAttribute("role")){t.focus();break}t=t.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(t){const e=`mat-elevation-z${Math.min(4+t,24)}`,i=Object.keys(this._classList).find(t=>t.startsWith("mat-elevation-z"));i&&i!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[e]=!0,this._previousElevation=e)}setPositionClasses(t=this.xPosition,e=this.yPosition){const i=this._classList;i["mat-menu-before"]="before"===t,i["mat-menu-after"]="after"===t,i["mat-menu-above"]="above"===e,i["mat-menu-below"]="below"===e}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(t){this._animationDone.next(t),this._isAnimating=!1}_onAnimationStart(t){this._isAnimating=!0,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,d.O)(this._allItems)).subscribe(t=>{this._directDescendantItems.reset(t.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.SBq),o.Y36(o.R0b),o.Y36(N))},t.\u0275dir=o.lG2({type:t,contentQueries:function(t,e,i){if(1&t&&(o.Suo(i,L,5),o.Suo(i,R,5),o.Suo(i,R,4)),2&t){let t;o.iGM(t=o.CRH())&&(e.lazyContent=t.first),o.iGM(t=o.CRH())&&(e._allItems=t),o.iGM(t=o.CRH())&&(e.items=t)}},viewQuery:function(t,e){if(1&t&&o.Gf(o.Rgc,5),2&t){let t;o.iGM(t=o.CRH())&&(e.templateRef=t.first)}},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),t})(),Z=(()=>{class t extends F{constructor(t,e,i){super(t,e,i)}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.SBq),o.Y36(o.R0b),o.Y36(N))},t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(t,e){2&t&&o.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[o._Bn([{provide:I,useExisting:t}]),o.qOj],ngContentSelectors:k,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(t,e){1&t&&(o.F$t(),o.YNc(0,T,3,6,"ng-template"))},directives:[_.mk],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:"";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,data:{animation:[M.transformMenu,M.fadeInItems]},changeDetection:0}),t})();const B=new o.OlP("mat-menu-scroll-strategy"),U={provide:B,deps:[x.aV],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},q=(0,C.i$)({passive:!0});let z=(()=>{class t{constructor(t,e,i,r,s,a,c,h){this._overlay=t,this._element=e,this._viewContainerRef=i,this._menuItemInstance=a,this._dir=c,this._focusMonitor=h,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=l.w0.EMPTY,this._hoverSubscription=l.w0.EMPTY,this._menuCloseSubscription=l.w0.EMPTY,this._handleTouchStart=t=>{(0,n.yG)(t)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new o.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new o.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=r,this._parentMaterialMenu=s instanceof F?s:void 0,e.nativeElement.addEventListener("touchstart",this._handleTouchStart,q),a&&(a._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(t){this.menu=t}get menu(){return this._menu}set menu(t){t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(this._menuCloseSubscription=t.close.subscribe(t=>{this._destroyMenu(t),"click"!==t&&"tab"!==t||!this._parentMaterialMenu||this._parentMaterialMenu.closed.emit(t)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,q),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)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const t=this._createOverlay(),e=t.getConfig();this._setPosition(e.positionStrategy),e.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,t.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof F&&this.menu._startAnimation()}closeMenu(){this.menu.close.emit()}focus(t,e){this._focusMonitor&&t?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}updatePosition(){var t;null===(t=this._overlayRef)||void 0===t||t.updatePosition()}_destroyMenu(t){if(!this._overlayRef||!this.menuOpen)return;const e=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),!this.restoreFocus||"keydown"!==t&&this._openedBy&&this.triggersSubmenu()||this.focus(this._openedBy),this._openedBy=void 0,e instanceof F?(e._resetAnimation(),e.lazyContent?e._animationDone.pipe((0,m.h)(t=>"void"===t.toState),(0,f.q)(1),(0,g.R)(e.lazyContent._attached)).subscribe({next:()=>e.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),e.lazyContent&&e.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let t=0,e=this.menu.parentMenu;for(;e;)t++,e=e.parentMenu;this.menu.setElevation(t)}}_setIsMenuOpen(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=t)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const t=this._getOverlayConfig();this._subscribeToPositions(t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new x.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(t){this.menu.setPositionClasses&&t.positionChanges.subscribe(t=>{this.menu.setPositionClasses("start"===t.connectionPair.overlayX?"after":"before","top"===t.connectionPair.overlayY?"below":"above")})}_setPosition(t){let[e,i]="before"===this.menu.xPosition?["end","start"]:["start","end"],[n,r]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[s,o]=[n,r],[a,l]=[e,i],c=0;this.triggersSubmenu()?(l=e="before"===this.menu.xPosition?"start":"end",i=a="end"===e?"start":"end",c="bottom"===n?8:-8):this.menu.overlapTrigger||(s="top"===n?"bottom":"top",o="top"===r?"bottom":"top"),t.withPositions([{originX:e,originY:s,overlayX:a,overlayY:n,offsetY:c},{originX:i,originY:s,overlayX:l,overlayY:n,offsetY:c},{originX:e,originY:o,overlayX:a,overlayY:r,offsetY:-c},{originX:i,originY:o,overlayX:l,overlayY:r,offsetY:-c}])}_menuClosingActions(){const t=this._overlayRef.backdropClick(),e=this._overlayRef.detachments(),i=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,h.of)(),n=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,m.h)(t=>t!==this._menuItemInstance),(0,m.h)(()=>this._menuOpen)):(0,h.of)();return(0,c.T)(t,i,n,e)}_handleMousedown(t){(0,n.X6)(t)||(this._openedBy=0===t.button?"mouse":void 0,this.triggersSubmenu()&&t.preventDefault())}_handleKeydown(t){const e=t.keyCode;e!==s.K5&&e!==s.L_||(this._openedBy="keyboard"),this.triggersSubmenu()&&(e===s.SV&&"ltr"===this.dir||e===s.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,m.h)(t=>t===this._menuItemInstance&&!t.disabled),(0,y.g)(0,u.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof F&&this.menu._isAnimating?this.menu._animationDone.pipe((0,f.q)(1),(0,y.g)(0,u.E),(0,g.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new v.UE(this.menu.templateRef,this._viewContainerRef)),this._portal}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(x.aV),o.Y36(o.SBq),o.Y36(o.s_b),o.Y36(B),o.Y36(I,8),o.Y36(R,10),o.Y36(S.Is,8),o.Y36(n.tE))},t.\u0275dir=o.lG2({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(t,e){1&t&&o.NdJ("mousedown",function(t){return e._handleMousedown(t)})("keydown",function(t){return e._handleKeydown(t)})("click",function(t){return e._handleClick(t)}),2&t&&o.uIk("aria-expanded",e.menuOpen||null)("aria-controls",e.menuOpen?e.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),t})(),H=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({providers:[U],imports:[w.BQ]}),t})(),Y=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({providers:[U],imports:[[_.ez,w.BQ,w.si,x.U8,H],A.ZD,w.BQ,H]}),t})()},3005:(t,e,i)=>{"use strict";i.d(e,{NW:()=>A,ye:()=>b,TU:()=>S});var n=i(1511),r=i(1572),s=i(1522),o=i(5980),a=i(4786),l=i(6828),c=i(9861),h=i(9666),u=i(6283);function d(t,e){if(1&t&&(r.TgZ(0,"mat-option",19),r._uU(1),r.qZA()),2&t){const t=e.$implicit;r.Q6J("value",t),r.xp6(1),r.hij(" ",t," ")}}function p(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"mat-form-field",16),r.TgZ(1,"mat-select",17),r.NdJ("selectionChange",function(e){return r.CHM(t),r.oxw(2)._changePageSize(e.value)}),r.YNc(2,d,2,2,"mat-option",18),r.qZA(),r.qZA()}if(2&t){const t=r.oxw(2);r.Q6J("appearance",t._formFieldAppearance)("color",t.color),r.xp6(1),r.Q6J("value",t.pageSize)("disabled",t.disabled)("aria-label",t._intl.itemsPerPageLabel),r.xp6(1),r.Q6J("ngForOf",t._displayedPageSizeOptions)}}function f(t,e){if(1&t&&(r.TgZ(0,"div",20),r._uU(1),r.qZA()),2&t){const t=r.oxw(2);r.xp6(1),r.Oqu(t.pageSize)}}function m(t,e){if(1&t&&(r.TgZ(0,"div",12),r.TgZ(1,"div",13),r._uU(2),r.qZA(),r.YNc(3,p,3,6,"mat-form-field",14),r.YNc(4,f,2,1,"div",15),r.qZA()),2&t){const t=r.oxw();r.xp6(2),r.hij(" ",t._intl.itemsPerPageLabel," "),r.xp6(1),r.Q6J("ngIf",t._displayedPageSizeOptions.length>1),r.xp6(1),r.Q6J("ngIf",t._displayedPageSizeOptions.length<=1)}}function g(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"button",21),r.NdJ("click",function(){return r.CHM(t),r.oxw().firstPage()}),r.O4$(),r.TgZ(1,"svg",7),r._UZ(2,"path",22),r.qZA(),r.qZA()}if(2&t){const t=r.oxw();r.Q6J("matTooltip",t._intl.firstPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),r.uIk("aria-label",t._intl.firstPageLabel)}}function y(t,e){if(1&t){const t=r.EpF();r.O4$(),r.kcU(),r.TgZ(0,"button",23),r.NdJ("click",function(){return r.CHM(t),r.oxw().lastPage()}),r.O4$(),r.TgZ(1,"svg",7),r._UZ(2,"path",24),r.qZA(),r.qZA()}if(2&t){const t=r.oxw();r.Q6J("matTooltip",t._intl.lastPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),r.uIk("aria-label",t._intl.lastPageLabel)}}let b=(()=>{class t{constructor(){this.changes=new h.x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(t,e,i)=>{if(0==i||0==e)return`0 of ${i}`;const n=t*e;return`${n+1} \u2013 ${n<(i=Math.max(i,0))?Math.min(n+e,i):n+e} of ${i}`}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})();const v={provide:b,deps:[[new r.FiY,new r.tp0,b]],useFactory:function(t){return t||new b}},_=new r.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS");class w{}const x=(0,s.Id)((0,s.dB)(w));let C=(()=>{class t extends x{constructor(t,e,i){if(super(),this._intl=t,this._changeDetectorRef=e,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.page=new r.vpe,this._intlChanges=t.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),i){const{pageSize:t,pageSizeOptions:e,hidePageSize:n,showFirstLastButtons:r}=i;null!=t&&(this._pageSize=t),null!=e&&(this._pageSizeOptions=e),null!=n&&(this._hidePageSize=n),null!=r&&(this._showFirstLastButtons=r)}}get pageIndex(){return this._pageIndex}set pageIndex(t){this._pageIndex=Math.max((0,c.su)(t),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(t){this._length=(0,c.su)(t),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(t){this._pageSize=Math.max((0,c.su)(t),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(t){this._pageSizeOptions=(t||[]).map(t=>(0,c.su)(t)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(t){this._hidePageSize=(0,c.Ig)(t)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(t){this._showFirstLastButtons=(0,c.Ig)(t)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const t=this.pageIndex;this.pageIndex++,this._emitPageEvent(t)}previousPage(){if(!this.hasPreviousPage())return;const t=this.pageIndex;this.pageIndex--,this._emitPageEvent(t)}firstPage(){if(!this.hasPreviousPage())return;const t=this.pageIndex;this.pageIndex=0,this._emitPageEvent(t)}lastPage(){if(!this.hasNextPage())return;const t=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(t)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const t=this.getNumberOfPages()-1;return this.pageIndext-e),this._changeDetectorRef.markForCheck())}_emitPageEvent(t){this.page.emit({previousPageIndex:t,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(b),r.Y36(r.sBO),r.Y36(void 0))},t.\u0275dir=r.lG2({type:t,inputs:{pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",color:"color"},outputs:{page:"page"},features:[r.qOj]}),t})(),A=(()=>{class t extends C{constructor(t,e,i){super(t,e,i),i&&null!=i.formFieldAppearance&&(this._formFieldAppearance=i.formFieldAppearance)}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(b),r.Y36(r.sBO),r.Y36(_,8))},t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[r.qOj],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(t,e){1&t&&(r.TgZ(0,"div",0),r.TgZ(1,"div",1),r.YNc(2,m,5,3,"div",2),r.TgZ(3,"div",3),r.TgZ(4,"div",4),r._uU(5),r.qZA(),r.YNc(6,g,3,5,"button",5),r.TgZ(7,"button",6),r.NdJ("click",function(){return e.previousPage()}),r.O4$(),r.TgZ(8,"svg",7),r._UZ(9,"path",8),r.qZA(),r.qZA(),r.kcU(),r.TgZ(10,"button",9),r.NdJ("click",function(){return e.nextPage()}),r.O4$(),r.TgZ(11,"svg",7),r._UZ(12,"path",10),r.qZA(),r.qZA(),r.YNc(13,y,3,5,"button",11),r.qZA(),r.qZA(),r.qZA()),2&t&&(r.xp6(2),r.Q6J("ngIf",!e.hidePageSize),r.xp6(3),r.hij(" ",e._intl.getRangeLabel(e.pageIndex,e.pageSize,e.length)," "),r.xp6(1),r.Q6J("ngIf",e.showFirstLastButtons),r.xp6(1),r.Q6J("matTooltip",e._intl.previousPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),r.uIk("aria-label",e._intl.previousPageLabel),r.xp6(3),r.Q6J("matTooltip",e._intl.nextPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),r.uIk("aria-label",e._intl.nextPageLabel),r.xp6(3),r.Q6J("ngIf",e.showFirstLastButtons))},directives:[n.O5,o.lW,l.gM,u.KE,a.gD,n.sg,s.ey],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}\n"],encapsulation:2,changeDetection:0}),t})(),S=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:[v],imports:[[n.ez,o.ot,a.LD,l.AV,s.BQ]]}),t})()},5994:(t,e,i)=>{"use strict";i.d(e,{pW:()=>g,Cv:()=>b});var n=i(1572),r=i(1511),s=i(1522),o=i(9861),a=i(3490),l=i(6042),c=i(5960),h=i(8868);const u=["primaryValueBar"];class d{constructor(t){this._elementRef=t}}const p=(0,s.pj)(d,"primary"),f=new n.OlP("mat-progress-bar-location",{providedIn:"root",factory:function(){const t=(0,n.f3M)(r.K0),e=t?t.location:null;return{getPathname:()=>e?e.pathname+e.search:""}}});let m=0,g=(()=>{class t extends p{constructor(t,e,i,r){super(t),this._elementRef=t,this._ngZone=e,this._animationMode=i,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new n.vpe,this._animationEndSubscription=l.w0.EMPTY,this.mode="determinate",this.progressbarId="mat-progress-bar-"+m++;const s=r?r.getPathname().split("#")[0]:"";this._rectangleFillValue=`url('${s}#${this.progressbarId}')`,this._isNoopAnimation="NoopAnimations"===i}get value(){return this._value}set value(t){this._value=y((0,o.su)(t)||0)}get bufferValue(){return this._bufferValue}set bufferValue(t){this._bufferValue=y(t||0)}_primaryTransform(){return{transform:`scale3d(${this.value/100}, 1, 1)`}}_bufferTransform(){return"buffer"===this.mode?{transform:`scale3d(${this.bufferValue/100}, 1, 1)`}:null}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{const t=this._primaryValueBar.nativeElement;this._animationEndSubscription=(0,c.R)(t,"transitionend").pipe((0,h.h)(e=>e.target===t)).subscribe(()=>{"determinate"!==this.mode&&"buffer"!==this.mode||this._ngZone.run(()=>this.animationEnd.next({value:this.value}))})})}ngOnDestroy(){this._animationEndSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(a.Qb,8),n.Y36(f,8))},t.\u0275cmp=n.Xpm({type:t,selectors:[["mat-progress-bar"]],viewQuery:function(t,e){if(1&t&&n.Gf(u,5),2&t){let t;n.iGM(t=n.CRH())&&(e._primaryValueBar=t.first)}},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-progress-bar"],hostVars:4,hostBindings:function(t,e){2&t&&(n.uIk("aria-valuenow","indeterminate"===e.mode||"query"===e.mode?null:e.value)("mode",e.mode),n.ekj("_mat-animation-noopable",e._isNoopAnimation))},inputs:{color:"color",mode:"mode",value:"value",bufferValue:"bufferValue"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[n.qOj],decls:10,vars:4,consts:[["aria-hidden","true"],["width","100%","height","4","focusable","false",1,"mat-progress-bar-background","mat-progress-bar-element"],["x","4","y","0","width","8","height","4","patternUnits","userSpaceOnUse",3,"id"],["cx","2","cy","2","r","2"],["width","100%","height","100%"],[1,"mat-progress-bar-buffer","mat-progress-bar-element",3,"ngStyle"],[1,"mat-progress-bar-primary","mat-progress-bar-fill","mat-progress-bar-element",3,"ngStyle"],["primaryValueBar",""],[1,"mat-progress-bar-secondary","mat-progress-bar-fill","mat-progress-bar-element"]],template:function(t,e){1&t&&(n.TgZ(0,"div",0),n.O4$(),n.TgZ(1,"svg",1),n.TgZ(2,"defs"),n.TgZ(3,"pattern",2),n._UZ(4,"circle",3),n.qZA(),n.qZA(),n._UZ(5,"rect",4),n.qZA(),n.kcU(),n._UZ(6,"div",5),n._UZ(7,"div",6,7),n._UZ(9,"div",8),n.qZA()),2&t&&(n.xp6(3),n.Q6J("id",e.progressbarId),n.xp6(2),n.uIk("fill",e._rectangleFillValue),n.xp6(1),n.Q6J("ngStyle",e._bufferTransform()),n.xp6(1),n.Q6J("ngStyle",e._primaryTransform()))},directives:[r.PC],styles:['.mat-progress-bar{display:block;height:4px;overflow:hidden;position:relative;transition:opacity 250ms linear;width:100%}._mat-animation-noopable.mat-progress-bar{transition:none;animation:none}.mat-progress-bar .mat-progress-bar-element,.mat-progress-bar .mat-progress-bar-fill::after{height:100%;position:absolute;width:100%}.mat-progress-bar .mat-progress-bar-background{width:calc(100% + 10px)}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-background{display:none}.mat-progress-bar .mat-progress-bar-buffer{transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-buffer{border-top:solid 5px;opacity:.5}.mat-progress-bar .mat-progress-bar-secondary{display:none}.mat-progress-bar .mat-progress-bar-fill{animation:none;transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-fill{border-top:solid 4px}.mat-progress-bar .mat-progress-bar-fill::after{animation:none;content:"";display:inline-block;left:0}.mat-progress-bar[dir=rtl],[dir=rtl] .mat-progress-bar{transform:rotateY(180deg)}.mat-progress-bar[mode=query]{transform:rotateZ(180deg)}.mat-progress-bar[mode=query][dir=rtl],[dir=rtl] .mat-progress-bar[mode=query]{transform:rotateZ(180deg) rotateY(180deg)}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-fill,.mat-progress-bar[mode=query] .mat-progress-bar-fill{transition:none}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary,.mat-progress-bar[mode=query] .mat-progress-bar-primary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-translate 2000ms infinite linear;left:-145.166611%}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-primary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary,.mat-progress-bar[mode=query] .mat-progress-bar-secondary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-translate 2000ms infinite linear;left:-54.888891%;display:block}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-secondary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=buffer] .mat-progress-bar-background{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-background-scroll 250ms infinite linear;display:block}.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-buffer,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-background{animation:none;transition-duration:1ms}@keyframes mat-progress-bar-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 mat-progress-bar-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 mat-progress-bar-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 mat-progress-bar-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-background-scroll{to{transform:translateX(-8px)}}\n'],encapsulation:2,changeDetection:0}),t})();function y(t,e=0,i=100){return Math.max(e,Math.min(i,t))}let b=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[r.ez,s.BQ],s.BQ]}),t})()},7806:(t,e,i)=>{"use strict";i.d(e,{Cq:()=>v,$g:()=>b});var n=i(1572),r=i(1511),s=i(1522),o=i(9861),a=i(1353),l=i(3490);function c(t,e){if(1&t&&(n.O4$(),n._UZ(0,"circle",3)),2&t){const t=n.oxw();n.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),n.uIk("r",t._getCircleRadius())}}function h(t,e){if(1&t&&(n.O4$(),n._UZ(0,"circle",3)),2&t){const t=n.oxw();n.Udp("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),n.uIk("r",t._getCircleRadius())}}function u(t,e){if(1&t&&(n.O4$(),n._UZ(0,"circle",3)),2&t){const t=n.oxw();n.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),n.uIk("r",t._getCircleRadius())}}function d(t,e){if(1&t&&(n.O4$(),n._UZ(0,"circle",3)),2&t){const t=n.oxw();n.Udp("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),n.uIk("r",t._getCircleRadius())}}const p=".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:currentColor;stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n";class f{constructor(t){this._elementRef=t}}const m=(0,s.pj)(f,"primary"),g=new n.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}});let y=(()=>{class t extends m{constructor(e,i,n,r,s){super(e),this._elementRef=e,this._document=n,this._diameter=100,this._value=0,this._fallbackAnimation=!1,this.mode="determinate";const o=t._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),o.has(n.head)||o.set(n.head,new Set([100])),this._fallbackAnimation=i.EDGE||i.TRIDENT,this._noopAnimations="NoopAnimations"===r&&!!s&&!s._forceAnimations,s&&(s.diameter&&(this.diameter=s.diameter),s.strokeWidth&&(this.strokeWidth=s.strokeWidth))}get diameter(){return this._diameter}set diameter(t){this._diameter=(0,o.su)(t),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(t){this._strokeWidth=(0,o.su)(t)}get value(){return"determinate"===this.mode?this._value:0}set value(t){this._value=Math.max(0,Math.min(100,(0,o.su)(t)))}ngOnInit(){const t=this._elementRef.nativeElement;this._styleRoot=(0,a.kV)(t)||this._document.head,this._attachStyleNode(),t.classList.add(`mat-progress-spinner-indeterminate${this._fallbackAnimation?"-fallback":""}-animation`)}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const t=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${t} ${t}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._getStrokeCircumference():null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_attachStyleNode(){const e=this._styleRoot,i=this._diameter,n=t._diameters;let r=n.get(e);if(!r||!r.has(i)){const t=this._document.createElement("style");t.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),t.textContent=this._getAnimationText(),e.appendChild(t),r||(r=new Set,n.set(e,r)),r.add(i)}}_getAnimationText(){const t=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*t).replace(/END_VALUE/g,""+.2*t).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(a.t4),n.Y36(r.K0,8),n.Y36(l.Qb,8),n.Y36(g))},t.\u0275cmp=n.Xpm({type:t,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(t,e){2&t&&(n.uIk("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),n.Udp("width",e.diameter,"px")("height",e.diameter,"px"),n.ekj("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[n.qOj],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(n.O4$(),n.TgZ(0,"svg",0),n.YNc(1,c,1,9,"circle",1),n.YNc(2,h,1,7,"circle",2),n.qZA()),2&t&&(n.Udp("width",e.diameter,"px")("height",e.diameter,"px"),n.Q6J("ngSwitch","indeterminate"===e.mode),n.uIk("viewBox",e._getViewBox()),n.xp6(1),n.Q6J("ngSwitchCase",!0),n.xp6(1),n.Q6J("ngSwitchCase",!1))},directives:[r.RF,r.n9],styles:[p],encapsulation:2,changeDetection:0}),t._diameters=new WeakMap,t})(),b=(()=>{class t extends y{constructor(t,e,i,n,r){super(t,e,i,n,r),this.mode="indeterminate"}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(a.t4),n.Y36(r.K0,8),n.Y36(l.Qb,8),n.Y36(g))},t.\u0275cmp=n.Xpm({type:t,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(t,e){2&t&&(n.Udp("width",e.diameter,"px")("height",e.diameter,"px"),n.ekj("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color"},features:[n.qOj],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(n.O4$(),n.TgZ(0,"svg",0),n.YNc(1,u,1,9,"circle",1),n.YNc(2,d,1,7,"circle",2),n.qZA()),2&t&&(n.Udp("width",e.diameter,"px")("height",e.diameter,"px"),n.Q6J("ngSwitch","indeterminate"===e.mode),n.uIk("viewBox",e._getViewBox()),n.xp6(1),n.Q6J("ngSwitchCase",!0),n.xp6(1),n.Q6J("ngSwitchCase",!1))},directives:[r.RF,r.n9],styles:[p],encapsulation:2,changeDetection:0}),t})(),v=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[s.BQ,r.ez],s.BQ]}),t})()},4810:(t,e,i)=>{"use strict";i.d(e,{U0:()=>C,VQ:()=>v,Fk:()=>A});var n=i(1572),r=i(1522),s=i(9861),o=i(6073),a=i(3490),l=i(4621),c=i(4230);const h=["input"],u=function(t){return{enterDuration:t}},d=["*"],p=new n.OlP("mat-radio-default-options",{providedIn:"root",factory:function(){return{color:"accent"}}});let f=0;const m={provide:o.JU,useExisting:(0,n.Gpc)(()=>v),multi:!0};class g{constructor(t,e){this.source=t,this.value=e}}const y=new n.OlP("MatRadioGroup");let b=(()=>{class t{constructor(t){this._changeDetector=t,this._value=null,this._name="mat-radio-group-"+f++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new n.vpe}get name(){return this._name}set name(t){this._name=t,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(t){this._labelPosition="before"===t?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(t){this._value!==t&&(this._value=t,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(t){this._selected=t,this.value=t?t.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(t){this._disabled=(0,s.Ig)(t),this._markRadiosForCheck()}get required(){return this._required}set required(t){this._required=(0,s.Ig)(t),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(t=>{t.name=this.name,t._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(t=>{t.checked=this.value===t.value,t.checked&&(this._selected=t)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new g(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(t=>t._markForCheck())}writeValue(t){this.value=t,this._changeDetector.markForCheck()}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetector.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.sBO))},t.\u0275dir=n.lG2({type:t,inputs:{name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"}}),t})(),v=(()=>{class t extends b{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=n.n5z(t)))(i||t)}}(),t.\u0275dir=n.lG2({type:t,selectors:[["mat-radio-group"]],contentQueries:function(t,e,i){if(1&t&&n.Suo(i,C,5),2&t){let t;n.iGM(t=n.CRH())&&(e._radios=t)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[n._Bn([m,{provide:y,useExisting:t}]),n.qOj]}),t})();class _{constructor(t){this._elementRef=t}}const w=(0,r.Kr)((0,r.sb)(_));let x=(()=>{class t extends w{constructor(t,e,i,r,o,a,l,c){super(e),this._changeDetector=i,this._focusMonitor=r,this._radioDispatcher=o,this._providerOverride=l,this._uniqueId="mat-radio-"+ ++f,this.id=this._uniqueId,this.change=new n.vpe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=t,this._noopAnimations="NoopAnimations"===a,c&&(this.tabIndex=(0,s.su)(c,0)),this._removeUniqueSelectionListener=o.listen((t,e)=>{t!==this.id&&e===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(t){const e=(0,s.Ig)(t);this._checked!==e&&(this._checked=e,e&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!e&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),e&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(t){this._value!==t&&(this._value=t,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===t),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(t){this._labelPosition=t}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(t){this._setDisabled((0,s.Ig)(t))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(t){this._required=(0,s.Ig)(t)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(t){this._color=t}get inputId(){return`${this.id||this._uniqueId}-input`}focus(t,e){e?this._focusMonitor.focusVia(this._inputElement,e,t):this._inputElement.nativeElement.focus(t)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{!t&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new g(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(t){t.stopPropagation()}_onInputChange(t){t.stopPropagation();const e=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),e&&this.radioGroup._emitChangeEvent())}_setDisabled(t){this._disabled!==t&&(this._disabled=t,this._changeDetector.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(b),n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(l.tE),n.Y36(c.A8),n.Y36(String),n.Y36(void 0),n.Y36(String))},t.\u0275dir=n.lG2({type:t,viewQuery:function(t,e){if(1&t&&n.Gf(h,5),2&t){let t;n.iGM(t=n.CRH())&&(e._inputElement=t.first)}},inputs:{id:"id",checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{change:"change"},features:[n.qOj]}),t})(),C=(()=>{class t extends x{constructor(t,e,i,n,r,s,o,a){super(t,e,i,n,r,s,o,a)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(y,8),n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(l.tE),n.Y36(c.A8),n.Y36(a.Qb,8),n.Y36(p,8),n.$8M("tabindex"))},t.\u0275cmp=n.Xpm({type:t,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(t,e){1&t&&n.NdJ("focus",function(){return e._inputElement.nativeElement.focus()}),2&t&&(n.uIk("tabindex",null)("id",e.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),n.ekj("mat-radio-checked",e.checked)("mat-radio-disabled",e.disabled)("_mat-animation-noopable",e._noopAnimations)("mat-primary","primary"===e.color)("mat-accent","accent"===e.color)("mat-warn","warn"===e.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[n.qOj],ngContentSelectors:d,decls:13,vars:20,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input","cdk-visually-hidden",3,"id","checked","disabled","tabIndex","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(t,e){if(1&t&&(n.F$t(),n.TgZ(0,"label",0,1),n.TgZ(2,"span",2),n._UZ(3,"span",3),n._UZ(4,"span",4),n.TgZ(5,"input",5,6),n.NdJ("change",function(t){return e._onInputChange(t)})("click",function(t){return e._onInputClick(t)}),n.qZA(),n.TgZ(7,"span",7),n._UZ(8,"span",8),n.qZA(),n.qZA(),n.TgZ(9,"span",9),n.TgZ(10,"span",10),n._uU(11,"\xa0"),n.qZA(),n.Hsn(12),n.qZA(),n.qZA()),2&t){const t=n.MAs(1);n.uIk("for",e.inputId),n.xp6(5),n.Q6J("id",e.inputId)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex)("required",e.required),n.uIk("name",e.name)("value",e.value)("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby)("aria-describedby",e.ariaDescribedby),n.xp6(2),n.Q6J("matRippleTrigger",t)("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",n.VKq(18,u,e._noopAnimations?0:150)),n.xp6(2),n.ekj("mat-radio-label-before","before"==e.labelPosition)}},directives:[r.wG],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;transition:transform ease 280ms,background-color ease 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5)}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}.mat-radio-label-content{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none;top:0;left:0}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{bottom:0;left:50%}.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-ripple,.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-ripple{outline:solid 3px}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n"],encapsulation:2,changeDetection:0}),t})(),A=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[r.si,r.BQ],r.BQ]}),t})()},4786:(t,e,i)=>{"use strict";i.d(e,{gD:()=>V,LD:()=>Q,$L:()=>G});var n=i(369),r=i(1511),s=i(1572),o=i(1522),a=i(6283),l=i(4894),c=i(4621),h=i(9861),u=i(4230),d=i(5842),p=i(9666),f=i(970),m=i(5446),g=i(1258),y=i(4324),b=i(9056),v=i(8868),_=i(1681),w=i(6424),x=i(9568),C=i(709),A=i(2526),S=i(6073);const E=["trigger"],k=["panel"];function T(t,e){if(1&t&&(s.TgZ(0,"span",8),s._uU(1),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Oqu(t.placeholder)}}function M(t,e){if(1&t&&(s.TgZ(0,"span",12),s._uU(1),s.qZA()),2&t){const t=s.oxw(2);s.xp6(1),s.Oqu(t.triggerValue)}}function L(t,e){1&t&&s.Hsn(0,0,["*ngSwitchCase","true"])}function I(t,e){if(1&t&&(s.TgZ(0,"span",9),s.YNc(1,M,2,1,"span",10),s.YNc(2,L,1,0,"ng-content",11),s.qZA()),2&t){const t=s.oxw();s.Q6J("ngSwitch",!!t.customTrigger),s.xp6(2),s.Q6J("ngSwitchCase",!0)}}function O(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",13),s.TgZ(1,"div",14,15),s.NdJ("@transformPanel.done",function(e){return s.CHM(t),s.oxw()._panelDoneAnimatingStream.next(e.toState)})("keydown",function(e){return s.CHM(t),s.oxw()._handleKeydown(e)}),s.Hsn(3,1),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("@transformPanelWrap",void 0),s.xp6(1),s.Gre("mat-select-panel ",t._getPanelTheme(),""),s.Udp("transform-origin",t._transformOrigin)("font-size",t._triggerFontSize,"px"),s.Q6J("ngClass",t.panelClass)("@transformPanel",t.multiple?"showing-multiple":"showing"),s.uIk("id",t.id+"-panel")("aria-multiselectable",t.multiple)("aria-label",t.ariaLabel||null)("aria-labelledby",t._getPanelAriaLabelledby())}}const D=[[["mat-select-trigger"]],"*"],R=["mat-select-trigger","*"],N={transformPanelWrap:(0,C.X$)("transformPanelWrap",[(0,C.eR)("* => void",(0,C.IO)("@transformPanel",[(0,C.pV)()],{optional:!0}))]),transformPanel:(0,C.X$)("transformPanel",[(0,C.SB)("void",(0,C.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,C.SB)("showing",(0,C.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,C.SB)("showing-multiple",(0,C.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,C.eR)("void => *",(0,C.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,C.eR)("* => void",(0,C.jt)("100ms 25ms linear",(0,C.oB)({opacity:0})))])};let P=0;const F=256,Z=new s.OlP("mat-select-scroll-strategy"),B=new s.OlP("MAT_SELECT_CONFIG"),U={provide:Z,deps:[n.aV],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class q{constructor(t,e){this.source=t,this.value=e}}class z{constructor(t,e,i,n,r){this._elementRef=t,this._defaultErrorStateMatcher=e,this._parentForm=i,this._parentFormGroup=n,this.ngControl=r}}const H=(0,o.Kr)((0,o.sb)((0,o.Id)((0,o.FD)(z)))),Y=new s.OlP("MatSelectTrigger");let G=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["mat-select-trigger"]],features:[s._Bn([{provide:Y,useExisting:t}])]}),t})(),j=(()=>{class t extends H{constructor(t,e,i,n,r,o,a,l,c,h,u,d,w,x){var C,A,S;super(r,n,a,l,h),this._viewportRuler=t,this._changeDetectorRef=e,this._ngZone=i,this._dir=o,this._parentFormField=c,this.ngControl=h,this._liveAnnouncer=w,this._defaultOptions=x,this._panelOpen=!1,this._compareWith=(t,e)=>t===e,this._uid="mat-select-"+P++,this._triggerAriaLabelledBy=null,this._destroy=new p.x,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+P++,this._panelDoneAnimatingStream=new p.x,this._overlayPanelClass=(null===(C=this._defaultOptions)||void 0===C?void 0:C.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._required=!1,this._multiple=!1,this._disableOptionCentering=null!==(S=null===(A=this._defaultOptions)||void 0===A?void 0:A.disableOptionCentering)&&void 0!==S&&S,this.ariaLabel="",this.optionSelectionChanges=(0,f.P)(()=>{const t=this.options;return t?t.changes.pipe((0,g.O)(t),(0,y.w)(()=>(0,m.T)(...t.map(t=>t.onSelectionChange)))):this._ngZone.onStable.pipe((0,b.q)(1),(0,y.w)(()=>this.optionSelectionChanges))}),this.openedChange=new s.vpe,this._openedStream=this.openedChange.pipe((0,v.h)(t=>t),(0,_.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,v.h)(t=>!t),(0,_.U)(()=>{})),this.selectionChange=new s.vpe,this.valueChange=new s.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==x?void 0:x.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=x.typeaheadDebounceInterval),this._scrollStrategyFactory=d,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(u)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(t){this._placeholder=t,this.stateChanges.next()}get required(){return this._required}set required(t){this._required=(0,h.Ig)(t),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(t){this._multiple=(0,h.Ig)(t)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(t){this._disableOptionCentering=(0,h.Ig)(t)}get compareWith(){return this._compareWith}set compareWith(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(t){(t!==this._value||this._multiple&&Array.isArray(t))&&(this.options&&this._setSelectionByValue(t),this._value=t)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(t){this._typeaheadDebounceInterval=(0,h.su)(t)}get id(){return this._id}set id(t){this._id=t||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new u.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,w.x)(),(0,x.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,x.R)(this._destroy)).subscribe(t=>{t.added.forEach(t=>t.select()),t.removed.forEach(t=>t.deselect())}),this.options.changes.pipe((0,g.O)(null),(0,x.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const t=this._getTriggerAriaLabelledby();if(t!==this._triggerAriaLabelledBy){const e=this._elementRef.nativeElement;this._triggerAriaLabelledBy=t,t?e.setAttribute("aria-labelledby",t):e.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}ngOnChanges(t){t.disabled&&this.stateChanges.next(),t.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(t){this.value=t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,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 t=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&t.reverse(),t.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(t){this.disabled||(this.panelOpen?this._handleOpenKeydown(t):this._handleClosedKeydown(t))}_handleClosedKeydown(t){const e=t.keyCode,i=e===d.JH||e===d.LH||e===d.oh||e===d.SV,n=e===d.K5||e===d.L_,r=this._keyManager;if(!r.isTyping()&&n&&!(0,d.Vb)(t)||(this.multiple||t.altKey)&&i)t.preventDefault(),this.open();else if(!this.multiple){const e=this.selected;r.onKeydown(t);const i=this.selected;i&&e!==i&&this._liveAnnouncer.announce(i.viewValue,1e4)}}_handleOpenKeydown(t){const e=this._keyManager,i=t.keyCode,n=i===d.JH||i===d.LH,r=e.isTyping();if(n&&t.altKey)t.preventDefault(),this.close();else if(r||i!==d.K5&&i!==d.L_||!e.activeItem||(0,d.Vb)(t))if(!r&&this._multiple&&i===d.A&&t.ctrlKey){t.preventDefault();const e=this.options.some(t=>!t.disabled&&!t.selected);this.options.forEach(t=>{t.disabled||(e?t.select():t.deselect())})}else{const i=e.activeItemIndex;e.onKeydown(t),this._multiple&&n&&t.shiftKey&&e.activeItem&&e.activeItemIndex!==i&&e.activeItem._selectViaInteraction()}else t.preventDefault(),e.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,b.q)(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._setSelectionByValue(this.ngControl?this.ngControl.value:this._value),this.stateChanges.next()})}_setSelectionByValue(t){if(this._selectionModel.selected.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&t)Array.isArray(t),t.forEach(t=>this._selectValue(t)),this._sortValues();else{const e=this._selectValue(t);e?this._keyManager.updateActiveItem(e):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(t){const e=this.options.find(e=>{if(this._selectionModel.isSelected(e))return!1;try{return null!=e.value&&this._compareWith(e.value,t)}catch(i){return!1}});return e&&this._selectionModel.select(e),e}_initKeyManager(){this._keyManager=new c.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,x.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe((0,x.R)(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):this._panelOpen||this.multiple||!this._keyManager.activeItem||this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const t=(0,m.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,x.R)(t)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,m.T)(...this.options.map(t=>t._stateChanges)).pipe((0,x.R)(t)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(t,e){const i=this._selectionModel.isSelected(t);null!=t.value||this._multiple?(i!==t.selected&&(t.selected?this._selectionModel.select(t):this._selectionModel.deselect(t)),e&&this._keyManager.setActiveItem(t),this.multiple&&(this._sortValues(),e&&this.focus())):(t.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(t.value)),i!==this._selectionModel.isSelected(t)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const t=this.options.toArray();this._selectionModel.sort((e,i)=>this.sortComparator?this.sortComparator(e,i,t):t.indexOf(e)-t.indexOf(i)),this.stateChanges.next()}}_propagateChanges(t){let e=null;e=this.multiple?this.selected.map(t=>t.value):this.selected?this.selected.value:t,this._value=e,this.valueChange.emit(e),this._onChange(e),this.selectionChange.emit(this._getChangeEvent(e)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var t;return!this._panelOpen&&!this.disabled&&(null===(t=this.options)||void 0===t?void 0:t.length)>0}focus(t){this._elementRef.nativeElement.focus(t)}_getPanelAriaLabelledby(){var t;if(this.ariaLabel)return null;const e=null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId();return this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var t;if(this.ariaLabel)return null;const e=null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId();let i=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(i+=" "+this.ariaLabelledby),i}_panelDoneAnimating(t){this.openedChange.emit(t)}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(l.rL),s.Y36(s.sBO),s.Y36(s.R0b),s.Y36(o.rD),s.Y36(s.SBq),s.Y36(A.Is,8),s.Y36(S.F,8),s.Y36(S.sg,8),s.Y36(a.G_,8),s.Y36(S.a5,10),s.$8M("tabindex"),s.Y36(Z),s.Y36(c.Kd),s.Y36(B,8))},t.\u0275dir=s.lG2({type:t,viewQuery:function(t,e){if(1&t&&(s.Gf(E,5),s.Gf(k,5),s.Gf(n.pI,5)),2&t){let t;s.iGM(t=s.CRH())&&(e.trigger=t.first),s.iGM(t=s.CRH())&&(e.panel=t.first),s.iGM(t=s.CRH())&&(e._overlayDir=t.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[s.qOj,s.TTD]}),t})(),V=(()=>{class t extends j{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(t,e,i){const n=this._getItemHeight();return Math.min(Math.max(0,n*t-e+n/2),i)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,x.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe((0,b.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(t){const e=(0,o.CB)(t,this.options,this.optionGroups),i=this._getItemHeight();this.panel.nativeElement.scrollTop=(0,o.jH)((t+e)*i,i,this.panel.nativeElement.scrollTop,F)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(t){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(t)}_getChangeEvent(t){return new q(this,t)}_calculateOverlayOffsetX(){const t=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),e=this._viewportRuler.getViewportSize(),i=this._isRtl(),n=this.multiple?56:32;let r;if(this.multiple)r=40;else if(this.disableOptionCentering)r=16;else{let t=this._selectionModel.selected[0]||this.options.first;r=t&&t.group?32:16}i||(r*=-1);const s=0-(t.left+r-(i?n:0)),o=t.right+r-e.width+(i?0:n);s>0?r+=s+8:o>0&&(r-=o+8),this._overlayDir.offsetX=Math.round(r),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(t,e,i){const n=this._getItemHeight(),r=(n-this._triggerRect.height)/2,s=Math.floor(F/n);let o;return this.disableOptionCentering?0:(o=0===this._scrollTop?t*n:this._scrollTop===i?(t-(this._getItemCount()-s))*n+(n-(this._getItemCount()*n-F)%n):e-n/2,Math.round(-1*o-r))}_checkOverlayWithinViewport(t){const e=this._getItemHeight(),i=this._viewportRuler.getViewportSize(),n=this._triggerRect.top-8,r=i.height-this._triggerRect.bottom-8,s=Math.abs(this._offsetY),o=Math.min(this._getItemCount()*e,F)-s-this._triggerRect.height;o>r?this._adjustPanelUp(o,r):s>n?this._adjustPanelDown(s,n,t):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(t,e){const i=Math.round(t-e);this._scrollTop-=i,this._offsetY-=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(t,e,i){const n=Math.round(t-e);if(this._scrollTop+=n,this._offsetY+=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=i)return this._scrollTop=i,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const t=this._getItemHeight(),e=this._getItemCount(),i=Math.min(e*t,F),n=e*t-i;let r;r=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),r+=(0,o.CB)(r,this.options,this.optionGroups);const s=i/2;this._scrollTop=this._calculateOverlayScroll(r,s,n),this._offsetY=this._calculateOverlayOffsetY(r,s,n),this._checkOverlayWithinViewport(n)}_getOriginBasedOnOption(){const t=this._getItemHeight(),e=(t-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-e+t/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-select"]],contentQueries:function(t,e,i){if(1&t&&(s.Suo(i,Y,5),s.Suo(i,o.ey,5),s.Suo(i,o.K7,5)),2&t){let t;s.iGM(t=s.CRH())&&(e.customTrigger=t.first),s.iGM(t=s.CRH())&&(e.options=t),s.iGM(t=s.CRH())&&(e.optionGroups=t)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(t,e){1&t&&s.NdJ("keydown",function(t){return e._handleKeydown(t)})("focus",function(){return e._onFocus()})("blur",function(){return e._onBlur()}),2&t&&(s.uIk("id",e.id)("tabindex",e.tabIndex)("aria-controls",e.panelOpen?e.id+"-panel":null)("aria-expanded",e.panelOpen)("aria-label",e.ariaLabel||null)("aria-required",e.required.toString())("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-describedby",e._ariaDescribedby||null)("aria-activedescendant",e._getAriaActiveDescendant()),s.ekj("mat-select-disabled",e.disabled)("mat-select-invalid",e.errorState)("mat-select-required",e.required)("mat-select-empty",e.empty)("mat-select-multiple",e.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[s._Bn([{provide:a.Eo,useExisting:t},{provide:o.HF,useExisting:t}]),s.qOj],ngContentSelectors:R,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(t,e){if(1&t&&(s.F$t(D),s.TgZ(0,"div",0,1),s.NdJ("click",function(){return e.toggle()}),s.TgZ(3,"div",2),s.YNc(4,T,2,1,"span",3),s.YNc(5,I,3,2,"span",4),s.qZA(),s.TgZ(6,"div",5),s._UZ(7,"div",6),s.qZA(),s.qZA(),s.YNc(8,O,4,14,"ng-template",7),s.NdJ("backdropClick",function(){return e.close()})("attach",function(){return e._onAttached()})("detach",function(){return e.close()})),2&t){const t=s.MAs(1);s.uIk("aria-owns",e.panelOpen?e.id+"-panel":null),s.xp6(3),s.Q6J("ngSwitch",e.empty),s.uIk("id",e._valueId),s.xp6(1),s.Q6J("ngSwitchCase",!0),s.xp6(1),s.Q6J("ngSwitchCase",!1),s.xp6(3),s.Q6J("cdkConnectedOverlayPanelClass",e._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",e._scrollStrategy)("cdkConnectedOverlayOrigin",t)("cdkConnectedOverlayOpen",e.panelOpen)("cdkConnectedOverlayPositions",e._positions)("cdkConnectedOverlayMinWidth",null==e._triggerRect?null:e._triggerRect.width)("cdkConnectedOverlayOffsetY",e._offsetY)}},directives:[n.xu,r.RF,r.n9,n.pI,r.ED,r.mk],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px}\n'],encapsulation:2,data:{animation:[N.transformPanelWrap,N.transformPanel]},changeDetection:0}),t})(),Q=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[U],imports:[[r.ez,n.U8,o.Ng,o.BQ],l.ZD,a.lN,o.Ng,o.BQ]}),t})()},5122:(t,e,i)=>{"use strict";i.d(e,{JX:()=>z,TM:()=>H,Rh:()=>q,SJ:()=>Y});var n=i(1353),r=i(4894),s=i(1511),o=i(1572),a=i(1522),l=i(9861),c=i(5842),h=i(9666),u=i(5960),d=i(5446),p=i(8868),f=i(1681),m=i(1096),g=i(9568),y=i(6424),b=i(9056),v=i(1258),_=i(5057),w=i(709),x=i(3490),C=i(4621),A=i(2526);const S=["*"];function E(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"div",2),o.NdJ("click",function(){return o.CHM(t),o.oxw()._onBackdropClicked()}),o.qZA()}if(2&t){const t=o.oxw();o.ekj("mat-drawer-shown",t._isShowingBackdrop())}}function k(t,e){1&t&&(o.TgZ(0,"mat-drawer-content"),o.Hsn(1,2),o.qZA())}const T=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],M=["mat-drawer","mat-drawer-content","*"];function L(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"div",2),o.NdJ("click",function(){return o.CHM(t),o.oxw()._onBackdropClicked()}),o.qZA()}if(2&t){const t=o.oxw();o.ekj("mat-drawer-shown",t._isShowingBackdrop())}}function I(t,e){1&t&&(o.TgZ(0,"mat-sidenav-content",3),o.Hsn(1,2),o.qZA())}const O=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],D=["mat-sidenav","mat-sidenav-content","*"],R=".mat-drawer-container{position:relative;z-index:1;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}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n",N={transformDrawer:(0,w.X$)("transform",[(0,w.SB)("open, open-instant",(0,w.oB)({transform:"none",visibility:"visible"})),(0,w.SB)("void",(0,w.oB)({"box-shadow":"none",visibility:"hidden"})),(0,w.eR)("void => open-instant",(0,w.jt)("0ms")),(0,w.eR)("void <=> open, open-instant => void",(0,w.jt)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},P=new o.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),F=new o.OlP("MAT_DRAWER_CONTAINER");let Z=(()=>{class t extends r.PQ{constructor(t,e,i,n,r){super(i,n,r),this._changeDetectorRef=t,this._container=e}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.sBO),o.Y36((0,o.Gpc)(()=>U)),o.Y36(o.SBq),o.Y36(r.mF),o.Y36(o.R0b))},t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(t,e){2&t&&o.Udp("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[o.qOj],ngContentSelectors:S,decls:1,vars:0,template:function(t,e){1&t&&(o.F$t(),o.Hsn(0))},encapsulation:2,changeDetection:0}),t})(),B=(()=>{class t{constructor(t,e,i,n,r,s,a){this._elementRef=t,this._focusTrapFactory=e,this._focusMonitor=i,this._platform=n,this._ngZone=r,this._doc=s,this._container=a,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new h.x,this._animationEnd=new h.x,this._animationState="void",this.openedChange=new o.vpe(!0),this._openedStream=this.openedChange.pipe((0,p.h)(t=>t),(0,f.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,p.h)(t=>t.fromState!==t.toState&&0===t.toState.indexOf("open")),(0,m.h)(void 0)),this._closedStream=this.openedChange.pipe((0,p.h)(t=>!t),(0,f.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,p.h)(t=>t.fromState!==t.toState&&"void"===t.toState),(0,m.h)(void 0)),this._destroyed=new h.x,this.onPositionChanged=new o.vpe,this._modeChanged=new h.x,this.openedChange.subscribe(t=>{t?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus()}),this._ngZone.runOutsideAngular(()=>{(0,u.R)(this._elementRef.nativeElement,"keydown").pipe((0,p.h)(t=>t.keyCode===c.hY&&!this.disableClose&&!(0,c.Vb)(t)),(0,g.R)(this._destroyed)).subscribe(t=>this._ngZone.run(()=>{this.close(),t.stopPropagation(),t.preventDefault()}))}),this._animationEnd.pipe((0,y.x)((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{const{fromState:e,toState:i}=t;(0===i.indexOf("open")&&"void"===e||"void"===i&&0===e.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(t){(t="end"===t?"end":"start")!=this._position&&(this._position=t,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(t){this._mode=t,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(t){this._disableClose=(0,l.Ig)(t)}get autoFocus(){const t=this._autoFocus;return null==t?"side"!==this.mode:t}set autoFocus(t){this._autoFocus=(0,l.Ig)(t)}get opened(){return this._opened}set opened(t){this.toggle((0,l.Ig)(t))}_takeFocus(){this.autoFocus&&this._focusTrap&&this._focusTrap.focusInitialElementWhenReady().then(t=>{t||"function"!=typeof this._elementRef.nativeElement.focus||this._elementRef.nativeElement.focus()})}_restoreFocus(){this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,this._openedVia):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null,this._openedVia=null)}_isFocusWithinDrawer(){var t;const e=null===(t=this._doc)||void 0===t?void 0:t.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}ngAfterContentInit(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState()}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(t){return this.toggle(!0,t)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0)}toggle(t=!this.opened,e){return this._setOpen(t,!t&&this._isFocusWithinDrawer(),e)}_setOpen(t,e,i="program"){return this._opened=t,t?(this._animationState=this._enableAnimations?"open":"open-instant",this._openedVia=i):(this._animationState="void",e&&this._restoreFocus()),this._updateFocusTrapState(),new Promise(t=>{this.openedChange.pipe((0,b.q)(1)).subscribe(e=>t(e?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_animationStartListener(t){this._animationStarted.next(t)}_animationDoneListener(t){this._animationEnd.next(t)}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.SBq),o.Y36(C.qV),o.Y36(C.tE),o.Y36(n.t4),o.Y36(o.R0b),o.Y36(s.K0,8),o.Y36(F,8))},t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-drawer"]],hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(t,e){1&t&&o.WFA("@transform.start",function(t){return e._animationStartListener(t)})("@transform.done",function(t){return e._animationDoneListener(t)}),2&t&&(o.uIk("align",null),o.d8E("@transform",e._animationState),o.ekj("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.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:S,decls:2,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(o.F$t(),o.TgZ(0,"div",0),o.Hsn(1),o.qZA())},directives:[r.PQ],encapsulation:2,data:{animation:[N.transformDrawer]},changeDetection:0}),t})(),U=(()=>{class t{constructor(t,e,i,n,r,s=!1,a){this._dir=t,this._element=e,this._ngZone=i,this._changeDetectorRef=n,this._animationMode=a,this._drawers=new o.n_E,this.backdropClick=new o.vpe,this._destroyed=new h.x,this._doCheckSubject=new h.x,this._contentMargins={left:null,right:null},this._contentMarginChanges=new h.x,t&&t.change.pipe((0,g.R)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),r.change().pipe((0,g.R)(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=s}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(t){this._autosize=(0,l.Ig)(t)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(t){this._backdropOverride=null==t?null:(0,l.Ig)(t)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe((0,v.O)(this._allDrawers),(0,g.R)(this._destroyed)).subscribe(t=>{this._drawers.reset(t.filter(t=>!t._container||t._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,v.O)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(t=>{this._watchDrawerToggle(t),this._watchDrawerPosition(t),this._watchDrawerMode(t)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,_.b)(10),(0,g.R)(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(t=>t.open())}close(){this._drawers.forEach(t=>t.close())}updateContentMargins(){let t=0,e=0;if(this._left&&this._left.opened)if("side"==this._left.mode)t+=this._left._getWidth();else if("push"==this._left.mode){const i=this._left._getWidth();t+=i,e-=i}if(this._right&&this._right.opened)if("side"==this._right.mode)e+=this._right._getWidth();else if("push"==this._right.mode){const i=this._right._getWidth();e+=i,t-=i}t=t||null,e=e||null,t===this._contentMargins.left&&e===this._contentMargins.right||(this._contentMargins={left:t,right:e},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(t){t._animationStarted.pipe((0,p.h)(t=>t.fromState!==t.toState),(0,g.R)(this._drawers.changes)).subscribe(t=>{"open-instant"!==t.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==t.mode&&t.openedChange.pipe((0,g.R)(this._drawers.changes)).subscribe(()=>this._setContainerClass(t.opened))}_watchDrawerPosition(t){t&&t.onPositionChanged.pipe((0,g.R)(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,b.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(t){t&&t._modeChanged.pipe((0,g.R)((0,d.T)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(t){const e=this._element.nativeElement.classList,i="mat-drawer-container-has-open";t?e.add(i):e.remove(i)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(t=>{"end"==t.position?this._end=t:this._start=t}),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(t=>t&&!t.disableClose&&this._canHaveBackdrop(t)).forEach(t=>t._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(t){return"side"!==t.mode||!!this._backdropOverride}_isDrawerOpen(t){return null!=t&&t.opened}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(A.Is,8),o.Y36(o.SBq),o.Y36(o.R0b),o.Y36(o.sBO),o.Y36(r.rL),o.Y36(P),o.Y36(x.Qb,8))},t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(t,e,i){if(1&t&&(o.Suo(i,Z,5),o.Suo(i,B,5)),2&t){let t;o.iGM(t=o.CRH())&&(e._content=t.first),o.iGM(t=o.CRH())&&(e._allDrawers=t)}},viewQuery:function(t,e){if(1&t&&o.Gf(Z,5),2&t){let t;o.iGM(t=o.CRH())&&(e._userContent=t.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(t,e){2&t&&o.ekj("mat-drawer-container-explicit-backdrop",e._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[o._Bn([{provide:F,useExisting:t}])],ngContentSelectors:M,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(t,e){1&t&&(o.F$t(T),o.YNc(0,E,1,2,"div",0),o.Hsn(1),o.Hsn(2,1),o.YNc(3,k,2,0,"mat-drawer-content",1)),2&t&&(o.Q6J("ngIf",e.hasBackdrop),o.xp6(3),o.Q6J("ngIf",!e._content))},directives:[s.O5,Z],styles:[R],encapsulation:2,changeDetection:0}),t})(),q=(()=>{class t extends Z{constructor(t,e,i,n,r){super(t,e,i,n,r)}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.sBO),o.Y36((0,o.Gpc)(()=>H)),o.Y36(o.SBq),o.Y36(r.mF),o.Y36(o.R0b))},t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(t,e){2&t&&o.Udp("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[o.qOj],ngContentSelectors:S,decls:1,vars:0,template:function(t,e){1&t&&(o.F$t(),o.Hsn(0))},encapsulation:2,changeDetection:0}),t})(),z=(()=>{class t extends B{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(t){this._fixedInViewport=(0,l.Ig)(t)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(t){this._fixedTopGap=(0,l.su)(t)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(t){this._fixedBottomGap=(0,l.su)(t)}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(t)))(i||t)}}(),t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(t,e){2&t&&(o.uIk("align",null),o.Udp("top",e.fixedInViewport?e.fixedTopGap:null,"px")("bottom",e.fixedInViewport?e.fixedBottomGap:null,"px"),o.ekj("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened)("mat-sidenav-fixed",e.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[o.qOj],ngContentSelectors:S,decls:2,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(o.F$t(),o.TgZ(0,"div",0),o.Hsn(1),o.qZA())},directives:[r.PQ],encapsulation:2,data:{animation:[N.transformDrawer]},changeDetection:0}),t})(),H=(()=>{class t extends U{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(t)))(i||t)}}(),t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-sidenav-container"]],contentQueries:function(t,e,i){if(1&t&&(o.Suo(i,q,5),o.Suo(i,z,5)),2&t){let t;o.iGM(t=o.CRH())&&(e._content=t.first),o.iGM(t=o.CRH())&&(e._allDrawers=t)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(t,e){2&t&&o.ekj("mat-drawer-container-explicit-backdrop",e._backdropOverride)},exportAs:["matSidenavContainer"],features:[o._Bn([{provide:F,useExisting:t}]),o.qOj],ngContentSelectors:D,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],["cdkScrollable","",4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"],["cdkScrollable",""]],template:function(t,e){1&t&&(o.F$t(O),o.YNc(0,L,1,2,"div",0),o.Hsn(1),o.Hsn(2,1),o.YNc(3,I,2,0,"mat-sidenav-content",1)),2&t&&(o.Q6J("ngIf",e.hasBackdrop),o.xp6(3),o.Q6J("ngIf",!e._content))},directives:[s.O5,q,r.PQ],styles:[R],encapsulation:2,changeDetection:0}),t})(),Y=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({imports:[[s.ez,a.BQ,n.ud,r.ZD],r.ZD,a.BQ]}),t})()},7521:(t,e,i)=>{"use strict";i.d(e,{Rr:()=>w,rP:()=>C});var n=i(6337),r=i(1572),s=i(1522),o=i(9861),a=i(6073),l=i(3490),c=i(4621);const h=["thumbContainer"],u=["toggleBar"],d=["input"],p=function(t){return{enterDuration:t}},f=["*"],m=new r.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let g=0;const y={provide:a.JU,useExisting:(0,r.Gpc)(()=>w),multi:!0};class b{constructor(t,e){this.source=t,this.checked=e}}class v{constructor(t){this._elementRef=t}}const _=(0,s.sb)((0,s.pj)((0,s.Kr)((0,s.Id)(v))));let w=(()=>{class t extends _{constructor(t,e,i,n,s,o){super(t),this._focusMonitor=e,this._changeDetectorRef=i,this.defaults=s,this._onChange=t=>{},this._onTouched=()=>{},this._uniqueId="mat-slide-toggle-"+ ++g,this._required=!1,this._checked=!1,this.name=null,this.id=this._uniqueId,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new r.vpe,this.toggleChange=new r.vpe,this.tabIndex=parseInt(n)||0,this.color=this.defaultColor=s.color||"accent",this._noopAnimations="NoopAnimations"===o}get required(){return this._required}set required(t){this._required=(0,o.Ig)(t)}get checked(){return this._checked}set checked(t){this._checked=(0,o.Ig)(t),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{"keyboard"===t||"program"===t?this._inputElement.nativeElement.focus():t||Promise.resolve().then(()=>this._onTouched())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onChangeEvent(t){t.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(t){t.stopPropagation()}writeValue(t){this.checked=!!t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetectorRef.markForCheck()}focus(t,e){e?this._focusMonitor.focusVia(this._inputElement,e,t):this._inputElement.nativeElement.focus(t)}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(new b(this,this.checked))}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(c.tE),r.Y36(r.sBO),r.$8M("tabindex"),r.Y36(m),r.Y36(l.Qb,8))},t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(t,e){if(1&t&&(r.Gf(h,5),r.Gf(u,5),r.Gf(d,5)),2&t){let t;r.iGM(t=r.CRH())&&(e._thumbEl=t.first),r.iGM(t=r.CRH())&&(e._thumbBarEl=t.first),r.iGM(t=r.CRH())&&(e._inputElement=t.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:12,hostBindings:function(t,e){2&t&&(r.Ikx("id",e.id),r.uIk("tabindex",e.disabled?null:-1)("aria-label",null)("aria-labelledby",null),r.ekj("mat-checked",e.checked)("mat-disabled",e.disabled)("mat-slide-toggle-label-before","before"==e.labelPosition)("_mat-animation-noopable",e._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[r._Bn([y]),r.qOj],ngContentSelectors:f,decls:16,vars:19,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["toggleBar",""],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],["thumbContainer",""],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(t,e){if(1&t&&(r.F$t(),r.TgZ(0,"label",0,1),r.TgZ(2,"div",2,3),r.TgZ(4,"input",4,5),r.NdJ("change",function(t){return e._onChangeEvent(t)})("click",function(t){return e._onInputClick(t)}),r.qZA(),r.TgZ(6,"div",6,7),r._UZ(8,"div",8),r.TgZ(9,"div",9),r._UZ(10,"div",10),r.qZA(),r.qZA(),r.qZA(),r.TgZ(11,"span",11,12),r.NdJ("cdkObserveContent",function(){return e._onLabelTextChange()}),r.TgZ(13,"span",13),r._uU(14,"\xa0"),r.qZA(),r.Hsn(15),r.qZA(),r.qZA()),2&t){const t=r.MAs(1),i=r.MAs(12);r.uIk("for",e.inputId),r.xp6(2),r.ekj("mat-slide-toggle-bar-no-side-margin",!i.textContent||!i.textContent.trim()),r.xp6(2),r.Q6J("id",e.inputId)("required",e.required)("tabIndex",e.tabIndex)("checked",e.checked)("disabled",e.disabled),r.uIk("name",e.name)("aria-checked",e.checked.toString())("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby),r.xp6(5),r.Q6J("matRippleTrigger",t)("matRippleDisabled",e.disableRipple||e.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",r.VKq(17,p,e._noopAnimations?0:150))}},directives:[s.wG,n.wD],styles:[".mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:transparent}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}.cdk-high-contrast-active .mat-slide-toggle.cdk-keyboard-focused .mat-slide-toggle-bar{outline:2px dotted;outline-offset:5px}\n"],encapsulation:2,changeDetection:0}),t})(),x=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({}),t})(),C=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[x,s.si,s.BQ,n.Q8],x,s.BQ]}),t})()},1403:(t,e,i)=>{"use strict";i.d(e,{Ve:()=>E,ux:()=>k,ZX:()=>S});var n=i(369),r=i(6899),s=i(1511),o=i(1572),a=i(1522),l=i(5980),c=i(9666),h=i(9056),u=i(9568),d=i(709),p=i(4621),f=i(72),m=i(1353);function g(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"div",1),o.TgZ(1,"button",2),o.NdJ("click",function(){return o.CHM(t),o.oxw().action()}),o._uU(2),o.qZA(),o.qZA()}if(2&t){const t=o.oxw();o.xp6(2),o.Oqu(t.data.action)}}function y(t,e){}const b=new o.OlP("MatSnackBarData");class v{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const _=Math.pow(2,31)-1;class w{constructor(t,e){this._overlayRef=e,this._afterDismissed=new c.x,this._afterOpened=new c.x,this._onAction=new c.x,this._dismissedByAction=!1,this.containerInstance=t,this.onAction().subscribe(()=>this.dismiss()),t._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(t){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(t,_))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}let x=(()=>{class t{constructor(t,e){this.snackBarRef=t,this.data=e}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(w),o.Y36(b))},t.\u0275cmp=o.Xpm({type:t,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(t,e){1&t&&(o.TgZ(0,"span"),o._uU(1),o.qZA(),o.YNc(2,g,3,1,"div",0)),2&t&&(o.xp6(1),o.Oqu(e.data.message),o.xp6(1),o.Q6J("ngIf",e.hasAction))},directives:[s.O5,l.lW],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}\n"],encapsulation:2,changeDetection:0}),t})();const C={snackBarState:(0,d.X$)("state",[(0,d.SB)("void, hidden",(0,d.oB)({transform:"scale(0.8)",opacity:0})),(0,d.SB)("visible",(0,d.oB)({transform:"scale(1)",opacity:1})),(0,d.eR)("* => visible",(0,d.jt)("150ms cubic-bezier(0, 0, 0.2, 1)")),(0,d.eR)("* => void, * => hidden",(0,d.jt)("75ms cubic-bezier(0.4, 0.0, 1, 1)",(0,d.oB)({opacity:0})))])};let A=(()=>{class t extends r.en{constructor(t,e,i,n,r){super(),this._ngZone=t,this._elementRef=e,this._changeDetectorRef=i,this._platform=n,this.snackBarConfig=r,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new c.x,this._onExit=new c.x,this._onEnter=new c.x,this._animationState="void",this.attachDomPortal=t=>(this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachDomPortal(t)),this._live="assertive"!==r.politeness||r.announcementMessage?"off"===r.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(t){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(t)}attachTemplatePortal(t){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(t)}onAnimationEnd(t){const{fromState:e,toState:i}=t;if(("void"===i&&"void"!==e||"hidden"===i)&&this._completeExit(),"visible"===i){const t=this._onEnter;this._ngZone.run(()=>{t.next(),t.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._onExit}ngOnDestroy(){this._destroyed=!0,this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe((0,h.q)(1)).subscribe(()=>{this._onExit.next(),this._onExit.complete()})}_applySnackBarClasses(){const t=this._elementRef.nativeElement,e=this.snackBarConfig.panelClass;e&&(Array.isArray(e)?e.forEach(e=>t.classList.add(e)):t.classList.add(e)),"center"===this.snackBarConfig.horizontalPosition&&t.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&t.classList.add("mat-snack-bar-top")}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const t=this._elementRef.nativeElement.querySelector("[aria-hidden]"),e=this._elementRef.nativeElement.querySelector("[aria-live]");if(t&&e){let i=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&t.contains(document.activeElement)&&(i=document.activeElement),t.removeAttribute("aria-hidden"),e.appendChild(t),null==i||i.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.R0b),o.Y36(o.SBq),o.Y36(o.sBO),o.Y36(m.t4),o.Y36(v))},t.\u0275cmp=o.Xpm({type:t,selectors:[["snack-bar-container"]],viewQuery:function(t,e){if(1&t&&o.Gf(r.Pl,7),2&t){let t;o.iGM(t=o.CRH())&&(e._portalOutlet=t.first)}},hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(t,e){1&t&&o.WFA("@state.done",function(t){return e.onAnimationEnd(t)}),2&t&&o.d8E("@state",e._animationState)},features:[o.qOj],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(t,e){1&t&&(o.TgZ(0,"div",0),o.YNc(1,y,0,0,"ng-template",1),o.qZA(),o._UZ(2,"div")),2&t&&(o.xp6(2),o.uIk("aria-live",e._live)("role",e._role))},directives:[r.Pl],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}\n"],encapsulation:2,data:{animation:[C.snackBarState]}}),t})(),S=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({imports:[[n.U8,r.eL,s.ez,l.ot,a.BQ],a.BQ]}),t})();const E=new o.OlP("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new v}});let k=(()=>{class t{constructor(t,e,i,n,r,s){this._overlay=t,this._live=e,this._injector=i,this._breakpointObserver=n,this._parentSnackBar=r,this._defaultConfig=s,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=x,this.snackBarContainerComponent=A,this.handsetCssClass="mat-snack-bar-handset"}get _openedSnackBarRef(){const t=this._parentSnackBar;return t?t._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(t){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=t:this._snackBarRefAtThisLevel=t}openFromComponent(t,e){return this._attach(t,e)}openFromTemplate(t,e){return this._attach(t,e)}open(t,e="",i){const n=Object.assign(Object.assign({},this._defaultConfig),i);return n.data={message:t,action:e},n.announcementMessage===t&&(n.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,n)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(t,e){const i=o.zs3.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:v,useValue:e}]}),n=new r.C5(this.snackBarContainerComponent,e.viewContainerRef,i),s=t.attach(n);return s.instance.snackBarConfig=e,s.instance}_attach(t,e){const i=Object.assign(Object.assign(Object.assign({},new v),this._defaultConfig),e),n=this._createOverlay(i),s=this._attachSnackBarContainer(n,i),a=new w(s,n);if(t instanceof o.Rgc){const e=new r.UE(t,null,{$implicit:i.data,snackBarRef:a});a.instance=s.attachTemplatePortal(e)}else{const e=this._createInjector(i,a),n=new r.C5(t,void 0,e),o=s.attachComponentPortal(n);a.instance=o.instance}return this._breakpointObserver.observe(f.u3.HandsetPortrait).pipe((0,u.R)(n.detachments())).subscribe(t=>{const e=n.overlayElement.classList;t.matches?e.add(this.handsetCssClass):e.remove(this.handsetCssClass)}),i.announcementMessage&&s._onAnnounce.subscribe(()=>{this._live.announce(i.announcementMessage,i.politeness)}),this._animateSnackBar(a,i),this._openedSnackBarRef=a,this._openedSnackBarRef}_animateSnackBar(t,e){t.afterDismissed().subscribe(()=>{this._openedSnackBarRef==t&&(this._openedSnackBarRef=null),e.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{t.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):t.containerInstance.enter(),e.duration&&e.duration>0&&t.afterOpened().subscribe(()=>t._dismissAfter(e.duration))}_createOverlay(t){const e=new n.X_;e.direction=t.direction;let i=this._overlay.position().global();const r="rtl"===t.direction,s="left"===t.horizontalPosition||"start"===t.horizontalPosition&&!r||"end"===t.horizontalPosition&&r,o=!s&&"center"!==t.horizontalPosition;return s?i.left("0"):o?i.right("0"):i.centerHorizontally(),"top"===t.verticalPosition?i.top("0"):i.bottom("0"),e.positionStrategy=i,this._overlay.create(e)}_createInjector(t,e){return o.zs3.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:w,useValue:e},{provide:b,useValue:t.data}]})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.aV),o.LFG(p.Kd),o.LFG(o.zs3),o.LFG(f.Yg),o.LFG(t,12),o.LFG(E))},t.\u0275prov=o.Yz7({factory:function(){return new t(o.LFG(n.aV),o.LFG(p.Kd),o.LFG(o.gxx),o.LFG(f.Yg),o.LFG(t,12),o.LFG(E))},token:t,providedIn:S}),t})()},2464:(t,e,i)=>{"use strict";i.d(e,{YE:()=>b,nU:()=>S,JX:()=>E});var n=i(1572),r=i(9861),s=i(1522),o=i(5842),a=i(9666),l=i(5446),c=i(709),h=i(1511),u=i(4621);const d=["mat-sort-header",""];function p(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"div",3),n.NdJ("@arrowPosition.start",function(){return n.CHM(t),n.oxw()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return n.CHM(t),n.oxw()._disableViewStateAnimation=!1}),n._UZ(1,"div",4),n.TgZ(2,"div",5),n._UZ(3,"div",6),n._UZ(4,"div",7),n._UZ(5,"div",8),n.qZA(),n.qZA()}if(2&t){const t=n.oxw();n.Q6J("@arrowOpacity",t._getArrowViewState())("@arrowPosition",t._getArrowViewState())("@allowChildren",t._getArrowDirectionState()),n.xp6(2),n.Q6J("@indicator",t._getArrowDirectionState()),n.xp6(1),n.Q6J("@leftPointer",t._getArrowDirectionState()),n.xp6(1),n.Q6J("@rightPointer",t._getArrowDirectionState())}}const f=["*"],m=new n.OlP("MAT_SORT_DEFAULT_OPTIONS");class g{}const y=(0,s.dB)((0,s.Id)(g));let b=(()=>{class t extends y{constructor(t){super(),this._defaultOptions=t,this.sortables=new Map,this._stateChanges=new a.x,this.start="asc",this._direction="",this.sortChange=new n.vpe}get direction(){return this._direction}set direction(t){this._direction=t}get disableClear(){return this._disableClear}set disableClear(t){this._disableClear=(0,r.Ig)(t)}register(t){this.sortables.set(t.id,t)}deregister(t){this.sortables.delete(t.id)}sort(t){this.active!=t.id?(this.active=t.id,this.direction=t.start?t.start:this.start):this.direction=this.getNextSortDirection(t),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(t){var e,i,n;if(!t)return"";const r=null!==(i=null!==(e=null==t?void 0:t.disableClear)&&void 0!==e?e:this.disableClear)&&void 0!==i?i:!!(null===(n=this._defaultOptions)||void 0===n?void 0:n.disableClear);let s=function(t,e){let i=["asc","desc"];return"desc"==t&&i.reverse(),e||i.push(""),i}(t.start||this.start,r),o=s.indexOf(this.direction)+1;return o>=s.length&&(o=0),s[o]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(m,8))},t.\u0275dir=n.lG2({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[n.qOj,n.TTD]}),t})();const v=s.mZ.ENTERING+" "+s.yN.STANDARD_CURVE,_={indicator:(0,c.X$)("indicator",[(0,c.SB)("active-asc, asc",(0,c.oB)({transform:"translateY(0px)"})),(0,c.SB)("active-desc, desc",(0,c.oB)({transform:"translateY(10px)"})),(0,c.eR)("active-asc <=> active-desc",(0,c.jt)(v))]),leftPointer:(0,c.X$)("leftPointer",[(0,c.SB)("active-asc, asc",(0,c.oB)({transform:"rotate(-45deg)"})),(0,c.SB)("active-desc, desc",(0,c.oB)({transform:"rotate(45deg)"})),(0,c.eR)("active-asc <=> active-desc",(0,c.jt)(v))]),rightPointer:(0,c.X$)("rightPointer",[(0,c.SB)("active-asc, asc",(0,c.oB)({transform:"rotate(45deg)"})),(0,c.SB)("active-desc, desc",(0,c.oB)({transform:"rotate(-45deg)"})),(0,c.eR)("active-asc <=> active-desc",(0,c.jt)(v))]),arrowOpacity:(0,c.X$)("arrowOpacity",[(0,c.SB)("desc-to-active, asc-to-active, active",(0,c.oB)({opacity:1})),(0,c.SB)("desc-to-hint, asc-to-hint, hint",(0,c.oB)({opacity:.54})),(0,c.SB)("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",(0,c.oB)({opacity:0})),(0,c.eR)("* => asc, * => desc, * => active, * => hint, * => void",(0,c.jt)("0ms")),(0,c.eR)("* <=> *",(0,c.jt)(v))]),arrowPosition:(0,c.X$)("arrowPosition",[(0,c.eR)("* => desc-to-hint, * => desc-to-active",(0,c.jt)(v,(0,c.F4)([(0,c.oB)({transform:"translateY(-25%)"}),(0,c.oB)({transform:"translateY(0)"})]))),(0,c.eR)("* => hint-to-desc, * => active-to-desc",(0,c.jt)(v,(0,c.F4)([(0,c.oB)({transform:"translateY(0)"}),(0,c.oB)({transform:"translateY(25%)"})]))),(0,c.eR)("* => asc-to-hint, * => asc-to-active",(0,c.jt)(v,(0,c.F4)([(0,c.oB)({transform:"translateY(25%)"}),(0,c.oB)({transform:"translateY(0)"})]))),(0,c.eR)("* => hint-to-asc, * => active-to-asc",(0,c.jt)(v,(0,c.F4)([(0,c.oB)({transform:"translateY(0)"}),(0,c.oB)({transform:"translateY(-25%)"})]))),(0,c.SB)("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",(0,c.oB)({transform:"translateY(0)"})),(0,c.SB)("hint-to-desc, active-to-desc, desc",(0,c.oB)({transform:"translateY(-25%)"})),(0,c.SB)("hint-to-asc, active-to-asc, asc",(0,c.oB)({transform:"translateY(25%)"}))]),allowChildren:(0,c.X$)("allowChildren",[(0,c.eR)("* <=> *",[(0,c.IO)("@*",(0,c.pV)(),{optional:!0})])])};let w=(()=>{class t{constructor(){this.changes=new a.x}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=n.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})();const x={provide:w,deps:[[new n.FiY,new n.tp0,w]],useFactory:function(t){return t||new w}};class C{}const A=(0,s.Id)(C);let S=(()=>{class t extends A{constructor(t,e,i,n,r,s){super(),this._intl=t,this._changeDetectorRef=e,this._sort=i,this._columnDef=n,this._focusMonitor=r,this._elementRef=s,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._handleStateChanges()}get disableClear(){return this._disableClear}set disableClear(t){this._disableClear=(0,r.Ig)(t)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{const e=!!t;e!==this._showIndicatorHint&&(this._setIndicatorHintVisible(e),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(t){this._isDisabled()&&t||(this._showIndicatorHint=t,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(t){this._viewState=t||{},this._disableViewStateAnimation&&(this._viewState={toState:t.toState})}_toggleOnInteraction(){this._sort.sort(this),"hint"!==this._viewState.toState&&"active"!==this._viewState.toState||(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(t){this._isDisabled()||t.keyCode!==o.L_&&t.keyCode!==o.K5||(t.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const t=this._viewState.fromState;return(t?`${t}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_handleStateChanges(){this._rerenderSubscription=(0,l.T)(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),"hint"!==this._viewState.toState&&"active"!==this._viewState.toState||(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(w),n.Y36(n.sBO),n.Y36(b,8),n.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),n.Y36(u.tE),n.Y36(n.SBq))},t.\u0275cmp=n.Xpm({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(t,e){1&t&&n.NdJ("click",function(){return e._handleClick()})("keydown",function(t){return e._handleKeydown(t)})("mouseenter",function(){return e._setIndicatorHintVisible(!0)})("mouseleave",function(){return e._setIndicatorHintVisible(!1)}),2&t&&(n.uIk("aria-sort",e._getAriaSortAttribute()),n.ekj("mat-sort-header-disabled",e._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[n.qOj],attrs:d,ngContentSelectors:f,decls:4,vars:6,consts:[["role","button",1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(t,e){1&t&&(n.F$t(),n.TgZ(0,"div",0),n.TgZ(1,"div",1),n.Hsn(2),n.qZA(),n.YNc(3,p,6,6,"div",2),n.qZA()),2&t&&(n.ekj("mat-sort-header-sorted",e._isSorted())("mat-sort-header-position-before","before"==e.arrowPosition),n.uIk("tabindex",e._isDisabled()?null:0),n.xp6(3),n.Q6J("ngIf",e._renderArrow()))},directives:[h.O5],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[_.indicator,_.leftPointer,_.rightPointer,_.arrowOpacity,_.arrowPosition,_.allowChildren]},changeDetection:0}),t})(),E=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({providers:[x],imports:[[h.ez,s.BQ]]}),t})()},7753:(t,e,i)=>{"use strict";i.d(e,{C0:()=>Q,VY:()=>B,Vq:()=>K,z9:()=>j,T5:()=>et,Ic:()=>$,fd:()=>tt});var n=i(6899),r=i(8544),s=i(1511),o=i(1572),a=i(5980),l=i(1522),c=i(3691),h=i(9666),u=i(6042),d=i(4324),p=i(1681),f=i(1258),m=i(9568),g=i(6424),y=i(709),b=i(4621),v=i(2526);function _(t,e){if(1&t&&o.GkF(0,8),2&t){const t=o.oxw();o.Q6J("ngTemplateOutlet",t.iconOverrides[t.state])("ngTemplateOutletContext",t._getIconContext())}}function w(t,e){if(1&t&&(o.TgZ(0,"span"),o._uU(1),o.qZA()),2&t){const t=o.oxw(2);o.xp6(1),o.Oqu(t._getDefaultTextForState(t.state))}}function x(t,e){if(1&t&&(o.TgZ(0,"mat-icon"),o._uU(1),o.qZA()),2&t){const t=o.oxw(2);o.xp6(1),o.Oqu(t._getDefaultTextForState(t.state))}}function C(t,e){if(1&t&&(o.ynx(0,9),o.YNc(1,w,2,1,"span",10),o.YNc(2,x,2,1,"mat-icon",11),o.BQk()),2&t){const t=o.oxw();o.Q6J("ngSwitch",t.state),o.xp6(1),o.Q6J("ngSwitchCase","number")}}function A(t,e){if(1&t&&(o.TgZ(0,"div",12),o.GkF(1,13),o.qZA()),2&t){const t=o.oxw();o.xp6(1),o.Q6J("ngTemplateOutlet",t._templateLabel().template)}}function S(t,e){if(1&t&&(o.TgZ(0,"div",12),o._uU(1),o.qZA()),2&t){const t=o.oxw();o.xp6(1),o.Oqu(t.label)}}function E(t,e){if(1&t&&(o.TgZ(0,"div",14),o._uU(1),o.qZA()),2&t){const t=o.oxw();o.xp6(1),o.Oqu(t._intl.optionalLabel)}}function k(t,e){if(1&t&&(o.TgZ(0,"div",15),o._uU(1),o.qZA()),2&t){const t=o.oxw();o.xp6(1),o.Oqu(t.errorMessage)}}function T(t,e){}function M(t,e){if(1&t&&(o.Hsn(0),o.YNc(1,T,0,0,"ng-template",0)),2&t){const t=o.oxw();o.xp6(1),o.Q6J("cdkPortalOutlet",t._portal)}}const L=["*"];function I(t,e){1&t&&o._UZ(0,"div",9)}const O=function(t,e){return{step:t,i:e}};function D(t,e){if(1&t&&(o.ynx(0),o.GkF(1,7),o.YNc(2,I,1,0,"div",8),o.BQk()),2&t){const t=e.$implicit,i=e.index,n=e.last;o.oxw(2);const r=o.MAs(4);o.xp6(1),o.Q6J("ngTemplateOutlet",r)("ngTemplateOutletContext",o.WLB(3,O,t,i)),o.xp6(1),o.Q6J("ngIf",!n)}}function R(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"div",10),o.NdJ("@horizontalStepTransition.done",function(e){return o.CHM(t),o.oxw(2)._animationDone.next(e)}),o.GkF(1,11),o.qZA()}if(2&t){const t=e.$implicit,i=e.index,n=o.oxw(2);o.Q6J("@horizontalStepTransition",n._getAnimationDirection(i))("id",n._getStepContentId(i)),o.uIk("aria-labelledby",n._getStepLabelId(i))("aria-expanded",n.selectedIndex===i),o.xp6(1),o.Q6J("ngTemplateOutlet",t.content)}}function N(t,e){if(1&t&&(o.ynx(0),o.TgZ(1,"div",3),o.YNc(2,D,3,6,"ng-container",4),o.qZA(),o.TgZ(3,"div",5),o.YNc(4,R,2,5,"div",6),o.qZA(),o.BQk()),2&t){const t=o.oxw();o.xp6(2),o.Q6J("ngForOf",t.steps),o.xp6(2),o.Q6J("ngForOf",t.steps)}}function P(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"div",13),o.GkF(1,7),o.TgZ(2,"div",14),o.TgZ(3,"div",15),o.NdJ("@verticalStepTransition.done",function(e){return o.CHM(t),o.oxw(2)._animationDone.next(e)}),o.TgZ(4,"div",16),o.GkF(5,11),o.qZA(),o.qZA(),o.qZA(),o.qZA()}if(2&t){const t=e.$implicit,i=e.index,n=e.last,r=o.oxw(2),s=o.MAs(4);o.xp6(1),o.Q6J("ngTemplateOutlet",s)("ngTemplateOutletContext",o.WLB(9,O,t,i)),o.xp6(1),o.ekj("mat-stepper-vertical-line",!n),o.xp6(1),o.Q6J("@verticalStepTransition",r._getAnimationDirection(i))("id",r._getStepContentId(i)),o.uIk("aria-labelledby",r._getStepLabelId(i))("aria-expanded",r.selectedIndex===i),o.xp6(2),o.Q6J("ngTemplateOutlet",t.content)}}function F(t,e){if(1&t&&(o.ynx(0),o.YNc(1,P,6,12,"div",12),o.BQk()),2&t){const t=o.oxw();o.xp6(1),o.Q6J("ngForOf",t.steps)}}function Z(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"mat-step-header",17),o.NdJ("click",function(){return e.step.select()})("keydown",function(e){return o.CHM(t),o.oxw()._onKeydown(e)}),o.qZA()}if(2&t){const t=e.step,i=e.i,n=o.oxw();o.ekj("mat-horizontal-stepper-header","horizontal"===n.orientation)("mat-vertical-stepper-header","vertical"===n.orientation),o.Q6J("tabIndex",n._getFocusIndex()===i?0:-1)("id",n._getStepLabelId(i))("index",i)("state",n._getIndicatorType(i,t.state))("label",t.stepLabel||t.label)("selected",n.selectedIndex===i)("active",t.completed||n.selectedIndex===i||!n.linear)("optional",t.optional)("errorMessage",t.errorMessage)("iconOverrides",n._iconOverrides)("disableRipple",n.disableRipple)("color",t.color||n.color),o.uIk("aria-posinset",i+1)("aria-setsize",n.steps.length)("aria-controls",n._getStepContentId(i))("aria-selected",n.selectedIndex==i)("aria-label",t.ariaLabel||null)("aria-labelledby",!t.ariaLabel&&t.ariaLabelledby?t.ariaLabelledby:null)}}let B=(()=>{class t extends r.u6{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(t)))(i||t)}}(),t.\u0275dir=o.lG2({type:t,selectors:[["","matStepLabel",""]],features:[o.qOj]}),t})(),U=(()=>{class t{constructor(){this.changes=new h.x,this.optionalLabel="Optional"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=o.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})();const q={provide:U,deps:[[new o.FiY,new o.tp0,U]],useFactory:function(t){return t||new U}};class z extends r.KL{constructor(t){super(t)}}const H=(0,l.pj)(z,"primary");let Y=(()=>{class t extends H{constructor(t,e,i,n){super(i),this._intl=t,this._focusMonitor=e,this._intlSubscription=t.changes.subscribe(()=>n.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(t,e){t?this._focusMonitor.focusVia(this._elementRef,t,e):this._elementRef.nativeElement.focus(e)}_stringLabel(){return this.label instanceof B?null:this.label}_templateLabel(){return this.label instanceof B?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(t){return"number"==t?`${this.index+1}`:"edit"==t?"create":"error"==t?"warning":t}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(U),o.Y36(b.tE),o.Y36(o.SBq),o.Y36(o.sBO))},t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],inputs:{color:"color",state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple"},features:[o.qOj],decls:10,vars:19,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content",3,"ngSwitch"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngSwitchCase"],[3,"ngSwitch",4,"ngSwitchDefault"],[1,"mat-step-label"],["class","mat-step-text-label",4,"ngIf"],["class","mat-step-optional",4,"ngIf"],["class","mat-step-sub-label-error",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[1,"mat-step-text-label"],[3,"ngTemplateOutlet"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function(t,e){1&t&&(o._UZ(0,"div",0),o.TgZ(1,"div"),o.TgZ(2,"div",1),o.YNc(3,_,1,2,"ng-container",2),o.YNc(4,C,3,2,"ng-container",3),o.qZA(),o.qZA(),o.TgZ(5,"div",4),o.YNc(6,A,2,1,"div",5),o.YNc(7,S,2,1,"div",5),o.YNc(8,E,2,1,"div",6),o.YNc(9,k,2,1,"div",7),o.qZA()),2&t&&(o.Q6J("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disableRipple),o.xp6(1),o.Gre("mat-step-icon-state-",e.state," mat-step-icon"),o.ekj("mat-step-icon-selected",e.selected),o.xp6(1),o.Q6J("ngSwitch",!(!e.iconOverrides||!e.iconOverrides[e.state])),o.xp6(1),o.Q6J("ngSwitchCase",!0),o.xp6(2),o.ekj("mat-step-label-active",e.active)("mat-step-label-selected",e.selected)("mat-step-label-error","error"==e.state),o.xp6(1),o.Q6J("ngIf",e._templateLabel()),o.xp6(1),o.Q6J("ngIf",e._stringLabel()),o.xp6(1),o.Q6J("ngIf",e.optional&&"error"!=e.state),o.xp6(1),o.Q6J("ngIf","error"==e.state))},directives:[l.wG,s.RF,s.n9,s.ED,s.O5,s.tP,c.Hw],styles:[".mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:transparent}.mat-step-optional,.mat-step-sub-label-error{font-size:12px}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative}.mat-step-icon-content,.mat-step-icon .mat-icon{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,changeDetection:0}),t})();const G={horizontalStepTransition:(0,y.X$)("horizontalStepTransition",[(0,y.SB)("previous",(0,y.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),(0,y.SB)("current",(0,y.oB)({transform:"none",visibility:"inherit"})),(0,y.SB)("next",(0,y.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),(0,y.eR)("* => *",(0,y.jt)("500ms cubic-bezier(0.35, 0, 0.25, 1)"))]),verticalStepTransition:(0,y.X$)("verticalStepTransition",[(0,y.SB)("previous",(0,y.oB)({height:"0px",visibility:"hidden"})),(0,y.SB)("next",(0,y.oB)({height:"0px",visibility:"hidden"})),(0,y.SB)("current",(0,y.oB)({height:"*",visibility:"inherit"})),(0,y.eR)("* <=> current",(0,y.jt)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])};let j=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.Rgc))},t.\u0275dir=o.lG2({type:t,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),t})(),V=(()=>{class t{constructor(t){this._template=t}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.Rgc))},t.\u0275dir=o.lG2({type:t,selectors:[["ng-template","matStepContent",""]]}),t})(),Q=(()=>{class t extends r.be{constructor(t,e,i,n){super(t,n),this._errorStateMatcher=e,this._viewContainerRef=i,this._isSelected=u.w0.EMPTY}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe((0,d.w)(()=>this._stepper.selectionChange.pipe((0,p.U)(t=>t.selectedStep===this),(0,f.O)(this._stepper.selected===this)))).subscribe(t=>{t&&this._lazyContent&&!this._portal&&(this._portal=new n.UE(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(t,e){return this._errorStateMatcher.isErrorState(t,e)||!!(t&&t.invalid&&this.interacted)}}return t.\u0275fac=function(e){return new(e||t)(o.Y36((0,o.Gpc)(()=>K)),o.Y36(l.rD,4),o.Y36(o.s_b),o.Y36(r.gx,8))},t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-step"]],contentQueries:function(t,e,i){if(1&t&&(o.Suo(i,B,5),o.Suo(i,V,5)),2&t){let t;o.iGM(t=o.CRH())&&(e.stepLabel=t.first),o.iGM(t=o.CRH())&&(e._lazyContent=t.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[o._Bn([{provide:l.rD,useExisting:t},{provide:r.be,useExisting:t}]),o.qOj],ngContentSelectors:L,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(t,e){1&t&&(o.F$t(),o.YNc(0,M,2,1,"ng-template"))},directives:[n.Pl],encapsulation:2,changeDetection:0}),t})(),W=(()=>{class t extends r.B8{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(t)))(i||t)}}(),t.\u0275dir=o.lG2({type:t,features:[o.qOj]}),t})(),J=(()=>{class t extends W{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(t)))(i||t)}}(),t.\u0275dir=o.lG2({type:t,selectors:[["mat-horizontal-stepper"]],features:[o.qOj]}),t})(),X=(()=>{class t extends W{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(t)))(i||t)}}(),t.\u0275dir=o.lG2({type:t,selectors:[["mat-vertical-stepper"]],features:[o.qOj]}),t})(),K=(()=>{class t extends r.B8{constructor(t,e,i,n){super(t,e,i,n),this.steps=new o.n_E,this.animationDone=new o.vpe,this.labelPosition="end",this._iconOverrides={},this._animationDone=new h.x;const r=i.nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===r?"vertical":"horizontal"}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:t,templateRef:e})=>this._iconOverrides[t]=e),this.steps.changes.pipe((0,m.R)(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe((0,g.x)((t,e)=>t.fromState===e.fromState&&t.toState===e.toState),(0,m.R)(this._destroyed)).subscribe(t=>{"current"===t.toState&&this.animationDone.emit()})}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(v.Is,8),o.Y36(o.sBO),o.Y36(o.SBq),o.Y36(s.K0))},t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(t,e,i){if(1&t&&(o.Suo(i,Q,5),o.Suo(i,j,5)),2&t){let t;o.iGM(t=o.CRH())&&(e._steps=t),o.iGM(t=o.CRH())&&(e._icons=t)}},viewQuery:function(t,e){if(1&t&&o.Gf(Y,5),2&t){let t;o.iGM(t=o.CRH())&&(e._stepHeader=t)}},hostAttrs:["role","tablist"],hostVars:9,hostBindings:function(t,e){2&t&&(o.uIk("aria-orientation",e.orientation),o.ekj("mat-stepper-horizontal","horizontal"===e.orientation)("mat-stepper-vertical","vertical"===e.orientation)("mat-stepper-label-position-end","horizontal"===e.orientation&&"end"==e.labelPosition)("mat-stepper-label-position-bottom","horizontal"===e.orientation&&"bottom"==e.labelPosition))},inputs:{selectedIndex:"selectedIndex",labelPosition:"labelPosition",disableRipple:"disableRipple",color:"color"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[o._Bn([{provide:r.B8,useExisting:t},{provide:J,useExisting:t},{provide:X,useExisting:t}]),o.qOj],decls:5,vars:3,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],["stepTemplate",""],[1,"mat-horizontal-stepper-header-container"],[4,"ngFor","ngForOf"],[1,"mat-horizontal-content-container"],["class","mat-horizontal-stepper-content","role","tabpanel",3,"id",4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","mat-stepper-horizontal-line",4,"ngIf"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],["class","mat-step",4,"ngFor","ngForOf"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color","click","keydown"]],template:function(t,e){1&t&&(o.ynx(0,0),o.YNc(1,N,5,2,"ng-container",1),o.YNc(2,F,2,1,"ng-container",1),o.BQk(),o.YNc(3,Z,1,22,"ng-template",null,2,o.W1O)),2&t&&(o.Q6J("ngSwitch",e.orientation),o.xp6(1),o.Q6J("ngSwitchCase","horizontal"),o.xp6(1),o.Q6J("ngSwitchCase","vertical"))},directives:[s.RF,s.n9,s.sg,s.tP,s.O5,Y],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content[aria-expanded=false]{height:0;overflow:hidden}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}\n'],encapsulation:2,data:{animation:[G.horizontalStepTransition,G.verticalStepTransition]},changeDetection:0}),t})(),$=(()=>{class t extends r.st{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(t)))(i||t)}}(),t.\u0275dir=o.lG2({type:t,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(t,e){2&t&&o.Ikx("type",e.type)},inputs:{type:"type"},features:[o.qOj]}),t})(),tt=(()=>{class t extends r.po{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(t)))(i||t)}}(),t.\u0275dir=o.lG2({type:t,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(t,e){2&t&&o.Ikx("type",e.type)},inputs:{type:"type"},features:[o.qOj]}),t})(),et=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({providers:[q,l.rD],imports:[[l.BQ,s.ez,n.eL,a.ot,r.U5,c.Ps,l.si],l.BQ]}),t})()},7033:(t,e,i)=>{"use strict";i.d(e,{ev:()=>gt,Dz:()=>ht,w1:()=>pt,yh:()=>mt,mD:()=>dt,Q2:()=>wt,Ke:()=>bt,ge:()=>ft,fO:()=>ut,XQ:()=>_t,as:()=>yt,Gk:()=>xt,nj:()=>vt,BZ:()=>ct,by:()=>St,p0:()=>Ct});var n=i(9861),r=i(4230),s=i(1572),o=i(2526),a=i(1353),l=i(4894),c=i(1511),h=i(9666),u=i(5630),d=i(7425),p=i(4776),f=i(2041),m=i(9568),g=i(9056);const y=[[["caption"]],[["colgroup"],["col"]]],b=["caption","colgroup, col"];function v(t){return class extends t{constructor(...t){super(...t),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(t){const e=this._sticky;this._sticky=(0,n.Ig)(t),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const t=this._hasStickyChanged;return this._hasStickyChanged=!1,t}resetStickyChanged(){this._hasStickyChanged=!1}}}const _=new s.OlP("CDK_TABLE");let w=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkCellDef",""]]}),t})(),x=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkHeaderCellDef",""]]}),t})(),C=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkFooterCellDef",""]]}),t})();class A{}const S=v(A);let E=(()=>{class t extends S{constructor(t){super(),this._table=t,this._stickyEnd=!1}get name(){return this._name}set name(t){this._setNameInput(t)}get stickyEnd(){return this._stickyEnd}set stickyEnd(t){const e=this._stickyEnd;this._stickyEnd=(0,n.Ig)(t),this._hasStickyChanged=e!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(t){t&&(this._name=t,this.cssClassFriendlyName=t.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(_,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(t,e,i){if(1&t&&(s.Suo(i,w,5),s.Suo(i,x,5),s.Suo(i,C,5)),2&t){let t;s.iGM(t=s.CRH())&&(e.cell=t.first),s.iGM(t=s.CRH())&&(e.headerCell=t.first),s.iGM(t=s.CRH())&&(e.footerCell=t.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[s._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),s.qOj]}),t})();class k{constructor(t,e){const i=e.nativeElement.classList;for(const n of t._columnCssClassName)i.add(n)}}let T=(()=>{class t extends k{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(E),s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[s.qOj]}),t})(),M=(()=>{class t extends k{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(E),s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:["role","gridcell",1,"cdk-footer-cell"],features:[s.qOj]}),t})(),L=(()=>{class t extends k{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(E),s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:["role","gridcell",1,"cdk-cell"],features:[s.qOj]}),t})();class I{constructor(){this.tasks=[],this.endTasks=[]}}const O=new s.OlP("_COALESCED_STYLE_SCHEDULER");let D=(()=>{class t{constructor(t){this._ngZone=t,this._currentSchedule=null,this._destroyed=new h.x}schedule(t){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(t)}scheduleEnd(t){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(t)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new I,this._getScheduleObservable().pipe((0,m.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const t=this._currentSchedule;this._currentSchedule=new I;for(const e of t.tasks)e();for(const e of t.endTasks)e()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,u.Dp)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,g.q)(1))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.R0b))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),R=(()=>{class t{constructor(t,e){this.template=t,this._differs=e}ngOnChanges(t){if(!this._columnsDiffer){const e=t.columns&&t.columns.currentValue||[];this._columnsDiffer=this._differs.find(e).create(),this._columnsDiffer.diff(e)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(t){return this instanceof F?t.headerCell.template:this instanceof U?t.footerCell.template:t.cell.template}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc),s.Y36(s.ZZ4))},t.\u0275dir=s.lG2({type:t,features:[s.TTD]}),t})();class N extends R{}const P=v(N);let F=(()=>{class t extends P{constructor(t,e,i){super(t,e),this._table=i}ngOnChanges(t){super.ngOnChanges(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc),s.Y36(s.ZZ4),s.Y36(_,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[s.qOj,s.TTD]}),t})();class Z extends R{}const B=v(Z);let U=(()=>{class t extends B{constructor(t,e,i){super(t,e),this._table=i}ngOnChanges(t){super.ngOnChanges(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc),s.Y36(s.ZZ4),s.Y36(_,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[s.qOj,s.TTD]}),t})(),q=(()=>{class t extends R{constructor(t,e,i){super(t,e),this._table=i}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc),s.Y36(s.ZZ4),s.Y36(_,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[s.qOj]}),t})(),z=(()=>{class t{constructor(e){this._viewContainer=e,t.mostRecentCellOutlet=this}ngOnDestroy(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.s_b))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkCellOutlet",""]]}),t.mostRecentCellOutlet=null,t})(),H=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&s.GkF(0,0)},directives:[z],encapsulation:2}),t})(),Y=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&s.GkF(0,0)},directives:[z],encapsulation:2}),t})(),G=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&s.GkF(0,0)},directives:[z],encapsulation:2}),t})(),j=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc))},t.\u0275dir=s.lG2({type:t,selectors:[["ng-template","cdkNoDataRow",""]]}),t})();const V=["top","bottom","left","right"];class Q{constructor(t,e,i,n,r=!0,s=!0,o){this._isNativeHtmlTable=t,this._stickCellCss=e,this.direction=i,this._coalescedStyleScheduler=n,this._isBrowser=r,this._needsPositionStickyOnElement=s,this._positionListener=o,this._cachedCellWidths=[],this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(t,e){const i=[];for(const n of t)if(n.nodeType===n.ELEMENT_NODE){i.push(n);for(let t=0;t{for(const t of i)this._removeStickyStyle(t,e)})}updateStickyColumns(t,e,i,n=!0){if(!t.length||!this._isBrowser||!e.some(t=>t)&&!i.some(t=>t))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const r=t[0],s=r.children.length,o=this._getCellWidths(r,n),a=this._getStickyStartColumnPositions(o,e),l=this._getStickyEndColumnPositions(o,i),c=e.lastIndexOf(!0),h=i.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const n="rtl"===this.direction,r=n?"right":"left",u=n?"left":"right";for(const o of t)for(let t=0;te[i]?t:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===h?[]:o.slice(h).map((t,e)=>i[e+h]?t:null).reverse()}))})}stickRows(t,e,i){if(!this._isBrowser)return;const n="bottom"===i?t.slice().reverse():t,r="bottom"===i?e.slice().reverse():e,s=[],o=[],a=[];for(let c=0,h=0;c{var t,e;for(let o=0;o{e.some(t=>!t)?this._removeStickyStyle(i,["bottom"]):this._addStickyStyle(i,"bottom",0,!1)})}_removeStickyStyle(t,e){for(const i of e)t.style[i]="",t.classList.remove(this._borderCellCss[i]);V.some(i=>-1===e.indexOf(i)&&t.style[i])?t.style.zIndex=this._getCalculatedZIndex(t):(t.style.zIndex="",this._needsPositionStickyOnElement&&(t.style.position=""),t.classList.remove(this._stickCellCss))}_addStickyStyle(t,e,i,n){t.classList.add(this._stickCellCss),n&&t.classList.add(this._borderCellCss[e]),t.style[e]=`${i}px`,t.style.zIndex=this._getCalculatedZIndex(t),this._needsPositionStickyOnElement&&(t.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(t){const e={top:100,bottom:10,left:1,right:1};let i=0;for(const n of V)t.style[n]&&(i+=e[n]);return i?`${i}`:""}_getCellWidths(t,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const i=[],n=t.children;for(let r=0;r0;r--)e[r]&&(i[r]=n,n+=t[r]);return i}}const W=new s.OlP("CDK_SPL");let J=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.s_b),s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["","rowOutlet",""]]}),t})(),X=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.s_b),s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["","headerRowOutlet",""]]}),t})(),K=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.s_b),s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["","footerRowOutlet",""]]}),t})(),$=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.s_b),s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["","noDataRowOutlet",""]]}),t})(),tt=(()=>{class t{constructor(t,e,i,n,r,s,o,a,l,c,u){this._differs=t,this._changeDetectorRef=e,this._elementRef=i,this._dir=r,this._platform=o,this._viewRepeater=a,this._coalescedStyleScheduler=l,this._viewportRuler=c,this._stickyPositioningListener=u,this._onDestroy=new h.x,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.viewChange=new d.X({start:0,end:Number.MAX_VALUE}),n||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=s,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(t){this._trackByFn=t}get dataSource(){return this._dataSource}set dataSource(t){this._dataSource!==t&&this._switchDataSource(t)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(t){this._multiTemplateDataRows=(0,n.Ig)(t),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(t){this._fixedLayout=(0,n.Ig)(t),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((t,e)=>this.trackBy?this.trackBy(e.dataIndex,e.data):e),this._viewportRuler.change().pipe((0,m.R)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const t=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||t,this._forceRecalculateCellWidths=t,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){this._rowOutlet.viewContainer.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),(0,r.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const t=this._dataDiffer.diff(this._renderRows);if(!t)return void this._updateNoDataRow();const e=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(t,e,(t,e,i)=>this._getEmbeddedViewArgs(t.item,i),t=>t.item.data,t=>{1===t.operation&&t.context&&this._renderCellTemplateForItem(t.record.item.rowDef,t.context)}),this._updateRowIndexContext(),t.forEachIdentityChange(t=>{e.get(t.currentIndex).context.$implicit=t.item.data}),this._updateNoDataRow(),this.updateStickyColumnStyles()}addColumnDef(t){this._customColumnDefs.add(t)}removeColumnDef(t){this._customColumnDefs.delete(t)}addRowDef(t){this._customRowDefs.add(t)}removeRowDef(t){this._customRowDefs.delete(t)}addHeaderRowDef(t){this._customHeaderRowDefs.add(t),this._headerRowDefChanged=!0}removeHeaderRowDef(t){this._customHeaderRowDefs.delete(t),this._headerRowDefChanged=!0}addFooterRowDef(t){this._customFooterRowDefs.add(t),this._footerRowDefChanged=!0}removeFooterRowDef(t){this._customFooterRowDefs.delete(t),this._footerRowDefChanged=!0}setNoDataRow(t){this._customNoDataRow=t}updateStickyHeaderRowStyles(){const t=this._getRenderedRows(this._headerRowOutlet),e=this._elementRef.nativeElement.querySelector("thead");e&&(e.style.display=t.length?"":"none");const i=this._headerRowDefs.map(t=>t.sticky);this._stickyStyler.clearStickyPositioning(t,["top"]),this._stickyStyler.stickRows(t,i,"top"),this._headerRowDefs.forEach(t=>t.resetStickyChanged())}updateStickyFooterRowStyles(){const t=this._getRenderedRows(this._footerRowOutlet),e=this._elementRef.nativeElement.querySelector("tfoot");e&&(e.style.display=t.length?"":"none");const i=this._footerRowDefs.map(t=>t.sticky);this._stickyStyler.clearStickyPositioning(t,["bottom"]),this._stickyStyler.stickRows(t,i,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,i),this._footerRowDefs.forEach(t=>t.resetStickyChanged())}updateStickyColumnStyles(){const t=this._getRenderedRows(this._headerRowOutlet),e=this._getRenderedRows(this._rowOutlet),i=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...t,...e,...i],["left","right"]),this._stickyColumnStylesNeedReset=!1),t.forEach((t,e)=>{this._addStickyColumnStyles([t],this._headerRowDefs[e])}),this._rowDefs.forEach(t=>{const i=[];for(let n=0;n{this._addStickyColumnStyles([t],this._footerRowDefs[e])}),Array.from(this._columnDefsByName.values()).forEach(t=>t.resetStickyChanged())}_getAllRenderRows(){const t=[],e=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let i=0;i{const r=i&&i.has(n)?i.get(n):[];if(r.length){const t=r.shift();return t.dataIndex=e,t}return{data:t,rowDef:n,dataIndex:e}})}_cacheColumnDefs(){this._columnDefsByName.clear(),et(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{this._columnDefsByName.has(t.name),this._columnDefsByName.set(t.name,t)})}_cacheRowDefs(){this._headerRowDefs=et(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=et(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=et(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const t=this._rowDefs.filter(t=>!t.when);this._defaultRowDef=t[0]}_renderUpdatedColumns(){const t=(t,e)=>t||!!e.getColumnsDiff(),e=this._rowDefs.reduce(t,!1);e&&this._forceRenderDataRows();const i=this._headerRowDefs.reduce(t,!1);i&&this._forceRenderHeaderRows();const n=this._footerRowDefs.reduce(t,!1);return n&&this._forceRenderFooterRows(),e||i||n}_switchDataSource(t){this._data=[],(0,r.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),t||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=t}_observeRenderChanges(){if(!this.dataSource)return;let t;(0,r.Z9)(this.dataSource)?t=this.dataSource.connect(this):(0,p.b)(this.dataSource)?t=this.dataSource:Array.isArray(this.dataSource)&&(t=(0,f.of)(this.dataSource)),this._renderChangeSubscription=t.pipe((0,m.R)(this._onDestroy)).subscribe(t=>{this._data=t||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((t,e)=>this._renderRow(this._headerRowOutlet,t,e)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((t,e)=>this._renderRow(this._footerRowOutlet,t,e)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(t,e){const i=Array.from(e.columns||[]).map(t=>this._columnDefsByName.get(t)),n=i.map(t=>t.sticky),r=i.map(t=>t.stickyEnd);this._stickyStyler.updateStickyColumns(t,n,r,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(t){const e=[];for(let i=0;i!i.when||i.when(e,t));else{let n=this._rowDefs.find(i=>i.when&&i.when(e,t))||this._defaultRowDef;n&&i.push(n)}return i}_getEmbeddedViewArgs(t,e){return{templateRef:t.rowDef.template,context:{$implicit:t.data},index:e}}_renderRow(t,e,i,n={}){const r=t.viewContainer.createEmbeddedView(e.template,n,i);return this._renderCellTemplateForItem(e,n),r}_renderCellTemplateForItem(t,e){for(let i of this._getCellTemplates(t))z.mostRecentCellOutlet&&z.mostRecentCellOutlet._viewContainer.createEmbeddedView(i,e);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const t=this._rowOutlet.viewContainer;for(let e=0,i=t.length;e{const i=this._columnDefsByName.get(e);return t.extractCellTemplate(i)}):[]}_applyNativeTableSections(){const t=this._document.createDocumentFragment(),e=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const i of e){const e=this._document.createElement(i.tag);e.setAttribute("role","rowgroup");for(const t of i.outlets)e.appendChild(t.elementRef.nativeElement);t.appendChild(e)}this._elementRef.nativeElement.appendChild(t)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const t=(t,e)=>t||e.hasStickyChanged();this._headerRowDefs.reduce(t,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(t,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(t,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new Q(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:(0,f.of)()).pipe((0,m.R)(this._onDestroy)).subscribe(t=>{this._stickyStyler.direction=t,this.updateStickyColumnStyles()})}_getOwnDefs(t){return t.filter(t=>!t._table||t._table===this)}_updateNoDataRow(){const t=this._customNoDataRow||this._noDataRow;if(t){const e=0===this._rowOutlet.viewContainer.length;if(e!==this._isShowingNoDataRow){const i=this._noDataRowOutlet.viewContainer;e?i.createEmbeddedView(t.templateRef):i.clear(),this._isShowingNoDataRow=e}}}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.ZZ4),s.Y36(s.sBO),s.Y36(s.SBq),s.$8M("role"),s.Y36(o.Is,8),s.Y36(c.K0),s.Y36(a.t4),s.Y36(r.k),s.Y36(O),s.Y36(l.rL),s.Y36(W,12))},t.\u0275cmp=s.Xpm({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(t,e,i){if(1&t&&(s.Suo(i,j,5),s.Suo(i,E,5),s.Suo(i,q,5),s.Suo(i,F,5),s.Suo(i,U,5)),2&t){let t;s.iGM(t=s.CRH())&&(e._noDataRow=t.first),s.iGM(t=s.CRH())&&(e._contentColumnDefs=t),s.iGM(t=s.CRH())&&(e._contentRowDefs=t),s.iGM(t=s.CRH())&&(e._contentHeaderRowDefs=t),s.iGM(t=s.CRH())&&(e._contentFooterRowDefs=t)}},viewQuery:function(t,e){if(1&t&&(s.Gf(J,7),s.Gf(X,7),s.Gf(K,7),s.Gf($,7)),2&t){let t;s.iGM(t=s.CRH())&&(e._rowOutlet=t.first),s.iGM(t=s.CRH())&&(e._headerRowOutlet=t.first),s.iGM(t=s.CRH())&&(e._footerRowOutlet=t.first),s.iGM(t=s.CRH())&&(e._noDataRowOutlet=t.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("cdk-table-fixed-layout",e.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},exportAs:["cdkTable"],features:[s._Bn([{provide:_,useExisting:t},{provide:r.k,useClass:r.yy},{provide:O,useClass:D},{provide:W,useValue:null}])],ngContentSelectors:b,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,e){1&t&&(s.F$t(y),s.Hsn(0),s.Hsn(1,1),s.GkF(2,0),s.GkF(3,1),s.GkF(4,2),s.GkF(5,3))},directives:[X,J,$,K],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),t})();function et(t,e){return t.concat(Array.from(e))}let it=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[l.Cl]]}),t})();var nt=i(1522),rt=i(5446),st=i(5868),ot=i(1681);const at=[[["caption"]],[["colgroup"],["col"]]],lt=["caption","colgroup, col"];let ct=(()=>{class t extends tt{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("mat-table-fixed-layout",e.fixedLayout)},exportAs:["matTable"],features:[s._Bn([{provide:r.k,useClass:r.yy},{provide:tt,useExisting:t},{provide:_,useExisting:t},{provide:O,useClass:D},{provide:W,useValue:null}]),s.qOj],ngContentSelectors:lt,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,e){1&t&&(s.F$t(at),s.Hsn(0),s.Hsn(1,1),s.GkF(2,0),s.GkF(3,1),s.GkF(4,2),s.GkF(5,3))},directives:[X,J,$,K],styles:['mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-row::after,mat-header-row::after,mat-footer-row::after{display:inline-block;min-height:inherit;content:""}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:-webkit-sticky !important;position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}\n'],encapsulation:2}),t})(),ht=(()=>{class t extends w{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["","matCellDef",""]],features:[s._Bn([{provide:w,useExisting:t}]),s.qOj]}),t})(),ut=(()=>{class t extends x{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["","matHeaderCellDef",""]],features:[s._Bn([{provide:x,useExisting:t}]),s.qOj]}),t})(),dt=(()=>{class t extends C{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["","matFooterCellDef",""]],features:[s._Bn([{provide:C,useExisting:t}]),s.qOj]}),t})(),pt=(()=>{class t extends E{get name(){return this._name}set name(t){this._setNameInput(t)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[s._Bn([{provide:E,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),s.qOj]}),t})(),ft=(()=>{class t extends T{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[s.qOj]}),t})(),mt=(()=>{class t extends M{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:["role","gridcell",1,"mat-footer-cell"],features:[s.qOj]}),t})(),gt=(()=>{class t extends L{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[s.qOj]}),t})(),yt=(()=>{class t extends F{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[s._Bn([{provide:F,useExisting:t}]),s.qOj]}),t})(),bt=(()=>{class t extends U{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[s._Bn([{provide:U,useExisting:t}]),s.qOj]}),t})(),vt=(()=>{class t extends q{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[s._Bn([{provide:q,useExisting:t}]),s.qOj]}),t})(),_t=(()=>{class t extends H{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[s._Bn([{provide:H,useExisting:t}]),s.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&s.GkF(0,0)},directives:[z],encapsulation:2}),t})(),wt=(()=>{class t extends Y{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-footer-row"],exportAs:["matFooterRow"],features:[s._Bn([{provide:Y,useExisting:t}]),s.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&s.GkF(0,0)},directives:[z],encapsulation:2}),t})(),xt=(()=>{class t extends G{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[s._Bn([{provide:G,useExisting:t}]),s.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&s.GkF(0,0)},directives:[z],encapsulation:2}),t})(),Ct=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[it,nt.BQ],nt.BQ]}),t})();class At extends r.o2{constructor(t=[]){super(),this._renderData=new d.X([]),this._filter=new d.X(""),this._internalPageChanges=new h.x,this._renderChangesSubscription=null,this.sortingDataAccessor=(t,e)=>{const i=t[e];if((0,n.t6)(i)){const t=Number(i);return t<9007199254740991?t:i}return i},this.sortData=(t,e)=>{const i=e.active,n=e.direction;return i&&""!=n?t.sort((t,e)=>{let r=this.sortingDataAccessor(t,i),s=this.sortingDataAccessor(e,i);const o=typeof r,a=typeof s;o!==a&&("number"===o&&(r+=""),"number"===a&&(s+=""));let l=0;return null!=r&&null!=s?r>s?l=1:r{const i=Object.keys(t).reduce((e,i)=>e+t[i]+"\u25ec","").toLowerCase(),n=e.trim().toLowerCase();return-1!=i.indexOf(n)},this._data=new d.X(t),this._updateChangeSubscription()}get data(){return this._data.value}set data(t){this._data.next(t),this._renderChangesSubscription||this._filterData(t)}get filter(){return this._filter.value}set filter(t){this._filter.next(t),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(t){this._sort=t,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(t){this._paginator=t,this._updateChangeSubscription()}_updateChangeSubscription(){var t;const e=this._sort?(0,rt.T)(this._sort.sortChange,this._sort.initialized):(0,f.of)(null),i=this._paginator?(0,rt.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,f.of)(null),n=(0,st.a)([this._data,this._filter]).pipe((0,ot.U)(([t])=>this._filterData(t))),r=(0,st.a)([n,e]).pipe((0,ot.U)(([t])=>this._orderData(t))),s=(0,st.a)([r,i]).pipe((0,ot.U)(([t])=>this._pageData(t)));null===(t=this._renderChangesSubscription)||void 0===t||t.unsubscribe(),this._renderChangesSubscription=s.subscribe(t=>this._renderData.next(t))}_filterData(t){return this.filteredData=null==this.filter||""===this.filter?t:t.filter(t=>this.filterPredicate(t,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(t){return this.sort?this.sortData(t.slice(),this.sort):t}_pageData(t){if(!this.paginator)return t;const e=this.paginator.pageIndex*this.paginator.pageSize;return t.slice(e,e+this.paginator.pageSize)}_updatePaginator(t){Promise.resolve().then(()=>{const e=this.paginator;if(e&&(e.length=t,e.pageIndex>0)){const t=Math.ceil(e.length/e.pageSize)-1||0,i=Math.min(e.pageIndex,t);i!==e.pageIndex&&(e.pageIndex=i,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var t;null===(t=this._renderChangesSubscription)||void 0===t||t.unsubscribe(),this._renderChangesSubscription=null}}class St extends At{}},5109:(t,e,i)=>{"use strict";i.d(e,{uX:()=>J,SP:()=>at,uD:()=>j,Nj:()=>_t,BU:()=>gt,Nh:()=>wt});var n=i(4621),r=i(6337),s=i(6899),o=i(1511),a=i(1572),l=i(1522),c=i(3490),h=i(9666),u=i(6042),d=i(5446),p=i(5960),f=i(2041),m=i(8431),g=i(709),y=i(1258),b=i(6424),v=i(9568),_=i(9861),w=i(1353),x=i(5842),C=i(2526),A=i(4894);function S(t,e){1&t&&a.Hsn(0)}const E=["*"];function k(t,e){}const T=function(t){return{animationDuration:t}},M=function(t,e){return{value:t,params:e}},L=["tabBodyWrapper"],I=["tabHeader"];function O(t,e){}function D(t,e){if(1&t&&a.YNc(0,O,0,0,"ng-template",9),2&t){const t=a.oxw().$implicit;a.Q6J("cdkPortalOutlet",t.templateLabel)}}function R(t,e){if(1&t&&a._uU(0),2&t){const t=a.oxw().$implicit;a.Oqu(t.textLabel)}}function N(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"div",6),a.NdJ("click",function(){const e=a.CHM(t),i=e.$implicit,n=e.index,r=a.oxw(),s=a.MAs(1);return r._handleClick(i,s,n)})("cdkFocusChange",function(e){const i=a.CHM(t).index;return a.oxw()._tabFocusChanged(e,i)}),a.TgZ(1,"div",7),a.YNc(2,D,1,1,"ng-template",8),a.YNc(3,R,1,1,"ng-template",8),a.qZA(),a.qZA()}if(2&t){const t=e.$implicit,i=e.index,n=a.oxw();a.ekj("mat-tab-label-active",n.selectedIndex==i),a.Q6J("id",n._getTabLabelId(i))("disabled",t.disabled)("matRippleDisabled",t.disabled||n.disableRipple),a.uIk("tabIndex",n._getTabIndex(t,i))("aria-posinset",i+1)("aria-setsize",n._tabs.length)("aria-controls",n._getTabContentId(i))("aria-selected",n.selectedIndex==i)("aria-label",t.ariaLabel||null)("aria-labelledby",!t.ariaLabel&&t.ariaLabelledby?t.ariaLabelledby:null),a.xp6(2),a.Q6J("ngIf",t.templateLabel),a.xp6(1),a.Q6J("ngIf",!t.templateLabel)}}function P(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"mat-tab-body",10),a.NdJ("_onCentered",function(){return a.CHM(t),a.oxw()._removeTabBodyWrapperHeight()})("_onCentering",function(e){return a.CHM(t),a.oxw()._setTabBodyWrapperHeight(e)}),a.qZA()}if(2&t){const t=e.$implicit,i=e.index,n=a.oxw();a.ekj("mat-tab-body-active",n.selectedIndex==i),a.Q6J("id",n._getTabContentId(i))("content",t.content)("position",t.position)("origin",t.origin)("animationDuration",n.animationDuration),a.uIk("aria-labelledby",n._getTabLabelId(i))}}const F=["tabListContainer"],Z=["tabList"],B=["nextPaginator"],U=["previousPaginator"],q=["mat-tab-nav-bar",""],z=new a.OlP("MatInkBarPositioner",{providedIn:"root",factory:function(){return t=>({left:t?(t.offsetLeft||0)+"px":"0",width:t?(t.offsetWidth||0)+"px":"0"})}});let H=(()=>{class t{constructor(t,e,i,n){this._elementRef=t,this._ngZone=e,this._inkBarPositioner=i,this._animationMode=n}alignToElement(t){this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._setStyles(t))}):this._setStyles(t)}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}_setStyles(t){const e=this._inkBarPositioner(t),i=this._elementRef.nativeElement;i.style.left=e.left,i.style.width=e.width}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(z),a.Y36(c.Qb,8))},t.\u0275dir=a.lG2({type:t,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(t,e){2&t&&a.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode)}}),t})();const Y=new a.OlP("MatTabContent"),G=new a.OlP("MatTabLabel");let j=(()=>{class t extends s.ig{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=a.n5z(t)))(i||t)}}(),t.\u0275dir=a.lG2({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[a._Bn([{provide:G,useExisting:t}]),a.qOj]}),t})();class V{}const Q=(0,l.Id)(V),W=new a.OlP("MAT_TAB_GROUP");let J=(()=>{class t extends Q{constructor(t,e){super(),this._viewContainerRef=t,this._closestTabGroup=e,this.textLabel="",this._contentPortal=null,this._stateChanges=new h.x,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(t){this._setTemplateLabelInput(t)}get content(){return this._contentPortal}ngOnChanges(t){(t.hasOwnProperty("textLabel")||t.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new s.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(t){t&&(this._templateLabel=t)}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.s_b),a.Y36(W,8))},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-tab"]],contentQueries:function(t,e,i){if(1&t&&(a.Suo(i,G,5),a.Suo(i,Y,7,a.Rgc)),2&t){let t;a.iGM(t=a.CRH())&&(e.templateLabel=t.first),a.iGM(t=a.CRH())&&(e._explicitContent=t.first)}},viewQuery:function(t,e){if(1&t&&a.Gf(a.Rgc,7),2&t){let t;a.iGM(t=a.CRH())&&(e._implicitContent=t.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[a.qOj,a.TTD],ngContentSelectors:E,decls:1,vars:0,template:function(t,e){1&t&&(a.F$t(),a.YNc(0,S,1,0,"ng-template"))},encapsulation:2}),t})();const X={translateTab:(0,g.X$)("translateTab",[(0,g.SB)("center, void, left-origin-center, right-origin-center",(0,g.oB)({transform:"none"})),(0,g.SB)("left",(0,g.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),(0,g.SB)("right",(0,g.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),(0,g.eR)("* => left, * => right, left => center, right => center",(0,g.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,g.eR)("void => left-origin-center",[(0,g.oB)({transform:"translate3d(-100%, 0, 0)"}),(0,g.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,g.eR)("void => right-origin-center",[(0,g.oB)({transform:"translate3d(100%, 0, 0)"}),(0,g.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let K=(()=>{class t extends s.Pl{constructor(t,e,i,n){super(t,e,n),this._host=i,this._centeringSub=u.w0.EMPTY,this._leavingSub=u.w0.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,y.O)(this._host._isCenterPosition(this._host._position))).subscribe(t=>{t&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a._Vd),a.Y36(a.s_b),a.Y36((0,a.Gpc)(()=>tt)),a.Y36(o.K0))},t.\u0275dir=a.lG2({type:t,selectors:[["","matTabBodyHost",""]],features:[a.qOj]}),t})(),$=(()=>{class t{constructor(t,e,i){this._elementRef=t,this._dir=e,this._dirChangeSubscription=u.w0.EMPTY,this._translateTabComplete=new h.x,this._onCentering=new a.vpe,this._beforeCentering=new a.vpe,this._afterLeavingCenter=new a.vpe,this._onCentered=new a.vpe(!0),this.animationDuration="500ms",e&&(this._dirChangeSubscription=e.change.subscribe(t=>{this._computePositionAnimationState(t),i.markForCheck()})),this._translateTabComplete.pipe((0,b.x)((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{this._isCenterPosition(t.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(t.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(t){this._positionIndex=t,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(t){const e=this._isCenterPosition(t.toState);this._beforeCentering.emit(e),e&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(t){return"center"==t||"left-origin-center"==t||"right-origin-center"==t}_computePositionAnimationState(t=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==t?"left":"right":this._positionIndex>0?"ltr"==t?"right":"left":"center"}_computePositionFromOrigin(t){const e=this._getLayoutDirection();return"ltr"==e&&t<=0||"rtl"==e&&t>0?"left-origin-center":"right-origin-center"}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(C.Is,8),a.Y36(a.sBO))},t.\u0275dir=a.lG2({type:t,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),t})(),tt=(()=>{class t extends ${constructor(t,e,i){super(t,e,i)}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(C.Is,8),a.Y36(a.sBO))},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-tab-body"]],viewQuery:function(t,e){if(1&t&&a.Gf(s.Pl,5),2&t){let t;a.iGM(t=a.CRH())&&(e._portalHost=t.first)}},hostAttrs:[1,"mat-tab-body"],features:[a.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(t,e){1&t&&(a.TgZ(0,"div",0,1),a.NdJ("@translateTab.start",function(t){return e._onTranslateTabStarted(t)})("@translateTab.done",function(t){return e._translateTabComplete.next(t)}),a.YNc(2,k,0,0,"ng-template",2),a.qZA()),2&t&&a.Q6J("@translateTab",a.WLB(3,M,e._position,a.VKq(1,T,e.animationDuration)))},directives:[K],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[X.translateTab]}}),t})();const et=new a.OlP("MAT_TABS_CONFIG");let it=0;class nt{}class rt{constructor(t){this._elementRef=t}}const st=(0,l.pj)((0,l.Kr)(rt),"primary");let ot=(()=>{class t extends st{constructor(t,e,i,n){super(t),this._changeDetectorRef=e,this._animationMode=n,this._tabs=new a.n_E,this._indexToSelect=0,this._tabBodyWrapperHeight=0,this._tabsSubscription=u.w0.EMPTY,this._tabLabelSubscription=u.w0.EMPTY,this._selectedIndex=null,this.headerPosition="above",this.selectedIndexChange=new a.vpe,this.focusChange=new a.vpe,this.animationDone=new a.vpe,this.selectedTabChange=new a.vpe(!0),this._groupId=it++,this.animationDuration=i&&i.animationDuration?i.animationDuration:"500ms",this.disablePagination=!(!i||null==i.disablePagination)&&i.disablePagination,this.dynamicHeight=!(!i||null==i.dynamicHeight)&&i.dynamicHeight}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(t){this._dynamicHeight=(0,_.Ig)(t)}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){this._indexToSelect=(0,_.su)(t,null)}get animationDuration(){return this._animationDuration}set animationDuration(t){this._animationDuration=/^\d+$/.test(t)?t+"ms":t}get backgroundColor(){return this._backgroundColor}set backgroundColor(t){const e=this._elementRef.nativeElement;e.classList.remove(`mat-background-${this.backgroundColor}`),t&&e.classList.add(`mat-background-${t}`),this._backgroundColor=t}ngAfterContentChecked(){const t=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=t){const e=null==this._selectedIndex;if(!e){this.selectedTabChange.emit(this._createChangeEvent(t));const e=this._tabBodyWrapper.nativeElement;e.style.minHeight=e.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((e,i)=>e.isActive=i===t),e||(this.selectedIndexChange.emit(t),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((e,i)=>{e.position=i-t,null==this._selectedIndex||0!=e.position||e.origin||(e.origin=t-this._selectedIndex)}),this._selectedIndex!==t&&(this._selectedIndex=t,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{if(this._clampTabIndex(this._indexToSelect)===this._selectedIndex){const t=this._tabs.toArray();for(let e=0;e{this._tabs.reset(t.filter(t=>t._closestTabGroup===this||!t._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}focusTab(t){const e=this._tabHeader;e&&(e.focusIndex=t)}_focusChanged(t){this.focusChange.emit(this._createChangeEvent(t))}_createChangeEvent(t){const e=new nt;return e.index=t,this._tabs&&this._tabs.length&&(e.tab=this._tabs.toArray()[t]),e}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,d.T)(...this._tabs.map(t=>t._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(t){return Math.min(this._tabs.length-1,Math.max(t||0,0))}_getTabLabelId(t){return`mat-tab-label-${this._groupId}-${t}`}_getTabContentId(t){return`mat-tab-content-${this._groupId}-${t}`}_setTabBodyWrapperHeight(t){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const e=this._tabBodyWrapper.nativeElement;e.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(e.style.height=t+"px")}_removeTabBodyWrapperHeight(){const t=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=t.clientHeight,t.style.height="",this.animationDone.emit()}_handleClick(t,e,i){t.disabled||(this.selectedIndex=e.focusIndex=i)}_getTabIndex(t,e){return t.disabled?null:this.selectedIndex===e?0:-1}_tabFocusChanged(t,e){t&&(this._tabHeader.focusIndex=e)}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(et,8),a.Y36(c.Qb,8))},t.\u0275dir=a.lG2({type:t,inputs:{headerPosition:"headerPosition",animationDuration:"animationDuration",disablePagination:"disablePagination",dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[a.qOj]}),t})(),at=(()=>{class t extends ot{constructor(t,e,i,n){super(t,e,i,n)}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(et,8),a.Y36(c.Qb,8))},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-tab-group"]],contentQueries:function(t,e,i){if(1&t&&a.Suo(i,J,5),2&t){let t;a.iGM(t=a.CRH())&&(e._allTabs=t)}},viewQuery:function(t,e){if(1&t&&(a.Gf(L,5),a.Gf(I,5)),2&t){let t;a.iGM(t=a.CRH())&&(e._tabBodyWrapper=t.first),a.iGM(t=a.CRH())&&(e._tabHeader=t.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(t,e){2&t&&a.ekj("mat-tab-group-dynamic-height",e.dynamicHeight)("mat-tab-group-inverted-header","below"===e.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[a._Bn([{provide:W,useExisting:t}]),a.qOj],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(t,e){1&t&&(a.TgZ(0,"mat-tab-header",0,1),a.NdJ("indexFocused",function(t){return e._focusChanged(t)})("selectFocusedIndex",function(t){return e.selectedIndex=t}),a.YNc(2,N,4,14,"div",2),a.qZA(),a.TgZ(3,"div",3,4),a.YNc(5,P,1,8,"mat-tab-body",5),a.qZA()),2&t&&(a.Q6J("selectedIndex",e.selectedIndex||0)("disableRipple",e.disableRipple)("disablePagination",e.disablePagination),a.xp6(2),a.Q6J("ngForOf",e._tabs),a.xp6(1),a.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode),a.xp6(2),a.Q6J("ngForOf",e._tabs))},directives:function(){return[ft,o.sg,ht,l.wG,n.kH,o.O5,s.Pl,tt]},styles:[".mat-tab-group{display:flex;flex-direction:column}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),t})();class lt{}const ct=(0,l.Id)(lt);let ht=(()=>{class t extends ct{constructor(t){super(),this.elementRef=t}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq))},t.\u0275dir=a.lG2({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(t,e){2&t&&(a.uIk("aria-disabled",!!e.disabled),a.ekj("mat-tab-disabled",e.disabled))},inputs:{disabled:"disabled"},features:[a.qOj]}),t})();const ut=(0,w.i$)({passive:!0});let dt=(()=>{class t{constructor(t,e,i,n,r,s,o){this._elementRef=t,this._changeDetectorRef=e,this._viewportRuler=i,this._dir=n,this._ngZone=r,this._platform=s,this._animationMode=o,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new h.x,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new h.x,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new a.vpe,this.indexFocused=new a.vpe,r.runOutsideAngular(()=>{(0,p.R)(t.nativeElement,"mouseleave").pipe((0,v.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){t=(0,_.su)(t),this._selectedIndex!=t&&(this._selectedIndexChanged=!0,this._selectedIndex=t,this._keyManager&&this._keyManager.updateActiveItem(t))}ngAfterViewInit(){(0,p.R)(this._previousPaginator.nativeElement,"touchstart",ut).pipe((0,v.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,p.R)(this._nextPaginator.nativeElement,"touchstart",ut).pipe((0,v.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const t=this._dir?this._dir.change:(0,f.of)("ltr"),e=this._viewportRuler.change(150),i=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new n.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(i):i(),(0,d.T)(t,e,this._items.changes).pipe((0,v.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>Promise.resolve().then(i)),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe((0,v.R)(this._destroyed)).subscribe(t=>{this.indexFocused.emit(t),this._setTabFocus(t)})}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(t){if(!(0,x.Vb)(t))switch(t.keyCode){case x.K5:case x.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(t));break;default:this._keyManager.onKeydown(t)}}_onContentChanges(){const t=this._elementRef.nativeElement.textContent;t!==this._currentTextContent&&(this._currentTextContent=t||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(t){this._isValidIndex(t)&&this.focusIndex!==t&&this._keyManager&&this._keyManager.setActiveItem(t)}_isValidIndex(t){if(!this._items)return!0;const e=this._items?this._items.toArray()[t]:null;return!!e&&!e.disabled}_setTabFocus(t){if(this._showPaginationControls&&this._scrollToLabel(t),this._items&&this._items.length){this._items.toArray()[t].focus();const e=this._tabListContainer.nativeElement,i=this._getLayoutDirection();e.scrollLeft="ltr"==i?0:e.scrollWidth-e.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const t=this.scrollDistance,e="ltr"===this._getLayoutDirection()?-t:t;this._tabList.nativeElement.style.transform=`translateX(${Math.round(e)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(t){this._scrollTo(t)}_scrollHeader(t){return this._scrollTo(this._scrollDistance+("before"==t?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(t){this._stopInterval(),this._scrollHeader(t)}_scrollToLabel(t){if(this.disablePagination)return;const e=this._items?this._items.toArray()[t]:null;if(!e)return;const i=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:n,offsetWidth:r}=e.elementRef.nativeElement;let s,o;"ltr"==this._getLayoutDirection()?(s=n,o=s+r):(o=this._tabList.nativeElement.offsetWidth-n,s=o-r);const a=this.scrollDistance,l=this.scrollDistance+i;sl&&(this.scrollDistance+=o-l+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const t=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;t||(this.scrollDistance=0),t!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=t}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const t=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,e=t?t.elementRef.nativeElement:null;e?this._inkBar.alignToElement(e):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(t,e){e&&null!=e.button&&0!==e.button||(this._stopInterval(),(0,m.H)(650,100).pipe((0,v.R)((0,d.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:e,distance:i}=this._scrollHeader(t);(0===i||i>=e)&&this._stopInterval()}))}_scrollTo(t){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const e=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(e,t)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:e,distance:this._scrollDistance}}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(A.rL),a.Y36(C.Is,8),a.Y36(a.R0b),a.Y36(w.t4),a.Y36(c.Qb,8))},t.\u0275dir=a.lG2({type:t,inputs:{disablePagination:"disablePagination"}}),t})(),pt=(()=>{class t extends dt{constructor(t,e,i,n,r,s,o){super(t,e,i,n,r,s,o),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=(0,_.Ig)(t)}_itemSelected(t){t.preventDefault()}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(A.rL),a.Y36(C.Is,8),a.Y36(a.R0b),a.Y36(w.t4),a.Y36(c.Qb,8))},t.\u0275dir=a.lG2({type:t,inputs:{disableRipple:"disableRipple"},features:[a.qOj]}),t})(),ft=(()=>{class t extends pt{constructor(t,e,i,n,r,s,o){super(t,e,i,n,r,s,o)}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(A.rL),a.Y36(C.Is,8),a.Y36(a.R0b),a.Y36(w.t4),a.Y36(c.Qb,8))},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-tab-header"]],contentQueries:function(t,e,i){if(1&t&&a.Suo(i,ht,4),2&t){let t;a.iGM(t=a.CRH())&&(e._items=t)}},viewQuery:function(t,e){if(1&t&&(a.Gf(H,7),a.Gf(F,7),a.Gf(Z,7),a.Gf(B,5),a.Gf(U,5)),2&t){let t;a.iGM(t=a.CRH())&&(e._inkBar=t.first),a.iGM(t=a.CRH())&&(e._tabListContainer=t.first),a.iGM(t=a.CRH())&&(e._tabList=t.first),a.iGM(t=a.CRH())&&(e._nextPaginator=t.first),a.iGM(t=a.CRH())&&(e._previousPaginator=t.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(t,e){2&t&&a.ekj("mat-tab-header-pagination-controls-enabled",e._showPaginationControls)("mat-tab-header-rtl","rtl"==e._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[a.qOj],ngContentSelectors:E,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(t,e){1&t&&(a.F$t(),a.TgZ(0,"div",0,1),a.NdJ("click",function(){return e._handlePaginatorClick("before")})("mousedown",function(t){return e._handlePaginatorPress("before",t)})("touchend",function(){return e._stopInterval()}),a._UZ(2,"div",2),a.qZA(),a.TgZ(3,"div",3,4),a.NdJ("keydown",function(t){return e._handleKeydown(t)}),a.TgZ(5,"div",5,6),a.NdJ("cdkObserveContent",function(){return e._onContentChanges()}),a.TgZ(7,"div",7),a.Hsn(8),a.qZA(),a._UZ(9,"mat-ink-bar"),a.qZA(),a.qZA(),a.TgZ(10,"div",8,9),a.NdJ("mousedown",function(t){return e._handlePaginatorPress("after",t)})("click",function(){return e._handlePaginatorClick("after")})("touchend",function(){return e._stopInterval()}),a._UZ(12,"div",2),a.qZA()),2&t&&(a.ekj("mat-tab-header-pagination-disabled",e._disableScrollBefore),a.Q6J("matRippleDisabled",e._disableScrollBefore||e.disableRipple),a.xp6(5),a.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode),a.xp6(5),a.ekj("mat-tab-header-pagination-disabled",e._disableScrollAfter),a.Q6J("matRippleDisabled",e._disableScrollAfter||e.disableRipple))},directives:[l.wG,r.wD,H],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n'],encapsulation:2}),t})(),mt=(()=>{class t extends dt{constructor(t,e,i,n,r,s,o){super(t,n,r,e,i,s,o),this._disableRipple=!1,this.color="primary"}get backgroundColor(){return this._backgroundColor}set backgroundColor(t){const e=this._elementRef.nativeElement.classList;e.remove(`mat-background-${this.backgroundColor}`),t&&e.add(`mat-background-${t}`),this._backgroundColor=t}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=(0,_.Ig)(t)}_itemSelected(){}ngAfterContentInit(){this._items.changes.pipe((0,y.O)(null),(0,v.R)(this._destroyed)).subscribe(()=>{this.updateActiveLink()}),super.ngAfterContentInit()}updateActiveLink(){if(!this._items)return;const t=this._items.toArray();for(let e=0;e{class t extends mt{constructor(t,e,i,n,r,s,o){super(t,e,i,n,r,s,o)}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(C.Is,8),a.Y36(a.R0b),a.Y36(a.sBO),a.Y36(A.rL),a.Y36(w.t4),a.Y36(c.Qb,8))},t.\u0275cmp=a.Xpm({type:t,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(t,e,i){if(1&t&&a.Suo(i,_t,5),2&t){let t;a.iGM(t=a.CRH())&&(e._items=t)}},viewQuery:function(t,e){if(1&t&&(a.Gf(H,7),a.Gf(F,7),a.Gf(Z,7),a.Gf(B,5),a.Gf(U,5)),2&t){let t;a.iGM(t=a.CRH())&&(e._inkBar=t.first),a.iGM(t=a.CRH())&&(e._tabListContainer=t.first),a.iGM(t=a.CRH())&&(e._tabList=t.first),a.iGM(t=a.CRH())&&(e._nextPaginator=t.first),a.iGM(t=a.CRH())&&(e._previousPaginator=t.first)}},hostAttrs:[1,"mat-tab-nav-bar","mat-tab-header"],hostVars:10,hostBindings:function(t,e){2&t&&a.ekj("mat-tab-header-pagination-controls-enabled",e._showPaginationControls)("mat-tab-header-rtl","rtl"==e._getLayoutDirection())("mat-primary","warn"!==e.color&&"accent"!==e.color)("mat-accent","accent"===e.color)("mat-warn","warn"===e.color)},inputs:{color:"color"},exportAs:["matTabNavBar","matTabNav"],features:[a.qOj],attrs:q,ngContentSelectors:E,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-link-container",3,"keydown"],["tabListContainer",""],[1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-links"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(t,e){1&t&&(a.F$t(),a.TgZ(0,"div",0,1),a.NdJ("click",function(){return e._handlePaginatorClick("before")})("mousedown",function(t){return e._handlePaginatorPress("before",t)})("touchend",function(){return e._stopInterval()}),a._UZ(2,"div",2),a.qZA(),a.TgZ(3,"div",3,4),a.NdJ("keydown",function(t){return e._handleKeydown(t)}),a.TgZ(5,"div",5,6),a.NdJ("cdkObserveContent",function(){return e._onContentChanges()}),a.TgZ(7,"div",7),a.Hsn(8),a.qZA(),a._UZ(9,"mat-ink-bar"),a.qZA(),a.qZA(),a.TgZ(10,"div",8,9),a.NdJ("mousedown",function(t){return e._handlePaginatorPress("after",t)})("click",function(){return e._handlePaginatorClick("after")})("touchend",function(){return e._stopInterval()}),a._UZ(12,"div",2),a.qZA()),2&t&&(a.ekj("mat-tab-header-pagination-disabled",e._disableScrollBefore),a.Q6J("matRippleDisabled",e._disableScrollBefore||e.disableRipple),a.xp6(5),a.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode),a.xp6(5),a.ekj("mat-tab-header-pagination-disabled",e._disableScrollAfter),a.Q6J("matRippleDisabled",e._disableScrollAfter||e.disableRipple))},directives:[l.wG,r.wD,H],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-links{display:flex}[mat-align-tabs=center]>.mat-tab-link-container .mat-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-tab-link-container .mat-tab-links{justify-content:flex-end}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-link{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;vertical-align:top;text-decoration:none;position:relative;overflow:hidden;-webkit-tap-highlight-color:transparent}.mat-tab-link:focus{outline:none}.mat-tab-link:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-link:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-link.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-link.mat-tab-disabled{opacity:.5}.mat-tab-link .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-link{opacity:1}[mat-stretch-tabs] .mat-tab-link{flex-basis:0;flex-grow:1}.mat-tab-link.mat-tab-disabled{pointer-events:none}@media(max-width: 599px){.mat-tab-link{min-width:72px}}\n'],encapsulation:2}),t})();class yt{}const bt=(0,l.sb)((0,l.Kr)((0,l.Id)(yt)));let vt=(()=>{class t extends bt{constructor(t,e,i,n,r,s){super(),this._tabNavBar=t,this.elementRef=e,this._focusMonitor=r,this._isActive=!1,this.rippleConfig=i||{},this.tabIndex=parseInt(n)||0,"NoopAnimations"===s&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0})}get active(){return this._isActive}set active(t){(0,_.Ig)(t)!==this._isActive&&(this._isActive=t,this._tabNavBar.updateActiveLink())}get rippleDisabled(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}focus(){this.elementRef.nativeElement.focus()}ngAfterViewInit(){this._focusMonitor.monitor(this.elementRef)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this.elementRef)}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(mt),a.Y36(a.SBq),a.Y36(l.Y2,8),a.$8M("tabindex"),a.Y36(n.tE),a.Y36(c.Qb,8))},t.\u0275dir=a.lG2({type:t,inputs:{active:"active"},features:[a.qOj]}),t})(),_t=(()=>{class t extends vt{constructor(t,e,i,n,r,s,o,a){super(t,e,r,s,o,a),this._tabLinkRipple=new l.IR(this,i,e,n),this._tabLinkRipple.setupTriggerEvents(e.nativeElement)}ngOnDestroy(){super.ngOnDestroy(),this._tabLinkRipple._removeTriggerEvents()}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(gt),a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(w.t4),a.Y36(l.Y2,8),a.$8M("tabindex"),a.Y36(n.tE),a.Y36(c.Qb,8))},t.\u0275dir=a.lG2({type:t,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:7,hostBindings:function(t,e){2&t&&(a.uIk("aria-current",e.active?"page":null)("aria-disabled",e.disabled)("tabIndex",e.tabIndex),a.ekj("mat-tab-disabled",e.disabled)("mat-tab-label-active",e.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[a.qOj]}),t})(),wt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=a.oAB({type:t}),t.\u0275inj=a.cJS({imports:[[o.ez,l.BQ,s.eL,l.si,r.Q8,n.rt],l.BQ]}),t})()},3104:(t,e,i)=>{"use strict";i.d(e,{Ye:()=>d,g0:()=>p});var n=i(1522),r=i(1511),s=i(1572),o=i(1353);const a=["*",[["mat-toolbar-row"]]],l=["*","mat-toolbar-row"];class c{constructor(t){this._elementRef=t}}const h=(0,n.pj)(c);let u=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),t})(),d=(()=>{class t extends h{constructor(t,e,i){super(t),this._platform=e,this._document=i}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(o.t4),s.Y36(r.K0))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-toolbar"]],contentQueries:function(t,e,i){if(1&t&&s.Suo(i,u,5),2&t){let t;s.iGM(t=s.CRH())&&(e._toolbarRows=t)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(t,e){2&t&&s.ekj("mat-toolbar-multiple-rows",e._toolbarRows.length>0)("mat-toolbar-single-row",0===e._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[s.qOj],ngContentSelectors:l,decls:2,vars:0,template:function(t,e){1&t&&(s.F$t(a),s.Hsn(0),s.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),t})(),p=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[n.BQ],n.BQ]}),t})()},6828:(t,e,i)=>{"use strict";i.d(e,{gM:()=>S,AV:()=>T});var n=i(369),r=i(4621),s=i(1511),o=i(1572),a=i(1522),l=i(4894),c=i(9861),h=i(5842),u=i(72),d=i(1353),p=i(6899),f=i(9666),m=i(9568),g=i(9056),y=i(709),b=i(2526);const v={tooltipState:(0,y.X$)("state",[(0,y.SB)("initial, void, hidden",(0,y.oB)({opacity:0,transform:"scale(0)"})),(0,y.SB)("visible",(0,y.oB)({transform:"scale(1)"})),(0,y.eR)("* => visible",(0,y.jt)("200ms cubic-bezier(0, 0, 0.2, 1)",(0,y.F4)([(0,y.oB)({opacity:0,transform:"scale(0)",offset:0}),(0,y.oB)({opacity:.5,transform:"scale(0.99)",offset:.5}),(0,y.oB)({opacity:1,transform:"scale(1)",offset:1})]))),(0,y.eR)("* => hidden",(0,y.jt)("100ms cubic-bezier(0, 0, 0.2, 1)",(0,y.oB)({opacity:0})))])},_=(0,d.i$)({passive:!0}),w=new o.OlP("mat-tooltip-scroll-strategy"),x={provide:w,deps:[n.aV],useFactory:function(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},C=new o.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let A=(()=>{class t{constructor(t,e,i,n,r,s,o,a,l,c,u,d){this._overlay=t,this._elementRef=e,this._scrollDispatcher=i,this._viewContainerRef=n,this._ngZone=r,this._platform=s,this._ariaDescriber=o,this._focusMonitor=a,this._dir=c,this._defaultOptions=u,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new f.x,this._handleKeydown=t=>{this._isTooltipVisible()&&t.keyCode===h.hY&&!(0,h.Vb)(t)&&(t.preventDefault(),t.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=l,this._document=d,u&&(u.position&&(this.position=u.position),u.touchGestures&&(this.touchGestures=u.touchGestures)),c.change.pipe((0,m.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),r.runOutsideAngular(()=>{e.nativeElement.addEventListener("keydown",this._handleKeydown)})}get position(){return this._position}set position(t){var e;t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(e=this._tooltipInstance)||void 0===e||e.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(t){this._disabled=(0,c.Ig)(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get message(){return this._message}set message(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=t?String(t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,m.R)(this._destroyed)).subscribe(t=>{t?"keyboard"===t&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),t.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(([e,i])=>{t.removeEventListener(e,i,_)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const e=this._createOverlay();this._detach(),this._portal=this._portal||new p.C5(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=e.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe((0,m.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}hide(t=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(t)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),e=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(t);return e.positionChanges.pipe((0,m.R)(this._destroyed)).subscribe(t=>{this._updateCurrentPositionClass(t.connectionPair),this._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:e,panelClass:`${this._cssClassPrefix}-tooltip-panel`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,m.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(t){const e=t.getConfig().positionStrategy,i=this._getOrigin(),n=this._getOverlayPosition();e.withPositions([this._addOffset(Object.assign(Object.assign({},i.main),n.main)),this._addOffset(Object.assign(Object.assign({},i.fallback),n.fallback))])}_addOffset(t){return t}_getOrigin(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let i;"above"==e||"below"==e?i={originX:"center",originY:"above"==e?"top":"bottom"}:"before"==e||"left"==e&&t||"right"==e&&!t?i={originX:"start",originY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(i={originX:"end",originY:"center"});const{x:n,y:r}=this._invertPosition(i.originX,i.originY);return{main:i,fallback:{originX:n,originY:r}}}_getOverlayPosition(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let i;"above"==e?i={overlayX:"center",overlayY:"bottom"}:"below"==e?i={overlayX:"center",overlayY:"top"}:"before"==e||"left"==e&&t||"right"==e&&!t?i={overlayX:"end",overlayY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(i={overlayX:"start",overlayY:"center"});const{x:n,y:r}=this._invertPosition(i.overlayX,i.overlayY);return{main:i,fallback:{overlayX:n,overlayY:r}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,g.q)(1),(0,m.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,e){return"above"===this.position||"below"===this.position?"top"===e?e="bottom":"bottom"===e&&(e="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:e}}_updateCurrentPositionClass(t){const{overlayY:e,originX:i,originY:n}=t;let r;if(r="center"===e?this._dir&&"rtl"===this._dir.value?"end"===i?"left":"right":"start"===i?"left":"right":"bottom"===e&&"top"===n?"above":"below",r!==this._currentPosition){const t=this._overlayRef;if(t){const e=`${this._cssClassPrefix}-tooltip-panel-`;t.removePanelClass(e+this._currentPosition),t.addPanelClass(e+r)}this._currentPosition=r}}_setupPointerEnterEventsIfNeeded(){!this._disabled&&this.message&&this._viewInitialized&&!this._passiveListeners.length&&(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const t=[];if(this._platformSupportsMouseEvents())t.push(["mouseleave",()=>this.hide()],["wheel",t=>this._wheelListener(t)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const e=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};t.push(["touchend",e],["touchcancel",e])}this._addListeners(t),this._passiveListeners.push(...t)}_addListeners(t){t.forEach(([t,e])=>{this._elementRef.nativeElement.addEventListener(t,e,_)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(t){if(this._isTooltipVisible()){const e=this._document.elementFromPoint(t.clientX,t.clientY),i=this._elementRef.nativeElement;e===i||i.contains(e)||this.hide()}}_disableNativeGesturesIfNecessary(){const t=this.touchGestures;if("off"!==t){const e=this._elementRef.nativeElement,i=e.style;("on"===t||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName)&&(i.userSelect=i.msUserSelect=i.webkitUserSelect=i.MozUserSelect="none"),"on"!==t&&e.draggable||(i.webkitUserDrag="none"),i.touchAction="none",i.webkitTapHighlightColor="transparent"}}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(n.aV),o.Y36(o.SBq),o.Y36(l.mF),o.Y36(o.s_b),o.Y36(o.R0b),o.Y36(d.t4),o.Y36(r.$s),o.Y36(r.tE),o.Y36(void 0),o.Y36(b.Is),o.Y36(void 0),o.Y36(s.K0))},t.\u0275dir=o.lG2({type:t,inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),t})(),S=(()=>{class t extends A{constructor(t,e,i,n,r,s,o,a,l,c,h,u){super(t,e,i,n,r,s,o,a,l,c,h,u),this._tooltipComponent=k}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(n.aV),o.Y36(o.SBq),o.Y36(l.mF),o.Y36(o.s_b),o.Y36(o.R0b),o.Y36(d.t4),o.Y36(r.$s),o.Y36(r.tE),o.Y36(w),o.Y36(b.Is,8),o.Y36(C,8),o.Y36(s.K0))},t.\u0275dir=o.lG2({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[o.qOj]}),t})(),E=(()=>{class t{constructor(t){this._changeDetectorRef=t,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new f.x}show(t){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._markForCheck()},t)}hide(t){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},t)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(t){const e=t.toState;"hidden"!==e||this.isVisible()||this._onHide.next(),"visible"!==e&&"hidden"!==e||(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.sBO))},t.\u0275dir=o.lG2({type:t}),t})(),k=(()=>{class t extends E{constructor(t,e){super(t),this._breakpointObserver=e,this._isHandset=this._breakpointObserver.observe(u.u3.Handset)}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.sBO),o.Y36(u.Yg))},t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){1&t&&o.NdJ("click",function(){return e._handleBodyInteraction()},!1,o.pYS)("auxclick",function(){return e._handleBodyInteraction()},!1,o.pYS),2&t&&o.Udp("zoom","visible"===e._visibility?1:null)},features:[o.qOj],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){if(1&t&&(o.TgZ(0,"div",0),o.NdJ("@state.start",function(){return e._animationStart()})("@state.done",function(t){return e._animationDone(t)}),o.ALo(1,"async"),o._uU(2),o.qZA()),2&t){let t;o.ekj("mat-tooltip-handset",null==(t=o.lcZ(1,5,e._isHandset))?null:t.matches),o.Q6J("ngClass",e.tooltipClass)("@state",e._visibility),o.xp6(2),o.Oqu(e.message)}},directives:[s.mk],pipes:[s.Ov],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[v.tooltipState]},changeDetection:0}),t})(),T=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({providers:[x],imports:[[r.rt,s.ez,n.U8,a.BQ],a.BQ,l.ZD]}),t})()},1010:(t,e,i)=>{"use strict";i.d(e,{GZ:()=>f,gi:()=>g,dp:()=>b,WX:()=>v,uo:()=>d,fQ:()=>p,Ar:()=>m,eu:()=>y});var n=i(1709),r=i(1522),s=i(9861),o=i(4230),a=i(7425),l=i(5446),c=i(1681),h=i(1572);const u=(0,r.sb)((0,r.Id)(n.Hs));let d=(()=>{class t extends u{constructor(t,e,i){super(t,e),this._elementRef=t,this._tree=e,this.tabIndex=Number(i)||0,this._elementRef.nativeElement.classList.add("mat-tree-node")}ngOnInit(){super.ngOnInit()}ngDoCheck(){super.ngDoCheck()}ngOnDestroy(){super.ngOnDestroy()}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(h.SBq),h.Y36(n._0),h.$8M("tabindex"))},t.\u0275dir=h.lG2({type:t,selectors:[["mat-tree-node"]],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["matTreeNode"],features:[h._Bn([{provide:n.Hs,useExisting:t}]),h.qOj]}),t})(),p=(()=>{class t extends n.rO{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=h.n5z(t)))(i||t)}}(),t.\u0275dir=h.lG2({type:t,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[h._Bn([{provide:n.rO,useExisting:t}]),h.qOj]}),t})(),f=(()=>{class t extends n.Xx{constructor(t,e,i,n){super(t,e,i),this._elementRef=t,this._tree=e,this._differs=i,this._disabled=!1,this.tabIndex=Number(n)||0,this._elementRef.nativeElement.classList.add("mat-nested-tree-node")}get disabled(){return this._disabled}set disabled(t){this._disabled=(0,s.Ig)(t)}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(t){this._tabIndex=null!=t?t:0}ngOnInit(){super.ngOnInit()}ngDoCheck(){super.ngDoCheck()}ngAfterContentInit(){super.ngAfterContentInit()}ngOnDestroy(){super.ngOnDestroy()}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(h.SBq),h.Y36(n._0),h.Y36(h.ZZ4),h.$8M("tabindex"))},t.\u0275dir=h.lG2({type:t,selectors:[["mat-nested-tree-node"]],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex",node:["matNestedTreeNode","node"]},exportAs:["matNestedTreeNode"],features:[h._Bn([{provide:n.Xx,useExisting:t},{provide:n.Hs,useExisting:t},{provide:n.HI,useExisting:t}]),h.qOj]}),t})(),m=(()=>{class t{constructor(t,e){this.viewContainer=t,this._node=e}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(h.s_b),h.Y36(n.HI,8))},t.\u0275dir=h.lG2({type:t,selectors:[["","matTreeNodeOutlet",""]],features:[h._Bn([{provide:n.cu,useExisting:t}])]}),t})(),g=(()=>{class t extends n._0{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=h.n5z(t)))(i||t)}}(),t.\u0275cmp=h.Xpm({type:t,selectors:[["mat-tree"]],viewQuery:function(t,e){if(1&t&&h.Gf(m,7),2&t){let t;h.iGM(t=h.CRH())&&(e._nodeOutlet=t.first)}},hostAttrs:["role","tree",1,"mat-tree","cdk-tree"],exportAs:["matTree"],features:[h._Bn([{provide:n._0,useExisting:t}]),h.qOj],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(t,e){1&t&&h.GkF(0,0)},directives:[m],styles:[".mat-tree{display:block}.mat-tree-node{display:flex;align-items:center;flex:1;word-wrap:break-word}.mat-nested-tree-node{border-bottom-width:0}\n"],encapsulation:2}),t})(),y=(()=>{class t extends n.Ud{get recursive(){return this._recursive}set recursive(t){this._recursive=(0,s.Ig)(t)}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=h.n5z(t)))(i||t)}}(),t.\u0275dir=h.lG2({type:t,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[h._Bn([{provide:n.Ud,useExisting:t}]),h.qOj]}),t})(),b=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=h.oAB({type:t}),t.\u0275inj=h.cJS({imports:[[n.nZ,r.BQ],r.BQ]}),t})();class v extends o.o2{constructor(){super(...arguments),this._data=new a.X([])}get data(){return this._data.value}set data(t){this._data.next(t)}connect(t){return(0,l.T)(t.viewChange,this._data).pipe((0,c.U)(()=>this.data))}disconnect(){}}},3490:(t,e,i)=>{"use strict";i.d(e,{Qb:()=>Oe,PW:()=>Pe});var n=i(1572),r=i(269),s=i(709);function o(){return"undefined"!=typeof window&&void 0!==window.document}function a(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function l(t){switch(t.length){case 0:return new s.ZN;case 1:return t[0];default:return new s.ZE(t)}}function c(t,e,i,n,r={},o={}){const a=[],l=[];let c=-1,h=null;if(n.forEach(t=>{const i=t.offset,n=i==c,u=n&&h||{};Object.keys(t).forEach(i=>{let n=i,l=t[i];if("offset"!==i)switch(n=e.normalizePropertyName(n,a),l){case s.k1:l=r[i];break;case s.l3:l=o[i];break;default:l=e.normalizeStyleValue(i,n,l,a)}u[n]=l}),n||l.push(u),h=u,c=i}),a.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${a.join(t)}`)}return l}function h(t,e,i,n){switch(e){case"start":t.onStart(()=>n(i&&u(i,"start",t)));break;case"done":t.onDone(()=>n(i&&u(i,"done",t)));break;case"destroy":t.onDestroy(()=>n(i&&u(i,"destroy",t)))}}function u(t,e,i){const n=i.totalTime,r=d(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==n?t.totalTime:n,!!i.disabled),s=t._data;return null!=s&&(r._data=s),r}function d(t,e,i,n,r="",s=0,o){return{element:t,triggerName:e,fromState:i,toState:n,phaseName:r,totalTime:s,disabled:!!o}}function p(t,e,i){let n;return t instanceof Map?(n=t.get(e),n||t.set(e,n=i)):(n=t[e],n||(n=t[e]=i)),n}function f(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let m=(t,e)=>!1,g=(t,e)=>!1,y=(t,e,i)=>[];const b=a();(b||"undefined"!=typeof Element)&&(m=o()?(t,e)=>{for(;e&&e!==document.documentElement;){if(e===t)return!0;e=e.parentNode||e.host}return!1}:(t,e)=>t.contains(e),g=(()=>{if(b||Element.prototype.matches)return(t,e)=>t.matches(e);{const t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?(t,i)=>e.apply(t,[i]):g}})(),y=(t,e,i)=>{let n=[];if(i){const i=t.querySelectorAll(e);for(let t=0;t{const n=i.replace(/([a-z])([A-Z])/g,"$1-$2");e[n]=t[i]}),e}let E=(()=>{class t{validateStyleProperty(t){return w(t)}matchesElement(t,e){return x(t,e)}containsElement(t,e){return C(t,e)}query(t,e,i){return A(t,e,i)}computeStyle(t,e,i){return i||""}animate(t,e,i,n,r,o=[],a){return new s.ZN(i,n)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})(),k=(()=>{class t{}return t.NOOP=new E,t})();const T="ng-enter",M="ng-leave",L="ng-trigger",I=".ng-trigger",O="ng-animating",D=".ng-animating";function R(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:N(parseFloat(e[1]),e[2])}function N(t,e){switch(e){case"s":return 1e3*t;default:return t}}function P(t,e,i){return t.hasOwnProperty("duration")?t:function(t,e,i){let n,r=0,s="";if("string"==typeof t){const i=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===i)return e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};n=N(parseFloat(i[1]),i[2]);const o=i[3];null!=o&&(r=N(parseFloat(o),i[4]));const a=i[5];a&&(s=a)}else n=t;if(!i){let i=!1,s=e.length;n<0&&(e.push("Duration values below 0 are not allowed for this animation step."),i=!0),r<0&&(e.push("Delay values below 0 are not allowed for this animation step."),i=!0),i&&e.splice(s,0,`The provided timing value "${t}" is invalid.`)}return{duration:n,delay:r,easing:s}}(t,e,i)}function F(t,e={}){return Object.keys(t).forEach(i=>{e[i]=t[i]}),e}function Z(t,e,i={}){if(e)for(let n in t)i[n]=t[n];else F(t,i);return i}function B(t,e,i){return i?e+":"+i+";":""}function U(t){let e="";for(let i=0;i{const r=W(n);i&&!i.hasOwnProperty(n)&&(i[n]=t.style[r]),t.style[r]=e[n]}),a()&&U(t))}function z(t,e){t.style&&(Object.keys(e).forEach(e=>{const i=W(e);t.style[i]=""}),a()&&U(t))}function H(t){return Array.isArray(t)?1==t.length?t[0]:(0,s.vP)(t):t}const Y=new RegExp("{{\\s*(.+?)\\s*}}","g");function G(t){let e=[];if("string"==typeof t){let i;for(;i=Y.exec(t);)e.push(i[1]);Y.lastIndex=0}return e}function j(t,e,i){const n=t.toString(),r=n.replace(Y,(t,n)=>{let r=e[n];return e.hasOwnProperty(n)||(i.push(`Please provide a value for the animation param ${n}`),r=""),r.toString()});return r==n?t:r}function V(t){const e=[];let i=t.next();for(;!i.done;)e.push(i.value),i=t.next();return e}const Q=/-+([a-z0-9])/g;function W(t){return t.replace(Q,(...t)=>t[1].toUpperCase())}function J(t,e){return 0===t||0===e}function X(t,e,i){const n=Object.keys(i);if(n.length&&e.length){let s=e[0],o=[];if(n.forEach(t=>{s.hasOwnProperty(t)||o.push(t),s[t]=i[t]}),o.length)for(var r=1;rfunction(t,e,i){if(":"==t[0]){const n=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,e)=>parseFloat(e)>parseFloat(t);case":decrement":return(t,e)=>parseFloat(e) *"}}(t,i);if("function"==typeof n)return void e.push(n);t=n}const n=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==n||n.length<4)return i.push(`The provided transition expression "${t}" is not supported`),e;const r=n[1],s=n[2],o=n[3];e.push(rt(r,o)),"<"!=s[0]||r==tt&&o==tt||e.push(rt(o,r))}(t,i,e)):i.push(t),i}const it=new Set(["true","1"]),nt=new Set(["false","0"]);function rt(t,e){const i=it.has(t)||nt.has(t),n=it.has(e)||nt.has(e);return(r,s)=>{let o=t==tt||t==r,a=e==tt||e==s;return!o&&i&&"boolean"==typeof r&&(o=r?it.has(t):nt.has(t)),!a&&n&&"boolean"==typeof s&&(a=s?it.has(e):nt.has(e)),o&&a}}const st=new RegExp("s*:selfs*,?","g");function ot(t,e,i){return new at(t).build(e,i)}class at{constructor(t){this._driver=t}build(t,e){const i=new lt(e);return this._resetContextStyleTimingState(i),K(this,H(t),i)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let i=e.queryCount=0,n=e.depCount=0;const r=[],s=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(t=>{if(this._resetContextStyleTimingState(e),0==t.type){const i=t,n=i.name;n.toString().split(/\s*,\s*/).forEach(t=>{i.name=t,r.push(this.visitState(i,e))}),i.name=n}else if(1==t.type){const r=this.visitTransition(t,e);i+=r.queryCount,n+=r.depCount,s.push(r)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:r,transitions:s,queryCount:i,depCount:n,options:null}}visitState(t,e){const i=this.visitStyle(t.styles,e),n=t.options&&t.options.params||null;if(i.containsDynamicStyles){const r=new Set,s=n||{};if(i.styles.forEach(t=>{if(ct(t)){const e=t;Object.keys(e).forEach(t=>{G(e[t]).forEach(t=>{s.hasOwnProperty(t)||r.add(t)})})}}),r.size){const i=V(r.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${i.join(", ")}`)}}return{type:0,name:t.name,style:i,options:n?{params:n}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const i=K(this,H(t.animation),e);return{type:1,matchers:et(t.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:ht(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>K(this,t,e)),options:ht(t.options)}}visitGroup(t,e){const i=e.currentTime;let n=0;const r=t.steps.map(t=>{e.currentTime=i;const r=K(this,t,e);return n=Math.max(n,e.currentTime),r});return e.currentTime=n,{type:3,steps:r,options:ht(t.options)}}visitAnimate(t,e){const i=function(t,e){let i=null;if(t.hasOwnProperty("duration"))i=t;else if("number"==typeof t)return ut(P(t,e).duration,0,"");const n=t;if(n.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=ut(0,0,"");return t.dynamic=!0,t.strValue=n,t}return i=i||P(n,e),ut(i.duration,i.delay,i.easing)}(t.timings,e.errors);let n;e.currentAnimateTimings=i;let r=t.styles?t.styles:(0,s.oB)({});if(5==r.type)n=this.visitKeyframes(r,e);else{let r=t.styles,o=!1;if(!r){o=!0;const t={};i.easing&&(t.easing=i.easing),r=(0,s.oB)(t)}e.currentTime+=i.duration+i.delay;const a=this.visitStyle(r,e);a.isEmptyStep=o,n=a}return e.currentAnimateTimings=null,{type:4,timings:i,style:n,options:null}}visitStyle(t,e){const i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}_makeStyleAst(t,e){const i=[];Array.isArray(t.styles)?t.styles.forEach(t=>{"string"==typeof t?t==s.l3?i.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):i.push(t)}):i.push(t.styles);let n=!1,r=null;return i.forEach(t=>{if(ct(t)){const e=t,i=e.easing;if(i&&(r=i,delete e.easing),!n)for(let t in e)if(e[t].toString().indexOf("{{")>=0){n=!0;break}}}),{type:6,styles:i,easing:r,offset:t.offset,containsDynamicStyles:n,options:null}}_validateStyleAst(t,e){const i=e.currentAnimateTimings;let n=e.currentTime,r=e.currentTime;i&&r>0&&(r-=i.duration+i.delay),t.styles.forEach(t=>{"string"!=typeof t&&Object.keys(t).forEach(i=>{if(!this._driver.validateStyleProperty(i))return void e.errors.push(`The provided animation property "${i}" is not a supported CSS property for animations`);const s=e.collectedStyles[e.currentQuerySelector],o=s[i];let a=!0;o&&(r!=n&&r>=o.startTime&&n<=o.endTime&&(e.errors.push(`The CSS property "${i}" that exists between the times of "${o.startTime}ms" and "${o.endTime}ms" is also being animated in a parallel animation between the times of "${r}ms" and "${n}ms"`),a=!1),r=o.startTime),a&&(s[i]={startTime:r,endTime:n}),e.options&&function(t,e,i){const n=e.params||{},r=G(t);r.length&&r.forEach(t=>{n.hasOwnProperty(t)||i.push(`Unable to resolve the local animation param ${t} in the given list of values`)})}(t[i],e.options,e.errors)})})}visitKeyframes(t,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),i;let n=0;const r=[];let s=!1,o=!1,a=0;const l=t.steps.map(t=>{const i=this._makeStyleAst(t,e);let l=null!=i.offset?i.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(t=>{if(ct(t)&&t.hasOwnProperty("offset")){const i=t;e=parseFloat(i.offset),delete i.offset}});else if(ct(t)&&t.hasOwnProperty("offset")){const i=t;e=parseFloat(i.offset),delete i.offset}return e}(i.styles),c=0;return null!=l&&(n++,c=i.offset=l),o=o||c<0||c>1,s=s||c0&&n{const s=h>0?n==u?1:h*n:r[n],o=s*f;e.currentTime=d+p.delay+o,p.duration=o,this._validateStyleAst(t,e),t.offset=s,i.styles.push(t)}),i}visitReference(t,e){return{type:8,animation:K(this,H(t.animation),e),options:ht(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:ht(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:ht(t.options)}}visitQuery(t,e){const i=e.currentQuerySelector,n=t.options||{};e.queryCount++,e.currentQuery=t;const[r,s]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(st,"")),[t=t.replace(/@\*/g,I).replace(/@\w+/g,t=>".ng-trigger-"+t.substr(1)).replace(/:animating/g,D),e]}(t.selector);e.currentQuerySelector=i.length?i+" "+r:r,p(e.collectedStyles,e.currentQuerySelector,{});const o=K(this,H(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:r,limit:n.limit||0,optional:!!n.optional,includeSelf:s,animation:o,originalSelector:t.selector,options:ht(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const i="full"===t.timings?{duration:0,delay:0,easing:"full"}:P(t.timings,e.errors,!0);return{type:12,animation:K(this,H(t.animation),e),timings:i,options:null}}}class lt{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function ct(t){return!Array.isArray(t)&&"object"==typeof t}function ht(t){var e;return t?(t=F(t)).params&&(t.params=(e=t.params)?F(e):null):t={},t}function ut(t,e,i){return{duration:t,delay:e,easing:i}}function dt(t,e,i,n,r,s,o=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:i,postStyleProps:n,duration:r,delay:s,totalTime:r+s,easing:o,subTimeline:a}}class pt{constructor(){this._map=new Map}consume(t){let e=this._map.get(t);return e?this._map.delete(t):e=[],e}append(t,e){let i=this._map.get(t);i||this._map.set(t,i=[]),i.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const ft=new RegExp(":enter","g"),mt=new RegExp(":leave","g");function gt(t,e,i,n,r,s={},o={},a,l,c=[]){return(new yt).buildKeyframes(t,e,i,n,r,s,o,a,l,c)}class yt{buildKeyframes(t,e,i,n,r,s,o,a,l,c=[]){l=l||new pt;const h=new vt(t,e,l,n,r,c,[]);h.options=a,h.currentTimeline.setStyles([s],null,h.errors,a),K(this,i,h);const u=h.timelines.filter(t=>t.containsAnimation());if(u.length&&Object.keys(o).length){const t=u[u.length-1];t.allowOnlyTimelineStyles()||t.setStyles([o],null,h.errors,a)}return u.length?u.map(t=>t.buildKeyframes()):[dt(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const i=e.subInstructions.consume(e.element);if(i){const n=e.createSubContext(t.options),r=e.currentTimeline.currentTime,s=this._visitSubInstructions(i,n,n.options);r!=s&&e.transformIntoNewTimeline(s)}e.previousNode=t}visitAnimateRef(t,e){const i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,i){let n=e.currentTimeline.currentTime;const r=null!=i.duration?R(i.duration):null,s=null!=i.delay?R(i.delay):null;return 0!==r&&t.forEach(t=>{const i=e.appendInstructionToTimeline(t,r,s);n=Math.max(n,i.duration+i.delay)}),n}visitReference(t,e){e.updateOptions(t.options,!0),K(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const i=e.subContextCount;let n=e;const r=t.options;if(r&&(r.params||r.delay)&&(n=e.createSubContext(r),n.transformIntoNewTimeline(),null!=r.delay)){6==n.previousNode.type&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=bt);const t=R(r.delay);n.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>K(this,t,n)),n.currentTimeline.applyStylesToKeyframe(),n.subContextCount>i&&n.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const i=[];let n=e.currentTimeline.currentTime;const r=t.options&&t.options.delay?R(t.options.delay):0;t.steps.forEach(s=>{const o=e.createSubContext(t.options);r&&o.delayNextStep(r),K(this,s,o),n=Math.max(n,o.currentTimeline.currentTime),i.push(o.currentTimeline)}),i.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(n),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const i=t.strValue;return P(e.params?j(i,e.params,e.errors):i,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const i=e.currentAnimateTimings=this._visitTiming(t.timings,e),n=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),n.snapshotCurrentStyles());const r=t.style;5==r.type?this.visitKeyframes(r,e):(e.incrementTime(i.duration),this.visitStyle(r,e),n.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const i=e.currentTimeline,n=e.currentAnimateTimings;!n&&i.getCurrentStyleProperties().length&&i.forwardFrame();const r=n&&n.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(r):i.setStyles(t.styles,r,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const i=e.currentAnimateTimings,n=e.currentTimeline.duration,r=i.duration,s=e.createSubContext().currentTimeline;s.easing=i.easing,t.styles.forEach(t=>{s.forwardTime((t.offset||0)*r),s.setStyles(t.styles,t.easing,e.errors,e.options),s.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(s),e.transformIntoNewTimeline(n+r),e.previousNode=t}visitQuery(t,e){const i=e.currentTimeline.currentTime,n=t.options||{},r=n.delay?R(n.delay):0;r&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=bt);let s=i;const o=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!n.optional,e.errors);e.currentQueryTotal=o.length;let a=null;o.forEach((i,n)=>{e.currentQueryIndex=n;const o=e.createSubContext(t.options,i);r&&o.delayNextStep(r),i===e.element&&(a=o.currentTimeline),K(this,t.animation,o),o.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,o.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const i=e.parentContext,n=e.currentTimeline,r=t.timings,s=Math.abs(r.duration),o=s*(e.currentQueryTotal-1);let a=s*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":a=o-a;break;case"full":a=i.currentStaggerTime}const l=e.currentTimeline;a&&l.delayNextStep(a);const c=l.currentTime;K(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=n.currentTime-c+(n.startTime-i.currentTimeline.startTime)}}const bt={};class vt{constructor(t,e,i,n,r,s,o,a){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=n,this._leaveClassName=r,this.errors=s,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=bt,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new _t(this._driver,e,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const i=t;let n=this.options;null!=i.duration&&(n.duration=R(i.duration)),null!=i.delay&&(n.delay=R(i.delay));const r=i.params;if(r){let t=n.params;t||(t=this.options.params={}),Object.keys(r).forEach(i=>{e&&t.hasOwnProperty(i)||(t[i]=j(r[i],t,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const i=t.params={};Object.keys(e).forEach(t=>{i[t]=e[t]})}}return t}createSubContext(t=null,e,i){const n=e||this.element,r=new vt(this._driver,n,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(n,i||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(t),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(t){return this.previousNode=bt,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,i){const n={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+t.delay,easing:""},r=new wt(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,n,t.stretchStartingKeyframe);return this.timelines.push(r),n}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,n,r,s){let o=[];if(n&&o.push(this.element),t.length>0){t=(t=t.replace(ft,"."+this._enterClassName)).replace(mt,"."+this._leaveClassName);let e=this._driver.query(this.element,t,1!=i);0!==i&&(e=i<0?e.slice(e.length+i,e.length):e.slice(0,i)),o.push(...e)}return r||0!=o.length||s.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),o}}class _t{constructor(t,e,i,n){this._driver=t,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=n,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new _t(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||s.l3,this._currentKeyframe[t]=s.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,n){e&&(this._previousKeyframe.easing=e);const r=n&&n.params||{},o=function(t,e){const i={};let n;return t.forEach(t=>{"*"===t?(n=n||Object.keys(e),n.forEach(t=>{i[t]=s.l3})):Z(t,!1,i)}),i}(t,this._globalTimelineStyles);Object.keys(o).forEach(t=>{const e=j(o[t],r,i);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:s.l3),this._updateStyle(t,e)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(e=>{this._currentKeyframe[e]=t[e]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const i=this._styleSummary[e],n=t._styleSummary[e];(!i||n.time>i.time)&&this._updateStyle(e,n.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let n=[];this._keyframes.forEach((r,o)=>{const a=Z(r,!0);Object.keys(a).forEach(i=>{const n=a[i];n==s.k1?t.add(i):n==s.l3&&e.add(i)}),i||(a.offset=o/this.duration),n.push(a)});const r=t.size?V(t.values()):[],o=e.size?V(e.values()):[];if(i){const t=n[0],e=F(t);t.offset=0,e.offset=1,n=[t,e]}return dt(this.element,n,r,o,this.duration,this.startTime,this.easing,!1)}}class wt extends _t{constructor(t,e,i,n,r,s,o=!1){super(t,e,s.delay),this.element=e,this.keyframes=i,this.preStyleProps=n,this.postStyleProps=r,this._stretchStartingKeyframe=o,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:i,easing:n}=this.timings;if(this._stretchStartingKeyframe&&e){const r=[],s=i+e,o=e/s,a=Z(t[0],!1);a.offset=0,r.push(a);const l=Z(t[0],!1);l.offset=xt(o),r.push(l);const c=t.length-1;for(let n=1;n<=c;n++){let o=Z(t[n],!1);o.offset=xt((e+o.offset*i)/s),r.push(o)}i=s,e=0,n="",t=r}return dt(this.element,t,this.preStyleProps,this.postStyleProps,i,e,n,!0)}}function xt(t,e=3){const i=Math.pow(10,e-1);return Math.round(t*i)/i}class Ct{}class At extends Ct{normalizePropertyName(t,e){return W(t)}normalizeStyleValue(t,e,i,n){let r="";const s=i.toString().trim();if(St[e]&&0!==i&&"0"!==i)if("number"==typeof i)r="px";else{const e=i.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&n.push(`Please provide a CSS unit value for ${t}:${i}`)}return s+r}}const St=(()=>function(t){const e={};return t.forEach(t=>e[t]=!0),e}("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".split(",")))();function Et(t,e,i,n,r,s,o,a,l,c,h,u,d){return{type:0,element:t,triggerName:e,isRemovalTransition:r,fromState:i,fromStyles:s,toState:n,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:h,totalTime:u,errors:d}}const kt={};class Tt{constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,n){return function(t,e,i,n,r){return t.some(t=>t(e,i,n,r))}(this.ast.matchers,t,e,i,n)}buildStyles(t,e,i){const n=this._stateStyles["*"],r=this._stateStyles[t],s=n?n.buildStyles(e,i):{};return r?r.buildStyles(e,i):s}build(t,e,i,n,r,s,o,a,l,c){const h=[],u=this.ast.options&&this.ast.options.params||kt,d=this.buildStyles(i,o&&o.params||kt,h),f=a&&a.params||kt,m=this.buildStyles(n,f,h),g=new Set,y=new Map,b=new Map,v="void"===n,_={params:Object.assign(Object.assign({},u),f)},w=c?[]:gt(t,e,this.ast.animation,r,s,d,m,_,l,h);let x=0;if(w.forEach(t=>{x=Math.max(t.duration+t.delay,x)}),h.length)return Et(e,this._triggerName,i,n,v,d,m,[],[],y,b,x,h);w.forEach(t=>{const i=t.element,n=p(y,i,{});t.preStyleProps.forEach(t=>n[t]=!0);const r=p(b,i,{});t.postStyleProps.forEach(t=>r[t]=!0),i!==e&&g.add(i)});const C=V(g.values());return Et(e,this._triggerName,i,n,v,d,m,w,C,y,b,x)}}class Mt{constructor(t,e){this.styles=t,this.defaultParams=e}buildStyles(t,e){const i={},n=F(this.defaultParams);return Object.keys(t).forEach(e=>{const i=t[e];null!=i&&(n[e]=i)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const r=t;Object.keys(r).forEach(t=>{let s=r[t];s.length>1&&(s=j(s,n,e)),i[t]=s})}}),i}}class Lt{constructor(t,e){this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new Mt(t.style,t.options&&t.options.params||{})}),It(this.states,"true","1"),It(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new Tt(t,e,this.states))}),this.fallbackTransition=new Tt(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(t,e)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,i,n){return this.transitionFactories.find(r=>r.match(t,e,i,n))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}}function It(t,e,i){t.hasOwnProperty(e)?t.hasOwnProperty(i)||(t[i]=t[e]):t.hasOwnProperty(i)&&(t[e]=t[i])}const Ot=new pt;class Dt{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}register(t,e){const i=[],n=ot(this._driver,e,i);if(i.length)throw new Error(`Unable to build the animation due to the following errors: ${i.join("\n")}`);this._animations[t]=n}_buildPlayer(t,e,i){const n=t.element,r=c(0,this._normalizer,0,t.keyframes,e,i);return this._driver.animate(n,r,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){const n=[],r=this._animations[t];let o;const a=new Map;if(r?(o=gt(this._driver,e,r,T,M,{},{},i,Ot,n),o.forEach(t=>{const e=p(a,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(n.push("The requested animation doesn't exist or has already been destroyed"),o=[]),n.length)throw new Error(`Unable to create the animation due to the following errors: ${n.join("\n")}`);a.forEach((t,e)=>{Object.keys(t).forEach(i=>{t[i]=this._driver.computeStyle(e,i,s.l3)})});const c=l(o.map(t=>{const e=a.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=c,c.onDestroy(()=>this.destroy(t)),this.players.push(c),c}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error(`Unable to find the timeline player referenced by ${t}`);return e}listen(t,e,i,n){const r=d(e,"","","");return h(this._getPlayer(t),i,r,n),()=>{}}command(t,e,i,n){if("register"==i)return void this.register(t,n[0]);if("create"==i)return void this.create(t,e,n[0]||{});const r=this._getPlayer(t);switch(i){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(n[0]));break;case"destroy":this.destroy(t)}}}const Rt="ng-animate-queued",Nt="ng-animate-disabled",Pt=".ng-animate-disabled",Ft=[],Zt={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Bt={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class Ut{constructor(t,e=""){this.namespaceId=e;const i=t&&t.hasOwnProperty("value");if(this.value=null!=(n=i?t.value:t)?n:null,i){const e=F(t);delete e.value,this.options=e}else this.options={};var n;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const t=this.options.params;Object.keys(e).forEach(i=>{null==t[i]&&(t[i]=e[i])})}}}const qt="void",zt=new Ut(qt);class Ht{constructor(t,e,i){this.id=t,this.hostElement=e,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Jt(e,this._hostClassName)}listen(t,e,i,n){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${i}" because the animation trigger "${e}" doesn't exist!`);if(null==i||0==i.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if("start"!=(r=i)&&"done"!=r)throw new Error(`The provided animation trigger event "${i}" for the animation trigger "${e}" is not supported!`);var r;const s=p(this._elementListeners,t,[]),o={name:e,phase:i,callback:n};s.push(o);const a=p(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(Jt(t,L),Jt(t,"ng-trigger-"+e),a[e]=zt),()=>{this._engine.afterFlush(()=>{const t=s.indexOf(o);t>=0&&s.splice(t,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,i,n=!0){const r=this._getTrigger(e),s=new Gt(this.id,e,t);let o=this._engine.statesByElement.get(t);o||(Jt(t,L),Jt(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,o={}));let a=o[e];const l=new Ut(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),o[e]=l,a||(a=zt),l.value!==qt&&a.value===l.value){if(!function(t,e){const i=Object.keys(t),n=Object.keys(e);if(i.length!=n.length)return!1;for(let r=0;r{z(t,i),q(t,n)})}return}const c=p(this._engine.playersByElement,t,[]);c.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let h=r.matchTransition(a.value,l.value,t,l.params),u=!1;if(!h){if(!n)return;h=r.fallbackTransition,u=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:h,fromState:a,toState:l,player:s,isFallbackTransition:u}),u||(Jt(t,Rt),s.onStart(()=>{Xt(t,Rt)})),s.onDone(()=>{let e=this.players.indexOf(s);e>=0&&this.players.splice(e,1);const i=this._engine.playersByElement.get(t);if(i){let t=i.indexOf(s);t>=0&&i.splice(t,1)}}),this.players.push(s),c.push(s),s}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,i)=>{delete e[t]}),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(e=>e.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const i=this._engine.driver.query(t,I,!0);i.forEach(t=>{if(t.__ng_removed)return;const i=this._engine.fetchNamespacesByElement(t);i.size?i.forEach(i=>i.triggerLeaveAnimation(t,e,!1,!0)):this.clearElementCache(t)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(t=>this.clearElementCache(t)))}triggerLeaveAnimation(t,e,i,n){const r=this._engine.statesByElement.get(t);if(r){const s=[];if(Object.keys(r).forEach(e=>{if(this._triggers[e]){const i=this.trigger(t,e,qt,n);i&&s.push(i)}}),s.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),i&&l(s).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),i=this._engine.statesByElement.get(t);if(e&&i){const n=new Set;e.forEach(e=>{const r=e.name;if(n.has(r))return;n.add(r);const s=this._triggers[r].fallbackTransition,o=i[r]||zt,a=new Ut(qt),l=new Gt(this.id,r,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:r,transition:s,fromState:o,toState:a,player:l,isFallbackTransition:!0})})}}removeNode(t,e){const i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let n=!1;if(i.totalAnimations){const e=i.players.length?i.playersByQueriedElement.get(t):[];if(e&&e.length)n=!0;else{let e=t;for(;e=e.parentNode;)if(i.statesByElement.get(e)){n=!0;break}}}if(this.prepareLeaveAnimationListeners(t),n)i.markElementAsRemoved(this.id,t,!1,e);else{const n=t.__ng_removed;n&&n!==Zt||(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){Jt(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(i=>{const n=i.player;if(n.destroyed)return;const r=i.element,s=this._elementListeners.get(r);s&&s.forEach(e=>{if(e.name==i.triggerName){const n=d(r,i.triggerName,i.fromState.value,i.toState.value);n._data=t,h(i.player,e.phase,n,e.callback)}}),n.markedForDestroy?this._engine.afterFlush(()=>{n.destroy()}):e.push(i)}),this._queue=[],e.sort((t,e)=>{const i=t.transition.ast.depCount,n=e.transition.ast.depCount;return 0==i||0==n?i-n:this._engine.driver.containsElement(t.element,e.element)?1:-1})}destroy(t){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(e=>e.element===t)||e,e}}class Yt{constructor(t,e,i){this.bodyNode=t,this.driver=e,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(t,e)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(e=>{e.queued&&t.push(e)})}),t}createNamespace(t,e){const i=new Ht(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[t]=i}_balanceNamespaceList(t,e){const i=this._namespaceList.length-1;if(i>=0){let n=!1;for(let r=i;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,e)){this._namespaceList.splice(r+1,0,t),n=!0;break}n||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}registerTrigger(t,e,i){let n=this._namespaceLookup[t];n&&n.register(e,i)&&this.totalAnimations++}destroy(t,e){if(!t)return;const i=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[t];const e=this._namespaceList.indexOf(i);e>=0&&this._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,i=this.statesByElement.get(t);if(i){const t=Object.keys(i);for(let n=0;n=0&&this.collectedLeaveElements.splice(t,1)}if(t){const n=this._fetchNamespace(t);n&&n.insertNode(e,i)}n&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Jt(t,Nt)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Xt(t,Nt))}removeNode(t,e,i,n){if(jt(e)){const r=t?this._fetchNamespace(t):null;if(r?r.removeNode(e,n):this.markElementAsRemoved(t,e,!1,n),i){const i=this.namespacesByHostElement.get(e);i&&i.id!==t&&i.removeNode(e,n)}}else this._onRemovalComplete(e,n)}markElementAsRemoved(t,e,i,n){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:n,hasAnimation:i,removedBeforeQueried:!1}}listen(t,e,i,n,r){return jt(e)?this._fetchNamespace(t).listen(e,i,n,r):()=>{}}_buildInstruction(t,e,i,n,r){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,n,t.fromState.options,t.toState.options,e,r)}destroyInnerAnimations(t){let e=this.driver.query(t,I,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,D,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return l(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t.__ng_removed;if(e&&e.setForRemoval){if(t.__ng_removed=Zt,e.namespaceId){this.destroyInnerAnimations(t);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,Pt)&&this.markElementAsDisabled(t,!1),this.driver.query(t,Pt,!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,e)=>this._balanceNamespaceList(t,e)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;it()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?l(e).onDone(()=>{t.forEach(t=>t())}):t.forEach(t=>t())}}reportError(t){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${t.join("\n")}`)}_flushAnimations(t,e){const i=new pt,n=[],r=new Map,o=[],a=new Map,c=new Map,h=new Map,u=new Set;this.disabledNodes.forEach(t=>{u.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let i=0;i{const i=T+y++;g.set(e,i),t.forEach(t=>Jt(t,i))});const b=[],v=new Set,_=new Set;for(let s=0;sv.add(t)):_.add(t))}const w=new Map,x=Wt(f,Array.from(v));x.forEach((t,e)=>{const i=M+y++;w.set(e,i),t.forEach(t=>Jt(t,i))}),t.push(()=>{m.forEach((t,e)=>{const i=g.get(e);t.forEach(t=>Xt(t,i))}),x.forEach((t,e)=>{const i=w.get(e);t.forEach(t=>Xt(t,i))}),b.forEach(t=>{this.processLeaveNode(t)})});const C=[],A=[];for(let s=this._namespaceList.length-1;s>=0;s--)this._namespaceList[s].drainQueuedTransitions(e).forEach(t=>{const e=t.player,r=t.element;if(C.push(e),this.collectedEnterElements.length){const t=r.__ng_removed;if(t&&t.setForMove)return void e.destroy()}const s=!d||!this.driver.containsElement(d,r),l=w.get(r),u=g.get(r),f=this._buildInstruction(t,i,u,l,s);if(f.errors&&f.errors.length)A.push(f);else{if(s)return e.onStart(()=>z(r,f.fromStyles)),e.onDestroy(()=>q(r,f.toStyles)),void n.push(e);if(t.isFallbackTransition)return e.onStart(()=>z(r,f.fromStyles)),e.onDestroy(()=>q(r,f.toStyles)),void n.push(e);f.timelines.forEach(t=>t.stretchStartingKeyframe=!0),i.append(r,f.timelines),o.push({instruction:f,player:e,element:r}),f.queriedElements.forEach(t=>p(a,t,[]).push(e)),f.preStyleProps.forEach((t,e)=>{const i=Object.keys(t);if(i.length){let t=c.get(e);t||c.set(e,t=new Set),i.forEach(e=>t.add(e))}}),f.postStyleProps.forEach((t,e)=>{const i=Object.keys(t);let n=h.get(e);n||h.set(e,n=new Set),i.forEach(t=>n.add(t))})}});if(A.length){const t=[];A.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),C.forEach(t=>t.destroy()),this.reportError(t)}const S=new Map,E=new Map;o.forEach(t=>{const e=t.element;i.has(e)&&(E.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,S))}),n.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{p(S,e,[]).push(t),t.destroy()})});const k=b.filter(t=>te(t,c,h)),L=new Map;Qt(L,this.driver,_,h,s.l3).forEach(t=>{te(t,c,h)&&k.push(t)});const I=new Map;m.forEach((t,e)=>{Qt(I,this.driver,new Set(t),c,s.k1)}),k.forEach(t=>{const e=L.get(t),i=I.get(t);L.set(t,Object.assign(Object.assign({},e),i))});const O=[],R=[],N={};o.forEach(t=>{const{element:e,player:s,instruction:o}=t;if(i.has(e)){if(u.has(e))return s.onDestroy(()=>q(e,o.toStyles)),s.disabled=!0,s.overrideTotalTime(o.totalTime),void n.push(s);let t=N;if(E.size>1){let i=e;const n=[];for(;i=i.parentNode;){const e=E.get(i);if(e){t=e;break}n.push(i)}n.forEach(e=>E.set(e,t))}const i=this._buildAnimation(s.namespaceId,o,S,r,I,L);if(s.setRealPlayer(i),t===N)O.push(s);else{const e=this.playersByElement.get(t);e&&e.length&&(s.parentPlayer=l(e)),n.push(s)}}else z(e,o.fromStyles),s.onDestroy(()=>q(e,o.toStyles)),R.push(s),u.has(e)&&n.push(s)}),R.forEach(t=>{const e=r.get(t.element);if(e&&e.length){const i=l(e);t.setRealPlayer(i)}}),n.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let s=0;s!t.destroyed);n.length?Kt(this,t,n):this.processLeaveNode(t)}return b.length=0,O.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),O}elementContainsData(t,e){let i=!1;const n=e.__ng_removed;return n&&n.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(t).elementContainsData(e)||i}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,i,n,r){let s=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(s=e)}else{const e=this.playersByElement.get(t);if(e){const t=!r||r==qt;e.forEach(e=>{e.queued||(t||e.triggerName==n)&&s.push(e)})}}return(i||n)&&(s=s.filter(t=>!(i&&i!=t.namespaceId||n&&n!=t.triggerName))),s}_beforeAnimationBuild(t,e,i){const n=e.element,r=e.isRemovalTransition?void 0:t,s=e.isRemovalTransition?void 0:e.triggerName;for(const o of e.timelines){const t=o.element,a=t!==n,l=p(i,t,[]);this._getPreviousPlayers(t,a,r,s,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),l.push(t)})}z(n,e.fromStyles)}_buildAnimation(t,e,i,n,r,o){const a=e.triggerName,h=e.element,u=[],d=new Set,f=new Set,m=e.timelines.map(e=>{const l=e.element;d.add(l);const p=l.__ng_removed;if(p&&p.removedBeforeQueried)return new s.ZN(e.duration,e.delay);const m=l!==h,g=function(t){const e=[];return $t(t,e),e}((i.get(l)||Ft).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===l),y=r.get(l),b=o.get(l),v=c(0,this._normalizer,0,e.keyframes,y,b),_=this._buildPlayer(e,v,g);if(e.subTimeline&&n&&f.add(l),m){const e=new Gt(t,a,l);e.setRealPlayer(_),u.push(e)}return _});u.forEach(t=>{p(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,i){let n;if(t instanceof Map){if(n=t.get(e),n){if(n.length){const t=n.indexOf(i);n.splice(t,1)}0==n.length&&t.delete(e)}}else if(n=t[e],n){if(n.length){const t=n.indexOf(i);n.splice(t,1)}0==n.length&&delete t[e]}return n}(this.playersByQueriedElement,t.element,t))}),d.forEach(t=>Jt(t,O));const g=l(m);return g.onDestroy(()=>{d.forEach(t=>Xt(t,O)),q(h,e.toStyles)}),f.forEach(t=>{p(n,t,[]).push(g)}),g}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new s.ZN(t.duration,t.delay)}}class Gt{constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,this._player=new s.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(i=>h(t,e,void 0,i))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){p(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}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(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function jt(t){return t&&1===t.nodeType}function Vt(t,e){const i=t.style.display;return t.style.display=null!=e?e:"none",i}function Qt(t,e,i,n,r){const s=[];i.forEach(t=>s.push(Vt(t)));const o=[];n.forEach((i,n)=>{const s={};i.forEach(t=>{const i=s[t]=e.computeStyle(n,t,r);i&&0!=i.length||(n.__ng_removed=Bt,o.push(n))}),t.set(n,s)});let a=0;return i.forEach(t=>Vt(t,s[a++])),o}function Wt(t,e){const i=new Map;if(t.forEach(t=>i.set(t,[])),0==e.length)return i;const n=new Set(e),r=new Map;function s(t){if(!t)return 1;let e=r.get(t);if(e)return e;const o=t.parentNode;return e=i.has(o)?o:n.has(o)?1:s(o),r.set(t,e),e}return e.forEach(t=>{const e=s(t);1!==e&&i.get(e).push(t)}),i}function Jt(t,e){if(t.classList)t.classList.add(e);else{let i=t.$$classes;i||(i=t.$$classes={}),i[e]=!0}}function Xt(t,e){if(t.classList)t.classList.remove(e);else{let i=t.$$classes;i&&delete i[e]}}function Kt(t,e,i){l(i).onDone(()=>t.processLeaveNode(e))}function $t(t,e){for(let i=0;ir.add(t)):e.set(t,n),i.delete(t),!0}class ee{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new Yt(t,e,i),this._timelineEngine=new Dt(t,e,i),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,i,n,r){const s=t+"-"+n;let o=this._triggerCache[s];if(!o){const t=[],e=ot(this._driver,r,t);if(t.length)throw new Error(`The animation trigger "${n}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);o=function(t,e){return new Lt(t,e)}(n,e),this._triggerCache[s]=o}this._transitionEngine.registerTrigger(e,n,o)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,i,n){this._transitionEngine.insertNode(t,e,i,n)}onRemove(t,e,i,n){this._transitionEngine.removeNode(t,e,n||!1,i)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,i,n){if("@"==i.charAt(0)){const[t,r]=f(i);this._timelineEngine.command(t,e,r,n)}else this._transitionEngine.trigger(t,e,i,n)}listen(t,e,i,n,r){if("@"==i.charAt(0)){const[t,n]=f(i);return this._timelineEngine.listen(t,e,n,r)}return this._transitionEngine.listen(t,e,i,n,r)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function ie(t,e){let i=null,n=null;return Array.isArray(e)&&e.length?(i=re(e[0]),e.length>1&&(n=re(e[e.length-1]))):e&&(i=re(e)),i||n?new ne(t,i,n):null}let ne=(()=>{class t{constructor(e,i,n){this._element=e,this._startStyles=i,this._endStyles=n,this._state=0;let r=t.initialStylesByElement.get(e);r||t.initialStylesByElement.set(e,r={}),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&q(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(q(this._element,this._initialStyles),this._endStyles&&(q(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(z(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(z(this._element,this._endStyles),this._endStyles=null),q(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function re(t){let e=null;const i=Object.keys(t);for(let n=0;nthis._handleCallback(t)}apply(){!function(t,e){const i=fe(t,"").trim();i.length&&(function(t,e){let i=0;for(let n=0;n=this._delay&&i>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),de(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const i=fe(t,"").split(","),n=ue(i,e);n>=0&&(i.splice(n,1),pe(t,"",i.join(",")))}(this._element,this._name))}}function ce(t,e,i){pe(t,"PlayState",i,he(t,e))}function he(t,e){const i=fe(t,"");return i.indexOf(",")>0?ue(i.split(","),e):ue([i],e)}function ue(t,e){for(let i=0;i=0)return i;return-1}function de(t,e,i){i?t.removeEventListener(ae,e):t.addEventListener(ae,e)}function pe(t,e,i,n){const r=oe+e;if(null!=n){const e=t.style[r];if(e.length){const t=e.split(",");t[n]=i,i=t.join(",")}}t.style[r]=i}function fe(t,e){return t.style[oe+e]||""}class me{constructor(t,e,i,n,r,s,o,a){this.element=t,this.keyframes=e,this.animationName=i,this._duration=n,this._delay=r,this._finalStyles=o,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=s||"linear",this.totalTime=n+r,this._buildStyler()}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(t){this._styler.setPosition(t)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new le(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(i=>{"offset"!=i&&(t[i]=e?this._finalStyles[i]:$(this.element,i))})}this.currentSnapshot=t}}class ge extends s.ZN{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=S(e)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(t=>{this._startingStyles[t]=this.element.style[t]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(t=>this.element.style.setProperty(t,this._styles[t])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(t=>{const e=this._startingStyles[t];e?this.element.style.setProperty(t,e):this.element.style.removeProperty(t)}),this._startingStyles=null,super.destroy())}}class ye{constructor(){this._count=0}validateStyleProperty(t){return w(t)}matchesElement(t,e){return x(t,e)}containsElement(t,e){return C(t,e)}query(t,e,i){return A(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,i){i=i.map(t=>S(t));let n=`@keyframes ${e} {\n`,r="";i.forEach(t=>{r=" ";const e=parseFloat(t.offset);n+=`${r}${100*e}% {\n`,r+=" ",Object.keys(t).forEach(e=>{const i=t[e];switch(e){case"offset":return;case"easing":return void(i&&(n+=`${r}animation-timing-function: ${i};\n`));default:return void(n+=`${r}${e}: ${i};\n`)}}),n+=`${r}}\n`}),n+="}\n";const s=document.createElement("style");return s.textContent=n,s}animate(t,e,i,n,r,s=[],o){const a=s.filter(t=>t instanceof me),l={};J(i,n)&&a.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const c=function(t){let e={};return t&&(Array.isArray(t)?t:[t]).forEach(t=>{Object.keys(t).forEach(i=>{"offset"!=i&&"easing"!=i&&(e[i]=t[i])})}),e}(e=X(t,e,l));if(0==i)return new ge(t,c);const h="gen_css_kf_"+this._count++,u=this.buildKeyframeElement(t,h,e);(function(t){var e;const i=null===(e=t.getRootNode)||void 0===e?void 0:e.call(t);return"undefined"!=typeof ShadowRoot&&i instanceof ShadowRoot?i:document.head})(t).appendChild(u);const d=ie(t,e),p=new me(t,e,h,i,n,r,c,d);return p.onDestroy(()=>{var t;(t=u).parentNode.removeChild(t)}),p}}class be{constructor(t,e,i,n){this.element=t,this.keyframes=e,this.options=i,this._specialStyles=n,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,i){return t.animate(e,i)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),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}_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(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(e=>{"offset"!=e&&(t[e]=this._finished?this._finalKeyframe[e]:$(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class ve{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(_e().toString()),this._cssKeyframesDriver=new ye}validateStyleProperty(t){return w(t)}matchesElement(t,e){return x(t,e)}containsElement(t,e){return C(t,e)}query(t,e,i){return A(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,i,n,r,s=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,i,n,r,s);const a={duration:i,delay:n,fill:0==n?"both":"forwards"};r&&(a.easing=r);const l={},c=s.filter(t=>t instanceof be);J(i,n)&&c.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const h=ie(t,e=X(t,e=e.map(t=>Z(t,!1)),l));return new be(t,e,a,h)}}function _e(){return o()&&Element.prototype.animate||{}}var we=i(1511);let xe=(()=>{class t extends s._j{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:n.ifc.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const i=Array.isArray(t)?(0,s.vP)(t):t;return Se(this._renderer,null,e,"register",[i]),new Ce(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(n.FYo),n.LFG(we.K0))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})();class Ce extends s.LC{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new Ae(this._id,t,e||{},this._renderer)}}class Ae{constructor(t,e,i,n){this.id=t,this.element=e,this._renderer=n,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return Se(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}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(t){this._command("setPosition",t)}getPosition(){var t,e;return null!==(e=null===(t=this._renderer.engine.players[+this.id])||void 0===t?void 0:t.getPosition())&&void 0!==e?e:0}}function Se(t,e,i,n,r){return t.setProperty(e,`@@${i}:${n}`,r)}const Ee="@",ke="@.disabled";let Te=(()=>{class t{constructor(t,e,i){this.delegate=t,this.engine=e,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=(t,e)=>{e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}createRenderer(t,e){const i=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){let t=this._rendererCache.get(i);return t||(t=new Me("",i,this.engine),this._rendererCache.set(i,t)),t}const n=e.id,r=e.id+"-"+this._currentId;this._currentId++,this.engine.register(r,t);const s=e=>{Array.isArray(e)?e.forEach(s):this.engine.registerTrigger(n,r,t,e.name,e)};return e.data.animation.forEach(s),new Le(this,r,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,i){t>=0&&te(i)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(t=>{const[e,i]=t;e(i)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,i]))}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()}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(n.FYo),n.LFG(ee),n.LFG(n.R0b))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})();class Me{constructor(t,e,i){this.namespaceId=t,this.delegate=e,this.engine=i,this.destroyNode=this.delegate.destroyNode?t=>e.destroyNode(t):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,i,n=!0){this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,n)}removeChild(t,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,i,n){this.delegate.setAttribute(t,e,i,n)}removeAttribute(t,e,i){this.delegate.removeAttribute(t,e,i)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,i,n){this.delegate.setStyle(t,e,i,n)}removeStyle(t,e,i){this.delegate.removeStyle(t,e,i)}setProperty(t,e,i){e.charAt(0)==Ee&&e==ke?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,i){return this.delegate.listen(t,e,i)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class Le extends Me{constructor(t,e,i,n){super(e,i,n),this.factory=t,this.namespaceId=e}setProperty(t,e,i){e.charAt(0)==Ee?"."==e.charAt(1)&&e==ke?this.disableAnimations(t,i=void 0===i||!!i):this.engine.process(this.namespaceId,t,e.substr(1),i):this.delegate.setProperty(t,e,i)}listen(t,e,i){if(e.charAt(0)==Ee){const n=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let r=e.substr(1),s="";return r.charAt(0)!=Ee&&([r,s]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(r)),this.engine.listen(this.namespaceId,n,r,s,t=>{this.factory.scheduleListenerCallback(t._data||-1,i,t)})}return this.delegate.listen(t,e,i)}}let Ie=(()=>{class t extends ee{constructor(t,e,i){super(t.body,e,i)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(we.K0),n.LFG(k),n.LFG(Ct))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})();const Oe=new n.OlP("AnimationModuleType"),De=[{provide:s._j,useClass:xe},{provide:Ct,useFactory:function(){return new At}},{provide:ee,useClass:Ie},{provide:n.FYo,useFactory:function(t,e,i){return new Te(t,e,i)},deps:[r.se,ee,n.R0b]}],Re=[{provide:k,useFactory:function(){return"function"==typeof _e()?new ve:new ye}},{provide:Oe,useValue:"BrowserAnimations"},...De],Ne=[{provide:k,useClass:E},{provide:Oe,useValue:"NoopAnimations"},...De];let Pe=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?Ne:Re}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({providers:Re,imports:[r.b2]}),t})()},269:(t,e,i)=>{"use strict";i.d(e,{b2:()=>Y,H7:()=>B,t6:()=>D,q6:()=>z,se:()=>C});var n=i(1511),r=i(1572);class s extends n.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class o extends s{static makeCurrent(){(0,n.HT)(new o)}onAndCancel(t,e,i){return t.addEventListener(e,i,!1),()=>{t.removeEventListener(e,i,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=(l=l||document.querySelector("base"),l?l.getAttribute("href"):null);return null==e?null:function(t){a=a||document.createElement("a"),a.setAttribute("href",t);const e=a.pathname;return"/"===e.charAt(0)?e:`/${e}`}(e)}resetBaseElement(){l=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return(0,n.Mx)(document.cookie,t)}}let a,l=null;const c=new r.OlP("TRANSITION_ID"),h=[{provide:r.ip1,useFactory:function(t,e,i){return()=>{i.get(r.CZH).donePromise.then(()=>{const i=(0,n.q)();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>i.remove(t))})}},deps:[c,n.K0,r.zs3],multi:!0}];class u{static init(){(0,r.VLi)(new u)}addToWindow(t){r.dqk.getAngularTestability=(e,i=!0)=>{const n=t.findTestabilityInTree(e,i);if(null==n)throw new Error("Could not find testability for element.");return n},r.dqk.getAllAngularTestabilities=()=>t.getAllTestabilities(),r.dqk.getAllAngularRootElements=()=>t.getAllRootElements(),r.dqk.frameworkStabilizers||(r.dqk.frameworkStabilizers=[]),r.dqk.frameworkStabilizers.push(t=>{const e=r.dqk.getAllAngularTestabilities();let i=e.length,n=!1;const s=function(e){n=n||e,i--,0==i&&t(n)};e.forEach(function(t){t.whenStable(s)})})}findTestabilityInTree(t,e,i){if(null==e)return null;const r=t.getTestability(e);return null!=r?r:i?(0,n.q)().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}let d=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})();const p=new r.OlP("EventManagerPlugins");let f=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,i){return this._findPluginFor(e).addEventListener(t,e,i)}addGlobalEventListener(t,e,i){return this._findPluginFor(e).addGlobalEventListener(t,e,i)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const i=this._plugins;for(let n=0;n{class t{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})(),y=(()=>{class t extends g{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,e,i){t.forEach(t=>{const n=this._doc.createElement("style");n.textContent=t,i.push(e.appendChild(n))})}addHost(t){const e=[];this._addStylesToHost(this._stylesSet,t,e),this._hostNodes.set(t,e)}removeHost(t){const e=this._hostNodes.get(t);e&&e.forEach(b),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((e,i)=>{this._addStylesToHost(t,i,e)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(b))}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(n.K0))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})();function b(t){(0,n.q)().remove(t)}const v={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/"},_=/%COMP%/g;function w(t,e,i){for(let n=0;n{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let C=(()=>{class t{constructor(t,e,i){this.eventManager=t,this.sharedStylesHost=e,this.appId=i,this.rendererByCompId=new Map,this.defaultRenderer=new A(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case r.ifc.Emulated:{let i=this.rendererByCompId.get(e.id);return i||(i=new S(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,i)),i.applyToHost(t),i}case 1:case r.ifc.ShadowDom:return new E(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=w(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(f),r.LFG(y),r.LFG(r.AFp))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})();class A{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(v[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,i){t&&t.insertBefore(e,i)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let i="string"==typeof t?document.querySelector(t):t;if(!i)throw new Error(`The selector "${t}" did not match any elements`);return e||(i.textContent=""),i}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,i,n){if(n){e=n+":"+e;const r=v[n];r?t.setAttributeNS(r,e,i):t.setAttribute(e,i)}else t.setAttribute(e,i)}removeAttribute(t,e,i){if(i){const n=v[i];n?t.removeAttributeNS(n,e):t.removeAttribute(`${i}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,i,n){n&(r.JOm.DashCase|r.JOm.Important)?t.style.setProperty(e,i,n&r.JOm.Important?"important":""):t.style[e]=i}removeStyle(t,e,i){i&r.JOm.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,i){t[e]=i}setValue(t,e){t.nodeValue=e}listen(t,e,i){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,x(i)):this.eventManager.addEventListener(t,e,x(i))}}class S extends A{constructor(t,e,i,n){super(t),this.component=i;const r=w(n+"-"+i.id,i.styles,[]);e.addStyles(r),this.contentAttr="_ngcontent-%COMP%".replace(_,n+"-"+i.id),this.hostAttr="_nghost-%COMP%".replace(_,n+"-"+i.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const i=super.createElement(t,e);return super.setAttribute(i,this.contentAttr,""),i}}class E extends A{constructor(t,e,i,n){super(t),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const r=w(n.id,n.styles,[]);for(let s=0;s{class t extends m{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,i){return t.addEventListener(e,i,!1),()=>this.removeEventListener(t,e,i)}removeEventListener(t,e,i){return t.removeEventListener(e,i)}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(n.K0))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})();const T={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0,doubletap:!0},M=new r.OlP("HammerGestureConfig"),L=new r.OlP("HammerLoader");let I=(()=>{class t{constructor(){this.events=[],this.overrides={}}buildHammer(t){const e=new Hammer(t,this.options);e.get("pinch").set({enable:!0}),e.get("rotate").set({enable:!0});for(const i in this.overrides)e.get(i).set(this.overrides[i]);return e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})();const O=[{provide:p,useClass:(()=>{class t extends m{constructor(t,e,i,n){super(t),this._config=e,this.console=i,this.loader=n,this._loaderPromise=null}supports(t){return!(!T.hasOwnProperty(t.toLowerCase())&&!this.isCustomEvent(t)||!window.Hammer&&!this.loader)}addEventListener(t,e,i){const n=this.manager.getZone();if(e=e.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||this.loader();let n=!1,r=()=>{n=!0};return this._loaderPromise.then(()=>{window.Hammer?n||(r=this.addEventListener(t,e,i)):r=()=>{}}).catch(()=>{r=()=>{}}),()=>{r()}}return n.runOutsideAngular(()=>{const r=this._config.buildHammer(t),s=function(t){n.runGuarded(function(){i(t)})};return r.on(e,s),()=>{r.off(e,s),"function"==typeof r.destroy&&r.destroy()}})}isCustomEvent(t){return this._config.events.indexOf(t)>-1}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(n.K0),r.LFG(M),r.LFG(r.c2e),r.LFG(L,8))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})(),multi:!0,deps:[n.K0,M,r.c2e,[new r.FiY,L]]},{provide:M,useClass:I,deps:[]}];let D=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:O}),t})();const R=["alt","control","meta","shift"],N={"\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"},P={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},F={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let Z=(()=>{class t extends m{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,r){const s=t.parseEventName(i),o=t.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,n.q)().onAndCancel(e,s.domEventName,o))}static parseEventName(e){const i=e.toLowerCase().split("."),n=i.shift();if(0===i.length||"keydown"!==n&&"keyup"!==n)return null;const r=t._normalizeKey(i.pop());let s="";if(R.forEach(t=>{const e=i.indexOf(t);e>-1&&(i.splice(e,1),s+=t+".")}),s+=r,0!=i.length||0===r.length)return null;const o={};return o.domEventName=n,o.fullKey=s,o}static getEventFullKey(t){let e="",i=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&P.hasOwnProperty(e)&&(e=P[e]))}return N[e]||e}(t);return i=i.toLowerCase()," "===i?i="space":"."===i&&(i="dot"),R.forEach(n=>{n!=i&&(0,F[n])(t)&&(e+=n+".")}),e+=i,e}static eventCallback(e,i,n){return r=>{t.getEventFullKey(r)===e&&n.runGuarded(()=>i(r))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(n.K0))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})(),B=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,r.Yz7)({factory:function(){return(0,r.LFG)(q)},token:t,providedIn:"root"}),t})();function U(t){return new q(t.get(n.K0))}let q=(()=>{class t extends B{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case r.q3G.NONE:return e;case r.q3G.HTML:return(0,r.qzn)(e,"HTML")?(0,r.z3N)(e):(0,r.EiD)(this._doc,String(e)).toString();case r.q3G.STYLE:return(0,r.qzn)(e,"Style")?(0,r.z3N)(e):e;case r.q3G.SCRIPT:if((0,r.qzn)(e,"Script"))return(0,r.z3N)(e);throw new Error("unsafe value used in a script context");case r.q3G.URL:return(0,r.yhl)(e),(0,r.qzn)(e,"URL")?(0,r.z3N)(e):(0,r.mCW)(String(e));case r.q3G.RESOURCE_URL:if((0,r.qzn)(e,"ResourceURL"))return(0,r.z3N)(e);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return(0,r.JVY)(t)}bypassSecurityTrustStyle(t){return(0,r.L6k)(t)}bypassSecurityTrustScript(t){return(0,r.eBb)(t)}bypassSecurityTrustUrl(t){return(0,r.LAX)(t)}bypassSecurityTrustResourceUrl(t){return(0,r.pB0)(t)}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(n.K0))},t.\u0275prov=(0,r.Yz7)({factory:function(){return U((0,r.LFG)(r.gxx))},token:t,providedIn:"root"}),t})();const z=(0,r.eFA)(r._c5,"browser",[{provide:r.Lbi,useValue:n.bD},{provide:r.g9A,useValue:function(){o.makeCurrent(),u.init()},multi:!0},{provide:n.K0,useFactory:function(){return(0,r.RDi)(document),document},deps:[]}]),H=[[],{provide:r.zSh,useValue:"root"},{provide:r.qLn,useFactory:function(){return new r.qLn},deps:[]},{provide:p,useClass:k,multi:!0,deps:[n.K0,r.R0b,r.Lbi]},{provide:p,useClass:Z,multi:!0,deps:[n.K0]},[],{provide:C,useClass:C,deps:[f,y,r.AFp]},{provide:r.FYo,useExisting:C},{provide:g,useExisting:y},{provide:y,useClass:y,deps:[n.K0]},{provide:r.dDg,useClass:r.dDg,deps:[r.R0b]},{provide:f,useClass:f,deps:[p,r.R0b]},{provide:n.JF,useClass:d,deps:[]},[]];let Y=(()=>{class t{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:r.AFp,useValue:e.appId},{provide:c,useExisting:r.AFp},h]}}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(t,12))},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:H,imports:[n.ez,r.hGG]}),t})();"undefined"!=typeof window&&window},6853:(t,e,i)=>{"use strict";i.d(e,{gz:()=>Gt,gk:()=>q,m2:()=>U,Q3:()=>z,OD:()=>B,Av:()=>V,F0:()=>pi,rH:()=>fi,Od:()=>yi,yS:()=>mi,Bz:()=>Ti,lC:()=>bi});var n=i(1511),r=i(1572),s=i(9162),o=i(2391),a=i(6042),l=i(3386),c=i(4659);function h(){return(0,l.e)(function(t,e){var i=null;t._refCount++;var n=new c.Q(e,void 0,void 0,void 0,function(){if(!t||t._refCount<=0||0<--t._refCount)i=null;else{var n=t._connection,r=i;i=null,!n||r&&n!==r||n.unsubscribe(),e.unsubscribe()}});t.subscribe(n),n.closed||(i=t.connect())})}var u=function(t){function e(e,i){var n=t.call(this)||this;return n.source=e,n.subjectFactory=i,n._subject=null,n._refCount=0,n._connection=null,(0,l.A)(e)&&(n.lift=e.lift),n}return(0,s.ZT)(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype._teardown=function(){this._refCount=0;var t=this._connection;this._subject=this._connection=null,null==t||t.unsubscribe()},e.prototype.connect=function(){var t=this,e=this._connection;if(!e){e=this._connection=new a.w0;var i=this.getSubject();e.add(this.source.subscribe(new c.Q(i,void 0,function(){t._teardown(),i.complete()},function(e){t._teardown(),i.error(e)},function(){return t._teardown()}))),e.closed&&(this._connection=null,e=a.w0.EMPTY)}return e},e.prototype.refCount=function(){return h()(this)},e}(o.y),d=i(5630),p=i(2041),f=i(7425),m=i(5868),g=i(7325),y=i(5613),b=i(970),v=i(4951),_=i(9666),w=i(8868);function x(t){return t<=0?function(){return v.E}:(0,l.e)(function(e,i){var n=[];e.subscribe(new c.Q(i,function(e){n.push(e),tt.length)return null;if("full"===i.pathMatch&&(e.hasChildren()||n.lengthn[e]===t)}return t===e}function lt(t){return Array.prototype.concat.apply([],t)}function ct(t){return t.length>0?t[t.length-1]:null}function ht(t,e){for(const i in t)t.hasOwnProperty(i)&&e(t[i],i)}function ut(t){return(0,r.CqO)(t)?t:(0,r.QGY)(t)?(0,d.Dp)(Promise.resolve(t)):(0,p.of)(t)}const dt={exact:function t(e,i,n){if(!wt(e.segments,i.segments))return!1;if(!yt(e.segments,i.segments,n))return!1;if(e.numberOfChildren!==i.numberOfChildren)return!1;for(const r in i.children){if(!e.children[r])return!1;if(!t(e.children[r],i.children[r],n))return!1}return!0},subset:mt},pt={exact:function(t,e){return ot(t,e)},subset:function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(i=>at(t[i],e[i]))},ignored:()=>!0};function ft(t,e,i){return dt[i.paths](t.root,e.root,i.matrixParams)&&pt[i.queryParams](t.queryParams,e.queryParams)&&!("exact"===i.fragment&&t.fragment!==e.fragment)}function mt(t,e,i){return gt(t,e,e.segments,i)}function gt(t,e,i,n){if(t.segments.length>i.length){const r=t.segments.slice(0,i.length);return!!wt(r,i)&&!e.hasChildren()&&!!yt(r,i,n)}if(t.segments.length===i.length){if(!wt(t.segments,i))return!1;if(!yt(t.segments,i,n))return!1;for(const i in e.children){if(!t.children[i])return!1;if(!mt(t.children[i],e.children[i],n))return!1}return!0}{const r=i.slice(0,t.segments.length),s=i.slice(t.segments.length);return!!wt(t.segments,r)&&!!yt(t.segments,r,n)&&!!t.children.primary&>(t.children.primary,e,s,n)}}function yt(t,e,i){return e.every((e,n)=>pt[i](t[n].parameters,e.parameters))}class bt{constructor(t,e,i){this.root=t,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=nt(this.queryParams)),this._queryParamMap}toString(){return At.serialize(this)}}class vt{constructor(t,e){this.segments=t,this.children=e,this.parent=null,ht(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return St(this)}}class _t{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=nt(this.parameters)),this._parameterMap}toString(){return Ot(this)}}function wt(t,e){return t.length===e.length&&t.every((t,i)=>t.path===e[i].path)}class xt{}class Ct{parse(t){const e=new Ft(t);return new bt(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){var e;return`/${Et(t.root,!0)}${function(t){const e=Object.keys(t).map(e=>{const i=t[e];return Array.isArray(i)?i.map(t=>`${Tt(e)}=${Tt(t)}`).join("&"):`${Tt(e)}=${Tt(i)}`}).filter(t=>!!t);return e.length?`?${e.join("&")}`:""}(t.queryParams)}${"string"==typeof t.fragment?`#${e=t.fragment,encodeURI(e)}`:""}`}}const At=new Ct;function St(t){return t.segments.map(t=>Ot(t)).join("/")}function Et(t,e){if(!t.hasChildren())return St(t);if(e){const e=t.children.primary?Et(t.children.primary,!1):"",i=[];return ht(t.children,(t,e)=>{e!==et&&i.push(`${e}:${Et(t,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function(t,e){let i=[];return ht(t.children,(t,n)=>{n===et&&(i=i.concat(e(t,n)))}),ht(t.children,(t,n)=>{n!==et&&(i=i.concat(e(t,n)))}),i}(t,(e,i)=>i===et?[Et(t.children.primary,!1)]:[`${i}:${Et(e,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children.primary?`${St(t)}/${e[0]}`:`${St(t)}/(${e.join("//")})`}}function kt(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Tt(t){return kt(t).replace(/%3B/gi,";")}function Mt(t){return kt(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Lt(t){return decodeURIComponent(t)}function It(t){return Lt(t.replace(/\+/g,"%20"))}function Ot(t){return`${Mt(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${Mt(t)}=${Mt(e[t])}`).join("")}`;var e}const Dt=/^[^\/()?;=#]+/;function Rt(t){const e=t.match(Dt);return e?e[0]:""}const Nt=/^[^=?&#]+/,Pt=/^[^?&#]+/;class Ft{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new vt([],{}):new vt([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(i.primary=new vt(t,e)),i}parseSegment(){const t=Rt(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new _t(Lt(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=Rt(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const t=Rt(this.remaining);t&&(i=t,this.capture(i))}t[Lt(e)]=Lt(i)}parseQueryParam(t){const e=function(t){const e=t.match(Nt);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const t=function(t){const e=t.match(Pt);return e?e[0]:""}(this.remaining);t&&(i=t,this.capture(i))}const n=It(e),r=It(i);if(t.hasOwnProperty(n)){let e=t[n];Array.isArray(e)||(e=[e],t[n]=e),e.push(r)}else t[n]=r}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=Rt(this.remaining),n=this.remaining[i.length];if("/"!==n&&")"!==n&&";"!==n)throw new Error(`Cannot parse url '${this.url}'`);let r;i.indexOf(":")>-1?(r=i.substr(0,i.indexOf(":")),this.capture(r),this.capture(":")):t&&(r=et);const s=this.parseChildren();e[r]=1===Object.keys(s).length?s.primary:new vt([],s),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class Zt{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=Bt(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=Bt(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=Ut(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return Ut(t,this._root).map(t=>t.value)}}function Bt(t,e){if(t===e.value)return e;for(const i of e.children){const e=Bt(t,i);if(e)return e}return null}function Ut(t,e){if(t===e.value)return[e];for(const i of e.children){const n=Ut(t,i);if(n.length)return n.unshift(e),n}return[]}class qt{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function zt(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class Ht extends Zt{constructor(t,e){super(t),this.snapshot=e,Wt(this,t)}toString(){return this.snapshot.toString()}}function Yt(t,e){const i=function(t,e){const i=new Vt([],{},{},"",{},et,e,null,t.root,-1,{});return new Qt("",new qt(i,[]))}(t,e),n=new f.X([new _t("",{})]),r=new f.X({}),s=new f.X({}),o=new f.X({}),a=new f.X(""),l=new Gt(n,r,o,a,s,et,e,i.root);return l.snapshot=i.root,new Ht(new qt(l,[]),i)}class Gt{constructor(t,e,i,n,r,s,o,a){this.url=t,this.params=e,this.queryParams=i,this.fragment=n,this.data=r,this.outlet=s,this.component=o,this._futureSnapshot=a}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._paramMap=this.params.pipe((0,E.U)(t=>nt(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,E.U)(t=>nt(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function jt(t,e="emptyOnly"){const i=t.pathFromRoot;let n=0;if("always"!==e)for(n=i.length-1;n>=1;){const t=i[n],e=i[n-1];if(t.routeConfig&&""===t.routeConfig.path)n--;else{if(e.component)break;n--}}return function(t){return t.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(i.slice(n))}class Vt{constructor(t,e,i,n,r,s,o,a,l,c,h){this.url=t,this.params=e,this.queryParams=i,this.fragment=n,this.data=r,this.outlet=s,this.component=o,this.routeConfig=a,this._urlSegment=l,this._lastPathIndex=c,this._resolve=h}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._paramMap=nt(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=nt(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Qt extends Zt{constructor(t,e){super(e),this.url=t,Wt(this,e)}toString(){return Jt(this._root)}}function Wt(t,e){e.value._routerState=t,e.children.forEach(e=>Wt(t,e))}function Jt(t){const e=t.children.length>0?` { ${t.children.map(Jt).join(", ")} } `:"";return`${t.value}${e}`}function Xt(t){if(t.snapshot){const e=t.snapshot,i=t._futureSnapshot;t.snapshot=i,ot(e.queryParams,i.queryParams)||t.queryParams.next(i.queryParams),e.fragment!==i.fragment&&t.fragment.next(i.fragment),ot(e.params,i.params)||t.params.next(i.params),function(t,e){if(t.length!==e.length)return!1;for(let i=0;iot(t.parameters,n[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||Kt(t.parent,e.parent))}function $t(t,e,i){if(i&&t.shouldReuseRoute(e.value,i.value.snapshot)){const n=i.value;n._futureSnapshot=e.value;const r=function(t,e,i){return e.children.map(e=>{for(const n of i.children)if(t.shouldReuseRoute(e.value,n.value.snapshot))return $t(t,e,n);return $t(t,e)})}(t,e,i);return new qt(n,r)}{if(t.shouldAttach(e.value)){const i=t.retrieve(e.value);if(null!==i){const t=i.route;return te(e,t),t}}const i=new Gt(new f.X((n=e.value).url),new f.X(n.params),new f.X(n.queryParams),new f.X(n.fragment),new f.X(n.data),n.outlet,n.component,n),r=e.children.map(e=>$t(t,e));return new qt(i,r)}var n}function te(t,e){if(t.value.routeConfig!==e.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==e.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");e.value._futureSnapshot=t.value;for(let i=0;i{s[e]=Array.isArray(t)?t.map(t=>`${t}`):`${t}`}),new bt(i.root===t?e:re(i.root,t,e),s,r)}function re(t,e,i){const n={};return ht(t.children,(t,r)=>{n[r]=t===e?i:re(t,e,i)}),new vt(t.segments,n)}class se{constructor(t,e,i){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=i,t&&i.length>0&&ee(i[0]))throw new Error("Root segment cannot have matrix parameters");const n=i.find(ie);if(n&&n!==ct(i))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class oe{constructor(t,e,i){this.segmentGroup=t,this.processChildren=e,this.index=i}}function ae(t,e,i){if(t||(t=new vt([],{})),0===t.segments.length&&t.hasChildren())return le(t,e,i);const n=function(t,e,i){let n=0,r=e;const s={match:!1,pathIndex:0,commandIndex:0};for(;r=i.length)return s;const e=t.segments[r],o=i[n];if(ie(o))break;const a=`${o}`,l=n0&&void 0===a)break;if(a&&l&&"object"==typeof l&&void 0===l.outlets){if(!de(a,l,e))return s;n+=2}else{if(!de(a,{},e))return s;n++}r++}return{match:!0,pathIndex:r,commandIndex:n}}(t,e,i),r=i.slice(n.commandIndex);if(n.match&&n.pathIndex{"string"==typeof i&&(i=[i]),null!==i&&(r[n]=ae(t.children[n],e,i))}),ht(t.children,(t,e)=>{void 0===n[e]&&(r[e]=t)}),new vt(t.segments,r)}}function ce(t,e,i){const n=t.segments.slice(0,e);let r=0;for(;r{"string"==typeof t&&(t=[t]),null!==t&&(e[i]=ce(new vt([],{}),0,t))}),e}function ue(t){const e={};return ht(t,(t,i)=>e[i]=`${t}`),e}function de(t,e,i){return t==i.path&&ot(e,i.parameters)}class pe{constructor(t,e,i,n){this.routeReuseStrategy=t,this.futureState=e,this.currState=i,this.forwardEvent=n}activate(t){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,t),Xt(this.futureState.root),this.activateChildRoutes(e,i,t)}deactivateChildRoutes(t,e,i){const n=zt(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,n[e],i),delete n[e]}),ht(n,(t,e)=>{this.deactivateRouteAndItsChildren(t,i)})}deactivateRoutes(t,e,i){const n=t.value,r=e?e.value:null;if(n===r)if(n.component){const r=i.getContext(n.outlet);r&&this.deactivateChildRoutes(t,e,r.children)}else this.deactivateChildRoutes(t,e,i);else r&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const i=e.getContext(t.value.outlet);if(i&&i.outlet){const e=i.outlet.detach(),n=i.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:n})}}deactivateRouteAndOutlet(t,e){const i=e.getContext(t.value.outlet),n=i&&t.value.component?i.children:e,r=zt(t);for(const s of Object.keys(r))this.deactivateRouteAndItsChildren(r[s],n);i&&i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated(),i.attachRef=null,i.resolver=null,i.route=null)}activateChildRoutes(t,e,i){const n=zt(e);t.children.forEach(t=>{this.activateRoutes(t,n[t.value.outlet],i),this.forwardEvent(new $(t.value.snapshot))}),t.children.length&&this.forwardEvent(new X(t.value.snapshot))}activateRoutes(t,e,i){const n=t.value,r=e?e.value:null;if(Xt(n),n===r)if(n.component){const r=i.getOrCreateContext(n.outlet);this.activateChildRoutes(t,e,r.children)}else this.activateChildRoutes(t,e,i);else if(n.component){const e=i.getOrCreateContext(n.outlet);if(this.routeReuseStrategy.shouldAttach(n.snapshot)){const t=this.routeReuseStrategy.retrieve(n.snapshot);this.routeReuseStrategy.store(n.snapshot,null),e.children.onOutletReAttached(t.contexts),e.attachRef=t.componentRef,e.route=t.route.value,e.outlet&&e.outlet.attach(t.componentRef,t.route.value),fe(t.route)}else{const i=function(t){for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(n.snapshot),r=i?i.module.componentFactoryResolver:null;e.attachRef=null,e.route=n,e.resolver=r,e.outlet&&e.outlet.activateWith(n,r),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,i)}}function fe(t){Xt(t.value),t.children.forEach(fe)}class me{constructor(t,e){this.routes=t,this.module=e}}function ge(t){return"function"==typeof t}function ye(t){return t instanceof bt}const be=Symbol("INITIAL_VALUE");function ve(){return(0,k.w)(t=>(0,m.a)(t.map(t=>t.pipe((0,T.q)(1),(0,M.O)(be)))).pipe((0,L.R)((t,e)=>{let i=!1;return e.reduce((t,n,r)=>{if(t!==be)return t;if(n===be&&(i=!0),!i){if(!1===n)return n;if(r===e.length-1||ye(n))return n}return t},t)},be),(0,w.h)(t=>t!==be),(0,E.U)(t=>ye(t)?t:!0===t),(0,T.q)(1)))}let _e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=r.Xpm({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&r._UZ(0,"router-outlet")},directives:function(){return[bi]},encapsulation:2}),t})();function we(t,e=""){for(let i=0;iSe(t)===e);return i.push(...t.filter(t=>Se(t)!==e)),i}const ke={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function Te(t,e,i){var n;if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||i.length>0)?Object.assign({},ke):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const r=(e.matcher||st)(i,t,e);if(!r)return Object.assign({},ke);const s={};ht(r.posParams,(t,e)=>{s[e]=t.path});const o=r.consumed.length>0?Object.assign(Object.assign({},s),r.consumed[r.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:o,positionalParamSegments:null!==(n=r.posParams)&&void 0!==n?n:{}}}function Me(t,e,i,n,r="corrected"){if(i.length>0&&function(t,e,i){return i.some(i=>Le(t,e,i)&&Se(i)!==et)}(t,i,n)){const r=new vt(e,function(t,e,i,n){const r={};r.primary=n,n._sourceSegment=t,n._segmentIndexShift=e.length;for(const s of i)if(""===s.path&&Se(s)!==et){const i=new vt([],{});i._sourceSegment=t,i._segmentIndexShift=e.length,r[Se(s)]=i}return r}(t,e,n,new vt(i,t.children)));return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:[]}}if(0===i.length&&function(t,e,i){return i.some(i=>Le(t,e,i))}(t,i,n)){const s=new vt(t.segments,function(t,e,i,n,r,s){const o={};for(const a of n)if(Le(t,i,a)&&!r[Se(a)]){const i=new vt([],{});i._sourceSegment=t,i._segmentIndexShift="legacy"===s?t.segments.length:e.length,o[Se(a)]=i}return Object.assign(Object.assign({},r),o)}(t,e,i,n,t.children,r));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:i}}const s=new vt(t.segments,t.children);return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:i}}function Le(t,e,i){return(!(t.hasChildren()||e.length>0)||"full"!==i.pathMatch)&&""===i.path}function Ie(t,e,i,n){return!!(Se(t)===n||n!==et&&Le(e,i,t))&&("**"===t.path||Te(e,t,i).matched)}function Oe(t,e,i){return 0===e.length&&!t.children[i]}class De{constructor(t){this.segmentGroup=t||null}}class Re{constructor(t){this.urlTree=t}}function Ne(t){return new o.y(e=>e.error(new De(t)))}function Pe(t){return new o.y(e=>e.error(new Re(t)))}function Fe(t){return new o.y(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class Ze{constructor(t,e,i,n,s){this.configLoader=e,this.urlSerializer=i,this.urlTree=n,this.config=s,this.allowRedirects=!0,this.ngModule=t.get(r.h0i)}apply(){const t=Me(this.urlTree.root,[],[],this.config).segmentGroup,e=new vt(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,e,et).pipe((0,E.U)(t=>this.createUrlTree(Be(t),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,I.K)(t=>{if(t instanceof Re)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof De)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,et).pipe((0,E.U)(e=>this.createUrlTree(Be(e),t.queryParams,t.fragment))).pipe((0,I.K)(t=>{if(t instanceof De)throw this.noMatchError(t);throw t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,i){const n=t.segments.length>0?new vt([],{[et]:t}):t;return new bt(n,e,i)}expandSegmentGroup(t,e,i,n){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(t,e,i).pipe((0,E.U)(t=>new vt([],t))):this.expandSegment(t,i,e,i.segments,n,!0)}expandChildren(t,e,i){const n=[];for(const r of Object.keys(i.children))"primary"===r?n.unshift(r):n.push(r);return(0,d.Dp)(n).pipe((0,O.b)(n=>{const r=i.children[n],s=Ee(e,n);return this.expandSegmentGroup(t,s,r,n).pipe((0,E.U)(t=>({segment:t,outlet:n})))}),(0,L.R)((t,e)=>(t[e.outlet]=e.segment,t),{}),function(t,e){var i=arguments.length>=2;return function(n){return n.pipe(t?(0,w.h)(function(e,i){return t(e,i,n)}):S.y,x(1),i?(0,A.d)(e):(0,C.T)(function(){return new g.K}))}}())}expandSegment(t,e,i,n,r,s){return(0,d.Dp)(i).pipe((0,O.b)(o=>this.expandSegmentAgainstRoute(t,e,i,o,n,r,s).pipe((0,I.K)(t=>{if(t instanceof De)return(0,p.of)(null);throw t}))),(0,D.P)(t=>!!t),(0,I.K)((t,i)=>{if(t instanceof g.K||"EmptyError"===t.name){if(Oe(e,n,r))return(0,p.of)(new vt([],{}));throw new De(e)}throw t}))}expandSegmentAgainstRoute(t,e,i,n,r,s,o){return Ie(n,e,r,s)?void 0===n.redirectTo?this.matchSegmentAgainstRoute(t,e,n,r,s):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,i,n,r,s):Ne(e):Ne(e)}expandSegmentAgainstRouteUsingRedirect(t,e,i,n,r,s){return"**"===n.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,i,n,s):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,n,r,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,i,n){const r=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?Pe(r):this.lineralizeSegments(i,r).pipe((0,R.z)(i=>{const r=new vt(i,{});return this.expandSegment(t,r,e,i,n,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,n,r,s){const{matched:o,consumedSegments:a,lastChild:l,positionalParamSegments:c}=Te(e,n,r);if(!o)return Ne(e);const h=this.applyRedirectCommands(a,n.redirectTo,c);return n.redirectTo.startsWith("/")?Pe(h):this.lineralizeSegments(n,h).pipe((0,R.z)(n=>this.expandSegment(t,e,i,n.concat(r.slice(l)),s,!1)))}matchSegmentAgainstRoute(t,e,i,n,r){if("**"===i.path)return i.loadChildren?(i._loadedConfig?(0,p.of)(i._loadedConfig):this.configLoader.load(t.injector,i)).pipe((0,E.U)(t=>(i._loadedConfig=t,new vt(n,{})))):(0,p.of)(new vt(n,{}));const{matched:s,consumedSegments:o,lastChild:a}=Te(e,i,n);if(!s)return Ne(e);const l=n.slice(a);return this.getChildConfig(t,i,n).pipe((0,R.z)(t=>{const n=t.module,s=t.routes,{segmentGroup:a,slicedSegments:c}=Me(e,o,l,s),h=new vt(a.segments,a.children);if(0===c.length&&h.hasChildren())return this.expandChildren(n,s,h).pipe((0,E.U)(t=>new vt(o,t)));if(0===s.length&&0===c.length)return(0,p.of)(new vt(o,{}));const u=Se(i)===r;return this.expandSegment(n,h,s,c,u?et:r,!0).pipe((0,E.U)(t=>new vt(o.concat(t.segments),t.children)))}))}getChildConfig(t,e,i){return e.children?(0,p.of)(new me(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?(0,p.of)(e._loadedConfig):this.runCanLoadGuards(t.injector,e,i).pipe((0,R.z)(i=>i?this.configLoader.load(t.injector,e).pipe((0,E.U)(t=>(e._loadedConfig=t,t))):function(t){return new o.y(e=>e.error(rt(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):(0,p.of)(new me([],t))}runCanLoadGuards(t,e,i){const n=e.canLoad;if(!n||0===n.length)return(0,p.of)(!0);const r=n.map(n=>{const r=t.get(n);let s;if(function(t){return t&&ge(t.canLoad)}(r))s=r.canLoad(e,i);else{if(!ge(r))throw new Error("Invalid CanLoad guard");s=r(e,i)}return ut(s)});return(0,p.of)(r).pipe(ve(),(0,N.b)(t=>{if(!ye(t))return;const e=rt(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e}),(0,E.U)(t=>!0===t))}lineralizeSegments(t,e){let i=[],n=e.root;for(;;){if(i=i.concat(n.segments),0===n.numberOfChildren)return(0,p.of)(i);if(n.numberOfChildren>1||!n.children.primary)return Fe(t.redirectTo);n=n.children.primary}}applyRedirectCommands(t,e,i){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,i)}applyRedirectCreatreUrlTree(t,e,i,n){const r=this.createSegmentGroup(t,e.root,i,n);return new bt(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const i={};return ht(t,(t,n)=>{if("string"==typeof t&&t.startsWith(":")){const r=t.substring(1);i[n]=e[r]}else i[n]=t}),i}createSegmentGroup(t,e,i,n){const r=this.createSegments(t,e.segments,i,n);let s={};return ht(e.children,(e,r)=>{s[r]=this.createSegmentGroup(t,e,i,n)}),new vt(r,s)}createSegments(t,e,i,n){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,n):this.findOrReturn(e,i))}findPosParam(t,e,i){const n=i[e.path.substring(1)];if(!n)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return n}findOrReturn(t,e){let i=0;for(const n of e){if(n.path===t.path)return e.splice(i),n;i++}return t}}function Be(t){const e={};for(const i of Object.keys(t.children)){const n=Be(t.children[i]);(n.segments.length>0||n.hasChildren())&&(e[i]=n)}return function(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new vt(t.segments.concat(e.segments),e.children)}return t}(new vt(t.segments,e))}class Ue{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class qe{constructor(t,e){this.component=t,this.route=e}}function ze(t,e,i){const n=t._root;return Ye(n,e?e._root:null,i,[n.value])}function He(t,e,i){const n=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(n?n.module.injector:i).get(t)}function Ye(t,e,i,n,r={canDeactivateChecks:[],canActivateChecks:[]}){const s=zt(e);return t.children.forEach(t=>{!function(t,e,i,n,r={canDeactivateChecks:[],canActivateChecks:[]}){const s=t.value,o=e?e.value:null,a=i?i.getContext(t.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){const l=function(t,e,i){if("function"==typeof i)return i(t,e);switch(i){case"pathParamsChange":return!wt(t.url,e.url);case"pathParamsOrQueryParamsChange":return!wt(t.url,e.url)||!ot(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Kt(t,e)||!ot(t.queryParams,e.queryParams);case"paramsChange":default:return!Kt(t,e)}}(o,s,s.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new Ue(n)):(s.data=o.data,s._resolvedData=o._resolvedData),Ye(t,e,s.component?a?a.children:null:i,n,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new qe(a.outlet.component,o))}else o&&Ge(e,a,r),r.canActivateChecks.push(new Ue(n)),Ye(t,null,s.component?a?a.children:null:i,n,r)}(t,s[t.value.outlet],i,n.concat([t.value]),r),delete s[t.value.outlet]}),ht(s,(t,e)=>Ge(t,i.getContext(e),r)),r}function Ge(t,e,i){const n=zt(t),r=t.value;ht(n,(t,n)=>{Ge(t,r.component?e?e.children.getContext(n):null:e,i)}),i.canDeactivateChecks.push(new qe(r.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,r))}class je{}function Ve(t){return new o.y(e=>e.error(t))}class Qe{constructor(t,e,i,n,r,s){this.rootComponentType=t,this.config=e,this.urlTree=i,this.url=n,this.paramsInheritanceStrategy=r,this.relativeLinkResolution=s}recognize(){const t=Me(this.urlTree.root,[],[],this.config.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,et);if(null===e)return null;const i=new Vt([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},et,this.rootComponentType,null,this.urlTree.root,-1,{}),n=new qt(i,e),r=new Qt(this.url,n);return this.inheritParamsAndData(r._root),r}inheritParamsAndData(t){const e=t.value,i=jt(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,i){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,i)}processChildren(t,e){const i=[];for(const r of Object.keys(e.children)){const n=e.children[r],s=Ee(t,r),o=this.processSegmentGroup(s,n,r);if(null===o)return null;i.push(...o)}const n=Je(i);return n.sort((t,e)=>t.value.outlet===et?-1:e.value.outlet===et?1:t.value.outlet.localeCompare(e.value.outlet)),n}processSegment(t,e,i,n){for(const r of t){const t=this.processSegmentAgainstRoute(r,e,i,n);if(null!==t)return t}return Oe(e,i,n)?[]:null}processSegmentAgainstRoute(t,e,i,n){if(t.redirectTo||!Ie(t,e,i,n))return null;let r,s=[],o=[];if("**"===t.path){const n=i.length>0?ct(i).parameters:{};r=new Vt(i,n,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,$e(t),Se(t),t.component,t,Xe(e),Ke(e)+i.length,ti(t))}else{const n=Te(e,t,i);if(!n.matched)return null;s=n.consumedSegments,o=i.slice(n.lastChild),r=new Vt(s,n.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,$e(t),Se(t),t.component,t,Xe(e),Ke(e)+s.length,ti(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:l,slicedSegments:c}=Me(e,s,o,a.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution);if(0===c.length&&l.hasChildren()){const t=this.processChildren(a,l);return null===t?null:[new qt(r,t)]}if(0===a.length&&0===c.length)return[new qt(r,[])];const h=Se(t)===n,u=this.processSegment(a,l,c,h?et:n);return null===u?null:[new qt(r,u)]}}function We(t){const e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function Je(t){const e=[],i=new Set;for(const n of t){if(!We(n)){e.push(n);continue}const t=e.find(t=>n.value.routeConfig===t.value.routeConfig);void 0!==t?(t.children.push(...n.children),i.add(t)):e.push(n)}for(const n of i){const t=Je(n.children);e.push(new qt(n.value,t))}return e.filter(t=>!i.has(t))}function Xe(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function Ke(t){let e=t,i=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,i+=e._segmentIndexShift?e._segmentIndexShift:0;return i-1}function $e(t){return t.data||{}}function ti(t){return t.resolve||{}}function ei(t){return(0,k.w)(e=>{const i=t(e);return i?(0,d.Dp)(i).pipe((0,E.U)(()=>e)):(0,p.of)(e)})}class ii extends class{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}const ni=new r.OlP("ROUTES");class ri{constructor(t,e,i,n){this.loader=t,this.compiler=e,this.onLoadStartListener=i,this.onLoadEndListener=n}load(t,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const i=this.loadModuleFactory(e.loadChildren).pipe((0,E.U)(i=>{this.onLoadEndListener&&this.onLoadEndListener(e);const n=i.create(t);return new me(lt(n.injector.get(ni,void 0,r.XFs.Self|r.XFs.Optional)).map(Ae),n)}),(0,I.K)(t=>{throw e._loader$=void 0,t}));return e._loader$=new u(i,()=>new _.x).pipe(h()),e._loader$}loadModuleFactory(t){return"string"==typeof t?(0,d.Dp)(this.loader.load(t)):ut(t()).pipe((0,R.z)(t=>t instanceof r.YKP?(0,p.of)(t):(0,d.Dp)(this.compiler.compileModuleAsync(t))))}}class si{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new oi,this.attachRef=null}}class oi{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const i=this.getOrCreateContext(t);i.outlet=e,this.contexts.set(t,i)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new si,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class ai{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function li(t){throw t}function ci(t,e,i){return e.parse("/")}function hi(t,e){return(0,p.of)(null)}const ui={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},di={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let pi=(()=>{class t{constructor(t,e,i,n,s,o,a,l){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=i,this.location=n,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new _.x,this.errorHandler=li,this.malformedUriErrorHandler=ci,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:hi,afterPreactivation:hi},this.urlHandlingStrategy=new ai,this.routeReuseStrategy=new ii,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=s.get(r.h0i),this.console=s.get(r.c2e);const c=s.get(r.R0b);this.isNgZoneEnabled=c instanceof r.R0b&&r.R0b.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=new bt(new vt([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new ri(o,a,t=>this.triggerEvent(new Q(t)),t=>this.triggerEvent(new W(t))),this.routerState=Yt(this.currentUrlTree,this.rootComponentType),this.transitions=new f.X({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}setupNavigations(t){const e=this.events;return t.pipe((0,w.h)(t=>0!==t.id),(0,E.U)(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),(0,k.w)(t=>{let i=!1,n=!1;return(0,p.of)(t).pipe((0,N.b)(t=>{this.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,k.w)(t=>{const i=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||i)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return(0,p.of)(t).pipe((0,k.w)(t=>{const i=this.transitions.getValue();return e.next(new B(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),i!==this.transitions.getValue()?v.E:Promise.resolve(t)}),(n=this.ngModule.injector,r=this.configLoader,s=this.urlSerializer,o=this.config,(0,k.w)(t=>function(t,e,i,n,r){return new Ze(t,e,i,n,r).apply()}(n,r,s,t.extractedUrl,o).pipe((0,E.U)(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e}))))),(0,N.b)(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,i,n,r){return(0,R.z)(s=>function(t,e,i,n,r="emptyOnly",s="legacy"){try{const o=new Qe(t,e,i,n,r,s).recognize();return null===o?Ve(new je):(0,p.of)(o)}catch(o){return Ve(o)}}(t,e,s.urlAfterRedirects,i(s.urlAfterRedirects),n,r).pipe((0,E.U)(t=>Object.assign(Object.assign({},s),{targetSnapshot:t}))))}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,N.b)(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,t),this.browserUrlTree=t.urlAfterRedirects);const i=new H(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(i)}));var n,r,s,o;if(i&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:i,extractedUrl:n,source:r,restoredState:s,extras:o}=t,a=new B(i,this.serializeUrl(n),r,s);e.next(a);const l=Yt(n,this.rootComponentType).snapshot;return(0,p.of)(Object.assign(Object.assign({},t),{targetSnapshot:l,urlAfterRedirects:n,extras:Object.assign(Object.assign({},o),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),v.E}),ei(t=>{const{targetSnapshot:e,id:i,extractedUrl:n,rawUrl:r,extras:{skipLocationChange:s,replaceUrl:o}}=t;return this.hooks.beforePreactivation(e,{navigationId:i,appliedUrlTree:n,rawUrlTree:r,skipLocationChange:!!s,replaceUrl:!!o})}),(0,N.b)(t=>{const e=new Y(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),(0,E.U)(t=>Object.assign(Object.assign({},t),{guards:ze(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return(0,R.z)(i=>{const{targetSnapshot:n,currentSnapshot:r,guards:{canActivateChecks:s,canDeactivateChecks:o}}=i;return 0===o.length&&0===s.length?(0,p.of)(Object.assign(Object.assign({},i),{guardsResult:!0})):function(t,e,i,n){return(0,d.Dp)(t).pipe((0,R.z)(t=>function(t,e,i,n,r){const s=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!s||0===s.length)return(0,p.of)(!0);const o=s.map(s=>{const o=He(s,e,r);let a;if(function(t){return t&&ge(t.canDeactivate)}(o))a=ut(o.canDeactivate(t,e,i,n));else{if(!ge(o))throw new Error("Invalid CanDeactivate guard");a=ut(o(t,e,i,n))}return a.pipe((0,D.P)())});return(0,p.of)(o).pipe(ve())}(t.component,t.route,i,e,n)),(0,D.P)(t=>!0!==t,!0))}(o,n,r,t).pipe((0,R.z)(i=>i&&"boolean"==typeof i?function(t,e,i,n){return(0,d.Dp)(e).pipe((0,O.b)(e=>(0,y.z)(function(t,e){return null!==t&&e&&e(new J(t)),(0,p.of)(!0)}(e.route.parent,n),function(t,e){return null!==t&&e&&e(new K(t)),(0,p.of)(!0)}(e.route,n),function(t,e,i){const n=e[e.length-1],r=e.slice(0,e.length-1).reverse().map(t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)).filter(t=>null!==t).map(e=>(0,b.P)(()=>{const r=e.guards.map(r=>{const s=He(r,e.node,i);let o;if(function(t){return t&&ge(t.canActivateChild)}(s))o=ut(s.canActivateChild(n,t));else{if(!ge(s))throw new Error("Invalid CanActivateChild guard");o=ut(s(n,t))}return o.pipe((0,D.P)())});return(0,p.of)(r).pipe(ve())}));return(0,p.of)(r).pipe(ve())}(t,e.path,i),function(t,e,i){const n=e.routeConfig?e.routeConfig.canActivate:null;if(!n||0===n.length)return(0,p.of)(!0);const r=n.map(n=>(0,b.P)(()=>{const r=He(n,e,i);let s;if(function(t){return t&&ge(t.canActivate)}(r))s=ut(r.canActivate(e,t));else{if(!ge(r))throw new Error("Invalid CanActivate guard");s=ut(r(e,t))}return s.pipe((0,D.P)())}));return(0,p.of)(r).pipe(ve())}(t,e.route,i))),(0,D.P)(t=>!0!==t,!0))}(n,s,t,e):(0,p.of)(i)),(0,E.U)(t=>Object.assign(Object.assign({},i),{guardsResult:t})))})}(this.ngModule.injector,t=>this.triggerEvent(t)),(0,N.b)(t=>{if(ye(t.guardsResult)){const e=rt(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}const e=new G(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),(0,w.h)(t=>!!t.guardsResult||(this.cancelNavigationTransition(t,""),!1)),ei(t=>{if(t.guards.canActivateChecks.length)return(0,p.of)(t).pipe((0,N.b)(t=>{const e=new j(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),(0,k.w)(t=>{let e=!1;return(0,p.of)(t).pipe((i=this.paramsInheritanceStrategy,n=this.ngModule.injector,(0,R.z)(t=>{const{targetSnapshot:e,guards:{canActivateChecks:r}}=t;if(!r.length)return(0,p.of)(t);let s=0;return(0,d.Dp)(r).pipe((0,O.b)(t=>function(t,e,i,n){return function(t,e,i,n){const r=Object.keys(t);if(0===r.length)return(0,p.of)({});const s={};return(0,d.Dp)(r).pipe((0,R.z)(r=>function(t,e,i,n){const r=He(t,e,n);return ut(r.resolve?r.resolve(e,i):r(e,i))}(t[r],e,i,n).pipe((0,N.b)(t=>{s[r]=t}))),x(1),(0,R.z)(()=>Object.keys(s).length===r.length?(0,p.of)(s):v.E))}(t._resolve,t,e,n).pipe((0,E.U)(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),jt(t,i).resolve),null)))}(t.route,e,i,n)),(0,N.b)(()=>s++),x(1),(0,R.z)(e=>s===r.length?(0,p.of)(t):v.E))})),(0,N.b)({next:()=>e=!0,complete:()=>{e||this.cancelNavigationTransition(t,"At least one route resolver didn't emit any value.")}}));var i,n}),(0,N.b)(t=>{const e=new V(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),ei(t=>{const{targetSnapshot:e,id:i,extractedUrl:n,rawUrl:r,extras:{skipLocationChange:s,replaceUrl:o}}=t;return this.hooks.afterPreactivation(e,{navigationId:i,appliedUrlTree:n,rawUrlTree:r,skipLocationChange:!!s,replaceUrl:!!o})}),(0,E.U)(t=>{const e=function(t,e,i){const n=$t(t,e._root,i?i._root:void 0);return new Ht(n,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),(0,N.b)(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,t),this.browserUrlTree=t.urlAfterRedirects)}),(r=this.rootContexts,s=this.routeReuseStrategy,o=t=>this.triggerEvent(t),(0,E.U)(t=>(new pe(s,t.targetRouterState,t.currentRouterState,o).activate(r),t))),(0,N.b)({next(){i=!0},complete(){i=!0}}),(0,P.x)(()=>{i||n||this.cancelNavigationTransition(t,`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`),this.currentNavigation=null}),(0,I.K)(i=>{if(n=!0,(r=i)&&r.ngNavigationCancelingError){const n=ye(i.url);n||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const r=new q(t.id,this.serializeUrl(t.extractedUrl),i.message);e.next(r),n?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(i.url,this.rawUrlTree);this.scheduleNavigation(e,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);const n=new z(t.id,this.serializeUrl(t.extractedUrl),i);e.next(n);try{t.resolve(this.errorHandler(i))}catch(s){t.reject(s)}}var r;return v.E}));var r,s,o}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const e=this.extractLocationChangeInfoFromEvent(t);this.shouldScheduleNavigation(this.lastLocationChangeInfo,e)&&setTimeout(()=>{const{source:t,state:i,urlTree:n}=e,r={replaceUrl:!0};if(i){const t=Object.assign({},i);delete t.navigationId,delete t.\u0275routerPageId,0!==Object.keys(t).length&&(r.state=t)}this.scheduleNavigation(n,t,i,r)},0),this.lastLocationChangeInfo=e}))}extractLocationChangeInfoFromEvent(t){var e;return{source:"popstate"===t.type?"popstate":"hashchange",urlTree:this.parseUrl(t.url),state:(null===(e=t.state)||void 0===e?void 0:e.navigationId)?t.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(t,e){if(!t)return!0;const i=e.urlTree.toString()===t.urlTree.toString();return!(e.transitionId===t.transitionId&&i&&("hashchange"===e.source&&"popstate"===t.source||"popstate"===e.source&&"hashchange"===t.source))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){we(t),this.config=t.map(Ae),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(t,e={}){const{relativeTo:i,queryParams:n,fragment:r,queryParamsHandling:s,preserveFragment:o}=e,a=i||this.routerState.root,l=o?this.currentUrlTree.fragment:r;let c=null;switch(s){case"merge":c=Object.assign(Object.assign({},this.currentUrlTree.queryParams),n);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=n||null}return null!==c&&(c=this.removeEmptyProps(c)),function(t,e,i,n,r){if(0===i.length)return ne(e.root,e.root,e,n,r);const s=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new se(!0,0,t);let e=0,i=!1;const n=t.reduce((t,n,r)=>{if("object"==typeof n&&null!=n){if(n.outlets){const e={};return ht(n.outlets,(t,i)=>{e[i]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(n.segmentPath)return[...t,n.segmentPath]}return"string"!=typeof n?[...t,n]:0===r?(n.split("/").forEach((n,r)=>{0==r&&"."===n||(0==r&&""===n?i=!0:".."===n?e++:""!=n&&t.push(n))}),t):[...t,n]},[]);return new se(i,e,n)}(i);if(s.toRoot())return ne(e.root,new vt([],{}),e,n,r);const o=function(t,e,i){if(t.isAbsolute)return new oe(e.root,!0,0);if(-1===i.snapshot._lastPathIndex){const t=i.snapshot._urlSegment;return new oe(t,t===e.root,0)}const n=ee(t.commands[0])?0:1;return function(t,e,i){let n=t,r=e,s=i;for(;s>r;){if(s-=r,n=n.parent,!n)throw new Error("Invalid number of '../'");r=n.segments.length}return new oe(n,!1,r-s)}(i.snapshot._urlSegment,i.snapshot._lastPathIndex+n,t.numberOfDoubleDots)}(s,e,t),a=o.processChildren?le(o.segmentGroup,o.index,s.commands):ae(o.segmentGroup,o.index,s.commands);return ne(o.segmentGroup,a,e,n,r)}(a,this.currentUrlTree,t,c,null!=l?l:null)}navigateByUrl(t,e={skipLocationChange:!1}){const i=ye(t)?t:this.parseUrl(t),n=this.urlHandlingStrategy.merge(i,this.rawUrlTree);let r=null;return"computed"===this.canceledNavigationResolution&&(0===this.currentPageId||e.skipLocationChange||e.replaceUrl)&&(r=this.location.getState()),this.scheduleNavigation(n,"imperative",r,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e{const n=t[i];return null!=n&&(e[i]=n),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.currentPageId=t.targetPageId,this.events.next(new U(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,i,n,r){if(this.disposed)return Promise.resolve(!1);const s=this.getTransition(),o="imperative"!==e&&"imperative"===(null==s?void 0:s.source),a=(this.lastSuccessfulId===s.id||this.currentNavigation?s.rawUrl:s.urlAfterRedirects).toString()===t.toString();if(o&&a)return Promise.resolve(!0);let l,c,h;r?(l=r.resolve,c=r.reject,h=r.promise):h=new Promise((t,e)=>{l=t,c=e});const u=++this.navigationId;let d;return d="computed"===this.canceledNavigationResolution?i&&i.\u0275routerPageId?i.\u0275routerPageId:this.currentPageId+1:0,this.setTransition({id:u,targetPageId:d,source:e,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:n,resolve:l,reject:c,promise:h,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),h.catch(t=>Promise.reject(t))}setBrowserUrl(t,e){const i=this.urlSerializer.serialize(t),n=Object.assign(Object.assign({},e.extras.state),this.generateNgRouterState(e.id,e.targetPageId));this.location.isCurrentPathEqualTo(i)||e.extras.replaceUrl?this.location.replaceState(i,"",n):this.location.go(i,"",n)}resetStateAndUrl(t,e,i){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,i),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(t,e){"computed"===this.canceledNavigationResolution?"popstate"!==t.source&&"eager"!==this.urlUpdateStrategy||this.location.historyGo(this.currentPageId-t.targetPageId):this.resetUrlToCurrentUrlTree();const i=new q(t.id,this.serializeUrl(t.extractedUrl),e);this.triggerEvent(i),t.resolve(!1)}generateNgRouterState(t,e){return"computed"===this.canceledNavigationResolution?{navigationId:t,"\u0275routerPageId":e}:{navigationId:t}}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(r.DyG),r.LFG(xt),r.LFG(oi),r.LFG(n.Ye),r.LFG(r.zs3),r.LFG(r.v3s),r.LFG(r.Sil),r.LFG(void 0))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})(),fi=(()=>{class t{constructor(t,e,i,n,r){this.router=t,this.route=e,this.commands=[],this.onChanges=new _.x,null==i&&n.setAttribute(r.nativeElement,"tabindex","0")}ngOnChanges(t){this.onChanges.next(this)}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}onClick(){const t={skipLocationChange:gi(this.skipLocationChange),replaceUrl:gi(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,t),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:gi(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(pi),r.Y36(Gt),r.$8M("tabindex"),r.Y36(r.Qsj),r.Y36(r.SBq))},t.\u0275dir=r.lG2({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&r.NdJ("click",function(){return e.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[r.TTD]}),t})(),mi=(()=>{class t{constructor(t,e,i){this.router=t,this.route=e,this.locationStrategy=i,this.commands=[],this.onChanges=new _.x,this.subscription=t.events.subscribe(t=>{t instanceof U&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}ngOnChanges(t){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,i,n,r){if(0!==t||e||i||n||r)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const s={skipLocationChange:gi(this.skipLocationChange),replaceUrl:gi(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,s),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:gi(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(pi),r.Y36(Gt),r.Y36(n.S$))},t.\u0275dir=r.lG2({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&r.NdJ("click",function(t){return e.onClick(t.button,t.ctrlKey,t.shiftKey,t.altKey,t.metaKey)}),2&t&&(r.Ikx("href",e.href,r.LSH),r.uIk("target",e.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[r.TTD]}),t})();function gi(t){return""===t||!!t}let yi=(()=>{class t{constructor(t,e,i,n,r,s){this.router=t,this.element=e,this.renderer=i,this.cdr=n,this.link=r,this.linkWithHref=s,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.routerEventsSubscription=t.events.subscribe(t=>{t instanceof U&&this.update()})}ngAfterContentInit(){(0,p.of)(this.links.changes,this.linksWithHrefs.changes,(0,p.of)(null)).pipe((0,F.J)()).subscribe(t=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var t;null===(t=this.linkInputChangesSubscription)||void 0===t||t.unsubscribe();const e=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(t=>!!t).map(t=>t.onChanges);this.linkInputChangesSubscription=(0,d.Dp)(e).pipe((0,F.J)()).subscribe(t=>{this.isActive!==this.isLinkActive(this.router)(t)&&this.update()})}set routerLinkActive(t){const e=Array.isArray(t)?t:t.split(" ");this.classes=e.filter(t=>!!t)}ngOnChanges(t){this.update()}ngOnDestroy(){var t;this.routerEventsSubscription.unsubscribe(),null===(t=this.linkInputChangesSubscription)||void 0===t||t.unsubscribe()}update(){this.links&&this.linksWithHrefs&&this.router.navigated&&Promise.resolve().then(()=>{const t=this.hasActiveLinks();this.isActive!==t&&(this.isActive=t,this.cdr.markForCheck(),this.classes.forEach(e=>{t?this.renderer.addClass(this.element.nativeElement,e):this.renderer.removeClass(this.element.nativeElement,e)}))})}isLinkActive(t){const e="paths"in this.routerLinkActiveOptions?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return i=>t.isActive(i.urlTree,e)}hasActiveLinks(){const t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.linkWithHref&&t(this.linkWithHref)||this.links.some(t)||this.linksWithHrefs.some(t)}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(pi),r.Y36(r.SBq),r.Y36(r.Qsj),r.Y36(r.sBO),r.Y36(fi,8),r.Y36(mi,8))},t.\u0275dir=r.lG2({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(t,e,i){if(1&t&&(r.Suo(i,fi,5),r.Suo(i,mi,5)),2&t){let t;r.iGM(t=r.CRH())&&(e.links=t),r.iGM(t=r.CRH())&&(e.linksWithHrefs=t)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},exportAs:["routerLinkActive"],features:[r.TTD]}),t})(),bi=(()=>{class t{constructor(t,e,i,n,s){this.parentContexts=t,this.location=e,this.resolver=i,this.changeDetector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new r.vpe,this.deactivateEvents=new r.vpe,this.name=n||et,t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const i=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),n=this.parentContexts.getOrCreateContext(this.name).children,r=new vi(t,n,this.location.injector);this.activated=this.location.createComponent(i,this.location.length,r),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(oi),r.Y36(r.s_b),r.Y36(r._Vd),r.$8M("name"),r.Y36(r.sBO))},t.\u0275dir=r.lG2({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class vi{constructor(t,e,i){this.route=t,this.childContexts=e,this.parent=i}get(t,e){return t===Gt?this.route:t===oi?this.childContexts:this.parent.get(t,e)}}class _i{}class wi{preload(t,e){return(0,p.of)(null)}}let xi=(()=>{class t{constructor(t,e,i,n,r){this.router=t,this.injector=n,this.preloadingStrategy=r,this.loader=new ri(e,i,e=>t.triggerEvent(new Q(e)),e=>t.triggerEvent(new W(e)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,w.h)(t=>t instanceof U),(0,O.b)(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(r.h0i);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,e){const i=[];for(const n of e)if(n.loadChildren&&!n.canLoad&&n._loadedConfig){const t=n._loadedConfig;i.push(this.processRoutes(t.module,t.routes))}else n.loadChildren&&!n.canLoad?i.push(this.preloadConfig(t,n)):n.children&&i.push(this.processRoutes(t,n.children));return(0,d.Dp)(i).pipe((0,F.J)(),(0,E.U)(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>(e._loadedConfig?(0,p.of)(e._loadedConfig):this.loader.load(t.injector,e)).pipe((0,R.z)(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(pi),r.LFG(r.v3s),r.LFG(r.Sil),r.LFG(r.zs3),r.LFG(_i))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})(),Ci=(()=>{class t{constructor(t,e,i={}){this.router=t,this.viewportScroller=e,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(t=>{t instanceof B?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof U&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof tt&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,e){this.router.triggerEvent(new tt(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(pi),r.LFG(n.EM),r.LFG(void 0))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})();const Ai=new r.OlP("ROUTER_CONFIGURATION"),Si=new r.OlP("ROUTER_FORROOT_GUARD"),Ei=[n.Ye,{provide:xt,useClass:Ct},{provide:pi,useFactory:function(t,e,i,n,r,s,o,a={},l,c){const h=new pi(null,t,e,i,n,r,s,lt(o));return l&&(h.urlHandlingStrategy=l),c&&(h.routeReuseStrategy=c),function(t,e){t.errorHandler&&(e.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(e.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(e.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(e.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(e.urlUpdateStrategy=t.urlUpdateStrategy)}(a,h),a.enableTracing&&h.events.subscribe(t=>{var e,i;null===(e=console.group)||void 0===e||e.call(console,`Router Event: ${t.constructor.name}`),console.log(t.toString()),console.log(t),null===(i=console.groupEnd)||void 0===i||i.call(console)}),h},deps:[xt,oi,n.Ye,r.zs3,r.v3s,r.Sil,ni,Ai,[class{},new r.FiY],[class{},new r.FiY]]},oi,{provide:Gt,useFactory:function(t){return t.routerState.root},deps:[pi]},{provide:r.v3s,useClass:r.EAV},xi,wi,class{preload(t,e){return e().pipe((0,I.K)(()=>(0,p.of)(null)))}},{provide:Ai,useValue:{enableTracing:!1}}];function ki(){return new r.PXZ("Router",pi)}let Ti=(()=>{class t{constructor(t,e){}static forRoot(e,i){return{ngModule:t,providers:[Ei,Oi(e),{provide:Si,useFactory:Ii,deps:[[pi,new r.FiY,new r.tp0]]},{provide:Ai,useValue:i||{}},{provide:n.S$,useFactory:Li,deps:[n.lw,[new r.tBr(n.mr),new r.FiY],Ai]},{provide:Ci,useFactory:Mi,deps:[pi,n.EM,Ai]},{provide:_i,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:wi},{provide:r.PXZ,multi:!0,useFactory:ki},[Di,{provide:r.ip1,multi:!0,useFactory:Ri,deps:[Di]},{provide:Pi,useFactory:Ni,deps:[Di]},{provide:r.tb,multi:!0,useExisting:Pi}]]}}static forChild(e){return{ngModule:t,providers:[Oi(e)]}}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(Si,8),r.LFG(pi,8))},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({}),t})();function Mi(t,e,i){return i.scrollOffset&&e.setOffset(i.scrollOffset),new Ci(t,e,i)}function Li(t,e,i={}){return i.useHash?new n.Do(t,e):new n.b0(t,e)}function Ii(t){return"guarded"}function Oi(t){return[{provide:r.deG,multi:!0,useValue:t},{provide:ni,multi:!0,useValue:t}]}let Di=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new _.x}appInitializer(){return this.injector.get(n.V_,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),i=this.injector.get(pi),n=this.injector.get(Ai);return"disabled"===n.initialNavigation?(i.setUpLocationChangeListener(),t(!0)):"enabled"===n.initialNavigation||"enabledBlocking"===n.initialNavigation?(i.hooks.afterPreactivation=()=>this.initNavigation?(0,p.of)(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),i.initialNavigation()):t(!0),e})}bootstrapListener(t){const e=this.injector.get(Ai),i=this.injector.get(xi),n=this.injector.get(Ci),s=this.injector.get(pi),o=this.injector.get(r.z2F);t===o.components[0]&&("enabledNonBlocking"!==e.initialNavigation&&void 0!==e.initialNavigation||s.initialNavigation(),i.setUpPreloading(),n.init(),s.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(r.zs3))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})();function Ri(t){return t.appInitializer.bind(t)}function Ni(t){return t.bootstrapListener.bind(t)}const Pi=new r.OlP("Router Initializer")},7592:(t,e,i)=>{"use strict";i.d(e,{BN:()=>kt,uH:()=>Tt});var n=i(1572);function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function o(t){for(var e=1;e0;)e+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return e}function Q(t){return"".concat(t).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function W(t){return Object.keys(t||{}).reduce(function(e,i){return e+"".concat(i,": ").concat(t[i],";")},"")}function J(t){return t.size!==j.size||t.x!==j.x||t.y!==j.y||t.rotate!==j.rotate||t.flipX||t.flipY}function X(t){var e=t.transform,i=t.iconWidth,n={transform:"translate(".concat(t.containerWidth/2," 256)")},r="translate(".concat(32*e.x,", ").concat(32*e.y,") "),s="scale(".concat(e.size/16*(e.flipX?-1:1),", ").concat(e.size/16*(e.flipY?-1:1),") "),o="rotate(".concat(e.rotate," 0 0)");return{outer:n,inner:{transform:"".concat(r," ").concat(s," ").concat(o)},path:{transform:"translate(".concat(i/2*-1," -256)")}}}var K={x:0,y:0,width:"100%",height:"100%"};function $(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return t.attributes&&(t.attributes.fill||e)&&(t.attributes.fill="black"),t}function tt(t){var e=t.icons,i=e.main,n=e.mask,r=t.prefix,s=t.iconName,a=t.transform,l=t.symbol,c=t.title,h=t.maskId,u=t.titleId,d=t.extra,p=t.watchable,f=void 0!==p&&p,m=n.found?n:i,g=m.width,y=m.height,b="fak"===r,v=b?"":"fa-w-".concat(Math.ceil(g/y*16)),_=[w.replacementClass,s?"".concat(w.familyPrefix,"-").concat(s):"",v].filter(function(t){return-1===d.classes.indexOf(t)}).filter(function(t){return""!==t||!!t}).concat(d.classes).join(" "),x={children:[],attributes:o({},d.attributes,{"data-prefix":r,"data-icon":s,class:_,role:d.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(g," ").concat(y)})},C=b&&!~d.classes.indexOf("fa-fw")?{width:"".concat(g/y*16*.0625,"em")}:{};f&&(x.attributes["data-fa-i2svg"]=""),c&&x.children.push({tag:"title",attributes:{id:x.attributes["aria-labelledby"]||"title-".concat(u||V())},children:[c]});var A=o({},x,{prefix:r,iconName:s,main:i,mask:n,maskId:h,transform:a,symbol:l,styles:o({},C,d.styles)}),S=n.found&&i.found?function(t){var e,i=t.children,n=t.attributes,r=t.main,s=t.mask,a=t.maskId,l=r.icon,c=s.icon,h=X({transform:t.transform,containerWidth:s.width,iconWidth:r.width}),u={tag:"rect",attributes:o({},K,{fill:"white"})},d=l.children?{children:l.children.map($)}:{},p={tag:"g",attributes:o({},h.inner),children:[$(o({tag:l.tag,attributes:o({},l.attributes,h.path)},d))]},f={tag:"g",attributes:o({},h.outer),children:[p]},m="mask-".concat(a||V()),g="clip-".concat(a||V()),y={tag:"mask",attributes:o({},K,{id:m,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[u,f]},b={tag:"defs",children:[{tag:"clipPath",attributes:{id:g},children:(e=c,"g"===e.tag?e.children:[e])},y]};return i.push(b,{tag:"rect",attributes:o({fill:"currentColor","clip-path":"url(#".concat(g,")"),mask:"url(#".concat(m,")")},K)}),{children:i,attributes:n}}(A):function(t){var e=t.children,i=t.attributes,n=t.main,r=t.transform,s=W(t.styles);if(s.length>0&&(i.style=s),J(r)){var a=X({transform:r,containerWidth:n.width,iconWidth:n.width});e.push({tag:"g",attributes:o({},a.outer),children:[{tag:"g",attributes:o({},a.inner),children:[{tag:n.icon.tag,children:n.icon.children,attributes:o({},n.icon.attributes,a.path)}]}]})}else e.push(n.icon);return{children:e,attributes:i}}(A),E=S.attributes;return A.children=S.children,A.attributes=E,l?function(t){var e=t.iconName,i=t.children,n=t.symbol;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:o({},t.attributes,{id:!0===n?"".concat(t.prefix,"-").concat(w.familyPrefix,"-").concat(e):n}),children:i}]}]}(A):function(t){var e=t.children,i=t.main,n=t.mask,r=t.attributes,s=t.styles,a=t.transform;if(J(a)&&i.found&&!n.found){var l={x:i.width/i.height/2,y:.5};r.style=W(o({},s,{"transform-origin":"".concat(l.x+a.x/16,"em ").concat(l.y+a.y/16,"em")}))}return[{tag:"svg",attributes:r,children:e}]}(A)}var et=function(t,e,i,n){var r,s,o,a=Object.keys(t),l=a.length,c=void 0!==n?function(t,e){return function(i,n,r,s){return t.call(e,i,n,r,s)}}(e,n):e;for(void 0===i?(r=1,o=t[a[0]]):(r=0,o=i);r2&&void 0!==arguments[2]?arguments[2]:{},n=i.skipHooks,r=void 0!==n&&n,s=Object.keys(e).reduce(function(t,i){var n=e[i];return n.icon?t[n.iconName]=n.icon:t[i]=n,t},{});"function"!=typeof C.hooks.addPack||r?C.styles[t]=o({},C.styles[t]||{},s):C.hooks.addPack(t,s),"fas"===t&&it("fa",e)}var nt=C.styles,rt=C.shims,st=function(){var t=function(t){return et(nt,function(e,i,n){return e[n]=et(i,t,{}),e},{})};t(function(t,e,i){return e[3]&&(t[e[3]]=i),t}),t(function(t,e,i){var n=e[2];return t[i]=i,n.forEach(function(e){t[e]=i}),t});var e="far"in nt;et(rt,function(t,i){var n=i[1];return"far"!==n||e||(n="fas"),t[i[0]]={prefix:n,iconName:i[2]},t},{})};function ot(t,e,i){if(t&&t[e]&&t[e][i])return{prefix:e,iconName:i,icon:t[e][i]}}function at(t){var e=t.tag,i=t.attributes,n=void 0===i?{}:i,r=t.children,s=void 0===r?[]:r;return"string"==typeof t?Q(t):"<".concat(e," ").concat(function(t){return Object.keys(t||{}).reduce(function(e,i){return e+"".concat(i,'="').concat(Q(t[i]),'" ')},"").trim()}(n),">").concat(s.map(at).join(""),"")}function lt(t){this.name="MissingIcon",this.message=t||"Icon unavailable",this.stack=(new Error).stack}st(),(lt.prototype=Object.create(Error.prototype)).constructor=lt;var ct={fill:"currentColor"},ht={attributeType:"XML",repeatCount:"indefinite",dur:"2s"},ut=(o({},ct,{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"}),o({},ht,{attributeName:"opacity"}));function dt(t){var e=t[0],i=t[1],n=a(t.slice(4),1)[0];return{found:!0,width:e,height:i,icon:Array.isArray(n)?{tag:"g",attributes:{class:"".concat(w.familyPrefix,"-").concat(b.GROUP)},children:[{tag:"path",attributes:{class:"".concat(w.familyPrefix,"-").concat(b.SECONDARY),fill:"currentColor",d:n[0]}},{tag:"path",attributes:{class:"".concat(w.familyPrefix,"-").concat(b.PRIMARY),fill:"currentColor",d:n[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:n}}}}function pt(){w.autoAddCss&&!bt&&(function(t){if(t&&f){var e=p.createElement("style");e.setAttribute("type","text/css"),e.innerHTML=t;for(var i=p.head.childNodes,n=null,r=i.length-1;r>-1;r--){var s=i[r],o=(s.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(o)>-1&&(n=s)}p.head.insertBefore(e,n)}}(function(){var t="fa",e=m,i=w.familyPrefix,n=w.replacementClass,r='svg:not(:root).svg-inline--fa {\n overflow: visible;\n}\n\n.svg-inline--fa {\n display: inline-block;\n font-size: inherit;\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.225em;\n}\n.svg-inline--fa.fa-w-1 {\n width: 0.0625em;\n}\n.svg-inline--fa.fa-w-2 {\n width: 0.125em;\n}\n.svg-inline--fa.fa-w-3 {\n width: 0.1875em;\n}\n.svg-inline--fa.fa-w-4 {\n width: 0.25em;\n}\n.svg-inline--fa.fa-w-5 {\n width: 0.3125em;\n}\n.svg-inline--fa.fa-w-6 {\n width: 0.375em;\n}\n.svg-inline--fa.fa-w-7 {\n width: 0.4375em;\n}\n.svg-inline--fa.fa-w-8 {\n width: 0.5em;\n}\n.svg-inline--fa.fa-w-9 {\n width: 0.5625em;\n}\n.svg-inline--fa.fa-w-10 {\n width: 0.625em;\n}\n.svg-inline--fa.fa-w-11 {\n width: 0.6875em;\n}\n.svg-inline--fa.fa-w-12 {\n width: 0.75em;\n}\n.svg-inline--fa.fa-w-13 {\n width: 0.8125em;\n}\n.svg-inline--fa.fa-w-14 {\n width: 0.875em;\n}\n.svg-inline--fa.fa-w-15 {\n width: 0.9375em;\n}\n.svg-inline--fa.fa-w-16 {\n width: 1em;\n}\n.svg-inline--fa.fa-w-17 {\n width: 1.0625em;\n}\n.svg-inline--fa.fa-w-18 {\n width: 1.125em;\n}\n.svg-inline--fa.fa-w-19 {\n width: 1.1875em;\n}\n.svg-inline--fa.fa-w-20 {\n width: 1.25em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-border {\n height: 1.5em;\n}\n.svg-inline--fa.fa-li {\n width: 2em;\n}\n.svg-inline--fa.fa-fw {\n width: 1.25em;\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: #ff253a;\n border-radius: 1em;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: #fff;\n height: 1.5em;\n line-height: 1;\n max-width: 5em;\n min-width: 1.5em;\n overflow: hidden;\n padding: 0.25em;\n right: 0;\n text-overflow: ellipsis;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: 0;\n right: 0;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: 0;\n left: 0;\n right: auto;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n right: 0;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: 0;\n right: auto;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-lg {\n font-size: 1.3333333333em;\n line-height: 0.75em;\n vertical-align: -0.0667em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: 2.5em;\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: -2em;\n position: absolute;\n text-align: center;\n width: 2em;\n line-height: inherit;\n}\n\n.fa-border {\n border: solid 0.08em #eee;\n border-radius: 0.1em;\n padding: 0.2em 0.25em 0.15em;\n}\n\n.fa-pull-left {\n float: left;\n}\n\n.fa-pull-right {\n float: right;\n}\n\n.fa.fa-pull-left,\n.fas.fa-pull-left,\n.far.fa-pull-left,\n.fal.fa-pull-left,\n.fab.fa-pull-left {\n margin-right: 0.3em;\n}\n.fa.fa-pull-right,\n.fas.fa-pull-right,\n.far.fa-pull-right,\n.fal.fa-pull-right,\n.fab.fa-pull-right {\n margin-left: 0.3em;\n}\n\n.fa-spin {\n -webkit-animation: fa-spin 2s infinite linear;\n animation: fa-spin 2s infinite linear;\n}\n\n.fa-pulse {\n -webkit-animation: fa-spin 1s infinite steps(8);\n animation: fa-spin 1s infinite steps(8);\n}\n\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both, .fa-flip-horizontal.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n:root .fa-rotate-90,\n:root .fa-rotate-180,\n:root .fa-rotate-270,\n:root .fa-flip-horizontal,\n:root .fa-flip-vertical,\n:root .fa-flip-both {\n -webkit-filter: none;\n filter: none;\n}\n\n.fa-stack {\n display: inline-block;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: #fff;\n}\n\n.sr-only {\n border: 0;\n clip: rect(0, 0, 0, 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n}\n\n.sr-only-focusable:active, .sr-only-focusable:focus {\n clip: auto;\n height: auto;\n margin: 0;\n overflow: visible;\n position: static;\n width: auto;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: 1;\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: 1;\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse {\n color: #fff;\n}';if(i!==t||n!==e){var s=new RegExp("\\.".concat(t,"\\-"),"g"),o=new RegExp("\\--".concat(t,"\\-"),"g"),a=new RegExp("\\.".concat(e),"g");r=r.replace(s,".".concat(i,"-")).replace(o,"--".concat(i,"-")).replace(a,".".concat(n))}return r}()),bt=!0)}function ft(t,e){return Object.defineProperty(t,"abstract",{get:e}),Object.defineProperty(t,"html",{get:function(){return t.abstract.map(function(t){return at(t)})}}),Object.defineProperty(t,"node",{get:function(){if(f){var e=p.createElement("div");return e.innerHTML=t.html,e.children}}}),t}function mt(t){var e=t.prefix,i=void 0===e?"fa":e,n=t.iconName;if(n)return ot(yt.definitions,i,n)||ot(C.styles,i,n)}o({},ct,{cx:"256",cy:"364",r:"28"}),o({},ht,{attributeName:"r",values:"28;14;28;28;14;28;"}),o({},ut,{values:"1;0;1;1;0;1;"}),o({},ct,{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),o({},ut,{values:"1;0;0;0;0;1;"}),o({},ct,{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),o({},ut,{values:"0;0;1;1;0;0;"});var gt,yt=new(function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.definitions={}}var e;return(e=[{key:"add",value:function(){for(var t=this,e=arguments.length,i=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:{},i=e.transform,n=void 0===i?j:i,r=e.symbol,s=void 0!==r&&r,a=e.mask,l=void 0===a?null:a,c=e.maskId,h=void 0===c?null:c,u=e.title,d=void 0===u?null:u,p=e.titleId,f=void 0===p?null:p,m=e.classes,g=void 0===m?[]:m,y=e.attributes,b=void 0===y?{}:y,v=e.styles,_=void 0===v?{}:v;if(t){var x=t.prefix,C=t.iconName,A=t.icon;return ft(o({type:"icon"},t),function(){return pt(),w.autoA11y&&(d?b["aria-labelledby"]="".concat(w.replacementClass,"-title-").concat(f||V()):(b["aria-hidden"]="true",b.focusable="false")),tt({icons:{main:dt(A),mask:l?dt(l.icon):{found:!1,width:null,height:null,icon:{}}},prefix:x,iconName:C,transform:o({},j,n),symbol:s,title:d,maskId:h,titleId:f,extra:{attributes:b,styles:_,classes:g}})})}},function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=(t||{}).icon?t:mt(t||{}),n=e.mask;return n&&(n=(n||{}).icon?n:mt(n||{})),gt(i,o({},e,{mask:n}))}),_t=i(269);const wt=["*"];let xt=(()=>{class t{constructor(){this.defaultPrefix="fas",this.fallbackIcon=null,this.globalLibrary=!1}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,n.Yz7)({factory:function(){return new t},token:t,providedIn:"root"}),t})(),Ct=(()=>{class t{constructor(){this.definitions={}}addIcons(...t){for(const e of t)e.prefix in this.definitions||(this.definitions[e.prefix]={}),this.definitions[e.prefix][e.iconName]=e}addIconPacks(...t){for(const e of t){const t=Object.keys(e).map(t=>e[t]);this.addIcons(...t)}}getIconDefinition(t,e){return t in this.definitions&&e in this.definitions[t]?this.definitions[t][e]:null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,n.Yz7)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const At=t=>{const e={"fa-spin":t.spin,"fa-pulse":t.pulse,"fa-fw":t.fixedWidth,"fa-border":t.border,"fa-inverse":t.inverse,"fa-layers-counter":t.counter,"fa-flip-horizontal":"horizontal"===t.flip||"both"===t.flip,"fa-flip-vertical":"vertical"===t.flip||"both"===t.flip,[`fa-${t.size}`]:null!==t.size,[`fa-rotate-${t.rotate}`]:null!==t.rotate,[`fa-pull-${t.pull}`]:null!==t.pull,[`fa-stack-${t.stackItemSize}`]:null!=t.stackItemSize};return Object.keys(e).map(t=>e[t]?t:null).filter(t=>t)};let St=(()=>{class t{constructor(){this.stackItemSize="1x"}ngOnChanges(t){if("size"in t)throw new Error('fa-icon is not allowed to customize size when used inside fa-stack. Set size on the enclosing fa-stack instead: ....')}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.lG2({type:t,selectors:[["fa-icon","stackItemSize",""],["fa-duotone-icon","stackItemSize",""]],inputs:{stackItemSize:"stackItemSize",size:"size"},features:[n.TTD]}),t})(),Et=(()=>{class t{constructor(t,e){this.renderer=t,this.elementRef=e}ngOnInit(){this.renderer.addClass(this.elementRef.nativeElement,"fa-stack")}ngOnChanges(t){"size"in t&&(null!=t.size.currentValue&&this.renderer.addClass(this.elementRef.nativeElement,`fa-${t.size.currentValue}`),null!=t.size.previousValue&&this.renderer.removeClass(this.elementRef.nativeElement,`fa-${t.size.previousValue}`))}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.Qsj),n.Y36(n.SBq))},t.\u0275cmp=n.Xpm({type:t,selectors:[["fa-stack"]],inputs:{size:"size"},features:[n.TTD],ngContentSelectors:wt,decls:1,vars:0,template:function(t,e){1&t&&(n.F$t(),n.Hsn(0))},encapsulation:2}),t})(),kt=(()=>{class t{constructor(t,e,i,n,r){this.sanitizer=t,this.config=e,this.iconLibrary=i,this.stackItem=n,this.classes=[],null!=r&&null==n&&console.error('FontAwesome: fa-icon and fa-duotone-icon elements must specify stackItemSize attribute when wrapped into fa-stack. Example: .')}ngOnChanges(t){if(null==this.icon&&null==this.config.fallbackIcon)return(()=>{throw new Error("Property `icon` is required for `fa-icon`/`fa-duotone-icon` components.")})();let e=null;if(e=null==this.icon?this.config.fallbackIcon:this.icon,t){const t=this.findIconDefinition(e);if(null!=t){const e=this.buildParams();this.renderIcon(t,e)}}}render(){this.ngOnChanges({})}findIconDefinition(t){const e=((t,e)=>{return void 0!==(i=t).prefix&&void 0!==i.iconName?t:Array.isArray(t)&&2===t.length?{prefix:t[0],iconName:t[1]}:"string"==typeof t?{prefix:e,iconName:t}:void 0;var i})(t,this.config.defaultPrefix);if("icon"in e)return e;const i=this.iconLibrary.getIconDefinition(e.prefix,e.iconName);if(null!=i)return i;const n=mt(e);if(null!=n){const t="Global icon library is deprecated. Consult https://github.com/FortAwesome/angular-fontawesome/blob/master/UPGRADING.md for the migration instructions.";if("unset"===this.config.globalLibrary)console.error("FontAwesome: "+t);else if(!this.config.globalLibrary)throw new Error(t);return n}return(t=>{throw new Error(`Could not find icon with iconName=${t.iconName} and prefix=${t.prefix} in the icon library.`)})(e),null}buildParams(){const t={flip:this.flip,spin:this.spin,pulse:this.pulse,border:this.border,inverse:this.inverse,size:this.size||null,pull:this.pull||null,rotate:this.rotate||null,fixedWidth:"boolean"==typeof this.fixedWidth?this.fixedWidth:this.config.fixedWidth,stackItemSize:null!=this.stackItem?this.stackItem.stackItemSize:null},e="string"==typeof this.transform?function(t){var e={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t?t.toLowerCase().split(" ").reduce(function(t,e){var i=e.toLowerCase().split("-"),n=i[0],r=i.slice(1).join("-");if(n&&"h"===r)return t.flipX=!0,t;if(n&&"v"===r)return t.flipY=!0,t;if(r=parseFloat(r),isNaN(r))return t;switch(n){case"grow":t.size=t.size+r;break;case"shrink":t.size=t.size-r;break;case"left":t.x=t.x-r;break;case"right":t.x=t.x+r;break;case"up":t.y=t.y-r;break;case"down":t.y=t.y+r;break;case"rotate":t.rotate=t.rotate+r}return t},e):e}(this.transform):this.transform;return{title:this.title,transform:e,classes:[...At(t),...this.classes],mask:null!=this.mask?this.findIconDefinition(this.mask):null,styles:null!=this.styles?this.styles:{},symbol:this.symbol,attributes:{role:this.a11yRole}}}renderIcon(t,e){const i=vt(t,e);this.renderedIconHTML=this.sanitizer.bypassSecurityTrustHtml(i.html.join("\n"))}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(_t.H7),n.Y36(xt),n.Y36(Ct),n.Y36(St,8),n.Y36(Et,8))},t.\u0275cmp=n.Xpm({type:t,selectors:[["fa-icon"]],hostAttrs:[1,"ng-fa-icon"],hostVars:2,hostBindings:function(t,e){2&t&&(n.Ikx("innerHTML",e.renderedIconHTML,n.oJD),n.uIk("title",e.title))},inputs:{classes:"classes",icon:"icon",title:"title",spin:"spin",pulse:"pulse",mask:"mask",styles:"styles",flip:"flip",size:"size",pull:"pull",border:"border",inverse:"inverse",symbol:"symbol",rotate:"rotate",fixedWidth:"fixedWidth",transform:"transform",a11yRole:"a11yRole"},features:[n.TTD],decls:0,vars:0,template:function(t,e){},encapsulation:2}),t})(),Tt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({}),t})()},5291:(t,e,i)=>{"use strict";i.d(e,{Sbq:()=>n,Vfw:()=>r,N2j:()=>s,DL8:()=>o,BDt:()=>a,koM:()=>l,OS1:()=>c,mh3:()=>h,b7W:()=>u,kZ_:()=>d,q7m:()=>p,FlN:()=>f,KOR:()=>m,Ssp:()=>g,eHv:()=>y,Mdf:()=>b,Aq:()=>v,qO$:()=>_,vqe:()=>w,sqG:()=>x,Krp:()=>C,uli:()=>A,nNP:()=>S,byT:()=>E,SuH:()=>k,co4:()=>T,aj4:()=>M,kXW:()=>L,XsY:()=>I,USL:()=>O,r8p:()=>D,o4t:()=>R,Psp:()=>N,dLy:()=>P,FpQ:()=>F,wn1:()=>Z,xf3:()=>B,HLz:()=>U,NBC:()=>q,CgH:()=>z,B$L:()=>H,hkK:()=>Y,hnx:()=>G,gNZ:()=>j,FJU:()=>V,FVb:()=>Q,X5K:()=>W,wyP:()=>J});var n={prefix:"fas",iconName:"angle-double-down",icon:[320,512,[],"f103","M143 256.3L7 120.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0L313 86.3c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.4 9.5-24.6 9.5-34 .1zm34 192l136-136c9.4-9.4 9.4-24.6 0-33.9l-22.6-22.6c-9.4-9.4-24.6-9.4-33.9 0L160 352.1l-96.4-96.4c-9.4-9.4-24.6-9.4-33.9 0L7 278.3c-9.4 9.4-9.4 24.6 0 33.9l136 136c9.4 9.5 24.6 9.5 34 .1z"]},r={prefix:"fas",iconName:"angle-double-up",icon:[320,512,[],"f102","M177 255.7l136 136c9.4 9.4 9.4 24.6 0 33.9l-22.6 22.6c-9.4 9.4-24.6 9.4-33.9 0L160 351.9l-96.4 96.4c-9.4 9.4-24.6 9.4-33.9 0L7 425.7c-9.4-9.4-9.4-24.6 0-33.9l136-136c9.4-9.5 24.6-9.5 34-.1zm-34-192L7 199.7c-9.4 9.4-9.4 24.6 0 33.9l22.6 22.6c9.4 9.4 24.6 9.4 33.9 0l96.4-96.4 96.4 96.4c9.4 9.4 24.6 9.4 33.9 0l22.6-22.6c9.4-9.4 9.4-24.6 0-33.9l-136-136c-9.2-9.4-24.4-9.4-33.8 0z"]},s={prefix:"fas",iconName:"archive",icon:[512,512,[],"f187","M32 448c0 17.7 14.3 32 32 32h384c17.7 0 32-14.3 32-32V160H32v288zm160-212c0-6.6 5.4-12 12-12h104c6.6 0 12 5.4 12 12v8c0 6.6-5.4 12-12 12H204c-6.6 0-12-5.4-12-12v-8zM480 32H32C14.3 32 0 46.3 0 64v48c0 8.8 7.2 16 16 16h480c8.8 0 16-7.2 16-16V64c0-17.7-14.3-32-32-32z"]},o={prefix:"fas",iconName:"balance-scale",icon:[640,512,[],"f24e","M256 336h-.02c0-16.18 1.34-8.73-85.05-181.51-17.65-35.29-68.19-35.36-85.87 0C-2.06 328.75.02 320.33.02 336H0c0 44.18 57.31 80 128 80s128-35.82 128-80zM128 176l72 144H56l72-144zm511.98 160c0-16.18 1.34-8.73-85.05-181.51-17.65-35.29-68.19-35.36-85.87 0-87.12 174.26-85.04 165.84-85.04 181.51H384c0 44.18 57.31 80 128 80s128-35.82 128-80h-.02zM440 320l72-144 72 144H440zm88 128H352V153.25c23.51-10.29 41.16-31.48 46.39-57.25H528c8.84 0 16-7.16 16-16V48c0-8.84-7.16-16-16-16H383.64C369.04 12.68 346.09 0 320 0s-49.04 12.68-63.64 32H112c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h129.61c5.23 25.76 22.87 46.96 46.39 57.25V448H112c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h416c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z"]},a={prefix:"fas",iconName:"bolt",icon:[320,512,[],"f0e7","M296 160H180.6l42.6-129.8C227.2 15 215.7 0 200 0H56C44 0 33.8 8.9 32.2 20.8l-32 240C-1.7 275.2 9.5 288 24 288h118.7L96.6 482.5c-3.6 15.2 8 29.5 23.3 29.5 8.4 0 16.4-4.4 20.8-12l176-304c9.3-15.9-2.2-36-20.7-36z"]},l={prefix:"fas",iconName:"chart-bar",icon:[512,512,[],"f080","M332.8 320h38.4c6.4 0 12.8-6.4 12.8-12.8V172.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h38.4c6.4 0 12.8-6.4 12.8-12.8V76.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-288 0h38.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h38.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zM496 384H64V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z"]},c={prefix:"fas",iconName:"chart-pie",icon:[544,512,[],"f200","M527.79 288H290.5l158.03 158.03c6.04 6.04 15.98 6.53 22.19.68 38.7-36.46 65.32-85.61 73.13-140.86 1.34-9.46-6.51-17.85-16.06-17.85zm-15.83-64.8C503.72 103.74 408.26 8.28 288.8.04 279.68-.59 272 7.1 272 16.24V240h223.77c9.14 0 16.82-7.68 16.19-16.8zM224 288V50.71c0-9.55-8.39-17.4-17.84-16.06C86.99 51.49-4.1 155.6.14 280.37 4.5 408.51 114.83 513.59 243.03 511.98c50.4-.63 96.97-16.87 135.26-44.03 7.9-5.6 8.42-17.23 1.57-24.08L224 288z"]},h={prefix:"fas",iconName:"code-branch",icon:[384,512,[],"f126","M384 144c0-44.2-35.8-80-80-80s-80 35.8-80 80c0 36.4 24.3 67.1 57.5 76.8-.6 16.1-4.2 28.5-11 36.9-15.4 19.2-49.3 22.4-85.2 25.7-28.2 2.6-57.4 5.4-81.3 16.9v-144c32.5-10.2 56-40.5 56-76.3 0-44.2-35.8-80-80-80S0 35.8 0 80c0 35.8 23.5 66.1 56 76.3v199.3C23.5 365.9 0 396.2 0 432c0 44.2 35.8 80 80 80s80-35.8 80-80c0-34-21.2-63.1-51.2-74.6 3.1-5.2 7.8-9.8 14.9-13.4 16.2-8.2 40.4-10.4 66.1-12.8 42.2-3.9 90-8.4 118.2-43.4 14-17.4 21.1-39.8 21.6-67.9 31.6-10.8 54.4-40.7 54.4-75.9zM80 64c8.8 0 16 7.2 16 16s-7.2 16-16 16-16-7.2-16-16 7.2-16 16-16zm0 384c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm224-320c8.8 0 16 7.2 16 16s-7.2 16-16 16-16-7.2-16-16 7.2-16 16-16z"]},u={prefix:"fas",iconName:"cog",icon:[512,512,[],"f013","M487.4 315.7l-42.6-24.6c4.3-23.2 4.3-47 0-70.2l42.6-24.6c4.9-2.8 7.1-8.6 5.5-14-11.1-35.6-30-67.8-54.7-94.6-3.8-4.1-10-5.1-14.8-2.3L380.8 110c-17.9-15.4-38.5-27.3-60.8-35.1V25.8c0-5.6-3.9-10.5-9.4-11.7-36.7-8.2-74.3-7.8-109.2 0-5.5 1.2-9.4 6.1-9.4 11.7V75c-22.2 7.9-42.8 19.8-60.8 35.1L88.7 85.5c-4.9-2.8-11-1.9-14.8 2.3-24.7 26.7-43.6 58.9-54.7 94.6-1.7 5.4.6 11.2 5.5 14L67.3 221c-4.3 23.2-4.3 47 0 70.2l-42.6 24.6c-4.9 2.8-7.1 8.6-5.5 14 11.1 35.6 30 67.8 54.7 94.6 3.8 4.1 10 5.1 14.8 2.3l42.6-24.6c17.9 15.4 38.5 27.3 60.8 35.1v49.2c0 5.6 3.9 10.5 9.4 11.7 36.7 8.2 74.3 7.8 109.2 0 5.5-1.2 9.4-6.1 9.4-11.7v-49.2c22.2-7.9 42.8-19.8 60.8-35.1l42.6 24.6c4.9 2.8 11 1.9 14.8-2.3 24.7-26.7 43.6-58.9 54.7-94.6 1.5-5.5-.7-11.3-5.6-14.1zM256 336c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"]},d={prefix:"fas",iconName:"copy",icon:[448,512,[],"f0c5","M320 448v40c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V120c0-13.255 10.745-24 24-24h72v296c0 30.879 25.121 56 56 56h168zm0-344V0H152c-13.255 0-24 10.745-24 24v368c0 13.255 10.745 24 24 24h272c13.255 0 24-10.745 24-24V128H344c-13.2 0-24-10.8-24-24zm120.971-31.029L375.029 7.029A24 24 0 0 0 358.059 0H352v96h96v-6.059a24 24 0 0 0-7.029-16.97z"]},p={prefix:"fas",iconName:"download",icon:[512,512,[],"f019","M216 0h80c13.3 0 24 10.7 24 24v168h87.7c17.8 0 26.7 21.5 14.1 34.1L269.7 378.3c-7.5 7.5-19.8 7.5-27.3 0L90.1 226.1c-12.6-12.6-3.7-34.1 14.1-34.1H192V24c0-13.3 10.7-24 24-24zm296 376v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h146.7l49 49c20.1 20.1 52.5 20.1 72.6 0l49-49H488c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z"]},f={prefix:"fas",iconName:"dumbbell",icon:[640,512,[],"f44b","M104 96H56c-13.3 0-24 10.7-24 24v104H8c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h24v104c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V120c0-13.3-10.7-24-24-24zm528 128h-24V120c0-13.3-10.7-24-24-24h-48c-13.3 0-24 10.7-24 24v272c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V288h24c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM456 32h-48c-13.3 0-24 10.7-24 24v168H256V56c0-13.3-10.7-24-24-24h-48c-13.3 0-24 10.7-24 24v400c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V288h128v168c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24z"]},m={prefix:"fas",iconName:"eject",icon:[448,512,[],"f052","M448 384v64c0 17.673-14.327 32-32 32H32c-17.673 0-32-14.327-32-32v-64c0-17.673 14.327-32 32-32h384c17.673 0 32 14.327 32 32zM48.053 320h351.886c41.651 0 63.581-49.674 35.383-80.435L259.383 47.558c-19.014-20.743-51.751-20.744-70.767 0L12.67 239.565C-15.475 270.268 6.324 320 48.053 320z"]},g={prefix:"fas",iconName:"exchange-alt",icon:[512,512,[],"f362","M0 168v-16c0-13.255 10.745-24 24-24h360V80c0-21.367 25.899-32.042 40.971-16.971l80 80c9.372 9.373 9.372 24.569 0 33.941l-80 80C409.956 271.982 384 261.456 384 240v-48H24c-13.255 0-24-10.745-24-24zm488 152H128v-48c0-21.314-25.862-32.08-40.971-16.971l-80 80c-9.372 9.373-9.372 24.569 0 33.941l80 80C102.057 463.997 128 453.437 128 432v-48h360c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24z"]},y={prefix:"fas",iconName:"exclamation-triangle",icon:[576,512,[],"f071","M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"]},b={prefix:"fas",iconName:"eye",icon:[576,512,[],"f06e","M572.52 241.4C518.29 135.59 410.93 64 288 64S57.68 135.64 3.48 241.41a32.35 32.35 0 0 0 0 29.19C57.71 376.41 165.07 448 288 448s230.32-71.64 284.52-177.41a32.35 32.35 0 0 0 0-29.19zM288 400a144 144 0 1 1 144-144 143.93 143.93 0 0 1-144 144zm0-240a95.31 95.31 0 0 0-25.31 3.79 47.85 47.85 0 0 1-66.9 66.9A95.78 95.78 0 1 0 288 160z"]},v={prefix:"fas",iconName:"eye-slash",icon:[640,512,[],"f070","M320 400c-75.85 0-137.25-58.71-142.9-133.11L72.2 185.82c-13.79 17.3-26.48 35.59-36.72 55.59a32.35 32.35 0 0 0 0 29.19C89.71 376.41 197.07 448 320 448c26.91 0 52.87-4 77.89-10.46L346 397.39a144.13 144.13 0 0 1-26 2.61zm313.82 58.1l-110.55-85.44a331.25 331.25 0 0 0 81.25-102.07 32.35 32.35 0 0 0 0-29.19C550.29 135.59 442.93 64 320 64a308.15 308.15 0 0 0-147.32 37.7L45.46 3.37A16 16 0 0 0 23 6.18L3.37 31.45A16 16 0 0 0 6.18 53.9l588.36 454.73a16 16 0 0 0 22.46-2.81l19.64-25.27a16 16 0 0 0-2.82-22.45zm-183.72-142l-39.3-30.38A94.75 94.75 0 0 0 416 256a94.76 94.76 0 0 0-121.31-92.21A47.65 47.65 0 0 1 304 192a46.64 46.64 0 0 1-1.54 10l-73.61-56.89A142.31 142.31 0 0 1 320 112a143.92 143.92 0 0 1 144 144c0 21.63-5.29 41.79-13.9 60.11z"]},_={prefix:"fas",iconName:"history",icon:[512,512,[],"f1da","M504 255.531c.253 136.64-111.18 248.372-247.82 248.468-59.015.042-113.223-20.53-155.822-54.911-11.077-8.94-11.905-25.541-1.839-35.607l11.267-11.267c8.609-8.609 22.353-9.551 31.891-1.984C173.062 425.135 212.781 440 256 440c101.705 0 184-82.311 184-184 0-101.705-82.311-184-184-184-48.814 0-93.149 18.969-126.068 49.932l50.754 50.754c10.08 10.08 2.941 27.314-11.313 27.314H24c-8.837 0-16-7.163-16-16V38.627c0-14.254 17.234-21.393 27.314-11.314l49.372 49.372C129.209 34.136 189.552 8 256 8c136.81 0 247.747 110.78 248 247.531zm-180.912 78.784l9.823-12.63c8.138-10.463 6.253-25.542-4.21-33.679L288 256.349V152c0-13.255-10.745-24-24-24h-16c-13.255 0-24 10.745-24 24v135.651l65.409 50.874c10.463 8.137 25.541 6.253 33.679-4.21z"]},w={prefix:"fas",iconName:"infinity",icon:[640,512,[],"f534","M471.1 96C405 96 353.3 137.3 320 174.6 286.7 137.3 235 96 168.9 96 75.8 96 0 167.8 0 256s75.8 160 168.9 160c66.1 0 117.8-41.3 151.1-78.6 33.3 37.3 85 78.6 151.1 78.6 93.1 0 168.9-71.8 168.9-160S564.2 96 471.1 96zM168.9 320c-40.2 0-72.9-28.7-72.9-64s32.7-64 72.9-64c38.2 0 73.4 36.1 94 64-20.4 27.6-55.9 64-94 64zm302.2 0c-38.2 0-73.4-36.1-94-64 20.4-27.6 55.9-64 94-64 40.2 0 72.9 28.7 72.9 64s-32.7 64-72.9 64z"]},x={prefix:"fas",iconName:"info-circle",icon:[512,512,[],"f05a","M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z"]},C={prefix:"fas",iconName:"layer-group",icon:[512,512,[],"f5fd","M12.41 148.02l232.94 105.67c6.8 3.09 14.49 3.09 21.29 0l232.94-105.67c16.55-7.51 16.55-32.52 0-40.03L266.65 2.31a25.607 25.607 0 0 0-21.29 0L12.41 107.98c-16.55 7.51-16.55 32.53 0 40.04zm487.18 88.28l-58.09-26.33-161.64 73.27c-7.56 3.43-15.59 5.17-23.86 5.17s-16.29-1.74-23.86-5.17L70.51 209.97l-58.1 26.33c-16.55 7.5-16.55 32.5 0 40l232.94 105.59c6.8 3.08 14.49 3.08 21.29 0L499.59 276.3c16.55-7.5 16.55-32.5 0-40zm0 127.8l-57.87-26.23-161.86 73.37c-7.56 3.43-15.59 5.17-23.86 5.17s-16.29-1.74-23.86-5.17L70.29 337.87 12.41 364.1c-16.55 7.5-16.55 32.5 0 40l232.94 105.59c6.8 3.08 14.49 3.08 21.29 0L499.59 404.1c16.55-7.5 16.55-32.5 0-40z"]},A={prefix:"fas",iconName:"life-ring",icon:[512,512,[],"f1cd","M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm173.696 119.559l-63.399 63.399c-10.987-18.559-26.67-34.252-45.255-45.255l63.399-63.399a218.396 218.396 0 0 1 45.255 45.255zM256 352c-53.019 0-96-42.981-96-96s42.981-96 96-96 96 42.981 96 96-42.981 96-96 96zM127.559 82.304l63.399 63.399c-18.559 10.987-34.252 26.67-45.255 45.255l-63.399-63.399a218.372 218.372 0 0 1 45.255-45.255zM82.304 384.441l63.399-63.399c10.987 18.559 26.67 34.252 45.255 45.255l-63.399 63.399a218.396 218.396 0 0 1-45.255-45.255zm302.137 45.255l-63.399-63.399c18.559-10.987 34.252-26.67 45.255-45.255l63.399 63.399a218.403 218.403 0 0 1-45.255 45.255z"]},S={prefix:"fas",iconName:"link",icon:[512,512,[],"f0c1","M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"]},E={prefix:"fas",iconName:"lock",icon:[448,512,[],"f023","M400 224h-24v-72C376 68.2 307.8 0 224 0S72 68.2 72 152v72H48c-26.5 0-48 21.5-48 48v192c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48zm-104 0H152v-72c0-39.7 32.3-72 72-72s72 32.3 72 72v72z"]},k={prefix:"fas",iconName:"map-signs",icon:[512,512,[],"f277","M507.31 84.69L464 41.37c-6-6-14.14-9.37-22.63-9.37H288V16c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v16H56c-13.25 0-24 10.75-24 24v80c0 13.25 10.75 24 24 24h385.37c8.49 0 16.62-3.37 22.63-9.37l43.31-43.31c6.25-6.26 6.25-16.38 0-22.63zM224 496c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16V384h-64v112zm232-272H288v-32h-64v32H70.63c-8.49 0-16.62 3.37-22.63 9.37L4.69 276.69c-6.25 6.25-6.25 16.38 0 22.63L48 342.63c6 6 14.14 9.37 22.63 9.37H456c13.25 0 24-10.75 24-24v-80c0-13.25-10.75-24-24-24z"]},T={prefix:"fas",iconName:"money-bill-alt",icon:[640,512,[],"f3d1","M352 288h-16v-88c0-4.42-3.58-8-8-8h-13.58c-4.74 0-9.37 1.4-13.31 4.03l-15.33 10.22a7.994 7.994 0 0 0-2.22 11.09l8.88 13.31a7.994 7.994 0 0 0 11.09 2.22l.47-.31V288h-16c-4.42 0-8 3.58-8 8v16c0 4.42 3.58 8 8 8h64c4.42 0 8-3.58 8-8v-16c0-4.42-3.58-8-8-8zM608 64H32C14.33 64 0 78.33 0 96v320c0 17.67 14.33 32 32 32h576c17.67 0 32-14.33 32-32V96c0-17.67-14.33-32-32-32zM48 400v-64c35.35 0 64 28.65 64 64H48zm0-224v-64h64c0 35.35-28.65 64-64 64zm272 192c-53.02 0-96-50.15-96-112 0-61.86 42.98-112 96-112s96 50.14 96 112c0 61.87-43 112-96 112zm272 32h-64c0-35.35 28.65-64 64-64v64zm0-224c-35.35 0-64-28.65-64-64h64v64z"]},M={prefix:"fas",iconName:"money-bill-wave",icon:[640,512,[],"f53a","M621.16 54.46C582.37 38.19 543.55 32 504.75 32c-123.17-.01-246.33 62.34-369.5 62.34-30.89 0-61.76-3.92-92.65-13.72-3.47-1.1-6.95-1.62-10.35-1.62C15.04 79 0 92.32 0 110.81v317.26c0 12.63 7.23 24.6 18.84 29.46C57.63 473.81 96.45 480 135.25 480c123.17 0 246.34-62.35 369.51-62.35 30.89 0 61.76 3.92 92.65 13.72 3.47 1.1 6.95 1.62 10.35 1.62 17.21 0 32.25-13.32 32.25-31.81V83.93c-.01-12.64-7.24-24.6-18.85-29.47zM48 132.22c20.12 5.04 41.12 7.57 62.72 8.93C104.84 170.54 79 192.69 48 192.69v-60.47zm0 285v-47.78c34.37 0 62.18 27.27 63.71 61.4-22.53-1.81-43.59-6.31-63.71-13.62zM320 352c-44.19 0-80-42.99-80-96 0-53.02 35.82-96 80-96s80 42.98 80 96c0 53.03-35.83 96-80 96zm272 27.78c-17.52-4.39-35.71-6.85-54.32-8.44 5.87-26.08 27.5-45.88 54.32-49.28v57.72zm0-236.11c-30.89-3.91-54.86-29.7-55.81-61.55 19.54 2.17 38.09 6.23 55.81 12.66v48.89z"]},L={prefix:"fas",iconName:"network-wired",icon:[640,512,[],"f6ff","M640 264v-16c0-8.84-7.16-16-16-16H344v-40h72c17.67 0 32-14.33 32-32V32c0-17.67-14.33-32-32-32H224c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h72v40H16c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16h104v40H64c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h160c17.67 0 32-14.33 32-32V352c0-17.67-14.33-32-32-32h-56v-40h304v40h-56c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h160c17.67 0 32-14.33 32-32V352c0-17.67-14.33-32-32-32h-56v-40h104c8.84 0 16-7.16 16-16zM256 128V64h128v64H256zm-64 320H96v-64h96v64zm352 0h-96v-64h96v64z"]},I={prefix:"fas",iconName:"paint-brush",icon:[512,512,[],"f1fc","M167.02 309.34c-40.12 2.58-76.53 17.86-97.19 72.3-2.35 6.21-8 9.98-14.59 9.98-11.11 0-45.46-27.67-55.25-34.35C0 439.62 37.93 512 128 512c75.86 0 128-43.77 128-120.19 0-3.11-.65-6.08-.97-9.13l-88.01-73.34zM457.89 0c-15.16 0-29.37 6.71-40.21 16.45C213.27 199.05 192 203.34 192 257.09c0 13.7 3.25 26.76 8.73 38.7l63.82 53.18c7.21 1.8 14.64 3.03 22.39 3.03 62.11 0 98.11-45.47 211.16-256.46 7.38-14.35 13.9-29.85 13.9-45.99C512 20.64 486 0 457.89 0z"]},O={prefix:"fas",iconName:"percentage",icon:[384,512,[],"f541","M109.25 173.25c24.99-24.99 24.99-65.52 0-90.51-24.99-24.99-65.52-24.99-90.51 0-24.99 24.99-24.99 65.52 0 90.51 25 25 65.52 25 90.51 0zm256 165.49c-24.99-24.99-65.52-24.99-90.51 0-24.99 24.99-24.99 65.52 0 90.51 24.99 24.99 65.52 24.99 90.51 0 25-24.99 25-65.51 0-90.51zm-1.94-231.43l-22.62-22.62c-12.5-12.5-32.76-12.5-45.25 0L20.69 359.44c-12.5 12.5-12.5 32.76 0 45.25l22.62 22.62c12.5 12.5 32.76 12.5 45.25 0l274.75-274.75c12.5-12.49 12.5-32.75 0-45.25z"]},D={prefix:"fas",iconName:"plus",icon:[448,512,[],"f067","M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"]},R={prefix:"fas",iconName:"project-diagram",icon:[640,512,[],"f542","M384 320H256c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h128c17.67 0 32-14.33 32-32V352c0-17.67-14.33-32-32-32zM192 32c0-17.67-14.33-32-32-32H32C14.33 0 0 14.33 0 32v128c0 17.67 14.33 32 32 32h95.72l73.16 128.04C211.98 300.98 232.4 288 256 288h.28L192 175.51V128h224V64H192V32zM608 0H480c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h128c17.67 0 32-14.33 32-32V32c0-17.67-14.33-32-32-32z"]},N={prefix:"fas",iconName:"question",icon:[384,512,[],"f128","M202.021 0C122.202 0 70.503 32.703 29.914 91.026c-7.363 10.58-5.093 25.086 5.178 32.874l43.138 32.709c10.373 7.865 25.132 6.026 33.253-4.148 25.049-31.381 43.63-49.449 82.757-49.449 30.764 0 68.816 19.799 68.816 49.631 0 22.552-18.617 34.134-48.993 51.164-35.423 19.86-82.299 44.576-82.299 106.405V320c0 13.255 10.745 24 24 24h72.471c13.255 0 24-10.745 24-24v-5.773c0-42.86 125.268-44.645 125.268-160.627C377.504 66.256 286.902 0 202.021 0zM192 373.459c-38.196 0-69.271 31.075-69.271 69.271 0 38.195 31.075 69.27 69.271 69.27s69.271-31.075 69.271-69.271-31.075-69.27-69.271-69.27z"]},P={prefix:"fas",iconName:"receipt",icon:[384,512,[],"f543","M358.4 3.2L320 48 265.6 3.2a15.9 15.9 0 0 0-19.2 0L192 48 137.6 3.2a15.9 15.9 0 0 0-19.2 0L64 48 25.6 3.2C15-4.7 0 2.8 0 16v480c0 13.2 15 20.7 25.6 12.8L64 464l54.4 44.8a15.9 15.9 0 0 0 19.2 0L192 464l54.4 44.8a15.9 15.9 0 0 0 19.2 0L320 464l38.4 44.8c10.5 7.9 25.6.4 25.6-12.8V16c0-13.2-15-20.7-25.6-12.8zM320 360c0 4.4-3.6 8-8 8H72c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h240c4.4 0 8 3.6 8 8v16zm0-96c0 4.4-3.6 8-8 8H72c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h240c4.4 0 8 3.6 8 8v16zm0-96c0 4.4-3.6 8-8 8H72c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h240c4.4 0 8 3.6 8 8v16z"]},F={prefix:"fas",iconName:"route",icon:[512,512,[],"f4d7","M416 320h-96c-17.6 0-32-14.4-32-32s14.4-32 32-32h96s96-107 96-160-43-96-96-96-96 43-96 96c0 25.5 22.2 63.4 45.3 96H320c-52.9 0-96 43.1-96 96s43.1 96 96 96h96c17.6 0 32 14.4 32 32s-14.4 32-32 32H185.5c-16 24.8-33.8 47.7-47.3 64H416c52.9 0 96-43.1 96-96s-43.1-96-96-96zm0-256c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zM96 256c-53 0-96 43-96 96s96 160 96 160 96-107 96-160-43-96-96-96zm0 128c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"]},Z={prefix:"fas",iconName:"search",icon:[512,512,[],"f002","M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"]},B={prefix:"fas",iconName:"server",icon:[512,512,[],"f233","M480 160H32c-17.673 0-32-14.327-32-32V64c0-17.673 14.327-32 32-32h448c17.673 0 32 14.327 32 32v64c0 17.673-14.327 32-32 32zm-48-88c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm-64 0c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm112 248H32c-17.673 0-32-14.327-32-32v-64c0-17.673 14.327-32 32-32h448c17.673 0 32 14.327 32 32v64c0 17.673-14.327 32-32 32zm-48-88c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm-64 0c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm112 248H32c-17.673 0-32-14.327-32-32v-64c0-17.673 14.327-32 32-32h448c17.673 0 32 14.327 32 32v64c0 17.673-14.327 32-32 32zm-48-88c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm-64 0c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24z"]},U={prefix:"fas",iconName:"tachometer-alt",icon:[576,512,[],"f3fd","M288 32C128.94 32 0 160.94 0 320c0 52.8 14.25 102.26 39.06 144.8 5.61 9.62 16.3 15.2 27.44 15.2h443c11.14 0 21.83-5.58 27.44-15.2C561.75 422.26 576 372.8 576 320c0-159.06-128.94-288-288-288zm0 64c14.71 0 26.58 10.13 30.32 23.65-1.11 2.26-2.64 4.23-3.45 6.67l-9.22 27.67c-5.13 3.49-10.97 6.01-17.64 6.01-17.67 0-32-14.33-32-32S270.33 96 288 96zM96 384c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm48-160c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm246.77-72.41l-61.33 184C343.13 347.33 352 364.54 352 384c0 11.72-3.38 22.55-8.88 32H232.88c-5.5-9.45-8.88-20.28-8.88-32 0-33.94 26.5-61.43 59.9-63.59l61.34-184.01c4.17-12.56 17.73-19.45 30.36-15.17 12.57 4.19 19.35 17.79 15.17 30.36zm14.66 57.2l15.52-46.55c3.47-1.29 7.13-2.23 11.05-2.23 17.67 0 32 14.33 32 32s-14.33 32-32 32c-11.38-.01-20.89-6.28-26.57-15.22zM480 384c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"]},q={prefix:"fas",iconName:"times",icon:[352,512,[],"f00d","M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"]},z={prefix:"fas",iconName:"tools",icon:[512,512,[],"f7d9","M501.1 395.7L384 278.6c-23.1-23.1-57.6-27.6-85.4-13.9L192 158.1V96L64 0 0 64l96 128h62.1l106.6 106.6c-13.6 27.8-9.2 62.3 13.9 85.4l117.1 117.1c14.6 14.6 38.2 14.6 52.7 0l52.7-52.7c14.5-14.6 14.5-38.2 0-52.7zM331.7 225c28.3 0 54.9 11 74.9 31l19.4 19.4c15.8-6.9 30.8-16.5 43.8-29.5 37.1-37.1 49.7-89.3 37.9-136.7-2.2-9-13.5-12.1-20.1-5.5l-74.4 74.4-67.9-11.3L334 98.9l74.4-74.4c6.6-6.6 3.4-17.9-5.7-20.2-47.4-11.7-99.6.9-136.6 37.9-28.5 28.5-41.9 66.1-41.2 103.6l82.1 82.1c8.1-1.9 16.5-2.9 24.7-2.9zm-103.9 82l-56.7-56.7L18.7 402.8c-25 25-25 65.5 0 90.5s65.5 25 90.5 0l123.6-123.6c-7.6-19.9-9.9-41.6-5-62.7zM64 472c-13.2 0-24-10.8-24-24 0-13.3 10.7-24 24-24s24 10.7 24 24c0 13.2-10.7 24-24 24z"]},H={prefix:"fas",iconName:"unlock-alt",icon:[448,512,[],"f13e","M400 256H152V152.9c0-39.6 31.7-72.5 71.3-72.9 40-.4 72.7 32.1 72.7 72v16c0 13.3 10.7 24 24 24h32c13.3 0 24-10.7 24-24v-16C376 68 307.5-.3 223.5 0 139.5.3 72 69.5 72 153.5V256H48c-26.5 0-48 21.5-48 48v160c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V304c0-26.5-21.5-48-48-48zM264 408c0 22.1-17.9 40-40 40s-40-17.9-40-40v-48c0-22.1 17.9-40 40-40s40 17.9 40 40v48z"]},Y={prefix:"fas",iconName:"user-check",icon:[640,512,[],"f4fc","M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4zm323-128.4l-27.8-28.1c-4.6-4.7-12.1-4.7-16.8-.1l-104.8 104-45.5-45.8c-4.6-4.7-12.1-4.7-16.8-.1l-28.1 27.9c-4.7 4.6-4.7 12.1-.1 16.8l81.7 82.3c4.6 4.7 12.1 4.7 16.8.1l141.3-140.2c4.6-4.7 4.7-12.2.1-16.8z"]},G={prefix:"fas",iconName:"user-clock",icon:[640,512,[],"f4fd","M496 224c-79.6 0-144 64.4-144 144s64.4 144 144 144 144-64.4 144-144-64.4-144-144-144zm64 150.3c0 5.3-4.4 9.7-9.7 9.7h-60.6c-5.3 0-9.7-4.4-9.7-9.7v-76.6c0-5.3 4.4-9.7 9.7-9.7h12.6c5.3 0 9.7 4.4 9.7 9.7V352h38.3c5.3 0 9.7 4.4 9.7 9.7v12.6zM320 368c0-27.8 6.7-54.1 18.2-77.5-8-1.5-16.2-2.5-24.6-2.5h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h347.1c-45.3-31.9-75.1-84.5-75.1-144zm-96-112c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128z"]},j={prefix:"fas",iconName:"user-cog",icon:[640,512,[],"f4fe","M610.5 373.3c2.6-14.1 2.6-28.5 0-42.6l25.8-14.9c3-1.7 4.3-5.2 3.3-8.5-6.7-21.6-18.2-41.2-33.2-57.4-2.3-2.5-6-3.1-9-1.4l-25.8 14.9c-10.9-9.3-23.4-16.5-36.9-21.3v-29.8c0-3.4-2.4-6.4-5.7-7.1-22.3-5-45-4.8-66.2 0-3.3.7-5.7 3.7-5.7 7.1v29.8c-13.5 4.8-26 12-36.9 21.3l-25.8-14.9c-2.9-1.7-6.7-1.1-9 1.4-15 16.2-26.5 35.8-33.2 57.4-1 3.3.4 6.8 3.3 8.5l25.8 14.9c-2.6 14.1-2.6 28.5 0 42.6l-25.8 14.9c-3 1.7-4.3 5.2-3.3 8.5 6.7 21.6 18.2 41.1 33.2 57.4 2.3 2.5 6 3.1 9 1.4l25.8-14.9c10.9 9.3 23.4 16.5 36.9 21.3v29.8c0 3.4 2.4 6.4 5.7 7.1 22.3 5 45 4.8 66.2 0 3.3-.7 5.7-3.7 5.7-7.1v-29.8c13.5-4.8 26-12 36.9-21.3l25.8 14.9c2.9 1.7 6.7 1.1 9-1.4 15-16.2 26.5-35.8 33.2-57.4 1-3.3-.4-6.8-3.3-8.5l-25.8-14.9zM496 400.5c-26.8 0-48.5-21.8-48.5-48.5s21.8-48.5 48.5-48.5 48.5 21.8 48.5 48.5-21.7 48.5-48.5 48.5zM224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm201.2 226.5c-2.3-1.2-4.6-2.6-6.8-3.9l-7.9 4.6c-6 3.4-12.8 5.3-19.6 5.3-10.9 0-21.4-4.6-28.9-12.6-18.3-19.8-32.3-43.9-40.2-69.6-5.5-17.7 1.9-36.4 17.9-45.7l7.9-4.6c-.1-2.6-.1-5.2 0-7.8l-7.9-4.6c-16-9.2-23.4-28-17.9-45.7.9-2.9 2.2-5.8 3.2-8.7-3.8-.3-7.5-1.2-11.4-1.2h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c10.1 0 19.5-3.2 27.2-8.5-1.2-3.8-2-7.7-2-11.8v-9.2z"]},V={prefix:"fas",iconName:"user-lock",icon:[640,512,[],"f502","M224 256A128 128 0 1 0 96 128a128 128 0 0 0 128 128zm96 64a63.08 63.08 0 0 1 8.1-30.5c-4.8-.5-9.5-1.5-14.5-1.5h-16.7a174.08 174.08 0 0 1-145.8 0h-16.7A134.43 134.43 0 0 0 0 422.4V464a48 48 0 0 0 48 48h280.9a63.54 63.54 0 0 1-8.9-32zm288-32h-32v-80a80 80 0 0 0-160 0v80h-32a32 32 0 0 0-32 32v160a32 32 0 0 0 32 32h224a32 32 0 0 0 32-32V320a32 32 0 0 0-32-32zM496 432a32 32 0 1 1 32-32 32 32 0 0 1-32 32zm32-144h-64v-80a32 32 0 0 1 64 0z"]},Q={prefix:"fas",iconName:"users",icon:[640,512,[],"f0c0","M96 224c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm448 0c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm32 32h-64c-17.6 0-33.5 7.1-45.1 18.6 40.3 22.1 68.9 62 75.1 109.4h66c17.7 0 32-14.3 32-32v-32c0-35.3-28.7-64-64-64zm-256 0c61.9 0 112-50.1 112-112S381.9 32 320 32 208 82.1 208 144s50.1 112 112 112zm76.8 32h-8.3c-20.8 10-43.9 16-68.5 16s-47.6-6-68.5-16h-8.3C179.6 288 128 339.6 128 403.2V432c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48v-28.8c0-63.6-51.6-115.2-115.2-115.2zm-223.7-13.4C161.5 263.1 145.6 256 128 256H64c-35.3 0-64 28.7-64 64v32c0 17.7 14.3 32 32 32h65.9c6.3-47.4 34.9-87.3 75.2-109.4z"]},W={prefix:"fas",iconName:"wallet",icon:[512,512,[],"f555","M461.2 128H80c-8.84 0-16-7.16-16-16s7.16-16 16-16h384c8.84 0 16-7.16 16-16 0-26.51-21.49-48-48-48H64C28.65 32 0 60.65 0 96v320c0 35.35 28.65 64 64 64h397.2c28.02 0 50.8-21.53 50.8-48V176c0-26.47-22.78-48-50.8-48zM416 336c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"]},J={prefix:"fas",iconName:"window-restore",icon:[512,512,[],"f2d2","M512 48v288c0 26.5-21.5 48-48 48h-48V176c0-44.1-35.9-80-80-80H128V48c0-26.5 21.5-48 48-48h288c26.5 0 48 21.5 48 48zM384 176v288c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V176c0-26.5 21.5-48 48-48h288c26.5 0 48 21.5 48 48zm-68 28c0-6.6-5.4-12-12-12H76c-6.6 0-12 5.4-12 12v52h252v-52z"]}},5573:(t,e,i)=>{"use strict";i.d(e,{eX:()=>F,sQ:()=>tt,GW:()=>L,l4:()=>Z});var n,r=i(964),s=i(5446),o=i(2391),a=i(9666),l=i(4951),c=i(2041),h=i(9647),u=i(7849);!function(t){t.NEXT="N",t.ERROR="E",t.COMPLETE="C"}(n||(n={}));var d=function(){function t(t,e,i){this.kind=t,this.value=e,this.error=i,this.hasValue="N"===t}return t.prototype.observe=function(t){return p(this,t)},t.prototype.do=function(t,e,i){var n=this,r=n.kind,s=n.error;return"N"===r?null==t?void 0:t(n.value):"E"===r?null==e?void 0:e(s):null==i?void 0:i()},t.prototype.accept=function(t,e,i){var n;return(0,u.m)(null===(n=t)||void 0===n?void 0:n.next)?this.observe(t):this.do(t,e,i)},t.prototype.toObservable=function(){var t=this,e=t.kind,i=t.error,n="N"===e?(0,c.of)(t.value):"E"===e?(0,h._)(function(){return i}):"C"===e?l.E:0;if(!n)throw new TypeError("Unexpected notification kind "+e);return n},t.createNext=function(e){return new t("N",e)},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t}();function p(t,e){var i,n,r,s=t.kind,o=t.value,a=t.error;if("string"!=typeof s)throw new TypeError('Invalid notification, missing "kind"');"N"===s?null===(i=e.next)||void 0===i||i.call(e,o):"E"===s?null===(n=e.error)||void 0===n||n.call(e,a):null===(r=e.complete)||void 0===r||r.call(e)}var f=i(3386),m=i(4659),g=i(9162),y=i(5630);function b(t,e,i,n){return(0,f.e)(function(r,s){var l;e&&"function"!=typeof e?(i=e.duration,l=e.element,n=e.connector):l=e;var c=new Map,h=function(t){c.forEach(t),t(s)},u=function(t){return h(function(e){return e.error(t)})},d=new v(s,function(e){try{var r=t(e),h=c.get(r);if(!h){c.set(r,h=n?n():new a.x);var p=(g=r,b=h,(v=new o.y(function(t){d.activeGroups++;var e=b.subscribe(t);return function(){e.unsubscribe(),0==--d.activeGroups&&d.teardownAttempted&&d.unsubscribe()}})).key=g,v);if(s.next(p),i){var f=new m.Q(h,function(){h.complete(),null==f||f.unsubscribe()},void 0,void 0,function(){return c.delete(r)});d.add((0,y.Xf)(i(p)).subscribe(f))}}h.next(l?l(e):e)}catch(_){u(_)}var g,b,v},function(){return h(function(t){return t.complete()})},u,function(){return c.clear()});r.subscribe(d)})}var v=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.activeGroups=0,e.teardownAttempted=!1,e}return(0,g.ZT)(e,t),e.prototype.unsubscribe=function(){this.teardownAttempted=!0,0===this.activeGroups&&t.prototype.unsubscribe.call(this)},e}(m.Q),_=i(1681);function w(t,e){return e?function(i){return i.pipe(w(function(i,n){return(0,y.Xf)(t(i,n)).pipe((0,_.U)(function(t,r){return e(i,t,n,r)}))}))}:(0,f.e)(function(e,i){var n=0,r=null,s=!1;e.subscribe(new m.Q(i,function(e){r||(r=new m.Q(i,void 0,function(){r=null,s&&i.complete()}),(0,y.Xf)(t(e,n++)).subscribe(r))},function(){s=!0,!r&&i.complete()}))})}var x=i(3286),C=i(1816),A=i(8868),S=i(7228),E=i(9056),k=i(1572);const T={dispatch:!0,useEffectsErrorHandler:!0},M="__@ngrx/effects_create__";function L(t,e){const i=t(),n=Object.assign(Object.assign({},T),e);return Object.defineProperty(i,M,{value:n}),i}function I(t){return Object.getOwnPropertyNames(t).filter(e=>!(!t[e]||!t[e].hasOwnProperty(M))&&t[e][M].hasOwnProperty("dispatch")).map(e=>Object.assign({propertyName:e},t[e][M]))}function O(t){return Object.getPrototypeOf(t)}const D="__@ngrx/effects__";function R(t){return(0,r.qC)(N,O)(t)}function N(t){return function(t){return t.constructor.hasOwnProperty(D)}(t)?t.constructor[D]:[]}function P(t,e,i=10){return t.pipe((0,C.K)(n=>(e&&e.handleError(n),i<=1?t:P(t,e,i-1))))}let F=(()=>{class t extends o.y{constructor(t){super(),t&&(this.source=t)}lift(e){const i=new t;return i.source=this,i.operator=e,i}}return t.\u0275fac=function(e){return new(e||t)(k.LFG(r.Y$))},t.\u0275prov=k.Yz7({token:t,factory:t.\u0275fac}),t})();function Z(...t){return(0,A.h)(e=>t.some(t=>"string"==typeof t?t===e.type:t.type===e.type))}function B(t){return U(t,"ngrxOnInitEffects")}function U(t,e){return t&&e in t&&"function"==typeof t[e]}const q=new k.OlP("@ngrx/effects Internal Root Guard"),z=new k.OlP("@ngrx/effects User Provided Effects"),H=new k.OlP("@ngrx/effects Internal Root Effects"),Y=new k.OlP("@ngrx/effects Root Effects"),G=new k.OlP("@ngrx/effects Internal Feature Effects"),j=new k.OlP("@ngrx/effects Feature Effects"),V=new k.OlP("@ngrx/effects Effects Error Handler");let Q=(()=>{class t extends a.x{constructor(t,e){super(),this.errorHandler=t,this.effectsErrorHandler=e}addEffects(t){this.next(t)}toActions(){return this.pipe(b(O),(0,S.z)(t=>t.pipe(b(W))),(0,S.z)(t=>{const e=t.pipe(w(t=>{return(e=this.errorHandler,i=this.effectsErrorHandler,t=>{const n=function(t,e,i){const n=O(t).constructor.name,r=(o=t,[R,I].reduce((t,e)=>t.concat(e(o)),[])).map(({propertyName:r,dispatch:s,useEffectsErrorHandler:o})=>{const a="function"==typeof t[r]?t[r]():t[r],l=o?i(a,e):a;return!1===s?l.pipe((0,x.l)()):l.pipe((0,f.e)(function(t,e){t.subscribe(new m.Q(e,function(t){e.next(d.createNext(t))},function(){e.next(d.createComplete()),e.complete()},function(t){e.next(d.createError(t)),e.complete()}))})).pipe((0,_.U)(e=>({effect:t[r],notification:e,propertyName:r,sourceName:n,sourceInstance:t})))});var o;return(0,s.T)(...r)}(t,e,i);return U(t,"ngrxOnRunEffects")?t.ngrxOnRunEffects(n):n})(t);var e,i}),(0,_.U)(t=>(function(t,e){if("N"===t.notification.kind){const i=t.notification.value;!function(t){return"function"!=typeof t&&t&&t.type&&"string"==typeof t.type}(i)&&e.handleError(new Error(`Effect ${function({propertyName:t,sourceInstance:e,sourceName:i}){const n="function"==typeof e[t];return`"${i}.${String(t)}${n?"()":""}"`}(t)} dispatched an invalid action: ${function(t){try{return JSON.stringify(t)}catch(e){return t}}(i)}`))}}(t,this.errorHandler),t.notification)),(0,A.h)(t=>"N"===t.kind&&null!=t.value),(0,f.e)(function(t,e){t.subscribe(new m.Q(e,function(t){return p(t,e)}))})),i=t.pipe((0,E.q)(1),(0,A.h)(B),(0,_.U)(t=>t.ngrxOnInitEffects()));return(0,s.T)(e,i)}))}}return t.\u0275fac=function(e){return new(e||t)(k.LFG(k.qLn),k.LFG(V))},t.\u0275prov=k.Yz7({token:t,factory:t.\u0275fac}),t})();function W(t){return U(t,"ngrxOnIdentifyEffects")?t.ngrxOnIdentifyEffects():""}let J=(()=>{class t{constructor(t,e){this.effectSources=t,this.store=e,this.effectsSubscription=null}start(){this.effectsSubscription||(this.effectsSubscription=this.effectSources.toActions().subscribe(this.store))}ngOnDestroy(){this.effectsSubscription&&(this.effectsSubscription.unsubscribe(),this.effectsSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(k.LFG(Q),k.LFG(r.yh))},t.\u0275prov=k.Yz7({token:t,factory:t.\u0275fac}),t})();const X="@ngrx/effects/init";(0,r.PH)(X);let K=(()=>{class t{constructor(t,e,i,n,r,s,o){this.sources=t,e.start(),n.forEach(e=>t.addEffects(e)),i.dispatch({type:X})}addEffects(t){this.sources.addEffects(t)}}return t.\u0275fac=function(e){return new(e||t)(k.LFG(Q),k.LFG(J),k.LFG(r.yh),k.LFG(Y),k.LFG(r.cr,8),k.LFG(r.CK,8),k.LFG(q,8))},t.\u0275mod=k.oAB({type:t}),t.\u0275inj=k.cJS({}),t})(),$=(()=>{class t{constructor(t,e,i,n){e.forEach(e=>e.forEach(e=>t.addEffects(e)))}}return t.\u0275fac=function(e){return new(e||t)(k.LFG(K),k.LFG(j),k.LFG(r.cr,8),k.LFG(r.CK,8))},t.\u0275mod=k.oAB({type:t}),t.\u0275inj=k.cJS({}),t})(),tt=(()=>{class t{static forFeature(t=[]){return{ngModule:$,providers:[t,{provide:G,multi:!0,useValue:t},{provide:z,multi:!0,useValue:[]},{provide:j,multi:!0,useFactory:et,deps:[k.zs3,G,z]}]}}static forRoot(t=[]){return{ngModule:K,providers:[{provide:V,useValue:P},J,Q,F,t,{provide:H,useValue:[t]},{provide:q,useFactory:it,deps:[[J,new k.FiY,new k.tp0],[H,new k.PiD]]},{provide:z,multi:!0,useValue:[]},{provide:Y,useFactory:et,deps:[k.zs3,H,z]}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=k.oAB({type:t}),t.\u0275inj=k.cJS({}),t})();function et(t,e,i){const n=[];for(const r of e)n.push(...r);for(const r of i)n.push(...r);return function(t,e){return e.map(e=>t.get(e))}(t,n)}function it(t,e){if((1!==e.length||0!==e[0].length)&&t)throw new TypeError("EffectsModule.forRoot() called twice. Feature modules should use EffectsModule.forFeature() instead.");return"guarded"}},7876:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{FT:()=>StoreDevtoolsModule});var _angular_core__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1572),_ngrx_store__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(964),rxjs__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(4951),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(2391),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(2041),rxjs__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(5446),rxjs__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(2873),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(6407),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(7839),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(8868),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(1681),rxjs_operators__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(8196),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(7411),rxjs_operators__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(5057),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(1816),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(9056),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(9568),rxjs_operators__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(4324),rxjs_operators__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(4444),rxjs_operators__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(8919),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(5653),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(8193);class StoreDevtoolsConfig{constructor(){this.maxAge=!1}}const STORE_DEVTOOLS_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_0__.OlP("@ngrx/store-devtools Options"),INITIAL_OPTIONS=new _angular_core__WEBPACK_IMPORTED_MODULE_0__.OlP("@ngrx/store-devtools Initial Config");function noMonitor(){return null}const DEFAULT_NAME="NgRx Store DevTools";function createConfig(t){const e={maxAge:!1,monitor:noMonitor,actionSanitizer:void 0,stateSanitizer:void 0,name:DEFAULT_NAME,serialize:!1,logOnly:!1,autoPause:!1,features:{pause:!0,lock:!0,persist:!0,export:!0,import:"custom",jump:!0,skip:!0,reorder:!0,dispatch:!0,test:!0}},i="function"==typeof t?t():t,n=Object.assign({},e,{features:i.features||!!i.logOnly&&{pause:!0,export:!0,test:!0}||e.features},i);if(n.maxAge&&n.maxAge<2)throw new Error(`Devtools 'maxAge' cannot be less than 2, got ${n.maxAge}`);return n}const PERFORM_ACTION="PERFORM_ACTION",REFRESH="REFRESH",RESET="RESET",ROLLBACK="ROLLBACK",COMMIT="COMMIT",SWEEP="SWEEP",TOGGLE_ACTION="TOGGLE_ACTION",SET_ACTIONS_ACTIVE="SET_ACTIONS_ACTIVE",JUMP_TO_STATE="JUMP_TO_STATE",JUMP_TO_ACTION="JUMP_TO_ACTION",IMPORT_STATE="IMPORT_STATE",LOCK_CHANGES="LOCK_CHANGES",PAUSE_RECORDING="PAUSE_RECORDING";class PerformAction{constructor(t,e){if(this.action=t,this.timestamp=e,this.type=PERFORM_ACTION,void 0===t.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?')}}class Refresh{constructor(){this.type=REFRESH}}class Reset{constructor(t){this.timestamp=t,this.type=RESET}}class Rollback{constructor(t){this.timestamp=t,this.type=ROLLBACK}}class Commit{constructor(t){this.timestamp=t,this.type=COMMIT}}class Sweep{constructor(){this.type=SWEEP}}class ToggleAction{constructor(t){this.id=t,this.type=TOGGLE_ACTION}}class SetActionsActive{constructor(t,e,i=!0){this.start=t,this.end=e,this.active=i,this.type=SET_ACTIONS_ACTIVE}}class JumpToState{constructor(t){this.index=t,this.type=JUMP_TO_STATE}}class JumpToAction{constructor(t){this.actionId=t,this.type=JUMP_TO_ACTION}}class ImportState{constructor(t){this.nextLiftedState=t,this.type=IMPORT_STATE}}class LockChanges{constructor(t){this.status=t,this.type=LOCK_CHANGES}}class PauseRecording{constructor(t){this.status=t,this.type=PAUSE_RECORDING}}let DevtoolsDispatcher=(()=>{class t extends _ngrx_store__WEBPACK_IMPORTED_MODULE_1__.UO{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=_angular_core__WEBPACK_IMPORTED_MODULE_0__.n5z(t)))(i||t)}}(),t.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:t,factory:t.\u0275fac}),t})();function difference(t,e){return t.filter(t=>e.indexOf(t)<0)}function unliftState(t){const{computedStates:e,currentStateIndex:i}=t;if(i>=e.length){const{state:t}=e[e.length-1];return t}const{state:n}=e[i];return n}function unliftAction(t){return t.actionsById[t.nextActionId-1]}function liftAction(t){return new PerformAction(t,+Date.now())}function sanitizeActions(t,e){return Object.keys(e).reduce((i,n)=>{const r=Number(n);return i[r]=sanitizeAction(t,e[r],r),i},{})}function sanitizeAction(t,e,i){return Object.assign(Object.assign({},e),{action:t(e.action,i)})}function sanitizeStates(t,e){return e.map((e,i)=>({state:sanitizeState(t,e.state,i),error:e.error}))}function sanitizeState(t,e,i){return t(e,i)}function shouldFilterActions(t){return t.predicate||t.actionsSafelist||t.actionsBlocklist}function filterLiftedState(t,e,i,n){const r=[],s={},o=[];return t.stagedActionIds.forEach((a,l)=>{const c=t.actionsById[a];c&&(l&&isActionFiltered(t.computedStates[l],c,e,i,n)||(s[a]=c,r.push(a),o.push(t.computedStates[l])))}),Object.assign(Object.assign({},t),{stagedActionIds:r,actionsById:s,computedStates:o})}function isActionFiltered(t,e,i,n,r){const s=i&&!i(t,e.action),o=n&&!e.action.type.match(n.map(t=>escapeRegExp(t)).join("|")),a=r&&e.action.type.match(r.map(t=>escapeRegExp(t)).join("|"));return s||o||a}function escapeRegExp(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const ExtensionActionTypes={START:"START",DISPATCH:"DISPATCH",STOP:"STOP",ACTION:"ACTION"},REDUX_DEVTOOLS_EXTENSION=new _angular_core__WEBPACK_IMPORTED_MODULE_0__.OlP("@ngrx/store-devtools Redux Devtools Extension");let DevtoolsExtension=(()=>{class DevtoolsExtension{constructor(t,e,i){this.config=e,this.dispatcher=i,this.devtoolsExtension=t,this.createActionStreams()}notify(t,e){if(this.devtoolsExtension)if(t.type===PERFORM_ACTION){if(e.isLocked||e.isPaused)return;const i=unliftState(e);if(shouldFilterActions(this.config)&&isActionFiltered(i,t,this.config.predicate,this.config.actionsSafelist,this.config.actionsBlocklist))return;const n=this.config.stateSanitizer?sanitizeState(this.config.stateSanitizer,i,e.currentStateIndex):i,r=this.config.actionSanitizer?sanitizeAction(this.config.actionSanitizer,t,e.nextActionId):t;this.sendToReduxDevtools(()=>this.extensionConnection.send(r,n))}else{const t=Object.assign(Object.assign({},e),{stagedActionIds:e.stagedActionIds,actionsById:this.config.actionSanitizer?sanitizeActions(this.config.actionSanitizer,e.actionsById):e.actionsById,computedStates:this.config.stateSanitizer?sanitizeStates(this.config.stateSanitizer,e.computedStates):e.computedStates});this.sendToReduxDevtools(()=>this.devtoolsExtension.send(null,t,this.getExtensionConfig(this.config)))}}createChangesObservable(){return this.devtoolsExtension?new rxjs__WEBPACK_IMPORTED_MODULE_3__.y(t=>{const e=this.devtoolsExtension.connect(this.getExtensionConfig(this.config));return this.extensionConnection=e,e.init(),e.subscribe(e=>t.next(e)),e.unsubscribe}):rxjs__WEBPACK_IMPORTED_MODULE_2__.E}createActionStreams(){const t=this.createChangesObservable().pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.B)()),e=t.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(t=>t.type===ExtensionActionTypes.START)),i=t.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(t=>t.type===ExtensionActionTypes.STOP)),n=t.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(t=>t.type===ExtensionActionTypes.DISPATCH),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(t=>this.unwrapAction(t.payload)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.b)(t=>t.type===IMPORT_STATE?this.dispatcher.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(t=>t.type===_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.wb),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.V)(1e3),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_9__.b)(1e3),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(()=>t),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.K)(()=>(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.of)(t)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.q)(1)):(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.of)(t))),r=t.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(t=>t.type===ExtensionActionTypes.ACTION),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(t=>this.unwrapAction(t.payload))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.R)(i)),s=n.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.R)(i));this.start$=e.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.R)(i)),this.actions$=this.start$.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.w)(()=>r)),this.liftedActions$=this.start$.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.w)(()=>s))}unwrapAction(action){return"string"==typeof action?eval(`(${action})`):action}getExtensionConfig(t){var e;const i={name:t.name,features:t.features,serialize:t.serialize,autoPause:null!==(e=t.autoPause)&&void 0!==e&&e};return!1!==t.maxAge&&(i.maxAge=t.maxAge),i}sendToReduxDevtools(t){try{t()}catch(e){console.warn("@ngrx/store-devtools: something went wrong inside the redux devtools",e)}}}return DevtoolsExtension.\u0275fac=function(t){return new(t||DevtoolsExtension)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(REDUX_DEVTOOLS_EXTENSION),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(STORE_DEVTOOLS_CONFIG),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(DevtoolsDispatcher))},DevtoolsExtension.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:DevtoolsExtension,factory:DevtoolsExtension.\u0275fac}),DevtoolsExtension})();const INIT_ACTION={type:_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.qg},RECOMPUTE="@ngrx/store-devtools/recompute",RECOMPUTE_ACTION={type:RECOMPUTE};function computeNextEntry(t,e,i,n,r){if(n)return{state:i,error:"Interrupted by an error up the chain"};let s,o=i;try{o=t(i,e)}catch(a){s=a.toString(),r.handleError(a)}return{state:o,error:s}}function recomputeStates(t,e,i,n,r,s,o,a,l){if(e>=t.length&&t.length===s.length)return t;const c=t.slice(0,e),h=s.length-(l?1:0);for(let u=e;u-1?l:computeNextEntry(i,e,h,d,a);c.push(p)}return l&&c.push(t[t.length-1]),c}function liftInitialState(t,e){return{monitorState:e(void 0,{}),nextActionId:1,actionsById:{0:liftAction(INIT_ACTION)},stagedActionIds:[0],skippedActionIds:[],committedState:t,currentStateIndex:0,computedStates:[],isLocked:!1,isPaused:!1}}function liftReducerWith(t,e,i,n,r={}){return s=>(o,a)=>{let{monitorState:l,actionsById:c,nextActionId:h,stagedActionIds:u,skippedActionIds:d,committedState:p,currentStateIndex:f,computedStates:m,isLocked:g,isPaused:y}=o||e;function b(t){let e=t,i=u.slice(1,e+1);for(let n=0;n-1===i.indexOf(t)),u=[0,...u.slice(e+1)],p=m[e].state,m=m.slice(e),f=f>e?f-e:0}function v(){c={0:liftAction(INIT_ACTION)},h=1,u=[0],d=[],p=m[f].state,f=0,m=[]}o||(c=Object.create(c));let _=0;switch(a.type){case LOCK_CHANGES:g=a.status,_=1/0;break;case PAUSE_RECORDING:y=a.status,y?(u=[...u,h],c[h]=new PerformAction({type:"@ngrx/devtools/pause"},+Date.now()),h++,_=u.length-1,m=m.concat(m[m.length-1]),f===u.length-2&&f++,_=1/0):v();break;case RESET:c={0:liftAction(INIT_ACTION)},h=1,u=[0],d=[],p=t,f=0,m=[];break;case COMMIT:v();break;case ROLLBACK:c={0:liftAction(INIT_ACTION)},h=1,u=[0],d=[],f=0,m=[];break;case TOGGLE_ACTION:{const{id:t}=a,e=d.indexOf(t);d=-1===e?[t,...d]:d.filter(e=>e!==t),_=u.indexOf(t);break}case SET_ACTIONS_ACTIVE:{const{start:t,end:e,active:i}=a,n=[];for(let r=t;rr.maxAge&&(m=recomputeStates(m,_,s,p,c,u,d,i,y),b(u.length-r.maxAge),_=1/0);break;case _ngrx_store__WEBPACK_IMPORTED_MODULE_1__.wb:if(m.filter(t=>t.error).length>0)_=0,r.maxAge&&u.length>r.maxAge&&(m=recomputeStates(m,_,s,p,c,u,d,i,y),b(u.length-r.maxAge),_=1/0);else{if(!y&&!g){f===u.length-1&&f++;const t=h++;c[t]=new PerformAction(a,+Date.now()),u=[...u,t],_=u.length-1,m=recomputeStates(m,_,s,p,c,u,d,i,y)}m=m.map(t=>Object.assign(Object.assign({},t),{state:s(t.state,RECOMPUTE_ACTION)})),f=u.length-1,r.maxAge&&u.length>r.maxAge&&b(u.length-r.maxAge),_=1/0}break;default:_=1/0}return m=recomputeStates(m,_,s,p,c,u,d,i,y),l=n(l,a),{monitorState:l,actionsById:c,nextActionId:h,stagedActionIds:u,skippedActionIds:d,committedState:p,currentStateIndex:f,computedStates:m,isLocked:g,isPaused:y}}}let StoreDevtools=(()=>{class t{constructor(t,e,i,n,r,s,o,a){const l=liftInitialState(o,a.monitor),c=liftReducerWith(o,l,s,a.monitor,a),h=(0,rxjs__WEBPACK_IMPORTED_MODULE_15__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_15__.T)(e.asObservable().pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_16__.T)(1)),n.actions$).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(liftAction)),t,n.liftedActions$).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_17__.Q)(rxjs__WEBPACK_IMPORTED_MODULE_18__.N)),u=i.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(c)),d=new rxjs__WEBPACK_IMPORTED_MODULE_19__.t(1),p=h.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.M)(u),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.R)(({state:t},[e,i])=>{let r=i(t,e);return e.type!==PERFORM_ACTION&&shouldFilterActions(a)&&(r=filterLiftedState(r,a.predicate,a.actionsSafelist,a.actionsBlocklist)),n.notify(e,r),{state:r,action:e}},{state:l,action:null})).subscribe(({state:t,action:e})=>{d.next(t),e.type===PERFORM_ACTION&&r.next(e.action)}),f=n.start$.subscribe(()=>{this.refresh()}),m=d.asObservable(),g=m.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(unliftState));this.extensionStartSubscription=f,this.stateSubscription=p,this.dispatcher=t,this.liftedState=m,this.state=g}dispatch(t){this.dispatcher.next(t)}next(t){this.dispatcher.next(t)}error(t){}complete(){}performAction(t){this.dispatch(new PerformAction(t,+Date.now()))}refresh(){this.dispatch(new Refresh)}reset(){this.dispatch(new Reset(+Date.now()))}rollback(){this.dispatch(new Rollback(+Date.now()))}commit(){this.dispatch(new Commit(+Date.now()))}sweep(){this.dispatch(new Sweep)}toggleAction(t){this.dispatch(new ToggleAction(t))}jumpToAction(t){this.dispatch(new JumpToAction(t))}jumpToState(t){this.dispatch(new JumpToState(t))}importState(t){this.dispatch(new ImportState(t))}lockChanges(t){this.dispatch(new LockChanges(t))}pauseRecording(t){this.dispatch(new PauseRecording(t))}}return t.\u0275fac=function(e){return new(e||t)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(DevtoolsDispatcher),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.UO),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.n$),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(DevtoolsExtension),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.Y$),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_angular_core__WEBPACK_IMPORTED_MODULE_0__.qLn),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.Y6),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(STORE_DEVTOOLS_CONFIG))},t.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:t,factory:t.\u0275fac}),t})();const IS_EXTENSION_OR_MONITOR_PRESENT=new _angular_core__WEBPACK_IMPORTED_MODULE_0__.OlP("@ngrx/store-devtools Is Devtools Extension or Monitor Present");function createIsExtensionOrMonitorPresent(t,e){return Boolean(t)||e.monitor!==noMonitor}function createReduxDevtoolsExtension(){const t="__REDUX_DEVTOOLS_EXTENSION__";return"object"==typeof window&&void 0!==window[t]?window[t]:null}function createStateObservable(t){return t.state}let StoreDevtoolsModule=(()=>{class t{static instrument(e={}){return{ngModule:t,providers:[DevtoolsExtension,DevtoolsDispatcher,StoreDevtools,{provide:INITIAL_OPTIONS,useValue:e},{provide:IS_EXTENSION_OR_MONITOR_PRESENT,deps:[REDUX_DEVTOOLS_EXTENSION,STORE_DEVTOOLS_CONFIG],useFactory:createIsExtensionOrMonitorPresent},{provide:REDUX_DEVTOOLS_EXTENSION,useFactory:createReduxDevtoolsExtension},{provide:STORE_DEVTOOLS_CONFIG,deps:[INITIAL_OPTIONS],useFactory:createConfig},{provide:_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.FR,deps:[StoreDevtools],useFactory:createStateObservable},{provide:_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.mK,useExisting:DevtoolsDispatcher}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_0__.oAB({type:t}),t.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_0__.cJS({}),t})()},964:(t,e,i)=>{"use strict";i.d(e,{UO:()=>y,qg:()=>g,Y6:()=>w,mK:()=>Y,n$:()=>H,Y$:()=>Q,FR:()=>J,yh:()=>tt,CK:()=>kt,Aw:()=>Tt,cr:()=>Et,wb:()=>G,qC:()=>q,PH:()=>f,ZF:()=>ft,P1:()=>dt});var n=i(1572),r=i(7425),s=i(2391),o=i(9666),a=i(2873),l=i(1681),c=i(8919),h=i(5653),u=i(8193),d=i(6424);const p={};function f(t,e){if(p[t]=(p[t]||0)+1,"function"==typeof e)return m(t,(...i)=>Object.assign(Object.assign({},e(...i)),{type:t}));switch(e?e._as:"empty"){case"empty":return m(t,()=>({type:t}));case"props":return m(t,e=>Object.assign(Object.assign({},e),{type:t}));default:throw new Error("Unexpected config.")}}function m(t,e){return Object.defineProperty(e,"type",{value:t,writable:!1})}const g="@ngrx/store/init";let y=(()=>{class t extends r.X{constructor(){super({type:g})}next(t){if("function"==typeof t)throw new TypeError("\n Dispatch expected an object, instead it received a function.\n If you're using the createAction function, make sure to invoke the function\n before dispatching the action. For example, someAction should be someAction().");if(void 0===t)throw new TypeError("Actions must be objects");if(void 0===t.type)throw new TypeError("Actions must have a type property");super.next(t)}complete(){}ngOnDestroy(){super.complete()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})();const b=[y],v=new n.OlP("@ngrx/store Internal Root Guard"),_=new n.OlP("@ngrx/store Internal Initial State"),w=new n.OlP("@ngrx/store Initial State"),x=new n.OlP("@ngrx/store Reducer Factory"),C=new n.OlP("@ngrx/store Internal Reducer Factory Provider"),A=new n.OlP("@ngrx/store Initial Reducers"),S=new n.OlP("@ngrx/store Internal Initial Reducers"),E=new n.OlP("@ngrx/store Store Features"),k=new n.OlP("@ngrx/store Internal Store Reducers"),T=new n.OlP("@ngrx/store Internal Feature Reducers"),M=new n.OlP("@ngrx/store Internal Feature Configs"),L=new n.OlP("@ngrx/store Internal Store Features"),I=new n.OlP("@ngrx/store Internal Feature Reducers Token"),O=new n.OlP("@ngrx/store Feature Reducers"),D=new n.OlP("@ngrx/store User Provided Meta Reducers"),R=new n.OlP("@ngrx/store Meta Reducers"),N=new n.OlP("@ngrx/store Internal Resolved Meta Reducers"),P=new n.OlP("@ngrx/store User Runtime Checks Config"),F=new n.OlP("@ngrx/store Internal User Runtime Checks Config"),Z=new n.OlP("@ngrx/store Internal Runtime Checks"),B=new n.OlP("@ngrx/store Check if Action types are unique");function U(t,e={}){const i=Object.keys(t),n={};for(let s=0;se(t),i(e))}}function z(t,e){return Array.isArray(e)&&e.length>0&&(t=q.apply(null,[...e,t])),(e,i)=>{const n=t(e);return(t,e)=>n(t=void 0===t?i:t,e)}}class H extends s.y{}class Y extends y{}const G="@ngrx/store/update-reducers";let j=(()=>{class t extends r.X{constructor(t,e,i,n){super(n(i,e)),this.dispatcher=t,this.initialState=e,this.reducers=i,this.reducerFactory=n}addFeature(t){this.addFeatures([t])}addFeatures(t){const e=t.reduce((t,{reducers:e,reducerFactory:i,metaReducers:n,initialState:r,key:s})=>{const o="function"==typeof e?function(t){const e=Array.isArray(t)&&t.length>0?q(...t):t=>t;return(t,i)=>(t=e(t),(e,n)=>t(e=void 0===e?i:e,n))}(n)(e,r):z(i,n)(e,r);return t[s]=o,t},{});this.addReducers(e)}removeFeature(t){this.removeFeatures([t])}removeFeatures(t){this.removeReducers(t.map(t=>t.key))}addReducer(t,e){this.addReducers({[t]:e})}addReducers(t){this.reducers=Object.assign(Object.assign({},this.reducers),t),this.updateReducers(Object.keys(t))}removeReducer(t){this.removeReducers([t])}removeReducers(t){t.forEach(t=>{var e,i;this.reducers=(e=this.reducers,i=t,Object.keys(e).filter(t=>t!==i).reduce((t,i)=>Object.assign(t,{[i]:e[i]}),{}))}),this.updateReducers(t)}updateReducers(t){this.next(this.reducerFactory(this.reducers,this.initialState)),this.dispatcher.next({type:G,features:t})}ngOnDestroy(){this.complete()}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(Y),n.LFG(w),n.LFG(A),n.LFG(x))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})();const V=[j,{provide:H,useExisting:j},{provide:Y,useExisting:y}];let Q=(()=>{class t extends o.x{ngOnDestroy(){this.complete()}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=n.n5z(t)))(i||t)}}(),t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})();const W=[Q];class J extends s.y{}let X=(()=>{class t extends r.X{constructor(t,e,i,n){super(n);const r=t.pipe((0,c.Q)(a.N)).pipe((0,h.M)(e)).pipe((0,u.R)(K,{state:n}));this.stateSubscription=r.subscribe(({state:t,action:e})=>{this.next(t),i.next(e)})}ngOnDestroy(){this.stateSubscription.unsubscribe(),this.complete()}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(y),n.LFG(H),n.LFG(Q),n.LFG(w))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t.INIT=g,t})();function K(t={state:void 0},[e,i]){const{state:n}=t;return{state:i(n,e),action:e}}const $=[X,{provide:J,useExisting:X}];let tt=(()=>{class t extends s.y{constructor(t,e,i){super(),this.actionsObserver=e,this.reducerManager=i,this.source=t}select(t,...e){return it.call(null,t,...e)(this)}lift(e){const i=new t(this,this.actionsObserver,this.reducerManager);return i.operator=e,i}dispatch(t){this.actionsObserver.next(t)}next(t){this.actionsObserver.next(t)}error(t){this.actionsObserver.error(t)}complete(){this.actionsObserver.complete()}addReducer(t,e){this.reducerManager.addReducer(t,e)}removeReducer(t){this.reducerManager.removeReducer(t)}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(J),n.LFG(y),n.LFG(j))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})();const et=[tt];function it(t,e,...i){return function(n){let r;if("string"==typeof t){const s=[e,...i].filter(Boolean);r=n.pipe(function(){for(var t=[],e=0;et(i,e)))}return r.pipe((0,d.x)())}}const nt="https://ngrx.io/guide/store/configuration/runtime-checks";function rt(t){return void 0===t}function st(t){return null===t}function ot(t){return Array.isArray(t)}function at(t){return"object"==typeof t&&null!==t}function lt(t){return"function"==typeof t}function ct(t,e){return t===e}function ht(t,e,i){for(let n=0;nt.release&&"function"==typeof t.release),a=t(function(...t){return s.apply(null,t)}),l=ut(function(t,i){return e.stateFn.apply(null,[t,r,i,a])});return Object.assign(l.memoized,{release:function(){l.reset(),a.reset(),o.forEach(t=>t.release())},projector:a.memoized,setResult:l.setResult,clearResult:l.clearResult})}}(ut)(...t)}function pt(t,e,i,n){if(void 0===i){const i=e.map(e=>e(t));return n.memoized.apply(null,i)}const r=e.map(e=>e(t,i));return n.memoized.apply(null,[...r,i])}function ft(t){return dt(e=>{const i=e[t];return!(0,n.X6Q)()||t in e||console.warn(`@ngrx/store: The feature name "${t}" does not exist in the state, therefore createFeatureSelector cannot access it. Be sure it is imported in a loaded module using StoreModule.forRoot('${t}', ...) or StoreModule.forFeature('${t}', ...). If the default state is intended to be undefined, as is the case with router state, this development-only warning message can be ignored.`),i},t=>t)}function mt(t){Object.freeze(t);const e=lt(t);return Object.getOwnPropertyNames(t).forEach(i=>{if(!i.startsWith("\u0275")&&function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}(t,i)&&(!e||"caller"!==i&&"callee"!==i&&"arguments"!==i)){const e=t[i];!at(e)&&!lt(e)||Object.isFrozen(e)||mt(e)}}),t}function gt(t,e=[]){return(rt(t)||st(t))&&0===e.length?{path:["root"],value:t}:Object.keys(t).reduce((i,n)=>{if(i)return i;const r=t[n];return function(t){return lt(t)&&t.hasOwnProperty("\u0275cmp")}(r)?i:!(rt(r)||st(r)||function(t){return"number"==typeof t}(r)||function(t){return"boolean"==typeof t}(r)||function(t){return"string"==typeof t}(r)||ot(r))&&(function(t){if(!function(t){return at(t)&&!ot(t)}(t))return!1;const e=Object.getPrototypeOf(t);return e===Object.prototype||null===e}(r)?gt(r,[...e,n]):{path:[...e,n],value:r})},!1)}function yt(t,e){if(!1===t)return;const i=t.path.join("."),n=new Error(`Detected unserializable ${e} at "${i}". ${nt}#strict${e}serializability`);throw n.value=t.value,n.unserializablePath=i,n}function bt(t){return(0,n.X6Q)()?Object.assign({strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!0,strictActionImmutability:!0,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1},t):{strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!1,strictActionImmutability:!1,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1}}function vt({strictActionSerializability:t,strictStateSerializability:e}){return i=>t||e?function(t,e){return function(i,n){e.action(n)&&yt(gt(n),"action");const r=t(i,n);return e.state()&&yt(gt(r),"state"),r}}(i,{action:e=>t&&!wt(e),state:()=>e}):i}function _t({strictActionImmutability:t,strictStateImmutability:e}){return i=>t||e?function(t,e){return function(i,n){const r=e.action(n)?mt(n):n,s=t(i,r);return e.state()?mt(s):s}}(i,{action:e=>t&&!wt(e),state:()=>e}):i}function wt(t){return t.type.startsWith("@ngrx")}function xt({strictActionWithinNgZone:t}){return e=>t?function(t,e){return function(i,r){if(e.action(r)&&!n.R0b.isInAngularZone())throw new Error(`Action '${r.type}' running outside NgZone. ${nt}#strictactionwithinngzone`);return t(i,r)}}(e,{action:e=>t&&!wt(e)}):e}function Ct(){return[{provide:B,multi:!0,deps:[Z],useFactory:St}]}function At(t){return t}function St(t){if(!t.strictActionTypeUniqueness)return;const e=Object.entries(p).filter(([,t])=>t>1).map(([t])=>t);if(e.length)throw new Error(`Action types are registered more than once, ${e.map(t=>`"${t}"`).join(", ")}. ${nt}#strictactiontypeuniqueness`)}let Et=(()=>{class t{constructor(t,e,i,n,r,s){}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(y),n.LFG(H),n.LFG(Q),n.LFG(tt),n.LFG(v,8),n.LFG(B,8))},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({}),t})(),kt=(()=>{class t{constructor(t,e,i,n,r){this.features=t,this.featureReducers=e,this.reducerManager=i;const s=t.map((t,i)=>{const n=e.shift()[i];return Object.assign(Object.assign({},t),{reducers:n,initialState:Ot(t.initialState)})});i.addFeatures(s)}ngOnDestroy(){this.reducerManager.removeFeatures(this.features)}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(L),n.LFG(O),n.LFG(j),n.LFG(Et),n.LFG(B,8))},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({}),t})(),Tt=(()=>{class t{static forRoot(t,e={}){return{ngModule:Et,providers:[{provide:v,useFactory:Rt,deps:[[tt,new n.FiY,new n.tp0]]},{provide:_,useValue:e.initialState},{provide:w,useFactory:Ot,deps:[_]},{provide:S,useValue:t},{provide:k,useExisting:t instanceof n.OlP?t:S},{provide:A,deps:[n.zs3,S,[new n.tBr(k)]],useFactory:Mt},{provide:D,useValue:e.metaReducers?e.metaReducers:[]},{provide:N,deps:[R,D],useFactory:Dt},{provide:C,useValue:e.reducerFactory?e.reducerFactory:U},{provide:x,deps:[C,N],useFactory:z},b,V,W,$,et,(i=e.runtimeChecks,[{provide:F,useValue:i},{provide:P,useFactory:At,deps:[F]},{provide:Z,deps:[P],useFactory:bt},{provide:R,multi:!0,deps:[Z],useFactory:_t},{provide:R,multi:!0,deps:[Z],useFactory:vt},{provide:R,multi:!0,deps:[Z],useFactory:xt}]),Ct()]};var i}static forFeature(t,e,i={}){return{ngModule:kt,providers:[{provide:M,multi:!0,useValue:t instanceof Object?{}:i},{provide:E,multi:!0,useValue:{key:t instanceof Object?t.name:t,reducerFactory:i instanceof n.OlP||!i.reducerFactory?U:i.reducerFactory,metaReducers:i instanceof n.OlP||!i.metaReducers?[]:i.metaReducers,initialState:i instanceof n.OlP||!i.initialState?void 0:i.initialState}},{provide:L,deps:[n.zs3,M,E],useFactory:Lt},{provide:T,multi:!0,useValue:t instanceof Object?t.reducer:e},{provide:I,multi:!0,useExisting:e instanceof n.OlP?e:T},{provide:O,multi:!0,deps:[n.zs3,T,[new n.tBr(I)]],useFactory:It},Ct()]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({}),t})();function Mt(t,e){return e instanceof n.OlP?t.get(e):e}function Lt(t,e,i){return i.map((i,r)=>{if(e[r]instanceof n.OlP){const n=t.get(e[r]);return{key:i.key,reducerFactory:n.reducerFactory?n.reducerFactory:U,metaReducers:n.metaReducers?n.metaReducers:[],initialState:n.initialState}}return i})}function It(t,e){return e.map(e=>e instanceof n.OlP?t.get(e):e)}function Ot(t){return"function"==typeof t?t():t}function Dt(t,e){return t.concat(e)}function Rt(t){if(t)throw new TypeError("StoreModule.forRoot() called twice. Feature modules should use StoreModule.forFeature() instead.");return"guarded"}},2281:(t,e)=>{"use strict";function i(t){return Object.keys(t).map(e=>t[e])}var n;Object.defineProperty(e,"__esModule",{value:!0}),(n=e.HashAlgorithms||(e.HashAlgorithms={})).SHA1="sha1",n.SHA256="sha256",n.SHA512="sha512";const r=i(e.HashAlgorithms);var s;(s=e.KeyEncodings||(e.KeyEncodings={})).ASCII="ascii",s.BASE64="base64",s.HEX="hex",s.LATIN1="latin1",s.UTF8="utf8";const o=i(e.KeyEncodings);var a;(a=e.Strategy||(e.Strategy={})).HOTP="hotp",a.TOTP="totp";const l=i(e.Strategy),c=()=>{throw new Error("Please provide an options.createDigest implementation.")};function h(t){return/^(\d+)$/.test(t)}function u(t,e,i){return t.length>=e?t:`${Array(e+1).join(i)}${t}`.slice(-1*e)}function d(t){const e=`otpauth://${t.type}/{labelPrefix}:{accountName}?secret={secret}{query}`,i=[];if(l.indexOf(t.type)<0)throw new Error(`Expecting options.type to be one of ${l.join(", ")}. Received ${t.type}.`);if("hotp"===t.type){if(null==t.counter||"number"!=typeof t.counter)throw new Error('Expecting options.counter to be a number when options.type is "hotp".');i.push(`&counter=${t.counter}`)}return"totp"===t.type&&t.step&&i.push(`&period=${t.step}`),t.digits&&i.push(`&digits=${t.digits}`),t.algorithm&&i.push(`&algorithm=${t.algorithm.toUpperCase()}`),t.issuer&&i.push(`&issuer=${encodeURIComponent(t.issuer)}`),e.replace("{labelPrefix}",encodeURIComponent(t.issuer||t.accountName)).replace("{accountName}",encodeURIComponent(t.accountName)).replace("{secret}",t.secret).replace("{query}",i.join(""))}class p{constructor(t={}){this._defaultOptions=Object.freeze({...t}),this._options=Object.freeze({})}create(t={}){return new p(t)}clone(t={}){const e=this.create({...this._defaultOptions,...t});return e.options=this._options,e}get options(){return Object.freeze({...this._defaultOptions,...this._options})}set options(t){this._options=Object.freeze({...this._options,...t})}allOptions(){return this.options}resetOptions(){this._options=Object.freeze({})}}function f(t){if("function"!=typeof t.createDigest)throw new Error("Expecting options.createDigest to be a function.");if("function"!=typeof t.createHmacKey)throw new Error("Expecting options.createHmacKey to be a function.");if("number"!=typeof t.digits)throw new Error("Expecting options.digits to be a number.");if(!t.algorithm||r.indexOf(t.algorithm)<0)throw new Error(`Expecting options.algorithm to be one of ${r.join(", ")}. Received ${t.algorithm}.`);if(!t.encoding||o.indexOf(t.encoding)<0)throw new Error(`Expecting options.encoding to be one of ${o.join(", ")}. Received ${t.encoding}.`)}const m=(t,e,i)=>Buffer.from(e,i).toString("hex");function g(){return{algorithm:e.HashAlgorithms.SHA1,createHmacKey:m,createDigest:c,digits:6,encoding:e.KeyEncodings.ASCII}}function y(t){const e={...g(),...t};return f(e),Object.freeze(e)}function b(t){return u(t.toString(16),16,"0")}function v(t,e){const i=Buffer.from(t,"hex"),n=15&i[i.length-1],r=((127&i[n])<<24|(255&i[n+1])<<16|(255&i[n+2])<<8|255&i[n+3])%Math.pow(10,e);return u(String(r),e,"0")}function _(t,e,i){return v(i.digest||function(t,e,i){const n=b(e),r=i.createHmacKey(i.algorithm,t,i.encoding);return i.createDigest(i.algorithm,r,n)}(t,e,i),i.digits)}function w(t,e,i,n){return!!h(t)&&t===_(e,i,n)}function x(t,i,n,r,s){return d({algorithm:s.algorithm,digits:s.digits,type:e.Strategy.HOTP,accountName:t,counter:r,issuer:i,secret:n})}class C extends p{create(t={}){return new C(t)}allOptions(){return y(this.options)}generate(t,e){return _(t,e,this.allOptions())}check(t,e,i){return w(t,e,i,this.allOptions())}verify(t){if("object"!=typeof t)throw new Error("Expecting argument 0 of verify to be an object");return this.check(t.token,t.secret,t.counter)}keyuri(t,e,i,n){return x(t,e,i,n,this.allOptions())}}function A(t){if("number"==typeof t)return[Math.abs(t),Math.abs(t)];if(Array.isArray(t)){const[e,i]=t;if("number"==typeof e&&"number"==typeof i)return[Math.abs(e),Math.abs(i)]}throw new Error("Expecting options.window to be an number or [number, number].")}function S(t){if(f(t),A(t.window),"number"!=typeof t.epoch)throw new Error("Expecting options.epoch to be a number.");if("number"!=typeof t.step)throw new Error("Expecting options.step to be a number.")}const E=(t,e,i)=>{const n=t.length,r=Buffer.from(t,e).toString("hex");if(n{switch(t){case e.HashAlgorithms.SHA1:return E(i,n,20);case e.HashAlgorithms.SHA256:return E(i,n,32);case e.HashAlgorithms.SHA512:return E(i,n,64);default:throw new Error(`Expecting algorithm to be one of ${r.join(", ")}. Received ${t}.`)}};function T(){return{algorithm:e.HashAlgorithms.SHA1,createDigest:c,createHmacKey:k,digits:6,encoding:e.KeyEncodings.ASCII,epoch:Date.now(),step:30,window:0}}function M(t){const e={...T(),...t};return S(e),Object.freeze(e)}function L(t,e){return Math.floor(t/e/1e3)}function I(t,e){return _(t,L(e.epoch,e.step),e)}function O(t,e,i,n){const r=[];if(0===n)return r;for(let s=1;s<=n;s++)r.push(t+e*s*i);return r}function D(t,e,i){const n=A(i),r=1e3*e;return{current:t,past:O(t,-1,r,n[0]),future:O(t,1,r,n[1])}}function R(t,e,i){return!!h(t)&&t===I(e,i)}function N(t,e,i,n){let r=null;return t.some((t,s)=>!!R(e,i,{...n,epoch:t})&&(r=s+1,!0)),r}function P(t,e,i){if(R(t,e,i))return 0;const n=D(i.epoch,i.step,i.window),r=N(n.past,t,e,i);return null!==r?-1*r:N(n.future,t,e,i)}function F(t,e){return Math.floor(t/1e3)%e}function Z(t,e){return e-F(t,e)}function B(t,i,n,r){return d({algorithm:r.algorithm,digits:r.digits,step:r.step,type:e.Strategy.TOTP,accountName:t,issuer:i,secret:n})}class U extends C{create(t={}){return new U(t)}allOptions(){return M(this.options)}generate(t){return I(t,this.allOptions())}checkDelta(t,e){return P(t,e,this.allOptions())}check(t,e){return"number"==typeof this.checkDelta(t,e)}verify(t){if("object"!=typeof t)throw new Error("Expecting argument 0 of verify to be an object");return this.check(t.token,t.secret)}timeRemaining(){const t=this.allOptions();return Z(t.epoch,t.step)}timeUsed(){const t=this.allOptions();return F(t.epoch,t.step)}keyuri(t,e,i){return B(t,e,i,this.allOptions())}}function q(t){if(S(t),"function"!=typeof t.keyDecoder)throw new Error("Expecting options.keyDecoder to be a function.");if(t.keyEncoder&&"function"!=typeof t.keyEncoder)throw new Error("Expecting options.keyEncoder to be a function.")}function z(){return{algorithm:e.HashAlgorithms.SHA1,createDigest:c,createHmacKey:k,digits:6,encoding:e.KeyEncodings.HEX,epoch:Date.now(),step:30,window:0}}function H(t){const e={...z(),...t};return q(e),Object.freeze(e)}function Y(t,e){return e.keyEncoder(t,e.encoding)}function G(t,e){return e.keyDecoder(t,e.encoding)}function j(t,e){return Y(e.createRandomBytes(t,e.encoding),e)}function V(t,e){return I(G(t,e),e)}function Q(t,e,i){return P(t,G(e,i),i)}class W extends U{create(t={}){return new W(t)}allOptions(){return H(this.options)}generate(t){return V(t,this.allOptions())}checkDelta(t,e){return Q(t,e,this.allOptions())}encode(t){return Y(t,this.allOptions())}decode(t){return G(t,this.allOptions())}generateSecret(t=10){return j(t,this.allOptions())}}e.Authenticator=W,e.HASH_ALGORITHMS=r,e.HOTP=C,e.KEY_ENCODINGS=o,e.OTP=p,e.STRATEGY=l,e.TOTP=U,e.authenticatorCheckWithWindow=Q,e.authenticatorDecoder=G,e.authenticatorDefaultOptions=z,e.authenticatorEncoder=Y,e.authenticatorGenerateSecret=j,e.authenticatorOptionValidator=q,e.authenticatorOptions=H,e.authenticatorToken=V,e.createDigestPlaceholder=c,e.hotpCheck=w,e.hotpCounter=b,e.hotpCreateHmacKey=m,e.hotpDefaultOptions=g,e.hotpDigestToToken=v,e.hotpKeyuri=x,e.hotpOptions=y,e.hotpOptionsValidator=f,e.hotpToken=_,e.isTokenValid=h,e.keyuri=d,e.objectValues=i,e.padStart=u,e.totpCheck=R,e.totpCheckByEpoch=N,e.totpCheckWithWindow=P,e.totpCounter=L,e.totpCreateHmacKey=k,e.totpDefaultOptions=T,e.totpEpochAvailable=D,e.totpKeyuri=B,e.totpOptions=M,e.totpOptionsValidator=S,e.totpPadSecret=E,e.totpTimeRemaining=Z,e.totpTimeUsed=F,e.totpToken=I},6801:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,r=(n=i(7508))&&"object"==typeof n&&"default"in n?n.default:n;e.createDigest=(t,e,i)=>r.createHmac(t,Buffer.from(e,"hex")).update(Buffer.from(i,"hex")).digest().toString("hex"),e.createRandomBytes=(t,e)=>r.randomBytes(t).toString(e)},9906:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,r=(n=i(115))&&"object"==typeof n&&"default"in n?n.default:n;e.keyDecoder=(t,e)=>r.decode(t).toString(e),e.keyEncoder=(t,e)=>r.encode(Buffer.from(t,e).toString("ascii")).toString().replace(/=/g,"")},5097:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(6801),r=i(9906),s=i(2281);const o=new s.HOTP({createDigest:n.createDigest}),a=new s.TOTP({createDigest:n.createDigest}),l=new s.Authenticator({createDigest:n.createDigest,createRandomBytes:n.createRandomBytes,keyDecoder:r.keyDecoder,keyEncoder:r.keyEncoder});e.authenticator=l,e.hotp=o,e.totp=a},1905:(t,e,i)=>{"use strict";i.d(e,{H5:()=>va,K$:()=>ba,a4:()=>Oa});var n=i(1572),r=i(1511),s=i(709),o=i(6899),a=i(5960),l=i(5057);function c(){}function h(t){return null==t?c:function(){return this.querySelector(t)}}function u(){return[]}function d(t){return null==t?u:function(){return this.querySelectorAll(t)}}function p(t){return function(){return this.matches(t)}}function f(t){return new Array(t.length)}function m(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function g(t,e,i,n,r,s){for(var o,a=0,l=e.length,c=s.length;ae?1:t>=e?0:NaN}m.prototype={constructor:m,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var v="http://www.w3.org/1999/xhtml";const _={svg:"http://www.w3.org/2000/svg",xhtml:v,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function w(t){var e=t+="",i=e.indexOf(":");return i>=0&&"xmlns"!==(e=t.slice(0,i))&&(t=t.slice(i+1)),_.hasOwnProperty(e)?{space:_[e],local:t}:t}function x(t){return function(){this.removeAttribute(t)}}function C(t){return function(){this.removeAttributeNS(t.space,t.local)}}function A(t,e){return function(){this.setAttribute(t,e)}}function S(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function E(t,e){return function(){var i=e.apply(this,arguments);null==i?this.removeAttribute(t):this.setAttribute(t,i)}}function k(t,e){return function(){var i=e.apply(this,arguments);null==i?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,i)}}function T(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function M(t){return function(){this.style.removeProperty(t)}}function L(t,e,i){return function(){this.style.setProperty(t,e,i)}}function I(t,e,i){return function(){var n=e.apply(this,arguments);null==n?this.style.removeProperty(t):this.style.setProperty(t,n,i)}}function O(t,e){return t.style.getPropertyValue(e)||T(t).getComputedStyle(t,null).getPropertyValue(e)}function D(t){return function(){delete this[t]}}function R(t,e){return function(){this[t]=e}}function N(t,e){return function(){var i=e.apply(this,arguments);null==i?delete this[t]:this[t]=i}}function P(t){return t.trim().split(/^|\s+/)}function F(t){return t.classList||new Z(t)}function Z(t){this._node=t,this._names=P(t.getAttribute("class")||"")}function B(t,e){for(var i=F(t),n=-1,r=e.length;++n=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var st={},ot=null;function at(t,e,i){return t=lt(t,e,i),function(e){var i=e.relatedTarget;i&&(i===this||8&i.compareDocumentPosition(this))||t.call(this,e)}}function lt(t,e,i){return function(n){var r=ot;ot=n;try{t.call(this,this.__data__,e,i)}finally{ot=r}}}function ct(t){return t.trim().split(/^|\s+/).map(function(t){var e="",i=t.indexOf(".");return i>=0&&(e=t.slice(i+1),t=t.slice(0,i)),{type:t,name:e}})}function ht(t){return function(){var e=this.__on;if(e){for(var i,n=0,r=-1,s=e.length;n=C&&(C=x+1);!(w=v[C])&&++C=0;)(n=r[s])&&(o&&4^n.compareDocumentPosition(o)&&o.parentNode.insertBefore(n,o),o=n);return this},sort:function(t){function e(e,i){return e&&i?t(e.__data__,i.__data__):!e-!i}t||(t=b);for(var i=this._groups,n=i.length,r=new Array(n),s=0;s1?this.each((null==e?M:"function"==typeof e?I:L)(t,e,null==i?"":i)):O(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?D:"function"==typeof e?N:R)(t,e)):this.node()[t]},classed:function(t,e){var i=P(t+"");if(arguments.length<2){for(var n=F(this.node()),r=-1,s=i.length;++r=0&&(i=t.slice(n+1),t=t.slice(0,n)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:i}})}function Ct(t,e){for(var i,n=0,r=t.length;n0)for(var i,n,r=new Array(i),s=0;s>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===i?jt(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===i?jt(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Nt.exec(t))?new Wt(e[1],e[2],e[3],1):(e=Pt.exec(t))?new Wt(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Ft.exec(t))?jt(e[1],e[2],e[3],e[4]):(e=Zt.exec(t))?jt(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Bt.exec(t))?$t(e[1],e[2]/100,e[3]/100,1):(e=Ut.exec(t))?$t(e[1],e[2]/100,e[3]/100,e[4]):qt.hasOwnProperty(t)?Gt(qt[t]):"transparent"===t?new Wt(NaN,NaN,NaN,0):null}function Gt(t){return new Wt(t>>16&255,t>>8&255,255&t,1)}function jt(t,e,i,n){return n<=0&&(t=e=i=NaN),new Wt(t,e,i,n)}function Vt(t){return t instanceof Tt||(t=Yt(t)),t?new Wt((t=t.rgb()).r,t.g,t.b,t.opacity):new Wt}function Qt(t,e,i,n){return 1===arguments.length?Vt(t):new Wt(t,e,i,null==n?1:n)}function Wt(t,e,i,n){this.r=+t,this.g=+e,this.b=+i,this.opacity=+n}function Jt(){return"#"+Kt(this.r)+Kt(this.g)+Kt(this.b)}function Xt(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function Kt(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function $t(t,e,i,n){return n<=0?t=e=i=NaN:i<=0||i>=1?t=e=NaN:e<=0&&(t=NaN),new ee(t,e,i,n)}function te(t){if(t instanceof ee)return new ee(t.h,t.s,t.l,t.opacity);if(t instanceof Tt||(t=Yt(t)),!t)return new ee;if(t instanceof ee)return t;var e=(t=t.rgb()).r/255,i=t.g/255,n=t.b/255,r=Math.min(e,i,n),s=Math.max(e,i,n),o=NaN,a=s-r,l=(s+r)/2;return a?(o=e===s?(i-n)/a+6*(i0&&l<1?0:o,new ee(o,a,l,t.opacity)}function ee(t,e,i,n){this.h=+t,this.s=+e,this.l=+i,this.opacity=+n}function ie(t,e,i){return 255*(t<60?e+(i-e)*t/60:t<180?i:t<240?e+(i-e)*(240-t)/60:e)}function ne(t,e,i,n,r){var s=t*t,o=s*t;return((1-3*t+3*s-o)*e+(4-6*s+3*o)*i+(1+3*t+3*s-3*o)*n+o*r)/6}function re(t){return function(){return t}}function se(t,e){var i=e-t;return i?function(t,e){return function(i){return t+i*e}}(t,i):re(isNaN(t)?e:t)}Et(Tt,Yt,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:zt,formatHex:zt,formatHsl:function(){return te(this).formatHsl()},formatRgb:Ht,toString:Ht}),Et(Wt,Qt,kt(Tt,{brighter:function(t){return t=null==t?Lt:Math.pow(Lt,t),new Wt(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?Mt:Math.pow(Mt,t),new Wt(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Jt,formatHex:Jt,formatRgb:Xt,toString:Xt})),Et(ee,function(t,e,i,n){return 1===arguments.length?te(t):new ee(t,e,i,null==n?1:n)},kt(Tt,{brighter:function(t){return t=null==t?Lt:Math.pow(Lt,t),new ee(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?Mt:Math.pow(Mt,t),new ee(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,i=this.l,n=i+(i<.5?i:1-i)*e,r=2*i-n;return new Wt(ie(t>=240?t-240:t+120,r,n),ie(t,r,n),ie(t<120?t+240:t-120,r,n),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));const oe=function t(e){var i=function(t){return 1==(t=+t)?se:function(e,i){return i-e?function(t,e,i){return t=Math.pow(t,i),e=Math.pow(e,i)-t,i=1/i,function(n){return Math.pow(t+n*e,i)}}(e,i,t):re(isNaN(e)?i:e)}}(e);function n(t,e){var n=i((t=Qt(t)).r,(e=Qt(e)).r),r=i(t.g,e.g),s=i(t.b,e.b),o=se(t.opacity,e.opacity);return function(e){return t.r=n(e),t.g=r(e),t.b=s(e),t.opacity=o(e),t+""}}return n.gamma=t,n}(1);function ae(t){return function(e){var i,n,r=e.length,s=new Array(r),o=new Array(r),a=new Array(r);for(i=0;i=1?(i=1,e-1):Math.floor(i*e),r=t[n],s=t[n+1];return ne((i-n/e)*e,n>0?t[n-1]:2*r-s,r,s,ns&&(r=e.slice(s,r),a[o]?a[o]+=r:a[++o]=r),(i=i[0])===(n=n[0])?a[o]?a[o]+=n:a[++o]=n:(a[++o]=null,l.push({i:o,x:he(i,n)})),s=pe.lastIndex;return s=0&&e._call.call(null,t),e=e._next;--ve}()}finally{ve=0,function(){for(var t,e,i=ye,n=1/0;i;)i._call?(n>i._time&&(n=i._time),t=i,i=i._next):(e=i._next,i._next=null,i=t?t._next=e:ye=e);be=t,De(n)}(),Ce=0}}function Oe(){var t=Se.now(),e=t-xe;e>1e3&&(Ae-=e,xe=t)}function De(t){ve||(_e&&(_e=clearTimeout(_e)),t-Ce>24?(t<1/0&&(_e=setTimeout(Ie,t-Se.now()-Ae)),we&&(we=clearInterval(we))):(we||(xe=Se.now(),we=setInterval(Oe,1e3)),ve=1,Ee(Ie)))}function Re(t,e,i){var n=new Me;return n.restart(function(i){n.stop(),t(i+e)},e=null==e?0:+e,i),n}Me.prototype=Le.prototype={constructor:Me,restart:function(t,e,i){if("function"!=typeof t)throw new TypeError("callback is not a function");i=(null==i?ke():+i)+(null==e?0:+e),this._next||be===this||(be?be._next=this:ye=this,be=this),this._call=t,this._time=i,De()},stop:function(){this._call&&(this._call=null,this._time=1/0,De())}};var Ne=St("start","end","cancel","interrupt"),Pe=[];function Fe(t,e,i,n,r,s){var o=t.__transition;if(o){if(i in o)return}else t.__transition={};!function(t,e,i){var n,r=t.__transition;function s(l){var c,h,u,d;if(1!==i.state)return a();for(c in r)if((d=r[c]).name===i.name){if(3===d.state)return Re(s);4===d.state?(d.state=6,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete r[c]):+c0)throw new Error("too late; already scheduled");return i}function Be(t,e){var i=Ue(t,e);if(i.state>3)throw new Error("too late; already running");return i}function Ue(t,e){var i=t.__transition;if(!i||!(i=i[e]))throw new Error("transition not found");return i}var qe,ze,He,Ye,Ge=180/Math.PI,je={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Ve(t,e,i,n,r,s){var o,a,l;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(l=t*i+e*n)&&(i-=t*l,n-=e*l),(a=Math.sqrt(i*i+n*n))&&(i/=a,n/=a,l/=a),t*n180?e+=360:e-t>180&&(t+=360),s.push({i:i.push(r(i)+"rotate(",null,n)-2,x:he(t,e)})):e&&i.push(r(i)+"rotate("+e+n)}(s.rotate,o.rotate,a,l),function(t,e,i,s){t!==e?s.push({i:i.push(r(i)+"skewX(",null,n)-2,x:he(t,e)}):e&&i.push(r(i)+"skewX("+e+n)}(s.skewX,o.skewX,a,l),function(t,e,i,n,s,o){if(t!==i||e!==n){var a=s.push(r(s)+"scale(",null,",",null,")");o.push({i:a-4,x:he(t,i)},{i:a-2,x:he(e,n)})}else 1===i&&1===n||s.push(r(s)+"scale("+i+","+n+")")}(s.scaleX,s.scaleY,o.scaleX,o.scaleY,a,l),s=o=null,function(t){for(var e,i=-1,n=l.length;++i=0&&(t=t.slice(0,e)),!t||"start"===t})}(e)?Ze:Be;return function(){var o=s(this,t),a=o.on;a!==n&&(r=(n=a).copy()).on(e,i),o.on=r}}var yi=bt.prototype.constructor;function bi(t){return function(){this.style.removeProperty(t)}}function vi(t,e,i){return function(n){this.style.setProperty(t,e.call(this,n),i)}}function _i(t,e,i){var n,r;function s(){var s=e.apply(this,arguments);return s!==r&&(n=(r=s)&&vi(t,s,i)),n}return s._value=e,s}function wi(t){return function(e){this.textContent=t.call(this,e)}}function xi(t){var e,i;function n(){var n=t.apply(this,arguments);return n!==i&&(e=(i=n)&&wi(n)),e}return n._value=t,n}var Ci=0;function Ai(t,e,i,n){this._groups=t,this._parents=e,this._name=i,this._id=n}function Si(){return++Ci}var Ei=bt.prototype;Ai.prototype=(function(t){return bt().transition(t)}).prototype={constructor:Ai,select:function(t){var e=this._name,i=this._id;"function"!=typeof t&&(t=h(t));for(var n=this._groups,r=n.length,s=new Array(r),o=0;oe?1:t>=e?0:NaN}function Ii(t){let e=t,i=t;function n(t,e,n,r){for(null==n&&(n=0),null==r&&(r=t.length);n>>1;i(t[s],e)<0?n=s+1:r=s}return n}return 1===t.length&&(e=(e,i)=>t(e)-i,i=function(t){return(e,i)=>Li(t(e),i)}(t)),{left:n,center:function(t,i,r,s){null==r&&(r=0),null==s&&(s=t.length);const o=n(t,i,r,s-1);return o>r&&e(t[o-1],i)>-e(t[o],i)?o-1:o},right:function(t,e,n,r){for(null==n&&(n=0),null==r&&(r=t.length);n>>1;i(t[s],e)>0?r=s:n=s+1}return n}}}bt.prototype.interrupt=function(t){return this.each(function(){!function(t,e){var i,n,r,s=t.__transition,o=!0;if(s){for(r in e=null==e?null:e+"",s)(i=s[r]).name===e?(n=i.state>2&&i.state<5,i.state=6,i.timer.stop(),i.on.call(n?"interrupt":"cancel",t,t.__data__,i.index,i.group),delete s[r]):o=!1;o&&delete t.__transition}}(this,t)})},bt.prototype.transition=function(t){var e,i;t instanceof Ai?(e=t._id,t=t._name):(e=Si(),(i=ki).time=ke(),t=null==t?null:t+"");for(var n=this._groups,r=n.length,s=0;s=0?(s>=Oi?10:s>=Di?5:s>=Ri?2:1)*Math.pow(10,r):-Math.pow(10,-r)/(s>=Oi?10:s>=Di?5:s>=Ri?2:1)}function Pi(t,e,i){var n=Math.abs(e-t)/Math.max(0,i),r=Math.pow(10,Math.floor(Math.log(n)/Math.LN10)),s=n/r;return s>=Oi?r*=10:s>=Di?r*=5:s>=Ri&&(r*=2),e0))return a;do{a.push(o=new Date(+i)),e(i,s),t(i)}while(o=e)for(;t(e),!i(e);)e.setTime(e-1)},function(t,n){if(t>=t)if(n<0)for(;++n<=0;)for(;e(t,-1),!i(t););else for(;--n>=0;)for(;e(t,1),!i(t););})},i&&(r.count=function(e,n){return Hi.setTime(+e),Yi.setTime(+n),t(Hi),t(Yi),Math.floor(i(Hi,Yi))},r.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?r.filter(n?function(e){return n(e)%t==0}:function(e){return r.count(0,e)%t==0}):r:null}),r}var ji=Gi(function(){},function(t,e){t.setTime(+t+e)},function(t,e){return e-t});ji.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Gi(function(e){e.setTime(Math.floor(e/t)*t)},function(e,i){e.setTime(+e+i*t)},function(e,i){return(i-e)/t}):ji:null};const Vi=ji,Qi=Gi(function(t){t.setTime(t-t.getMilliseconds())},function(t,e){t.setTime(+t+e*Fi)},function(t,e){return(e-t)/Fi},function(t){return t.getUTCSeconds()}),Wi=Gi(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Fi)},function(t,e){t.setTime(+t+e*Zi)},function(t,e){return(e-t)/Zi},function(t){return t.getMinutes()}),Ji=Gi(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Fi-t.getMinutes()*Zi)},function(t,e){t.setTime(+t+e*Bi)},function(t,e){return(e-t)/Bi},function(t){return t.getHours()}),Xi=Gi(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Zi)/Ui,t=>t.getDate()-1);function Ki(t){return Gi(function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+7*e)},function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Zi)/qi})}var $i=Ki(0);const tn=(Ki(1),Ki(2),Ki(3),Ki(4),Ki(5),Ki(6),Gi(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,e){t.setMonth(t.getMonth()+e)},function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())},function(t){return t.getMonth()}));var en=Gi(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t,e){return e.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});en.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Gi(function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,i){e.setFullYear(e.getFullYear()+i*t)}):null};const nn=en,rn=Gi(function(t){t.setUTCSeconds(0,0)},function(t,e){t.setTime(+t+e*Zi)},function(t,e){return(e-t)/Zi},function(t){return t.getUTCMinutes()}),sn=Gi(function(t){t.setUTCMinutes(0,0,0)},function(t,e){t.setTime(+t+e*Bi)},function(t,e){return(e-t)/Bi},function(t){return t.getUTCHours()}),on=Gi(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/Ui},function(t){return t.getUTCDate()-1});function an(t){return Gi(function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+7*e)},function(t,e){return(e-t)/qi})}var ln=an(0);const cn=(an(1),an(2),an(3),an(4),an(5),an(6),Gi(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCMonth(t.getUTCMonth()+e)},function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())},function(t){return t.getUTCMonth()}));var hn=Gi(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)},function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});hn.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Gi(function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,i){e.setUTCFullYear(e.getUTCFullYear()+i*t)}):null};const un=hn;function dn(t,e,i,n,r,s){const o=[[Qi,1,Fi],[Qi,5,5e3],[Qi,15,15e3],[Qi,30,3e4],[s,1,Zi],[s,5,3e5],[s,15,9e5],[s,30,18e5],[r,1,Bi],[r,3,108e5],[r,6,216e5],[r,12,432e5],[n,1,Ui],[n,2,1728e5],[i,1,qi],[e,1,2592e6],[e,3,7776e6],[t,1,zi]];function a(e,i,n){const r=Math.abs(i-e)/n,s=Ii(([,,t])=>t).right(o,r);if(s===o.length)return t.every(Pi(e/zi,i/zi,n));if(0===s)return Vi.every(Math.max(Pi(e,i,n),1));const[a,l]=o[r/o[s-1][2]0))return a;do{a.push(o=new Date(+i)),e(i,s),t(i)}while(o=e)for(;t(e),!i(e);)e.setTime(e-1)},function(t,n){if(t>=t)if(n<0)for(;++n<=0;)for(;e(t,-1),!i(t););else for(;--n>=0;)for(;e(t,1),!i(t););})},i&&(r.count=function(e,n){return yn.setTime(+e),bn.setTime(+n),t(yn),t(bn),Math.floor(i(yn,bn))},r.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?r.filter(n?function(e){return n(e)%t==0}:function(e){return r.count(0,e)%t==0}):r:null}),r}var _n=864e5,wn=6048e5;function xn(t){return vn(function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+7*e)},function(t,e){return(e-t)/wn})}var Cn=xn(0),An=xn(1),Sn=(xn(2),xn(3),xn(4));const En=(xn(5),xn(6),vn(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/_n},function(t){return t.getUTCDate()-1}));function kn(t){return vn(function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+7*e)},function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/wn})}var Tn=kn(0),Mn=kn(1),Ln=(kn(2),kn(3),kn(4));const In=(kn(5),kn(6),vn(function(t){t.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+e)},function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/_n},function(t){return t.getDate()-1}));var On=vn(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t,e){return e.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});On.every=function(t){return isFinite(t=Math.floor(t))&&t>0?vn(function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,i){e.setFullYear(e.getFullYear()+i*t)}):null};const Dn=On;var Rn=vn(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)},function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});Rn.every=function(t){return isFinite(t=Math.floor(t))&&t>0?vn(function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,i){e.setUTCFullYear(e.getUTCFullYear()+i*t)}):null};const Nn=Rn;var Pn={"-":"",_:" ",0:"0"},Fn=/[\\^$*+?|[\]().{}]/g;function Zn(t,e,i){var n=t<0?"-":"",r=(n?-t:t)+"",s=r.length;return n+(s=4||0===e?Ln(t):Ln.ceil(t)}function tr(t,e){return t=$n(t),Zn(Ln.count(Dn(t),t)+(4===Dn(t).getDay()),e,2)}function er(t){return t.getDay()}function ir(t,e){return Zn(Mn.count(Dn(t)-1,t),e,2)}function nr(t,e){return Zn(t.getFullYear()%100,e,2)}function rr(t,e){return Zn((t=$n(t)).getFullYear()%100,e,2)}function sr(t,e){return Zn(t.getFullYear()%1e4,e,4)}function or(t,e){var i=t.getDay();return Zn((t=i>=4||0===i?Ln(t):Ln.ceil(t)).getFullYear()%1e4,e,4)}function ar(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Zn(e/60|0,"0",2)+Zn(e%60,"0",2)}function lr(t,e){return Zn(t.getUTCDate(),e,2)}function cr(t,e){return Zn(t.getUTCHours(),e,2)}function hr(t,e){return Zn(t.getUTCHours()%12||12,e,2)}function ur(t,e){return Zn(1+En.count(Nn(t),t),e,3)}function dr(t,e){return Zn(t.getUTCMilliseconds(),e,3)}function pr(t,e){return dr(t,e)+"000"}function fr(t,e){return Zn(t.getUTCMonth()+1,e,2)}function mr(t,e){return Zn(t.getUTCMinutes(),e,2)}function gr(t,e){return Zn(t.getUTCSeconds(),e,2)}function yr(t){var e=t.getUTCDay();return 0===e?7:e}function br(t,e){return Zn(Cn.count(Nn(t)-1,t),e,2)}function vr(t){var e=t.getUTCDay();return e>=4||0===e?Sn(t):Sn.ceil(t)}function _r(t,e){return t=vr(t),Zn(Sn.count(Nn(t),t)+(4===Nn(t).getUTCDay()),e,2)}function wr(t){return t.getUTCDay()}function xr(t,e){return Zn(An.count(Nn(t)-1,t),e,2)}function Cr(t,e){return Zn(t.getUTCFullYear()%100,e,2)}function Ar(t,e){return Zn((t=vr(t)).getUTCFullYear()%100,e,2)}function Sr(t,e){return Zn(t.getUTCFullYear()%1e4,e,4)}function Er(t,e){var i=t.getUTCDay();return Zn((t=i>=4||0===i?Sn(t):Sn.ceil(t)).getUTCFullYear()%1e4,e,4)}function kr(){return"+0000"}function Tr(){return"%"}function Mr(t){return+t}function Lr(t){return Math.floor(+t/1e3)}function Ir(t){return null===t?NaN:+t}!function(t){var e=t.dateTime,i=t.date,n=t.time,r=t.periods,s=t.days,o=t.shortDays,a=t.months,l=t.shortMonths,c=(Un(r),qn(r),Un(s),qn(s),Un(o),qn(o),Un(a),qn(a),Un(l),qn(l),{a:function(t){return o[t.getDay()]},A:function(t){return s[t.getDay()]},b:function(t){return l[t.getMonth()]},B:function(t){return a[t.getMonth()]},c:null,d:zn,e:zn,f:Vn,g:rr,G:or,H:Hn,I:Yn,j:Gn,L:jn,m:Qn,M:Wn,p:function(t){return r[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Mr,s:Lr,S:Jn,u:Xn,U:Kn,V:tr,w:er,W:ir,x:null,X:null,y:nr,Y:sr,Z:ar,"%":Tr}),h={a:function(t){return o[t.getUTCDay()]},A:function(t){return s[t.getUTCDay()]},b:function(t){return l[t.getUTCMonth()]},B:function(t){return a[t.getUTCMonth()]},c:null,d:lr,e:lr,f:pr,g:Ar,G:Er,H:cr,I:hr,j:ur,L:dr,m:fr,M:mr,p:function(t){return r[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Mr,s:Lr,S:gr,u:yr,U:br,V:_r,w:wr,W:xr,x:null,X:null,y:Cr,Y:Sr,Z:kr,"%":Tr};function u(t,e){return function(i){var n,r,s,o=[],a=-1,l=0,c=t.length;for(i instanceof Date||(i=new Date(+i));++a(e=o[l-1])&&(i=t,t=e,e=i),c=function(i){return Math.max(t,Math.min(e,i))}),n=l>2?Ur:Br,r=s=null,u}function u(e){return null==e||isNaN(e=+e)?i:(r||(r=n(o.map(t),a,l)))(t(c(e)))}return u.invert=function(i){return c(e((s||(s=n(a,o.map(t),he)))(i)))},u.domain=function(t){return arguments.length?(o=Array.from(t,Nr),h()):o.slice()},u.range=function(t){return arguments.length?(a=Array.from(t),h()):a.slice()},u.rangeRound=function(t){return a=Array.from(t),l=Rr,h()},u.clamp=function(t){return arguments.length?(c=!!t||Fr,h()):c!==Fr},u.interpolate=function(t){return arguments.length?(l=t,h()):l},u.unknown=function(t){return arguments.length?(i=t,u):i},function(i,n){return t=i,e=n,h()}}()(Fr,Fr)}function Hr(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}var Yr,Gr=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function jr(t){if(!(e=Gr.exec(t)))throw new Error("invalid format: "+t);var e;return new Vr({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function Vr(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function Qr(t,e){if((i=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var i,n=t.slice(0,i);return[n.length>1?n[0]+n.slice(2):n,+t.slice(i+1)]}function Wr(t){return(t=Qr(Math.abs(t)))?t[1]:NaN}function Jr(t,e){var i=Qr(t,e);if(!i)return t+"";var n=i[0],r=i[1];return r<0?"0."+new Array(-r).join("0")+n:n.length>r+1?n.slice(0,r+1)+"."+n.slice(r+1):n+new Array(r-n.length+2).join("0")}jr.prototype=Vr.prototype,Vr.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const Xr={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return Jr(100*t,e)},r:Jr,s:function(t,e){var i=Qr(t,e);if(!i)return t+"";var n=i[0],r=i[1],s=r-(Yr=3*Math.max(-8,Math.min(8,Math.floor(r/3))))+1,o=n.length;return s===o?n:s>o?n+new Array(s-o+1).join("0"):s>0?n.slice(0,s)+"."+n.slice(s):"0."+new Array(1-s).join("0")+Qr(t,Math.max(0,e+s-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function Kr(t){return t}var $r,ts,es,is=Array.prototype.map,ns=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function rs(t){var e=t.domain;return t.ticks=function(t){var i=e();return function(t,e,i){var n,r,s,o,a=-1;if(i=+i,(t=+t)==(e=+e)&&i>0)return[t];if((n=e0){let i=Math.round(t/o),n=Math.round(e/o);for(i*oe&&--n,s=new Array(r=n-i+1);++ae&&--n,s=new Array(r=n-i+1);++a0;){if((r=Ni(l,c,i))===n)return s[o]=l,s[a]=c,e(s);if(r>0)l=Math.floor(l/r)*r,c=Math.ceil(c/r)*r;else{if(!(r<0))break;l=Math.ceil(l*r)/r,c=Math.floor(c*r)/r}n=r}return t},t}function ss(){var t=zr();return t.copy=function(){return qr(t,ss())},Hr.apply(t,arguments),rs(t)}function os(t,e,i){t=+t,e=+e,i=(r=arguments.length)<2?(e=t,t=0,1):r<3?1:+i;for(var n=-1,r=0|Math.max(0,Math.ceil((e-t)/i)),s=new Array(r);++n0&&a>0&&(l+a+1>n&&(a=Math.max(1,n-l)),s.push(t.substring(r-=a,r+a)),!((l+=a+1)>n));)a=e[o=(o+1)%e.length];return s.reverse().join(i)}),r=void 0===t.currency?"":t.currency[0]+"",s=void 0===t.currency?"":t.currency[1]+"",o=void 0===t.decimal?".":t.decimal+"",a=void 0===t.numerals?Kr:function(t){return function(e){return e.replace(/[0-9]/g,function(e){return t[+e]})}}(is.call(t.numerals,String)),l=void 0===t.percent?"%":t.percent+"",c=void 0===t.minus?"-":t.minus+"",h=void 0===t.nan?"NaN":t.nan+"";function u(t){var e=(t=jr(t)).fill,i=t.align,u=t.sign,d=t.symbol,p=t.zero,f=t.width,m=t.comma,g=t.precision,y=t.trim,b=t.type;"n"===b?(m=!0,b="g"):Xr[b]||(void 0===g&&(g=12),y=!0,b="g"),(p||"0"===e&&"="===i)&&(p=!0,e="0",i="=");var v="$"===d?r:"#"===d&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",_="$"===d?s:/[%p]/.test(b)?l:"",w=Xr[b],x=/[defgprs%]/.test(b);function C(t){var r,s,l,d=v,C=_;if("c"===b)C=w(t)+C,t="";else{var A=(t=+t)<0||1/t<0;if(t=isNaN(t)?h:w(Math.abs(t),g),y&&(t=function(t){t:for(var e,i=t.length,n=1,r=-1;n0&&(r=0)}return r>0?t.slice(0,r)+t.slice(e+1):t}(t)),A&&0==+t&&"+"!==u&&(A=!1),d=(A?"("===u?u:c:"-"===u||"("===u?"":u)+d,C=("s"===b?ns[8+Yr/3]:"")+C+(A&&"("===u?")":""),x)for(r=-1,s=t.length;++r(l=t.charCodeAt(r))||l>57){C=(46===l?o+t.slice(r+1):t.slice(r))+C,t=t.slice(0,r);break}}m&&!p&&(t=n(t,1/0));var S=d.length+t.length+C.length,E=S>1)+d+t+C+E.slice(S);break;default:t=E+d+t+C}return a(t)}return g=void 0===g?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),C.toString=function(){return t+""},C}return{format:u,formatPrefix:function(t,e){var i=u(((t=jr(t)).type="f",t)),n=3*Math.max(-8,Math.min(8,Math.floor(Wr(e)/3))),r=Math.pow(10,-n),s=ns[8+n/3];return function(t){return i(r*t)+s}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),ts=$r.format,es=$r.formatPrefix;const as=Symbol("implicit");function ls(){var t=new Map,e=[],i=[],n=as;function r(r){var s=r+"",o=t.get(s);if(!o){if(n!==as)return n;t.set(s,o=e.push(r))}return i[(o-1)%i.length]}return r.domain=function(i){if(!arguments.length)return e.slice();e=[],t=new Map;for(const n of i){const i=n+"";t.has(i)||t.set(i,e.push(n))}return r},r.range=function(t){return arguments.length?(i=Array.from(t),r):i.slice()},r.unknown=function(t){return arguments.length?(n=t,r):n},r.copy=function(){return ls(e,i).unknown(n)},Hr.apply(r,arguments),r}function cs(){var t,e,i=ls().unknown(void 0),n=i.domain,r=i.range,s=0,o=1,a=!1,l=0,c=0,h=.5;function u(){var i=n().length,u=o=1)return+i(t[n-1],n-1,t);var n,r=(n-1)*e,s=Math.floor(r),o=+i(t[s],s,t);return o+(+i(t[s+1],s+1,t)-o)*(r-s)}}function us(){var t,e=[],i=[],n=[];function r(){var t=0,r=Math.max(1,i.length);for(n=new Array(r-1);++t0?n[r-1]:e[0],r=0;)e+=i[n].value;else e=1;t.value=e}function Es(t,e){var i,n,r,s,o,a=new Ls(t),l=+t.value&&(a.value=t.value),c=[a];for(null==e&&(e=ks);i=c.pop();)if(l&&(i.value=+i.data.value),(r=e(i.data))&&(o=r.length))for(i.children=new Array(o),s=o-1;s>=0;--s)c.push(n=i.children[s]=new Ls(r[s])),n.parent=i,n.depth=i.depth+1;return a.eachBefore(Ms)}function ks(t){return t.children}function Ts(t){t.data=t.data.data}function Ms(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function Ls(t){this.data=t,this.depth=this.height=0,this.parent=null}ys.prototype=(function(){return new ys}).prototype={constructor:ys,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,i,n){this._+="Q"+ +t+","+ +e+","+(this._x1=+i)+","+(this._y1=+n)},bezierCurveTo:function(t,e,i,n,r,s){this._+="C"+ +t+","+ +e+","+ +i+","+ +n+","+(this._x1=+r)+","+(this._y1=+s)},arcTo:function(t,e,i,n,r){var s=this._x1,o=this._y1,a=(i=+i)-(t=+t),l=(n=+n)-(e=+e),c=s-t,h=o-e,u=c*c+h*h;if((r=+r)<0)throw new Error("negative radius: "+r);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(u>ms)if(Math.abs(h*a-l*c)>ms&&r){var d=i-s,p=n-o,f=a*a+l*l,m=d*d+p*p,g=Math.sqrt(f),y=Math.sqrt(u),b=r*Math.tan((ps-Math.acos((f+u-m)/(2*g*y)))/2),v=b/y,_=b/g;Math.abs(v-1)>ms&&(this._+="L"+(t+v*c)+","+(e+v*h)),this._+="A"+r+","+r+",0,0,"+ +(h*d>c*p)+","+(this._x1=t+_*a)+","+(this._y1=e+_*l)}else this._+="L"+(this._x1=t)+","+(this._y1=e)},arc:function(t,e,i,n,r,s){t=+t,e=+e,s=!!s;var o=(i=+i)*Math.cos(n),a=i*Math.sin(n),l=t+o,c=e+a,h=1^s,u=s?n-r:r-n;if(i<0)throw new Error("negative radius: "+i);null===this._x1?this._+="M"+l+","+c:(Math.abs(this._x1-l)>ms||Math.abs(this._y1-c)>ms)&&(this._+="L"+l+","+c),i&&(u<0&&(u=u%fs+fs),u>gs?this._+="A"+i+","+i+",0,1,"+h+","+(t-o)+","+(e-a)+"A"+i+","+i+",0,1,"+h+","+(this._x1=l)+","+(this._y1=c):u>ms&&(this._+="A"+i+","+i+",0,"+ +(u>=ps)+","+h+","+(this._x1=t+i*Math.cos(r))+","+(this._y1=e+i*Math.sin(r))))},rect:function(t,e,i,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +i+"v"+ +n+"h"+-i+"Z"},toString:function(){return this._}},_s.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:vs(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:vs(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},function t(e){function i(t){return new _s(t,e)}return i.tension=function(e){return t(+e)},i}(0),ws.prototype={areaStart:bs,areaEnd:bs,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:vs(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},function t(e){function i(t){return new ws(t,e)}return i.tension=function(e){return t(+e)},i}(0),xs.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}},Math,Math,Math,Math,Math,Math,Math,Math,function t(e){function i(t,i,n,r,s){!function(t,e,i,n,r,s){for(var o,a,l,c,h,u,d,p,f,m,g,y=[],b=e.children,v=0,_=0,w=b.length,x=e.value;vd&&(d=a),g=h*h*m,(p=Math.max(d/g,g/u))>f){h-=a;break}f=p}y.push(o={value:h,dice:l1?e:1)},i}((1+Math.sqrt(5))/2),Ls.prototype=Es.prototype={constructor:Ls,count:function(){return this.eachAfter(Ss)},each:function(t){var e,i,n,r,s=this,o=[s];do{for(e=o.reverse(),o=[];s=e.pop();)if(t(s),i=s.children)for(n=0,r=i.length;n=0;--i)r.push(e[i]);return this},sum:function(t){return this.eachAfter(function(e){for(var i=+t(e.data)||0,n=e.children,r=n&&n.length;--r>=0;)i+=n[r].value;e.value=i})},sort:function(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})},path:function(t){for(var e=this,i=function(t,e){if(t===e)return t;var i=t.ancestors(),n=e.ancestors(),r=null;for(t=i.pop(),e=n.pop();t===e;)r=t,t=i.pop(),e=n.pop();return r}(e,t),n=[e];e!==i;)n.push(e=e.parent);for(var r=n.length;t!==i;)n.splice(r,0,t),t=t.parent;return n},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){var t=[];return this.each(function(e){t.push(e)}),t},leaves:function(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t},links:function(){var t=this,e=[];return t.each(function(i){i!==t&&e.push({source:i.parent,target:i})}),e},copy:function(){return Es(this).eachBefore(Ts)}};var Is=i(269);const Os=["caretElm"];function Ds(t,e){}const Rs=function(t){return{model:t}};function Ns(t,e){if(1&t&&(n.TgZ(0,"span"),n.YNc(1,Ds,0,0,"ng-template",5),n.qZA()),2&t){const t=n.oxw();n.xp6(1),n.Q6J("ngTemplateOutlet",t.template)("ngTemplateOutletContext",n.VKq(2,Rs,t.context))}}function Ps(t,e){if(1&t&&n._UZ(0,"span",6),2&t){const t=n.oxw();n.Q6J("innerHTML",t.title,n.oJD)}}function Fs(t,e){if(1&t&&(n.O4$(),n.kcU(),n._UZ(0,"ngx-charts-scale-legend",4)),2&t){const t=n.oxw();n.Q6J("horizontal",t.legendOptions&&"below"===t.legendOptions.position)("valueRange",t.legendOptions.domain)("colors",t.legendOptions.colors)("height",t.view[1])("width",t.legendWidth)}}function Zs(t,e){if(1&t){const t=n.EpF();n.O4$(),n.kcU(),n.TgZ(0,"ngx-charts-legend",5),n.NdJ("labelClick",function(e){return n.CHM(t),n.oxw().legendLabelClick.emit(e)})("labelActivate",function(e){return n.CHM(t),n.oxw().legendLabelActivate.emit(e)})("labelDeactivate",function(e){return n.CHM(t),n.oxw().legendLabelDeactivate.emit(e)}),n.qZA()}if(2&t){const t=n.oxw();n.Q6J("horizontal",t.legendOptions&&"below"===t.legendOptions.position)("data",t.legendOptions.domain)("title",t.legendOptions.title)("colors",t.legendOptions.colors)("height",t.view[1])("width",t.legendWidth)("activeEntries",t.activeEntries)}}const Bs=["*"],Us=["ngx-charts-axis-label",""],qs=["ticksel"],zs=["ngx-charts-x-axis-ticks",""];function Hs(t,e){if(1&t&&(n.O4$(),n.TgZ(0,"g",3),n.TgZ(1,"title"),n._uU(2),n.qZA(),n.TgZ(3,"text",4),n._uU(4),n.qZA(),n.qZA()),2&t){const t=e.$implicit,i=n.oxw();n.uIk("transform",i.tickTransform(t)),n.xp6(2),n.Oqu(i.tickFormat(t)),n.xp6(1),n.Udp("font-size","12px"),n.uIk("text-anchor",i.textAnchor)("transform",i.textTransform),n.xp6(1),n.hij(" ",i.tickTrim(i.tickFormat(t))," ")}}function Ys(t,e){if(1&t&&(n.O4$(),n.TgZ(0,"g"),n._UZ(1,"line",6),n.qZA()),2&t){const t=n.oxw(2);n.uIk("transform",t.gridLineTransform()),n.xp6(1),n.uIk("y1",-t.gridLineHeight)}}function Gs(t,e){if(1&t&&(n.O4$(),n.TgZ(0,"g"),n.YNc(1,Ys,2,2,"g",5),n.qZA()),2&t){const t=e.$implicit,i=n.oxw();n.uIk("transform",i.tickTransform(t)),n.xp6(1),n.Q6J("ngIf",i.showGridLines)}}const js=["ngx-charts-x-axis",""];function Vs(t,e){if(1&t){const t=n.EpF();n.O4$(),n.TgZ(0,"g",2),n.NdJ("dimensionsChanged",function(e){return n.CHM(t),n.oxw().emitTicksHeight(e)}),n.qZA()}if(2&t){const t=n.oxw();n.Q6J("trimTicks",t.trimTicks)("rotateTicks",t.rotateTicks)("maxTickLength",t.maxTickLength)("tickFormatting",t.tickFormatting)("tickArguments",t.tickArguments)("tickStroke",t.tickStroke)("scale",t.xScale)("orient",t.xOrient)("showGridLines",t.showGridLines)("gridLineHeight",t.dims.height)("width",t.dims.width)("tickValues",t.ticks)}}function Qs(t,e){if(1&t&&(n.O4$(),n._UZ(0,"g",3)),2&t){const t=n.oxw();n.Q6J("label",t.labelText)("offset",t.labelOffset)("orient","bottom")("height",t.dims.height)("width",t.dims.width)}}const Ws=["ngx-charts-y-axis-ticks",""];function Js(t,e){if(1&t&&(n.O4$(),n.TgZ(0,"g",4),n.TgZ(1,"title"),n._uU(2),n.qZA(),n.TgZ(3,"text",5),n._uU(4),n.qZA(),n.qZA()),2&t){const t=e.$implicit,i=n.oxw();n.uIk("transform",i.transform(t)),n.xp6(2),n.Oqu(i.tickFormat(t)),n.xp6(1),n.Udp("font-size","12px"),n.uIk("dy",i.dy)("x",i.x1)("y",i.y1)("text-anchor",i.textAnchor),n.xp6(1),n.hij(" ",i.tickTrim(i.tickFormat(t))," ")}}function Xs(t,e){if(1&t&&(n.O4$(),n._UZ(0,"path",6)),2&t){const t=n.oxw();n.uIk("d",t.referenceAreaPath)("transform",t.gridLineTransform())}}function Ks(t,e){if(1&t&&(n.O4$(),n._UZ(0,"line",9)),2&t){const t=n.oxw(3);n.uIk("x2",t.gridLineWidth)}}function $s(t,e){if(1&t&&(n.O4$(),n._UZ(0,"line",9)),2&t){const t=n.oxw(3);n.uIk("x2",-t.gridLineWidth)}}function to(t,e){if(1&t&&(n.O4$(),n.TgZ(0,"g"),n.YNc(1,Ks,1,1,"line",8),n.YNc(2,$s,1,1,"line",8),n.qZA()),2&t){const t=n.oxw(2);n.uIk("transform",t.gridLineTransform()),n.xp6(1),n.Q6J("ngIf","left"===t.orient),n.xp6(1),n.Q6J("ngIf","right"===t.orient)}}function eo(t,e){if(1&t&&(n.O4$(),n.TgZ(0,"g"),n.YNc(1,to,3,3,"g",7),n.qZA()),2&t){const t=e.$implicit,i=n.oxw();n.uIk("transform",i.transform(t)),n.xp6(1),n.Q6J("ngIf",i.showGridLines)}}function io(t,e){if(1&t&&(n.O4$(),n.TgZ(0,"g"),n.TgZ(1,"title"),n._uU(2),n.qZA(),n.TgZ(3,"text",11),n._uU(4),n.qZA(),n.qZA()),2&t){const t=n.oxw(2).$implicit,e=n.oxw();n.xp6(2),n.Oqu(e.tickTrim(e.tickFormat(t.value))),n.xp6(1),n.uIk("dy",e.dy)("y",-6)("x",e.gridLineWidth)("text-anchor",e.textAnchor),n.xp6(1),n.hij(" ",t.name," ")}}function no(t,e){if(1&t&&(n.O4$(),n.TgZ(0,"g"),n._UZ(1,"line",10),n.YNc(2,io,5,6,"g",7),n.qZA()),2&t){const t=n.oxw().$implicit,e=n.oxw();n.uIk("transform",e.transform(t.value)),n.xp6(1),n.uIk("x2",e.gridLineWidth)("transform",e.gridLineTransform()),n.xp6(1),n.Q6J("ngIf",e.showRefLabels)}}function ro(t,e){if(1&t&&(n.O4$(),n.TgZ(0,"g"),n.YNc(1,no,3,4,"g",7),n.qZA()),2&t){const t=n.oxw();n.xp6(1),n.Q6J("ngIf",t.showRefLines)}}const so=["ngx-charts-y-axis",""];function oo(t,e){if(1&t){const t=n.EpF();n.O4$(),n.TgZ(0,"g",2),n.NdJ("dimensionsChanged",function(e){return n.CHM(t),n.oxw().emitTicksWidth(e)}),n.qZA()}if(2&t){const t=n.oxw();n.Q6J("trimTicks",t.trimTicks)("maxTickLength",t.maxTickLength)("tickFormatting",t.tickFormatting)("tickArguments",t.tickArguments)("tickValues",t.ticks)("tickStroke",t.tickStroke)("scale",t.yScale)("orient",t.yOrient)("showGridLines",t.showGridLines)("gridLineWidth",t.dims.width)("referenceLines",t.referenceLines)("showRefLines",t.showRefLines)("showRefLabels",t.showRefLabels)("height",t.dims.height)}}function ao(t,e){if(1&t&&(n.O4$(),n._UZ(0,"g",3)),2&t){const t=n.oxw();n.Q6J("label",t.labelText)("offset",t.labelOffset)("orient",t.yOrient)("height",t.dims.height)("width",t.dims.width)}}const lo=["ngx-charts-grid-panel",""],co=["ngx-charts-grid-panel-series",""];function ho(t,e){if(1&t&&(n.O4$(),n._UZ(0,"g",1)),2&t){const t=e.$implicit;n.ekj("grid-panel",!0)("odd","odd"===t.class)("even","even"===t.class),n.Q6J("height",t.height)("width",t.width)("x",t.x)("y",t.y)}}const uo=["ngx-charts-svg-linear-gradient",""];function po(t,e){if(1&t&&(n.O4$(),n._UZ(0,"stop")),2&t){const t=e.$implicit;n.Udp("stop-color",t.color)("stop-opacity",t.opacity),n.uIk("offset",t.offset+"%")}}function fo(t,e){if(1&t&&(n.TgZ(0,"header",4),n.TgZ(1,"span",5),n._uU(2),n.qZA(),n.qZA()),2&t){const t=n.oxw();n.xp6(2),n.Oqu(t.title)}}function mo(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"li",6),n.TgZ(1,"ngx-charts-legend-entry",7),n.NdJ("select",function(e){return n.CHM(t),n.oxw().labelClick.emit(e)})("activate",function(e){return n.CHM(t),n.oxw().activate(e)})("deactivate",function(e){return n.CHM(t),n.oxw().deactivate(e)}),n.qZA(),n.qZA()}if(2&t){const t=e.$implicit,i=n.oxw();n.xp6(1),n.Q6J("label",t.label)("formattedLabel",t.formattedLabel)("color",t.color)("isActive",i.isActive(t))}}const go=["tooltipTemplate"],yo=function(t,e){return[t,e]},bo=".ngx-charts{float:left;overflow:visible}.ngx-charts .arc,.ngx-charts .bar,.ngx-charts .circle{cursor:pointer}.ngx-charts .arc.active,.ngx-charts .arc:hover,.ngx-charts .bar.active,.ngx-charts .bar:hover,.ngx-charts .card.active,.ngx-charts .card:hover,.ngx-charts .cell.active,.ngx-charts .cell:hover{opacity:.8;transition:opacity .1s ease-in-out}.ngx-charts .arc:focus,.ngx-charts .bar:focus,.ngx-charts .card:focus,.ngx-charts .cell:focus{outline:none}.ngx-charts .arc.hidden,.ngx-charts .bar.hidden,.ngx-charts .card.hidden,.ngx-charts .cell.hidden{display:none}.ngx-charts g:focus{outline:none}.ngx-charts .area-series.inactive,.ngx-charts .line-series-range.inactive,.ngx-charts .line-series.inactive,.ngx-charts .polar-series-area.inactive,.ngx-charts .polar-series-path.inactive{opacity:.2;transition:opacity .1s ease-in-out}.ngx-charts .line-highlight{display:none}.ngx-charts .line-highlight.active{display:block}.ngx-charts .area{opacity:.6}.ngx-charts .circle:hover{cursor:pointer}.ngx-charts .label{font-size:12px;font-weight:400}.ngx-charts .tooltip-anchor{fill:#000}.ngx-charts .gridline-path{fill:none;stroke:#ddd;stroke-width:1}.ngx-charts .refline-path{stroke:#a8b2c7;stroke-dasharray:5;stroke-dashoffset:5;stroke-width:1}.ngx-charts .refline-label{font-size:9px}.ngx-charts .reference-area{fill:#000;fill-opacity:.05}.ngx-charts .gridline-path-dotted{fill:none;stroke:#ddd;stroke-dasharray:1,20;stroke-dashoffset:3;stroke-width:1}.ngx-charts .grid-panel rect{fill:none}.ngx-charts .grid-panel.odd rect{fill:rgba(0,0,0,.05)}",vo=["ngx-charts-bar",""];function _o(t,e){if(1&t&&(n.O4$(),n.TgZ(0,"defs"),n._UZ(1,"g",2),n.qZA()),2&t){const t=n.oxw();n.xp6(1),n.Q6J("orientation",t.orientation)("name",t.gradientId)("stops",t.gradientStops)}}function wo(t,e){if(1&t){const t=n.EpF();n.O4$(),n.TgZ(0,"g",5),n.NdJ("dimensionsChanged",function(e){return n.CHM(t),n.oxw().updateXAxisHeight(e)}),n.qZA()}if(2&t){const t=n.oxw();n.Q6J("xScale",t.xScale)("dims",t.dims)("showLabel",t.showXAxisLabel)("labelText",t.xAxisLabel)("trimTicks",t.trimXAxisTicks)("rotateTicks",t.rotateXAxisTicks)("maxTickLength",t.maxXAxisTickLength)("tickFormatting",t.xAxisTickFormatting)("ticks",t.xAxisTicks)("xAxisOffset",t.dataLabelMaxHeight.negative)}}function xo(t,e){if(1&t){const t=n.EpF();n.O4$(),n.TgZ(0,"g",6),n.NdJ("dimensionsChanged",function(e){return n.CHM(t),n.oxw().updateYAxisWidth(e)}),n.qZA()}if(2&t){const t=n.oxw();n.Q6J("yScale",t.yScale)("dims",t.dims)("showGridLines",t.showGridLines)("showLabel",t.showYAxisLabel)("labelText",t.yAxisLabel)("trimTicks",t.trimYAxisTicks)("maxTickLength",t.maxYAxisTickLength)("tickFormatting",t.yAxisTickFormatting)("ticks",t.yAxisTicks)}}function Co(t,e){if(1&t){const t=n.EpF();n.O4$(),n.TgZ(0,"g",6),n.NdJ("dimensionsChanged",function(e){return n.CHM(t),n.oxw().updateXAxisHeight(e)}),n.qZA()}if(2&t){const t=n.oxw();n.Q6J("xScale",t.groupScale)("dims",t.dims)("showLabel",t.showXAxisLabel)("labelText",t.xAxisLabel)("trimTicks",t.trimXAxisTicks)("rotateTicks",t.rotateXAxisTicks)("maxTickLength",t.maxXAxisTickLength)("tickFormatting",t.xAxisTickFormatting)("ticks",t.xAxisTicks)("xAxisOffset",t.dataLabelMaxHeight.negative)}}function Ao(t,e){if(1&t){const t=n.EpF();n.O4$(),n.TgZ(0,"g",7),n.NdJ("dimensionsChanged",function(e){return n.CHM(t),n.oxw().updateYAxisWidth(e)}),n.qZA()}if(2&t){const t=n.oxw();n.Q6J("yScale",t.valueScale)("dims",t.dims)("showGridLines",t.showGridLines)("showLabel",t.showYAxisLabel)("labelText",t.yAxisLabel)("trimTicks",t.trimYAxisTicks)("maxTickLength",t.maxYAxisTickLength)("tickFormatting",t.yAxisTickFormatting)("ticks",t.yAxisTicks)}}function So(t,e){if(1&t){const t=n.EpF();n.O4$(),n.TgZ(0,"g",8),n.NdJ("select",function(e){const i=n.CHM(t).$implicit;return n.oxw().onClick(e,i)})("activate",function(e){const i=n.CHM(t).$implicit;return n.oxw().onActivate(e,i)})("deactivate",function(e){const i=n.CHM(t).$implicit;return n.oxw().onDeactivate(e,i)})("dataLabelHeightChanged",function(e){const i=n.CHM(t).index;return n.oxw().onDataLabelMaxHeightChanged(e,i)}),n.qZA()}if(2&t){const t=e.$implicit,i=n.oxw();n.Q6J("@animationState","active")("activeEntries",i.activeEntries)("xScale",i.innerScale)("yScale",i.valueScale)("colors",i.colors)("series",t.series)("dims",i.dims)("gradient",i.gradient)("tooltipDisabled",i.tooltipDisabled)("tooltipTemplate",i.tooltipTemplate)("showDataLabel",i.showDataLabel)("dataLabelFormatting",i.dataLabelFormatting)("seriesName",t.name)("roundEdges",i.roundEdges)("animations",i.animations)("noBarWhenZero",i.noBarWhenZero),n.uIk("transform",i.groupTransform(t))}}const Eo=["ngx-charts-series-vertical",""];function ko(t,e){if(1&t){const t=n.EpF();n.O4$(),n.TgZ(0,"g",2),n.NdJ("select",function(e){return n.CHM(t),n.oxw().onClick(e)})("activate",function(e){return n.CHM(t),n.oxw().activate.emit(e)})("deactivate",function(e){return n.CHM(t),n.oxw().deactivate.emit(e)}),n.qZA()}if(2&t){const t=e.$implicit,i=n.oxw();n.Q6J("@animationState","active")("@.disabled",!i.animations)("width",t.width)("height",t.height)("x",t.x)("y",t.y)("fill",t.color)("stops",t.gradientStops)("data",t.data)("orientation","vertical")("roundEdges",t.roundEdges)("gradient",i.gradient)("ariaLabel",t.ariaLabel)("isActive",i.isActive(t.data))("tooltipDisabled",i.tooltipDisabled)("tooltipPlacement",i.tooltipPlacement)("tooltipType",i.tooltipType)("tooltipTitle",i.tooltipTemplate?void 0:t.tooltipText)("tooltipTemplate",i.tooltipTemplate)("tooltipContext",t.data)("noBarWhenZero",i.noBarWhenZero)("animations",i.animations)}}function To(t,e){if(1&t){const t=n.EpF();n.O4$(),n.TgZ(0,"g",4),n.NdJ("dimensionsChanged",function(e){const i=n.CHM(t).index;return n.oxw(2).dataLabelHeightChanged.emit({size:e,index:i})}),n.qZA()}if(2&t){const t=e.$implicit,i=n.oxw(2);n.Q6J("barX",t.x)("barY",t.y)("barWidth",t.width)("barHeight",t.height)("value",t.total)("valueFormatting",i.dataLabelFormatting)("orientation","vertical")}}function Mo(t,e){if(1&t&&(n.O4$(),n.TgZ(0,"g"),n.YNc(1,To,1,7,"g",3),n.qZA()),2&t){const t=n.oxw();n.xp6(1),n.Q6J("ngForOf",t.barsForDataLabels)("ngForTrackBy",t.trackDataLabelBy)}}const Lo=["ngx-charts-bar-label",""];let Io=(()=>{class t{constructor(t,e,i){this.applicationRef=t,this.componentFactoryResolver=e,this.injector=i}static setGlobalRootViewContainer(e){t.globalRootViewContainer=e}getRootViewContainer(){if(this._container)return this._container;if(t.globalRootViewContainer)return t.globalRootViewContainer;if(this.applicationRef.components.length)return this.applicationRef.components[0];throw new Error("View Container not found! ngUpgrade needs to manually set this via setRootViewContainer or setGlobalRootViewContainer.")}setRootViewContainer(t){this._container=t}getComponentRootNode(t){return t.element?t.element.nativeElement:t.hostView&&t.hostView.rootNodes.length>0?t.hostView.rootNodes[0]:t.location.nativeElement}getRootViewContainerNode(t){return this.getComponentRootNode(t)}projectComponentBindings(t,e){if(e){if(void 0!==e.inputs){const i=Object.getOwnPropertyNames(e.inputs);for(const n of i)t.instance[n]=e.inputs[n]}if(void 0!==e.outputs){const i=Object.getOwnPropertyNames(e.outputs);for(const n of i)t.instance[n]=e.outputs[n]}}return t}appendComponent(t,e={},i){i||(i=this.getRootViewContainer());const n=this.getComponentRootNode(i),r=new o.F0(n,this.componentFactoryResolver,this.applicationRef,this.injector),s=new o.C5(t),a=r.attach(s);return this.projectComponentBindings(a,e),a}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(n.z2F),n.LFG(n._Vd),n.LFG(n.zs3))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t.globalRootViewContainer=null,t})();function Oo(t,e,i){let n,r,s;i=i||{};let o=null,a=0;function l(){a=!1===i.leading?0:+new Date,o=null,s=t.apply(n,r)}return function(){const c=+new Date;a||!1!==i.leading||(a=c);const h=e-(c-a);return n=this,r=arguments,h<=0?(clearTimeout(o),o=null,a=c,s=t.apply(n,r)):o||!1===i.trailing||(o=setTimeout(l,h)),s}}var Do=function(t){return t[t.top="top"]="top",t[t.bottom="bottom"]="bottom",t[t.left="left"]="left",t[t.right="right"]="right",t}({});function Ro(t,e,i){return"top"===i?t.top-7:"bottom"===i?t.top+t.height-e.height+7:"center"===i?t.top+t.height/2-e.height/2:void 0}function No(t,e,i){return"left"===i?t.left-7:"right"===i?t.left+t.width-e.width+7:"center"===i?t.left+t.width/2-e.width/2:void 0}class Po{static calculateVerticalAlignment(t,e,i){let n=Ro(t,e,i);return n+e.height>window.innerHeight&&(n=window.innerHeight-e.height),n}static calculateVerticalCaret(t,e,i,n){let r;"top"===n&&(r=t.height/2-i.height/2+7),"bottom"===n&&(r=e.height-t.height/2-i.height/2-7),"center"===n&&(r=e.height/2-i.height/2);const s=Ro(t,e,n);return s+e.height>window.innerHeight&&(r+=s+e.height-window.innerHeight),r}static calculateHorizontalAlignment(t,e,i){let n=No(t,e,i);return n+e.width>window.innerWidth&&(n=window.innerWidth-e.width),n}static calculateHorizontalCaret(t,e,i,n){let r;"left"===n&&(r=t.width/2-i.width/2+7),"right"===n&&(r=e.width-t.width/2-i.width/2-7),"center"===n&&(r=e.width/2-i.width/2);const s=No(t,e,n);return s+e.width>window.innerWidth&&(r+=s+e.width-window.innerWidth),r}static shouldFlip(t,e,i,n){let r=!1;return"right"===i&&t.left+t.width+e.width+n>window.innerWidth&&(r=!0),"left"===i&&t.left-e.width-n<0&&(r=!0),"top"===i&&t.top-e.height-n<0&&(r=!0),"bottom"===i&&t.top+t.height+e.height+n>window.innerHeight&&(r=!0),r}static positionCaret(t,e,i,n,r){let s=0,o=0;return t===Do.right?(o=-7,s=Po.calculateVerticalCaret(i,e,n,r)):t===Do.left?(o=e.width,s=Po.calculateVerticalCaret(i,e,n,r)):t===Do.top?(s=e.height,o=Po.calculateHorizontalCaret(i,e,n,r)):t===Do.bottom&&(s=-7,o=Po.calculateHorizontalCaret(i,e,n,r)),{top:s,left:o}}static positionContent(t,e,i,n,r){let s=0,o=0;return t===Do.right?(o=i.left+i.width+n,s=Po.calculateVerticalAlignment(i,e,r)):t===Do.left?(o=i.left-e.width-n,s=Po.calculateVerticalAlignment(i,e,r)):t===Do.top?(s=i.top-e.height-n,o=Po.calculateHorizontalAlignment(i,e,r)):t===Do.bottom&&(s=i.top+i.height+n,o=Po.calculateHorizontalAlignment(i,e,r)),{top:s,left:o}}static determinePlacement(t,e,i,n){if(Po.shouldFlip(i,e,t,n)){if(t===Do.right)return Do.left;if(t===Do.left)return Do.right;if(t===Do.top)return Do.bottom;if(t===Do.bottom)return Do.top}return t}}let Fo=(()=>{class t{constructor(t,e){this.element=t,this.renderer=e}get cssClasses(){let t="ngx-charts-tooltip-content";return t+=` position-${this.placement}`,t+=` type-${this.type}`,t+=` ${this.cssClass}`,t}ngAfterViewInit(){setTimeout(this.position.bind(this))}position(){const t=this.element.nativeElement,e=this.host.nativeElement.getBoundingClientRect();if(!e.height&&!e.width)return;const i=t.getBoundingClientRect();this.checkFlip(e,i),this.positionContent(t,e,i),this.showCaret&&this.positionCaret(e,i),setTimeout(()=>this.renderer.addClass(t,"animate"),1)}positionContent(t,e,i){const{top:n,left:r}=Po.positionContent(this.placement,i,e,this.spacing,this.alignment);this.renderer.setStyle(t,"top",`${n}px`),this.renderer.setStyle(t,"left",`${r}px`)}positionCaret(t,e){const i=this.caretElm.nativeElement,n=i.getBoundingClientRect(),{top:r,left:s}=Po.positionCaret(this.placement,e,t,n,this.alignment);this.renderer.setStyle(i,"top",`${r}px`),this.renderer.setStyle(i,"left",`${s}px`)}checkFlip(t,e){this.placement=Po.determinePlacement(this.placement,e,t,this.spacing)}onWindowResize(){this.position()}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(n.Qsj))},t.\u0275cmp=n.Xpm({type:t,selectors:[["ngx-tooltip-content"]],viewQuery:function(t,e){if(1&t&&n.Gf(Os,5),2&t){let t;n.iGM(t=n.CRH())&&(e.caretElm=t.first)}},hostVars:2,hostBindings:function(t,e){1&t&&n.NdJ("resize",function(){return e.onWindowResize()},!1,n.Jf7),2&t&&n.Tol(e.cssClasses)},inputs:{placement:"placement",host:"host",showCaret:"showCaret",type:"type",alignment:"alignment",spacing:"spacing",cssClass:"cssClass",title:"title",template:"template",context:"context"},decls:6,vars:6,consts:[[3,"hidden"],["caretElm",""],[1,"tooltip-content"],[4,"ngIf"],[3,"innerHTML",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"innerHTML"]],template:function(t,e){1&t&&(n.TgZ(0,"div"),n._UZ(1,"span",0,1),n.TgZ(3,"div",2),n.YNc(4,Ns,2,4,"span",3),n.YNc(5,Ps,1,1,"span",4),n.qZA(),n.qZA()),2&t&&(n.xp6(1),n.Gre("tooltip-caret position-",e.placement,""),n.Q6J("hidden",!e.showCaret),n.xp6(3),n.Q6J("ngIf",!e.title),n.xp6(1),n.Q6J("ngIf",e.title))},directives:[r.O5,r.tP],styles:[".ngx-charts-tooltip-content{border-radius:3px;display:block;font-weight:400;opacity:0;pointer-events:none!important;position:fixed;z-index:5000}.ngx-charts-tooltip-content.type-popover{background:#fff;border:1px solid #72809b;box-shadow:0 1px 3px 0 rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 2px 1px -1px rgba(0,0,0,.12);color:#060709;font-size:13px;padding:4px}.ngx-charts-tooltip-content.type-popover .tooltip-caret{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid #fff;border-top:7px solid transparent}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-right{border-bottom:7px solid transparent;border-right:7px solid #fff;border-top:7px solid transparent}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-bottom{border-bottom:7px solid #fff;border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip{background:rgba(0,0,0,.75);color:#fff;font-size:12px;padding:0 10px;pointer-events:auto;text-align:center}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-right{border-bottom:7px solid transparent;border-right:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-bottom{border-bottom:7px solid rgba(0,0,0,.75);border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content .tooltip-label{display:block;font-size:1em;line-height:1em;padding:8px 5px 5px}.ngx-charts-tooltip-content .tooltip-val{display:block;font-size:1.3em;line-height:1em;padding:0 5px 8px}.ngx-charts-tooltip-content .tooltip-caret{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.position-right{transform:translate3d(10px,0,0)}.ngx-charts-tooltip-content.position-left{transform:translate3d(-10px,0,0)}.ngx-charts-tooltip-content.position-top{transform:translate3d(0,-10px,0)}.ngx-charts-tooltip-content.position-bottom{transform:translate3d(0,10px,0)}.ngx-charts-tooltip-content.animate{opacity:1;pointer-events:auto;transform:translateZ(0);transition:opacity .3s,transform .3s}.area-tooltip-container{padding:5px 0;pointer-events:none}.tooltip-item{line-height:1.2em;padding:5px 0;text-align:left}.tooltip-item .tooltip-item-color{border-radius:3px;color:#5b646b;display:inline-block;height:12px;margin-right:5px;width:12px}"],encapsulation:2}),function(t,e,i,n){var r,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(o=(s<3?r(o):s>3?r(e,i,o):r(e,i))||o);s>3&&o&&Object.defineProperty(e,i,o)}([(100,function(t,e,i){return{configurable:!0,enumerable:i.enumerable,get:function(){return Object.defineProperty(this,e,{configurable:!0,enumerable:i.enumerable,value:Oo(i.value,100,undefined)}),this[e]}}})],t.prototype,"onWindowResize",null),t})(),Zo=(()=>{class t extends class{constructor(t){this.injectionService=t,this.defaults={},this.components=new Map}getByType(t=this.type){return this.components.get(t)}create(t){return this.createByType(this.type,t)}createByType(t,e){e=this.assignDefaults(e);const i=this.injectComponent(t,e);return this.register(t,i),i}destroy(t){const e=this.components.get(t.componentType);if(e&&e.length){const i=e.indexOf(t);i>-1&&(e[i].destroy(),e.splice(i,1))}}destroyAll(){this.destroyByType(this.type)}destroyByType(t){const e=this.components.get(t);if(e&&e.length){let t=e.length-1;for(;t>=0;)this.destroy(e[t--])}}injectComponent(t,e){return this.injectionService.appendComponent(t,e)}assignDefaults(t){const e=Object.assign({},this.defaults.inputs),i=Object.assign({},this.defaults.outputs);return t.inputs||t.outputs||(t={inputs:t}),e&&(t.inputs=Object.assign(Object.assign({},e),t.inputs)),i&&(t.outputs=Object.assign(Object.assign({},i),t.outputs)),t}register(t,e){this.components.has(t)||this.components.set(t,[]),this.components.get(t).push(e)}}{constructor(t){super(t),this.type=Fo}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(Io))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})(),Bo=(()=>{class t{constructor(){this.showLegend=!1,this.animations=!0,this.legendLabelClick=new n.vpe,this.legendLabelActivate=new n.vpe,this.legendLabelDeactivate=new n.vpe}ngOnChanges(t){this.update()}update(){let t=0;this.showLegend&&(this.legendType=this.getLegendType(),this.legendOptions&&"right"!==this.legendOptions.position||(t="scaleLegend"===this.legendType?1:2)),this.chartWidth=Math.floor(this.view[0]*(12-t)/12),this.legendWidth=this.legendOptions&&"right"!==this.legendOptions.position?this.chartWidth:Math.floor(this.view[0]*t/12)}getLegendType(){return"linear"===this.legendOptions.scaleType?"scaleLegend":"legend"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["ngx-charts-chart"]],inputs:{showLegend:"showLegend",animations:"animations",legendType:"legendType",view:"view",legendOptions:"legendOptions",data:"data",legendData:"legendData",colors:"colors",activeEntries:"activeEntries"},outputs:{legendLabelClick:"legendLabelClick",legendLabelActivate:"legendLabelActivate",legendLabelDeactivate:"legendLabelDeactivate"},features:[n._Bn([Zo]),n.TTD],ngContentSelectors:Bs,decls:5,vars:8,consts:[[1,"ngx-charts-outer"],[1,"ngx-charts"],["class","chart-legend",3,"horizontal","valueRange","colors","height","width",4,"ngIf"],["class","chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate",4,"ngIf"],[1,"chart-legend",3,"horizontal","valueRange","colors","height","width"],[1,"chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate"]],template:function(t,e){1&t&&(n.F$t(),n.TgZ(0,"div",0),n.O4$(),n.TgZ(1,"svg",1),n.Hsn(2),n.qZA(),n.YNc(3,Fs,1,5,"ngx-charts-scale-legend",2),n.YNc(4,Zs,1,7,"ngx-charts-legend",3),n.qZA()),2&t&&(n.Udp("width",e.view[0],"px"),n.Q6J("@animationState","active")("@.disabled",!e.animations),n.xp6(1),n.uIk("width",e.chartWidth)("height",e.view[1]),n.xp6(2),n.Q6J("ngIf",e.showLegend&&"scaleLegend"===e.legendType),n.xp6(1),n.Q6J("ngIf",e.showLegend&&"legend"===e.legendType))},directives:function(){return[r.O5,ua,ca]},encapsulation:2,data:{animation:[(0,s.X$)("animationState",[(0,s.eR)(":enter",[(0,s.oB)({opacity:0}),(0,s.jt)("500ms 100ms",(0,s.oB)({opacity:1}))])])]},changeDetection:0}),t})(),Uo=(()=>{class t{constructor(t,e){this.element=t,this.zone=e,this.visible=new n.vpe,this.isVisible=!1,this.runCheck()}destroy(){clearTimeout(this.timeout)}onVisibilityChange(){this.zone.run(()=>{this.isVisible=!0,this.visible.emit(!0)})}runCheck(){const t=()=>{if(!this.element)return;const{offsetHeight:e,offsetWidth:i}=this.element.nativeElement;e&&i?(clearTimeout(this.timeout),this.onVisibilityChange()):(clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>t(),100)}))};this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>t())})}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(n.R0b))},t.\u0275dir=n.lG2({type:t,selectors:[["visibility-observer"]],outputs:{visible:"visible"}}),t})(),qo=(()=>{class t{constructor(t,e,i){this.chartElement=t,this.zone=e,this.cd=i,this.scheme="cool",this.schemeType="ordinal",this.animations=!0,this.select=new n.vpe}ngAfterViewInit(){this.bindWindowResizeEvent(),this.visibilityObserver=new Uo(this.chartElement,this.zone),this.visibilityObserver.visible.subscribe(this.update.bind(this))}ngOnDestroy(){this.unbindEvents(),this.visibilityObserver&&(this.visibilityObserver.visible.unsubscribe(),this.visibilityObserver.destroy())}ngOnChanges(t){this.update()}update(){if(this.results=this.results?this.cloneData(this.results):[],this.view)this.width=this.view[0],this.height=this.view[1];else{const t=this.getContainerDims();t&&(this.width=t.width,this.height=t.height)}this.width||(this.width=600),this.height||(this.height=400),this.width=Math.floor(this.width),this.height=Math.floor(this.height),this.cd&&this.cd.markForCheck()}getContainerDims(){let t,e;const i=this.chartElement.nativeElement;if(null!==i.parentNode){const n=i.parentNode.getBoundingClientRect();t=n.width,e=n.height}return t&&e?{width:t,height:e}:null}formatDates(){for(let t=0;t{this.update(),this.cd&&this.cd.markForCheck()});this.resizeSubscription=t}cloneData(t){const e=[];for(const i of t){const t={name:i.name};if(void 0!==i.value&&(t.value=i.value),void 0!==i.series){t.series=[];for(const e of i.series){const i=Object.assign({},e);t.series.push(i)}}void 0!==i.extra&&(t.extra=JSON.parse(JSON.stringify(i.extra))),e.push(t)}return e}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(n.sBO))},t.\u0275cmp=n.Xpm({type:t,selectors:[["base-chart"]],inputs:{scheme:"scheme",schemeType:"schemeType",animations:"animations",results:"results",view:"view",customColors:"customColors"},outputs:{select:"select"},features:[n.TTD],decls:1,vars:0,template:function(t,e){1&t&&n._UZ(0,"div")},encapsulation:2}),t})(),zo=(()=>{class t{constructor(t){this.textHeight=25,this.margin=5,this.element=t.nativeElement}ngOnChanges(t){this.update()}update(){switch(this.strokeWidth="0.01",this.textAnchor="middle",this.transform="",this.orient){case"top":case"bottom":this.y=this.offset,this.x=this.width/2;break;case"left":this.y=-(this.offset+this.textHeight+this.margin),this.x=-this.height/2,this.transform="rotate(270)";break;case"right":this.y=this.offset+this.margin,this.x=-this.height/2,this.transform="rotate(270)"}}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq))},t.\u0275cmp=n.Xpm({type:t,selectors:[["g","ngx-charts-axis-label",""]],inputs:{orient:"orient",label:"label",offset:"offset",width:"width",height:"height"},features:[n.TTD],attrs:Us,decls:2,vars:6,template:function(t,e){1&t&&(n.O4$(),n.TgZ(0,"text"),n._uU(1),n.qZA()),2&t&&(n.uIk("stroke-width",e.strokeWidth)("x",e.x)("y",e.y)("text-anchor",e.textAnchor)("transform",e.transform),n.xp6(1),n.hij(" ",e.label," "))},encapsulation:2,changeDetection:0}),t})();function Ho(t,e=16){return"string"!=typeof t?"number"==typeof t?t+"":"":(t=t.trim()).length<=e?t:`${t.slice(0,e)}...`}function Yo(t,e){if(t.length>e){const i=[],n=Math.floor(t.length/e);for(let e=0;e{class t{constructor(){this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.rotateTicks=!0,this.dimensionsChanged=new n.vpe,this.verticalSpacing=20,this.rotateLabels=!1,this.innerTickSize=6,this.outerTickSize=6,this.tickPadding=3,this.textAnchor="middle",this.maxTicksLength=0,this.maxAllowedLength=16,this.height=0}ngOnChanges(t){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){const t=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().height,10);t!==this.height&&(this.height=t,this.dimensionsChanged.emit({height:t}),setTimeout(()=>this.updateDims()))}update(){const t=this.scale;this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:t.tickFormat?t.tickFormat.apply(t,this.tickArguments):function(t){return"Date"===t.constructor.name?t.toLocaleDateString():t.toLocaleString()};const e=this.rotateTicks?this.getRotationAngle(this.ticks):null;this.adjustedScale=this.scale.bandwidth?function(t){return this.scale(t)+.5*this.scale.bandwidth()}:this.scale,this.textTransform="",e&&0!==e?(this.textTransform=`rotate(${e})`,this.textAnchor="end",this.verticalSpacing=10):this.textAnchor="middle",setTimeout(()=>this.updateDims())}getRotationAngle(t){let e=0;this.maxTicksLength=0;for(let s=0;sthis.maxTicksLength&&(this.maxTicksLength=i)}const i=8*Math.min(this.maxTicksLength,this.maxAllowedLength);let n=i;const r=Math.floor(this.width/t.length);for(;n>r&&e>-90;)e-=30,n=Math.cos(e*(Math.PI/180))*i;return e}getTicks(){let t;const e=this.getMaxTicks(20),i=this.getMaxTicks(100);return this.tickValues?t=this.tickValues:this.scale.ticks?t=this.scale.ticks.apply(this.scale,[i]):(t=this.scale.domain(),t=Yo(t,e)),t}getMaxTicks(t){return Math.floor(this.width/t)}tickTransform(t){return"translate("+this.adjustedScale(t)+","+this.verticalSpacing+")"}gridLineTransform(){return`translate(0,${-this.verticalSpacing-5})`}tickTrim(t){return this.trimTicks?Ho(t,this.maxTickLength):t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["g","ngx-charts-x-axis-ticks",""]],viewQuery:function(t,e){if(1&t&&n.Gf(qs,5),2&t){let t;n.iGM(t=n.CRH())&&(e.ticksElement=t.first)}},inputs:{tickArguments:"tickArguments",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",showGridLines:"showGridLines",rotateTicks:"rotateTicks",scale:"scale",orient:"orient",tickValues:"tickValues",tickFormatting:"tickFormatting",gridLineHeight:"gridLineHeight",width:"width"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[n.TTD],attrs:zs,decls:4,vars:2,consts:[["ticksel",""],["class","tick",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,"tick"],["stroke-width","0.01"],[4,"ngIf"],["y2","0",1,"gridline-path","gridline-path-vertical"]],template:function(t,e){1&t&&(n.O4$(),n.TgZ(0,"g",null,0),n.YNc(2,Hs,5,7,"g",1),n.qZA(),n.YNc(3,Gs,2,2,"g",2)),2&t&&(n.xp6(2),n.Q6J("ngForOf",e.ticks),n.xp6(1),n.Q6J("ngForOf",e.ticks))},directives:[r.sg,r.O5],encapsulation:2,changeDetection:0}),t})(),jo=(()=>{class t{constructor(){this.rotateTicks=!0,this.showGridLines=!1,this.xOrient="bottom",this.xAxisOffset=0,this.dimensionsChanged=new n.vpe,this.xAxisClassName="x axis",this.labelOffset=0,this.fill="none",this.stroke="stroke",this.tickStroke="#ccc",this.strokeWidth="none",this.padding=5}ngOnChanges(t){this.update()}update(){this.transform=`translate(0,${this.xAxisOffset+this.padding+this.dims.height})`,void 0!==this.xAxisTickCount&&(this.tickArguments=[this.xAxisTickCount])}emitTicksHeight({height:t}){const e=t+25+5;e!==this.labelOffset&&(this.labelOffset=e,setTimeout(()=>{this.dimensionsChanged.emit({height:t})},0))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["g","ngx-charts-x-axis",""]],viewQuery:function(t,e){if(1&t&&n.Gf(Go,5),2&t){let t;n.iGM(t=n.CRH())&&(e.ticksComponent=t.first)}},inputs:{rotateTicks:"rotateTicks",showGridLines:"showGridLines",xOrient:"xOrient",xAxisOffset:"xAxisOffset",xScale:"xScale",dims:"dims",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",showLabel:"showLabel",labelText:"labelText",ticks:"ticks",xAxisTickInterval:"xAxisTickInterval",xAxisTickCount:"xAxisTickCount"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[n.TTD],attrs:js,decls:3,vars:4,consts:[["ngx-charts-x-axis-ticks","",3,"trimTicks","rotateTicks","maxTickLength","tickFormatting","tickArguments","tickStroke","scale","orient","showGridLines","gridLineHeight","width","tickValues","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],["ngx-charts-x-axis-ticks","",3,"trimTicks","rotateTicks","maxTickLength","tickFormatting","tickArguments","tickStroke","scale","orient","showGridLines","gridLineHeight","width","tickValues","dimensionsChanged"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(t,e){1&t&&(n.O4$(),n.TgZ(0,"g"),n.YNc(1,Vs,1,12,"g",0),n.YNc(2,Qs,1,5,"g",1),n.qZA()),2&t&&(n.uIk("class",e.xAxisClassName)("transform",e.transform),n.xp6(1),n.Q6J("ngIf",e.xScale),n.xp6(1),n.Q6J("ngIf",e.showLabel))},directives:[r.O5,Go,zo],encapsulation:2,changeDetection:0}),t})();function Vo(t,e,i,n,r,[s,o,a,l]){let c="";return c=`M${[t+r,e]}`,c+="h"+((i=0===(i=Math.floor(i))?1:i)-2*r),c+=o?`a${[r,r]} 0 0 1 ${[r,r]}`:`h${r}v${r}`,c+="v"+((n=0===(n=Math.floor(n))?1:n)-2*r),c+=l?`a${[r,r]} 0 0 1 ${[-r,r]}`:`v${r}h${-r}`,c+="h"+(2*r-i),c+=a?`a${[r,r]} 0 0 1 ${[-r,-r]}`:`h${-r}v${-r}`,c+="v"+(2*r-n),c+=s?`a${[r,r]} 0 0 1 ${[r,-r]}`:`v${-r}h${r}`,c+="z",c}let Qo=(()=>{class t{constructor(){this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.showRefLabels=!1,this.showRefLines=!1,this.dimensionsChanged=new n.vpe,this.innerTickSize=6,this.tickPadding=3,this.verticalSpacing=20,this.textAnchor="middle",this.width=0,this.outerTickSize=6,this.rotateLabels=!1,this.referenceLineLength=0}ngOnChanges(t){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){const t=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().width,10);t!==this.width&&(this.width=t,this.dimensionsChanged.emit({width:t}),setTimeout(()=>this.updateDims()))}update(){let t;const e="top"===this.orient||"right"===this.orient?-1:1;switch(this.tickSpacing=Math.max(this.innerTickSize,0)+this.tickPadding,t=this.scale,this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:t.tickFormat?t.tickFormat.apply(t,this.tickArguments):function(t){return"Date"===t.constructor.name?t.toLocaleDateString():t.toLocaleString()},this.adjustedScale=t.bandwidth?function(e){return t(e)+.5*t.bandwidth()}:t,this.showRefLines&&this.referenceLines&&this.setReferencelines(),this.orient){case"top":case"bottom":this.transform=function(t){return"translate("+this.adjustedScale(t)+",0)"},this.textAnchor="middle",this.y2=this.innerTickSize*e,this.y1=this.tickSpacing*e,this.dy=e<0?"0em":".71em";break;case"left":this.transform=function(t){return"translate(0,"+this.adjustedScale(t)+")"},this.textAnchor="end",this.x2=this.innerTickSize*-e,this.x1=this.tickSpacing*-e,this.dy=".32em";break;case"right":this.transform=function(t){return"translate(0,"+this.adjustedScale(t)+")"},this.textAnchor="start",this.x2=this.innerTickSize*-e,this.x1=this.tickSpacing*-e,this.dy=".32em"}setTimeout(()=>this.updateDims())}setReferencelines(){this.refMin=this.adjustedScale(Math.min.apply(null,this.referenceLines.map(t=>t.value))),this.refMax=this.adjustedScale(Math.max.apply(null,this.referenceLines.map(t=>t.value))),this.referenceLineLength=this.referenceLines.length,this.referenceAreaPath=Vo(0,this.refMax,this.gridLineWidth,this.refMin-this.refMax,0,[!1,!1,!1,!1])}getTicks(){let t;const e=this.getMaxTicks(20),i=this.getMaxTicks(50);return this.tickValues?t=this.tickValues:this.scale.ticks?t=this.scale.ticks.apply(this.scale,[i]):(t=this.scale.domain(),t=Yo(t,e)),t}getMaxTicks(t){return Math.floor(this.height/t)}tickTransform(t){return`translate(${this.adjustedScale(t)},${this.verticalSpacing})`}gridLineTransform(){return"translate(5,0)"}tickTrim(t){return this.trimTicks?Ho(t,this.maxTickLength):t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["g","ngx-charts-y-axis-ticks",""]],viewQuery:function(t,e){if(1&t&&n.Gf(qs,5),2&t){let t;n.iGM(t=n.CRH())&&(e.ticksElement=t.first)}},inputs:{tickArguments:"tickArguments",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",showGridLines:"showGridLines",showRefLabels:"showRefLabels",showRefLines:"showRefLines",scale:"scale",orient:"orient",tickValues:"tickValues",tickFormatting:"tickFormatting",gridLineWidth:"gridLineWidth",height:"height",referenceLines:"referenceLines"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[n.TTD],attrs:Ws,decls:6,vars:4,consts:[["ticksel",""],["class","tick",4,"ngFor","ngForOf"],["class","reference-area",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"tick"],["stroke-width","0.01"],[1,"reference-area"],[4,"ngIf"],["class","gridline-path gridline-path-horizontal","x1","0",4,"ngIf"],["x1","0",1,"gridline-path","gridline-path-horizontal"],["x1","0",1,"refline-path","gridline-path-horizontal"],[1,"refline-label"]],template:function(t,e){1&t&&(n.O4$(),n.TgZ(0,"g",null,0),n.YNc(2,Js,5,9,"g",1),n.qZA(),n.YNc(3,Xs,1,2,"path",2),n.YNc(4,eo,2,2,"g",3),n.YNc(5,ro,2,1,"g",3)),2&t&&(n.xp6(2),n.Q6J("ngForOf",e.ticks),n.xp6(1),n.Q6J("ngIf",e.referenceLineLength>1&&e.refMax&&e.refMin&&e.showRefLines),n.xp6(1),n.Q6J("ngForOf",e.ticks),n.xp6(1),n.Q6J("ngForOf",e.referenceLines))},directives:[r.sg,r.O5],encapsulation:2,changeDetection:0}),t})(),Wo=(()=>{class t{constructor(){this.showGridLines=!1,this.yOrient="left",this.yAxisOffset=0,this.dimensionsChanged=new n.vpe,this.yAxisClassName="y axis",this.labelOffset=15,this.fill="none",this.stroke="#CCC",this.tickStroke="#CCC",this.strokeWidth=1,this.padding=5}ngOnChanges(t){this.update()}update(){this.offset=-(this.yAxisOffset+this.padding),"right"===this.yOrient?(this.labelOffset=65,this.transform=`translate(${this.offset+this.dims.width} , 0)`):(this.offset=this.offset,this.transform=`translate(${this.offset} , 0)`),void 0!==this.yAxisTickCount&&(this.tickArguments=[this.yAxisTickCount])}emitTicksWidth({width:t}){t!==this.labelOffset&&"right"===this.yOrient?(this.labelOffset=t+this.labelOffset,setTimeout(()=>{this.dimensionsChanged.emit({width:t})},0)):t!==this.labelOffset&&(this.labelOffset=t,setTimeout(()=>{this.dimensionsChanged.emit({width:t})},0))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["g","ngx-charts-y-axis",""]],viewQuery:function(t,e){if(1&t&&n.Gf(Qo,5),2&t){let t;n.iGM(t=n.CRH())&&(e.ticksComponent=t.first)}},inputs:{showGridLines:"showGridLines",yOrient:"yOrient",yAxisOffset:"yAxisOffset",yScale:"yScale",dims:"dims",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",ticks:"ticks",showLabel:"showLabel",labelText:"labelText",yAxisTickInterval:"yAxisTickInterval",yAxisTickCount:"yAxisTickCount",referenceLines:"referenceLines",showRefLines:"showRefLines",showRefLabels:"showRefLabels"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[n.TTD],attrs:so,decls:3,vars:4,consts:[["ngx-charts-y-axis-ticks","",3,"trimTicks","maxTickLength","tickFormatting","tickArguments","tickValues","tickStroke","scale","orient","showGridLines","gridLineWidth","referenceLines","showRefLines","showRefLabels","height","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],["ngx-charts-y-axis-ticks","",3,"trimTicks","maxTickLength","tickFormatting","tickArguments","tickValues","tickStroke","scale","orient","showGridLines","gridLineWidth","referenceLines","showRefLines","showRefLabels","height","dimensionsChanged"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(t,e){1&t&&(n.O4$(),n.TgZ(0,"g"),n.YNc(1,oo,1,14,"g",0),n.YNc(2,ao,1,5,"g",1),n.qZA()),2&t&&(n.uIk("class",e.yAxisClassName)("transform",e.transform),n.xp6(1),n.Q6J("ngIf",e.yScale),n.xp6(1),n.Q6J("ngIf",e.showLabel))},directives:[r.O5,Qo,zo],encapsulation:2,changeDetection:0}),t})(),Jo=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[r.ez]]}),t})();var Xo=function(t){return t[t.popover="popover"]="popover",t[t.tooltip="tooltip"]="tooltip",t}({}),Ko=function(t){return t[t.left="left"]="left",t[t.center="center"]="center",t[t.right="right"]="right",t}({}),$o=function(t){return t[t.all="all"]="all",t[t.focus="focus"]="focus",t[t.mouseover="mouseover"]="mouseover",t}({});let ta=(()=>{class t{constructor(t,e,i){this.tooltipService=t,this.viewContainerRef=e,this.renderer=i,this.tooltipCssClass="",this.tooltipTitle="",this.tooltipAppendToBody=!0,this.tooltipSpacing=10,this.tooltipDisabled=!1,this.tooltipShowCaret=!0,this.tooltipPlacement=Do.top,this.tooltipAlignment=Ko.center,this.tooltipType=Xo.popover,this.tooltipCloseOnClickOutside=!0,this.tooltipCloseOnMouseLeave=!0,this.tooltipHideTimeout=300,this.tooltipShowTimeout=100,this.tooltipShowEvent=$o.all,this.tooltipImmediateExit=!1,this.show=new n.vpe,this.hide=new n.vpe}get listensForFocus(){return this.tooltipShowEvent===$o.all||this.tooltipShowEvent===$o.focus}get listensForHover(){return this.tooltipShowEvent===$o.all||this.tooltipShowEvent===$o.mouseover}ngOnDestroy(){this.hideTooltip(!0)}onFocus(){this.listensForFocus&&this.showTooltip()}onBlur(){this.listensForFocus&&this.hideTooltip(!0)}onMouseEnter(){this.listensForHover&&this.showTooltip()}onMouseLeave(t){if(this.listensForHover&&this.tooltipCloseOnMouseLeave){if(clearTimeout(this.timeout),this.component&&this.component.instance.element.nativeElement.contains(t))return;this.hideTooltip(this.tooltipImmediateExit)}}onMouseClick(){this.listensForHover&&this.hideTooltip(!0)}showTooltip(t){if(this.component||this.tooltipDisabled)return;const e=t?0:this.tooltipShowTimeout;clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.tooltipService.destroyAll();const t=this.createBoundOptions();this.component=this.tooltipService.create(t),setTimeout(()=>{this.component&&this.addHideListeners(this.component.instance.element.nativeElement)},10),this.show.emit(!0)},e)}addHideListeners(t){this.mouseEnterContentEvent=this.renderer.listen(t,"mouseenter",()=>{clearTimeout(this.timeout)}),this.tooltipCloseOnMouseLeave&&(this.mouseLeaveContentEvent=this.renderer.listen(t,"mouseleave",()=>{this.hideTooltip(this.tooltipImmediateExit)})),this.tooltipCloseOnClickOutside&&(this.documentClickEvent=this.renderer.listen(document,"click",e=>{t.contains(e.target)||this.hideTooltip()}))}hideTooltip(t=!1){if(!this.component)return;const e=()=>{this.mouseLeaveContentEvent&&this.mouseLeaveContentEvent(),this.mouseEnterContentEvent&&this.mouseEnterContentEvent(),this.documentClickEvent&&this.documentClickEvent(),this.hide.emit(!0),this.tooltipService.destroy(this.component),this.component=void 0};clearTimeout(this.timeout),t?e():this.timeout=setTimeout(e,this.tooltipHideTimeout)}createBoundOptions(){return{title:this.tooltipTitle,template:this.tooltipTemplate,host:this.viewContainerRef.element,placement:this.tooltipPlacement,alignment:this.tooltipAlignment,type:this.tooltipType,showCaret:this.tooltipShowCaret,cssClass:this.tooltipCssClass,spacing:this.tooltipSpacing,context:this.tooltipContext}}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(Zo),n.Y36(n.s_b),n.Y36(n.Qsj))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngx-tooltip",""]],hostBindings:function(t,e){1&t&&n.NdJ("focusin",function(){return e.onFocus()})("blur",function(){return e.onBlur()})("mouseenter",function(){return e.onMouseEnter()})("mouseleave",function(t){return e.onMouseLeave(t.target)})("click",function(){return e.onMouseClick()})},inputs:{tooltipCssClass:"tooltipCssClass",tooltipTitle:"tooltipTitle",tooltipAppendToBody:"tooltipAppendToBody",tooltipSpacing:"tooltipSpacing",tooltipDisabled:"tooltipDisabled",tooltipShowCaret:"tooltipShowCaret",tooltipPlacement:"tooltipPlacement",tooltipAlignment:"tooltipAlignment",tooltipType:"tooltipType",tooltipCloseOnClickOutside:"tooltipCloseOnClickOutside",tooltipCloseOnMouseLeave:"tooltipCloseOnMouseLeave",tooltipHideTimeout:"tooltipHideTimeout",tooltipShowTimeout:"tooltipShowTimeout",tooltipShowEvent:"tooltipShowEvent",tooltipImmediateExit:"tooltipImmediateExit",tooltipTemplate:"tooltipTemplate",tooltipContext:"tooltipContext"},outputs:{show:"show",hide:"hide"}}),t})(),ea=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({providers:[Io,Zo],imports:[[r.ez]]}),t})();function ia(t){return t instanceof Date?t.toLocaleDateString():t.toLocaleString()}const na={};function ra(){let t=("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4);return t=`a${t}`,na[t]?ra():(na[t]=!0,t)}let sa,oa=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["g","ngx-charts-grid-panel",""]],inputs:{path:"path",width:"width",height:"height",x:"x",y:"y"},attrs:lo,decls:1,vars:4,consts:[["stroke","none",1,"gridpanel"]],template:function(t,e){1&t&&(n.O4$(),n._UZ(0,"rect",0)),2&t&&n.uIk("height",e.height)("width",e.width)("x",e.x)("y",e.y)},encapsulation:2,changeDetection:0}),t})(),aa=(()=>{class t{ngOnChanges(t){this.update()}update(){this.gridPanels=this.getGridPanels()}getGridPanels(){return this.data.map(t=>{let e,i,n,r,s,o="odd";if("vertical"===this.orient){const a=this.xScale(t.name);Number.parseInt((a/this.xScale.step()).toString(),10)%2==1&&(o="even"),e=this.xScale.bandwidth()*this.xScale.paddingInner(),i=this.xScale.bandwidth()+e,n=this.dims.height,r=this.xScale(t.name)-e/2,s=0}else if("horizontal"===this.orient){const a=this.yScale(t.name);Number.parseInt((a/this.yScale.step()).toString(),10)%2==1&&(o="even"),e=this.yScale.bandwidth()*this.yScale.paddingInner(),i=this.dims.width,n=this.yScale.bandwidth()+e,r=0,s=this.yScale(t.name)-e/2}return{name:t.name,class:o,height:n,width:i,x:r,y:s}})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["g","ngx-charts-grid-panel-series",""]],inputs:{data:"data",dims:"dims",xScale:"xScale",yScale:"yScale",orient:"orient"},features:[n.TTD],attrs:co,decls:1,vars:1,consts:[["ngx-charts-grid-panel","",3,"height","width","x","y","grid-panel","odd","even",4,"ngFor","ngForOf"],["ngx-charts-grid-panel","",3,"height","width","x","y"]],template:function(t,e){1&t&&n.YNc(0,ho,1,10,"g",0),2&t&&n.Q6J("ngForOf",e.gridPanels)},directives:[r.sg,oa],encapsulation:2,changeDetection:0}),t})(),la=(()=>{class t{constructor(){this.orientation="vertical"}ngOnChanges(t){this.x1="0%",this.x2="0%",this.y1="0%",this.y2="0%","horizontal"===this.orientation?this.x2="100%":"vertical"===this.orientation&&(this.y1="100%")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["g","ngx-charts-svg-linear-gradient",""]],inputs:{orientation:"orientation",name:"name",stops:"stops"},features:[n.TTD],attrs:uo,decls:2,vars:6,consts:[[3,"id"],[3,"stop-color","stop-opacity",4,"ngFor","ngForOf"]],template:function(t,e){1&t&&(n.O4$(),n.TgZ(0,"linearGradient",0),n.YNc(1,po,1,5,"stop",1),n.qZA()),2&t&&(n.Q6J("id",e.name),n.uIk("x1",e.x1)("y1",e.y1)("x2",e.x2)("y2",e.y2),n.xp6(1),n.Q6J("ngForOf",e.stops))},directives:[r.sg],encapsulation:2,changeDetection:0}),t})();"undefined"!=typeof window?sa=window:"undefined"!=typeof global&&(sa=global);let ca=(()=>{class t{constructor(t){this.cd=t,this.horizontal=!1,this.labelClick=new n.vpe,this.labelActivate=new n.vpe,this.labelDeactivate=new n.vpe,this.legendEntries=[]}ngOnChanges(t){this.update()}update(){this.cd.markForCheck(),this.legendEntries=this.getLegendEntries()}getLegendEntries(){const t=[];for(const e of this.data){const i=ia(e);-1===t.findIndex(t=>t.label===i)&&t.push({label:e,formattedLabel:i,color:this.colors.getColor(e)})}return t}isActive(t){return!!this.activeEntries&&void 0!==this.activeEntries.find(e=>t.label===e.name)}activate(t){this.labelActivate.emit(t)}deactivate(t){this.labelDeactivate.emit(t)}trackBy(t,e){return e.label}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.sBO))},t.\u0275cmp=n.Xpm({type:t,selectors:[["ngx-charts-legend"]],inputs:{horizontal:"horizontal",data:"data",title:"title",colors:"colors",height:"height",width:"width",activeEntries:"activeEntries"},outputs:{labelClick:"labelClick",labelActivate:"labelActivate",labelDeactivate:"labelDeactivate"},features:[n.TTD],decls:5,vars:9,consts:[["class","legend-title",4,"ngIf"],[1,"legend-wrap"],[1,"legend-labels"],["class","legend-label",4,"ngFor","ngForOf","ngForTrackBy"],[1,"legend-title"],[1,"legend-title-text"],[1,"legend-label"],[3,"label","formattedLabel","color","isActive","select","activate","deactivate"]],template:function(t,e){1&t&&(n.TgZ(0,"div"),n.YNc(1,fo,3,1,"header",0),n.TgZ(2,"div",1),n.TgZ(3,"ul",2),n.YNc(4,mo,2,4,"li",3),n.qZA(),n.qZA(),n.qZA()),2&t&&(n.Udp("width",e.width,"px"),n.xp6(1),n.Q6J("ngIf",(null==e.title?null:e.title.length)>0),n.xp6(2),n.Udp("max-height",e.height-45,"px"),n.ekj("horizontal-legend",e.horizontal),n.xp6(1),n.Q6J("ngForOf",e.legendEntries)("ngForTrackBy",e.trackBy))},directives:function(){return[r.O5,r.sg,ha]},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .legend-title{font-size:14px;font-weight:700;margin-bottom:5px;margin-left:10px;overflow:hidden;white-space:nowrap}.chart-legend li,.chart-legend ul{list-style:none;margin:0;padding:0}.chart-legend .horizontal-legend li{display:inline-block}.chart-legend .legend-wrap{width:calc(100% - 10px)}.chart-legend .legend-labels{background:rgba(0,0,0,.05);border-radius:3px;float:left;line-height:85%;list-style:none;overflow-x:hidden;overflow-y:auto;text-align:left;white-space:nowrap;width:100%}.chart-legend .legend-label{color:#afb7c8;cursor:pointer;font-size:90%;margin:8px}.chart-legend .legend-label:hover{color:#000;transition:.2s}.chart-legend .legend-label .active .legend-label-text{color:#000}.chart-legend .legend-label-color{border-radius:3px;color:#5b646b;display:inline-block;height:15px;margin-right:5px;width:15px}.chart-legend .legend-label-text{font-size:12px;line-height:15px;vertical-align:top;width:calc(100% - 20px)}.chart-legend .legend-label-text,.chart-legend .legend-title-text{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chart-legend .legend-title-text{line-height:16px;vertical-align:bottom}"],encapsulation:2,changeDetection:0}),t})(),ha=(()=>{class t{constructor(){this.isActive=!1,this.select=new n.vpe,this.activate=new n.vpe,this.deactivate=new n.vpe,this.toggle=new n.vpe}get trimmedLabel(){return this.formattedLabel||"(empty)"}onMouseEnter(){this.activate.emit({name:this.label})}onMouseLeave(){this.deactivate.emit({name:this.label})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["ngx-charts-legend-entry"]],hostBindings:function(t,e){1&t&&n.NdJ("mouseenter",function(){return e.onMouseEnter()})("mouseleave",function(){return e.onMouseLeave()})},inputs:{isActive:"isActive",color:"color",label:"label",formattedLabel:"formattedLabel"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",toggle:"toggle"},decls:4,vars:6,consts:[["tabindex","-1",3,"title","click"],[1,"legend-label-color",3,"click"],[1,"legend-label-text"]],template:function(t,e){1&t&&(n.TgZ(0,"span",0),n.NdJ("click",function(){return e.select.emit(e.formattedLabel)}),n.TgZ(1,"span",1),n.NdJ("click",function(){return e.toggle.emit(e.formattedLabel)}),n.qZA(),n.TgZ(2,"span",2),n._uU(3),n.qZA(),n.qZA()),2&t&&(n.ekj("active",e.isActive),n.Q6J("title",e.formattedLabel),n.xp6(1),n.Udp("background-color",e.color),n.xp6(2),n.hij(" ",e.trimmedLabel," "))},encapsulation:2,changeDetection:0}),t})(),ua=(()=>{class t{constructor(t){this.sanitizer=t,this.horizontal=!1}ngOnChanges(t){const e=this.gradientString(this.colors.range(),this.colors.domain());this.gradient=this.sanitizer.bypassSecurityTrustStyle(`linear-gradient(to ${this.horizontal?"right":"bottom"}, ${e})`)}gradientString(t,e){e.push(1);const i=[];return t.reverse().forEach((t,n)=>{i.push(`${t} ${Math.round(100*e[n])}%`)}),i.join(", ")}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(Is.H7))},t.\u0275cmp=n.Xpm({type:t,selectors:[["ngx-charts-scale-legend"]],inputs:{horizontal:"horizontal",valueRange:"valueRange",colors:"colors",height:"height",width:"width"},features:[n.TTD],decls:8,vars:10,consts:[[1,"scale-legend"],[1,"scale-legend-label"],[1,"scale-legend-wrap"]],template:function(t,e){1&t&&(n.TgZ(0,"div",0),n.TgZ(1,"div",1),n.TgZ(2,"span"),n._uU(3),n.qZA(),n.qZA(),n._UZ(4,"div",2),n.TgZ(5,"div",1),n.TgZ(6,"span"),n._uU(7),n.qZA(),n.qZA(),n.qZA()),2&t&&(n.Udp("height",e.horizontal?void 0:e.height,"px")("width",e.width,"px"),n.ekj("horizontal-legend",e.horizontal),n.xp6(3),n.Oqu(e.valueRange[1].toLocaleString()),n.xp6(1),n.Udp("background",e.gradient),n.xp6(3),n.Oqu(e.valueRange[0].toLocaleString()))},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .scale-legend{display:flex;flex-direction:column;text-align:center}.chart-legend .scale-legend-wrap{border-radius:5px;display:inline-block;flex:1;margin:0 auto;width:30px}.chart-legend .scale-legend-label{font-size:12px}.chart-legend .horizontal-legend.scale-legend{flex-direction:row}.chart-legend .horizontal-legend .scale-legend-wrap{height:30px;margin:0 16px;width:auto}"],encapsulation:2,changeDetection:0}),t})(),da=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[r.ez,Jo,ea],r.ez,Jo,ea]}),t})();function pa({width:t,height:e,margins:i,showXAxis:n=!1,showYAxis:r=!1,xAxisHeight:s=0,yAxisWidth:o=0,showXLabel:a=!1,showYLabel:l=!1,showLegend:c=!1,legendType:h="ordinal",legendPosition:u="right",columns:d=12}){let p=i[3],f=t,m=e-i[0]-i[2];if(c&&"right"===u&&(d-="ordinal"===h?2:1),f=f*d/12,f=f-i[1]-i[3],n&&(m-=5,m-=s,a)&&(m-=30),r&&(f-=5,f-=o,p+=o,p+=10,l)){const t=30;f-=t,p+=t}return f=Math.max(0,f),m=Math.max(0,m),{width:Math.floor(f),height:Math.floor(m),xOffset:Math.floor(p)}}let fa=[{name:"vivid",selectable:!0,group:"Ordinal",domain:["#647c8a","#3f51b5","#2196f3","#00b862","#afdf0a","#a7b61a","#f3e562","#ff9800","#ff5722","#ff4514"]},{name:"natural",selectable:!0,group:"Ordinal",domain:["#bf9d76","#e99450","#d89f59","#f2dfa7","#a5d7c6","#7794b1","#afafaf","#707160","#ba9383","#d9d5c3"]},{name:"cool",selectable:!0,group:"Ordinal",domain:["#a8385d","#7aa3e5","#a27ea8","#aae3f5","#adcded","#a95963","#8796c0","#7ed3ed","#50abcc","#ad6886"]},{name:"fire",selectable:!0,group:"Ordinal",domain:["#ff3d00","#bf360c","#ff8f00","#ff6f00","#ff5722","#e65100","#ffca28","#ffab00"]},{name:"solar",selectable:!0,group:"Continuous",domain:["#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"]},{name:"air",selectable:!0,group:"Continuous",domain:["#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"]},{name:"aqua",selectable:!0,group:"Continuous",domain:["#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"]},{name:"flame",selectable:!1,group:"Ordinal",domain:["#A10A28","#D3342D","#EF6D49","#FAAD67","#FDDE90","#DBED91","#A9D770","#6CBA67","#2C9653","#146738"]},{name:"ocean",selectable:!1,group:"Ordinal",domain:["#1D68FB","#33C0FC","#4AFFFE","#AFFFFF","#FFFC63","#FDBD2D","#FC8A25","#FA4F1E","#FA141B","#BA38D1"]},{name:"forest",selectable:!1,group:"Ordinal",domain:["#55C22D","#C1F33D","#3CC099","#AFFFFF","#8CFC9D","#76CFFA","#BA60FB","#EE6490","#C42A1C","#FC9F32"]},{name:"horizon",selectable:!1,group:"Ordinal",domain:["#2597FB","#65EBFD","#99FDD0","#FCEE4B","#FEFCFA","#FDD6E3","#FCB1A8","#EF6F7B","#CB96E8","#EFDEE0"]},{name:"neons",selectable:!1,group:"Ordinal",domain:["#FF3333","#FF33FF","#CC33FF","#0000FF","#33CCFF","#33FFFF","#33FF66","#CCFF33","#FFCC00","#FF6600"]},{name:"picnic",selectable:!1,group:"Ordinal",domain:["#FAC51D","#66BD6D","#FAA026","#29BB9C","#E96B56","#55ACD2","#B7332F","#2C83C9","#9166B8","#92E7E8"]},{name:"night",selectable:!1,group:"Ordinal",domain:["#2B1B5A","#501356","#183356","#28203F","#391B3C","#1E2B3C","#120634","#2D0432","#051932","#453080","#75267D","#2C507D","#4B3880","#752F7D","#35547D"]},{name:"nightLights",selectable:!1,group:"Ordinal",domain:["#4e31a5","#9c25a7","#3065ab","#57468b","#904497","#46648b","#32118d","#a00fb3","#1052a2","#6e51bd","#b63cc3","#6c97cb","#8671c1","#b455be","#7496c3"]}];class ma{constructor(t,e,i,n){"string"==typeof t&&(t=fa.find(e=>e.name===t)),this.colorDomain=t.domain,this.scaleType=e,this.domain=i,this.customColors=n,this.scale=this.generateColorScheme(t,e,this.domain)}generateColorScheme(t,e,i){let n;if("string"==typeof t&&(t=fa.find(e=>e.name===t)),"quantile"===e)n=us().range(t.domain).domain(i);else if("ordinal"===e)n=ls().range(t.domain).domain(i);else if("linear"===e){const e=[...t.domain];1===e.length&&(e.push(e[0]),this.colorDomain=e);const i=os(0,1,1/e.length);n=ss().domain(i).range(e)}return n}getColor(t){if(null==t)throw new Error("Value can not be null");if("linear"===this.scaleType){const e=ss().domain(this.domain).range([0,1]);return this.scale(e(t))}{if("function"==typeof this.customColors)return this.customColors(t);const e=t.toString();let i;return this.customColors&&this.customColors.length>0&&(i=this.customColors.find(t=>t.name.toLowerCase()===e.toLowerCase())),i?i.value:this.scale(t)}}getLinearGradientStops(t,e){void 0===e&&(e=this.domain[0]);const i=ss().domain(this.domain).range([0,1]),n=cs().domain(this.colorDomain).range([0,1]),r=this.getColor(t),s=i(e),o=this.getColor(e),a=i(t);let l=1,c=s;const h=[];for(h.push({color:o,offset:s,originalOffset:s,opacity:1});c=(a-n.bandwidth()).toFixed(4))break;h.push({color:t,offset:e,opacity:1}),c=e,l++}}if(h[h.length-1].offset<100&&h.push({color:r,offset:a,opacity:1}),a===s)h[0].offset=0,h[1].offset=100;else if(100!==h[h.length-1].offset)for(const u of h)u.offset=(u.offset-s)/(a-s)*100;return h}}let ga=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[da]]}),t})(),ya=(()=>{class t{constructor(t){this.roundEdges=!0,this.gradient=!1,this.offset=0,this.isActive=!1,this.animations=!0,this.noBarWhenZero=!0,this.select=new n.vpe,this.activate=new n.vpe,this.deactivate=new n.vpe,this.hasGradient=!1,this.hideBar=!1,this.element=t.nativeElement}ngOnChanges(t){t.roundEdges&&this.loadAnimation(),this.update()}update(){this.gradientId="grad"+ra().toString(),this.gradientFill=`url(#${this.gradientId})`,this.gradient||this.stops?(this.gradientStops=this.getGradient(),this.hasGradient=!0):this.hasGradient=!1,this.updatePathEl(),this.checkToHideBar()}loadAnimation(){this.path=this.getStartingPath(),setTimeout(this.update.bind(this),100)}updatePathEl(){const t=function(t){return"string"==typeof t?new gt([[document.querySelector(t)]],[document.documentElement]):new gt([[t]],mt)}(this.element).select(".bar"),e=this.getPath();this.animations?t.transition().duration(500).attr("d",e):t.attr("d",e)}getGradient(){return this.stops?this.stops:[{offset:0,color:this.fill,opacity:this.getStartOpacity()},{offset:100,color:this.fill,opacity:1}]}getStartingPath(){if(!this.animations)return this.getPath();let t,e=this.getRadius();return this.roundEdges?"vertical"===this.orientation?(e=Math.min(this.height,e),t=Vo(this.x,this.y+this.height,this.width,1,0,this.edges)):"horizontal"===this.orientation&&(e=Math.min(this.width,e),t=Vo(this.x,this.y,1,this.height,0,this.edges)):"vertical"===this.orientation?t=Vo(this.x,this.y+this.height,this.width,1,0,this.edges):"horizontal"===this.orientation&&(t=Vo(this.x,this.y,1,this.height,0,this.edges)),t}getPath(){let t,e=this.getRadius();return this.roundEdges?"vertical"===this.orientation?(e=Math.min(this.height,e),t=Vo(this.x,this.y,this.width,this.height,e,this.edges)):"horizontal"===this.orientation&&(e=Math.min(this.width,e),t=Vo(this.x,this.y,this.width,this.height,e,this.edges)):t=Vo(this.x,this.y,this.width,this.height,e,this.edges),t}getRadius(){let t=0;return this.roundEdges&&this.height>5&&this.width>5&&(t=Math.floor(Math.min(5,this.height/2,this.width/2))),t}getStartOpacity(){return this.roundEdges?.2:.5}get edges(){let t=[!1,!1,!1,!1];return this.roundEdges&&("vertical"===this.orientation?t=this.data.value>0?[!0,!0,!1,!1]:[!1,!1,!0,!0]:"horizontal"===this.orientation&&(t=this.data.value>0?[!1,!0,!1,!0]:[!0,!1,!0,!1])),t}onMouseEnter(){this.activate.emit(this.data)}onMouseLeave(){this.deactivate.emit(this.data)}checkToHideBar(){this.hideBar=this.noBarWhenZero&&("vertical"===this.orientation&&0===this.height||"horizontal"===this.orientation&&0===this.width)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq))},t.\u0275cmp=n.Xpm({type:t,selectors:[["g","ngx-charts-bar",""]],hostBindings:function(t,e){1&t&&n.NdJ("mouseenter",function(){return e.onMouseEnter()})("mouseleave",function(){return e.onMouseLeave()})},inputs:{roundEdges:"roundEdges",gradient:"gradient",offset:"offset",isActive:"isActive",animations:"animations",noBarWhenZero:"noBarWhenZero",fill:"fill",data:"data",width:"width",height:"height",x:"x",y:"y",orientation:"orientation",stops:"stops",ariaLabel:"ariaLabel"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[n.TTD],attrs:vo,decls:2,vars:8,consts:[[4,"ngIf"],["stroke","none","role","img","tabIndex","-1",1,"bar",3,"click"],["ngx-charts-svg-linear-gradient","",3,"orientation","name","stops"]],template:function(t,e){1&t&&(n.YNc(0,_o,2,3,"defs",0),n.O4$(),n.TgZ(1,"path",1),n.NdJ("click",function(){return e.select.emit(e.data)}),n.qZA()),2&t&&(n.Q6J("ngIf",e.hasGradient),n.xp6(1),n.ekj("active",e.isActive)("hidden",e.hideBar),n.uIk("d",e.path)("aria-label",e.ariaLabel)("fill",e.hasGradient?e.gradientFill:e.fill))},directives:[r.O5,la],encapsulation:2,changeDetection:0}),t})(),ba=(()=>{class t extends qo{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition="right",this.tooltipDisabled=!1,this.showGridLines=!0,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.barPadding=8,this.roundDomains=!1,this.roundEdges=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.activate=new n.vpe,this.deactivate=new n.vpe,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.dataLabelMaxHeight={negative:0,positive:0}}update(){super.update(),this.showDataLabel||(this.dataLabelMaxHeight={negative:0,positive:0}),this.margin=[10+this.dataLabelMaxHeight.positive,20,10+this.dataLabelMaxHeight.negative,20],this.dims=pa({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.formatDates(),this.showDataLabel&&(this.dims.height-=this.dataLabelMaxHeight.negative),this.xScale=this.getXScale(),this.yScale=this.getYScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]+this.dataLabelMaxHeight.negative})`}getXScale(){this.xDomain=this.getXDomain();const t=this.xDomain.length/(this.dims.width/this.barPadding+1);return cs().range([0,this.dims.width]).paddingInner(t).domain(this.xDomain)}getYScale(){this.yDomain=this.getYDomain();const t=ss().range([this.dims.height,0]).domain(this.yDomain);return this.roundDomains?t.nice():t}getXDomain(){return this.results.map(t=>t.label)}getYDomain(){const t=this.results.map(t=>t.value);let e=this.yScaleMin?Math.min(this.yScaleMin,...t):Math.min(0,...t);this.yAxisTicks&&!this.yAxisTicks.some(isNaN)&&(e=Math.min(e,...this.yAxisTicks));let i=this.yScaleMax?Math.max(this.yScaleMax,...t):Math.max(0,...t);return this.yAxisTicks&&!this.yAxisTicks.some(isNaN)&&(i=Math.max(i,...this.yAxisTicks)),[e,i]}onClick(t){this.select.emit(t)}setColors(){let t;t="ordinal"===this.schemeType?this.xDomain:this.yDomain,this.colors=new ma(this.scheme,this.schemeType,t,this.customColors)}getLegendOptions(){const t={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return"ordinal"===t.scaleType?(t.domain=this.xDomain,t.colors=this.colors,t.title=this.legendTitle):(t.domain=this.yDomain,t.colors=this.colors.scale),t}updateYAxisWidth({width:t}){this.yAxisWidth=t,this.update()}updateXAxisHeight({height:t}){this.xAxisHeight=t,this.update()}onDataLabelMaxHeightChanged(t){t.size.negative?this.dataLabelMaxHeight.negative=Math.max(this.dataLabelMaxHeight.negative,t.size.height):this.dataLabelMaxHeight.positive=Math.max(this.dataLabelMaxHeight.positive,t.size.height),t.index===this.results.length-1&&setTimeout(()=>this.update())}onActivate(t,e=!1){t=this.results.find(i=>e?i.label===t.name:i.name===t.name),this.activeEntries.findIndex(e=>e.name===t.name&&e.value===t.value&&e.series===t.series)>-1||(this.activeEntries=[t,...this.activeEntries],this.activate.emit({value:t,entries:this.activeEntries}))}onDeactivate(t,e=!1){t=this.results.find(i=>e?i.label===t.name:i.name===t.name);const i=this.activeEntries.findIndex(e=>e.name===t.name&&e.value===t.value&&e.series===t.series);this.activeEntries.splice(i,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:t,entries:this.activeEntries})}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=n.n5z(t)))(i||t)}}(),t.\u0275cmp=n.Xpm({type:t,selectors:[["ngx-charts-bar-vertical"]],contentQueries:function(t,e,i){if(1&t&&n.Suo(i,go,5),2&t){let t;n.iGM(t=n.CRH())&&(e.tooltipTemplate=t.first)}},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",tooltipDisabled:"tooltipDisabled",showGridLines:"showGridLines",activeEntries:"activeEntries",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",barPadding:"barPadding",roundDomains:"roundDomains",roundEdges:"roundEdges",showDataLabel:"showDataLabel",noBarWhenZero:"noBarWhenZero",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",gradient:"gradient",schemeType:"schemeType",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",yScaleMax:"yScaleMax",yScaleMin:"yScaleMin",dataLabelFormatting:"dataLabelFormatting"},outputs:{activate:"activate",deactivate:"deactivate"},features:[n.qOj],decls:5,vars:25,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"bar-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-series-vertical","",3,"xScale","yScale","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","showDataLabel","dataLabelFormatting","activeEntries","roundEdges","animations","noBarWhenZero","activate","deactivate","select","dataLabelHeightChanged"],["ngx-charts-x-axis","",3,"xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"]],template:function(t,e){1&t&&(n.TgZ(0,"ngx-charts-chart",0),n.NdJ("legendLabelClick",function(t){return e.onClick(t)})("legendLabelActivate",function(t){return e.onActivate(t,!0)})("legendLabelDeactivate",function(t){return e.onDeactivate(t,!0)}),n.O4$(),n.TgZ(1,"g",1),n.YNc(2,wo,1,10,"g",2),n.YNc(3,xo,1,9,"g",3),n.TgZ(4,"g",4),n.NdJ("activate",function(t){return e.onActivate(t)})("deactivate",function(t){return e.onDeactivate(t)})("select",function(t){return e.onClick(t)})("dataLabelHeightChanged",function(t){return e.onDataLabelMaxHeightChanged(t)}),n.qZA(),n.qZA(),n.qZA()),2&t&&(n.Q6J("view",n.WLB(22,yo,e.width,e.height))("showLegend",e.legend)("legendOptions",e.legendOptions)("activeEntries",e.activeEntries)("animations",e.animations),n.xp6(1),n.uIk("transform",e.transform),n.xp6(1),n.Q6J("ngIf",e.xAxis),n.xp6(1),n.Q6J("ngIf",e.yAxis),n.xp6(1),n.Q6J("xScale",e.xScale)("yScale",e.yScale)("colors",e.colors)("series",e.results)("dims",e.dims)("gradient",e.gradient)("tooltipDisabled",e.tooltipDisabled)("tooltipTemplate",e.tooltipTemplate)("showDataLabel",e.showDataLabel)("dataLabelFormatting",e.dataLabelFormatting)("activeEntries",e.activeEntries)("roundEdges",e.roundEdges)("animations",e.animations)("noBarWhenZero",e.noBarWhenZero))},directives:function(){return[Bo,r.O5,wa,jo,Wo]},styles:[bo],encapsulation:2,changeDetection:0}),t})(),va=(()=>{class t extends qo{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition="right",this.tooltipDisabled=!1,this.scaleType="ordinal",this.showGridLines=!0,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.groupPadding=16,this.barPadding=8,this.roundDomains=!1,this.roundEdges=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.activate=new n.vpe,this.deactivate=new n.vpe,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.dataLabelMaxHeight={negative:0,positive:0}}update(){super.update(),this.showDataLabel||(this.dataLabelMaxHeight={negative:0,positive:0}),this.margin=[10+this.dataLabelMaxHeight.positive,20,10+this.dataLabelMaxHeight.negative,20],this.dims=pa({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.showDataLabel&&(this.dims.height-=this.dataLabelMaxHeight.negative),this.formatDates(),this.groupDomain=this.getGroupDomain(),this.innerDomain=this.getInnerDomain(),this.valuesDomain=this.getValueDomain(),this.groupScale=this.getGroupScale(),this.innerScale=this.getInnerScale(),this.valueScale=this.getValueScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]+this.dataLabelMaxHeight.negative})`}onDataLabelMaxHeightChanged(t,e){t.size.negative?this.dataLabelMaxHeight.negative=Math.max(this.dataLabelMaxHeight.negative,t.size.height):this.dataLabelMaxHeight.positive=Math.max(this.dataLabelMaxHeight.positive,t.size.height),e===this.results.length-1&&setTimeout(()=>this.update())}getGroupScale(){const t=this.groupDomain.length/(this.dims.height/this.groupPadding+1);return cs().rangeRound([0,this.dims.width]).paddingInner(t).paddingOuter(t/2).domain(this.groupDomain)}getInnerScale(){const t=this.groupScale.bandwidth(),e=this.innerDomain.length/(t/this.barPadding+1);return cs().rangeRound([0,t]).paddingInner(e).domain(this.innerDomain)}getValueScale(){const t=ss().range([this.dims.height,0]).domain(this.valuesDomain);return this.roundDomains?t.nice():t}getGroupDomain(){const t=[];for(const e of this.results)t.includes(e.label)||t.push(e.label);return t}getInnerDomain(){const t=[];for(const e of this.results)for(const i of e.series)t.includes(i.label)||t.push(i.label);return t}getValueDomain(){const t=[];for(const e of this.results)for(const i of e.series)t.includes(i.value)||t.push(i.value);return[Math.min(0,...t),this.yScaleMax?Math.max(this.yScaleMax,...t):Math.max(0,...t)]}groupTransform(t){return`translate(${this.groupScale(t.label)}, 0)`}onClick(t,e){e&&(t.series=e.name),this.select.emit(t)}trackBy(t,e){return e.name}setColors(){let t;t="ordinal"===this.schemeType?this.innerDomain:this.valuesDomain,this.colors=new ma(this.scheme,this.schemeType,t,this.customColors)}getLegendOptions(){const t={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return"ordinal"===t.scaleType?(t.domain=this.innerDomain,t.colors=this.colors,t.title=this.legendTitle):(t.domain=this.valuesDomain,t.colors=this.colors.scale),t}updateYAxisWidth({width:t}){this.yAxisWidth=t,this.update()}updateXAxisHeight({height:t}){this.xAxisHeight=t,this.update()}onActivate(t,e,i=!1){const n=Object.assign({},t);e&&(n.series=e.name);const r=this.results.map(t=>t.series).flat().filter(t=>i?t.label===n.name:t.name===n.name&&t.series===n.series);this.activeEntries=[...r],this.activate.emit({value:n,entries:this.activeEntries})}onDeactivate(t,e,i=!1){const n=Object.assign({},t);e&&(n.series=e.name),this.activeEntries=this.activeEntries.filter(t=>i?t.label!==n.name:!(t.name===n.name&&t.series===n.series)),this.deactivate.emit({value:n,entries:this.activeEntries})}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=n.n5z(t)))(i||t)}}(),t.\u0275cmp=n.Xpm({type:t,selectors:[["ngx-charts-bar-vertical-2d"]],contentQueries:function(t,e,i){if(1&t&&n.Suo(i,go,5),2&t){let t;n.iGM(t=n.CRH())&&(e.tooltipTemplate=t.first)}},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",tooltipDisabled:"tooltipDisabled",scaleType:"scaleType",showGridLines:"showGridLines",activeEntries:"activeEntries",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",groupPadding:"groupPadding",barPadding:"barPadding",roundDomains:"roundDomains",roundEdges:"roundEdges",showDataLabel:"showDataLabel",noBarWhenZero:"noBarWhenZero",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",gradient:"gradient",schemeType:"schemeType",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",yScaleMax:"yScaleMax",dataLabelFormatting:"dataLabelFormatting"},outputs:{activate:"activate",deactivate:"deactivate"},features:[n.qOj],decls:6,vars:17,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelActivate","legendLabelDeactivate","legendLabelClick"],[1,"bar-chart","chart"],["ngx-charts-grid-panel-series","","orient","vertical",3,"xScale","yScale","data","dims"],["ngx-charts-x-axis","",3,"xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-series-vertical","",3,"activeEntries","xScale","yScale","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","showDataLabel","dataLabelFormatting","seriesName","roundEdges","animations","noBarWhenZero","select","activate","deactivate","dataLabelHeightChanged",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-x-axis","",3,"xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-series-vertical","",3,"activeEntries","xScale","yScale","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","showDataLabel","dataLabelFormatting","seriesName","roundEdges","animations","noBarWhenZero","select","activate","deactivate","dataLabelHeightChanged"]],template:function(t,e){1&t&&(n.TgZ(0,"ngx-charts-chart",0),n.NdJ("legendLabelActivate",function(t){return e.onActivate(t,void 0,!0)})("legendLabelDeactivate",function(t){return e.onDeactivate(t,void 0,!0)})("legendLabelClick",function(t){return e.onClick(t)}),n.O4$(),n.TgZ(1,"g",1),n._UZ(2,"g",2),n.YNc(3,Co,1,10,"g",3),n.YNc(4,Ao,1,9,"g",4),n.YNc(5,So,1,17,"g",5),n.qZA(),n.qZA()),2&t&&(n.Q6J("view",n.WLB(14,yo,e.width,e.height))("showLegend",e.legend)("legendOptions",e.legendOptions)("activeEntries",e.activeEntries)("animations",e.animations),n.xp6(1),n.uIk("transform",e.transform),n.xp6(1),n.Q6J("xScale",e.groupScale)("yScale",e.valueScale)("data",e.results)("dims",e.dims),n.xp6(1),n.Q6J("ngIf",e.xAxis),n.xp6(1),n.Q6J("ngIf",e.yAxis),n.xp6(1),n.Q6J("ngForOf",e.results)("ngForTrackBy",e.trackBy))},directives:function(){return[Bo,aa,r.O5,r.sg,jo,Wo,wa]},styles:[bo],encapsulation:2,data:{animation:[(0,s.X$)("animationState",[(0,s.eR)(":leave",[(0,s.oB)({opacity:1,transform:"*"}),(0,s.jt)(500,(0,s.oB)({opacity:0,transform:"scale(0)"}))])])]},changeDetection:0}),t})();var _a=function(t){return t.positive="positive",t.negative="negative",t}({});let wa=(()=>{class t{constructor(){this.type="standard",this.tooltipDisabled=!1,this.animations=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.select=new n.vpe,this.activate=new n.vpe,this.deactivate=new n.vpe,this.dataLabelHeightChanged=new n.vpe,this.barsForDataLabels=[]}ngOnChanges(t){this.update()}update(){let t;this.updateTooltipSettings(),this.series.length&&(t=this.xScale.bandwidth()),t=Math.round(t);const e=Math.max(this.yScale.domain()[0],0),i={[_a.positive]:0,[_a.negative]:0};let n,r=_a.positive;"normalized"===this.type&&(n=this.series.map(t=>t.value).reduce((t,e)=>t+e,0)),this.bars=this.series.map((s,o)=>{let a=s.value;const l=this.getLabel(s),c=ia(l);r=a>0?_a.positive:_a.negative;const h={value:a,label:l,roundEdges:this.roundEdges,data:s,width:t,formattedLabel:c,height:0,x:0,y:0};if("standard"===this.type)h.height=Math.abs(this.yScale(a)-this.yScale(e)),h.x=this.xScale(l),h.y=this.yScale(a<0?0:a);else if("stacked"===this.type){const t=i[r],e=t+a;i[r]+=a,h.height=this.yScale(t)-this.yScale(e),h.x=0,h.y=this.yScale(e),h.offset0=t,h.offset1=e}else if("normalized"===this.type){let t=i[r],e=t+a;i[r]+=a,n>0?(t=100*t/n,e=100*e/n):(t=0,e=0),h.height=this.yScale(t)-this.yScale(e),h.x=0,h.y=this.yScale(e),h.offset0=t,h.offset1=e,a=(e-t).toFixed(2)+"%"}"ordinal"===this.colors.scaleType?h.color=this.colors.getColor(l):"standard"===this.type?(h.color=this.colors.getColor(a),h.gradientStops=this.colors.getLinearGradientStops(a)):(h.color=this.colors.getColor(h.offset1),h.gradientStops=this.colors.getLinearGradientStops(h.offset1,h.offset0));let u=c;return h.ariaLabel=c+" "+a.toLocaleString(),this.seriesName&&(u=`${this.seriesName} \u2022 ${c}`,h.data.series=this.seriesName,h.ariaLabel=this.seriesName+" "+h.ariaLabel),h.tooltipText=this.tooltipDisabled?void 0:`\n ${function(t){return t.toLocaleString().replace(/[&'`"<>]/g,t=>({"&":"&","'":"'","`":"`",'"':""","<":"<",">":">"}[t]))}(u)}\n ${this.dataLabelFormatting?this.dataLabelFormatting(a):a.toLocaleString()}\n `,h}),this.updateDataLabels()}updateDataLabels(){if("stacked"===this.type){this.barsForDataLabels=[];const t={};t.series=this.seriesName;const e=this.series.map(t=>t.value).reduce((t,e)=>e>0?t+e:t,0),i=this.series.map(t=>t.value).reduce((t,e)=>e<0?t+e:t,0);t.total=e+i,t.x=0,t.y=0,t.height=this.yScale(t.total>0?e:i),t.width=this.xScale.bandwidth(),this.barsForDataLabels.push(t)}else this.barsForDataLabels=this.series.map(t=>{const e={};return e.series=this.seriesName?this.seriesName:t.label,e.total=t.value,e.x=this.xScale(t.label),e.y=this.yScale(0),e.height=this.yScale(e.total)-this.yScale(0),e.width=this.xScale.bandwidth(),e})}updateTooltipSettings(){this.tooltipPlacement=this.tooltipDisabled?void 0:"top",this.tooltipType=this.tooltipDisabled?void 0:"tooltip"}isActive(t){return!!this.activeEntries&&void 0!==this.activeEntries.find(e=>t.name===e.name&&t.series===e.series)}onClick(t){this.select.emit(t)}getLabel(t){return t.label?t.label:t.name}trackBy(t,e){return e.label}trackDataLabelBy(t,e){return t+"#"+e.series+"#"+e.total}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["g","ngx-charts-series-vertical",""]],inputs:{type:"type",tooltipDisabled:"tooltipDisabled",animations:"animations",showDataLabel:"showDataLabel",noBarWhenZero:"noBarWhenZero",dims:"dims",series:"series",xScale:"xScale",yScale:"yScale",colors:"colors",gradient:"gradient",activeEntries:"activeEntries",seriesName:"seriesName",tooltipTemplate:"tooltipTemplate",roundEdges:"roundEdges",dataLabelFormatting:"dataLabelFormatting"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",dataLabelHeightChanged:"dataLabelHeightChanged"},features:[n.TTD],attrs:Eo,decls:2,vars:3,consts:[["ngx-charts-bar","","ngx-tooltip","",3,"width","height","x","y","fill","stops","data","orientation","roundEdges","gradient","ariaLabel","isActive","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","noBarWhenZero","animations","select","activate","deactivate",4,"ngFor","ngForOf","ngForTrackBy"],[4,"ngIf"],["ngx-charts-bar","","ngx-tooltip","",3,"width","height","x","y","fill","stops","data","orientation","roundEdges","gradient","ariaLabel","isActive","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","noBarWhenZero","animations","select","activate","deactivate"],["ngx-charts-bar-label","",3,"barX","barY","barWidth","barHeight","value","valueFormatting","orientation","dimensionsChanged",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-bar-label","",3,"barX","barY","barWidth","barHeight","value","valueFormatting","orientation","dimensionsChanged"]],template:function(t,e){1&t&&(n.YNc(0,ko,1,22,"g",0),n.YNc(1,Mo,2,2,"g",1)),2&t&&(n.Q6J("ngForOf",e.bars)("ngForTrackBy",e.trackBy),n.xp6(1),n.Q6J("ngIf",e.showDataLabel))},directives:function(){return[r.sg,r.O5,ya,ta,xa]},encapsulation:2,data:{animation:[(0,s.X$)("animationState",[(0,s.eR)(":leave",[(0,s.oB)({opacity:1}),(0,s.jt)(500,(0,s.oB)({opacity:0}))])])]},changeDetection:0}),t})(),xa=(()=>{class t{constructor(t){this.dimensionsChanged=new n.vpe,this.horizontalPadding=2,this.verticalPadding=5,this.element=t.nativeElement}ngOnChanges(t){this.update()}getSize(){return{height:this.element.getBoundingClientRect().height,width:this.element.getBoundingClientRect().width,negative:this.value<0}}ngAfterViewInit(){this.dimensionsChanged.emit(this.getSize())}update(){this.formatedValue=this.valueFormatting?this.valueFormatting(this.value):ia(this.value),"horizontal"===this.orientation?(this.x=this.barX+this.barWidth,this.value<0?(this.x=this.x-this.horizontalPadding,this.textAnchor="end"):(this.x=this.x+this.horizontalPadding,this.textAnchor="start"),this.y=this.barY+this.barHeight/2):(this.x=this.barX+this.barWidth/2,this.y=this.barY+this.barHeight,this.value<0?(this.y=this.y+this.verticalPadding,this.textAnchor="end"):(this.y=this.y-this.verticalPadding,this.textAnchor="start"),this.transform=`rotate(-45, ${this.x} , ${this.y})`)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq))},t.\u0275cmp=n.Xpm({type:t,selectors:[["g","ngx-charts-bar-label",""]],inputs:{value:"value",valueFormatting:"valueFormatting",barX:"barX",barY:"barY",barWidth:"barWidth",barHeight:"barHeight",orientation:"orientation"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[n.TTD],attrs:Lo,decls:2,vars:5,consts:[["alignment-baseline","middle",1,"textDataLabel"]],template:function(t,e){1&t&&(n.O4$(),n.TgZ(0,"text",0),n._uU(1),n.qZA()),2&t&&(n.uIk("text-anchor",e.textAnchor)("transform",e.transform)("x",e.x)("y",e.y),n.xp6(1),n.hij(" ",e.formatedValue," "))},styles:[".textDataLabel[_ngcontent-%COMP%]{font-size:11px}"],changeDetection:0}),t})(),Ca=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[da]]}),t})(),Aa=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[da]]}),t})(),Sa=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[da]]}),t})(),Ea=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[da]]}),t})();Math;let ka=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[da]]}),t})(),Ta=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[da,ka,Ea]]}),t})(),Ma=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[da]]}),t})(),La=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[da]]}),t})(),Ia=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[da,ka,Ca]]}),t})(),Oa=(()=>{class t{constructor(){"undefined"!=typeof SVGElement&&void 0===SVGElement.prototype.contains&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[da,ga,Ca,Aa,Sa,Ea,Ta,Ma,ka,La,Ia]}),t})()},3600:(t,e,i)=>{"use strict";i.d(e,{V:()=>o,N:()=>a});var n=i(9176),r=i(1572);const s=["qrcElement"];let o=(()=>{class t{constructor(t){this.renderer=t,this.colordark="",this.colorlight="",this.level="",this.hidetitle=!1,this.size=0,this.usesvg=!1,this.allowEmptyString=!1,this.qrdata="",this.colorDark="#000000ff",this.colorLight="#ffffffff",this.cssClass="qrcode",this.elementType="canvas",this.errorCorrectionLevel="M",this.margin=4,this.scale=4,this.width=10,""!==this.colordark&&console.warn("[angularx-qrcode] colordark is deprecated, use colorDark."),""!==this.colorlight&&console.warn("[angularx-qrcode] colorlight is deprecated, use colorLight."),""!==this.level&&console.warn("[angularx-qrcode] level is deprecated, use errorCorrectionLevel."),!1!==this.hidetitle&&console.warn("[angularx-qrcode] hidetitle is deprecated."),0!==this.size&&console.warn("[angularx-qrcode] size is deprecated, use `width`. Defaults to 10."),!1!==this.usesvg&&console.warn("[angularx-qrcode] usesvg is deprecated, use [elementType]=\"'svg'\".")}ngOnChanges(){this.createQRCode()}isValidQrCodeText(t){return!1===this.allowEmptyString?!(void 0===t||""===t||"null"===t||null===t):!(void 0===t)}toDataURL(){return new Promise((t,e)=>{(0,n.hz)(this.qrdata,{color:{dark:this.colorDark,light:this.colorLight},errorCorrectionLevel:this.errorCorrectionLevel,margin:this.margin,scale:this.scale,version:this.version,width:this.width},(i,n)=>{i?e(i):t(n)})})}toCanvas(t){return new Promise((e,i)=>{(0,n.rT)(t,this.qrdata,{color:{dark:this.colorDark,light:this.colorLight},errorCorrectionLevel:this.errorCorrectionLevel,margin:this.margin,scale:this.scale,version:this.version,width:this.width},t=>{t?i(t):e("success")})})}toSVG(){return new Promise((t,e)=>{(0,n.toString)(this.qrdata,{color:{dark:this.colorDark,light:this.colorLight},errorCorrectionLevel:this.errorCorrectionLevel,margin:this.margin,scale:this.scale,type:"svg",version:this.version,width:this.width},(i,n)=>{i?e(i):t(n)})})}renderElement(t){for(const e of this.qrcElement.nativeElement.childNodes)this.renderer.removeChild(this.qrcElement.nativeElement,e);this.renderer.appendChild(this.qrcElement.nativeElement,t)}createQRCode(){this.version&&this.version>40?(console.warn("[angularx-qrcode] max value for `version` is 40"),this.version=40):this.version&&this.version<1?(console.warn("[angularx-qrcode]`min value for `version` is 1"),this.version=1):void 0!==this.version&&isNaN(this.version)&&(console.warn("[angularx-qrcode] version should be a number, defaulting to auto."),this.version=void 0);try{if(!this.isValidQrCodeText(this.qrdata))throw new Error('[angularx-qrcode] Field `qrdata` is empty, set`allowEmptyString="true"` to overwrite this behaviour.');let t;switch(this.elementType){case"canvas":t=this.renderer.createElement("canvas"),this.toCanvas(t).then(()=>{this.renderElement(t)}).catch(t=>{console.error("[angularx-qrcode] canvas error: ",t)});break;case"svg":t=this.renderer.createElement("div"),this.toSVG().then(e=>{this.renderer.setProperty(t,"innerHTML",e);const i=t.firstChild;this.renderer.setAttribute(i,"height",`${this.width}`),this.renderer.setAttribute(i,"width",`${this.width}`),this.renderElement(i)}).catch(t=>{console.error("[angularx-qrcode] svg error: ",t)});break;case"url":case"img":default:t=this.renderer.createElement("img"),this.toDataURL().then(e=>{t.setAttribute("src",e),this.renderElement(t)}).catch(t=>{console.error("[angularx-qrcode] img/url error: ",t)})}}catch(t){console.error("[angularx-qrcode] Error generating QR Code: ",t.message)}}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.Qsj))},t.\u0275cmp=r.Xpm({type:t,selectors:[["qrcode"]],viewQuery:function(t,e){if(1&t&&r.Gf(s,7),2&t){let t;r.iGM(t=r.CRH())&&(e.qrcElement=t.first)}},inputs:{colordark:"colordark",colorlight:"colorlight",level:"level",hidetitle:"hidetitle",size:"size",usesvg:"usesvg",allowEmptyString:"allowEmptyString",qrdata:"qrdata",colorDark:"colorDark",colorLight:"colorLight",cssClass:"cssClass",elementType:"elementType",errorCorrectionLevel:"errorCorrectionLevel",margin:"margin",scale:"scale",width:"width",version:"version"},features:[r.TTD],decls:2,vars:2,consts:[["qrcElement",""]],template:function(t,e){1&t&&r._UZ(0,"div",null,0),2&t&&r.Tol(e.cssClass)},encapsulation:2,changeDetection:0}),t})(),a=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:[]}),t})()},6309:(t,e,i)=>{"use strict";const n=e;n.bignum=i(5514),n.define=i(4493).define,n.base=i(8887),n.constants=i(5537),n.decoders=i(9127),n.encoders=i(3939)},4493:(t,e,i)=>{"use strict";const n=i(3939),r=i(9127),s=i(5457);function o(t,e){this.name=t,this.body=e,this.decoders={},this.encoders={}}e.define=function(t,e){return new o(t,e)},o.prototype._createNamed=function(t){const e=this.name;function i(t){this._initNamed(t,e)}return s(i,t),i.prototype._initNamed=function(e,i){t.call(this,e,i)},new i(this)},o.prototype._getDecoder=function(t){return this.decoders.hasOwnProperty(t=t||"der")||(this.decoders[t]=this._createNamed(r[t])),this.decoders[t]},o.prototype.decode=function(t,e,i){return this._getDecoder(e).decode(t,i)},o.prototype._getEncoder=function(t){return this.encoders.hasOwnProperty(t=t||"der")||(this.encoders[t]=this._createNamed(n[t])),this.encoders[t]},o.prototype.encode=function(t,e,i){return this._getEncoder(e).encode(t,i)}},3914:(t,e,i)=>{"use strict";const n=i(5457),r=i(1034).b,s=i(5968).Buffer;function o(t,e){r.call(this,e),s.isBuffer(t)?(this.base=t,this.offset=0,this.length=t.length):this.error("Input not Buffer")}function a(t,e){if(Array.isArray(t))this.length=0,this.value=t.map(function(t){return a.isEncoderBuffer(t)||(t=new a(t,e)),this.length+=t.length,t},this);else if("number"==typeof t){if(!(0<=t&&t<=255))return e.error("non-byte EncoderBuffer value");this.value=t,this.length=1}else if("string"==typeof t)this.value=t,this.length=s.byteLength(t);else{if(!s.isBuffer(t))return e.error("Unsupported type: "+typeof t);this.value=t,this.length=t.length}}n(o,r),e.C=o,o.isDecoderBuffer=function(t){return t instanceof o||"object"==typeof t&&s.isBuffer(t.base)&&"DecoderBuffer"===t.constructor.name&&"number"==typeof t.offset&&"number"==typeof t.length&&"function"==typeof t.save&&"function"==typeof t.restore&&"function"==typeof t.isEmpty&&"function"==typeof t.readUInt8&&"function"==typeof t.skip&&"function"==typeof t.raw},o.prototype.save=function(){return{offset:this.offset,reporter:r.prototype.save.call(this)}},o.prototype.restore=function(t){const e=new o(this.base);return e.offset=t.offset,e.length=this.offset,this.offset=t.offset,r.prototype.restore.call(this,t.reporter),e},o.prototype.isEmpty=function(){return this.offset===this.length},o.prototype.readUInt8=function(t){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(t||"DecoderBuffer overrun")},o.prototype.skip=function(t,e){if(!(this.offset+t<=this.length))return this.error(e||"DecoderBuffer overrun");const i=new o(this.base);return i._reporterState=this._reporterState,i.offset=this.offset,i.length=this.offset+t,this.offset+=t,i},o.prototype.raw=function(t){return this.base.slice(t?t.offset:this.offset,this.length)},e.R=a,a.isEncoderBuffer=function(t){return t instanceof a||"object"==typeof t&&"EncoderBuffer"===t.constructor.name&&"number"==typeof t.length&&"function"==typeof t.join},a.prototype.join=function(t,e){return t||(t=s.alloc(this.length)),e||(e=0),0===this.length||(Array.isArray(this.value)?this.value.forEach(function(i){i.join(t,e),e+=i.length}):("number"==typeof this.value?t[e]=this.value:"string"==typeof this.value?t.write(this.value,e):s.isBuffer(this.value)&&this.value.copy(t,e),e+=this.length)),t}},8887:(t,e,i)=>{"use strict";const n=e;n.Reporter=i(1034).b,n.DecoderBuffer=i(3914).C,n.EncoderBuffer=i(3914).R,n.Node=i(5502)},5502:(t,e,i)=>{"use strict";const n=i(1034).b,r=i(3914).R,s=i(3914).C,o=i(523),a=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],l=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(a);function c(t,e,i){const n={};this._baseState=n,n.name=i,n.enc=t,n.parent=e||null,n.children=null,n.tag=null,n.args=null,n.reverseArgs=null,n.choice=null,n.optional=!1,n.any=!1,n.obj=!1,n.use=null,n.useDecoder=null,n.key=null,n.default=null,n.explicit=null,n.implicit=null,n.contains=null,n.parent||(n.children=[],this._wrap())}t.exports=c;const h=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];c.prototype.clone=function(){const t=this._baseState,e={};h.forEach(function(i){e[i]=t[i]});const i=new this.constructor(e.parent);return i._baseState=e,i},c.prototype._wrap=function(){const t=this._baseState;l.forEach(function(e){this[e]=function(){const i=new this.constructor(this);return t.children.push(i),i[e].apply(i,arguments)}},this)},c.prototype._init=function(t){const e=this._baseState;o(null===e.parent),t.call(this),e.children=e.children.filter(function(t){return t._baseState.parent===this},this),o.equal(e.children.length,1,"Root node can have only one child")},c.prototype._useArgs=function(t){const e=this._baseState,i=t.filter(function(t){return t instanceof this.constructor},this);t=t.filter(function(t){return!(t instanceof this.constructor)},this),0!==i.length&&(o(null===e.children),e.children=i,i.forEach(function(t){t._baseState.parent=this},this)),0!==t.length&&(o(null===e.args),e.args=t,e.reverseArgs=t.map(function(t){if("object"!=typeof t||t.constructor!==Object)return t;const e={};return Object.keys(t).forEach(function(i){i==(0|i)&&(i|=0),e[t[i]]=i}),e}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(t){c.prototype[t]=function(){throw new Error(t+" not implemented for encoding: "+this._baseState.enc)}}),a.forEach(function(t){c.prototype[t]=function(){const e=this._baseState,i=Array.prototype.slice.call(arguments);return o(null===e.tag),e.tag=t,this._useArgs(i),this}}),c.prototype.use=function(t){o(t);const e=this._baseState;return o(null===e.use),e.use=t,this},c.prototype.optional=function(){return this._baseState.optional=!0,this},c.prototype.def=function(t){const e=this._baseState;return o(null===e.default),e.default=t,e.optional=!0,this},c.prototype.explicit=function(t){const e=this._baseState;return o(null===e.explicit&&null===e.implicit),e.explicit=t,this},c.prototype.implicit=function(t){const e=this._baseState;return o(null===e.explicit&&null===e.implicit),e.implicit=t,this},c.prototype.obj=function(){const t=this._baseState,e=Array.prototype.slice.call(arguments);return t.obj=!0,0!==e.length&&this._useArgs(e),this},c.prototype.key=function(t){const e=this._baseState;return o(null===e.key),e.key=t,this},c.prototype.any=function(){return this._baseState.any=!0,this},c.prototype.choice=function(t){const e=this._baseState;return o(null===e.choice),e.choice=t,this._useArgs(Object.keys(t).map(function(e){return t[e]})),this},c.prototype.contains=function(t){const e=this._baseState;return o(null===e.use),e.contains=t,this},c.prototype._decode=function(t,e){const i=this._baseState;if(null===i.parent)return t.wrapResult(i.children[0]._decode(t,e));let n,r=i.default,o=!0,a=null;if(null!==i.key&&(a=t.enterKey(i.key)),i.optional){let n=null;if(null!==i.explicit?n=i.explicit:null!==i.implicit?n=i.implicit:null!==i.tag&&(n=i.tag),null!==n||i.any){if(o=this._peekTag(t,n,i.any),t.isError(o))return o}else{const n=t.save();try{null===i.choice?this._decodeGeneric(i.tag,t,e):this._decodeChoice(t,e),o=!0}catch(l){o=!1}t.restore(n)}}if(i.obj&&o&&(n=t.enterObject()),o){if(null!==i.explicit){const e=this._decodeTag(t,i.explicit);if(t.isError(e))return e;t=e}const n=t.offset;if(null===i.use&&null===i.choice){let e;i.any&&(e=t.save());const n=this._decodeTag(t,null!==i.implicit?i.implicit:i.tag,i.any);if(t.isError(n))return n;i.any?r=t.raw(e):t=n}if(e&&e.track&&null!==i.tag&&e.track(t.path(),n,t.length,"tagged"),e&&e.track&&null!==i.tag&&e.track(t.path(),t.offset,t.length,"content"),i.any||(r=null===i.choice?this._decodeGeneric(i.tag,t,e):this._decodeChoice(t,e)),t.isError(r))return r;if(i.any||null!==i.choice||null===i.children||i.children.forEach(function(i){i._decode(t,e)}),i.contains&&("octstr"===i.tag||"bitstr"===i.tag)){const n=new s(r);r=this._getUse(i.contains,t._reporterState.obj)._decode(n,e)}}return i.obj&&o&&(r=t.leaveObject(n)),null===i.key||null===r&&!0!==o?null!==a&&t.exitKey(a):t.leaveKey(a,i.key,r),r},c.prototype._decodeGeneric=function(t,e,i){const n=this._baseState;return"seq"===t||"set"===t?null:"seqof"===t||"setof"===t?this._decodeList(e,t,n.args[0],i):/str$/.test(t)?this._decodeStr(e,t,i):"objid"===t&&n.args?this._decodeObjid(e,n.args[0],n.args[1],i):"objid"===t?this._decodeObjid(e,null,null,i):"gentime"===t||"utctime"===t?this._decodeTime(e,t,i):"null_"===t?this._decodeNull(e,i):"bool"===t?this._decodeBool(e,i):"objDesc"===t?this._decodeStr(e,t,i):"int"===t||"enum"===t?this._decodeInt(e,n.args&&n.args[0],i):null!==n.use?this._getUse(n.use,e._reporterState.obj)._decode(e,i):e.error("unknown tag: "+t)},c.prototype._getUse=function(t,e){const i=this._baseState;return i.useDecoder=this._use(t,e),o(null===i.useDecoder._baseState.parent),i.useDecoder=i.useDecoder._baseState.children[0],i.implicit!==i.useDecoder._baseState.implicit&&(i.useDecoder=i.useDecoder.clone(),i.useDecoder._baseState.implicit=i.implicit),i.useDecoder},c.prototype._decodeChoice=function(t,e){const i=this._baseState;let n=null,r=!1;return Object.keys(i.choice).some(function(s){const o=t.save(),a=i.choice[s];try{const i=a._decode(t,e);if(t.isError(i))return!1;n={type:s,value:i},r=!0}catch(l){return t.restore(o),!1}return!0},this),r?n:t.error("Choice not matched")},c.prototype._createEncoderBuffer=function(t){return new r(t,this.reporter)},c.prototype._encode=function(t,e,i){const n=this._baseState;if(null!==n.default&&n.default===t)return;const r=this._encodeValue(t,e,i);return void 0===r||this._skipDefault(r,e,i)?void 0:r},c.prototype._encodeValue=function(t,e,i){const r=this._baseState;if(null===r.parent)return r.children[0]._encode(t,e||new n);let s=null;if(this.reporter=e,r.optional&&void 0===t){if(null===r.default)return;t=r.default}let o=null,a=!1;if(r.any)s=this._createEncoderBuffer(t);else if(r.choice)s=this._encodeChoice(t,e);else if(r.contains)o=this._getUse(r.contains,i)._encode(t,e),a=!0;else if(r.children)o=r.children.map(function(i){if("null_"===i._baseState.tag)return i._encode(null,e,t);if(null===i._baseState.key)return e.error("Child should have a key");const n=e.enterKey(i._baseState.key);if("object"!=typeof t)return e.error("Child expected, but input is not object");const r=i._encode(t[i._baseState.key],e,t);return e.leaveKey(n),r},this).filter(function(t){return t}),o=this._createEncoderBuffer(o);else if("seqof"===r.tag||"setof"===r.tag){if(!r.args||1!==r.args.length)return e.error("Too many args for : "+r.tag);if(!Array.isArray(t))return e.error("seqof/setof, but data is not Array");const i=this.clone();i._baseState.implicit=null,o=this._createEncoderBuffer(t.map(function(i){return this._getUse(this._baseState.args[0],t)._encode(i,e)},i))}else null!==r.use?s=this._getUse(r.use,i)._encode(t,e):(o=this._encodePrimitive(r.tag,t),a=!0);if(!r.any&&null===r.choice){const t=null!==r.implicit?r.implicit:r.tag,i=null===r.implicit?"universal":"context";null===t?null===r.use&&e.error("Tag could be omitted only for .use()"):null===r.use&&(s=this._encodeComposite(t,a,i,o))}return null!==r.explicit&&(s=this._encodeComposite(r.explicit,!1,"context",s)),s},c.prototype._encodeChoice=function(t,e){const i=this._baseState,n=i.choice[t.type];return n||o(!1,t.type+" not found in "+JSON.stringify(Object.keys(i.choice))),n._encode(t.value,e)},c.prototype._encodePrimitive=function(t,e){const i=this._baseState;if(/str$/.test(t))return this._encodeStr(e,t);if("objid"===t&&i.args)return this._encodeObjid(e,i.reverseArgs[0],i.args[1]);if("objid"===t)return this._encodeObjid(e,null,null);if("gentime"===t||"utctime"===t)return this._encodeTime(e,t);if("null_"===t)return this._encodeNull();if("int"===t||"enum"===t)return this._encodeInt(e,i.args&&i.reverseArgs[0]);if("bool"===t)return this._encodeBool(e);if("objDesc"===t)return this._encodeStr(e,t);throw new Error("Unsupported tag: "+t)},c.prototype._isNumstr=function(t){return/^[0-9 ]*$/.test(t)},c.prototype._isPrintstr=function(t){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(t)}},1034:(t,e,i)=>{"use strict";const n=i(5457);function r(t){this._reporterState={obj:null,path:[],options:t||{},errors:[]}}function s(t,e){this.path=t,this.rethrow(e)}e.b=r,r.prototype.isError=function(t){return t instanceof s},r.prototype.save=function(){const t=this._reporterState;return{obj:t.obj,pathLen:t.path.length}},r.prototype.restore=function(t){const e=this._reporterState;e.obj=t.obj,e.path=e.path.slice(0,t.pathLen)},r.prototype.enterKey=function(t){return this._reporterState.path.push(t)},r.prototype.exitKey=function(t){const e=this._reporterState;e.path=e.path.slice(0,t-1)},r.prototype.leaveKey=function(t,e,i){const n=this._reporterState;this.exitKey(t),null!==n.obj&&(n.obj[e]=i)},r.prototype.path=function(){return this._reporterState.path.join("/")},r.prototype.enterObject=function(){const t=this._reporterState,e=t.obj;return t.obj={},e},r.prototype.leaveObject=function(t){const e=this._reporterState,i=e.obj;return e.obj=t,i},r.prototype.error=function(t){let e;const i=this._reporterState,n=t instanceof s;if(e=n?t:new s(i.path.map(function(t){return"["+JSON.stringify(t)+"]"}).join(""),t.message||t,t.stack),!i.options.partial)throw e;return n||i.errors.push(e),e},r.prototype.wrapResult=function(t){const e=this._reporterState;return e.options.partial?{result:this.isError(t)?null:t,errors:e.errors}:t},n(s,Error),s.prototype.rethrow=function(t){if(this.message=t+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,s),!this.stack)try{throw new Error(this.message)}catch(e){this.stack=e.stack}return this}},901:(t,e)=>{"use strict";function i(t){const e={};return Object.keys(t).forEach(function(i){(0|i)==i&&(i|=0),e[t[i]]=i}),e}e.tagClass={0:"universal",1:"application",2:"context",3:"private"},e.tagClassByName=i(e.tagClass),e.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},e.tagByName=i(e.tag)},5537:(t,e,i)=>{"use strict";const n=e;n._reverse=function(t){const e={};return Object.keys(t).forEach(function(i){(0|i)==i&&(i|=0),e[t[i]]=i}),e},n.der=i(901)},6797:(t,e,i)=>{"use strict";const n=i(5457),r=i(5514),s=i(3914).C,o=i(5502),a=i(901);function l(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new c,this.tree._init(t.body)}function c(t){o.call(this,"der",t)}function h(t,e){let i=t.readUInt8(e);if(t.isError(i))return i;const n=a.tagClass[i>>6],r=0==(32&i);if(31==(31&i)){let n=i;for(i=0;128==(128&n);){if(n=t.readUInt8(e),t.isError(n))return n;i<<=7,i|=127&n}}else i&=31;return{cls:n,primitive:r,tag:i,tagStr:a.tag[i]}}function u(t,e,i){let n=t.readUInt8(i);if(t.isError(n))return n;if(!e&&128===n)return null;if(0==(128&n))return n;const r=127&n;if(r>4)return t.error("length octect is too long");n=0;for(let s=0;s{"use strict";const n=e;n.der=i(6797),n.pem=i(124)},124:(t,e,i)=>{"use strict";const n=i(5457),r=i(5968).Buffer,s=i(6797);function o(t){s.call(this,t),this.enc="pem"}n(o,s),t.exports=o,o.prototype.decode=function(t,e){const i=t.toString().split(/[\r\n]+/g),n=e.label.toUpperCase(),o=/^-----(BEGIN|END) ([^-]+)-----$/;let a=-1,l=-1;for(let r=0;r{"use strict";const n=i(5457),r=i(5968).Buffer,s=i(5502),o=i(901);function a(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new l,this.tree._init(t.body)}function l(t){s.call(this,"der",t)}function c(t){return t<10?"0"+t:t}t.exports=a,a.prototype.encode=function(t,e){return this.tree._encode(t,e).join()},n(l,s),l.prototype._encodeComposite=function(t,e,i,n){const s=function(t,e,i,n){let r;if("seqof"===t?t="seq":"setof"===t&&(t="set"),o.tagByName.hasOwnProperty(t))r=o.tagByName[t];else{if("number"!=typeof t||(0|t)!==t)return n.error("Unknown tag: "+t);r=t}return r>=31?n.error("Multi-octet tag encoding unsupported"):(e||(r|=32),r|=o.tagClassByName[i||"universal"]<<6,r)}(t,e,i,this.reporter);if(n.length<128){const t=r.alloc(2);return t[0]=s,t[1]=n.length,this._createEncoderBuffer([t,n])}let a=1;for(let r=n.length;r>=256;r>>=8)a++;const l=r.alloc(2+a);l[0]=s,l[1]=128|a;for(let r=1+a,o=n.length;o>0;r--,o>>=8)l[r]=255&o;return this._createEncoderBuffer([l,n])},l.prototype._encodeStr=function(t,e){if("bitstr"===e)return this._createEncoderBuffer([0|t.unused,t.data]);if("bmpstr"===e){const e=r.alloc(2*t.length);for(let i=0;i=40)return this.reporter.error("Second objid identifier OOB");t.splice(0,2,40*t[0]+t[1])}let n=0;for(let r=0;r=128;e>>=7)n++}const s=r.alloc(n);let o=s.length-1;for(let r=t.length-1;r>=0;r--){let e=t[r];for(s[o--]=127&e;(e>>=7)>0;)s[o--]=128|127&e}return this._createEncoderBuffer(s)},l.prototype._encodeTime=function(t,e){let i;const n=new Date(t);return"gentime"===e?i=[c(n.getUTCFullYear()),c(n.getUTCMonth()+1),c(n.getUTCDate()),c(n.getUTCHours()),c(n.getUTCMinutes()),c(n.getUTCSeconds()),"Z"].join(""):"utctime"===e?i=[c(n.getUTCFullYear()%100),c(n.getUTCMonth()+1),c(n.getUTCDate()),c(n.getUTCHours()),c(n.getUTCMinutes()),c(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+e+" time is not supported yet"),this._encodeStr(i,"octstr")},l.prototype._encodeNull=function(){return this._createEncoderBuffer("")},l.prototype._encodeInt=function(t,e){if("string"==typeof t){if(!e)return this.reporter.error("String int or enum given, but no values map");if(!e.hasOwnProperty(t))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(t));t=e[t]}if("number"!=typeof t&&!r.isBuffer(t)){const e=t.toArray();!t.sign&&128&e[0]&&e.unshift(0),t=r.from(e)}if(r.isBuffer(t)){let e=t.length;0===t.length&&e++;const i=r.alloc(e);return t.copy(i),0===t.length&&(i[0]=0),this._createEncoderBuffer(i)}if(t<128)return this._createEncoderBuffer(t);if(t<256)return this._createEncoderBuffer([0,t]);let i=1;for(let r=t;r>=256;r>>=8)i++;const n=new Array(i);for(let r=n.length-1;r>=0;r--)n[r]=255&t,t>>=8;return 128&n[0]&&n.unshift(0),this._createEncoderBuffer(r.from(n))},l.prototype._encodeBool=function(t){return this._createEncoderBuffer(t?255:0)},l.prototype._use=function(t,e){return"function"==typeof t&&(t=t(e)),t._getEncoder("der").tree},l.prototype._skipDefault=function(t,e,i){const n=this._baseState;let r;if(null===n.default)return!1;const s=t.join();if(void 0===n.defaultBuffer&&(n.defaultBuffer=this._encodeValue(n.default,e,i).join()),s.length!==n.defaultBuffer.length)return!1;for(r=0;r{"use strict";const n=e;n.der=i(1965),n.pem=i(2191)},2191:(t,e,i)=>{"use strict";const n=i(5457),r=i(1965);function s(t){r.call(this,t),this.enc="pem"}n(s,r),t.exports=s,s.prototype.encode=function(t,e){const i=r.prototype.encode.call(this,t).toString("base64"),n=["-----BEGIN "+e.label+"-----"];for(let r=0;r=65&&i<=70?i-55:i>=97&&i<=102?i-87:i-48&15}function l(t,e,i){var n=a(t,i);return i-1>=e&&(n|=a(t,i-1)<<4),n}function c(t,e,i,n){for(var r=0,s=Math.min(t.length,i),o=e;o=49?a-49+10:a>=17?a-17+10:a}return r}s.isBN=function(t){return t instanceof s||null!==t&&"object"==typeof t&&t.constructor.wordSize===s.wordSize&&Array.isArray(t.words)},s.max=function(t,e){return t.cmp(e)>0?t:e},s.min=function(t,e){return t.cmp(e)<0?t:e},s.prototype._init=function(t,e,i){if("number"==typeof t)return this._initNumber(t,e,i);if("object"==typeof t)return this._initArray(t,e,i);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var r=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(r++,this.negative=1),r=0;r-=3)this.words[s]|=(o=t[r]|t[r-1]<<8|t[r-2]<<16)<>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);else if("le"===i)for(r=0,s=0;r>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);return this.strip()},s.prototype._parseHex=function(t,e,i){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n=e;n-=2)r=l(t,e,n)<=18?(s-=18,this.words[o+=1]|=r>>>26):s+=8;else for(n=(t.length-e)%2==0?e+1:e;n=18?(s-=18,this.words[o+=1]|=r>>>26):s+=8;this.strip()},s.prototype._parseBase=function(t,e,i){this.words=[0],this.length=1;for(var n=0,r=1;r<=67108863;r*=e)n++;n--,r=r/e|0;for(var s=t.length-i,o=s%n,a=Math.min(s,s-o)+i,l=0,h=i;h1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?""};var h=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],u=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(t,e,i){i.negative=e.negative^t.negative;var n=t.length+e.length|0;i.length=n,n=n-1|0;var r=0|t.words[0],s=0|e.words[0],o=r*s,a=o/67108864|0;i.words[0]=67108863&o;for(var l=1;l>>26,h=67108863&a,u=Math.min(l,e.length-1),d=Math.max(0,l-t.length+1);d<=u;d++)c+=(o=(r=0|t.words[l-d|0])*(s=0|e.words[d])+h)/67108864|0,h=67108863&o;i.words[l]=0|h,a=0|c}return 0!==a?i.words[l]=0|a:i.length--,i.strip()}s.prototype.toString=function(t,e){var i;if(e=0|e||1,16===(t=t||10)||"hex"===t){i="";for(var r=0,s=0,o=0;o>>24-r&16777215)||o!==this.length-1?h[6-l.length]+l+i:l+i,(r+=2)>=26&&(r-=26,o--)}for(0!==s&&(i=s.toString(16)+i);i.length%e!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(t===(0|t)&&t>=2&&t<=36){var c=u[t],p=d[t];i="";var f=this.clone();for(f.negative=0;!f.isZero();){var m=f.modn(p).toString(t);i=(f=f.idivn(p)).isZero()?m+i:h[c-m.length]+m+i}for(this.isZero()&&(i="0"+i);i.length%e!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}n(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(t,e){return n(void 0!==o),this.toArrayLike(o,t,e)},s.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},s.prototype.toArrayLike=function(t,e,i){var r=this.byteLength(),s=i||Math.max(1,r);n(r<=s,"byte array longer than desired length"),n(s>0,"Requested array length <= 0"),this.strip();var o,a,l="le"===e,c=new t(s),h=this.clone();if(l){for(a=0;!h.isZero();a++)o=h.andln(255),h.iushrn(8),c[a]=o;for(;a=4096&&(i+=13,e>>>=13),e>=64&&(i+=7,e>>>=7),e>=8&&(i+=4,e>>>=4),e>=2&&(i+=2,e>>>=2),i+e},s.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,i=0;return 0==(8191&e)&&(i+=13,e>>>=13),0==(127&e)&&(i+=7,e>>>=7),0==(15&e)&&(i+=4,e>>>=4),0==(3&e)&&(i+=2,e>>>=2),0==(1&e)&&i++,i},s.prototype.bitLength=function(){var t=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+t},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},s.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},s.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var i=0;it.length?this.clone().iand(t):t.clone().iand(this)},s.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},s.prototype.iuxor=function(t){var e,i;this.length>t.length?(e=this,i=t):(e=t,i=this);for(var n=0;nt.length?this.clone().ixor(t):t.clone().ixor(this)},s.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},s.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),i=t%26;this._expand(e),i>0&&e--;for(var r=0;r0&&(this.words[r]=~this.words[r]&67108863>>26-i),this.strip()},s.prototype.notn=function(t){return this.clone().inotn(t)},s.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var i=t/26|0,r=t%26;return this._expand(i+1),this.words[i]=e?this.words[i]|1<t.length?(i=this,n=t):(i=t,n=this);for(var r=0,s=0;s>>26;for(;0!==r&&s>>26;if(this.length=i.length,0!==r)this.words[this.length]=r,this.length++;else if(i!==this)for(;st.length?this.clone().iadd(t):t.clone().iadd(this)},s.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,n,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(i=this,n=t):(i=t,n=this);for(var s=0,o=0;o>26,this.words[o]=67108863&e;for(;0!==s&&o>26,this.words[o]=67108863&e;if(0===s&&o>>13,p=0|o[1],f=8191&p,m=p>>>13,g=0|o[2],y=8191&g,b=g>>>13,v=0|o[3],_=8191&v,w=v>>>13,x=0|o[4],C=8191&x,A=x>>>13,S=0|o[5],E=8191&S,k=S>>>13,T=0|o[6],M=8191&T,L=T>>>13,I=0|o[7],O=8191&I,D=I>>>13,R=0|o[8],N=8191&R,P=R>>>13,F=0|o[9],Z=8191&F,B=F>>>13,U=0|a[0],q=8191&U,z=U>>>13,H=0|a[1],Y=8191&H,G=H>>>13,j=0|a[2],V=8191&j,Q=j>>>13,W=0|a[3],J=8191&W,X=W>>>13,K=0|a[4],$=8191&K,tt=K>>>13,et=0|a[5],it=8191&et,nt=et>>>13,rt=0|a[6],st=8191&rt,ot=rt>>>13,at=0|a[7],lt=8191&at,ct=at>>>13,ht=0|a[8],ut=8191&ht,dt=ht>>>13,pt=0|a[9],ft=8191&pt,mt=pt>>>13;i.negative=t.negative^e.negative,i.length=19;var gt=(c+(n=Math.imul(u,q))|0)+((8191&(r=(r=Math.imul(u,z))+Math.imul(d,q)|0))<<13)|0;c=((s=Math.imul(d,z))+(r>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(f,q),r=(r=Math.imul(f,z))+Math.imul(m,q)|0,s=Math.imul(m,z);var yt=(c+(n=n+Math.imul(u,Y)|0)|0)+((8191&(r=(r=r+Math.imul(u,G)|0)+Math.imul(d,Y)|0))<<13)|0;c=((s=s+Math.imul(d,G)|0)+(r>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(y,q),r=(r=Math.imul(y,z))+Math.imul(b,q)|0,s=Math.imul(b,z),n=n+Math.imul(f,Y)|0,r=(r=r+Math.imul(f,G)|0)+Math.imul(m,Y)|0,s=s+Math.imul(m,G)|0;var bt=(c+(n=n+Math.imul(u,V)|0)|0)+((8191&(r=(r=r+Math.imul(u,Q)|0)+Math.imul(d,V)|0))<<13)|0;c=((s=s+Math.imul(d,Q)|0)+(r>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(_,q),r=(r=Math.imul(_,z))+Math.imul(w,q)|0,s=Math.imul(w,z),n=n+Math.imul(y,Y)|0,r=(r=r+Math.imul(y,G)|0)+Math.imul(b,Y)|0,s=s+Math.imul(b,G)|0,n=n+Math.imul(f,V)|0,r=(r=r+Math.imul(f,Q)|0)+Math.imul(m,V)|0,s=s+Math.imul(m,Q)|0;var vt=(c+(n=n+Math.imul(u,J)|0)|0)+((8191&(r=(r=r+Math.imul(u,X)|0)+Math.imul(d,J)|0))<<13)|0;c=((s=s+Math.imul(d,X)|0)+(r>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(C,q),r=(r=Math.imul(C,z))+Math.imul(A,q)|0,s=Math.imul(A,z),n=n+Math.imul(_,Y)|0,r=(r=r+Math.imul(_,G)|0)+Math.imul(w,Y)|0,s=s+Math.imul(w,G)|0,n=n+Math.imul(y,V)|0,r=(r=r+Math.imul(y,Q)|0)+Math.imul(b,V)|0,s=s+Math.imul(b,Q)|0,n=n+Math.imul(f,J)|0,r=(r=r+Math.imul(f,X)|0)+Math.imul(m,J)|0,s=s+Math.imul(m,X)|0;var _t=(c+(n=n+Math.imul(u,$)|0)|0)+((8191&(r=(r=r+Math.imul(u,tt)|0)+Math.imul(d,$)|0))<<13)|0;c=((s=s+Math.imul(d,tt)|0)+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(E,q),r=(r=Math.imul(E,z))+Math.imul(k,q)|0,s=Math.imul(k,z),n=n+Math.imul(C,Y)|0,r=(r=r+Math.imul(C,G)|0)+Math.imul(A,Y)|0,s=s+Math.imul(A,G)|0,n=n+Math.imul(_,V)|0,r=(r=r+Math.imul(_,Q)|0)+Math.imul(w,V)|0,s=s+Math.imul(w,Q)|0,n=n+Math.imul(y,J)|0,r=(r=r+Math.imul(y,X)|0)+Math.imul(b,J)|0,s=s+Math.imul(b,X)|0,n=n+Math.imul(f,$)|0,r=(r=r+Math.imul(f,tt)|0)+Math.imul(m,$)|0,s=s+Math.imul(m,tt)|0;var wt=(c+(n=n+Math.imul(u,it)|0)|0)+((8191&(r=(r=r+Math.imul(u,nt)|0)+Math.imul(d,it)|0))<<13)|0;c=((s=s+Math.imul(d,nt)|0)+(r>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(M,q),r=(r=Math.imul(M,z))+Math.imul(L,q)|0,s=Math.imul(L,z),n=n+Math.imul(E,Y)|0,r=(r=r+Math.imul(E,G)|0)+Math.imul(k,Y)|0,s=s+Math.imul(k,G)|0,n=n+Math.imul(C,V)|0,r=(r=r+Math.imul(C,Q)|0)+Math.imul(A,V)|0,s=s+Math.imul(A,Q)|0,n=n+Math.imul(_,J)|0,r=(r=r+Math.imul(_,X)|0)+Math.imul(w,J)|0,s=s+Math.imul(w,X)|0,n=n+Math.imul(y,$)|0,r=(r=r+Math.imul(y,tt)|0)+Math.imul(b,$)|0,s=s+Math.imul(b,tt)|0,n=n+Math.imul(f,it)|0,r=(r=r+Math.imul(f,nt)|0)+Math.imul(m,it)|0,s=s+Math.imul(m,nt)|0;var xt=(c+(n=n+Math.imul(u,st)|0)|0)+((8191&(r=(r=r+Math.imul(u,ot)|0)+Math.imul(d,st)|0))<<13)|0;c=((s=s+Math.imul(d,ot)|0)+(r>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(O,q),r=(r=Math.imul(O,z))+Math.imul(D,q)|0,s=Math.imul(D,z),n=n+Math.imul(M,Y)|0,r=(r=r+Math.imul(M,G)|0)+Math.imul(L,Y)|0,s=s+Math.imul(L,G)|0,n=n+Math.imul(E,V)|0,r=(r=r+Math.imul(E,Q)|0)+Math.imul(k,V)|0,s=s+Math.imul(k,Q)|0,n=n+Math.imul(C,J)|0,r=(r=r+Math.imul(C,X)|0)+Math.imul(A,J)|0,s=s+Math.imul(A,X)|0,n=n+Math.imul(_,$)|0,r=(r=r+Math.imul(_,tt)|0)+Math.imul(w,$)|0,s=s+Math.imul(w,tt)|0,n=n+Math.imul(y,it)|0,r=(r=r+Math.imul(y,nt)|0)+Math.imul(b,it)|0,s=s+Math.imul(b,nt)|0,n=n+Math.imul(f,st)|0,r=(r=r+Math.imul(f,ot)|0)+Math.imul(m,st)|0,s=s+Math.imul(m,ot)|0;var Ct=(c+(n=n+Math.imul(u,lt)|0)|0)+((8191&(r=(r=r+Math.imul(u,ct)|0)+Math.imul(d,lt)|0))<<13)|0;c=((s=s+Math.imul(d,ct)|0)+(r>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(N,q),r=(r=Math.imul(N,z))+Math.imul(P,q)|0,s=Math.imul(P,z),n=n+Math.imul(O,Y)|0,r=(r=r+Math.imul(O,G)|0)+Math.imul(D,Y)|0,s=s+Math.imul(D,G)|0,n=n+Math.imul(M,V)|0,r=(r=r+Math.imul(M,Q)|0)+Math.imul(L,V)|0,s=s+Math.imul(L,Q)|0,n=n+Math.imul(E,J)|0,r=(r=r+Math.imul(E,X)|0)+Math.imul(k,J)|0,s=s+Math.imul(k,X)|0,n=n+Math.imul(C,$)|0,r=(r=r+Math.imul(C,tt)|0)+Math.imul(A,$)|0,s=s+Math.imul(A,tt)|0,n=n+Math.imul(_,it)|0,r=(r=r+Math.imul(_,nt)|0)+Math.imul(w,it)|0,s=s+Math.imul(w,nt)|0,n=n+Math.imul(y,st)|0,r=(r=r+Math.imul(y,ot)|0)+Math.imul(b,st)|0,s=s+Math.imul(b,ot)|0,n=n+Math.imul(f,lt)|0,r=(r=r+Math.imul(f,ct)|0)+Math.imul(m,lt)|0,s=s+Math.imul(m,ct)|0;var At=(c+(n=n+Math.imul(u,ut)|0)|0)+((8191&(r=(r=r+Math.imul(u,dt)|0)+Math.imul(d,ut)|0))<<13)|0;c=((s=s+Math.imul(d,dt)|0)+(r>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(Z,q),r=(r=Math.imul(Z,z))+Math.imul(B,q)|0,s=Math.imul(B,z),n=n+Math.imul(N,Y)|0,r=(r=r+Math.imul(N,G)|0)+Math.imul(P,Y)|0,s=s+Math.imul(P,G)|0,n=n+Math.imul(O,V)|0,r=(r=r+Math.imul(O,Q)|0)+Math.imul(D,V)|0,s=s+Math.imul(D,Q)|0,n=n+Math.imul(M,J)|0,r=(r=r+Math.imul(M,X)|0)+Math.imul(L,J)|0,s=s+Math.imul(L,X)|0,n=n+Math.imul(E,$)|0,r=(r=r+Math.imul(E,tt)|0)+Math.imul(k,$)|0,s=s+Math.imul(k,tt)|0,n=n+Math.imul(C,it)|0,r=(r=r+Math.imul(C,nt)|0)+Math.imul(A,it)|0,s=s+Math.imul(A,nt)|0,n=n+Math.imul(_,st)|0,r=(r=r+Math.imul(_,ot)|0)+Math.imul(w,st)|0,s=s+Math.imul(w,ot)|0,n=n+Math.imul(y,lt)|0,r=(r=r+Math.imul(y,ct)|0)+Math.imul(b,lt)|0,s=s+Math.imul(b,ct)|0,n=n+Math.imul(f,ut)|0,r=(r=r+Math.imul(f,dt)|0)+Math.imul(m,ut)|0,s=s+Math.imul(m,dt)|0;var St=(c+(n=n+Math.imul(u,ft)|0)|0)+((8191&(r=(r=r+Math.imul(u,mt)|0)+Math.imul(d,ft)|0))<<13)|0;c=((s=s+Math.imul(d,mt)|0)+(r>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(Z,Y),r=(r=Math.imul(Z,G))+Math.imul(B,Y)|0,s=Math.imul(B,G),n=n+Math.imul(N,V)|0,r=(r=r+Math.imul(N,Q)|0)+Math.imul(P,V)|0,s=s+Math.imul(P,Q)|0,n=n+Math.imul(O,J)|0,r=(r=r+Math.imul(O,X)|0)+Math.imul(D,J)|0,s=s+Math.imul(D,X)|0,n=n+Math.imul(M,$)|0,r=(r=r+Math.imul(M,tt)|0)+Math.imul(L,$)|0,s=s+Math.imul(L,tt)|0,n=n+Math.imul(E,it)|0,r=(r=r+Math.imul(E,nt)|0)+Math.imul(k,it)|0,s=s+Math.imul(k,nt)|0,n=n+Math.imul(C,st)|0,r=(r=r+Math.imul(C,ot)|0)+Math.imul(A,st)|0,s=s+Math.imul(A,ot)|0,n=n+Math.imul(_,lt)|0,r=(r=r+Math.imul(_,ct)|0)+Math.imul(w,lt)|0,s=s+Math.imul(w,ct)|0,n=n+Math.imul(y,ut)|0,r=(r=r+Math.imul(y,dt)|0)+Math.imul(b,ut)|0,s=s+Math.imul(b,dt)|0;var Et=(c+(n=n+Math.imul(f,ft)|0)|0)+((8191&(r=(r=r+Math.imul(f,mt)|0)+Math.imul(m,ft)|0))<<13)|0;c=((s=s+Math.imul(m,mt)|0)+(r>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(Z,V),r=(r=Math.imul(Z,Q))+Math.imul(B,V)|0,s=Math.imul(B,Q),n=n+Math.imul(N,J)|0,r=(r=r+Math.imul(N,X)|0)+Math.imul(P,J)|0,s=s+Math.imul(P,X)|0,n=n+Math.imul(O,$)|0,r=(r=r+Math.imul(O,tt)|0)+Math.imul(D,$)|0,s=s+Math.imul(D,tt)|0,n=n+Math.imul(M,it)|0,r=(r=r+Math.imul(M,nt)|0)+Math.imul(L,it)|0,s=s+Math.imul(L,nt)|0,n=n+Math.imul(E,st)|0,r=(r=r+Math.imul(E,ot)|0)+Math.imul(k,st)|0,s=s+Math.imul(k,ot)|0,n=n+Math.imul(C,lt)|0,r=(r=r+Math.imul(C,ct)|0)+Math.imul(A,lt)|0,s=s+Math.imul(A,ct)|0,n=n+Math.imul(_,ut)|0,r=(r=r+Math.imul(_,dt)|0)+Math.imul(w,ut)|0,s=s+Math.imul(w,dt)|0;var kt=(c+(n=n+Math.imul(y,ft)|0)|0)+((8191&(r=(r=r+Math.imul(y,mt)|0)+Math.imul(b,ft)|0))<<13)|0;c=((s=s+Math.imul(b,mt)|0)+(r>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(Z,J),r=(r=Math.imul(Z,X))+Math.imul(B,J)|0,s=Math.imul(B,X),n=n+Math.imul(N,$)|0,r=(r=r+Math.imul(N,tt)|0)+Math.imul(P,$)|0,s=s+Math.imul(P,tt)|0,n=n+Math.imul(O,it)|0,r=(r=r+Math.imul(O,nt)|0)+Math.imul(D,it)|0,s=s+Math.imul(D,nt)|0,n=n+Math.imul(M,st)|0,r=(r=r+Math.imul(M,ot)|0)+Math.imul(L,st)|0,s=s+Math.imul(L,ot)|0,n=n+Math.imul(E,lt)|0,r=(r=r+Math.imul(E,ct)|0)+Math.imul(k,lt)|0,s=s+Math.imul(k,ct)|0,n=n+Math.imul(C,ut)|0,r=(r=r+Math.imul(C,dt)|0)+Math.imul(A,ut)|0,s=s+Math.imul(A,dt)|0;var Tt=(c+(n=n+Math.imul(_,ft)|0)|0)+((8191&(r=(r=r+Math.imul(_,mt)|0)+Math.imul(w,ft)|0))<<13)|0;c=((s=s+Math.imul(w,mt)|0)+(r>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(Z,$),r=(r=Math.imul(Z,tt))+Math.imul(B,$)|0,s=Math.imul(B,tt),n=n+Math.imul(N,it)|0,r=(r=r+Math.imul(N,nt)|0)+Math.imul(P,it)|0,s=s+Math.imul(P,nt)|0,n=n+Math.imul(O,st)|0,r=(r=r+Math.imul(O,ot)|0)+Math.imul(D,st)|0,s=s+Math.imul(D,ot)|0,n=n+Math.imul(M,lt)|0,r=(r=r+Math.imul(M,ct)|0)+Math.imul(L,lt)|0,s=s+Math.imul(L,ct)|0,n=n+Math.imul(E,ut)|0,r=(r=r+Math.imul(E,dt)|0)+Math.imul(k,ut)|0,s=s+Math.imul(k,dt)|0;var Mt=(c+(n=n+Math.imul(C,ft)|0)|0)+((8191&(r=(r=r+Math.imul(C,mt)|0)+Math.imul(A,ft)|0))<<13)|0;c=((s=s+Math.imul(A,mt)|0)+(r>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(Z,it),r=(r=Math.imul(Z,nt))+Math.imul(B,it)|0,s=Math.imul(B,nt),n=n+Math.imul(N,st)|0,r=(r=r+Math.imul(N,ot)|0)+Math.imul(P,st)|0,s=s+Math.imul(P,ot)|0,n=n+Math.imul(O,lt)|0,r=(r=r+Math.imul(O,ct)|0)+Math.imul(D,lt)|0,s=s+Math.imul(D,ct)|0,n=n+Math.imul(M,ut)|0,r=(r=r+Math.imul(M,dt)|0)+Math.imul(L,ut)|0,s=s+Math.imul(L,dt)|0;var Lt=(c+(n=n+Math.imul(E,ft)|0)|0)+((8191&(r=(r=r+Math.imul(E,mt)|0)+Math.imul(k,ft)|0))<<13)|0;c=((s=s+Math.imul(k,mt)|0)+(r>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,n=Math.imul(Z,st),r=(r=Math.imul(Z,ot))+Math.imul(B,st)|0,s=Math.imul(B,ot),n=n+Math.imul(N,lt)|0,r=(r=r+Math.imul(N,ct)|0)+Math.imul(P,lt)|0,s=s+Math.imul(P,ct)|0,n=n+Math.imul(O,ut)|0,r=(r=r+Math.imul(O,dt)|0)+Math.imul(D,ut)|0,s=s+Math.imul(D,dt)|0;var It=(c+(n=n+Math.imul(M,ft)|0)|0)+((8191&(r=(r=r+Math.imul(M,mt)|0)+Math.imul(L,ft)|0))<<13)|0;c=((s=s+Math.imul(L,mt)|0)+(r>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(Z,lt),r=(r=Math.imul(Z,ct))+Math.imul(B,lt)|0,s=Math.imul(B,ct),n=n+Math.imul(N,ut)|0,r=(r=r+Math.imul(N,dt)|0)+Math.imul(P,ut)|0,s=s+Math.imul(P,dt)|0;var Ot=(c+(n=n+Math.imul(O,ft)|0)|0)+((8191&(r=(r=r+Math.imul(O,mt)|0)+Math.imul(D,ft)|0))<<13)|0;c=((s=s+Math.imul(D,mt)|0)+(r>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(Z,ut),r=(r=Math.imul(Z,dt))+Math.imul(B,ut)|0,s=Math.imul(B,dt);var Dt=(c+(n=n+Math.imul(N,ft)|0)|0)+((8191&(r=(r=r+Math.imul(N,mt)|0)+Math.imul(P,ft)|0))<<13)|0;c=((s=s+Math.imul(P,mt)|0)+(r>>>13)|0)+(Dt>>>26)|0,Dt&=67108863;var Rt=(c+(n=Math.imul(Z,ft))|0)+((8191&(r=(r=Math.imul(Z,mt))+Math.imul(B,ft)|0))<<13)|0;return c=((s=Math.imul(B,mt))+(r>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,l[0]=gt,l[1]=yt,l[2]=bt,l[3]=vt,l[4]=_t,l[5]=wt,l[6]=xt,l[7]=Ct,l[8]=At,l[9]=St,l[10]=Et,l[11]=kt,l[12]=Tt,l[13]=Mt,l[14]=Lt,l[15]=It,l[16]=Ot,l[17]=Dt,l[18]=Rt,0!==c&&(l[19]=c,i.length++),i};function m(t,e,i){return(new g).mulp(t,e,i)}function g(t,e){this.x=t,this.y=e}Math.imul||(f=p),s.prototype.mulTo=function(t,e){var i=this.length+t.length;return 10===this.length&&10===t.length?f(this,t,e):i<63?p(this,t,e):i<1024?function(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var n=0,r=0,s=0;s>>26)|0)>>>26,o&=67108863}i.words[s]=a,n=o,o=r}return 0!==n?i.words[s]=n:i.length--,i.strip()}(this,t,e):m(this,t,e)},g.prototype.makeRBT=function(t){for(var e=new Array(t),i=s.prototype._countBits(t)-1,n=0;n>=1;return n},g.prototype.permute=function(t,e,i,n,r,s){for(var o=0;o>>=1)r++;return 1<>>=13),s>>>=13;for(o=2*e;o>=26,e+=r/67108864|0,e+=s>>>26,this.words[i]=67108863&s}return 0!==e&&(this.words[i]=e,this.length++),this},s.prototype.muln=function(t){return this.clone().imuln(t)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),i=0;i>>n}return e}(t);if(0===e.length)return new s(1);for(var i=this,n=0;n=0);var e,i=t%26,r=(t-i)/26,s=67108863>>>26-i<<26-i;if(0!==i){var o=0;for(e=0;e>>26-i}o&&(this.words[e]=o,this.length++)}if(0!==r){for(e=this.length-1;e>=0;e--)this.words[e+r]=this.words[e];for(e=0;e=0),r=e?(e-e%26)/26:0;var s=t%26,o=Math.min((t-s)/26,this.length),a=67108863^67108863>>>s<o)for(this.length-=o,c=0;c=0&&(0!==h||c>=r);c--){var u=0|this.words[c];this.words[c]=h<<26-s|u>>>s,h=u&a}return l&&0!==h&&(l.words[l.length++]=h),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(t,e,i){return n(0===this.negative),this.iushrn(t,e,i)},s.prototype.shln=function(t){return this.clone().ishln(t)},s.prototype.ushln=function(t){return this.clone().iushln(t)},s.prototype.shrn=function(t){return this.clone().ishrn(t)},s.prototype.ushrn=function(t){return this.clone().iushrn(t)},s.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,i=(t-e)/26;return!(this.length<=i||!(this.words[i]&1<=0);var e=t%26,i=(t-e)/26;return n(0===this.negative,"imaskn works only with positive numbers"),this.length<=i?this:(0!==e&&i++,this.length=Math.min(i,this.length),0!==e&&(this.words[this.length-1]&=67108863^67108863>>>e<=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},s.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(a/67108864|0),this.words[r+i]=67108863&s}for(;r>26,this.words[r+i]=67108863&s;if(0===o)return this.strip();for(n(-1===o),o=0,r=0;r>26,this.words[r]=67108863&s;return this.negative=1,this.strip()},s.prototype._wordDiv=function(t,e){var i,n=this.clone(),r=t,o=0|r.words[r.length-1];0!=(i=26-this._countBits(o))&&(r=r.ushln(i),n.iushln(i),o=0|r.words[r.length-1]);var a,l=n.length-r.length;if("mod"!==e){(a=new s(null)).length=l+1,a.words=new Array(a.length);for(var c=0;c=0;u--){var d=67108864*(0|n.words[r.length+u])+(0|n.words[r.length+u-1]);for(d=Math.min(d/o|0,67108863),n._ishlnsubmul(r,d,u);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(r,1,u),n.isZero()||(n.negative^=1);a&&(a.words[u]=d)}return a&&a.strip(),n.strip(),"div"!==e&&0!==i&&n.iushrn(i),{div:a||null,mod:n}},s.prototype.divmod=function(t,e,i){return n(!t.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(r=a.div.neg()),"div"!==e&&(o=a.mod.neg(),i&&0!==o.negative&&o.iadd(t)),{div:r,mod:o}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(r=a.div.neg()),{div:r,mod:a.mod}):0!=(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(o=a.mod.neg(),i&&0!==o.negative&&o.isub(t)),{div:a.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new s(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new s(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new s(this.modn(t.words[0]))}:this._wordDiv(t,e);var r,o,a},s.prototype.div=function(t){return this.divmod(t,"div",!1).div},s.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},s.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},s.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var i=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),r=t.andln(1),s=i.cmp(n);return s<0||1===r&&0===s?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},s.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,i=0,r=this.length-1;r>=0;r--)i=(e*i+(0|this.words[r]))%t;return i},s.prototype.idivn=function(t){n(t<=67108863);for(var e=0,i=this.length-1;i>=0;i--){var r=(0|this.words[i])+67108864*e;this.words[i]=r/t|0,e=r%t}return this.strip()},s.prototype.divn=function(t){return this.clone().idivn(t)},s.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var r=new s(1),o=new s(0),a=new s(0),l=new s(1),c=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++c;for(var h=i.clone(),u=e.clone();!e.isZero();){for(var d=0,p=1;0==(e.words[0]&p)&&d<26;++d,p<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(r.isOdd()||o.isOdd())&&(r.iadd(h),o.isub(u)),r.iushrn(1),o.iushrn(1);for(var f=0,m=1;0==(i.words[0]&m)&&f<26;++f,m<<=1);if(f>0)for(i.iushrn(f);f-- >0;)(a.isOdd()||l.isOdd())&&(a.iadd(h),l.isub(u)),a.iushrn(1),l.iushrn(1);e.cmp(i)>=0?(e.isub(i),r.isub(a),o.isub(l)):(i.isub(e),a.isub(r),l.isub(o))}return{a:a,b:l,gcd:i.iushln(c)}},s.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var r,o=new s(1),a=new s(0),l=i.clone();e.cmpn(1)>0&&i.cmpn(1)>0;){for(var c=0,h=1;0==(e.words[0]&h)&&c<26;++c,h<<=1);if(c>0)for(e.iushrn(c);c-- >0;)o.isOdd()&&o.iadd(l),o.iushrn(1);for(var u=0,d=1;0==(i.words[0]&d)&&u<26;++u,d<<=1);if(u>0)for(i.iushrn(u);u-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);e.cmp(i)>=0?(e.isub(i),o.isub(a)):(i.isub(e),a.isub(o))}return(r=0===e.cmpn(1)?o:a).cmpn(0)<0&&r.iadd(t),r},s.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),i=t.clone();e.negative=0,i.negative=0;for(var n=0;e.isEven()&&i.isEven();n++)e.iushrn(1),i.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;i.isEven();)i.iushrn(1);var r=e.cmp(i);if(r<0){var s=e;e=i,i=s}else if(0===r||0===i.cmpn(1))break;e.isub(i)}return i.iushln(n)},s.prototype.invm=function(t){return this.egcd(t).a.umod(t)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(t){return this.words[0]&t},s.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,i=(t-e)/26,r=1<>>26,this.words[o]=a&=67108863}return 0!==s&&(this.words[o]=s,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(t){var e,i=t<0;if(0!==this.negative&&!i)return-1;if(0===this.negative&&i)return 1;if(this.strip(),this.length>1)e=1;else{i&&(t=-t),n(t<=67108863,"Number is too big");var r=0|this.words[0];e=r===t?0:rt.length)return 1;if(this.length=0;i--){var n=0|this.words[i],r=0|t.words[i];if(n!==r){nr&&(e=1);break}}return e},s.prototype.gtn=function(t){return 1===this.cmpn(t)},s.prototype.gt=function(t){return 1===this.cmp(t)},s.prototype.gten=function(t){return this.cmpn(t)>=0},s.prototype.gte=function(t){return this.cmp(t)>=0},s.prototype.ltn=function(t){return-1===this.cmpn(t)},s.prototype.lt=function(t){return-1===this.cmp(t)},s.prototype.lten=function(t){return this.cmpn(t)<=0},s.prototype.lte=function(t){return this.cmp(t)<=0},s.prototype.eqn=function(t){return 0===this.cmpn(t)},s.prototype.eq=function(t){return 0===this.cmp(t)},s.red=function(t){return new C(t)},s.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},s.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(t){return this.red=t,this},s.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},s.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},s.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},s.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},s.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},s.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},s.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},s.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},s.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var y={k256:null,p224:null,p192:null,p25519:null};function b(t,e){this.name=t,this.p=new s(e,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function C(t){if("string"==typeof t){var e=s._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function A(t){C.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}b.prototype._tmp=function(){var t=new s(null);return t.words=new Array(Math.ceil(this.n/13)),t},b.prototype.ireduce=function(t){var e,i=t;do{this.split(i,this.tmp),e=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e0?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},b.prototype.split=function(t,e){t.iushrn(this.n,0,e)},b.prototype.imulK=function(t){return t.imul(this.k)},r(v,b),v.prototype.split=function(t,e){for(var i=4194303,n=Math.min(t.length,9),r=0;r>>22,s=o}t.words[r-10]=s>>>=22,t.length-=0===s&&t.length>10?10:9},v.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i>>=26,t.words[i]=r,e=n}return 0!==e&&(t.words[t.length++]=e),t},s._prime=function(t){if(y[t])return y[t];var e;if("k256"===t)e=new v;else if("p224"===t)e=new _;else if("p192"===t)e=new w;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new x}return y[t]=e,e},C.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},C.prototype._verify2=function(t,e){n(0==(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},C.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},C.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},C.prototype.add=function(t,e){this._verify2(t,e);var i=t.add(e);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},C.prototype.iadd=function(t,e){this._verify2(t,e);var i=t.iadd(e);return i.cmp(this.m)>=0&&i.isub(this.m),i},C.prototype.sub=function(t,e){this._verify2(t,e);var i=t.sub(e);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},C.prototype.isub=function(t,e){this._verify2(t,e);var i=t.isub(e);return i.cmpn(0)<0&&i.iadd(this.m),i},C.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},C.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},C.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},C.prototype.isqr=function(t){return this.imul(t,t.clone())},C.prototype.sqr=function(t){return this.mul(t,t)},C.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var i=this.m.add(new s(1)).iushrn(2);return this.pow(t,i)}for(var r=this.m.subn(1),o=0;!r.isZero()&&0===r.andln(1);)o++,r.iushrn(1);n(!r.isZero());var a=new s(1).toRed(this),l=a.redNeg(),c=this.m.subn(1).iushrn(1),h=this.m.bitLength();for(h=new s(2*h*h).toRed(this);0!==this.pow(h,c).cmp(l);)h.redIAdd(l);for(var u=this.pow(h,r),d=this.pow(t,r.addn(1).iushrn(1)),p=this.pow(t,r),f=o;0!==p.cmp(a);){for(var m=p,g=0;0!==m.cmp(a);g++)m=m.redSqr();n(g=0;n--){for(var c=e.words[n],h=l-1;h>=0;h--){var u=c>>h&1;r!==i[0]&&(r=this.sqr(r)),0!==u||0!==o?(o<<=1,o|=u,(4==++a||0===n&&0===h)&&(r=this.mul(r,i[o]),a=0,o=0)):a=0}l=26}return r},C.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},C.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},s.mont=function(t){return new A(t)},r(A,C),A.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},A.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},A.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var i=t.imul(e),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),s=r;return r.cmp(this.m)>=0?s=r.isub(this.m):r.cmpn(0)<0&&(s=r.iadd(this.m)),s._forceRed(this)},A.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new s(0)._forceRed(this);var i=t.mul(e),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),o=r;return r.cmp(this.m)>=0?o=r.isub(this.m):r.cmpn(0)<0&&(o=r.iadd(this.m)),o._forceRed(this)},A.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=i.nmd(t),this)},6698:(t,e)=>{"use strict";e.byteLength=function(t){var e=l(t),i=e[1];return 3*(e[0]+i)/4-i},e.toByteArray=function(t){var e,i,s=l(t),o=s[0],a=s[1],c=new r(function(t,e,i){return 3*(e+i)/4-i}(0,o,a)),h=0,u=a>0?o-4:o;for(i=0;i>16&255,c[h++]=e>>8&255,c[h++]=255&e;return 2===a&&(e=n[t.charCodeAt(i)]<<2|n[t.charCodeAt(i+1)]>>4,c[h++]=255&e),1===a&&(e=n[t.charCodeAt(i)]<<10|n[t.charCodeAt(i+1)]<<4|n[t.charCodeAt(i+2)]>>2,c[h++]=e>>8&255,c[h++]=255&e),c},e.fromByteArray=function(t){for(var e,n=t.length,r=n%3,s=[],o=16383,a=0,l=n-r;al?l:a+o));return 1===r?s.push(i[(e=t[n-1])>>2]+i[e<<4&63]+"=="):2===r&&s.push(i[(e=(t[n-2]<<8)+t[n-1])>>10]+i[e>>4&63]+i[e<<2&63]+"="),s.join("")};for(var i=[],n=[],r="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,a=s.length;o0)throw new Error("Invalid string. Length must be a multiple of 4");var i=t.indexOf("=");return-1===i&&(i=e),[i,i===e?0:4-i%4]}function c(t,e,n){for(var r,s=[],o=e;o>18&63]+i[r>>12&63]+i[r>>6&63]+i[63&r]);return s.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},4724:function(t,e,i){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function r(t,e){t.super_=e;var i=function(){};i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}function s(t,e,i){if(s.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(i=e,e=10),this._init(t||0,e||10,i||"be"))}var o;"object"==typeof t?t.exports=s:e.BN=s,s.BN=s,s.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:i(6601).Buffer}catch(T){}function a(t,e){var i=t.charCodeAt(e);return i>=48&&i<=57?i-48:i>=65&&i<=70?i-55:i>=97&&i<=102?i-87:void n(!1,"Invalid character in "+t)}function l(t,e,i){var n=a(t,i);return i-1>=e&&(n|=a(t,i-1)<<4),n}function c(t,e,i,r){for(var s=0,o=0,a=Math.min(t.length,i),l=e;l=49?c-49+10:c>=17?c-17+10:c,n(c>=0&&o0?t:e},s.min=function(t,e){return t.cmp(e)<0?t:e},s.prototype._init=function(t,e,i){if("number"==typeof t)return this._initNumber(t,e,i);if("object"==typeof t)return this._initArray(t,e,i);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var r=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(r++,this.negative=1),r=0;r-=3)this.words[s]|=(o=t[r]|t[r-1]<<8|t[r-2]<<16)<>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);else if("le"===i)for(r=0,s=0;r>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);return this._strip()},s.prototype._parseHex=function(t,e,i){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n=e;n-=2)r=l(t,e,n)<=18?(s-=18,this.words[o+=1]|=r>>>26):s+=8;else for(n=(t.length-e)%2==0?e+1:e;n=18?(s-=18,this.words[o+=1]|=r>>>26):s+=8;this._strip()},s.prototype._parseBase=function(t,e,i){this.words=[0],this.length=1;for(var n=0,r=1;r<=67108863;r*=e)n++;n--,r=r/e|0;for(var s=t.length-i,o=s%n,a=Math.min(s,s-o)+i,l=0,h=i;h1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{s.prototype[Symbol.for("nodejs.util.inspect.custom")]=u}catch(T){s.prototype.inspect=u}else s.prototype.inspect=u;function u(){return(this.red?""}var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],p=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],f=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function m(t,e,i){i.negative=e.negative^t.negative;var n=t.length+e.length|0;i.length=n,n=n-1|0;var r=0|t.words[0],s=0|e.words[0],o=r*s,a=o/67108864|0;i.words[0]=67108863&o;for(var l=1;l>>26,h=67108863&a,u=Math.min(l,e.length-1),d=Math.max(0,l-t.length+1);d<=u;d++)c+=(o=(r=0|t.words[l-d|0])*(s=0|e.words[d])+h)/67108864|0,h=67108863&o;i.words[l]=0|h,a=0|c}return 0!==a?i.words[l]=0|a:i.length--,i._strip()}s.prototype.toString=function(t,e){var i;if(e=0|e||1,16===(t=t||10)||"hex"===t){i="";for(var r=0,s=0,o=0;o>>24-r&16777215)||o!==this.length-1?d[6-l.length]+l+i:l+i,(r+=2)>=26&&(r-=26,o--)}for(0!==s&&(i=s.toString(16)+i);i.length%e!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(t===(0|t)&&t>=2&&t<=36){var c=p[t],h=f[t];i="";var u=this.clone();for(u.negative=0;!u.isZero();){var m=u.modrn(h).toString(t);i=(u=u.idivn(h)).isZero()?m+i:d[c-m.length]+m+i}for(this.isZero()&&(i="0"+i);i.length%e!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}n(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},s.prototype.toJSON=function(){return this.toString(16,2)},o&&(s.prototype.toBuffer=function(t,e){return this.toArrayLike(o,t,e)}),s.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},s.prototype.toArrayLike=function(t,e,i){this._strip();var r=this.byteLength(),s=i||Math.max(1,r);n(r<=s,"byte array longer than desired length"),n(s>0,"Requested array length <= 0");var o=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e)}(t,s);return this["_toArrayLike"+("le"===e?"LE":"BE")](o,r),o},s.prototype._toArrayLikeLE=function(t,e){for(var i=0,n=0,r=0,s=0;r>8&255),i>16&255),6===s?(i>24&255),n=0,s=0):(n=o>>>24,s+=2)}if(i=0&&(t[i--]=o>>8&255),i>=0&&(t[i--]=o>>16&255),6===s?(i>=0&&(t[i--]=o>>24&255),n=0,s=0):(n=o>>>24,s+=2)}if(i>=0)for(t[i--]=n;i>=0;)t[i--]=0},s.prototype._countBits=Math.clz32?function(t){return 32-Math.clz32(t)}:function(t){var e=t,i=0;return e>=4096&&(i+=13,e>>>=13),e>=64&&(i+=7,e>>>=7),e>=8&&(i+=4,e>>>=4),e>=2&&(i+=2,e>>>=2),i+e},s.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,i=0;return 0==(8191&e)&&(i+=13,e>>>=13),0==(127&e)&&(i+=7,e>>>=7),0==(15&e)&&(i+=4,e>>>=4),0==(3&e)&&(i+=2,e>>>=2),0==(1&e)&&i++,i},s.prototype.bitLength=function(){var t=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+t},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},s.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},s.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var i=0;it.length?this.clone().iand(t):t.clone().iand(this)},s.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},s.prototype.iuxor=function(t){var e,i;this.length>t.length?(e=this,i=t):(e=t,i=this);for(var n=0;nt.length?this.clone().ixor(t):t.clone().ixor(this)},s.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},s.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),i=t%26;this._expand(e),i>0&&e--;for(var r=0;r0&&(this.words[r]=~this.words[r]&67108863>>26-i),this._strip()},s.prototype.notn=function(t){return this.clone().inotn(t)},s.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var i=t/26|0,r=t%26;return this._expand(i+1),this.words[i]=e?this.words[i]|1<t.length?(i=this,n=t):(i=t,n=this);for(var r=0,s=0;s>>26;for(;0!==r&&s>>26;if(this.length=i.length,0!==r)this.words[this.length]=r,this.length++;else if(i!==this)for(;st.length?this.clone().iadd(t):t.clone().iadd(this)},s.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,n,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(i=this,n=t):(i=t,n=this);for(var s=0,o=0;o>26,this.words[o]=67108863&e;for(;0!==s&&o>26,this.words[o]=67108863&e;if(0===s&&o>>13,p=0|o[1],f=8191&p,m=p>>>13,g=0|o[2],y=8191&g,b=g>>>13,v=0|o[3],_=8191&v,w=v>>>13,x=0|o[4],C=8191&x,A=x>>>13,S=0|o[5],E=8191&S,k=S>>>13,T=0|o[6],M=8191&T,L=T>>>13,I=0|o[7],O=8191&I,D=I>>>13,R=0|o[8],N=8191&R,P=R>>>13,F=0|o[9],Z=8191&F,B=F>>>13,U=0|a[0],q=8191&U,z=U>>>13,H=0|a[1],Y=8191&H,G=H>>>13,j=0|a[2],V=8191&j,Q=j>>>13,W=0|a[3],J=8191&W,X=W>>>13,K=0|a[4],$=8191&K,tt=K>>>13,et=0|a[5],it=8191&et,nt=et>>>13,rt=0|a[6],st=8191&rt,ot=rt>>>13,at=0|a[7],lt=8191&at,ct=at>>>13,ht=0|a[8],ut=8191&ht,dt=ht>>>13,pt=0|a[9],ft=8191&pt,mt=pt>>>13;i.negative=t.negative^e.negative,i.length=19;var gt=(c+(n=Math.imul(u,q))|0)+((8191&(r=(r=Math.imul(u,z))+Math.imul(d,q)|0))<<13)|0;c=((s=Math.imul(d,z))+(r>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(f,q),r=(r=Math.imul(f,z))+Math.imul(m,q)|0,s=Math.imul(m,z);var yt=(c+(n=n+Math.imul(u,Y)|0)|0)+((8191&(r=(r=r+Math.imul(u,G)|0)+Math.imul(d,Y)|0))<<13)|0;c=((s=s+Math.imul(d,G)|0)+(r>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(y,q),r=(r=Math.imul(y,z))+Math.imul(b,q)|0,s=Math.imul(b,z),n=n+Math.imul(f,Y)|0,r=(r=r+Math.imul(f,G)|0)+Math.imul(m,Y)|0,s=s+Math.imul(m,G)|0;var bt=(c+(n=n+Math.imul(u,V)|0)|0)+((8191&(r=(r=r+Math.imul(u,Q)|0)+Math.imul(d,V)|0))<<13)|0;c=((s=s+Math.imul(d,Q)|0)+(r>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(_,q),r=(r=Math.imul(_,z))+Math.imul(w,q)|0,s=Math.imul(w,z),n=n+Math.imul(y,Y)|0,r=(r=r+Math.imul(y,G)|0)+Math.imul(b,Y)|0,s=s+Math.imul(b,G)|0,n=n+Math.imul(f,V)|0,r=(r=r+Math.imul(f,Q)|0)+Math.imul(m,V)|0,s=s+Math.imul(m,Q)|0;var vt=(c+(n=n+Math.imul(u,J)|0)|0)+((8191&(r=(r=r+Math.imul(u,X)|0)+Math.imul(d,J)|0))<<13)|0;c=((s=s+Math.imul(d,X)|0)+(r>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(C,q),r=(r=Math.imul(C,z))+Math.imul(A,q)|0,s=Math.imul(A,z),n=n+Math.imul(_,Y)|0,r=(r=r+Math.imul(_,G)|0)+Math.imul(w,Y)|0,s=s+Math.imul(w,G)|0,n=n+Math.imul(y,V)|0,r=(r=r+Math.imul(y,Q)|0)+Math.imul(b,V)|0,s=s+Math.imul(b,Q)|0,n=n+Math.imul(f,J)|0,r=(r=r+Math.imul(f,X)|0)+Math.imul(m,J)|0,s=s+Math.imul(m,X)|0;var _t=(c+(n=n+Math.imul(u,$)|0)|0)+((8191&(r=(r=r+Math.imul(u,tt)|0)+Math.imul(d,$)|0))<<13)|0;c=((s=s+Math.imul(d,tt)|0)+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(E,q),r=(r=Math.imul(E,z))+Math.imul(k,q)|0,s=Math.imul(k,z),n=n+Math.imul(C,Y)|0,r=(r=r+Math.imul(C,G)|0)+Math.imul(A,Y)|0,s=s+Math.imul(A,G)|0,n=n+Math.imul(_,V)|0,r=(r=r+Math.imul(_,Q)|0)+Math.imul(w,V)|0,s=s+Math.imul(w,Q)|0,n=n+Math.imul(y,J)|0,r=(r=r+Math.imul(y,X)|0)+Math.imul(b,J)|0,s=s+Math.imul(b,X)|0,n=n+Math.imul(f,$)|0,r=(r=r+Math.imul(f,tt)|0)+Math.imul(m,$)|0,s=s+Math.imul(m,tt)|0;var wt=(c+(n=n+Math.imul(u,it)|0)|0)+((8191&(r=(r=r+Math.imul(u,nt)|0)+Math.imul(d,it)|0))<<13)|0;c=((s=s+Math.imul(d,nt)|0)+(r>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(M,q),r=(r=Math.imul(M,z))+Math.imul(L,q)|0,s=Math.imul(L,z),n=n+Math.imul(E,Y)|0,r=(r=r+Math.imul(E,G)|0)+Math.imul(k,Y)|0,s=s+Math.imul(k,G)|0,n=n+Math.imul(C,V)|0,r=(r=r+Math.imul(C,Q)|0)+Math.imul(A,V)|0,s=s+Math.imul(A,Q)|0,n=n+Math.imul(_,J)|0,r=(r=r+Math.imul(_,X)|0)+Math.imul(w,J)|0,s=s+Math.imul(w,X)|0,n=n+Math.imul(y,$)|0,r=(r=r+Math.imul(y,tt)|0)+Math.imul(b,$)|0,s=s+Math.imul(b,tt)|0,n=n+Math.imul(f,it)|0,r=(r=r+Math.imul(f,nt)|0)+Math.imul(m,it)|0,s=s+Math.imul(m,nt)|0;var xt=(c+(n=n+Math.imul(u,st)|0)|0)+((8191&(r=(r=r+Math.imul(u,ot)|0)+Math.imul(d,st)|0))<<13)|0;c=((s=s+Math.imul(d,ot)|0)+(r>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(O,q),r=(r=Math.imul(O,z))+Math.imul(D,q)|0,s=Math.imul(D,z),n=n+Math.imul(M,Y)|0,r=(r=r+Math.imul(M,G)|0)+Math.imul(L,Y)|0,s=s+Math.imul(L,G)|0,n=n+Math.imul(E,V)|0,r=(r=r+Math.imul(E,Q)|0)+Math.imul(k,V)|0,s=s+Math.imul(k,Q)|0,n=n+Math.imul(C,J)|0,r=(r=r+Math.imul(C,X)|0)+Math.imul(A,J)|0,s=s+Math.imul(A,X)|0,n=n+Math.imul(_,$)|0,r=(r=r+Math.imul(_,tt)|0)+Math.imul(w,$)|0,s=s+Math.imul(w,tt)|0,n=n+Math.imul(y,it)|0,r=(r=r+Math.imul(y,nt)|0)+Math.imul(b,it)|0,s=s+Math.imul(b,nt)|0,n=n+Math.imul(f,st)|0,r=(r=r+Math.imul(f,ot)|0)+Math.imul(m,st)|0,s=s+Math.imul(m,ot)|0;var Ct=(c+(n=n+Math.imul(u,lt)|0)|0)+((8191&(r=(r=r+Math.imul(u,ct)|0)+Math.imul(d,lt)|0))<<13)|0;c=((s=s+Math.imul(d,ct)|0)+(r>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(N,q),r=(r=Math.imul(N,z))+Math.imul(P,q)|0,s=Math.imul(P,z),n=n+Math.imul(O,Y)|0,r=(r=r+Math.imul(O,G)|0)+Math.imul(D,Y)|0,s=s+Math.imul(D,G)|0,n=n+Math.imul(M,V)|0,r=(r=r+Math.imul(M,Q)|0)+Math.imul(L,V)|0,s=s+Math.imul(L,Q)|0,n=n+Math.imul(E,J)|0,r=(r=r+Math.imul(E,X)|0)+Math.imul(k,J)|0,s=s+Math.imul(k,X)|0,n=n+Math.imul(C,$)|0,r=(r=r+Math.imul(C,tt)|0)+Math.imul(A,$)|0,s=s+Math.imul(A,tt)|0,n=n+Math.imul(_,it)|0,r=(r=r+Math.imul(_,nt)|0)+Math.imul(w,it)|0,s=s+Math.imul(w,nt)|0,n=n+Math.imul(y,st)|0,r=(r=r+Math.imul(y,ot)|0)+Math.imul(b,st)|0,s=s+Math.imul(b,ot)|0,n=n+Math.imul(f,lt)|0,r=(r=r+Math.imul(f,ct)|0)+Math.imul(m,lt)|0,s=s+Math.imul(m,ct)|0;var At=(c+(n=n+Math.imul(u,ut)|0)|0)+((8191&(r=(r=r+Math.imul(u,dt)|0)+Math.imul(d,ut)|0))<<13)|0;c=((s=s+Math.imul(d,dt)|0)+(r>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(Z,q),r=(r=Math.imul(Z,z))+Math.imul(B,q)|0,s=Math.imul(B,z),n=n+Math.imul(N,Y)|0,r=(r=r+Math.imul(N,G)|0)+Math.imul(P,Y)|0,s=s+Math.imul(P,G)|0,n=n+Math.imul(O,V)|0,r=(r=r+Math.imul(O,Q)|0)+Math.imul(D,V)|0,s=s+Math.imul(D,Q)|0,n=n+Math.imul(M,J)|0,r=(r=r+Math.imul(M,X)|0)+Math.imul(L,J)|0,s=s+Math.imul(L,X)|0,n=n+Math.imul(E,$)|0,r=(r=r+Math.imul(E,tt)|0)+Math.imul(k,$)|0,s=s+Math.imul(k,tt)|0,n=n+Math.imul(C,it)|0,r=(r=r+Math.imul(C,nt)|0)+Math.imul(A,it)|0,s=s+Math.imul(A,nt)|0,n=n+Math.imul(_,st)|0,r=(r=r+Math.imul(_,ot)|0)+Math.imul(w,st)|0,s=s+Math.imul(w,ot)|0,n=n+Math.imul(y,lt)|0,r=(r=r+Math.imul(y,ct)|0)+Math.imul(b,lt)|0,s=s+Math.imul(b,ct)|0,n=n+Math.imul(f,ut)|0,r=(r=r+Math.imul(f,dt)|0)+Math.imul(m,ut)|0,s=s+Math.imul(m,dt)|0;var St=(c+(n=n+Math.imul(u,ft)|0)|0)+((8191&(r=(r=r+Math.imul(u,mt)|0)+Math.imul(d,ft)|0))<<13)|0;c=((s=s+Math.imul(d,mt)|0)+(r>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(Z,Y),r=(r=Math.imul(Z,G))+Math.imul(B,Y)|0,s=Math.imul(B,G),n=n+Math.imul(N,V)|0,r=(r=r+Math.imul(N,Q)|0)+Math.imul(P,V)|0,s=s+Math.imul(P,Q)|0,n=n+Math.imul(O,J)|0,r=(r=r+Math.imul(O,X)|0)+Math.imul(D,J)|0,s=s+Math.imul(D,X)|0,n=n+Math.imul(M,$)|0,r=(r=r+Math.imul(M,tt)|0)+Math.imul(L,$)|0,s=s+Math.imul(L,tt)|0,n=n+Math.imul(E,it)|0,r=(r=r+Math.imul(E,nt)|0)+Math.imul(k,it)|0,s=s+Math.imul(k,nt)|0,n=n+Math.imul(C,st)|0,r=(r=r+Math.imul(C,ot)|0)+Math.imul(A,st)|0,s=s+Math.imul(A,ot)|0,n=n+Math.imul(_,lt)|0,r=(r=r+Math.imul(_,ct)|0)+Math.imul(w,lt)|0,s=s+Math.imul(w,ct)|0,n=n+Math.imul(y,ut)|0,r=(r=r+Math.imul(y,dt)|0)+Math.imul(b,ut)|0,s=s+Math.imul(b,dt)|0;var Et=(c+(n=n+Math.imul(f,ft)|0)|0)+((8191&(r=(r=r+Math.imul(f,mt)|0)+Math.imul(m,ft)|0))<<13)|0;c=((s=s+Math.imul(m,mt)|0)+(r>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(Z,V),r=(r=Math.imul(Z,Q))+Math.imul(B,V)|0,s=Math.imul(B,Q),n=n+Math.imul(N,J)|0,r=(r=r+Math.imul(N,X)|0)+Math.imul(P,J)|0,s=s+Math.imul(P,X)|0,n=n+Math.imul(O,$)|0,r=(r=r+Math.imul(O,tt)|0)+Math.imul(D,$)|0,s=s+Math.imul(D,tt)|0,n=n+Math.imul(M,it)|0,r=(r=r+Math.imul(M,nt)|0)+Math.imul(L,it)|0,s=s+Math.imul(L,nt)|0,n=n+Math.imul(E,st)|0,r=(r=r+Math.imul(E,ot)|0)+Math.imul(k,st)|0,s=s+Math.imul(k,ot)|0,n=n+Math.imul(C,lt)|0,r=(r=r+Math.imul(C,ct)|0)+Math.imul(A,lt)|0,s=s+Math.imul(A,ct)|0,n=n+Math.imul(_,ut)|0,r=(r=r+Math.imul(_,dt)|0)+Math.imul(w,ut)|0,s=s+Math.imul(w,dt)|0;var kt=(c+(n=n+Math.imul(y,ft)|0)|0)+((8191&(r=(r=r+Math.imul(y,mt)|0)+Math.imul(b,ft)|0))<<13)|0;c=((s=s+Math.imul(b,mt)|0)+(r>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(Z,J),r=(r=Math.imul(Z,X))+Math.imul(B,J)|0,s=Math.imul(B,X),n=n+Math.imul(N,$)|0,r=(r=r+Math.imul(N,tt)|0)+Math.imul(P,$)|0,s=s+Math.imul(P,tt)|0,n=n+Math.imul(O,it)|0,r=(r=r+Math.imul(O,nt)|0)+Math.imul(D,it)|0,s=s+Math.imul(D,nt)|0,n=n+Math.imul(M,st)|0,r=(r=r+Math.imul(M,ot)|0)+Math.imul(L,st)|0,s=s+Math.imul(L,ot)|0,n=n+Math.imul(E,lt)|0,r=(r=r+Math.imul(E,ct)|0)+Math.imul(k,lt)|0,s=s+Math.imul(k,ct)|0,n=n+Math.imul(C,ut)|0,r=(r=r+Math.imul(C,dt)|0)+Math.imul(A,ut)|0,s=s+Math.imul(A,dt)|0;var Tt=(c+(n=n+Math.imul(_,ft)|0)|0)+((8191&(r=(r=r+Math.imul(_,mt)|0)+Math.imul(w,ft)|0))<<13)|0;c=((s=s+Math.imul(w,mt)|0)+(r>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(Z,$),r=(r=Math.imul(Z,tt))+Math.imul(B,$)|0,s=Math.imul(B,tt),n=n+Math.imul(N,it)|0,r=(r=r+Math.imul(N,nt)|0)+Math.imul(P,it)|0,s=s+Math.imul(P,nt)|0,n=n+Math.imul(O,st)|0,r=(r=r+Math.imul(O,ot)|0)+Math.imul(D,st)|0,s=s+Math.imul(D,ot)|0,n=n+Math.imul(M,lt)|0,r=(r=r+Math.imul(M,ct)|0)+Math.imul(L,lt)|0,s=s+Math.imul(L,ct)|0,n=n+Math.imul(E,ut)|0,r=(r=r+Math.imul(E,dt)|0)+Math.imul(k,ut)|0,s=s+Math.imul(k,dt)|0;var Mt=(c+(n=n+Math.imul(C,ft)|0)|0)+((8191&(r=(r=r+Math.imul(C,mt)|0)+Math.imul(A,ft)|0))<<13)|0;c=((s=s+Math.imul(A,mt)|0)+(r>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(Z,it),r=(r=Math.imul(Z,nt))+Math.imul(B,it)|0,s=Math.imul(B,nt),n=n+Math.imul(N,st)|0,r=(r=r+Math.imul(N,ot)|0)+Math.imul(P,st)|0,s=s+Math.imul(P,ot)|0,n=n+Math.imul(O,lt)|0,r=(r=r+Math.imul(O,ct)|0)+Math.imul(D,lt)|0,s=s+Math.imul(D,ct)|0,n=n+Math.imul(M,ut)|0,r=(r=r+Math.imul(M,dt)|0)+Math.imul(L,ut)|0,s=s+Math.imul(L,dt)|0;var Lt=(c+(n=n+Math.imul(E,ft)|0)|0)+((8191&(r=(r=r+Math.imul(E,mt)|0)+Math.imul(k,ft)|0))<<13)|0;c=((s=s+Math.imul(k,mt)|0)+(r>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,n=Math.imul(Z,st),r=(r=Math.imul(Z,ot))+Math.imul(B,st)|0,s=Math.imul(B,ot),n=n+Math.imul(N,lt)|0,r=(r=r+Math.imul(N,ct)|0)+Math.imul(P,lt)|0,s=s+Math.imul(P,ct)|0,n=n+Math.imul(O,ut)|0,r=(r=r+Math.imul(O,dt)|0)+Math.imul(D,ut)|0,s=s+Math.imul(D,dt)|0;var It=(c+(n=n+Math.imul(M,ft)|0)|0)+((8191&(r=(r=r+Math.imul(M,mt)|0)+Math.imul(L,ft)|0))<<13)|0;c=((s=s+Math.imul(L,mt)|0)+(r>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(Z,lt),r=(r=Math.imul(Z,ct))+Math.imul(B,lt)|0,s=Math.imul(B,ct),n=n+Math.imul(N,ut)|0,r=(r=r+Math.imul(N,dt)|0)+Math.imul(P,ut)|0,s=s+Math.imul(P,dt)|0;var Ot=(c+(n=n+Math.imul(O,ft)|0)|0)+((8191&(r=(r=r+Math.imul(O,mt)|0)+Math.imul(D,ft)|0))<<13)|0;c=((s=s+Math.imul(D,mt)|0)+(r>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(Z,ut),r=(r=Math.imul(Z,dt))+Math.imul(B,ut)|0,s=Math.imul(B,dt);var Dt=(c+(n=n+Math.imul(N,ft)|0)|0)+((8191&(r=(r=r+Math.imul(N,mt)|0)+Math.imul(P,ft)|0))<<13)|0;c=((s=s+Math.imul(P,mt)|0)+(r>>>13)|0)+(Dt>>>26)|0,Dt&=67108863;var Rt=(c+(n=Math.imul(Z,ft))|0)+((8191&(r=(r=Math.imul(Z,mt))+Math.imul(B,ft)|0))<<13)|0;return c=((s=Math.imul(B,mt))+(r>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,l[0]=gt,l[1]=yt,l[2]=bt,l[3]=vt,l[4]=_t,l[5]=wt,l[6]=xt,l[7]=Ct,l[8]=At,l[9]=St,l[10]=Et,l[11]=kt,l[12]=Tt,l[13]=Mt,l[14]=Lt,l[15]=It,l[16]=Ot,l[17]=Dt,l[18]=Rt,0!==c&&(l[19]=c,i.length++),i};function y(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var n=0,r=0,s=0;s>>26)|0)>>>26,o&=67108863}i.words[s]=a,n=o,o=r}return 0!==n?i.words[s]=n:i.length--,i._strip()}function b(t,e,i){return y(t,e,i)}function v(t,e){this.x=t,this.y=e}Math.imul||(g=m),s.prototype.mulTo=function(t,e){var i=this.length+t.length;return 10===this.length&&10===t.length?g(this,t,e):i<63?m(this,t,e):i<1024?y(this,t,e):b(this,t,e)},v.prototype.makeRBT=function(t){for(var e=new Array(t),i=s.prototype._countBits(t)-1,n=0;n>=1;return n},v.prototype.permute=function(t,e,i,n,r,s){for(var o=0;o>>=1)r++;return 1<>>=13),s>>>=13;for(o=2*e;o>=26,i+=s/67108864|0,i+=o>>>26,this.words[r]=67108863&o}return 0!==i&&(this.words[r]=i,this.length++),e?this.ineg():this},s.prototype.muln=function(t){return this.clone().imuln(t)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),i=0;i>>i%26&1;return e}(t);if(0===e.length)return new s(1);for(var i=this,n=0;n=0);var e,i=t%26,r=(t-i)/26,s=67108863>>>26-i<<26-i;if(0!==i){var o=0;for(e=0;e>>26-i}o&&(this.words[e]=o,this.length++)}if(0!==r){for(e=this.length-1;e>=0;e--)this.words[e+r]=this.words[e];for(e=0;e=0),r=e?(e-e%26)/26:0;var s=t%26,o=Math.min((t-s)/26,this.length),a=67108863^67108863>>>s<o)for(this.length-=o,c=0;c=0&&(0!==h||c>=r);c--){var u=0|this.words[c];this.words[c]=h<<26-s|u>>>s,h=u&a}return l&&0!==h&&(l.words[l.length++]=h),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},s.prototype.ishrn=function(t,e,i){return n(0===this.negative),this.iushrn(t,e,i)},s.prototype.shln=function(t){return this.clone().ishln(t)},s.prototype.ushln=function(t){return this.clone().iushln(t)},s.prototype.shrn=function(t){return this.clone().ishrn(t)},s.prototype.ushrn=function(t){return this.clone().iushrn(t)},s.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,i=(t-e)/26;return!(this.length<=i||!(this.words[i]&1<=0);var e=t%26,i=(t-e)/26;return n(0===this.negative,"imaskn works only with positive numbers"),this.length<=i?this:(0!==e&&i++,this.length=Math.min(i,this.length),0!==e&&(this.words[this.length-1]&=67108863^67108863>>>e<=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},s.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(a/67108864|0),this.words[r+i]=67108863&s}for(;r>26,this.words[r+i]=67108863&s;if(0===o)return this._strip();for(n(-1===o),o=0,r=0;r>26,this.words[r]=67108863&s;return this.negative=1,this._strip()},s.prototype._wordDiv=function(t,e){var i,n=this.clone(),r=t,o=0|r.words[r.length-1];0!=(i=26-this._countBits(o))&&(r=r.ushln(i),n.iushln(i),o=0|r.words[r.length-1]);var a,l=n.length-r.length;if("mod"!==e){(a=new s(null)).length=l+1,a.words=new Array(a.length);for(var c=0;c=0;u--){var d=67108864*(0|n.words[r.length+u])+(0|n.words[r.length+u-1]);for(d=Math.min(d/o|0,67108863),n._ishlnsubmul(r,d,u);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(r,1,u),n.isZero()||(n.negative^=1);a&&(a.words[u]=d)}return a&&a._strip(),n._strip(),"div"!==e&&0!==i&&n.iushrn(i),{div:a||null,mod:n}},s.prototype.divmod=function(t,e,i){return n(!t.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(r=a.div.neg()),"div"!==e&&(o=a.mod.neg(),i&&0!==o.negative&&o.iadd(t)),{div:r,mod:o}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(r=a.div.neg()),{div:r,mod:a.mod}):0!=(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(o=a.mod.neg(),i&&0!==o.negative&&o.isub(t)),{div:a.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new s(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new s(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new s(this.modrn(t.words[0]))}:this._wordDiv(t,e);var r,o,a},s.prototype.div=function(t){return this.divmod(t,"div",!1).div},s.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},s.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},s.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var i=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),r=t.andln(1),s=i.cmp(n);return s<0||1===r&&0===s?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},s.prototype.modrn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var i=(1<<26)%t,r=0,s=this.length-1;s>=0;s--)r=(i*r+(0|this.words[s]))%t;return e?-r:r},s.prototype.modn=function(t){return this.modrn(t)},s.prototype.idivn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var i=0,r=this.length-1;r>=0;r--){var s=(0|this.words[r])+67108864*i;this.words[r]=s/t|0,i=s%t}return this._strip(),e?this.ineg():this},s.prototype.divn=function(t){return this.clone().idivn(t)},s.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var r=new s(1),o=new s(0),a=new s(0),l=new s(1),c=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++c;for(var h=i.clone(),u=e.clone();!e.isZero();){for(var d=0,p=1;0==(e.words[0]&p)&&d<26;++d,p<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(r.isOdd()||o.isOdd())&&(r.iadd(h),o.isub(u)),r.iushrn(1),o.iushrn(1);for(var f=0,m=1;0==(i.words[0]&m)&&f<26;++f,m<<=1);if(f>0)for(i.iushrn(f);f-- >0;)(a.isOdd()||l.isOdd())&&(a.iadd(h),l.isub(u)),a.iushrn(1),l.iushrn(1);e.cmp(i)>=0?(e.isub(i),r.isub(a),o.isub(l)):(i.isub(e),a.isub(r),l.isub(o))}return{a:a,b:l,gcd:i.iushln(c)}},s.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var r,o=new s(1),a=new s(0),l=i.clone();e.cmpn(1)>0&&i.cmpn(1)>0;){for(var c=0,h=1;0==(e.words[0]&h)&&c<26;++c,h<<=1);if(c>0)for(e.iushrn(c);c-- >0;)o.isOdd()&&o.iadd(l),o.iushrn(1);for(var u=0,d=1;0==(i.words[0]&d)&&u<26;++u,d<<=1);if(u>0)for(i.iushrn(u);u-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);e.cmp(i)>=0?(e.isub(i),o.isub(a)):(i.isub(e),a.isub(o))}return(r=0===e.cmpn(1)?o:a).cmpn(0)<0&&r.iadd(t),r},s.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),i=t.clone();e.negative=0,i.negative=0;for(var n=0;e.isEven()&&i.isEven();n++)e.iushrn(1),i.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;i.isEven();)i.iushrn(1);var r=e.cmp(i);if(r<0){var s=e;e=i,i=s}else if(0===r||0===i.cmpn(1))break;e.isub(i)}return i.iushln(n)},s.prototype.invm=function(t){return this.egcd(t).a.umod(t)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(t){return this.words[0]&t},s.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,i=(t-e)/26,r=1<>>26,this.words[o]=a&=67108863}return 0!==s&&(this.words[o]=s,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(t){var e,i=t<0;if(0!==this.negative&&!i)return-1;if(0===this.negative&&i)return 1;if(this._strip(),this.length>1)e=1;else{i&&(t=-t),n(t<=67108863,"Number is too big");var r=0|this.words[0];e=r===t?0:rt.length)return 1;if(this.length=0;i--){var n=0|this.words[i],r=0|t.words[i];if(n!==r){nr&&(e=1);break}}return e},s.prototype.gtn=function(t){return 1===this.cmpn(t)},s.prototype.gt=function(t){return 1===this.cmp(t)},s.prototype.gten=function(t){return this.cmpn(t)>=0},s.prototype.gte=function(t){return this.cmp(t)>=0},s.prototype.ltn=function(t){return-1===this.cmpn(t)},s.prototype.lt=function(t){return-1===this.cmp(t)},s.prototype.lten=function(t){return this.cmpn(t)<=0},s.prototype.lte=function(t){return this.cmp(t)<=0},s.prototype.eqn=function(t){return 0===this.cmpn(t)},s.prototype.eq=function(t){return 0===this.cmp(t)},s.red=function(t){return new E(t)},s.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},s.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(t){return this.red=t,this},s.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},s.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},s.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},s.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},s.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},s.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},s.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},s.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},s.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var _={k256:null,p224:null,p192:null,p25519:null};function w(t,e){this.name=t,this.p=new s(e,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function x(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function C(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function A(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(t){if("string"==typeof t){var e=s._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function k(t){E.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}w.prototype._tmp=function(){var t=new s(null);return t.words=new Array(Math.ceil(this.n/13)),t},w.prototype.ireduce=function(t){var e,i=t;do{this.split(i,this.tmp),e=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e0?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},w.prototype.split=function(t,e){t.iushrn(this.n,0,e)},w.prototype.imulK=function(t){return t.imul(this.k)},r(x,w),x.prototype.split=function(t,e){for(var i=4194303,n=Math.min(t.length,9),r=0;r>>22,s=o}t.words[r-10]=s>>>=22,t.length-=0===s&&t.length>10?10:9},x.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i>>=26,t.words[i]=r,e=n}return 0!==e&&(t.words[t.length++]=e),t},s._prime=function(t){if(_[t])return _[t];var e;if("k256"===t)e=new x;else if("p224"===t)e=new C;else if("p192"===t)e=new A;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new S}return _[t]=e,e},E.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},E.prototype._verify2=function(t,e){n(0==(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},E.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(h(t,t.umod(this.m)._forceRed(this)),t)},E.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},E.prototype.add=function(t,e){this._verify2(t,e);var i=t.add(e);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},E.prototype.iadd=function(t,e){this._verify2(t,e);var i=t.iadd(e);return i.cmp(this.m)>=0&&i.isub(this.m),i},E.prototype.sub=function(t,e){this._verify2(t,e);var i=t.sub(e);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},E.prototype.isub=function(t,e){this._verify2(t,e);var i=t.isub(e);return i.cmpn(0)<0&&i.iadd(this.m),i},E.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},E.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},E.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},E.prototype.isqr=function(t){return this.imul(t,t.clone())},E.prototype.sqr=function(t){return this.mul(t,t)},E.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var i=this.m.add(new s(1)).iushrn(2);return this.pow(t,i)}for(var r=this.m.subn(1),o=0;!r.isZero()&&0===r.andln(1);)o++,r.iushrn(1);n(!r.isZero());var a=new s(1).toRed(this),l=a.redNeg(),c=this.m.subn(1).iushrn(1),h=this.m.bitLength();for(h=new s(2*h*h).toRed(this);0!==this.pow(h,c).cmp(l);)h.redIAdd(l);for(var u=this.pow(h,r),d=this.pow(t,r.addn(1).iushrn(1)),p=this.pow(t,r),f=o;0!==p.cmp(a);){for(var m=p,g=0;0!==m.cmp(a);g++)m=m.redSqr();n(g=0;n--){for(var c=e.words[n],h=l-1;h>=0;h--){var u=c>>h&1;r!==i[0]&&(r=this.sqr(r)),0!==u||0!==o?(o<<=1,o|=u,(4==++a||0===n&&0===h)&&(r=this.mul(r,i[o]),a=0,o=0)):a=0}l=26}return r},E.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},E.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},s.mont=function(t){return new k(t)},r(k,E),k.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},k.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},k.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var i=t.imul(e),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),s=r;return r.cmp(this.m)>=0?s=r.isub(this.m):r.cmpn(0)<0&&(s=r.iadd(this.m)),s._forceRed(this)},k.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new s(0)._forceRed(this);var i=t.mul(e),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),o=r;return r.cmp(this.m)>=0?o=r.isub(this.m):r.cmpn(0)<0&&(o=r.iadd(this.m)),o._forceRed(this)},k.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=i.nmd(t),this)},8520:(t,e,i)=>{var n;function r(t){this.rand=t}if(t.exports=function(t){return n||(n=new r(null)),n.generate(t)},t.exports.Rand=r,r.prototype.generate=function(t){return this._rand(t)},r.prototype._rand=function(t){if(this.rand.getBytes)return this.rand.getBytes(t);for(var e=new Uint8Array(t),i=0;i{var n=i(7015).Buffer;function r(t){n.isBuffer(t)||(t=n.from(t));for(var e=t.length/4|0,i=new Array(e),r=0;r>>24]^h[f>>>16&255]^u[m>>>8&255]^d[255&g]^e[y++],o=c[f>>>24]^h[m>>>16&255]^u[g>>>8&255]^d[255&p]^e[y++],a=c[m>>>24]^h[g>>>16&255]^u[p>>>8&255]^d[255&f]^e[y++],l=c[g>>>24]^h[p>>>16&255]^u[f>>>8&255]^d[255&m]^e[y++],p=s,f=o,m=a,g=l;return s=(n[p>>>24]<<24|n[f>>>16&255]<<16|n[m>>>8&255]<<8|n[255&g])^e[y++],o=(n[f>>>24]<<24|n[m>>>16&255]<<16|n[g>>>8&255]<<8|n[255&p])^e[y++],a=(n[m>>>24]<<24|n[g>>>16&255]<<16|n[p>>>8&255]<<8|n[255&f])^e[y++],l=(n[g>>>24]<<24|n[p>>>16&255]<<16|n[f>>>8&255]<<8|n[255&m])^e[y++],[s>>>=0,o>>>=0,a>>>=0,l>>>=0]}var a=[0,1,2,4,8,16,32,64,128,27,54],l=function(){for(var t=new Array(256),e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;for(var i=[],n=[],r=[[],[],[],[]],s=[[],[],[],[]],o=0,a=0,l=0;l<256;++l){var c=a^a<<1^a<<2^a<<3^a<<4;i[o]=c=c>>>8^255&c^99,n[c]=o;var h=t[o],u=t[h],d=t[u],p=257*t[c]^16843008*c;r[0][o]=p<<24|p>>>8,r[1][o]=p<<16|p>>>16,r[2][o]=p<<8|p>>>24,r[3][o]=p,s[0][c]=(p=16843009*d^65537*u^257*h^16843008*o)<<24|p>>>8,s[1][c]=p<<16|p>>>16,s[2][c]=p<<8|p>>>24,s[3][c]=p,0===o?o=a=1:(o=h^t[t[t[d^h]]],a^=t[t[a]])}return{SBOX:i,INV_SBOX:n,SUB_MIX:r,INV_SUB_MIX:s}}();function c(t){this._key=r(t),this._reset()}c.blockSize=16,c.keySize=32,c.prototype.blockSize=c.blockSize,c.prototype.keySize=c.keySize,c.prototype._reset=function(){for(var t=this._key,e=t.length,i=e+6,n=4*(i+1),r=[],s=0;s>>24)>>>24]<<24|l.SBOX[o>>>16&255]<<16|l.SBOX[o>>>8&255]<<8|l.SBOX[255&o],o^=a[s/e|0]<<24):e>6&&s%e==4&&(o=l.SBOX[o>>>24]<<24|l.SBOX[o>>>16&255]<<16|l.SBOX[o>>>8&255]<<8|l.SBOX[255&o]),r[s]=r[s-e]^o}for(var c=[],h=0;h>>24]]^l.INV_SUB_MIX[1][l.SBOX[d>>>16&255]]^l.INV_SUB_MIX[2][l.SBOX[d>>>8&255]]^l.INV_SUB_MIX[3][l.SBOX[255&d]]}this._nRounds=i,this._keySchedule=r,this._invKeySchedule=c},c.prototype.encryptBlockRaw=function(t){return o(t=r(t),this._keySchedule,l.SUB_MIX,l.SBOX,this._nRounds)},c.prototype.encryptBlock=function(t){var e=this.encryptBlockRaw(t),i=n.allocUnsafe(16);return i.writeUInt32BE(e[0],0),i.writeUInt32BE(e[1],4),i.writeUInt32BE(e[2],8),i.writeUInt32BE(e[3],12),i},c.prototype.decryptBlock=function(t){var e=(t=r(t))[1];t[1]=t[3],t[3]=e;var i=o(t,this._invKeySchedule,l.INV_SUB_MIX,l.INV_SBOX,this._nRounds),s=n.allocUnsafe(16);return s.writeUInt32BE(i[0],0),s.writeUInt32BE(i[3],4),s.writeUInt32BE(i[2],8),s.writeUInt32BE(i[1],12),s},c.prototype.scrub=function(){s(this._keySchedule),s(this._invKeySchedule),s(this._key)},t.exports.AES=c},5266:(t,e,i)=>{var n=i(830),r=i(7015).Buffer,s=i(478),o=i(5457),a=i(2104),l=i(9694),c=i(2305);function h(t,e,i,o){s.call(this);var l=r.alloc(4,0);this._cipher=new n.AES(e);var h=this._cipher.encryptBlock(l);this._ghash=new a(h),i=function(t,e,i){if(12===e.length)return t._finID=r.concat([e,r.from([0,0,0,1])]),r.concat([e,r.from([0,0,0,2])]);var n=new a(i),s=e.length,o=s%16;n.update(e),o&&n.update(r.alloc(o=16-o,0)),n.update(r.alloc(8,0));var l=8*s,h=r.alloc(8);h.writeUIntBE(l,0,8),n.update(h),t._finID=n.state;var u=r.from(t._finID);return c(u),u}(this,i,h),this._prev=r.from(i),this._cache=r.allocUnsafe(0),this._secCache=r.allocUnsafe(0),this._decrypt=o,this._alen=0,this._len=0,this._mode=t,this._authTag=null,this._called=!1}o(h,s),h.prototype._update=function(t){if(!this._called&&this._alen){var e=16-this._alen%16;e<16&&(e=r.alloc(e,0),this._ghash.update(e))}this._called=!0;var i=this._mode.encrypt(this,t);return this._ghash.update(this._decrypt?t:i),this._len+=t.length,i},h.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var t=l(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(t,e){var i=0;t.length!==e.length&&i++;for(var n=Math.min(t.length,e.length),r=0;r{var n=i(1898),r=i(1938),s=i(5415);e.createCipher=e.Cipher=n.createCipher,e.createCipheriv=e.Cipheriv=n.createCipheriv,e.createDecipher=e.Decipher=r.createDecipher,e.createDecipheriv=e.Decipheriv=r.createDecipheriv,e.listCiphers=e.getCiphers=function(){return Object.keys(s)}},1938:(t,e,i)=>{var n=i(5266),r=i(7015).Buffer,s=i(7957),o=i(7750),a=i(478),l=i(830),c=i(8386);function h(t,e,i){a.call(this),this._cache=new u,this._last=void 0,this._cipher=new l.AES(e),this._prev=r.from(i),this._mode=t,this._autopadding=!0}function u(){this.cache=r.allocUnsafe(0)}function d(t,e,i){var a=s[t.toLowerCase()];if(!a)throw new TypeError("invalid suite type");if("string"==typeof i&&(i=r.from(i)),"GCM"!==a.mode&&i.length!==a.iv)throw new TypeError("invalid iv length "+i.length);if("string"==typeof e&&(e=r.from(e)),e.length!==a.key/8)throw new TypeError("invalid key length "+e.length);return"stream"===a.type?new o(a.module,e,i,!0):"auth"===a.type?new n(a.module,e,i,!0):new h(a.module,e,i)}i(5457)(h,a),h.prototype._update=function(t){var e,i;this._cache.add(t);for(var n=[];e=this._cache.get(this._autopadding);)i=this._mode.decrypt(this,e),n.push(i);return r.concat(n)},h.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return function(t){var e=t[15];if(e<1||e>16)throw new Error("unable to decrypt data");for(var i=-1;++i16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e}else if(this.cache.length>=16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e;return null},u.prototype.flush=function(){if(this.cache.length)return this.cache},e.createDecipher=function(t,e){var i=s[t.toLowerCase()];if(!i)throw new TypeError("invalid suite type");var n=c(e,!1,i.key,i.iv);return d(t,n.key,n.iv)},e.createDecipheriv=d},1898:(t,e,i)=>{var n=i(7957),r=i(5266),s=i(7015).Buffer,o=i(7750),a=i(478),l=i(830),c=i(8386);function h(t,e,i){a.call(this),this._cache=new d,this._cipher=new l.AES(e),this._prev=s.from(i),this._mode=t,this._autopadding=!0}i(5457)(h,a),h.prototype._update=function(t){var e,i;this._cache.add(t);for(var n=[];e=this._cache.get();)i=this._mode.encrypt(this,e),n.push(i);return s.concat(n)};var u=s.alloc(16,16);function d(){this.cache=s.allocUnsafe(0)}function p(t,e,i){var a=n[t.toLowerCase()];if(!a)throw new TypeError("invalid suite type");if("string"==typeof e&&(e=s.from(e)),e.length!==a.key/8)throw new TypeError("invalid key length "+e.length);if("string"==typeof i&&(i=s.from(i)),"GCM"!==a.mode&&i.length!==a.iv)throw new TypeError("invalid iv length "+i.length);return"stream"===a.type?new o(a.module,e,i):"auth"===a.type?new r(a.module,e,i):new h(a.module,e,i)}h.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return t=this._mode.encrypt(this,t),this._cipher.scrub(),t;if(!t.equals(u))throw this._cipher.scrub(),new Error("data not multiple of block length")},h.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this},d.prototype.add=function(t){this.cache=s.concat([this.cache,t])},d.prototype.get=function(){if(this.cache.length>15){var t=this.cache.slice(0,16);return this.cache=this.cache.slice(16),t}return null},d.prototype.flush=function(){for(var t=16-this.cache.length,e=s.allocUnsafe(t),i=-1;++i{var n=i(7015).Buffer,r=n.alloc(16,0);function s(t){var e=n.allocUnsafe(16);return e.writeUInt32BE(t[0]>>>0,0),e.writeUInt32BE(t[1]>>>0,4),e.writeUInt32BE(t[2]>>>0,8),e.writeUInt32BE(t[3]>>>0,12),e}function o(t){this.h=t,this.state=n.alloc(16,0),this.cache=n.allocUnsafe(0)}o.prototype.ghash=function(t){for(var e=-1;++e0;e--)n[e]=n[e]>>>1|(1&n[e-1])<<31;n[0]=n[0]>>>1,i&&(n[0]=n[0]^225<<24)}this.state=s(r)},o.prototype.update=function(t){var e;for(this.cache=n.concat([this.cache,t]);this.cache.length>=16;)e=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(e)},o.prototype.final=function(t,e){return this.cache.length&&this.ghash(n.concat([this.cache,r],16)),this.ghash(s([0,t,0,e])),this.state},t.exports=o},2305:t=>{t.exports=function(t){for(var e,i=t.length;i--;){if(255!==(e=t.readUInt8(i))){e++,t.writeUInt8(e,i);break}t.writeUInt8(0,i)}}},2570:(t,e,i)=>{var n=i(9694);e.encrypt=function(t,e){var i=n(e,t._prev);return t._prev=t._cipher.encryptBlock(i),t._prev},e.decrypt=function(t,e){var i=t._prev;t._prev=e;var r=t._cipher.decryptBlock(e);return n(r,i)}},1722:(t,e,i)=>{var n=i(7015).Buffer,r=i(9694);function s(t,e,i){var s=e.length,o=r(e,t._cache);return t._cache=t._cache.slice(s),t._prev=n.concat([t._prev,i?e:o]),o}e.encrypt=function(t,e,i){for(var r,o=n.allocUnsafe(0);e.length;){if(0===t._cache.length&&(t._cache=t._cipher.encryptBlock(t._prev),t._prev=n.allocUnsafe(0)),!(t._cache.length<=e.length)){o=n.concat([o,s(t,e,i)]);break}o=n.concat([o,s(t,e.slice(0,r=t._cache.length),i)]),e=e.slice(r)}return o}},3819:(t,e,i)=>{var n=i(7015).Buffer;function r(t,e,i){for(var n,r,o=-1,a=0;++o<8;)a+=(128&(r=t._cipher.encryptBlock(t._prev)[0]^(n=e&1<<7-o?128:0)))>>o%8,t._prev=s(t._prev,i?n:r);return a}function s(t,e){var i=t.length,r=-1,s=n.allocUnsafe(t.length);for(t=n.concat([t,n.from([e])]);++r>7;return s}e.encrypt=function(t,e,i){for(var s=e.length,o=n.allocUnsafe(s),a=-1;++a{var n=i(7015).Buffer;function r(t,e,i){var r=t._cipher.encryptBlock(t._prev)[0]^e;return t._prev=n.concat([t._prev.slice(1),n.from([i?e:r])]),r}e.encrypt=function(t,e,i){for(var s=e.length,o=n.allocUnsafe(s),a=-1;++a{var n=i(9694),r=i(7015).Buffer,s=i(2305);function o(t){var e=t._cipher.encryptBlockRaw(t._prev);return s(t._prev),e}e.encrypt=function(t,e){var i=Math.ceil(e.length/16),s=t._cache.length;t._cache=r.concat([t._cache,r.allocUnsafe(16*i)]);for(var a=0;a{e.encrypt=function(t,e){return t._cipher.encryptBlock(e)},e.decrypt=function(t,e){return t._cipher.decryptBlock(e)}},7957:(t,e,i)=>{var n={ECB:i(3021),CBC:i(2570),CFB:i(1722),CFB8:i(121),CFB1:i(3819),OFB:i(7373),CTR:i(2319),GCM:i(2319)},r=i(5415);for(var s in r)r[s].module=n[r[s].mode];t.exports=r},7373:(t,e,i)=>{var n=i(9694);function r(t){return t._prev=t._cipher.encryptBlock(t._prev),t._prev}e.encrypt=function(t,e){for(;t._cache.length{var n=i(830),r=i(7015).Buffer,s=i(478);function o(t,e,i,o){s.call(this),this._cipher=new n.AES(e),this._prev=r.from(i),this._cache=r.allocUnsafe(0),this._secCache=r.allocUnsafe(0),this._decrypt=o,this._mode=t}i(5457)(o,s),o.prototype._update=function(t){return this._mode.encrypt(this,t,this._decrypt)},o.prototype._final=function(){this._cipher.scrub()},t.exports=o},3320:(t,e,i)=>{var n=i(7321),r=i(3079),s=i(7957),o=i(1395),a=i(8386);function l(t,e,i){if(t=t.toLowerCase(),s[t])return r.createCipheriv(t,e,i);if(o[t])return new n({key:e,iv:i,mode:t});throw new TypeError("invalid suite type")}function c(t,e,i){if(t=t.toLowerCase(),s[t])return r.createDecipheriv(t,e,i);if(o[t])return new n({key:e,iv:i,mode:t,decrypt:!0});throw new TypeError("invalid suite type")}e.createCipher=e.Cipher=function(t,e){var i,n;if(t=t.toLowerCase(),s[t])i=s[t].key,n=s[t].iv;else{if(!o[t])throw new TypeError("invalid suite type");i=8*o[t].key,n=o[t].iv}var r=a(e,!1,i,n);return l(t,r.key,r.iv)},e.createCipheriv=e.Cipheriv=l,e.createDecipher=e.Decipher=function(t,e){var i,n;if(t=t.toLowerCase(),s[t])i=s[t].key,n=s[t].iv;else{if(!o[t])throw new TypeError("invalid suite type");i=8*o[t].key,n=o[t].iv}var r=a(e,!1,i,n);return c(t,r.key,r.iv)},e.createDecipheriv=e.Decipheriv=c,e.listCiphers=e.getCiphers=function(){return Object.keys(o).concat(r.getCiphers())}},7321:(t,e,i)=>{var n=i(478),r=i(6504),s=i(5457),o=i(7015).Buffer,a={"des-ede3-cbc":r.CBC.instantiate(r.EDE),"des-ede3":r.EDE,"des-ede-cbc":r.CBC.instantiate(r.EDE),"des-ede":r.EDE,"des-cbc":r.CBC.instantiate(r.DES),"des-ecb":r.DES};function l(t){n.call(this);var e,i=t.mode.toLowerCase(),r=a[i];e=t.decrypt?"decrypt":"encrypt";var s=t.key;o.isBuffer(s)||(s=o.from(s)),"des-ede"!==i&&"des-ede-cbc"!==i||(s=o.concat([s,s.slice(0,8)]));var l=t.iv;o.isBuffer(l)||(l=o.from(l)),this._des=r.create({key:s,iv:l,type:e})}a.des=a["des-cbc"],a.des3=a["des-ede3-cbc"],t.exports=l,s(l,n),l.prototype._update=function(t){return o.from(this._des.update(t))},l.prototype._final=function(){return o.from(this._des.final())}},1395:(t,e)=>{e["des-ecb"]={key:8,iv:0},e["des-cbc"]=e.des={key:8,iv:8},e["des-ede3-cbc"]=e.des3={key:24,iv:8},e["des-ede3"]={key:24,iv:0},e["des-ede-cbc"]={key:16,iv:8},e["des-ede"]={key:16,iv:0}},4467:(t,e,i)=>{var n=i(4724),r=i(6716);function s(t){var e,i=t.modulus.byteLength();do{e=new n(r(i))}while(e.cmp(t.modulus)>=0||!e.umod(t.prime1)||!e.umod(t.prime2));return e}function o(t,e){var i=function(t){var e=s(t);return{blinder:e.toRed(n.mont(t.modulus)).redPow(new n(t.publicExponent)).fromRed(),unblinder:e.invm(t.modulus)}}(e),r=e.modulus.byteLength(),o=new n(t).mul(i.blinder).umod(e.modulus),a=o.toRed(n.mont(e.prime1)),l=o.toRed(n.mont(e.prime2)),c=e.coefficient,h=e.prime1,u=e.prime2,d=a.redPow(e.exponent1).fromRed(),p=l.redPow(e.exponent2).fromRed(),f=d.isub(p).imul(c).umod(h).imul(u);return p.iadd(f).imul(i.unblinder).umod(e.modulus).toArrayLike(Buffer,"be",r)}o.getr=s,t.exports=o},3373:(t,e,i)=>{t.exports=i(2063)},6865:(t,e,i)=>{var n=i(9851).Buffer,r=i(4500),s=i(7612),o=i(5457),a=i(6360),l=i(2210),c=i(2063);function h(t){s.Writable.call(this);var e=c[t];if(!e)throw new Error("Unknown message digest");this._hashType=e.hash,this._hash=r(e.hash),this._tag=e.id,this._signType=e.sign}function u(t){s.Writable.call(this);var e=c[t];if(!e)throw new Error("Unknown message digest");this._hash=r(e.hash),this._tag=e.id,this._signType=e.sign}function d(t){return new h(t)}function p(t){return new u(t)}Object.keys(c).forEach(function(t){c[t].id=n.from(c[t].id,"hex"),c[t.toLowerCase()]=c[t]}),o(h,s.Writable),h.prototype._write=function(t,e,i){this._hash.update(t),i()},h.prototype.update=function(t,e){return"string"==typeof t&&(t=n.from(t,e)),this._hash.update(t),this},h.prototype.sign=function(t,e){this.end();var i=this._hash.digest(),n=a(i,t,this._hashType,this._signType,this._tag);return e?n.toString(e):n},o(u,s.Writable),u.prototype._write=function(t,e,i){this._hash.update(t),i()},u.prototype.update=function(t,e){return"string"==typeof t&&(t=n.from(t,e)),this._hash.update(t),this},u.prototype.verify=function(t,e,i){"string"==typeof e&&(e=n.from(e,i)),this.end();var r=this._hash.digest();return l(e,r,t,this._signType,this._tag)},t.exports={Sign:d,Verify:p,createSign:d,createVerify:p}},6360:(t,e,i)=>{var n=i(9851).Buffer,r=i(9452),s=i(4467),o=i(905).ec,a=i(4724),l=i(2291),c=i(2236);function h(t,e,i,s){if((t=n.from(t.toArray())).length0&&i.ishrn(n),i}function d(t,e,i){var s,o;do{for(s=n.alloc(0);8*s.length{var n=i(9851).Buffer,r=i(4724),s=i(905).ec,o=i(2291),a=i(2236);function l(t,e){if(t.cmpn(0)<=0)throw new Error("invalid sig");if(t.cmp(e)>=e)throw new Error("invalid sig")}t.exports=function(t,e,i,c,h){var u=o(i);if("ec"===u.type){if("ecdsa"!==c&&"ecdsa/rsa"!==c)throw new Error("wrong public key type");return function(t,e,i){var n=a[i.data.algorithm.curve.join(".")];if(!n)throw new Error("unknown curve "+i.data.algorithm.curve.join("."));return new s(n).verify(e,t,i.data.subjectPrivateKey.data)}(t,e,u)}if("dsa"===u.type){if("dsa"!==c)throw new Error("wrong public key type");return function(t,e,i){var n=i.data.p,s=i.data.q,a=i.data.g,c=i.data.pub_key,h=o.signature.decode(t,"der"),u=h.s,d=h.r;l(u,s),l(d,s);var p=r.mont(n),f=u.invm(s);return 0===a.toRed(p).redPow(new r(e).mul(f).mod(s)).fromRed().mul(c.toRed(p).redPow(d.mul(f).mod(s)).fromRed()).mod(n).mod(s).cmp(d)}(t,e,u)}if("rsa"!==c&&"ecdsa/rsa"!==c)throw new Error("wrong public key type");e=n.concat([h,e]);for(var d=u.modulus.byteLength(),p=[1],f=0;e.length+p.length+2{var n=i(3833),r=n.Buffer;function s(t,e){for(var i in t)e[i]=t[i]}function o(t,e,i){return r(t,e,i)}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?t.exports=n:(s(n,e),e.Buffer=o),o.prototype=Object.create(r.prototype),s(r,o),o.from=function(t,e,i){if("number"==typeof t)throw new TypeError("Argument must not be a number");return r(t,e,i)},o.alloc=function(t,e,i){if("number"!=typeof t)throw new TypeError("Argument must be a number");var n=r(t);return void 0!==e?"string"==typeof i?n.fill(e,i):n.fill(e):n.fill(0),n},o.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return r(t)},o.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},9694:t=>{t.exports=function(t,e){for(var i=Math.min(t.length,e.length),n=new Buffer(i),r=0;r{"use strict";var n=i(6698),r=i(2390),s="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=l,e.SlowBuffer=function(t){return+t!=t&&(t=0),l.alloc(+t)},e.INSPECT_MAX_BYTES=50;var o=2147483647;function a(t){if(t>o)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,l.prototype),e}function l(t,e,i){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return u(t)}return c(t,e,i)}function c(t,e,i){if("string"==typeof t)return function(t,e){if("string"==typeof e&&""!==e||(e="utf8"),!l.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var i=0|m(t,e),n=a(i),r=n.write(t,e);return r!==i&&(n=n.slice(0,r)),n}(t,e);if(ArrayBuffer.isView(t))return function(t){if(q(t,Uint8Array)){var e=new Uint8Array(t);return p(e.buffer,e.byteOffset,e.byteLength)}return d(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(q(t,ArrayBuffer)||t&&q(t.buffer,ArrayBuffer))return p(t,e,i);if("undefined"!=typeof SharedArrayBuffer&&(q(t,SharedArrayBuffer)||t&&q(t.buffer,SharedArrayBuffer)))return p(t,e,i);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return l.from(n,e,i);var r=function(t){if(l.isBuffer(t)){var e=0|f(t.length),i=a(e);return 0===i.length||t.copy(i,0,0,e),i}return void 0!==t.length?"number"!=typeof t.length||z(t.length)?a(0):d(t):"Buffer"===t.type&&Array.isArray(t.data)?d(t.data):void 0}(t);if(r)return r;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return l.from(t[Symbol.toPrimitive]("string"),e,i);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function h(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function u(t){return h(t),a(t<0?0:0|f(t))}function d(t){for(var e=t.length<0?0:0|f(t.length),i=a(e),n=0;n=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|t}function m(t,e){if(l.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||q(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var i=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===i)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":return Z(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return B(t).length;default:if(r)return n?-1:Z(t).length;e=(""+e).toLowerCase(),r=!0}}function g(t,e,i){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===i||i>this.length)&&(i=this.length),i<=0)return"";if((i>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return L(this,e,i);case"utf8":case"utf-8":return E(this,e,i);case"ascii":return T(this,e,i);case"latin1":case"binary":return M(this,e,i);case"base64":return S(this,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,e,i);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function y(t,e,i){var n=t[e];t[e]=t[i],t[i]=n}function b(t,e,i,n,r){if(0===t.length)return-1;if("string"==typeof i?(n=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),z(i=+i)&&(i=r?0:t.length-1),i<0&&(i=t.length+i),i>=t.length){if(r)return-1;i=t.length-1}else if(i<0){if(!r)return-1;i=0}if("string"==typeof e&&(e=l.from(e,n)),l.isBuffer(e))return 0===e.length?-1:v(t,e,i,n,r);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(t,e,i):Uint8Array.prototype.lastIndexOf.call(t,e,i):v(t,[e],i,n,r);throw new TypeError("val must be string, number or Buffer")}function v(t,e,i,n,r){var s,o=1,a=t.length,l=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;o=2,a/=2,l/=2,i/=2}function c(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(r){var h=-1;for(s=i;sa&&(i=a-l),s=i;s>=0;s--){for(var u=!0,d=0;dr&&(n=r):n=r;var s=e.length;n>s/2&&(n=s/2);for(var o=0;o>8,r.push(i%256),r.push(n);return r}(e,t.length-i),t,i,n)}function S(t,e,i){return n.fromByteArray(0===e&&i===t.length?t:t.slice(e,i))}function E(t,e,i){i=Math.min(t.length,i);for(var n=[],r=e;r239?4:c>223?3:c>191?2:1;if(r+u<=i)switch(u){case 1:c<128&&(h=c);break;case 2:128==(192&(s=t[r+1]))&&(l=(31&c)<<6|63&s)>127&&(h=l);break;case 3:o=t[r+2],128==(192&(s=t[r+1]))&&128==(192&o)&&(l=(15&c)<<12|(63&s)<<6|63&o)>2047&&(l<55296||l>57343)&&(h=l);break;case 4:o=t[r+2],a=t[r+3],128==(192&(s=t[r+1]))&&128==(192&o)&&128==(192&a)&&(l=(15&c)<<18|(63&s)<<12|(63&o)<<6|63&a)>65535&&l<1114112&&(h=l)}null===h?(h=65533,u=1):h>65535&&(n.push((h-=65536)>>>10&1023|55296),h=56320|1023&h),n.push(h),r+=u}return function(t){var e=t.length;if(e<=k)return String.fromCharCode.apply(String,t);for(var i="",n=0;nn.length?l.from(s).copy(n,r):Uint8Array.prototype.set.call(n,s,r);else{if(!l.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(n,r)}r+=s.length}return n},l.byteLength=m,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;ei&&(t+=" ... "),""},s&&(l.prototype[s]=l.prototype.inspect),l.prototype.compare=function(t,e,i,n,r){if(q(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===i&&(i=t?t.length:0),void 0===n&&(n=0),void 0===r&&(r=this.length),e<0||i>t.length||n<0||r>this.length)throw new RangeError("out of range index");if(n>=r&&e>=i)return 0;if(n>=r)return-1;if(e>=i)return 1;if(this===t)return 0;for(var s=(r>>>=0)-(n>>>=0),o=(i>>>=0)-(e>>>=0),a=Math.min(s,o),c=this.slice(n,r),h=t.slice(e,i),u=0;u>>=0,isFinite(i)?(i>>>=0,void 0===n&&(n="utf8")):(n=i,i=void 0)}var r=this.length-e;if((void 0===i||i>r)&&(i=r),t.length>0&&(i<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var s=!1;;)switch(n){case"hex":return _(this,t,e,i);case"utf8":case"utf-8":return w(this,t,e,i);case"ascii":case"latin1":case"binary":return x(this,t,e,i);case"base64":return C(this,t,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,t,e,i);default:if(s)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),s=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var k=4096;function T(t,e,i){var n="";i=Math.min(t.length,i);for(var r=e;rn)&&(i=n);for(var r="",s=e;si)throw new RangeError("Trying to access beyond buffer length")}function D(t,e,i,n,r,s){if(!l.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>r||et.length)throw new RangeError("Index out of range")}function R(t,e,i,n,r,s){if(i+n>t.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function N(t,e,i,n,s){return e=+e,i>>>=0,s||R(t,0,i,4),r.write(t,e,i,n,23,4),i+4}function P(t,e,i,n,s){return e=+e,i>>>=0,s||R(t,0,i,8),r.write(t,e,i,n,52,8),i+8}l.prototype.slice=function(t,e){var i=this.length;(t=~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),(e=void 0===e?i:~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),e>>=0,e>>>=0,i||O(t,e,this.length);for(var n=this[t],r=1,s=0;++s>>=0,e>>>=0,i||O(t,e,this.length);for(var n=this[t+--e],r=1;e>0&&(r*=256);)n+=this[t+--e]*r;return n},l.prototype.readUint8=l.prototype.readUInt8=function(t,e){return t>>>=0,e||O(t,1,this.length),this[t]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(t,e){return t>>>=0,e||O(t,2,this.length),this[t]|this[t+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(t,e){return t>>>=0,e||O(t,2,this.length),this[t]<<8|this[t+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(t,e){return t>>>=0,e||O(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(t,e){return t>>>=0,e||O(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},l.prototype.readIntLE=function(t,e,i){t>>>=0,e>>>=0,i||O(t,e,this.length);for(var n=this[t],r=1,s=0;++s=(r*=128)&&(n-=Math.pow(2,8*e)),n},l.prototype.readIntBE=function(t,e,i){t>>>=0,e>>>=0,i||O(t,e,this.length);for(var n=e,r=1,s=this[t+--n];n>0&&(r*=256);)s+=this[t+--n]*r;return s>=(r*=128)&&(s-=Math.pow(2,8*e)),s},l.prototype.readInt8=function(t,e){return t>>>=0,e||O(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},l.prototype.readInt16LE=function(t,e){t>>>=0,e||O(t,2,this.length);var i=this[t]|this[t+1]<<8;return 32768&i?4294901760|i:i},l.prototype.readInt16BE=function(t,e){t>>>=0,e||O(t,2,this.length);var i=this[t+1]|this[t]<<8;return 32768&i?4294901760|i:i},l.prototype.readInt32LE=function(t,e){return t>>>=0,e||O(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},l.prototype.readInt32BE=function(t,e){return t>>>=0,e||O(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},l.prototype.readFloatLE=function(t,e){return t>>>=0,e||O(t,4,this.length),r.read(this,t,!0,23,4)},l.prototype.readFloatBE=function(t,e){return t>>>=0,e||O(t,4,this.length),r.read(this,t,!1,23,4)},l.prototype.readDoubleLE=function(t,e){return t>>>=0,e||O(t,8,this.length),r.read(this,t,!0,52,8)},l.prototype.readDoubleBE=function(t,e){return t>>>=0,e||O(t,8,this.length),r.read(this,t,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(t,e,i,n){t=+t,e>>>=0,i>>>=0,n||D(this,t,e,i,Math.pow(2,8*i)-1,0);var r=1,s=0;for(this[e]=255&t;++s>>=0,i>>>=0,n||D(this,t,e,i,Math.pow(2,8*i)-1,0);var r=i-1,s=1;for(this[e+r]=255&t;--r>=0&&(s*=256);)this[e+r]=t/s&255;return e+i},l.prototype.writeUint8=l.prototype.writeUInt8=function(t,e,i){return t=+t,e>>>=0,i||D(this,t,e,1,255,0),this[e]=255&t,e+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(t,e,i){return t=+t,e>>>=0,i||D(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(t,e,i){return t=+t,e>>>=0,i||D(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(t,e,i){return t=+t,e>>>=0,i||D(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(t,e,i){return t=+t,e>>>=0,i||D(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},l.prototype.writeIntLE=function(t,e,i,n){if(t=+t,e>>>=0,!n){var r=Math.pow(2,8*i-1);D(this,t,e,i,r-1,-r)}var s=0,o=1,a=0;for(this[e]=255&t;++s>0)-a&255;return e+i},l.prototype.writeIntBE=function(t,e,i,n){if(t=+t,e>>>=0,!n){var r=Math.pow(2,8*i-1);D(this,t,e,i,r-1,-r)}var s=i-1,o=1,a=0;for(this[e+s]=255&t;--s>=0&&(o*=256);)t<0&&0===a&&0!==this[e+s+1]&&(a=1),this[e+s]=(t/o>>0)-a&255;return e+i},l.prototype.writeInt8=function(t,e,i){return t=+t,e>>>=0,i||D(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},l.prototype.writeInt16LE=function(t,e,i){return t=+t,e>>>=0,i||D(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},l.prototype.writeInt16BE=function(t,e,i){return t=+t,e>>>=0,i||D(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},l.prototype.writeInt32LE=function(t,e,i){return t=+t,e>>>=0,i||D(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},l.prototype.writeInt32BE=function(t,e,i){return t=+t,e>>>=0,i||D(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},l.prototype.writeFloatLE=function(t,e,i){return N(this,t,e,!0,i)},l.prototype.writeFloatBE=function(t,e,i){return N(this,t,e,!1,i)},l.prototype.writeDoubleLE=function(t,e,i){return P(this,t,e,!0,i)},l.prototype.writeDoubleBE=function(t,e,i){return P(this,t,e,!1,i)},l.prototype.copy=function(t,e,i,n){if(!l.isBuffer(t))throw new TypeError("argument should be a Buffer");if(i||(i=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e>>=0,i=void 0===i?this.length:i>>>0,t||(t=0),"number"==typeof t)for(s=e;s55295&&i<57344){if(!r){if(i>56319){(e-=3)>-1&&s.push(239,191,189);continue}if(o+1===n){(e-=3)>-1&&s.push(239,191,189);continue}r=i;continue}if(i<56320){(e-=3)>-1&&s.push(239,191,189),r=i;continue}i=65536+(r-55296<<10|i-56320)}else r&&(e-=3)>-1&&s.push(239,191,189);if(r=null,i<128){if((e-=1)<0)break;s.push(i)}else if(i<2048){if((e-=2)<0)break;s.push(i>>6|192,63&i|128)}else if(i<65536){if((e-=3)<0)break;s.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;s.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return s}function B(t){return n.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(F,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function U(t,e,i,n){for(var r=0;r=e.length||r>=t.length);++r)e[r+i]=t[r];return r}function q(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function z(t){return t!=t}var H=function(){for(var t="0123456789abcdef",e=new Array(256),i=0;i<16;++i)for(var n=16*i,r=0;r<16;++r)e[n+r]=t[i]+t[r];return e}()},478:(t,e,i)=>{var n=i(7015).Buffer,r=i(7562).Transform,s=i(4706).s;function o(t){r.call(this),this.hashMode="string"==typeof t,this.hashMode?this[t]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}i(5457)(o,r),o.prototype.update=function(t,e,i){"string"==typeof t&&(t=n.from(t,e));var r=this._update(t);return this.hashMode?this:(i&&(r=this._toString(r,i)),r)},o.prototype.setAutoPadding=function(){},o.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},o.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},o.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},o.prototype._transform=function(t,e,i){var n;try{this.hashMode?this._update(t):this.push(this._update(t))}catch(r){n=r}finally{i(n)}},o.prototype._flush=function(t){var e;try{this.push(this.__final())}catch(i){e=i}t(e)},o.prototype._finalOrDigest=function(t){var e=this.__final()||n.alloc(0);return t&&(e=this._toString(e,t,!0)),e},o.prototype._toString=function(t,e,i){if(this._decoder||(this._decoder=new s(e),this._encoding=e),this._encoding!==e)throw new Error("can't switch encodings");var n=this._decoder.write(t);return i&&(n+=this._decoder.end()),n},t.exports=o},1774:function(t){!function(e){"use strict";var i={bytesToHex:function(t){return function(t){return t.map(function(t){return(e=t.toString(16)).length>2?e:Array(2-e.length+1).join("0")+e;var e}).join("")}(t)},hexToBytes:function(t){if(t.length%2==1)throw new Error("hexToBytes can't have a string with an odd number of characters.");return 0===t.indexOf("0x")&&(t=t.slice(2)),t.match(/../g).map(function(t){return parseInt(t,16)})}};t.exports?t.exports=i:e.convertHex=i}(this)},906:function(t){!function(e){"use strict";var i={bytesToString:function(t){return t.map(function(t){return String.fromCharCode(t)}).join("")},stringToBytes:function(t){return t.split("").map(function(t){return t.charCodeAt(0)})}};i.UTF8={bytesToString:function(t){return decodeURIComponent(escape(i.bytesToString(t)))},stringToBytes:function(t){return i.stringToBytes(unescape(encodeURIComponent(t)))}},t.exports?t.exports=i:e.convertString=i}(this)},3513:(t,e,i)=>{var n=i(905),r=i(9680);t.exports=function(t){return new o(t)};var s={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function o(t){this.curveType=s[t],this.curveType||(this.curveType={name:t}),this.curve=new n.ec(this.curveType.name),this.keys=void 0}function a(t,e,i){Array.isArray(t)||(t=t.toArray());var n=new Buffer(t);if(i&&n.length=65&&i<=70?i-55:i>=97&&i<=102?i-87:i-48&15}function l(t,e,i){var n=a(t,i);return i-1>=e&&(n|=a(t,i-1)<<4),n}function c(t,e,i,n){for(var r=0,s=Math.min(t.length,i),o=e;o=49?a-49+10:a>=17?a-17+10:a}return r}s.isBN=function(t){return t instanceof s||null!==t&&"object"==typeof t&&t.constructor.wordSize===s.wordSize&&Array.isArray(t.words)},s.max=function(t,e){return t.cmp(e)>0?t:e},s.min=function(t,e){return t.cmp(e)<0?t:e},s.prototype._init=function(t,e,i){if("number"==typeof t)return this._initNumber(t,e,i);if("object"==typeof t)return this._initArray(t,e,i);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var r=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(r++,this.negative=1),r=0;r-=3)this.words[s]|=(o=t[r]|t[r-1]<<8|t[r-2]<<16)<>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);else if("le"===i)for(r=0,s=0;r>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);return this.strip()},s.prototype._parseHex=function(t,e,i){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n=e;n-=2)r=l(t,e,n)<=18?(s-=18,this.words[o+=1]|=r>>>26):s+=8;else for(n=(t.length-e)%2==0?e+1:e;n=18?(s-=18,this.words[o+=1]|=r>>>26):s+=8;this.strip()},s.prototype._parseBase=function(t,e,i){this.words=[0],this.length=1;for(var n=0,r=1;r<=67108863;r*=e)n++;n--,r=r/e|0;for(var s=t.length-i,o=s%n,a=Math.min(s,s-o)+i,l=0,h=i;h1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?""};var h=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],u=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(t,e,i){i.negative=e.negative^t.negative;var n=t.length+e.length|0;i.length=n,n=n-1|0;var r=0|t.words[0],s=0|e.words[0],o=r*s,a=o/67108864|0;i.words[0]=67108863&o;for(var l=1;l>>26,h=67108863&a,u=Math.min(l,e.length-1),d=Math.max(0,l-t.length+1);d<=u;d++)c+=(o=(r=0|t.words[l-d|0])*(s=0|e.words[d])+h)/67108864|0,h=67108863&o;i.words[l]=0|h,a=0|c}return 0!==a?i.words[l]=0|a:i.length--,i.strip()}s.prototype.toString=function(t,e){var i;if(e=0|e||1,16===(t=t||10)||"hex"===t){i="";for(var r=0,s=0,o=0;o>>24-r&16777215)||o!==this.length-1?h[6-l.length]+l+i:l+i,(r+=2)>=26&&(r-=26,o--)}for(0!==s&&(i=s.toString(16)+i);i.length%e!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(t===(0|t)&&t>=2&&t<=36){var c=u[t],p=d[t];i="";var f=this.clone();for(f.negative=0;!f.isZero();){var m=f.modn(p).toString(t);i=(f=f.idivn(p)).isZero()?m+i:h[c-m.length]+m+i}for(this.isZero()&&(i="0"+i);i.length%e!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}n(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(t,e){return n(void 0!==o),this.toArrayLike(o,t,e)},s.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},s.prototype.toArrayLike=function(t,e,i){var r=this.byteLength(),s=i||Math.max(1,r);n(r<=s,"byte array longer than desired length"),n(s>0,"Requested array length <= 0"),this.strip();var o,a,l="le"===e,c=new t(s),h=this.clone();if(l){for(a=0;!h.isZero();a++)o=h.andln(255),h.iushrn(8),c[a]=o;for(;a=4096&&(i+=13,e>>>=13),e>=64&&(i+=7,e>>>=7),e>=8&&(i+=4,e>>>=4),e>=2&&(i+=2,e>>>=2),i+e},s.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,i=0;return 0==(8191&e)&&(i+=13,e>>>=13),0==(127&e)&&(i+=7,e>>>=7),0==(15&e)&&(i+=4,e>>>=4),0==(3&e)&&(i+=2,e>>>=2),0==(1&e)&&i++,i},s.prototype.bitLength=function(){var t=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+t},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},s.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},s.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var i=0;it.length?this.clone().iand(t):t.clone().iand(this)},s.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},s.prototype.iuxor=function(t){var e,i;this.length>t.length?(e=this,i=t):(e=t,i=this);for(var n=0;nt.length?this.clone().ixor(t):t.clone().ixor(this)},s.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},s.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),i=t%26;this._expand(e),i>0&&e--;for(var r=0;r0&&(this.words[r]=~this.words[r]&67108863>>26-i),this.strip()},s.prototype.notn=function(t){return this.clone().inotn(t)},s.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var i=t/26|0,r=t%26;return this._expand(i+1),this.words[i]=e?this.words[i]|1<t.length?(i=this,n=t):(i=t,n=this);for(var r=0,s=0;s>>26;for(;0!==r&&s>>26;if(this.length=i.length,0!==r)this.words[this.length]=r,this.length++;else if(i!==this)for(;st.length?this.clone().iadd(t):t.clone().iadd(this)},s.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,n,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(i=this,n=t):(i=t,n=this);for(var s=0,o=0;o>26,this.words[o]=67108863&e;for(;0!==s&&o>26,this.words[o]=67108863&e;if(0===s&&o>>13,p=0|o[1],f=8191&p,m=p>>>13,g=0|o[2],y=8191&g,b=g>>>13,v=0|o[3],_=8191&v,w=v>>>13,x=0|o[4],C=8191&x,A=x>>>13,S=0|o[5],E=8191&S,k=S>>>13,T=0|o[6],M=8191&T,L=T>>>13,I=0|o[7],O=8191&I,D=I>>>13,R=0|o[8],N=8191&R,P=R>>>13,F=0|o[9],Z=8191&F,B=F>>>13,U=0|a[0],q=8191&U,z=U>>>13,H=0|a[1],Y=8191&H,G=H>>>13,j=0|a[2],V=8191&j,Q=j>>>13,W=0|a[3],J=8191&W,X=W>>>13,K=0|a[4],$=8191&K,tt=K>>>13,et=0|a[5],it=8191&et,nt=et>>>13,rt=0|a[6],st=8191&rt,ot=rt>>>13,at=0|a[7],lt=8191&at,ct=at>>>13,ht=0|a[8],ut=8191&ht,dt=ht>>>13,pt=0|a[9],ft=8191&pt,mt=pt>>>13;i.negative=t.negative^e.negative,i.length=19;var gt=(c+(n=Math.imul(u,q))|0)+((8191&(r=(r=Math.imul(u,z))+Math.imul(d,q)|0))<<13)|0;c=((s=Math.imul(d,z))+(r>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(f,q),r=(r=Math.imul(f,z))+Math.imul(m,q)|0,s=Math.imul(m,z);var yt=(c+(n=n+Math.imul(u,Y)|0)|0)+((8191&(r=(r=r+Math.imul(u,G)|0)+Math.imul(d,Y)|0))<<13)|0;c=((s=s+Math.imul(d,G)|0)+(r>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(y,q),r=(r=Math.imul(y,z))+Math.imul(b,q)|0,s=Math.imul(b,z),n=n+Math.imul(f,Y)|0,r=(r=r+Math.imul(f,G)|0)+Math.imul(m,Y)|0,s=s+Math.imul(m,G)|0;var bt=(c+(n=n+Math.imul(u,V)|0)|0)+((8191&(r=(r=r+Math.imul(u,Q)|0)+Math.imul(d,V)|0))<<13)|0;c=((s=s+Math.imul(d,Q)|0)+(r>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(_,q),r=(r=Math.imul(_,z))+Math.imul(w,q)|0,s=Math.imul(w,z),n=n+Math.imul(y,Y)|0,r=(r=r+Math.imul(y,G)|0)+Math.imul(b,Y)|0,s=s+Math.imul(b,G)|0,n=n+Math.imul(f,V)|0,r=(r=r+Math.imul(f,Q)|0)+Math.imul(m,V)|0,s=s+Math.imul(m,Q)|0;var vt=(c+(n=n+Math.imul(u,J)|0)|0)+((8191&(r=(r=r+Math.imul(u,X)|0)+Math.imul(d,J)|0))<<13)|0;c=((s=s+Math.imul(d,X)|0)+(r>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(C,q),r=(r=Math.imul(C,z))+Math.imul(A,q)|0,s=Math.imul(A,z),n=n+Math.imul(_,Y)|0,r=(r=r+Math.imul(_,G)|0)+Math.imul(w,Y)|0,s=s+Math.imul(w,G)|0,n=n+Math.imul(y,V)|0,r=(r=r+Math.imul(y,Q)|0)+Math.imul(b,V)|0,s=s+Math.imul(b,Q)|0,n=n+Math.imul(f,J)|0,r=(r=r+Math.imul(f,X)|0)+Math.imul(m,J)|0,s=s+Math.imul(m,X)|0;var _t=(c+(n=n+Math.imul(u,$)|0)|0)+((8191&(r=(r=r+Math.imul(u,tt)|0)+Math.imul(d,$)|0))<<13)|0;c=((s=s+Math.imul(d,tt)|0)+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(E,q),r=(r=Math.imul(E,z))+Math.imul(k,q)|0,s=Math.imul(k,z),n=n+Math.imul(C,Y)|0,r=(r=r+Math.imul(C,G)|0)+Math.imul(A,Y)|0,s=s+Math.imul(A,G)|0,n=n+Math.imul(_,V)|0,r=(r=r+Math.imul(_,Q)|0)+Math.imul(w,V)|0,s=s+Math.imul(w,Q)|0,n=n+Math.imul(y,J)|0,r=(r=r+Math.imul(y,X)|0)+Math.imul(b,J)|0,s=s+Math.imul(b,X)|0,n=n+Math.imul(f,$)|0,r=(r=r+Math.imul(f,tt)|0)+Math.imul(m,$)|0,s=s+Math.imul(m,tt)|0;var wt=(c+(n=n+Math.imul(u,it)|0)|0)+((8191&(r=(r=r+Math.imul(u,nt)|0)+Math.imul(d,it)|0))<<13)|0;c=((s=s+Math.imul(d,nt)|0)+(r>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(M,q),r=(r=Math.imul(M,z))+Math.imul(L,q)|0,s=Math.imul(L,z),n=n+Math.imul(E,Y)|0,r=(r=r+Math.imul(E,G)|0)+Math.imul(k,Y)|0,s=s+Math.imul(k,G)|0,n=n+Math.imul(C,V)|0,r=(r=r+Math.imul(C,Q)|0)+Math.imul(A,V)|0,s=s+Math.imul(A,Q)|0,n=n+Math.imul(_,J)|0,r=(r=r+Math.imul(_,X)|0)+Math.imul(w,J)|0,s=s+Math.imul(w,X)|0,n=n+Math.imul(y,$)|0,r=(r=r+Math.imul(y,tt)|0)+Math.imul(b,$)|0,s=s+Math.imul(b,tt)|0,n=n+Math.imul(f,it)|0,r=(r=r+Math.imul(f,nt)|0)+Math.imul(m,it)|0,s=s+Math.imul(m,nt)|0;var xt=(c+(n=n+Math.imul(u,st)|0)|0)+((8191&(r=(r=r+Math.imul(u,ot)|0)+Math.imul(d,st)|0))<<13)|0;c=((s=s+Math.imul(d,ot)|0)+(r>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(O,q),r=(r=Math.imul(O,z))+Math.imul(D,q)|0,s=Math.imul(D,z),n=n+Math.imul(M,Y)|0,r=(r=r+Math.imul(M,G)|0)+Math.imul(L,Y)|0,s=s+Math.imul(L,G)|0,n=n+Math.imul(E,V)|0,r=(r=r+Math.imul(E,Q)|0)+Math.imul(k,V)|0,s=s+Math.imul(k,Q)|0,n=n+Math.imul(C,J)|0,r=(r=r+Math.imul(C,X)|0)+Math.imul(A,J)|0,s=s+Math.imul(A,X)|0,n=n+Math.imul(_,$)|0,r=(r=r+Math.imul(_,tt)|0)+Math.imul(w,$)|0,s=s+Math.imul(w,tt)|0,n=n+Math.imul(y,it)|0,r=(r=r+Math.imul(y,nt)|0)+Math.imul(b,it)|0,s=s+Math.imul(b,nt)|0,n=n+Math.imul(f,st)|0,r=(r=r+Math.imul(f,ot)|0)+Math.imul(m,st)|0,s=s+Math.imul(m,ot)|0;var Ct=(c+(n=n+Math.imul(u,lt)|0)|0)+((8191&(r=(r=r+Math.imul(u,ct)|0)+Math.imul(d,lt)|0))<<13)|0;c=((s=s+Math.imul(d,ct)|0)+(r>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(N,q),r=(r=Math.imul(N,z))+Math.imul(P,q)|0,s=Math.imul(P,z),n=n+Math.imul(O,Y)|0,r=(r=r+Math.imul(O,G)|0)+Math.imul(D,Y)|0,s=s+Math.imul(D,G)|0,n=n+Math.imul(M,V)|0,r=(r=r+Math.imul(M,Q)|0)+Math.imul(L,V)|0,s=s+Math.imul(L,Q)|0,n=n+Math.imul(E,J)|0,r=(r=r+Math.imul(E,X)|0)+Math.imul(k,J)|0,s=s+Math.imul(k,X)|0,n=n+Math.imul(C,$)|0,r=(r=r+Math.imul(C,tt)|0)+Math.imul(A,$)|0,s=s+Math.imul(A,tt)|0,n=n+Math.imul(_,it)|0,r=(r=r+Math.imul(_,nt)|0)+Math.imul(w,it)|0,s=s+Math.imul(w,nt)|0,n=n+Math.imul(y,st)|0,r=(r=r+Math.imul(y,ot)|0)+Math.imul(b,st)|0,s=s+Math.imul(b,ot)|0,n=n+Math.imul(f,lt)|0,r=(r=r+Math.imul(f,ct)|0)+Math.imul(m,lt)|0,s=s+Math.imul(m,ct)|0;var At=(c+(n=n+Math.imul(u,ut)|0)|0)+((8191&(r=(r=r+Math.imul(u,dt)|0)+Math.imul(d,ut)|0))<<13)|0;c=((s=s+Math.imul(d,dt)|0)+(r>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(Z,q),r=(r=Math.imul(Z,z))+Math.imul(B,q)|0,s=Math.imul(B,z),n=n+Math.imul(N,Y)|0,r=(r=r+Math.imul(N,G)|0)+Math.imul(P,Y)|0,s=s+Math.imul(P,G)|0,n=n+Math.imul(O,V)|0,r=(r=r+Math.imul(O,Q)|0)+Math.imul(D,V)|0,s=s+Math.imul(D,Q)|0,n=n+Math.imul(M,J)|0,r=(r=r+Math.imul(M,X)|0)+Math.imul(L,J)|0,s=s+Math.imul(L,X)|0,n=n+Math.imul(E,$)|0,r=(r=r+Math.imul(E,tt)|0)+Math.imul(k,$)|0,s=s+Math.imul(k,tt)|0,n=n+Math.imul(C,it)|0,r=(r=r+Math.imul(C,nt)|0)+Math.imul(A,it)|0,s=s+Math.imul(A,nt)|0,n=n+Math.imul(_,st)|0,r=(r=r+Math.imul(_,ot)|0)+Math.imul(w,st)|0,s=s+Math.imul(w,ot)|0,n=n+Math.imul(y,lt)|0,r=(r=r+Math.imul(y,ct)|0)+Math.imul(b,lt)|0,s=s+Math.imul(b,ct)|0,n=n+Math.imul(f,ut)|0,r=(r=r+Math.imul(f,dt)|0)+Math.imul(m,ut)|0,s=s+Math.imul(m,dt)|0;var St=(c+(n=n+Math.imul(u,ft)|0)|0)+((8191&(r=(r=r+Math.imul(u,mt)|0)+Math.imul(d,ft)|0))<<13)|0;c=((s=s+Math.imul(d,mt)|0)+(r>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(Z,Y),r=(r=Math.imul(Z,G))+Math.imul(B,Y)|0,s=Math.imul(B,G),n=n+Math.imul(N,V)|0,r=(r=r+Math.imul(N,Q)|0)+Math.imul(P,V)|0,s=s+Math.imul(P,Q)|0,n=n+Math.imul(O,J)|0,r=(r=r+Math.imul(O,X)|0)+Math.imul(D,J)|0,s=s+Math.imul(D,X)|0,n=n+Math.imul(M,$)|0,r=(r=r+Math.imul(M,tt)|0)+Math.imul(L,$)|0,s=s+Math.imul(L,tt)|0,n=n+Math.imul(E,it)|0,r=(r=r+Math.imul(E,nt)|0)+Math.imul(k,it)|0,s=s+Math.imul(k,nt)|0,n=n+Math.imul(C,st)|0,r=(r=r+Math.imul(C,ot)|0)+Math.imul(A,st)|0,s=s+Math.imul(A,ot)|0,n=n+Math.imul(_,lt)|0,r=(r=r+Math.imul(_,ct)|0)+Math.imul(w,lt)|0,s=s+Math.imul(w,ct)|0,n=n+Math.imul(y,ut)|0,r=(r=r+Math.imul(y,dt)|0)+Math.imul(b,ut)|0,s=s+Math.imul(b,dt)|0;var Et=(c+(n=n+Math.imul(f,ft)|0)|0)+((8191&(r=(r=r+Math.imul(f,mt)|0)+Math.imul(m,ft)|0))<<13)|0;c=((s=s+Math.imul(m,mt)|0)+(r>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(Z,V),r=(r=Math.imul(Z,Q))+Math.imul(B,V)|0,s=Math.imul(B,Q),n=n+Math.imul(N,J)|0,r=(r=r+Math.imul(N,X)|0)+Math.imul(P,J)|0,s=s+Math.imul(P,X)|0,n=n+Math.imul(O,$)|0,r=(r=r+Math.imul(O,tt)|0)+Math.imul(D,$)|0,s=s+Math.imul(D,tt)|0,n=n+Math.imul(M,it)|0,r=(r=r+Math.imul(M,nt)|0)+Math.imul(L,it)|0,s=s+Math.imul(L,nt)|0,n=n+Math.imul(E,st)|0,r=(r=r+Math.imul(E,ot)|0)+Math.imul(k,st)|0,s=s+Math.imul(k,ot)|0,n=n+Math.imul(C,lt)|0,r=(r=r+Math.imul(C,ct)|0)+Math.imul(A,lt)|0,s=s+Math.imul(A,ct)|0,n=n+Math.imul(_,ut)|0,r=(r=r+Math.imul(_,dt)|0)+Math.imul(w,ut)|0,s=s+Math.imul(w,dt)|0;var kt=(c+(n=n+Math.imul(y,ft)|0)|0)+((8191&(r=(r=r+Math.imul(y,mt)|0)+Math.imul(b,ft)|0))<<13)|0;c=((s=s+Math.imul(b,mt)|0)+(r>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(Z,J),r=(r=Math.imul(Z,X))+Math.imul(B,J)|0,s=Math.imul(B,X),n=n+Math.imul(N,$)|0,r=(r=r+Math.imul(N,tt)|0)+Math.imul(P,$)|0,s=s+Math.imul(P,tt)|0,n=n+Math.imul(O,it)|0,r=(r=r+Math.imul(O,nt)|0)+Math.imul(D,it)|0,s=s+Math.imul(D,nt)|0,n=n+Math.imul(M,st)|0,r=(r=r+Math.imul(M,ot)|0)+Math.imul(L,st)|0,s=s+Math.imul(L,ot)|0,n=n+Math.imul(E,lt)|0,r=(r=r+Math.imul(E,ct)|0)+Math.imul(k,lt)|0,s=s+Math.imul(k,ct)|0,n=n+Math.imul(C,ut)|0,r=(r=r+Math.imul(C,dt)|0)+Math.imul(A,ut)|0,s=s+Math.imul(A,dt)|0;var Tt=(c+(n=n+Math.imul(_,ft)|0)|0)+((8191&(r=(r=r+Math.imul(_,mt)|0)+Math.imul(w,ft)|0))<<13)|0;c=((s=s+Math.imul(w,mt)|0)+(r>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(Z,$),r=(r=Math.imul(Z,tt))+Math.imul(B,$)|0,s=Math.imul(B,tt),n=n+Math.imul(N,it)|0,r=(r=r+Math.imul(N,nt)|0)+Math.imul(P,it)|0,s=s+Math.imul(P,nt)|0,n=n+Math.imul(O,st)|0,r=(r=r+Math.imul(O,ot)|0)+Math.imul(D,st)|0,s=s+Math.imul(D,ot)|0,n=n+Math.imul(M,lt)|0,r=(r=r+Math.imul(M,ct)|0)+Math.imul(L,lt)|0,s=s+Math.imul(L,ct)|0,n=n+Math.imul(E,ut)|0,r=(r=r+Math.imul(E,dt)|0)+Math.imul(k,ut)|0,s=s+Math.imul(k,dt)|0;var Mt=(c+(n=n+Math.imul(C,ft)|0)|0)+((8191&(r=(r=r+Math.imul(C,mt)|0)+Math.imul(A,ft)|0))<<13)|0;c=((s=s+Math.imul(A,mt)|0)+(r>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(Z,it),r=(r=Math.imul(Z,nt))+Math.imul(B,it)|0,s=Math.imul(B,nt),n=n+Math.imul(N,st)|0,r=(r=r+Math.imul(N,ot)|0)+Math.imul(P,st)|0,s=s+Math.imul(P,ot)|0,n=n+Math.imul(O,lt)|0,r=(r=r+Math.imul(O,ct)|0)+Math.imul(D,lt)|0,s=s+Math.imul(D,ct)|0,n=n+Math.imul(M,ut)|0,r=(r=r+Math.imul(M,dt)|0)+Math.imul(L,ut)|0,s=s+Math.imul(L,dt)|0;var Lt=(c+(n=n+Math.imul(E,ft)|0)|0)+((8191&(r=(r=r+Math.imul(E,mt)|0)+Math.imul(k,ft)|0))<<13)|0;c=((s=s+Math.imul(k,mt)|0)+(r>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,n=Math.imul(Z,st),r=(r=Math.imul(Z,ot))+Math.imul(B,st)|0,s=Math.imul(B,ot),n=n+Math.imul(N,lt)|0,r=(r=r+Math.imul(N,ct)|0)+Math.imul(P,lt)|0,s=s+Math.imul(P,ct)|0,n=n+Math.imul(O,ut)|0,r=(r=r+Math.imul(O,dt)|0)+Math.imul(D,ut)|0,s=s+Math.imul(D,dt)|0;var It=(c+(n=n+Math.imul(M,ft)|0)|0)+((8191&(r=(r=r+Math.imul(M,mt)|0)+Math.imul(L,ft)|0))<<13)|0;c=((s=s+Math.imul(L,mt)|0)+(r>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(Z,lt),r=(r=Math.imul(Z,ct))+Math.imul(B,lt)|0,s=Math.imul(B,ct),n=n+Math.imul(N,ut)|0,r=(r=r+Math.imul(N,dt)|0)+Math.imul(P,ut)|0,s=s+Math.imul(P,dt)|0;var Ot=(c+(n=n+Math.imul(O,ft)|0)|0)+((8191&(r=(r=r+Math.imul(O,mt)|0)+Math.imul(D,ft)|0))<<13)|0;c=((s=s+Math.imul(D,mt)|0)+(r>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(Z,ut),r=(r=Math.imul(Z,dt))+Math.imul(B,ut)|0,s=Math.imul(B,dt);var Dt=(c+(n=n+Math.imul(N,ft)|0)|0)+((8191&(r=(r=r+Math.imul(N,mt)|0)+Math.imul(P,ft)|0))<<13)|0;c=((s=s+Math.imul(P,mt)|0)+(r>>>13)|0)+(Dt>>>26)|0,Dt&=67108863;var Rt=(c+(n=Math.imul(Z,ft))|0)+((8191&(r=(r=Math.imul(Z,mt))+Math.imul(B,ft)|0))<<13)|0;return c=((s=Math.imul(B,mt))+(r>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,l[0]=gt,l[1]=yt,l[2]=bt,l[3]=vt,l[4]=_t,l[5]=wt,l[6]=xt,l[7]=Ct,l[8]=At,l[9]=St,l[10]=Et,l[11]=kt,l[12]=Tt,l[13]=Mt,l[14]=Lt,l[15]=It,l[16]=Ot,l[17]=Dt,l[18]=Rt,0!==c&&(l[19]=c,i.length++),i};function m(t,e,i){return(new g).mulp(t,e,i)}function g(t,e){this.x=t,this.y=e}Math.imul||(f=p),s.prototype.mulTo=function(t,e){var i=this.length+t.length;return 10===this.length&&10===t.length?f(this,t,e):i<63?p(this,t,e):i<1024?function(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var n=0,r=0,s=0;s>>26)|0)>>>26,o&=67108863}i.words[s]=a,n=o,o=r}return 0!==n?i.words[s]=n:i.length--,i.strip()}(this,t,e):m(this,t,e)},g.prototype.makeRBT=function(t){for(var e=new Array(t),i=s.prototype._countBits(t)-1,n=0;n>=1;return n},g.prototype.permute=function(t,e,i,n,r,s){for(var o=0;o>>=1)r++;return 1<>>=13),s>>>=13;for(o=2*e;o>=26,e+=r/67108864|0,e+=s>>>26,this.words[i]=67108863&s}return 0!==e&&(this.words[i]=e,this.length++),this},s.prototype.muln=function(t){return this.clone().imuln(t)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),i=0;i>>n}return e}(t);if(0===e.length)return new s(1);for(var i=this,n=0;n=0);var e,i=t%26,r=(t-i)/26,s=67108863>>>26-i<<26-i;if(0!==i){var o=0;for(e=0;e>>26-i}o&&(this.words[e]=o,this.length++)}if(0!==r){for(e=this.length-1;e>=0;e--)this.words[e+r]=this.words[e];for(e=0;e=0),r=e?(e-e%26)/26:0;var s=t%26,o=Math.min((t-s)/26,this.length),a=67108863^67108863>>>s<o)for(this.length-=o,c=0;c=0&&(0!==h||c>=r);c--){var u=0|this.words[c];this.words[c]=h<<26-s|u>>>s,h=u&a}return l&&0!==h&&(l.words[l.length++]=h),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(t,e,i){return n(0===this.negative),this.iushrn(t,e,i)},s.prototype.shln=function(t){return this.clone().ishln(t)},s.prototype.ushln=function(t){return this.clone().iushln(t)},s.prototype.shrn=function(t){return this.clone().ishrn(t)},s.prototype.ushrn=function(t){return this.clone().iushrn(t)},s.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,i=(t-e)/26;return!(this.length<=i||!(this.words[i]&1<=0);var e=t%26,i=(t-e)/26;return n(0===this.negative,"imaskn works only with positive numbers"),this.length<=i?this:(0!==e&&i++,this.length=Math.min(i,this.length),0!==e&&(this.words[this.length-1]&=67108863^67108863>>>e<=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},s.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(a/67108864|0),this.words[r+i]=67108863&s}for(;r>26,this.words[r+i]=67108863&s;if(0===o)return this.strip();for(n(-1===o),o=0,r=0;r>26,this.words[r]=67108863&s;return this.negative=1,this.strip()},s.prototype._wordDiv=function(t,e){var i,n=this.clone(),r=t,o=0|r.words[r.length-1];0!=(i=26-this._countBits(o))&&(r=r.ushln(i),n.iushln(i),o=0|r.words[r.length-1]);var a,l=n.length-r.length;if("mod"!==e){(a=new s(null)).length=l+1,a.words=new Array(a.length);for(var c=0;c=0;u--){var d=67108864*(0|n.words[r.length+u])+(0|n.words[r.length+u-1]);for(d=Math.min(d/o|0,67108863),n._ishlnsubmul(r,d,u);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(r,1,u),n.isZero()||(n.negative^=1);a&&(a.words[u]=d)}return a&&a.strip(),n.strip(),"div"!==e&&0!==i&&n.iushrn(i),{div:a||null,mod:n}},s.prototype.divmod=function(t,e,i){return n(!t.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(r=a.div.neg()),"div"!==e&&(o=a.mod.neg(),i&&0!==o.negative&&o.iadd(t)),{div:r,mod:o}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(r=a.div.neg()),{div:r,mod:a.mod}):0!=(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(o=a.mod.neg(),i&&0!==o.negative&&o.isub(t)),{div:a.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new s(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new s(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new s(this.modn(t.words[0]))}:this._wordDiv(t,e);var r,o,a},s.prototype.div=function(t){return this.divmod(t,"div",!1).div},s.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},s.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},s.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var i=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),r=t.andln(1),s=i.cmp(n);return s<0||1===r&&0===s?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},s.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,i=0,r=this.length-1;r>=0;r--)i=(e*i+(0|this.words[r]))%t;return i},s.prototype.idivn=function(t){n(t<=67108863);for(var e=0,i=this.length-1;i>=0;i--){var r=(0|this.words[i])+67108864*e;this.words[i]=r/t|0,e=r%t}return this.strip()},s.prototype.divn=function(t){return this.clone().idivn(t)},s.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var r=new s(1),o=new s(0),a=new s(0),l=new s(1),c=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++c;for(var h=i.clone(),u=e.clone();!e.isZero();){for(var d=0,p=1;0==(e.words[0]&p)&&d<26;++d,p<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(r.isOdd()||o.isOdd())&&(r.iadd(h),o.isub(u)),r.iushrn(1),o.iushrn(1);for(var f=0,m=1;0==(i.words[0]&m)&&f<26;++f,m<<=1);if(f>0)for(i.iushrn(f);f-- >0;)(a.isOdd()||l.isOdd())&&(a.iadd(h),l.isub(u)),a.iushrn(1),l.iushrn(1);e.cmp(i)>=0?(e.isub(i),r.isub(a),o.isub(l)):(i.isub(e),a.isub(r),l.isub(o))}return{a:a,b:l,gcd:i.iushln(c)}},s.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var r,o=new s(1),a=new s(0),l=i.clone();e.cmpn(1)>0&&i.cmpn(1)>0;){for(var c=0,h=1;0==(e.words[0]&h)&&c<26;++c,h<<=1);if(c>0)for(e.iushrn(c);c-- >0;)o.isOdd()&&o.iadd(l),o.iushrn(1);for(var u=0,d=1;0==(i.words[0]&d)&&u<26;++u,d<<=1);if(u>0)for(i.iushrn(u);u-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);e.cmp(i)>=0?(e.isub(i),o.isub(a)):(i.isub(e),a.isub(o))}return(r=0===e.cmpn(1)?o:a).cmpn(0)<0&&r.iadd(t),r},s.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),i=t.clone();e.negative=0,i.negative=0;for(var n=0;e.isEven()&&i.isEven();n++)e.iushrn(1),i.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;i.isEven();)i.iushrn(1);var r=e.cmp(i);if(r<0){var s=e;e=i,i=s}else if(0===r||0===i.cmpn(1))break;e.isub(i)}return i.iushln(n)},s.prototype.invm=function(t){return this.egcd(t).a.umod(t)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(t){return this.words[0]&t},s.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,i=(t-e)/26,r=1<>>26,this.words[o]=a&=67108863}return 0!==s&&(this.words[o]=s,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(t){var e,i=t<0;if(0!==this.negative&&!i)return-1;if(0===this.negative&&i)return 1;if(this.strip(),this.length>1)e=1;else{i&&(t=-t),n(t<=67108863,"Number is too big");var r=0|this.words[0];e=r===t?0:rt.length)return 1;if(this.length=0;i--){var n=0|this.words[i],r=0|t.words[i];if(n!==r){nr&&(e=1);break}}return e},s.prototype.gtn=function(t){return 1===this.cmpn(t)},s.prototype.gt=function(t){return 1===this.cmp(t)},s.prototype.gten=function(t){return this.cmpn(t)>=0},s.prototype.gte=function(t){return this.cmp(t)>=0},s.prototype.ltn=function(t){return-1===this.cmpn(t)},s.prototype.lt=function(t){return-1===this.cmp(t)},s.prototype.lten=function(t){return this.cmpn(t)<=0},s.prototype.lte=function(t){return this.cmp(t)<=0},s.prototype.eqn=function(t){return 0===this.cmpn(t)},s.prototype.eq=function(t){return 0===this.cmp(t)},s.red=function(t){return new C(t)},s.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},s.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(t){return this.red=t,this},s.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},s.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},s.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},s.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},s.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},s.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},s.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},s.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},s.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var y={k256:null,p224:null,p192:null,p25519:null};function b(t,e){this.name=t,this.p=new s(e,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function C(t){if("string"==typeof t){var e=s._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function A(t){C.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}b.prototype._tmp=function(){var t=new s(null);return t.words=new Array(Math.ceil(this.n/13)),t},b.prototype.ireduce=function(t){var e,i=t;do{this.split(i,this.tmp),e=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e0?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},b.prototype.split=function(t,e){t.iushrn(this.n,0,e)},b.prototype.imulK=function(t){return t.imul(this.k)},r(v,b),v.prototype.split=function(t,e){for(var i=4194303,n=Math.min(t.length,9),r=0;r>>22,s=o}t.words[r-10]=s>>>=22,t.length-=0===s&&t.length>10?10:9},v.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i>>=26,t.words[i]=r,e=n}return 0!==e&&(t.words[t.length++]=e),t},s._prime=function(t){if(y[t])return y[t];var e;if("k256"===t)e=new v;else if("p224"===t)e=new _;else if("p192"===t)e=new w;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new x}return y[t]=e,e},C.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},C.prototype._verify2=function(t,e){n(0==(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},C.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},C.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},C.prototype.add=function(t,e){this._verify2(t,e);var i=t.add(e);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},C.prototype.iadd=function(t,e){this._verify2(t,e);var i=t.iadd(e);return i.cmp(this.m)>=0&&i.isub(this.m),i},C.prototype.sub=function(t,e){this._verify2(t,e);var i=t.sub(e);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},C.prototype.isub=function(t,e){this._verify2(t,e);var i=t.isub(e);return i.cmpn(0)<0&&i.iadd(this.m),i},C.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},C.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},C.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},C.prototype.isqr=function(t){return this.imul(t,t.clone())},C.prototype.sqr=function(t){return this.mul(t,t)},C.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var i=this.m.add(new s(1)).iushrn(2);return this.pow(t,i)}for(var r=this.m.subn(1),o=0;!r.isZero()&&0===r.andln(1);)o++,r.iushrn(1);n(!r.isZero());var a=new s(1).toRed(this),l=a.redNeg(),c=this.m.subn(1).iushrn(1),h=this.m.bitLength();for(h=new s(2*h*h).toRed(this);0!==this.pow(h,c).cmp(l);)h.redIAdd(l);for(var u=this.pow(h,r),d=this.pow(t,r.addn(1).iushrn(1)),p=this.pow(t,r),f=o;0!==p.cmp(a);){for(var m=p,g=0;0!==m.cmp(a);g++)m=m.redSqr();n(g=0;n--){for(var c=e.words[n],h=l-1;h>=0;h--){var u=c>>h&1;r!==i[0]&&(r=this.sqr(r)),0!==u||0!==o?(o<<=1,o|=u,(4==++a||0===n&&0===h)&&(r=this.mul(r,i[o]),a=0,o=0)):a=0}l=26}return r},C.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},C.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},s.mont=function(t){return new A(t)},r(A,C),A.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},A.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},A.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var i=t.imul(e),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),s=r;return r.cmp(this.m)>=0?s=r.isub(this.m):r.cmpn(0)<0&&(s=r.iadd(this.m)),s._forceRed(this)},A.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new s(0)._forceRed(this);var i=t.mul(e),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),o=r;return r.cmp(this.m)>=0?o=r.isub(this.m):r.cmpn(0)<0&&(o=r.iadd(this.m)),o._forceRed(this)},A.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=i.nmd(t),this)},4500:(t,e,i)=>{"use strict";var n=i(5457),r=i(9233),s=i(3827),o=i(8687),a=i(478);function l(t){a.call(this,"digest"),this._hash=t}n(l,a),l.prototype._update=function(t){this._hash.update(t)},l.prototype._final=function(){return this._hash.digest()},t.exports=function(t){return"md5"===(t=t.toLowerCase())?new r:"rmd160"===t||"ripemd160"===t?new s:new l(o(t))}},3072:(t,e,i)=>{var n=i(9233);t.exports=function(t){return(new n).update(t).digest()}},9452:(t,e,i)=>{"use strict";var n=i(5457),r=i(7107),s=i(478),o=i(7015).Buffer,a=i(3072),l=i(3827),c=i(8687),h=o.alloc(128);function u(t,e){s.call(this,"digest"),"string"==typeof e&&(e=o.from(e));var i="sha512"===t||"sha384"===t?128:64;this._alg=t,this._key=e,e.length>i?e=("rmd160"===t?new l:c(t)).update(e).digest():e.length{"use strict";var n=i(5457),r=i(7015).Buffer,s=i(478),o=r.alloc(128),a=64;function l(t,e){s.call(this,"digest"),"string"==typeof e&&(e=r.from(e)),this._alg=t,this._key=e,e.length>a?e=t(e):e.length{"use strict";e.randomBytes=e.rng=e.pseudoRandomBytes=e.prng=i(6716),e.createHash=e.Hash=i(4500),e.createHmac=e.Hmac=i(9452);var n=i(3373),r=Object.keys(n),s=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(r);e.getHashes=function(){return s};var o=i(8094);e.pbkdf2=o.pbkdf2,e.pbkdf2Sync=o.pbkdf2Sync;var a=i(3320);e.Cipher=a.Cipher,e.createCipher=a.createCipher,e.Cipheriv=a.Cipheriv,e.createCipheriv=a.createCipheriv,e.Decipher=a.Decipher,e.createDecipher=a.createDecipher,e.Decipheriv=a.Decipheriv,e.createDecipheriv=a.createDecipheriv,e.getCiphers=a.getCiphers,e.listCiphers=a.listCiphers;var l=i(223);e.DiffieHellmanGroup=l.DiffieHellmanGroup,e.createDiffieHellmanGroup=l.createDiffieHellmanGroup,e.getDiffieHellman=l.getDiffieHellman,e.createDiffieHellman=l.createDiffieHellman,e.DiffieHellman=l.DiffieHellman;var c=i(6865);e.createSign=c.createSign,e.Sign=c.Sign,e.createVerify=c.createVerify,e.Verify=c.Verify,e.createECDH=i(3513);var h=i(7351);e.publicEncrypt=h.publicEncrypt,e.privateEncrypt=h.privateEncrypt,e.publicDecrypt=h.publicDecrypt,e.privateDecrypt=h.privateDecrypt;var u=i(1999);e.randomFill=u.randomFill,e.randomFillSync=u.randomFillSync,e.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},e.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},6504:(t,e,i)=>{"use strict";e.utils=i(3777),e.Cipher=i(1887),e.DES=i(8276),e.CBC=i(7029),e.EDE=i(7e3)},7029:(t,e,i)=>{"use strict";var n=i(523),r=i(5457),s={};function o(t){n.equal(t.length,8,"Invalid IV length"),this.iv=new Array(8);for(var e=0;e{"use strict";var n=i(523);function r(t){this.options=t,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}t.exports=r,r.prototype._init=function(){},r.prototype.update=function(t){return 0===t.length?[]:"decrypt"===this.type?this._updateDecrypt(t):this._updateEncrypt(t)},r.prototype._buffer=function(t,e){for(var i=Math.min(this.buffer.length-this.bufferOff,t.length-e),n=0;n0;n--)e+=this._buffer(t,e),i+=this._flushBuffer(r,i);return e+=this._buffer(t,e),r},r.prototype.final=function(t){var e,i;return t&&(e=this.update(t)),i="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),e?e.concat(i):i},r.prototype._pad=function(t,e){if(0===e)return!1;for(;e{"use strict";var n=i(523),r=i(5457),s=i(3777),o=i(1887);function a(){this.tmp=new Array(2),this.keys=null}function l(t){o.call(this,t);var e=new a;this._desState=e,this.deriveKeys(e,t.key)}r(l,o),t.exports=l,l.create=function(t){return new l(t)};var c=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];l.prototype.deriveKeys=function(t,e){t.keys=new Array(32),n.equal(e.length,this.blockSize,"Invalid key length");var i=s.readUInt32BE(e,0),r=s.readUInt32BE(e,4);s.pc1(i,r,t.tmp,0),i=t.tmp[0],r=t.tmp[1];for(var o=0;o>>1];i=s.r28shl(i,a),r=s.r28shl(r,a),s.pc2(i,r,t.keys,o)}},l.prototype._update=function(t,e,i,n){var r=this._desState,o=s.readUInt32BE(t,e),a=s.readUInt32BE(t,e+4);s.ip(o,a,r.tmp,0),o=r.tmp[0],a=r.tmp[1],"encrypt"===this.type?this._encrypt(r,o,a,r.tmp,0):this._decrypt(r,o,a,r.tmp,0),a=r.tmp[1],s.writeUInt32BE(i,o=r.tmp[0],n),s.writeUInt32BE(i,a,n+4)},l.prototype._pad=function(t,e){for(var i=t.length-e,n=e;n>>0,o=d}s.rip(a,o,n,r)},l.prototype._decrypt=function(t,e,i,n,r){for(var o=i,a=e,l=t.keys.length-2;l>=0;l-=2){var c=t.keys[l],h=t.keys[l+1];s.expand(o,t.tmp,0);var u=s.substitute(c^=t.tmp[0],h^=t.tmp[1]),d=o;o=(a^s.permute(u))>>>0,a=d}s.rip(o,a,n,r)}},7e3:(t,e,i)=>{"use strict";var n=i(523),r=i(5457),s=i(1887),o=i(8276);function a(t,e){n.equal(e.length,24,"Invalid key length");var i=e.slice(0,8),r=e.slice(8,16),s=e.slice(16,24);this.ciphers="encrypt"===t?[o.create({type:"encrypt",key:i}),o.create({type:"decrypt",key:r}),o.create({type:"encrypt",key:s})]:[o.create({type:"decrypt",key:s}),o.create({type:"encrypt",key:r}),o.create({type:"decrypt",key:i})]}function l(t){s.call(this,t);var e=new a(this.type,this.options.key);this._edeState=e}r(l,s),t.exports=l,l.create=function(t){return new l(t)},l.prototype._update=function(t,e,i,n){var r=this._edeState;r.ciphers[0]._update(t,e,i,n),r.ciphers[1]._update(i,n,i,n),r.ciphers[2]._update(i,n,i,n)},l.prototype._pad=o.prototype._pad,l.prototype._unpad=o.prototype._unpad},3777:(t,e)=>{"use strict";e.readUInt32BE=function(t,e){return(t[0+e]<<24|t[1+e]<<16|t[2+e]<<8|t[3+e])>>>0},e.writeUInt32BE=function(t,e,i){t[0+i]=e>>>24,t[1+i]=e>>>16&255,t[2+i]=e>>>8&255,t[3+i]=255&e},e.ip=function(t,e,i,n){for(var r=0,s=0,o=6;o>=0;o-=2){for(var a=0;a<=24;a+=8)r<<=1,r|=e>>>a+o&1;for(a=0;a<=24;a+=8)r<<=1,r|=t>>>a+o&1}for(o=6;o>=0;o-=2){for(a=1;a<=25;a+=8)s<<=1,s|=e>>>a+o&1;for(a=1;a<=25;a+=8)s<<=1,s|=t>>>a+o&1}i[n+0]=r>>>0,i[n+1]=s>>>0},e.rip=function(t,e,i,n){for(var r=0,s=0,o=0;o<4;o++)for(var a=24;a>=0;a-=8)r<<=1,r|=e>>>a+o&1,r<<=1,r|=t>>>a+o&1;for(o=4;o<8;o++)for(a=24;a>=0;a-=8)s<<=1,s|=e>>>a+o&1,s<<=1,s|=t>>>a+o&1;i[n+0]=r>>>0,i[n+1]=s>>>0},e.pc1=function(t,e,i,n){for(var r=0,s=0,o=7;o>=5;o--){for(var a=0;a<=24;a+=8)r<<=1,r|=e>>a+o&1;for(a=0;a<=24;a+=8)r<<=1,r|=t>>a+o&1}for(a=0;a<=24;a+=8)r<<=1,r|=e>>a+o&1;for(o=1;o<=3;o++){for(a=0;a<=24;a+=8)s<<=1,s|=e>>a+o&1;for(a=0;a<=24;a+=8)s<<=1,s|=t>>a+o&1}for(a=0;a<=24;a+=8)s<<=1,s|=t>>a+o&1;i[n+0]=r>>>0,i[n+1]=s>>>0},e.r28shl=function(t,e){return t<>>28-e};var i=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];e.pc2=function(t,e,n,r){for(var s=0,o=0,a=i.length>>>1,l=0;l>>i[l]&1;for(l=a;l>>i[l]&1;n[r+0]=s>>>0,n[r+1]=o>>>0},e.expand=function(t,e,i){var n=0,r=0;n=(1&t)<<5|t>>>27;for(var s=23;s>=15;s-=4)n<<=6,n|=t>>>s&63;for(s=11;s>=3;s-=4)r|=t>>>s&63,r<<=6;r|=(31&t)<<1|t>>>31,e[i+0]=n>>>0,e[i+1]=r>>>0};var n=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];e.substitute=function(t,e){for(var i=0,r=0;r<4;r++)i<<=4,i|=n[64*r+(t>>>18-6*r&63)];for(r=0;r<4;r++)i<<=4,i|=n[256+64*r+(e>>>18-6*r&63)];return i>>>0};var r=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];e.permute=function(t){for(var e=0,i=0;i>>r[i]&1;return e>>>0},e.padSplit=function(t,e,i){for(var n=t.toString(2);n.length{var n=i(1901),r=i(1930),s=i(429),o={binary:!0,hex:!0,base64:!0};e.DiffieHellmanGroup=e.createDiffieHellmanGroup=e.getDiffieHellman=function(t){var e=new Buffer(r[t].prime,"hex"),i=new Buffer(r[t].gen,"hex");return new s(e,i)},e.createDiffieHellman=e.DiffieHellman=function t(e,i,r,a){return Buffer.isBuffer(i)||void 0===o[i]?t(e,"binary",i,r):(i=i||"binary",a=a||"binary",r=r||new Buffer([2]),Buffer.isBuffer(r)||(r=new Buffer(r,a)),"number"==typeof e?new s(n(e,r),r,!0):(Buffer.isBuffer(e)||(e=new Buffer(e,i)),new s(e,r,!0)))}},429:(t,e,i)=>{var n=i(7299),r=new(i(2533)),s=new n(24),o=new n(11),a=new n(10),l=new n(3),c=new n(7),h=i(1901),u=i(6716);function d(t,e){return e=e||"utf8",Buffer.isBuffer(t)||(t=new Buffer(t,e)),this._pub=new n(t),this}function p(t,e){return e=e||"utf8",Buffer.isBuffer(t)||(t=new Buffer(t,e)),this._priv=new n(t),this}t.exports=m;var f={};function m(t,e,i){this.setGenerator(e),this.__prime=new n(t),this._prime=n.mont(this.__prime),this._primeLen=t.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,i?(this.setPublicKey=d,this.setPrivateKey=p):this._primeCode=8}function g(t,e){var i=new Buffer(t.toArray());return e?i.toString(e):i}Object.defineProperty(m.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(t,e){var i=e.toString("hex"),n=[i,t.toString(16)].join("_");if(n in f)return f[n];var u,d=0;if(t.isEven()||!h.simpleSieve||!h.fermatTest(t)||!r.test(t))return d+=1,f[n]=d+="02"===i||"05"===i?8:4,d;switch(r.test(t.shrn(1))||(d+=2),i){case"02":t.mod(s).cmp(o)&&(d+=8);break;case"05":(u=t.mod(a)).cmp(l)&&u.cmp(c)&&(d+=8);break;default:d+=4}return f[n]=d,d}(this.__prime,this.__gen)),this._primeCode}}),m.prototype.generateKeys=function(){return this._priv||(this._priv=new n(u(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},m.prototype.computeSecret=function(t){var e=(t=(t=new n(t)).toRed(this._prime)).redPow(this._priv).fromRed(),i=new Buffer(e.toArray()),r=this.getPrime();if(i.length{var n=i(6716);t.exports=b,b.simpleSieve=g,b.fermatTest=y;var r=i(7299),s=new r(24),o=new(i(2533)),a=new r(1),l=new r(2),c=new r(5),h=(new r(16),new r(8),new r(10)),u=new r(3),d=(new r(7),new r(11)),p=new r(4),f=(new r(12),null);function m(){if(null!==f)return f;var t=[];t[0]=2;for(var e=1,i=3;i<1048576;i+=2){for(var n=Math.ceil(Math.sqrt(i)),r=0;rt;)i.ishrn(1);if(i.isEven()&&i.iadd(a),i.testn(1)||i.iadd(l),e.cmp(l)){if(!e.cmp(c))for(;i.mod(h).cmp(u);)i.iadd(p)}else for(;i.mod(s).cmp(d);)i.iadd(p);if(g(f=i.shrn(1))&&g(i)&&y(f)&&y(i)&&o.test(f)&&o.test(i))return i}}},7299:function(t,e,i){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function r(t,e){t.super_=e;var i=function(){};i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}function s(t,e,i){if(s.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(i=e,e=10),this._init(t||0,e||10,i||"be"))}var o;"object"==typeof t?t.exports=s:e.BN=s,s.BN=s,s.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:i(8623).Buffer}catch(S){}function a(t,e){var i=t.charCodeAt(e);return i>=65&&i<=70?i-55:i>=97&&i<=102?i-87:i-48&15}function l(t,e,i){var n=a(t,i);return i-1>=e&&(n|=a(t,i-1)<<4),n}function c(t,e,i,n){for(var r=0,s=Math.min(t.length,i),o=e;o=49?a-49+10:a>=17?a-17+10:a}return r}s.isBN=function(t){return t instanceof s||null!==t&&"object"==typeof t&&t.constructor.wordSize===s.wordSize&&Array.isArray(t.words)},s.max=function(t,e){return t.cmp(e)>0?t:e},s.min=function(t,e){return t.cmp(e)<0?t:e},s.prototype._init=function(t,e,i){if("number"==typeof t)return this._initNumber(t,e,i);if("object"==typeof t)return this._initArray(t,e,i);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var r=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(r++,this.negative=1),r=0;r-=3)this.words[s]|=(o=t[r]|t[r-1]<<8|t[r-2]<<16)<>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);else if("le"===i)for(r=0,s=0;r>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);return this.strip()},s.prototype._parseHex=function(t,e,i){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n=e;n-=2)r=l(t,e,n)<=18?(s-=18,this.words[o+=1]|=r>>>26):s+=8;else for(n=(t.length-e)%2==0?e+1:e;n=18?(s-=18,this.words[o+=1]|=r>>>26):s+=8;this.strip()},s.prototype._parseBase=function(t,e,i){this.words=[0],this.length=1;for(var n=0,r=1;r<=67108863;r*=e)n++;n--,r=r/e|0;for(var s=t.length-i,o=s%n,a=Math.min(s,s-o)+i,l=0,h=i;h1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?""};var h=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],u=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(t,e,i){i.negative=e.negative^t.negative;var n=t.length+e.length|0;i.length=n,n=n-1|0;var r=0|t.words[0],s=0|e.words[0],o=r*s,a=o/67108864|0;i.words[0]=67108863&o;for(var l=1;l>>26,h=67108863&a,u=Math.min(l,e.length-1),d=Math.max(0,l-t.length+1);d<=u;d++)c+=(o=(r=0|t.words[l-d|0])*(s=0|e.words[d])+h)/67108864|0,h=67108863&o;i.words[l]=0|h,a=0|c}return 0!==a?i.words[l]=0|a:i.length--,i.strip()}s.prototype.toString=function(t,e){var i;if(e=0|e||1,16===(t=t||10)||"hex"===t){i="";for(var r=0,s=0,o=0;o>>24-r&16777215)||o!==this.length-1?h[6-l.length]+l+i:l+i,(r+=2)>=26&&(r-=26,o--)}for(0!==s&&(i=s.toString(16)+i);i.length%e!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(t===(0|t)&&t>=2&&t<=36){var c=u[t],p=d[t];i="";var f=this.clone();for(f.negative=0;!f.isZero();){var m=f.modn(p).toString(t);i=(f=f.idivn(p)).isZero()?m+i:h[c-m.length]+m+i}for(this.isZero()&&(i="0"+i);i.length%e!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}n(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(t,e){return n(void 0!==o),this.toArrayLike(o,t,e)},s.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},s.prototype.toArrayLike=function(t,e,i){var r=this.byteLength(),s=i||Math.max(1,r);n(r<=s,"byte array longer than desired length"),n(s>0,"Requested array length <= 0"),this.strip();var o,a,l="le"===e,c=new t(s),h=this.clone();if(l){for(a=0;!h.isZero();a++)o=h.andln(255),h.iushrn(8),c[a]=o;for(;a=4096&&(i+=13,e>>>=13),e>=64&&(i+=7,e>>>=7),e>=8&&(i+=4,e>>>=4),e>=2&&(i+=2,e>>>=2),i+e},s.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,i=0;return 0==(8191&e)&&(i+=13,e>>>=13),0==(127&e)&&(i+=7,e>>>=7),0==(15&e)&&(i+=4,e>>>=4),0==(3&e)&&(i+=2,e>>>=2),0==(1&e)&&i++,i},s.prototype.bitLength=function(){var t=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+t},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},s.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},s.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var i=0;it.length?this.clone().iand(t):t.clone().iand(this)},s.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},s.prototype.iuxor=function(t){var e,i;this.length>t.length?(e=this,i=t):(e=t,i=this);for(var n=0;nt.length?this.clone().ixor(t):t.clone().ixor(this)},s.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},s.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),i=t%26;this._expand(e),i>0&&e--;for(var r=0;r0&&(this.words[r]=~this.words[r]&67108863>>26-i),this.strip()},s.prototype.notn=function(t){return this.clone().inotn(t)},s.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var i=t/26|0,r=t%26;return this._expand(i+1),this.words[i]=e?this.words[i]|1<t.length?(i=this,n=t):(i=t,n=this);for(var r=0,s=0;s>>26;for(;0!==r&&s>>26;if(this.length=i.length,0!==r)this.words[this.length]=r,this.length++;else if(i!==this)for(;st.length?this.clone().iadd(t):t.clone().iadd(this)},s.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,n,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(i=this,n=t):(i=t,n=this);for(var s=0,o=0;o>26,this.words[o]=67108863&e;for(;0!==s&&o>26,this.words[o]=67108863&e;if(0===s&&o>>13,p=0|o[1],f=8191&p,m=p>>>13,g=0|o[2],y=8191&g,b=g>>>13,v=0|o[3],_=8191&v,w=v>>>13,x=0|o[4],C=8191&x,A=x>>>13,S=0|o[5],E=8191&S,k=S>>>13,T=0|o[6],M=8191&T,L=T>>>13,I=0|o[7],O=8191&I,D=I>>>13,R=0|o[8],N=8191&R,P=R>>>13,F=0|o[9],Z=8191&F,B=F>>>13,U=0|a[0],q=8191&U,z=U>>>13,H=0|a[1],Y=8191&H,G=H>>>13,j=0|a[2],V=8191&j,Q=j>>>13,W=0|a[3],J=8191&W,X=W>>>13,K=0|a[4],$=8191&K,tt=K>>>13,et=0|a[5],it=8191&et,nt=et>>>13,rt=0|a[6],st=8191&rt,ot=rt>>>13,at=0|a[7],lt=8191&at,ct=at>>>13,ht=0|a[8],ut=8191&ht,dt=ht>>>13,pt=0|a[9],ft=8191&pt,mt=pt>>>13;i.negative=t.negative^e.negative,i.length=19;var gt=(c+(n=Math.imul(u,q))|0)+((8191&(r=(r=Math.imul(u,z))+Math.imul(d,q)|0))<<13)|0;c=((s=Math.imul(d,z))+(r>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(f,q),r=(r=Math.imul(f,z))+Math.imul(m,q)|0,s=Math.imul(m,z);var yt=(c+(n=n+Math.imul(u,Y)|0)|0)+((8191&(r=(r=r+Math.imul(u,G)|0)+Math.imul(d,Y)|0))<<13)|0;c=((s=s+Math.imul(d,G)|0)+(r>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(y,q),r=(r=Math.imul(y,z))+Math.imul(b,q)|0,s=Math.imul(b,z),n=n+Math.imul(f,Y)|0,r=(r=r+Math.imul(f,G)|0)+Math.imul(m,Y)|0,s=s+Math.imul(m,G)|0;var bt=(c+(n=n+Math.imul(u,V)|0)|0)+((8191&(r=(r=r+Math.imul(u,Q)|0)+Math.imul(d,V)|0))<<13)|0;c=((s=s+Math.imul(d,Q)|0)+(r>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(_,q),r=(r=Math.imul(_,z))+Math.imul(w,q)|0,s=Math.imul(w,z),n=n+Math.imul(y,Y)|0,r=(r=r+Math.imul(y,G)|0)+Math.imul(b,Y)|0,s=s+Math.imul(b,G)|0,n=n+Math.imul(f,V)|0,r=(r=r+Math.imul(f,Q)|0)+Math.imul(m,V)|0,s=s+Math.imul(m,Q)|0;var vt=(c+(n=n+Math.imul(u,J)|0)|0)+((8191&(r=(r=r+Math.imul(u,X)|0)+Math.imul(d,J)|0))<<13)|0;c=((s=s+Math.imul(d,X)|0)+(r>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(C,q),r=(r=Math.imul(C,z))+Math.imul(A,q)|0,s=Math.imul(A,z),n=n+Math.imul(_,Y)|0,r=(r=r+Math.imul(_,G)|0)+Math.imul(w,Y)|0,s=s+Math.imul(w,G)|0,n=n+Math.imul(y,V)|0,r=(r=r+Math.imul(y,Q)|0)+Math.imul(b,V)|0,s=s+Math.imul(b,Q)|0,n=n+Math.imul(f,J)|0,r=(r=r+Math.imul(f,X)|0)+Math.imul(m,J)|0,s=s+Math.imul(m,X)|0;var _t=(c+(n=n+Math.imul(u,$)|0)|0)+((8191&(r=(r=r+Math.imul(u,tt)|0)+Math.imul(d,$)|0))<<13)|0;c=((s=s+Math.imul(d,tt)|0)+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(E,q),r=(r=Math.imul(E,z))+Math.imul(k,q)|0,s=Math.imul(k,z),n=n+Math.imul(C,Y)|0,r=(r=r+Math.imul(C,G)|0)+Math.imul(A,Y)|0,s=s+Math.imul(A,G)|0,n=n+Math.imul(_,V)|0,r=(r=r+Math.imul(_,Q)|0)+Math.imul(w,V)|0,s=s+Math.imul(w,Q)|0,n=n+Math.imul(y,J)|0,r=(r=r+Math.imul(y,X)|0)+Math.imul(b,J)|0,s=s+Math.imul(b,X)|0,n=n+Math.imul(f,$)|0,r=(r=r+Math.imul(f,tt)|0)+Math.imul(m,$)|0,s=s+Math.imul(m,tt)|0;var wt=(c+(n=n+Math.imul(u,it)|0)|0)+((8191&(r=(r=r+Math.imul(u,nt)|0)+Math.imul(d,it)|0))<<13)|0;c=((s=s+Math.imul(d,nt)|0)+(r>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(M,q),r=(r=Math.imul(M,z))+Math.imul(L,q)|0,s=Math.imul(L,z),n=n+Math.imul(E,Y)|0,r=(r=r+Math.imul(E,G)|0)+Math.imul(k,Y)|0,s=s+Math.imul(k,G)|0,n=n+Math.imul(C,V)|0,r=(r=r+Math.imul(C,Q)|0)+Math.imul(A,V)|0,s=s+Math.imul(A,Q)|0,n=n+Math.imul(_,J)|0,r=(r=r+Math.imul(_,X)|0)+Math.imul(w,J)|0,s=s+Math.imul(w,X)|0,n=n+Math.imul(y,$)|0,r=(r=r+Math.imul(y,tt)|0)+Math.imul(b,$)|0,s=s+Math.imul(b,tt)|0,n=n+Math.imul(f,it)|0,r=(r=r+Math.imul(f,nt)|0)+Math.imul(m,it)|0,s=s+Math.imul(m,nt)|0;var xt=(c+(n=n+Math.imul(u,st)|0)|0)+((8191&(r=(r=r+Math.imul(u,ot)|0)+Math.imul(d,st)|0))<<13)|0;c=((s=s+Math.imul(d,ot)|0)+(r>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(O,q),r=(r=Math.imul(O,z))+Math.imul(D,q)|0,s=Math.imul(D,z),n=n+Math.imul(M,Y)|0,r=(r=r+Math.imul(M,G)|0)+Math.imul(L,Y)|0,s=s+Math.imul(L,G)|0,n=n+Math.imul(E,V)|0,r=(r=r+Math.imul(E,Q)|0)+Math.imul(k,V)|0,s=s+Math.imul(k,Q)|0,n=n+Math.imul(C,J)|0,r=(r=r+Math.imul(C,X)|0)+Math.imul(A,J)|0,s=s+Math.imul(A,X)|0,n=n+Math.imul(_,$)|0,r=(r=r+Math.imul(_,tt)|0)+Math.imul(w,$)|0,s=s+Math.imul(w,tt)|0,n=n+Math.imul(y,it)|0,r=(r=r+Math.imul(y,nt)|0)+Math.imul(b,it)|0,s=s+Math.imul(b,nt)|0,n=n+Math.imul(f,st)|0,r=(r=r+Math.imul(f,ot)|0)+Math.imul(m,st)|0,s=s+Math.imul(m,ot)|0;var Ct=(c+(n=n+Math.imul(u,lt)|0)|0)+((8191&(r=(r=r+Math.imul(u,ct)|0)+Math.imul(d,lt)|0))<<13)|0;c=((s=s+Math.imul(d,ct)|0)+(r>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(N,q),r=(r=Math.imul(N,z))+Math.imul(P,q)|0,s=Math.imul(P,z),n=n+Math.imul(O,Y)|0,r=(r=r+Math.imul(O,G)|0)+Math.imul(D,Y)|0,s=s+Math.imul(D,G)|0,n=n+Math.imul(M,V)|0,r=(r=r+Math.imul(M,Q)|0)+Math.imul(L,V)|0,s=s+Math.imul(L,Q)|0,n=n+Math.imul(E,J)|0,r=(r=r+Math.imul(E,X)|0)+Math.imul(k,J)|0,s=s+Math.imul(k,X)|0,n=n+Math.imul(C,$)|0,r=(r=r+Math.imul(C,tt)|0)+Math.imul(A,$)|0,s=s+Math.imul(A,tt)|0,n=n+Math.imul(_,it)|0,r=(r=r+Math.imul(_,nt)|0)+Math.imul(w,it)|0,s=s+Math.imul(w,nt)|0,n=n+Math.imul(y,st)|0,r=(r=r+Math.imul(y,ot)|0)+Math.imul(b,st)|0,s=s+Math.imul(b,ot)|0,n=n+Math.imul(f,lt)|0,r=(r=r+Math.imul(f,ct)|0)+Math.imul(m,lt)|0,s=s+Math.imul(m,ct)|0;var At=(c+(n=n+Math.imul(u,ut)|0)|0)+((8191&(r=(r=r+Math.imul(u,dt)|0)+Math.imul(d,ut)|0))<<13)|0;c=((s=s+Math.imul(d,dt)|0)+(r>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(Z,q),r=(r=Math.imul(Z,z))+Math.imul(B,q)|0,s=Math.imul(B,z),n=n+Math.imul(N,Y)|0,r=(r=r+Math.imul(N,G)|0)+Math.imul(P,Y)|0,s=s+Math.imul(P,G)|0,n=n+Math.imul(O,V)|0,r=(r=r+Math.imul(O,Q)|0)+Math.imul(D,V)|0,s=s+Math.imul(D,Q)|0,n=n+Math.imul(M,J)|0,r=(r=r+Math.imul(M,X)|0)+Math.imul(L,J)|0,s=s+Math.imul(L,X)|0,n=n+Math.imul(E,$)|0,r=(r=r+Math.imul(E,tt)|0)+Math.imul(k,$)|0,s=s+Math.imul(k,tt)|0,n=n+Math.imul(C,it)|0,r=(r=r+Math.imul(C,nt)|0)+Math.imul(A,it)|0,s=s+Math.imul(A,nt)|0,n=n+Math.imul(_,st)|0,r=(r=r+Math.imul(_,ot)|0)+Math.imul(w,st)|0,s=s+Math.imul(w,ot)|0,n=n+Math.imul(y,lt)|0,r=(r=r+Math.imul(y,ct)|0)+Math.imul(b,lt)|0,s=s+Math.imul(b,ct)|0,n=n+Math.imul(f,ut)|0,r=(r=r+Math.imul(f,dt)|0)+Math.imul(m,ut)|0,s=s+Math.imul(m,dt)|0;var St=(c+(n=n+Math.imul(u,ft)|0)|0)+((8191&(r=(r=r+Math.imul(u,mt)|0)+Math.imul(d,ft)|0))<<13)|0;c=((s=s+Math.imul(d,mt)|0)+(r>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(Z,Y),r=(r=Math.imul(Z,G))+Math.imul(B,Y)|0,s=Math.imul(B,G),n=n+Math.imul(N,V)|0,r=(r=r+Math.imul(N,Q)|0)+Math.imul(P,V)|0,s=s+Math.imul(P,Q)|0,n=n+Math.imul(O,J)|0,r=(r=r+Math.imul(O,X)|0)+Math.imul(D,J)|0,s=s+Math.imul(D,X)|0,n=n+Math.imul(M,$)|0,r=(r=r+Math.imul(M,tt)|0)+Math.imul(L,$)|0,s=s+Math.imul(L,tt)|0,n=n+Math.imul(E,it)|0,r=(r=r+Math.imul(E,nt)|0)+Math.imul(k,it)|0,s=s+Math.imul(k,nt)|0,n=n+Math.imul(C,st)|0,r=(r=r+Math.imul(C,ot)|0)+Math.imul(A,st)|0,s=s+Math.imul(A,ot)|0,n=n+Math.imul(_,lt)|0,r=(r=r+Math.imul(_,ct)|0)+Math.imul(w,lt)|0,s=s+Math.imul(w,ct)|0,n=n+Math.imul(y,ut)|0,r=(r=r+Math.imul(y,dt)|0)+Math.imul(b,ut)|0,s=s+Math.imul(b,dt)|0;var Et=(c+(n=n+Math.imul(f,ft)|0)|0)+((8191&(r=(r=r+Math.imul(f,mt)|0)+Math.imul(m,ft)|0))<<13)|0;c=((s=s+Math.imul(m,mt)|0)+(r>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(Z,V),r=(r=Math.imul(Z,Q))+Math.imul(B,V)|0,s=Math.imul(B,Q),n=n+Math.imul(N,J)|0,r=(r=r+Math.imul(N,X)|0)+Math.imul(P,J)|0,s=s+Math.imul(P,X)|0,n=n+Math.imul(O,$)|0,r=(r=r+Math.imul(O,tt)|0)+Math.imul(D,$)|0,s=s+Math.imul(D,tt)|0,n=n+Math.imul(M,it)|0,r=(r=r+Math.imul(M,nt)|0)+Math.imul(L,it)|0,s=s+Math.imul(L,nt)|0,n=n+Math.imul(E,st)|0,r=(r=r+Math.imul(E,ot)|0)+Math.imul(k,st)|0,s=s+Math.imul(k,ot)|0,n=n+Math.imul(C,lt)|0,r=(r=r+Math.imul(C,ct)|0)+Math.imul(A,lt)|0,s=s+Math.imul(A,ct)|0,n=n+Math.imul(_,ut)|0,r=(r=r+Math.imul(_,dt)|0)+Math.imul(w,ut)|0,s=s+Math.imul(w,dt)|0;var kt=(c+(n=n+Math.imul(y,ft)|0)|0)+((8191&(r=(r=r+Math.imul(y,mt)|0)+Math.imul(b,ft)|0))<<13)|0;c=((s=s+Math.imul(b,mt)|0)+(r>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(Z,J),r=(r=Math.imul(Z,X))+Math.imul(B,J)|0,s=Math.imul(B,X),n=n+Math.imul(N,$)|0,r=(r=r+Math.imul(N,tt)|0)+Math.imul(P,$)|0,s=s+Math.imul(P,tt)|0,n=n+Math.imul(O,it)|0,r=(r=r+Math.imul(O,nt)|0)+Math.imul(D,it)|0,s=s+Math.imul(D,nt)|0,n=n+Math.imul(M,st)|0,r=(r=r+Math.imul(M,ot)|0)+Math.imul(L,st)|0,s=s+Math.imul(L,ot)|0,n=n+Math.imul(E,lt)|0,r=(r=r+Math.imul(E,ct)|0)+Math.imul(k,lt)|0,s=s+Math.imul(k,ct)|0,n=n+Math.imul(C,ut)|0,r=(r=r+Math.imul(C,dt)|0)+Math.imul(A,ut)|0,s=s+Math.imul(A,dt)|0;var Tt=(c+(n=n+Math.imul(_,ft)|0)|0)+((8191&(r=(r=r+Math.imul(_,mt)|0)+Math.imul(w,ft)|0))<<13)|0;c=((s=s+Math.imul(w,mt)|0)+(r>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(Z,$),r=(r=Math.imul(Z,tt))+Math.imul(B,$)|0,s=Math.imul(B,tt),n=n+Math.imul(N,it)|0,r=(r=r+Math.imul(N,nt)|0)+Math.imul(P,it)|0,s=s+Math.imul(P,nt)|0,n=n+Math.imul(O,st)|0,r=(r=r+Math.imul(O,ot)|0)+Math.imul(D,st)|0,s=s+Math.imul(D,ot)|0,n=n+Math.imul(M,lt)|0,r=(r=r+Math.imul(M,ct)|0)+Math.imul(L,lt)|0,s=s+Math.imul(L,ct)|0,n=n+Math.imul(E,ut)|0,r=(r=r+Math.imul(E,dt)|0)+Math.imul(k,ut)|0,s=s+Math.imul(k,dt)|0;var Mt=(c+(n=n+Math.imul(C,ft)|0)|0)+((8191&(r=(r=r+Math.imul(C,mt)|0)+Math.imul(A,ft)|0))<<13)|0;c=((s=s+Math.imul(A,mt)|0)+(r>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(Z,it),r=(r=Math.imul(Z,nt))+Math.imul(B,it)|0,s=Math.imul(B,nt),n=n+Math.imul(N,st)|0,r=(r=r+Math.imul(N,ot)|0)+Math.imul(P,st)|0,s=s+Math.imul(P,ot)|0,n=n+Math.imul(O,lt)|0,r=(r=r+Math.imul(O,ct)|0)+Math.imul(D,lt)|0,s=s+Math.imul(D,ct)|0,n=n+Math.imul(M,ut)|0,r=(r=r+Math.imul(M,dt)|0)+Math.imul(L,ut)|0,s=s+Math.imul(L,dt)|0;var Lt=(c+(n=n+Math.imul(E,ft)|0)|0)+((8191&(r=(r=r+Math.imul(E,mt)|0)+Math.imul(k,ft)|0))<<13)|0;c=((s=s+Math.imul(k,mt)|0)+(r>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,n=Math.imul(Z,st),r=(r=Math.imul(Z,ot))+Math.imul(B,st)|0,s=Math.imul(B,ot),n=n+Math.imul(N,lt)|0,r=(r=r+Math.imul(N,ct)|0)+Math.imul(P,lt)|0,s=s+Math.imul(P,ct)|0,n=n+Math.imul(O,ut)|0,r=(r=r+Math.imul(O,dt)|0)+Math.imul(D,ut)|0,s=s+Math.imul(D,dt)|0;var It=(c+(n=n+Math.imul(M,ft)|0)|0)+((8191&(r=(r=r+Math.imul(M,mt)|0)+Math.imul(L,ft)|0))<<13)|0;c=((s=s+Math.imul(L,mt)|0)+(r>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(Z,lt),r=(r=Math.imul(Z,ct))+Math.imul(B,lt)|0,s=Math.imul(B,ct),n=n+Math.imul(N,ut)|0,r=(r=r+Math.imul(N,dt)|0)+Math.imul(P,ut)|0,s=s+Math.imul(P,dt)|0;var Ot=(c+(n=n+Math.imul(O,ft)|0)|0)+((8191&(r=(r=r+Math.imul(O,mt)|0)+Math.imul(D,ft)|0))<<13)|0;c=((s=s+Math.imul(D,mt)|0)+(r>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(Z,ut),r=(r=Math.imul(Z,dt))+Math.imul(B,ut)|0,s=Math.imul(B,dt);var Dt=(c+(n=n+Math.imul(N,ft)|0)|0)+((8191&(r=(r=r+Math.imul(N,mt)|0)+Math.imul(P,ft)|0))<<13)|0;c=((s=s+Math.imul(P,mt)|0)+(r>>>13)|0)+(Dt>>>26)|0,Dt&=67108863;var Rt=(c+(n=Math.imul(Z,ft))|0)+((8191&(r=(r=Math.imul(Z,mt))+Math.imul(B,ft)|0))<<13)|0;return c=((s=Math.imul(B,mt))+(r>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,l[0]=gt,l[1]=yt,l[2]=bt,l[3]=vt,l[4]=_t,l[5]=wt,l[6]=xt,l[7]=Ct,l[8]=At,l[9]=St,l[10]=Et,l[11]=kt,l[12]=Tt,l[13]=Mt,l[14]=Lt,l[15]=It,l[16]=Ot,l[17]=Dt,l[18]=Rt,0!==c&&(l[19]=c,i.length++),i};function m(t,e,i){return(new g).mulp(t,e,i)}function g(t,e){this.x=t,this.y=e}Math.imul||(f=p),s.prototype.mulTo=function(t,e){var i=this.length+t.length;return 10===this.length&&10===t.length?f(this,t,e):i<63?p(this,t,e):i<1024?function(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var n=0,r=0,s=0;s>>26)|0)>>>26,o&=67108863}i.words[s]=a,n=o,o=r}return 0!==n?i.words[s]=n:i.length--,i.strip()}(this,t,e):m(this,t,e)},g.prototype.makeRBT=function(t){for(var e=new Array(t),i=s.prototype._countBits(t)-1,n=0;n>=1;return n},g.prototype.permute=function(t,e,i,n,r,s){for(var o=0;o>>=1)r++;return 1<>>=13),s>>>=13;for(o=2*e;o>=26,e+=r/67108864|0,e+=s>>>26,this.words[i]=67108863&s}return 0!==e&&(this.words[i]=e,this.length++),this},s.prototype.muln=function(t){return this.clone().imuln(t)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),i=0;i>>n}return e}(t);if(0===e.length)return new s(1);for(var i=this,n=0;n=0);var e,i=t%26,r=(t-i)/26,s=67108863>>>26-i<<26-i;if(0!==i){var o=0;for(e=0;e>>26-i}o&&(this.words[e]=o,this.length++)}if(0!==r){for(e=this.length-1;e>=0;e--)this.words[e+r]=this.words[e];for(e=0;e=0),r=e?(e-e%26)/26:0;var s=t%26,o=Math.min((t-s)/26,this.length),a=67108863^67108863>>>s<o)for(this.length-=o,c=0;c=0&&(0!==h||c>=r);c--){var u=0|this.words[c];this.words[c]=h<<26-s|u>>>s,h=u&a}return l&&0!==h&&(l.words[l.length++]=h),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(t,e,i){return n(0===this.negative),this.iushrn(t,e,i)},s.prototype.shln=function(t){return this.clone().ishln(t)},s.prototype.ushln=function(t){return this.clone().iushln(t)},s.prototype.shrn=function(t){return this.clone().ishrn(t)},s.prototype.ushrn=function(t){return this.clone().iushrn(t)},s.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,i=(t-e)/26;return!(this.length<=i||!(this.words[i]&1<=0);var e=t%26,i=(t-e)/26;return n(0===this.negative,"imaskn works only with positive numbers"),this.length<=i?this:(0!==e&&i++,this.length=Math.min(i,this.length),0!==e&&(this.words[this.length-1]&=67108863^67108863>>>e<=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},s.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(a/67108864|0),this.words[r+i]=67108863&s}for(;r>26,this.words[r+i]=67108863&s;if(0===o)return this.strip();for(n(-1===o),o=0,r=0;r>26,this.words[r]=67108863&s;return this.negative=1,this.strip()},s.prototype._wordDiv=function(t,e){var i,n=this.clone(),r=t,o=0|r.words[r.length-1];0!=(i=26-this._countBits(o))&&(r=r.ushln(i),n.iushln(i),o=0|r.words[r.length-1]);var a,l=n.length-r.length;if("mod"!==e){(a=new s(null)).length=l+1,a.words=new Array(a.length);for(var c=0;c=0;u--){var d=67108864*(0|n.words[r.length+u])+(0|n.words[r.length+u-1]);for(d=Math.min(d/o|0,67108863),n._ishlnsubmul(r,d,u);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(r,1,u),n.isZero()||(n.negative^=1);a&&(a.words[u]=d)}return a&&a.strip(),n.strip(),"div"!==e&&0!==i&&n.iushrn(i),{div:a||null,mod:n}},s.prototype.divmod=function(t,e,i){return n(!t.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(r=a.div.neg()),"div"!==e&&(o=a.mod.neg(),i&&0!==o.negative&&o.iadd(t)),{div:r,mod:o}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(r=a.div.neg()),{div:r,mod:a.mod}):0!=(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(o=a.mod.neg(),i&&0!==o.negative&&o.isub(t)),{div:a.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new s(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new s(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new s(this.modn(t.words[0]))}:this._wordDiv(t,e);var r,o,a},s.prototype.div=function(t){return this.divmod(t,"div",!1).div},s.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},s.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},s.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var i=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),r=t.andln(1),s=i.cmp(n);return s<0||1===r&&0===s?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},s.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,i=0,r=this.length-1;r>=0;r--)i=(e*i+(0|this.words[r]))%t;return i},s.prototype.idivn=function(t){n(t<=67108863);for(var e=0,i=this.length-1;i>=0;i--){var r=(0|this.words[i])+67108864*e;this.words[i]=r/t|0,e=r%t}return this.strip()},s.prototype.divn=function(t){return this.clone().idivn(t)},s.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var r=new s(1),o=new s(0),a=new s(0),l=new s(1),c=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++c;for(var h=i.clone(),u=e.clone();!e.isZero();){for(var d=0,p=1;0==(e.words[0]&p)&&d<26;++d,p<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(r.isOdd()||o.isOdd())&&(r.iadd(h),o.isub(u)),r.iushrn(1),o.iushrn(1);for(var f=0,m=1;0==(i.words[0]&m)&&f<26;++f,m<<=1);if(f>0)for(i.iushrn(f);f-- >0;)(a.isOdd()||l.isOdd())&&(a.iadd(h),l.isub(u)),a.iushrn(1),l.iushrn(1);e.cmp(i)>=0?(e.isub(i),r.isub(a),o.isub(l)):(i.isub(e),a.isub(r),l.isub(o))}return{a:a,b:l,gcd:i.iushln(c)}},s.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var r,o=new s(1),a=new s(0),l=i.clone();e.cmpn(1)>0&&i.cmpn(1)>0;){for(var c=0,h=1;0==(e.words[0]&h)&&c<26;++c,h<<=1);if(c>0)for(e.iushrn(c);c-- >0;)o.isOdd()&&o.iadd(l),o.iushrn(1);for(var u=0,d=1;0==(i.words[0]&d)&&u<26;++u,d<<=1);if(u>0)for(i.iushrn(u);u-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);e.cmp(i)>=0?(e.isub(i),o.isub(a)):(i.isub(e),a.isub(o))}return(r=0===e.cmpn(1)?o:a).cmpn(0)<0&&r.iadd(t),r},s.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),i=t.clone();e.negative=0,i.negative=0;for(var n=0;e.isEven()&&i.isEven();n++)e.iushrn(1),i.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;i.isEven();)i.iushrn(1);var r=e.cmp(i);if(r<0){var s=e;e=i,i=s}else if(0===r||0===i.cmpn(1))break;e.isub(i)}return i.iushln(n)},s.prototype.invm=function(t){return this.egcd(t).a.umod(t)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(t){return this.words[0]&t},s.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,i=(t-e)/26,r=1<>>26,this.words[o]=a&=67108863}return 0!==s&&(this.words[o]=s,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(t){var e,i=t<0;if(0!==this.negative&&!i)return-1;if(0===this.negative&&i)return 1;if(this.strip(),this.length>1)e=1;else{i&&(t=-t),n(t<=67108863,"Number is too big");var r=0|this.words[0];e=r===t?0:rt.length)return 1;if(this.length=0;i--){var n=0|this.words[i],r=0|t.words[i];if(n!==r){nr&&(e=1);break}}return e},s.prototype.gtn=function(t){return 1===this.cmpn(t)},s.prototype.gt=function(t){return 1===this.cmp(t)},s.prototype.gten=function(t){return this.cmpn(t)>=0},s.prototype.gte=function(t){return this.cmp(t)>=0},s.prototype.ltn=function(t){return-1===this.cmpn(t)},s.prototype.lt=function(t){return-1===this.cmp(t)},s.prototype.lten=function(t){return this.cmpn(t)<=0},s.prototype.lte=function(t){return this.cmp(t)<=0},s.prototype.eqn=function(t){return 0===this.cmpn(t)},s.prototype.eq=function(t){return 0===this.cmp(t)},s.red=function(t){return new C(t)},s.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},s.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(t){return this.red=t,this},s.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},s.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},s.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},s.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},s.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},s.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},s.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},s.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},s.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var y={k256:null,p224:null,p192:null,p25519:null};function b(t,e){this.name=t,this.p=new s(e,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function C(t){if("string"==typeof t){var e=s._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function A(t){C.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}b.prototype._tmp=function(){var t=new s(null);return t.words=new Array(Math.ceil(this.n/13)),t},b.prototype.ireduce=function(t){var e,i=t;do{this.split(i,this.tmp),e=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e0?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},b.prototype.split=function(t,e){t.iushrn(this.n,0,e)},b.prototype.imulK=function(t){return t.imul(this.k)},r(v,b),v.prototype.split=function(t,e){for(var i=4194303,n=Math.min(t.length,9),r=0;r>>22,s=o}t.words[r-10]=s>>>=22,t.length-=0===s&&t.length>10?10:9},v.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i>>=26,t.words[i]=r,e=n}return 0!==e&&(t.words[t.length++]=e),t},s._prime=function(t){if(y[t])return y[t];var e;if("k256"===t)e=new v;else if("p224"===t)e=new _;else if("p192"===t)e=new w;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new x}return y[t]=e,e},C.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},C.prototype._verify2=function(t,e){n(0==(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},C.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},C.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},C.prototype.add=function(t,e){this._verify2(t,e);var i=t.add(e);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},C.prototype.iadd=function(t,e){this._verify2(t,e);var i=t.iadd(e);return i.cmp(this.m)>=0&&i.isub(this.m),i},C.prototype.sub=function(t,e){this._verify2(t,e);var i=t.sub(e);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},C.prototype.isub=function(t,e){this._verify2(t,e);var i=t.isub(e);return i.cmpn(0)<0&&i.iadd(this.m),i},C.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},C.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},C.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},C.prototype.isqr=function(t){return this.imul(t,t.clone())},C.prototype.sqr=function(t){return this.mul(t,t)},C.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var i=this.m.add(new s(1)).iushrn(2);return this.pow(t,i)}for(var r=this.m.subn(1),o=0;!r.isZero()&&0===r.andln(1);)o++,r.iushrn(1);n(!r.isZero());var a=new s(1).toRed(this),l=a.redNeg(),c=this.m.subn(1).iushrn(1),h=this.m.bitLength();for(h=new s(2*h*h).toRed(this);0!==this.pow(h,c).cmp(l);)h.redIAdd(l);for(var u=this.pow(h,r),d=this.pow(t,r.addn(1).iushrn(1)),p=this.pow(t,r),f=o;0!==p.cmp(a);){for(var m=p,g=0;0!==m.cmp(a);g++)m=m.redSqr();n(g=0;n--){for(var c=e.words[n],h=l-1;h>=0;h--){var u=c>>h&1;r!==i[0]&&(r=this.sqr(r)),0!==u||0!==o?(o<<=1,o|=u,(4==++a||0===n&&0===h)&&(r=this.mul(r,i[o]),a=0,o=0)):a=0}l=26}return r},C.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},C.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},s.mont=function(t){return new A(t)},r(A,C),A.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},A.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},A.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var i=t.imul(e),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),s=r;return r.cmp(this.m)>=0?s=r.isub(this.m):r.cmpn(0)<0&&(s=r.iadd(this.m)),s._forceRed(this)},A.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new s(0)._forceRed(this);var i=t.mul(e),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),o=r;return r.cmp(this.m)>=0?o=r.isub(this.m):r.cmpn(0)<0&&(o=r.iadd(this.m)),o._forceRed(this)},A.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=i.nmd(t),this)},45:t=>{"use strict";var e={single_source_shortest_paths:function(t,i,n){var r={},s={};s[i]=0;var o,a,l,c,h,u,d=e.PriorityQueue.make();for(d.push(i,0);!d.empty();)for(l in c=(o=d.pop()).cost,h=t[a=o.value]||{})h.hasOwnProperty(l)&&(u=c+h[l],(void 0===s[l]||s[l]>u)&&(s[l]=u,d.push(l,u),r[l]=a));if(void 0!==n&&void 0===s[n]){var p=["Could not find a path from ",i," to ",n,"."].join("");throw new Error(p)}return r},extract_shortest_path_from_predecessor_list:function(t,e){for(var i=[],n=e;n;)i.push(n),n=t[n];return i.reverse(),i},find_path:function(t,i,n){var r=e.single_source_shortest_paths(t,i,n);return e.extract_shortest_path_from_predecessor_list(r,n)},PriorityQueue:{make:function(t){var i,n=e.PriorityQueue,r={};for(i in t=t||{},n)n.hasOwnProperty(i)&&(r[i]=n[i]);return r.queue=[],r.sorter=t.sorter||n.default_sorter,r},default_sorter:function(t,e){return t.cost-e.cost},push:function(t,e){this.queue.push({value:t,cost:e}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};t.exports=e},905:(t,e,i)=>{"use strict";var n=e;n.version=i(7519).i8,n.utils=i(3930),n.rand=i(8520),n.curve=i(4367),n.curves=i(2709),n.ec=i(260),n.eddsa=i(2038)},2134:(t,e,i)=>{"use strict";var n=i(8183),r=i(3930),s=r.getNAF,o=r.getJSF,a=r.assert;function l(t,e){this.type=t,this.p=new n(e.p,16),this.red=e.prime?n.red(e.prime):n.mont(this.p),this.zero=new n(0).toRed(this.red),this.one=new n(1).toRed(this.red),this.two=new n(2).toRed(this.red),this.n=e.n&&new n(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var i=this.n&&this.p.div(this.n);!i||i.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function c(t,e){this.curve=t,this.type=e,this.precomputed=null}t.exports=l,l.prototype.point=function(){throw new Error("Not implemented")},l.prototype.validate=function(){throw new Error("Not implemented")},l.prototype._fixedNafMul=function(t,e){a(t.precomputed);var i=t._getDoubles(),n=s(e,1,this._bitLength),r=(1<=o;h--)l=(l<<1)+n[h];c.push(l)}for(var u=this.jpoint(null,null,null),d=this.jpoint(null,null,null),p=r;p>0;p--){for(o=0;o=0;c--){for(var h=0;c>=0&&0===o[c];c--)h++;if(c>=0&&h++,l=l.dblp(h),c<0)break;var u=o[c];a(0!==u),l="affine"===t.type?l.mixedAdd(u>0?r[u-1>>1]:r[-u-1>>1].neg()):l.add(u>0?r[u-1>>1]:r[-u-1>>1].neg())}return"affine"===t.type?l.toP():l},l.prototype._wnafMulAdd=function(t,e,i,n,r){var a,l,c,h=this._wnafT1,u=this._wnafT2,d=this._wnafT3,p=0;for(a=0;a=1;a-=2){var m=a-1,g=a;if(1===h[m]&&1===h[g]){var y=[e[m],null,null,e[g]];0===e[m].y.cmp(e[g].y)?(y[1]=e[m].add(e[g]),y[2]=e[m].toJ().mixedAdd(e[g].neg())):0===e[m].y.cmp(e[g].y.redNeg())?(y[1]=e[m].toJ().mixedAdd(e[g]),y[2]=e[m].add(e[g].neg())):(y[1]=e[m].toJ().mixedAdd(e[g]),y[2]=e[m].toJ().mixedAdd(e[g].neg()));var b=[-3,-1,-5,-7,0,7,5,1,3],v=o(i[m],i[g]);for(p=Math.max(v[0].length,p),d[m]=new Array(p),d[g]=new Array(p),l=0;l=0;a--){for(var x=0;a>=0;){var C=!0;for(l=0;l=0&&x++,_=_.dblp(x),a<0)break;for(l=0;l0?c=u[l][A-1>>1]:A<0&&(c=u[l][-A-1>>1].neg()),_="affine"===c.type?_.mixedAdd(c):_.add(c))}}for(a=0;a=Math.ceil((t.bitLength()+1)/e.step)},c.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var i=[this],n=this,r=0;r{"use strict";var n=i(3930),r=i(8183),s=i(5457),o=i(2134),a=n.assert;function l(t){this.twisted=1!=(0|t.a),this.mOneA=this.twisted&&-1==(0|t.a),this.extended=this.mOneA,o.call(this,"edwards",t),this.a=new r(t.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new r(t.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new r(t.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),a(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|t.c)}function c(t,e,i,n,s){o.BasePoint.call(this,t,"projective"),null===e&&null===i&&null===n?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new r(e,16),this.y=new r(i,16),this.z=n?new r(n,16):this.curve.one,this.t=s&&new r(s,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}s(l,o),t.exports=l,l.prototype._mulA=function(t){return this.mOneA?t.redNeg():this.a.redMul(t)},l.prototype._mulC=function(t){return this.oneC?t:this.c.redMul(t)},l.prototype.jpoint=function(t,e,i,n){return this.point(t,e,i,n)},l.prototype.pointFromX=function(t,e){(t=new r(t,16)).red||(t=t.toRed(this.red));var i=t.redSqr(),n=this.c2.redSub(this.a.redMul(i)),s=this.one.redSub(this.c2.redMul(this.d).redMul(i)),o=n.redMul(s.redInvm()),a=o.redSqrt();if(0!==a.redSqr().redSub(o).cmp(this.zero))throw new Error("invalid point");var l=a.fromRed().isOdd();return(e&&!l||!e&&l)&&(a=a.redNeg()),this.point(t,a)},l.prototype.pointFromY=function(t,e){(t=new r(t,16)).red||(t=t.toRed(this.red));var i=t.redSqr(),n=i.redSub(this.c2),s=i.redMul(this.d).redMul(this.c2).redSub(this.a),o=n.redMul(s.redInvm());if(0===o.cmp(this.zero)){if(e)throw new Error("invalid point");return this.point(this.zero,t)}var a=o.redSqrt();if(0!==a.redSqr().redSub(o).cmp(this.zero))throw new Error("invalid point");return a.fromRed().isOdd()!==e&&(a=a.redNeg()),this.point(a,t)},l.prototype.validate=function(t){if(t.isInfinity())return!0;t.normalize();var e=t.x.redSqr(),i=t.y.redSqr(),n=e.redMul(this.a).redAdd(i),r=this.c2.redMul(this.one.redAdd(this.d.redMul(e).redMul(i)));return 0===n.cmp(r)},s(c,o.BasePoint),l.prototype.pointFromJSON=function(t){return c.fromJSON(this,t)},l.prototype.point=function(t,e,i,n){return new c(this,t,e,i,n)},c.fromJSON=function(t,e){return new c(t,e[0],e[1],e[2])},c.prototype.inspect=function(){return this.isInfinity()?"":""},c.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},c.prototype._extDbl=function(){var t=this.x.redSqr(),e=this.y.redSqr(),i=this.z.redSqr();i=i.redIAdd(i);var n=this.curve._mulA(t),r=this.x.redAdd(this.y).redSqr().redISub(t).redISub(e),s=n.redAdd(e),o=s.redSub(i),a=n.redSub(e),l=r.redMul(o),c=s.redMul(a),h=r.redMul(a),u=o.redMul(s);return this.curve.point(l,c,u,h)},c.prototype._projDbl=function(){var t,e,i,n,r,s,o=this.x.redAdd(this.y).redSqr(),a=this.x.redSqr(),l=this.y.redSqr();if(this.curve.twisted){var c=(n=this.curve._mulA(a)).redAdd(l);this.zOne?(t=o.redSub(a).redSub(l).redMul(c.redSub(this.curve.two)),e=c.redMul(n.redSub(l)),i=c.redSqr().redSub(c).redSub(c)):(r=this.z.redSqr(),s=c.redSub(r).redISub(r),t=o.redSub(a).redISub(l).redMul(s),e=c.redMul(n.redSub(l)),i=c.redMul(s))}else n=a.redAdd(l),r=this.curve._mulC(this.z).redSqr(),s=n.redSub(r).redSub(r),t=this.curve._mulC(o.redISub(n)).redMul(s),e=this.curve._mulC(n).redMul(a.redISub(l)),i=n.redMul(s);return this.curve.point(t,e,i)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.prototype._extAdd=function(t){var e=this.y.redSub(this.x).redMul(t.y.redSub(t.x)),i=this.y.redAdd(this.x).redMul(t.y.redAdd(t.x)),n=this.t.redMul(this.curve.dd).redMul(t.t),r=this.z.redMul(t.z.redAdd(t.z)),s=i.redSub(e),o=r.redSub(n),a=r.redAdd(n),l=i.redAdd(e),c=s.redMul(o),h=a.redMul(l),u=s.redMul(l),d=o.redMul(a);return this.curve.point(c,h,d,u)},c.prototype._projAdd=function(t){var e,i,n=this.z.redMul(t.z),r=n.redSqr(),s=this.x.redMul(t.x),o=this.y.redMul(t.y),a=this.curve.d.redMul(s).redMul(o),l=r.redSub(a),c=r.redAdd(a),h=this.x.redAdd(this.y).redMul(t.x.redAdd(t.y)).redISub(s).redISub(o),u=n.redMul(l).redMul(h);return this.curve.twisted?(e=n.redMul(c).redMul(o.redSub(this.curve._mulA(s))),i=l.redMul(c)):(e=n.redMul(c).redMul(o.redSub(s)),i=this.curve._mulC(l).redMul(c)),this.curve.point(u,e,i)},c.prototype.add=function(t){return this.isInfinity()?t:t.isInfinity()?this:this.curve.extended?this._extAdd(t):this._projAdd(t)},c.prototype.mul=function(t){return this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve._wnafMul(this,t)},c.prototype.mulAdd=function(t,e,i){return this.curve._wnafMulAdd(1,[this,e],[t,i],2,!1)},c.prototype.jmulAdd=function(t,e,i){return this.curve._wnafMulAdd(1,[this,e],[t,i],2,!0)},c.prototype.normalize=function(){if(this.zOne)return this;var t=this.z.redInvm();return this.x=this.x.redMul(t),this.y=this.y.redMul(t),this.t&&(this.t=this.t.redMul(t)),this.z=this.curve.one,this.zOne=!0,this},c.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()},c.prototype.getY=function(){return this.normalize(),this.y.fromRed()},c.prototype.eq=function(t){return this===t||0===this.getX().cmp(t.getX())&&0===this.getY().cmp(t.getY())},c.prototype.eqXToP=function(t){var e=t.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(e))return!0;for(var i=t.clone(),n=this.curve.redN.redMul(this.z);;){if(i.iadd(this.curve.n),i.cmp(this.curve.p)>=0)return!1;if(e.redIAdd(n),0===this.x.cmp(e))return!0}},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add},4367:(t,e,i)=>{"use strict";var n=e;n.base=i(2134),n.short=i(6460),n.mont=i(1289),n.edwards=i(4177)},1289:(t,e,i)=>{"use strict";var n=i(8183),r=i(5457),s=i(2134),o=i(3930);function a(t){s.call(this,"mont",t),this.a=new n(t.a,16).toRed(this.red),this.b=new n(t.b,16).toRed(this.red),this.i4=new n(4).toRed(this.red).redInvm(),this.two=new n(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function l(t,e,i){s.BasePoint.call(this,t,"projective"),null===e&&null===i?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(e,16),this.z=new n(i,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}r(a,s),t.exports=a,a.prototype.validate=function(t){var e=t.normalize().x,i=e.redSqr(),n=i.redMul(e).redAdd(i.redMul(this.a)).redAdd(e);return 0===n.redSqrt().redSqr().cmp(n)},r(l,s.BasePoint),a.prototype.decodePoint=function(t,e){return this.point(o.toArray(t,e),1)},a.prototype.point=function(t,e){return new l(this,t,e)},a.prototype.pointFromJSON=function(t){return l.fromJSON(this,t)},l.prototype.precompute=function(){},l.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},l.fromJSON=function(t,e){return new l(t,e[0],e[1]||t.one)},l.prototype.inspect=function(){return this.isInfinity()?"":""},l.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},l.prototype.dbl=function(){var t=this.x.redAdd(this.z).redSqr(),e=this.x.redSub(this.z).redSqr(),i=t.redSub(e),n=t.redMul(e),r=i.redMul(e.redAdd(this.curve.a24.redMul(i)));return this.curve.point(n,r)},l.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},l.prototype.diffAdd=function(t,e){var i=this.x.redAdd(this.z),n=this.x.redSub(this.z),r=t.x.redAdd(t.z),s=t.x.redSub(t.z).redMul(i),o=r.redMul(n),a=e.z.redMul(s.redAdd(o).redSqr()),l=e.x.redMul(s.redISub(o).redSqr());return this.curve.point(a,l)},l.prototype.mul=function(t){for(var e=t.clone(),i=this,n=this.curve.point(null,null),r=[];0!==e.cmpn(0);e.iushrn(1))r.push(e.andln(1));for(var s=r.length-1;s>=0;s--)0===r[s]?(i=i.diffAdd(n,this),n=n.dbl()):(n=i.diffAdd(n,this),i=i.dbl());return n},l.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},l.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},l.prototype.eq=function(t){return 0===this.getX().cmp(t.getX())},l.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},l.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},6460:(t,e,i)=>{"use strict";var n=i(3930),r=i(8183),s=i(5457),o=i(2134),a=n.assert;function l(t){o.call(this,"short",t),this.a=new r(t.a,16).toRed(this.red),this.b=new r(t.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(t),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function c(t,e,i,n){o.BasePoint.call(this,t,"affine"),null===e&&null===i?(this.x=null,this.y=null,this.inf=!0):(this.x=new r(e,16),this.y=new r(i,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function h(t,e,i,n){o.BasePoint.call(this,t,"jacobian"),null===e&&null===i&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new r(0)):(this.x=new r(e,16),this.y=new r(i,16),this.z=new r(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}s(l,o),t.exports=l,l.prototype._getEndomorphism=function(t){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var e,i;if(t.beta)e=new r(t.beta,16).toRed(this.red);else{var n=this._getEndoRoots(this.p);e=(e=n[0].cmp(n[1])<0?n[0]:n[1]).toRed(this.red)}if(t.lambda)i=new r(t.lambda,16);else{var s=this._getEndoRoots(this.n);0===this.g.mul(s[0]).x.cmp(this.g.x.redMul(e))?i=s[0]:a(0===this.g.mul(i=s[1]).x.cmp(this.g.x.redMul(e)))}return{beta:e,lambda:i,basis:t.basis?t.basis.map(function(t){return{a:new r(t.a,16),b:new r(t.b,16)}}):this._getEndoBasis(i)}}},l.prototype._getEndoRoots=function(t){var e=t===this.p?this.red:r.mont(t),i=new r(2).toRed(e).redInvm(),n=i.redNeg(),s=new r(3).toRed(e).redNeg().redSqrt().redMul(i);return[n.redAdd(s).fromRed(),n.redSub(s).fromRed()]},l.prototype._getEndoBasis=function(t){for(var e,i,n,s,o,a,l,c,h,u=this.n.ushrn(Math.floor(this.n.bitLength()/2)),d=t,p=this.n.clone(),f=new r(1),m=new r(0),g=new r(0),y=new r(1),b=0;0!==d.cmpn(0);){var v=p.div(d);c=p.sub(v.mul(d)),h=g.sub(v.mul(f));var _=y.sub(v.mul(m));if(!n&&c.cmp(u)<0)e=l.neg(),i=f,n=c.neg(),s=h;else if(n&&2==++b)break;l=c,p=d,d=c,g=f,f=h,y=m,m=_}o=c.neg(),a=h;var w=n.sqr().add(s.sqr());return o.sqr().add(a.sqr()).cmp(w)>=0&&(o=e,a=i),n.negative&&(n=n.neg(),s=s.neg()),o.negative&&(o=o.neg(),a=a.neg()),[{a:n,b:s},{a:o,b:a}]},l.prototype._endoSplit=function(t){var e=this.endo.basis,i=e[0],n=e[1],r=n.b.mul(t).divRound(this.n),s=i.b.neg().mul(t).divRound(this.n),o=r.mul(i.a),a=s.mul(n.a),l=r.mul(i.b),c=s.mul(n.b);return{k1:t.sub(o).sub(a),k2:l.add(c).neg()}},l.prototype.pointFromX=function(t,e){(t=new r(t,16)).red||(t=t.toRed(this.red));var i=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),n=i.redSqrt();if(0!==n.redSqr().redSub(i).cmp(this.zero))throw new Error("invalid point");var s=n.fromRed().isOdd();return(e&&!s||!e&&s)&&(n=n.redNeg()),this.point(t,n)},l.prototype.validate=function(t){if(t.inf)return!0;var e=t.x,i=t.y,n=this.a.redMul(e),r=e.redSqr().redMul(e).redIAdd(n).redIAdd(this.b);return 0===i.redSqr().redISub(r).cmpn(0)},l.prototype._endoWnafMulAdd=function(t,e,i){for(var n=this._endoWnafT1,r=this._endoWnafT2,s=0;s":""},c.prototype.isInfinity=function(){return this.inf},c.prototype.add=function(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t))return this.curve.point(null,null);if(0===this.x.cmp(t.x))return this.curve.point(null,null);var e=this.y.redSub(t.y);0!==e.cmpn(0)&&(e=e.redMul(this.x.redSub(t.x).redInvm()));var i=e.redSqr().redISub(this.x).redISub(t.x),n=e.redMul(this.x.redSub(i)).redISub(this.y);return this.curve.point(i,n)},c.prototype.dbl=function(){if(this.inf)return this;var t=this.y.redAdd(this.y);if(0===t.cmpn(0))return this.curve.point(null,null);var e=this.curve.a,i=this.x.redSqr(),n=t.redInvm(),r=i.redAdd(i).redIAdd(i).redIAdd(e).redMul(n),s=r.redSqr().redISub(this.x.redAdd(this.x)),o=r.redMul(this.x.redSub(s)).redISub(this.y);return this.curve.point(s,o)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(t){return t=new r(t,16),this.isInfinity()?this:this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve.endo?this.curve._endoWnafMulAdd([this],[t]):this.curve._wnafMul(this,t)},c.prototype.mulAdd=function(t,e,i){var n=[this,e],r=[t,i];return this.curve.endo?this.curve._endoWnafMulAdd(n,r):this.curve._wnafMulAdd(1,n,r,2)},c.prototype.jmulAdd=function(t,e,i){var n=[this,e],r=[t,i];return this.curve.endo?this.curve._endoWnafMulAdd(n,r,!0):this.curve._wnafMulAdd(1,n,r,2,!0)},c.prototype.eq=function(t){return this===t||this.inf===t.inf&&(this.inf||0===this.x.cmp(t.x)&&0===this.y.cmp(t.y))},c.prototype.neg=function(t){if(this.inf)return this;var e=this.curve.point(this.x,this.y.redNeg());if(t&&this.precomputed){var i=this.precomputed,n=function(t){return t.neg()};e.precomputed={naf:i.naf&&{wnd:i.naf.wnd,points:i.naf.points.map(n)},doubles:i.doubles&&{step:i.doubles.step,points:i.doubles.points.map(n)}}}return e},c.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},s(h,o.BasePoint),l.prototype.jpoint=function(t,e,i){return new h(this,t,e,i)},h.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),e=t.redSqr(),i=this.x.redMul(e),n=this.y.redMul(e).redMul(t);return this.curve.point(i,n)},h.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},h.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.z.redSqr(),i=this.z.redSqr(),n=this.x.redMul(e),r=t.x.redMul(i),s=this.y.redMul(e.redMul(t.z)),o=t.y.redMul(i.redMul(this.z)),a=n.redSub(r),l=s.redSub(o);if(0===a.cmpn(0))return 0!==l.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=a.redSqr(),h=c.redMul(a),u=n.redMul(c),d=l.redSqr().redIAdd(h).redISub(u).redISub(u),p=l.redMul(u.redISub(d)).redISub(s.redMul(h)),f=this.z.redMul(t.z).redMul(a);return this.curve.jpoint(d,p,f)},h.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var e=this.z.redSqr(),i=this.x,n=t.x.redMul(e),r=this.y,s=t.y.redMul(e).redMul(this.z),o=i.redSub(n),a=r.redSub(s);if(0===o.cmpn(0))return 0!==a.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var l=o.redSqr(),c=l.redMul(o),h=i.redMul(l),u=a.redSqr().redIAdd(c).redISub(h).redISub(h),d=a.redMul(h.redISub(u)).redISub(r.redMul(c)),p=this.z.redMul(o);return this.curve.jpoint(u,d,p)},h.prototype.dblp=function(t){if(0===t)return this;if(this.isInfinity())return this;if(!t)return this.dbl();var e;if(this.curve.zeroA||this.curve.threeA){var i=this;for(e=0;e=0)return!1;if(i.redIAdd(r),0===this.x.cmp(i))return!0}},h.prototype.inspect=function(){return this.isInfinity()?"":""},h.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},2709:(t,e,i)=>{"use strict";var n,r=e,s=i(7749),o=i(4367),a=i(3930).assert;function l(t){this.curve="short"===t.type?new o.short(t):"edwards"===t.type?new o.edwards(t):new o.mont(t),this.g=this.curve.g,this.n=this.curve.n,this.hash=t.hash,a(this.g.validate(),"Invalid curve"),a(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function c(t,e){Object.defineProperty(r,t,{configurable:!0,enumerable:!0,get:function(){var i=new l(e);return Object.defineProperty(r,t,{configurable:!0,enumerable:!0,value:i}),i}})}r.PresetCurve=l,c("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:s.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),c("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:s.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),c("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:s.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),c("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:s.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),c("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:s.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),c("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:s.sha256,gRed:!1,g:["9"]}),c("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:s.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=i(5621)}catch(h){n=void 0}c("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:s.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},260:(t,e,i)=>{"use strict";var n=i(8183),r=i(1753),s=i(3930),o=i(2709),a=i(8520),l=s.assert,c=i(3145),h=i(6032);function u(t){if(!(this instanceof u))return new u(t);"string"==typeof t&&(l(Object.prototype.hasOwnProperty.call(o,t),"Unknown curve "+t),t=o[t]),t instanceof o.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash}t.exports=u,u.prototype.keyPair=function(t){return new c(this,t)},u.prototype.keyFromPrivate=function(t,e){return c.fromPrivate(this,t,e)},u.prototype.keyFromPublic=function(t,e){return c.fromPublic(this,t,e)},u.prototype.genKeyPair=function(t){t||(t={});for(var e=new r({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||a(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),i=this.n.byteLength(),s=this.n.sub(new n(2));;){var o=new n(e.generate(i));if(!(o.cmp(s)>0))return o.iaddn(1),this.keyFromPrivate(o)}},u.prototype._truncateToN=function(t,e){var i=8*t.byteLength()-this.n.bitLength();return i>0&&(t=t.ushrn(i)),!e&&t.cmp(this.n)>=0?t.sub(this.n):t},u.prototype.sign=function(t,e,i,s){"object"==typeof i&&(s=i,i=null),s||(s={}),e=this.keyFromPrivate(e,i),t=this._truncateToN(new n(t,16));for(var o=this.n.byteLength(),a=e.getPrivate().toArray("be",o),l=t.toArray("be",o),c=new r({hash:this.hash,entropy:a,nonce:l,pers:s.pers,persEnc:s.persEnc||"utf8"}),u=this.n.sub(new n(1)),d=0;;d++){var p=s.k?s.k(d):new n(c.generate(this.n.byteLength()));if(!((p=this._truncateToN(p,!0)).cmpn(1)<=0||p.cmp(u)>=0)){var f=this.g.mul(p);if(!f.isInfinity()){var m=f.getX(),g=m.umod(this.n);if(0!==g.cmpn(0)){var y=p.invm(this.n).mul(g.mul(e.getPrivate()).iadd(t));if(0!==(y=y.umod(this.n)).cmpn(0)){var b=(f.getY().isOdd()?1:0)|(0!==m.cmp(g)?2:0);return s.canonical&&y.cmp(this.nh)>0&&(y=this.n.sub(y),b^=1),new h({r:g,s:y,recoveryParam:b})}}}}}},u.prototype.verify=function(t,e,i,r){t=this._truncateToN(new n(t,16)),i=this.keyFromPublic(i,r);var s=(e=new h(e,"hex")).r,o=e.s;if(s.cmpn(1)<0||s.cmp(this.n)>=0)return!1;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;var a,l=o.invm(this.n),c=l.mul(t).umod(this.n),u=l.mul(s).umod(this.n);return this.curve._maxwellTrick?!(a=this.g.jmulAdd(c,i.getPublic(),u)).isInfinity()&&a.eqXToP(s):!(a=this.g.mulAdd(c,i.getPublic(),u)).isInfinity()&&0===a.getX().umod(this.n).cmp(s)},u.prototype.recoverPubKey=function(t,e,i,r){l((3&i)===i,"The recovery param is more than two bits"),e=new h(e,r);var s=this.n,o=new n(t),a=e.r,c=e.s,u=1&i,d=i>>1;if(a.cmp(this.curve.p.umod(this.curve.n))>=0&&d)throw new Error("Unable to find sencond key candinate");a=this.curve.pointFromX(d?a.add(this.curve.n):a,u);var p=e.r.invm(s),f=s.sub(o).mul(p).umod(s),m=c.mul(p).umod(s);return this.g.mulAdd(f,a,m)},u.prototype.getKeyRecoveryParam=function(t,e,i,n){if(null!==(e=new h(e,n)).recoveryParam)return e.recoveryParam;for(var r=0;r<4;r++){var s;try{s=this.recoverPubKey(t,e,r)}catch(t){continue}if(s.eq(i))return r}throw new Error("Unable to find valid recovery factor")}},3145:(t,e,i)=>{"use strict";var n=i(8183),r=i(3930).assert;function s(t,e){this.ec=t,this.priv=null,this.pub=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc)}t.exports=s,s.fromPublic=function(t,e,i){return e instanceof s?e:new s(t,{pub:e,pubEnc:i})},s.fromPrivate=function(t,e,i){return e instanceof s?e:new s(t,{priv:e,privEnc:i})},s.prototype.validate=function(){var t=this.getPublic();return t.isInfinity()?{result:!1,reason:"Invalid public key"}:t.validate()?t.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},s.prototype.getPublic=function(t,e){return"string"==typeof t&&(e=t,t=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),e?this.pub.encode(e,t):this.pub},s.prototype.getPrivate=function(t){return"hex"===t?this.priv.toString(16,2):this.priv},s.prototype._importPrivate=function(t,e){this.priv=new n(t,e||16),this.priv=this.priv.umod(this.ec.curve.n)},s.prototype._importPublic=function(t,e){if(t.x||t.y)return"mont"===this.ec.curve.type?r(t.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||r(t.x&&t.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(t.x,t.y));this.pub=this.ec.curve.decodePoint(t,e)},s.prototype.derive=function(t){return t.validate()||r(t.validate(),"public point not validated"),t.mul(this.priv).getX()},s.prototype.sign=function(t,e,i){return this.ec.sign(t,this,e,i)},s.prototype.verify=function(t,e){return this.ec.verify(t,e,this)},s.prototype.inspect=function(){return""}},6032:(t,e,i)=>{"use strict";var n=i(8183),r=i(3930),s=r.assert;function o(t,e){if(t instanceof o)return t;this._importDER(t,e)||(s(t.r&&t.s,"Signature without r or s"),this.r=new n(t.r,16),this.s=new n(t.s,16),this.recoveryParam=void 0===t.recoveryParam?null:t.recoveryParam)}function a(){this.place=0}function l(t,e){var i=t[e.place++];if(!(128&i))return i;var n=15&i;if(0===n||n>4)return!1;for(var r=0,s=0,o=e.place;s>>=0;return!(r<=127)&&(e.place=o,r)}function c(t){for(var e=0,i=t.length-1;!t[e]&&!(128&t[e+1])&&e>>3);for(t.push(128|i);--i;)t.push(e>>>(i<<3)&255);t.push(e)}}t.exports=o,o.prototype._importDER=function(t,e){t=r.toArray(t,e);var i=new a;if(48!==t[i.place++])return!1;var s=l(t,i);if(!1===s)return!1;if(s+i.place!==t.length)return!1;if(2!==t[i.place++])return!1;var o=l(t,i);if(!1===o)return!1;var c=t.slice(i.place,o+i.place);if(i.place+=o,2!==t[i.place++])return!1;var h=l(t,i);if(!1===h)return!1;if(t.length!==h+i.place)return!1;var u=t.slice(i.place,h+i.place);if(0===c[0]){if(!(128&c[1]))return!1;c=c.slice(1)}if(0===u[0]){if(!(128&u[1]))return!1;u=u.slice(1)}return this.r=new n(c),this.s=new n(u),this.recoveryParam=null,!0},o.prototype.toDER=function(t){var e=this.r.toArray(),i=this.s.toArray();for(128&e[0]&&(e=[0].concat(e)),128&i[0]&&(i=[0].concat(i)),e=c(e),i=c(i);!(i[0]||128&i[1]);)i=i.slice(1);var n=[2];h(n,e.length),(n=n.concat(e)).push(2),h(n,i.length);var s=n.concat(i),o=[48];return h(o,s.length),o=o.concat(s),r.encode(o,t)}},2038:(t,e,i)=>{"use strict";var n=i(7749),r=i(2709),s=i(3930),o=s.assert,a=s.parseBytes,l=i(3426),c=i(613);function h(t){if(o("ed25519"===t,"only tested with ed25519 so far"),!(this instanceof h))return new h(t);this.curve=t=r[t].curve,this.g=t.g,this.g.precompute(t.n.bitLength()+1),this.pointClass=t.point().constructor,this.encodingLength=Math.ceil(t.n.bitLength()/8),this.hash=n.sha512}t.exports=h,h.prototype.sign=function(t,e){t=a(t);var i=this.keyFromSecret(e),n=this.hashInt(i.messagePrefix(),t),r=this.g.mul(n),s=this.encodePoint(r),o=this.hashInt(s,i.pubBytes(),t).mul(i.priv()),l=n.add(o).umod(this.curve.n);return this.makeSignature({R:r,S:l,Rencoded:s})},h.prototype.verify=function(t,e,i){t=a(t),e=this.makeSignature(e);var n=this.keyFromPublic(i),r=this.hashInt(e.Rencoded(),n.pubBytes(),t),s=this.g.mul(e.S());return e.R().add(n.pub().mul(r)).eq(s)},h.prototype.hashInt=function(){for(var t=this.hash(),e=0;e{"use strict";var n=i(3930),r=n.assert,s=n.parseBytes,o=n.cachedProperty;function a(t,e){this.eddsa=t,this._secret=s(e.secret),t.isPoint(e.pub)?this._pub=e.pub:this._pubBytes=s(e.pub)}a.fromPublic=function(t,e){return e instanceof a?e:new a(t,{pub:e})},a.fromSecret=function(t,e){return e instanceof a?e:new a(t,{secret:e})},a.prototype.secret=function(){return this._secret},o(a,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),o(a,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),o(a,"privBytes",function(){var t=this.eddsa,e=this.hash(),i=t.encodingLength-1,n=e.slice(0,t.encodingLength);return n[0]&=248,n[i]&=127,n[i]|=64,n}),o(a,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),o(a,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),o(a,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),a.prototype.sign=function(t){return r(this._secret,"KeyPair can only verify"),this.eddsa.sign(t,this)},a.prototype.verify=function(t,e){return this.eddsa.verify(t,e,this)},a.prototype.getSecret=function(t){return r(this._secret,"KeyPair is public only"),n.encode(this.secret(),t)},a.prototype.getPublic=function(t){return n.encode(this.pubBytes(),t)},t.exports=a},613:(t,e,i)=>{"use strict";var n=i(8183),r=i(3930),s=r.assert,o=r.cachedProperty,a=r.parseBytes;function l(t,e){this.eddsa=t,"object"!=typeof e&&(e=a(e)),Array.isArray(e)&&(e={R:e.slice(0,t.encodingLength),S:e.slice(t.encodingLength)}),s(e.R&&e.S,"Signature without R or S"),t.isPoint(e.R)&&(this._R=e.R),e.S instanceof n&&(this._S=e.S),this._Rencoded=Array.isArray(e.R)?e.R:e.Rencoded,this._Sencoded=Array.isArray(e.S)?e.S:e.Sencoded}o(l,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),o(l,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),o(l,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),o(l,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),l.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},l.prototype.toHex=function(){return r.encode(this.toBytes(),"hex").toUpperCase()},t.exports=l},5621:t=>{t.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},3930:(t,e,i)=>{"use strict";var n=e,r=i(8183),s=i(523),o=i(5856);n.assert=s,n.toArray=o.toArray,n.zero2=o.zero2,n.toHex=o.toHex,n.encode=o.encode,n.getNAF=function(t,e,i){var n=new Array(Math.max(t.bitLength(),i)+1);n.fill(0);for(var r=1<(r>>1)-1?(r>>1)-l:l):a=0,n[o]=a,s.iushrn(1)}return n},n.getJSF=function(t,e){var i=[[],[]];t=t.clone(),e=e.clone();for(var n,r=0,s=0;t.cmpn(-r)>0||e.cmpn(-s)>0;){var o,a,l=t.andln(3)+r&3,c=e.andln(3)+s&3;3===l&&(l=-1),3===c&&(c=-1),o=0==(1&l)?0:3!=(n=t.andln(7)+r&7)&&5!==n||2!==c?l:-l,i[0].push(o),a=0==(1&c)?0:3!=(n=e.andln(7)+s&7)&&5!==n||2!==l?c:-c,i[1].push(a),2*r===o+1&&(r=1-r),2*s===a+1&&(s=1-s),t.iushrn(1),e.iushrn(1)}return i},n.cachedProperty=function(t,e,i){var n="_"+e;t.prototype[e]=function(){return void 0!==this[n]?this[n]:this[n]=i.call(this)}},n.parseBytes=function(t){return"string"==typeof t?n.toArray(t,"hex"):t},n.intFromLE=function(t){return new r(t,"hex","le")}},8183:function(t,e,i){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function r(t,e){t.super_=e;var i=function(){};i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}function s(t,e,i){if(s.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(i=e,e=10),this._init(t||0,e||10,i||"be"))}var o;"object"==typeof t?t.exports=s:e.BN=s,s.BN=s,s.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:i(8623).Buffer}catch(S){}function a(t,e){var i=t.charCodeAt(e);return i>=65&&i<=70?i-55:i>=97&&i<=102?i-87:i-48&15}function l(t,e,i){var n=a(t,i);return i-1>=e&&(n|=a(t,i-1)<<4),n}function c(t,e,i,n){for(var r=0,s=Math.min(t.length,i),o=e;o=49?a-49+10:a>=17?a-17+10:a}return r}s.isBN=function(t){return t instanceof s||null!==t&&"object"==typeof t&&t.constructor.wordSize===s.wordSize&&Array.isArray(t.words)},s.max=function(t,e){return t.cmp(e)>0?t:e},s.min=function(t,e){return t.cmp(e)<0?t:e},s.prototype._init=function(t,e,i){if("number"==typeof t)return this._initNumber(t,e,i);if("object"==typeof t)return this._initArray(t,e,i);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var r=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(r++,this.negative=1),r=0;r-=3)this.words[s]|=(o=t[r]|t[r-1]<<8|t[r-2]<<16)<>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);else if("le"===i)for(r=0,s=0;r>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);return this.strip()},s.prototype._parseHex=function(t,e,i){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n=e;n-=2)r=l(t,e,n)<=18?(s-=18,this.words[o+=1]|=r>>>26):s+=8;else for(n=(t.length-e)%2==0?e+1:e;n=18?(s-=18,this.words[o+=1]|=r>>>26):s+=8;this.strip()},s.prototype._parseBase=function(t,e,i){this.words=[0],this.length=1;for(var n=0,r=1;r<=67108863;r*=e)n++;n--,r=r/e|0;for(var s=t.length-i,o=s%n,a=Math.min(s,s-o)+i,l=0,h=i;h1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?""};var h=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],u=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(t,e,i){i.negative=e.negative^t.negative;var n=t.length+e.length|0;i.length=n,n=n-1|0;var r=0|t.words[0],s=0|e.words[0],o=r*s,a=o/67108864|0;i.words[0]=67108863&o;for(var l=1;l>>26,h=67108863&a,u=Math.min(l,e.length-1),d=Math.max(0,l-t.length+1);d<=u;d++)c+=(o=(r=0|t.words[l-d|0])*(s=0|e.words[d])+h)/67108864|0,h=67108863&o;i.words[l]=0|h,a=0|c}return 0!==a?i.words[l]=0|a:i.length--,i.strip()}s.prototype.toString=function(t,e){var i;if(e=0|e||1,16===(t=t||10)||"hex"===t){i="";for(var r=0,s=0,o=0;o>>24-r&16777215)||o!==this.length-1?h[6-l.length]+l+i:l+i,(r+=2)>=26&&(r-=26,o--)}for(0!==s&&(i=s.toString(16)+i);i.length%e!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(t===(0|t)&&t>=2&&t<=36){var c=u[t],p=d[t];i="";var f=this.clone();for(f.negative=0;!f.isZero();){var m=f.modn(p).toString(t);i=(f=f.idivn(p)).isZero()?m+i:h[c-m.length]+m+i}for(this.isZero()&&(i="0"+i);i.length%e!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}n(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(t,e){return n(void 0!==o),this.toArrayLike(o,t,e)},s.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},s.prototype.toArrayLike=function(t,e,i){var r=this.byteLength(),s=i||Math.max(1,r);n(r<=s,"byte array longer than desired length"),n(s>0,"Requested array length <= 0"),this.strip();var o,a,l="le"===e,c=new t(s),h=this.clone();if(l){for(a=0;!h.isZero();a++)o=h.andln(255),h.iushrn(8),c[a]=o;for(;a=4096&&(i+=13,e>>>=13),e>=64&&(i+=7,e>>>=7),e>=8&&(i+=4,e>>>=4),e>=2&&(i+=2,e>>>=2),i+e},s.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,i=0;return 0==(8191&e)&&(i+=13,e>>>=13),0==(127&e)&&(i+=7,e>>>=7),0==(15&e)&&(i+=4,e>>>=4),0==(3&e)&&(i+=2,e>>>=2),0==(1&e)&&i++,i},s.prototype.bitLength=function(){var t=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+t},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},s.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},s.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var i=0;it.length?this.clone().iand(t):t.clone().iand(this)},s.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},s.prototype.iuxor=function(t){var e,i;this.length>t.length?(e=this,i=t):(e=t,i=this);for(var n=0;nt.length?this.clone().ixor(t):t.clone().ixor(this)},s.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},s.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),i=t%26;this._expand(e),i>0&&e--;for(var r=0;r0&&(this.words[r]=~this.words[r]&67108863>>26-i),this.strip()},s.prototype.notn=function(t){return this.clone().inotn(t)},s.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var i=t/26|0,r=t%26;return this._expand(i+1),this.words[i]=e?this.words[i]|1<t.length?(i=this,n=t):(i=t,n=this);for(var r=0,s=0;s>>26;for(;0!==r&&s>>26;if(this.length=i.length,0!==r)this.words[this.length]=r,this.length++;else if(i!==this)for(;st.length?this.clone().iadd(t):t.clone().iadd(this)},s.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,n,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(i=this,n=t):(i=t,n=this);for(var s=0,o=0;o>26,this.words[o]=67108863&e;for(;0!==s&&o>26,this.words[o]=67108863&e;if(0===s&&o>>13,p=0|o[1],f=8191&p,m=p>>>13,g=0|o[2],y=8191&g,b=g>>>13,v=0|o[3],_=8191&v,w=v>>>13,x=0|o[4],C=8191&x,A=x>>>13,S=0|o[5],E=8191&S,k=S>>>13,T=0|o[6],M=8191&T,L=T>>>13,I=0|o[7],O=8191&I,D=I>>>13,R=0|o[8],N=8191&R,P=R>>>13,F=0|o[9],Z=8191&F,B=F>>>13,U=0|a[0],q=8191&U,z=U>>>13,H=0|a[1],Y=8191&H,G=H>>>13,j=0|a[2],V=8191&j,Q=j>>>13,W=0|a[3],J=8191&W,X=W>>>13,K=0|a[4],$=8191&K,tt=K>>>13,et=0|a[5],it=8191&et,nt=et>>>13,rt=0|a[6],st=8191&rt,ot=rt>>>13,at=0|a[7],lt=8191&at,ct=at>>>13,ht=0|a[8],ut=8191&ht,dt=ht>>>13,pt=0|a[9],ft=8191&pt,mt=pt>>>13;i.negative=t.negative^e.negative,i.length=19;var gt=(c+(n=Math.imul(u,q))|0)+((8191&(r=(r=Math.imul(u,z))+Math.imul(d,q)|0))<<13)|0;c=((s=Math.imul(d,z))+(r>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(f,q),r=(r=Math.imul(f,z))+Math.imul(m,q)|0,s=Math.imul(m,z);var yt=(c+(n=n+Math.imul(u,Y)|0)|0)+((8191&(r=(r=r+Math.imul(u,G)|0)+Math.imul(d,Y)|0))<<13)|0;c=((s=s+Math.imul(d,G)|0)+(r>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(y,q),r=(r=Math.imul(y,z))+Math.imul(b,q)|0,s=Math.imul(b,z),n=n+Math.imul(f,Y)|0,r=(r=r+Math.imul(f,G)|0)+Math.imul(m,Y)|0,s=s+Math.imul(m,G)|0;var bt=(c+(n=n+Math.imul(u,V)|0)|0)+((8191&(r=(r=r+Math.imul(u,Q)|0)+Math.imul(d,V)|0))<<13)|0;c=((s=s+Math.imul(d,Q)|0)+(r>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(_,q),r=(r=Math.imul(_,z))+Math.imul(w,q)|0,s=Math.imul(w,z),n=n+Math.imul(y,Y)|0,r=(r=r+Math.imul(y,G)|0)+Math.imul(b,Y)|0,s=s+Math.imul(b,G)|0,n=n+Math.imul(f,V)|0,r=(r=r+Math.imul(f,Q)|0)+Math.imul(m,V)|0,s=s+Math.imul(m,Q)|0;var vt=(c+(n=n+Math.imul(u,J)|0)|0)+((8191&(r=(r=r+Math.imul(u,X)|0)+Math.imul(d,J)|0))<<13)|0;c=((s=s+Math.imul(d,X)|0)+(r>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(C,q),r=(r=Math.imul(C,z))+Math.imul(A,q)|0,s=Math.imul(A,z),n=n+Math.imul(_,Y)|0,r=(r=r+Math.imul(_,G)|0)+Math.imul(w,Y)|0,s=s+Math.imul(w,G)|0,n=n+Math.imul(y,V)|0,r=(r=r+Math.imul(y,Q)|0)+Math.imul(b,V)|0,s=s+Math.imul(b,Q)|0,n=n+Math.imul(f,J)|0,r=(r=r+Math.imul(f,X)|0)+Math.imul(m,J)|0,s=s+Math.imul(m,X)|0;var _t=(c+(n=n+Math.imul(u,$)|0)|0)+((8191&(r=(r=r+Math.imul(u,tt)|0)+Math.imul(d,$)|0))<<13)|0;c=((s=s+Math.imul(d,tt)|0)+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(E,q),r=(r=Math.imul(E,z))+Math.imul(k,q)|0,s=Math.imul(k,z),n=n+Math.imul(C,Y)|0,r=(r=r+Math.imul(C,G)|0)+Math.imul(A,Y)|0,s=s+Math.imul(A,G)|0,n=n+Math.imul(_,V)|0,r=(r=r+Math.imul(_,Q)|0)+Math.imul(w,V)|0,s=s+Math.imul(w,Q)|0,n=n+Math.imul(y,J)|0,r=(r=r+Math.imul(y,X)|0)+Math.imul(b,J)|0,s=s+Math.imul(b,X)|0,n=n+Math.imul(f,$)|0,r=(r=r+Math.imul(f,tt)|0)+Math.imul(m,$)|0,s=s+Math.imul(m,tt)|0;var wt=(c+(n=n+Math.imul(u,it)|0)|0)+((8191&(r=(r=r+Math.imul(u,nt)|0)+Math.imul(d,it)|0))<<13)|0;c=((s=s+Math.imul(d,nt)|0)+(r>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(M,q),r=(r=Math.imul(M,z))+Math.imul(L,q)|0,s=Math.imul(L,z),n=n+Math.imul(E,Y)|0,r=(r=r+Math.imul(E,G)|0)+Math.imul(k,Y)|0,s=s+Math.imul(k,G)|0,n=n+Math.imul(C,V)|0,r=(r=r+Math.imul(C,Q)|0)+Math.imul(A,V)|0,s=s+Math.imul(A,Q)|0,n=n+Math.imul(_,J)|0,r=(r=r+Math.imul(_,X)|0)+Math.imul(w,J)|0,s=s+Math.imul(w,X)|0,n=n+Math.imul(y,$)|0,r=(r=r+Math.imul(y,tt)|0)+Math.imul(b,$)|0,s=s+Math.imul(b,tt)|0,n=n+Math.imul(f,it)|0,r=(r=r+Math.imul(f,nt)|0)+Math.imul(m,it)|0,s=s+Math.imul(m,nt)|0;var xt=(c+(n=n+Math.imul(u,st)|0)|0)+((8191&(r=(r=r+Math.imul(u,ot)|0)+Math.imul(d,st)|0))<<13)|0;c=((s=s+Math.imul(d,ot)|0)+(r>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(O,q),r=(r=Math.imul(O,z))+Math.imul(D,q)|0,s=Math.imul(D,z),n=n+Math.imul(M,Y)|0,r=(r=r+Math.imul(M,G)|0)+Math.imul(L,Y)|0,s=s+Math.imul(L,G)|0,n=n+Math.imul(E,V)|0,r=(r=r+Math.imul(E,Q)|0)+Math.imul(k,V)|0,s=s+Math.imul(k,Q)|0,n=n+Math.imul(C,J)|0,r=(r=r+Math.imul(C,X)|0)+Math.imul(A,J)|0,s=s+Math.imul(A,X)|0,n=n+Math.imul(_,$)|0,r=(r=r+Math.imul(_,tt)|0)+Math.imul(w,$)|0,s=s+Math.imul(w,tt)|0,n=n+Math.imul(y,it)|0,r=(r=r+Math.imul(y,nt)|0)+Math.imul(b,it)|0,s=s+Math.imul(b,nt)|0,n=n+Math.imul(f,st)|0,r=(r=r+Math.imul(f,ot)|0)+Math.imul(m,st)|0,s=s+Math.imul(m,ot)|0;var Ct=(c+(n=n+Math.imul(u,lt)|0)|0)+((8191&(r=(r=r+Math.imul(u,ct)|0)+Math.imul(d,lt)|0))<<13)|0;c=((s=s+Math.imul(d,ct)|0)+(r>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(N,q),r=(r=Math.imul(N,z))+Math.imul(P,q)|0,s=Math.imul(P,z),n=n+Math.imul(O,Y)|0,r=(r=r+Math.imul(O,G)|0)+Math.imul(D,Y)|0,s=s+Math.imul(D,G)|0,n=n+Math.imul(M,V)|0,r=(r=r+Math.imul(M,Q)|0)+Math.imul(L,V)|0,s=s+Math.imul(L,Q)|0,n=n+Math.imul(E,J)|0,r=(r=r+Math.imul(E,X)|0)+Math.imul(k,J)|0,s=s+Math.imul(k,X)|0,n=n+Math.imul(C,$)|0,r=(r=r+Math.imul(C,tt)|0)+Math.imul(A,$)|0,s=s+Math.imul(A,tt)|0,n=n+Math.imul(_,it)|0,r=(r=r+Math.imul(_,nt)|0)+Math.imul(w,it)|0,s=s+Math.imul(w,nt)|0,n=n+Math.imul(y,st)|0,r=(r=r+Math.imul(y,ot)|0)+Math.imul(b,st)|0,s=s+Math.imul(b,ot)|0,n=n+Math.imul(f,lt)|0,r=(r=r+Math.imul(f,ct)|0)+Math.imul(m,lt)|0,s=s+Math.imul(m,ct)|0;var At=(c+(n=n+Math.imul(u,ut)|0)|0)+((8191&(r=(r=r+Math.imul(u,dt)|0)+Math.imul(d,ut)|0))<<13)|0;c=((s=s+Math.imul(d,dt)|0)+(r>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(Z,q),r=(r=Math.imul(Z,z))+Math.imul(B,q)|0,s=Math.imul(B,z),n=n+Math.imul(N,Y)|0,r=(r=r+Math.imul(N,G)|0)+Math.imul(P,Y)|0,s=s+Math.imul(P,G)|0,n=n+Math.imul(O,V)|0,r=(r=r+Math.imul(O,Q)|0)+Math.imul(D,V)|0,s=s+Math.imul(D,Q)|0,n=n+Math.imul(M,J)|0,r=(r=r+Math.imul(M,X)|0)+Math.imul(L,J)|0,s=s+Math.imul(L,X)|0,n=n+Math.imul(E,$)|0,r=(r=r+Math.imul(E,tt)|0)+Math.imul(k,$)|0,s=s+Math.imul(k,tt)|0,n=n+Math.imul(C,it)|0,r=(r=r+Math.imul(C,nt)|0)+Math.imul(A,it)|0,s=s+Math.imul(A,nt)|0,n=n+Math.imul(_,st)|0,r=(r=r+Math.imul(_,ot)|0)+Math.imul(w,st)|0,s=s+Math.imul(w,ot)|0,n=n+Math.imul(y,lt)|0,r=(r=r+Math.imul(y,ct)|0)+Math.imul(b,lt)|0,s=s+Math.imul(b,ct)|0,n=n+Math.imul(f,ut)|0,r=(r=r+Math.imul(f,dt)|0)+Math.imul(m,ut)|0,s=s+Math.imul(m,dt)|0;var St=(c+(n=n+Math.imul(u,ft)|0)|0)+((8191&(r=(r=r+Math.imul(u,mt)|0)+Math.imul(d,ft)|0))<<13)|0;c=((s=s+Math.imul(d,mt)|0)+(r>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(Z,Y),r=(r=Math.imul(Z,G))+Math.imul(B,Y)|0,s=Math.imul(B,G),n=n+Math.imul(N,V)|0,r=(r=r+Math.imul(N,Q)|0)+Math.imul(P,V)|0,s=s+Math.imul(P,Q)|0,n=n+Math.imul(O,J)|0,r=(r=r+Math.imul(O,X)|0)+Math.imul(D,J)|0,s=s+Math.imul(D,X)|0,n=n+Math.imul(M,$)|0,r=(r=r+Math.imul(M,tt)|0)+Math.imul(L,$)|0,s=s+Math.imul(L,tt)|0,n=n+Math.imul(E,it)|0,r=(r=r+Math.imul(E,nt)|0)+Math.imul(k,it)|0,s=s+Math.imul(k,nt)|0,n=n+Math.imul(C,st)|0,r=(r=r+Math.imul(C,ot)|0)+Math.imul(A,st)|0,s=s+Math.imul(A,ot)|0,n=n+Math.imul(_,lt)|0,r=(r=r+Math.imul(_,ct)|0)+Math.imul(w,lt)|0,s=s+Math.imul(w,ct)|0,n=n+Math.imul(y,ut)|0,r=(r=r+Math.imul(y,dt)|0)+Math.imul(b,ut)|0,s=s+Math.imul(b,dt)|0;var Et=(c+(n=n+Math.imul(f,ft)|0)|0)+((8191&(r=(r=r+Math.imul(f,mt)|0)+Math.imul(m,ft)|0))<<13)|0;c=((s=s+Math.imul(m,mt)|0)+(r>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(Z,V),r=(r=Math.imul(Z,Q))+Math.imul(B,V)|0,s=Math.imul(B,Q),n=n+Math.imul(N,J)|0,r=(r=r+Math.imul(N,X)|0)+Math.imul(P,J)|0,s=s+Math.imul(P,X)|0,n=n+Math.imul(O,$)|0,r=(r=r+Math.imul(O,tt)|0)+Math.imul(D,$)|0,s=s+Math.imul(D,tt)|0,n=n+Math.imul(M,it)|0,r=(r=r+Math.imul(M,nt)|0)+Math.imul(L,it)|0,s=s+Math.imul(L,nt)|0,n=n+Math.imul(E,st)|0,r=(r=r+Math.imul(E,ot)|0)+Math.imul(k,st)|0,s=s+Math.imul(k,ot)|0,n=n+Math.imul(C,lt)|0,r=(r=r+Math.imul(C,ct)|0)+Math.imul(A,lt)|0,s=s+Math.imul(A,ct)|0,n=n+Math.imul(_,ut)|0,r=(r=r+Math.imul(_,dt)|0)+Math.imul(w,ut)|0,s=s+Math.imul(w,dt)|0;var kt=(c+(n=n+Math.imul(y,ft)|0)|0)+((8191&(r=(r=r+Math.imul(y,mt)|0)+Math.imul(b,ft)|0))<<13)|0;c=((s=s+Math.imul(b,mt)|0)+(r>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(Z,J),r=(r=Math.imul(Z,X))+Math.imul(B,J)|0,s=Math.imul(B,X),n=n+Math.imul(N,$)|0,r=(r=r+Math.imul(N,tt)|0)+Math.imul(P,$)|0,s=s+Math.imul(P,tt)|0,n=n+Math.imul(O,it)|0,r=(r=r+Math.imul(O,nt)|0)+Math.imul(D,it)|0,s=s+Math.imul(D,nt)|0,n=n+Math.imul(M,st)|0,r=(r=r+Math.imul(M,ot)|0)+Math.imul(L,st)|0,s=s+Math.imul(L,ot)|0,n=n+Math.imul(E,lt)|0,r=(r=r+Math.imul(E,ct)|0)+Math.imul(k,lt)|0,s=s+Math.imul(k,ct)|0,n=n+Math.imul(C,ut)|0,r=(r=r+Math.imul(C,dt)|0)+Math.imul(A,ut)|0,s=s+Math.imul(A,dt)|0;var Tt=(c+(n=n+Math.imul(_,ft)|0)|0)+((8191&(r=(r=r+Math.imul(_,mt)|0)+Math.imul(w,ft)|0))<<13)|0;c=((s=s+Math.imul(w,mt)|0)+(r>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(Z,$),r=(r=Math.imul(Z,tt))+Math.imul(B,$)|0,s=Math.imul(B,tt),n=n+Math.imul(N,it)|0,r=(r=r+Math.imul(N,nt)|0)+Math.imul(P,it)|0,s=s+Math.imul(P,nt)|0,n=n+Math.imul(O,st)|0,r=(r=r+Math.imul(O,ot)|0)+Math.imul(D,st)|0,s=s+Math.imul(D,ot)|0,n=n+Math.imul(M,lt)|0,r=(r=r+Math.imul(M,ct)|0)+Math.imul(L,lt)|0,s=s+Math.imul(L,ct)|0,n=n+Math.imul(E,ut)|0,r=(r=r+Math.imul(E,dt)|0)+Math.imul(k,ut)|0,s=s+Math.imul(k,dt)|0;var Mt=(c+(n=n+Math.imul(C,ft)|0)|0)+((8191&(r=(r=r+Math.imul(C,mt)|0)+Math.imul(A,ft)|0))<<13)|0;c=((s=s+Math.imul(A,mt)|0)+(r>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(Z,it),r=(r=Math.imul(Z,nt))+Math.imul(B,it)|0,s=Math.imul(B,nt),n=n+Math.imul(N,st)|0,r=(r=r+Math.imul(N,ot)|0)+Math.imul(P,st)|0,s=s+Math.imul(P,ot)|0,n=n+Math.imul(O,lt)|0,r=(r=r+Math.imul(O,ct)|0)+Math.imul(D,lt)|0,s=s+Math.imul(D,ct)|0,n=n+Math.imul(M,ut)|0,r=(r=r+Math.imul(M,dt)|0)+Math.imul(L,ut)|0,s=s+Math.imul(L,dt)|0;var Lt=(c+(n=n+Math.imul(E,ft)|0)|0)+((8191&(r=(r=r+Math.imul(E,mt)|0)+Math.imul(k,ft)|0))<<13)|0;c=((s=s+Math.imul(k,mt)|0)+(r>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,n=Math.imul(Z,st),r=(r=Math.imul(Z,ot))+Math.imul(B,st)|0,s=Math.imul(B,ot),n=n+Math.imul(N,lt)|0,r=(r=r+Math.imul(N,ct)|0)+Math.imul(P,lt)|0,s=s+Math.imul(P,ct)|0,n=n+Math.imul(O,ut)|0,r=(r=r+Math.imul(O,dt)|0)+Math.imul(D,ut)|0,s=s+Math.imul(D,dt)|0;var It=(c+(n=n+Math.imul(M,ft)|0)|0)+((8191&(r=(r=r+Math.imul(M,mt)|0)+Math.imul(L,ft)|0))<<13)|0;c=((s=s+Math.imul(L,mt)|0)+(r>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(Z,lt),r=(r=Math.imul(Z,ct))+Math.imul(B,lt)|0,s=Math.imul(B,ct),n=n+Math.imul(N,ut)|0,r=(r=r+Math.imul(N,dt)|0)+Math.imul(P,ut)|0,s=s+Math.imul(P,dt)|0;var Ot=(c+(n=n+Math.imul(O,ft)|0)|0)+((8191&(r=(r=r+Math.imul(O,mt)|0)+Math.imul(D,ft)|0))<<13)|0;c=((s=s+Math.imul(D,mt)|0)+(r>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(Z,ut),r=(r=Math.imul(Z,dt))+Math.imul(B,ut)|0,s=Math.imul(B,dt);var Dt=(c+(n=n+Math.imul(N,ft)|0)|0)+((8191&(r=(r=r+Math.imul(N,mt)|0)+Math.imul(P,ft)|0))<<13)|0;c=((s=s+Math.imul(P,mt)|0)+(r>>>13)|0)+(Dt>>>26)|0,Dt&=67108863;var Rt=(c+(n=Math.imul(Z,ft))|0)+((8191&(r=(r=Math.imul(Z,mt))+Math.imul(B,ft)|0))<<13)|0;return c=((s=Math.imul(B,mt))+(r>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,l[0]=gt,l[1]=yt,l[2]=bt,l[3]=vt,l[4]=_t,l[5]=wt,l[6]=xt,l[7]=Ct,l[8]=At,l[9]=St,l[10]=Et,l[11]=kt,l[12]=Tt,l[13]=Mt,l[14]=Lt,l[15]=It,l[16]=Ot,l[17]=Dt,l[18]=Rt,0!==c&&(l[19]=c,i.length++),i};function m(t,e,i){return(new g).mulp(t,e,i)}function g(t,e){this.x=t,this.y=e}Math.imul||(f=p),s.prototype.mulTo=function(t,e){var i=this.length+t.length;return 10===this.length&&10===t.length?f(this,t,e):i<63?p(this,t,e):i<1024?function(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var n=0,r=0,s=0;s>>26)|0)>>>26,o&=67108863}i.words[s]=a,n=o,o=r}return 0!==n?i.words[s]=n:i.length--,i.strip()}(this,t,e):m(this,t,e)},g.prototype.makeRBT=function(t){for(var e=new Array(t),i=s.prototype._countBits(t)-1,n=0;n>=1;return n},g.prototype.permute=function(t,e,i,n,r,s){for(var o=0;o>>=1)r++;return 1<>>=13),s>>>=13;for(o=2*e;o>=26,e+=r/67108864|0,e+=s>>>26,this.words[i]=67108863&s}return 0!==e&&(this.words[i]=e,this.length++),this},s.prototype.muln=function(t){return this.clone().imuln(t)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),i=0;i>>n}return e}(t);if(0===e.length)return new s(1);for(var i=this,n=0;n=0);var e,i=t%26,r=(t-i)/26,s=67108863>>>26-i<<26-i;if(0!==i){var o=0;for(e=0;e>>26-i}o&&(this.words[e]=o,this.length++)}if(0!==r){for(e=this.length-1;e>=0;e--)this.words[e+r]=this.words[e];for(e=0;e=0),r=e?(e-e%26)/26:0;var s=t%26,o=Math.min((t-s)/26,this.length),a=67108863^67108863>>>s<o)for(this.length-=o,c=0;c=0&&(0!==h||c>=r);c--){var u=0|this.words[c];this.words[c]=h<<26-s|u>>>s,h=u&a}return l&&0!==h&&(l.words[l.length++]=h),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(t,e,i){return n(0===this.negative),this.iushrn(t,e,i)},s.prototype.shln=function(t){return this.clone().ishln(t)},s.prototype.ushln=function(t){return this.clone().iushln(t)},s.prototype.shrn=function(t){return this.clone().ishrn(t)},s.prototype.ushrn=function(t){return this.clone().iushrn(t)},s.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,i=(t-e)/26;return!(this.length<=i||!(this.words[i]&1<=0);var e=t%26,i=(t-e)/26;return n(0===this.negative,"imaskn works only with positive numbers"),this.length<=i?this:(0!==e&&i++,this.length=Math.min(i,this.length),0!==e&&(this.words[this.length-1]&=67108863^67108863>>>e<=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},s.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(a/67108864|0),this.words[r+i]=67108863&s}for(;r>26,this.words[r+i]=67108863&s;if(0===o)return this.strip();for(n(-1===o),o=0,r=0;r>26,this.words[r]=67108863&s;return this.negative=1,this.strip()},s.prototype._wordDiv=function(t,e){var i,n=this.clone(),r=t,o=0|r.words[r.length-1];0!=(i=26-this._countBits(o))&&(r=r.ushln(i),n.iushln(i),o=0|r.words[r.length-1]);var a,l=n.length-r.length;if("mod"!==e){(a=new s(null)).length=l+1,a.words=new Array(a.length);for(var c=0;c=0;u--){var d=67108864*(0|n.words[r.length+u])+(0|n.words[r.length+u-1]);for(d=Math.min(d/o|0,67108863),n._ishlnsubmul(r,d,u);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(r,1,u),n.isZero()||(n.negative^=1);a&&(a.words[u]=d)}return a&&a.strip(),n.strip(),"div"!==e&&0!==i&&n.iushrn(i),{div:a||null,mod:n}},s.prototype.divmod=function(t,e,i){return n(!t.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(r=a.div.neg()),"div"!==e&&(o=a.mod.neg(),i&&0!==o.negative&&o.iadd(t)),{div:r,mod:o}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(r=a.div.neg()),{div:r,mod:a.mod}):0!=(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(o=a.mod.neg(),i&&0!==o.negative&&o.isub(t)),{div:a.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new s(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new s(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new s(this.modn(t.words[0]))}:this._wordDiv(t,e);var r,o,a},s.prototype.div=function(t){return this.divmod(t,"div",!1).div},s.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},s.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},s.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var i=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),r=t.andln(1),s=i.cmp(n);return s<0||1===r&&0===s?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},s.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,i=0,r=this.length-1;r>=0;r--)i=(e*i+(0|this.words[r]))%t;return i},s.prototype.idivn=function(t){n(t<=67108863);for(var e=0,i=this.length-1;i>=0;i--){var r=(0|this.words[i])+67108864*e;this.words[i]=r/t|0,e=r%t}return this.strip()},s.prototype.divn=function(t){return this.clone().idivn(t)},s.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var r=new s(1),o=new s(0),a=new s(0),l=new s(1),c=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++c;for(var h=i.clone(),u=e.clone();!e.isZero();){for(var d=0,p=1;0==(e.words[0]&p)&&d<26;++d,p<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(r.isOdd()||o.isOdd())&&(r.iadd(h),o.isub(u)),r.iushrn(1),o.iushrn(1);for(var f=0,m=1;0==(i.words[0]&m)&&f<26;++f,m<<=1);if(f>0)for(i.iushrn(f);f-- >0;)(a.isOdd()||l.isOdd())&&(a.iadd(h),l.isub(u)),a.iushrn(1),l.iushrn(1);e.cmp(i)>=0?(e.isub(i),r.isub(a),o.isub(l)):(i.isub(e),a.isub(r),l.isub(o))}return{a:a,b:l,gcd:i.iushln(c)}},s.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var r,o=new s(1),a=new s(0),l=i.clone();e.cmpn(1)>0&&i.cmpn(1)>0;){for(var c=0,h=1;0==(e.words[0]&h)&&c<26;++c,h<<=1);if(c>0)for(e.iushrn(c);c-- >0;)o.isOdd()&&o.iadd(l),o.iushrn(1);for(var u=0,d=1;0==(i.words[0]&d)&&u<26;++u,d<<=1);if(u>0)for(i.iushrn(u);u-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);e.cmp(i)>=0?(e.isub(i),o.isub(a)):(i.isub(e),a.isub(o))}return(r=0===e.cmpn(1)?o:a).cmpn(0)<0&&r.iadd(t),r},s.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),i=t.clone();e.negative=0,i.negative=0;for(var n=0;e.isEven()&&i.isEven();n++)e.iushrn(1),i.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;i.isEven();)i.iushrn(1);var r=e.cmp(i);if(r<0){var s=e;e=i,i=s}else if(0===r||0===i.cmpn(1))break;e.isub(i)}return i.iushln(n)},s.prototype.invm=function(t){return this.egcd(t).a.umod(t)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(t){return this.words[0]&t},s.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,i=(t-e)/26,r=1<>>26,this.words[o]=a&=67108863}return 0!==s&&(this.words[o]=s,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(t){var e,i=t<0;if(0!==this.negative&&!i)return-1;if(0===this.negative&&i)return 1;if(this.strip(),this.length>1)e=1;else{i&&(t=-t),n(t<=67108863,"Number is too big");var r=0|this.words[0];e=r===t?0:rt.length)return 1;if(this.length=0;i--){var n=0|this.words[i],r=0|t.words[i];if(n!==r){nr&&(e=1);break}}return e},s.prototype.gtn=function(t){return 1===this.cmpn(t)},s.prototype.gt=function(t){return 1===this.cmp(t)},s.prototype.gten=function(t){return this.cmpn(t)>=0},s.prototype.gte=function(t){return this.cmp(t)>=0},s.prototype.ltn=function(t){return-1===this.cmpn(t)},s.prototype.lt=function(t){return-1===this.cmp(t)},s.prototype.lten=function(t){return this.cmpn(t)<=0},s.prototype.lte=function(t){return this.cmp(t)<=0},s.prototype.eqn=function(t){return 0===this.cmpn(t)},s.prototype.eq=function(t){return 0===this.cmp(t)},s.red=function(t){return new C(t)},s.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},s.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(t){return this.red=t,this},s.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},s.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},s.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},s.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},s.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},s.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},s.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},s.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},s.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var y={k256:null,p224:null,p192:null,p25519:null};function b(t,e){this.name=t,this.p=new s(e,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function C(t){if("string"==typeof t){var e=s._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function A(t){C.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}b.prototype._tmp=function(){var t=new s(null);return t.words=new Array(Math.ceil(this.n/13)),t},b.prototype.ireduce=function(t){var e,i=t;do{this.split(i,this.tmp),e=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e0?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},b.prototype.split=function(t,e){t.iushrn(this.n,0,e)},b.prototype.imulK=function(t){return t.imul(this.k)},r(v,b),v.prototype.split=function(t,e){for(var i=4194303,n=Math.min(t.length,9),r=0;r>>22,s=o}t.words[r-10]=s>>>=22,t.length-=0===s&&t.length>10?10:9},v.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i>>=26,t.words[i]=r,e=n}return 0!==e&&(t.words[t.length++]=e),t},s._prime=function(t){if(y[t])return y[t];var e;if("k256"===t)e=new v;else if("p224"===t)e=new _;else if("p192"===t)e=new w;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new x}return y[t]=e,e},C.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},C.prototype._verify2=function(t,e){n(0==(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},C.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},C.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},C.prototype.add=function(t,e){this._verify2(t,e);var i=t.add(e);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},C.prototype.iadd=function(t,e){this._verify2(t,e);var i=t.iadd(e);return i.cmp(this.m)>=0&&i.isub(this.m),i},C.prototype.sub=function(t,e){this._verify2(t,e);var i=t.sub(e);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},C.prototype.isub=function(t,e){this._verify2(t,e);var i=t.isub(e);return i.cmpn(0)<0&&i.iadd(this.m),i},C.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},C.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},C.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},C.prototype.isqr=function(t){return this.imul(t,t.clone())},C.prototype.sqr=function(t){return this.mul(t,t)},C.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var i=this.m.add(new s(1)).iushrn(2);return this.pow(t,i)}for(var r=this.m.subn(1),o=0;!r.isZero()&&0===r.andln(1);)o++,r.iushrn(1);n(!r.isZero());var a=new s(1).toRed(this),l=a.redNeg(),c=this.m.subn(1).iushrn(1),h=this.m.bitLength();for(h=new s(2*h*h).toRed(this);0!==this.pow(h,c).cmp(l);)h.redIAdd(l);for(var u=this.pow(h,r),d=this.pow(t,r.addn(1).iushrn(1)),p=this.pow(t,r),f=o;0!==p.cmp(a);){for(var m=p,g=0;0!==m.cmp(a);g++)m=m.redSqr();n(g=0;n--){for(var c=e.words[n],h=l-1;h>=0;h--){var u=c>>h&1;r!==i[0]&&(r=this.sqr(r)),0!==u||0!==o?(o<<=1,o|=u,(4==++a||0===n&&0===h)&&(r=this.mul(r,i[o]),a=0,o=0)):a=0}l=26}return r},C.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},C.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},s.mont=function(t){return new A(t)},r(A,C),A.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},A.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},A.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var i=t.imul(e),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),s=r;return r.cmp(this.m)>=0?s=r.isub(this.m):r.cmpn(0)<0&&(s=r.iadd(this.m)),s._forceRed(this)},A.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new s(0)._forceRed(this);var i=t.mul(e),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),o=r;return r.cmp(this.m)>=0?o=r.isub(this.m):r.cmpn(0)<0&&(o=r.iadd(this.m)),o._forceRed(this)},A.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=i.nmd(t),this)},5068:t=>{"use strict";var e,i="object"==typeof Reflect?Reflect:null,n=i&&"function"==typeof i.apply?i.apply:function(t,e,i){return Function.prototype.apply.call(t,e,i)};e=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var r=Number.isNaN||function(t){return t!=t};function s(){s.init.call(this)}t.exports=s,t.exports.once=function(t,e){return new Promise(function(i,n){function r(i){t.removeListener(e,s),n(i)}function s(){"function"==typeof t.removeListener&&t.removeListener("error",r),i([].slice.call(arguments))}m(t,e,s,{once:!0}),"error"!==e&&function(t,e,i){"function"==typeof t.on&&m(t,"error",e,{once:!0})}(t,r)})},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var o=10;function a(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function l(t){return void 0===t._maxListeners?s.defaultMaxListeners:t._maxListeners}function c(t,e,i,n){var r,s,o;if(a(i),void 0===(s=t._events)?(s=t._events=Object.create(null),t._eventsCount=0):(void 0!==s.newListener&&(t.emit("newListener",e,i.listener?i.listener:i),s=t._events),o=s[e]),void 0===o)o=s[e]=i,++t._eventsCount;else if("function"==typeof o?o=s[e]=n?[i,o]:[o,i]:n?o.unshift(i):o.push(i),(r=l(t))>0&&o.length>r&&!o.warned){o.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=t,c.type=e,c.count=o.length,console&&console.warn&&console.warn(c)}return t}function h(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function u(t,e,i){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:i},r=h.bind(n);return r.listener=i,n.wrapFn=r,r}function d(t,e,i){var n=t._events;if(void 0===n)return[];var r=n[e];return void 0===r?[]:"function"==typeof r?i?[r.listener||r]:[r]:i?function(t){for(var e=new Array(t.length),i=0;i0&&(o=e[0]),o instanceof Error)throw o;var a=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw a.context=o,a}var l=s[t];if(void 0===l)return!1;if("function"==typeof l)n(l,this,e);else{var c=l.length,h=f(l,c);for(i=0;i=0;s--)if(i[s]===e||i[s].listener===e){o=i[s].listener,r=s;break}if(r<0)return this;0===r?i.shift():function(t,e){for(;e+1=0;n--)this.removeListener(t,e[n]);return this},s.prototype.listeners=function(t){return d(this,t,!0)},s.prototype.rawListeners=function(t){return d(this,t,!1)},s.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):p.call(t,e)},s.prototype.listenerCount=p,s.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}},8386:(t,e,i)=>{var n=i(7015).Buffer,r=i(9233);t.exports=function(t,e,i,s){if(n.isBuffer(t)||(t=n.from(t,"binary")),e&&(n.isBuffer(e)||(e=n.from(e,"binary")),8!==e.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var o=i/8,a=n.alloc(o),l=n.alloc(s||0),c=n.alloc(0);o>0||s>0;){var h=new r;h.update(c),h.update(t),e&&h.update(e),c=h.digest();var u=0;if(o>0){var d=a.length-o;u=Math.min(o,c.length),c.copy(a,d,0,u),o-=u}if(u0){var p=l.length-s,f=Math.min(s,c.length-u);c.copy(l,p,u,u+f),s-=f}}return c.fill(0),{key:a,iv:l}}},7338:(t,e,i)=>{"use strict";var n=i(932).Buffer,r=i(7612).Transform;function s(t){r.call(this),this._block=n.allocUnsafe(t),this._blockSize=t,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}i(5457)(s,r),s.prototype._transform=function(t,e,i){var n=null;try{this.update(t,e)}catch(r){n=r}i(n)},s.prototype._flush=function(t){var e=null;try{this.push(this.digest())}catch(i){e=i}t(e)},s.prototype.update=function(t,e){if(function(t,e){if(!n.isBuffer(t)&&"string"!=typeof t)throw new TypeError("Data must be a string or a buffer")}(t),this._finalized)throw new Error("Digest already called");n.isBuffer(t)||(t=n.from(t,e));for(var i=this._block,r=0;this._blockOffset+t.length-r>=this._blockSize;){for(var s=this._blockOffset;s0;++o)this._length[o]+=a,(a=this._length[o]/4294967296|0)>0&&(this._length[o]-=4294967296*a);return this},s.prototype._update=function(){throw new Error("_update is not implemented")},s.prototype.digest=function(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();void 0!==t&&(e=e.toString(t)),this._block.fill(0),this._blockOffset=0;for(var i=0;i<4;++i)this._length[i]=0;return e},s.prototype._digest=function(){throw new Error("_digest is not implemented")},t.exports=s},932:(t,e,i)=>{var n=i(3833),r=n.Buffer;function s(t,e){for(var i in t)e[i]=t[i]}function o(t,e,i){return r(t,e,i)}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?t.exports=n:(s(n,e),e.Buffer=o),o.prototype=Object.create(r.prototype),s(r,o),o.from=function(t,e,i){if("number"==typeof t)throw new TypeError("Argument must not be a number");return r(t,e,i)},o.alloc=function(t,e,i){if("number"!=typeof t)throw new TypeError("Argument must be a number");var n=r(t);return void 0!==e?"string"==typeof i?n.fill(e,i):n.fill(e):n.fill(0),n},o.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return r(t)},o.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},7749:(t,e,i)=>{var n=e;n.utils=i(9898),n.common=i(4901),n.sha=i(3205),n.ripemd=i(6425),n.hmac=i(4554),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},4901:(t,e,i)=>{"use strict";var n=i(9898),r=i(523);function s(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}e.BlockHash=s,s.prototype.update=function(t,e){if(t=n.toArray(t,e),this.pending=this.pending?this.pending.concat(t):t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){var i=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-i,t.length),0===this.pending.length&&(this.pending=null),t=n.join32(t,0,t.length-i,this.endian);for(var r=0;r>>24&255,n[r++]=t>>>16&255,n[r++]=t>>>8&255,n[r++]=255&t}else for(n[r++]=255&t,n[r++]=t>>>8&255,n[r++]=t>>>16&255,n[r++]=t>>>24&255,n[r++]=0,n[r++]=0,n[r++]=0,n[r++]=0,s=8;s{"use strict";var n=i(9898),r=i(523);function s(t,e,i){if(!(this instanceof s))return new s(t,e,i);this.Hash=t,this.blockSize=t.blockSize/8,this.outSize=t.outSize/8,this.inner=null,this.outer=null,this._init(n.toArray(e,i))}t.exports=s,s.prototype._init=function(t){t.length>this.blockSize&&(t=(new this.Hash).update(t).digest()),r(t.length<=this.blockSize);for(var e=t.length;e{"use strict";var n=i(9898),r=i(4901),s=n.rotl32,o=n.sum32,a=n.sum32_3,l=n.sum32_4,c=r.BlockHash;function h(){if(!(this instanceof h))return new h;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function u(t,e,i,n){return t<=15?e^i^n:t<=31?e&i|~e&n:t<=47?(e|~i)^n:t<=63?e&n|i&~n:e^(i|~n)}function d(t){return t<=15?0:t<=31?1518500249:t<=47?1859775393:t<=63?2400959708:2840853838}function p(t){return t<=15?1352829926:t<=31?1548603684:t<=47?1836072691:t<=63?2053994217:0}n.inherits(h,c),e.ripemd160=h,h.blockSize=512,h.outSize=160,h.hmacStrength=192,h.padLength=64,h.prototype._update=function(t,e){for(var i=this.h[0],n=this.h[1],r=this.h[2],c=this.h[3],h=this.h[4],b=i,v=n,_=r,w=c,x=h,C=0;C<80;C++){var A=o(s(l(i,u(C,n,r,c),t[f[C]+e],d(C)),g[C]),h);i=h,h=c,c=s(r,10),r=n,n=A,A=o(s(l(b,u(79-C,v,_,w),t[m[C]+e],p(C)),y[C]),x),b=x,x=w,w=s(_,10),_=v,v=A}A=a(this.h[1],r,w),this.h[1]=a(this.h[2],c,x),this.h[2]=a(this.h[3],h,b),this.h[3]=a(this.h[4],i,v),this.h[4]=a(this.h[0],n,_),this.h[0]=A},h.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h,"little"):n.split32(this.h,"little")};var f=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],m=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],g=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],y=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},3205:(t,e,i)=>{"use strict";e.sha1=i(6126),e.sha224=i(4615),e.sha256=i(1801),e.sha384=i(8391),e.sha512=i(940)},6126:(t,e,i)=>{"use strict";var n=i(9898),r=i(4901),s=i(1866),o=n.rotl32,a=n.sum32,l=n.sum32_5,c=s.ft_1,h=r.BlockHash,u=[1518500249,1859775393,2400959708,3395469782];function d(){if(!(this instanceof d))return new d;h.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}n.inherits(d,h),t.exports=d,d.blockSize=512,d.outSize=160,d.hmacStrength=80,d.padLength=64,d.prototype._update=function(t,e){for(var i=this.W,n=0;n<16;n++)i[n]=t[e+n];for(;n{"use strict";var n=i(9898),r=i(1801);function s(){if(!(this instanceof s))return new s;r.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}n.inherits(s,r),t.exports=s,s.blockSize=512,s.outSize=224,s.hmacStrength=192,s.padLength=64,s.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h.slice(0,7),"big"):n.split32(this.h.slice(0,7),"big")}},1801:(t,e,i)=>{"use strict";var n=i(9898),r=i(4901),s=i(1866),o=i(523),a=n.sum32,l=n.sum32_4,c=n.sum32_5,h=s.ch32,u=s.maj32,d=s.s0_256,p=s.s1_256,f=s.g0_256,m=s.g1_256,g=r.BlockHash,y=[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];function b(){if(!(this instanceof b))return new b;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=y,this.W=new Array(64)}n.inherits(b,g),t.exports=b,b.blockSize=512,b.outSize=256,b.hmacStrength=192,b.padLength=64,b.prototype._update=function(t,e){for(var i=this.W,n=0;n<16;n++)i[n]=t[e+n];for(;n{"use strict";var n=i(9898),r=i(940);function s(){if(!(this instanceof s))return new s;r.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}n.inherits(s,r),t.exports=s,s.blockSize=1024,s.outSize=384,s.hmacStrength=192,s.padLength=128,s.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h.slice(0,12),"big"):n.split32(this.h.slice(0,12),"big")}},940:(t,e,i)=>{"use strict";var n=i(9898),r=i(4901),s=i(523),o=n.rotr64_hi,a=n.rotr64_lo,l=n.shr64_hi,c=n.shr64_lo,h=n.sum64,u=n.sum64_hi,d=n.sum64_lo,p=n.sum64_4_hi,f=n.sum64_4_lo,m=n.sum64_5_hi,g=n.sum64_5_lo,y=r.BlockHash,b=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function v(){if(!(this instanceof v))return new v;y.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=b,this.W=new Array(160)}function _(t,e,i,n,r){var s=t&i^~t&r;return s<0&&(s+=4294967296),s}function w(t,e,i,n,r,s){var o=e&n^~e&s;return o<0&&(o+=4294967296),o}function x(t,e,i,n,r){var s=t&i^t&r^i&r;return s<0&&(s+=4294967296),s}function C(t,e,i,n,r,s){var o=e&n^e&s^n&s;return o<0&&(o+=4294967296),o}function A(t,e){var i=o(t,e,28)^o(e,t,2)^o(e,t,7);return i<0&&(i+=4294967296),i}function S(t,e){var i=a(t,e,28)^a(e,t,2)^a(e,t,7);return i<0&&(i+=4294967296),i}function E(t,e){var i=a(t,e,14)^a(t,e,18)^a(e,t,9);return i<0&&(i+=4294967296),i}function k(t,e){var i=o(t,e,1)^o(t,e,8)^l(t,e,7);return i<0&&(i+=4294967296),i}function T(t,e){var i=a(t,e,1)^a(t,e,8)^c(t,e,7);return i<0&&(i+=4294967296),i}function M(t,e){var i=a(t,e,19)^a(e,t,29)^c(t,e,6);return i<0&&(i+=4294967296),i}n.inherits(v,y),t.exports=v,v.blockSize=1024,v.outSize=512,v.hmacStrength=192,v.padLength=128,v.prototype._prepareBlock=function(t,e){for(var i=this.W,n=0;n<32;n++)i[n]=t[e+n];for(;n{"use strict";var n=i(9898).rotr32;function r(t,e,i){return t&e^~t&i}function s(t,e,i){return t&e^t&i^e&i}function o(t,e,i){return t^e^i}e.ft_1=function(t,e,i,n){return 0===t?r(e,i,n):1===t||3===t?o(e,i,n):2===t?s(e,i,n):void 0},e.ch32=r,e.maj32=s,e.p32=o,e.s0_256=function(t){return n(t,2)^n(t,13)^n(t,22)},e.s1_256=function(t){return n(t,6)^n(t,11)^n(t,25)},e.g0_256=function(t){return n(t,7)^n(t,18)^t>>>3},e.g1_256=function(t){return n(t,17)^n(t,19)^t>>>10}},9898:(t,e,i)=>{"use strict";var n=i(523),r=i(5457);function s(t,e){return 55296==(64512&t.charCodeAt(e))&&!(e<0||e+1>=t.length)&&56320==(64512&t.charCodeAt(e+1))}function o(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function a(t){return 1===t.length?"0"+t:t}function l(t){return 7===t.length?"0"+t:6===t.length?"00"+t:5===t.length?"000"+t:4===t.length?"0000"+t:3===t.length?"00000"+t:2===t.length?"000000"+t:1===t.length?"0000000"+t:t}e.inherits=r,e.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var i=[];if("string"==typeof t)if(e){if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t),r=0;r>6|192,i[n++]=63&o|128):s(t,r)?(o=65536+((1023&o)<<10)+(1023&t.charCodeAt(++r)),i[n++]=o>>18|240,i[n++]=o>>12&63|128,i[n++]=o>>6&63|128,i[n++]=63&o|128):(i[n++]=o>>12|224,i[n++]=o>>6&63|128,i[n++]=63&o|128)}else for(r=0;r>>0;return o},e.split32=function(t,e){for(var i=new Array(4*t.length),n=0,r=0;n>>24,i[r+1]=s>>>16&255,i[r+2]=s>>>8&255,i[r+3]=255&s):(i[r+3]=s>>>24,i[r+2]=s>>>16&255,i[r+1]=s>>>8&255,i[r]=255&s)}return i},e.rotr32=function(t,e){return t>>>e|t<<32-e},e.rotl32=function(t,e){return t<>>32-e},e.sum32=function(t,e){return t+e>>>0},e.sum32_3=function(t,e,i){return t+e+i>>>0},e.sum32_4=function(t,e,i,n){return t+e+i+n>>>0},e.sum32_5=function(t,e,i,n,r){return t+e+i+n+r>>>0},e.sum64=function(t,e,i,n){var r=n+t[e+1]>>>0;t[e]=(r>>0,t[e+1]=r},e.sum64_hi=function(t,e,i,n){return(e+n>>>0>>0},e.sum64_lo=function(t,e,i,n){return e+n>>>0},e.sum64_4_hi=function(t,e,i,n,r,s,o,a){var l=0,c=e;return l+=(c=c+n>>>0)>>0)>>0)>>0},e.sum64_4_lo=function(t,e,i,n,r,s,o,a){return e+n+s+a>>>0},e.sum64_5_hi=function(t,e,i,n,r,s,o,a,l,c){var h=0,u=e;return h+=(u=u+n>>>0)>>0)>>0)>>0)>>0},e.sum64_5_lo=function(t,e,i,n,r,s,o,a,l,c){return e+n+s+a+c>>>0},e.rotr64_hi=function(t,e,i){return(e<<32-i|t>>>i)>>>0},e.rotr64_lo=function(t,e,i){return(t<<32-i|e>>>i)>>>0},e.shr64_hi=function(t,e,i){return t>>>i},e.shr64_lo=function(t,e,i){return(t<<32-i|e>>>i)>>>0}},1753:(t,e,i)=>{"use strict";var n=i(7749),r=i(5856),s=i(523);function o(t){if(!(this instanceof o))return new o(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=r.toArray(t.entropy,t.entropyEnc||"hex"),i=r.toArray(t.nonce,t.nonceEnc||"hex"),n=r.toArray(t.pers,t.persEnc||"hex");s(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,i,n)}t.exports=o,o.prototype._init=function(t,e,i){var n=t.concat(e).concat(i);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var r=0;r=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(i||[])),this._reseed=1},o.prototype.generate=function(t,e,i,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof e&&(n=i,i=e,e=null),i&&(i=r.toArray(i,n||"hex"),this._update(i));for(var s=[];s.length{e.read=function(t,e,i,n,r){var s,o,a=8*r-n-1,l=(1<>1,h=-7,u=i?r-1:0,d=i?-1:1,p=t[e+u];for(u+=d,s=p&(1<<-h)-1,p>>=-h,h+=a;h>0;s=256*s+t[e+u],u+=d,h-=8);for(o=s&(1<<-h)-1,s>>=-h,h+=n;h>0;o=256*o+t[e+u],u+=d,h-=8);if(0===s)s=1-c;else{if(s===l)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,n),s-=c}return(p?-1:1)*o*Math.pow(2,s-n)},e.write=function(t,e,i,n,r,s){var o,a,l,c=8*s-r-1,h=(1<>1,d=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:s-1,f=n?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,o=h):(o=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-o))<1&&(o--,l*=2),(e+=o+u>=1?d/l:d*Math.pow(2,1-u))*l>=2&&(o++,l/=2),o+u>=h?(a=0,o=h):o+u>=1?(a=(e*l-1)*Math.pow(2,r),o+=u):(a=e*Math.pow(2,u-1)*Math.pow(2,r),o=0));r>=8;t[i+p]=255&a,p+=f,a/=256,r-=8);for(o=o<0;t[i+p]=255&o,p+=f,o/=256,c-=8);t[i+p-f]|=128*m}},5457:t=>{t.exports="function"==typeof Object.create?function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:function(t,e){if(e){t.super_=e;var i=function(){};i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}}},6265:t=>{var e={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==e.call(t)}},9233:(t,e,i)=>{"use strict";var n=i(5457),r=i(7338),s=i(7015).Buffer,o=new Array(16);function a(){r.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function l(t,e){return t<>>32-e}function c(t,e,i,n,r,s,o){return l(t+(e&i|~e&n)+r+s|0,o)+e|0}function h(t,e,i,n,r,s,o){return l(t+(e&n|i&~n)+r+s|0,o)+e|0}function u(t,e,i,n,r,s,o){return l(t+(e^i^n)+r+s|0,o)+e|0}function d(t,e,i,n,r,s,o){return l(t+(i^(e|~n))+r+s|0,o)+e|0}n(a,r),a.prototype._update=function(){for(var t=o,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);var i=this._a,n=this._b,r=this._c,s=this._d;i=c(i,n,r,s,t[0],3614090360,7),s=c(s,i,n,r,t[1],3905402710,12),r=c(r,s,i,n,t[2],606105819,17),n=c(n,r,s,i,t[3],3250441966,22),i=c(i,n,r,s,t[4],4118548399,7),s=c(s,i,n,r,t[5],1200080426,12),r=c(r,s,i,n,t[6],2821735955,17),n=c(n,r,s,i,t[7],4249261313,22),i=c(i,n,r,s,t[8],1770035416,7),s=c(s,i,n,r,t[9],2336552879,12),r=c(r,s,i,n,t[10],4294925233,17),n=c(n,r,s,i,t[11],2304563134,22),i=c(i,n,r,s,t[12],1804603682,7),s=c(s,i,n,r,t[13],4254626195,12),r=c(r,s,i,n,t[14],2792965006,17),i=h(i,n=c(n,r,s,i,t[15],1236535329,22),r,s,t[1],4129170786,5),s=h(s,i,n,r,t[6],3225465664,9),r=h(r,s,i,n,t[11],643717713,14),n=h(n,r,s,i,t[0],3921069994,20),i=h(i,n,r,s,t[5],3593408605,5),s=h(s,i,n,r,t[10],38016083,9),r=h(r,s,i,n,t[15],3634488961,14),n=h(n,r,s,i,t[4],3889429448,20),i=h(i,n,r,s,t[9],568446438,5),s=h(s,i,n,r,t[14],3275163606,9),r=h(r,s,i,n,t[3],4107603335,14),n=h(n,r,s,i,t[8],1163531501,20),i=h(i,n,r,s,t[13],2850285829,5),s=h(s,i,n,r,t[2],4243563512,9),r=h(r,s,i,n,t[7],1735328473,14),i=u(i,n=h(n,r,s,i,t[12],2368359562,20),r,s,t[5],4294588738,4),s=u(s,i,n,r,t[8],2272392833,11),r=u(r,s,i,n,t[11],1839030562,16),n=u(n,r,s,i,t[14],4259657740,23),i=u(i,n,r,s,t[1],2763975236,4),s=u(s,i,n,r,t[4],1272893353,11),r=u(r,s,i,n,t[7],4139469664,16),n=u(n,r,s,i,t[10],3200236656,23),i=u(i,n,r,s,t[13],681279174,4),s=u(s,i,n,r,t[0],3936430074,11),r=u(r,s,i,n,t[3],3572445317,16),n=u(n,r,s,i,t[6],76029189,23),i=u(i,n,r,s,t[9],3654602809,4),s=u(s,i,n,r,t[12],3873151461,11),r=u(r,s,i,n,t[15],530742520,16),i=d(i,n=u(n,r,s,i,t[2],3299628645,23),r,s,t[0],4096336452,6),s=d(s,i,n,r,t[7],1126891415,10),r=d(r,s,i,n,t[14],2878612391,15),n=d(n,r,s,i,t[5],4237533241,21),i=d(i,n,r,s,t[12],1700485571,6),s=d(s,i,n,r,t[3],2399980690,10),r=d(r,s,i,n,t[10],4293915773,15),n=d(n,r,s,i,t[1],2240044497,21),i=d(i,n,r,s,t[8],1873313359,6),s=d(s,i,n,r,t[15],4264355552,10),r=d(r,s,i,n,t[6],2734768916,15),n=d(n,r,s,i,t[13],1309151649,21),i=d(i,n,r,s,t[4],4149444226,6),s=d(s,i,n,r,t[11],3174756917,10),r=d(r,s,i,n,t[2],718787259,15),n=d(n,r,s,i,t[9],3951481745,21),this._a=this._a+i|0,this._b=this._b+n|0,this._c=this._c+r|0,this._d=this._d+s|0},a.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=s.allocUnsafe(16);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t},t.exports=a},2533:(t,e,i)=>{var n=i(4870),r=i(8520);function s(t){this.rand=t||new r.Rand}t.exports=s,s.create=function(t){return new s(t)},s.prototype._randbelow=function(t){var e=t.bitLength(),i=Math.ceil(e/8);do{var r=new n(this.rand.generate(i))}while(r.cmp(t)>=0);return r},s.prototype._randrange=function(t,e){var i=e.sub(t);return t.add(this._randbelow(i))},s.prototype.test=function(t,e,i){var r=t.bitLength(),s=n.mont(t),o=new n(1).toRed(s);e||(e=Math.max(1,r/48|0));for(var a=t.subn(1),l=0;!a.testn(l);l++);for(var c=t.shrn(l),h=a.toRed(s);e>0;e--){var u=this._randrange(new n(2),a);i&&i(u);var d=u.toRed(s).redPow(c);if(0!==d.cmp(o)&&0!==d.cmp(h)){for(var p=1;p0;e--){var h=this._randrange(new n(2),o),u=t.gcd(h);if(0!==u.cmpn(1))return u;var d=h.toRed(r).redPow(l);if(0!==d.cmp(s)&&0!==d.cmp(c)){for(var p=1;p=65&&i<=70?i-55:i>=97&&i<=102?i-87:i-48&15}function l(t,e,i){var n=a(t,i);return i-1>=e&&(n|=a(t,i-1)<<4),n}function c(t,e,i,n){for(var r=0,s=Math.min(t.length,i),o=e;o=49?a-49+10:a>=17?a-17+10:a}return r}s.isBN=function(t){return t instanceof s||null!==t&&"object"==typeof t&&t.constructor.wordSize===s.wordSize&&Array.isArray(t.words)},s.max=function(t,e){return t.cmp(e)>0?t:e},s.min=function(t,e){return t.cmp(e)<0?t:e},s.prototype._init=function(t,e,i){if("number"==typeof t)return this._initNumber(t,e,i);if("object"==typeof t)return this._initArray(t,e,i);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var r=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(r++,this.negative=1),r=0;r-=3)this.words[s]|=(o=t[r]|t[r-1]<<8|t[r-2]<<16)<>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);else if("le"===i)for(r=0,s=0;r>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);return this.strip()},s.prototype._parseHex=function(t,e,i){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n=e;n-=2)r=l(t,e,n)<=18?(s-=18,this.words[o+=1]|=r>>>26):s+=8;else for(n=(t.length-e)%2==0?e+1:e;n=18?(s-=18,this.words[o+=1]|=r>>>26):s+=8;this.strip()},s.prototype._parseBase=function(t,e,i){this.words=[0],this.length=1;for(var n=0,r=1;r<=67108863;r*=e)n++;n--,r=r/e|0;for(var s=t.length-i,o=s%n,a=Math.min(s,s-o)+i,l=0,h=i;h1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?""};var h=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],u=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(t,e,i){i.negative=e.negative^t.negative;var n=t.length+e.length|0;i.length=n,n=n-1|0;var r=0|t.words[0],s=0|e.words[0],o=r*s,a=o/67108864|0;i.words[0]=67108863&o;for(var l=1;l>>26,h=67108863&a,u=Math.min(l,e.length-1),d=Math.max(0,l-t.length+1);d<=u;d++)c+=(o=(r=0|t.words[l-d|0])*(s=0|e.words[d])+h)/67108864|0,h=67108863&o;i.words[l]=0|h,a=0|c}return 0!==a?i.words[l]=0|a:i.length--,i.strip()}s.prototype.toString=function(t,e){var i;if(e=0|e||1,16===(t=t||10)||"hex"===t){i="";for(var r=0,s=0,o=0;o>>24-r&16777215)||o!==this.length-1?h[6-l.length]+l+i:l+i,(r+=2)>=26&&(r-=26,o--)}for(0!==s&&(i=s.toString(16)+i);i.length%e!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(t===(0|t)&&t>=2&&t<=36){var c=u[t],p=d[t];i="";var f=this.clone();for(f.negative=0;!f.isZero();){var m=f.modn(p).toString(t);i=(f=f.idivn(p)).isZero()?m+i:h[c-m.length]+m+i}for(this.isZero()&&(i="0"+i);i.length%e!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}n(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(t,e){return n(void 0!==o),this.toArrayLike(o,t,e)},s.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},s.prototype.toArrayLike=function(t,e,i){var r=this.byteLength(),s=i||Math.max(1,r);n(r<=s,"byte array longer than desired length"),n(s>0,"Requested array length <= 0"),this.strip();var o,a,l="le"===e,c=new t(s),h=this.clone();if(l){for(a=0;!h.isZero();a++)o=h.andln(255),h.iushrn(8),c[a]=o;for(;a=4096&&(i+=13,e>>>=13),e>=64&&(i+=7,e>>>=7),e>=8&&(i+=4,e>>>=4),e>=2&&(i+=2,e>>>=2),i+e},s.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,i=0;return 0==(8191&e)&&(i+=13,e>>>=13),0==(127&e)&&(i+=7,e>>>=7),0==(15&e)&&(i+=4,e>>>=4),0==(3&e)&&(i+=2,e>>>=2),0==(1&e)&&i++,i},s.prototype.bitLength=function(){var t=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+t},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},s.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},s.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var i=0;it.length?this.clone().iand(t):t.clone().iand(this)},s.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},s.prototype.iuxor=function(t){var e,i;this.length>t.length?(e=this,i=t):(e=t,i=this);for(var n=0;nt.length?this.clone().ixor(t):t.clone().ixor(this)},s.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},s.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),i=t%26;this._expand(e),i>0&&e--;for(var r=0;r0&&(this.words[r]=~this.words[r]&67108863>>26-i),this.strip()},s.prototype.notn=function(t){return this.clone().inotn(t)},s.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var i=t/26|0,r=t%26;return this._expand(i+1),this.words[i]=e?this.words[i]|1<t.length?(i=this,n=t):(i=t,n=this);for(var r=0,s=0;s>>26;for(;0!==r&&s>>26;if(this.length=i.length,0!==r)this.words[this.length]=r,this.length++;else if(i!==this)for(;st.length?this.clone().iadd(t):t.clone().iadd(this)},s.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,n,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(i=this,n=t):(i=t,n=this);for(var s=0,o=0;o>26,this.words[o]=67108863&e;for(;0!==s&&o>26,this.words[o]=67108863&e;if(0===s&&o>>13,p=0|o[1],f=8191&p,m=p>>>13,g=0|o[2],y=8191&g,b=g>>>13,v=0|o[3],_=8191&v,w=v>>>13,x=0|o[4],C=8191&x,A=x>>>13,S=0|o[5],E=8191&S,k=S>>>13,T=0|o[6],M=8191&T,L=T>>>13,I=0|o[7],O=8191&I,D=I>>>13,R=0|o[8],N=8191&R,P=R>>>13,F=0|o[9],Z=8191&F,B=F>>>13,U=0|a[0],q=8191&U,z=U>>>13,H=0|a[1],Y=8191&H,G=H>>>13,j=0|a[2],V=8191&j,Q=j>>>13,W=0|a[3],J=8191&W,X=W>>>13,K=0|a[4],$=8191&K,tt=K>>>13,et=0|a[5],it=8191&et,nt=et>>>13,rt=0|a[6],st=8191&rt,ot=rt>>>13,at=0|a[7],lt=8191&at,ct=at>>>13,ht=0|a[8],ut=8191&ht,dt=ht>>>13,pt=0|a[9],ft=8191&pt,mt=pt>>>13;i.negative=t.negative^e.negative,i.length=19;var gt=(c+(n=Math.imul(u,q))|0)+((8191&(r=(r=Math.imul(u,z))+Math.imul(d,q)|0))<<13)|0;c=((s=Math.imul(d,z))+(r>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(f,q),r=(r=Math.imul(f,z))+Math.imul(m,q)|0,s=Math.imul(m,z);var yt=(c+(n=n+Math.imul(u,Y)|0)|0)+((8191&(r=(r=r+Math.imul(u,G)|0)+Math.imul(d,Y)|0))<<13)|0;c=((s=s+Math.imul(d,G)|0)+(r>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(y,q),r=(r=Math.imul(y,z))+Math.imul(b,q)|0,s=Math.imul(b,z),n=n+Math.imul(f,Y)|0,r=(r=r+Math.imul(f,G)|0)+Math.imul(m,Y)|0,s=s+Math.imul(m,G)|0;var bt=(c+(n=n+Math.imul(u,V)|0)|0)+((8191&(r=(r=r+Math.imul(u,Q)|0)+Math.imul(d,V)|0))<<13)|0;c=((s=s+Math.imul(d,Q)|0)+(r>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(_,q),r=(r=Math.imul(_,z))+Math.imul(w,q)|0,s=Math.imul(w,z),n=n+Math.imul(y,Y)|0,r=(r=r+Math.imul(y,G)|0)+Math.imul(b,Y)|0,s=s+Math.imul(b,G)|0,n=n+Math.imul(f,V)|0,r=(r=r+Math.imul(f,Q)|0)+Math.imul(m,V)|0,s=s+Math.imul(m,Q)|0;var vt=(c+(n=n+Math.imul(u,J)|0)|0)+((8191&(r=(r=r+Math.imul(u,X)|0)+Math.imul(d,J)|0))<<13)|0;c=((s=s+Math.imul(d,X)|0)+(r>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(C,q),r=(r=Math.imul(C,z))+Math.imul(A,q)|0,s=Math.imul(A,z),n=n+Math.imul(_,Y)|0,r=(r=r+Math.imul(_,G)|0)+Math.imul(w,Y)|0,s=s+Math.imul(w,G)|0,n=n+Math.imul(y,V)|0,r=(r=r+Math.imul(y,Q)|0)+Math.imul(b,V)|0,s=s+Math.imul(b,Q)|0,n=n+Math.imul(f,J)|0,r=(r=r+Math.imul(f,X)|0)+Math.imul(m,J)|0,s=s+Math.imul(m,X)|0;var _t=(c+(n=n+Math.imul(u,$)|0)|0)+((8191&(r=(r=r+Math.imul(u,tt)|0)+Math.imul(d,$)|0))<<13)|0;c=((s=s+Math.imul(d,tt)|0)+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(E,q),r=(r=Math.imul(E,z))+Math.imul(k,q)|0,s=Math.imul(k,z),n=n+Math.imul(C,Y)|0,r=(r=r+Math.imul(C,G)|0)+Math.imul(A,Y)|0,s=s+Math.imul(A,G)|0,n=n+Math.imul(_,V)|0,r=(r=r+Math.imul(_,Q)|0)+Math.imul(w,V)|0,s=s+Math.imul(w,Q)|0,n=n+Math.imul(y,J)|0,r=(r=r+Math.imul(y,X)|0)+Math.imul(b,J)|0,s=s+Math.imul(b,X)|0,n=n+Math.imul(f,$)|0,r=(r=r+Math.imul(f,tt)|0)+Math.imul(m,$)|0,s=s+Math.imul(m,tt)|0;var wt=(c+(n=n+Math.imul(u,it)|0)|0)+((8191&(r=(r=r+Math.imul(u,nt)|0)+Math.imul(d,it)|0))<<13)|0;c=((s=s+Math.imul(d,nt)|0)+(r>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(M,q),r=(r=Math.imul(M,z))+Math.imul(L,q)|0,s=Math.imul(L,z),n=n+Math.imul(E,Y)|0,r=(r=r+Math.imul(E,G)|0)+Math.imul(k,Y)|0,s=s+Math.imul(k,G)|0,n=n+Math.imul(C,V)|0,r=(r=r+Math.imul(C,Q)|0)+Math.imul(A,V)|0,s=s+Math.imul(A,Q)|0,n=n+Math.imul(_,J)|0,r=(r=r+Math.imul(_,X)|0)+Math.imul(w,J)|0,s=s+Math.imul(w,X)|0,n=n+Math.imul(y,$)|0,r=(r=r+Math.imul(y,tt)|0)+Math.imul(b,$)|0,s=s+Math.imul(b,tt)|0,n=n+Math.imul(f,it)|0,r=(r=r+Math.imul(f,nt)|0)+Math.imul(m,it)|0,s=s+Math.imul(m,nt)|0;var xt=(c+(n=n+Math.imul(u,st)|0)|0)+((8191&(r=(r=r+Math.imul(u,ot)|0)+Math.imul(d,st)|0))<<13)|0;c=((s=s+Math.imul(d,ot)|0)+(r>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(O,q),r=(r=Math.imul(O,z))+Math.imul(D,q)|0,s=Math.imul(D,z),n=n+Math.imul(M,Y)|0,r=(r=r+Math.imul(M,G)|0)+Math.imul(L,Y)|0,s=s+Math.imul(L,G)|0,n=n+Math.imul(E,V)|0,r=(r=r+Math.imul(E,Q)|0)+Math.imul(k,V)|0,s=s+Math.imul(k,Q)|0,n=n+Math.imul(C,J)|0,r=(r=r+Math.imul(C,X)|0)+Math.imul(A,J)|0,s=s+Math.imul(A,X)|0,n=n+Math.imul(_,$)|0,r=(r=r+Math.imul(_,tt)|0)+Math.imul(w,$)|0,s=s+Math.imul(w,tt)|0,n=n+Math.imul(y,it)|0,r=(r=r+Math.imul(y,nt)|0)+Math.imul(b,it)|0,s=s+Math.imul(b,nt)|0,n=n+Math.imul(f,st)|0,r=(r=r+Math.imul(f,ot)|0)+Math.imul(m,st)|0,s=s+Math.imul(m,ot)|0;var Ct=(c+(n=n+Math.imul(u,lt)|0)|0)+((8191&(r=(r=r+Math.imul(u,ct)|0)+Math.imul(d,lt)|0))<<13)|0;c=((s=s+Math.imul(d,ct)|0)+(r>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(N,q),r=(r=Math.imul(N,z))+Math.imul(P,q)|0,s=Math.imul(P,z),n=n+Math.imul(O,Y)|0,r=(r=r+Math.imul(O,G)|0)+Math.imul(D,Y)|0,s=s+Math.imul(D,G)|0,n=n+Math.imul(M,V)|0,r=(r=r+Math.imul(M,Q)|0)+Math.imul(L,V)|0,s=s+Math.imul(L,Q)|0,n=n+Math.imul(E,J)|0,r=(r=r+Math.imul(E,X)|0)+Math.imul(k,J)|0,s=s+Math.imul(k,X)|0,n=n+Math.imul(C,$)|0,r=(r=r+Math.imul(C,tt)|0)+Math.imul(A,$)|0,s=s+Math.imul(A,tt)|0,n=n+Math.imul(_,it)|0,r=(r=r+Math.imul(_,nt)|0)+Math.imul(w,it)|0,s=s+Math.imul(w,nt)|0,n=n+Math.imul(y,st)|0,r=(r=r+Math.imul(y,ot)|0)+Math.imul(b,st)|0,s=s+Math.imul(b,ot)|0,n=n+Math.imul(f,lt)|0,r=(r=r+Math.imul(f,ct)|0)+Math.imul(m,lt)|0,s=s+Math.imul(m,ct)|0;var At=(c+(n=n+Math.imul(u,ut)|0)|0)+((8191&(r=(r=r+Math.imul(u,dt)|0)+Math.imul(d,ut)|0))<<13)|0;c=((s=s+Math.imul(d,dt)|0)+(r>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(Z,q),r=(r=Math.imul(Z,z))+Math.imul(B,q)|0,s=Math.imul(B,z),n=n+Math.imul(N,Y)|0,r=(r=r+Math.imul(N,G)|0)+Math.imul(P,Y)|0,s=s+Math.imul(P,G)|0,n=n+Math.imul(O,V)|0,r=(r=r+Math.imul(O,Q)|0)+Math.imul(D,V)|0,s=s+Math.imul(D,Q)|0,n=n+Math.imul(M,J)|0,r=(r=r+Math.imul(M,X)|0)+Math.imul(L,J)|0,s=s+Math.imul(L,X)|0,n=n+Math.imul(E,$)|0,r=(r=r+Math.imul(E,tt)|0)+Math.imul(k,$)|0,s=s+Math.imul(k,tt)|0,n=n+Math.imul(C,it)|0,r=(r=r+Math.imul(C,nt)|0)+Math.imul(A,it)|0,s=s+Math.imul(A,nt)|0,n=n+Math.imul(_,st)|0,r=(r=r+Math.imul(_,ot)|0)+Math.imul(w,st)|0,s=s+Math.imul(w,ot)|0,n=n+Math.imul(y,lt)|0,r=(r=r+Math.imul(y,ct)|0)+Math.imul(b,lt)|0,s=s+Math.imul(b,ct)|0,n=n+Math.imul(f,ut)|0,r=(r=r+Math.imul(f,dt)|0)+Math.imul(m,ut)|0,s=s+Math.imul(m,dt)|0;var St=(c+(n=n+Math.imul(u,ft)|0)|0)+((8191&(r=(r=r+Math.imul(u,mt)|0)+Math.imul(d,ft)|0))<<13)|0;c=((s=s+Math.imul(d,mt)|0)+(r>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(Z,Y),r=(r=Math.imul(Z,G))+Math.imul(B,Y)|0,s=Math.imul(B,G),n=n+Math.imul(N,V)|0,r=(r=r+Math.imul(N,Q)|0)+Math.imul(P,V)|0,s=s+Math.imul(P,Q)|0,n=n+Math.imul(O,J)|0,r=(r=r+Math.imul(O,X)|0)+Math.imul(D,J)|0,s=s+Math.imul(D,X)|0,n=n+Math.imul(M,$)|0,r=(r=r+Math.imul(M,tt)|0)+Math.imul(L,$)|0,s=s+Math.imul(L,tt)|0,n=n+Math.imul(E,it)|0,r=(r=r+Math.imul(E,nt)|0)+Math.imul(k,it)|0,s=s+Math.imul(k,nt)|0,n=n+Math.imul(C,st)|0,r=(r=r+Math.imul(C,ot)|0)+Math.imul(A,st)|0,s=s+Math.imul(A,ot)|0,n=n+Math.imul(_,lt)|0,r=(r=r+Math.imul(_,ct)|0)+Math.imul(w,lt)|0,s=s+Math.imul(w,ct)|0,n=n+Math.imul(y,ut)|0,r=(r=r+Math.imul(y,dt)|0)+Math.imul(b,ut)|0,s=s+Math.imul(b,dt)|0;var Et=(c+(n=n+Math.imul(f,ft)|0)|0)+((8191&(r=(r=r+Math.imul(f,mt)|0)+Math.imul(m,ft)|0))<<13)|0;c=((s=s+Math.imul(m,mt)|0)+(r>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(Z,V),r=(r=Math.imul(Z,Q))+Math.imul(B,V)|0,s=Math.imul(B,Q),n=n+Math.imul(N,J)|0,r=(r=r+Math.imul(N,X)|0)+Math.imul(P,J)|0,s=s+Math.imul(P,X)|0,n=n+Math.imul(O,$)|0,r=(r=r+Math.imul(O,tt)|0)+Math.imul(D,$)|0,s=s+Math.imul(D,tt)|0,n=n+Math.imul(M,it)|0,r=(r=r+Math.imul(M,nt)|0)+Math.imul(L,it)|0,s=s+Math.imul(L,nt)|0,n=n+Math.imul(E,st)|0,r=(r=r+Math.imul(E,ot)|0)+Math.imul(k,st)|0,s=s+Math.imul(k,ot)|0,n=n+Math.imul(C,lt)|0,r=(r=r+Math.imul(C,ct)|0)+Math.imul(A,lt)|0,s=s+Math.imul(A,ct)|0,n=n+Math.imul(_,ut)|0,r=(r=r+Math.imul(_,dt)|0)+Math.imul(w,ut)|0,s=s+Math.imul(w,dt)|0;var kt=(c+(n=n+Math.imul(y,ft)|0)|0)+((8191&(r=(r=r+Math.imul(y,mt)|0)+Math.imul(b,ft)|0))<<13)|0;c=((s=s+Math.imul(b,mt)|0)+(r>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(Z,J),r=(r=Math.imul(Z,X))+Math.imul(B,J)|0,s=Math.imul(B,X),n=n+Math.imul(N,$)|0,r=(r=r+Math.imul(N,tt)|0)+Math.imul(P,$)|0,s=s+Math.imul(P,tt)|0,n=n+Math.imul(O,it)|0,r=(r=r+Math.imul(O,nt)|0)+Math.imul(D,it)|0,s=s+Math.imul(D,nt)|0,n=n+Math.imul(M,st)|0,r=(r=r+Math.imul(M,ot)|0)+Math.imul(L,st)|0,s=s+Math.imul(L,ot)|0,n=n+Math.imul(E,lt)|0,r=(r=r+Math.imul(E,ct)|0)+Math.imul(k,lt)|0,s=s+Math.imul(k,ct)|0,n=n+Math.imul(C,ut)|0,r=(r=r+Math.imul(C,dt)|0)+Math.imul(A,ut)|0,s=s+Math.imul(A,dt)|0;var Tt=(c+(n=n+Math.imul(_,ft)|0)|0)+((8191&(r=(r=r+Math.imul(_,mt)|0)+Math.imul(w,ft)|0))<<13)|0;c=((s=s+Math.imul(w,mt)|0)+(r>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(Z,$),r=(r=Math.imul(Z,tt))+Math.imul(B,$)|0,s=Math.imul(B,tt),n=n+Math.imul(N,it)|0,r=(r=r+Math.imul(N,nt)|0)+Math.imul(P,it)|0,s=s+Math.imul(P,nt)|0,n=n+Math.imul(O,st)|0,r=(r=r+Math.imul(O,ot)|0)+Math.imul(D,st)|0,s=s+Math.imul(D,ot)|0,n=n+Math.imul(M,lt)|0,r=(r=r+Math.imul(M,ct)|0)+Math.imul(L,lt)|0,s=s+Math.imul(L,ct)|0,n=n+Math.imul(E,ut)|0,r=(r=r+Math.imul(E,dt)|0)+Math.imul(k,ut)|0,s=s+Math.imul(k,dt)|0;var Mt=(c+(n=n+Math.imul(C,ft)|0)|0)+((8191&(r=(r=r+Math.imul(C,mt)|0)+Math.imul(A,ft)|0))<<13)|0;c=((s=s+Math.imul(A,mt)|0)+(r>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(Z,it),r=(r=Math.imul(Z,nt))+Math.imul(B,it)|0,s=Math.imul(B,nt),n=n+Math.imul(N,st)|0,r=(r=r+Math.imul(N,ot)|0)+Math.imul(P,st)|0,s=s+Math.imul(P,ot)|0,n=n+Math.imul(O,lt)|0,r=(r=r+Math.imul(O,ct)|0)+Math.imul(D,lt)|0,s=s+Math.imul(D,ct)|0,n=n+Math.imul(M,ut)|0,r=(r=r+Math.imul(M,dt)|0)+Math.imul(L,ut)|0,s=s+Math.imul(L,dt)|0;var Lt=(c+(n=n+Math.imul(E,ft)|0)|0)+((8191&(r=(r=r+Math.imul(E,mt)|0)+Math.imul(k,ft)|0))<<13)|0;c=((s=s+Math.imul(k,mt)|0)+(r>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,n=Math.imul(Z,st),r=(r=Math.imul(Z,ot))+Math.imul(B,st)|0,s=Math.imul(B,ot),n=n+Math.imul(N,lt)|0,r=(r=r+Math.imul(N,ct)|0)+Math.imul(P,lt)|0,s=s+Math.imul(P,ct)|0,n=n+Math.imul(O,ut)|0,r=(r=r+Math.imul(O,dt)|0)+Math.imul(D,ut)|0,s=s+Math.imul(D,dt)|0;var It=(c+(n=n+Math.imul(M,ft)|0)|0)+((8191&(r=(r=r+Math.imul(M,mt)|0)+Math.imul(L,ft)|0))<<13)|0;c=((s=s+Math.imul(L,mt)|0)+(r>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(Z,lt),r=(r=Math.imul(Z,ct))+Math.imul(B,lt)|0,s=Math.imul(B,ct),n=n+Math.imul(N,ut)|0,r=(r=r+Math.imul(N,dt)|0)+Math.imul(P,ut)|0,s=s+Math.imul(P,dt)|0;var Ot=(c+(n=n+Math.imul(O,ft)|0)|0)+((8191&(r=(r=r+Math.imul(O,mt)|0)+Math.imul(D,ft)|0))<<13)|0;c=((s=s+Math.imul(D,mt)|0)+(r>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(Z,ut),r=(r=Math.imul(Z,dt))+Math.imul(B,ut)|0,s=Math.imul(B,dt);var Dt=(c+(n=n+Math.imul(N,ft)|0)|0)+((8191&(r=(r=r+Math.imul(N,mt)|0)+Math.imul(P,ft)|0))<<13)|0;c=((s=s+Math.imul(P,mt)|0)+(r>>>13)|0)+(Dt>>>26)|0,Dt&=67108863;var Rt=(c+(n=Math.imul(Z,ft))|0)+((8191&(r=(r=Math.imul(Z,mt))+Math.imul(B,ft)|0))<<13)|0;return c=((s=Math.imul(B,mt))+(r>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,l[0]=gt,l[1]=yt,l[2]=bt,l[3]=vt,l[4]=_t,l[5]=wt,l[6]=xt,l[7]=Ct,l[8]=At,l[9]=St,l[10]=Et,l[11]=kt,l[12]=Tt,l[13]=Mt,l[14]=Lt,l[15]=It,l[16]=Ot,l[17]=Dt,l[18]=Rt,0!==c&&(l[19]=c,i.length++),i};function m(t,e,i){return(new g).mulp(t,e,i)}function g(t,e){this.x=t,this.y=e}Math.imul||(f=p),s.prototype.mulTo=function(t,e){var i=this.length+t.length;return 10===this.length&&10===t.length?f(this,t,e):i<63?p(this,t,e):i<1024?function(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var n=0,r=0,s=0;s>>26)|0)>>>26,o&=67108863}i.words[s]=a,n=o,o=r}return 0!==n?i.words[s]=n:i.length--,i.strip()}(this,t,e):m(this,t,e)},g.prototype.makeRBT=function(t){for(var e=new Array(t),i=s.prototype._countBits(t)-1,n=0;n>=1;return n},g.prototype.permute=function(t,e,i,n,r,s){for(var o=0;o>>=1)r++;return 1<>>=13),s>>>=13;for(o=2*e;o>=26,e+=r/67108864|0,e+=s>>>26,this.words[i]=67108863&s}return 0!==e&&(this.words[i]=e,this.length++),this},s.prototype.muln=function(t){return this.clone().imuln(t)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),i=0;i>>n}return e}(t);if(0===e.length)return new s(1);for(var i=this,n=0;n=0);var e,i=t%26,r=(t-i)/26,s=67108863>>>26-i<<26-i;if(0!==i){var o=0;for(e=0;e>>26-i}o&&(this.words[e]=o,this.length++)}if(0!==r){for(e=this.length-1;e>=0;e--)this.words[e+r]=this.words[e];for(e=0;e=0),r=e?(e-e%26)/26:0;var s=t%26,o=Math.min((t-s)/26,this.length),a=67108863^67108863>>>s<o)for(this.length-=o,c=0;c=0&&(0!==h||c>=r);c--){var u=0|this.words[c];this.words[c]=h<<26-s|u>>>s,h=u&a}return l&&0!==h&&(l.words[l.length++]=h),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(t,e,i){return n(0===this.negative),this.iushrn(t,e,i)},s.prototype.shln=function(t){return this.clone().ishln(t)},s.prototype.ushln=function(t){return this.clone().iushln(t)},s.prototype.shrn=function(t){return this.clone().ishrn(t)},s.prototype.ushrn=function(t){return this.clone().iushrn(t)},s.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,i=(t-e)/26;return!(this.length<=i||!(this.words[i]&1<=0);var e=t%26,i=(t-e)/26;return n(0===this.negative,"imaskn works only with positive numbers"),this.length<=i?this:(0!==e&&i++,this.length=Math.min(i,this.length),0!==e&&(this.words[this.length-1]&=67108863^67108863>>>e<=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},s.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(a/67108864|0),this.words[r+i]=67108863&s}for(;r>26,this.words[r+i]=67108863&s;if(0===o)return this.strip();for(n(-1===o),o=0,r=0;r>26,this.words[r]=67108863&s;return this.negative=1,this.strip()},s.prototype._wordDiv=function(t,e){var i,n=this.clone(),r=t,o=0|r.words[r.length-1];0!=(i=26-this._countBits(o))&&(r=r.ushln(i),n.iushln(i),o=0|r.words[r.length-1]);var a,l=n.length-r.length;if("mod"!==e){(a=new s(null)).length=l+1,a.words=new Array(a.length);for(var c=0;c=0;u--){var d=67108864*(0|n.words[r.length+u])+(0|n.words[r.length+u-1]);for(d=Math.min(d/o|0,67108863),n._ishlnsubmul(r,d,u);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(r,1,u),n.isZero()||(n.negative^=1);a&&(a.words[u]=d)}return a&&a.strip(),n.strip(),"div"!==e&&0!==i&&n.iushrn(i),{div:a||null,mod:n}},s.prototype.divmod=function(t,e,i){return n(!t.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(r=a.div.neg()),"div"!==e&&(o=a.mod.neg(),i&&0!==o.negative&&o.iadd(t)),{div:r,mod:o}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(r=a.div.neg()),{div:r,mod:a.mod}):0!=(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(o=a.mod.neg(),i&&0!==o.negative&&o.isub(t)),{div:a.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new s(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new s(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new s(this.modn(t.words[0]))}:this._wordDiv(t,e);var r,o,a},s.prototype.div=function(t){return this.divmod(t,"div",!1).div},s.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},s.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},s.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var i=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),r=t.andln(1),s=i.cmp(n);return s<0||1===r&&0===s?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},s.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,i=0,r=this.length-1;r>=0;r--)i=(e*i+(0|this.words[r]))%t;return i},s.prototype.idivn=function(t){n(t<=67108863);for(var e=0,i=this.length-1;i>=0;i--){var r=(0|this.words[i])+67108864*e;this.words[i]=r/t|0,e=r%t}return this.strip()},s.prototype.divn=function(t){return this.clone().idivn(t)},s.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var r=new s(1),o=new s(0),a=new s(0),l=new s(1),c=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++c;for(var h=i.clone(),u=e.clone();!e.isZero();){for(var d=0,p=1;0==(e.words[0]&p)&&d<26;++d,p<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(r.isOdd()||o.isOdd())&&(r.iadd(h),o.isub(u)),r.iushrn(1),o.iushrn(1);for(var f=0,m=1;0==(i.words[0]&m)&&f<26;++f,m<<=1);if(f>0)for(i.iushrn(f);f-- >0;)(a.isOdd()||l.isOdd())&&(a.iadd(h),l.isub(u)),a.iushrn(1),l.iushrn(1);e.cmp(i)>=0?(e.isub(i),r.isub(a),o.isub(l)):(i.isub(e),a.isub(r),l.isub(o))}return{a:a,b:l,gcd:i.iushln(c)}},s.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var r,o=new s(1),a=new s(0),l=i.clone();e.cmpn(1)>0&&i.cmpn(1)>0;){for(var c=0,h=1;0==(e.words[0]&h)&&c<26;++c,h<<=1);if(c>0)for(e.iushrn(c);c-- >0;)o.isOdd()&&o.iadd(l),o.iushrn(1);for(var u=0,d=1;0==(i.words[0]&d)&&u<26;++u,d<<=1);if(u>0)for(i.iushrn(u);u-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);e.cmp(i)>=0?(e.isub(i),o.isub(a)):(i.isub(e),a.isub(o))}return(r=0===e.cmpn(1)?o:a).cmpn(0)<0&&r.iadd(t),r},s.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),i=t.clone();e.negative=0,i.negative=0;for(var n=0;e.isEven()&&i.isEven();n++)e.iushrn(1),i.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;i.isEven();)i.iushrn(1);var r=e.cmp(i);if(r<0){var s=e;e=i,i=s}else if(0===r||0===i.cmpn(1))break;e.isub(i)}return i.iushln(n)},s.prototype.invm=function(t){return this.egcd(t).a.umod(t)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(t){return this.words[0]&t},s.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,i=(t-e)/26,r=1<>>26,this.words[o]=a&=67108863}return 0!==s&&(this.words[o]=s,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(t){var e,i=t<0;if(0!==this.negative&&!i)return-1;if(0===this.negative&&i)return 1;if(this.strip(),this.length>1)e=1;else{i&&(t=-t),n(t<=67108863,"Number is too big");var r=0|this.words[0];e=r===t?0:rt.length)return 1;if(this.length=0;i--){var n=0|this.words[i],r=0|t.words[i];if(n!==r){nr&&(e=1);break}}return e},s.prototype.gtn=function(t){return 1===this.cmpn(t)},s.prototype.gt=function(t){return 1===this.cmp(t)},s.prototype.gten=function(t){return this.cmpn(t)>=0},s.prototype.gte=function(t){return this.cmp(t)>=0},s.prototype.ltn=function(t){return-1===this.cmpn(t)},s.prototype.lt=function(t){return-1===this.cmp(t)},s.prototype.lten=function(t){return this.cmpn(t)<=0},s.prototype.lte=function(t){return this.cmp(t)<=0},s.prototype.eqn=function(t){return 0===this.cmpn(t)},s.prototype.eq=function(t){return 0===this.cmp(t)},s.red=function(t){return new C(t)},s.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},s.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(t){return this.red=t,this},s.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},s.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},s.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},s.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},s.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},s.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},s.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},s.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},s.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var y={k256:null,p224:null,p192:null,p25519:null};function b(t,e){this.name=t,this.p=new s(e,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function C(t){if("string"==typeof t){var e=s._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function A(t){C.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}b.prototype._tmp=function(){var t=new s(null);return t.words=new Array(Math.ceil(this.n/13)),t},b.prototype.ireduce=function(t){var e,i=t;do{this.split(i,this.tmp),e=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e0?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},b.prototype.split=function(t,e){t.iushrn(this.n,0,e)},b.prototype.imulK=function(t){return t.imul(this.k)},r(v,b),v.prototype.split=function(t,e){for(var i=4194303,n=Math.min(t.length,9),r=0;r>>22,s=o}t.words[r-10]=s>>>=22,t.length-=0===s&&t.length>10?10:9},v.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i>>=26,t.words[i]=r,e=n}return 0!==e&&(t.words[t.length++]=e),t},s._prime=function(t){if(y[t])return y[t];var e;if("k256"===t)e=new v;else if("p224"===t)e=new _;else if("p192"===t)e=new w;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new x}return y[t]=e,e},C.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},C.prototype._verify2=function(t,e){n(0==(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},C.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},C.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},C.prototype.add=function(t,e){this._verify2(t,e);var i=t.add(e);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},C.prototype.iadd=function(t,e){this._verify2(t,e);var i=t.iadd(e);return i.cmp(this.m)>=0&&i.isub(this.m),i},C.prototype.sub=function(t,e){this._verify2(t,e);var i=t.sub(e);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},C.prototype.isub=function(t,e){this._verify2(t,e);var i=t.isub(e);return i.cmpn(0)<0&&i.iadd(this.m),i},C.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},C.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},C.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},C.prototype.isqr=function(t){return this.imul(t,t.clone())},C.prototype.sqr=function(t){return this.mul(t,t)},C.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var i=this.m.add(new s(1)).iushrn(2);return this.pow(t,i)}for(var r=this.m.subn(1),o=0;!r.isZero()&&0===r.andln(1);)o++,r.iushrn(1);n(!r.isZero());var a=new s(1).toRed(this),l=a.redNeg(),c=this.m.subn(1).iushrn(1),h=this.m.bitLength();for(h=new s(2*h*h).toRed(this);0!==this.pow(h,c).cmp(l);)h.redIAdd(l);for(var u=this.pow(h,r),d=this.pow(t,r.addn(1).iushrn(1)),p=this.pow(t,r),f=o;0!==p.cmp(a);){for(var m=p,g=0;0!==m.cmp(a);g++)m=m.redSqr();n(g=0;n--){for(var c=e.words[n],h=l-1;h>=0;h--){var u=c>>h&1;r!==i[0]&&(r=this.sqr(r)),0!==u||0!==o?(o<<=1,o|=u,(4==++a||0===n&&0===h)&&(r=this.mul(r,i[o]),a=0,o=0)):a=0}l=26}return r},C.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},C.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},s.mont=function(t){return new A(t)},r(A,C),A.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},A.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},A.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var i=t.imul(e),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),s=r;return r.cmp(this.m)>=0?s=r.isub(this.m):r.cmpn(0)<0&&(s=r.iadd(this.m)),s._forceRed(this)},A.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new s(0)._forceRed(this);var i=t.mul(e),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),o=r;return r.cmp(this.m)>=0?o=r.isub(this.m):r.cmpn(0)<0&&(o=r.iadd(this.m)),o._forceRed(this)},A.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=i.nmd(t),this)},523:t=>{function e(t,e){if(!t)throw new Error(e||"Assertion failed")}t.exports=e,e.equal=function(t,e,i){if(t!=e)throw new Error(i||"Assertion failed: "+t+" != "+e)}},5856:(t,e)=>{"use strict";var i=e;function n(t){return 1===t.length?"0"+t:t}function r(t){for(var e="",i=0;i>8,o=255&r;s?i.push(s,o):i.push(o)}return i},i.zero2=n,i.toHex=r,i.encode=function(t,e){return"hex"===e?r(t):t}},7038:(t,e,i)=>{"use strict";i.d(e,{op:()=>st,$V:()=>ht,Xd:()=>ut});var n=i(9666),r=i(5960),s=(i(5446),i(9610)),o=i(9568),a=(i(6424),i(1096),i(1572)),l=i(1511);function c(t){return getComputedStyle(t)}function h(t,e){for(var i in e){var n=e[i];"number"==typeof n&&(n+="px"),t.style[i]=n}return t}function u(t){var e=document.createElement("div");return e.className=t,e}var d="undefined"!=typeof Element&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function p(t,e){if(!d)throw new Error("No element matching method supported");return d.call(t,e)}function f(t){t.remove?t.remove():t.parentNode&&t.parentNode.removeChild(t)}function m(t,e){return Array.prototype.filter.call(t.children,function(t){return p(t,e)})}var g=function(t){return"ps__thumb-"+t},y=function(t){return"ps__rail-"+t},b="ps__child--consume",v="ps--focus",_="ps--clicking",w=function(t){return"ps--active-"+t},x=function(t){return"ps--scrolling-"+t},C={x:null,y:null};function A(t,e){var i=t.element.classList,n=x(e);i.contains(n)?clearTimeout(C[e]):i.add(n)}function S(t,e){C[e]=setTimeout(function(){return t.isAlive&&t.element.classList.remove(x(e))},t.settings.scrollingThreshold)}var E=function(t){this.element=t,this.handlers={}},k={isEmpty:{configurable:!0}};E.prototype.bind=function(t,e){void 0===this.handlers[t]&&(this.handlers[t]=[]),this.handlers[t].push(e),this.element.addEventListener(t,e,!1)},E.prototype.unbind=function(t,e){var i=this;this.handlers[t]=this.handlers[t].filter(function(n){return!(!e||n===e)||(i.element.removeEventListener(t,n,!1),!1)})},E.prototype.unbindAll=function(){for(var t in this.handlers)this.unbind(t)},k.isEmpty.get=function(){var t=this;return Object.keys(this.handlers).every(function(e){return 0===t.handlers[e].length})},Object.defineProperties(E.prototype,k);var T=function(){this.eventElements=[]};function M(t){if("function"==typeof window.CustomEvent)return new CustomEvent(t);var e=document.createEvent("CustomEvent");return e.initCustomEvent(t,!1,!1,void 0),e}function L(t,e,i,n,r){var s;if(void 0===n&&(n=!0),void 0===r&&(r=!1),"top"===e)s=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==e)throw new Error("A proper axis should be provided");s=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function(t,e,i,n,r){var s=i[0],o=i[1],a=i[2],l=i[3],c=i[4],h=i[5];void 0===n&&(n=!0),void 0===r&&(r=!1);var u=t.element;t.reach[l]=null,u[a]<1&&(t.reach[l]="start"),u[a]>t[s]-t[o]-1&&(t.reach[l]="end"),e&&(u.dispatchEvent(M("ps-scroll-"+l)),e<0?u.dispatchEvent(M("ps-scroll-"+c)):e>0&&u.dispatchEvent(M("ps-scroll-"+h)),n&&function(t,e){A(t,e),S(t,e)}(t,l)),t.reach[l]&&(e||r)&&u.dispatchEvent(M("ps-"+l+"-reach-"+t.reach[l]))}(t,i,s,n,r)}function I(t){return parseInt(t,10)||0}T.prototype.eventElement=function(t){var e=this.eventElements.filter(function(e){return e.element===t})[0];return e||(e=new E(t),this.eventElements.push(e)),e},T.prototype.bind=function(t,e,i){this.eventElement(t).bind(e,i)},T.prototype.unbind=function(t,e,i){var n=this.eventElement(t);n.unbind(e,i),n.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(n),1)},T.prototype.unbindAll=function(){this.eventElements.forEach(function(t){return t.unbindAll()}),this.eventElements=[]},T.prototype.once=function(t,e,i){var n=this.eventElement(t),r=function(t){n.unbind(e,r),i(t)};n.bind(e,r)};var O={isWebKit:"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style,supportsTouch:"undefined"!=typeof window&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:"undefined"!=typeof navigator&&navigator.msMaxTouchPoints,isChrome:"undefined"!=typeof navigator&&/Chrome/i.test(navigator&&navigator.userAgent)};function D(t){var e=t.element,i=Math.floor(e.scrollTop),n=e.getBoundingClientRect();t.containerWidth=Math.ceil(n.width),t.containerHeight=Math.ceil(n.height),t.contentWidth=e.scrollWidth,t.contentHeight=e.scrollHeight,e.contains(t.scrollbarXRail)||(m(e,y("x")).forEach(function(t){return f(t)}),e.appendChild(t.scrollbarXRail)),e.contains(t.scrollbarYRail)||(m(e,y("y")).forEach(function(t){return f(t)}),e.appendChild(t.scrollbarYRail)),!t.settings.suppressScrollX&&t.containerWidth+t.settings.scrollXMarginOffset=t.railXWidth-t.scrollbarXWidth&&(t.scrollbarXLeft=t.railXWidth-t.scrollbarXWidth),t.scrollbarYTop>=t.railYHeight-t.scrollbarYHeight&&(t.scrollbarYTop=t.railYHeight-t.scrollbarYHeight),function(t,e){var i={width:e.railXWidth},n=Math.floor(t.scrollTop);i.left=e.isRtl?e.negativeScrollAdjustment+t.scrollLeft+e.containerWidth-e.contentWidth:t.scrollLeft,e.isScrollbarXUsingBottom?i.bottom=e.scrollbarXBottom-n:i.top=e.scrollbarXTop+n,h(e.scrollbarXRail,i);var r={top:n,height:e.railYHeight};e.isScrollbarYUsingRight?r.right=e.isRtl?e.contentWidth-(e.negativeScrollAdjustment+t.scrollLeft)-e.scrollbarYRight-e.scrollbarYOuterWidth-9:e.scrollbarYRight-t.scrollLeft:r.left=e.isRtl?e.negativeScrollAdjustment+t.scrollLeft+2*e.containerWidth-e.contentWidth-e.scrollbarYLeft-e.scrollbarYOuterWidth:e.scrollbarYLeft+t.scrollLeft,h(e.scrollbarYRail,r),h(e.scrollbarX,{left:e.scrollbarXLeft,width:e.scrollbarXWidth-e.railBorderXWidth}),h(e.scrollbarY,{top:e.scrollbarYTop,height:e.scrollbarYHeight-e.railBorderYWidth})}(e,t),t.scrollbarXActive?e.classList.add(w("x")):(e.classList.remove(w("x")),t.scrollbarXWidth=0,t.scrollbarXLeft=0,e.scrollLeft=!0===t.isRtl?t.contentWidth:0),t.scrollbarYActive?e.classList.add(w("y")):(e.classList.remove(w("y")),t.scrollbarYHeight=0,t.scrollbarYTop=0,e.scrollTop=0)}function R(t,e){return t.settings.minScrollbarLength&&(e=Math.max(e,t.settings.minScrollbarLength)),t.settings.maxScrollbarLength&&(e=Math.min(e,t.settings.maxScrollbarLength)),e}function N(t,e){var i=e[0],n=e[1],r=e[2],s=e[3],o=e[4],a=e[5],l=e[6],c=e[7],h=e[8],u=t.element,d=null,p=null,f=null;function m(e){e.touches&&e.touches[0]&&(e[r]=e.touches[0].pageY),u[l]=d+f*(e[r]-p),A(t,c),D(t),e.stopPropagation(),e.preventDefault()}function g(){S(t,c),t[h].classList.remove(_),t.event.unbind(t.ownerDocument,"mousemove",m)}function y(e,o){d=u[l],o&&e.touches&&(e[r]=e.touches[0].pageY),p=e[r],f=(t[n]-t[i])/(t[s]-t[a]),o?t.event.bind(t.ownerDocument,"touchmove",m):(t.event.bind(t.ownerDocument,"mousemove",m),t.event.once(t.ownerDocument,"mouseup",g),e.preventDefault()),t[h].classList.add(_),e.stopPropagation()}t.event.bind(t[o],"mousedown",function(t){y(t)}),t.event.bind(t[o],"touchstart",function(t){y(t,!0)})}var P={"click-rail":function(t){t.event.bind(t.scrollbarY,"mousedown",function(t){return t.stopPropagation()}),t.event.bind(t.scrollbarYRail,"mousedown",function(e){var i=e.pageY-window.pageYOffset-t.scrollbarYRail.getBoundingClientRect().top;t.element.scrollTop+=(i>t.scrollbarYTop?1:-1)*t.containerHeight,D(t),e.stopPropagation()}),t.event.bind(t.scrollbarX,"mousedown",function(t){return t.stopPropagation()}),t.event.bind(t.scrollbarXRail,"mousedown",function(e){var i=e.pageX-window.pageXOffset-t.scrollbarXRail.getBoundingClientRect().left;t.element.scrollLeft+=(i>t.scrollbarXLeft?1:-1)*t.containerWidth,D(t),e.stopPropagation()})},"drag-thumb":function(t){N(t,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),N(t,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function(t){var e=t.element;t.event.bind(t.ownerDocument,"keydown",function(i){if(!(i.isDefaultPrevented&&i.isDefaultPrevented()||i.defaultPrevented)&&(p(e,":hover")||p(t.scrollbarX,":focus")||p(t.scrollbarY,":focus"))){var n,r=document.activeElement?document.activeElement:t.ownerDocument.activeElement;if(r){if("IFRAME"===r.tagName)r=r.contentDocument.activeElement;else for(;r.shadowRoot;)r=r.shadowRoot.activeElement;if(p(n=r,"input,[contenteditable]")||p(n,"select,[contenteditable]")||p(n,"textarea,[contenteditable]")||p(n,"button,[contenteditable]"))return}var s=0,o=0;switch(i.which){case 37:s=i.metaKey?-t.contentWidth:i.altKey?-t.containerWidth:-30;break;case 38:o=i.metaKey?t.contentHeight:i.altKey?t.containerHeight:30;break;case 39:s=i.metaKey?t.contentWidth:i.altKey?t.containerWidth:30;break;case 40:o=i.metaKey?-t.contentHeight:i.altKey?-t.containerHeight:-30;break;case 32:o=i.shiftKey?t.containerHeight:-t.containerHeight;break;case 33:o=t.containerHeight;break;case 34:o=-t.containerHeight;break;case 36:o=t.contentHeight;break;case 35:o=-t.contentHeight;break;default:return}t.settings.suppressScrollX&&0!==s||t.settings.suppressScrollY&&0!==o||(e.scrollTop-=o,e.scrollLeft+=s,D(t),function(i,n){var r=Math.floor(e.scrollTop);if(0===i){if(!t.scrollbarYActive)return!1;if(0===r&&n>0||r>=t.contentHeight-t.containerHeight&&n<0)return!t.settings.wheelPropagation}var s=e.scrollLeft;if(0===n){if(!t.scrollbarXActive)return!1;if(0===s&&i<0||s>=t.contentWidth-t.containerWidth&&i>0)return!t.settings.wheelPropagation}return!0}(s,o)&&i.preventDefault())}})},wheel:function(t){var e=t.element;function i(i){var n=function(t){var e=t.deltaX,i=-1*t.deltaY;return void 0!==e&&void 0!==i||(e=-1*t.wheelDeltaX/6,i=t.wheelDeltaY/6),t.deltaMode&&1===t.deltaMode&&(e*=10,i*=10),e!=e&&i!=i&&(e=0,i=t.wheelDelta),t.shiftKey?[-i,-e]:[e,i]}(i),r=n[0],s=n[1];if(!function(t,i,n){if(!O.isWebKit&&e.querySelector("select:focus"))return!0;if(!e.contains(t))return!1;for(var r=t;r&&r!==e;){if(r.classList.contains(b))return!0;var s=c(r);if(n&&s.overflowY.match(/(scroll|auto)/)){var o=r.scrollHeight-r.clientHeight;if(o>0&&(r.scrollTop>0&&n<0||r.scrollTop0))return!0}if(i&&s.overflowX.match(/(scroll|auto)/)){var a=r.scrollWidth-r.clientWidth;if(a>0&&(r.scrollLeft>0&&i<0||r.scrollLeft0))return!0}r=r.parentNode}return!1}(i.target,r,s)){var o=!1;t.settings.useBothWheelAxes?t.scrollbarYActive&&!t.scrollbarXActive?(s?e.scrollTop-=s*t.settings.wheelSpeed:e.scrollTop+=r*t.settings.wheelSpeed,o=!0):t.scrollbarXActive&&!t.scrollbarYActive&&(r?e.scrollLeft+=r*t.settings.wheelSpeed:e.scrollLeft-=s*t.settings.wheelSpeed,o=!0):(e.scrollTop-=s*t.settings.wheelSpeed,e.scrollLeft+=r*t.settings.wheelSpeed),D(t),(o=o||function(i,n){var r=Math.floor(e.scrollTop),s=0===e.scrollTop,o=r+e.offsetHeight===e.scrollHeight,a=0===e.scrollLeft,l=e.scrollLeft+e.offsetWidth===e.scrollWidth;return!(Math.abs(n)>Math.abs(i)?s||o:a||l)||!t.settings.wheelPropagation}(r,s))&&!i.ctrlKey&&(i.stopPropagation(),i.preventDefault())}}void 0!==window.onwheel?t.event.bind(e,"wheel",i):void 0!==window.onmousewheel&&t.event.bind(e,"mousewheel",i)},touch:function(t){if(O.supportsTouch||O.supportsIePointer){var e=t.element,i={},n=0,r={},s=null;O.supportsTouch?(t.event.bind(e,"touchstart",h),t.event.bind(e,"touchmove",u),t.event.bind(e,"touchend",d)):O.supportsIePointer&&(window.PointerEvent?(t.event.bind(e,"pointerdown",h),t.event.bind(e,"pointermove",u),t.event.bind(e,"pointerup",d)):window.MSPointerEvent&&(t.event.bind(e,"MSPointerDown",h),t.event.bind(e,"MSPointerMove",u),t.event.bind(e,"MSPointerUp",d)))}function o(i,n){e.scrollTop-=n,e.scrollLeft-=i,D(t)}function a(t){return t.targetTouches?t.targetTouches[0]:t}function l(t){return!(t.pointerType&&"pen"===t.pointerType&&0===t.buttons||(!t.targetTouches||1!==t.targetTouches.length)&&(!t.pointerType||"mouse"===t.pointerType||t.pointerType===t.MSPOINTER_TYPE_MOUSE))}function h(t){if(l(t)){var e=a(t);i.pageX=e.pageX,i.pageY=e.pageY,n=(new Date).getTime(),null!==s&&clearInterval(s)}}function u(s){if(l(s)){var h=a(s),u={pageX:h.pageX,pageY:h.pageY},d=u.pageX-i.pageX,p=u.pageY-i.pageY;if(function(t,i,n){if(!e.contains(t))return!1;for(var r=t;r&&r!==e;){if(r.classList.contains(b))return!0;var s=c(r);if(n&&s.overflowY.match(/(scroll|auto)/)){var o=r.scrollHeight-r.clientHeight;if(o>0&&(r.scrollTop>0&&n<0||r.scrollTop0))return!0}if(i&&s.overflowX.match(/(scroll|auto)/)){var a=r.scrollWidth-r.clientWidth;if(a>0&&(r.scrollLeft>0&&i<0||r.scrollLeft0))return!0}r=r.parentNode}return!1}(s.target,d,p))return;o(d,p),i=u;var f=(new Date).getTime(),m=f-n;m>0&&(r.x=d/m,r.y=p/m,n=f),function(i,n){var r=Math.floor(e.scrollTop),s=e.scrollLeft,o=Math.abs(i),a=Math.abs(n);if(a>o){if(n<0&&r===t.contentHeight-t.containerHeight||n>0&&0===r)return 0===window.scrollY&&n>0&&O.isChrome}else if(o>a&&(i<0&&s===t.contentWidth-t.containerWidth||i>0&&0===s))return!0;return!0}(d,p)&&s.preventDefault()}}function d(){t.settings.swipeEasing&&(clearInterval(s),s=setInterval(function(){t.isInitialized?clearInterval(s):r.x||r.y?Math.abs(r.x)<.01&&Math.abs(r.y)<.01?clearInterval(s):(o(30*r.x,30*r.y),r.x*=.8,r.y*=.8):clearInterval(s)},10))}}},F=function(t,e){var i=this;if(void 0===e&&(e={}),"string"==typeof t&&(t=document.querySelector(t)),!t||!t.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var n in this.element=t,t.classList.add("ps"),this.settings={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1},e)this.settings[n]=e[n];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var r,s,o=function(){return t.classList.add(v)},a=function(){return t.classList.remove(v)};this.isRtl="rtl"===c(t).direction,!0===this.isRtl&&t.classList.add("ps__rtl"),this.isNegativeScroll=(s=t.scrollLeft,t.scrollLeft=-1,r=t.scrollLeft<0,t.scrollLeft=s,r),this.negativeScrollAdjustment=this.isNegativeScroll?t.scrollWidth-t.clientWidth:0,this.event=new T,this.ownerDocument=t.ownerDocument||document,this.scrollbarXRail=u(y("x")),t.appendChild(this.scrollbarXRail),this.scrollbarX=u(g("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",o),this.event.bind(this.scrollbarX,"blur",a),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var l=c(this.scrollbarXRail);this.scrollbarXBottom=parseInt(l.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=I(l.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=I(l.borderLeftWidth)+I(l.borderRightWidth),h(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=I(l.marginLeft)+I(l.marginRight),h(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=u(y("y")),t.appendChild(this.scrollbarYRail),this.scrollbarY=u(g("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",o),this.event.bind(this.scrollbarY,"blur",a),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var d=c(this.scrollbarYRail);this.scrollbarYRight=parseInt(d.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=I(d.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function(t){var e=c(t);return I(e.width)+I(e.paddingLeft)+I(e.paddingRight)+I(e.borderLeftWidth)+I(e.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=I(d.borderTopWidth)+I(d.borderBottomWidth),h(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=I(d.marginTop)+I(d.marginBottom),h(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:t.scrollLeft<=0?"start":t.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:t.scrollTop<=0?"start":t.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(t){return P[t](i)}),this.lastScrollTop=Math.floor(t.scrollTop),this.lastScrollLeft=t.scrollLeft,this.event.bind(this.element,"scroll",function(t){return i.onScroll(t)}),D(this)};F.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,h(this.scrollbarXRail,{display:"block"}),h(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=I(c(this.scrollbarXRail).marginLeft)+I(c(this.scrollbarXRail).marginRight),this.railYMarginHeight=I(c(this.scrollbarYRail).marginTop)+I(c(this.scrollbarYRail).marginBottom),h(this.scrollbarXRail,{display:"none"}),h(this.scrollbarYRail,{display:"none"}),D(this),L(this,"top",0,!1,!0),L(this,"left",0,!1,!0),h(this.scrollbarXRail,{display:""}),h(this.scrollbarYRail,{display:""}))},F.prototype.onScroll=function(t){this.isAlive&&(D(this),L(this,"top",this.element.scrollTop-this.lastScrollTop),L(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},F.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),f(this.scrollbarX),f(this.scrollbarY),f(this.scrollbarXRail),f(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},F.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(t){return!t.match(/^ps([-_].+|)$/)}).join(" ")};const Z=F;var B=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var i=-1;return t.some(function(t,n){return t[0]===e&&(i=n,!0)}),i}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var i=t(this.__entries__,e),n=this.__entries__[i];return n&&n[1]},e.prototype.set=function(e,i){var n=t(this.__entries__,e);~n?this.__entries__[n][1]=i:this.__entries__.push([e,i])},e.prototype.delete=function(e){var i=this.__entries__,n=t(i,e);~n&&i.splice(n,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var i=0,n=this.__entries__;i0},t.prototype.connect_=function(){U&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Y?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){U&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,i=void 0===e?"":e;H.some(function(t){return!!~i.indexOf(t)})&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),j=function(t,e){for(var i=0,n=Object.keys(e);i0},t}(),it="undefined"!=typeof WeakMap?new WeakMap:new B,nt=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var i=G.getInstance(),n=new et(e,i,this);it.set(this,n)};["observe","unobserve","disconnect"].forEach(function(t){nt.prototype[t]=function(){var e;return(e=it.get(this))[t].apply(e,arguments)}});const rt=void 0!==q.ResizeObserver?q.ResizeObserver:nt,st=new a.OlP("PERFECT_SCROLLBAR_CONFIG");class ot{constructor(t,e,i,n){this.x=t,this.y=e,this.w=i,this.h=n}}class at{constructor(t,e){this.x=t,this.y=e}}const lt=["psScrollY","psScrollX","psScrollUp","psScrollDown","psScrollLeft","psScrollRight","psYReachEnd","psYReachStart","psXReachEnd","psXReachStart"];class ct{constructor(t={}){this.assign(t)}assign(t={}){for(const e in t)this[e]=t[e]}}let ht=(()=>{class t{constructor(t,e,i,r,s){this.zone=t,this.differs=e,this.elementRef=i,this.platformId=r,this.defaults=s,this.instance=null,this.ro=null,this.timeout=null,this.animation=null,this.configDiff=null,this.ngDestroy=new n.x,this.disabled=!1,this.psScrollY=new a.vpe,this.psScrollX=new a.vpe,this.psScrollUp=new a.vpe,this.psScrollDown=new a.vpe,this.psScrollLeft=new a.vpe,this.psScrollRight=new a.vpe,this.psYReachEnd=new a.vpe,this.psYReachStart=new a.vpe,this.psXReachEnd=new a.vpe,this.psXReachStart=new a.vpe}ngOnInit(){if(!this.disabled&&(0,l.NF)(this.platformId)){const t=new ct(this.defaults);t.assign(this.config),this.zone.runOutsideAngular(()=>{this.instance=new Z(this.elementRef.nativeElement,t)}),this.configDiff||(this.configDiff=this.differs.find(this.config||{}).create(),this.configDiff.diff(this.config||{})),this.zone.runOutsideAngular(()=>{this.ro=new rt(()=>{this.update()}),this.elementRef.nativeElement.children[0]&&this.ro.observe(this.elementRef.nativeElement.children[0]),this.ro.observe(this.elementRef.nativeElement)}),this.zone.runOutsideAngular(()=>{lt.forEach(t=>{const e=t.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`);(0,r.R)(this.elementRef.nativeElement,e).pipe((0,s.e)(20),(0,o.R)(this.ngDestroy)).subscribe(e=>{this[t].emit(e)})})})}}ngOnDestroy(){(0,l.NF)(this.platformId)&&(this.ngDestroy.next(),this.ngDestroy.complete(),this.ro&&this.ro.disconnect(),this.timeout&&"undefined"!=typeof window&&window.clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.instance&&this.instance.destroy()}),this.instance=null)}ngDoCheck(){!this.disabled&&this.configDiff&&(0,l.NF)(this.platformId)&&this.configDiff.diff(this.config||{})&&(this.ngOnDestroy(),this.ngOnInit())}ngOnChanges(t){t.disabled&&!t.disabled.isFirstChange()&&(0,l.NF)(this.platformId)&&t.disabled.currentValue!==t.disabled.previousValue&&(!0===t.disabled.currentValue?this.ngOnDestroy():!1===t.disabled.currentValue&&this.ngOnInit())}ps(){return this.instance}update(){"undefined"!=typeof window&&(this.timeout&&window.clearTimeout(this.timeout),this.timeout=window.setTimeout(()=>{if(!this.disabled&&this.configDiff)try{this.zone.runOutsideAngular(()=>{this.instance&&this.instance.update()})}catch(t){}},0))}geometry(t="scroll"){return new ot(this.elementRef.nativeElement[t+"Left"],this.elementRef.nativeElement[t+"Top"],this.elementRef.nativeElement[t+"Width"],this.elementRef.nativeElement[t+"Height"])}position(t=!1){return!t&&this.instance?new at(this.instance.reach.x||0,this.instance.reach.y||0):new at(this.elementRef.nativeElement.scrollLeft,this.elementRef.nativeElement.scrollTop)}scrollable(t="any"){const e=this.elementRef.nativeElement;return"any"===t?e.classList.contains("ps--active-x")||e.classList.contains("ps--active-y"):"both"===t?e.classList.contains("ps--active-x")&&e.classList.contains("ps--active-y"):e.classList.contains("ps--active-"+t)}scrollTo(t,e,i){this.disabled||(null==e&&null==i?this.animateScrolling("scrollTop",t,i):(null!=t&&this.animateScrolling("scrollLeft",t,i),null!=e&&this.animateScrolling("scrollTop",e,i)))}scrollToX(t,e){this.animateScrolling("scrollLeft",t,e)}scrollToY(t,e){this.animateScrolling("scrollTop",t,e)}scrollToTop(t,e){this.animateScrolling("scrollTop",t||0,e)}scrollToLeft(t,e){this.animateScrolling("scrollLeft",t||0,e)}scrollToRight(t,e){this.animateScrolling("scrollLeft",this.elementRef.nativeElement.scrollWidth-this.elementRef.nativeElement.clientWidth-(t||0),e)}scrollToBottom(t,e){this.animateScrolling("scrollTop",this.elementRef.nativeElement.scrollHeight-this.elementRef.nativeElement.clientHeight-(t||0),e)}scrollToElement(t,e,i){if("string"==typeof t&&(t=this.elementRef.nativeElement.querySelector(t)),t){const n=t.getBoundingClientRect(),r=this.elementRef.nativeElement.getBoundingClientRect();this.elementRef.nativeElement.classList.contains("ps--active-x")&&this.animateScrolling("scrollLeft",n.left-r.left+this.elementRef.nativeElement.scrollLeft+(e||0),i),this.elementRef.nativeElement.classList.contains("ps--active-y")&&this.animateScrolling("scrollTop",n.top-r.top+this.elementRef.nativeElement.scrollTop+(e||0),i)}}animateScrolling(t,e,i){if(this.animation&&(window.cancelAnimationFrame(this.animation),this.animation=null),i&&"undefined"!=typeof window){if(e!==this.elementRef.nativeElement[t]){let n=0,r=0,s=performance.now(),o=this.elementRef.nativeElement[t];const a=(o-e)/2,l=c=>{r+=Math.PI/(i/(c-s)),n=Math.round(e+a+a*Math.cos(r)),this.elementRef.nativeElement[t]===o&&(r>=Math.PI?this.animateScrolling(t,e,0):(this.elementRef.nativeElement[t]=n,o=this.elementRef.nativeElement[t],s=c,this.animation=window.requestAnimationFrame(l)))};window.requestAnimationFrame(l)}}else this.elementRef.nativeElement[t]=e}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.R0b),a.Y36(a.aQg),a.Y36(a.SBq),a.Y36(a.Lbi),a.Y36(st,8))},t.\u0275dir=a.lG2({type:t,selectors:[["","perfectScrollbar",""]],inputs:{disabled:"disabled",config:["perfectScrollbar","config"]},outputs:{psScrollY:"psScrollY",psScrollX:"psScrollX",psScrollUp:"psScrollUp",psScrollDown:"psScrollDown",psScrollLeft:"psScrollLeft",psScrollRight:"psScrollRight",psYReachEnd:"psYReachEnd",psYReachStart:"psYReachStart",psXReachEnd:"psXReachEnd",psXReachStart:"psXReachStart"},exportAs:["ngxPerfectScrollbar"],features:[a.TTD]}),t})(),ut=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=a.oAB({type:t}),t.\u0275inj=a.cJS({imports:[[l.ez],l.ez]}),t})()},4499:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(5097);Object.keys(n).forEach(function(t){"default"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return n[t]}})})},6730:(t,e,i)=>{"use strict";var n=i(6309);e.certificate=i(8840);var r=n.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});e.RSAPrivateKey=r;var s=n.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});e.RSAPublicKey=s;var o=n.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())});e.PublicKey=o;var a=n.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),l=n.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(a),this.key("subjectPrivateKey").octstr())});e.PrivateKey=l;var c=n.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});e.EncryptedPrivateKey=c;var h=n.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});e.DSAPrivateKey=h,e.DSAparam=n.define("DSAparam",function(){this.int()});var u=n.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(d),this.key("publicKey").optional().explicit(1).bitstr())});e.ECPrivateKey=u;var d=n.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});e.signature=n.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},8840:(t,e,i)=>{"use strict";var n=i(6309),r=n.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),s=n.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),o=n.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),a=n.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(o),this.key("subjectPublicKey").bitstr())}),l=n.define("RelativeDistinguishedName",function(){this.setof(s)}),c=n.define("RDNSequence",function(){this.seqof(l)}),h=n.define("Name",function(){this.choice({rdnSequence:this.use(c)})}),u=n.define("Validity",function(){this.seq().obj(this.key("notBefore").use(r),this.key("notAfter").use(r))}),d=n.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),p=n.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(o),this.key("issuer").use(h),this.key("validity").use(u),this.key("subject").use(h),this.key("subjectPublicKeyInfo").use(a),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(d).optional())}),f=n.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(p),this.key("signatureAlgorithm").use(o),this.key("signatureValue").bitstr())});t.exports=f},4153:(t,e,i)=>{var n=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,r=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,s=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,o=i(8386),a=i(3079),l=i(7015).Buffer;t.exports=function(t,e){var i,c=t.toString(),h=c.match(n);if(h){var u="aes"+h[1],d=l.from(h[2],"hex"),p=l.from(h[3].replace(/[\r\n]/g,""),"base64"),f=o(e,d.slice(0,8),parseInt(h[1],10)).key,m=[],g=a.createDecipheriv(u,f,d);m.push(g.update(p)),m.push(g.final()),i=l.concat(m)}else{var y=c.match(s);i=l.from(y[2].replace(/[\r\n]/g,""),"base64")}return{tag:c.match(r)[1],data:i}}},2291:(t,e,i)=>{var n=i(6730),r=i(873),s=i(4153),o=i(3079),a=i(8094),l=i(7015).Buffer;function c(t){var e;"object"!=typeof t||l.isBuffer(t)||(e=t.passphrase,t=t.key),"string"==typeof t&&(t=l.from(t));var i,c,h=s(t,e),u=h.tag,d=h.data;switch(u){case"CERTIFICATE":c=n.certificate.decode(d,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(c||(c=n.PublicKey.decode(d,"der")),i=c.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPublicKey.decode(c.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return c.subjectPrivateKey=c.subjectPublicKey,{type:"ec",data:c};case"1.2.840.10040.4.1":return c.algorithm.params.pub_key=n.DSAparam.decode(c.subjectPublicKey.data,"der"),{type:"dsa",data:c.algorithm.params};default:throw new Error("unknown key id "+i)}case"ENCRYPTED PRIVATE KEY":d=function(t,e){var i=t.algorithm.decrypt.kde.kdeparams.salt,n=parseInt(t.algorithm.decrypt.kde.kdeparams.iters.toString(),10),s=r[t.algorithm.decrypt.cipher.algo.join(".")],c=t.algorithm.decrypt.cipher.iv,h=t.subjectPrivateKey,u=parseInt(s.split("-")[1],10)/8,d=a.pbkdf2Sync(e,i,n,u,"sha1"),p=o.createDecipheriv(s,d,c),f=[];return f.push(p.update(h)),f.push(p.final()),l.concat(f)}(d=n.EncryptedPrivateKey.decode(d,"der"),e);case"PRIVATE KEY":switch(i=(c=n.PrivateKey.decode(d,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPrivateKey.decode(c.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:c.algorithm.curve,privateKey:n.ECPrivateKey.decode(c.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return c.algorithm.params.priv_key=n.DSAparam.decode(c.subjectPrivateKey,"der"),{type:"dsa",params:c.algorithm.params};default:throw new Error("unknown key id "+i)}case"RSA PUBLIC KEY":return n.RSAPublicKey.decode(d,"der");case"RSA PRIVATE KEY":return n.RSAPrivateKey.decode(d,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:n.DSAPrivateKey.decode(d,"der")};case"EC PRIVATE KEY":return{curve:(d=n.ECPrivateKey.decode(d,"der")).parameters.value,privateKey:d.privateKey};default:throw new Error("unknown key type "+u)}}t.exports=c,c.signature=n.signature},8094:(t,e,i)=>{e.pbkdf2=i(2795),e.pbkdf2Sync=i(4315)},2795:(t,e,i)=>{var n,r,s=i(7015).Buffer,o=i(5456),a=i(7072),l=i(4315),c=i(6123),h=global.crypto&&global.crypto.subtle,u={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},d=[];function p(){return r||(r=global.process&&global.process.nextTick?global.process.nextTick:global.queueMicrotask?global.queueMicrotask:global.setImmediate?global.setImmediate:global.setTimeout)}function f(t,e,i,n,r){return h.importKey("raw",t,{name:"PBKDF2"},!1,["deriveBits"]).then(function(t){return h.deriveBits({name:"PBKDF2",salt:e,iterations:i,hash:{name:r}},t,n<<3)}).then(function(t){return s.from(t)})}t.exports=function(t,e,i,r,m,g){"function"==typeof m&&(g=m,m=void 0);var y=u[(m=m||"sha1").toLowerCase()];if(y&&"function"==typeof global.Promise){if(o(i,r),t=c(t,a,"Password"),e=c(e,a,"Salt"),"function"!=typeof g)throw new Error("No callback provided to pbkdf2");!function(t,e){t.then(function(t){p()(function(){e(null,t)})},function(t){p()(function(){e(t)})})}(function(t){if(global.process&&!global.process.browser)return Promise.resolve(!1);if(!h||!h.importKey||!h.deriveBits)return Promise.resolve(!1);if(void 0!==d[t])return d[t];var e=f(n=n||s.alloc(8),n,10,128,t).then(function(){return!0}).catch(function(){return!1});return d[t]=e,e}(y).then(function(n){return n?f(t,e,i,r,y):l(t,e,i,r,m)}),g)}else p()(function(){var n;try{n=l(t,e,i,r,m)}catch(s){return g(s)}g(null,n)})}},7072:t=>{var e;e=global.process&&global.process.browser?"utf-8":global.process&&global.process.version?parseInt(process.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary":"utf-8",t.exports=e},5456:t=>{var e=Math.pow(2,30)-1;t.exports=function(t,i){if("number"!=typeof t)throw new TypeError("Iterations not a number");if(t<0)throw new TypeError("Bad iterations");if("number"!=typeof i)throw new TypeError("Key length not a number");if(i<0||i>e||i!=i)throw new TypeError("Bad key length")}},4315:(t,e,i)=>{var n=i(3072),r=i(3827),s=i(8687),o=i(7015).Buffer,a=i(5456),l=i(7072),c=i(6123),h=o.alloc(128),u={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function d(t,e,i){var a=function(t){return"rmd160"===t||"ripemd160"===t?function(t){return(new r).update(t).digest()}:"md5"===t?n:function(e){return s(t).update(e).digest()}}(t),l="sha512"===t||"sha384"===t?128:64;e.length>l?e=a(e):e.length{var n=i(7015).Buffer;t.exports=function(t,e,i){if(n.isBuffer(t))return t;if("string"==typeof t)return n.from(t,e);if(ArrayBuffer.isView(t))return n.from(t.buffer);throw new TypeError(i+" must be a string, a Buffer, a typed array or a DataView")}},7351:(t,e,i)=>{e.publicEncrypt=i(3714),e.privateDecrypt=i(864),e.privateEncrypt=function(t,i){return e.publicEncrypt(t,i,!0)},e.publicDecrypt=function(t,i){return e.privateDecrypt(t,i,!0)}},6859:(t,e,i)=>{var n=i(4500),r=i(7015).Buffer;function s(t){var e=r.allocUnsafe(4);return e.writeUInt32BE(t,0),e}t.exports=function(t,e){for(var i,o=r.alloc(0),a=0;o.length=65&&i<=70?i-55:i>=97&&i<=102?i-87:i-48&15}function l(t,e,i){var n=a(t,i);return i-1>=e&&(n|=a(t,i-1)<<4),n}function c(t,e,i,n){for(var r=0,s=Math.min(t.length,i),o=e;o=49?a-49+10:a>=17?a-17+10:a}return r}s.isBN=function(t){return t instanceof s||null!==t&&"object"==typeof t&&t.constructor.wordSize===s.wordSize&&Array.isArray(t.words)},s.max=function(t,e){return t.cmp(e)>0?t:e},s.min=function(t,e){return t.cmp(e)<0?t:e},s.prototype._init=function(t,e,i){if("number"==typeof t)return this._initNumber(t,e,i);if("object"==typeof t)return this._initArray(t,e,i);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var r=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(r++,this.negative=1),r=0;r-=3)this.words[s]|=(o=t[r]|t[r-1]<<8|t[r-2]<<16)<>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);else if("le"===i)for(r=0,s=0;r>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);return this.strip()},s.prototype._parseHex=function(t,e,i){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n=e;n-=2)r=l(t,e,n)<=18?(s-=18,this.words[o+=1]|=r>>>26):s+=8;else for(n=(t.length-e)%2==0?e+1:e;n=18?(s-=18,this.words[o+=1]|=r>>>26):s+=8;this.strip()},s.prototype._parseBase=function(t,e,i){this.words=[0],this.length=1;for(var n=0,r=1;r<=67108863;r*=e)n++;n--,r=r/e|0;for(var s=t.length-i,o=s%n,a=Math.min(s,s-o)+i,l=0,h=i;h1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?""};var h=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],u=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(t,e,i){i.negative=e.negative^t.negative;var n=t.length+e.length|0;i.length=n,n=n-1|0;var r=0|t.words[0],s=0|e.words[0],o=r*s,a=o/67108864|0;i.words[0]=67108863&o;for(var l=1;l>>26,h=67108863&a,u=Math.min(l,e.length-1),d=Math.max(0,l-t.length+1);d<=u;d++)c+=(o=(r=0|t.words[l-d|0])*(s=0|e.words[d])+h)/67108864|0,h=67108863&o;i.words[l]=0|h,a=0|c}return 0!==a?i.words[l]=0|a:i.length--,i.strip()}s.prototype.toString=function(t,e){var i;if(e=0|e||1,16===(t=t||10)||"hex"===t){i="";for(var r=0,s=0,o=0;o>>24-r&16777215)||o!==this.length-1?h[6-l.length]+l+i:l+i,(r+=2)>=26&&(r-=26,o--)}for(0!==s&&(i=s.toString(16)+i);i.length%e!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(t===(0|t)&&t>=2&&t<=36){var c=u[t],p=d[t];i="";var f=this.clone();for(f.negative=0;!f.isZero();){var m=f.modn(p).toString(t);i=(f=f.idivn(p)).isZero()?m+i:h[c-m.length]+m+i}for(this.isZero()&&(i="0"+i);i.length%e!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}n(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(t,e){return n(void 0!==o),this.toArrayLike(o,t,e)},s.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},s.prototype.toArrayLike=function(t,e,i){var r=this.byteLength(),s=i||Math.max(1,r);n(r<=s,"byte array longer than desired length"),n(s>0,"Requested array length <= 0"),this.strip();var o,a,l="le"===e,c=new t(s),h=this.clone();if(l){for(a=0;!h.isZero();a++)o=h.andln(255),h.iushrn(8),c[a]=o;for(;a=4096&&(i+=13,e>>>=13),e>=64&&(i+=7,e>>>=7),e>=8&&(i+=4,e>>>=4),e>=2&&(i+=2,e>>>=2),i+e},s.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,i=0;return 0==(8191&e)&&(i+=13,e>>>=13),0==(127&e)&&(i+=7,e>>>=7),0==(15&e)&&(i+=4,e>>>=4),0==(3&e)&&(i+=2,e>>>=2),0==(1&e)&&i++,i},s.prototype.bitLength=function(){var t=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+t},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},s.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},s.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var i=0;it.length?this.clone().iand(t):t.clone().iand(this)},s.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},s.prototype.iuxor=function(t){var e,i;this.length>t.length?(e=this,i=t):(e=t,i=this);for(var n=0;nt.length?this.clone().ixor(t):t.clone().ixor(this)},s.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},s.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),i=t%26;this._expand(e),i>0&&e--;for(var r=0;r0&&(this.words[r]=~this.words[r]&67108863>>26-i),this.strip()},s.prototype.notn=function(t){return this.clone().inotn(t)},s.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var i=t/26|0,r=t%26;return this._expand(i+1),this.words[i]=e?this.words[i]|1<t.length?(i=this,n=t):(i=t,n=this);for(var r=0,s=0;s>>26;for(;0!==r&&s>>26;if(this.length=i.length,0!==r)this.words[this.length]=r,this.length++;else if(i!==this)for(;st.length?this.clone().iadd(t):t.clone().iadd(this)},s.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,n,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(i=this,n=t):(i=t,n=this);for(var s=0,o=0;o>26,this.words[o]=67108863&e;for(;0!==s&&o>26,this.words[o]=67108863&e;if(0===s&&o>>13,p=0|o[1],f=8191&p,m=p>>>13,g=0|o[2],y=8191&g,b=g>>>13,v=0|o[3],_=8191&v,w=v>>>13,x=0|o[4],C=8191&x,A=x>>>13,S=0|o[5],E=8191&S,k=S>>>13,T=0|o[6],M=8191&T,L=T>>>13,I=0|o[7],O=8191&I,D=I>>>13,R=0|o[8],N=8191&R,P=R>>>13,F=0|o[9],Z=8191&F,B=F>>>13,U=0|a[0],q=8191&U,z=U>>>13,H=0|a[1],Y=8191&H,G=H>>>13,j=0|a[2],V=8191&j,Q=j>>>13,W=0|a[3],J=8191&W,X=W>>>13,K=0|a[4],$=8191&K,tt=K>>>13,et=0|a[5],it=8191&et,nt=et>>>13,rt=0|a[6],st=8191&rt,ot=rt>>>13,at=0|a[7],lt=8191&at,ct=at>>>13,ht=0|a[8],ut=8191&ht,dt=ht>>>13,pt=0|a[9],ft=8191&pt,mt=pt>>>13;i.negative=t.negative^e.negative,i.length=19;var gt=(c+(n=Math.imul(u,q))|0)+((8191&(r=(r=Math.imul(u,z))+Math.imul(d,q)|0))<<13)|0;c=((s=Math.imul(d,z))+(r>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(f,q),r=(r=Math.imul(f,z))+Math.imul(m,q)|0,s=Math.imul(m,z);var yt=(c+(n=n+Math.imul(u,Y)|0)|0)+((8191&(r=(r=r+Math.imul(u,G)|0)+Math.imul(d,Y)|0))<<13)|0;c=((s=s+Math.imul(d,G)|0)+(r>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(y,q),r=(r=Math.imul(y,z))+Math.imul(b,q)|0,s=Math.imul(b,z),n=n+Math.imul(f,Y)|0,r=(r=r+Math.imul(f,G)|0)+Math.imul(m,Y)|0,s=s+Math.imul(m,G)|0;var bt=(c+(n=n+Math.imul(u,V)|0)|0)+((8191&(r=(r=r+Math.imul(u,Q)|0)+Math.imul(d,V)|0))<<13)|0;c=((s=s+Math.imul(d,Q)|0)+(r>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(_,q),r=(r=Math.imul(_,z))+Math.imul(w,q)|0,s=Math.imul(w,z),n=n+Math.imul(y,Y)|0,r=(r=r+Math.imul(y,G)|0)+Math.imul(b,Y)|0,s=s+Math.imul(b,G)|0,n=n+Math.imul(f,V)|0,r=(r=r+Math.imul(f,Q)|0)+Math.imul(m,V)|0,s=s+Math.imul(m,Q)|0;var vt=(c+(n=n+Math.imul(u,J)|0)|0)+((8191&(r=(r=r+Math.imul(u,X)|0)+Math.imul(d,J)|0))<<13)|0;c=((s=s+Math.imul(d,X)|0)+(r>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(C,q),r=(r=Math.imul(C,z))+Math.imul(A,q)|0,s=Math.imul(A,z),n=n+Math.imul(_,Y)|0,r=(r=r+Math.imul(_,G)|0)+Math.imul(w,Y)|0,s=s+Math.imul(w,G)|0,n=n+Math.imul(y,V)|0,r=(r=r+Math.imul(y,Q)|0)+Math.imul(b,V)|0,s=s+Math.imul(b,Q)|0,n=n+Math.imul(f,J)|0,r=(r=r+Math.imul(f,X)|0)+Math.imul(m,J)|0,s=s+Math.imul(m,X)|0;var _t=(c+(n=n+Math.imul(u,$)|0)|0)+((8191&(r=(r=r+Math.imul(u,tt)|0)+Math.imul(d,$)|0))<<13)|0;c=((s=s+Math.imul(d,tt)|0)+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(E,q),r=(r=Math.imul(E,z))+Math.imul(k,q)|0,s=Math.imul(k,z),n=n+Math.imul(C,Y)|0,r=(r=r+Math.imul(C,G)|0)+Math.imul(A,Y)|0,s=s+Math.imul(A,G)|0,n=n+Math.imul(_,V)|0,r=(r=r+Math.imul(_,Q)|0)+Math.imul(w,V)|0,s=s+Math.imul(w,Q)|0,n=n+Math.imul(y,J)|0,r=(r=r+Math.imul(y,X)|0)+Math.imul(b,J)|0,s=s+Math.imul(b,X)|0,n=n+Math.imul(f,$)|0,r=(r=r+Math.imul(f,tt)|0)+Math.imul(m,$)|0,s=s+Math.imul(m,tt)|0;var wt=(c+(n=n+Math.imul(u,it)|0)|0)+((8191&(r=(r=r+Math.imul(u,nt)|0)+Math.imul(d,it)|0))<<13)|0;c=((s=s+Math.imul(d,nt)|0)+(r>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(M,q),r=(r=Math.imul(M,z))+Math.imul(L,q)|0,s=Math.imul(L,z),n=n+Math.imul(E,Y)|0,r=(r=r+Math.imul(E,G)|0)+Math.imul(k,Y)|0,s=s+Math.imul(k,G)|0,n=n+Math.imul(C,V)|0,r=(r=r+Math.imul(C,Q)|0)+Math.imul(A,V)|0,s=s+Math.imul(A,Q)|0,n=n+Math.imul(_,J)|0,r=(r=r+Math.imul(_,X)|0)+Math.imul(w,J)|0,s=s+Math.imul(w,X)|0,n=n+Math.imul(y,$)|0,r=(r=r+Math.imul(y,tt)|0)+Math.imul(b,$)|0,s=s+Math.imul(b,tt)|0,n=n+Math.imul(f,it)|0,r=(r=r+Math.imul(f,nt)|0)+Math.imul(m,it)|0,s=s+Math.imul(m,nt)|0;var xt=(c+(n=n+Math.imul(u,st)|0)|0)+((8191&(r=(r=r+Math.imul(u,ot)|0)+Math.imul(d,st)|0))<<13)|0;c=((s=s+Math.imul(d,ot)|0)+(r>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(O,q),r=(r=Math.imul(O,z))+Math.imul(D,q)|0,s=Math.imul(D,z),n=n+Math.imul(M,Y)|0,r=(r=r+Math.imul(M,G)|0)+Math.imul(L,Y)|0,s=s+Math.imul(L,G)|0,n=n+Math.imul(E,V)|0,r=(r=r+Math.imul(E,Q)|0)+Math.imul(k,V)|0,s=s+Math.imul(k,Q)|0,n=n+Math.imul(C,J)|0,r=(r=r+Math.imul(C,X)|0)+Math.imul(A,J)|0,s=s+Math.imul(A,X)|0,n=n+Math.imul(_,$)|0,r=(r=r+Math.imul(_,tt)|0)+Math.imul(w,$)|0,s=s+Math.imul(w,tt)|0,n=n+Math.imul(y,it)|0,r=(r=r+Math.imul(y,nt)|0)+Math.imul(b,it)|0,s=s+Math.imul(b,nt)|0,n=n+Math.imul(f,st)|0,r=(r=r+Math.imul(f,ot)|0)+Math.imul(m,st)|0,s=s+Math.imul(m,ot)|0;var Ct=(c+(n=n+Math.imul(u,lt)|0)|0)+((8191&(r=(r=r+Math.imul(u,ct)|0)+Math.imul(d,lt)|0))<<13)|0;c=((s=s+Math.imul(d,ct)|0)+(r>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(N,q),r=(r=Math.imul(N,z))+Math.imul(P,q)|0,s=Math.imul(P,z),n=n+Math.imul(O,Y)|0,r=(r=r+Math.imul(O,G)|0)+Math.imul(D,Y)|0,s=s+Math.imul(D,G)|0,n=n+Math.imul(M,V)|0,r=(r=r+Math.imul(M,Q)|0)+Math.imul(L,V)|0,s=s+Math.imul(L,Q)|0,n=n+Math.imul(E,J)|0,r=(r=r+Math.imul(E,X)|0)+Math.imul(k,J)|0,s=s+Math.imul(k,X)|0,n=n+Math.imul(C,$)|0,r=(r=r+Math.imul(C,tt)|0)+Math.imul(A,$)|0,s=s+Math.imul(A,tt)|0,n=n+Math.imul(_,it)|0,r=(r=r+Math.imul(_,nt)|0)+Math.imul(w,it)|0,s=s+Math.imul(w,nt)|0,n=n+Math.imul(y,st)|0,r=(r=r+Math.imul(y,ot)|0)+Math.imul(b,st)|0,s=s+Math.imul(b,ot)|0,n=n+Math.imul(f,lt)|0,r=(r=r+Math.imul(f,ct)|0)+Math.imul(m,lt)|0,s=s+Math.imul(m,ct)|0;var At=(c+(n=n+Math.imul(u,ut)|0)|0)+((8191&(r=(r=r+Math.imul(u,dt)|0)+Math.imul(d,ut)|0))<<13)|0;c=((s=s+Math.imul(d,dt)|0)+(r>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(Z,q),r=(r=Math.imul(Z,z))+Math.imul(B,q)|0,s=Math.imul(B,z),n=n+Math.imul(N,Y)|0,r=(r=r+Math.imul(N,G)|0)+Math.imul(P,Y)|0,s=s+Math.imul(P,G)|0,n=n+Math.imul(O,V)|0,r=(r=r+Math.imul(O,Q)|0)+Math.imul(D,V)|0,s=s+Math.imul(D,Q)|0,n=n+Math.imul(M,J)|0,r=(r=r+Math.imul(M,X)|0)+Math.imul(L,J)|0,s=s+Math.imul(L,X)|0,n=n+Math.imul(E,$)|0,r=(r=r+Math.imul(E,tt)|0)+Math.imul(k,$)|0,s=s+Math.imul(k,tt)|0,n=n+Math.imul(C,it)|0,r=(r=r+Math.imul(C,nt)|0)+Math.imul(A,it)|0,s=s+Math.imul(A,nt)|0,n=n+Math.imul(_,st)|0,r=(r=r+Math.imul(_,ot)|0)+Math.imul(w,st)|0,s=s+Math.imul(w,ot)|0,n=n+Math.imul(y,lt)|0,r=(r=r+Math.imul(y,ct)|0)+Math.imul(b,lt)|0,s=s+Math.imul(b,ct)|0,n=n+Math.imul(f,ut)|0,r=(r=r+Math.imul(f,dt)|0)+Math.imul(m,ut)|0,s=s+Math.imul(m,dt)|0;var St=(c+(n=n+Math.imul(u,ft)|0)|0)+((8191&(r=(r=r+Math.imul(u,mt)|0)+Math.imul(d,ft)|0))<<13)|0;c=((s=s+Math.imul(d,mt)|0)+(r>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(Z,Y),r=(r=Math.imul(Z,G))+Math.imul(B,Y)|0,s=Math.imul(B,G),n=n+Math.imul(N,V)|0,r=(r=r+Math.imul(N,Q)|0)+Math.imul(P,V)|0,s=s+Math.imul(P,Q)|0,n=n+Math.imul(O,J)|0,r=(r=r+Math.imul(O,X)|0)+Math.imul(D,J)|0,s=s+Math.imul(D,X)|0,n=n+Math.imul(M,$)|0,r=(r=r+Math.imul(M,tt)|0)+Math.imul(L,$)|0,s=s+Math.imul(L,tt)|0,n=n+Math.imul(E,it)|0,r=(r=r+Math.imul(E,nt)|0)+Math.imul(k,it)|0,s=s+Math.imul(k,nt)|0,n=n+Math.imul(C,st)|0,r=(r=r+Math.imul(C,ot)|0)+Math.imul(A,st)|0,s=s+Math.imul(A,ot)|0,n=n+Math.imul(_,lt)|0,r=(r=r+Math.imul(_,ct)|0)+Math.imul(w,lt)|0,s=s+Math.imul(w,ct)|0,n=n+Math.imul(y,ut)|0,r=(r=r+Math.imul(y,dt)|0)+Math.imul(b,ut)|0,s=s+Math.imul(b,dt)|0;var Et=(c+(n=n+Math.imul(f,ft)|0)|0)+((8191&(r=(r=r+Math.imul(f,mt)|0)+Math.imul(m,ft)|0))<<13)|0;c=((s=s+Math.imul(m,mt)|0)+(r>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(Z,V),r=(r=Math.imul(Z,Q))+Math.imul(B,V)|0,s=Math.imul(B,Q),n=n+Math.imul(N,J)|0,r=(r=r+Math.imul(N,X)|0)+Math.imul(P,J)|0,s=s+Math.imul(P,X)|0,n=n+Math.imul(O,$)|0,r=(r=r+Math.imul(O,tt)|0)+Math.imul(D,$)|0,s=s+Math.imul(D,tt)|0,n=n+Math.imul(M,it)|0,r=(r=r+Math.imul(M,nt)|0)+Math.imul(L,it)|0,s=s+Math.imul(L,nt)|0,n=n+Math.imul(E,st)|0,r=(r=r+Math.imul(E,ot)|0)+Math.imul(k,st)|0,s=s+Math.imul(k,ot)|0,n=n+Math.imul(C,lt)|0,r=(r=r+Math.imul(C,ct)|0)+Math.imul(A,lt)|0,s=s+Math.imul(A,ct)|0,n=n+Math.imul(_,ut)|0,r=(r=r+Math.imul(_,dt)|0)+Math.imul(w,ut)|0,s=s+Math.imul(w,dt)|0;var kt=(c+(n=n+Math.imul(y,ft)|0)|0)+((8191&(r=(r=r+Math.imul(y,mt)|0)+Math.imul(b,ft)|0))<<13)|0;c=((s=s+Math.imul(b,mt)|0)+(r>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(Z,J),r=(r=Math.imul(Z,X))+Math.imul(B,J)|0,s=Math.imul(B,X),n=n+Math.imul(N,$)|0,r=(r=r+Math.imul(N,tt)|0)+Math.imul(P,$)|0,s=s+Math.imul(P,tt)|0,n=n+Math.imul(O,it)|0,r=(r=r+Math.imul(O,nt)|0)+Math.imul(D,it)|0,s=s+Math.imul(D,nt)|0,n=n+Math.imul(M,st)|0,r=(r=r+Math.imul(M,ot)|0)+Math.imul(L,st)|0,s=s+Math.imul(L,ot)|0,n=n+Math.imul(E,lt)|0,r=(r=r+Math.imul(E,ct)|0)+Math.imul(k,lt)|0,s=s+Math.imul(k,ct)|0,n=n+Math.imul(C,ut)|0,r=(r=r+Math.imul(C,dt)|0)+Math.imul(A,ut)|0,s=s+Math.imul(A,dt)|0;var Tt=(c+(n=n+Math.imul(_,ft)|0)|0)+((8191&(r=(r=r+Math.imul(_,mt)|0)+Math.imul(w,ft)|0))<<13)|0;c=((s=s+Math.imul(w,mt)|0)+(r>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(Z,$),r=(r=Math.imul(Z,tt))+Math.imul(B,$)|0,s=Math.imul(B,tt),n=n+Math.imul(N,it)|0,r=(r=r+Math.imul(N,nt)|0)+Math.imul(P,it)|0,s=s+Math.imul(P,nt)|0,n=n+Math.imul(O,st)|0,r=(r=r+Math.imul(O,ot)|0)+Math.imul(D,st)|0,s=s+Math.imul(D,ot)|0,n=n+Math.imul(M,lt)|0,r=(r=r+Math.imul(M,ct)|0)+Math.imul(L,lt)|0,s=s+Math.imul(L,ct)|0,n=n+Math.imul(E,ut)|0,r=(r=r+Math.imul(E,dt)|0)+Math.imul(k,ut)|0,s=s+Math.imul(k,dt)|0;var Mt=(c+(n=n+Math.imul(C,ft)|0)|0)+((8191&(r=(r=r+Math.imul(C,mt)|0)+Math.imul(A,ft)|0))<<13)|0;c=((s=s+Math.imul(A,mt)|0)+(r>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(Z,it),r=(r=Math.imul(Z,nt))+Math.imul(B,it)|0,s=Math.imul(B,nt),n=n+Math.imul(N,st)|0,r=(r=r+Math.imul(N,ot)|0)+Math.imul(P,st)|0,s=s+Math.imul(P,ot)|0,n=n+Math.imul(O,lt)|0,r=(r=r+Math.imul(O,ct)|0)+Math.imul(D,lt)|0,s=s+Math.imul(D,ct)|0,n=n+Math.imul(M,ut)|0,r=(r=r+Math.imul(M,dt)|0)+Math.imul(L,ut)|0,s=s+Math.imul(L,dt)|0;var Lt=(c+(n=n+Math.imul(E,ft)|0)|0)+((8191&(r=(r=r+Math.imul(E,mt)|0)+Math.imul(k,ft)|0))<<13)|0;c=((s=s+Math.imul(k,mt)|0)+(r>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,n=Math.imul(Z,st),r=(r=Math.imul(Z,ot))+Math.imul(B,st)|0,s=Math.imul(B,ot),n=n+Math.imul(N,lt)|0,r=(r=r+Math.imul(N,ct)|0)+Math.imul(P,lt)|0,s=s+Math.imul(P,ct)|0,n=n+Math.imul(O,ut)|0,r=(r=r+Math.imul(O,dt)|0)+Math.imul(D,ut)|0,s=s+Math.imul(D,dt)|0;var It=(c+(n=n+Math.imul(M,ft)|0)|0)+((8191&(r=(r=r+Math.imul(M,mt)|0)+Math.imul(L,ft)|0))<<13)|0;c=((s=s+Math.imul(L,mt)|0)+(r>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(Z,lt),r=(r=Math.imul(Z,ct))+Math.imul(B,lt)|0,s=Math.imul(B,ct),n=n+Math.imul(N,ut)|0,r=(r=r+Math.imul(N,dt)|0)+Math.imul(P,ut)|0,s=s+Math.imul(P,dt)|0;var Ot=(c+(n=n+Math.imul(O,ft)|0)|0)+((8191&(r=(r=r+Math.imul(O,mt)|0)+Math.imul(D,ft)|0))<<13)|0;c=((s=s+Math.imul(D,mt)|0)+(r>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(Z,ut),r=(r=Math.imul(Z,dt))+Math.imul(B,ut)|0,s=Math.imul(B,dt);var Dt=(c+(n=n+Math.imul(N,ft)|0)|0)+((8191&(r=(r=r+Math.imul(N,mt)|0)+Math.imul(P,ft)|0))<<13)|0;c=((s=s+Math.imul(P,mt)|0)+(r>>>13)|0)+(Dt>>>26)|0,Dt&=67108863;var Rt=(c+(n=Math.imul(Z,ft))|0)+((8191&(r=(r=Math.imul(Z,mt))+Math.imul(B,ft)|0))<<13)|0;return c=((s=Math.imul(B,mt))+(r>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,l[0]=gt,l[1]=yt,l[2]=bt,l[3]=vt,l[4]=_t,l[5]=wt,l[6]=xt,l[7]=Ct,l[8]=At,l[9]=St,l[10]=Et,l[11]=kt,l[12]=Tt,l[13]=Mt,l[14]=Lt,l[15]=It,l[16]=Ot,l[17]=Dt,l[18]=Rt,0!==c&&(l[19]=c,i.length++),i};function m(t,e,i){return(new g).mulp(t,e,i)}function g(t,e){this.x=t,this.y=e}Math.imul||(f=p),s.prototype.mulTo=function(t,e){var i=this.length+t.length;return 10===this.length&&10===t.length?f(this,t,e):i<63?p(this,t,e):i<1024?function(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var n=0,r=0,s=0;s>>26)|0)>>>26,o&=67108863}i.words[s]=a,n=o,o=r}return 0!==n?i.words[s]=n:i.length--,i.strip()}(this,t,e):m(this,t,e)},g.prototype.makeRBT=function(t){for(var e=new Array(t),i=s.prototype._countBits(t)-1,n=0;n>=1;return n},g.prototype.permute=function(t,e,i,n,r,s){for(var o=0;o>>=1)r++;return 1<>>=13),s>>>=13;for(o=2*e;o>=26,e+=r/67108864|0,e+=s>>>26,this.words[i]=67108863&s}return 0!==e&&(this.words[i]=e,this.length++),this},s.prototype.muln=function(t){return this.clone().imuln(t)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),i=0;i>>n}return e}(t);if(0===e.length)return new s(1);for(var i=this,n=0;n=0);var e,i=t%26,r=(t-i)/26,s=67108863>>>26-i<<26-i;if(0!==i){var o=0;for(e=0;e>>26-i}o&&(this.words[e]=o,this.length++)}if(0!==r){for(e=this.length-1;e>=0;e--)this.words[e+r]=this.words[e];for(e=0;e=0),r=e?(e-e%26)/26:0;var s=t%26,o=Math.min((t-s)/26,this.length),a=67108863^67108863>>>s<o)for(this.length-=o,c=0;c=0&&(0!==h||c>=r);c--){var u=0|this.words[c];this.words[c]=h<<26-s|u>>>s,h=u&a}return l&&0!==h&&(l.words[l.length++]=h),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(t,e,i){return n(0===this.negative),this.iushrn(t,e,i)},s.prototype.shln=function(t){return this.clone().ishln(t)},s.prototype.ushln=function(t){return this.clone().iushln(t)},s.prototype.shrn=function(t){return this.clone().ishrn(t)},s.prototype.ushrn=function(t){return this.clone().iushrn(t)},s.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,i=(t-e)/26;return!(this.length<=i||!(this.words[i]&1<=0);var e=t%26,i=(t-e)/26;return n(0===this.negative,"imaskn works only with positive numbers"),this.length<=i?this:(0!==e&&i++,this.length=Math.min(i,this.length),0!==e&&(this.words[this.length-1]&=67108863^67108863>>>e<=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},s.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(a/67108864|0),this.words[r+i]=67108863&s}for(;r>26,this.words[r+i]=67108863&s;if(0===o)return this.strip();for(n(-1===o),o=0,r=0;r>26,this.words[r]=67108863&s;return this.negative=1,this.strip()},s.prototype._wordDiv=function(t,e){var i,n=this.clone(),r=t,o=0|r.words[r.length-1];0!=(i=26-this._countBits(o))&&(r=r.ushln(i),n.iushln(i),o=0|r.words[r.length-1]);var a,l=n.length-r.length;if("mod"!==e){(a=new s(null)).length=l+1,a.words=new Array(a.length);for(var c=0;c=0;u--){var d=67108864*(0|n.words[r.length+u])+(0|n.words[r.length+u-1]);for(d=Math.min(d/o|0,67108863),n._ishlnsubmul(r,d,u);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(r,1,u),n.isZero()||(n.negative^=1);a&&(a.words[u]=d)}return a&&a.strip(),n.strip(),"div"!==e&&0!==i&&n.iushrn(i),{div:a||null,mod:n}},s.prototype.divmod=function(t,e,i){return n(!t.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(r=a.div.neg()),"div"!==e&&(o=a.mod.neg(),i&&0!==o.negative&&o.iadd(t)),{div:r,mod:o}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(r=a.div.neg()),{div:r,mod:a.mod}):0!=(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(o=a.mod.neg(),i&&0!==o.negative&&o.isub(t)),{div:a.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new s(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new s(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new s(this.modn(t.words[0]))}:this._wordDiv(t,e);var r,o,a},s.prototype.div=function(t){return this.divmod(t,"div",!1).div},s.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},s.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},s.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var i=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),r=t.andln(1),s=i.cmp(n);return s<0||1===r&&0===s?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},s.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,i=0,r=this.length-1;r>=0;r--)i=(e*i+(0|this.words[r]))%t;return i},s.prototype.idivn=function(t){n(t<=67108863);for(var e=0,i=this.length-1;i>=0;i--){var r=(0|this.words[i])+67108864*e;this.words[i]=r/t|0,e=r%t}return this.strip()},s.prototype.divn=function(t){return this.clone().idivn(t)},s.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var r=new s(1),o=new s(0),a=new s(0),l=new s(1),c=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++c;for(var h=i.clone(),u=e.clone();!e.isZero();){for(var d=0,p=1;0==(e.words[0]&p)&&d<26;++d,p<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(r.isOdd()||o.isOdd())&&(r.iadd(h),o.isub(u)),r.iushrn(1),o.iushrn(1);for(var f=0,m=1;0==(i.words[0]&m)&&f<26;++f,m<<=1);if(f>0)for(i.iushrn(f);f-- >0;)(a.isOdd()||l.isOdd())&&(a.iadd(h),l.isub(u)),a.iushrn(1),l.iushrn(1);e.cmp(i)>=0?(e.isub(i),r.isub(a),o.isub(l)):(i.isub(e),a.isub(r),l.isub(o))}return{a:a,b:l,gcd:i.iushln(c)}},s.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var r,o=new s(1),a=new s(0),l=i.clone();e.cmpn(1)>0&&i.cmpn(1)>0;){for(var c=0,h=1;0==(e.words[0]&h)&&c<26;++c,h<<=1);if(c>0)for(e.iushrn(c);c-- >0;)o.isOdd()&&o.iadd(l),o.iushrn(1);for(var u=0,d=1;0==(i.words[0]&d)&&u<26;++u,d<<=1);if(u>0)for(i.iushrn(u);u-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);e.cmp(i)>=0?(e.isub(i),o.isub(a)):(i.isub(e),a.isub(o))}return(r=0===e.cmpn(1)?o:a).cmpn(0)<0&&r.iadd(t),r},s.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),i=t.clone();e.negative=0,i.negative=0;for(var n=0;e.isEven()&&i.isEven();n++)e.iushrn(1),i.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;i.isEven();)i.iushrn(1);var r=e.cmp(i);if(r<0){var s=e;e=i,i=s}else if(0===r||0===i.cmpn(1))break;e.isub(i)}return i.iushln(n)},s.prototype.invm=function(t){return this.egcd(t).a.umod(t)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(t){return this.words[0]&t},s.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,i=(t-e)/26,r=1<>>26,this.words[o]=a&=67108863}return 0!==s&&(this.words[o]=s,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(t){var e,i=t<0;if(0!==this.negative&&!i)return-1;if(0===this.negative&&i)return 1;if(this.strip(),this.length>1)e=1;else{i&&(t=-t),n(t<=67108863,"Number is too big");var r=0|this.words[0];e=r===t?0:rt.length)return 1;if(this.length=0;i--){var n=0|this.words[i],r=0|t.words[i];if(n!==r){nr&&(e=1);break}}return e},s.prototype.gtn=function(t){return 1===this.cmpn(t)},s.prototype.gt=function(t){return 1===this.cmp(t)},s.prototype.gten=function(t){return this.cmpn(t)>=0},s.prototype.gte=function(t){return this.cmp(t)>=0},s.prototype.ltn=function(t){return-1===this.cmpn(t)},s.prototype.lt=function(t){return-1===this.cmp(t)},s.prototype.lten=function(t){return this.cmpn(t)<=0},s.prototype.lte=function(t){return this.cmp(t)<=0},s.prototype.eqn=function(t){return 0===this.cmpn(t)},s.prototype.eq=function(t){return 0===this.cmp(t)},s.red=function(t){return new C(t)},s.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},s.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(t){return this.red=t,this},s.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},s.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},s.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},s.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},s.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},s.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},s.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},s.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},s.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var y={k256:null,p224:null,p192:null,p25519:null};function b(t,e){this.name=t,this.p=new s(e,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function C(t){if("string"==typeof t){var e=s._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function A(t){C.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}b.prototype._tmp=function(){var t=new s(null);return t.words=new Array(Math.ceil(this.n/13)),t},b.prototype.ireduce=function(t){var e,i=t;do{this.split(i,this.tmp),e=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e0?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},b.prototype.split=function(t,e){t.iushrn(this.n,0,e)},b.prototype.imulK=function(t){return t.imul(this.k)},r(v,b),v.prototype.split=function(t,e){for(var i=4194303,n=Math.min(t.length,9),r=0;r>>22,s=o}t.words[r-10]=s>>>=22,t.length-=0===s&&t.length>10?10:9},v.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i>>=26,t.words[i]=r,e=n}return 0!==e&&(t.words[t.length++]=e),t},s._prime=function(t){if(y[t])return y[t];var e;if("k256"===t)e=new v;else if("p224"===t)e=new _;else if("p192"===t)e=new w;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new x}return y[t]=e,e},C.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},C.prototype._verify2=function(t,e){n(0==(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},C.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},C.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},C.prototype.add=function(t,e){this._verify2(t,e);var i=t.add(e);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},C.prototype.iadd=function(t,e){this._verify2(t,e);var i=t.iadd(e);return i.cmp(this.m)>=0&&i.isub(this.m),i},C.prototype.sub=function(t,e){this._verify2(t,e);var i=t.sub(e);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},C.prototype.isub=function(t,e){this._verify2(t,e);var i=t.isub(e);return i.cmpn(0)<0&&i.iadd(this.m),i},C.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},C.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},C.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},C.prototype.isqr=function(t){return this.imul(t,t.clone())},C.prototype.sqr=function(t){return this.mul(t,t)},C.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var i=this.m.add(new s(1)).iushrn(2);return this.pow(t,i)}for(var r=this.m.subn(1),o=0;!r.isZero()&&0===r.andln(1);)o++,r.iushrn(1);n(!r.isZero());var a=new s(1).toRed(this),l=a.redNeg(),c=this.m.subn(1).iushrn(1),h=this.m.bitLength();for(h=new s(2*h*h).toRed(this);0!==this.pow(h,c).cmp(l);)h.redIAdd(l);for(var u=this.pow(h,r),d=this.pow(t,r.addn(1).iushrn(1)),p=this.pow(t,r),f=o;0!==p.cmp(a);){for(var m=p,g=0;0!==m.cmp(a);g++)m=m.redSqr();n(g=0;n--){for(var c=e.words[n],h=l-1;h>=0;h--){var u=c>>h&1;r!==i[0]&&(r=this.sqr(r)),0!==u||0!==o?(o<<=1,o|=u,(4==++a||0===n&&0===h)&&(r=this.mul(r,i[o]),a=0,o=0)):a=0}l=26}return r},C.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},C.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},s.mont=function(t){return new A(t)},r(A,C),A.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},A.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},A.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var i=t.imul(e),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),s=r;return r.cmp(this.m)>=0?s=r.isub(this.m):r.cmpn(0)<0&&(s=r.iadd(this.m)),s._forceRed(this)},A.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new s(0)._forceRed(this);var i=t.mul(e),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),o=r;return r.cmp(this.m)>=0?o=r.isub(this.m):r.cmpn(0)<0&&(o=r.iadd(this.m)),o._forceRed(this)},A.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=i.nmd(t),this)},864:(t,e,i)=>{var n=i(2291),r=i(6859),s=i(5669),o=i(8466),a=i(4467),l=i(4500),c=i(9597),h=i(7015).Buffer;t.exports=function(t,e,i){var u;u=t.padding?t.padding:i?1:4;var d,p=n(t),f=p.modulus.byteLength();if(e.length>f||new o(e).cmp(p.modulus)>=0)throw new Error("decryption error");d=i?c(new o(e),p):a(e,p);var m=h.alloc(f-d.length);if(d=h.concat([m,d],f),4===u)return function(t,e){var i=t.modulus.byteLength(),n=l("sha1").update(h.alloc(0)).digest(),o=n.length;if(0!==e[0])throw new Error("decryption error");var a=e.slice(1,o+1),c=e.slice(o+1),u=s(a,r(c,o)),d=s(c,r(u,i-o-1));if(function(t,e){t=h.from(t),e=h.from(e);var i=0,n=t.length;t.length!==e.length&&(i++,n=Math.min(t.length,e.length));for(var r=-1;++r=e.length){s++;break}var o=e.slice(2,r-1);if(("0002"!==n.toString("hex")&&!i||"0001"!==n.toString("hex")&&i)&&s++,o.length<8&&s++,s)throw new Error("decryption error");return e.slice(r)}(0,d,i);if(3===u)return d;throw new Error("unknown padding")}},3714:(t,e,i)=>{var n=i(2291),r=i(6716),s=i(4500),o=i(6859),a=i(5669),l=i(8466),c=i(9597),h=i(4467),u=i(7015).Buffer;t.exports=function(t,e,i){var d;d=t.padding?t.padding:i?1:4;var p,f=n(t);if(4===d)p=function(t,e){var i=t.modulus.byteLength(),n=e.length,c=s("sha1").update(u.alloc(0)).digest(),h=c.length,d=2*h;if(n>i-d-2)throw new Error("message too long");var p=u.alloc(i-n-d-2),f=i-h-1,m=r(h),g=a(u.concat([c,p,u.alloc(1,1),e],f),o(m,f)),y=a(m,o(g,h));return new l(u.concat([u.alloc(1),y,g],i))}(f,e);else if(1===d)p=function(t,e,i){var n,s=e.length,o=t.modulus.byteLength();if(s>o-11)throw new Error("message too long");return n=i?u.alloc(o-s-3,255):function(t){for(var e,i=u.allocUnsafe(t),n=0,s=r(2*t),o=0;n=0)throw new Error("data too long for modulus")}return i?h(p,f):c(p,f)}},9597:(t,e,i)=>{var n=i(8466),r=i(7015).Buffer;t.exports=function(t,e){return r.from(t.toRed(n.mont(e.modulus)).redPow(new n(e.publicExponent)).fromRed().toArray())}},5669:t=>{t.exports=function(t,e){for(var i=t.length,n=-1;++n{var n=i(422),r=i(348),s=i(2253),o=i(3657);function a(t,e,i,s,o){var a=[].slice.call(arguments,1),l=a.length,c="function"==typeof a[l-1];if(!c&&!n())throw new Error("Callback required as last argument");if(!c){if(l<1)throw new Error("Too few arguments provided");return 1===l?(i=e,e=s=void 0):2!==l||e.getContext||(s=i,i=e,e=void 0),new Promise(function(n,o){try{var a=r.create(i,s);n(t(a,e,s))}catch(l){o(l)}})}if(l<2)throw new Error("Too few arguments provided");2===l?(o=i,i=e,e=s=void 0):3===l&&(e.getContext&&void 0===o?(o=s,s=void 0):(o=s,s=i,i=e,e=void 0));try{var h=r.create(i,s);o(null,t(h,e,s))}catch(u){o(u)}}e.rT=a.bind(null,s.render),e.hz=a.bind(null,s.renderToDataURL),e.toString=a.bind(null,function(t,e,i){return o.render(t,i)})},422:t=>{t.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},6831:(t,e,i)=>{var n=i(1893).getSymbolSize;e.getRowColCoords=function(t){if(1===t)return[];for(var e=Math.floor(t/7)+2,i=n(t),r=145===i?26:2*Math.ceil((i-13)/(2*e-2)),s=[i-7],o=1;o{var n=i(4358),r=["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 s(t){this.mode=n.ALPHANUMERIC,this.data=t}s.getBitsLength=function(t){return 11*Math.floor(t/2)+t%2*6},s.prototype.getLength=function(){return this.data.length},s.prototype.getBitsLength=function(){return s.getBitsLength(this.data.length)},s.prototype.write=function(t){var e;for(e=0;e+2<=this.data.length;e+=2){var i=45*r.indexOf(this.data[e]);i+=r.indexOf(this.data[e+1]),t.put(i,11)}this.data.length%2&&t.put(r.indexOf(this.data[e]),6)},t.exports=s},1401:t=>{function e(){this.buffer=[],this.length=0}e.prototype={get:function(t){var e=Math.floor(t/8);return 1==(this.buffer[e]>>>7-t%8&1)},put:function(t,e){for(var i=0;i>>e-i-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}},t.exports=e},9834:(t,e,i)=>{var n=i(2060);function r(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new n(t*t),this.data.fill(0),this.reservedBit=new n(t*t),this.reservedBit.fill(0)}r.prototype.set=function(t,e,i,n){var r=t*this.size+e;this.data[r]=i,n&&(this.reservedBit[r]=!0)},r.prototype.get=function(t,e){return this.data[t*this.size+e]},r.prototype.xor=function(t,e,i){this.data[t*this.size+e]^=i},r.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]},t.exports=r},3964:(t,e,i)=>{var n=i(2060),r=i(4358);function s(t){this.mode=r.BYTE,this.data=new n(t)}s.getBitsLength=function(t){return 8*t},s.prototype.getLength=function(){return this.data.length},s.prototype.getBitsLength=function(){return s.getBitsLength(this.data.length)},s.prototype.write=function(t){for(var e=0,i=this.data.length;e{var n=i(3076),r=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],s=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];e.getBlocksCount=function(t,e){switch(e){case n.L:return r[4*(t-1)+0];case n.M:return r[4*(t-1)+1];case n.Q:return r[4*(t-1)+2];case n.H:return r[4*(t-1)+3];default:return}},e.getTotalCodewordsCount=function(t,e){switch(e){case n.L:return s[4*(t-1)+0];case n.M:return s[4*(t-1)+1];case n.Q:return s[4*(t-1)+2];case n.H:return s[4*(t-1)+3];default:return}}},3076:(t,e)=>{e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2},e.isValid=function(t){return t&&void 0!==t.bit&&t.bit>=0&&t.bit<4},e.from=function(t,i){if(e.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+t)}}(t)}catch(n){return i}}},8902:(t,e,i)=>{var n=i(1893).getSymbolSize;e.getPositions=function(t){var e=n(t);return[[0,0],[e-7,0],[0,e-7]]}},2256:(t,e,i)=>{var n=i(1893),r=n.getBCHDigit(1335);e.getEncodedBits=function(t,e){for(var i=t.bit<<3|e,s=i<<10;n.getBCHDigit(s)-r>=0;)s^=1335<{var n,r,s=i(2060);s.alloc?(n=s.alloc(512),r=s.alloc(256)):(n=new s(512),r=new s(256)),function(){for(var t=1,e=0;e<255;e++)n[e]=t,r[t]=e,256&(t<<=1)&&(t^=285);for(e=255;e<512;e++)n[e]=n[e-255]}(),e.log=function(t){if(t<1)throw new Error("log("+t+")");return r[t]},e.exp=function(t){return n[t]},e.mul=function(t,e){return 0===t||0===e?0:n[r[t]+r[e]]}},9889:(t,e,i)=>{var n=i(4358),r=i(1893);function s(t){this.mode=n.KANJI,this.data=t}s.getBitsLength=function(t){return 13*t},s.prototype.getLength=function(){return this.data.length},s.prototype.getBitsLength=function(){return s.getBitsLength(this.data.length)},s.prototype.write=function(t){var e;for(e=0;e=33088&&i<=40956)i-=33088;else{if(!(i>=57408&&i<=60351))throw new Error("Invalid SJIS character: "+this.data[e]+"\nMake sure your charset is UTF-8");i-=49472}t.put(i=192*(i>>>8&255)+(255&i),13)}},t.exports=s},4740:(t,e)=>{function i(t,i,n){switch(t){case e.Patterns.PATTERN000:return(i+n)%2==0;case e.Patterns.PATTERN001:return i%2==0;case e.Patterns.PATTERN010:return n%3==0;case e.Patterns.PATTERN011:return(i+n)%3==0;case e.Patterns.PATTERN100:return(Math.floor(i/2)+Math.floor(n/3))%2==0;case e.Patterns.PATTERN101:return i*n%2+i*n%3==0;case e.Patterns.PATTERN110:return(i*n%2+i*n%3)%2==0;case e.Patterns.PATTERN111:return(i*n%3+(i+n)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}}e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},e.isValid=function(t){return null!=t&&""!==t&&!isNaN(t)&&t>=0&&t<=7},e.from=function(t){return e.isValid(t)?parseInt(t,10):void 0},e.getPenaltyN1=function(t){for(var e=t.size,i=0,n=0,r=0,s=null,o=null,a=0;a=5&&(i+=n-5+3),s=c,n=1),(c=t.get(l,a))===o?r++:(r>=5&&(i+=r-5+3),o=c,r=1)}n>=5&&(i+=n-5+3),r>=5&&(i+=r-5+3)}return i},e.getPenaltyN2=function(t){for(var e=t.size,i=0,n=0;n=10&&(1488===n||93===n)&&i++,r=r<<1&2047|t.get(o,s),o>=10&&(1488===r||93===r)&&i++}return 40*i},e.getPenaltyN4=function(t){for(var e=0,i=t.data.length,n=0;n{var n=i(3893),r=i(9947);e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(t,e){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!n.isValid(e))throw new Error("Invalid version: "+e);return e>=1&&e<10?t.ccBits[0]:e<27?t.ccBits[1]:t.ccBits[2]},e.getBestModeForData=function(t){return r.testNumeric(t)?e.NUMERIC:r.testAlphanumeric(t)?e.ALPHANUMERIC:r.testKanji(t)?e.KANJI:e.BYTE},e.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")},e.isValid=function(t){return t&&t.bit&&t.ccBits},e.from=function(t,i){if(e.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+t)}}(t)}catch(n){return i}}},9246:(t,e,i)=>{var n=i(4358);function r(t){this.mode=n.NUMERIC,this.data=t.toString()}r.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(t){var e,i,n;for(e=0;e+3<=this.data.length;e+=3)i=this.data.substr(e,3),n=parseInt(i,10),t.put(n,10);var r=this.data.length-e;r>0&&(i=this.data.substr(e),n=parseInt(i,10),t.put(n,3*r+1))},t.exports=r},507:(t,e,i)=>{var n=i(2060),r=i(5076);e.mul=function(t,e){var i=new n(t.length+e.length-1);i.fill(0);for(var s=0;s=0;){for(var s=i[0],o=0;o{var n=i(2060),r=i(1893),s=i(3076),o=i(1401),a=i(9834),l=i(6831),c=i(8902),h=i(4740),u=i(3347),d=i(278),p=i(9471),f=i(2256),m=i(4358),g=i(388),y=i(6265);function b(t,e,i){var n,r,s=t.size,o=f.getEncodedBits(e,i);for(n=0;n<15;n++)t.set(n<6?n:n<8?n+1:s-15+n,8,r=1==(o>>n&1),!0),t.set(8,n<8?s-n-1:n<9?15-n-1+1:15-n-1,r,!0);t.set(s-8,8,1,!0)}e.create=function(t,e){if(void 0===t||""===t)throw new Error("No input text");var i,f,v=s.M;return void 0!==e&&(v=s.from(e.errorCorrectionLevel,s.M),i=p.from(e.version),f=h.from(e.maskPattern),e.toSJISFunc&&r.setToSJISFunction(e.toSJISFunc)),function(t,e,i,s){var f;if(y(t))f=g.fromArray(t);else{if("string"!=typeof t)throw new Error("Invalid data");var v=e;if(!v){var _=g.rawSplit(t);v=p.getBestVersionForData(_,i)}f=g.fromString(t,v||40)}var w=p.getBestVersionForData(f,i);if(!w)throw new Error("The amount of data is too big to be stored in a QR Code");if(e){if(e=0&&a<=6&&(0===l||6===l)||l>=0&&l<=6&&(0===a||6===a)||a>=2&&a<=4&&l>=2&&l<=4,!0)}(A,e),function(t){for(var e=t.size,i=8;i=7&&function(t,e){for(var i,n,r,s=t.size,o=p.getEncodedBits(e),a=0;a<18;a++)i=Math.floor(a/3),t.set(i,n=a%3+s-8-3,r=1==(o>>a&1),!0),t.set(n,i,r,!0)}(A,e),function(t,e){for(var i=t.size,n=-1,r=i-1,s=7,o=0,a=i-1;a>0;a-=2)for(6===a&&a--;;){for(var l=0;l<2;l++)if(!t.isReserved(r,a-l)){var c=!1;o>>s&1)),t.set(r,a-l,c),-1==--s&&(o++,s=7)}if((r+=n)<0||i<=r){r-=n,n=-n;break}}}(A,x),isNaN(s)&&(s=h.getBestMask(A,b.bind(null,A,i))),h.applyMask(s,A),b(A,i,s),{modules:A,version:e,errorCorrectionLevel:i,maskPattern:s,segments:f}}(t,i,v,f)}},278:(t,e,i)=>{var n=i(2060),r=i(507);function s(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}s.prototype.initialize=function(t){this.degree=t,this.genPoly=r.generateECPolynomial(this.degree)},s.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");var e=new n(this.degree);e.fill(0);var i=n.concat([t,e],t.length+this.degree),s=r.mod(i,this.genPoly),o=this.degree-s.length;if(o>0){var a=new n(this.degree);return a.fill(0),s.copy(a,o),a}return s},t.exports=s},9947:(t,e)=>{var i="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+",n="(?:(?![A-Z0-9 $%*+\\-./:]|"+(i=i.replace(/u/g,"\\u"))+")(?:.|[\r\n]))+";e.KANJI=new RegExp(i,"g"),e.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),e.BYTE=new RegExp(n,"g"),e.NUMERIC=new RegExp("[0-9]+","g"),e.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");var r=new RegExp("^"+i+"$"),s=new RegExp("^[0-9]+$"),o=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");e.testKanji=function(t){return r.test(t)},e.testNumeric=function(t){return s.test(t)},e.testAlphanumeric=function(t){return o.test(t)}},388:(t,e,i)=>{var n=i(4358),r=i(9246),s=i(9946),o=i(3964),a=i(9889),l=i(9947),c=i(1893),h=i(45);function u(t){return unescape(encodeURIComponent(t)).length}function d(t,e,i){for(var n,r=[];null!==(n=t.exec(i));)r.push({data:n[0],index:n.index,mode:e,length:n[0].length});return r}function p(t){var e,i,r=d(l.NUMERIC,n.NUMERIC,t),s=d(l.ALPHANUMERIC,n.ALPHANUMERIC,t);return c.isKanjiModeEnabled()?(e=d(l.BYTE,n.BYTE,t),i=d(l.KANJI,n.KANJI,t)):(e=d(l.BYTE_KANJI,n.BYTE,t),i=[]),r.concat(s,e,i).sort(function(t,e){return t.index-e.index}).map(function(t){return{data:t.data,mode:t.mode,length:t.length}})}function f(t,e){switch(e){case n.NUMERIC:return r.getBitsLength(t);case n.ALPHANUMERIC:return s.getBitsLength(t);case n.KANJI:return a.getBitsLength(t);case n.BYTE:return o.getBitsLength(t)}}function m(t,e){var i,l=n.getBestModeForData(t);if((i=n.from(e,l))!==n.BYTE&&i.bit=0?t[t.length-1]:null;return i&&i.mode===e.mode?(t[t.length-1].data+=e.data,t):(t.push(e),t)},[]))},e.rawSplit=function(t){return e.fromArray(p(t,c.isKanjiModeEnabled()))}},1893:(t,e)=>{var i,n=[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];e.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return 4*t+17},e.getSymbolTotalCodewords=function(t){return n[t]},e.getBCHDigit=function(t){for(var e=0;0!==t;)e++,t>>>=1;return e},e.setToSJISFunction=function(t){if("function"!=typeof t)throw new Error('"toSJISFunc" is not a valid function.');i=t},e.isKanjiModeEnabled=function(){return void 0!==i},e.toSJIS=function(t){return i(t)}},3893:(t,e)=>{e.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}},9471:(t,e,i)=>{var n=i(1893),r=i(3347),s=i(3076),o=i(4358),a=i(3893),l=i(6265),c=n.getBCHDigit(7973);function h(t,e){return o.getCharCountIndicator(t,e)+4}function u(t,e){var i=0;return t.forEach(function(t){var n=h(t.mode,e);i+=n+t.getBitsLength()}),i}e.from=function(t,e){return a.isValid(t)?parseInt(t,10):e},e.getCapacity=function(t,e,i){if(!a.isValid(t))throw new Error("Invalid QR Code version");void 0===i&&(i=o.BYTE);var s=8*(n.getSymbolTotalCodewords(t)-r.getTotalCodewordsCount(t,e));if(i===o.MIXED)return s;var l=s-h(i,t);switch(i){case o.NUMERIC:return Math.floor(l/10*3);case o.ALPHANUMERIC:return Math.floor(l/11*2);case o.KANJI:return Math.floor(l/13);case o.BYTE:default:return Math.floor(l/8)}},e.getBestVersionForData=function(t,i){var n,r=s.from(i,s.M);if(l(t)){if(t.length>1)return function(t,i){for(var n=1;n<=40;n++)if(u(t,n)<=e.getCapacity(n,i,o.MIXED))return n}(t,r);if(0===t.length)return 1;n=t[0]}else n=t;return function(t,i,n){for(var r=1;r<=40;r++)if(i<=e.getCapacity(r,n,t))return r}(n.mode,n.getLength(),r)},e.getEncodedBits=function(t){if(!a.isValid(t)||t<7)throw new Error("Invalid QR Code version");for(var e=t<<12;n.getBCHDigit(e)-c>=0;)e^=7973<{var n=i(717);e.render=function(t,e,i){var r=i,s=e;void 0!==r||e&&e.getContext||(r=e,e=void 0),e||(s=function(){try{return document.createElement("canvas")}catch(t){throw new Error("You need to specify a canvas element")}}()),r=n.getOptions(r);var o=n.getImageWidth(t.modules.size,r),a=s.getContext("2d"),l=a.createImageData(o,o);return n.qrToImageData(l.data,t,r),function(t,e,i){t.clearRect(0,0,e.width,e.height),e.style||(e.style={}),e.height=i,e.width=i,e.style.height=i+"px",e.style.width=i+"px"}(a,s,o),a.putImageData(l,0,0),s},e.renderToDataURL=function(t,i,n){var r=n;return void 0!==r||i&&i.getContext||(r=i,i=void 0),r||(r={}),e.render(t,i,r).toDataURL(r.type||"image/png",(r.rendererOpts||{}).quality)}},3657:(t,e,i)=>{var n=i(717);function r(t,e){var i=t.a/255,n=e+'="'+t.hex+'"';return i<1?n+" "+e+'-opacity="'+i.toFixed(2).slice(1)+'"':n}function s(t,e,i){var n=t+e;return void 0!==i&&(n+=" "+i),n}e.render=function(t,e,i){var o=n.getOptions(e),a=t.modules.size,l=t.modules.data,c=a+2*o.margin,h=o.color.light.a?"':"",u="0&&c>0&&t[l-1]||(n+=o?s("M",c+i,.5+h+i):s("m",r,0),r=0,o=!1),c+1',d=''+h+u+"\n";return"function"==typeof i&&i(null,d),d}},717:(t,e)=>{function i(t){if("number"==typeof t&&(t=t.toString()),"string"!=typeof t)throw new Error("Color should be defined as hex string");var e=t.slice().replace("#","").split("");if(e.length<3||5===e.length||e.length>8)throw new Error("Invalid hex color: "+t);3!==e.length&&4!==e.length||(e=Array.prototype.concat.apply([],e.map(function(t){return[t,t]}))),6===e.length&&e.push("F","F");var i=parseInt(e.join(""),16);return{r:i>>24&255,g:i>>16&255,b:i>>8&255,a:255&i,hex:"#"+e.slice(0,6).join("")}}e.getOptions=function(t){t||(t={}),t.color||(t.color={});var e=t.width&&t.width>=21?t.width:void 0;return{width:e,scale:e?4:t.scale||4,margin:null==t.margin||t.margin<0?4:t.margin,color:{dark:i(t.color.dark||"#000000ff"),light:i(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}},e.getScale=function(t,e){return e.width&&e.width>=t+2*e.margin?e.width/(t+2*e.margin):e.scale},e.getImageWidth=function(t,i){var n=e.getScale(t,i);return Math.floor((t+2*i.margin)*n)},e.qrToImageData=function(t,i,n){for(var r=i.modules.size,s=i.modules.data,o=e.getScale(r,n),a=Math.floor((r+2*n.margin)*o),l=n.margin*o,c=[n.color.light,n.color.dark],h=0;h=l&&u>=l&&h{"use strict";var n=i(6265),r=(s.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()}catch(e){return!1}}())?2147483647:1073741823;function s(t,e,i){return s.TYPED_ARRAY_SUPPORT||this instanceof s?"number"==typeof t?l(this,t):function(t,e,i,n){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,i,n){if(i<0||e.byteLength=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return 0|t}function a(t,e){var i;return s.TYPED_ARRAY_SUPPORT?(i=new Uint8Array(e)).__proto__=s.prototype:(null===(i=t)&&(i=new s(e)),i.length=e),i}function l(t,e){var i=a(t,e<0?0:0|o(e));if(!s.TYPED_ARRAY_SUPPORT)for(var n=0;n55295&&i<57344){if(!r){if(i>56319){(e-=3)>-1&&s.push(239,191,189);continue}if(o+1===n){(e-=3)>-1&&s.push(239,191,189);continue}r=i;continue}if(i<56320){(e-=3)>-1&&s.push(239,191,189),r=i;continue}i=65536+(r-55296<<10|i-56320)}else r&&(e-=3)>-1&&s.push(239,191,189);if(r=null,i<128){if((e-=1)<0)break;s.push(i)}else if(i<2048){if((e-=2)<0)break;s.push(i>>6|192,63&i|128)}else if(i<65536){if((e-=3)<0)break;s.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;s.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return s}function u(t){return s.isBuffer(t)?t.length:"undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer)?t.byteLength:("string"!=typeof t&&(t=""+t),0===t.length?0:h(t).length)}s.TYPED_ARRAY_SUPPORT&&(s.prototype.__proto__=Uint8Array.prototype,s.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&s[Symbol.species]===s&&Object.defineProperty(s,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1})),s.prototype.write=function(t,e,i){void 0===e||void 0===i&&"string"==typeof e?(i=this.length,e=0):isFinite(e)&&(e|=0,isFinite(i)?i|=0:i=void 0);var n=this.length-e;if((void 0===i||i>n)&&(i=n),t.length>0&&(i<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");return function(t,e,i,n){return function(t,e,i,n){for(var r=0;r=e.length||r>=t.length);++r)e[r+i]=t[r];return r}(h(e,t.length-i),t,i,n)}(this,t,e,i)},s.prototype.slice=function(t,e){var i,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e=t.length&&(e=t.length),e||(e=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e=0;--r)t[r+e]=this[r+i];else if(o<1e3||!s.TYPED_ARRAY_SUPPORT)for(r=0;r>>=0,i=void 0===i?this.length:i>>>0,t||(t=0),"number"==typeof t)for(r=e;r{"use strict";var n=65536,r=i(7015).Buffer,s=global.crypto||global.msCrypto;t.exports=s&&s.getRandomValues?function(t,e){if(t>4294967295)throw new RangeError("requested too many random bytes");var i=r.allocUnsafe(t);if(t>0)if(t>n)for(var o=0;o{"use strict";function n(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var r=i(7015),s=i(6716),o=r.Buffer,a=r.kMaxLength,l=global.crypto||global.msCrypto,c=Math.pow(2,32)-1;function h(t,e){if("number"!=typeof t||t!=t)throw new TypeError("offset must be a number");if(t>c||t<0)throw new TypeError("offset must be a uint32");if(t>a||t>e)throw new RangeError("offset out of range")}function u(t,e,i){if("number"!=typeof t||t!=t)throw new TypeError("size must be a number");if(t>c||t<0)throw new TypeError("size must be a uint32");if(t+e>i||t>a)throw new RangeError("buffer too small")}function d(t,e,i,n){if(process.browser){var r=new Uint8Array(t.buffer,e,i);return l.getRandomValues(r),n?void process.nextTick(function(){n(null,t)}):t}if(!n)return s(i).copy(t,e),t;s(i,function(i,r){if(i)return n(i);r.copy(t,e),n(null,t)})}l&&l.getRandomValues||!process.browser?(e.randomFill=function(t,e,i,n){if(!(o.isBuffer(t)||t instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof e)n=e,e=0,i=t.length;else if("function"==typeof i)n=i,i=t.length-e;else if("function"!=typeof n)throw new TypeError('"cb" argument must be a function');return h(e,t.length),u(i,e,t.length),d(t,e,i,n)},e.randomFillSync=function(t,e,i){if(void 0===e&&(e=0),!(o.isBuffer(t)||t instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return h(e,t.length),void 0===i&&(i=t.length-e),u(i,e,t.length),d(t,e,i)}):(e.randomFill=n,e.randomFillSync=n)},1552:t=>{"use strict";var e={};function i(t,i,n){n||(n=Error);var r=function(t){var e,n;function r(e,n,r){return t.call(this,function(t,e,n){return"string"==typeof i?i:i(t,e,n)}(e,n,r))||this}return n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,r}(n);r.prototype.name=n.name,r.prototype.code=t,e[t]=r}function n(t,e){if(Array.isArray(t)){var i=t.length;return t=t.map(function(t){return String(t)}),i>2?"one of ".concat(e," ").concat(t.slice(0,i-1).join(", "),", or ")+t[i-1]:2===i?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}i("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError),i("ERR_INVALID_ARG_TYPE",function(t,e,i){var r,s,o,a;if("string"==typeof e&&"not "===e.substr(0,"not ".length)?(r="must not be",e=e.replace(/^not /,"")):r="must be",function(t,e,i){return(void 0===i||i>t.length)&&(i=t.length),t.substring(i-e.length,i)===e}(t," argument"))s="The ".concat(t," ").concat(r," ").concat(n(e,"type"));else{var l=("number"!=typeof a&&(a=0),a+".".length>(o=t).length||-1===o.indexOf(".",a)?"argument":"property");s='The "'.concat(t,'" ').concat(l," ").concat(r," ").concat(n(e,"type"))}return s+". Received type ".concat(typeof i)},TypeError),i("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),i("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"}),i("ERR_STREAM_PREMATURE_CLOSE","Premature close"),i("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"}),i("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),i("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),i("ERR_STREAM_WRITE_AFTER_END","write after end"),i("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),i("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError),i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.q=e},9847:(t,e,i)=>{"use strict";var n=Object.keys||function(t){var e=[];for(var i in t)e.push(i);return e};t.exports=c;var r=i(617),s=i(4374);i(5457)(c,r);for(var o=n(s.prototype),a=0;a{"use strict";t.exports=r;var n=i(5774);function r(t){if(!(this instanceof r))return new r(t);n.call(this,t)}i(5457)(r,n),r.prototype._transform=function(t,e,i){i(null,t)}},617:(t,e,i)=>{"use strict";var n;t.exports=A,A.ReadableState=C,i(5068);var r,s=function(t,e){return t.listeners(e).length},o=i(6787),a=i(3833).Buffer,l=global.Uint8Array||function(){},c=i(4616);r=c&&c.debuglog?c.debuglog("stream"):function(){};var h,u,d,p=i(1062),f=i(2742),m=i(6187).getHighWaterMark,g=i(1552).q,y=g.ERR_INVALID_ARG_TYPE,b=g.ERR_STREAM_PUSH_AFTER_EOF,v=g.ERR_METHOD_NOT_IMPLEMENTED,_=g.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;i(5457)(A,o);var w=f.errorOrDestroy,x=["error","close","destroy","pause","resume"];function C(t,e,r){n=n||i(9847),"boolean"!=typeof r&&(r=e instanceof n),this.objectMode=!!(t=t||{}).objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=m(this,t,"readableHighWaterMark",r),this.buffer=new p,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(h||(h=i(4706).s),this.decoder=new h(t.encoding),this.encoding=t.encoding)}function A(t){if(n=n||i(9847),!(this instanceof A))return new A(t);this._readableState=new C(t,this,this instanceof n),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),o.call(this)}function S(t,e,i,n,s){r("readableAddChunk",e);var o,c=t._readableState;if(null===e)c.reading=!1,function(t,e){if(r("onEofChunk"),!e.ended){if(e.decoder){var i=e.decoder.end();i&&i.length&&(e.buffer.push(i),e.length+=e.objectMode?1:i.length)}e.ended=!0,e.sync?M(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,L(t)))}}(t,c);else if(s||(o=function(t,e){var i,n;return a.isBuffer(n=e)||n instanceof l||"string"==typeof e||void 0===e||t.objectMode||(i=new y("chunk",["string","Buffer","Uint8Array"],e)),i}(c,e)),o)w(t,o);else if(c.objectMode||e&&e.length>0)if("string"==typeof e||c.objectMode||Object.getPrototypeOf(e)===a.prototype||(e=function(t){return a.from(t)}(e)),n)c.endEmitted?w(t,new _):E(t,c,e,!0);else if(c.ended)w(t,new b);else{if(c.destroyed)return!1;c.reading=!1,c.decoder&&!i?(e=c.decoder.write(e),c.objectMode||0!==e.length?E(t,c,e,!1):I(t,c)):E(t,c,e,!1)}else n||(c.reading=!1,I(t,c));return!c.ended&&(c.lengthe.highWaterMark&&(e.highWaterMark=function(t){return t>=k?t=k:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function M(t){var e=t._readableState;r("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(r("emitReadable",e.flowing),e.emittedReadable=!0,process.nextTick(L,t))}function L(t){var e=t._readableState;r("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||!e.length&&!e.ended||(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,P(t)}function I(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(O,t,e))}function O(t,e){for(;!e.reading&&!e.ended&&(e.length0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function R(t){r("readable nexttick read 0"),t.read(0)}function N(t,e){r("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),P(t),e.flowing&&!e.reading&&t.read(0)}function P(t){var e=t._readableState;for(r("flow",e.flowing);e.flowing&&null!==t.read(););}function F(t,e){return 0===e.length?null:(e.objectMode?i=e.buffer.shift():!t||t>=e.length?(i=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):i=e.buffer.consume(t,e.decoder),i);var i}function Z(t){var e=t._readableState;r("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,process.nextTick(B,e,t))}function B(t,e){if(r("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&0===t.length&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var i=e._writableState;(!i||i.autoDestroy&&i.finished)&&e.destroy()}}function U(t,e){for(var i=0,n=t.length;i=e.highWaterMark:e.length>0)||e.ended))return r("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?Z(this):M(this),null;if(0===(t=T(t,e))&&e.ended)return 0===e.length&&Z(this),null;var n,s=e.needReadable;return r("need readable",s),(0===e.length||e.length-t0?F(t,e):null)?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),0===e.length&&(e.ended||(e.needReadable=!0),i!==t&&e.ended&&Z(this)),null!==n&&this.emit("data",n),n},A.prototype._read=function(t){w(this,new v("_read()"))},A.prototype.pipe=function(t,e){var i=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=t;break;case 1:n.pipes=[n.pipes,t];break;default:n.pipes.push(t)}n.pipesCount+=1,r("pipe count=%d opts=%j",n.pipesCount,e);var o=e&&!1===e.end||t===process.stdout||t===process.stderr?f:a;function a(){r("onend"),t.end()}n.endEmitted?process.nextTick(o):i.once("end",o),t.on("unpipe",function e(s,o){r("onunpipe"),s===i&&o&&!1===o.hasUnpiped&&(o.hasUnpiped=!0,r("cleanup"),t.removeListener("close",d),t.removeListener("finish",p),t.removeListener("drain",l),t.removeListener("error",u),t.removeListener("unpipe",e),i.removeListener("end",a),i.removeListener("end",f),i.removeListener("data",h),c=!0,!n.awaitDrain||t._writableState&&!t._writableState.needDrain||l())});var l=function(t){return function(){var e=t._readableState;r("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&s(t,"data")&&(e.flowing=!0,P(t))}}(i);t.on("drain",l);var c=!1;function h(e){r("ondata");var s=t.write(e);r("dest.write",s),!1===s&&((1===n.pipesCount&&n.pipes===t||n.pipesCount>1&&-1!==U(n.pipes,t))&&!c&&(r("false write response, pause",n.awaitDrain),n.awaitDrain++),i.pause())}function u(e){r("onerror",e),f(),t.removeListener("error",u),0===s(t,"error")&&w(t,e)}function d(){t.removeListener("finish",p),f()}function p(){r("onfinish"),t.removeListener("close",d),f()}function f(){r("unpipe"),i.unpipe(t)}return i.on("data",h),function(t,e,i){if("function"==typeof t.prependListener)return t.prependListener(e,i);t._events&&t._events.error?Array.isArray(t._events.error)?t._events.error.unshift(i):t._events.error=[i,t._events.error]:t.on(e,i)}(t,"error",u),t.once("close",d),t.once("finish",p),t.emit("pipe",i),n.flowing||(r("pipe resume"),i.resume()),t},A.prototype.unpipe=function(t){var e=this._readableState,i={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,i)),this;if(!t){var n=e.pipes,r=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var s=0;s0,!1!==n.flowing&&this.resume()):"readable"===t&&(n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,r("on readable",n.length,n.reading),n.length?M(this):n.reading||process.nextTick(R,this))),i},A.prototype.removeListener=function(t,e){var i=o.prototype.removeListener.call(this,t,e);return"readable"===t&&process.nextTick(D,this),i},A.prototype.removeAllListeners=function(t){var e=o.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||process.nextTick(D,this),e},A.prototype.resume=function(){var t=this._readableState;return t.flowing||(r("resume"),t.flowing=!t.readableListening,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(N,t,e))}(this,t)),t.paused=!1,this},A.prototype.pause=function(){return r("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(r("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},A.prototype.wrap=function(t){var e=this,i=this._readableState,n=!1;for(var s in t.on("end",function(){if(r("wrapped end"),i.decoder&&!i.ended){var t=i.decoder.end();t&&t.length&&e.push(t)}e.push(null)}),t.on("data",function(s){r("wrapped data"),i.decoder&&(s=i.decoder.write(s)),i.objectMode&&null==s||(i.objectMode||s&&s.length)&&(e.push(s)||(n=!0,t.pause()))}),t)void 0===this[s]&&"function"==typeof t[s]&&(this[s]=function(e){return function(){return t[e].apply(t,arguments)}}(s));for(var o=0;o{"use strict";t.exports=h;var n=i(1552).q,r=n.ERR_METHOD_NOT_IMPLEMENTED,s=n.ERR_MULTIPLE_CALLBACK,o=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=n.ERR_TRANSFORM_WITH_LENGTH_0,l=i(9847);function c(t,e){var i=this._transformState;i.transforming=!1;var n=i.writecb;if(null===n)return this.emit("error",new s);i.writechunk=null,i.writecb=null,null!=e&&this.push(e),n(t);var r=this._readableState;r.reading=!1,(r.needReadable||r.length{"use strict";function n(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,i){var n=t.entry;for(t.entry=null;n;){var r=n.callback;e.pendingcb--,r(void 0),n=n.next}e.corkedRequestsFree.next=t}(e,t)}}var r;t.exports=A,A.WritableState=C;var s,o={deprecate:i(5435)},a=i(6787),l=i(3833).Buffer,c=global.Uint8Array||function(){},h=i(2742),u=i(6187).getHighWaterMark,d=i(1552).q,p=d.ERR_INVALID_ARG_TYPE,f=d.ERR_METHOD_NOT_IMPLEMENTED,m=d.ERR_MULTIPLE_CALLBACK,g=d.ERR_STREAM_CANNOT_PIPE,y=d.ERR_STREAM_DESTROYED,b=d.ERR_STREAM_NULL_VALUES,v=d.ERR_STREAM_WRITE_AFTER_END,_=d.ERR_UNKNOWN_ENCODING,w=h.errorOrDestroy;function x(){}function C(t,e,s){r=r||i(9847),"boolean"!=typeof s&&(s=e instanceof r),this.objectMode=!!(t=t||{}).objectMode,s&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=u(this,t,"writableHighWaterMark",s),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1,this.decodeStrings=!(!1===t.decodeStrings),this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var i=t._writableState,n=i.sync,r=i.writecb;if("function"!=typeof r)throw new m;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(i),e)!function(t,e,i,n,r){--e.pendingcb,i?(process.nextTick(r,n),process.nextTick(L,t,e),t._writableState.errorEmitted=!0,w(t,n)):(r(n),t._writableState.errorEmitted=!0,w(t,n),L(t,e))}(t,i,n,e,r);else{var s=T(i)||t.destroyed;s||i.corked||i.bufferProcessing||!i.bufferedRequest||k(t,i),n?process.nextTick(E,t,i,s,r):E(t,i,s,r)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new n(this)}function A(t){var e=this instanceof(r=r||i(9847));if(!e&&!s.call(A,this))return new A(t);this._writableState=new C(t,this,e),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),a.call(this)}function S(t,e,i,n,r,s,o){e.writelen=n,e.writecb=o,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new y("write")):i?t._writev(r,e.onwrite):t._write(r,s,e.onwrite),e.sync=!1}function E(t,e,i,n){i||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,n(),L(t,e)}function k(t,e){e.bufferProcessing=!0;var i=e.bufferedRequest;if(t._writev&&i&&i.next){var r=new Array(e.bufferedRequestCount),s=e.corkedRequestsFree;s.entry=i;for(var o=0,a=!0;i;)r[o]=i,i.isBuf||(a=!1),i=i.next,o+=1;r.allBuffers=a,S(t,e,!0,e.length,r,"",s.finish),e.pendingcb++,e.lastBufferedRequest=null,s.next?(e.corkedRequestsFree=s.next,s.next=null):e.corkedRequestsFree=new n(e),e.bufferedRequestCount=0}else{for(;i;){var l=i.chunk;if(S(t,e,!1,e.objectMode?1:l.length,l,i.encoding,i.callback),i=i.next,e.bufferedRequestCount--,e.writing)break}null===i&&(e.lastBufferedRequest=null)}e.bufferedRequest=i,e.bufferProcessing=!1}function T(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function M(t,e){t._final(function(i){e.pendingcb--,i&&w(t,i),e.prefinished=!0,t.emit("prefinish"),L(t,e)})}function L(t,e){var i=T(e);if(i&&(function(t,e){e.prefinished||e.finalCalled||("function"!=typeof t._final||e.destroyed?(e.prefinished=!0,t.emit("prefinish")):(e.pendingcb++,e.finalCalled=!0,process.nextTick(M,t,e)))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var n=t._readableState;(!n||n.autoDestroy&&n.endEmitted)&&t.destroy()}return i}i(5457)(A,a),C.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(C.prototype,"buffer",{get:o.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(s=Function.prototype[Symbol.hasInstance],Object.defineProperty(A,Symbol.hasInstance,{value:function(t){return!!s.call(this,t)||this===A&&t&&t._writableState instanceof C}})):s=function(t){return t instanceof this},A.prototype.pipe=function(){w(this,new g)},A.prototype.write=function(t,e,i){var n,r=this._writableState,s=!1,o=!r.objectMode&&(l.isBuffer(n=t)||n instanceof c);return o&&!l.isBuffer(t)&&(t=function(t){return l.from(t)}(t)),"function"==typeof e&&(i=e,e=null),o?e="buffer":e||(e=r.defaultEncoding),"function"!=typeof i&&(i=x),r.ending?function(t,e){var i=new v;w(t,i),process.nextTick(e,i)}(this,i):(o||function(t,e,i,n){var r;return null===i?r=new b:"string"==typeof i||e.objectMode||(r=new p("chunk",["string","Buffer"],i)),!r||(w(t,r),process.nextTick(n,r),!1)}(this,r,t,i))&&(r.pendingcb++,s=function(t,e,i,n,r,s){if(!i){var o=function(t,e,i){return t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=l.from(e,i)),e}(e,n,r);n!==o&&(i=!0,r="buffer",n=o)}var a=e.objectMode?1:n.length;e.length+=a;var c=e.length-1))throw new _(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(A.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(A.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),A.prototype._write=function(t,e,i){i(new f("_write()"))},A.prototype._writev=null,A.prototype.end=function(t,e,i){var n=this._writableState;return"function"==typeof t?(i=t,t=null,e=null):"function"==typeof e&&(i=e,e=null),null!=t&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||function(t,e,i){e.ending=!0,L(t,e),i&&(e.finished?process.nextTick(i):t.once("finish",i)),e.ended=!0,t.writable=!1}(this,n,i),this},Object.defineProperty(A.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(A.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),A.prototype.destroy=h.destroy,A.prototype._undestroy=h.undestroy,A.prototype._destroy=function(t,e){e(t)}},4536:(t,e,i)=>{"use strict";var n;function r(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var s=i(6484),o=Symbol("lastResolve"),a=Symbol("lastReject"),l=Symbol("error"),c=Symbol("ended"),h=Symbol("lastPromise"),u=Symbol("handlePromise"),d=Symbol("stream");function p(t,e){return{value:t,done:e}}function f(t){var e=t[o];if(null!==e){var i=t[d].read();null!==i&&(t[h]=null,t[o]=null,t[a]=null,e(p(i,!1)))}}function m(t){process.nextTick(f,t)}var g=Object.getPrototypeOf(function(){}),y=Object.setPrototypeOf((r(n={get stream(){return this[d]},next:function(){var t=this,e=this[l];if(null!==e)return Promise.reject(e);if(this[c])return Promise.resolve(p(void 0,!0));if(this[d].destroyed)return new Promise(function(e,i){process.nextTick(function(){t[l]?i(t[l]):e(p(void 0,!0))})});var i,n=this[h];if(n)i=new Promise(function(t,e){return function(i,n){t.then(function(){e[c]?i(p(void 0,!0)):e[u](i,n)},n)}}(n,this));else{var r=this[d].read();if(null!==r)return Promise.resolve(p(r,!1));i=new Promise(this[u])}return this[h]=i,i}},Symbol.asyncIterator,function(){return this}),r(n,"return",function(){var t=this;return new Promise(function(e,i){t[d].destroy(null,function(t){t?i(t):e(p(void 0,!0))})})}),n),g);t.exports=function(t){var e,i=Object.create(y,(r(e={},d,{value:t,writable:!0}),r(e,o,{value:null,writable:!0}),r(e,a,{value:null,writable:!0}),r(e,l,{value:null,writable:!0}),r(e,c,{value:t._readableState.endEmitted,writable:!0}),r(e,u,{value:function(t,e){var n=i[d].read();n?(i[h]=null,i[o]=null,i[a]=null,t(p(n,!1))):(i[o]=t,i[a]=e)},writable:!0}),e));return i[h]=null,s(t,function(t){if(t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code){var e=i[a];return null!==e&&(i[h]=null,i[o]=null,i[a]=null,e(t)),void(i[l]=t)}var n=i[o];null!==n&&(i[h]=null,i[o]=null,i[a]=null,n(p(void 0,!0))),i[c]=!0}),t.on("readable",m.bind(null,i)),i}},1062:(t,e,i)=>{"use strict";function n(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,n)}return i}function r(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var s=i(3833).Buffer,o=i(2361).inspect,a=o&&o.custom||"inspect";t.exports=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.head=null,this.tail=null,this.length=0}var e;return(e=[{key:"push",value:function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:"unshift",value:function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}},{key:"shift",value:function(){if(0!==this.length){var t=this.head.data;return this.head=1===this.length?this.tail=null:this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(0===this.length)return"";for(var e=this.head,i=""+e.data;e=e.next;)i+=t+e.data;return i}},{key:"concat",value:function(t){if(0===this.length)return s.alloc(0);for(var e=s.allocUnsafe(t>>>0),i=this.head,n=0;i;)s.prototype.copy.call(i.data,e,n),n+=i.data.length,i=i.next;return e}},{key:"consume",value:function(t,e){var i;return tr.length?r.length:t;if(n+=s===r.length?r:r.slice(0,t),0==(t-=s)){s===r.length?(++i,this.head=e.next?e.next:this.tail=null):(this.head=e,e.data=r.slice(s));break}++i}return this.length-=i,n}},{key:"_getBuffer",value:function(t){var e=s.allocUnsafe(t),i=this.head,n=1;for(i.data.copy(e),t-=i.data.length;i=i.next;){var r=i.data,o=t>r.length?r.length:t;if(r.copy(e,e.length-t,0,o),0==(t-=o)){o===r.length?(++n,this.head=i.next?i.next:this.tail=null):(this.head=i,i.data=r.slice(o));break}++n}return this.length-=n,e}},{key:a,value:function(t,e){return o(this,function(t){for(var e=1;e{"use strict";function e(t,e){n(t,e),i(t)}function i(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function n(t,e){t.emit("error",e)}t.exports={destroy:function(t,r){var s=this;return this._readableState&&this._readableState.destroyed||this._writableState&&this._writableState.destroyed?(r?r(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(n,this,t)):process.nextTick(n,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(t){!r&&t?s._writableState?s._writableState.errorEmitted?process.nextTick(i,s):(s._writableState.errorEmitted=!0,process.nextTick(e,s,t)):process.nextTick(e,s,t):r?(process.nextTick(i,s),r(t)):process.nextTick(i,s)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(t,e){var i=t._readableState,n=t._writableState;i&&i.autoDestroy||n&&n.autoDestroy?t.destroy(e):t.emit("error",e)}}},6484:(t,e,i)=>{"use strict";var n=i(1552).q.ERR_STREAM_PREMATURE_CLOSE;function r(){}t.exports=function t(e,i,s){if("function"==typeof i)return t(e,null,i);i||(i={}),s=function(t){var e=!1;return function(){if(!e){e=!0;for(var i=arguments.length,n=new Array(i),r=0;r{t.exports=function(){throw new Error("Readable.from is not available in the browser")}},5802:(t,e,i)=>{"use strict";var n,r=i(1552).q,s=r.ERR_MISSING_ARGS,o=r.ERR_STREAM_DESTROYED;function a(t){if(t)throw t}function l(t,e,r,s){s=function(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}(s);var a=!1;t.on("close",function(){a=!0}),void 0===n&&(n=i(6484)),n(t,{readable:e,writable:r},function(t){if(t)return s(t);a=!0,s()});var l=!1;return function(e){if(!a&&!l)return l=!0,function(t){return t.setHeader&&"function"==typeof t.abort}(t)?t.abort():"function"==typeof t.destroy?t.destroy():void s(e||new o("pipe"))}}function c(t){t()}function h(t,e){return t.pipe(e)}function u(t){return t.length?"function"!=typeof t[t.length-1]?a:t.pop():a}t.exports=function(){for(var t=arguments.length,e=new Array(t),i=0;i0,function(t){n||(n=t),t&&o.forEach(c),s||(o.forEach(c),r(n))})});return e.reduce(h)}},6187:(t,e,i)=>{"use strict";var n=i(1552).q.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(t,e,i,r){var s=function(t,e,i){return null!=t.highWaterMark?t.highWaterMark:e?t[i]:null}(e,r,i);if(null!=s){if(!isFinite(s)||Math.floor(s)!==s||s<0)throw new n(r?i:"highWaterMark",s);return Math.floor(s)}return t.objectMode?16:16384}}},6787:(t,e,i)=>{t.exports=i(5068).EventEmitter},7612:(t,e,i)=>{(e=t.exports=i(617)).Stream=e,e.Readable=e,e.Writable=i(4374),e.Duplex=i(9847),e.Transform=i(5774),e.PassThrough=i(9591),e.finished=i(6484),e.pipeline=i(5802)},3827:(t,e,i)=>{"use strict";var n=i(3833).Buffer,r=i(5457),s=i(7338),o=new Array(16),a=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],l=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],c=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],h=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],u=[0,1518500249,1859775393,2400959708,2840853838],d=[1352829926,1548603684,1836072691,2053994217,0];function p(){s.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function f(t,e){return t<>>32-e}function m(t,e,i,n,r,s,o,a){return f(t+(e^i^n)+s+o|0,a)+r|0}function g(t,e,i,n,r,s,o,a){return f(t+(e&i|~e&n)+s+o|0,a)+r|0}function y(t,e,i,n,r,s,o,a){return f(t+((e|~i)^n)+s+o|0,a)+r|0}function b(t,e,i,n,r,s,o,a){return f(t+(e&n|i&~n)+s+o|0,a)+r|0}function v(t,e,i,n,r,s,o,a){return f(t+(e^(i|~n))+s+o|0,a)+r|0}r(p,s),p.prototype._update=function(){for(var t=o,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);for(var i=0|this._a,n=0|this._b,r=0|this._c,s=0|this._d,p=0|this._e,_=0|this._a,w=0|this._b,x=0|this._c,C=0|this._d,A=0|this._e,S=0;S<80;S+=1){var E,k;S<16?(E=m(i,n,r,s,p,t[a[S]],u[0],c[S]),k=v(_,w,x,C,A,t[l[S]],d[0],h[S])):S<32?(E=g(i,n,r,s,p,t[a[S]],u[1],c[S]),k=b(_,w,x,C,A,t[l[S]],d[1],h[S])):S<48?(E=y(i,n,r,s,p,t[a[S]],u[2],c[S]),k=y(_,w,x,C,A,t[l[S]],d[2],h[S])):S<64?(E=b(i,n,r,s,p,t[a[S]],u[3],c[S]),k=g(_,w,x,C,A,t[l[S]],d[3],h[S])):(E=v(i,n,r,s,p,t[a[S]],u[4],c[S]),k=m(_,w,x,C,A,t[l[S]],d[4],h[S])),i=p,p=s,s=f(r,10),r=n,n=E,_=A,A=C,C=f(x,10),x=w,w=k}var T=this._b+r+C|0;this._b=this._c+s+A|0,this._c=this._d+p+_|0,this._d=this._e+i+w|0,this._e=this._a+n+x|0,this._a=T},p.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=n.alloc?n.alloc(20):new n(20);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t.writeInt32LE(this._e,16),t},t.exports=p},7425:(t,e,i)=>{"use strict";i.d(e,{X:()=>r});var n=i(9162),r=function(t){function e(e){var i=t.call(this)||this;return i._value=e,i}return(0,n.ZT)(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),e.prototype._subscribe=function(e){var i=t.prototype._subscribe.call(this,e);return!i.closed&&e.next(this._value),i},e.prototype.getValue=function(){var t=this,e=t._value;if(t.hasError)throw t.thrownError;return this._throwIfClosed(),e},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(i(9666).x)},2391:(t,e,i)=>{"use strict";i.d(e,{y:()=>h});var n=i(9643),r=i(6042),s=i(3004),o=i(1879);function a(t){return 0===t.length?o.y:1===t.length?t[0]:function(e){return t.reduce(function(t,e){return e(t)},e)}}var l=i(7296),c=i(7849),h=function(){function t(t){t&&(this._subscribe=t)}return t.prototype.lift=function(e){var i=new t;return i.source=this,i.operator=e,i},t.prototype.subscribe=function(t,e,i){var s,o=(s=t)&&s instanceof n.Lv||function(t){return t&&(0,c.m)(t.next)&&(0,c.m)(t.error)&&(0,c.m)(t.complete)}(s)&&(0,r.Nn)(s)?t:new n.Hp(t,e,i);if(l.v.useDeprecatedSynchronousErrorHandling)this._deprecatedSyncErrorSubscribe(o);else{var a=this.operator,h=this.source;o.add(a?a.call(o,h):h?this._subscribe(o):this._trySubscribe(o))}return o},t.prototype._deprecatedSyncErrorSubscribe=function(t){var e=t;e._syncErrorHack_isSubscribing=!0;var i=this.operator;if(i)t.add(i.call(t,this.source));else try{t.add(this._subscribe(t))}catch(r){e.__syncError=r}for(var n=e;n;){if("__syncError"in n)try{throw n.__syncError}finally{t.unsubscribe()}n=n.destination}e._syncErrorHack_isSubscribing=!1},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},t.prototype.forEach=function(t,e){var i=this;return new(e=u(e))(function(e,n){var r;r=i.subscribe(function(e){try{t(e)}catch(i){n(i),null==r||r.unsubscribe()}},n,e)})},t.prototype._subscribe=function(t){var e;return null===(e=this.source)||void 0===e?void 0:e.subscribe(t)},t.prototype[s.L]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e{"use strict";i.d(e,{t:()=>o});var n=i(9162),r=i(9666),s=i(5170),o=function(t){function e(e,i,n){void 0===e&&(e=1/0),void 0===i&&(i=1/0),void 0===n&&(n=s.l);var r=t.call(this)||this;return r._bufferSize=e,r._windowTime=i,r._timestampProvider=n,r._buffer=[],r._infiniteTimeWindow=!0,r._infiniteTimeWindow=i===1/0,r._bufferSize=Math.max(1,e),r._windowTime=Math.max(1,i),r}return(0,n.ZT)(e,t),e.prototype.next=function(e){var i=this,n=i._buffer,r=i._infiniteTimeWindow,s=i._timestampProvider,o=i._windowTime;i.isStopped||(n.push(e),!r&&n.push(s.now()+o)),this._trimBuffer(),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var e=this._innerSubscribe(t),i=this._infiniteTimeWindow,n=this._buffer.slice(),r=0;r{"use strict";i.d(e,{x:()=>l});var n=i(9162),r=i(2391),s=i(6042),o=(0,i(9951).d)(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),a=i(8764),l=function(t){function e(){var e=t.call(this)||this;return e.closed=!1,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return(0,n.ZT)(e,t),e.prototype.lift=function(t){var e=new c(this,this);return e.operator=t,e},e.prototype._throwIfClosed=function(){if(this.closed)throw new o},e.prototype.next=function(t){var e,i;if(this._throwIfClosed(),!this.isStopped){var r=this.observers.slice();try{for(var s=(0,n.XA)(r),o=s.next();!o.done;o=s.next())o.value.next(t)}catch(a){e={error:a}}finally{try{o&&!o.done&&(i=s.return)&&i.call(s)}finally{if(e)throw e.error}}}},e.prototype.error=function(t){if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;for(var e=this.observers;e.length;)e.shift().error(t)}},e.prototype.complete=function(){if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;for(var t=this.observers;t.length;)t.shift().complete()}},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(e){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},e.prototype._innerSubscribe=function(t){var e=this,i=e.observers;return e.hasError||e.isStopped?s.Lc:(i.push(t),new s.w0(function(){return(0,a.P)(i,t)}))},e.prototype._checkFinalizedStatuses=function(t){var e=this,i=e.isStopped;e.hasError?t.error(e.thrownError):i&&t.complete()},e.prototype.asObservable=function(){var t=new r.y;return t.source=this,t},e.create=function(t,e){return new c(t,e)},e}(r.y),c=function(t){function e(e,i){var n=t.call(this)||this;return n.destination=e,n.source=i,n}return(0,n.ZT)(e,t),e.prototype.next=function(t){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===i||i.call(e,t)},e.prototype.error=function(t){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===i||i.call(e,t)},e.prototype.complete=function(){var t,e;null===(e=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===e||e.call(t)},e.prototype._subscribe=function(t){var e,i;return null!==(i=null===(e=this.source)||void 0===e?void 0:e.subscribe(t))&&void 0!==i?i:s.Lc},e}(l)},9643:(t,e,i)=>{"use strict";i.d(e,{Hp:()=>p,Lv:()=>d});var n=i(9162),r=i(7849),s=i(6042),o=i(7296),a=i(2765),l=i(5397),c=h("C",void 0,void 0);function h(t,e,i){return{kind:t,value:e,error:i}}var u=i(4490),d=function(t){function e(e){var i=t.call(this)||this;return i.isStopped=!1,e?(i.destination=e,(0,s.Nn)(e)&&e.add(i)):i.destination=y,i}return(0,n.ZT)(e,t),e.create=function(t,e,i){return new p(t,e,i)},e.prototype.next=function(t){this.isStopped?g(function(t){return h("N",t,void 0)}(t),this):this._next(t)},e.prototype.error=function(t){this.isStopped?g(h("E",void 0,t),this):(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped?g(c,this):(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(s.w0),p=function(t){function e(e,i,n){var s,a=t.call(this)||this;if((0,r.m)(e))s=e;else if(e){var c;s=e.next,i=e.error,n=e.complete,a&&o.v.useDeprecatedNextContext?(c=Object.create(e)).unsubscribe=function(){return a.unsubscribe()}:c=e,s=null==s?void 0:s.bind(c),i=null==i?void 0:i.bind(c),n=null==n?void 0:n.bind(c)}return a.destination={next:s?f(s,a):l.Z,error:f(null!=i?i:m,a),complete:n?f(n,a):l.Z},a}return(0,n.ZT)(e,t),e}(d);function f(t,e){return function(){for(var i=[],r=0;r{"use strict";i.d(e,{Lc:()=>l,w0:()=>a,Nn:()=>c});var n=i(9162),r=i(7849),s=(0,i(9951).d)(function(t){return function(e){t(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map(function(t,e){return e+1+") "+t.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=e}}),o=i(8764),a=function(){function t(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._teardowns=null}var e;return t.prototype.unsubscribe=function(){var t,e,i,o,a;if(!this.closed){this.closed=!0;var l=this._parentage;if(l)if(this._parentage=null,Array.isArray(l))try{for(var c=(0,n.XA)(l),u=c.next();!u.done;u=c.next())u.value.remove(this)}catch(y){t={error:y}}finally{try{u&&!u.done&&(e=c.return)&&e.call(c)}finally{if(t)throw t.error}}else l.remove(this);var d=this.initialTeardown;if((0,r.m)(d))try{d()}catch(b){a=b instanceof s?b.errors:[b]}var p=this._teardowns;if(p){this._teardowns=null;try{for(var f=(0,n.XA)(p),m=f.next();!m.done;m=f.next()){var g=m.value;try{h(g)}catch(v){a=null!=a?a:[],v instanceof s?a=(0,n.ev)((0,n.ev)([],(0,n.CR)(a)),(0,n.CR)(v.errors)):a.push(v)}}}catch(_){i={error:_}}finally{try{m&&!m.done&&(o=f.return)&&o.call(f)}finally{if(i)throw i.error}}}if(a)throw new s(a)}},t.prototype.add=function(e){var i;if(e&&e!==this)if(this.closed)h(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._teardowns=null!==(i=this._teardowns)&&void 0!==i?i:[]).push(e)}},t.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},t.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},t.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&(0,o.P)(e,t)},t.prototype.remove=function(e){var i=this._teardowns;i&&(0,o.P)(i,e),e instanceof t&&e._removeParent(this)},t.EMPTY=((e=new t).closed=!0,e),t}(),l=a.EMPTY;function c(t){return t instanceof a||t&&"closed"in t&&(0,r.m)(t.remove)&&(0,r.m)(t.add)&&(0,r.m)(t.unsubscribe)}function h(t){(0,r.m)(t)?t():t.unsubscribe()}},7296:(t,e,i)=>{"use strict";i.d(e,{v:()=>n});var n={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},5868:(t,e,i)=>{"use strict";i.d(e,{a:()=>u});var n=i(2391),r=i(2846),s=i(5630),o=i(1879),a=i(8432),l=i(7070),c=i(9211),h=i(4659);function u(){for(var t=[],e=0;e{"use strict";i.d(e,{z:()=>a});var n=i(5813);function r(){return(0,n.J)(1)}var s=i(5622),o=i(7070);function a(){for(var t=[],e=0;e{"use strict";i.d(e,{P:()=>s});var n=i(2391),r=i(5630);function s(t){return new n.y(function(e){(0,r.Xf)(t()).subscribe(e)})}},4951:(t,e,i)=>{"use strict";i.d(e,{E:()=>n});var n=new(i(2391).y)(function(t){return t.complete()})},6891:(t,e,i)=>{"use strict";i.d(e,{D:()=>h});var n=i(2391),r=i(2846),s=i(5630),o=i(7070),a=i(4659),l=i(8432),c=i(9211);function h(){for(var t=[],e=0;e{"use strict";i.d(e,{Dp:()=>w,OO:()=>C,Xf:()=>x});var n=i(9162),r=i(3345),s=i(7849);function o(t){return(0,s.m)(null==t?void 0:t.then)}var a=i(3004),l=i(2391),c=i(6042),h=i(8006),u="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator",d=i(7491);function p(t,e){if(!t)throw new Error("Iterable cannot be null");return new l.y(function(i){var n=new c.w0;return n.add(e.schedule(function(){var r=t[Symbol.asyncIterator]();n.add(e.schedule(function(){var t=this;r.next().then(function(e){e.done?i.complete():(i.next(e.value),t.schedule())})}))})),n})}function f(t){return(0,s.m)(t[a.L])}function m(t){return(0,s.m)(null==t?void 0:t[u])}function g(t){return Symbol.asyncIterator&&(0,s.m)(null==t?void 0:t[Symbol.asyncIterator])}function y(t){return new TypeError("You provided "+(null!==t&&"object"==typeof t?"an invalid object":"'"+t+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function b(t){return(0,n.FC)(this,arguments,function(){var e,i,r;return(0,n.Jh)(this,function(s){switch(s.label){case 0:e=t.getReader(),s.label=1;case 1:s.trys.push([1,,9,10]),s.label=2;case 2:return[4,(0,n.qq)(e.read())];case 3:return i=s.sent(),r=i.value,i.done?[4,(0,n.qq)(void 0)]:[3,5];case 4:return[2,s.sent()];case 5:return[4,(0,n.qq)(r)];case 6:return[4,s.sent()];case 7:return s.sent(),[3,2];case 8:return[3,10];case 9:return e.releaseLock(),[7];case 10:return[2]}})})}function v(t){return(0,s.m)(null==t?void 0:t.getReader)}var _=i(2765);function w(t,e){return e?function(t,e){if(null!=t){if(f(t))return function(t,e){return new l.y(function(i){var n=new c.w0;return n.add(e.schedule(function(){var r=t[a.L]();n.add(r.subscribe({next:function(t){n.add(e.schedule(function(){return i.next(t)}))},error:function(t){n.add(e.schedule(function(){return i.error(t)}))},complete:function(){n.add(e.schedule(function(){return i.complete()}))}}))})),n})}(t,e);if((0,r.z)(t))return(0,h.r)(t,e);if(o(t))return function(t,e){return new l.y(function(i){return e.schedule(function(){return t.then(function(t){i.add(e.schedule(function(){i.next(t),i.add(e.schedule(function(){return i.complete()}))}))},function(t){i.add(e.schedule(function(){return i.error(t)}))})})})}(t,e);if(g(t))return p(t,e);if(m(t))return function(t,e){return new l.y(function(i){var n;return i.add(e.schedule(function(){n=t[u](),(0,d.A)(i,e,function(){var t=n.next(),e=t.value;t.done?i.complete():(i.next(e),this.schedule())})})),function(){return(0,s.m)(null==n?void 0:n.return)&&n.return()}})}(t,e);if(v(t))return function(t,e){return p(b(t),e)}(t,e)}throw y(t)}(t,e):x(t)}function x(t){if(t instanceof l.y)return t;if(null!=t){if(f(t))return c=t,new l.y(function(t){var e=c[a.L]();if((0,s.m)(e.subscribe))return e.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")});if((0,r.z)(t))return C(t);if(o(t))return i=t,new l.y(function(t){i.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,_.h)});if(g(t))return A(t);if(m(t))return e=t,new l.y(function(t){var i,r;try{for(var s=(0,n.XA)(e),o=s.next();!o.done;o=s.next())if(t.next(o.value),t.closed)return}catch(a){i={error:a}}finally{try{o&&!o.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}t.complete()});if(v(t))return A(b(t))}var e,i,c;throw y(t)}function C(t){return new l.y(function(e){for(var i=0;i{"use strict";i.d(e,{h:()=>s});var n=i(8006),r=i(5630);function s(t,e){return e?(0,n.r)(t,e):(0,r.OO)(t)}},5960:(t,e,i)=>{"use strict";i.d(e,{R:()=>p});var n=i(9162),r=i(2391),s=i(7228),o=i(3345),a=i(7849),l=i(8432),c=i(5622),h=["addListener","removeListener"],u=["addEventListener","removeEventListener"],d=["on","off"];function p(t,e,i,m){if((0,a.m)(i)&&(m=i,i=void 0),m)return p(t,e,i).pipe((0,l.Z)(m));var g=(0,n.CR)(function(t){return(0,a.m)(t.addEventListener)&&(0,a.m)(t.removeEventListener)}(t)?u.map(function(n){return function(r){return t[n](e,r,i)}}):function(t){return(0,a.m)(t.addListener)&&(0,a.m)(t.removeListener)}(t)?h.map(f(t,e)):function(t){return(0,a.m)(t.on)&&(0,a.m)(t.off)}(t)?d.map(f(t,e)):[],2),y=g[0],b=g[1];if(!y&&(0,o.z)(t))return(0,s.z)(function(t){return p(t,e,i)})((0,c.h)(t));if(!y)throw new TypeError("Invalid event target");return new r.y(function(t){var e=function(){for(var e=[],i=0;i{"use strict";i.d(e,{T:()=>l});var n=i(5813),r=i(5622),s=i(5630),o=i(4951),a=i(7070);function l(){for(var t=[],e=0;e{"use strict";i.d(e,{of:()=>o});var n=i(5622),r=i(8006),s=i(7070);function o(){for(var t=[],e=0;e{"use strict";i.d(e,{_:()=>s});var n=i(2391),r=i(7849);function s(t,e){var i=(0,r.m)(t)?t:function(){return t},s=function(t){return t.error(i())};return new n.y(e?function(t){return e.schedule(s,0,t)}:s)}},8431:(t,e,i)=>{"use strict";i.d(e,{H:()=>a});var n=i(2391),r=i(2948),s=i(1495),o=i(2841);function a(t,e,i){void 0===t&&(t=0),void 0===i&&(i=r.P);var a=-1;return null!=e&&((0,s.K)(e)?i=e:a=e),new n.y(function(e){var n=(0,o.q)(t)?+t-i.now():t;n<0&&(n=0);var r=0;return i.schedule(function(){e.closed||(e.next(r++),0<=a?this.schedule(void 0,a):e.complete())},n)})}},4659:(t,e,i)=>{"use strict";i.d(e,{Q:()=>r});var n=i(9162),r=function(t){function e(e,i,n,r,s){var o=t.call(this,e)||this;return o.onFinalize=s,o._next=i?function(t){try{i(t)}catch(n){e.error(n)}}:t.prototype._next,o._error=r?function(t){try{r(t)}catch(t){e.error(t)}finally{this.unsubscribe()}}:t.prototype._error,o._complete=n?function(){try{n()}catch(t){e.error(t)}finally{this.unsubscribe()}}:t.prototype._complete,o}return(0,n.ZT)(e,t),e.prototype.unsubscribe=function(){var e,i=this.closed;t.prototype.unsubscribe.call(this),!i&&(null===(e=this.onFinalize)||void 0===e||e.call(this))},e}(i(9643).Lv)},9610:(t,e,i)=>{"use strict";i.d(e,{e:()=>l});var n=i(2948),r=i(3386),s=i(5630),o=i(4659),a=i(8431);function l(t,e){return void 0===e&&(e=n.P),i=function(){return(0,a.H)(t,e)},(0,r.e)(function(t,e){var n=!1,r=null,a=null,l=!1,c=function(){if(null==a||a.unsubscribe(),a=null,n){n=!1;var t=r;r=null,e.next(t)}l&&e.complete()},h=function(){a=null,l&&e.complete()};t.subscribe(new o.Q(e,function(t){n=!0,r=t,a||(0,s.Xf)(i()).subscribe(a=new o.Q(e,c,h))},function(){l=!0,(!n||!a||a.closed)&&e.complete()}))});var i}},1816:(t,e,i)=>{"use strict";i.d(e,{K:()=>o});var n=i(5630),r=i(4659),s=i(3386);function o(t){return(0,s.e)(function(e,i){var s,a=null,l=!1;a=e.subscribe(new r.Q(i,void 0,void 0,function(r){s=(0,n.Xf)(t(r,o(t)(e))),a?(a.unsubscribe(),a=null,s.subscribe(i)):l=!0})),l&&(a.unsubscribe(),a=null,s.subscribe(i))})}},8196:(t,e,i)=>{"use strict";i.d(e,{b:()=>s});var n=i(7228),r=i(7849);function s(t,e){return(0,r.m)(e)?(0,n.z)(t,e,1):(0,n.z)(t,1)}},5057:(t,e,i)=>{"use strict";i.d(e,{b:()=>o});var n=i(2948),r=i(3386),s=i(4659);function o(t,e){return void 0===e&&(e=n.z),(0,r.e)(function(i,n){var r=null,o=null,a=null,l=function(){if(r){r.unsubscribe(),r=null;var t=o;o=null,n.next(t)}};function c(){var i=a+t,n=e.now();n{"use strict";i.d(e,{d:()=>s});var n=i(3386),r=i(4659);function s(t){return(0,n.e)(function(e,i){var n=!1;e.subscribe(new r.Q(i,function(t){n=!0,i.next(t)},function(){n||i.next(t),i.complete()}))})}},6493:(t,e,i)=>{"use strict";i.d(e,{g:()=>u});var n=i(2948),r=i(5613),s=i(9056),o=i(3286),a=i(1096),l=i(7228);function c(t,e){return e?function(i){return(0,r.z)(e.pipe((0,s.q)(1),(0,o.l)()),i.pipe(c(t)))}:(0,l.z)(function(e,i){return t(e,i).pipe((0,s.q)(1),(0,a.h)(e))})}var h=i(8431);function u(t,e){void 0===e&&(e=n.z);var i=(0,h.H)(t,e);return c(function(){return i})}},6424:(t,e,i)=>{"use strict";i.d(e,{x:()=>o});var n=i(1879),r=i(3386),s=i(4659);function o(t,e){return void 0===e&&(e=n.y),t=null!=t?t:a,(0,r.e)(function(i,n){var r,o=!0;i.subscribe(new s.Q(n,function(i){var s=e(i);!o&&t(r,s)||(o=!1,r=s,n.next(i))}))})}function a(t,e){return t===e}},8868:(t,e,i)=>{"use strict";i.d(e,{h:()=>s});var n=i(3386),r=i(4659);function s(t,e){return(0,n.e)(function(i,n){var s=0;i.subscribe(new r.Q(n,function(i){return t.call(e,i,s++)&&n.next(i)}))})}},849:(t,e,i)=>{"use strict";i.d(e,{x:()=>r});var n=i(3386);function r(t){return(0,n.e)(function(e,i){try{e.subscribe(i)}finally{i.add(t)}})}},8606:(t,e,i)=>{"use strict";i.d(e,{P:()=>c});var n=i(7325),r=i(8868),s=i(9056),o=i(4370),a=i(5334),l=i(1879);function c(t,e){var i=arguments.length>=2;return function(c){return c.pipe(t?(0,r.h)(function(e,i){return t(e,i,c)}):l.y,(0,s.q)(1),i?(0,o.d)(e):(0,a.T)(function(){return new n.K}))}}},3286:(t,e,i)=>{"use strict";i.d(e,{l:()=>o});var n=i(3386),r=i(4659),s=i(5397);function o(){return(0,n.e)(function(t,e){t.subscribe(new r.Q(e,s.Z))})}},1681:(t,e,i)=>{"use strict";i.d(e,{U:()=>s});var n=i(3386),r=i(4659);function s(t,e){return(0,n.e)(function(i,n){var s=0;i.subscribe(new r.Q(n,function(i){n.next(t.call(e,i,s++))}))})}},1096:(t,e,i)=>{"use strict";i.d(e,{h:()=>r});var n=i(1681);function r(t){return(0,n.U)(function(){return t})}},5813:(t,e,i)=>{"use strict";i.d(e,{J:()=>s});var n=i(7228),r=i(1879);function s(t){return void 0===t&&(t=1/0),(0,n.z)(r.y,t)}},7228:(t,e,i)=>{"use strict";i.d(e,{z:()=>l});var n=i(1681),r=i(5630),s=i(3386),o=i(4659),a=i(7849);function l(t,e,i){return void 0===i&&(i=1/0),(0,a.m)(e)?l(function(i,s){return(0,n.U)(function(t,n){return e(i,t,s,n)})((0,r.Xf)(t(i,s)))},i):("number"==typeof e&&(i=e),(0,s.e)(function(e,n){return function(t,e,i,n,s,a,l,c){var h=[],u=0,d=0,p=!1,f=function(){!p||h.length||u||e.complete()},m=function(t){u++;var s=!1;(0,r.Xf)(i(t,d++)).subscribe(new o.Q(e,function(t){e.next(t)},function(){s=!0},void 0,function(){if(s)try{for(u--;h.length&&u{"use strict";i.d(e,{Q:()=>s});var n=i(3386),r=i(4659);function s(t,e){return void 0===e&&(e=0),(0,n.e)(function(i,n){i.subscribe(new r.Q(n,function(i){return n.add(t.schedule(function(){return n.next(i)},e))},function(){return n.add(t.schedule(function(){return n.complete()},e))},function(i){return n.add(t.schedule(function(){return n.error(i)},e))}))})}},8193:(t,e,i)=>{"use strict";i.d(e,{R:()=>o});var n=i(3386),r=i(4659);function s(t,e,i,n,s){return function(o,a){var l=i,c=e,h=0;o.subscribe(new r.Q(a,function(e){var i=h++;c=l?t(c,e,i):(l=!0,e),n&&a.next(c)},s&&function(){l&&a.next(c),a.complete()}))}}function o(t,e){return(0,n.e)(s(t,e,arguments.length>=2,!0))}},7839:(t,e,i)=>{"use strict";i.d(e,{B:()=>c});var n=i(9162),r=i(5630),s=i(9056),o=i(9666),a=i(9643),l=i(3386);function c(t){void 0===t&&(t={});var e=t.connector,i=void 0===e?function(){return new o.x}:e,n=t.resetOnError,s=void 0===n||n,c=t.resetOnComplete,u=void 0===c||c,d=t.resetOnRefCountZero,p=void 0===d||d;return function(t){var e=null,n=null,o=null,c=0,d=!1,f=!1,m=function(){null==n||n.unsubscribe(),n=null},g=function(){m(),e=o=null,d=f=!1},y=function(){var t=e;g(),null==t||t.unsubscribe()};return(0,l.e)(function(t,l){c++,f||d||m();var b=o=null!=o?o:i();l.add(function(){0!=--c||f||d||(n=h(y,p))}),b.subscribe(l),e||(e=new a.Hp({next:function(t){return b.next(t)},error:function(t){f=!0,m(),n=h(g,s,t),b.error(t)},complete:function(){d=!0,m(),n=h(g,u),b.complete()}}),(0,r.Dp)(t).subscribe(e))})(t)}}function h(t,e){for(var i=[],r=2;r{"use strict";i.d(e,{T:()=>r});var n=i(8868);function r(t){return(0,n.h)(function(e,i){return t<=i})}},1258:(t,e,i)=>{"use strict";i.d(e,{O:()=>o});var n=i(5613),r=i(7070),s=i(3386);function o(){for(var t=[],e=0;e{"use strict";i.d(e,{w:()=>o});var n=i(5630),r=i(3386),s=i(4659);function o(t,e){return(0,r.e)(function(i,r){var o=null,a=0,l=!1,c=function(){return l&&!o&&r.complete()};i.subscribe(new s.Q(r,function(i){null==o||o.unsubscribe();var l=0,h=a++;(0,n.Xf)(t(i,h)).subscribe(o=new s.Q(r,function(t){return r.next(e?e(i,t,h,l++):t)},function(){o=null,c()}))},function(){l=!0,c()}))})}},9056:(t,e,i)=>{"use strict";i.d(e,{q:()=>o});var n=i(4951),r=i(3386),s=i(4659);function o(t){return t<=0?function(){return n.E}:(0,r.e)(function(e,i){var n=0;e.subscribe(new s.Q(i,function(e){++n<=t&&(i.next(e),t<=n&&i.complete())}))})}},9568:(t,e,i)=>{"use strict";i.d(e,{R:()=>a});var n=i(3386),r=i(4659),s=i(5630),o=i(5397);function a(t){return(0,n.e)(function(e,i){(0,s.Xf)(t).subscribe(new r.Q(i,function(){return i.complete()},o.Z)),!i.closed&&e.subscribe(i)})}},343:(t,e,i)=>{"use strict";i.d(e,{b:()=>a});var n=i(7849),r=i(3386),s=i(4659),o=i(1879);function a(t,e,i){var a=(0,n.m)(t)||e||i?{next:t,error:e,complete:i}:t;return a?(0,r.e)(function(t,e){t.subscribe(new s.Q(e,function(t){var i;null===(i=a.next)||void 0===i||i.call(a,t),e.next(t)},function(){var t;null===(t=a.complete)||void 0===t||t.call(a),e.complete()},function(t){var i;null===(i=a.error)||void 0===i||i.call(a,t),e.error(t)}))}):o.y}},5334:(t,e,i)=>{"use strict";i.d(e,{T:()=>o});var n=i(7325),r=i(3386),s=i(4659);function o(t){return void 0===t&&(t=a),(0,r.e)(function(e,i){var n=!1;e.subscribe(new s.Q(i,function(t){n=!0,i.next(t)},function(){return n?i.complete():i.error(t())}))})}function a(){return new n.K}},7411:(t,e,i)=>{"use strict";i.d(e,{V:()=>u});var n=i(2948),r=i(2841),s=i(3386),o=i(5630),a=i(9951),l=i(7491),c=i(4659),h=(0,a.d)(function(t){return function(e){void 0===e&&(e=null),t(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=e}});function u(t,e){var i=(0,r.q)(t)?{first:t}:"number"==typeof t?{each:t}:t,a=i.first,h=i.each,u=i.with,p=void 0===u?d:u,f=i.scheduler,m=void 0===f?null!=e?e:n.z:f,g=i.meta,y=void 0===g?null:g;if(null==a&&null==h)throw new TypeError("No timeout provided.");return(0,s.e)(function(t,e){var i,n,r=null,s=0,u=function(t){n=(0,l.A)(e,m,function(){i.unsubscribe(),(0,o.Xf)(p({meta:y,lastValue:r,seen:s})).subscribe(e)},t)};i=t.subscribe(new c.Q(e,function(t){null==n||n.unsubscribe(),s++,e.next(r=t),h>0&&u(h)},void 0,void 0,function(){(null==n?void 0:n.closed)||null==n||n.unsubscribe(),r=null})),u(null!=a?"number"==typeof a?a:+a-m.now():h)})}function d(t){throw new h(t)}},5653:(t,e,i)=>{"use strict";i.d(e,{M:()=>h});var n=i(9162),r=i(3386),s=i(4659),o=i(5630),a=i(1879),l=i(5397),c=i(7070);function h(){for(var t=[],e=0;e{"use strict";i.d(e,{r:()=>r});var n=i(2391);function r(t,e){return new n.y(function(i){var n=0;return e.schedule(function(){n===t.length?i.complete():(i.next(t[n++]),i.closed||this.schedule())})})}},6551:(t,e,i)=>{"use strict";i.d(e,{o:()=>a});var n=i(9162),r=function(t){function e(e,i){return t.call(this)||this}return(0,n.ZT)(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(i(6042).w0),s={setInterval:function(){for(var t=[],e=0;e{"use strict";i.d(e,{v:()=>o});var n=i(9162),r=i(5170),s=function(){function t(e,i){void 0===i&&(i=t.now),this.schedulerActionCtor=e,this.now=i}return t.prototype.schedule=function(t,e,i){return void 0===e&&(e=0),new this.schedulerActionCtor(this,t).schedule(i,e)},t.now=r.l.now,t}(),o=function(t){function e(e,i){void 0===i&&(i=s.now);var n=t.call(this,e,i)||this;return n.actions=[],n._active=!1,n._scheduled=void 0,n}return(0,n.ZT)(e,t),e.prototype.flush=function(t){var e=this.actions;if(this._active)e.push(t);else{var i;this._active=!0;do{if(i=t.execute(t.state,t.delay))break}while(t=e.shift());if(this._active=!1,i){for(;t=e.shift();)t.unsubscribe();throw i}}},e}(s)},7911:(t,e,i)=>{"use strict";i.d(e,{E:()=>p});var n,r=i(9162),s=i(6551),o=1,a={};function l(t){return t in a&&(delete a[t],!0)}var c=function(t){var e=o++;return a[e]=!0,n||(n=Promise.resolve()),n.then(function(){return l(e)&&t()}),e},h=function(t){l(t)},u={setImmediate:function(){for(var t=[],e=0;e0?t.prototype.requestAsyncId.call(this,e,i,n):(e.actions.push(this),e._scheduled||(e._scheduled=u.setImmediate(e.flush.bind(e,void 0))))},e.prototype.recycleAsyncId=function(e,i,n){if(void 0===n&&(n=0),null!=n&&n>0||null==n&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,i,n);0===e.actions.length&&(u.clearImmediate(i),e._scheduled=void 0)},e}(s.o),p=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.ZT)(e,t),e.prototype.flush=function(t){this._active=!0,this._scheduled=void 0;var e,i=this.actions,n=-1;t=t||i.shift();var r=i.length;do{if(e=t.execute(t.state,t.delay))break}while(++n{"use strict";i.d(e,{z:()=>r,P:()=>s});var n=i(6551),r=new(i(8106).v)(n.o),s=r},5170:(t,e,i)=>{"use strict";i.d(e,{l:()=>n});var n={now:function(){return(n.delegate||Date).now()},delegate:void 0}},2873:(t,e,i)=>{"use strict";i.d(e,{N:()=>s});var n=i(9162),r=function(t){function e(e,i){var n=t.call(this,e,i)||this;return n.scheduler=e,n.work=i,n}return(0,n.ZT)(e,t),e.prototype.schedule=function(e,i){return void 0===i&&(i=0),i>0?t.prototype.schedule.call(this,e,i):(this.delay=i,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,i){return i>0||this.closed?t.prototype.execute.call(this,e,i):this._execute(e,i)},e.prototype.requestAsyncId=function(e,i,n){return void 0===n&&(n=0),null!=n&&n>0||null==n&&this.delay>0?t.prototype.requestAsyncId.call(this,e,i,n):e.flush(this)},e}(i(6551).o),s=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,n.ZT)(e,t),e}(i(8106).v))(r)},4490:(t,e,i)=>{"use strict";i.d(e,{z:()=>r});var n=i(9162),r={setTimeout:function(){for(var t=[],e=0;e{"use strict";i.d(e,{L:()=>n});var n="function"==typeof Symbol&&Symbol.observable||"@@observable"},7325:(t,e,i)=>{"use strict";i.d(e,{K:()=>n});var n=(0,i(9951).d)(function(t){return function(){t(this),this.name="EmptyError",this.message="no elements in sequence"}})},7070:(t,e,i)=>{"use strict";i.d(e,{jO:()=>o,yG:()=>a,_6:()=>l});var n=i(7849),r=i(1495);function s(t){return t[t.length-1]}function o(t){return(0,n.m)(s(t))?t.pop():void 0}function a(t){return(0,r.K)(s(t))?t.pop():void 0}function l(t,e){return"number"==typeof s(t)?t.pop():e}},2846:(t,e,i)=>{"use strict";i.d(e,{D:()=>a});var n=Array.isArray,r=Object.getPrototypeOf,s=Object.prototype,o=Object.keys;function a(t){if(1===t.length){var e=t[0];if(n(e))return{args:e,keys:null};if((a=e)&&"object"==typeof a&&r(a)===s){var i=o(e);return{args:i.map(function(t){return e[t]}),keys:i}}}var a;return{args:t,keys:null}}},8764:(t,e,i)=>{"use strict";function n(t,e){if(t){var i=t.indexOf(e);0<=i&&t.splice(i,1)}}i.d(e,{P:()=>n})},7491:(t,e,i)=>{"use strict";function n(t,e,i,n){void 0===n&&(n=0);var r=e.schedule(function(){try{i.call(this)}catch(e){t.error(e)}},n);return t.add(r),r}i.d(e,{A:()=>n})},9951:(t,e,i)=>{"use strict";function n(t){var e=t(function(t){Error.call(t),t.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}i.d(e,{d:()=>n})},9211:(t,e,i)=>{"use strict";function n(t,e){return t.reduce(function(t,i,n){return t[i]=e[n],t},{})}i.d(e,{n:()=>n})},1879:(t,e,i)=>{"use strict";function n(t){return t}i.d(e,{y:()=>n})},3345:(t,e,i)=>{"use strict";i.d(e,{z:()=>n});var n=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t}},2841:(t,e,i)=>{"use strict";function n(t){return t instanceof Date&&!isNaN(t)}i.d(e,{q:()=>n})},7849:(t,e,i)=>{"use strict";function n(t){return"function"==typeof t}i.d(e,{m:()=>n})},4776:(t,e,i)=>{"use strict";i.d(e,{b:()=>s});var n=i(2391),r=i(7849);function s(t){return!!t&&(t instanceof n.y||(0,r.m)(t.lift)&&(0,r.m)(t.subscribe))}},1495:(t,e,i)=>{"use strict";i.d(e,{K:()=>r});var n=i(7849);function r(t){return t&&(0,n.m)(t.schedule)}},3386:(t,e,i)=>{"use strict";i.d(e,{A:()=>r,e:()=>s});var n=i(7849);function r(t){return(0,n.m)(null==t?void 0:t.lift)}function s(t){return function(e){if(r(e))return e.lift(function(e){try{return t(e,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}},8432:(t,e,i)=>{"use strict";i.d(e,{Z:()=>o});var n=i(9162),r=i(1681),s=Array.isArray;function o(t){return(0,r.U)(function(e){return function(t,e){return s(e)?t.apply(void 0,(0,n.ev)([],(0,n.CR)(e))):t(e)}(t,e)})}},5397:(t,e,i)=>{"use strict";function n(){}i.d(e,{Z:()=>n})},2765:(t,e,i)=>{"use strict";i.d(e,{h:()=>s});var n=i(7296),r=i(4490);function s(t){r.z.setTimeout(function(){var e=n.v.onUnhandledError;if(!e)throw t;e(t)})}},7015:(t,e,i)=>{var n=i(3833),r=n.Buffer;function s(t,e){for(var i in t)e[i]=t[i]}function o(t,e,i){return r(t,e,i)}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?t.exports=n:(s(n,e),e.Buffer=o),s(r,o),o.from=function(t,e,i){if("number"==typeof t)throw new TypeError("Argument must not be a number");return r(t,e,i)},o.alloc=function(t,e,i){if("number"!=typeof t)throw new TypeError("Argument must be a number");var n=r(t);return void 0!==e?"string"==typeof i?n.fill(e,i):n.fill(e):n.fill(0),n},o.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return r(t)},o.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},5968:(t,e,i)=>{"use strict";var n,r=i(3833),s=r.Buffer,o={};for(n in r)r.hasOwnProperty(n)&&"SlowBuffer"!==n&&"Buffer"!==n&&(o[n]=r[n]);var a=o.Buffer={};for(n in s)s.hasOwnProperty(n)&&"allocUnsafe"!==n&&"allocUnsafeSlow"!==n&&(a[n]=s[n]);if(o.Buffer.prototype=s.prototype,a.from&&a.from!==Uint8Array.from||(a.from=function(t,e,i){if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof t);if(t&&void 0===t.length)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);return s(t,e,i)}),a.alloc||(a.alloc=function(t,e,i){if("number"!=typeof t)throw new TypeError('The "size" argument must be of type number. Received type '+typeof t);if(t<0||t>=2*(1<<30))throw new RangeError('The value "'+t+'" is invalid for option "size"');var n=s(t);return e&&0!==e.length?"string"==typeof i?n.fill(e,i):n.fill(e):n.fill(0),n}),!o.kStringMaxLength)try{o.kStringMaxLength=process.binding("buffer").kStringMaxLength}catch(l){}o.constants||(o.constants={MAX_LENGTH:o.kMaxLength},o.kStringMaxLength&&(o.constants.MAX_STRING_LENGTH=o.kStringMaxLength)),t.exports=o},3747:(t,e,i)=>{var n=i(7015).Buffer;function r(t,e){this._block=n.alloc(t),this._finalSize=e,this._blockSize=t,this._len=0}r.prototype.update=function(t,e){"string"==typeof t&&(t=n.from(t,e=e||"utf8"));for(var i=this._block,r=this._blockSize,s=t.length,o=this._len,a=0;a=this._finalSize&&(this._update(this._block),this._block.fill(0));var i=8*this._len;if(i<=4294967295)this._block.writeUInt32BE(i,this._blockSize-4);else{var n=(4294967295&i)>>>0;this._block.writeUInt32BE((i-n)/4294967296,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var r=this._hash();return t?r.toString(t):r},r.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=r},8687:(t,e,i)=>{var n=t.exports=function(t){t=t.toLowerCase();var e=n[t];if(!e)throw new Error(t+" is not supported (we accept pull requests)");return new e};n.sha=i(4673),n.sha1=i(766),n.sha224=i(3263),n.sha256=i(9201),n.sha384=i(7566),n.sha512=i(9248)},4673:(t,e,i)=>{var n=i(5457),r=i(3747),s=i(7015).Buffer,o=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function l(){this.init(),this._w=a,r.call(this,64,56)}function c(t){return t<<30|t>>>2}function h(t,e,i,n){return 0===t?e&i|~e&n:2===t?e&i|e&n|i&n:e^i^n}n(l,r),l.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},l.prototype._update=function(t){for(var e,i=this._w,n=0|this._a,r=0|this._b,s=0|this._c,a=0|this._d,l=0|this._e,u=0;u<16;++u)i[u]=t.readInt32BE(4*u);for(;u<80;++u)i[u]=i[u-3]^i[u-8]^i[u-14]^i[u-16];for(var d=0;d<80;++d){var p=~~(d/20),f=0|((e=n)<<5|e>>>27)+h(p,r,s,a)+l+i[d]+o[p];l=a,a=s,s=c(r),r=n,n=f}this._a=n+this._a|0,this._b=r+this._b|0,this._c=s+this._c|0,this._d=a+this._d|0,this._e=l+this._e|0},l.prototype._hash=function(){var t=s.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},t.exports=l},766:(t,e,i)=>{var n=i(5457),r=i(3747),s=i(7015).Buffer,o=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function l(){this.init(),this._w=a,r.call(this,64,56)}function c(t){return t<<5|t>>>27}function h(t){return t<<30|t>>>2}function u(t,e,i,n){return 0===t?e&i|~e&n:2===t?e&i|e&n|i&n:e^i^n}n(l,r),l.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},l.prototype._update=function(t){for(var e,i=this._w,n=0|this._a,r=0|this._b,s=0|this._c,a=0|this._d,l=0|this._e,d=0;d<16;++d)i[d]=t.readInt32BE(4*d);for(;d<80;++d)i[d]=(e=i[d-3]^i[d-8]^i[d-14]^i[d-16])<<1|e>>>31;for(var p=0;p<80;++p){var f=~~(p/20),m=c(n)+u(f,r,s,a)+l+i[p]+o[f]|0;l=a,a=s,s=h(r),r=n,n=m}this._a=n+this._a|0,this._b=r+this._b|0,this._c=s+this._c|0,this._d=a+this._d|0,this._e=l+this._e|0},l.prototype._hash=function(){var t=s.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},t.exports=l},3263:(t,e,i)=>{var n=i(5457),r=i(9201),s=i(3747),o=i(7015).Buffer,a=new Array(64);function l(){this.init(),this._w=a,s.call(this,64,56)}n(l,r),l.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},l.prototype._hash=function(){var t=o.allocUnsafe(28);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t},t.exports=l},9201:(t,e,i)=>{var n=i(5457),r=i(3747),s=i(7015).Buffer,o=[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],a=new Array(64);function l(){this.init(),this._w=a,r.call(this,64,56)}function c(t,e,i){return i^t&(e^i)}function h(t,e,i){return t&e|i&(t|e)}function u(t){return(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10)}function d(t){return(t>>>6|t<<26)^(t>>>11|t<<21)^(t>>>25|t<<7)}function p(t){return(t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3}n(l,r),l.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},l.prototype._update=function(t){for(var e,i=this._w,n=0|this._a,r=0|this._b,s=0|this._c,a=0|this._d,l=0|this._e,f=0|this._f,m=0|this._g,g=0|this._h,y=0;y<16;++y)i[y]=t.readInt32BE(4*y);for(;y<64;++y)i[y]=0|(((e=i[y-2])>>>17|e<<15)^(e>>>19|e<<13)^e>>>10)+i[y-7]+p(i[y-15])+i[y-16];for(var b=0;b<64;++b){var v=g+d(l)+c(l,f,m)+o[b]+i[b]|0,_=u(n)+h(n,r,s)|0;g=m,m=f,f=l,l=a+v|0,a=s,s=r,r=n,n=v+_|0}this._a=n+this._a|0,this._b=r+this._b|0,this._c=s+this._c|0,this._d=a+this._d|0,this._e=l+this._e|0,this._f=f+this._f|0,this._g=m+this._g|0,this._h=g+this._h|0},l.prototype._hash=function(){var t=s.allocUnsafe(32);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t.writeInt32BE(this._h,28),t},t.exports=l},7566:(t,e,i)=>{var n=i(5457),r=i(9248),s=i(3747),o=i(7015).Buffer,a=new Array(160);function l(){this.init(),this._w=a,s.call(this,128,112)}n(l,r),l.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},l.prototype._hash=function(){var t=o.allocUnsafe(48);function e(e,i,n){t.writeInt32BE(e,n),t.writeInt32BE(i,n+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),t},t.exports=l},9248:(t,e,i)=>{var n=i(5457),r=i(3747),s=i(7015).Buffer,o=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],a=new Array(160);function l(){this.init(),this._w=a,r.call(this,128,112)}function c(t,e,i){return i^t&(e^i)}function h(t,e,i){return t&e|i&(t|e)}function u(t,e){return(t>>>28|e<<4)^(e>>>2|t<<30)^(e>>>7|t<<25)}function d(t,e){return(t>>>14|e<<18)^(t>>>18|e<<14)^(e>>>9|t<<23)}function p(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^t>>>7}function f(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^(t>>>7|e<<25)}function m(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^t>>>6}function g(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^(t>>>6|e<<26)}function y(t,e){return t>>>0>>0?1:0}n(l,r),l.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},l.prototype._update=function(t){for(var e=this._w,i=0|this._ah,n=0|this._bh,r=0|this._ch,s=0|this._dh,a=0|this._eh,l=0|this._fh,b=0|this._gh,v=0|this._hh,_=0|this._al,w=0|this._bl,x=0|this._cl,C=0|this._dl,A=0|this._el,S=0|this._fl,E=0|this._gl,k=0|this._hl,T=0;T<32;T+=2)e[T]=t.readInt32BE(4*T),e[T+1]=t.readInt32BE(4*T+4);for(;T<160;T+=2){var M=e[T-30],L=e[T-30+1],I=p(M,L),O=f(L,M),D=m(M=e[T-4],L=e[T-4+1]),R=g(L,M),N=e[T-32],P=e[T-32+1],F=O+e[T-14+1]|0,Z=I+e[T-14]+y(F,O)|0;Z=(Z=Z+D+y(F=F+R|0,R)|0)+N+y(F=F+P|0,P)|0,e[T]=Z,e[T+1]=F}for(var B=0;B<160;B+=2){Z=e[B],F=e[B+1];var U=h(i,n,r),q=h(_,w,x),z=u(i,_),H=u(_,i),Y=d(a,A),G=d(A,a),j=o[B],V=o[B+1],Q=c(a,l,b),W=c(A,S,E),J=k+G|0,X=v+Y+y(J,k)|0;X=(X=(X=X+Q+y(J=J+W|0,W)|0)+j+y(J=J+V|0,V)|0)+Z+y(J=J+F|0,F)|0;var K=H+q|0,$=z+U+y(K,H)|0;v=b,k=E,b=l,E=S,l=a,S=A,a=s+X+y(A=C+J|0,C)|0,s=r,C=x,r=n,x=w,n=i,w=_,i=X+$+y(_=J+K|0,J)|0}this._al=this._al+_|0,this._bl=this._bl+w|0,this._cl=this._cl+x|0,this._dl=this._dl+C|0,this._el=this._el+A|0,this._fl=this._fl+S|0,this._gl=this._gl+E|0,this._hl=this._hl+k|0,this._ah=this._ah+i+y(this._al,_)|0,this._bh=this._bh+n+y(this._bl,w)|0,this._ch=this._ch+r+y(this._cl,x)|0,this._dh=this._dh+s+y(this._dl,C)|0,this._eh=this._eh+a+y(this._el,A)|0,this._fh=this._fh+l+y(this._fl,S)|0,this._gh=this._gh+b+y(this._gl,E)|0,this._hh=this._hh+v+y(this._hl,k)|0},l.prototype._hash=function(){var t=s.allocUnsafe(64);function e(e,i,n){t.writeInt32BE(e,n),t.writeInt32BE(i,n+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),e(this._gh,this._gl,48),e(this._hh,this._hl,56),t},t.exports=l},1339:function(t,e,i){!function(e){"use strict";var n={};t.exports?(n.bytesToHex=i(1774).bytesToHex,n.convertString=i(906),t.exports=a):(n.bytesToHex=e.convertHex.bytesToHex,n.convertString=e.convertString,e.sha256=a);var r=[];!function(){function t(t){for(var e=Math.sqrt(t),i=2;i<=e;i++)if(!(t%i))return!1;return!0}function e(t){return 4294967296*(t-(0|t))|0}for(var i=2,n=0;n<64;)t(i)&&(r[n]=e(Math.pow(i,1/3)),n++),i++}();var s=[],o=function(t,e,i){for(var n=t[0],o=t[1],a=t[2],l=t[3],c=t[4],h=t[5],u=t[6],d=t[7],p=0;p<64;p++){if(p<16)s[p]=0|e[i+p];else{var f=s[p-15],m=s[p-2];s[p]=((f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3)+s[p-7]+((m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10)+s[p-16]}var g=n&o^n&a^o&a,y=d+((c<<26|c>>>6)^(c<<21|c>>>11)^(c<<7|c>>>25))+(c&h^~c&u)+r[p]+s[p];d=u,u=h,h=c,c=l+y|0,l=a,a=o,o=n,n=y+(((n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22))+g)|0}t[0]=t[0]+n|0,t[1]=t[1]+o|0,t[2]=t[2]+a|0,t[3]=t[3]+l|0,t[4]=t[4]+c|0,t[5]=t[5]+h|0,t[6]=t[6]+u|0,t[7]=t[7]+d|0};function a(t,e){t.constructor===String&&(t=n.convertString.UTF8.stringToBytes(t));var i=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],r=function(t){for(var e=[],i=0,n=0;i>>5]|=t[i]<<24-n%32;return e}(t),s=8*t.length;r[s>>5]|=128<<24-s%32,r[15+(s+64>>9<<4)]=s;for(var a=0;a>>5]>>>24-i%32&255);return e}(i);return e&&e.asBytes?l:e&&e.asString?n.convertString.bytesToString(l):n.bytesToHex(l)}a.x2=function(t,e){return a(a(t,{asBytes:!0}),e)}}(this)},7562:(t,e,i)=>{t.exports=r;var n=i(5068).EventEmitter;function r(){n.call(this)}i(5457)(r,n),r.Readable=i(617),r.Writable=i(4374),r.Duplex=i(9847),r.Transform=i(5774),r.PassThrough=i(9591),r.finished=i(6484),r.pipeline=i(5802),r.Stream=r,r.prototype.pipe=function(t,e){var i=this;function r(e){t.writable&&!1===t.write(e)&&i.pause&&i.pause()}function s(){i.readable&&i.resume&&i.resume()}i.on("data",r),t.on("drain",s),t._isStdio||e&&!1===e.end||(i.on("end",a),i.on("close",l));var o=!1;function a(){o||(o=!0,t.end())}function l(){o||(o=!0,"function"==typeof t.destroy&&t.destroy())}function c(t){if(h(),0===n.listenerCount(this,"error"))throw t}function h(){i.removeListener("data",r),t.removeListener("drain",s),i.removeListener("end",a),i.removeListener("close",l),i.removeListener("error",c),t.removeListener("error",c),i.removeListener("end",h),i.removeListener("close",h),t.removeListener("close",h)}return i.on("error",c),t.on("error",c),i.on("end",h),i.on("close",h),t.on("close",h),t.emit("pipe",i),t}},4706:(t,e,i)=>{"use strict";var n=i(4160).Buffer,r=n.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function s(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(n.isEncoding===r||!r(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=l,this.end=c,e=4;break;case"utf8":this.fillLast=a,e=4;break;case"base64":this.text=h,this.end=u,e=3;break;default:return this.write=d,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(e)}function o(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function a(t){var e=this.lastTotal-this.lastNeed,i=function(t,e,i){if(128!=(192&e[0]))return t.lastNeed=0,"\ufffd";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"\ufffd";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"\ufffd"}}(this,t);return void 0!==i?i:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function l(t,e){if((t.length-e)%2==0){var i=t.toString("utf16le",e);if(i){var n=i.charCodeAt(i.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],i.slice(0,-1)}return i}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function c(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("utf16le",0,this.lastTotal-this.lastNeed):e}function h(t,e){var i=(t.length-e)%3;return 0===i?t.toString("base64",e):(this.lastNeed=3-i,this.lastTotal=3,1===i?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-i))}function u(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function d(t){return t.toString(this.encoding)}function p(t){return t&&t.length?this.write(t):""}e.s=s,s.prototype.write=function(t){if(0===t.length)return"";var e,i;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";i=this.lastNeed,this.lastNeed=0}else i=0;return i=0?(r>0&&(t.lastNeed=r-1),r):--n=0?(r>0&&(t.lastNeed=r-2),r):--n=0?(r>0&&(2===r?r=0:t.lastNeed=r-3),r):0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=i;var n=t.length-(i-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)},s.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},4160:(t,e,i)=>{var n=i(3833),r=n.Buffer;function s(t,e){for(var i in t)e[i]=t[i]}function o(t,e,i){return r(t,e,i)}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?t.exports=n:(s(n,e),e.Buffer=o),o.prototype=Object.create(r.prototype),s(r,o),o.from=function(t,e,i){if("number"==typeof t)throw new TypeError("Argument must not be a number");return r(t,e,i)},o.alloc=function(t,e,i){if("number"!=typeof t)throw new TypeError("Argument must be a number");var n=r(t);return void 0!==e?"string"==typeof i?n.fill(e,i):n.fill(e):n.fill(0),n},o.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return r(t)},o.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},115:(t,e,i)=>{var n=i(5370);e.encode=n.encode,e.decode=n.decode},5370:(t,e)=>{"use strict";var i=[255,255,26,27,28,29,30,31,255,255,255,255,255,255,255,255,255,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,255,255,255,255,255,255,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,255,255,255,255,255];e.encode=function(t){Buffer.isBuffer(t)||(t=new Buffer(t));for(var e,i,n=0,r=0,s=0,o=0,a=new Buffer(8*(e=t,i=Math.floor(e.length/5),e.length%5==0?i:i+1));n3?(o=(o=l&255>>s)<<(s=(s+5)%8)|(n+1>8-s,n++):(o=l>>8-(s+5)&31,0==(s=(s+5)%8)&&n++),a[r]="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567".charCodeAt(o),r++}for(n=r;n>>(n=(n+5)%8),s++,e=255&r<<8-n)}return o.slice(0,s)}},5435:t=>{function e(t){try{if(!global.localStorage)return!1}catch(i){return!1}var e=global.localStorage[t];return null!=e&&"true"===String(e).toLowerCase()}t.exports=function(t,i){if(e("noDeprecation"))return t;var n=!1;return function(){if(!n){if(e("throwDeprecation"))throw new Error(i);e("traceDeprecation")?console.trace(i):console.warn(i),n=!0}return t.apply(this,arguments)}}},9939:(t,e,i)=>{"use strict";i.d(e,{uq:()=>n,qe:()=>r,Xj:()=>s,gj:()=>o,Ql:()=>a,yA:()=>l,iK:()=>c,j5:()=>h,XQ:()=>u,BI:()=>d,UO:()=>p,RA:()=>f,qt:()=>m,cd:()=>g,Un:()=>y,ei:()=>b,Q2:()=>v,hc:()=>_,sX:()=>w,HI:()=>x,ab:()=>C,W2:()=>A,AE:()=>S,qH:()=>E,GL:()=>k,zj:()=>T,rR:()=>M,as:()=>L,kL:()=>I,Vb:()=>O,FA:()=>D,nL:()=>R,bJ:()=>N,q9:()=>P,dP:()=>F,zm:()=>Z,l3:()=>B,PP:()=>U,IR:()=>q,RE:()=>z,LW:()=>H,CR:()=>Y,y3:()=>G,bH:()=>j,o_:()=>V,gM:()=>Q,eW:()=>W,yL:()=>J,tk:()=>X,G0:()=>K,or:()=>$,zH:()=>tt,IZ:()=>et,ob:()=>it,np:()=>nt,UA:()=>rt,vI:()=>st,z6:()=>ot,od:()=>at,Nn:()=>lt,D8:()=>ct,LT:()=>ht,ER:()=>ut,N9:()=>dt,RS:()=>pt,rF:()=>ft,yw:()=>mt,xt:()=>gt,pu:()=>yt,p$:()=>bt,Ar:()=>vt,bm:()=>_t,lO:()=>wt,iG:()=>xt,k:()=>Ct,nb:()=>At,e8:()=>St,x$:()=>Et,IG:()=>kt,oP:()=>Tt,qs:()=>Mt,KK:()=>Lt,Is:()=>It,nz:()=>Ot,_O:()=>Dt,H1:()=>Rt,cU:()=>Nt,nB:()=>Pt,uj:()=>Ft,Zt:()=>Zt});const n="RESET_CL_STORE",r="UPDATE_API_CALL_STATUS_CL",s="SET_CHILD_NODE_SETTINGS_CL",o="FETCH_INFO_CL_CL",a="SET_INFO_CL",l="FETCH_FEES_CL",c="SET_FEES_CL",h="FETCH_FEE_RATES_CL",u="SET_FEE_RATES_CL",d="FETCH_BALANCE_CL",p="SET_BALANCE_CL",f="FETCH_LOCAL_REMOTE_BALANCE_CL",m="SET_LOCAL_REMOTE_BALANCE_CL",g="GET_NEW_ADDRESS_CL",y="SET_NEW_ADDRESS_CL",b="FETCH_UTXOS_CL",v="SET_UTXOS_CL",_="FETCH_PEERS_CL",w="SET_PEERS_CL",x="SAVE_NEW_PEER_CL",C="NEWLY_ADDED_PEER_CL",A="ADD_PEER_CL",S="DETACH_PEER_CL",E="REMOVE_PEER_CL",k="FETCH_CHANNELS_CL",T="SET_CHANNELS_CL",M="UPDATE_CHANNELS_CL",L="SAVE_NEW_CHANNEL_CL",I="CLOSE_CHANNEL_CL",O="REMOVE_CHANNEL_CL",D="FETCH_PAYMENTS_CL",R="SET_PAYMENTS_CL",N="DECODE_PAYMENT_CL",P="SET_DECODED_PAYMENT_CL",F="SEND_PAYMENT_CL",Z="SEND_PAYMENT_STATUS_CL",B="GET_QUERY_ROUTES_CL",U="SET_QUERY_ROUTES_CL",q="PEER_LOOKUP_CL",z="CHANNEL_LOOKUP_CL",H="INVOICE_LOOKUP_CL",Y="SET_LOOKUP_CL",G="GET_FORWARDING_HISTORY_CL",j="SET_FORWARDING_HISTORY_CL",V="GET_FAILED_FORWARDING_HISTORY_CL",Q="SET_FAILED_FORWARDING_HISTORY_CL",W="FETCH_INVOICES_CL",J="SET_INVOICES_CL",X="SAVE_NEW_INVOICE_CL",K="ADD_INVOICE_CL",$="UPDATE_INVOICE_CL",tt="DELETE_EXPIRED_INVOICE_CL",et="SET_CHANNEL_TRANSACTION_CL",it="SET_CHANNEL_TRANSACTION_RES_CL";class nt{constructor(t){this.payload=t,this.type=r}}class rt{constructor(t){this.payload=t,this.type=n}}class st{constructor(t){this.payload=t,this.type=s}}class ot{constructor(t){this.payload=t,this.type=o}}class at{constructor(){this.type=l}}class lt{constructor(t){this.payload=t,this.type=h}}class ct{constructor(){this.type=d}}class ht{constructor(){this.type=f}}class ut{constructor(t){this.payload=t,this.type=g}}class dt{constructor(){this.type=_}}class pt{constructor(t){this.payload=t,this.type=w}}class ft{constructor(t){this.payload=t,this.type=x}}class mt{constructor(t){this.payload=t,this.type=S}}class gt{constructor(){this.type=D}}class yt{constructor(t){this.payload=t,this.type=N}}class bt{constructor(t){this.payload=t,this.type=P}}class vt{constructor(t){this.payload=t,this.type=F}}class _t{constructor(t){this.payload=t,this.type=B}}class wt{constructor(t){this.payload=t,this.type=U}}class xt{constructor(){this.type=k}}class Ct{constructor(t){this.payload=t,this.type=M}}class At{constructor(t){this.payload=t,this.type=L}}class St{constructor(t){this.payload=t,this.type=I}}class Et{constructor(t){this.payload=t,this.type=q}}class kt{constructor(t){this.payload=t,this.type=z}}class Tt{constructor(t){this.payload=t,this.type=H}}class Mt{constructor(t){this.payload=t,this.type=Y}}class Lt{constructor(t){this.payload=t,this.type=G}}class It{constructor(){this.type=V}}class Ot{constructor(t){this.payload=t,this.type=Q}}class Dt{constructor(t){this.payload=t,this.type=W}}class Rt{constructor(t){this.payload=t,this.type=X}}class Nt{constructor(t){this.payload=t,this.type=$}}class Pt{constructor(t){this.payload=t,this.type=tt}}class Ft{constructor(t){this.payload=t,this.type=et}}class Zt{constructor(){this.type=b}}},8640:(t,e,i)=>{"use strict";i.d(e,{s:()=>k});var n=i(5573),r=i(9666),s=i(2041),o=i(2391),a=i(6891),l=i(5653),c=i(7228),h=i(9568),u=i(1681),d=i(1816),p=i(5963),f=i(2427),m=i(3793),g=i(9421),y=i(3929),b=i(9939),v=i(1572),_=i(9063),w=i(964),x=i(3191),C=i(1084),A=i(3869),S=i(6853),E=i(1511);let k=(()=>{class t{constructor(t,e,i,f,v,_,w,x){this.actions=t,this.httpClient=e,this.store=i,this.sessionService=f,this.commonService=v,this.logger=_,this.router=w,this.location=x,this.CHILD_API_URL=p.T+"/cl",this.flgInitialized=!1,this.unSubs=[new r.x,new r.x],this.infoFetchCL=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(b.gj),(0,l.M)(this.store.select("root")),(0,c.z)(([t,e])=>(this.flgInitialized=!1,this.store.dispatch(new b.np({action:"FetchInfo",status:g.Bn.INITIATED})),this.store.dispatch(new y.Fk(g.m6.GET_NODE_INFO)),this.httpClient.get(this.CHILD_API_URL+p.N.GETINFO_API).pipe((0,h.R)(this.actions.pipe((0,n.l4)(y.RP))),(0,u.U)(e=>(this.logger.info(e),e.chains&&e.chains.length&&e.chains[0]&&"object"==typeof e.chains[0]&&e.chains[0].hasOwnProperty("chain")&&e.chains[0].chain.toLowerCase().indexOf("bitcoin")<0?(this.store.dispatch(new b.np({action:"FetchInfo",status:g.Bn.COMPLETED})),this.store.dispatch(new y.Iv(g.m6.GET_NODE_INFO)),this.store.dispatch(new y.Ac),this.store.dispatch(new y.wu({data:{type:g.n_.ERROR,alertTitle:"Shitcoin Found",titleMessage:"Sorry Not Sorry, RTL is Bitcoin Only!"}})),{type:y.Nv}):(this.initializeRemainingData(e,t.payload.loadPage),this.store.dispatch(new b.np({action:"FetchInfo",status:g.Bn.COMPLETED})),this.store.dispatch(new y.Iv(g.m6.GET_NODE_INFO)),{type:b.Ql,payload:e||{}}))),(0,d.K)(t=>{const e=this.commonService.extractErrorCode(t),i="ETIMEDOUT"===e?"Unable to Connect to C-Lightning Server.":this.commonService.extractErrorMessage(t);return this.router.navigate(["/error"],{state:{errorCode:e,errorMessage:i}}),this.handleErrorWithoutAlert("FetchInfo",g.m6.GET_NODE_INFO,"Fetching Node Info Failed.",{status:e,error:i}),(0,s.of)({type:y.Zn})})))))),this.fetchFeesCL=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(b.yA),(0,c.z)(t=>(this.store.dispatch(new b.np({action:"FetchFees",status:g.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+p.N.FEES_API))),(0,u.U)(t=>(this.logger.info(t),this.store.dispatch(new b.np({action:"FetchFees",status:g.Bn.COMPLETED})),{type:b.iK,payload:t||{}})),(0,d.K)(t=>(this.handleErrorWithoutAlert("FetchFees",g.m6.NO_SPINNER,"Fetching Fees Failed.",t),(0,s.of)({type:y.Zn}))))),this.fetchFeeRatesCL=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(b.j5),(0,c.z)(t=>(this.store.dispatch(new b.np({action:"FetchFeeRates"+t.payload,status:g.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+p.N.NETWORK_API+"/feeRates/"+t.payload).pipe((0,u.U)(e=>(this.logger.info(e),this.store.dispatch(new b.np({action:"FetchFeeRates"+t.payload,status:g.Bn.COMPLETED})),{type:b.XQ,payload:e||{}})),(0,d.K)(e=>(this.handleErrorWithoutAlert("FetchFeeRates"+t.payload,g.m6.NO_SPINNER,"Fetching Fee Rates Failed.",e),(0,s.of)({type:y.Zn})))))))),this.fetchBalanceCL=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(b.BI),(0,c.z)(t=>(this.store.dispatch(new b.np({action:"FetchBalance",status:g.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+p.N.BALANCE_API))),(0,u.U)(t=>(this.logger.info(t),this.store.dispatch(new b.np({action:"FetchBalance",status:g.Bn.COMPLETED})),{type:b.UO,payload:t||{}})),(0,d.K)(t=>(this.handleErrorWithoutAlert("FetchBalance",g.m6.NO_SPINNER,"Fetching Balances Failed.",t),(0,s.of)({type:y.Zn}))))),this.fetchLocalRemoteBalanceCL=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(b.RA),(0,c.z)(t=>(this.store.dispatch(new b.np({action:"FetchLocalRemoteBalance",status:g.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+p.N.CHANNELS_API+"/localremotebalance"))),(0,u.U)(t=>(this.logger.info(t),this.store.dispatch(new b.np({action:"FetchLocalRemoteBalance",status:g.Bn.COMPLETED})),{type:b.qt,payload:t||{}})),(0,d.K)(t=>(this.handleErrorWithoutAlert("FetchLocalRemoteBalance",g.m6.NO_SPINNER,"Fetching Balances Failed.",t),(0,s.of)({type:y.Zn}))))),this.getNewAddressCL=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(b.cd),(0,c.z)(t=>(this.store.dispatch(new y.Fk(g.m6.GENERATE_NEW_ADDRESS)),this.httpClient.get(this.CHILD_API_URL+p.N.ON_CHAIN_API+"?type="+t.payload.addressCode).pipe((0,u.U)(t=>(this.logger.info(t),this.store.dispatch(new y.Iv(g.m6.GENERATE_NEW_ADDRESS)),{type:b.Un,payload:t&&t.address?t.address:{}})),(0,d.K)(e=>(this.handleErrorWithAlert("GenerateNewAddress",g.m6.GENERATE_NEW_ADDRESS,"Generate New Address Failed",this.CHILD_API_URL+p.N.ON_CHAIN_API+"?type="+t.payload.addressId,e),(0,s.of)({type:y.Zn})))))))),this.setNewAddressCL=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(b.Un),(0,u.U)(t=>(this.logger.info(t.payload),t.payload))),{dispatch:!1}),this.peersFetchCL=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(b.hc),(0,c.z)(t=>(this.store.dispatch(new b.np({action:"FetchPeers",status:g.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+p.N.PEERS_API).pipe((0,u.U)(t=>(this.logger.info(t),this.store.dispatch(new b.np({action:"FetchPeers",status:g.Bn.COMPLETED})),{type:b.sX,payload:t||[]})),(0,d.K)(t=>(this.handleErrorWithoutAlert("FetchPeers",g.m6.NO_SPINNER,"Fetching Peers Failed.",t),(0,s.of)({type:y.Zn})))))))),this.saveNewPeerCL=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(b.HI),(0,l.M)(this.store.select("cl")),(0,c.z)(([t,e])=>(this.store.dispatch(new y.Fk(g.m6.CONNECT_PEER)),this.store.dispatch(new b.np({action:"SaveNewPeer",status:g.Bn.INITIATED})),this.httpClient.post(this.CHILD_API_URL+p.N.PEERS_API,{id:t.payload.id}).pipe((0,u.U)(e=>(this.logger.info(e),this.store.dispatch(new b.np({action:"SaveNewPeer",status:g.Bn.COMPLETED})),this.store.dispatch(new y.Iv(g.m6.CONNECT_PEER)),this.store.dispatch(new b.RS(e&&e.length>0?e:[])),{type:b.ab,payload:{peer:e.find(e=>0===t.payload.id.indexOf(e.id))}})),(0,d.K)(t=>(this.handleErrorWithoutAlert("SaveNewPeer",g.m6.CONNECT_PEER,"Peer Connection Failed.",t),(0,s.of)({type:y.Zn})))))))),this.detachPeerCL=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(b.AE),(0,c.z)(t=>(this.store.dispatch(new y.Fk(g.m6.DISCONNECT_PEER)),this.httpClient.delete(this.CHILD_API_URL+p.N.PEERS_API+"/"+t.payload.id+"?force="+t.payload.force).pipe((0,u.U)(e=>(this.logger.info(e),this.store.dispatch(new y.Iv(g.m6.DISCONNECT_PEER)),this.store.dispatch(new y.Lw("Peer Disconnected Successfully!")),{type:b.qH,payload:{id:t.payload.id}})),(0,d.K)(e=>(this.handleErrorWithAlert("PeerDisconnect",g.m6.DISCONNECT_PEER,"Unable to Detach Peer. Try again later.",this.CHILD_API_URL+p.N.PEERS_API+"/"+t.payload.id,e),(0,s.of)({type:y.Zn})))))))),this.channelsFetchCL=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(b.GL),(0,c.z)(t=>(this.store.dispatch(new b.np({action:"FetchChannels",status:g.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+p.N.CHANNELS_API+"/listChannels"))),(0,u.U)(t=>(this.logger.info(t),this.store.dispatch(new b.np({action:"FetchChannels",status:g.Bn.COMPLETED})),this.store.dispatch(new b.KK({status:"settled"})),{type:b.zj,payload:t&&t.length>0?t:[]})),(0,d.K)(t=>(this.handleErrorWithoutAlert("FetchChannels",g.m6.NO_SPINNER,"Fetching Channels Failed.",t),(0,s.of)({type:y.Zn}))))),this.openNewChannelCL=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(b.as),(0,c.z)(t=>{this.store.dispatch(new y.Fk(g.m6.OPEN_CHANNEL)),this.store.dispatch(new b.np({action:"SaveNewChannel",status:g.Bn.INITIATED}));const e={id:t.payload.peerId,satoshis:t.payload.satoshis,feeRate:t.payload.feeRate,announce:t.payload.announce,minconf:t.payload.minconf?t.payload.minconf:null};return t.payload.utxos&&(e.utxos=t.payload.utxos),this.httpClient.post(this.CHILD_API_URL+p.N.CHANNELS_API,e).pipe((0,u.U)(t=>(this.logger.info(t),this.store.dispatch(new b.np({action:"SaveNewChannel",status:g.Bn.COMPLETED})),this.store.dispatch(new y.Iv(g.m6.OPEN_CHANNEL)),this.store.dispatch(new y.Lw("Channel Added Successfully!")),this.store.dispatch(new b.D8),this.store.dispatch(new b.Zt),{type:b.GL})),(0,d.K)(t=>(this.handleErrorWithoutAlert("SaveNewChannel",g.m6.OPEN_CHANNEL,"Opening Channel Failed.",t),(0,s.of)({type:y.Zn}))))}))),this.updateChannelCL=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(b.rR),(0,c.z)(t=>(this.store.dispatch(new y.Fk(g.m6.UPDATE_CHAN_POLICY)),this.httpClient.post(this.CHILD_API_URL+p.N.CHANNELS_API+"/setChannelFee",{id:t.payload.channelId,base:t.payload.baseFeeMsat,ppm:t.payload.feeRate}).pipe((0,u.U)(e=>(this.logger.info(e),this.store.dispatch(new y.Iv(g.m6.UPDATE_CHAN_POLICY)),this.store.dispatch(new y.Lw("all"===t.payload.channelId?{message:"All Channels Updated Successfully. Fee policy updates may take some time to reflect on the channel.",duration:5e3}:{message:"Channel Updated Successfully. Fee policy updates may take some time to reflect on the channel.",duration:5e3})),{type:b.GL})),(0,d.K)(t=>(this.handleErrorWithAlert("UpdateChannel",g.m6.UPDATE_CHAN_POLICY,"Update Channel Failed",this.CHILD_API_URL+p.N.CHANNELS_API,t),(0,s.of)({type:y.Zn})))))))),this.closeChannelCL=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(b.kL),(0,c.z)(t=>(this.store.dispatch(new y.Fk(t.payload.force?g.m6.FORCE_CLOSE_CHANNEL:g.m6.CLOSE_CHANNEL)),this.httpClient.delete(this.CHILD_API_URL+p.N.CHANNELS_API+"/"+t.payload.channelId+(t.payload.force?"?force="+t.payload.force:"")).pipe((0,u.U)(e=>(this.logger.info(e),this.store.dispatch(new y.Iv(t.payload.force?g.m6.FORCE_CLOSE_CHANNEL:g.m6.CLOSE_CHANNEL)),this.store.dispatch(new b.iG),this.store.dispatch(new y.Lw("Channel Closed Successfully!")),{type:b.Vb,payload:{channelId:t.payload.channelId}})),(0,d.K)(e=>(this.handleErrorWithAlert("CloseChannel",t.payload.force?g.m6.FORCE_CLOSE_CHANNEL:g.m6.CLOSE_CHANNEL,"Unable to Close Channel. Try again later.",this.CHILD_API_URL+p.N.CHANNELS_API,e),(0,s.of)({type:y.Zn})))))))),this.paymentsFetchCL=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(b.FA),(0,c.z)(t=>(this.store.dispatch(new b.np({action:"FetchPayments",status:g.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+p.N.PAYMENTS_API))),(0,u.U)(t=>(this.logger.info(t),this.store.dispatch(new b.np({action:"FetchPayments",status:g.Bn.COMPLETED})),{type:b.nL,payload:t||[]})),(0,d.K)(t=>(this.handleErrorWithoutAlert("FetchPayments",g.m6.NO_SPINNER,"Fetching Payments Failed.",t),(0,s.of)({type:y.Zn}))))),this.decodePaymentCL=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(b.bJ),(0,c.z)(t=>(this.store.dispatch(new y.Fk(g.m6.DECODE_PAYMENT)),this.store.dispatch(new b.np({action:"DecodePayment",status:g.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+p.N.PAYMENTS_API+"/"+t.payload.routeParam).pipe((0,u.U)(t=>(this.logger.info(t),this.store.dispatch(new b.np({action:"DecodePayment",status:g.Bn.COMPLETED})),this.store.dispatch(new y.Iv(g.m6.DECODE_PAYMENT)),{type:b.q9,payload:t||{}})),(0,d.K)(e=>(t.payload.fromDialog?this.handleErrorWithoutAlert("DecodePayment",g.m6.DECODE_PAYMENT,"Decode Payment Failed.",e):this.handleErrorWithAlert("DecodePayment",g.m6.DECODE_PAYMENT,"Decode Payment Failed",this.CHILD_API_URL+p.N.PAYMENTS_API+"/"+t.payload,e),(0,s.of)({type:y.Zn})))))))),this.setDecodedPaymentCL=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(b.q9),(0,u.U)(t=>(this.logger.info(t.payload),t.payload))),{dispatch:!1}),this.sendPaymentCL=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(b.dP),(0,l.M)(this.store.select("root")),(0,c.z)(([t,e])=>(this.store.dispatch(new y.Fk(t.payload.uiMessage)),this.store.dispatch(new b.np({action:"SendPayment",status:g.Bn.INITIATED})),this.httpClient.post(t.payload.pubkey&&""!==t.payload.pubkey?this.CHILD_API_URL+p.N.PAYMENTS_API+"/keysend":this.CHILD_API_URL+p.N.PAYMENTS_API+"/invoice",t.payload).pipe((0,u.U)(e=>(this.logger.info(e),this.store.dispatch(new y.Iv(t.payload.uiMessage)),this.store.dispatch(new b.np({action:"SendPayment",status:g.Bn.COMPLETED})),this.store.dispatch(new y.Lw("Payment Sent Successfully!")),this.store.dispatch(new b.p$({})),setTimeout(()=>{this.store.dispatch(new b.iG),this.store.dispatch(new b.D8),this.store.dispatch(new b.xt)},1e3),{type:b.zm,payload:e})),(0,d.K)(e=>(this.logger.error("Error: "+JSON.stringify(e)),t.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",t.payload.uiMessage,"Send Payment Failed.",e):this.handleErrorWithAlert("SendPayment",t.payload.uiMessage,"Send Payment Failed",this.CHILD_API_URL+p.N.PAYMENTS_API,e),(0,s.of)({type:y.Zn})))))))),this.queryRoutesFetchCL=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(b.l3),(0,c.z)(t=>(this.store.dispatch(new b.np({action:"GetQueryRoutes",status:g.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+p.N.NETWORK_API+"/getRoute/"+t.payload.destPubkey+"/"+t.payload.amount).pipe((0,u.U)(t=>(this.logger.info(t),this.store.dispatch(new b.np({action:"GetQueryRoutes",status:g.Bn.COMPLETED})),{type:b.PP,payload:t})),(0,d.K)(e=>(this.store.dispatch(new b.lO({routes:[]})),this.handleErrorWithAlert("GetQueryRoutes",g.m6.NO_SPINNER,"Get Query Routes Failed",this.CHILD_API_URL+p.N.NETWORK_API+"/getRoute/"+t.payload.destPubkey+"/"+t.payload.amount,e),(0,s.of)({type:y.Zn})))))))),this.setQueryRoutesCL=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(b.PP),(0,u.U)(t=>t.payload)),{dispatch:!1}),this.peerLookupCL=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(b.IR),(0,c.z)(t=>(this.store.dispatch(new y.Fk(g.m6.SEARCHING_NODE)),this.store.dispatch(new b.np({action:"Lookup",status:g.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+p.N.NETWORK_API+"/listNode/"+t.payload).pipe((0,u.U)(t=>(this.logger.info(t),this.store.dispatch(new b.np({action:"Lookup",status:g.Bn.COMPLETED})),this.store.dispatch(new y.Iv(g.m6.SEARCHING_NODE)),{type:b.CR,payload:t})),(0,d.K)(e=>(this.handleErrorWithAlert("Lookup",g.m6.SEARCHING_NODE,"Peer Lookup Failed",this.CHILD_API_URL+p.N.NETWORK_API+"/listNode/"+t.payload,e),(0,s.of)({type:y.Zn})))))))),this.channelLookupCL=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(b.RE),(0,c.z)(t=>(this.store.dispatch(new y.Fk(t.payload.uiMessage)),this.store.dispatch(new b.np({action:"Lookup",status:g.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+p.N.NETWORK_API+"/listChannel/"+t.payload.shortChannelID).pipe((0,u.U)(e=>(this.logger.info(e),this.store.dispatch(new b.np({action:"Lookup",status:g.Bn.COMPLETED})),this.store.dispatch(new y.Iv(t.payload.uiMessage)),{type:b.CR,payload:e})),(0,d.K)(e=>(t.payload.showError?this.handleErrorWithAlert("Lookup",t.payload.uiMessage,"Channel Lookup Failed",this.CHILD_API_URL+p.N.NETWORK_API+"/listChannel/"+t.payload.shortChannelID,e):this.store.dispatch(new y.Iv(t.payload.uiMessage)),this.store.dispatch(new b.qs([])),(0,s.of)({type:y.Zn})))))))),this.invoiceLookupCL=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(b.LW),(0,c.z)(t=>(this.store.dispatch(new y.Fk(g.m6.SEARCHING_INVOICE)),this.store.dispatch(new b.np({action:"Lookup",status:g.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+p.N.INVOICES_API+"?label="+t.payload).pipe((0,u.U)(t=>(this.logger.info(t),this.store.dispatch(new b.np({action:"Lookup",status:g.Bn.COMPLETED})),this.store.dispatch(new y.Iv(g.m6.SEARCHING_INVOICE)),t.invoices&&t.invoices.length&&t.invoices.length>0&&this.store.dispatch(new b.cU(t.invoices[0])),{type:b.CR,payload:t.invoices&&t.invoices.length&&t.invoices.length>0?t.invoices[0]:t})),(0,d.K)(t=>(this.handleErrorWithoutAlert("Lookup",g.m6.SEARCHING_INVOICE,"Invoice Lookup Failed",t),this.store.dispatch(new y.Lw({message:"Invoice Refresh Failed.",type:"ERROR"})),(0,s.of)({type:y.Zn})))))))),this.setLookupCL=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(b.CR),(0,u.U)(t=>(this.logger.info(t.payload),t.payload))),{dispatch:!1}),this.fetchForwardingHistoryCL=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(b.y3),(0,l.M)(this.store.select("cl")),(0,c.z)(([t,e])=>(this.store.dispatch(new b.np({action:"GetForwardingHistory",status:g.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+p.N.CHANNELS_API+"/listForwards?status="+t.payload.status).pipe((0,u.U)(t=>{if(this.logger.info(t),this.store.dispatch(new b.np({action:"GetForwardingHistory",status:g.Bn.COMPLETED})),!e.information.api_version||!this.commonService.isVersionCompatible(e.information.api_version,"0.5.0")){const e=[],i=[];t.forEach(t=>{"settled"===t.status?i.push(t):"failed"!==t.status&&"local_failed"!==t.status||e.push(t)}),t=JSON.parse(JSON.stringify(i)),this.store.dispatch(new b.nz(e))}return{type:b.bH,payload:t}}),(0,d.K)(e=>(this.handleErrorWithAlert("GetForwardingHistory",g.m6.NO_SPINNER,"Get Forwarding History Failed",this.CHILD_API_URL+p.N.CHANNELS_API+"/listForwards?status="+t.payload.status,e),(0,s.of)({type:y.Zn})))))))),this.fetchFailedForwardingHistoryCL=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(b.o_),(0,l.M)(this.store.select("cl")),(0,c.z)(([t,e])=>{if(this.store.dispatch(new b.np({action:"GetFailedForwardingHistory",status:g.Bn.INITIATED})),!e.information.api_version||!this.commonService.isVersionCompatible(e.information.api_version,"0.5.0"))return this.store.dispatch(new b.np({action:"GetFailedForwardingHistory",status:g.Bn.COMPLETED})),(0,s.of)({type:y.Zn});let i=new o.y;const n=this.httpClient.get(this.CHILD_API_URL+p.N.CHANNELS_API+"/listForwards?status=failed"),r=this.httpClient.get(this.CHILD_API_URL+p.N.CHANNELS_API+"/listForwards?status=local_failed");return i=(0,a.D)([n,r]),i.pipe((0,u.U)(t=>(this.logger.info(t),this.store.dispatch(new b.np({action:"GetFailedForwardingHistory",status:g.Bn.COMPLETED})),{type:b.gM,payload:this.commonService.sortDescByKey([...t[0],...t[1]],"received_time")})),(0,d.K)(t=>(this.handleErrorWithAlert("GetFailedForwardingHistory",g.m6.NO_SPINNER,"Get Failed Forwarding History Failed",this.CHILD_API_URL+p.N.CHANNELS_API+"/listForwards?status=failed",t),(0,s.of)({type:y.Zn}))))}))),this.deleteExpiredInvoiceCL=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(b.zH),(0,c.z)(t=>(this.store.dispatch(new y.Fk(g.m6.DELETE_INVOICE)),this.httpClient.delete(this.CHILD_API_URL+p.N.INVOICES_API+(t.payload?"?maxexpiry="+t.payload:"")).pipe((0,u.U)(t=>(this.logger.info(t),this.store.dispatch(new y.Iv(g.m6.DELETE_INVOICE)),this.store.dispatch(new y.Lw("Invoices Deleted Successfully!")),{type:b.eW,payload:{num_max_invoices:1e6,reversed:!0}})),(0,d.K)(t=>(this.handleErrorWithAlert("DeleteInvoices",g.m6.DELETE_INVOICE,"Delete Invoice Failed",this.CHILD_API_URL+p.N.INVOICES_API,t),(0,s.of)({type:y.Zn})))))))),this.saveNewInvoiceCL=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(b.tk),(0,c.z)(t=>(this.store.dispatch(new y.Fk(g.m6.ADD_INVOICE)),this.store.dispatch(new b.np({action:"SaveNewInvoice",status:g.Bn.INITIATED})),this.httpClient.post(this.CHILD_API_URL+p.N.INVOICES_API,{label:t.payload.label,amount:t.payload.amount,description:t.payload.description,expiry:t.payload.expiry,private:t.payload.private}).pipe((0,u.U)(e=>(this.logger.info(e),this.store.dispatch(new b.np({action:"SaveNewInvoice",status:g.Bn.COMPLETED})),this.store.dispatch(new y.Iv(g.m6.ADD_INVOICE)),e.msatoshi=t.payload.amount,e.label=t.payload.label,e.expires_at=Math.round((new Date).getTime()/1e3+t.payload.expiry),e.description=t.payload.description,e.status="unpaid",this.store.dispatch(new y.wu({data:{invoice:e,newlyAdded:!1,component:m.$}})),{type:b.G0,payload:e})),(0,d.K)(t=>(this.handleErrorWithoutAlert("SaveNewInvoice",g.m6.ADD_INVOICE,"Add Invoice Failed.",t),(0,s.of)({type:y.Zn})))))))),this.invoicesFetchCL=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(b.eW),(0,c.z)(t=>(this.store.dispatch(new b.np({action:"FetchInvoices",status:g.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+p.N.INVOICES_API+"?num_max_invoices="+(t.payload.num_max_invoices?t.payload.num_max_invoices:1e6)+"&index_offset="+(t.payload.index_offset?t.payload.index_offset:0)+"&reversed="+(!t.payload.reversed||t.payload.reversed)).pipe((0,u.U)(t=>(this.logger.info(t),this.store.dispatch(new b.np({action:"FetchInvoices",status:g.Bn.COMPLETED})),{type:b.yL,payload:t})),(0,d.K)(t=>(this.handleErrorWithoutAlert("FetchInvoices",g.m6.NO_SPINNER,"Fetching Invoices Failed.",t),(0,s.of)({type:y.Zn})))))))),this.SetChannelTransactionCL=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(b.IZ),(0,c.z)(t=>(this.store.dispatch(new y.Fk(g.m6.SEND_FUNDS)),this.store.dispatch(new b.np({action:"SetChannelTransaction",status:g.Bn.INITIATED})),this.httpClient.post(this.CHILD_API_URL+p.N.ON_CHAIN_API,t.payload).pipe((0,u.U)(t=>(this.logger.info(t),this.store.dispatch(new b.np({action:"SetChannelTransaction",status:g.Bn.COMPLETED})),this.store.dispatch(new y.Iv(g.m6.SEND_FUNDS)),this.store.dispatch(new b.D8),this.store.dispatch(new b.Zt),{type:b.ob,payload:t})),(0,d.K)(t=>(this.handleErrorWithoutAlert("SetChannelTransaction",g.m6.SEND_FUNDS,"Sending Fund Failed.",t),(0,s.of)({type:y.Zn})))))))),this.utxosFetch=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(b.ei),(0,c.z)(t=>(this.store.dispatch(new b.np({action:"FetchUTXOs",status:g.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+p.N.ON_CHAIN_API+"/utxos"))),(0,u.U)(t=>(this.logger.info(t),this.store.dispatch(new b.np({action:"FetchUTXOs",status:g.Bn.COMPLETED})),{type:b.Q2,payload:t&&t.outputs&&t.outputs.length>0?t.outputs:[]})),(0,d.K)(t=>(this.handleErrorWithoutAlert("FetchUTXOs",g.m6.NO_SPINNER,"Fetching UTXOs Failed.",t),(0,s.of)({type:y.Zn}))))),this.store.select("cl").pipe((0,h.R)(this.unSubs[0])).subscribe(t=>{t.apisCallStatus.FetchInfo.status!==g.Bn.COMPLETED&&t.apisCallStatus.FetchInfo.status!==g.Bn.ERROR||t.apisCallStatus.FetchFees.status!==g.Bn.COMPLETED&&t.apisCallStatus.FetchFees.status!==g.Bn.ERROR||t.apisCallStatus.FetchChannels.status!==g.Bn.COMPLETED&&t.apisCallStatus.FetchChannels.status!==g.Bn.ERROR||t.apisCallStatus.FetchBalance.status!==g.Bn.COMPLETED&&t.apisCallStatus.FetchBalance.status!==g.Bn.ERROR||t.apisCallStatus.FetchLocalRemoteBalance.status!==g.Bn.COMPLETED&&t.apisCallStatus.FetchLocalRemoteBalance.status!==g.Bn.ERROR||this.flgInitialized||(this.store.dispatch(new y.Iv(g.m6.INITALIZE_NODE_DATA)),this.flgInitialized=!0)})}initializeRemainingData(t,e){this.sessionService.setItem("clUnlocked","true");const i={identity_pubkey:t.id,alias:t.alias,testnet:"testnet"===t.network.toLowerCase(),chains:t.chains,uris:t.uris,version:t.version,api_version:t.api_version,numberOfPendingChannels:t.num_pending_channels};this.store.dispatch(new y.Fk(g.m6.INITALIZE_NODE_DATA)),this.store.dispatch(new y.e6(i)),this.store.dispatch(new b._O({num_max_invoices:1e6,index_offset:0,reversed:!0})),this.store.dispatch(new b.od),this.store.dispatch(new b.iG),this.store.dispatch(new b.D8),this.store.dispatch(new b.LT),this.store.dispatch(new b.Nn("perkw")),this.store.dispatch(new b.Nn("perkb")),this.store.dispatch(new b.N9),this.store.dispatch(new b.Zt),this.store.dispatch(new b.xt);let n=this.location.path();n.includes("/lnd/")?n=n.replace("/lnd/","/cl/"):n.includes("/ecl/")&&(n=n.replace("/ecl/","/cl/")),(n.includes("/login")||n.includes("/error")||""===n||"HOME"===e||n.includes("?access-key="))&&(n="/cl/home"),this.router.navigate([n])}handleErrorWithoutAlert(t,e,i,n){if(this.logger.error("ERROR IN: "+t+"\n"+JSON.stringify(n)),401===n.status)this.logger.info("Redirecting to Login"),this.store.dispatch(new y.Ac),this.store.dispatch(new y.RD),this.store.dispatch(new y.Lw("Authentication Failed. Redirecting to Login."));else{this.store.dispatch(new y.Iv(e));const r=this.commonService.extractErrorMessage(n,i);this.store.dispatch(new b.np({action:t,status:g.Bn.ERROR,statusCode:n.status.toString(),message:r}))}}handleErrorWithAlert(t,e,i,n,r){if(this.logger.error(r),401===r.status)this.logger.info("Redirecting to Login"),this.store.dispatch(new y.Ac),this.store.dispatch(new y.RD),this.store.dispatch(new y.Lw("Authentication Failed. Redirecting to Login."));else{this.store.dispatch(new y.Iv(e));const s=this.commonService.extractErrorMessage(r);this.store.dispatch(new y.wu({data:{type:"ERROR",alertTitle:i,message:{code:r.status,message:s,URL:n},component:f.H}})),this.store.dispatch(new b.np({action:t,status:g.Bn.ERROR,statusCode:r.status.toString(),message:s,URL:n}))}}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(v.LFG(n.eX),v.LFG(_.eN),v.LFG(w.yh),v.LFG(x.m),v.LFG(C.v),v.LFG(A.mQ),v.LFG(S.F0),v.LFG(E.Ye))},t.\u0275prov=v.Yz7({token:t,factory:t.\u0275fac}),t})()},3793:(t,e,i)=>{"use strict";i.d(e,{$:()=>N});var n=i(4608),r=i(5291),s=i(9421),o=i(1572),a=i(3869),l=i(1084),c=i(1403),h=i(3722),u=i(1511),d=i(377),p=i(7439),f=i(7592),m=i(5980),g=i(7679),y=i(3600),b=i(6880),v=i(2609);function _(t,e){if(1&t&&o._UZ(0,"qrcode",30),2&t){const t=o.oxw();o.Q6J("qrdata",t.invoice.bolt11)("margin",2)("width",t.qrWidth)("errorCorrectionLevel","L")("allowEmptyString",!0)}}function w(t,e){1&t&&(o.TgZ(0,"span",31),o._uU(1,"N/A"),o.qZA())}function x(t,e){if(1&t&&o._UZ(0,"qrcode",30),2&t){const t=o.oxw();o.Q6J("qrdata",t.invoice.bolt11)("margin",2)("width",t.qrWidth)("errorCorrectionLevel","L")("allowEmptyString",!0)}}function C(t,e){1&t&&(o.TgZ(0,"span",32),o._uU(1,"QR Code Not Applicable"),o.qZA())}function A(t,e){1&t&&o._UZ(0,"mat-divider",33),2&t&&o.Q6J("inset",!0)}function S(t,e){if(1&t&&(o.TgZ(0,"div",16),o.TgZ(1,"div",34),o._UZ(2,"fa-icon",35),o.TgZ(3,"span"),o._uU(4),o.qZA(),o.qZA(),o.qZA()),2&t){const t=o.oxw();o.xp6(2),o.Q6J("icon",t.faExclamationTriangle),o.xp6(2),o.Oqu(t.invoice.warning_capacity)}}function E(t,e){1&t&&(o.ynx(0),o._uU(1," (zero amount) "),o.BQk())}function k(t,e){if(1&t&&(o.TgZ(0,"div"),o._UZ(1,"mat-divider",21),o.TgZ(2,"div",16),o.TgZ(3,"div",22),o.TgZ(4,"h4",18),o._uU(5,"Payment Hash"),o.qZA(),o.TgZ(6,"span",23),o._uU(7),o.qZA(),o.qZA(),o.qZA(),o._UZ(8,"mat-divider",21),o.TgZ(9,"div",16),o.TgZ(10,"div",17),o.TgZ(11,"h4",18),o._uU(12,"Status"),o.qZA(),o.TgZ(13,"span",23),o._uU(14),o.ALo(15,"titlecase"),o.qZA(),o.qZA(),o.TgZ(16,"div",17),o.TgZ(17,"h4",18),o._uU(18,"Label"),o.qZA(),o.TgZ(19,"span",23),o._uU(20),o.qZA(),o.qZA(),o.qZA(),o._UZ(21,"mat-divider",21),o.TgZ(22,"div",16),o.TgZ(23,"div",17),o.TgZ(24,"h4",18),o._uU(25,"Amount Received"),o.qZA(),o.TgZ(26,"span",23),o._uU(27),o.ALo(28,"number"),o.qZA(),o.qZA(),o.TgZ(29,"div",17),o.TgZ(30,"h4",18),o._uU(31,"Date Settled"),o.qZA(),o.TgZ(32,"span",19),o._uU(33),o.ALo(34,"date"),o.qZA(),o.qZA(),o.qZA(),o._UZ(35,"mat-divider",21),o.qZA()),2&t){const t=o.oxw();o.xp6(7),o.Oqu(t.invoice.payment_hash),o.xp6(7),o.Oqu(o.lcZ(15,6,t.invoice.status)),o.xp6(6),o.Oqu(t.invoice.label),o.xp6(7),o.AsE("",o.lcZ(28,8,t.invoice.msatoshi_received/1e3)," ",t.invoice.msatoshi_received?"Sats":"",""),o.xp6(6),o.Oqu(o.xi3(34,10,1e3*t.invoice.paid_at,"dd/MMM/YYYY HH:mm")||"-")}}function T(t,e){1&t&&(o.TgZ(0,"p"),o._uU(1,"Show Advanced"),o.qZA())}function M(t,e){1&t&&(o.TgZ(0,"p"),o._uU(1,"Hide Advanced"),o.qZA())}function L(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"button",36),o.NdJ("copied",function(e){return o.CHM(t),o.oxw().onCopyPayment(e)}),o._uU(1,"Copy Invoice"),o.qZA()}if(2&t){const t=o.oxw();o.Q6J("payload",t.invoice.bolt11)}}function I(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"button",37),o.NdJ("click",function(){return o.CHM(t),o.oxw().onClose()}),o._uU(1,"OK"),o.qZA()}}const O=function(t){return{"display-none":t}},D=function(t){return{"xs-scroll-y":t}},R=function(t,e){return{"mt-2":t,"mt-1":e}};let N=(()=>{class t{constructor(t,e,i,n,o){this.dialogRef=t,this.data=e,this.logger=i,this.commonService=n,this.snackBar=o,this.faReceipt=r.dLy,this.faExclamationTriangle=r.eHv,this.showAdvanced=!1,this.newlyAdded=!1,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=s.cu}ngOnInit(){this.invoice=this.data.invoice,this.newlyAdded=this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===s.cu.XS&&(this.qrWidth=220)}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyPayment(t){this.snackBar.open("Invoice copied."),this.logger.info("Copied Text: "+t)}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(n.so),o.Y36(n.WI),o.Y36(a.mQ),o.Y36(l.v),o.Y36(c.ux))},t.\u0275cmp=o.Xpm({type:t,selectors:[["rtl-cl-invoice-information"]],decls:55,vars:39,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","35",1,"modal-qr-code-container","padding-gap-large",3,"fxLayoutAlign","ngClass"],[3,"qrdata","margin","width","errorCorrectionLevel","allowEmptyString",4,"ngIf"],["class","font-size-300",4,"ngIf"],["fxFlex","65"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large",3,"ngClass"],["fxLayout","column"],["fxFlex","30",1,"modal-qr-code-container","padding-gap",3,"fxLayoutAlign","ngClass"],["class","font-size-120",4,"ngIf"],["class","my-1",3,"inset",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[4,"ngIf"],[1,"w-100","my-1"],["fxFlex","100"],[1,"overflow-wrap","foreground-secondary-text"],["fxLayout","row","fxLayoutAlign","end center",3,"ngClass"],["mat-stroked-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["hideAdvancedText",""],["autoFocus","","mat-flat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["autoFocus","","mat-flat-button","","color","primary","tabindex","2","type","button",3,"click",4,"ngIf"],[3,"qrdata","margin","width","errorCorrectionLevel","allowEmptyString"],[1,"font-size-300"],[1,"font-size-120"],[1,"my-1",3,"inset"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["autoFocus","","mat-flat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["autoFocus","","mat-flat-button","","color","primary","tabindex","2","type","button",3,"click"]],template:function(t,e){if(1&t&&(o.TgZ(0,"div",0),o.TgZ(1,"div",1),o.YNc(2,_,1,5,"qrcode",2),o.YNc(3,w,2,0,"span",3),o.qZA(),o.TgZ(4,"div",4),o.TgZ(5,"mat-card-header",5),o.TgZ(6,"div",6),o._UZ(7,"fa-icon",7),o.TgZ(8,"span",8),o._uU(9),o.qZA(),o.qZA(),o.TgZ(10,"button",9),o.NdJ("click",function(){return e.onClose()}),o._uU(11,"X"),o.qZA(),o.qZA(),o.TgZ(12,"mat-card-content",10),o.TgZ(13,"div",11),o.TgZ(14,"div",12),o.YNc(15,x,1,5,"qrcode",2),o.YNc(16,C,2,0,"span",13),o.qZA(),o.YNc(17,A,1,1,"mat-divider",14),o.YNc(18,S,5,2,"div",15),o.TgZ(19,"div",16),o.TgZ(20,"div",17),o.TgZ(21,"h4",18),o._uU(22),o.qZA(),o.TgZ(23,"span",19),o._uU(24),o.ALo(25,"number"),o.YNc(26,E,2,0,"ng-container",20),o.qZA(),o.qZA(),o.TgZ(27,"div",17),o.TgZ(28,"h4",18),o._uU(29,"Date Expiry"),o.qZA(),o.TgZ(30,"span",19),o._uU(31),o.ALo(32,"date"),o.qZA(),o.qZA(),o.qZA(),o._UZ(33,"mat-divider",21),o.TgZ(34,"div",16),o.TgZ(35,"div",22),o.TgZ(36,"h4",18),o._uU(37,"Description"),o.qZA(),o.TgZ(38,"span",19),o._uU(39),o.qZA(),o.qZA(),o.qZA(),o._UZ(40,"mat-divider",21),o.TgZ(41,"div",16),o.TgZ(42,"div",22),o.TgZ(43,"h4",18),o._uU(44,"Invoice"),o.qZA(),o.TgZ(45,"span",23),o._uU(46),o.qZA(),o.qZA(),o.qZA(),o.YNc(47,k,36,13,"div",20),o.TgZ(48,"div",24),o.TgZ(49,"button",25),o.NdJ("click",function(){return e.onShowAdvanced()}),o.YNc(50,T,2,0,"p",26),o.YNc(51,M,2,0,"ng-template",null,27,o.W1O),o.qZA(),o.YNc(53,L,2,1,"button",28),o.YNc(54,I,2,0,"button",29),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA()),2&t){const t=o.MAs(52);o.xp6(1),o.Q6J("fxLayoutAlign",e.invoice.bolt11&&""!==e.invoice.bolt11?"center start":"center center")("ngClass",o.VKq(30,O,e.screenSize===e.screenSizeEnum.XS||e.screenSize===e.screenSizeEnum.SM)),o.xp6(1),o.Q6J("ngIf",e.invoice.bolt11&&""!==e.invoice.bolt11),o.xp6(1),o.Q6J("ngIf",!e.invoice.bolt11||""===e.invoice.bolt11),o.xp6(4),o.Q6J("icon",e.faReceipt),o.xp6(2),o.Oqu(e.screenSize===e.screenSizeEnum.XS?e.newlyAdded?"Created":"Invoice":e.newlyAdded?"Invoice Created":"Invoice Information"),o.xp6(3),o.Q6J("ngClass",o.VKq(32,D,e.screenSize===e.screenSizeEnum.XS)),o.xp6(2),o.Q6J("fxLayoutAlign",e.invoice.bolt11&&""!==e.invoice.bolt11?"center start":"center center")("ngClass",o.VKq(34,O,e.screenSize!==e.screenSizeEnum.XS&&e.screenSize!==e.screenSizeEnum.SM)),o.xp6(1),o.Q6J("ngIf",e.invoice.bolt11&&""!==e.invoice.bolt11),o.xp6(1),o.Q6J("ngIf",!e.invoice.bolt11||""===e.invoice.bolt11),o.xp6(1),o.Q6J("ngIf",e.screenSize===e.screenSizeEnum.XS||e.screenSize===e.screenSizeEnum.SM),o.xp6(1),o.Q6J("ngIf",e.invoice.warning_capacity),o.xp6(4),o.Oqu(e.screenSize===e.screenSizeEnum.XS?"Amount":"Amount Requested"),o.xp6(2),o.hij("",o.lcZ(25,25,e.invoice.msatoshi/1e3||0)," Sats"),o.xp6(2),o.Q6J("ngIf",!e.invoice.msatoshi),o.xp6(5),o.Oqu(o.xi3(32,27,1e3*e.invoice.expires_at,"dd/MMM/YYYY HH:mm")),o.xp6(8),o.Oqu(e.invoice.description||"-"),o.xp6(7),o.Oqu(e.invoice.bolt11||"N/A"),o.xp6(1),o.Q6J("ngIf",e.showAdvanced),o.xp6(1),o.Q6J("ngClass",o.WLB(36,R,!e.showAdvanced,e.showAdvanced)),o.xp6(2),o.Q6J("ngIf",!e.showAdvanced)("ngIfElse",t),o.xp6(3),o.Q6J("ngIf",e.invoice.bolt11&&""!==e.invoice.bolt11),o.xp6(1),o.Q6J("ngIf",!e.invoice.bolt11||""===e.invoice.bolt11)}},directives:[h.xw,h.Wh,h.yH,u.mk,d.oO,u.O5,p.dk,f.BN,m.lW,p.dn,g.d,y.V,b.h,v.y],pipes:[u.JJ,u.uU,u.rS],styles:[""]}),t})()},6124:(t,e,i)=>{"use strict";i.d(e,{ok:()=>n,f:()=>r,gk:()=>s,Go:()=>o,ml:()=>a,iR:()=>l,UA:()=>c,M8:()=>h,L2:()=>u,JI:()=>d,ct:()=>p,Oy:()=>f,ro:()=>m,we:()=>g,CF:()=>y,$9:()=>b,mn:()=>v,Tt:()=>_,IH:()=>w,md:()=>x,Ae:()=>C,BX:()=>A,J4:()=>S,JR:()=>E,gu:()=>k,nG:()=>T,yH:()=>M,r7:()=>L,Cu:()=>I,GT:()=>O,Wn:()=>D,iW:()=>R,Ao:()=>N,Pm:()=>P,qC:()=>F,k5:()=>Z,Qu:()=>B,xX:()=>U,wL:()=>q,N$:()=>z,oY:()=>H,WJ:()=>Y,Wk:()=>G,fw:()=>j,d2:()=>V,Lg:()=>Q,ht:()=>W,np:()=>J,IF:()=>X,vI:()=>K,z6:()=>$,od:()=>tt,iG:()=>et,vN:()=>it,SF:()=>nt,oI:()=>rt,DM:()=>st,eb:()=>ot,N9:()=>at,RS:()=>lt,rF:()=>ct,hF:()=>ht,ER:()=>ut,nb:()=>dt,k:()=>pt,e8:()=>ft,xt:()=>mt,bm:()=>gt,lO:()=>yt,Ar:()=>bt,T$:()=>vt,eL:()=>_t,J6:()=>wt,_O:()=>xt,Ks:()=>Ct,cU:()=>At,x$:()=>St,oP:()=>Et});const n="RESET_ECL_STORE",r="UPDATE_API_CALL_STATUS_ECL",s="SET_CHILD_NODE_SETTINGS_ECL",o="FETCH_INFO_ECL",a="SET_INFO_ECL",l="FETCH_FEES_ECL",c="SET_FEES_ECL",h="FETCH_CHANNELS_ECL",u="SET_ACTIVE_CHANNELS_ECL",d="SET_PENDING_CHANNELS_ECL",p="SET_INACTIVE_CHANNELS_ECL",f="FETCH_CHANNEL_STATS_ECL",m="SET_CHANNEL_STATS_ECL",g="FETCH_ONCHAIN_BALANCE_ECL",y="SET_ONCHAIN_BALANCE_ECL",b="SET_LIGHTNING_BALANCE_ECL",v="SET_CHANNELS_STATUS_ECL",_="FETCH_PEERS_ECL",w="SET_PEERS_ECL",x="SAVE_NEW_PEER_ECL",C="NEWLY_ADDED_PEER_ECL",A="DETACH_PEER_ECL",S="REMOVE_PEER_ECL",E="GET_NEW_ADDRESS_ECL",k="SET_NEW_ADDRESS_ECL",T="SAVE_NEW_CHANNEL_ECL",M="UPDATE_CHANNELS_ECL",L="CLOSE_CHANNEL_ECL",I="REMOVE_CHANNEL_ECL",O="FETCH_PAYMENTS_ECL",D="SET_PAYMENTS_ECL",R="GET_QUERY_ROUTES_ECL",N="SET_QUERY_ROUTES_ECL",P="SEND_PAYMENT_ECL",F="SEND_PAYMENT_STATUS_ECL",Z="FETCH_TRANSACTIONS_ECL",B="SET_TRANSACTIONS_ECL",U="SEND_ONCHAIN_FUNDS_ECL",q="SEND_ONCHAIN_FUNDS_RES_ECL",z="FETCH_INVOICES_ECL",H="SET_INVOICES_ECL",Y="CREATE_INVOICE_ECL",G="ADD_INVOICE_ECL",j="UPDATE_INVOICE_ECL",V="PEER_LOOKUP_ECL",Q="INVOICE_LOOKUP_ECL",W="SET_LOOKUP_ECL";class J{constructor(t){this.payload=t,this.type=r}}class X{constructor(t){this.payload=t,this.type=n}}class K{constructor(t){this.payload=t,this.type=s}}class ${constructor(t){this.payload=t,this.type=o}}class tt{constructor(){this.type=l}}class et{constructor(t){this.payload=t,this.type=h}}class it{constructor(t){this.payload=t,this.type=u}}class nt{constructor(t){this.payload=t,this.type=d}}class rt{constructor(t){this.payload=t,this.type=p}}class st{constructor(){this.type=g}}class ot{constructor(t){this.payload=t,this.type=b}}class at{constructor(){this.type=_}}class lt{constructor(t){this.payload=t,this.type=w}}class ct{constructor(t){this.payload=t,this.type=x}}class ht{constructor(t){this.payload=t,this.type=A}}class ut{constructor(){this.type=E}}class dt{constructor(t){this.payload=t,this.type=T}}class pt{constructor(t){this.payload=t,this.type=M}}class ft{constructor(t){this.payload=t,this.type=L}}class mt{constructor(){this.type=O}}class gt{constructor(t){this.payload=t,this.type=R}}class yt{constructor(t){this.payload=t,this.type=N}}class bt{constructor(t){this.payload=t,this.type=P}}class vt{constructor(t){this.payload=t,this.type=F}}class _t{constructor(){this.type=Z}}class wt{constructor(t){this.payload=t,this.type=U}}class xt{constructor(){this.type=z}}class Ct{constructor(t){this.payload=t,this.type=Y}}class At{constructor(t){this.payload=t,this.type=j}}class St{constructor(t){this.payload=t,this.type=V}}class Et{constructor(t){this.payload=t,this.type=Q}}},4147:(t,e,i)=>{"use strict";i.d(e,{o:()=>S});var n=i(5573),r=i(9666),s=i(2041),o=i(7228),a=i(9568),l=i(1681),c=i(1816),h=i(5653),u=i(5963),d=i(2427),p=i(9421),f=i(3921),m=i(6124),g=i(3929),y=i(1572),b=i(9063),v=i(964),_=i(3191),w=i(1084),x=i(3869),C=i(6853),A=i(1511);let S=(()=>{class t{constructor(t,e,i,d,y,b,v,_){this.actions=t,this.httpClient=e,this.store=i,this.sessionService=d,this.commonService=y,this.logger=b,this.router=v,this.location=_,this.CHILD_API_URL=u.T+"/ecl",this.flgInitialized=!1,this.unSubs=[new r.x,new r.x],this.infoFetchECL=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(m.Go),(0,o.z)(t=>(this.flgInitialized=!1,this.store.dispatch(new g.Fk(p.m6.GET_NODE_INFO)),this.store.dispatch(new m.np({action:"FetchInfo",status:p.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+u.N.GETINFO_API).pipe((0,a.R)(this.actions.pipe((0,n.l4)(g.RP))),(0,l.U)(e=>(this.logger.info(e),this.initializeRemainingData(e,t.payload.loadPage),this.store.dispatch(new m.np({action:"FetchInfo",status:p.Bn.COMPLETED})),this.store.dispatch(new g.Iv(p.m6.GET_NODE_INFO)),{type:m.ml,payload:e||{}})),(0,c.K)(t=>{const e=this.commonService.extractErrorCode(t),i=503===e?"Unable to Connect to Eclair Server.":this.commonService.extractErrorMessage(t);return this.router.navigate(["/error"],{state:{errorCode:e,errorMessage:i}}),this.handleErrorWithoutAlert("FetchInfo",p.m6.GET_NODE_INFO,"Fetching Node Info Failed.",{status:e,error:i}),(0,s.of)({type:g.Zn})})))))),this.fetchFees=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(m.iR),(0,o.z)(t=>(this.store.dispatch(new m.np({action:"FetchFees",status:p.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+u.N.FEES_API+"/fees").pipe((0,l.U)(t=>(this.logger.info(t),this.store.dispatch(new m.np({action:"FetchFees",status:p.Bn.COMPLETED})),{type:m.UA,payload:t||{}})),(0,c.K)(t=>(this.handleErrorWithoutAlert("FetchFees",p.m6.NO_SPINNER,"Fetching Fees Failed.",t),(0,s.of)({type:g.Zn})))))))),this.fetchPayments=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(m.GT),(0,o.z)(t=>(this.store.dispatch(new m.np({action:"FetchPayments",status:p.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+u.N.FEES_API+"/payments").pipe((0,l.U)(t=>(this.logger.info(t),this.store.dispatch(new m.np({action:"FetchPayments",status:p.Bn.COMPLETED})),{type:m.Wn,payload:t||{}})),(0,c.K)(t=>(this.handleErrorWithoutAlert("FetchPayments",p.m6.NO_SPINNER,"Fetching Payments Failed.",t),(0,s.of)({type:g.Zn})))))))),this.channelsFetch=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(m.M8),(0,o.z)(t=>(this.store.dispatch(new m.np({action:"FetchChannels",status:p.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+u.N.CHANNELS_API).pipe((0,l.U)(e=>(this.logger.info(e),this.store.dispatch(new m.np({action:"FetchChannels",status:p.Bn.COMPLETED})),this.store.dispatch(new m.vN(e&&e.activeChannels.length>0?e.activeChannels:[])),this.store.dispatch(new m.SF(e&&e.pendingChannels.length>0?e.pendingChannels:[])),this.store.dispatch(new m.oI(e&&e.inactiveChannels.length>0?e.inactiveChannels:[])),this.store.dispatch(new m.eb(e.lightningBalances)),t.payload&&t.payload.fetchPayments&&this.store.dispatch(new m.xt),{type:m.mn,payload:e.channelStatus})),(0,c.K)(t=>(this.handleErrorWithoutAlert("FetchChannels",p.m6.NO_SPINNER,"Fetching Channels Failed.",t),(0,s.of)({type:g.Zn})))))))),this.channelStatsFetch=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(m.Oy),(0,o.z)(t=>(this.store.dispatch(new m.np({action:"FetchChannelStats",status:p.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+u.N.CHANNELS_API+"/stats").pipe((0,l.U)(t=>(this.logger.info(t),this.store.dispatch(new m.np({action:"FetchChannelStats",status:p.Bn.COMPLETED})),{type:m.ro,payload:t&&t.length>0?t:[]})),(0,c.K)(t=>(this.handleErrorWithoutAlert("FetchChannelStats",p.m6.NO_SPINNER,"Fetching Channel Stats Failed.",t),(0,s.of)({type:g.Zn})))))))),this.fetchOnchainBalance=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(m.we),(0,o.z)(t=>(this.store.dispatch(new m.np({action:"FetchOnchainBalance",status:p.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+u.N.ON_CHAIN_API+"/balance"))),(0,l.U)(t=>(this.logger.info(t),this.store.dispatch(new m.np({action:"FetchOnchainBalance",status:p.Bn.COMPLETED})),{type:m.CF,payload:t||{}})),(0,c.K)(t=>(this.handleErrorWithoutAlert("FetchOnchainBalance",p.m6.NO_SPINNER,"Fetching Onchain Balances Failed.",t),(0,s.of)({type:g.Zn}))))),this.peersFetch=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(m.Tt),(0,o.z)(t=>(this.store.dispatch(new m.np({action:"FetchPeers",status:p.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+u.N.PEERS_API).pipe((0,l.U)(t=>(this.logger.info(t),this.store.dispatch(new m.np({action:"FetchPeers",status:p.Bn.COMPLETED})),{type:m.IH,payload:t&&t.length?t:[]})),(0,c.K)(t=>(this.handleErrorWithoutAlert("FetchPeers",p.m6.NO_SPINNER,"Fetching Peers Failed.",t),(0,s.of)({type:g.Zn})))))))),this.getNewAddress=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(m.JR),(0,o.z)(t=>(this.store.dispatch(new g.Fk(p.m6.GENERATE_NEW_ADDRESS)),this.httpClient.get(this.CHILD_API_URL+u.N.ON_CHAIN_API).pipe((0,l.U)(t=>(this.logger.info(t),this.store.dispatch(new g.Iv(p.m6.GENERATE_NEW_ADDRESS)),{type:m.gu,payload:t})),(0,c.K)(t=>(this.handleErrorWithAlert("GetNewAddress",p.m6.GENERATE_NEW_ADDRESS,"Generate New Address Failed",this.CHILD_API_URL+u.N.ON_CHAIN_API,t),(0,s.of)({type:g.Zn})))))))),this.setNewAddress=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(m.gu),(0,l.U)(t=>(this.logger.info(t.payload),t.payload))),{dispatch:!1}),this.saveNewPeer=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(m.md),(0,h.M)(this.store.select("ecl")),(0,o.z)(([t,e])=>(this.store.dispatch(new g.Fk(p.m6.CONNECT_PEER)),this.store.dispatch(new m.np({action:"SaveNewPeer",status:p.Bn.INITIATED})),this.httpClient.post(this.CHILD_API_URL+u.N.PEERS_API+(t.payload.id.includes("@")?"?uri=":"?nodeId=")+t.payload.id,{}).pipe((0,l.U)(e=>(this.logger.info(e),this.store.dispatch(new m.np({action:"SaveNewPeer",status:p.Bn.COMPLETED})),e=e&&e.length?e:[],this.store.dispatch(new g.Iv(p.m6.CONNECT_PEER)),this.store.dispatch(new m.RS(e)),{type:m.Ae,payload:{peer:e.find(e=>e.nodeId===(t.payload.id.includes("@")?t.payload.id.substring(0,t.payload.id.indexOf("@")):t.payload.id))}})),(0,c.K)(t=>(this.handleErrorWithoutAlert("SaveNewPeer",p.m6.CONNECT_PEER,"Peer Connection Failed.",t),(0,s.of)({type:g.Zn})))))))),this.detachPeer=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(m.BX),(0,o.z)(t=>(this.store.dispatch(new g.Fk(p.m6.DISCONNECT_PEER)),this.httpClient.delete(this.CHILD_API_URL+u.N.PEERS_API+"/"+t.payload.nodeId).pipe((0,l.U)(e=>(this.logger.info(e),this.store.dispatch(new g.Iv(p.m6.DISCONNECT_PEER)),this.store.dispatch(new g.Lw("Disconnecting Peer!")),{type:m.J4,payload:{nodeId:t.payload.nodeId}})),(0,c.K)(e=>(this.handleErrorWithAlert("DisconnectPeer",p.m6.DISCONNECT_PEER,"Unable to Detach Peer. Try again later.",this.CHILD_API_URL+u.N.PEERS_API+"/"+t.payload.nodeId,e),(0,s.of)({type:g.Zn})))))))),this.openNewChannel=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(m.nG),(0,o.z)(t=>(this.store.dispatch(new g.Fk(p.m6.OPEN_CHANNEL)),this.store.dispatch(new m.np({action:"SaveNewChannel",status:p.Bn.INITIATED})),this.httpClient.post(this.CHILD_API_URL+u.N.CHANNELS_API,t.payload.feeRate&&t.payload.feeRate>0?{nodeId:t.payload.nodeId,fundingSatoshis:t.payload.amount,channelFlags:+!t.payload.private,fundingFeerateSatByte:t.payload.feeRate}:{nodeId:t.payload.nodeId,fundingSatoshis:t.payload.amount,channelFlags:+!t.payload.private}).pipe((0,l.U)(t=>(this.logger.info(t),this.store.dispatch(new m.np({action:"SaveNewChannel",status:p.Bn.COMPLETED})),this.store.dispatch(new m.N9),this.store.dispatch(new m.DM),this.store.dispatch(new g.Iv(p.m6.OPEN_CHANNEL)),this.store.dispatch(new g.Lw("Channel Added Successfully!")),{type:m.M8,payload:{fetchPayments:!1}})),(0,c.K)(t=>(this.handleErrorWithoutAlert("SaveNewChannel",p.m6.OPEN_CHANNEL,"Opening Channel Failed.",t),(0,s.of)({type:g.Zn})))))))),this.updateChannel=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(m.yH),(0,o.z)(t=>{this.store.dispatch(new g.Fk(p.m6.UPDATE_CHAN_POLICY));let e="?feeBaseMsat="+t.payload.baseFeeMsat+"&feeProportionalMillionths="+t.payload.feeRate;return e=t.payload.channelIds?e+"&channelIds="+t.payload.channelIds:e+"&channelId="+t.payload.channelId,this.httpClient.post(this.CHILD_API_URL+u.N.CHANNELS_API+"/updateRelayFee"+e,{}).pipe((0,l.U)(e=>(this.logger.info(e),this.store.dispatch(new g.Iv(p.m6.UPDATE_CHAN_POLICY)),this.store.dispatch(new g.Lw(t.payload.channelIds?"Channels Updated Successfully.":"Channel Updated Successfully!")),{type:m.M8,payload:{fetchPayments:!1}})),(0,c.K)(t=>(this.handleErrorWithAlert("UpdateChannels",p.m6.UPDATE_CHAN_POLICY,"Update Channel Failed",this.CHILD_API_URL+u.N.CHANNELS_API,t),(0,s.of)({type:g.Zn}))))}))),this.closeChannel=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(m.r7),(0,o.z)(t=>(this.store.dispatch(new g.Fk(t.payload.force?p.m6.FORCE_CLOSE_CHANNEL:p.m6.CLOSE_CHANNEL)),this.httpClient.delete(this.CHILD_API_URL+u.N.CHANNELS_API+"?channelId="+t.payload.channelId+"&force="+t.payload.force).pipe((0,l.U)(e=>(this.logger.info(e),setTimeout(()=>{this.store.dispatch(new g.Iv(t.payload.force?p.m6.FORCE_CLOSE_CHANNEL:p.m6.CLOSE_CHANNEL)),this.store.dispatch(new m.iG({fetchPayments:!1})),this.store.dispatch(new g.Lw(t.payload.force?"Channel Force Closed Successfully!":"Channel Closed Successfully!"))},2e3),{type:g.Zn})),(0,c.K)(e=>(this.handleErrorWithAlert("CloseChannel",t.payload.force?p.m6.FORCE_CLOSE_CHANNEL:p.m6.CLOSE_CHANNEL,"Unable to Close Channel. Try again later.",this.CHILD_API_URL+u.N.CHANNELS_API,e),(0,s.of)({type:g.Zn})))))))),this.queryRoutesFetch=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(m.iW),(0,o.z)(t=>this.httpClient.get(this.CHILD_API_URL+u.N.PAYMENTS_API+"/route?nodeId="+t.payload.nodeId+"&amountMsat="+t.payload.amount).pipe((0,l.U)(t=>(this.logger.info(t),{type:m.Ao,payload:t})),(0,c.K)(e=>(this.store.dispatch(new m.lO([])),this.handleErrorWithAlert("GetQueryRoutes",p.m6.NO_SPINNER,"Get Query Routes Failed",this.CHILD_API_URL+u.N.PAYMENTS_API+"/route?nodeId="+t.payload.nodeId+"&amountMsat="+t.payload.amount,e),(0,s.of)({type:g.Zn}))))))),this.setQueryRoutes=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(m.Ao),(0,l.U)(t=>t.payload)),{dispatch:!1}),this.sendPayment=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(m.Pm),(0,h.M)(this.store.select("root")),(0,o.z)(([t,e])=>(this.store.dispatch(new g.Fk(p.m6.SEND_PAYMENT)),this.store.dispatch(new m.np({action:"SendPayment",status:p.Bn.INITIATED})),this.httpClient.post(this.CHILD_API_URL+u.N.PAYMENTS_API,t.payload).pipe((0,l.U)(t=>(this.logger.info(t),setTimeout(()=>{this.store.dispatch(new m.np({action:"SendPayment",status:p.Bn.COMPLETED})),this.store.dispatch(new m.T$(t)),this.store.dispatch(new g.Iv(p.m6.SEND_PAYMENT)),this.store.dispatch(new m.iG({fetchPayments:!0})),this.store.dispatch(new m.xt),this.store.dispatch(new g.Lw("Payment Submitted!"))},3e3),{type:g.Zn})),(0,c.K)(e=>(this.logger.error("Error: "+JSON.stringify(e)),t.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",p.m6.SEND_PAYMENT,"Send Payment Failed.",e):this.handleErrorWithAlert("SendPayment",p.m6.SEND_PAYMENT,"Send Payment Failed",this.CHILD_API_URL+u.N.PAYMENTS_API,e),(0,s.of)({type:g.Zn})))))))),this.transactionsFetch=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(m.k5),(0,o.z)(t=>(this.store.dispatch(new m.np({action:"FetchTransactions",status:p.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+u.N.ON_CHAIN_API+"/transactions?count=1000&skip=0"))),(0,l.U)(t=>(this.logger.info(t),this.store.dispatch(new m.np({action:"FetchTransactions",status:p.Bn.COMPLETED})),{type:m.Qu,payload:t&&t.length>0?t:[]})),(0,c.K)(t=>(this.handleErrorWithoutAlert("FetchTransactions",p.m6.NO_SPINNER,"Fetching Transactions Failed.",t),(0,s.of)({type:g.Zn}))))),this.SendOnchainFunds=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(m.xX),(0,o.z)(t=>(this.store.dispatch(new g.Fk(p.m6.SEND_FUNDS)),this.store.dispatch(new m.np({action:"SendOnchainFunds",status:p.Bn.INITIATED})),this.httpClient.post(this.CHILD_API_URL+u.N.ON_CHAIN_API,t.payload).pipe((0,l.U)(t=>(this.logger.info(t),this.store.dispatch(new m.np({action:"SendOnchainFunds",status:p.Bn.COMPLETED})),this.store.dispatch(new g.Iv(p.m6.SEND_FUNDS)),this.store.dispatch(new m.DM),{type:m.wL,payload:t})),(0,c.K)(t=>(this.handleErrorWithoutAlert("SendOnchainFunds",p.m6.SEND_FUNDS,"Sending Fund Failed.",t),(0,s.of)({type:g.Zn})))))))),this.createInvoice=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(m.WJ),(0,o.z)(t=>(this.store.dispatch(new g.Fk(p.m6.CREATE_INVOICE)),this.store.dispatch(new m.np({action:"CreateInvoice",status:p.Bn.INITIATED})),this.httpClient.post(this.CHILD_API_URL+u.N.INVOICES_API,t.payload).pipe((0,l.U)(e=>(this.logger.info(e),this.store.dispatch(new m.np({action:"CreateInvoice",status:p.Bn.COMPLETED})),this.store.dispatch(new g.Iv(p.m6.CREATE_INVOICE)),e.timestamp=(new Date).getTime()/1e3,e.expiresAt=Math.round(e.timestamp+t.payload.expireIn),e.description=t.payload.description,e.status="unpaid",this.store.dispatch(new g.wu({data:{invoice:e,newlyAdded:!1,component:f.R}})),{type:m.Wk,payload:e})),(0,c.K)(t=>(this.handleErrorWithoutAlert("CreateInvoice",p.m6.CREATE_INVOICE,"Create Invoice Failed.",t),(0,s.of)({type:g.Zn})))))))),this.invoicesFetch=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(m.N$),(0,o.z)(t=>(this.store.dispatch(new m.np({action:"FetchInvoices",status:p.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+u.N.INVOICES_API).pipe((0,l.U)(t=>(this.logger.info(t),this.store.dispatch(new m.np({action:"FetchInvoices",status:p.Bn.COMPLETED})),{type:m.oY,payload:t})),(0,c.K)(t=>(this.handleErrorWithoutAlert("FetchInvoices",p.m6.NO_SPINNER,"Fetching Invoices Failed.",t),(0,s.of)({type:g.Zn})))))))),this.peerLookup=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(m.d2),(0,o.z)(t=>(this.store.dispatch(new g.Fk(p.m6.SEARCHING_NODE)),this.store.dispatch(new m.np({action:"Lookup",status:p.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+u.N.NETWORK_API+"/nodes/"+t.payload).pipe((0,l.U)(t=>(this.logger.info(t),this.store.dispatch(new m.np({action:"Lookup",status:p.Bn.COMPLETED})),this.store.dispatch(new g.Iv(p.m6.SEARCHING_NODE)),{type:m.ht,payload:t})),(0,c.K)(e=>(this.handleErrorWithAlert("Lookup",p.m6.SEARCHING_NODE,"Peer Lookup Failed",this.CHILD_API_URL+u.N.NETWORK_API+"/nodes/"+t.payload,e),(0,s.of)({type:g.Zn})))))))),this.invoiceLookup=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(m.Lg),(0,o.z)(t=>(this.store.dispatch(new g.Fk(p.m6.SEARCHING_INVOICE)),this.store.dispatch(new m.np({action:"Lookup",status:p.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+u.N.INVOICES_API+"/"+t.payload).pipe((0,l.U)(t=>(this.logger.info(t),this.store.dispatch(new m.np({action:"Lookup",status:p.Bn.COMPLETED})),this.store.dispatch(new g.Iv(p.m6.SEARCHING_INVOICE)),this.store.dispatch(new m.cU(t)),{type:m.ht,payload:t})),(0,c.K)(t=>(this.handleErrorWithoutAlert("Lookup",p.m6.SEARCHING_INVOICE,"Invoice Lookup Failed",t),this.store.dispatch(new g.Lw({message:"Invoice Refresh Failed.",type:"ERROR"})),(0,s.of)({type:g.Zn})))))))),this.setLookup=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(m.ht),(0,l.U)(t=>(this.logger.info(t.payload),t.payload))),{dispatch:!1}),this.store.select("ecl").pipe((0,a.R)(this.unSubs[0])).subscribe(t=>{t.apisCallStatus.FetchInfo.status!==p.Bn.COMPLETED&&t.apisCallStatus.FetchInfo.status!==p.Bn.ERROR||t.apisCallStatus.FetchFees.status!==p.Bn.COMPLETED&&t.apisCallStatus.FetchFees.status!==p.Bn.ERROR||t.apisCallStatus.FetchOnchainBalance.status!==p.Bn.COMPLETED&&t.apisCallStatus.FetchOnchainBalance.status!==p.Bn.ERROR||t.apisCallStatus.FetchChannels.status!==p.Bn.COMPLETED&&t.apisCallStatus.FetchChannels.status!==p.Bn.ERROR||this.flgInitialized||(this.store.dispatch(new g.Iv(p.m6.INITALIZE_NODE_DATA)),this.flgInitialized=!0)})}initializeRemainingData(t,e){this.sessionService.setItem("eclUnlocked","true");const i={identity_pubkey:t.nodeId,alias:t.alias,testnet:"testnet"===t.network,chains:t.publicAddresses,uris:t.uris,version:t.version,numberOfPendingChannels:0};this.store.dispatch(new g.Fk(p.m6.INITALIZE_NODE_DATA)),this.store.dispatch(new g.e6(i)),this.store.dispatch(new m._O),this.store.dispatch(new m.iG({fetchPayments:!0})),this.store.dispatch(new m.od),this.store.dispatch(new m.DM),this.store.dispatch(new m.N9);let n=this.location.path();n.includes("/lnd/")?n=n.replace("/lnd/","/ecl/"):n.includes("/cl/")&&(n=n.replace("/cl/","/ecl/")),(n.includes("/login")||n.includes("/error")||""===n||"HOME"===e||n.includes("?access-key="))&&(n="/ecl/home"),this.router.navigate([n])}handleErrorWithoutAlert(t,e,i,n){this.logger.error("ERROR IN: "+t+"\n"+JSON.stringify(n)),401===n.status?(this.logger.info("Redirecting to Login"),this.store.dispatch(new g.Ac),this.store.dispatch(new g.RD),this.store.dispatch(new g.Lw("Authentication Failed. Redirecting to Login."))):(this.store.dispatch(new g.Iv(e)),this.store.dispatch(new m.np({action:t,status:p.Bn.ERROR,statusCode:n.status.toString(),message:this.commonService.extractErrorMessage(n,i)})))}handleErrorWithAlert(t,e,i,n,r){if(this.logger.error(r),401===r.status)this.logger.info("Redirecting to Login"),this.store.dispatch(new g.Ac),this.store.dispatch(new g.RD),this.store.dispatch(new g.Lw("Authentication Failed. Redirecting to Login."));else{this.store.dispatch(new g.Iv(e));const s=this.commonService.extractErrorMessage(r);this.store.dispatch(new g.wu({data:{type:"ERROR",alertTitle:i,message:{code:r.status,message:s,URL:n},component:d.H}})),this.store.dispatch(new m.np({action:t,status:p.Bn.ERROR,statusCode:r.status.toString(),message:s,URL:n}))}}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(y.LFG(n.eX),y.LFG(b.eN),y.LFG(v.yh),y.LFG(_.m),y.LFG(w.v),y.LFG(x.mQ),y.LFG(C.F0),y.LFG(A.Ye))},t.\u0275prov=y.Yz7({token:t,factory:t.\u0275fac}),t})()},3921:(t,e,i)=>{"use strict";i.d(e,{R:()=>P});var n=i(4608),r=i(5291),s=i(9421),o=i(1572),a=i(3869),l=i(1084),c=i(1403),h=i(3722),u=i(1511),d=i(377),p=i(7439),f=i(7592),m=i(5980),g=i(7679),y=i(3600),b=i(6880),v=i(2609);function _(t,e){if(1&t&&o._UZ(0,"qrcode",29),2&t){const t=o.oxw();o.Q6J("qrdata",t.invoice.serialized)("margin",2)("width",t.qrWidth)("errorCorrectionLevel","L")("allowEmptyString",!0)}}function w(t,e){1&t&&(o.TgZ(0,"span",30),o._uU(1,"N/A"),o.qZA())}function x(t,e){if(1&t&&o._UZ(0,"qrcode",29),2&t){const t=o.oxw();o.Q6J("qrdata",t.invoice.serialized)("margin",2)("width",t.qrWidth)("errorCorrectionLevel","L")("allowEmptyString",!0)}}function C(t,e){1&t&&(o.TgZ(0,"span",31),o._uU(1,"QR Code Not Applicable"),o.qZA())}function A(t,e){1&t&&o._UZ(0,"mat-divider",32),2&t&&o.Q6J("inset",!0)}function S(t,e){1&t&&(o.ynx(0),o._uU(1," (zero amount) "),o.BQk())}function E(t,e){if(1&t&&(o.ynx(0),o._uU(1),o.ALo(2,"number"),o.BQk()),2&t){const t=o.oxw();o.xp6(1),o.hij("",o.lcZ(2,1,t.invoice.amountSettled)," Sats")}}function k(t,e){1&t&&(o.ynx(0),o._uU(1,"-"),o.BQk())}function T(t,e){if(1&t&&(o.TgZ(0,"div"),o._UZ(1,"mat-divider",20),o.TgZ(2,"div",15),o.TgZ(3,"div",33),o.TgZ(4,"h4",17),o._uU(5,"Date Expiry"),o.qZA(),o.TgZ(6,"span",18),o._uU(7),o.ALo(8,"date"),o.qZA(),o.qZA(),o.TgZ(9,"div",34),o.TgZ(10,"h4",17),o._uU(11,"Date Settled"),o.qZA(),o.TgZ(12,"span",21),o._uU(13),o.ALo(14,"date"),o.qZA(),o.qZA(),o.qZA(),o._UZ(15,"mat-divider",20),o.TgZ(16,"div",15),o.TgZ(17,"div",22),o.TgZ(18,"h4",17),o._uU(19,"Payment Hash"),o.qZA(),o.TgZ(20,"span",21),o._uU(21),o.qZA(),o.qZA(),o.qZA(),o._UZ(22,"mat-divider",20),o.TgZ(23,"div",15),o.TgZ(24,"div",22),o.TgZ(25,"h4",17),o._uU(26,"Node Id"),o.qZA(),o.TgZ(27,"span",21),o._uU(28),o.qZA(),o.qZA(),o.qZA(),o._UZ(29,"mat-divider",20),o.qZA()),2&t){const t=o.oxw();o.xp6(7),o.Oqu(o.xi3(8,4,1e3*t.invoice.expiresAt,"dd/MMM/YYYY HH:mm")),o.xp6(6),o.Oqu(o.xi3(14,7,1e3*t.invoice.receivedAt,"dd/MMM/YYYY HH:mm")),o.xp6(8),o.Oqu(t.invoice.paymentHash),o.xp6(7),o.Oqu(t.invoice.nodeId)}}function M(t,e){1&t&&(o.TgZ(0,"p"),o._uU(1,"Show Advanced"),o.qZA())}function L(t,e){1&t&&(o.TgZ(0,"p"),o._uU(1,"Hide Advanced"),o.qZA())}function I(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"button",35),o.NdJ("copied",function(e){return o.CHM(t),o.oxw().onCopyPayment(e)}),o._uU(1,"Copy Invoice"),o.qZA()}if(2&t){const t=o.oxw();o.Q6J("payload",t.invoice.serialized)}}function O(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"button",36),o.NdJ("click",function(){return o.CHM(t),o.oxw().onClose()}),o._uU(1,"OK"),o.qZA()}}const D=function(t){return{"display-none":t}},R=function(t){return{"xs-scroll-y":t}},N=function(t,e){return{"mt-2":t,"mt-1":e}};let P=(()=>{class t{constructor(t,e,i,n,o){this.dialogRef=t,this.data=e,this.logger=i,this.commonService=n,this.snackBar=o,this.faReceipt=r.dLy,this.faExclamationTriangle=r.eHv,this.showAdvanced=!1,this.newlyAdded=!1,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=s.cu}ngOnInit(){this.invoice=this.data.invoice,this.newlyAdded=this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===s.cu.XS&&(this.qrWidth=220)}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyPayment(t){this.snackBar.open("Invoice copied."),this.logger.info("Copied Text: "+t)}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(n.so),o.Y36(n.WI),o.Y36(a.mQ),o.Y36(l.v),o.Y36(c.ux))},t.\u0275cmp=o.Xpm({type:t,selectors:[["rtl-ecl-invoice-information"]],decls:68,vars:42,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","35",1,"modal-qr-code-container","padding-gap-large",3,"fxLayoutAlign","ngClass"],[3,"qrdata","margin","width","errorCorrectionLevel","allowEmptyString",4,"ngIf"],["class","font-size-300",4,"ngIf"],["fxFlex","65"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large",3,"ngClass"],["fxLayout","column"],["fxFlex","30",1,"modal-qr-code-container","padding-gap",3,"fxLayoutAlign","ngClass"],["class","font-size-120",4,"ngIf"],["class","my-1",3,"inset",4,"ngIf"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[4,"ngIf"],[1,"w-100","my-1"],[1,"overflow-wrap","foreground-secondary-text"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","end center",3,"ngClass"],["mat-stroked-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["hideAdvancedText",""],["autoFocus","","mat-flat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["autoFocus","","mat-flat-button","","color","primary","tabindex","2","type","button",3,"click",4,"ngIf"],[3,"qrdata","margin","width","errorCorrectionLevel","allowEmptyString"],[1,"font-size-300"],[1,"font-size-120"],[1,"my-1",3,"inset"],["fxFlex","40"],["fxFlex","60"],["autoFocus","","mat-flat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["autoFocus","","mat-flat-button","","color","primary","tabindex","2","type","button",3,"click"]],template:function(t,e){if(1&t&&(o.TgZ(0,"div",0),o.TgZ(1,"div",1),o.YNc(2,_,1,5,"qrcode",2),o.YNc(3,w,2,0,"span",3),o.qZA(),o.TgZ(4,"div",4),o.TgZ(5,"mat-card-header",5),o.TgZ(6,"div",6),o._UZ(7,"fa-icon",7),o.TgZ(8,"span",8),o._uU(9),o.qZA(),o.qZA(),o.TgZ(10,"button",9),o.NdJ("click",function(){return e.onClose()}),o._uU(11,"X"),o.qZA(),o.qZA(),o.TgZ(12,"mat-card-content",10),o.TgZ(13,"div",11),o.TgZ(14,"div",12),o.YNc(15,x,1,5,"qrcode",2),o.YNc(16,C,2,0,"span",13),o.qZA(),o.YNc(17,A,1,1,"mat-divider",14),o.TgZ(18,"div",15),o.TgZ(19,"div",16),o.TgZ(20,"h4",17),o._uU(21,"Amount Requested"),o.qZA(),o.TgZ(22,"span",18),o._uU(23),o.ALo(24,"number"),o.YNc(25,S,2,0,"ng-container",19),o.qZA(),o.qZA(),o.TgZ(26,"div",16),o.TgZ(27,"h4",17),o._uU(28,"Amount Settled"),o.qZA(),o.TgZ(29,"span",18),o.YNc(30,E,3,3,"ng-container",19),o.YNc(31,k,2,0,"ng-container",19),o.qZA(),o.qZA(),o.qZA(),o._UZ(32,"mat-divider",20),o.TgZ(33,"div",15),o.TgZ(34,"div",16),o.TgZ(35,"h4",17),o._uU(36,"Date Created"),o.qZA(),o.TgZ(37,"span",21),o._uU(38),o.ALo(39,"date"),o.qZA(),o.qZA(),o.TgZ(40,"div",16),o.TgZ(41,"h4",17),o._uU(42,"Status"),o.qZA(),o.TgZ(43,"span",21),o._uU(44),o.ALo(45,"titlecase"),o.qZA(),o.qZA(),o.qZA(),o._UZ(46,"mat-divider",20),o.TgZ(47,"div",15),o.TgZ(48,"div",22),o.TgZ(49,"h4",17),o._uU(50,"Description"),o.qZA(),o.TgZ(51,"span",18),o._uU(52),o.qZA(),o.qZA(),o.qZA(),o._UZ(53,"mat-divider",20),o.TgZ(54,"div",15),o.TgZ(55,"div",22),o.TgZ(56,"h4",17),o._uU(57,"Invoice"),o.qZA(),o.TgZ(58,"span",21),o._uU(59),o.qZA(),o.qZA(),o.qZA(),o.YNc(60,T,30,10,"div",19),o.TgZ(61,"div",23),o.TgZ(62,"button",24),o.NdJ("click",function(){return e.onShowAdvanced()}),o.YNc(63,M,2,0,"p",25),o.YNc(64,L,2,0,"ng-template",null,26,o.W1O),o.qZA(),o.YNc(66,I,2,1,"button",27),o.YNc(67,O,2,0,"button",28),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA()),2&t){const t=o.MAs(65);o.xp6(1),o.Q6J("fxLayoutAlign",e.invoice.serialized&&""!==e.invoice.serialized?"center start":"center center")("ngClass",o.VKq(33,D,e.screenSize===e.screenSizeEnum.XS||e.screenSize===e.screenSizeEnum.SM)),o.xp6(1),o.Q6J("ngIf",e.invoice.serialized&&""!==e.invoice.serialized),o.xp6(1),o.Q6J("ngIf",!e.invoice.serialized||""===e.invoice.serialized),o.xp6(4),o.Q6J("icon",e.faReceipt),o.xp6(2),o.Oqu(e.screenSize===e.screenSizeEnum.XS?e.newlyAdded?"Created":"Invoice":e.newlyAdded?"Invoice Created":"Invoice Information"),o.xp6(3),o.Q6J("ngClass",o.VKq(35,R,e.screenSize===e.screenSizeEnum.XS)),o.xp6(2),o.Q6J("fxLayoutAlign",e.invoice.serialized&&""!==e.invoice.serialized?"center start":"center center")("ngClass",o.VKq(37,D,e.screenSize!==e.screenSizeEnum.XS&&e.screenSize!==e.screenSizeEnum.SM)),o.xp6(1),o.Q6J("ngIf",e.invoice.serialized&&""!==e.invoice.serialized),o.xp6(1),o.Q6J("ngIf",!e.invoice.serialized||""===e.invoice.serialized),o.xp6(1),o.Q6J("ngIf",e.screenSize===e.screenSizeEnum.XS||e.screenSize===e.screenSizeEnum.SM),o.xp6(6),o.hij("",o.lcZ(24,26,e.invoice.amount||0)," Sats"),o.xp6(2),o.Q6J("ngIf",!e.invoice.amount),o.xp6(5),o.Q6J("ngIf",e.invoice.amountSettled),o.xp6(1),o.Q6J("ngIf",!e.invoice.amountSettled),o.xp6(7),o.Oqu(o.xi3(39,28,1e3*e.invoice.timestamp,"dd/MMM/YYYY HH:mm")),o.xp6(6),o.Oqu(o.lcZ(45,31,e.invoice.status)),o.xp6(8),o.Oqu(e.invoice.description||"-"),o.xp6(7),o.Oqu(e.invoice.serialized||"N/A"),o.xp6(1),o.Q6J("ngIf",e.showAdvanced),o.xp6(1),o.Q6J("ngClass",o.WLB(39,N,!e.showAdvanced,e.showAdvanced)),o.xp6(2),o.Q6J("ngIf",!e.showAdvanced)("ngIfElse",t),o.xp6(3),o.Q6J("ngIf",e.invoice.serialized&&""!==e.invoice.serialized),o.xp6(1),o.Q6J("ngIf",!e.invoice.serialized||""===e.invoice.serialized)}},directives:[h.xw,h.Wh,h.yH,u.mk,d.oO,u.O5,p.dk,f.BN,m.lW,p.dn,g.d,y.V,b.h,v.y],pipes:[u.JJ,u.uU,u.rS],styles:[""]}),t})()},5678:(t,e,i)=>{"use strict";i.d(e,{AL:()=>n,JE:()=>r,Os:()=>s,kY:()=>o,Uy:()=>a,lH:()=>l,Ah:()=>c,Qm:()=>h,X_:()=>u,Ff:()=>d,pK:()=>p,jc:()=>f,mZ:()=>m,c_:()=>g,VS:()=>y,HS:()=>b,Dn:()=>v,hn:()=>_,wE:()=>w,_s:()=>x,Mx:()=>C,W8:()=>A,nZ:()=>S,P2:()=>E,oS:()=>k,S1:()=>T,u9:()=>M,D3:()=>L,G4:()=>I,bq:()=>O,o4:()=>D,MQ:()=>R,ES:()=>N,$i:()=>P,AV:()=>F,S:()=>Z,Bg:()=>B,i9:()=>U,Ov:()=>q,_V:()=>z,aB:()=>H,mU:()=>Y,c4:()=>G,kz:()=>j,s0:()=>V,b:()=>Q,dG:()=>W,Bj:()=>J,xn:()=>X,ug:()=>K,Pp:()=>$,RN:()=>tt,t7:()=>et,i_:()=>it,s8:()=>nt,__:()=>rt,U8:()=>st,ZV:()=>ot,$L:()=>at,hL:()=>lt,As:()=>ct,gk:()=>ht,K4:()=>ut,lf:()=>dt,RP:()=>pt,LC:()=>ft,x:()=>mt,on:()=>gt,qs:()=>yt,YA:()=>bt,tB:()=>vt,np:()=>_t,Mo:()=>wt,vI:()=>xt,z6:()=>Ct,N9:()=>At,RS:()=>St,rF:()=>Et,yw:()=>kt,H1:()=>Tt,od:()=>Mt,D8:()=>Lt,h7:()=>It,jh:()=>Ot,Zb:()=>Dt,Ao:()=>Rt,k:()=>Nt,nb:()=>Pt,e8:()=>Ft,FN:()=>Zt,gf:()=>Bt,gL:()=>Ut,j4:()=>qt,Cd:()=>zt,_O:()=>Ht,cU:()=>Yt,rc:()=>Gt,eL:()=>jt,Zt:()=>Vt,xt:()=>Qt,Ar:()=>Wt,RR:()=>Jt,ER:()=>Xt,uj:()=>Kt,$b:()=>$t,My:()=>te,l8:()=>ee,x$:()=>ie,IG:()=>ne,oP:()=>re,O_:()=>se,KK:()=>oe,Fn:()=>ae,bm:()=>le,lO:()=>ce,dw:()=>he});const n="RESET_LND_STORE",r="UPDATE_API_CALL_STATUS_LND",s="SET_CHILD_NODE_SETTINGS_LND",o="FETCH_INFO_LND",a="SET_INFO_LND",l="FETCH_PEERS_LND",c="SET_PEERS_LND",h="SAVE_NEW_PEER_LND",u="NEWLY_ADDED_PEER_LND",d="DETACH_PEER_LND",p="REMOVE_PEER_LND",f="SAVE_NEW_INVOICE_LND",m="NEWLY_SAVED_INVOICE_LND",g="ADD_INVOICE_LND",y="FETCH_FEES_LND",b="SET_FEES_LND",v="FETCH_BALANCE_LND",_="SET_BALANCE_LND",w="FETCH_NETWORK_LND",x="SET_NETWORK_LND",C="FETCH_ALL_CHANNELS_LND",A="FETCH_PENDING_CHANNELS_LND",S="FETCH_CLOSED_CHANNELS_LND",E="SET_ALL_CHANNELS_LND",k="SET_PENDING_CHANNELS_LND",T="SET_CLOSED_CHANNELS_LND",M="UPDATE_CHANNELS_LND",L="SAVE_NEW_CHANNEL_LND",I="CLOSE_CHANNEL_LND",O="REMOVE_CHANNEL_LND",D="BACKUP_CHANNELS_LND",R="VERIFY_CHANNELS_LND",N="BACKUP_CHANNELS_RES_LND",P="VERIFY_CHANNELS_RES_LND",F="RESTORE_CHANNELS_LIST_LND",Z="SET_RESTORE_CHANNELS_LIST_LND",B="RESTORE_CHANNELS_LND",U="RESTORE_CHANNELS_RES_LND",q="FETCH_INVOICES_LND",z="SET_INVOICES_LND",H="UPDATE_INVOICE_LND",Y="SET_TOTAL_INVOICES_LND",G="FETCH_TRANSACTIONS_LND",j="SET_TRANSACTIONS_LND",V="FETCH_UTXOS_LND",Q="SET_UTXOS_LND",W="FETCH_PAYMENTS_LND",J="SET_PAYMENTS_LND",X="SEND_PAYMENT_LND",K="SEND_PAYMENT_STATUS_LND",$="FETCH_GRAPH_NODE_LND",tt="SET_GRAPH_NODE_LND",et="GET_NEW_ADDRESS_LND",it="SET_NEW_ADDRESS_LND",nt="SET_CHANNEL_TRANSACTION_LND",rt="SET_CHANNEL_TRANSACTION_RES_LND",st="GEN_SEED_LND",ot="GEN_SEED_RESPONSE_LND",at="INIT_WALLET_LND",lt="INIT_WALLET_RESPONSE_LND",ct="UNLOCK_WALLET_LND",ht="PEER_LOOKUP_LND",ut="CHANNEL_LOOKUP_LND",dt="INVOICE_LOOKUP_LND",pt="SET_LOOKUP_LND",ft="GET_FORWARDING_HISTORY_LND",mt="SET_FORWARDING_HISTORY_LND",gt="GET_QUERY_ROUTES_LND",yt="SET_QUERY_ROUTES_LND",bt="GET_ALL_LIGHTNING_TRANSATIONS_LND",vt="SET_ALL_LIGHTNING_TRANSATIONS_LND";class _t{constructor(t){this.payload=t,this.type=r}}class wt{constructor(t){this.payload=t,this.type=n}}class xt{constructor(t){this.payload=t,this.type=s}}class Ct{constructor(t){this.payload=t,this.type=o}}class At{constructor(){this.type=l}}class St{constructor(t){this.payload=t,this.type=c}}class Et{constructor(t){this.payload=t,this.type=h}}class kt{constructor(t){this.payload=t,this.type=d}}class Tt{constructor(t){this.payload=t,this.type=f}}class Mt{constructor(){this.type=y}}class Lt{constructor(t){this.payload=t,this.type=v}}class It{constructor(){this.type=w}}class Ot{constructor(){this.type=C}}class Dt{constructor(){this.type=A}}class Rt{constructor(){this.type=S}}class Nt{constructor(t){this.payload=t,this.type=M}}class Pt{constructor(t){this.payload=t,this.type=L}}class Ft{constructor(t){this.payload=t,this.type=I}}class Zt{constructor(t){this.payload=t,this.type=D}}class Bt{constructor(t){this.payload=t,this.type=R}}class Ut{constructor(){this.type=F}}class qt{constructor(t){this.payload=t,this.type=Z}}class zt{constructor(t){this.payload=t,this.type=B}}class Ht{constructor(t){this.payload=t,this.type=q}}class Yt{constructor(t){this.payload=t,this.type=H}}class Gt{constructor(t){this.payload=t,this.type=Y}}class jt{constructor(){this.type=G}}class Vt{constructor(){this.type=V}}class Qt{constructor(t){this.payload=t,this.type=W}}class Wt{constructor(t){this.payload=t,this.type=X}}class Jt{constructor(t){this.payload=t,this.type=$}}class Xt{constructor(t){this.payload=t,this.type=et}}class Kt{constructor(t){this.payload=t,this.type=nt}}class $t{constructor(t){this.payload=t,this.type=st}}class te{constructor(t){this.payload=t,this.type=at}}class ee{constructor(t){this.payload=t,this.type=ct}}class ie{constructor(t){this.payload=t,this.type=ht}}class ne{constructor(t){this.payload=t,this.type=ut}}class re{constructor(t){this.payload=t,this.type=dt}}class se{constructor(t){this.payload=t,this.type=pt}}class oe{constructor(t){this.payload=t,this.type=ft}}class ae{constructor(t){this.payload=t,this.type=mt}}class le{constructor(t){this.payload=t,this.type=gt}}class ce{constructor(t){this.payload=t,this.type=yt}}class he{constructor(){this.type=bt}}},8248:(t,e,i)=>{"use strict";i.d(e,{l:()=>E});var n=i(5573),r=i(9666),s=i(2041),o=i(5653),a=i(7228),l=i(9568),c=i(1681),h=i(1816),u=i(5963),d=i(1827),p=i(2427),f=i(9421),m=i(3929),g=i(5678),y=i(1572),b=i(9063),v=i(964),_=i(3869),w=i(1084),x=i(3191),C=i(4608),A=i(6853),S=i(1511);let E=(()=>{class t{constructor(t,e,i,p,y,b,v,_,w){this.actions=t,this.httpClient=e,this.store=i,this.logger=p,this.commonService=y,this.sessionService=b,this.dialog=v,this.router=_,this.location=w,this.CHILD_API_URL=u.T+"/lnd",this.flgInitialized=!1,this.unSubs=[new r.x,new r.x],this.infoFetch=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.kY),(0,o.M)(this.store.select("root")),(0,a.z)(([t,e])=>(this.flgInitialized=!1,this.store.dispatch(new m.Fk(f.m6.GET_NODE_INFO)),this.store.dispatch(new g.np({action:"FetchInfo",status:f.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+u.N.GETINFO_API).pipe((0,l.R)(this.actions.pipe((0,n.l4)(m.RP))),(0,c.U)(e=>(this.logger.info(e),e.chains&&e.chains.length&&e.chains[0]&&("string"==typeof e.chains[0]&&e.chains[0].toLowerCase().indexOf("bitcoin")<0||"object"==typeof e.chains[0]&&e.chains[0].hasOwnProperty("chain")&&e.chains[0].chain.toLowerCase().indexOf("bitcoin")<0)?(this.store.dispatch(new g.np({action:"FetchInfo",status:f.Bn.COMPLETED})),this.store.dispatch(new m.Ac),this.store.dispatch(new m.wu({data:{type:f.n_.ERROR,alertTitle:"Shitcoin Found",titleMessage:"Sorry Not Sorry, RTL is Bitcoin Only!"}})),{type:m.Nv}):e.identity_pubkey?(e.lnImplementation="LND",this.initializeRemainingData(e,t.payload.loadPage),this.store.dispatch(new g.np({action:"FetchInfo",status:f.Bn.COMPLETED})),this.store.dispatch(new m.Ac),{type:g.Uy,payload:e||{}}):(this.store.dispatch(new g.np({action:"FetchInfo",status:f.Bn.COMPLETED})),this.store.dispatch(new m.Ac),this.sessionService.removeItem("lndUnlocked"),this.logger.info("Redirecting to Unlock"),this.router.navigate(["/lnd/wallet"]),{type:g.Uy,payload:{}}))),(0,h.K)(t=>{if("string"==typeof t.error.error&&t.error.error.includes("Not Found")||"string"==typeof t.error.error&&t.error.error.includes("wallet locked")||502===t.status)this.sessionService.removeItem("lndUnlocked"),this.logger.info("Redirecting to Unlock"),this.router.navigate(["/lnd/wallet"]),this.handleErrorWithoutAlert("FetchInfo",f.m6.GET_NODE_INFO,"Fetching Node Info Failed.",t);else if("string"==typeof t.error.error&&t.error.error.includes("starting up")&&500===t.status)setTimeout(()=>{this.store.dispatch(new g.z6({loadPage:"HOME"}))},2e3);else{const e=this.commonService.extractErrorCode(t),i=503===e?"Unable to Connect to LND Server.":this.commonService.extractErrorMessage(t);this.router.navigate(["/error"],{state:{errorCode:e,errorMessage:i}}),this.handleErrorWithoutAlert("FetchInfo",f.m6.GET_NODE_INFO,"Fetching Node Info Failed.",{status:e,error:i})}return(0,s.of)({type:m.Zn})})))))),this.peersFetch=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.lH),(0,a.z)(t=>(this.store.dispatch(new g.np({action:"FetchPeers",status:f.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+u.N.PEERS_API).pipe((0,c.U)(t=>(this.logger.info(t),this.store.dispatch(new g.np({action:"FetchPeers",status:f.Bn.COMPLETED})),{type:g.Ah,payload:t||[]})),(0,h.K)(t=>(this.handleErrorWithoutAlert("FetchPeers",f.m6.NO_SPINNER,"Fetching Peers Failed.",t),(0,s.of)({type:m.Zn})))))))),this.saveNewPeer=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.Qm),(0,o.M)(this.store.select("lnd")),(0,a.z)(([t,e])=>(this.store.dispatch(new m.Fk(f.m6.CONNECT_PEER)),this.store.dispatch(new g.np({action:"SaveNewPeer",status:f.Bn.INITIATED})),this.httpClient.post(this.CHILD_API_URL+u.N.PEERS_API,{pubkey:t.payload.pubkey,host:t.payload.host,perm:t.payload.perm}).pipe((0,c.U)(t=>(this.logger.info(t),this.store.dispatch(new g.np({action:"SaveNewPeer",status:f.Bn.COMPLETED})),this.store.dispatch(new m.Iv(f.m6.CONNECT_PEER)),this.store.dispatch(new g.RS(t&&t.length>0?t:[])),{type:g.X_,payload:{peer:t[0]}})),(0,h.K)(t=>(this.handleErrorWithoutAlert("SaveNewPeer",f.m6.CONNECT_PEER,"Peer Connection Failed.",t),(0,s.of)({type:m.Zn})))))))),this.detachPeer=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.Ff),(0,a.z)(t=>(this.store.dispatch(new m.Fk(f.m6.DISCONNECT_PEER)),this.httpClient.delete(this.CHILD_API_URL+u.N.PEERS_API+"/"+t.payload.pubkey).pipe((0,c.U)(e=>(this.logger.info(e),this.store.dispatch(new m.Iv(f.m6.DISCONNECT_PEER)),this.store.dispatch(new m.Lw("Peer Disconnected Successfully.")),{type:g.pK,payload:{pubkey:t.payload.pubkey}})),(0,h.K)(e=>(this.handleErrorWithAlert("DetachPeer",f.m6.DISCONNECT_PEER,"Unable to Detach Peer. Try again later.",this.CHILD_API_URL+u.N.PEERS_API+"/"+t.payload.pubkey,e),(0,s.of)({type:m.Zn})))))))),this.saveNewInvoice=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.jc),(0,a.z)(t=>(this.store.dispatch(new m.Fk(t.payload.uiMessage)),this.store.dispatch(new g.np({action:"SaveNewInvoice",status:f.Bn.INITIATED})),this.httpClient.post(this.CHILD_API_URL+u.N.INVOICES_API,{memo:t.payload.memo,amount:t.payload.invoiceValue,private:t.payload.private,expiry:t.payload.expiry}).pipe((0,c.U)(e=>(this.logger.info(e),this.store.dispatch(new g.np({action:"SaveNewInvoice",status:f.Bn.COMPLETED})),this.store.dispatch(new g._O({num_max_invoices:t.payload.pageSize,reversed:!0})),t.payload.openModal?(e.memo=t.payload.memo,e.value=t.payload.invoiceValue,e.expiry=t.payload.expiry,e.cltv_expiry="144",e.private=t.payload.private,e.creation_date=Math.round((new Date).getTime()/1e3).toString(),this.store.dispatch(new m.Iv(t.payload.uiMessage)),{type:m.fW,payload:{data:{invoice:e,newlyAdded:!0,component:d.v}}}):{type:g.mZ,payload:{paymentRequest:e.payment_request}})),(0,h.K)(e=>(this.handleErrorWithoutAlert("SaveNewInvoice",t.payload.uiMessage,"Add Invoice Failed.",e),(0,s.of)({type:m.Zn})))))))),this.openNewChannel=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.D3),(0,a.z)(t=>(this.store.dispatch(new m.Fk(f.m6.OPEN_CHANNEL)),this.store.dispatch(new g.np({action:"SaveNewChannel",status:f.Bn.INITIATED})),this.httpClient.post(this.CHILD_API_URL+u.N.CHANNELS_API,{node_pubkey:t.payload.selectedPeerPubkey,local_funding_amount:t.payload.fundingAmount,private:t.payload.private,trans_type:t.payload.transType,trans_type_value:t.payload.transTypeValue,spend_unconfirmed:t.payload.spendUnconfirmed}).pipe((0,c.U)(t=>(this.logger.info(t),this.store.dispatch(new g.np({action:"SaveNewChannel",status:f.Bn.COMPLETED})),this.store.dispatch(new m.Iv(f.m6.OPEN_CHANNEL)),this.store.dispatch(new g.D8("Blockchain")),this.store.dispatch(new g.jh),this.store.dispatch(new g.FN({uiMessage:f.m6.NO_SPINNER,channelPoint:"ALL",showMessage:"Channel Added Successfully!"})),{type:g.W8})),(0,h.K)(t=>(this.handleErrorWithoutAlert("SaveNewChannel",f.m6.OPEN_CHANNEL,"Opening Channel Failed.",t),(0,s.of)({type:m.Zn})))))))),this.updateChannel=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.u9),(0,a.z)(t=>(this.store.dispatch(new m.Fk(f.m6.UPDATE_CHAN_POLICY)),this.httpClient.post(this.CHILD_API_URL+u.N.CHANNELS_API+"/chanPolicy",{baseFeeMsat:t.payload.baseFeeMsat,feeRate:t.payload.feeRate,timeLockDelta:t.payload.timeLockDelta,chanPoint:t.payload.chanPoint}).pipe((0,c.U)(e=>(this.logger.info(e),this.store.dispatch(new m.Iv(f.m6.UPDATE_CHAN_POLICY)),this.store.dispatch(new m.Lw("all"===t.payload.chanPoint?"All Channels Updated Successfully.":"Channel Updated Successfully!")),{type:g.Mx})),(0,h.K)(t=>(this.handleErrorWithAlert("UpdateChannels",f.m6.UPDATE_CHAN_POLICY,"Update Channel Failed",this.CHILD_API_URL+u.N.CHANNELS_API+"/chanPolicy",t),(0,s.of)({type:m.Zn})))))))),this.closeChannel=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.G4),(0,a.z)(t=>{this.store.dispatch(new m.Fk(t.payload.forcibly?f.m6.FORCE_CLOSE_CHANNEL:f.m6.CLOSE_CHANNEL));let e=this.CHILD_API_URL+u.N.CHANNELS_API+"/"+t.payload.channelPoint+"?force="+t.payload.forcibly;return t.payload.targetConf&&(e=e+"&target_conf="+t.payload.targetConf),t.payload.satPerByte&&(e=e+"&sat_per_byte="+t.payload.satPerByte),this.httpClient.delete(e).pipe((0,c.U)(e=>(this.logger.info(e),this.store.dispatch(new m.Iv(t.payload.forcibly?f.m6.FORCE_CLOSE_CHANNEL:f.m6.CLOSE_CHANNEL)),this.store.dispatch(new g.jh),this.store.dispatch(new g.Zb),this.store.dispatch(new g.FN({uiMessage:f.m6.NO_SPINNER,channelPoint:"ALL",showMessage:e.message})),{type:m.Zn})),(0,h.K)(e=>(this.handleErrorWithAlert("CloseChannel",t.payload.forcibly?f.m6.FORCE_CLOSE_CHANNEL:f.m6.CLOSE_CHANNEL,"Unable to Close Channel. Try again later.",this.CHILD_API_URL+u.N.CHANNELS_API+"/"+t.payload.channelPoint+"?force="+t.payload.forcibly,e),(0,s.of)({type:m.Zn}))))}))),this.backupChannels=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.o4),(0,a.z)(t=>(this.store.dispatch(new m.Fk(t.payload.uiMessage)),this.store.dispatch(new g.np({action:"BackupChannels",status:f.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+u.N.CHANNELS_BACKUP_API+"/"+t.payload.channelPoint).pipe((0,c.U)(e=>(this.logger.info(e),this.store.dispatch(new g.np({action:"BackupChannels",status:f.Bn.COMPLETED})),this.store.dispatch(new m.Iv(t.payload.uiMessage)),this.store.dispatch(new m.Lw(t.payload.showMessage+" "+e.message)),{type:g.ES,payload:e.message})),(0,h.K)(e=>(this.handleErrorWithAlert("BackupChannels",t.payload.uiMessage,t.payload.showMessage+" Unable to Backup Channel. Try again later.",this.CHILD_API_URL+u.N.CHANNELS_BACKUP_API+"/"+t.payload.channelPoint,e),(0,s.of)({type:m.Zn})))))))),this.verifyChannels=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.MQ),(0,a.z)(t=>(this.store.dispatch(new m.Fk(f.m6.VERIFY_CHANNEL)),this.store.dispatch(new g.np({action:"VerifyChannels",status:f.Bn.INITIATED})),this.httpClient.post(this.CHILD_API_URL+u.N.CHANNELS_BACKUP_API+"/verify/"+t.payload.channelPoint,{}).pipe((0,c.U)(t=>(this.logger.info(t),this.store.dispatch(new g.np({action:"VerifyChannels",status:f.Bn.COMPLETED})),this.store.dispatch(new m.Iv(f.m6.VERIFY_CHANNEL)),this.store.dispatch(new m.Lw(t.message)),{type:g.$i,payload:t.message})),(0,h.K)(e=>(this.handleErrorWithAlert("VerifyChannels",f.m6.VERIFY_CHANNEL,"Unable to Verify Channel. Try again later.",this.CHILD_API_URL+u.N.CHANNELS_BACKUP_API+"/verify/"+t.payload.channelPoint,e),(0,s.of)({type:m.Zn})))))))),this.restoreChannels=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.Bg),(0,a.z)(t=>(this.store.dispatch(new m.Fk(f.m6.RESTORE_CHANNEL)),this.store.dispatch(new g.np({action:"RestoreChannels",status:f.Bn.INITIATED})),this.httpClient.post(this.CHILD_API_URL+u.N.CHANNELS_BACKUP_API+"/restore/"+t.payload.channelPoint,{}).pipe((0,c.U)(t=>(this.logger.info(t),this.store.dispatch(new g.np({action:"RestoreChannels",status:f.Bn.COMPLETED})),this.store.dispatch(new m.Iv(f.m6.RESTORE_CHANNEL)),this.store.dispatch(new m.Lw(t.message)),this.store.dispatch(new g.j4(t.list)),{type:g.i9,payload:t.message})),(0,h.K)(e=>(this.handleErrorWithAlert("RestoreChannels",f.m6.RESTORE_CHANNEL,"Unable to Restore Channel. Try again later.",this.CHILD_API_URL+u.N.CHANNELS_BACKUP_API+"/restore/"+t.payload.channelPoint,e),(0,s.of)({type:m.Zn})))))))),this.fetchFees=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.VS),(0,a.z)(t=>(this.store.dispatch(new g.np({action:"FetchFees",status:f.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+u.N.FEES_API))),(0,c.U)(t=>(this.logger.info(t),this.store.dispatch(new g.np({action:"FetchFees",status:f.Bn.COMPLETED})),t.forwarding_events_history&&(this.store.dispatch(new g.Fn(t.forwarding_events_history)),delete t.forwarding_events_history),{type:g.HS,payload:t||{}})),(0,h.K)(t=>(this.handleErrorWithoutAlert("FetchFees",f.m6.NO_SPINNER,"Fetching Fees Failed.",t),(0,s.of)({type:m.Zn}))))),this.balanceFetch=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.Dn),(0,a.z)(t=>(this.store.dispatch(new g.np({action:"FetchBalance"+t.payload,status:f.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+u.N.BALANCE_API+"/"+t.payload).pipe((0,c.U)(e=>(this.store.dispatch(new g.np({action:"FetchBalance"+t.payload,status:f.Bn.COMPLETED})),this.logger.info(e),{type:g.hn,payload:e?{target:t.payload,balance:e}:{target:t.payload,balance:"channels"===t.payload?{balance:""}:{total_balance:""}}})),(0,h.K)(e=>(this.handleErrorWithoutAlert("FetchBalance"+t.payload,f.m6.NO_SPINNER,"Fetching"+this.commonService.titleCase(t.payload)+" Balance Failed.",e),(0,s.of)({type:m.Zn})))))))),this.networkInfoFetch=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.wE),(0,a.z)(t=>(this.store.dispatch(new g.np({action:"FetchNetwork",status:f.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+u.N.NETWORK_API+"/info"))),(0,c.U)(t=>(this.logger.info(t),this.store.dispatch(new g.np({action:"FetchNetwork",status:f.Bn.COMPLETED})),{type:g._s,payload:t||{}})),(0,h.K)(t=>(this.handleErrorWithoutAlert("FetchNetwork",f.m6.NO_SPINNER,"Fetching Network Failed.",t),(0,s.of)({type:m.Zn}))))),this.channelsAllFetch=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.Mx),(0,a.z)(t=>(this.store.dispatch(new g.np({action:"FetchAllChannels",status:f.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+u.N.CHANNELS_API).pipe((0,c.U)(t=>(this.logger.info(t),this.store.dispatch(new g.np({action:"FetchAllChannels",status:f.Bn.COMPLETED})),{type:g.P2,payload:t&&t.channels&&t.channels.length>0?t.channels:[]})),(0,h.K)(t=>(this.handleErrorWithoutAlert("FetchAllChannels",f.m6.NO_SPINNER,"Fetching All Channels Failed.",t),(0,s.of)({type:m.Zn})))))))),this.channelsPendingFetch=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.W8),(0,a.z)(t=>(this.store.dispatch(new g.np({action:"FetchPendingChannels",status:f.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+u.N.CHANNELS_API+"/pending").pipe((0,c.U)(t=>{this.logger.info(t),this.store.dispatch(new g.np({action:"FetchPendingChannels",status:f.Bn.COMPLETED}));const e={open:{num_channels:0,limbo_balance:0},closing:{num_channels:0,limbo_balance:0},force_closing:{num_channels:0,limbo_balance:0},waiting_close:{num_channels:0,limbo_balance:0},total_channels:0,total_limbo_balance:0};return t&&(e.total_limbo_balance=t.total_limbo_balance,t.pending_closing_channels&&(e.closing.num_channels=t.pending_closing_channels.length,e.total_channels=e.total_channels+t.pending_closing_channels.length,t.pending_closing_channels.forEach(t=>{e.closing.limbo_balance=+e.closing.limbo_balance+(t.channel.local_balance?+t.channel.local_balance:0)})),t.pending_force_closing_channels&&(e.force_closing.num_channels=t.pending_force_closing_channels.length,e.total_channels=e.total_channels+t.pending_force_closing_channels.length,t.pending_force_closing_channels.forEach(t=>{e.force_closing.limbo_balance=+e.force_closing.limbo_balance+(t.channel.local_balance?+t.channel.local_balance:0)})),t.pending_open_channels&&(e.open.num_channels=t.pending_open_channels.length,e.total_channels=e.total_channels+t.pending_open_channels.length,t.pending_open_channels.forEach(t=>{e.open.limbo_balance=+e.open.limbo_balance+(t.channel.local_balance?+t.channel.local_balance:0)})),t.waiting_close_channels&&(e.waiting_close.num_channels=t.waiting_close_channels.length,e.total_channels=e.total_channels+t.waiting_close_channels.length,t.waiting_close_channels.forEach(t=>{e.waiting_close.limbo_balance=+e.waiting_close.limbo_balance+(t.channel.local_balance?+t.channel.local_balance:0)}))),{type:g.oS,payload:t?{channels:t,pendingChannels:e}:{channels:{},pendingChannels:e}}}),(0,h.K)(t=>(this.handleErrorWithoutAlert("FetchPendingChannels",f.m6.NO_SPINNER,"Fetching Pending Channels Failed.",t),(0,s.of)({type:m.Zn})))))))),this.channelsClosedFetch=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.nZ),(0,a.z)(t=>(this.store.dispatch(new g.np({action:"FetchClosedChannels",status:f.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+u.N.CHANNELS_API+"/closed").pipe((0,c.U)(t=>(this.logger.info(t),this.store.dispatch(new g.np({action:"FetchClosedChannels",status:f.Bn.COMPLETED})),{type:g.S1,payload:t&&t.channels&&t.channels.length>0?t.channels:[]})),(0,h.K)(t=>(this.handleErrorWithoutAlert("FetchClosedChannels",f.m6.NO_SPINNER,"Fetching Closed Channels Failed.",t),(0,s.of)({type:m.Zn})))))))),this.invoicesFetch=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.Ov),(0,a.z)(t=>(this.store.dispatch(new g.np({action:"FetchInvoices",status:f.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+u.N.INVOICES_API+"?num_max_invoices="+(t.payload.num_max_invoices?t.payload.num_max_invoices:100)+"&index_offset="+(t.payload.index_offset?t.payload.index_offset:0)+"&reversed="+(!!t.payload.reversed&&t.payload.reversed)).pipe((0,c.U)(e=>(this.logger.info(e),this.store.dispatch(new g.np({action:"FetchInvoices",status:f.Bn.COMPLETED})),t.payload.reversed&&!t.payload.index_offset&&this.store.dispatch(new g.rc(+e.last_index_offset)),{type:g._V,payload:e})),(0,h.K)(t=>(this.handleErrorWithoutAlert("FetchInvoices",f.m6.NO_SPINNER,"Fetching Invoices Failed.",t),(0,s.of)({type:m.Zn})))))))),this.transactionsFetch=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.c4),(0,a.z)(t=>(this.store.dispatch(new g.np({action:"FetchTransactions",status:f.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+u.N.TRANSACTIONS_API))),(0,c.U)(t=>(this.logger.info(t),this.store.dispatch(new g.np({action:"FetchTransactions",status:f.Bn.COMPLETED})),{type:g.kz,payload:t&&t.length>0?t:[]})),(0,h.K)(t=>(this.handleErrorWithoutAlert("FetchTransactions",f.m6.NO_SPINNER,"Fetching Transactions Failed.",t),(0,s.of)({type:m.Zn}))))),this.utxosFetch=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.s0),(0,o.M)(this.store.select("lnd")),(0,a.z)(([t,e])=>(this.store.dispatch(new g.np({action:"FetchUTXOs",status:f.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+u.N.WALLET_API+"/getUTXOs?max_confs="+(e.information&&e.information.block_height?e.information.block_height:1e9)))),(0,c.U)(t=>(this.logger.info(t),this.store.dispatch(new g.np({action:"FetchUTXOs",status:f.Bn.COMPLETED})),{type:g.b,payload:t&&t.length>0?t:[]})),(0,h.K)(t=>(this.handleErrorWithoutAlert("FetchUTXOs",f.m6.NO_SPINNER,"Fetching UTXOs Failed.",t),(0,s.of)({type:m.Zn}))))),this.paymentsFetch=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.dG),(0,a.z)(t=>(this.store.dispatch(new g.np({action:"FetchPayments",status:f.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+u.N.PAYMENTS_API+"?max_payments="+(t.payload.max_payments?t.payload.max_payments:100)+"&index_offset="+(t.payload.index_offset?t.payload.index_offset:0)+"&reversed="+(!!t.payload.reversed&&t.payload.reversed)).pipe((0,c.U)(t=>(this.logger.info(t),this.store.dispatch(new g.np({action:"FetchPayments",status:f.Bn.COMPLETED})),{type:g.Bj,payload:t})),(0,h.K)(t=>(this.handleErrorWithoutAlert("FetchPayments",f.m6.NO_SPINNER,"Fetching Payments Failed.",t),(0,s.of)({type:g.Bj,payload:{payments:[]}})))))))),this.sendPayment=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.xn),(0,a.z)(t=>{this.store.dispatch(new m.Fk(t.payload.uiMessage)),this.store.dispatch(new g.np({action:"SendPayment",status:f.Bn.INITIATED}));const e={};return e.paymentReq=t.payload.paymentReq,t.payload.paymentAmount&&(e.paymentAmount=t.payload.paymentAmount),t.payload.outgoingChannel&&(e.outgoingChannel=t.payload.outgoingChannel.chan_id),t.payload.allowSelfPayment&&(e.allowSelfPayment=t.payload.allowSelfPayment),t.payload.lastHopPubkey&&(e.lastHopPubkey=t.payload.lastHopPubkey),t.payload.feeLimitType&&t.payload.feeLimitType!==f.Vc[0]&&(e.feeLimit={},e.feeLimit[t.payload.feeLimitType.id]=t.payload.feeLimit),this.httpClient.post(this.CHILD_API_URL+u.N.CHANNELS_API+"/transactions",e).pipe((0,c.U)(e=>{if(this.logger.info(e),this.store.dispatch(new m.Iv(t.payload.uiMessage)),this.store.dispatch(new g.np({action:"SendPayment",status:f.Bn.COMPLETED})),e.payment_error)return t.payload.allowSelfPayment?(this.store.dispatch(new g._O({num_max_invoices:f.IV,reversed:!0})),{type:g.ug,payload:e}):(t.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",t.payload.uiMessage,"Send Payment Failed.",e.payment_error):this.handleErrorWithAlert("SendPayment",t.payload.uiMessage,"Send Payment Failed",this.CHILD_API_URL+u.N.CHANNELS_API+"/transactions",e.payment_error),{type:m.Zn});if(this.store.dispatch(new m.Iv(t.payload.uiMessage)),this.store.dispatch(new g.np({action:"SendPayment",status:f.Bn.COMPLETED})),this.store.dispatch(new g.jh),this.store.dispatch(new g.xt({max_payments:f.IV,reversed:!0})),t.payload.allowSelfPayment)this.store.dispatch(new g._O({num_max_invoices:f.IV,reversed:!0}));else{let t="Payment Sent Successfully.";e.payment_route&&e.payment_route.total_fees_msat&&(t="Payment sent successfully with the total fee "+e.payment_route.total_fees_msat+" (mSats)."),this.store.dispatch(new m.Lw(t))}return{type:g.ug,payload:e}}),(0,h.K)(e=>(this.logger.error("Error: "+JSON.stringify(e)),t.payload.allowSelfPayment?(this.handleErrorWithoutAlert("SendPayment",t.payload.uiMessage,"Send Payment Failed.",e),this.store.dispatch(new g._O({num_max_invoices:f.IV,reversed:!0})),(0,s.of)({type:g.ug,payload:{error:this.commonService.extractErrorMessage(e)}})):(t.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",t.payload.uiMessage,"Send Payment Failed.",e):this.handleErrorWithAlert("SendPayment",t.payload.uiMessage,"Send Payment Failed",this.CHILD_API_URL+u.N.CHANNELS_API+"/transactions",e),(0,s.of)({type:m.Zn})))))}))),this.graphNodeFetch=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.Pp),(0,a.z)(t=>(this.store.dispatch(new m.Fk(f.m6.GET_NODE_ADDRESS)),this.store.dispatch(new g.np({action:"FetchGraphNode",status:f.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+u.N.NETWORK_API+"/node/"+t.payload.pubkey).pipe((0,c.U)(t=>(this.logger.info(t),this.store.dispatch(new m.Iv(f.m6.GET_NODE_ADDRESS)),this.store.dispatch(new g.np({action:"FetchGraphNode",status:f.Bn.COMPLETED})),{type:g.RN,payload:t&&t.node?{node:t.node}:{node:null}})),(0,h.K)(t=>(this.handleErrorWithoutAlert("FetchGraphNode",f.m6.GET_NODE_ADDRESS,"Fetching Graph Node Failed.",t),(0,s.of)({type:m.Zn})))))))),this.setGraphNode=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.RN),(0,c.U)(t=>(this.logger.info(t.payload),t.payload))),{dispatch:!1}),this.getNewAddress=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.t7),(0,a.z)(t=>(this.store.dispatch(new m.Fk(f.m6.GENERATE_NEW_ADDRESS)),this.httpClient.get(this.CHILD_API_URL+u.N.NEW_ADDRESS_API+"?type="+t.payload.addressId).pipe((0,c.U)(t=>(this.logger.info(t),this.store.dispatch(new m.Iv(f.m6.GENERATE_NEW_ADDRESS)),{type:g.i_,payload:t&&t.address?t.address:{}})),(0,h.K)(e=>(this.handleErrorWithAlert("GetNewAddress",f.m6.GENERATE_NEW_ADDRESS,"Generate New Address Failed",this.CHILD_API_URL+u.N.NEW_ADDRESS_API+"?type="+t.payload.addressId,e),(0,s.of)({type:m.Zn})))))))),this.setNewAddress=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.i_),(0,c.U)(t=>(this.logger.info(t.payload),t.payload))),{dispatch:!1}),this.SetChannelTransaction=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.s8),(0,a.z)(t=>(this.store.dispatch(new m.Fk(f.m6.SEND_FUNDS)),this.store.dispatch(new g.np({action:"SetChannelTransaction",status:f.Bn.INITIATED})),this.httpClient.post(this.CHILD_API_URL+u.N.TRANSACTIONS_API,{amount:t.payload.amount,address:t.payload.address,sendAll:t.payload.sendAll,fees:t.payload.fees,blocks:t.payload.blocks}).pipe((0,c.U)(t=>(this.logger.info(t),this.store.dispatch(new g.np({action:"SetChannelTransaction",status:f.Bn.COMPLETED})),this.store.dispatch(new m.Iv(f.m6.SEND_FUNDS)),this.store.dispatch(new g.eL),this.store.dispatch(new g.D8("Blockchain")),this.store.dispatch(new g.jh),{type:g.__,payload:t})),(0,h.K)(t=>(this.handleErrorWithoutAlert("SetChannelTransaction",f.m6.SEND_FUNDS,"Sending Fund Failed.",t),(0,s.of)({type:m.Zn})))))))),this.fetchForwardingHistory=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.LC),(0,a.z)(t=>(this.store.dispatch(new g.np({action:"GetForwardingHistory",status:f.Bn.INITIATED})),this.httpClient.post(this.CHILD_API_URL+u.N.SWITCH_API,{num_max_events:t.payload.num_max_events,index_offset:t.payload.index_offset,end_time:t.payload.end_time,start_time:t.payload.start_time}).pipe((0,c.U)(t=>(this.logger.info(t),this.store.dispatch(new g.np({action:"GetForwardingHistory",status:f.Bn.COMPLETED})),{type:g.x,payload:t})),(0,h.K)(t=>(this.handleErrorWithAlert("GetForwardingHistory",f.m6.NO_SPINNER,"Get Forwarding History Failed",this.CHILD_API_URL+u.N.SWITCH_API,t),(0,s.of)({type:m.Zn})))))))),this.queryRoutesFetch=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.on),(0,a.z)(t=>{let e=this.CHILD_API_URL+u.N.NETWORK_API+"/routes/"+t.payload.destPubkey+"/"+t.payload.amount;return t.payload.outgoingChanId&&(e=e+"?outgoing_chan_id="+t.payload.outgoingChanId),this.httpClient.get(e).pipe((0,c.U)(t=>(this.logger.info(t),{type:g.qs,payload:t})),(0,h.K)(t=>(this.store.dispatch(new g.lO({})),this.handleErrorWithAlert("GetQueryRoutes",f.m6.NO_SPINNER,"Get Query Routes Failed",this.CHILD_API_URL+u.N.NETWORK_API,t),(0,s.of)({type:m.Zn}))))}))),this.setQueryRoutes=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.qs),(0,c.U)(t=>t.payload)),{dispatch:!1}),this.genSeed=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.U8),(0,a.z)(t=>(this.store.dispatch(new m.Fk(f.m6.GEN_SEED)),this.httpClient.get(this.CHILD_API_URL+u.N.WALLET_API+"/genseed/"+t.payload).pipe((0,c.U)(t=>(this.logger.info("Generated GenSeed!"),this.logger.info(t),this.store.dispatch(new m.Iv(f.m6.GEN_SEED)),{type:g.ZV,payload:t.cipher_seed_mnemonic})),(0,h.K)(e=>(this.handleErrorWithAlert("GenSeed",f.m6.GEN_SEED,"Genseed Generation Failed",this.CHILD_API_URL+u.N.WALLET_API+"/genseed/"+t.payload,e),(0,s.of)({type:m.Zn})))))))),this.updateSelNodeOptions=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(m.SK),(0,a.z)(t=>this.httpClient.get(this.CHILD_API_URL+u.N.WALLET_API+"/updateSelNodeOptions").pipe((0,c.U)(t=>(this.logger.info("Update Sel Node Successfull"),this.logger.info(t),{type:m.Zn})),(0,h.K)(t=>(this.handleErrorWithAlert("UpdateSelectedNodeOptions",f.m6.NO_SPINNER,"Update macaroon for newly initialized node failed! Please check the macaroon path and restart the server!","Update Macaroon",t),(0,s.of)({type:m.Zn}))))))),this.genSeedResponse=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.ZV),(0,c.U)(t=>t.payload)),{dispatch:!1}),this.initWalletRes=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.hL),(0,c.U)(t=>t.payload)),{dispatch:!1}),this.initWallet=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.$L),(0,a.z)(t=>(this.store.dispatch(new m.Fk(f.m6.INITIALIZE_WALLET)),this.httpClient.post(this.CHILD_API_URL+u.N.WALLET_API+"/wallet/initwallet",{wallet_password:t.payload.pwd,cipher_seed_mnemonic:t.payload.cipher?t.payload.cipher:"",aezeed_passphrase:t.payload.passphrase?t.payload.passphrase:""}).pipe((0,c.U)(t=>(this.logger.info(t),this.store.dispatch(new m.Iv(f.m6.INITIALIZE_WALLET)),{type:g.hL,payload:t})),(0,h.K)(t=>(this.handleErrorWithAlert("InitWallet",f.m6.INITIALIZE_WALLET,"Wallet Initialization Failed",this.CHILD_API_URL+u.N.WALLET_API+"/initwallet",t),(0,s.of)({type:m.Zn})))))))),this.unlockWallet=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.As),(0,a.z)(t=>(this.store.dispatch(new m.Fk(f.m6.UNLOCK_WALLET)),this.httpClient.post(this.CHILD_API_URL+u.N.WALLET_API+"/wallet/unlockwallet",{wallet_password:t.payload.pwd}).pipe((0,c.U)(t=>(this.logger.info(t),this.logger.info("Successfully Unlocked!"),this.sessionService.setItem("lndUnlocked","true"),this.store.dispatch(new m.Iv(f.m6.UNLOCK_WALLET)),this.store.dispatch(new m.Fk(f.m6.WAIT_SYNC_NODE)),setTimeout(()=>{this.store.dispatch(new m.Iv(f.m6.WAIT_SYNC_NODE)),this.store.dispatch(new g.z6({loadPage:"HOME"}))},5e3),{type:m.Zn})),(0,h.K)(t=>(this.handleErrorWithAlert("UnlockWallet",f.m6.UNLOCK_WALLET,"Unlock Wallet Failed",this.CHILD_API_URL+u.N.WALLET_API+"/unlockwallet",t),(0,s.of)({type:m.Zn}))))))),{dispatch:!1}),this.peerLookup=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.gk),(0,a.z)(t=>(this.store.dispatch(new m.Fk(f.m6.SEARCHING_NODE)),this.store.dispatch(new g.np({action:"Lookup",status:f.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+u.N.NETWORK_API+"/node/"+t.payload).pipe((0,c.U)(t=>(this.logger.info(t),this.store.dispatch(new m.Iv(f.m6.SEARCHING_NODE)),this.store.dispatch(new g.np({action:"Lookup",status:f.Bn.COMPLETED})),{type:g.RP,payload:t})),(0,h.K)(e=>(this.handleErrorWithAlert("Lookup",f.m6.SEARCHING_NODE,"Peer Lookup Failed",this.CHILD_API_URL+u.N.NETWORK_API+"/node/"+t.payload,e),(0,s.of)({type:m.Zn})))))))),this.channelLookup=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.K4),(0,a.z)(t=>(this.store.dispatch(new m.Fk(t.payload.uiMessage)),this.store.dispatch(new g.np({action:"Lookup",status:f.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+u.N.NETWORK_API+"/edge/"+t.payload.channelID).pipe((0,c.U)(e=>(this.logger.info(e),this.store.dispatch(new m.Iv(t.payload.uiMessage)),this.store.dispatch(new g.np({action:"Lookup",status:f.Bn.COMPLETED})),{type:g.RP,payload:e})),(0,h.K)(e=>(this.handleErrorWithAlert("Lookup",t.payload.uiMessage,"Channel Lookup Failed",this.CHILD_API_URL+u.N.NETWORK_API+"/edge/"+t.payload.channelID,e),this.store.dispatch(new g.O_({})),(0,s.of)({type:m.Zn})))))))),this.invoiceLookup=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.lf),(0,a.z)(t=>(this.store.dispatch(new m.Fk(f.m6.SEARCHING_INVOICE)),this.store.dispatch(new g.np({action:"Lookup",status:f.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+u.N.INVOICES_API+"/"+t.payload).pipe((0,c.U)(t=>(this.logger.info(t),this.store.dispatch(new m.Iv(f.m6.SEARCHING_INVOICE)),this.store.dispatch(new g.np({action:"Lookup",status:f.Bn.COMPLETED})),this.store.dispatch(new g.cU(t)),{type:g.RP,payload:t})),(0,h.K)(t=>(this.handleErrorWithoutAlert("Lookup",f.m6.SEARCHING_INVOICE,"Invoice Lookup Failed",t),this.store.dispatch(new m.Lw({message:"Invoice Refresh Failed.",type:"ERROR"})),(0,s.of)({type:m.Zn})))))))),this.setLookup=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.RP),(0,c.U)(t=>(this.logger.info(t.payload),t.payload))),{dispatch:!1}),this.getRestoreChannelList=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.AV),(0,a.z)(t=>(this.store.dispatch(new g.np({action:"RestoreChannelsList",status:f.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+u.N.CHANNELS_BACKUP_API+"/restore/list").pipe((0,c.U)(t=>(this.logger.info(t),this.store.dispatch(new g.np({action:"RestoreChannelsList",status:f.Bn.COMPLETED})),{type:g.S,payload:t||{all_restore_exists:!1,files:[]}})),(0,h.K)(t=>(this.handleErrorWithAlert("RestoreChannelsList",f.m6.NO_SPINNER,"Restore Channels List Failed",this.CHILD_API_URL+u.N.CHANNELS_BACKUP_API,t),(0,s.of)({type:m.Zn})))))))),this.setRestoreChannelList=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.S),(0,c.U)(t=>(this.logger.info(t.payload),t.payload))),{dispatch:!1}),this.allLightningTransactionsFetch=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(g.YA),(0,a.z)(t=>(this.store.dispatch(new g.np({action:"FetchLightningTransactions",status:f.Bn.INITIATED})),this.httpClient.get(this.CHILD_API_URL+u.N.PAYMENTS_API+"/alltransactions").pipe((0,c.U)(t=>(this.logger.info(t),this.store.dispatch(new g.np({action:"FetchLightningTransactions",status:f.Bn.COMPLETED})),{type:g.tB,payload:t})),(0,h.K)(t=>(this.handleErrorWithoutAlert("FetchLightningTransactions",f.m6.NO_SPINNER,"Fetching All Lightning Transaction Failed.",t),(0,s.of)({type:m.Zn})))))))),this.store.select("lnd").pipe((0,l.R)(this.unSubs[0])).subscribe(t=>{t.apisCallStatus.FetchInfo.status!==f.Bn.COMPLETED&&t.apisCallStatus.FetchInfo.status!==f.Bn.ERROR||t.apisCallStatus.FetchFees.status!==f.Bn.COMPLETED&&t.apisCallStatus.FetchFees.status!==f.Bn.ERROR||t.apisCallStatus.FetchBalanceBlockchain.status!==f.Bn.COMPLETED&&t.apisCallStatus.FetchBalanceBlockchain.status!==f.Bn.ERROR||t.apisCallStatus.FetchAllChannels.status!==f.Bn.COMPLETED&&t.apisCallStatus.FetchAllChannels.status!==f.Bn.ERROR||t.apisCallStatus.FetchPendingChannels.status!==f.Bn.COMPLETED&&t.apisCallStatus.FetchPendingChannels.status!==f.Bn.ERROR||this.flgInitialized||(this.store.dispatch(new m.Iv(f.m6.INITALIZE_NODE_DATA)),this.flgInitialized=!0)})}initializeRemainingData(t,e){this.sessionService.setItem("lndUnlocked","true");const i={identity_pubkey:t.identity_pubkey,alias:t.alias,testnet:t.testnet,chains:t.chains,uris:t.uris,version:t.version?t.version.split(" ")[0]:""};this.store.dispatch(new m.Fk(f.m6.INITALIZE_NODE_DATA)),this.store.dispatch(new m.e6(i)),this.store.dispatch(new g.od),this.store.dispatch(new g.D8("Blockchain")),this.store.dispatch(new g.jh),this.store.dispatch(new g.Zb),this.store.dispatch(new g.Ao),this.store.dispatch(new g.N9),this.store.dispatch(new g.h7),this.store.dispatch(new g.dw),this.store.dispatch(new g._O({num_max_invoices:10,reversed:!0})),this.store.dispatch(new g.xt({max_payments:10,reversed:!0}));let n=this.location.path();n.includes("/cl/")?n=n.replace("/cl/","/lnd/"):n.includes("/ecl/")&&(n=n.replace("/ecl/","/lnd/")),(n.includes("/unlock")||n.includes("/login")||n.includes("/error")||""===n||"HOME"===e||n.includes("?access-key="))&&(n="/lnd/home"),this.router.navigate([n])}handleErrorWithoutAlert(t,e,i,n){this.logger.error("ERROR IN: "+t+"\n"+JSON.stringify(n)),401===n.status?(this.logger.info("Redirecting to Login"),this.store.dispatch(new m.Ac),this.store.dispatch(new m.RD),this.store.dispatch(new m.Lw("Authentication Failed. Redirecting to Login."))):(this.store.dispatch(new m.Iv(e)),this.store.dispatch(new g.np({action:t,status:f.Bn.ERROR,statusCode:n.status.toString(),message:this.commonService.extractErrorMessage(n,i)})))}handleErrorWithAlert(t,e,i,n,r){if(this.logger.error(r),401===r.status)this.logger.info("Redirecting to Login"),this.store.dispatch(new m.Ac),this.store.dispatch(new m.RD),this.store.dispatch(new m.Lw("Authentication Failed. Redirecting to Login."));else{this.store.dispatch(new m.Iv(e));const s=this.commonService.extractErrorMessage(r);this.store.dispatch(new m.wu({data:{type:"ERROR",alertTitle:i,message:{code:r.status,message:s,URL:n},component:p.H}})),this.store.dispatch(new g.np({action:t,status:f.Bn.ERROR,statusCode:r.status.toString(),message:s,URL:n}))}}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(y.LFG(n.eX),y.LFG(b.eN),y.LFG(v.yh),y.LFG(_.mQ),y.LFG(w.v),y.LFG(x.m),y.LFG(C.uw),y.LFG(A.F0),y.LFG(S.Ye))},t.\u0275prov=y.Yz7({token:t,factory:t.\u0275fac}),t})()},4979:(t,e,i)=>{"use strict";i.d(e,{mw:()=>c,H9:()=>u});var n=i(964),r=i(9421),s=i(5678);let o=!1,a=!1;const l={apisCallStatus:{FetchInfo:{status:r.Bn.UN_INITIATED},FetchFees:{status:r.Bn.UN_INITIATED},FetchPeers:{status:r.Bn.UN_INITIATED},FetchClosedChannels:{status:r.Bn.UN_INITIATED},FetchPendingChannels:{status:r.Bn.UN_INITIATED},FetchAllChannels:{status:r.Bn.UN_INITIATED},FetchBalanceBlockchain:{status:r.Bn.UN_INITIATED},FetchInvoices:{status:r.Bn.UN_INITIATED},FetchPayments:{status:r.Bn.UN_INITIATED},GetForwardingHistory:{status:r.Bn.UN_INITIATED},FetchUTXOs:{status:r.Bn.UN_INITIATED},FetchTransactions:{status:r.Bn.UN_INITIATED},FetchLightningTransactions:{status:r.Bn.UN_INITIATED},FetchNetwork:{status:r.Bn.UN_INITIATED}},nodeSettings:{userPersona:r.ol.OPERATOR,fiatConversion:!1,channelBackupPath:"",currencyUnits:[],selCurrencyUnit:"",lnImplementation:"",swapServerUrl:""},information:{},peers:[],fees:{},networkInfo:{},blockchainBalance:{total_balance:-1},allChannels:[],closedChannels:[],pendingChannels:{},numberOfActiveChannels:0,numberOfInactiveChannels:0,numberOfPendingChannels:{open:{num_channels:0,limbo_balance:0},closing:{num_channels:0,limbo_balance:0},force_closing:{num_channels:0,limbo_balance:0},waiting_close:{num_channels:0,limbo_balance:0},total_channels:0,total_limbo_balance:0},totalCapacityActive:0,totalCapacityInactive:0,totalLocalBalance:-1,totalRemoteBalance:-1,totalInvoices:-1,transactions:[],utxos:[],payments:{payments:[]},invoices:{invoices:[]},allLightningTransactions:{paymentsAll:null,invoicesAll:null},forwardingHistory:{}};function c(t=l,e){switch(e.type){case s.JE:const i=t.apisCallStatus;return i[e.payload.action]={status:e.payload.status,statusCode:e.payload.statusCode,message:e.payload.message,URL:e.payload.URL,filePath:e.payload.filePath},Object.assign(Object.assign({},t),{apisCallStatus:i});case s.Os:return Object.assign(Object.assign({},t),{nodeSettings:e.payload});case s.AL:return Object.assign(Object.assign({},l),{nodeSettings:e.payload});case s.Uy:return Object.assign(Object.assign({},t),{information:e.payload});case s.Ah:return Object.assign(Object.assign({},t),{peers:e.payload});case s.pK:const n=[...t.peers],r=t.peers.findIndex(t=>t.pub_key===e.payload.pubkey);return r>-1&&n.splice(r,1),Object.assign(Object.assign({},t),{peers:n});case s.c_:const c=t.invoices;return c.invoices.unshift(e.payload),Object.assign(Object.assign({},t),{invoices:c});case s.aB:const h=t.invoices;return h.invoices=h.invoices.map(t=>t.r_hash===e.payload.r_hash?e.payload:t),Object.assign(Object.assign({},t),{invoices:h});case s.HS:return Object.assign(Object.assign({},t),{fees:e.payload});case s.S1:return Object.assign(Object.assign({},t),{closedChannels:e.payload});case s.oS:return Object.assign(Object.assign({},t),{pendingChannels:e.payload.channels,numberOfPendingChannels:e.payload.pendingChannels});case s.P2:let u=0,d=0,p=0,f=0,m=0,g=0;return e.payload&&e.payload.forEach(t=>{t.local_balance||(t.local_balance=0),!0===t.active?(m+=+t.local_balance,p+=1,t.local_balance?u=+u+ +t.local_balance:t.local_balance=0,t.remote_balance?d=+d+ +t.remote_balance:t.remote_balance=0):(g+=+t.local_balance,f+=1)}),Object.assign(Object.assign({},t),{allChannels:e.payload,numberOfActiveChannels:p,numberOfInactiveChannels:f,totalCapacityActive:m,totalCapacityInactive:g,totalLocalBalance:u,totalRemoteBalance:d});case s.bq:const y=[...t.allChannels],b=t.allChannels.findIndex(t=>t.channel_point===e.payload.channelPoint);return b>-1&&y.splice(b,1),Object.assign(Object.assign({},t),{allChannels:y});case s.hn:return"Blockchain"===e.payload.target?Object.assign(Object.assign({},t),{blockchainBalance:e.payload.balance}):Object.assign({},t);case s._s:return Object.assign(Object.assign({},t),{networkInfo:e.payload});case s._V:return Object.assign(Object.assign({},t),{invoices:e.payload});case s.mU:return Object.assign(Object.assign({},t),{totalInvoices:e.payload});case s.kz:if(o=!0,e.payload.length&&a){const i=[...t.utxos];return i.forEach(t=>{const i=e.payload.find(e=>e.tx_hash===t.outpoint.txid_str);t.label=i&&i.label?i.label:""}),Object.assign(Object.assign({},t),{utxos:i,transactions:e.payload})}return Object.assign(Object.assign({},t),{transactions:e.payload});case s.b:if(a=!0,e.payload.length&&o){const i=[...t.transactions];e.payload.forEach(t=>{const e=i.find(e=>e.tx_hash===t.outpoint.txid_str);t.label=e&&e.label?e.label:""})}return Object.assign(Object.assign({},t),{utxos:e.payload});case s.Bj:return Object.assign(Object.assign({},t),{payments:e.payload});case s.tB:return Object.assign(Object.assign({},t),{allLightningTransactions:e.payload});case s.x:if(e.payload.forwarding_events){const i=[...t.allChannels,...t.closedChannels];e.payload.forwarding_events.forEach(t=>{if(i&&i.length>0)for(let e=0;et.information)},1827:(t,e,i)=>{"use strict";i.d(e,{v:()=>V});var n=i(4608),r=i(5291),s=i(9421),o=i(1572),a=i(3869),l=i(1084),c=i(1403),h=i(3722),u=i(1511),d=i(377),p=i(7439),f=i(7592),m=i(5980),g=i(7038),y=i(7679),b=i(3600),v=i(5001),_=i(6828),w=i(3691),x=i(6880),C=i(2609);const A=["scrollContainer"];function S(t,e){if(1&t&&o._UZ(0,"qrcode",32),2&t){const t=o.oxw();o.Q6J("qrdata",t.invoice.payment_request)("margin",2)("width",t.qrWidth)("errorCorrectionLevel","L")("allowEmptyString",!0)}}function E(t,e){1&t&&(o.TgZ(0,"span",33),o._uU(1,"N/A"),o.qZA())}function k(t,e){if(1&t&&o._UZ(0,"qrcode",32),2&t){const t=o.oxw();o.Q6J("qrdata",t.invoice.payment_request)("margin",2)("width",t.qrWidth)("errorCorrectionLevel","L")("allowEmptyString",!0)}}function T(t,e){1&t&&(o.TgZ(0,"span",34),o._uU(1,"QR Code Not Applicable"),o.qZA())}function M(t,e){1&t&&o._UZ(0,"mat-divider",22),2&t&&o.Q6J("inset",!0)}function L(t,e){1&t&&(o.ynx(0),o._uU(1," (zero amount) "),o.BQk())}const I=function(t){return{"mr-0":t}};function O(t,e){if(1&t&&o._UZ(0,"span",51),2&t){const t=o.oxw(4);o.Q6J("ngClass",o.VKq(1,I,t.screenSize===t.screenSizeEnum.XS))}}function D(t,e){if(1&t&&o._UZ(0,"span",52),2&t){const t=o.oxw(4);o.Q6J("ngClass",o.VKq(1,I,t.screenSize===t.screenSizeEnum.XS))}}function R(t,e){if(1&t&&o._UZ(0,"span",53),2&t){const t=o.oxw(4);o.Q6J("ngClass",o.VKq(1,I,t.screenSize===t.screenSizeEnum.XS))}}function N(t,e){if(1&t&&(o.TgZ(0,"div",40),o.TgZ(1,"div",45),o.TgZ(2,"span",46),o.YNc(3,O,1,3,"span",47),o.YNc(4,D,1,3,"span",48),o.YNc(5,R,1,3,"span",49),o._uU(6),o.qZA(),o.TgZ(7,"span",50),o._uU(8),o.ALo(9,"number"),o.qZA(),o.qZA(),o._UZ(10,"mat-divider",22),o.qZA()),2&t){const t=e.$implicit,i=o.oxw(3);o.xp6(3),o.Q6J("ngIf","SETTLED"===t.state),o.xp6(1),o.Q6J("ngIf","ACCEPTED"===t.state),o.xp6(1),o.Q6J("ngIf","CANCELED"===t.state),o.xp6(1),o.hij(" ",t.chan_id," "),o.xp6(2),o.Oqu(o.xi3(9,6,+t.amt_msat/1e3||0,i.getDecimalFormat(t))),o.xp6(2),o.Q6J("inset",!0)}}function P(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"div",17),o.TgZ(1,"mat-expansion-panel",38),o.NdJ("opened",function(){return o.CHM(t),o.oxw(2).flgOpened=!0})("closed",function(){return o.CHM(t),o.oxw(2).onExpansionClosed()}),o.TgZ(2,"mat-expansion-panel-header"),o.TgZ(3,"mat-panel-title"),o.TgZ(4,"h4",39),o._uU(5,"HTLCs"),o.qZA(),o.qZA(),o.qZA(),o.TgZ(6,"div",40),o.TgZ(7,"div",41),o.TgZ(8,"span",42),o._uU(9,"Channel ID"),o.qZA(),o.TgZ(10,"span",43),o._uU(11,"Amount (Sats)"),o.qZA(),o.qZA(),o._UZ(12,"mat-divider",22),o.YNc(13,N,11,9,"div",44),o.qZA(),o.qZA(),o.qZA()}if(2&t){const t=o.oxw(2);o.xp6(12),o.Q6J("inset",!0),o.xp6(1),o.Q6J("ngForOf",t.invoice.htlcs)}}function F(t,e){1&t&&o._UZ(0,"mat-divider",22),2&t&&o.Q6J("inset",!0)}function Z(t,e){if(1&t&&(o.TgZ(0,"div"),o._UZ(1,"mat-divider",22),o.TgZ(2,"div",17),o.TgZ(3,"div",23),o.TgZ(4,"h4",19),o._uU(5,"R Preimage"),o.qZA(),o.TgZ(6,"span",24),o._uU(7),o.qZA(),o.qZA(),o.qZA(),o._UZ(8,"mat-divider",22),o.TgZ(9,"div",17),o.TgZ(10,"div",35),o.TgZ(11,"h4",19),o._uU(12,"State"),o.qZA(),o.TgZ(13,"span",24),o._uU(14),o.qZA(),o.qZA(),o.TgZ(15,"div",36),o.TgZ(16,"h4",19),o._uU(17,"Expiry"),o.qZA(),o.TgZ(18,"span",24),o._uU(19),o.qZA(),o.qZA(),o.TgZ(20,"div",36),o.TgZ(21,"h4",19),o._uU(22,"Private Routing Hints"),o.qZA(),o.TgZ(23,"span",24),o._uU(24),o.qZA(),o.qZA(),o.qZA(),o._UZ(25,"mat-divider",22),o.YNc(26,P,14,2,"div",37),o.YNc(27,F,1,1,"mat-divider",14),o.qZA()),2&t){const t=o.oxw();o.xp6(1),o.Q6J("inset",!0),o.xp6(6),o.Oqu(t.invoice.r_preimage||"-"),o.xp6(1),o.Q6J("inset",!0),o.xp6(6),o.Oqu(t.invoice.state),o.xp6(5),o.Oqu(t.invoice.expiry),o.xp6(5),o.Oqu(t.invoice.private?"Yes":"No"),o.xp6(1),o.Q6J("inset",!0),o.xp6(1),o.Q6J("ngIf",t.invoice.htlcs&&t.invoice.htlcs.length>0),o.xp6(1),o.Q6J("ngIf",t.invoice.htlcs&&t.invoice.htlcs.length>0)}}function B(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"div",54),o.TgZ(1,"button",55),o.NdJ("click",function(){return o.CHM(t),o.oxw().onScrollDown()}),o.TgZ(2,"mat-icon",56),o._uU(3,"arrow_downward"),o.qZA(),o.qZA(),o.qZA()}}function U(t,e){1&t&&(o.TgZ(0,"p"),o._uU(1,"Show Advanced"),o.qZA())}function q(t,e){1&t&&(o.TgZ(0,"p"),o._uU(1,"Hide Advanced"),o.qZA())}function z(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"button",57),o.NdJ("copied",function(e){return o.CHM(t),o.oxw().onCopyPayment(e)}),o._uU(1),o.qZA()}if(2&t){const t=o.oxw();o.Q6J("payload",t.invoice.payment_request),o.xp6(1),o.Oqu(t.screenSize===t.screenSizeEnum.XS?"Copy Payment":"Copy Payment Request")}}function H(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"button",58),o.NdJ("click",function(){return o.CHM(t),o.oxw().onClose()}),o._uU(1,"OK"),o.qZA()}}const Y=function(t){return{"display-none":t}},G=function(t){return{"xs-scroll-y":t}},j=function(t){return{"h-46":t}};let V=(()=>{class t{constructor(t,e,i,n,o){this.dialogRef=t,this.data=e,this.logger=i,this.commonService=n,this.snackBar=o,this.faReceipt=r.dLy,this.showAdvanced=!1,this.newlyAdded=!1,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=s.cu,this.flgOpened=!1}set container(t){t&&(this.scrollContainer=t)}ngOnInit(){this.invoice=this.data.invoice,this.newlyAdded=this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===s.cu.XS&&(this.qrWidth=220)}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced,this.flgOpened=!1}onScrollDown(){this.scrollContainer.nativeElement.scrollTop=this.scrollContainer.nativeElement.scrollTop+60}onExpansionClosed(){this.flgOpened=!1,this.scrollContainer.nativeElement.scrollTop=0}onCopyPayment(t){this.snackBar.open("Payment request copied."),this.logger.info("Copied Text: "+t)}getDecimalFormat(t){return t.amt_msat<1e3?"1.0-4":"1.0-0"}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(n.so),o.Y36(n.WI),o.Y36(a.mQ),o.Y36(l.v),o.Y36(c.ux))},t.\u0275cmp=o.Xpm({type:t,selectors:[["rtl-invoice-information"]],viewQuery:function(t,e){if(1&t&&o.Gf(A,5),2&t){let t;o.iGM(t=o.CRH())&&(e.container=t.first)}},decls:63,vars:44,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign.gt-sm","space-between stretch"],["fxFlex","35",1,"modal-qr-code-container","padding-gap-large",3,"fxLayoutAlign","ngClass"],[3,"qrdata","margin","width","errorCorrectionLevel","allowEmptyString",4,"ngIf"],["class","font-size-300",4,"ngIf"],["fxLayout","column","fxFlex","65"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large",3,"ngClass"],["fxLayout","column"],["fxFlex","30",1,"modal-qr-code-container","padding-gap",3,"fxLayoutAlign","ngClass"],["class","font-size-120",4,"ngIf"],["class","my-1",3,"inset",4,"ngIf"],[3,"perfectScrollbar","ngClass"],["scrollContainer",""],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[4,"ngIf"],[1,"my-1",3,"inset"],["fxFlex","100"],[1,"overflow-wrap","foreground-secondary-text"],["fxLayout","row","fxLayoutAlign","start end","class","btn-sticky-container padding-gap-x-large",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center","fxFlex","100",1,"padding-gap-x-large","padding-gap-bottom-large"],["mat-stroked-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["hideAdvancedText",""],["autoFocus","","mat-flat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["autoFocus","","mat-flat-button","","color","primary","tabindex","2","type","button",3,"click",4,"ngIf"],[3,"qrdata","margin","width","errorCorrectionLevel","allowEmptyString"],[1,"font-size-300"],[1,"font-size-120"],["fxFlex","34"],["fxFlex","33"],["fxLayout","row",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"flat-expansion-panel",3,"opened","closed"],["fxLayoutAlign","start center","fxFlex","100",1,"font-bold-500"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100"],["fxLayout","row","fxLayoutAlign","start start","fxFlex","100",1,"mt-minus-1"],["fxFlex","60",1,"foreground-secondary-text","font-bold-500"],["fxFlex","40",1,"foreground-secondary-text","font-bold-500"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start start","fxFlex","100"],["fxFlex","60",1,"foreground-secondary-text"],["class","dot green","matTooltip","Settled","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot yellow","matTooltip","Accepted","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red","matTooltip","Cancelled","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["fxFlex","40",1,"foreground-secondary-text"],["matTooltip","Settled","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Accepted","matTooltipPosition","right",1,"dot","yellow",3,"ngClass"],["matTooltip","Cancelled","matTooltipPosition","right",1,"dot","red",3,"ngClass"],["fxLayout","row","fxLayoutAlign","start end",1,"btn-sticky-container","padding-gap-x-large"],["mat-mini-fab","","aria-label","Scroll Down","fxLayoutAlign","center center",3,"click"],["fxLayoutAlign","center center"],["autoFocus","","mat-flat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["autoFocus","","mat-flat-button","","color","primary","tabindex","2","type","button",3,"click"]],template:function(t,e){if(1&t&&(o.TgZ(0,"div",0),o.TgZ(1,"div",1),o.YNc(2,S,1,5,"qrcode",2),o.YNc(3,E,2,0,"span",3),o.qZA(),o.TgZ(4,"div",4),o.TgZ(5,"mat-card-header",5),o.TgZ(6,"div",6),o._UZ(7,"fa-icon",7),o.TgZ(8,"span",8),o._uU(9),o.qZA(),o.qZA(),o.TgZ(10,"button",9),o.NdJ("click",function(){return e.onClose()}),o._uU(11,"X"),o.qZA(),o.qZA(),o.TgZ(12,"mat-card-content",10),o.TgZ(13,"div",11),o.TgZ(14,"div",12),o.YNc(15,k,1,5,"qrcode",2),o.YNc(16,T,2,0,"span",13),o.qZA(),o.YNc(17,M,1,1,"mat-divider",14),o.TgZ(18,"div",15,16),o.TgZ(20,"div",17),o.TgZ(21,"div",18),o.TgZ(22,"h4",19),o._uU(23),o.qZA(),o.TgZ(24,"span",20),o._uU(25),o.ALo(26,"number"),o.YNc(27,L,2,0,"ng-container",21),o.qZA(),o.qZA(),o.TgZ(28,"div",18),o.TgZ(29,"h4",19),o._uU(30,"Memo"),o.qZA(),o.TgZ(31,"span",20),o._uU(32),o.qZA(),o.qZA(),o.qZA(),o._UZ(33,"mat-divider",22),o.TgZ(34,"div",17),o.TgZ(35,"div",18),o.TgZ(36,"h4",19),o._uU(37,"Date Created"),o.qZA(),o.TgZ(38,"span",20),o._uU(39),o.ALo(40,"date"),o.qZA(),o.qZA(),o.TgZ(41,"div",18),o.TgZ(42,"h4",19),o._uU(43,"Date Settled"),o.qZA(),o.TgZ(44,"span",20),o._uU(45),o.ALo(46,"date"),o.qZA(),o.qZA(),o.qZA(),o._UZ(47,"mat-divider",22),o.TgZ(48,"div",17),o.TgZ(49,"div",23),o.TgZ(50,"h4",19),o._uU(51,"Payment Request"),o.qZA(),o.TgZ(52,"span",24),o._uU(53),o.qZA(),o.qZA(),o.qZA(),o.YNc(54,Z,28,9,"div",21),o.qZA(),o.qZA(),o.qZA(),o.YNc(55,B,4,0,"div",25),o.TgZ(56,"div",26),o.TgZ(57,"button",27),o.NdJ("click",function(){return e.onShowAdvanced()}),o.YNc(58,U,2,0,"p",28),o.YNc(59,q,2,0,"ng-template",null,29,o.W1O),o.qZA(),o.YNc(61,z,2,2,"button",30),o.YNc(62,H,2,0,"button",31),o.qZA(),o.qZA(),o.qZA()),2&t){const t=o.MAs(60);o.xp6(1),o.Q6J("fxLayoutAlign",e.invoice.payment_request&&""!==e.invoice.payment_request?"center start":"center center")("ngClass",o.VKq(36,Y,e.screenSize===e.screenSizeEnum.XS||e.screenSize===e.screenSizeEnum.SM)),o.xp6(1),o.Q6J("ngIf",e.invoice.payment_request&&""!==e.invoice.payment_request),o.xp6(1),o.Q6J("ngIf",!e.invoice.payment_request||""===e.invoice.payment_request),o.xp6(4),o.Q6J("icon",e.faReceipt),o.xp6(2),o.Oqu(e.screenSize===e.screenSizeEnum.XS?e.newlyAdded?"Created":"Invoice":e.newlyAdded?"Invoice Created":"Invoice Information"),o.xp6(3),o.Q6J("ngClass",o.VKq(38,G,e.screenSize===e.screenSizeEnum.XS)),o.xp6(2),o.Q6J("fxLayoutAlign",e.invoice.payment_request&&""!==e.invoice.payment_request?"center start":"center center")("ngClass",o.VKq(40,Y,e.screenSize!==e.screenSizeEnum.XS&&e.screenSize!==e.screenSizeEnum.SM)),o.xp6(1),o.Q6J("ngIf",e.invoice.payment_request&&""!==e.invoice.payment_request),o.xp6(1),o.Q6J("ngIf",!e.invoice.payment_request||""===e.invoice.payment_request),o.xp6(1),o.Q6J("ngIf",e.screenSize===e.screenSizeEnum.XS||e.screenSize===e.screenSizeEnum.SM),o.xp6(1),o.Q6J("ngClass",o.VKq(42,j,e.invoice.htlcs&&e.invoice.htlcs.length>0&&e.showAdvanced)),o.xp6(5),o.Oqu(e.screenSize===e.screenSizeEnum.XS?"Amount":"Amount Requested"),o.xp6(2),o.hij("",o.lcZ(26,28,e.invoice.value||0)," Sats"),o.xp6(2),o.Q6J("ngIf",!e.invoice.value),o.xp6(5),o.Oqu(e.invoice.memo),o.xp6(1),o.Q6J("inset",!0),o.xp6(6),o.Oqu(o.xi3(40,30,1e3*e.invoice.creation_date,"dd/MMM/YYYY HH:mm")),o.xp6(6),o.Oqu(0!=+e.invoice.settle_date?o.xi3(46,33,1e3*+e.invoice.settle_date,"dd/MMM/YYYY HH:mm"):"-"),o.xp6(2),o.Q6J("inset",!0),o.xp6(6),o.Oqu(e.invoice.payment_request||"N/A"),o.xp6(1),o.Q6J("ngIf",e.showAdvanced),o.xp6(1),o.Q6J("ngIf",e.invoice.htlcs&&e.invoice.htlcs.length>0&&e.showAdvanced&&e.flgOpened),o.xp6(3),o.Q6J("ngIf",!e.showAdvanced)("ngIfElse",t),o.xp6(3),o.Q6J("ngIf",e.invoice.payment_request&&""!==e.invoice.payment_request),o.xp6(1),o.Q6J("ngIf",!e.invoice.payment_request||""===e.invoice.payment_request)}},directives:[h.xw,h.Wh,h.yH,u.mk,d.oO,u.O5,p.dk,f.BN,m.lW,p.dn,g.$V,y.d,b.V,v.ib,v.yz,v.yK,u.sg,_.gM,w.Hw,x.h,C.y],pipes:[u.JJ,u.uU],styles:[""]}),t})()},4833:(t,e,i)=>{"use strict";i.d(e,{_:()=>r,J:()=>s});var n=i(709);const r=[(0,n.X$)("opacityAnimation",[(0,n.eR)(":enter",[(0,n.oB)({opacity:0}),(0,n.jt)("1000ms ease-in",(0,n.oB)({opacity:1}))]),(0,n.eR)(":leave",[(0,n.jt)("0ms",(0,n.oB)({opacity:0}))])])],s=[(0,n.X$)("fadeIn",[(0,n.eR)("void => *",[]),(0,n.eR)("* => void",[]),(0,n.eR)("* => *",[(0,n.jt)(800,(0,n.F4)([(0,n.oB)({opacity:0,transform:"translateY(100%)"}),(0,n.oB)({opacity:1,transform:"translateY(0%)"})]))])])]},2865:(t,e,i)=>{"use strict";i.d(e,{g:()=>r});var n=i(709);const r=(0,n.X$)("routeAnimation",[(0,n.eR)("* => *",[(0,n.IO)(":enter, :leave",(0,n.oB)({position:"fixed",width:"100%"}),{optional:!0}),(0,n.ru)([(0,n.IO)(":enter",[(0,n.oB)({transform:"translateX(100%)"}),(0,n.jt)("1000ms ease-in-out",(0,n.oB)({transform:"translateX(0%)"}))],{optional:!0}),(0,n.IO)(":leave",[(0,n.oB)({transform:"translateX(0%)"}),(0,n.jt)("1000ms ease-in-out",(0,n.oB)({transform:"translateX(-100%)"}))],{optional:!0})])])])},194:(t,e,i)=>{"use strict";i.d(e,{l:()=>r});var n=i(709);const r=[(0,n.X$)("sliderAnimation",[(0,n.SB)("*",(0,n.oB)({transform:"translateX(0)"})),(0,n.eR)("void => backward",[(0,n.oB)({transform:"translateX(-100%"}),(0,n.jt)("800ms")]),(0,n.eR)("backward => void",[(0,n.jt)("0ms",(0,n.oB)({transform:"translateX(100%)"}))]),(0,n.eR)("void => forward",[(0,n.oB)({transform:"translateX(100%"}),(0,n.jt)("800ms")]),(0,n.eR)("forward => void",[(0,n.jt)("0ms",(0,n.oB)({transform:"translateX(-100%)"}))])])]},2427:(t,e,i)=>{"use strict";i.d(e,{H:()=>p});var n=i(4608),r=i(1572),s=i(3869),o=i(3722),a=i(7439),l=i(5980),c=i(1511),h=i(7679),u=i(6880);function d(t,e){if(1&t&&(r.TgZ(0,"p",14),r._uU(1),r.qZA()),2&t){const t=r.oxw();r.xp6(1),r.Oqu(t.data.titleMessage)}}let p=(()=>{class t{constructor(t,e,i){this.dialogRef=t,this.data=e,this.logger=i,this.errorMessage=""}ngOnInit(){this.errorMessage="object"==typeof this.data.message.message?JSON.stringify(this.data.message.message):this.data.message.message,this.data.message||this.data.titleMessage||this.data.message||(this.data.titleMessage="Please Check Server Connection"),this.logger.info(this.data.message)}onClose(){this.dialogRef.close(!1)}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(n.so),r.Y36(n.WI),r.Y36(s.mQ))},t.\u0275cmp=r.Xpm({type:t,selectors:[["rtl-error-message"]],decls:29,vars:6,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large","error-alert-block"],["fxLayout","column"],["fxLayoutAlign","start center","class","pb-1",4,"ngIf"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"w-100","my-1"],[1,"word-break"],["fxLayout","row","fxLayoutAlign","end center"],["tabindex","1","autoFocus","","mat-flat-button","","color","primary","type","submit","default","",3,"mat-dialog-close"],["fxLayoutAlign","start center",1,"pb-1"]],template:function(t,e){1&t&&(r.TgZ(0,"div",0),r.TgZ(1,"div",1),r.TgZ(2,"mat-card-header",2),r.TgZ(3,"div",3),r.TgZ(4,"span",4),r._uU(5),r.qZA(),r.qZA(),r.TgZ(6,"button",5),r.NdJ("click",function(){return e.onClose()}),r._uU(7,"X"),r.qZA(),r.qZA(),r.TgZ(8,"mat-card-content",6),r.TgZ(9,"div",7),r.YNc(10,d,2,1,"p",8),r.TgZ(11,"h4",9),r._uU(12,"Error Code"),r.qZA(),r.TgZ(13,"span"),r._uU(14),r.qZA(),r._UZ(15,"mat-divider",10),r.TgZ(16,"h4",9),r._uU(17,"Error Message"),r.qZA(),r.TgZ(18,"span",11),r._uU(19),r.qZA(),r._UZ(20,"mat-divider",10),r.TgZ(21,"h4",9),r._uU(22,"API URL"),r.qZA(),r.TgZ(23,"span",11),r._uU(24),r.qZA(),r._UZ(25,"mat-divider",10),r.TgZ(26,"div",12),r.TgZ(27,"button",13),r._uU(28,"OK"),r.qZA(),r.qZA(),r.qZA(),r.qZA(),r.qZA(),r.qZA()),2&t&&(r.xp6(5),r.Oqu(e.data.alertTitle||"ERROR"),r.xp6(5),r.Q6J("ngIf",e.data.titleMessage),r.xp6(4),r.Oqu(e.data.message.code),r.xp6(5),r.Oqu(e.errorMessage),r.xp6(5),r.Oqu(e.data.message.URL),r.xp6(3),r.Q6J("mat-dialog-close",!1))},directives:[o.xw,o.yH,a.dk,o.Wh,l.lW,a.dn,c.O5,h.d,u.h,n.ZT],styles:[".display-block[_ngcontent-%COMP%]{display:block}"]}),t})()},8016:(t,e,i)=>{"use strict";i.d(e,{w:()=>h});var n=i(5291),r=i(1572),s=i(6853),o=i(3722),a=i(7592),l=i(7439),c=i(5980);let h=(()=>{class t{constructor(t){this.router=t,this.faTimes=n.NBC}goToHelp(){this.router.navigate(["/help"])}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(s.F0))},t.\u0275cmp=r.Xpm({type:t,selectors:[["rtl-not-found"]],decls:13,vars:1,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column",1,"padding-gap-large"],["fxLayout","column","fxLayoutAlign","start start"],[1,"box-text"],["fxLayout","row","fxLayoutAlign","center","fxFlex","80"],["mat-flat-button","","color","primary","type","button",1,"mt-2",3,"click"]],template:function(t,e){1&t&&(r.TgZ(0,"div",0),r._UZ(1,"fa-icon",1),r.TgZ(2,"span",2),r._uU(3,"Page Not Found"),r.qZA(),r.qZA(),r.TgZ(4,"div",3),r.TgZ(5,"mat-card"),r.TgZ(6,"mat-card-content",4),r.TgZ(7,"div",5),r.TgZ(8,"div",6),r._uU(9,"This page does not exist!"),r.qZA(),r.TgZ(10,"span",7),r.TgZ(11,"button",8),r.NdJ("click",function(){return e.goToHelp()}),r._uU(12,"Go To Help"),r.qZA(),r.qZA(),r.qZA(),r.qZA(),r.qZA(),r.qZA()),2&t&&(r.xp6(1),r.Q6J("icon",e.faTimes))},directives:[o.xw,o.Wh,a.BN,l.a8,l.dn,o.yH,c.lW],encapsulation:2}),t})()},5028:(t,e,i)=>{"use strict";i.d(e,{a:()=>Qt});var n=i(6073),r=i(9666),s=i(9568),o=i(4608),a=i(5291),l=i(4833),c=i(9421),h=i(1572),u=i(964),d=i(2969),p=i(1511),f=i(3869),m=i(6853),g=i(1084),y=i(3722),b=i(7439),v=i(5980),_=i(7753),w=i(5001),x=i(377),C=i(6828),A=i(7679);function S(t,e){1&t&&h.GkF(0)}function E(t,e){1&t&&h.GkF(0)}const k=function(t){return{"h-5":t}};function T(t,e){if(1&t&&(h.TgZ(0,"mat-expansion-panel",3),h.TgZ(1,"mat-expansion-panel-header"),h.TgZ(2,"mat-panel-title"),h.TgZ(3,"span",4),h._uU(4),h.ALo(5,"number"),h.qZA(),h.qZA(),h.qZA(),h.YNc(6,E,1,0,"ng-container",0),h.qZA()),2&t){const t=h.oxw(),e=h.MAs(4);h.Q6J("expanded",t.panelExpanded)("ngClass",h.VKq(7,k,!t.flgShowPanel)),h.xp6(4),h.AsE("Quote for ",t.termCaption," amount (",h.lcZ(5,5,t.quote.amount)," Sats)"),h.xp6(2),h.Q6J("ngTemplateOutlet",e)}}function M(t,e){if(1&t&&(h.TgZ(0,"div",17),h.TgZ(1,"h4",8),h._uU(2,"Prepay Amount (Sats)"),h.qZA(),h.TgZ(3,"span",9),h._uU(4),h.ALo(5,"number"),h.qZA(),h.qZA()),2&t){const t=h.oxw(2);h.xp6(4),h.Oqu(h.lcZ(5,1,null==t.quote?null:t.quote.prepay_amt_sat))}}function L(t,e){1&t&&h._UZ(0,"mat-divider",12)}function I(t,e){if(1&t&&(h.TgZ(0,"div",6),h.TgZ(1,"div",18),h.TgZ(2,"h4",8),h._uU(3,"Swap Server Node Pubkey"),h.qZA(),h.TgZ(4,"span",9),h._uU(5),h.qZA(),h.qZA(),h.qZA()),2&t){const t=h.oxw(2);h.xp6(5),h.Oqu(null==t.quote?null:t.quote.swap_payment_dest)}}function O(t,e){if(1&t&&(h.TgZ(0,"div",5),h.TgZ(1,"div",6),h.TgZ(2,"div",7),h.TgZ(3,"h4",8),h._uU(4,"Swap Fee (Sats)"),h.qZA(),h.TgZ(5,"span",9),h._uU(6),h.ALo(7,"number"),h.qZA(),h.qZA(),h.TgZ(8,"div",10),h.TgZ(9,"h4",8),h._uU(10),h.qZA(),h.TgZ(11,"span",9),h._uU(12),h.ALo(13,"number"),h.qZA(),h.qZA(),h.YNc(14,M,6,3,"div",11),h.qZA(),h._UZ(15,"mat-divider",12),h.TgZ(16,"div",6),h.TgZ(17,"div",13),h.TgZ(18,"h4",8),h._uU(19,"Max Off-chain Swap Routing Fee (Sats)"),h.qZA(),h.TgZ(20,"span",9),h._uU(21),h.ALo(22,"number"),h.qZA(),h.qZA(),h.TgZ(23,"div",14),h.TgZ(24,"h4",8),h._uU(25,"Max Off-chain Prepay Routing Fee (Sats)"),h.qZA(),h.TgZ(26,"span",9),h._uU(27,"36"),h.qZA(),h.qZA(),h.qZA(),h.YNc(28,L,1,0,"mat-divider",15),h.YNc(29,I,6,1,"div",16),h.qZA()),2&t){const t=h.oxw();h.xp6(2),h.Q6J("fxFlex",null!=t.quote&&t.quote.prepay_amt_sat?"30":"50"),h.xp6(4),h.Oqu(h.lcZ(7,9,null==t.quote?null:t.quote.swap_fee_sat)),h.xp6(2),h.Q6J("fxFlex",null!=t.quote&&t.quote.prepay_amt_sat?"30":"50"),h.xp6(2),h.Oqu(null!=t.quote&&t.quote.htlc_sweep_fee_sat?"HTLC Sweep Fee (Sats)":null!=t.quote&&t.quote.htlc_publish_fee_sat?"HTLC Publish Fee (Sats)":""),h.xp6(2),h.Oqu(h.lcZ(13,11,null!=t.quote&&t.quote.htlc_sweep_fee_sat?t.quote.htlc_sweep_fee_sat:null!=t.quote&&t.quote.htlc_publish_fee_sat?t.quote.htlc_publish_fee_sat:0)),h.xp6(2),h.Q6J("ngIf",null==t.quote?null:t.quote.prepay_amt_sat),h.xp6(7),h.Oqu(h.lcZ(22,13,(null==t.quote?null:t.quote.amount)*((null!=t.quote&&t.quote.off_chain_swap_routing_fee_percentage?null==t.quote?null:t.quote.off_chain_swap_routing_fee_percentage:2)/100))),h.xp6(7),h.Q6J("ngIf",""!==(null==t.quote?null:t.quote.swap_payment_dest)),h.xp6(1),h.Q6J("ngIf",""!==(null==t.quote?null:t.quote.swap_payment_dest))}}let D=(()=>{class t{constructor(){this.quote={},this.termCaption="",this.showPanel=!0,this.panelExpanded=!1,this.flgShowPanel=!1}ngOnInit(){setTimeout(()=>{this.flgShowPanel=!0},1200)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=h.Xpm({type:t,selectors:[["rtl-loop-quote"]],inputs:{quote:"quote",termCaption:"termCaption",showPanel:"showPanel",panelExpanded:"panelExpanded"},decls:5,vars:1,consts:[[4,"ngTemplateOutlet"],["informationBlock",""],["quoteDetailsBlock",""],["fxFlex","100",1,"flat-expansion-panel","mb-1",3,"expanded","ngClass"],["fxLayoutAlign","start center","fxFlex","100"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row"],["matTooltip","Estimated fee charged by the loop server for the swap",3,"fxFlex"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],["matTooltip","An estimate of the on-chain fee that needs to be paid to sweep the HTLC",3,"fxFlex"],["fxFlex","40","matTooltip","The part of the swap fee that is requested as a prepayment",4,"ngIf"],[1,"w-100","my-1"],["fxFlex","50","matTooltip","Maximum off-chain fee that may be paid for routing the payment amount to the server"],["fxFlex","50","matTooltip","Maximum off-chain fee that may be paid for routing the pre-payment amount to the server"],["class","w-100 my-1",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxFlex","40","matTooltip","The part of the swap fee that is requested as a prepayment"],["fxFlex","100","matTooltip","The node pubkey, where the swap payments will be sent"]],template:function(t,e){if(1&t&&(h.YNc(0,S,1,0,"ng-container",0),h.YNc(1,T,7,9,"ng-template",null,1,h.W1O),h.YNc(3,O,30,15,"ng-template",null,2,h.W1O)),2&t){const t=h.MAs(2),i=h.MAs(4);h.Q6J("ngTemplateOutlet",e.showPanel?t:i)}},directives:[p.tP,w.ib,y.yH,p.mk,x.oO,w.yz,w.yK,y.Wh,y.xw,C.gM,p.O5,A.d],pipes:[p.JJ],styles:[""]}),t})();var R=i(6283),N=i(6756),P=i(6880),F=i(7521),Z=i(3691),B=i(4810),U=i(5994);function q(t,e){1&t&&h.GkF(0)}function z(t,e){if(1&t&&(h.TgZ(0,"div",3),h.TgZ(1,"span",4),h._uU(2),h.qZA(),h.qZA()),2&t){const t=h.oxw();h.xp6(2),h.Oqu(null!=t.loopStatus&&t.loopStatus.error?null==t.loopStatus?null:t.loopStatus.error:"Unknown Error.")}}function H(t,e){if(1&t&&(h.TgZ(0,"div",3),h.TgZ(1,"div",5),h.TgZ(2,"div",6),h.TgZ(3,"h4",7),h._uU(4,"ID"),h.qZA(),h.TgZ(5,"span",4),h._uU(6),h.qZA(),h.qZA(),h.qZA(),h._UZ(7,"mat-divider",8),h.TgZ(8,"div",5),h.TgZ(9,"div",6),h.TgZ(10,"h4",7),h._uU(11,"HTLC Address"),h.qZA(),h.TgZ(12,"span",4),h._uU(13),h.qZA(),h.qZA(),h.qZA(),h.qZA()),2&t){const t=h.oxw();h.xp6(6),h.Oqu(null==t.loopStatus?null:t.loopStatus.id_bytes),h.xp6(7),h.Oqu(null==t.loopStatus?null:t.loopStatus.htlc_address)}}let Y=(()=>{class t{constructor(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=h.Xpm({type:t,selectors:[["rtl-loop-status"]],inputs:{loopStatus:"loopStatus"},decls:5,vars:1,consts:[[4,"ngTemplateOutlet"],["loopFailedBlock",""],["loopSuccessfulBlock",""],["fxLayout","column"],[1,"foreground-secondary-text"],["fxLayout","row"],["fxFlex","100"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"w-100","my-1"]],template:function(t,e){if(1&t&&(h.YNc(0,q,1,0,"ng-container",0),h.YNc(1,z,3,1,"ng-template",null,1,h.W1O),h.YNc(3,H,14,2,"ng-template",null,2,h.W1O)),2&t){const t=h.MAs(2),i=h.MAs(4);h.Q6J("ngTemplateOutlet",null!=e.loopStatus&&e.loopStatus.error?t:i)}},directives:[p.tP,y.xw,y.yH,y.Wh,A.d],styles:[""]}),t})();var G=i(194);function j(t,e){1&t&&h.GkF(0)}const V=function(t,e){return{"small-svg":t,"large-svg":e}};function Q(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",6),h.NdJ("swipe",function(e){return h.CHM(t),h.oxw().onSwipe(e)}),h.O4$(),h.TgZ(1,"svg",7),h.TgZ(2,"desc"),h._uU(3,"Created with Sketch."),h.qZA(),h.TgZ(4,"g",8),h.TgZ(5,"g",9),h.TgZ(6,"g",10),h.TgZ(7,"g",11),h._UZ(8,"circle",12),h._UZ(9,"path",13),h.qZA(),h.TgZ(10,"g",14),h._UZ(11,"ellipse",15),h._UZ(12,"ellipse",16),h._UZ(13,"rect",17),h._UZ(14,"rect",18),h._UZ(15,"rect",19),h._UZ(16,"rect",20),h._UZ(17,"rect",21),h._UZ(18,"rect",22),h._UZ(19,"rect",23),h._UZ(20,"rect",24),h._UZ(21,"rect",25),h._UZ(22,"rect",26),h._UZ(23,"rect",27),h._UZ(24,"rect",28),h._UZ(25,"rect",29),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.kcU(),h.TgZ(26,"div",30),h.TgZ(27,"mat-card-title"),h._uU(28,"Loop Out explained."),h.qZA(),h.qZA(),h.TgZ(29,"div",31),h.TgZ(30,"mat-card-subtitle",32),h._uU(31," Lightning Loop is a non custodial service offered by Lightning Labs to bridge on-chain and off-chain Bitcoin using Submarine swaps. "),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=h.oxw();h.Q6J("@sliderAnimation",t.animationDirection),h.xp6(1),h.Q6J("ngClass",h.WLB(2,V,t.screenSize===t.screenSizeEnum.XS,t.screenSize!==t.screenSizeEnum.XS))}}function W(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",6),h.NdJ("swipe",function(e){return h.CHM(t),h.oxw().onSwipe(e)}),h.O4$(),h.TgZ(1,"svg",33),h.TgZ(2,"desc"),h._uU(3,"Created with Sketch."),h.qZA(),h.TgZ(4,"defs"),h.TgZ(5,"linearGradient",34),h._UZ(6,"stop",35),h._UZ(7,"stop",36),h._UZ(8,"stop",37),h.qZA(),h.qZA(),h.TgZ(9,"g",8),h.TgZ(10,"g",38),h.TgZ(11,"g",39),h.TgZ(12,"g",40),h.TgZ(13,"g",41),h.TgZ(14,"g",42),h._UZ(15,"rect",43),h._UZ(16,"rect",44),h._UZ(17,"rect",45),h._UZ(18,"circle",46),h._UZ(19,"rect",47),h._UZ(20,"rect",48),h._UZ(21,"circle",49),h._UZ(22,"rect",50),h._UZ(23,"rect",51),h._UZ(24,"rect",52),h._UZ(25,"rect",53),h._UZ(26,"circle",54),h._UZ(27,"circle",55),h.qZA(),h.TgZ(28,"g",56),h._UZ(29,"path",57),h._UZ(30,"rect",58),h._UZ(31,"polygon",59),h._UZ(32,"circle",60),h._UZ(33,"path",61),h._UZ(34,"rect",62),h._UZ(35,"rect",63),h._UZ(36,"rect",64),h._UZ(37,"rect",65),h._UZ(38,"rect",66),h._UZ(39,"rect",67),h._UZ(40,"rect",68),h._UZ(41,"path",69),h._UZ(42,"path",70),h.qZA(),h._UZ(43,"path",71),h.qZA(),h.qZA(),h._UZ(44,"circle",72),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.kcU(),h.TgZ(45,"div",30),h.TgZ(46,"mat-card-title"),h._uU(47,"Step 1: Deciding to Loop Out"),h.qZA(),h.qZA(),h.TgZ(48,"div",31),h.TgZ(49,"mat-card-subtitle",32),h._uU(50," You have a channel with a local balance amount and you want to gain inbound liquidity. "),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=h.oxw();h.Q6J("@sliderAnimation",t.animationDirection),h.xp6(1),h.Q6J("ngClass",h.WLB(2,V,t.screenSize===t.screenSizeEnum.XS,t.screenSize!==t.screenSizeEnum.XS))}}function J(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",6),h.NdJ("swipe",function(e){return h.CHM(t),h.oxw().onSwipe(e)}),h.O4$(),h.TgZ(1,"svg",73),h.TgZ(2,"desc"),h._uU(3,"Created with Sketch."),h.qZA(),h.TgZ(4,"defs"),h.TgZ(5,"linearGradient",74),h._UZ(6,"stop",35),h._UZ(7,"stop",36),h._UZ(8,"stop",37),h.qZA(),h.qZA(),h.TgZ(9,"g",8),h.TgZ(10,"g",75),h.TgZ(11,"g",76),h._UZ(12,"circle",77),h._UZ(13,"path",78),h.TgZ(14,"g",79),h._UZ(15,"polygon",80),h._UZ(16,"polygon",81),h._UZ(17,"path",82),h.qZA(),h.TgZ(18,"g",83),h._UZ(19,"polygon",84),h._UZ(20,"path",85),h._UZ(21,"rect",86),h._UZ(22,"path",87),h._UZ(23,"rect",88),h._UZ(24,"rect",89),h._UZ(25,"rect",90),h._UZ(26,"rect",91),h._UZ(27,"circle",92),h._UZ(28,"path",93),h.TgZ(29,"g",94),h.TgZ(30,"g",95),h._UZ(31,"g",96),h.qZA(),h._UZ(32,"g",97),h.qZA(),h._UZ(33,"path",98),h.qZA(),h.TgZ(34,"g",99),h.TgZ(35,"g",41),h.TgZ(36,"g",42),h._UZ(37,"rect",43),h._UZ(38,"rect",44),h._UZ(39,"rect",45),h._UZ(40,"circle",46),h._UZ(41,"rect",47),h._UZ(42,"rect",48),h._UZ(43,"circle",49),h._UZ(44,"rect",50),h._UZ(45,"rect",51),h._UZ(46,"rect",52),h._UZ(47,"rect",53),h._UZ(48,"circle",100),h._UZ(49,"circle",54),h._UZ(50,"circle",55),h._UZ(51,"circle",101),h.qZA(),h.TgZ(52,"g",56),h._UZ(53,"path",57),h._UZ(54,"rect",102),h._UZ(55,"polygon",103),h._UZ(56,"circle",104),h._UZ(57,"path",61),h._UZ(58,"rect",105),h._UZ(59,"rect",106),h._UZ(60,"rect",107),h._UZ(61,"rect",108),h._UZ(62,"rect",109),h._UZ(63,"rect",110),h._UZ(64,"rect",68),h._UZ(65,"path",69),h._UZ(66,"path",70),h.qZA(),h._UZ(67,"path",111),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.kcU(),h.TgZ(68,"div",30),h.TgZ(69,"mat-card-title"),h._uU(70,"Step 2: Send lightning payment"),h.qZA(),h.qZA(),h.TgZ(71,"div",31),h.TgZ(72,"mat-card-subtitle",32),h._uU(73," Your node pays a lightning invoice for the amount requested via the loop service. This moves the local balance, for the amount paid, to the remote side of the channel. "),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=h.oxw();h.Q6J("@sliderAnimation",t.animationDirection),h.xp6(1),h.Q6J("ngClass",h.WLB(2,V,t.screenSize===t.screenSizeEnum.XS,t.screenSize!==t.screenSizeEnum.XS))}}function X(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",6),h.NdJ("swipe",function(e){return h.CHM(t),h.oxw().onSwipe(e)}),h.O4$(),h.TgZ(1,"svg",112),h.TgZ(2,"desc"),h._uU(3,"Created with Sketch."),h.qZA(),h.TgZ(4,"g",8),h.TgZ(5,"g",113),h.TgZ(6,"g",114),h.TgZ(7,"g",115),h.TgZ(8,"g",116),h._UZ(9,"circle",12),h._UZ(10,"path",117),h.qZA(),h.TgZ(11,"g",14),h._UZ(12,"ellipse",118),h._UZ(13,"ellipse",16),h._UZ(14,"rect",17),h._UZ(15,"rect",18),h._UZ(16,"rect",19),h._UZ(17,"rect",20),h._UZ(18,"rect",21),h._UZ(19,"rect",22),h._UZ(20,"rect",23),h._UZ(21,"rect",24),h._UZ(22,"rect",25),h._UZ(23,"rect",26),h._UZ(24,"rect",27),h._UZ(25,"rect",28),h._UZ(26,"rect",29),h.qZA(),h.qZA(),h.TgZ(27,"g",119),h._UZ(28,"polygon",80),h._UZ(29,"polygon",120),h._UZ(30,"path",82),h.qZA(),h.TgZ(31,"g",121),h._UZ(32,"polygon",84),h._UZ(33,"path",85),h._UZ(34,"rect",86),h._UZ(35,"path",87),h._UZ(36,"rect",88),h._UZ(37,"rect",89),h._UZ(38,"rect",90),h._UZ(39,"rect",91),h._UZ(40,"circle",122),h._UZ(41,"path",93),h.TgZ(42,"g",94),h.TgZ(43,"g",95),h._UZ(44,"g",96),h.qZA(),h._UZ(45,"g",97),h.qZA(),h._UZ(46,"path",123),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.kcU(),h.TgZ(47,"div",30),h.TgZ(48,"mat-card-title"),h._uU(49,"Step 3: Receive funds back"),h.qZA(),h.qZA(),h.TgZ(50,"div",31),h.TgZ(51,"mat-card-subtitle",32),h._uU(52," Loop service then sends you a payment on-chain for the amount same as the lightning payment minus the fee. "),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=h.oxw();h.Q6J("@sliderAnimation",t.animationDirection),h.xp6(1),h.Q6J("ngClass",h.WLB(2,V,t.screenSize===t.screenSizeEnum.XS,t.screenSize!==t.screenSizeEnum.XS))}}function K(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",6),h.NdJ("swipe",function(e){return h.CHM(t),h.oxw().onSwipe(e)}),h.O4$(),h.TgZ(1,"svg",124),h.TgZ(2,"desc"),h._uU(3,"Created with Sketch."),h.qZA(),h.TgZ(4,"defs"),h.TgZ(5,"linearGradient",34),h._UZ(6,"stop",35),h._UZ(7,"stop",36),h._UZ(8,"stop",37),h.qZA(),h.qZA(),h.TgZ(9,"g",8),h.TgZ(10,"g",125),h.TgZ(11,"g",126),h.TgZ(12,"g",42),h._UZ(13,"rect",127),h._UZ(14,"rect",128),h._UZ(15,"rect",129),h._UZ(16,"circle",130),h._UZ(17,"rect",131),h._UZ(18,"rect",132),h._UZ(19,"circle",133),h._UZ(20,"rect",134),h._UZ(21,"rect",135),h._UZ(22,"rect",136),h._UZ(23,"rect",137),h._UZ(24,"rect",138),h._UZ(25,"circle",139),h._UZ(26,"circle",140),h._UZ(27,"circle",141),h.qZA(),h.TgZ(28,"g",142),h.TgZ(29,"g",143),h.TgZ(30,"g",144),h._UZ(31,"path",145),h._UZ(32,"rect",146),h._UZ(33,"polygon",147),h.TgZ(34,"g",148),h._UZ(35,"path",149),h.qZA(),h._UZ(36,"rect",150),h._UZ(37,"rect",151),h._UZ(38,"rect",152),h._UZ(39,"rect",153),h._UZ(40,"rect",154),h._UZ(41,"rect",155),h._UZ(42,"rect",156),h._UZ(43,"path",157),h._UZ(44,"path",158),h.qZA(),h.TgZ(45,"g",159),h._UZ(46,"path",160),h._UZ(47,"path",161),h._UZ(48,"path",162),h._UZ(49,"path",163),h._UZ(50,"path",164),h._UZ(51,"path",165),h._UZ(52,"path",166),h._UZ(53,"path",167),h._UZ(54,"path",168),h._UZ(55,"path",169),h._UZ(56,"path",170),h._UZ(57,"circle",171),h._UZ(58,"circle",172),h.qZA(),h._UZ(59,"path",173),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.kcU(),h.TgZ(60,"div",30),h.TgZ(61,"mat-card-title"),h._uU(62,"Done!"),h.qZA(),h.qZA(),h.TgZ(63,"div",31),h.TgZ(64,"mat-card-subtitle",32),h._uU(65," Final settlement occurs when your node sweeps the on-chain payment and the loop server settles the lightning invoice. You receive the payment on-chain in your wallet and also move local balance to the remote side of the channel, gaining inbound capacity. "),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=h.oxw();h.Q6J("@sliderAnimation",t.animationDirection),h.xp6(1),h.Q6J("ngClass",h.WLB(2,V,t.screenSize===t.screenSizeEnum.XS,t.screenSize!==t.screenSizeEnum.XS))}}let $=(()=>{class t{constructor(t){this.commonService=t,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new h.vpe,this.screenSize="",this.screenSizeEnum=c.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(t){2===t.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===t.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(g.v))},t.\u0275cmp=h.Xpm({type:t,selectors:[["rtl-loop-out-info-graphics"]],inputs:{animationDirection:"animationDirection",stepNumber:"stepNumber"},outputs:{stepNumberChange:"stepNumberChange"},decls:11,vars:1,consts:[[4,"ngTemplateOutlet"],["loopStepBlock1",""],["loopStepBlock2",""],["loopStepBlock3",""],["loopStepBlock4",""],["loopStepBlock5",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",3,"swipe"],["fxFlex","30","viewBox","0 0 108 118","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["id","Loopv0.2","stroke","none","stroke-width","1","fill","none","fill-rule","evenodd"],["id","LoopOut_Step01","transform","translate(-594.000000, -215.000000)","fill-rule","nonzero"],["id","Loop_Step01","transform","translate(594.000000, 215.000000)"],["id","Group-16","transform","translate(23.000000, 0.000000)"],["id","Oval","cx","42.4877419","cy","42.4877419","r","42.4877419",1,"fill-color-2"],["d","M56.0827415,28.5000036 C60.4468211,28.5000036 63.9999285,25.1343958 63.9999285,21.0000215 C63.9999285,16.8656472 60.4468211,13.5000393 56.0827415,13.5000393 C52.9843297,13.5000393 50.5608889,15.4359631 48.9999642,17.1843872 C47.4390396,15.4359631 45.0155987,13.5000393 41.9171869,13.5000393 C37.5531074,13.5000393 34,16.8656472 34,21.0000215 C34,25.1343958 37.5531074,28.5000036 41.9171869,28.5000036 C45.0155987,28.5000036 47.4390396,26.5640798 48.9999642,24.8156557 C50.5608889,26.5640798 52.9843297,28.5000036 56.0827415,28.5000036 Z M41.9171869,24.0000143 C40.0328073,24.0000143 38.4999893,22.6546959 38.4999893,21.0000286 C38.4999893,19.3453471 40.0328073,18.0000286 41.9171869,18.0000286 C43.707771,18.0000286 45.3577763,19.6921938 46.3234264,21.0000286 C45.3671604,22.2937501 43.7031019,24.0000143 41.9171869,24.0000143 Z M56.0827415,24.0000143 C54.2921574,24.0000143 52.6421522,22.3078492 51.676502,21.0000286 C52.6327681,19.7062929 54.2968266,18.0000286 56.0827415,18.0000286 C57.9671212,18.0000286 59.4999392,19.3453471 59.4999392,21.0000286 C59.4999392,22.6546959 57.9671212,24.0000143 56.0827415,24.0000143 Z","id","i",1,"fill-color-primary"],["id","Group-21","transform","translate(0.000000, 36.000000)"],["id","Oval","cx","48.644129","cy","75.1589677","rx","48.644129","ry","6.61766437",1,"fill-color-7"],["id","Oval","opacity","0.1","cx","48.644129","cy","75.1589677","rx","40.8402581","ry","5.55600756",1,"fill-color-27"],["id","Rectangle","x","25.2325161","y","6.09470968","width","54.1068387","height","62.9512258",1,"fill-color-26"],["id","Rectangle","x","20","y","1.24344979e-14","width","65.0322581","height","22.3710968",1,"fill-color-19"],["id","Rectangle","x","20","y","26","width","65.0322581","height","22.3710968",1,"fill-color-19"],["id","Rectangle","x","19.7698065","y","52.9179355","width","65.0322581","height","22.3710968",1,"fill-color-19"],["id","Rectangle","x","67.6335484","y","3.75354839","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","73.6165161","y","3.75354839","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","79.5994839","y","3.75354839","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","67.6335484","y","30.0265806","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","73.6165161","y","30.0265806","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","79.5994839","y","30.0265806","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","67.6335484","y","56.2996129","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","73.6165161","y","56.2996129","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","79.5994839","y","56.2996129","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["fxFlex","20","fxLayoutAlign","center end"],["fxFlex","40"],[1,"font-size-120"],["fxFlex","30","viewBox","0 0 205 121","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["x1","50%","y1","100%","x2","50%","y2","0%","id","linearGradient-1"],["stop-color","#808080","stop-opacity","0.25","offset","0%"],["stop-color","#808080","stop-opacity","0.12","offset","54%"],["stop-color","#808080","stop-opacity","0.1","offset","100%"],["id","LoopOut_Step02","transform","translate(-540.000000, -210.000000)","fill-rule","nonzero"],["id","Loop_Step02","transform","translate(540.000000, 210.000000)"],["id","Illustration_Step02"],["id","Group-31"],["id","Group-2"],["id","Rectangle","x","0","y","0","width","90.1490688","height","100.616012",1,"fill-color-10"],["id","Rectangle","x","1.48932403","y","67.1775068","width","87.1682273","height","31.2472904",1,"fill-color-1"],["id","Rectangle","x","8.64422093","y","74.5890324","width","51.2","height","16.0118784",1,"fill-color-primary-lighter"],["id","Oval","cx","76.317438","cy","82.4918815","r","8.15070413",1,"fill-color-primary-darker"],["id","Rectangle","x","1.48932403","y","34.712875","width","87.1682273","height","31.2472904",1,"fill-color-1"],["id","Rectangle","x","8.64422093","y","42.1244006","width","51.2","height","16.0118784",1,"fill-color-primary-lighter"],["id","Oval","cx","76.317438","cy","50.0294431","r","8.15070413",1,"fill-color-primary-darker"],["id","Rectangle","x","1.48932403","y","2.2482432","width","87.1682273","height","31.2472904",1,"fill-color-1"],["id","Rectangle","x","8.64422093","y","74.5890324","width","24","height","16.0118784",1,"fill-color-primary"],["id","Rectangle","x","8.64422093","y","42.1244006","width","36.8","height","16.0118784",1,"fill-color-primary"],["id","Rectangle","x","8.64422093","y","9.66196224","width","51.2","height","16.0118784",1,"fill-color-primary"],["id","Oval","fill","url(#linearGradient-1)","cx","76.317438","cy","50.2465905","r","8.78679245"],["id","Oval","fill","url(#linearGradient-1)","cx","76.317438","cy","82.7090289","r","8.78679245"],["id","Group","transform","translate(60.115627, 35.744427)"],["d","M133.318807,1.04548939 L82.5936439,1.04548939 L82.5936439,0 L59.5928852,0 L59.5928852,1.04548939 L8.65861943,1.04548939 C7.74861523,1.04548887 6.87588228,1.4069864 6.23241214,2.05045654 C5.58894199,2.69392669 5.22744498,3.56665964 5.22744498,4.47666384 L5.22744498,73.9350108 C5.22744498,74.8450173 5.5889387,75.7177532 6.23240879,76.3612266 C6.87587888,77.0047 7.74861298,77.3662028 8.65861943,77.3662028 L133.318807,77.3662028 C135.213795,77.3662028 136.749981,75.8300048 136.749981,73.9350167 L136.749981,4.47666384 C136.749981,3.56665964 136.388484,2.69392669 135.745014,2.05045654 C135.101544,1.4069864 134.228811,1.04548887 133.318807,1.04548939 Z","id","Path",1,"fill-color-20"],["id","Rectangle","x","9.82759671","y","7.10932665","width","122.322231","height","69.0022838",1,"fill-color-25"],["id","Path","opacity","0.257273065","points","97.1677755 76.1116475 9.82763376 76.1116475 9.82763376 7.10937149",1,"fill-color-24"],["id","Oval","cx","28.9673627","cy","59.1901502","r","11.7579927",1,"fill-color-25"],["d","M31.5848237,68.0274261 C25.669241,68.0274261 20.3361447,64.4639649 18.0723494,58.9986791 C15.808554,53.5333932 17.0598755,47.2425772 21.2428244,43.0596288 C25.4257733,38.8766804 31.7165895,37.6253598 37.1818751,39.8891559 C42.6471607,42.1529519 46.2106203,47.4860487 46.2106203,53.4016314 C46.2014756,61.4754447 39.6586369,68.0182825 31.5848237,68.0274261 L31.5848237,68.0274261 Z M31.5848237,38.967022 C23.612809,38.967022 17.1502143,45.4296168 17.1502143,53.4016314 C17.1502143,61.3736461 23.612809,67.8362409 31.5848237,67.8362409 C39.5568383,67.8362409 46.0194331,61.3736461 46.0194331,53.4016314 C46.010427,45.4333502 39.5531049,38.9760281 31.5848237,38.967022 L31.5848237,38.967022 Z","id","Shape",1,"fill-color-primary"],["id","Rectangle","x","99.4252759","y","44.3228077","width","11.4262324","height","2.38757043",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","25.733862","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","28.9741379","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","32.2144137","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","35.4546875","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","38.6949634","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","119.89017","y","8.50924347","width","4.7751428","height","4.7751428",1,"fill-color-6"],["d","M126.882344,15.5014148 L121.083948,15.5014148 L121.083948,9.70301894 L126.882344,9.70301894 L126.882344,15.5014148 Z M121.336061,15.2493191 L126.63024,15.2493191 L126.63024,9.95513218 L121.336061,9.95513218 L121.336061,15.2493191 Z","id","Shape",1,"fill-color-19"],["d","M140.184525,74.8570201 L128.246669,74.8570201 L128.246669,73.9969059 C128.246671,73.9516751 128.228704,73.9082962 128.196721,73.876313 C128.164738,73.8443298 128.12136,73.826364 128.076129,73.826364 L123.98315,73.826364 C123.937919,73.826364 123.89454,73.8443305 123.862558,73.8763135 C123.830575,73.9082966 123.812608,73.9516752 123.81261,73.9969059 L123.81261,74.8570201 L121.254497,74.8570201 L121.254497,73.9969059 C121.254499,73.9516752 121.236532,73.9082966 121.204549,73.8763135 C121.172566,73.8443305 121.129188,73.826364 121.083957,73.826364 L116.990978,73.826364 C116.945747,73.826364 116.902368,73.8443297 116.870385,73.8763129 C116.838402,73.908296 116.820435,73.9516749 116.820436,73.9969059 L116.820436,74.8570201 L114.262326,74.8570201 L114.262326,73.9969059 C114.262328,73.9516749 114.24436,73.908296 114.212377,73.8763129 C114.180394,73.8443297 114.137015,73.826364 114.091784,73.826364 L109.998805,73.826364 C109.953574,73.826364 109.910196,73.8443305 109.878213,73.8763135 C109.84623,73.9082966 109.828263,73.9516752 109.828265,73.9969059 L109.828265,74.8570201 L107.270153,74.8570201 L107.270153,73.9969059 C107.270154,73.9516752 107.252187,73.9082966 107.220204,73.8763135 C107.188222,73.8443305 107.144843,73.826364 107.099613,73.826364 L103.00663,73.826364 C102.961399,73.826364 102.91802,73.8443298 102.886037,73.876313 C102.854054,73.9082962 102.836088,73.9516751 102.83609,73.9969059 L102.83609,74.8570201 L100.277981,74.8570201 L100.277981,73.9969059 C100.277983,73.9516749 100.260016,73.908296 100.228032,73.8763129 C100.196049,73.8443297 100.15267,73.826364 100.107439,73.826364 L96.0144621,73.826364 C95.9692311,73.826364 95.9258522,73.8443297 95.8938691,73.8763129 C95.861886,73.908296 95.8439187,73.9516749 95.8439202,73.9969059 L95.8439202,74.8570201 L93.285808,74.8570201 L93.285808,73.9969059 C93.2858095,73.9516752 93.2678425,73.9082966 93.2358598,73.8763135 C93.2038771,73.8443305 93.1604987,73.826364 93.1152681,73.826364 L89.0222888,73.826364 C88.9770581,73.826364 88.9336797,73.8443305 88.901697,73.8763135 C88.8697143,73.9082966 88.8517473,73.9516752 88.8517489,73.9969059 L88.8517489,74.8570201 L86.2936405,74.8570201 L86.2936405,73.9969059 C86.293642,73.9516752 86.2756751,73.9082966 86.2436923,73.8763135 C86.2117096,73.8443305 86.1683312,73.826364 86.1231006,73.826364 L54.061428,73.826364 C54.0161974,73.826364 53.972819,73.8443305 53.9408363,73.8763135 C53.9088536,73.9082966 53.8908866,73.9516752 53.8908881,73.9969059 L53.8908881,74.8570201 L51.3327759,74.8570201 L51.3327759,73.9969059 C51.3327774,73.9516749 51.3148102,73.908296 51.282827,73.8763129 C51.2508439,73.8443297 51.207465,73.826364 51.162234,73.826364 L47.0692664,73.826364 C47.0240354,73.826364 46.9806565,73.8443297 46.9486734,73.8763129 C46.9166903,73.908296 46.898723,73.9516749 46.8987246,73.9969059 L46.8987246,74.8570201 L44.3406025,74.8570201 L44.3406025,73.9969059 C44.3406046,73.9516751 44.3226378,73.9082962 44.290655,73.876313 C44.2586721,73.8443298 44.2152934,73.826364 44.1700626,73.826364 L40.0770834,73.826364 C40.0318527,73.826364 39.9884743,73.8443305 39.9564916,73.8763135 C39.9245089,73.9082966 39.9065419,73.9516752 39.9065435,73.9969059 L39.9065435,74.8570201 L37.3484312,74.8570201 L37.3484312,73.9969059 C37.3484327,73.9516752 37.3304657,73.9082966 37.298483,73.8763135 C37.2665003,73.8443305 37.2231219,73.826364 37.1778913,73.826364 L33.084912,73.826364 C33.039681,73.826364 32.9963021,73.8443297 32.964319,73.8763129 C32.9323358,73.908296 32.9143686,73.9516749 32.9143701,73.9969059 L32.9143701,74.8570201 L30.3562598,74.8570201 L30.3562598,73.9969059 C30.3562614,73.9516749 30.3382941,73.908296 30.306311,73.8763129 C30.2743278,73.8443297 30.2309489,73.826364 30.1857179,73.826364 L26.0927387,73.826364 C26.047508,73.826364 26.0041296,73.8443305 25.9721469,73.8763135 C25.9401642,73.9082966 25.9221972,73.9516752 25.9221988,73.9969059 L25.9221988,74.8570201 L23.3640826,74.8570201 L23.3640826,73.9969059 C23.3640841,73.9516752 23.3461171,73.9082966 23.3141344,73.8763135 C23.2821517,73.8443305 23.2387733,73.826364 23.1935427,73.826364 L19.1005673,73.826364 C19.0553365,73.826364 19.0119578,73.8443298 18.979975,73.876313 C18.9479921,73.9082962 18.9300253,73.9516751 18.9300274,73.9969059 L18.9300274,74.8570201 L16.3719151,74.8570201 L16.3719151,73.9969059 C16.3719167,73.9516749 16.3539494,73.908296 16.3219663,73.8763129 C16.2899831,73.8443297 16.2466042,73.826364 16.2013733,73.826364 L12.1083959,73.826364 C12.0631649,73.826364 12.0197861,73.8443297 11.9878029,73.8763129 C11.9558198,73.908296 11.9378525,73.9516749 11.9378541,73.9969059 L11.9378541,74.8570201 L4.09297732,74.8570201 C1.83248849,74.8570223 0,76.6895106 0,78.9499994 L0,80.8007483 C0,83.061233 1.83249262,84.8937159 4.09297732,84.8937159 L140.184525,84.8937159 C142.44501,84.8937159 144.277504,83.0612333 144.277504,80.8007483 L144.277504,78.9499994 C144.277504,76.6895102 142.445014,74.8570223 140.184525,74.8570201 Z","id","Path",1,"fill-color-20"],["d","M88.0406297,103.870828 C88.3071704,103.870828 88.5610365,103.731189 88.7006752,103.490029 L94.2857286,93.8431185 C94.5808417,93.3385473 94.2159092,92.7007212 93.6288439,92.7007212 L89.9668136,92.7007212 L91.318669,88.5817505 C91.445602,88.0993988 91.0806695,87.6234 90.5824512,87.6234 L86.0128621,87.6234 C85.632063,87.6234 85.3083776,87.9058383 85.2576168,88.2834455 L84.2421525,95.8994274 C84.1818469,96.3563987 84.5372656,96.7625782 84.9973979,96.7625782 L88.7641417,96.7625782 L87.30122,102.934697 C87.1869926,103.417048 87.555086,103.870828 88.0406297,103.870828 Z","id","b","transform","translate(89.312846, 95.747114) rotate(14.000000) translate(-89.312846, -95.747114) ",1,"fill-color-21"],["id","Oval","cx","74.1507041","cy","17.5648113","r","8.15070413",1,"fill-color-primary"],["fxFlex","30","viewBox","0 0 373 121","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["x1","50%","y1","100%","x2","50%","y2","8.86848147e-15%","id","linearGradient-1"],["id","LoopOut_Step03","transform","translate(-460.000000, -210.000000)"],["id","Loop_Step03","transform","translate(460.000000, 210.000000)"],["id","Oval","fill-rule","nonzero","cx","330.487742","cy","57.4877419","r","42.4877419",1,"fill-color-2"],["d","M345.082742,43.5000036 C349.446821,43.5000036 352.999928,40.1343958 352.999928,36.0000215 C352.999928,31.8656472 349.446821,28.5000393 345.082742,28.5000393 C341.98433,28.5000393 339.560889,30.4359631 337.999964,32.1843872 C336.43904,30.4359631 334.015599,28.5000393 330.917187,28.5000393 C326.553107,28.5000393 323,31.8656472 323,36.0000215 C323,40.1343958 326.553107,43.5000036 330.917187,43.5000036 C334.015599,43.5000036 336.43904,41.5640798 337.999964,39.8156557 C339.560889,41.5640798 341.98433,43.5000036 345.082742,43.5000036 Z M330.917187,39.0000143 C329.032807,39.0000143 327.499989,37.6546959 327.499989,36.0000286 C327.499989,34.3453471 329.032807,33.0000286 330.917187,33.0000286 C332.707771,33.0000286 334.357776,34.6921938 335.323426,36.0000286 C334.36716,37.2937501 332.703102,39.0000143 330.917187,39.0000143 Z M345.082742,39.0000143 C343.292157,39.0000143 341.642152,37.3078492 340.676502,36.0000286 C341.632768,34.7062929 343.296827,33.0000286 345.082742,33.0000286 C346.967121,33.0000286 348.499939,34.3453471 348.499939,36.0000286 C348.499939,37.6546959 346.967121,39.0000143 345.082742,39.0000143 Z","id","i","fill-rule","nonzero",1,"fill-color-primary"],["id","Group-44","transform","translate(113.000000, 79.000000)","fill-rule","nonzero"],["id","Path","transform","translate(118.400000, 7.089946) scale(-1, 1) translate(-118.400000, -7.089946) ","points","234.731878 6.60770626 8.52651283e-14 6.60770626 8.52651283e-14 7.57218541 236.8 7.57218541",1,"fill-color-19"],["id","Path","transform","translate(118.400000, 8.960000) scale(-1, 1) translate(-118.400000, -8.960000) ","points","113.024 5.376 123.776 5.376 123.776 12.544 113.024 12.544",1,"fill-color-22"],["d","M120.192,8.96 L105.856,8.96 L105.856,1.86517468e-14 L120.192,1.86517468e-14 L120.192,8.96 Z M106.479304,8.57043501 L119.568696,8.57043501 L119.568696,0.389564988 L106.479304,0.389564988 L106.479304,8.57043501 Z","id","Shape","transform","translate(113.024000, 4.480000) scale(-1, 1) translate(-113.024000, -4.480000) ",1,"fill-color-19"],["id","Group-43","transform","translate(265.000000, 50.000000)"],["id","Path","fill-rule","nonzero","points","-9.84073267e-14 7.36243469 92.3919279 7.36243469 92.3919279 70.3073253 -1.13686838e-13 70.3073253",1,"fill-color-23"],["d","M97.5448374,1.70530257e-13 L6.62592538,1.70530257e-13 C6.01615907,0.000922175294 5.52114394,0.495001701 5.52114394,1.104768 L5.52114394,62.57664 C5.52114394,62.8696481 5.63752746,63.150658 5.84471672,63.3578447 C6.05190598,63.5650315 6.3329173,63.681408 6.62592538,63.681408 L97.5448374,63.681408 C97.8378436,63.681408 98.1188523,63.5650282 98.3260389,63.3578415 C98.5332256,63.1506549 98.6496054,62.8696462 98.6496054,62.57664 L98.6496054,1.104768 C98.6496054,0.495005713 98.1545997,0.000926622272 97.5448374,1.70530257e-13 L97.5448374,1.70530257e-13 Z M97.9130952,62.57664 C97.9130952,62.6744022 97.8747043,62.7682496 97.8055756,62.8373783 C97.736447,62.9065069 97.6425996,62.9448978 97.5448374,62.9448978 L6.62592538,62.9448978 C6.52816341,62.9448978 6.4343164,62.906506 6.3651879,62.8373775 C6.29605941,62.768249 6.25766754,62.674402 6.25766754,62.57664 L6.25766754,1.104768 C6.25766754,0.901512883 6.42267026,0.736512 6.62592538,0.736512 L97.5448374,0.736512 C97.7480931,0.736512 97.9130952,0.901512271 97.9130952,1.104768 L97.9130952,62.57664 Z","id","Shape","fill-rule","nonzero",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","10.3066764","y","43.4358624","width","41.5947948","height","4.78524211","rx","0.5376",1,"fill-color-19"],["d","M89.8141359,39.3872559 L76.5649839,39.3872559 C76.2719769,39.3872559 75.9909677,39.5036372 75.7837792,39.7108232 C75.5765907,39.9180091 75.4602025,40.1990169 75.4602025,40.4920239 L75.4602025,50.7978159 C75.4602025,51.090824 75.576586,51.3718339 75.7837753,51.5790207 C75.9909645,51.7862074 76.2719759,51.9025839 76.5649839,51.9025839 L89.8141359,51.9025839 C90.107143,51.9025839 90.3881533,51.7862079 90.5953406,51.5790206 C90.8025279,51.3718333 90.9189039,51.090823 90.9189039,50.7978159 L90.9189039,40.4920239 C90.9189039,40.199018 90.8025232,39.9180097 90.5953367,39.7108232 C90.3881502,39.5036367 90.1071419,39.3872559 89.8141359,39.3872559 Z M90.1823938,50.7978159 C90.182087,51.0010717 90.0173917,51.165767 89.8141359,51.1660719 L76.5649839,51.1660719 C76.3617256,51.165767 76.1970256,51.0010743 76.19671,50.7978159 L76.19671,40.4920239 C76.1964064,40.3942603 76.2351088,40.3004129 76.30424,40.2312847 C76.3733712,40.1621565 76.4672203,40.1234582 76.5649839,40.1237661 L89.8141359,40.1237661 C89.9118981,40.1234582 90.0057456,40.162157 90.0748742,40.2312857 C90.1440029,40.3004143 90.1827017,40.3942617 90.1823938,40.4920239 L90.1823938,50.7978159 Z","id","Shape","fill-rule","nonzero",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","78.6733409","y","41.7652758","width","9.03249715","height","1.86879168","rx","0.5376",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","78.6733409","y","44.7100416","width","9.03249715","height","1.86879168","rx","0.5376",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","78.6733409","y","47.6548047","width","9.03249715","height","1.86879168","rx","0.5376",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","11.4109632","y","4.41773875","width","19.1409684","height","8.09810266","rx","0.5376",1,"fill-color-19"],["id","Oval","fill-rule","nonzero","cx","47.2929593","cy","42.2294561","r","12.9683743",1,"fill-color-3"],["d","M50.1798649,51.9764517 C43.6553251,51.9764517 37.7732336,48.0461636 35.2764005,42.0182748 C32.7795674,35.990386 34.1597014,29.0519859 38.773248,24.4384399 C43.3867946,19.824894 50.3251948,18.4447609 56.3530833,20.9415948 C62.3809718,23.4384287 66.3112582,29.3205207 66.3112582,35.8450605 C66.3011721,44.7500015 59.0848059,51.9663668 50.1798649,51.9764517 L50.1798649,51.9764517 Z M50.1798649,19.9245354 C41.3872016,19.9245354 34.2593397,27.0523972 34.2593397,35.8450605 C34.2593397,44.6377237 41.3872016,51.7655856 50.1798649,51.7655856 C58.9725281,51.7655856 66.10039,44.6377237 66.10039,35.8450605 C66.0904567,27.056515 58.9684103,19.9344686 50.1798649,19.9245354 L50.1798649,19.9245354 Z","id","Shape","fill-rule","nonzero",1,"fill-color-primary"],["id","Group-23","transform","translate(5.000000, 0.001193)"],["id","Group-22"],["id","Group","transform","translate(0.378134, 0.000000)"],["id","Group-24","transform","translate(29.048000, 19.712000)"],["d","M46.60483,51.432122 C46.8713708,51.432122 47.1252368,51.2924832 47.2648756,51.0513229 L52.8499289,41.4044125 C53.145042,40.8998413 52.7801095,40.2620153 52.1930443,40.2620153 L48.5310139,40.2620153 L49.8828693,36.1430446 C50.0098023,35.6606929 49.6448699,35.184694 49.1466515,35.184694 L44.5770624,35.184694 C44.1962633,35.184694 43.8725779,35.4671324 43.8218171,35.8447396 L42.8063528,43.4607214 C42.7460473,43.9176927 43.1014659,44.3238722 43.5615982,44.3238722 L47.3283421,44.3238722 L45.8654203,50.4959909 C45.751193,50.9783426 46.1192864,51.432122 46.60483,51.432122 Z","id","b","fill-rule","nonzero","transform","translate(47.877046, 43.308408) rotate(14.000000) translate(-47.877046, -43.308408) ",1,"fill-color-12"],["id","Group-34","fill-rule","nonzero"],["id","Oval","fill","url(#linearGradient-1)","cx","76.317438","cy","17.5648113","r","8.78679245"],["id","Oval","cx","76.317438","cy","17.5648113","r","8.15070413",1,"fill-color-primary"],["id","Rectangle","x","9.82759671","y","7.10932665","width","122.322231","height","69.0022838",1,"fill-color-8"],["id","Path","opacity","0.222721354","points","97.1677755 76.1116475 9.82763376 76.1116475 9.82763376 7.10937149",1,"fill-color-18"],["id","Oval","cx","28.9673627","cy","59.1901502","r","11.7579927",1,"fill-color-8"],["id","Rectangle","x","99.4252759","y","44.3228077","width","11.4262324","height","2.38757043",1,"fill-color-14"],["id","Rectangle","x","85.6114731","y","25.733862","width","39.05384","height","1.0232453",1,"fill-color-14"],["id","Rectangle","x","85.6114731","y","28.9741379","width","39.05384","height","1.0232453",1,"fill-color-14"],["id","Rectangle","x","85.6114731","y","32.2144137","width","39.05384","height","1.0232453",1,"fill-color-14"],["id","Rectangle","x","85.6114731","y","35.4546875","width","39.05384","height","1.0232453",1,"fill-color-14"],["id","Rectangle","x","85.6114731","y","38.6949634","width","39.05384","height","1.0232453",1,"fill-color-14"],["d","M88.0406297,103.870828 C88.3071704,103.870828 88.5610365,103.731189 88.7006752,103.490029 L94.2857286,93.8431185 C94.5808417,93.3385473 94.2159092,92.7007212 93.6288439,92.7007212 L89.9668136,92.7007212 L91.318669,88.5817505 C91.445602,88.0993988 91.0806695,87.6234 90.5824512,87.6234 L86.0128621,87.6234 C85.632063,87.6234 85.3083776,87.9058383 85.2576168,88.2834455 L84.2421525,95.8994274 C84.1818469,96.3563987 84.5372656,96.7625782 84.9973979,96.7625782 L88.7641417,96.7625782 L87.30122,102.934697 C87.1869926,103.417048 87.555086,103.870828 88.0406297,103.870828 Z","id","b","transform","translate(89.312846, 95.747114) rotate(14.000000) translate(-89.312846, -95.747114) ",1,"fill-color-12"],["fxFlex","30","viewBox","0 0 278 118","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["id","LoopOut_Step04","transform","translate(-503.000000, -212.000000)"],["id","Loop_Step04","transform","translate(503.000000, 212.000000)"],["id","Loop","fill-rule","nonzero"],["id","Group-16","transform","translate(24.000000, 0.000000)"],["d","M55.0827415,28.5000036 C59.4468211,28.5000036 62.9999285,25.1343958 62.9999285,21.0000215 C62.9999285,16.8656472 59.4468211,13.5000393 55.0827415,13.5000393 C51.9843297,13.5000393 49.5608889,15.4359631 47.9999642,17.1843872 C46.4390396,15.4359631 44.0155987,13.5000393 40.9171869,13.5000393 C36.5531074,13.5000393 33,16.8656472 33,21.0000215 C33,25.1343958 36.5531074,28.5000036 40.9171869,28.5000036 C44.0155987,28.5000036 46.4390396,26.5640798 47.9999642,24.8156557 C49.5608889,26.5640798 51.9843297,28.5000036 55.0827415,28.5000036 Z M40.9171869,24.0000143 C39.0328073,24.0000143 37.4999893,22.6546959 37.4999893,21.0000286 C37.4999893,19.3453471 39.0328073,18.0000286 40.9171869,18.0000286 C42.707771,18.0000286 44.3577763,19.6921938 45.3234264,21.0000286 C44.3671604,22.2937501 42.7031019,24.0000143 40.9171869,24.0000143 Z M55.0827415,24.0000143 C53.2921574,24.0000143 51.6421522,22.3078492 50.676502,21.0000286 C51.6327681,19.7062929 53.2968266,18.0000286 55.0827415,18.0000286 C56.9671212,18.0000286 58.4999392,19.3453471 58.4999392,21.0000286 C58.4999392,22.6546959 56.9671212,24.0000143 55.0827415,24.0000143 Z","id","i",1,"fill-color-primary"],["id","Oval","cx","48.644129","cy","75.1589677","rx","48.644129","ry","6.61766437",1,"fill-color-2"],["id","Group-44","transform","translate(27.000000, 69.000000)","fill-rule","nonzero"],["id","Path","transform","translate(118.400000, 8.960000) scale(-1, 1) translate(-118.400000, -8.960000) ","points","113.024 5.376 123.776 5.376 123.776 12.544 113.024 12.544",1,"fill-color-23"],["id","Group-43","transform","translate(179.000000, 40.000000)"],["id","Oval","fill-rule","nonzero","cx","47.2929593","cy","42.2294561","r","12.9683743",1,"fill-color-4"],["d","M46.519593,50.6740439 L46.519593,48.5460252 C46.9395628,48.5560039 47.349554,48.5560039 47.739557,48.5560039 L47.739557,50.6740439 L49.2794877,50.6740439 L49.2794877,48.5160274 C51.8593644,48.3760168 53.5840235,47.7260428 53.8140277,45.2961554 C53.9939838,43.3462645 53.0739982,42.476265 51.6140824,42.1263004 C52.4940295,41.6763328 53.054041,40.8763386 52.92404,39.5463928 C52.7540005,37.7264719 51.2593765,37.1164744 49.2794567,36.9465279 L49.2794567,34.4266159 L47.739526,34.4266159 L47.739526,36.8765226 C47.3395134,36.8765226 46.9295222,36.8865012 46.519562,36.8965108 L46.519562,34.4266159 L44.9796003,34.4266159 L44.9796003,36.9465279 C44.413422,36.9636341 43.7539962,36.9552669 41.8897293,36.9465279 L41.8897293,38.5864308 C43.1055717,38.564924 43.7434908,38.4867995 43.8896683,39.2663716 L43.8896683,46.1661239 C43.7968547,46.7846435 43.3018283,46.6955796 42.1997174,46.6760872 L41.8897293,48.5060178 C44.6975648,48.5060178 44.9796313,48.5160274 44.9796313,48.5160274 L44.9796313,50.6740439 L46.519593,50.6740439 Z M46.5495908,41.7662953 L46.5495908,38.6964125 C47.4195593,38.6964125 50.1394466,38.4264629 50.1394466,40.2363742 C50.1394466,41.9663016 47.4195903,41.7662953 46.5495908,41.7662953 Z M46.5495908,46.6860969 L46.5495908,43.306257 C47.5895368,43.306257 50.7741427,43.0162572 50.7741427,44.9962079 C50.7741427,46.9060914 47.5895368,46.6860969 46.5495908,46.6860969 Z","id","B","fill-rule","nonzero","transform","translate(47.863077, 42.550330) rotate(14.000000) translate(-47.863077, -42.550330) ",1,"fill-color-29"],["fxFlex","30","viewBox","0 0 200 120","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["id","LoopOut_Step05","transform","translate(-542.000000, -210.000000)","fill-rule","nonzero"],["id","Loop_Step05","transform","translate(542.000000, 210.000000)"],["id","Rectangle","x","0","y","0","width","81.4032636","height","90.8547569",1,"fill-color-11"],["id","Rectangle","x","1.34483737","y","60.660286","width","78.7116083","height","28.2158368",1,"fill-color-9"],["id","Rectangle","x","7.80560248","y","67.352783","width","46.2328358","height","14.4584872",1,"fill-color-primary-lighter"],["id","Oval","cx","68.9135074","cy","74.4889377","r","7.35996418",1,"fill-color-primary-darker"],["id","Rectangle","x","1.34483737","y","31.345208","width","78.7116083","height","28.2158368",1,"fill-color-9"],["id","Rectangle","x","7.80560248","y","38.0377051","width","46.2328358","height","14.4584872",1,"fill-color-primary-lighter"],["id","Oval","cx","68.9135074","cy","45.1758404","r","7.35996418",1,"fill-color-primary-darker"],["id","Rectangle","x","1.34483737","y","2.03013005","width","78.7116083","height","28.2158368",1,"fill-color-9"],["id","Rectangle","x","7.80560248","y","8.72460769","width","46.2328358","height","14.4584872",1,"fill-color-primary-lighter"],["id","Rectangle","x","7.80560248","y","67.352783","width","23.1164179","height","14.4584872",1,"fill-color-primary"],["id","Rectangle","x","7.80560248","y","38.0377051","width","33.2298507","height","14.4584872",1,"fill-color-primary"],["id","Rectangle","x","7.80560248","y","8.72460769","width","23.1164179","height","14.4584872",1,"fill-color-primary"],["id","Oval","cx","68.9135074","cy","15.8607624","r","7.93434243",1,"fill-color-31"],["id","Oval","fill","url(#linearGradient-1)","cx","68.9135074","cy","45.3719212","r","7.93434243"],["id","Oval","fill","url(#linearGradient-1)","cx","68.9135074","cy","74.6850186","r","7.93434243"],["id","Group-16","transform","translate(55.804478, 34.674627)"],["id","Group-29","transform","translate(0.310627, 0.751284)"],["id","Group"],["d","M132.777455,1.04124409 L82.2582659,1.04124409 L82.2582659,0 L59.3509036,0 L59.3509036,1.04124409 L8.62346042,1.04124409 C7.71715136,1.04124358 6.84796221,1.40127322 6.20710493,2.0421305 C5.56624765,2.68298778 5.20621852,3.55217693 5.20621852,4.45848599 L5.20621852,73.6347918 C5.20621852,74.5411031 5.56624437,75.4102953 6.2071016,76.0511558 C6.84795882,76.6920163 7.71714912,77.0520512 8.62346042,77.0520512 L132.777455,77.0520512 C134.664749,77.0520512 136.194697,75.522091 136.194697,73.6347977 L136.194697,4.45848599 C136.194697,3.55217693 135.834668,2.68298778 135.193811,2.0421305 C134.552953,1.40127322 133.683764,1.04124358 132.777455,1.04124409 Z","id","Path",1,"fill-color-20"],["id","Rectangle","x","9.78769098","y","7.08045867","width","121.825532","height","68.7220946",1,"fill-color-7"],["id","Path","opacity","0.306775484","points","96.7732181 75.8025901 9.78772787 75.8025901 9.78772787 7.08050333",1,"fill-color-27"],["id","Group-24","transform","translate(16.889738, 38.617955)",1,"fill-color-primary-darker"],["d","M14.5668332,29.1332406 C8.67527117,29.1332406 3.36383033,25.5842492 1.10922733,20.1411555 C-1.14537566,14.6980619 0.100864684,8.43279022 4.26682842,4.26682704 C8.43279215,0.100863866 14.698064,-1.14537564 20.1411573,1.10922807 C25.5842507,3.36383179 29.1332406,8.67527311 29.1332406,14.5668351 C29.124133,22.607864 22.6078621,29.1241341 14.5668332,29.1332406 L14.5668332,29.1332406 Z M14.5668332,0.190838576 C6.62718953,0.190838576 0.190836635,6.62719147 0.190836635,14.5668351 C0.190836635,22.5064788 6.62718953,28.9428317 14.5668332,28.9428317 C22.5064768,28.9428317 28.9428297,22.5064788 28.9428297,14.5668351 C28.9338602,6.63090975 22.5027586,0.199808125 14.5668332,0.190838576 L14.5668332,0.190838576 Z","id","Shape"],["id","Rectangle","x","99.0215517","y","44.1428314","width","11.3798353","height","2.37787551",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","25.6293676","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","28.8564861","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","32.0836045","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","35.310721","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","38.5378394","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","119.403347","y","8.47469101","width","4.75575295","height","4.75575295",1,"fill-color-5"],["d","M126.367128,15.4384701 L120.592277,15.4384701 L120.592277,9.66361906 L126.367128,9.66361906 L126.367128,15.4384701 Z M120.843366,15.1873981 L126.116048,15.1873981 L126.116048,9.91470857 L120.843366,9.91470857 L120.843366,15.1873981 Z","id","Shape",1,"fill-color-19"],["d","M139.615294,74.5530572 L127.725913,74.5530572 L127.725913,73.6964356 C127.725915,73.6513884 127.708021,73.6081857 127.676168,73.5763323 C127.644315,73.544479 127.601113,73.5265862 127.556065,73.5265862 L123.479706,73.5265862 C123.434659,73.5265862 123.391457,73.5444797 123.359604,73.5763329 C123.327751,73.6081861 123.309857,73.6513886 123.309859,73.6964356 L123.309859,74.5530572 L120.762134,74.5530572 L120.762134,73.6964356 C120.762135,73.6513886 120.744241,73.6081861 120.712388,73.5763329 C120.680536,73.5444797 120.637333,73.5265862 120.592286,73.5265862 L116.515927,73.5265862 C116.47088,73.5265862 116.427677,73.5444789 116.395824,73.5763322 C116.36397,73.6081855 116.346076,73.6513882 116.346078,73.6964356 L116.346078,74.5530572 L113.798355,74.5530572 L113.798355,73.6964356 C113.798356,73.6513882 113.780462,73.6081855 113.748609,73.5763322 C113.716755,73.5444789 113.673553,73.5265862 113.628505,73.5265862 L109.552146,73.5265862 C109.507099,73.5265862 109.463897,73.5444797 109.432044,73.5763329 C109.400191,73.6081861 109.382297,73.6513886 109.382299,73.6964356 L109.382299,74.5530572 L106.834574,74.5530572 L106.834574,73.6964356 C106.834575,73.6513886 106.816681,73.6081861 106.784828,73.5763329 C106.752975,73.5444797 106.709773,73.5265862 106.664726,73.5265862 L102.588363,73.5265862 C102.543316,73.5265862 102.500113,73.544479 102.46826,73.5763323 C102.436407,73.6081857 102.418513,73.6513884 102.418516,73.6964356 L102.418516,74.5530572 L99.8707946,74.5530572 L99.8707946,73.6964356 C99.8707961,73.6513882 99.8529018,73.6081855 99.8210486,73.5763322 C99.7891953,73.5444789 99.7459925,73.5265862 99.7009452,73.5265862 L95.6245878,73.5265862 C95.5795404,73.5265862 95.5363377,73.5444789 95.5044844,73.5763322 C95.4726311,73.6081855 95.4547369,73.6513882 95.4547384,73.6964356 L95.4547384,74.5530572 L92.9070135,74.5530572 L92.9070135,73.6964356 C92.9070151,73.6513886 92.889121,73.6081861 92.8572682,73.5763329 C92.8254153,73.5444797 92.7822131,73.5265862 92.7371661,73.5265862 L88.6608067,73.5265862 C88.6157597,73.5265862 88.5725575,73.5444797 88.5407046,73.5763329 C88.5088518,73.6081861 88.4909577,73.6513886 88.4909593,73.6964356 L88.4909593,74.5530572 L85.9432383,74.5530572 L85.9432383,73.6964356 C85.9432399,73.6513886 85.9253458,73.6081861 85.893493,73.5763329 C85.8616401,73.5444797 85.8184379,73.5265862 85.7733909,73.5265862 L53.8419073,73.5265862 C53.7968603,73.5265862 53.7536581,73.5444797 53.7218052,73.5763329 C53.6899524,73.6081861 53.6720584,73.6513886 53.6720599,73.6964356 L53.6720599,74.5530572 L51.124335,74.5530572 L51.124335,73.6964356 C51.1243366,73.6513882 51.1064423,73.6081855 51.074589,73.5763322 C51.0427358,73.5444789 50.999533,73.5265862 50.9544857,73.5265862 L46.8781379,73.5265862 C46.8330906,73.5265862 46.7898879,73.5444789 46.7580346,73.5763322 C46.7261813,73.6081855 46.708287,73.6513882 46.7082886,73.6964356 L46.7082886,74.5530572 L44.160554,74.5530572 L44.160554,73.6964356 C44.1605561,73.6513884 44.1426622,73.6081857 44.1108092,73.5763323 C44.0789563,73.544479 44.0357537,73.5265862 43.9907066,73.5265862 L39.9143472,73.5265862 C39.8693002,73.5265862 39.8260979,73.5444797 39.7942451,73.5763329 C39.7623922,73.6081861 39.7444982,73.6513886 39.7444998,73.6964356 L39.7444998,74.5530572 L37.1967749,74.5530572 L37.1967749,73.6964356 C37.1967764,73.6513886 37.1788824,73.6081861 37.1470296,73.5763329 C37.1151767,73.5444797 37.0719745,73.5265862 37.0269275,73.5265862 L32.9505681,73.5265862 C32.9055208,73.5265862 32.862318,73.5444789 32.8304647,73.5763322 C32.7986115,73.6081855 32.7807172,73.6513882 32.7807187,73.6964356 L32.7807187,74.5530572 L30.2329958,74.5530572 L30.2329958,73.6964356 C30.2329973,73.6513882 30.215103,73.6081855 30.1832498,73.5763322 C30.1513965,73.5444789 30.1081938,73.5265862 30.0631464,73.5265862 L25.986787,73.5265862 C25.94174,73.5265862 25.8985378,73.5444797 25.866685,73.5763329 C25.8348321,73.6081861 25.8169381,73.6513886 25.8169396,73.6964356 L25.8169396,74.5530572 L23.2692109,74.5530572 L23.2692109,73.6964356 C23.2692124,73.6513886 23.2513184,73.6081861 23.2194655,73.5763329 C23.1876127,73.5444797 23.1444104,73.5265862 23.0993634,73.5265862 L19.0230079,73.5265862 C18.9779608,73.5265862 18.9347582,73.544479 18.9029053,73.5763323 C18.8710523,73.6081857 18.8531585,73.6513884 18.8531605,73.6964356 L18.8531605,74.5530572 L16.3054357,74.5530572 L16.3054357,73.6964356 C16.3054372,73.6513882 16.2875429,73.6081855 16.2556896,73.5763322 C16.2238364,73.5444789 16.1806336,73.5265862 16.1355863,73.5265862 L12.0592288,73.5265862 C12.0141815,73.5265862 11.9709788,73.5444789 11.9391255,73.5763322 C11.9072722,73.6081855 11.8893779,73.6513882 11.8893795,73.6964356 L11.8893795,74.5530572 L4.07635746,74.5530572 C1.82504753,74.5530594 0,76.3781067 0,78.6294166 L0,80.4726504 C0,82.7239563 1.82505163,84.5489982 4.07635746,84.5489982 L139.615294,84.5489982 C141.8666,84.5489982 143.691654,82.7239566 143.691654,80.4726504 L143.691654,78.6294166 C143.691654,76.3781064 141.866605,74.5530594 139.615294,74.5530572 Z","id","Path",1,"fill-color-20"],["id","Group","transform","translate(14.563343, 25.890388)"],["d","M34.1898756,18.6935074 C34.8335754,18.7760331 35.5015474,18.8284611 36.1180622,18.6284578 C36.2151512,18.5983603 36.321949,18.5313689 36.3122401,18.4342799 C36.3052976,18.3990002 36.2903506,18.3657846 36.2685501,18.337191 C36.0361522,17.9886397 35.8409087,17.6167008 35.6860164,17.2274642 C35.6798777,17.2071636 35.6672606,17.1894314 35.6500935,17.176978 C35.6300188,17.1697099 35.6080312,17.1697099 35.5879565,17.176978 C35.3034859,17.2517365 35.0578508,17.4352346 34.775322,17.5138766 C34.6312683,17.5533966 34.4809179,17.5646069 34.3325963,17.5468869 C34.2044389,17.5323235 34.0296788,17.4264966 33.9131721,17.440089 C33.9791925,17.8643678 34.1403602,18.2604907 34.1898756,18.6935074 Z","id","Path",1,"fill-color-primary-darker"],["d","M46.3638597,17.6187327 C46.7881384,17.3274658 47.2279514,17.0216356 47.4784409,16.5721138 C47.4963243,16.5452282 47.5067138,16.5140596 47.5085385,16.481821 C47.5042662,16.4500929 47.4918946,16.4199997 47.4726155,16.394441 C47.2340087,16.0151166 46.9268212,15.6835648 46.5667756,15.4167552 C46.3789189,15.549458 46.2091963,15.7061249 46.061913,15.8827822 C45.9551152,15.9954054 45.6599648,16.1740491 45.6570521,16.3458965 C45.6570521,16.4429855 45.7696753,16.5556086 45.8221033,16.6371634 C45.8929782,16.7420194 45.9599696,16.8488173 46.0240483,16.9575569 C46.0609421,17.0109558 46.3978408,17.5973731 46.3638597,17.6187327 Z","id","Path",1,"fill-color-primary-darker"],["d","M36.7132175,19.9935285 C36.7207976,20.0935521 36.6933371,20.1930963 36.6355464,20.2750865 C36.5902231,20.3206727 36.5341172,20.3540691 36.4724369,20.3721755 C35.5724223,20.6945108 34.5306578,20.2925625 33.632585,20.6100434 C33.448116,20.675093 33.2733558,20.7692693 33.0879159,20.8314062 C32.8668382,20.8978733 32.6387504,20.9382775 32.4082933,20.9517965 C32.0908124,20.9818941 31.7713897,21.0013119 31.4529379,21.0100499 C31.2109788,21.0271812 30.9678332,21.0058814 30.7325379,20.9469421 C30.494578,20.8860354 30.29373,20.7268395 30.1801017,20.5090709 C30.1312849,20.4125511 30.1215484,20.3009295 30.1529168,20.1974154 C30.1669968,20.1619216 30.1870252,20.1290882 30.2121411,20.1003264 C30.2730042,20.0320475 30.3444715,19.9740213 30.423795,19.9284789 L30.7548683,19.7148832 C30.9101158,19.6051008 31.0788103,19.515696 31.2568182,19.4488595 C31.3878883,19.4061404 31.5267255,19.3876935 31.6597374,19.3517706 C32.1247935,19.215846 32.4801391,18.846908 32.8102415,18.4925333 L33.2607343,18.011943 C33.3028503,17.9590638 33.3562578,17.9162715 33.4170475,17.8866982 C33.4795282,17.8658617 33.5459388,17.8595527 33.6112254,17.8682513 C34.0488232,17.8994947 34.4713668,18.041122 34.8394007,18.2799085 C34.9334629,18.3504651 35.0350556,18.4103788 35.1423182,18.4585522 C35.4064002,18.5614665 35.7452406,18.4837953 35.9889339,18.3536961 C36.1044698,18.2915592 36.0792267,18.2566071 36.1277711,18.1459257 C36.1763156,18.0352443 36.2947641,17.9643694 36.3976784,18.0653419 C36.4287289,18.1002598 36.4507324,18.1422664 36.4617571,18.187674 C36.5588461,18.5080675 36.5219523,18.8527333 36.5219523,19.1886611 C36.519104,19.2411857 36.5256803,19.2937961 36.5413701,19.3440034 C36.566144,19.3946232 36.5957307,19.4427421 36.629721,19.4876951 C36.6366398,19.4995928 36.642801,19.5119152 36.6481679,19.5245889 C36.7075588,19.673314 36.7298837,19.8342531 36.7132175,19.9935285 Z","id","Path",1,"fill-color-primary-darker"],["d","M36.7132175,19.9935285 C36.7207976,20.0935521 36.6933371,20.1930963 36.6355464,20.2750865 C36.5902231,20.3206727 36.5341172,20.3540691 36.4724369,20.3721755 C35.5724223,20.6945108 34.5306578,20.2925625 33.632585,20.6100434 C33.448116,20.675093 33.2733558,20.7692693 33.0879159,20.8314062 C32.8668382,20.8978733 32.6387504,20.9382775 32.4082933,20.9517965 C32.0908124,20.9818941 31.7713897,21.0013119 31.4529379,21.0100499 C31.2109788,21.0271812 30.9678332,21.0058814 30.7325379,20.9469421 C30.494578,20.8860354 30.29373,20.7268395 30.1801017,20.5090709 C30.1312849,20.4125511 30.1215484,20.3009295 30.1529168,20.1974154 C30.1669968,20.1619216 30.1870252,20.1290882 30.2121411,20.1003264 C30.2645691,20.2100369 30.3024338,20.3556704 30.3354441,20.4080984 C30.4256618,20.5652773 30.5791886,20.6760005 30.7568101,20.7119868 C30.8882242,20.7200556 31.0199808,20.7032567 31.1451659,20.6624715 C31.9607132,20.4605264 32.8277175,20.4576138 33.6112254,20.1517835 C33.8801618,20.0459566 34.1364767,19.9051776 34.4190055,19.8410989 C34.7015344,19.7770202 35.0015392,19.7944962 35.2928061,19.770224 C35.7530078,19.7333301 36.1986461,19.5944929 36.6520515,19.5216762 C36.7105975,19.6716231 36.7315958,19.83361 36.7132175,19.9935285 L36.7132175,19.9935285 Z","id","Path",1,"fill-color-primary-darker"],["d","M48.4250582,17.5595084 C48.3823391,17.9012616 48.1658307,18.1954411 47.9279627,18.4449597 C47.6900948,18.6944783 47.4211584,18.9187538 47.2318349,19.2061371 C46.9988214,19.5624536 46.8939654,20.0042083 46.5910478,20.3051841 C46.4747693,20.4146353 46.3441148,20.5077266 46.202692,20.5818876 C46.0442646,20.6753601 45.8767312,20.752458 45.7026839,20.8119884 C45.2502494,20.956651 44.7628628,20.9236407 44.2900396,20.8886887 C44.1365309,20.8872131 43.9845596,20.8579372 43.8414886,20.8022795 C43.7763574,20.7691922 43.7140162,20.7308783 43.6550778,20.6877146 C43.5365551,20.6147292 43.4367964,20.5149704 43.363811,20.3964477 C43.3279723,20.332004 43.3179103,20.2563656 43.3356552,20.1847938 C43.3626747,20.1059564 43.4090817,20.0351774 43.4706088,19.9789652 C43.5770067,19.8683202 43.6912186,19.7654647 43.8123619,19.6711932 C43.9785829,19.5639234 44.1283649,19.4331094 44.2570293,19.2828374 C44.335968,19.1640934 44.3940832,19.0327597 44.4288768,18.8944816 C44.4976483,18.652227 44.5396476,18.4031617 44.5541216,18.1517511 C44.5535898,17.9846963 44.5708393,17.8180593 44.6055787,17.6546556 C44.6774245,17.3983408 44.8677189,17.1692108 44.8463593,16.904158 C44.8377185,16.866204 44.8411119,16.8265011 44.8560682,16.7905639 C44.8786704,16.7624825 44.9101823,16.7429588 44.94539,16.7352232 C45.0937604,16.6760869 45.2502282,16.6397523 45.4094752,16.6274545 C45.571226,16.6162976 45.7294484,16.6783037 45.8405502,16.7963893 C45.9065707,16.8760022 45.9502607,16.9905672 46.0473497,17.0216356 C46.0954598,17.0347655 46.1459295,17.0367577 46.1949249,17.027461 C46.4337637,17.0031887 46.686195,16.9730912 46.8745476,16.8187197 C47.0505482,16.6608586 47.152616,16.4366614 47.1561056,16.2002631 C47.1561056,16.1119121 47.1162991,16.0196776 47.2531945,16.0060852 C47.3561088,15.9924927 47.4376635,16.1031741 47.4900916,16.1711364 C47.679415,16.4245386 47.8735929,16.6895914 47.9444679,16.9983343 C47.9720312,16.9876362 48.0013112,16.9820434 48.030877,16.9818292 C48.1537854,16.9807475 48.2694521,17.0398499 48.3405908,17.1400842 C48.4179108,17.2653269 48.447872,17.4140998 48.4250582,17.5595084 L48.4250582,17.5595084 Z","id","Path",1,"fill-color-primary-darker"],["d","M48.4250582,17.5595084 C48.3823391,17.9012616 48.1658307,18.1954411 47.9279627,18.4449597 C47.6900948,18.6944783 47.4211584,18.9187538 47.2318349,19.2061371 C46.9988214,19.5624536 46.8939654,20.0042083 46.5910478,20.3051841 C46.4747693,20.4146353 46.3441148,20.5077266 46.202692,20.5818876 C46.0442646,20.6753601 45.8767312,20.752458 45.7026839,20.8119884 C45.2502494,20.956651 44.7628628,20.9236407 44.2900396,20.8886887 C44.1365309,20.8872131 43.9845596,20.8579372 43.8414886,20.8022795 C43.7763574,20.7691922 43.7140162,20.7308783 43.6550778,20.6877146 C43.5365551,20.6147292 43.4367964,20.5149704 43.363811,20.3964477 C43.4548211,20.3526902 43.5541213,20.3288581 43.6550778,20.3265437 C43.86479,20.3381943 44.0181905,20.5362558 44.2191647,20.5974219 C44.5055771,20.683831 44.7910186,20.481886 45.0813146,20.4129528 C45.270638,20.3682919 45.4696704,20.3799426 45.6570521,20.3158639 C45.8132081,20.2555144 45.9574928,20.168089 46.0832726,20.0576073 C46.2556706,19.9343474 46.4090818,19.786497 46.5386198,19.6187652 C46.646198,19.4510234 46.735696,19.2723528 46.8056144,19.0857468 C46.9589198,18.7281302 47.1393856,18.3827784 47.345429,18.0527203 C47.375905,18.0004629 47.4127576,17.9521958 47.4551395,17.9090287 C47.5007713,17.8672804 47.5522285,17.8381537 47.6036856,17.8012599 C47.7978635,17.6546556 47.8784474,17.4129041 47.9464096,17.1760071 C47.9648208,17.1040024 47.9905203,17.0340608 48.0231099,16.9672512 C48.1460183,16.9661841 48.2616849,17.0252865 48.3328237,17.1255208 C48.4163608,17.2537243 48.4492363,17.4084124 48.4250582,17.5595084 L48.4250582,17.5595084 Z","id","Path",1,"fill-color-primary-darker"],["d","M54.316416,4.55250111 L54.316416,3.34665629 C54.316416,1.49819202 52.8172532,0 50.9687888,0 L3.34762718,0 C1.49916283,0 0,1.49819202 0,3.34665629 L0,5.56999336 L54.316416,4.55250111 Z","id","Path",1,"fill-color-16"],["d","M55.6018738,5.73601547 L55.6018738,39.231705 C55.6018738,39.9999836 55.2966099,40.7367813 54.7532639,41.2799452 C54.2099179,41.8231092 53.4730179,42.1278687 52.7047393,42.1278687 L2.89810531,42.1278687 C1.29897753,42.1273325 0.00291266866,40.8308329 0.00291266866,39.231705 L0.00291266866,2.35926161 C1.43012031,2.88936731 1.43012031,2.88936731 2.89810531,2.84470639 L52.7047393,2.84470639 C54.3025103,2.84470316 55.5986611,4.13824772 55.6018738,5.73601547 Z","id","Path","opacity","0.1",1,"fill-color-27"],["d","M55.6018738,6.16223599 L55.6018738,39.6579255 C55.6018738,41.2575895 54.3044034,42.5540891 52.7047393,42.5540891 L2.89810531,42.5540891 C1.29897753,42.553553 0.00291266866,41.2570534 0.00291266866,39.6579255 L0.00291266866,2.78451124 C1.43012031,3.31364604 1.43012031,3.31364604 2.89810531,3.26995601 L52.7047393,3.26995601 C54.3028886,3.26995377 55.5991959,4.56408894 55.6018738,6.16223599 Z","id","Path",1,"fill-color-19"],["d","M55.4601239,18.5459322 L55.4601239,29.2577567 L45.0716057,29.2577567 C42.141738,29.2183086 39.7873207,26.8319777 39.7873207,23.9018444 C39.7873207,20.9717112 42.141738,18.5853803 45.0716057,18.5459322 L55.4601239,18.5459322 Z","id","Path","opacity","0.1",1,"fill-color-27"],["d","M55.6018738,18.2604907 L55.6018738,28.9742569 L45.2133556,28.9742569 C42.2834879,28.9348088 39.9290706,26.5484779 39.9290706,23.6183447 C39.9290706,20.6882114 42.2834879,18.3018806 45.2133556,18.2624325 L55.6018738,18.2604907 Z","id","Path",1,"fill-color-17"],["id","Oval","opacity","0.1","cx","45.7114219","cy","23.9023299","r","2.08838343",1,"fill-color-27"],["id","Oval","cx","45.8531718","cy","23.6188301","r","2.08838343",1,"fill-color-28"],["d","M37.114137,56.485738 L37.114137,54.3663604 C37.5324015,54.3762985 37.9407279,54.3762985 38.3291472,54.3762985 L38.3291472,56.485738 L39.8628249,56.485738 L39.8628249,54.3364843 C42.4322258,54.1970423 44.1498818,53.5497076 44.378952,51.1296869 C44.5581774,49.1877136 43.6419275,48.3212469 42.1879398,47.9727034 C43.0643138,47.5245628 43.6220513,46.7278171 43.4925782,45.4032717 C43.3232292,43.5907407 41.8346742,42.9832201 39.8627941,42.8139637 L39.8627941,40.3042841 L38.3291164,40.3042841 L38.3291164,42.7442427 C37.9307281,42.7442427 37.5224017,42.7541808 37.1141061,42.7641498 L37.1141061,40.3042841 L35.5803975,40.3042841 L35.5803975,42.8139637 C35.0165182,42.8310005 34.3597701,42.8226673 32.5030732,42.8139637 L32.5030732,44.4472076 C33.7139786,44.4257882 34.3493073,44.3479809 34.4948913,45.1243875 L34.4948913,51.9961228 C34.4024546,52.6121309 33.9094382,52.5234287 32.8118025,52.5040154 L32.5030732,54.3265154 L33.46474,54.3269705 C35.3673259,54.328922 35.5804284,54.3364843 35.5804284,54.3364843 L35.5804284,56.485738 L37.114137,56.485738 Z M37.144013,47.6141601 L37.144013,44.5567428 C38.0104489,44.5567428 40.7192919,44.2878893 40.7192919,46.0904514 C40.7192919,47.8133542 38.0104798,47.6141601 37.144013,47.6141601 Z M37.144013,52.5139844 L37.144013,49.1478686 C38.1797362,49.1478686 41.3514108,48.8590464 41.3514108,50.8309574 C41.3514108,52.7330856 38.1797362,52.5139844 37.144013,52.5139844 Z","id","b","transform","translate(38.452166, 48.395011) rotate(14.000000) translate(-38.452166, -48.395011) ",1,"fill-color-30"]],template:function(t,e){if(1&t&&(h.YNc(0,j,1,0,"ng-container",0),h.YNc(1,Q,32,5,"ng-template",null,1,h.W1O),h.YNc(3,W,51,5,"ng-template",null,2,h.W1O),h.YNc(5,J,74,5,"ng-template",null,3,h.W1O),h.YNc(7,X,53,5,"ng-template",null,4,h.W1O),h.YNc(9,K,66,5,"ng-template",null,5,h.W1O)),2&t){const t=h.MAs(2),i=h.MAs(4),n=h.MAs(6),r=h.MAs(8),s=h.MAs(10);h.Q6J("ngTemplateOutlet",1===e.stepNumber?t:2===e.stepNumber?i:3===e.stepNumber?n:4===e.stepNumber?r:s)}},directives:[p.tP,y.xw,y.yH,y.Wh,p.mk,x.oO,b.n5,b.$j],styles:["svg.small-svg[_ngcontent-%COMP%]{height:50%;min-height:50%;max-width:100%}svg.large-svg[_ngcontent-%COMP%]{height:60%;min-height:60%;max-width:100%}"],data:{animation:[G.l]}}),t})();function tt(t,e){1&t&&h.GkF(0)}const et=function(t,e){return{"small-svg":t,"large-svg":e}};function it(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",6),h.NdJ("swipe",function(e){return h.CHM(t),h.oxw().onSwipe(e)}),h.O4$(),h.TgZ(1,"svg",7),h.TgZ(2,"desc"),h._uU(3,"Created with Sketch."),h.qZA(),h.TgZ(4,"g",8),h.TgZ(5,"g",9),h.TgZ(6,"g",10),h.TgZ(7,"g",11),h._UZ(8,"circle",12),h._UZ(9,"path",13),h.qZA(),h.TgZ(10,"g",14),h._UZ(11,"ellipse",15),h._UZ(12,"ellipse",16),h._UZ(13,"rect",17),h._UZ(14,"rect",18),h._UZ(15,"rect",19),h._UZ(16,"rect",20),h._UZ(17,"rect",21),h._UZ(18,"rect",22),h._UZ(19,"rect",23),h._UZ(20,"rect",24),h._UZ(21,"rect",25),h._UZ(22,"rect",26),h._UZ(23,"rect",27),h._UZ(24,"rect",28),h._UZ(25,"rect",29),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.kcU(),h.TgZ(26,"div",30),h.TgZ(27,"mat-card-title"),h._uU(28,"Loop In explained."),h.qZA(),h.qZA(),h.TgZ(29,"div",31),h.TgZ(30,"mat-card-subtitle",32),h._uU(31," Lightning Loop is a non custodial service offered by Lightning Labs to bridge on-chain and off-chain Bitcoin using Submarine swaps. "),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=h.oxw();h.Q6J("@sliderAnimation",t.animationDirection),h.xp6(1),h.Q6J("ngClass",h.WLB(2,et,t.screenSize===t.screenSizeEnum.XS,t.screenSize!==t.screenSizeEnum.XS))}}function nt(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",6),h.NdJ("swipe",function(e){return h.CHM(t),h.oxw().onSwipe(e)}),h.O4$(),h.TgZ(1,"svg",33),h.TgZ(2,"desc"),h._uU(3,"Created with Sketch."),h.qZA(),h.TgZ(4,"defs"),h.TgZ(5,"linearGradient",34),h._UZ(6,"stop",35),h._UZ(7,"stop",36),h._UZ(8,"stop",37),h.qZA(),h.qZA(),h.TgZ(9,"g",8),h.TgZ(10,"g",38),h.TgZ(11,"g",39),h.TgZ(12,"g",40),h._UZ(13,"rect",41),h._UZ(14,"rect",42),h._UZ(15,"rect",43),h._UZ(16,"circle",44),h._UZ(17,"rect",45),h._UZ(18,"rect",46),h._UZ(19,"circle",47),h._UZ(20,"rect",48),h._UZ(21,"rect",49),h._UZ(22,"rect",50),h._UZ(23,"rect",51),h._UZ(24,"rect",52),h._UZ(25,"circle",53),h._UZ(26,"circle",54),h._UZ(27,"circle",55),h.qZA(),h.TgZ(28,"g",56),h.TgZ(29,"g",57),h.TgZ(30,"g",58),h._UZ(31,"path",59),h._UZ(32,"rect",60),h._UZ(33,"polygon",61),h.TgZ(34,"g",62),h._UZ(35,"path",63),h.qZA(),h._UZ(36,"rect",64),h._UZ(37,"rect",65),h._UZ(38,"rect",66),h._UZ(39,"rect",67),h._UZ(40,"rect",68),h._UZ(41,"rect",69),h._UZ(42,"rect",70),h._UZ(43,"path",71),h._UZ(44,"path",72),h.qZA(),h.TgZ(45,"g",73),h._UZ(46,"path",74),h._UZ(47,"path",75),h._UZ(48,"path",76),h._UZ(49,"path",77),h._UZ(50,"path",78),h._UZ(51,"path",79),h._UZ(52,"path",80),h._UZ(53,"path",81),h._UZ(54,"path",82),h._UZ(55,"path",83),h._UZ(56,"path",84),h._UZ(57,"circle",85),h._UZ(58,"circle",86),h.qZA(),h._UZ(59,"path",87),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.kcU(),h.TgZ(60,"div",30),h.TgZ(61,"mat-card-title"),h._uU(62,"Step 1: Deciding to Loop In"),h.qZA(),h.qZA(),h.TgZ(63,"div",31),h.TgZ(64,"mat-card-subtitle",32),h._uU(65," Your outgoing capacity is depleted and you want to regain it without opening new channels. "),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=h.oxw();h.Q6J("@sliderAnimation",t.animationDirection),h.xp6(1),h.Q6J("ngClass",h.WLB(2,et,t.screenSize===t.screenSizeEnum.XS,t.screenSize!==t.screenSizeEnum.XS))}}function rt(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",6),h.NdJ("swipe",function(e){return h.CHM(t),h.oxw().onSwipe(e)}),h.O4$(),h.TgZ(1,"svg",88),h.TgZ(2,"desc"),h._uU(3,"Created with Sketch."),h.qZA(),h.TgZ(4,"defs"),h.TgZ(5,"linearGradient",89),h._UZ(6,"stop",35),h._UZ(7,"stop",36),h._UZ(8,"stop",37),h.qZA(),h.qZA(),h.TgZ(9,"g",90),h.TgZ(10,"g",91),h.TgZ(11,"g",92),h.TgZ(12,"g",93),h.TgZ(13,"g",94),h._UZ(14,"circle",95),h._UZ(15,"path",96),h.TgZ(16,"g",97),h._UZ(17,"polygon",98),h._UZ(18,"polygon",99),h._UZ(19,"path",100),h.qZA(),h.TgZ(20,"g",101),h._UZ(21,"polygon",102),h._UZ(22,"path",103),h._UZ(23,"rect",104),h._UZ(24,"path",105),h._UZ(25,"rect",106),h._UZ(26,"rect",107),h._UZ(27,"rect",108),h._UZ(28,"rect",109),h._UZ(29,"circle",110),h._UZ(30,"path",111),h.TgZ(31,"g",112),h.TgZ(32,"g",113),h._UZ(33,"g",114),h.qZA(),h._UZ(34,"g",115),h.qZA(),h.qZA(),h.qZA(),h.TgZ(35,"g",116),h.TgZ(36,"g",40),h._UZ(37,"rect",117),h._UZ(38,"rect",42),h._UZ(39,"rect",43),h._UZ(40,"circle",118),h._UZ(41,"rect",45),h._UZ(42,"rect",46),h._UZ(43,"circle",119),h._UZ(44,"rect",48),h._UZ(45,"rect",49),h._UZ(46,"rect",50),h._UZ(47,"rect",51),h._UZ(48,"rect",52),h._UZ(49,"circle",120),h._UZ(50,"circle",54),h._UZ(51,"circle",55),h._UZ(52,"circle",121),h.qZA(),h.TgZ(53,"g",56),h.TgZ(54,"g",57),h.TgZ(55,"g",58),h._UZ(56,"path",59),h._UZ(57,"rect",60),h._UZ(58,"polygon",61),h.TgZ(59,"g",122),h._UZ(60,"path",63),h.qZA(),h._UZ(61,"rect",123),h._UZ(62,"rect",124),h._UZ(63,"rect",125),h._UZ(64,"rect",126),h._UZ(65,"rect",127),h._UZ(66,"rect",128),h._UZ(67,"rect",129),h._UZ(68,"path",130),h._UZ(69,"path",72),h.qZA(),h.TgZ(70,"g",73),h._UZ(71,"path",131),h._UZ(72,"path",132),h._UZ(73,"path",133),h._UZ(74,"path",134),h._UZ(75,"path",135),h._UZ(76,"path",136),h._UZ(77,"path",80),h._UZ(78,"path",81),h._UZ(79,"path",137),h._UZ(80,"path",83),h._UZ(81,"path",138),h._UZ(82,"circle",85),h._UZ(83,"circle",86),h.qZA(),h._UZ(84,"path",139),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h._UZ(85,"path",140),h._UZ(86,"path",141),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.kcU(),h.TgZ(87,"div",30),h.TgZ(88,"mat-card-title"),h._uU(89,"Step 2: Send payment out"),h.qZA(),h.qZA(),h.TgZ(90,"div",31),h.TgZ(91,"mat-card-subtitle",32),h._uU(92," Your node sends funds on-chain to loop server to be swapped with off-chain liquidity. "),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=h.oxw();h.Q6J("@sliderAnimation",t.animationDirection),h.xp6(1),h.Q6J("ngClass",h.WLB(2,et,t.screenSize===t.screenSizeEnum.XS,t.screenSize!==t.screenSizeEnum.XS))}}function st(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",6),h.NdJ("swipe",function(e){return h.CHM(t),h.oxw().onSwipe(e)}),h.O4$(),h.TgZ(1,"svg",142),h.TgZ(2,"desc"),h._uU(3,"Created with Sketch."),h.qZA(),h.TgZ(4,"g",90),h.TgZ(5,"g",143),h.TgZ(6,"g",144),h.TgZ(7,"g"),h.TgZ(8,"g",145),h.TgZ(9,"g",146),h._UZ(10,"circle",12),h._UZ(11,"path",147),h.qZA(),h.TgZ(12,"g",14),h._UZ(13,"ellipse",148),h._UZ(14,"ellipse",16),h._UZ(15,"rect",17),h._UZ(16,"rect",18),h._UZ(17,"rect",19),h._UZ(18,"rect",20),h._UZ(19,"rect",21),h._UZ(20,"rect",22),h._UZ(21,"rect",23),h._UZ(22,"rect",24),h._UZ(23,"rect",25),h._UZ(24,"rect",26),h._UZ(25,"rect",27),h._UZ(26,"rect",28),h._UZ(27,"rect",29),h.qZA(),h.qZA(),h.TgZ(28,"g",149),h._UZ(29,"polygon",150),h._UZ(30,"polygon",99),h._UZ(31,"path",151),h.qZA(),h.TgZ(32,"g",152),h._UZ(33,"polygon",102),h._UZ(34,"path",103),h._UZ(35,"rect",104),h._UZ(36,"path",105),h._UZ(37,"rect",106),h._UZ(38,"rect",107),h._UZ(39,"rect",108),h._UZ(40,"rect",109),h._UZ(41,"circle",110),h._UZ(42,"path",111),h.TgZ(43,"g",112),h.TgZ(44,"g",113),h._UZ(45,"g",114),h.qZA(),h._UZ(46,"g",115),h.qZA(),h.qZA(),h.qZA(),h._UZ(47,"path",153),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.kcU(),h.TgZ(48,"div",30),h.TgZ(49,"mat-card-title"),h._uU(50,"Step 3: Recieve Funds Off-chain"),h.qZA(),h.qZA(),h.TgZ(51,"div",31),h.TgZ(52,"mat-card-subtitle",32),h._uU(53," Loop server sends equivalent funds off-chain to your node by making a lightning payment to you. "),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=h.oxw();h.Q6J("@sliderAnimation",t.animationDirection),h.xp6(1),h.Q6J("ngClass",h.WLB(2,et,t.screenSize===t.screenSizeEnum.XS,t.screenSize!==t.screenSizeEnum.XS))}}function ot(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",6),h.NdJ("swipe",function(e){return h.CHM(t),h.oxw().onSwipe(e)}),h.O4$(),h.TgZ(1,"svg",154),h.TgZ(2,"desc"),h._uU(3,"Created with Sketch."),h.qZA(),h.TgZ(4,"defs"),h.TgZ(5,"linearGradient",34),h._UZ(6,"stop",35),h._UZ(7,"stop",36),h._UZ(8,"stop",37),h.qZA(),h.qZA(),h.TgZ(9,"g",90),h.TgZ(10,"g",155),h.TgZ(11,"g",156),h.TgZ(12,"g",157),h.TgZ(13,"g",158),h.TgZ(14,"g",40),h._UZ(15,"rect",159),h._UZ(16,"rect",160),h._UZ(17,"rect",161),h._UZ(18,"circle",162),h._UZ(19,"rect",163),h._UZ(20,"rect",164),h._UZ(21,"circle",165),h._UZ(22,"rect",166),h._UZ(23,"rect",167),h._UZ(24,"rect",168),h._UZ(25,"rect",169),h._UZ(26,"circle",170),h._UZ(27,"circle",171),h.qZA(),h.TgZ(28,"g",172),h._UZ(29,"path",173),h._UZ(30,"rect",174),h._UZ(31,"polygon",175),h._UZ(32,"circle",176),h._UZ(33,"path",177),h._UZ(34,"rect",178),h._UZ(35,"rect",179),h._UZ(36,"rect",180),h._UZ(37,"rect",181),h._UZ(38,"rect",182),h._UZ(39,"rect",183),h._UZ(40,"rect",184),h._UZ(41,"path",185),h._UZ(42,"path",186),h.qZA(),h._UZ(43,"path",187),h.qZA(),h.qZA(),h._UZ(44,"circle",188),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.kcU(),h.TgZ(45,"div",30),h.TgZ(46,"mat-card-title"),h._uU(47,"Done!"),h.qZA(),h.qZA(),h.TgZ(48,"div",31),h.TgZ(49,"mat-card-subtitle",32),h._uU(50," You send the payment on-chain from your wallet and also move remote balance to the local side of the node, gaining outgoing capacity. "),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=h.oxw();h.Q6J("@sliderAnimation",t.animationDirection),h.xp6(1),h.Q6J("ngClass",h.WLB(2,et,t.screenSize===t.screenSizeEnum.XS,t.screenSize!==t.screenSizeEnum.XS))}}let at=(()=>{class t{constructor(t){this.commonService=t,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new h.vpe,this.screenSize="",this.screenSizeEnum=c.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(t){2===t.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===t.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(g.v))},t.\u0275cmp=h.Xpm({type:t,selectors:[["rtl-loop-in-info-graphics"]],inputs:{animationDirection:"animationDirection",stepNumber:"stepNumber"},outputs:{stepNumberChange:"stepNumberChange"},decls:11,vars:1,consts:[[4,"ngTemplateOutlet"],["loopStepBlock1",""],["loopStepBlock2",""],["loopStepBlock3",""],["loopStepBlock4",""],["loopStepBlock5",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",3,"swipe"],["fxFlex","30","viewBox","0 0 108 118","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["id","Loopv0.2","stroke","none","stroke-width","1","fill","none","fill-rule","evenodd"],["id","LoopIn_Step01","transform","translate(-594.000000, -215.000000)","fill-rule","nonzero"],["id","Loop_Step01","transform","translate(594.000000, 215.000000)"],["id","Group-16","transform","translate(23.000000, 0.000000)"],["id","Oval","cx","42.4877419","cy","42.4877419","r","42.4877419",1,"fill-color-2"],["d","M56.0827415,28.5000036 C60.4468211,28.5000036 63.9999285,25.1343958 63.9999285,21.0000215 C63.9999285,16.8656472 60.4468211,13.5000393 56.0827415,13.5000393 C52.9843297,13.5000393 50.5608889,15.4359631 48.9999642,17.1843872 C47.4390396,15.4359631 45.0155987,13.5000393 41.9171869,13.5000393 C37.5531074,13.5000393 34,16.8656472 34,21.0000215 C34,25.1343958 37.5531074,28.5000036 41.9171869,28.5000036 C45.0155987,28.5000036 47.4390396,26.5640798 48.9999642,24.8156557 C50.5608889,26.5640798 52.9843297,28.5000036 56.0827415,28.5000036 Z M41.9171869,24.0000143 C40.0328073,24.0000143 38.4999893,22.6546959 38.4999893,21.0000286 C38.4999893,19.3453471 40.0328073,18.0000286 41.9171869,18.0000286 C43.707771,18.0000286 45.3577763,19.6921938 46.3234264,21.0000286 C45.3671604,22.2937501 43.7031019,24.0000143 41.9171869,24.0000143 Z M56.0827415,24.0000143 C54.2921574,24.0000143 52.6421522,22.3078492 51.676502,21.0000286 C52.6327681,19.7062929 54.2968266,18.0000286 56.0827415,18.0000286 C57.9671212,18.0000286 59.4999392,19.3453471 59.4999392,21.0000286 C59.4999392,22.6546959 57.9671212,24.0000143 56.0827415,24.0000143 Z","id","i",1,"fill-color-primary"],["id","Group-21","transform","translate(0.000000, 36.000000)"],["id","Oval","cx","48.644129","cy","75.1589677","rx","48.644129","ry","6.61766437",1,"fill-color-7"],["id","Oval","opacity","0.1","cx","48.644129","cy","75.1589677","rx","40.8402581","ry","5.55600756",1,"fill-color-27"],["id","Rectangle","x","25.2325161","y","6.09470968","width","54.1068387","height","62.9512258",1,"fill-color-26"],["id","Rectangle","x","20","y","1.24344979e-14","width","65.0322581","height","22.3710968",1,"fill-color-19"],["id","Rectangle","x","20","y","26","width","65.0322581","height","22.3710968",1,"fill-color-19"],["id","Rectangle","x","19.7698065","y","52.9179355","width","65.0322581","height","22.3710968",1,"fill-color-19"],["id","Rectangle","x","67.6335484","y","3.75354839","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","73.6165161","y","3.75354839","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","79.5994839","y","3.75354839","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","67.6335484","y","30.0265806","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","73.6165161","y","30.0265806","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","79.5994839","y","30.0265806","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","67.6335484","y","56.2996129","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","73.6165161","y","56.2996129","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","79.5994839","y","56.2996129","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["fxFlex","20","fxLayoutAlign","center end"],["fxFlex","40"],[1,"font-size-120"],["fxFlex","30","viewBox","0 0 200 120","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["x1","50%","y1","100%","x2","50%","y2","0%","id","linearGradient-1"],["stop-color","#808080","stop-opacity","0.25","offset","0%"],["stop-color","#808080","stop-opacity","0.12","offset","54%"],["stop-color","#808080","stop-opacity","0.1","offset","100%"],["id","LoopIn_Step02","transform","translate(-542.000000, -210.000000)","fill-rule","nonzero"],["id","Loop_Step02","transform","translate(542.000000, 210.000000)"],["id","Group-2"],["id","Rectangle","x","0","y","0","width","81.4032636","height","90.8547569",1,"fill-color-11"],["id","Rectangle","x","1.34483737","y","60.660286","width","78.7116083","height","28.2158368",1,"fill-color-9"],["id","Rectangle","x","7.80560248","y","67.352783","width","46.2328358","height","14.4584872",1,"fill-color-primary-lighter"],["id","Oval","cx","68.9135074","cy","74.4889377","r","7.35996418",1,"fill-color-primary-darker"],["id","Rectangle","x","1.34483737","y","31.345208","width","78.7116083","height","28.2158368",1,"fill-color-9"],["id","Rectangle","x","7.80560248","y","38.0377051","width","46.2328358","height","14.4584872",1,"fill-color-primary-lighter"],["id","Oval","cx","68.9135074","cy","45.1758404","r","7.35996418",1,"fill-color-primary-darker"],["id","Rectangle","x","1.34483737","y","2.03013005","width","78.7116083","height","28.2158368",1,"fill-color-9"],["id","Rectangle","x","7.80560248","y","8.72460769","width","46.2328358","height","14.4584872",1,"fill-color-primary-lighter"],["id","Rectangle","x","7.80560248","y","67.352783","width","23.1164179","height","14.4584872",1,"fill-color-primary"],["id","Rectangle","x","7.80560248","y","38.0377051","width","33.2298507","height","14.4584872",1,"fill-color-primary"],["id","Rectangle","x","7.80560248","y","8.72460769","width","23.1164179","height","14.4584872",1,"fill-color-primary"],["id","Oval","cx","68.9135074","cy","15.8607624","r","7.93434243",1,"fill-color-31"],["id","Oval","fill","url(#linearGradient-1)","cx","68.9135074","cy","45.3719212","r","7.93434243"],["id","Oval","fill","url(#linearGradient-1)","cx","68.9135074","cy","74.6850186","r","7.93434243"],["id","Group-16","transform","translate(55.804478, 34.674627)"],["id","Group-29","transform","translate(0.310627, 0.751284)"],["id","Group"],["d","M132.777455,1.04124409 L82.2582659,1.04124409 L82.2582659,0 L59.3509036,0 L59.3509036,1.04124409 L8.62346042,1.04124409 C7.71715136,1.04124358 6.84796221,1.40127322 6.20710493,2.0421305 C5.56624765,2.68298778 5.20621852,3.55217693 5.20621852,4.45848599 L5.20621852,73.6347918 C5.20621852,74.5411031 5.56624437,75.4102953 6.2071016,76.0511558 C6.84795882,76.6920163 7.71714912,77.0520512 8.62346042,77.0520512 L132.777455,77.0520512 C134.664749,77.0520512 136.194697,75.522091 136.194697,73.6347977 L136.194697,4.45848599 C136.194697,3.55217693 135.834668,2.68298778 135.193811,2.0421305 C134.552953,1.40127322 133.683764,1.04124358 132.777455,1.04124409 Z","id","Path",1,"fill-color-20"],["id","Rectangle","x","9.78769098","y","7.08045867","width","121.825532","height","68.7220946",1,"fill-color-7"],["id","Path","opacity","0.306775484","points","96.7732181 75.8025901 9.78772787 75.8025901 9.78772787 7.08050333",1,"fill-color-27"],["id","Group-24","transform","translate(16.889738, 38.617955)",1,"fill-color-primary-darker"],["d","M14.5668332,29.1332406 C8.67527117,29.1332406 3.36383033,25.5842492 1.10922733,20.1411555 C-1.14537566,14.6980619 0.100864684,8.43279022 4.26682842,4.26682704 C8.43279215,0.100863866 14.698064,-1.14537564 20.1411573,1.10922807 C25.5842507,3.36383179 29.1332406,8.67527311 29.1332406,14.5668351 C29.124133,22.607864 22.6078621,29.1241341 14.5668332,29.1332406 L14.5668332,29.1332406 Z M14.5668332,0.190838576 C6.62718953,0.190838576 0.190836635,6.62719147 0.190836635,14.5668351 C0.190836635,22.5064788 6.62718953,28.9428317 14.5668332,28.9428317 C22.5064768,28.9428317 28.9428297,22.5064788 28.9428297,14.5668351 C28.9338602,6.63090975 22.5027586,0.199808125 14.5668332,0.190838576 L14.5668332,0.190838576 Z","id","Shape"],["id","Rectangle","x","99.0215517","y","44.1428314","width","11.3798353","height","2.37787551",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","25.6293676","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","28.8564861","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","32.0836045","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","35.310721","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","38.5378394","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","119.403347","y","8.47469101","width","4.75575295","height","4.75575295",1,"fill-color-5"],["d","M126.367128,15.4384701 L120.592277,15.4384701 L120.592277,9.66361906 L126.367128,9.66361906 L126.367128,15.4384701 Z M120.843366,15.1873981 L126.116048,15.1873981 L126.116048,9.91470857 L120.843366,9.91470857 L120.843366,15.1873981 Z","id","Shape",1,"fill-color-19"],["d","M139.615294,74.5530572 L127.725913,74.5530572 L127.725913,73.6964356 C127.725915,73.6513884 127.708021,73.6081857 127.676168,73.5763323 C127.644315,73.544479 127.601113,73.5265862 127.556065,73.5265862 L123.479706,73.5265862 C123.434659,73.5265862 123.391457,73.5444797 123.359604,73.5763329 C123.327751,73.6081861 123.309857,73.6513886 123.309859,73.6964356 L123.309859,74.5530572 L120.762134,74.5530572 L120.762134,73.6964356 C120.762135,73.6513886 120.744241,73.6081861 120.712388,73.5763329 C120.680536,73.5444797 120.637333,73.5265862 120.592286,73.5265862 L116.515927,73.5265862 C116.47088,73.5265862 116.427677,73.5444789 116.395824,73.5763322 C116.36397,73.6081855 116.346076,73.6513882 116.346078,73.6964356 L116.346078,74.5530572 L113.798355,74.5530572 L113.798355,73.6964356 C113.798356,73.6513882 113.780462,73.6081855 113.748609,73.5763322 C113.716755,73.5444789 113.673553,73.5265862 113.628505,73.5265862 L109.552146,73.5265862 C109.507099,73.5265862 109.463897,73.5444797 109.432044,73.5763329 C109.400191,73.6081861 109.382297,73.6513886 109.382299,73.6964356 L109.382299,74.5530572 L106.834574,74.5530572 L106.834574,73.6964356 C106.834575,73.6513886 106.816681,73.6081861 106.784828,73.5763329 C106.752975,73.5444797 106.709773,73.5265862 106.664726,73.5265862 L102.588363,73.5265862 C102.543316,73.5265862 102.500113,73.544479 102.46826,73.5763323 C102.436407,73.6081857 102.418513,73.6513884 102.418516,73.6964356 L102.418516,74.5530572 L99.8707946,74.5530572 L99.8707946,73.6964356 C99.8707961,73.6513882 99.8529018,73.6081855 99.8210486,73.5763322 C99.7891953,73.5444789 99.7459925,73.5265862 99.7009452,73.5265862 L95.6245878,73.5265862 C95.5795404,73.5265862 95.5363377,73.5444789 95.5044844,73.5763322 C95.4726311,73.6081855 95.4547369,73.6513882 95.4547384,73.6964356 L95.4547384,74.5530572 L92.9070135,74.5530572 L92.9070135,73.6964356 C92.9070151,73.6513886 92.889121,73.6081861 92.8572682,73.5763329 C92.8254153,73.5444797 92.7822131,73.5265862 92.7371661,73.5265862 L88.6608067,73.5265862 C88.6157597,73.5265862 88.5725575,73.5444797 88.5407046,73.5763329 C88.5088518,73.6081861 88.4909577,73.6513886 88.4909593,73.6964356 L88.4909593,74.5530572 L85.9432383,74.5530572 L85.9432383,73.6964356 C85.9432399,73.6513886 85.9253458,73.6081861 85.893493,73.5763329 C85.8616401,73.5444797 85.8184379,73.5265862 85.7733909,73.5265862 L53.8419073,73.5265862 C53.7968603,73.5265862 53.7536581,73.5444797 53.7218052,73.5763329 C53.6899524,73.6081861 53.6720584,73.6513886 53.6720599,73.6964356 L53.6720599,74.5530572 L51.124335,74.5530572 L51.124335,73.6964356 C51.1243366,73.6513882 51.1064423,73.6081855 51.074589,73.5763322 C51.0427358,73.5444789 50.999533,73.5265862 50.9544857,73.5265862 L46.8781379,73.5265862 C46.8330906,73.5265862 46.7898879,73.5444789 46.7580346,73.5763322 C46.7261813,73.6081855 46.708287,73.6513882 46.7082886,73.6964356 L46.7082886,74.5530572 L44.160554,74.5530572 L44.160554,73.6964356 C44.1605561,73.6513884 44.1426622,73.6081857 44.1108092,73.5763323 C44.0789563,73.544479 44.0357537,73.5265862 43.9907066,73.5265862 L39.9143472,73.5265862 C39.8693002,73.5265862 39.8260979,73.5444797 39.7942451,73.5763329 C39.7623922,73.6081861 39.7444982,73.6513886 39.7444998,73.6964356 L39.7444998,74.5530572 L37.1967749,74.5530572 L37.1967749,73.6964356 C37.1967764,73.6513886 37.1788824,73.6081861 37.1470296,73.5763329 C37.1151767,73.5444797 37.0719745,73.5265862 37.0269275,73.5265862 L32.9505681,73.5265862 C32.9055208,73.5265862 32.862318,73.5444789 32.8304647,73.5763322 C32.7986115,73.6081855 32.7807172,73.6513882 32.7807187,73.6964356 L32.7807187,74.5530572 L30.2329958,74.5530572 L30.2329958,73.6964356 C30.2329973,73.6513882 30.215103,73.6081855 30.1832498,73.5763322 C30.1513965,73.5444789 30.1081938,73.5265862 30.0631464,73.5265862 L25.986787,73.5265862 C25.94174,73.5265862 25.8985378,73.5444797 25.866685,73.5763329 C25.8348321,73.6081861 25.8169381,73.6513886 25.8169396,73.6964356 L25.8169396,74.5530572 L23.2692109,74.5530572 L23.2692109,73.6964356 C23.2692124,73.6513886 23.2513184,73.6081861 23.2194655,73.5763329 C23.1876127,73.5444797 23.1444104,73.5265862 23.0993634,73.5265862 L19.0230079,73.5265862 C18.9779608,73.5265862 18.9347582,73.544479 18.9029053,73.5763323 C18.8710523,73.6081857 18.8531585,73.6513884 18.8531605,73.6964356 L18.8531605,74.5530572 L16.3054357,74.5530572 L16.3054357,73.6964356 C16.3054372,73.6513882 16.2875429,73.6081855 16.2556896,73.5763322 C16.2238364,73.5444789 16.1806336,73.5265862 16.1355863,73.5265862 L12.0592288,73.5265862 C12.0141815,73.5265862 11.9709788,73.5444789 11.9391255,73.5763322 C11.9072722,73.6081855 11.8893779,73.6513882 11.8893795,73.6964356 L11.8893795,74.5530572 L4.07635746,74.5530572 C1.82504753,74.5530594 0,76.3781067 0,78.6294166 L0,80.4726504 C0,82.7239563 1.82505163,84.5489982 4.07635746,84.5489982 L139.615294,84.5489982 C141.8666,84.5489982 143.691654,82.7239566 143.691654,80.4726504 L143.691654,78.6294166 C143.691654,76.3781064 141.866605,74.5530594 139.615294,74.5530572 Z","id","Path",1,"fill-color-20"],["id","Group","transform","translate(14.563343, 25.890388)"],["d","M34.1898756,18.6935074 C34.8335754,18.7760331 35.5015474,18.8284611 36.1180622,18.6284578 C36.2151512,18.5983603 36.321949,18.5313689 36.3122401,18.4342799 C36.3052976,18.3990002 36.2903506,18.3657846 36.2685501,18.337191 C36.0361522,17.9886397 35.8409087,17.6167008 35.6860164,17.2274642 C35.6798777,17.2071636 35.6672606,17.1894314 35.6500935,17.176978 C35.6300188,17.1697099 35.6080312,17.1697099 35.5879565,17.176978 C35.3034859,17.2517365 35.0578508,17.4352346 34.775322,17.5138766 C34.6312683,17.5533966 34.4809179,17.5646069 34.3325963,17.5468869 C34.2044389,17.5323235 34.0296788,17.4264966 33.9131721,17.440089 C33.9791925,17.8643678 34.1403602,18.2604907 34.1898756,18.6935074 Z","id","Path",1,"fill-color-primary-darker"],["d","M46.3638597,17.6187327 C46.7881384,17.3274658 47.2279514,17.0216356 47.4784409,16.5721138 C47.4963243,16.5452282 47.5067138,16.5140596 47.5085385,16.481821 C47.5042662,16.4500929 47.4918946,16.4199997 47.4726155,16.394441 C47.2340087,16.0151166 46.9268212,15.6835648 46.5667756,15.4167552 C46.3789189,15.549458 46.2091963,15.7061249 46.061913,15.8827822 C45.9551152,15.9954054 45.6599648,16.1740491 45.6570521,16.3458965 C45.6570521,16.4429855 45.7696753,16.5556086 45.8221033,16.6371634 C45.8929782,16.7420194 45.9599696,16.8488173 46.0240483,16.9575569 C46.0609421,17.0109558 46.3978408,17.5973731 46.3638597,17.6187327 Z","id","Path",1,"fill-color-primary-darker"],["d","M36.7132175,19.9935285 C36.7207976,20.0935521 36.6933371,20.1930963 36.6355464,20.2750865 C36.5902231,20.3206727 36.5341172,20.3540691 36.4724369,20.3721755 C35.5724223,20.6945108 34.5306578,20.2925625 33.632585,20.6100434 C33.448116,20.675093 33.2733558,20.7692693 33.0879159,20.8314062 C32.8668382,20.8978733 32.6387504,20.9382775 32.4082933,20.9517965 C32.0908124,20.9818941 31.7713897,21.0013119 31.4529379,21.0100499 C31.2109788,21.0271812 30.9678332,21.0058814 30.7325379,20.9469421 C30.494578,20.8860354 30.29373,20.7268395 30.1801017,20.5090709 C30.1312849,20.4125511 30.1215484,20.3009295 30.1529168,20.1974154 C30.1669968,20.1619216 30.1870252,20.1290882 30.2121411,20.1003264 C30.2730042,20.0320475 30.3444715,19.9740213 30.423795,19.9284789 L30.7548683,19.7148832 C30.9101158,19.6051008 31.0788103,19.515696 31.2568182,19.4488595 C31.3878883,19.4061404 31.5267255,19.3876935 31.6597374,19.3517706 C32.1247935,19.215846 32.4801391,18.846908 32.8102415,18.4925333 L33.2607343,18.011943 C33.3028503,17.9590638 33.3562578,17.9162715 33.4170475,17.8866982 C33.4795282,17.8658617 33.5459388,17.8595527 33.6112254,17.8682513 C34.0488232,17.8994947 34.4713668,18.041122 34.8394007,18.2799085 C34.9334629,18.3504651 35.0350556,18.4103788 35.1423182,18.4585522 C35.4064002,18.5614665 35.7452406,18.4837953 35.9889339,18.3536961 C36.1044698,18.2915592 36.0792267,18.2566071 36.1277711,18.1459257 C36.1763156,18.0352443 36.2947641,17.9643694 36.3976784,18.0653419 C36.4287289,18.1002598 36.4507324,18.1422664 36.4617571,18.187674 C36.5588461,18.5080675 36.5219523,18.8527333 36.5219523,19.1886611 C36.519104,19.2411857 36.5256803,19.2937961 36.5413701,19.3440034 C36.566144,19.3946232 36.5957307,19.4427421 36.629721,19.4876951 C36.6366398,19.4995928 36.642801,19.5119152 36.6481679,19.5245889 C36.7075588,19.673314 36.7298837,19.8342531 36.7132175,19.9935285 Z","id","Path",1,"fill-color-primary-darker"],["d","M36.7132175,19.9935285 C36.7207976,20.0935521 36.6933371,20.1930963 36.6355464,20.2750865 C36.5902231,20.3206727 36.5341172,20.3540691 36.4724369,20.3721755 C35.5724223,20.6945108 34.5306578,20.2925625 33.632585,20.6100434 C33.448116,20.675093 33.2733558,20.7692693 33.0879159,20.8314062 C32.8668382,20.8978733 32.6387504,20.9382775 32.4082933,20.9517965 C32.0908124,20.9818941 31.7713897,21.0013119 31.4529379,21.0100499 C31.2109788,21.0271812 30.9678332,21.0058814 30.7325379,20.9469421 C30.494578,20.8860354 30.29373,20.7268395 30.1801017,20.5090709 C30.1312849,20.4125511 30.1215484,20.3009295 30.1529168,20.1974154 C30.1669968,20.1619216 30.1870252,20.1290882 30.2121411,20.1003264 C30.2645691,20.2100369 30.3024338,20.3556704 30.3354441,20.4080984 C30.4256618,20.5652773 30.5791886,20.6760005 30.7568101,20.7119868 C30.8882242,20.7200556 31.0199808,20.7032567 31.1451659,20.6624715 C31.9607132,20.4605264 32.8277175,20.4576138 33.6112254,20.1517835 C33.8801618,20.0459566 34.1364767,19.9051776 34.4190055,19.8410989 C34.7015344,19.7770202 35.0015392,19.7944962 35.2928061,19.770224 C35.7530078,19.7333301 36.1986461,19.5944929 36.6520515,19.5216762 C36.7105975,19.6716231 36.7315958,19.83361 36.7132175,19.9935285 L36.7132175,19.9935285 Z","id","Path",1,"fill-color-primary-darker"],["d","M48.4250582,17.5595084 C48.3823391,17.9012616 48.1658307,18.1954411 47.9279627,18.4449597 C47.6900948,18.6944783 47.4211584,18.9187538 47.2318349,19.2061371 C46.9988214,19.5624536 46.8939654,20.0042083 46.5910478,20.3051841 C46.4747693,20.4146353 46.3441148,20.5077266 46.202692,20.5818876 C46.0442646,20.6753601 45.8767312,20.752458 45.7026839,20.8119884 C45.2502494,20.956651 44.7628628,20.9236407 44.2900396,20.8886887 C44.1365309,20.8872131 43.9845596,20.8579372 43.8414886,20.8022795 C43.7763574,20.7691922 43.7140162,20.7308783 43.6550778,20.6877146 C43.5365551,20.6147292 43.4367964,20.5149704 43.363811,20.3964477 C43.3279723,20.332004 43.3179103,20.2563656 43.3356552,20.1847938 C43.3626747,20.1059564 43.4090817,20.0351774 43.4706088,19.9789652 C43.5770067,19.8683202 43.6912186,19.7654647 43.8123619,19.6711932 C43.9785829,19.5639234 44.1283649,19.4331094 44.2570293,19.2828374 C44.335968,19.1640934 44.3940832,19.0327597 44.4288768,18.8944816 C44.4976483,18.652227 44.5396476,18.4031617 44.5541216,18.1517511 C44.5535898,17.9846963 44.5708393,17.8180593 44.6055787,17.6546556 C44.6774245,17.3983408 44.8677189,17.1692108 44.8463593,16.904158 C44.8377185,16.866204 44.8411119,16.8265011 44.8560682,16.7905639 C44.8786704,16.7624825 44.9101823,16.7429588 44.94539,16.7352232 C45.0937604,16.6760869 45.2502282,16.6397523 45.4094752,16.6274545 C45.571226,16.6162976 45.7294484,16.6783037 45.8405502,16.7963893 C45.9065707,16.8760022 45.9502607,16.9905672 46.0473497,17.0216356 C46.0954598,17.0347655 46.1459295,17.0367577 46.1949249,17.027461 C46.4337637,17.0031887 46.686195,16.9730912 46.8745476,16.8187197 C47.0505482,16.6608586 47.152616,16.4366614 47.1561056,16.2002631 C47.1561056,16.1119121 47.1162991,16.0196776 47.2531945,16.0060852 C47.3561088,15.9924927 47.4376635,16.1031741 47.4900916,16.1711364 C47.679415,16.4245386 47.8735929,16.6895914 47.9444679,16.9983343 C47.9720312,16.9876362 48.0013112,16.9820434 48.030877,16.9818292 C48.1537854,16.9807475 48.2694521,17.0398499 48.3405908,17.1400842 C48.4179108,17.2653269 48.447872,17.4140998 48.4250582,17.5595084 L48.4250582,17.5595084 Z","id","Path",1,"fill-color-primary-darker"],["d","M48.4250582,17.5595084 C48.3823391,17.9012616 48.1658307,18.1954411 47.9279627,18.4449597 C47.6900948,18.6944783 47.4211584,18.9187538 47.2318349,19.2061371 C46.9988214,19.5624536 46.8939654,20.0042083 46.5910478,20.3051841 C46.4747693,20.4146353 46.3441148,20.5077266 46.202692,20.5818876 C46.0442646,20.6753601 45.8767312,20.752458 45.7026839,20.8119884 C45.2502494,20.956651 44.7628628,20.9236407 44.2900396,20.8886887 C44.1365309,20.8872131 43.9845596,20.8579372 43.8414886,20.8022795 C43.7763574,20.7691922 43.7140162,20.7308783 43.6550778,20.6877146 C43.5365551,20.6147292 43.4367964,20.5149704 43.363811,20.3964477 C43.4548211,20.3526902 43.5541213,20.3288581 43.6550778,20.3265437 C43.86479,20.3381943 44.0181905,20.5362558 44.2191647,20.5974219 C44.5055771,20.683831 44.7910186,20.481886 45.0813146,20.4129528 C45.270638,20.3682919 45.4696704,20.3799426 45.6570521,20.3158639 C45.8132081,20.2555144 45.9574928,20.168089 46.0832726,20.0576073 C46.2556706,19.9343474 46.4090818,19.786497 46.5386198,19.6187652 C46.646198,19.4510234 46.735696,19.2723528 46.8056144,19.0857468 C46.9589198,18.7281302 47.1393856,18.3827784 47.345429,18.0527203 C47.375905,18.0004629 47.4127576,17.9521958 47.4551395,17.9090287 C47.5007713,17.8672804 47.5522285,17.8381537 47.6036856,17.8012599 C47.7978635,17.6546556 47.8784474,17.4129041 47.9464096,17.1760071 C47.9648208,17.1040024 47.9905203,17.0340608 48.0231099,16.9672512 C48.1460183,16.9661841 48.2616849,17.0252865 48.3328237,17.1255208 C48.4163608,17.2537243 48.4492363,17.4084124 48.4250582,17.5595084 L48.4250582,17.5595084 Z","id","Path",1,"fill-color-primary-darker"],["d","M54.316416,4.55250111 L54.316416,3.34665629 C54.316416,1.49819202 52.8172532,0 50.9687888,0 L3.34762718,0 C1.49916283,0 0,1.49819202 0,3.34665629 L0,5.56999336 L54.316416,4.55250111 Z","id","Path",1,"fill-color-16"],["d","M55.6018738,5.73601547 L55.6018738,39.231705 C55.6018738,39.9999836 55.2966099,40.7367813 54.7532639,41.2799452 C54.2099179,41.8231092 53.4730179,42.1278687 52.7047393,42.1278687 L2.89810531,42.1278687 C1.29897753,42.1273325 0.00291266866,40.8308329 0.00291266866,39.231705 L0.00291266866,2.35926161 C1.43012031,2.88936731 1.43012031,2.88936731 2.89810531,2.84470639 L52.7047393,2.84470639 C54.3025103,2.84470316 55.5986611,4.13824772 55.6018738,5.73601547 Z","id","Path","opacity","0.1",1,"fill-color-27"],["d","M55.6018738,6.16223599 L55.6018738,39.6579255 C55.6018738,41.2575895 54.3044034,42.5540891 52.7047393,42.5540891 L2.89810531,42.5540891 C1.29897753,42.553553 0.00291266866,41.2570534 0.00291266866,39.6579255 L0.00291266866,2.78451124 C1.43012031,3.31364604 1.43012031,3.31364604 2.89810531,3.26995601 L52.7047393,3.26995601 C54.3028886,3.26995377 55.5991959,4.56408894 55.6018738,6.16223599 Z","id","Path",1,"fill-color-19"],["d","M55.4601239,18.5459322 L55.4601239,29.2577567 L45.0716057,29.2577567 C42.141738,29.2183086 39.7873207,26.8319777 39.7873207,23.9018444 C39.7873207,20.9717112 42.141738,18.5853803 45.0716057,18.5459322 L55.4601239,18.5459322 Z","id","Path","opacity","0.1",1,"fill-color-27"],["d","M55.6018738,18.2604907 L55.6018738,28.9742569 L45.2133556,28.9742569 C42.2834879,28.9348088 39.9290706,26.5484779 39.9290706,23.6183447 C39.9290706,20.6882114 42.2834879,18.3018806 45.2133556,18.2624325 L55.6018738,18.2604907 Z","id","Path",1,"fill-color-17"],["id","Oval","opacity","0.1","cx","45.7114219","cy","23.9023299","r","2.08838343",1,"fill-color-27"],["id","Oval","cx","45.8531718","cy","23.6188301","r","2.08838343",1,"fill-color-28"],["d","M37.114137,56.485738 L37.114137,54.3663604 C37.5324015,54.3762985 37.9407279,54.3762985 38.3291472,54.3762985 L38.3291472,56.485738 L39.8628249,56.485738 L39.8628249,54.3364843 C42.4322258,54.1970423 44.1498818,53.5497076 44.378952,51.1296869 C44.5581774,49.1877136 43.6419275,48.3212469 42.1879398,47.9727034 C43.0643138,47.5245628 43.6220513,46.7278171 43.4925782,45.4032717 C43.3232292,43.5907407 41.8346742,42.9832201 39.8627941,42.8139637 L39.8627941,40.3042841 L38.3291164,40.3042841 L38.3291164,42.7442427 C37.9307281,42.7442427 37.5224017,42.7541808 37.1141061,42.7641498 L37.1141061,40.3042841 L35.5803975,40.3042841 L35.5803975,42.8139637 C35.0165182,42.8310005 34.3597701,42.8226673 32.5030732,42.8139637 L32.5030732,44.4472076 C33.7139786,44.4257882 34.3493073,44.3479809 34.4948913,45.1243875 L34.4948913,51.9961228 C34.4024546,52.6121309 33.9094382,52.5234287 32.8118025,52.5040154 L32.5030732,54.3265154 L33.46474,54.3269705 C35.3673259,54.328922 35.5804284,54.3364843 35.5804284,54.3364843 L35.5804284,56.485738 L37.114137,56.485738 Z M37.144013,47.6141601 L37.144013,44.5567428 C38.0104489,44.5567428 40.7192919,44.2878893 40.7192919,46.0904514 C40.7192919,47.8133542 38.0104798,47.6141601 37.144013,47.6141601 Z M37.144013,52.5139844 L37.144013,49.1478686 C38.1797362,49.1478686 41.3514108,48.8590464 41.3514108,50.8309574 C41.3514108,52.7330856 38.1797362,52.5139844 37.144013,52.5139844 Z","id","b","transform","translate(38.452166, 48.395011) rotate(14.000000) translate(-38.452166, -48.395011) ",1,"fill-color-30"],["fxFlex","30","viewBox","0 0 364 120","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["x1","50%","y1","100%","x2","50%","y2","8.86848147e-15%","id","linearGradient-1"],["id","Loopv0.3","stroke","none","stroke-width","1","fill","none","fill-rule","evenodd"],["id","LoopIn_Step03","transform","translate(-1127.000000, -164.000000)"],["id","LoopIn_Step03","transform","translate(1127.000000, 164.000000)"],["id","Group-21"],["id","Group-35","transform","translate(107.000000, 10.000000)"],["id","Oval","fill-rule","nonzero","cx","214.487742","cy","42.4877419","r","42.4877419",1,"fill-color-2"],["d","M232.082742,28.5000036 C236.446821,28.5000036 239.999928,25.1343958 239.999928,21.0000215 C239.999928,16.8656472 236.446821,13.5000393 232.082742,13.5000393 C228.98433,13.5000393 226.560889,15.4359631 224.999964,17.1843872 C223.43904,15.4359631 221.015599,13.5000393 217.917187,13.5000393 C213.553107,13.5000393 210,16.8656472 210,21.0000215 C210,25.1343958 213.553107,28.5000036 217.917187,28.5000036 C221.015599,28.5000036 223.43904,26.5640798 224.999964,24.8156557 C226.560889,26.5640798 228.98433,28.5000036 232.082742,28.5000036 Z M217.917187,24.0000143 C216.032807,24.0000143 214.499989,22.6546959 214.499989,21.0000286 C214.499989,19.3453471 216.032807,18.0000286 217.917187,18.0000286 C219.707771,18.0000286 221.357776,19.6921938 222.323426,21.0000286 C221.36716,22.2937501 219.703102,24.0000143 217.917187,24.0000143 Z M232.082742,24.0000143 C230.292157,24.0000143 228.642152,22.3078492 227.676502,21.0000286 C228.632768,19.7062929 230.296827,18.0000286 232.082742,18.0000286 C233.967121,18.0000286 235.499939,19.3453471 235.499939,21.0000286 C235.499939,22.6546959 233.967121,24.0000143 232.082742,24.0000143 Z","id","i","fill-rule","nonzero",1,"fill-color-primary"],["id","Group-44","transform","translate(0.000000, 64.000000)","fill-rule","nonzero"],["id","Path","transform","translate(118.400000, 7.089946) scale(-1, 1) translate(-118.400000, -7.089946) ","points","234.731878 6.60770626 8.52651283e-14 6.60770626 8.52651283e-14 7.57218541 236.8 7.57218541",1,"fill-color-20"],["id","Path","transform","translate(118.400000, 8.960000) scale(-1, 1) translate(-118.400000, -8.960000) ","points","113.024 5.376 123.776 5.376 123.776 12.544 113.024 12.544",1,"fill-color-23"],["d","M120.192,8.96 L105.856,8.96 L105.856,1.86517468e-14 L120.192,1.86517468e-14 L120.192,8.96 Z M106.479304,8.57043501 L119.568696,8.57043501 L119.568696,0.389564988 L106.479304,0.389564988 L106.479304,8.57043501 Z","id","Shape","transform","translate(113.024000, 4.480000) scale(-1, 1) translate(-113.024000, -4.480000) ",1,"fill-color-20"],["id","Group-43","transform","translate(152.000000, 35.000000)"],["id","Path","fill-rule","nonzero","points","-9.84073267e-14 7.36243469 92.3919279 7.36243469 92.3919279 70.3073253 -1.13686838e-13 70.3073253",1,"fill-color-23"],["d","M97.5448374,1.70530257e-13 L6.62592538,1.70530257e-13 C6.01615907,0.000922175294 5.52114394,0.495001701 5.52114394,1.104768 L5.52114394,62.57664 C5.52114394,62.8696481 5.63752746,63.150658 5.84471672,63.3578447 C6.05190598,63.5650315 6.3329173,63.681408 6.62592538,63.681408 L97.5448374,63.681408 C97.8378436,63.681408 98.1188523,63.5650282 98.3260389,63.3578415 C98.5332256,63.1506549 98.6496054,62.8696462 98.6496054,62.57664 L98.6496054,1.104768 C98.6496054,0.495005713 98.1545997,0.000926622272 97.5448374,1.70530257e-13 L97.5448374,1.70530257e-13 Z M97.9130952,62.57664 C97.9130952,62.6744022 97.8747043,62.7682496 97.8055756,62.8373783 C97.736447,62.9065069 97.6425996,62.9448978 97.5448374,62.9448978 L6.62592538,62.9448978 C6.52816341,62.9448978 6.4343164,62.906506 6.3651879,62.8373775 C6.29605941,62.768249 6.25766754,62.674402 6.25766754,62.57664 L6.25766754,1.104768 C6.25766754,0.901512883 6.42267026,0.736512 6.62592538,0.736512 L97.5448374,0.736512 C97.7480931,0.736512 97.9130952,0.901512271 97.9130952,1.104768 L97.9130952,62.57664 Z","id","Shape","fill-rule","nonzero",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","10.3066764","y","43.4358624","width","41.5947948","height","4.78524211","rx","0.5376",1,"fill-color-19"],["d","M89.8141359,39.3872559 L76.5649839,39.3872559 C76.2719769,39.3872559 75.9909677,39.5036372 75.7837792,39.7108232 C75.5765907,39.9180091 75.4602025,40.1990169 75.4602025,40.4920239 L75.4602025,50.7978159 C75.4602025,51.090824 75.576586,51.3718339 75.7837753,51.5790207 C75.9909645,51.7862074 76.2719759,51.9025839 76.5649839,51.9025839 L89.8141359,51.9025839 C90.107143,51.9025839 90.3881533,51.7862079 90.5953406,51.5790206 C90.8025279,51.3718333 90.9189039,51.090823 90.9189039,50.7978159 L90.9189039,40.4920239 C90.9189039,40.199018 90.8025232,39.9180097 90.5953367,39.7108232 C90.3881502,39.5036367 90.1071419,39.3872559 89.8141359,39.3872559 Z M90.1823938,50.7978159 C90.182087,51.0010717 90.0173917,51.165767 89.8141359,51.1660719 L76.5649839,51.1660719 C76.3617256,51.165767 76.1970256,51.0010743 76.19671,50.7978159 L76.19671,40.4920239 C76.1964064,40.3942603 76.2351088,40.3004129 76.30424,40.2312847 C76.3733712,40.1621565 76.4672203,40.1234582 76.5649839,40.1237661 L89.8141359,40.1237661 C89.9118981,40.1234582 90.0057456,40.162157 90.0748742,40.2312857 C90.1440029,40.3004143 90.1827017,40.3942617 90.1823938,40.4920239 L90.1823938,50.7978159 Z","id","Shape","fill-rule","nonzero",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","78.6733409","y","41.7652758","width","9.03249715","height","1.86879168","rx","0.5376",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","78.6733409","y","44.7100416","width","9.03249715","height","1.86879168","rx","0.5376",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","78.6733409","y","47.6548047","width","9.03249715","height","1.86879168","rx","0.5376",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","11.4109632","y","4.41773875","width","19.1409684","height","8.09810266","rx","0.5376",1,"fill-color-19"],["id","Oval","fill-rule","nonzero","cx","47.2929593","cy","42.2294561","r","12.9683743",1,"fill-color-4"],["d","M50.1798649,51.9764517 C43.6553251,51.9764517 37.7732336,48.0461636 35.2764005,42.0182748 C32.7795674,35.990386 34.1597014,29.0519859 38.773248,24.4384399 C43.3867946,19.824894 50.3251948,18.4447609 56.3530833,20.9415948 C62.3809718,23.4384287 66.3112582,29.3205207 66.3112582,35.8450605 C66.3011721,44.7500015 59.0848059,51.9663668 50.1798649,51.9764517 L50.1798649,51.9764517 Z M50.1798649,19.9245354 C41.3872016,19.9245354 34.2593397,27.0523972 34.2593397,35.8450605 C34.2593397,44.6377237 41.3872016,51.7655856 50.1798649,51.7655856 C58.9725281,51.7655856 66.10039,44.6377237 66.10039,35.8450605 C66.0904567,27.056515 58.9684103,19.9344686 50.1798649,19.9245354 L50.1798649,19.9245354 Z","id","Shape","fill-rule","nonzero",1,"fill-color-primary"],["id","Group-23","transform","translate(5.000000, 0.001193)"],["id","Group-22"],["id","Group","transform","translate(0.378134, 0.000000)"],["id","Group-24","transform","translate(29.048000, 19.712000)"],["id","LoopIn_Step03","fill-rule","nonzero"],["id","Rectangle","x","0","y","0","width","81.4032636","height","90.8547569",1,"fill-color-10"],["id","Oval","cx","68.9135074","cy","74.4889377","r","7.35996418",1,"fill-color-primary"],["id","Oval","cx","68.9135074","cy","45.1758404","r","7.35996418",1,"fill-color-primary"],["id","Oval","fill","url(#linearGradient-1)","cx","68.9135074","cy","15.8607624","r","7.93434243"],["id","Oval","cx","68.9135074","cy","15.8607624","r","7.35996418",1,"fill-color-31"],["id","Group-24","transform","translate(16.889738, 38.617955)",1,"fill-color-primary"],["id","Rectangle","x","99.0215517","y","44.1428314","width","11.3798353","height","2.37787551",1,"fill-color-20"],["id","Rectangle","x","85.2638409","y","25.6293676","width","38.8952588","height","1.01909033",1,"fill-color-20"],["id","Rectangle","x","85.2638409","y","28.8564861","width","38.8952588","height","1.01909033",1,"fill-color-20"],["id","Rectangle","x","85.2638409","y","32.0836045","width","38.8952588","height","1.01909033",1,"fill-color-20"],["id","Rectangle","x","85.2638409","y","35.310721","width","38.8952588","height","1.01909033",1,"fill-color-20"],["id","Rectangle","x","85.2638409","y","38.5378394","width","38.8952588","height","1.01909033",1,"fill-color-20"],["id","Rectangle","x","119.403347","y","8.47469101","width","4.75575295","height","4.75575295",1,"fill-color-4"],["d","M126.367128,15.4384701 L120.592277,15.4384701 L120.592277,9.66361906 L126.367128,9.66361906 L126.367128,15.4384701 Z M120.843366,15.1873981 L126.116048,15.1873981 L126.116048,9.91470857 L120.843366,9.91470857 L120.843366,15.1873981 Z","id","Shape",1,"fill-color-20"],["d","M34.1898756,18.6935074 C34.8335754,18.7760331 35.5015474,18.8284611 36.1180622,18.6284578 C36.2151512,18.5983603 36.321949,18.5313689 36.3122401,18.4342799 C36.3052976,18.3990002 36.2903506,18.3657846 36.2685501,18.337191 C36.0361522,17.9886397 35.8409087,17.6167008 35.6860164,17.2274642 C35.6798777,17.2071636 35.6672606,17.1894314 35.6500935,17.176978 C35.6300188,17.1697099 35.6080312,17.1697099 35.5879565,17.176978 C35.3034859,17.2517365 35.0578508,17.4352346 34.775322,17.5138766 C34.6312683,17.5533966 34.4809179,17.5646069 34.3325963,17.5468869 C34.2044389,17.5323235 34.0296788,17.4264966 33.9131721,17.440089 C33.9791925,17.8643678 34.1403602,18.2604907 34.1898756,18.6935074 Z","id","Path",1,"fill-color-primary"],["d","M46.3638597,17.6187327 C46.7881384,17.3274658 47.2279514,17.0216356 47.4784409,16.5721138 C47.4963243,16.5452282 47.5067138,16.5140596 47.5085385,16.481821 C47.5042662,16.4500929 47.4918946,16.4199997 47.4726155,16.394441 C47.2340087,16.0151166 46.9268212,15.6835648 46.5667756,15.4167552 C46.3789189,15.549458 46.2091963,15.7061249 46.061913,15.8827822 C45.9551152,15.9954054 45.6599648,16.1740491 45.6570521,16.3458965 C45.6570521,16.4429855 45.7696753,16.5556086 45.8221033,16.6371634 C45.8929782,16.7420194 45.9599696,16.8488173 46.0240483,16.9575569 C46.0609421,17.0109558 46.3978408,17.5973731 46.3638597,17.6187327 Z","id","Path",1,"fill-color-primary"],["d","M36.7132175,19.9935285 C36.7207976,20.0935521 36.6933371,20.1930963 36.6355464,20.2750865 C36.5902231,20.3206727 36.5341172,20.3540691 36.4724369,20.3721755 C35.5724223,20.6945108 34.5306578,20.2925625 33.632585,20.6100434 C33.448116,20.675093 33.2733558,20.7692693 33.0879159,20.8314062 C32.8668382,20.8978733 32.6387504,20.9382775 32.4082933,20.9517965 C32.0908124,20.9818941 31.7713897,21.0013119 31.4529379,21.0100499 C31.2109788,21.0271812 30.9678332,21.0058814 30.7325379,20.9469421 C30.494578,20.8860354 30.29373,20.7268395 30.1801017,20.5090709 C30.1312849,20.4125511 30.1215484,20.3009295 30.1529168,20.1974154 C30.1669968,20.1619216 30.1870252,20.1290882 30.2121411,20.1003264 C30.2730042,20.0320475 30.3444715,19.9740213 30.423795,19.9284789 L30.7548683,19.7148832 C30.9101158,19.6051008 31.0788103,19.515696 31.2568182,19.4488595 C31.3878883,19.4061404 31.5267255,19.3876935 31.6597374,19.3517706 C32.1247935,19.215846 32.4801391,18.846908 32.8102415,18.4925333 L33.2607343,18.011943 C33.3028503,17.9590638 33.3562578,17.9162715 33.4170475,17.8866982 C33.4795282,17.8658617 33.5459388,17.8595527 33.6112254,17.8682513 C34.0488232,17.8994947 34.4713668,18.041122 34.8394007,18.2799085 C34.9334629,18.3504651 35.0350556,18.4103788 35.1423182,18.4585522 C35.4064002,18.5614665 35.7452406,18.4837953 35.9889339,18.3536961 C36.1044698,18.2915592 36.0792267,18.2566071 36.1277711,18.1459257 C36.1763156,18.0352443 36.2947641,17.9643694 36.3976784,18.0653419 C36.4287289,18.1002598 36.4507324,18.1422664 36.4617571,18.187674 C36.5588461,18.5080675 36.5219523,18.8527333 36.5219523,19.1886611 C36.519104,19.2411857 36.5256803,19.2937961 36.5413701,19.3440034 C36.566144,19.3946232 36.5957307,19.4427421 36.629721,19.4876951 C36.6366398,19.4995928 36.642801,19.5119152 36.6481679,19.5245889 C36.7075588,19.673314 36.7298837,19.8342531 36.7132175,19.9935285 Z","id","Path",1,"fill-color-primary"],["d","M36.7132175,19.9935285 C36.7207976,20.0935521 36.6933371,20.1930963 36.6355464,20.2750865 C36.5902231,20.3206727 36.5341172,20.3540691 36.4724369,20.3721755 C35.5724223,20.6945108 34.5306578,20.2925625 33.632585,20.6100434 C33.448116,20.675093 33.2733558,20.7692693 33.0879159,20.8314062 C32.8668382,20.8978733 32.6387504,20.9382775 32.4082933,20.9517965 C32.0908124,20.9818941 31.7713897,21.0013119 31.4529379,21.0100499 C31.2109788,21.0271812 30.9678332,21.0058814 30.7325379,20.9469421 C30.494578,20.8860354 30.29373,20.7268395 30.1801017,20.5090709 C30.1312849,20.4125511 30.1215484,20.3009295 30.1529168,20.1974154 C30.1669968,20.1619216 30.1870252,20.1290882 30.2121411,20.1003264 C30.2645691,20.2100369 30.3024338,20.3556704 30.3354441,20.4080984 C30.4256618,20.5652773 30.5791886,20.6760005 30.7568101,20.7119868 C30.8882242,20.7200556 31.0199808,20.7032567 31.1451659,20.6624715 C31.9607132,20.4605264 32.8277175,20.4576138 33.6112254,20.1517835 C33.8801618,20.0459566 34.1364767,19.9051776 34.4190055,19.8410989 C34.7015344,19.7770202 35.0015392,19.7944962 35.2928061,19.770224 C35.7530078,19.7333301 36.1986461,19.5944929 36.6520515,19.5216762 C36.7105975,19.6716231 36.7315958,19.83361 36.7132175,19.9935285 L36.7132175,19.9935285 Z","id","Path",1,"fill-color-primary"],["d","M48.4250582,17.5595084 C48.3823391,17.9012616 48.1658307,18.1954411 47.9279627,18.4449597 C47.6900948,18.6944783 47.4211584,18.9187538 47.2318349,19.2061371 C46.9988214,19.5624536 46.8939654,20.0042083 46.5910478,20.3051841 C46.4747693,20.4146353 46.3441148,20.5077266 46.202692,20.5818876 C46.0442646,20.6753601 45.8767312,20.752458 45.7026839,20.8119884 C45.2502494,20.956651 44.7628628,20.9236407 44.2900396,20.8886887 C44.1365309,20.8872131 43.9845596,20.8579372 43.8414886,20.8022795 C43.7763574,20.7691922 43.7140162,20.7308783 43.6550778,20.6877146 C43.5365551,20.6147292 43.4367964,20.5149704 43.363811,20.3964477 C43.3279723,20.332004 43.3179103,20.2563656 43.3356552,20.1847938 C43.3626747,20.1059564 43.4090817,20.0351774 43.4706088,19.9789652 C43.5770067,19.8683202 43.6912186,19.7654647 43.8123619,19.6711932 C43.9785829,19.5639234 44.1283649,19.4331094 44.2570293,19.2828374 C44.335968,19.1640934 44.3940832,19.0327597 44.4288768,18.8944816 C44.4976483,18.652227 44.5396476,18.4031617 44.5541216,18.1517511 C44.5535898,17.9846963 44.5708393,17.8180593 44.6055787,17.6546556 C44.6774245,17.3983408 44.8677189,17.1692108 44.8463593,16.904158 C44.8377185,16.866204 44.8411119,16.8265011 44.8560682,16.7905639 C44.8786704,16.7624825 44.9101823,16.7429588 44.94539,16.7352232 C45.0937604,16.6760869 45.2502282,16.6397523 45.4094752,16.6274545 C45.571226,16.6162976 45.7294484,16.6783037 45.8405502,16.7963893 C45.9065707,16.8760022 45.9502607,16.9905672 46.0473497,17.0216356 C46.0954598,17.0347655 46.1459295,17.0367577 46.1949249,17.027461 C46.4337637,17.0031887 46.686195,16.9730912 46.8745476,16.8187197 C47.0505482,16.6608586 47.152616,16.4366614 47.1561056,16.2002631 C47.1561056,16.1119121 47.1162991,16.0196776 47.2531945,16.0060852 C47.3561088,15.9924927 47.4376635,16.1031741 47.4900916,16.1711364 C47.679415,16.4245386 47.8735929,16.6895914 47.9444679,16.9983343 C47.9720312,16.9876362 48.0013112,16.9820434 48.030877,16.9818292 C48.1537854,16.9807475 48.2694521,17.0398499 48.3405908,17.1400842 C48.4179108,17.2653269 48.447872,17.4140998 48.4250582,17.5595084 L48.4250582,17.5595084 Z","id","Path",1,"fill-color-primary"],["d","M48.4250582,17.5595084 C48.3823391,17.9012616 48.1658307,18.1954411 47.9279627,18.4449597 C47.6900948,18.6944783 47.4211584,18.9187538 47.2318349,19.2061371 C46.9988214,19.5624536 46.8939654,20.0042083 46.5910478,20.3051841 C46.4747693,20.4146353 46.3441148,20.5077266 46.202692,20.5818876 C46.0442646,20.6753601 45.8767312,20.752458 45.7026839,20.8119884 C45.2502494,20.956651 44.7628628,20.9236407 44.2900396,20.8886887 C44.1365309,20.8872131 43.9845596,20.8579372 43.8414886,20.8022795 C43.7763574,20.7691922 43.7140162,20.7308783 43.6550778,20.6877146 C43.5365551,20.6147292 43.4367964,20.5149704 43.363811,20.3964477 C43.4548211,20.3526902 43.5541213,20.3288581 43.6550778,20.3265437 C43.86479,20.3381943 44.0181905,20.5362558 44.2191647,20.5974219 C44.5055771,20.683831 44.7910186,20.481886 45.0813146,20.4129528 C45.270638,20.3682919 45.4696704,20.3799426 45.6570521,20.3158639 C45.8132081,20.2555144 45.9574928,20.168089 46.0832726,20.0576073 C46.2556706,19.9343474 46.4090818,19.786497 46.5386198,19.6187652 C46.646198,19.4510234 46.735696,19.2723528 46.8056144,19.0857468 C46.9589198,18.7281302 47.1393856,18.3827784 47.345429,18.0527203 C47.375905,18.0004629 47.4127576,17.9521958 47.4551395,17.9090287 C47.5007713,17.8672804 47.5522285,17.8381537 47.6036856,17.8012599 C47.7978635,17.6546556 47.8784474,17.4129041 47.9464096,17.1760071 C47.9648208,17.1040024 47.9905203,17.0340608 48.0231099,16.9672512 C48.1460183,16.9661841 48.2616849,17.0252865 48.3328237,17.1255208 C48.4163608,17.2537243 48.4492363,17.4084124 48.4250582,17.5595084 L48.4250582,17.5595084 Z","id","Path",1,"fill-color-primary"],["d","M55.6018738,6.16223599 L55.6018738,39.6579255 C55.6018738,41.2575895 54.3044034,42.5540891 52.7047393,42.5540891 L2.89810531,42.5540891 C1.29897753,42.553553 0.00291266866,41.2570534 0.00291266866,39.6579255 L0.00291266866,2.78451124 C1.43012031,3.31364604 1.43012031,3.31364604 2.89810531,3.26995601 L52.7047393,3.26995601 C54.3028886,3.26995377 55.5991959,4.56408894 55.6018738,6.16223599 Z","id","Path",1,"fill-color-20"],["d","M55.6018738,18.2604907 L55.6018738,28.9742569 L45.2133556,28.9742569 C42.2834879,28.9348088 39.9290706,26.5484779 39.9290706,23.6183447 C39.9290706,20.6882114 42.2834879,18.3018806 45.2133556,18.2624325 L55.6018738,18.2604907 Z","id","Path",1,"fill-color-16"],["d","M37.114137,56.485738 L37.114137,54.3663604 C37.5324015,54.3762985 37.9407279,54.3762985 38.3291472,54.3762985 L38.3291472,56.485738 L39.8628249,56.485738 L39.8628249,54.3364843 C42.4322258,54.1970423 44.1498818,53.5497076 44.378952,51.1296869 C44.5581774,49.1877136 43.6419275,48.3212469 42.1879398,47.9727034 C43.0643138,47.5245628 43.6220513,46.7278171 43.4925782,45.4032717 C43.3232292,43.5907407 41.8346742,42.9832201 39.8627941,42.8139637 L39.8627941,40.3042841 L38.3291164,40.3042841 L38.3291164,42.7442427 C37.9307281,42.7442427 37.5224017,42.7541808 37.1141061,42.7641498 L37.1141061,40.3042841 L35.5803975,40.3042841 L35.5803975,42.8139637 C35.0165182,42.8310005 34.3597701,42.8226673 32.5030732,42.8139637 L32.5030732,44.4472076 C33.7139786,44.4257882 34.3493073,44.3479809 34.4948913,45.1243875 L34.4948913,51.9961228 C34.4024546,52.6121309 33.9094382,52.5234287 32.8118025,52.5040154 L32.5030732,54.3265154 L33.46474,54.3269705 C35.3673259,54.328922 35.5804284,54.3364843 35.5804284,54.3364843 L35.5804284,56.485738 L37.114137,56.485738 Z M37.144013,47.6141601 L37.144013,44.5567428 C38.0104489,44.5567428 40.7192919,44.2878893 40.7192919,46.0904514 C40.7192919,47.8133542 38.0104798,47.6141601 37.144013,47.6141601 Z M37.144013,52.5139844 L37.144013,49.1478686 C38.1797362,49.1478686 41.3514108,48.8590464 41.3514108,50.8309574 C41.3514108,52.7330856 38.1797362,52.5139844 37.144013,52.5139844 Z","id","b","transform","translate(38.452166, 48.395011) rotate(14.000000) translate(-38.452166, -48.395011) ",1,"fill-color-9"],["d","M93.2292414,91.9116485 L93.2292414,89.7922708 C93.647506,89.8022089 94.0558324,89.8022089 94.4442517,89.8022089 L94.4442517,91.9116485 L95.9779294,91.9116485 L95.9779294,89.7623948 C98.5473303,89.6229527 100.264986,88.975618 100.494057,86.5555973 C100.673282,84.6136241 99.757032,83.7471573 98.3030443,83.3986138 C99.1794183,82.9504733 99.7371558,82.1537275 99.6076827,80.8291821 C99.4383337,79.0166511 97.9497787,78.4091306 95.9778985,78.2398742 L95.9778985,75.7301945 L94.4442208,75.7301945 L94.4442208,78.1701531 C94.0458325,78.1701531 93.6375061,78.1800912 93.2292106,78.1900602 L93.2292106,75.7301945 L91.695502,75.7301945 L91.695502,78.2398742 C91.1316227,78.2569109 90.4748746,78.2485777 88.6181777,78.2398742 L88.6181777,79.8731181 C89.8290831,79.8516987 90.4644118,79.7738914 90.6099957,80.5502979 L90.6099957,87.4220333 C90.517559,88.0380413 90.0245427,87.9493391 88.926907,87.9299259 L88.6181777,89.7524258 L89.5798445,89.7528809 C91.4824304,89.7548325 91.6955329,89.7623948 91.6955329,89.7623948 L91.6955329,91.9116485 L93.2292414,91.9116485 Z M93.2591175,83.0400705 L93.2591175,79.9826533 C94.1255534,79.9826533 96.8343964,79.7137998 96.8343964,81.5163618 C96.8343964,83.2392647 94.1255843,83.0400705 93.2591175,83.0400705 Z M93.2591175,87.9398948 L93.2591175,84.5737791 C94.2948407,84.5737791 97.4665153,84.2849568 97.4665153,86.2568678 C97.4665153,88.1589961 94.2948407,87.9398948 93.2591175,87.9398948 Z","id","b","fill-rule","nonzero","transform","translate(94.567271, 83.820921) rotate(14.000000) translate(-94.567271, -83.820921) ",1,"fill-color-9"],["d","M305.611064,96.181454 L305.611064,94.0620763 C306.029328,94.0720144 306.437655,94.0720144 306.826074,94.0720144 L306.826074,96.181454 L308.359752,96.181454 L308.359752,94.0322003 C310.929153,93.8927582 312.646809,93.2454235 312.875879,90.8254028 C313.055104,88.8834296 312.138854,88.0169628 310.684867,87.6684193 C311.561241,87.2202788 312.118978,86.423533 311.989505,85.0989876 C311.820156,83.2864566 310.331601,82.678936 308.359721,82.5096797 L308.359721,80 L306.826043,80 L306.826043,82.4399586 C306.427655,82.4399586 306.019328,82.4498967 305.611033,82.4598657 L305.611033,80 L304.077324,80 L304.077324,82.5096797 C303.513445,82.5267164 302.856697,82.5183832 301,82.5096797 L301,84.1429236 C302.210905,84.1215042 302.846234,84.0436969 302.991818,84.8201034 L302.991818,91.6918387 C302.899381,92.3078468 302.406365,92.2191446 301.308729,92.1997314 L301,94.0222313 L301.961667,94.0226864 C303.864253,94.024638 304.077355,94.0322003 304.077355,94.0322003 L304.077355,96.181454 L305.611064,96.181454 Z M305.64094,87.309876 L305.64094,84.2524587 C306.507376,84.2524587 309.216219,83.9836053 309.216219,85.7861673 C309.216219,87.5090702 306.507407,87.309876 305.64094,87.309876 Z M305.64094,92.2097003 L305.64094,88.8435846 C306.676663,88.8435846 309.848338,88.5547623 309.848338,90.5266733 C309.848338,92.4288016 306.676663,92.2097003 305.64094,92.2097003 Z","id","b","fill-rule","nonzero","transform","translate(306.949093, 88.090727) rotate(14.000000) translate(-306.949093, -88.090727) ",1,"fill-color-26"],["fxFlex","30","viewBox","0 0 278 118","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["id","LoopIn_Step04","transform","translate(-1799.000000, -756.000000)"],["id","LoopIn_Step04","transform","translate(1799.000000, 756.000000)"],["id","Loop","fill-rule","nonzero"],["id","Group-16","transform","translate(24.000000, 0.000000)"],["d","M55.0827415,28.5000036 C59.4468211,28.5000036 62.9999285,25.1343958 62.9999285,21.0000215 C62.9999285,16.8656472 59.4468211,13.5000393 55.0827415,13.5000393 C51.9843297,13.5000393 49.5608889,15.4359631 47.9999642,17.1843872 C46.4390396,15.4359631 44.0155987,13.5000393 40.9171869,13.5000393 C36.5531074,13.5000393 33,16.8656472 33,21.0000215 C33,25.1343958 36.5531074,28.5000036 40.9171869,28.5000036 C44.0155987,28.5000036 46.4390396,26.5640798 47.9999642,24.8156557 C49.5608889,26.5640798 51.9843297,28.5000036 55.0827415,28.5000036 Z M40.9171869,24.0000143 C39.0328073,24.0000143 37.4999893,22.6546959 37.4999893,21.0000286 C37.4999893,19.3453471 39.0328073,18.0000286 40.9171869,18.0000286 C42.707771,18.0000286 44.3577763,19.6921938 45.3234264,21.0000286 C44.3671604,22.2937501 42.7031019,24.0000143 40.9171869,24.0000143 Z M55.0827415,24.0000143 C53.2921574,24.0000143 51.6421522,22.3078492 50.676502,21.0000286 C51.6327681,19.7062929 53.2968266,18.0000286 55.0827415,18.0000286 C56.9671212,18.0000286 58.4999392,19.3453471 58.4999392,21.0000286 C58.4999392,22.6546959 56.9671212,24.0000143 55.0827415,24.0000143 Z","id","i",1,"fill-color-primary"],["id","Oval","cx","48.644129","cy","75.1589677","rx","48.644129","ry","6.61766437",1,"fill-color-2"],["id","Group-44","transform","translate(27.000000, 69.000000)","fill-rule","nonzero"],["id","Path","transform","translate(118.400000, 7.089946) scale(-1, 1) translate(-118.400000, -7.089946) ","points","234.731878 6.60770626 8.52651283e-14 6.60770626 8.52651283e-14 7.57218541 236.8 7.57218541",1,"fill-color-19"],["d","M120.192,8.96 L105.856,8.96 L105.856,1.86517468e-14 L120.192,1.86517468e-14 L120.192,8.96 Z M106.479304,8.57043501 L119.568696,8.57043501 L119.568696,0.389564988 L106.479304,0.389564988 L106.479304,8.57043501 Z","id","Shape","transform","translate(113.024000, 4.480000) scale(-1, 1) translate(-113.024000, -4.480000) ",1,"fill-color-19"],["id","Group-43","transform","translate(179.000000, 40.000000)"],["d","M225.805162,92.2474279 C226.071703,92.2474279 226.325569,92.1077892 226.465207,91.8666288 L232.050261,82.2197185 C232.345374,81.7151473 231.980441,81.0773212 231.393376,81.0773212 L227.731346,81.0773212 L229.083201,76.9583506 C229.210134,76.4759989 228.845202,76 228.346983,76 L223.777394,76 C223.396595,76 223.07291,76.2824384 223.022149,76.6600456 L222.006685,84.2760274 C221.946379,84.7329987 222.301798,85.1391782 222.76193,85.1391782 L226.528674,85.1391782 L225.065752,91.3112968 C224.951525,91.7936485 225.319618,92.2474279 225.805162,92.2474279 Z","id","b","fill-rule","nonzero","transform","translate(227.077378, 84.123714) rotate(14.000000) translate(-227.077378, -84.123714) ",1,"fill-color-12"],["fxFlex","30","viewBox","0 0 205 121","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["id","LoopIn_Step05","transform","translate(-2386.000000, -764.000000)","fill-rule","nonzero"],["id","LoopIn_Step05","transform","translate(2386.000000, 764.000000)"],["id","Illustration_Step02"],["id","Group-31"],["id","Rectangle","x","0","y","0","width","90.1490688","height","100.616012",1,"fill-color-10"],["id","Rectangle","x","1.48932403","y","67.1775068","width","87.1682273","height","31.2472904",1,"fill-color-1"],["id","Rectangle","x","8.64422093","y","74.5890324","width","51.2","height","16.0118784",1,"fill-color-primary-lighter"],["id","Oval","cx","76.317438","cy","82.4918815","r","8.15070413",1,"fill-color-primary-darker"],["id","Rectangle","x","1.48932403","y","34.712875","width","87.1682273","height","31.2472904",1,"fill-color-1"],["id","Rectangle","x","8.64422093","y","42.1244006","width","51.2","height","16.0118784",1,"fill-color-primary-lighter"],["id","Oval","cx","76.317438","cy","50.0294431","r","8.15070413",1,"fill-color-primary-darker"],["id","Rectangle","x","1.48932403","y","2.2482432","width","87.1682273","height","31.2472904",1,"fill-color-1"],["id","Rectangle","x","8.64422093","y","74.5890324","width","24","height","16.0118784",1,"fill-color-primary"],["id","Rectangle","x","8.64422093","y","42.1244006","width","36.8","height","16.0118784",1,"fill-color-primary"],["id","Rectangle","x","8.64422093","y","9.66196224","width","51.2","height","16.0118784",1,"fill-color-primary"],["id","Oval","fill","url(#linearGradient-1)","cx","76.317438","cy","50.2465905","r","8.78679245"],["id","Oval","fill","url(#linearGradient-1)","cx","76.317438","cy","82.7090289","r","8.78679245"],["id","Group","transform","translate(60.115627, 35.744427)"],["d","M133.318807,1.04548939 L82.5936439,1.04548939 L82.5936439,0 L59.5928852,0 L59.5928852,1.04548939 L8.65861943,1.04548939 C7.74861523,1.04548887 6.87588228,1.4069864 6.23241214,2.05045654 C5.58894199,2.69392669 5.22744498,3.56665964 5.22744498,4.47666384 L5.22744498,73.9350108 C5.22744498,74.8450173 5.5889387,75.7177532 6.23240879,76.3612266 C6.87587888,77.0047 7.74861298,77.3662028 8.65861943,77.3662028 L133.318807,77.3662028 C135.213795,77.3662028 136.749981,75.8300048 136.749981,73.9350167 L136.749981,4.47666384 C136.749981,3.56665964 136.388484,2.69392669 135.745014,2.05045654 C135.101544,1.4069864 134.228811,1.04548887 133.318807,1.04548939 Z","id","Path",1,"fill-color-20"],["id","Rectangle","x","9.82759671","y","7.10932665","width","122.322231","height","69.0022838",1,"fill-color-25"],["id","Path","opacity","0.257273065","points","97.1677755 76.1116475 9.82763376 76.1116475 9.82763376 7.10937149",1,"fill-color-24"],["id","Oval","cx","28.9673627","cy","59.1901502","r","11.7579927",1,"fill-color-25"],["d","M31.5848237,68.0274261 C25.669241,68.0274261 20.3361447,64.4639649 18.0723494,58.9986791 C15.808554,53.5333932 17.0598755,47.2425772 21.2428244,43.0596288 C25.4257733,38.8766804 31.7165895,37.6253598 37.1818751,39.8891559 C42.6471607,42.1529519 46.2106203,47.4860487 46.2106203,53.4016314 C46.2014756,61.4754447 39.6586369,68.0182825 31.5848237,68.0274261 L31.5848237,68.0274261 Z M31.5848237,38.967022 C23.612809,38.967022 17.1502143,45.4296168 17.1502143,53.4016314 C17.1502143,61.3736461 23.612809,67.8362409 31.5848237,67.8362409 C39.5568383,67.8362409 46.0194331,61.3736461 46.0194331,53.4016314 C46.010427,45.4333502 39.5531049,38.9760281 31.5848237,38.967022 L31.5848237,38.967022 Z","id","Shape",1,"fill-color-primary"],["id","Rectangle","x","99.4252759","y","44.3228077","width","11.4262324","height","2.38757043",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","25.733862","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","28.9741379","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","32.2144137","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","35.4546875","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","38.6949634","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","119.89017","y","8.50924347","width","4.7751428","height","4.7751428",1,"fill-color-6"],["d","M126.882344,15.5014148 L121.083948,15.5014148 L121.083948,9.70301894 L126.882344,9.70301894 L126.882344,15.5014148 Z M121.336061,15.2493191 L126.63024,15.2493191 L126.63024,9.95513218 L121.336061,9.95513218 L121.336061,15.2493191 Z","id","Shape",1,"fill-color-19"],["d","M140.184525,74.8570201 L128.246669,74.8570201 L128.246669,73.9969059 C128.246671,73.9516751 128.228704,73.9082962 128.196721,73.876313 C128.164738,73.8443298 128.12136,73.826364 128.076129,73.826364 L123.98315,73.826364 C123.937919,73.826364 123.89454,73.8443305 123.862558,73.8763135 C123.830575,73.9082966 123.812608,73.9516752 123.81261,73.9969059 L123.81261,74.8570201 L121.254497,74.8570201 L121.254497,73.9969059 C121.254499,73.9516752 121.236532,73.9082966 121.204549,73.8763135 C121.172566,73.8443305 121.129188,73.826364 121.083957,73.826364 L116.990978,73.826364 C116.945747,73.826364 116.902368,73.8443297 116.870385,73.8763129 C116.838402,73.908296 116.820435,73.9516749 116.820436,73.9969059 L116.820436,74.8570201 L114.262326,74.8570201 L114.262326,73.9969059 C114.262328,73.9516749 114.24436,73.908296 114.212377,73.8763129 C114.180394,73.8443297 114.137015,73.826364 114.091784,73.826364 L109.998805,73.826364 C109.953574,73.826364 109.910196,73.8443305 109.878213,73.8763135 C109.84623,73.9082966 109.828263,73.9516752 109.828265,73.9969059 L109.828265,74.8570201 L107.270153,74.8570201 L107.270153,73.9969059 C107.270154,73.9516752 107.252187,73.9082966 107.220204,73.8763135 C107.188222,73.8443305 107.144843,73.826364 107.099613,73.826364 L103.00663,73.826364 C102.961399,73.826364 102.91802,73.8443298 102.886037,73.876313 C102.854054,73.9082962 102.836088,73.9516751 102.83609,73.9969059 L102.83609,74.8570201 L100.277981,74.8570201 L100.277981,73.9969059 C100.277983,73.9516749 100.260016,73.908296 100.228032,73.8763129 C100.196049,73.8443297 100.15267,73.826364 100.107439,73.826364 L96.0144621,73.826364 C95.9692311,73.826364 95.9258522,73.8443297 95.8938691,73.8763129 C95.861886,73.908296 95.8439187,73.9516749 95.8439202,73.9969059 L95.8439202,74.8570201 L93.285808,74.8570201 L93.285808,73.9969059 C93.2858095,73.9516752 93.2678425,73.9082966 93.2358598,73.8763135 C93.2038771,73.8443305 93.1604987,73.826364 93.1152681,73.826364 L89.0222888,73.826364 C88.9770581,73.826364 88.9336797,73.8443305 88.901697,73.8763135 C88.8697143,73.9082966 88.8517473,73.9516752 88.8517489,73.9969059 L88.8517489,74.8570201 L86.2936405,74.8570201 L86.2936405,73.9969059 C86.293642,73.9516752 86.2756751,73.9082966 86.2436923,73.8763135 C86.2117096,73.8443305 86.1683312,73.826364 86.1231006,73.826364 L54.061428,73.826364 C54.0161974,73.826364 53.972819,73.8443305 53.9408363,73.8763135 C53.9088536,73.9082966 53.8908866,73.9516752 53.8908881,73.9969059 L53.8908881,74.8570201 L51.3327759,74.8570201 L51.3327759,73.9969059 C51.3327774,73.9516749 51.3148102,73.908296 51.282827,73.8763129 C51.2508439,73.8443297 51.207465,73.826364 51.162234,73.826364 L47.0692664,73.826364 C47.0240354,73.826364 46.9806565,73.8443297 46.9486734,73.8763129 C46.9166903,73.908296 46.898723,73.9516749 46.8987246,73.9969059 L46.8987246,74.8570201 L44.3406025,74.8570201 L44.3406025,73.9969059 C44.3406046,73.9516751 44.3226378,73.9082962 44.290655,73.876313 C44.2586721,73.8443298 44.2152934,73.826364 44.1700626,73.826364 L40.0770834,73.826364 C40.0318527,73.826364 39.9884743,73.8443305 39.9564916,73.8763135 C39.9245089,73.9082966 39.9065419,73.9516752 39.9065435,73.9969059 L39.9065435,74.8570201 L37.3484312,74.8570201 L37.3484312,73.9969059 C37.3484327,73.9516752 37.3304657,73.9082966 37.298483,73.8763135 C37.2665003,73.8443305 37.2231219,73.826364 37.1778913,73.826364 L33.084912,73.826364 C33.039681,73.826364 32.9963021,73.8443297 32.964319,73.8763129 C32.9323358,73.908296 32.9143686,73.9516749 32.9143701,73.9969059 L32.9143701,74.8570201 L30.3562598,74.8570201 L30.3562598,73.9969059 C30.3562614,73.9516749 30.3382941,73.908296 30.306311,73.8763129 C30.2743278,73.8443297 30.2309489,73.826364 30.1857179,73.826364 L26.0927387,73.826364 C26.047508,73.826364 26.0041296,73.8443305 25.9721469,73.8763135 C25.9401642,73.9082966 25.9221972,73.9516752 25.9221988,73.9969059 L25.9221988,74.8570201 L23.3640826,74.8570201 L23.3640826,73.9969059 C23.3640841,73.9516752 23.3461171,73.9082966 23.3141344,73.8763135 C23.2821517,73.8443305 23.2387733,73.826364 23.1935427,73.826364 L19.1005673,73.826364 C19.0553365,73.826364 19.0119578,73.8443298 18.979975,73.876313 C18.9479921,73.9082962 18.9300253,73.9516751 18.9300274,73.9969059 L18.9300274,74.8570201 L16.3719151,74.8570201 L16.3719151,73.9969059 C16.3719167,73.9516749 16.3539494,73.908296 16.3219663,73.8763129 C16.2899831,73.8443297 16.2466042,73.826364 16.2013733,73.826364 L12.1083959,73.826364 C12.0631649,73.826364 12.0197861,73.8443297 11.9878029,73.8763129 C11.9558198,73.908296 11.9378525,73.9516749 11.9378541,73.9969059 L11.9378541,74.8570201 L4.09297732,74.8570201 C1.83248849,74.8570223 0,76.6895106 0,78.9499994 L0,80.8007483 C0,83.061233 1.83249262,84.8937159 4.09297732,84.8937159 L140.184525,84.8937159 C142.44501,84.8937159 144.277504,83.0612333 144.277504,80.8007483 L144.277504,78.9499994 C144.277504,76.6895102 142.445014,74.8570223 140.184525,74.8570201 Z","id","Path",1,"fill-color-20"],["d","M88.0406297,103.870828 C88.3071704,103.870828 88.5610365,103.731189 88.7006752,103.490029 L94.2857286,93.8431185 C94.5808417,93.3385473 94.2159092,92.7007212 93.6288439,92.7007212 L89.9668136,92.7007212 L91.318669,88.5817505 C91.445602,88.0993988 91.0806695,87.6234 90.5824512,87.6234 L86.0128621,87.6234 C85.632063,87.6234 85.3083776,87.9058383 85.2576168,88.2834455 L84.2421525,95.8994274 C84.1818469,96.3563987 84.5372656,96.7625782 84.9973979,96.7625782 L88.7641417,96.7625782 L87.30122,102.934697 C87.1869926,103.417048 87.555086,103.870828 88.0406297,103.870828 Z","id","b","transform","translate(89.312846, 95.747114) rotate(14.000000) translate(-89.312846, -95.747114) ",1,"fill-color-21"],["id","Oval","cx","74.1507041","cy","17.5648113","r","8.15070413",1,"fill-color-primary"]],template:function(t,e){if(1&t&&(h.YNc(0,tt,1,0,"ng-container",0),h.YNc(1,it,32,5,"ng-template",null,1,h.W1O),h.YNc(3,nt,66,5,"ng-template",null,2,h.W1O),h.YNc(5,rt,93,5,"ng-template",null,3,h.W1O),h.YNc(7,st,54,5,"ng-template",null,4,h.W1O),h.YNc(9,ot,51,5,"ng-template",null,5,h.W1O)),2&t){const t=h.MAs(2),i=h.MAs(4),n=h.MAs(6),r=h.MAs(8),s=h.MAs(10);h.Q6J("ngTemplateOutlet",1===e.stepNumber?t:2===e.stepNumber?i:3===e.stepNumber?n:4===e.stepNumber?r:s)}},directives:[p.tP,y.xw,y.yH,y.Wh,p.mk,x.oO,b.n5,b.$j],styles:["svg.small-svg[_ngcontent-%COMP%]{height:50%;min-height:50%;max-width:100%}svg.large-svg[_ngcontent-%COMP%]{height:60%;min-height:60%;max-width:100%}"],data:{animation:[G.l]}}),t})();const lt=["stepper"];function ct(t,e){if(1&t&&(h.TgZ(0,"div",48),h.TgZ(1,"p",49),h.TgZ(2,"strong"),h._uU(3,"Channel Peer:\xa0"),h.qZA(),h._uU(4),h.ALo(5,"titlecase"),h.qZA(),h.TgZ(6,"p",50),h.TgZ(7,"strong"),h._uU(8,"Channel ID:\xa0"),h.qZA(),h._uU(9),h.qZA(),h._UZ(10,"p",50),h.qZA()),2&t){const t=h.oxw(2);h.xp6(4),h.Oqu(h.lcZ(5,2,t.channel.remote_alias)),h.xp6(5),h.Oqu(t.channel.chan_id)}}function ht(t,e){if(1&t&&h._uU(0),2&t){const t=h.oxw(2);h.Oqu(t.inputFormLabel)}}function ut(t,e){1&t&&(h.TgZ(0,"mat-error"),h._uU(1,"Amount is required."),h.qZA())}function dt(t,e){if(1&t&&(h.TgZ(0,"mat-error"),h._uU(1),h.ALo(2,"number"),h.qZA()),2&t){const t=h.oxw(2);h.xp6(1),h.hij("Amount must be greater than or equal to ",h.lcZ(2,1,t.minQuote.amount),".")}}function pt(t,e){if(1&t&&(h.TgZ(0,"mat-error"),h._uU(1),h.ALo(2,"number"),h.qZA()),2&t){const t=h.oxw(2);h.xp6(1),h.hij("Amount must be less than or equal to ",h.lcZ(2,1,t.maxQuote.amount),".")}}function ft(t,e){1&t&&(h.TgZ(0,"mat-error"),h._uU(1,"Confirmation target is required."),h.qZA())}function mt(t,e){1&t&&(h.TgZ(0,"mat-error"),h._uU(1,"Confirmation target must be a positive number."),h.qZA())}function gt(t,e){1&t&&(h.TgZ(0,"mat-error"),h._uU(1,"Percentage is required."),h.qZA())}function yt(t,e){1&t&&(h.TgZ(0,"mat-error"),h._uU(1,"Percentage must be a positive number."),h.qZA())}function bt(t,e){if(1&t&&(h.TgZ(0,"mat-form-field",50),h._UZ(1,"input",51),h.YNc(2,gt,2,0,"mat-error",25),h.YNc(3,yt,2,0,"mat-error",25),h.qZA()),2&t){const t=h.oxw(2);h.xp6(1),h.Q6J("step",1),h.xp6(1),h.Q6J("ngIf",null==t.inputFormGroup.controls.routingFeePercent.errors?null:t.inputFormGroup.controls.routingFeePercent.errors.required),h.xp6(1),h.Q6J("ngIf",null==t.inputFormGroup.controls.routingFeePercent.errors?null:t.inputFormGroup.controls.routingFeePercent.errors.min)}}function vt(t,e){1&t&&(h.TgZ(0,"mat-slide-toggle",52),h._uU(1,"Fast"),h.qZA())}function _t(t,e){if(1&t&&h._uU(0),2&t){const t=h.oxw(2);h.Oqu(t.quoteFormLabel)}}function wt(t,e){1&t&&(h.TgZ(0,"p",53),h.TgZ(1,"mat-icon",54),h._uU(2,"close"),h.qZA(),h._uU(3,"Local balance amount is insufficient for swap."),h.qZA())}function xt(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",55),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).onValidateAmount()}),h._uU(1,"Next"),h.qZA()}}function Ct(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",56),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).onLoop()}),h._uU(1),h.qZA()}if(2&t){const t=h.oxw(2);h.xp6(1),h.hij("Initiate ",t.loopDirectionCaption,"")}}function At(t,e){if(1&t&&h._uU(0),2&t){const t=h.oxw(3);h.Oqu(t.addressFormLabel)}}function St(t,e){1&t&&(h.TgZ(0,"mat-error"),h._uU(1,"Address is required."),h.qZA())}function Et(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"mat-step",16),h.TgZ(1,"form",17),h.YNc(2,At,1,1,"ng-template",18),h.TgZ(3,"div",57),h.TgZ(4,"mat-radio-group",58),h.NdJ("change",function(e){return h.CHM(t),h.oxw(2).onAddressTypeChange(e)}),h.TgZ(5,"mat-radio-button",59),h._uU(6,"Node Local Address"),h.qZA(),h.TgZ(7,"mat-radio-button",60),h._uU(8,"External Address"),h.qZA(),h.qZA(),h.TgZ(9,"mat-form-field",61),h._UZ(10,"input",62),h.YNc(11,St,2,0,"mat-error",25),h.qZA(),h.qZA(),h.TgZ(12,"div",29),h.TgZ(13,"button",63),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).onLoop()}),h._uU(14),h.qZA(),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=h.oxw(2);h.Q6J("stepControl",t.addressFormGroup)("editable",t.flgEditable),h.xp6(1),h.Q6J("formGroup",t.addressFormGroup),h.xp6(9),h.Q6J("required","external"===t.addressFormGroup.controls.addressType.value),h.xp6(1),h.Q6J("ngIf",null==t.addressFormGroup.controls.address.errors?null:t.addressFormGroup.controls.address.errors.required),h.xp6(3),h.hij("Initiate ",t.loopDirectionCaption,"")}}function kt(t,e){if(1&t&&h._uU(0),2&t){const t=h.oxw(2);h.hij("",t.loopDirectionCaption," Status")}}function Tt(t,e){if(1&t&&(h.TgZ(0,"mat-icon",64),h._uU(1),h.qZA()),2&t){const t=h.oxw(2);h.xp6(1),h.Oqu(t.loopStatus&&null!=t.loopStatus&&t.loopStatus.id_bytes?"check":"close")}}function Mt(t,e){1&t&&h._UZ(0,"div")}function Lt(t,e){1&t&&h._UZ(0,"mat-progress-bar",65)}function It(t,e){if(1&t&&(h.TgZ(0,"h4",66),h._uU(1),h.qZA()),2&t){const t=h.oxw(2);h.xp6(1),h.Oqu(t.loopStatus&&t.loopStatus.error?t.loopDirectionCaption+" failed.":t.loopStatus&&t.loopStatus.id_bytes&&t.channel?t.loopDirectionCaption+" request placed successfully. You can check the status of the request on the 'Loop' menu.":t.loopDirectionCaption+" request placed successfully.")}}function Ot(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",67),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).goToLoop()}),h._uU(1,"Check Status"),h.qZA()}}function Dt(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",68),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).onRestart()}),h._uU(1,"Start Again"),h.qZA()}}function Rt(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",3),h.TgZ(1,"div",4),h.TgZ(2,"mat-card-header",5),h.TgZ(3,"div",6),h.TgZ(4,"span",7),h._uU(5),h.qZA(),h.qZA(),h.TgZ(6,"div",8),h.TgZ(7,"button",9),h.NdJ("click",function(){return h.CHM(t),h.oxw().showInfo()}),h._uU(8,"?"),h.qZA(),h.TgZ(9,"button",10),h.NdJ("click",function(){return h.CHM(t),h.oxw().onClose()}),h._uU(10,"X"),h.qZA(),h.qZA(),h.qZA(),h.TgZ(11,"mat-card-content",11),h.TgZ(12,"div",12),h.YNc(13,ct,11,4,"div",13),h.TgZ(14,"mat-vertical-stepper",14,15),h.NdJ("selectionChange",function(e){return h.CHM(t),h.oxw().stepSelectionChanged(e)}),h.TgZ(16,"mat-step",16),h.TgZ(17,"form",17),h.YNc(18,ht,1,1,"ng-template",18),h.TgZ(19,"div",19),h._UZ(20,"rtl-loop-quote",20),h._UZ(21,"rtl-loop-quote",20),h.qZA(),h.TgZ(22,"div",21),h.TgZ(23,"mat-form-field",22),h._UZ(24,"input",23),h.TgZ(25,"mat-hint"),h._uU(26),h.ALo(27,"number"),h.ALo(28,"number"),h.qZA(),h.TgZ(29,"span",24),h._uU(30,"Sats"),h.qZA(),h.YNc(31,ut,2,0,"mat-error",25),h.YNc(32,dt,3,3,"mat-error",25),h.YNc(33,pt,3,3,"mat-error",25),h.qZA(),h.TgZ(34,"mat-form-field",22),h._UZ(35,"input",26),h.YNc(36,ft,2,0,"mat-error",25),h.YNc(37,mt,2,0,"mat-error",25),h.qZA(),h.YNc(38,bt,4,3,"mat-form-field",27),h.YNc(39,vt,2,0,"mat-slide-toggle",28),h.qZA(),h.TgZ(40,"div",29),h.TgZ(41,"button",30),h.NdJ("click",function(){return h.CHM(t),h.oxw().onEstimateQuote()}),h._uU(42,"Estimate Quote"),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.TgZ(43,"mat-step",16),h.TgZ(44,"form",17),h.YNc(45,_t,1,1,"ng-template",18),h._UZ(46,"rtl-loop-quote",31),h.YNc(47,wt,4,0,"p",32),h.TgZ(48,"div",29),h.YNc(49,xt,2,0,"button",33),h.YNc(50,Ct,2,1,"button",34),h.qZA(),h.qZA(),h.qZA(),h.YNc(51,Et,15,6,"mat-step",35),h.TgZ(52,"mat-step",36),h.TgZ(53,"form",17),h.YNc(54,kt,1,1,"ng-template",18),h.TgZ(55,"div",37),h.TgZ(56,"mat-expansion-panel",38),h.TgZ(57,"mat-expansion-panel-header"),h.TgZ(58,"mat-panel-title"),h.TgZ(59,"span",39),h._uU(60),h.YNc(61,Tt,2,1,"mat-icon",40),h.qZA(),h.qZA(),h.qZA(),h.YNc(62,Mt,1,0,"div",41),h.qZA(),h.YNc(63,Lt,1,0,"mat-progress-bar",42),h.qZA(),h.YNc(64,It,2,1,"h4",43),h.TgZ(65,"div",29),h.YNc(66,Ot,2,0,"button",44),h.YNc(67,Dt,2,0,"button",45),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.TgZ(68,"div",46),h.TgZ(69,"button",47),h._uU(70,"Close"),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=h.oxw(),e=h.MAs(2);h.Q6J("@opacityAnimation",void 0),h.xp6(3),h.Q6J("fxFlex",t.screenSize===t.screenSizeEnum.XS||t.screenSize===t.screenSizeEnum.SM?"83":"91"),h.xp6(2),h.Oqu(t.channel?"Channel "+t.loopDirectionCaption:t.loopDirectionCaption),h.xp6(1),h.Q6J("fxFlex",t.screenSize===t.screenSizeEnum.XS||t.screenSize===t.screenSizeEnum.SM?"17":"9"),h.xp6(7),h.Q6J("ngIf",t.channel),h.xp6(1),h.Q6J("linear",!0),h.xp6(2),h.Q6J("stepControl",t.inputFormGroup)("editable",t.flgEditable),h.xp6(1),h.Q6J("formGroup",t.inputFormGroup),h.xp6(3),h.Q6J("quote",t.minQuote)("termCaption","min")("panelExpanded",!1)("showPanel",!0),h.xp6(1),h.Q6J("quote",t.maxQuote)("termCaption","max")("panelExpanded",!1)("showPanel",!0),h.xp6(2),h.Q6J("fxFlex",t.direction===t.LoopTypeEnum.LOOP_OUT?"30":"48"),h.xp6(1),h.Q6J("step",1e3),h.xp6(2),h.AsE("Range: ",h.lcZ(27,51,t.minQuote.amount),"-",h.lcZ(28,53,t.maxQuote.amount),""),h.xp6(5),h.Q6J("ngIf",null==t.inputFormGroup.controls.amount.errors?null:t.inputFormGroup.controls.amount.errors.required),h.xp6(1),h.Q6J("ngIf",null==t.inputFormGroup.controls.amount.errors?null:t.inputFormGroup.controls.amount.errors.min),h.xp6(1),h.Q6J("ngIf",null==t.inputFormGroup.controls.amount.errors?null:t.inputFormGroup.controls.amount.errors.max),h.xp6(1),h.Q6J("fxFlex",t.direction===t.LoopTypeEnum.LOOP_OUT?"20":"48"),h.xp6(1),h.Q6J("step",1),h.xp6(1),h.Q6J("ngIf",null==t.inputFormGroup.controls.sweepConfTarget.errors?null:t.inputFormGroup.controls.sweepConfTarget.errors.required),h.xp6(1),h.Q6J("ngIf",null==t.inputFormGroup.controls.sweepConfTarget.errors?null:t.inputFormGroup.controls.sweepConfTarget.errors.min),h.xp6(1),h.Q6J("ngIf",t.direction===t.LoopTypeEnum.LOOP_OUT),h.xp6(1),h.Q6J("ngIf",t.direction===t.LoopTypeEnum.LOOP_OUT),h.xp6(4),h.Q6J("stepControl",t.quoteFormGroup)("editable",t.flgEditable),h.xp6(1),h.Q6J("formGroup",t.quoteFormGroup),h.xp6(2),h.Q6J("quote",t.quote)("showPanel",!1),h.xp6(1),h.Q6J("ngIf",t.inputFormGroup.controls.amount.value>t.localBalanceToCompare),h.xp6(2),h.Q6J("ngIf",t.direction===t.LoopTypeEnum.LOOP_OUT),h.xp6(1),h.Q6J("ngIf",t.direction===t.LoopTypeEnum.LOOP_IN),h.xp6(1),h.Q6J("ngIf",t.direction===t.LoopTypeEnum.LOOP_OUT),h.xp6(1),h.Q6J("stepControl",t.statusFormGroup),h.xp6(1),h.Q6J("formGroup",t.statusFormGroup),h.xp6(3),h.Q6J("expanded",!!t.loopStatus),h.xp6(4),h.Oqu(t.loopStatus?t.loopStatus.id_bytes?t.loopDirectionCaption+" request details":t.loopDirectionCaption+" error details":"Waiting for "+t.loopDirectionCaption+" request..."),h.xp6(1),h.Q6J("ngIf",t.loopStatus),h.xp6(1),h.Q6J("ngIf",!t.loopStatus)("ngIfElse",e),h.xp6(1),h.Q6J("ngIf",!t.loopStatus),h.xp6(1),h.Q6J("ngIf",t.loopStatus),h.xp6(2),h.Q6J("ngIf",t.loopStatus&&t.loopStatus.id_bytes&&t.channel),h.xp6(1),h.Q6J("ngIf",t.loopStatus&&(t.loopStatus.error||!t.loopStatus.id_bytes)),h.xp6(2),h.Q6J("mat-dialog-close",!1)}}function Nt(t,e){if(1&t&&h._UZ(0,"rtl-loop-status",69),2&t){const t=h.oxw();h.Q6J("loopStatus",t.loopStatus)}}function Pt(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"rtl-loop-out-info-graphics",86),h.NdJ("stepNumberChange",function(e){return h.CHM(t),h.oxw(2).stepNumber=e}),h.qZA()}if(2&t){const t=h.oxw(2);h.Q6J("stepNumber",t.stepNumber)("animationDirection",t.animationDirection)}}function Ft(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"rtl-loop-in-info-graphics",86),h.NdJ("stepNumberChange",function(e){return h.CHM(t),h.oxw(2).stepNumber=e}),h.qZA()}if(2&t){const t=h.oxw(2);h.Q6J("stepNumber",t.stepNumber)("animationDirection",t.animationDirection)}}const Zt=function(t,e){return{"dot-primary":t,"dot-primary-lighter":e}};function Bt(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"span",87),h.NdJ("click",function(){const e=h.CHM(t).$implicit;return h.oxw(2).onStepChanged(e)}),h._UZ(1,"p",88),h.qZA()}if(2&t){const t=e.$implicit,i=h.oxw(2);h.xp6(1),h.Q6J("ngClass",h.WLB(1,Zt,i.stepNumber===t,i.stepNumber!==t))}}function Ut(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",89),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).onReadMore()}),h._uU(1,"Read More"),h.qZA()}}function qt(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",90),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).onStepChanged(4)}),h._uU(1,"Back"),h.qZA()}}function zt(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",91),h.NdJ("click",function(){h.CHM(t);const e=h.oxw(2);return e.flgShowInfo=!1,e.stepNumber=1}),h._uU(1,"Close"),h.qZA()}}function Ht(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",92),h.NdJ("click",function(){h.CHM(t);const e=h.oxw(2);return e.flgShowInfo=!1,e.stepNumber=1}),h._uU(1,"Close"),h.qZA()}}function Yt(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",93),h.NdJ("click",function(){h.CHM(t);const e=h.oxw(2);return e.onStepChanged(e.stepNumber-1)}),h._uU(1,"Back"),h.qZA()}}function Gt(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",94),h.NdJ("click",function(){h.CHM(t);const e=h.oxw(2);return e.onStepChanged(e.stepNumber+1)}),h._uU(1,"Next"),h.qZA()}}const jt=function(){return[1,2,3,4,5]};function Vt(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",70),h.TgZ(1,"div",19),h.TgZ(2,"mat-card-header",71),h.TgZ(3,"div",72),h._UZ(4,"span",7),h.qZA(),h.TgZ(5,"div",73),h.TgZ(6,"button",74),h.NdJ("click",function(){h.CHM(t);const e=h.oxw();return e.flgShowInfo=!1,e.stepNumber=1}),h._uU(7,"X"),h.qZA(),h.qZA(),h.qZA(),h.TgZ(8,"mat-card-content",75),h.YNc(9,Pt,1,2,"rtl-loop-out-info-graphics",76),h.YNc(10,Ft,1,2,"rtl-loop-in-info-graphics",76),h.qZA(),h.TgZ(11,"div",77),h.YNc(12,Bt,2,4,"span",78),h.qZA(),h.TgZ(13,"div",79),h.YNc(14,Ut,2,0,"button",80),h.YNc(15,qt,2,0,"button",81),h.YNc(16,zt,2,0,"button",82),h.YNc(17,Ht,2,0,"button",83),h.YNc(18,Yt,2,0,"button",84),h.YNc(19,Gt,2,0,"button",85),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=h.oxw();h.Q6J("@opacityAnimation",void 0),h.xp6(9),h.Q6J("ngIf",t.direction===t.LoopTypeEnum.LOOP_OUT),h.xp6(1),h.Q6J("ngIf",t.direction===t.LoopTypeEnum.LOOP_IN),h.xp6(2),h.Q6J("ngForOf",h.DdM(10,jt)),h.xp6(2),h.Q6J("ngIf",5===t.stepNumber),h.xp6(1),h.Q6J("ngIf",5===t.stepNumber),h.xp6(1),h.Q6J("ngIf",5===t.stepNumber),h.xp6(1),h.Q6J("ngIf",t.stepNumber<5),h.xp6(1),h.Q6J("ngIf",t.stepNumber>1&&t.stepNumber<5),h.xp6(1),h.Q6J("ngIf",t.stepNumber<5)}}let Qt=(()=>{class t{constructor(t,e,i,n,s,o,l,h,u){this.dialogRef=t,this.data=e,this.store=i,this.loopService=n,this.formBuilder=s,this.decimalPipe=o,this.logger=l,this.router=h,this.commonService=u,this.faInfoCircle=a.sqG,this.LoopTypeEnum=c.$I,this.direction=c.$I.LOOP_OUT,this.loopDirectionCaption="Loop out",this.loopStatus=null,this.inputFormLabel="Amount to loop out",this.quoteFormLabel="Confirm Quote",this.addressFormLabel="Withdrawal Address",this.prepayRoutingFee=36,this.flgShowInfo=!1,this.stepNumber=1,this.screenSize="",this.screenSizeEnum=c.cu,this.animationDirection="forward",this.flgEditable=!0,this.localBalanceToCompare=null,this.unSubs=[new r.x,new r.x,new r.x,new r.x,new r.x,new r.x,new r.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.channel=this.data.channel,this.minQuote=this.data.minQuote?this.data.minQuote:{},this.maxQuote=this.data.maxQuote?this.data.maxQuote:{},this.direction=this.data.direction,this.loopDirectionCaption=this.direction===c.$I.LOOP_IN?"Loop in":"Loop out",this.inputFormLabel="Amount to "+this.loopDirectionCaption,this.inputFormGroup=this.formBuilder.group({amount:[this.minQuote.amount,[n.kI.required,n.kI.min(this.minQuote.amount),n.kI.max(this.maxQuote.amount)]],sweepConfTarget:[6,[n.kI.required,n.kI.min(1)]],routingFeePercent:[2,[n.kI.required,n.kI.min(0)]],fast:[!1,[n.kI.required]]}),this.quoteFormGroup=this.formBuilder.group({}),this.addressFormGroup=this.formBuilder.group({addressType:["local",[n.kI.required]],address:[{value:"",disabled:!0}]}),this.statusFormGroup=this.formBuilder.group({}),this.onFormValueChanges(),this.store.select("lnd").pipe((0,s.R)(this.unSubs[6])).subscribe(t=>{this.localBalanceToCompare=this.channel?+this.channel.local_balance:+t.totalLocalBalance})}ngAfterViewInit(){this.inputFormGroup.setErrors({Invalid:!0}),this.direction===c.$I.LOOP_OUT&&this.addressFormGroup.setErrors({Invalid:!0})}onFormValueChanges(){this.inputFormGroup.valueChanges.pipe((0,s.R)(this.unSubs[4])).subscribe(t=>{this.inputFormGroup.setErrors({Invalid:!0})}),this.direction===c.$I.LOOP_OUT&&this.addressFormGroup.valueChanges.pipe((0,s.R)(this.unSubs[5])).subscribe(t=>{this.addressFormGroup.setErrors({Invalid:!0})})}onAddressTypeChange(t){"external"===t.value?(this.addressFormGroup.controls.address.setValidators([n.kI.required]),this.addressFormGroup.controls.address.markAsTouched(),this.addressFormGroup.controls.address.enable()):(this.addressFormGroup.controls.address.setValidators(null),this.addressFormGroup.controls.address.markAsPristine(),this.addressFormGroup.controls.address.disable(),this.addressFormGroup.controls.address.setValue("")),this.addressFormGroup.setErrors({Invalid:!0})}onValidateAmount(){this.inputFormGroup.controls.amount.value<=this.localBalanceToCompare&&this.stepper.next()}onLoop(){if(!this.inputFormGroup.controls.amount.value||this.inputFormGroup.controls.amount.valuethis.maxQuote.amount||!this.inputFormGroup.controls.sweepConfTarget.value||this.inputFormGroup.controls.sweepConfTarget.value<2||this.direction===c.$I.LOOP_OUT&&(!this.inputFormGroup.controls.routingFeePercent.value||this.inputFormGroup.controls.routingFeePercent.value<0)||this.direction===c.$I.LOOP_OUT&&"external"===this.addressFormGroup.controls.addressType.value&&(!this.addressFormGroup.controls.address.value||""===this.addressFormGroup.controls.address.value.trim()))return!0;if(this.flgEditable=!1,this.stepper.selected.stepControl.setErrors(null),this.stepper.next(),this.direction===c.$I.LOOP_IN)this.loopService.loopIn(this.inputFormGroup.controls.amount.value,+this.quote.swap_fee_sat,+this.quote.htlc_publish_fee_sat,"",!0).pipe((0,s.R)(this.unSubs[0])).subscribe({next:t=>{this.loopStatus=t,this.loopService.listSwaps(),this.flgEditable=!0},error:t=>{this.loopStatus={error:t},this.flgEditable=!0,this.logger.error(t)}});else{const t=Math.ceil(this.inputFormGroup.controls.amount.value*(this.inputFormGroup.controls.routingFeePercent.value/100)),e="external"===this.addressFormGroup.controls.addressType.value?this.addressFormGroup.controls.address.value:"",i=this.inputFormGroup.controls.fast.value?0:(new Date).getTime()+18e5;this.loopService.loopOut(this.inputFormGroup.controls.amount.value,this.channel&&this.channel.chan_id?this.channel.chan_id:"",this.inputFormGroup.controls.sweepConfTarget.value,t,+this.quote.htlc_sweep_fee_sat,this.prepayRoutingFee,+this.quote.prepay_amt_sat,+this.quote.swap_fee_sat,i,e).pipe((0,s.R)(this.unSubs[1])).subscribe({next:t=>{this.loopStatus=t,this.loopService.listSwaps(),this.flgEditable=!0},error:t=>{this.loopStatus={error:t},this.flgEditable=!0,this.logger.error(t)}})}}onEstimateQuote(){if(!this.inputFormGroup.controls.amount.value||this.inputFormGroup.controls.amount.valuethis.maxQuote.amount||!this.inputFormGroup.controls.sweepConfTarget.value||this.inputFormGroup.controls.sweepConfTarget.value<2)return!0;const t=this.inputFormGroup.controls.fast.value?0:(new Date).getTime()+18e5;this.direction===c.$I.LOOP_IN?this.loopService.getLoopInQuote(this.inputFormGroup.controls.amount.value,this.inputFormGroup.controls.sweepConfTarget.value,t).pipe((0,s.R)(this.unSubs[2])).subscribe(t=>{this.quote=t,this.quote.off_chain_swap_routing_fee_percentage=this.inputFormGroup.controls.routingFeePercent.value?this.inputFormGroup.controls.routingFeePercent.value:2}):this.loopService.getLoopOutQuote(this.inputFormGroup.controls.amount.value,this.inputFormGroup.controls.sweepConfTarget.value,t).pipe((0,s.R)(this.unSubs[3])).subscribe(t=>{this.quote=t,this.quote.off_chain_swap_routing_fee_percentage=this.inputFormGroup.controls.routingFeePercent.value?this.inputFormGroup.controls.routingFeePercent.value:2}),this.stepper.selected.stepControl.setErrors(null),this.stepper.next()}stepSelectionChanged(t){switch(t.selectedIndex){case 0:this.inputFormLabel="Amount to "+this.loopDirectionCaption,this.quoteFormLabel="Confirm Quote",this.addressFormLabel="Withdrawal Address";break;case 1:this.inputFormLabel=this.inputFormGroup.controls.amount.value||this.inputFormGroup.controls.sweepConfTarget.value?this.direction===c.$I.LOOP_IN?this.loopDirectionCaption+" Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.amount.value?this.inputFormGroup.controls.amount.value:0)+" Sats | Target Confirmation: "+(this.inputFormGroup.controls.sweepConfTarget.value?this.inputFormGroup.controls.sweepConfTarget.value:6):this.loopDirectionCaption+" Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.amount.value?this.inputFormGroup.controls.amount.value:0)+" Sats | Target Confirmation: "+(this.inputFormGroup.controls.sweepConfTarget.value?this.inputFormGroup.controls.sweepConfTarget.value:6)+" | Percentage: "+(this.inputFormGroup.controls.routingFeePercent.value?this.inputFormGroup.controls.routingFeePercent.value:"2")+" | Fast: "+(this.inputFormGroup.controls.fast.value?"Enabled":"Disabled"):"Amount to "+this.loopDirectionCaption,this.quoteFormLabel="Confirm Quote",this.addressFormLabel="Withdrawal Address";break;case 2:this.inputFormLabel=this.inputFormGroup.controls.amount.value||this.inputFormGroup.controls.sweepConfTarget.value?this.direction===c.$I.LOOP_IN?this.loopDirectionCaption+" Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.amount.value?this.inputFormGroup.controls.amount.value:0)+" Sats | Target Confirmation: "+(this.inputFormGroup.controls.sweepConfTarget.value?this.inputFormGroup.controls.sweepConfTarget.value:6):this.loopDirectionCaption+" Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.amount.value?this.inputFormGroup.controls.amount.value:0)+" Sats | Target Confirmation: "+(this.inputFormGroup.controls.sweepConfTarget.value?this.inputFormGroup.controls.sweepConfTarget.value:6)+" | Fast: "+(this.inputFormGroup.controls.fast.value?"Enabled":"Disabled"):"Amount to "+this.loopDirectionCaption,this.quoteFormLabel=this.quote&&this.quote.swap_fee_sat&&(this.quote.htlc_sweep_fee_sat||this.quote.htlc_publish_fee_sat)&&this.quote.prepay_amt_sat?"Quote confirmed | Estimated Fees: "+this.decimalPipe.transform(+this.quote.swap_fee_sat+ +(this.quote.htlc_sweep_fee_sat?this.quote.htlc_sweep_fee_sat:this.quote.htlc_publish_fee_sat?this.quote.htlc_publish_fee_sat:0))+" Sats":"Quote confirmed",this.addressFormLabel=this.addressFormGroup.controls.addressType.value?"Withdrawal Address | Type: "+this.addressFormGroup.controls.addressType.value:"Withdrawal Address";break;default:this.inputFormLabel="Amount to "+this.loopDirectionCaption,this.quoteFormLabel="Confirm Quote",this.addressFormLabel="Withdrawal Address"}(this.direction===c.$I.LOOP_OUT&&1!==t.selectedIndex&&t.selectedIndex{t.next(null),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(o.so),h.Y36(o.WI),h.Y36(u.yh),h.Y36(d.W),h.Y36(n.qu),h.Y36(p.JJ),h.Y36(f.mQ),h.Y36(m.F0),h.Y36(g.v))},t.\u0275cmp=h.Xpm({type:t,selectors:[["rtl-loop-modal"]],viewQuery:function(t,e){if(1&t&&h.Gf(lt,5),2&t){let t;h.iGM(t=h.CRH())&&(e.stepper=t.first)}},decls:4,vars:2,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf"],["loopStatusBlock",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch","class","info-graphics-container",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxLayoutAlign","start start",3,"fxFlex"],[1,"page-title"],["fxLayoutAlign","space-between end",3,"fxFlex"],["tabindex","21","mat-button","",1,"btn-close-x","p-0",3,"click"],["tabindex","22","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],["class","padding-gap-large","fxLayout","row wrap","fxLayoutAlign","space-between stretch",4,"ngIf"],[3,"linear","selectionChange"],["stepper",""],[3,"stepControl","editable"],["fxLayout","column","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"my-1",3,"formGroup"],["matStepLabel",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],[3,"quote","termCaption","panelExpanded","showPanel"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between center",1,"mt-1"],[3,"fxFlex"],["autoFocus","","matInput","","placeholder","Amount","type","number","tabindex","1","formControlName","amount","required","",3,"step"],["matSuffix",""],[4,"ngIf"],["matInput","","placeholder","Sweep Confirmation Target","type","number","tabindex","2","formControlName","sweepConfTarget","required","",3,"step"],["fxFlex","30",4,"ngIf"],["matTooltip","Swap immediately (Might end up paying a higher on-chain fee)","fxFlex","15","tabindex","4","color","primary","formControlName","fast",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","5","type","button",3,"click"],[3,"quote","showPanel"],["fxFlex","100","class","color-warn mt-2","fxLayoutAlign","start center",4,"ngIf"],["mat-stroked-button","","color","primary","tabindex","6","type","button",3,"click",4,"ngIf"],["mat-stroked-button","","color","primary","tabindex","7","type","button",3,"click",4,"ngIf"],[3,"stepControl","editable",4,"ngIf"],[3,"stepControl"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"flat-expansion-panel",3,"expanded"],["fxLayoutAlign","start center","fxFlex","100"],["class","ml-1 icon-small",4,"ngIf"],[4,"ngIf","ngIfElse"],["fxFlex","100","color","primary","mode","indeterminate",4,"ngIf"],["fxLayoutAlign","start","class","font-bold-500 mt-2",4,"ngIf"],["mat-flat-button","","color","primary","tabindex","12","type","button",3,"click",4,"ngIf"],["mat-flat-button","","color","primary","tabindex","13","type","button",3,"click",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end end"],["mat-stroked-button","","color","primary","tabindex","14","type","button","default","",3,"mat-dialog-close"],["fxLayout","row wrap","fxLayoutAlign","space-between stretch",1,"padding-gap-large"],["fxFlex","40"],["fxFlex","30"],["matInput","","placeholder","Max Off-chain Routing Fee (%)","type","number","tabindex","3","formControlName","routingFeePercent","required","",3,"step"],["matTooltip","Swap immediately (Might end up paying a higher on-chain fee)","fxFlex","15","tabindex","4","color","primary","formControlName","fast"],["fxFlex","100","fxLayoutAlign","start center",1,"color-warn","mt-2"],[1,"mr-1","icon-small"],["mat-stroked-button","","color","primary","tabindex","6","type","button",3,"click"],["mat-stroked-button","","color","primary","tabindex","7","type","button",3,"click"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mt-1"],["color","primary","name","addressType","formControlName","addressType","fxFlex","100","fxLayoutAlign","space-between stretch",3,"change"],["fxFlex","48","tabindex","8","value","local"],["fxFlex","48","tabindex","9","value","external"],["fxFlex","100",1,"mt-1"],["matInput","","placeholder","Address","tabindex","10","formControlName","address",3,"required"],["mat-stroked-button","","color","primary","tabindex","11","type","button",3,"click"],[1,"ml-1","icon-small"],["fxFlex","100","color","primary","mode","indeterminate"],["fxLayoutAlign","start",1,"font-bold-500","mt-2"],["mat-flat-button","","color","primary","tabindex","12","type","button",3,"click"],["mat-flat-button","","color","primary","tabindex","13","type","button",3,"click"],["fxLayout","column",3,"loopStatus"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"info-graphics-container"],["fxLayout","row","fxFlex","8","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],["fxFlex","5","fxLayoutAlign","end center"],["tabindex","19","mat-button","",1,"btn-close-x","p-0",3,"click"],["fxLayout","column","fxFlex","70","fxLayoutAlign","space-between center",1,"padding-gap-x-large"],["fxFlex","100",3,"stepNumber","animationDirection","stepNumberChange",4,"ngIf"],["fxLayout","row","fxFlex","10","fxLayoutAlign","center end",1,"padding-gap-x-large","padding-gap-bottom-large"],["fxLayoutAlign","center center","class","dots-stepper-block",3,"click",4,"ngFor","ngForOf"],["fxLayout","row","fxFlex","10","fxLayoutAlign","end end",1,"padding-gap-x-large","padding-gap-bottom-large"],["mat-stroked-button","","class","mr-1","color","primary","tabindex","15","type","button",3,"click",4,"ngIf"],["mat-flat-button","","class","mr-1","color","primary","tabindex","16","type","button",3,"click",4,"ngIf"],["mat-flat-button","","color","primary","tabindex","17","type","button",3,"click",4,"ngIf"],["mat-stroked-button","","class","mr-1","color","primary","tabindex","18","type","button",3,"click",4,"ngIf"],["mat-flat-button","","class","mr-1","color","primary","tabindex","19","type","button",3,"click",4,"ngIf"],["mat-flat-button","","color","primary","tabindex","20","type","button",3,"click",4,"ngIf"],["fxFlex","100",3,"stepNumber","animationDirection","stepNumberChange"],["fxLayoutAlign","center center",1,"dots-stepper-block",3,"click"],[1,"dot","tiny-dot","mr-0",3,"ngClass"],["mat-stroked-button","","color","primary","tabindex","15","type","button",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","16","type","button",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","17","type","button",3,"click"],["mat-stroked-button","","color","primary","tabindex","18","type","button",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","19","type","button",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","20","type","button",3,"click"]],template:function(t,e){1&t&&(h.YNc(0,Rt,71,55,"div",0),h.YNc(1,Nt,1,1,"ng-template",null,1,h.W1O),h.YNc(3,Vt,20,11,"div",2)),2&t&&(h.Q6J("ngIf",!e.flgShowInfo),h.xp6(3),h.Q6J("ngIf",e.flgShowInfo))},directives:[p.O5,y.xw,y.yH,y.Wh,b.dk,v.lW,b.dn,_.Vq,_.C0,n._Y,n.JL,n.sg,_.VY,D,R.KE,N.Nt,n.wV,n.Fj,P.h,n.JJ,n.u,n.Q7,R.bx,R.R9,w.ib,w.yz,w.yK,o.ZT,R.TO,F.Rr,C.gM,Z.Hw,B.VQ,B.U0,U.pW,Y,p.sg,$,at,p.mk,x.oO],pipes:[p.JJ,p.rS],styles:[".dots-stepper-block[_ngcontent-%COMP%]{width:3rem}.info-graphics-container[_ngcontent-%COMP%]{max-height:60rem;min-height:60rem}"],data:{animation:[l._]}}),t})()},6880:(t,e,i)=>{"use strict";i.d(e,{h:()=>r});var n=i(1572);let r=(()=>{class t{constructor(t){this.el=t}ngAfterContentInit(){setTimeout(()=>{this.el.nativeElement.focus()},500)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq))},t.\u0275dir=n.lG2({type:t,selectors:[["","autoFocus",""]],inputs:{appAutoFocus:"appAutoFocus"}}),t})()},2609:(t,e,i)=>{"use strict";i.d(e,{y:()=>r});var n=i(1572);let r=(()=>{class t{constructor(){this.copied=new n.vpe}onClick(t){if(t.preventDefault(),!this.payload)return;const e=t=>{(t.clipboardData||window.clipboardData).setData("text",this.payload.toString()),t.preventDefault(),this.copied.emit(this.payload)};document.addEventListener("copy",e,!1),document.execCommand("copy"),document.removeEventListener("copy",e,!1)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.lG2({type:t,selectors:[["","rtlClipboard",""]],hostBindings:function(t,e){1&t&&n.NdJ("click",function(t){return e.onClick(t)})},inputs:{payload:"payload"},outputs:{copied:"copied"}}),t})()},5095:(t,e,i)=>{"use strict";i.d(e,{q:()=>s});var n=i(6073),r=i(1572);let s=(()=>{class t{validate(t){return this.min?n.kI.min(+this.min)(t):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.lG2({type:t,selectors:[["input","min",""]],inputs:{min:"min"},features:[r._Bn([{provide:n.Cf,useExisting:t,multi:!0}])]}),t})()},6013:(t,e,i)=>{"use strict";i.d(e,{a1:()=>a,QM:()=>l,lB:()=>c,fY:()=>h});var n=i(1681),r=i(1572),s=i(6853),o=i(3191);let a=(()=>{class t{constructor(t,e){this.router=t,this.sessionService=e}canActivate(t){return!(!this.sessionService.getItem("token")||"settings"!==t.url[0].path&&"auth"!==t.url[0].path&&"true"===this.sessionService.getItem("defaultPassword")&&(this.router.navigate(["/settings/auth"]),1))}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(s.F0),r.LFG(o.m))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})(),l=(()=>{class t{constructor(t){this.sessionService=t}canActivate(){return!!this.sessionService.watchSession().pipe((0,n.U)(t=>t.lndUnlocked))}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(o.m))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})(),c=(()=>{class t{constructor(t){this.sessionService=t}canActivate(){return!!this.sessionService.watchSession().pipe((0,n.U)(t=>t.clUnlocked))}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(o.m))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})(),h=(()=>{class t{constructor(t){this.sessionService=t}canActivate(){return!!this.sessionService.watchSession().pipe((0,n.U)(t=>t.eclUnlocked))}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(o.m))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})()},1084:(t,e,i)=>{"use strict";i.d(e,{v:()=>d});var n=i(2041),r=i(9647),s=i(9056),o=i(1681),a=i(1816),l=i(9421),c=i(1572),h=i(3556),u=i(3869);let d=(()=>{class t{constructor(t,e){this.dataService=t,this.logger=e,this.currencyUnits=[],this.CurrencyUnitEnum=l.NT,this.conversionData={data:null,last_fetched:null},this.ratesAPIStatus=l.Bn.UN_INITIATED,this.screenSize=l.cu.MD,this.containerSize={width:1200,height:800}}getScreenSize(){return this.screenSize}setScreenSize(t){this.screenSize=t}getContainerSize(){return this.containerSize}setContainerSize(t,e){this.containerSize={width:t,height:e}}sortByKey(t,e,i,n="asc"){return t.sort("number"===i?"desc"===n?(t,i)=>+t[e]>+i[e]?-1:1:(t,i)=>+t[e]>+i[e]?1:-1:"desc"===n?(t,i)=>t[e]>i[e]?-1:1:(t,i)=>t[e]>i[e]?1:-1)}sortDescByKey(t,e){return t.sort((t,i)=>{const n=+t[e],r=+i[e];return n>r?-1:n{const n=+t[e],r=+i[e];return nr?1:0})}camelCase(t){return t.replace(/(?:^\w|[A-Z]|\b\w)/g,(t,e)=>0===e?t.toLowerCase():t.toUpperCase()).replace(/\s+/g,"")}titleCase(t){return t.indexOf("!\n")>0||t.indexOf(".\n")>0?t.split("\n").reduce((t,e)=>t+e.charAt(0).toUpperCase()+e.substring(1).toLowerCase()+"\n",""):t.charAt(0).toUpperCase()+t.substring(1).toLowerCase()}convertCurrency(t,e,i,c,h){const u=(new Date).valueOf();return h&&c&&this.ratesAPIStatus!==l.Bn.INITIATED&&(e===l.NT.OTHER||i===l.NT.OTHER)?this.conversionData.data&&this.conversionData.last_fetched&&u(this.ratesAPIStatus=l.Bn.COMPLETED,this.conversionData.data=i&&"object"==typeof i?i:i&&"string"==typeof i?JSON.parse(i):{},this.conversionData.last_fetched=u,this.convertWithFiat(t,e,c))),(0,a.K)(t=>(this.ratesAPIStatus=l.Bn.ERROR,(0,r._)(()=>this.extractErrorMessage(t,"Currency Conversion Error.")))))):(0,n.of)(this.convertWithoutFiat(t,e))}convertWithoutFiat(t,e){const i={};switch(i[l.NT.SATS]=0,i[l.NT.BTC]=0,e){case l.NT.SATS:i[l.NT.SATS]=t,i[l.NT.BTC]=1e-8*t;break;case l.NT.BTC:i[l.NT.SATS]=1e8*t,i[l.NT.BTC]=t}return i}convertWithFiat(t,e,i){const n={unit:i,symbol:this.conversionData.data[i].symbol};switch(n[l.NT.SATS]=0,n[l.NT.BTC]=0,n[l.NT.OTHER]=0,e){case l.NT.SATS:n[l.NT.SATS]=t,n[l.NT.BTC]=1e-8*t,n[l.NT.OTHER]=1e-8*t*this.conversionData.data[i].last;break;case l.NT.BTC:n[l.NT.SATS]=1e8*t,n[l.NT.BTC]=t,n[l.NT.OTHER]=t*this.conversionData.data[i].last;break;case l.NT.OTHER:n[l.NT.SATS]=t/this.conversionData.data[i].last*1e8,n[l.NT.BTC]=t/this.conversionData.data[i].last,n[l.NT.OTHER]=t}return n}convertTime(t,e,i){switch(e){case l.Qk.SECS:switch(i){case l.Qk.MINS:t/=60;break;case l.Qk.HOURS:t/=3600;break;case l.Qk.DAYS:t/=86400}break;case l.Qk.MINS:switch(i){case l.Qk.SECS:t*=60;break;case l.Qk.HOURS:t/=60;break;case l.Qk.DAYS:t/=1440}break;case l.Qk.HOURS:switch(i){case l.Qk.SECS:t*=3600;break;case l.Qk.MINS:t*=60;break;case l.Qk.DAYS:t/=24}break;case l.Qk.DAYS:switch(i){case l.Qk.SECS:t=3600*t*24;break;case l.Qk.MINS:t=60*t*24;break;case l.Qk.HOURS:t*=24}}return t}downloadFile(t,e,i=".json",n=".csv"){let r=new Blob;r=".json"===i?new Blob(["\ufeff"+this.convertToCSV(t)],{type:"text/csv;charset=utf-8;"}):new Blob([t.toString()],{type:"text/plain;charset=utf-8"});const s=document.createElement("a"),o=URL.createObjectURL(r);-1!==navigator.userAgent.indexOf("Safari")&&-1===navigator.userAgent.indexOf("Chrome")&&s.setAttribute("target","_blank"),s.setAttribute("href",o),s.setAttribute("download",e+n),s.style.visibility="hidden",document.body.appendChild(s),s.click(),document.body.removeChild(s)}convertToCSV(t){const e=[];let i="",n="",r="";"object"!=typeof t&&(t=JSON.parse(t)),t.forEach((t,i)=>{for(const n in t)e.findIndex(t=>t===n)<0&&e.push(n)});const s=e.join(",");return r=s+"\r\n",t.forEach(t=>{i="",e.forEach(e=>{t.hasOwnProperty(e)?Array.isArray(t[e])?(n="",t[e].forEach((t,e)=>{n+="object"==typeof t?"("+JSON.stringify(t).replace(/\,/g,";")+")":"("+t+")"}),i+=n+","):i+="object"==typeof t[e]?JSON.stringify(t[e]).replace(/\,/g,";")+",":t[e]+",":i+=","}),r+=i.slice(0,-1)+"\r\n"}),r}isVersionCompatible(t,e){const i=t?t.trim().replace("v","").split("-")[0].split("."):[],n=e.split(".");return+i[0]>+n[0]||+i[0]==+n[0]&&+i[1]>+n[1]||+i[0]==+n[0]&&+i[1]==+n[1]&&+i[2]>=+n[2]}extractErrorMessage(t,e="Unknown Error."){const i=this.titleCase(t.error&&t.error.error&&t.error.error.error&&t.error.error.error.error&&t.error.error.error.error.error&&"string"==typeof t.error.error.error.error.error?t.error.error.error.error.error:t.error&&t.error.error&&t.error.error.error&&t.error.error.error.error&&"string"==typeof t.error.error.error.error?t.error.error.error.error:t.error&&t.error.error&&t.error.error.error&&"string"==typeof t.error.error.error?t.error.error.error:t.error&&t.error.error&&"string"==typeof t.error.error?t.error.error:t.error&&"string"==typeof t.error?t.error:t.error&&t.error.error&&t.error.error.error&&t.error.error.error.error&&t.error.error.error.error.message&&"string"==typeof t.error.error.error.error.message?t.error.error.error.error.message:t.error&&t.error.error&&t.error.error.error&&t.error.error.error.message&&"string"==typeof t.error.error.error.message?t.error.error.error.message:t.error&&t.error.error&&t.error.error.message&&"string"==typeof t.error.error.message?t.error.error.message:t.error&&t.error.message&&"string"==typeof t.error.message?t.error.message:t.message&&"string"==typeof t.message?t.message:e);return this.logger.info("Error Message: "+i),i}extractErrorCode(t,e=500){const i=t.error&&t.error.error&&t.error.error.message&&t.error.error.message.code?t.error.error.message.code:t.error&&t.error.error&&t.error.error.code?t.error.error.code:t.error&&t.error.code?t.error.code:t.code?t.code:t.status?t.status:e;return this.logger.info("Error Code: "+i),i}extractErrorNumber(t,e=500){const i=t.error&&t.error.error&&t.error.error.errno?t.error.error.errno:t.error&&t.error.errno?t.error.errno:t.errno?t.errno:t.status?t.status:e;return this.logger.info("Error Number: "+i),i}}return t.\u0275fac=function(e){return new(e||t)(c.LFG(h.D),c.LFG(u.mQ))},t.\u0275prov=c.Yz7({token:t,factory:t.\u0275fac}),t})()},9421:(t,e,i)=>{"use strict";i.d(e,{pt:()=>r,uA:()=>s,Xz:()=>o,Er:()=>a,LO:()=>l,IV:()=>c,TJ:()=>h,_t:()=>u,Dr:()=>d,Vc:()=>p,vn:()=>f,wZ:()=>m,ol:()=>g,n_:()=>y,OJ:()=>b,Qk:()=>v,NT:()=>_,Gi:()=>w,cu:()=>x,HW:()=>C,x$:()=>A,uX:()=>S,Fq:()=>E,$I:()=>k,hc:()=>T,Qw:()=>M,gg:()=>L,op:()=>I,JX:()=>O,kO:()=>D,Bn:()=>R,m6:()=>N});var n=i(3005);function r(t){const e=new n.ye;return e.itemsPerPageLabel=t+" per page:",e}const s=["Sats","BTC"],o={Sats:"1.0-0",BTC:"1.6-6",OTHER:"1.2-2"},a=[{id:"USD",name:"USD"},{id:"AUD",name:"AUD"},{id:"BRL",name:"BRL"},{id:"CAD",name:"CAD"},{id:"CHF",name:"CHF"},{id:"CLP",name:"CLP"},{id:"CNY",name:"CNY"},{id:"DKK",name:"DKK"},{id:"EUR",name:"EUR"},{id:"GBP",name:"GBP"},{id:"HKD",name:"HKD"},{id:"INR",name:"INR"},{id:"ISK",name:"ISK"},{id:"JPY",name:"JPY"},{id:"KRW",name:"KRW"},{id:"NZD",name:"NZD"},{id:"PLN",name:"PLN"},{id:"RUB",name:"RUB"},{id:"SEK",name:"SEK"},{id:"SGD",name:"SGD"},{id:"THB",name:"THB"},{id:"TWD",name:"TWD"}],l=["SECS","MINS","HOURS","DAYS"],c=10,h=[5,10,25,100],u=[{addressId:"0",addressCode:"bech32",addressTp:"Bech32 (P2WKH)",addressDetails:"Pay to witness key hash"},{addressId:"1",addressCode:"p2sh-segwit",addressTp:"P2SH (NP2WKH)",addressDetails:"Pay to nested witness key hash (default)"}],d=[{id:"0",name:"Priority (Default)"},{id:"1",name:"Target Confirmation Blocks"},{id:"2",name:"Fee"}],p=[{id:"none",name:"No Fee Limit",placeholder:"No Limit"},{id:"fixed",name:"Fixed Limit (Sats)",placeholder:"Fixed Limit in Sats"},{id:"percent",name:"Percentage of Payment Amount",placeholder:"Percentage Limit"}],f=[{feeRateId:"urgent",feeRateType:"Urgent"},{feeRateId:"normal",feeRateType:"Normal"},{feeRateId:"slow",feeRateType:"Slow"},{feeRateId:"customperkb",feeRateType:"Custom (Sats/vB)"}],m={themes:[{id:"PURPLE",name:"Diogo"},{id:"TEAL",name:"My2Sats"},{id:"INDIGO",name:"RTL"},{id:"PINK",name:"BK"},{id:"YELLOW",name:"Gold"}],modes:[{id:"DAY",name:"Day"},{id:"NIGHT",name:"Night"}]};var g=function(t){return t.OPERATOR="OPERATOR",t.MERCHANT="MERCHANT",t.ALL="ALL",t}({}),y=function(t){return t.INFORMATION="Information",t.WARNING="Warning",t.ERROR="Error",t.SUCCESS="Success",t.CONFIRM="Confirm",t}({}),b=function(t){return t.JWT="JWT",t.PASSWORD="PASSWORD",t}({}),v=function(t){return t.SECS="SECS",t.MINS="MINS",t.HOURS="HOURS",t.DAYS="DAYS",t}({}),_=function(t){return t.SATS="Sats",t.BTC="BTC",t.OTHER="OTHER",t}({}),w=function(t){return t.ARRAY="ARRAY",t.NUMBER="NUMBER",t.STRING="STRING",t.BOOLEAN="BOOLEAN",t.PASSWORD="PASSWORD",t.DATE="DATE",t.DATE_TIME="DATE_TIME",t}({}),x=function(t){return t.XS="XS",t.SM="SM",t.MD="MD",t.LG="LG",t.XL="XL",t}({});const C={COOPERATIVE_CLOSE:{name:"Co-operative Close",tooltip:"Channel closed cooperatively"},LOCAL_FORCE_CLOSE:{name:"Local Force Close",tooltip:"Channel force-closed by the local node"},REMOTE_FORCE_CLOSE:{name:"Remote Force Close",tooltip:"Channel force-closed by the remote node"},BREACH_CLOSE:{name:"Breach Close",tooltip:"Remote node attempted to broadcast a prior revoked channel state"},FUNDING_CANCELED:{name:"Funding Canceled",tooltip:"Channel never fully opened"},ABANDONED:{name:"Abandoned",tooltip:"Channel abandoned by the local node"}},A={WITNESS_PUBKEY_HASH:{name:"Witness Pubkey Hash",tooltip:""},NESTED_PUBKEY_HASH:{name:"Nested Pubkey Hash",tooltip:""},UNUSED_WITNESS_PUBKEY_HASH:{name:"Unused Witness Pubkey Hash",tooltip:""},UNUSED_NESTED_PUBKEY_HASH:{name:"Unused Nested Pubkey Hash",tooltip:""}};var S=function(t){return t.CHANNELD_NORMAL="Active",t.OPENINGD="Opening",t.CHANNELD_AWAITING_LOCKIN="Pending Open",t.CHANNELD_SHUTTING_DOWN="Shutting Down",t.CLOSINGD_SIGEXCHANGE="Closing: Sig Exchange",t.CLOSINGD_COMPLETE="Closed",t.AWAITING_UNILATERAL="Awaiting Unilateral Close",t.FUNDING_SPEND_SEEN="Funding Spend Seen",t.ONCHAIN="Onchain",t.DUALOPEND_OPEN_INIT="Dual Open Initialized",t.DUALOPEND_AWAITING_LOCKIN="Dual Pending Open",t}({}),E=function(t){return t.INITIATED="Initiated",t.PREIMAGE_REVEALED="Preimage Revealed",t.HTLC_PUBLISHED="HTLC Published",t.SUCCESS="Successful",t.FAILED="Failed",t.INVOICE_SETTLED="Invoice Settled",t}({}),k=function(t){return t.LOOP_OUT="LOOP_OUT",t.LOOP_IN="LOOP_IN",t}({}),T=function(t){return t.SWAP_OUT="SWAP_OUT",t.SWAP_IN="SWAP_IN",t}({}),M=function(t){return t["swap.created"]="Swap Created",t["swap.expired"]="Swap Expired",t["invoice.set"]="Invoice Set",t["invoice.paid"]="Invoice Paid",t["invoice.pending"]="Invoice Pending",t["invoice.settled"]="Invoice Settled",t["invoice.failedToPay"]="Invoice Failed To Pay",t["channel.created"]="Channel Created",t["transaction.failed"]="Transaction Failed",t["transaction.mempool"]="Transaction Mempool",t["transaction.claimed"]="Transaction Claimed",t["transaction.refunded"]="Transaction Refunded",t["transaction.confirmed"]="Transaction Confirmed",t["swap.refunded"]="Swap Refunded",t["swap.abandoned"]="Swap Abandoned",t}({});const L=[{name:"Jan",days:31},{name:"Feb",days:28},{name:"Mar",days:31},{name:"Apr",days:30},{name:"May",days:31},{name:"Jun",days:30},{name:"Jul",days:31},{name:"Aug",days:31},{name:"Sep",days:30},{name:"Oct",days:31},{name:"Nov",days:30},{name:"Dec",days:31}],I=["MONTHLY","YEARLY"];var O=function(t){return t.LOOP="LOOP",t.BOLTZ="BOLTZ",t}({});const D=["password","changeme","moneyprintergobrrr"];var R=function(t){return t.UN_INITIATED="UN_INITIATED",t.INITIATED="INITIATED",t.COMPLETED="COMPLETED",t.ERROR="ERROR",t}({});const N={NO_SPINNER:"No Spinner...",GET_NODE_INFO:"Getting Node Information...",INITALIZE_NODE_DATA:"Initializing Node Data...",GENERATE_NEW_ADDRESS:"Getting New Address...",SEND_FUNDS:"Sending Funds...",UPDATE_CHAN_POLICY:"Updating Channel Policy...",GET_CHAN_POLICY:"Fetching Channel Policy...",GET_REMOTE_POLICY:"Fetching Remote Policy...",CLOSE_CHANNEL:"Closing Channel...",FORCE_CLOSE_CHANNEL:"Force Closing Channel...",OPEN_CHANNEL:"Opening Channel...",CONNECT_PEER:"Connecting Peer...",DISCONNECT_PEER:"Disconnecting Peer...",ADD_INVOICE:"Adding Invoice...",CREATE_INVOICE:"Creating Invoice...",DELETE_INVOICE:"Deleting Invoices...",DECODE_PAYMENT:"Decoding Payment...",DECODE_PAYMENTS:"Decoding Payments...",GET_SENT_PAYMENTS:"Getting Sent Payments...",SEND_PAYMENT:"Sending Payment...",SEND_KEYSEND:"Sending Keysend Payment...",SEARCHING_NODE:"Searching Node...",SEARCHING_CHANNEL:"Searching Channel...",SEARCHING_INVOICE:"Searching Invoice...",BACKUP_CHANNEL:"Backup Channels...",VERIFY_CHANNEL:"Verify Channels...",DOWNLOAD_BACKUP_FILE:"Downloading Backup File...",RESTORE_CHANNEL:"Restoring Channels...",GET_TERMS_QUOTES:"Getting Terms and Quotes...",LABEL_UTXO:"Labelling UTXO...",GET_NODE_ADDRESS:"Getting Node Address...",GEN_SEED:"Generating Seed...",INITIALIZE_WALLET:"Initializing Wallet...",UNLOCK_WALLET:"Unlocking Wallet...",WAIT_SYNC_NODE:"Waiting for Node Sync...",UPDATE_BOLTZ_SETTINGS:"Updating Boltz Service Settings...",UPDATE_LOOP_SETTINGS:"Updating Loop Service Settings...",UPDATE_UI_SETTINGS:"Updating Settings...",UPDATE_NODE_SETTINGS:"Updating Node Settings...",UPDATE_SELECTED_NODE:"Updating Selected Node...",OPEN_CONFIG_FILE:"Opening Config File...",GET_SERVICE_INFO:"Getting Service Info...",GET_QUOTE:"Getting Quotes...",UPDATE_DEFAULT_NODE_SETTING:"Updating Defaule Node Settings...",GET_BOLTZ_SWAPS:"Getting Boltz Swaps...",SIGN_MESSAGE:"Signing Message...",VERIFY_MESSAGE:"Verifying Message...",BUMP_FEE:"Bumping Fee...",LEASE_UTXO:"Leasing UTXO...",GET_LOOP_SWAPS:"Getting List Swaps...",GET_FEE_REPORT:"Getting fee report...",GET_LOOKUP_DETAILS:"Getting lookup details...",GET_RTL_CONFIG:"Getting RTL Config...",VERIFY_TOKEN:"Verify Token..."}},3556:(t,e,i)=>{"use strict";i.d(e,{D:()=>x});var n=i(9063),r=i(9666),s=i(9647),o=i(2041),a=i(9568),l=i(1681),c=i(1816),h=i(5653),u=i(7228),d=i(5963),p=i(9421),f=i(2427),m=i(3929),g=i(5678),y=i(1572),b=i(964),v=i(3869),_=i(1403),w=i(1511);let x=(()=>{class t{constructor(t,e,i,n,s){this.httpClient=t,this.store=e,this.logger=i,this.snackBar=n,this.titleCasePipe=s,this.lnImplementation="LND",this.childAPIUrl=d.T,this.unSubs=[new r.x,new r.x,new r.x,new r.x,new r.x,new r.x,new r.x,new r.x,new r.x,new r.x,new r.x,new r.x,new r.x]}getChildAPIUrl(){return this.childAPIUrl}getLnImplementation(){return this.lnImplementation}setChildAPIUrl(t){switch(this.lnImplementation=t,t){case"CLT":this.childAPIUrl=d.T+"/cl";break;case"ECL":this.childAPIUrl=d.T+"/ecl";break;default:this.childAPIUrl=d.T+"/lnd"}}getFiatRates(){return this.httpClient.get(d.N.CONF_API+"/rates")}decodePayment(t,e){let i=this.childAPIUrl+d.N.PAYREQUEST_API+"/"+t;return"ECL"===this.getLnImplementation()&&(i=this.childAPIUrl+d.N.PAYMENTS_API+"/"+t),this.store.dispatch(new m.Fk(p.m6.DECODE_PAYMENT)),this.httpClient.get(i).pipe((0,a.R)(this.unSubs[0]),(0,l.U)(t=>(this.store.dispatch(new m.Iv(p.m6.DECODE_PAYMENT)),t)),(0,c.K)(t=>(e?this.handleErrorWithoutAlert("Decode Payment",p.m6.DECODE_PAYMENT,t):this.handleErrorWithAlert("decodePaymentData",p.m6.DECODE_PAYMENT,"Decode Payment Failed",this.childAPIUrl+d.N.PAYREQUEST_API,t),(0,s._)(()=>new Error(this.extractErrorMessage(t))))))}decodePayments(t){let e=this.childAPIUrl+d.N.PAYREQUEST_API,i=p.m6.DECODE_PAYMENTS;return"ECL"===this.getLnImplementation()&&(e=this.childAPIUrl+d.N.PAYMENTS_API+"/getsentinfos",i=p.m6.GET_SENT_PAYMENTS),this.store.dispatch(new m.Fk(i)),this.httpClient.post(e,{payments:t}).pipe((0,a.R)(this.unSubs[1]),(0,l.U)(t=>(this.store.dispatch(new m.Iv(i)),t)),(0,c.K)(t=>(this.handleErrorWithAlert("decodePaymentsData",i,i+" Failed",e,t),(0,s._)(()=>new Error(this.extractErrorMessage(t))))))}getAliasesFromPubkeys(t,e){if(e){const e=(new n.LE).set("pubkeys",t);return this.httpClient.get(this.childAPIUrl+d.N.NETWORK_API+"/nodes",{params:e})}return this.httpClient.get(this.childAPIUrl+d.N.NETWORK_API+"/node/"+t)}signMessage(t){return this.store.dispatch(new m.Fk(p.m6.SIGN_MESSAGE)),this.httpClient.post(this.childAPIUrl+d.N.MESSAGE_API+"/sign",{message:t}).pipe((0,a.R)(this.unSubs[2]),(0,l.U)(t=>(this.store.dispatch(new m.Iv(p.m6.SIGN_MESSAGE)),t)),(0,c.K)(t=>(this.handleErrorWithAlert("signMessageData",p.m6.SIGN_MESSAGE,"Sign Message Failed",this.childAPIUrl+d.N.MESSAGE_API+"/sign",t),(0,s._)(()=>new Error(this.extractErrorMessage(t))))))}verifyMessage(t,e){return this.store.dispatch(new m.Fk(p.m6.VERIFY_MESSAGE)),this.httpClient.post(this.childAPIUrl+d.N.MESSAGE_API+"/verify",{message:t,signature:e}).pipe((0,a.R)(this.unSubs[3]),(0,l.U)(t=>(this.store.dispatch(new m.Iv(p.m6.VERIFY_MESSAGE)),t)),(0,c.K)(t=>(this.handleErrorWithAlert("verifyMessageData",p.m6.VERIFY_MESSAGE,"Verify Message Failed",this.childAPIUrl+d.N.MESSAGE_API+"/verify",t),(0,s._)(()=>new Error(this.extractErrorMessage(t))))))}bumpFee(t,e,i,n){const r={txid:t,outputIndex:e};return i&&(r.targetConf=i),n&&(r.satPerByte=n),this.store.dispatch(new m.Fk(p.m6.BUMP_FEE)),this.httpClient.post(this.childAPIUrl+d.N.WALLET_API+"/bumpfee",r).pipe((0,a.R)(this.unSubs[4]),(0,l.U)(t=>(this.store.dispatch(new m.Iv(p.m6.BUMP_FEE)),this.snackBar.open("Successfully bumped the fee. Use the block explorer to verify transaction."),t)),(0,c.K)(t=>(this.handleErrorWithoutAlert("Bump Fee",p.m6.BUMP_FEE,t),(0,s._)(()=>new Error(this.extractErrorMessage(t))))))}labelUTXO(t,e,i=!0){const n={txid:t,label:e,overwrite:i};return this.store.dispatch(new m.Fk(p.m6.LABEL_UTXO)),this.httpClient.post(this.childAPIUrl+d.N.WALLET_API+"/label",n).pipe((0,a.R)(this.unSubs[5]),(0,l.U)(t=>(this.store.dispatch(new m.Iv(p.m6.LABEL_UTXO)),t)),(0,c.K)(t=>(this.handleErrorWithoutAlert("Lease UTXO",p.m6.LABEL_UTXO,t),(0,s._)(()=>new Error(this.extractErrorMessage(t))))))}leaseUTXO(t,e){const i={txid:t,outputIndex:e};return this.store.dispatch(new m.Fk(p.m6.LEASE_UTXO)),this.httpClient.post(this.childAPIUrl+d.N.WALLET_API+"/lease",i).pipe((0,a.R)(this.unSubs[6])).subscribe({next:t=>{this.store.dispatch(new m.Iv(p.m6.LEASE_UTXO)),this.store.dispatch(new g.eL),this.store.dispatch(new g.Zt);const e=new Date(1e3*t.expiration),i=Math.round(e.getTime())-60*e.getTimezoneOffset();this.snackBar.open("The UTXO has been leased till "+new Date(i).toString().substring(4,21).replace(" ","/").replace(" ","/").toUpperCase()+".")},error:t=>(this.handleErrorWithoutAlert("Lease UTXO",p.m6.LEASE_UTXO,t),(0,s._)(()=>new Error(this.extractErrorMessage(t))))})}getForwardingHistory(t,e){const i={end_time:e,start_time:t};return this.store.dispatch(new m.Fk(p.m6.GET_FEE_REPORT)),this.httpClient.post(this.childAPIUrl+d.N.SWITCH_API,i).pipe((0,a.R)(this.unSubs[7]),(0,h.M)(this.store.select("lnd")),(0,u.z)(([t,e])=>{if(t.forwarding_events){const i=[...e.allChannels,...e.closedChannels];t.forwarding_events.forEach(t=>{if(i&&i.length>0)for(let e=0;e(this.handleErrorWithAlert("getForwardingHistoryData",p.m6.GET_FEE_REPORT,"Forwarding History Failed",this.childAPIUrl+d.N.SWITCH_API,t),(0,s._)(()=>new Error(this.extractErrorMessage(t))))))}extractErrorMessage(t,e="Unknown Error."){return this.titleCasePipe.transform(t.error&&t.error.error&&t.error.error.error&&t.error.error.error.error&&t.error.error.error.error.error&&"string"==typeof t.error.error.error.error.error?t.error.error.error.error.error:t.error&&t.error.error&&t.error.error.error&&t.error.error.error.error&&"string"==typeof t.error.error.error.error?t.error.error.error.error:t.error&&t.error.error&&t.error.error.error&&"string"==typeof t.error.error.error?t.error.error.error:t.error&&t.error.error&&"string"==typeof t.error.error?t.error.error:t.error&&"string"==typeof t.error?t.error:t.error&&t.error.error&&t.error.error.error&&t.error.error.error.error&&t.error.error.error.error.message&&"string"==typeof t.error.error.error.error.message?t.error.error.error.error.message:t.error&&t.error.error&&t.error.error.error&&t.error.error.error.message&&"string"==typeof t.error.error.error.message?t.error.error.error.message:t.error&&t.error.error&&t.error.error.message&&"string"==typeof t.error.error.message?t.error.error.message:t.error&&t.error.message&&"string"==typeof t.error.message?t.error.message:t.message&&"string"==typeof t.message?t.message:e)}handleErrorWithoutAlert(t,e,i){this.logger.error("ERROR IN: "+t+"\n"+JSON.stringify(i)),401===i.status&&"Login"!==t?(this.logger.info("Redirecting to Login"),this.store.dispatch(new m.Ac),this.store.dispatch(new m.RD),this.store.dispatch(new m.Lw("Authentication Failed. Redirecting to Login."))):(this.store.dispatch(new m.Iv(e)),this.store.dispatch(new m.np({action:t,status:p.Bn.ERROR,statusCode:i.status.toString(),message:this.extractErrorMessage(i)})))}handleErrorWithAlert(t,e,i,n,r){if(this.logger.error(r),401===r.status)this.logger.info("Redirecting to Login"),this.store.dispatch(new m.Ac),this.store.dispatch(new m.RD),this.store.dispatch(new m.Lw("Authentication Failed. Redirecting to Login."));else{this.store.dispatch(new m.Iv(e));const s=this.extractErrorMessage(r);this.store.dispatch(new m.wu({data:{type:"ERROR",alertTitle:i,message:{code:r.status?r.status:"Unknown Error",message:s,URL:n},component:f.H}})),this.store.dispatch(new m.np({action:t,status:p.Bn.ERROR,statusCode:r.status.toString(),message:s,URL:n}))}}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(y.LFG(n.eN),y.LFG(b.yh),y.LFG(v.mQ),y.LFG(_.ux),y.LFG(w.rS))},t.\u0275prov=y.Yz7({token:t,factory:t.\u0275fac}),t})()},3869:(t,e,i)=>{"use strict";i.d(e,{mQ:()=>a,LG:()=>l});var n=i(5963),r=i(1572);const{isDebugMode:s}=n.N,o=()=>null;let a=(()=>{class t{invokeConsoleMethod(t,e){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})(),l=(()=>{class t{get info(){return s?console.log.bind(console):o}get warn(){return s?console.warn.bind(console):o}get error(){return s?console.error.bind(console):o}invokeConsoleMethod(t,e){(console[t]||console.log||o).apply(console,[e])}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})()},2969:(t,e,i)=>{"use strict";i.d(e,{W:()=>b});var n=i(9063),r=i(7425),s=i(9666),o=i(9647),a=i(9568),l=i(1816),c=i(1681),h=i(5963),u=i(9421),d=i(2427),p=i(3929),f=i(1572),m=i(3869),g=i(964),y=i(1084);let b=(()=>{class t{constructor(t,e,i,n){this.httpClient=t,this.logger=e,this.store=i,this.commonService=n,this.CHILD_API_URL=h.T+"/lnd",this.loopUrl="",this.swaps=[],this.swapsChanged=new r.X([]),this.unSubs=[new s.x,new s.x,new s.x,new s.x,new s.x]}getSwapsList(){return this.swaps}listSwaps(){this.store.dispatch(new p.Fk(u.m6.GET_LOOP_SWAPS)),this.loopUrl=this.CHILD_API_URL+h.N.LOOP_API+"/swaps",this.httpClient.get(this.loopUrl).pipe((0,a.R)(this.unSubs[0])).subscribe({next:t=>{this.store.dispatch(new p.Iv(u.m6.GET_LOOP_SWAPS)),this.swaps=t,this.swapsChanged.next(this.swaps)},error:t=>this.handleErrorWithAlert(u.m6.GET_LOOP_SWAPS,this.loopUrl,t)})}loopOut(t,e,i,n,r,s,o,a,c,d){const p={amount:t,targetConf:i,swapRoutingFee:n,minerFee:r,prepayRoutingFee:s,prepayAmt:o,swapFee:a,swapPublicationDeadline:c,destAddress:d};return""!==e&&(p.chanId=e),this.loopUrl=this.CHILD_API_URL+h.N.LOOP_API+"/out",this.httpClient.post(this.loopUrl,p).pipe((0,l.K)(t=>this.handleErrorWithoutAlert("Loop Out for Channel: "+e,u.m6.NO_SPINNER,t)))}getLoopOutTerms(){return this.loopUrl=this.CHILD_API_URL+h.N.LOOP_API+"/out/terms",this.httpClient.get(this.loopUrl).pipe((0,l.K)(t=>this.handleErrorWithoutAlert("Loop Out Terms",u.m6.NO_SPINNER,t)))}getLoopOutQuote(t,e,i){let r=new n.LE;return r=r.append("targetConf",e.toString()),r=r.append("swapPublicationDeadline",i.toString()),this.loopUrl=this.CHILD_API_URL+h.N.LOOP_API+"/out/quote/"+t,this.store.dispatch(new p.Fk(u.m6.GET_QUOTE)),this.httpClient.get(this.loopUrl,{params:r}).pipe((0,a.R)(this.unSubs[1]),(0,c.U)(t=>(this.store.dispatch(new p.Iv(u.m6.GET_QUOTE)),t)),(0,l.K)(t=>this.handleErrorWithoutAlert("Loop Out Quote",u.m6.GET_QUOTE,t)))}getLoopOutTermsAndQuotes(t){let e=new n.LE;return e=e.append("targetConf",t.toString()),e=e.append("swapPublicationDeadline",((new Date).getTime()+18e5).toString()),this.loopUrl=this.CHILD_API_URL+h.N.LOOP_API+"/out/termsAndQuotes",this.store.dispatch(new p.Fk(u.m6.GET_TERMS_QUOTES)),this.httpClient.get(this.loopUrl,{params:e}).pipe((0,a.R)(this.unSubs[2]),(0,c.U)(t=>(this.store.dispatch(new p.Iv(u.m6.GET_TERMS_QUOTES)),t)),(0,l.K)(t=>this.handleErrorWithAlert(u.m6.GET_TERMS_QUOTES,this.loopUrl,t)))}loopIn(t,e,i,n,r){const s={amount:t,swapFee:e,minerFee:i,lastHop:n,externalHtlc:r};return this.loopUrl=this.CHILD_API_URL+h.N.LOOP_API+"/in",this.httpClient.post(this.loopUrl,s).pipe((0,l.K)(t=>this.handleErrorWithoutAlert("Loop In",u.m6.NO_SPINNER,t)))}getLoopInTerms(){return this.loopUrl=this.CHILD_API_URL+h.N.LOOP_API+"/in/terms",this.httpClient.get(this.loopUrl).pipe((0,l.K)(t=>this.handleErrorWithoutAlert("Loop In Terms",u.m6.NO_SPINNER,t)))}getLoopInQuote(t,e,i){let r=new n.LE;return r=r.append("targetConf",e.toString()),r=r.append("swapPublicationDeadline",i.toString()),this.loopUrl=this.CHILD_API_URL+h.N.LOOP_API+"/in/quote/"+t,this.store.dispatch(new p.Fk(u.m6.GET_QUOTE)),this.httpClient.get(this.loopUrl,{params:r}).pipe((0,a.R)(this.unSubs[3]),(0,c.U)(t=>(this.store.dispatch(new p.Iv(u.m6.GET_QUOTE)),t)),(0,l.K)(t=>this.handleErrorWithoutAlert("Loop In Qoute",u.m6.GET_QUOTE,t)))}getLoopInTermsAndQuotes(t){let e=new n.LE;return e=e.append("targetConf",t.toString()),e=e.append("swapPublicationDeadline",((new Date).getTime()+18e5).toString()),this.loopUrl=this.CHILD_API_URL+h.N.LOOP_API+"/in/termsAndQuotes",this.store.dispatch(new p.Fk(u.m6.GET_TERMS_QUOTES)),this.httpClient.get(this.loopUrl,{params:e}).pipe((0,a.R)(this.unSubs[4]),(0,c.U)(t=>(this.store.dispatch(new p.Iv(u.m6.GET_TERMS_QUOTES)),t)),(0,l.K)(t=>this.handleErrorWithAlert(u.m6.GET_TERMS_QUOTES,this.loopUrl,t)))}getSwap(t){return this.loopUrl=this.CHILD_API_URL+h.N.LOOP_API+"/swap/"+t,this.httpClient.get(this.loopUrl).pipe((0,l.K)(e=>this.handleErrorWithoutAlert("Loop Get Swap for ID: "+t,u.m6.NO_SPINNER,e)))}handleErrorWithoutAlert(t,e,i){let n="";return this.logger.error("ERROR IN: "+t+"\n"+JSON.stringify(i)),this.store.dispatch(new p.Iv(e)),401===i.status?(n="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch(new p.RD)):503===i.status?(n="Unable to Connect to Loop Server.",this.store.dispatch(new p.wu({data:{type:"ERROR",alertTitle:"Loop Not Connected",message:{code:i.status,message:"Unable to Connect to Loop Server",URL:t},component:d.H}}))):n=this.commonService.extractErrorMessage(i),(0,o._)(()=>new Error(n))}handleErrorWithAlert(t,e,i){let n="";return this.logger.error(i),this.store.dispatch(new p.Iv(t)),401===i.status?(n="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch(new p.RD)):503===i.status?(n="Unable to Connect to Loop Server.",this.store.dispatch(new p.wu({data:{type:"ERROR",alertTitle:"Loop Not Connected",message:{code:i.status,message:"Unable to Connect to Loop Server",URL:e},component:d.H}}))):(n=this.commonService.extractErrorMessage(i),this.store.dispatch(new p.wu({data:{type:u.n_.ERROR,alertTitle:"ERROR",message:{code:i.error&&i.error.error&&i.error.error.code?i.error.error.code:i.error&&i.error.code?i.error.code:i.code?i.code:i.status,message:n,URL:e},component:d.H}}))),(0,o._)(()=>new Error(n))}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(f.LFG(n.eN),f.LFG(m.mQ),f.LFG(g.yh),f.LFG(y.v))},t.\u0275prov=f.Yz7({token:t,factory:t.\u0275fac}),t})()},3191:(t,e,i)=>{"use strict";i.d(e,{m:()=>s});var n=i(9666),r=i(1572);let s=(()=>{class t{constructor(){this.sessionSub=new n.x}watchSession(){return this.sessionSub.asObservable()}getItem(t){return sessionStorage.getItem(t)}getAllItems(){return sessionStorage}setItem(t,e){sessionStorage.setItem(t,e),this.sessionSub.next(sessionStorage)}removeItem(t){sessionStorage.removeItem(t),this.sessionSub.next(sessionStorage)}clearAll(){sessionStorage.clear(),this.sessionSub.next(sessionStorage)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})()},253:(t,e,i)=>{"use strict";i.d(e,{m:()=>it});var n=i(1511),r=i(6853),s=i(6073),o=i(9063),a=i(7592),l=i(1572),c=i(1463),h=i(377),u=i(3722);i(9861),new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map;let d=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=l.oAB({type:t}),t.\u0275inj=l.cJS({imports:[[c.IR]]}),t})();new l.GfV("12.0.0-beta.34");let p=(()=>{class t{constructor(t,e){(0,n.PM)(e)&&!t&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(e,i=[]){return{ngModule:t,providers:e.serverLoaded?[{provide:c.WU,useValue:Object.assign(Object.assign({},c.g5),e)},{provide:c.Bs,useValue:i,multi:!0},{provide:c.wY,useValue:!0}]:[{provide:c.WU,useValue:Object.assign(Object.assign({},c.g5),e)},{provide:c.Bs,useValue:i,multi:!0}]}}}return t.\u0275fac=function(e){return new(e||t)(l.LFG(c.wY),l.LFG(l.Lbi))},t.\u0275mod=l.oAB({type:t}),t.\u0275inj=l.cJS({imports:[[u.ae,h.aT,d],u.ae,h.aT,d]}),t})();var f=i(72),m=i(1522),g=i(4608),y=i(84),b=i(1050),v=i(5980);i(4230),i(4621);let _=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=l.oAB({type:t}),t.\u0275inj=l.cJS({imports:[[m.BQ,m.si],m.BQ]}),t})();var w=i(7439),x=i(9236),C=i(5812),A=i(5001),S=i(7271),E=i(3691),k=i(6756),T=i(5250),M=i(8055),L=i(3005),I=i(5994),O=i(7806),D=i(4810),R=i(4786),N=i(5122),P=i(7521);i(5842),i(3490),i(1353),i(6042),i(2526);let F=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=l.oAB({type:t}),t.\u0275inj=l.cJS({imports:[[n.ez,m.BQ],m.BQ]}),t})();var Z=i(1403),B=i(2464),U=i(7753),q=i(7033),z=i(5109),H=i(3104),Y=i(6828),G=i(1010),j=i(1905),V=i(3600),Q=i(7038),W=i(369);let J=(()=>{class t extends W.Xj{_createContainer(){const t=document.createElement("div");t.classList.add("cdk-overlay-container"),document.getElementById("rtl-container").appendChild(t),this._containerElement=t}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=l.n5z(t)))(i||t)}}(),t.\u0275prov=l.Yz7({token:t,factory:t.\u0275fac}),t})();var X=i(3869),K=i(9421);const $={suppressScrollX:!1,suppressScrollY:!1};let tt=(()=>{class t extends m.LF{format(t,e){if("input"===e){let e=t.getDate().toString();return e=+e<10?"0"+e:e,e+"/"+K.gg[t.getMonth()].name.toUpperCase()+"/"+t.getFullYear()}return K.gg[t.getMonth()].name.toUpperCase()+" "+t.getFullYear()}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=l.n5z(t)))(i||t)}}(),t.\u0275prov=l.Yz7({token:t,factory:t.\u0275fac}),t})();const et={parse:{dateInput:{day:"numeric",month:"short",year:"numeric"}},display:{dateInput:"input",monthYearLabel:{month:"short",year:"numeric"},dateA11yLabel:{day:"numeric",month:"short",year:"numeric"},monthYearA11yLabel:{month:"short",year:"numeric"}}};let it=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=l.oAB({type:t}),t.\u0275inj=l.cJS({providers:[{provide:X.mQ,useClass:X.LG},{provide:Q.op,useValue:$},{provide:Z.Ve,useValue:{duration:2e3,verticalPosition:"bottom",panelClass:"rtl-snack-bar"}},{provide:g.Bq,useValue:{hasBackdrop:!0,autoFocus:!0,disableClose:!0,role:"dialog",width:"55%"}},{provide:m._A,useClass:tt},{provide:m.sG,useValue:et},{provide:W.Xj,useClass:J},n.JJ,n.rS,n.uU],imports:[[n.ez,s.u5,s.UX,a.uH,p,f.xu,g.Is,v.ot,_,w.QW,x.p9,A.To,S.N6,C.FA,m.XK,E.Ps,k.c,T.ie,M.Tx,I.Cv,O.Cq,D.Fk,G.dp,R.LD,N.SJ,P.rP,B.JX,q.p0,H.g0,Y.AV,b.g,L.TU,U.T5,F,z.Nh,Z.ZX,y.Bb,j.a4,V.N,r.Bz,o.JF,Q.Xd],s.u5,s.UX,a.uH,p,f.xu,g.Is,v.ot,_,w.QW,x.p9,A.To,S.N6,C.FA,m.XK,E.Ps,k.c,T.ie,M.Tx,I.Cv,O.Cq,D.Fk,G.dp,R.LD,N.SJ,P.rP,B.JX,q.p0,H.g0,Y.AV,b.g,L.TU,U.T5,F,z.Nh,Z.ZX,y.Bb,j.a4,V.N,Q.Xd]}),t})()},3929:(t,e,i)=>{"use strict";i.d(e,{Zn:()=>n,SK:()=>r,O3:()=>s,dh:()=>o,VO:()=>a,mm:()=>l,ow:()=>c,S7:()=>h,fW:()=>u,r3:()=>d,yL:()=>p,Vt:()=>f,oO:()=>m,Ih:()=>g,mG:()=>y,vH:()=>b,rZ:()=>v,Ol:()=>_,xh:()=>w,RP:()=>x,Tb:()=>C,zH:()=>A,s3:()=>S,JU:()=>E,ym:()=>k,gK:()=>T,Nv:()=>M,bk:()=>L,Gs:()=>I,bE:()=>O,BQ:()=>D,np:()=>R,Ac:()=>N,Lw:()=>P,Fk:()=>F,Iv:()=>Z,wu:()=>B,YY:()=>U,b_:()=>q,Ws:()=>z,fD:()=>H,Fj:()=>Y,uQ:()=>G,$A:()=>j,XF:()=>V,j_:()=>Q,z2:()=>W,ZG:()=>J,wq:()=>X,e6:()=>K,RD:()=>$,tq:()=>tt,ZF:()=>et,m3:()=>it,nw:()=>nt});const n="VOID",r="UPDATE_SELECTED_NODE_OPTIONS",s="UPDATE_API_CALL_STATUS_ROOT",o="RESET_ROOT_STORE",a="CLOSE_ALL_DIALOGS",l="OPEN_SNACKBAR",c="OPEN_SPINNER",h="CLOSE_SPINNER",u="OPEN_ALERT",d="CLOSE_ALERT",p="OPEN_CONFIRMATION",f="CLOSE_CONFIRMATION",m="SHOW_PUBKEY",g="FETCH_CONFIG",y="SHOW_CONFIG",b="FETCH_RTL_CONFIG",v="SET_RTL_CONFIG",_="SAVE_SETTINGS",w="TWO_FA_SAVE_SETTINGS",x="SET_SELECTED_NODE",C="UPDATE_SERVICE_SETTINGS",A="SET_NODE_DATA",S="IS_AUTHORIZED",E="IS_AUTHORIZED_RES",k="LOGIN",T="VERIFY_TWO_FA",M="LOGOUT",L="RESET_PASSWORD",I="RESET_PASSWORD_RES",O="FETCH_FILE",D="SHOW_FILE";class R{constructor(t){this.payload=t,this.type=s}}class N{constructor(){this.type=a}}class P{constructor(t){this.payload=t,this.type=l}}class F{constructor(t){this.payload=t,this.type=c}}class Z{constructor(t){this.payload=t,this.type=h}}class B{constructor(t){this.payload=t,this.type=u}}class U{constructor(t){this.payload=t,this.type=d}}class q{constructor(t){this.payload=t,this.type=p}}class z{constructor(t){this.payload=t,this.type=f}}class H{constructor(){this.type=m}}class Y{constructor(t){this.payload=t,this.type=g}}class G{constructor(){this.type=r}}class j{constructor(t){this.payload=t,this.type=o}}class V{constructor(){this.type=b}}class Q{constructor(t){this.payload=t,this.type=_}}class W{constructor(t){this.payload=t,this.type=w}}class J{constructor(t){this.payload=t,this.type=x}}class X{constructor(t){this.payload=t,this.type=C}}class K{constructor(t){this.payload=t,this.type=A}}class ${constructor(){this.type=M}}class tt{constructor(t){this.payload=t,this.type=L}}class et{constructor(t){this.payload=t,this.type=S}}class it{constructor(t){this.payload=t,this.type=k}}class nt{constructor(t){this.payload=t,this.type=O}}},8914:(t,e,i)=>{"use strict";i.d(e,{V:()=>oe});var n=i(5573),r=i(9666),s=i(2041),o=i(2391),a=i(6891),l=i(1681),c=i(9056),h=i(5653),u=i(7228),d=i(1816),p=i(9568),f=i(5963),m=i(9421),g=i(4608),y=i(1572),b=i(3722),v=i(7806);let _=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e}}return t.\u0275fac=function(e){return new(e||t)(y.Y36(g.so),y.Y36(g.WI))},t.\u0275cmp=y.Xpm({type:t,selectors:[["rtl-spinner-dialog"]],decls:5,vars:1,consts:[[1,"spinner-container"],["fxLayout","column","fxLayoutAlign","center center",1,"spinner-circle"]],template:function(t,e){1&t&&(y.TgZ(0,"div",0),y.TgZ(1,"div",1),y._UZ(2,"mat-spinner"),y.TgZ(3,"h1"),y._uU(4),y.qZA(),y.qZA(),y.qZA()),2&t&&(y.xp6(4),y.Oqu(e.data.titleMessage))},directives:[b.xw,b.Wh,v.$g],styles:[".spinner-container[_ngcontent-%COMP%]{position:absolute;left:40%;top:35%}"]}),t})();var w=i(3869),x=i(1403),C=i(1084),A=i(1511),S=i(377),E=i(7439),k=i(5980),T=i(3600),M=i(7038),L=i(3691),I=i(6880),O=i(2609),D=i(7679);const R=["scrollContainer"];function N(t,e){if(1&t&&y._UZ(0,"qrcode",15),2&t){const t=y.oxw();y.Q6J("qrdata",t.showQRField)("margin",2)("width",240)("errorCorrectionLevel","L")("allowEmptyString",!0)}}function P(t,e){1&t&&y.GkF(0)}const F=function(t){return{"h-40":t}};function Z(t,e){if(1&t&&(y.ynx(0),y.TgZ(1,"mat-card-content",16,17),y.YNc(3,P,1,0,"ng-container",18),y.qZA(),y.BQk()),2&t){const t=y.oxw(),e=y.MAs(20);y.xp6(1),y.Q6J("ngClass",y.VKq(2,F,t.data.scrollable)),y.xp6(2),y.Q6J("ngTemplateOutlet",e)}}function B(t,e){1&t&&y.GkF(0)}function U(t,e){if(1&t&&(y.ynx(0),y.TgZ(1,"mat-card-content",19),y.YNc(2,B,1,0,"ng-container",18),y.qZA(),y.BQk()),2&t){y.oxw();const t=y.MAs(20);y.xp6(2),y.Q6J("ngTemplateOutlet",t)}}function q(t,e){1&t&&(y.TgZ(0,"mat-icon",23),y._uU(1,"arrow_downward"),y.qZA())}function z(t,e){1&t&&(y.TgZ(0,"mat-icon",23),y._uU(1,"arrow_upward"),y.qZA())}function H(t,e){if(1&t){const t=y.EpF();y.TgZ(0,"div",20),y.TgZ(1,"button",21),y.NdJ("click",function(){return y.CHM(t),y.oxw().onScroll()}),y.YNc(2,q,2,0,"mat-icon",22),y.YNc(3,z,2,0,"mat-icon",22),y.qZA(),y.qZA()}if(2&t){const t=y.oxw();y.xp6(2),y.Q6J("ngIf","DOWN"===t.scrollDirection),y.xp6(1),y.Q6J("ngIf","UP"===t.scrollDirection)}}function Y(t,e){1&t&&(y.TgZ(0,"button",24),y._uU(1,"OK"),y.qZA()),2&t&&y.Q6J("mat-dialog-close",!1)}function G(t,e){1&t&&(y.TgZ(0,"button",25),y._uU(1,"Close"),y.qZA()),2&t&&y.Q6J("mat-dialog-close",!1)}function j(t,e){if(1&t){const t=y.EpF();y.TgZ(0,"button",26),y.NdJ("copied",function(e){return y.CHM(t),y.oxw().onCopyField(e)}),y._uU(1),y.qZA()}if(2&t){const t=y.oxw();y.Q6J("payload",t.showCopyField),y.xp6(1),y.hij("Copy ",t.showCopyName,"")}}function V(t,e){1&t&&(y.TgZ(0,"button",25),y._uU(1,"Close"),y.qZA()),2&t&&y.Q6J("mat-dialog-close",!1)}function Q(t,e){if(1&t){const t=y.EpF();y.TgZ(0,"button",26),y.NdJ("copied",function(e){return y.CHM(t),y.oxw().onCopyField(e)}),y._uU(1),y.qZA()}if(2&t){const t=y.oxw();y.Q6J("payload",t.showQRField),y.xp6(1),y.hij("Copy ",t.showQRName,"")}}function W(t,e){if(1&t&&y._UZ(0,"qrcode",15),2&t){const t=y.oxw(2);y.Q6J("qrdata",t.showQRField)("margin",2)("width",240)("errorCorrectionLevel","L")("allowEmptyString",!0)}}function J(t,e){if(1&t&&(y.TgZ(0,"p",32),y._uU(1),y.qZA()),2&t){const t=y.oxw(2);y.xp6(1),y.Oqu(t.data.titleMessage)}}function X(t,e){1&t&&y._UZ(0,"span",46),2&t&&y.Q6J("innerHTML",e.$implicit,y.oJD)}function K(t,e){if(1&t&&(y.ynx(0),y.YNc(1,X,1,1,"span",45),y.BQk()),2&t){const t=y.oxw(2).$implicit;y.xp6(1),y.Q6J("ngForOf",t.value)}}function $(t,e){if(1&t&&(y.ynx(0),y._uU(1),y.ALo(2,"date"),y.BQk()),2&t){const t=y.oxw(2).$implicit;y.xp6(1),y.Oqu(y.xi3(2,1,1e3*t.value,"dd/MMM/YYYY HH:mm"))}}function tt(t,e){if(1&t&&(y.ynx(0),y._uU(1),y.ALo(2,"number"),y.BQk()),2&t){const t=y.oxw(2).$implicit;y.xp6(1),y.Oqu(y.xi3(2,1,t.value,t.digitsInfo?t.digitsInfo:"1.0-3"))}}function et(t,e){if(1&t&&(y.ynx(0),y._uU(1),y.BQk()),2&t){const t=y.oxw(2).$implicit;y.xp6(1),y.Oqu(t.value?"True":"False")}}function it(t,e){1&t&&(y.TgZ(0,"mat-icon",51),y._uU(1,"info"),y.qZA())}const nt=function(t){return{"failed-status":t}};function rt(t,e){if(1&t&&(y.TgZ(0,"p",49),y._uU(1),y.YNc(2,it,2,0,"mat-icon",50),y.qZA()),2&t){const t=y.oxw(3).$implicit,e=y.oxw(4);y.Q6J("ngClass",y.VKq(3,nt,t.value===e.LoopStateEnum.FAILED)),y.xp6(1),y.hij(" ",t.value," "),y.xp6(1),y.Q6J("ngIf",t.value===e.LoopStateEnum.FAILED)}}function st(t,e){if(1&t&&y._uU(0),2&t){const t=y.oxw(3).$implicit;y.Oqu(t.value)}}function ot(t,e){if(1&t&&(y.ynx(0),y.YNc(1,rt,3,5,"p",47),y.YNc(2,st,1,1,"ng-template",null,48,y.W1O),y.BQk()),2&t){const t=y.MAs(3),e=y.oxw(2).$implicit,i=y.oxw(4);y.xp6(1),y.Q6J("ngIf","SWAP"===i.data.openedBy&&"state"===e.key)("ngIfElse",t)}}function at(t,e){if(1&t&&(y.TgZ(0,"span"),y.TgZ(1,"span",42),y.YNc(2,K,2,1,"ng-container",43),y.YNc(3,$,3,4,"ng-container",43),y.YNc(4,tt,3,4,"ng-container",43),y.YNc(5,et,2,1,"ng-container",43),y.YNc(6,ot,4,2,"ng-container",44),y.qZA(),y.qZA()),2&t){const t=y.oxw().$implicit,e=y.oxw(4);y.xp6(1),y.Q6J("ngSwitch",t.type),y.xp6(1),y.Q6J("ngSwitchCase",e.dataTypeEnum.ARRAY),y.xp6(1),y.Q6J("ngSwitchCase",e.dataTypeEnum.DATE_TIME),y.xp6(1),y.Q6J("ngSwitchCase",e.dataTypeEnum.NUMBER),y.xp6(1),y.Q6J("ngSwitchCase",e.dataTypeEnum.BOOLEAN)}}function lt(t,e){1&t&&(y.TgZ(0,"span",52),y._uU(1,"\xa0"),y.qZA())}function ct(t,e){if(1&t&&(y.TgZ(0,"div",37),y.TgZ(1,"h4",38),y._uU(2),y.qZA(),y.YNc(3,at,7,5,"span",39),y.YNc(4,lt,2,0,"ng-template",null,40,y.W1O),y._UZ(6,"mat-divider",41),y.qZA()),2&t){const t=e.$implicit,i=y.MAs(5);y.s9C("fxFlex.gt-md",t.width),y.xp6(2),y.Oqu(t.title),y.xp6(1),y.Q6J("ngIf",t&&(!!t.value||0===t.value))("ngIfElse",i)}}function ht(t,e){if(1&t&&(y.TgZ(0,"div"),y.TgZ(1,"div",35),y.YNc(2,ct,7,4,"div",36),y.qZA(),y.qZA()),2&t){const t=e.$implicit;y.xp6(2),y.Q6J("ngForOf",t)}}function ut(t,e){if(1&t&&(y.TgZ(0,"div",33),y.YNc(1,ht,3,1,"div",34),y.qZA()),2&t){const t=y.oxw(2);y.xp6(1),y.Q6J("ngForOf",t.messageObjs)}}const dt=function(t){return{"display-none":t}};function pt(t,e){if(1&t&&(y.TgZ(0,"div",27),y.TgZ(1,"div",28),y.YNc(2,W,1,5,"qrcode",2),y.qZA(),y.TgZ(3,"div",29),y.YNc(4,J,2,1,"p",30),y.YNc(5,ut,2,1,"div",31),y.qZA(),y.qZA()),2&t){const t=y.oxw();y.xp6(1),y.Q6J("ngClass",y.VKq(4,dt,""===t.showQRField||t.screenSize!==t.screenSizeEnum.XS&&t.screenSize!==t.screenSizeEnum.SM)),y.xp6(1),y.Q6J("ngIf",""!==t.showQRField),y.xp6(2),y.Q6J("ngIf",t.data.titleMessage),y.xp6(1),y.Q6J("ngIf",(null==t.messageObjs?null:t.messageObjs.length)>0)}}let ft=(()=>{class t{constructor(t,e,i,n,r,s){this.dialogRef=t,this.data=e,this.logger=i,this.snackBar=n,this.commonService=r,this.renderer=s,this.LoopStateEnum=m.Fq,this.showQRField="",this.showQRName="",this.showCopyName="",this.showCopyField="",this.errorMessage="",this.messageObjs=[],this.alertTypeEnum=m.n_,this.dataTypeEnum=m.Gi,this.screenSize="",this.screenSizeEnum=m.cu,this.scrollDirection="DOWN",this.shouldScroll=!0}set container(t){t&&(this.scrollContainer=t,this.scrollContainer&&this.scrollContainer.nativeElement&&(this.unlistenEnd=this.renderer.listen(this.scrollContainer.nativeElement,"ps-y-reach-end",t=>{this.scrollDirection="UP"}),this.unlistenStart=this.renderer.listen(this.scrollContainer.nativeElement,"ps-y-reach-start",t=>{this.scrollDirection="DOWN"})))}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.messageObjs=this.data.message,this.showQRField=this.data.showQRField?this.data.showQRField:"",this.showQRName=this.data.showQRName?this.data.showQRName:"",this.showCopyName=this.data.showCopyName?this.data.showCopyName:"",this.showCopyField=this.data.showCopyField?this.data.showCopyField:"",this.data.type===m.n_.ERROR&&!this.data.message&&!this.data.titleMessage&&this.messageObjs.length<=0&&(this.data.titleMessage="Please Check Server Connection"),this.logger.info(this.messageObjs)}ngAfterViewChecked(){setTimeout(()=>{this.shouldScroll=this.scrollContainer&&this.scrollContainer.nativeElement&&this.scrollContainer.nativeElement.classList.value.includes("ps--active-y")},500)}onScroll(){this.scrollContainer.nativeElement.scrollTop="DOWN"===this.scrollDirection?this.scrollContainer.nativeElement.scrollTop+62.6:this.scrollContainer.nativeElement.scrollTop-62.6}onCopyField(t){this.snackBar.open((this.showQRName?this.showQRName:this.showCopyName)+" copied."),this.logger.info("Copied Text: "+t)}onClose(){this.dialogRef.close(!1)}ngOnDestroy(){this.unlistenStart&&this.unlistenStart(),this.unlistenEnd&&this.unlistenEnd()}}return t.\u0275fac=function(e){return new(e||t)(y.Y36(g.so),y.Y36(g.WI),y.Y36(w.mQ),y.Y36(x.ux),y.Y36(C.v),y.Y36(y.Qsj))},t.\u0275cmp=y.Xpm({type:t,selectors:[["rtl-alert-message"]],viewQuery:function(t,e){if(1&t&&y.Gf(R,5),2&t){let t;y.iGM(t=y.CRH())&&(e.container=t.first)}},decls:21,vars:14,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","30","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap-large",3,"ngClass"],[3,"qrdata","margin","width","errorCorrectionLevel","allowEmptyString",4,"ngIf"],[3,"fxFlex"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","start end","class","btn-sticky-container padding-gap-x-large",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",1,"padding-gap-x-large","padding-gap-bottom-large"],["tabindex","1","autoFocus","","mat-flat-button","","color","primary","type","submit","default","",3,"mat-dialog-close",4,"ngIf"],["class","mr-1","fxLayoutAlign","center center","tabindex","1","mat-stroked-button","","color","primary","type","button","default","",3,"mat-dialog-close",4,"ngIf"],["autoFocus","","mat-flat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["contentBlock",""],[3,"qrdata","margin","width","errorCorrectionLevel","allowEmptyString"],[1,"padding-gap-x-large",3,"perfectScrollbar","ngClass"],["scrollContainer",""],[4,"ngTemplateOutlet"],[1,"padding-gap-x-large"],["fxLayout","row","fxLayoutAlign","start end",1,"btn-sticky-container","padding-gap-x-large"],["mat-mini-fab","","aria-label","Scroll","fxLayoutAlign","center center",3,"click"],["fxLayoutAlign","center center",4,"ngIf"],["fxLayoutAlign","center center"],["tabindex","1","autoFocus","","mat-flat-button","","color","primary","type","submit","default","",3,"mat-dialog-close"],["fxLayoutAlign","center center","tabindex","1","mat-stroked-button","","color","primary","type","button","default","",1,"mr-1",3,"mat-dialog-close"],["autoFocus","","mat-flat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["fxLayout","column"],["fxFlex","50","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap-large","mb-1",3,"ngClass"],["fxLayout","row","fxFlex","100"],["fxLayoutAlign","start center","class","pb-1",4,"ngIf"],["fxFlex","100",4,"ngIf"],["fxLayoutAlign","start center",1,"pb-1"],["fxFlex","100"],[4,"ngFor","ngForOf"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","start center","fxLayoutAlign.gt-md","space-between start"],["fxLayout","column","fxFlex","100",3,"fxFlex.gt-md",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100",3,"fxFlex.gt-md"],["fxLayoutAlign","start",1,"font-bold-500"],[4,"ngIf","ngIfElse"],["emptyField",""],[1,"w-100","my-1"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"foreground-secondary-text",3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["class","display-block w-100",3,"innerHTML",4,"ngFor","ngForOf"],[1,"display-block","w-100",3,"innerHTML"],["fxLayout","row",3,"ngClass",4,"ngIf","ngIfElse"],["noStyleBlock",""],["fxLayout","row",3,"ngClass"],["fxLayoutAlign","end end","class","icon-failed-status",4,"ngIf"],["fxLayoutAlign","end end",1,"icon-failed-status"],["fxFlex","100",1,"foreground-secondary-text"]],template:function(t,e){1&t&&(y.TgZ(0,"div",0),y.TgZ(1,"div",1),y.YNc(2,N,1,5,"qrcode",2),y.qZA(),y.TgZ(3,"div",3),y.TgZ(4,"mat-card-header",4),y.TgZ(5,"div",5),y.TgZ(6,"span",6),y._uU(7),y.qZA(),y.qZA(),y.TgZ(8,"button",7),y.NdJ("click",function(){return e.onClose()}),y._uU(9,"X"),y.qZA(),y.qZA(),y.YNc(10,Z,4,4,"ng-container",8),y.YNc(11,U,3,1,"ng-container",8),y.YNc(12,H,4,2,"div",9),y.TgZ(13,"div",10),y.YNc(14,Y,2,1,"button",11),y.YNc(15,G,2,1,"button",12),y.YNc(16,j,2,2,"button",13),y.YNc(17,V,2,1,"button",12),y.YNc(18,Q,2,2,"button",13),y.qZA(),y.qZA(),y.qZA(),y.YNc(19,pt,6,6,"ng-template",null,14,y.W1O)),2&t&&(y.xp6(1),y.Q6J("ngClass",y.VKq(12,dt,""===e.showQRField||e.screenSize===e.screenSizeEnum.XS||e.screenSize===e.screenSizeEnum.SM)),y.xp6(1),y.Q6J("ngIf",""!==e.showQRField),y.xp6(1),y.Q6J("fxFlex",""===e.showQRField||e.screenSize===e.screenSizeEnum.XS||e.screenSize===e.screenSizeEnum.SM?"100":"70"),y.xp6(4),y.Oqu(e.data.alertTitle||e.alertTypeEnum[e.data.type]),y.xp6(3),y.Q6J("ngIf",e.data.scrollable),y.xp6(1),y.Q6J("ngIf",!e.data.scrollable),y.xp6(1),y.Q6J("ngIf",e.data.scrollable&&e.shouldScroll),y.xp6(2),y.Q6J("ngIf",(!e.showQRField||""===e.showQRField)&&""===e.showCopyName),y.xp6(1),y.Q6J("ngIf",""!==e.showCopyName),y.xp6(1),y.Q6J("ngIf",""!==e.showCopyName),y.xp6(1),y.Q6J("ngIf",""!==e.showQRField),y.xp6(1),y.Q6J("ngIf",""!==e.showQRField))},directives:[b.xw,b.Wh,b.yH,A.mk,S.oO,A.O5,E.dk,k.lW,T.V,E.dn,M.$V,A.tP,L.Hw,I.h,g.ZT,O.y,A.sg,D.d,A.RF,A.n9,A.ED],pipes:[A.uU,A.JJ],styles:[".display-block[_ngcontent-%COMP%]{display:block}"]}),t})();var mt=i(5291),gt=i(3929),yt=i(964),bt=i(6073),vt=i(7592),_t=i(6283),wt=i(6756),xt=i(5095);function Ct(t,e){if(1&t&&(y.TgZ(0,"div",17),y._UZ(1,"fa-icon",18),y.TgZ(2,"span"),y._uU(3),y.qZA(),y.qZA()),2&t){const t=y.oxw();y.xp6(1),y.Q6J("icon",t.faExclamationTriangle),y.xp6(2),y.Oqu(t.warningMessage)}}function At(t,e){if(1&t&&(y.TgZ(0,"div",19),y._UZ(1,"fa-icon",18),y.TgZ(2,"span"),y._uU(3),y.qZA(),y.qZA()),2&t){const t=y.oxw();y.xp6(1),y.Q6J("icon",t.faInfoCircle),y.xp6(2),y.Oqu(t.informationMessage)}}function St(t,e){if(1&t&&(y.TgZ(0,"p",20),y._uU(1),y.qZA()),2&t){const t=y.oxw();y.xp6(1),y.Oqu(t.data.titleMessage)}}function Et(t,e){if(1&t&&(y.TgZ(0,"span",33),y._uU(1),y.qZA()),2&t){const t=e.$implicit;y.xp6(1),y.Oqu(t)}}function kt(t,e){if(1&t&&(y.ynx(0),y.YNc(1,Et,2,1,"span",32),y.BQk()),2&t){const t=y.oxw(2).$implicit;y.xp6(1),y.Q6J("ngForOf",t.value)}}function Tt(t,e){if(1&t&&(y.ynx(0),y._uU(1),y.ALo(2,"date"),y.BQk()),2&t){const t=y.oxw(2).$implicit;y.xp6(1),y.Oqu(y.xi3(2,1,1e3*t.value,"dd/MMM/YYYY HH:mm"))}}function Mt(t,e){if(1&t&&(y.ynx(0),y._uU(1),y.ALo(2,"number"),y.BQk()),2&t){const t=y.oxw(2).$implicit;y.xp6(1),y.Oqu(y.xi3(2,1,t.value,"1.0-3"))}}function Lt(t,e){if(1&t&&(y.ynx(0),y._uU(1),y.BQk()),2&t){const t=y.oxw(2).$implicit;y.xp6(1),y.Oqu(!0===t.value?"True":"False")}}function It(t,e){if(1&t&&(y.ynx(0),y._uU(1),y.BQk()),2&t){const t=y.oxw(2).$implicit;y.xp6(1),y.Oqu(t.value)}}function Ot(t,e){if(1&t&&(y.TgZ(0,"span"),y.TgZ(1,"span",29),y.YNc(2,kt,2,1,"ng-container",30),y.YNc(3,Tt,3,4,"ng-container",30),y.YNc(4,Mt,3,4,"ng-container",30),y.YNc(5,Lt,2,1,"ng-container",30),y.YNc(6,It,2,1,"ng-container",31),y.qZA(),y.qZA()),2&t){const t=y.oxw().$implicit,e=y.oxw(3);y.xp6(1),y.Q6J("ngSwitch",t.type),y.xp6(1),y.Q6J("ngSwitchCase",e.dataTypeEnum.ARRAY),y.xp6(1),y.Q6J("ngSwitchCase",e.dataTypeEnum.DATE_TIME),y.xp6(1),y.Q6J("ngSwitchCase",e.dataTypeEnum.NUMBER),y.xp6(1),y.Q6J("ngSwitchCase",e.dataTypeEnum.BOOLEAN)}}function Dt(t,e){1&t&&(y.TgZ(0,"span",34),y._uU(1,"\xa0"),y.qZA())}function Rt(t,e){if(1&t&&(y.TgZ(0,"div",24),y.TgZ(1,"h4",25),y._uU(2),y.qZA(),y.YNc(3,Ot,7,5,"span",26),y.YNc(4,Dt,2,0,"ng-template",null,27,y.W1O),y._UZ(6,"mat-divider",28),y.qZA()),2&t){const t=e.$implicit,i=y.MAs(5);y.s9C("fxFlex.gt-md",t.width),y.xp6(2),y.Oqu(t.title),y.xp6(1),y.Q6J("ngIf",t&&t.value)("ngIfElse",i)}}function Nt(t,e){if(1&t&&(y.TgZ(0,"div"),y.TgZ(1,"div",22),y.YNc(2,Rt,7,4,"div",23),y.qZA(),y.qZA()),2&t){const t=e.$implicit;y.xp6(2),y.Q6J("ngForOf",t)}}function Pt(t,e){if(1&t&&(y.TgZ(0,"div"),y.YNc(1,Nt,3,1,"div",21),y.qZA()),2&t){const t=y.oxw();y.xp6(1),y.Q6J("ngForOf",t.messageObjs)}}function Ft(t,e){if(1&t&&(y.TgZ(0,"p",20),y._uU(1),y.qZA()),2&t){const t=y.oxw(2);y.xp6(1),y.Oqu(t.data.titleMessage)}}function Zt(t,e){if(1&t){const t=y.EpF();y.TgZ(0,"input",41),y.NdJ("ngModelChange",function(e){return y.CHM(t),y.oxw().$implicit.inputValue=e}),y.ALo(1,"lowercase"),y.qZA()}if(2&t){const t=y.oxw(),e=t.index,i=t.$implicit;y.MGl("name","input",e,""),y.Q6J("placeholder",i.placeholder)("min",i.min)("step",i.step)("type",y.lcZ(1,7,i.inputType))("ngModel",i.inputValue)("tabindex",e+1)}}function Bt(t,e){if(1&t){const t=y.EpF();y.TgZ(0,"input",42),y.NdJ("ngModelChange",function(e){return y.CHM(t),y.oxw().$implicit.inputValue=e}),y.ALo(1,"lowercase"),y.qZA()}if(2&t){const t=y.oxw(),e=t.index,i=t.$implicit;y.MGl("name","input",e,""),y.Q6J("placeholder",i.placeholder)("min",i.min)("step",i.step)("type",y.lcZ(1,7,i.inputType))("ngModel",i.inputValue)("tabindex",e+1)}}function Ut(t,e){if(1&t&&(y.TgZ(0,"mat-error"),y._uU(1),y.qZA()),2&t){const t=y.oxw().$implicit;y.xp6(1),y.hij("",t.placeholder," is required.")}}function qt(t,e){if(1&t&&(y.TgZ(0,"mat-form-field",38),y.YNc(1,Zt,2,9,"input",39),y.YNc(2,Bt,2,9,"input",40),y.YNc(3,Ut,2,1,"mat-error",11),y.TgZ(4,"mat-hint"),y._uU(5),y.qZA(),y.qZA()),2&t){const t=e.$implicit,i=e.index;y.Q6J("fxFlex",t.width),y.xp6(1),y.Q6J("ngIf",0===i),y.xp6(1),y.Q6J("ngIf",0!==i),y.xp6(1),y.Q6J("ngIf",!t.inputValue),y.xp6(2),y.Oqu(t.hintFunction?t.hintFunction(t.inputValue):t.hintText)}}function zt(t,e){if(1&t&&(y.TgZ(0,"div",35),y.YNc(1,Ft,2,1,"p",10),y.TgZ(2,"div",36),y.YNc(3,qt,6,5,"mat-form-field",37),y.qZA(),y.qZA()),2&t){const t=y.oxw();y.xp6(1),y.Q6J("ngIf",t.data.titleMessage),y.xp6(2),y.Q6J("ngForOf",t.getInputs)}}function Ht(t,e){if(1&t){const t=y.EpF();y.TgZ(0,"button",43),y.NdJ("click",function(){y.CHM(t);const e=y.oxw();return e.onClose(e.getInputs)}),y._uU(1),y.qZA()}if(2&t){const t=y.oxw();y.xp6(1),y.Oqu(t.yesBtnText)}}function Yt(t,e){if(1&t){const t=y.EpF();y.TgZ(0,"button",44),y.NdJ("click",function(){return y.CHM(t),y.oxw().onClose(!0)}),y._uU(1),y.qZA()}if(2&t){const t=y.oxw();y.xp6(1),y.Oqu(t.yesBtnText)}}let Gt=(()=>{class t{constructor(t,e,i,n){this.dialogRef=t,this.data=e,this.logger=i,this.store=n,this.faInfoCircle=mt.sqG,this.faExclamationTriangle=mt.eHv,this.informationMessage="",this.warningMessage="",this.noBtnText="No",this.yesBtnText="Yes",this.messageObjs=[],this.flgShowInput=!1,this.alertTypeEnum=m.n_,this.dataTypeEnum=m.Gi,this.getInputs=[{placeholder:"",inputType:"text",inputValue:"",hintText:"",hintFunction:null}]}ngOnInit(){this.informationMessage=this.data.informationMessage,this.warningMessage=this.data.warningMessage,this.flgShowInput=this.data.flgShowInput,this.getInputs=this.data.getInputs,this.noBtnText=this.data.noBtnText?this.data.noBtnText:"No",this.yesBtnText=this.data.yesBtnText?this.data.yesBtnText:"Yes",this.messageObjs=this.data.message,this.data.type===m.n_.ERROR&&!this.data.message&&!this.data.titleMessage&&this.messageObjs.length<=0&&(this.data.titleMessage="Please Check Server Connection")}onClose(t){if(t&&this.getInputs&&this.getInputs.some(t=>!t.inputValue))return!0;this.store.dispatch(new gt.Ws(t))}}return t.\u0275fac=function(e){return new(e||t)(y.Y36(g.so),y.Y36(g.WI),y.Y36(w.mQ),y.Y36(yt.yh))},t.\u0275cmp=y.Xpm({type:t,selectors:[["rtl-confirmation-message"]],decls:20,vars:9,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],["fxFlex","100","class","alert alert-warn",4,"ngIf"],["fxFlex","100","class","alert alert-info",4,"ngIf"],["fxLayoutAlign","start center","class","pb-1",4,"ngIf"],[4,"ngIf"],["fxLayout","column","class","bordered-box my-2 p-2",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","reset","tabindex","2",1,"mr-1",3,"click"],["autoFocus","","mat-flat-button","","color","primary","type","submit","tabindex","3","default","",3,"click",4,"ngIf"],["autoFocus","","mat-flat-button","","color","primary","type","submit","tabindex","4","default","",3,"click",4,"ngIf"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["fxFlex","100",1,"alert","alert-info"],["fxLayoutAlign","start center",1,"pb-1"],[4,"ngFor","ngForOf"],["fxLayout","row wrap","fxLayoutAlign","start center","fxLayoutAlign.gt-md","space-between start"],["fxLayout","column","fxFlex","100",3,"fxFlex.gt-md",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100",3,"fxFlex.gt-md"],["fxLayoutAlign","start",1,"font-bold-500"],[4,"ngIf","ngIfElse"],["emptyField",""],[1,"w-100","my-1"],[1,"foreground-secondary-text",3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["class","display-block",4,"ngFor","ngForOf"],[1,"display-block"],["fxFlex","100",1,"foreground-secondary-text"],["fxLayout","column",1,"bordered-box","my-2","p-2"],["fxLayoutAlign","space-between center"],[3,"fxFlex",4,"ngFor","ngForOf"],[3,"fxFlex"],["autoFocus","","matInput","","required","",3,"placeholder","name","min","step","type","ngModel","tabindex","ngModelChange",4,"ngIf"],["matInput","","required","",3,"placeholder","name","min","step","type","ngModel","tabindex","ngModelChange",4,"ngIf"],["autoFocus","","matInput","","required","",3,"placeholder","name","min","step","type","ngModel","tabindex","ngModelChange"],["matInput","","required","",3,"placeholder","name","min","step","type","ngModel","tabindex","ngModelChange"],["autoFocus","","mat-flat-button","","color","primary","type","submit","tabindex","3","default","",3,"click"],["autoFocus","","mat-flat-button","","color","primary","type","submit","tabindex","4","default","",3,"click"]],template:function(t,e){1&t&&(y.TgZ(0,"div",0),y.TgZ(1,"div",1),y.TgZ(2,"mat-card-header",2),y.TgZ(3,"div",3),y.TgZ(4,"span",4),y._uU(5),y.qZA(),y.qZA(),y.TgZ(6,"button",5),y.NdJ("click",function(){return e.onClose(!1)}),y._uU(7,"X"),y.qZA(),y.qZA(),y.TgZ(8,"mat-card-content",6),y.TgZ(9,"form",7),y.YNc(10,Ct,4,2,"div",8),y.YNc(11,At,4,2,"div",9),y.YNc(12,St,2,1,"p",10),y.YNc(13,Pt,2,1,"div",11),y.YNc(14,zt,4,2,"div",12),y.TgZ(15,"div",13),y.TgZ(16,"button",14),y.NdJ("click",function(){return e.onClose(!1)}),y._uU(17),y.qZA(),y.YNc(18,Ht,2,1,"button",15),y.YNc(19,Yt,2,1,"button",16),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.qZA()),2&t&&(y.xp6(5),y.Oqu(e.data.alertTitle||e.alertTypeEnum[e.data.type]),y.xp6(5),y.Q6J("ngIf",e.warningMessage&&""!==e.warningMessage),y.xp6(1),y.Q6J("ngIf",e.informationMessage&&""!==e.informationMessage),y.xp6(1),y.Q6J("ngIf",e.data.titleMessage&&!e.flgShowInput),y.xp6(1),y.Q6J("ngIf",(null==e.messageObjs?null:e.messageObjs.length)>0),y.xp6(1),y.Q6J("ngIf",e.flgShowInput),y.xp6(3),y.Oqu(e.noBtnText),y.xp6(1),y.Q6J("ngIf",e.flgShowInput),y.xp6(1),y.Q6J("ngIf",!e.flgShowInput))},directives:[b.xw,b.yH,E.dk,b.Wh,k.lW,E.dn,bt._Y,bt.JL,bt.F,A.O5,vt.BN,A.sg,D.d,A.RF,A.n9,A.ED,_t.KE,_t.bx,wt.Nt,xt.q,bt.Fj,I.h,bt.Q7,bt.JJ,bt.On,_t.TO],pipes:[A.uU,A.JJ,A.i8],styles:[""]}),t})();var jt=i(2427),Vt=i(4786),Qt=i(1522);function Wt(t,e){if(1&t&&(y.TgZ(0,"mat-option",23),y._uU(1),y.qZA()),2&t){const t=e.$implicit;y.Q6J("value",t),y.xp6(1),y.hij(" ",t.infoName," ")}}function Jt(t,e){if(1&t){const t=y.EpF();y.TgZ(0,"div",13),y.TgZ(1,"mat-form-field",20),y.TgZ(2,"mat-select",21),y.NdJ("valueChange",function(e){return y.CHM(t),y.oxw().selInfoType=e}),y.YNc(3,Wt,2,2,"mat-option",22),y.qZA(),y.qZA(),y.qZA()}if(2&t){const t=y.oxw();y.xp6(2),y.Q6J("value",t.selInfoType),y.xp6(1),y.Q6J("ngForOf",t.infoTypes)}}const Xt=function(t){return{"display-none":t}};let Kt=(()=>{class t{constructor(t,e,i,n,r){this.dialogRef=t,this.data=e,this.logger=i,this.snackBar=n,this.commonService=r,this.faReceipt=mt.dLy,this.infoTypes=[{infoID:0,infoKey:"node pubkey",infoName:"Node pubkey"}],this.selInfoType=this.infoTypes[0],this.qrWidth=210,this.screenSize="",this.screenSizeEnum=m.cu}ngOnInit(){this.information=this.data.information,this.information.uris&&(1===this.information.uris.length?this.infoTypes.push({infoID:1,infoKey:"node URI",infoName:"Node URI"}):this.information.uris.length>1&&this.information.uris.forEach((t,e)=>{this.infoTypes.push({infoID:e+1,infoKey:"node URI "+(e+1),infoName:"Node URI "+(e+1)})})),this.screenSize=this.commonService.getScreenSize()}onClose(){this.dialogRef.close(!1)}onCopyPubkey(t){this.snackBar.open(this.selInfoType.infoName+" copied."),this.logger.info("Copied Text: "+t)}}return t.\u0275fac=function(e){return new(e||t)(y.Y36(g.so),y.Y36(g.WI),y.Y36(w.mQ),y.Y36(x.ux),y.Y36(C.v))},t.\u0275cmp=y.Xpm({type:t,selectors:[["rtl-show-pubkey"]],decls:26,vars:23,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","30","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap-large",3,"ngClass"],[3,"qrdata","margin","width","errorCorrectionLevel","allowEmptyString"],["fxFlex","100","fxFlex.gt-sm","70"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],["fxFlex","50","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap-large",3,"ngClass"],["fxLayout","row",4,"ngIf"],["fxLayout","row"],["fxFlex","100"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"w-100","my-1"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-2"],["autoFocus","","mat-flat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["fxFlex","100","fxFlex.gt-sm","40","fxLayoutAlign","start end"],["tabindex","1",3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(t,e){1&t&&(y.TgZ(0,"div",0),y.TgZ(1,"div",1),y._UZ(2,"qrcode",2),y.qZA(),y.TgZ(3,"div",3),y.TgZ(4,"mat-card-header",4),y.TgZ(5,"div",5),y._UZ(6,"fa-icon",6),y.TgZ(7,"span",7),y._uU(8),y.qZA(),y.qZA(),y.TgZ(9,"button",8),y.NdJ("click",function(){return e.onClose()}),y._uU(10,"X"),y.qZA(),y.qZA(),y.TgZ(11,"mat-card-content",9),y.TgZ(12,"div",10),y.TgZ(13,"div",11),y._UZ(14,"qrcode",2),y.qZA(),y.YNc(15,Jt,4,2,"div",12),y.TgZ(16,"div",13),y.TgZ(17,"div",14),y.TgZ(18,"h4",15),y._uU(19),y.qZA(),y.TgZ(20,"span",16),y._uU(21),y.qZA(),y.qZA(),y.qZA(),y._UZ(22,"mat-divider",17),y.TgZ(23,"div",18),y.TgZ(24,"button",19),y.NdJ("copied",function(t){return e.onCopyPubkey(t)}),y._uU(25),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.qZA()),2&t&&(y.xp6(1),y.Q6J("ngClass",y.VKq(19,Xt,e.screenSize===e.screenSizeEnum.XS||e.screenSize===e.screenSizeEnum.SM)),y.xp6(1),y.s9C("qrdata",0===e.selInfoType.infoID?e.information.identity_pubkey:e.information.uris[e.selInfoType.infoID-1]),y.Q6J("margin",2)("width",e.qrWidth)("errorCorrectionLevel","L")("allowEmptyString",!0),y.xp6(4),y.Q6J("icon",e.faReceipt),y.xp6(2),y.Oqu(e.selInfoType.infoName),y.xp6(5),y.Q6J("ngClass",y.VKq(21,Xt,e.screenSize!==e.screenSizeEnum.XS&&e.screenSize!==e.screenSizeEnum.SM)),y.xp6(1),y.s9C("qrdata",0===e.selInfoType.infoID?e.information.identity_pubkey:e.information.uris[e.selInfoType.infoID-1]),y.Q6J("margin",2)("width",e.qrWidth)("errorCorrectionLevel","L")("allowEmptyString",!0),y.xp6(1),y.Q6J("ngIf",e.information.uris&&e.information.uris.length>0),y.xp6(4),y.Oqu(e.selInfoType.infoName),y.xp6(2),y.Oqu(0===e.selInfoType.infoID?e.information.identity_pubkey:e.information.uris[e.selInfoType.infoID-1]),y.xp6(3),y.s9C("payload",0===e.selInfoType.infoID?e.information.identity_pubkey:e.information.uris[e.selInfoType.infoID-1]),y.xp6(1),y.hij("Copy ",e.selInfoType.infoKey,""))},directives:[b.xw,b.Wh,b.yH,A.mk,S.oO,T.V,E.dk,vt.BN,k.lW,E.dn,A.O5,D.d,I.h,O.y,_t.KE,Vt.gD,A.sg,Qt.ey],styles:[""]}),t})();var $t=i(6124),te=i(9939),ee=i(5678),ie=i(9063),ne=i(3191),re=i(3556),se=i(6853);let oe=(()=>{class t{constructor(t,e,i,g,y,b,v,w,x,C){this.actions=t,this.httpClient=e,this.store=i,this.logger=g,this.sessionService=y,this.commonService=b,this.dataService=v,this.dialog=w,this.snackBar=x,this.router=C,this.screenSize="",this.alertWidth="55%",this.confirmWidth="70%",this.unSubs=[new r.x,new r.x],this.closeAllDialogs=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(gt.VO),(0,l.U)(t=>{this.dialog.closeAll()})),{dispatch:!1}),this.openSnackBar=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(gt.mm),(0,l.U)(t=>{"string"==typeof t.payload?this.snackBar.open(t.payload):this.snackBar.open(t.payload.message,"","ERROR"===t.payload.type?{duration:t.payload.duration?t.payload.duration:2e3,panelClass:"rtl-warn-snack-bar"}:"WARN"===t.payload.type?{duration:t.payload.duration?t.payload.duration:2e3,panelClass:"rtl-accent-snack-bar"}:{duration:t.payload.duration?t.payload.duration:2e3,panelClass:"rtl-snack-bar"})})),{dispatch:!1}),this.openSpinner=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(gt.ow),(0,l.U)(t=>{t.payload!==m.m6.NO_SPINNER&&(this.dialogRef=this.dialog.open(_,{data:{titleMessage:t.payload}}))})),{dispatch:!1}),this.closeSpinner=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(gt.S7),(0,l.U)(t=>{if(t.payload!==m.m6.NO_SPINNER)try{this.dialogRef&&this.dialogRef.componentInstance&&this.dialogRef.componentInstance.data&&this.dialogRef.componentInstance.data.titleMessage&&this.dialogRef.componentInstance.data.titleMessage===t.payload?this.dialogRef.close():this.dialog.openDialogs.forEach(e=>{e.componentInstance&&e.componentInstance.data&&e.componentInstance.data.titleMessage&&e.componentInstance.data.titleMessage===t.payload&&e.close()})}catch(e){this.logger.error(e)}})),{dispatch:!1}),this.openAlert=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(gt.fW),(0,l.U)(t=>{t.payload.width=this.alertWidth,this.dialogRef=this.dialog.open(t.payload.data.component?t.payload.data.component:ft,t.payload)})),{dispatch:!1}),this.closeAlert=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(gt.r3),(0,l.U)(t=>(this.dialogRef&&this.dialogRef.close(),t.payload))),{dispatch:!1}),this.openConfirm=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(gt.yL),(0,l.U)(t=>{t.payload.width=this.confirmWidth,this.dialogRef=this.dialog.open(Gt,t.payload)})),{dispatch:!1}),this.closeConfirm=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(gt.Vt),(0,c.q)(1),(0,l.U)(t=>(this.dialogRef&&this.dialogRef.close(),this.logger.info(t.payload),t.payload))),{dispatch:!1}),this.showNodePubkey=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(gt.oO),(0,h.M)(this.store.select("root")),(0,u.z)(([t,e])=>(this.sessionService.getItem("token")&&e.nodeData.identity_pubkey?this.store.dispatch(new gt.wu({width:"70%",data:{information:e.nodeData,component:Kt}})):this.snackBar.open("Node Pubkey does not exist."),(0,s.of)({type:gt.Zn}))))),this.appConfigFetch=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(gt.vH),(0,u.z)(t=>(this.screenSize=this.commonService.getScreenSize(),this.screenSize===m.cu.XS||this.screenSize===m.cu.SM?(this.alertWidth="95%",this.confirmWidth="95%"):this.screenSize===m.cu.MD?(this.alertWidth="80%",this.confirmWidth="80%"):(this.alertWidth="55%",this.confirmWidth="60%"),this.store.dispatch(new gt.Fk(m.m6.GET_RTL_CONFIG)),this.store.dispatch(new gt.np({action:"FetchRTLConfig",status:m.Bn.INITIATED})),this.sessionService.getItem("token")?this.httpClient.get(f.N.CONF_API+"/rtlconf"):this.httpClient.get(f.N.CONF_API+"/rtlconfinit"))),(0,l.U)(t=>{let e;return this.logger.info(t),this.store.dispatch(new gt.Iv(m.m6.GET_RTL_CONFIG)),this.store.dispatch(new gt.np({action:"FetchRTLConfig",status:m.Bn.COMPLETED})),t.nodes.forEach(i=>{i.settings.currencyUnits=[...m.uA,i.settings.currencyUnit],+i.index===t.selectedNodeIndex&&(e=i)}),e?(this.store.dispatch(new gt.ZG({uiMessage:m.m6.NO_SPINNER,lnNode:e,isInitialSetup:!0})),{type:gt.rZ,payload:t}):{type:gt.Zn}}),(0,d.K)(t=>(this.handleErrorWithoutAlert("FetchRTLConfig",m.m6.GET_RTL_CONFIG,t),(0,s.of)({type:gt.Zn}))))),this.settingSave=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(gt.Ol),(0,u.z)(t=>{this.store.dispatch(new gt.Fk(t.payload.uiMessage)),this.store.dispatch(new gt.np({action:"UpdateSettings",status:m.Bn.INITIATED}));let e=new o.y;if(t.payload.settings&&t.payload.defaultNodeIndex){const i=this.httpClient.post(f.N.CONF_API,{updatedSettings:t.payload.settings}),n=this.httpClient.post(f.N.CONF_API+"/updateDefaultNode",{defaultNodeIndex:t.payload.defaultNodeIndex});e=(0,a.D)([i,n])}else t.payload.settings&&!t.payload.defaultNodeIndex?e=this.httpClient.post(f.N.CONF_API,{updatedSettings:t.payload.settings}):!t.payload.settings&&t.payload.defaultNodeIndex&&(e=this.httpClient.post(f.N.CONF_API+"/updateDefaultNode",{defaultNodeIndex:t.payload.defaultNodeIndex}));return e.pipe((0,l.U)(e=>(this.logger.info(e),this.store.dispatch(new gt.np({action:"UpdateSettings",status:m.Bn.COMPLETED})),this.store.dispatch(new gt.Iv(t.payload.uiMessage)),{type:gt.mm,payload:e.length?e[0].message+".":e.message+"."})),(0,d.K)(e=>(this.handleErrorWithAlert("UpdateSettings",t.payload.uiMessage,"Update Settings Failed!",f.N.CONF_API,e.length?e[0]:e),(0,s.of)({type:gt.Zn}))))}))),this.updateServicesettings=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(gt.Tb),(0,u.z)(t=>(this.store.dispatch(new gt.Fk(t.payload.uiMessage)),this.store.dispatch(new gt.np({action:"UpdateServiceSettings",status:m.Bn.INITIATED})),this.httpClient.post(f.N.CONF_API+"/updateServiceSettings",t.payload).pipe((0,l.U)(e=>(this.logger.info(e),this.store.dispatch(new gt.np({action:"UpdateServiceSettings",status:m.Bn.COMPLETED})),this.store.dispatch(new gt.Iv(t.payload.uiMessage)),{type:gt.mm,payload:e.message+"."})),(0,d.K)(e=>(this.handleErrorWithAlert("UpdateServiceSettings",t.payload.uiMessage,"Update Service Settings Failed!",f.N.CONF_API,e),(0,s.of)({type:gt.Zn})))))))),this.twoFASettingSave=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(gt.xh),(0,u.z)(t=>(this.store.dispatch(new gt.Fk(m.m6.UPDATE_UI_SETTINGS)),this.store.dispatch(new gt.np({action:"Update2FASettings",status:m.Bn.INITIATED})),this.httpClient.post(f.N.CONF_API+"/update2FA",{secret2fa:t.payload.secret2fa}))),(0,l.U)(t=>(this.logger.info(t),this.store.dispatch(new gt.np({action:"Update2FASettings",status:m.Bn.COMPLETED})),this.store.dispatch(new gt.Iv(m.m6.UPDATE_UI_SETTINGS)),{type:gt.Zn})),(0,d.K)(t=>(this.handleErrorWithAlert("Update2FASettings",m.m6.UPDATE_UI_SETTINGS,"Update 2FA Settings Failed!",f.N.CONF_API,t),(0,s.of)({type:gt.Zn}))))),this.configFetch=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(gt.Ih),(0,u.z)(t=>(this.store.dispatch(new gt.Fk(m.m6.OPEN_CONFIG_FILE)),this.store.dispatch(new gt.np({action:"fetchConfig",status:m.Bn.INITIATED})),this.httpClient.get(f.N.CONF_API+"/config/"+t.payload).pipe((0,l.U)(t=>(this.store.dispatch(new gt.np({action:"fetchConfig",status:m.Bn.COMPLETED})),this.store.dispatch(new gt.Iv(m.m6.OPEN_CONFIG_FILE)),{type:gt.mG,payload:t})),(0,d.K)(e=>(this.handleErrorWithAlert("fetchConfig",m.m6.OPEN_CONFIG_FILE,"Fetch Config Failed!",f.N.CONF_API+"/config/"+t.payload,e),(0,s.of)({type:gt.Zn})))))))),this.showLnConfig=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(gt.mG),(0,l.U)(t=>t.payload)),{dispatch:!1}),this.isAuthorized=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(gt.s3),(0,h.M)(this.store.select("root")),(0,u.z)(([t,e])=>(this.store.dispatch(new gt.np({action:"IsAuthorized",status:m.Bn.INITIATED})),this.httpClient.post(f.N.AUTHENTICATE_API,{authenticateWith:t.payload&&""!==t.payload.trim()?m.OJ.PASSWORD:m.OJ.JWT,authenticationValue:t.payload&&""!==t.payload.trim()?t.payload:this.sessionService.getItem("token")?this.sessionService.getItem("token"):""}).pipe((0,l.U)(t=>(this.logger.info(t),this.store.dispatch(new gt.np({action:"IsAuthorized",status:m.Bn.COMPLETED})),this.logger.info("Successfully Authorized!"),{type:gt.JU,payload:t})),(0,d.K)(t=>(this.handleErrorWithAlert("IsAuthorized",m.m6.NO_SPINNER,"Authorization Failed",f.N.AUTHENTICATE_API,t),(0,s.of)({type:gt.JU,payload:"ERROR"})))))))),this.isAuthorizedRes=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(gt.JU),(0,l.U)(t=>t.payload)),{dispatch:!1}),this.authLogin=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(gt.ym),(0,h.M)(this.store.select("root")),(0,u.z)(([t,e])=>(this.store.dispatch(new ee.Mo({})),this.store.dispatch(new te.UA({})),this.store.dispatch(new $t.IF({})),this.store.dispatch(new gt.np({action:"Login",status:m.Bn.INITIATED})),this.httpClient.post(f.N.AUTHENTICATE_API,{authenticateWith:t.payload.password?m.OJ.PASSWORD:m.OJ.JWT,authenticationValue:t.payload.password?t.payload.password:this.sessionService.getItem("token")?this.sessionService.getItem("token"):"",twoFAToken:t.payload.twoFAToken?t.payload.twoFAToken:""}).pipe((0,l.U)(i=>{this.logger.info(i),this.store.dispatch(new gt.np({action:"Login",status:m.Bn.COMPLETED})),this.setLoggedInDetails(t.payload.defaultPassword,i,e)}),(0,d.K)(t=>(this.logger.info("Redirecting to Login Error Page"),0===t.status&&t.statusText&&"Unknown Error"===t.statusText&&(t.status="400",t.error.error="Origin Not Allowed"),this.handleErrorWithoutAlert("Login",m.m6.NO_SPINNER,t),+e.appConfig.sso.rtlSSO?this.router.navigate(["/error"],{state:{errorCode:"406",errorMessage:t.error&&t.error.error?t.error.error:"Single Sign On Failed!"}}):this.router.navigate(["./login"]),(0,s.of)({type:gt.Zn}))))))),{dispatch:!1}),this.tokenVerify=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(gt.gK),(0,h.M)(this.store.select("root")),(0,u.z)(([t,e])=>(this.store.dispatch(new gt.Fk(m.m6.VERIFY_TOKEN)),this.store.dispatch(new gt.np({action:"VerifyToken",status:m.Bn.INITIATED})),this.httpClient.post(f.N.AUTHENTICATE_API+"/token",{authentication2FA:t.payload.token}).pipe((0,l.U)(i=>{this.logger.info(i),this.store.dispatch(new gt.Fk(m.m6.VERIFY_TOKEN)),this.store.dispatch(new gt.np({action:"VerifyToken",status:m.Bn.COMPLETED})),this.logger.info("Token Successfully Verified!"),this.setLoggedInDetails(!1,t.payload.authResponse,e)}),(0,d.K)(t=>(this.handleErrorWithAlert("VerifyToken",m.m6.VERIFY_TOKEN,"Authorization Failed!",f.N.AUTHENTICATE_API+"/token",t),(0,s.of)({type:gt.Zn}))))))),{dispatch:!1}),this.logOut=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(gt.Nv),(0,h.M)(this.store.select("root")),(0,u.z)(([t,e])=>(+e.appConfig.sso.rtlSSO?window.location.href=e.appConfig.sso.logoutRedirectLink:this.router.navigate(["./login"]),this.sessionService.clearAll(),this.store.dispatch(new gt.e6({})),this.logger.warn("LOGGED OUT"),(0,s.of)()))),{dispatch:!1}),this.resetPassword=(0,n.GW)(()=>this.actions.pipe((0,p.R)(this.unSubs[1]),(0,n.l4)(gt.bk),(0,h.M)(this.store.select("root")),(0,u.z)(([t,e])=>(this.store.dispatch(new gt.np({action:"ResetPassword",status:m.Bn.INITIATED})),this.httpClient.post(f.N.AUTHENTICATE_API+"/reset",{currPassword:t.payload.currPassword,newPassword:t.payload.newPassword}).pipe((0,p.R)(this.unSubs[0]),(0,l.U)(t=>(this.logger.info(t),this.store.dispatch(new gt.np({action:"ResetPassword",status:m.Bn.COMPLETED})),this.sessionService.setItem("defaultPassword",!1),this.logger.info("Password Reset Successful!"),this.store.dispatch(new gt.Lw("Password Reset Successful!")),this.SetToken(t.token),{type:gt.Gs,payload:t.token})),(0,d.K)(t=>(this.handleErrorWithAlert("ResetPassword",m.m6.NO_SPINNER,"Password Reset Failed!",f.N.AUTHENTICATE_API+"/reset",t),(0,s.of)({type:gt.Zn})))))))),this.setSelectedNode=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(gt.RP),(0,u.z)(t=>(this.store.dispatch(new gt.Fk(t.payload.uiMessage)),this.store.dispatch(new gt.np({action:"UpdateSelNode",status:m.Bn.INITIATED})),this.httpClient.post(f.N.CONF_API+"/updateSelNode",{selNodeIndex:t.payload.lnNode.index}).pipe((0,l.U)(e=>(this.logger.info(e),this.store.dispatch(new gt.np({action:"UpdateSelNode",status:m.Bn.COMPLETED})),this.store.dispatch(new gt.Iv(t.payload.uiMessage)),this.initializeNode(t.payload.lnNode,t.payload.isInitialSetup),{type:gt.Zn})),(0,d.K)(e=>(0===e.status&&e.statusText&&"Unknown Error"===e.statusText&&(e.status="400",e.error.message="Origin Not Allowed"),this.handleErrorWithAlert("UpdateSelNode",t.payload.uiMessage,"Update Selected Node Failed!",f.N.CONF_API+"/updateSelNode",e),(0,s.of)({type:gt.Zn})))))))),this.fetchFile=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(gt.bE),(0,u.z)(t=>{this.store.dispatch(new gt.Fk(m.m6.DOWNLOAD_BACKUP_FILE)),this.store.dispatch(new gt.np({action:"fetchFile",status:m.Bn.INITIATED}));const e="?channel="+t.payload.channelPoint+(t.payload.path?"&path="+t.payload.path:"");return this.httpClient.get(f.N.CONF_API+"/file"+e).pipe((0,l.U)(t=>(this.store.dispatch(new gt.np({action:"fetchFile",status:m.Bn.COMPLETED})),this.store.dispatch(new gt.Iv(m.m6.DOWNLOAD_BACKUP_FILE)),{type:gt.BQ,payload:t})),(0,d.K)(t=>(this.handleErrorWithAlert("fetchFile",m.m6.DOWNLOAD_BACKUP_FILE,"Download Backup File Failed!",f.N.CONF_API+"/file"+e,{status:this.commonService.extractErrorNumber(t),error:{error:this.commonService.extractErrorCode(t)}}),(0,s.of)({type:gt.Zn}))))}))),this.showFile=(0,n.GW)(()=>this.actions.pipe((0,n.l4)(gt.BQ),(0,l.U)(t=>t.payload)),{dispatch:!1})}initializeNode(t,e){const i=e?"":"HOME";let n={};if(n=t.settings.fiatConversion&&t.settings.currencyUnit?{userPersona:t.settings.userPersona,channelBackupPath:t.settings.channelBackupPath,selCurrencyUnit:t.settings.currencyUnit,currencyUnits:[...m.uA,t.settings.currencyUnit],fiatConversion:t.settings.fiatConversion,lnImplementation:t.lnImplementation,swapServerUrl:t.settings.swapServerUrl,boltzServerUrl:t.settings.boltzServerUrl}:{userPersona:t.settings.userPersona,channelBackupPath:t.settings.channelBackupPath,selCurrencyUnit:t.settings.currencyUnit,currencyUnits:m.uA,fiatConversion:t.settings.fiatConversion,lnImplementation:t.lnImplementation,swapServerUrl:t.settings.swapServerUrl,boltzServerUrl:t.settings.boltzServerUrl},this.sessionService.removeItem("lndUnlocked"),this.sessionService.removeItem("clUnlocked"),this.sessionService.removeItem("eclUnlocked"),this.store.dispatch(new gt.$A(t)),this.store.dispatch(new ee.Mo(n)),this.store.dispatch(new te.UA(n)),this.store.dispatch(new $t.IF(n)),this.sessionService.getItem("token"))switch(t.lnImplementation=t.lnImplementation.toUpperCase(),this.dataService.setChildAPIUrl(t.lnImplementation),t.lnImplementation){case"CLT":this.store.dispatch(new te.z6({loadPage:i}));break;case"ECL":this.store.dispatch(new $t.z6({loadPage:i}));break;default:this.store.dispatch(new ee.z6({loadPage:i}))}}SetToken(t){t?(this.sessionService.setItem("lndUnlocked","true"),this.sessionService.setItem("token",t)):(this.sessionService.removeItem("lndUnlocked"),this.sessionService.removeItem("token"))}setLoggedInDetails(t,e,i){this.logger.info("Successfully Authorized!"),this.SetToken(e.token),this.store.dispatch(new gt.XF),i.selNode.settings.currencyUnits=[...m.uA,i.selNode.settings.currencyUnit],this.sessionService.setItem("defaultPassword",t),t&&(this.sessionService.setItem("defaultPassword","true"),this.store.dispatch(new gt.Lw("Reset your password.")),this.router.navigate(["/settings/auth"]))}handleErrorWithoutAlert(t,e,i){this.logger.error("ERROR IN: "+t+"\n"+JSON.stringify(i)),401===i.status&&"Login"!==t?(this.logger.info("Redirecting to Login"),this.store.dispatch(new gt.Ac),this.store.dispatch(new gt.RD),this.store.dispatch(new gt.Lw("Authentication Failed. Redirecting to Login."))):(this.store.dispatch(new gt.Iv(e)),this.store.dispatch(new gt.np({action:t,status:m.Bn.ERROR,statusCode:i.status.toString(),message:this.commonService.extractErrorMessage(i)})))}handleErrorWithAlert(t,e,i,n,r){if(this.logger.error(r),401===r.status&&"Login"!==t)this.logger.info("Redirecting to Login"),this.store.dispatch(new gt.Ac),this.store.dispatch(new gt.RD),this.store.dispatch(new gt.Lw("Authentication Failed. Redirecting to Login."));else{this.store.dispatch(new gt.Iv(e));const s=this.commonService.extractErrorMessage(r);this.store.dispatch(new gt.wu({data:{type:"ERROR",alertTitle:i,message:{code:r.status?r.status:"Unknown Error",message:s,URL:n},component:jt.H}})),this.store.dispatch(new gt.np({action:t,status:m.Bn.ERROR,statusCode:r.status.toString(),message:s,URL:n}))}}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(y.LFG(n.eX),y.LFG(ie.eN),y.LFG(yt.yh),y.LFG(w.mQ),y.LFG(ne.m),y.LFG(C.v),y.LFG(re.D),y.LFG(g.uw),y.LFG(x.ux),y.LFG(se.F0))},t.\u0275prov=y.Yz7({token:t,factory:t.\u0275fac}),t})()},5963:(t,e,i)=>{"use strict";i.d(e,{T:()=>n,N:()=>r});const n="./api",r={production:!0,isDebugMode:!1,AUTHENTICATE_API:n+"/authenticate",CONF_API:n+"/conf",BALANCE_API:"/balance",FEES_API:"/fees",PEERS_API:"/peers",CHANNELS_API:"/channels",CHANNELS_BACKUP_API:"/channels/backup",GETINFO_API:"/getinfo",WALLET_API:"/wallet",NETWORK_API:"/network",NEW_ADDRESS_API:"/newaddress",TRANSACTIONS_API:"/transactions",PAYREQUEST_API:"/payreq",PAYMENTS_API:"/payments",INVOICES_API:"/invoices",SWITCH_API:"/switch",ON_CHAIN_API:"/onchain",MESSAGE_API:"/message",LOOP_API:"/loop",BOLTZ_API:"/boltz",VERSION:"0.11.2-beta"}},1042:(t,e,i)=>{"use strict";var n=i(269),r=i(1572),s=i(3490),o=i(9063),a=i(964),l=i(5573),c=i(7876),h=i(9666),u=i(5446),d=i(5960),p=i(5630),f=i(2948),m=i(8431);function g(t,e){return void 0===t&&(t=0),void 0===e&&(e=f.z),t<0&&(t=0),(0,m.H)(t,t,e)}var y=i(2041),b=i(9162),v=i(6042),_=i(3386),w=i(4659),x=i(8764),C=i(7070),A=i(8868),S=i(343),E=i(4324),k=i(9568),T=i(849),M=i(6424),L=i(1681);class I{}let O=(()=>{class t{constructor(t,e){this._ngZone=e,this.timerStart$=new h.x,this.idleDetected$=new h.x,this.timeout$=new h.x,this.idleMillisec=6e5,this.idleSensitivityMillisec=1e3,this.timeout=300,this.pingMillisec=12e4,t&&this.setConfig(t)}startWatching(){this.activityEvents$||(this.activityEvents$=(0,u.T)((0,d.R)(window,"mousemove"),(0,d.R)(window,"resize"),(0,d.R)(document,"keydown"))),this.idle$=(0,p.Dp)(this.activityEvents$),this.idleSubscription&&this.idleSubscription.unsubscribe(),this.idleSubscription=this.idle$.pipe(function(t){for(var e,i,n=[],r=1;r=0?i.add(s.schedule(function(){c(),!this.closed&&i.add(this.schedule(null,o))},o)):r=!0,c();var h=new w.Q(i,function(t){var e,i,r=n.slice();try{for(var s=(0,b.XA)(r),o=s.next();!o.done;o=s.next()){var c=o.value,h=c.buffer;h.push(t),a<=h.length&&l(c)}}catch(u){e={error:u}}finally{try{o&&!o.done&&(i=s.return)&&i.call(s)}finally{if(e)throw e.error}}},function(){for(;null==n?void 0:n.length;)i.next(n.shift().buffer);null==h||h.unsubscribe(),i.complete(),i.unsubscribe()},void 0,function(){return n=null});e.subscribe(h)})}(this.idleSensitivityMillisec),(0,A.h)(t=>!t.length&&!this.isIdleDetected&&!this.isInactivityTimer),(0,S.b)(()=>{this.isIdleDetected=!0,this.idleDetected$.next(!0)}),(0,E.w)(()=>this._ngZone.runOutsideAngular(()=>g(1e3).pipe((0,k.R)((0,u.T)(this.activityEvents$,(0,m.H)(this.idleMillisec).pipe((0,S.b)(()=>{this.isInactivityTimer=!0,this.timerStart$.next(!0)})))),(0,T.x)(()=>{this.isIdleDetected=!1,this.idleDetected$.next(!1)}))))).subscribe(),this.setupTimer(this.timeout),this.setupPing(this.pingMillisec)}stopWatching(){this.stopTimer(),this.idleSubscription&&this.idleSubscription.unsubscribe()}stopTimer(){this.isInactivityTimer=!1,this.timerStart$.next(!1)}resetTimer(){this.stopTimer(),this.isTimeout=!1}onTimerStart(){return this.timerStart$.pipe((0,M.x)(),(0,E.w)(t=>t?this.timer$:(0,y.of)(null)))}onIdleStatusChanged(){return this.idleDetected$.asObservable()}onTimeout(){return this.timeout$.pipe((0,A.h)(t=>!!t),(0,S.b)(()=>this.isTimeout=!0),(0,L.U)(()=>!0))}getConfigValue(){return{idle:this.idleMillisec/1e3,idleSensitivity:this.idleSensitivityMillisec/1e3,timeout:this.timeout,ping:this.pingMillisec/1e3}}setConfigValues(t){!this.idleSubscription||this.idleSubscription.closed?this.setConfig(t):console.error("Call stopWatching() before set config values")}setConfig(t){t.idle&&(this.idleMillisec=1e3*t.idle),t.ping&&(this.pingMillisec=1e3*t.ping),t.idleSensitivity&&(this.idleSensitivityMillisec=1e3*t.idleSensitivity),t.timeout&&(this.timeout=t.timeout)}setCustomActivityEvents(t){!this.idleSubscription||this.idleSubscription.closed?this.activityEvents$=t:console.error("Call stopWatching() before set custom activity events")}setupTimer(t){this._ngZone.runOutsideAngular(()=>{this.timer$=(0,y.of)(new Date).pipe((0,E.w)(e=>g(1e3).pipe((0,L.U)(()=>Math.round(((new Date).valueOf()-e.valueOf())/1e3)),(0,S.b)(e=>{e>=t&&this.timeout$.next(!0)}))))})}setupPing(t){this.ping$=g(t).pipe((0,A.h)(()=>!this.isTimeout))}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(I,8),r.LFG(r.R0b))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t.ngInjectableDef=(0,r.Ez6)({factory:function(){return new t((0,r.f3M)(I,8),(0,r.f3M)(r.R0b))},token:t,providedIn:"root"}),t})(),D=(()=>{class t{static forRoot(e){return{ngModule:t,providers:[{provide:I,useValue:e}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[]]}),t})();var R=i(6853),N=i(5291),P=i(3722),F=i(7592),Z=i(7439),B=i(5109),U=i(1511);const q=function(){return{initial:!1}};function z(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div",10),r.NdJ("click",function(){r.CHM(t);const e=r.oxw();return e.activeLink=e.links[1].link}),r._uU(1),r.qZA()}if(2&t){const t=r.oxw();r.s9C("routerLink",t.links[1].link),r.Q6J("active",t.activeLink===t.links[1].link)("state",r.DdM(4,q)),r.xp6(1),r.Oqu(t.links[1].name)}}function H(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div",6),r.NdJ("click",function(){r.CHM(t);const e=r.oxw();return e.activeLink=e.links[2].link}),r._uU(1),r.qZA()}if(2&t){const t=r.oxw();r.s9C("routerLink",t.links[2].link),r.Q6J("active",t.activeLink===t.links[2].link),r.xp6(1),r.Oqu(t.links[2].name)}}let Y=(()=>{class t{constructor(t,e){this.store=t,this.router=e,this.faUserCog=N.gNZ,this.showBitcoind=!1,this.links=[{link:"app",name:"Application"},{link:"auth",name:"Authentication"},{link:"bconfig",name:"BitcoinD Config"}],this.activeLink="",this.unSubs=[new h.x,new h.x,new h.x]}ngOnInit(){const t=this.links.find(t=>this.router.url.includes(t.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe((0,k.R)(this.unSubs[0]),(0,A.h)(t=>t instanceof R.Av)).subscribe(t=>{const e=this.links.find(e=>t.urlAfterRedirects.includes(e.link));this.activeLink=e?e.link:this.links[0].link}),this.store.select("root").pipe((0,k.R)(this.unSubs[1])).subscribe(t=>{this.showBitcoind=!1,this.appConfig=t.appConfig,this.selNode=t.selNode,this.selNode.settings&&this.selNode.settings.bitcoindConfigPath&&""!==this.selNode.settings.bitcoindConfigPath.trim()&&(this.showBitcoind=!0)})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(a.yh),r.Y36(R.F0))},t.\u0275cmp=r.Xpm({type:t,selectors:[["rtl-settings"]],decls:14,vars:6,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","state","click",4,"ngIf"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","state","click"]],template:function(t,e){1&t&&(r.TgZ(0,"div",0),r._UZ(1,"fa-icon",1),r.TgZ(2,"span",2),r._uU(3,"Settings"),r.qZA(),r.qZA(),r.TgZ(4,"div",3),r.TgZ(5,"mat-card"),r.TgZ(6,"mat-card-content",4),r.TgZ(7,"nav",5),r.TgZ(8,"div",6),r.NdJ("click",function(){return e.activeLink=e.links[0].link}),r._uU(9),r.qZA(),r.YNc(10,z,2,5,"div",7),r.YNc(11,H,2,3,"div",8),r.qZA(),r.TgZ(12,"div",9),r._UZ(13,"router-outlet"),r.qZA(),r.qZA(),r.qZA(),r.qZA()),2&t&&(r.xp6(1),r.Q6J("icon",e.faUserCog),r.xp6(7),r.s9C("routerLink",e.links[0].link),r.Q6J("active",e.activeLink===e.links[0].link),r.xp6(1),r.Oqu(e.links[0].name),r.xp6(1),r.Q6J("ngIf",!+e.appConfig.sso.rtlSSO),r.xp6(1),r.Q6J("ngIf",e.showBitcoind))},directives:[P.xw,P.Wh,F.BN,Z.a8,Z.dn,B.BU,B.Nj,R.rH,U.O5,P.yH,R.lC],styles:[""]}),t})();var G=i(9421),j=i(3929),V=i(3869),Q=i(7038),W=i(6073),J=i(6283),X=i(4786),K=i(6880),$=i(5980),tt=i(1522);function et(t,e){if(1&t&&(r.TgZ(0,"mat-option",16),r._uU(1),r.qZA()),2&t){const t=e.$implicit;r.Q6J("value",t.index),r.xp6(1),r.AsE(" ",t.lnNode," (",t.lnImplementation,") ")}}function it(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"form",2,3),r.TgZ(2,"div",4),r._UZ(3,"fa-icon",5),r.TgZ(4,"span",6),r._uU(5,"Default Node"),r.qZA(),r.qZA(),r.TgZ(6,"div",7),r.TgZ(7,"div",8),r._UZ(8,"fa-icon",9),r.TgZ(9,"span"),r._uU(10,"The setting will apply after RTL server restarts."),r.qZA(),r.qZA(),r.TgZ(11,"div",10),r.TgZ(12,"mat-form-field",10),r.TgZ(13,"mat-select",11),r.NdJ("ngModelChange",function(e){return r.CHM(t),r.oxw().appConfig.defaultNodeIndex=e}),r.YNc(14,et,2,3,"mat-option",12),r.qZA(),r.qZA(),r.qZA(),r.TgZ(15,"div",13),r.TgZ(16,"div",10),r.TgZ(17,"button",14),r.NdJ("click",function(){return r.CHM(t),r.oxw().onResetSettings()}),r._uU(18,"Reset"),r.qZA(),r.TgZ(19,"button",15),r.NdJ("click",function(){return r.CHM(t),r.oxw().onUpdateSettings()}),r._uU(20,"Update"),r.qZA(),r.qZA(),r.qZA(),r.qZA(),r.qZA()}if(2&t){const t=r.oxw();r.xp6(3),r.Q6J("icon",t.faWindowRestore),r.xp6(5),r.Q6J("icon",t.faInfoCircle),r.xp6(5),r.Q6J("ngModel",t.appConfig.defaultNodeIndex),r.xp6(1),r.Q6J("ngForOf",t.appConfig.nodes)}}let nt=(()=>{class t{constructor(t,e){this.logger=t,this.store=e,this.faInfoCircle=N.sqG,this.faWindowRestore=N.wyP,this.faPlus=N.r8p,this.previousDefaultNode=0,this.unSubs=[new h.x,new h.x]}ngOnInit(){this.store.select("root").pipe((0,k.R)(this.unSubs[0])).subscribe(t=>{this.appConfig=t.appConfig,this.previousDefaultNode=this.appConfig.defaultNodeIndex,this.selNode=t.selNode,this.logger.info(t)})}onAddNewNode(){this.logger.warn("ADD NEW NODE")}onUpdateSettings(){this.store.dispatch(new j.j_({uiMessage:G.m6.UPDATE_DEFAULT_NODE_SETTING,defaultNodeIndex:this.appConfig.defaultNodeIndex?this.appConfig.defaultNodeIndex:+this.appConfig.nodes[0].index}))}onResetSettings(){this.appConfig.defaultNodeIndex=this.previousDefaultNode}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(V.mQ),r.Y36(a.yh))},t.\u0275cmp=r.Xpm({type:t,selectors:[["rtl-app-settings"]],decls:2,vars:1,consts:[["fxLayout","column","fxFlex","100",1,"padding-gap-x-large",3,"perfectScrollbar"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch","class","settings-container page-sub-title-container mt-1",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"settings-container","page-sub-title-container","mt-1"],["form","ngForm"],["fxLayout","row"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"my-2"],["fxLayout","row","fxFlex","100",1,"alert","alert-info"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","row","fxLayoutAlign","start start"],["autoFocus","","tabindex","1","name","defaultNode",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start start",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","2",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","3",3,"click"],[3,"value"]],template:function(t,e){1&t&&(r.TgZ(0,"div",0),r.YNc(1,it,21,4,"form",1),r.qZA()),2&t&&(r.xp6(1),r.Q6J("ngIf",e.appConfig.nodes&&e.appConfig.nodes.length&&e.appConfig.nodes.length>0))},directives:[P.xw,P.yH,Q.$V,U.O5,W._Y,W.JL,W.F,P.Wh,F.BN,J.KE,X.gD,K.h,W.JJ,W.On,U.sg,$.lW,tt.ey],styles:[""]}),t})();var rt=i(1339),st=i(9056),ot=i(4608),at=i(4499),lt=i(8914),ct=i(1403),ht=i(7753),ut=i(6756),dt=i(3600),pt=i(2609);const ft=["stepper"];function mt(t,e){if(1&t&&r._uU(0),2&t){const t=r.oxw();r.Oqu(t.passwordFormLabel)}}function gt(t,e){1&t&&(r.TgZ(0,"mat-error"),r._uU(1,"Password is required."),r.qZA())}function yt(t,e){if(1&t&&r._uU(0),2&t){const t=r.oxw(2);r.Oqu(t.secretFormLabel)}}function bt(t,e){1&t&&(r.TgZ(0,"mat-error"),r._uU(1,"Secret Code is required."),r.qZA())}function vt(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"mat-step",10),r.TgZ(1,"form",21),r.YNc(2,yt,1,1,"ng-template",22),r.TgZ(3,"div",23),r._UZ(4,"qrcode",24),r.qZA(),r.TgZ(5,"div",25),r._UZ(6,"fa-icon",26),r.TgZ(7,"span"),r._uU(8,"You can use a compatible authentication app to get an authentication code when you log in to RTL. e.g.: Google Authenticator."),r.qZA(),r.qZA(),r.TgZ(9,"div",27),r.TgZ(10,"mat-form-field",1),r._UZ(11,"input",28),r.TgZ(12,"fa-icon",29),r.NdJ("copied",function(e){return r.CHM(t),r.oxw().onCopySecret(e)}),r.qZA(),r.YNc(13,bt,2,0,"mat-error",14),r.qZA(),r.qZA(),r.TgZ(14,"div",30),r.TgZ(15,"button",31),r._uU(16,"Next"),r.qZA(),r.qZA(),r.qZA(),r.qZA()}if(2&t){const t=r.oxw();r.Q6J("stepControl",t.secretFormGroup)("editable",t.flgEditable),r.xp6(1),r.Q6J("formGroup",t.secretFormGroup),r.xp6(3),r.Q6J("qrdata",t.otpauth)("margin",1)("width",180)("errorCorrectionLevel","L")("allowEmptyString",!0),r.xp6(2),r.Q6J("icon",t.faInfoCircle),r.xp6(6),r.Q6J("icon",t.faCopy)("payload",null==t.secretFormGroup||null==t.secretFormGroup.controls||null==t.secretFormGroup.controls.secret?null:t.secretFormGroup.controls.secret.value),r.xp6(1),r.Q6J("ngIf",null==t.secretFormGroup||null==t.secretFormGroup.controls||null==t.secretFormGroup.controls.secret||null==t.secretFormGroup.controls.secret.errors?null:t.secretFormGroup.controls.secret.errors.required)}}function _t(t,e){if(1&t&&r._uU(0),2&t){const t=r.oxw(2);r.Oqu(t.tokenFormLabel)}}function wt(t,e){1&t&&(r.TgZ(0,"mat-error"),r._uU(1,"Token is required."),r.qZA())}function xt(t,e){1&t&&(r.TgZ(0,"mat-error"),r._uU(1,"Token is invalid."),r.qZA())}function Ct(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div",7),r.TgZ(1,"div",27),r.TgZ(2,"mat-form-field",1),r._UZ(3,"input",35),r.YNc(4,wt,2,0,"mat-error",14),r.YNc(5,xt,2,0,"mat-error",14),r.qZA(),r.qZA(),r.TgZ(6,"div",30),r.TgZ(7,"button",36),r.NdJ("click",function(){return r.CHM(t),r.oxw(2).onVerifyToken()}),r._uU(8),r.qZA(),r.qZA(),r.qZA()}if(2&t){const t=r.oxw(2);r.xp6(4),r.Q6J("ngIf",null==t.tokenFormGroup||null==t.tokenFormGroup.controls||null==t.tokenFormGroup.controls.token||null==t.tokenFormGroup.controls.token.errors?null:t.tokenFormGroup.controls.token.errors.required),r.xp6(1),r.Q6J("ngIf",null==t.tokenFormGroup||null==t.tokenFormGroup.controls||null==t.tokenFormGroup.controls.token||null==t.tokenFormGroup.controls.token.errors?null:t.tokenFormGroup.controls.token.errors.notValid),r.xp6(3),r.Oqu(null!=t.tokenFormGroup&&null!=t.tokenFormGroup.controls&&null!=t.tokenFormGroup.controls.token&&null!=t.tokenFormGroup.controls.token.errors&&t.tokenFormGroup.controls.token.errors.notValid?"Retry":"Verify")}}function At(t,e){1&t&&(r.TgZ(0,"div"),r.TgZ(1,"strong"),r._uU(2,"Success! You are all set."),r.qZA(),r.qZA())}function St(t,e){if(1&t&&(r.TgZ(0,"mat-step",32),r.TgZ(1,"form",33),r.YNc(2,_t,1,1,"ng-template",12),r.YNc(3,Ct,9,3,"div",34),r.YNc(4,At,3,0,"div",14),r.qZA(),r.qZA()),2&t){const t=r.oxw();r.Q6J("stepControl",t.tokenFormGroup),r.xp6(1),r.Q6J("formGroup",t.tokenFormGroup),r.xp6(2),r.Q6J("ngIf",!t.flgValidated||!t.isTokenValid),r.xp6(1),r.Q6J("ngIf",t.flgValidated&&t.isTokenValid)}}function Et(t,e){if(1&t&&r._uU(0),2&t){const t=r.oxw(2);r.Oqu(t.disableFormLabel)}}function kt(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div",7),r.TgZ(1,"div",37),r._UZ(2,"fa-icon",26),r.TgZ(3,"span"),r._uU(4,"You are about to disable two-factor authentication security from RTL. Are you sure you want to turn it off?"),r.qZA(),r.qZA(),r.TgZ(5,"div",30),r.TgZ(6,"button",36),r.NdJ("click",function(){return r.CHM(t),r.oxw(2).onVerifyToken()}),r._uU(7,"Disable"),r.qZA(),r.qZA(),r.qZA()}if(2&t){const t=r.oxw(2);r.xp6(2),r.Q6J("icon",t.faExclamationTriangle)}}function Tt(t,e){1&t&&(r.TgZ(0,"div"),r.TgZ(1,"strong"),r._uU(2,"Two factor authentication removed from RTL."),r.qZA(),r.qZA())}function Mt(t,e){if(1&t&&(r.TgZ(0,"mat-step",32),r.TgZ(1,"form",33),r.YNc(2,Et,1,1,"ng-template",12),r.YNc(3,kt,8,1,"div",34),r.YNc(4,Tt,3,0,"div",14),r.qZA(),r.qZA()),2&t){const t=r.oxw();r.Q6J("stepControl",t.disableFormGroup),r.xp6(1),r.Q6J("formGroup",t.disableFormGroup),r.xp6(2),r.Q6J("ngIf",!t.flgValidated||!t.isTokenValid),r.xp6(1),r.Q6J("ngIf",t.flgValidated&&t.isTokenValid)}}let Lt=(()=>{class t{constructor(t,e,i,n,r,s){this.dialogRef=t,this.data=e,this.store=i,this.formBuilder=n,this.rtlEffects=r,this.snackBar=s,this.faExclamationTriangle=N.eHv,this.faCopy=N.kZ_,this.faInfoCircle=N.sqG,this.flgValidated=!1,this.isTokenValid=!0,this.otpauth="",this.flgEditable=!0,this.showDisableStepper=!1,this.passwordFormLabel="Authenticate with your RTL password",this.secretFormLabel="Scan or copy the secret",this.tokenFormLabel="Verify your authentication is working",this.disableFormLabel="Disable two factor authentication",this.passwordFormGroup=this.formBuilder.group({hiddenPassword:["",[W.kI.required]],password:["",[W.kI.required]]}),this.secretFormGroup=this.formBuilder.group({secret:[{value:"",disabled:!0},W.kI.required]}),this.tokenFormGroup=this.formBuilder.group({token:["",W.kI.required]}),this.disableFormGroup=this.formBuilder.group({}),this.unSubs=[new h.x,new h.x]}ngOnInit(){this.appConfig=this.data.appConfig,this.showDisableStepper=!!this.appConfig.enable2FA,this.secretFormGroup=this.formBuilder.group({secret:[{value:this.appConfig.enable2FA?"":this.generateSecret(),disabled:!0},W.kI.required]})}generateSecret(){const t=at.authenticator.generateSecret();return this.otpauth=at.authenticator.keyuri("","Ride The Lightning (RTL)",t),t}onAuthenticate(){if(!this.passwordFormGroup.controls.password.value)return!0;this.flgValidated=!1,this.store.dispatch(new j.ZF(rt(this.passwordFormGroup.controls.password.value))),this.rtlEffects.isAuthorizedRes.pipe((0,st.q)(1)).subscribe(t=>{"ERROR"!==t?(this.passwordFormGroup.controls.hiddenPassword.setValue(this.passwordFormGroup.controls.password.value),this.stepper.next()):(this.dialogRef.close(),this.snackBar.open("Unauthorized User. Logging out from RTL."))})}onCopySecret(t){this.snackBar.open("Secret code "+this.secretFormGroup.controls.secret.value+" copied.")}onVerifyToken(){if(this.appConfig.enable2FA)this.store.dispatch(new j.z2({secret2fa:""})),this.generateSecret(),this.isTokenValid=!0;else{if(!this.tokenFormGroup.controls.token.value)return!0;if(this.isTokenValid=at.authenticator.check(this.tokenFormGroup.controls.token.value,this.secretFormGroup.controls.secret.value),!this.isTokenValid)return this.tokenFormGroup.controls.token.setErrors({notValid:!0}),!0;this.store.dispatch(new j.z2({secret2fa:this.secretFormGroup.controls.secret.value})),this.tokenFormGroup.controls.token.setValue("")}this.flgValidated=!0,this.appConfig.enable2FA=!this.appConfig.enable2FA}stepSelectionChanged(t){switch(t.selectedIndex){case 0:this.passwordFormLabel="Authenticate with your RTL password";break;case 1:case 2:this.passwordFormLabel="User authenticated successfully";break;default:this.passwordFormLabel="Authenticate with your RTL password"}t.selectedIndex{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(ot.so),r.Y36(ot.WI),r.Y36(a.yh),r.Y36(W.qu),r.Y36(lt.V),r.Y36(ct.ux))},t.\u0275cmp=r.Xpm({type:t,selectors:[["rtl-two-factor-auth"]],viewQuery:function(t,e){if(1&t&&r.Gf(ft,5),2&t){let t;r.iGM(t=r.CRH())&&(e.stepper=t.first)}},decls:28,vars:11,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","15","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayout","column"],[3,"linear","selectionChange"],["stepper",""],[3,"stepControl","editable"],["fxLayout","column","fxLayoutAlign","space-between",1,"my-1","pr-1",3,"formGroup"],["matStepLabel",""],["autoFocus","","matInput","","placeholder","Password","type","password","tabindex","1","formControlName","password","required",""],[4,"ngIf"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","3","type","button",3,"click"],[3,"stepControl","editable",4,"ngIf"],[3,"stepControl",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","tabindex","12","type","button","default","",3,"mat-dialog-close"],["fxLayout","column",1,"my-1","pr-1",3,"formGroup"],["matStepLabel","","disabled","true"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start"],[3,"qrdata","margin","width","errorCorrectionLevel","allowEmptyString"],["fxFlex","100",1,"w-100","alert","alert-info"],[1,"mt-1","mr-1","alert-icon",3,"icon"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between stretch"],["autoFocus","","matInput","","placeholder","Secret Code","type","text","tabindex","4","formControlName","secret","required",""],["matSuffix","","rtlClipboard","",3,"icon","payload","copied"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","6","type","button","matStepperNext",""],[3,"stepControl"],["fxLayout","column","fxLayoutAlign","start",1,"my-1","pr-1",3,"formGroup"],["fxLayout","column",4,"ngIf"],["autoFocus","","matInput","","placeholder","Token","type","text","tabindex","7","formControlName","token","required",""],["mat-stroked-button","","color","primary","tabindex","8","type","button",3,"click"],["fxFlex","100",1,"w-100","alert","alert-warn"]],template:function(t,e){1&t&&(r.TgZ(0,"div",0),r.TgZ(1,"div",1),r.TgZ(2,"mat-card-header",2),r.TgZ(3,"div",3),r.TgZ(4,"span",4),r._uU(5,"Setup Two Factor Authentication"),r.qZA(),r.qZA(),r.TgZ(6,"button",5),r._uU(7,"X"),r.qZA(),r.qZA(),r.TgZ(8,"mat-card-content",6),r.TgZ(9,"div",7),r.TgZ(10,"mat-vertical-stepper",8,9),r.NdJ("selectionChange",function(t){return e.stepSelectionChanged(t)}),r.TgZ(12,"mat-step",10),r.TgZ(13,"form",11),r.YNc(14,mt,1,1,"ng-template",12),r.TgZ(15,"div",0),r.TgZ(16,"mat-form-field",1),r._UZ(17,"input",13),r.YNc(18,gt,2,0,"mat-error",14),r.qZA(),r.qZA(),r.TgZ(19,"div",15),r.TgZ(20,"button",16),r.NdJ("click",function(){return e.onAuthenticate()}),r._uU(21,"Confirm"),r.qZA(),r.qZA(),r.qZA(),r.qZA(),r.YNc(22,vt,17,12,"mat-step",17),r.YNc(23,St,5,4,"mat-step",18),r.YNc(24,Mt,5,4,"mat-step",18),r.qZA(),r.TgZ(25,"div",19),r.TgZ(26,"button",20),r._uU(27),r.qZA(),r.qZA(),r.qZA(),r.qZA(),r.qZA(),r.qZA()),2&t&&(r.xp6(6),r.Q6J("mat-dialog-close",!1),r.xp6(4),r.Q6J("linear",!0),r.xp6(2),r.Q6J("stepControl",e.passwordFormGroup)("editable",e.flgEditable),r.xp6(1),r.Q6J("formGroup",e.passwordFormGroup),r.xp6(5),r.Q6J("ngIf",null==e.passwordFormGroup||null==e.passwordFormGroup.controls||null==e.passwordFormGroup.controls.password||null==e.passwordFormGroup.controls.password.errors?null:e.passwordFormGroup.controls.password.errors.required),r.xp6(4),r.Q6J("ngIf",!e.showDisableStepper),r.xp6(1),r.Q6J("ngIf",!e.showDisableStepper),r.xp6(1),r.Q6J("ngIf",e.showDisableStepper),r.xp6(2),r.Q6J("mat-dialog-close",!1),r.xp6(1),r.Oqu(e.flgValidated&&e.isTokenValid?"Close":"Cancel"))},directives:[P.xw,P.yH,Z.dk,P.Wh,$.lW,ot.ZT,Z.dn,ht.Vq,ht.C0,W._Y,W.JL,W.sg,ht.VY,J.KE,ut.Nt,W.Fj,K.h,W.JJ,W.u,W.Q7,U.O5,J.TO,dt.V,F.BN,J.R9,pt.y,ht.Ic],styles:[""]}),t})();var It=i(3191),Ot=i(7679);const Dt=["authForm"];function Rt(t,e){1&t&&(r.TgZ(0,"mat-error"),r._uU(1,"Current password is required."),r.qZA())}function Nt(t,e){if(1&t&&(r.TgZ(0,"mat-error"),r._uU(1),r.qZA()),2&t){const t=r.oxw();r.xp6(1),r.Oqu(t.errorMsg)}}function Pt(t,e){if(1&t&&(r.TgZ(0,"mat-error"),r._uU(1),r.qZA()),2&t){const t=r.oxw();r.xp6(1),r.Oqu(t.errorConfirmMsg)}}let Ft=(()=>{class t{constructor(t,e,i,n,r){this.store=t,this.logger=e,this.actions=i,this.router=n,this.sessionService=r,this.faInfoCircle=N.sqG,this.faUserLock=N.FJU,this.faUserClock=N.hnx,this.faLock=N.byT,this.currPassword="",this.newPassword="",this.confirmPassword="",this.errorMsg="",this.errorConfirmMsg="",this.initializeNodeData=!1,this.unSubs=[new h.x,new h.x,new h.x]}ngOnInit(){this.initializeNodeData="true"===this.sessionService.getItem("defaultPassword"),this.store.select("root").pipe((0,k.R)(this.unSubs[1])).subscribe(t=>{this.appConfig=t.appConfig,this.selNode=t.selNode,this.logger.info(t)}),this.actions.pipe((0,k.R)(this.unSubs[2]),(0,A.h)(t=>t.type===j.Gs)).subscribe(t=>{if(G.kO.includes(this.currPassword.toLowerCase()))switch(this.selNode.lnImplementation.toUpperCase()){case"CLT":this.router.navigate(["/cl/home"]);break;case"ECL":this.router.navigate(["/ecl/home"]);break;default:this.router.navigate(["/lnd/home"])}this.form.resetForm()})}onChangePassword(){if(!this.currPassword||!this.newPassword||!this.confirmPassword||this.currPassword===this.newPassword||this.newPassword!==this.confirmPassword||G.kO.includes(this.newPassword.toLowerCase()))return!0;this.store.dispatch(new j.tq({currPassword:rt(this.currPassword),newPassword:rt(this.newPassword)}))}matchOldAndNewPasswords(){let t=!1;return this.form.controls.newpassword&&(this.newPassword?""!==this.currPassword&&""!==this.newPassword&&this.currPassword===this.newPassword?(this.form.controls.newpassword.setErrors({invalid:!0}),this.errorMsg="Old and New password cannot be same.",t=!0):G.kO.includes(this.newPassword.toLowerCase())?(this.form.controls.newpassword.setErrors({invalid:!0}),this.errorMsg=G.kO.reduce((t,e,i)=>i{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(a.yh),r.Y36(V.mQ),r.Y36(l.eX),r.Y36(R.F0),r.Y36(It.m))},t.\u0275cmp=r.Xpm({type:t,selectors:[["rtl-auth-settings"]],viewQuery:function(t,e){if(1&t&&r.Gf(Dt,7),2&t){let t;r.iGM(t=r.CRH())&&(e.form=t.first)}},decls:35,vars:11,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap-x-large"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"page-sub-title-container","mt-1"],["authForm","ngForm"],["fxLayout","row","fxLayoutAlign","start start",1,"mb-2"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["matInput","","placeholder","Current Password","type","password","id","currpassword","name","currpassword","tabindex","6","required","",3,"ngModel","ngModelChange"],[4,"ngIf"],["matInput","","placeholder","New Password","type","password","id","newpassword","name","newpassword","tabindex","7","required","",3,"ngModel","ngModelChange"],["matInput","","placeholder","Confirm New Password","type","password","id","confirmpassword","name","confirmpassword","tabindex","8","required","",3,"ngModel","ngModelChange"],["fxLayout","row","fxLayoutAlign","start start",1,"mt-1"],["mat-stroked-button","","color","primary","type","reset","tabindex","9",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","10","type","button",3,"click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","end stretch",1,"my-2"],[3,"inset"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],[1,"mb-1","settings-container","page-sub-title-container","mt-1"],[1,"alert","alert-info"],[1,"mt-1","mr-1","alert-icon",3,"icon"],[1,"mt-1"],["mat-flat-button","","color","primary","tabindex","11",1,"mb-2",3,"click"]],template:function(t,e){1&t&&(r.TgZ(0,"div",0),r.TgZ(1,"form",1,2),r.TgZ(3,"div",3),r._UZ(4,"fa-icon",4),r.TgZ(5,"span",5),r._uU(6,"Password"),r.qZA(),r.qZA(),r.TgZ(7,"mat-form-field"),r.TgZ(8,"input",6),r.NdJ("ngModelChange",function(t){return e.currPassword=t}),r.qZA(),r.YNc(9,Rt,2,0,"mat-error",7),r.qZA(),r.TgZ(10,"mat-form-field"),r.TgZ(11,"input",8),r.NdJ("ngModelChange",function(t){return e.newPassword=t}),r.qZA(),r.YNc(12,Nt,2,1,"mat-error",7),r.qZA(),r.TgZ(13,"mat-form-field"),r.TgZ(14,"input",9),r.NdJ("ngModelChange",function(t){return e.confirmPassword=t}),r.qZA(),r.YNc(15,Pt,2,1,"mat-error",7),r.qZA(),r.TgZ(16,"div",10),r.TgZ(17,"button",11),r.NdJ("click",function(){return e.onResetPassword()}),r._uU(18,"Reset"),r.qZA(),r.TgZ(19,"button",12),r.NdJ("click",function(){return e.onChangePassword()}),r._uU(20,"Change Password"),r.qZA(),r.qZA(),r.qZA(),r.TgZ(21,"div",13),r._UZ(22,"mat-divider",14),r.qZA(),r.TgZ(23,"div",15),r.TgZ(24,"div",16),r._UZ(25,"fa-icon",4),r.TgZ(26,"span",5),r._uU(27,"Two Factor Authentication"),r.qZA(),r.qZA(),r.TgZ(28,"div",17),r._UZ(29,"fa-icon",18),r.TgZ(30,"span"),r._uU(31,"Protect your account from unauthorized access by requiring a second authentication method in addition to your password."),r.qZA(),r.qZA(),r.TgZ(32,"div",19),r.TgZ(33,"button",20),r.NdJ("click",function(){return e.on2FAuth()}),r._uU(34),r.qZA(),r.qZA(),r.qZA(),r.qZA()),2&t&&(r.xp6(4),r.Q6J("icon",e.faLock),r.xp6(4),r.Q6J("ngModel",e.currPassword),r.xp6(1),r.Q6J("ngIf",!e.currPassword),r.xp6(2),r.Q6J("ngModel",e.newPassword),r.xp6(1),r.Q6J("ngIf",e.matchOldAndNewPasswords()),r.xp6(2),r.Q6J("ngModel",e.confirmPassword),r.xp6(1),r.Q6J("ngIf",e.matchNewPasswords()),r.xp6(7),r.Q6J("inset",!0),r.xp6(3),r.Q6J("icon",e.faUserClock),r.xp6(4),r.Q6J("icon",e.faInfoCircle),r.xp6(5),r.Oqu(e.appConfig.enable2FA?"Disable 2FA":"Enable 2FA"))},directives:[P.xw,P.yH,P.Wh,W._Y,W.JL,W.F,F.BN,J.KE,ut.Nt,W.Fj,W.Q7,W.JJ,W.On,U.O5,$.lW,Ot.d,J.TO],styles:[""]}),t})();var Zt=i(5250);function Bt(t,e){1&t&&r._UZ(0,"mat-divider",7)}function Ut(t,e){if(1&t&&(r.TgZ(0,"div",4),r.TgZ(1,"pre",5),r._uU(2),r.ALo(3,"json"),r.qZA(),r.YNc(4,Bt,1,0,"mat-divider",6),r.qZA()),2&t){const t=r.oxw();r.xp6(2),r.Oqu(r.lcZ(3,2,t.configData)),r.xp6(2),r.Q6J("ngIf",""!==t.configData)}}function qt(t,e){if(1&t&&(r.TgZ(0,"h2"),r._uU(1),r.qZA()),2&t){const t=r.oxw().$implicit;r.xp6(1),r.Oqu(t)}}function zt(t,e){if(1&t&&(r.TgZ(0,"h4",14),r._uU(1),r.qZA()),2&t){const t=r.oxw().$implicit;r.xp6(1),r.Oqu(t)}}function Ht(t,e){1&t&&r._UZ(0,"mat-divider",15),2&t&&r.Q6J("inset",!0)}function Yt(t,e){if(1&t&&(r.TgZ(0,"mat-list-item"),r.TgZ(1,"mat-card-subtitle",7),r.YNc(2,qt,2,1,"h2",10),r.qZA(),r.TgZ(3,"mat-card-subtitle",11),r.YNc(4,zt,2,1,"h4",12),r.qZA(),r.YNc(5,Ht,1,1,"mat-divider",13),r.qZA()),2&t){const t=e.$implicit;r.xp6(2),r.Q6J("ngIf",t.indexOf("[")>=0),r.xp6(2),r.Q6J("ngIf",t.indexOf("[")<0),r.xp6(1),r.Q6J("ngIf",t.indexOf("[")<0)}}function Gt(t,e){if(1&t&&(r.TgZ(0,"div",8),r.TgZ(1,"mat-list"),r.YNc(2,Yt,6,3,"mat-list-item",9),r.qZA(),r.qZA()),2&t){const t=r.oxw();r.xp6(2),r.Q6J("ngForOf",t.configData)}}let jt=(()=>{class t{constructor(t,e,i){this.store=t,this.rtlEffects=e,this.router=i,this.selectedNodeType="",this.configData="",this.fileFormat="INI",this.faCog=N.b7W,this.unSubs=[new h.x,new h.x]}ngOnInit(){this.selectedNodeType=this.router.url.includes("bconfig")?"bitcoind":"ln",this.router.events.pipe((0,k.R)(this.unSubs[0]),(0,A.h)(t=>t instanceof R.Av)).subscribe(t=>{this.selectedNodeType=t.urlAfterRedirects.includes("bconfig")?"bitcoind":"ln"}),this.store.dispatch(new j.Fj(this.selectedNodeType)),this.rtlEffects.showLnConfig.pipe((0,k.R)(this.unSubs[1])).subscribe(t=>{const e=t.data;this.fileFormat=t.format,this.configData=""===e||!e||"INI"!==this.fileFormat&&"HOCON"!==this.fileFormat?""!==e&&e&&"JSON"===this.fileFormat?e:"":e.split("\n")})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(a.yh),r.Y36(lt.V),r.Y36(R.F0))},t.\u0275cmp=r.Xpm({type:t,selectors:[["rtl-bitcoin-config"]],decls:4,vars:2,consts:[["fxLayout","column","fxFlex","100"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start"],["fxFlex","100","class","mb-6",4,"ngIf"],["fxFlex","100",4,"ngIf"],["fxFlex","100",1,"mb-6"],[1,"pre-wrap"],["class","my-1",4,"ngIf"],[1,"my-1"],["fxFlex","100"],[4,"ngFor","ngForOf"],[4,"ngIf"],[1,"m-0"],["class","ml-4",4,"ngIf"],[3,"inset",4,"ngIf"],[1,"ml-4"],[3,"inset"]],template:function(t,e){1&t&&(r.TgZ(0,"div",0),r.TgZ(1,"div",1),r.YNc(2,Ut,5,4,"div",2),r.YNc(3,Gt,3,1,"div",3),r.qZA(),r.qZA()),2&t&&(r.xp6(2),r.Q6J("ngIf",""!==e.configData&&"JSON"===e.fileFormat),r.xp6(1),r.Q6J("ngIf",""!==e.configData&&("INI"===e.fileFormat||"HOCON"===e.fileFormat)))},directives:[P.xw,P.yH,P.Wh,U.O5,Ot.d,Zt.i$,U.sg,Zt.Tg,Z.$j],pipes:[U.Ts],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),t})();const Vt=function(){return{initial:!1}};function Qt(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div",10),r.NdJ("click",function(){r.CHM(t);const e=r.oxw();return e.activeLink=e.links[1].link}),r._uU(1),r.qZA()}if(2&t){const t=r.oxw();r.s9C("routerLink",t.links[1].link),r.Q6J("active",t.activeLink===t.links[1].link)("state",r.DdM(4,Vt)),r.xp6(1),r.Oqu(t.links[1].name)}}function Wt(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div",6),r.NdJ("click",function(){r.CHM(t);const e=r.oxw();return e.activeLink=e.links[2].link}),r._uU(1),r.qZA()}if(2&t){const t=r.oxw();r.s9C("routerLink",t.links[2].link),r.Q6J("active",t.activeLink===t.links[2].link),r.xp6(1),r.Oqu(t.links[2].name)}}let Jt=(()=>{class t{constructor(t,e){this.store=t,this.router=e,this.faTools=N.CgH,this.showLnConfig=!1,this.lnImplementationStr="",this.links=[{link:"node",name:"Node"},{link:"services",name:"Services"},{link:"lnconfig",name:this.lnImplementationStr}],this.activeLink="",this.unSubs=[new h.x,new h.x,new h.x]}ngOnInit(){const t=this.links.find(t=>this.router.url.includes(t.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe((0,k.R)(this.unSubs[0]),(0,A.h)(t=>t instanceof R.Av)).subscribe(t=>{const e=this.links.find(e=>t.urlAfterRedirects.includes(e.link));this.activeLink=e?e.link:this.links[0].link}),this.store.select("root").pipe((0,k.R)(this.unSubs[1])).subscribe(t=>{switch(this.showLnConfig=!1,this.appConfig=t.appConfig,this.selNode=t.selNode,this.selNode.lnImplementation.toUpperCase()){case"CLT":this.lnImplementationStr="C-Lightning Config";break;case"ECL":this.lnImplementationStr="Eclair Config";break;default:this.lnImplementationStr="LND Config"}this.selNode.authentication&&this.selNode.authentication.configPath&&""!==this.selNode.authentication.configPath.trim()&&(this.links[2].name=this.lnImplementationStr,this.showLnConfig=!0)})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(a.yh),r.Y36(R.F0))},t.\u0275cmp=r.Xpm({type:t,selectors:[["rtl-node-config"]],decls:14,vars:6,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","state","click",4,"ngIf"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","state","click"]],template:function(t,e){1&t&&(r.TgZ(0,"div",0),r._UZ(1,"fa-icon",1),r.TgZ(2,"span",2),r._uU(3,"Node Config"),r.qZA(),r.qZA(),r.TgZ(4,"div",3),r.TgZ(5,"mat-card"),r.TgZ(6,"mat-card-content",4),r.TgZ(7,"nav",5),r.TgZ(8,"div",6),r.NdJ("click",function(){return e.activeLink=e.links[0].link}),r._uU(9),r.qZA(),r.YNc(10,Qt,2,5,"div",7),r.YNc(11,Wt,2,3,"div",8),r.qZA(),r.TgZ(12,"div",9),r._UZ(13,"router-outlet"),r.qZA(),r.qZA(),r.qZA(),r.qZA()),2&t&&(r.xp6(1),r.Q6J("icon",e.faTools),r.xp6(7),r.s9C("routerLink",e.links[0].link),r.Q6J("active",e.activeLink===e.links[0].link),r.xp6(1),r.Oqu(e.links[0].name),r.xp6(1),r.Q6J("ngIf","LND"===e.selNode.lnImplementation.toUpperCase()),r.xp6(1),r.Q6J("ngIf",e.showLnConfig))},directives:[P.xw,P.Wh,F.BN,Z.a8,Z.dn,B.BU,B.Nj,R.rH,U.O5,P.yH,R.lC],styles:[""]}),t})();function Xt(t,e){1&t&&r._UZ(0,"mat-divider",7)}function Kt(t,e){if(1&t&&(r.TgZ(0,"div",4),r.TgZ(1,"pre",5),r._uU(2),r.ALo(3,"json"),r.qZA(),r.YNc(4,Xt,1,0,"mat-divider",6),r.qZA()),2&t){const t=r.oxw();r.xp6(2),r.Oqu(r.lcZ(3,2,t.configData)),r.xp6(2),r.Q6J("ngIf",""!==t.configData)}}function $t(t,e){if(1&t&&(r.TgZ(0,"h2"),r._uU(1),r.qZA()),2&t){const t=r.oxw().$implicit;r.xp6(1),r.Oqu(t)}}function te(t,e){if(1&t&&(r.TgZ(0,"h4",14),r._uU(1),r.qZA()),2&t){const t=r.oxw().$implicit;r.xp6(1),r.Oqu(t)}}function ee(t,e){1&t&&r._UZ(0,"mat-divider",15),2&t&&r.Q6J("inset",!0)}function ie(t,e){if(1&t&&(r.TgZ(0,"mat-list-item"),r.TgZ(1,"mat-card-subtitle",7),r.YNc(2,$t,2,1,"h2",10),r.qZA(),r.TgZ(3,"mat-card-subtitle",11),r.YNc(4,te,2,1,"h4",12),r.qZA(),r.YNc(5,ee,1,1,"mat-divider",13),r.qZA()),2&t){const t=e.$implicit;r.xp6(2),r.Q6J("ngIf",t.indexOf("[")>=0),r.xp6(2),r.Q6J("ngIf",t.indexOf("[")<0),r.xp6(1),r.Q6J("ngIf",t.indexOf("[")<0)}}function ne(t,e){if(1&t&&(r.TgZ(0,"div",8),r.TgZ(1,"mat-list"),r.YNc(2,ie,6,3,"mat-list-item",9),r.qZA(),r.qZA()),2&t){const t=r.oxw();r.xp6(2),r.Q6J("ngForOf",t.configData)}}let re=(()=>{class t{constructor(t,e,i){this.store=t,this.rtlEffects=e,this.router=i,this.selectedNodeType="",this.configData="",this.fileFormat="INI",this.faCog=N.b7W,this.unSubs=[new h.x,new h.x]}ngOnInit(){this.selectedNodeType=this.router.url.includes("bconfig")?"bitcoind":"ln",this.router.events.pipe((0,k.R)(this.unSubs[0]),(0,A.h)(t=>t instanceof R.Av)).subscribe(t=>{this.selectedNodeType=t.urlAfterRedirects.includes("bconfig")?"bitcoind":"ln"}),this.store.dispatch(new j.Fj(this.selectedNodeType)),this.rtlEffects.showLnConfig.pipe((0,k.R)(this.unSubs[1])).subscribe(t=>{const e=t.data;this.fileFormat=t.format,this.configData=""===e||!e||"INI"!==this.fileFormat&&"HOCON"!==this.fileFormat?""!==e&&e&&"JSON"===this.fileFormat?e:"":e.split("\n")})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(a.yh),r.Y36(lt.V),r.Y36(R.F0))},t.\u0275cmp=r.Xpm({type:t,selectors:[["rtl-lnp-config"]],decls:4,vars:2,consts:[["fxLayout","column","fxFlex","100"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start"],["fxFlex","100","class","mb-6",4,"ngIf"],["fxFlex","100",4,"ngIf"],["fxFlex","100",1,"mb-6"],[1,"pre-wrap"],["class","my-1",4,"ngIf"],[1,"my-1"],["fxFlex","100"],[4,"ngFor","ngForOf"],[4,"ngIf"],[1,"m-0"],["class","ml-4",4,"ngIf"],[3,"inset",4,"ngIf"],[1,"ml-4"],[3,"inset"]],template:function(t,e){1&t&&(r.TgZ(0,"div",0),r.TgZ(1,"div",1),r.YNc(2,Kt,5,4,"div",2),r.YNc(3,ne,3,1,"div",3),r.qZA(),r.qZA()),2&t&&(r.xp6(2),r.Q6J("ngIf",""!==e.configData&&"JSON"===e.fileFormat),r.xp6(1),r.Q6J("ngIf",""!==e.configData&&("INI"===e.fileFormat||"HOCON"===e.fileFormat)))},directives:[P.xw,P.yH,P.Wh,U.O5,Ot.d,Zt.i$,U.sg,Zt.Tg,Z.$j],pipes:[U.Ts],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),t})();var se=i(6124),oe=i(9939),ae=i(5678),le=i(1084),ce=i(7521),he=i(4810),ue=i(377);function de(t,e){if(1&t&&(r.TgZ(0,"mat-option",35),r._uU(1),r.qZA()),2&t){const t=e.$implicit;r.Q6J("value",t.id),r.xp6(1),r.hij(" ",t.id," ")}}function pe(t,e){1&t&&(r.TgZ(0,"mat-error"),r._uU(1,"Currency unit is required."),r.qZA())}function fe(t,e){if(1&t&&(r.TgZ(0,"mat-radio-button",36),r._uU(1),r.ALo(2,"titlecase"),r.qZA()),2&t){const t=e.$implicit,i=r.oxw();r.Q6J("value",t)("checked",i.selNode.settings.userPersona===t),r.xp6(1),r.hij(" ",r.lcZ(2,3,t)," ")}}const me=function(t){return{"mr-4":t}};function ge(t,e){if(1&t&&(r.TgZ(0,"mat-radio-button",37),r._uU(1),r.qZA()),2&t){const t=e.$implicit,i=r.oxw();r.Q6J("value",t)("ngClass",r.VKq(3,me,i.screenSize===i.screenSizeEnum.XS||i.screenSize===i.screenSizeEnum.SM)),r.xp6(1),r.hij("",t.name," ")}}const ye=function(t){return{skin:!0,"selected-color":t}};function be(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"span",38),r.TgZ(1,"div",39),r.NdJ("click",function(){const e=r.CHM(t).$implicit;return r.oxw().changeThemeColor(e.id)}),r.ALo(2,"lowercase"),r.qZA(),r._uU(3),r.qZA()}if(2&t){const t=e.$implicit,i=r.oxw();r.xp6(1),r.Tol(r.lcZ(2,4,t.id)),r.Q6J("ngClass",r.VKq(6,ye,i.selectedThemeColor===t.id)),r.xp6(2),r.hij(" ",t.name," ")}}let ve=(()=>{class t{constructor(t,e,i){this.logger=t,this.commonService=e,this.store=i,this.faExclamationTriangle=N.eHv,this.faMoneyBillAlt=N.co4,this.faPaintBrush=N.XsY,this.faInfoCircle=N.sqG,this.information={},this.userPersonas=[G.ol.OPERATOR,G.ol.MERCHANT],this.currencyUnits=G.Er,this.themeModes=G.wZ.modes,this.themeColors=G.wZ.themes,this.selectedThemeMode=G.wZ.modes[0],this.selectedThemeColor=G.wZ.themes[0].id,this.currencyUnit="BTC",this.smallerCurrencyUnit="Sats",this.showSettingOption=!0,this.screenSize="",this.screenSizeEnum=G.cu,this.unSubs=[new h.x,new h.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select("root").pipe((0,k.R)(this.unSubs[0])).subscribe(t=>{this.appConfig=t.appConfig,this.selNode=t.selNode,this.selectedThemeMode=this.themeModes.find(t=>this.selNode.settings.themeMode===t.id),this.selectedThemeColor=this.selNode.settings.themeColor,this.information=t.nodeData,this.selNode.settings.fiatConversion||(this.selNode.settings.currencyUnit=null),this.previousSettings=JSON.parse(JSON.stringify(this.selNode.settings)),this.logger.info(t)})}onCurrencyChange(t){this.selNode.settings.currencyUnits=[...G.uA,t.value],this.store.dispatch(new ae.vI({userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:t.value,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl})),this.store.dispatch(new oe.vI({userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:t.value,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl})),this.store.dispatch(new se.vI({userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:t.value,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}))}toggleSettings(t,e){this.selNode.settings[t]=!this.selNode.settings[t]}changeThemeColor(t){this.selectedThemeColor=t,this.selNode.settings.themeColor=t}chooseThemeMode(){this.selNode.settings.themeMode=this.selectedThemeMode.id}onUpdateSettings(){if(this.selNode.settings.fiatConversion&&!this.selNode.settings.currencyUnit)return!0;this.logger.info(this.selNode.settings),this.store.dispatch(new j.j_({uiMessage:G.m6.UPDATE_NODE_SETTINGS,settings:this.selNode.settings})),this.store.dispatch(new ae.vI({userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl})),this.store.dispatch(new oe.vI({userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl})),this.store.dispatch(new se.vI({userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}))}onResetSettings(){this.selNode.settings=this.previousSettings,this.selectedThemeMode=this.themeModes.find(t=>t.id===this.previousSettings.themeMode),this.selectedThemeColor=this.previousSettings.themeColor,this.store.dispatch(new j.ZG({uiMessage:G.m6.NO_SPINNER,lnNode:this.selNode,isInitialSetup:!0}))}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(V.mQ),r.Y36(le.v),r.Y36(a.yh))},t.\u0275cmp=r.Xpm({type:t,selectors:[["rtl-node-settings"]],decls:60,vars:17,consts:[["fxLayout","column","fxFlex","100",3,"perfectScrollbar"],["fxLayout","column","fxLayoutAlign","start stretch",1,"settings-container","page-sub-title-container","mt-1"],["form","ngForm"],["fxLayout","row"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column","fxLayoutAlign","start stretch",1,"mt-1","bordered-box","padding-gap-large"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["href","https://www.blockchain.com/api/exchange_rates_api","target","blank"],["fxLayout","row wrap","fxLayoutAlign","start center"],["tabindex","2","color","primary","name","fiatConversion",3,"ngModel","ngModelChange","change"],["autoFocus","","placeholder","Fiat Currency","tabindex","3","name","currencyUnit",3,"ngModel","disabled","required","ngModelChange","selectionChange"],["currencyUnit","ngModel"],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","row wrap","fxLayoutAlign","start start","fxLayout.gt-sm","column","fxFlex","100","fxLayoutAlign.gt-sm","space-between stretch",1,"settings-container","page-sub-title-container","mt-1"],[1,"mt-1"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100"],["fxLayout","row","fxFlex","100",1,"alert","alert-info","mb-0"],["fxLayout","column","fxLayoutAlign","start start","fxFlex","100"],["color","primary","tabindex","1","name","userPersona",3,"ngModel","ngModelChange"],["class","mr-4",3,"value","checked",4,"ngFor","ngForOf"],[1,"mt-1",3,"inset"],["fxLayout","column","fxLayout.gt-xs","row","fxFlex","100","fxLayoutAlign","space-between stretch","fxLayoutAlign.gt-xs","start stretch"],["fxFlex.gt-xs","20","fxFlex.gt-md","15","fxLayout","column","fxLayoutAlign","space-between stretch"],["color","primary","name","themeMode",3,"ngModel","ngModelChange","change"],["tabindex","5",3,"value","ngClass",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex.gt-xs","50","fxFlex.gt-md","40","fxLayoutAlign","space-between stretch"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start"],["fxLayout","row","class","theme-name",4,"ngFor","ngForOf"],["fxLayout","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","10",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","11",3,"click"],[3,"value"],[1,"mr-4",3,"value","checked"],["tabindex","5",3,"value","ngClass"],["fxLayout","row",1,"theme-name"],["tabindex","9",3,"ngClass","click"]],template:function(t,e){1&t&&(r.TgZ(0,"div",0),r.TgZ(1,"form",1,2),r.TgZ(3,"div",3),r._UZ(4,"fa-icon",4),r.TgZ(5,"span",5),r._uU(6,"Balance Display"),r.qZA(),r.qZA(),r.TgZ(7,"div",6),r.TgZ(8,"div",7),r._UZ(9,"fa-icon",8),r.TgZ(10,"span"),r._uU(11,"Fiat conversion calls "),r.TgZ(12,"strong"),r.TgZ(13,"a",9),r._uU(14,"Blockchain.com"),r.qZA(),r.qZA(),r._uU(15," API to get conversion rates."),r.qZA(),r.qZA(),r.TgZ(16,"div",10),r.TgZ(17,"mat-slide-toggle",11),r.NdJ("ngModelChange",function(t){return e.selNode.settings.fiatConversion=t})("change",function(t){return e.selNode.settings.currencyUnit=t.checked?e.selNode.settings.currencyUnit:null}),r._uU(18,"Enable Fiat Conversion"),r.qZA(),r.TgZ(19,"mat-form-field"),r.TgZ(20,"mat-select",12,13),r.NdJ("ngModelChange",function(t){return e.selNode.settings.currencyUnit=t})("selectionChange",function(t){return e.onCurrencyChange(t)}),r.YNc(22,de,2,2,"mat-option",14),r.qZA(),r.YNc(23,pe,2,0,"mat-error",15),r.qZA(),r.qZA(),r.qZA(),r.TgZ(24,"div",16),r.TgZ(25,"div",17),r.TgZ(26,"div",18),r._UZ(27,"fa-icon",4),r.TgZ(28,"span",5),r._uU(29,"Customization"),r.qZA(),r.qZA(),r.TgZ(30,"div",6),r.TgZ(31,"div",19),r.TgZ(32,"div",20),r._UZ(33,"fa-icon",8),r.TgZ(34,"span"),r._uU(35,"Dashboard layout will be tailored based on the role selected to better serve its needs."),r.qZA(),r.qZA(),r.TgZ(36,"div",21),r.TgZ(37,"h4"),r._uU(38,"Dashboard Layout"),r.qZA(),r.TgZ(39,"mat-radio-group",22),r.NdJ("ngModelChange",function(t){return e.selNode.settings.userPersona=t}),r.YNc(40,fe,3,5,"mat-radio-button",23),r.qZA(),r.qZA(),r.qZA(),r._UZ(41,"mat-divider",24),r.TgZ(42,"div",25),r.TgZ(43,"div",26),r.TgZ(44,"h4"),r._uU(45,"Mode"),r.qZA(),r.TgZ(46,"mat-radio-group",27),r.NdJ("ngModelChange",function(t){return e.selectedThemeMode=t})("change",function(){return e.chooseThemeMode()}),r.YNc(47,ge,2,5,"mat-radio-button",28),r.qZA(),r.qZA(),r.qZA(),r._UZ(48,"mat-divider",24),r.TgZ(49,"div",25),r.TgZ(50,"div",29),r.TgZ(51,"h4"),r._uU(52,"Themes"),r.qZA(),r.TgZ(53,"div",30),r.YNc(54,be,4,8,"span",31),r.qZA(),r.qZA(),r.qZA(),r.qZA(),r.qZA(),r.qZA(),r.qZA(),r.TgZ(55,"div",32),r.TgZ(56,"button",33),r.NdJ("click",function(){return e.onResetSettings()}),r._uU(57,"Reset"),r.qZA(),r.TgZ(58,"button",34),r.NdJ("click",function(){return e.onUpdateSettings()}),r._uU(59,"Update"),r.qZA(),r.qZA(),r.qZA()),2&t&&(r.xp6(4),r.Q6J("icon",e.faMoneyBillAlt),r.xp6(5),r.Q6J("icon",e.faExclamationTriangle),r.xp6(8),r.Q6J("ngModel",e.selNode.settings.fiatConversion),r.xp6(3),r.Q6J("ngModel",e.selNode.settings.currencyUnit)("disabled",!e.selNode.settings.fiatConversion)("required",e.selNode.settings.fiatConversion),r.xp6(2),r.Q6J("ngForOf",e.currencyUnits),r.xp6(1),r.Q6J("ngIf",e.selNode.settings.fiatConversion&&!e.selNode.settings.currencyUnit),r.xp6(4),r.Q6J("icon",e.faPaintBrush),r.xp6(6),r.Q6J("icon",e.faInfoCircle),r.xp6(6),r.Q6J("ngModel",e.selNode.settings.userPersona),r.xp6(1),r.Q6J("ngForOf",e.userPersonas),r.xp6(1),r.Q6J("inset",!0),r.xp6(5),r.Q6J("ngModel",e.selectedThemeMode),r.xp6(1),r.Q6J("ngForOf",e.themeModes),r.xp6(1),r.Q6J("inset",!0),r.xp6(6),r.Q6J("ngForOf",e.themeColors))},directives:[P.xw,P.yH,Q.$V,W._Y,W.JL,W.F,P.Wh,F.BN,ce.Rr,W.JJ,W.On,J.KE,X.gD,K.h,W.Q7,U.sg,U.O5,he.VQ,Ot.d,$.lW,tt.ey,J.TO,he.U0,U.mk,ue.oO],pipes:[U.rS,U.i8],styles:[""]}),t})();const _e=function(){return{initial:!1}};let we=(()=>{class t{constructor(t,e){this.store=t,this.router=e,this.faLayerGroup=N.Krp,this.links=[{link:"loop",name:"Loop"},{link:"boltz",name:"Boltz"}],this.activeLink="",this.unSubs=[new h.x,new h.x,new h.x]}ngOnInit(){const t=this.links.find(t=>this.router.url.includes(t.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe((0,k.R)(this.unSubs[0]),(0,A.h)(t=>t instanceof R.Av)).subscribe(t=>{const e=this.links.find(e=>t.urlAfterRedirects.includes(e.link));this.activeLink=e?e.link:this.links[0].link}),this.store.select("root").pipe((0,k.R)(this.unSubs[1])).subscribe(t=>{this.appConfig=t.appConfig,this.selNode=t.selNode})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(a.yh),r.Y36(R.F0))},t.\u0275cmp=r.Xpm({type:t,selectors:[["rtl-services-settings"]],decls:14,vars:9,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container","mt-1"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","state","click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"]],template:function(t,e){1&t&&(r.TgZ(0,"div",0),r._UZ(1,"fa-icon",1),r.TgZ(2,"span",2),r._uU(3,"Services"),r.qZA(),r.qZA(),r.TgZ(4,"div",3),r.TgZ(5,"mat-card"),r.TgZ(6,"mat-card-content",4),r.TgZ(7,"nav",5),r.TgZ(8,"div",6),r.NdJ("click",function(){return e.activeLink=e.links[0].link}),r._uU(9),r.qZA(),r.TgZ(10,"div",7),r.NdJ("click",function(){return e.activeLink=e.links[1].link}),r._uU(11),r.qZA(),r.qZA(),r.TgZ(12,"div",8),r._UZ(13,"router-outlet"),r.qZA(),r.qZA(),r.qZA(),r.qZA()),2&t&&(r.xp6(1),r.Q6J("icon",e.faLayerGroup),r.xp6(7),r.s9C("routerLink",e.links[0].link),r.Q6J("active",e.activeLink===e.links[0].link),r.xp6(1),r.Oqu(e.links[0].name),r.xp6(1),r.s9C("routerLink",e.links[1].link),r.Q6J("active",e.activeLink===e.links[1].link)("state",r.DdM(8,_e)),r.xp6(1),r.Oqu(e.links[1].name))},directives:[P.xw,P.Wh,F.BN,Z.a8,Z.dn,B.BU,B.Nj,R.rH,P.yH,R.lC],styles:[""]}),t})();const xe=["form"];function Ce(t,e){1&t&&(r.TgZ(0,"mat-error"),r._uU(1,"Loop server URL is required."),r.qZA())}function Ae(t,e){1&t&&(r.TgZ(0,"mat-error"),r._uU(1,"Specify the loop server url with 'https://'."),r.qZA())}function Se(t,e){1&t&&(r.TgZ(0,"mat-error"),r._uU(1,"Loop macaroon path is required."),r.qZA())}let Ee=(()=>{class t{constructor(t,e){this.logger=t,this.store=e,this.faInfoCircle=N.sqG,this.enableLoop=!1,this.unSubs=[new h.x,new h.x]}ngOnInit(){this.store.select("root").pipe((0,k.R)(this.unSubs[0])).subscribe(t=>{this.appConfig=t.appConfig,this.selNode=t.selNode,this.enableLoop=t.selNode.settings.swapServerUrl&&""!==t.selNode.settings.swapServerUrl.trim(),this.previousSelNode=JSON.parse(JSON.stringify(this.selNode)),this.logger.info(t)})}onEnableServiceChanged(t){this.enableLoop=t.checked,this.enableLoop||(this.selNode.authentication.swapMacaroonPath="",this.selNode.settings.swapServerUrl="")}onUpdateService(){if(this.selNode.settings.swapServerUrl&&""!==this.selNode.settings.swapServerUrl.trim()&&!this.form.controls.srvrUrl.value.includes("https://")&&this.form.controls.srvrUrl.setErrors({invalid:!0}),this.enableLoop&&(!this.selNode.settings.swapServerUrl||""===this.selNode.settings.swapServerUrl.trim()||!this.selNode.authentication.swapMacaroonPath||""===this.selNode.authentication.swapMacaroonPath.trim()))return!0;this.logger.info(this.selNode),this.store.dispatch(new j.wq({uiMessage:G.m6.UPDATE_LOOP_SETTINGS,service:G.JX.LOOP,settings:{enable:this.enableLoop,serverUrl:this.selNode.settings.swapServerUrl,macaroonPath:this.selNode.authentication.swapMacaroonPath}})),this.store.dispatch(new ae.vI({userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl})),this.store.dispatch(new oe.vI({userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl})),this.store.dispatch(new se.vI({userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}))}onReset(){this.selNode=JSON.parse(JSON.stringify(this.previousSelNode)),this.enableLoop=this.selNode.settings.swapServerUrl&&""!==this.selNode.settings.swapServerUrl.trim()}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(V.mQ),r.Y36(a.yh))},t.\u0275cmp=r.Xpm({type:t,selectors:[["rtl-loop-service-settings"]],viewQuery:function(t,e){if(1&t&&r.Gf(xe,7),2&t){let t;r.iGM(t=r.CRH())&&(e.form=t.first)}},decls:34,vars:11,consts:[["fxLayout","column","fxFlex","100",3,"perfectScrollbar"],["fxFlex","100",1,"alert","alert-info","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["href","https://github.com/lightninglabs/loop","target","_blank"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"settings-container","page-sub-title-container","mt-1"],["form","ngForm"],["fxLayout","column","fxFlex","50","fxLayoutAlign","start stretch"],["autoFocus","","tabindex","1","color","primary","name","loop",1,"mb-1",3,"ngModel","ngModelChange","change"],[1,"mb-2"],["matInput","","placeholder","Loop Server URL","type","text","id","swapServerUrl","name","srvrUrl","tabindex","2",3,"ngModel","required","disabled","ngModelChange"],["srvrUrl","ngModel"],[4,"ngIf"],["matInput","","placeholder","Loop Macaroon Path","type","text","id","swapMacaroonPath","name","swapMacaroonPath","tabindex","3",3,"ngModel","required","disabled","ngModelChange"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","type","reset","tabindex","4",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","5",3,"click"]],template:function(t,e){if(1&t&&(r.TgZ(0,"div",0),r.TgZ(1,"div",1),r._UZ(2,"fa-icon",2),r.TgZ(3,"span"),r._uU(4,"Please ensure that "),r.TgZ(5,"strong"),r._uU(6,"loopd"),r.qZA(),r._uU(7," is running and accessible to RTL before enabling this service. Click "),r.TgZ(8,"strong"),r.TgZ(9,"a",3),r._uU(10,"here"),r.qZA(),r.qZA(),r._uU(11," to learn more about the installation."),r.qZA(),r.qZA(),r.TgZ(12,"form",4,5),r.TgZ(14,"div",6),r.TgZ(15,"mat-slide-toggle",7),r.NdJ("ngModelChange",function(t){return e.enableLoop=t})("change",function(t){return e.onEnableServiceChanged(t)}),r._uU(16,"Enable Loop Service"),r.qZA(),r.TgZ(17,"mat-form-field",8),r.TgZ(18,"input",9,10),r.NdJ("ngModelChange",function(t){return e.selNode.settings.swapServerUrl=t}),r.qZA(),r.TgZ(20,"mat-hint"),r._uU(21,"Service url for loop server REST APIs, eg. https://localhost:8081"),r.qZA(),r.YNc(22,Ce,2,0,"mat-error",11),r.YNc(23,Ae,2,0,"mat-error",11),r.qZA(),r.TgZ(24,"mat-form-field"),r.TgZ(25,"input",12),r.NdJ("ngModelChange",function(t){return e.selNode.authentication.swapMacaroonPath=t}),r.qZA(),r.TgZ(26,"mat-hint"),r._uU(27,"Path for the folder containing service 'loop.macaroon', eg. D:\\\\xyz\\\\AppData\\\\Local\\\\Loop\\\\testnet"),r.qZA(),r.YNc(28,Se,2,0,"mat-error",11),r.qZA(),r.qZA(),r.qZA(),r.TgZ(29,"div",13),r.TgZ(30,"button",14),r.NdJ("click",function(){return e.onReset()}),r._uU(31,"Reset"),r.qZA(),r.TgZ(32,"button",15),r.NdJ("click",function(){return e.onUpdateService()}),r._uU(33,"Update"),r.qZA(),r.qZA(),r.qZA()),2&t){const t=r.MAs(19);r.xp6(2),r.Q6J("icon",e.faInfoCircle),r.xp6(13),r.Q6J("ngModel",e.enableLoop),r.xp6(3),r.Q6J("ngModel",e.selNode.settings.swapServerUrl)("required",e.enableLoop)("disabled",!e.enableLoop),r.xp6(4),r.Q6J("ngIf",!e.selNode.settings.swapServerUrl&&e.enableLoop),r.xp6(1),r.Q6J("ngIf",(null==t||null==t.errors?null:t.errors.invalid)&&e.enableLoop),r.xp6(2),r.Q6J("ngModel",e.selNode.authentication.swapMacaroonPath)("required",e.enableLoop)("disabled",!e.enableLoop),r.xp6(3),r.Q6J("ngIf",!e.selNode.authentication.swapMacaroonPath&&e.enableLoop)}},directives:[P.xw,P.yH,Q.$V,F.BN,W._Y,W.JL,W.F,P.Wh,ce.Rr,K.h,W.JJ,W.On,J.KE,ut.Nt,W.Fj,W.Q7,J.bx,U.O5,$.lW,J.TO],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),t})();const ke=["form"];function Te(t,e){1&t&&(r.TgZ(0,"mat-error"),r._uU(1,"Boltz server URL is required."),r.qZA())}function Me(t,e){1&t&&(r.TgZ(0,"mat-error"),r._uU(1,"Specify the boltz server url with 'https://'."),r.qZA())}function Le(t,e){1&t&&(r.TgZ(0,"mat-error"),r._uU(1,"Boltz macaroon path is required."),r.qZA())}let Ie=(()=>{class t{constructor(t,e){this.logger=t,this.store=e,this.faInfoCircle=N.sqG,this.enableBoltz=!1,this.serverUrl="",this.macaroonPath="",this.unSubs=[new h.x,new h.x]}ngOnInit(){this.store.select("root").pipe((0,k.R)(this.unSubs[0])).subscribe(t=>{this.appConfig=t.appConfig,this.selNode=t.selNode,this.enableBoltz=t.selNode.settings.boltzServerUrl&&""!==t.selNode.settings.boltzServerUrl.trim(),this.serverUrl=this.selNode.settings.boltzServerUrl,this.macaroonPath=this.selNode.authentication.boltzMacaroonPath,this.previousSelNode=JSON.parse(JSON.stringify(this.selNode)),this.logger.info(t)})}onEnableServiceChanged(t){this.enableBoltz=t.checked,this.enableBoltz||(this.macaroonPath="",this.serverUrl="")}onUpdateService(){if(this.serverUrl&&""!==this.serverUrl.trim()&&!this.form.controls.srvrUrl.value.includes("https://")&&this.form.controls.srvrUrl.setErrors({invalid:!0}),this.enableBoltz&&(!this.serverUrl||""===this.serverUrl.trim()||!this.serverUrl.includes("https://")||!this.macaroonPath||""===this.macaroonPath.trim()))return!0;this.logger.info(this.selNode),this.selNode.settings.boltzServerUrl=this.serverUrl,this.selNode.authentication.boltzMacaroonPath=this.macaroonPath,this.store.dispatch(new j.wq({uiMessage:G.m6.UPDATE_BOLTZ_SETTINGS,service:G.JX.BOLTZ,settings:{enable:this.enableBoltz,serverUrl:this.serverUrl,macaroonPath:this.macaroonPath}})),this.store.dispatch(new ae.vI({userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.serverUrl})),this.store.dispatch(new oe.vI({userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.serverUrl})),this.store.dispatch(new se.vI({userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.serverUrl}))}onReset(){this.selNode=JSON.parse(JSON.stringify(this.previousSelNode)),this.serverUrl=this.selNode.settings.boltzServerUrl,this.macaroonPath=this.selNode.authentication.boltzMacaroonPath,this.enableBoltz=this.serverUrl&&""!==this.serverUrl.trim()}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(V.mQ),r.Y36(a.yh))},t.\u0275cmp=r.Xpm({type:t,selectors:[["rtl-boltz-service-settings"]],viewQuery:function(t,e){if(1&t&&r.Gf(ke,7),2&t){let t;r.iGM(t=r.CRH())&&(e.form=t.first)}},decls:34,vars:11,consts:[["fxLayout","column","fxFlex","100",3,"perfectScrollbar"],["fxFlex","100",1,"alert","alert-info","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["href","https://lnd.docs.boltz.exchange/en/latest/","target","_blank"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"settings-container","page-sub-title-container","mt-1"],["form","ngForm"],["fxLayout","column","fxFlex","50","fxLayoutAlign","start stretch"],["autoFocus","","tabindex","1","color","primary","name","boltz",1,"mb-1",3,"ngModel","ngModelChange","change"],[1,"mb-2"],["matInput","","placeholder","Boltz Server URL","type","text","id","boltzServerUrl","name","srvrUrl","tabindex","2",3,"ngModel","required","disabled","ngModelChange"],["srvrUrl","ngModel"],[4,"ngIf"],["matInput","","placeholder","Boltz Macaroon Path","type","text","id","boltzMacaroonPath","name","boltzMacaroonPath","tabindex","3",3,"ngModel","required","disabled","ngModelChange"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","type","reset","tabindex","4",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","5",3,"click"]],template:function(t,e){if(1&t&&(r.TgZ(0,"div",0),r.TgZ(1,"div",1),r._UZ(2,"fa-icon",2),r.TgZ(3,"span"),r._uU(4,"Please ensure that "),r.TgZ(5,"strong"),r._uU(6,"boltzd"),r.qZA(),r._uU(7," is running and accessible to RTL before enabling this service. Click "),r.TgZ(8,"strong"),r.TgZ(9,"a",3),r._uU(10,"here"),r.qZA(),r.qZA(),r._uU(11," to learn more about the installation."),r.qZA(),r.qZA(),r.TgZ(12,"form",4,5),r.TgZ(14,"div",6),r.TgZ(15,"mat-slide-toggle",7),r.NdJ("ngModelChange",function(t){return e.enableBoltz=t})("change",function(t){return e.onEnableServiceChanged(t)}),r._uU(16,"Enable Boltz Service"),r.qZA(),r.TgZ(17,"mat-form-field",8),r.TgZ(18,"input",9,10),r.NdJ("ngModelChange",function(t){return e.serverUrl=t}),r.qZA(),r.TgZ(20,"mat-hint"),r._uU(21,"Service url for boltz server REST APIs, eg. https://localhost:9003"),r.qZA(),r.YNc(22,Te,2,0,"mat-error",11),r.YNc(23,Me,2,0,"mat-error",11),r.qZA(),r.TgZ(24,"mat-form-field"),r.TgZ(25,"input",12),r.NdJ("ngModelChange",function(t){return e.macaroonPath=t}),r.qZA(),r.TgZ(26,"mat-hint"),r._uU(27,"Path for the folder containing boltz 'admin.macaroon', eg. D:\\\\xyz\\\\AppData\\\\Boltz\\\\testnet"),r.qZA(),r.YNc(28,Le,2,0,"mat-error",11),r.qZA(),r.qZA(),r.qZA(),r.TgZ(29,"div",13),r.TgZ(30,"button",14),r.NdJ("click",function(){return e.onReset()}),r._uU(31,"Reset"),r.qZA(),r.TgZ(32,"button",15),r.NdJ("click",function(){return e.onUpdateService()}),r._uU(33,"Update"),r.qZA(),r.qZA(),r.qZA()),2&t){const t=r.MAs(19);r.xp6(2),r.Q6J("icon",e.faInfoCircle),r.xp6(13),r.Q6J("ngModel",e.enableBoltz),r.xp6(3),r.Q6J("ngModel",e.serverUrl)("required",e.enableBoltz)("disabled",!e.enableBoltz),r.xp6(4),r.Q6J("ngIf",(!e.serverUrl||""===e.serverUrl.trim())&&e.enableBoltz),r.xp6(1),r.Q6J("ngIf",(null==t||null==t.errors?null:t.errors.invalid)&&e.enableBoltz),r.xp6(2),r.Q6J("ngModel",e.macaroonPath)("required",e.enableBoltz)("disabled",!e.enableBoltz),r.xp6(3),r.Q6J("ngIf",!e.macaroonPath&&e.enableBoltz)}},directives:[P.xw,P.yH,Q.$V,F.BN,W._Y,W.JL,W.F,P.Wh,ce.Rr,K.h,W.JJ,W.On,J.KE,ut.Nt,W.Fj,W.Q7,J.bx,U.O5,$.lW,J.TO],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),t})(),Oe=(()=>{class t{constructor(t,e){this.store=t,this.router=e,this.faLayerGroup=N.Krp,this.showLnConfig=!1,this.showBitcoind=!1,this.lnImplementationStr="",this.links=[{link:"layout",name:"Layout"},{link:"auth",name:"Authentication"},{link:"lnconfig",name:this.lnImplementationStr},{link:"bconfig",name:"BitcoinD Config"}],this.activeLink="",this.unSubs=[new h.x,new h.x,new h.x]}ngOnInit(){const t=this.links.find(t=>this.router.url.includes(t.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe((0,k.R)(this.unSubs[0]),(0,A.h)(t=>t instanceof R.Av)).subscribe(t=>{const e=this.links.find(e=>t.urlAfterRedirects.includes(e.link));this.activeLink=e?e.link:this.links[0].link}),this.store.select("root").pipe((0,k.R)(this.unSubs[1])).subscribe(t=>{switch(this.showLnConfig=!1,this.showBitcoind=!1,this.appConfig=t.appConfig,this.selNode=t.selNode,this.selNode.lnImplementation.toUpperCase()){case"CLT":this.lnImplementationStr="C-Lightning Config";break;case"ECL":this.lnImplementationStr="Eclair Config";break;default:this.lnImplementationStr="LND Config"}this.selNode.authentication&&this.selNode.authentication.configPath&&""!==this.selNode.authentication.configPath.trim()&&(this.links[2].name=this.lnImplementationStr,this.showLnConfig=!0),this.selNode.settings&&this.selNode.settings.bitcoindConfigPath&&""!==this.selNode.settings.bitcoindConfigPath.trim()&&(this.showBitcoind=!0)})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(a.yh),r.Y36(R.F0))},t.\u0275cmp=r.Xpm({type:t,selectors:[["rtl-services"]],decls:1,vars:0,template:function(t,e){1&t&&r._UZ(0,"router-outlet")},directives:[R.lC],styles:[""]}),t})();var De=i(5028),Re=i(2969),Ne=i(3005),Pe=i(2464),Fe=i(7033),Ze=i(5994);function Be(t,e){1&t&&r._UZ(0,"mat-progress-bar",34)}function Ue(t,e){1&t&&(r.TgZ(0,"th",35),r._uU(1," Initiation Time "),r.qZA())}function qe(t,e){if(1&t&&(r.TgZ(0,"td",36),r._uU(1),r.ALo(2,"date"),r.qZA()),2&t){const t=e.$implicit;r.xp6(1),r.Oqu(r.xi3(2,1,t.initiation_time/1e6,"dd/MMM/YYYY HH:mm"))}}function ze(t,e){1&t&&(r.TgZ(0,"th",35),r._uU(1," Last Update Time "),r.qZA())}function He(t,e){if(1&t&&(r.TgZ(0,"td",36),r._uU(1),r.ALo(2,"date"),r.qZA()),2&t){const t=e.$implicit;r.xp6(1),r.Oqu(r.xi3(2,1,t.last_update_time/1e6,"dd/MMM/YYYY HH:mm"))}}function Ye(t,e){1&t&&(r.TgZ(0,"th",35),r._uU(1," ID "),r.qZA())}function Ge(t,e){if(1&t&&(r.TgZ(0,"td",36),r._uU(1),r.qZA()),2&t){const t=e.$implicit;r.xp6(1),r.Oqu(t.id)}}function je(t,e){1&t&&(r.TgZ(0,"th",35),r._uU(1," ID (Bytes) "),r.qZA())}function Ve(t,e){if(1&t&&(r.TgZ(0,"td",36),r._uU(1),r.qZA()),2&t){const t=e.$implicit;r.xp6(1),r.Oqu(t.id_bytes)}}function Qe(t,e){1&t&&(r.TgZ(0,"th",35),r._uU(1," State "),r.qZA())}function We(t,e){if(1&t&&(r.TgZ(0,"td",36),r._uU(1),r.qZA()),2&t){const t=e.$implicit,i=r.oxw();r.xp6(1),r.Oqu(i.LoopStateEnum[t.state])}}function Je(t,e){1&t&&(r.TgZ(0,"th",35),r._uU(1," HTLC Address "),r.qZA())}function Xe(t,e){if(1&t&&(r.TgZ(0,"td",36),r._uU(1),r.qZA()),2&t){const t=e.$implicit;r.xp6(1),r.Oqu(t.htlc_address)}}function Ke(t,e){1&t&&(r.TgZ(0,"th",37),r._uU(1," Amount (Sats) "),r.qZA())}function $e(t,e){if(1&t&&(r.TgZ(0,"td",36),r.TgZ(1,"span",38),r._uU(2),r.ALo(3,"number"),r.qZA(),r.qZA()),2&t){const t=e.$implicit;r.xp6(2),r.Oqu(r.lcZ(3,1,t.amt))}}function ti(t,e){1&t&&(r.TgZ(0,"th",37),r._uU(1," Cost Server (Sats) "),r.qZA())}function ei(t,e){if(1&t&&(r.TgZ(0,"td",36),r.TgZ(1,"span",38),r._uU(2),r.ALo(3,"number"),r.qZA(),r.qZA()),2&t){const t=e.$implicit;r.xp6(2),r.Oqu(r.lcZ(3,1,t.cost_server))}}function ii(t,e){1&t&&(r.TgZ(0,"th",37),r._uU(1," Cost Offchain (Sats) "),r.qZA())}function ni(t,e){if(1&t&&(r.TgZ(0,"td",36),r.TgZ(1,"span",38),r._uU(2),r.ALo(3,"number"),r.qZA(),r.qZA()),2&t){const t=e.$implicit;r.xp6(2),r.Oqu(r.lcZ(3,1,t.cost_offchain))}}function ri(t,e){1&t&&(r.TgZ(0,"th",37),r._uU(1," Cost Onchain (Sats) "),r.qZA())}function si(t,e){if(1&t&&(r.TgZ(0,"td",36),r.TgZ(1,"span",38),r._uU(2),r.ALo(3,"number"),r.qZA(),r.qZA()),2&t){const t=e.$implicit;r.xp6(2),r.hij(" ",r.lcZ(3,1,null==t?null:t.cost_onchain)," ")}}function oi(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"th",39),r.TgZ(1,"div",40),r.TgZ(2,"mat-select",41),r._UZ(3,"mat-select-trigger"),r.TgZ(4,"mat-option",42),r.NdJ("click",function(){return r.CHM(t),r.oxw().onDownloadCSV()}),r._uU(5,"Download CSV"),r.qZA(),r.qZA(),r.qZA(),r.qZA()}}function ai(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"td",43),r.TgZ(1,"button",44),r.NdJ("click",function(e){const i=r.CHM(t).$implicit;return r.oxw().onSwapClick(i,e)}),r._uU(2,"View Info"),r.qZA(),r.qZA()}}function li(t,e){if(1&t&&(r.TgZ(0,"p"),r._uU(1),r.qZA()),2&t){const t=r.oxw(2);r.xp6(1),r.Oqu(t.emptyTableMessage)}}function ci(t,e){if(1&t&&(r.TgZ(0,"td",45),r.YNc(1,li,2,1,"p",46),r.qZA()),2&t){const t=r.oxw();r.xp6(1),r.Q6J("ngIf",!(null!=t.listSwaps&&t.listSwaps.data)||(null==t.listSwaps||null==t.listSwaps.data?null:t.listSwaps.data.length)<1)}}const hi=function(t){return{"display-none":t}};function ui(t,e){if(1&t&&r._UZ(0,"tr",47),2&t){const t=r.oxw();r.Q6J("ngClass",r.VKq(1,hi,(null==t.listSwaps?null:t.listSwaps.data)&&(null==t.listSwaps||null==t.listSwaps.data?null:t.listSwaps.data.length)>0))}}function di(t,e){1&t&&r._UZ(0,"tr",48)}function pi(t,e){1&t&&r._UZ(0,"tr",49)}const fi=function(t){return{"overflow-auto error-border":t,"overflow-auto":!0}},mi=function(){return["no_swap"]};let gi=(()=>{class t{constructor(t,e,i,n){this.logger=t,this.commonService=e,this.store=i,this.loopService=n,this.selectedSwapType=G.$I.LOOP_OUT,this.swapsData=[],this.flgLoading=[!0],this.emptyTableMessage="No swaps available.",this.LoopStateEnum=G.Fq,this.faHistory=N.qO$,this.swapCaption="Loop Out",this.displayedColumns=[],this.flgSticky=!1,this.pageSize=G.IV,this.pageSizeOptions=G.TJ,this.screenSize="",this.screenSizeEnum=G.cu,this.unSubs=[new h.x,new h.x,new h.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===G.cu.XS||this.screenSize===G.cu.SM?(this.flgSticky=!1,this.displayedColumns=["state","amt","actions"]):this.screenSize===G.cu.MD?(this.flgSticky=!1,this.displayedColumns=["state","initiation_time","amt","actions"]):(this.flgSticky=!0,this.displayedColumns=["state","initiation_time","amt","cost_server","cost_offchain","cost_onchain","actions"])}ngAfterViewInit(){this.swapsData&&this.swapsData.length>0&&this.loadSwapsTable(this.swapsData)}ngOnChanges(t){this.swapCaption=this.selectedSwapType===G.$I.LOOP_IN?"Loop In":"Loop Out",this.loadSwapsTable(this.swapsData)}applyFilter(t){this.listSwaps.filter=t.value.trim().toLowerCase()}onSwapClick(t,e){this.loopService.getSwap(t.id_bytes.replace(/\//g,"_").replace(/\+/g,"-")).pipe((0,k.R)(this.unSubs[2])).subscribe(t=>{this.store.dispatch(new j.wu({data:{type:G.n_.INFORMATION,alertTitle:this.swapCaption+" Status",message:[[{key:"state",value:G.Fq[t.state],title:"Status",width:50,type:G.Gi.STRING},{key:"amt",value:t.amt,title:"Amount (Sats)",width:50,type:G.Gi.NUMBER}],[{key:"initiation_time",value:t.initiation_time/1e9,title:"Initiation Time",width:50,type:G.Gi.DATE_TIME},{key:"last_update_time",value:t.last_update_time/1e9,title:"Last Update Time",width:50,type:G.Gi.DATE_TIME}],[{key:"cost_server",value:t.cost_server,title:"Server Cost (Sats)",width:33,type:G.Gi.NUMBER},{key:"cost_offchain",value:t.cost_offchain,title:"Offchain Cost (Sats)",width:33,type:G.Gi.NUMBER},{key:"cost_onchain",value:t.cost_onchain,title:"Onchain Cost (Sats)",width:34,type:G.Gi.NUMBER}],[{key:"id_bytes",value:t.id_bytes,title:"ID",width:100,type:G.Gi.STRING}],[{key:"htlc_address",value:t.htlc_address,title:"HTLC Address",width:100,type:G.Gi.STRING}]],openedBy:"SWAP"}}))})}loadSwapsTable(t){this.listSwaps=new Fe.by([...t]),this.listSwaps.sort=this.sort,this.listSwaps.sortingDataAccessor=(t,e)=>t[e]&&isNaN(t[e])?t[e].toLocaleLowerCase():t[e]?+t[e]:null,this.listSwaps.filterPredicate=(t,e)=>JSON.stringify(t).toLowerCase().includes(e),this.listSwaps.paginator=this.paginator,this.logger.info(this.listSwaps)}onDownloadCSV(){this.listSwaps.data&&this.listSwaps.data.length>0&&this.commonService.downloadFile(this.listSwaps.data,this.selectedSwapType===G.$I.LOOP_IN?"Loop in":"Loop out")}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(V.mQ),r.Y36(le.v),r.Y36(a.yh),r.Y36(Re.W))},t.\u0275cmp=r.Xpm({type:t,selectors:[["rtl-swaps"]],viewQuery:function(t,e){if(1&t&&(r.Gf(Pe.YE,5),r.Gf(Ne.NW,5)),2&t){let t;r.iGM(t=r.CRH())&&(e.sort=t.first),r.iGM(t=r.CRH())&&(e.paginator=t.first)}},inputs:{selectedSwapType:"selectedSwapType",swapsData:"swapsData",flgLoading:"flgLoading",emptyTableMessage:"emptyTableMessage"},features:[r._Bn([{provide:Ne.ye,useValue:(0,G.pt)("Swaps")}]),r.TTD],decls:52,vars:15,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start start",1,"card-content-gap"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch","fxFlex","100",1,"page-sub-title-container","w-100"],["fxFlex","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"keyup"],["fxLayout","row","fxLayoutAlign","start center",1,"w-100"],["fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","initiation_time"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","last_update_time"],["matColumnDef","id"],["matColumnDef","id_bytes"],["matColumnDef","state"],["matColumnDef","htlc_address"],["matColumnDef","amt"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","cost_server"],["matColumnDef","cost_offchain"],["matColumnDef","cost_onchain"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-3","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_swap"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,e){1&t&&(r.TgZ(0,"div",0),r.TgZ(1,"div",1),r.TgZ(2,"div",2),r._UZ(3,"fa-icon",3),r.TgZ(4,"span",4),r._uU(5),r.qZA(),r.qZA(),r.TgZ(6,"mat-form-field",5),r.TgZ(7,"input",6),r.NdJ("keyup",function(t){return e.applyFilter(t.target)}),r.qZA(),r.qZA(),r.qZA(),r.TgZ(8,"div",7),r.TgZ(9,"div",8),r.YNc(10,Be,1,0,"mat-progress-bar",9),r.TgZ(11,"table",10,11),r.ynx(13,12),r.YNc(14,Ue,2,0,"th",13),r.YNc(15,qe,3,4,"td",14),r.BQk(),r.ynx(16,15),r.YNc(17,ze,2,0,"th",13),r.YNc(18,He,3,4,"td",14),r.BQk(),r.ynx(19,16),r.YNc(20,Ye,2,0,"th",13),r.YNc(21,Ge,2,1,"td",14),r.BQk(),r.ynx(22,17),r.YNc(23,je,2,0,"th",13),r.YNc(24,Ve,2,1,"td",14),r.BQk(),r.ynx(25,18),r.YNc(26,Qe,2,0,"th",13),r.YNc(27,We,2,1,"td",14),r.BQk(),r.ynx(28,19),r.YNc(29,Je,2,0,"th",13),r.YNc(30,Xe,2,1,"td",14),r.BQk(),r.ynx(31,20),r.YNc(32,Ke,2,0,"th",21),r.YNc(33,$e,4,3,"td",14),r.BQk(),r.ynx(34,22),r.YNc(35,ti,2,0,"th",21),r.YNc(36,ei,4,3,"td",14),r.BQk(),r.ynx(37,23),r.YNc(38,ii,2,0,"th",21),r.YNc(39,ni,4,3,"td",14),r.BQk(),r.ynx(40,24),r.YNc(41,ri,2,0,"th",21),r.YNc(42,si,4,3,"td",14),r.BQk(),r.ynx(43,25),r.YNc(44,oi,6,0,"th",26),r.YNc(45,ai,3,0,"td",27),r.BQk(),r.ynx(46,28),r.YNc(47,ci,2,1,"td",29),r.BQk(),r.YNc(48,ui,1,3,"tr",30),r.YNc(49,di,1,0,"tr",31),r.YNc(50,pi,1,0,"tr",32),r.qZA(),r._UZ(51,"mat-paginator",33),r.qZA(),r.qZA(),r.qZA()),2&t&&(r.xp6(3),r.Q6J("icon",e.faHistory),r.xp6(2),r.hij("",e.swapCaption," History"),r.xp6(5),r.Q6J("ngIf",!0===e.flgLoading[0]),r.xp6(1),r.Q6J("dataSource",e.listSwaps)("ngClass",r.VKq(12,fi,"error"===e.flgLoading[0])),r.xp6(37),r.Q6J("matFooterRowDef",r.DdM(14,mi)),r.xp6(1),r.Q6J("matHeaderRowDef",e.displayedColumns)("matHeaderRowDefSticky",e.flgSticky),r.xp6(1),r.Q6J("matRowDefColumns",e.displayedColumns),r.xp6(1),r.Q6J("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)("showFirstLastButtons",e.screenSize!==e.screenSizeEnum.XS))},directives:[P.xw,P.yH,P.Wh,F.BN,J.KE,ut.Nt,Q.$V,U.O5,Fe.BZ,Pe.YE,U.mk,ue.oO,Fe.w1,Fe.fO,Fe.Dz,Fe.mD,Fe.Ke,Fe.as,Fe.nj,Ne.NW,Ze.pW,Fe.ge,Pe.nU,Fe.ev,X.gD,X.$L,tt.ey,$.lW,Fe.yh,Fe.Q2,Fe.XQ,Fe.Gk],pipes:[U.uU,U.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),t})();const yi=function(t){return["../",t]};function bi(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div",10),r.NdJ("click",function(){const e=r.CHM(t).$implicit;return r.oxw().onSelectedIndexChange(e)}),r._uU(1),r.qZA()}if(2&t){const t=e.$implicit,i=r.oxw();r.Q6J("active",i.activeTab.link===t.link)("routerLink",r.VKq(3,yi,t.link)),r.xp6(1),r.Oqu(t.name)}}let vi=(()=>{class t{constructor(t,e,i){this.router=t,this.loopService=e,this.store=i,this.faInfinity=N.vqe,this.targetConf=2,this.inAmount=25e4,this.quotes=[],this.LoopTypeEnum=G.$I,this.selectedSwapType=G.$I.LOOP_OUT,this.storedSwaps=[],this.filteredSwaps=[],this.emptyTableMessage="No swap data available.",this.flgLoading=[!0],this.links=[{link:"loopout",name:"Loop Out"},{link:"loopin",name:"Loop In"}],this.activeTab=this.links[0],this.unSubs=[new h.x,new h.x,new h.x,new h.x]}ngOnInit(){this.loopService.listSwaps();const t=this.links.find(t=>this.router.url.includes(t.link));this.activeTab=t||this.links[0],this.selectedSwapType=t&&"loopin"===t.link?G.$I.LOOP_IN:G.$I.LOOP_OUT,this.router.events.pipe((0,k.R)(this.unSubs[0]),(0,A.h)(t=>t instanceof R.Av)).subscribe(t=>{const e=this.links.find(e=>t.urlAfterRedirects.includes(e.link));this.activeTab=e||this.links[0],this.selectedSwapType=e&&"loopin"===e.link?G.$I.LOOP_IN:G.$I.LOOP_OUT}),this.loopService.swapsChanged.pipe((0,k.R)(this.unSubs[1])).subscribe({next:t=>{this.flgLoading[0]=!1,this.storedSwaps=t,this.filteredSwaps=this.storedSwaps.filter(t=>t.type===this.selectedSwapType)},error:t=>{this.flgLoading[0]="error",this.emptyTableMessage=t.message?t.message:"No loop "+(this.selectedSwapType===G.$I.LOOP_IN?"in":"out")+" available."}})}onSelectedIndexChange(t){this.selectedSwapType="loopin"===t.link?G.$I.LOOP_IN:G.$I.LOOP_OUT,this.filteredSwaps=this.storedSwaps.filter(t=>t.type===this.selectedSwapType)}onLoop(t){t===G.$I.LOOP_IN?this.loopService.getLoopInTermsAndQuotes(this.targetConf).pipe((0,k.R)(this.unSubs[2])).subscribe(e=>{this.store.dispatch(new j.wu({data:{minQuote:e[0],maxQuote:e[1],direction:t,component:De.a}}))}):this.loopService.getLoopOutTermsAndQuotes(this.targetConf).pipe((0,k.R)(this.unSubs[3])).subscribe(e=>{this.store.dispatch(new j.wu({data:{minQuote:e[0],maxQuote:e[1],direction:t,component:De.a}}))})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(R.F0),r.Y36(Re.W),r.Y36(a.yh))},t.\u0275cmp=r.Xpm({type:t,selectors:[["rtl-loop"]],decls:13,vars:7,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start start",1,"padding-gap-x-large","mt-1"],["mat-flat-button","","color","primary","type","button","tabindex","1",3,"click"],["fxLayout","row","fxFlex","100",3,"selectedSwapType","swapsData","flgLoading","emptyTableMessage"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(t,e){1&t&&(r.TgZ(0,"div",0),r._UZ(1,"fa-icon",1),r.TgZ(2,"span",2),r._uU(3,"Loop"),r.qZA(),r.qZA(),r.TgZ(4,"div",3),r.TgZ(5,"mat-card"),r.TgZ(6,"mat-card-content",4),r.TgZ(7,"nav",5),r.YNc(8,bi,2,5,"div",6),r.qZA(),r.TgZ(9,"div",7),r.TgZ(10,"button",8),r.NdJ("click",function(){return e.onLoop(e.selectedSwapType)}),r._uU(11),r.qZA(),r.qZA(),r._UZ(12,"rtl-swaps",9),r.qZA(),r.qZA(),r.qZA()),2&t&&(r.xp6(1),r.Q6J("icon",e.faInfinity),r.xp6(7),r.Q6J("ngForOf",e.links),r.xp6(3),r.hij("Start ",e.activeTab.name,""),r.xp6(1),r.Q6J("selectedSwapType",e.selectedSwapType)("swapsData",e.filteredSwaps)("flgLoading",e.flgLoading)("emptyTableMessage",e.emptyTableMessage))},directives:[P.xw,P.Wh,F.BN,Z.a8,Z.dn,B.BU,U.sg,$.lW,gi,P.yH,B.Nj,R.rH],styles:[""]}),t})();var _i=i(4833),wi=i(7425),xi=i(9647),Ci=i(1816),Ai=i(5963),Si=i(2427);let Ei=(()=>{class t{constructor(t,e,i,n){this.httpClient=t,this.logger=e,this.store=i,this.commonService=n,this.swapUrl="",this.swaps={},this.swapsChanged=new wi.X({}),this.unSubs=[new h.x,new h.x,new h.x]}getSwapsList(){return this.swaps}listSwaps(){this.store.dispatch(new j.Fk(G.m6.GET_BOLTZ_SWAPS)),this.swapUrl=Ai.T+Ai.N.BOLTZ_API+"/listSwaps",this.httpClient.get(this.swapUrl).pipe((0,k.R)(this.unSubs[0])).subscribe({next:t=>{this.store.dispatch(new j.Iv(G.m6.GET_BOLTZ_SWAPS)),this.swaps=t,this.swapsChanged.next(this.swaps)},error:t=>this.handleErrorWithAlert(G.m6.GET_BOLTZ_SWAPS,this.swapUrl,t)})}swapInfo(t){return this.swapUrl=Ai.T+Ai.N.BOLTZ_API+"/swapInfo/"+t,this.httpClient.get(this.swapUrl).pipe((0,Ci.K)(t=>this.handleErrorWithAlert(G.m6.NO_SPINNER,this.swapUrl,t)))}serviceInfo(){return this.store.dispatch(new j.Fk(G.m6.GET_SERVICE_INFO)),this.swapUrl=Ai.T+Ai.N.BOLTZ_API+"/serviceInfo",this.httpClient.get(this.swapUrl).pipe((0,k.R)(this.unSubs[1]),(0,L.U)(t=>(this.store.dispatch(new j.Iv(G.m6.GET_SERVICE_INFO)),t)),(0,Ci.K)(t=>this.handleErrorWithAlert(G.m6.GET_SERVICE_INFO,this.swapUrl,t)))}swapOut(t,e){const i={amount:t,address:e};return this.swapUrl=Ai.T+Ai.N.BOLTZ_API+"/createreverseswap",this.httpClient.post(this.swapUrl,i).pipe((0,Ci.K)(t=>this.handleErrorWithoutAlert("Swap Out for Address: "+e,G.m6.NO_SPINNER,t)))}swapIn(t){const e={amount:t};return this.swapUrl=Ai.T+Ai.N.BOLTZ_API+"/createswap",this.httpClient.post(this.swapUrl,e).pipe((0,Ci.K)(e=>this.handleErrorWithoutAlert("Swap In for Amount: "+t,G.m6.NO_SPINNER,e)))}handleErrorWithoutAlert(t,e,i){let n="";return this.logger.error("ERROR IN: "+t+"\n"+JSON.stringify(i)),this.store.dispatch(new j.Iv(e)),401===i.status?(n="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch(new j.RD)):503===i.status?(n="Unable to Connect to Boltz Server.",this.store.dispatch(new j.wu({data:{type:"ERROR",alertTitle:"Boltz Not Connected",message:{code:i.status,message:"Unable to Connect to Boltz Server",URL:t},component:Si.H}}))):n=this.commonService.extractErrorMessage(i),(0,xi._)(()=>new Error(n))}handleErrorWithAlert(t,e,i){let n="";return 401===i.status&&(this.logger.info("Redirecting to Login"),this.store.dispatch(new j.RD)),this.logger.error(i),this.store.dispatch(new j.Iv(t)),401===i.status?(n="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch(new j.RD)):503===i.status?(n="Unable to Connect to Boltz Server.",this.store.dispatch(new j.wu({data:{type:"ERROR",alertTitle:"Boltz Not Connected",message:{code:i.status,message:"Unable to Connect to Boltz Server",URL:e},component:Si.H}}))):(n=this.commonService.extractErrorMessage(i),this.store.dispatch(new j.wu({data:{type:G.n_.ERROR,alertTitle:"ERROR",message:{code:i.error&&i.error.error&&i.error.error.code?i.error.error.code:i.error&&i.error.code?i.error.code:i.code?i.code:i.status,message:n,URL:e},component:Si.H}}))),(0,xi._)(()=>new Error(n))}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(o.eN),r.LFG(V.mQ),r.LFG(a.yh),r.LFG(le.v))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})();var ki=i(5001);let Ti=(()=>{class t{constructor(){this.serviceInfo={},this.direction=G.hc.SWAP_OUT,this.swapTypeEnum=G.hc}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=r.Xpm({type:t,selectors:[["rtl-boltz-service-info"]],inputs:{serviceInfo:"serviceInfo",direction:"direction"},decls:33,vars:13,consts:[["fxFlex","100",1,"flat-expansion-panel","mb-1",3,"expanded"],["fxLayoutAlign","start center","fxFlex","100"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"w-100","my-1"]],template:function(t,e){1&t&&(r.TgZ(0,"mat-expansion-panel",0),r.TgZ(1,"mat-expansion-panel-header"),r.TgZ(2,"mat-panel-title"),r.TgZ(3,"span",1),r._uU(4,"Service Information"),r.qZA(),r.qZA(),r.qZA(),r.TgZ(5,"div",2),r.TgZ(6,"div",3),r.TgZ(7,"div",4),r.TgZ(8,"h4",5),r._uU(9,"Minimum Amount (Sats)"),r.qZA(),r.TgZ(10,"span",6),r._uU(11),r.ALo(12,"number"),r.qZA(),r.qZA(),r.TgZ(13,"div",4),r.TgZ(14,"h4",5),r._uU(15,"Maximum Amount (Sats)"),r.qZA(),r.TgZ(16,"span",6),r._uU(17),r.ALo(18,"number"),r.qZA(),r.qZA(),r.qZA(),r._UZ(19,"mat-divider",7),r.TgZ(20,"div",3),r.TgZ(21,"div",4),r.TgZ(22,"h4",5),r._uU(23,"Fee Percentage"),r.qZA(),r.TgZ(24,"span",6),r._uU(25),r.ALo(26,"number"),r.qZA(),r.qZA(),r.TgZ(27,"div",4),r.TgZ(28,"h4",5),r._uU(29,"Miner Fee (Sats)"),r.qZA(),r.TgZ(30,"span",6),r._uU(31),r.ALo(32,"number"),r.qZA(),r.qZA(),r.qZA(),r.qZA(),r.qZA()),2&t&&(r.Q6J("expanded",!0),r.xp6(11),r.Oqu(r.lcZ(12,5,null==e.serviceInfo||null==e.serviceInfo.limits?null:e.serviceInfo.limits.minimal)),r.xp6(6),r.Oqu(r.lcZ(18,7,null==e.serviceInfo||null==e.serviceInfo.limits?null:e.serviceInfo.limits.maximal)),r.xp6(8),r.Oqu(r.lcZ(26,9,null==e.serviceInfo||null==e.serviceInfo.fees?null:e.serviceInfo.fees.percentage)),r.xp6(6),r.Oqu(r.lcZ(32,11,e.direction===e.swapTypeEnum.SWAP_OUT?null==e.serviceInfo||null==e.serviceInfo.fees||null==e.serviceInfo.fees.miner?null:e.serviceInfo.fees.miner.reverse:null==e.serviceInfo||null==e.serviceInfo.fees||null==e.serviceInfo.fees.miner?null:e.serviceInfo.fees.miner.normal)))},directives:[ki.ib,P.yH,ki.yz,ki.yK,P.Wh,P.xw,Ot.d],pipes:[U.JJ],styles:[""]}),t})();var Mi=i(3691);function Li(t,e){1&t&&r.GkF(0)}function Ii(t,e){if(1&t&&(r.TgZ(0,"div",4),r.TgZ(1,"span",5),r._uU(2),r.qZA(),r.qZA()),2&t){const t=r.oxw();r.xp6(2),r.Oqu(null!=t.swapStatus&&t.swapStatus.error?null==t.swapStatus?null:t.swapStatus.error:"Unknown Error.")}}function Oi(t,e){if(1&t&&(r.TgZ(0,"div",4),r.TgZ(1,"div",6),r.TgZ(2,"div",7),r.TgZ(3,"h4",8),r._uU(4,"ID"),r.qZA(),r.TgZ(5,"span",5),r._uU(6),r.qZA(),r.qZA(),r.TgZ(7,"div",7),r.TgZ(8,"h4",8),r._uU(9,"Routing Fee (mSats)"),r.qZA(),r.TgZ(10,"span",5),r._uU(11),r.ALo(12,"number"),r.qZA(),r.qZA(),r.qZA(),r._UZ(13,"mat-divider",9),r.TgZ(14,"div",6),r.TgZ(15,"div",7),r.TgZ(16,"h4",8),r._uU(17,"Claim Transaction ID"),r.qZA(),r.TgZ(18,"span",5),r._uU(19),r.qZA(),r.qZA(),r.TgZ(20,"div",7),r.TgZ(21,"h4",8),r._uU(22,"Lockup Address"),r.qZA(),r.TgZ(23,"span",5),r._uU(24),r.qZA(),r.qZA(),r.qZA(),r.qZA()),2&t){const t=r.oxw();r.xp6(6),r.Oqu(null==t.swapStatus?null:t.swapStatus.id),r.xp6(5),r.Oqu(r.lcZ(12,4,null==t.swapStatus?null:t.swapStatus.routingFeeMilliSat)),r.xp6(8),r.Oqu(null==t.swapStatus?null:t.swapStatus.claimTransactionId),r.xp6(5),r.Oqu(null==t.swapStatus?null:t.swapStatus.lockupAddress)}}function Di(t,e){if(1&t&&(r.TgZ(0,"div",4),r.TgZ(1,"div",6),r.TgZ(2,"div",7),r.TgZ(3,"h4",8),r._uU(4,"ID"),r.qZA(),r.TgZ(5,"span",5),r._uU(6),r.qZA(),r.qZA(),r.TgZ(7,"div",7),r.TgZ(8,"h4",8),r._uU(9,"Expected Amount (Sats)"),r.qZA(),r.TgZ(10,"span",5),r._uU(11),r.ALo(12,"number"),r.qZA(),r.qZA(),r.qZA(),r._UZ(13,"mat-divider",9),r.TgZ(14,"div",6),r.TgZ(15,"div",10),r.TgZ(16,"h4",8),r._uU(17,"Address"),r.qZA(),r.TgZ(18,"span",5),r._uU(19),r.qZA(),r.qZA(),r.qZA(),r._UZ(20,"mat-divider",9),r.TgZ(21,"div",6),r.TgZ(22,"div",10),r.TgZ(23,"h4",8),r._uU(24,"BIP 21"),r.qZA(),r.TgZ(25,"span",5),r._uU(26),r.qZA(),r.qZA(),r.qZA(),r.qZA()),2&t){const t=r.oxw();r.xp6(6),r.Oqu(null==t.swapStatus?null:t.swapStatus.id),r.xp6(5),r.Oqu(r.lcZ(12,4,null==t.swapStatus?null:t.swapStatus.expectedAmount)),r.xp6(8),r.Oqu(null==t.swapStatus?null:t.swapStatus.address),r.xp6(7),r.Oqu(null==t.swapStatus?null:t.swapStatus.bip21)}}let Ri=(()=>{class t{constructor(){this.swapStatus=null,this.direction=G.hc.SWAP_OUT,this.swapTypeEnum=G.hc}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=r.Xpm({type:t,selectors:[["rtl-boltz-swap-status"]],inputs:{swapStatus:"swapStatus",direction:"direction"},decls:7,vars:1,consts:[[4,"ngTemplateOutlet"],["swapFailedBlock",""],["swapOutBlock",""],["swapInBlock",""],["fxLayout","column"],[1,"foreground-secondary-text"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"w-100","my-1"],["fxFlex","100"]],template:function(t,e){if(1&t&&(r.YNc(0,Li,1,0,"ng-container",0),r.YNc(1,Ii,3,1,"ng-template",null,1,r.W1O),r.YNc(3,Oi,25,6,"ng-template",null,2,r.W1O),r.YNc(5,Di,27,6,"ng-template",null,3,r.W1O)),2&t){const t=r.MAs(2),i=r.MAs(4),n=r.MAs(6);r.Q6J("ngTemplateOutlet",null!=e.swapStatus&&e.swapStatus.error?t:e.direction===e.swapTypeEnum.SWAP_OUT?i:n)}},directives:[U.tP,P.xw,P.yH,P.Wh,Ot.d],pipes:[U.JJ],styles:[""]}),t})();var Ni=i(194);function Pi(t,e){1&t&&r.GkF(0)}const Fi=function(t,e){return{"small-svg":t,"large-svg":e}};function Zi(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div",6),r.NdJ("swipe",function(e){return r.CHM(t),r.oxw().onSwipe(e)}),r.O4$(),r.TgZ(1,"svg",7),r._UZ(2,"path",8),r._UZ(3,"path",9),r._UZ(4,"path",10),r._UZ(5,"path",11),r._UZ(6,"path",12),r._UZ(7,"path",13),r._UZ(8,"path",14),r._UZ(9,"path",15),r._UZ(10,"path",16),r._UZ(11,"path",17),r.qZA(),r.kcU(),r.TgZ(12,"div",18),r.TgZ(13,"mat-card-title"),r._uU(14,"Boltz Reverse Submarine Swap explained."),r.qZA(),r.qZA(),r.TgZ(15,"div",19),r.TgZ(16,"mat-card-subtitle",20),r._uU(17," Boltz is a privacy-first account free exchange and a Lightning Service Provider. By doing a Reverse Submarine Swap on Boltz, you can swap your Lightning Bitcoin for on-chain Bitcoin. "),r.qZA(),r.qZA(),r.qZA()}if(2&t){const t=r.oxw();r.Q6J("@sliderAnimation",t.animationDirection),r.xp6(1),r.Q6J("ngClass",r.WLB(2,Fi,t.screenSize===t.screenSizeEnum.XS,t.screenSize!==t.screenSizeEnum.XS))}}function Bi(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div",6),r.NdJ("swipe",function(e){return r.CHM(t),r.oxw().onSwipe(e)}),r.O4$(),r.TgZ(1,"svg",21),r.TgZ(2,"g",22),r._UZ(3,"path",23),r._UZ(4,"path",24),r._UZ(5,"path",25),r._UZ(6,"path",26),r._UZ(7,"path",27),r._UZ(8,"path",28),r.qZA(),r._UZ(9,"path",29),r.TgZ(10,"defs"),r.TgZ(11,"clipPath",30),r._UZ(12,"rect",31),r.qZA(),r.qZA(),r.qZA(),r.kcU(),r.TgZ(13,"div",18),r.TgZ(14,"mat-card-title"),r._uU(15,"Step 1: Deciding to Reverse Submarine Swap"),r.qZA(),r.qZA(),r.TgZ(16,"div",19),r.TgZ(17,"mat-card-subtitle",20),r._uU(18," You have one or more channels that are running low on inbound capacity or you want to move some of your Lightning Bitcoin to your onchain wallet. "),r.qZA(),r.qZA(),r.qZA()}if(2&t){const t=r.oxw();r.Q6J("@sliderAnimation",t.animationDirection),r.xp6(1),r.Q6J("ngClass",r.WLB(2,Fi,t.screenSize===t.screenSizeEnum.XS,t.screenSize!==t.screenSizeEnum.XS))}}function Ui(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div",6),r.NdJ("swipe",function(e){return r.CHM(t),r.oxw().onSwipe(e)}),r.O4$(),r.TgZ(1,"svg",32),r._UZ(2,"path",33),r._UZ(3,"path",34),r._UZ(4,"path",35),r._UZ(5,"path",36),r._UZ(6,"path",37),r._UZ(7,"circle",38),r._UZ(8,"rect",39),r.TgZ(9,"defs"),r.TgZ(10,"pattern",40),r._UZ(11,"use",41),r.qZA(),r._UZ(12,"image",42),r.qZA(),r.qZA(),r.kcU(),r.TgZ(13,"div",18),r.TgZ(14,"mat-card-title"),r._uU(15,"Step 2: Paying the Lightning Invoice"),r.qZA(),r.qZA(),r.TgZ(16,"div",19),r.TgZ(17,"mat-card-subtitle",20),r._uU(18," Your Boltz client generates a secret which is sent to Boltz. In return Boltz sends a Lightning invoice based on that secret. Your Lightning node pays that invoice which moves some of your local balance to the other side of the channel. "),r.qZA(),r.qZA(),r.qZA()}if(2&t){const t=r.oxw();r.Q6J("@sliderAnimation",t.animationDirection),r.xp6(1),r.Q6J("ngClass",r.WLB(2,Fi,t.screenSize===t.screenSizeEnum.XS,t.screenSize!==t.screenSizeEnum.XS))}}function qi(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div",6),r.NdJ("swipe",function(e){return r.CHM(t),r.oxw().onSwipe(e)}),r.O4$(),r.TgZ(1,"svg",43),r.TgZ(2,"g",22),r._UZ(3,"path",44),r._UZ(4,"path",45),r._UZ(5,"path",46),r._UZ(6,"path",47),r._UZ(7,"path",48),r.qZA(),r.TgZ(8,"defs"),r.TgZ(9,"clipPath",30),r._UZ(10,"rect",49),r.qZA(),r.qZA(),r.qZA(),r.kcU(),r.TgZ(11,"div",18),r.TgZ(12,"mat-card-title"),r._uU(13,"Step 3: Receiving the funds on-chain"),r.qZA(),r.qZA(),r.TgZ(14,"div",19),r.TgZ(15,"mat-card-subtitle",20),r._uU(16," In return for paying the invoice, Boltz locks on-chain BTC. Your node claims that onchain BTC to your wallet and by doing that, reveals the secret. With that secret Boltz can settle the Lightning invoice paid by your node. "),r.qZA(),r.qZA(),r.qZA()}if(2&t){const t=r.oxw();r.Q6J("@sliderAnimation",t.animationDirection),r.xp6(1),r.Q6J("ngClass",r.WLB(2,Fi,t.screenSize===t.screenSizeEnum.XS,t.screenSize!==t.screenSizeEnum.XS))}}function zi(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div",6),r.NdJ("swipe",function(e){return r.CHM(t),r.oxw().onSwipe(e)}),r.O4$(),r.TgZ(1,"svg",50),r._UZ(2,"path",51),r._UZ(3,"path",52),r._UZ(4,"path",53),r._UZ(5,"path",54),r._UZ(6,"path",55),r.qZA(),r.kcU(),r.TgZ(7,"div",18),r.TgZ(8,"mat-card-title"),r._uU(9,"Done!"),r.qZA(),r.qZA(),r.TgZ(10,"div",19),r.TgZ(11,"mat-card-subtitle",20),r._uU(12," You have now successfully received your funds in your on-chain wallet and also spent your local balance to increase the inbound capacity of your node - all in a non-custodial manner. "),r.qZA(),r.qZA(),r.qZA()}if(2&t){const t=r.oxw();r.Q6J("@sliderAnimation",t.animationDirection),r.xp6(1),r.Q6J("ngClass",r.WLB(2,Fi,t.screenSize===t.screenSizeEnum.XS,t.screenSize!==t.screenSizeEnum.XS))}}let Hi=(()=>{class t{constructor(t){this.commonService=t,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new r.vpe,this.screenSize="",this.screenSizeEnum=G.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(t){2===t.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===t.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(le.v))},t.\u0275cmp=r.Xpm({type:t,selectors:[["rtl-boltz-swapout-info-graphics"]],inputs:{animationDirection:"animationDirection",stepNumber:"stepNumber"},outputs:{stepNumberChange:"stepNumberChange"},decls:11,vars:1,consts:[[4,"ngTemplateOutlet"],["swapStepBlock1",""],["swapStepBlock2",""],["swapStepBlock3",""],["swapStepBlock4",""],["swapStepBlock5",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between center",3,"swipe"],["fxFlex","30","width","368","height","368","viewBox","0 0 368 368","fill","none","xmlns","http://www.w3.org/2000/svg",3,"ngClass"],["d","M306.667 153.333H276L260.667 184L233.797 153.763C229.441 148.861 224.595 144.24 218.529 141.746C212.54 139.284 206.099 138 199.561 138H92C41.19 138 1.52588e-05 179.19 1.52588e-05 230C1.52588e-05 280.81 41.19 322 92 322H199.561C206.099 322 212.54 320.715 218.529 318.254C224.595 315.761 229.441 311.139 233.797 306.237L260.667 276L276 306.667H306.667L291.333 260.667L306.667 230L291.333 199.333L306.667 153.333Z",1,"fill-color-0"],["d","M337.333 122.667H306.667L291.333 153.333L264.464 123.097C260.107 118.194 255.261 113.573 249.195 111.079C243.206 108.618 236.766 107.333 230.228 107.333H122.667C71.8566 107.333 30.6667 148.523 30.6667 199.333C30.6667 250.143 71.8566 291.333 122.667 291.333H230.228C236.766 291.333 243.206 290.048 249.195 287.587C255.261 285.094 260.107 280.473 264.464 275.571L291.333 245.333L306.667 276H337.333L322 230L337.333 199.333L322 168.667L337.333 122.667Z",1,"stroke-color-thicker"],["d","M214.667 245.333C206.198 245.333 199.333 238.468 199.333 230C199.333 221.532 206.198 214.667 214.667 214.667C223.135 214.667 230 221.532 230 230C230 238.468 223.135 245.333 214.667 245.333Z",1,"fill-color-15"],["d","M245.333 214.667C236.865 214.667 230 207.802 230 199.333C230 190.865 236.865 184 245.333 184C253.802 184 260.667 190.865 260.667 199.333C260.667 207.802 253.802 214.667 245.333 214.667Z",1,"stroke-color-thicker"],["d","M138 245.333C129.532 245.333 122.667 238.468 122.667 230C122.667 221.532 129.532 214.667 138 214.667C146.468 214.667 153.333 221.532 153.333 230C153.333 238.468 146.468 245.333 138 245.333Z",1,"fill-color-15"],["d","M168.667 214.667C160.198 214.667 153.333 207.802 153.333 199.333C153.333 190.865 160.198 184 168.667 184C177.135 184 184 190.865 184 199.333C184 207.802 177.135 214.667 168.667 214.667Z",1,"stroke-color-thicker"],["d","M61.3334 245.333C52.865 245.333 46 238.468 46 230C46 221.532 52.865 214.667 61.3334 214.667C69.8017 214.667 76.6667 221.532 76.6667 230C76.6667 238.468 69.8017 245.333 61.3334 245.333Z",1,"fill-color-15"],["d","M92 214.667C83.5316 214.667 76.6666 207.802 76.6666 199.333C76.6666 190.865 83.5316 184 92 184C100.468 184 107.333 190.865 107.333 199.333C107.333 207.802 100.468 214.667 92 214.667Z",1,"stroke-color-thicker"],["d","M239.077 111C241.796 111 244 113.204 244 115.923V126.077C244 128.796 241.796 131 239.077 131H191.923C189.204 131 187 128.796 187 126.077V115.923C187 113.204 189.204 111 191.923 111H239.077Z",1,"fill-color-15"],["d","M184 76.6666V107.333H122.667V76.6666H184Z",1,"stroke-color-thicker"],["fxFlex","20","fxLayoutAlign","center end"],["fxFlex","40"],[1,"font-size-120"],["fxFlex","30","width","383","height","279","viewBox","0 0 383 279","fill","none","xmlns","http://www.w3.org/2000/svg",3,"ngClass"],["clip-path","url(#clip0)"],["d","M267.882 220.417V104.583C267.882 98.2125 263.809 93 258.832 93H114.029C109.051 93 104.978 98.2125 104.978 104.583V220.417C104.978 226.787 109.051 232 114.029 232H258.832C263.809 232 267.882 226.787 267.882 220.417Z",1,"fill-color-0"],["d","M357.75 197.625V81.375C357.75 74.9812 352.069 69.75 345.125 69.75H143.125C136.181 69.75 130.5 74.9812 130.5 81.375V197.625C130.5 204.019 136.181 209.25 143.125 209.25H345.125C352.069 209.25 357.75 204.019 357.75 197.625Z",1,"stroke-color-thin"],["d","M86.3125 186H105.25V139.5H86.3125C82.7775 139.5 80 142.057 80 145.312V180.188C80 183.443 82.7775 186 86.3125 186Z",1,"fill-color-15"],["d","M111.562 162.75H130.5V116.25H111.562C108.027 116.25 105.25 118.807 105.25 122.062V156.938C105.25 160.193 108.027 162.75 111.562 162.75Z",1,"stroke-color-thin"],["d","M205.979 116V150.875",1,"stroke-color-thin"],["d","M205.979 185.634V185.749",1,"stroke-color-thin"],["d","M2.44963 159.45C0.488815 161.41 0.488815 164.59 2.44963 166.55L34.403 198.504C36.3638 200.465 39.5429 200.465 41.5037 198.504C43.4645 196.543 43.4645 193.364 41.5037 191.403L13.1007 163L41.5037 134.597C43.4645 132.636 43.4645 129.457 41.5037 127.496C39.5429 125.535 36.3638 125.535 34.403 127.496L2.44963 159.45ZM65 157.979H6V168.021H65V157.979Z",1,"fill-color-15"],["id","clip0"],["width","303","height","279","transform","matrix(-1 0 0 1 383 0)",1,"fill-color-30"],["fxFlex","30","width","454","height","243","viewBox","0 0 454 243","fill","none","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["d","M141.75 172.125C178.098 172.125 207.562 142.66 207.562 106.312C207.562 69.9653 178.098 40.5 141.75 40.5C105.403 40.5 75.9375 69.9653 75.9375 106.312C75.9375 142.66 105.403 172.125 141.75 172.125Z",1,"fill-color-0"],["d","M121.5 151.875C157.848 151.875 187.312 122.41 187.312 86.0625C187.312 49.7153 157.848 20.25 121.5 20.25C85.1528 20.25 55.6875 49.7153 55.6875 86.0625C55.6875 122.41 85.1528 151.875 121.5 151.875Z",1,"stroke-color-thiner"],["d","M20.25 192.375H222.75",1,"stroke-color-thiner"],["d","M192.375 222.75L222.75 192.375L192.375 162",1,"stroke-color-thiner"],["d","M138.762 67C136.099 73.913 133.436 81.3578 130.24 88.8025C130.24 88.8025 130.24 89.8661 131.305 89.8661H153.143C153.143 89.8661 153.143 90.3979 153.676 90.9296L121.718 126.558C121.185 126.026 121.185 125.495 121.185 124.963L132.371 101.033V98.9062H110V96.7791L137.164 67H138.762Z",1,"fill-color-15"],["cx","371.815","cy","95.815","r","81.815",1,"fill-color-boltz-bk"],["x","317","y","81","width","110.745","height","30.1472","fill","url(#pattern0)"],["id","pattern0","patternContentUnits","objectBoundingBox","width","1","height","1"],[0,"xlink","href","#image0","transform","scale(0.00185185 0.00680272)"],["id","image0","width","540","height","147",0,"xlink","href","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAACTCAYAAADFh8BYAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAACHKADAAQAAAABAAAAkwAAAABS37hiAABAAElEQVR4Aex9CaAkVXV2VfebfWWG1QWQRYddNgmCO6CiIGrAKC6gUWOIUROz/CYm+OdP/P9f82viEmNUcCFRUVFQlMUIgpIoCgwO2ww7IjLMMMub5b3XXfWf75z7Vd2urn69vK5+/d7Ufa/qnDr33HPPdm/drqquDoNdvMTxhSPBE5vODuL6BUEcHiDumBcE8Y+DYORT4V4fu3YXd09pfumB0gOlB0oPlB7oiwfCvkiZoULiDe9eGtSCH8RxfCJMCOUvlj/AIAyjoBL/abjHJz4+Q80r1S49UHqg9EDpgdIDQ+OBXXbBEW/8i2XB+ParZYHxHDohlrAAB0QJw2AiCOccGu75sXVGKfelB0oPlB4oPVB6oPRALx6o9NJopreJ469Xg4ltX8NiA8sLLDD8xQYWHbrwiOM5QVC7YKbbW+pfeqD0QOmB0gOlB6bbAyPTrcC09P/bH39EbqO8NF1mRKoGbqbYAgRQCkAU47mOspQeKD1QeqD0QOmB0gNT8MAud4UjfvyCt8Rx9D5dbMg9kwT6OK95xHrtY/EU/Fs2LT1QeqD0QOmB0gOlB8QDu9SCI37sghPievyvSeR1QSFHgD7uGPRmSxj8POEvkdIDpQdKD5QeKD1QeqAnD+wyt1TiJ9731Hhi52WytJinFzDy3OUueOitFNTjAkcU3ZDHWtJKD5QeKD3QLw/Ej55/TL0e7tcveamcmqCY5gGDoFqdf0P4lM8+oQflrvTAgD2wSyw45F0b84PHHr9MntvYJ5RbJ/aYqHgat1FwZUNvp7gHRYWEdQdKWAk3BXvt+UM7KvelB0oPlB4oxgMT9VjeAxS9FXMTv56vPeFDDz8IAW2cspLpixdos/XWGIsNm9XiaOeL5eBHspWl9MDAPbBLLDii3zz2OfHs8fCuLDpSJxN3kDUpjP+9Gl64M21QYqUHSg+UHijAA3Gkc5N+IBIcEAVzkbfeUJq/c2z8zJSzAJEljAgJQ85qfusSLz0wWA/M+gVH/Ngf/GW9Hp8Lt+av/jmkwUHcBmclnnMRqGUpPVB6oPRAoR6QVYVe2ZDVgS06bA5Cn/xcZP1z+eEWJBl+tk0WLNl6d6WjUFtK4aUHWnhgVi844t+883T5sPD3/BQAH/i4fFvFDW77WqwNVqMJfke4zydvbuG3klx6oPRA6YH+eUDWF7z6Sgjh7RYQ4PH5iRNm24O/LKUHpssDs/ZbKvGj71glnxX+I4qj1EZ+VAD0ced9DlLAOIi+MF1BKfstPVB6YNfzgLtmwactxAG4HYIrHQZ9HDRsfhvDcaUkLfhQhQJIPK0tsdIDg/VAejIebL+F9hY/+d7lcRxeHkX1pRh8HGxYRigO6AYrIQcpoFwFqVeqI5cUqmQpvPRA6YHSA4kHbE7CIbC0ELcFhtFJw9xmuH5I8hYnkGKbzoCC68yWii2x0gPT4IFZd0sFry2v/+bar8lgOxj+bBi8GIMcf6jDg1T45wNVimuj74d7fvoxwcrSgwfih9940EQU/lleU/mcJS9/CQNAFOKARRR8vsOq2j7npThX2j3rE8by6H+4Qz447qxUgh0y4T8hv/b368pI8Os54fyHy68eFhHNXVAmhok3ZyV4h8MFCxF7ds3GmwnbBf1YmjwUHph1C47oNz/8R3l3xmnwbu5YFWIyVjkGCW1kBtVK9aKhiM4MVaIWB/vIQu8deerb3MlLwRKjzHM0CEXD/CoxsUkziVqDWNYBorAtubP3sPP5PX2kYSiyYiegiZ/6JD3JzTcwY2IP6kFcC4PxeFsw/uCbHpeF7K2ShLdVK+F/VaPFPwr3+5cnG5QvD0oP0AO6IraPR0i9dErKyX+Xm2iKFv7XaN1nKMlhE4z819wELEvpgWn2wKxacNQeeft5UVR7j/68vDhWx5gMPH+sNQw7DEoQ3ODEya8ShhuCffb57jTHZeZ37xYAGRc32WXzoUyaLjCMD6Gd8DFnWpAYLtarQFfXJFwI2t7BpN7jt/7THMntT/iT/og7GWqf4C6FbLGCjuJoTyGeJvTT5FtSQT3cUh974I03i6Dvz60El4RP/8q6RJ8SKT2AS26SLMwzwtx8FFbWq+NcLuY5MTf/8xhLWumBAXhg1iw44kfeeWI9qH/GX+0nZwF3NsAgBcrBqrjsXLW6Wz5oXCLv3hgfgO/LLsQDmBAREYNwSWOU9EhY0phlPtGhrfxxkWnS/JhaLSnMD/Ij+CobDbUIopc3SGjUh32lSwxKZvtGflLFzKpwniD9nTBWDy4ce+Dcm8KwctGcfatfDsOLy3e90FG7KIwj3NxDzjXmjx4JGRAlm3/ZfPYl+C2yWWp15b70wGA9wFvZg+21z73FG37/aVFY+5YMxnkNA4srf0DZ9KTmoL/yx2DmgB4JRi7us3q7pDhMjPiz5YBB4IgDIXAthDggDigb/ggVBwtorUqmvbKRJgdsC6h/rg/kAxc9hGgLHkIfV6LsmDfMIfAABzQ8hbRbfRLHJ8pDzZ8de3Di/rEHz/3zeP1bl1BmCXdhDzBXAV1uEiKTUAhzvZRpbw388YK3jpal9MD0eGDGLzji+H0Lajvib0dRvLcORR1wGGCy6XV6B5Nr9jxFpAPXTgloE94ePvUzt0xPKGZnrzx5Jyd0cb/S3BlaoyE7d6gIaQ1n8xbuwW0wFP32keISTQc1B6xW9z3tMhO46iY06qtZg/7dhj6As7S3P95beP7PxLaxdeMPveE8wbULti/hruEB5hMSSxMgIYj9Ssj3Q+H5n99tSS090JMHZvyCo/7o5s/LGeZYWN80ucuJR2k4AelJCEx2gsrjr5Tv3oBbBlqyMcOxv8mBi6Gcxj2cPFCWMlRxf2HpP6AhbdG+adOn7IQO6OPk9WUIrn05SB182KSPKtV6R93lfTF7RvX4op0PnnvD2P2vX9W6RVkzGz0gjx5rbvm5pLnh5Txy16cxdwjVL8hXFEBsyGNC4OUFDvNPuZ8WD8zoZzgmHnnrB+Iofr0MIy0YajIkGz4QuOGn9awDRPH55WnuWmVk7r9rRbnrgwfMx00+F7LSGDT0hInQFcaLEEHSJ+4dgXRChFLnWIqgLELI9XF21ClkW8K28hJFtIeu7Y/jk8Tmn8szHu+ct/8lZT52GqdZwse8Jpz2/J9mv8oPb86dePjeI+WL7cfJkuy4MIqPkxl+N3m4/6Nz97vkE9OsXtl9lx6YsQuO2iPnv1Im878zeznJY5gCt+GKlT+/Fgk+4vpVMRCkJAM7Dr4b7v2Zx41a7qfqAX7q0ofaEAfGROLDB93QB/FW9RpOMDLEwLPFq2snrzFDbC2iNCdD20+ib7brqcrL01ceWl0s32u5ZOcDb3juvP2e+cdheGF6WS6rQHk8qzxgC1R9ysfsYm4T5lnr1eXlE2nWNJnx8iRNKw3vUBp/5LLDwnrluCiMj5c55LixB+46UsybS8XMVHgpWEZaCWeOB2bkgiP+zfmH1iaiS+TUJbeEkIJuEOklcRxaWloYUtzud+KyOOfv9HQRVoOLjb/c98MDnNZs0YcTu8XBru5iIWi9NF0BEDJpnejB6HtRds1SiuVIvjTqSZjVF6mlujsGAPZJiWyLY+KEWXld2R9HF4w/ePfKOH7Hm8PwsxPsr4Sz0wPMe8JOrGQuptlOjBBSfLwTqcXzyJWLyvgDdz8zrITHy92k4+phdNzYg986WlRdEMn7bDCFcwwRFq9V2UPRHphxC45407t2m9i6/TvimKXpQLIB5c5p3hV0d889Sd2sO62dnATWV58y58psbXncuwe4wMDKwk7Y3rSRg5JkJ2jGLad/O2PLbORaSNBj0oSd32jlo5f8dAeIgogDs8gDEcxrn70KppO/1AOiaI6JAOZa0tbTJ6GhAdqyDxyjONV9lKSs/XL8e2MPbFkon/5eE4bn1LV9uZuVHtC8lFxhDuYayVz18q2b/J+uRzh2PvSWA8OgJrdEouPltTTHyWLjGBlTS+SWuJrJz4jZ/G/ygbPfv0rdxFMShtYDM2rBgUtuEw999+syIg+CR/VkILM3TwbZkws4rPBkYZ+s9QQgFRzYMtC/Un6CdK7qC5BpLT2DGu7O0I0RyelM2ml8kvYIlGyuIdGkWhClJYRG/uzr67M5ArHaXmBPhSsPQhUmUhN9HD4F+yW/zxy7/5v/LPpd0JOOZaPh94DkB/OeUJXOJChzNUkvQZSWEKSVEszkbP4PYsKXH85cOD6++WVRGB4X1oPj5LcFjotrO3eDKSy8xszjBIrundif8JfIjPLAIPKvbw6pP/Ldj8kq4ZTk7KODUXbM5MwtFczx/EBAJTSZeeDgSDjn4gypPJyqB5KYiCDgLSbEpm7YjhCNedkCopSOyZktudx0BAY8+QTo+nbV+DYAlDEIGbgCYTQcEfdvu7EN6pPJvJU91IsQfMBb8UOmX9iO0NkvVv7hzvted9f8A75WPijn+2u24Yw7YZ/zvxYWf41jorbtMHmP2TeR+Dp00+GVjoXEvkwASSdsYX8QcUBl2peHQ+2BGfO12PGH3vzWehS/GycCLBq4cCCEl4m3quc5CNDOSxGucvwyfPrnVg91lGagclgG4E+CkkDgWgjlQHkcNNzxoy02DZqDPs56E6h7Q70+0I+e8B3kHEWYtmqJNenXZI/IVnvQb6q7YVanMsCjfGADr5Um+Z4MyGu0P/jo2MPnHsG2JZw9HojwtVjEe9L4azKnOaH88EGaT0luMd/y8r9wt9WcFaKX6NG//Pftb3mNpHDryg5698CMWHBM/Pr858oPav0LzGw8V3Cg2UA1N5CGcWk4IDYsRAi5OJGnky7q3X1lyzwP4DMU4uSmhwRaNGxatUlS4qECDOby64QlTG4C1biB5jY0T2Kpshp3eGU0ir46Wl8f7XDQrCaBoJh2BrE3nVL90MR01saurcmCPN8GH0ddXn8mK5Xvy1B+z36xc259fOJieeBuRl2ZNE+V+8k8gIk4N1+8+GMMTDX/J9Ohn3WwJdceN8I4YrrJf9/+crnRz2gNTtbQLzjiX5//9Hhi4luRTLZ6QpBBx2RFAioOqDgOdZpWD/JEBJi3SbKPzwmD/1Dmctc3D/hnQ5tQbPLRCUhiQagxwQSE+Lg/rRMc0MeTernKARzP3yTP4IDmYgwjgLOAB4X8yBejudzR2pRfDyfZUTb7Ux2dTdaT6U0RPs3nZXu1qyv7g2N2PHjHeyi/hLPDAziBal57UPMF+epozHvC3vJ/sP7qf/7b+B/6E9dg3TxjehvquMUPv2/BRG3i23I62CvXo9lslsGpoxNQN7TyTybErV72V4RP+9KGXNklsWcP1OQSR3JCdQsBHkMo8NaFdRYjC5/gyaHheqJ2sQWeFuLWwPoSDqeHTt6CA/o46yFK21hzE0uROMrknPIKje3bQYjQNkByCztzCuih7JJDQerBX8aPn704t3lJnOEe0ICLDUnADU8OBdF/GwEwtpv8B3/hRb7A3WocoO8p57/YX17hKDyKhXQw1AuOiejxi+TKxjE6wjCs9ESVnjyyyctEbpXs/gnG4RcV4tVSqJ2Yxcl6gcFB4NkNk6fyCNSJFDHGv1sgZGOMuKEAGm6LhzRHUIscgQyTTYh+iLNeuYWPRXWRA+qJZ4asHZ4dElzqCPP6N6XQMYSYHELK9GFv9se7j28P/5g6l3CWeEBzFjvkGOc7w2mh5VySXkLuLv8pp3BYaP4H8sWXssxEDwxt3MYeOvev5Cvar8OAkvGnG3IYuMvlZOK3B0ndvXr9xoGFonlwWltX+9i8/Q66yvBy33cPuDO6LgLd5MlJ1IcaX/C6KPN2R6tbICpPeCkDehuNFkAWisls5udEnvZJXsBm/kb57AvQx61PdOv6BySPg2zjQ79P4J3aX69H7ymf5Ui8PgsQu6nSafyZQzCceWhOcPnXMv8H5KqC8x8P2ZZl5nlgKBcctYfeeKY8JCqvLc+u3u0k0fFg46ATmP2Th0W/LK+MLv47YjMvJ6ZVY06erWM8repJ540TumlD2tR168L+PcfuX3P61HssJQyTB7qI/zCp3TdddnX7++bIIRU0dAuOsQffclg9ir4it1L0AgUWCmkhDujjKUcDhlU2ilttN8Bg5ItWWe6L8ECrBUO7CaW5nlcSGPMshPbMBYTa8LT/ydsbv/H4uMnM9sV+CJs919x/qpNq2qRfu/rW+ssYOa9Zg5Iykz3QnD+t4285CmvTfGzffjDegR6+LuzVp/l463rKyY5FtijhTPLAUC044offtiKOJy6XRFyCMYRbJYSKi2cJ4WQ/YRVnkmNSx4YlC6F3f0W+3/Czeft9cQ1klKUID9S82152lQrxwWbPQxgELgFSGqCP8zkHcBgfsObSlAPCQlozd/cUpA8KoI8bVWsc6vTXI7PZ0s/wIuwXv7w8jt89L9WlxGa2B9KxMCz536s/kftF53+vupXtps8D/jcYp08L6Rn3o8cevPtSQQ7gkxZ6PpI6QijYiGOSt5dVo86ODOJYCR60AYAHjsKLQS5LgR5wgdJXoQjuXomiHfoxtEWIfa21F200+ljIMDM0yCKJnaAOs7dbLWRzBHXUAf0TB0RpV69M3i7LX6T9ouP8nQ/85kTp/jpPhRKdgR6I8JsiLue6Ub/b/A+C4u8i41cGMeRQisp/ueVuHZT7GeWBoVlwjD14z8fl5Uwv1kz1HvxMVw2WxHZCMB8Tb3VyyEYCfJUwHJtTCb6arSuP++0BmxCw5xpAe+A84aDWSVzc/NS0aGRb1ifChCAn97rE9F91cvMnoITZdQ6pjsYqQsyIirsVEfGkXtpCvkxwc+VHslbIBL+b4PuKxAPzPdZoII4gi9QEcQSt69F+7T+WMVMuONQVM3mHS81IiWy+MHcAtWQJyB1LIq3GMPAOHZ6OLydlAMASPGtP3/J/qK7ND8Cds6SLoVhw7Hjg9b8fx/ULbOZ3IwYObsrWyb0uF+2VgbCpvYxEuUnz7XC/f39yckll7VQ94J//fbw5qE0zqHRNmnFDF4ushxhhYuGB35qWHzSL7z977x1x/WR51Oj8MIjk1oZO+8mHVN9mH++z/dJf+Bz4pyyzxQONkx7znjAZCAlB7PZwveIhBF7xw1xIGjxEetHe8nPex/uV/2H5WypFh7AQ+dO+4Jh48PUny0Oin9Ixg8zEvJ1kKHGcgGSxoO9BkOndXQEBVR6c09OTMigGScZvNG8P3rBysUcp0cI84GZBhsMdWojkwIWIi0NCqOPjWfU4eQIOavLM6oDj8BmXPibgG9jG1r3u8CisfVqutjwvO8HryQC2FmC/SIUfn6mw3M1oD/hf8+w0/2FwNt/YlhB5x1+MHZSD5khHE0x45H0B+T8oW8p++uuBab0wFT/65n0narVvykQ9N1lkJIsNGMpZGpALC4NcUhAqt2uLWyfYdDg6qLLC8NF5+7/6GvCWpWAPmPvTyQaBYrAI81RoDLmETQgqCxDTaAqTSTVPzgBp8w762q/mH3AEbm18QtWznekNW6F/QfZLnu8Xx2fLa//LMis8gFxBAdRNdglszn+d64RBoRsrwJP2efmnHRS3m5DlxqT992H8F6d9KblID0zbgiN+9B0Lx8Z2fkeM25MG6kCRAw6eLAQfeXycfPqWfRlsgNhQCPUgir4UhufUFS93xXqAJ1hMfjrpYRK0iZGQcfMheDXGbA8tgQ95wTtdFh70rT+W50q+1qB/8fZXxu6L9hty95TqtfMAvpDncoUwyftJ8h8PKaMAYsOShBC4jjUHgQ+scPwWn/8DM6nsaOoemLZbKmM7N10st0OebXdQ0oGgg83ZZXUYTEawwSRjCAPIFR8njRBfodXB527ByAOjF7OuhAV7gJMbYsdJR9C8p9Z9TRB/a5LG2J8o8XQ6aob1KfUFixe9bcfW0ZPEjqepXQXbD1/Uw2CZ78OZiss31So7fr36KSPj8cpaVF1UqdQX1aPKokoYLZKoy53UyrZKpbItrkTbqlF129xKsN7d2pqpJjfozbwnTCo5loSQzX8dC0LnaGFbQJRs/QC+pOI6dhqZQqK4kfs1/stfUzF/zrT9tCw4xu4754PyyxRn5wyHBv9xnBGikgMrYfQI5CNUfncgC4+b5h9w6d1JuxIp1APJQpDxSeYf+RQmMeHzF+ADTn7irNeJCm3dhKVt8UlO40rhhZrSlfBw7y9v237vWR+V0+PHtSFVLMR+U60S1WfUD7lJ7MLxB1+zKqoFJ8s8cKRYcYDE/8Dt627ZXwI9b1xzIg7quBYZ1oMIb7FG/MMoqEd1OemGwURcDyaEvm3dq7ZLBt0nGXGfpMS91aB6SzCneuOC/S+9X1rMoIIRkI6FzvLfzGOK2ZGe4QW1AaMf1oSBH9oG5RCOZzHJioM6vvsw/pESZZl5Hhj4gmPs/nPOiuL6h/R8If6yEwcd1zhYSE0hspY8oBK3wdW8gPHrw4tSOSVWrAcmJDIWk8YFgkQIH3Hwn3wN1RYbCb836UJHx65QdUYKqAA9GsrdgiVzPr9jc+0jMunOKdp+nEiiOBz6BceO+16zX1yPXytxf/62ta8+WQK6EsHTE5CLOY79k67WW7pMFv+FMokcLoIOR8bV5S+cqAfb1r7qUfni0I3ybYYfLawE3woPuuxxyBveYiOgW/sRf8ylXFBYe/Oj2srFGs/QHd5E37b2LDyPdHpWftZ/GI7wuw5LxWU8R/V5yXjG4kKEcJ7v1/iX/v5k2z1nnZ/VL6uPKtaooCkLmuqbHoqm/2/RwZd9ymo63+9Yd9YH5TUq56FFUz5n7E+clfTfZv4TmbQJ8hlrQJR+2g957eSDxy/UzamTb381+OeFB377n9BuoAuOsYded3h9vP5l1crXOsGptsF845HA1sAmczjJ+M35ab15TwfEjvlx/PWkmxIp3AOY+FA0JoI3xsybgBwf+cGob5N1DRozAgJtAOrAdXmgHQ3RLtzz0tFt6866WfLyxELtF5t1DFT1GsAQecBUGZWvDlfqE2dLDF8vJ6HfERjKlR8JcZ/i7+y3nHGZQtlh+BRxzjlygjtnexB+cnTtWf8ZVsKvLqzE3wqf8e1NQ+csGQfMe0LoOGn+T26/mcgxQmjUTvZ7ie/kypMUjjngOZOyzr/JeG3UuLD8D4LdRL/d2LdC1dXlltNH5wmlY+dKxhfUuBIGu5GlG1iP4t2lnwPQhvMYIdSQq3iTzH/WE3Xoav5Dfy4e/bBf9Xe+sR8WcfnXQ/x9++WJhhVm5QAXHPEjb165c2z75TLlLOYoglJcEUIhTkSAVhAG4AwH8U7rnZggviw88BubeVTCAXjALQIZOUL0nAyOTtTITnCdtBkCHrH3Z2LoibSbEKr12/5KUNkyBCYnKoze9+qjglr0l2Ft/Gx5TquqNie1/bdfHOpJz6BSJ7VV4TlV7sKcKvdfPiW3YS6uzhn5yPz9vnlfhnv4DjvJ/zb269mOPGGnbxqVSyLiuOycDE9zFlZnUS5hxoOMDCGq+53/7eLfaD8UkM2dQlRtwQEjd9UVOnZdZoH9tNmPVT/in57P8ZbvARS8tnzHztFL5amvZ2D1jinAFhuIPRYdLonxkKfgyuMe9NTVvtORiQqIzXj99ilNebC2NL6LBmBm2UWeBxAkFAY5C1mnTBZ7oK1yQOWwDWW7tsME5OE+u4RPHbN285i2OOWZ753aj/FTCYdjwbHj3lefvG3tmVcGtfqtEsHfk7FXbYoX7Sbsg/3oA37AnyROAoFr/4TgiwK52Bn/QX28ds/oPWf++9h9r8UzJENTeol/N/Z3ZSj85XwH6OPqV8QQhdCOGvesA8zbwE0eQQu3H2dT9AeIDYXQjrrfT3YWpW15tvt1rtdpt9/XSXA/5j6exBJ6s02e5zJ1A7mlsuO+1bh/8yJE1r+iwTgTQl+dNBLFWUMI7YGbFeaA9PIsyBgfqQO0t4fnHXDkfwbBNxOpJTIID1jMONdrXHK61QhJJSCKroalKVfFiDFX2VovdRpiE69thnMXy9tsMUlbOhZpfxTWp/UKx7aHznxKPBZ8rFavndM4Qm08Kq1FvPoS/1bOlcTQ/JHc0rmCiSK6SGRw5eX1ovPrtq494zOLR6p/NQy3WnrK/y7sryVXj+mMfKiPfIhcxs5Gp/DqtXY40CiYr/EQL+dt5Rc28kM1pQ1Z/Gm15h9sSDRmTRdQLwaZgTPd/ux4YewYz57i7105mmxt1oXHW7PKvex3iBF/iISEMQlEJuLfQeBaCPNEuqse+Jiim3pDcEDFPQg5wiep9EV5R4KOnzyRJa1YDzBRGaIsRD5Y6Cw3JCGEoomB5LBpwEHjS0M9WaoUa1V76TKvLwQXdEbJ2s3jqdoPOfNrizZqJwPeyQvHqqNrz3hvtCO4S8bxOXndD8J+5AH9KUnjfK4TgFMpzZSsPvKJsiLz4R9uq0V37Vh75hvzbBgELdY7/aJnl/kPe7qxf6qfMHW+Rp/QUzYUQj3I7LL+ZpwI+5H/3dif1QfeM5rZklG/w8PWp5dsf7SbcLjspw8Im81nrLuNPyUVuuCQJ9OfL6vfT7IzLq4BsamzHQSeHWzgAE0hcC2E7tAHXEkBygbO6rzqF32WEh+MB1olZDZhJfw6YQH6ONtnIXLBZCC6k+TCYMxs2YvcPlzp20pGnwbct9nHUZe3Ze2XNr8OD75k4Fc4tq99zdO2rxu7UULwsTCMl0D3PP1hN232cdrmt/Fx1mdh1n7I9POAfbGdL1NxUZgQM4TyAUbRXrUo+rIsoC6P7z9ruckd3B46+bpS/yycqv2dPsFBy+EjFPWV7P15W+dxqUsg+LycBo5C6OO0y7fZx1mfhVO1H3ZoP7QI4wx/0HUKz15DZp7+vs0+Trv8Nj7O+iws0n71gShJqPqKbwjVd6IkYRJ3oUH3PP3R1ndrYQsOfA0uqsffkN8ImCMWwAozxEEY5SuouJhCCKPU2YSQIaXBGe6KB+576b0v7QZXP8AoD6iEwQ3zn37pOm1Y7qbFA4yXxjInhk1KIQFQAGVDUhMqjkPyCD6sJY7CQ6Fb0faLS28ftA+2rjvjxVEw8UuxTb554sYlxqmHU6fi7Xf9iyP8vti/TQY4sknBUsfmGaYRobaJ4zNGJ+o364OvqZDBYVQGULZ2+e/b7OOpwuYf2t/pFY6K+As3SvBPqC6EYIpU1A4s+inO/n2dfJz1TbBg+038JPFvUqgzwmyxX2MtJgMy7oRJ3HuIP71YyIIjfuxNi6J69B25TLgHAtwyGM4C1pMX0BIjhaYwLQX0cVebWYDI9/AvtppyP1APTMjnqFZB9AMruC4UHbRFo2QD4ojFiZ5ERHMHQSLO+oHa1WFnMrHKLeH4eblJ3G/7w3CgC47Re854v1w8vFq+3rqHnkA0NhYrjQnsQ6AAfVvpO58meF/ir4lhHXAxCohNVXEQOHROIRLKaNba4XF8YFCbuElsfQPpRUP4gXlPCEWhK6GPa4USrJ76tbO/0ysc+IFMja/6Lo2nT5uN8acfu4aIBTbxVwKBoxD6OGiyDWX+i2o2Tswextz0TWkdx99bZXgovDH1IkqE27du/aIMlaPgeFHPApAzODQwXr1vgI8rnycLMimXUHm8GUa+c7994dLdLoX4skynBzRCooCLmuaB4IB5OdFWVY5eN2Lb8g+eYdu6M0+VXt13z4u2P75lUBbKw5V/LxPkR+T2gzxw6eKpndPGPE1Y5/j7Hn/IRS6YfJ03BAf0cdabhtTJNQXRTyfBpe0CuRj8lW33vOId1mZY9lAUhQr3Yr9J6Gjvj1E/drMx/j2fDb18anIq6wBl833o+7apXStCP+JPnaSPrDh0SxpwX0df967jD2EFfC12+7pX/Y1MSq9tUNT6EuXdwzX6CdbDWU9DAX2c9WokDlzwlO45r8E5wTfCPb6wNWlaIoP1AGLhx8P17pagEkH7A5m0fAUZX4s5Hq6zFngg2OVQfsPpo8bx/1DbC7ZfrqLUFy2Yf9UgDB295xUfkZuxH2CsWsbPt9nHnZJt2zcZ0z7+k+WBLTqQitKz04dQu/J19HGplEM8DfaZrXe/8o+a1BoYof/2T0X1tvHzfejjrtO27ZuU67/9LePf43RCDVV132Yfnwn25+ibDUfb+PkyiHsPcfS8pssqguPt9575GgF/C6VMsRSmpxXWmAQ/WEwEQMNTqO3VAKMpD3oBb9Jf2os8en6x9VDup9MDFkdM3hYrrCOBp2tKwxE526CtnxU4Tgu/vgZIPK2dfmzb2jPeJva9kJoUbP8N4dMvLfwbKlvufsVHxY73Iy7mc4P0PyFt9mHB9ktXqU5p3rTOH1+3PDyrrxzLK1WiTxS/6Og1//trf+ITOfmaL2zcmm/TvhBzxp0waeshWX/2f/ynOvUj/p7qHaP8bJzXYKbZn9UXPmUeALdYG2TcCSezn3WdPkNE/pZw9L4zj4xr8ZfkzYLyVfI0BCkmTbFg4G0PHFr28SvdYoyapxAdYQgaDUcp3iDTqnSP+2H2Pfb4gfkHXn5depnEYyrRgXiAiWvhlgT1gubjWWXQjm2ydTi2OoN59dNJ27H2jBfUorr+FgNSHYW2+Db7uHGl++7sD7+dtiwG23L3K98eBtGf0h4blejLDMzGIzPEC7ZftMjNF+d80TLr/3z+1HfN/My1+OOjd52+bvGqK3+Qcvcf60w/6tS9/fi1mY6KfBTF5Z1sPBl3wtkU/17fNKoX7uEsKVl/ZfMJPKC1KkXHvzP56XydtYdxJ+wk/r6tfbnCET/6+t3ljbnfkcXGIpzwYZRubnUkR/qHjoGlhTigtSFEe0SPEDjqEpjHDw600XdvuAxIOyuxAXlgQvpBIloypgsIjY2LaSvcbwMcMSfU+KsNyIXhKqP3nP4eeYnUNaLVPNgGnX1bWtmbpfttaDehb7/QxoKRyleL9MKOe05/fiWIdAEFHagHIfSB/oS0mxB8xAE72fw27IfQt59288MNoOHwPRKHeoETfUMXxsQg5RLmy2dPcTWuBF/ded+ZzyKlnzCSy86+r6AT9SLM1w+2grcz+7vV2fpu7S/obP61+IKfdvh4J7FnO0Lre/Lxb7Hu3H7TqZU93XqH/BY76k048+xHLFEIzU+gwJa8eMDWdvFHe5YpX+GI43fMGV376Dcky/aHRrjK4DRD5hmuSqFLzUaDOFQ6aSBISW0VMbZ4YVI1idOJRNqzkfCjRXVu/EWVVe6mzQOWiAh/NoZ2QmB9VkHSCVGfh/u0rIxBHcuLr+Zuu3v7OfJR8M+jKD5C+3W5Tv0KtP+LSw64/LdF2brj3jP2rdXq3xQ75vh9tLOHdhO24/dlA2c7Qp/m43496H5prOOEYpBTESHa+fzECX25Ms0sm5ioXR6vPff4ot59wn4Ju9LPKeu3TeZGzpHJ9eMGy5oP5Ef28Jct7eLJvgnb8Wflsx0h6vNwn9ZKhtFpQ2fxz8rq5DisyJeII7tyRL0IZ5r91Jswa387e9iOEPzy8HUiZsoLDlls/LMsMl4AiXoJTpK04dqCP7KTBGbwbfXqKwfclEwTjfUG7QSm/enJzN1GAQF9heH1C/a/4n4clmU6PcAYQwf7hEltGE87Bp+3aExw0NIaO4KklCb34iryfMHzlLHFDmdLXHHhWZM4YDelEtTnxpVwtyCurJCHJ/eVtieN3rPtBLFsQZLWKrBBQ03JfttfCcNoZKTy0W7075ZXFhuflzjtnvF41/bY8C8o/h0YxczKzZ8O2ufY/8zRaCN8X8C3V/zc6SD/O9A/a38HTTIsvk7iDRx2MZ675U9HdzH2N1qTMbXHQ/nWlteysYeZb//U7IH9uuZwHprSgmPb2le8Sz7Z/QEHM2T6eM5g1c4tCKZB48nHadUjUFmVcK3odaaKkKWn5EJVf66yA5lYo4KXdzmJd9q+XRe+fFmkPb5k4cI1g3jor51exdS7TGDGMeggM4e14wwhwy9PBOkspxBNXT2g/M2Va1o/Bs5Faiocnchiw/WlEAQRRxoOmwp1s+Y2WkR+BD00MbBzOkOXpuLqOBLA42xQ1kx1IqsFf579ssT+4vwDv7u2qes+EbbcffrvyyR6iukrCtMGJWQdlO00YyDb0leZ6l7shz81D6Tr7CeubPy1W2eC2WPm0N1Z7ZPcZGgZO0AtWDyFb5dv7Xx98TO/d21T+ykRnKLsU2TlxX8q9tOK9mrKSVRD7emkjWZz/Dv3TqP//AUHZNBHQAX34smpI82/yfn7HX/0yzHRaIM7ouqAKNTdy/90zBpL476FPY6p5wWHfCf/BVG99k/UK+3UpxAn5EQBpZptsRMHHEJ+QBoAfrRPr2gQBzR5Ul+vv11ODm/HcSy/Rw0/1SguSQQjZCcrdFsXfnZPHNDk2Ykt1c/o6Z66ugaZ/mBLLaEFwej2bcHWu1/x9cqC6vsW7Xv5o6mc2YA5p6srBG/lEvUH7PX4EQDyg04ZwmV5b1fGtJXwgsaYEDc+NACXFEJ0A9x1l+CsB29DIaNBVU0u4TFHrD/qhYaN/Nav0Cgf1X7/efyT2F+phOsXL5r3Zw0q9vFg+92vfGotqHlXTxrtmW77La7TH/96VP+3+PGzjwj3vHS0b+5n3AlVMHPH4jBl+zt981di1K4e/8QRHSKN/ur3+J9y/KGeP/8Q5/zUZGWjPb2N/1RoTw+N7rj/rP2DqP4NUYVXqp1EXzlOCgYbHQU+TNop9HGbtH1ZqcKTYTzpAPYmz++zUYYvu7UOje19m32c9pme0Tn17RM/ie89e1lruTOtRpZVjIEHcZbGH6HiSoHfuMFW+hGshreSp7zK02F7GVgqEwPMwylfNXR6mn7oIdVHlrRQUJpKXqNGeAkTGWjvNkGsP4GKoz1o7s+kQyY3SAduBXJQKE/WOu8Ln3bZBqvt/34invhHeYvoslQ/05A9Tbf96jvnS+DqK8LEb63958fcx+lftVvk8Q92A2dJ7Jdn1rZt2PpXpE8d4kMT+yEUitpmUHHoBho3tFEetGE7QmsH3Whf0OFHTJNmcnLtl76Y94Tsw4fQzddXZYHm/qCz0mTfkf4ZedqmG/u9MZ+Nf8OPfsBpXRTfZh+fSfar3ohGQ3wsQnRFkv/Cx7gT+nYTh/14IJql6wUHXlteGxu/XAS6+7sQxWRphOhU1YUBHp7ysy2gFOVx0Me1EtWmOKCPu2o0JKfhrk+V2w95Kp194IC42WnHKe7b7OMpXyJj/9Hatn9Q8bNk587nelIHjsGNjbg7VA8CT7wmcVIcUDatc9BvS3kQbUIV0zbA0FbbSyNCLPqIJ/WOF7LzNuX35IEJtIRZ6vz+IQOFsoAozRGIu8Pu7A+DLyxe9f1LrIf+70fvfuVRMiHoT8wn+nkxoN2Eid1qlOlDlO37aj+6EMHaR9KB0ax3Fxs5gI7Y/Jj7eFLveCkuC1WGJw+dg6YwDP5YXgewF/ueKkzy3usP+lAH4FO1Xy6xdlToB/YNmNjt7LdAmE4Uqjo6Up6+Pg04bCYchP1qj3RIe7Rv5AkNmCKkHEDFZUcIhDggtmGynzr5UP0FPacQf3+R4eMidvIinYajm5/4sqxZ5Il8uAqF0I6627MtoI9Tik/zcav3Fx0+ztYWXTmiB9EHcO0rT57REueCE4MrKcQBfTxh6BLxZUQv7rLxULPTQ+pL0ZQ+lWnLcED5QzgINUyyS6AgWuegthDBCVT3yZGDqEFbQuDol9BiCf5EO+UGPwtko2gfHs76hJUiQNAmRlBUCHZk/SsufaoPUAfc/aluggPqJrsECgI+vToWxj9Z8qyl70r0KACJ4trf4T06EE39iCfdmYFms+KyI9RWaQuQzVYHaTchbAOPg4ndQoPNukBAneDUR5oaDuj6JUQNZBACR/+EwFFHCNwKodYqif3hAHhSiAoUOQvj8Z0fSOqmiEBPtZtQCOi7v/Z3tuLoxH5zCxwBw7GjpwwqRXyeQMXlmFBqNDYODsZ+65/6QnNngKE972eH/RYti6SPJ26BmShmriFKa21/en0j6PQCm3YRyLsGLpRkebUdSZ+SOHwOgjQfWjLZBAo6VCINx8QBtejIEi5AFJFvow0tc9oLH3UwBtNH2+XxS49wIr48i0KcjlV90KXWYqdfs1WYkDyEfQPmFZUnFZQHLtLAT9zBfUCbLaWVzVn76HtCTRIwOZeqb5BnrqHFzGKXykr9TzmEJiqtt4i2zoFm/jTvtC6b86KYxt8pqPoKY6pvGme0zxbqSUi7CVVOHKwJ5yx6TRheOp5t36/jzfecfkJcr50BeYkugjfZMwD7ZU65TZT4mSx9HpdPRL+Vr709XonDqiizRxQGe1biYC+ZxE4Sv68y+9P4UnfCZnsmnwOa+dvFP3zn9nWnfXThQVc/bLr0vledaYqD6v8+5n+XU/60xF89WJD9k41/nhe6jqC78o52TePFo+XJZZ4SctwT9jv+k9lP/RJdPN2hB0rTOU8q2s1/Fe97qx3e0QuCrXee/to4rn3QPgBZNqjy4mwGClQ6XLXjgdNWvy4rOL8228QvA0uLg9rcG2xW6e8dP6NjjT2Gxh7oSEJz/iT6Z/RJpx7rt5/2i6yB/QiX56DCUF5xwoJR8RaLyGRB2aLelhqIGJMICS5qu8MmA1AJWYwdcSefsScEH994q7La8UM08s3v38Npax/tvzWszj11yUGXPdFkax8JYX3C3iY6TfbLF8puFDdeUh2Jv7fwoKs6OnnvvOcVB0zEtdPlm3LniSuOVXcMOP4y2c6r1cI/kr7/Qvuf6i6jf7/zXx6h70jDyrzqH4/U6+7qjZfgSeL7tFTk+ER8thz9Qx/zX8RhxLn+BMBF8vD0x+eMBPpSurT3TjFfd+JhMG9Otbdno0aq/2teGH0i7Z0yQSFOmHINCpOYnCQuuxj9cd4jLHr+kx9R/fXI3MpFtLWjBcfo3S89qh7VvmhRF9VdodKEIKe1lhhKIzELJQZIniQmYPYK6xSCnuEnnVCbsg9ln/zTDPUmtAUIUtuSA3TSVHamA7YjRLXXvdkGGolZ6NsTB9eo+Nm2o/GEsM/Hs/aa61vmhHpYFw/OmQBoQ99C3mTyUd9NgSyehNGOuOoAQq4CqLBCXQhB9XHHloAG+8Nrls5feE74jG9vSuoLQLaue/We8fjoWbmii7Y/DO6vBJU/W7Lqqm/m9j8Jcf4zv3efVH9STvqf2nLPy94YRtGHJRpPndS/k8jLrerI/uA8eQncB/tyBaoh/nkauXxkwuemH4hTK4ufceVjvUjYctdpv23wP3OdEEJ9PNtJ5/ZvmH/Q1euyzafjeMnB318v/WIbuhLff9by8Yntf9KzYh3lf9MErN3JFLkhrMw5dcEB33uQ/bd9hmPr2pfvUY+C70iDRUmiQAkmDaEw+Lni4+zMJmccYUBwUBCmXAnmC/HxhCGDUBenn66yBQfkiptQWzbxm124RKSXiYSJMI+/gSYHvoo+rnzG7NCM/TLpLlm89GMp3yzGfMcIrv51kH73oTAYD2Ll4eSBp1QGXZaRjza2IGF7uRivcvJzgvmR5IzqJm0gF1uTPMptkTPUizCjn+qufVh7s0WvI3546arnvqzoxQbUqo+Pni9W6DfOBmm/vKDxn5ZWq4csOaT7xQbdCSi3YOJlz7rqy0uWzX+m4F/UOvgZW1O8+h9/+VbPnpvvfjJ/wabKtN/JVRpRtXmzXLUc83HyQrLljOsDNqO0sN8qi9036JPtKqOf8gqN9mShb7OPSxTL0sYD8aNnLNy6c/uVklVHwnfmv/7nP+PCuFtMw63VcM7Lljzze3f6ak664MBry6OJ+jflva37qcJIFg5glyRI7CRJZBGhOKCPu4FE3laDQRX1Bh36Ig249GT9Azr5hMrn6ZT0AZ25QQZwQMW1gdAEygadCRUXHkLjd22dPL9P4PpHiCPigLKhb0LqEcpbcQW/QF4AtkOkz7oCn6Cob3J8AlfCJ86lTRBtUcfCq0+APs569a8cAPo469tB9kV9oL7SYIaZksJ2wrRJ9/bLPZ4nlyyc+5EwvLDweVV8hMx/O00ZlP0SnP+1ZNU17w0P/v4Y+54qDJ9yxXa5UnJ+UAk/PfD4R+GU3jyKiZg550P4hDEx3I6Kyn/00c9S1Pif9MTVTwNmqCz87MKWzTsvk3FwIufBTkxhrjEHe5n/ZNE/Jm9DftWiVVfenO1z0rhtvuu+T8rs+rxOTxYyibjJWSZZD6fyMBx4q8kgayz6VX6BmrgQK3/4x4YlAqGPs14dDZZWJx+hawF0uhGyX0LVAHLwB+j4CVV3TwblEKocrw3aoch8/z+XPevq7+vBLNo5TyXxg/3qIw+auS4GLmjOKwyh+VsYKU99jyPxXwPuONTPgrM/8CjN8aNP0FggF4XyiSvR0UlTHsjBX4fysvpAFmhpoS6AkIwSrdiybXzd5jtOex8mDiUVtNt892nHSp8HOqu0F2qBA+Ksb/C58+Nk/syzX57+/Jtlh177wSJM0qsdq66+oFqpfJxxJ6SehHn2+TQfb2e/rNpehKvBvduEtaXvbRwZJYVSn8k/1Ys0aZH1N/iz9veuY+ct6a+sPpAAWlos41NrUWN+SO2mH1L7vVc7pKJKTD0QxxdWtt616RJJltPy4l9E/ieuD+XdmWHldbLw/1FC85CWC47Nd5x6QRDF79DQY2LBhkJoB7pHOlhK4LB1sqS1wFCcTLZX2S6pBOdAATQcD3hKK3eLRHsFnkiyvk2uL1sYwCO8hCoDump7tGv+g634A9TNGqsM2/l9KKeQDaLGtXbQeMmF9rJI+vbSVVd9CPhsK2nM0jgy0Qlhc6MHXZyFzvbgAc6Ci1EogD5u1GZ5jIfV+L1ZC8oGxNZugPp9qg5oB11c+yxsJ8/XCLjqIFA0WSELj/+3+a5Nd2258zT99oiS+7yrxvErIJJ6t9N3qvbLguCaJYde83d9NqNJ3OJnLXu/PAz8y0HFXxKnEtfqpzcp0iHBlhtp/BkPNAfOkvU/6KQBz+ZTvv3gLK5Qd8B2+ZTVV9tIO8qAlsBZaKvcjitLCw9svuunn5Gvt/+u+ZZnHBz53rbG9C393S5e9D+gbiKGsIJP/XHlrXJOwyMYuSU3bFvveumLpO3HIUkVUomC4cQL3J2AoRxwQMXRH2hqmJ1ogEOGypE6Qm0HPrR1fyoa/MJk3RieyBe6yocQFeRB9Kp9GwQOFsIcdtTKhmI6G4+1U1yUIEzsNsUg2Ppz0Pruwv4guH3J7ru9CZ/ITIfZtYc/zCcWA1rnxwF4dmO8kvaUI1B9jliB5v6IA+Zt4l+lA/o4eVVH14fiyi6yqBjkAnfys/yqB9rzjzgg2mhTg8AhCoXisxBtrDvXPoqeEUX1yzff8ZKPF3G1Qx4deCVsQ7+qr3ROmNhtCqkPtM7jl1bWthP7w2DHvOrcPzAPFLuXBzjrc6Lg9yuVSl0U1NgXHf8oiHTx1otlmIgZd0Lf17ABG/4IfZz1WejbrHgvynXTRh74Uy1djqCp2uFkwDYUwLwNvJ3YL75WOeWu0QOb7jjlf8tbwN/OPGiKP/w72TlMnK/xYnCE3wXE8g7HsoFHN0QbOP7C8H3LDr3qS40aNR41LTh23HWaTHC1S6M4GpFnN0SYBJabZoIcO2WgN3BAxaVjQmmoihCqEU45ESgNoTiUcRBA+zGouNQROmbjRzMU8BP6uFGtf8HpHMigHiqvXf8iswj7xUcb5lUqr+rr7zA4m4cC1OSrdy43VB/grlg8ERPzbRainfK0aE85CaTshF+CqjQEN413kgNSpzmQ8Aub8icSGxHWJfyN8kWY9qMQOPgI/bZOaq/2i8j3bL7zyZ9uuueUAxoV7P1o9P7T9xZljx2U/fJtlAvdN0t6V7qLlosOu/YWyTJ5GNvygHEnTOxmnPJksw5Q8Unj/1I895Ynph1N9JS0sbmVsB/6qa2+/e0UmWo9fumygPyfqlq7QvtNd57yl3JO/IskTwc4/4Vx+KFlq675p3Z+blhwyI8RLR6LIry2fGVuQyQSCqBsmswOWmKD7HiMUfdCRSMPd2gDLa8+M9pVttAA2Q8hRXpQNNQjQB/3WLpD2Zfrvxf75cpRTR6o+d0Fq66+v7vOZxi385FqTb91YgJ5k/aMNWLp4a6+OQbiYZXBMwTaAbf2VifZIDw+znrLK9cPdfAhVtQ4BtTVNcRDviuoQ2Eb4krsYNfU3umitkfHhrX4xi13vuSZHUhqy1LfOf5i8UFIP6gPtP8i7JcHYeeMtJ2Q2irdJUN1ZM7/lWtbE4wvbQX0cdZPKf5xvHTrXfce16WKjeyTxb8P+S8/zNfYX7+P9BeVRSjs8G3ptB+/jeKUI9C3333W7FTsbOfbdOdL3im/8PxhzHWW15iTsMFvhI0536/8l3fofGLZYddeKB21LcmCQzoPNz+x8ctxVD+crUwh5A0VNbxVvXAZL6AaCnNhcH5pJ1/uYbuGgPhEDFkG/bapdPYFaJfmCHlKIESb7KdNn2a4yeur/WH4niWHXHsd5M/mkvrMcgJxsA1WM06IweQ+bucjxhPQ8DTuaT9pf838bJffU5N+HAvQ2+meQFjWZE9/7Rf5+0gXP9q87qUH5WvcBTWO9ORIn+S1bLJHOlca7HS2JnAS+8Mw+mo/v5GSp2seTd+REAZXso62Avo467Owa/ujuLcFh7rT8pR9ZnXJO/ZtMHzy/O/oxUt5HXVIqwe24oANZkcK88YjbU350zHUYZe7PNumNaecIzfmP91J/JvzJR0HeY5sig/j6sa/3J75ytJV17wnr20eLVlwbFrzkv8pKyT9Lnnr4NuAsMQRXLV3UHA9dFBx76SPNqa8Qd+QVLGMfK0gLeVKMdYB5slPaYnOerIzfpNDGcLhJtCi7Jf+/mXZoT/8dKr/7MVwnxAbfEno+5eWow6lU35fho9TnkRcUUD9wwDBH2DOBmbK8XHyUnfqBx7q3Ak/5FAG+yH0ZVF+O37Uy/aUaOf4j7avffnTIKPXIs9v6Ns5fX2Iu34S3akf+urFfgnBxb3qOdV28nHlYtqThZBNm32cfIxdp/aLc3pbcGDe7GC8UFfq5+usuDiaMMl7L/8Lvr4RVOUPutFfxFvpCz6UTvkhxwo/jLrDXRRsvuslLwvi+lfEL3ouR8xRNPaMO6HNHRqfVvGgf1nv56QfK/QhM/wVSw953vlCZ1BAnrSokpvXvPjlouJfQ00rgEgaHBkEDiUIVTFngFSgUusJqbAPIUvbaT/t5fttrZ3pYDqmOPmoG6CPsz4L1TronhTiBdgfBNcvO/SgjleCiUozFunMh9mY+HHzcfL5NB9nPdwFnAU8KIA+blTsyWv6Gp205nqTbXkM3NfB5Kd5Ddk+zeelvlno8/g4+Tza08YndspEc2HyocF072xv7eJjBmG/uP7OZYf9588606z/XMsPOfB78q2GJ+A7FEI7Yqz7Fn97xboJ73wv3eflk0/zcdjg5YK2RT0KIXDaSn7Qii31JOeLzP9ibZgZ0rfc+eLnRrX4m3Lmn4OYM+6EsCIv/qSZlT3mfxBfv3Th08+RdwV1tYatxA+fvUB+/VXeSc8Bl0JTPJ1coaBvjCnc+56yAH28tcTJnePL8PHO5aW2wx8mow/2h+GDI3Pnnx2Gn5V7ybtGge9ss5zBXIjN/GoQuBVCd9gAWAcImag06OMmS07w2tYgcOhAaPE0mrK5euDUF3KMz/ozPupgR/7el0kZjZCyAdEytQG4FUJ32ABYB5i2hSx5xvAFm++4vqff8Nh69/UHi7jFWf2tD+urE/2y7RttN33lJui0vrYf4070utHXlS72aYZPOf6HYE6l/KnDSeKvVWlOIF6d5P/UdWotATdU4Md04zEg2jXqa5Joox017lkH6Ldt5NrVjkbvftFRUT3+njxisJB+hX86iT9zHj4jzniZj83XwK0QusMw+MXy6pIzwmdcvNNROgaVzVvX/4l0HVEB2gAAPCxJREFU9ow84c3KpAqih+Z6SzSTleKJMS4RNfPMSxCSKNtOnvEKP9qwHaEpZLJcvcoTPOlfExb9tdpUiMkAl5Odtk9pytlUn9qMPlz7bXG1cqZ7334ie1dBuJr2P2GRZj5ALFAsJuYzP2aNPmfbVvKaYiaMSksaSD8qhDnAvlWJpl2TPGjq4t7EnEPQroSedO/wlHWK9sfxhzbd+aKuP1XH9fAA8zk0oQ6pVsRoK6CPs74dNPun/4cJw0r1liTuBcZffFQZ3fHk/u380lyPWwT0cZH539xzkZSi8r9InYdd9uY1Lz2oXguvktXFcuhKHwP3x6jiUknYj/yXBc1dleril4WrLt+K/rotFXkG8xQ2yioLQ0AD9HHQSCdEPQqhj7O9TwOeTnSc/LPQ5xHc9aFQdZNB6qD/AChaoVCX1v0bH/ewBaWVfbS1VT3ask/gchlXflQ7fMuKVT9cjeNdsWR9ipgbjbGGV8zv+f5hnfGzLWPQVh6+aogCqLjIIUz6ZR/KqOyQa5tP83HWZ6HPIxIyOQWZtCFfPtr7hbpZP2xL+0XanKAef8Rv0QkuVzX3ze+/sT+TRRqOiJs+duzjPo/Uiv1zRuJbTM707WXavSWJe8Hxr9ejp/fP0kZ/Z+MP/5PWGBungdoqOCDx/inXQhJ1li4Lyv8WHc968va7X/zUOBi7Rl5bsRfjTthZ/CU2veZ/GD40d978U5c+64qef7m6Im8kOxoK+4nRKmp8NgQQG9oQUsak0A0OaWl/6Jc0lZU+ZOg/rNJKJtYfqoNAxUUWYSLXk99KDumwG3ir0rX9QXDh8kN+1PWvYLbqf2bS6U9AH6c1Po08PrSIWoR9nDw+zcdZj36As4AHBdDHldh2x/zoNGfSvlvpQ91Yn4W+TT5OPhkzQfyiLWtOObmt8g0MoSw4irdfFuBji5558B0NXU/DwchI5BY9vs0+3plSHcU/xmKu2yILAs1TxpXQj7mPd1oPPcA7XYV9U1/oQZqPsz4LfZt9HP7atYp8HX7lWK1+tZyi9k9zxfeJj9OP8JHvb/CgAPq4Elvu5AHRx+XnAk5dePD3H2nJ1EGFfEsq/o3wLTNeKEalpcadfAlVbzyQSv1lNpFfSpQmVLyxvSgprFgEWH1jLXpspFh30gJkKaqJHKTSTRZkWlEOx+lIDaBRfkOVHmTbN/LTbkJTV3iS7lvbLwumby0/9Dp5hTO1b+59NlPoM6QGcKaI4eI3F2R/YQl/gGxt6B0626BFzHJC8kqeUAsu8n0MLkYVErI5aFLTmDA/mVPt+MNKuESU3COoBHsI7x5ix960DbJpa2pfSkvr+2O/2uLGYxRO/I0cn6a0DnYybuWkCKsbx5TFQ35CgEZpQERgEi/DWY2ufDzH/juG4dmlhQdf98imX73gSdFvN0sQy6ci7Jdrm+Lb3ko3+a89cD4GlNLsf8u1JJ5dPeKnInvaFZ3/QZSO4Z4UnGGN4jUvXLypVv+BqH2o5awzoNv4Z8ZzR/lfCTcL30uXHvLDe6bqthF5//l/ylWOVakgS9z02MMYY8KM8saZtpdXCmFOk/sKjqa4cLnDZOC3kEc2QvBrIjt+4kxuqxf5lKcKJa1NvYY96whR6eMNzKlcym9hv0zAty3fff6bZZBPIiwje9YdmulwEQqh4a3dQtcSWo5Iq4TgoWEwsfyw65JfOoXsQZcda07ZdyysnSYGnio2vlIsXWgaDsB+MRa5j5OJ/Lz5qXiWQ66o/aITH8ivFON9Hpbu8G2LkDRNSBII0vL7gaBUoHweWZ/PNw3UMMCl4N20Z+ZTo7pNStFWQJT8BanfTOIRxfv4lG5wqkWYuDIhePkvghn/ZA50tJZ9Fv0iDn0PB5Q1f3HcE0IvX9esnjSTsKX9PX03K9vbzDiO17583uax7ZeLL5rem9N1/OlYwvb5v2MkGDlj6WE/vLUf3hqJFsz9QLBt7HQZUPtDB/avwvHRBZniPsJkjVN+VFOTDH/StiHbyJwDtZ+0v+b2WQ2pLaBT1UEcZ7lB80tj6xz+jD2d2C99PhGMVM8K9756m9/XroTjbYbMiXY+Vp+KcwCT4qFu3rLETBgM8dkyVQM7XHDYtQ9JZ5/DNrrmhXtPBPFfibLvEPv1V16LtJ9G0ndRPTpHaB0tOGSBIgsj8yDbQx5xQhsCWNRYb6CTZpTGPdiUJyGHWxJ0mhG5dY1Pak1a0FZUECekrd3YL9/KEd92V3BbPdHNV5E4YY5Y6ooqLD5xzCsaxMkT4mcHCi7ap+sDamtOuGPiLp2SXKF+yubbSpzQyYl2kSsc8vtJ1U2/evyrkhsvcqY3Ad937eLf1FgIfnvigBKjiWo1+N2lh/7whrx2vdAqKw68dvO8ufNPkjz9OhJeB5imvkRYOtVBIBC4DjoHyUdIPkK/rUkRGWKB1iPbgCOJHLQu8BZR0AFlk+oEwjqpBA3Q8BSihroAYkMhBK5tHQRu/AYNT2VoT9qf9YH+VJaDefzyjuiJoBq+drdDrntAxJdFPdDodYsg9vYHFqN15i4XVqSN3NUYrrL4sOse2+3wH79bHhY+XD4J323aFWe/7wv0Jcev7tQj8uZPXXCYDMlta6/NKRcHGGqEPm5UrXEoGH1bHTmMNzts+kEYy+LH19HsBq2f9ocxfFtMYWxa6ysrFymcQ4krcWA7+lh7d71afthY5+g3vl7G/7CN/SJcKyf9cNOa335e/KMv5EQfU48/Y2PxMHnN+S/nt0h+guMtyw79cfKW3n7YqBfYFq265lER9jr5us276sHOw6pxtGcqnCY6in+oZ2ChEypLA0NzI5+XrIQN7nRNE5oMokiu11XkC31yI12uIZ8pE+DbyAXor84SOv0rBHSDQ3aHCVRpjkcvlwoREAUDgZdQHUGBChHM2lqwUCH8715x6I9/bEy79t6fRHxcfaeOc/4hbi5HEMWxcgCIkqlXsqt2HMY3RHsZpGs3PfiKE4MtWy4TtV5QlP1qMl2lMD546x0vPHzJodf9qgN36LsiqBshHG44HI8CLwN33s4cukFgLMplfJQnNxWH5gqH5JTpojkmyubo2xf7w7D393CobgyqKEjXu3D4+a8GkNXV5zZoGE8JozYvasf4Q76PZ9Mpa1+n439X+LVYeeboY+K7tyQ+gy/d+FMI53YdfyfEpQFjQ5jkf1z5o2VHXP8f6KKfpeGO3rLDrtoowvt2+aSfimZlbVx90vvh/dRR4ioZWHopyC1qsnOjLkgcD+XZ9GhHMYIAmRyTxBldDlwnnzIAZWHyqd2OvPFffVqJw52yIPN8ThzQikRAURcJ4qwGUx4Omk83YUOzX77f956Ue69nPrljK97/cAAXw321n9Z6fqjZzxO0XXDIh6fklgrFAOKTselon5SJJ/FiX4Ro5OM49koUD88tFZksNqe5lq90P+wXyT1c4UD+e2PBVy8Pz6Op39040rMUCNljZRrYrrDxPzALpqejJ9c8/2/lwe73aO95sc6jKXM23tljNATNF6ANrbWO/+pfrTji+n9Jqf3DGhYc/RNbrKRNq08+QFa4J6vPPN/ZggKTpnOy+FTRBt8yAKJjk++lTnnT9hoctocwbWP1jkto4XXLjxh5b7FWzzDpLgbmzvQqEKygO3MtUh8Lh2sPH6vLHTPxSWXkCh48UX6sbMum21/4ujiu/VR6T362fFLdu7S/2T/xczqyNI70qnRTe7c4TBYYoo/iLh5NsrMByQisVMLiHxpoUqoFIZRvNcmEKga1zq8+2C8fWKotNGhPnnL8dcZKxxhtBRxE0XWqJAHyQIr2ihyyw5TmHTegndo/KHsalBvMwZNrXvDuuF6/EL1lhlMyF9Kf7eqTXKe/2vi3Elb+cbcjrv+HoiydkbfC6kF0PnKYCwtAw1OoodKklx2gAsNxVQR/Pk1xBAP/Tl4WagKAh0WiLlc27h+ZN0deW37d8Eys1G86IUaEbOotB4GrTwnVz3heB3Gz53agMnAWiEFx4hRRWkKw+mHdLz/iupuDSniJ2i5K9tt+nUfEF4DY5MpF8mvPk/lEvqWyQ50KJvgyKcxvaowK0lKMtRgOigMCUR0MGh4vhYShKHG0RG2ForCZdhOqkjACBdDHldhAUQ7ZJRAI7I/i7cbd+R63CJj3hGhN1QAVlx0hkKb4g0/oqhMEYGw5aAHCQYFFzijMA+infXv69C3/CzRhOkVvvP15b4yj2j9RB3GdFkDFZUfYU/zRuFX+h+FFyw+//s+sx2L2M27BIQmLL5u+yaUyvNfSMxy4gD6eNmBbQK7CDSIu2Q1DV+Ml0A3j0SCsvmrps67r+c1rqS6zDDOX2uAQnL70/Wy4eRTPyuDPfGzQvNy4FwbzvZM/E7w2Uqn+Y1H2YwJXn+DEIpsMjv3xnf12fpGT4g7lF0ZCjQRkOJrKdjjloQ6llT3QxRQyIMLdO35An94ShfEy2KR/9Jeo1G/75YS/o1tLMRH3kv8aI6RAK3vEWo2nWd2tWt3z+1c4RC/NFwctd0wfzRHVzbTrevx3r9nQt9j4qxecIYG8SO7pyyku/0/IWgOouMSdkHlMyLgTJnkPCZl8kaciv7Xi8L3fLlczIbmwMuMWHBtuP/El8lrX/eAwdb2DPk5nItuVDx6XDYAQOOoITZ7jB58Un+bzoo0ESJY+8ZtXHPnj25W53DV4AP7SjckNKH/qbwfpe0Lf3xSGiQil1YREvmGG+hBnGN9alP2QyyLv1JGHJuqH8rgVlDnNfQpnWxtPxk9a8xjQKCK27g/8fv9+DBUPg6G5whHGoerCnGq0tZ/293CFQ7r3fWe6Wd4Dnyz/G/zvcoHxQTvgbE+5xUG7OglbdEPvXr70a/zLj5YVZ8I0SH5y9fNeEEd1fFN0hHkANZirjB9jCYg/FEIfZ31e/ClTG6uM8Nrl85e8IQwvxW/vFVpm3IJDTvXntfYIJ0qbPOxUZSc5TXRJfEIGlRAy/asgPp72l8qXoP3N7kfchG8hlCXrAfmuPy7r6uVe+NycDgfbEHEQ3kQdIfkIjV9qld+GEHFA3bJ9D+mxaH+96S4K9tF+uBbyABUXKFNx2wWHfHVzB/UgRByIA2JjLAAVRz/syPEDtOQfoiscEoOlah9u2Tn7fJt9nPW92C+iu7/CQf96PlddMTqExj/iiX7O9wgJw0JoVVwA8CrvAO78Oht831Ff38fAwUOYz9/C/lm03pBnEo+Nw+gKWRrOh5/oBz/WfYs/cqkh/8P/XlEdebU8bzaGfCm6zKiHRuO7TlqyYWctfdeAZq+4iBDeEoeycDGRQK1P2TEwwe0P0LTWMQO4DjzR31h+xE/+PttSWctdEIyMBHF9wjwhoweDJTlLwYk6y1icbE8PSxNMQMrjHEmcztegQYbxOq6hB2E88vNYnlnU/OyX/WI1fcUch1/kpV4r2zlELoRs8Lzekl1jh37cGACwb3O5JrQFkHyCk18u0eovWjru6Qami+ZQZ6rQDsJO7A/Date3WOWqrYVDdGNMVcPJ8l8YyOvHX4eKhcPGCZTmcWdmT43Liz/GuvrO5Uff8r86SIOm5o7JWm9Z/cJVtXjiBxK/JcpXdPwx4cJ1mhLhmmp10enhYVeNTqZjP+tm1BWOjeP13xNPeV85g/dQAH1cic07nrQAfdxxctACGp5Cypfhc+uKPfZ8S9H3upqVn0EUvM2QIVFfi+7O5zr5wL/uD1YprVPz/DAT77TtNPJVwvrj8IHa2m/7s36IApu8JrM3DB5CtX8lz8cna+rX+W3sk5OTmcQ/8H42wW85WHzjvacsk7G7j/bq+atJf2EgrRMNyQuouMiW1wU93EnbnnioO/0LIaTlCWSdz5/H10ca/aB66biHjqJAP/N/Flzh2Ljm5H0ngvFr5IHh3Tt2f148ScsTwjpAD5cr9PfPmxec5l6FkdeyENqMWnDE9eg8eCFdEBhOz2QXDOQjZNtW/FiEgxfQ8BRivEjt+nDO3FeFT7mi66fQ2eeuDnn/ENBw3A5wS26cjtXRBg1vjLGywologm2GlDAc2QRVzVaDtJtQLO3afl3AiB8AFYf/Qvk2RtsSy0kRvkcxSHcSao0lfssxR15AH0dbFInhbpvuev4z7Gj69uG2sWeLKaKiN+sWZH81jnUx1721EsEu819jrlal8U/ywMVOhHavyhRaMA/yRPQt/2fUmavZE1vXnbZnXIuuldg8rd/jf/L4Y34IH6tU4lMXrfoJXvg50DJjbqlsvuOEgyfG4+diQOp7AcRNxG2Qmt/8sQU+8uR6FeMQo8ONR+UVQp48YZuQV72+dsVhN/Y4meRqMIuJ5tSMi5vsNffzxNd80sLgIQ8a4xlqlWnim+QNKyEOJ5boRJBRkLYBomRhW/vVD84pFBB38qBm/DDGir+wRvOm/jwa6sFhOloATIa0skORZzgfdldyrXaMNLxfm0/TTm5ZHA3bkuRJ9BWS4PADSj/sl9dw9HyFo0/xTxIpa09SYeYWsJdXnag/zcHYwyY7au7O6phTqXb0Q1Z/jn+5b9gsbIZQcLVtfHT0KrHt4F7thx+0KJQdj+ls58Am/wXhk5Kfpy0/4sf3Toe7Zsw6cWIM796wJEsuX4rHSMtzHhcOgLkbphfUuT/IAM7CpAeU7YIVR/3sBtaVsDcPZHyq/gaNMYD3DQdMJysXgyb+3rQYfKt6LViBXvttvy4YxCuAhmsfba9wjFSrD/EkS6hewdkCBdDHjarjxaolSqjXBYZBXQ2iMpkNrVFUj481bPr28lsIRyOjzNbUX9Co3/ZX5o082L2lHAHQEn+AGssEIndQQ6i4HBDCDm3jIHCrNWi1Six2l4m/3xl0RwHElrXH7AbV2eJBn7/wr1NIv0WU+OGzF8Sj278r1j3btwcW25/5pJ395LaYp/mMdswD4CbNoODbxOmvmM5vVs6IBUccX1gRL75J/TfpzlwMJ+umE6bgnDyzUOPANnrgpFt7nVAhK44/ufLon/+bqyxBBx7gAk+uF+mJCdDHWQ9R5mcnVGOmRI2b1gkt4ddwYAce12YGAPmxtAMKs9/3A3zVwZsul9YWyuvP5W0cnm/V1zILEuKMQJx8Pg04Jk1C4OAjNDzGt2aeO90hkicsToQOao+DtMmHUF55YISHk8enAQcbIXAx/9EpvZdHBGgBlE11cdBwpx/YGHdCNMy0T2QpUvwukpWA+SEd99C77+O/eFP63kMcv2POxo0Pf0Oe8jk5ySfpRePK3jLxs5i3mf86iL8sQsbDSuU1K4/86U3sajrgjFhwbLztylOjqP40OMi/okG85RUPnQ2kEaCPQ5AWRgrQx121AAnUj1Yevfh9KaXEuvEAB1OrAeaHxceTPnyijycMMwOJ4uAk3xfU2jfJx1nfkLc5DM1jQPI4jrYl7Vsg4VFX49PO3Zr3KrfVGPDHhS0m0AZNsGF+JPTnSnYLm+Vk8/wn73jufqQNGj6x5kS87v1g7VdtFYwGYNwrDXZiQyH0cau35pPYHwa/UBE97HzVkuY+0ccdQ178jdbKnkRyYQjzAB34Oe/j7Nw3ycdZb7GRI1R6DJJTyU8FJLxDjOBD88bVq78kvjmdfoC6nkkNeGJKG4ZO4i+3N2W9XTl35RE/vTqRO03IjFhwRFF0nvmHE0H+YGIgAfM2TCTGY+2J5/FqXRjcN3depXxteYHJaTGwiUnj4GIkkdI/nNHwB6gbcUDdClSuT6LxyUbmjZPzxPXHfvjCFVkhy1HbBQe4ZRqykyN8y0I88bdorjTMfCLb4RorwfWP0MVD40V5AqU6jCY4hr2KQaG14Hy1AbpnN+gAGgtx8uE0oLTO7BcP9bjgwLdccvzpaIne8LHqA52pN6GQcD0dBRAbeAm1nVUXuc/Gf7K+es7/OBqaF8pNZh/rNqz+wafEVvmWZWPp2X6NPeNOKLLz4h+E71x51E/lysr0l6FfcGy899hlksBnYXDZeDHo4zbw7FMHcJsaxPfwv7dhIOAY0MfJw7YqL4xHq5XgVUsP+dmG6Q/TTNQAg8D8TIgj4upjPYZt6YBBLFDSmBhu1Jm537D69tfLQ4srBmK/DAw56XW04JCHqjs4OTI2FjuLAGlpbNJ4pePQj7VMrOfJxvAOLJDx/S+cLx/wmib6zhWgrZ3ZL28z7cCnrXung1J/pj5u3cqr4aIC0Mc9lqJRs8H85ee8j095/Mfh0Lwyv50/N972O38vVyL+oK/2t+rUj7ng8mNsf77yqP/6XCv2QdOHfsFR3xq8XpJzPhwjE6n6B9DH6TQLKKc5ORKH6x+gCwQh2qCO0MdlkRhXgsobVxx1s9znLkv3HsBLv2zC4Ve+APEH/xMyFoTohzig4SnUiGkcjUbe7vUbXAtcSpUHFt9flP30EyEsk9s3v+3EwmqlcqPvY/qTEDKIA+ZtfkyAZzfYbbRg/w2/eq58cBhseWLz9reIVsupe1Zfsy+1DdoZzfQkzvZZ6MsTS+vVOQF+Gbjnku3Pl+/jWT14jI4pw8fTenlHTqEFD/anecD49z3/g2jfQs3ok/ANt534fvmw8YG+299yPHrxr1T+94qjbvpIn0zpi5ihX3DI15/OZwLLE25itDyEJlBxD8ooM4cQ6pGjuQFgA9GbXIRXaWjjbXL017sfffN3+uLhXVwIJz9OeHZ1VxYdMjv7eKt6uA98LMTZnvRhhRtXX/lBse2IVvaBTj/4uG8fbYaNxFvVY3yEQeW+Tvyx7PAbfxFWQl2cUJ6vg4+zPgt9nfL6hAwUhfXoExvWnjCwS+Gja164t0z0H4ZPWhXYg0K7fJt9nPVZyLYqJAj+a9lhN210eFcAX8DL6y8jv6P4W8ewmXYTdqVSX5g17tBE8iDPPp/m4/QzlADOQlxIxwq/V0OO4YEbbj3hrfLsoZ7wYVuefT7Nx9vaL5YnvmjwgsVaSP+6+5E3/Y/h8YZpMtQLjidWH7tK3Pcct17Qz0rA4V/6mBDmND1AI5VKcw2UV3buUD2gNMVkp3Xh1/c8+pf/QFIJe/MABxhaA29V/EED3B90lNEIjQciJxHbqruB0jeu/p2Xi45/U6z9mMhgFnY2qVWq0b2dGKpvy42D75svO5sQG2NhfRvN4pHiJk81c4GSuqfK0yUD+8S1c3z7J0Sr3aATJ3CoYnmWr6+fgz5udplNjTjkOD+Ewfc68XseTygzcdf9ubibe9P4i0ZOp3QxC9nY8BLgogv0oY/QF/BWBTqhUD/wAmf7Zmh1chVv+cbbTm77m0EmffD7Dbed8FrR/bPoGTa0Kr3abz5W6SLfoPRkfYXx11Yc9fI/bNXndNKHesERT9Tf6idc4lBOrh4UV6sfCe3ABdpFR+sE55/KczKAS7Ru2X2f8PzpDMhs6RvziM0l+MSNgliI53V0GPRjS1w5bQQBbSrZAdrEMCSEjbcd/664Xv+O2CW3VFCKsV/9LDuF0ov4J96tsqCjKxzQSvi/x9uTOO6+uDHm7KOt1Ad2k6bxD6K3r7/td87svp/uWjxx23PeLFn2u5Zv0jPGvWywlZB2E3bXA7lT+yuV3hcc8gVlNzZMV0rPwmz+q59ll/rbcLbL2l/0mx7lF7Tli7EWc8adUOPfx/EfhLXfp53DBDfcfsKp8kT2v4u9VfoCsN/2Ixc07oRwQhj+YPejjn5TGF4o18yGrwztgiOOz5ZghW+UUagrXjgXISPUYY5JBD5FEoPP4RoEJRuNkw14dAA6frBrW8AweLw6d468tvwX5WvL4Y8pFsRFY+PB3kT6UjgpG+Rk2pvcYlqtv+2kZ62/9fiv1qPg0zLi9at7tKC3HtkasNl+oWhOK4TH4/DO8LDrRjvua2FwtbRKft206SohenUv3OtEZqO21oI0HGGYhlH9Gxtuec7ZncjrhWfDrce9VTq6KK8t/ISS+MvhSgTubAX0cdZPAu9dccR/r56kvscqeg/QYk2o85qjtbIn22nRFzjkMcUn0adpa73TgqwunR2zdZ790Xmb15yoL9TrTFbxXHJl43eienSZrB/n+pr33rMvpU38w/gnu++512vD8LPulzN777WolkO74HjiF2tfJg/b7APDO1owOL4Gfo8Guq1IHMQCBgsPXcjE43I38DUrj/h5z68kVvnlLvFAEjNvkrRpCCwcREAdniwC5VhpoGPD8pHQx1kv1dNcnrzlhcs33vqcVz5x6/HfCKKxO0T/1w3WfvjCinzCvJF4J3Dlwf+9Rbz69Va8OkaksrU9jINB47eJ0ccthqan1M4R7D823Pact7Xqt1f6hluOe6/I/pz0LXOb9ZfC7qWaDe3tlw9CU/smAD6PMu8Jk7yHHcj9VvlPO2EfcUAfR13xpRoF8q2+yeOf6iX6qK0O0m7CNvZLbJZPjE98oXirOuth423HHS6vcLhSbFqEvLHcSWFqN+MyNfsb5YW3jcSLXznsv/NV9BW2ziKVwyUhOa+ZjEBx0KGWOCBKpl4vhwgNMKda+WWlEVbiP9zz6Nt+Ykzlvh8eSFwuA4+/aQO5FhLQXC8KESM7xlxjPHbc9NscKk8iBxjH1fWrn/OGoC5XcatyQQxF0AAooJYsgZWOP3OYyIJMFMj15FfqMpmEoXyqimSr7C56HFsPR4+QD8S2eIcdfsoVaD/Uo28B9TgIblCki10lqP5bPai9BU3UryLKJstm+eBJYqcNQJBNbEbRug7slzdzVMVnn5NF2tmVMH7/VL8Rtn71CccG9egf5WHyF6giTh+85xTfEND3nUI/hwNqwWu4wetex92L/eL72vw5wcUmsMc9sgeqyNZp/qOnbPzNFpOF+ib78bBIgSWqhhsCuYzCHDF/iv9hmBSzrT/j3wl81eO3HPfJPZ69+L1heF3RF3C0y7zdptXHHzBRi6+WPNoNMRiU/S7+6xbOqb508RHX6Q9E5uk3LLShXHDgMtnOndvOwH1NDig4zHCZQFw0ccmTtPx6aS8VTHYdzaAkyY+JKP7nvY5Z/Xm0L0v/PcBYEWYnoGyPFk+Lu9a5E7YfM+BO3py4Vr9E29RsgaAnlBrizhMK4i0fH5Ocqbuccfx1mwxDgdaf7OV+iE7cINTw0TOF8tNUMqdo3gjRZEUuT5UPOydKUddvQfaLK8wXBoNowdwFP0z06BBZcfR//eSJW46/Q8bCoVSdUCdPyLHzhQDzLSBKU7yUqFW6o92Evr5gkOOXisRT1t963MVBFH5596MX/aTTE0e85uy5G8YeeL4s9d4S12vnqivE+dqHC4L2qycAsyjbvy1AzCboQ7sJYabik9gvi5zLFx9282No33ORHyNT30q+UEeVxVwXiGL2WMxxTF5AFLUHbZwlWfsloZWvqN28BSMbdo6mV/QZd8Ksvlk9wEcerevM/gvW3zr67A23HP/n8hMUXX0tGeeasfHxl4Rh5Qj5APNb+Xbip7I6tTtef8ex+0yMB9eIy/WKvHO9NqPdhLSN8crK7sX+kcrI+YsOf/n6OH55savJrLIdH/+tfEazFf1QLjjGdm5/g2TdPLPHjfQ84zgrEGZmB5IJIYmnChUXBj/c65gVf5onuqT17gGd0twE2CxFplUNKeOK6FhkjJd0g1bD05vETxorzZfv402fWDFJY2I26dqbHCQ54fCGCYDM0iR7hcV1bipDc8dLaL1Mti/U/usXHXrDbybrfZI6vAnRJtsB2y+fwquy2HibePNtG24d3fL4L4+7RmL233Ll8fGoHj4ezqmsD+tRRZ4P2LMSxHvEUbSXROa5T4zf92IJ66LQWx/qlQpLEDUVphQdf5lM5dsw/SouUTXRLM38OWvK+c/E75e6GTmLD9p7485b78NwaNFTYfl/knwYkIXzcT+X24o/qFbCm+TK2T2VkeqmJavqWzbfvmDxRLxzz5Ew3GuiHu1ViStHSq6cNj4+fpxMGRV9ZicIbhdzul5wBGPBp6X9ARlXtDjsv/31qHbD+luu0P6Y64AoufkvdAZHhwr4wJxT2snLadJECoMr7hLiIagYygWHBO88m8BttUv3ICmAG8REYjggima50lq6T3kgQ9junT9/0TmdfprSDspdhx6owcMteEl3MZNU109lnGBd6NJzXmMONAttHDL21XwMapOPvQ4617CR24h+tii/kK21yyk5snzUzFGc9klPDfrTFta7bj1AyQaz7Wk3IXrkWPCEeGiDRf/hVXSFrpy7/+eeGLvvL6TRvpQIATqmEh2Kt1+uFuA9HfKVQtnsIlQQT9TUy7iihBnA9JM9EHfkDkRfi+Cg4i8K/OceR998HTSZWrEraYw7YZfxb2v/1HRs3zoML62v/+Wxj0gUnp7PXWj+46V3x4sTjueFyXCiHuy8BV6056InXCZFyCTNn3wtu6HKFc8ljbfsbE7Il1Gs/YPO/+z8lTf/0WL4Y+guwWy87cjDZZI71oLFjAD0cVfrRiUmRZuUhSsdqcbk753lstjYKpehzuz1JT2+yBLP9wASMfcPscJfi5jxRA1oOAev5QDaIhf4h0OlGVnrQLN8Ma5GfkdDnmiueBCSHK2VftqXp0G2f62HyFZ/sBt/gNoX1FCFobSz2WB39ofb51QX9vx7CeFhl45L539nurTWD7qjACrubFWyh7O+CRZmvyplO1URO6ejg6avo8Hn6ncPgs/RABkXQhGokgghSZ5/+Wsc96tYzHuJv2hAuwlVWxyYzdgPqNyQ9pjB4Ff8tfBv4fa7/jX2gqvTCHt0ji42KAo+1v+M3Wa12T209ltcNF9axAdWodA6HCoNZA9nvUFtoruhW3BMTNTPT9Uz49QSmOUSo1WyGh9aO+uzUNrjl/MqYXjuymNuuSPtp8QG5gEudwGxIVSEOQkLvTShgaA0pkTalvLAA5ylW/6mDiCIQoA6HNDH2V87SN2oL8QBB4RI2ymk3YQqGnwojp9tK9Xgc8uPvFG/kmgM3e93f/aSi0XeOmvJDnDEToE6fMjsVz/4vjUjUtVpDn1N/4OP7bQNbWUDEEkD6nCBcu3pypXH/OwmbdaPnYjuNf4d298PPdvJiOPrW7LQ1/Q/3AkccBD2sy/2D0WBD6qwL/Y/dPZDIRQXkARXRMiuvsfxP1QLjjh+4Ugchee2NNbZnILJnZP1jS5UovCv9zh2td3wSgWVWL890CIhbdGIvJWpFTwy8Ah9PKknXyJP2gBvMSBUFmrZTm7Qmnz05doSksdBv23iDu1LBVq/mChA44SRhawD9Ns6gX4fppfpSnk+TXGRQWjyKFeg+kBVmQirlY+6LnoGuL0orvkT7Y9SfBuAD6H99ANUpu6AihcV/0owFo5U/pRu6gsU35rOBhWnHfA9Nj0rM/aAKITWTilsl7Vf+YvdhXPCH6uuqi/Um0w/p7MbR4XbD13ajP+evMN5QOU7m2k3oZLNF7DTt3Uq47+r+Kt+ogMgdXBQ9fF0VD+AD8XxT3X8D9WC47c3rz9dkmEvBiML5ROFBgnQx8nnOxC4PtrhIHDZvrr3c371YfNguR+IBzIJi3GpsRGguMZSiahooGk94oZq7BTxoKD+IPFxqcovvgzB9dBBv4qN3XATzaCdFUI9ytjXQMNBpl77QE5KlfWX2tyz/WHwhX69Q2aPY395hbwaVd6SaIW2DrX9omoyBzjcqd8M/CALrocO+lVs2Mp++XHHD+1+5C/wMFwfS5oL0MXXzUsYJo726+e8j/dRqa5FqV9C9wOCg8h/0bCf8e/aYDSAnb6tFOLTBNeYOmj5lsZcBFi9g4XE3zq1HBLc78OvStR3yJTHv5MzVA+NysLzPHw5jIbDSOAc9E7nlkCWI9rCIBsKTcnhL/bee+lbWzYuKwrygMUkjSIjalHGRIH7tpwsVQk0YSFOCLqHN0qTOqwsMch1tQlekU+aa8o2cpj0zXvHyB3Vx3VCPKlvo2+W35Rt7DGlQb0p2h+G6+fOm/cB2NKvMm9R5T07tkXyeuZ4j6w97fTN8qe2Mmj0BWAf7IcM2UwaEMEKjr8sNn658tlL+vqbMPqlWOiNQlf5eB5N6hu9CcLk9kPkIIpo8UNR+Q1pdGhAo8bt8inxBZtDeQ9vlCZ1bexHU7aBKM1XNwZx3EtB7KjUrpD/9Fniq4Z46KUA9avV0+N2NDRXOLbcfOzuMtm/EoFDEmLDxEGoOAILmvsjDqgbUgm4phTTCu4Jfjt3bvWs8Ok3Ja9wTpxVIgV5AHFA/CDeoIaJuIuhRQknXYsauIGzEGd9FoKPPMA1Xxz0cdTlF1VQqkxf4yENR8St3vpqrW+Wv2j7ZQC/v98PPy991i+eEMPf1eiL4bQfOg42/uEOeRXc+f3+dhsmYtpB6NsGWt7m8wD3c97HUTfIUqniq8Izdfx356nGk2jjfFH0+Iemfr74Mffx1hY16mt8pOGIOKDNe4Tsl7CxrfHTfqsbom+pbI+2nyvpqb89kYwsGKvWmPKNBuEIdBTWZyCsDYNx+bnu16w8avUjxlvuB+EBiaX+IX7AkphaTIQoNMvGFEIxnya4tnVQj4gD5mxIF9ABfZy81gXyxIo/KNmOMK895RBCCnAW1Rc091ek/dLLFbsfc8uX2Hc/4V7H3PJNuTL0YfqC9mYh+pwu+7O64NiPmY+Tt0lfFzvW+218PKkPg7euOPb/t3etMXZVVfieM3f6VCxtZ4YpD1tUhLRAOzNtobwMglhNeBiRYtSUABHjDxOj+E78YQw+0R8S+SMxEiQSFDUgjxgaUAq10047FJGBQqEPoEUstPIovcfvW2uvc/Y9c2/n0XvPnal7z9zzrbPPfq1vrb3Pvvuex4YmvDPFWc98iYiP+JND2TOZWOPjt9mXLa2rpekw5/QNj8IYDzXT/00nH32dfdnSHNr+emvyWMnBKzjSLGIv7ImtsJ1c+o/cf4xHw2F8Uudh+mf8VE/OJGnLNquphJjKdSS2ROO0TSabspKaaSWXpE7VZTkSktJ1XcseH9PT5zRj2DaEAbEpSiLyo6NAOgERmyLObCod1NIxLYMhRS6ZOvRlicRmWIf34jSN8wvzGinOtQvysPYwv+nAAlz9gpAlu0NtWVVzmdlVCzS9DGvV58WlelvBUr3uxHE8VJ5V/qwW3pxtx5JLvg3V/jwR9afti7Y/6vt+R8/G25vBNk9avu+J7c3uhp79x69/c5806nMDE/2wWf4/fv0P3f/99o9axuPiaSIzk6Hkb1L/b5b+vg9avzcUfWDUFNkHuePQ9DaUdKa/7EyQFY6X1y1cjA63mA2lckSRcVIwtGmFIVKqsg79vCxDyomin3Uve+IWp2uAohjgmMZ+7fftenXTcAxENXaGUgY2KapdOYiZjekPIhOZUP4tT67MUZTPprD8usGOEV07DNkOqd8hZQmGtQodh/542uTrcVy5bPb7+vfWKrJRcXzFdTTzXbhrTJ7AqMVSNwbRUbkvWn+/PrE62mJ/TbN/FP0Bk42GPnNDiXTbovy/uPlGae7ijfegM29J+0GVwp7eFIvSn+5r4wDltK9ix3yb7RlLcJPFovp/S/zf+DCOhLex9/8JscLxTkmfvSEGg2JyAskpRJJlbHYoPgNDG9rTRw0x63qga+mirxhPAVvFgDtByahjndohbKmdVNG3/2hb6+bY8AP9g/eIRJQP/YgyUWTuMq5OECfDMaIvu+Q8sTEQVc6QsRoMNWUWh/hce8aqP75M7Eva4pVzFm/a4iprKnSc/PfXZ8Qx3jURbVJtWqt/Xtli7B/d1TntA6vAgW/YfFMOax9PyIRrOG4P5Z+5Wsalf66MZu2SL7z78FtaPnUTJTOEnmP1/3xbx6X/GPjN11d73+lWQP/P199w/f0xz5ddxTrm0ZLZuKdxxgETUrbgyxNghSNZ39sOr+O7U9BCfAwpy/KNQ8iimENVUhU31QxhhKdnTGu/go/ZtbiARTPg7CnVUq4dfJ+mTLsaUtZSDFmGykSRnb9w4Ko1YFvNmho5+G2EOeVbif62mE5SJV5zZOVZuVqCtlfb6LcdWV3Q/NY+jbQ4S5OhX4bpbUhNtVZFELMviaOPdi0ZKPTNxu/u2bh76rTp5+P80a/tbY3+yqLjwphpsv2h7x2dPbMulyexZmZruMRvfmZ3w7z9G6F/wxs+QoFzlwz8EX7z83rJ1J+y+T11bqb+I/X/eu0cfbz1de25ms/ihpcy0fT3x1CVYRHvnKztHX//b/kKx64K3gqbVHiHiljDUHecoaiwnVAc+sSkZsQxzEdeS8rli2edNnhYT11MywzCuBigfeQDu6ZYw8a+HSnLYOOQcv7DE7k5vZzU5Usn/INoX0ANXX4qkJYDQWQiBR5zKLJrI6e3MsWVtjgdqBP/DF1axlnI6zPW9GyK8UDZ+zwfJ+3nFT3ZML14J0w5af8wGvRwi/QXLoq0P17+9auO3pOubPQdKcapjxW+Ldb5vaFn+9QPDld/v86i5I6k/avoIY9ZPzFk/dTV0PQ2bIb+7OtSLpECgqHuHd42r08D+3/h/t+o8U+/4imvLZ9wJMnB1ZmJbeAm1vowpaXxZZcWjy3H8U/P6338nzwaQqsYwMvb0Iv5obkMKctg45CyJlEUmYMus/GkLoNRhpKbpmYpLAMfjhmGKnOiwDjNNxztmObDVvITfTktX9qigxLbxbJTdPX49VFX1tlQ/UulB6eX2ns7+vo3oMqWhdl9/Xs7e2afH8XxjcIDWiK6OjS9Dc3uhqQYbAvVRP6JrR2KLNxpuSxHcjhUmeojJ4vBR7l3dnHt8O3BMqo/zJflt7KIqRwlb2Px9wudvYNXF7VKGmMkLkJ/sld0iPr6D0wptX8KFL9Cm+s/pYlm//EzYz7WlP5PRydpZIzgkHJT/N8vHxVIPUD6J+tLkS3BQcYdSn+9pBaJEFo64XhpcFEX3rS3UpRAY8QBHYo7QpkUPcXS9F6cKh5/s3v50N1ULITWMpA5oHNKGI2OSu81pMx0hiIjjSE9mYcNfVk9P0tr9VFryU8BQepyqLKrH56FlEyCYKh7/lbqZAok0Q/bTFnbzjIpE3253nFmlnZoIZKXcZZedUUFKA8J38At3d/o6p39kaP65NkYftNaIvPbflfvpi+jeTiBJK/7Ovuy6ePHmd6Gprch81Trr5xrXLWs/Cj3lkfyi61QjgtSF2SiyiPYPyo939YWn9PVt+mXVkYRiAUO8QHTJdOPjVfdSY/J2fGMs9HpX4Q2w+vAZPX59nLblVDyzQlt/+FNHzkGF+CYf9EGlIm+bMcRqX5IY7o0hmI/lzezL6pvqP1H8P+ctmwmg2sucOzj34RZ4ajsf/szeNNe2YyjijkNRc38xo4RfZk2iW7rXv6vH+RzhP1WMaA2kk4EW43axr5ZRcbGkIL0AId+b6ijptbPbNoGJrM4X86OWzpWmnXOdMBALGULVla9/Hp87PpjIv7XqNR+amffphuKWNI3fUaLnX2Dd5SiqUtA0b3M02j9xeZmd8Mm2h8a8Ar0m6dNKS2eu3jTutHy0PB0oisJdR/RmbW4iAb4P0trRZizZOCBtlJ5JZzl9br1F6C/9Vm2wWTrp3XbNcKBye7/9dqvY52OgzbuGeb5Mw4N6bMqZ+S1dIUD126sRouy1phM9DuW62ymCFFkNxvEbdDru4859uqsoCBNXgb0Qs5SiejLtTUyh059InVyN0BLNs/HahdTN9YuKJWLzfiLHYLF1c10GAfwg8wjUdR2UdfSzRd09fU/cxhFNT0r29e1dHAlXhz3SVT2QmMq9G3uy7VLb4T98WVlY1spXtHVO3hd66/98nX25ebpX7vk5sR2LB1YE5XL5+KkNVS7Bl9nX66duhH2r11yq2J9nX25dnuarb+NdY0a/1o24dj52Af7MG1YpDTqyQH72OVW/3hM4zRVfptgHRKO++KUg/Gl0YI1b+aPh/1WMuBO+P7E0SaKDv3OkrXUlg+Iej2EoaaHR1iZ8A4NhlkpqSRpsUd09RrWqt+P8+W0vJzgp1E51z5r6yHqhxrv4KT3p6gturBr6eNnYTn//lw1E3q3q2fznaUp8Sm4aPc7MNlu44G9V3g3HAX/tLWG5tsfbRvCe1Gu6ew7eencvs2PTQySm6v/O6UCH8RRh9DOJQMD0fS5PfCO3zCJ9SFN3lz9pS7nh1avYZ3mjiqaZWg5GU50/ze9DamoyURfrkeCn0Zly8cx2ev/roCWvbwtOXhgNZvkB/+CG43HUo4MQJoSHLjfx/Qo0r+FC1Ium7viqR1+OUGeQAz44wealdsVp+YSnTmuympnasF9Oq6iiCo755F45xdMmaV1PoMYudpajml55kcaZWW7AiXSl11GB5zpq5/atw9OiiibZtXp02h32FLhjaxsNS8C/W1pWunWrlMHX8rlnFS7x5y+eT8a/L3khTN/8vKu164Cq3gGTrKgnv7GA+2uNlfOVVY7kQC1u9kIEWSNmZ2JTNZ0zGFpNQG3w+xfivqxonFDR98nfs+Hm5VKzXtSOVs0uqADNfXw/VP1Mp1Q0mHq37IBP0dC58I1+xD1uV3rF94SR9GNlUpyOpM0W/98+Xl/yTVzVLu48YEtr53Woh3mdv9/xj/HTkv8Lxl6/9Sdeyq8gAgOxgHbDQ4C7HjaOnUOr7PJKEOTaYI4jj5/zPKnH61t6RDbSgbMpmZfIoOeYDKbj3S8pg7OP3iME1J4jCD3h5XP4/Qz/KXHXZxE5DZS3iHS549LsQnK1uKH1+/8G77Ka6eextntMTyW/L4ZUfl+Pt8iV/2k33UvSLwpSS6/eff6Jy+CbVZhQnYJOvpRVG6YfRw/9fyjJiHjsD++mLwIL/gdVpFuP6ZncK2WOxEmGpmG2XiX9Y/sqCeNQ3/z/9avb3h6QOzu2/Jgkny356X+O1fhJ9QvJZVkmY0J1Sm9vcPQ38YCYqOCcDtC/6/n36ZrveM12+g1XcajSTD+mR4tmXDs2H3wYjRgNhtRbXhjUtF8wtBPj1nxT7uXP/NrxoUwcRkw+xqypb48Ust1ENZvPpKWrsHO7VyFZcmu5yTV5Vf7FMtDA/RbsorptyrsMkYhRT8OstVNlIDljTh+Az/v4Se96A0Utg9ZdwJ3YBDZjju1t0Xlts1JW7TZrQJYxiMa3e2keLR16Z7k2Q9Ne/nfe1biW+ylGCDPgX0WjFb58dof+WjILcCHYIs7O3suX6OrGaOtufB0qUf5NY9X/6yMan8u28w4S9ByydnlNjTkthf7TzsjqhzEzQTRJeiLxzVaf5ZX1f9L0au4ruBhfBG4v9xevmtcZKBMf8ypJdeKG01dTdcf7mF1aHuq/aU6DnvCn0MA9bJJk6atwYWQrkdrOrllbBZuXzv/bgwHHxvW+mEVUnnTkAdVxqB137wz+z5e1D3yw5oVIgIDgYFxM7B7fW837o48C9357EqSLER/PhED1wlYDSnLNKGqy2OHk8l00Ko5JrxZiuLnkHBrFMWb4iT6G27BfOToJQP/GXcjQ8aWMgB/iF75x6K+g3FyLqb0y9CYZbD8fNgYYpWDYN/isiNMwWBHkijCs1VKz+ILwBB85IlSnGzGz2ob5vQMPokTJpOFUAADZpcCqtIqdq8/pfvtt994ARZuy7xBj9nSOJEhv1xEP8Ptgk/NmPGe5WEwUc7CNjBwJDCAn2DaXhwYOj6qHDgRPz4dDZ1morPPEMQr5JK4UsEzSf6Lycd+DA/7S23xfuzviduirXNOH9gZThpHghccWgeulO3Z++oJlQMH34s5wjxMRGZiSgEfiWbgiVI8acA3nH/QV+LSPlwUvKcytbKjc9Hgy8FHDs1vEUcLn3DsWDv/eiytyvMyWDm9JG2Ere24bzP55Ro84XBvnCRnzFvx3JNFkBPqCAwEBgIDgYHAQGCgMQwUflssVkdX6zRDVzFUVmX0an/EYOrqyzyKOQie51a5Mkw2lKuwDQwEBgIDgYHAwGRioNAJxwtr5y/HTOIUWdbAfEN+OnGoP6doHFc8dNVDLwhkLPa/fvyZ2/4ymcgNbQ0MBAYCA4GBwEBgQBko9C6V6GDlKt5ByAmEBu5QdtMLd3EYf0qxIEej6NZjV2z7kcUFDAwEBgIDgYHAQGBgcjFQ2ApH8uz8aZg8XIEVjowhk4m+bCk4D4lK646dF19rUQEDA4GBwEBgIDAQGJh8DBQ24dixq3IBZhWz7A4UUmUrGUSVM+TKB6J3YZZyWbTgufDY8snnW6HFgYHAQGAgMBAYSBko7CcV3P/Me+7dQ0L4KGgGPlGPsv6kIlHpJnqrPU4u7VixfWcaFYTAQGAgMBAYCAwEBiYlA4WtcOAWk6VkyFY1KNuzfIj88FiGlWu7V2xv3Wui2cAQAgOBgcBAYCAwEBhoCAOFTTiSKOHLeqoWM/xbX30ZD2j58XFn7ZA3CTZEy1BIYCAwEBgIDAQGAgMtZaCwCQcuydjK6zfkeg0i/hgMReYKR6l073FnXfM1ORg2gYHAQGAgMBAYCAwcEQwUNuGIytFNmE0c0Ks1ONmwu1UMufiRrJs5fdqqCf6SpSPC8EGJwEBgIDAQGAgMFMlAYROO48/YPoRJxvX48DGiAF3tMMTu2plTZl44u2/r3iIJCHUFBgIDgYHAQGAgMNB8BnTBofn1pDVse3jeBaj0i5hynIe5x1t4y+Mz2P/F8WefdEcUrXknTRiEwEBgIDAQGAgMBAaOGAb+B5nwCpLPLNx7AAAAAElFTkSuQmCC"],["fxFlex","30","width","295","height","295","viewBox","0 0 295 295","fill","none","xmlns","http://www.w3.org/2000/svg",3,"ngClass"],["d","M182.629 183.635C213.842 170.774 228.719 135.046 215.857 103.833C202.996 72.6204 167.268 57.7435 136.055 70.6048C104.843 83.4659 89.966 119.195 102.827 150.407C115.688 181.62 151.417 196.496 182.629 183.635Z",1,"fill-color-0"],["fill-rule","evenodd","clip-rule","evenodd","d","M169.522 122.093C171.059 115.241 166.054 111.136 159.022 108.13L162.04 98.916L156.431 97.0797L153.493 106.051C152.019 105.569 150.502 105.104 148.995 104.643L151.953 95.613L146.348 93.7769L143.329 102.988C142.106 102.615 140.906 102.247 139.743 101.867L139.752 101.838L132.017 99.3019L130.057 105.293C130.057 105.293 134.224 106.57 134.131 106.624C136.402 107.369 136.71 108.93 136.552 110.138L133.115 120.635C133.271 120.687 133.473 120.761 133.695 120.869C133.66 120.857 133.626 120.846 133.591 120.834C133.562 120.825 133.534 120.816 133.505 120.806C133.375 120.763 133.24 120.719 133.102 120.675L128.284 135.38C127.95 136.062 127.157 137.065 125.569 136.548C125.62 136.635 121.492 135.211 121.492 135.211L118.184 141.544L125.483 143.935C126.298 144.203 127.103 144.476 127.899 144.746L127.901 144.747C128.431 144.927 128.956 145.105 129.479 145.28L126.429 154.6L132.031 156.436L135.051 147.215C136.579 147.75 138.064 148.25 139.517 148.725L136.509 157.902L142.118 159.739L145.166 150.437C154.773 152.984 162.15 152.77 165.87 144.183C168.867 137.27 166.555 132.99 161.623 129.952C165.417 129.361 168.406 127.109 169.522 122.093ZM155.149 139.449C153.059 145.84 143.068 142.413 138.496 140.845L138.496 140.845C138.085 140.704 137.718 140.578 137.404 140.476L141.449 128.129C141.831 128.254 142.299 128.395 142.829 128.555L142.829 128.555C147.571 129.985 157.289 132.916 155.149 139.449ZM144.22 122.79C148.031 124.108 156.343 126.982 158.247 121.175C160.192 115.234 152.086 112.815 148.127 111.634C147.682 111.501 147.289 111.383 146.969 111.279L143.301 122.477C143.565 122.563 143.874 122.67 144.22 122.79Z",1,"fill-color-15"],["d","M158.075 173.411C189.288 160.55 204.164 124.822 191.303 93.6088C178.442 62.3964 142.714 47.5195 111.501 60.3808C80.2885 73.2419 65.4118 108.971 78.2729 140.183C91.1342 171.396 126.863 186.272 158.075 173.411Z",1,"stroke-color-thinest"],["d","M259.352 172.363L85.4595 244.016",1,"stroke-color-thinest"],["d","M122.291 259.352L85.4593 244.016L100.795 207.184",1,"stroke-color-thinest"],["width","225.692","height","225.692","transform","translate(0 85.983) rotate(-22.3941)",1,"fill-color-30"],["fxFlex","30","width","298","height","300","viewBox","0 0 298 300","fill","none","xmlns","http://www.w3.org/2000/svg",3,"ngClass"],["d","M248.333 237.5V112.5C248.333 105.625 242.746 100 235.917 100H37.2501C30.421 100 24.8335 105.625 24.8335 112.5V237.5C24.8335 244.375 30.421 250 37.2501 250H235.917C242.746 250 248.333 244.375 248.333 237.5Z",1,"fill-color-0"],["d","M273.167 212.5V87.5C273.167 80.625 267.579 75 260.75 75H62.0832C55.254 75 49.6665 80.625 49.6665 87.5V212.5C49.6665 219.375 55.254 225 62.0832 225H260.75C267.579 225 273.167 219.375 273.167 212.5Z",1,"stroke-color"],["d","M6.20851 200H24.8335V150H6.20851C2.73185 150 0.000183105 152.75 0.000183105 156.25V193.75C0.000183105 197.25 2.73185 200 6.20851 200Z",1,"fill-color-0"],["d","M31.0415 175H49.6665V125H31.0415C27.5648 125 24.8331 127.75 24.8331 131.25V168.75C24.8331 172.25 27.5648 175 31.0415 175Z",1,"stroke-color"],["d","M161.417 187.5L142.792 150H180.042L161.417 112.5",1,"stroke-color"]],template:function(t,e){if(1&t&&(r.YNc(0,Pi,1,0,"ng-container",0),r.YNc(1,Zi,18,5,"ng-template",null,1,r.W1O),r.YNc(3,Bi,19,5,"ng-template",null,2,r.W1O),r.YNc(5,Ui,19,5,"ng-template",null,3,r.W1O),r.YNc(7,qi,17,5,"ng-template",null,4,r.W1O),r.YNc(9,zi,13,5,"ng-template",null,5,r.W1O)),2&t){const t=r.MAs(2),i=r.MAs(4),n=r.MAs(6),s=r.MAs(8),o=r.MAs(10);r.Q6J("ngTemplateOutlet",1===e.stepNumber?t:2===e.stepNumber?i:3===e.stepNumber?n:4===e.stepNumber?s:o)}},directives:[U.tP,P.xw,P.yH,P.Wh,U.mk,ue.oO,Z.n5,Z.$j],styles:["svg.small-svg[_ngcontent-%COMP%]{height:50%;min-height:50%;max-width:100%}svg.large-svg[_ngcontent-%COMP%]{height:60%;min-height:60%;max-width:100%}"],data:{animation:[Ni.l]}}),t})();function Yi(t,e){1&t&&r.GkF(0)}const Gi=function(t,e){return{"small-svg":t,"large-svg":e}};function ji(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div",6),r.NdJ("swipe",function(e){return r.CHM(t),r.oxw().onSwipe(e)}),r.O4$(),r.TgZ(1,"svg",7),r._UZ(2,"path",8),r._UZ(3,"path",9),r._UZ(4,"path",10),r._UZ(5,"path",11),r._UZ(6,"path",12),r._UZ(7,"path",13),r._UZ(8,"path",14),r._UZ(9,"path",15),r._UZ(10,"path",16),r._UZ(11,"path",17),r.qZA(),r.kcU(),r.TgZ(12,"div",18),r.TgZ(13,"mat-card-title"),r._uU(14,"Boltz Submarine Swaps explained."),r.qZA(),r.qZA(),r.TgZ(15,"div",19),r.TgZ(16,"mat-card-subtitle",20),r._uU(17," Boltz is a privacy-first account free exchange and a Lightning service provider. By doing a Submarine Swap on Boltz, you can swap your on-chain Bitcoin for Lightning Bitcoin. "),r.qZA(),r.qZA(),r.qZA()}if(2&t){const t=r.oxw();r.Q6J("@sliderAnimation",t.animationDirection),r.xp6(1),r.Q6J("ngClass",r.WLB(2,Gi,t.screenSize===t.screenSizeEnum.XS,t.screenSize!==t.screenSizeEnum.XS))}}function Vi(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div",6),r.NdJ("swipe",function(e){return r.CHM(t),r.oxw().onSwipe(e)}),r.O4$(),r.TgZ(1,"svg",21),r._UZ(2,"path",22),r._UZ(3,"path",23),r._UZ(4,"path",24),r._UZ(5,"path",25),r._UZ(6,"path",26),r._UZ(7,"path",27),r._UZ(8,"path",28),r.qZA(),r.kcU(),r.TgZ(9,"div",18),r.TgZ(10,"mat-card-title"),r._uU(11,"Step 1: Deciding to Submarine Swap"),r.qZA(),r.qZA(),r.TgZ(12,"div",19),r.TgZ(13,"mat-card-subtitle",20),r._uU(14," You have one or more Lightning channels that are running low on outbound liquidity and you want to fund it using your on-chain Bitcoin. "),r.qZA(),r.qZA(),r.qZA()}if(2&t){const t=r.oxw();r.Q6J("@sliderAnimation",t.animationDirection),r.xp6(1),r.Q6J("ngClass",r.WLB(2,Gi,t.screenSize===t.screenSizeEnum.XS,t.screenSize!==t.screenSizeEnum.XS))}}function Qi(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div",6),r.NdJ("swipe",function(e){return r.CHM(t),r.oxw().onSwipe(e)}),r.O4$(),r.TgZ(1,"svg",29),r._UZ(2,"path",30),r._UZ(3,"path",31),r._UZ(4,"path",32),r._UZ(5,"path",33),r._UZ(6,"path",34),r._UZ(7,"circle",35),r._UZ(8,"rect",36),r.TgZ(9,"defs"),r.TgZ(10,"pattern",37),r._UZ(11,"use",38),r.qZA(),r._UZ(12,"image",39),r.qZA(),r.qZA(),r.kcU(),r.TgZ(13,"div",18),r.TgZ(14,"mat-card-title"),r._uU(15,"Step 2: Sending the on-chain funds"),r.qZA(),r.qZA(),r.TgZ(16,"div",19),r.TgZ(17,"mat-card-subtitle",20),r._uU(18," You send the on-chain funds to an address which can only be spent by Boltz when it pays a Lightning invoice to your node. "),r.qZA(),r.qZA(),r.qZA()}if(2&t){const t=r.oxw();r.Q6J("@sliderAnimation",t.animationDirection),r.xp6(1),r.Q6J("ngClass",r.WLB(2,Gi,t.screenSize===t.screenSizeEnum.XS,t.screenSize!==t.screenSizeEnum.XS))}}function Wi(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div",6),r.NdJ("swipe",function(e){return r.CHM(t),r.oxw().onSwipe(e)}),r.O4$(),r.TgZ(1,"svg",40),r.TgZ(2,"g",41),r._UZ(3,"path",42),r._UZ(4,"path",43),r._UZ(5,"path",44),r._UZ(6,"path",45),r._UZ(7,"path",46),r.qZA(),r.TgZ(8,"defs"),r.TgZ(9,"clipPath",47),r._UZ(10,"rect",48),r.qZA(),r.qZA(),r.qZA(),r.kcU(),r.TgZ(11,"div",18),r.TgZ(12,"mat-card-title"),r._uU(13,"Step 3: Receiving the funds on Lightning"),r.qZA(),r.qZA(),r.TgZ(14,"div",19),r.TgZ(15,"mat-card-subtitle",20),r._uU(16," Boltz pays the Lightning invoice to your node and claims the on-chain funds locked in the previous step. "),r.qZA(),r.qZA(),r.qZA()}if(2&t){const t=r.oxw();r.Q6J("@sliderAnimation",t.animationDirection),r.xp6(1),r.Q6J("ngClass",r.WLB(2,Gi,t.screenSize===t.screenSizeEnum.XS,t.screenSize!==t.screenSizeEnum.XS))}}function Ji(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div",6),r.NdJ("swipe",function(e){return r.CHM(t),r.oxw().onSwipe(e)}),r.O4$(),r.TgZ(1,"svg",49),r._UZ(2,"path",50),r._UZ(3,"path",51),r._UZ(4,"path",52),r._UZ(5,"path",53),r._UZ(6,"path",54),r.qZA(),r.kcU(),r.TgZ(7,"div",18),r.TgZ(8,"mat-card-title"),r._uU(9,"Done!"),r.qZA(),r.qZA(),r.TgZ(10,"div",19),r.TgZ(11,"mat-card-subtitle",20),r._uU(12," You swapped your on-chain Bitcoin for Lightning Bitcoin, while also adding outbound capacity for your channels in the process - all in a non-custodial manner. "),r.qZA(),r.qZA(),r.qZA()}if(2&t){const t=r.oxw();r.Q6J("@sliderAnimation",t.animationDirection),r.xp6(1),r.Q6J("ngClass",r.WLB(2,Gi,t.screenSize===t.screenSizeEnum.XS,t.screenSize!==t.screenSizeEnum.XS))}}let Xi=(()=>{class t{constructor(t){this.commonService=t,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new r.vpe,this.screenSize="",this.screenSizeEnum=G.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(t){2===t.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===t.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(le.v))},t.\u0275cmp=r.Xpm({type:t,selectors:[["rtl-boltz-swapin-info-graphics"]],inputs:{animationDirection:"animationDirection",stepNumber:"stepNumber"},outputs:{stepNumberChange:"stepNumberChange"},decls:11,vars:1,consts:[[4,"ngTemplateOutlet"],["swapStepBlock1",""],["swapStepBlock2",""],["swapStepBlock3",""],["swapStepBlock4",""],["swapStepBlock5",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between center",3,"swipe"],["fxFlex","30","width","323","height","323","viewBox","0 0 323 323","fill","none","xmlns","http://www.w3.org/2000/svg",3,"ngClass"],["d","M53.8333 134.583H80.75L94.2083 161.5L117.792 134.961C121.616 130.658 125.869 126.602 131.194 124.413C136.45 122.252 142.103 121.125 147.842 121.125H242.25C286.847 121.125 323 157.278 323 201.875C323 246.472 286.847 282.625 242.25 282.625H147.842C142.103 282.625 136.45 281.497 131.194 279.337C125.869 277.149 121.616 273.092 117.792 268.79L94.2083 242.25L80.75 269.167H53.8333L67.2917 228.792L53.8333 201.875L67.2917 174.958L53.8333 134.583Z",1,"fill-color-0"],["d","M26.9167 107.667H53.8333L67.2917 134.583L90.8755 108.044C94.6993 103.741 98.9527 99.6849 104.277 97.4963C109.534 95.3357 115.187 94.2083 120.925 94.2083H215.333C259.93 94.2083 296.083 130.361 296.083 174.958C296.083 219.555 259.93 255.708 215.333 255.708H120.925C115.187 255.708 109.534 254.581 104.277 252.42C98.9527 250.232 94.6993 246.176 90.8755 241.873L67.2917 215.333L53.8333 242.25H26.9167L40.375 201.875L26.9167 174.958L40.375 148.042L26.9167 107.667Z",1,"stroke-color-thick"],["d","M134.583 215.333C142.016 215.333 148.042 209.308 148.042 201.875C148.042 194.442 142.016 188.417 134.583 188.417C127.151 188.417 121.125 194.442 121.125 201.875C121.125 209.308 127.151 215.333 134.583 215.333Z",1,"fill-color-15"],["d","M107.667 188.417C115.1 188.417 121.125 182.391 121.125 174.958C121.125 167.526 115.1 161.5 107.667 161.5C100.234 161.5 94.2083 167.526 94.2083 174.958C94.2083 182.391 100.234 188.417 107.667 188.417Z",1,"stroke-color-thick"],["d","M201.875 215.333C209.308 215.333 215.333 209.308 215.333 201.875C215.333 194.442 209.308 188.417 201.875 188.417C194.442 188.417 188.417 194.442 188.417 201.875C188.417 209.308 194.442 215.333 201.875 215.333Z",1,"fill-color-15"],["d","M174.958 188.417C182.391 188.417 188.417 182.391 188.417 174.958C188.417 167.526 182.391 161.5 174.958 161.5C167.526 161.5 161.5 167.526 161.5 174.958C161.5 182.391 167.526 188.417 174.958 188.417Z",1,"stroke-color-thick"],["d","M269.167 215.333C276.599 215.333 282.625 209.308 282.625 201.875C282.625 194.442 276.599 188.417 269.167 188.417C261.734 188.417 255.708 194.442 255.708 201.875C255.708 209.308 261.734 215.333 269.167 215.333Z",1,"fill-color-15"],["d","M242.25 188.417C249.683 188.417 255.708 182.391 255.708 174.958C255.708 167.526 249.683 161.5 242.25 161.5C234.817 161.5 228.792 167.526 228.792 174.958C228.792 182.391 234.817 188.417 242.25 188.417Z",1,"stroke-color-thick"],["d","M189.321 97C186.935 97 185 98.9345 185 101.321V112.679C185 115.065 186.935 117 189.321 117H237.679C240.065 117 242 115.065 242 112.679V101.321C242 98.9345 240.065 97 237.679 97H189.321Z",1,"fill-color-15"],["d","M161.5 67.2917V94.2083H215.333V67.2917H161.5Z",1,"stroke-color-thick"],["fxFlex","20","fxLayoutAlign","center end"],["fxFlex","40"],[1,"font-size-120"],["fxFlex","30","width","347","height","169","viewBox","0 0 347 169","fill","none","xmlns","http://www.w3.org/2000/svg",3,"ngClass"],["d","M89 157.417V41.5833C89 35.2125 92.75 30 97.3333 30H230.667C235.25 30 239 35.2125 239 41.5833V157.417C239 163.787 235.25 169 230.667 169H97.3333C92.75 169 89 163.787 89 157.417Z",1,"fill-color-0"],["d","M6.25 134.625V18.375C6.25 11.9812 11.4812 6.75 17.875 6.75H203.875C210.269 6.75 215.5 11.9812 215.5 18.375V134.625C215.5 141.019 210.269 146.25 203.875 146.25H17.875C11.4812 146.25 6.25 141.019 6.25 134.625Z",1,"stroke-color-thin"],["d","M256.188 123H238.75V76.5H256.188C259.442 76.5 262 79.0575 262 82.3125V117.188C262 120.443 259.442 123 256.188 123Z",1,"fill-color-15"],["d","M232.938 99.75H215.5V53.25H232.938C236.193 53.25 238.75 55.8075 238.75 59.0625V93.9375C238.75 97.1925 236.193 99.75 232.938 99.75Z",1,"stroke-color-thin"],["d","M146 53V87.875",1,"stroke-color-thin"],["d","M146 122.634V122.749",1,"stroke-color-thin"],["d","M344.698 95.3022C346.74 97.3445 346.74 100.656 344.698 102.698L311.418 135.978C309.376 138.02 306.065 138.02 304.022 135.978C301.98 133.935 301.98 130.624 304.022 128.582L333.604 99L304.022 69.418C301.98 67.3758 301.98 64.0647 304.022 62.0225C306.065 59.9803 309.376 59.9803 311.418 62.0225L344.698 95.3022ZM277 93.7706L341 93.7706V104.229L277 104.229V93.7706Z",1,"fill-color-15"],["fxFlex","30","width","454","height","243","viewBox","0 0 454 243","fill","none","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["d","M141.75 172.125C178.098 172.125 207.562 142.66 207.562 106.312C207.562 69.9653 178.098 40.5 141.75 40.5C105.403 40.5 75.9375 69.9653 75.9375 106.312C75.9375 142.66 105.403 172.125 141.75 172.125Z",1,"fill-color-0"],["d","M121.5 151.875C157.848 151.875 187.312 122.41 187.312 86.0625C187.312 49.7153 157.848 20.25 121.5 20.25C85.1528 20.25 55.6875 49.7153 55.6875 86.0625C55.6875 122.41 85.1528 151.875 121.5 151.875Z",1,"stroke-color-thiner"],["d","M20.25 192.375H222.75",1,"stroke-color-thiner"],["d","M192.375 222.75L222.75 192.375L192.375 162",1,"stroke-color-thiner"],["fill-rule","evenodd","clip-rule","evenodd","d","M161.033 82.5635C162.307 74.0523 155.826 69.4769 146.965 66.4247L149.84 54.8952L142.822 53.1462L140.023 64.3718C138.178 63.9121 136.283 63.4783 134.4 63.0486L137.219 51.749L130.205 50L127.328 61.5255C125.801 61.1777 124.302 60.8338 122.847 60.4721L122.855 60.4361L113.177 58.0194L111.31 65.5152C111.31 65.5152 116.517 66.7085 116.407 66.7825C119.249 67.4921 119.763 69.373 119.677 70.8641L116.403 83.9987C116.599 84.0487 116.852 84.1206 117.132 84.2326C117.096 84.2236 117.06 84.2146 117.023 84.2054C116.981 84.1948 116.938 84.184 116.894 84.1731C116.732 84.1323 116.563 84.09 116.391 84.0487L111.801 102.448C111.453 103.312 110.572 104.607 108.585 104.115C108.655 104.217 103.484 102.842 103.484 102.842L100 110.875L109.133 113.152C110.152 113.408 111.16 113.67 112.156 113.93L112.158 113.931L112.159 113.931C112.823 114.104 113.481 114.276 114.136 114.443L111.232 126.105L118.242 127.854L121.118 116.316C123.033 116.836 124.892 117.316 126.711 117.768L123.844 129.251L130.862 131L133.767 119.361C145.734 121.625 154.733 120.712 158.521 109.888C161.573 101.173 158.369 96.1458 152.072 92.8677C156.658 91.8103 160.112 88.794 161.033 82.5635ZM144.998 105.049C143.008 113.044 130.493 109.739 124.766 108.226L124.766 108.226C124.251 108.09 123.791 107.969 123.398 107.871L127.252 92.4219C127.73 92.5412 128.314 92.6723 128.976 92.8208L128.976 92.8208C134.899 94.1498 147.037 96.8734 144.998 105.049ZM130.167 85.6513C134.942 86.9255 145.356 89.7047 147.17 82.4376C149.022 75.0044 138.901 72.7637 133.957 71.6694C133.401 71.5463 132.911 71.4377 132.51 71.3379L129.016 85.3499C129.346 85.4322 129.733 85.5356 130.167 85.6513Z",1,"fill-color-15"],["cx","371.815","cy","95.815","r","81.815",1,"fill-color-boltz-bk"],["x","313.615","y","82.836","width","110.745","height","30.1472","fill","url(#pattern0)"],["id","pattern0","patternContentUnits","objectBoundingBox","width","1","height","1"],[0,"xlink","href","#image0","transform","scale(0.00185185 0.00680272)"],["id","image0","width","540","height","147",0,"xlink","href","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAACTCAYAAADFh8BYAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAACHKADAAQAAAABAAAAkwAAAABS37hiAABAAElEQVR4Aex9CaAkVXV2VfebfWWG1QWQRYddNgmCO6CiIGrAKC6gUWOIUROz/CYm+OdP/P9f82viEmNUcCFRUVFQlMUIgpIoCgwO2ww7IjLMMMub5b3XXfWf75z7Vd2urn69vK5+/d7Ufa/qnDr33HPPdm/drqquDoNdvMTxhSPBE5vODuL6BUEcHiDumBcE8Y+DYORT4V4fu3YXd09pfumB0gOlB0oPlB7oiwfCvkiZoULiDe9eGtSCH8RxfCJMCOUvlj/AIAyjoBL/abjHJz4+Q80r1S49UHqg9EDpgdIDQ+OBXXbBEW/8i2XB+ParZYHxHDohlrAAB0QJw2AiCOccGu75sXVGKfelB0oPlB4oPVB6oPRALx6o9NJopreJ469Xg4ltX8NiA8sLLDD8xQYWHbrwiOM5QVC7YKbbW+pfeqD0QOmB0gOlB6bbAyPTrcC09P/bH39EbqO8NF1mRKoGbqbYAgRQCkAU47mOspQeKD1QeqD0QOmB0gNT8MAud4UjfvyCt8Rx9D5dbMg9kwT6OK95xHrtY/EU/Fs2LT1QeqD0QOmB0gOlB8QDu9SCI37sghPievyvSeR1QSFHgD7uGPRmSxj8POEvkdIDpQdKD5QeKD1QeqAnD+wyt1TiJ9731Hhi52WytJinFzDy3OUueOitFNTjAkcU3ZDHWtJKD5QeKD3QLw/Ej55/TL0e7tcveamcmqCY5gGDoFqdf0P4lM8+oQflrvTAgD2wSyw45F0b84PHHr9MntvYJ5RbJ/aYqHgat1FwZUNvp7gHRYWEdQdKWAk3BXvt+UM7KvelB0oPlB4oxgMT9VjeAxS9FXMTv56vPeFDDz8IAW2cspLpixdos/XWGIsNm9XiaOeL5eBHspWl9MDAPbBLLDii3zz2OfHs8fCuLDpSJxN3kDUpjP+9Gl64M21QYqUHSg+UHijAA3Gkc5N+IBIcEAVzkbfeUJq/c2z8zJSzAJEljAgJQ85qfusSLz0wWA/M+gVH/Ngf/GW9Hp8Lt+av/jmkwUHcBmclnnMRqGUpPVB6oPRAoR6QVYVe2ZDVgS06bA5Cn/xcZP1z+eEWJBl+tk0WLNl6d6WjUFtK4aUHWnhgVi844t+883T5sPD3/BQAH/i4fFvFDW77WqwNVqMJfke4zydvbuG3klx6oPRA6YH+eUDWF7z6Sgjh7RYQ4PH5iRNm24O/LKUHpssDs/ZbKvGj71glnxX+I4qj1EZ+VAD0ced9DlLAOIi+MF1BKfstPVB6YNfzgLtmwactxAG4HYIrHQZ9HDRsfhvDcaUkLfhQhQJIPK0tsdIDg/VAejIebL+F9hY/+d7lcRxeHkX1pRh8HGxYRigO6AYrIQcpoFwFqVeqI5cUqmQpvPRA6YHSA4kHbE7CIbC0ELcFhtFJw9xmuH5I8hYnkGKbzoCC68yWii2x0gPT4IFZd0sFry2v/+bar8lgOxj+bBi8GIMcf6jDg1T45wNVimuj74d7fvoxwcrSgwfih9940EQU/lleU/mcJS9/CQNAFOKARRR8vsOq2j7npThX2j3rE8by6H+4Qz447qxUgh0y4T8hv/b368pI8Os54fyHy68eFhHNXVAmhok3ZyV4h8MFCxF7ds3GmwnbBf1YmjwUHph1C47oNz/8R3l3xmnwbu5YFWIyVjkGCW1kBtVK9aKhiM4MVaIWB/vIQu8deerb3MlLwRKjzHM0CEXD/CoxsUkziVqDWNYBorAtubP3sPP5PX2kYSiyYiegiZ/6JD3JzTcwY2IP6kFcC4PxeFsw/uCbHpeF7K2ShLdVK+F/VaPFPwr3+5cnG5QvD0oP0AO6IraPR0i9dErKyX+Xm2iKFv7XaN1nKMlhE4z819wELEvpgWn2wKxacNQeeft5UVR7j/68vDhWx5gMPH+sNQw7DEoQ3ODEya8ShhuCffb57jTHZeZ37xYAGRc32WXzoUyaLjCMD6Gd8DFnWpAYLtarQFfXJFwI2t7BpN7jt/7THMntT/iT/og7GWqf4C6FbLGCjuJoTyGeJvTT5FtSQT3cUh974I03i6Dvz60El4RP/8q6RJ8SKT2AS26SLMwzwtx8FFbWq+NcLuY5MTf/8xhLWumBAXhg1iw44kfeeWI9qH/GX+0nZwF3NsAgBcrBqrjsXLW6Wz5oXCLv3hgfgO/LLsQDmBAREYNwSWOU9EhY0phlPtGhrfxxkWnS/JhaLSnMD/Ij+CobDbUIopc3SGjUh32lSwxKZvtGflLFzKpwniD9nTBWDy4ce+Dcm8KwctGcfatfDsOLy3e90FG7KIwj3NxDzjXmjx4JGRAlm3/ZfPYl+C2yWWp15b70wGA9wFvZg+21z73FG37/aVFY+5YMxnkNA4srf0DZ9KTmoL/yx2DmgB4JRi7us3q7pDhMjPiz5YBB4IgDIXAthDggDigb/ggVBwtorUqmvbKRJgdsC6h/rg/kAxc9hGgLHkIfV6LsmDfMIfAABzQ8hbRbfRLHJ8pDzZ8de3Di/rEHz/3zeP1bl1BmCXdhDzBXAV1uEiKTUAhzvZRpbw388YK3jpal9MD0eGDGLzji+H0Lajvib0dRvLcORR1wGGCy6XV6B5Nr9jxFpAPXTgloE94ePvUzt0xPKGZnrzx5Jyd0cb/S3BlaoyE7d6gIaQ1n8xbuwW0wFP32keISTQc1B6xW9z3tMhO46iY06qtZg/7dhj6As7S3P95beP7PxLaxdeMPveE8wbULti/hruEB5hMSSxMgIYj9Ssj3Q+H5n99tSS090JMHZvyCo/7o5s/LGeZYWN80ucuJR2k4AelJCEx2gsrjr5Tv3oBbBlqyMcOxv8mBi6Gcxj2cPFCWMlRxf2HpP6AhbdG+adOn7IQO6OPk9WUIrn05SB182KSPKtV6R93lfTF7RvX4op0PnnvD2P2vX9W6RVkzGz0gjx5rbvm5pLnh5Txy16cxdwjVL8hXFEBsyGNC4OUFDvNPuZ8WD8zoZzgmHnnrB+Iofr0MIy0YajIkGz4QuOGn9awDRPH55WnuWmVk7r9rRbnrgwfMx00+F7LSGDT0hInQFcaLEEHSJ+4dgXRChFLnWIqgLELI9XF21ClkW8K28hJFtIeu7Y/jk8Tmn8szHu+ct/8lZT52GqdZwse8Jpz2/J9mv8oPb86dePjeI+WL7cfJkuy4MIqPkxl+N3m4/6Nz97vkE9OsXtl9lx6YsQuO2iPnv1Im878zeznJY5gCt+GKlT+/Fgk+4vpVMRCkJAM7Dr4b7v2Zx41a7qfqAX7q0ofaEAfGROLDB93QB/FW9RpOMDLEwLPFq2snrzFDbC2iNCdD20+ib7brqcrL01ceWl0s32u5ZOcDb3juvP2e+cdheGF6WS6rQHk8qzxgC1R9ysfsYm4T5lnr1eXlE2nWNJnx8iRNKw3vUBp/5LLDwnrluCiMj5c55LixB+46UsybS8XMVHgpWEZaCWeOB2bkgiP+zfmH1iaiS+TUJbeEkIJuEOklcRxaWloYUtzud+KyOOfv9HQRVoOLjb/c98MDnNZs0YcTu8XBru5iIWi9NF0BEDJpnejB6HtRds1SiuVIvjTqSZjVF6mlujsGAPZJiWyLY+KEWXld2R9HF4w/ePfKOH7Hm8PwsxPsr4Sz0wPMe8JOrGQuptlOjBBSfLwTqcXzyJWLyvgDdz8zrITHy92k4+phdNzYg986WlRdEMn7bDCFcwwRFq9V2UPRHphxC45407t2m9i6/TvimKXpQLIB5c5p3hV0d889Sd2sO62dnATWV58y58psbXncuwe4wMDKwk7Y3rSRg5JkJ2jGLad/O2PLbORaSNBj0oSd32jlo5f8dAeIgogDs8gDEcxrn70KppO/1AOiaI6JAOZa0tbTJ6GhAdqyDxyjONV9lKSs/XL8e2MPbFkon/5eE4bn1LV9uZuVHtC8lFxhDuYayVz18q2b/J+uRzh2PvSWA8OgJrdEouPltTTHyWLjGBlTS+SWuJrJz4jZ/G/ygbPfv0rdxFMShtYDM2rBgUtuEw999+syIg+CR/VkILM3TwbZkws4rPBkYZ+s9QQgFRzYMtC/Un6CdK7qC5BpLT2DGu7O0I0RyelM2ml8kvYIlGyuIdGkWhClJYRG/uzr67M5ArHaXmBPhSsPQhUmUhN9HD4F+yW/zxy7/5v/LPpd0JOOZaPh94DkB/OeUJXOJChzNUkvQZSWEKSVEszkbP4PYsKXH85cOD6++WVRGB4X1oPj5LcFjotrO3eDKSy8xszjBIrundif8JfIjPLAIPKvbw6pP/Ldj8kq4ZTk7KODUXbM5MwtFczx/EBAJTSZeeDgSDjn4gypPJyqB5KYiCDgLSbEpm7YjhCNedkCopSOyZktudx0BAY8+QTo+nbV+DYAlDEIGbgCYTQcEfdvu7EN6pPJvJU91IsQfMBb8UOmX9iO0NkvVv7hzvted9f8A75WPijn+2u24Yw7YZ/zvxYWf41jorbtMHmP2TeR+Dp00+GVjoXEvkwASSdsYX8QcUBl2peHQ+2BGfO12PGH3vzWehS/GycCLBq4cCCEl4m3quc5CNDOSxGucvwyfPrnVg91lGagclgG4E+CkkDgWgjlQHkcNNzxoy02DZqDPs56E6h7Q70+0I+e8B3kHEWYtmqJNenXZI/IVnvQb6q7YVanMsCjfGADr5Um+Z4MyGu0P/jo2MPnHsG2JZw9HojwtVjEe9L4azKnOaH88EGaT0luMd/y8r9wt9WcFaKX6NG//Pftb3mNpHDryg5698CMWHBM/Pr858oPav0LzGw8V3Cg2UA1N5CGcWk4IDYsRAi5OJGnky7q3X1lyzwP4DMU4uSmhwRaNGxatUlS4qECDOby64QlTG4C1biB5jY0T2Kpshp3eGU0ir46Wl8f7XDQrCaBoJh2BrE3nVL90MR01saurcmCPN8GH0ddXn8mK5Xvy1B+z36xc259fOJieeBuRl2ZNE+V+8k8gIk4N1+8+GMMTDX/J9Ohn3WwJdceN8I4YrrJf9/+crnRz2gNTtbQLzjiX5//9Hhi4luRTLZ6QpBBx2RFAioOqDgOdZpWD/JEBJi3SbKPzwmD/1Dmctc3D/hnQ5tQbPLRCUhiQagxwQSE+Lg/rRMc0MeTernKARzP3yTP4IDmYgwjgLOAB4X8yBejudzR2pRfDyfZUTb7Ux2dTdaT6U0RPs3nZXu1qyv7g2N2PHjHeyi/hLPDAziBal57UPMF+epozHvC3vJ/sP7qf/7b+B/6E9dg3TxjehvquMUPv2/BRG3i23I62CvXo9lslsGpoxNQN7TyTybErV72V4RP+9KGXNklsWcP1OQSR3JCdQsBHkMo8NaFdRYjC5/gyaHheqJ2sQWeFuLWwPoSDqeHTt6CA/o46yFK21hzE0uROMrknPIKje3bQYjQNkByCztzCuih7JJDQerBX8aPn704t3lJnOEe0ICLDUnADU8OBdF/GwEwtpv8B3/hRb7A3WocoO8p57/YX17hKDyKhXQw1AuOiejxi+TKxjE6wjCs9ESVnjyyyctEbpXs/gnG4RcV4tVSqJ2Yxcl6gcFB4NkNk6fyCNSJFDHGv1sgZGOMuKEAGm6LhzRHUIscgQyTTYh+iLNeuYWPRXWRA+qJZ4asHZ4dElzqCPP6N6XQMYSYHELK9GFv9se7j28P/5g6l3CWeEBzFjvkGOc7w2mh5VySXkLuLv8pp3BYaP4H8sWXssxEDwxt3MYeOvev5Cvar8OAkvGnG3IYuMvlZOK3B0ndvXr9xoGFonlwWltX+9i8/Q66yvBy33cPuDO6LgLd5MlJ1IcaX/C6KPN2R6tbICpPeCkDehuNFkAWisls5udEnvZJXsBm/kb57AvQx61PdOv6BySPg2zjQ79P4J3aX69H7ymf5Ui8PgsQu6nSafyZQzCceWhOcPnXMv8H5KqC8x8P2ZZl5nlgKBcctYfeeKY8JCqvLc+u3u0k0fFg46ATmP2Th0W/LK+MLv47YjMvJ6ZVY06erWM8repJ540TumlD2tR168L+PcfuX3P61HssJQyTB7qI/zCp3TdddnX7++bIIRU0dAuOsQffclg9ir4it1L0AgUWCmkhDujjKUcDhlU2ilttN8Bg5ItWWe6L8ECrBUO7CaW5nlcSGPMshPbMBYTa8LT/ydsbv/H4uMnM9sV+CJs919x/qpNq2qRfu/rW+ssYOa9Zg5Iykz3QnD+t4285CmvTfGzffjDegR6+LuzVp/l463rKyY5FtijhTPLAUC044offtiKOJy6XRFyCMYRbJYSKi2cJ4WQ/YRVnkmNSx4YlC6F3f0W+3/Czeft9cQ1klKUID9S82152lQrxwWbPQxgELgFSGqCP8zkHcBgfsObSlAPCQlozd/cUpA8KoI8bVWsc6vTXI7PZ0s/wIuwXv7w8jt89L9WlxGa2B9KxMCz536s/kftF53+vupXtps8D/jcYp08L6Rn3o8cevPtSQQ7gkxZ6PpI6QijYiGOSt5dVo86ODOJYCR60AYAHjsKLQS5LgR5wgdJXoQjuXomiHfoxtEWIfa21F200+ljIMDM0yCKJnaAOs7dbLWRzBHXUAf0TB0RpV69M3i7LX6T9ouP8nQ/85kTp/jpPhRKdgR6I8JsiLue6Ub/b/A+C4u8i41cGMeRQisp/ueVuHZT7GeWBoVlwjD14z8fl5Uwv1kz1HvxMVw2WxHZCMB8Tb3VyyEYCfJUwHJtTCb6arSuP++0BmxCw5xpAe+A84aDWSVzc/NS0aGRb1ifChCAn97rE9F91cvMnoITZdQ6pjsYqQsyIirsVEfGkXtpCvkxwc+VHslbIBL+b4PuKxAPzPdZoII4gi9QEcQSt69F+7T+WMVMuONQVM3mHS81IiWy+MHcAtWQJyB1LIq3GMPAOHZ6OLydlAMASPGtP3/J/qK7ND8Cds6SLoVhw7Hjg9b8fx/ULbOZ3IwYObsrWyb0uF+2VgbCpvYxEuUnz7XC/f39yckll7VQ94J//fbw5qE0zqHRNmnFDF4ushxhhYuGB35qWHzSL7z977x1x/WR51Oj8MIjk1oZO+8mHVN9mH++z/dJf+Bz4pyyzxQONkx7znjAZCAlB7PZwveIhBF7xw1xIGjxEetHe8nPex/uV/2H5WypFh7AQ+dO+4Jh48PUny0Oin9Ixg8zEvJ1kKHGcgGSxoO9BkOndXQEBVR6c09OTMigGScZvNG8P3rBysUcp0cI84GZBhsMdWojkwIWIi0NCqOPjWfU4eQIOavLM6oDj8BmXPibgG9jG1r3u8CisfVqutjwvO8HryQC2FmC/SIUfn6mw3M1oD/hf8+w0/2FwNt/YlhB5x1+MHZSD5khHE0x45H0B+T8oW8p++uuBab0wFT/65n0narVvykQ9N1lkJIsNGMpZGpALC4NcUhAqt2uLWyfYdDg6qLLC8NF5+7/6GvCWpWAPmPvTyQaBYrAI81RoDLmETQgqCxDTaAqTSTVPzgBp8w762q/mH3AEbm18QtWznekNW6F/QfZLnu8Xx2fLa//LMis8gFxBAdRNdglszn+d64RBoRsrwJP2efmnHRS3m5DlxqT992H8F6d9KblID0zbgiN+9B0Lx8Z2fkeM25MG6kCRAw6eLAQfeXycfPqWfRlsgNhQCPUgir4UhufUFS93xXqAJ1hMfjrpYRK0iZGQcfMheDXGbA8tgQ95wTtdFh70rT+W50q+1qB/8fZXxu6L9hty95TqtfMAvpDncoUwyftJ8h8PKaMAYsOShBC4jjUHgQ+scPwWn/8DM6nsaOoemLZbKmM7N10st0OebXdQ0oGgg83ZZXUYTEawwSRjCAPIFR8njRBfodXB527ByAOjF7OuhAV7gJMbYsdJR9C8p9Z9TRB/a5LG2J8o8XQ6aob1KfUFixe9bcfW0ZPEjqepXQXbD1/Uw2CZ78OZiss31So7fr36KSPj8cpaVF1UqdQX1aPKokoYLZKoy53UyrZKpbItrkTbqlF129xKsN7d2pqpJjfozbwnTCo5loSQzX8dC0LnaGFbQJRs/QC+pOI6dhqZQqK4kfs1/stfUzF/zrT9tCw4xu4754PyyxRn5wyHBv9xnBGikgMrYfQI5CNUfncgC4+b5h9w6d1JuxIp1APJQpDxSeYf+RQmMeHzF+ADTn7irNeJCm3dhKVt8UlO40rhhZrSlfBw7y9v237vWR+V0+PHtSFVLMR+U60S1WfUD7lJ7MLxB1+zKqoFJ8s8cKRYcYDE/8Dt627ZXwI9b1xzIg7quBYZ1oMIb7FG/MMoqEd1OemGwURcDyaEvm3dq7ZLBt0nGXGfpMS91aB6SzCneuOC/S+9X1rMoIIRkI6FzvLfzGOK2ZGe4QW1AaMf1oSBH9oG5RCOZzHJioM6vvsw/pESZZl5Hhj4gmPs/nPOiuL6h/R8If6yEwcd1zhYSE0hspY8oBK3wdW8gPHrw4tSOSVWrAcmJDIWk8YFgkQIH3Hwn3wN1RYbCb836UJHx65QdUYKqAA9GsrdgiVzPr9jc+0jMunOKdp+nEiiOBz6BceO+16zX1yPXytxf/62ta8+WQK6EsHTE5CLOY79k67WW7pMFv+FMokcLoIOR8bV5S+cqAfb1r7qUfni0I3ybYYfLawE3woPuuxxyBveYiOgW/sRf8ylXFBYe/Oj2srFGs/QHd5E37b2LDyPdHpWftZ/GI7wuw5LxWU8R/V5yXjG4kKEcJ7v1/iX/v5k2z1nnZ/VL6uPKtaooCkLmuqbHoqm/2/RwZd9ymo63+9Yd9YH5TUq56FFUz5n7E+clfTfZv4TmbQJ8hlrQJR+2g957eSDxy/UzamTb381+OeFB377n9BuoAuOsYded3h9vP5l1crXOsGptsF845HA1sAmczjJ+M35ab15TwfEjvlx/PWkmxIp3AOY+FA0JoI3xsybgBwf+cGob5N1DRozAgJtAOrAdXmgHQ3RLtzz0tFt6866WfLyxELtF5t1DFT1GsAQecBUGZWvDlfqE2dLDF8vJ6HfERjKlR8JcZ/i7+y3nHGZQtlh+BRxzjlygjtnexB+cnTtWf8ZVsKvLqzE3wqf8e1NQ+csGQfMe0LoOGn+T26/mcgxQmjUTvZ7ie/kypMUjjngOZOyzr/JeG3UuLD8D4LdRL/d2LdC1dXlltNH5wmlY+dKxhfUuBIGu5GlG1iP4t2lnwPQhvMYIdSQq3iTzH/WE3Xoav5Dfy4e/bBf9Xe+sR8WcfnXQ/x9++WJhhVm5QAXHPEjb165c2z75TLlLOYoglJcEUIhTkSAVhAG4AwH8U7rnZggviw88BubeVTCAXjALQIZOUL0nAyOTtTITnCdtBkCHrH3Z2LoibSbEKr12/5KUNkyBCYnKoze9+qjglr0l2Ft/Gx5TquqNie1/bdfHOpJz6BSJ7VV4TlV7sKcKvdfPiW3YS6uzhn5yPz9vnlfhnv4DjvJ/zb269mOPGGnbxqVSyLiuOycDE9zFlZnUS5hxoOMDCGq+53/7eLfaD8UkM2dQlRtwQEjd9UVOnZdZoH9tNmPVT/in57P8ZbvARS8tnzHztFL5amvZ2D1jinAFhuIPRYdLonxkKfgyuMe9NTVvtORiQqIzXj99ilNebC2NL6LBmBm2UWeBxAkFAY5C1mnTBZ7oK1yQOWwDWW7tsME5OE+u4RPHbN285i2OOWZ753aj/FTCYdjwbHj3lefvG3tmVcGtfqtEsHfk7FXbYoX7Sbsg/3oA37AnyROAoFr/4TgiwK52Bn/QX28ds/oPWf++9h9r8UzJENTeol/N/Z3ZSj85XwH6OPqV8QQhdCOGvesA8zbwE0eQQu3H2dT9AeIDYXQjrrfT3YWpW15tvt1rtdpt9/XSXA/5j6exBJ6s02e5zJ1A7mlsuO+1bh/8yJE1r+iwTgTQl+dNBLFWUMI7YGbFeaA9PIsyBgfqQO0t4fnHXDkfwbBNxOpJTIID1jMONdrXHK61QhJJSCKroalKVfFiDFX2VovdRpiE69thnMXy9tsMUlbOhZpfxTWp/UKx7aHznxKPBZ8rFavndM4Qm08Kq1FvPoS/1bOlcTQ/JHc0rmCiSK6SGRw5eX1ovPrtq494zOLR6p/NQy3WnrK/y7sryVXj+mMfKiPfIhcxs5Gp/DqtXY40CiYr/EQL+dt5Rc28kM1pQ1Z/Gm15h9sSDRmTRdQLwaZgTPd/ux4YewYz57i7105mmxt1oXHW7PKvex3iBF/iISEMQlEJuLfQeBaCPNEuqse+Jiim3pDcEDFPQg5wiep9EV5R4KOnzyRJa1YDzBRGaIsRD5Y6Cw3JCGEoomB5LBpwEHjS0M9WaoUa1V76TKvLwQXdEbJ2s3jqdoPOfNrizZqJwPeyQvHqqNrz3hvtCO4S8bxOXndD8J+5AH9KUnjfK4TgFMpzZSsPvKJsiLz4R9uq0V37Vh75hvzbBgELdY7/aJnl/kPe7qxf6qfMHW+Rp/QUzYUQj3I7LL+ZpwI+5H/3dif1QfeM5rZklG/w8PWp5dsf7SbcLjspw8Im81nrLuNPyUVuuCQJ9OfL6vfT7IzLq4BsamzHQSeHWzgAE0hcC2E7tAHXEkBygbO6rzqF32WEh+MB1olZDZhJfw6YQH6ONtnIXLBZCC6k+TCYMxs2YvcPlzp20pGnwbct9nHUZe3Ze2XNr8OD75k4Fc4tq99zdO2rxu7UULwsTCMl0D3PP1hN232cdrmt/Fx1mdh1n7I9POAfbGdL1NxUZgQM4TyAUbRXrUo+rIsoC6P7z9ruckd3B46+bpS/yycqv2dPsFBy+EjFPWV7P15W+dxqUsg+LycBo5C6OO0y7fZx1mfhVO1H3ZoP7QI4wx/0HUKz15DZp7+vs0+Trv8Nj7O+iws0n71gShJqPqKbwjVd6IkYRJ3oUH3PP3R1ndrYQsOfA0uqsffkN8ImCMWwAozxEEY5SuouJhCCKPU2YSQIaXBGe6KB+576b0v7QZXP8AoD6iEwQ3zn37pOm1Y7qbFA4yXxjInhk1KIQFQAGVDUhMqjkPyCD6sJY7CQ6Fb0faLS28ftA+2rjvjxVEw8UuxTb554sYlxqmHU6fi7Xf9iyP8vti/TQY4sknBUsfmGaYRobaJ4zNGJ+o364OvqZDBYVQGULZ2+e/b7OOpwuYf2t/pFY6K+As3SvBPqC6EYIpU1A4s+inO/n2dfJz1TbBg+038JPFvUqgzwmyxX2MtJgMy7oRJ3HuIP71YyIIjfuxNi6J69B25TLgHAtwyGM4C1pMX0BIjhaYwLQX0cVebWYDI9/AvtppyP1APTMjnqFZB9AMruC4UHbRFo2QD4ojFiZ5ERHMHQSLO+oHa1WFnMrHKLeH4eblJ3G/7w3CgC47Re854v1w8vFq+3rqHnkA0NhYrjQnsQ6AAfVvpO58meF/ir4lhHXAxCohNVXEQOHROIRLKaNba4XF8YFCbuElsfQPpRUP4gXlPCEWhK6GPa4USrJ76tbO/0ysc+IFMja/6Lo2nT5uN8acfu4aIBTbxVwKBoxD6OGiyDWX+i2o2Tswextz0TWkdx99bZXgovDH1IkqE27du/aIMlaPgeFHPApAzODQwXr1vgI8rnycLMimXUHm8GUa+c7994dLdLoX4skynBzRCooCLmuaB4IB5OdFWVY5eN2Lb8g+eYdu6M0+VXt13z4u2P75lUBbKw5V/LxPkR+T2gzxw6eKpndPGPE1Y5/j7Hn/IRS6YfJ03BAf0cdabhtTJNQXRTyfBpe0CuRj8lW33vOId1mZY9lAUhQr3Yr9J6Gjvj1E/drMx/j2fDb18anIq6wBl833o+7apXStCP+JPnaSPrDh0SxpwX0df967jD2EFfC12+7pX/Y1MSq9tUNT6EuXdwzX6CdbDWU9DAX2c9WokDlzwlO45r8E5wTfCPb6wNWlaIoP1AGLhx8P17pagEkH7A5m0fAUZX4s5Hq6zFngg2OVQfsPpo8bx/1DbC7ZfrqLUFy2Yf9UgDB295xUfkZuxH2CsWsbPt9nHnZJt2zcZ0z7+k+WBLTqQitKz04dQu/J19HGplEM8DfaZrXe/8o+a1BoYof/2T0X1tvHzfejjrtO27ZuU67/9LePf43RCDVV132Yfnwn25+ibDUfb+PkyiHsPcfS8pssqguPt9575GgF/C6VMsRSmpxXWmAQ/WEwEQMNTqO3VAKMpD3oBb9Jf2os8en6x9VDup9MDFkdM3hYrrCOBp2tKwxE526CtnxU4Tgu/vgZIPK2dfmzb2jPeJva9kJoUbP8N4dMvLfwbKlvufsVHxY73Iy7mc4P0PyFt9mHB9ktXqU5p3rTOH1+3PDyrrxzLK1WiTxS/6Og1//trf+ITOfmaL2zcmm/TvhBzxp0waeshWX/2f/ynOvUj/p7qHaP8bJzXYKbZn9UXPmUeALdYG2TcCSezn3WdPkNE/pZw9L4zj4xr8ZfkzYLyVfI0BCkmTbFg4G0PHFr28SvdYoyapxAdYQgaDUcp3iDTqnSP+2H2Pfb4gfkHXn5depnEYyrRgXiAiWvhlgT1gubjWWXQjm2ydTi2OoN59dNJ27H2jBfUorr+FgNSHYW2+Db7uHGl++7sD7+dtiwG23L3K98eBtGf0h4blejLDMzGIzPEC7ZftMjNF+d80TLr/3z+1HfN/My1+OOjd52+bvGqK3+Qcvcf60w/6tS9/fi1mY6KfBTF5Z1sPBl3wtkU/17fNKoX7uEsKVl/ZfMJPKC1KkXHvzP56XydtYdxJ+wk/r6tfbnCET/6+t3ljbnfkcXGIpzwYZRubnUkR/qHjoGlhTigtSFEe0SPEDjqEpjHDw600XdvuAxIOyuxAXlgQvpBIloypgsIjY2LaSvcbwMcMSfU+KsNyIXhKqP3nP4eeYnUNaLVPNgGnX1bWtmbpfttaDehb7/QxoKRyleL9MKOe05/fiWIdAEFHagHIfSB/oS0mxB8xAE72fw27IfQt59288MNoOHwPRKHeoETfUMXxsQg5RLmy2dPcTWuBF/ded+ZzyKlnzCSy86+r6AT9SLM1w+2grcz+7vV2fpu7S/obP61+IKfdvh4J7FnO0Lre/Lxb7Hu3H7TqZU93XqH/BY76k048+xHLFEIzU+gwJa8eMDWdvFHe5YpX+GI43fMGV376Dcky/aHRrjK4DRD5hmuSqFLzUaDOFQ6aSBISW0VMbZ4YVI1idOJRNqzkfCjRXVu/EWVVe6mzQOWiAh/NoZ2QmB9VkHSCVGfh/u0rIxBHcuLr+Zuu3v7OfJR8M+jKD5C+3W5Tv0KtP+LSw64/LdF2brj3jP2rdXq3xQ75vh9tLOHdhO24/dlA2c7Qp/m43496H5prOOEYpBTESHa+fzECX25Ms0sm5ioXR6vPff4ot59wn4Ju9LPKeu3TeZGzpHJ9eMGy5oP5Ef28Jct7eLJvgnb8Wflsx0h6vNwn9ZKhtFpQ2fxz8rq5DisyJeII7tyRL0IZ5r91Jswa387e9iOEPzy8HUiZsoLDlls/LMsMl4AiXoJTpK04dqCP7KTBGbwbfXqKwfclEwTjfUG7QSm/enJzN1GAQF9heH1C/a/4n4clmU6PcAYQwf7hEltGE87Bp+3aExw0NIaO4KklCb34iryfMHzlLHFDmdLXHHhWZM4YDelEtTnxpVwtyCurJCHJ/eVtieN3rPtBLFsQZLWKrBBQ03JfttfCcNoZKTy0W7075ZXFhuflzjtnvF41/bY8C8o/h0YxczKzZ8O2ufY/8zRaCN8X8C3V/zc6SD/O9A/a38HTTIsvk7iDRx2MZ675U9HdzH2N1qTMbXHQ/nWlteysYeZb//U7IH9uuZwHprSgmPb2le8Sz7Z/QEHM2T6eM5g1c4tCKZB48nHadUjUFmVcK3odaaKkKWn5EJVf66yA5lYo4KXdzmJd9q+XRe+fFmkPb5k4cI1g3jor51exdS7TGDGMeggM4e14wwhwy9PBOkspxBNXT2g/M2Va1o/Bs5Faiocnchiw/WlEAQRRxoOmwp1s+Y2WkR+BD00MbBzOkOXpuLqOBLA42xQ1kx1IqsFf579ssT+4vwDv7u2qes+EbbcffrvyyR6iukrCtMGJWQdlO00YyDb0leZ6l7shz81D6Tr7CeubPy1W2eC2WPm0N1Z7ZPcZGgZO0AtWDyFb5dv7Xx98TO/d21T+ykRnKLsU2TlxX8q9tOK9mrKSVRD7emkjWZz/Dv3TqP//AUHZNBHQAX34smpI82/yfn7HX/0yzHRaIM7ouqAKNTdy/90zBpL476FPY6p5wWHfCf/BVG99k/UK+3UpxAn5EQBpZptsRMHHEJ+QBoAfrRPr2gQBzR5Ul+vv11ODm/HcSy/Rw0/1SguSQQjZCcrdFsXfnZPHNDk2Ykt1c/o6Z66ugaZ/mBLLaEFwej2bcHWu1/x9cqC6vsW7Xv5o6mc2YA5p6srBG/lEvUH7PX4EQDyg04ZwmV5b1fGtJXwgsaYEDc+NACXFEJ0A9x1l+CsB29DIaNBVU0u4TFHrD/qhYaN/Nav0Cgf1X7/efyT2F+phOsXL5r3Zw0q9vFg+92vfGotqHlXTxrtmW77La7TH/96VP+3+PGzjwj3vHS0b+5n3AlVMHPH4jBl+zt981di1K4e/8QRHSKN/ur3+J9y/KGeP/8Q5/zUZGWjPb2N/1RoTw+N7rj/rP2DqP4NUYVXqp1EXzlOCgYbHQU+TNop9HGbtH1ZqcKTYTzpAPYmz++zUYYvu7UOje19m32c9pme0Tn17RM/ie89e1lruTOtRpZVjIEHcZbGH6HiSoHfuMFW+hGshreSp7zK02F7GVgqEwPMwylfNXR6mn7oIdVHlrRQUJpKXqNGeAkTGWjvNkGsP4GKoz1o7s+kQyY3SAduBXJQKE/WOu8Ln3bZBqvt/34invhHeYvoslQ/05A9Tbf96jvnS+DqK8LEb63958fcx+lftVvk8Q92A2dJ7Jdn1rZt2PpXpE8d4kMT+yEUitpmUHHoBho3tFEetGE7QmsH3Whf0OFHTJNmcnLtl76Y94Tsw4fQzddXZYHm/qCz0mTfkf4ZedqmG/u9MZ+Nf8OPfsBpXRTfZh+fSfar3ohGQ3wsQnRFkv/Cx7gT+nYTh/14IJql6wUHXlteGxu/XAS6+7sQxWRphOhU1YUBHp7ysy2gFOVx0Me1EtWmOKCPu2o0JKfhrk+V2w95Kp194IC42WnHKe7b7OMpXyJj/9Hatn9Q8bNk587nelIHjsGNjbg7VA8CT7wmcVIcUDatc9BvS3kQbUIV0zbA0FbbSyNCLPqIJ/WOF7LzNuX35IEJtIRZ6vz+IQOFsoAozRGIu8Pu7A+DLyxe9f1LrIf+70fvfuVRMiHoT8wn+nkxoN2Eid1qlOlDlO37aj+6EMHaR9KB0ax3Fxs5gI7Y/Jj7eFLveCkuC1WGJw+dg6YwDP5YXgewF/ueKkzy3usP+lAH4FO1Xy6xdlToB/YNmNjt7LdAmE4Uqjo6Up6+Pg04bCYchP1qj3RIe7Rv5AkNmCKkHEDFZUcIhDggtmGynzr5UP0FPacQf3+R4eMidvIinYajm5/4sqxZ5Il8uAqF0I6627MtoI9Tik/zcav3Fx0+ztYWXTmiB9EHcO0rT57REueCE4MrKcQBfTxh6BLxZUQv7rLxULPTQ+pL0ZQ+lWnLcED5QzgINUyyS6AgWuegthDBCVT3yZGDqEFbQuDol9BiCf5EO+UGPwtko2gfHs76hJUiQNAmRlBUCHZk/SsufaoPUAfc/aluggPqJrsECgI+vToWxj9Z8qyl70r0KACJ4trf4T06EE39iCfdmYFms+KyI9RWaQuQzVYHaTchbAOPg4ndQoPNukBAneDUR5oaDuj6JUQNZBACR/+EwFFHCNwKodYqif3hAHhSiAoUOQvj8Z0fSOqmiEBPtZtQCOi7v/Z3tuLoxH5zCxwBw7GjpwwqRXyeQMXlmFBqNDYODsZ+65/6QnNngKE972eH/RYti6SPJ26BmShmriFKa21/en0j6PQCm3YRyLsGLpRkebUdSZ+SOHwOgjQfWjLZBAo6VCINx8QBtejIEi5AFJFvow0tc9oLH3UwBtNH2+XxS49wIr48i0KcjlV90KXWYqdfs1WYkDyEfQPmFZUnFZQHLtLAT9zBfUCbLaWVzVn76HtCTRIwOZeqb5BnrqHFzGKXykr9TzmEJiqtt4i2zoFm/jTvtC6b86KYxt8pqPoKY6pvGme0zxbqSUi7CVVOHKwJ5yx6TRheOp5t36/jzfecfkJcr50BeYkugjfZMwD7ZU65TZT4mSx9HpdPRL+Vr709XonDqiizRxQGe1biYC+ZxE4Sv68y+9P4UnfCZnsmnwOa+dvFP3zn9nWnfXThQVc/bLr0vledaYqD6v8+5n+XU/60xF89WJD9k41/nhe6jqC78o52TePFo+XJZZ4SctwT9jv+k9lP/RJdPN2hB0rTOU8q2s1/Fe97qx3e0QuCrXee/to4rn3QPgBZNqjy4mwGClQ6XLXjgdNWvy4rOL8228QvA0uLg9rcG2xW6e8dP6NjjT2Gxh7oSEJz/iT6Z/RJpx7rt5/2i6yB/QiX56DCUF5xwoJR8RaLyGRB2aLelhqIGJMICS5qu8MmA1AJWYwdcSefsScEH994q7La8UM08s3v38Npax/tvzWszj11yUGXPdFkax8JYX3C3iY6TfbLF8puFDdeUh2Jv7fwoKs6OnnvvOcVB0zEtdPlm3LniSuOVXcMOP4y2c6r1cI/kr7/Qvuf6i6jf7/zXx6h70jDyrzqH4/U6+7qjZfgSeL7tFTk+ER8thz9Qx/zX8RhxLn+BMBF8vD0x+eMBPpSurT3TjFfd+JhMG9Otbdno0aq/2teGH0i7Z0yQSFOmHINCpOYnCQuuxj9cd4jLHr+kx9R/fXI3MpFtLWjBcfo3S89qh7VvmhRF9VdodKEIKe1lhhKIzELJQZIniQmYPYK6xSCnuEnnVCbsg9ln/zTDPUmtAUIUtuSA3TSVHamA7YjRLXXvdkGGolZ6NsTB9eo+Nm2o/GEsM/Hs/aa61vmhHpYFw/OmQBoQ99C3mTyUd9NgSyehNGOuOoAQq4CqLBCXQhB9XHHloAG+8Nrls5feE74jG9vSuoLQLaue/We8fjoWbmii7Y/DO6vBJU/W7Lqqm/m9j8Jcf4zv3efVH9STvqf2nLPy94YRtGHJRpPndS/k8jLrerI/uA8eQncB/tyBaoh/nkauXxkwuemH4hTK4ufceVjvUjYctdpv23wP3OdEEJ9PNtJ5/ZvmH/Q1euyzafjeMnB318v/WIbuhLff9by8Yntf9KzYh3lf9MErN3JFLkhrMw5dcEB33uQ/bd9hmPr2pfvUY+C70iDRUmiQAkmDaEw+Lni4+zMJmccYUBwUBCmXAnmC/HxhCGDUBenn66yBQfkiptQWzbxm124RKSXiYSJMI+/gSYHvoo+rnzG7NCM/TLpLlm89GMp3yzGfMcIrv51kH73oTAYD2Ll4eSBp1QGXZaRjza2IGF7uRivcvJzgvmR5IzqJm0gF1uTPMptkTPUizCjn+qufVh7s0WvI3546arnvqzoxQbUqo+Pni9W6DfOBmm/vKDxn5ZWq4csOaT7xQbdCSi3YOJlz7rqy0uWzX+m4F/UOvgZW1O8+h9/+VbPnpvvfjJ/wabKtN/JVRpRtXmzXLUc83HyQrLljOsDNqO0sN8qi9036JPtKqOf8gqN9mShb7OPSxTL0sYD8aNnLNy6c/uVklVHwnfmv/7nP+PCuFtMw63VcM7Lljzze3f6ak664MBry6OJ+jflva37qcJIFg5glyRI7CRJZBGhOKCPu4FE3laDQRX1Bh36Ig249GT9Azr5hMrn6ZT0AZ25QQZwQMW1gdAEygadCRUXHkLjd22dPL9P4PpHiCPigLKhb0LqEcpbcQW/QF4AtkOkz7oCn6Cob3J8AlfCJ86lTRBtUcfCq0+APs569a8cAPo469tB9kV9oL7SYIaZksJ2wrRJ9/bLPZ4nlyyc+5EwvLDweVV8hMx/O00ZlP0SnP+1ZNU17w0P/v4Y+54qDJ9yxXa5UnJ+UAk/PfD4R+GU3jyKiZg550P4hDEx3I6Kyn/00c9S1Pif9MTVTwNmqCz87MKWzTsvk3FwIufBTkxhrjEHe5n/ZNE/Jm9DftWiVVfenO1z0rhtvuu+T8rs+rxOTxYyibjJWSZZD6fyMBx4q8kgayz6VX6BmrgQK3/4x4YlAqGPs14dDZZWJx+hawF0uhGyX0LVAHLwB+j4CVV3TwblEKocrw3aoch8/z+XPevq7+vBLNo5TyXxg/3qIw+auS4GLmjOKwyh+VsYKU99jyPxXwPuONTPgrM/8CjN8aNP0FggF4XyiSvR0UlTHsjBX4fysvpAFmhpoS6AkIwSrdiybXzd5jtOex8mDiUVtNt892nHSp8HOqu0F2qBA+Ksb/C58+Nk/syzX57+/Jtlh177wSJM0qsdq66+oFqpfJxxJ6SehHn2+TQfb2e/rNpehKvBvduEtaXvbRwZJYVSn8k/1Ys0aZH1N/iz9veuY+ct6a+sPpAAWlos41NrUWN+SO2mH1L7vVc7pKJKTD0QxxdWtt616RJJltPy4l9E/ieuD+XdmWHldbLw/1FC85CWC47Nd5x6QRDF79DQY2LBhkJoB7pHOlhK4LB1sqS1wFCcTLZX2S6pBOdAATQcD3hKK3eLRHsFnkiyvk2uL1sYwCO8hCoDump7tGv+g634A9TNGqsM2/l9KKeQDaLGtXbQeMmF9rJI+vbSVVd9CPhsK2nM0jgy0Qlhc6MHXZyFzvbgAc6Ci1EogD5u1GZ5jIfV+L1ZC8oGxNZugPp9qg5oB11c+yxsJ8/XCLjqIFA0WSELj/+3+a5Nd2258zT99oiS+7yrxvErIJJ6t9N3qvbLguCaJYde83d9NqNJ3OJnLXu/PAz8y0HFXxKnEtfqpzcp0iHBlhtp/BkPNAfOkvU/6KQBz+ZTvv3gLK5Qd8B2+ZTVV9tIO8qAlsBZaKvcjitLCw9svuunn5Gvt/+u+ZZnHBz53rbG9C393S5e9D+gbiKGsIJP/XHlrXJOwyMYuSU3bFvveumLpO3HIUkVUomC4cQL3J2AoRxwQMXRH2hqmJ1ogEOGypE6Qm0HPrR1fyoa/MJk3RieyBe6yocQFeRB9Kp9GwQOFsIcdtTKhmI6G4+1U1yUIEzsNsUg2Ppz0Pruwv4guH3J7ru9CZ/ITIfZtYc/zCcWA1rnxwF4dmO8kvaUI1B9jliB5v6IA+Zt4l+lA/o4eVVH14fiyi6yqBjkAnfys/yqB9rzjzgg2mhTg8AhCoXisxBtrDvXPoqeEUX1yzff8ZKPF3G1Qx4deCVsQ7+qr3ROmNhtCqkPtM7jl1bWthP7w2DHvOrcPzAPFLuXBzjrc6Lg9yuVSl0U1NgXHf8oiHTx1otlmIgZd0Lf17ABG/4IfZz1WejbrHgvynXTRh74Uy1djqCp2uFkwDYUwLwNvJ3YL75WOeWu0QOb7jjlf8tbwN/OPGiKP/w72TlMnK/xYnCE3wXE8g7HsoFHN0QbOP7C8H3LDr3qS40aNR41LTh23HWaTHC1S6M4GpFnN0SYBJabZoIcO2WgN3BAxaVjQmmoihCqEU45ESgNoTiUcRBA+zGouNQROmbjRzMU8BP6uFGtf8HpHMigHiqvXf8iswj7xUcb5lUqr+rr7zA4m4cC1OSrdy43VB/grlg8ERPzbRainfK0aE85CaTshF+CqjQEN413kgNSpzmQ8Aub8icSGxHWJfyN8kWY9qMQOPgI/bZOaq/2i8j3bL7zyZ9uuueUAxoV7P1o9P7T9xZljx2U/fJtlAvdN0t6V7qLlosOu/YWyTJ5GNvygHEnTOxmnPJksw5Q8Unj/1I895Ynph1N9JS0sbmVsB/6qa2+/e0UmWo9fumygPyfqlq7QvtNd57yl3JO/IskTwc4/4Vx+KFlq675p3Z+blhwyI8RLR6LIry2fGVuQyQSCqBsmswOWmKD7HiMUfdCRSMPd2gDLa8+M9pVttAA2Q8hRXpQNNQjQB/3WLpD2Zfrvxf75cpRTR6o+d0Fq66+v7vOZxi385FqTb91YgJ5k/aMNWLp4a6+OQbiYZXBMwTaAbf2VifZIDw+znrLK9cPdfAhVtQ4BtTVNcRDviuoQ2Eb4krsYNfU3umitkfHhrX4xi13vuSZHUhqy1LfOf5i8UFIP6gPtP8i7JcHYeeMtJ2Q2irdJUN1ZM7/lWtbE4wvbQX0cdZPKf5xvHTrXfce16WKjeyTxb8P+S8/zNfYX7+P9BeVRSjs8G3ptB+/jeKUI9C3333W7FTsbOfbdOdL3im/8PxhzHWW15iTsMFvhI0536/8l3fofGLZYddeKB21LcmCQzoPNz+x8ctxVD+crUwh5A0VNbxVvXAZL6AaCnNhcH5pJ1/uYbuGgPhEDFkG/bapdPYFaJfmCHlKIESb7KdNn2a4yeur/WH4niWHXHsd5M/mkvrMcgJxsA1WM06IweQ+bucjxhPQ8DTuaT9pf838bJffU5N+HAvQ2+meQFjWZE9/7Rf5+0gXP9q87qUH5WvcBTWO9ORIn+S1bLJHOlca7HS2JnAS+8Mw+mo/v5GSp2seTd+REAZXso62Avo467Owa/ujuLcFh7rT8pR9ZnXJO/ZtMHzy/O/oxUt5HXVIqwe24oANZkcK88YjbU350zHUYZe7PNumNaecIzfmP91J/JvzJR0HeY5sig/j6sa/3J75ytJV17wnr20eLVlwbFrzkv8pKyT9Lnnr4NuAsMQRXLV3UHA9dFBx76SPNqa8Qd+QVLGMfK0gLeVKMdYB5slPaYnOerIzfpNDGcLhJtCi7Jf+/mXZoT/8dKr/7MVwnxAbfEno+5eWow6lU35fho9TnkRcUUD9wwDBH2DOBmbK8XHyUnfqBx7q3Ak/5FAG+yH0ZVF+O37Uy/aUaOf4j7avffnTIKPXIs9v6Ns5fX2Iu34S3akf+urFfgnBxb3qOdV28nHlYtqThZBNm32cfIxdp/aLc3pbcGDe7GC8UFfq5+usuDiaMMl7L/8Lvr4RVOUPutFfxFvpCz6UTvkhxwo/jLrDXRRsvuslLwvi+lfEL3ouR8xRNPaMO6HNHRqfVvGgf1nv56QfK/QhM/wVSw953vlCZ1BAnrSokpvXvPjlouJfQ00rgEgaHBkEDiUIVTFngFSgUusJqbAPIUvbaT/t5fttrZ3pYDqmOPmoG6CPsz4L1TronhTiBdgfBNcvO/SgjleCiUozFunMh9mY+HHzcfL5NB9nPdwFnAU8KIA+blTsyWv6Gp205nqTbXkM3NfB5Kd5Ddk+zeelvlno8/g4+Tza08YndspEc2HyocF072xv7eJjBmG/uP7OZYf9588606z/XMsPOfB78q2GJ+A7FEI7Yqz7Fn97xboJ73wv3eflk0/zcdjg5YK2RT0KIXDaSn7Qii31JOeLzP9ibZgZ0rfc+eLnRrX4m3Lmn4OYM+6EsCIv/qSZlT3mfxBfv3Th08+RdwV1tYatxA+fvUB+/VXeSc8Bl0JTPJ1coaBvjCnc+56yAH28tcTJnePL8PHO5aW2wx8mow/2h+GDI3Pnnx2Gn5V7ybtGge9ss5zBXIjN/GoQuBVCd9gAWAcImag06OMmS07w2tYgcOhAaPE0mrK5euDUF3KMz/ozPupgR/7el0kZjZCyAdEytQG4FUJ32ABYB5i2hSx5xvAFm++4vqff8Nh69/UHi7jFWf2tD+urE/2y7RttN33lJui0vrYf4070utHXlS72aYZPOf6HYE6l/KnDSeKvVWlOIF6d5P/UdWotATdU4Md04zEg2jXqa5Joox017lkH6Ldt5NrVjkbvftFRUT3+njxisJB+hX86iT9zHj4jzniZj83XwK0QusMw+MXy6pIzwmdcvNNROgaVzVvX/4l0HVEB2gAAPCxJREFU9ow84c3KpAqih+Z6SzSTleKJMS4RNfPMSxCSKNtOnvEKP9qwHaEpZLJcvcoTPOlfExb9tdpUiMkAl5Odtk9pytlUn9qMPlz7bXG1cqZ7334ie1dBuJr2P2GRZj5ALFAsJuYzP2aNPmfbVvKaYiaMSksaSD8qhDnAvlWJpl2TPGjq4t7EnEPQroSedO/wlHWK9sfxhzbd+aKuP1XH9fAA8zk0oQ6pVsRoK6CPs74dNPun/4cJw0r1liTuBcZffFQZ3fHk/u380lyPWwT0cZH539xzkZSi8r9InYdd9uY1Lz2oXguvktXFcuhKHwP3x6jiUknYj/yXBc1dleril4WrLt+K/rotFXkG8xQ2yioLQ0AD9HHQSCdEPQqhj7O9TwOeTnSc/LPQ5xHc9aFQdZNB6qD/AChaoVCX1v0bH/ewBaWVfbS1VT3ask/gchlXflQ7fMuKVT9cjeNdsWR9ipgbjbGGV8zv+f5hnfGzLWPQVh6+aogCqLjIIUz6ZR/KqOyQa5tP83HWZ6HPIxIyOQWZtCFfPtr7hbpZP2xL+0XanKAef8Rv0QkuVzX3ze+/sT+TRRqOiJs+duzjPo/Uiv1zRuJbTM707WXavSWJe8Hxr9ejp/fP0kZ/Z+MP/5PWGBungdoqOCDx/inXQhJ1li4Lyv8WHc968va7X/zUOBi7Rl5bsRfjTthZ/CU2veZ/GD40d978U5c+64qef7m6Im8kOxoK+4nRKmp8NgQQG9oQUsak0A0OaWl/6Jc0lZU+ZOg/rNJKJtYfqoNAxUUWYSLXk99KDumwG3ir0rX9QXDh8kN+1PWvYLbqf2bS6U9AH6c1Po08PrSIWoR9nDw+zcdZj36As4AHBdDHldh2x/zoNGfSvlvpQ91Yn4W+TT5OPhkzQfyiLWtOObmt8g0MoSw4irdfFuBji5558B0NXU/DwchI5BY9vs0+3plSHcU/xmKu2yILAs1TxpXQj7mPd1oPPcA7XYV9U1/oQZqPsz4LfZt9HP7atYp8HX7lWK1+tZyi9k9zxfeJj9OP8JHvb/CgAPq4Elvu5AHRx+XnAk5dePD3H2nJ1EGFfEsq/o3wLTNeKEalpcadfAlVbzyQSv1lNpFfSpQmVLyxvSgprFgEWH1jLXpspFh30gJkKaqJHKTSTRZkWlEOx+lIDaBRfkOVHmTbN/LTbkJTV3iS7lvbLwumby0/9Dp5hTO1b+59NlPoM6QGcKaI4eI3F2R/YQl/gGxt6B0626BFzHJC8kqeUAsu8n0MLkYVErI5aFLTmDA/mVPt+MNKuESU3COoBHsI7x5ix960DbJpa2pfSkvr+2O/2uLGYxRO/I0cn6a0DnYybuWkCKsbx5TFQ35CgEZpQERgEi/DWY2ufDzH/juG4dmlhQdf98imX73gSdFvN0sQy6ci7Jdrm+Lb3ko3+a89cD4GlNLsf8u1JJ5dPeKnInvaFZ3/QZSO4Z4UnGGN4jUvXLypVv+BqH2o5awzoNv4Z8ZzR/lfCTcL30uXHvLDe6bqthF5//l/ylWOVakgS9z02MMYY8KM8saZtpdXCmFOk/sKjqa4cLnDZOC3kEc2QvBrIjt+4kxuqxf5lKcKJa1NvYY96whR6eMNzKlcym9hv0zAty3fff6bZZBPIiwje9YdmulwEQqh4a3dQtcSWo5Iq4TgoWEwsfyw65JfOoXsQZcda07ZdyysnSYGnio2vlIsXWgaDsB+MRa5j5OJ/Lz5qXiWQ66o/aITH8ivFON9Hpbu8G2LkDRNSBII0vL7gaBUoHweWZ/PNw3UMMCl4N20Z+ZTo7pNStFWQJT8BanfTOIRxfv4lG5wqkWYuDIhePkvghn/ZA50tJZ9Fv0iDn0PB5Q1f3HcE0IvX9esnjSTsKX9PX03K9vbzDiO17583uax7ZeLL5rem9N1/OlYwvb5v2MkGDlj6WE/vLUf3hqJFsz9QLBt7HQZUPtDB/avwvHRBZniPsJkjVN+VFOTDH/StiHbyJwDtZ+0v+b2WQ2pLaBT1UEcZ7lB80tj6xz+jD2d2C99PhGMVM8K9756m9/XroTjbYbMiXY+Vp+KcwCT4qFu3rLETBgM8dkyVQM7XHDYtQ9JZ5/DNrrmhXtPBPFfibLvEPv1V16LtJ9G0ndRPTpHaB0tOGSBIgsj8yDbQx5xQhsCWNRYb6CTZpTGPdiUJyGHWxJ0mhG5dY1Pak1a0FZUECekrd3YL9/KEd92V3BbPdHNV5E4YY5Y6ooqLD5xzCsaxMkT4mcHCi7ap+sDamtOuGPiLp2SXKF+yubbSpzQyYl2kSsc8vtJ1U2/evyrkhsvcqY3Ad937eLf1FgIfnvigBKjiWo1+N2lh/7whrx2vdAqKw68dvO8ufNPkjz9OhJeB5imvkRYOtVBIBC4DjoHyUdIPkK/rUkRGWKB1iPbgCOJHLQu8BZR0AFlk+oEwjqpBA3Q8BSihroAYkMhBK5tHQRu/AYNT2VoT9qf9YH+VJaDefzyjuiJoBq+drdDrntAxJdFPdDodYsg9vYHFqN15i4XVqSN3NUYrrL4sOse2+3wH79bHhY+XD4J323aFWe/7wv0Jcev7tQj8uZPXXCYDMlta6/NKRcHGGqEPm5UrXEoGH1bHTmMNzts+kEYy+LH19HsBq2f9ocxfFtMYWxa6ysrFymcQ4krcWA7+lh7d71afthY5+g3vl7G/7CN/SJcKyf9cNOa335e/KMv5EQfU48/Y2PxMHnN+S/nt0h+guMtyw79cfKW3n7YqBfYFq265lER9jr5us276sHOw6pxtGcqnCY6in+oZ2ChEypLA0NzI5+XrIQN7nRNE5oMokiu11XkC31yI12uIZ8pE+DbyAXor84SOv0rBHSDQ3aHCVRpjkcvlwoREAUDgZdQHUGBChHM2lqwUCH8715x6I9/bEy79t6fRHxcfaeOc/4hbi5HEMWxcgCIkqlXsqt2HMY3RHsZpGs3PfiKE4MtWy4TtV5QlP1qMl2lMD546x0vPHzJodf9qgN36LsiqBshHG44HI8CLwN33s4cukFgLMplfJQnNxWH5gqH5JTpojkmyubo2xf7w7D393CobgyqKEjXu3D4+a8GkNXV5zZoGE8JozYvasf4Q76PZ9Mpa1+n439X+LVYeeboY+K7tyQ+gy/d+FMI53YdfyfEpQFjQ5jkf1z5o2VHXP8f6KKfpeGO3rLDrtoowvt2+aSfimZlbVx90vvh/dRR4ioZWHopyC1qsnOjLkgcD+XZ9GhHMYIAmRyTxBldDlwnnzIAZWHyqd2OvPFffVqJw52yIPN8ThzQikRAURcJ4qwGUx4Omk83YUOzX77f956Ue69nPrljK97/cAAXw321n9Z6fqjZzxO0XXDIh6fklgrFAOKTselon5SJJ/FiX4Ro5OM49koUD88tFZksNqe5lq90P+wXyT1c4UD+e2PBVy8Pz6Op39040rMUCNljZRrYrrDxPzALpqejJ9c8/2/lwe73aO95sc6jKXM23tljNATNF6ANrbWO/+pfrTji+n9Jqf3DGhYc/RNbrKRNq08+QFa4J6vPPN/ZggKTpnOy+FTRBt8yAKJjk++lTnnT9hoctocwbWP1jkto4XXLjxh5b7FWzzDpLgbmzvQqEKygO3MtUh8Lh2sPH6vLHTPxSWXkCh48UX6sbMum21/4ujiu/VR6T362fFLdu7S/2T/xczqyNI70qnRTe7c4TBYYoo/iLh5NsrMByQisVMLiHxpoUqoFIZRvNcmEKga1zq8+2C8fWKotNGhPnnL8dcZKxxhtBRxE0XWqJAHyQIr2ihyyw5TmHTegndo/KHsalBvMwZNrXvDuuF6/EL1lhlMyF9Kf7eqTXKe/2vi3Elb+cbcjrv+HoiydkbfC6kF0PnKYCwtAw1OoodKklx2gAsNxVQR/Pk1xBAP/Tl4WagKAh0WiLlc27h+ZN0deW37d8Eys1G86IUaEbOotB4GrTwnVz3heB3Gz53agMnAWiEFx4hRRWkKw+mHdLz/iupuDSniJ2i5K9tt+nUfEF4DY5MpF8mvPk/lEvqWyQ50KJvgyKcxvaowK0lKMtRgOigMCUR0MGh4vhYShKHG0RG2ForCZdhOqkjACBdDHldhAUQ7ZJRAI7I/i7cbd+R63CJj3hGhN1QAVlx0hkKb4g0/oqhMEYGw5aAHCQYFFzijMA+infXv69C3/CzRhOkVvvP15b4yj2j9RB3GdFkDFZUfYU/zRuFX+h+FFyw+//s+sx2L2M27BIQmLL5u+yaUyvNfSMxy4gD6eNmBbQK7CDSIu2Q1DV+Ml0A3j0SCsvmrps67r+c1rqS6zDDOX2uAQnL70/Wy4eRTPyuDPfGzQvNy4FwbzvZM/E7w2Uqn+Y1H2YwJXn+DEIpsMjv3xnf12fpGT4g7lF0ZCjQRkOJrKdjjloQ6llT3QxRQyIMLdO35An94ShfEy2KR/9Jeo1G/75YS/o1tLMRH3kv8aI6RAK3vEWo2nWd2tWt3z+1c4RC/NFwctd0wfzRHVzbTrevx3r9nQt9j4qxecIYG8SO7pyyku/0/IWgOouMSdkHlMyLgTJnkPCZl8kaciv7Xi8L3fLlczIbmwMuMWHBtuP/El8lrX/eAwdb2DPk5nItuVDx6XDYAQOOoITZ7jB58Un+bzoo0ESJY+8ZtXHPnj25W53DV4AP7SjckNKH/qbwfpe0Lf3xSGiQil1YREvmGG+hBnGN9alP2QyyLv1JGHJuqH8rgVlDnNfQpnWxtPxk9a8xjQKCK27g/8fv9+DBUPg6G5whHGoerCnGq0tZ/293CFQ7r3fWe6Wd4Dnyz/G/zvcoHxQTvgbE+5xUG7OglbdEPvXr70a/zLj5YVZ8I0SH5y9fNeEEd1fFN0hHkANZirjB9jCYg/FEIfZ31e/ClTG6uM8Nrl85e8IQwvxW/vFVpm3IJDTvXntfYIJ0qbPOxUZSc5TXRJfEIGlRAy/asgPp72l8qXoP3N7kfchG8hlCXrAfmuPy7r6uVe+NycDgfbEHEQ3kQdIfkIjV9qld+GEHFA3bJ9D+mxaH+96S4K9tF+uBbyABUXKFNx2wWHfHVzB/UgRByIA2JjLAAVRz/syPEDtOQfoiscEoOlah9u2Tn7fJt9nPW92C+iu7/CQf96PlddMTqExj/iiX7O9wgJw0JoVVwA8CrvAO78Oht831Ff38fAwUOYz9/C/lm03pBnEo+Nw+gKWRrOh5/oBz/WfYs/cqkh/8P/XlEdebU8bzaGfCm6zKiHRuO7TlqyYWctfdeAZq+4iBDeEoeycDGRQK1P2TEwwe0P0LTWMQO4DjzR31h+xE/+PttSWctdEIyMBHF9wjwhoweDJTlLwYk6y1icbE8PSxNMQMrjHEmcztegQYbxOq6hB2E88vNYnlnU/OyX/WI1fcUch1/kpV4r2zlELoRs8Lzekl1jh37cGACwb3O5JrQFkHyCk18u0eovWjru6Qami+ZQZ6rQDsJO7A/Date3WOWqrYVDdGNMVcPJ8l8YyOvHX4eKhcPGCZTmcWdmT43Liz/GuvrO5Uff8r86SIOm5o7JWm9Z/cJVtXjiBxK/JcpXdPwx4cJ1mhLhmmp10enhYVeNTqZjP+tm1BWOjeP13xNPeV85g/dQAH1cic07nrQAfdxxctACGp5Cypfhc+uKPfZ8S9H3upqVn0EUvM2QIVFfi+7O5zr5wL/uD1YprVPz/DAT77TtNPJVwvrj8IHa2m/7s36IApu8JrM3DB5CtX8lz8cna+rX+W3sk5OTmcQ/8H42wW85WHzjvacsk7G7j/bq+atJf2EgrRMNyQuouMiW1wU93EnbnnioO/0LIaTlCWSdz5/H10ca/aB66biHjqJAP/N/Flzh2Ljm5H0ngvFr5IHh3Tt2f148ScsTwjpAD5cr9PfPmxec5l6FkdeyENqMWnDE9eg8eCFdEBhOz2QXDOQjZNtW/FiEgxfQ8BRivEjt+nDO3FeFT7mi66fQ2eeuDnn/ENBw3A5wS26cjtXRBg1vjLGywologm2GlDAc2QRVzVaDtJtQLO3afl3AiB8AFYf/Qvk2RtsSy0kRvkcxSHcSao0lfssxR15AH0dbFInhbpvuev4z7Gj69uG2sWeLKaKiN+sWZH81jnUx1721EsEu819jrlal8U/ywMVOhHavyhRaMA/yRPQt/2fUmavZE1vXnbZnXIuuldg8rd/jf/L4Y34IH6tU4lMXrfoJXvg50DJjbqlsvuOEgyfG4+diQOp7AcRNxG2Qmt/8sQU+8uR6FeMQo8ONR+UVQp48YZuQV72+dsVhN/Y4meRqMIuJ5tSMi5vsNffzxNd80sLgIQ8a4xlqlWnim+QNKyEOJ5boRJBRkLYBomRhW/vVD84pFBB38qBm/DDGir+wRvOm/jwa6sFhOloATIa0skORZzgfdldyrXaMNLxfm0/TTm5ZHA3bkuRJ9BWS4PADSj/sl9dw9HyFo0/xTxIpa09SYeYWsJdXnag/zcHYwyY7au7O6phTqXb0Q1Z/jn+5b9gsbIZQcLVtfHT0KrHt4F7thx+0KJQdj+ls58Am/wXhk5Kfpy0/4sf3Toe7Zsw6cWIM796wJEsuX4rHSMtzHhcOgLkbphfUuT/IAM7CpAeU7YIVR/3sBtaVsDcPZHyq/gaNMYD3DQdMJysXgyb+3rQYfKt6LViBXvttvy4YxCuAhmsfba9wjFSrD/EkS6hewdkCBdDHjarjxaolSqjXBYZBXQ2iMpkNrVFUj481bPr28lsIRyOjzNbUX9Co3/ZX5o082L2lHAHQEn+AGssEIndQQ6i4HBDCDm3jIHCrNWi1Six2l4m/3xl0RwHElrXH7AbV2eJBn7/wr1NIv0WU+OGzF8Sj278r1j3btwcW25/5pJ395LaYp/mMdswD4CbNoODbxOmvmM5vVs6IBUccX1gRL75J/TfpzlwMJ+umE6bgnDyzUOPANnrgpFt7nVAhK44/ufLon/+bqyxBBx7gAk+uF+mJCdDHWQ9R5mcnVGOmRI2b1gkt4ddwYAce12YGAPmxtAMKs9/3A3zVwZsul9YWyuvP5W0cnm/V1zILEuKMQJx8Pg04Jk1C4OAjNDzGt2aeO90hkicsToQOao+DtMmHUF55YISHk8enAQcbIXAx/9EpvZdHBGgBlE11cdBwpx/YGHdCNMy0T2QpUvwukpWA+SEd99C77+O/eFP63kMcv2POxo0Pf0Oe8jk5ySfpRePK3jLxs5i3mf86iL8sQsbDSuU1K4/86U3sajrgjFhwbLztylOjqP40OMi/okG85RUPnQ2kEaCPQ5AWRgrQx121AAnUj1Yevfh9KaXEuvEAB1OrAeaHxceTPnyijycMMwOJ4uAk3xfU2jfJx1nfkLc5DM1jQPI4jrYl7Vsg4VFX49PO3Zr3KrfVGPDHhS0m0AZNsGF+JPTnSnYLm+Vk8/wn73jufqQNGj6x5kS87v1g7VdtFYwGYNwrDXZiQyH0cau35pPYHwa/UBE97HzVkuY+0ccdQ178jdbKnkRyYQjzAB34Oe/j7Nw3ycdZb7GRI1R6DJJTyU8FJLxDjOBD88bVq78kvjmdfoC6nkkNeGJKG4ZO4i+3N2W9XTl35RE/vTqRO03IjFhwRFF0nvmHE0H+YGIgAfM2TCTGY+2J5/FqXRjcN3depXxteYHJaTGwiUnj4GIkkdI/nNHwB6gbcUDdClSuT6LxyUbmjZPzxPXHfvjCFVkhy1HbBQe4ZRqykyN8y0I88bdorjTMfCLb4RorwfWP0MVD40V5AqU6jCY4hr2KQaG14Hy1AbpnN+gAGgtx8uE0oLTO7BcP9bjgwLdccvzpaIne8LHqA52pN6GQcD0dBRAbeAm1nVUXuc/Gf7K+es7/OBqaF8pNZh/rNqz+wafEVvmWZWPp2X6NPeNOKLLz4h+E71x51E/lysr0l6FfcGy899hlksBnYXDZeDHo4zbw7FMHcJsaxPfwv7dhIOAY0MfJw7YqL4xHq5XgVUsP+dmG6Q/TTNQAg8D8TIgj4upjPYZt6YBBLFDSmBhu1Jm537D69tfLQ4srBmK/DAw56XW04JCHqjs4OTI2FjuLAGlpbNJ4pePQj7VMrOfJxvAOLJDx/S+cLx/wmib6zhWgrZ3ZL28z7cCnrXung1J/pj5u3cqr4aIC0Mc9lqJRs8H85ee8j095/Mfh0Lwyv50/N972O38vVyL+oK/2t+rUj7ng8mNsf77yqP/6XCv2QdOHfsFR3xq8XpJzPhwjE6n6B9DH6TQLKKc5ORKH6x+gCwQh2qCO0MdlkRhXgsobVxx1s9znLkv3HsBLv2zC4Ve+APEH/xMyFoTohzig4SnUiGkcjUbe7vUbXAtcSpUHFt9flP30EyEsk9s3v+3EwmqlcqPvY/qTEDKIA+ZtfkyAZzfYbbRg/w2/eq58cBhseWLz9reIVsupe1Zfsy+1DdoZzfQkzvZZ6MsTS+vVOQF+Gbjnku3Pl+/jWT14jI4pw8fTenlHTqEFD/anecD49z3/g2jfQs3ok/ANt534fvmw8YG+299yPHrxr1T+94qjbvpIn0zpi5ihX3DI15/OZwLLE25itDyEJlBxD8ooM4cQ6pGjuQFgA9GbXIRXaWjjbXL017sfffN3+uLhXVwIJz9OeHZ1VxYdMjv7eKt6uA98LMTZnvRhhRtXX/lBse2IVvaBTj/4uG8fbYaNxFvVY3yEQeW+Tvyx7PAbfxFWQl2cUJ6vg4+zPgt9nfL6hAwUhfXoExvWnjCwS+Gja164t0z0H4ZPWhXYg0K7fJt9nPVZyLYqJAj+a9lhN210eFcAX8DL6y8jv6P4W8ewmXYTdqVSX5g17tBE8iDPPp/m4/QzlADOQlxIxwq/V0OO4YEbbj3hrfLsoZ7wYVuefT7Nx9vaL5YnvmjwgsVaSP+6+5E3/Y/h8YZpMtQLjidWH7tK3Pcct17Qz0rA4V/6mBDmND1AI5VKcw2UV3buUD2gNMVkp3Xh1/c8+pf/QFIJe/MABxhaA29V/EED3B90lNEIjQciJxHbqruB0jeu/p2Xi45/U6z9mMhgFnY2qVWq0b2dGKpvy42D75svO5sQG2NhfRvN4pHiJk81c4GSuqfK0yUD+8S1c3z7J0Sr3aATJ3CoYnmWr6+fgz5udplNjTjkOD+Ewfc68XseTygzcdf9ubibe9P4i0ZOp3QxC9nY8BLgogv0oY/QF/BWBTqhUD/wAmf7Zmh1chVv+cbbTm77m0EmffD7Dbed8FrR/bPoGTa0Kr3abz5W6SLfoPRkfYXx11Yc9fI/bNXndNKHesERT9Tf6idc4lBOrh4UV6sfCe3ABdpFR+sE55/KczKAS7Ru2X2f8PzpDMhs6RvziM0l+MSNgliI53V0GPRjS1w5bQQBbSrZAdrEMCSEjbcd/664Xv+O2CW3VFCKsV/9LDuF0ov4J96tsqCjKxzQSvi/x9uTOO6+uDHm7KOt1Ad2k6bxD6K3r7/td87svp/uWjxx23PeLFn2u5Zv0jPGvWywlZB2E3bXA7lT+yuV3hcc8gVlNzZMV0rPwmz+q59ll/rbcLbL2l/0mx7lF7Tli7EWc8adUOPfx/EfhLXfp53DBDfcfsKp8kT2v4u9VfoCsN/2Ixc07oRwQhj+YPejjn5TGF4o18yGrwztgiOOz5ZghW+UUagrXjgXISPUYY5JBD5FEoPP4RoEJRuNkw14dAA6frBrW8AweLw6d468tvwX5WvL4Y8pFsRFY+PB3kT6UjgpG+Rk2pvcYlqtv+2kZ62/9fiv1qPg0zLi9at7tKC3HtkasNl+oWhOK4TH4/DO8LDrRjvua2FwtbRKft206SohenUv3OtEZqO21oI0HGGYhlH9Gxtuec7ZncjrhWfDrce9VTq6KK8t/ISS+MvhSgTubAX0cdZPAu9dccR/r56kvscqeg/QYk2o85qjtbIn22nRFzjkMcUn0adpa73TgqwunR2zdZ790Xmb15yoL9TrTFbxXHJl43eienSZrB/n+pr33rMvpU38w/gnu++512vD8LPulzN777WolkO74HjiF2tfJg/b7APDO1owOL4Gfo8Guq1IHMQCBgsPXcjE43I38DUrj/h5z68kVvnlLvFAEjNvkrRpCCwcREAdniwC5VhpoGPD8pHQx1kv1dNcnrzlhcs33vqcVz5x6/HfCKKxO0T/1w3WfvjCinzCvJF4J3Dlwf+9Rbz69Va8OkaksrU9jINB47eJ0ccthqan1M4R7D823Pact7Xqt1f6hluOe6/I/pz0LXOb9ZfC7qWaDe3tlw9CU/smAD6PMu8Jk7yHHcj9VvlPO2EfcUAfR13xpRoF8q2+yeOf6iX6qK0O0m7CNvZLbJZPjE98oXirOuth423HHS6vcLhSbFqEvLHcSWFqN+MyNfsb5YW3jcSLXznsv/NV9BW2ziKVwyUhOa+ZjEBx0KGWOCBKpl4vhwgNMKda+WWlEVbiP9zz6Nt+Ykzlvh8eSFwuA4+/aQO5FhLQXC8KESM7xlxjPHbc9NscKk8iBxjH1fWrn/OGoC5XcatyQQxF0AAooJYsgZWOP3OYyIJMFMj15FfqMpmEoXyqimSr7C56HFsPR4+QD8S2eIcdfsoVaD/Uo28B9TgIblCki10lqP5bPai9BU3UryLKJstm+eBJYqcNQJBNbEbRug7slzdzVMVnn5NF2tmVMH7/VL8Rtn71CccG9egf5WHyF6giTh+85xTfEND3nUI/hwNqwWu4wetex92L/eL72vw5wcUmsMc9sgeqyNZp/qOnbPzNFpOF+ib78bBIgSWqhhsCuYzCHDF/iv9hmBSzrT/j3wl81eO3HPfJPZ69+L1heF3RF3C0y7zdptXHHzBRi6+WPNoNMRiU/S7+6xbOqb508RHX6Q9E5uk3LLShXHDgMtnOndvOwH1NDig4zHCZQFw0ccmTtPx6aS8VTHYdzaAkyY+JKP7nvY5Z/Xm0L0v/PcBYEWYnoGyPFk+Lu9a5E7YfM+BO3py4Vr9E29RsgaAnlBrizhMK4i0fH5Ocqbuccfx1mwxDgdaf7OV+iE7cINTw0TOF8tNUMqdo3gjRZEUuT5UPOydKUddvQfaLK8wXBoNowdwFP0z06BBZcfR//eSJW46/Q8bCoVSdUCdPyLHzhQDzLSBKU7yUqFW6o92Evr5gkOOXisRT1t963MVBFH5596MX/aTTE0e85uy5G8YeeL4s9d4S12vnqivE+dqHC4L2qycAsyjbvy1AzCboQ7sJYabik9gvi5zLFx9282No33ORHyNT30q+UEeVxVwXiGL2WMxxTF5AFLUHbZwlWfsloZWvqN28BSMbdo6mV/QZd8Ksvlk9wEcerevM/gvW3zr67A23HP/n8hMUXX0tGeeasfHxl4Rh5Qj5APNb+Xbip7I6tTtef8ex+0yMB9eIy/WKvHO9NqPdhLSN8crK7sX+kcrI+YsOf/n6OH55savJrLIdH/+tfEazFf1QLjjGdm5/g2TdPLPHjfQ84zgrEGZmB5IJIYmnChUXBj/c65gVf5onuqT17gGd0twE2CxFplUNKeOK6FhkjJd0g1bD05vETxorzZfv402fWDFJY2I26dqbHCQ54fCGCYDM0iR7hcV1bipDc8dLaL1Mti/U/usXHXrDbybrfZI6vAnRJtsB2y+fwquy2HibePNtG24d3fL4L4+7RmL233Ll8fGoHj4ezqmsD+tRRZ4P2LMSxHvEUbSXROa5T4zf92IJ66LQWx/qlQpLEDUVphQdf5lM5dsw/SouUTXRLM38OWvK+c/E75e6GTmLD9p7485b78NwaNFTYfl/knwYkIXzcT+X24o/qFbCm+TK2T2VkeqmJavqWzbfvmDxRLxzz5Ew3GuiHu1ViStHSq6cNj4+fpxMGRV9ZicIbhdzul5wBGPBp6X9ARlXtDjsv/31qHbD+luu0P6Y64AoufkvdAZHhwr4wJxT2snLadJECoMr7hLiIagYygWHBO88m8BttUv3ICmAG8REYjggima50lq6T3kgQ9junT9/0TmdfprSDspdhx6owcMteEl3MZNU109lnGBd6NJzXmMONAttHDL21XwMapOPvQ4617CR24h+tii/kK21yyk5snzUzFGc9klPDfrTFta7bj1AyQaz7Wk3IXrkWPCEeGiDRf/hVXSFrpy7/+eeGLvvL6TRvpQIATqmEh2Kt1+uFuA9HfKVQtnsIlQQT9TUy7iihBnA9JM9EHfkDkRfi+Cg4i8K/OceR998HTSZWrEraYw7YZfxb2v/1HRs3zoML62v/+Wxj0gUnp7PXWj+46V3x4sTjueFyXCiHuy8BV6056InXCZFyCTNn3wtu6HKFc8ljbfsbE7Il1Gs/YPO/+z8lTf/0WL4Y+guwWy87cjDZZI71oLFjAD0cVfrRiUmRZuUhSsdqcbk753lstjYKpehzuz1JT2+yBLP9wASMfcPscJfi5jxRA1oOAev5QDaIhf4h0OlGVnrQLN8Ma5GfkdDnmiueBCSHK2VftqXp0G2f62HyFZ/sBt/gNoX1FCFobSz2WB39ofb51QX9vx7CeFhl45L539nurTWD7qjACrubFWyh7O+CRZmvyplO1URO6ejg6avo8Hn6ncPgs/RABkXQhGokgghSZ5/+Wsc96tYzHuJv2hAuwlVWxyYzdgPqNyQ9pjB4Ff8tfBv4fa7/jX2gqvTCHt0ji42KAo+1v+M3Wa12T209ltcNF9axAdWodA6HCoNZA9nvUFtoruhW3BMTNTPT9Uz49QSmOUSo1WyGh9aO+uzUNrjl/MqYXjuymNuuSPtp8QG5gEudwGxIVSEOQkLvTShgaA0pkTalvLAA5ylW/6mDiCIQoA6HNDH2V87SN2oL8QBB4RI2ymk3YQqGnwojp9tK9Xgc8uPvFG/kmgM3e93f/aSi0XeOmvJDnDEToE6fMjsVz/4vjUjUtVpDn1N/4OP7bQNbWUDEEkD6nCBcu3pypXH/OwmbdaPnYjuNf4d298PPdvJiOPrW7LQ1/Q/3AkccBD2sy/2D0WBD6qwL/Y/dPZDIRQXkARXRMiuvsfxP1QLjjh+4Ugchee2NNbZnILJnZP1jS5UovCv9zh2td3wSgWVWL890CIhbdGIvJWpFTwy8Ah9PKknXyJP2gBvMSBUFmrZTm7Qmnz05doSksdBv23iDu1LBVq/mChA44SRhawD9Ns6gX4fppfpSnk+TXGRQWjyKFeg+kBVmQirlY+6LnoGuL0orvkT7Y9SfBuAD6H99ANUpu6AihcV/0owFo5U/pRu6gsU35rOBhWnHfA9Nj0rM/aAKITWTilsl7Vf+YvdhXPCH6uuqi/Um0w/p7MbR4XbD13ajP+evMN5QOU7m2k3oZLNF7DTt3Uq47+r+Kt+ogMgdXBQ9fF0VD+AD8XxT3X8D9WC47c3rz9dkmEvBiML5ROFBgnQx8nnOxC4PtrhIHDZvrr3c371YfNguR+IBzIJi3GpsRGguMZSiahooGk94oZq7BTxoKD+IPFxqcovvgzB9dBBv4qN3XATzaCdFUI9ytjXQMNBpl77QE5KlfWX2tyz/WHwhX69Q2aPY395hbwaVd6SaIW2DrX9omoyBzjcqd8M/CALrocO+lVs2Mp++XHHD+1+5C/wMFwfS5oL0MXXzUsYJo726+e8j/dRqa5FqV9C9wOCg8h/0bCf8e/aYDSAnb6tFOLTBNeYOmj5lsZcBFi9g4XE3zq1HBLc78OvStR3yJTHv5MzVA+NysLzPHw5jIbDSOAc9E7nlkCWI9rCIBsKTcnhL/bee+lbWzYuKwrygMUkjSIjalHGRIH7tpwsVQk0YSFOCLqHN0qTOqwsMch1tQlekU+aa8o2cpj0zXvHyB3Vx3VCPKlvo2+W35Rt7DGlQb0p2h+G6+fOm/cB2NKvMm9R5T07tkXyeuZ4j6w97fTN8qe2Mmj0BWAf7IcM2UwaEMEKjr8sNn658tlL+vqbMPqlWOiNQlf5eB5N6hu9CcLk9kPkIIpo8UNR+Q1pdGhAo8bt8inxBZtDeQ9vlCZ1bexHU7aBKM1XNwZx3EtB7KjUrpD/9Fniq4Z46KUA9avV0+N2NDRXOLbcfOzuMtm/EoFDEmLDxEGoOAILmvsjDqgbUgm4phTTCu4Jfjt3bvWs8Ok3Ja9wTpxVIgV5AHFA/CDeoIaJuIuhRQknXYsauIGzEGd9FoKPPMA1Xxz0cdTlF1VQqkxf4yENR8St3vpqrW+Wv2j7ZQC/v98PPy991i+eEMPf1eiL4bQfOg42/uEOeRXc+f3+dhsmYtpB6NsGWt7m8wD3c97HUTfIUqniq8Izdfx356nGk2jjfFH0+Iemfr74Mffx1hY16mt8pOGIOKDNe4Tsl7CxrfHTfqsbom+pbI+2nyvpqb89kYwsGKvWmPKNBuEIdBTWZyCsDYNx+bnu16w8avUjxlvuB+EBiaX+IX7AkphaTIQoNMvGFEIxnya4tnVQj4gD5mxIF9ABfZy81gXyxIo/KNmOMK895RBCCnAW1Rc091ek/dLLFbsfc8uX2Hc/4V7H3PJNuTL0YfqC9mYh+pwu+7O64NiPmY+Tt0lfFzvW+218PKkPg7euOPb/t3etMXZVVfieM3f6VCxtZ4YpD1tUhLRAOzNtobwMglhNeBiRYtSUABHjDxOj+E78YQw+0R8S+SMxEiQSFDUgjxgaUAq10047FJGBQqEPoEUstPIovcfvW2uvc/Y9c2/n0XvPnal7z9zzrbPPfq1vrb3Pvvuex4YmvDPFWc98iYiP+JND2TOZWOPjt9mXLa2rpekw5/QNj8IYDzXT/00nH32dfdnSHNr+emvyWMnBKzjSLGIv7ImtsJ1c+o/cf4xHw2F8Uudh+mf8VE/OJGnLNquphJjKdSS2ROO0TSabspKaaSWXpE7VZTkSktJ1XcseH9PT5zRj2DaEAbEpSiLyo6NAOgERmyLObCod1NIxLYMhRS6ZOvRlicRmWIf34jSN8wvzGinOtQvysPYwv+nAAlz9gpAlu0NtWVVzmdlVCzS9DGvV58WlelvBUr3uxHE8VJ5V/qwW3pxtx5JLvg3V/jwR9afti7Y/6vt+R8/G25vBNk9avu+J7c3uhp79x69/c5806nMDE/2wWf4/fv0P3f/99o9axuPiaSIzk6Hkb1L/b5b+vg9avzcUfWDUFNkHuePQ9DaUdKa/7EyQFY6X1y1cjA63mA2lckSRcVIwtGmFIVKqsg79vCxDyomin3Uve+IWp2uAohjgmMZ+7fftenXTcAxENXaGUgY2KapdOYiZjekPIhOZUP4tT67MUZTPprD8usGOEV07DNkOqd8hZQmGtQodh/542uTrcVy5bPb7+vfWKrJRcXzFdTTzXbhrTJ7AqMVSNwbRUbkvWn+/PrE62mJ/TbN/FP0Bk42GPnNDiXTbovy/uPlGae7ijfegM29J+0GVwp7eFIvSn+5r4wDltK9ix3yb7RlLcJPFovp/S/zf+DCOhLex9/8JscLxTkmfvSEGg2JyAskpRJJlbHYoPgNDG9rTRw0x63qga+mirxhPAVvFgDtByahjndohbKmdVNG3/2hb6+bY8AP9g/eIRJQP/YgyUWTuMq5OECfDMaIvu+Q8sTEQVc6QsRoMNWUWh/hce8aqP75M7Eva4pVzFm/a4iprKnSc/PfXZ8Qx3jURbVJtWqt/Xtli7B/d1TntA6vAgW/YfFMOax9PyIRrOG4P5Z+5Wsalf66MZu2SL7z78FtaPnUTJTOEnmP1/3xbx6X/GPjN11d73+lWQP/P199w/f0xz5ddxTrm0ZLZuKdxxgETUrbgyxNghSNZ39sOr+O7U9BCfAwpy/KNQ8iimENVUhU31QxhhKdnTGu/go/ZtbiARTPg7CnVUq4dfJ+mTLsaUtZSDFmGykSRnb9w4Ko1YFvNmho5+G2EOeVbif62mE5SJV5zZOVZuVqCtlfb6LcdWV3Q/NY+jbQ4S5OhX4bpbUhNtVZFELMviaOPdi0ZKPTNxu/u2bh76rTp5+P80a/tbY3+yqLjwphpsv2h7x2dPbMulyexZmZruMRvfmZ3w7z9G6F/wxs+QoFzlwz8EX7z83rJ1J+y+T11bqb+I/X/eu0cfbz1de25ms/ihpcy0fT3x1CVYRHvnKztHX//b/kKx64K3gqbVHiHiljDUHecoaiwnVAc+sSkZsQxzEdeS8rli2edNnhYT11MywzCuBigfeQDu6ZYw8a+HSnLYOOQcv7DE7k5vZzU5Usn/INoX0ANXX4qkJYDQWQiBR5zKLJrI6e3MsWVtjgdqBP/DF1axlnI6zPW9GyK8UDZ+zwfJ+3nFT3ZML14J0w5af8wGvRwi/QXLoq0P17+9auO3pOubPQdKcapjxW+Ldb5vaFn+9QPDld/v86i5I6k/avoIY9ZPzFk/dTV0PQ2bIb+7OtSLpECgqHuHd42r08D+3/h/t+o8U+/4imvLZ9wJMnB1ZmJbeAm1vowpaXxZZcWjy3H8U/P6338nzwaQqsYwMvb0Iv5obkMKctg45CyJlEUmYMus/GkLoNRhpKbpmYpLAMfjhmGKnOiwDjNNxztmObDVvITfTktX9qigxLbxbJTdPX49VFX1tlQ/UulB6eX2ns7+vo3oMqWhdl9/Xs7e2afH8XxjcIDWiK6OjS9Dc3uhqQYbAvVRP6JrR2KLNxpuSxHcjhUmeojJ4vBR7l3dnHt8O3BMqo/zJflt7KIqRwlb2Px9wudvYNXF7VKGmMkLkJ/sld0iPr6D0wptX8KFL9Cm+s/pYlm//EzYz7WlP5PRydpZIzgkHJT/N8vHxVIPUD6J+tLkS3BQcYdSn+9pBaJEFo64XhpcFEX3rS3UpRAY8QBHYo7QpkUPcXS9F6cKh5/s3v50N1ULITWMpA5oHNKGI2OSu81pMx0hiIjjSE9mYcNfVk9P0tr9VFryU8BQepyqLKrH56FlEyCYKh7/lbqZAok0Q/bTFnbzjIpE3253nFmlnZoIZKXcZZedUUFKA8J38At3d/o6p39kaP65NkYftNaIvPbflfvpi+jeTiBJK/7Ovuy6ePHmd6Gprch81Trr5xrXLWs/Cj3lkfyi61QjgtSF2SiyiPYPyo939YWn9PVt+mXVkYRiAUO8QHTJdOPjVfdSY/J2fGMs9HpX4Q2w+vAZPX59nLblVDyzQlt/+FNHzkGF+CYf9EGlIm+bMcRqX5IY7o0hmI/lzezL6pvqP1H8P+ctmwmg2sucOzj34RZ4ajsf/szeNNe2YyjijkNRc38xo4RfZk2iW7rXv6vH+RzhP1WMaA2kk4EW43axr5ZRcbGkIL0AId+b6ijptbPbNoGJrM4X86OWzpWmnXOdMBALGULVla9/Hp87PpjIv7XqNR+amffphuKWNI3fUaLnX2Dd5SiqUtA0b3M02j9xeZmd8Mm2h8a8Ar0m6dNKS2eu3jTutHy0PB0oisJdR/RmbW4iAb4P0trRZizZOCBtlJ5JZzl9br1F6C/9Vm2wWTrp3XbNcKBye7/9dqvY52OgzbuGeb5Mw4N6bMqZ+S1dIUD126sRouy1phM9DuW62ymCFFkNxvEbdDru4859uqsoCBNXgb0Qs5SiejLtTUyh059InVyN0BLNs/HahdTN9YuKJWLzfiLHYLF1c10GAfwg8wjUdR2UdfSzRd09fU/cxhFNT0r29e1dHAlXhz3SVT2QmMq9G3uy7VLb4T98WVlY1spXtHVO3hd66/98nX25ebpX7vk5sR2LB1YE5XL5+KkNVS7Bl9nX66duhH2r11yq2J9nX25dnuarb+NdY0a/1o24dj52Af7MG1YpDTqyQH72OVW/3hM4zRVfptgHRKO++KUg/Gl0YI1b+aPh/1WMuBO+P7E0SaKDv3OkrXUlg+Iej2EoaaHR1iZ8A4NhlkpqSRpsUd09RrWqt+P8+W0vJzgp1E51z5r6yHqhxrv4KT3p6gturBr6eNnYTn//lw1E3q3q2fznaUp8Sm4aPc7MNlu44G9V3g3HAX/tLWG5tsfbRvCe1Gu6ew7eencvs2PTQySm6v/O6UCH8RRh9DOJQMD0fS5PfCO3zCJ9SFN3lz9pS7nh1avYZ3mjiqaZWg5GU50/ze9DamoyURfrkeCn0Zly8cx2ev/roCWvbwtOXhgNZvkB/+CG43HUo4MQJoSHLjfx/Qo0r+FC1Ium7viqR1+OUGeQAz44wealdsVp+YSnTmuympnasF9Oq6iiCo755F45xdMmaV1PoMYudpajml55kcaZWW7AiXSl11GB5zpq5/atw9OiiibZtXp02h32FLhjaxsNS8C/W1pWunWrlMHX8rlnFS7x5y+eT8a/L3khTN/8vKu164Cq3gGTrKgnv7GA+2uNlfOVVY7kQC1u9kIEWSNmZ2JTNZ0zGFpNQG3w+xfivqxonFDR98nfs+Hm5VKzXtSOVs0uqADNfXw/VP1Mp1Q0mHq37IBP0dC58I1+xD1uV3rF94SR9GNlUpyOpM0W/98+Xl/yTVzVLu48YEtr53Woh3mdv9/xj/HTkv8Lxl6/9Sdeyq8gAgOxgHbDQ4C7HjaOnUOr7PJKEOTaYI4jj5/zPKnH61t6RDbSgbMpmZfIoOeYDKbj3S8pg7OP3iME1J4jCD3h5XP4/Qz/KXHXZxE5DZS3iHS549LsQnK1uKH1+/8G77Ka6eextntMTyW/L4ZUfl+Pt8iV/2k33UvSLwpSS6/eff6Jy+CbVZhQnYJOvpRVG6YfRw/9fyjJiHjsD++mLwIL/gdVpFuP6ZncK2WOxEmGpmG2XiX9Y/sqCeNQ3/z/9avb3h6QOzu2/Jgkny356X+O1fhJ9QvJZVkmY0J1Sm9vcPQ38YCYqOCcDtC/6/n36ZrveM12+g1XcajSTD+mR4tmXDs2H3wYjRgNhtRbXhjUtF8wtBPj1nxT7uXP/NrxoUwcRkw+xqypb48Ust1ENZvPpKWrsHO7VyFZcmu5yTV5Vf7FMtDA/RbsorptyrsMkYhRT8OstVNlIDljTh+Az/v4Se96A0Utg9ZdwJ3YBDZjju1t0Xlts1JW7TZrQJYxiMa3e2keLR16Z7k2Q9Ne/nfe1biW+ylGCDPgX0WjFb58dof+WjILcCHYIs7O3suX6OrGaOtufB0qUf5NY9X/6yMan8u28w4S9ByydnlNjTkthf7TzsjqhzEzQTRJeiLxzVaf5ZX1f9L0au4ruBhfBG4v9xevmtcZKBMf8ypJdeKG01dTdcf7mF1aHuq/aU6DnvCn0MA9bJJk6atwYWQrkdrOrllbBZuXzv/bgwHHxvW+mEVUnnTkAdVxqB137wz+z5e1D3yw5oVIgIDgYFxM7B7fW837o48C9357EqSLER/PhED1wlYDSnLNKGqy2OHk8l00Ko5JrxZiuLnkHBrFMWb4iT6G27BfOToJQP/GXcjQ8aWMgB/iF75x6K+g3FyLqb0y9CYZbD8fNgYYpWDYN/isiNMwWBHkijCs1VKz+ILwBB85IlSnGzGz2ob5vQMPokTJpOFUAADZpcCqtIqdq8/pfvtt994ARZuy7xBj9nSOJEhv1xEP8Ptgk/NmPGe5WEwUc7CNjBwJDCAn2DaXhwYOj6qHDgRPz4dDZ1morPPEMQr5JK4UsEzSf6Lycd+DA/7S23xfuzviduirXNOH9gZThpHghccWgeulO3Z++oJlQMH34s5wjxMRGZiSgEfiWbgiVI8acA3nH/QV+LSPlwUvKcytbKjc9Hgy8FHDs1vEUcLn3DsWDv/eiytyvMyWDm9JG2Ere24bzP55Ro84XBvnCRnzFvx3JNFkBPqCAwEBgIDgYHAQGCgMQwUflssVkdX6zRDVzFUVmX0an/EYOrqyzyKOQie51a5Mkw2lKuwDQwEBgIDgYHAwGRioNAJxwtr5y/HTOIUWdbAfEN+OnGoP6doHFc8dNVDLwhkLPa/fvyZ2/4ymcgNbQ0MBAYCA4GBwEBgQBko9C6V6GDlKt5ByAmEBu5QdtMLd3EYf0qxIEej6NZjV2z7kcUFDAwEBgIDgYHAQGBgcjFQ2ApH8uz8aZg8XIEVjowhk4m+bCk4D4lK646dF19rUQEDA4GBwEBgIDAQGJh8DBQ24dixq3IBZhWz7A4UUmUrGUSVM+TKB6J3YZZyWbTgufDY8snnW6HFgYHAQGAgMBAYSBko7CcV3P/Me+7dQ0L4KGgGPlGPsv6kIlHpJnqrPU4u7VixfWcaFYTAQGAgMBAYCAwEBiYlA4WtcOAWk6VkyFY1KNuzfIj88FiGlWu7V2xv3Wui2cAQAgOBgcBAYCAwEBhoCAOFTTiSKOHLeqoWM/xbX30ZD2j58XFn7ZA3CTZEy1BIYCAwEBgIDAQGAgMtZaCwCQcuydjK6zfkeg0i/hgMReYKR6l073FnXfM1ORg2gYHAQGAgMBAYCAwcEQwUNuGIytFNmE0c0Ks1ONmwu1UMufiRrJs5fdqqCf6SpSPC8EGJwEBgIDAQGAgMFMlAYROO48/YPoRJxvX48DGiAF3tMMTu2plTZl44u2/r3iIJCHUFBgIDgYHAQGAgMNB8BnTBofn1pDVse3jeBaj0i5hynIe5x1t4y+Mz2P/F8WefdEcUrXknTRiEwEBgIDAQGAgMBAaOGAb+B5nwCpLPLNx7AAAAAElFTkSuQmCC"],["fxFlex","30","width","295","height","295","viewBox","0 0 295 295","fill","none","xmlns","http://www.w3.org/2000/svg",3,"ngClass"],["clip-path","url(#clip0)"],["d","M182.629 183.635C213.842 170.774 228.719 135.046 215.857 103.833C202.996 72.6204 167.268 57.7435 136.055 70.6048C104.843 83.4659 89.966 119.195 102.827 150.407C115.688 181.62 151.417 196.496 182.629 183.635Z",1,"fill-color-0"],["d","M154.81 93.8059C152.146 100.719 149.483 108.164 146.287 115.608C146.287 115.608 146.287 116.672 147.353 116.672H169.191C169.191 116.672 169.191 117.204 169.723 117.736L137.765 153.364C137.233 152.832 137.233 152.301 137.233 151.769L148.418 127.839V125.712H126.047V123.585L153.212 93.8059H154.81Z",1,"fill-color-15"],["d","M158.075 173.411C189.288 160.55 204.164 124.822 191.303 93.6088C178.442 62.3964 142.714 47.5195 111.501 60.3808C80.2885 73.2419 65.4118 108.971 78.2729 140.183C91.1342 171.396 126.863 186.272 158.075 173.411Z",1,"stroke-color-thinest"],["d","M259.352 172.363L85.4595 244.016",1,"stroke-color-thinest"],["d","M122.291 259.352L85.4593 244.016L100.795 207.184",1,"stroke-color-thinest"],["id","clip0"],["width","225.692","height","225.692","transform","translate(0 85.9831) rotate(-22.3941)",1,"fill-color-30"],["fxFlex","30","width","300","height","300","viewBox","0 0 300 300","fill","none","xmlns","http://www.w3.org/2000/svg",3,"ngClass"],["d","M50 237.5V112.5C50 105.625 55.625 100 62.5 100H262.5C269.375 100 275 105.625 275 112.5V237.5C275 244.375 269.375 250 262.5 250H62.5C55.625 250 50 244.375 50 237.5Z",1,"fill-color-0"],["d","M25 212.5V87.5C25 80.625 30.625 75 37.5 75H237.5C244.375 75 250 80.625 250 87.5V212.5C250 219.375 244.375 225 237.5 225H37.5C30.625 225 25 219.375 25 212.5Z",1,"stroke-color"],["d","M293.75 200H275V150H293.75C297.25 150 300 152.75 300 156.25V193.75C300 197.25 297.25 200 293.75 200Z",1,"fill-color-0"],["d","M268.75 175H250V125H268.75C272.25 125 275 127.75 275 131.25V168.75C275 172.25 272.25 175 268.75 175Z",1,"stroke-color"],["d","M137.5 187.5L156.25 150H118.75L137.5 112.5",1,"stroke-color"]],template:function(t,e){if(1&t&&(r.YNc(0,Yi,1,0,"ng-container",0),r.YNc(1,ji,18,5,"ng-template",null,1,r.W1O),r.YNc(3,Vi,15,5,"ng-template",null,2,r.W1O),r.YNc(5,Qi,19,5,"ng-template",null,3,r.W1O),r.YNc(7,Wi,17,5,"ng-template",null,4,r.W1O),r.YNc(9,Ji,13,5,"ng-template",null,5,r.W1O)),2&t){const t=r.MAs(2),i=r.MAs(4),n=r.MAs(6),s=r.MAs(8),o=r.MAs(10);r.Q6J("ngTemplateOutlet",1===e.stepNumber?t:2===e.stepNumber?i:3===e.stepNumber?n:4===e.stepNumber?s:o)}},directives:[U.tP,P.xw,P.yH,P.Wh,U.mk,ue.oO,Z.n5,Z.$j],styles:["svg.small-svg[_ngcontent-%COMP%]{height:50%;min-height:50%;max-width:100%}svg.large-svg[_ngcontent-%COMP%]{height:60%;min-height:60%;max-width:100%}"],data:{animation:[Ni.l]}}),t})();const Ki=["stepper"];function $i(t,e){if(1&t&&r._uU(0),2&t){const t=r.oxw(2);r.Oqu(t.inputFormLabel)}}function tn(t,e){1&t&&(r.TgZ(0,"mat-error"),r._uU(1,"Amount is required."),r.qZA())}function en(t,e){if(1&t&&(r.TgZ(0,"mat-error"),r._uU(1),r.ALo(2,"number"),r.qZA()),2&t){const t=r.oxw(2);r.xp6(1),r.hij("Amount must be greater than or equal to ",r.lcZ(2,1,null==t.serviceInfo||null==t.serviceInfo.limits?null:t.serviceInfo.limits.minimal),".")}}function nn(t,e){if(1&t&&(r.TgZ(0,"mat-error"),r._uU(1),r.ALo(2,"number"),r.qZA()),2&t){const t=r.oxw(2);r.xp6(1),r.hij("Amount must be less than or equal to ",r.lcZ(2,1,null==t.serviceInfo||null==t.serviceInfo.limits?null:t.serviceInfo.limits.maximal),".")}}function rn(t,e){1&t&&(r.TgZ(0,"button",40),r._uU(1,"Next"),r.qZA())}function sn(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"button",41),r.NdJ("click",function(){return r.CHM(t),r.oxw(2).onSwap()}),r._uU(1),r.qZA()}if(2&t){const t=r.oxw(2);r.xp6(1),r.hij("Initiate ",t.swapDirectionCaption,"")}}function on(t,e){if(1&t&&r._uU(0),2&t){const t=r.oxw(3);r.Oqu(t.addressFormLabel)}}function an(t,e){1&t&&(r.TgZ(0,"mat-error"),r._uU(1,"Address is required."),r.qZA())}function ln(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"mat-step",15),r.TgZ(1,"form",16),r.YNc(2,on,1,1,"ng-template",17),r.TgZ(3,"div",42),r.TgZ(4,"mat-radio-group",43),r.NdJ("change",function(e){return r.CHM(t),r.oxw(2).onAddressTypeChange(e)}),r.TgZ(5,"mat-radio-button",44),r._uU(6,"Node Local Address"),r.qZA(),r.TgZ(7,"mat-radio-button",45),r._uU(8,"External Address"),r.qZA(),r.qZA(),r.TgZ(9,"mat-form-field",46),r._UZ(10,"input",47),r.YNc(11,an,2,0,"mat-error",24),r.qZA(),r.qZA(),r.TgZ(12,"div",25),r.TgZ(13,"button",48),r.NdJ("click",function(){return r.CHM(t),r.oxw(2).onSwap()}),r._uU(14),r.qZA(),r.qZA(),r.qZA(),r.qZA()}if(2&t){const t=r.oxw(2);r.Q6J("stepControl",t.addressFormGroup)("editable",t.flgEditable),r.xp6(1),r.Q6J("formGroup",t.addressFormGroup),r.xp6(9),r.Q6J("required","external"===t.addressFormGroup.controls.addressType.value),r.xp6(1),r.Q6J("ngIf",null==t.addressFormGroup.controls.address.errors?null:t.addressFormGroup.controls.address.errors.required),r.xp6(3),r.hij("Initiate ",t.swapDirectionCaption,"")}}function cn(t,e){if(1&t&&r._uU(0),2&t){const t=r.oxw(2);r.hij("",t.swapDirectionCaption," Status")}}function hn(t,e){if(1&t&&(r.TgZ(0,"mat-icon",49),r._uU(1),r.qZA()),2&t){const t=r.oxw(2);r.xp6(1),r.Oqu(t.swapStatus&&null!=t.swapStatus&&t.swapStatus.id?"check":"close")}}function un(t,e){1&t&&r._UZ(0,"div")}function dn(t,e){1&t&&r._UZ(0,"mat-progress-bar",50)}function pn(t,e){if(1&t&&(r.TgZ(0,"h4",51),r._uU(1),r.qZA()),2&t){const t=r.oxw(2);r.xp6(1),r.Oqu(t.swapStatus&&t.swapStatus.error?t.swapDirectionCaption+" failed.":t.swapStatus&&t.swapStatus.id?t.swapDirectionCaption+" request placed successfully. You can check the status of the request on the 'Boltz' menu.":t.swapDirectionCaption+" request placed successfully.")}}function fn(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"button",52),r.NdJ("click",function(){return r.CHM(t),r.oxw(2).onRestart()}),r._uU(1,"Start Again"),r.qZA()}}function mn(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div",3),r.TgZ(1,"div",4),r.TgZ(2,"mat-card-header",5),r.TgZ(3,"div",6),r.TgZ(4,"span",7),r._uU(5),r.qZA(),r.qZA(),r.TgZ(6,"div",8),r.TgZ(7,"button",9),r.NdJ("click",function(){return r.CHM(t),r.oxw().showInfo()}),r._uU(8,"?"),r.qZA(),r.TgZ(9,"button",10),r.NdJ("click",function(){return r.CHM(t),r.oxw().onClose()}),r._uU(10,"X"),r.qZA(),r.qZA(),r.qZA(),r.TgZ(11,"mat-card-content",11),r.TgZ(12,"div",12),r.TgZ(13,"mat-vertical-stepper",13,14),r.NdJ("selectionChange",function(e){return r.CHM(t),r.oxw().stepSelectionChanged(e)}),r.TgZ(15,"mat-step",15),r.TgZ(16,"form",16),r.YNc(17,$i,1,1,"ng-template",17),r.TgZ(18,"div",18),r._UZ(19,"rtl-boltz-service-info",19),r.qZA(),r.TgZ(20,"div",20),r.TgZ(21,"mat-form-field",21),r._UZ(22,"input",22),r.TgZ(23,"mat-hint"),r._uU(24),r.ALo(25,"number"),r.ALo(26,"number"),r.qZA(),r.TgZ(27,"span",23),r._uU(28,"Sats"),r.qZA(),r.YNc(29,tn,2,0,"mat-error",24),r.YNc(30,en,3,3,"mat-error",24),r.YNc(31,nn,3,3,"mat-error",24),r.qZA(),r.qZA(),r.TgZ(32,"div",25),r.YNc(33,rn,2,0,"button",26),r.YNc(34,sn,2,1,"button",27),r.qZA(),r.qZA(),r.qZA(),r.YNc(35,ln,15,6,"mat-step",28),r.TgZ(36,"mat-step",29),r.TgZ(37,"form",16),r.YNc(38,cn,1,1,"ng-template",17),r.TgZ(39,"div",30),r.TgZ(40,"mat-expansion-panel",31),r.TgZ(41,"mat-expansion-panel-header"),r.TgZ(42,"mat-panel-title"),r.TgZ(43,"span",32),r._uU(44),r.YNc(45,hn,2,1,"mat-icon",33),r.qZA(),r.qZA(),r.qZA(),r.YNc(46,un,1,0,"div",34),r.qZA(),r.YNc(47,dn,1,0,"mat-progress-bar",35),r.qZA(),r.YNc(48,pn,2,1,"h4",36),r.TgZ(49,"div",25),r.YNc(50,fn,2,0,"button",37),r.qZA(),r.qZA(),r.qZA(),r.qZA(),r.TgZ(51,"div",38),r.TgZ(52,"button",39),r._uU(53,"Close"),r.qZA(),r.qZA(),r.qZA(),r.qZA(),r.qZA(),r.qZA()}if(2&t){const t=r.oxw(),e=r.MAs(2);r.Q6J("@opacityAnimation",void 0),r.xp6(3),r.Q6J("fxFlex",t.screenSize===t.screenSizeEnum.XS||t.screenSize===t.screenSizeEnum.SM?"83":"91"),r.xp6(2),r.Oqu(t.swapDirectionCaption),r.xp6(1),r.Q6J("fxFlex",t.screenSize===t.screenSizeEnum.XS||t.screenSize===t.screenSizeEnum.SM?"17":"9"),r.xp6(7),r.Q6J("linear",!0),r.xp6(2),r.Q6J("stepControl",t.inputFormGroup)("editable",t.flgEditable),r.xp6(1),r.Q6J("formGroup",t.inputFormGroup),r.xp6(3),r.Q6J("serviceInfo",t.serviceInfo)("direction",t.direction),r.xp6(3),r.Q6J("step",1e3),r.xp6(2),r.AsE("Range: ",r.lcZ(25,30,null==t.serviceInfo||null==t.serviceInfo.limits?null:t.serviceInfo.limits.minimal),"-",r.lcZ(26,32,null==t.serviceInfo||null==t.serviceInfo.limits?null:t.serviceInfo.limits.maximal),""),r.xp6(5),r.Q6J("ngIf",null==t.inputFormGroup||null==t.inputFormGroup.controls||null==t.inputFormGroup.controls.amount||null==t.inputFormGroup.controls.amount.errors?null:t.inputFormGroup.controls.amount.errors.required),r.xp6(1),r.Q6J("ngIf",null==t.inputFormGroup||null==t.inputFormGroup.controls||null==t.inputFormGroup.controls.amount||null==t.inputFormGroup.controls.amount.errors?null:t.inputFormGroup.controls.amount.errors.min),r.xp6(1),r.Q6J("ngIf",null==t.inputFormGroup||null==t.inputFormGroup.controls||null==t.inputFormGroup.controls.amount||null==t.inputFormGroup.controls.amount.errors?null:t.inputFormGroup.controls.amount.errors.max),r.xp6(2),r.Q6J("ngIf",t.direction===t.swapTypeEnum.SWAP_OUT),r.xp6(1),r.Q6J("ngIf",t.direction===t.swapTypeEnum.SWAP_IN),r.xp6(1),r.Q6J("ngIf",t.direction===t.swapTypeEnum.SWAP_OUT),r.xp6(1),r.Q6J("stepControl",t.statusFormGroup),r.xp6(1),r.Q6J("formGroup",t.statusFormGroup),r.xp6(3),r.Q6J("expanded",!!t.swapStatus),r.xp6(4),r.Oqu(t.swapStatus?t.swapStatus.id?t.swapDirectionCaption+" request details":t.swapDirectionCaption+" error details":"Waiting for "+t.swapDirectionCaption+" request..."),r.xp6(1),r.Q6J("ngIf",t.swapStatus),r.xp6(1),r.Q6J("ngIf",!t.swapStatus)("ngIfElse",e),r.xp6(1),r.Q6J("ngIf",!t.swapStatus),r.xp6(1),r.Q6J("ngIf",t.swapStatus),r.xp6(2),r.Q6J("ngIf",t.swapStatus&&(t.swapStatus.error||!t.swapStatus.id)),r.xp6(2),r.Q6J("mat-dialog-close",!1)}}function gn(t,e){if(1&t&&r._UZ(0,"rtl-boltz-swap-status",53),2&t){const t=r.oxw();r.Q6J("swapStatus",t.swapStatus)("direction",t.direction)}}function yn(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"rtl-boltz-swapout-info-graphics",70),r.NdJ("stepNumberChange",function(e){return r.CHM(t),r.oxw(2).stepNumber=e}),r.qZA()}if(2&t){const t=r.oxw(2);r.Q6J("stepNumber",t.stepNumber)("animationDirection",t.animationDirection)}}function bn(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"rtl-boltz-swapin-info-graphics",70),r.NdJ("stepNumberChange",function(e){return r.CHM(t),r.oxw(2).stepNumber=e}),r.qZA()}if(2&t){const t=r.oxw(2);r.Q6J("stepNumber",t.stepNumber)("animationDirection",t.animationDirection)}}const vn=function(t,e){return{"dot-primary":t,"dot-primary-lighter":e}};function _n(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"span",71),r.NdJ("click",function(){const e=r.CHM(t).$implicit;return r.oxw(2).onStepChanged(e)}),r._UZ(1,"p",72),r.qZA()}if(2&t){const t=e.$implicit,i=r.oxw(2);r.xp6(1),r.Q6J("ngClass",r.WLB(1,vn,i.stepNumber===t,i.stepNumber!==t))}}function wn(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"button",73),r.NdJ("click",function(){return r.CHM(t),r.oxw(2).onReadMore()}),r._uU(1,"Read More"),r.qZA()}}function xn(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"button",74),r.NdJ("click",function(){return r.CHM(t),r.oxw(2).onStepChanged(4)}),r._uU(1,"Back"),r.qZA()}}function Cn(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"button",75),r.NdJ("click",function(){r.CHM(t);const e=r.oxw(2);return e.flgShowInfo=!1,e.stepNumber=1}),r._uU(1,"Close"),r.qZA()}}function An(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"button",76),r.NdJ("click",function(){r.CHM(t);const e=r.oxw(2);return e.flgShowInfo=!1,e.stepNumber=1}),r._uU(1,"Close"),r.qZA()}}function Sn(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"button",77),r.NdJ("click",function(){r.CHM(t);const e=r.oxw(2);return e.onStepChanged(e.stepNumber-1)}),r._uU(1,"Back"),r.qZA()}}function En(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"button",78),r.NdJ("click",function(){r.CHM(t);const e=r.oxw(2);return e.onStepChanged(e.stepNumber+1)}),r._uU(1,"Next"),r.qZA()}}const kn=function(){return[1,2,3,4,5]};function Tn(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div",54),r.TgZ(1,"div",18),r.TgZ(2,"mat-card-header",55),r.TgZ(3,"div",56),r._UZ(4,"span",7),r.qZA(),r.TgZ(5,"div",57),r.TgZ(6,"button",58),r.NdJ("click",function(){r.CHM(t);const e=r.oxw();return e.flgShowInfo=!1,e.stepNumber=1}),r._uU(7,"X"),r.qZA(),r.qZA(),r.qZA(),r.TgZ(8,"mat-card-content",59),r.YNc(9,yn,1,2,"rtl-boltz-swapout-info-graphics",60),r.YNc(10,bn,1,2,"rtl-boltz-swapin-info-graphics",60),r.qZA(),r.TgZ(11,"div",61),r.YNc(12,_n,2,4,"span",62),r.qZA(),r.TgZ(13,"div",63),r.YNc(14,wn,2,0,"button",64),r.YNc(15,xn,2,0,"button",65),r.YNc(16,Cn,2,0,"button",66),r.YNc(17,An,2,0,"button",67),r.YNc(18,Sn,2,0,"button",68),r.YNc(19,En,2,0,"button",69),r.qZA(),r.qZA(),r.qZA()}if(2&t){const t=r.oxw();r.Q6J("@opacityAnimation",void 0),r.xp6(9),r.Q6J("ngIf",t.direction===t.swapTypeEnum.SWAP_OUT),r.xp6(1),r.Q6J("ngIf",t.direction===t.swapTypeEnum.SWAP_IN),r.xp6(2),r.Q6J("ngForOf",r.DdM(10,kn)),r.xp6(2),r.Q6J("ngIf",5===t.stepNumber),r.xp6(1),r.Q6J("ngIf",5===t.stepNumber),r.xp6(1),r.Q6J("ngIf",5===t.stepNumber),r.xp6(1),r.Q6J("ngIf",t.stepNumber<5),r.xp6(1),r.Q6J("ngIf",t.stepNumber>1&&t.stepNumber<5),r.xp6(1),r.Q6J("ngIf",t.stepNumber<5)}}let Mn=(()=>{class t{constructor(t,e,i,n,r,s,o,a,l){this.dialogRef=t,this.data=e,this.store=i,this.boltzService=n,this.formBuilder=r,this.decimalPipe=s,this.logger=o,this.router=a,this.commonService=l,this.faInfoCircle=N.sqG,this.serviceInfo={fees:{percentage:null,miner:{normal:null,reverse:null}},limits:{minimal:1e4,maximal:5e7}},this.swapTypeEnum=G.hc,this.direction=G.hc.SWAP_OUT,this.swapDirectionCaption="Swap out",this.swapStatus=null,this.inputFormLabel="Amount to swap out",this.addressFormLabel="Withdrawal Address",this.flgShowInfo=!1,this.stepNumber=1,this.screenSize="",this.screenSizeEnum=G.cu,this.animationDirection="forward",this.flgEditable=!0,this.unSubs=[new h.x,new h.x,new h.x,new h.x,new h.x,new h.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.serviceInfo=this.data.serviceInfo,this.direction=this.data.direction,this.swapDirectionCaption=this.direction===G.hc.SWAP_OUT?"Swap Out":"Swap in",this.inputFormLabel="Amount to "+this.swapDirectionCaption,this.inputFormGroup=this.formBuilder.group({amount:[this.serviceInfo.limits.minimal,[W.kI.required,W.kI.min(this.serviceInfo.limits.minimal),W.kI.max(this.serviceInfo.limits.maximal)]]}),this.addressFormGroup=this.formBuilder.group({addressType:["local",[W.kI.required]],address:[{value:"",disabled:!0}]}),this.statusFormGroup=this.formBuilder.group({}),this.onFormValueChanges()}ngAfterViewInit(){this.direction===G.hc.SWAP_OUT&&this.addressFormGroup.setErrors({Invalid:!0})}onFormValueChanges(){this.direction===G.hc.SWAP_OUT&&this.addressFormGroup.valueChanges.pipe((0,k.R)(this.unSubs[2])).subscribe(t=>{this.addressFormGroup.setErrors({Invalid:!0})})}onAddressTypeChange(t){"external"===t.value?(this.addressFormGroup.controls.address.setValidators([W.kI.required]),this.addressFormGroup.controls.address.markAsTouched(),this.addressFormGroup.controls.address.enable()):(this.addressFormGroup.controls.address.setValidators(null),this.addressFormGroup.controls.address.markAsPristine(),this.addressFormGroup.controls.address.disable(),this.addressFormGroup.controls.address.setValue("")),this.addressFormGroup.setErrors({Invalid:!0})}onSwap(){if(!this.inputFormGroup.controls.amount.value||this.inputFormGroup.controls.amount.value<+this.serviceInfo.limits.minimal||this.inputFormGroup.controls.amount.value>+this.serviceInfo.limits.maximal||this.direction===G.hc.SWAP_OUT&&"external"===this.addressFormGroup.controls.addressType.value&&(!this.addressFormGroup.controls.address.value||""===this.addressFormGroup.controls.address.value.trim()))return!0;this.flgEditable=!1,this.stepper.selected.stepControl.setErrors(null),this.stepper.next(),this.direction===G.hc.SWAP_IN?this.boltzService.swapIn(this.inputFormGroup.controls.amount.value).pipe((0,k.R)(this.unSubs[3])).subscribe({next:t=>{this.swapStatus=t,this.boltzService.listSwaps(),this.flgEditable=!0},error:t=>{this.swapStatus={error:t},this.flgEditable=!0,this.logger.error(t)}}):this.boltzService.swapOut(this.inputFormGroup.controls.amount.value,"external"===this.addressFormGroup.controls.addressType.value?this.addressFormGroup.controls.address.value:"").pipe((0,k.R)(this.unSubs[4])).subscribe({next:t=>{this.swapStatus=t,this.boltzService.listSwaps(),this.flgEditable=!0},error:t=>{this.swapStatus={error:t},this.flgEditable=!0,this.logger.error(t)}})}stepSelectionChanged(t){switch(t.selectedIndex){case 0:this.inputFormLabel="Amount to "+this.swapDirectionCaption,this.addressFormLabel="Withdrawal Address";break;case 1:this.inputFormLabel=this.inputFormGroup.controls.amount.value?this.swapDirectionCaption+" Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.amount.value?this.inputFormGroup.controls.amount.value:0)+" Sats":"Amount to "+this.swapDirectionCaption,this.addressFormLabel="Withdrawal Address";break;default:this.inputFormLabel="Amount to "+this.swapDirectionCaption,this.addressFormLabel="Withdrawal Address"}t.selectedIndex{t.next(null),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(ot.so),r.Y36(ot.WI),r.Y36(a.yh),r.Y36(Ei),r.Y36(W.qu),r.Y36(U.JJ),r.Y36(V.mQ),r.Y36(R.F0),r.Y36(le.v))},t.\u0275cmp=r.Xpm({type:t,selectors:[["rtl-boltz-swap-modal"]],viewQuery:function(t,e){if(1&t&&r.Gf(Ki,5),2&t){let t;r.iGM(t=r.CRH())&&(e.stepper=t.first)}},decls:4,vars:2,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf"],["swapStatusBlock",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch","class","info-graphics-container",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxLayoutAlign","start start",3,"fxFlex"],[1,"page-title"],["fxLayoutAlign","space-between end",3,"fxFlex"],["tabindex","21","mat-button","",1,"btn-close-x","p-0",3,"click"],["tabindex","22","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],[3,"linear","selectionChange"],["stepper",""],[3,"stepControl","editable"],["fxLayout","column","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"my-1",3,"formGroup"],["matStepLabel",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],[3,"serviceInfo","direction"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between center",1,"mt-1"],["fxFlex","48"],["autoFocus","","matInput","","placeholder","Amount","type","number","tabindex","1","formControlName","amount","required","",3,"step"],["matSuffix",""],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","2","type","button","matStepperNext","",4,"ngIf"],["mat-stroked-button","","color","primary","tabindex","3","type","button",3,"click",4,"ngIf"],[3,"stepControl","editable",4,"ngIf"],[3,"stepControl"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"flat-expansion-panel",3,"expanded"],["fxLayoutAlign","start center","fxFlex","100"],["class","ml-1 icon-small",4,"ngIf"],[4,"ngIf","ngIfElse"],["fxFlex","100","color","primary","mode","indeterminate",4,"ngIf"],["fxLayoutAlign","start","class","font-bold-500 mt-2",4,"ngIf"],["mat-flat-button","","color","primary","tabindex","13","type","button",3,"click",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end end"],["mat-stroked-button","","color","primary","tabindex","14","type","button","default","",3,"mat-dialog-close"],["mat-stroked-button","","color","primary","tabindex","2","type","button","matStepperNext",""],["mat-stroked-button","","color","primary","tabindex","3","type","button",3,"click"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mt-1"],["color","primary","name","addressType","formControlName","addressType","fxFlex","100","fxLayoutAlign","space-between stretch",3,"change"],["fxFlex","48","tabindex","8","value","local"],["fxFlex","48","tabindex","9","value","external"],["fxFlex","100",1,"mt-1"],["matInput","","placeholder","Address","tabindex","10","formControlName","address",3,"required"],["mat-stroked-button","","color","primary","tabindex","11","type","button",3,"click"],[1,"ml-1","icon-small"],["fxFlex","100","color","primary","mode","indeterminate"],["fxLayoutAlign","start",1,"font-bold-500","mt-2"],["mat-flat-button","","color","primary","tabindex","13","type","button",3,"click"],["fxLayout","column",3,"swapStatus","direction"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"info-graphics-container"],["fxLayout","row","fxFlex","8","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],["fxFlex","5","fxLayoutAlign","end center"],["tabindex","19","mat-button","",1,"btn-close-x","p-0",3,"click"],["fxLayout","column","fxFlex","70","fxLayoutAlign","space-between center",1,"padding-gap-x-large"],["fxFlex","100",3,"stepNumber","animationDirection","stepNumberChange",4,"ngIf"],["fxLayout","row","fxFlex","10","fxLayoutAlign","center end",1,"padding-gap-x-large","padding-gap-bottom-large"],["fxLayoutAlign","center center","class","dots-stepper-block",3,"click",4,"ngFor","ngForOf"],["fxLayout","row","fxFlex","10","fxLayoutAlign","end end",1,"padding-gap-x-large","padding-gap-bottom-large"],["mat-stroked-button","","class","mr-1","color","primary","tabindex","15","type","button",3,"click",4,"ngIf"],["mat-flat-button","","class","mr-1","color","primary","tabindex","16","type","button",3,"click",4,"ngIf"],["mat-flat-button","","color","primary","tabindex","17","type","button",3,"click",4,"ngIf"],["mat-stroked-button","","class","mr-1","color","primary","tabindex","18","type","button",3,"click",4,"ngIf"],["mat-flat-button","","class","mr-1","color","primary","tabindex","19","type","button",3,"click",4,"ngIf"],["mat-flat-button","","color","primary","tabindex","20","type","button",3,"click",4,"ngIf"],["fxFlex","100",3,"stepNumber","animationDirection","stepNumberChange"],["fxLayoutAlign","center center",1,"dots-stepper-block",3,"click"],[1,"dot","tiny-dot","mr-0",3,"ngClass"],["mat-stroked-button","","color","primary","tabindex","15","type","button",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","16","type","button",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","17","type","button",3,"click"],["mat-stroked-button","","color","primary","tabindex","18","type","button",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","19","type","button",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","20","type","button",3,"click"]],template:function(t,e){1&t&&(r.YNc(0,mn,54,34,"div",0),r.YNc(1,gn,1,2,"ng-template",null,1,r.W1O),r.YNc(3,Tn,20,11,"div",2)),2&t&&(r.Q6J("ngIf",!e.flgShowInfo),r.xp6(3),r.Q6J("ngIf",e.flgShowInfo))},directives:[U.O5,P.xw,P.yH,P.Wh,Z.dk,$.lW,Z.dn,ht.Vq,ht.C0,W._Y,W.JL,W.sg,ht.VY,Ti,J.KE,ut.Nt,W.wV,W.Fj,K.h,W.JJ,W.u,W.Q7,J.bx,J.R9,ki.ib,ki.yz,ki.yK,ot.ZT,J.TO,ht.Ic,he.VQ,he.U0,Mi.Hw,Ze.pW,Ri,U.sg,Hi,Xi,U.mk,ue.oO],pipes:[U.JJ],styles:[".dots-stepper-block[_ngcontent-%COMP%]{width:3rem}.info-graphics-container[_ngcontent-%COMP%]{max-height:60rem;min-height:60rem}"],data:{animation:[_i._]}}),t})();function Ln(t,e){1&t&&r._UZ(0,"mat-progress-bar",32)}function In(t,e){1&t&&(r.TgZ(0,"th",33),r._uU(1," Status "),r.qZA())}function On(t,e){if(1&t&&(r.TgZ(0,"td",34),r._uU(1),r.qZA()),2&t){const t=e.$implicit,i=r.oxw();r.xp6(1),r.Oqu(i.swapStateEnum[t.status])}}function Dn(t,e){1&t&&(r.TgZ(0,"th",33),r._uU(1," Swap ID "),r.qZA())}function Rn(t,e){if(1&t&&(r.TgZ(0,"td",34),r._uU(1),r.qZA()),2&t){const t=e.$implicit;r.xp6(1),r.Oqu(t.id)}}function Nn(t,e){1&t&&(r.TgZ(0,"th",33),r._uU(1," Claim Address "),r.qZA())}function Pn(t,e){if(1&t&&(r.TgZ(0,"td",34),r._uU(1),r.qZA()),2&t){const t=e.$implicit;r.xp6(1),r.Oqu(t.claimAddress)}}function Fn(t,e){1&t&&(r.TgZ(0,"th",35),r._uU(1," Onchain Amount (Sats) "),r.qZA())}function Zn(t,e){if(1&t&&(r.TgZ(0,"td",34),r.TgZ(1,"span",36),r._uU(2),r.ALo(3,"number"),r.qZA(),r.qZA()),2&t){const t=e.$implicit;r.xp6(2),r.Oqu(r.lcZ(3,1,t.onchainAmount))}}function Bn(t,e){1&t&&(r.TgZ(0,"th",33),r._uU(1," Lockup Address "),r.qZA())}function Un(t,e){if(1&t&&(r.TgZ(0,"td",34),r._uU(1),r.qZA()),2&t){const t=e.$implicit;r.xp6(1),r.Oqu(t.lockupAddress)}}function qn(t,e){1&t&&(r.TgZ(0,"th",35),r._uU(1," Expected Amount (Sats) "),r.qZA())}function zn(t,e){if(1&t&&(r.TgZ(0,"td",34),r.TgZ(1,"span",36),r._uU(2),r.ALo(3,"number"),r.qZA(),r.qZA()),2&t){const t=e.$implicit;r.xp6(2),r.Oqu(r.lcZ(3,1,t.expectedAmount))}}function Hn(t,e){1&t&&(r.TgZ(0,"th",35),r._uU(1," Timeout Block Height "),r.qZA())}function Yn(t,e){if(1&t&&(r.TgZ(0,"td",34),r.TgZ(1,"span",36),r._uU(2),r.ALo(3,"number"),r.qZA(),r.qZA()),2&t){const t=e.$implicit;r.xp6(2),r.Oqu(r.lcZ(3,1,t.timeoutBlockHeight))}}function Gn(t,e){1&t&&(r.TgZ(0,"th",35),r._uU(1," Amount (Sats) "),r.qZA())}function jn(t,e){if(1&t&&(r.TgZ(0,"td",34),r.TgZ(1,"span",36),r._uU(2),r.ALo(3,"number"),r.qZA(),r.qZA()),2&t){const t=e.$implicit;r.xp6(2),r.Oqu(r.lcZ(3,1,t.amt))}}function Vn(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"th",37),r.TgZ(1,"div",38),r.TgZ(2,"mat-select",39),r._UZ(3,"mat-select-trigger"),r.TgZ(4,"mat-option",40),r.NdJ("click",function(){return r.CHM(t),r.oxw().onDownloadCSV()}),r._uU(5,"Download CSV"),r.qZA(),r.qZA(),r.qZA(),r.qZA()}}function Qn(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"td",41),r.TgZ(1,"button",42),r.NdJ("click",function(e){const i=r.CHM(t).$implicit;return r.oxw().onSwapClick(i,e)}),r._uU(2,"View Info"),r.qZA(),r.qZA()}}function Wn(t,e){if(1&t&&(r.TgZ(0,"p"),r._uU(1),r.qZA()),2&t){const t=r.oxw(2);r.xp6(1),r.Oqu(t.emptyTableMessage)}}function Jn(t,e){if(1&t&&(r.TgZ(0,"td",43),r.YNc(1,Wn,2,1,"p",44),r.qZA()),2&t){const t=r.oxw();r.xp6(1),r.Q6J("ngIf",!(null!=t.listSwaps&&t.listSwaps.data)||(null==t.listSwaps||null==t.listSwaps.data?null:t.listSwaps.data.length)<1)}}const Xn=function(t){return{"display-none":t}};function Kn(t,e){if(1&t&&r._UZ(0,"tr",45),2&t){const t=r.oxw();r.Q6J("ngClass",r.VKq(1,Xn,(null==t.listSwaps?null:t.listSwaps.data)&&(null==t.listSwaps||null==t.listSwaps.data?null:t.listSwaps.data.length)>0))}}function $n(t,e){1&t&&r._UZ(0,"tr",46)}function tr(t,e){1&t&&r._UZ(0,"tr",47)}const er=function(t){return{"overflow-auto error-border":t,"overflow-auto":!0}},ir=function(){return["no_swap"]};let nr=(()=>{class t{constructor(t,e,i,n){this.logger=t,this.commonService=e,this.store=i,this.boltzService=n,this.selectedSwapType=G.hc.SWAP_OUT,this.swapsData=[],this.flgLoading=[!0],this.emptyTableMessage="No swaps available.",this.swapStateEnum=G.Qw,this.faHistory=N.qO$,this.swapCaption="Swap Out",this.displayedColumns=[],this.flgSticky=!1,this.pageSize=G.IV,this.pageSizeOptions=G.TJ,this.screenSize="",this.screenSizeEnum=G.cu,this.unSubs=[new h.x,new h.x,new h.x],this.screenSize=this.commonService.getScreenSize(),this.setTableColumns()}ngAfterViewInit(){this.swapsData&&this.swapsData.length>0&&this.loadSwapsTable(this.swapsData)}ngOnChanges(t){t.selectedSwapType&&!t.selectedSwapType.firstChange&&this.setTableColumns(),this.swapCaption=this.selectedSwapType===G.hc.SWAP_IN?"Swap In":"Swap Out",this.loadSwapsTable(this.swapsData)}setTableColumns(){this.screenSize===G.cu.XS||this.screenSize===G.cu.SM?(this.flgSticky=!1,this.displayedColumns=this.selectedSwapType===G.hc.SWAP_IN?["status","id","expectedAmount","actions"]:["status","id","onchainAmount","actions"]):this.screenSize===G.cu.MD?(this.flgSticky=!1,this.displayedColumns=this.selectedSwapType===G.hc.SWAP_IN?["status","id","expectedAmount","timeoutBlockHeight","actions"]:["status","id","onchainAmount","timeoutBlockHeight","actions"]):(this.flgSticky=!0,this.displayedColumns=this.selectedSwapType===G.hc.SWAP_IN?["status","id","lockupAddress","expectedAmount","timeoutBlockHeight","actions"]:["status","id","claimAddress","onchainAmount","timeoutBlockHeight","actions"])}applyFilter(t){this.listSwaps&&(this.listSwaps.filter=t.value.trim().toLowerCase())}onSwapClick(t,e){this.boltzService.swapInfo(t.id).pipe((0,k.R)(this.unSubs[1])).subscribe(t=>{this.store.dispatch(new j.wu({data:{type:G.n_.INFORMATION,alertTitle:this.swapCaption+" Status",message:[[{key:"status",value:G.Qw[(t=this.selectedSwapType===G.hc.SWAP_IN?t.swap:t.reverseSwap).status],title:"Status",width:50,type:G.Gi.STRING},{key:"id",value:t.id,title:"ID",width:50,type:G.Gi.STRING}],[{key:"amount",value:t.onchainAmount?t.onchainAmount:t.expectedAmount?t.expectedAmount:0,title:t.onchainAmount?"Onchain Amount (Sats)":t.expectedAmount?"Expected Amount (Sats)":"Amount (Sats)",width:50,type:G.Gi.NUMBER},{key:"timeoutBlockHeight",value:t.timeoutBlockHeight,title:"Timeout Block Height",width:50,type:G.Gi.NUMBER}],[{key:"address",value:t.claimAddress?t.claimAddress:t.lockupAddress?t.lockupAddress:"",title:t.claimAddress?"Claim Address":t.lockupAddress?"Lockup Address":"Address",width:100,type:G.Gi.STRING}],[{key:"invoice",value:t.invoice,title:"Invoice",width:100,type:G.Gi.STRING}],[{key:"privateKey",value:t.privateKey,title:"Private Key",width:100,type:G.Gi.STRING}],[{key:"preimage",value:t.preimage,title:"Preimage",width:100,type:G.Gi.STRING}],[{key:"redeemScript",value:t.redeemScript,title:"Redeem Script",width:100,type:G.Gi.STRING}],[{key:"lockupTransactionId",value:t.lockupTransactionId,title:"Lockup Transaction ID",width:50,type:G.Gi.STRING},{key:"transactionId",value:t.claimTransactionId?t.claimTransactionId:t.refundTransactionId?t.refundTransactionId:"",title:t.claimTransactionId?"Claim Transaction ID":t.refundTransactionId?"Refund Transaction ID":"Transaction ID",width:50,type:G.Gi.STRING}]],openedBy:"SWAP"}}))})}loadSwapsTable(t){this.listSwaps=new Fe.by(t?[...t]:[]),this.listSwaps.sort=this.sort,this.listSwaps.sortingDataAccessor=(t,e)=>t[e]&&isNaN(t[e])?t[e].toLocaleLowerCase():t[e]?+t[e]:null,this.listSwaps.filterPredicate=(t,e)=>JSON.stringify(t).toLowerCase().includes(e),this.paginator&&this.paginator.firstPage(),this.listSwaps.paginator=this.paginator,this.logger.info(this.listSwaps)}onDownloadCSV(){this.listSwaps.data&&this.listSwaps.data.length>0&&this.commonService.downloadFile(this.listSwaps.data,this.selectedSwapType===G.hc.SWAP_IN?"Swap in":"Swap out")}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(V.mQ),r.Y36(le.v),r.Y36(a.yh),r.Y36(Ei))},t.\u0275cmp=r.Xpm({type:t,selectors:[["rtl-boltz-swaps"]],viewQuery:function(t,e){if(1&t&&(r.Gf(Pe.YE,5),r.Gf(Ne.NW,5)),2&t){let t;r.iGM(t=r.CRH())&&(e.sort=t.first),r.iGM(t=r.CRH())&&(e.paginator=t.first)}},inputs:{selectedSwapType:"selectedSwapType",swapsData:"swapsData",flgLoading:"flgLoading",emptyTableMessage:"emptyTableMessage"},features:[r._Bn([{provide:Ne.ye,useValue:(0,G.pt)("Swaps")}]),r.TTD],decls:46,vars:15,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start start",1,"card-content-gap"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch","fxFlex","100",1,"page-sub-title-container","w-100"],["fxFlex","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"keyup"],["fxLayout","row","fxLayoutAlign","start center",1,"w-100"],["fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","status"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","id"],["matColumnDef","claimAddress"],["matColumnDef","onchainAmount"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","lockupAddress"],["matColumnDef","expectedAmount"],["matColumnDef","timeoutBlockHeight"],["matColumnDef","amt"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-3","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_swap"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,e){1&t&&(r.TgZ(0,"div",0),r.TgZ(1,"div",1),r.TgZ(2,"div",2),r._UZ(3,"fa-icon",3),r.TgZ(4,"span",4),r._uU(5),r.qZA(),r.qZA(),r.TgZ(6,"mat-form-field",5),r.TgZ(7,"input",6),r.NdJ("keyup",function(t){return e.applyFilter(t.target)}),r.qZA(),r.qZA(),r.qZA(),r.TgZ(8,"div",7),r.TgZ(9,"div",8),r.YNc(10,Ln,1,0,"mat-progress-bar",9),r.TgZ(11,"table",10,11),r.ynx(13,12),r.YNc(14,In,2,0,"th",13),r.YNc(15,On,2,1,"td",14),r.BQk(),r.ynx(16,15),r.YNc(17,Dn,2,0,"th",13),r.YNc(18,Rn,2,1,"td",14),r.BQk(),r.ynx(19,16),r.YNc(20,Nn,2,0,"th",13),r.YNc(21,Pn,2,1,"td",14),r.BQk(),r.ynx(22,17),r.YNc(23,Fn,2,0,"th",18),r.YNc(24,Zn,4,3,"td",14),r.BQk(),r.ynx(25,19),r.YNc(26,Bn,2,0,"th",13),r.YNc(27,Un,2,1,"td",14),r.BQk(),r.ynx(28,20),r.YNc(29,qn,2,0,"th",18),r.YNc(30,zn,4,3,"td",14),r.BQk(),r.ynx(31,21),r.YNc(32,Hn,2,0,"th",18),r.YNc(33,Yn,4,3,"td",14),r.BQk(),r.ynx(34,22),r.YNc(35,Gn,2,0,"th",18),r.YNc(36,jn,4,3,"td",14),r.BQk(),r.ynx(37,23),r.YNc(38,Vn,6,0,"th",24),r.YNc(39,Qn,3,0,"td",25),r.BQk(),r.ynx(40,26),r.YNc(41,Jn,2,1,"td",27),r.BQk(),r.YNc(42,Kn,1,3,"tr",28),r.YNc(43,$n,1,0,"tr",29),r.YNc(44,tr,1,0,"tr",30),r.qZA(),r._UZ(45,"mat-paginator",31),r.qZA(),r.qZA(),r.qZA()),2&t&&(r.xp6(3),r.Q6J("icon",e.faHistory),r.xp6(2),r.hij("",e.swapCaption," History"),r.xp6(5),r.Q6J("ngIf",!0===e.flgLoading[0]),r.xp6(1),r.Q6J("dataSource",e.listSwaps)("ngClass",r.VKq(12,er,"error"===e.flgLoading[0])),r.xp6(31),r.Q6J("matFooterRowDef",r.DdM(14,ir)),r.xp6(1),r.Q6J("matHeaderRowDef",e.displayedColumns)("matHeaderRowDefSticky",e.flgSticky),r.xp6(1),r.Q6J("matRowDefColumns",e.displayedColumns),r.xp6(1),r.Q6J("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)("showFirstLastButtons",e.screenSize!==e.screenSizeEnum.XS))},directives:[P.xw,P.yH,P.Wh,F.BN,J.KE,ut.Nt,Q.$V,U.O5,Fe.BZ,Pe.YE,U.mk,ue.oO,Fe.w1,Fe.fO,Fe.Dz,Fe.mD,Fe.Ke,Fe.as,Fe.nj,Ne.NW,Ze.pW,Fe.ge,Pe.nU,Fe.ev,X.gD,X.$L,tt.ey,$.lW,Fe.yh,Fe.Q2,Fe.XQ,Fe.Gk],pipes:[U.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),t})();const rr=function(t){return["../",t]};function sr(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div",15),r.NdJ("click",function(){const e=r.CHM(t).$implicit;return r.oxw().onSelectedIndexChange(e)}),r._uU(1),r.qZA()}if(2&t){const t=e.$implicit,i=r.oxw();r.Q6J("active",i.activeTab.link===t.link)("routerLink",r.VKq(3,rr,t.link)),r.xp6(1),r.Oqu(t.name)}}let or=(()=>{class t{constructor(t,e,i){this.router=t,this.store=e,this.boltzService=i,this.swapTypeEnum=G.hc,this.selectedSwapType=G.hc.SWAP_OUT,this.swaps={},this.swapsData=[],this.emptyTableMessage="No swap data available.",this.flgLoading=[!0],this.links=[{link:"swapout",name:"Swap Out"},{link:"swapin",name:"Swap In"}],this.activeTab=this.links[0],this.unSubs=[new h.x,new h.x,new h.x,new h.x]}ngOnInit(){this.boltzService.listSwaps();const t=this.links.find(t=>this.router.url.includes(t.link));this.activeTab=t||this.links[0],this.selectedSwapType=t&&"swapin"===t.link?G.hc.SWAP_IN:G.hc.SWAP_OUT,this.router.events.pipe((0,k.R)(this.unSubs[0]),(0,A.h)(t=>t instanceof R.Av)).subscribe(t=>{const e=this.links.find(e=>t.urlAfterRedirects.includes(e.link));this.activeTab=e||this.links[0],this.selectedSwapType=e&&"swapin"===e.link?G.hc.SWAP_IN:G.hc.SWAP_OUT}),this.boltzService.swapsChanged.pipe((0,k.R)(this.unSubs[1])).subscribe({next:t=>{this.swaps=t,this.swapsData=this.selectedSwapType===G.hc.SWAP_IN?t.swaps:t.reverseSwaps,this.flgLoading[0]=!1},error:t=>{this.flgLoading[0]="error",this.emptyTableMessage=t.message?t.message:"No swap "+(this.selectedSwapType===G.hc.SWAP_IN?"in":"out")+" available."}})}onSelectedIndexChange(t){"swapin"===t.link?(this.selectedSwapType=G.hc.SWAP_IN,this.swapsData=this.swaps.swaps):(this.selectedSwapType=G.hc.SWAP_OUT,this.swapsData=this.swaps.reverseSwaps)}onSwap(t){this.boltzService.serviceInfo().pipe((0,k.R)(this.unSubs[2])).subscribe(e=>{this.store.dispatch(new j.wu({data:{serviceInfo:e,direction:t,component:Mn}}))})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(R.F0),r.Y36(a.yh),r.Y36(Ei))},t.\u0275cmp=r.Xpm({type:t,selectors:[["rtl-boltz-root"]],decls:18,vars:6,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],["viewBox","0 0 78 78","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",1,"botlz-icon-sm","mr-1"],["id","Logo","stroke","none","stroke-width","1","fill","none","fill-rule","evenodd"],["id","Group"],["id","Oval","cx","39","cy","39","r","37.5",1,"boltz-icon"],["d","M36.4583326,43.7755404 L40.53965,35.2316544 L39.4324865,35.2316544 L46.0754873,17.6071752 C46.292579,17.0204094 46.3287609,16.5159331 46.1840331,16.0937464 C46.0393053,15.671561 45.7860319,15.3674444 45.4242131,15.1813966 C45.0623942,14.9953487 44.6535376,14.9524146 44.1976433,15.0525945 C43.7417511,15.1527743 43.3256596,15.4461573 42.9493689,15.9327433 L22.6078557,40.7701025 C22.2026186,41.2710003 22,41.7575877 22,42.2298646 C22,42.6735173 22.1592003,43.0420366 22.477601,43.3354226 C22.7960017,43.6288058 23.1940025,43.7755404 23.6716036,43.7755404 L36.4583326,43.7755404 Z","id","Path",1,"boltz-icon-fill"],["d","M44.4883879,63.7755404 L48.8604707,55.165009 L47.6744296,55.165009 L54.7906978,37.4030526 C55.0232558,36.8117097 55.0620155,36.3032983 54.9069768,35.8778185 C54.7519381,35.4523399 54.4806208,35.1458511 54.0930248,34.958352 C53.7054289,34.7708528 53.2674441,34.7275839 52.7790706,34.8285452 C52.2906992,34.9295065 51.8449641,35.2251779 51.4418653,35.7155595 L29.6511611,60.746659 C29.2170537,61.251464 29,61.7418469 29,62.2178078 C29,62.6649211 29.1705423,63.036315 29.5116268,63.3319895 C29.8527113,63.6276613 30.2790669,63.7755404 30.7906936,63.7755404 L44.4883879,63.7755404 Z","id","Path-Copy","transform","translate(42.000000, 49.275540) rotate(-180.000000) translate(-42.000000, -49.275540) ",1,"boltz-icon-fill"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start start",1,"padding-gap-x-large","mt-1"],["mat-flat-button","","color","primary","type","button","tabindex","1",3,"click"],["fxLayout","row","fxFlex","100",3,"selectedSwapType","swapsData","flgLoading","emptyTableMessage"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(t,e){1&t&&(r.TgZ(0,"div",0),r.O4$(),r.TgZ(1,"svg",1),r.TgZ(2,"g",2),r.TgZ(3,"g",3),r._UZ(4,"circle",4),r._UZ(5,"path",5),r._UZ(6,"path",6),r.qZA(),r.qZA(),r.qZA(),r.kcU(),r.TgZ(7,"span",7),r._uU(8,"Boltz"),r.qZA(),r.qZA(),r.TgZ(9,"div",8),r.TgZ(10,"mat-card"),r.TgZ(11,"mat-card-content",9),r.TgZ(12,"nav",10),r.YNc(13,sr,2,5,"div",11),r.qZA(),r.TgZ(14,"div",12),r.TgZ(15,"button",13),r.NdJ("click",function(){return e.onSwap(e.selectedSwapType)}),r._uU(16),r.qZA(),r.qZA(),r._UZ(17,"rtl-boltz-swaps",14),r.qZA(),r.qZA(),r.qZA()),2&t&&(r.xp6(13),r.Q6J("ngForOf",e.links),r.xp6(3),r.hij("Start ",e.activeTab.name,""),r.xp6(1),r.Q6J("selectedSwapType",e.selectedSwapType)("swapsData",e.swapsData)("flgLoading",e.flgLoading)("emptyTableMessage",e.emptyTableMessage))},directives:[P.xw,P.Wh,Z.a8,Z.dn,P.yH,B.BU,U.sg,$.lW,nr,B.Nj,R.rH],styles:[""]}),t})();class ar{constructor(t){this.help=t}}function lr(t,e){if(1&t&&(r.TgZ(0,"mat-expansion-panel",8),r.TgZ(1,"mat-expansion-panel-header"),r.TgZ(2,"mat-panel-title"),r._uU(3),r.qZA(),r.qZA(),r.TgZ(4,"mat-panel-description",9),r._UZ(5,"span",10),r.TgZ(6,"a",11),r._uU(7),r.qZA(),r.qZA(),r.qZA()),2&t){const t=r.oxw().$implicit,e=r.oxw();r.xp6(3),r.Oqu(t.help.question),r.xp6(2),r.Q6J("innerHTML",t.help.answer,r.oJD),r.xp6(1),r.Q6J("routerLink",e.flgLoggedIn?e.LNPLink+t.help.link:"/login"),r.xp6(1),r.Oqu(e.flgLoggedIn?t.help.linkCaption:"Login to go to the page")}}function cr(t,e){if(1&t&&(r.TgZ(0,"div",6),r.YNc(1,lr,8,4,"mat-expansion-panel",7),r.qZA()),2&t){const t=e.$implicit,i=r.oxw();r.xp6(1),r.Q6J("ngIf","ALL"===t.help.lnImplementation||t.help.lnImplementation===i.selNode.lnImplementation)}}let hr=(()=>{class t{constructor(t,e){this.store=t,this.sessionService=e,this.helpTopics=[],this.faQuestion=N.Psp,this.LNPLink="/lnd/",this.flgLoggedIn=!1,this.unSubs=[new h.x,new h.x,new h.x,new h.x],this.helpTopics.push(new ar({question:"Getting started",answer:'Funding your node is the first step to get started.\nGo to the "On-chain" page of the app:\n1. Generate a new address on the "Recieve" tab.\n2. Send funds to the address.\n3. Wait for the balance to be confirmed on-chain before proceeding further.\n3. Connecting with network peers and opening channels is next.\n',link:"onchain",linkCaption:"On-Chain page",lnImplementation:"ALL"})),this.helpTopics.push(new ar({question:"Connect with peers",answer:'Connect with network peers to open channels with them.\nGo to "Peer/Channels" page under the "Lightning" menu :\n1. Get the peer pubkey and host address in the pubkey@ip:port format.\n2. On the "Peers" enter the peer address and connect.\n3. Once the peer is connected, you can open channel with the peer.\n4. A variety of actions can be performed on the connected peers page for each peer:\n a. View Info - View the peer details.\n b. Open Channel - Open channel with the peer.\n c. Disconnect - Disconnect from the peer.\n',link:"peerschannels",linkCaption:"Peers/Channels page",lnImplementation:"ALL"})),this.helpTopics.push(new ar({question:"Opening Channels",answer:'Open channels with a connected network peer.\nGo to "Peer/Channels" page under the "Lightning" menu:\n1. On the "Channels" section, select the alias of the connected peer from the drop-down\n2. Specify the amount to commit to the channel and click on "Open Channel".\n3. There are a variety of options available while opening a channel. \n a. Private Channel - When this option is selected, a private channel is opened with the peer. \n b. Priority (advanced option) - Specify either Target confirmation Block or Fee in Sat/vByte. \n c. Spend Unconfirmd Output (advanced option) - Allow channels to be opened with unconfirmed UTXOs.\n4. Track the pending open channels under the "Pending" tab . \n5. Wait for the channel to be confirmed. Only a confimed channel can be used for payments or routing. \n',link:"peerschannels",linkCaption:"Peers/Channels page",lnImplementation:"ALL"})),this.helpTopics.push(new ar({question:"Channel Management",answer:'Channel maintenance and balance score.\nGo to "Peer/Channels" page under the "Lightning" menu:\n1. A variety of actions can be perfomed on the open channels under the "Open" tab, with the "Actions" button:\n a. View Info - View the channel details.\n b. View Remote Fee - View the fee policy on the channel of the remote peer.\n c. Update Fee Policy - Modify the fee policy on the channel.\n d. Close Channel - Close the channel.\n2. Balance Score is a "balancedness" metric score for the channel. \n a. It helps measure how balanced the remote and local balances are, on a channel.\n b. A perfectly balanced channel has a score of one, where as a completely lopsided one has a score of zero.\n c. The formula for calculating the score is "1 - abs((local bal - remote bal)/total bal)".\n',link:"peerschannels",linkCaption:"Peers/Channels page",lnImplementation:"ALL"})),this.helpTopics.push(new ar({question:"Lightning Transactions - Payments",answer:'Sending Payments from your node.\nGo to the "Transactions" page under the "Lightning" menu :\nPayments tab is for making payments via your node\n 1. Input a non-expired lightning invoice (Bolt11 format) in the "Payment request" field and click on "Send Payment" to send.\n 2. Advanced option # 1 (LND only) - Specify a limit on the routing fee which you are willing to pay, for the payment.\n 3. Advanced option # 2 (LND only) - Specify the outgoing channel which you want the payment to go through.\n',link:"transactions",linkCaption:"Transactions page",lnImplementation:"ALL"})),this.helpTopics.push(new ar({question:"Lightning Transactions - Invoices",answer:'Receiving Payments on your node.\nGo to the "Transactions" page under the "Lightning" menu :\nInvoices tab is for receiving payments on your node.\n 1. Memo - Description you want to provide on the invoice.\n 2. Expiry - The time period, after which the invoice will be invalid.\n 3. Private Routing Hints - Generate an invoice with routing hints for private channels.\n',link:"transactions",linkCaption:"Transactions page",lnImplementation:"ALL"})),this.helpTopics.push(new ar({question:"Lightning Transactions - Query Route",answer:'Querying Payment Routes.\nGo to the "Transactions" page under the "Lightning" menu :\nQuery Routes tab is for querying a potential path to a node and a routing fee estimate for a payment amount.\n 1. Destination Pubkey - Pubkey of the node, you want to send the payment to.\n 2. Amount - Amount in Sats, which you want to send to the node.\n',link:"transactions",linkCaption:"Transactions page",lnImplementation:"ALL"})),this.helpTopics.push(new ar({question:"Channel Backups",answer:'Channel Backups are important to ensure that you have means to recover funds in case of node failures.\nBackup folder location can be customized in the RTL config file with the channelBackupPath field.\nRTL automatically creates all channel backup on server startup, as well as everytime a channel is opened or closed\nYou can verify the all channel backup file by clicking on "Verify All" Button on the backup page.\nYou can also backup each channel individually and verify them.\n** Keep taking backups of your channels regularly and store them in redundant locations **.\n',link:"backup",linkCaption:"Channel Backups",lnImplementation:"LND"})),this.helpTopics.push(new ar({question:"Channel Restore",answer:'Channel Restore is used to recover funds from the channel backup files in case of node failures.\nFollow the below steps to perform fund restoration.\n\nPrerequisite:\n1. The node has been restored with the LND recovery seed.\n2. RTL generated channel backup file/s is available (all channel backup file is channel-all.bak).\n\nRecovery:\n1. Create a restore folder in your folder backup location, as specified in the RTL config file.\n2. Place the channel backup file in the restore folder.\n3. Go to the "Restore" tab under the "Backup" page of RTL.\n4. RTL will list the options to restore funds from the all channel file or individual channel backup file.\n5. Click on the Restore icon on the grid to restore the funds.\n6. Once the restore function is executed successfully, RTL will rename the backup file and it will not be accessible from the UI.\n7. Restore function will force close the channels and recover the funds from them.\n8. The pending close channels can be viewed under the "Pending" tab on the "Peer/Channels" page.\n9. Once the channel is closed, the corresponding pending on-chain transactions can be viewed on the "On-Chain" page.\n10. Once the transactions are confirmed, the channels funds will be restored to your LND Wallet.\n',link:"backup",linkCaption:"Channel Backups",lnImplementation:"LND"})),this.helpTopics.push(new ar({question:"Forwarding History",answer:'Transactions routed by the node.\nGo to "Routing" page under the "Lightning" menu :\nTransactions routed by the node are listed on this page along with channels and the fee earned by transaction.\n',link:"routing",linkCaption:"Forwarding History",lnImplementation:"ALL"})),this.helpTopics.push(new ar({question:"Graph Lookup",answer:'Querying your node graph for network node and channel information.\nGo to "Graph Lookup" page under the "Lightning" menu :\nEach node maintains a network graph for the information on all the nodes and channels on the network.\nYou can lookup information on nodes and channels from your graph:\n 1. Node Lookup - Enter the pubkey to perform the lookup.\n 2. Channel Lookup - Enter the short channel ID to perform the lookup.\n',link:"lookups",linkCaption:"Graph Lookup page",lnImplementation:"ALL"})),this.helpTopics.push(new ar({question:"Settings",answer:'RTL Offers certain customizations on the UI to personalize your experience on the app\nGo to "Settings" page to access the customization options.\nNode Layout Options\n 1. User Persona - Two options are available to change the dashboard based on the persona.\n 2. Currency Unit - You can choose your preferred fiat currency, to view the onchain and channel balances in the choosen fiat currency.\n 3. Default Node - If you are managing multiple nodes via RTL UI, you can select the default node to load upon login.\nOther Customizations include day and night mode and a choice of color themes to select from.\n',lnImplementation:"ALL"}))}ngOnInit(){this.store.select("root").pipe((0,k.R)(this.unSubs[0])).subscribe(t=>{switch(this.selNode=t.selNode,this.selNode.lnImplementation.toUpperCase()){case"CLT":this.LNPLink="/cl/";break;case"ECL":this.LNPLink="/ecl/";break;default:this.LNPLink="/lnd/"}}),this.sessionService.watchSession().pipe((0,k.R)(this.unSubs[1])).subscribe(t=>{this.flgLoggedIn=!!t.token}),this.sessionService.getItem("token")&&(this.flgLoggedIn=!0)}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(a.yh),r.Y36(It.m))},t.\u0275cmp=r.Xpm({type:t,selectors:[["rtl-help"]],decls:8,vars:2,consts:[["fxLayout","column","fxFlex","100"],["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start",1,"padding-gap-x"],["fxFlex","100",4,"ngFor","ngForOf"],["fxFlex","100"],["class","flat-expansion-panel help-expansion mb-2px",4,"ngIf"],[1,"flat-expansion-panel","help-expansion","mb-2px"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start"],[1,"pre-wrap",3,"innerHTML"],[1,"mt-2",3,"routerLink"]],template:function(t,e){1&t&&(r.TgZ(0,"div",0),r.TgZ(1,"div",1),r._UZ(2,"fa-icon",2),r.TgZ(3,"span",3),r._uU(4,"Help"),r.qZA(),r.qZA(),r.TgZ(5,"div",4),r.TgZ(6,"div",0),r.YNc(7,cr,2,1,"div",5),r.qZA(),r.qZA(),r.qZA()),2&t&&(r.xp6(2),r.Q6J("icon",e.faQuestion),r.xp6(5),r.Q6J("ngForOf",e.helpTopics))},directives:[P.xw,P.yH,P.Wh,F.BN,U.sg,U.O5,ki.ib,ki.yz,ki.yK,ki.u4,R.yS],styles:[".mat-card-content[_ngcontent-%COMP%]{margin-bottom:4px}"]}),t})();function ur(t,e){1&t&&(r.TgZ(0,"mat-error"),r._uU(1,"Token is required."),r.qZA())}let dr=(()=>{class t{constructor(t,e){this.dialogRef=t,this.store=e,this.faUserClock=N.hnx,this.token=""}onClose(){this.dialogRef.close(null)}onVerifyToken(){if(!this.token)return!0;this.dialogRef.close(),this.store.dispatch(new j.YY({twoFAToken:this.token}))}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(ot.so),r.Y36(a.yh))},t.\u0275cmp=r.Xpm({type:t,selectors:[["rtl-login-token"]],decls:17,vars:2,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],["fxLayout","row",1,"padding-gap-x-large"],["fxLayout","column","fxFlex","100",3,"ngSubmit"],["tokenForm","ngForm"],["autoFocus","","matInput","","placeholder","Token","type","text","id","token","name","token","tabindex","2","required","",3,"ngModel","ngModelChange"],[4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-1"],["mat-flat-button","","color","primary","tabindex","4","type","submit"]],template:function(t,e){1&t&&(r.TgZ(0,"div",0),r.TgZ(1,"div",1),r.TgZ(2,"mat-card-header",2),r.TgZ(3,"div",3),r.TgZ(4,"span",4),r._uU(5,"Two Factor Token"),r.qZA(),r.qZA(),r.TgZ(6,"button",5),r.NdJ("click",function(){return e.onClose()}),r._uU(7,"X"),r.qZA(),r.qZA(),r.TgZ(8,"mat-card-content",6),r.TgZ(9,"form",7,8),r.NdJ("ngSubmit",function(){return e.onVerifyToken()}),r.TgZ(11,"mat-form-field"),r.TgZ(12,"input",9),r.NdJ("ngModelChange",function(t){return e.token=t}),r.qZA(),r.YNc(13,ur,2,0,"mat-error",10),r.qZA(),r.TgZ(14,"div",11),r.TgZ(15,"button",12),r._uU(16,"Verify Token"),r.qZA(),r.qZA(),r.qZA(),r.qZA(),r.qZA(),r.qZA()),2&t&&(r.xp6(12),r.Q6J("ngModel",e.token),r.xp6(1),r.Q6J("ngIf",!e.token))},directives:[P.xw,P.Wh,P.yH,Z.dk,$.lW,Z.dn,W._Y,W.JL,W.F,J.KE,ut.Nt,W.Fj,K.h,W.Q7,W.JJ,W.On,U.O5,J.TO],styles:[""]}),t})();function pr(t,e){1&t&&(r.TgZ(0,"mat-error"),r._uU(1,"Password is required."),r.qZA())}function fr(t,e){if(1&t&&(r.TgZ(0,"p",20),r.TgZ(1,"mat-icon",21),r._uU(2,"close"),r.qZA(),r._uU(3),r.qZA()),2&t){const t=r.oxw();r.xp6(3),r.hij(" ",t.loginErrorMessage," ")}}const mr=function(t){return{"padding-gap-large":t}},gr=function(t,e){return{"font-size-200":t,"font-size-300":e}};let yr=(()=>{class t{constructor(t,e,i,n){this.logger=t,this.store=e,this.rtlEffects=i,this.commonService=n,this.faUnlockAlt=N.B$L,this.password="",this.rtlSSO=0,this.rtlCookiePath="",this.accessKey="",this.flgShow=!1,this.screenSize="",this.screenSizeEnum=G.cu,this.loginErrorMessage="",this.apisCallStatus=null,this.apiCallStatusEnum=G.Bn,this.unSubs=[new h.x,new h.x,new h.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.store.select("root").pipe((0,k.R)(this.unSubs[0])).subscribe(t=>{this.loginErrorMessage="",this.apisCallStatus=t.apisCallStatus,t.apisCallStatus.Login.status===G.Bn.ERROR&&(this.loginErrorMessage=this.loginErrorMessage+("object"==typeof this.apisCallStatus.Login.message?JSON.stringify(this.apisCallStatus.Login.message):this.apisCallStatus.Login.message),this.logger.error(this.apisCallStatus.Login.message)),t.apisCallStatus.IsAuthorized.status===G.Bn.ERROR&&(this.loginErrorMessage=this.loginErrorMessage+("object"==typeof this.apisCallStatus.IsAuthorized.message?JSON.stringify(this.apisCallStatus.IsAuthorized.message):this.apisCallStatus.IsAuthorized.message),this.logger.error(this.apisCallStatus.IsAuthorized.message)),this.selNode=t.selNode,this.appConfig=t.appConfig,this.logger.info(t)})}onLogin(){if(!this.password)return!0;this.loginErrorMessage="",this.appConfig.enable2FA?(this.store.dispatch(new j.wu({maxWidth:"35rem",data:{component:dr}})),this.rtlEffects.closeAlert.pipe((0,st.q)(1)).subscribe(t=>{t&&this.store.dispatch(new j.m3({password:rt(this.password),defaultPassword:G.kO.includes(this.password.toLowerCase()),twoFAToken:t.twoFAToken}))})):this.store.dispatch(new j.m3({password:rt(this.password),defaultPassword:G.kO.includes(this.password.toLowerCase())}))}resetData(){this.password="",this.loginErrorMessage="",this.flgShow=!1}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(V.mQ),r.Y36(a.yh),r.Y36(lt.V),r.Y36(le.v))},t.\u0275cmp=r.Xpm({type:t,selectors:[["rtl-login"]],decls:25,vars:12,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","center stretch",1,"login-container"],["fxLayout","row","fxFlex","50","fxLayoutAlign","center stretch"],["fxLayout","column","fxLayout.gt-sm","row","fxFlex","100","fxLayoutAlign","stretch stretch"],["fxFlex","35","fxLayoutAlign","center center",1,"bg-primary"],["src","assets/images/RTL-Horse-BY.svg","alt","RTL Logo",1,"rtl-logo-svg"],["fxFlex","65","fxLayout","column","fxLayoutAlign","center stretch",3,"ngClass"],["fxLayout","row","fxLayoutAlign","center center",1,"page-title-container","p-0"],[1,"font-bold-500",3,"ngClass"],[1,"page-title"],[1,"mt-5px","mb-0","px-2"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between"],["loginForm","ngForm"],["fxFlex","100","fxLayoutAlign","start"],["autoFocus","","matInput","","placeholder","Password","id","password","name","password","tabindex","1","required","",3,"type","ngModel","ngModelChange"],["tabindex","2","matSuffix","",3,"click"],[4,"ngIf"],["fxFlex","100","class","color-warn pre-wrap","fxLayoutAlign","start start",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","2","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","3","type","submit",3,"click"],["fxFlex","100","fxLayoutAlign","start start",1,"color-warn","pre-wrap"],[1,"mr-1","icon-small"]],template:function(t,e){1&t&&(r.TgZ(0,"div",0),r.TgZ(1,"div",1),r.TgZ(2,"mat-card",1),r.TgZ(3,"div",2),r.TgZ(4,"div",3),r._UZ(5,"img",4),r.qZA(),r.TgZ(6,"div",5),r.TgZ(7,"mat-card-header",6),r.TgZ(8,"mat-card-title",7),r.TgZ(9,"span",8),r._uU(10,"Welcome"),r.qZA(),r.qZA(),r.qZA(),r.TgZ(11,"mat-card-content",9),r.TgZ(12,"form",10,11),r.TgZ(14,"mat-form-field",12),r.TgZ(15,"input",13),r.NdJ("ngModelChange",function(t){return e.password=t}),r.qZA(),r.TgZ(16,"mat-icon",14),r.NdJ("click",function(){return e.flgShow=!e.flgShow}),r._uU(17),r.qZA(),r.YNc(18,pr,2,0,"mat-error",15),r.qZA(),r.YNc(19,fr,4,1,"p",16),r.TgZ(20,"div",17),r.TgZ(21,"button",18),r.NdJ("click",function(){return e.resetData()}),r._uU(22,"Clear"),r.qZA(),r.TgZ(23,"button",19),r.NdJ("click",function(){return e.onLogin()}),r._uU(24,"Login"),r.qZA(),r.qZA(),r.qZA(),r.qZA(),r.qZA(),r.qZA(),r.qZA(),r.qZA(),r.qZA()),2&t&&(r.xp6(6),r.Q6J("ngClass",r.VKq(7,mr,e.screenSize===e.screenSizeEnum.XS)),r.xp6(2),r.Q6J("ngClass",r.WLB(9,gr,e.screenSize===e.screenSizeEnum.XS,e.screenSize!==e.screenSizeEnum.XS)),r.xp6(7),r.Q6J("type",e.flgShow?"text":"password")("ngModel",e.password),r.xp6(2),r.Oqu(e.flgShow?"visibility_off":"visibility"),r.xp6(1),r.Q6J("ngIf",!e.password),r.xp6(1),r.Q6J("ngIf",""!==e.loginErrorMessage))},directives:[P.xw,P.yH,P.Wh,Z.a8,U.mk,ue.oO,Z.dk,Z.n5,Z.dn,W._Y,W.JL,W.F,J.KE,ut.Nt,W.Fj,K.h,W.Q7,W.JJ,W.On,Mi.Hw,J.R9,U.O5,$.lW,J.TO],styles:[".login-container[_ngcontent-%COMP%]{height:90vh}.login-container[_ngcontent-%COMP%] .mat-card[_ngcontent-%COMP%]{height:30rem}.login-container[_ngcontent-%COMP%] .rtl-logo-svg[_ngcontent-%COMP%]{width:100%}@media only screen and (max-width:56.25em){.login-container[_ngcontent-%COMP%] .rtl-logo-svg[_ngcontent-%COMP%]{width:37%}}@media only screen and (max-width:37.5em){.login-container[_ngcontent-%COMP%] .rtl-logo-svg[_ngcontent-%COMP%]{width:70%}}.login-container[_ngcontent-%COMP%] .material-icons.mat-icon[_ngcontent-%COMP%]{font-size:120%;cursor:pointer}"]}),t})();var br=i(8016);let vr=(()=>{class t{constructor(t,e){this.activatedRoute=t,this.router=e,this.error={errorCode:"",errorMessage:""},this.faTimes=N.NBC,this.unsubs=[new h.x,new h.x]}ngOnInit(){this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.activatedRoute.paramMap.pipe((0,k.R)(this.unsubs[0])).subscribe(t=>{this.error=window.history.state})}goToHelp(){this.router.navigate(["/help"])}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(R.gz),r.Y36(R.F0))},t.\u0275cmp=r.Xpm({type:t,selectors:[["rtl-error"]],decls:13,vars:3,consts:[["fxLayout","row","fxFlex","100","fxLayoutAlign","center center"],["fxLayout","column","fxFlex","60","fxLayoutAlign","start center"],["fxLayout","row","fxLayoutAlign","center center",1,"page-title-container","padding-gap-large"],[1,"font-size-300","font-bold-500"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column","fxLayoutAlign","center center",1,"padding-gap-large"],[1,"box-text","font-size-120"],["fxLayout","row","fxLayoutAlign","center","fxFlex","80"],["mat-flat-button","","color","primary","type","button",1,"mt-2",3,"click"]],template:function(t,e){1&t&&(r.TgZ(0,"div",0),r.TgZ(1,"mat-card",1),r.TgZ(2,"mat-card-header",2),r.TgZ(3,"mat-card-title",3),r._UZ(4,"fa-icon",4),r.TgZ(5,"span",5),r._uU(6),r.qZA(),r.qZA(),r.qZA(),r.TgZ(7,"mat-card-content",6),r.TgZ(8,"div",7),r._uU(9),r.qZA(),r.TgZ(10,"span",8),r.TgZ(11,"button",9),r.NdJ("click",function(){return e.goToHelp()}),r._uU(12,"Go To Help"),r.qZA(),r.qZA(),r.qZA(),r.qZA(),r.qZA()),2&t&&(r.xp6(4),r.Q6J("icon",e.faTimes),r.xp6(2),r.hij("Error ",e.error.errorCode,""),r.xp6(3),r.Oqu(e.error.errorMessage))},directives:[P.xw,P.yH,P.Wh,Z.a8,Z.dk,Z.n5,F.BN,Z.dn,$.lW],encapsulation:2}),t})();var _r=i(6013);const wr=R.Bz.forRoot([{path:"",pathMatch:"full",redirectTo:"login"},{path:"lnd",loadChildren:()=>Promise.all([i.e(958),i.e(891)]).then(i.bind(i,7891)).then(t=>t.LNDModule),canActivate:[_r.a1]},{path:"cl",loadChildren:()=>Promise.all([i.e(958),i.e(145)]).then(i.bind(i,2462)).then(t=>t.CLModule),canActivate:[_r.a1]},{path:"ecl",loadChildren:()=>Promise.all([i.e(958),i.e(432)]).then(i.bind(i,1432)).then(t=>t.ECLModule),canActivate:[_r.a1]},{path:"settings",component:Y,canActivate:[_r.a1],children:[{path:"",pathMatch:"full",redirectTo:"app"},{path:"app",component:nt,canActivate:[_r.a1]},{path:"auth",component:Ft,canActivate:[_r.a1]},{path:"bconfig",component:jt,canActivate:[_r.a1]}]},{path:"config",component:Jt,canActivate:[_r.a1],children:[{path:"",pathMatch:"full",redirectTo:"node"},{path:"node",component:ve,canActivate:[_r.a1]},{path:"services",component:we,canActivate:[_r.a1],children:[{path:"",pathMatch:"full",redirectTo:"loop"},{path:"loop",component:Ee,canActivate:[_r.a1]},{path:"boltz",component:Ie,canActivate:[_r.a1]}]},{path:"lnconfig",component:re,canActivate:[_r.a1]}]},{path:"services",component:Oe,canActivate:[_r.a1],children:[{path:"",pathMatch:"full",redirectTo:"loop"},{path:"loop",pathMatch:"full",redirectTo:"loop/loopout"},{path:"loop/:selTab",component:vi},{path:"boltz",pathMatch:"full",redirectTo:"boltz/swapout"},{path:"boltz/:selTab",component:or}]},{path:"help",component:hr},{path:"login",component:yr},{path:"error",component:vr},{path:"**",component:br.w}]);var xr=i(253),Cr=i(72),Ar=i(2865),Sr=i(3104),Er=i(8055);function kr(t,e){if(1&t&&(r.TgZ(0,"a",10),r._UZ(1,"fa-icon",3),r.TgZ(2,"span",11),r._uU(3,"Settings"),r.qZA(),r.qZA()),2&t){const t=r.oxw();r.xp6(1),r.Q6J("icon",t.faUserCog)}}function Tr(t,e){if(1&t&&(r.TgZ(0,"a",12),r._UZ(1,"fa-icon",3),r.TgZ(2,"span",13),r._uU(3,"Help"),r.qZA(),r.qZA()),2&t){const t=r.oxw();r.xp6(1),r.Q6J("icon",t.faLifeRing)}}function Mr(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"a",14),r.NdJ("click",function(){return r.CHM(t),r.oxw().onClick()}),r._UZ(1,"fa-icon",3),r.TgZ(2,"span"),r._uU(3,"Logout"),r.qZA(),r.qZA()}if(2&t){const t=r.oxw();r.xp6(1),r.Q6J("icon",t.faEject)}}let Lr=(()=>{class t{constructor(t,e,i,n,r){this.logger=t,this.sessionService=e,this.store=i,this.rtlEffects=n,this.actions=r,this.faUserCog=N.gNZ,this.faCodeBranch=N.mh3,this.faCog=N.b7W,this.faLifeRing=N.uli,this.faEject=N.KOR,this.version="",this.information={},this.informationChain={},this.flgLoading=!0,this.showLogout=!1,this.unSubs=[new h.x,new h.x,new h.x,new h.x],this.version=Ai.N.VERSION}ngOnInit(){this.store.select("root").pipe((0,k.R)(this.unSubs[0])).subscribe(t=>{if(this.selNode=t.selNode,this.information=t.nodeData,this.flgLoading=!this.information.identity_pubkey,this.information.identity_pubkey){if(this.information.chains&&"string"==typeof this.information.chains[0])this.informationChain.chain=this.information.chains[0].toString(),this.informationChain.network=this.information.testnet?"Testnet":"Mainnet";else if("object"==typeof this.information.chains[0]&&this.information.chains[0].hasOwnProperty("chain")){const t=this.information.chains[0];this.informationChain.chain=t.chain,this.informationChain.network=t.network}}else this.informationChain.chain="",this.informationChain.network="";this.logger.info(t)}),this.sessionService.watchSession().pipe((0,k.R)(this.unSubs[1])).subscribe(t=>{this.showLogout=!!t.token,this.flgLoading=!!t.token}),this.actions.pipe((0,k.R)(this.unSubs[2]),(0,A.h)(t=>t.type===j.Nv)).subscribe(()=>{this.showLogout=!1})}onClick(){this.store.dispatch(new j.b_({data:{type:G.n_.CONFIRM,alertTitle:"Logout",titleMessage:"Logout from this device?",noBtnText:"Cancel",yesBtnText:"Logout"}})),this.rtlEffects.closeConfirm.pipe((0,k.R)(this.unSubs[3])).subscribe(t=>{t&&(this.showLogout=!1,this.store.dispatch(new j.RD))})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(V.mQ),r.Y36(It.m),r.Y36(a.yh),r.Y36(lt.V),r.Y36(l.eX))},t.\u0275cmp=r.Xpm({type:t,selectors:[["rtl-top-menu"]],decls:13,vars:7,consts:[[1,"top-menu",3,"overlapTrigger"],["topMenu","matMenu"],["mat-menu-item",""],[1,"fa-icon-small","mr-1",3,"icon"],["mat-menu-item","","routerLink","/settings",4,"ngIf"],["mat-menu-item","","routerLink","/help",4,"ngIf"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-icon-button","",1,"top-toolbar-icon",3,"matMenuTriggerFor"],["src","assets/images/RTL-Horse-BY.svg","alt","RTL Logo",2,"width","3.2rem"],[2,"font-size","2rem","text-align","start"],["mat-menu-item","","routerLink","/settings"],["routerLink","/settings"],["mat-menu-item","","routerLink","/help"],["routerLink","/help"],["mat-menu-item","",3,"click"]],template:function(t,e){if(1&t&&(r.TgZ(0,"mat-menu",0,1),r.TgZ(2,"p",2),r._UZ(3,"fa-icon",3),r.TgZ(4,"span"),r._uU(5),r.qZA(),r.qZA(),r.YNc(6,kr,4,1,"a",4),r.YNc(7,Tr,4,1,"a",5),r.YNc(8,Mr,4,1,"a",6),r.qZA(),r.TgZ(9,"button",7),r._UZ(10,"img",8),r.TgZ(11,"mat-icon",9),r._uU(12,"arrow_drop_down"),r.qZA(),r.qZA()),2&t){const t=r.MAs(1);r.Q6J("overlapTrigger",!1),r.xp6(3),r.Q6J("icon",e.faCodeBranch),r.xp6(2),r.hij("Version: ",e.version,""),r.xp6(1),r.Q6J("ngIf",e.showLogout),r.xp6(1),r.Q6J("ngIf",e.showLogout),r.xp6(1),r.Q6J("ngIf",e.showLogout),r.xp6(1),r.Q6J("matMenuTriggerFor",t)}},directives:[Er.VK,Er.OP,F.BN,U.O5,$.lW,Er.p6,Mi.Hw,R.yS,R.rH],styles:[".mat-menu-content,.mat-menu-content p.mat-menu-item,.mat-menu-content p.mat-menu-item div,.mat-menu-content p.mat-menu-item fa-icon,.mat-menu-content p.mat-menu-item span{cursor:default}.mat-menu-content p.mat-menu-item:hover{cursor:default!important}"],encapsulation:2}),t})();var Ir=i(5122),Or=i(1709),Dr=i(1010);const Rr={LNDChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:N.HLz,link:"/lnd/home",userPersona:G.ol.ALL},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:N.nNP,link:"/lnd/onchain",userPersona:G.ol.ALL},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:N.BDt,link:"/lnd/connections",userPersona:G.ol.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:N.FVb,link:"/lnd/connections",userPersona:G.ol.ALL},{id:32,parentId:3,name:"Transactions",iconType:"FA",icon:N.Ssp,link:"/lnd/transactions",userPersona:G.ol.ALL},{id:33,parentId:3,name:"Routing",iconType:"FA",icon:N.SuH,link:"/lnd/routing",userPersona:G.ol.ALL},{id:34,parentId:3,name:"Reports",iconType:"FA",icon:N.koM,link:"/lnd/reports",userPersona:G.ol.ALL},{id:35,parentId:3,name:"Graph Lookup",iconType:"FA",icon:N.wn1,link:"/lnd/lookups",userPersona:G.ol.ALL},{id:36,parentId:3,name:"Sign/Verify",iconType:"FA",icon:N.hkK,link:"/lnd/messages",userPersona:G.ol.ALL},{id:37,parentId:3,name:"Backup",iconType:"FA",icon:N.q7m,link:"/lnd/channelbackup",userPersona:G.ol.ALL},{id:38,parentId:3,name:"Network",iconType:"FA",icon:N.o4t,link:"/lnd/network",userPersona:G.ol.OPERATOR},{id:39,parentId:3,name:"Node/Network",iconType:"FA",icon:N.xf3,link:"/lnd/network",userPersona:G.ol.MERCHANT}]},{id:4,parentId:0,name:"Services",iconType:"FA",icon:N.Krp,link:"/services/loop",userPersona:G.ol.ALL,children:[{id:41,parentId:4,name:"Loop",iconType:"FA",icon:N.vqe,link:"/services/loop",userPersona:G.ol.ALL},{id:42,parentId:4,name:"Boltz",iconType:"SVG",icon:"boltzIconBlock",link:"/services/boltz",userPersona:G.ol.ALL}]},{id:5,parentId:0,name:"Node Config",iconType:"FA",icon:N.CgH,link:"/config",userPersona:G.ol.ALL},{id:6,parentId:0,name:"Help",iconType:"FA",icon:N.Psp,link:"/help",userPersona:G.ol.ALL}],CLChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:N.HLz,link:"/cl/home",userPersona:G.ol.ALL},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:N.nNP,link:"/cl/onchain",userPersona:G.ol.ALL},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:N.BDt,link:"/cl/connections",userPersona:G.ol.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:N.FVb,link:"/cl/connections",userPersona:G.ol.ALL},{id:32,parentId:3,name:"Transactions",iconType:"FA",icon:N.Ssp,link:"/cl/transactions",userPersona:G.ol.ALL},{id:33,parentId:3,name:"Routing",iconType:"FA",icon:N.SuH,link:"/cl/routing",userPersona:G.ol.ALL},{id:34,parentId:3,name:"Reports",iconType:"FA",icon:N.koM,link:"/cl/reports",userPersona:G.ol.ALL},{id:35,parentId:3,name:"Graph Lookup",iconType:"FA",icon:N.wn1,link:"/cl/lookups",userPersona:G.ol.ALL},{id:36,parentId:3,name:"Sign/Verify",iconType:"FA",icon:N.hkK,link:"/cl/messages",userPersona:G.ol.ALL},{id:37,parentId:3,name:"Fee Rates",iconType:"FA",icon:N.USL,link:"/cl/rates",userPersona:G.ol.OPERATOR},{id:38,parentId:3,name:"Node/Fee Rates",iconType:"FA",icon:N.xf3,link:"/cl/rates",userPersona:G.ol.MERCHANT}]},{id:4,parentId:0,name:"Node Config",iconType:"FA",icon:N.CgH,link:"/config",userPersona:G.ol.ALL},{id:5,parentId:0,name:"Help",iconType:"FA",icon:N.Psp,link:"/help",userPersona:G.ol.ALL}],ECLChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:N.HLz,link:"/ecl/home",userPersona:G.ol.ALL},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:N.nNP,link:"/ecl/onchain",userPersona:G.ol.ALL},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:N.BDt,link:"/ecl/connections",userPersona:G.ol.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:N.FVb,link:"/ecl/connections",userPersona:G.ol.ALL},{id:32,parentId:3,name:"Transactions",iconType:"FA",icon:N.Ssp,link:"/ecl/transactions",userPersona:G.ol.ALL},{id:33,parentId:3,name:"Routing",iconType:"FA",icon:N.SuH,link:"/ecl/routing",userPersona:G.ol.ALL},{id:34,parentId:3,name:"Reports",iconType:"FA",icon:N.koM,link:"/ecl/reports",userPersona:G.ol.ALL},{id:35,parentId:3,name:"Graph Lookup",iconType:"FA",icon:N.wn1,link:"/ecl/lookups",userPersona:G.ol.ALL}]},{id:4,parentId:0,name:"Node Config",iconType:"FA",icon:N.CgH,link:"/config",userPersona:G.ol.ALL},{id:5,parentId:0,name:"Help",iconType:"FA",icon:N.Psp,link:"/help",userPersona:G.ol.ALL}]};var Nr=i(6828);function Pr(t,e){if(1&t&&(r.TgZ(0,"mat-option",11),r._uU(1),r.qZA()),2&t){const t=e.$implicit;r.Q6J("value",t),r.xp6(1),r.AsE(" ",t.lnNode," (",t.lnImplementation,") ")}}function Fr(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"mat-select",9),r.NdJ("selectionChange",function(e){return r.CHM(t),r.oxw().onNodeSelectionChange(e.value)}),r.YNc(1,Pr,2,3,"mat-option",10),r.qZA()}if(2&t){const t=r.oxw();r.Q6J("value",t.selNode),r.xp6(1),r.Q6J("ngForOf",t.appConfig.nodes)}}function Zr(t,e){if(1&t&&(r.TgZ(0,"span",21),r.GkF(1,22),r.qZA()),2&t){const t=r.oxw().$implicit;r.oxw(2);const e=r.MAs(11);r.xp6(1),r.Q6J("ngTemplateOutlet","boltzIconBlock"===t.icon?e:null)}}function Br(t,e){if(1&t&&r._UZ(0,"fa-icon",23),2&t){const t=r.oxw().$implicit;r.Q6J("icon",t.icon)}}function Ur(t,e){if(1&t&&(r.TgZ(0,"mat-icon",24),r._uU(1),r.qZA()),2&t){const t=r.oxw().$implicit;r.xp6(1),r.Oqu(t.icon)}}function qr(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"mat-tree-node",15),r.TgZ(1,"div",16),r.NdJ("click",function(){const e=r.CHM(t).$implicit;return r.oxw(2).onChildNavClicked(e)}),r.TgZ(2,"div",17),r.YNc(3,Zr,2,1,"span",18),r.YNc(4,Br,1,1,"fa-icon",19),r.YNc(5,Ur,2,1,"mat-icon",20),r.TgZ(6,"span"),r._uU(7),r.qZA(),r.qZA(),r.qZA(),r.qZA()}if(2&t){const t=e.$implicit;r.s9C("routerLink",t.link),r.xp6(3),r.Q6J("ngIf","SVG"===t.iconType),r.xp6(1),r.Q6J("ngIf","FA"===t.iconType),r.xp6(1),r.Q6J("ngIf",!t.iconType),r.xp6(2),r.Oqu(t.name)}}function zr(t,e){if(1&t&&(r.TgZ(0,"span",33),r.GkF(1,22),r.qZA()),2&t){const t=r.oxw().$implicit;r.xp6(1),r.Q6J("ngTemplateOutlet",t.icon)}}function Hr(t,e){if(1&t&&r._UZ(0,"fa-icon",23),2&t){const t=r.oxw().$implicit;r.Q6J("icon",t.icon)}}function Yr(t,e){if(1&t&&(r.TgZ(0,"mat-icon",24),r._uU(1),r.qZA()),2&t){const t=r.oxw().$implicit;r.xp6(1),r.Oqu(t.icon)}}function Gr(t,e){if(1&t&&(r.TgZ(0,"mat-nested-tree-node",25),r.TgZ(1,"div",26),r.TgZ(2,"div",27),r.YNc(3,zr,2,1,"span",28),r.YNc(4,Hr,1,1,"fa-icon",19),r.YNc(5,Yr,2,1,"mat-icon",20),r.TgZ(6,"span"),r._uU(7),r.qZA(),r.qZA(),r.TgZ(8,"button",29),r.TgZ(9,"mat-icon",30),r._uU(10),r.qZA(),r.qZA(),r.qZA(),r.TgZ(11,"div",31),r.GkF(12,32),r.qZA(),r.qZA()),2&t){const t=e.$implicit,i=r.oxw(2);r.xp6(3),r.Q6J("ngIf","SVG"===t.iconType),r.xp6(1),r.Q6J("ngIf","FA"===t.iconType),r.xp6(1),r.Q6J("ngIf",!t.iconType),r.xp6(2),r.Oqu(t.name),r.xp6(1),r.uIk("aria-label","toggle "+t.name),r.xp6(2),r.Oqu(i.treeControlNested.isExpanded(t)?"arrow_drop_up":"arrow_drop_down"),r.xp6(1),r.ekj("tree-children-invisible",!i.treeControlNested.isExpanded(t))}}function jr(t,e){if(1&t&&(r.TgZ(0,"mat-tree",5,12),r.YNc(2,qr,8,5,"mat-tree-node",13),r.YNc(3,Gr,13,8,"mat-nested-tree-node",14),r.qZA()),2&t){const t=r.oxw();r.Q6J("dataSource",t.navMenus)("treeControl",t.treeControlNested),r.xp6(3),r.Q6J("matTreeNodeDefWhen",t.hasChild)}}function Vr(t,e){if(1&t&&(r.TgZ(0,"span",21),r.GkF(1,22),r.qZA()),2&t){const t=r.oxw().$implicit;r.xp6(1),r.Q6J("ngTemplateOutlet",t.icon)}}function Qr(t,e){if(1&t&&r._UZ(0,"fa-icon",36),2&t){const t=r.oxw().$implicit;r.s9C("matTooltip",t.name),r.Q6J("icon",t.icon)}}function Wr(t,e){if(1&t&&(r.TgZ(0,"mat-icon",37),r._uU(1),r.qZA()),2&t){const t=r.oxw().$implicit;r.s9C("matTooltip",t.name),r.xp6(1),r.Oqu(t.icon)}}function Jr(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"mat-tree-node",16),r.NdJ("click",function(){const e=r.CHM(t).$implicit;return r.oxw().onShowData(e)}),r.YNc(1,Vr,2,1,"span",18),r.YNc(2,Qr,1,2,"fa-icon",34),r.YNc(3,Wr,2,2,"mat-icon",35),r.TgZ(4,"span"),r._uU(5),r.qZA(),r.qZA()}if(2&t){const t=e.$implicit;r.xp6(1),r.Q6J("ngIf","SVG"===t.iconType),r.xp6(1),r.Q6J("ngIf","FA"===t.iconType),r.xp6(1),r.Q6J("ngIf",!t.iconType),r.xp6(2),r.Oqu(t.name)}}function Xr(t,e){if(1&t&&(r.TgZ(0,"span",33),r.GkF(1,22),r.qZA()),2&t){const t=r.oxw().$implicit;r.xp6(1),r.Q6J("ngTemplateOutlet",t.icon)}}function Kr(t,e){if(1&t&&r._UZ(0,"fa-icon",36),2&t){const t=r.oxw().$implicit;r.s9C("matTooltip",t.name),r.Q6J("icon",t.icon)}}function $r(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"mat-tree-node",16),r.NdJ("click",function(){const e=r.CHM(t).$implicit;return r.oxw(2).onClick(e)}),r.YNc(1,Xr,2,1,"span",28),r.YNc(2,Kr,1,2,"fa-icon",34),r.TgZ(3,"span"),r._uU(4),r.qZA(),r.qZA()}if(2&t){const t=e.$implicit;r.xp6(1),r.Q6J("ngIf","SVG"===t.iconType),r.xp6(1),r.Q6J("ngIf","FA"===t.iconType),r.xp6(2),r.Oqu(t.name)}}function ts(t,e){if(1&t&&(r.TgZ(0,"mat-tree",5),r.YNc(1,$r,5,3,"mat-tree-node",6),r.qZA()),2&t){const t=r.oxw();r.Q6J("dataSource",t.navMenusLogout)("treeControl",t.treeControlLogout)}}function es(t,e){1&t&&(r.O4$(),r.TgZ(0,"svg",38),r.TgZ(1,"g",39),r.TgZ(2,"g",40),r._UZ(3,"circle",41),r._UZ(4,"path",42),r._UZ(5,"path",43),r.qZA(),r.qZA(),r.qZA())}let is=(()=>{class t{constructor(t,e,i,n,s,o){this.logger=t,this.commonService=e,this.sessionService=i,this.store=n,this.actions=s,this.rtlEffects=o,this.ChildNavClicked=new r.vpe,this.faEject=N.KOR,this.faEye=N.Mdf,this.version="",this.information={},this.informationChain={},this.flgLoading=!0,this.logoutNode=[{id:200,parentId:0,name:"Logout",iconType:"FA",icon:N.KOR}],this.showDataNodes=[{id:1e3,parentId:0,name:"Public Key",iconType:"FA",icon:N.Mdf}],this.showLogout=!1,this.numPendingChannels=0,this.smallScreen=!1,this.childRootRoute="",this.userPersonaEnum=G.ol,this.unSubs=[new h.x,new h.x,new h.x,new h.x],this.treeControlNested=new Or.VY(t=>t.children),this.treeControlLogout=new Or.VY(t=>t.children),this.treeControlShowData=new Or.VY(t=>t.children),this.navMenus=new Dr.WX,this.navMenusLogout=new Dr.WX,this.navMenusShowData=new Dr.WX,this.hasChild=(t,e)=>!!e.children&&e.children.length>0,this.version=Ai.N.VERSION,200===Rr.LNDChildren[Rr.LNDChildren.length-1].id&&Rr.LNDChildren.pop(),this.navMenus.data=Rr.LNDChildren,this.navMenusLogout.data=this.logoutNode,this.navMenusShowData.data=this.showDataNodes}ngOnInit(){const t=this.sessionService.getItem("token");this.showLogout=!!t,this.flgLoading=!!t,this.store.select("root").pipe((0,k.R)(this.unSubs[0])).subscribe(t=>{if(this.appConfig=t.appConfig,this.selNode=t.selNode,this.settings=this.selNode.settings,this.information=t.nodeData,this.information.identity_pubkey){if(this.information.chains&&"string"==typeof this.information.chains[0])this.informationChain.chain=this.information.chains[0].toString(),this.informationChain.network=this.information.testnet?"Testnet":"Mainnet";else if("object"==typeof this.information.chains[0]&&this.information.chains[0].hasOwnProperty("chain")){const t=this.information.chains[0];this.informationChain.chain=t.chain,this.informationChain.network=t.network}}else this.informationChain.chain="",this.informationChain.network="";this.flgLoading=!this.information.identity_pubkey,window.innerWidth<=414&&(this.smallScreen=!0),this.selNode&&this.selNode.lnImplementation&&this.filterSideMenuNodes(),this.logger.info(t)}),this.sessionService.watchSession().pipe((0,k.R)(this.unSubs[1])).subscribe(t=>{this.showLogout=!!t.token,this.flgLoading=!!t.token}),this.actions.pipe((0,k.R)(this.unSubs[2]),(0,A.h)(t=>t.type===j.Nv)).subscribe(t=>{this.showLogout=!1})}onClick(t){"Logout"===t.name&&(this.store.dispatch(new j.b_({data:{type:G.n_.CONFIRM,alertTitle:"Logout",titleMessage:"Logout from this device?",noBtnText:"Cancel",yesBtnText:"Logout"}})),this.rtlEffects.closeConfirm.pipe((0,k.R)(this.unSubs[3])).subscribe(t=>{t&&(this.showLogout=!1,this.store.dispatch(new j.RD))})),this.ChildNavClicked.emit(t)}onChildNavClicked(t){this.ChildNavClicked.emit(t)}filterSideMenuNodes(){switch(this.selNode.lnImplementation.toUpperCase()){case"CLT":this.loadCLTMenu();break;case"ECL":this.loadECLMenu();break;default:this.loadLNDMenu()}}loadLNDMenu(){let t=[];t=JSON.parse(JSON.stringify(Rr.LNDChildren)),this.navMenus.data=t.filter(t=>t.children&&t.children.length?(t.children=t.children.filter(t=>(t.userPersona===G.ol.ALL||t.userPersona===this.settings.userPersona)&&"/services/loop"!==t.link&&"/services/boltz"!==t.link||"/services/loop"===t.link&&this.settings.swapServerUrl&&""!==this.settings.swapServerUrl.trim()||"/services/boltz"===t.link&&this.settings.boltzServerUrl&&""!==this.settings.boltzServerUrl.trim()),t.children.length>0):t.userPersona===G.ol.ALL||t.userPersona===this.settings.userPersona)}loadCLTMenu(){let t=[];t=JSON.parse(JSON.stringify(Rr.CLChildren)),this.navMenus.data=t.filter(t=>(t.children&&t.children.length&&(t.children=t.children.filter(t=>(t.userPersona===G.ol.ALL||t.userPersona===this.settings.userPersona)&&"/cl/messages"!==t.link||"/cl/messages"===t.link&&this.information.api_version&&this.commonService.isVersionCompatible(this.information.api_version,"0.2.2"))),t.userPersona===G.ol.ALL||t.userPersona===this.settings.userPersona))}loadECLMenu(){this.navMenus.data=JSON.parse(JSON.stringify(Rr.ECLChildren))}onShowData(t){this.store.dispatch(new j.fD),this.ChildNavClicked.emit("showData")}onNodeSelectionChange(t){this.selNode=t,this.store.dispatch(new j.ZG({uiMessage:G.m6.UPDATE_SELECTED_NODE,lnNode:t,isInitialSetup:!1})),this.ChildNavClicked.emit("selectNode")}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(V.mQ),r.Y36(le.v),r.Y36(It.m),r.Y36(a.yh),r.Y36(l.eX),r.Y36(lt.V))},t.\u0275cmp=r.Xpm({type:t,selectors:[["rtl-side-navigation"]],viewQuery:function(t,e){if(1&t&&r.Gf(Dr.gi,5),2&t){let t;r.iGM(t=r.CRH())&&(e.tree=t.first)}},outputs:{ChildNavClicked:"ChildNavClicked"},decls:12,vars:5,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between start",3,"perfectScrollbar"],["fxLayout","column","fxFlex","90","fxLayoutAlign","start stretch",1,"w-100"],["class","m-2 multi-node-select",3,"value","selectionChange",4,"ngIf"],[1,"w-100"],[3,"dataSource","treeControl",4,"ngIf"],[3,"dataSource","treeControl"],[3,"click",4,"matTreeNodeDef"],["fxLayout","column","fxFlex","10","fxLayoutAlign","end stretch",1,"w-100"],["boltzIconBlock",""],[1,"m-2","multi-node-select",3,"value","selectionChange"],["tabindex","1",3,"value",4,"ngFor","ngForOf"],["tabindex","1",3,"value"],["tree",""],["matTreeNodeToggle","","routerLinkActive","active-link",3,"routerLink",4,"matTreeNodeDef"],["fxLayout","column","matTreeNodeToggle","",4,"matTreeNodeDef","matTreeNodeDefWhen"],["matTreeNodeToggle","","routerLinkActive","active-link",3,"routerLink"],[3,"click"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],["class","fa-icon-small mr-2",4,"ngIf"],["class","fa-icon-small mr-2",3,"icon",4,"ngIf"],["class","mat-icon-36",4,"ngIf"],[1,"fa-icon-small","mr-2"],[3,"ngTemplateOutlet"],[1,"fa-icon-small","mr-2",3,"icon"],[1,"mat-icon-36"],["fxLayout","column","matTreeNodeToggle",""],["fxLayout","row","fxLayoutAlign","start center",1,"mat-nested-tree-node-parent"],["fxFlex","89","fxLayoutAlign","start center"],["class","mr-2",4,"ngIf"],["fxFlex","11","mat-icon-button","","fxLayoutAlign","end center"],[1,"mat-icon-rtl-mirror"],[1,"mat-nested-tree-node-child"],["matTreeNodeOutlet",""],[1,"mr-2"],["class","fa-icon-small mr-2","matTooltipPosition","right",3,"icon","matTooltip",4,"ngIf"],["class","mat-icon-36","matTooltipPosition","right",3,"matTooltip",4,"ngIf"],["matTooltipPosition","right",1,"fa-icon-small","mr-2",3,"icon","matTooltip"],["matTooltipPosition","right",1,"mat-icon-36",3,"matTooltip"],["viewBox","0 0 78 78","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink"],["id","Logo","stroke","none","stroke-width","1","fill","none","fill-rule","evenodd"],["id","Group"],["id","Oval","cx","39","cy","39","r","37.5",1,"boltz-icon"],["d","M36.4583326,43.7755404 L40.53965,35.2316544 L39.4324865,35.2316544 L46.0754873,17.6071752 C46.292579,17.0204094 46.3287609,16.5159331 46.1840331,16.0937464 C46.0393053,15.671561 45.7860319,15.3674444 45.4242131,15.1813966 C45.0623942,14.9953487 44.6535376,14.9524146 44.1976433,15.0525945 C43.7417511,15.1527743 43.3256596,15.4461573 42.9493689,15.9327433 L22.6078557,40.7701025 C22.2026186,41.2710003 22,41.7575877 22,42.2298646 C22,42.6735173 22.1592003,43.0420366 22.477601,43.3354226 C22.7960017,43.6288058 23.1940025,43.7755404 23.6716036,43.7755404 L36.4583326,43.7755404 Z","id","Path",1,"boltz-icon-fill"],["d","M44.4883879,63.7755404 L48.8604707,55.165009 L47.6744296,55.165009 L54.7906978,37.4030526 C55.0232558,36.8117097 55.0620155,36.3032983 54.9069768,35.8778185 C54.7519381,35.4523399 54.4806208,35.1458511 54.0930248,34.958352 C53.7054289,34.7708528 53.2674441,34.7275839 52.7790706,34.8285452 C52.2906992,34.9295065 51.8449641,35.2251779 51.4418653,35.7155595 L29.6511611,60.746659 C29.2170537,61.251464 29,61.7418469 29,62.2178078 C29,62.6649211 29.1705423,63.036315 29.5116268,63.3319895 C29.8527113,63.6276613 30.2790669,63.7755404 30.7906936,63.7755404 L44.4883879,63.7755404 Z","id","Path-Copy","transform","translate(42.000000, 49.275540) rotate(-180.000000) translate(-42.000000, -49.275540) ",1,"boltz-icon-fill"]],template:function(t,e){1&t&&(r.TgZ(0,"div",0),r.TgZ(1,"div",1),r.YNc(2,Fr,2,2,"mat-select",2),r._UZ(3,"mat-divider",3),r.YNc(4,jr,4,3,"mat-tree",4),r._UZ(5,"mat-divider",3),r.TgZ(6,"mat-tree",5),r.YNc(7,Jr,6,4,"mat-tree-node",6),r.qZA(),r.qZA(),r.TgZ(8,"div",7),r.YNc(9,ts,2,2,"mat-tree",4),r.qZA(),r.qZA(),r.YNc(10,es,6,0,"ng-template",null,8,r.W1O)),2&t&&(r.xp6(2),r.Q6J("ngIf",e.appConfig.nodes.length>1),r.xp6(2),r.Q6J("ngIf",e.settings.lnServerUrl),r.xp6(2),r.Q6J("dataSource",e.navMenusShowData)("treeControl",e.treeControlShowData),r.xp6(3),r.Q6J("ngIf",e.showLogout))},directives:[P.xw,P.yH,P.Wh,Q.$V,U.O5,Ot.d,Dr.gi,Dr.fQ,X.gD,U.sg,tt.ey,Dr.uo,Dr.eu,R.Od,R.rH,U.tP,F.BN,Mi.Hw,Dr.GZ,$.lW,Dr.Ar,Nr.gM],styles:[".tree-children-invisible[_ngcontent-%COMP%]{display:none}"]}),t})();var ns=i(7806);const rs=["sideNavigation"],ss=["sideNavContent"];function os(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"button",13),r.NdJ("click",function(){return r.CHM(t),r.oxw().sideNavToggle()}),r.TgZ(1,"mat-icon"),r._uU(2,"menu"),r.qZA(),r.qZA()}if(2&t){const t=r.oxw();r.Q6J("matTooltip",t.flgSideNavOpened?"Hide Navigation Menu":"Show Navigation Menu")("matTooltipDisabled",t.smallScreen)}}function as(t,e){1&t&&(r.O4$(),r._UZ(0,"path",18))}function ls(t,e){1&t&&(r.O4$(),r._UZ(0,"path",19))}function cs(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"button",14),r.NdJ("click",function(){r.CHM(t);const e=r.oxw();return e.flgSidenavPinned=!e.flgSidenavPinned}),r.O4$(),r.TgZ(1,"svg",15),r.YNc(2,as,1,0,"path",16),r.YNc(3,ls,1,0,"path",17),r.qZA(),r.qZA()}if(2&t){const t=r.oxw();r.Q6J("matTooltip",t.flgSidenavPinned?"Unpin Navigation Menu":"Pin Navigation Menu"),r.xp6(2),r.Q6J("ngIf",!t.flgSidenavPinned),r.xp6(1),r.Q6J("ngIf",t.flgSidenavPinned)}}function hs(t,e){if(1&t&&(r.TgZ(0,"span"),r._uU(1),r.qZA()),2&t){const t=r.oxw();r.xp6(1),r.Oqu(t.information.alias?"RTL - "+t.information.alias:"RTL")}}function us(t,e){if(1&t&&(r.TgZ(0,"span"),r._uU(1),r.qZA()),2&t){const t=r.oxw();r.xp6(1),r.Oqu(t.information.alias?"Ride The Lightning - "+t.information.alias:"Ride The Lightning")}}function ds(t,e){1&t&&(r.TgZ(0,"div",20),r._UZ(1,"mat-spinner",21),r.TgZ(2,"h4"),r._uU(3,"Loading RTL..."),r.qZA(),r.qZA())}const ps=function(t,e){return[t,e]};let fs=(()=>{class t{constructor(t,e,i,n,r,s,o,a,l){this.logger=t,this.commonService=e,this.store=i,this.actions=n,this.userIdle=r,this.router=s,this.sessionService=o,this.breakpointObserver=a,this.renderer=l,this.information={},this.flgLoading=[!0],this.flgSideNavOpened=!0,this.flgCopied=!1,this.accessKey="",this.xSmallScreen=!1,this.smallScreen=!1,this.flgSidenavPinned=!0,this.flgLoggedIn=!1,this.unSubs=[new h.x,new h.x,new h.x,new h.x,new h.x,new h.x]}ngOnInit(){this.router.events.subscribe(t=>{t instanceof R.m2&&document.getElementsByTagName("mat-sidenav-content")[0].scrollTo(0,0)}),this.breakpointObserver.observe([Cr.u3.XSmall,Cr.u3.TabletPortrait,Cr.u3.Small,Cr.u3.Medium,Cr.u3.Large,Cr.u3.XLarge]).pipe((0,k.R)(this.unSubs[0])).subscribe(t=>{t.breakpoints[Cr.u3.XSmall]?(this.commonService.setScreenSize(G.cu.XS),this.smallScreen=!0):t.breakpoints[Cr.u3.TabletPortrait]?(this.commonService.setScreenSize(G.cu.SM),this.smallScreen=!0):t.breakpoints[Cr.u3.Small]||t.breakpoints[Cr.u3.Medium]?(this.commonService.setScreenSize(G.cu.MD),this.smallScreen=!1):t.breakpoints[Cr.u3.Large]?(this.commonService.setScreenSize(G.cu.LG),this.smallScreen=!1):(this.commonService.setScreenSize(G.cu.XL),this.smallScreen=!1)}),this.store.dispatch(new j.XF),this.accessKey=this.readAccessKey(),this.store.select("root").pipe((0,k.R)(this.unSubs[1])).subscribe(t=>{this.selNode=t.selNode,this.settings=this.selNode.settings,this.appConfig=t.appConfig,this.information=t.nodeData,this.flgLoading[0]=!this.information.identity_pubkey,this.logger.info(this.settings),this.sessionService.getItem("token")?(this.flgLoggedIn=!0,this.userIdle.startWatching()):(this.flgLoggedIn=!1,this.flgLoading[0]=!1)}),"true"===this.sessionService.getItem("defaultPassword")&&(this.flgSideNavOpened=!1),this.actions.pipe((0,k.R)(this.unSubs[2]),(0,A.h)(t=>t.type===j.rZ||t.type===j.Nv)).subscribe(t=>{t.type===j.rZ&&(this.sessionService.getItem("token")||(+t.payload.sso.rtlSSO?!this.accessKey||this.accessKey.trim().length<32?this.router.navigate(["./error"],{state:{errorCode:"406",errorMessage:"Access key too short. It should be at least 32 characters long."}}):this.store.dispatch(new j.m3({password:rt(this.accessKey),defaultPassword:!1})):this.router.navigate(["./login"]))),t.type===j.Nv&&(this.flgLoggedIn=!1,this.userIdle.stopWatching(),this.userIdle.stopTimer())}),this.userIdle.onTimerStart().pipe((0,k.R)(this.unSubs[3])).subscribe(t=>{this.logger.info("Counting Down: "+(11-t))}),this.userIdle.onTimeout().pipe((0,k.R)(this.unSubs[4])).subscribe(()=>{this.logger.info("Time Out!"),this.sessionService.getItem("token")&&(this.flgLoggedIn=!1,this.logger.warn("Time limit exceeded for session inactivity."),this.store.dispatch(new j.Ac),this.store.dispatch(new j.wu({data:{type:G.n_.WARNING,alertTitle:"Logging out",titleMessage:"Time limit exceeded for session inactivity."}})),this.store.dispatch(new j.RD))}),"true"===this.sessionService.getItem("defaultPassword")&&(this.flgSideNavOpened=!1)}readAccessKey(){const t=window.location.href;return t.includes("access-key=")?t.substring(t.lastIndexOf("access-key=")+11).trim():null}ngAfterViewInit(){this.smallScreen?(this.sideNavigation.close(),this.commonService.setContainerSize(this.sideNavContent.elementRef.nativeElement.clientWidth,this.sideNavContent.elementRef.nativeElement.clientHeight)):setTimeout(()=>{this.flgLoggedIn&&this.renderer.setStyle(this.sideNavContent.elementRef.nativeElement,"marginLeft","22rem"),this.commonService.setContainerSize(this.sideNavContent.elementRef.nativeElement.clientWidth,this.sideNavContent.elementRef.nativeElement.clientHeight)},100)}sideNavToggle(){this.flgSideNavOpened=!this.flgSideNavOpened,this.sideNavigation.toggle()}onNavigationClicked(t){this.smallScreen&&this.sideNavigation.close()}copiedText(t){this.flgCopied=!0,setTimeout(()=>{this.flgCopied=!1},5e3),this.logger.info("Copied Text: "+t)}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(V.mQ),r.Y36(le.v),r.Y36(a.yh),r.Y36(l.eX),r.Y36(O),r.Y36(R.F0),r.Y36(It.m),r.Y36(Cr.Yg),r.Y36(r.Qsj))},t.\u0275cmp=r.Xpm({type:t,selectors:[["rtl-app"]],viewQuery:function(t,e){if(1&t&&(r.Gf(rs,5),r.Gf(ss,5)),2&t){let t;r.iGM(t=r.CRH())&&(e.sideNavigation=t.first),r.iGM(t=r.CRH())&&(e.sideNavContent=t.first)}},decls:23,vars:15,consts:[["fxLayout","column","id","rtl-container",1,"rtl-container","medium",3,"ngClass"],["fxLayout","row","fxLayoutAlign","space-between center",1,"padding-gap-x","bg-primary","rtl-top-toolbar"],["class","top-toolbar-icon mr-1","mat-icon-button","","matTooltipPosition","right",3,"matTooltip","matTooltipDisabled","click",4,"ngIf"],["mat-icon-button","","matTooltipPosition","right",3,"matTooltip","click",4,"ngIf"],[4,"ngIf"],[1,"sidenav","mat-elevation-z6",3,"perfectScrollbar","opened","mode"],["sideNavigation",""],["fxFlex","100",3,"ChildNavClicked"],[3,"perfectScrollbar"],["sideNavContent",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"inner-sidenav-content"],["outlet","outlet"],["class","rtl-spinner",4,"ngIf"],["mat-icon-button","","matTooltipPosition","right",1,"top-toolbar-icon","mr-1",3,"matTooltip","matTooltipDisabled","click"],["mat-icon-button","","matTooltipPosition","right",3,"matTooltip","click"],["viewBox","0 0 32 32",1,"top-toolbar-icon","icon-pinned"],["fill","currentColor","d","M16,12V4H17V2H7V4H8V12L6,14V16H11.2V22H12.8V16H18V14L16,12Z",4,"ngIf"],["fill","currentColor","d","M2,5.27L3.28,4L20,20.72L18.73,22L12.8,16.07V22H11.2V16H6V14L8,12V11.27L2,5.27M16,12L18,14V16H17.82L8,6.18V4H7V2H17V4H16V12Z",4,"ngIf"],["fill","currentColor","d","M16,12V4H17V2H7V4H8V12L6,14V16H11.2V22H12.8V16H18V14L16,12Z"],["fill","currentColor","d","M2,5.27L3.28,4L20,20.72L18.73,22L12.8,16.07V22H11.2V16H6V14L8,12V11.27L2,5.27M16,12L18,14V16H17.82L8,6.18V4H7V2H17V4H16V12Z"],[1,"rtl-spinner"],["color","accent"]],template:function(t,e){1&t&&(r.TgZ(0,"div",0),r.ALo(1,"lowercase"),r.ALo(2,"lowercase"),r.TgZ(3,"mat-toolbar",1),r.TgZ(4,"div"),r.YNc(5,os,3,2,"button",2),r.YNc(6,cs,4,3,"button",3),r.qZA(),r.TgZ(7,"div"),r.YNc(8,hs,2,1,"span",4),r.YNc(9,us,2,1,"span",4),r.qZA(),r.TgZ(10,"div"),r._UZ(11,"rtl-top-menu"),r.qZA(),r.qZA(),r.TgZ(12,"mat-sidenav-container"),r.TgZ(13,"mat-sidenav",5,6),r.TgZ(15,"rtl-side-navigation",7),r.NdJ("ChildNavClicked",function(t){return e.onNavigationClicked(t)}),r.qZA(),r.qZA(),r.TgZ(16,"mat-sidenav-content",8,9),r.TgZ(18,"div",10),r._UZ(19,"router-outlet",null,11),r.qZA(),r.qZA(),r._uU(21,"> "),r.qZA(),r.YNc(22,ds,4,0,"div",12),r.qZA()),2&t&&(r.Q6J("ngClass",r.WLB(12,ps,r.lcZ(1,8,e.settings.themeColor),r.lcZ(2,10,e.settings.themeMode))),r.xp6(5),r.Q6J("ngIf",e.flgLoggedIn),r.xp6(1),r.Q6J("ngIf",!e.smallScreen&&e.flgLoggedIn),r.xp6(2),r.Q6J("ngIf",e.smallScreen),r.xp6(1),r.Q6J("ngIf",!e.smallScreen),r.xp6(4),r.Q6J("opened",e.flgSideNavOpened&&e.flgLoggedIn)("mode",e.flgSidenavPinned&&!e.smallScreen?"side":"over"),r.xp6(9),r.Q6J("ngIf",!e.settings.themeColor))},directives:[P.xw,U.mk,ue.oO,Sr.Ye,P.Wh,U.O5,Lr,Ir.TM,Ir.JX,Q.$V,is,P.yH,Ir.Rh,R.lC,$.lW,Nr.gM,Mi.Hw,ns.$g],pipes:[U.i8],styles:[".inline-spinner[_ngcontent-%COMP%]{display:inline-flex!important;top:0!important}"],data:{animation:[Ar.g]}}),t})(),ms=(()=>{class t{constructor(t){this.sessionService=t}intercept(t,e){if(this.sessionService.getItem("token")){const i=t.clone({headers:t.headers.set("Authorization","Bearer "+this.sessionService.getItem("token"))});return e.handle(i)}return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(It.m))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})();var gs=i(3556);const ys={apisCallStatus:{FetchInfo:{status:G.Bn.UN_INITIATED},FetchFees:{status:G.Bn.UN_INITIATED},FetchChannels:{status:G.Bn.UN_INITIATED},FetchOnchainBalance:{status:G.Bn.UN_INITIATED},FetchPeers:{status:G.Bn.UN_INITIATED},FetchPayments:{status:G.Bn.UN_INITIATED},FetchInvoices:{status:G.Bn.UN_INITIATED},FetchTransactions:{status:G.Bn.UN_INITIATED}},nodeSettings:{userPersona:G.ol.OPERATOR,selCurrencyUnit:"USD",fiatConversion:!1,channelBackupPath:"",currencyUnits:[]},information:{},fees:{},activeChannels:[],pendingChannels:[],inactiveChannels:[],channelsStatus:{},channelStats:[],onchainBalance:{total:0,confirmed:0,unconfirmed:0},lightningBalance:{localBalance:-1,remoteBalance:-1},peers:[],payments:{},transactions:[],invoices:[]},bs={apisCallStatus:{FetchInfo:{status:G.Bn.UN_INITIATED},FetchInvoices:{status:G.Bn.UN_INITIATED},FetchFees:{status:G.Bn.UN_INITIATED},FetchChannels:{status:G.Bn.UN_INITIATED},FetchBalance:{status:G.Bn.UN_INITIATED},FetchLocalRemoteBalance:{status:G.Bn.UN_INITIATED},FetchFeeRatesperkb:{status:G.Bn.UN_INITIATED},FetchFeeRatesperkw:{status:G.Bn.UN_INITIATED},FetchPeers:{status:G.Bn.UN_INITIATED},FetchUTXOs:{status:G.Bn.UN_INITIATED},FetchPayments:{status:G.Bn.UN_INITIATED},GetForwardingHistory:{status:G.Bn.UN_INITIATED},GetFailedForwardingHistory:{status:G.Bn.UN_INITIATED}},nodeSettings:{userPersona:G.ol.OPERATOR,selCurrencyUnit:"USD",fiatConversion:!1,channelBackupPath:"",currencyUnits:[]},information:{},fees:{},feeRatesPerKB:{},feeRatesPerKW:{},balance:{},localRemoteBalance:{localBalance:-1,remoteBalance:-1},peers:[],allChannels:[],payments:[],forwardingHistory:[],failedForwardingHistory:[],invoices:{invoices:[]},utxos:[]};var vs=i(4979);const _s={userPersona:"OPERATOR",themeMode:"DAY",themeColor:"PURPLE",channelBackupPath:"",selCurrencyUnit:"USD",fiatConversion:!1,currencyUnits:["Sats","BTC","USD"],bitcoindConfigPath:""},ws={configPath:"",swapMacaroonPath:"",boltzMacaroonPath:""},xs={apisCallStatus:{Login:{status:G.Bn.UN_INITIATED},IsAuthorized:{status:G.Bn.UN_INITIATED}},selNode:{settings:_s,authentication:ws,lnImplementation:"LND"},appConfig:{defaultNodeIndex:-1,selectedNodeIndex:-1,sso:{rtlSSO:0,logoutRedirectLink:""},enable2FA:!1,nodes:[{settings:_s,authentication:ws}]},nodeData:{}},Cs={root:function(t=xs,e){switch(e.type){case j.O3:const i=t.apisCallStatus;return i[e.payload.action]={status:e.payload.status,statusCode:e.payload.statusCode,message:e.payload.message,URL:e.payload.URL,filePath:e.payload.filePath},Object.assign(Object.assign({},t),{apisCallStatus:i});case j.dh:return Object.assign(Object.assign({},xs),{appConfig:t.appConfig,selNode:e.payload});case j.RP:return Object.assign(Object.assign({},t),{selNode:e.payload.lnNode});case j.zH:return Object.assign(Object.assign({},t),{nodeData:e.payload});case j.rZ:return Object.assign(Object.assign({},t),{appConfig:e.payload});default:return t}},lnd:vs.mw,cl:function(t=bs,e){switch(e.type){case oe.qe:const i=t.apisCallStatus;return i[e.payload.action]={status:e.payload.status,statusCode:e.payload.statusCode,message:e.payload.message,URL:e.payload.URL,filePath:e.payload.filePath},Object.assign(Object.assign({},t),{apisCallStatus:i});case oe.Xj:return Object.assign(Object.assign({},t),{nodeSettings:e.payload});case oe.uq:return Object.assign(Object.assign({},bs),{nodeSettings:e.payload});case oe.Ql:return Object.assign(Object.assign({},t),{information:e.payload});case oe.iK:return Object.assign(Object.assign({},t),{fees:e.payload});case oe.XQ:return e.payload.perkb?Object.assign(Object.assign({},t),{feeRatesPerKB:e.payload}):e.payload.perkw?Object.assign(Object.assign({},t),{feeRatesPerKW:e.payload}):Object.assign({},t);case oe.UO:return Object.assign(Object.assign({},t),{balance:e.payload});case oe.qt:return Object.assign(Object.assign({},t),{localRemoteBalance:e.payload});case oe.sX:return Object.assign(Object.assign({},t),{peers:e.payload});case oe.W2:return Object.assign(Object.assign({},t),{peers:[...t.peers,e.payload]});case oe.qH:const n=[...t.peers],r=t.peers.findIndex(t=>t.id===e.payload.id);return r>-1&&n.splice(r,1),Object.assign(Object.assign({},t),{peers:n});case oe.zj:return Object.assign(Object.assign({},t),{allChannels:e.payload});case oe.Vb:const s=[...t.allChannels],o=t.allChannels.findIndex(t=>t.channel_id===e.payload.channelId);return o>-1&&s.splice(o,1),Object.assign(Object.assign({},t),{allChannels:s});case oe.nL:return Object.assign(Object.assign({},t),{payments:e.payload});case oe.bH:const a=t.fees;if(e.payload&&e.payload.length>0){const i=[...t.allChannels];e.payload.forEach((t,e)=>{if(i&&i.length>0)for(let n=0;n0){const i=[...t.allChannels];e.payload.forEach((t,e)=>{if(i&&i.length>0)for(let n=0;nt.label===e.payload.label?e.payload:t),Object.assign(Object.assign({},t),{invoices:c});case oe.Q2:return Object.assign(Object.assign({},t),{utxos:e.payload});default:return t}},ecl:function(t=ys,e){switch(e.type){case se.f:const i=t.apisCallStatus;return i[e.payload.action]={status:e.payload.status,statusCode:e.payload.statusCode,message:e.payload.message,URL:e.payload.URL,filePath:e.payload.filePath},Object.assign(Object.assign({},t),{apisCallStatus:i});case se.gk:return Object.assign(Object.assign({},t),{nodeSettings:e.payload});case se.ok:return Object.assign(Object.assign({},ys),{nodeSettings:e.payload});case se.ml:return Object.assign(Object.assign({},t),{information:e.payload});case se.UA:return Object.assign(Object.assign({},t),{fees:e.payload});case se.L2:return Object.assign(Object.assign({},t),{activeChannels:e.payload});case se.JI:return Object.assign(Object.assign({},t),{pendingChannels:e.payload});case se.ct:return Object.assign(Object.assign({},t),{inactiveChannels:e.payload});case se.mn:return Object.assign(Object.assign({},t),{channelsStatus:e.payload});case se.ro:return Object.assign(Object.assign({},t),{channelStats:e.payload});case se.CF:return Object.assign(Object.assign({},t),{onchainBalance:e.payload});case se.$9:return Object.assign(Object.assign({},t),{lightningBalance:e.payload});case se.IH:return Object.assign(Object.assign({},t),{peers:e.payload});case se.J4:const n=[...t.peers],r=t.peers.findIndex(t=>t.nodeId===e.payload.nodeId);return r>-1&&n.splice(r,1),Object.assign(Object.assign({},t),{peers:n});case se.Cu:const s=[...t.activeChannels],o=t.activeChannels.findIndex(t=>t.channelId===e.payload.channelId);return o>-1&&s.splice(o,1),Object.assign(Object.assign({},t),{activeChannels:s});case se.Wn:if(e.payload&&e.payload.relayed){const i=[...t.activeChannels,...t.pendingChannels,...t.inactiveChannels];e.payload.relayed.forEach(t=>{if(i&&i.length>0)for(let e=0;et.paymentHash===e.payload.paymentHash?e.payload:t),Object.assign(Object.assign({},t),{invoices:l});default:return t}}};var As=i(8248),Ss=i(8640),Es=i(4147);let ks=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t,bootstrap:[fs]}),t.\u0275inj=r.cJS({providers:[{provide:o.TP,useClass:ms,multi:!0},_r.a1,It.m,gs.D,Re.W,le.v,Ei],imports:[[s.PW,xr.m,wr,Cr.xu,n.t6,D.forRoot({idle:3590,timeout:10,ping:12e3}),a.Aw.forRoot(Cs,{runtimeChecks:{strictStateImmutability:!1,strictActionImmutability:!1}}),l.sQ.forRoot([lt.V,As.l,Ss.s,Es.o]),Ai.N.production?[]:c.FT.instrument()]]}),t})();Ai.N.production&&(0,r.G48)(),n.q6().bootstrapModule(ks).catch(t=>console.log(t))},9162:(t,e,i)=>{"use strict";i.d(e,{ZT:()=>r,mG:()=>s,Jh:()=>o,XA:()=>a,CR:()=>l,ev:()=>c,qq:()=>h,FC:()=>u,KL:()=>d});var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)};function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}function s(t,e,i,n){return new(i||(i=Promise))(function(r,s){function o(t){try{l(n.next(t))}catch(e){s(e)}}function a(t){try{l(n.throw(t))}catch(e){s(e)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(o,a)}l((n=n.apply(t,e||[])).next())})}function o(t,e){var i,n,r,s,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(i)throw new TypeError("Generator is already executing.");for(;o;)try{if(i=1,n&&(r=2&s[0]?n.return:s[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,s[1])).done)return r;switch(n=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,n=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((r=(r=o.trys).length>0&&r[r.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function l(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var n,r,s=i.call(t),o=[];try{for(;(void 0===e||e-- >0)&&!(n=s.next()).done;)o.push(n.value)}catch(a){r={error:a}}finally{try{n&&!n.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}return o}function c(t,e){for(var i=0,n=e.length,r=t.length;i1||a(t,e)})})}function a(t,e){try{(i=r[t](e)).value instanceof h?Promise.resolve(i.value.v).then(l,c):u(s[0][2],i)}catch(n){u(s[0][3],n)}var i}function l(t){a("next",t)}function c(t){a("throw",t)}function u(t,e){t(e),s.shift(),s.length&&a(s[0][0],s[0][1])}}function d(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,i=t[Symbol.asyncIterator];return i?i.call(t):(t=a(t),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(i){e[i]=t[i]&&function(e){return new Promise(function(n,r){!function(t,e,i,n){Promise.resolve(n).then(function(e){t({value:e,done:i})},e)}(n,r,(e=t[i](e)).done,e.value)})}}}},5415:t=>{"use strict";t.exports=JSON.parse('{"aes-128-ecb":{"cipher":"AES","key":128,"iv":0,"mode":"ECB","type":"block"},"aes-192-ecb":{"cipher":"AES","key":192,"iv":0,"mode":"ECB","type":"block"},"aes-256-ecb":{"cipher":"AES","key":256,"iv":0,"mode":"ECB","type":"block"},"aes-128-cbc":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes-192-cbc":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes-256-cbc":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes128":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes192":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes256":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes-128-cfb":{"cipher":"AES","key":128,"iv":16,"mode":"CFB","type":"stream"},"aes-192-cfb":{"cipher":"AES","key":192,"iv":16,"mode":"CFB","type":"stream"},"aes-256-cfb":{"cipher":"AES","key":256,"iv":16,"mode":"CFB","type":"stream"},"aes-128-cfb8":{"cipher":"AES","key":128,"iv":16,"mode":"CFB8","type":"stream"},"aes-192-cfb8":{"cipher":"AES","key":192,"iv":16,"mode":"CFB8","type":"stream"},"aes-256-cfb8":{"cipher":"AES","key":256,"iv":16,"mode":"CFB8","type":"stream"},"aes-128-cfb1":{"cipher":"AES","key":128,"iv":16,"mode":"CFB1","type":"stream"},"aes-192-cfb1":{"cipher":"AES","key":192,"iv":16,"mode":"CFB1","type":"stream"},"aes-256-cfb1":{"cipher":"AES","key":256,"iv":16,"mode":"CFB1","type":"stream"},"aes-128-ofb":{"cipher":"AES","key":128,"iv":16,"mode":"OFB","type":"stream"},"aes-192-ofb":{"cipher":"AES","key":192,"iv":16,"mode":"OFB","type":"stream"},"aes-256-ofb":{"cipher":"AES","key":256,"iv":16,"mode":"OFB","type":"stream"},"aes-128-ctr":{"cipher":"AES","key":128,"iv":16,"mode":"CTR","type":"stream"},"aes-192-ctr":{"cipher":"AES","key":192,"iv":16,"mode":"CTR","type":"stream"},"aes-256-ctr":{"cipher":"AES","key":256,"iv":16,"mode":"CTR","type":"stream"},"aes-128-gcm":{"cipher":"AES","key":128,"iv":12,"mode":"GCM","type":"auth"},"aes-192-gcm":{"cipher":"AES","key":192,"iv":12,"mode":"GCM","type":"auth"},"aes-256-gcm":{"cipher":"AES","key":256,"iv":12,"mode":"GCM","type":"auth"}}')},2063:t=>{"use strict";t.exports=JSON.parse('{"sha224WithRSAEncryption":{"sign":"rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"RSA-SHA224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha256WithRSAEncryption":{"sign":"rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"RSA-SHA256":{"sign":"ecdsa/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha384WithRSAEncryption":{"sign":"rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"RSA-SHA384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512WithRSAEncryption":{"sign":"rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA1":{"sign":"rsa","hash":"sha1","id":"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{"sign":"ecdsa","hash":"sha1","id":""},"sha256":{"sign":"ecdsa","hash":"sha256","id":""},"sha224":{"sign":"ecdsa","hash":"sha224","id":""},"sha384":{"sign":"ecdsa","hash":"sha384","id":""},"sha512":{"sign":"ecdsa","hash":"sha512","id":""},"DSA-SHA":{"sign":"dsa","hash":"sha1","id":""},"DSA-SHA1":{"sign":"dsa","hash":"sha1","id":""},"DSA":{"sign":"dsa","hash":"sha1","id":""},"DSA-WITH-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-WITH-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-WITH-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-WITH-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-RIPEMD160":{"sign":"dsa","hash":"rmd160","id":""},"ripemd160WithRSA":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"RSA-RIPEMD160":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"md5WithRSAEncryption":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"},"RSA-MD5":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"}}')},2236:t=>{"use strict";t.exports=JSON.parse('{"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}')},1930:t=>{"use strict";t.exports=JSON.parse('{"modp1":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},"modp2":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},"modp5":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},"modp14":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},"modp15":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},"modp16":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},"modp17":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"modp18":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}')},7519:t=>{"use strict";t.exports={i8:"6.5.4"}},873:t=>{"use strict";t.exports=JSON.parse('{"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}')},6601:()=>{},8623:()=>{},2361:()=>{},4616:()=>{}},t=>{"use strict";t(t.s=1042)}]); \ No newline at end of file diff --git a/angular/runtime.d5083173ef6104a11138.js b/angular/runtime.d5083173ef6104a11138.js new file mode 100644 index 00000000..f2c75f2d --- /dev/null +++ b/angular/runtime.d5083173ef6104a11138.js @@ -0,0 +1 @@ +(()=>{"use strict";var e,r,t,o={},a={};function n(e){var r=a[e];if(void 0!==r)return r.exports;var t=a[e]={id:e,loaded:!1,exports:{}};return o[e].call(t.exports,t,t.exports,n),t.loaded=!0,t.exports}n.m=o,e=[],n.O=(r,t,o,a)=>{if(!t){var l=1/0;for(s=0;s=a)&&Object.keys(n.O).every(e=>n.O[e](t[i]))?t.splice(i--,1):(d=!1,a0&&e[s-1][2]>a;s--)e[s]=e[s-1];e[s]=[t,o,a]},n.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return n.d(r,{a:r}),r},n.d=(e,r)=>{for(var t in r)n.o(r,t)&&!n.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce((r,t)=>(n.f[t](e,r),r),[])),n.u=e=>e+"."+{145:"b1263bd6d4d9c808b95c",432:"95e7cd048ce3f51df4b4",891:"426afa0ec2d9096e8da5",958:"9e0e1f7340063e08f0c5"}[e]+".js",n.miniCssF=e=>"styles.50804d64c130486c55c1.css",n.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),r={},t="rtl:",n.l=(e,o,a,l)=>{if(r[e])r[e].push(o);else{var d,i;if(void 0!==a)for(var s=document.getElementsByTagName("script"),u=0;u{d.onerror=d.onload=null,clearTimeout(p);var a=r[e];if(delete r[e],d.parentNode&&d.parentNode.removeChild(d),a&&a.forEach(e=>e(o)),t)return t(o)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:d}),12e4);d.onerror=f.bind(null,d.onerror),d.onload=f.bind(null,d.onload),i&&document.head.appendChild(d)}},n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n.p="",(()=>{var e={666:0};n.f.j=(r,t)=>{var o=n.o(e,r)?e[r]:void 0;if(0!==o)if(o)t.push(o[2]);else if(666!=r){var a=new Promise((t,a)=>o=e[r]=[t,a]);t.push(o[2]=a);var l=n.p+n.u(r),d=new Error;n.l(l,t=>{if(n.o(e,r)&&(0!==(o=e[r])&&(e[r]=void 0),o)){var a=t&&("load"===t.type?"missing":t.type),l=t&&t.target&&t.target.src;d.message="Loading chunk "+r+" failed.\n("+a+": "+l+")",d.name="ChunkLoadError",d.type=a,d.request=l,o[1](d)}},"chunk-"+r,r)}else e[r]=0},n.O.j=r=>0===e[r];var r=(r,t)=>{var o,a,[l,d,i]=t,s=0;for(o in d)n.o(d,o)&&(n.m[o]=d[o]);if(i)var u=i(n);for(r&&r(t);s{"use strict";var e,r,t,a={},o={};function n(e){var r=o[e];if(void 0!==r)return r.exports;var t=o[e]={id:e,loaded:!1,exports:{}};return a[e].call(t.exports,t,t.exports,n),t.loaded=!0,t.exports}n.m=a,e=[],n.O=(r,t,a,o)=>{if(!t){var l=1/0;for(s=0;s=o)&&Object.keys(n.O).every(e=>n.O[e](t[i]))?t.splice(i--,1):(d=!1,o0&&e[s-1][2]>o;s--)e[s]=e[s-1];e[s]=[t,a,o]},n.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return n.d(r,{a:r}),r},n.d=(e,r)=>{for(var t in r)n.o(r,t)&&!n.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce((r,t)=>(n.f[t](e,r),r),[])),n.u=e=>e+"."+{145:"e0b74c13c7eba2a023d0",432:"233efd0eaffca79461bd",891:"0cd709adfaf43d19a339",958:"88b5fa8d3b93e7a0e7b3"}[e]+".js",n.miniCssF=e=>"styles.50804d64c130486c55c1.css",n.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),r={},t="rtl:",n.l=(e,a,o,l)=>{if(r[e])r[e].push(a);else{var d,i;if(void 0!==o)for(var s=document.getElementsByTagName("script"),u=0;u{d.onerror=d.onload=null,clearTimeout(p);var o=r[e];if(delete r[e],d.parentNode&&d.parentNode.removeChild(d),o&&o.forEach(e=>e(a)),t)return t(a)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:d}),12e4);d.onerror=f.bind(null,d.onerror),d.onload=f.bind(null,d.onload),i&&document.head.appendChild(d)}},n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n.p="",(()=>{var e={666:0};n.f.j=(r,t)=>{var a=n.o(e,r)?e[r]:void 0;if(0!==a)if(a)t.push(a[2]);else if(666!=r){var o=new Promise((t,o)=>a=e[r]=[t,o]);t.push(a[2]=o);var l=n.p+n.u(r),d=new Error;n.l(l,t=>{if(n.o(e,r)&&(0!==(a=e[r])&&(e[r]=void 0),a)){var o=t&&("load"===t.type?"missing":t.type),l=t&&t.target&&t.target.src;d.message="Loading chunk "+r+" failed.\n("+o+": "+l+")",d.name="ChunkLoadError",d.type=o,d.request=l,a[1](d)}},"chunk-"+r,r)}else e[r]=0},n.O.j=r=>0===e[r];var r=(r,t)=>{var a,o,[l,d,i]=t,s=0;for(a in d)n.o(d,a)&&(n.m[a]=d[a]);if(i)var u=i(n);for(r&&r(t);s { options = common.getOptions(); options.url = common.getSelLNServerUrl() + '/v1/peers'; options.form = JSON.stringify({ - // addr: { host: req.body.host, pubkey: req.body.pubkey }, + addr: { host: req.body.host, pubkey: req.body.pubkey }, perm: req.body.perm }); request.post(options).then((body) => { diff --git a/package-lock.json b/package-lock.json index a591a6b3..7325a02c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "rtl", - "version": "0.11.1-beta", + "version": "0.11.2-beta", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -13265,9 +13265,9 @@ "dev": true }, "tar": { - "version": "6.1.8", - "resolved": "https://registry.npmjs.org/tar/-/tar-6.1.8.tgz", - "integrity": "sha512-sb9b0cp855NbkMJcskdSYA7b11Q8JsX4qe4pyUAfHp+Y6jBjJeek2ZVlwEfWayshEIwlIzXx0Fain3QG9JPm2A==", + "version": "6.1.11", + "resolved": "https://registry.npmjs.org/tar/-/tar-6.1.11.tgz", + "integrity": "sha512-an/KZQzQUkZCkuoAA64hM92X0Urb6VpRhAFllDzz44U2mcD5scmT3zBc4VgVpkugF580+DQn8eAFSyoQt0tznA==", "dev": true, "requires": { "chownr": "^2.0.0", diff --git a/package.json b/package.json index 01a1dc82..02fa2329 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "rtl", - "version": "0.11.1-beta", + "version": "0.11.2-beta", "license": "MIT", "scripts": { "ng": "ng", diff --git a/src/app/lnd/reports/fee/fee-report.component.spec.ts b/src/app/lnd/reports/fee/fee-report.component.spec.ts index 2987beac..3cde7d4b 100644 --- a/src/app/lnd/reports/fee/fee-report.component.spec.ts +++ b/src/app/lnd/reports/fee/fee-report.component.spec.ts @@ -9,7 +9,6 @@ import { FeeReportComponent } from './fee-report.component'; import { SharedModule } from '../../../shared/shared.module'; import { mockDataService } from '../../../shared/test-helpers/mock-services'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; -import { ForwardingHistoryComponent } from '../../routing/forwarding-history/forwarding-history.component'; describe('FeeReportComponent', () => { let component: FeeReportComponent; diff --git a/src/app/lnd/reports/fee/fee-report.component.ts b/src/app/lnd/reports/fee/fee-report.component.ts index 4c1816c4..c58e981d 100644 --- a/src/app/lnd/reports/fee/fee-report.component.ts +++ b/src/app/lnd/reports/fee/fee-report.component.ts @@ -10,6 +10,7 @@ import { DataService } from '../../../shared/services/data.service'; import { fadeIn } from '../../../shared/animation/opacity-animation'; import * as fromRTLReducer from '../../../store/rtl.reducers'; +import * as fromLNDReducer from '../../store/lnd.reducers'; @Component({ selector: 'rtl-fee-report', @@ -36,14 +37,18 @@ export class FeeReportComponent implements OnInit, AfterContentInit, OnDestroy { public screenSize = ''; public screenSizeEnum = ScreenSizeEnum; public errorMessage = ''; - private unSubs: Array> = [new Subject(), new Subject()]; + private unSubs: Array> = [new Subject(), new Subject(), new Subject()]; constructor(private dataService: DataService, private commonService: CommonService, private store: Store) {} ngOnInit() { this.screenSize = this.commonService.getScreenSize(); this.showYAxisLabel = !(this.screenSize === ScreenSizeEnum.XS || this.screenSize === ScreenSizeEnum.SM); - this.fetchEvents(this.startDate, this.endDate); + this.store.select(fromLNDReducer.getInformation).pipe(takeUntil(this.unSubs[0])).subscribe((info) => { + if (info.identity_pubkey) { + this.fetchEvents(this.startDate, this.endDate); + } + }); } ngAfterContentInit() { diff --git a/src/app/lnd/store/lnd.reducers.ts b/src/app/lnd/store/lnd.reducers.ts index 82b40393..21238b89 100644 --- a/src/app/lnd/store/lnd.reducers.ts +++ b/src/app/lnd/store/lnd.reducers.ts @@ -1,3 +1,6 @@ +import { pipe } from 'rxjs'; +import { scan } from 'rxjs/operators'; +import { createFeatureSelector, createSelector, select } from '@ngrx/store'; import { SelNodeChild } from '../../shared/models/RTLconfig'; import { ApiCallsListLND } from '../../shared/models/apiCallsPayload'; import { @@ -314,3 +317,7 @@ export function LNDReducer(state = initLNDState, action: LNDActions.LNDActions) return state; } } + +export const getLNDState = createFeatureSelector('lnd'); +export const getInformation = createSelector(getLNDState, (state: LNDState) => state.information); +export const takeLastGetInfo = (count: number) => pipe(select(getInformation), scan((acc, curr) => [curr, ...acc].filter((val, index) => index < count && val.hasOwnProperty('identity_pubkey')), [] as GetInfo[])); diff --git a/src/environments/version.ts b/src/environments/version.ts index 30973ff7..3bf48655 100644 --- a/src/environments/version.ts +++ b/src/environments/version.ts @@ -1 +1 @@ -export const VERSION = '0.11.1-beta'; +export const VERSION = '0.11.2-beta';